(x_set_cursor_color): Get color reference counts right.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
88faab89
GM
12000-03-27 Gerd Moellmann <gerd@gnu.org>
2
3 * xfns.c (x_specified_cursor_type): New function.
4 (x_set_cursor_type): Use it.
5
6 * buffer.h (struct buffer): Add cursor_type.
7
d80f42b7
SM
82000-03-26 Stefan Monnier <monnier@cs.yale.edu>
9
10 * regex.c (enum re_opcode_t): New opcode on_failure_jump_nastyloop.
88faab89
GM
11 (print_partial_compiled_pattern, re_compile_fastmap): Handle new
12 opcode.
d80f42b7
SM
13 (regex_compile): Use on_failure_jump_nastyloop for non-greedy loops.
14 (re_match_2_internal): Add code for on_failure_jump_nastyloop when
15 executing it as well as when popping it off the stack to find infinite
16 loops in non-greedy repetition operators.
17
89e80928
GM
182000-03-26 Gerd Moellmann <gerd@gnu.org>
19
3d4ff2dd
GM
20 * doc.c (Qfunction_documentation): New variable.
21 (syms_of_doc): Initialize Qfunction_documentation.
22 (Fdocumentation): If FUNCTION is a symbol with non-nil
23 `function-documentation' property, return a documentation derived
24 from that.
25
bd96bd79
GM
26 * buffer.c (syms_of_buffer): Add default-cursor-type.
27 (init_buffer_once): Don't let cursor_type have a local value
28 in every buffer.
29
19d1bc27
GM
30 * xterm.c (x_display_and_set_cursor): Choose cursor depending
31 on buffer-local value of cursor_type.
32 (x_draw_bar_cursor): Add parameter WIDTH.
33
34 * buffer.c (reset_buffer): Initialize buffer's cursor_type.
35 (init_buffer_once): Set default cursor_type value to t.
36 Mark cursor_type as local everywhere.
37 (syms_of_buffer): New per-buffer variable cursor-type.
38
89e80928
GM
39 * buffer.h (struct buffer): Remove member local_var_flags,
40 add local_flags.
41 (MAX_BUFFER_LOCAL_VARS): New macro.
42 (BUFFER_LOCAL_VAR_OFFSET, BUFFER_LOCAL_VAR_IDX)
43 (BUFFER_HAS_LOCAL_VALUE_P, SET_BUFFER_HAS_LOCAL_VALUE_P)
44 (BUFFER_LOCAL_IDX, BUFFER_LOCAL_DEFAULT_VALUE, BUFFER_LOCAL_VALUE)
45 (BUFFER_LOCAL_SYMBOL, BUFFER_LOCAL_TYPE): New macros.
46
47 * print.c (print_object): Use new macros for per-buffer
48 variables.
49
50 * category.c (Fset_category_table): Use new macros for per-buffer
51 variables.
52
53 * buffer.c (buffer_permanent_local_flags): Make a char array.
54 (max_buffer_local_idx): New variable.
55 (reset_buffer_local_variables, Fbuffer_local_variables): Rewritten
56 for new handling of per-buffer variables.
57 (buffer_slot_type_mismatch): Use new macros for per-buffer vars.
58 (init_buffer_once): Initialize per-buffer vars differently.
59 Set max_buffer_local_idx.
60
61 * syntax.c (Fset_syntax_table): Use new macros for per-buffer
62 variables.
63
64 * lread.c (defvar_per_buffer): Use new macros for per-buffer
65 variables.
66
67 * data.c (do_symval_forwarding, store_symval_forwarding)
68 (find_symbol_value, set_internal, default_value, Fset_default)
69 (Fkill_local_variable, Flocal_variable_p): Use new macros for
70 per-buffer variables.
71
72 * Makefile.in (bootstrap-emacs): Use `mv -f' instead of `mv'.
73
9a0dd3dc
GM
742000-03-24 Gerd Moellmann <gerd@gnu.org>
75
b68c375f
GM
76 * xterm.c (x_term_init): Unblock input around call1 of
77 Qvendor_specific_keysyms.
78
9a0dd3dc
GM
79 * syntax.c (open_paren_in_column_0_is_defun_start): New variable.
80 (find_defun_start): Consider an open parenthesis in column 0
81 a defun start only if open_paren_in_column_0_is_defun_start is set.
82 (syms_of_syntax): New variable open-paren-in-column-0-is-defun-start.
83
7973e637
SM
842000-03-24 Stefan Monnier <monnier@cs.yale.edu>
85
86 * eval.c (Fautoload): Add entry in load-history (if after dump).
87 * lread.c (load-history): Update docstring.
88
39210e90
GM
892000-03-24 Gerd Moellmann <gerd@gnu.org>
90
91 * indent.c (Fvertical_motion): Always use the current buffer.
92 Temporarily change the window's buffer, if necessary.
93
72db3ab5
GM
942000-03-23 Gerd Moellmann <gerd@gnu.org>
95
96 * xterm.c (fast_find_position): Make sure not to consider rows
97 not visible in the window.
98
990b2375
SM
992000-03-22 Stefan Monnier <monnier@cs.yale.edu>
100
101 * regex.c (enum syntaxcode): Provide default for non-Emacs.
102 (re_compile_fastmap, re_match_2_internal): Undo Dave's previous fix.
103
ff4df011
JR
1042000-03-22 Jason Rumney <jasonr@gnu.org>
105
106 * w32menu.c (single_submenu): Set help string to NULL if none.
107 (w32_menu_show): Set help string correctly.
108 (add-menu-item): Set help string in MIIM_DATA for menu item.
109 Load SetMenuItemInfoA explicitly.
110 (w32_menu_display_help): New function.
111
112 * w32fns.c (w32_wnd_proc): Handle WM_MENUSELECT message.
113 (QCdata): Moved to xdisp.c.
114
115 * w32term.c (w32_read_socket): Handle WM_MENUSELECT message.
116 (Vw32_charset_to_codepage_alist): Removed.
117 (Vw32_charset_info_alist): New variable.
118 (Qw32_charset_[ansi, default, symbol, shiftjis, hangul, gb2312,
119 chinesebig5, oem, easteurope, turkish, baltic, russian, arabic,
120 greek, hebrew, thai, johab, mac, unicode]): New symbols.
121 (x_produce_glyphs): Remove out of date #ifdef 0'd section. Replace
122 with TODO comment.
123 (w32_codepage_for_font): Use Vw32_charset_info_alist.
124 (syms_of_w32term): Remove Vw32_charset_to_codepage_alist.
125 Define Vw32_charset_info_alist and w32_charset symbols.
126
1272000-03-22 Jason Rumney <jasonr@gnu.org>
128
129 * makefile.nt (w32bdf.obj): Update dependencies.
130
131 * w32bdf.c: Include frame.h and dispextern.h before fontset.h.
132
133 * w32fns.c: Include fontset.h after dispextern.h.
134 (Fx_create_frame): Do not create fontset.
135 (w32_load_system_font): Doc fix.
136 (Fx_close_connection): Free full_name if it is not shared.
137
138 * w32term.c: Include fontset.h after dispextern.h.
139 (x_get_glyph_face_and_encoding): New parameter two_byte_p. Callers
140 updated.
141 (w32_per_char_metric): If PCM is invalid, delete and return NULL.
142 (x_get_char_and_face_encoding): Use FACE_FOR_CHAR to get face_id.
143 (w32_font_is_double_byte): New function, needs body.
144 (x_append_glyph): Set glyph->glyph_not_available_p.
145 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
146 it->charset. If it->multibyte_p is zero and it->c is a multibyte
147 character, convert it to a unibyte character.
148 (struct glyph_string): Delete member `charset'.
149 (W32_TEXTOUT): Temporarily remove charset_dim until another way of
150 calculating it is found.
151 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
152 the case that per char metric is not available correctly.
153 (x_fill_glyph_string): Handle the case that the specific glyph is
154 not available correctly.
155 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
156 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
157 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
158 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
159 fontset. Don't call FS_LOAD_FONT.
160
439d5cb4
KR
1612000-03-22 Ken Raeburn <raeburn@gnu.org>
162
163 * intervals.h (NULL_INTERVAL): Cast to INTERVAL type.
164 (INT_LISPLIKE): New macro.
165 (NULL_INTERVAL_P): Use it.
166 (INTERVAL_HAS_PARENT, INTERVAL_HAS_OBJECT, SET_INTERVAL_PARENT,
167 SET_INTERVAL_OBJECT, INTERVAL_PARENT, COPY_INTERVAL_PARENT,
168 GET_INTERVAL_OBJECT, INTERVAL_PARENT_OR_NULL): New macros.
169
170 * alloc.c (make_interval, gc_sweep): Use new macros; eliminate all
171 explicit references to "parent" field of struct interval and
172 associated unclean type conversions.
173 * intervals.c (create_root_interval, root_interval, rotate_right,
174 rotate_left, balance_possible_root_interval, split_interval_right,
175 split_interval_left, interval_start_pos, find_interval,
176 next_interval, previous_interval, update_interval,
177 adjust_intervals_for_insertion, delete_node, delete_interval,
178 adjust_intervals_for_deletion, merge_interval_right,
179 merge_interval_left, reproduce_tree, graft_intervals_into_buffer,
180 copy_intervals_to_string): Likewise.
181 * intervals.h (AM_LEFT_CHILD, AM_RIGHT_CHILD, RESET_INTERVAL):
182 Likewise.
183 * syntax.c (update_syntax_table): Likewise.
184
185 * intervals.c (reproduce_tree_obj): New function, like
186 reproduce_tree but takes a Lisp_Object for the parent. Declare
187 with prototype.
188 (graft_intervals_into_buffer): Use it when appropriate.
189 (reproduce_tree): Declare with prototype.
190 (balance_possible_root_interval): Check that the parent is a lisp
191 object before trying to examine its type.
192
ee1c5b21
GM
1932000-03-22 Gerd Moellmann <gerd@gnu.org>
194
195 * xfaces.c (lface_same_font_attributes_p): Compare font attributes
196 as strings only if both are known to be strings.
197
198 * s/openbsd.h (LIBS_TERMCAP): Undef.
199
1fb352e0
SM
2002000-03-21 Stefan Monnier <monnier@cs.yale.edu>
201
202 * regex.c (CHAR_CHARSET, CHARSET_LEADING_CODE_BASE): Add default
203 definitions for non-Emacs compilation.
204 (enum re_opcode_t): Remove (not)wordchar and move (not)syntaxspec
205 outside of `#ifdef emacs'.
206 (print_partial_compiled_pattern): Update.
207 (regex_compile): Use (not)syntaxspec(Sword) instead of (not)wordchar.
208 (re_compile_fastmap): Merge handling of charset and charset_not (for
209 emacs and non-emacs compilation as well).
210 Similarly for (not)categoryspec and (not)syntaxspec.
211 Don't use the fastmap when reaching `anychar' since the added
212 complexity is not justified.
213 (re_match_2_internal): Merge (not)wordchar (emacs and non-emacs)
214 and (not)syntaxspec. Merge (not)categoryspec.
215
fdaa1f77
KH
2162000-03-22 Kenichi Handa <handa@etl.go.jp>
217
ff1a0d8e
KH
218 * dispextern.h [!HAVE_WINDOW_SYSTEM] (FACE_SUITABLE_FOR_CHAR_P,
219 FACE_FOR_CHAR): Define them differently for the configuration of
220 --without-x.
fdaa1f77 221
d152fb46
DL
2222000-03-21 Dave Love <fx@gnu.org>
223
224 * fontset.c (Fset_fontset_font, Ffontset_font): Fix newlines in
225 doc string.
226
d2cafc8c
GM
2272000-03-21 Gerd Moellmann <gerd@gnu.org>
228
229 * xfaces.c (check_lface_attrs) [GLYPH_DEBUG]: Fix syntax error.
230 (lface_fully_specified_p): Don't check contents of
231 LFACE_FONT_INDEX because that attribute is optional.
232 (realize_x_face): Remove now unwarranted xassert.
233
9111d4b5
KH
2342000-03-21 Kenichi HANDA <handa@etl.go.jp>
235
236 The following changes are to make font selection based on
237 characters, not charset. In addition, they recover fontset
238 facilities while utilizing the new font selection mechanism.
239
6c4bfdc0
KH
240 * Makefile.in (fontset.o): Depend on dispextern.h.
241
242 * alloc.c (mark_face_cache): Don't mark face->registry.
243
9111d4b5
KH
244 * dispextern.h (struct glyph): New member glyph_not_available_p.
245 Use 22 bits for face_id.
246 (enum lface_attribute_index): Add LFACE_FONT_INDEX.
247 (struct face): Delete member registry, new member ascii_face.
248 (FACE_SUITABLE_FOR_CHAR_P): Renamed from
249 FACE_SUITABLE_FOR_CHARSET_P. Caller changed.
250 (FACE_FOR_CHAR): Renamed from FACE_FOR_CHARSET. Caller changed.
251 (struct it): Delete member charset, new member
252 glyph_not_available_p.
253
254 * fontset.h (FONT_NOT_OPENED, FONT_NOT_FOUND): Macros removed.
255 (struct fontset_info, struct fontset_data): Structs removed.
256 (allloc_fontset_data, free_fontset_data, fs_regiser_fontset,
257 Vglobale_fontset_alist, font_idx_temp): Externs removed.
258 (fs_load_font, fs_query_fontset): Adjusted for new argument.
259 (fs_free_face_fontset, fontset_font_pattern,
260 face_suitable_for_char_p, face_for_char,
261 make_fontset_for_ascii_face): Extern them.
262 (FS_LOAD_FONT): Adjusted for the change of fontset implementation.
263 (FS_LOAD_FACE_FONT): New macro.
264
265 * fontset.c: All codes rewritten or adjusted for the change of
266 fontset implementation. Now fontset is represented by char table.
267 (Vglobal_fontset_alist, font_idx_temp, my_strcasetbl): Variables
268 removed.
269 (my_strcasecmp): Function removed.
270 (Vfontset_table, next_fontset_id, Vdefault_fontset): New
271 variables.
272 (AREF, ASIZE): New macros.
273 (FONTSET_FROM_ID, FONTSET_ID, FONTSET_NAME, FONTSET_FRAME,
274 FONTSET_ASCII, FONTSET_BASE, BASE_FONTSET_P, FONTSET_REF,
275 FONTSET_REF_VIA_BASE, FONTSET_SET): New macros.
276 (fontset_ref, fontset_ref_via_base, fontset_set, make_fontset,
277 fontset_id_valid_p, font_family_registry, fontset_name,
278 fontset_ascii, free_face_fontset, face_suitable_for_char_p,
279 face_for_char, make_fontset_for_ascii_face, fontset_font_pattern):
280 New functions.
281 (fs_load_font): New arg FACE. Caller changed.
282 (fs_query_fontset): Argument changed. Caller changed.
283 (Fquery_fontset): call fs_query_fontset.
284 (fs_register_fontset, alloc_fontset_data, free_fontset_data):
285 Functions removed.
286 (clear_fontset_elements, check_registry_encoding,
287 check_fontset_name): New functions.
288 (syms_of_fontset): Set char-table-extra-slots property of fontset
289 to 3. Staticpro and initialize Vfontset_table and
290 Vdefault_fontset. Defsubr fontset_font and fontset_list.
291
292 * frame.h (struct frame): Member `fontset_data' removed.
293 (FRAME_FONTSET_DATA): Macro removed.
294
295 * frame.c (make_frame): Don't allocate f->fontset_data.
296 (Fdelete_frame): Don't free f->fontset_data.
297
6c4bfdc0
KH
298 * msdos.c (XMenuActivate): Args to lookup_derived_face changed.
299
9111d4b5
KH
300 * xdisp.c (charset_at_position): Function removed.
301 (init_iterator): Don't set member charset of struct `it'.
302 (handle_face_prop, reseat_to_string, set_iterator_to_next,
303 next_element_from_display_vector, insert_left_trunc_glyphs):
304 Likewise.
305 (face_before_or_after_it_pos): Call FACE_FOR_CHAR, not
306 FACE_FOR_CHARSET.
307 (get_next_display_element, append_space,
308 extend_face_to_end_of_line): Likewise.
309
310 * xfaces.c (Qx_charset_registry, Vface_default_registry):
311 Variables removed.
312 (clear_font_table, frame_update_line_height, load_face_font):
313 Adjusted for the change of fontset implementation.
314 (load_face_fontset_font): Function removed.
315 (pixel_point_size): New function.
316 (font_list): Argument type changed. Caller changed.
317 (LFACE_FONT): New macro.
318 (check_lface_attrs): Check attr[LFACE_FONT_INDEX].
319 (set_lface_from_font_name): Type of arg FONTNAME is changed to
320 Lisp_Object. Determine the font name by actually loading a font
321 by the specified pattern. Set LFACE_FONT (lface) to the specified
322 pattern. Even if a font is not found, don't try alternatives.
323 (Finternal_set_lisp_face_attribute): Handle `font' slot in lface.
324 (set_font_frame_param): If `font' is specified in lface, use it.
325 (Finternal_get_lisp_face_attribute): Handle `font' slot in lface.
326 (lface_same_font_attributes_p): Likewise.
327 (make_realized_face): Arguent changed. Caller changed. Set
328 face->ascii_face to face itself.
329 (free_realized_face): Free face->fontset if face is for ASCII.
330 (face_suitable_for_iso8859_1_p, face_suitable_for_charset_p,
331 deduce_unibyte_registry, x_charset_registry): Functions removed.
332 (free_realized_multibyte_face): New function.
333 (lookup_face, lookup_named_face, lookup_derived_face): Argument
334 changed. Caller changed.
335 (try_font_list): Argument type changed.
336 (face_fontset): Check `font' slot of ATTRS, not `family' slot.
337 (choose_face_font): Argument changed. Handle fontset properly.
338 (choose_face_fontset_font): Function removed.
339 (realize_default_face, realize_named_face): Don't remove the
340 former face here.
341 (realize_face): Argument changed. Caller changed. Remove face
342 with the arg former_face_id in advance. Load font for the new
343 face.
344 (realize_x_face): Argument changed. Caller changed. For a
345 multibyte character, share fontset with base_face. For a single
346 byte character, make a new realized fontset. Don't load a font
347 here.
348 (realize_tty_face): Argument changed. Caller changed.
349 (compute_char_face): Call FACE_FOR_CHAR, not FACE_FOR_CHARSET.
350 (face_at_buffer_position): Don't check multibyte_p for returning
351 DEFAULT_FACE_ID.
352 (face_at_string_position): Call FACE_SUITABLE_FOR_CHAR_P, not
353 FACE_SUITABLE_FOR_CHARSET_P.
354 (syms_of_xfaces): Remove code for Qx_charset_registry and
355 Vface_default_registry.
356
6c4bfdc0
KH
357 * xterm.c: Include fontset.h after dispextern.h. Undo the changes
358 related to PER_CHAR_METRIC done by Gerd on 2000-03-03.
9111d4b5
KH
359 (x_per_char_metric): Don't try FONT->default_char. Even if
360 pcm->width is zero, glyph bits may exist.
361 (x_encode_char): Always initialize char2b->byte1.
362 (x_get_char_face_and_encoding): Call FACE_FOR_CHAR to get face_id.
363 (x_get_glyph_face_and_encoding): New arg two_byte_p. Caller
364 changed.
365 (x_append_glyph): Set glyph->glyph_not_available_p.
366 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
367 it->charset. Handle the case that per char metric is not
368 available. If it->multibyte_p is zero and it->c is a multibyte
369 character, convert it to a unibyte character.
370 (struct glyph_string): Delete member `charset'.
371 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
372 the case that per char metric is not available correctly.
373 (x_fill_glyph_string): Handle the case that the specific glyph is
374 not available correctly.
375 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
376 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
377 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
378 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
379 fontset. Don't call FS_LOAD_FONT.
380
381 * xfns.c (Fx_create_frame): Don't cal fs_register_fontset.
382 (x_create_tip_frame): Likewise.
383 (Fx_close_connection): Free full_name of font_info.
384
385 * fns.c (optimize_sub_char_table): New function.
386 (Foptimize_char_table): New function.
387 (syms_of_fns): Defsubr Soptimize_char_table.
388
b33dd3b0
GM
3892000-03-20 Gerd Moellmann <gerd@gnu.org>
390
391 * buffer.c (Fset_buffer_modified_p): Set update_mode_lines
392 only if buffer is displayed in some window.
393
394 * xdisp.c (handle_single_display_prop): Initialize local `value'.
395 (try_window_reusing_current_matrix): Don't call scroll run
396 function if run's current and desired position are the same;
397 this prevents cursor flickering.
398
4e8a9132
SM
3992000-03-19 Stefan Monnier <monnier@cs.yale.edu>
400
401 * regex.h (RE_TRANSLATE. RE_TRANSLATE_P): Moved to regex.c.
402
403 * regex.c (RE_STRING_CHAR): New macro.
404 (GET_CHAR_AFER_2): Remove.
405 (RE_TRANSLATE, RE_TRANSLATE_P): New macros moved from regex.h.
406 (enum re_opcode_t): Remove on_failure_jump_exclusive.
407 (print_partial_compiled_pattern, re_compile_fastmap)
408 (re_match_2_internal): Remove on_failure_jump_exclusive.
409 (regex_compile): Turn optimizable P+ loops into PP*, so that the
410 optimization only need to work for * (ie. can use of_keep_string_jump).
411 Remove the special case for .*\n since it is now covered by the general
412 optimization.
413 (re_search_2): Don't bother with `room'.
414 (skip_one_char): New function.
415 (skip_noops): Simplify since `memory' is not needed any more.
416 (mutually_exclusive_p): Restructure slightly to use `switch' and
417 add handling for "all" remaining cases.
418 (re_match_2_internal): Change on_failure_jump_smart to use
419 on_failure_keep_string_jump (and redirect the end-of-loop jump)
420 rather than on_failure_jump_exclusive.
421
2136fdd4
GM
4222000-03-19 Gerd Moellmann <gerd@gnu.org>
423
424 * xfns.c (select_visual): Don't set dpyinfo->n_planes to the
425 number of bits per RGB because it's everywhere used as the depth
426 of the visual.
427
428 * term.c (calculate_costs): Remove code dealing with X frames.
429
e53ae11c
RS
4302000-03-19 Richard M. Stallman <rms@caffeine.ai.mit.edu>
431
432 * lread.c (syms_of_lread): Doc fix for load-convert-to-unibyte.
433
d7b511c4
GM
4342000-03-18 Gerd Moellmann <gerd@gnu.org>
435
436 * lread.c (read_integer): Unread the last char not consumed.
437
16b5d424
GM
4382000-03-17 Gerd Moellmann <gerd@gnu.org>
439
440 * xterm.c (x_update_window_cursor): Don't update in frames
d7b511c4 441 which are in the process of being deleted.
16b5d424 442
1fa28578
GM
4432000-03-16 Gerd Moellmann <gerd@gnu.org>
444
83488cce
GM
445 * Makefile.in (mostlyclean): Add `*.core'.
446 (clean): Add `bootstrap-emacs'.
447
1fa28578
GM
448 * lread.c (read_integer): New function.
449 (read1): Support read syntax #o, #x, #b, #r.
450
99633e97
SM
4512000-03-15 Stefan Monnier <monnier@cs.yale.edu>
452
1fa28578
GM
453 * regex.c (re_match_2): Fix string shortening (to fit `stop') to
454 make sure POINTER_TO_OFFSET gives the same value before and after
455 PREFETCH. Use `dfail' to guarantee "atomic" matching.
99633e97
SM
456 (PTR_TO_OFFSET): Use POINTER_TO_OFFSET.
457 (debug): Now only active if > 0 rather than if != 0.
458 (DEBUG_*): Update for the new meaning of `debug'.
1fa28578
GM
459 (print_partial_compiled_pattern): Add missing `succeed' case. Use
460 CHARSET_* macros in the charset(_not) branch. Fix off-by-two bugs
461 in `succeed_n', `jump_n' and `set_number_at'.
99633e97
SM
462 (store_op1, store_op2, insert_op1, insert_op2)
463 (at_begline_loc_p, at_endline_loc_p): Add prototype.
1fa28578
GM
464 (group_in_compile_stack): Move to after its arg's types are
465 declared and add a prototype.
99633e97 466 (PATFETCH): Define in terms of PATFETCH_RAW.
1fa28578
GM
467 (GET_UNSIGNED_NUMBER): Add the usual `do { ... } while(0)'
468 wrapper.
99633e97 469 (QUIT): Redefine as a nop except for NTemacs.
1fa28578
GM
470 (regex_compile): Handle intervals {,M} as if it was {0,M}. Fix
471 indentation of the greedy-op and shy-group code.
99633e97
SM
472 (at_(beg|end)line_loc_p): Fix argument's types.
473 (re_compile_fastmap): Ifdef out failure_stack_ptr to shut up gcc.
474 (re_search_2): Use POS_AS_IN_BUFFER. Simplify `room' computation.
475 (MATCHING_IN_FIRST_STRING): Remove.
1fa28578
GM
476 (re_match_2): Use POS_AS_IN_BUFFER. Ifdef out failure_stack_ptr
477 to shut up gcc. Use FIRST_STRING_P and POINTER_TO_OFFSET. Use
478 QUIT unconditionally.
99633e97 479
699238d9
GM
4802000-03-15 Gerd Moellmann <gerd@gnu.org>
481
482 * minibuf.c (Fminibuffer_complete): Set point to ZV if finding
483 a sole completion.
484
485 * process.c (send_process): Add a hint that the function
486 can call Lisp code to its comment.
487
488 * lread.c (load_dangerous_libraries): New variable.
489 (Vbytecomp_version_regexp): New variable.
490 (safe_to_load_p): New function.
491 (Fload): Handle files not compiled with Emacs specially.
492 (syms_of_lread): New Lisp variable load-dangerous-libraries.
493
34e23e5a
GM
4942000-03-14 Gerd Moellmann <gerd@gnu.org>
495
9c763cca
GM
496 * lisp.h (free_frame_xic) [HAVE_X_I18N]: Add missing semicolon.
497
498 * xterm.c (xim_close_dpy, xim_initialize): Use X11R6-style XIM
499 support functions only if HAVE_X11R6_XIM is defined.
500 (xim_instantiate_callback): Define only if HAVE_X11R6_XIM.
501
502 * s/sol2.h (INHIBIT_X11R6_XIM): Define.
503
504 * xfns.c (X_I18N_INHIBITED): Don't define.
505 (create_frame_xic): Remove conditional compilation on
506 X_I18N_INHIBITED.
507 (x_kill_gs_process, x_window): Use FRAME_X_VISUAL.
508
509 * config.in (HAVE_X_I18N): Moved here from xterm.h.
510 (HAVE_X11R6_XIM): Define.
511
512 * xterm.h (HAVE_X_I18N) [HAVE_X11R6]: Moved to config.in.
513
34e23e5a
GM
514 * xterm.c (x_term_init): Add support for X resource `synchronous'.
515 If set, call XSynchronize.
516
66f0296e
SM
5172000-03-13 Stefan Monnier <monnier@cs.yale.edu>
518
34e23e5a
GM
519 * regex.c: Declare a new type `re_char' used throughout the code
520 for the string char type. It's `const unsigned char' to match the
521 rest of Emacs. Consistently make sure all pointers to strings use
522 it and make sure all pointers into the pattern use `unsigned
523 char'.
66f0296e 524 (re_match_2_internal): Use `PREFETCH+STRING_CHAR' instead of
34e23e5a
GM
525 GET_CHAR_AFTER_2. Also merge wordbound and notwordbound to reduce
526 code duplication.
66f0296e
SM
527
528 * charset.h (GET_CHAR_AFTER_2): Remove.
529 (GET_CHAR_BEFORE_2): Use unsigned chars, like everywhere else.
530
854a025c
KR
5312000-03-12 Ken Raeburn <raeburn@gnu.org>
532
533 * Makefile.in (temacs): Evaluate ALL_LDFLAGS into a temporary
534 variable before the invocation of YMF_PASS_LDFLAGS, in case both
535 of them try to use backquotes.
536
b9d2c7e2
DL
5372000-03-12 Dave Love <fx@gnu.org>
538
539 * unexelf.c: Restore changes of 1999-10-19.
540 (unexec): Don't adjust bss for sbss type SHT_PROGBITS; otherwise
541 fix its type and alignment; copy it from current process.
542
5e5dff44
GM
5432000-03-12 Gerd Moellmann <gerd@gnu.org>
544
9b2f3c38
GM
545 * atimer.c (cancel_atimer): Break out of the loop as soon as timer
546 has been found. Fix bug not computing timer's predecessor.
547
9172b88d
GM
548 * fileio.c (Fread_file_name): Handle case that DIR contains a
549 file name.
550
e1cff360
GM
551 * window.c (Fsave_window_excursion): Doc fix.
552
5e5dff44
GM
553 * xfns.c (x_defined_color): Rewritten to use
554 x_allocate_nearest_color.
555
e411ce4b
EZ
5562000-03-12 Eli Zaretskii <eliz@is.elta.co.il>
557
558 * msdos.c (vga_installed): New function, code moved from
559 dos_set_window_size.
560 (Qbar, Qcursor_type, outside_cursor): New variables.
561 (syms_of_msdos): Intern and staticpro them.
562 (dos_ttraw) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Save the cursor
563 shape used outside Emacs when called for the first time.
564 (dos_ttcooked) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Restore the
565 cursor shape used outside Emacs.
566 (msdos_set_cursor_shape, IT_set_cursor_type): New functions.
567 (IT_frame_up_to_date): Call IT_set_cursor_type, in case the cursor
568 type has changed.
569 (IT_set_frame_parameters): Call IT_set_cursor_type if the frame
570 parameters specify the cursor. Make qreverse a global
571 variable (renamed to Qreverse).
572
80460654
GM
5732000-03-09 Gerd Moellmann <gerd@gnu.org>
574
575 * fns.c (Fy_or_n_p): Cancel busy-cursor.
576
95cd4c40
SM
5772000-03-08 Stefan Monnier <monnier@cs.yale.edu>
578
579 This is a big redesign of failure-stack and register handling, prompted
580 by bugs revealed when trying to add shy-groups. Overall, what happened
581 is that loops are now structured a little differently, groups can be
582 shy and the code is a little simpler.
583
584 * regex.h: Update the copyright.
585 (RE_SHY_GROUPS): New value.
586 (RE_UNMATCHED_RIGHT_PAREN_ORD): Renumber.
587 (RE_SYNTAX_EMACS): Add RE_SHY_GROUPS.
588
80460654
GM
589 * regex.c (enum re_opcode_t): Remove jump_past_alt,
590 maybe_pop_jump, push_dummy_failure and dumy_failure_jump. Add
591 on_failure_jump_(exclusive, loop and smart). Also fix the comment
592 for (start|stop)_memory since they now only take one argument (the
593 second has becomes unnecessary).
594 (print_partial_compiled_pattern): Adjust for changes in
595 re_opcode_t.
596 (print_compiled_pattern): Use %ld to printf long ints and flush to
597 make debugging a little easier.
95cd4c40
SM
598 (union fail_stack_elt): Make the integer unsigned.
599 (struct fail_stack_type): Add a `frame' element.
600 (INIT_FAIL_STACK): Init `frame' as well.
601 (POP_PATTERN_OP): New macro for re_compile_fastmap.
602 (DEBUG_PUSH, DEBUG_POP): Remove.
603 (NUM_REG_ITEMS): Remove.
604 (NUM_NONREG_ITEMS): Adjust.
80460654
GM
605 (FAILURE_PAT, FAILURE_STR, NEXT_FAILURE_HANDLE)
606 (TOP_FAILURE_HANDLE): New macros for the cycle detection.
95cd4c40 607 (ENSURE_FAIL_STACK): New macro for PUSH_FAILURE_(REG|POINT).
80460654
GM
608 (PUSH_FAILURE_REG, POP_FAILURE_REG, CHECK_INFINITE_LOOP): New
609 macros.
610 (PUSH_FAILURE_POINT): Don't push registers any more. The pattern
611 address pushed is not the destination of the jump but the source
612 of it instead.
95cd4c40
SM
613 (NUM_FAILURE_ITEMS): Remove.
614 (POP_FAILURE_POINT): Adapt to the new stack structure (i.e. pop
80460654
GM
615 registers before the actual failure point). Don't hardcode any
616 meaning for str==NULL anymore.
95cd4c40 617 (union register_info_type, REG_MATCH_NULL_STRING_P, IS_ACTIVE)
80460654
GM
618 (MATCHED_SOMETHING, EVER_MATCHED_SOMETHING, SET_REGS_MATCHED):
619 Remove.
95cd4c40
SM
620 (REG_UNSET_VALUE): Use NULL (why not?).
621 (compile_range): Remove declaration since it doesn't exist.
622 (struct compile_stack_elt_t): Remove inner_group_offset.
623 (old_reg(start|end), reg_info, reg_dummy, reg_info_dummy): Remove.
624 (regex_grow_registers): Remove dead code.
625 (FIXUP_ALT_JUMP): New macro.
80460654
GM
626 (regex_compile): Add shy-groups Change loops to use
627 on_failure_jump_smart&jump instead of
628 on_failure_jump&maybe_pop_jump. Change + loops to eliminate the
629 initial (dummy_failure_)jump. Remove c1_base (looks like unused
630 variable to me). Use `jump' instead of `jump_past_alt' and don't
631 bother with push_dummy_failure in alternatives since it is now
632 unnecessary. Use FIXUP_ALT_JUMP. Eliminate a useless `#ifdef
633 emacs' for (re)allocating the stack.
634 (re_compile_fastmap): Remove dead variables i and num_regs. Exit
635 from loop when bufp->can_be_null rather than jumping to `done'.
636 Avoid jumping backwards so as to ensure termination. Use
637 PATTERN_STACK_EMPTY and POP_PATTERN_OP. Improved handling of
638 backreferences. Remove dead code in handling of `anychar'.
95cd4c40 639 (skip_noops, mutually_exclusive_p): New functions taken from the
80460654
GM
640 handling of `maybe_pop_jump' in re_match_2_internal. Slightly
641 improve mutually_exclusive_p to handle ".+\n".
642 (lowest_active_reg, highest_active_reg,
643 NO_(LOWEST|HIGHEST)_ACTIVE_REG) Remove.
644 (re_match_2_internal): Use %p instead of 0x%x when printf'ing
645 ptrs. Don't SET_REGS_MATCHED anymore. Remove many dead
646 variables. Push register (in `start_memory') on the stack rather
647 than storing it in old_reg(start|end). Remove the cycle detection
648 from `stop_memory', replaced by the use of on_failure_jump_loop
649 for greedy loops. Add code for the new on_failure_jump_<foo>.
650 Remove ad-hoc code in `on_failure_jump' to push more registers in
651 the case of a loop. Take out code from `maybe_pop_jump' into
652 separate functions and adapt it to the semantics of
653 `on_failure_jump_smart'. Remove jump_past_alt, dummy_failure_jump
654 and push_dummy_failure. Remove dummy_failure handling and
655 handling of `failures to jump to on_failure_jump' (this last one
656 was already dead code, it seems).
657 (group_match_null_string_p, alt_match_null_string_p)
658 (common_op_match_null_string_p): Remove.
95cd4c40 659
7397acc4
DL
6602000-03-08 Dave Love <fx@gnu.org>
661
662 * config.in: Don't depend on __STDC__ for volatile.
663 Add POINTER_TYPE, PTR, PROTOTYPES.
664
665 * hftctl.c, strftime.c: Use PROTOTYPES.
666 * eval.c (find_handler_clause): Likewise.
667
668 * mem-limits.h: Use POINTER_TYPE.
669
670 * lisp.h (P_): Define based on PROTOTYPES, not __STDC__.
671 (memory_warnings): Declare using POINTER_TYPE.
672
5e91ff9e
GM
6732000-03-08 Gerd Moellmann <gerd@gnu.org>
674
feab4fba
GM
675 * xfns.c (x_set_cursor_type): If ARG is nil, give frame no cursor.
676
25edb08f
GM
677 * xdisp.c (display_echo_area): Temporarily inhibit garbage
678 collection.
679
5e91ff9e
GM
680 * xfns.c: Remove obsolete code in #if 0.
681 (Fx_focus_frame): New function.
682
a735b7e1
KH
6832000-03-07 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
684
685 * coding.c (coding_category_name): Add coding-category-utf-8,
686 coding-category-utf-16-be, coding-category-utf-16-le.
687 (UTF_8_1_OCTET_P, UTF_8_EXTRA_OCTET_P, UTF_8_2_OCTET_LEADING_P,
688 UTF_8_3_OCTET_LEADING_P, UTF_8_4_OCTET_LEADING_P,
689 UTF_8_5_OCTET_LEADING_P, UTF_8_6_OCTET_LEADING_P): New macros.
690 (detect_coding_utf_8): New function.
691 (UTF_16_INVALID_P, UTF_16_HIGH_SURROGATE_P
692 UTF_16_LOW_SURROGATE_P): New macros.
693 (detect_coding_utf_16): New function
694 (detect_coding_mask): When priorities are specified, skip any
695 categories that have `nil' coding-system. Fix bug of returning
696 wrong mask when PRIORITIES is specified and detect_coding_XXX()
697 returns a mask not set in PRIORITIES.
698 (detect_eol_type_in_2_octet_form): New function.
699 (detect_eol): selects detect_eol_type_XXX to call according to
700 cooding->category_idx.
701 (detect_coding_system): Remove `nil' coding-system in the result.
702 (Fupdate_coding_systems_internal): Update all coding-categories.
703
704 * coding.h (CODING_CATEGORY_IDX_UTF_8,
705 CODING_CATEGORY_IDX_UTF_16_BE, CODING_CATEGORY_IDX_UTF_16_LE): New
706 macros.
707 (CODING_CATEGORY_IDX_RAW_TEXT, CODING_CATEGORY_IDX_BINARY,
708 CODING_CATEGORY_IDX_MAX): Adjusted for the above macros.
709 CODING_CATEGORY_IDX_UTF_16_LE.
710 (CODING_CATEGORY_MASK_UTF_8, CODING_CATEGORY_MASK_UTF_16_BE,
711 CODING_CATEGORY_MASK_UTF_16_LE): New macros.
712 (CODING_CATEGORY_MASK_ANY): Include the above macros.
713 (CODING_CATEGORY_MASK_UTF_16_BE_LE): New macro.
714
9994cc69
GM
7152000-03-07 Gerd Moellmann <gerd@gnu.org>
716
e9b4e5ff
GM
717 * doc.c (Fdocumentation_property): If value is not a string,
718 and doesn't refer to etc/DOC, evaluate it to obtain a string.
719
f7daf1e1
GM
720 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Don't try to
721 close the display with XtCloseDisplay. This caused a bus error
722 on OpenWindows.
723
9994cc69
GM
724 * minibuf.c (Fminibuffer_complete): Move point to ZV when input is
725 complete but not unique.
726
4336c705
GM
7272000-03-06 Gerd Moellmann <gerd@gnu.org>
728
18bb0684
GM
729 * process.c (send_process): Remove local variable `procname' that
730 might become invalid when a GC happens. Instead, access the
731 process name slot directly.
732
4336c705
GM
733 * xfns.c (x_set_menu_bar_lines_1): Adjust window's orig_top and
734 orig_height if set.
735
736 * frame.c (set_menu_bar_lines_1): Adjust window's orig_top and
737 orig_height if set.
738
515d0d0e
EZ
7392000-03-06 Eli Zaretskii <eliz@is.elta.co.il>
740
741 * msdos.c (IT_note_mouse_highlight): Return immediately if frame's
742 glyph matrices have been freed.
743
100b3cbb
GM
7442000-03-05 Gerd Moellmann <gerd@gnu.org>
745
50df5e5a 746 * Makefile.in (tags): Include ../lwlib/TAGS in TAGS.
6178bc23 747 (bootstrap-temacs): Set LC_ALL to C like for temacs.
50df5e5a
GM
748
749 * xfns.c (QCdata): Moved to xdisp.c.
750
751 * xdisp.c (QCdata): Moved here from xfns.c.
752 (syms_of_xdisp): Initialize QCdata.
753
754 * frame.h (FRAME_INTERNAL_BORDER_WIDTH) [!HAVE_X_WINDOWS]: Define.
755
756 * window.c (coordinates_in_window): Use
757 FRAME_INTERNAL_BORDER_WIDTH_SAFE instead of
758 FRAME_INTERNAL_BORDER_WIDTH.
759
100b3cbb 760 * xdisp.c (try_window_id): Recompute unchanged information if
4336c705 761 it is obviously invalid.
100b3cbb
GM
762
763 * xterm.c (x_term_init): Create a colormap if not using the
764 default visual.
765
766 * xterm.h (select_visual): Change prototype.
767
768 * xfns.c (select_visual): Rewritten. Recognize user-specified
769 visual classes.
770 (visual_classes): New variable.
771
64d739c4
GM
7722000-03-04 Gerd Moellmann <gerd@gnu.org>
773
774 * xfns.c (x_defined_color, x_set_mouse_color, lookup_rgb_color)
775 (lookup_pixel_color, x_laplace, x_build_heuristic_mask)
776 (png_load): Access colormap of frame using FRAME_X_COLORMAP.
777 (x_decode_color): Don't handle allocation of white and black
778 specially.
779 (x_window) [USE_X_TOOLKIT]: Set XtNvisual, XtNdepth, and
780 XtNcolormap resources.
781 (x_window) [!USE_X_TOOLKIT]: Pass colormap to XCreateWindow.
782 (Fx_create_frame): Initialize color members of x_output structure.
783 (xpm_load): Pass colormap to XPM lib.
784
785 * xfaces.c (x_free_colors): Access colormap of frame using
786 FRAME_X_COLORMAP. Be paranoid about freeing black and white
787 when default colormap is used.
788
789 * xterm.c (x_term_init): Set Colormap member of x_display_info
790 structure. Copy colormap if resource `privateColormap' is
791 specified (PseudoColor only).
792 (x_setup_relief_color): Access colormap of frame using
793 FRAME_X_COLORMAP.
794
795 * xterm.h (struct x_display_info): Add Colormap member `cmap'.
796 (FRAME_X_COLORMAP, FRAME_X_VISUAL): New macros.
797
c3cee013
JR
7982000-03-04 Jason Rumney <jasonr@gnu.org>
799
800 * xfaces.c Change many FRAME_X... macros to FRAME_WINDOW... or
801 other non-platform-specific equivalents.
64d739c4 802 [WINDOWSNT]: Include w32term.h, fontset.h and define X
c3cee013
JR
803 specific functions and macros as their w32 equivalents where
804 non-platform-specifics are not available.
805 [HAVE_X_WINDOWS]: Change most of these to HAVE_WINDOW_SYSTEM.
806 (x_create_gc, x_free_gc) [WINDOWSNT]: Add W32 versions.
807 (clear_font_table) [WINDOWSNT]: Call w32_unload_font.
808 (frame_update_line_height): Use macros to access f->output_data.
809 (defined_color): Remove FIXME comments; fixed.
810 (x_face_list_fonts, prepare_face_for_display): Put X specifics
811 into #ifdef blocks. Add WINDOWSNT blocks.
812 (Fx_list_fonts): Use macros for accessing font data.
813 (set_lface_from_font_name): Different default fonts for X and
814 WINDOWSNT.
815 (font_scalable_p) [WINDOWSNT]: Treat wildcard XLFD_AVGWIDTH as
816 scalable for backward compatibility.
64d739c4 817 (realize_tty_face) [MSDOS]: Do the same for WINDOWSNT.
c3cee013
JR
818 (syms_of_xfaces) [WINDOWSNT]: Allow scalable fonts by default.
819
64d739c4 820 * emacs.c (main) [HAVE_NTGUI]: Call syms_of_xfaces instead of
c3cee013
JR
821 syms_of_w32faces.
822
823 * makefile.nt (w32faces.obj): Remove.
824 (xfaces.obj): Add.
825
807cc41c
JR
8262000-03-03 Jason Rumney <jasonr@gnu.org>
827
828 * keyboard.c (make_lispy_event): Call buffer_posn_from_coords with
829 correct parameters.
830
0007072a
KR
8312000-03-03 Ken Raeburn <raeburn@gnu.org>
832
833 * unexelf.c (PT_LOAD, SHT_*, SHN_*) [__NetBSD__]: Only provide
834 standard ELF definitions here if the system header does not.
835
71a6ba55
GM
8362000-03-03 Gerd Moellmann <gerd@gnu.org>
837
838 * xterm.c (PER_CHAR_METRIC): Removed.
839 (x_per_char_metric_1, x_default_char): New functions.
840 (x_per_char_metric): If font's default char is invalid, return
841 metrics of a suitably chosen usable default char.
842 (x_draw_glyph_string_foreground): If font has an invalid default
64d739c4
GM
843 char, replace occurrences of unprintable chars with a suitably
844 chosen usable default char.
71a6ba55 845
900fa1f1
GM
8462000-03-02 Gerd Moellmann <gerd@gnu.org>
847
42f55fe0
GM
848 * xterm.c (note_mouse_highlight): Return quickly if frame's
849 glyph matrices have been freed.
850
851 * dispnew.c (free_glyphs): Block input while freeing matrices.
852
900fa1f1
GM
853 * xfns.c (x_clear_image, x_kill_gs_process): Use x_free_colors.
854
855 * xterm.c (x_alloc_lighter_color, x_setup_relief_color): Use
856 x_free_colors.
857
858 * dispextern.h (x_free_colors): Add prototype.
859
860 * xfaces.c (x_free_colors): New function.
861 (unload_color, free_face_colors): Use it.
862
2f950292
EZ
8632000-03-02 Eli Zaretskii <eliz@is.elta.co.il>
864
865 * msdos.h (FRAME_INTERNAL_BORDER_WIDTH): Define to zero.
866
867 * window.c [MSDOS]: Include msdos.h.
868
54d04320
DL
8692000-03-02 Dave Love <fx@gnu.org>
870
871 * m/powerpcle.h, m/sparc.h: Don't set C_OPTIMIZE_SWITCH.
872
873 * m/mips-siemens.h, m/news-r6.h, m/news-risc.h, m/tekxd88.h: Don't
874 set C_OPTIMIZE_SWITCH for gcc.
875
0ba93ac4
KH
8762000-03-02 Kenichi Handa <handa@etl.go.jp>
877
878 * coding.c (coding_save_composition): Be sure to allocate
879 composition data area in coding even if there's no composition in
880 the current run.
881
a2bc11d4
JR
8822000-03-01 Jason Rumney <jasonr@gnu.org>
883
884 * w32term.c: Equivalent changes to those made to xterm.c on
885 2000-02-25 and 2000-02-24.
886
887 * w32fns.c: Equivalent changes to those made to xfns.c on
888 2000-02-25 and 2000-02-21.
889
890 * sysdep.c: [WINDOWSNT]: Use sys_read and sys_write to ensure
891 correct line-end convention is followed.
892
893 * w32menu.c [HAVE_BOXES]: Remove #undef.
894 (single_keymap_panes): Remove code for simulating checkmarks.
895 (single_menu_item): Remove notbuttons_ptr argument. Callers changed.
896 Remove code for drawing simulated checkmarks.
897 (w32_menu_show): make unibyte help string correctly.
898 (add_menu_item): draw standard Windows checkmarks. Draw radio
899 buttons as radio buttons if possible.
900
72d19d75
GM
9012000-03-01 Gerd Moellmann <gerd@gnu.org>
902
2df636f4
GM
903 * sysdep.c (start_of_text): Don't define this function for NetBSD
904 with ELF.
905
906 * m/pmax.h (START_FILES, CANNOT_DUMP) [__NetBSD__ || __OpenBSD__]:
907 Don't define.
908 (UNEXEC) [__NetBSD__ || __OpenBSD__]: Define to unexelf.o.
909 (LINKER): Don't undef if __NetBSD__ is defined.
910
911 * m/mips.h (LINKER) [__NetBSD__ || __OpenBSD__]: Don't define.
912
913 * fileio.c [__NetBSD__]: Define `unix'.
914
72d19d75
GM
915 * xfns.c (start_busy_cursor): Allow floats for busy-cursor-delay.
916
ed4d0512
GM
9172000-02-29 Gerd Moellmann <gerd@gnu.org>
918
50b1039f
GM
919 * atimer.c (start_atimer): Don't abort when timers are stopped.
920 (append_atimer_lists): New function.
921 (cancel_atimer, stop_other_atimers, run_all_atimers): Handle
922 arbitrary lists of stopped and running atimers.
923
ed4d0512
GM
924 * atimer.c (cancel_atimer): Handle canceling an atimer when
925 some timers are stopped.
926
927 * xfns.c (cancel_busy_cursor): Set busy_cursor_atimer to null
928 after canceling it.
929
930 * fns.c (maybe_resize_hash_table): Handle case of new size
931 coming out as being the same as old size.
932
387023ee
JR
9332000-02-27 Jason Rumney <jasonr@gnu.org>
934
935 * makefile.nt: Add atimer.h to dependencies.
936 * w32.c (init_environment): Set Vw32_num_mouse_buttons here.
937 * w32console.c: Only disable window system features for dispextern.h
938 (initialize_w32_display): Build a display info for the console.
939 * w32faces.c (tty_defined_color): Apply xfaces.c change from 02-17.
940 * w32fns.c (w32_wnd_proc) [WM_LBUTTON_DOWN, WM_RBUTTON_DOWN,
941 WM_LBUTTON_UP, WM_RBUTTON_UP]: Do not treat 4 or more button mice
942 as 2 button mice.
943 * w32gui.h (struct W32FontStruct): Revert last change after change
944 to xdisp.c.
945 * w32menu.c (single_submenu): Set up help string.
946 [!HAVE_MULTILINGUAL_MENU]: Don't overwrite item_name with descrip.
947 (w32_dialog_show): Set up help string.
948 * w32term.c (w32_display_info_for_display): Remove unused function.
949 (w32_draw_bitmap): Use pre-built bitmaps.
950 (w32_initialize_display_info): New function to initialize parts of
951 display info that are common to both GUI and console frames.
952 (w32_term_init): Use w32_initialize_display_info. Do not set
953 Vw32_num_mouse_buttons here, as it is not called for console
954 frames. Build bitmaps for indicating truncated lines etc.
955 (x_delete_display): Destroy pre-built bitmaps.
956 * xdisp.c (handle_single_display_prop): Use FONT_HEIGHT macro.
957 (echo_area_display): Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM.
958
4516715a
DL
9592000-02-27 Dave Love <fx@gnu.org>
960
961 * lisp.h: Add a bunch of prototypes.
962
171ca836
KH
9632000-02-26 Kenichi Handa <handa@etl.go.jp>
964
965 * keyboard.c (read_char): Set `usec' correctly.
966
4013921d
KH
9672000-02-25 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
968
969 * ccl.c (ccl_driver) [CCL_MapMultiple]: When the mapped value is
970 `lambda', set reg[RRR] to the map index.
971 (ccl_driver) [CCL_MapSingle]: When the mapped value is found, set
972 reg[RRR] to 0. Otherwise, set it to -1.
973
9244a058
GM
9742000-02-25 Gerd Moellmann <gerd@gnu.org>
975
2df636f4 976 * emacs.c (main): Remove code snippet commented out with `//'.
9244a058 977
f43d79c1
GM
9782000-02-25 Richard M. Stallman <rms@caffeine.ai.mit.edu>
979
980 * fileio.c (Ffile_symlink_p): If result starts with a `/'
981 and contains a `:', prepend `/:'.
982
983 * window.c (select_window_1): If selected_window is nil,
984 don't "swap out" the buffer's point.
985 (Fset_window_configuration): Set selected_window to nil
986 before calling Fselect_window.
987 (unshow_buffer): Don't set point in buffer from window's point
988 if another more recently selected window also shows the buffer.
989
bed0c171
GM
9902000-02-25 Gerd Moellmann <gerd@gnu.org>
991
449c3c52
GM
992 * keyboard.c (recursive_edit_1): Cancel busy-cursor.
993
f5b58615
GM
994 * xfns.c (inhibit_busy_cursor, busy_count): Removed.
995 (Fx_show_busy_cursor, Fx_hide_busy_cursor): Removed.
996 (busy_cursor_atimer, busy_cursor_shown_p, Vbusy_cursor_delay): New
997 variables.
998 (DEFAULT_BUSY_CURSOR_DELAY): New define.
999 (start_busy_cursor, cancel_busy_cursor, show_busy_cursor)
1000 (hide_busy_cursor): New functions.
1001 (syms_of_xfns): DEFVAR_LISP Vbusy_cursor_delay.
1002
1003 * minibuf.c (read_minibuf): Cancel busy-cursor.
1004
1005 * keyboard.c (command_loop_1): Call start_busy_cursor before
1006 Fcommand_execute and cancel_busy_cursor after it.
1007 (timer_check): Remove busy-cursor code.
1008 (Fread_key_sequence, Fread_key_sequence_vector): Start/cancel busy
1009 cursor timer.
1010
1011 * process.c (wait_reading_process_input): Remove busy-cursor code.
1012
1013 * eval.c (Fsignal): Call cancel_busy_cursor instead of
1014 Fx_hide_busy_cursor.
1015
1016 * dispextern.h (Fx_show_busy_cursor, Fx_hide_busy_cursor):
1017 Remove prototyoes.
1018 (start_busy_cursor, cancel_busy_cursor): Add prototypes.
1019
1020 * lisp.h (Fx_hide_busy_cursor): Remove prototype.
1021
1022 * xterm.c (XTread_socket): Remove busy-cursor code.
1023
4eb8436f
GM
1024 * dispnew.c (flush_stdout) [GLYPH_DEBUG]: New function.
1025 (build_frame_matrix_from_leaf_window): Put code handling
1026 glyph row's not being a slice of a frame row in #if 0.
1027 (sync_window_with_frame_matrix_rows): New function.
1028 (frame_row_to_window): New function.
1029 (mirror_line_dance): Handle copies between windows.
1030
3cb65b0e
GM
1031 * lread.c (Fload): Use `xfree' instead of `free'.
1032 (init_obarray): Use `xmalloc' instead of `malloc'.
1033
bed0c171
GM
1034 * window.c (Fset_window_buffer): Set WINDOW to the window
1035 after decoding.
2add4349
GM
1036 (coordinates_in_window): Take frame's internal border width
1037 into account.
bed0c171 1038
42088c12
GM
10392000-02-24 Gerd Moellmann <gerd@gnu.org>
1040
1041 * xterm.c (x_display_and_set_cursor): Display cursor of
1042 non-selected windows depending on the setting of
1043 cursor_in_non_selected_windows.
1044
1045 * xdisp.c (cursor_in_non_selected_windows): New variable.
1046 (syms_of_xdisp): DEFVAR_BOOL it.
1047
d1e103b2
GM
10482000-02-23 Gerd Moellmann <gerd@gnu.org>
1049
723e779c
GM
1050 * data.c (Fstring_to_number): If number is greater than what
1051 fits into an integer, return a float.
1052
d1e103b2
GM
1053 * eval.c (specbind): Remove references to
1054 keyword_symbols_constant_flag.
1055
1056 * data.c (keyword_symbols_constant_flag): Removed.
1057 (Fmakunbound, set_internal, syms_of_data): Remove references to
1058 keyword_symbols_constant_flag.
1059
1060 * bytecode.c (Fbyte_code): Remove keyword_symbols_constant_flag.
1061
214f877f
KH
10622000-02-23 Kenichi Handa <handa@etl.go.jp>
1063
1064 * syntax.c (multibyte_syntax_as_symbol): New variable.
1065 (syms_of_syntax): Declare it as a Lisp variable.
1066 (SYNTAX_WITH_MULTIBYTE_CHECK): New macro.
1067 (scan_lists): If both sexpflag and multibyte_syntax_as_symbol are
1068 nonzero, treat all multibyte characters as symbol.
42088c12 1069 (init_syntax_once): Give syntax `word' to all multibyte
214f877f
KH
1070 characters.
1071
130adcb7
EZ
10722000-02-22 Eli Zaretskii <eliz@is.elta.co.il>
1073
3cb65b0e 1074 * frame.c (Fdelete_frame): Don't let echo_area_window remain on
130adcb7
EZ
1075 a deleted frame.
1076
17cbbf95
GM
10772000-02-21 Gerd Moellmann <gerd@gnu.org>
1078
1079 * frame.c (Fmouse_position): GCPRO retval instead of x and y.
1080
1081 * xfns.c (x_window_to_frame, x_any_window_to_frame)
1082 (x_non_menubar_window_to_frame): Check the busy-cursor window.
1083
beb0bc36
DL
10842000-02-21 Dave Love <fx@gnu.org>
1085
1086 * frame.c (Vmouse_position_function): New variable.
1087 (Fmouse_position): Use it.
1088 (syms_of_frame): Install it.
1089
1090 * charset.c (find_charset_in_str): Fix use of `c' instead of `c1'.
1091
1d92afcd
GM
10922000-02-20 Gerd Moellmann <gerd@gnu.org>
1093
1094 * fileio.c (Finsert_file_contents): Unbind the binding of
1095 standard-output done by temp_output_buffer_setup.
329eed9f
GM
1096
1097 * eval.c (funcall_lambda): Don't bind Qmocklisp_arguments unless
1098 Vmocklisp_arguments is nil. Inline Fcar and Fcdr.
1099 (specbind, unbind_to): Handle most common case of non-constant
1100 symbol with trivial value specially.
1101
1102 * bytecode.c (Fbyte_code) <Bvarset>: Inline most common case.
1103
2d06696f
RS
11042000-02-20 Richard M. Stallman <rms@caffeine.ai.mit.edu>
1105
1106 * data.c (Fmake_variable_buffer_local): Doc fix.
1107 Init found_for_buffer to 0.
1108 (Fmake_variable_frame_local): If the variable has already
1109 been buffer-local, set the check_frame field.
1110
1d4311c3
EZ
11112000-02-20 Eli Zaretskii <eliz@is.elta.co.il>
1112
1113 * msdos.c (IT_write_glyphs): Allocate a larger screen_buf as data
1114 produced for CODING_MODE_LAST_BLOCK requires.
1115
2dc95ddd
DL
11162000-02-18 Dave Love <fx@gnu.org>
1117
1118 * keyboard.c (echo_keystrokes): Remove declaration.
1119 (Vecho_keystrokes) New variable.
1120 (read_char, record_menu_key, read_key_sequence): Use it to allow
1121 use of float value.
1122 (syms_of_keyboard): Change Vecho_keystrokes declaration.
1123
1124 * lread.c: Undef feature selection macros before defining.
1125
f0930f35
GM
11262000-02-18 Gerd Moellmann <gerd@gnu.org>
1127
1128 * data.c (let_shadows_buffer_binding_p): Ignore specbindings
1129 for symbols other than the symbol in question.
1130
e3d4de90
DL
11312000-02-17 Dave Love <fx@gnu.org>
1132
1133 * s/sol2.h (C_DEBUG_SWITCH): Define to allow optimization.
1134
0b378936
GM
11352000-02-17 Gerd Moellmann <gerd@gnu.org>
1136
d621caf7
GM
1137 * emacs.c (main): Use #if GC_MARK_STACK instead of #ifdef.
1138
0b378936
GM
1139 * alloc.c (enum mem_type): Compile unconditionally.
1140
3b451f74
EZ
11412000-02-17 Eli Zaretskii <eliz@is.elta.co.il>
1142
1143 * xfaces.c (tty_defined_color): Don't return faulire indication
1144 for unspecified-fg and unspecified-bg pseudo-colors.
1145
10689a01
GM
11462000-02-17 Gerd Moellmann <gerd@gnu.org>
1147
1216f5e4
GM
1148 * alloc.c (mark_object): Don't mark symbol names in pure space.
1149 (gc_sweep): Don't unmark symbol names in pure space.
1150
1151 * lisp.h (GC_USE_GCPROS_AS_BEFORE, GC_MAKE_GCPROS_NOOPS)
1152 (GC_MARK_STACK_CHECK_GCPROS, GC_USE_GCPROS_CHECK_ZOMBIES)
1153 [GC_MARK_STACK]: New defines.
1154 (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5, UNGCPRO)
1155 [GC_MARK_STACK == GC_MAKE_GCPROS_NOOPS]: Define as no-ops.
1156
1157 * emacs.c (main) [GC_MARK_STACK]: Initialize stack_base.
1158
1159 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use
1160 allocate_buffer instead of xmalloc.
1161
1162 * alloc.c (toplevel): Include setjmp.h.
1163 (PURE_POINTER_P): New define.
1164 (enum mem_type) [GC_MARK_STACK]: New enumeration.
1165 (Vdead) [GC_MARK_STACK]: New variable.
1166 (lisp_malloc): Add parameter TYPE, call mem_insert if
1167 GC_MARK_STACK is defined.
1168 (allocate_buffer): New function.
1169 (lisp_free) [GC_MARK_STACK]: Call mem_delete.
1170 (free_float) [GC_MARK_STACK]: Set type to Vdead.
1171 (free_cons) [GC_MARK_STACK]: Set car to Vdead.
1172 (stack_base, mem_root, mem_z) [GC_MARK_STACK]: New variables.
1173 (MEM_NIL) [GC_MARK_STACK]: New define.
1174 (struct mem_node) [GC_MARK_STACK]: New structure.
1175 (mem_init, mem_find, mem_insert, mem_delete, mem_insert_fixup)
1176 (mem_delete_fixup, mem_rotate_left, mem_rotate_right)
1177 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
1178 (live_misc_p, live_vector_p, live_buffer_p, mark_memory)
1179 (mark_stack) [GC_MARK_STACK]: New functions.
1180 (Fgarbage_collect) [GC_MARK_STACK]: Call mark_stack.
1181 (clear_marks): Removed.
1182 (gc_sweep): Set free conses' car, free floats' type, free
1183 symbols' function to Vdead. Use lisp_free to free buffers.
1184 (init_alloc_once): Initialize Vdead.
1185 (survives_gc_p): Return non-zero for pure objects.
1186
1187 * alloc.c: Add comments throughout the file.
1188
2503c8b1
GM
1189 * atimer.c (stop_other_atimers): Don't call cancel_atimer because
1190 that unblocks alarms.
1191
8389e1e2
GM
1192 * alloc.c, bytecode.c, data.c, dispnew.c, ecrt0.c, editfns.c,
1193 emacs.c, floatfns.c, fns.c, lread.c, print.c, config.in, lisp.h,
1194 Makefile.in: Remove `LISP_FLOAT_TYPE' and `standalone'.
1195
10689a01
GM
1196 * frame.c (make_frame): Set frame initiallly to `garbaged'.
1197
bfc17d18
KH
11982000-02-17 Kenichi Handa <handa@etl.go.jp>
1199
4a09dee0
KH
1200 * xdisp.c (decode_mode_spec_coding): Delete superfluous code to
1201 avoid infinite error signaling. Allocate sufficient memory for
1202 eol_str in the case that eoltype is Lisp_Int.
bfc17d18 1203
2b927d02
SM
12042000-02-17 Stefan Monnier <monnier@cs.yale.edu>
1205
1206 * syntax.c (Fforward_comment): Undo the previous change, since cc-mode
1207 depends on the previous behavior.
1208
b49cb764
GM
12092000-02-16 Gerd Moellmann <gerd@gnu.org>
1210
1211 * sysdep.c (vfork) [!HAVE_VFORK]: Removed.
1212
99e95407
GM
12132000-02-15 Gerd Moellmann <gerd@gnu.org>
1214
1215 * s/freebsd.h (BROKEN_PTY_READ_AFTER_EAGAIN): Define.
1216
1217 * process.c (send_process) [BROKEN_PTY_READ_AFTER_EAGAIN]:
b49cb764 1218 Workaround for FreeBSD bug. Clear output queue after EAGAIN in
99e95407
GM
1219 write(2).
1220
6ffd3cf7
RS
12212000-02-15 Richard M. Stallman <rms@gnu.org>
1222
1223 * data.c (set_internal): Don't make variable buffer-local
1224 if within a let-binding for the same buffer.
1225 (let_shadows_buffer_binding_p): New function.
1226
1227 * eval.c (specbind): For buffer-local value,
1228 record the current buffer also.
1229 (unbind_to): Cope with that change.
1230
cad53475
GM
12312000-02-15 Gerd Moellmann <gerd@gnu.org>
1232
1233 * window.c (Fsave_window_excursion): Doc fix.
1234
1aa963c8
SM
12352000-02-15 Stefan Monnier <monnier@cs.yale.edu>
1236
1237 * syntax.c (back_comment): Make sure we only consider comment-starters
1238 of the relevant style and return -1 in case of a failure to find the
1239 beginning of the comment.
1240 (Fforward_comment): If back_comment fails, go back to the position just
1241 after the comment-end.
1242 (scan_lists): Add comment describing a very minor bug.
1243
b9b84fd3
SM
12442000-02-14 Stefan Monnier <monnier@cs.yale.edu>
1245
1246 * minibuf.c (Ftry_completion, Fall_completions): Add a reference to
1247 `completion-regexp-list' in the docstring.
1248
3a28db80
DL
12492000-02-14 Dave Love <fx@gnu.org>
1250
1251 * xfaces.c (tty_defined_color): Declare color_idx unsigned long.
1252
fb4a568d
SM
12532000-02-14 Stefan Monnier <monnier@cs.yale.edu>
1254
1255 * regex.h (RE_SYNTAX_EMACS): Add RE_CHAR_CLASSES and RE_INTERVALS
1256 to Emacs' syntax. Also fix the comment about set/not-set meanings
1257 since Emacs syntax is not the value 0 any more.
1258 * search.c (compile_pattern_1): Remove RE_CHAR_CLASSES from the syntax
1259 since it's now part of RE_SYNTAX_EMACS.
1260
1063ebb5
DL
12612000-02-12 Dave Love <fx@gnu.org>
1262
1263 * frame.h (SELECTED_FRAME): Use NULL, not 0 to avoid warnings on
1264 Alpha.
1265
fb07a302
GM
12662000-02-12 Gerd Moellmann <gerd@gnu.org>
1267
1268 * xdisp.c (syms_of_xdisp): Doc fix for scroll-conservatively.
1269
aaf2320c
DL
12702000-02-12 Dave Love <fx@gnu.org>
1271
1272 * s/aix3-2.h, s/osf-1.h: Define C_DEBUG_SWITCH for non-gcc.
1273
1274 * s/ux4800.h, s/umips.h, s/umax.h, s/sol2.h, s/sco5.h, s/rtu.h:
fb07a302
GM
1275 * s/ptx4.h, s/umax.h, s/dgux.h, s/bsd4-2.h, s/bsd4-3.h:
1276 * s/hpux.h: Don't define HAVE_VFORK.
aaf2320c
DL
1277
1278 * s/gnu-linux.h: Don't define HAVE_VFORK or HAVE_SYS_SIGLIST.
1279
1280 * s/nextstep.h: Don't define HAVE_ALLOCA.
1281
1282 * config.in: Add vfork bits.
1283
eedf8bde
GM
12842000-02-12 Gerd Moellmann <gerd@gnu.org>
1285
1286 * process.c (Fopen_network_stream) [POLL_FOR_INPUT]: Register
1287 unwind function to undo the effect of stopping atimers.
1288
1289 * keyboard.c (bind_polling_period): Stop all timers except
1290 poll_timer.
1291
1292 * atimer.c (stopped_atimers): New variable.
1293 (stop_other_atimers, run_all_atimers, unwind_stop_other_atimers):
1294 New functions.
1295
1296 * atimer.h (stop_other_atimers, run_all_atimers)
1297 (unwind_stop_other_atimers): Add function prototypes.
1298
1299 * s/hpux10.h (HAVE_XRMSETDATABASE): Define if not already defined.
1300
8476c2f8
KR
13012000-02-11 Ken Raeburn <raeburn@gnu.org>
1302
1303 * Makefile.in (LIBX): Link in tiff library before jpeg, since tiff
1304 library may depend on jpeg.
1305 (atimer.o): Depends on atimer.c.
1306
0e85e4a3
KH
13072000-02-11 Kenichi Handa <handa@etl.go.jp>
1308
1309 * insdel.c (del_range_1): Call update_compositions.
1310 (del_range_both): Call update_compositions just once..
1311
97fa0cc8
DL
13122000-02-10 Dave Love <fx@gnu.org>
1313
1314 * xfns.c (create_frame_xic): Fix initialization of automatic
1315 aggregates for pcc.
1316
25566a3c
KH
13172000-02-09 Kenichi Handa <handa@etl.go.jp>
1318
1319 * ccl.c (CCL_MAKE_CHAR): New macro.
1320 (ccl_driver) <CCL_TranslateCharacter>: Check the validity of
1321 registers by CCL_MAKE_CHAR before calling translate_char.
1322 <CCL_TranslateCharacterConstTbl> Likewise.
1323
69da54ba
DL
13242000-02-08 Dave Love <fx@gnu.org>
1325
1326 * lread.c (__EXTENSIONS__): Define.
1327
f7136ee8
GM
13282000-02-08 Gerd Moellmann <gerd@gnu.org>
1329
1330 * puresize.h (BASE_PURESIZE): Increase to 650000.
1331
7768790b
EZ
13322000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
1333
1334 * msdos.c (XMenuActivate): Turn off the cursor after displaying
1335 the help message.
1336
38fd211b
EZ
13372000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
1338
1339 * s/msdos.h (INTERNAL_TERMINAL): Add capabilities se, so, us, ue,
1340 md, mh, mb, mr, and me to the fake termcap entry.
1341
66e4690f
KR
13422000-02-06 Ken Raeburn <raeburn@gnu.org>
1343
1344 * sound.c (sound_cleanup): Don't call device close routine if the
1345 function pointer is null.
1346
a75dfea0
AI
13472000-02-06 Andrew Innes <andrewi@gnu.org>
1348
1349 * dispextern.h: Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM,
1350 around image definitions and prototypes.
1351 (gamma_correct) [WINDOWSNT]: New prototype.
1352
1353 * w32term.c (x_make_frame_visible): Replace call to
1354 input_poll_signal with poll_for_input.
1355
1356 * window.c [WINDOWSNT]: Include w32term.h.
1357
1358 * xdisp.c [WINDOWSNT]: Include w32term.h.
1359
1360 * makefile.nt: Add dependencies on w32gui.h.
1361 (OBJ1): Include atimer.obj.
1362 ($(BLD)\atimer.obj): New dependency rule.
1363
1364 * w32.c (sigmask): New function (does nothing).
1365 (sigunblock): Ditto.
1366
1367 * frame.c [WINDOWSNT]: Include w32term.h.
1368
1369 * w32gui.h (struct W32FontStruct): Add ascent and descent slots.
1370
1371 * lread.c (syms_of_lread): Fix literal newlines.
1372
1373 * emacs.c (USAGE): Split into USAGE1 and USAGE2, to work-around
1374 the string constant limit (2048 bytes) in MSVC.
1375 (main): Ditto.
1376
59ddecde
GM
13772000-02-05 INOUE Seiichiro <inoue@ainet.or.jp>
1378
1379 * xterm.c (x_display_and_set_cursor) [HAVE_X_I18N]: Set pre-edit
1380 area.
1381 (x_display_cursor) [HAVE_X_I18N]: Don't set it here.
1382 (XTread_socket) [HAVE_X_I18N]: <KeyPress, KeyRelease>: Don't
1383 dispatch the event.
1384
07590973
DL
13852000-02-04 Dave Love <fx@gnu.org>
1386
1387 * fileio.c: Remove some unused vars.
1388 (_GNU_SOURCE): Define (for euidaccess).
1389
1390 * lread.c (_XOPEN_SOURCE): Declare (for ftello).
1391
1392 * minibuf.c (read_minibuf_noninteractive): Remove undeclared
1393 gcpro1, gcpro2.
1394 (read_minibuf): Deal with allow_props correctly.
1395
649351f9
EZ
13962000-02-03 Eli Zaretskii <eliz@is.elta.co.il>
1397
1398 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Enlarge to 60000.
1399
66e4690f 14002000-02-03 Ken Raeburn <raeburn@gnu.org>
f1b9c7c1
KR
1401
1402 * search.c (compile_pattern): If a cache entry has a nil regexp,
1403 fill in that entry instead of clobbering a previously cached
1404 string regexp.
1405
66e4690f 14062000-02-02 Ken Raeburn <raeburn@gnu.org>
15c9cf81
KR
1407
1408 * puresize.h (BASE_PURESIZE): Increase to 610000.
1409
d240a249
GM
14102000-02-02 Gerd Moellmann <gerd@gnu.org>
1411
1412 * frame.c (Fframe_parameters): Add GCPRO because tty_color_name
1413 can GC.
1414
ca91fb26
KH
14152000-02-02 Kenichi Handa <handa@etl.go.jp>
1416
25660570
KH
1417 * ccl.c (ccl_driver) <CCL_WriteExprRegister>: Set jump_address
1418 instead of incrementing ic directly.
1419 <CCL_WriteExprConst> Likewise.
1420 <ccl_set_expr>: Set ic to jump_address.
1421
ca91fb26
KH
1422 * fileio.c (e_write): Fix the handling of
1423 CODING_FINISH_INSUFFICIENT_SRC.
1424
2ede9689
DL
14252000-02-01 Dave Love <fx@gnu.org>
1426
1427 * editfns.c (Fpropertize): Doc fix.
1428
1429 * process.c (Fstart_process): Doc fix.
1430
1431 * eval.c: Fix various doc strings not to duplicate information
1432 from help-manyarg-func-alist.
1433
1434 * window.c (Fset_window_margins): Don't make interactive. Doc
1435 fix.
1436
1437 * doc.c (Vhelp_manyarg_func_alist): New variable.
1438 (Fdocumentation): Use it.
1439 (syms_of_doc): Define it.
1440
b6680a0e
GM
14412000-01-31 Gerd Moellmann <gerd@gnu.org>
1442
2cb750ba
GM
1443 * xterm.c (xim_open_dpy): Remove unused local variable.
1444
74e9213b
GM
1445 * emacs.c (USAGE): Use term `display options' instead of `X
1446 options'.
1447
1448 * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: New function.
1449 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
1450
b6680a0e
GM
1451 * fns.c (sweep_weak_table): New function.
1452 (sweep_weak_hash_tables): Use it. Keep on marking until there
1453 is no more change.
1454
994c5afe
GM
14552000-01-30 Gerd Moellmann <gerd@gnu.org>
1456
1457 * xterm.c (x_delete_display): Update next_noop_dpyinfo to ensure
1458 that XTread_socket does not crash by trying to call XNoOp on a
1459 closed display.
1460
f00276e3
JR
14612000-01-30 Jason Rumney <jasonr@gnu.org>
1462
1463 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
1464 Change selected_frame to SELECTED_FRAME ().
1465 (w32_console_mouse_position): Remove #ifndef MULE from around
1466 `insist' parameter.
1467
1468 * makefile.nt: Remove dosfns.obj.
1469
1470 * term.c (term_init) [WINDOWSNT]: Initialize TN_max_colors.
1471
1472 * w32fns.c (w32_defined_color): Check for valid frame before
1473 applying gamma correction. Eliminate dependency on frame elsewhere.
1474 (w32_load_system_font): Switch FIXED_PITCH and VARIABLE_PITCH.
1475 (w32_to_x_font): Use resx and resy not height_in and width_in.
1476 (x_to_w32_font): Doc fix.
1477 (xlfd_strip_height): New function to strip and return font height.
1478 (w32_font_match): Compare height separately from rest of xlfd
1479 spec, using xlfd_strip_height.
1480
1481 * w32term.c (w32_term_init): Swap resx and height_in, resy and
1482 width_in. Use w32_defined_color in place of defined_color.
1483
1484 * w32faces.c: Merge more of DOS and X specifics in preparation for
1485 merge with xfaces.c.
1486 (defined_color): Remove FIXME comment.
1487 (tty_color_name): Provide w32-specific function.
1488 (realize_tty_face): Handle FACE_TTY_DEFAULT*_COLOR specially.
1489
1490 * w32console.c (turn_on_face, turn_off_face): Removed.
1491 (w32_face_attributes): New function.
1492 (Global_variables): Reduce scope where possible.
1493 (clear_frame, ins_del_lines, scroll_line): Use char_attr_normal as
1494 fill attribute.
1495 (hl_mode): Don't modify text attributes.
1496 (write_glyphs): Don't do anything if len <= 0. Use
1497 w32_face_attributes to get attributes for drawing. Write
1498 terminating codes using char_attr_normal.
1499 (reset_terminal_modes, set_terminal_modes): Turn off highlight.
1500 (update_begin, update_end): Likewise.
1501 (vga_stdcolor_name): New function.
1502 (initialize_w32_display): Remove char_attr_reverse and char_attr.
1503 (Fset_screen_color): Remove char_attr_reverse.
1504
b08e8bb2
GM
15052000-01-29 Gerd Moellmann <gerd@gnu.org>
1506
1507 * xfns.c (xic_set_preeditarea): Take window parameter and
1508 window-relative pixel-positions.
1509
1510 * xterm.c (x_display_cursor): Set XIC pre-edit area only if window
1511 is its frame's selected window.
1512 (xim_instantiate_callback): Likewise.
1513
1514 * xfns.c (x_create_im): Removed.
1515 (DEFAULT_STYLE, DEFAULT_FONT): Removed.
1516 (supported_xim_styles): Renamed from supported_styles.
1517 (best_xim_style): Renamed from best_style.
1518 (create_frame_xic): Renamed from xic_create_frame.
1519 (free_frame_xic): Renamed from xic_destroy_frame.
1520
15212000-01-29 INOUE Seiichiro <inoue@ainet.or.jp>
1522
1523 * xterm.c (XTread_socket) [HAVE_X_I18N]: If event is for none of
1524 our frames, call XFilterEvent with 2nd parameter `None'.
1525 (XTread_socket) <KeyPress> [HAVE_X_I18N]: Handle XmbLookupString
1526 returning XBufferOverflow.
1527 (XTread_socket) <ConfigureNotify> [HAVE_X_I18N]: Set XIC status
1528 area.
1529 (x_display_cursor) [HAVE_X_I18N]: Set XIC pre-edit area.
1530 (x_new_fontset) [HAVE_X_I18N]: Create XIC status area fontset.
1531 (xim_destroy_callback, xim_open_dpy, xim_instantiate_callback)
1532 (xim_initialize, xim_close)
1533 [HAVE_X_I18N && HAVE_X11R6]: New functions.
1534 (x_destroy_window) [HAVE_X_I18N]: Call xic_destroy_frame.
1535 (x_term_init) [HAVE_X_I18N]: Call xim_initialize.
1536 (x_delete_display) [HAVE_X_I18N]: Call xim_close.
1537
1538 * xterm.h (struct x_display_info) [HAVE_X_I18N]: Add members `xim'
1539 and `xim_styles'.
1540 (struct x_output) [HAVE_X_I18N]: Remove member `xim', add
1541 `xic_style' and `xic_xfs'.
1542 (FRAME_MENUBAR_HEIGHT, FRAME_X_XIM, FRAME_X_XIM_STYLES)
1543 (FRAME_XIC_STYLE, FRAME_XIC_FONTSET): New macros.
1544 (FRAME_XIM): Removed.
1545
1546 * xfns.c (supported_styles): New variable.
1547 (DEFAULT_STYLE, DEFAULT_FONT): New macros
1548 (xic_create_xfontset, best_style, xic_create_frame)
1549 (xic_destroy_frame, xic_set_preeditarea, xic_set_statusarea)
1550 (xic_set_xfontset): New functions.
1551
142e109c
DL
15522000-01-28 Dave Love <fx@gnu.org>
1553
1554 * s/irix6-5.h: Revert last change after change to irix5-0.h.
1555
1556 * m/iris4d.h (C_SWITCH_MACHINE): Don't use -G0.
1557
b02786f9
GM
15582000-01-28 Gerd Moellmann <gerd@gnu.org>
1559
d060bc9f
GM
1560 * buffer.c (Fother_buffer): Don't call Fset_buffer_major_mode
1561 for *scratch* if it already existed.
1562
b02786f9
GM
1563 * emacs.c (USAGE): New macro.
1564 (main): Use it to display usage information.
1565
2c52d7e4
EZ
15662000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
1567
1568 Support for the menu-help feature:
1569
1570 * msdos.h: Change prototypes of XMenuAddSelection and
1571 XMenuActivate.
1572
1573 * msdos.c (IT_clear_end_of_line): Print the extent of the cleared
1574 part of the line to the termscript file.
1575 (IT_clear_to_end): Clear the entire line, not just its beginning.
1576 (menu_help_message, prev_menu_help_message): New variables.
1577 (IT_menu_make_room): Make room for the help_text member.
1578 (IT_menu_display): New argument disp_help; all callers changed.
1579 If disp_help is non-zero, store the help text of the active menu
1580 item in menu_help_message.
1581 (XMenuAddPane): Initialize the help_text member to NULL.
1582 (XMenuAddSelection): New argument help_text. Store it in the
1583 XMenu structure.
1584 (XMenuActivate): New argument help_callback. If the value of
1585 menu_help_message has changed since the last time, display the
1586 menu help message text while waiting for the mouse to move. Clear
1587 the echo area before exiting.
1588 (XMenuDestroy): Free the help_text member.
1589
ffe0bcd1
GM
15902000-01-27 Gerd Moellmann <gerd@gnu.org>
1591
1592 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT]: Pass help to
1593 XMenuAddSelection. Pass help callback to XMenuActivate.
1594 (menu_help_callback) [!USE_X_TOOLKIT]: New function.
1595
50dbd23f
EZ
15962000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
1597
1598 * atimer.c (start_atimer) [!HAVE_SETITIMER]: Use EMACS_SET_SECS
1599 and EMACS_SET_USECS.
1600
f5941bf8
GM
16012000-01-26 Dave Love <fx@gnu.org>
1602
6c67ddee
DL
1603 * editfns.c (Fchar_after, Fchar_before): Doc fix.
1604
f5941bf8
GM
1605 * bytecode.c (Fbyte_code): Use {BEFORE,AFTER}_POTENTIAL_GC where
1606 an error may be signalled.
1607
9e49c990
GM
16082000-01-26 Gerd Moellmann <gerd@gnu.org>
1609
fc3cb460
GM
1610 * s/irix6-5.h [__GNUC__ && __GNUC_MINOR__ >= 95]: Undef
1611 LD_SWITCH_SYSTEM inherited from irix5-0.h.
1612
9e49c990
GM
1613 * bytecode.c (Fbyte_code) [BYTE_CODE_SAFE]: Fix typo.
1614
d0c037d8
GM
16152000-01-25 Gerd Moellmann <gerd@gnu.org>
1616
1617 * charset.c (Fstring): If there is a multibyte char among
1618 the args, always return a multibyte string.
1619
e12489f9
GM
16202000-01-25 Gerd Moellmann <gerd@gnu.org>
1621
1622 * sysdep.c (sys_select): Turn atimers off and on instead of
1623 recording and restoring old alarm handler
1624
1625 * process.c (toplevel): Include atimer.h.
1626 (create_process_1): Rewritten.
1627 (create_process): Use atimers instead of alarm.
1628 (wait_reading_process_input) [hpux]: Turn atimers off instead
1629 of turning off SIGALRM.
1630 (wait_reading_process_input): Turn off atimers instead off
1631 calling stop_polling.
1632
1633 * emacs.c (main): Call init_atimer.
1634
1635 * keyboard.c (toplevel): Include systime.h and atimer.h.
1636 (polling_for_input): Removed because unused.
1637 (input_poll_signal) [POLL_FOR_INPUT]: Removed.
1638 (poll_timer): New variable.
1639 (poll_for_input, poll_for_input_1): New functions.
1640 (start_polling, stop_polling): Rewritten.
1641
1642 * keyboard.h (polling_for_input): Removed.
1643
1644 * atimer.h, atimer.c: New files.
1645
1646 * Makefile.in (obj): Add atimer.o.
1647 (atimer.o): New target.
1648
1649 * blockinput.h (pending_atimers): Add extern declaration.
1650 (UNBLOCK_INPUT): Rewritten. Handle pending atimers.
1651
1652 * lisp.h (popup_activated_flag): Add extern declaration.
1653
1654 * xmenu.c (popup_activated_flag): Make externally visible.
1655 (popup_activate_callback) [USE_MOTIF]: Increment
1656 popup_activated_flag.
1657 (popup_deactivate_callback) [USE_MOTIF]: Decrement it.
1658
1659 * xterm.c (toplevel): Include atimer.h.
1660 (toolkit_scroll_bar_interaction): New variable.
1661 (Fxt_process_timeouts): Removed.
1662 (x_process_timeouts): New function.
1663 (xt_action_hook): Clear toolkit_scroll_bar_interaction.
1664 (x_send_scroll_bar_event): Set toolkit_scroll_bar_interaction.
1665 (x_make_frame_visible): Call poll_for_input_1 instead of
1666 input_poll_signal. Don't call alarm.
1667 (x_initialize): Install timer calling x_process_timeouts.
1668
1e5279b9
DL
16692000-01-24 Dave Love <fx@gnu.org>
1670
6c67ddee 1671 * s/irix5-0.h: Don't set LD_SWITCH_SYSTEM -- we use unexelf now.
1e5279b9
DL
1672 Don't use -cckr -- apparently not now necessary.
1673
edf6aeb8
EZ
16742000-01-24 Eli Zaretskii <eliz@is.elta.co.il>
1675
1676 * msdos.c (IT_menu_display): Truncate long menu lines at the right
1677 screen boundary.
1678
9badad41
JR
16792000-01-23 Jason Rumney <jasonr@gnu.org>
1680
1681 * w32fns.c (w32_defined_color): Apply gamma correction before
1682 trying to map to the palette.
1683 (w32_wnd_proc) [WM_ERASE_BACKGROUND]: Pass device context of frame
1684 to w32_clear_rect.
1685
1686 * w32term.c (w32_fill_rect): Do not try to deal with NULL hdc
1687 here. Callers changed to always pass real device context.
1688 (w32_draw_bitmap): Likewise.
1689 (w32_get_glyph_overhangs): Likewise.
1690 (w32_draw_box_rect): Make use of s->hdc rather than getting a new
1691 one.
1692 (w32_set_vertical_scroll_bar): Pass correct HWND parameters to
1693 pfnSetScrollInfo and SetScrollRange.
1694 (x_get_char_face_and_encoding): Don't turn iso8859-1 characters
1695 back into MULE characters after decoding them.
1696 (x_get_glyph_face_and_encoding): Likewise.
1697 (w32_per_char_metric): Use GetCharExtentPoint32W as fallback when
1698 GetCharABCWidthsW fails, since this is defined on Windows 9x.
1699 (x_produce_glyphs): Calculate per char metrics for a character
1700 that we know exists in default font when font_not_found_p is true.
1701
63bd786b
JR
17022000-01-22 Jason Rumney <jasonr@gnu.org>
1703
1704 * makefile.nt (intervals.obj, composite.obj): New modules.
1705 (composite.h): Added as dependency where appropriate.
1706
1707 * w32gui.h (XGCValue): New struct for emulating X GCs.
1708
1709 * w32term.h (XCharStruct): New struct for emulating X.
1710
1711 * w32console.c (turn_on_face, turn_off_face): New functions.
1712 (change_line_highlight): New prototype for new redisplay.
1713 (write_glyphs): Support multibyte text. Support faces.
1714
1715 * w32faces.c: Complete rewrite for new redisplay based on new
1716 xfaces.c.
1717
1718 * w32fns.c: Use SELECTED_FRAME macro in place of selected_frame
1719 throughout. struct frame * in place of FRAME_PTR.
1720 Skeleton support for images, toolbars, tooltips from xfns.c.
1721 (Fx_create_frame): Use system default for default scroll bar
1722 width.
1723 (w32_get_arg): Renamed from x_get_arg.
1724 (Fx_file_dialog): New function.
1725 (w32_list_fonts): Check cache before asking system.
1726 (Vw32_enable_synthesized_fonts): New variable.
1727 (Vw32_enable_italics): Obsolete, removed.
1728
1729 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
1730 Use SELECTED_FRAME macro.
1731
1732 * w32menu.c: Add skeleton support for help strings on menus.
1733 (add_menu_item): Native checkbox and radio support added, but not
1734 yet enabled due to bugs.
1735 (push_menu_item): Add parameters type, selection and help.
1736 Callers updated.
1737 Formatting changes to reduce unnecessary diffs with xmenu.c.
1738
1739 * w32select.c (Fw32_set_clipboard_data): Update call to
1740 find_charset_in_str.
1741
1742 * w32term.c: Complete rewrite for new redisplay based on new
1743 xterm.c with necessary sections merged back in from old w32term.c.
1744
6ffd3cf7 17452000-01-21 Richard M. Stallman <rms@gnu.org>
b50c9214
RS
1746
1747 * data.c (set_internal): Further fix in same criterion.
1748
6ffd3cf7 17492000-01-20 Richard M. Stallman <rms@gnu.org>
8cc95642
RS
1750
1751 * data.c (set_internal): Fix the criteria for whether
1752 to swap out the old cached binding.
1753
60af03f1
DL
17542000-01-19 Dave Love <fx@gnu.org>
1755
1756 * lread.c: (syms_of_lread) [user-init-file]: Doc change.
1757
f9be074f
KH
17582000-01-18 Kenichi Handa <handa@etl.go.jp>
1759
1760 * regex.c (re_compile_fastmap): While checking a range table for
1761 `charset', skip flag bits for a character class correctly.
1762
52b8dbf9
GM
17632000-01-17 Gerd Moellmann <gerd@gnu.org>
1764
d36100c9
GM
1765 * m/news-risc.h (LD_SWITCH_MACHINE): Define differently for GCC.
1766
52b8dbf9
GM
1767 * xfns.c (x_window): Call lw_create_widget with new parameter
1768 list.
1769
1770 * widget.c (EmacsFrameSetCharSize): Change size of children first
1771 because of problems with main window geometry management under
1772 Lesstif.
1773
1774 * xmenu.c (enum menu_item_idx): New enumeration replacing defines
1775 MENU_ITEMS_ITEM_.*.
1776 (MENU_ITEMS_ITEM_HELP): New enumerator.
1777 (push_menu_item): Add parameter HELP. Record help in menu_items.
1778 (single_menu_item, single_submenu, list_of_items): Call
1779 push_menu_item with new parameter.
1780 (single_submenu): Set help string in widget value.
1781 (menu_highlight_callback): New function.
1782 (set_frame_menubar): Call lw_create_widget with new
1783 parameter list.
1784 (xmenu_show, xdialog_show): Ditto.
1785
3139018f
GM
17862000-01-13 Gerd Moellmann <gerd@gnu.org>
1787
1788 * sound.c (Fplay_sound): Improve doc string.
1789
83c8f461
RS
17902000-01-11 Richard M. Stallman <rms@gnu.org>
1791
1792 * lisp.h (set_internal): Enter the new arg.
1793
1794 * eval.c (specbind): Record buffer-local variables specially,
1795 indicating which buffer's binding was saved.
1796 (unbind_to): Restore buffer-local variables specially
1797 in the proper buffer.
1798
1799 * data.c (set_internal): New arg BUF.
1800
1801 * eval.c (specbind, unbind_to): Pass new arg to set_internal.
1802 * data.c (Fset): Pass new arg to set_internal.
1803 * bytecode.c (Fbyte_code): Pass new arg to set_internal.
1804
1fab1775
GM
18052000-01-11 Gerd Moellmann <gerd@gnu.org>
1806
1807 * .gdbinit: Adapt to new strings. Add xbacktrace, xreload,
1808 xprintsym.
1809
83c8f461 18102000-01-11 Richard M. Stallman <rms@gnu.org>
6f59462e
RS
1811
1812 * minibuf.c (Ftry_completion): Doc fix.
1813
7a85e4df
GM
18142000-01-11 Gerd Moellmann <gerd@gnu.org>
1815
1816 * keyboard.c (Fclear_this_command_keys): Clear recent_keys
1817 vector, too.
1818
a970dae4
AS
18192000-01-11 Andreas Schwab <schwab@suse.de>
1820
1821 * coding.c (code_convert_region): Initialize total_skip.
1822
c65d14ee
DL
18232000-01-08 Dave Love <fx@gnu.org>
1824
1825 * eval.c (Fuser_variable_p): Check customizability too.
1826
834938d2
GM
18272000-01-07 Gerd Moellmann <gerd@gnu.org>
1828
1829 * minibuf.c (Fcompleting_read): Doc fix.
1830
e0303cd6
GM
18312000-01-05 Gerd Moellmann <gerd@gnu.org>
1832
8a26744b
GM
1833 * s/freebsd.h (C_SWITCH_SYSTEM): Add -I /usr/local/include and
1834 -L /usr/local/lib.
1835
e0303cd6
GM
1836 * xfns.c (x_create_im): New function to set IM and IC of a frame.
1837 Check that input style is supported before trying to create an
1838 IC for it.
1839 (x_window): Call x_create_im.
1840
2e471eb5
GM
18412000-01-04 Gerd Moellmann <gerd@gnu.org>
1842
560a7bd2
GM
1843 * xfns.c (current_gif_memory_src): New variable.
1844 (gif_load): Record the address of the current memory source
1845 in current_gif_memory_src.
1846 (gif_read_from_memory): Use current_gif_memory_src.
1847
f9ee84a3
GM
1848 * systime.h (EMACS_GET_TIME, EMACS_ADD_TIME, EMACS_SUB_TIME): Give
1849 macros statement form.
1850
d1299cde
GM
1851 * sound.c (struct sound): Renamed from struct sound_file.
1852 (struct sound): Add members `data' and `header_size'.
1853 (enum sound_attr): Add SOUND_DATA.
1854 (current_sound, current_sound_device): Variables renamed from
1855 sound_file and sound_device.
1856 (parse_sound): Parse :data.
1857 (parse_sound): Handle sound data in strings.
1858 (find_sound_type): Function renamed from find_sound_file_type.
1859 (wav_init, au_init): Fail if sound's header_size is smaller than
1860 needed header size.
1861 (wav_play, au_play): Play sounds from string data.
1862
2e471eb5
GM
1863 * puresize.h (BASE_PURE_SIZE): Increase to 600000.
1864
1865 * lisp.h: Add prototype for allocate_string_data.
1866
1867 * alloc.c (Fgarbage_collect): Return number of live and free
1868 strings.
1869
1870 * alloc.c (mark_buffer): Remove code in #if 0.
1871 (gc_sweep): Ditto.
1872 (UNMARK_BALANCE_INTERVALS): Give the macro statement form.
1873 (strings_consed): New variable.
1874 (allocate_string): Set it.
1875 (syms_of_alloc): Add DEFVAR_INT for strings_consed.
1876 (Fmemory_use_counts): Return strings_consed. Use Flist.
1877
1878 * alloc.c: General cleanup in comments etc. Remove conditional
1879 compilation for `standalone'.
1880
1881 * lisp.h (struct Lisp_String): Make DATA member `unsigned char *'.
1882
1883 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P):
1884 (GC_STRING_BYTES, GC_STRING_CHARS): New macros.
1885 (DONT_COPY_FLAG): Removed.
1886 (SBLOCK_SIZE, LARGE_STRING_BYTES): New macros.
1887 (struct sdata, struct sblock): New
1888 (struct string_block): Rewritten.
1889 (STRINGS_IN_STRING_BLOCK): New macro.
1890 (oldest_sblock, current_sblock, total_strings, total_free_strings)
1891 (large_sblocks, string_blocks, string_free_list): New variables.
1892 (NEXT_FREE_LISP_STRING, SDATA_OF_STRING, SDATA_SIZE): New macros.
1893 (init_strings): Rewritten.
1894 (allocate_string, allocate_string_data, compact_small_strings)
1895 (free_large_strings, sweep_strings): New functions.
1896 (STRING_BLOCK_SIZE, STRING_BLOCK_OUTSIZE)
1897 (struct string_block_head, current_string_block)
1898 (first_string_block, large_string_blocks, STRING_FULLSIZE)
1899 (STRING_PAD): Removed.
1900 (make_uninit_multibyte_string, make_pure_string): Rewritten.
1901 (Fgarbage_collect): Don't set mark bit in large strings.
1902 (mark_object): Mark strings differently. Mark symbol names
1903 differently.
1904 (survives_gc_p): Test marked strings differently.
1905 (gc_sweep): Sweep strings differently, unmark strings in
1906 symbol names.
1907 (compact_strings): Removed.
1908
42608ba8
EZ
19092000-01-04 Eli Zaretskii <eliz@is.elta.co.il>
1910
1911 * xfaces.c (syms_of_xfaces): defsubr Scolor_gray_p and
1912 Scolor_supported_p even if HAVE_X_WINDOWS is not defined.
1913
e0a09e1a
KH
19142000-01-04 Kenichi Handa <handa@etl.go.jp>
1915
dd9f0750
KH
1916 * fileio.c (Finsert_file_contents): Signal error if visiting file
1917 in a non-empty buffer.
1918
3c0f3b15 1919 * term.c (encode_terminal_code): Fix the previous change.
e0a09e1a 1920
44cd3ae5
GM
19212000-01-03 Gerd Moellmann <gerd@gnu.org>
1922
1923 * xfaces.c (syms_of_xfaces): Change Sface_color_gray_p to
1924 Scolor_gray_p, Sface_color_supported_p to Scolor_supported_p.
1925
1926 * s/hpux9.h (NO_EDITRES): Define even if HAVE_LIBXMU.
1927
c182a70f
EZ
19282000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
1929
1930 * xdisp.c (handle_single_display_prop) [HAVE_WINDOW_SYSTEM]: No
1931 need to test for MSDOS frames.
1932
24480d5b
EZ
19332000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
1934
1935 * dosfns.c (unspecified_colors): Remove.
1936 (msdos_stdcolor_idx): Use global variables unspecified_fg and
1937 unspecified_bg.
1938 (msdos_stdcolor_name): Return strings for unspecified fore- and
1939 back-ground colors.
1940
1941 * xfaces.c (Qunspecified_fg, Qunspecified_bg): Remove.
aaf2320c 1942 (syms_of_xfaces): Remove their staticpro's.
24480d5b
EZ
1943 (tty_color_name): Return Lisp strings for unspecified fore- and
1944 back-ground colors.
1945 (Finternal_set_lisp_face_attribute): Remove the special treatment
1946 for Qunspecified_{f,b}g.
1947 (realize_default_face): Replace Qunspecified_{f,b}g with a Lisp
1948 string.
1949
047f434a
GM
19502000-01-03 Gerd Moellmann <gerd@gnu.org>
1951
1952 * xdisp.c (reseat_at_next_visible_line_start): Position before
1953 newline only if ending up on a newline.
1954 (next_element_from_ellipsis): Return success. Handle case of
1955 displaying no ellipsis. Fix case of ellipsis defined in display
1956 table.
1957 (next_element_from_buffer): Return 0 if next_element_from_ellipsis
1958 returns 0.
1959
d684c676
EZ
19602000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
1961
1962 * xfaces.c (Fcolor_gray_p): Renamed from face-color-gray-p.
1963 (Fcolor_supported_p): Renamed from face-color-supported-p.
1964
5fe1d139
EZ
19652000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
1966
1967 * xfaces.c (tty_defined_color): Pass frame to tty-color-desc. The
1968 list of colors renamed to tty-defined-color-alist.
1969 (tty_color_name): Pass the frame to tty-color-by-index.
1970 (realize_tty_face): tty-color-alist is now a function which
1971 accepts the frame as argument.
1972
1973 * term.c (Ftty_display_color_p): Accept an optional argument
1974 FRAME.
1975
816be8b8
EZ
19762000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
1977
1978 * term.c (insert_glyphs): Pass glyph, not &glyph, to
1979 encode_terminal_code.
1980
b635321e
EZ
19812000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
1982
1983 * dispnew.c (mode_line_string): Support termcap frames as well.
1984
9b784e96
GM
19852000-01-01 Gerd Moellmann <gerd@gnu.org>
1986
27189709
GM
1987 * syntax.c (Fforward_word): Undo previous change.
1988
1989 * editfns.c (Fconstrain_to_field): Don't constrain if
1990 inhibit-field-text-motion is non-nil.
1991 (Fline_beginning_position): Undo previous change.
1992 (Fline_end_position): Ditto.
1993
1994 * syntax.c (Fforward_word): Notice field boundaries only if
1995 inhibit-field-text-motion is nil.
1996
1997 * lisp.h: Add extern declaration for Vinhibit_field_text_motion.
1998
1999 * editfns.c (Vinhibit_field_text_motion): New variable.
2000 (inhibit-field-text-motion): New DEFVAR_LISP.
2001 (Fline_beginning_position, Fline_end_position): Notice field
2002 boundaries only if inhibit-field-text-motion is nil.
2003
45158a91
GM
2004 * xfns.c (x_create_x_image_and_pixmap): Remove parameter FILE.
2005 All calls adjusted.
2006 (x_build_heuristic_mask): Likewise.
2007 (xbm_load_image_from_file): Change error output.
2008 (xbm_load, xpm_load, pbm_load, png_load, jpeg_load, tiff_load)
2009 (gif_load, gs_load, x_kill_gs_process): Ditto.
2010
9b784e96
GM
2011 * xfns.c (gif_load): Avoid sign extension and thus out of bounds
2012 color indices when accessing raster pixels.
63cec32f
GM
2013 (gif_image_p, png_image_p, jpeg_image_p, tiff_image_p): Allow only
2014 one of :file or :data.
2015 (enum pbm_keyword_index): Add PBM_DATA.
2016 (pbm_format): Add :data.
2017 (pbm_image_p): Allow either :file or :data.
2018 (pbm_read_file): New function.
2019 (pbm_scan_number): Rewritten to read from string.
2020 (pbm_load): Support :data.
9b784e96 2021
5ad6a5fb
GM
20221999-12-31 Gerd Moellmann <gerd@gnu.org>
2023
2024 * xfns.c: New image functions adapted to Emacs conventions.
2025 (png_load, tiff_load, jpeg_load, gif_load): Always GCPRO local
2026 variable `file'.
2027
63448a4d
WP
20281999-12-31 William M. Perry <wmperry@aventail.com>
2029
2030 * xfns.c (jpeg_format): Added the :data keyword
2031 (jpeg_image_p): JPEG is valid with :file _or_ :data
2032 (jpeg_memory_src): Defined new JPEG image source to read from a
2033 memory buffer.
2034 (jpeg_load): Pay attention to the :data keyword if specified.
2035 Instantiates a jpeg_memory_src instead of jpeg_stdio_src if
2036 found.
2037 (png_format): Added the :data keyword
2038 (png_image_p): PNG is valid with :file _or_ :data
2039 (png_read_from_memory): New PNG read function to read from a
2040 memory buffer.
2041 (png_load): Pay attention to the :data keyword if specified. Uses
2042 png_set_read_fn() instead of png_init_io() if specified.
2043 (tiff_format): Added the :data keyword for TIFF images.
2044 (tiff_image_p): TIFF is valid with :file _or_ :data
2045 (tiff_read_from_memory): Defined new TIFF I/O functions to read
2046 from a memory buffer.
2047 (tiff_load): Pay attention to the :data keyword if specified.
2048 Uses TIFFClientOpen() instead of TIFFOpen() if specified.
2049 (gif_format): Added the :data keyword
2050 (gif_image_p): GIF is valid with :file _or_ :data
2051 (gif_read_from_memory): New GIF input function to read from a
2052 memory buffer.
c65d14ee 2053 (gif_load): Pay attention to the :data keyword. Uses DGifOpen()
63448a4d
WP
2054 instead of DGifOpenFileName() if specified.
2055
c880678e
GM
20561999-12-31 Gerd Moellmann <gerd@gnu.org>
2057
2058 * xdisp.c (next_element_from_buffer): Change assertion at the end
2059 because it doesn't hold when there's an overlay string at the end
2060 from which we deliver an image.
2061
8ccb9a54
EZ
20621999-12-30 Eli Zaretskii <eliz@is.elta.co.il>
2063
2064 * msdos.c (IT_update_begin): Don't dereference members of struct
2065 window for deleted windows.
2066
12ce2351
GM
20671999-12-30 Gerd Moellmann <gerd@gnu.org>
2068
a915c648
GM
2069 * abbrev.c (Fexpand_abbrev): If expanding an abbrev which has only
2070 a hook, and the hook has a non-nil `no-self-insert' property, let
2071 the return value of the hook specify whether an expansion took
2072 place. If it returns nil, no expansion has been performed.
2073
12ce2351
GM
2074 * xterm.c (x_make_frame_visible): Wait for frame becoming visible
2075 differently.
2076
04ee4f45
EZ
20771999-12-30 Eli Zaretskii <eliz@is.elta.co.il>
2078
2079 * msdos.c (IT_write_glyphs): Track last changes to struct glyph.
2080
7f4bc0c3
EZ
20811999-12-29 Eli Zaretskii <eliz@is.elta.co.il>
2082
2083 * dispnew.c (mode_line_string): Support MS-DOS frames.
2084
dac204bc
GM
20851999-12-29 Gerd Moellmann <gerd@gnu.org>
2086
2087 * eval.c (syms_of_eval): Initialize debugger_may_continue.
2088
7b712ad8
KH
20891999-12-29 Kenichi Handa <handa@etl.go.jp>
2090
2091 * process.c (read_process_output): Fix the args CHARPOS and LENINS
2092 to signal_after_change.
2093
adb9900f
EZ
20941999-12-28 Eli Zaretskii <eliz@is.elta.co.il>
2095
41ad069b
EZ
2096 * msdos.c (dos_set_window_size) [__DJGPP__ > 1]: If the frame
2097 dimensions changed, invalidate the mouse highlight info.
2098 (disable_mouse_highlight, help_echo, previous_help_echo): New
2099 variables.
2100 (IT_set_mouse_pointer, show_mouse_face, clear_mouse_face)
2101 (fast_find_position, IT_note_mode_line_highlight)
2102 (IT_note_mouse_highlight): New functions.
2103 (IT_update_begin): If the redisplay affects the window where the
2104 mouse highlight is, clear the highlight. If the frame where the
2105 highlight was displayed was killed, invalidate the highlight
2106 info.
2107 (IT_update_end): Reset the highlight flag. Reset the mouse
2108 highlight-defer flag.
2109 (IT_frame_up_to_date): New function, if mouse highlight was
2110 deferred due to GC, do it now.
2111 (internal_terminal_init): Initialize mouse-highlight related
2112 members of the_only_x_display. Assign IT_frame_up_to_date to
2113 frame_up_to_date_hook.
2114 (dos_rawgetc): If the mouse moved, update mouse highlight. If
2115 help_echo changed value, generate a HELP_EVENT event.
2116 (syms_of_msdos): Staticpro help_echo and previous_help_echo.
2117
adb9900f
EZ
2118 * msdos.h (struct display_info): New.
2119 (struct x_output): Add the display_info member.
2120 (FRAME_X_DISPLAY_INFO): New macro.
2121
481b5054
GM
21221999-12-28 Gerd Moellmann <gerd@gnu.org>
2123
2124 * xdisp.c (try_window_id): Compute BEG_UNCHANGED and END_UNCHANGED
2125 if MODIFF > 1.
6448a6b3 2126 (dump_glyph_row): Adapt to changes in struct glyph.
481b5054
GM
2127
2128 * buffer.c (modify_overlay): Always compute unchanged info.
2129
a2882b0d
KH
21301999-12-27 Kenichi Handa <handa@etl.go.jp>
2131
2132 * dispextern.h (FACE_FROM_ID): Cast the arg ID to `unsigned'.
2133
89ba5b5f
KH
21341999-12-27 Kenichi Handa <handa@etl.go.jp>
2135
2136 The following changes are to use more bits for face IDs.
2137
2138 * lisp.h (GLYPH): Defined as `int', not `unsigned int'. Now the
2139 lowest 8 bits are single byte character code, the bits above are
2140 face ID.
481b5054 2141 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjusted for the change
89ba5b5f 2142 above.
481b5054
GM
2143 (FAST_MAKE_GLYPH, FSST_GLYPH_FACE): Likewise.
2144 (GLYPH_MASK_REV_DIR, GLYPH_MASK_PADDING): Macros deleted.
89ba5b5f
KH
2145
2146 * charset.h (CHAR_BYTES): Use ((1 << CHARACTERBITS) - 1) instead
2147 of GLYPH_MASK_CHAR.
2148
2149 * charset.c (char_bytes): Use ((1 << CHARACTERBITS) - 1) instead
2150 of GLYPH_MASK_CHAR.
2151
2152 * dispextern.h (struct glyph): Make face_id and padding_p the top
2153 level members. Change members in union `u'.
2154 (GLYPH_EQUAL_P): Check also members face_id and padding_p.
2155 (GLYPH_CHAR_AND_FACE_EQUAL_P): New macro.
2156 (SET_CHAR_GLYPH): Adjusted for the change of struct glyph.
2157 (CHAR_GLYPH_PADDING_P): Likewise.
2158 (GLYPH_FROM_CHAR_GLYPH): Likewise. Always return -1 for multibyte
2159 characters.
2160
481b5054 2161 * dispnew.c (line_hash_code, direct_output_for_insert): Adjusted
89ba5b5f
KH
2162 for the change of struct glyph.
2163 (line_draw_cost): Adjusted for the change of
2164 GLYPH_FROM_CHAR_GLYPH.
2165 (count_match): Use macro GLYPH_CHAR_AND_FACE_EQUAL_P.
2166
2167 * term.c (encode_terminal_code): Adjusted for the change of struct
2168 glyph and GLYPH_FROM_CHAR_GLYPH.
481b5054 2169 (write_glyphs, insert_glyphs, append_glyph): Adjusted for the
89ba5b5f
KH
2170 change of struct glyph.
2171
2172 * xdisp.c: All codes adjusted for the change of struct glyph.
2173
2174 * xterm.c: All codes adjusted for the change of struct glyph.
2175
5bcd116c
KH
21761999-12-27 Kenichi Handa <handa@etl.go.jp>
2177
2178 * composite.h (struct composition): Change the order of declaring
2179 members to reduce the byte size of the structure.
2180
f21b06b7
GM
21811999-12-25 Gerd Moellmann <gerd@gnu.org>
2182
2183 * search.c (looking_at_1): Reset immediate_quit before modifying
2184 global data.
2185
e36557c9
KH
21861999-12-24 Kenichi Handa <handa@etl.go.jp>
2187
2188 * process.c (read_process_output): Fix the arg FROM to
2189 update_compositions.
2190
83c8f461 21911999-12-22 Richard M. Stallman <rms@gnu.org>
f7c9e039
RS
2192
2193 * search.c (Freplace_match): For nonliteral replacement in buffer,
2194 construct all the new text first, then insert all at once.
2195
0b863bd9
DL
21961999-12-22 Dave Love <fx@gnu.org>
2197
2198 * xfns.c (Fx_show_tip): Gcpro `timeout' too.
2199
6d8e8ef3
GM
22001999-12-22 Gerd Moellmann <gerd@gnu.org>
2201
28d7281d
GM
2202 * xfns.c (Fx_create_frame): Move x_default_parameter calls that
2203 lead to size changes to after the X window has been created.
2204
e22ef6eb 2205 * xfaces.c (realize_x_face): Don't use uninitialized local
6d8e8ef3
GM
2206 variable in xassert.
2207
8affcced
KH
22081999-12-22 Kenichi Handa <handa@etl.go.jp>
2209
2210 * xfaces.c (face_color_supported_p): Check by tty_defined_color
6d8e8ef3 2211 only when the frame is not for a window system.
8affcced 2212
f2be1146
GM
22131999-12-22 Gerd Moellmann <gerd@gnu.org>
2214
deca1348
GM
2215 * buffer.c (Fset_buffer_multibyte): Arrange for a thorough
2216 redisplay after changing the multibyteness of a buffer.
2217
f2be1146
GM
2218 * xterm.c (XTread_socket): At the beginning of the loop, pass the
2219 frame's X window to XFilterEvent instead of None because that's
2220 the X window for which the IC was created. This makes dead
2221 accents work when the pointer is not in Emacs' frame.
2222 (XTread_socket) <KeyPress>: Don't call XFilterEvent here.
2223
a744a2ec
DL
22241999-12-20 Dave Love <fx@gnu.org>
2225
2226 * xfns.c (Fx_show_tip): Add missing UNGCPRO.
2227
9e6985ed
GM
22281999-12-19 Gerd Moellmann <gerd@gnu.org>
2229
2230 * eval.c (debugger_may_continue): New variable.
2231 (syms_of_eval): Add a DEFVAR_BOOL for it.
2232 (call_debugger): Bind it.
2233
3b620731
EZ
22341999-12-19 Eli Zaretskii <eliz@is.elta.co.il>
2235
2236 * msdos.c (IT_set_face): Don't swap face colors when highlight or
2237 fp->tty_reverse_p is set, unless the computed colors are identical
2238 to frame colors. Print both original and computed colors to
2239 termscript file.
2240 (IT_write_glyphs): Track the changes in handling of composite
2241 characters.
2242 (IT_set_frame_parameters): Don't set frame colors from
2243 unspecified-fg and unspecified-bg pseudo-colors.
2244
0f9a51c4
DL
22451999-12-17 Dave Love <fx@gnu.org>
2246
2247 * data.c (Fkeywordp): New function.
2248 (syms_of_data): Install it.
2249
363e4e42
EZ
22501999-12-16 Eli Zaretskii <eliz@is.elta.co.il>
2251
2252 * xfaces.c (tty_defined_color): Fix last change.
2253
cfad01b4
GM
22541999-12-15 Gerd Moellmann <gerd@gnu.org>
2255
2256 * xdisp.c (redisplay_window) <optional new window start>: Check
2257 that window start is in [BEGV..ZV].
2258
f9d2fdc4
EZ
22591999-12-15 Eli Zaretskii <eliz@is.elta.co.il>
2260
2261 * dispextern.h (FACE_TTY_DEFAULT_FG_COLOR)
2262 (FACE_TTY_DEFAULT_BG_COLOR): New macros.
2263
2264 * xfaces.c (Qunspecified_fg, Qunspecified_bg): New variables.
2265 (syms_of_xfaces): Initialize and staticpro them.
2266 (tty_defined_color): If the color name is unspecified-fg or
2267 unspecified-bg, return FACE_TTY_DEFAULT_FG_COLOR and
2268 FACE_TTY_DEFAULT_BG_COLOR, respectively, as the pixel value.
2269 (tty_color_name): If the color pixel value is either
2270 FACE_TTY_DEFAULT_FG_COLOR or FACE_TTY_DEFAULT_BG_COLOR, return
2271 Qunspecified_fg or Qunspecified_bg, respectively.
2272 (Finternal_set_lisp_face_attribute): Allow values Qunspecified_fg
2273 and Qunspecified_bg for foreground and background colors.
2274 (realize_default_face): If the foreground and background colors
2275 are not specified, default to Qunspecified_fg and Qunspecified_bg.
2276 (realize_tty_face): By default, set the face colors to
2277 FACE_TTY_DEFAULT_FG_COLOR and FACE_TTY_DEFAULT_BG_COLOR.
2278 [MSDOS]: Handle FACE_TTY_DEFAULT_FG_COLOR and
2279 FACE_TTY_DEFAULT_BG_COLOR when face colors are not defined.
2280 Reverse the colors if the default colors were reversed.
2281
2282 * dispnew.c (init_display): Initialize the frame pixels of the
2283 initial frame to FACE_TTY_DEFAULT_FG_COLOR and
2284 FACE_TTY_DEFAULT_BG_COLOR.
2285
2286 * term.c (turn_on_face): If the default fore- and background
2287 colors are reversed, enter inverse video mode. Don't send color
2288 escape sequences for unspecified foreground and background colors.
2289 (turn_off_face): Handle unspecified-fg and unspecified-bg colors.
2290
2291 * dosfns.c (unspecified_colors): New variable.
2292 (msdos_stdcolor_idx): Handle unspecified-fg and unspecified-bg
2293 color names, return FACE_TTY_DEFAULT_FG_COLOR and
2294 FACE_TTY_DEFAULT_BG_COLOR, respectively.
2295 (msdos_stdcolor_name): Handle FACE_TTY_DEFAULT_FG_COLOR and
2296 FACE_TTY_DEFAULT_BG_COLOR, return Qunspecified_fg and
2297 Qunspecified_bg, respectively.
2298
2299 * msdos.c (IT_set_face): Support FACE_TTY_DEFAULT_FG_COLOR and
2300 FACE_TTY_DEFAULT_BG_COLOR as pixel values.
2301
e19539f1
KH
23021999-12-15 Kenichi Handa <handa@etl.go.jp>
2303
2304 * coding.c (code_convert_region): Fix the secoding arg to
2305 update_compositions.
2306
5ec14d3c
KH
23071999-12-15 Kenichi Handa <handa@etl.go.jp>
2308
2309 The following changes are for the new composition mechanism. We
2310 have deleted `composition' charset and composite characters,
2311 instead introduced a special text property `composition'.
2312
2313 * Makefile.in (INTERVAL_SRC): Include composite.h.
2314 (INTERVAL_OBJ): Include composite.o.
2315 (SOME_MACHINE_OBJECTS): Include composite.o.
2316 (casefiddle.o) (dispnew.o) (indent.o) (process.o) (search.o)
2317 (syntax.o) (window.o) (xdisp.o) (xfaces.o) (xterm.o) (print.o):
2318 Depend on composite.h.
2319 (doc.o): Depend on charset.h.
2320 (keyboard.o) (textprop.o) (intervals.o): Depend on INTERVAL_SRC.
2321 (composite.o): New target.
2322
2323 * alloc.c (Fmake_string): Adjusted for the change of CHAR_STRING.
2324
2325 * callproc.c (Fcall_process): Call code_convert_string to encode
2326 arguments. Use CODING_REQUIRE_DECODING to check if the process
2327 output should be decoded.
2328
2329 * casefiddle.c: Include composite.h.
2330 (casify_object): Use MAX_MULTIBYTE_LENGTH to allocate memory for a
2331 multibyte character. Adjusted for the change of CHAR_STRING.
2332 (casify_region): Likewise. Call update_compositions.
2333
2334 * category.h (CATEGORY_SET): Delete codes for a composite
2335 character.
2336
2337 * category.c (word_boundary_p): Delete codes for a composite
2338 character.
2339 (Fmake_category_table): New function.
2340 (syms_of_category): Defsubr it.
2341
2342 * ccl.c (CCL_WRITE_CHAR): Adjusted for the change of CHAR_STRING.
2343 (ccl_driver): Delete codes for a composite character.
2344
2345 * charset.h: In this entry, just `Modified' means that codes for a
2346 composite character is deleted.
2347 (LEADING_CODE_COMPOSITION) (CHARSET_COMPOSITION)
2348 (charset_composition) (MIN_CHAR_COMPOSITION)
2349 (MAX_CHAR_COMPOSITION) (GENERIC_COMPOSITION_CHAR)
2350 (COMPOSITE_CHAR_P) (MAKE_COMPOSITE_CHAR) (COMPOSITE_CHAR_ID)
2351 (PARSE_COMPOSITE_SEQ) (PARSE_CHARACTER_SEQ): Deleted.
2352 (MAX_CHAR) (CHARSET_VALID_P) (CHARSET_DEFINED_P) (CHARSET_AT)
2353 (FIRST_CHARSET_AT) (SAME_CHARSET_P) (MAKE_NON_ASCII_CHAR)
2354 (PARSE_MULTIBYTE_SEQ) (SPLIT_NON_ASCII_CHAR) (CHAR_PRINTABLE_P):
2355 Modified.
2356 (SPLIT_STRING): Call split_string, not split_non_ascii_string.
2357 (CHAR_STRING): Delete WORKBUF argument. Call char_string, not
2358 non_ascii_char_to_string.
2359 (STRING_CHAR): Call string_to_char, not string_to_non_ascii_char.
2360 (STRING_CHAR_AND_LENGTH): Likewise.
2361 (FETCH_CHAR_ADVANCE): New macro.
2362 (MAX_COMPONENT_COUNT) (struct cmpchar_info): Deleted.
2363 (MAX_MULTIBYTE_LENGTH): New macro.
2364 (MAX_LENGTH_OF_MULTI_BYTE_FORM): Deleted.
2365 (find_charset_in_str): Argument adjusted.
2366 (CHAR_LEN): Modified.
2367
2368 * charset.c: In this entry, just `Modified' means that codes for a
2369 composite character is deleted.
2370 (Qcomposition) (leading_code_composition)
2371 (charset_composition) (min_composite_char) (cmpchar_table)
2372 (cmpchar_table_size) (n_cmpchars): Deleted.
2373 (SPLIT_COMPOSITE_SEQ): Deleted.
2374 (SPLIT_MULTIBYTE_SEQ): Modified.
2375 (char_to_string): Renamed from non_ascii_char_to_string.
2376 Modified.
2377 (string_to_char): Renamed from string_to_non_ascii_char.
2378 (split_string): Renamed from split_non_ascii_string.
2379 (char_printable_p) (Fsplit_char)
2380 (Ffind_charset_region) (Ffind_charset_string) (char_valid_p)
2381 (char_bytes) (Fchar_width) (strwidth): Modified.
2382 (find_charset_in_str): Argument CMPCHARP deleted. Modified.
2383 (Fstring): Adjusted for the change of CHAR_STRING. Modified.
2384 (hash_string) (CMPCHAR_HASH_TABLE_SIZE) (cmpchar_hash_table)
2385 (CMPCHAR_HASH_SIZE) (CMPCHAR_HASH_USED) (CMPCHAR_HASH_CMPCHAR_ID)
2386 (str_cmpchar_id) (cmpchar_component) (Fcmpcharp)
2387 (Fcmpchar_component) (Fcmpchar_cmp_rule) (Fcmpchar_cmp_rule_p)
2388 (Fcmpchar_cmp_count): Deleted.
2389 (Fcompose_string): Implemented by Emacs Lisp in composite.el.
2390 (init_charset_once): Modified.
2391 (syms_of_charset): Modified.
2392
2393 * cmds.c (internal_self_insert): Adjusted for the change of
2394 CHAR_STRING.
2395
2396 * coding.h (emacs_code_class_type): Delete the member
2397 EMACS_leading_code_composition.
2398 (COMPOSING_NO) (COMPOSING_WITH_RULE_HEAD) (COMPOSING_NO_RULE_HEAD)
2399 (COMPOSING_WITH_RULE_TAIL) (COMPOSING_NO_RULE_TAIL)
2400 (COMPOSING_WITH_RULE_RULE) (COMPOSING_HEAD_P)
2401 (COMPOSING_WITH_RULE_P): Macros deleted.
2402 (COMPOSITION_DATA_SIZE) (COMPOSITION_DATA_MAX_BUNCH_LENGTH): New
2403 macros.
2404 (struct composition_data): New structure.
2405 (CODING_FINISH_INSUFFICIENT_CMP): New macro.
2406 (struct coding_system): New members composition_rule_follows,
2407 cmp_data, cmp_data_start, cmp_data_index.
2408 (coding_save_composition) (coding_free_composition_data)
2409 (coding_adjust_composition_offset): Extern them.
2410
2411 * coding.c: Include composite.h.
2412 (DECODE_CHARACTER_ASCII): Don't handle composition here.
2413 (DECODE_CHARACTER_DIMENSION1): Likewise. Don't check the validity
2414 of multibyte code here.
2415 (DECODE_CHARACTER_DIMENSION2): Likewise.
2416 (detect_coding_emacs_mule): Change the case label from
2417 EMACS_leading_code_composition to 0x80.
2418 (detect_coding_iso2022): Handle new composition sequence.
2419 (DECODE_ISO_CHARACTER): Likewise.
2420 (check_composing_code): Deleted.
2421 (coding_allocate_composition_data): New function.
2422 (CODING_ADD_COMPOSITION_START) (CODING_ADD_COMPOSITION_END)
2423 (CODING_ADD_COMPOSITION_COMPONENT) (DECODE_COMPOSITION_START)
2424 (DECODE_COMPOSITION_END) (DECODE_COMPOSITION_RULE): New macros.
2425 (decode_coding_iso2022): Handle new composition sequence.
2426 (ENCODE_ISO_CHARACTER): Don't check composition here.
2427 (ENCODE_COMPOSITION_RULE) (ENCODE_COMPOSITION_START): New macros.
2428 (ENCODE_COMPOSITION_NO_RULE_START)
2429 (ENCODE_COMPOSITION_WITH_RULE_START): Deleted.
2430 (ENCODE_COMPOSITION_END): Handle new composition sequence.
2431 (ENCODE_COMPOSITION_FAKE_START): New macro.
2432 (encode_coding_iso2022): Handle new composition sequence.
2433 (ENCODE_SJIS_BIG5_CHARACTER): Delete superfluous `;' at the tail.
2434 (encode_coding_sjis_big5): Ignore composition.
2435 (setup_coding_system): Initialize new members of struct
2436 coding_system. Enable composition only when the coding system has
2437 `composition' property t.
2438 (coding_free_composition_data) (coding_adjust_composition_offset)
2439 (coding_save_composition) (coding_restore_composition): New
2440 functions.
2441 (code_convert_region): Call coding_save_composition for encoding
2442 and coding_allocate_composition_data for decoding. Don't skip
2443 ASCII characters if we handle composition on encoding. Call
2444 signal_after_change with Check_BORDER.
2445 (code_convert_string): Call coding_save_composition for encoding
2446 and coding_allocate_composition_data for decoding. Don't skip
2447 ASCII characters if we handle composition on encoding.
2448 (code_convert_string1): Set Vlast_coding_system_used after calling
2449 code_convert_string.
2450 (code_convert_string_norecord): Disable composition.
2451 (Fset_terminal_coding_system_internal): Likewise.
2452 (Fset_safe_terminal_coding_system_internal): Likewise.
2453 (Fset_keyboard_coding_system_internal): Likewise.
2454 (init_coding_once): Set emacs_code_class[0x80] to
2455 EMACS_invalid_code.
2456
2457 * composite.h: New file.
2458
2459 * composite.c: New file.
2460
2461 * data.c (Faref): Delete codes for a composite character..
2462 (Faset): Likewise. Adjusted for the change of CHAR_STRING.
2463
2464 * dispextern.h (enum glyph_type): New member COMPOSITE_GLYPH.
2465 (struct glyph): Add new sub-structure cmp to the union `u'.
2466 (enum display_element_type): New member IT_COMPOSITION.
2467 (enum prop_idx): New member COMPOSITION_PROP_IDX.
2468 (struct it): New members cmp_id, cmp_len.
2469
2470 * dispnew.c (direct_output_forward_char): Check point moving into
2471 or out of a composition. If so, give up direct method.
2472
2473 * doprnt.c (doprnt1): Adjusted for the change of CHAR_STRING.
2474
2475 * editfns.c (Fchar_to_string): Adjusted for the change of
2476 CHAR_STRING.
2477 (general_insert_function): Likewise.
2478 (Finsert_char): Likewise.
2479 (Fsubst_char_in_region): Likewise. Call update_compositions.
2480 (Ftranslate_region): Call update_compositions.
2481 (Ftranspose_regions): Call update_compositions.
2482
2483 * emacs.c (main): Call syms_of_composite.
2484
2485 * fileio.c (Fsubstitute_in_file_name): Adjusted for the change of
2486 CHAR_STRING.
2487 (Finsert_file_contents): Set Vlast_coding_system_used before
2488 calling signal_after_change. Call update_compositions if some
2489 texts are inserted..
2490 (Fwrite_region): Adjusted for the change of a_write and e_write.
2491 (a_write): Argument changed. Work based on character position,
2492 not byte position.
2493 (e_write): Argument changed. Handle new way of composition.
2494
2495 * fns.c (Flength): The length of char-table is MAX_CHAR.
2496 (concat): Adjusted for the change of CHAR_STRING.
2497 (Ffillarray): Adjusted for the change of CHAR_STRING.
2498 (Fset_char_table_default): Delete codes for a composite character.
2499 (hash_put): Return hash index.
2500
2501 * fontset.h (struct font_info): New member vertical_centering.
2502 (Vvertical_centering_font_regexp): Extern it.
2503
2504 * fontset.c (Vvertical_centering_font_regexp): New variable.
2505 (syms_of_fontset): Declare it as a Lisp variable and initialize.
2506 Set Vignore_relative_composition to nil.
2507 (fs_load_font): Initialize `vertical_centering' of struct
2508 font_info.
2509
2510 * indent.c (check_composition): New function.
2511 (MULTIBYTE_BYTES_WIDTH): Call STRING_CHAR_AND_LENGTH with
2512 MAX_MULTIBYTE_LENGTH, not MAX_LENGTH_OF_MULTI_BYTE_FORM.
2513 (current_column_1): Handle new way of composition.
2514 (Fmove_to_column): Likewise.
2515 (compute_motion): Likewise.
2516
2517 * insdel.c (copy_text): Adjusted for the change of CHAR_STRING.
2518 (insert_char): Likewise.
2519 (insert): Call update_compositions.
2520 (insert_and_inherit): Likewise.
2521 (insert_before_markers): Likewise.
2522 (insert_before_markers_and_inherit): Likewise.
2523 (insert_from_string): Likewise.
2524 (insert_from_string_before_markers): Likewise.
2525 (insert_from_buffer): Likewise.
2526 (replace_range): Likewise.
2527 (count_combining_composition): Deleted.
2528 (count_combining_before): Delete codes for a composite character.
2529 (count_combining_after): Likewise.
2530 (del_range_1): Call update_compositions.
2531 (del_range_byte): Likewise.
2532 (del_range_both): Likewise.
2533 (Fcombine_after_change_execute): Likewise.
2534
2535 * intervals.h: Include composite.h.
2536 (get_property_and_range): Extern it.
2537 (Vtext_property_default_nonsticky): Extern it.
2538
2539 * intervals.c (adjust_intervals_for_insertion): To check stickines
2540 of properties, pay attention to text-property-default-nonsticky.
2541 (merge_properties_sticky): Likewise.
2542 (get_property_and_range): New function.
2543
2544 * keyboard.c (Vdisable_point_adjustment): New variable.
2545 (Vglobal_disable_point_adjustment): New variable.
2546 (syms_of_keyboard): Declare them as Lisp variables.
2547 (command_loop_1): Check them and call adjust_point_for_property if
2548 necessary.
2549 (adjust_point_for_property): New function.
2550
2551 * keymap.c (push_key_description): Adjusted for the change of
2552 CHAR_STRING.
2553 (Ftext_char_description): Likewise.
2554
2555 * lisp.h (QCtest, QCweakness, Qequal): Extern them.
2556 (hash_put): Adjusted for the change of the definition.
2557 (signal_after_change): Likewise.
2558 (check_point_in_composition): Extern it.
2559
2560 * lread.c (readchar): Adjusted for the change of CHAR_STRING.
2561 Delete a code that handles an invalid too-long multibyte sequence
2562 because we are now sure that we never encounter with such a
2563 sequence.
2564 (read_multibyte): Use macro MAX_MULTIBYTE_LENGTH, not
2565 MAX_LENGTH_OF_MULTI_BYTE_FORM.
2566 (init_obarray): Likewise.
2567 (read1): Likewise. Adjusted for the change of CHAR_STRING.
2568
2569 * print.c (printchar): Adjusted for the change of CHAR_STRING.
2570
2571 * process.c: Include composite.h.
2572 (read_process_output): Call update_compositions.
2573
2574 * regex.c (regex_compile): Adjusted for the change of CHAR_STRING.
2575
2576 * search.c (search_buffer): Adjusted for the change of CHAR_STRING.
2577
2578 * syntax.h (SYNTAX_ENTRY_INT): Delete codes for a composite
2579 character.
2580
2581 * term.c (encode_terminal_code): Delete codes for a composite
2582 character. Adjusted for the change of CHAR_STRING.
2583 (produce_glyphs): When called, it->what can be IT_COMPOSITION.
2584 Delete codes for a composite character.
2585
2586 * textprop.c (Vtext_property_default_nonsticky): New variable
2587 (syms_of_textprop): Declare it as a Lisp variable.
2588
2589 * window.c (Frecenter): Clear all caches of compositions.
2590
2591 * xdisp.c (it_props): Add an entry for composition.
2592 (face_before_or_after_it_pos): For composition, check face of a
2593 character after the composition.
2594 (handle_composition_prop): New function.
2595 (get_next_display_element): Adjusted for the change of
2596 CHAR_STRING.
2597 (set_iterator_to_next): Handle the case that it->method ==
2598 next_element_from_composition.
2599 (next_element_from_composition): New function.
2600 (message_dolog): Adjusted for the change of CHAR_STRING.
2601 (set_message_1): Likewise.
2602 (check_point_in_composition): New function.
2603 (reconsider_clip_changes): If point moved into or out of
2604 composition, set b->clip_changed to 1 to force updating of the
2605 screen.
2606 (disp_char_vector): Delete codes for a composite character.
2607 (decode_mode_spec_coding): Adjusted for the change of CHAR_STRING.
2608
2609 * xfaces.c (choose_face_fontset_font): Delete codes for a
2610 composite character.
2611 (realize_x_face): Likewise. Change a place to set local variable
2612 `f' to avoid a bug of GCC 2.8.1 on Solaris.
2613
2614 * xfns.c: Include intervals.h.
2615 (syms_of_xfns): Make `display' property nonsticky by default.
2616
2617 * xselect.c (lisp_data_to_selection_data): Adjusted for the change
2618 for find_charset_in_str.
2619
2620 * xterm.h (struct x_output): Change member font_baseline to
2621 baseline_offset.
2622
2623 * xterm.c (x_append_glyph): Setup members of struct glyph properly
2624 for composition.
2625 (x_append_composite_glyph): New function.
2626 (VCENTER_BASELINE_OFFSET): New macro.
2627 (x_produce_glyphs): If it->what == IT_COMPOSITION, setup members
2628 of struct it for the composition. Cache pixel offsets in the
2629 struct composition. Delete codes for a composite character.
2630 Handle Vignore_relative_composition in composition code.
2631 (struct glyph_string): Delete member cmpcharp, add new member cmp.
2632 (x_set_cursor_gc): Check s->cmp, not s->cmpcharp.
2633 (x_compute_glyph_string_overhangs): Likewise.
2634 (x_get_glyph_overhangs): Delete codes for a composite character.
2635 (x_right_overwritten): Check s->cmp, not s->cmpcharp.
2636 (x_draw_glyph_string_background): Likewise. Delete codes for
2637 checking s->gidx for a composition.
2638 (x_draw_glyph_string_foreground): Delete code for a composite
2639 character.
2640 (x_draw_composite_glyph_string_foreground): New function.
2641 (x_draw_glyph_string_box): Check s->cmp, not s->cmpcharp.
2642 (x_draw_glyph_string): Handle the case of COMPOSITE_GLYPH.
2643 (struct work): Deleted.
2644 (x_fill_composite_glyph_string): Argument changed. Mostly
2645 rewritten for that.
2646 (x_fill_glyph_string): Don't check CHARSET_COMPOSITION.
2647 (BUILD_CHAR_GLYPH_STRINGS): Don't handle composition here.
2648 (BUILD_COMPOSITE_GLYPH_STRING): New macro.
2649 (BUILD_GLYPH_STRINGS): For composition, call
2650 BUILD_COMPOSITE_GLYPH_STRING.
2651 (x_new_font): Initialize f->output_data.x->baseline_offset, not
2652 f->output_data.x->font_baseline.
2653
c3c60f13
GM
26541999-12-14 Gerd Moellmann <gerd@gnu.org>
2655
2656 * xterm.c (show_mouse_face): Don't use updated_area, use
2657 TEXT_AREA.
2658
83c8f461 26591999-12-12 Richard M. Stallman <rms@gnu.org>
c838eb57
RS
2660
2661 * minibuf.c (Fall_completions): Doc fix.
2662
83c8f461 26631999-12-12 Richard M. Stallman <rms@gnu.org>
c838eb57
RS
2664
2665 * macros.c (Fstart_kbd_macro): Handle case where last-kbd-macro
2666 has been changed by the Lisp code.
2667
d8eccf12
GM
26681999-12-12 Gerd Moellmann <gerd@gnu.org>
2669
2670 * xfns.c: Indentation fixes.
2671
ae56feae
SM
26721999-12-10 Stefan Monnier <monnier@cs.yale.edu>
2673
2674 * xterm.c (x_initialize): Only setup xaw3d_* if they've been declared.
2675
dfa1c6ae
GM
26761999-12-10 Gerd Moellmann <gerd@gnu.org>
2677
2678 * frame.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
2679 [!MSDOS && !WINDOWSNT && !macintosh]: Moved here from xterm.h.
2680
2681 * xterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Moved
2682 to frame.h.
2683
ec18280f
SM
26841999-12-09 Stefan Monnier <monnier@cs.yale.edu>
2685
2686 * keyboard.c (Qratio): New symbol.
2687 (scroll_bar_parts): Add `Qratio' to it.
2688 (syms_of_keyboard): Init `Qratio'.
2689 * termhooks.h (scroll_bar_part): Add `scroll_bar_move_ratio'.
2690 * xterm.c (#includes): Allow compilation with only Xaw.
2691 (xaw3d_arrow_scroll, xaw3d_pick_top): New variables.
2692 (xt_action_hook): Replace XAW3D by XAW.
2693 (xaw3d_jump_callback): Renamed to xaw_jump_callback.
2694 (xaw_jump_callback): Renamed from xaw3d_jump_callback.
2695 Determine epsilon dynamically and don't try to be too clever.
2696 (xaw3d_scroll_callback): Renamed to xaw_scroll_callback.
2697 (xaw_scroll_callback): Renamed from xaw3d_scroll_callback.
2698 Handle both Xaw3d with arrow-scrollbars and with Xaw-style
2699 scrollbar (using `ratio').
2700 (x_create_toolkit_scroll_bar): Try to detect which style of Xaw3d
2701 scrollbar we have so as to set it up more optimally and to fix
2702 xaw3d_arrow_scroll and xaw3d_pick_top.
2703 (x_set_toolkit_scroll_bar_thumb): Try to maintain 2 spare pixels at the
2704 bottom of the Xaw3d scrollbar, to work around its tendency to refuse
2705 shrinking the thumb. Also make sure that `XawScrollbarSetThumb'
2706 is not ignored, using a major gross hack.
2707 (x_initialize): Init default values for xaw3d_arrow_scroll and
2708 xaw3d_pick_top.
2709
83b6d970
DL
27101999-12-09 Dave Love <fx@gnu.org>
2711
2712 * frame.h: (PIX_TYPE) [! HAVE_X_WINDOWS]: Define PIX_TYPE.
2713
3648c842
GM
27141999-12-08 Gerd Moellmann <gerd@gnu.org>
2715
2716 * eval.c: Remove conditional compilation on `standalone'.
2717 (call_debugger): When entering the debugger while redisplaying,
2718 reset redisplaying_p, and go back to the top-level if the debugger
2719 returns.
2720
05e71564
GM
27211999-12-07 Gerd Moellmann <gerd@gnu.org>
2722
2723 * xfaces.c (x_set_menu_resources_from_menu_face): Make sure
2724 basic faces are realized before trying to use face `menu'.
2725
2726 * window.c (delete_window): Block input for the time window
2727 matrices are being changed.
2728
b46cd536
DL
27291999-12-07 Dave Love <fx@gnu.org>
2730
2731 * lread.c (Fintern_soft): Fix newlines in doc string.
2732
96acb1f7
GM
27331999-12-07 Alexandre Oliva <oliva@dcc.unicamp.br>
2734
2735 * unexelf.c: Include <syms.h>, not <sym.h> on IRIX. Removed
2736 duplicate definition of ElfW.
2737 (find_section): Copied from unexsgi.c.
2738 (unexec): Use find_section. Adjust whitespace. Initialize
2739 new_data2_offset based on old_data, not sbss (this fixes a bug on
2740 IRIX6). Change #ifdef __mips to __sgi, since it's IRIX-specific.
2741 Adjust test for presence of .mdebug section to the new return
2742 value of find_section.
2743
27441999-12-07 Gerd Moellmann <gerd@gnu.org>
2745
2746 * unexelf.c: Merge changes from 20.5.
2747 (unexec): Handle .lit4 and .lit8 unconditionally.
2748
2749 * m/iris4d.h (UNEXEC) [USG5_4]: Use unexelf.o instead of
2750 unexsgi.o again.
2751
2752 * m/iris5d.h (UNEXEC): Likewise.
2753
7dae4502
SM
27541999-12-06 Stefan Monnier <monnier@cs.yale.edu>
2755
2756 * editfns.c (Fdelete_and_extract_region): New function.
05e71564
GM
2757 (syms_of_editfns): Register it.
2758 * insdel.c (del_range): Update del_range_1 call.
7dae4502
SM
2759 (del_range_1, del_range_2): Add a ret_string argument to
2760 request that the deleted text be returned.
2761 (del_range_byte, del_range_both): Update del_range_2 call.
05e71564 2762 * lisp.h (del_range_1, del_range_2): Change prototype
7dae4502
SM
2763 * casefiddle.c (casify_region): Update del_range_1 call.
2764 * coding.c (code_convert_region): Update del_range_2 call.
2765 * fileio.c (Finsert_file_contents): Update del_range_2 call.
2766
397e4fae
GM
27671999-12-06 Gerd Moellmann <gerd@gnu.org>
2768
2769 * xfaces.c (set_lface_from_font_name): Fix incomplete merge.
2770
3d973f71
GM
27711999-12-04 Hrvoje Niksic <hniksic@iskon.hr>
2772
2773 * lread.c (Fintern_soft): Accept a symbol argument.
2774
740e985f
EZ
27751999-12-06 Eli Zaretskii <eliz@is.elta.co.il>
2776
2777 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 40000.
809f3d51
EZ
2778
2779 * insdel.c (adjust_markers_for_delete): Fix last change.
2780
2d764c78
EZ
27811999-12-06 Eli Zaretskii <eliz@is.elta.co.il>
2782
2783 Changes for automatic remapping of X colors on terminal frames:
2784
2785 * xfaces.c (XColor) [!HAVE_X_WINDOWS]: Provide a typedef for non-X
2786 frames.
2787 (Vface_tty_color_alist): Remove.
2788 (tty_defined_color): New function.
2789 (defined_color): Rewrite to support any type of frame.
2790 (tty_color_name): New function.
2791 (face_color_supported_p, Fface_color_gray_p,
2792 Fface_color_supported_p): Support non-X frames.
2793 (load_color): Enclose the color name in quotes, in the log
2794 messages. Remove DOS-specific version of load_color.
2795 (realize_tty_face): Take the supported colors from
2796 tty-color-alist. Support translation of X colors to the closest
2797 tty color, for both MSDOS and tty frames.
2798 [MSDOS]: Don't invert face colors if they were taken from the
2799 frame colors.
2800 (Fface_register_tty_color, Fface_clear_tty_colors): Remove.
2801
2802 * frame.h (struct x_output) [!MSDOS, !WINDOWSNT, !HAVE_X_WINDOWS]:
2803 Define a mostly empty surrogate.
2804 (tty_display): Declare.
2805
2806 * frame.c (make_terminal_frame) [!macintosh]: Don't use
2807 tty_display.
2808 (Fframe_parameters): Don't invert colors of non-FRAME_WINDOW_P
2809 frames when the frame's param_alist includes 'reverse.
2810 (tty_display): Define.
2811 (make_terminal_frame) [!MSDOS]: Assign &tty_display to the
2812 output_data.x member.
2813 (Fframe_parameters): Return foreground and background color names
2814 on tty frames as well, in addition to MSDOS frames.
2815
2816 * msdos.h (DisplayWidth, DisplayHeight): Changes for Lisp_Object
2817 selected_frame.
2818 (struct x_output): Remove unused members; document who uses each
2819 member.
2820 (FRAME_PARAM_FACES, FRAME_N_PARAM_FACES, FRAME_DEFAULT_PARAM_FACE,
2821 FRAME_MODE_LINE_PARAM_FACE, FRAME_COMPUTED_FACES,
2822 FRAME_N_COMPUTED_FACES, FRAME_SIZE_COMPUTED_FACES,
2823 FRAME_DEFAULT_FACE, FRAME_MODE_LINE_FACE, unload_color): Remove
2824 unused macro definintions.
2825
2826 * msdos.c (IT_set_frame_parameters): Don't call
2827 recompute_basic_faces, the next redisplay will, anyway.
2828 (x_current_display): Remove unused variable.
2829 Many functions: changes for Lisp_object selected_frame.
2830 (IT_set_face): If the tty_reverse_p flag is set for the face,
2831 reverse the foreground and background colors.
2832 (Fmsdos_remember_default_colors): New function.
2833 (syms_of_msdos): Defsubr it.
2834 (IT_set_frame_parameters): Use initial_screen_colors[] when
2835 creating a new frame. If the frame parameters include 'reverse,
2836 swap the foreground and background colors.
2837 (internal_terminal_init): Initialize initial_screen_colors to -1.
2838 (syms_of_msdos): Add DEFVAR_BOOL for x-stretch-cursor, to shut up
2839 cus-start.el.
2840
2841 * Makefile.in (lisp, shortlisp): Add lisp/term/tty-colors.elc.
2842
2843 * xfns.c (x_defined_color): Rename from defined_color. All
2844 callers changed.
2845 (Fxw_color_defined_p): Renamed from Fx_color_defined_p;
2846 all callers changed.
2847 (Fxw_color_values): Renamed from Fx_color_values; all callers
2848 changed.
2849 (Fxw_display_color_p): Renamed from Fx_display_color_p; all
2850 callers changed.
2851 (x_window_to_frame, x_any_window_to_frame,
2852 x_non_menubar_window_to_frame, x_menubar_window_to_frame,
2853 x_top_window_to_frame): Use !FRAME_X_P instead of
2854 f->output_data.nothing.
2855 * xterm.h (x_defined_color): Rename from defined_color.
2856
2857 * w32fns.c (x_window_to_frame): Use FRAME_W32_P instead of
2858 f->output_data.nothing.
2859 (Fxw_color_defined_p): Renamed from Fx_color_defined_p;
2860 all callers changed.
2861 (Fxw_color_values): Renamed from Fx_color_values; all callers
2862 changed.
2863 (Fxw_display_color_p): Renamed from Fx_display_color_p; all
2864 callers changed.
2865
2866 * dispextern.h (tty_color_name): Add prototype.
2867
2868 * xmenu.c (menubar_id_to_frame): Use FRAME_WINDOW_P instead of
2869 f->output_data.nothing.
2870 * w32menu.c (menubar_id_to_frame): Likewise.
2871 * w32term.h (w32_output): Declare.
2872
2873 * dosfns.c (Qmsdos_color_translate): Remove.
2874 (msdos_stdcolor_name): Now returns a Lisp_Object.
2875 * dosfns.h (Qmsdos_color_translate): Remove.
2876
2877 * s/msdos.h (INTERNAL_TERMINAL): Add entries for color support.
2878
b3e5232e
KH
28791999-12-06 Kenichi Handa <handa@etl.go.jp>
2880
2881 * fileio.c (decide_coding_unwind): Renamed from
2882 set_auto_coding_unwind.
2883 (Finsert_file_contents): Make single unwind protect to call both
2884 Vset_auto_coding_function and Ffind_operation_coding_system.
2885
2886 * insdel.c (adjust_markers_for_delete): Make it non-static.
2887
db0e466c
SM
28881999-12-04 Stefan Monnier <monnier@cs.yale.edu>
2889
2890 * regex.c (regex_compile): Recognize *?, +? and ?? as non-greedy
2891 operators and handle them properly.
2892 * regex.h (RE_ALL_GREEDY): New option.
2893 (RE_UNMATCHED_RIGHT_PAREN_ORD): Moved to the end where alphabetic
2894 sorting would put it.
2895 (RE_SYNTAX_AWK, RE_SYNTAX_GREP, RE_SYNTAX_EGREP)
2896 (_RE_SYNTAX_POSIX_COMMON): Use the new option to keep old behavior.
2897
22afa6e8
DL
28981999-12-04 Dave Love <d.love@dl.ac.uk>
2899
2900 * m/arm.h: New file.
2901
40afb967
DL
29021999-12-03 Dave Love <fx@gnu.org>
2903
2904 * editfns.c (Fmessage_or_box): Use use_dialog_box.
2905
ddf8eff5
GM
29061999-12-02 Gerd Moellmann <gerd@gnu.org>
2907
2908 * s/usg5-4.h (LIBS_SYSTEM): Add -lgen because that's needed
2909 for building with Motif.
2910
2911 * m/iris4d.h (UNEXEC) [USG5_4]: Use unexsgi.o instead of
2912 unexelf.o.
2913
2914 * m/iris5d.h (UNEXEC): Use unexsgi.o instead of unexelf.o.
2915
fa09a82d
DL
29161999-12-01 Dave Love <fx@gnu.org>
2917
2918 * emacs.c (main): Set LANG=C iff AX3_2 defined.
2919
ddf8eff5
GM
29201999-11-28 Gerd Moellmann <gerd@gnu.org>
2921
2922 * systime.h (EMACS_TIME_CMP, EMACS_TIME_EQ, EMACS_TIME_NE)
2923 (EMACS_TIME_GT, EMACS_TIME_GE, EMACS_TIME_LT,EMACS_TIME_LE): New
2924 macros.
2925
2926 * config.in (HAVE_SETITIMER, HAVE_UALARM): New.
2927
fa09a82d
DL
29281999-11-28 eliz <eliz@dlpx1>
2929
2930 * emacs.c (synchronize_locale): Avoid compiler warnings about
2931 pointer type mismatch.
2932
f9632fc8
GM
29331999-11-28 Gerd Moellmann <gerd@gnu.org>
2934
717d0121
GM
2935 * window.c (Fwindow_end): Don't call temp_set_pt_both with
2936 out of range position.
2937
f9632fc8
GM
2938 * xterm.c (XTread_socket) <ClientMessage, Xatom_Scrollbar>:
2939 Switch off busy-cursor by setting inhibit_busy_cursor to 2.
2940
59c65f1e
EZ
29411999-11-28 Eli Zaretskii <eliz@is.elta.co.il>
2942
613a8346
EZ
2943 * charset.c (Fmake_char_internal): Print the charset ID when
2944 signalling an error.
2945
59c65f1e
EZ
2946 * emacs.c (synchronize_locale): Avoid compiler warnings about
2947 pointer type mismatch.
2948
83c8f461 29491999-11-26 Richard M. Stallman <rms@gnu.org>
d01f3570
RS
2950
2951 * editfns.c (Fdelete_field): Make it noninteractive. Return nil.
2952
18df9369
GM
29531999-11-26 Gerd Moellmann <gerd@gnu.org>
2954
65a3ccf7
GM
2955 * puresize.h (BASE_PURESIZE): Increase to 550000.
2956
b3b98592
GM
2957 * textprop.c (set_text_properties): New function. Like
2958 Fset_text_properties, but with additional parameter
2959 SIGNAL_AFTER_CHANGE_P. If that is nil, don't signal after
2960 changes.
2961 (Fset_text_properties): Use it.
2962
2963 * insdel.c (insert_1_both): Call set_text_properties with last
2964 parameter nil so that no after changes will be signaled.
2965
2966 * lisp.h: Add prototype for set_text_properties.
2967
18df9369
GM
2968 * xfaces.c (set_lface_from_font_name): Fix previous change.
2969 (recompute_basic_faces): Change assert to abort.
2970
71a8e74b
DL
29711999-11-25 Dave Love <fx@gnu.org>
2972
2973 * fns.c (Fnthcdr, Fnreverse): Inline cdr.
2974 (Fmember, Fdelq, Fdelete): Inline car.
2975 (Fy_or_n_p): Doc fix.
2976
bc6a5782
GM
29771999-11-25 Gerd Moellmann <gerd@gnu.org>
2978
3221576b 2979 * xfaces.c (set_lface_from_font_name): New parameter may_fail_p.
18df9369 2980 Callers changed. If specified font name is bogus, and may_fail_p
3221576b
GM
2981 is not set, try to use a reasonable default.
2982
bc6a5782
GM
2983 * dispnew.c (direct_output_for_insert): Set glyph row's
2984 displays_text_p flag. Correct window's window_end_vpos if
2985 necessary.
2986
0c8559bb
PE
29871999-11-25 Paul Eggert <eggert@twinsun.com>
2988
2989 * emacs.c (fixup_locale): Don't bother to record initial locale.
2990 (synchronize_locale): If the desired locale is nil,
2991 treat it as if it were the empty string,
2992 so that we set the locale from the environment.
2993
35737351
KH
29941999-11-25 Kenichi Handa <handa@etl.go.jp>
2995
2996 * fileio.c (Finsert_file_contents): Set buffer-file-coding-system
2997 of the current buffer via Fset.
2998
5562b47f
DL
29991999-11-24 Dave Love <fx@gnu.org>
3000
3001 * xfns.c: Don't duplicate Qdisplay definition done elsewhere.
3002
3003 * xfaces.c: Don't duplicate Qmode_line definition done elsewhere.
3004
3005 * xfns.c: Don't duplicate Qdisplay definition done elsewhere.
3006
00da0e4a
GM
30071999-11-24 Gerd Moellmann <gerd@gnu.org>
3008
3009 * lisp.h (enum pvec_type): Put PVEC_FLAG in #if 0.
3010
3011 * emacs.c (PVEC_FLAG): New variable.
3012
b1775dc1
GM
30131999-11-23 Gerd Moellmann <gerd@gnu.org>
3014
3015 * unexaix.c (unexec): Use unsigned instead of uintptr_t because
3016 that fails on IBM PowerPC, AIX 4.2.
3017
08de6200
EZ
30181999-11-22 Eli Zaretskii <eliz@is.elta.co.il>
3019
3020 * buffer.c (syms_of_buffer): Add %z, %Z, %m and %& to the doc
3021 string of mode-line-format. Remove the obsolete %t.
3022
02fda8ff
GM
30231999-11-22 Gerd Moellmann <gerd@gnu.org>
3024
f2fa858f
GM
3025 * dispnew.c (direct_output_for_insert): Increment glyph positions
3026 for glyphs from buffer text only.
3027
02fda8ff
GM
3028 * emacs.c (gdb_valbits, gdb_gctypebits, gdb_emacs_intbits)
3029 (gdb_data_seg_bits): New variables.
3030
3031 * lisp.h (enum gdb_lisp_params): Put in #if 0, since it doesn't
3032 work on systems not allowing enumerators > INT_MAX, and it
3033 won't work if EMACS_INT is long long.
3034
1b0d24e7
PE
30351999-11-22 Paul Eggert <eggert@twinsun.com>
3036
3037 Port to SunOS 4.1.x again. Help out with Alpha port.
3038 Rename messages-locale to system-messages-locale,
3039 and likewise for time-locale.
3040
3041 * callproc.c (strerror): Remove decl.
3042 * fileio.c (strerror): Likewise.
3043 * process.c (strerror): Likewise.
3044 * emacs.c (strerror): Likewise.
3045 (Vsystem_messages_locale): Renamed from Vmessages_locale.
3046 All uses changed.
3047 (Vprevious_system_messages_locale): Likewise, from
3048 Vprevious_messages_locale.
3049 (Vsystem_time_locale): Likewise, from Vtime_locale.
3050 (Vprevious_system_time_locale): Likewise, from Vprevious_time_locale.
3051 (ABORT_RETURN_TYPE): New macro.
3052 (abort): Return type is now ABORT_RETURN_TYPE.
3053 (main): Always invoke init_signals, even if POSIX_SIGNALS is not
3054 defined.
3055 (syms_of_emacs): messages-locale -> system-messages-locale,
3056 previous-messages-locale -> previous-system-messages-locale,
3057 time-locale -> system-time-locale,
3058 previous-time-locale -> previous-system-time-locale.
3059
3060 * gmalloc.c (PP, __ptr_t): Assume ANSI C if STDC_HEADERS is defined.
3061 (const): Do not define; that's config.h's job.
3062 (<limits.h>): Include if HAVE_LIMITS_H is defined.
3063 (CHAR_BIT): Move test for definedness outside of limits.h condition.
3064 (<stddef.h>): Include if STDC_HEADERS is defined.
3065 (FREE_RETURN_TYPE): New macro.
3066 (free): Return type is now FREE_RETURN_TYPE.
3067
3068 * lisp.h (synchronize_system_time_locale): Renamed from
3069 synchronize_time_locale. All uses changed.
3070 (synchronize_system_messages_locale): Likewise, from
3071 synchronize_messages_locale.
3072
3073 * m/alpha.h (malloc, realloc, calloc): Remove decls;
3074 stdlib.h now does this.
3075
3076 * process.c (sys_siglist): Remove.
3077
3078 * s/sunos4-0.h (ABORT_RETURN_TYPE, FREE_RETURN_TYPE):
3079 New macros.
3080
3081 * syntax.c (scan_sexps_forward): Use abort, not assert.
3082
3083 * sysdep.c (my_sys_siglist): New var.
3084 (sys_siglist): New macro. Remove old initialized vars of same name.
3085 (init_signals): Initialize sys_siglist.
3086
3087 * xfns.c (abort): Remove decl; stdlib.h now does this.
3088
0dcd5b54
DL
30891999-11-18 Dave Love <fx@gnu.org>
3090
946173ad
DL
3091 * filelock.c: Add forward declaration for get_boot_time_1.
3092
0dcd5b54
DL
3093 * dispnew.c (Finternal_show_cursor_p): Fix doc string.
3094
71447e8f
GM
30951999-11-18 Gerd Moellmann <gerd@gnu.org>
3096
3097 * buffer.h (struct buffer_text): Add comment about moving
3098 buffer text if REL_ALLOC is defined.
3099
eeedff63
KH
31001999-11-18 Kenichi Handa <handa@etl.go.jp>
3101
3102 * lisp.h (KEY_DESCRIPTION_SIZE): New macro.
3103
3104 * keyboard.c (echo_char): Use KEY_DESCRIPTION_SIZE to check free
3105 memory for push_key_description.
3106
3107 * keymap.c (Fsingle_key_description): Use KEY_DESCRIPTION_SIZE to
3108 allocate memory for push_key_description.
3109 (describe_buffer_bindings): Likewise.
3110
5d7e4a2c
GM
31111999-11-17 Gerd Moellmann <gerd@gnu.org>
3112
3113 * xfns.c (Fx_show_busy_cursor): Doc-fix.
3114 (Fx_hide_busy_cursor): Ditto.
3115
31161999-11-17 Marco Walther <walther@siemens-pyramid.com>
3117
3118 * unexsni.c (unexec): Handle .rel.dyn section.
3119
b5b41e02
DL
31201999-11-16 Dave Love <fx@gnu.org>
3121
3122 * doc.c (Fdocumentation): Remove gcpro here too.
3123
e35b6123
GM
31241999-11-16 Gerd Moellmann <gerd@gnu.org>
3125
3126 * keyboard.c (command_loop_1): Remove no_redisplay.
3127
83c8f461 31281999-11-16 Richard M. Stallman <rms@gnu.org>
0a14b9bb
GM
3129
3130 * print.c (PRINTPREPARE): Don't call setup_echo_area_for_printing
3131 in noninteractive.
3132
b05d3bee
GM
31331999-11-14 Gerd Moellmann <gerd@gnu.org>
3134
5bcfeb49
GM
3135 * xdisp.c (ensure_echo_area_buffers): New.
3136 (with_echo_area_buffer): Use it.
3137 (setup_echo_area_for_printing): Ditto.
3138
b05d3bee
GM
3139 * buffer.c (indicate-empty-lines): Doc-fix.
3140
9b2e6e4c
GM
31411999-11-12 Gerd Moellmann <gerd@gnu.org>
3142
e7f90eab
GM
3143 * term.c (term_init): If "op" isn't available, don't support color
3144 because we can't switch back to the default foreground and
3145 background.
3146
9b2e6e4c
GM
3147 * doc.c (Fdocumentation_property): Remove GCPRO because
3148 Fsubstitute_command_keys gcpro's the string.
3149
1bf21027
KH
31501999-11-12 Kenichi Handa <handa@etl.go.jp>
3151
3152 * editfns.c (Ftranslate_region): Check the buffer multibyteness.
3153
3bc6df53
GM
31541999-11-11 Gerd Moellmann <gerd@gnu.org>
3155
3156 * print.c, keymap.c, indent.c, insdel.c, keyboard.c, intervals.c,
3157 lread.c, textprop.c, undo.c, emacs.c, lisp.h, intervals.h,
3158 buffer.h, config.in, Makefile.in: Remove USE_TEXT_PROPERTIES.
3159
35a5514b
GM
31601999-11-10 Gerd Moellmann <gerd@gnu.org>
3161
3162 * xfns.c (QCuser_data): Removed.
3163 (syms_of_xfns): Initialization of QCuser_data removed.
3164 (parse_image_spec): Don't handle :user-data specially. Allow
3165 unknown keys. Remove parameter ALLOW_OTHER_KEYS.
3166 (xbm_image_p, xbm_load, xpm_image_p, pbm_image_p, png_image_p)
3167 (tiff_image_p, jpeg_image_p, gif_image_p, gs_image_p): Call
3168 parse_image_spec accordingly.
3169
83c8f461 31701999-11-09 Richard M. Stallman <rms@gnu.org>
4ea68fcc
RS
3171
3172 * cmds.c (Fbeginning_of_line): Doc fix.
3173 (Fend_of_line): Doc fix.
3174
3175 * editfns.c (Fline_beginning_position): If N is not 1,
3176 pass t to Fconstrain_to_field for ESCAPE-FROM-EDGE.
3177
3178 * syntax.c (Fforward_word): Handle fields even if would have hit
3179 an edge of the buffer. Return nil if affected by fields.
3180
83c8f461 31811999-11-09 Richard M. Stallman <rms@gnu.org>
4ea68fcc
RS
3182
3183 * editfns.c (preceding_pos): Function deleted.
3184 (text_property_stickiness): Decrement POS directly.
3185 Fix a confusion that used PT instead of POS.
3186
3187 * editfns.c (find_field): Properly handle the case
3188 of a field boundary where `field' inherits from neither side.
3189
3190 * editfns.c (Ffield_beginning, Ffield_end): Doc fixes.
3191 (Ferase_field, Ffield_string, Ffield_string_no_properties): Doc fixes.
3192
fa9aabf6
GM
31931999-11-08 Gerd Moellmann <gerd@gnu.org>
3194
3195 * bytecode.c (Fbyte_code) <BinsertN, Bcall>: Do the
3196 BEFORE_POTENTIAL_GC before DISCARD.
3197
4015b3c0
GM
31981999-11-07 Gerd Moellmann <gerd@gnu.org>
3199
033a5fa3
GM
3200 * alloc.c (Fgarbage_collect): Call unmark_byte_stack.
3201
3202 * lisp.h: Add prototype for unmark_byte_stack.
3203
3204 * bytecode.c (mark_byte_stack): Use XMARKBIT and XMARK.
3205 (unmark_byte_stack): Renamed from relocate_byte_pcs. Use
3206 XUNMARK.
3207
55b064bd
GM
3208 * xdisp.c (resize_mini_window): Fix computation of needed
3209 mini-window height.
3210
3211 * alloc.c, buffer.c, editfns.c, xdisp.c: Remove conditional
3212 compilation on USE_TEXT_PROPERTIES.
01e9b9df 3213
4015b3c0 3214 * Fbyte_code: Use block statements in cases and declare v1 and v2
60af03f1 3215 locally there. Rearrange case statements so that those most
4015b3c0
GM
3216 frequently executed come first. Avoid goto's in frequently
3217 executed cases.
3218
fe512f27
GM
32191999-11-05 Gerd Moellmann <gerd@gnu.org>
3220
dd59e217
GM
3221 * bytecode.c (Fbyte_code): Use BEFORE_POTENTIAL_GC and
3222 AFTER_POTENTIAL_GC around internal_catch.
3223
bcf28080
GM
3224 * alloc.c (Fgarbage_collect): Call mark_byte_stack and
3225 relocate_byte_pcs.
3226 (init_alloc_once, init_alloc): Set byte_stack_list to null.
3227
3228 * eval.c (struct catchtag): Add member byte_stack.
3229 (internal_catch, Fcondition_case, internal_condition_case)
dd59e217 3230 (internal_condition_case_1): Save value of byte_stack_list in
bcf28080
GM
3231 catchtag.
3232 (unwind_to_catch): Restore byte_stack_list from catchtag.
3233
3234 * lisp.h: Add prototypes for new functions in bytecode.c.
3235 Add extern declaration for byte_stack_list.
3236
3237 * bytecode.c (struct byte_stack): New.
3238 (byte_stack_list, mark_byte_stack, relocate_byte_pcs): New
3239 (BEFORE_POTENTIAL_GC, AFTER_POTENTIAL_GC): New.
3240 (FETCH, PUSH, POP, DISCARD, TOP, MAYBE_GC): Rewritten.
3241 (HANDLE_RELOCATION): Removed.
3242 (Fbyte_code): Use byte_stack structures.
3243
4d59c34c
GM
3244 * filelock.c (Ffile_locked_p): Make FILENAME a required argument.
3245
fe512f27
GM
3246 * buffer.c (syms_of_buffer): Extend documentation of
3247 mode-line-format.
3248
60b64cd6
GM
32491999-11-04 Gerd Moellmann <gerd@gnu.org>
3250
3251 * editfns.c (Fdelete_field): Renamed from Ferase_field.
3252
3253 * minibuf.c (do_completion, Fminibuffer_complete_word): Use
3254 Ferase_field instead of Fdelete_field.
3255
b51b619b
GM
32561999-11-03 Gerd Moellmann <gerd@gnu.org>
3257
3258 * dispnew.c (Finternal_show_cursor): Change it to set the
3259 cursor on/off, not toggle its state.
3260 (Finternal_show_cursor_p): New.
3261 (syms_of_display): Defsubr Sinternal_show_cursor_p.
3262
5865af0d
DL
32631999-11-03 Dave Love <fx@gnu.org>
3264
3265 * charset.c (split_non_ascii_string): Define return value.
3266
82a700f3
GM
32671999-11-03 Gerd Moellmann <gerd@gnu.org>
3268
edfef199
GM
3269 * minibuf.c (string_to_object): New.
3270 (read_minibuf_noninteractive): New.
3271 (read_minibuf): Call read_minibuf_noninteractive if
3272 noninteractive. Use string_to_object.
3273
82a700f3
GM
3274 * doc.c (Fdocumentation_property): Fix bug bypassing UNGCPRO.
3275
b5540f0d
DL
32761999-11-02 Dave Love <fx@gnu.org>
3277
e69dcd60
DL
3278 * gnu-linux.h: Use SIGCHLD, not SIGCLD (not in glibc 2.1).
3279
827a1788
DL
3280 * process.c: Define _GNU_SOURCE before config.h to get strsignal
3281 declared with glibc2.
b5540f0d 3282
a69a6e61
GM
32831999-11-02 Gerd Moellmann <gerd@gnu.org>
3284
3285 * lisp.h (QUIT): Give it statement form.
3286
87e21fbd
DL
32871999-11-02 Dave Love <fx@gnu.org>
3288
3289 * eval.c (init_eval): Conditionalize declaration of gcpro_level.
3290
1b335865
GM
32911999-11-02 Gerd Moellmann <gerd@gnu.org>
3292
9fb5e03d
GM
3293 * xfns.c (QCuser_data): New.
3294 (syms_of_xfns): Initialize QCuser_data.
3295 (parse_image_spec): Ignore :user-data DATA properties.
3296
1b335865
GM
3297 * xdisp.c (display_line): Set charpos of first glyph in blank
3298 lines not corresponding to any text to -1, even if no glyphs are
3299 filled in in that line.
3300
e76f1c44
GM
33011999-11-01 Gerd Moellmann <gerd@gnu.org>
3302
36fcd3d9
GM
3303 * xfns.c (png_load) [PNG_READ_sRGB_SUPPORTED]: Put code using
3304 png_get_sRGB in #ifdef.
3305
111259b4
GM
3306 * dispnew.c (Finternal_show_cursor): Renamed from Fshow_cursor.
3307 (syms_of_display): Use the new name.
3308
dd5c96e8
GM
3309 * textprop.c (verify_interval_modification): Signal text-read-only
3310 instead of calling error.
3311
db8878fb
GM
3312 * data.c (Qtext_read_only): New built-in error.
3313 (syms_of_data): Initialize it.
3314
3315 * lisp.h: Add extern declaration for Qtext_read_only.
3316
e76f1c44
GM
3317 * syntax.c: Remove whitespace after open or in front of closing
3318 parentheses.
3319
83c8f461 33201999-11-01 Richard M. Stallman <rms@gnu.org>
cb3a6c48
GM
3321
3322 * Makefile.in (w16select.o, sound.o): Don't depend on lisp.h.
3323
7843e09c
GM
33241999-10-31 Gerd Moellmann <gerd@gnu.org>
3325
575ed805
GM
3326 * xdisp.c (resize_mini_window): Compute needed height differently.
3327
7843e09c
GM
3328 * fns.c (Flength): Unroll loop over lists.
3329
3330 * xdisp.c (append_space): Return non-zero if space was appended.
3331 (display_line): Set charpos of first glyph to -1 only if that
3332 glyph is the space added by append_glyph.
3333
83c8f461 33341999-10-30 Richard M. Stallman <rms@gnu.org>
cb3a6c48
GM
3335
3336 * print.c (strout): Consider `noninteractive' and use stdout
3337 only when PRINTCHARFUN is t.
3338
3339 * lisp.h (struct gcpro) [DEBUG_GCPRO]: New field `level'.
3340 (gcpro_level): Declare it extern.
3341 [DEBUG_GCPRO] (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
3342 Alternate definitions that set `level' and increment `gcpro_level'.
3343 [DEBUG_GCPRO] (UNGCPRO): Alternate definition that checks gcpro_level.
3344
3345 * eval.c [DEBUG_GCPRO] (gcpro_level): New variable.
3346 (init_eval) [DEBUG_GCPRO]: Initialize it.
3347 (unwind_to_catch) [DEBUG_GCPRO]: Set gcpro_level
3348 from remaining gcprolist.
3349
3636f7a3
KH
33501999-10-29 Kenichi Handa <handa@etl.go.jp>
3351
3352 * coding.c (code_convert_region): Update `dst' correctly.
3353
a2ad7096
GM
33541999-10-28 Gerd Moellmann <gerd@gnu.org>
3355
3356 * fns.c (Fmemq, Fassq, Frassq, assq_no_quit, Fassoc)
3357 (Frassoc): Rewritten.
3358
1e3196e8
GM
33591999-10-27 Noah Friedman <friedman@splode.com>
3360
3361 * s/gnu-linux.h [HAVE_DEV_PTMX]: Redefine FIRST_PTY_LETTER to 'z'.
3362 Define PTY_NAME_SPRINTF.
3363 Redefine PTY_TTY_NAME_SPRINTF.
3364 * config.in: Add undef for HAVE_DEV_PTMX.
3365
83c8f461 33661999-10-26 Richard M. Stallman <rms@gnu.org>
4ea68fcc
RS
3367
3368 * regex.c (POP_FAILURE_POINT): Use failure_id.integer
3369 as arg to DEBUG_POP and DEBUG_PRINT.
3370
83c8f461 33711999-10-27 Richard M. Stallman <rms@gnu.org>
17dbfaad
GM
3372
3373 * data.c (Qad_activate_internal): Renamed from Qad_activate.
3374 (Ffset): Call Qad_activate_internal.
3375 (syms_of_data): Initialize Qad_activate_internal.
3376
26922151
GM
33771999-10-27 Gerd Moellmann <gerd@gnu.org>
3378
3379 * xdisp.c (echo_area_display) [HAVE_X_WINDOWS]: Do nothing if
3380 Vterminal_frame is selected and Vwindow_system is non-nil.
3381
67a5596f
GM
33821999-10-26 Gerd Moellmann <gerd@gnu.org>
3383
2bea706b
GM
3384 * xdisp.c (echo_area_display): Put previous change in #if 0.
3385
67a5596f
GM
3386 * emacs.c (standard_args): Add `file' as synonym for `visit',
3387 `execute' as synonym for `eval'.
3388 (main): Add new options to usage message.
3389
81dc5de5
GM
33901999-10-25 Gerd Moellmann <gerd@gnu.org>
3391
3392 * data.c (Qhash_table): New.
3393 (Ftype_of): Return it for hash tables.
3394 (syms_of_data): Initialize Qhash_table.
3395
83c8f461 33961999-10-25 Richard M. Stallman <rms@gnu.org>
bd3c545d
GM
3397
3398 * regex.c (POP_FAILURE_POINT): Extract failure_id as an integer.
3399
66e4690f 34001999-10-24 Ken Raeburn <raeburn@gnu.org>
3a7093d8 3401
7539e11f
KR
3402 * alloc.c: Undef HIDE_LISP_IMPLEMENTATION before including
3403 lisp.h.
3404
3405 * buffer.c (Fbuffer_list, Fget_file_buffer, get_truename_buffer,
3406 Fbuffer_local_variables, Fother_buffer, record_buffer,
3407 set_buffer_internal_1, Fbury_buffer, Fkill_all_local_variables,
3408 swap_out_buffer_local_variables, overlays_at, overlays_in,
3409 overlay_touches_p, overlay_strings, recenter_overlay_lists,
3410 fix_overlays_in_range, fix_overlays_before, Foverlay_get,
3411 Foverlay_put, report_overlay_modification, evaporate_overlays):
3412 Use XCAR, XCDR, and XFLOAT_DATA instead of explicit member
3413 references.
3414 * data.c (Fcar, Fcar_safe, Fcdr, Fcdr_safe, Fsetcar, Fsetcdr,
3415 swap_in_symval_forwarding, set_internal, default_value,
3416 Fset_default, Fmake_variable_buffer_local, Fmake_local_variable,
3417 Fmake_variable_frame_local, Flocal_variable_p,
3418 Flocal_variable_if_set_p, arithcompare, Fzerop, cons_to_long,
3419 Fnumber_to_string, float_arith_driver, Fadd1, Fsub1): Likewise.
3420 * dispnew.c (Fframe_or_buffer_changed_p): Likewise.
3421 * emacs.c (main): Likewise.
3422 * fontset.c (fs_load_font, fs_register_fontset,
3423 CACHED_FONTSET_NAME, CACHED_FONTSET_REGEX, Fquery_fontset,
3424 Fnew_fontset, Fset_fontset_font): Likewise.
3425 * frame.c (do_switch_frame, next_frame, prev_frame,
3426 other_visible_frames, Fdelete_frame, Fvisible_frame_list):
3427 Likewise.
3428 * keyboard.c (read_char, help_char_p, event_to_kboard,
3429 kbd_buffer_get_event, timer_start_idle, timer_check,
3430 make_lispy_event, apply_modifiers, reorder_modifiers,
3431 Fevent_convert_list, lucid_event_type_list_p, menu_bar_items,
3432 menu_bar_one_keymap, menu_item_eval_property_1, parse_menu_item,
3433 tool_bar_items, read_char_x_menu_prompt, read_key_sequence,
3434 Fcommand_execute, Fexecute_extended_command): Likewise.
3435 * minibuf.c (read_minibuf, get_minibuffer, Ftry_completion,
3436 Fall_completions): Likewise.
3437 * window.c (Fset_window_margins): Likewise.
3438
3439 * callint.c (quotify_args): Don't explicitly use struct
3440 Lisp_Cons, use Lisp_Object and XCAR/XCDR instead.
3441
3a7093d8
KR
3442 * s/netbsd.h (HAVE_GETLOADAVG): Define as 1.
3443 (UNEXEC, START_FILES, LIB_STANDARD, LIB_GCC): Define ELF versions,
3444 if __ELF__ is defined.
3445
2a3d7146
GM
34461999-10-24 Gerd Moellmann <gerd@gnu.org>
3447
3448 * window.c (Fnext_window): Add a QUIT in the loop.
3449
8ac52782
GM
34501999-10-23 Gerd Moellmann <gerd@gnu.org>
3451
3452 * Makefile.in (bootstrap, bootstrap-emacs, bootstrap-temacs):
3453 New targets.
3454
05f0d15a
DL
34551999-10-22 Dave Love <fx@gnu.org>
3456
3457 * emacs.c (main): Enable profiling conditional on __linux also.
3458
882fb0e6
GM
34591999-10-20 Gerd Moellmann <gerd@gnu.org>
3460
3461 * xrdb.c (x_load_resources): Set default resources for resource
3462 classes instead of for the specific Emacs.
3463
b5f5bc31
GM
34641999-10-19 Gerd Moellmann <gerd@gnu.org>
3465
66f4dd69
GM
3466 * s/freebsd.h (HAVE_GETLOADAVG): Define as 1 because config.h
3467 defines it that way.
3468
b5f5bc31
GM
3469 * xdisp.c (echo_area_display) [HAVE_X_WINDOWS]: Do nothing
3470 if selected_frame is equal to Vterminal_frame.
3471
68c45bf0
PE
34721999-10-19 Paul Eggert <eggert@twinsun.com>
3473
3474 Add support for large files, 64-bit Solaris, system locale codings.
3475
3476 * Makefile.in (emacs): Set the LC_ALL environment variable to "C"
3477 when dumping, so that the dumped Emacs doesn't have stray locale info.
3478 (dired.o): Depend on systime.h.
3479 (editfns.o): Depend on coding.h.
3480
3481 * alloc.c, buffer.c, callproc.c, ccl.c, charset.c, coding.c, data.c,
3482 dispnew.c, editfns.c, emacs.c, filelock.c, floatfns.c, hftctl.c,
3483 keyboard.c, process.c, sysdep.c, unexelf.c, unexhp9k800.c,
3484 unexsunos4.c, vmsfns.c, vmsgmalloc.c, w32faces.c, w32menu.c, w32term.c,
3485 w32xfns.c, xfaces.c, xfns.c, xmenu.c, xterm.c:
3486 Include <config.h> before any system include files.
3487
3488 * alloc.c, buffer.c, ccl.c, data.c, editfns.c, emacs.c, eval.c,
3489 fileio.c, filelock.c, frame.c, insdel.c, keymap.c, lread.c,
3490 m/alpha.h, print.c, search.c, sysdep.c, xdisp.c, xfaces.c, xfns.c,
3491 xmenu.c, xterm.c:
3492 Do not include <stdlib.h>, as <config.h> does this now.
3493
3494 * callproc.c (Fcall_process):
3495 Synchronize messages locale before invoking strerror.
3496 Decode resulting string with locale-coding-system.
3497
3498 * coding.c (Vlocale_coding_system): New var.
3499 (syms_of_coding): Adjust to above change.
3500 (emacs_strerror): New function.
3501
3502 * coding.h (emacs_strerror, Vlocale_coding_system): New decls.
3503
3504 * config.in (HAVE_STDIO_EXT_H, HAVE_TM_GMTOFF, HAVE___FPENDING,
3505 HAVE_FTELLO, HAVE_GETLOADAVG, HAVE_MBLEN, HAVE_MBRLEN,
3506 HAVE_STRSIGNAL): New macros.
3507 (BITS_PER_LONG): Default to 64 if _LP64 is defined.
3508 <stdlib.h>: Include if HAVE_STDLIB_H is defined and NOT_C_CODE isn't.
3509
3510 * dired.c: Include "systime.h".
3511 (Ffile_attributes): Do not cast s.st_size to int; this loses
3512 information if int is 32 bits but st_size and EMACS_INT are larger.
3513 Treat large device numbers like large inode numbers.
3514
3515 * dispnew.c (PENDING_OUTPUT_COUNT): Use __fpending if available.
3516
3517 * editfns.c: Include coding.h.
3518 (emacs_strftime): Remove decl.
3519 (emacs_strftimeu): New decl.
3520 (emacs_memftimeu): Renamed from emacs_memftime; new arg UT.
3521 Use emacs_strftimeu instead of emacs_strftime.
3522 (Fformat_time_string): Convert format string using
3523 Vlocale_coding_system, and convert result back. Synchronize time
3524 locale before invoking lower level function. Invoke
3525 emacs_memftimeu, passing ut, instead of emacs_memftime.
3526
3527 * emacs.c: Include <locale.h> if HAVE_SETLOCALE is defined.
3528 (Vmessages_locale, Vprevious_messages_locale, Vtime_locale,
3529 Vprevious_time_locale): New variables.
3530 (main): Invoke setlocale early, so that initial error messages are
3531 localized properly. But skip locale-setting if LC_ALL is "C".
3532 Fix up locale when it's safe to do so.
3533 (fixup_locale): Moved here from xterm.c.
3534 (synchronize_locale, synchronize_time_locale,
3535 synchronize_messages_locale): New functions.
3536 (syms_of_emacs): Accommodate above changes.
3537
3538 * fileio.c (report_file_error): Convert strerror output according
3539 to Vlocale_coding_system.
3540 (Finsert_file_contents): Check for arithmetic overflow in
3541 computations that depend on file size. Report IO errors
3542 with emacs_strerror, not strerror.
3543
3544 * fns.c (Fgethash): Declare dflt parameter.
3545
3546 * gmalloc.c: Do not define const to nothing if HAVE_CONFIG_H
3547 is defined; that's config.h's job.
3548
3549 * lisp.h (EMACS_INT, BITS_PER_EMACS_INT, EMACS_UINT): If _LP64,
3550 default these values to long, BITS_PER_LONG, and unsigned long.
3551 (VALBITS, MARKBIT, XINT): Do not assume 32-bit EMACS_INT.
3552 (PNTR_COMPARISON_TYPE): Default to EMACS_UINT, not to unsigned int.
3553 (code_convert_string_norecord, fixup_locale,
3554 synchronize_messages_locale, synchronize_time_locale,
3555 emacs_open, emacs_close, emacs_read, emacs_write): New decls.
3556 All Emacs callers of open, close, read, write changed to use
3557 emacs_open, emacs_close, emacs_read, emacs_write.
3558
3559 * lread.c (file_offset, file_tell): New macros. All uses of ftell
3560 changed to file_tell.
3561 (saved_doc_string_position, prev_saved_doc_string_position): Now
3562 of type file_offset.
3563 (init_lread): Do not fix locale here; fixup_locale now does this.
3564
3565 * m/amdahl.h, s/usg5-4.h:
3566 (NSIG): Remove.
3567 (NSIG_MINIMUM): New macro.
3568
3569 * m/cydra5.h, m/dpx2.h, m/mips.h, m/pfa50.h, m/sps7.h, m/stride.h,
3570 m/ustation.h, s/gnu-linux.h, s/hpux.h, s/iris3-5.h, s/iris3-6.h,
3571 s/umips.h, s/usg5-4.h:
3572 (SIGIO): Do not undef.
3573 (BROKEN_SIGIO): New macro.
3574
3575 * m/ustation.h:
3576 (SIGTSTP): Do not undef.
3577 (BROKEN_SIGTSTP): New macro.
3578
3579 * s/gnu-linux.h:
3580 (SIGPOLL, SIGURG): Do not undef.
3581 (BROKEN_SIGPOLL, BROKEN_SIGURG): New macros.
3582
3583 * s/ptx4.h:
3584 (SIGINFO): Do not undef.
3585 (BROKEN_SIGINFO): New macros.
3586
3587 * m/delta.h, s/ptx.h, s/template.h: Doc fix.
3588
3589 * mktime.c, strftime.c: Update to glibc 2.1.2 version, with
3590 some Emacs-related changes merged.
3591
3592 * print.c (float_to_string): Prepend "-" to representation of a
3593 NaN if the NaN is negative.
3594
3595 * process.c (sys_siglist): Omit if HAVE_STRSIGNAL.
3596 (wait_reading_process_input): Use emacs_strerror, not strerror.
3597
3598 * process.c (status_message, sigchld_handler): Synchronize locale,
3599 then use strsignal istead of sys_siglist.
3600 * w32proc.c (sys_wait): Likewise.
3601
3602 * s/aix3-1.h, s/bsd4-1.h, s/dgux.h, s/gnu-linux.h, s/hiuxmpp.h,
3603 s/hpux.h, s/iris3-5.h, s/iris3-6.h, s/irix3-3.h, s/osf1.h, s/rtu.h,
3604 s/sunos4-1.h, s/unipl5-0.h, s/unipl5-2.h, s/usg5-0.h, s/usg5-2-2.h,
3605 s/usg5-2.h, s/usg5-3.h, s/xenix.h:
3606 (open, close, read, write, INTERRUPTIBLE_OPEN,
3607 INTERRUPTIBLE_CLOSE, INTERRUPTIBLE_IO): Remove.
3608
3609 * s/sol2-5.h (_LARGEFILE_SOURCE, _FILE_OFFSET_BITS): New macros.
3610
3611 * sysdep.c (sys_read, sys_write, read, write, sys_close, close,
3612 sys_open, open): Remove.
3613 (emacs_open, emacs_close, emacs_read, emacs_write): Always define;
3614 the old INTERRUPTIBLE_OPEN, INTERRUPTIBLE_CLOSE, and INTERRUPTIBLE_IO
3615 macros are no longer used.
3616 (emacs_open): Renamed from sys_open. Merge BSD4_1 version.
3617 (emacs_close): Renamed from sys_close.
3618 (emacs_read): Renamed from sys_read.
3619 (emacs_write): Renamed from sys_write.
3620 (sys_siglist): Do not declare if HAVE_STRSIGNAL.
3621 (dup2): Do not print error on failure; the real dup2 doesn't.
3622 (strsignal): New function, defined if !HAVE_STRSIGNAL.
3623
3624 * syssignal.h (SIGINFO): Undef if defined and if BROKEN_SIGINFO
3625 is defined.
3626 (SIGIO, SIGPOLL, SIGTSTP, SIGURG): Likewise.
3627 (NSIG): If less than NSIG_MINIMUM, define to NSIG_MINIMUM.
3628 (strsignal): Declare if !HAVE_STRSIGNAL.
3629
3630 * unexelf.c (ElfBitsW, ELFSIZE, ElfExpandBitsW): New macros.
3631 (ElfW): Define in terms of ElfExpandBitsW.
3632
3633 * w32proc.c (sys_siglist): Remove decl.
3634
3635 * xdisp.c (decode_mode_spec): 3rd arg is int, not char, to comply
3636 with ANSI C.
3637 (display_string): Declare face_string_pos arg.
3638
3639 * xfns.c (Fx_show_tip): Declare timeout param.
3640
3641 * xterm.c: No need to include locale.h.
3642 (x_alloc_lighter_color, x_setup_relief_color):
3643 Pass arg as double, not float, for compatibility with ANSI C.
3644 (fixup_locale): Move to emacs.c.
3645 (x_term_init): Do not setlocale or fixup locale; the main program
3646 does this now.
3647
2f0b74ea
DL
36481999-10-18 Dave Love <fx@gnu.org>
3649
3650 * doc.c (Fdocumentation_property): Gcpro `tem'.
3651
471aa4a0
KH
36521999-10-18 Kenichi Handa <handa@etl.go.jp>
3653
3654 * lread.c (Fload): Calculate bytes of filename correctly.
3655 (openp): Likewise.
3656
aca2020b
KH
36571999-10-18 Keisuke Nishida <kxn30@po.cwru.edu>
3658
3659 * print.c (print_preprocess): In case print-circle is nil,
3660 add OBJ to Vprint_number_table only when OBJ is a symbol.
3661
1f5fe392 36621999-10-18 Kenichi Handa <handa@etl.go.jp>
b843d1ae
KH
3663
3664 * coding.c (code_convert_string): Add record_unwind_protect to
3665 assure setting inhibit_pre_post_conversion back to zero. Take
3666 care of the multibyteness of the working buffer.
3667
3668 * coding.c (inhibit_pre_post_conversion): New variable.
3669 (setup_coding_system): If inhibit_pre_post_conversion is nonzero,
3670 ignore post-read-conversion and pre-write-conversion property of
3671 the coding system.
3672 (code_convert_region_unwind): New function.
3673 (code_convert_region): Set inhibit_pre_post_conversion to 1 while
3674 running pre-write-conversion and post-read-conversion.
3675 (code_convert_string): Likewise.
3676
cd876a91
GM
36771999-10-17 Miles Bader <miles@gnu.org>
3678
3679 * editfns.c: Doc fix.
3680
36811999-10-17 Miles Bader <miles@gnu.org>
3682
3683 * editfns.c (Fconstrain_to_field): Make sure we don't violate the
3684 argument preconditions of find_before_next_newline in the case
3685 where both ONLY_IN_LINE and ESCAPE_FROM_EDGE are set and OLD_POS
3686 was indeed at the edge.
3687
36881999-10-17 Miles Bader <miles@gnu.org>
3689
3690 * minibuf.c (Fminibuffer_complete_and_exit): Supply value for new
3691 ESCAPE_FROM_EDGE parameter to Ffield_beginning.
3692
3693 * editfns.c (text_property_eq, text_property_stickiness): Don't
3694 use initializers for auto variables of type Lisp_Object.
3695 (find_field): Likewise. Use braces around nested ifs.
3696 (Fline_end_position): Store the raw eol in a variable, so that the
3697 final expression doesn't look so ugly.
3698 (Fconstrain_to_field): Doc fix.
3699 (preceding_pos): Renamed from `preceeding_pos'.
3700 (text_property_stickiness, find_field): Call preceding_pos,
3701 not preceeding_pos.
3702
37031999-10-17 Miles Bader <miles@gnu.org>
3704
3705 * editfns.c (Ffield_string_no_properties): New function.
3706 (text_property_stickiness, preceeding_pos): New functions.
3707 (Ffield_string): Remove PROPS parameter.
3708 (find_field): Add MERGE_AT_BOUNDARY parameter.
3709 Rewrite to use stickiness of `field' property to resolve
3710 ambiguous cases.
3711 (Ffield_beginning, Ffield_end): Add ESCAPE_FROM_EDGE parameter.
3712 (Fconstrain_to_field): Likewise.
3713 (syms_of_editfns): Init Sfield_string_no_properties.
3714 (Ffield_string, Ferase_field, Ffield_end):
3715 Supply new MERGE_AT_BOUNDARY argument to find_field.
3716 (Fline_beginning_position, Fline_end_position): Supply new
3717 ESCAPE_FROM_EDGE parameter to Fconstrain_to_field.
3718 Pass a value of Qt for the ONLY_IN_LINE argument to
3719 Fconstrain_to_field (only matters if N != 1).
3720 * syntax.c (Fforward_word): Supply new ESCAPE_FROM_EDGE parameter
3721 to Fconstrain_to_field.
3722
3723 * minibuf.c (Fminibuffer_complete_word): Use
3724 Ffield_beginning to find the prompt end.
3725
37261999-10-17 Miles Bader <miles@gnu.org>
3727
3728 * editfns.c (Fconstrain_to_field): Add get/set-current-point
3729 behavior when NEW_POS is nil.
3730 (find_field): Use XSETFASTINT instead of make_number.
3731 * minibuf.c (Fminibuffer_complete_and_exit): Test for an empty
3732 input string by seeing where the field begins, instead of
3733 looking at text-properties.
3734
37351999-10-17 Miles Bader <miles@gnu.org>
3736
3737 * editfns.c (Qfield): New variable.
3738 (find_field, Ferase_field, Ffield_string,
3739 Ffield_beginning, Ffield_end, Fconstrain_to_field): New functions.
3740 (Fline_beginning_position, Fline_end_position): Constrain to any field.
3741 (make_buffer_string_both): Remove minibuffer-prompt hack.
3742 (syms_of_editfns): Initialize Qfield, and subr entries for
3743 field functions above.
3744 * minibuf.c (read_minibuf): Don't save minibuffer prompt length on
3745 minibuf_save_list.
3746 Don't initialize minibuffer prompt length.
3747 Wrap prompt text-properties around the entire prompt.
3748 Add 'prompt text-property to prompt.
3749 Get final value with Ffield_string instead of make_buffer_string.
3750 (read_minibuf_unwind): Don't restore minibuffer prompt length from
3751 minibuf_save_list.
3752 (do_completion): Get minibuffer input with Ffield_string
3753 instead of Fbuffer_string.
3754 Erase minibuffer input with Ferase_field instead of erase_buffer.
3755 (Fminibuffer_complete_and_exit): Likewise.
3756 Test whether buffer is empty by looking for the 'prompt text
3757 property at the end.
3758 Set prompt length by looking for the end of the prompt text property,
3759 and save prompt length for later use (since there is no longer a
3760 buffer variable to get it from).
3761 (Fminibuffer_prompt_width, Fminibuffer_prompt_end): Functions removed.
3762 (syms_of_minibuf): Remove initializations of
3763 Sminibuffer_prompt_width and Sminibuffer_prompt_end.
3764 * buffer.h (struct buffer): Remove prompt_end_charpos field.
3765 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer, Fkill_buffer):
3766 Don't initialize prompt_end_charpos field.
3767 * syntax.c (Fforward_word): Likewise.
3768 Constrain to any field.
3769
3f6f7508
GM
37701999-10-16 Gerd Moellmann <gerd@gnu.org>
3771
3772 * window.c (enum save_restore_action): New.
3773 (save_restore_orig_size): Change parameter list. Add
3774 functionality to check for valid orig_top and orig_height members
3775 in a window tree.
3776 (grow_mini_window): Call save_restore_orig_size with new parameter
3777 list.
3778 (shrink_mini_window): Restore old window sizes only if old
3779 size information is valid in all windows in a window tree.
3780
06482119
GM
37811999-10-15 Gerd Moellmann <gerd@gnu.org>
3782
2710454d
GM
3783 * xmenu.c (set_frame_menubar): Don't call
3784 x_set_menu_resources_from_menu_face here.
3785 (update_frame_menubar): Call x_set_menu_resources_from_menu_face.
3786
06482119
GM
3787 * xfns.c (gif_load): Fix handling of interlaced GIFs.
3788
17fa2837
DL
37891999-10-14 Dave Love <fx@gnu.org>
3790
3791 * xdisp.c (handle_fontified_prop): GCPRO `pos'.
3792
45f93416
GM
37931999-10-14 Gerd Moellmann <gerd@gnu.org>
3794
3795 * process.c (Fopen_network_stream): Don't loop if gethostbyname
3796 fails and h_errno is TRY_AGAIN.
3797
c765b723
DL
37981999-10-13 Dave Love <fx@gnu.org>
3799
3800 * filelock.c (lock_file): Move gcpro of `fn'.
3801
dace7f4e
GM
38021999-10-10 Gerd Moellmann <gerd@gnu.org>
3803
3804 * keyboard.c (auto-save-interval): Fix documentation.
3805
83c8f461 38061999-10-09 Richard M. Stallman <rms@gnu.org>
73fb36f1
RS
3807
3808 * print.c (print): When removing objects from Vprint_number_table,
3809 only scan the newly added objects.
3810 (print_preprocess): If OBJ is a gensym, and print-continuous-numbering,
3811 unconditionally force it to stay in the table.
3812
85177c86
GM
38131999-10-09 Gerd Moellmann <gerd@gnu.org>
3814
3815 * xfns.c (prepare_image_for_display): Don't try to load image if
3816 loading it failed before.
3817 (lookup_image, prepare_image_for_display): Remember if loading the
3818 image failed.
3819 (xpm_load): Add missing UNBLOCK_INPUT.
3820
3821 * dispextern.h (struct image): New member load_failed_p.
3822
11e4de5d
SM
38231999-10-08 Stefan Monnier <monnier@cs.yale.edu>
3824
f28eba7b 3825 * fileio.c (Fmake_temp_name): Add a reference to `make-temp-file'
11e4de5d
SM
3826 in the docstring.
3827
f1da8f06
GM
38281999-10-08 Gerd Moellmann <gerd@gnu.org>
3829
3830 * xterm.c (XTread_socket) <ClientMessage, WM_TAKE_FOCUS>:
3831 Don't call XSetInputFocus because that can generate additional
3832 FocusIn events.
3833
c37bbd4f
GM
38341999-10-07 Jeffrey C Honig <jch@bsdi.com>
3835
3836 * bsdos4.h [HAVE_LIBNCURSES]: Define TERMINFO and LIBS_TERMCAP.
3837
83c8f461 38381999-10-07 Richard M. Stallman <rms@gnu.org>
78cc5c64
GM
3839
3840 * process.c (wait_reading_process_input): When trying to suck
3841 input from one process, for accept-process-output,
3842 exit that loop if we get EAGAIN or EWOULDBLOCK.
3843
577d9e2f
GM
38441999-10-07 Gerd Moellmann <gerd@gnu.org>
3845
3846 * xfaces.c (Qbitmap_spec_p): Replaces Qpixmap_spec_p.
3847 (Fbitmap_spec_p): Replaces Fpixmap_spec_p.
3848 (load_pixmap): Use Fbitmap_spec_p and Qbitmap_spec_p instead of
3849 Fpixmap_spec_p and Qpixmap_spec_p.
3850 (load_face_colors, check_lface_attrs,
3851 merge_face_vector_with_property,
3852 Finternal_set_lisp_face_attribute): Use Fbitmap_spec_p.
3853 (syms_of_xfaces): Initialize Qbitmap_spec_p, defsubr
3854 Fbitmap_spec_p.
3855
f5737ad2
GM
38561999-10-07 Gerd Moellmann <gerd@gnu.org>
3857
3858 * xdisp.c (display_menu_bar): Use MENU_FACE_ID instead of
3859 MODE_LINE_FACE_ID.
3860
3861 * xfaces.c (toplevel) [USE_MOTIF]: Include some Motif headers.
3862 (struct x_resources) [USE_X_TOOLKIT]: New.
3863 (xm_apply_resources, xm_set_menu_resources_from_menu_face)
3864 [USE_MOTIF]: New.
3865 (xl_apply_resources, xl_set_menu_resources_from_menu_face)
3866 [USE_LUCID]: New.
3867 (x_set_menu_resources_from_menu_face) [USE_X_TOOLKIT]: New.
3868 (Qmenu): New.
3869 (syms_of_xfaces): Initialize Qmenu.
3870 (realize_basic_faces): Realize face `menu'.
3871 (resolve_face_name): New.
3872 (lface_from_face_name): Use it.
3873 (Finternal_set_lisp_face_attribute): Ditto.
3874 (Fpixmap_spec_p): Rewritten. Extend doc string.
3875
3876 * xmenu.c (set_frame_menubar, xmenu_show): Call
3877 x_set_menu_resources_from_menu_face.
3878
3879 * dispextern.h (enum face_id): Add MENU_FACE_ID.
3880 (toplevel): Include X11/Intrinsic.h.
3881
6a1aa823
DL
38821999-10-03 Ken'ichi Handa <handa@gnu.org>
3883
3884 * coding.c (DECODE_CHARACTER_ASCII): Decode ASCII invocated to GR
3885 correctly.
3886
26901792
DL
38871999-09-30 Kenichi Handa <handa@etl.go.jp>
3888
3889 * category.c (modify_lower_category_set): Set default value of
3890 TABLE correctly.
3891
3892 * minibuf.c (Fminibuffer_complete_word): Calculate string byte
3893 size correctly.
3894
38951999-09-29 Gerd Moellmann <gerd@gnu.org>
3896
3897 * editfns.c (Fpropertize): Renamed from Fproperties.
3898
38991999-09-29 Gerd Moellmann <gerd@gnu.org>
3900
3901 * xdisp.c (resize_mini_window): Do nothing if frame is an X
3902 frame that hasn't been initialized yet.
3903
83c8f461 39041999-09-28 Richard M. Stallman <rms@gnu.org>
a04f1a93
PR
3905
3906 * keymap.c (Fsingle_key_description): Make tem big enough.
3907 (describe_buffer_bindings): Make buf big enough.
3908
83c8f461 39091999-09-27 Richard M. Stallman <rms@gnu.org>
d177c583
PR
3910
3911 * intervals.c (get_local_map): Use indirect_function,
3912 not Findirect_function.
3913
26901792
DL
39141999-09-27 Dave Love <fx@gnu.org>
3915
3916 * cm.h: Remove unneeded declaration of ospeed.
3917
39181999-09-26 Gerd Moellmann <gerd@gnu.org>
3919
3920 * lisp.h (toplevel): Add prototype for
3921 next_single_char_property_change.
3922
3923 * textprop.c (next_single_char_property_change): New.
3924
3925 * xdisp.c (display_prop_end, invisible_text_between_p): Use
3926 next_single_char_property_change.
3927
39281999-09-25 Gerd Moellmann <gerd@gnu.org>
3929
3930 * editfns.c (Fproperties): New.
3931 (syms_of_editfns): Defsubr it.
3932
3933 * xfns.c (lookup_image): Set image's timestamp because it's
3934 used when we look it up.
3935
39361999-09-23 Gerd Moellmann <gerd@gnu.org>
3937
3938 * window.c (enlarge_window): Add window parameter instead of using
3939 selected_window.
3940 (Fdisplay_buffer): Call it with window parameter instead of
3941 setting selected_window.
3942 (Fenlarge_window, Fshrink_window): Ditto.
3943 (shrink_mini_window): If there is no recorded height and position
3944 info, resize mini-window to height 1.
3945
3946 * xfns.c (image_error): Use add_to_log.
3947
3948 * xfaces.c (load_pixmap): Call add_to_log without frame parameter.
3949 (load_face_font_or_fontset, load_color,
3950 merge_face_vector_with_property): Ditto.
3951
3952 * dispextern.h: Add prototype for add_to_log.
3953
3954 * xfaces.c (add_to_log): Move to xdisp.c.
3955
3956 * xdisp.c (add_to_log): Moved from xfaces.c. Remove frame
3957 parameter.
3958
39591999-09-23 Gerd Moellmann <gerd@gnu.org>
3960
3961 * xterm.c (XTread_socket) <MotionNotify>: Change #ifdef
3962 USE_X_TOOLKIT to #ifdef USE_TOOLKIT_SCROLL_BARS.
3963
3964 * xdisp.c (resize_mini_window): Use grow_mini_window and
3965 shrink_mini_window.
3966
3967 * window.c (window_min_size): Add parameter ignore_fixed_p.
3968 (change_window_height): Call window_min_size with new parameter.
3969 (shrink_window_lowest_first, save_restore_orig_size,
3970 grow_mini_window, shrink_mini_window): New.
3971 (make_window, replace_window): Initialize orig_top and
3972 orig_height.
3973 (enlarge_window): Renamed from change_window_height. Make it
3974 static.
3975 (Fdisplay_buffer, Fenlage_window, Fshrink_window): Call
3976 enlarge_window instead of change_window_height.
3977
3978 * window.h (struct window): New members orig_top, orig_height.
3979 (toplevel): Add prototypes for grow_mini_window and
3980 shrink_mini_window. Remove prototype for change_window_height.
3981
39821999-09-21 Eli Zaretskii <eliz@gnu.org>
3983
3984 * frame.c (frame_name_fnn_p): Fix previous change.
3985
39861999-09-20 Gerd Moellmann <gerd@gnu.org>
3987
3988 * minibuf.c (toplevel): Move include of stdio.h to other includes.
3989
3990 * dispnew.c (direct_output_for_insert): Cast arguments to
3991 safe_bcopy to char *.
3992
3993 * lread.c (readchar): Remove unused variables.
3994 (read_filtered_event, read1, Fmapatoms): Ditto.
3995 (toplevel): Include intervals.h.
3996
3997 * eval.c (Fsignal): Remove unused variables.
3998 (Fcommandp, do_autoload): Ditto.
3999
4000 * lisp.h: Add prototype for safe_bcopy, fatal.
4001
4002 * editfns.c (init_editfns): Remove unused variables.
4003 (Fgoto_char, Fchar_after, Fformat): Ditto.
4004 (message_text, message_length): Put in #ifndef HAVE_MENUS.
4005
4006 * data.c (find_symbol_value): Remove unused variables.
4007 (Faref, Fstring_to_number): Ditto.
4008 (toplevel): Include stdio.h.
4009 (Fnumber_to_string): Cast XINT to long for %ld.
4010
4011 * casefiddle.c (casify_object): Remove unused variables.
4012 (casify_region): Ditto.
4013
4014 * filelock.c (get_boot_time): Put local variable used in
4015 conditinally compiled section in #ifdef.
4016 (toplevel): Include stdio.h.
4017
4018 * keymap.c (Flookup_key, Faccessible_keymaps, describe_vector,
4019 keys_of_keymap, syms_of_keymap): Remove unused variables.
4020
40211999-09-20 Gerd Moellmann <gerd@gnu.org>
4022
4023 * xdisp.c (sync_frame_with_window_matrix_rows): Disable frame rows
4024 whose corresponding window rows have been disabled in
4025 try_window_id.
4026
40271999-09-20 Gerd Moellmann <gerd@gnu.org>
4028
4029 * xdisp.c (compute_window_start_on_continuation_line): Handle case
4030 that window start is out of range.
4031 (handle_display_prop, handle_single_display_prop): Replace
4032 marginal area specifications like `left-margin' with `(margin
4033 left-margin)'.
4034 (Qmargin): New.
4035 (syms_of_xdisp): Initialize Qmargin.
4036
40371999-09-19 Gerd Moellmann <gerd@gnu.org>
4038
4039 * syntax.c (update_syntax_table, find_defun_start, back_comment,
4040 describe_syntax, skip_chars): Remove unused variables.
4041 (back_comment, forw_comment): Add braces to if-statement with
4042 if-else as dependent statement.
4043
4044 * process.c (list_processes_1): Remove unused variables.
4045 (Fopen_network_stream, create_process): Add parentheses to
4046 conditional expressions.
4047 (create_process): Put declaration of sigchld in #if 0.
4048 (Fopen_network_stream): Removed unused variables.
4049 (Fopen_network_stream, wait_reading_process_input,
4050 wait_reading_process_input, send_process, send_process): Ditto.
4051 (toplevel): Add prototypes for set_waiting_for_input and
4052 keyboard_bit_set.
4053
4054 * abbrev.c (Fexpand_abbrev): Remove unused variables.
4055
4056 * textprop.c (Fset_text_properties): Remove unused variables.
4057 (text_property_list, verify_interval_modification,
4058 interval_has_all_properties): Ditto.
4059
4060 * callproc.c (toplevel) [HAVE_UNISTD_H]: Include unistd.h.
4061 (Fcall_process): Remove unused variable.
4062
4063 * keyboard.c (Frecursive_edit): Remove unused variable.
4064 (command_loop_1, safe_run_hooks, kbd_buffer_get_event,
4065 timer_check, make_lispy_event, menu_bar_items,
4066 menu_bar_one_keymap, menu_bar_item, parse_menu_item,
4067 parse_tool_bar_item, read_char_x_menu_prompt, read_key_sequence,
4068 kbd_buffer_get_event, make_lispy_event, read_char_x_menu_prompt,
4069 read_key_sequence): Ditto. Fread_key_sequence,
4070 Fread_key_sequence_vector, Fsuspend_emacs): Ditto.
4071 (read_key_sequence) [GOBBLE_FIRST_EVENT]: Put local variables only
4072 used when GOBBLE_FIRST_EVENT is defined in #ifdef
4073 (Fexecute_extended_command): Cast XINT to long for %ld.
4074 (toplevel) [HAVE_UNISTD_H]: Include unistd.h.
4075 (toplevel): Include sys/types.h.
4076
4077 * lisp.h (RETURN_UNGCPRO): Use do-while (0) idiom.
4078 (toplevel): Add prototypes for stuff_char, and
4079 code_convert_string_norecord.
4080
40811999-09-19 Gerd Moellmann <gerd@gnu.org>
4082
4083 * buffer.h: Add prototype for r_re_alloc.
4084
4085 * insdel.c (copy_text): Removed unused variables.
4086 (count_combining_after, count_combining_after, insert_1_both,
4087 insert_from_string_1, insert_from_buffer_1, check_markers): Ditto.
4088 (adjust_after_replace, replace_range): Add parentheses to logical
4089 expressions. Remove unused variables.
4090 (CHECK_BYTE_COMBINING_FOR_INSERT): Add parentheses to logical
4091 expression.
4092
4093 * alloc.c (Fgarbage_collect): Remove unused variable.
4094 (compact_strings): Add parentheses around assignments in
4095 conditional context.
4096 (toplevel): Put declaration of unused function clear_marks
4097 in #if 0 like its definition.
4098
4099 * lisp.h: Add prototype for shrink_regexp_cache,
4100 sweep_weak_hash_tables.
4101
41021999-09-19 Dave Love <fx@gnu.org>
4103
4104 * process.c (Fopen_network_stream): Use strerror, not gai_strerror.
4105
4106 * doc.c (read_bytecode_char): Declare arg.
4107
4108 * lisp.h: Declare Fcurrent_message, Fmake_temp_name,
4109 read_bytecode_char, Fx_hide_busy_cursor, getloadavg.
4110
41111999-09-18 Richard Stallman <rms@gnu.org>
4112
4113 * xdisp.c (echo_area_display): Turn off code that returned
4114 without doing anything when using a terminal frame.
4115
83c8f461 41161999-09-17 Richard M. Stallman <rms@gnu.org>
27271329
PR
4117
4118 * unexelf.c (unexec): Don't get confused by a short section
4119 just before the bss section.
4120
26901792
DL
41211999-09-16 Gerd Moellmann <gerd@gnu.org>
4122
4123 * emacs.c (main): Remove unused variables.
4124 (sort_args, Fkill_emacs, Fkill_emacs): Ditto.
4125
4126 * lisp.h: Add prototype for uninterrupt_malloc, memory_warnings,
4127 init_fileio_once, syms_of_sound, init_xfns, init_fns
4128 init_sound, check_message_stack.
4129
4130 * emacs.c (toplevel) [HAVE_UNISTD_H]: Include unistd.h.
4131
4132 * intervals.c (rotate_right, rotate_left): Add braces to avoid
4133 ambiguous else warning.
4134 (split_interval_left): Remove unused variables.
4135 (previous_interval, adjust_intervals_for_deletion,
4136 set_point_both, set_point_both, set_intervals_multibyte_1): Ditto.
4137 (icount, idepth, zero_length): Move into #if 0 section below
4138 original position where these are used.
4139
4140 * buffer.h [REL_ALLOC]: Add prototypes for r_alloc and r_alloc_free.
4141
4142 * buffer.c (Fkill_buffer): Remove unused variables.
4143 (Fkill_buffer, overlays_at, overlays_in, recenter_overlay_lists,
4144 fix_overlays_in_range, Fmove_overlay, Fprevious_overlay_change,
4145 init_buffer_once, (syms_of_buffer): Ditto.
4146
4147 * xrdb.c (get_fallback): Remove unused variable.
4148 (x_load_resources): Ditto. Put local variable used for Motif only
4149 in #ifdef USE_MOTIF.
4150
41511999-09-16 Gerd Moellmann <gerd@gnu.org>
4152
4153 * minibuf.c (read_minibuf): Remove unused variables.
4154 (read_minibuf, Fread_buffer, scmp, Fcompleting_read): Ditto.
4155 (do_completion): Move assignment out of conditional context.
4156 (Fdisplay_completion_list): Add parentheses to conditional expression.
4157
4158 * cm.c (toplevel) [HAVE_TERMCAP_H]: Include termcap.h.
4159
4160 * lisp.h: Add prototype for no_switch_window.
4161
4162 * window.c (Fset_window_buffer): Remove unused variables.
4163 (Fset_window_margins): Ditto.
4164
4165 * xdisp.c (resize_mini_window): Temporarily set the selected
4166 window's or Vminibuf_scroll_window's height to "fixed" around
4167 the call the change_window_height.
4168
4169 * window.c (window_fixed_size_p): Check window's height_fixed_p
4170 flag.
4171
4172 * window.h (struct window): New member height_fixed_p.
4173
4174 * dispnew.c (direct_output_forward_char): Don't use this method
4175 if showing a message or a message was just cleared because we
4176 might need to resize the mini-window.
4177
41781999-09-16 Gerd Moellmann <gerd@gnu.org>
4179
4180 * frame.c (Fdelete_frame): Correct local variable pointing to
4181 selected frame after selecting new frame.
4182
41831999-09-15 Richard Stallman <rms@gnu.org>
4184
4185 * puresize.h (BASE_PURESIZE): Increase to 525000.
4186
4187 * filelock.c (Vtemporary_file_directory): New variable.
4188 (syms_of_filelock): Set up Lisp variable.
4189
41901999-09-15 Gerd Moellmann <gerd@gnu.org>
4191
4192 * term.c (OUTPUT_IF, OUTPUT1_IF): Use do-while.
4193 (encode_terminal_code): Remove unused variables.
4194 (turn_off_face): Ditto.
4195 (toplevel): Include termcap.h if HAVE_TERMCAP_H.
4196
4197 * dispnew.c (update_frame_line): If writing whole desired line,
4198 don't clear to end of line if already at the end.
4199
42001999-09-15 Gerd Moellmann <gerd@gnu.org>
4201
4202 * xdisp.c (resize_mini_window): Don't report changed window
4203 height if it actually hasn't changed.
4204
4205 * widget.c (set_frame_size, EmacsFrameSetCharSize): Remove
4206 unused variables.
4207 (mark_shell_size_user_specified): Put in #if 0 because not used.
4208 (create_frame_gcs): Put in #if 0 because currently unused.
4209 (first_frame_p): Ditto.
4210
4211 * xmenu.c (single_menu_item, Fx_popup_menu, Fx_popup_menu,
4212 single_submenu, update_frame_menubar, set_frame_menubar,
4213 free_frame_menubar, xmenu_show, xdialog_show): Remove unused
4214 variables.
4215
4216 * print.c (PRINTFULLP): Removed because it is no longer used and
4217 is misleading.
4218 (Ferror_message_string): Remove unused variables.
4219 (print_object): Cast argument of sprintf to long for `%ld'
4220 specifier. Remove unused variable.
4221
42221999-09-14 Gerd Moellmann <gerd@gnu.org>
4223
4224 * sound.c (Fplay_sound): Remove usused variables.
4225 (be2hs): Put in #if 0 because it's currently not used.
4226
42271999-09-14 Ken Raeburn <raeburn@gnu.org>
4228
4229 * print.c (Ferror_message_string, print_error_message,
4230 print_object): Use XCAR, XCDR and XFLOAT_DATA instead of explicit
4231 member access.
4232
42331999-09-14 Gerd Moellmann <gerd@gnu.org>
4234
4235 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Put code in do-while.
4236
4237 * frame.c (Fnext_frame): Remove unused variable(s).
4238 (Fprevious_frame, Fmouse_pixel_position, frame_name_fnn_p): Ditto.
4239 (store_frame_param): Add parentheses to conditional expression.
4240 (Fmodify_frame_parameters): Remove unused variables.
4241 (Fmodify_frame_parameters, Fset_frame_size, Fset_frame_position):
4242 Ditto.
4243
4244 * xfns.c (x_set_background_color): Remove unused variable(s).
4245 (x_set_border_pixel): Ditto.
4246 (x_set_menu_bar_lines): Put local variable used only for
4247 non-toolkit case in #ifdef/#endif.
4248 (x_figure_window_size): Remove unused variable(s).
4249 (x_figure_window_size, x_window, lookup_image,
4250 xbm_read_bitmap_file_data, x_build_heuristic_mask, pbm_load,
4251 png_load, jpeg_load, gif_load, x_create_tip_frame,
4252 x_create_tip_frame, Fx_show_tip, x_set_border_pixel): Ditto.
4253
4254 * xterm.c (x_scroll_bar_handle_click): Compile only if
4255 not USE_TOOLKIT_SCROLL_BARS.
4256 (x_scroll_bar_set_handle, x_scroll_bar_note_movement): Ditto.
4257
4258 * dispextern.h: Add prototypes for gamma_correct and
4259 x_kill_gs_process.
4260
4261 * xterm.c (x_produce_glyphs): Remove unused variable(s).
4262 (x_alloc_nearest_color_for_widget, note_tool_bar_highlight,
4263 x_set_toolkit_scroll_bar_thumb): Ditto.
4264 (x_scroll_bar_create): Move local variable to the
4265 conditionally compiled section of code where it is used.
4266 (x_scroll_bar_create): Remove unused variable(s).
4267 (x_scroll_bar_remove, XTread_socket): Ditto.
4268 (XTread_socket) <ConfigureNotify>: Move variables used for
4269 non-toolkit case into conditionally compiled section of code.
4270
4271 * window.h (freeze_window_starts): Fix typo in prototype.
4272
4273 * xdisp.c (display_echo_area_1, try_window_id): Remove unused
4274 variable(s).
4275
4276 * lisp.h: Add prototype for debug_print.
4277
4278 * dispextern.h (xassert) [GLYPH_DEBUG]: Change definition
4279 to use do-while.
4280
4281 * fns.c (SXHASH_COMBINE): Add missing parentheses.
4282 (Fchar_table_range, Fset_char_table_default, mapcar1,
4283 Fyes_or_no_p, sweep_weak_hash_tables): Remove unused variable(s).
4284
4285 * lisp.h: Add prototype for getloadavg.
4286
42871999-09-14 Andreas Schwab <schwab@gnu.org>
4288
4289 * process.c (Fopen_network_stream): Avoid socket decriptor leak.
4290
4291 * lisp.h: Declare close_file_unwind.
4292
42931999-09-14 Richard Stallman <rms@gnu.org>
4294
4295 * filelock.c (get_boot_time): Make the temp name in the proper dir.
4296
42971999-09-13 Gerd Moellmann <gerd@gnu.org>
4298
4299 * xdisp.c (redisplay_window): Make sure start_at_line_beg
4300 is always set correctly.
4301
43021999-09-13 Dave Love <fx@gnu.org>
4303
4304 * xdisp.c (move_it_in_display_line_to): Make type consistent with
4305 declaration.
4306
43071999-09-13 Gerd Moellmann <gerd@delysid.gnu.org>
4308
4309 * xdisp.c (QCfile): Move here from xfns.c.
4310 (syms_of_xdisp): Initialize it.
4311 (message2_nolog): Change for Lisp_Object selected_frame.
4312 (message3_nolog, message_with_string, message,
4313 setup_echo_area_for_printing, truncate_echo_area,
4314 prepare_menu_bars, redisplay_internal, Fdump_tool_bar_row): Ditto.
4315
43161999-09-13 Dave Love <fx@gnu.org>
4317
4318 * xterm.c: Don't continue #define args for benefit of old cc.
4319 (xt_action_hook): Indent #error for benefit of K&R cc.
4320
43211999-09-13 Gerd Moellmann <gerd@delysid.gnu.org>
4322
4323 * xterm.c (XTcursor_to): Change for Lisp_Object selected_frame.
4324 (x_clear_frame, XTring_bell, XTmouse_position, XTread_socket): Ditto.
4325 (XRINGBELL): Removed.
4326
43271999-09-13 Dave Love <fx@gnu.org>
4328
4329 * xfns.c (x_put_x_image): Make type consistent with declaration.
4330
4331 * fns.c (Fmake_hash_table): Fix string continuation.
4332
43331999-09-13 Gerd Moellmann <gerd@delysid.gnu.org>
4334
4335 * xfns.c (QCfile): Moved to xdisp.c.
4336 (syms_of_xfns): Don't initialize QCfile.
4337 (check_x_frame): Change for Lisp_Object selected_frame.
4338 (check_x_display_info, x_get_resource_string): Ditto.
4339
43401999-09-13 Gerd Moellmann <gerd@gnu.org>
4341
4342 * minibuf.c (choose_minibuf_frame): Don't try to set the
4343 mini-buffer window's buffer, if the buffer is invalid.
4344
4345 * xfns.c (QCfile): Moved to xdisp.c.
4346 (syms_of_xfns): Don't initialize QCfile.
4347
4348 * xdisp.c (QCfile): Move here from xfns.c.
4349 (syms_of_xdisp): Initialize it.
4350
4351 * lisp.h (selected_frame): Add external declaration.
4352
4353 * xselect.c (x_own_selection): Change for Lisp_Object selected_frame.
4354 (Fx_store_cut_buffer_internal): Ditto.
4355 (Fx_rotate_cut_buffers_internal): Ditto.
4356
4357 * xfaces.c (frame_or_selected_frame): Change for Lisp_Object
4358 selected_frame.
4359 (Finternal_set_lisp_face_attribute): Ditto.
4360 (Finternal_get_lisp_face_attribute): Ditto.
4361 (Finternal_lisp_face_empty_p): Ditto.
4362 (Fdump_face): Ditto.
4363
4364 * term.c (OUTPUT): Change for Lisp_Object selected_frame.
4365 (OUTPUT_IF, ring_bell, set_terminal_modes, reset_terminal_modes,
4366 set_terminal_window, set_scroll_region, reassert_line_highlight,
4367 change_line_highlight, cursor_to, raw_cursor_to, clear_to_end,
4368 clear_end_of_line, clear_end_of_line_raw, clear_end_of_line_raw,
4369 encode_terminal_code, write_glyphs, term_init): Ditto.
4370
4371 * sysdep.c (reset_sys_modes): Change for Lisp_Object selected_frame.
4372 (kbd_input_ast, read_input_waiting): Ditto.
4373
4374 * minibuf.c (choose_minibuf_frame): Change for Lisp_Object
4375 selected_frame.
4376 (read_minibuf): Ditto.
4377
4378 * keyboard.c (command_loop_1): Change for Lisp_Object
4379 selected_frame.
4380 (cmd_error_internal, command_loop_1, read_char,
4381 kbd_buffer_get_event, read_avail_input,
4382 read_char_minibuf_menu_prompt, read_key_sequence, Fsuspend_emacs,
4383 interrupt_signal, quit_throw_to_read_char): Ditto.
4384
4385 * fontset.c (Ffont_info): Change for Lisp_Object selected_frame.
4386 (Ffontset_info): DItto.
4387
4388 * emacs.c (handle_USR1_signal): Change for Lisp_Object selected_frame.
4389
4390 * dispnew.c (selected_frame): Make it a Lisp_Object.
4391 (adjust_frame_glyphs_initially): Change for Lisp_Object selected_frame.
4392 (direct_output_for_insert, direct_output_forward_char,
4393 init_display): Ditto.
4394
4395 * data.c (swap_in_symval_forwarding): Change for Lisp_Object
4396 selected_frame.
4397 (set_internal): Ditto.
4398
4399 * buffer.c (Fother_buffer): Change for Lisp_Object selected_frame.
4400 (record_buffer): Ditto.
4401
4402 * frame.c (Fmake_terminal_frame): Use SELECTED_FRAME.
4403 (do_switch_frame): Change for Lisp_Object selected_frame.
4404 (Fselected_frame): Ditto.
4405 (Fframe_first_window): Use SELECTED_FRAME.
4406 (Fframe_root_window): Change for Lisp_Object selected_frame.
4407 (Fframe_selected_window, Fset_frame_selected_window, Fnext_frame,
4408 Fprevious_frame, other_visible_frames, Fdelete_frame,
4409 Fmouse_position, Fmouse_pixel_position, Fmake_frame_visible,
4410 Fmake_frame_invisible, Ficonify_frame, Fraise_frame, Flower_frame,
4411 Fframe_parameters, Fmodify_frame_parameters, Fframe_char_height,
4412 Fframe_char_width, Fframe_pixel_height, Fframe_pixel_width,
4413 Fset_frame_height, Fset_frame_width): Ditto.
4414
44151999-09-13 Gerd Moellmann <gerd@gnu.org>
4416
4417 * xdisp.c (message2_nolog): Change for Lisp_Object selected_frame.
4418 (message3_nolog, message_with_string, message,
4419 setup_echo_area_for_printing, truncate_echo_area,
4420 prepare_menu_bars, redisplay_internal, Fdump_tool_bar_row): Ditto.
4421
4422 * xmenu.c (Fx_popup_menu): Change for Lisp_Object selected_frame.
4423 (Fx_popup_dialog): Ditto.
4424
4425 * xfns.c (check_x_frame): Change for Lisp_Object selected_frame.
4426 (check_x_display_info, x_get_resource_string): Ditto.
4427
4428 * xterm.c (XTcursor_to): Change for Lisp_Object selected_frame.
4429 (x_clear_frame, XTring_bell, XTmouse_position, XTread_socket): Ditto.
4430 (XRINGBELL): Removed.
4431
4432 * window.c (Fminibuffer_window): Change for Lisp_Object
4433 selected_frame.
4434 (Fwindow_at, Fprevious_window, window_loop, select_window_1,
4435 display_buffer_1, Fdisplay_buffer, temp_output_buffer_show,
4436 Fcurrent_window_configuration, init_window_once): Ditto.
4437
4438 * frame.h (SELECTED_FRAME): New.
4439
44401999-09-12 Ken Raeburn <raeburn@gnu.org>
4441
4442 * category.c (word_boundary_p): Use XCAR and XCDR.
4443 * ccl.c (ccl_driver, resolve_symbol_ccl_program,
4444 Fregister_code_conversion_map): Likewise.
4445 * coding.c (setup_coding_system, detect_coding_system,
4446 Ffind_operation_coding_system, Fset_coding_priority_internal):
4447 Likewise.
4448 * doc.c (get_doc_string, Fdocumentation,
4449 store_function_docstring): Likewise.
4450 * editfns.c (save_restriction_restore): Likewise.
4451 * eval.c (Fcond, Fmacroexpand, Fcondition_case, wants_debugger,
4452 skip_debugger, find_handler_clause, Fautoload, Fapply,
4453 run_hook_with_args, run_hook_list_with_args, Ffetch_bytecode):
4454 Likewise.
4455 * fileio.c (Ffind_file_name_handler, Finsert_file_contents,
4456 Fwrite_region, do_auto_save_unwind, Fdo_auto_save,
4457 Fread_file_name): Likewise.
4458 * filelock.c (unlock_all_files): Likewise.
4459 * insdel.c (Fcombine_after_change_execute): Likewise.
4460 * intervals.c (adjust_intervals_for_insertion): Likewise.
4461 * keymap.c (get_keymap_1, Fkeymap_parent, Fset_keymap_parent,
4462 Fset_keymap_parent, fix_submap_inheritance, access_keymap,
4463 store_in_keymap, Fcopy_keymap, define_as_prefix,
4464 current_minor_maps, Faccessible_keymaps,
4465 accessible_keymaps_char_table, Fkey_description,
4466 Fwhere_is_internal, where_is_internal_2, where_is_internal_1,
4467 describe_buffer_bindings, describe_map_tree, shadow_lookup,
4468 describe_map): Likewise.
4469 * lread.c (Fload, load_unwind, close_load_descs, read_vector,
4470 read_list, init_lread): Likewise.
4471 * search.c (Fmatch_data): Likewise.
4472 * sunfns.c (Fsun_menu_internal): Likewise.
4473 * syntax.c (describe_syntax): Likewise.
4474 * undo.c (record_insert, record_delete, Fundo_boundary,
4475 truncate_undo_list): Likewise.
4476 * vmsproc.c (child_sig): Likewise.
4477
4478 * editfns.c (Fformat): Use XFLOAT_DATA.
4479
44801999-09-12 Gerd Moellmann <gerd@gnu.org>
4481
4482 * keyboard.c (command_loop_1): Resize mini-window to the
4483 exact size of a message displayed, if any.
4484
4485 * xdisp.c (resize_mini_window): Add parameter exact_p. Resize
4486 to exact size if exact_p is non-zero.
4487 (display_echo_area_1): Call resize_mini_window with
4488 new parameter.
4489 (redisplay_internal): Ditto.
4490 (resize_echo_area_axactly): New.
4491
4492 * minibuf.c (read_minibuf_unwind): Call resize_mini_window with
4493 new parameter.
4494
4495 * dispextern.h: Change prototype of resize_mini_window.
4496 Add prototype for resize_echo_area_axactly.
4497
4498 * xfaces.c (Fx_family_fonts): Replaces Fx_font_list.
4499 (syms_of_xfaces): Defsubr accordingly.
4500
4501 * xdisp.c (hscroll_window_tree): Choose cursor row from
4502 desired or current matrix.
4503 (redisplay_internal): Hscroll before updating.
4504
45051999-09-12 Gerd Moellmann <gerd@gnu.org>
4506
4507 * syntax.c (Fforward_word): Use prompt_end_charpos instead
4508 of minibuffer_prompt_length.
4509
4510 * minibuf.c (read_minibuf): Use prompt_end_charpos instead
4511 of minibuffer_prompt_length.
4512 (read_minibuf_unwind): Ditto.
4513 (Fminibuffer_complete_and_exit): Ditto.
4514 (Fminibuffer_complete_word): Ditto.
4515 (Fminibuffer_prompt_end): Ditto.
4516
4517 * editfns.c (Fbuffer_string): Use prompt_end_charpos instead
4518 of minibuffer_prompt_length.
4519 (Fline_beginning_position): Ditto.
4520
4521 * buffer.c (Fget_buffer_create): Use prompt_end_charpos instead
4522 of minibuffer_prompt_length.
4523 (Fmake_indirect_buffer): Ditto.
4524 (Fkill_buffer): Ditto.
4525 (Ferase_buffer): Ditto.
4526
4527 * buffer.h (prompt_end_charpos): Replaces
4528 minibuffer_prompt_length.
4529
4530 * minibuf.c (read_minibuf): Return mini-buffer contents
4531 without the prompt.
4532
4533 * editfns.c (make_buffer_string_both): Take out the code
4534 to handle mini-buffer prompts.
4535 (Fbuffer_string): Handle the prompt here, instead.
4536
4537 * xfaces.c (lface_from_face_name): Resolve face aliases.
4538 (Qmode_line): Replaces Qmodeline.
4539 (realize_basic_faces): Use Qmode_line.
4540 (syms_of_xfaces): Initialize Qmode_line.
4541
45421999-09-12 Gerd Moellmann <gerd@gnu.org>
4543
4544 * minibuf.c (read_minibuf): Set minibuf_prompt_width to the
4545 current column after inserting prompt.
4546 (Fminibuffer_prompt_width): Return minibuf_prompt_width.
4547
4548 * xfaces.c (Qframe_update_face_colors): New.
4549 (syms_of_xfaces): Initialize call.
4550 (update_face_from_frame_parameter): Call that function when
4551 the frame's background changes.
4552
45531999-09-12 Richard Stallman <rms@gnu.org>
4554
4555 * insdel.c (del_range_1): Don't treat minibuffer prompt specially.
4556
45571999-09-12 Ken Raeburn <raeburn@gnu.org>
4558
4559 * alloc.c (Fcons, pure_cons, Fpurecopy, Fgarbage_collect,
4560 mark_object, mark_buffer): Use XCAR and XCDR.
4561 * bytecode.c (Fbyte_code): Likewise.
4562 * callint.c (Fcall_interactively, Fprefix_numeric_value):
4563 Likewise.
4564 * callproc.c (Fcall_process, Fcall_process_region, child_setup,
4565 getenv_internal): Likewise.
4566 * dired.c (file_name_completion): Likewise.
4567 * fns.c (Fsafe_length, concat, Fcopy_alist, Fmember, Fmemq, Fassq,
4568 assq_no_quit, Fassoc, Frassq, Frassoc, Fdelq, Fdelete, Freverse,
4569 Fplist_get, Fplist_put, internal_equal, mapcar1): Likewise.
4570 * indent.c (Fcompute_motion): Likewise.
4571 * process.c (decode_status, Fprocess_status, Fprocess_exit_status,
4572 list_processes_1, Fstart_process, Fopen_network_stream,
4573 wait_reading_process_input, read_process_output_call,
4574 kill_buffer_processes, sigchld_handler, exec_sentinel_unwind,
4575 status_notify, wait_reading_process_input): Likewise.
4576 * textprop.c (PLIST_ELT_P, property_value, set_properties,
4577 extend_property_ranges): Likewise.
4578 * w32faces.c (Fpixmap_spec_p, merge_face_list): Likewise.
4579 * w32fns.c (x_window_to_frame, x_set_frame_parameters,
4580 x_report_frame_params, x_set_cursor_type, x_icon_type,
4581 x_figure_window_size, Fx_create_frame, w32_load_system_font,
4582 w32_load_font, enum_font_cb2, w32_list_bdf_fonts, w32_list_fonts,
4583 w32_list_synthesized_fonts, w32_find_ccl_program, Fx_list_fonts,
4584 Fw32_find_bdf_fonts, w32_find_bdf_fonts_in_dir,
4585 x_display_info_for_name, Fx_display_list): Likewise.
4586 * w32menu.c (menubar_id_to_frame, single_keymap_panes,
4587 Fx_popup_menu, Fx_popup_dialog): Likewise.
4588 * w32proc.c (Fw32_set_keyboard_layout): Likewise.
4589 * w32term.c (x_window_to_scroll_bar, w32_read_socket,
4590 w32_term_init, x_delete_display): Likewise.
4591 * xfns.c (x_window_to_frame, x_any_window_to_frame,
4592 x_non_menubar_window_to_frame, x_menubar_window_to_frame,
4593 x_top_window_to_frame, x_set_frame_parameters,
4594 x_report_frame_params, x_set_cursor_type, x_icon_type,
4595 x_figure_window_size, Fx_create_frame, x_display_info_for_name,
4596 Fx_display_list, x_create_tip_frame): Likewise.
4597 * xmenu.c (menubar_id_to_frame, single_keymap_panes,
4598 Fx_popup_menu, Fx_popup_dialog): Likewise.
4599 * xselect.c (x_own_selection, x_get_local_selection,
4600 x_handle_selection_request, x_handle_selection_clear,
4601 x_clear_frame_selections, wait_for_property_change_unwind,
4602 wait_for_property_change, x_handle_property_notify,
4603 copy_multiple_data, x_get_foreign_selection,
4604 lisp_data_to_selection_data, clean_local_selection_data,
4605 x_handle_selection_notify, Fx_get_selection_internal,
4606 x_disown_buffer_selections): Likewise.
4607 * xterm.c (x_window_to_scroll_bar, XTread_socket, x_list_fonts,
4608 x_load_font, x_find_ccl_program, x_term_init, x_delete_display):
4609 Likewise.
4610
4611 * alloc.c (make_float, make_pure_float, Fpurecopy): Use
4612 XFLOAT_DATA.
4613 * bytecode.c (Fbyte_code): Likewise.
4614 * floatfns.c (extract_float, Fexpt, Fabs, rounding_driver,
4615 fmod_float): Likewise.
4616
46171999-09-11 Richard Stallman <rms@gnu.org>
4618
4619 * xdisp.c (run_window_scroll_functions): If hook functions switch
4620 buffers, switch back after.
4621
46221999-09-11 Ken Raeburn <raeburn@gnu.org>
4623
4624 * charset.h (GET_TRANSLATION_TABLE): Use XCDR.
4625 * frame.h (FOR_EACH_FRAME): Use XCAR and XCDR.
4626 (PIXEL_X_FROM_CANON_X, PIXEL_Y_FROM_CANON_Y): Use XFLOAT_DATA.
4627 * keyboard.h (EVENT_HEAD, EVENT_START, EVENT_END, POSN_WINDOW,
4628 POSN_BUFFER_POSN, POSN_WINDOW_POSN, POSN_TIMESTAMP): Use XCAR and
4629 XCDR.
4630 * syntax.h (SYNTAX, SYNTAX_WITH_FLAGS, SYNTAX_MATCH): Use XCAR and
4631 XCDR.
4632
46331999-09-10 Richard Stallman <rms@gnu.org>
4634
4635 * xterm.c (XTread_socket): In XSetInputFocus, use RevertToParent,
4636 not RevertToPointerRoot.
4637 (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
4638 Fix the code to clear around the scroll bar.
4639
46401999-09-10 Keisuke Nishida <kxn30@po.cwru.edu>
4641
4642 * print.c: Support print-circle and related features.
4643 (Vprint_gensym_alist): Removed.
4644 (Vprint_circle, Vprint_continuous_numbering, print_number_index
4645 Vprint_number_table): New variables.
4646 (PRINT_NUMBER_OBJECT, PRINT_NUMBER_STATUS): New macros.
4647 (PRINTPREPARE, PRINTFINISH): Don't set Vprint_gensym_alist.
4648 (print, print_preprocess, print_preprocess_string, print_object):
4649 New/modified functions with print-circle feature. Use
4650 Vprint_number_table instead of Vprint_gensym_alist for print-gensym.
4651 (syms_of_print): Defined new Lisp variables `print-circle',
4652 `print-continuous-numbering', `print-number-table'.
4653
46541999-09-10 Gerd Moellmann <gerd@gnu.org>
4655
4656 * xfns.c (x_build_heuristic_mask): Accept a list `(R G B)'
4657 as background color specification instead of an integer.
4658 (image-cache-eviction-delay): Replaces image-eviction-seconds.
4659 (Vimage_cache_eviction_delay): Replaces Vimage_eviction_seconds.
4660 (clear_image_cache, syms_of_xfns): Use it.
4661 (Qpostscript): Replaces Qghostscript.
4662 (gs_type): Use it.
4663 (gs_image_p): Ditto.
4664 (syms_of_xfns): Initialize Qpostscript.
4665
46661999-09-10 Richard Stallman <rms@gnu.org>
4667
4668 * buffer.c (Ferase_buffer): Don't erase the minibuffer prompt.
4669
46701999-09-09 Richard Stallman <rms@gnu.org>
4671
4672 * editfns.c (Fline_beginning_position): Handle minibuffer prompt here.
4673
4674 * cmds.c (Fbeginning_of_line): Don't handle minibuffer prompt here.
4675
46761999-09-09 Gerd Moellmann <gerd@gnu.org>
4677
4678 * fns.c (Fmakehash): Accept just one optional argument TEST.
4679
4680 * xfns.c (QCindex): New.
4681 (syms_of_xfns): Initialize QCindex.
4682 (gif_load): Use it instead of `:image'.
4683
46841999-09-09 Richard Stallman <rms@gnu.org>
4685
4686 * fileio.c (Fwrite_region): Finish renaming CONFIRM to MUSTBENEW.
4687 (Fwrite_region) [DOS_NT]: Handle `excl' here too.
4688
46891999-09-08 Gerd Moellmann <gerd@gnu.org>
4690
4691 * xdisp.c (Qwhen): Replaces QCwhen.
4692 (syms_of_xdisp): Initialized it instead of QCwhen.
4693 (handle_single_display_prop): Use it instead of QCwhen.
4694
46951999-09-08 Ken'ichi Handa <handa@gnu.org>
4696
4697 * charset.c (translate_char): Reset MSBs of arguments of
4698 MAKE_CHAR.
4699 (CHAR_COMPONENTS_VALID_P): Fix for ASCII.
4700
47011999-09-08 Lars Magne Ingebrigtsen <larsi@gnus.org>
4702
4703 * editfns.c (Fbufsize): Accept an extra BUFFER parameter.
4704
4705 * fns.c (Fbase64_decode_region): Don't place point outside of the
4706 current accessible portion.
4707
47081999-09-07 Richard Stallman <rms@gnu.org>
4709
4710 * keymap.c (fix_submap_inheritance): Do nothing if the proper
4711 parent is an ancestor of SUBMAP; otherwise, add it as the
4712 ultimate ancestor.
4713
47141999-09-07 Gerd Moellmann <gerd@gnu.org>
4715
4716 * xdisp.c (handle_single_display_prop): Change conditional
4717 display property to `:when FORM . VALUE'.
4718
47191999-09-07 Richard Stallman <rms@gnu.org>
4720
4721 * fileio.c (Fwrite_region): Doc fix.
4722
47231999-09-07 Stefan Monnier <monnier@cs.yale.edu>
4724
4725 * fileio.c (Qexcl): New variable.
4726 (report_file_error): Handle EEXIST specially.
4727 (Fwrite_region): Special handling for CONFIRM = `excl'.
4728 (syms_of_fileio): Initialize Qexcl.
4729
47301999-09-07 Gerd Moellmann <gerd@gnu.org>
4731
4732 * xfns.c (x_set_foreground_color): Call
4733 update_face_from_frame_parameter.
4734 (x_set_background_color): Ditto.
4735 (x_set_mouse_color): Ditto.
4736 (x_set_cursor_color): Ditto.
4737 (x_set_border_color): Ditto.
4738 (x_set_scroll_bar_foreground): Ditto.
4739 (x_set_scroll_bar_background): Ditto.
4740
4741 * xfaces.c (recompute_basic_faces): Clear face cache.
4742 (Finternal_set_lisp_face_attribute): Modify frame parameters
4743 if attributes of certain faces are changed.
4744 (update_face_from_frame_parameter): New.
4745
4746 * xfaces.c (realize_basic_faces): Realize new basic faces.
4747
4748 * dispextern.h (SCROLL_BAR_FACE_ID, BORDER_FACE_ID,
4749 CURSOR_FACE_ID, MOUSE_FACE_ID): New.
4750
4751 * xfaces.c (Qscroll_bar, Qcursor, Qborder, Qmouse): New.
4752 (syms_of_xfaces): Intialize new symbols.
4753
4754 * fns.c (Fmakehash): Take one argument, test, make all the
4755 rest keyword arguments.
4756
4757 * window.c (Fset_window_margins): Make window the first argument.
4758 (set_window_buffer): Call Fset_window_margins with window as first
4759 argument.
4760
47611999-09-07 Gerd Moellmann <gerd@gnu.org>
4762
4763 * xfaces.c (Qfringe): Replaces Qmargin.
4764
47651999-09-07 Kenichi Handa <handa@etl.go.jp>
4766
4767 * charset.h: Lots of comments fixed.
4768 (PARSE_MULTIBYTE_SEQ): Make it work also for ASCII string.
4769 (STRING_CHAR_AND_CHAR_LENGTH): This macro removed.
4770
4771 * charset.c : Lots of comments fixed.
4772 (SPLIT_MULTIBYTE_SEQ): Make it work also for ASCII string.
4773 (CHAR_COMPONENTS_VALID_P): Name changed from
4774 CHAR_COMPONENT_VALID_P. Caller changed.
4775
47761999-09-06 Richard Stallman <rms@gnu.org>
4777
4778 * insdel.c (syms_of_insdel): Define Lisp variable
4779 inhibit-modification-hooks.
4780
47811999-09-06 Michael Sperber [Mr. Preprocessor] <sperber@informatik.uni-tuebingen.de>
4782
4783 * s/aix4-2.h (ALIGN_DATA_RELOC): Undefined to support new
4784 unexaix.c.
4785
4786 * s/aix3-1.h (ALIGN_DATA_RELOC): Defined to support new unexaix.c.
4787
47881999-09-06 Dave Love <fx@gnu.org>
4789
4790 * unexaix.c: New version incorporating Michael Sperber's changes
4791 from XEmacs. Should solve problems on AIX 4.3.
4792
4793 * lread.c (Vbyte_boolean_vars): New variable.
4794 (defvar_bool, syms_of_lread): Use it.
4795
47961999-09-05 Richard Stallman <rms@gnu.org>
4797
4798 * minibuf.c (read_minibuf): Put all three properties on the
4799 same range, the whole prompt.
4800
48011999-09-05 Gerd Moellmann <gerd@gnu.org>
4802
4803 * sound.c (Qplay_sound_functions): Replaces Qplay_sound_hook.
4804 (Fplay_sound, syms_of_sound): Use it.
4805 (parse_sound): Allow float volume values in the range [0, 1].
4806 (Fplay_sound): Ditto.
4807
4808 * window.c (Fset_window_vscroll): Make window the first argument,
4809 amount to scroll the second. Take non-negative vscroll as
4810 argument.
4811 (Fwindow_vscroll): Return non-negative vscroll.
4812
4813 * xfns.c (Fx_show_tip): Improve documentation.
4814
48151999-09-05 Gerd Moellmann <gerd@gnu.org>
4816
4817 * buffer.c, buffer.h, dispextern.h, dispnew.c, keyboard.c,
4818 window.c, xdisp.c, xfaces.c, xterm.c, keyboard.h: Change
4819 `top-line' and `top_line' to `header-line' and `header_line'.
4820 Likewise for similar spellings.
4821
48221999-09-05 Gerd Moellmann <gerd@gnu.org>
4823
4824 * xdisp.c (row_containing_pos): New.
4825 (try_window_id): Use it.
4826
4827 * alloc.c, dispextern.h, dispnew.c, frame.c, frame.h, keyboard.c,
4828 lisp.h, termhooks.h, window.c xdisp.c, xfaces.c, xfns.c, xterm.c:
4829 Change spelling of `toolbar' to `tool_bar' or `tool-bar'.
4830 Likewise for upper-case etc.
4831
48321999-09-05 Gerd Moellmann <gerd@gnu.org>
4833
4834 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
4835 Fix reference to renamed variable.
4836
48371999-09-04 Gerd Moellmann <gerd@gnu.org>
4838
4839 * window.c (Qwindow_size_fixed): Replaces Qfixed_window_size.
4840 (window_fixed_size_p): Use Qwindow_size_fixed instead of
4841 Qfixed_window_size.
4842 (syms_of_window): Ditto.
4843
4844 * fns.c (Fmakehash): Exchange optional test and size arguments.
4845
48461999-09-03 Gerd Moellmann <gerd@gnu.org>
4847
4848 * xterm.c (XTset_vertical_scroll_bar): Block input when clearing
4849 under newly created scroll bar.
4850 (expose_window): If window is not yet fully initialized, do
4851 nothing. This can happen when toolkit scroll bars are used and a
4852 window is split. Reconfiguring the scroll bars will generate an
4853 expose for a newly created window.
4854
4855 * frame.h (struct frame): New member `gamma'.
4856
4857 * xfns.c: Include math.h. Add extern declaration for atof in case
4858 we don't see one.
4859 (Qscreen_gamma): New.
4860 (struct x_frame_parm_table): Add prototypes, add
4861 x_set_screen_gamma.
4862 (gamma_correct): New function.
4863 (defined_color): Call it.
4864 (x_set_screen_gamma): New.
4865 (x_set_title): Add parameter old_value.
4866 (RES_TYPE_FLOAT): New.
4867 (x_get_arg): Handle RES_TYPE_FLOAT.
4868 (Fx_create_frame): Call x_default_parameter for `screen-gamma'.
4869 (lookup_pixel_color): Change call to x_alloc_nearest_color to
4870 new prototype.
4871 (lookup_rgb_color): Ditto.
4872 (syms_of_xfns): Initialize Qscreen_gamma.
4873
4874 * xterm.c (x_alloc_nearest_color_for_widget) [USE_X_TOOLKIT]:
4875 New. Allocate color for lwlib widgets.
4876 (x_alloc_nearest_color): Change parameter list include the
4877 frame on which to allocate colors. Gamma-correct colors.
4878 (x_alloc_lighter_color): Call x_alloc_lighter_color with new
4879 parameter list.
4880
4881 * xterm.h: Change protorype of x_alloc_nearest_color.
4882
48831999-09-03 Richard Stallman <rms@gnu.org>
4884
4885 * callproc.c: Delete the system-independent include of stdlib.h
4886 (leaving only the one in the WINDOWSNT conditional).
4887
48881999-09-03 Andrew Choi <choi@cs.hku.hk>
4889
4890 * callproc.c (call-process) [macintosh]: Call mac_run_command in
4891 sysdep.c. The Mac code is modeled after the DOS code.
4892
4893 * dispextern.h [macintosh]: Include macterm.h to define substitute X
4894 Window types and macros.
4895
4896 * frame.h: Do nothing if included a second time.
4897 (enum output_method): Add mac_output frame type.
4898 (union output_data): Add new alternative `mac'.
4899 (FRAME_MAC_P): New macro.
4900
4901 * frame.c (Fframep) [macintosh]: Handle mac frame type.
4902 (syms_of_frame_1): Initialize Qmac.
4903 (make_terminal_frame) [macintosh]: Initialize output_data.mac fields.
4904 (Fmake_terminal_frame) [macintosh]: Add an alternate error check.
4905 (Fmodify_frame_parameters) [macintosh]: Call
4906 mac_set_frame_parameter in macterm.c.
4907
4908 * keyboard.c [macintosh]: Set KBD_BUFFER_SIZE to a smaller value
4909 (512) because Mac compilers limit local data of a function to 32K.
4910
4911 * make-docfiles.c: Correctly handle input files with Mac-style
4912 eol's.
4913
4914 * sysdep.c: Define numerous routines to emulate Unix system calls.
4915
4916 * xfaces.c: on MacOS, define the set of colors listed in rgb.txt
4917 file of an X Window environment.
4918
4919 * xfaces.c: on MacOS, define the Lisp functions x-display-color-p,
4920 x-display-grayscale, x-color-defined-p, and x-color-values.
4921
4922 * sysdep.c [macintosh] (stat, fstat, mkdir, rmdir, utime, access)
4923 (open, creat, unlink, read, write, rename, fopen, pause, alarm)
4924 (signal, sleep, gmtime, localtime, ctime, time, index, mktemp)
4925 (getpwuid, getpwnam, dup, dup2, isatty, getgid, getegid, getuid)
4926 (geteuid, getpid, getenv, uname, opendir, closedir, readdir, getwd.):
4927 New functions, replacing POSIX features.
4928
4929 * sysdep.c [macintosh] (Mac2UnixPathname, Unix2MacPathname, CheckAlarm)
4930 (InitMyPasswd, GetTempDirName, mystrchr, mystrtok, mystrcpy):
4931 (InitEmacsPasswdDir, run_mac_command): New subroutines.
4932
4933 * sysdep.c [macintosh] (targetTicks, alarm_signal_func, myPasswdName)
4934 (myPasswd, emacsPasswdDir, emacsPasswd, myPasswdInited, mask)
4935 (myPasswdDir, TempDirName, sys_siglist): New variables.
4936
4937 * sysdep.c [macintosh] (execvp, wait, croak, fork, kill, sigsetmask)
4938 (sigblock, request_sigio, unrequest_sigio, setpgrp, pipe, symlink)
4939 (link, lstat, readlink, umask, chmod, sbrk, fsync, ioctl):
4940 Define empty stubs so Emacs will link.
4941
49421999-09-03 Gerd Moellmann <gerd@gnu.org>
4943
4944 * xdisp.c: Use XCAR and XCDR instead of XCONS.
4945
4946 * window.h: New member frozen_window_start_p.
4947
4948 * window.c (foreach_window, foreach_window_1): New.
4949 (freeze_window_start, freeze_window_starts): New.
4950 (make_window): Initialize frozen_window_start_p.
4951 (replace_window): Ditto.
4952 (Fset_window_point): Remove references to deleted variables.
4953 (Fset_window_start): Ditto.
4954
4955 * xdisp.c (Vresize_mini_config, resize_mini_frame,
4956 resize_mini_initial_height): Removed.
4957 (syms_of_xdisp): Remove references to these variables.
4958 (resize_mini_window): Don't save window configuration, freeze
4959 window starts instead. Enlarge window until displaying an empty
4960 buffer, then shrink it. Make the function externally visible.
4961 (redisplay_window): Treat frozen window start like forced start,
4962 but accept point outside of the window.
4963
4964 * dispextern.h: Add function prototype for resize_mini_window.
4965
4966 * minibuf.c (read_minibuf_unwind): Resize mini-window when
4967 reaching minibuf_level 0.
4968
4969 * lisp.h: Remove extern declarations for variables deleted from
4970 xdisp.c.
4971
4972 * dispnew.c (adjust_frame_glyphs): Remove reference to
4973 Vresize_mini_config.
4974
49751999-09-03 Gerd Moellmann <gerd@gnu.org>
4976
4977 * xfns.c (x_set_scroll_bar_width): Change conditional compilation
4978 to USE_TOOLKIT_SCROLL_BARS.
4979
4980 * xterm.c (x_scroll_bar_create): Don't clear under scroll bar
4981 here.
4982 (XTset_vertical_scroll_bar): Clarify position computations. Clear
4983 under newly created scroll bar. Put toolkit scroll bars in the
4984 middle of the area reserved for the scroll bar.
4985
49861999-09-03 Kenichi Handa <handa@etl.go.jp>
4987
4988 The following changes are for the new handling of mulitbyte
4989 sequence. Now, except for a composite character, no multibyte
4990 character in string/buffer has trailing garbage bytes. For
4991 instance, the length of string "\201\300\300" is now 2, the first
4992 character is Latin-1 A-grave, the second is raw \300.
4993
4994 * charset.h (MAKE_NON_ASCII_CHAR): Handle the case that C1 or C2
4995 are negative.
4996 (MAKE_CHAR): Don't set MSBs of C1 and C2 to 0.
4997 (VALID_MULTIBYTE_CHAR_P): This macro deleted.
4998 (PARSE_COMPOSITE_SEQ): New macro.
4999 (PARSE_CHARACTER_SEQ): New macro.
5000 (PARSE_MULTIBYTE_SEQ): New macro.
5001 (CHAR_PRINTABLE_P): New macro.
5002 (STRING_CHAR): Adjusted for the change of string_to_non_ascii_char.
5003 (STRING_CHAR_AND_LENGTH): Likewise.
5004 (STRING_CHAR_AND_CHAR_LENGTH): Define it as STRING_CHAR_AND_LENGTH.
5005 (INC_POS): Use the macro PARSE_MULTIBYTE_SEQ.
5006 (DEC_POS, BUF_INC_POS, BUF_DEC_POS): Likewise,
5007
5008 * charset.c (SPLIT_COMPOSITE_SEQ): New macro.
5009 (SPLIT_CHARACTER_SEQ): New macro.
5010 (SPLIT_MULTIBYTE_SEQ): New macro.
5011 (CHAR_COMPONENT_VALID_P): New macro.
5012 (non_ascii_char_to_string): Generate a multibyte sequence as far
5013 as possible.
5014 (string_to_non_ascii_char): The 4th arg exclude_tail_garbage is
5015 deleted. Caller changed. Use the macro SPLIT_MULTIBYTE_SEQ.
5016 (split_non_ascii_string): Likewise.
5017 (multibyte_form_length): Use the macro PARSE_MULTIBYTE_SEQ.
5018 (char_printable_p): New function.
5019 (translate_char): Check character by NATNUMP instead of INTEGERP.
5020 (unibyte_char_to_multibyte): Call char_valid_p instead of
5021 VALID_MULTIBYTE_CHAR_P.
5022 (Fmake_char_internal): Check the arguments more rigidly.
5023 (Fcharset_after): Use the macro SPLIT_MULTIBYTE_SEQ.
5024 (char_valid_p): Check the validity by CHAR_COMPONENT_VALID_P.
5025 (Fmultibyte_char_to_unibyte): Check the validity of character by
5026 CHAR_VALID_P.
5027 (chars_in_text): Call multibyte_chars_in_text.
5028 (multibyte_chars_in_text): Use the macro PARSE_MULTIBYTE_SEQ.
5029 (Fcompose_string): Use the macro STRING_CHAR_AND_LENGTH instead of
5030 STRING_CHAR_AND_CHAR_LENGTH (which is obsolete now).
5031
5032 * data.c (Faset): Adjust the way to check byte-combining
5033 possibility for the new handling of multibyte sequence.
5034
5035 * editfns.c (Fsubst_char_in_region): Likewise.
5036
5037 * fns.c (count_combining): Use the macro PARSE_MULTIBYTE_SEQ.
5038 (string_char_to_byte): Likewise.
5039 (string_byte_to_char): Likewise.
5040
5041 * indent.c (MULTIBYTE_BYTES_WIDTH): Delete the 2nd arg C. Use the
5042 macro STRING_CHAR_AND_LENGTH. Caller changed.
5043
5044 * insdel.c (count_combining_composition): New function.
5045 (count_combining_before): Adjust the way to check byte-combining
5046 possibility for the new handling of multibyte sequence. Call
5047 count_combining_composition for a composite character.
5048 (count_combining_after): Likewise.
5049
5050 * print.c (print_string): Use the macro STRING_CHAR_AND_LENGTH.
5051 (print): Likewise.
5052
5053 * dispextern.h (struct it): Change the size of the member
5054 `ctl_chars'.
5055
5056 * xdisp.c (get_next_display_element): Display incomplete multibyte
5057 sequence (e.g. \222\300) by octal form.
5058
50591999-09-02 Gerd Moellmann <gerd@gnu.org>
5060
5061 * xterm.h (VERTICAL_SCROLL_BAR_WIDTH_TRIM): Change from 2 to 0.
5062
5063 * fns.c (Fhash_table_weakness): Replaces Fhash_table_weak.
5064 (cmpfn_eql, sxhash): Use XFLOAT_DATA.
5065
50661999-09-02 Gerd Moellmann <gerd@gnu.org>
5067
5068 * buffer.c (set_buffer_internal): Never set
5069 windows_or_buffers_changed.
5070
5071 * xdisp.c (try_window_id): Reset first_unchanged_at_end_row
5072 if we have displayed to the bottom of the window.
5073
5074 * syntax.c (Fforward_word): Stop at a mini-buffer prompt end
5075 in both directions. Extend documentation.
5076
50771999-09-01 Gerd Moellmann <gerd@gnu.org>
5078
5079 * minibuf.c (read_minibuf): Flush display after setting cursor to
5080 column 0.
5081
50821999-08-31 Gerd Moellmann <gerd@gnu.org>
5083
5084 * s/freebsd.h (__FreeBSD_version): Don't define it if it is
5085 already defined. This avoids a warning from buffer.c.
5086
50871999-08-30 Gerd Moellmann <gerd@gnu.org>
5088
5089 * xterm.h (FRAME_X_FLAGS_AREA_COLS): Define it as the total width
5090 of both margins.
5091 (FRAME_X_FLAGS_AREA_WIDTH): Likewise.
5092 (FRAME_X_LEFT_FLAGS_AREA_WIDTH): New.
5093 (FRAME_X_RIGHT_FLAGS_AREA_WIDTH): New.
5094
5095 * frame.h (FRAME_WINDOW_WIDTH_ARG): Add in FRAME_FLAGS_AREA_COLS
5096 once instead of twice.
5097 (FRAME_LEFT_FLAGS_AREA_WIDTH): New.
5098
5099 * xterm.c: Remove unused bitmaps.
5100 (continued_bits, continuation_bits, overlay_bits): Change images.
5101 (x_draw_vertical_border): Use FRAME_X_RIGHT_FLAGS_AREA_WIDTH
5102 instead of FRAME_X_FLAGS_AREA_WIDTH.
5103 (x_after_update_window_line): Ditto.
5104 (x_draw_bitmap): Likewise.
5105 (x_draw_row_bitmaps): Likewise.
5106 (x_draw_glyph_string_box): Likewise.
5107 (x_draw_glyphs): Likewise.
5108 (x_scroll_run): Likewise.
5109 (expose_window_tree): Likewise.
5110 (note_mode_line_highlight): Likewise.
5111 (XTset_vertical_scroll_bar): Likewise.
5112 (x_clip_to_row): Likewise.
5113 (x_set_window_size): Likewise.
5114
5115 * xfns.c (x_figure_window_size): Use FRAME_FLAGS_AREA_COLS instead
5116 of 2 * that value.
5117
5118 * xdisp.c (window_box_width): Use FRAME_FLAGS_AREA_COLS instead of
5119 2 * that value.
5120 (window_box_left): Use FRAME_LEFT_FLAGS_AREA_WIDTH instead of
5121 FRAME_FLAGS_AREA_WIDTH.
5122
5123 * window.c (coordinates_in_window): Use
5124 FRAME_LEFT_FLAGS_AREA_WIDTH instead of FRAME_FLAGS_AREA_WIDTH.
5125 (window_internal_width): Subtract FRAME_FLAGS_AREA_WIDTH once
5126 instead of twice.
5127
5128 * widget.c (set_frame_size): Set flags_area_extra to
5129 FRAME_FLAGS_AREA_WIDTH instead of 2 * that width.
5130 (EmacsFrameSetCharSize): Ditto.
5131
5132 * dispnew.c (mode_line_string): Add FRAME_LEFT_FLAGS_AREA_WIDTH
5133 instead of FRAME_FLAGS_AREA_WIDTH.
5134
5135 * dispextern.h (WINDOW_DISPLAY_PIXEL_WIDTH): Subtract
5136 FRAME_FLAGS_AREA_COLS once.
5137 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X): Add
5138 FRAME_LEFT_FLAGS_AREA_WIDTH instead of FRAME_FLAGS_AREA_WIDTH.
5139
51401999-08-30 Gerd Moellmann <gerd@gnu.org>
5141
5142 * freebsd.h (C_SWITCH_SYSTEM): Added to let configure find headers
5143 in /usr/X11R6/include which are checked for with AC_CHECK_HEADER.
5144
51451999-08-30 Gerd Moellmann <gerd@gnu.org>
5146
5147 * fns.c (QCweakness): Replaces QCweak.
5148 (Fmake_hash_table): Ditto.
5149 (Fmakehash): Ditto.
5150 (syms_of_fns): Ditto.
5151
51521999-08-29 Richard Stallman <rms@gnu.org>
5153
5154 * search.c (compile_pattern_1): Enable RE_CHAR_CLASSES for regexp.
5155
5156 * sysdep.c (read_input_waiting): Pass read_socket_hook just 4 args.
5157
5158 * syntax.h (SYNTAX_COMMENT_NESTED, SYNTAX_FLAGS_COMMENT_NESTED):
5159 Add support for nested comments.
5160
863476d1
SM
5161 * syntax.c (Fforward_comment, scan_lists, scan_sexps_forward):
5162 Consolidate the forward comment code into the new `forw_comment'.
5163 (forw_comment): New subroutine. Added support for nested comments.
5164 (lisp_parse_state, back_comment, Fmodify_syntax_entry)
5165 (Fparse_partial_sexp): Add support for nested comments.
26901792
DL
5166
51671999-08-28 Ken Raeburn <raeburn@gnu.org>
5168
5169 * lisp.h (struct Lisp_Cons, XCAR, XCDR, struct Lisp_Float): Change
5170 names of structure elements if HIDE_LISP_IMPLEMENTATION is
5171 defined, to help detect code that uses knowledge of the Lisp
5172 internals that it shouldn't have.
5173 (XFLOAT_DATA): New macro.
5174
51751999-08-25 Gerd Moellmann <gerd@gnu.org>
5176
5177 * syntax.c (Fforward_word): If in a mini-buffer and moving
5178 backwards, stop in front of the prompt to prevent accidentially
5179 moving into the read-only prompt.
5180
5181 * window.c (Frecenter): Clear frame if called with nil or no arg.
5182
5183 * xdisp.c (resize_mini_window): Don't resize if
5184 Vmax_mini_window_height is nil. Otherwise, use a default if
5185 Vmax_mini_window_height is not ot a number.
5186 (syms_of_xdisp): Extend documentation of Vmax_mini_window_height.
5187
51881999-08-25 Alexandre Oliva <oliva@dcc.unicamp.br>
5189
5190 * unexelf.c: Merge IRIX debugging info patch from unexsgi.c
5191 * m/iris4d.h: Use unexelf for IRIX 5.*.
5192 * m/iris5d.h: Use unexelf for IRIX 6.*.
5193 * unexsgi.c: Deleted.
5194
5195 * unexelf.c: Auto-detect .sbss section.
5196 (round_up): Make it static.
5197 (unexec): Declare alignment as Elf Word. Skip ``Program
5198 segment above .bss'' test on MIPS without .sbss.
5199 Copy sections .got and .sdata1 sections. Adjust offsets in
5200 sections .sdata, .lit4, .lit8, .got and .sdata1.
5201
52021999-08-25 Gerd Moellmann <gerd@gnu.org>
5203
5204 * xdisp.c (try_window_id): Remove typo.
5205
52061999-08-24 Gerd Moellmann <gerd@gnu.org>
5207
5208 * xdisp.c (try_window_id): Recognize case that PT == ZV and in
5209 unchanged text at the bottom when computing the cursor position.
5210 (message3_nolog): Raise frame only if minibuffer_auto_raise is
5211 set.
5212
5213 * lisp.h (PVEC_TYPE_MASK): Add the bit for hash tables.
5214
52151999-08-24 Gerd Moellmann <gerd@gnu.org>
5216
5217 * xfaces.c (Qmargin): Replacement for Qbitmap_area.
5218 (realize_basic_faces): Replace Qmargin for Qbitmap_area.
5219 (syms_of_xfaces): Ditto.
5220
5221 * window.c (Fset_window_point): Reset Vresize_mini_config.
5222 (Fset_window_start): Ditto.
5223 (set_window_buffer): Ditto.
5224
5225 * dispnew.c (adjust_frame_glyphs): Reset Vresize_mini_config.
5226
5227 * xdisp.c (redisplay_window): Don't ever test just_this_one_p
5228 before calling try_window.
5229 (echo_area_display): If height has changed, update other windows.
5230 (resize_mini_frame, resize_mini_initial_height): New.
5231 (resize_mini_window): Save/restore window configuration
5232 differently.
5233
5234 * lisp.h (Vresize_mini_config, resize_mini_frame,
5235 resize_mini_initial_height): Add extern declarations.
5236
5237 * xterm.c (expose_window_tree): Fix typo CANON_Y_UNIT to
5238 CANON_X_UNIT.
5239
5240 * xfns.c [HAVE_JPEG]: Work around a warning about HAVE_STDLIB_H
5241 being redefined in jconfig.h.
5242
52431999-08-23 Ken'ichi Handa <handa@gnu.org>
5244
5245 * coding.h: Include "ccl.h" instead of "../src/ccl.h".
5246
52471999-08-22 Gerd Moellmann <gerd@gnu.org>
5248
5249 * alloc.c (mark_glyph_matrix): Mark strings only.
5250
5251 * xdisp.c (redisplay_internal): Clear garbaged frames after
5252 resizing mini-window.
5253
52541999-08-22 Gerd Moellmann <gerd@gnu.org>
5255
5256 * xdisp.c (unwind_with_echo_area_buffer): Use
5257 set_buffer_internal_1 instead of set_buffer_internal.
5258 (with_echo_area_buffer): Ditto.
5259
5260 * buffer.c (set_buffer_internal): Set windows_or_buffers_changed
5261 only if buffer is displayed somewhere.
5262
5263 * buffer.h (BUF_COMPUTE_UNCHANGED): New.
5264
5265 * insdel.c (gap_left): Use BUF_COMPUTE_UNCHANGED.
5266 (gap_right): Ditto.
5267 (modify_region): Ditto.
5268
5269 * buffer.c (modify_overlay): Use BUF_COMPUTE_UNCHANGED.
5270
5271 * xdisp.c (Vresize_mini_config): New.
5272 (resize_mini_window): Use it to save restore original window
5273 configuration
5274 (syms_of_xdisp): Initialize it.
5275
5276 * buffer.h (struct buffer): Add prevent_redisplay_optimizations_p.
5277
5278 * dispextern.h (struct glyph_matrix): Add buffer, begv, and zv.
5279
5280 * xdisp.c (reconsider_clip_changes): New.
5281 (redisplay_internal, redisplay_window): Call it.
5282 (mark_window_display_accurate, redisplay_internal): Set current
5283 matrix' buffer, begv, zv.
5284
5285 * window.c (Fset_window_hscroll): Set
5286 prevent_redisplay_optimizations_p instead of clip_changed.
5287 (Fset_window_hscroll): Ditto.
5288 (temp_output_buffer_show): Ditto.
5289 (Fset_window_vscroll): Ditto.
5290
5291 * buffer.c (reset_buffer): Set clip_changed to 0 and
5292 prevent_redisplay_optimizations_p to 1.
5293 (Fget_buffer_create): Set prevent_redisplay_optimizations_p to 1.
5294
5295 * buffer.h (BUF_UNCHANGED_MODIFIED, UNCHANGED_MODIFIED,
5296 BUF_OVERLAY_UNCHANGED_MODIFIED, OVERLAY_UNCHANGED_MODIFIED,
5297 BUF_BEG_UNCHANGED, BEG_UNCHANGED, BUF_END_UNCHANGED,
5298 END_UNCHANGED): New.
5299 (struct buffer_text): Add beg_unchanged, end_unchanged,
5300 unchanged_modified, overlay_unchanged_modified.
5301
5302 * window.h (beg_unchanged, end_unchanged, unchanged_modified,
5303 overlay_unchanged_modified): Removed.
5304 (with_echo_area_unwind_data): Don't save beg/end_unchanged.
5305 (unwind_with_echo_area_buffer): Don't restore them.
5306 (debug_beg_unchanged, debug_end_unchanged) [GLYPH_DEBUG]: Removed.
5307 (text_outside_line_unchanged_p, redisplay_internal,
5308 try_scrolling): Use/set buffer-specific beg/end_unchanged.
5309 (redisplay_window): Let try_window_id be called if more than one
5310 window is displayed. Use/set buffer-specific beg/end_unchanged.
5311 (get_last_unchanged_at_beg_row, get_first_unchanged_at_end_row,
5312 try_window_id):
5313 Use buffer-specific beg/end_unchanged.
5314
5315 * window.h (beg_unchanged, end_unchanged, unchanged_modified,
5316 overlay_unchanged_modified): Remove extern declarations.
5317
5318 * keyboard.c (command_loop_1): Set beg/end_unchanged per
5319 buffer.
5320
5321 * insdel.c (gap_left): Compute beg/end_unchanged per buffer.
5322 (gap_right): Ditto.
5323 (adjust_after_replace): Likewise.
5324 (replace_range, del_range_2, modify_region): Likewise.
5325
5326 * dispnew.c (direct_output_for_insert): Set beg_unchanged
5327 and unchanged_modified per buffer.
5328
5329 * coding.c (code_convert_region): Compute beg/end_unchanged per
5330 buffer.
5331
5332 * buffer.c (modify_overlay): Compute beg/end_unchanged
5333 per buffer.
5334 (Fget_buffer_create): Initialize new members of the buffer
5335 structure.
5336
53371999-08-22 Gerd Moellmann <gerd@gnu.org>
5338
5339 * lisp.h: Add prototype for copy_hash_table and Fcopy_hash_table.
5340
5341 * fns.c (Qkey, Qvalue): Renamed from Qkey_weak, and Qvalue_weak.
5342 (Qkey_value_weak): Removed.
5343 (make_hash_table): Use nil, `key', `value', t for weakness.
5344 (Fmake_hash_table): Ditto.
5345 (copy_hash_table): New.
5346 (Fcopy_hash_table): New.
5347
53481999-08-22 Gerd Moellmann <gerd@gnu.org>
5349
5350 * xfns.c: Call change_frame_size and do_pending_window_change with
5351 new parameter.
5352
53531999-08-21 Gerd Moellmann <gerd@gnu.org>
5354
5355 * xdisp.c (resize_mini_window): Do it for truncate-lines t as
5356 well.
5357 (redisplay_internal): Resize mini-window only if text might
5358 have changed.
5359 (display_echo_area): Reset displayed echo_area_buffer to nil
5360 at the end if we're displaying a nil message.
5361
53621999-08-21 Gerd Moellmann <gerd@gnu.org>
5363
5364 * fns.c (hash_lookup): Test with EQ before calling key comparion
5365 function.
5366 (hash_remove): Ditto.
5367 (cmpfn_eq): Removed.
5368 (cmpfn_eql): Don't test with EQ.
5369 (cmpfn_equal): Ditto.
5370 (make_hash_table): Set comparison function for `eq' to null.
5371
5372 * buffer.c, cmds.c, editfns.c, indent.c, insdel.c, buffer.h:
5373 Remove conditional compilation on NO_PROMPT_IN_BUFFER.
5374
5375 * dispextern.h (NO_PROMPT_IN_BUFFER): Removed.
5376
5377 * window.c, widget.c, process.c, keyboard.c, frame.c, xdisp.c,
5378 xterm.c: Call change_frame_size and do_pending_window_change with
5379 new parameter.
5380
5381 * dispnew.c (do_pending_window_change): Add parameter `safe'.
5382 (change_frame_size): Ditto.
5383 (change_frame_size_1): Ditto. Deley size changes if redisplaying
5384 and not called from a safe place.
5385 (window_change_signal): Call change_frame_size with new parameter.
5386
5387 * dispextern.h: Change prototypes for do_pending_window_change
5388 and change_frame_size.
5389
5390 * xfaces.c (face_at_buffer_position): Don't xassert that
5391 window's buffers equals current_buffer; this is not the
5392 case during echo area display.
5393
53941999-08-21 Gerd Moellmann <gerd@gnu.org>
5395
5396 * xdisp.c, minibuf.c: Remove conditional compilation on
5397 NO_PROMPT_IN_BUFFER.
5398
5399 * minibuf.c (Fminibuffer_prompt_end): New.
5400 (syms_of_minibuf): Defsubr it. Remove
5401 minibuffer-prompt-in-buffer.
5402 (Fminibuffer_prompt_width): Return 0 if not in mini-buffer.
5403 Extend documentation.
5404
5405 * xdisp.c (get_next_display_element): Display \r as ^M.
5406
5407 * xterm.c (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]: Clear
5408 under scroll bar widget.
5409
54101999-08-21 Gerd Moellmann <gerd@gnu.org>
5411
5412 * xdisp.c (minibuffer_scroll_overlap): Removed because not used
5413 anywhere.
5414 (unwind_redisplay): Return nil.
5415 (clear_garbaged_frames): New.
5416 (redisplay_internal): Use it.
5417 (echo_area_display): Ditto.
5418 (resize_mini_window): Mew.
5419 (display_echo_area_1): Use it to resize echo area window.
5420 (redisplay_internal): Use it to resize active mini-window.
5421
5422 * dispextern.h, lisp.h: Add function prototypes.
5423
5424 * dispnew.c (set_window_cursor_after_update): Do the
5425 cursor_in_echo_area case only for a mini-window showing
5426 a message. Don't let cursor end up after the end of a row.
5427
5428 * xdisp.c (echo_area_glyphs, echo_area_message,
5429 echo_area_glyphs_length, previous_echo_glyphs,
5430 previous_echo_area_message, previous_echo_area_glyphs_length):
5431 Removed.
5432 (Vmessage_stack, echo_area_buffer, echo_buffer,
5433 display_last_displayed_message_p, Vwith_echo_area_save_vector): New.
5434 (message2_nolog): Use set_message and clear_message.
5435 (message3): Rename parameter len to nbytes to make clear what
5436 it is.
5437 (message3_nolog): Ditto. Use set_message and clear_message.
5438 (update_echo_area): Rewritten.
5439 (with_echo_area_buffer): New.
5440 (with_echo_area_buffer_unwind_data, unwind_with_area_buffer): New.
5441 (setup_echo_area_for_printing): New.
5442 (display_echo_area, display_echo_area_1): New.
5443
5444 (current_message, current_message_1): New.
5445 (push_message, restore_message, pop_message,
5446 check_message_stack): New.
5447 (truncate_echo_area): Rewritten.
5448 (truncate_message_1): New.
5449 (set_message, set_message_1, clear_message): New.
5450 (echo_area_display): Rewritten.
5451 (redisplay_internal): Check for needed echo area update
5452 differently.
5453 (redisplay_preserve_echo_area): Rewritten.
5454 (redisplay_window): Check for mini-window displaying echo area
5455 message differently.
5456 (syms_of_xdisp): Initialize Vmessage_stack and echo area buffers.
5457 Remove initialzation of removed variables.
5458 (init_xdisp): Remove references to removed variables.
5459
5460 * dispnew.c (adjust_frame_message_buffer): Removed references
5461 to echo_area_glyphs and previous_echo_glyphs.
5462 (direct_output_for_insert): Check for mini-window displaying
5463 echo area message differently.
5464 (update_frame): Likewise.
5465 (set_window_cursor_after_update): Likewise. In echo area,
5466 don't try to set cursor on rows that aren't enabled.
5467
5468 * print.c: Remove conditional compilation on `standalone'.
5469 (glyph_len, str_to_glyph_cpy, str_to_glyph_ncpy,
5470 glyph_to_str_cpy): Remove that section because GLYPHs are no
5471 longer used in that way.
5472 (PRINTDECLARE): Add multibyte.
5473 (PRINTPREPARE, PRINTFINISH): Handle printcharfun t differently.
5474 (printbufidx): Removed.
5475 (printchar, strout): Rewritten.
5476
5477 * keyboard.c (ok_to_echo_at_next_pause): Make it a pointer to
5478 a struct kboard.
5479 (echo_kboard): New.
5480 (echo_now): Set echo_kboard to the current kboard.
5481 (cancel_echoing): Set echo_kboard to null.
5482 (cmd_error_internal): Use clear_message, remove references
5483 to echo_area_glyphs and echo_area_message.
5484 (command_loop_1): Check for echo area messages differently.
5485 (read_char): Likewise.
5486 (record_menu_key): Use clear_message.
5487 (Fexecute_extended_command): Check for echo area messages
5488 differently. Use push_message, restore_message, pop_message.
5489
5490 * alloc.c (Fgarbage_collect): Use push_message, restore_message,
5491 pop_message.
5492
5493 * emacs.c (shut_down_emacs): Call check_message_stack.
5494
5495 * lisp.h: Add function prototypes and extern declarations for
5496 new functions and variables.
5497
5498 * fileio.c (Fdo_auto_save): Use push_message, restore_message,
5499 pop_message.
5500
5501 * minibuf.c (read_minibuf): Use clear_message instead of
5502 setting echo_area_glyphs.
5503 (Fminibuffer_completion_help): Ditto.
5504
5505 * editfns.c (Fcurrent_message): Rewritten.
5506
5507 * frame.c, window.h: Remove references to echo_area_glyphs
5508 and previous_echo_glyphs.
5509
55101999-08-21 Dave Love <fx@gnu.org>
5511
5512 * aix3-2-5.h (C_DEBUG_SWITCH): Use -g -O.
5513 * aix4-1.h: Likewise.
5514
5515 * irix6-5.h (C_DEBUG_SWITCH): Set for debug and optimize.
5516
55171999-08-20 Gerd Moellmann <gerd@gnu.org>
5518
5519 * xfns.c: Remove tiff34 prefix from include.
5520
55211999-08-20 Dave Love <fx@gnu.org>
5522
5523 * cm.c: Revert previous change.
5524
55251999-08-19 Gerd Moellmann <gerd@gnu.org>
5526
5527 * xterm.c (XTset_vertical_scroll_bar): Fix previous change. Clear
5528 under scroll bar with width FRAME_SCROLL_BAR_COLS.
5529
55301999-08-18 Dave Love <fx@gnu.org>
5531
5532 * callproc.c, filelock.c, insdel.c, sysdep.c, xmenu.c: Use
5533 stdlib.h.
5534
5535 * doprnt.c: Use stdlib.h, unistd.h.
5536
5537 * config.in: Add HAVE_TERMCAP_H.
5538
5539 * cm.c: Use termcap.h.
5540
55411999-08-18 Gerd Moellmann <gerd@gnu.org>
5542
5543 * xfns.c (x_window) [USE_X_TOOLKIT]: Remove test for
5544 FRAME_X_WINDOW (f) being null at the of the function. If widgets
5545 cannot be created we will already have crashed earlier. Call
5546 lw_set_main_areas with a null menu-bar widget, so that we have
5547 a reasonable default.
5548 (Fx_create_frame): Rearranged so that Lisp errors during frame
5549 initialization cause less damage. Initialize menu bar widget
5550 here.
5551
55521999-08-18 Gerd Moellmann <gerd@gnu.org>
5553
5554 * dispnew.c (update_frame_line): Fix previous change. If writing
5555 whole line clear to end of frame.
5556
55571999-08-17 Gerd Moellmann <gerd@gnu.org>
5558
5559 * window.c (Fcoordinates_in_window_p): Return `left-bitmap-area'
5560 and `right-bitmap-area' if position is in the bitmap areas. This
5561 avoids an error when clicking on the bitmap areas. Instead, they
5562 are currently treated like clicks inside the window.
5563 (coordinates_in_window): Return 5 and 6 for bitmap areas.
5564 (Qleft_bitmap_area, Qright_bitmap_area): New.
5565 (syms_of_window): Initialize new symbols.
5566
5567 * dispnew.c (update_frame_line): If writing whole line,
5568 don't write trailing spaces unless we must.
5569
5570 * xdisp.c (unwind_redisplay): New. Resets flag redisplaying_p.
5571 (redisplay_internal): Register unwind_redisplay with
5572 register_unwind_protect.
5573 (try_window_reusing_current_matrix): If new start > old start,
5574 give up if start pos of first reusable row is not equal to new
5575 start.
5576
5577 * eval.c (Fsignal): Don't reset redisplaying_p here.
5578
5579 * xterm.c (expose_area): If row extends face to end of line,
5580 write the whole line.
5581
55821999-08-16 Gerd Moellmann <gerd@gnu.org>
5583
5584 * dispextern.h (struct it): Remove member
5585 show_trailing_whitespace_p.
5586
5587 * dispnew.c (direct_output_for_insert): Use
5588 Vshow_trailing_whitespace instead of former iterator member
5589 show_trailing_whitespace_p.
5590 (direct_output_forward_char): Don't do it if hightlighting
5591 trailing whitespace.
5592
5593 * xdisp.c (Qshow_trailing_whitespace): Removed.
5594 (Vshow_trailing_whitespace): Added.
5595 (init_iterator): Remove initialization code for
5596 show_trailing_whitespace_p.
5597 (redisplay_internal): Don't try cursor movement in this_line
5598 if showing trailing whitespace.
5599 (redisplay_window): Likewise for cursor movement in current
5600 matrix and try_window_id.
5601 (try_window_reusing_current_matrix): Likewise.
5602 (trailing_whitespace_p): Return 0 if trailing whitespace is
5603 in front of point.
5604 (display_line): Use Vshow_trailing_whitespace instead of
5605 former iterator member show_trailing_whitespace_p.
5606 (syms_of_xdisp): Add DEFVAR_LISP for show-trailing-whitespace.
5607
56081999-08-16 Gerd Moellmann <gerd@gnu.org>
5609
5610 * window.c (Fpos_visible_in_window_p): Rewritten.
5611
5612 * xfaces.c (add_to_log): Renamed from display_message.
5613 Don't display messages in echo area.
5614
5615 * xterm.c (x_draw_glyph_string_box): Use the background width
5616 of the glyph string for the width of the box.
5617
56181999-08-16 Stefan Monnier <monnier@cs.yale.edu>
5619
5620 * syntax.c (Fforward_comment): Set comstyle for Scomment_fence.
5621
56221999-08-16 Geoff Voelker <voelker@cs.washington.edu>
5623
5624 * xfns.c, w32fns.c (x_set_frame_parameters): Set foreground and
5625 background first, and then set other parameters that might
5626 depend upon their new values.
5627
56281999-08-15 Gerd Moellmann <gerd@gnu.org>
5629
5630 * xfaces.c (Vfont_list_limit): New.
5631 (syms_of_xfaces): Make it a user-variable.
5632 (DEFAULT_FONT_LIST_LIMIT): New.
5633 (sorted_font_list): If Vfont_list_limit is an integer > 0, list
5634 maximally that number of fonts, otherwise use
5635 DEFAULT_FONT_LIST_LIMIT.
5636 (Fx_font_family_list): Bind `font-list-limit' to higher values
5637 until we have all fonts.
5638 (Fxfont_list): Additionally return the full names of fonts and
5639 their registry and encoding.
5640
5641 * xterm.c (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
5642 Simplify clearing "under" scroll bar.
5643
5644 * window.c (Qfixed_window_size): New.
5645 (syms_of_window): Initialiaze it.
5646 (check_all_windows): Add return type void.
5647 (window_fixed_size_p): New. Return non-zero if window
5648 is fixed-size.
5649 (window_min_size_1): New.
5650 (window_min_size): Handle fixed-size windows.
5651 (size_window): New. Rewritten combination of set_window_height and
5652 set_window_width that handles fixed-size windows.
5653 (set_window_height): Call it.
5654 (set_window_width): Call it.
5655 (Fsplit_window): Give an error on attempt to split a fixed-size
5656 window.
5657 (change_window_height): Partly rewritten to handle fixed-size
5658 windows.
5659
56601999-08-13 Wolfgang Rupprecht <wolfgang@wsrcc.com>
5661
5662 * process.c (Fopen_network_stream): Fix previous change.
5663
56641999-08-13 Karl Heuer <kwzh@gnu.org>
5665
5666 * xdisp.c (line_number_display_limit_width): New var.
5667 (decode_mode_spec): Use it instead of hardcoded value.
5668 (syms_of_xdisp): Defvar it.
5669
56701999-08-13 Richard M. Stallman <rms@gnu.org>
5671
5672 * eval.c (run_hook_list_with_args): Gcpro `globals'.
5673 (run_hook_with_args): Likewise.
5674
5675 * window.h (struct window): New field too_small_ok.
5676
5677 * window.c (set_window_height, set_window_width):
5678 If window starts out "too small", set its too_small_ok flag.
5679 If window's too_small_ok flag is set, don't delete it
5680 unless it is so small it would cause a crash.
5681
56821999-08-13 Gerd Moellmann <gerd@gnu.org>
5683
5684 * window.c (MINSIZE): Removed.
5685 (window_min_size): New.
5686 (set_window_height): Use window_min_size.
5687 (change_window_height): Ditto.
5688
56891999-08-12 Gerd Moellmann <gerd@gnu.org>
5690
5691 * indent.c (vmotion): Don't add in mini-buffer prompt width
5692 if prompts are inserted into mini-buffer.
5693
56941999-08-12 Wolfgang Rupprecht <wolfgang@wsrcc.com>
5695
5696 * config.in: Add HAVE_GETADDRINFO.
5697 * process.c (Fopen_network_stream): Use getaddrinfo.
5698
56991999-08-11 Gerd Moellmann <gerd@gnu.org>
5700
5701 * xdisp.c (get_overlay_arrow_glyph_row): Set the charpos of
5702 glyphs to -1.
5703
5704 * xdisp.c (face_before_or_after_it_pos): If position after
5705 or before iterator's current position in the buffer is out
5706 of bounds, return the iterator's original face id.
5707
5708 * dispnew.c (mirror_make_current): If desired row isn't enabled,
5709 just swap glyphs pointers between current and desired row.
5710 (build_frame_matrix_from_leaf_window) [GLYPH_DEBUG]: Copy
5711 desired matrix method string to current matrix.
5712
57131999-08-11 Kenichi Handa <handa@etl.go.jp>
5714
5715 * lisp.h (CHAR_MODIFIER_MASK): New macro.
5716
5717 * lread.c (read_escape): For Control modifier, pay attention to
5718 multibyte character.
5719 (read1): Likewise. Singal error or a multibyte character which
5720 has a modifer bit. Check validity of Shift modifer.
5721
5722 * charset.c (non_ascii_char_to_string): Handle modifier bits as
5723 the same as Lisp reader.
5724
57251999-08-10 Richard M. Stallman <rms@gnu.org>
5726
5727 * charset.h (BCOPY_SHORT): Fix typo `unsigined'.
5728
57291999-08-10 Alexandre Oliva <oliva@dcc.unicamp.br>
5730
5731 * unexelf.c [__linux__ && __alpha__] (HAS_SBSS_SECTION): Define.
5732
57331999-08-10 Eli Zaretskii <eliz@gnu.org>
5734
5735 * msdos.c (IT_set_face): Abort if the default face is not realized
5736 and cached.
5737 (IT_write_glyphs): Reset the screen face to the default face
5738 before writing glyphs.
5739
5740 * xfaces.c (realize_default_face) [MSDOS]: Don't take default
5741 colors from the frame here.
5742 (realize_tty_face) [MSDOS]: Do it here. Update the face
5743 attributes with the actual name of the color taken from the
5744 frame.
5745
5746 * dosfns.c (msdos_stdcolor_name): Remove const from return value.
5747 * dosfns.h (msdos_stdcolor_name): Ditto for the prototype.
5748
5749 * frame.c (Fframe_parameters): Swap foreground and background
5750 colors returned in frame parameters if the frame has reverse in
5751 its parameter alist.
5752 (Fmake_terminal_frame): Make a unique copy of face_alist for
5753 each frame.
5754
57551999-08-07 Richard Stallman <rms@gnu.org>
5756
5757 * buffer.c (Fprevious_overlay_change): Just return
5758 the answer obtained from overlays_at.
5759
5760 * xfns.c (xpm_load) [!XpmAllocCloseColors]:
5761 Use XpmCloseness and attrs.closeness instead.
5762
57631999-08-06 Richard Stallman <rms@gnu.org>
5764
5765 * lread.c (Feval_buffer): New arg DO_ALLOW_PRINT.
5766
57671999-08-06 Geoff Voelker <voelker@cs.washington.edu>
5768
5769 * dired.c (directory_files_internal, Fdirectory_files_and_attributes,
5770 Ffile_attributes_lessp): New functions.
5771 (Fdirectory_files): Use directory_files_internal.
5772 (syms_of_dired): Initialize Fdirectory_files_and_attributes,
5773 Ffile_attributes_lessp.
5774
5775 * w32.c (stat): Check for directory ending in separator when
5776 doing readdir fast path.
5777
5778 * w32fns.c (x_set_icon_type): Support setting frame icons.
5779 * w32term.c (x_bitmap_icon): New function.
5780 (x_make_frame_visible, x_iconify_frame): Invoke x_bitmap_icon.
5781
57821999-08-06 Gerd Moellmann <gerd@gnu.org>
5783
5784 * xdisp.c (set_iterator_to_next): After delivering a character
5785 from a display vector, restore face and charset to what they were
5786 before the display vector was processed.
5787
57881999-08-06 Gerd Moellmann <gerd@gnu.org>
5789
5790 * xdisp.c (reseat_at_next_visible_line_start): New parameter
5791 on_newline_p.
5792 (set_iterator_to_next): After delivering last char
5793 from display vector, reseat on next visible line start if
5794 dpvec_char_len < 0.
5795 (next_element_from_buffer): Set dpvec_char_len to -1 for
5796 selective display.
5797
57981999-08-06 Gerd Moellmann <gerd@gnu.org>
5799
5800 * xdisp.c (compute_line_metrics): If first line's physical ascent
5801 is larger than its logical ascent, use the physical ascent, and
5802 make the row taller. Set row's overlapping_p flag.
5803
5804 * dispnew.c (redraw_overlapping_rows): Use flag overlapping_p.
5805 (direct_output_for_insert): Ditto.
5806
5807 * dispextern.h (struct glyph_row): Add overlapping_p.
5808
5809 * xterm.c (x_draw_phys_cursor_glyph): Redraw overlaps.
5810
5811 * dispextern.h (MATRIX_ROW_OVERLAPS_PRED_P): New.
5812 (MATRIX_ROW_OVERLAPS_SUCC_P): New.
5813
5814 * dispnew.c (direct_output_for_insert): Don't use this method if
5815 row is overlapped by others.
5816 (update_text_area): Write full line if current line is overlapped.
5817 (redraw_overlapped_rows): New.
5818 (update_window): Call it.
5819 (redraw_overlapping_rows): New.
5820 (update_window): Call it.
5821 (scrolling_window): Make sure overlapped_p flag in current rows is
5822 unchanged.
5823 (row_equal_p): Take rows overlapped_p flag into account.
5824
5825 * dispextern.h (struct glyph_row): Add flag overlapped_p.
5826
5827 * xterm.c (x_fix_overlapping_area): New.
5828 (x_redisplay_interface): Add x_fix_overlapping_area.
5829
5830 * dispnew.c (adjust_glyphs): Block input while adjusting matrices.
5831
58321999-08-06 Gerd Moellmann <gerd@gnu.org>
5833
5834 * xterm.c (x_draw_glyphs): Add parameter overlaps_p.
5835 (struct glyph_string): Add member for_overlaps_p.
5836 (x_get_glyph_string_clip_rect): If glyph string draws foreground
5837 of overlapping rows, clip to window bottom.
5838 (x_fill_glyph_string): Add parameter overlaps_p.
5839 (x_fill_composite_glyph_string): Ditto.
5840 (BUILD_GLYPH_STRINGS): Ditto.
5841 (BUILD_CHAR_GLYPH_STRINGS): Ditto.
5842 (x_draw_glyph_string): Don't draw anything but the foreground
5843 if glyph string draws row overlaps.
5844
5845 * dispnew.c (direct_output_for_insert): Don't use this
5846 optimization for rows that overlap others.
5847 (update_window_line): Return non-zero if display has changed.
5848 (update_text_area): Ditto.
5849 (update_window): Record if display has been changed.
5850
5851 * dispextern.h (MATRIX_ROW_OVERLAPPING_P): New.
5852
5853 * dispextern.h (struct redisplay_interface): Add
5854 fix_overlapping_area.
5855
5856 * xterm.c (x_append_glyph): Set glyph flag overlaps_vertically_p.
5857
5858 * dispextern.h (struct glyph): Add overlaps_vertically_p.
5859
5860 * xterm.c (x_produce_image_glyph): Compute iterator's physical
5861 ascent and descent.
5862 (x_produce_stretch_glyph): Ditto.
5863 (x_produce_glyphs): Ditto.
5864
5865 * xdisp.c (init_iterator): Reset physical line height info
5866 after producing special glyphs.
5867 (display_toolbar_line): Set physical line height info.
5868 (compute_line_metrics): Ditto.
5869 (display_line): Ditto.
5870 (display_string): Ditto.
5871
5872 * term.c (produce_glyphs): Set iterator's physical height
5873 information.
5874
5875 * dispnew.c (blank_row): Compute glyph row's physical height.
5876 (row_equal_p): Take physical row heights into account.
5877 (direct_output_for_insert): Ditto.
5878 (update_text_area): Ditto.
5879
5880 * dispextern.h (struct glyph_row): Add phys_ascent and
5881 phys_height.
5882 (struct it): Add phys_ascent, phys_descent, max_phys_ascent,
5883 max_phys_descent.
5884
58851999-08-04 Stefan Monnier <monnier@cs.yale.edu>
5886
5887 * buffer.c (switch_to_buffer_1): New subroutine, taken out from
5888 Fswitch_to_buffer.
5889 (no_switch_buffer): New function.
5890 (Fswitch_to_buffer): Call them. Don't get confused
5891 by "same-window" buffers in a dedicated frame.
5892
5893 * window.c (display-buffer): Don't get confused
5894 by "same-window" buffers in a dedicated frame.
5895
58961999-08-04 Andreas Schwab <schwab@gnu.org>
5897
5898 * insdel.c (insert_from_string_1): Check gap size against number
5899 of outgoing bytes, not incoming bytes.
5900
59011999-08-03 Tom Breton <tob@world.std.com>
5902
5903 * lread.c (read1): Added circular reading code to #N=.
5904 (SUBSTITUTE): New macro.
5905 (seen_list): New variable.
5906 (substitute_object_in_subtree): New function.
5907 (substitute_object_recurse): New function.
5908 (substitute_in_interval): New function.
5909
59101999-08-02 Eli Zaretskii <eliz@gnu.org>
5911
5912 * Makefile.in (frame.o, sysdep.o, xfaces.o): Depend on dosfns.h.
5913
5914 * frame.c (make_terminal_frame): Don't call init_frame_faces if
5915 noninteractive, for termcap frames as well.
5916
5917 * sysdep.c (init_sys_modes): Call init_frame_faces for termcap
5918 frames.
5919
59201999-08-01 Richard Stallman <rms@gnu.org>
5921
5922 * fns.c (internal_equal): Correct overlay comparison.
5923
83c8f461 59241999-07-31 Richard M. Stallman <rms@gnu.org>
26901792
DL
5925
5926 * xfns.c (x_set_internal_border_width):
5927 Call do_pending_window_change. Don't block input, don't call XFlush.
5928 (x_set_vertical_scroll_bars): Call do_pending_window_change.
5929 (x_set_scroll_bar_width, x_set_font): Likewise.
5930
5931 * frame.c (Fset_frame_height): Call do_pending_window_change.
5932 (Fset_frame_width, Fset_frame_size): Likewise.
5933
5934 * xterm.c (x_set_window_size): When calling change_frame_size,
5935 specify 1 for DELAY.
5936
5937 * widget.c (EmacsFrameSetCharSize): Don't call
5938 do_pending_window_change here.
5939
59401999-07-30 Dave Love <fx@gnu.org>
5941
5942 * config.in: Add HAVE_STDLIB_H.
5943
59441999-07-30 Richard M. Stallman <rms@gnu.org>
5945
5946 * process.c (create_process): Detect failure of `pipe'.
5947
59481999-07-30 Keisuke Nishida <kei@psn.net>
5949
5950 * alloc.c (allocate_vectorlike): Add missing increment.
5951
5952 * data.c (Fdefalias): Call Ffset instead of duplicating code.
5953
5954 * keymap.c (get_keymap_1, get_keyelt): Check the type of OBJECT
5955 before calling indirect_function.
5956
59571999-07-30 Eli Zaretskii <eliz@gnu.org>
5958
5959 * dispextern.h (load_color, lookup_derived_face): Declare
5960 prototypes.
5961
5962 * dispnew.c (init_display) [MSDOS]: Don't initialize frame faces,
5963 it will be done later.
5964
5965 * frame.c (make_terminal_frame) [MSDOS]: Don't call
5966 init_frame_faces if non-interactive.
5967 (Fframe_parameters) [MSDOS]: Replace indexing into colornames[]
5968 array with a call to msdos_stdcolor_name. The font name is now
5969 "ms-dos", consistent with realize_tty_face.
5970
5971 * keyboard.c (cmd_error_internal): Don't kill Emacs if this is an
5972 MSDOS frame.
5973
5974 * window.c (Fset_window_configuration) [MSDOS]: Don't call
5975 x_set_toolbar_lines.
5976
5977 * xfaces.c (load_color): Remove static from definition and remove
5978 prototype.
5979 [MSDOS]: Add a DOS-specific version of load_color.
5980 (lookup_face): Replace FRAME_TERMCAP_P with !FRAME_WINDOW_P.
5981 (lookup_derived_face): New function.
5982 (realize_default_face): Support MSDOS frames.
5983 [MSDOS]: If fore/background colors are unspecified, inherit them
5984 from the frame.
5985 (realize_face): Support MSDOS frames.
5986 (realize_tty_face): Support MSDOS frames.
5987 [MSDOS]: If the face color is not in Vface_tty_color_alist, call
5988 load_color to try to find a suitable approximation. If the face
5989 is inverse-video, swap the foreground and background colors.
5990
5991 * dosfns.c (msdos_stdcolor_name, msdos_stdcolor_idx): New
5992 functions.
5993
5994 * dosfns.h (msdos_stdcolor_name, msdos_stdcolor_idx): Declare.
5995
5996 * msdos.h: Remove redundant declarations (most of them are now in
5997 dispextern.h).
5998
5999 * msdos.c (IT_set_face): Rewritten for the new redisplay engine.
6000 Use default frame colors if the face doesn't specify them; invert
6001 the colors if highlight is ON.
6002 (IT_write_glyphs): Rewritten for the new redisplay engine.
6003 (IT_change_line_highlight): Add (unused) parameter Y, since that's
6004 how the hook is called by term.c.
6005 (IT_copy_glyphs): New function, copies an area of the display in
6006 video RAM.
6007 (IT_insert_glyphs): Rewritten to DTRT instead of aborting, since
6008 redisplay now calls it even if char_ins_del_ok is zero.
6009 (IT_set_frame_parameters): Prototype changed. Calls the new
6010 load_color. Puts the new fore/background colors into the default
6011 face on current frame.
6012 (IT_menu_display): Rewritten to handle the new struct glyph
6013 instead of a char array.
6014 (XMenuActivate): Call lookup_derived_face to create and use
6015 special faces for the pop-up and drop-down menus.
6016
60171999-07-29 Gerd Moellmann <gerd@gnu.org>
6018
6019 * xterm.c (x_set_toolkit_scroll_bar_thumb): Don't call
6020 XawScrollbarSetThumb if thumb parameters haven't changed because
6021 that function apparently isn't optimized for this case.
6022
60231999-07-29 Eli Zaretskii <eliz@gnu.org>
6024
6025 * msdos.c (getdefdir): Don't return failure indication when
6026 _fixpath sets errno to ENOSYS.
6027
60281999-07-28 Gerd Moellmann <gerd@gnu.org>
6029
6030 * xdisp.c (string_char_and_length): New. Use it everywhere
6031 instead of STRING_CHAR_AND_LENGTH in xdisp.c.
6032
60331999-07-28 Kenichi Handa <handa@etl.go.jp>
6034
6035 * fns.c (count_combining): New function.
6036 (struct textprop_rec): New structure.
6037 (concat): Copy text properties correctly when byte combining
6038 occurs.
6039
60401999-07-28 Gerd Moellmann <gerd@gnu.org>
6041
6042 * xterm.c (x_setup_relief_color): Don't try smart color allocation
6043 if display is mono.
6044 (x_draw_row_bitmaps): If face has stipple, don't switch
6045 to foreground color for clearing areas, and set the fill style.
6046
6047 * xfaces.c (load_face_colors): Load background color if setting
6048 stipple, too.
6049 (prepare_face_for_display): Use FillOpaqueStippled instead of
6050 FillStippled.
6051
60521999-07-26 Ken'ichi Handa <handa@gnu.org>
6053
6054 * xterm.c (x_find_ccl_program): Add casting.
6055
6056 * w32fns.c (w32_find_ccl_program): Add casting.
6057
60581999-07-27 Gerd Moellmann <gerd@gnu.org>
6059
6060 * dispextern.h (struct glyph_row): Flag internal_border_p removed.
6061
6062 * xfns.c (x_create_tip_frame): Don't set bitmapIcon resource
6063 because this will try to access a nonexisting widget.
6064
60651999-07-26 Markus Rost <rost@gnu.org>
6066
6067 * fns.c (Fgethash): Fix order of variables (patch by gerd).
6068 (Fputhash): Ditto.
6069 (Fremhash): Ditto.
6070
60711999-07-26 Gerd Moellmann <gerd@gnu.org>
6072
6073 * widget.c (EmacsFrameSetCharSize): Don't add XtNborderWidth
6074 value to frame width and height.
6075
6076 * xterm.c (x_get_glyph_string_clip_rect): Take internal border
6077 into account for full-width windows. Don't add scroll bar width
6078 to width of clip rect.
6079 (x_draw_glyph_string_box): Add 1 to right x of full width lines.
6080 (x_set_glyph_string_background_width): Add 1 to background width.
6081 (x_draw_glyphs): Take internal border into account for full-width
6082 lines.
6083
60841999-07-26 Richard M. Stallman <rms@gnu.org>
6085
6086 * xfns.c (x_set_mouse_color): Always unload the old color.
6087 Don't allow nil as color value.
6088 (x_set_cursor_color, x_set_background_color, x_set_foreground_color):
6089 Always unload the old color.
6090
6091 * indent.c (Fmove_to_column): Extend end of line only if FORCE is t.
6092
60931999-07-26 Karl Heuer <kwzh@gnu.org>
6094
6095 * fns.c (Fy_or_n_p): Doc fix.
6096
60971999-07-26 Kenichi Handa <handa@etl.go.jp>
6098
6099 * ccl.h (setup_ccl_program): The type is changed to `int'.
6100
6101 * ccl.c (ccl_driver) <CCL_Call>: Now CCL program ID to call may be
6102 stored in the following CCL code. Adjusted for the change of
6103 Vccl_program_table.
6104 (resolve_symbol_ccl_program): Adjusted for the new style of
6105 embedded symbols (SYMBOL . PROP) in CCL compiled code. Return Qt
6106 is resolving failed.
6107 (ccl_get_compiled_code): New function.
6108 (setup_ccl_program): Function type changed from `void' to `int'.
6109 Resolve symbols in CCL_PROG.
6110 (Fccl_program_p): New function.
6111 (Fccl_execute): Get compiled CCL code by just calling
6112 setup_ccl_program.
6113 (Fccl_execute_on_string): Likewise.
6114 (Fregister_ccl_program): Adjusted for the change of
6115 Vccl_program_table.
6116
6117 * coding.c (setup_coding_system): Get compiled CCL code by just
6118 calling setup_ccl_program.
6119
6120 * xterm.c (x_find_ccl_program): Get compiled CCL code by just
6121 calling setup_ccl_program.
6122
6123 * w32fns.c (w32_find_ccl_program): Get compiled CCL code by just
6124 calling setup_ccl_program.
6125
61261999-07-23 Gerd Moellmann <gerd@gnu.org>
6127
6128 * xfaces.c (frame_update_line_height): Just use the height of the
6129 frame's fontset or font, instead of taking face fonts into
6130 account.
6131
6132 * xdisp.c (get_next_display_element): Display DEL as `^?'.
6133
61341999-07-23 Richard M. Stallman <rms@gnu.org>
6135
6136 * window.c (Fsplit_window): For default size, round up for left window.
6137
61381999-07-21 Joe Ramey <ramey@ti.com>
6139
6140 * filelock.c (lock_if_free): Return -1 if check_lock_owner
6141 has returned -1 (lockfile exists but is not a symlink?).
6142
61431999-07-20 Gerd Moellmann <gerd@gnu.org>
6144
6145 * xterm.c (x_draw_bar_cursor): Use scratch_cursor_gc to
6146 because of a change in cursor_gc made in 20.4.
6147
61481999-07-19 Gerd Moellmann <gerd@gnu.org>
6149
6150 * xterm.c (x_calc_absolute_position): Subtract menu bar height
6151 for YNegative, if using X toolkit.
6152
6153 * xfns.c (x_real_positions): Don't subtract window borders
6154 from positions returned.
6155
61561999-07-17 Gerd Moellmann <gerd@gnu.org>
6157
6158 * xrdb.c (x_load_resources): Set double-click time defaults
6159 for Motif list boxes from double-click-time.
6160
6161 * fns.c (Vhash_table_tests): Remvoed.
6162 (Qhash_table_test): New.
6163 (syms_of_fns): Initialize Qhash_table_test.
6164 (Fmake_hash_table): Look up user-defined tests in symbol prop
6165 `hash-table-test'.
6166 (Fdefine_hash_table_test): Store test and hash function as
6167 symbol prop `hash-table-test'.
6168 (make_hash_table): Add parameters user_test and user_hash.
6169
6170 * window.c (set_window_buffer): Set window margins for tty
6171 frames, too.
6172 (Fset_window_margins): Ditto.
6173
6174 * term.c (append_glyph): Use glyph area of iterator instead of
6175 always TEXT_AREA.
6176
6177 * dispnew.c (update_frame_1): Add left margin width to cursor
6178 hpos.
6179 (direct_output_for_insert): Ditto.
6180 (direct_output_forward_char): Ditto.
6181
6182 * dispnew.c (adjust_glyph_matrix): Set glyph matrix' top_line_p.
6183
6184 * dispextern.h (struct glyph_matrix): Add top_line_p.
6185
61861999-07-16 Gerd Moellmann <gerd@gnu.org>
6187
6188 * frame.h (FRAME_WINDOW_REDISPLAY_P): Removed. Use FRAME_WINDOW_P
6189 instead.
6190
6191 * fns.c (cmpfn_eq): Add hash code parameters.
6192 (cmpfn_eql): Ditto.
6193 (cmpfn_equal): Ditto, and compare hash codes before calling Fequal.
6194 (cmpfn_user_defined): Likewise.
6195
61961999-07-15 Gerd Moellmann <gerd@gnu.org>
6197
6198 * lisp.h (DEFAULT_REHASH_THRESHOLD): Changed to 0.8.
6199
6200 * fns.c (maybe_resize_hash_table): Correct computation of
6201 index vector size.
6202 (make_hash_table): Ditto.
6203 (Fmakehash): New.
6204
6205 * xdisp.c (echo_area_display): Don't call redraw_garbaged_frames.
6206
6207 * alloc.c (gc_sweep): Call sweep_weak_hash_tables.
6208 (survives_gc_p): Make it externally visible.
6209 (mark_object): Ditto.
6210
6211 * fns.c (remove_hash_entry): Removed.
6212 (sweep_weak_hash_tables): New.
6213
6214 * print.c (print): Print more information about hash tables.
6215
6216 * xfns.c (image_spec_hash): Removed.
6217 (lookup_image): Use sxhash instead of image_spec_hash.
6218 (image_spec_equal_p): Removed.
6219 (lookup_image): Use Fequal instead of image_spec_equal_p.
6220
62211999-07-14 Gerd Moellmann <gerd@gnu.org>
6222
6223 * lisp.h (P_): Moved to top of file.
6224
6225 * fns.c (make_hash_table): Set new members.
6226
6227 * alloc.c (mark_object): Mark hash table's user_hash_function.
6228 Mark index vector for weak hash tables.
6229
6230 * lisp.h (struct Lisp_Hash_Table): Add user_cmp_function,
6231 user_hash_function, cmpfn, and hashfn.
6232
6233 * fns.c (build_hash): Removed.
6234 (hash_test): Removed.
6235 (cmpfn_eq, cmpfn_eql, cmpfn_equal, cmpfn_user_defined): New.
6236 (hashfn_eq, hashfn_eql, hashfn_equal, hashfn_user_defined): New.
6237
62381999-07-13 Gerd Moellmann <gerd@gnu.org>
6239
6240 * alloc.c (survives_gc_p): New.
6241
6242 * print.c (print): Add hash table handling.
6243
6244 * alloc.c (mark_object): Add code to mark hash tables.
6245
6246 * lisp.h (GC_HASH_TABLE_P): New.
6247
6248 * emacs.c (main): Call init_fns.
6249
6250 * fns.c (init_fns): New.
6251
6252 * fns.c: Add hash table implementation.
6253
6254 * lisp.h (PVEC_HASH_TABLE): New.
6255 (struct Lisp_Hash_Table): New.
6256 (XHASH_TABLE): New.
6257 (XSET_HASH_TABLE): New.
6258 (HASH_TABLE_P): New.
6259 (CHECK_HASH_TABLE): New.
6260 (DEFAULT_HASH_SIZE): New.
6261 (DEFAULT_REHASH_THRESHOLD): New.
6262 (DEFAULT_REHASH_SIZE): New.
6263
6264 * xterm.c (x_draw_glyphs): Add parameters real_start and real_end.
6265 (x_write_glyphs): Compute overwritten cursor using real start
6266 and end positions of display.
6267 (x_insert_glyphs): Ditto.
6268
62691999-07-10 Gerd Moellmann <gerd@gnu.org>
6270
6271 * keyboard.c (read_char): Use message3_nolog to show help-echo.
6272
6273 * dispnew.c (blank_row): Add y-position as parameter. Compute
6274 visible height.
6275
6276 * xdisp.c (next_element_from_string): Give padding spaces
6277 a position of -1.
6278
6279 * dispnew.c (adjust_glyph_matrix): Some work to support
6280 marginals areas on tty frames in a future version.
6281 (allocate_matrices_for_frame_redisplay): Ditto.
6282
6283 * xdisp.c (display_line): At ZV, set glyph row's displays_text_p
6284 to zero if number of glyphs in the row is <= 1.
6285
62861999-07-09 Gerd Moellmann <gerd@gnu.org>
6287
6288 * dispnew.c (buffer_posn_from_coords): Take left marginal area
6289 into account.
6290
6291 * xdisp.c (handle_display_prop): Don't reset area if handing
6292 a property from a string that came from a `display' property.
6293 (handle_single_display_prop): Don't handle recursive `display'
6294 properties.
6295 (handle_single_display_prop): Handle some display property
6296 forms for terminal frames.
6297 (Qimage): Moved here from xfns.c.
6298
6299 * dispextern.h (struct it): New field string_from_display_prop_p.
6300
6301 * xterm.c (x_clip_to_row): Don't let clip_rect include top
6302 line.
6303
63041999-07-08 Gerd Moellmann <gerd@gnu.org>
6305
6306 * xdisp.c (handle_single_display_prop): Handle `:when FORM'.
6307
6308 * window.c (set_window_buffer): Set window's vscroll to zero.
6309
6310 * xdisp.c (QCwhen): New.
6311 (display_prop_end): New.
6312 (handle_single_display_prop): Use it.
6313 (debug_method_add): Print buffer name if tracing.
6314 (try_window_reusing_current_matrix): Compute visible height
6315 of reused rows. Fix cursor position calculation in case of
6316 top-line.
6317
6318 * dispextern.h (struct redisplay_interface): Add parameter
6319 cursor_on_p to update_window_end_hook.
6320
6321 * xterm.c (x_update_window_end): Add parameter cursor_on_p.
6322
63231999-07-07 Gerd Moellmann <gerd@gnu.org>
6324
6325 * xdisp.c (redisplay_internal): Ensure that redisplayinp_p
6326 doesn't become negative when decrementing it.
6327
6328 * eval.c (Fsignal): Reset redisplaying_p to zero.
6329
6330 * xdisp.c (try_window_reusing_current_matrix): Call hooks
6331 for window update.
6332 (try_window_id): Ditto.
6333
6334 * xterm.c (x_clear_end_of_line): Handle top-line correctly.
6335 (x_scroll_run): Ditto.
6336 (any_help_event_p): New.
6337 (x_initialize): Set it to zero.
6338 (XTread_socket): Clear help echo only if any_help_event_p.
6339
6340 * xdisp.c (init_iterator): Set top_line_p.
6341 (start_display): Use correct initial y if top-line is present.
6342 (make_cursor_line_fully_visible): Bug fixes for top-line.
6343 (try_scrolling): Ditto.
6344 (try_window_reusing_current_matrix): Ditto.
6345
6346 * dispextern.h (struct it): Add top_line_p.
6347
6348 * dispnew.c (shift_glyph_matrix): Move some computations out
6349 of the loop.
6350
6351 * dispnew.c (margin_glyphs_to_reserve): Use NUMBERP and
6352 XFLOATINT.
6353
63541999-07-06 Gerd Moellmann <gerd@gnu.org>
6355
6356 * dispnew.c (update_frame_1): When setting cursor in echo area,
6357 skip only over padding spaces at the end.
6358
6359 * xfaces.c (realize_tty_face): Set face's font_name field to
6360 "tty".
6361
6362 * term.c (update_end): Turn cursor on only if selected window's
6363 cursor_off_p flag is not set.
6364
63651999-07-05 Gerd Moellmann <gerd@gnu.org>
6366
6367 * term.c (TS_cursor_visible): Renamed from TS_visual_mode.
6368 (TS_cursor_normal): Renamed from TS_end_visual_mode.
6369 (TS_cursor_invisible): New.
6370 (term_init): Initialize TS_cursor_invisible.
6371 (tty_hide_cursor): New.
6372 (tty_show_cursor): New.
6373 (update_end): Show tty cursor.
6374 (update_begin): Hide tty cursor to prevent cursor flickering
6375 during redisplays triggered by timers (stealth fontification).
6376
6377 * keyboard.c (make_lispy_event) <TOOLBAR_EVENT>: Apply modifiers.
6378
6379 * xterm.c (XTread_socket) [USE_MOTIF] <KeyPress>: Catch events
6380 in scroll bars.
6381 (x_handle_toolbar_click): Set modifier bits.
6382
63831999-07-04 Gerd Moellmann <gerd@gnu.org>
6384
6385 * keyboard.c (kbd_store_ptr): Declare it as a volatile pointer
6386 instead of a pointer to a volatile input_event.
6387 (kbd_buffer_store_event): Remove volatile modifier from
6388 declaration of local variable `sp'.
6389 (Fdiscard_input): Don't cast when assigning kbd_store_ptr
6390 to kbd_fetch_ptr.
6391
63921999-07-03 Gerd Moellmann <gerd@gnu.org>
6393
6394 * xdisp.c (try_window_id): Set beg_unchanged and end_unchanged
6395 only if buffer is modified. Return quickly if changes are
6396 above window start.
6397
63981999-07-02 Gerd Moellmann <gerd@gnu.org>
6399
6400 * dispextern.h (HSCROLL_WINDOWS): Removed.
6401
6402 * xdisp.c (mark_window_display_accurate): Don't set
6403 w->region_showing.
6404 (redisplay_internal): Don't call redraw_garbaged_frames.
6405
64061999-07-01 Gerd Moellmann <gerd@gnu.org>
6407
6408 * xdisp.c (echo_area_display): Don't display truncation marks
6409 for messages because 20.4 doesn't do it either.
6410 (redisplay_window): Case same window start. Instead of giving
6411 up when cursor is partially visible, make it fully visible.
6412 (mark_window_display_accurate): Some cleanup. Record window's
6413 last cursor information.
6414 (debug_method_add): Improved.
6415 (redisplay_internal): Record last cursor info only if not
6416 consider_all_windows_p.
6417
6418 * dispnew.c (update_window): Update top line after scrolling.
6419 (blank_row): Renamed from make_empty_enabled_row.
6420 (increment_glyph_row_buffer_positions): Increment positions
6421 in buffers, only.
6422
6423 * window.c (Fcoordinates_in_window_p): Add top-line to doc
6424 string.
6425
64261999-06-30 Gerd Moellmann <gerd@gnu.org>
6427
6428 * dispnew.c (update_window): Check that updated row is visible.
6429
6430 * xterm.c (x_draw_row_bitmaps): Check for invisible rows at
6431 top of window differently.
6432
6433 * xdisp.c (try_window_reusing_current_matrix): Don't do it
6434 if region is showing.
6435
6436 * dispnew.c (adjust_glyph_matrix): Check w->vscroll when
6437 avoiding matrix reallocation. Set window_vscroll in matrix.
6438
6439 * dispextern.h (struct glyph_matrix): Add member window_vscroll.
6440
26901792
DL
6441 * xdisp.c (debug_method_add): New.
6442 (debug_redisplay_method): Removed.
6443 (try_window_reusing_current_matrix): Handle case where old
6444 window start is the same as new window start.
6445
6446 * dispextern.h (struct glyph_matrix) [GLYPH_DEBUG]: Make `method'
6447 an array instead of a pointer.
6448
26901792
DL
6449 * xfns.c (Fx_show_tip): Undo previous change.
6450
6451 * xterm.c (x_append_glyph): Clear glyph->u.val.
6452
6453 * dispextern.h (struct glyph): Increase size of face_id bit-field
6454 for CHAR_GLYPH to 12.
6455
64561999-06-29 Gerd Moellmann <gerd@gnu.org>
6457
6458 * xfaces.c (x_charset_registry): Make it externally visible.
6459
64601999-06-28 Gerd Moellmann <gerd@gnu.org>
6461
6462 * dispnew.c (update_window): Use mode_line_p flag of rows
6463 instead of WINDOW_WANTS_MODELINE_P.
6464
6465 * xterm.c (clear_mouse_face): Make externally visible.
6466
6467 * xfns.c (Fx_show_tip): Clear mouse face before showing tip.
6468
6469 * xterm.c (expose_line): Handle exposure of top-lines.
6470
6471 * xterm.c (XTframe_up_to_date): Don't call note_mouse_highlight
6472 if mouse_face_mouse_frame is null.
6473
6474 * xdisp.c (redisplay_window): If window is echo_area_window,
6475 and update_mode_line is set, update menubar and toolbar.
6476
6477 * dispnew.c (space_glyph): Set its charpos to -1.
6478 (update_frame_1): Ignore trailing padding spaces.
6479
6480 * xdisp.c (next_element_from_c_string): Set position of padding
6481 glyphs to -1.
6482
64831999-06-27 Gerd Moellmann <gerd@gnu.org>
6484
6485 * xfns.c (x_laplace_read_row): Use XQueryColors instead of
6486 XQueryColor.
6487
6488 * xdisp.c (display_menu_bar): Remove unwarranted assertion.
6489 (set_cursor_from_row): Skip over glyphs having a null object at
6490 the start of rows.
6491 (insert_left_trunc_glyphs): Use charpos < 0 to indicate truncation
6492 glyphs.
6493 (handle_invisible_prop): Compute next change only when needed.
6494 (handle_face_prop): Don't correct DEFAULT_FACE_ID if in the mode
6495 line.
6496
64971999-06-26 Gerd Moellmann <gerd@gnu.org>
6498
6499 * xrdb.c (x_load_resources): Don't set resource for double-click
6500 time.
6501
6502 * xdisp.c (try_window_id): Return quickly if all changes are
6503 below the window's current matrix end.
6504
6505 * dispextern.h (MATRIX_ROW_PARTIALLY_VISIBLE_P): Remove window
6506 parameter.
6507
6508 * xdisp.c (try_window_reusing_current_matrix): Set no_scrolling_p
6509 in desired not in current matrix.
6510 (try_window_reusing_current_matrix): Rotate matrices starting
6511 at start_vpos instead of 0.
6512
6513 * xterm.c (expose_window): Use window_text_bottom_y.
6514 (fast_find_position): Ditto.
6515
6516 * xdisp.c (redisplay_window): Use window_text_bottom_y.
6517 (try_window_reusing_current_matrix): Ditto.
6518 (get_last_unchanged_at_beg_row): Ditto.
6519 (init_iterator): Ditto.
6520
6521 * dispnew.c (allocate_matrices_for_window_redisplay): Allocate one
6522 more row.
6523 (check_matrix_invariants): Use window_text_bottom_y.
6524 (update_window): Ditto.
6525 (scrolling_window): Ditto.
6526
6527 * xdisp.c (window_text_bottom_y): New.
6528
65291999-06-25 Gerd Moellmann <gerd@gnu.org>
6530
6531 * xterm.c (XTread_socket): Set mouse_face_frame to zero after
6532 clearing mouse face.
6533 (XTread_socket) <EnterNotify> [LESSTIF_VERSION]: If
6534 event.xcrossing.focus is not set, and focus is in the menu bar,
6535 set focus frame as if event.xcrossing.focus were set.
6536
65371999-06-24 Gerd Moellmann <gerd@gnu.org>
6538
6539 * keyboard.c (make_lispy_event): Handle mouse on top lines.
6540 * keyboard.c (make_lispy_movement): Ditto.
6541
6542 * window.c (coordinates_in_window): Return 4 if on top line.
6543 (Fcoordinates_in_window_p): Return `top-line' if on top line.
6544
6545 * xdisp.c (window_box_height): Subtract top line height.
6546 (window_box): Add top line height to top y position if top line
6547 exists.
6548 (init_iterator): If base_face_id is TOP_LINE_FACE_ID, set row to
6549 the top line row of the window. Set initial y-position to
6550 window's top line height plus delta.
6551 (start_display): Choose start glyph row depending on whether
6552 window has a top line.
6553 (try_scrolling): Take top line height into account for aggressive
6554 scrolling.
6555 (compute_window_start_on_continuation_line): Take top line into
6556 account.
6557 (redisplay_window): Ditto. If top line height has changed,
6558 trigger a new redisplay.
6559 (try_window_reusing_current_matrix): Take top line into account.
6560 (find_last_row_displaying_text): Ditto.
6561 (get_last_unchanged_at_beg_row): DItto.
6562 (try_window_id): Ditto.
6563 (compute_line_metrics): Ditto.
6564
6565 * dispnew.c (shift_glyph_matrix): Compute visible row height
6566 taking top line of window into account.
6567 (update_window): Update top line. If scrolling_window detects
6568 that all rows are equal, only set cursor.
6569 (update_window_line): Call after_update_window_line_hook if
6570 mode_line_p flag of rows has changed.
6571 (scrolling_window): Add parameter top_line_p. Return -1 if
6572 all rows are equal.
6573 (mode_line_string): Add parameter mode_line_p. Handle strings
6574 in top lines.
6575
6576 * dispextern.h (MATRIX_TOP_LINE_ROW): New.
6577 (MATRIX_FIRST_TEXT_ROW): New.
6578 (MATRIX_ROW_PARTIALLY_VISIBLE_P): Use row's visible_height.
6579 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_TOP_P): New.
6580 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_BOTTOM_P): New.
6581 (MATRIX_TOP_LINE_HEIGHT): New.
6582 (CURRENT_MODE_LINE_HEIGHT): Use estimate_mode_line_height.
6583 (CURRENT_TOP_LINE_HEIGHT): New.
6584 (DESIRED_TOP_LINE_HEIGHT): New.
6585 (WINDOW_DISPLAY_TOP_LINE_HEIGHT): New.
6586 (WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE): Replaces
6587 WINDOW_DISPLAY_TEXT_AREA_PIXEL_HEIGHT.
6588 (WINDOW_DISPLAY_TEXT_HEIGHT): New.
6589
6590 * xterm.c (x_after_update_window_line): Don't draw bitmaps for top
6591 lines.
6592 (x_draw_row_bitmaps): Take top line into account when clearing
6593 bitmap area.
6594 (x_estimate_mode_line_height): Replacement for
6595 x_frame_mode_line_height.
6596 (x_get_glyph_string_clip_rect): Take top line into account.
6597 (x_clear_end_of_line): Ditto.
6598 (note_mode_line_highlight): Add parameter mode_line_p. Handle
6599 top lines.
6600 (note_mouse_highlight): Call note_mode_line_highlight for top lines.
6601 (x_erase_phys_cursor): Take top line into account.
6602
6603 * xdisp.c (window_box_height): Subtract top line height if
6604 window wants a top line.
6605 (display_mode_lines): New.
6606 (redisplay_window): Call it.
6607 (display_mode_line): Add parameters face_id and format.
6608
6609 * dispextern.h (CURRENT_TOP_LINE_HEIGHT): New.
6610 (MATRIX_TOP_LINE_HEIGHT): New.
6611
6612 * xterm.c (x_frame_mode_line_height): Add parameter face_id.
6613
6614 * term.c (estimate_mode_line_height): Renamed from
6615 frame_mode_line_height. Add parameter face_id.
6616 (estimate_mode_line_height_hook): Renamed from
6617 frame_mode_line_height_hook.
6618 (produce_special_glyphs_hook): Removed.
6619 (produce_glyphs_hook): Removed.
6620
66211999-06-23 Gerd Moellmann <gerd@gnu.org>
6622
6623 * dispextern.h (WINDOW_WANTS_TOP_LINE_P): New.
6624 (struct glyph_row): Add mode_line_p.
6625
6626 * xfaces.c (realize_basic_faces): Realize face `top-line'.
6627 (Qtop_line): New.
6628 (syms_of_xfaces): Initialize Qtop_line.
6629
6630 * dispextern.h (TOP_LINE_FACE_ID): New.
6631
6632 * buffer.c (init_buffer_once): Set default for
6633 top_line_format to nil.
6634 (init_buffer_once): Init top_line_format.
6635 (default-top-line-format): New.
6636 (top-line-format): New buffer-local variable.
6637
6638 * buffer.h: Add top_line_format.
6639
6640 * xdisp.c (overlay_arrow_changed_p): Removed because not used.
6641
66421999-06-17 Dave Love <fx@gnu.org>
6643
6644 * xfns.c: Move the PNG section before the JPEG one to avoid
6645 problems surrounding setjmp.h/png.h on GNU/Linux.
6646
66471999-06-17 Gerd Moellmann <gerd@gnu.org>
6648
6649 * xfns.c (x_kill_gs_process): Don't free colors.
6650
66511999-06-17 Dave Love <fx@gnu.org>
6652
6653 * s/gnu-linux.h: Zap spurious ~.
6654
66551999-06-16 Gerd Moellmann <gerd@gnu.org>
6656
6657 * xfns.c (gif_load): Improve multi-image support.
6658
66591999-06-15 Gerd Moellmann <gerd@gnu.org>
6660
6661 * xfns.c (gif_load): Support multi-image files.
6662
6663 * Makefile.in (LIBGIF): Use libungif.
6664
6665 * configure.in (HAVE_GIF): Use libungif instead of libgif
6666 because the former doesn't contain patented compression code.
6667
6668 * xdisp.c (compute_window_start_on_continuation_line): Don't
6669 do it if line start is too far away from window start.
6670
66711999-06-14 Gerd Moellmann <gerd@gnu.org>
6672
6673 * buffer.c (init_buffer_once): Set buffer_local_flags for
6674 scroll_*_aggressively.
6675 (syms_of_buffer): Add DEFVAR_PER_BUFFER for scroll-*-aggressively.
6676 (init_buffer_once): Set defaults for these variables.
6677 (syms_of_buffer): Add default-scroll-*-aggressively.
6678
6679 * buffer.h (scroll_up_aggressively): New.
6680 (scroll_down_aggressively): New.
6681
6682 * Makefile.in (LIBPNG): Add -lz -lm in case we're linking with
6683 a static PNG library.
6684
6685 * configure.in (HAVE_PNG): Add -lz -lm when checking for PNG lib
6686 in case it's a static library.
6687
6688 * Makefile.in (ctagsfiles): Split so that files starting
6689 with an `x' are found before files starting with `w32'.
6690 (ctagsfiles1): New.
6691 (ctagsfiles2): New.
6692 (TAGS): Use ctagsfiles[12] instead of ctagsfiles.
6693
6694 * xdisp.c (compute_window_start_on_continuation_line): New.
6695 (redisplay_window): Use it.
6696 (INFINITY): New.
6697 (reseat_to_string): Use it.
6698 (hscroll_window_tree): Ditto.
6699 (compute_window_start_on_continuation_line): Ditto.
6700 (redisplay_window): Don't force display with a new window start.
6701
67021999-06-06 Gerd Moellmann <gerd@gnu.org>
6703
6704 * xfns.c (x_report_frame_params): Don't report `outer-window-id'
6705 if widget not present.
6706
6707 * xdisp.c (prepare_menu_bars): Ignore tooltip frame.
6708
67091999-06-04 Gerd Moellmann <gerd@gnu.org>
6710
6711 * xfaces.c (recompute_basic_faces)[GLYPH_DEBUG]: Check return
6712 value of realize_basic_faces.
6713 (load_face_font_or_fontset): Store full font name in face.
6714 (realize_default_face): Use full font name.
6715
26901792
DL
6716 * xterm.c (x_produce_glyphs): Set member char_to_display.
6717 (x_append_glyph): Store char_to_display in glyphs.
6718
6719 * dispextern.h (struct it): Add char_to_display.
6720
6721 * xfns.c (x_set_font): Don't call face-set-after-frame-default
6722 if faces haven't been initialized.
6723 (Fx_create_frame): Call face-set-after-frame-default after
6724 faces have been initialized, and widget has been created.
6725
6726 * puresize.h (BASE_PURESIZE): Increased.
6727
67281999-06-01 Gerd Moellmann <gerd@gnu.org>
6729
6730 * xfaces.c (set_lface_from_font_name): Add parameter force_p.
6731 (Finternal_set_lisp_face_attribute): If frame is t when
6732 :font attribute is set, use the selected frame.
6733 (clear_face_cache): Add parameter clear_fonts_p.
6734 (Fclear_face_cache): Add optional parameter thorougly.
6735
6736 * xfaces.c (face_numeric_value): Return -1 if symbol is not
6737 in table.
6738 (Fclear_face_cache): New.
6739 (choose_face_fontset_font): If fontset doesn't contain font
6740 pattern for the given charset, use CHARSET_ASCII.
6741 (Finternal_set_lisp_face_attribute): Fix handling of nil
6742 stipple attribute.
6743 (Finternal_set_lisp_face_attribute): Fix handling of changing
6744 font-related face attributes of the default face.
6745 (set_lface_from_font_name): Set only attributes that aren't
6746 specified.
6747
67481999-05-31 Gerd Moellmann <gerd@gnu.org>
6749
6750 * xfaces.c (SCALABLE_FONTS): Define this to enable scalable
6751 font support.
6752 (Vscalable_fonts_allowed) [SCALABLE_FONTS]: New.
6753 (x_face_list_fonts): Add parameter scalable_fonts_p. Handle
6754 scalable fonts depending on the setting of SCALABLE_FONTS.
6755 (first_font_matching): List more than one font to find the
6756 first non-scalable matching font.
6757 (sorted_font_list): Let x_face_list_fonts return scalable fonts
6758 depending on SCALABLE_FONTS.
6759 (better_font_p): New parameter compare_pt_p. If zero, don't
6760 compare point sizes of fonts.
6761 (exact_face_match_p) [SCALABLE_FONTS]: New.
6762 (build_scalable_font_name) [SCALABLE_FONTS]: New.
6763 (may_use_scalable_font_p) [SCALABLE_FONTS]: New.
6764 (best_matching_font) [SCALABLE_FONTS]: Handle scalable fonts.
6765 (syms_of_xfaces): Add scalable-fonts-allowed.
6766
67671999-05-26 Gerd Moellmann <gerd@gnu.org>
6768
6769 * xfns.c (png_load): Let PNG lib handle gamma. Construct
6770 mask only if image contains simple transparency information.
6771 Otherwise, combine image with frame background color.
6772
6773 * configure.in (--with-png, HAVE_PNG): New.
6774
6775 * config.in (HAVE_PNG): New.
6776
6777 * Makefile.in: Add PNG library.
6778
6779 * xfns.c: Add PNG support.
6780
67811999-05-25 Gerd Moellmann <gerd@gnu.org>
6782
6783 * xdisp.c (init_xdisp): Initialize echo_area_message and
6784 previous_echo_area_message to nil.
6785
6786 * keyboard.c (read_char): Rename local variable echo_area_message
6787 because it shadows the global one.
6788
67891999-05-05 Gerd Moellmann <gerd@gnu.org>
6790
6791 * xterm.c (note_mode_line_highlight): Restructured.
6792
6793 * window.c (coordinates_in_window): Handle windows that don't have
6794 a mode line because their buffer's mode-line-format is nil.
6795 Recognize the mode line under x positions that correspond to
6796 flags areas and left scroll bar.
6797
67981999-05-02 Dave Love <fx@gnu.org>
6799
6800 * xterm.c (note_mouse_highlight): Separate help-echo processing
6801 from check on mouse-face so that it works generally.
6802
68031999-04-21 Gerd Moellmann <gerd@gnu.org>
6804
6805 * sound.c (Fplay_sound): Run hook play-sound-hook.
6806 (Qplay_sound_hook): New.
6807
68081999-04-20 Gerd Moellmann <gerd@gnu.org>
6809
6810 * xdisp.c (update_echo_area): Handle echo_area_message.
6811
68121999-04-19 Gerd Moellmann <gerd@gnu.org>
6813
6814 * editfns.c (Fmessage): Use message3.
6815
6816 * print.c (printchar): Set echo_area_message to nil.
6817 (strout): Ditto.
6818
6819 * minibuf.c (read_minibuf): Reset echo message strings to nil.
6820 (Fminibuffer_completion_help): Ditto.
6821
6822 * keyboard.c (cmd_error_internal): Set echo_areA_message.
6823 (command_loop_1): Test echo_areA_message.
6824 (read_char): Ditto.
6825 (record_menu_key): Set echo_area_message to nil.
6826 (Fexecute_extended_command): Test echo_area_message.
6827 (Fexecute_extended_command): Handle echo_area_message.
6828
6829 * fileio.c (Fdo_auto_save): Handle the case that echo_area_message
6830 is set.
6831
6832 * editfns.c (Fcurrent_message): If echo_area_message is set,
6833 return a substring of that string.
6834
6835 * dispnew.c (direct_output_for_insert): Test echo_area_message
6836 in addition to echo_area_glyphs.
6837 (set_window_cursor_after_update): Ditto.
6838 (update_frame_1): Ditto.
6839
6840 * alloc.c (Fgarbage_collect): Use message3_nolog to display
6841 old Lisp message string.
6842
6843 * xdisp.c (echo_area_message): New.
6844 (previous_echo_area_message): New.
6845 (syms_of_xdisp): Initialize and staticpro new variables.
6846 (echo_area_display): Display echo_area_message if set.
6847 (message2_nolog): Set echo_area_message and
6848 previous_echo_area_message.
6849 (echo_area_display): Set previous_echo_area_message.
6850 (redisplay_internal): Display echo area if echo_area_message
6851 or previous_echo_area_message are set.
6852 (redisplay_preserve_echo_area): Test/set echo_area_message and
6853 previous_echo_area_message.
6854 (redisplay_window): Test echo_area_message.
6855 (message3_nolog): New.
6856 (message3): New.
6857
6858 * editfns.c (Fformat): Add text properties to the result string
6859 from properties of the format string and properties of string
6860 arguments.
6861
6862 * textprop.c (text_property_list): New.
6863 (add_text_properties_from_list): New.
6864 (extend_property_ranges): New.
6865
68661999-03-29 Gerd Moellmann <gerd@gnu.org>
6867
6868 * xfaces.c (Qraised, Qsunken, QCshadow): Removed.
6869 (QCline_width, QCstyle, Qpressed_button, Qreleased_button): New.
6870 Use these symbols for the box face attribute instead of the
6871 removed ones.
6872
68731999-03-12 Gerd Moellmann <gerd@gnu.org>
6874
6875 * xfaces.c (realize_tty_face): Don't set alt_char_p of face.
6876 Correct wrong test for slant.
6877
68781999-03-10 Gerd Moellmann <gerd@gnu.org>
6879
6880 * xfaces.c: Use `unspecified' for unspecified face attributes,
6881 use t and nil for on/off.
6882
68831999-03-06 Gerd Moellmann <gerd@gnu.org>
6884
6885 * buffer.c (syms_of_buffer): Extend doc string of
6886 mode-line-format.
6887
6888 * xfaces.c (x_face_list_fonts): New parameter try_alternatives_p.
6889 (first_font_matching): New.
6890 (set_lface_from_font_name): Use it if font name is a pattern.
6891 (font_field_wildcard_p): Removed.
6892
6893 * dispnew.c (shift_glyph_matrix): Add `window' parameter.
6894 Recompute visible height of rows.
6895
6896 * xterm.c (note_mouse_highlight): Reorder code for help-echo.
6897 Don't accept non-strings for help-echo from overlays.
6898
68991999-03-04 Dave Love <fx@gnu.org>
6900
6901 * xterm.c (note_mouse_highlight): Check overlays for help-text
6902 property.
6903 (XTread_socket): Fix compiler warning.
6904
69051999-03-05 Gerd Moellmann <gerd@gnu.org>
6906
6907 * xterm.c (note_mouse_highlight): Don't restrict number of
6908 overlay to 10. Call overlays_at so that it doesn't try to
6909 extend the vector.
6910
6911 * xdisp.c (compute_line_metrics): Compute glyph row's visible
6912 height.
6913
6914 * dispnew.c (row_equal_p): Compare visible row height, only.
6915 (update_text_area): Draw whole line if visible heights of
6916 rows differ.
6917 (update_window_line): Call after_update_window_line_hook
6918 if visible row height has changed.
6919
6920 * dispextern.h (MATRIX_ROW_VISIBLE_HEIGHT): Removed.
6921 (struct glyph_row): New member visible_height.
6922
6923 * xfaces.c (font_field_wildcard_p): New.
6924 (set_lface_from_font_name): Remove parameter force_p. Accept
6925 font names containing wildcards.
6926
69271999-03-04 Gerd Moellmann <gerd@gnu.org>
6928
6929 * xterm.c (x_after_update_window_line): Clear internal border
6930 when windows_or_buffers_changed.
6931
6932 * dispextern.h (WINDOW_WANTS_MODELINE_P): Return zero if window's
6933 buffer has a nil mode_line_format.
6934
69351999-03-03 Gerd Moellmann <gerd@gnu.org>
6936
6937 * xterm.c (x_setup_relief_colors): Use either background color
6938 or specified color.
6939
6940 * xfaces.c (realize_x_face): Set face->use_box_color_for_shadows_p.
6941
6942 * dispextern.h (struct face): Add use_box_color_for_shadows_p.
6943
6944 * xterm.c (x_draw_box_rect): New.
6945 (x_draw_glyph_string_box): Renamed from
6946 x_draw_glyph_string_relief. Call x_draw_box_rect.
6947
6948 * xfns.c (QCrelief): New.
6949 (syms_of_xfns): Initialize it.
6950
6951 * dispextern.h (struct glyph): Rename left_shadow_p to
6952 left_box_line_p, right_shadow_p to right_box_line_p.
6953 (MAX_RELIEF_THICKNESS): Removed.
6954 (struct it): Rename members having `relief' in their names
6955 to contain `box' instead.
6956
6957 * xfaces.c (realize_x_face): Handle new box attribute values.
6958 (QCrelief, Qbox): Removed.
6959 (QCshadow, QCcolor, Qraised, Qsunken): New.
6960 (syms_of_xfaces): Initialize new symbols.
6961
69621999-03-02 Gerd Moellmann <gerd@gnu.org>
6963
6964 * dispextern.h (LFACE_RELIEF_INDEX): Removed.
6965
6966 * xfaces.c (LFACE_RELIEF): Removed.
6967 (merge_face_vector_with_property): Remove handling of `:relief'.
6968 (Finternal_set_lisp_face_attribute): Ditto.
6969 (Finternal_set_lisp_face_attribute_from_resource): Ditto.
6970 (Finternal_get_lisp_face_attribute): Ditto.
6971 (realize_default_face): Ditto.
6972 (lface_hash): Don't compute hash from relief.
6973
6974 * dispextern.h (struct face): Replace member `relief' by
6975 `box_line_width'. Add member `box'.
6976 (face_box_type): New.
6977
6978 * xterm.c (x_produce_glyphs): If face has overline, add overline
6979 thickness + 1 to ascent.
6980
69811999-03-01 Gerd Moellmann <gerd@gnu.org>
6982
6983 * xterm.c (x_draw_glyph_string): Draw underline, overline,
6984 strike-through, and boxes.
6985 (x_draw_glyph_string_underline): Removed.
6986
6987 * xfaces.c (QCoverline, QCstrike_through, QCbox): New.
6988 (Qoverline, Qstrike_through, Qbox): New.
6989 (syms_of_xfaces): Define these symbols.
6990 (check_lface_attrs): Add checks for overline, strike-through,
6991 and box.
6992 (Finternal_set_lisp_face_attribute): Set new attributes.
6993 (LFACE_OVERLINE, LFACE_STRIKE_THROUGH, LFACE_BOX): New.
6994 (load_color): Handle new attributes.
6995 (realize_x_face): Ditto.
6996 (merge_face_vector_with_property): Ditto.
6997 (free_face_colors): Ditto.
6998 (Finternal_set_lisp_face_attribute_from_resource): Ditto.
6999 (Finternal_get_lisp_face_attribute): Ditto.
7000 (Finternal_lisp_face_attribute_values): Ditto.
7001
7002 * dispextern.h (lface_attribute_index): Add enumerators for
7003 overstrike, strike-through, and box.
7004 (struct face): Add members for overline, strike-through, and
7005 box.
7006
70071999-02-17 Dave Love <fx@gnu.org>
7008
7009 * s/gnu-linux.h s/gnu.h s/irix5-0.h s/netbsd.h s/sco4.h s/sco5.h
7010 s/template.h (NARROWPROTO): Define on the basis of relevant X cf
7011 files.
7012
70131999-02-16 Gerd Moellmann <gerd@gnu.org>
7014
7015 * keyboard.c (toolbar_items): Call access_keymap with third
7016 parameter 1, so that we don't get inherited toolbar item
7017 definitions.
7018
7019 * xdisp.c (redisplay_internal): In optimization 1, don't decrement
7020 the window end vpos when in empty first line of window.
7021
70221999-02-15 Gerd Moellmann <gerd@gnu.org>
7023
7024 * xfaces.c (set_font_frame_param): New.
7025 (Finternal_set_lisp_face_attribute): Call it.
7026
7027Sun Feb 14 10:54:02 1999 Masatake Yamato <masata-y@is.aist-nara.ac.jp>
7028
7029 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
7030 Accept specifications of color for underline.
7031
70321999-02-13 Gerd Moellmann <gerd@gnu.org>
7033
7034 * xfaces.c (Finternal_set_lisp_face_attribute): If parameter
7035 `frame' is t, operate on face defaults for new frames. If it
7036 is nil, operate on the selected frame.
7037
70381999-02-12 Gerd Moellmann <gerd@gnu.org>
7039
7040 * dispnew.c (check_matrix_invariants): Put it in #if 0.
7041 (update_window): Put the call to check_matrix_invariants in #if 0.
7042
7043Sun Feb 7 09:58:49 1999 Masatake Yamato <masata-y@is.aist-nara.ac.jp>
7044
7045 * dispextern.h: Remove all else block of UNDERLINE_COLOR.
7046 Remove definition of UNDERLINE_COLOR.
7047
7048Mon Jan 4 04:43:41 1999 Masatake Yamato <masata-y@is.aist-nara.ac.jp>
7049
7050 * xfaces.c (free_face_colors): Free the color for underline.
7051
7052 * xterm.c (x_draw_glyph_string_underline): Set the color for underline
7053 to the GC.
7054
7055Sun Jan 3 08:41:10 1999 Masatake Yamato <masata-y@is.aist-nara.ac.jp>
7056
7057 * dispextern.h (UNDERLINE_COLOR): Defined.
7058 (struct face): Added two new members.
7059 underline_color, underline_defaulted_p.
7060
7061 * xfaces.c (merge_face_vector_with_property):
7062 (check_lface_attrs): Accept the string value for underline.
7063 (Finternal_set_lisp_face_attribute): Likewise.
7064
7065 * xfaces.c (load_color): Change the last argument type to enum
7066 lface_attribute_index from int. And addec code for underling coloring.
7067 (load_face_colors): Pass LFACE_*_INDEX to load_color.
7068
70691999-02-12 Gerd Moellmann <gerd@gnu.org>
7070
7071 * xfns.c (Fx_image_header): Removed.
7072
70731999-02-07 Gerd Moellmann <gerd@gnu.org>
7074
7075 * xterm.c: Don't include <bitmaps/gray>.
7076 (x_term_init): Use gray_bitmap_width and gray_bitmap_height.
7077
7078 * xfns.c (Fx_image_header): Add missing `\n\'.
7079 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits): New.
7080
70811999-02-01 Gerd Moellmann <gerd@gnu.org>
7082
7083 * xterm.c (x_scroll_bar_create): Set background pixel from
7084 specified scroll bar color.
7085 (x_scroll_bar_set_handle): Use scroll bar foreground color.
7086
7087 * xfns.c (x_set_scroll_bar_foreground): Remove all scroll bars.
7088 (x_set_scroll_bar_background): Ditto.
7089
7090 * xterm.c (x_create_toolkit_scroll_bar): Set scroll bar colors.
7091
7092 * xfns.c (x_default_scroll_bar_color_parameter): New.
7093 (Fx_create_frame): Call it.
7094
70951999-01-31 Gerd Moellmann <gerd@gnu.org>
7096
7097 * xfns.c (Fx_create_frame): Initialize scroll bar pixel color
7098 values in x_output structure.
7099 (Qscroll_bar_foreground, Qscroll_bar_background): New.
7100 (syms_of_xfns): Initialize these symbols.
7101
7102 * xterm.h (struct x_output): Add scroll bar pixel colors.
7103
7104 * xfns.c (x_frame_parms): Add entries for scroll bar colors.
7105 (x_set_scroll_bar_foreground): New.
7106 (x_set_scroll_bar_background): New.
7107
26901792
DL
71081999-01-12 Gerd Moellmann <gerd@gnu.org>
7109
7110 * xdisp.c (handle_single_display_prop): New.
7111 (handle_display_prop): Call it.
7112 (handle_raise_prop): Removed.
7113 (handle_height_prop): Removed.
7114 (handle_space_width_prop): Removed.
7115 (handle_face_prop): Remove handling of raised text.
7116 (handle_display_prop): Do it here.
7117
7118 * dispextern.h (DISPLAY_PROP_IDX): Replaces GLYPH_PROP_IDX.
7119 (RAISE_PROP_IDX): Removed.
7120 (HEIGHT_PROP_IDX): Removed.
7121 (SPACE_WIDTH_PROP_IDX): Removed.
7122
7123 * xdisp.c (Qdisplay): Replaces Qglyph.
7124 (handle_display_prop): Formerly handle_glyph_prop.
7125
71261999-01-11 Gerd Moellmann <gerd@gnu.org>
7127
7128 * xdisp.c (reseat_to_string): Set position in display vector to -1.
7129 (handle_stop): Set position in display vector to -1. Don't
7130 check overlay strings when set up to deliver characters from a
7131 display vector.
7132 (set_iterator_to_next): At the end of a run of characters from a
7133 display vector, check whether the display vector display replaces
7134 the display of a character.
7135
71361999-01-05 Gerd Moellmann <gerd@gnu.org>
7137
7138 * xfaces.c (init_frame_faces): Don't realize faces if frame's
7139 X window hasn't been created yet.
7140
71411998-12-06 Gerd Moellmann <gerd@gnu.org>
7142
7143 * sound.c: New.
7144
71451998-12-04 Gerd Moellmann <gerd@gnu.org>
7146
7147 * config.in (HAVE_SOUND): New.
7148
7149 * emacs.c (main): Call syms_of_sound and init_sound.
7150
7151 * Makefile.in (obj): Add sound.o.
7152
7153 * configure.in: Add checks for machine/soundcard.h and sys/soundcard.h.
7154
7155 * config.in (HAVE_MACHINE_SOUNDCARD_H): New.
7156 (HAVE_SYS_SOUNDCARD_H): New.
7157
71581998-12-03 Gerd Moellmann <gerd@gnu.org>
7159
7160 * buffer.h (struct buffer): indicate_empty_lines renamed from
7161 indicate_zv_lines.
7162
7163 * buffer.c (indicate-empty-lines): Renamed from indicate_zv_lines.
7164 (default-indicate-zv-lines): Likewise.
7165
7166 * dispextern.h (struct glyph_row): Rename indicate_zv_line_p
7167 to indicate_empty_line_p.
7168
7169 * xdisp.c (reseat_at_next_visible_line_start): Reset method
7170 to next_element_from_buffer.
7171
7172 * frame.c (make_frame): Set n_current_toolbar_items to 0.
7173
7174 * xdisp.c (handle_face_prop): Allow symbols of the form `N+'
7175 and `N-'.
7176
7177 * xfns.c (xbm_scan): New.
7178 (xbm_read_hexint): Removed.
7179 (xbm_read_bitmap_file_data): Use xbm_scan.
7180
7181 * fileio.c (Finsert_file_contents): Prevent redisplay optimizations.
7182
71831998-12-02 Gerd Moellmann <gerd@gnu.org>
7184
7185 * xfns.c (xbm_read_hexint): New.
7186 (xbm_read_bitmap_file_data): New.
7187 (xbm_load_image_from_file): Call xbm_read_bitmap_file_data
7188 instead of XReadBitmapFileData.
7189
7190 * xdisp.c (handle_raise_prop): Compute voffset from current font.
7191
7192 * xfaces.c (face_with_height): New.
7193
7194 * xdisp.c (eval_handler): Renamed from eval_mode_handler.
7195 (eval_form): Renamed from eval_mode_element.
7196 (handle_face_prop): Use it.
7197 (Qheight): Replaces Qsmaller.
7198 (handle_height_prop): Replaces handle_smaller_prop.
7199 (handle_face_prop): If iterator's font_height is not an
7200 integer, evaluate it to get the font height to use.
7201
7202 * dispextern.h (HEIGHT_PROP_IDX): Replaces SMALLER_PROP_IDX.
7203 (struct it): Use `font_height' instead of `smaller'.
7204
72051998-12-01 Gerd Moellmann <gerd@gnu.org>
7206
7207 * xdisp.c (reseat_1): New.
7208 (reseat): Call it.
7209 (move_it_vertically_backward): Ditto.
7210 (redisplay_window): Don't abort when cursor not found in recenter.
7211
72121998-11-30 Gerd Moellmann <gerd@gnu.org>
7213
7214 * xdisp.c (reseat_at_next_visible_line_start): When not
7215 currently delivering display elements from the current buffer,
7216 restore buffer position first.
7217 (init_from_display_pos): Don't set IT's position from the
7218 position passed to this function.
7219
72201998-11-28 Gerd Moellmann <gerd@gnu.org>
7221
7222 * config.in (PROTO): Removed.
7223
7224 * xterm.h: Change PROTO to P_.
7225
72261998-11-26 Gerd Moellmann <gerd@gnu.org>
7227
7228 * xterm.c (take_vertical_position_into_account): New.
7229 (x_produce_image_glyph): Call it.
7230 (x_produce_stretch_glyph): Ditto.
7231 (x_produce_glyphs): Ditto.
7232 (x_fill_glyph_string): Adjust base line for glyph's voffset.
7233 (x_fill_composite_glyph_string): Ditto.
7234 (x_fill_image_glyph_string): Ditto.
7235 (x_fill_stretch_glyph_string): Ditto.
7236
7237 * xdisp.c (display_line): Always compute row height from
7238 max_ascent and max_descent.
7239
7240 * dispextern.h (struct glyph): Add voffset.
7241 (struct it): Replace height by descent, max_height by max_descent.
7242
7243 * xterm.c (x_append_glyph): Set voffset
7244 (x_append_stretch_glyph): Ditto.
7245 (x_produce_image_glyph): Ditto.
7246 (x_produce_glyphs): Take voffset into account.
7247 (x_produce_image_glyph): Ditto.
7248 (x_produce_stretch_glyph): Ditto.
7249
7250 * dispextern.h (struct it): Add voffset.
7251 * xdisp.c (push_it): Save voffset.
7252 (pop_it): Restore it.
7253
7254 * xdisp.c (it_props): Add entry for `raise'.
7255 (handle_raise_prop): New.
7256
7257 * dispextern.h (RAISE_PROP_IDX): New.
7258
7259 * xdisp.c (Qraise): New.
7260 (syms_of_xdisp): Define Qraised.
7261
7262 * xterm.c (x_scroll_bar_move): Clear to the left and right
7263 of toolkit scroll bars differently.
7264 (x_scroll_bar_move): Removed.
7265 (XTset_vertical_scroll_bar): Move code from x_scroll_bar_move here.
7266
7267 * dispextern.h: Make it compilable --with-x=no.
7268 * alloc.c: Ditto.
7269 * emacs.c: Ditto.
7270 * dispnew.c: Ditto.
7271 * keyboard.c: Ditto.
7272 * term.c: Ditto.
7273 * xdisp.c: Ditto.
7274 * xfaces.c: Ditto.
7275 * xfns.c: Ditto.
7276 * xmenu.c: Ditto.
7277
72781998-11-25 Gerd Moellmann <gerd@gnu.org>
7279
7280 * xterm.c (XTread_socket): Cancel help-echo when leaving frame.
7281
72821998-11-24 Gerd Moellmann <gerd@gnu.org>
7283
7284 * xterm.c (x_set_toolkit_scroll_bar_thumb): When dragging,
7285 update slider size, only.
7286 (xm_scroll_callback): Set dragging member of the scroll bar.
7287 (xt_action_hook): Reset last_scroll_bar_part.
7288 (XTredeem_scroll_bar): Reset bar->dragging to nil.
7289
26901792
DL
7290 * xfns.c (Fx_hide_busy_cursor): Don't try to hide busy cursor
7291 window on newly created frames that don't have one.
7292
72931998-11-23 Gerd Moellmann <gerd@gnu.org>
7294
7295 * xdisp.c (restore_overlay_strings): Removed.
7296 (restore_dpvec): Removed.
7297 (init_from_display_pos): Inline both functions above.
7298
7299 * xfns.c (IMAGE_NON_NEGATIVE_INTEGER_VALUE): New.
7300 (parse_image_spec): Handle it.
7301 (xbm_format): Use it.
7302 (xpm_format): Ditto.
7303 (pbm_format): Ditto.
7304 (jpeg_format): Ditto.
7305 (tiff_format): Ditto.
7306 (gif_format): Ditto.
7307 (gs_format): Ditto.
7308
7309 * xdisp.c (set_window_cursor): Removed.
7310 (redisplay_internal): Case cursor motion in cursor line of
7311 selected window; use set_cursor_from_row.
7312
73131998-11-22 Gerd Moellmann <gerd@gnu.org>
7314
7315 * widget.c (EmacsFrameSetCharSize): Take widget's border width
7316 into account.
7317
73181998-11-21 Gerd Moellmann <gerd@gnu.org>
7319
7320 * xterm.c (expose_frame): Redraw menu bar window.
7321
7322 * xdisp.c (display_menu_bar): Record hpos instead of x-position
7323 in menu item.
7324
7325 * dispnew.c (change_frame_size_1): Use FRAME_TOP_MARGIN instead
7326 of FRAME_TOOLBAR_LINES. Use `f' instead of `frame'.
7327
7328 * widget.c (set_frame_size): Use FRAME_SCROLL_BAR_COLS
7329 to determine vertical_scroll_bar_extra.
7330 (EmacsFrameSetCharSize): Ditto.
7331 * xfns.c (x_figure_window_size): Ditto.
7332
7333 * xterm.c (x_draw_row_bitmaps): Draw in `bitmap-area' face.
7334 (x_draw_bitmap): Ditto.
7335
7336 * dispextern.h (face_id): New id BITMAP_AREA_FACE_ID.
7337 * xfaces.c (realize_basic_faces): Realize it.
7338
73391998-11-20 Gerd Moellmann <gerd@gnu.org>
7340
7341 * xmenu.c (xmenu_show): Add workaround for remaining button grab
7342 under LessTif Use the widget of the frame as parent for the
7343 menu, again.
7344
73451998-11-19 Gerd Moellmann <gerd@gnu.org>
7346
7347 * xterm.c (XTread_socket): Inhibit busy cursor for EnterNotify.
7348 When EnterNotify, don't generate a mouse movement event if
7349 notification is from a busy-cursor child window.
7350
7351 * xterm.h (struct x_output): Add busy_window, remove cursor.
7352
7353 * xfns.c (Fx_show_busy_cursor): Formerly Fx_display_busy_cursor.
7354 Use a transparent window to display the busy-cursor.
7355 (Fx_hide_busy_cursor): Formerly Fx_undisplay_busy_cursor.
7356
73571998-11-17 Gerd Moellmann <gerd@gnu.org>
7358
7359 * xdisp.c (check_window_end): New, for debugging.
7360 (CHECK_WINDOW_END): New.
7361 (try_window_id): Use it.
7362
7363 * xterm.c (process_expose_from_menu): Return int.
7364
7365 * keyboard.c (kbd_buffer_get_event): Set flag to prevent recording
7366 TOOLBAR_EVENT events in last_nonmenu_event.
7367
73681998-11-16 Gerd Moellmann <gerd@gnu.org>
7369
7370 * xdisp.c (redisplay_window): If windows_or_buffers_changed,
7371 window end isn't reliable, so set window_end_valid to nil.
7372 (redisplay_internal): If overlay arrow has changed, set
7373 windows_or_buffers_changed to redisplay thoroughly.
7374
7375 * dispnew.c (adjust_glyph_matrix): Invalidate window end, if
7376 necessary.
7377
7378 * xfns.c (file_dialog_cb): New.
7379 (Fx_file_dialog): New.
7380 * fileio.c (Fread_file_name): Call it.
7381
7382 * xrdb.c (x_load_resources): Add default resoures for file
7383 selection dialog.
7384
73851998-11-14 Gerd Moellmann <gerd@gnu.org>
7386
7387 * xterm.c (note_mouse_highlight): Don't highlight when popup
7388 is active.
7389
26901792
DL
7390 * keyboard.c (timer_check): Inhibit busy cursor around calls to
7391 timer-event-handler. This busy cursor tends to be anoying if
7392 fontifying stealthily.
7393
7394 * dispnew.c (direct_output_for_insert): Give up if current row
7395 contains trailing whitespace.
7396
73971998-11-13 Gerd Moellmann <gerd@gnu.org>
7398
7399 * dispextern.h (prop_idx): Add FONTIFIED_PROP_IDX.
7400
7401 * xdisp.c (handle_fontified_prop): New.
7402 (Vfontification_functions): New.
7403 (Qfontification_functions): New.
7404 (it_props): Add handle_fontified_prop.
7405
74061998-11-12 Gerd Moellmann <gerd@gnu.org>
7407
7408 * xmenu.c (xmenu_show): Use the frame's edit_widget as parent.
7409 Otherwise, under LessTif, after the popup has gone, all button
7410 press events come in for the frame's widget, and release events
7411 come in for the edit_widget.
7412 * xterm.c (XTread_socket): Remove workaround for that problem.
7413 (x_set_toolkit_scroll_bar_thumb): Add workaround for LessTif
7414 XmScrollBarSetValues.
7415 (SET_SAVED_MENU_EVENT): Give it statement form.
7416
26901792
DL
7417 * xfaces.c (display_message): If waiting_for_input, don't display
7418 the message.
7419
7420 * window.c (scroll_command): If not acting on current_buffer,
7421 make redisplay consider all windows.
7422
7423 * xfns.c (Fx_hide_tip): Return t if tooltip was open.
7424
7425 * xdisp.c (handle_glyph_prop): Set it->object for images to
7426 the object having the glyph property.
7427
7428 * xterm.c (x_draw_row_bitmaps): Don't draw if row is completely
7429 invisible.
7430
74311998-11-11 Gerd Moellmann <gerd@gnu.org>
7432
7433 * xterm.h (struct x_display_info): Add gray pixmap. * xterm.c
7434 (x_term_init): Create the gray pixmap.
7435 (x_setup_relief_color): Use it.
7436 (x_get_glyph_string_clip_rect): Draw a toolbar window over the
7437 internal border at the top of a frame.
7438 (x_init_glyph_string): Likewise.
7439 (x_draw_glyph_string_relief): Correct right x by 1 pixel for
7440 full-width lines.
7441 (XTflash): Don't flash the toolbar window.
7442
7443 * xterm.c (XTread_socket): Workaround for LessTif popup menus
7444 in case of ButtonPress events.
7445
74461998-11-10 Gerd Moellmann <gerd@gnu.org>
7447
7448 * xrdb.c (x_load_resources): Add grey background colors as
7449 defaults for menus, scroll bars, and dialogs.
7450
7451 * insdel.c (prepare_to_modify_buffer): Move setting
7452 windows_or_buffers_changed from modify_region here.
7453
7454 * xfns.c (Fx_show_tip): Inhibit redisplay.
7455 (Fx_hide_tip): Ditto.
7456 (Fx_image_header): New.
7457
74581998-11-09 Gerd Moellmann <gerd@gnu.org>
7459
7460 * dispnew.c (clear_window_matrices): Set window_end_valid to nil
7461 when clearing current window matrices.
7462
74631998-11-08 Gerd Moellmann <gerd@gnu.org>
7464
7465 * xdisp.c (handle_glyph_prop): Don't set an iterator's buffer
7466 position from a string position. Use the right end position
7467 if the property spans a whole overlay string.
7468
74691998-11-07 Gerd Moellmann <gerd@gnu.org>
7470
7471 * xmenu.c (menubar_selection_callback): Remove workaround for
7472 Lesstif not calling XmNpopdownCallback because it doesn't
7473 handle the case where users don't select any menu item.
7474
26901792
DL
7475 * insdel.c (modify_region): Set windows_or_buffers_changed.
7476
7477 * buffer.c (set_buffer_internal): Don't set
7478 windows_or_buffers_changed.
7479
26901792
DL
7480 * xmenu.c (HAVE_BOXES): Define if USE_X_TOOLKIT.
7481
26901792
DL
7482 * xmenu.c (menubar_selection_callback): Add workaround for
7483 Lesstif not calling XmNpopdownCallback.
7484
7485 * xdisp.c (eval_mode_element): New.
7486 (eval_mode_handler): New.
7487 (display_mode_element): Use eval_mode_element.
7488
7489 * xdisp.c (display_mode_element): Allow `(:eval FORM)'.
7490 Remove code looking at text props of default value.
7491
7492 * xmenu.c (HAVE_BOXES): Define if using Lucid menus.
7493
26901792
DL
74941998-11-06 Gerd Moellmann <gerd@gnu.org>
7495
7496 * xmenu.c (single_submenu): Set button_type of menu to
7497 BUTTON_TYPE_NONE.
7498 (single_submenu): Likewise for panes and menu items.
7499 (set_frame_menubar): Set button_type of menu bar to none.
7500 (xmenu_show): Likewise.
7501 (single_submenu): Set widget values selected slot.
7502 (xmenu_show): Likewise.
7503
26901792
DL
7504 * xmenu.c (push_menu_item): Add parameters `type' and
7505 `selected'. Store it in menu_items.
7506 (MENU_ITEMS_ITEM_TYPE): New.
7507 (MENU_ITEMS_ITEM_SELECTED): New.
7508 (MENU_ITEMS_ITEM_LENGTH): Increase by two.
7509
7510 * xfns.c (clear_image_cache): Get the current time, before
7511 doing anything.
7512 (cache_image): Set prev pointer of next image.
7513 (clear_image_cache): Clear current matrices if any image was
7514 freed.
7515
7516 * xterm.c (XTread_socket): Set inhibit_busy_cursor.
7517
7518 * xfns.c (x_set_cursor): New.
7519 (Fx_display_busy_cursor): New.
7520 (Fx_undisplay_busy_cursor): New.
7521
7522 * xterm.h (struct x_output): Add busy_cursor.
7523
7524 * xfns.c (Vx_busy_pointer_shape): New.
7525 (x_set_mouse_color): Create busy cursor.
7526
7527 * process.c (wait_reading_process_input): Show and hide busy
7528 cursor.
7529
7530 * keyboard.c (command_loop_1): Display busy cursor.
7531
7532 * eval.c (Fsignal): Hide busy cursor.
7533
7534 * buffer.c (set_buffer_internal): Don't set
7535 windows_or_buffers_changed.
7536
7537 * xterm.c (redo_mouse_highlight): New.
7538
75391998-11-04 Gerd Moellmann <gerd@gnu.org>
7540
26901792
DL
7541 * xfns.c (x_create_x_image_and_pixmap): Add depth parameter.
7542 (x_build_heuritic_mask): New.
7543 (lookup_image): Call it.
7544
7545 * xterm.c (note_toolbar_highlight): Always set up help_echo.
7546 (previous_help_echo): New.
7547 (XTread_socket): Generate help event with nil message when
7548 leaving a region with help-echo.
7549 (note_mouse_highlight): Handle `help-echo' over text.
7550 (XTread_socket): Dispatch VisibilityNotify, CirculateNotify,
7551 CirculateRequest.
7552 (clear_mouse_face): Don't clear if tooltip is shown.
7553 (XTread_socket): Redo mouse-highlight after tooltip is gone.
7554 Avoid SET_FRAME_GARBAGED when tooltip is mapped.
7555
7556 * keyboard.c (Vshow_help_function): New.
7557 (read_char): Use it.
7558
75591998-11-03 Gerd Moellmann <gerd@gnu.org>
7560
7561 * xfns.c (x_create_tip_frame): New.
7562 (Fx_show_tip): New.
7563 (Fx_hide_tip): New.
7564
7565 * xterm.c (x_destroy_window): Handle case that we don't have
7566 a widget.
7567
7568 * dispextern.h (struct glyph_row): Rename no_marginal_areas_p
7569 to full_width_p. Add internal_border_p.
7570
75711998-11-02 Gerd Moellmann <gerd@gnu.org>
7572
7573 * xterm.c (note_mode_line_highlight): Check the charpos of
7574 the glyph under the mouse pointer before accessing text
7575 properties at that position.
7576
75771998-11-01 Gerd Moellmann <gerd@gnu.org>
7578
7579 * xterm.c (x_draw_image_relief): Handle toolbar_button_relief.
7580
7581 * xdisp.c (auto-raise-toolbar-buttons): New.
7582 (build_desired_toolbar_string): Handle the flag.
7583 (toolbar-button-margin): New.
7584 (toolbar-button-relief): New.
7585 (build_desired_toolbar_string): Use margin and relief.
7586
7587 * xterm.c (x_set_toolkit_scroll_bar_thumb): Remove workaround
7588 for FreeBSD.
7589 (note_mode_line_highlight): New.
7590 (note_mouse_highlight): Call it.
7591
75921998-10-31 Gerd Moellmann <gerd@gnu.org>
7593
7594 * s/freebsd.h (NARROWPROTO): New.
7595
7596 * xdisp.c (display_string): New parameter face_string.
7597 (display_mode_element): When displaying a symbol with a string
7598 value, use text properties from the symbol's default value, maybe.
7599
7600 * xrdb.c (x_load_resources): Add font defaults for menus and
7601 dialogs.
7602
76031998-10-30 Gerd Moellmann <gerd@gnu.org>
7604
7605 * xfns.c (Fx_create_frame): Try 12pt Courier font first.
7606
76071998-10-29 Gerd Moellmann <gerd@gnu.org>
7608
7609 * xterm.c (x_produce_glyphs): Fix bug causing glyphs to be
7610 produced for characters with codes < 32 under certain
7611 circumstances.
7612
7613 * xdisp.c (redisplay_window): Handle values of PT in front
7614 of invisible, intangible text.
7615 (try_window_id): Set overlay_arrow_seen to zero before
7616 displaying lines.
7617 (display_mode_element): Assign to glyphs written for a mode
7618 line spec `%x' as object the Lisp format string, as position
7619 the position of the `%' in that string.
7620 (display_string): If displaying a C string, optionally get
7621 the face to use from a Lisp string.
7622
7623 * xterm.c (expose_window_tree): Include mode line height.
7624
7625 * xfns.c (Fx_create_frame): Add toolbar height to frame height.
7626
76271998-10-27 Gerd Moellmann <gerd@gnu.org>
7628
7629 * xterm.c (note_mouse_highlight): Change mouse pointer shape
7630 over mode line.
7631
76321998-10-26 Gerd Moellmann <gerd@gnu.org>
7633
7634 * window.c (coordinates_in_window): Use CURRENT_MODE_LINE_HEIGHT.
7635
7636 * xdisp.c (redisplay_window): If mode line height has changed,
7637 arrange for a thorough immediate redisplay using the correct mode
7638 line height.
7639 (window_box_height): Use CURRENT_MODE_LINE_HEIGHT.
7640
7641 * dispextern.h (MATRIX_MODE_LINE_HEIGHT): New.
7642 (CURRENT_MODE_LINE_HEIGHT): New.
7643 (DESIRED_MODE_LINE_HEIGHT): New.
7644
7645 * keyboard.c (make_lispy_event): Add string and string position
7646 info to mouse-click events.
7647 (read_key_sequence): Handle `local-map' property of mode line
7648 strings.
7649
7650 * keyboard.h (POSN_STRING): New.
7651
76521998-10-25 Gerd Moellmann <gerd@gnu.org>
7653
7654 * dispnew.c (mode_line_string): Mew.
7655
7656 * xterm.c (xt_action_hook): New.
7657 (x_create_toolkit_scroll_bar): Add action hook.
7658 (xm_scroll_callback): Implement dragging.
7659
7660 * keyboard.c (Qend_scroll): New.
7661 (scroll_bar_parts): Add it.
7662
7663 * termhooks.h (scroll_bar_end_scroll): New.
7664
7665 * xterm.c (XTread_socket): Bug fix.
7666
76671998-10-24 Gerd Moellmann <gerd@gnu.org>
7668
7669 * xdisp.c (redisplay_window): Finish scroll bars after
7670 redisplaying toolbar.
7671
7672 * keyboard.c (scroll_bar_parts): Add Qtop and Qbottom.
7673 (syms_of_keyboard): Add Qbottom.
7674
7675 * termhooks.h (scroll_bar_to_top): New.
7676 (scroll_bar_to_bottom): New.
7677
7678 * xdisp.c (redisplay_window): Always resize toolbar window if
7679 auto_resize_toolbar_p is non-zero.
7680 (auto_resize_toolbar_p): Renamed from auto_resize_toolbar.
7681 (window_box): New.
7682 (window_box_height): New.
7683 (window_box_width): New.
7684 (window_box_left): New.
7685 (window_box_right): New.
7686 (window_box_edges): New.
7687
76881998-10-23 Gerd Moellmann <gerd@gnu.org>
7689
7690 * xterm.c (x_set_toolkit_scroll_bar_thumb): Kluge for call to
7691 XawScrollbarSetThumb in FreeBSD.
7692 (x_create_toolkit_scroll_bar): Set resource "beNiceToColormap"
7693 to true.
7694
7695 * window.c (get_phys_cursor_glyph): Return null if cursor vpos
7696 is out of range.
7697
7698 * xterm.c (x_create_toolkit_scroll_bar): Set scroll_bar_pixel.
7699 (x_term_init): Initialize it.
7700
7701 * xterm.h (struct x_display_info): Add scroll_bar_pixel.
7702
7703 * xterm.c (x_create_toolkit_scroll_bar): Set LessTif scroll bar's
7704 cursor.
7705
77061998-10-22 Gerd Moellmann <gerd@gnu.org>
7707
7708 * keyboard.c (make_lispy_event): Handle scroll_bar_click
7709 differently when using toolkit scroll bars.
7710
7711 * xterm.c (x_send_scroll_bar_event): New.
7712 (x_scroll_bar_to_input_event): New.
7713 (xaw3d_scroll_callback): New.
7714 (xaw3d_jump_callback): New.
7715 (xm_scroll_callback): New.
7716 (x_toolkit_scroll_p): New.
7717 (XTread_socket): Handle scroll bar client message.
7718 (x_term_init): Initialize Xatom_Scrollbar.
7719 (x_scroll_bar_create): Set cursor.
7720 (xm_scroll_callback):
7721 (x_create_toolkit_scroll_bar): New.
7722 (x_set_toolkit_scroll_bar_thumb): New.
7723 (x_scroll_bar_create): Call x_create_toolkit_scroll_bar.
7724 (XTset_vertical_scroll_bar): Call x_set_toolkit_scroll_bar_thumb.
7725
7726 * xterm.h (struct x_display_info): Add Xatom_Scrollbar.
7727
77281998-10-21 Gerd Moellmann <gerd@gnu.org>
7729
7730 * xterm.c (x_scroll_bar_remove): Handle toolkit scroll bars.
7731 (XTread_socket): Don't handle mouse button events for scroll bars
7732 if using toolkit scroll bars.
7733 (XTset_vertical_scroll_bar): Set thumb size and position for
7734 Athena scroll bar.
7735
7736 * xterm.h (scroll_bar): Add x_widget_low and x_widget_high.
7737
7738 * xterm.c (XTread_socket): Dispatch expose event to widget
7739 if using toolkit scroll bars.
7740 (x_scroll_bar_expose): Make no-op for toolkit scroll bars.
7741 (x_scroll_bar_create): Create and show a scroll bar widget
7742 if using toolkit scroll bars.
7743 (x_scroll_bar_move): Handle tookit scroll bars.
7744
7745 * Makefile.in (LIBW): Use Xaw3d if present.
7746
7747 * configure.in (USE_TOOLKIT_SCROLL_BARS): New.
7748 (HAVE_XAW3D): New.
7749
7750 * config.in (USE_TOOLKIT_SCROLL_BARS): New.
7751 (HAVE_XAW3D): New.
7752
7753 * xterm.c (XTset_vertical_scroll_bar): Correct position of
7754 right vertical scroll bar.
7755
77561998-10-20 Gerd Moellmann <gerd@gnu.org>
7757
7758 * xfns.c (xpm_load): Support reading XPM images from string
7759 buffers containing data in the same format as an XPM file.
7760 Support `:color-symbols'.
7761 (xpm_format): Add `:data'.
7762 (xpm_keyword_index): Add XPM_DATA.
7763 (syms_of_xfns): Add `:color-symbols'.
7764 (xpm_keyword_index): Add XPM_COLOR_SYMBOLS.
7765 (xpm_valid_color_symbols_p): New.
7766 (xpm_image_p): Call it.
7767
7768 * xdisp.c (build_desired_toolbar_string): Add `:algorithm'
7769 attribute to the image if item is not enabled.
7770
7771 * xfns.c (x_laplace): New.
7772 (x_laplace_read_row): New.
7773 (x_laplace_write_row): New.
7774 (lookup_image): Handle common image attributes here. New
7775 attribute `:algorithm'.
7776
7777 * xfaces.c (clear_face_cache): Call clear_image_cache.
7778
7779 * xterm.c (x_inverted_image_mask): Removed.
7780 (x_draw_image_foreground_1): New.
7781 (x_draw_image_glyph_string): Draw images with mask to a temporary
7782 pixmap to reduce flickering.
7783
7784 * xdisp.c (redisplay_toolbar): Handle auto-resize-toolbars.
7785 (display_toolbar_line): Remove parameter `margin'.
7786
77871998-10-19 Gerd Moellmann <gerd@gnu.org>
7788
7789 * xdisp.c (toolbar_lines_needed): New.
7790 (auto-resize-toolbars): New.
7791
7792 * xfns.c (cache_image): Correct call to xrealloc.
7793
7794 * dispnew.c (Fset_toolbar_height): Removed.
7795
7796 * xdisp.c (init_xdisp): Use FRAME_TOP_MARGIN instead of
7797 FRAME_MENU_BAR_LINES.
7798
7799 * window.c (Fdelete_other_windows): Use FRAME_TOP_MARGIN
7800 instead of FRAME_MENU_BAR_LINES.
7801 (check_frame_size): Ditto.
7802
7803 * dispnew.c (adjust_frame_glyphs_initially): Use FRAME_TOP_MARGIN
7804 instead of FRAME_MENU_BAR_LINES.
7805 (adjust_frame_glyphs_for_frame_redisplay): Ditto.
7806 (build_frame_matrix): Ditto.
7807 (change_frame_size_1): Ditto.
7808
7809 * frame.h (FRAME_TOOLBAR_LINES): New.
7810 (FRAME_TOP_MARGIN): New.
7811
7812 * window.c (struct save_window_data): Add frame_toolbar_lines.
7813 (Fset_window_configuration): Handle toolbar lines.
7814 (Fcurrent_window_configuration): Save toolbar lines.
7815
7816 * frame.c (syms_of_frame_1): Add Qtoolbar_lines.
7817
7818 * xfns.c (Fx_create_frame): Add default parameter for toolbar.
7819
7820 * frame.h (struct frame): Rename top_margin to toolbar_lines.
7821
7822 * xfns.c (x_frame_parms): Add `toolbar-lines'.
7823 (x_set_toolbar_lines): New.
7824
7825 * keyboard.c (cmd_error_internal): Bug fix.
7826
7827 * xterm.c: Remove double include of syssignal.h.
7828
78291998-10-18 Gerd Moellmann <gerd@gnu.org>
7830
7831 * xterm.c (x_toolbar_item): New.
7832 (x_handle_toolbar_click): Use it.
7833 (note_toolbar_highlight): Use it.
7834
7835 * keyboard.c (syms_of_keyboard): Staticpro toolbar_item_properties
7836 and toolbar_items_vectors.
7837
7838 * xterm.c (help_echo): New.
7839 (draw_glyphs_face): Add DRAW_IMAGE_RAISED and DRAW_IMAGE_SUNKEN.
7840 (x_set_glyph_string_gc): Handle them.
7841 (x_after_update_window_line): Don't do anything in pseudo-windows.
7842 (x_produce_image_glyph): Take image margin and face relief into
7843 account.
7844 (x_get_glyph_string_clip_rect): Handle pseudo-windows.
7845 (x_draw_glyph_string_background): Optimize case when face has
7846 relief.
7847 (x_setup_relief_color): Take frame instead of glyph string
7848 parameter.
7849 (x_draw_relief_rect): New.
7850 (x_draw_glyph_string_relief): Call it.
7851 (x_draw_image_glyph_string_foreground): Handle margin and image
7852 relief.
7853 (x_draw_image_glyph_string_background): Ditto.
7854 (expose_frame): Redraw toolbar window.
7855 (expose_window): Don't draw cursor for pseudo-windows.
7856 (x_y_to_hpos_vpos): Handle pseudo-windows.
7857 (frame_to_window_pixel_xy): New.
7858 (note_mouse_highlight): Call note_toolbar_highlight.
7859 (x_handle_toolbar_click): New.
7860 (note_toolbar_highlight): New.
7861 (show_mouse_face): Change int parameter `hl' to parameter of
7862 type enum draw_glyphs_face. Handle image highlighting.
7863 (XTread_socket): Return a HELP_EVENT input event if help_echo is
7864 non-nil. Use x_handle_toolbar_click.
7865
7866 * termhooks.h (event_kind): Add HELP_EVENT, TOOLBAR_EVENT.
7867
7868 * xfns.c (image_value_type): Add IMAGE_INTEGER_VALUE,
7869 IMAGE_BOOL_VALUE.
7870 (parse_image_spec): Handle them.
7871 (image_spec_value): Additional parameter found.
7872 (free_image): Remove image from the vector `images' of the
7873 image cache.
7874 (clear_image_cache): Additional parameter force_p.
7875 (Fclear_image_cache): New.
7876 (x_find_image_file): New.
7877 (xbm_load): Handle `:margin' and `:relief'. Use
7878 x_find_image_file.
7879 (xpm_load): Likewise.
7880 (pbm_load): Likewise.
7881 (jpeg_load): Likewise.
7882 (tiff_load): Likewise.
7883 (gif_load): Likewise.
7884
7885 * keyboard.c (Qhelp_echo): New symbol.
7886 (read_char): Handle `toolbar' and `help_echo' events.
7887 (kbd_buffer_get_event): Handle HELP_ECHO input event.
7888 (make_lispy_event): Handle TOOLBAR_EVENT.
7889 (toolbar_items): New.
7890 (process_toolbar_item): New.
7891 (PROP): New.
7892 (init_toolbar_items): New.
7893 (append_toolbar_item): New.
7894 (read_char_x_menu_prompt): Handle `toolbar' event.
7895 (read_key_sequence): Ditto.
7896
7897 * xfaces.c (Qtoolbar): New.
7898 (realize_basic_faces): Realize `toolbar' face.
7899 (face_at_string_position): Remove parameter modeline_p, add
7900 base_face_id.
7901
7902 * xfns.c (xbm_load_image_from_file): Don't use Xmu function
7903 to read data.
7904
79051998-10-17 Gerd Moellmann <gerd@gnu.org>
7906
7907 * xdisp.c (init_iterator): Replace parameter modeline_p with
7908 base_face_id.
7909 (next_element_from_string): Call get_next_display_element
7910 recursively after handling text properties.
7911 (prepare_menu_bars): Call update_toolbar.
7912 (update_toolbar): New.
7913 (build_desired_toolbar_string): New.
7914 (display_toolbar_line): New.
7915 (redisplay_toolbar): New.
7916 (toolbar_item_info): New.
7917 (redisplay_window): Call redisplay_toolbar.
7918 (Fdump_toolbar_row): New. Defined if compiled with GLYPH_DEBUG.
7919
7920 * dispnew.c (clear_current_matrices): Clear matrices of toolbar
7921 window.
7922 (clear_desired_matrices): Ditto.
7923 (adjust_frame_glyphs_for_window_redisplay): Make toolbar window.
7924 (free_glyphs): Free matrices of toolbar window.
7925 (update_frame): Update toolbar window.
7926 (change_frame_size_1): Take toolbar into account.
7927 (Fset_toolbar_height): New.
7928
7929 * dispextern.h (struct it): Remove member modeline_p, add
7930 base_face_id.
7931 (struct image): Add members relief and margin.
7932 (IMAGE_ASCENT): Include margin in height.
7933
79341998-10-14 Gerd Moellmann <gerd@gnu.org>
7935
7936 * xfns.c (Fclear_image_cache): New.
7937
7938 * xfaces.c (realize_basic_faces): Realize toolbar face.
7939 (face_at_string_position): Remove parameter modeline_p, add
7940 base_face_id.
7941
7942 * dispextern.h (enum face_id): Add TOOLBAR_FACE_ID.
7943
79441998-10-13 Gerd Moellmann <gerd@gnu.org>
7945
7946 * keyboard.c (syms_of_keyboard): Intern `:help'.
7947
79481998-10-12 Gerd Moellmann <gerd@gnu.org>
7949
7950 * xterm.c (note_toolbar_highlight): New.
7951 (note_mouse_highlight): Call it.
7952
7953 * window.c (window_from_coordinates): Additional parameter toolbar_p.
7954 (coordinates_in_window): Handle toolbar window.
7955
7956 * keyboard.c (toolbar_items): New.
7957 (process_toolbar_item): New.
7958 (parse_toolbar_item): New.
7959 (init_toolbar_items): New.
7960 (append_toolbar_item): New.
7961
7962 * dispextern.h (enum toolbar_item_idx): New.
7963 (enum toolbar_item_image): New.
7964
7965 * frame.h (struct frame): Add toolbar-related members.
7966
7967 * xfaces.c (face_at_string_position): Remove assertion that
7968 current_buffer == window's buffer. This is not the case when
7969 called for the toolbar window.
7970
7971 * frame.c (make_frame): Initialize toolbar members.
7972
7973 * alloc.c (mark_object): Mark toolbar data of frames.
7974
7975 * frame.h (struct frame): Add toolbar-related members
7976 toolbar_window, desired_toolbar_items, current_toolbar_items,
7977 desired_toolbar_string, current_toolbar_string,
7978 n_desired_toolbar_items, n_current_toolbar_items. Add
7979 window_height.
7980
7981 * xterm.c (x_after_update_window_line): Don't draw bitmap
7982 areas for pseudo-windows.
7983 (expose_frame): Handle toolbar window.
7984 (expose_window): Don't do cursor stuff for pseudo-windows.
7985
7986 * xdisp.c (display_menu_bar): Correct calls to init_iterator.
7987
79881998-10-11 Gerd Moellmann <gerd@gnu.org>
7989
7990 * frame.c (make_frame): Initialize toolbar_window.
7991
7992 * alloc.c (mark_object): Make the toolbar window.
7993
7994 * dispnew.c (update_frame): Update frame's toolbar_window.
7995 (clear_current_matrices): Likewise.
7996 (clear_desired_matrices): Likewise.
7997 (adjust_frame_glyphs_for_window_redisplay): Make toolbar_window.
7998 (free_glyphs): Free the toolbar window and its matrices.
7999
8000 * frame.h (struct frame): Add toolbar_window.
8001
8002 * xterm.c (x_draw_glyph_string_relief): Handle mouse-face
8003 with relief.
8004
80051998-10-10 Gerd Moellmann <gerd@gnu.org>
8006
8007 * dispnew.c (buffer_posn_from_coords): Don't screw up if
8008 window start is not in the range BEGV..ZV.
8009
80101998-10-09 Gerd Moellmann <gerd@gnu.org>
8011
8012 * xdisp.c (try_scrolling): Experimentally handle the case
8013 that scroll-preserve-screen-position is set to `always'.
8014
8015 * window.c (Vscroll_preserve_screen_position): Replacement for
8016 scroll_preserve_screen_position.
8017
80181998-10-08 Gerd Moellmann <gerd@gnu.org>
8019
8020 * dispnew.c: Don't initialize auto structs; the HP/UX compiler
8021 doesn't like it.
8022 * xdisp.c: Ditto.
8023
8024 * xdisp.c (make_cursor_line_fully_visible): Adjust this_line_y.
8025
80261998-10-06 Gerd Moellmann <gerd@gnu.org>
8027
8028 * minibuf.c (Fminibuffer_complete_word): Fix computation of
8029 i_byte when prompts are inserted into minibuffers.
8030
8031 * dispextern.h (FRAME_INTERNAL_BORDER_WIDTH_SAFE): New.
8032 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X): Use it.
8033 (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y): Ditto.
8034
80351998-10-04 Gerd Moellmann <gerd@gnu.org>
8036
8037 * xdisp.c (make_cursor_line_fully_visible): New.
8038 (try_scrolling): New.
8039 (redisplay_window): Move scrolling code to try_scrolling.
8040 (make_cursor_line_fully_visible): Handle case of window too small
8041 to show a single line.
8042 (redisplay_window): Case forced window start---use
8043 make_cursor_line_fully_visible.
8044 (redisplay_window): Case cursor movement via current matrix.
8045 If ending up on a partially visible line, make it fully visible
8046 instead of recentering.
8047 (try_scrolling): Additional parameter scroll_smoothly.
8048
8049 * xterm.c (x_draw_bitmap): Don't XClearArea under the pixmap.
8050
80511998-09-28 Gerd Moellmann <gerd@gnu.org>
8052
8053 * window.c (window_scroll_pixel_based): Bug fix: vpos used
8054 instead of y-position for scroll-preserved-screen-position.
8055
80561998-09-07 Gerd Moellmann <gerd@gnu.org>
8057
8058 * dispnew.c (update_frame_line): If current row is not enabled,
8059 write the whole line.
8060
80611998-09-06 Gerd Moellmann <gerd@gnu.org>
8062
8063 * lisp.h (HAVE_FACES): Removed.
8064
8065 * dispextern.h (HAVE_FACES): Removed.
8066
8067 * config.in (HAVE_FACES): Removed.
8068
8069 * dispnew.c (HAVE_FACES): Removed.
8070
8071 * xdisp.c (HAVE_FACES): Removed.
8072
8073 * xfaces.c (HAVE_FACES): Removed.
8074
80751998-09-05 Gerd Moellmann <gerd@gnu.org>
8076
8077 * xdisp.c (init_iterator): If face_change_count is non-zero,
8078 free realized faces.
8079
8080 * xfaces.c (free_all_realized_faces): Make it externally visible.
8081 (Finternal_set_lisp_face_attribute): Increment
8082 windows_or_buffers_changed.
8083
8084 * dispnew.c (direct_output_for_insert): Give up if
8085 face_change_count is non-zero.
8086 (direct_output_forward_char): Ditto.
8087
8088 * xfaces.c (face_change_count): New.
8089
80901998-09-04 Gerd Moellmann <gerd@gnu.org>
8091
8092 * xterm.c (x_draw_bar_cursor): Don't draw if cursor hpos is out
8093 of range.
8094
80951998-09-03 Gerd Moellmann <gerd@gnu.org>
8096
8097 * term.c (Ftty_display_color_p): New.
8098
80991998-09-02 Gerd Moellmann <gerd@gnu.org>
8100
8101 * xfaces.c (Ftty_defined_colors): New.
8102
8103 * xterm.c (x_produce_glyphs): Fix computation of
8104 contains_overlapping_glyphs_p for ASCII.
8105
8106 * dispnew.c (Fshow_cursor): Don't change cursor state while
8107 redisplaying.
8108 (direct_output_for_insert): If a glyph with lbearing or rbearing
8109 is among the new glyphs, set row flag contains_overlapping_glyph_p.
8110
81111998-09-01 Gerd Moellmann <gerd@gnu.org>
8112
8113 * term.c (OUTPUT_IF): Make replacement text have statement form.
8114 (OUTPUT1_IF): Ditto.
8115 (TS_italic_mode, TS_end_italic_mode): Removed.
8116 (TS_bold_mode): Removed.
8117 (TS_underscore_mode, TS_end_underscore_mode): Removed.
8118 (TS_enter_bold_mode, TS_enter_dim_mode, TS_enter_blink_mode): New.
8119 (TS_enter_reverse_mode): New.
8120 (TS_enter_underline_mode, TS_exit_underline_mode): New.
8121 (TN_magic_cookie_glitch_ul): New.
8122 (TS_enter_alt_charset_mode, TS_exit_alt_charset_mode): New.
8123 (TS_exit_attribute_mode): New.
8124 (TN_max_colors, TN_max_pairs, TS_orig_pairs): New.
8125 (TS_set_foreground, TS_set_background): New.
8126 (reset_terminal_modes): Switch colors back to default.
8127 (write_glyphs): Turn face on before writing text, turn it off
8128 afterwards.
8129 (insert_glyphs): Ditto.
8130 (term_init): Initialize new terminal capability variables.
8131 (turn_on_face): Turn a face on.
8132 (turn_off_face): Turn a face off.
8133
8134 * lisp.h (MAKE_GLYPH): Remove test for frame type.
8135 (GLYPH_CHAR): Ditto.
8136 (GLYPH_FACE): Ditto.
8137
8138 * xfaces.c (Vface_tty_color_alist): New.
8139 (face-register-tty-color): New.
8140 (face-clear-tty-colors): New.
8141
8142 * dispextern.h (FACE_TTY_DEFAULT_COLOR): New.
8143 (struct it): Remove member faces_p since we now always have faces.
8144
81451998-08-31 Gerd Moellmann <gerd@gnu.org>
8146
8147 * dispextern.h (struct face): Add tty appearance flags.
8148
8149 * xdisp.c (init_iterator): Always handle faces.
8150 (extend_face_to_end_of_line): Handle tty frames.
8151
8152 * dispnew.c (clear_glyph_matrix): Allow a null matrix to be
8153 passed in.
8154
81551998-08-30 Gerd Moellmann <gerd@gnu.org>
8156
8157 * xfaces.c (realize_default_face): Use empty strings to indicate
8158 that the face should use the default foreground/background
8159 color of the terminal. Fill font-related attributes with
8160 appropriate values for tty frames.
8161
8162 * emacs.c (main): Call syms_of_xfaces before init_window_once.
8163
8164 * xfaces.c (realize_default_face): If face `default' is not
8165 yet known, create it.
8166
8167 * frame.c (make_terminal_frame): Call init_frame_faces
8168 unconditionally.
8169
8170 * xfaces.c (init_frame_faces): Make it work for tty frames.
8171 (free_frame_faces): Ditto.
8172 (clear_face_cache): Ditto.
8173 (recompute_basic_faces): Ditto.
8174 (Fframe_face_alist): Ditto.
8175 (free_realized_face): Ditto.
8176 (prepare_face_for_display): Ditto.
8177 (clear_face_gcs): Ditto.
8178 (lookup_face): Ditto.
8179 (smaller_face): Ditto.
8180 (realize_default_face): Ditto.
8181 (realize_face): Ditto.
8182 (realize_face): Dispatch to functions depending on the frame type.
8183 (realize_x_face): X way of realizing faces.
8184 (realize_tty_face): TTY way of realizing faces.
8185
81861998-08-29 Gerd Moellmann <gerd@gnu.org>
8187
8188 * xfaces.c (realize_face): Remove parameter unibyte_registry,
8189 compute it instead.
8190 (lookup_face): Remove local variable unibyte_registry.
8191
81921998-08-22 Gerd Moellmann <gerd@gnu.org>
8193
8194 * xterm.c (x_draw_glyph_string_relief): Draw top and bottom lines
8195 1 pixel longer.
8196
8197 * xdisp.c (face_before_or_after_it_pos): Fix computation
8198 of face in buffer.
8199
8200 * editfns.c (make_buffer_string_both): If prompt in buffer,
8201 prevent start > end.
8202
8203 * indent.c (Fvertical_motion): Set current_buffer to window's
8204 buffer if it isn't already.
8205
82061998-08-21 Gerd Moellmann <gerd@gnu.org>
8207
8208 * dispextern.h (GLYPH_DEBUG): Use default 0.
8209
8210 * xdisp.c (it_props): New member `smaller'.
8211 (init_iterator): Initialize it.
8212 (Qsmaller): New.
8213 (push_it): Save value of `smaller' value on the stack.
8214 (pop_it): Restore `smaller' from the stack.
8215 (handle_smaller_prop): New.
8216 (handle_face_prop): Use `smaller' text property to select a
8217 suitable face.
8218
8219 * dispextern.h (SMALLER_PROP_IDX): New.
8220 (struct it): Add member `smaller'.
8221
8222 * xfaces.c (smaller_face): New.
8223
8224 * frame.h (FRAME_WINDOW_WIDTH_ARG): Add bitmap area widths.
8225
8226 * dispnew.c (allocate_matrices_for_window_redisplay): Compute
8227 total pixel width of window differently.
8228
8229 * xdisp.c (init_iterator): Compute width of mode line differently.
8230
8231 * dispextern.h (WINDOW_DISPLAY_PIXEL_WIDTH): Subtract width
8232 of bitmap areas.
8233
8234 * window.c (Fsplit_window): Include width of bitmap areas in
8235 window width.
8236 (window_internal_width): Subtract width of bitmap areas from
8237 total width.
8238
82391998-08-18 Gerd Moellmann <gerd@gnu.org>
8240
8241 * xdisp.c: Functions reordered for better readability.
8242
8243 * dispnew.c (update_text_area): Handle glyphs with arbitrary
8244 lbearing.
8245 (update_window_tree): Parameter no_scrolling_p removed.
8246 (update_single_window): Ditto.
8247
8248 * xterm.c (x_get_char_font_and_encoding): Renamed to
8249 x_get_char_face_and_encoding.
8250
8251 * dispnew.c (update_text_area): Don't call get_glyph_overhangs
8252 if end of current row reached.
8253
8254 * xterm.c (x_get_glyph_face_and_encoding): New.
8255 (x_get_glyph_overhangs): Call it.
8256
8257 * xdisp.c (Qshow_trailing_whitespace): New.
8258 (Qtrailing_whitespace): New.
8259 (enum prop_handled): New.
8260 (struct props, it_props): New.
8261 (next_overlay_change): New. Works like Fnext_overlay_change
8262 but doesn't use xmalloc.
8263 (handle_stop): Restructured.
8264 (face_before_or_after_it_pos): Case iteration over a string: fix
8265 handling of face before current position.
8266
82671998-08-16 Gerd Moellmann <gerd@gnu.org>
8268
8269 * dispnew.c (adjust_glyph_matrix): Don't optimize matrix
8270 reallocation matrix if fonts_changed_p.
8271 (update_text_area): Handle glyphs with lbearing.
8272
82731998-08-14 Gerd Moellmann <gerd@gnu.org>
8274
8275 * xdisp.c (struct props): New.
8276 (it_props): New.
8277 (compute_prop_info): New.
8278 (handle_stop): New.
8279
8280 * textprop.c (validate_interval_range): Make it externally
8281 visible.
8282
8283 * dispnew.c (direct_output_for_insert): Remove calls
8284 to compute_stop_pos.
8285
8286 * dispextern.h (struct it): Remove check_charpos,
8287 next_overlay_pos. Add what_changes.
8288
82891998-08-10 Gerd Moellmann <gerd@gnu.org>
8290
8291 * xterm.c (note_mouse_highlight): Set BEGV_BYTE, ZV_BYTE.
8292
8293 * xfaces.c (Vx_unibyte_registry_and_encoding): Removed. Use
8294 face_default_registry instead.
8295
8296 * syntax.c (scan_sexps_forward): Set up syntax table before
8297 jumping to initial state label.
8298
82991998-08-09 Gerd Moellmann <gerd@gnu.org>
8300
8301 * dispnew.c (check_matrix_invariants): Handle case of row end pos
8302 >= ZV specially.
8303
83041998-08-08 Gerd Moellmann <gerd@gnu.org>
8305
8306 * xdisp.c (redisplay_window): Case cursor movement---if cursor
8307 ends up in partially visible row, try to scroll. Case forced
8308 window start---handle windows not tall enough to show a single
8309 line.
8310
8311 * window.h (struct window): Member dy renamed vscroll.
8312
8313 * xterm.c (x_list_fonts): Re-activate suppression of scalable
8314 fonts.
8315 (x_draw_stretch_glyph_string): Set clipping if using GC that
8316 hasn't set it yet.
8317
8318 * xdisp.c (redisplay_window): Case forced window start -
8319 don't let cursor end on partially visible row. Use desired
8320 matrix to find a suitable PT if it doesn't appear.
8321 (decode_mode_spec): Merged with 20.2.97.
8322 (try_window_reusing_current_matrix): Give up if old or
8323 new display is vscrolled.
8324 (redisplay_window): Reset vscrolling if forced window start,
8325 or if recentering.
8326
83271998-08-06 Gerd Moellmann <gerd@gnu.org>
8328
8329 * xfaces.c (realize_default_face): Use the fontset name instead of
8330 the alias for the family attribute of the default face because we
8331 can't easily determine a good alias from fontset-alias-alist.
8332 (face_fontset): Use Fquery_fontset to find the fontset.
8333 (font_list): Additional pattern parameter.
8334 (try_font_list): Ditto.
8335 (set_lface_from_font_name): Set face family from font foundry
8336 and family.
8337 (font_list): If family contains a hyphen, build pattern differently.
8338
83391998-08-05 Gerd Moellmann <gerd@gnu.org>
8340
8341 * xfaces.c (free_realized_faces): Increment windows_or_buffers_-
8342 changed instead of setting the frame garbaged.
8343
8344 * xfaces.c (lface_equal_p): Don't assume equal Lisp types for
8345 all attribute values. This is wrong if values are unspecified,
8346 i.e. nil.
8347
8348 * xdisp.c (try_window_id): Give up if window start changed.
8349
8350 * xfaces.c (make_realized_face): Store registry as Lisp object.
8351 (load_face_font_or_fontset): Compute registry of a face
8352 differently. Make it `eq' to Vx_unibyte_registry_and_encoding if
8353 possible.
8354
8355 * dispextern.h (FACE_SUITABLE_FOR_CHARSET_P): Compare registries
8356 differently.
8357
8358 * alloc.c (mark_face_cache): Mark the registry member of faces.
8359
8360 * dispextern.h (struct face): Make registry a Lisp string.
8361
83621998-08-04 Gerd Moellmann <gerd@gnu.org>
8363
8364 * xterm.c (x_get_char_font_and_encoding): Additional parameter
8365 multibyte_p. Handle unibyte text.
8366 (x_append_glyph): Set the multibyte_p flag of glyphs.
8367 (x_produce_image_glyph): Ditto.
8368 (x_append_stretch_glyph): Ditto.
8369 (x_produce_glyphs): Handle unibyte text like ASCII.
8370
8371 * xdisp.c (push_it): Save the multibyte flag of an iterator on the
8372 stack.
8373 (pop_it): Restore it.
8374 (face_before_or_after_it_pos): Handle the case that the string or
8375 buffer is unibyte.
8376 (get_overlay_strings): Set the multibyte flag of the iterator if
8377 the new overlay string is multibyte.
8378 (get_glyph_property): Likewise.
8379 (get_next_display_element): Don't check for charset changes in
8380 unibyte text.
8381 (append_space): Compute face differently for unibyte text.
8382 (extend_face_to_end_of_line): Don't return quickly if face has
8383 stipple.
8384
8385 * xfaces.c (load_face_font_or_fontset): Store registry and
8386 encoding of the font in the registry member of the face.
8387 (make_realized_face): Additional parameter `registry'.
8388 (free_realized_face): Free the registry of a realized face.
8389 (face_suitable_for_charset_p): Function form of the macro
8390 with the same name in uppercase.
8391 (lookup_face): Use Vx_unibyte_registry_and_encoding if charset < 0.
8392 (choose_face_font): New parameter unibyte_registry.
8393 (choose_face_fontset_font): Ditto.
8394 (realize_default_face): Remember the registry and encoding of
8395 the specified frame font in Vx_unibyte_registry_and_encoding.
8396 (face_at_buffer_position): Handle unibyte.
8397 (face_at_string_position): Likewise.
8398 (realize_face): New parameter unibyte_registry.
8399 (compute_char_face): Handle the unibyte case.
8400
8401 * dispextern.h (struct glyph): Add bit multibyte_p.
8402 (struct face): New member registry holding the registry and
8403 encoding of the X font of the face.
8404 (FACE_UNIBYTE_P): Value is non-zero if face is for unibye text.
8405 (enum face_id): Add BASIC_FACE_ID_SENTINEL.
8406 (FACE_SUITABLE_FOR_CHARSET_P): Handle charset < 0 meansing unibyte
8407 text.
8408 (struct iterator_stack_entry): Add multibyte_p.
8409
8410 * xdisp.c (string_pos): Use string_char_to_byte.
8411 (char_charset): Removed.
8412
84131998-08-03 Gerd Moellmann <gerd@gnu.org>
8414
8415 * xterm.c (x_draw_image_glyph_string_foreground): Draw a
8416 rectangle for a block cursor over an image without a mask.
8417 (x_stretch_block_cursor): Added. Non-zero means don't draw
8418 a block cursor over a stretch as wide as that stretch.
8419 (x_draw_stretch_glyph_string): Use it.
8420 (x_draw_hollow_cursor): Ditto.
8421
8422 * minibuf.c (read_minibuf): Use minibuf_prompt instead of prompt.
8423 (read_minibuf): Add front-sticky text property for prompt.
8424
8425 * xdisp.c (char_charset): Return charset of a character,
8426 depending on whether or not multi-byte characters are enabled.
8427
8428 * xfaces.c (Fset_face_charset_registry): Removed.
8429 (x_charset_registry): Determine registry from charset plist.
8430
84311998-08-02 Gerd Moellmann <gerd@gnu.org>
8432
8433 * xdisp.c (get_next_display_element): Don't check for charset
8434 changes if multi-byte characters are not enabled.
8435
8436 * xdisp.c (echo_area_display): Use the flush function from the
8437 redisplay interface.
8438 * keyboard.c (detect_input_pending_run_timers): Likewise.
8439
8440 * dispextern.h (produce_*glyphs_hook): Removed.
8441 * term.c (produce_*glyphs): Ditto.
8442 (cursor_to): Remove pixel position parameters.
8443
8444 * dispnew.c: Remove hooks for window-based redisplay, introduce
8445 a redisplay interface structure.
8446
8447 * xterm.c (x_per_char_metric): Return default char metrics if per
8448 char metric exists but contains a zero width. Adobe Courier seems
8449 to contain such characters.
8450
8451 * xdisp.c (compute_line_metrics): Compute the width of rows
8452 without stopping at glyphs with zero width.
8453
84541998-08-01 Gerd Moellmann <gerd@gnu.org>
8455
8456 * xdisp.c (display_mode_line): If nothing was displayed at all,
8457 display a space.
8458 (hscroll_window_tree): Don't subtract 1 from target point if equal
8459 to ZV and window is not the selected window.
8460
8461 * dispnew.c (check_matrix_invariants): Remove check for window
8462 start at BEGV or after newline. This happens in rare cases
8463 intentionally.
8464
84651998-07-31 Gerd Moellmann <gerd@gnu.org>
8466
8467 * xfaces.c (x_charset_registry): Use STRING_BYTES.
8468 (syms_of_xfaces): Add Vface_default_registry.
8469 (x_charset_registry): Use it.
8470
8471 * xdisp.c (run_window_scroll_functions): Run window scroll functions.
8472 (redisplay_window): Use it.
8473
8474 * dispnew.c (update_text_area): Handle lbearing of deleted text
8475 by backing up one character.
8476
84771998-07-30 Gerd Moellmann <gerd@gnu.org>
8478
8479 * dispnew.c (adjust_glyph_matrix): Use a different check to
8480 decide to do nothing.
8481
8482 * xfaces.c (face_at_string_position): Additional parameter
8483 mode_line_p. If non-zero, merge with the mode line face
8484 instead of the default face.
8485 * dispextern.h (struct it): Add mode_line_p.
8486 * xdisp.c (init_iterator): Set it.
8487 (compute_face_in_string): Use it.
8488 (face_before_or_after_it_pos): Handle strings.
8489 (get_next_display_element): Don't look for relief end in C strings.
8490 (next_element_from_string): Deliver string position instead of
8491 buffer position.
8492
8493 * xterm.c (x_flush): Flush X output buffer.
8494 (XTflash): Use it.
8495
8496 * xfaces.c (lface_from_face_name): Renamed from lface_from_symbol.
8497 Allow strings as face names.
8498
8499 * xfns.c (forall_images_in_image_cache): Check that frame is
8500 alive.
8501
8502 * widget.c (EmacsFrameDestroy): Remove call to free_frame_faces;
8503 it's also called from x_destroy_window. Since this function is
8504 called from X, freeing stuff allocated with xmalloc is dangerous
8505 here, anyway.
8506
8507 * xfaces.c (free_realized_faces): Don't clear current matrices
8508 of a frame being destroyed.
8509
8510 * frame.c (make_frame): Call set_window_buffer instead of
8511 Fset_window_buffer.
8512
8513 * window.c (set_window_buffer): Extracted from Fset_window_buffer,
8514 with an additional argument specifying whether or not hooks may
8515 be called.
8516 (Fset_window_buffer): Call it.
8517
8518 * dispnew.c (clear_desired_matrices): Check that frame has
8519 a valid root window before clearing matrices in the window tree.
8520 (clear_current_matrices): Ditto.
8521 (clear_window_matrices): If GLYPH_DEBUG, check that hchild and
8522 vchild are valid windows if not nil.
8523
8524 * xfaces.c (merge_face_vector_with_property): Allow :reverse-video
8525 for :inverse-video.
8526 (Finternal_set_lisp_face_attribute): Ditto.
8527 (Finternal_set_lisp_face_attribute_from_resource): Ditto.
8528 (Finternal_get_lisp_face_attribute): Ditto.
8529 (Finternal_lisp_face_attribute_values): Ditto.
8530 (syms_of_xfaces): Define the symbol `:reverse-video'.
8531
8532 * xdisp.c (get_glyph_property): Renamed from
8533 fill_iterator_from_glyph_property.
8534 (next_element_from_buffer): Handle case that no `glyph' property
8535 was found correctly.
8536 (display_line): Extend face to end of line only if we have faces.
8537
85381998-07-29 Gerd Moellmann <gerd@gnu.org>
8539
8540 * dispnew.c (Fshow_cursor): Renamed from blink_cursor. Take
8541 additional window argument.
8542
8543 * xdisp.c (reseat_at_previous_visible_line_start): Renamed from
8544 set_iterator_to_previous_visible_line_start.
8545 (reseat_at_next_visible_line_start): Likewise.
8546 (compute_stop_pos): Renamed from set_iterator_stop_pos.
8547 (face_before_or_after_it_pos): Renamed from get_face_at_it_pos.
8548 (compute_face_in_buffer): Renamed from
8549 compute_face_at_iterator_position.
8550 (compute_face_in_string): Renamed from
8551 compute_face_at_iterator_string_position.
8552 (get_space_width): Renamed from get_iterator_space_width.
8553 (next_overlay_string): Renamed from
8554 set_iterator_to_next_overlay_string.
8555 (get_overlay_strings): Renamed from
8556 get_overlay_strings_at_iterator_position.
8557 (restore_overlay_strings): Renamed from
8558 setup_overlay_strings_from_glyph_pos.
8559 (restore_dpvec): Renamed from setup_iterator_dpvec_from_glyph_pos.
8560 (init_from_display_pos): Renamed from init_iterator_from_glyph_pos.
8561 (init_to_row_start): Renamed from init_iterator_to_row_start.
8562 (init_to_row_end): Formerly init_iterator_to_next_row_start.
8563
8564 * xterm.c: Merge with 20.2.97.
8565 (x_produce_glyphs): Use x_append_stretch_glyph for tabs.
8566
8567 * dispextern.h (struct glyph): Replace text_pos position with
8568 simple charpos.
8569
8570 * xdisp.c (this_line_start_pos): Use struct text_pos.
8571 (this_line_end_pos): Renamed from .*endpos; use struct text_pos.
8572 (enum move_it_result): Renamed from move_iterator_result.
8573 (string_pos_nchars_ahead): Compute text_pos in a string from a
8574 known text_pos plus a character delta.
8575 (string_pos): Compute text_pos in string from charpos.
8576 (c_string_pos): Likewise for a C string.
8577 (number_of_chars): Return number of characters in a possibly
8578 multi-byte C string.
8579 (check_it): Renamed from check_iterator. Check that charpos and
8580 bytepos are in sync.
8581 (push_it): Renamed from save_iterator_settings.
8582 (pop_it): Renamed from restore_iterator_settings.
8583 (move_it_.*): Renamed from move_iterator_.*.
8584 (charset_at_position): Take charpos/bytepos into account.
8585 (back_to_previous_line_start): Set iterator to previous line start.
8586 (forward_to_next_line_start): Set iterator to next line start.
8587 (back_to_previous_visible_line_start): Renamed from
8588 move_iterator_previous_visible_line_start.
8589 (set_iterator_to_next_visible_line_start): Handle charpos/bytepos.
8590 (get_face_at_it_pos): Renamed from get_face_from_cursor_pos.
8591 Handle charpos/bytepos.
8592 (compute_face_at_iterator_position): Handle charpos/bytepos.
8593 (compute_face_at_iterator_string_position): Likewise.
8594 (get_iterator_space_width): Likewise.
8595 (load_overlay_strings): Likewise.
8596 (get_overlay_strings_at_iterator_position): Likewise.
8597 (reseat_iterator): Take a text_pos position argument.
8598 (setup_iterator_overlay_strings_from_glyph_pos): Handle charpos/
8599 bytepos.
8600 (init_iterator): Take additional bytepos parameter.
8601 (reseat_iterator_to_string): Handle charpos/bytepos.
8602 (start_display): Take a text_pos parameter. Handle charpos/bytepos.
8603 (next_element_from_string): Handle charpos/bytepos.
8604 (next_element_from_c_string): Likewise.
8605 (fill_iterator_from_glyph_property): Likewise.
8606 (next_element_from_buffer): Likewise.
8607 (set_iterator_to_next): Increment charpos and bytepos of an iterator.
8608 (move_iterator_in_display_line_to): Handle charpos/bytepos.
8609 (move_it_to): Likewise.
8610 (move_it_vertically_backward): Likewise.
8611 (move_it_vertically): Likewise.
8612 (move_it_by_lines): Likewise.
8613 (hscroll_window_tree): Likewise.
8614 (redisplay_internal): Likewise.
8615 (set_cursor_from_row): Likewise.
8616 (redisplay_window): Likewise.
8617 (try_window): Take a text_pos parameter. Handle charpos/bytepos.
8618 (try_window_reusing_current_matrix): Handle charpos/bytepos.
8619 (get_first_unchanged_at_end_row): Compute and return delta_bytes.
8620 (try_window_id): Handle charpos/bytepos.
8621 (Ftrace_redisplay_toggle): Return Qnil.
8622 (get_overlay_arrow_glyph_row): Handle charpos/bytepos.
8623 (insert_left_trunc_glyphs): Likewise.
8624
8625 * dispnew.c: `Merge' with 20.2.97 (it's really too different to
8626 do a real merge).
8627 (increment_glyph_matrix_buffer_positions): Add parameter delta_bytes.
8628 (increment_glyph_row_buffer_positions): Ditto.
8629 (copy_glyph_row_contents): Ditto.
8630 (check_matrix_invariants): Add additional checks for charpos/
8631 bytepos consistency.
8632 (direct_output_for_insert): Changed for charpos/bytepos.
8633 (buffer_posn_from_coords): Likewise. Put code dealing with
8634 `direction-reversed' in #if 0.
8635
8636 * xterm.h: Merge with 20.2.97.
8637
8638 * frame.h: Merge with 20.2.97.
8639
8640 * window.h: Merge with 20.2.97. Add window_end_bytepos.
8641
8642 * dispextern.h (MATRIX_ROW_START_CHARPOS): Get charpos of a row
8643 start.
8644 (MATRIX_ROW_START_BYTEPOS): Likewise for the byte position.
8645 (MATRIX_ROW_END_CHARPOS): Likewise for the row end.
8646 (MATRIX_ROW_END_BYTEPOS): Likewise for the row end byte position.
8647 (struct it): Various members renamed from .*pos to .*charpos.
8648 (IT_CHARPOS): Access current buffer character position of an
8649 iterator.
8650 (IT_BYTEPOS): Access current buffer byte position of an iterator.
8651 (IT_STRING_CHARPOS): Access current string character position of
8652 an iterator.
8653 (IT_STRING_BYTEPOS): Access current string byte position of
8654 an iterator.
8655 (globally): Add function prototypes from 20.2.97.
8656
8657 * everywhere: Use P_ instead of PROTO for function prototypes
8658 because everyone else seems to use P_.
8659
8660 * dispextern.h (struct text_pos): Structure describing a charpos/
8661 bytepos position in text.
8662 (BYTEPOS): Access the byte position part of a text_pos.
8663 (CHARPOS): Likewise for the character position.
8664 (SET_TEXT_POS): Set a text_pos from a character and byte position.
8665 (INC_TEXT_POS, DEC_TEXT_POS): Increment/decrement a text position.
8666 (SET_TEXT_POS_FROM_MARKER): Set a text_pos from a marker.
8667 (SET_MARKER_FROM_TEXT_POS): Set a marker from a text_pos.
8668 (TEXT_POS_EQUAL_P): Compare two text_pos structures for equality.
8669 (struct display_pos): Renamed from glyph_pos. Use struct text_pos
8670 for buffer and string positions.
8671 (struct glyph): Use text_pos.
8672 (struct it): Renamed from display_iterator. Use text_pos.
8673
86741998-07-23 Gerd Moellmann <gerd@gnu.org>
8675
8676 * xfns.c (x_kill_gs_process): Get image colors from XImage of a
8677 pixmap.
8678
86791998-07-21 Gerd Moellmann <gerd@gnu.org>
8680
8681 * dispextern.h (struct glyph_row): New flag indicate_zv_line_p.
8682 * xterm.c (x_draw_row_bitmaps): Use it.
8683 * dispnew.c (row_equal_p): Ditto.
8684 (update_window_line): Ditto.
8685
8686 * xfns.c (prepare_image_for_display): Don't set loading_failed_p
8687 flag of images.
8688
8689 * dispextern.h (struct image): Removed member loading_failed_p.
8690 It's probably better to have the chance to try to load an image
8691 again.
8692
86931998-07-20 Gerd Moellmann <gerd@gnu.org>
8694
8695 * xterm.c (x_draw_bitmap): Draw bitmap for empty lines ending
8696 at ZV if `indicate-zv-lines' is non-nil.
8697 (x_draw_row_bitmaps): Compute bitmap for `indicate-zv-lines'.
8698
8699 * dispnew.c (row_equal_p): Compare displays_text_p and
8700 ends_at_zv_p flags of rows.
8701 (update_window_line): Ditto.
8702
8703 * buffer.h (struct buffer): New member indicate_zv_lines.
8704
8705 * buffer.c (init_buffer_once): Add default for `indicate-zv-lines'.
8706 (init_buffer_once): New variable `default-indicate-zv-lines'.
8707 (syms_of_buffer): New buffer-local varianle `indicate-zv-lines'.
8708
8709 * xdisp.c (redisplay_window): Don't try moving the cursor
8710 if current glyph row w->last_cursor.vpos isn't enabled.
8711
8712 * xterm.c (bitmap_type): Add ZV_LINE_BITMAP.
8713
8714 * window.c (Fset_window_vscroll): Allow only negative scroll
8715 values. Others don't seem to make sense, and this way it's easy
8716 to restore a vscroll of zero.
8717
8718 * xterm.c (x_inverted_image_mask): Check that pixmap could be
8719 allocated.
8720 (x_draw_image_glyph_string_background): Don't clip if pixmap
8721 could not be created.
8722
8723 * xfns.c (xbm_load_image_from_file): Check that pixmap could
8724 be created.
8725 (xbm_load): Ditto.
8726 (gs_load): Ditto.
8727
8728 * xterm.c (x_get_glyph_overhangs): Take image and stretch
8729 glyphs into account.
8730
8731 * xfaces.c (realize_default_face): Don't set font family of
8732 the default face from the fontset alias name for `fontset-startup'.
8733
8734 * xfns.c (gs_load): Pass frame's pixel foreground and background
8735 color to the Lisp loader.
8736
87371998-07-19 Gerd Moellmann <gerd@gnu.org>
8738
8739 * xfns.c (tiff_image_p, tiff_load): Support TIFF images via
8740 libtiff34.
8741
8742 * configure.in (--with-tiff, HAVE_TIFF): Added.
8743
8744 * config.in (HAVE_TIFF): Added.
8745
8746 * Makefile.in (LIBTIFF): Added.
8747
8748 * xfns.c (jpeg_image_p, jpeg_load): Support JPEG images.
8749
8750 * Makefile.in (LIBJPEG): Added.
8751
8752 * xfns.c (resource_types): Enumerators renamed to RES_TYPE_NUMBER,
8753 RES_TYPE_BOOLEAN etc. because of conflict of `boolean' with
8754 jpeglib.h.
8755
8756 * configure.in (HAVE_JPEG, --with-jpeg): Added. On systems
8757 where the library is installed in /usr/local/lib, e.g. FreeBSD,
8758 configure must be run with `--x-includes=/usr/X11R6/include:
8759 /usr/local/include --x-libraries=/usr/X11R6/lib:/usr/local/lib'.
8760
87611998-07-18 Gerd Moellmann <gerd@gnu.org>
8762
8763 * config.in (HAVE_JPEG): Added.
8764
8765 * xfns.c (ct_init): Initialize color table used to map RGB colors
8766 from images to X pixel colors.
8767 (ct_free): Free color table.
8768 (ct_lookup): Look an RGB color up.
8769 (ct_allocated_colors): Get vector of allocated colors.
8770 (pbm_image_p): Test if image specification is a valid PPM
8771 image specification.
8772 (pbm_scan_number): Scan a decimal ASCII number from a file.
8773 (pbm_load): Load a PPM image.
8774
8775 * window.c (Fset_window_vscroll): Adjust glyph matrix if
8776 necessary. Take canonical character units as parameter.
8777 (Fwindow_vscroll): Return canonical character units.
8778
8779 * dispnew.c (allocate_matrices_for_window_redisplay): Add negative
8780 w->dy to display height for which glyph rows must be allocated.
8781
87821998-07-17 Gerd Moellmann <gerd@gnu.org>
8783
8784 * xfaces.c (face_at_string_position): Merge in region face
8785 so that it won't overwrite the font in the region.
8786 (face_at_buffer_position): Ditto.
8787 (realize_basic_faces): Don't realize region face.
8788
8789 * dispextern.h (enum face_id): REGION_FACE_ID removed.
8790
8791 * xterm.c (x_set_glyph_string_background_width): Don't let
8792 cursor face extend to end of line.
8793
8794 * xdisp.c (append_space): If adding space of default face,
8795 make sure glyph ist produced with right face.
8796
8797 * xterm.c (x_clear_glyph_string_rect): Draw a rectangle in the
8798 background color of a glyph string.
8799 (x_draw_glyph_string_background): Call it.
8800 (x_draw_glyph_string_bg_rect): Ditto.
8801 (x_draw_stretch_glyph_string): Ditto.
8802
88031998-07-15 Gerd Moellmann <gerd@gnu.org>
8804
8805 * xdisp.c (init_iterator): Initialize it->current_y to the
8806 window's vscroll w->dy.
8807
8808 * window.c (Fwindow_vscroll): Return number of pixels window
8809 is vscrolled smoothly.
8810 (Fset_window_vscroll): Set the number.
8811
8812 * xdisp.c (move_iterator_to): Recognize case MOVE_TO_POS and
8813 to_pos in truncated part of a line.
8814
88151998-07-14 Gerd Moellmann <gerd@gnu.org>
8816
8817 * xdisp.c (move_iterator_in_display_line_to): If very first glyph
8818 doesn't fit on the line, truncate it, despite truncate_lines nil.
8819 (display_line): Ditto.
8820
8821 * xfns.c: Experimental support for Ghostscript images.
8822
8823 * xterm.c (x_term_init): Initialize new atoms DONE and PAGE.
8824 (XTread_socket): React on events from Ghostscript.
8825 (expose_frame): If width or height are zero, redraw entire frame.
8826 (XTread_socket): Call expose_frame after receiving event from
8827 Ghostscript.
8828
8829 * xterm.h (struct x_display_info): Add atoms DONE and PAGE
8830 for Ghostscript support.
8831
8832 * xdisp.c (redisplay_internal): Return quickly if called
8833 recursively.
8834
8835 * alloc.c (NSTATICS): Increased to 1024.
8836
88371998-07-08 Gerd Moellmann <gerd@gnu.org>
8838
8839 * xterm.c (x_append_stretch_glyph): Append a stretch glyph to an
8840 iterator's glyph row.
8841 (x_produce_stretch_glyph): Call it.
8842 (x_produce_glyphs): Handle `space-width' property; call
8843 x_append_stretch_glyph.
8844
8845 * xdisp.c (syms_of_xdisp): Add symbol `space-width' used as a text
8846 property.
8847 (get_iterator_space_width): Determine value of `space-width'
8848 property at iterator's position.
8849 (reseat_iterator): Call it.
8850 (next_element_from_string): Ditto.
8851 (next_element_from_buffer): Ditto.
8852 (init_iterator): Initialize space_width of iterator.
8853 (redisplay_internal): Don't goto end_of_redisplay if PT hasn't
8854 moved, but cursor blinks.
8855 (redisplay_internal): Set w->last_cursor_off_p after update.
8856
8857 * dispextern.h (enum iterator_prop_idx): Add SPACE_WIDTH_PROP_IDX.
8858 (struct display_iterator): Add new member space_width.
8859
8860 * window.h (struct window): Add last_cursor_off_p.
8861
88621998-07-07 Gerd Moellmann <gerd@gnu.org>
8863
8864 * Saved.
8865
8866 * window.c (Fpos_visible_in_window_p): Case window not up to
8867 date---return nil if iterator hasn't reached position.
8868
88691998-07-06 Gerd Moellmann <gerd@gnu.org>
8870
8871 * xdisp.c (text_outside_line_unchanged_p): Fix case that
8872 overlays have changed.
8873 (redisplay_window): Case cursor movement. Don't try it if
8874 last_cursor.vpos is out of range.
8875
8876 * xdisp.c (set_cursor_from_row): Set this_line_.* variables. This
8877 way, the display optimization for the line containing the cursor
8878 is used more frequently, esp. when we have a blinking cursor.
8879 (display_line): Don't set this_line_.* variables.
8880
8881 * xterm.c (x_redraw_cursor): Removed.
8882 (x_display_and_set_cursor): Set cursor type depending on
8883 cursor_off_p flag of window.
8884
8885 * dispnew.c (redraw_cursor_hook): Removed.
8886 (Fblink_cursor): Additional parameter on_p to set the cursor_off_p
8887 member of the selected window.
8888
8889 * xfaces.c (Fface_font): Added for compatibility with 20.2.
8890
8891 * xterm.c (x_y_to_hpos_vpos): Return null if not over text.
8892 Return glyph area under x/y.
8893 (note_mouse_highlight): Use x_y_to_hpos_vpos in its new form.
8894
8895 * keyboard.c (detect_input_pending_run_timers): Call gobble_input
8896 after redisplaying.
8897
88981998-07-05 Gerd Moellmann <gerd@gnu.org>
8899
8900 * xdisp.c (text_outside_line_unchanged_p): Test if changes
8901 are all outside of a line of text.
8902 (redisplay_internal): Use it.
8903
89041998-06-30 Gerd Moellmann <gerd@gnu.org>
8905
8906 * xdisp.c (next_element_from_buffer): After skipping over
8907 invisible text, look for the `glyph' property.
8908 (set_iterator_stop_pos): Ignore check positions in front
8909 of an iterator's current position.
8910
8911 * xterm.c (show_mouse_face): Don't act on rows that don't exist
8912 anymore or which are marked as not having valid contents.
8913
8914 * xfaces.c (Finternal_set_lisp_face_attribute): Don't free
8915 realized faces if new attribute value is equal to old value.
8916
89171998-06-29 Gerd Moellmann <gerd@gnu.org>
8918
8919 * xfaces.c (Finternal_make_lisp_face): Increment
8920 lface_id_to_name_size when lface_id_to_name is reallocated.
8921
89221998-06-27 Gerd Moellmann <gerd@gnu.org>
8923
8924 * xdisp.c (set_iterator_stop_pos): Compute initial stop_pos
8925 as minimum of endpos and overlay_pos.
8926 (load_overlay_strings): Set next_overlay_pos of iterator to
8927 -1 if we don't have to check for more overlay strings.
8928
89291998-05-09 Gerd Moellmann <gerd@gnu.org>
8930
8931 * xdisp.c (set_iterator_to_next_visible_line_start): Don't
8932 do anything if iterator is at ZV because scan_buffer doesn't
8933 work otherwise.
8934
8935 * xterm.c (x_encode_char): Inline it.
8936 (x_get_char_font_and_encoding): Simplified.
8937 (x_per_char_metric): Inline it.
8938
8939 * xterm.c (x_draw_glyph_string_relief): Use clipping.
8940
8941 * xdisp.c (get_next_display_element): Check for end of relief
8942 face moved here from next_element_from_buffer.
8943
8944 * xterm.c (x_produce_image_glyph): Add relief thickness.
8945 (x_produce_stretch_glyph): Ditto.
8946
89471998-05-08 Gerd Moellmann <gerd@gnu.org>
8948
8949 * xdisp.c (fill_iterator_from_glyph_property): Handle glyph
8950 property value (space :width WIDTH :height HEIGHT :ascent ASCENT).
8951
8952 * xterm.c (x_produce_stretch_glyph): Produce a stretch glyph
8953 from a glyph property.
8954 (x_produce_glyphs): Use it.
8955
8956 * xdisp.c (set_iterator_to_next): Handle next_element_from_stretch.
8957
8958 * xterm.c (x_produce_image_glyph): Add to current_x only if
8959 in text area.
8960 (x_produce_glyphs): Ditto.
8961
8962 * xdisp.c (display_line): Compute row height from glyphs in
8963 marginal areas.
8964
8965 * xterm.c (x_draw_image_glyph_string_background): Draw
8966 background of an image glyph string.
8967 (x_draw_glyph_string_bg_rect): Draw a rectangular region of
8968 the background of a glyph string.
8969 (x_draw_image_glyph_string_foreground): Draw the foreground of
8970 an image glyph string.
8971 (x_inverted_image_mask): Return the inverted mask of an image.
8972
8973 * xfns.c (x_draw_image): Removed.
8974
8975 * dispextern.h (struct image_type): Remove drawing function.
8976
8977 * xfaces.c (load_face_colors): Swap colors if face is inverse.
8978
8979 * xdisp.c (get_next_display_element): In marginal areas, translate
8980 newlines, tabs, etc. like normal control characters.
8981
8982 * xfaces.c (Fface_color_supported_p): Transpose parameters frame
8983 and color.
8984 (free_realized_faces): Set frame garbaged.
8985
8986 * xfaces.c (syms_of_xfaces): Add defsubr for
8987 internal-lisp-face-attribute-values.
8988
89891998-05-07 Gerd Moellmann <gerd@gnu.org>
8990
8991 * xterm.c (x_produce_image_glyph): Don't add glyph if area is
8992 full.
8993 (x_produce_image_glyph): Set IT->nglyphs to 1.
8994 (x_draw_image_glyph_string): Use inverted mask to draw background.
8995
8996 * dispextern.h (struct image_type): Additional clipping rect
8997 parameters for drawing functions.
8998
8999 * xterm.c (x_get_glyph_string_clip_rect): Get clip rect for
9000 a glyph string.
9001 (x_draw_image_glyph_string): Use it and pass the rect to the
9002 image drawing function.
9003
9004 * xdisp.c (fill_iterator_from_glyph_property): Use position of
9005 first character with `glyph' property as image position. Set
9006 iterator back to that position as long as the image hasn't been
9007 consumed with set_iterator_to_next.
9008 (set_cursor_from_row): Accept when glyph with given position is
9009 not found in the row. Set cursor x to end of line in that case,
9010 so that we can hscroll.
9011 (redisplay_internal): Correct computation of delta by which
9012 positions have changed in redisplay optimization for cursor
9013 row of selected window.
9014
9015 * xdisp.c (display_line): Remove start_pos.
9016 (display_line): Fix bug preventing display optimization for
9017 cursor line of selected window.
9018 (next_element_from_buffer): Avoid XSETBUFFER, use it->w->buffer
9019 instead.
9020
9021 * dispnew.c (update_text_area): Use GLYPH_EQUAL_P.
9022 (update_text_area): Take glyph pixel width into account
9023 when trying to find a resync point.
9024 (row_equal_p): Compare glyphs in all areas.
9025
90261998-05-06 Gerd Moellmann <gerd@gnu.org>
9027
9028 * xterm.c (x_produce_glyphs): Don't add glyph if area is full.
9029
9030 * dispextern.h (struct glyph_row): Use unsigned hash value.
9031
9032 * xdisp.c (display_line): Simplified and made faster by setting
9033 the cursor with set_cursor_from_row.
9034 (set_cursor_from_row): Handle rows of desired matrix.
9035
90361998-05-05 Gerd Moellmann <gerd@gnu.org>
9037
9038 * xdisp.c (set_cursor_from_row): Don't put cursor on glyphs
9039 with type != CHAR_GLYPH.
9040 (fill_iterator_from_glyph_property): Return void. Set
9041 method to next_element_from_image.
9042 (next_element_from_image): Dummy function for delivering a
9043 single image id.
9044 (set_iterator_to_next): Add method next_element_from_image.
9045 (redisplay_window): When recentering, and cursor vpos is -1
9046 after display, assume middle of window is in first line displayed
9047 in window, and display again.
9048 (fill_iterator_from_glyph_property): Assign image glyph
9049 the position of the first character having the glyph property.
9050
9051 * dispextern.h (IMAGE_ASCENT): Compute ascent of image.
9052 * xfns.c (x_draw_image): Use it.
9053 * xterm.c (x_produce_image_glyph): Use it.
9054
9055 * xterm.c (x_produce_image_glyph): Set iterator's pixel_width.
9056
9057 * Makefile.in: Extraneous #define of LIBXPM removed.
9058
9059 * xterm.c (x_produce_glyphs): Produce a STRETCH_GLYPH for tabs.
9060 (x_fill_stretch_glyph_string): Fill a glyph string from a
9061 stretch glyph.
9062 (x_compute_glyph_string_overhangs): Compute overhangs only
9063 for text glyph strings.
9064 (x_draw_stretch_glyph_string): Draw a stretch glyph string.
9065 (x_draw_glyph_string): Call it.
9066
9067 * dispextern.h (glyph_type): Add STRETCH_GLYPH.
9068 (struct glyph): Add sub-structure for stretchable glyphs.
9069 (GLYPH_EQUAL_P): Compare glyph type and u.val.
9070
9071 * xdisp.c (get_overlay_arrow_glyph_row): Put face code into
9072 #ifdef HAVE_FACES.
9073
9074 * xterm.c (x_produce_glyphs): Use ASCII face for spaces of a TAB.
9075
9076 * xdisp.c (fill_iterator_from_glyph_property): Renamed from
9077 setup_iterator_from_glyph_property. Don't do it for terminal
9078 frames.
9079
9080 * xterm.c (x_produce_image_glyph): Produce glyph for image
9081 that can't be loaded.
9082
9083 * xfns.c (lookup_image): If image can't be loaded, set its
9084 width and height so that we can draw a rectangle.
9085 (x_draw_image): Draw a rectangle for images that don't have
9086 a pixmap.
9087 (make_image): Set hash value.
9088 (image_spec_equal_p): Use image_spec_value.
9089
9090 * xterm.c (expose_frame): Don't try to redraw if basic faces
9091 haven't benn realized yet.
9092 (x_draw_image_glyph_string): Fill background only if image
9093 is not as tall as row.
9094
90951998-05-04 Gerd Moellmann <gerd@gnu.org>
9096
9097 * Makefile.in (LIBXPM): If not already defined, define to -lXpm.
9098 (LIBX)[HAVE_X11]: Add LIBXPM.
9099
9100 * xfns.c (xpm_image_p): Implementation of image type functions
9101 for XPM.
9102 (xpm_load): Ditto.
9103
9104 * dispextern.h (struct image): Add mask pixmap for XPM.
9105
9106 * xfns.c (x_draw_image): Handle images with masks.
9107
9108 * configure.in: --with-xpm added. Code detecting -lXpm added.
9109
9110 * config.in: Add HAVE_XPM.
9111
9112 * xfns.c (xbm_draw): Removed.
9113 (x_draw_image): Default implementation for drawing images.
9114 (xbm_keyword_index): Remove XBM_DEPTH.
9115 (xbm_format): Remove `:depth'.
9116 (xbm_image_spec_from_file): Removed to reduce consing.
9117 (xbm_load_image_from_file): Added for the same reason.
9118
9119 * xterm.c (x_fill_image_glyph_string): Don't set ybase of
9120 glyph string.
9121 (x_draw_image_glyph_string): Pass ybase to image draw function.
9122
9123 * xfns.c (make_image): Set default baseline.
9124
9125 * xterm.c (x_produce_image_glyph): Compute ascent of image
9126 from its height and baseline percentage.
9127
9128 * xfns.c (xbm_keyword_index): Add XBM_BASELINE.
9129 (xbm_format): Add description for `:baseline'.
9130 (xbm_image_spec_from_file): Add keywords from original spec to
9131 result.
9132 (xbm_load): Set baseline of image.
9133 (xbm_image_p): Check range for baseline.
9134
9135 * dispextern.h (struct image): Add member baseline.
9136
9137 * xdisp.c (dump_glyph_matrix): Handle image glyphs.
9138
9139 * term.c (produce_glyphs): Change assertion to allow DISP_IMAGE.
9140
9141 * xdisp.c (get_next_display_element): Do character translations
9142 only if delivering characters.
9143
91441998-05-03 Gerd Moellmann <gerd@gnu.org>
9145
9146 * dispextern.h (ITERATOR_AT_END_OF_LINE_P): Test for
9147 DISP_CHARACTER.
9148
9149 * xterm.c (x_produce_image_glyph): Poduce image glyphs.
9150 (x_produce_glyphs): Call x_produce_glyphs for DISP_IMAGE.
9151
91521998-05-02 Gerd Moellmann <gerd@gnu.org>
9153
9154 * xfns.c (prepare_image_for_display): Set image timestamp.
9155 (clear_image_cache): Clear images if image's timestamp +
9156 Vimage_eviction_seconds is > now.
9157 (syms_of_xfns): New variables image-eviction-seconds, and
9158 image-types.
9159 (add_image_format): Add to image-types.
9160 (xbm_load): Support new image spec format.
9161 (x_alloc_image_color): Allocate a color for an image.
9162
9163 * dispextern.h (struct image): Add timestamp.
9164
9165 * xfns.c (xbm_image_p): Allow bool-vectors, vectors of strings and
9166 vectors of bool-vectors.
9167 (xbm_lisp_object_from_file): Build new format image spec.
9168
91691998-05-01 Gerd Moellmann <gerd@gnu.org>
9170
9171 * xfaces.c (init_frame_faces): Initialize image cache.
9172 (free_frame_faces): Free it.
9173
9174 * xterm.c (x_delete_display): Don't free image cache.
9175
9176 * emacs.c (main): Call init_xfns.
9177
91781998-04-30 Gerd Moellmann <gerd@gnu.org>
9179
9180 * alloc.c (mark_object): Mark objects in image cache.
9181
9182 * xfns.c (x_set_internal_border_width): Correct call to
9183 widget_store_internal_border_width.
9184
9185 * widget.c (widget_store_internal_border): Return void.
9186
9187 * xfns.c (x_destroy_bitmap): Use xfree instead of free. Return
9188 void.
9189 (init_x_parm_symbols): Return void.
9190 (x_report_frame_params): Ditto.
9191 (x_set_border_pixel): Ditto.
9192 (syms_of_xfns): Ditto.
9193 (x_destroy_all_bitmaps): Use xfree instead of free.
9194
9195 * xterm.h (FRAME_X_IMAGE_CACHE): Access the image cache of a frame.
9196
9197 * xterm.c (x_term_init): Initialize image_cache of display info.
9198 (x_delete_display): Free image cache.
9199
9200 * xterm.h (struct x_display_info): Add image_cache.
9201
9202 * xfns.c (make_image_cache): Allocate a new image cache.
9203 (free_image_cache): Free an image cache.
9204 (make_image): Allocate an image.
9205 (free_image): Free an image.
9206
9207 * dispextern.h (struct image): Structure describing an image.
9208 (struct image_cache): Structure describing an image cache.
9209
92101998-04-29 Gerd Moellmann <gerd@gnu.org>
9211
9212 * xdisp.c (check_iterator_glyph_property): Return int. Value is
9213 non-zero if iterator is filled with something to return.
9214 (next_element_from_buffer): Immediately return if
9215 setup_iterator_from_glyph_prop has filled iterator with pixmap.
9216 (next_element_from_string): Likewise.
9217
9218 * xfaces.c (load_pixmap): Allow to pass null for W_PTR and H_PTR.
9219
9220 * dispextern.h (struct glyph): Add pixmap_id.
9221 (display_element_type): Add DISP_PIXMAP.
9222
9223 * xmenu.c (popup_get_selection): Use xmalloc/xfree instead of
9224 malloc/free.
9225
9226 * xfaces.c (clear_font_table): Free fonts not used by fontsets.
9227 (clear_face_cache): Call it.
9228
9229 * xterm.c (x_query_font): Don't look at empty font table slots.
9230 (x_compute_min_glyph_bounds): Likewise.
9231 (x_term_init): Initialize font_table to null.
9232 (x_load_font): Change allocation of font_info structures so
9233 that it is possible to free fonts.
9234
9235 * xfns.c (Fx_close_connection): Use xfree instead of free.
9236 Only free fonts from filled font table entries.
9237
9238 * xfaces.c (best_matching_font): Support use of scalable fonts.
9239 (Fface_scalable_fonts_mode): Toggle use of scalable fonts.
9240
9241 * xterm.h (struct x_display_info): Remove screen_dpi, add resx
9242 and resy.
9243 * xterm.c (x_term_init): Compute resx and resy.
9244
9245 * xfaces.c (split_font_name): Don't reject scalable fonts.
9246
9247 * xterm.c (x_list_fonts): Set code exclusing scalable fonts
9248 in #if 0.
9249
9250 * xfaces.c (xlfd_point_size): Return 0 for fonts whose real
9251 point size cannot be determined.
9252
9253 * xterm.h (FRAME_SMALLEST_CHAR_WIDTH): Return smallest character
9254 width over all fonts on a frame.
9255 (FRAME_SMALLEST_FONT_HEIGHT): Likewise for font height.
9256 * dispnew.c (adjust_frame_glyphs_for_window_redisplay): Use these
9257 macros.
9258
9259 * xterm.c (x_font_min_bounds): Moved here from xfaces.c.
9260 (x_compute_min_char_bounds): Formerly min_char_bounds in xfaces.c.
9261 (x_load_font): Use x_compute_min_char_bounds.
9262
9263 * xterm.h (struct x_display_info): New members smallest_char_width
9264 and smallest_font_height.
9265
92661998-04-28 Gerd Moellmann <gerd@gnu.org>
9267
9268 * dispextern.h (PREPARE_FACE_FOR_DISPLAY): Call function with
9269 the same name if GC of face is zero.
9270
9271 * dispextern.h (struct face): Member non_ascii_gc removed.
9272
9273 * xterm.c (x_get_char_font_and_encoding): Return face's font
9274 for characters < 0177 in default face. Prepare face for
9275 display before returning it.
9276 (x_produce_glyphs): Use it->charset.
9277 (x_get_char_font_and_encoding): Simplified.
9278 (x_encode_char): Remove parameter `font'.
9279
9280 * xfaces.c (choose_face_font): If registry from charset symbol
9281 doesn't contain a `-', make it a pattern by appending "*-*".
9282
9283 * xdisp.c (check_iterator_glyph_property): Adjust limit for
9284 glyph_check_pos computation to character boundary.
9285
92861998-04-27 Gerd Moellmann <gerd@gnu.org>
9287
9288 * fontset.h (FONT_INFO_FROM_ID): Return null if ID is invalid.
9289
9290 * xfaces.c (ascii_face_of_lisp_face): Get the id of the realized
9291 ASCII face for a given Lisp face id.
9292
9293 * xdisp.c (set_iterator_stop_pos): Take glyph_check_pos into
9294 account.
9295 (reseat_iterator): Set glyph_check_pos. Handle case where
9296 new position is < original position.
9297 (check_iterator_glyph_property): Handle glyph property in strings.
9298 (next_element_from_string): Call above function.
9299 (next_element_from_display_vector): Handle faces in glyphs.
9300 (get_next_display_element): Set face_id of glyphs for
9301 control chars to zero.
9302
9303 * Makefile.in (term.o): Add dependency on dispextern.h.
9304
9305 * xdisp.c (syms_of_xdisp): Add symbol `glyph'.
9306 (display_line): Handle marginal areas.
9307 (move_iterator_in_display_line_to): Likewise.
9308
9309 * xfaces.c (Finternal_make_lisp_face): Assign Lisp faces an id.
9310
9311 * xfaces.c (face_at_buffer_position): Don't merge with nil
9312 text property.
9313 (face_at_string_position): Ditto.
9314
9315 * dispextern.h (struct display_iterator): Use a stack of saved
9316 values instead of saving check positions etc. individually.
9317
9318 * xdisp.c (set_iterator_to_next): If end of Lisp string reached,
9319 maybe pop the iterator's stack.
9320 (save_iterator_settings): Push a value on iterator's stack.
9321 (get_overlay_strings_at_iterator_position): Use it.
9322 (restore_iterator_settings): Pop the stack.
9323 (set_iterator_to_next_overlay_string): Use it.
9324
9325 * xfaces.c (try_font_list): Use alternative font families.
9326
93271998-04-26 Gerd Moellmann <gerd@gnu.org>
9328
9329 * xfaces.c (Fset_face_font_sort_order): Set the order in which
9330 font selection matches fonts.
9331 (Fface_font_sort_order): Return the font sort order.
9332 (best_matching_font): Find best matching font based on sort order.
9333 (cmp_font_names): Sort by given sort order.
9334
9335 * dispextern.h (struct display_iterator): New member faces_p.
9336 * xdisp.c (init_iterator): Initialize it->faces_p.
9337 (compute_face_at_iterator_string_position): Use it.
9338 (compute_face_at_iterator_position): Use it.
9339 (init_iterator): Use it.
9340 (display_mode_line): Ditto.
9341
9342 * xdisp.c (get_next_display_element): Put code choosing a face
9343 when the charset changes in #ifdef HAVE_FACES.
9344
9345 * dispextern.h (FACE_FOR_CHARSET): Replacement for function
9346 lookup_face_for_charset.
9347
9348 * xfaces.c (free_font_names): Renamed from free_split_font_names.
9349 (free_all_realized_faces): Renamed from remove_all_realized_faces.
9350
93511998-04-25 Gerd Moellmann <gerd@gnu.org>
9352
9353 * xfaces.c (best_matching_font): Return the name of the best
9354 matching font in an array of font_name structures.
9355 (choose_face_font): Use it.
9356 (choose_face_fontset_font): Use it.
9357 (find_best_weight_font): If final font found has same weight as
9358 the font we started with, return the original font because it is a
9359 better match for the resolution of the display.
9360 (find_best_slant_font): Likewise.
9361 (merge_face_vector_with_property): Check more invalid attribute
9362 values.
9363 (lface_suitable_for_charset_p): Replaced by a macro with the same
9364 name in upper-case.
9365
93661998-04-24 Gerd Moellmann <gerd@gnu.org>
9367
9368 * dispextern.h (struct face): Member
9369 fontset_chosen_for_realization_p removed.
9370
9371 * xfaces.c (cache_face): If face->fontset >= 0, add face to the
9372 end of the collision list, so that we find more specific faces
9373 first.
9374 (lookup_face_for_charset): Look up a new face if face->fontset >=
9375 0, and charset != CHARSET_COMPOSITION.
9376
9377 * xfaces.c (split_font_name): Return zero if point size of font
9378 couldn't be computed.
9379 (realize_default_face): Use ASCII font of a fontset to determine
9380 font-related attributes of the default face.
9381 (face_fontset): Return fontset id for face family.
9382 (font_list): Additional parameter font_pattern. If non-nil,
9383 return fonts matching that pattern.
9384
93851998-04-23 Gerd Moellmann <gerd@gnu.org>
9386
9387 * xfaces.c (choose_face_fontset): If new fontset cannot be
9388 constructed, or fontset name cannot be split, return the id of the
9389 standard fontset.
9390
9391 * xterm.c (XTframe_up_to_date): Check that frame is an X frame.
9392 When Emacs starts, it may be called for the initial frame which
9393 isn't an X frame.
9394
9395 * dispextern.h (struct face): New members foreground_defaulted_p,
9396 background_defaulted_p.
9397 (struct face): Members `mask' and `cache' removed.
9398
9399 * xfaces.c (load_color): Set them.
9400 (free_face_colors): Check them.
9401 (xlfd_point_size): Return -1 if resolution or point size of
9402 font unknown.
9403
9404 * xfaces.c (free_font): Removed.
9405 (load_face_font_or_fontset): Renamed from load_font.
9406 (load_face_font_or_fontset): Use message2 instead of signalling.
9407 (load_color): Likewise.
9408 (load_pixmap): Likewise.
9409
9410 * xterm.h (struct x_display_info): Add screen_dpi.
9411 * xterm.c (x_term_init): Initialize it.
9412 * xfaces.c (xlfd_point_size): Use it.
9413 (split_font_name): Compute numeric XLFD_RESY.
9414 (cmp_font_names): Make fonts with an y-resolution more
9415 similar to that of the frame appear first in the result.
9416
9417 * xfaces.c (cache_face): If fontset_chosen_for_realization_p
9418 is set for the face to cache, add it to the end of the collision
9419 list.
9420 (try_font_list): If fonts for given family and registry cannot
9421 be found, first try to keep the registry, and choose a different
9422 family.
9423 (choose_face_font): Allow nfonts == 0.
9424 (try_font_list): Give up if no font matches given registry.
9425
94261998-04-22 Gerd Moellmann <gerd@gnu.org>
9427
9428 * xterm.c (x_get_char_font_and_encoding): Get font_info from
9429 font info id of the face.
9430
9431 * xfaces.c (load_font): Set font_info_id.
9432 (realize_face): Ditto.
9433
9434 * dispextern.h (struct face): Change member font_info to
9435 font_info_id.
9436
9437 * fontset.h (FONT_INFO_ID): Build an ID from a font_info pointer.
9438 (FONT_INFO_FROM_ID): Get a font_info pointer from an ID.
9439
9440 * xdisp.c (extend_face_to_end_of_line): If IT's current charset
9441 isn't ASCII, get the ASCII face before adding a space.
9442 (append_space): Likewise.
9443 (insert_left_trunc_glyphs): Initialize truncate_it's charset
9444 to -1 so that it will compute the right face for the truncation
9445 glyphs.
9446
9447 * xfaces.c (realize_face): Set
9448 face->fontset_chosen_for_realization_p.
9449 (lookup_face_for_charset): If fontset wasn't specified originally
9450 and new charset != CHARSET_COMPOSITION, get a new face for that
9451 charset.
9452
9453 * dispextern.h (struct face): New member
9454 fontset_chosen_for_realization_p_specified_p. Set to 1 when
9455 realize_face has chosen a fontset to display composite characters
9456 for a Lisp face not specifying a fontset.
9457
9458 * xdisp.c (extend_face_to_end_of_line): Move tests for default
9459 face and line already filled here. Don't do anything if current
9460 face hasn't a relief or has a background equal to the frame
9461 background.
9462
9463 * xfaces.c (split_font_name): Additional parameter numeric_p.
9464 Don't compute numeric values if it is non-zero.
9465 (choose_face_fontset): Call split_font_name with numeric_p == 0.
9466 (choose_face_fontset): Print a message if fontset contains a
9467 font whose name cannot be split into fields.
9468
94691998-04-21 Gerd Moellmann <gerd@gnu.org>
9470
9471 * xfaces.c (try_font_list): Try to load a list of fonts,
9472 possibly using less restrictive patterns.
9473 (choose_face_font): Use it.
9474
9475 * xterm.c (x_get_char_font_and_encoding): For charset !=
9476 CHARSET_ASCII use font_info of face if face hasn't a fontset set.
9477
9478 * dispextern.h (struct face): New member font_info.
9479
9480 * xfaces.c (load_font): Use FS_LOAD_FONT to load fonts for faces
9481 specifying a fontset as well as those not having a fontset.
9482 (free_font): Make it empty.
9483 (realize_face): Use changed load_font.
9484
9485 * xterm.c (x_get_char_font_and_encoding): If face doesn't
9486 fit for charset, get the right one.
9487
9488 * xfaces.c (load_font): Take frame and name parameter, return
9489 font.
9490 (free_font): Likewise.
9491 (split_font_name): Compute numeric values for height, swidth etc.
9492 (cmp_font_names): Use them.
9493 (find_best_width_font): Ditto.
9494 (find_best_height_font): Ditto.
9495 (find_best_weight_font): Ditto.
9496 (find_best_slant_font): Ditto.
9497 (lface_hash): Add weight, slant, swidth and relief to hash value.
9498 (lface_equal_p): Make it faster.
9499 (lface_from_symbol): Use assq_no_quit.
9500 (Fnote_default_face_changed): Removed.
9501 (cmp_font_names): Use strcmp instead of xstricmp.
9502 (face_charset_registries): Removed.
9503
95041998-04-20 Gerd Moellmann <gerd@gnu.org>
9505
9506 * frame.h (CHECK_FRAME): Give this macro a statement form.
9507 (CHECK_LIVE_FRAME): Ditto.
9508
9509 * xfaces.c (find_best_width_font): Find the best matching font
9510 for a given width.
9511 (find_best_height_font): Likewise for height.
9512 (find_best_weight_font): Likewise for weight.
9513 (find_best_slant_font): Likewise for slant.
9514 (choose_face_font): Use them.
9515 (get_lface_attributes): Always return frame-local face attrs.
9516 (Finternal_merge_in_global_face): Merge local face with
9517 global face attributes.
9518
9519 * xfaces.c (check_lface_attrs, check_lface): Check consistency of
9520 Lisp face attributes.
9521
95221998-04-19 Gerd Moellmann <gerd@gnu.org>
9523
9524 * xfaces.c (Finternal_set_lisp_face_attribute): Add :bold
9525 and :italic for compatibility.
9526 (Finternal_set_lisp_face_attribute_from_resource): Handle
9527 :bold and :italic. Handle boolean resource values for
9528 :underline and :italic.
9529
9530 * xfns.c (display_x_get_resource): Make it externally visible.
9531
9532 * xfaces.c (lface_from_symbol): Take a frame as parameter.
9533 If that frame is non-null, return the frame-local face.
9534 (Finternal_make_lisp_face): Additional frame argument.
9535 (lface_attributes): Get face attributes from global and frame-local
9536 definitions.
9537 (Finternal_lisp_face_equal_p): Additional frame argument.
9538 (merge_lisp_face_vector_with_property): Ditto.
9539 (Frealize_basic_faces): Removed.
9540 (Finternal_get_lisp_face_attribute): Additional frame argument.
9541 (Finternal_lisp_face_p): Ditto.
9542 (load_color) [MSDOS]: Removed because it isn't clear how
9543 to do this for MS-DOS.
9544
9545 * xfaces.c (lface_from_symbol): Get global face definition
9546 from face-global-alist.
9547
9548 * xfaces.c (Finternal_set_lisp_face_attribute): Allow `t'
9549 as values for :underline and :inverse-video.
9550 (Finternal_set_lisp_face_attribute): Allow nil values.
9551
95521998-04-17 Gerd Moellmann <gerd@gnu.org>
9553
9554 * xfaces.c (Finternal_make_lisp_face): Return Lisp face vector.
9555
9556 * xfaces.c (syms_of_xfaces): Add Vall_faces.
9557 (Finternal_make_lisp_face): Add new face to Vall_faces.
9558
9559 * xdisp.c (echo_area_display): Remove code recomputing faces.
9560 (redisplay_internal): Ditto.
9561 (init_iterator): Do it here.
9562
9563 * xfaces.c (choose_face_font): Check that swidth doesn't change
9564 for subusequent attributes.
9565 (xlfd_point_size): Return int.
9566
9567 * xdisp.c (redisplay_internal, echo_area-display): If realized
9568 faces have been cleared, call recompute_basic_faces.
9569
9570 * xfaces.c (recompute_basic_faces): Free realized faces. Reset
9571 face_attributes_changed_p.
9572 (remove_all_realized_faces): Remove all realized faces on
9573 all frames.
9574 (Finternal_set_lisp_face_attribute): Call remove_all_realized_faces.
9575
9576 * xdisp.c (redisplay_internal): If face attributes have been
9577 changed since the last redisplay, recompute basic faces.
9578 (echo_area_display): Ditto.
9579
9580 * xfaces.c (clear_face_gcs): Renamed from clear_realized_face_cache.
9581
9582 * xfaces.c (min_char_bounds): If face cache not yet present,
9583 don't try to get font dimensions from faces.
9584
9585 * xterm.c (x_frame_mode_line_height): If face cache not present
9586 set, return default height.
9587
9588 * alloc.c (mark_face_cache): Check for null faces. Correct
9589 index bug.
9590
9591 * dispextern.h (struct face): Renamed from struct rface. Member
9592 underline renamed underline_p. Make it a bit-field.
9593
9594 * xfaces.c (init_frame_faces): Allocate face cache.
9595 (free_frame_faces): Free face cache.
9596 (recompute_basic_faces): Realize basic faces only if face cache is
9597 allocated, i.e. after init_frame_faces has been called.
9598
9599 * frame.c (make_frame): Initialze face cache with null.
9600
9601 * xfaces.c (same_size_fonts): Removed.
9602
9603 * xterm.c (x_set_glyph_string_gc): Add post-condition
9604 s->gc != 0.
9605 (x_set_mouse_face_gc): Ditto.
9606 (x_set_mode_line_face_gc): Ditto.
9607
9608 * xfaces.c (realize_default_face): Return int. Value is
9609 zero if frame params don't contain enough information to
9610 realize the default face.
9611 (realize_basic_faces): Ditto.
9612 (init_frame_faces): Realize basic faces.
9613
9614 * xfns.c (x_set_font): First store real font name in frame
9615 parameters, then call recompute_basic_faces.
9616
9617 * xfaces.c (recompute_basic_faces): Call realize_basic_faces.
9618
96191998-04-16 Gerd Moellmann <gerd@gnu.org>
9620
9621 * xfaces.c (syms_of_xfaces): Correct calls to defsubr.
9622
9623 * xfns.c (Fx_face_fixed_p): Removed.
9624 (Fx_list_fonts): Moved to xfaces.c.
9625
9626 * xfaces.c (compute_face_at_buffer_pos): Renamed to
9627 face_at_buffer_position. Parameter charset removed; always
9628 compute face for CHARSET_ASCII.
9629 (face_at_string_position): Renamed from
9630 compute_face_at_string_pos. Parameter charset removed; always
9631 compute for CHARSET_ASCII.
9632 (lookup_face_for_charset): Take frame parameter instead of
9633 face_cache.
9634 (lookup_face): Ditto.
9635 (compute_char_face): Renamed from compute_glyph_face.
9636
9637 * xdisp.c (init_iterator): Initialize charset member.
9638 (reseat_iterator_to_string): Ditto.
9639 (get_charset_at_buffer_position): Determine charset at
9640 buffer position in current_buffer.
9641 (reseat_iterator): Call above function.
9642 (compute_face_at_iterator_position): Call
9643 compute_face_at_buffer_pos.
9644 (compute_face_at_iterator_string_position): Call
9645 compute_face_at_string_pos.
9646 (get_face_from_id): Removed.
9647 (get_face_from_cursor_pos): Call compute_face_at_buffer_pos.
9648 Call get_charset_at_buffer_position.
9649 (reseat_iterator): Determine face if charset at pos differs
9650 from iterator's charset.
9651 (reseat_iterator_to_glyph_pos): Removed.
9652
9653 * xfaces.c (compute_face_at_bufpos): Remove parameter charset.
9654 Determine charset from buffer position.
9655 (compute_string_char_face): Renamed to compute_face_at_string_pos.
9656 (compute_face_at_bufpos): Renamed to compute_face_at_buffer_pos.
9657
9658 * dispextern.h (struct display_iterator): Add member charset.
9659
96601998-04-15 Gerd Moellmann <gerd@gnu.org>
9661
9662 * xfaces.c (compute_char_face): Removed.
9663
9664 * xdisp.c (get_overlay_arrow_glyph_row): Use compute_glyph_face
9665 with new parameter list.
9666
9667 * xfaces.c (region_face): Removed.
9668 (allocate_face): Removed.
9669 (copy_face): Ditto.
9670 (face_eql): Removed.
9671 (intern_face): Removed.
9672 (clear_face_cache): Removed.
9673 (load_font): Ditto.
9674 (unload_font): Ditto.
9675 (load_color): Ditto.
9676 (unload_color): Ditto.
9677 (new_computed_face): Ditto.
9678 (intern_computed_face): Ditto.
9679 (ensure_face_ready): Ditto.
9680 (merge_faces): Ditto.
9681 (compute_base_face): Ditto.
9682 (merge_face_list): Ditto.
9683 (Fmake_face_internal): Removed.
9684 (Fset_face_attribute_internal): Ditto.
9685 (face_name_id_number): Removed.
9686 (Fframe_face_alist): Ditto.
9687 (Fset_frame_face_alist): Ditto.
9688 (Finternal_next_face_id): Ditto.
9689
9690 * xterm.h (struct x_output): Remove computed_faces, and
9691 param_faces. Remove macros accessing them.
9692
9693 * xfaces.c: Entirely new face implementation added.
9694
96951998-04-11 Gerd Moellmann <gerd@gnu.org>
9696
9697 * dispextern.h (struct glyph_pos): Member `bufpos' renamed
9698 `charpos'.
9699
97001998-04-10 Gerd Moellmann <gerd@gnu.org>
9701
9702 * xterm.c (x_scroll_bar_move): Clear only regions not covered by
9703 scroll bar window to reduce flickering. Clear entire height.
9704
9705 * xdisp.c (move_iterator_vertically_backward): Set iterator's
9706 current_x and hpos to zero after moving to previous line
9707 start.
9708
97091998-04-03 Gerd Moellmann <gerd@gnu.org>
9710
9711 * frame.h (FRAME_FACE_CACHE): Access to a frame's face cache.
9712
9713 * xfaces.c (xlfd_point_size): Compute relative point size of
9714 fonts from font and frame resolution.
9715 (sort_fonts): New function to sort fonts, temporarily setting
9716 font_frame to the frame in effect.
9717 (xlfd_point_size): Take additional frame parameter to be able
9718 to get at the display's resolution.
9719
9720 * xterm.c (x_setup_relief_colors): Use WHITE_PIX_DEFAULT and
9721 BLACK_PIX_DEFAULT.
9722 (x_setup_relief_color): Use FRAME_X_SCREEN instead of default
9723 screen of display.
9724
97251998-03-31 Gerd Moellmann <gerd@gnu.org>
9726
9727 * xfaces.c (choose_face_fontset): Instantiate fontsets.
9728
9729 * fontset.h: Add external declarations for Vfontset_alias_alist
9730 and Vglobal_fontset_alist.
9731
9732 * xfaces.c (merge_lisp_face_vector_with_property): Simplified.
9733 (realize_default_face): If frame parameters contain an artificial
9734 font name naming a fontset, set the family of the default face to
9735 the fontset name given by the registry.
9736
9737 * Makefile.in (alloc.o): Add dependency to dispextern.h.
9738
97391998-03-22 Gerd Moellmann <gerd@gnu.org>
9740
9741 * alloc.c (mark_object): Add function prototype. Add cast to
9742 Lisp_Object pointer in call to mark_object for symbol names
9743 because this otherwise gives a warning from gcc 2.8.1.
9744 (mark_face_cache): Mark Lisp objects in realized faces.
9745
97461998-03-19 Gerd Moellmann <gerd@gnu.org>
9747
9748 * frame.h (struct frame): Add member face_cache.
9749
9750 * alloc.c (mark_object): Mark face cache.
9751 (mark_face_cache): Mark Lisp faces in face cache of frame.
9752
9753 * frame.c (make_frame): Initialize face_cache.
9754 (Fdelete_frame): Free it.
9755
97561998-03-18 Gerd Moellmann <gerd@gnu.org>
9757
9758 * xfaces.c: Very first skeleton of functions for face realization,
9759 face merging, face cache etc.
9760
9761 * dispextern.h (struct rface): Realized faces. Will replace
9762 struct face when tested.
9763 (struct face_cache): Realized face caches.
9764
9765 * xdisp.c (init_iterator): Initialize area member of display
9766 iterator.
9767
97681998-03-17 Gerd Moellmann <gerd@gnu.org>
9769
9770 * xterm.c (x_append_glyph): Use it->area to store glyphs.
9771
9772 * dispextern.h (struct display_iterator): New member area.
9773
9774 * xterm.c (note_overwritten_text_cursor): Note when the text
9775 cursor of a window is overwritten.
9776
9777 * xdisp.c (set_cursor_from_row): If PT is not found in the
9778 row, display the cursor at the start of the row.
9779
9780 * dispnew.c (direct_output_forward_char): Call
9781 set_cursor_from_row.
9782
9783 * xdisp.c (setup_iterator_overlay_strings_from_glyph_pos): If
9784 position is not in an overlay string, set iterator's position and
9785 method explicitly so.
9786 (set_cursor_from_row): Correct cursor position calculation.
9787 Make it externally visible.
9788 (redisplay_window): Call set_cursor_from_row so that there is only
9789 one place where the cursor position is calculated from a current
9790 row.
9791
9792 * dispextern.h (struct display_iterator): New member
9793 overlay_strings_at_end_processed_p.
9794
9795 * xdisp.c (check_iterator): Perform sanity checks on
9796 display_iterators.
9797 (next_element_from_buffer): Check for overlay strings at ZV.
9798
97991998-03-16 Gerd Moellmann <gerd@gnu.org>
9800
9801 * buffer.c (init_buffer_once): Add left_margin_width and
9802 right_margin_width to buffer_local_flags.
9803
9804 * dispnew.c (margin_glyphs_to_reserve): Function computing
9805 number of glyphs to reserve for a marginal area.
9806 (adjust_glyph_matrix): Call it.
9807 (adjust_frame_glyphs_for_frame_redisplay): Return if frame
9808 is not alive.
9809
9810 * window.c (Fset_window_margins): Allow floats.
9811
9812 * buffer.c (syms_of_buffer): Add buffer-local variables
9813 left-margin-width and right-margin-width. Add defaults
9814 default-left-margin-width and default-right-margin-width.
9815
9816 * buffer.h (struct buffer): New members left_margin_width
9817 and right_margin_width.
9818
9819 * window.c (Fset_window_margins): Make window the last and
9820 optional argument.
9821
9822 * xterm.c (x_draw_glyphs): Compute x-positions for rows with
9823 flag no_marginal_areas_p differently.
9824 (x_clear_end_of_line): Ditto.
9825 (x_draw_glyph_string_relief): Compute width of relief differently
9826 for rows with flag no_marginal_areas_p.
9827
9828 * dispnew.c (update_window_line): Update marginal areas only
9829 for rows that don't have no_marginal_areas_p set.
9830
9831 * xdisp.c (display_mode_line): Set row's flag no_marginal_areas_p.
9832 (display_menu_bar): Ditto.
9833
9834 * dispextern.h (struct glyph_row): New member no_marginal_areas_p.
9835
9836 * dispnew.c (adjust_glyph_matrix): Compute glyph pointers for
9837 marginal areas in window-based redisplay.
9838
9839 * dispextern.h (struct glyph_matrix): New members
9840 left_margin_glyphs and right_margin_glyphs.
9841
98421998-03-15 Gerd Moellmann <gerd@gnu.org>
9843
9844 * minibuf.c (read_minibuf_unwind): Return Lisp_Object.
9845
9846 * charset.c (non_ascii_char_to_string): Use char type parameters
9847 because the function is used that way from outside. Use unsigned
9848 char internally.
9849
9850 * window.c (change_window_height): Return void.
9851 (make_dummy_parent): Return void.
9852 (init_window_once): Return void.
9853 (syms_of_window): Ditto.
9854 (keys_of_window): Ditto.
9855 (delete_window): Correct return with and without value.
9856
9857 * buffer.c (record_buffer): Return void.
9858
9859 * marker.c (unchain_marker): Return void.
9860
9861 * window.c (unshow_buffer): Return void.
9862 (replace_window): Ditto.
9863 (delete_window): Ditto.
9864
9865 * term.c (delete_glyphs_hook): Void return type.
9866 (ring_bell_hook): Ditto.
9867 (set_terminal_window_hook): Ditto.
9868
9869 * sysdep.c (init_sigio): Return void.
9870
9871 * xterm.c (x_set_window_size): Return void.
9872 (x_calc_absolute_position): Ditto.
9873 (x_set_offset): Ditto.
9874 (x_focus_on_frame): Ditto.
9875 (x_unfocus_frame): Ditto.
9876 (x_make_frame_visible): Ditto.
9877 (x_make_frame_invisible): Ditto.
9878 (x_iconify_frame): Ditto.
9879 (x_destroy_window): Ditto.
9880 (x_wm_set_window_state): Ditto.
9881 (x_wm_set_icon_pixmap): Ditto.
9882 (x_wm_set_icon_position): Ditto.
9883 (x_initialize): Ditto.
9884 (x_error_quitter): Ditto.
9885 (x_destroy_window): Use xfree instead of free.
9886
9887 * keyboard.c (clear_waiting_for_input): Return void.
9888
9889 * xterm.c (x_wm_set_size_hint): Return void.
9890 (x_raise_frame): Ditto.
9891 (refreshicon): Ditto.
9892 (x_error_catcher): Ditto.
9893 (x_clear_errors): Ditto.
9894
9895 * keyboard.c (record_asynch_buffer_change): Return void.
9896
9897