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