(Qredisplay_dont_pause): Declare extern.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
7d093d56
EZ
12000-08-09 Eli Zaretskii <eliz@is.elta.co.il>
2
3 * keyboard.c (kbd_buffer_events_waiting): New function.
4
5 * keyboard.h (kbd_buffer_events_waiting): Add prototype.
6
7 * msdos.c: Include keyboard.h.
8 (XMenuActivate): Empty no_event events from the event buffer. If
9 no events are left after that, call clear_input_pending.
10 (mouse_clear_clicks): New function, code moved from mouse_init.
11 (mouse_init, XMenuActivate): Call mouse_clear_clicks to force the
12 mouse driver to ``forget'' any past clicks.
13
14 * Makefile.in (msdos.o): Depend on keyboard.h.
15
41e757a6
GM
162000-08-09 Gerd Moellmann <gerd@gnu.org>
17
43028b7e
GM
18 * dispnew.c (mode_line_string): Declare parameter MODE_LINE_P.
19
41e757a6
GM
20 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
21
2f2174fa
KH
222000-08-09 Miles Bader <miles@lsi.nec.co.jp>
23
24 * callproc.c (Fcall_process): Terminate the unwind-protect around
25 the post-read-conversion of coding system.
26
0c80756e
MB
272000-08-09 Miles Bader <miles@lsi.nec.co.jp>
28
0a6fd67e
MB
29 * buffer.c (overlays_at): Add CHANGE_REQ parameter.
30 (Foverlays_at, Fnext_overlay_change, Fprevious_overlay_change): Use it.
31 * buffer.h (overlays_at): Update prototype.
32 * xdisp.c (next_overlay_change): Update call to overlays_at.
33 * xfaces.c (face_at_buffer_position): Likewise.
34 * textprop.c (Fget_char_property): Likewise.
35 * xterm.c (note_mouse_highlight): Likewise.
36
0c80756e
MB
37 * minibuf.c (do_completion): Don't consider a simple change of
38 case as `completion'.
39
975f250a
KR
402000-08-08 Ken Raeburn <raeburn@gnu.org>
41
b347b3fd
KR
42 * keyboard.c (syms_of_keyboard): Initialize
43 last_point_position_buffer.
44 * undo.c (record_delete): Make sure last_point_position_buffer is
45 a buffer before comparing pointers.
46
47 * coding.h (decode_coding_string): Declare.
48
49 * intervals.h (Fprevious_single_char_property_change): Declare.
50
51 * textprop.c (Fprevious_single_char_property_change): Don't do
52 arithmetic directly on lisp objects.
53
25ad1371 54 * editfns.c (find_field): Use EQ, not ==, to compare Lisp
b347b3fd
KR
55 objects.
56
57 * keyboard.h (menu_item_eval_property): Declare.
58
59 * xdisp.c (message_dolog): Save and protect string "*Messages*" to
60 reuse as buffer name, instead of recreating (and discarding) every
61 time a message is logged.
62 (with_echo_area_buffer): Make callback arg A2 a lisp object.
25ad1371
GM
63 (current_message_1, truncate_message_1, set_message_1)
64 (display_echo_area_1, resize_mini_window_1): Signatures changed.
65 (current_message, truncate_echo_area, display_echo_area)
66 (resize_echo_area_axactly): Changed calls.
b347b3fd 67
975f250a 68 * coding.c (find_safe_codings): CHAR_TABLE_SET index must be a
25ad1371 69 Lisp object.
975f250a 70 (Ffind_coding_systems_region_internal): First argument to Fappend
25ad1371 71 must be an integer, not a Lisp object.
975f250a 72
46dc9912
KH
732000-08-08 Kenichi Handa <handa@etl.go.jp>
74
75 * charset.c (Fchar_width): Doc fix.
76
9f6d1a6c
GM
772000-08-08 Gerd Moellmann <gerd@gnu.org>
78
79 * charset.c (Fstring_width): Doc fix.
80
ff3d9573
GM
812000-08-07 Gerd Moellmann <gerd@gnu.org>
82
41e757a6 83 * xdisp.c (start_display): When starting display on a continuation
49ad1d99
GM
84 line, clear ascent and descent members of the iterator structure;
85 the height of the continued line does not affect the height of the
86 continuation line.
87 (make_cursor_line_fully_visible): Do nothing if cursor is on a
88 line taller than the window.
89 (redisplay_window) <forced window start>: Handle case that the
90 middle of the window is not found in any row.
91 (dump_glyph_row): Show more information.
92 (compute_line_metrics): Use MATRIX_FIRST_TEXT_ROW to determine the
93 first text line in a glyph matrix.
94
95 * xterm.c (x_draw_image_foreground): Avoid drawing outside
96 of the clip area when image doesn't have a mask.
97
70fc58b3
GM
98 * fns.c (sweep_weak_table): Fix survival conditions for
99 key-or-value and key-and-value weakness.
100
101 * .gdbinit (xhashtable): New command.
102
ac0e96ee
GM
103 * fns.c (sweep_weak_hash_tables): Fix the code taking unmarked
104 tables out of the list of all weak hash tables.
105
ff3d9573
GM
106 * xdisp.c (ensure_echo_area_buffers): If a buffer was killed, and
107 a new buffer is created, make sure echo_area_buffer[] references
108 the new buffer.
109
e0d8827b
EZ
1102000-08-07 Eli Zaretskii <eliz@is.elta.co.il>
111
112 * msdos.c (Fmsdos_set_mouse_buttons): Add missing backslashes in
113 the doc string.
114
c6f35378
KH
1152000-08-07 Kenichi Handa <handa@etl.go.jp>
116
117 * syntax.c (skip_chars): Fix previous change. Make the handling
118 of unibyte string consistent with that of regex search.
119
1fd4c450
GM
1202000-08-05 Gerd Moellmann <gerd@gnu.org>
121
e49aa397
GM
122 * xmenu.c (popup_get_selection): Use xfree instead of free.
123
124 * fileio.c (Finsert_file_contents): Use xfree instead of free.
125
126 * editfns.c (Ftranspose_regions): Use xfree instead of free.
127
128 * callproc.c (child_setup): Use xfree instead of free.
129
130 * sysdep.c (opendir, GetTempDirName, run_mac_command): Use xmalloc
131 instead of malloc.
132 (run_mac_command, closedir): Use `xfree' instead of `free'.
133
134 * keymap.c (current_minor_maps): Use xmalloc instead of malloc.
135
136 * eval.c (error): Use xfree instead of free.
137
1fd4c450
GM
138 * xfaces.c, xfns.c, w32fns.c: Replace `illegal' with `invalid'.
139
140 * fns.c: Replace `illegal' with `invalid'.
e49aa397 141 (Fmake_hash_table, make_hash_table): Allow table size of 0.
1fd4c450 142
82d497fc
KH
1432000-08-05 Kenichi Handa <handa@etl.go.jp>
144
145 * syntax.c (skip_chars): Fix handling of multibyte<->unibyte
146 conversion.
147
59f953a2
NF
1482000-08-04 Noah Friedman <friedman@splode.com>
149
150 * fns.c (Fmake_hash_table): Add missing `\n\' to end of line in
151 docstring.
152
688351f2
GM
1532000-08-04 Gerd Moellmann <gerd@gnu.org>
154
155 * syntax.c (skip_chars): Fix typo in error message.
156
2dad51cc
AS
1572000-08-04 Andreas Schwab <schwab@suse.de>
158
159 * m/ia64.h: Moved from s/ia64.h.
160
99bb2c60
KH
1612000-08-04 Kenichi Handa <handa@etl.go.jp>
162
082a1df2
KH
163 * process.c (read_process_output): Big simplification. Handle
164 composition and post-read-conversion of coding system correctly.
165 (send_process): Handle composition correctly.
166
167 * callproc.c (Fcall_process): Handle post-read-conversion of
168 coding system if any.
169
99bb2c60
KH
170 * coding.c (decode_coding_iso2022): More strict check for handling
171 single shifting.
082a1df2
KH
172 (coding_restore_composition): Pay attention to the case that
173 cmp_data is not set properly (because of invalid code in the
174 source text).
175 (run_pre_post_conversion_on_str): Include text properties in the
176 resulting string.
177 (decode_coding_string): Set members of coding correctly.
99bb2c60 178
f4988be7
GM
1792000-08-03 Gerd Moellmann <gerd@gnu.org>
180
181 * s/ia64.h: New file.
182
183 * widget.c (set_frame_size, update_wm_hints, EmacsFrameSetValues):
184 Use NULL instead of 0 at the end of variable argument list of
185 XtVaGetValues and XtVaSetValues, because 0 fails on systems where
186 sizeof (int) < sizeof (void *).
187
188 * xmenu.c (update_frame_menubar): Use NULL instead of 0 at the end
189 of variable argument lists of XtVaGetValues and XtVaSetValues.
190
191 * xfns.c (Fx_file_dialog): Use NULL instead of 0 at the end of
192 variable argument lists of XtVaGetValues and XtVaSetValues.
193
ead53494
GM
1942000-08-02 Gerd Moellmann <gerd@gnu.org>
195
196 * alloc.c (lisp_malloc, lisp_free): Use size_t and POINTER_TYPE.
197 (xrealloc, xmalloc): Use size_t. Some callers adjusted.
198
199 * lisp.h (Fsingle_key_description, xmalloc, xrealloc): Change
200 prototype.
201
202 * keyboard.c (read_char_minibuf_menu_prompt): Add new parameter
203 in call to Fsingle_key_description.
204
205 * keymap.c (Fsingle_key_description): Add parameter NO_ANGLES.
206 Callers changed.
207
2082000-08-02 Colin Walters <walters@cis.ohio-state.edu>
209
210 * window.c (display_buffer_reuse_frames): New variable.
211 (Fdisplay_buffer): If display_buffer_reuse_frames is set, reuse
212 frames displaying BUFFER.
213 (syms_of_window): Define Lisp variable
214 display-buffer-reuse-frames.
215
10b0f752
MB
2162000-08-01 Miles Bader <miles@gnu.org>
217
218 * editfns.c (Fconstrain_to_field): Fix the conditions for deciding
219 when to constrain NEW_POS (they were pretty screwed up before).
220
16425c4a
EZ
2212000-07-31 Eli Zaretskii <eliz@is.elta.co.il>
222
223 * msdos.c (run_msdos_command): Save and restore the master
224 environment, for the case that child_setup signals an error.
225 When mirroring slashes in DOS shell commands, don't fail when
226 argv[2] has embedded blanks.
da288c14
EZ
227 (Fmsdos_set_mouse_buttons, mouse_setup_buttons): New functions.
228 (syms_of_msdos): Defsubr Fmsdos_set_mouse_buttons.
229 (dos_ttraw): Call mouse_setup_buttons.
16425c4a
EZ
230
231 * callproc.c (child_setup) [MSDOS]: malloc pwd_var instead of
232 using alloca; free it after run_msdos_command returns.
233
27f73852
DL
2342000-07-27 Dave Love <fx@gnu.org>
235
236 * s/irix6-5.h (IRIX_FORCE_32_BITS, LD_SWITCH_SYSTEM): Don't
237 define.
238 [_MIPS_SZLONG == 64]: Set up for 64-bit mode -- not currently
239 working.
240
241 * m/iris4d.h (XUINT, XSET, XUNMARK) [_LP64]: Don't define.
242
c0261b5e
EZ
2432000-07-27 Eli Zaretskii <eliz@is.elta.co.il>
244
245 * editfns.c (lisp_time_argument): Fix last change.
246
b548072f
GM
2472000-07-27 Gerd Moellmann <gerd@gnu.org>
248
3ab82477
GM
249 * fns.c (Fdelete): Make it work on vectors and strings in addition
250 to lists.
251
b548072f
GM
252 * fns.c (Qkey_or_value, Qkey_and_value): New variables.
253 (syms_of_fns): Initialize new variables.
254 (sweep_weak_table): Handle weakness `key-or-value' and
255 `key-and-value'.
256 (Fmake_hash_table): Recognize `key-and-value' and `key-or-value'
257 weakness, with t meaning the same as `key-and-value'.
258
91ae8751
KH
2592000-07-27 Kenichi Handa <handa@etl.go.jp>
260
261 * coding.h (struct coding_system): Member safe_charset deleted.
262
263 * coding.c (Qsafe_charsets): This variable deleted.
264 (Qsafe_chars, Vchar_coding_system_table, Qchar_coding_system): New
265 variables.
266 (coding_safe_chars): New function.
267 (CODING_SAFE_CHAR_P): New macro.
268 (CHARSET_OK): New arg C. Call CODING_SAFE_CHAR_P instead of
269 checking safe_charsets member of the coding system. Caller
270 changed.
271 (detect_coding_iso2022): New local variable safe_chars.
272 (DECODE_DESIGNATION): Call CODING_SAFE_CHAR_P instead of checking
273 safe_charsets member of the coding system.
274 (decode_coding_iso2022): New local variable safe_chars.
275 (ENCODE_ISO_CHARACTER_DIMENSION1): Don't check unsafe chars here.
276 (ENCODE_ISO_CHARACTER_DIMENSION2): Likewise.
277 (ENCODE_ISO_CHARACTER): Arguments changed. Caller changed.
278 (ENCODE_UNSAFE_CHARACTER): New macro.
279 (encode_coding_iso2022): New local variable safe_chars. Check
280 unsafe chars.
281 (setup_coding_system): Delete the code to initialize
282 coding->safe_charses
283 (intersection, find_safe_codings): New functions.
284 (Ffind_coding_systems_region_internal): New function.
285 (syms_of_coding): Defsubr it. Initialize Qsafe_chars,
286 Qsafe_cding_system. Make Vchar_coding_system_table a Lisp
287 variable and initialize it.
288
289 * fns.c (char_table_ref_and_index): New function.
290
291 * lisp.h (char_table_ref_and_index): Add prototype.
292
34a7a267
SS
2932000-07-26 Sam Steingold <sds@gnu.org>
294
295 * editfns.c (lisp_time_argument): Added third argument `usec'.
3ab82477 296 (Ffloat_time): New built-in Lisp function.
34a7a267 297
a95cb10a
GM
2982000-07-26 Gerd Moellmann <gerd@gnu.org>
299
3353ef5a
GM
300 * dispextern.h (GLYPH_FROM_CHAR_GLYPH): Use CHARACTERBITS bits
301 for the character code.
302
303 * config.in (HAVE_SOUND): Define only for FreeBSD, NetBSD and
304 GNU/Linux.
305
a95cb10a
GM
306 * xmenu.c (menu_highlight_callback): Call show_help_echo directly
307 if called for a popup menu.
308 (xmenu_show): Store help string in widget values.
309
b4a12321
DL
3102000-07-26 Dave Love <fx@gnu.org>
311
312 * syswait.h: Move some definitions.
313 (HAVE_SYS_WAIT_H): Undef for HPUX7, Convex.
314 [!HAVE_SYS_WAIT_H]: Define things unconditionally. More
315 perspicuous definitions.
316 (WTERMSIG): Fix bit pattern used.
317
13f5ad37
KH
3182000-07-26 Kenichi Handa <handa@etl.go.jp>
319
320 * print.c (print_object): If vector printing is truncated, print
321 "..." to indicate it as well as the case of list printing.
322
070fe99c
GM
3232000-07-25 Gerd Moellmann <gerd@gnu.org>
324
969065c3
GM
325 * xdisp.c (next_element_from_display_vector): Improve comments.
326
327 * lisp.h (GLYPH_MASK_CHAR, GLYPH_MASK_FACE): Use 19 bits
328 for the character code, and the rest for the face id as in 20.x.
329 (FAST_GLYPH_FACE, FAST_MAKE_GLYPH): Changed accordingly.
330
331 * window.c (window_display_table): Cleaned up.
332
070fe99c
GM
333 * syntax.c (Fforward_word): Add last arg nil in call of
334 Fconstrain_to_field.
335
bad77ef7
EZ
3362000-07-25 Eli Zaretskii <eliz@is.elta.co.il>
337
969065c3 338 * fileio.c (Frename_file) [DOS_NT]: If the file names are
bad77ef7
EZ
339 identical but for the letter-case, don't call
340 barf_or_query_if_file_exists.
341
c28da489
MB
3422000-07-25 Miles Bader <miles@gnu.org>
343
344 * editfns.c (find_field): Honor special `boundary' fields.
345 (Qboundary): New variables.
346 (syms_of_editfns): Initialize Qboundary.
347 (Fconstrain_to_field): Add the INHIBIT-CAPTURE-PROPERTY argument.
348 Use scan_buffer instead of find_before_next_newline, because it
349 allows us to detect the boundary case where there's a newline at
350 the search limit.
351 * lisp.h (Fconstrain_to_field): Update external declaration.
352
e3c31fd5
GM
3532000-07-24 Gerd Moellmann <gerd@gnu.org>
354
355 * print.c (temp_output_buffer_setup): Don't call1 Vrun_hooks
356 if that is nil.
c28da489 357
c66c29a2
DL
3582000-07-24 Dave Love <fx@gnu.org>
359
360 * s/sunos4-0.h, s/sol2.h:
361 (LIBS_TERMCAP): Move from m/sparc.h.
362
363 * m/sparc.h (TERMINFO): Moved to system files (probably only
364 relevant for sunos4 judging by its vintage).
365 (BITS_PER_LONG, BITS_PER_EMACS_INT, _LP64): Define conditional on
366 __arch64__.
367
fbe0a958
EZ
3682000-07-24 Eli Zaretskii <eliz@is.elta.co.il>
369
370 * xmenu.c (keymap_panes): Pass the keymap's prompt as the pane
371 name to single_keymap_panes.
372
7d88e5c9
AS
3732000-07-24 Andreas Schwab <schwab@suse.de>
374
375 * fns.c (Fmakehash): Pass Qeql to Fmake_hash_table if TEST is nil.
376
e024b101
GM
3772000-07-24 Gerd Moellmann <gerd@gnu.org>
378
379 * xdisp.c (with_echo_area_buffer): Take additional EMACS_INT
380 parameters instead of using int parameters. Expect FN to accept
381 EMACS_INT parameters.
382 (display_echo_area, resize_echo_area_axactly, current_message)
383 (truncate_echo_area, set_message_1): Call with_echo_area_buffer
384 with new argument list.
385 (resize_mini_window_1): New callback function.
386 (current_message_1, truncate_message_1, set_message_1): Change
387 parameter lists to the new format expected by
388 with_echo_area_buffer.
389
25c1a9ce
KH
3902000-07-24 Kenichi Handa <handa@etl.go.jp>
391
392 * fontset.c (fontset_ref): Remove INLINE declaration.
393 (fontset_ref_via_base): Likewise.
394 (Fset_fontset_font): Convert FAMILY and REGISTRY specifications
395 to downcase.
396
7f987ac0
EZ
3972000-07-23 Eli Zaretskii <eliz@is.elta.co.il>
398
399 * msdos.c (IT_note_mouse_highlight): Process overlays in the
400 correct order of priority. If help echo was found in an overlay,
401 use that overlay as the object in which the help echo was found.
402
e2db3069
MB
4032000-07-22 Miles Bader <miles@gnu.org>
404
405 * textprop.c (Fprevious_single_char_property_change): The initial
406 property value should be from the position preceding POSITION, not
407 following it.
408
5e3203e4
EZ
4092000-07-22 Eli Zaretskii <eliz@is.elta.co.il>
410
411 * coding.c (syms_of_coding): Doc fix for
412 inhibit-iso-escape-detection.
413
62145073
GM
4142000-07-21 Gerd Moellmann <gerd@gnu.org>
415
c20aeb83
GM
416 * xterm.c (note_mouse_highlight): Process overlays in the right
417 order of priority.
34a7a267 418
743934db
GM
419 * keyboard.c (show_help_echo, gen_help_event): Extend comments.
420
421 * xterm.c (note_mouse_highlight): If help-echo was found in an
422 overlay, use that overlay as the object in which the help was
423 found.
424
d1dc7e43 425 * window.c (foreach_window_1): Fix typo reversing an if-condition.
34a7a267 426
62145073
GM
427 * window.c (foreach_window): Instead of a fake variable argument
428 list, take one USER_DATA argument.
429 (foreach_window_1): Likewise, and call callback functions with two
430 args, the window and USER_DATA.
431 (struct check_window_data): New struct.
432 (check_window_containing): Use it.
433 (window_from_coordinates): Set up a struct check_window_data for
434 foreach_window.
435 (add_window_to_list, freeze_window_start): Change parameters
436 according to new calling convention.
437
438 * window.h (foreach_window): Change prototype.
439
440 * buffer.c (Fprevious_overlay_change): Avoid memory leak.
441
4422000-07-21 Eli Zaretskii <eliz@is.elta.co.il>
443
444 * xmenu.c (menu_help_callback): Call show_help_echo with
445 additional arguments OBJECT and POS.
446
11270583
KH
4472000-07-21 Kenichi Handa <handa@etl.go.jp>
448
07b14857
KH
449 * data.c (Faset): Allow storing any multibyte character in a
450 string. Convert unibyte string to multibyte if necessary.
451
11270583
KH
452 * xfns.c (x_encode_text): New function.
453 (x_set_name): Use x_encode_text.
454 (x_set_title): Likewise.
455
456 * xselect.c (lisp_data_to_selection_data): Use x_encode_text.
457
458 * xterm.h (x_encode_text): Add prototype.
459
bc75b4fd
DL
4602000-07-20 Dave Love <fx@gnu.org>
461
462 * ccl.c (Fccl_execute_on_string): Don't check xmalloc return. Use
463 xfree, not free.
464
48c14970
EZ
4652000-07-20 Eli Zaretskii <eliz@is.elta.co.il>
466
467 * msdos.c (help_echo_window): New variable.
468 (syms_of_msdos): Initialize and staticpro it.
469 (IT_note_mode_line_highlight): Set help_echo_window.
470 (IT_note_mouse_highlight): Ditto.
471 (dos_rawgetc): Store help_echo_window in the second event produced
472 for HELP_EVENTs.
473
474 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight):
475 Record the object that generated the help echo and the position of
476 that object in help_echo_object and help_echo_pos. Record that
477 some glyphs in a row are displayed in mouse-face.
478 (IT_update_begin): Don't clear mouse highlight unless one of the
479 enabled glyph rows is marked as being displayed in mouse-face.
480 (dos_rawgetc): Generate 2 events for HELP_EVENT. Pass the object
481 and position recorded in help_echo_object and help_echo_pos to the
482 event queue.
483 (IT_menu_display): Accept a new argument PN: the pane number of
484 the current menu pane. Record the pane number and the item
485 number of the item which has associated help string.
486 (XMenuActivate): Update the prototype for help_callback in
487 function declaration. Call IT_menu_display with the current menu
488 pane number as an additional argument. Call help_callback with
489 two additional arguments: the pane number and the item number of
490 the menu item associated with the help text.
491 (help_echo_object, help_echo_pos): New variables.
492 (syms_of_msdos): Initialize them and staticpro help_echo_object.
493
494 * msdos.h (XMenuActivate): Update prototype.
495
4279296d
GM
4962000-07-19 Gerd Moellmann <gerd@gnu.org>
497
47db06aa
GM
498 * xdisp.c (with_echo_area_buffer): Call FN with more arguments.
499 Add some more prototypes.
500
501 * xterm.c, xterm.h: Add some more prototypes.
502
503 * lisp.h (Fnext_single_char_property_change): Add prototype.
504
505 * dispnew.c (direct_output_for_insert): Remove confusing
506 outer local variable mouse_face_overwritten_p.
507 (glyph_row_slice_p): Put in #ifdef GLYPH_DEBUG.
508
4279296d
GM
509 * alloc.c (allocate_string_data): Don't copy old string contents.
510
670acd62
KH
5112000-07-19 Kenichi Handa <handa@etl.go.jp>
512
513 * coding.c (code_convert_region): Delete text properties before
514 shrinking the conversion region.
515
7cea38bc
GM
5162000-07-18 Gerd Moellmann <gerd@gnu.org>
517
dc1cac59
GM
518 * dispnew.c (update_text_area): Write the whole row if it
519 has mouse-face in it.
520
85a8aca9
GM
521 * xfaces.c (face-alternative-font-family-alist): Remove
522 DEFVAR_LISP; staticpro instead.
523
34a7a267 524 * xmenu.c (menu_help_callback): Call show_help_echo with
7cea38bc
GM
525 new arguments.
526
527 * keyboard.c (show_help_echo): Add parameter WINDOW.
528 (read_char): Call show_help_echo with window extracted from Lisp
529 help event.
530 (gen_help_event): Add parameter WINDOW.
531
532 * keyboard.h (show_help_echo, gen_help_event): Change prototypes.
533
534 * xterm.c (help_echo_window): New variable.
535 (note_mouse_highlight, note_tool_bar_highlight): Set
536 help_echo_window.
537 (XTread_socket): Pass help_echo_window to gen_help_event.
538 (syms_of_xterm): Initialize and staticpro help_echo_window.
539
f8276b77
DL
5402000-07-18 Dave Love <fx@gnu.org>
541
542 * Makefile.in: Fix dependencies of blockinput.h on atimer.h,
543 systime.h.
544
088831a6
GM
5452000-07-18 Gerd Moellmann <gerd@gnu.org>
546
3d6cd763
GM
547 * alloc.c (allocate_string_data): If string had already data
548 assigned, copy old contents to new string data.
549
550 * coding.c (syms_of_coding): Fix typo in spelling of variable
551 `inhibit-iso-escape-detection'.
552
088831a6
GM
553 * alloca.c (free) [emacs && EMACS_FREE]: Define as EMACS_FREE.
554
555 * Makefile.in: Add dependencies on dispextern.h.
556 (alloca.o): Don't define malloc and define EMACS_FREE instead of
557 `free'; both can conflict with system header files.
558
bc8a8d55
KH
5592000-07-18 Kenichi Handa <handa@etl.go.jp>
560
561 * charset.h (MAKE_CHAR): Return reasonable code even if CHARSET is
562 undefined.
563
069f5950
DL
5642000-07-18 Dave Love <fx@gnu.org>
565
566 * window.c (Fwindow_list): Declare arg `window'.
567
aa96c820
KH
5682000-07-18 Kenichi Handa <handa@etl.go.jp>
569
570 * coding.c (setup_coding_system): Don't override the explicitly
571 specified designations.
572
06be8d32
MB
5732000-07-15 Miles Bader <miles@gnu.org>
574
575 * editfns.c (char_property_eq, char_property_stickiness): Renamed
576 from `text_property_eq' and `text_property_stickiness', respectively.
577 (find_field, Fconstrain_to_field, char_property_eq)
578 (char_property_stickiness): Changed to call char-property functions
579 instead of text-property-only ones.
580
581 * textprop.c (Fnext_single_char_property_change): Made a subr (was
582 `next_single_char_property_change'). Do more error checking, and
583 cleanup limit behavior.
584 (Fprevious_single_char_property_change): New function.
585 (syms_of_textprop): Initialize new subrs.
586
587 * xdisp.c (display_prop_end, invisible_text_between_p):
588 Call Fnext_single_char_property_change instead of
589 next_single_char_property_change.
590
3fddcdc3
JR
5912000-07-15 Jason Rumney <jasonr@gnu.org>
592
593 * w32menu.c (w32_menu_show): Call free_menubar_widget_value_tree
594 after menu is finished with.
595 (add_menu_item): Only consider wv->title as a menu title.
596 (w32_menu_display_help): Add OBJECT and POS to show_help_echo.
597
598 * w32fns.c (w32_wnd_proc) [WM_DRAW_ITEM]: Do not try to draw a
599 null title.
600 (FONT_REGEXP): Remove unused macro, and its sub-components.
601 (syms_of_w32fns): Replace underscore in w32-enable-synthesized-fonts.
602
603 * w32term.c (help_echo_object, help_echo_pos): New variables.
604 (note_mode_line_highlight): Store additional information about the
605 help-echo in help_echo_object and help_echo_pos. Check both
606 `local-map' and `keymap' properties for changing the cursor
607 (note_mouse_highlight): Store additional information about the
608 help-echo in help_echo_object and help_echo_pos.
609 (note_tool_bar_highlight): Set help_echo_object to nil and
610 help_echo_pos to -1.
611 (w32_read_socket): Use gen_help_event instead of filling
612 input_events manually.
613 (syms_of_w32term): Staticpro help_echo_object.
614 (x_update_window_end): Add parameter MOUSE_FACE_OVERWRITTEN_P. If
615 set, arrange for a mouse-highlight redisplay in
616 XTframe_up_to_date.
617 (x_clear_mouse_face): New function.
618 (w32_redisplay_interface): Add pointer to x_clear_mouse_face.
619 (x_update_window_begin): No need to turn off the mouse
620 highlight here.
621 (show_mouse_face): Set the mouse_face_p flag of glyph rows
622 depending on whether they contain glyphs highlighted in
623 mouse-face.
624 (x_fill_stretch_glyph_string): Consume runs of stretch
625 glyphs instead of a single one.
626 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
627 with new argument list.
628 (x_set_glyph_string_gc): Make sure the face's GC is valid.
629 (x_append_glyph, x_append_composite_glyph)
630 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
631 changes in struct glyph starting 1999-12-27. See comments for
632 xterm.c on 2000-07-05.
633
178c5d9c
SS
6342000-07-14 Sam Steingold <sds@gnu.org>
635
636 * xfaces.c (realize_x_face): Fix the last patch:
637 check `default_face' before dereferencing.
638
6fe533f6
DL
6392000-07-14 Dave Love <fx@gnu.org>
640
069f5950 641 * syntax.c (back_comment): Add null default in switch (for pcc).
6fe533f6 642
dd7b81cf
KH
6432000-07-14 Kenichi Handa <handa@etl.go.jp>
644
0693904a 645 * xfaces.c (realize_x_face): Make fontset using the base of the
178c5d9c 646 default_face's fontset, not using the default fontset.
0693904a 647
dd7b81cf
KH
648 * coding.c (inhibit_iso_escape_detection): New variable.
649 (syms_of_coding): Make it a Lisp variable.
650 (detect_coding_iso2022): If inhibit_iso_escape_detection is
651 nonzero, ignore ISO2022's escape sequence.
652
d5aa31d8
GM
6532000-07-14 Gerd Moellmann <gerd@gnu.org>
654
e5acf0ca
GM
655 * alloca.c (malloc) [emacs]: Define as xmalloc.
656
bd23a692
GM
657 * xfns.c (Fx_show_tip): If frame parameters contain a position,
658 use that instead of the mouse position. Add parameters DX and DY.
659
660 * dispextern.h (Fx_show_tip): Adjust number of parameters
661 in prototype.
662
9662da0b
GM
663 * keyboard.c (show_help_echo): Add parameters OBJECT and POS.
664 if HELP is a function, call it with OBJECT and POS as parameters
665 to get the help to display.
666 (gen_help_event, kbd_buffer_store_help_event): New functions.
667 (kbd_buffer_get_event): Construct the Lisp help-event differently.
668 (read_char): Call show_help_echo with new parameters.
669
178c5d9c 670 * keyboard.h (gen_help_event, kbd_buffer_store_help_event):
9662da0b
GM
671 Add prototypes.
672
673 * xterm.c (help_echo_object, help_echo_pos): New variables.
674 (note_mode_line_highlight): Store additional information about the
675 help-echo in help_echo_object and help_echo_pos. Check both
676 `local-map' and `keymap' properties for changing the cursor
677 (note_mouse_highlight): Store additional information about the
678 help-echo in help_echo_object and help_echo_pos.
679 (note_tool_bar_highlight): Set help_echo_object to nil and
680 help_echo_pos to -1.
681 (XTread_socket): Use gen_help_event instead of filling
682 input_events manually.
683 (syms_of_xterm): Staticpro help_echo_object.
684
685 * xmenu.c (menu_highlight_callback): Use
686 kbd_buffer_store_help_event instead of setting up and input_event
687 structure manually.
688
689 * xdisp.c (eval_form): GCPRO argument sexpr.
690 (call_function): New function.
691 (handle_single_display_prop): Use call_function and FUNCTIONP
692 instead of checking whether if font_height is a symbol and
693 using eval_form.
694
695 * eval.c (internal_condition_case_2): New function.
696
697 * lisp.h (FUNCTIONP): New macro.
698 (internal_condition_case_2, call_function): Add prototypes.
699
d5aa31d8
GM
700 * xterm.c (construct_mouse_click, x_scroll_bar_to_input_event)
701 (x_scroll_bar_handle_click, SET_SAVED_MENU_EVENT, XTread_socket):
702 Always set `arg' member of input_events.
703 (construct_menu_click): Unused function removed.
704
705 * msdos.c (dos_rawgetc): Always set `arg' member of input_events.
706
707 * w32term.c (construct_mouse_click, construct_mouse_wheel)
708 (construct_drag_n_drop, x_scroll_bar_handle_click)
709 (w32_read_socket): Always set `arg' member of input_events.
710
711 * keyboard.c (show_help_echo): Use eval_form. Add comment.
712
713 * lisp.h (eval_form): Add prototype.
714
715 * xdisp.c (eval_form): Make it externally visible.
716
0f1a9b23
GM
7172000-07-13 Gerd Moellmann <gerd@gnu.org>
718
719 * xterm.c (x_handle_tool_bar_click): Store the frame in the
720 frame_or_window slot of TOOL_BAR_EVENT input events instead of
721 consing. For prefix events, store the frame in the `arg' slot of
722 the event, otherwise store the key there.
723 (XTread_socket): Instead of consing, use the frame_or_window slot
724 of HELP_EVENTs for the frame, and the `arg' slot for the help
725 string.
726
727 * xmenu.c (menu_highlight_callback): Store help string in the
728 `arg' member of the input event; don't cons.
729 (menubar_selection_callback): Use the `arg' slot of input events
730 to queue additional information, instead of consing.
731
732 * msdos.c (dos_rawgetc): Adapt to change of HELP_EVENTs.
733
734 * w32term.c (w32_handle_tool_bar_click): Adapt to changes in
735 TOOL_BAR_EVENTs.
736 (w32_read_socket): Adapt to changes in HELP_EVENTs.
737
738 * w32menu.c (menubar_selection_callback): Use the `arg' slot of
739 input events to queue additional information, instead of consing.
740
741 * keyboard.c (kbd_buffer_gcpro): Renamed from
742 kbd_buffer_frame_or_window. Now used for all Lisp objects
743 referenced from the input queue.
744 (kbd_buffer_store_event): Always use structure assignment for
745 copying input events. Record all Lisp objects referenced from
746 events in kbd_buffer_gcpro.
747 (kbd_buffer_get_event): Construct Lisp `help-echo' events
748 differently from input events. Test for prefix menu_bar_events
749 and TOOL_BAR_EVENTs differently. Reset all slots used by an input
750 event in kbd_buffer_gcpro to nil.
751 (make_lispy_event) <TOOL_BAR_EVENT>: Treat an input event whose
752 frame_or_window is equal to its arg member as prefix events.
753 (stuff_buffered_input): Reset all slots in kbd_buffer_gcpro
754 used by an input event to nil.
755 (init_keyboard): Use two times the size of the input queue
756 for kbd_buffer_gcpro.
757 (syms_of_keyboard): Likewise.
758
759 * emacs.c (handle_USR2_signal, handle_USR1_signal): Use
760 USER_SIGNAL_EVENT.
761
762 * termhooks.h (struct input_event): Add member `arg'.
763 (MENU_BAR_EVENT): Renamed from menu_bar_event.
764 (USER_SIGNAL_EVENT): Renamed from user_signal.
765
766 * xfaces.c (ASET): Remove definition.
767
768 * lisp.h (AREF, ASET, ASIZE): New macros.
769
770 * fontset.c (AREF, ASIZE): Remove definitions.
771
772 * fns.c (AREF): Remove definition.
178c5d9c 773
0f1a9b23
GM
774 * composite.c (AREF): Remove definition.
775
712eaef2
GM
7762000-07-12 Gerd Moellmann <gerd@gnu.org>
777
d8ee7803
GM
778 * dispnew.c (redraw_overlapped_rows): Add missing local.
779 (scrolling_window): Remove debug code.
780
712eaef2
GM
781 * xdisp.c (try_window_reusing_current_matrix, try_window_id):
782 Before scrolling, turn off a mouse-highlight in the window
783 being scrolled.
784
785 * xterm.c (x_update_window_end): Add parameter
786 MOUSE_FACE_OVERWRITTEN_P. If set, arrange for a mouse-highlight
787 redisplay in XTframe_up_to_date.
788 (x_clear_mouse_face): New function.
789 (x_redisplay_interface): Add pointer to x_clear_mouse_face.
790
791 * dispnew.c (make_current): Preserve the mouse_face_p flag of the
792 current glyph row.
793 (update_window_line): Add parameter MOUSE_FACE_OVERWRITTEN_P. Set
794 it when any row is written to that contains glyphs highlighted in
795 mouse-face.
796 (update_window): Call the window update end hook with new
797 parameter MOUSE_FACE_OVERWRITTEN_P.
798 (direct_output_for_insert): Give up if row contains mouse-face.
799
800 * dispextern.h (struct redisplay_interface): Add parameter
801 MOUSE_FACE_OVERWRITTEN_P to update_window_end_hook function.
802 (clear_mouse_face): New function pointer member.
803
02010917
SM
8042000-07-11 Stefan Monnier <monnier@cs.yale.edu>
805
806 * syntax.c (back_comment): Use one switch rather than a few `if's.
807 Obey open_paren_in_column_0_is_defun_start.
808 When reverting to the `slow' method, try to nicely handle the case
809 of nested comments by checking that the comment-starter we found
810 does indeed match the comment-ender.
811 (scan_sexps_forward, scan_sexps_forward):
812 Ignore excessive opening parenthesis rather than throwing an error.
813
d76c03ea
GM
8142000-07-11 Gerd Moellmann <gerd@gnu.org>
815
816 * doc.c (Fsubstitute_command_keys): Handle case that a GC
817 in Fwhere_is_internal or get_keymap_1 relocates string contents.
818
819 * dispnew.c (direct_output_forward_char): Give up if currently
820 displaying a message instead of the minibuffer contents.
821
822 * xterm.c (x_update_window_begin): No need to turn off the mouse
823 highlight here.
824 (show_mouse_face): Set the mouse_face_p flag of glyph rows
825 depending on whether they contain glyphs highlighted in
826 mouse-face.
827
828 * dispnew.c (row_equal_p): Add parameter MOUSE_FACE_P. If set,
829 compare the mouse_face_p flags of both rows.
830
831 * dispextern.h (struct glyph_row): Add flag mouse_face_p.
832
d55ead18
EZ
8332000-07-11 Eli Zaretskii <eliz@is.elta.co.il>
834
835 * keyboard.c (show_help_echo): Accept additional parameter
836 ok_to_overwrite_keystroke_echo.
837 (read_char): Call show_help_echo with a zero
838 ok_to_overwrite_keystroke_echo argument.
839 * keyboard.h (show_help_echo): Update prototype of
840 show_help_echo.
841 * xmenu.c (menu_help_callback): Call show_help_echo with non-zero
842 ok_to_overwrite_keystroke_echo argument.
843 * w32menu.c (w32_menu_display_help): Call show_help_echo with
844 non-zero ok_to_overwrite_keystroke_echo argument.
845
df75b1a3
GM
8462000-07-10 Gerd Moellmann <gerd@gnu.org>
847
4b92c49a
GM
848 * xdisp.c (try_window_id): If changes are all below what is
849 displayed in the window, and point is in the window, we still
850 might have to find point on the display.
851
852 * xterm.c (x_fill_stretch_glyph_string): Consume runs of stretch
853 glyphs instead of a single one.
854 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
855 with new argument list.
856 (x_set_glyph_string_gc): Make sure the face's GC is valid.
857
df75b1a3
GM
858 * keymap.c (get_keymap_1): Add comment that this function can GC.
859 (where_is_internal_2, where_is_internal_1): Add GCPROs, add
860 comment that functions can GC.
861 (Fset_keymap_parent): GCPRO arg KEYMAP.
862
4314cf3e
EZ
8632000-07-10 Eli Zaretskii <eliz@is.elta.co.il>
864
865 * msdos.c (XMenuActivate): After exiting the menu, restore the
866 echo area message and erase it.
867
ab49ce15
KH
8682000-07-10 Kenichi Handa <handa@etl.go.jp>
869
870 * fontset.c (Ffontset_info): Make the return value more compatible
871 with that of Emacs 20.
872
090a072f
GM
8732000-07-07 Gerd Moellmann <gerd@gnu.org>
874
875 * eval.c (Fsignal): Handle case that backtrace_list is null.
876
f92de4a6
KH
8772000-07-07 Kenichi Handa <handa@etl.go.jp>
878
879 * ccl.c (Fccl_execute): Typo fixed.
880
dd8888a1
GM
8812000-07-06 Gerd Moellmann <gerd@gnu.org>
882
e5c81191 883 * window.c (window_loop): Add missing gcpro1 local variable.
178c5d9c 884
dd8888a1
GM
885 * window.c (Fwindow_list): Reverse list at the end.
886 (candidate_window_p): Add parameter OWINDOW. ALL_FRAMES nil
887 means allow windows on OWINDOW's frame, only.
888 (window_loop): Simplified; use Fwindow_list.
889
890 * Makefile.in (TAGS-LISP): Don't pass `$(lispsource)' to make.
891
485266d0
GM
8922000-07-05 Gerd Moellmann <gerd@gnu.org>
893
894 * xterm.c (XTread_socket): Increment handling_signal at the start,
895 decrement it at the end.
896
897 * eval.c (handling_signal): New variable.
898 (Fsignal): Abort if handling_signal is non-zero.
899
900 * lisp.h (handling_signal): External declaration.
178c5d9c 901
485266d0
GM
902 * s/freebsd.h (WAITTYPE, WRETCODE): Put in #if 0.
903
80fcd514
KR
9042000-07-05 Ken Raeburn <raeburn@gnu.org>
905
906 Sound support for NetBSD through "Linux emulation" support:
907 * config.in (HAVE_SOUNDCARD_H): Undef.
908 (HAVE_SOUND): Define if HAVE_SOUNDCARD_H.
909 * Makefile.in (LIBSOUND): New variable.
910 (LIBES): Include it.
911 * sound.c [HAVE_SOUNDCARD_H]: Include <sys/ioctl.h> and
912 <soundcard.h>.
913 (DEFAULT_SOUND_DEVICE): Define to "/dev/dsp" if not defined
914 elsewhere.
915 (vox_open): Use DEFAULT_SOUND_DEVICE.
916 * s/netbsd.h (DEFAULT_SOUND_DEVICE): Define to /dev/audio.
917
d5c5cddd
GM
9182000-07-05 Gerd Moellmann <gerd@gnu.org>
919
920 * print.c (print_error_message): If Vsignaling_function is set,
921 show it in *Messages*.
922
923 * lisp.h (Vsignaling_function): External declaration.
924
925 * eval.c (Vsignaling_function): New variable.
926 (Fsignal): Compute it.
927 (syms_of_eval): Staticpro it.
928
65171e3a
DL
9292000-07-05 Dave Love <fx@gnu.org>
930
931 * syswait.h: Use the autoconf recommended approach. Old code
932 #if'd out in case we need to revert.
933
178c5d9c 934 * config.in (HAVE_SYS_WAIT_H): Added.
65171e3a 935
e2c46326
AI
9362000-07-05 Andrew Innes <andrewi@gnu.org>
937
938 * vm-limit.c (check_memory_limits) [REL_ALLOC]: Use real_morecore
939 when non-NULL instead of __morecore, to take account of buffer
940 memory. This also solves a problem with spurious memory warnings
941 on Windows.
942
943 * ralloc.c: Make real_morecore non-static.
944
945 * eval.c (internal_condition_case): Comment out abort if
946 interrupt_input_blocked is not zero.
947
948 * makefile.nt: Add support for `bootstrap' and related targets.
949 Include minimal debug info in emacs.exe in release build.
950 Remove all dependencies on lisp.h, and fixup some others.
951
952 * w32.c (init_environment): Install code from 20.7 for providing
953 default values for environment variables, based on the
954 executable's own location.
955 (map_w32_filename): Handle filenames that are longer than
956 MAX_PATH.
957 (sys_socket): Install socket inheritance bug fix from 20.7.
958
959 * alloca.c [emacs]: Include lisp.h (needed by atimer.h included
960 here via blockinput.h).
961
a027a91b
SM
9622000-07-05 Stefan Monnier <monnier@cs.yale.edu>
963
e4b31601
SM
964 * w32menu.c (w32_menu_display_help):
965 * xmenu.c (menu_help_callback): Use show_help_echo.
a027a91b
SM
966
967 * keyboard.h (show_help_echo): Declare.
968
969 * keyboard.c (show_help_echo): New function, extracted from read_char.
970 Feval its `msg' argument if it's a cons cell.
971 (read_char): Use it.
4cf8d9d5 972 (follow_key): Pass `autoload' to get_keyelt.
a027a91b 973
178c5d9c 974 * xterm.c (note_mode_line_highlight, note_mouse_highlight)
a027a91b 975 (note_tool_bar_highlight, XTread_socket):
178c5d9c 976 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight)
a027a91b
SM
977 (dos_rawgetc):
978 * w32term.c (note_mode_line_highlight, note_mouse_highlight)
979 (note_tool_bar_highlight, w32_read_socket):
980 Do not gratuitously ignore non-string `help-echo' properties.
981
88d75730
GM
9822000-07-05 Gerd Moellmann <gerd@gnu.org>
983
969f7e79
GM
984 * eval.c (Feval): Put check for interrupt_input_block in #if 0.
985
71201b00
GM
986 * window.c (delete_all_subwindows): Reset Vwindow_list.
987
88d75730
GM
988 * xterm.c (x_append_glyph, x_append_composite_glyph)
989 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
990 changes in struct glyph starting 1999-12-27. Some bit-fields of
991 struct glyph were not set, which made glyphs unequal when compared
992 with GLYPH_EQUAL_P. Redisplay outputs such glyphs, and flickering
993 effects were the result. This also depended on the contents of
994 memory returned by xmalloc. If flickering happens again, activate
995 the code in clear_glyph_row that's in #if 0. If the flickering is
996 gone with that, chances are that it is caused by something
997 similar.
998
999 * dispnew.c (clear_glyph_row): Add debug code in #if 0.
178c5d9c 1000
88d75730
GM
1001 * dispextern.h: Add some comments.
1002
1003 * window.c (add_window_to_list): Add parameter LIST.
1004 (window_list): Order list so that, for each frame, windows are
1005 in canonical order, and so that frames appear in the list in
1006 the order given by Vframe_list.
1007 (next_window): Reverse the handling of NEXT_P.
1008
53654733
GM
10092000-07-04 Gerd Moellmann <gerd@gnu.org>
1010
87efd256
GM
1011 * window.c (Vwindow_list): New variable.
1012 (make_window, delete_window): Set Vwindow_list to nil.
1013 (check_window_containing): New function.
1014 (window_from_coordinates): Rewritten.
1015 (add_window_to_list, window_list, candidate_window_p)
1016 (decode_next_window_args, next_window): New functions.
1017 (Fnext_window, Fprevious_window): Rewritten in terms of
1018 next_window.
1019 (Fwindow_list): New function.
1020 (Fother_window): Cleaned up.
1021 (foreach_window): Add a longer "variable argument list". Let
1022 callback function return 0 to indicate that cycling over windows
1023 should stop.
1024 (foreach_window_1): Likewise.
1025 (freeze_window_start): Return int.
1026 (init_window): New function.
1027 (syms_of_window): Staticpro Vwindow_list and defsubr Swindow_list.
1028
1029 * emacs.c (handle_USR1_signal, handle_USR2_signal) Clear
1030 input_event with bzero.
1031 (main): Call init_window.
1032
53654733
GM
1033 * keymap.c (get_keyelt): Temporarily inhibit GC while evaluating
1034 a menu filter.
1035
4a8c194f
KH
10362000-07-04 Kenichi Handa <handa@etl.go.jp>
1037
1038 * composite.h (make_composition_value_copy): Extern it.
1039
1040 * composite.c (make_composition_value_copy): New function.
1041
1042 * editfns.c (Fformat): While copying text properties, make each
1043 composition property value a copy.
1044
1045 * fns.c (concat): While copying text properties, make each
1046 composition property value a copy.
1047
831a6cb0
GM
10482000-07-03 Gerd Moellmann <gerd@gnu.org>
1049
2f516940
GM
1050 * m/macppc.h (LINKER, LD_SWITCH_MACHINE) [LINUX]: Define.
1051
178c5d9c 1052 * fns.c (sweep_weak_table): Mark only objects that are not
aee625fa
GM
1053 marked already.
1054
831a6cb0
GM
1055 * frame.c (next_frame, prev_frame): If MINIBUF is a window,
1056 include those frames as candidates which have their focus
1057 redirected to the minibuffer frame.
1058
d9c4f922
SM
10592000-07-03 Stefan Monnier <monnier@cs.yale.edu>
1060
1061 * fns.c (Fputhash): Return `value' rather than nil.
1062
3780bc22
GM
10632000-06-30 Gerd Moellmann <gerd@gnu.org>
1064
97d176db
GM
1065 * frame.c (next_frame): Don't check focus redirection in case
1066 MINIBUF is a window. Doing so excludes frames using MINIBUF
3780bc22
GM
1067 unless their focus is redirected, which contradicts the
1068 specification of next-frame, and leads to infinite loops in
1069 certain situations when cycling through windows with next-window.
1070
dca9961d
KH
10712000-06-30 Kenichi Handa <handa@etl.go.jp>
1072
1073 * coding.c (code_convert_region): Even if the length of text is
1074 zero, try to convert it if coding->type is coding_type_ccl.
1075 (decode_coding_string, encode_coding_string): Likewise.
1076
d5483ab1
GM
10772000-06-28 Gerd Moellmann <gerd@gnu.org>
1078
af5c25e1 1079 * xdisp.c (try_window_reusing_current_matrix): Don't try to reuse
97d176db 1080 the display if windows_or_buffers_changed.
af5c25e1
GM
1081
1082 * dispnew.c (struct row_entry): New structure.
1083 (row_entry_pool, row_entry_pool_size, row_entry_idx, row_table)
1084 (row_table_size, old_lines, new_lines, old_lines_size)
1085 (new_lines_size, run_pool, runs_size, runs): New variables.
1086 (add_row_entry): New function.
1087 (scrolling_window): Use data structures allocated with xmalloc and
97d176db 1088 held in global variables, instead of allocating them with alloca and
af5c25e1
GM
1089 holding them in local variables. Use a larger hash table whose
1090 size depends on glyph matrix sizes. Don't use bzero to clear the
1091 hash table; instead, clear used slots only.
1092
1093 * fns.c (next_almost_prime): Make it externally visible.
1094
1095 * lisp.h (next_almost_prime): Add prototype.
1096
d5483ab1
GM
1097 * s/isc4-0.h (sigunblock): Define.
1098
1099 * s/sco5.h (sigunblock): Define.
1100
93e40f40
DL
11012000-06-27 Dave Love <fx@gnu.org>
1102
1103 * s/osf1.h (C_SWITCH_SYSTEM, LIBS_SYSTEM): Revert last change
1104 (moved to osf5-0.h).
1105 [!NOT_C_CODE]: Protect string.h stuff.
1106
1107 * s/osf5-0.h (C_SWITCH_SYSTEM, WAIT_USE_INT, SYS_SIGLIST_DECLARED)
1108 (sys_siglist, NSIG): Definitions moved here from osf1.h.
1109
3c4b7685
GM
11102000-06-27 Gerd Moellmann <gerd@gnu.org>
1111
97d176db 1112 * xdisp.c (resize_mini_window): Subtract the extra line spacing
3c4b7685
GM
1113 below the last line from the needed window height.
1114
32cad0aa
SM
11152000-06-26 Stefan Monnier <monnier@cs.yale.edu>
1116
1117 * fns.c (Fplist_member): Renamed from Fwidget_plist_member.
1118 (Fwidget_get): Use it.
1119 (syms_of_fns): Defsubr it.
1120
2c69ced2
GM
11212000-06-26 Gerd Moellmann <gerd@gnu.org>
1122
178c5d9c 1123 * xterm.c (xim_initialize) [!USE_XIM]: Don't set up the
1d36487c
GM
1124 display info for XIM.
1125 (xim_open_dpy): Likewise.
1126 (xim_close_dpy): Don't free the display info's XIM.
1127
1128 * xfns.c (x_window) [!USE_XIM]: Don't call create_frame_ic.
1129
1130 * config.in (USE_XIM): New define.
1131
3fc720e4
GM
1132 * keymap.c (get_keyelt): For menu-items containing a `:filter
1133 FILTER', apply FILTER to the menu-item's definition to get the
1134 real definition to use.
1135
1136 * lisp.h (QCfilter): External declaration.
1137
2c69ced2
GM
1138 * xfns.c (Fimage_size): New function.
1139 (syms_of_xfns): Defsubr it.
1140
f978b2a2
AS
11412000-06-26 Andreas Schwab <schwab@suse.de>
1142
1143 * coding.c (decode_coding_string): Re-fetch STRING_BYTES after
1144 Fstring_as_unibyte.
1145
94cc7892
DL
11462000-06-25 Dave Love <fx@gnu.org>
1147
1148 * term.c [!HAVE_TERMCAP_H]: Declare tputs, tgetent, tgetflag,
1149 tgetnum.
1150
1151 * Makefile.in (blockinput.h): Depend on atimer.h.
1152 (atimer.h): Depend on systime.h.
1153
1154 * blockinput.h: Protect against multiple inclusion. Include
1155 atimer.h.
1156
1157 * atimer.h: Protect against multiple inclusion. Include
1158 systime.h.
1159
1160 * lisp.h (swap_in_global_binding): Declare.
1161
b8c24556
KR
11622000-06-24 Ken Raeburn <raeburn@gnu.org>
1163
1164 * process.c (Fopen_network_stream): Turn off atimers for duration
1165 of call to connect. (Patch from Gerd.)
1166
8cf8560b
DL
11672000-06-23 Dave Love <fx@gnu.org>
1168
511c7541
DL
1169 * ralloc.c: Maybe include unistd.h
1170
8cf8560b
DL
1171 * emacs.c (setgrp): Undefine before defining.
1172 (malloc_warning, set_time_zone_rule, index): Prototype.
1173
1174 * systime.h (EMACS_GET_TIME) [!GETTIMEOFDAY_ONE_ARGUMENT]: Use
1175 HAVE_STRUCT_TIMEZONE.
1176
1177 * s/osf1.h: Move string.h hack here from alpha.h and make it
1178 conditional.
1179 (C_SWITCH_SYSTEM): Use _OSF_SOURCE, not -BSD, which clashes with
1180 _XOPEN_SOURCE.
1181 (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist, NSIG): Define.
1182 (SOCKLEN_TYPE): Don't define.
1183
1184 * m/alpha.h: Remove string.h hack.
1185
1186 * s/osf5-0.h: New file.
1187
1188 * filelock.c: Use feature tests for fcntl.h, string.h. Don't
1189 include time.h, done by systime.h.
1190 [__FreeBSD__]: Remove redundant includes.
1191
3fc720e4 1192 * callproc.c (setpgrp): Undefine before defining.
8cf8560b
DL
1193 (delete_temp_file): Return Qnil to avoid warning.
1194
1195 * config.in (HAVE_TERM_H, HAVE_STRUCT_TIMEZONE): Add.
1196
1197 * xfaces.c: Include fontset.h dependent on HAVE_WINDOW_SYSTEM, not
1198 HAVE_X_WINDOWS.
1199
1200 * fontset.h (free_face_fontset): Renamed from fs_free_face_fontset.
1201
1202 * composite.h (compose_text): Declare.
1203
1204 * xterm.c: Don't include sys/types.h unconditionally. Don't
1205 protect its inclusion with !USG (following xmenu.c).
1206
ea055732
GM
12072000-06-23 Gerd Moellmann <gerd@gnu.org>
1208
1209 * xfns.c (x_create_tip_frame): Initialize frame's colors like
1210 in x_create_frame.
1211
74b01b80
EZ
12122000-06-23 Eli Zaretskii <eliz@is.elta.co.il>
1213
1214 * coding.c (decode_eol_post_ccl): Special handling for undecided
1215 and inconsistent EOL types.
1216
64f3a166
GM
12172000-06-22 Gerd Moellmann <gerd@gnu.org>
1218
16cf31f7
GM
1219 * xrdb.c (x_load_resources): Add default resource for scroll bar's
1220 trough color and main window's background color.
1221
178c5d9c 1222 * xfns.c (Fx_file_dialog) [HAVE_MOTIF_2_1]: Handle events
16cf31f7
GM
1223 differently.
1224
1225 * xterm.h (Xt_app_con): External declaration.
1226
1227 * widget.c (EmacsFrameRealize): Fix typo.
178c5d9c 1228
486a103d
GM
1229 * widget.c (EmacsFrameRealize): Remove SubstructureRedirectMask.
1230
64f3a166
GM
1231 * xdisp.c (handle_stop): Initialize it->add_overlay_start to zero.
1232 (handle_invisible_prop): Record the start of invisible text in
1233 it->add_overlay_start.
1234 (struct overlay_entry): Add member `overlay'.
1235 (handle_overlay_change): Simplify.
1236 (next_overlay_string): After having processed overlay strings at the
1237 end of the buffer, record that fact in
1238 it->overlay_strings_at_end_processed_p.
1239 (compare_overlay_entries): If before- and after-strings come
1240 from the same overlay, let before-strings come first.
1241 (RECORD_OVERLAY_STRING): Record the overlay that strings come from.
1242 (load_overlay_strings): Take it->add_overlay_start into account
1243 when adding overlay strings.
1244
1245 * dispextern.h (struct it): Add member add_overlay_start.
1246
bb746ea6
DL
12472000-06-22 Dave Love <fx@gnu.org>
1248
1249 * s/isc3-0.h (C_SWITCH_SYSTEM): Define _XOPEN_SOURCE=500.
1250
1251 * s/gnu-linux.h (C_SWITCH_SYSTEM): Don't define _XOPEN_SOURCE here.
1252
a8f573f3
KH
12532000-06-22 Kenichi Handa <handa@etl.go.jp>
1254
1255 * ccl.c (ccl_driver) <CCL_End>: Decrement stack_idx only when it
1256 is greater than 0.
1257
9f2bbc92
DL
12582000-06-21 Dave Love <fx@gnu.org>
1259
178c5d9c 1260 * Makefile.in (GETLOADAVG_OBJ): Removed -- LIBOBJS does it.
9f2bbc92 1261
3ee5041c
SM
12622000-06-21 Stefan Monnier <monnier@cs.yale.edu>
1263
1264 * syntax.c (back_comment): Simplify string-parity counting (with
1265 the added benefit of handling multiple string-styles as long as
1266 they are not intertwined).
1267 Jump to the slow code as soon as a comment starter is found in
1268 a "string_lossage" position. Fixes the case: " /* " /* " */.
1269
4c343001
DL
12702000-06-21 Dave Love <fx@gnu.org>
1271
1272 * Makefile.in: Use GETLOADAVG_LIBS.
1273
1274 * config.in: Add HAVE_FCNTL_H, _FILE_OFFSET_BITS,
1275 _LARGEFILE_SOURCE, _LARGE_FILES, _XOPEN_SOURCE.
1276
e6365855
SM
12772000-06-20 Stefan Monnier <monnier@cs.yale.edu>
1278
1279 * syntax.c (describe_syntax): Recognize the `n'estable bit.
1280 (Fforward_comment, scan_lists):
1281 Check the comstyle of single-char comment-starters.
1282 (scan_sexps_forward): Don't try to recognize `half comment-enders' if
1283 we're just at the beginning of the comment (f.ex with (*) ... (*)).
d355bd8a
SM
1284 Check the comstyle of single-char comment-starters.
1285 Clarify control-flow around the Scomment case.
e6365855 1286
5700d2cc
DL
12872000-06-20 Dave Love <fx@gnu.org>
1288
d355bd8a
SM
1289 * fns.c (make_hash_table, maybe_resize_hash_table):
1290 Cast arg of next_almost_prime.
5700d2cc 1291
178c5d9c 1292 * tparam.c [emacs]: Include lisp.h.
5700d2cc
DL
1293
1294 * termcap.c [emacs]: Test HAVE_FCNTL_H, not USG5. Include lisp.h
1295 and unistd.h.
1296
4a27bdfb
GM
12972000-06-20 Gerd Moellmann <gerd@gnu.org>
1298
a61d762c
GM
1299 * keyboard.c (adjust_point_for_property): Check if display
1300 property should be treated as intangible by looking at its
1301 value.
1302
178c5d9c 1303 * xdisp.c (single_display_prop_intangible_p)
a61d762c
GM
1304 (display_prop_intangible_p): New functions.
1305
1306 * dispextern.h (display_prop_intangible_p): Add prototype.
1307
1308 * xdisp.c (dump_glyph_row): Show type of glyph->object.
178c5d9c 1309
4a27bdfb
GM
1310 * s/isc4-0.h (sigblock): Redefined to pass a pointer as second
1311 argument to sigprocmask.
1312
1313 * s/sco5.h (sigblock): Redefined to pass a pointer as second
1314 argument to sigprocmask.
1315
1316 * syssignal.h (sigblock, sigunblock) [USG5_4]: Set
1317 sigprocmask_set, and pass a pointer to it to sigprocmask.
1318
1319 * sysdep.c (sigprocmask_set): New variable.
1320
1321 * fileio.c (make_temp_name): Don't use `%s' in string passed to
1322 report_file_error.
1323
427ec082
SS
13242000-06-20 Sam Steingold <sds@gnu.org>
1325
1326 * xrdb.c: Don't declare xmalloc, xrealloc.
1327
8972fe79 13282000-06-20 Stefan Monnier <monnier@cs.yale.edu>
8972fe79
SM
1329
1330 * regex.c (re_match, re_match_2): Protect calls to alloca (0).
1331 (re_comp): Cast gettext return value to avoid complaints when
1332 !HAVE_LIBINTL.
1333
074b6efe
DL
13342000-06-20 Dave Love <fx@gnu.org>
1335
f85c008a
DL
1336 * m/stride.h, m/mips.h: Don't define HAVE_GETWD,
1337 HAVE_GETTIMEOFDAY.
1338
5700d2cc 1339 * m/ibmrt-aix.h: Don't declare HAVE_GETTIMEOFDAY, HAVE_VFORK.
f85c008a 1340
d355bd8a 1341 * m/ibmrs6000.h, m/ibmps2-aix.h, m/dpx2.h: Don't declare HAVE_GETWD.
f85c008a
DL
1342
1343 * m/alpha.h: Don't declare xmalloc, xrealloc.
1344
0af4f205
DL
1345 * s/ux4800.h: Don't declare GETTIMEOFDAY_ONE_ARGUMENT.
1346
1347 * s/usg5-4-2.h: Don't declare HAVE_GETWD, VFORK_RETURN_TYPE.
1348
1349 * s/umips.h: Don't declare HAVE_GETWD, HAVE_GETTIMEOFDAY.
1350
1351 * s/cxux.h, s/gnu-linux.h, s/iris3-6.h, s/irix3-3.h: Don't declare
1352 HAVE_GETWD.
1353
074b6efe
DL
1354 * keyboard.h (poll_for_input_1): Declare.
1355
1356 * getloadavg.c: Don't define NLIST_STRUCT (handled by configure).
1357
1358 * alloc.c (xmalloc, xrealloc, xfree): Define using POINTER_TYPE.
1359
1360 * doprnt.c: Don't declare xmalloc, xrealloc.
1361
1362 * lisp.h (x_set_tool_bar_lines, free_frame_xic, compose_text)
1363 (getenv, ctime, getwd): Removed.
1364 (xmalloc, xrealloc, xfree): Declare using POINTER_TYPE.
1365
1366 * xterm.h: Remove duplicate prototypes. Declare free_frame_xic,
1367 x_set_tool_bar_lines.
1368
1369 * config.in: Add HAVE_GETWD. Move some definitions above
1370 machine/system includes.
1371
68a5e97b
KH
13722000-06-20 Kenichi Handa <handa@etl.go.jp>
1373
95417e1e
KH
1374 * s/bsd386.h (HAVE_GETLOADAVG): Define it as 1.
1375
68a5e97b
KH
1376 * xfaces.c (font_list): Handle the case that REGISTRY doesn't
1377 contain information about ENCODING.
1378
1379 * fontset.c (FONTSET_ASCII): Use the first element of char table
1380 for an ASCII font, not defalt slot.
1381 (fontset_ref_via_base): If FONTSET doesn't contain information for
1382 C, try the default fontset.
1383 (make_fontset): Don't copy the default fontset.
1384 (fontset_font_pattern): Likewise.
1385 (accumulate_font_info): If ELT is nil, use the corresponding
1386 element in the default fontset.
1387
3b4fa1b2
DL
13882000-06-19 Dave Love <fx@gnu.org>
1389
943e731c
DL
1390 * syntax.c (Fparse_partial_sexp): Doc fix.
1391
1392 * regex.h: Test PROTOTYPES as well as __STDC__.
1393
3b4fa1b2
DL
1394 * unexalpha.c: Include errno.h, string.h, unistd.h. Don't declare
1395 errno, strerror. Put text after #endif in comment.
1396
1397 * xdisp.c (dump_glyph_matrix): Add `static' to declaration (for
1398 pcc).
1399
1400 * xterm.c (x_frame_of_widget): Likewise.
1401
cdf0357b
GM
14022000-06-19 Gerd Moellmann <gerd@gnu.org>
1403
1404 * abbrev.c (syms_of_abbrev): Set buffer_default's abbrev table
1405 to Vfundamental_mode_abbrev_table.
1406
1407 * alloc.c (mark_object) [GC_CHECK_MARKED_OBJECTS]: Check that no
1408 bogus objects are marked. This slows down GC by ~80 percent, but
1409 it might be worth trying when debugging GC-related problems.
1410 This feature requires conservative stack marking to be enabled.
1411
1412 * xterm.c (XTread_socket) <KeyPress>: In case XmbLookupString
1413 returns XLookupChars, reset `modifiers' to zero.
1414
998e9f8c
DL
14152000-06-19 Dave Love <fx@gnu.org>
1416
1417 * mktime.c: Unprotoized.
1418
18e21ce8 14192000-06-19 Richard Stallman <rms@gnu.org>
d1504184
GM
1420
1421 * data.c (set_internal): If variable is frame-local,
1422 store the new value immediately into the frame parameter alist.
1423
140c4ac6
KR
14242000-06-19 Ken Raeburn <raeburn@gnu.org>
1425
14358466
KR
1426 * xfns.c (jpeg_load): Fetch error-handling data first, then fill
1427 in the custom handler pointer.
1428
140c4ac6
KR
1429 * keyboard.c (follow_key, read_key_sequence): Use XUINT on key
1430 value, or checks for CHAR_META can fail when Lisp_Object is a
1431 union type.
1432 * keymap.c (get_keyelt): Likewise.
1433
10d7bf84
KH
14342000-06-19 Kenichi Handa <handa@etl.go.jp>
1435
1436 * ccl.h (struct ccl_program): New member eol_type.
1437 (struct ccl_spec): New member cr_carryover.
1438
1439 * ccl.c (CCL_WRITE_CHAR): Convert NL according to ccl->eol_type.
1440 (setup_ccl_program): Initialize ccl->eol_type to CODING_EOL_LF.
1441
1442 * coding.c (setup_coding_system) <4>: Reset member `cr_carryover'.
1443 (ccl_coding_driver): On encoding, initialize ccl->eol_type.
1444 (decode_eol_post_ccl): New function.
1445 (decode_coding): Don't detect EOL format here for CCL based coding
1446 systems.
1447 (decode_coding) <coding_type_ccl>: Handle carryovered CR. Call
1448 decode_eol_post_ccl after running the CCL program.
1449 (code_convert_region): Don't detect EOL format here for CCL based
1450 coding systems.
1451 (decode_coding_string): Likewise.
1452
52e386c2
KR
14532000-06-18 Ken Raeburn <raeburn@gnu.org>
1454
1455 * charset.c (update_charset_table): Use XINT on "iso_final_char"
1456 when treating it as an integer.
1457
1458 * coding.h (encode_coding_string): Declare.
1459
1460 * keyboard.c (read_key_sequence): Use XINT on "pos" when treating
1461 it as an integer.
1462
1463 * keymap.c (Fwhere_is_internal): Rename argument "keymap" to
1464 "xkeymap" to avoid shadowing the "enum map_type" value that needs
1465 to be passed to get_local_map.
1466
1467 * sound.c (Fplay_sound): Don't call make_number on
1468 Frun_hook_with_args count argument.
1469
1470 * xterm.c (x_send_scroll_bar_event): Fudge lisp object/integer
1471 for lisp objects in X event structure data field, when lisp
1472 objects are represented with unions.
1473 (x_scroll_bar_to_input_event): Ditto.
1474
b357b9d4
KR
14752000-06-16 Ken Raeburn <raeburn@gnu.org>
1476
1477 * xdisp.c (decode_mode_spec): In "no_value" case, do NUL
37d034d3
KR
1478 termination of string. Fix sense of test whether
1479 Vline_number_display_limit is an integer.
b357b9d4 1480
a871441d
GM
14812000-06-16 Gerd Moellmann <gerd@gnu.org>
1482
a9021acd
GM
1483 * xfaces.c (syms_of_xfaces) [DEBUG_X_COLORS]: Defsubr dump_colors
1484 only if HAVE_X_WINDOWS.
1485
6344985d
GM
1486 * keymap.c (describe_buffer_bindings): Add `\f\n' in front
1487 of titles.
1488
427ec082 1489 * dispnew.c (update_frame_1): Handle case that cursor vpos is
a871441d
GM
1490 out of bounds.
1491
228b083e
EZ
14922000-06-15 Eli Zaretskii <eliz@is.elta.co.il>
1493
1494 * unexec.c (toplevel): Fix last change, so as not to deprive MSDOS
1495 of its headers.
1496
c25b53a2
KH
14972000-06-15 Kenichi Handa <handa@etl.go.jp>
1498
1499 * coding.c (decode_coding_emacs_mule): Always set src_base at the
1500 start of the while loop.
1501
a6981b11
GM
15022000-06-15 Gerd Moellmann <gerd@gnu.org>
1503
e9924e52
GM
1504 * atimer.c (alarm_signal_handler): Add forward declaration.
1505
a6981b11
GM
1506 * data.c (set_internal): Remove debug code.
1507
25fa6deb
GM
15082000-06-14 Gerd Moellmann <gerd@gnu.org>
1509
dce6b995
GM
1510 * Makefile.in (bootstrap-temacs): Add `-I../src'.
1511
9f817ea4
GM
1512 * unexec.c (toplevel) [COFF]: Include coff.h.
1513
1514 * s/lynxos.h: New file.
1515
1516 * keymap.c (Fsingle_key_description): Enclose function key and
1517 event symbol names in angle brackets.
1518
8a4e3c0c
GM
1519 * xdisp.c (setup_echo_area_for_printing): Call
1520 message_log_maybe_newline if message_buf_print is not set.
1521
1522 * print.c (printchar, strout): Don't check message_buf_print
427ec082 1523 before calling setup_echo_area_for_printing because that
8a4e3c0c
GM
1524 function does something useful even when message_buf_print is
1525 already set.
1526
25fa6deb
GM
1527 * xdisp.c (message_truncate_lines, Qmessage_truncate_lines): New
1528 variables.
1529 (ensure_echo_area_buffers): Initialize echo buffer's
1530 truncate lines setting to nil.
1531 (with_echo_area_buffer): Don't set the echo buffer's truncate
1532 lines setting here.
8a4e3c0c 1533 (set_message_1): Set it here instead, based on the value
25fa6deb
GM
1534 of message_truncate_lines.
1535 (resize_mini_window): Handle case that lines are truncated.
1536 (syms_of_xdisp): Initialize Qmessage_truncate_lines. DEFVAR_BOOL
1537 message-truncate-lines.
1538
1539 * keyboard.c (read_char): Bind message-truncate-lines to t
1540 while displaying a help-echo.
1541
1542 * lisp.h (Qmessage_truncate_lines): External declaration.
1543
163dcff3
GM
15442000-06-13 Gerd Moellmann <gerd@gnu.org>
1545
1681ead6
GM
1546 * xdisp.c (Vline_number_display_limit): Renamed from
1547 line_number_display_limit.
1548 (syms_of_xdisp): Use DEFVAR_LISP for line-number-display-limit.
1549 Extend documentation string. Initialize
1550 Vline_number_display_limit to nil meaning no limit.
1551 (decode_mode_spec): Use Vline_number_display_limit with its new
1552 meaning.
1553
163dcff3
GM
1554 * xterm.c (x_check_font) [GLYPH_DEBUG]: Add prototype.
1555
18e21ce8 15562000-06-13 Richard Stallman <rms@gnu.org>
163dcff3
GM
1557
1558 * frame.c (Fmodify_frame_parameters): Doc fix.
427ec082 1559
163dcff3
GM
1560 * xfns.c (x_set_frame_parameters): Comment fix.
1561
1562 * frame.c (store_frame_param): Call swap_in_global_binding if the
1563 variable's current binding was chosen based on this frame.
1564
1565 * data.c (swap_in_global_binding): New function.
1566
a704139d
EZ
15672000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
1568
1569 * msdos.c (IT_write_glyphs): Don't use CODING_REQUIRE_ENCODING
1570 macro, instead AND with CODING_REQUIRE_ENCODING_MASK.
1571
9b6610db
EZ
15722000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
1573
1574 * msdos.h (EMACS_MSDOS_H): Renamed from MSDOS_H_.
1575
c68833d2
JR
15762000-06-12 Jason Rumney <jasonr@gnu.org>
1577
1578 * w32bdf.h (EMACS_W32BDF_H): Renamed from __W32BDF_H__
1579
1580 * w32.h (EMACS_W32_H): Renamed from _NT_H_
1581
1582 * w32gui.h (EMACS_W32GUI_H): Renamed from __W32GUI_H__
1583
1584 * w32inevt.h (EMACS_W32INEVT_H): Renamed from __NTINEVT_H__
1585
ed1056b3
GM
15862000-06-12 Gerd Moellmann <gerd@gnu.org>
1587
1588 * xfaces.c (Fdump_colors) [DEBUG_X_COLORS]: New function.
1589 (syms_of_xfaces): Defsubr Sdump_colors.
1590 (x_free_colors): Don't treat b&w specially on default visual.
1591 (x_free_dpy_colors): New function.
1592 (free_face_colors): Don't check visual class; it's done
1593 in x_free_colors.
1594
1595 * xterm.c (x_frame_of_widget): New function.
1596 (x_alloc_nearest_color_for_widget): Use it.
1597 (x_copy_dpy_color): New function.
1598 (x_destroy_window): Free various colors.
1599
5050a2ef
KH
16002000-06-12 Kenichi Handa <handa@etl.go.jp>
1601
1602 * ccl.h (EMACS_CCL_H): Renamed from _CCL_H.
1603
1604 * charset.h (EMACS_CHARSET_H): Renamed from _CHARSET_H.
1605
1606 * coding.h (EMASC_CODING_H): Renamed from _CODING_H.
1607
1608 * composite.h (EMACS_COMPOSITE_H): Renamed from _COMPOSITE_H.
1609
1610 * fontset.h (EMACS_FONTSET_H): Renamed from _FONTSET_H.
1611
fb1b041d
DL
16122000-06-11 Dave Love <fx@gnu.org>
1613
1614 * systime.h (EMACS_SYSTIME_H): Renamed from _SYSTIME_H.
1615
ff96b5f4
EZ
16162000-06-11 Eli Zaretskii <eliz@is.elta.co.il>
1617
1618 * msdos.h: Don't use _MSDOS_H_ as a symbol, use MSDOS_H_ instead.
1619
db8eeecd
GM
16202000-06-11 Gerd Moellmann <gerd@gnu.org>
1621
ed1056b3 1622 * xmenu.c (xmenu_show): Cast second parameter of lw_popup_menu
db8eeecd
GM
1623 to `XEvent *'.
1624
49b71c5f
KH
16252000-06-10 Kenichi Handa <handa@etl.go.jp>
1626
c479bd55
KH
1627 * regex.c (MAKE_CHAR) [!emacs]: Dummy macro for non-Emacs env.
1628 (regex_compile): Fix the code for handling the case of single byte
1629 char and multibyte char being mixed in a range within [...].
1630
ff6a65c2
KH
1631 * fileio.c (Finsert_file_contents): Be sure to setup src_multibyte
1632 and dst_multibyte members of coding.
1633
49b71c5f
KH
1634 * charset.c (update_charset_table): Update the table
1635 bytes_by_char_head.
1636 (init_charset_once): Initialize elements of bytes_by_char_head to
1637 1 except for leading codes for private charases.
1638
1639 * charset.h (CHARSET_8_BIT_GRAPHIC): Define as 0x80.
1640 (UNIBYTE_STR_AS_MULTIBYTE_P): Fix for an invalid multibyte
1641 sequence.
1642
9e80b57d
KR
16432000-06-09 Ken Raeburn <raeburn@gnu.org>
1644
1645 * xterm.c (x_connection_closed): If dpyinfo is NULL, don't try to
1646 access the data it doesn't point to.
1647
f83fe4b4
GM
16482000-06-08 Gerd Moellmann <gerd@gnu.org>
1649
1650 * xterm.c (XTread_socket) <FocusIn>: Queue a FOCUS_IN_EVENT which
db8eeecd 1651 will be translated to a switch-frame event when reading the
f83fe4b4
GM
1652 event queue. This is necessary because Emacs otherwise won't
1653 perform a switch-frame to a new frame until some other event, for
1654 example a keystroke event, forces it to do so. This has various
1655 effects, one visible being that the cursor of a frame created with
1656 C-x 5 2 or switched to with a window manager key binding like
1657 A-TAB stays hollow because selected_window isn't on the newly
1658 focused frame until the switch-frame is performed.
1659
1660 * keyboard.c (kbd_buffer_get_event): Handle FOCUS_IN_EVENT by
1661 generating a switch-frame event if necessary.
1662
1663 * termhooks.h (enum event_kind): Add FOCUS_IN_EVENT.
1664
1665 * xdisp.c (handle_fontified_prop): Don't GCPRO local var `pos';
1666 it's an integer.
1667
0890801b
KH
16682000-06-08 Kenichi Handa <handa@etl.go.jp>
1669
1670 * fontset.c (Fset_fontset_font): The arg CHARACTER may be a
1671 charset.
1672
173cbca8
GM
16732000-06-07 Gerd Moellmann <gerd@gnu.org>
1674
3091c2a6
GM
1675 * window.c (displayed_window_lines): Take empty lines at
1676 the bottom of a window into account.
427ec082 1677
f38952fe
GM
1678 * window.c (displayed_window_lines): New function.
1679 (Fmove_to_window_line): Use displayed_window_lines to determine
1680 the number of lines to move, instead of using the window's height.
1681
1682 * lread.c (readevalloop): If READCHARFUN sets point to ZV, arrange
1683 to stop reading, even if the form read sets point to a different
1684 value when evaluated.
1685
427ec082 1686 * xdisp.c (display_line): Fix code deciding in which line to
173cbca8
GM
1687 put the cursor.
1688
6ba6c818
KH
16892000-06-07 Kenichi Handa <handa@etl.go.jp>
1690
1691 * fileio.c (e_write): Free composition data if stored in
1692 coding->cmp_data.
1693
5f1aea9a
GM
16942000-06-06 Gerd Moellmann <gerd@gnu.org>
1695
666852af
GM
1696 * xdisp.c (display_line): Set row's and iterator's
1697 starts_in_middle_of_char_p and ends_in_middle_of_char_p flags.
1698 Set cursor even if row ends in the middle of a character.
1699 (dump_glyph_row): Print values of new flags.
1700 (redisplay_window) <cursor movement in unchanged window>: When
1701 point has been moved forward, and PT is at the end of the cursor
1702 row, don't place the cursor in the next row if the cursor row ends
1703 in the middle of a character or at ZV.
1704
1705 * dispextern.h (struct it): Add starts_in_middle_of_char_p.
1706 (struct glyph_row): Add starts_in_middle_of_char_p and
1707 ends_in_middle_of_char_p.
1708 (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P): Test row's
1709 ends_in_middle_of_char_p flag.
1710 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Likewise.
1711
d13f3e2e
GM
1712 * term.c (append_glyph): Revert change of 2000-06-06.
1713
1714 * xdisp.c (display_line): Revert change of 2000-06-06. Treat
1715 padding glyph not fitting on line as whole character not
1716 fitting on line.
1717
5f1aea9a
GM
1718 * xterm.c (x_produce_glyphs): Don't xassert `it->descent > 0';
1719 this isn't true for images with `:ascent 100'.
1720
10cda9b0
KH
17212000-06-06 Kenichi Handa <handa@etl.go.jp>
1722
ed00559d
KH
1723 * buffer.c (Fset_buffer_multibyte): Don't make the current buffer
1724 as modified if it is originally unmodified.
1725
10cda9b0
KH
1726 * term.c (encode_terminal_code): Change the way to check if
1727 terminal coding does any conversion.
1728 (append_glyph): Set glyph->pixel_width correctly.
1729
1730 * xdisp.c (display_line): While checking line continuation, pay
1731 attention to a padding glyph.
1732
1969fae2
GM
17332000-06-05 Gerd Moellmann <gerd@gnu.org>
1734
1735 * xdisp.c (redisplay_window): Always use set_buffer_internal_1.
1736
162ccef4
DL
17372000-06-05 Dave Love <fx@gnu.org>
1738
f19f32dd
DL
1739 * xdisp.c: Include fontset.h.
1740
1741 * xfns.c (x_real_positions): Declare tmp_nchildren as unsigned.
1742
1743 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
1744
1745 * dispnew.c: Conditionally include term.h.
1746
1747 * coding.h: Declare code_convert_string_norecord.
1748
1749 * frame.h (struct frame): Use volatile unconditionally.
1750
1751 * buffer.h: Remove Vbefore_change_function, Vafter_change_function.
1752
1753 * xmenu.c (menu_item_selection): Declare volatile unconditionally.
1754
1755 * systime.h: Protect against multiple inclusion.
1756 (timezone) [USG5_4]: Define as time_t.
1757
1758 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
1759 (Foptimize_char_table, make_temp_name): Declare.
1760
1761 * Makefile.in (xdisp.o): Depend on fontset.h.
1762
1763 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
1764
1765 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
1766 (Foptimize_char_table, make_temp_name): Declare.
1767
427ec082 1768 * s/irix4-0.h:
162ccef4
DL
1769 * s/irix5-0.h:
1770 * s/netbsd.h: Don't define autoconfiscated MATHERR.
1771
2082fe81
DL
17722000-06-02 Dave Love <fx@gnu.org>
1773
1774 * lread.c (_XOPEN_SOURCE, __EXTENSIONS__): Don't define.
1775
dcf671d2
GM
17762000-06-02 Gerd Moellmann <gerd@gnu.org>
1777
1778 * xfaces.c (realize_x_face): When copying BASE_FACE bitwise to the
1969fae2 1779 result face, set flags in that face indicating that colors may not
dcf671d2
GM
1780 be freed.
1781
1782 * xterm.c (x_set_mouse_face_gc): If first glyph isn't a character
1783 glyph, use the ASCII NUL character to determine the face.
1784
d42122a3
DL
17852000-06-02 Dave Love <fx@gnu.org>
1786
1787 * sysdep.c: Conditionally include stdlib.h, unistd.h.
1788 (VFORK_RETURN_TYPE): Remove.
427ec082 1789
d42122a3
DL
1790 * config.in: Add NO_MATHERR.
1791
dd432f16
DL
17922000-06-01 Dave Love <fx@gnu.org>
1793
90aa4ea8
DL
1794 * cmds.c (internal_self_insert): Don't check
1795 Vbefore_change_function, Vafter_change_function.
1796
1797 * insdel.c (signal_before_change, signal_after_change): Likewise.
1798
1799 * buffer.c (Vbefore_change_function, Vafter_change_function):
1800 Variables and their initializations deleted.
1801
2330c9d4
DL
1802 * callint.c (Fcall_interactively): Doc fix.
1803
dd432f16
DL
1804 * terminfo.c (ospeed) [HAVE_SPEED_T]: Don't declare extern.
1805
bf9e8804
DL
18062000-05-31 Dave Love <fx@gnu.org>
1807
1808 * textprop.c: Revert last change -- duplicated.
1809
3694b4ab
GM
18102000-05-31 Gerd Moellmann <gerd@gnu.org>
1811
1812 * dispnew.c (find_glyph_row_slice, swap_glyphs_in_rows): Put
1813 in #if 0.
1814
1815 * lisp.h (eassert) [!ENABLE_CHECKING]: Define as `(void) 0'.
1816
f14156cd
JR
18172000-05-31 Jason Rumney <jasonr@gnu.org>
1818
8119aab8
JR
1819 * search.c (Fre_search_forward, Fre_search_backward)
1820 (Fposix_search_backward, Fposix_search_forward): Fix newlines in docs.
1821
f14156cd
JR
1822 * w32select.c (Fw32_set_clipboard_data): Change QNil to Qnil.
1823
4aab9be3
JR
18242000-05-30 Jason Rumney <jasonr@gnu.org>
1825
1826 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: New macros.
1827 [WINDOWSNT]: Add extern for Vw32_system_coding_system.
1828
1829 * dispextern.h (struct glyph) [WINDOWSNT]: Add w32_font_type
1830 member.
1831
1832 * fileio.c (Fread_file_name) [HAVE_NTGUI]: Use file dialog.
1833 (Fread_file_name) [HAVE_NTGUI, USE_MOTIF]: Do not attempt to
1834 expand a nil default_filename.
1835
1836 * keyboard.c (make_lispy_event) [WINDOWS_NT]: Pass a window
1837 pointer to glyph_to_pixel_coords, not a frame.
1838
1839 * makefile.nt (w32fns.obj, w32menu.obj): Add charset.h and
1840 coding.h to dependencies.
1841
1842 * w32bdf.c (w32_load_bdf_font): Initialize font->double_byte_p.
1843
1844 * w32console.c (glyph_to_pixel_coords): Change first parameter to
1845 window pointer to be consistent with w32term.c and xterm.c.
1846
1847 * w32fns.c: Format and doc changes to bring closer to xfns.c.
1848 (VIETNAMESE_CHARSET): Define if not defined in system headers.
1849 (Qline_spacing, Qcenter): New variables.
1850 (Qw32_charset_*, w32_codepage_for_font): Moved from w32term.c.
1851 (x_set_line_spacing): New function.
1852 (x_set_frame_parameters): Use FRAME_NEW_WIDTH, FRAME_NEW_HEIGHT
1853 macros.
1854 (x_specified_cursor_type): New function.
1855 (x_set_cursor_type): Use it.
1856 (x_set_name, x_set_title): Use ENCODE_SYSTEM to encode titlebar
1857 and icon strings.
1858 (validate_x_resource_name, x_get_resource_string): Measure lengths
1859 of external strings in bytes.
1860 (w32_wnd_proc) [WM_MEASURE_ITEM]: Avoid calling
1861 GetTextExtentPoint32 with NULL title.
1862 (Fx_create_frame): Initialize Qline_spacing.
1863 (w32_load_system_font): Initialize font->double_byte_p.
1864 (x_to_w32_charset): Use Vw32_charset_info_alist.
1865 (Image, busy cursor, tooltip functions): Merged changes from
1866 xfns.c. Not yet functional on Windows.
1867
1868 * w32gui.h (W32FontStruct): Add double_byte_p member.
1869
1870 * w32inevt.c (NUM_TRANSLATED_MOUSE_BUTTONS): New constant.
1871 (emacs_button_translation): Use it.
1872 (do_mouse_event): Allow up to 32 mouse buttons by allowing any bit
1873 in `mask' to be set.
1874
1875 * w32menu.c (single_submenu, w32_menu_show): Call ENCODE_SYSTEM on
1876 menu strings.
1877
1878 * w32term.c: Format and doc changes to bring closer to xterm.c.
1879 (w32_char_font_type): New enum.
1880 (Qw32_charset_*, w32_codepage_for_font): Moved to w32fns.c.
1881 (w32_per_char_metric): Use w32_char_font_type instead of unicode_p.
1882 (w32_encode_char): New function.
1883 (x_encode_char): Removed.
1884 (x_get_glyph_and_face_encoding): Use w32_encode_char in place of
1885 x_encode_char and w32_font_is_double_byte.
1886 (x_produce_image_glyph): Use image_ascent.
1887 (x_produce_glyphs): Use new version of w32_per_char_metric and
1888 handle NULL return value. Allow extra line spacing.
1889 (W32_TEXTOUT): Distinguish between Unicode and DBCS text.
1890 (w32_get_glyph_overhangs): Remove unicode_p param. Use
1891 w32_font_type member of glyph instead.
1892 (x_draw_glyph_string): Draw underline and strike-out for BDF fonts.
1893 (fast_find_position): Make sure not to consider rows not visible
1894 in the window.
1895 (w32_read_socket) [WM_MENUSELECT]: Cannot call
1896 w32_menu_display_help with input blocked, as it can abort.
1897 (x_display_and_set_cursor): Choose cursor depending
1898 on buffer-local value of cursor_type.
1899 (x_draw_bar_cursor): Add parameter WIDTH.
1900
1901 * w32term.h (CP_DEFAULT): Define.
1902 (Fx_display_color_p, Fx_display_grayscale_p, image_ascent): Declare.
1903
10fc3187
GM
19042000-05-30 Gerd Moellmann <gerd@gnu.org>
1905
1906 * search.c (Fre_search_forward, Fre_search_backward)
1907 (Fposix_search_backward, Fposix_search_forward): Doc fix.
1908
d0555360
KH
19092000-05-30 Kenichi Handa <handa@etl.go.jp>
1910
1911 * coding.c (detect_coding_iso2022): Fix code for checking
1912 CODING_CATEGORY_MASK_ISO_8_2.
1913
f1ad044f
SM
19142000-05-29 Stefan Monnier <monnier@cs.yale.edu>
1915
1916 * regex.c (PREFETCH_NOLIMIT): New function.
1917 (re_match_2_internal): Use it and adjust the end_match_2 logic.
1918
84ec3b4b
GM
19192000-05-29 Gerd Moellmann <gerd@gnu.org>
1920
66254a13
GM
1921 * syntax.c (find_defun_start): Move test for
1922 open_paren_in_column_0_is_defun_start outside of the loop.
1923
49e70dec
GM
1924 * xdisp.c (redisplay_window): Really switch buffers when
1925 displaying mode lines, and temporarily set selected_frame to the
1926 frame of the window that's redisplayed.
1927
84ec3b4b
GM
1928 * xfaces.c (free_realized_faces): Block/unblock input.
1929 (free_realized_multibyte_face): Ditto.
1930
869a3a14
DL
19312000-05-29 Dave Love <fx@gnu.org>
1932
1933 * textprop.c (Qkeymap): New variable.
1934 (syms_of_textprop): Intern it.
1935
1936 * keymap.c: Include intervals.h.
1937 (Fkey_binding, Fwhere_is_internal): Deal with `keymap' property.
1938
1939 * Makefile.in (keymap.o): Depend on intervals.h.
1940
1941 * keyboard.c (menu_bar_items, tool_bar_items)
1942 (Fexecute_extended_command): Deal with `keymap' property.
1943 (read_key_sequence): Track map from `keymap' property as well as
1944 `local_map'.
1945
1946 * intervals.c (get_local_map): Extra arg to allow looking for
1947 `keymap' too.
1948
1949 * intervals.h (map_property): New enum.
1950 (get_local_map): Extra arg using it.
1951 (Qkeymap): Declare.
1952
84ec3b4b 1953 * lisp.h (get_local_map): Don't declare here.
869a3a14 1954
89d0c844
KH
19552000-05-29 Kenichi Handa <handa@etl.go.jp>
1956
1957 * Makefile.in (callproc.o): Depend on composite.h.
1958
1959 * callproc.c: Include composite.h.
1960 (Fcall_process): Handle composition correctly.
1961
1962 * coding.h (coding_allocate_composition_data): Extern it.
1963 (coding_restore_composition): Likewise.
1964
1965 * coding.c (DECODE_COMPOSITION_START): If coding->cmp_data is not
1966 yet allocated, finish decoding with result
1967 CODING_FINISH_INSUFFICIENT_CMP.
1968 (coding_allocate_composition_data): Make it non-static.
1969 (coding_restore_composition): Likewise.
1970
797a084a
EZ
19712000-05-29 Eli Zaretskii <eliz@is.elta.co.il>
1972
1973 * charset.c (syms_of_charset): Revert last change.
1974
cf872af5
EZ
19752000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
1976
1977 * term.c (produce_glyphs): Treat characters from the eight-bit-*
d7d0dac0
SM
1978 charsets as unibyte, with 1-column screen width. Sent by Kenichi
1979 Handa.
cf872af5 1980
5b1ae051
EZ
19812000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
1982
1983 * charset.c (syms_of_charset): Set width of character sets
1984 eight-bit-control and eight-bit-graphic to 1 column.
1985
34ec9ebe
GM
19862000-05-26 Gerd Moellmann <gerd@gnu.org>
1987
1988 * config.in (HAVE_SPEED_T): New define.
1989
1990 * sysdep.c, terminfo.c (ospeed) [HAVE_SPEED_T]: Declare as
1991 `extern speed_t'.
1992
dd854dc2
DL
19932000-05-26 Dave Love <fx@gnu.org>
1994
1995 * coding.c (shrink_decoding_region): Initialize eol_conversion.
1996
1997 * data.c (Qsubrp, Qmany, Qunevalled): New variables.
1998 (Fsubr_arity): New function.
1999 (syms_of_data): Install them.
2000
ba9f8f95
KH
20012000-05-26 Kenichi Handa <handa@etl.go.jp>
2002
0f3e0672
KH
2003 * charset.c (init_charset_once): Set the table bytes_by_char_head
2004 correctly.
2005
cebefb44
KH
2006 * fontset.c (syms_of_fontset): Adjust the font name for ascii of
2007 the default fontset to what Emacs uses by default.
0f3e0672
KH
2008 (check_registry_encoding): This function deleted.
2009 (Fset_fontset_font): Remove the adhoc condition for the default
2010 fontset. Allow cons in FONTNAME.
cebefb44 2011
0f3e0672
KH
2012 * fns.c (map_char_table): Ignore char-table entries for
2013 charsets eight-bit-control and eight-bit-graphic.
ba9f8f95 2014
7a18af49
KR
20152000-05-25 Ken Raeburn <raeburn@gnu.org>
2016
2017 * emacs.c (main): Initialize keyboard syms before initializing
2018 window code, so face names are available.
2019
d2af47df
SM
20202000-05-25 Stefan Monnier <monnier@cs.yale.edu>
2021
2022 * regex.c (at_begline_loc_p): Also recognize the \\(?:^ case
2023 of an anchor at the beginning of a shy-group.
2024
fc6a6a4e
GM
20252000-05-25 Gerd Moellmann <gerd@gnu.org>
2026
2027 * xdisp.c (handle_invisible_prop): Don't try to skip over
2028 invisible text if end of text is already reached.
2029
005f0d35
DL
20302000-05-25 Dave Love <fx@gnu.org>
2031
02513cdd
DL
2032 * xdisp.c (Fdump_glyph_matrix): Declare the arg.
2033
005f0d35
DL
2034 * coding.c (encode_eol): Add null statement after label.
2035
89f6ca4e
EZ
20362000-05-25 Eli Zaretskii <eliz@is.elta.co.il>
2037
2038 * w16select.c (Fw16_set_clipboard_data): Fix the change from
2039 2000-05-20.
2040
a4e1759e
KH
20412000-05-25 Kenichi Handa <handa@etl.go.jp>
2042
2043 * ccl.c (ccl_driver): Fix previous change.
2044
eacfd7fe
KH
20452000-05-25 Kenichi Handa <handa@etl.go.jp>
2046
46ab33a9
KH
2047 * coding.c (run_pre_post_conversion_on_str): Set point to the
2048 beginning of buffer before calling coding->post_read_conversion.
2049 (decode_coding_string): Give correct args to
2050 run_pre_post_conversion_on_str.
2051 (encode_coding_string): Likewise.
2052
eacfd7fe
KH
2053 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>
2054 <CCL_WriteMultibyteChar2>: Handle charsets eight-bit-control and
2055 eight-bit-graphic correctly.
2056
f8569325
DL
20572000-05-24 Kenichi HANDA <handa@etl.go.jp>
2058
2059 * fileio.c (Finsert_file_contents): Even if a file is not found,
2060 execute codes for setting up coding system. Call
2061 after-insert-file-functions unconditionally.
2062
04545643
GM
20632000-05-24 Gerd Moellmann <gerd@gnu.org>
2064
2065 * callproc.c, emacs.c, sysdep.c (setpgrp): Don't define if USG and
2066 BSD_PGRPS are not defined.
2067
747d90ea
KH
20682000-05-24 Kenichi Handa <handa@etl.go.jp>
2069
2070 * charset.c (update_charset_table): Accept nil in LONG_NAME and
2071 DESCRIPTION.
2072 (syms_of_charset): Avoid building same strings.
2073
716e3b88
GM
20742000-05-23 Gerd Moellmann <gerd@gnu.org>
2075
2076 * lread.c (Fload): Add a comment about the meaning of
2077 Vuser_init_file being t.
2078
2079 * puresize.h (BASE_PURESIZE): Increase to 675000.
2080
2081 * s/gnu-linux.h (setpgrp): Don't define it here because this
2082 prevents compilation on GNU/Linux systems with glib 2.2.
2083
2084 * callproc.c, emacs.c, sysdep.c (setpgrp) [HAVE_SETPGID]: Define
2085 as setpgid.
427ec082 2086
9aeb39fa
EZ
20872000-05-23 Eli Zaretskii <eliz@is.elta.co.il>
2088
2089 * Makefile.in (SOME_MACHINE_LISP): Add disp-table.elc,
2090 dos-vars.elc, ccl.elc, and codepage.elc, all loaded by the MS-DOS
2091 version.
2092 (MSDOS_SUPPORT): Add dos-vars.elc, ccl.elc, and codepage.elc.
2093
29ced61b
KH
20942000-05-23 Kenichi Handa <handa@etl.go.jp>
2095
0574a2ed
KH
2096 * syntax.c (skip_chars): Use FETCH_STRING_CHAR_ADVANCE
2097 unconditionally.
2098
3d80f24d
KH
2099 * msdos.c (IT_write_glyphs): Set coding->src_multibyte to 1.
2100
2101 * term.c (encode_terminal_code): Set coding->src_multibyte
2102 properly.
2103
29ced61b
KH
2104 * coding.c (encode_eol): Fix a bug of DOS style EOL encoding.
2105
d7e00792
KH
21062000-05-22 Kenichi Handa <handa@etl.go.jp>
2107
c9d80d38
KH
2108 * keyboard.c (read_char): Allow character codes 128..255 to be
2109 handled by input-method-function.
2110
d7e00792
KH
2111 * insdel.c (adjust_markers_for_replace): Fix previous change.
2112 (adjust_after_replace): If PREV_TEXT is nil, call
2113 adjust_markers_for_insert, not adjust_markers_for_replace.
2114
087121cc 21152000-05-20 NIIBE Yutaka <gniibe@mri.co.jp>
427ec082 2116
087121cc
GM
2117 * s/gnu-linux.h (UNIX98_PTYS) [HAVE_GRANDPT]: Define.
2118 (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_OPEN, PTY_TTY_NAME_SPRINTF)
2119 [HAVE_GRANDPT]: Define.
2120 (C_SWITCH_SYSTEM): Add -D_XOPEN_SOURCE.
2121
2122 * sysdep.c (setup_pty): Treat case that UNIX98_PTYS is defined
2123 like SYSV_PTYS.
2124
2125 * config.in (HAVE_GRANDPT, HAVE_GETPT): New defines.
2126
2127 * process.c (toplevel) [UNIX98_PTYS]: Include stdlib.h.
2128
c9671f81
KH
21292000-05-20 Kenichi Handa <handa@etl.go.jp>
2130
2131 The following changes are to handle 8-bit characters in a
2132 multibyte buffer/string without facing with byte combining
2133 problem. Two new charsets eight-bit-control (for 0x80..0x9F) and
2134 eight-bit-graphic (for 0xA0..0xFF) are introduced.
2135
2136 * Makefile.in (fns.o): Depend on charset.h.
2137
2138 * alloc.c (Fmake_byte_code): If BYTECODE-STRING is multibyte,
2139 convert it to unibyte.
2140 (make_string): Use parse_str_as_multibyte, not chars_in_text.
2141
2142 * buffer.c (advance_to_char_boundary): Don't use DEC_POS to find a
2143 apparent char boundary.
2144 (Fset_buffer_multibyte): Convert 8-bit characters in the range
2145 0x80..0x9F to/from multibyte form.
2146
2147 * bytecode.c (Fbyte_code): If arg BYTESTR is multibyte, convert it
2148 to unibyte.
2149
2150 * callproc.c (Fcall_process): Always encode an argument string if
2151 it is multibyte. Setup src_multibyte and dst_multibyte members of
2152 process_coding properly.
ce75fd23 2153
c9671f81
KH
2154 * category.c (Fmodify_category_entry): Use SPLIT_CHAR, not
2155 SPLIT_NON_ASCII_CHAR.
2156
2157 * ccl.c (CCL_WRITE_CHAR): Be sure to write single byte characters
2158 as is.
2159 (CCL_MAKE_CHAR): Use MAKE_CHAR, not MAKE_NON_ASCII_CHAR.
2160
2161 * charset.c (Qeight_bit_control, Qeight_bit_graphic): New
2162 variables.
2163 (SPLIT_CHARACTER_SEQ): This macro deleted.
2164 (SPLIT_MULTIBYTE_SEQ): Assume that multibyte sequence at STR is
2165 valid.
2166 (CHAR_COMPONENTS_VALID_P): Handle new charsets; eight-bit-control
2167 and eight-bit-graphic.
2168 (char_to_string): Likewise. Signal an error for too large
2169 character code.
2170 (char_printable_p): Return 0 for 8-bit characters.
2171 (update_charset_table): Update iso_charset_table only when a final
2172 character is non-negative.
2173 (find_charset_in_text): Renamed from find_charset_in_str.
2174 Arguments and return value changed. Callers changed.
2175 (Fdefine_charset): Args ISO-FINAL-CHAR and ISO-GRAPHIC-PLANE can
2176 be -1 if CHARSET is used only internally.
2177 (Fmake_char_internal): Handle new charsets; eight-bit-control and
2178 eight-bit-graphic.
2179 (Fcharset_after): Simplified.
2180 (char_valid_p): Use SPLIT_CHAR, not SPLIT_NON_ASCII_CHAR.
2181 (char_bytes): Return 2 for chars of the range 0xA0..0xFF.
2182 (multibyte_chars_in_text): Simplified by assuming there's no
2183 invalid multibyte sequence.
2184 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte,
2185 str_as_unibyte): New functions.
2186 (Fstring): Simpified by assuming that byte combining never
2187 happens.
2188 (init_charset_once): Initialization for
2189 LEADING_CODE_8_BIT_CONTROL.
2190 (syms_of_charset): Intern and staticpro Qeight_bit_control and
2191 Qeight_bit_graphic. Include them in Vcharset_list. Make charsets
2192 eight-bit-control and eight-bit-graphic.
2193
2194 * charset.h (LEADING_CODE_8_BIT_CONTROL, CHARSET_8_BIT_CONTROL,
2195 CHARSET_8_BIT_GRAPHIC): New macros.
2196 (SINGLE_BYTE_CHAR_P): Make it faster by using casting.
2197 (CHARSET_ISO_GRAPHIC_PLANE): Use XINT instead of XFASTINT.
2198 (CHARSET_REVERSE_CHARSET): Likewise.
2199 (CHARSET_VALID_P): Handle new charsets; eight-bit-control and
2200 eight-bit-graphic.
2201 (BYTES_BY_CHAR_HEAD, WIDTH_BY_CHAR_HEAD): Optimize for ASCII.
2202 (CHAR_CHARSET, MAKE_CHAR, SPLIT_CHAR, CHAR_BYTES): Likewise.
2203 (PARSE_MULTIBYTE_SEQ) [BYTE_COMBINING_DEBUG]: Abort if we
2204 encounter an invalid multibyte sequence.
2205 (PARSE_MULTIBYTE_SEQ) [not BYTE_COMBINING_DEBUG]: Assume multibyte
2206 sequence is always valid.
2207 (MAKE_NON_ASCII_CHAR, SPLIT_NON_ASCII_CHAR): These macros Deleted.
2208 (UNIBYTE_STR_AS_MULTIBYTE_P, MULTIBYTE_STR_AS_UNIBYTE_P): New
2209 macros.
2210 (CHAR_STRING): For 8-bit characters, call char_to_string.
2211 (INC_POS) [not BYTE_COMBINING_DEBUG]: Faster version. Assume
2212 multibyte sequence is always valid.
2213 (BUF_INC_POS) [not BYTE_COMBINING_DEBUG]: Likewise.
2214 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte,
2215 str_as_unibyte): Extern them.
2216 (BCOPY_SHORT): Fix a bug.
2217 (CHAR_LEN): This macro deleted. Callers changed to use
2218 CHAR_BYTES.
2219 (FETCH_STRING_CHAR_ADVANCE): Check multibyteness of STRING.
2220 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): New macro.
2221 (FETCH_CHAR_ADVANCE): Check multibyteness of the current buffer.
2222
bd4bde7f 2223 * coding.c (ONE_MORE_BYTE, TWO_MORE_BYTES): Set coding->result to
c9671f81
KH
2224 CODING_FINISH_INSUFFICIENT_SRC if there's not enough source.
2225 (ONE_MORE_CHAR, EMIT_CHAR, EMIT_ONE_BYTE, EMIT_TWO_BYTE,
2226 EMIT_BYTES): New macros.
2227 (THREE_MORE_BYTES, DECODE_CHARACTER_ASCII,
2228 DECODE_CHARACTER_DIMENSION1, DECODE_CHARACTER_DIMENSION2): These
2229 macros deleted.
2230 (CHECK_CODE_RANGE_A0_FF): This macro deleted.
2231 (detect_coding_emacs_mule): Use UNIBYTE_STR_AS_MULTIBYTE_P to
2232 check the validity of multibyte sequence.
2233 (decode_coding_emacs_mule): New function.
2234 (encode_coding_emacs_mule): New macro.
2235 (detect_coding_iso2022): Use ONE_MORE_BYTE to fetch a byte from
2236 the source.
2237 (DECODE_ISO_CHARACTER): Just return a character code.
2238 (DECODE_COMPOSITION_START): Set coding->result instead of result.
2239 (decode_coding_iso2022, decode_coding_sjis_big5, decode_eol): Use
2240 EMIT_CHAR to produced decoded characters. Exit the loop only by
2241 macros ONE_MORE_BYTE or EMIT_CHAR. Don't handle the case of last
2242 block here.
2243 (ENCODE_ISO_CHARACTER): Don't translate character here. Produce
2244 only position codes for an invalid character.
2245 (encode_designation_at_bol): Return new destination pointer. 5th
2246 arg DSTP is changed to DST.
2247 (encode_coding_iso2022, decode_coding_sjis_big5): Get a character
2248 from the source by ONE_MORE_CHAR. Don't handle the case of last
2249 block here.
2250 (DECODE_SJIS_BIG5_CHARACTER, ENCODE_SJIS_BIG5_CHARACTER): These
2251 macros deleted.
2252 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8,
2253 detect_coding_utf_16, detect_coding_ccl): Use ONE_MORE_BYTE and
2254 TWO_MORE_BYTES to fetch a byte from the source.
2255 (encode_eol): Pay attention to coding->src_multibyte.
2256 (detect_coding, detect_eol): Preserve members src_multibyte and
2257 dst_multibyte.
2258 (DECODING_BUFFER_MAG): Return 2 even for coding_type_raw_text.
2259 (encoding_buffer_size): Set magnification to 3 for all coding
2260 systems that require encoding.
2261 (ccl_coding_driver): For decoding, be sure that the result is
2262 valid multibyte sequence.
2263 (decode_coding): Initialize coding->errors and coding->result.
2264 For emacs-mule, call decode_coding_emacs_mule. For no-conversion
2265 and raw-text, always call decode_eol. Handle the case of last
2266 block here. If not coding->dst_multibyte, convert the resulting
2267 sequence to unibyte.
2268 (encode_coding): Initialize coding->errors and coding->result.
2269 For emacs-mule, call encode_coding_emacs_mule. For no-conversion
2270 and raw-text, always call encode_eol. Handle the case of last
2271 block here.
2272 (shrink_decoding_region, shrink_encoding_region): Detect cases
2273 that we can't skip data more rigidly.
2274 (code_convert_region): Setup src_multibyte and dst_multibyte
2275 members of coding. For decoding, if the buffer is multibyte,
2276 convert the source sequence to unibyte in advance. For encoding,
2277 if the buffer is multibyte, convert the resulting sequence to
2278 multibyte afterward.
2279 (run_pre_post_conversion_on_str): New function.
2280 (code_convert_string): Deleted and divided into the following two.
2281 (decode_coding_string, encode_coding_string): New functions.
2282 (code_convert_string1, code_convert_string_norecord): Call one of
2283 above.
2284 (Fdecode_sjis_char, Fdecode_big5_char): Use MAKE_CHAR instead of
2285 MAKE_NON_ASCII_CHAR.
2286 (Fset_terminal_coding_system_internal,
2287 Fset_safe_terminal_coding_system_internal): Setup src_multibyte
2288 and dst_multibyte members.
2289 (init_coding_once): Initialize iso_code_class with new enum
2290 ISO_control_0 and ISO_control_1.
2291
2292 * coding.h (enum iso_code_class_type): Member ISO_control_code is
2293 devided into ISO_control_0 and ISO_control_1.
2294 (struct coding_system): New members src_multibyte, dst_multibyte,
2295 errors, and result. Delete member fake_multibyte.
2296 (CODING_REQUIRE_DECODING): Return 1 if coding->dst_multibyte is
2297 nonzero.
2298 (CODING_REQUIRE_ENCODING): Return 1 if coding->src_multibyte is
2299 nonzero.
2300
2301 * data.c (Faref): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
2302 (Faset): Likewise.
2303
2304 * editfns.c (Fformat): Be sure to convert 8-bit characters to
2305 multibyte form.
2306 (Ftranspose_region) [BYTE_COMBINING_DEBUG]: Abort if byte
2307 combining occurs.
2308 (Ftranspose_region): Delete codes for handling byte combining.
2309
2310 * fileio.c (Finsert_file_contents): Setup src_multibyte and
2311 dst_multibyte members of coding. On handling REPLACE on unibyte
2312 buffer, convert the result of decode_coding to unibyte. On
2313 inserting into a mutibyte buffer, always call code_convert_region.
bd4bde7f 2314 (e_write): Setup coding->src_multibyte according to the
c9671f81
KH
2315 multibyteness of the source (buffer or string).
2316
2317 * fns.c (concat): Handle 8-bit characters correctly.
2318 (Fstring_as_unibyte): Be sure to make all 8-bit characters in
2319 unibyte in the result.
2320 (Fstring_as_multibyte): Be sure to make all 8-bit characters in
2321 valid multibyte form in the result.
2322 (map_char_table): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
2323 (Fbase64_encode_region, Fbase64_encode_string): If base64_encode_1
2324 return -1, signal an error.
2325 (base64_encode_1): New arg MULTIBYTE. Get each character by
2326 CHAR_STRING_AND_LENGTH if MULTIBYTE is nonzero. If a multibyte
2327 character is found, return -1.
2328 (Fbase64_decode_region): Delete codes for handling byte-combining.
2329 Treat each decoded byte as a unibyte character.
2330 (Fbase64_decode_string): Return unibyte string.
2331 (Fcompare_strings, concat, string_byte_to_char): Use
2332 FETCH_STRING_CHAR_ADVANCE_NO_CHECK instead off
2333 FETCH_STRING_CHAR_ADVANCE.
2334 (Fstring_lessp): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
2335 (mapcar1): If SEQ is string, always use FETCH_STRING_CHAR_ADVANCE.
2336
2337 * fontset.c (fontset_ref): Use SPLIT_CHAR instead of
2338 SPLIT_NON_ASCII_CHAR.
2339 (fontset_ref_via_base, fontset_set): Likewise
2340
2341 * insdel.c (adjust_markers_for_record_delete): Deleted.
2342 (adjust_markers_for_insert): Argument changed. Caller changed.
2343 (adjust_markers_for_replace): Likewise.
2344 (ADJUST_CHAR_POS, combine_bytes, byte_combining_error,
2345 CHECK_BYTE_COMBINING_FOR_INSERT): Deleted.
2346 (copy_text): Delete unused local varialbe c_save. For converting
2347 to multibyte, be sure to make all 8-bit characters in valid
2348 multibyte form.
2349 (count_size_as_multibyte): Handle 8-bit characters correctly.
2350 (insert_1_both, insert_from_string_1, insert_from_buffer_1,
2351 adjust_after_replace, replace_range, del_range_2)
2352 [BYTE_COMBINING_DEBUG]: Abort if byte combining occurs.
2353 (insert_1_both, insert_from_string_1, insert_from_buffer_1,
2354 adjust_after_replace, replace_range, del_range_2) Delete codes for
2355 handling byte combining.
2356 (adjust_before_replace): Deleted.
427ec082 2357
c9671f81
KH
2358 * keymap.c (Fsingle_key_description): Use SPLIT_CHAR instead of
2359 SPLIT_NON_ASCII_CHAR.
2360 (describe_vector): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
2361 (Faccessible_keymaps): Use FETCH_STRING_CHAR_ADVANCE
2362 unconditionally.
2363 (Fkey_description): Likewise.
2364
2365 * lread.c (read1): On reading multibyte string, be sure to make
2366 all 8-bit chararacters in valid multibyte form.
2367 (readchar): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
2368
2369 * print.c (print_object): Use FETCH_STRING_CHAR_ADVANCE
2370 unconditionally.
2371
2372 * process.c (Fstart_process): GCPRO current_dir before calling
2373 Ffind_operation_coding_system. Encode arguments here.
2374 (create_process): Don't encode arguments here. Setup
2375 src_multibyte and dst_multibyte members of struct coding.
2376 (read_process_output): Setup src_multibyte and dst_multibyte
2377 members of struct coding. If the output is to multibyte buffer,
2378 always decode the output of the process. Adjust the
2379 representation of 8-bit characters to the multibyteness of the
2380 output.
2381 (send_process): Setup coding->src_multibyte according to the
2382 multibyteness of the source.
2383
2384 * search.c (wordify): Use FETCH_STRING_CHAR_ADVANCE
2385 unconditionally.
2386 (Freplace_match): Use FETCH_STRING_CHAR_ADVANCE and
2387 FETCH_STRING_CHAR_ADVANCE_NO_CHECK appropriately.
2388
2389 * term.c (produce_special_glyphs): Use CHAR_BYTES instead of
2390 CHAR_LEN.
2391
2392 * w16select.c (Fw16_set_clipboard_data): Setup members
2393 src_multibyte and dst_multibyte of coding. Adjusted for the
2394 change for find_charset_in_str.
2395 (Fw16_get_clipboard_data): Likewise.
2396
2397 * w32fns.c (w32_to_x_font): Setup members src_multibyte and
2398 dst_multibyte of coding.
2399 (x_to_w32_font): Likewise.
2400
2401 * w32select.c (Fw32_set_clipboard_data): Setup members
2402 src_multibyte and dst_multibyte of coding. Adjusted for the
2403 change for find_charset_in_str.
2404 (Fw32_get_clipboard_data): Likewise.
2405
2406 * xdisp.c (get_next_display_element): Handle 8-bit characters
2407 correctly.
2408 (next_element_from_display_vector): Use CHAR_BYTES instead of
2409 CHAR_LEN.
2410 (disp_char_vector): Use SPLIT_CHAR instead of
2411 SPLIT_NON_ASCII_CHAR.
2412
2413 * xselect.c (selection_data_to_lisp_data): Setup members
2414 src_multibyte and dst_multibyte of coding. Adjusted for the
2415 change for find_charset_in_str.
2416 (lisp_data_to_selection_data): Likewise.
2417
5f64c9e0
GM
24182000-05-19 Gerd Moellmann <gerd@gnu.org>
2419
2b63d473
GM
2420 * buffer.c (Fbury_buffer): Avoid trouble from burying a killed
2421 buffer.
2422
5f64c9e0
GM
2423 * dispextern.h (Vimage_types): Add extern declaration.
2424
2425 * xdisp.c (Vimage_types): Moved here from xfns.c.
2426 (syms_of_xdisp): Move `image-types' variable here from xfns.c.
2427
2428 * xfns.c (Vimages_types): Moved to xdisp.c.
2429 (syms_of_xfns): Move `image-types' to xdisp.c.
2430
2431 * w32fns.c (Vimage_types): Removed.
2432 (syms_of_w32fns): Remove `image-types'.
2433
813086ea
KH
24342000-05-18 Kenichi Handa <handa@etl.go.jp>
2435
2436 * fns.c (map_char_table): Pay attention to character number of
2437 charset. Check the validity of charset at the first level. For
2438 leaf nodes that has nil value, call C_FUNCTION or FUNCTION with
2439 the default value.
2440
2441 * fontset.c: Include "buffer.h".
2442 (fs_load_font): If the face has fontset, record the face ID in
2443 that fontset.
2444 (Finternal_char_font): New function.
2445 (accumulate_font_info): New function.
2446 (Ffontset_info): Rewritten for the new fontset implementation.
2447 (syms_of_fontset): Register Vdefault_fontset in the first element
2448 of Vfontset_table. Include Vdefault_fontset in
2449 Vfontset_alias_alist. Declare `internal-char-font' as a Lisp
2450 function.
2451
bdaebbf0
DL
24522000-05-16 Dave Love <fx@gnu.org>
2453
2454 * m/iris5d.h: Deleted -- unused.
2455
cb613bb8
GM
24562000-05-16 Gerd Moellmann <gerd@gnu.org>
2457
b15f3b77
GM
2458 * xdisp.c, w32.c, print.c, msdos.c, emacs.c: Use the term
2459 `invalid' instead of `illegal'.
2460
2461 * indent.c (Fmove_to_column): When ending within a tab, insert
2462 spaces first so that markers at the end of the tab get adjusted.
2463
835c1b36
GM
2464 * frame.c (frames_bury_buffer): Don't add a buffer to the frame's
2465 buffer list that wasn't selected in that frame.
2466
cb613bb8
GM
2467 * filelock.c (get_boot_time): To obtain an 8 char file name, which
2468 is needed on mescaline, use a 2 char prefix, and call
2469 make_temp_name with second arg non-zero.
2470
2471 * fileio.c (make_temp_name): New function, extracted from
2472 Fmake_temp_name.
2473 (Fmake_temp_name): Use it.
2474
f685bea9
EZ
24752000-05-15 Eli Zaretskii <eliz@is.elta.co.il>
2476
2477 * window.c (coordinates_in_window): Subtract 1 when computing
2478 right_x.
2479
a1b8d58b
GM
24802000-05-15 Gerd Moellmann <gerd@gnu.org>
2481
2482 * Makefile.in (lisp): Add env.elc.
2483
2484 * callproc.c (Fgetenv_internal): Renamed from Fgetenv.
2485
a265079f
GM
24862000-05-12 Gerd Moellmann <gerd@gnu.org>
2487
2488 * search.c (Freplace_match): Handle case of `\N' in the
2489 replacement when there's no group N.
2490
da4496b6
GM
24912000-05-11 Gerd Moellmann <gerd@gnu.org>
2492
0ace421a
GM
2493 * xdisp.c (add_to_log): Don't pass the terminating NUL byte
2494 of the message to message_dolog.
2495
1172eb8d
GM
2496 * keyboard.c (read_char): Don't clear current message for help
2497 events; let the code handling help events handle this. Change
2498 code detecting help events that should be ignored.
2499
da4496b6
GM
2500 * xdisp.c (handle_single_display_prop): Don't try to set PT if
2501 we're interating over a string.
2502
0623e40f
DL
25032000-05-09 Dave Love <fx@gnu.org>
2504
2505 * fileio.c (Fwrite_region): If APPEND arg is an integer, seek to
2506 that offset before writing. Move gcpro region past call of
2507 Ffile_regular_p.
2508
bae2503b
DL
25092000-05-04 Dave Love <fx@gnu.org>
2510
2511 * buffer.c (syms_of_buffer) [auto-fill-function]: Doc fix.
2512
ec82fb2f
GM
25132000-05-04 Gerd Moellmann <gerd@gnu.org>
2514
2515 * insdel.c (insert_from_buffer_1): Adjust FROM position by number
2516 of inserted characters when BUF equals the current buffer, and PT
2517 is in front of or equal to FROM.
2518
cbf18892
GM
25192000-05-03 Gerd Moellmann <gerd@gnu.org>
2520
4ff40dd0
GM
2521 * xdisp.c (handle_single_display_prop): If display property value
2522 is invalid, or something not supported on the frame, restore
2523 iterator's position to what it was initially. Make sure to return
2524 0 for invalid and unsupported property values.
2525
cbf18892
GM
2526 * xterm.c (x_produce_glyphs) <composite chars>: Handle case
2527 that x_per_char_metric returns null.
2528
1b0672c3
GM
25292000-05-02 Gerd Moellmann <gerd@gnu.org>
2530
576da55d
GM
2531 * xterm.h (struct face): Add forward declaration.
2532 (struct image): Ditto.
2533 (image_ascent): Add prototype.
2534
2535 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
2536 (x_draw_image_relief, x_draw_image_foreground_1): Call function
2537 image_ascent instead of using IMAGE_ASCENT.
2538
2539 * dispextern.h (DEFAULT_IMAGE_HEIGHT): New macro.
2540 (IMAGE_ASCENT): Removed.
2541
2542 * xfns.c (Qcenter): New variable.
2543 (enum image_value_type): Add IMAGE_ASCENT_VALUE.
2544 (parse_image_spec): Handle IMAGE_ASCENT_VALUE.
2545 (image_ascent): New function.
2546 (lookup_image): Recognize `:ascent center'.
2547 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
2548 (tiff_format, gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
2549 (xbm_load): Don't set image's ascent here.
2550 (xbm_image_p, xpm_image_p, pbm_image_p, png_image_p)
2551 (jpeg_image_p, tiff_image_p, gif_image_p, gs_image_p): Don't
2552 check ascent values here.
2553 (Fimagep, Flookup_image [GLYPH_DEBUG]: Removed.
2554 (syms_of_xfns) [GLYPH_DEBUG]: Don't defsubr removed functions.
2555 (syms_of_xfns): Initialize Qcenter.
2556
1b0672c3
GM
2557 * eval.c (Fsignal): If lisp_eval_depth or spepdl_size are near
2558 to the limits, increase the limits.
2559
0d7811ed
KH
25602000-05-01 Kenichi Handa <handa@etl.go.jp>
2561
2562 * fontset.c (fs_load_font): By default, use 0x00..0x7f for ASCII.
2563 Check Vfont_encoding_alist against the full name of the opened
2564 font.
2565
a943a5ca
GM
25662000-04-28 Gerd Moellmann <gerd@gnu.org>
2567
2568 * xdisp.c (make_cursor_line_fully_visible): Handle case of rows
2569 taller than the window.
2570
5dba1e29
KH
25712000-04-28 Kenichi Handa <handa@etl.go.jp>
2572
2573 * xfaces.c (realize_x_face): Fix the argument of the second
2574 xassert. BASE_FACE may not be a face for ASCII.
2575
353964e3
GM
25762000-04-27 Gerd Moellmann <gerd@gnu.org>
2577
c76e04a8
GM
2578 * print.c (print_object): Treat print-length < 0 as nil.
2579
2580 * Makefile.in (termcapobj): Don't use TERMCAP_OBJ.
2581
2582 * s/freebsd.h (TERMCAP_OBJ): Removed.
2583 (LIBS_TERMCAP): Don't define for __FreeBSD_version >= 400000.
2584
2585 * lread.c (read1): Don't treat period followed by certain
2586 characters as symbol start.
2587
2588 * xfns.c (slurp_file): New function.
2589 (xbm_image_p): Handle case of in-memory XBM files.
2590 (xbm_scan): Rewritten to work on memory buffers instead of files.
2591 (xbm_read_bitmap_data): Renamed from xbm_read_bitmap_file_data.
2592 Work on memory buffers instead of files. If DATA is null test
2593 if buffer looks like an in-memory XBM file.
2594 (xbm_load_image): Renamed from xbm_load_image_file. Work on
2595 memory buffers instead of files.
2596 (xbm_file_p): New function.
2597 (xbm_load): Accept :data DATA where DATA is an in-memory XBM file.
2598
353964e3
GM
2599 * lread.c (end_of_file_error): New function.
2600 (read1): Call it instead of signaling `end-of-file' directly.
2601
427ec082 2602 * print.c (print_error_message): Print data of `end-of-file'
353964e3
GM
2603 with Fprinc instead of Fprin1.
2604
24d744ac
KR
26052000-04-26 Ken Raeburn <raeburn@gnu.org>
2606
2607 * window.c (freeze_window_start): Check that minibuffer scroll
2608 window isn't nil before extracting the window structure pointer
2609 from it.
2610
2611 * undo.c (record_delete): If we hit the end of the undo list, stop
2612 picking elements apart.
2613
7464346d
GM
26142000-04-26 Gerd Moellmann <gerd@gnu.org>
2615
2616 * xdisp.c (display_line): If lines are continued, restore
2617 iterator's ascent/descent information to the values before the
2618 first glyph not fitting on the line.
2619
612839b6
GM
26202000-04-25 Gerd Moellmann <gerd@gnu.org>
2621
2622 * xdisp.c (try_window_id) <all changes above window start>: Adjust
2623 positions in glyph matrix. Don't compute new window end
2624 positions.
2625
2626 * dispnew.c (increment_matrix_positions): Renamed from
2627 increment_glyph_matrix_buffer_positions.
2628 (increment_row_positions): Renamed from
2629 increment_glyph_row_buffer_positions.
2630
2631 * dispextern.h: Change names of renamed functions from dispnew.c
2632 in prototypes.
2633
cc181e95
GM
26342000-04-24 Gerd Moellmann <gerd@gnu.org>
2635
abfcc168
GM
2636 * fileio.c (Fdo_auto_save): Create directories for auto-save
2637 list file if necessary.
2638
cc181e95
GM
2639 * xdisp.c (init_iterator): Set iterator's extra_line_spacing
2640 from buffer or frame.
2641 (automatic_hscrolling_p): New variable.
2642 (hscroll_windows): Scroll windows horizontally only if automatic
2643 hscrolling is allowed.
2644 (syms_of_xdisp): New variable `automatic-hscrolling'.
2645
2646 * frame.h (struct frame): Add member extra_line_spacing.
2647
2648 * xfns.c (x_set_line_spacing): New function.
2649 (Fx_create_frame): Set line spacing from resources.
2650 (Qline_spacing): New variable.
2651 (syms_of_xfns): Initialize Qline_spacing.
427ec082 2652
cc181e95
GM
2653 * emacs.c (USAGE2): Add `--line-spacing' and `-lsp'.
2654
2655 * buffer.c (init_buffer_once): Handle extra_line_spacing.
2656 (syms_of_buffer): Add `default-line-spacing' and `line-spacing'.
abfcc168 2657 (reset_buffer): Don't initialize extra2 and extra3. Initialize
cc181e95
GM
2658 extra_line_spacing from default value.
2659 (init_buffer_once): Initialize default value of extra_line_spacing.
2660
2661 * buffer.h (struct buffer): Add extra_line_spacing, remove extra2
2662 and extra3.
2663
2664 * xterm.c (x_produce_glyphs): Remove reference to struct it's
2665 prompt_width. Add extra line spacing.
2666
2667 * term.c (produce_glyphs): Remove reference to struct it's
2668 prompt_width.
2669
2670 * dispextern.h (struct it): Remove member prompt_width, add
2671 extra_line_spacing.
2672
58827478
GM
26732000-04-22 Gerd Moellmann <gerd@gnu.org>
2674
2675 * dispnew.c (update_frame_line): When writing a whole line, make
2676 sure cursor is in the right row afterwards, otherwise a use of
2677 capability `ch' in cmgoto might leave the cursor in the row below.
2678
25a87f42
GM
26792000-04-21 Gerd Moellmann <gerd@gnu.org>
2680
2681 * lisp.h (struct Lisp_Buffer_Cons): Remove.
2682
2683 * keyboard.c (timer_check): Fix typo in comment.
2684
54edf5c2
KH
26852000-04-21 Kenichi Handa <handa@etl.go.jp>
2686
2687 * fontset.c (Fset_fontset_font): Fix docstring. Local variable
2688 name change: ch -> character.
2689
3a64eef5
GM
26902000-04-20 Gerd Moellmann <gerd@gnu.org>
2691
2692 * keyboard.c (echo_message_buffer): New variable.
2693 (echo_now): Set echo_message_buffer to the echo area buffer used
2694 to display the echo.
2695 (cancel_echoing): Reset echo_message_buffer to nil.
2696 (read_char): Code rewritten that handles canceling an echo or
2697 echoing a dash, respectively.
2698
2699 * fileio.c (Ffile_writable_p) [WINDOWSNT]: Return nil if parent
2700 directory doesn't exist.
2701
6142fdcb
DL
27022000-04-19 Dave Love <fx@gnu.org>
2703
2704 * fns.c (syms_of_fns): Defsubr mapc.
a9cacab7
DL
2705 (concat): Don't allow numeric args.
2706 (Fconcat): Doc change.
6142fdcb 2707
ac6b5352
SM
27082000-04-19 Stefan Monnier <monnier@cs.yale.edu>
2709
2710 * regex.c (re_match_2_internal): Don't shorten the strings anymore,
2711 instead define end_match(1|2) more carefully.
2712 Use GET_CHAR_BEFORE_2 for `begline'.
2713
cb9215e4
GM
27142000-04-19 Gerd Moellmann <gerd@gnu.org>
2715
5e3dac3f
GM
2716 * frame.h (SELECTED_FRAME): Change definition to compile cleanly
2717 on 64-bit systems where NULL is defined as `0'.
2718
2719 * xdisp.c (with_echo_area_buffer): Add more `int' parameters for
2720 the `variable argument list' to make it work on Alpha.
2721
cb9215e4
GM
2722 * m/alpha.h (_LP64) [!_LP64]: Define.
2723 (ORDINARY_LINK): Define for NetBSD.
2724
2725 * m/macppc.h (ORDINARY_LINK): Define for NetBSD.
427ec082 2726
f532dca0
DL
27272000-04-19 Dave Love <fx@gnu.org>
2728
c750667e
DL
2729 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Revert 2000-04-14
2730 change.
2731
2732 * Makefile.in (LIBS): Don't use.
2733 (GETLOADAVG_OBJ): Define again.
2734 (otherobj): Add GETLOADAVG_OBJ.
2735
f532dca0
DL
2736 * buffer.c (Fmake_indirect_buffer): Escape newline in doc.
2737
1c7e22fd
GM
27382000-04-18 Gerd Moellmann <gerd@gnu.org>
2739
f6d3257b
GM
2740 * lread.c (read_filtered_event): Cancel and start busy cursor.
2741
427ec082 2742 * xterm.c (x_produce_glyphs) <ASCII chars>: Take into account
1c7e22fd
GM
2743 that the per-character metrics may be null.
2744
e10f64e7
GM
27452000-04-17 Gerd Moellmann <gerd@gnu.org>
2746
0daee095
GM
2747 * buffer.c (clone_per_buffer_values): New function.
2748 (Fmake_indirect_buffer): Add optional argument CLONE. Call
2749 clone_per_buffer_values if CLONE is not nil.
2750
e10f64e7
GM
2751 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
2752
38687d43
DL
27532000-04-16 Dave Love <fx@gnu.org>
2754
2755 * Makefile.in: Remove obsolete localcpp stuff.
2756 (GETLOADAVG_OBJ): Don't define.
2757 (obj): Move LIBOBJS...
2758 (otherobj): ... to here.
2759 (MSDOS_OBJ): Convert to make variable -- preprocessing zapped
2760 whitespace-only lines after the continuation (Irix).
2761
c21c7262
GM
27622000-04-14 Gerd Moellmann <gerd@gnu.org>
2763
2764 * xfns.c (xpm_load) [DEBUG_X_COLORS]: Register colors.
2765
2766 * s/freebsd.h (LD_SWITCH_SYSTEM): Add `-L /usr/local/lib'.
2767
314767c0
DL
27682000-04-14 Dave Love <fx@gnu.org>
2769
2770 * s/aix3-1.h, s/bsd4-2.h, s/bsd4-3.h, s/cxux.h, s/dgux.h, s/gnu.h:
2771 * s/hpux.h, s/iris3-5.h, s/iris3-6.h, s/irix3-3.h, s/rtu.h:
2772 * s/unipl5-0.h, s/unipl5-2.h, s/usg5-0.h, s/usg5-2-2.h, s/usg5-2.h:
2773 * s/usg5-3.h, s/xenix.h, s/umax.h: Don't define autoconfiscated
2774 NLIST_STRUCT.
2775
2776 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Don't define
2777 autoconfiscated HAVE_GETLOADAVG.
2778
2779 * s/nextstep.h, s/sco4.h, s/sco5.h: Don't define autoconfiscated
2780 BROKEN_MKTIME.
2781
a2522dca
GM
27822000-04-14 Gerd Moellmann <gerd@gnu.org>
2783
2784 * filelock.c (MAKE_LOCK_NAME): Allocate 2 more bytes.
2785 (fill_in_lock_file_name): Avoid existing files that aren't
2786 links.
2787
33744b5d
DL
27882000-04-14 Dave Love <fx@gnu.org>
2789
c21c7262 2790 * Makefile.in (LIBS, LIBOBJS): New variable.
33744b5d
DL
2791 (INTERVAL_SRC): Convert to make variable.
2792 (INTERVAL_OBJ, MKTIME_OBJ, FLOAT_SUPPORT, FACE_SUPPORT)
2793 (HAVE_X_WINDOWS, OBJECTS_SYSTEM): Remove.
2794 (obj): Substitute INTERVAL_OBJ, add MKTIME_OBJ, GETLOADAVG_OBJ and
2795 add LIBOBJS.
2796 (SOME_MACHINE_OBJECTS): Remove interval stuff.
2797 (lisp): Substitute FACE_SUPPORT, FLOAT_SUP.
2798 (shortlisp): Add facemenu, float-sup, frame.
2799 (SOME_MACHINE_LISP): Remove them from here.
2800 (LIBES): Change unused LDLIBS to autoconf LIBS.
2801
2802 * config.in: Add BROKEN_MKTIME, NLIST_STRUCT, NLIST_NAME_UNION.
2803
9d3d5916
KH
28042000-04-14 Kenichi Handa <handa@etl.go.jp>
2805
2806 * composite.c (update_compositions): If FROM and TO are not in a
2807 valid range, do nothing.
2808
198e3c7a
GM
28092000-04-13 Gerd Moellmann <gerd@gnu.org>
2810
2811 * tparam.c (tparam1): Abort when encountering an unknown
2812 `%'-specifier.
2813
2814 * s/freebsd.h (TERMCAP_OBJ) [__FreeBSD__ >= 4]: Define as
2815 terminfo.o.
2816
2817 * Makefile.in (termcapobj) [LIBS_TERMCAP && TERMCAP_OBJ]: Define
2818 as TERMCAP_OBJ.
2819
055a28c9
EZ
28202000-04-13 Eli Zaretskii <eliz@is.elta.co.il>
2821
2822 * fileio.c (a_write): Remove redundant semi-colons.
2823 (e_write): Return -1 if failed to write all the data.
2824 This fixes the changes made at 1999-12-15.
2825
f5c75033
DL
28262000-04-12 Dave Love <fx@gnu.org>
2827
2828 * fns.c (mapcar1): Test for null vals to support mapc.
2829 (Fmapc): New function.
2830
0c3cfc51
EZ
28312000-04-12 Eli Zaretskii <eliz@is.elta.co.il>
2832
2833 * msdos.c (NUM_MOUSE_BUTTONS): Define.
2834 (IT_frame_up_to_date): Support the buffer local value of
2835 cursor-type, if defined.
2836
33465a31
DL
28372000-04-10 Dave Love <fx@gnu.org>
2838
2839 * editfns.c (preceding-char, following-char): Doc fix.
2840
6ed56568
KR
28412000-04-10 Ken Raeburn <raeburn@gnu.org>
2842
2843 * Makefile.in (temacs): Revert 2000-03-12 change.
2844
7cf80d4e
JR
28452000-04-10 Jason Rumney <jasonr@gnu.org>
2846
2847 * xfaces.c (realize_face): Change FRAME_X_P to FRAME_WINDOW_P.
2848
34f3f342
GM
28492000-04-10 Gerd Moellmann <gerd@gnu.org>
2850
1a1b1895
GM
2851 * xdisp.c (setup_echo_area_for_printing): Choose an echo
2852 area buffer, if it's not set up yet.
2853
34f3f342
GM
2854 * indent.c (compute_motion): Set immediate_quit.
2855
be0dbdab
GM
28562000-04-09 Gerd Moellmann <gerd@gnu.org>
2857
c45be9ac
GM
2858 * xfaces.c (tty_suppress_bold_inverse_default_colors_p): New
2859 variable.
2860 (realize_tty_face): Suppress boldness if colors are the inverse of
2861 the default colors, and tty_suppress_bold_inverse_default_colors_p
2862 is set.
2863 (Ftty_suppress_bold_inverse_default_colors): New function.
2864 (syms_of_xfaces): Defsubr it.
2865
be0dbdab
GM
2866 * buffer.c (Frestore_buffer_modified_p): New function.
2867 (syms_of_buffer): Defsubr it.
2868
e8413c3b
KR
28692000-04-08 Ken Raeburn <raeburn@gnu.org>
2870
87f67317
KR
2871 * charset.c (Fmake_char_internal): CHAR_COMPONENTS_VALID_P takes a
2872 charset id (int) argument, not a charset (Lisp_Object).
2873
e8413c3b
KR
2874 * coding.h (code_convert_string): Declare.
2875 * coding.c (code_convert_string_norecord): Pass an int, not a lisp
2876 object, as the fourth argument to code_convert_string.
2877
2878 * fontset.c (make_fontset_for_ascii_face): Use XINT on return
2879 value.
2880 (Fset_fontset_font): Use EQ to compare lisp objects.
2881
7c752c80
KR
28822000-04-05 Ken Raeburn <raeburn@gnu.org>
2883
c0333abc
KR
2884 * intervals.h (SET_INTERVAL_PARENT): Use INT_LISPLIKE to test for
2885 a pointer that looks like a lisp object.
2886 (SET_INTERVAL_OBJECT): Don't explicitly compare the object with
2887 zero, instead see whether it's an integer object, since they can't
2888 have intervals.
2889 (GET_INTERVAL_OBJECT): Simply assign to the destination.
2890
7c752c80
KR
2891 * dispnew.c (allocate_matrices_for_frame_redisplay,
2892 direct_output_forward_char): Use X(U)INT and make_number as needed
2893 to convert between (unsigned) int values and lisp integers.
2894 * keyboard.c (read_key_sequence): Likewise.
2895 * lread.c (substitute_object_recurse): Likewise.
2896 * fns.c (concat, hash_lookup, hash_remove): Likewise.
2897 * minibuf.c (do_completion, Fminibuffer_complete_word,
2898 Fminibuffer_completion_help): Likewise.
2899 * term.c (produce_special_glyphs): Likewise.
2900
2901 * fileio.c (Fwrite_region): Use EQ when comparing lisp objects.
2902 * print.c (print_preprocess, print_object): Likewise.
2903
2904 * search.c (compile_pattern): Use NILP when checking for nil.
2905
74e49b38
KR
2906 * lisp.h (make_number) [!NO_UNION_TYPE && __GNUC__ >= 2 &&
2907 __OPTIMIZE__]: Provide a GNU C macro version that handles
2908 lisp-object unions.
2909 (XSET) [!NO_UNION_TYPE]: Set the value field first, then the type
2910 field, to better cope with ENABLE_CHECKING and calls that modify a
2911 Lisp_Object using its old value.
2912
685e5ed2
GM
29132000-04-04 Gerd Moellmann <gerd@gnu.org>
2914
c407c570
GM
2915 * window.c (compare_window_configurations): Signal an error
2916 if parameters C1 or C2 aren't window configurations.
2917
685e5ed2
GM
2918 * bytecode.c (Fbyte_code): Add a bunch of BEFORE_POTENTIAL_GC/
2919 AFTER_POTENTIAL_GC calls around calls to functions that can
2920 signal an error and thus invoke the debugger.
2921
587a49ab
GM
29222000-04-03 Gerd Moellmann <gerd@gnu.org>
2923
62f20204
GM
2924 * fns.c (Fbase64_decode_region, Fbase64_decode_string): Signal
2925 an error if decoding fails.
2926
587a49ab
GM
2927 * keyboard.c (lispy_mouse_names): Variable removed.
2928 (Vlispy_mouse_stem): New variable.
2929 (syms_of_keyboard): Initialize Vlispy_mouse_stem.
2930 (make_lispy_event) <mouse_click, scroll_bar_click>: Don't abort
2931 for any mouse button number. Increase size of mouse_syms and
2932 button_down_location as needed. Call modify_event_symbol with
2933 different arguments.
2934 (make_lispy_event) <scroll_bar_click> [USE_TOOLKIT_SCROLL_BARS]:
2935 Call modify_event_symbol with different arguments.
2936 (make_lispy_event) <w32_scroll_bar_click> [WINDOWSNT]: Don't abort
2937 for any button number. Call modify_event_symbol with different
2938 arguments.
2939 (modify_event_symbol): Rename NAME_ALIST to NAME_ALIST_OR_STEM.
2940 Accept a string for NAME_ALIST_OR_STEM.
2941
2942 * lisp.h (larger_vector): Add prototype.
2943
2944 * fns.c (larger_vector): Make externally visible.
2945
2946 * termhooks.h (NUM_MOUSE_BUTTONS): Removed.
2947
2d1675e4
SM
29482000-04-02 Stefan Monnier <monnier@cs.yale.edu>
2949
2950 * regex.c (PTR_TO_OFFSET) [!emacs]: Remove.
2951 (RE_MULTIBYTE_P, RE_STRING_CHAR_AND_LENGTH): New macros.
2952 (GET_CHAR_BEFORE_2): Moved from charset.h plus fixed minor bug when
2953 we are between str1 and str2.
2954 (MAX_MULTIBYTE_LENGTH, CHAR_STRING) [!emacs]: Provide trivial default.
2955 (PATFETCH): Use `TRANSLATE'.
2956 (PATFETCH_RAW): Fetch multibyte char if applicable.
2957 (PATUNFETCH): Remove.
2958 (regex_compile): Rely on PATFETCH to do most of the multibyte magic.
2959 When writing a char, write it directly into the pattern buffer rather
2960 than going needlessly through a temp char-array.
2961 (re_match_2_internal): Similarly, rely on RE_STRING_CHAR to do the
2962 multibyte magic and remove the useless `#ifdef emacs'.
2963 (bcmp_translate): Don't compare as multibyte chars when in a unibyte
2964 buffer.
2965
2966 * regex.h (struct re_pattern_buffer): Make field `multibyte'
2967 conditional on `emacs'.
2968
2969 * charset.h (GET_CHAR_BEFORE_2): Moved to regex.c.
2970
cc2d8c6b
KR
29712000-04-01 Ken Raeburn <raeburn@gnu.org>
2972
2973 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P): Expand
2974 non-union-type versions of XMARK and friends here, because XMARK
2975 and friends won't work on an integer field if NO_UNION_TYPE is not
2976 defined.
2977 (make_number): Define as a function if it's not defined as a
2978 macro.
2979
09654086
KR
2980 * composite.c (run_composite_function): Use NILP when checking for
2981 nil.
2982 (syms_of_composite): Delete local var NARGS, pass an int as first
2983 argument to Fmake_hash_table.
2984
2387b382
KR
2985 * editfns.c (text_property_stickiness): Use NILP to test
2986 Lisp_Object boolean value.
2987 (Fmessage_or_box): Don't use NILP to test int variable.
c01fbf95
KR
2988 (Fformat): Use a temporary variable to avoid ENABLE_CHECKING
2989 problems reading from and changing the same lisp value in an
2990 XSETSTRING call.
2991
27660e89
GM
29922000-04-01 Gerd Moellmann <gerd@gnu.org>
2993
2994 * term.c (TN_no_color_video): New variable.
2995 (term_init): Intitialize TN_no_color_video.
2996 (enum no_color_bit): New enumeration.
2997 (MAY_USE_WITH_COLORS_P): New macro.
2998 (turn_on_face): Use it to determine if attributes may be used
2999 combined with colors.
3000
3578db3c
KR
30012000-04-01 Ken Raeburn <raeburn@gnu.org>
3002
3003 * window.c (CURBEG, CURSIZE): Don't overload lisp object lvalues
3004 with int lvalues via casts; instead, just yield lisp object
3005 lvalues.
3006 (enlarge_window): Variable sizep now points to Lisp_Object. Use
3007 proper accessor macros.
3008 (shrink_window_lowest_first): w->top is Lisp_Object; use XINT.
3009 (grow_mini_window): Fix typo getting int value of root->height.
3010
6fc556fd
KR
3011 * xdisp.c (compute_string_pos): Fix order of arguments to
3012 string_pos_nchars_ahead.
3013 (handle_fontified_prop, add_to_log): Pass int, not Lisp_Object, as
3014 count arg to variable-arg routines like Frun_hook_with_args and
3015 Fformat.
587a49ab
GM
3016 (back_to_previous_visible_line_start)
3017 (build_desired_tool_bar_string): Pass Lisp_Object, not int, to
6fc556fd
KR
3018 fixed-arg routines like Fget_char_property and Fmake_string.
3019 (reconsider_clip_changes): Use XINT when comparing integer lisp
3020 objects, or passing them as int arguments.
587a49ab
GM
3021 (mark_window_display_accurate, insert_left_trunc_glyphs)
3022 (append_space, extend_face_to_end_of_line): Use make_number when
6fc556fd
KR
3023 storing or passing integer values as lisp objects.
3024 (set_cursor_from_row, highlight_trailing_whitespace): Use
3025 INTEGERP, not implicit test against zero, for glyph object.
3026 (try_window_id): Don't use make_number when we want an int value.
3027
3028 * xfaces.c (xlfd_symbolic_value): Make last argument a
3029 Lisp_Object, to be consistent with callers.
3030 (Fbitmap_spec_p): Use XINT to get numeric value of height.
3031 (lface_hash): Apply XFASTINT to lisp values before folding in.
3032
3033 * xfns.c (Fx_show_tip): Use make_number to get lisp objects to
3034 fill in window width and height. Pass an int, not a lisp object,
3035 as first arg to Finsert.
3036
6e7b2457
GM
30372000-04-01 Gerd Moellmann <gerd@gnu.org>
3038
610d841e
GM
3039 * xfaces.c (realize_basic_faces): Block input while realizing
3040 the faces.
3041
6e7b2457
GM
3042 * keyboard.c (lispy_mouse_names): Add additional mouse names.
3043
3044 * termhooks.h (NUM_MOUSE_BUTTONS): Increase to 15.
3045
aa110c0c
GM
30462000-03-31 Gerd Moellmann <gerd@gnu.org>
3047
3048 * xterm.c (x_produce_glyphs): When displaying unibyte text
610d841e 3049 or ASCII, handle case that per-char metric is null.
aa110c0c 3050
8801a864
KR
30512000-03-30 Ken Raeburn <raeburn@gnu.org>
3052
c6129d7e
KR
3053 * lisp.h (NO_UNION_TYPE) [ENABLE_CHECKING]: Undef.
3054
8801a864
KR
3055 * lisp.h (XCONS, XSTRING, XSYMBOL, XFLOAT, XPROCESS, XWINDOW,
3056 XSUBR, XBUFFER): Verify correct object type before returning
3057 pointer, using eassert.
3058 * frame.h (XFRAME): Likewise.
3059
3060 * buffer.c (Frename_buffer, Fset_buffer_multibyte,
3061 swap_out_buffer_local_variables, Fmove_overlay): Don't apply
3062 XSYMBOL, XBUFFER, etc, to values that may be nil or of the wrong
3063 type.
3064 * data.c (set_internal): Likewise.
3065 * dispextern.h (WINDOW_WANTS_MODELINE_P,
3066 WINDOW_WANTS_HEADER_LINE_P): Likewise.
3067 * fileio.c (auto_save_1): Likewise.
3068 * insdel.c (check_markers): Likewise.
3069 * marker.c (buf_charpos_to_bytepos, unchain_marker): Likewise.
3070 * undo.c (record_insert): Likewise.
3071 * vmsproc.c (child_sig): Likewise.
3072 * window.c (unshow_buffer, window_loop): Likewise.
3073 * xterm.c (x_erase_phys_cursor): Likewise.
3074
8e7af858
GM
30752000-03-30 Gerd Moellmann <gerd@gnu.org>
3076
3077 * xfns.c (free_image_cache): Free the cache structure itself
3078 last, after all its members have been freed.
3079
3080 * lisp.h (xstrdup): Add prototype.
3081
3082 * alloc.c (xstrdup): Moved here from xfaces.c.
3083 (allocating_for_lisp): Variable removed.
3084 (lisp_malloc): Block input around the calls to malloc and
3085 mem_insert.
3086
3087 * xfaces.c (realize_tty_face): Use find_symbol_value instead
3088 of Fsymbol_value.
3089 (xstrdup): Moved to alloc.c.
3090
e0b8c689
KR
30912000-03-29 Ken Raeburn <raeburn@gnu.org>
3092
b96f9fb7
KR
3093 * scroll.c (CHECK_BOUNDS): Renamed from CHECK.
3094
3095 * emacs.c (main): Fix sense of no-loadup test.
3096
e0b8c689
KR
3097 * config.in (ENABLE_CHECKING): Undef.
3098
3099 * lisp.h (struct interval): Replace "parent" field with a union of
3100 interval pointer and Lisp_Object; add new bitfield to use as
3101 discriminant. Change other flag fields to bitfields.
3102 (CHECK): New macro for consistency checking. If ENABLE_CHECKING
3103 is defined and the supplied test fails, print a message and
3104 abort.
3105 (eassert): New macro. Use CHECK to provide an assert-like
3106 facility.
3107
3108 * intervals.h (NULL_INTERVAL_P): Now applies only to real interval
3109 pointers; abort if the value looks like a lisp object.
3110 (NULL_INTERVAL_P, NULL_PARENT, HAS_PARENT, HAS_OBJECT, SET_PARENT,
3111 SET_OBJECT, INTERVAL_PARENT, GET_INTERVAL_OBJECT, COPY_PARENT):
3112 Modify for new interval parent definition.
3113
3114 * alloc.c (mark_interval_tree, MARK_INTERVAL_TREE,
3115 UNMARK_BALANCE_INTERVALS): Update references that need an
3116 addressable lisp object in the interval structure.
3117 (die): New function.
3118 (suppress_checking): New variable.
3119
3120 * intervals.c (interval_start_pos): Just return 0 if there's no
3121 parent object.
3122
f83c5440
GM
31232000-03-29 Gerd Moellmann <gerd@gnu.org>
3124
3125 * lread.c (read1): Accept `.' (period) as symbol start like in CL
3126 and earlier Emacs versions.
3127
3128 * keyboard.c (Ftop_level): Cancel busy-cursor.
3129
3130 * eval.c (call_debugger): Cancel busy-cursor.
3131
fdce64ff
KH
31322000-03-29 Kenichi Handa <handa@etl.go.jp>
3133
3134 * search.c (Freplace_match): Adjust multibyteness of the current
3135 buffer and NEWTEXT. Free allocated memory before signaling an
3136 error.
3137
f6a3f532
SM
31382000-03-28 Stefan Monnier <monnier@cs.yale.edu>
3139
3140 * regex.c (analyse_first): New function obtained by ripping out most
3141 of re_compile_fastmap and generalizing it a little bit so that it
3142 can also just return whether a given (sub)pattern can match the empty
3143 string or not.
3144 (regex_compile): Use `analyse_first' to decide whether the loop-check
3145 needs to be done or not for *, +, *? and +? (the loop check is costly
3146 for non-greedy repetition).
3147 (re_compile_fastmap): Delegate the actual work to `analyse_first'.
3148
e9b309ac
DL
31492000-03-28 Dave Love <fx@gnu.org>
3150
bb15bd9a
DL
3151 * s/gnu-linux.h (GC_SETJMP_WORKS): Define for i386, sparc, m68k,
3152 alpha.
3153
e9b309ac
DL
3154 * alloc.c: Include stdio.h. Test STDC_HEADERS, not __STDC__.
3155
ed0767d8
SM
31562000-03-27 Stefan Monnier <monnier@cs.yale.edu>
3157
3158 * regex.c (REGEX_FREE_STACK, RESET_FAIL_STACK): Make them usable as
3159 an expression.
3160 (enum re_opcode_t): Update description of succeed_n.
3161 (PATFETCH): Always define.
3162 (regex_compile): Use lookahead rather than PATUNFETCH (for repetition
3163 operators, char classes, shy-groups and intervals).
3164 Optimize special cases of intervals so as to only use succeed_n and
3165 jump_n when really needed.
3166 (re_compile_fastmap): Simplify handling of jump_n and succeed_n now
3167 that we don't have to handle the special cases any more.
3168 Simplify on_failure_jump handling as well.
3169
e11e7e46
JR
31702000-03-28 Jason Rumney <jasonr@gnu.org>
3171
3172 * lread.c (Fload): Move safe_p definition to above #ifdef DOS_NT.
3173
88faab89
GM
31742000-03-27 Gerd Moellmann <gerd@gnu.org>
3175
182ff242
GM
3176 * s/freebsd.h (GC_SETJMP_WORKS): Define.
3177
3178 * s/msdos.h (GC_SETJMP_WORKS): Define.
427ec082 3179
182ff242
GM
3180 * alloc.c (mark_maybe_object): New function.
3181 (mark_memory): Use it.
3182 (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK): New macros.
3183 (setjmp_tested_p, longjmp_done): New variables.
3184 (test_setjmp): New function.
3185 (mark_stack) [!GC_SETJMP_WORKS]: Call test_setjmp.
3186 (init_alloc): Initialize setjmp_tested_p and longjmp_done.
3187
c1005d06
GM
3188 * xdisp.c (face_before_or_after_it_pos): Pass multibyteness
3189 to DEC_TEXT_POS and INC_TEXT_POS.
3190
3191 * dispnew.c (direct_output_for_insert): Use DEC_TEXT_POS
3192 with parameter MULTIBYTE_P.
3193
427ec082 3194 * dispextern.h (INC_TEXT_POS, DEC_TEXT_POS): Add parameter
c1005d06
GM
3195 MULTIBYTE_P.
3196
7439e5b9 3197 * editfns.c (Fsubst_char_in_region): Don't use INC_POS in unibyte
182ff242
GM
3198 buffers because it looks for multibyte character byte sequences
3199 which don't exist in unibyte text.
7439e5b9 3200
d9c545da
GM
3201 * xterm.h (x_specified_cursor_type, x_copy_color): Add prototypes.
3202
11fd416e 3203 * xfaces.c (register_color, unregister_color, unregister_colors)
d9c545da
GM
3204 [DEBUG_X_COLORS]: New functions.
3205 (x_free_colors) [DEBUG_X_COLORS]: Unregister colors.
3206
3207 * xfns.c (x_set_cursor_color): Get color reference counts right.
3208
3209 * xterm.c (x_copy_color): New function.
3210 (x_alloc_nearest_color) [DEBUG_X_COLORS]: Call register_color.
3211
3212 * buffer.h (MAX_PER_BUFFER_VARS): Renamed from MAX_BUFFER_LOCAL_VARS.
3213 (PER_BUFFER_VAR_OFFSET): Renamed from BUFFER_LOCAL_VAR_OFFSET.
3214 (PER_BUFFER_VAR_IDX): Renamed from BUFFER_LOCAL_VAR_IDX.
3215 (PER_BUFFER_VALUE_P): Renamed from BUFFER_HAS_LOCAL_VALUE_P.
3216 (SET_PER_BUFFER_VALUE_P): Renamed from SET_BUFFER_HAS_LOCAL_VALUE_P.
3217 (PER_BUFFER_IDX): Renamed from BUFFER_LOCAL_IDX.
3218 (PER_BUFFER_DEFAULT): Renamed from BUFFER_LOCAL_DEFAULT_VALUE.
3219 (PER_BUFFER_VALUE): Renamed from BUFFER_LOCAL_VALUE.
3220 (PER_BUFFER_SYMBOL): Renamed from BUFFER_LOCAL_SYMBOL.
3221 (PER_BUFFER_TYPE): Renamed from BUFFER_LOCAL_TYPE.
3222
11fd416e
GM
3223 * category.c, data.c, syntax.c, print.c, lread.c: Use new macro
3224 names for handling per-buffer variables.
d9c545da
GM
3225
3226 * buffer.c (buffer_permanent_local_flags): Use MAX_PER_BUFFER_VARS
3227 instead of MAX_BUFFER_LOCAL_VARS.
3228 (last_per_buffer_idx): Renamed from max_buffer_local_idx.
3229
3230 * xfaces.c (lookup_face): Don't assert FACE_SUITABLE_FOR_CHAR_P.
3231
88faab89
GM
3232 * xfns.c (x_specified_cursor_type): New function.
3233 (x_set_cursor_type): Use it.
3234
3235 * buffer.h (struct buffer): Add cursor_type.
3236
d80f42b7
SM
32372000-03-26 Stefan Monnier <monnier@cs.yale.edu>
3238
3239 * regex.c (enum re_opcode_t): New opcode on_failure_jump_nastyloop.
427ec082 3240 (print_partial_compiled_pattern, re_compile_fastmap): Handle new
88faab89 3241 opcode.
d80f42b7
SM
3242 (regex_compile): Use on_failure_jump_nastyloop for non-greedy loops.
3243 (re_match_2_internal): Add code for on_failure_jump_nastyloop when
3244 executing it as well as when popping it off the stack to find infinite
3245 loops in non-greedy repetition operators.
3246
89e80928
GM
32472000-03-26 Gerd Moellmann <gerd@gnu.org>
3248
3d4ff2dd
GM
3249 * doc.c (Qfunction_documentation): New variable.
3250 (syms_of_doc): Initialize Qfunction_documentation.
3251 (Fdocumentation): If FUNCTION is a symbol with non-nil
3252 `function-documentation' property, return a documentation derived
3253 from that.
3254
bd96bd79
GM
3255 * buffer.c (syms_of_buffer): Add default-cursor-type.
3256 (init_buffer_once): Don't let cursor_type have a local value
3257 in every buffer.
3258
19d1bc27
GM
3259 * xterm.c (x_display_and_set_cursor): Choose cursor depending
3260 on buffer-local value of cursor_type.
3261 (x_draw_bar_cursor): Add parameter WIDTH.
3262
3263 * buffer.c (reset_buffer): Initialize buffer's cursor_type.
3264 (init_buffer_once): Set default cursor_type value to t.
3265 Mark cursor_type as local everywhere.
3266 (syms_of_buffer): New per-buffer variable cursor-type.
3267
89e80928
GM
3268 * buffer.h (struct buffer): Remove member local_var_flags,
3269 add local_flags.
3270 (MAX_BUFFER_LOCAL_VARS): New macro.
3271 (BUFFER_LOCAL_VAR_OFFSET, BUFFER_LOCAL_VAR_IDX)
3272 (BUFFER_HAS_LOCAL_VALUE_P, SET_BUFFER_HAS_LOCAL_VALUE_P)
3273 (BUFFER_LOCAL_IDX, BUFFER_LOCAL_DEFAULT_VALUE, BUFFER_LOCAL_VALUE)
3274 (BUFFER_LOCAL_SYMBOL, BUFFER_LOCAL_TYPE): New macros.
3275
3276 * print.c (print_object): Use new macros for per-buffer
3277 variables.
3278
3279 * category.c (Fset_category_table): Use new macros for per-buffer
3280 variables.
3281
3282 * buffer.c (buffer_permanent_local_flags): Make a char array.
3283 (max_buffer_local_idx): New variable.
3284 (reset_buffer_local_variables, Fbuffer_local_variables): Rewritten
3285 for new handling of per-buffer variables.
3286 (buffer_slot_type_mismatch): Use new macros for per-buffer vars.
3287 (init_buffer_once): Initialize per-buffer vars differently.
3288 Set max_buffer_local_idx.
3289
3290 * syntax.c (Fset_syntax_table): Use new macros for per-buffer
3291 variables.
3292
3293 * lread.c (defvar_per_buffer): Use new macros for per-buffer
3294 variables.
3295
3296 * data.c (do_symval_forwarding, store_symval_forwarding)
3297 (find_symbol_value, set_internal, default_value, Fset_default)
3298 (Fkill_local_variable, Flocal_variable_p): Use new macros for
3299 per-buffer variables.
3300
3301 * Makefile.in (bootstrap-emacs): Use `mv -f' instead of `mv'.
3302
9a0dd3dc
GM
33032000-03-24 Gerd Moellmann <gerd@gnu.org>
3304
b68c375f
GM
3305 * xterm.c (x_term_init): Unblock input around call1 of
3306 Qvendor_specific_keysyms.
3307
9a0dd3dc
GM
3308 * syntax.c (open_paren_in_column_0_is_defun_start): New variable.
3309 (find_defun_start): Consider an open parenthesis in column 0
3310 a defun start only if open_paren_in_column_0_is_defun_start is set.
3311 (syms_of_syntax): New variable open-paren-in-column-0-is-defun-start.
3312
7973e637
SM
33132000-03-24 Stefan Monnier <monnier@cs.yale.edu>
3314
3315 * eval.c (Fautoload): Add entry in load-history (if after dump).
3316 * lread.c (load-history): Update docstring.
3317
39210e90
GM
33182000-03-24 Gerd Moellmann <gerd@gnu.org>
3319
3320 * indent.c (Fvertical_motion): Always use the current buffer.
3321 Temporarily change the window's buffer, if necessary.
3322
72db3ab5
GM
33232000-03-23 Gerd Moellmann <gerd@gnu.org>
3324
3325 * xterm.c (fast_find_position): Make sure not to consider rows
3326 not visible in the window.
3327
990b2375
SM
33282000-03-22 Stefan Monnier <monnier@cs.yale.edu>
3329
3330 * regex.c (enum syntaxcode): Provide default for non-Emacs.
3331 (re_compile_fastmap, re_match_2_internal): Undo Dave's previous fix.
3332
ff4df011
JR
33332000-03-22 Jason Rumney <jasonr@gnu.org>
3334
3335 * w32menu.c (single_submenu): Set help string to NULL if none.
3336 (w32_menu_show): Set help string correctly.
3337 (add-menu-item): Set help string in MIIM_DATA for menu item.
3338 Load SetMenuItemInfoA explicitly.
3339 (w32_menu_display_help): New function.
427ec082 3340
ff4df011
JR
3341 * w32fns.c (w32_wnd_proc): Handle WM_MENUSELECT message.
3342 (QCdata): Moved to xdisp.c.
3343
3344 * w32term.c (w32_read_socket): Handle WM_MENUSELECT message.
3345 (Vw32_charset_to_codepage_alist): Removed.
3346 (Vw32_charset_info_alist): New variable.
3347 (Qw32_charset_[ansi, default, symbol, shiftjis, hangul, gb2312,
3348 chinesebig5, oem, easteurope, turkish, baltic, russian, arabic,
3349 greek, hebrew, thai, johab, mac, unicode]): New symbols.
3350 (x_produce_glyphs): Remove out of date #ifdef 0'd section. Replace
3351 with TODO comment.
3352 (w32_codepage_for_font): Use Vw32_charset_info_alist.
3353 (syms_of_w32term): Remove Vw32_charset_to_codepage_alist.
3354 Define Vw32_charset_info_alist and w32_charset symbols.
3355
33562000-03-22 Jason Rumney <jasonr@gnu.org>
3357
3358 * makefile.nt (w32bdf.obj): Update dependencies.
3359
3360 * w32bdf.c: Include frame.h and dispextern.h before fontset.h.
3361
3362 * w32fns.c: Include fontset.h after dispextern.h.
3363 (Fx_create_frame): Do not create fontset.
3364 (w32_load_system_font): Doc fix.
3365 (Fx_close_connection): Free full_name if it is not shared.
3366
3367 * w32term.c: Include fontset.h after dispextern.h.
3368 (x_get_glyph_face_and_encoding): New parameter two_byte_p. Callers
3369 updated.
3370 (w32_per_char_metric): If PCM is invalid, delete and return NULL.
3371 (x_get_char_and_face_encoding): Use FACE_FOR_CHAR to get face_id.
3372 (w32_font_is_double_byte): New function, needs body.
3373 (x_append_glyph): Set glyph->glyph_not_available_p.
3374 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
3375 it->charset. If it->multibyte_p is zero and it->c is a multibyte
3376 character, convert it to a unibyte character.
3377 (struct glyph_string): Delete member `charset'.
3378 (W32_TEXTOUT): Temporarily remove charset_dim until another way of
3379 calculating it is found.
3380 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
3381 the case that per char metric is not available correctly.
3382 (x_fill_glyph_string): Handle the case that the specific glyph is
3383 not available correctly.
3384 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
3385 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
3386 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
3387 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
3388 fontset. Don't call FS_LOAD_FONT.
3389
439d5cb4
KR
33902000-03-22 Ken Raeburn <raeburn@gnu.org>
3391
3392 * intervals.h (NULL_INTERVAL): Cast to INTERVAL type.
3393 (INT_LISPLIKE): New macro.
3394 (NULL_INTERVAL_P): Use it.
3395 (INTERVAL_HAS_PARENT, INTERVAL_HAS_OBJECT, SET_INTERVAL_PARENT,
3396 SET_INTERVAL_OBJECT, INTERVAL_PARENT, COPY_INTERVAL_PARENT,
3397 GET_INTERVAL_OBJECT, INTERVAL_PARENT_OR_NULL): New macros.
3398
3399 * alloc.c (make_interval, gc_sweep): Use new macros; eliminate all
3400 explicit references to "parent" field of struct interval and
3401 associated unclean type conversions.
3402 * intervals.c (create_root_interval, root_interval, rotate_right,
3403 rotate_left, balance_possible_root_interval, split_interval_right,
3404 split_interval_left, interval_start_pos, find_interval,
3405 next_interval, previous_interval, update_interval,
3406 adjust_intervals_for_insertion, delete_node, delete_interval,
3407 adjust_intervals_for_deletion, merge_interval_right,
3408 merge_interval_left, reproduce_tree, graft_intervals_into_buffer,
3409 copy_intervals_to_string): Likewise.
3410 * intervals.h (AM_LEFT_CHILD, AM_RIGHT_CHILD, RESET_INTERVAL):
3411 Likewise.
3412 * syntax.c (update_syntax_table): Likewise.
3413
3414 * intervals.c (reproduce_tree_obj): New function, like
3415 reproduce_tree but takes a Lisp_Object for the parent. Declare
3416 with prototype.
3417 (graft_intervals_into_buffer): Use it when appropriate.
3418 (reproduce_tree): Declare with prototype.
3419 (balance_possible_root_interval): Check that the parent is a lisp
3420 object before trying to examine its type.
3421
ee1c5b21
GM
34222000-03-22 Gerd Moellmann <gerd@gnu.org>
3423
3424 * xfaces.c (lface_same_font_attributes_p): Compare font attributes
3425 as strings only if both are known to be strings.
3426
3427 * s/openbsd.h (LIBS_TERMCAP): Undef.
3428
1fb352e0
SM
34292000-03-21 Stefan Monnier <monnier@cs.yale.edu>
3430
3431 * regex.c (CHAR_CHARSET, CHARSET_LEADING_CODE_BASE): Add default
3432 definitions for non-Emacs compilation.
3433 (enum re_opcode_t): Remove (not)wordchar and move (not)syntaxspec
3434 outside of `#ifdef emacs'.
3435 (print_partial_compiled_pattern): Update.
3436 (regex_compile): Use (not)syntaxspec(Sword) instead of (not)wordchar.
3437 (re_compile_fastmap): Merge handling of charset and charset_not (for
3438 emacs and non-emacs compilation as well).
3439 Similarly for (not)categoryspec and (not)syntaxspec.
3440 Don't use the fastmap when reaching `anychar' since the added
3441 complexity is not justified.
3442 (re_match_2_internal): Merge (not)wordchar (emacs and non-emacs)
3443 and (not)syntaxspec. Merge (not)categoryspec.
3444
fdaa1f77
KH
34452000-03-22 Kenichi Handa <handa@etl.go.jp>
3446
ff1a0d8e
KH
3447 * dispextern.h [!HAVE_WINDOW_SYSTEM] (FACE_SUITABLE_FOR_CHAR_P,
3448 FACE_FOR_CHAR): Define them differently for the configuration of
3449 --without-x.
fdaa1f77 3450
d152fb46
DL
34512000-03-21 Dave Love <fx@gnu.org>
3452
3453 * fontset.c (Fset_fontset_font, Ffontset_font): Fix newlines in
3454 doc string.
3455
d2cafc8c
GM
34562000-03-21 Gerd Moellmann <gerd@gnu.org>
3457
3458 * xfaces.c (check_lface_attrs) [GLYPH_DEBUG]: Fix syntax error.
3459 (lface_fully_specified_p): Don't check contents of
3460 LFACE_FONT_INDEX because that attribute is optional.
3461 (realize_x_face): Remove now unwarranted xassert.
3462
9111d4b5
KH
34632000-03-21 Kenichi HANDA <handa@etl.go.jp>
3464
3465 The following changes are to make font selection based on
3466 characters, not charset. In addition, they recover fontset
3467 facilities while utilizing the new font selection mechanism.
3468
6c4bfdc0
KH
3469 * Makefile.in (fontset.o): Depend on dispextern.h.
3470
3471 * alloc.c (mark_face_cache): Don't mark face->registry.
3472
9111d4b5
KH
3473 * dispextern.h (struct glyph): New member glyph_not_available_p.
3474 Use 22 bits for face_id.
3475 (enum lface_attribute_index): Add LFACE_FONT_INDEX.
3476 (struct face): Delete member registry, new member ascii_face.
3477 (FACE_SUITABLE_FOR_CHAR_P): Renamed from
3478 FACE_SUITABLE_FOR_CHARSET_P. Caller changed.
3479 (FACE_FOR_CHAR): Renamed from FACE_FOR_CHARSET. Caller changed.
3480 (struct it): Delete member charset, new member
3481 glyph_not_available_p.
3482
3483 * fontset.h (FONT_NOT_OPENED, FONT_NOT_FOUND): Macros removed.
3484 (struct fontset_info, struct fontset_data): Structs removed.
3485 (allloc_fontset_data, free_fontset_data, fs_regiser_fontset,
3486 Vglobale_fontset_alist, font_idx_temp): Externs removed.
3487 (fs_load_font, fs_query_fontset): Adjusted for new argument.
3488 (fs_free_face_fontset, fontset_font_pattern,
3489 face_suitable_for_char_p, face_for_char,
3490 make_fontset_for_ascii_face): Extern them.
3491 (FS_LOAD_FONT): Adjusted for the change of fontset implementation.
3492 (FS_LOAD_FACE_FONT): New macro.
3493
3494 * fontset.c: All codes rewritten or adjusted for the change of
3495 fontset implementation. Now fontset is represented by char table.
3496 (Vglobal_fontset_alist, font_idx_temp, my_strcasetbl): Variables
3497 removed.
3498 (my_strcasecmp): Function removed.
3499 (Vfontset_table, next_fontset_id, Vdefault_fontset): New
3500 variables.
3501 (AREF, ASIZE): New macros.
3502 (FONTSET_FROM_ID, FONTSET_ID, FONTSET_NAME, FONTSET_FRAME,
3503 FONTSET_ASCII, FONTSET_BASE, BASE_FONTSET_P, FONTSET_REF,
3504 FONTSET_REF_VIA_BASE, FONTSET_SET): New macros.
3505 (fontset_ref, fontset_ref_via_base, fontset_set, make_fontset,
3506 fontset_id_valid_p, font_family_registry, fontset_name,
3507 fontset_ascii, free_face_fontset, face_suitable_for_char_p,
3508 face_for_char, make_fontset_for_ascii_face, fontset_font_pattern):
3509 New functions.
3510 (fs_load_font): New arg FACE. Caller changed.
3511 (fs_query_fontset): Argument changed. Caller changed.
3512 (Fquery_fontset): call fs_query_fontset.
3513 (fs_register_fontset, alloc_fontset_data, free_fontset_data):
3514 Functions removed.
3515 (clear_fontset_elements, check_registry_encoding,
3516 check_fontset_name): New functions.
3517 (syms_of_fontset): Set char-table-extra-slots property of fontset
3518 to 3. Staticpro and initialize Vfontset_table and
3519 Vdefault_fontset. Defsubr fontset_font and fontset_list.
3520
3521 * frame.h (struct frame): Member `fontset_data' removed.
3522 (FRAME_FONTSET_DATA): Macro removed.
3523
3524 * frame.c (make_frame): Don't allocate f->fontset_data.
3525 (Fdelete_frame): Don't free f->fontset_data.
3526
6c4bfdc0
KH
3527 * msdos.c (XMenuActivate): Args to lookup_derived_face changed.
3528
9111d4b5
KH
3529 * xdisp.c (charset_at_position): Function removed.
3530 (init_iterator): Don't set member charset of struct `it'.
3531 (handle_face_prop, reseat_to_string, set_iterator_to_next,
3532 next_element_from_display_vector, insert_left_trunc_glyphs):
3533 Likewise.
3534 (face_before_or_after_it_pos): Call FACE_FOR_CHAR, not
3535 FACE_FOR_CHARSET.
3536 (get_next_display_element, append_space,
3537 extend_face_to_end_of_line): Likewise.
3538
3539 * xfaces.c (Qx_charset_registry, Vface_default_registry):
3540 Variables removed.
3541 (clear_font_table, frame_update_line_height, load_face_font):
3542 Adjusted for the change of fontset implementation.
3543 (load_face_fontset_font): Function removed.
3544 (pixel_point_size): New function.
3545 (font_list): Argument type changed. Caller changed.
3546 (LFACE_FONT): New macro.
3547 (check_lface_attrs): Check attr[LFACE_FONT_INDEX].
3548 (set_lface_from_font_name): Type of arg FONTNAME is changed to
3549 Lisp_Object. Determine the font name by actually loading a font
3550 by the specified pattern. Set LFACE_FONT (lface) to the specified
3551 pattern. Even if a font is not found, don't try alternatives.
3552 (Finternal_set_lisp_face_attribute): Handle `font' slot in lface.
3553 (set_font_frame_param): If `font' is specified in lface, use it.
3554 (Finternal_get_lisp_face_attribute): Handle `font' slot in lface.
3555 (lface_same_font_attributes_p): Likewise.
3556 (make_realized_face): Arguent changed. Caller changed. Set
3557 face->ascii_face to face itself.
3558 (free_realized_face): Free face->fontset if face is for ASCII.
3559 (face_suitable_for_iso8859_1_p, face_suitable_for_charset_p,
3560 deduce_unibyte_registry, x_charset_registry): Functions removed.
3561 (free_realized_multibyte_face): New function.
3562 (lookup_face, lookup_named_face, lookup_derived_face): Argument
3563 changed. Caller changed.
3564 (try_font_list): Argument type changed.
3565 (face_fontset): Check `font' slot of ATTRS, not `family' slot.
3566 (choose_face_font): Argument changed. Handle fontset properly.
3567 (choose_face_fontset_font): Function removed.
3568 (realize_default_face, realize_named_face): Don't remove the
3569 former face here.
3570 (realize_face): Argument changed. Caller changed. Remove face
3571 with the arg former_face_id in advance. Load font for the new
3572 face.
3573 (realize_x_face): Argument changed. Caller changed. For a
3574 multibyte character, share fontset with base_face. For a single
3575 byte character, make a new realized fontset. Don't load a font
3576 here.
3577 (realize_tty_face): Argument changed. Caller changed.
3578 (compute_char_face): Call FACE_FOR_CHAR, not FACE_FOR_CHARSET.
3579 (face_at_buffer_position): Don't check multibyte_p for returning
3580 DEFAULT_FACE_ID.
3581 (face_at_string_position): Call FACE_SUITABLE_FOR_CHAR_P, not
3582 FACE_SUITABLE_FOR_CHARSET_P.
3583 (syms_of_xfaces): Remove code for Qx_charset_registry and
3584 Vface_default_registry.
3585
6c4bfdc0
KH
3586 * xterm.c: Include fontset.h after dispextern.h. Undo the changes
3587 related to PER_CHAR_METRIC done by Gerd on 2000-03-03.
9111d4b5
KH
3588 (x_per_char_metric): Don't try FONT->default_char. Even if
3589 pcm->width is zero, glyph bits may exist.
3590 (x_encode_char): Always initialize char2b->byte1.
3591 (x_get_char_face_and_encoding): Call FACE_FOR_CHAR to get face_id.
3592 (x_get_glyph_face_and_encoding): New arg two_byte_p. Caller
3593 changed.
3594 (x_append_glyph): Set glyph->glyph_not_available_p.
3595 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
3596 it->charset. Handle the case that per char metric is not
3597 available. If it->multibyte_p is zero and it->c is a multibyte
3598 character, convert it to a unibyte character.
3599 (struct glyph_string): Delete member `charset'.
3600 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
3601 the case that per char metric is not available correctly.
3602 (x_fill_glyph_string): Handle the case that the specific glyph is
3603 not available correctly.
3604 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
3605 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
3606 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
3607 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
3608 fontset. Don't call FS_LOAD_FONT.
3609
3610 * xfns.c (Fx_create_frame): Don't cal fs_register_fontset.
3611 (x_create_tip_frame): Likewise.
3612 (Fx_close_connection): Free full_name of font_info.
3613
3614 * fns.c (optimize_sub_char_table): New function.
3615 (Foptimize_char_table): New function.
3616 (syms_of_fns): Defsubr Soptimize_char_table.
3617
b33dd3b0
GM
36182000-03-20 Gerd Moellmann <gerd@gnu.org>
3619
3620 * buffer.c (Fset_buffer_modified_p): Set update_mode_lines
3621 only if buffer is displayed in some window.
3622
3623 * xdisp.c (handle_single_display_prop): Initialize local `value'.
3624 (try_window_reusing_current_matrix): Don't call scroll run
3625 function if run's current and desired position are the same;
3626 this prevents cursor flickering.
3627
4e8a9132
SM
36282000-03-19 Stefan Monnier <monnier@cs.yale.edu>
3629
3630 * regex.h (RE_TRANSLATE. RE_TRANSLATE_P): Moved to regex.c.
3631
3632 * regex.c (RE_STRING_CHAR): New macro.
3633 (GET_CHAR_AFER_2): Remove.
3634 (RE_TRANSLATE, RE_TRANSLATE_P): New macros moved from regex.h.
3635 (enum re_opcode_t): Remove on_failure_jump_exclusive.
3636 (print_partial_compiled_pattern, re_compile_fastmap)
3637 (re_match_2_internal): Remove on_failure_jump_exclusive.
3638 (regex_compile): Turn optimizable P+ loops into PP*, so that the
3639 optimization only need to work for * (ie. can use of_keep_string_jump).
3640 Remove the special case for .*\n since it is now covered by the general
3641 optimization.
3642 (re_search_2): Don't bother with `room'.
3643 (skip_one_char): New function.
3644 (skip_noops): Simplify since `memory' is not needed any more.
3645 (mutually_exclusive_p): Restructure slightly to use `switch' and
3646 add handling for "all" remaining cases.
3647 (re_match_2_internal): Change on_failure_jump_smart to use
3648 on_failure_keep_string_jump (and redirect the end-of-loop jump)
3649 rather than on_failure_jump_exclusive.
3650
2136fdd4
GM
36512000-03-19 Gerd Moellmann <gerd@gnu.org>
3652
3653 * xfns.c (select_visual): Don't set dpyinfo->n_planes to the
3654 number of bits per RGB because it's everywhere used as the depth
3655 of the visual.
3656
3657 * term.c (calculate_costs): Remove code dealing with X frames.
3658
18e21ce8 36592000-03-19 Richard M. Stallman <rms@gnu.org>
e53ae11c
RS
3660
3661 * lread.c (syms_of_lread): Doc fix for load-convert-to-unibyte.
3662
d7b511c4
GM
36632000-03-18 Gerd Moellmann <gerd@gnu.org>
3664
3665 * lread.c (read_integer): Unread the last char not consumed.
3666
16b5d424
GM
36672000-03-17 Gerd Moellmann <gerd@gnu.org>
3668
3669 * xterm.c (x_update_window_cursor): Don't update in frames
d7b511c4 3670 which are in the process of being deleted.
16b5d424 3671
1fa28578
GM
36722000-03-16 Gerd Moellmann <gerd@gnu.org>
3673
83488cce
GM
3674 * Makefile.in (mostlyclean): Add `*.core'.
3675 (clean): Add `bootstrap-emacs'.
3676
1fa28578
GM
3677 * lread.c (read_integer): New function.
3678 (read1): Support read syntax #o, #x, #b, #r.
3679
99633e97
SM
36802000-03-15 Stefan Monnier <monnier@cs.yale.edu>
3681
1fa28578
GM
3682 * regex.c (re_match_2): Fix string shortening (to fit `stop') to
3683 make sure POINTER_TO_OFFSET gives the same value before and after
3684 PREFETCH. Use `dfail' to guarantee "atomic" matching.
99633e97
SM
3685 (PTR_TO_OFFSET): Use POINTER_TO_OFFSET.
3686 (debug): Now only active if > 0 rather than if != 0.
3687 (DEBUG_*): Update for the new meaning of `debug'.
1fa28578
GM
3688 (print_partial_compiled_pattern): Add missing `succeed' case. Use
3689 CHARSET_* macros in the charset(_not) branch. Fix off-by-two bugs
3690 in `succeed_n', `jump_n' and `set_number_at'.
99633e97
SM
3691 (store_op1, store_op2, insert_op1, insert_op2)
3692 (at_begline_loc_p, at_endline_loc_p): Add prototype.
1fa28578
GM
3693 (group_in_compile_stack): Move to after its arg's types are
3694 declared and add a prototype.
99633e97 3695 (PATFETCH): Define in terms of PATFETCH_RAW.
1fa28578
GM
3696 (GET_UNSIGNED_NUMBER): Add the usual `do { ... } while(0)'
3697 wrapper.
99633e97 3698 (QUIT): Redefine as a nop except for NTemacs.
1fa28578
GM
3699 (regex_compile): Handle intervals {,M} as if it was {0,M}. Fix
3700 indentation of the greedy-op and shy-group code.
99633e97
SM
3701 (at_(beg|end)line_loc_p): Fix argument's types.
3702 (re_compile_fastmap): Ifdef out failure_stack_ptr to shut up gcc.
3703 (re_search_2): Use POS_AS_IN_BUFFER. Simplify `room' computation.
3704 (MATCHING_IN_FIRST_STRING): Remove.
1fa28578
GM
3705 (re_match_2): Use POS_AS_IN_BUFFER. Ifdef out failure_stack_ptr
3706 to shut up gcc. Use FIRST_STRING_P and POINTER_TO_OFFSET. Use
3707 QUIT unconditionally.
99633e97 3708
699238d9
GM
37092000-03-15 Gerd Moellmann <gerd@gnu.org>
3710
3711 * minibuf.c (Fminibuffer_complete): Set point to ZV if finding
3712 a sole completion.
3713
3714 * process.c (send_process): Add a hint that the function
3715 can call Lisp code to its comment.
3716
3717 * lread.c (load_dangerous_libraries): New variable.
3718 (Vbytecomp_version_regexp): New variable.
3719 (safe_to_load_p): New function.
3720 (Fload): Handle files not compiled with Emacs specially.
3721 (syms_of_lread): New Lisp variable load-dangerous-libraries.
3722
34e23e5a
GM
37232000-03-14 Gerd Moellmann <gerd@gnu.org>
3724
9c763cca
GM
3725 * lisp.h (free_frame_xic) [HAVE_X_I18N]: Add missing semicolon.
3726
3727 * xterm.c (xim_close_dpy, xim_initialize): Use X11R6-style XIM
3728 support functions only if HAVE_X11R6_XIM is defined.
3729 (xim_instantiate_callback): Define only if HAVE_X11R6_XIM.
3730
3731 * s/sol2.h (INHIBIT_X11R6_XIM): Define.
3732
3733 * xfns.c (X_I18N_INHIBITED): Don't define.
3734 (create_frame_xic): Remove conditional compilation on
3735 X_I18N_INHIBITED.
3736 (x_kill_gs_process, x_window): Use FRAME_X_VISUAL.
3737
3738 * config.in (HAVE_X_I18N): Moved here from xterm.h.
3739 (HAVE_X11R6_XIM): Define.
3740
3741 * xterm.h (HAVE_X_I18N) [HAVE_X11R6]: Moved to config.in.
3742
34e23e5a
GM
3743 * xterm.c (x_term_init): Add support for X resource `synchronous'.
3744 If set, call XSynchronize.
3745
66f0296e
SM
37462000-03-13 Stefan Monnier <monnier@cs.yale.edu>
3747
34e23e5a
GM
3748 * regex.c: Declare a new type `re_char' used throughout the code
3749 for the string char type. It's `const unsigned char' to match the
3750 rest of Emacs. Consistently make sure all pointers to strings use
3751 it and make sure all pointers into the pattern use `unsigned
3752 char'.
66f0296e 3753 (re_match_2_internal): Use `PREFETCH+STRING_CHAR' instead of
34e23e5a
GM
3754 GET_CHAR_AFTER_2. Also merge wordbound and notwordbound to reduce
3755 code duplication.
66f0296e
SM
3756
3757 * charset.h (GET_CHAR_AFTER_2): Remove.
3758 (GET_CHAR_BEFORE_2): Use unsigned chars, like everywhere else.
3759
854a025c
KR
37602000-03-12 Ken Raeburn <raeburn@gnu.org>
3761
3762 * Makefile.in (temacs): Evaluate ALL_LDFLAGS into a temporary
3763 variable before the invocation of YMF_PASS_LDFLAGS, in case both
3764 of them try to use backquotes.
3765
b9d2c7e2
DL
37662000-03-12 Dave Love <fx@gnu.org>
3767
3768 * unexelf.c: Restore changes of 1999-10-19.
3769 (unexec): Don't adjust bss for sbss type SHT_PROGBITS; otherwise
3770 fix its type and alignment; copy it from current process.
3771
5e5dff44
GM
37722000-03-12 Gerd Moellmann <gerd@gnu.org>
3773
9b2f3c38
GM
3774 * atimer.c (cancel_atimer): Break out of the loop as soon as timer
3775 has been found. Fix bug not computing timer's predecessor.
3776
427ec082 3777 * fileio.c (Fread_file_name): Handle case that DIR contains a
9172b88d
GM
3778 file name.
3779
e1cff360
GM
3780 * window.c (Fsave_window_excursion): Doc fix.
3781
5e5dff44
GM
3782 * xfns.c (x_defined_color): Rewritten to use
3783 x_allocate_nearest_color.
3784
e411ce4b
EZ
37852000-03-12 Eli Zaretskii <eliz@is.elta.co.il>
3786
3787 * msdos.c (vga_installed): New function, code moved from
3788 dos_set_window_size.
3789 (Qbar, Qcursor_type, outside_cursor): New variables.
3790 (syms_of_msdos): Intern and staticpro them.
3791 (dos_ttraw) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Save the cursor
3792 shape used outside Emacs when called for the first time.
3793 (dos_ttcooked) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Restore the
3794 cursor shape used outside Emacs.
3795 (msdos_set_cursor_shape, IT_set_cursor_type): New functions.
3796 (IT_frame_up_to_date): Call IT_set_cursor_type, in case the cursor
3797 type has changed.
3798 (IT_set_frame_parameters): Call IT_set_cursor_type if the frame
3799 parameters specify the cursor. Make qreverse a global
3800 variable (renamed to Qreverse).
3801
80460654
GM
38022000-03-09 Gerd Moellmann <gerd@gnu.org>
3803
3804 * fns.c (Fy_or_n_p): Cancel busy-cursor.
3805
95cd4c40
SM
38062000-03-08 Stefan Monnier <monnier@cs.yale.edu>
3807
3808 This is a big redesign of failure-stack and register handling, prompted
3809 by bugs revealed when trying to add shy-groups. Overall, what happened
3810 is that loops are now structured a little differently, groups can be
3811 shy and the code is a little simpler.
3812
3813 * regex.h: Update the copyright.
3814 (RE_SHY_GROUPS): New value.
3815 (RE_UNMATCHED_RIGHT_PAREN_ORD): Renumber.
3816 (RE_SYNTAX_EMACS): Add RE_SHY_GROUPS.
3817
80460654
GM
3818 * regex.c (enum re_opcode_t): Remove jump_past_alt,
3819 maybe_pop_jump, push_dummy_failure and dumy_failure_jump. Add
3820 on_failure_jump_(exclusive, loop and smart). Also fix the comment
3821 for (start|stop)_memory since they now only take one argument (the
3822 second has becomes unnecessary).
3823 (print_partial_compiled_pattern): Adjust for changes in
3824 re_opcode_t.
3825 (print_compiled_pattern): Use %ld to printf long ints and flush to
3826 make debugging a little easier.
95cd4c40
SM
3827 (union fail_stack_elt): Make the integer unsigned.
3828 (struct fail_stack_type): Add a `frame' element.
3829 (INIT_FAIL_STACK): Init `frame' as well.
3830 (POP_PATTERN_OP): New macro for re_compile_fastmap.
3831 (DEBUG_PUSH, DEBUG_POP): Remove.
3832 (NUM_REG_ITEMS): Remove.
3833 (NUM_NONREG_ITEMS): Adjust.
80460654
GM
3834 (FAILURE_PAT, FAILURE_STR, NEXT_FAILURE_HANDLE)
3835 (TOP_FAILURE_HANDLE): New macros for the cycle detection.
95cd4c40 3836 (ENSURE_FAIL_STACK): New macro for PUSH_FAILURE_(REG|POINT).
80460654
GM
3837 (PUSH_FAILURE_REG, POP_FAILURE_REG, CHECK_INFINITE_LOOP): New
3838 macros.
3839 (PUSH_FAILURE_POINT): Don't push registers any more. The pattern
3840 address pushed is not the destination of the jump but the source
3841 of it instead.
95cd4c40
SM
3842 (NUM_FAILURE_ITEMS): Remove.
3843 (POP_FAILURE_POINT): Adapt to the new stack structure (i.e. pop
80460654
GM
3844 registers before the actual failure point). Don't hardcode any
3845 meaning for str==NULL anymore.
95cd4c40 3846 (union register_info_type, REG_MATCH_NULL_STRING_P, IS_ACTIVE)
80460654
GM
3847 (MATCHED_SOMETHING, EVER_MATCHED_SOMETHING, SET_REGS_MATCHED):
3848 Remove.
95cd4c40
SM
3849 (REG_UNSET_VALUE): Use NULL (why not?).
3850 (compile_range): Remove declaration since it doesn't exist.
3851 (struct compile_stack_elt_t): Remove inner_group_offset.
3852 (old_reg(start|end), reg_info, reg_dummy, reg_info_dummy): Remove.
3853 (regex_grow_registers): Remove dead code.
3854 (FIXUP_ALT_JUMP): New macro.
80460654
GM
3855 (regex_compile): Add shy-groups Change loops to use
3856 on_failure_jump_smart&jump instead of
3857 on_failure_jump&maybe_pop_jump. Change + loops to eliminate the
3858 initial (dummy_failure_)jump. Remove c1_base (looks like unused
3859 variable to me). Use `jump' instead of `jump_past_alt' and don't
3860 bother with push_dummy_failure in alternatives since it is now
3861 unnecessary. Use FIXUP_ALT_JUMP. Eliminate a useless `#ifdef
3862 emacs' for (re)allocating the stack.
3863 (re_compile_fastmap): Remove dead variables i and num_regs. Exit
3864 from loop when bufp->can_be_null rather than jumping to `done'.
3865 Avoid jumping backwards so as to ensure termination. Use
3866 PATTERN_STACK_EMPTY and POP_PATTERN_OP. Improved handling of
3867 backreferences. Remove dead code in handling of `anychar'.
95cd4c40 3868 (skip_noops, mutually_exclusive_p): New functions taken from the
80460654
GM
3869 handling of `maybe_pop_jump' in re_match_2_internal. Slightly
3870 improve mutually_exclusive_p to handle ".+\n".
3871 (lowest_active_reg, highest_active_reg,
3872 NO_(LOWEST|HIGHEST)_ACTIVE_REG) Remove.
3873 (re_match_2_internal): Use %p instead of 0x%x when printf'ing
3874 ptrs. Don't SET_REGS_MATCHED anymore. Remove many dead
3875 variables. Push register (in `start_memory') on the stack rather
3876 than storing it in old_reg(start|end). Remove the cycle detection
3877 from `stop_memory', replaced by the use of on_failure_jump_loop
3878 for greedy loops. Add code for the new on_failure_jump_<foo>.
3879 Remove ad-hoc code in `on_failure_jump' to push more registers in
3880 the case of a loop. Take out code from `maybe_pop_jump' into
3881 separate functions and adapt it to the semantics of
3882 `on_failure_jump_smart'. Remove jump_past_alt, dummy_failure_jump
3883 and push_dummy_failure. Remove dummy_failure handling and
3884 handling of `failures to jump to on_failure_jump' (this last one
3885 was already dead code, it seems).
3886 (group_match_null_string_p, alt_match_null_string_p)
3887 (common_op_match_null_string_p): Remove.
95cd4c40 3888
7397acc4
DL
38892000-03-08 Dave Love <fx@gnu.org>
3890
3891 * config.in: Don't depend on __STDC__ for volatile.
3892 Add POINTER_TYPE, PTR, PROTOTYPES.
3893
3894 * hftctl.c, strftime.c: Use PROTOTYPES.
3895 * eval.c (find_handler_clause): Likewise.
3896
3897 * mem-limits.h: Use POINTER_TYPE.
3898
3899 * lisp.h (P_): Define based on PROTOTYPES, not __STDC__.
3900 (memory_warnings): Declare using POINTER_TYPE.
3901
5e91ff9e
GM
39022000-03-08 Gerd Moellmann <gerd@gnu.org>
3903
feab4fba
GM
3904 * xfns.c (x_set_cursor_type): If ARG is nil, give frame no cursor.
3905
25edb08f
GM
3906 * xdisp.c (display_echo_area): Temporarily inhibit garbage
3907 collection.
3908
5e91ff9e
GM
3909 * xfns.c: Remove obsolete code in #if 0.
3910 (Fx_focus_frame): New function.
3911
a735b7e1
KH
39122000-03-07 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
3913
3914 * coding.c (coding_category_name): Add coding-category-utf-8,
3915 coding-category-utf-16-be, coding-category-utf-16-le.
3916 (UTF_8_1_OCTET_P, UTF_8_EXTRA_OCTET_P, UTF_8_2_OCTET_LEADING_P,
3917 UTF_8_3_OCTET_LEADING_P, UTF_8_4_OCTET_LEADING_P,
3918 UTF_8_5_OCTET_LEADING_P, UTF_8_6_OCTET_LEADING_P): New macros.
3919 (detect_coding_utf_8): New function.
3920 (UTF_16_INVALID_P, UTF_16_HIGH_SURROGATE_P
3921 UTF_16_LOW_SURROGATE_P): New macros.
3922 (detect_coding_utf_16): New function
3923 (detect_coding_mask): When priorities are specified, skip any
3924 categories that have `nil' coding-system. Fix bug of returning
3925 wrong mask when PRIORITIES is specified and detect_coding_XXX()
3926 returns a mask not set in PRIORITIES.
3927 (detect_eol_type_in_2_octet_form): New function.
3928 (detect_eol): selects detect_eol_type_XXX to call according to
3929 cooding->category_idx.
3930 (detect_coding_system): Remove `nil' coding-system in the result.
3931 (Fupdate_coding_systems_internal): Update all coding-categories.
3932
3933 * coding.h (CODING_CATEGORY_IDX_UTF_8,
3934 CODING_CATEGORY_IDX_UTF_16_BE, CODING_CATEGORY_IDX_UTF_16_LE): New
3935 macros.
3936 (CODING_CATEGORY_IDX_RAW_TEXT, CODING_CATEGORY_IDX_BINARY,
3937 CODING_CATEGORY_IDX_MAX): Adjusted for the above macros.
3938 CODING_CATEGORY_IDX_UTF_16_LE.
3939 (CODING_CATEGORY_MASK_UTF_8, CODING_CATEGORY_MASK_UTF_16_BE,
3940 CODING_CATEGORY_MASK_UTF_16_LE): New macros.
3941 (CODING_CATEGORY_MASK_ANY): Include the above macros.
3942 (CODING_CATEGORY_MASK_UTF_16_BE_LE): New macro.
3943
9994cc69
GM
39442000-03-07 Gerd Moellmann <gerd@gnu.org>
3945
e9b4e5ff
GM
3946 * doc.c (Fdocumentation_property): If value is not a string,
3947 and doesn't refer to etc/DOC, evaluate it to obtain a string.
3948
f7daf1e1
GM
3949 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Don't try to
3950 close the display with XtCloseDisplay. This caused a bus error
3951 on OpenWindows.
3952
9994cc69
GM
3953 * minibuf.c (Fminibuffer_complete): Move point to ZV when input is
3954 complete but not unique.
3955
4336c705
GM
39562000-03-06 Gerd Moellmann <gerd@gnu.org>
3957
18bb0684
GM
3958 * process.c (send_process): Remove local variable `procname' that
3959 might become invalid when a GC happens. Instead, access the
3960 process name slot directly.
3961
4336c705
GM
3962 * xfns.c (x_set_menu_bar_lines_1): Adjust window's orig_top and
3963 orig_height if set.
3964
3965 * frame.c (set_menu_bar_lines_1): Adjust window's orig_top and
3966 orig_height if set.
3967
515d0d0e
EZ
39682000-03-06 Eli Zaretskii <eliz@is.elta.co.il>
3969
3970 * msdos.c (IT_note_mouse_highlight): Return immediately if frame's
3971 glyph matrices have been freed.
3972
100b3cbb
GM
39732000-03-05 Gerd Moellmann <gerd@gnu.org>
3974
50df5e5a 3975 * Makefile.in (tags): Include ../lwlib/TAGS in TAGS.
6178bc23 3976 (bootstrap-temacs): Set LC_ALL to C like for temacs.
50df5e5a
GM
3977
3978 * xfns.c (QCdata): Moved to xdisp.c.
3979
3980 * xdisp.c (QCdata): Moved here from xfns.c.
3981 (syms_of_xdisp): Initialize QCdata.
3982
3983 * frame.h (FRAME_INTERNAL_BORDER_WIDTH) [!HAVE_X_WINDOWS]: Define.
3984
3985 * window.c (coordinates_in_window): Use
3986 FRAME_INTERNAL_BORDER_WIDTH_SAFE instead of
3987 FRAME_INTERNAL_BORDER_WIDTH.
3988
100b3cbb 3989 * xdisp.c (try_window_id): Recompute unchanged information if
4336c705 3990 it is obviously invalid.
100b3cbb
GM
3991
3992 * xterm.c (x_term_init): Create a colormap if not using the
3993 default visual.
3994
3995 * xterm.h (select_visual): Change prototype.
3996
3997 * xfns.c (select_visual): Rewritten. Recognize user-specified
3998 visual classes.
3999 (visual_classes): New variable.
4000
64d739c4
GM
40012000-03-04 Gerd Moellmann <gerd@gnu.org>
4002
4003 * xfns.c (x_defined_color, x_set_mouse_color, lookup_rgb_color)
4004 (lookup_pixel_color, x_laplace, x_build_heuristic_mask)
4005 (png_load): Access colormap of frame using FRAME_X_COLORMAP.
4006 (x_decode_color): Don't handle allocation of white and black
4007 specially.
4008 (x_window) [USE_X_TOOLKIT]: Set XtNvisual, XtNdepth, and
4009 XtNcolormap resources.
4010 (x_window) [!USE_X_TOOLKIT]: Pass colormap to XCreateWindow.
4011 (Fx_create_frame): Initialize color members of x_output structure.
4012 (xpm_load): Pass colormap to XPM lib.
4013
4014 * xfaces.c (x_free_colors): Access colormap of frame using
4015 FRAME_X_COLORMAP. Be paranoid about freeing black and white
4016 when default colormap is used.
4017
4018 * xterm.c (x_term_init): Set Colormap member of x_display_info
4019 structure. Copy colormap if resource `privateColormap' is
4020 specified (PseudoColor only).
4021 (x_setup_relief_color): Access colormap of frame using
4022 FRAME_X_COLORMAP.
4023
4024 * xterm.h (struct x_display_info): Add Colormap member `cmap'.
4025 (FRAME_X_COLORMAP, FRAME_X_VISUAL): New macros.
4026
c3cee013
JR
40272000-03-04 Jason Rumney <jasonr@gnu.org>
4028
4029 * xfaces.c Change many FRAME_X... macros to FRAME_WINDOW... or
4030 other non-platform-specific equivalents.
64d739c4 4031 [WINDOWSNT]: Include w32term.h, fontset.h and define X
c3cee013
JR
4032 specific functions and macros as their w32 equivalents where
4033 non-platform-specifics are not available.
4034 [HAVE_X_WINDOWS]: Change most of these to HAVE_WINDOW_SYSTEM.
4035 (x_create_gc, x_free_gc) [WINDOWSNT]: Add W32 versions.
4036 (clear_font_table) [WINDOWSNT]: Call w32_unload_font.
4037 (frame_update_line_height): Use macros to access f->output_data.
4038 (defined_color): Remove FIXME comments; fixed.
4039 (x_face_list_fonts, prepare_face_for_display): Put X specifics
4040 into #ifdef blocks. Add WINDOWSNT blocks.
4041 (Fx_list_fonts): Use macros for accessing font data.
4042 (set_lface_from_font_name): Different default fonts for X and
4043 WINDOWSNT.
4044 (font_scalable_p) [WINDOWSNT]: Treat wildcard XLFD_AVGWIDTH as
4045 scalable for backward compatibility.
64d739c4 4046 (realize_tty_face) [MSDOS]: Do the same for WINDOWSNT.
c3cee013
JR
4047 (syms_of_xfaces) [WINDOWSNT]: Allow scalable fonts by default.
4048
64d739c4 4049 * emacs.c (main) [HAVE_NTGUI]: Call syms_of_xfaces instead of
c3cee013
JR
4050 syms_of_w32faces.
4051
4052 * makefile.nt (w32faces.obj): Remove.
4053 (xfaces.obj): Add.
4054
807cc41c
JR
40552000-03-03 Jason Rumney <jasonr@gnu.org>
4056
4057 * keyboard.c (make_lispy_event): Call buffer_posn_from_coords with
4058 correct parameters.
4059
0007072a
KR
40602000-03-03 Ken Raeburn <raeburn@gnu.org>
4061
4062 * unexelf.c (PT_LOAD, SHT_*, SHN_*) [__NetBSD__]: Only provide
4063 standard ELF definitions here if the system header does not.
4064
71a6ba55
GM
40652000-03-03 Gerd Moellmann <gerd@gnu.org>
4066
4067 * xterm.c (PER_CHAR_METRIC): Removed.
4068 (x_per_char_metric_1, x_default_char): New functions.
4069 (x_per_char_metric): If font's default char is invalid, return
4070 metrics of a suitably chosen usable default char.
4071 (x_draw_glyph_string_foreground): If font has an invalid default
64d739c4
GM
4072 char, replace occurrences of unprintable chars with a suitably
4073 chosen usable default char.
71a6ba55 4074
900fa1f1
GM
40752000-03-02 Gerd Moellmann <gerd@gnu.org>
4076
42f55fe0
GM
4077 * xterm.c (note_mouse_highlight): Return quickly if frame's
4078 glyph matrices have been freed.
4079
4080 * dispnew.c (free_glyphs): Block input while freeing matrices.
4081
900fa1f1
GM
4082 * xfns.c (x_clear_image, x_kill_gs_process): Use x_free_colors.
4083
4084 * xterm.c (x_alloc_lighter_color, x_setup_relief_color): Use
4085 x_free_colors.
4086
4087 * dispextern.h (x_free_colors): Add prototype.
4088
4089 * xfaces.c (x_free_colors): New function.
4090 (unload_color, free_face_colors): Use it.
4091
2f950292
EZ
40922000-03-02 Eli Zaretskii <eliz@is.elta.co.il>
4093
4094 * msdos.h (FRAME_INTERNAL_BORDER_WIDTH): Define to zero.
4095
4096 * window.c [MSDOS]: Include msdos.h.
4097
54d04320
DL
40982000-03-02 Dave Love <fx@gnu.org>
4099
4100 * m/powerpcle.h, m/sparc.h: Don't set C_OPTIMIZE_SWITCH.
4101
4102 * m/mips-siemens.h, m/news-r6.h, m/news-risc.h, m/tekxd88.h: Don't
4103 set C_OPTIMIZE_SWITCH for gcc.
4104
0ba93ac4
KH
41052000-03-02 Kenichi Handa <handa@etl.go.jp>
4106
4107 * coding.c (coding_save_composition): Be sure to allocate
4108 composition data area in coding even if there's no composition in
4109 the current run.
4110
a2bc11d4
JR
41112000-03-01 Jason Rumney <jasonr@gnu.org>
4112
4113 * w32term.c: Equivalent changes to those made to xterm.c on
4114 2000-02-25 and 2000-02-24.
4115
4116 * w32fns.c: Equivalent changes to those made to xfns.c on
4117 2000-02-25 and 2000-02-21.
4118
4119 * sysdep.c: [WINDOWSNT]: Use sys_read and sys_write to ensure
4120 correct line-end convention is followed.
4121
4122 * w32menu.c [HAVE_BOXES]: Remove #undef.
4123 (single_keymap_panes): Remove code for simulating checkmarks.
4124 (single_menu_item): Remove notbuttons_ptr argument. Callers changed.
4125 Remove code for drawing simulated checkmarks.
4126 (w32_menu_show): make unibyte help string correctly.
4127 (add_menu_item): draw standard Windows checkmarks. Draw radio
4128 buttons as radio buttons if possible.
4129
72d19d75
GM
41302000-03-01 Gerd Moellmann <gerd@gnu.org>
4131
2df636f4
GM
4132 * sysdep.c (start_of_text): Don't define this function for NetBSD
4133 with ELF.
4134
427ec082 4135 * m/pmax.h (START_FILES, CANNOT_DUMP) [__NetBSD__ || __OpenBSD__]:
2df636f4
GM
4136 Don't define.
4137 (UNEXEC) [__NetBSD__ || __OpenBSD__]: Define to unexelf.o.
4138 (LINKER): Don't undef if __NetBSD__ is defined.
4139
4140 * m/mips.h (LINKER) [__NetBSD__ || __OpenBSD__]: Don't define.
4141
4142 * fileio.c [__NetBSD__]: Define `unix'.
4143
72d19d75
GM
4144 * xfns.c (start_busy_cursor): Allow floats for busy-cursor-delay.
4145
ed4d0512
GM
41462000-02-29 Gerd Moellmann <gerd@gnu.org>
4147
50b1039f
GM
4148 * atimer.c (start_atimer): Don't abort when timers are stopped.
4149 (append_atimer_lists): New function.
4150 (cancel_atimer, stop_other_atimers, run_all_atimers): Handle
4151 arbitrary lists of stopped and running atimers.
4152
ed4d0512
GM
4153 * atimer.c (cancel_atimer): Handle canceling an atimer when
4154 some timers are stopped.
4155
4156 * xfns.c (cancel_busy_cursor): Set busy_cursor_atimer to null
4157 after canceling it.
4158
4159 * fns.c (maybe_resize_hash_table): Handle case of new size
4160 coming out as being the same as old size.
4161
387023ee
JR
41622000-02-27 Jason Rumney <jasonr@gnu.org>
4163
4164 * makefile.nt: Add atimer.h to dependencies.
4165 * w32.c (init_environment): Set Vw32_num_mouse_buttons here.
4166 * w32console.c: Only disable window system features for dispextern.h
4167 (initialize_w32_display): Build a display info for the console.
4168 * w32faces.c (tty_defined_color): Apply xfaces.c change from 02-17.
4169 * w32fns.c (w32_wnd_proc) [WM_LBUTTON_DOWN, WM_RBUTTON_DOWN,
4170 WM_LBUTTON_UP, WM_RBUTTON_UP]: Do not treat 4 or more button mice
4171 as 2 button mice.
4172 * w32gui.h (struct W32FontStruct): Revert last change after change
4173 to xdisp.c.
4174 * w32menu.c (single_submenu): Set up help string.
4175 [!HAVE_MULTILINGUAL_MENU]: Don't overwrite item_name with descrip.
4176 (w32_dialog_show): Set up help string.
4177 * w32term.c (w32_display_info_for_display): Remove unused function.
4178 (w32_draw_bitmap): Use pre-built bitmaps.
4179 (w32_initialize_display_info): New function to initialize parts of
4180 display info that are common to both GUI and console frames.
4181 (w32_term_init): Use w32_initialize_display_info. Do not set
4182 Vw32_num_mouse_buttons here, as it is not called for console
4183 frames. Build bitmaps for indicating truncated lines etc.
4184 (x_delete_display): Destroy pre-built bitmaps.
4185 * xdisp.c (handle_single_display_prop): Use FONT_HEIGHT macro.
4186 (echo_area_display): Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM.
4187
4516715a
DL
41882000-02-27 Dave Love <fx@gnu.org>
4189
4190 * lisp.h: Add a bunch of prototypes.
4191
171ca836
KH
41922000-02-26 Kenichi Handa <handa@etl.go.jp>
4193
4194 * keyboard.c (read_char): Set `usec' correctly.
4195
4013921d
KH
41962000-02-25 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
4197
4198 * ccl.c (ccl_driver) [CCL_MapMultiple]: When the mapped value is
4199 `lambda', set reg[RRR] to the map index.
4200 (ccl_driver) [CCL_MapSingle]: When the mapped value is found, set
4201 reg[RRR] to 0. Otherwise, set it to -1.
4202
9244a058
GM
42032000-02-25 Gerd Moellmann <gerd@gnu.org>
4204
2df636f4 4205 * emacs.c (main): Remove code snippet commented out with `//'.
9244a058 4206
18e21ce8 42072000-02-25 Richard M. Stallman <rms@gnu.org>
427ec082 4208
f43d79c1
GM
4209 * fileio.c (Ffile_symlink_p): If result starts with a `/'
4210 and contains a `:', prepend `/:'.
4211
4212 * window.c (select_window_1): If selected_window is nil,
4213 don't "swap out" the buffer's point.
4214 (Fset_window_configuration): Set selected_window to nil
4215 before calling Fselect_window.
4216 (unshow_buffer): Don't set point in buffer from window's point
4217 if another more recently selected window also shows the buffer.
4218
bed0c171
GM
42192000-02-25 Gerd Moellmann <gerd@gnu.org>
4220
449c3c52
GM
4221 * keyboard.c (recursive_edit_1): Cancel busy-cursor.
4222
f5b58615
GM
4223 * xfns.c (inhibit_busy_cursor, busy_count): Removed.
4224 (Fx_show_busy_cursor, Fx_hide_busy_cursor): Removed.
4225 (busy_cursor_atimer, busy_cursor_shown_p, Vbusy_cursor_delay): New
4226 variables.
4227 (DEFAULT_BUSY_CURSOR_DELAY): New define.
4228 (start_busy_cursor, cancel_busy_cursor, show_busy_cursor)
4229 (hide_busy_cursor): New functions.
4230 (syms_of_xfns): DEFVAR_LISP Vbusy_cursor_delay.
4231
4232 * minibuf.c (read_minibuf): Cancel busy-cursor.
4233
4234 * keyboard.c (command_loop_1): Call start_busy_cursor before
4235 Fcommand_execute and cancel_busy_cursor after it.
4236 (timer_check): Remove busy-cursor code.
4237 (Fread_key_sequence, Fread_key_sequence_vector): Start/cancel busy
4238 cursor timer.
4239
4240 * process.c (wait_reading_process_input): Remove busy-cursor code.
4241
4242 * eval.c (Fsignal): Call cancel_busy_cursor instead of
4243 Fx_hide_busy_cursor.
4244
4245 * dispextern.h (Fx_show_busy_cursor, Fx_hide_busy_cursor):
4246 Remove prototyoes.
4247 (start_busy_cursor, cancel_busy_cursor): Add prototypes.
4248
4249 * lisp.h (Fx_hide_busy_cursor): Remove prototype.
4250
4251 * xterm.c (XTread_socket): Remove busy-cursor code.
4252
4eb8436f
GM
4253 * dispnew.c (flush_stdout) [GLYPH_DEBUG]: New function.
4254 (build_frame_matrix_from_leaf_window): Put code handling
4255 glyph row's not being a slice of a frame row in #if 0.
4256 (sync_window_with_frame_matrix_rows): New function.
4257 (frame_row_to_window): New function.
4258 (mirror_line_dance): Handle copies between windows.
4259
3cb65b0e
GM
4260 * lread.c (Fload): Use `xfree' instead of `free'.
4261 (init_obarray): Use `xmalloc' instead of `malloc'.
4262
bed0c171
GM
4263 * window.c (Fset_window_buffer): Set WINDOW to the window
4264 after decoding.
2add4349
GM
4265 (coordinates_in_window): Take frame's internal border width
4266 into account.
bed0c171 4267
42088c12
GM
42682000-02-24 Gerd Moellmann <gerd@gnu.org>
4269
4270 * xterm.c (x_display_and_set_cursor): Display cursor of
4271 non-selected windows depending on the setting of
4272 cursor_in_non_selected_windows.
4273
4274 * xdisp.c (cursor_in_non_selected_windows): New variable.
4275 (syms_of_xdisp): DEFVAR_BOOL it.
4276
d1e103b2
GM
42772000-02-23 Gerd Moellmann <gerd@gnu.org>
4278
723e779c
GM
4279 * data.c (Fstring_to_number): If number is greater than what
4280 fits into an integer, return a float.
4281
d1e103b2
GM
4282 * eval.c (specbind): Remove references to
4283 keyword_symbols_constant_flag.
4284
4285 * data.c (keyword_symbols_constant_flag): Removed.
4286 (Fmakunbound, set_internal, syms_of_data): Remove references to
4287 keyword_symbols_constant_flag.
4288
4289 * bytecode.c (Fbyte_code): Remove keyword_symbols_constant_flag.
4290
214f877f
KH
42912000-02-23 Kenichi Handa <handa@etl.go.jp>
4292
4293 * syntax.c (multibyte_syntax_as_symbol): New variable.
4294 (syms_of_syntax): Declare it as a Lisp variable.
4295 (SYNTAX_WITH_MULTIBYTE_CHECK): New macro.
4296 (scan_lists): If both sexpflag and multibyte_syntax_as_symbol are
4297 nonzero, treat all multibyte characters as symbol.
42088c12 4298 (init_syntax_once): Give syntax `word' to all multibyte
214f877f
KH
4299 characters.
4300
130adcb7
EZ
43012000-02-22 Eli Zaretskii <eliz@is.elta.co.il>
4302
3cb65b0e 4303 * frame.c (Fdelete_frame): Don't let echo_area_window remain on
d7d0dac0 4304 a deleted frame.
130adcb7 4305
17cbbf95
GM
43062000-02-21 Gerd Moellmann <gerd@gnu.org>
4307
4308 * frame.c (Fmouse_position): GCPRO retval instead of x and y.
4309
4310 * xfns.c (x_window_to_frame, x_any_window_to_frame)
4311 (x_non_menubar_window_to_frame): Check the busy-cursor window.
4312
beb0bc36
DL
43132000-02-21 Dave Love <fx@gnu.org>
4314
4315 * frame.c (Vmouse_position_function): New variable.
4316 (Fmouse_position): Use it.
4317 (syms_of_frame): Install it.
4318
4319 * charset.c (find_charset_in_str): Fix use of `c' instead of `c1'.
4320
1d92afcd
GM
43212000-02-20 Gerd Moellmann <gerd@gnu.org>
4322
4323 * fileio.c (Finsert_file_contents): Unbind the binding of
4324 standard-output done by temp_output_buffer_setup.
329eed9f
GM
4325
4326 * eval.c (funcall_lambda): Don't bind Qmocklisp_arguments unless
4327 Vmocklisp_arguments is nil. Inline Fcar and Fcdr.
4328 (specbind, unbind_to): Handle most common case of non-constant
4329 symbol with trivial value specially.
4330
4331 * bytecode.c (Fbyte_code) <Bvarset>: Inline most common case.
4332
18e21ce8 43332000-02-20 Richard M. Stallman <rms@gnu.org>
2d06696f
RS
4334
4335 * data.c (Fmake_variable_buffer_local): Doc fix.
4336 Init found_for_buffer to 0.
4337 (Fmake_variable_frame_local): If the variable has already
4338 been buffer-local, set the check_frame field.
4339
1d4311c3
EZ
43402000-02-20 Eli Zaretskii <eliz@is.elta.co.il>
4341
4342 * msdos.c (IT_write_glyphs): Allocate a larger screen_buf as data
4343 produced for CODING_MODE_LAST_BLOCK requires.
4344
2dc95ddd
DL
43452000-02-18 Dave Love <fx@gnu.org>
4346
4347 * keyboard.c (echo_keystrokes): Remove declaration.
4348 (Vecho_keystrokes) New variable.
4349 (read_char, record_menu_key, read_key_sequence): Use it to allow
4350 use of float value.
4351 (syms_of_keyboard): Change Vecho_keystrokes declaration.
4352
4353 * lread.c: Undef feature selection macros before defining.
4354
f0930f35
GM
43552000-02-18 Gerd Moellmann <gerd@gnu.org>
4356
4357 * data.c (let_shadows_buffer_binding_p): Ignore specbindings
4358 for symbols other than the symbol in question.
4359
e3d4de90
DL
43602000-02-17 Dave Love <fx@gnu.org>
4361
4362 * s/sol2.h (C_DEBUG_SWITCH): Define to allow optimization.
4363
0b378936
GM
43642000-02-17 Gerd Moellmann <gerd@gnu.org>
4365
d621caf7
GM
4366 * emacs.c (main): Use #if GC_MARK_STACK instead of #ifdef.
4367
0b378936
GM
4368 * alloc.c (enum mem_type): Compile unconditionally.
4369
3b451f74
EZ
43702000-02-17 Eli Zaretskii <eliz@is.elta.co.il>
4371
4372 * xfaces.c (tty_defined_color): Don't return faulire indication
4373 for unspecified-fg and unspecified-bg pseudo-colors.
4374
10689a01
GM
43752000-02-17 Gerd Moellmann <gerd@gnu.org>
4376
1216f5e4
GM
4377 * alloc.c (mark_object): Don't mark symbol names in pure space.
4378 (gc_sweep): Don't unmark symbol names in pure space.
4379
4380 * lisp.h (GC_USE_GCPROS_AS_BEFORE, GC_MAKE_GCPROS_NOOPS)
4381 (GC_MARK_STACK_CHECK_GCPROS, GC_USE_GCPROS_CHECK_ZOMBIES)
4382 [GC_MARK_STACK]: New defines.
427ec082 4383 (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5, UNGCPRO)
1216f5e4
GM
4384 [GC_MARK_STACK == GC_MAKE_GCPROS_NOOPS]: Define as no-ops.
4385
4386 * emacs.c (main) [GC_MARK_STACK]: Initialize stack_base.
4387
4388 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use
4389 allocate_buffer instead of xmalloc.
4390
4391 * alloc.c (toplevel): Include setjmp.h.
4392 (PURE_POINTER_P): New define.
4393 (enum mem_type) [GC_MARK_STACK]: New enumeration.
4394 (Vdead) [GC_MARK_STACK]: New variable.
4395 (lisp_malloc): Add parameter TYPE, call mem_insert if
4396 GC_MARK_STACK is defined.
4397 (allocate_buffer): New function.
427ec082 4398 (lisp_free) [GC_MARK_STACK]: Call mem_delete.
1216f5e4
GM
4399 (free_float) [GC_MARK_STACK]: Set type to Vdead.
4400 (free_cons) [GC_MARK_STACK]: Set car to Vdead.
4401 (stack_base, mem_root, mem_z) [GC_MARK_STACK]: New variables.
4402 (MEM_NIL) [GC_MARK_STACK]: New define.
4403 (struct mem_node) [GC_MARK_STACK]: New structure.
4404 (mem_init, mem_find, mem_insert, mem_delete, mem_insert_fixup)
4405 (mem_delete_fixup, mem_rotate_left, mem_rotate_right)
4406 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
4407 (live_misc_p, live_vector_p, live_buffer_p, mark_memory)
4408 (mark_stack) [GC_MARK_STACK]: New functions.
4409 (Fgarbage_collect) [GC_MARK_STACK]: Call mark_stack.
4410 (clear_marks): Removed.
4411 (gc_sweep): Set free conses' car, free floats' type, free
4412 symbols' function to Vdead. Use lisp_free to free buffers.
4413 (init_alloc_once): Initialize Vdead.
4414 (survives_gc_p): Return non-zero for pure objects.
4415
4416 * alloc.c: Add comments throughout the file.
4417
2503c8b1
GM
4418 * atimer.c (stop_other_atimers): Don't call cancel_atimer because
4419 that unblocks alarms.
4420
8389e1e2
GM
4421 * alloc.c, bytecode.c, data.c, dispnew.c, ecrt0.c, editfns.c,
4422 emacs.c, floatfns.c, fns.c, lread.c, print.c, config.in, lisp.h,
4423 Makefile.in: Remove `LISP_FLOAT_TYPE' and `standalone'.
4424
10689a01 4425 * frame.c (make_frame): Set frame initiallly to `garbaged'.
427ec082 4426
bfc17d18
KH
44272000-02-17 Kenichi Handa <handa@etl.go.jp>
4428
4a09dee0
KH
4429 * xdisp.c (decode_mode_spec_coding): Delete superfluous code to
4430 avoid infinite error signaling. Allocate sufficient memory for
4431 eol_str in the case that eoltype is Lisp_Int.
bfc17d18 4432
2b927d02
SM
44332000-02-17 Stefan Monnier <monnier@cs.yale.edu>
4434
4435 * syntax.c (Fforward_comment): Undo the previous change, since cc-mode
4436 depends on the previous behavior.
4437
b49cb764
GM
44382000-02-16 Gerd Moellmann <gerd@gnu.org>
4439
4440 * sysdep.c (vfork) [!HAVE_VFORK]: Removed.
4441
99e95407
GM
44422000-02-15 Gerd Moellmann <gerd@gnu.org>
4443
4444 * s/freebsd.h (BROKEN_PTY_READ_AFTER_EAGAIN): Define.
4445
4446 * process.c (send_process) [BROKEN_PTY_READ_AFTER_EAGAIN]:
b49cb764 4447 Workaround for FreeBSD bug. Clear output queue after EAGAIN in
99e95407
GM
4448 write(2).
4449
6ffd3cf7
RS
44502000-02-15 Richard M. Stallman <rms@gnu.org>
4451
4452 * data.c (set_internal): Don't make variable buffer-local
4453 if within a let-binding for the same buffer.
4454 (let_shadows_buffer_binding_p): New function.
4455
4456 * eval.c (specbind): For buffer-local value,
4457 record the current buffer also.
4458 (unbind_to): Cope with that change.
4459
cad53475
GM
44602000-02-15 Gerd Moellmann <gerd@gnu.org>
4461
4462 * window.c (Fsave_window_excursion): Doc fix.
4463
1aa963c8
SM
44642000-02-15 Stefan Monnier <monnier@cs.yale.edu>
4465
4466 * syntax.c (back_comment): Make sure we only consider comment-starters
4467 of the relevant style and return -1 in case of a failure to find the
4468 beginning of the comment.
4469 (Fforward_comment): If back_comment fails, go back to the position just
4470 after the comment-end.
4471 (scan_lists): Add comment describing a very minor bug.
4472
b9b84fd3
SM
44732000-02-14 Stefan Monnier <monnier@cs.yale.edu>
4474
4475 * minibuf.c (Ftry_completion, Fall_completions): Add a reference to
4476 `completion-regexp-list' in the docstring.
4477
3a28db80
DL
44782000-02-14 Dave Love <fx@gnu.org>
4479
4480 * xfaces.c (tty_defined_color): Declare color_idx unsigned long.
4481
fb4a568d
SM
44822000-02-14 Stefan Monnier <monnier@cs.yale.edu>
4483
4484 * regex.h (RE_SYNTAX_EMACS): Add RE_CHAR_CLASSES and RE_INTERVALS
4485 to Emacs' syntax. Also fix the comment about set/not-set meanings
4486 since Emacs syntax is not the value 0 any more.
4487 * search.c (compile_pattern_1): Remove RE_CHAR_CLASSES from the syntax
4488 since it's now part of RE_SYNTAX_EMACS.
4489
1063ebb5
DL
44902000-02-12 Dave Love <fx@gnu.org>
4491
4492 * frame.h (SELECTED_FRAME): Use NULL, not 0 to avoid warnings on
4493 Alpha.
4494
fb07a302
GM
44952000-02-12 Gerd Moellmann <gerd@gnu.org>
4496
4497 * xdisp.c (syms_of_xdisp): Doc fix for scroll-conservatively.
4498
aaf2320c
DL
44992000-02-12 Dave Love <fx@gnu.org>
4500
4501 * s/aix3-2.h, s/osf-1.h: Define C_DEBUG_SWITCH for non-gcc.
4502
4503 * s/ux4800.h, s/umips.h, s/umax.h, s/sol2.h, s/sco5.h, s/rtu.h:
fb07a302
GM
4504 * s/ptx4.h, s/umax.h, s/dgux.h, s/bsd4-2.h, s/bsd4-3.h:
4505 * s/hpux.h: Don't define HAVE_VFORK.
aaf2320c
DL
4506
4507 * s/gnu-linux.h: Don't define HAVE_VFORK or HAVE_SYS_SIGLIST.
4508
4509 * s/nextstep.h: Don't define HAVE_ALLOCA.
4510
4511 * config.in: Add vfork bits.
4512
eedf8bde
GM
45132000-02-12 Gerd Moellmann <gerd@gnu.org>
4514
4515 * process.c (Fopen_network_stream) [POLL_FOR_INPUT]: Register
4516 unwind function to undo the effect of stopping atimers.
4517
4518 * keyboard.c (bind_polling_period): Stop all timers except
4519 poll_timer.
4520
4521 * atimer.c (stopped_atimers): New variable.
4522 (stop_other_atimers, run_all_atimers, unwind_stop_other_atimers):
4523 New functions.
4524
4525 * atimer.h (stop_other_atimers, run_all_atimers)
4526 (unwind_stop_other_atimers): Add function prototypes.
427ec082 4527
eedf8bde
GM
4528 * s/hpux10.h (HAVE_XRMSETDATABASE): Define if not already defined.
4529
8476c2f8
KR
45302000-02-11 Ken Raeburn <raeburn@gnu.org>
4531
4532 * Makefile.in (LIBX): Link in tiff library before jpeg, since tiff
4533 library may depend on jpeg.
4534 (atimer.o): Depends on atimer.c.
4535
0e85e4a3
KH
45362000-02-11 Kenichi Handa <handa@etl.go.jp>
4537
4538 * insdel.c (del_range_1): Call update_compositions.
4539 (del_range_both): Call update_compositions just once..
4540
97fa0cc8
DL
45412000-02-10 Dave Love <fx@gnu.org>
4542
4543 * xfns.c (create_frame_xic): Fix initialization of automatic
4544 aggregates for pcc.
4545
25566a3c
KH
45462000-02-09 Kenichi Handa <handa@etl.go.jp>
4547
4548 * ccl.c (CCL_MAKE_CHAR): New macro.
4549 (ccl_driver) <CCL_TranslateCharacter>: Check the validity of
4550 registers by CCL_MAKE_CHAR before calling translate_char.
4551 <CCL_TranslateCharacterConstTbl> Likewise.
4552
69da54ba
DL
45532000-02-08 Dave Love <fx@gnu.org>
4554
4555 * lread.c (__EXTENSIONS__): Define.
4556
f7136ee8
GM
45572000-02-08 Gerd Moellmann <gerd@gnu.org>
4558
4559 * puresize.h (BASE_PURESIZE): Increase to 650000.
4560
7768790b
EZ
45612000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
4562
4563 * msdos.c (XMenuActivate): Turn off the cursor after displaying
4564 the help message.
4565
38fd211b
EZ
45662000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
4567
4568 * s/msdos.h (INTERNAL_TERMINAL): Add capabilities se, so, us, ue,
4569 md, mh, mb, mr, and me to the fake termcap entry.
4570
66e4690f
KR
45712000-02-06 Ken Raeburn <raeburn@gnu.org>
4572
4573 * sound.c (sound_cleanup): Don't call device close routine if the
4574 function pointer is null.
4575
a75dfea0
AI
45762000-02-06 Andrew Innes <andrewi@gnu.org>
4577
4578 * dispextern.h: Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM,
4579 around image definitions and prototypes.
4580 (gamma_correct) [WINDOWSNT]: New prototype.
4581
4582 * w32term.c (x_make_frame_visible): Replace call to
4583 input_poll_signal with poll_for_input.
4584
4585 * window.c [WINDOWSNT]: Include w32term.h.
4586
4587 * xdisp.c [WINDOWSNT]: Include w32term.h.
4588
4589 * makefile.nt: Add dependencies on w32gui.h.
4590 (OBJ1): Include atimer.obj.
4591 ($(BLD)\atimer.obj): New dependency rule.
4592
4593 * w32.c (sigmask): New function (does nothing).
4594 (sigunblock): Ditto.
4595
4596 * frame.c [WINDOWSNT]: Include w32term.h.
4597
4598 * w32gui.h (struct W32FontStruct): Add ascent and descent slots.
4599
4600 * lread.c (syms_of_lread): Fix literal newlines.
4601
4602 * emacs.c (USAGE): Split into USAGE1 and USAGE2, to work-around
4603 the string constant limit (2048 bytes) in MSVC.
4604 (main): Ditto.
4605
59ddecde
GM
46062000-02-05 INOUE Seiichiro <inoue@ainet.or.jp>
4607
4608 * xterm.c (x_display_and_set_cursor) [HAVE_X_I18N]: Set pre-edit
4609 area.
4610 (x_display_cursor) [HAVE_X_I18N]: Don't set it here.
4611 (XTread_socket) [HAVE_X_I18N]: <KeyPress, KeyRelease>: Don't
4612 dispatch the event.
4613
07590973
DL
46142000-02-04 Dave Love <fx@gnu.org>
4615
4616 * fileio.c: Remove some unused vars.
4617 (_GNU_SOURCE): Define (for euidaccess).
4618
4619 * lread.c (_XOPEN_SOURCE): Declare (for ftello).
4620
4621 * minibuf.c (read_minibuf_noninteractive): Remove undeclared
4622 gcpro1, gcpro2.
4623 (read_minibuf): Deal with allow_props correctly.
4624
649351f9
EZ
46252000-02-03 Eli Zaretskii <eliz@is.elta.co.il>
4626
4627 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Enlarge to 60000.
4628
66e4690f 46292000-02-03 Ken Raeburn <raeburn@gnu.org>
f1b9c7c1
KR
4630
4631 * search.c (compile_pattern): If a cache entry has a nil regexp,
4632 fill in that entry instead of clobbering a previously cached
4633 string regexp.
4634
66e4690f 46352000-02-02 Ken Raeburn <raeburn@gnu.org>
15c9cf81
KR
4636
4637 * puresize.h (BASE_PURESIZE): Increase to 610000.
4638
d240a249
GM
46392000-02-02 Gerd Moellmann <gerd@gnu.org>
4640
4641 * frame.c (Fframe_parameters): Add GCPRO because tty_color_name
4642 can GC.
4643
ca91fb26
KH
46442000-02-02 Kenichi Handa <handa@etl.go.jp>
4645
25660570
KH
4646 * ccl.c (ccl_driver) <CCL_WriteExprRegister>: Set jump_address
4647 instead of incrementing ic directly.
4648 <CCL_WriteExprConst> Likewise.
4649 <ccl_set_expr>: Set ic to jump_address.
4650
ca91fb26
KH
4651 * fileio.c (e_write): Fix the handling of
4652 CODING_FINISH_INSUFFICIENT_SRC.
4653
2ede9689
DL
46542000-02-01 Dave Love <fx@gnu.org>
4655
4656 * editfns.c (Fpropertize): Doc fix.
4657
4658 * process.c (Fstart_process): Doc fix.
4659
4660 * eval.c: Fix various doc strings not to duplicate information
4661 from help-manyarg-func-alist.
4662
4663 * window.c (Fset_window_margins): Don't make interactive. Doc
4664 fix.
4665
4666 * doc.c (Vhelp_manyarg_func_alist): New variable.
4667 (Fdocumentation): Use it.
4668 (syms_of_doc): Define it.
4669
b6680a0e
GM
46702000-01-31 Gerd Moellmann <gerd@gnu.org>
4671
2cb750ba
GM
4672 * xterm.c (xim_open_dpy): Remove unused local variable.
4673
74e9213b
GM
4674 * emacs.c (USAGE): Use term `display options' instead of `X
4675 options'.
4676
4677 * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: New function.
4678 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
4679
b6680a0e
GM
4680 * fns.c (sweep_weak_table): New function.
4681 (sweep_weak_hash_tables): Use it. Keep on marking until there
4682 is no more change.
4683
994c5afe
GM
46842000-01-30 Gerd Moellmann <gerd@gnu.org>
4685
4686 * xterm.c (x_delete_display): Update next_noop_dpyinfo to ensure
4687 that XTread_socket does not crash by trying to call XNoOp on a
4688 closed display.
427ec082 4689
f00276e3
JR
46902000-01-30 Jason Rumney <jasonr@gnu.org>
4691
4692 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
4693 Change selected_frame to SELECTED_FRAME ().
4694 (w32_console_mouse_position): Remove #ifndef MULE from around
4695 `insist' parameter.
4696
4697 * makefile.nt: Remove dosfns.obj.
4698
4699 * term.c (term_init) [WINDOWSNT]: Initialize TN_max_colors.
4700
4701 * w32fns.c (w32_defined_color): Check for valid frame before
4702 applying gamma correction. Eliminate dependency on frame elsewhere.
4703 (w32_load_system_font): Switch FIXED_PITCH and VARIABLE_PITCH.
4704 (w32_to_x_font): Use resx and resy not height_in and width_in.
4705 (x_to_w32_font): Doc fix.
4706 (xlfd_strip_height): New function to strip and return font height.
4707 (w32_font_match): Compare height separately from rest of xlfd
4708 spec, using xlfd_strip_height.
4709
4710 * w32term.c (w32_term_init): Swap resx and height_in, resy and
4711 width_in. Use w32_defined_color in place of defined_color.
4712
4713 * w32faces.c: Merge more of DOS and X specifics in preparation for
4714 merge with xfaces.c.
4715 (defined_color): Remove FIXME comment.
4716 (tty_color_name): Provide w32-specific function.
4717 (realize_tty_face): Handle FACE_TTY_DEFAULT*_COLOR specially.
4718
4719 * w32console.c (turn_on_face, turn_off_face): Removed.
4720 (w32_face_attributes): New function.
4721 (Global_variables): Reduce scope where possible.
4722 (clear_frame, ins_del_lines, scroll_line): Use char_attr_normal as
4723 fill attribute.
4724 (hl_mode): Don't modify text attributes.
4725 (write_glyphs): Don't do anything if len <= 0. Use
4726 w32_face_attributes to get attributes for drawing. Write
4727 terminating codes using char_attr_normal.
4728 (reset_terminal_modes, set_terminal_modes): Turn off highlight.
4729 (update_begin, update_end): Likewise.
4730 (vga_stdcolor_name): New function.
4731 (initialize_w32_display): Remove char_attr_reverse and char_attr.
4732 (Fset_screen_color): Remove char_attr_reverse.
4733
b08e8bb2
GM
47342000-01-29 Gerd Moellmann <gerd@gnu.org>
4735
4736 * xfns.c (xic_set_preeditarea): Take window parameter and
4737 window-relative pixel-positions.
4738
4739 * xterm.c (x_display_cursor): Set XIC pre-edit area only if window
4740 is its frame's selected window.
4741 (xim_instantiate_callback): Likewise.
4742
4743 * xfns.c (x_create_im): Removed.
4744 (DEFAULT_STYLE, DEFAULT_FONT): Removed.
4745 (supported_xim_styles): Renamed from supported_styles.
4746 (best_xim_style): Renamed from best_style.
4747 (create_frame_xic): Renamed from xic_create_frame.
4748 (free_frame_xic): Renamed from xic_destroy_frame.
427ec082 4749
b08e8bb2
GM
47502000-01-29 INOUE Seiichiro <inoue@ainet.or.jp>
4751
4752 * xterm.c (XTread_socket) [HAVE_X_I18N]: If event is for none of
4753 our frames, call XFilterEvent with 2nd parameter `None'.
4754 (XTread_socket) <KeyPress> [HAVE_X_I18N]: Handle XmbLookupString
4755 returning XBufferOverflow.
4756 (XTread_socket) <ConfigureNotify> [HAVE_X_I18N]: Set XIC status
4757 area.
4758 (x_display_cursor) [HAVE_X_I18N]: Set XIC pre-edit area.
4759 (x_new_fontset) [HAVE_X_I18N]: Create XIC status area fontset.
4760 (xim_destroy_callback, xim_open_dpy, xim_instantiate_callback)
4761 (xim_initialize, xim_close)
4762 [HAVE_X_I18N && HAVE_X11R6]: New functions.
4763 (x_destroy_window) [HAVE_X_I18N]: Call xic_destroy_frame.
4764 (x_term_init) [HAVE_X_I18N]: Call xim_initialize.
4765 (x_delete_display) [HAVE_X_I18N]: Call xim_close.
4766
4767 * xterm.h (struct x_display_info) [HAVE_X_I18N]: Add members `xim'
4768 and `xim_styles'.
4769 (struct x_output) [HAVE_X_I18N]: Remove member `xim', add
4770 `xic_style' and `xic_xfs'.
4771 (FRAME_MENUBAR_HEIGHT, FRAME_X_XIM, FRAME_X_XIM_STYLES)
4772 (FRAME_XIC_STYLE, FRAME_XIC_FONTSET): New macros.
4773 (FRAME_XIM): Removed.
4774
4775 * xfns.c (supported_styles): New variable.
4776 (DEFAULT_STYLE, DEFAULT_FONT): New macros
4777 (xic_create_xfontset, best_style, xic_create_frame)
4778 (xic_destroy_frame, xic_set_preeditarea, xic_set_statusarea)
4779 (xic_set_xfontset): New functions.
4780
142e109c
DL
47812000-01-28 Dave Love <fx@gnu.org>
4782
4783 * s/irix6-5.h: Revert last change after change to irix5-0.h.
4784
4785 * m/iris4d.h (C_SWITCH_MACHINE): Don't use -G0.
4786
b02786f9
GM
47872000-01-28 Gerd Moellmann <gerd@gnu.org>
4788
d060bc9f
GM
4789 * buffer.c (Fother_buffer): Don't call Fset_buffer_major_mode
4790 for *scratch* if it already existed.
4791
b02786f9
GM
4792 * emacs.c (USAGE): New macro.
4793 (main): Use it to display usage information.
4794
2c52d7e4
EZ
47952000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
4796
4797 Support for the menu-help feature:
4798
4799 * msdos.h: Change prototypes of XMenuAddSelection and
4800 XMenuActivate.
4801
4802 * msdos.c (IT_clear_end_of_line): Print the extent of the cleared
4803 part of the line to the termscript file.
4804 (IT_clear_to_end): Clear the entire line, not just its beginning.
4805 (menu_help_message, prev_menu_help_message): New variables.
4806 (IT_menu_make_room): Make room for the help_text member.
4807 (IT_menu_display): New argument disp_help; all callers changed.
4808 If disp_help is non-zero, store the help text of the active menu
4809 item in menu_help_message.
4810 (XMenuAddPane): Initialize the help_text member to NULL.
4811 (XMenuAddSelection): New argument help_text. Store it in the
4812 XMenu structure.
4813 (XMenuActivate): New argument help_callback. If the value of
4814 menu_help_message has changed since the last time, display the
4815 menu help message text while waiting for the mouse to move. Clear
4816 the echo area before exiting.
4817 (XMenuDestroy): Free the help_text member.
4818
ffe0bcd1
GM
48192000-01-27 Gerd Moellmann <gerd@gnu.org>
4820
4821 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT]: Pass help to
4822 XMenuAddSelection. Pass help callback to XMenuActivate.
4823 (menu_help_callback) [!USE_X_TOOLKIT]: New function.
4824
50dbd23f
EZ
48252000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
4826
4827 * atimer.c (start_atimer) [!HAVE_SETITIMER]: Use EMACS_SET_SECS
4828 and EMACS_SET_USECS.
4829
f5941bf8
GM
48302000-01-26 Dave Love <fx@gnu.org>
4831
6c67ddee
DL
4832 * editfns.c (Fchar_after, Fchar_before): Doc fix.
4833
f5941bf8
GM
4834 * bytecode.c (Fbyte_code): Use {BEFORE,AFTER}_POTENTIAL_GC where
4835 an error may be signalled.
4836
9e49c990
GM
48372000-01-26 Gerd Moellmann <gerd@gnu.org>
4838
fc3cb460
GM
4839 * s/irix6-5.h [__GNUC__ && __GNUC_MINOR__ >= 95]: Undef
4840 LD_SWITCH_SYSTEM inherited from irix5-0.h.
4841
9e49c990
GM
4842 * bytecode.c (Fbyte_code) [BYTE_CODE_SAFE]: Fix typo.
4843
d0c037d8
GM
48442000-01-25 Gerd Moellmann <gerd@gnu.org>
4845
4846 * charset.c (Fstring): If there is a multibyte char among
4847 the args, always return a multibyte string.
4848
e12489f9
GM
48492000-01-25 Gerd Moellmann <gerd@gnu.org>
4850
4851 * sysdep.c (sys_select): Turn atimers off and on instead of
4852 recording and restoring old alarm handler
4853
4854 * process.c (toplevel): Include atimer.h.
4855 (create_process_1): Rewritten.
4856 (create_process): Use atimers instead of alarm.
4857 (wait_reading_process_input) [hpux]: Turn atimers off instead
4858 of turning off SIGALRM.
4859 (wait_reading_process_input): Turn off atimers instead off
4860 calling stop_polling.
4861
4862 * emacs.c (main): Call init_atimer.
4863
4864 * keyboard.c (toplevel): Include systime.h and atimer.h.
4865 (polling_for_input): Removed because unused.
4866 (input_poll_signal) [POLL_FOR_INPUT]: Removed.
4867 (poll_timer): New variable.
4868 (poll_for_input, poll_for_input_1): New functions.
4869 (start_polling, stop_polling): Rewritten.
4870
4871 * keyboard.h (polling_for_input): Removed.
427ec082 4872
e12489f9
GM
4873 * atimer.h, atimer.c: New files.
4874
4875 * Makefile.in (obj): Add atimer.o.
4876 (atimer.o): New target.
4877
4878 * blockinput.h (pending_atimers): Add extern declaration.
4879 (UNBLOCK_INPUT): Rewritten. Handle pending atimers.
4880
4881 * lisp.h (popup_activated_flag): Add extern declaration.
4882
4883 * xmenu.c (popup_activated_flag): Make externally visible.
4884 (popup_activate_callback) [USE_MOTIF]: Increment
4885 popup_activated_flag.
4886 (popup_deactivate_callback) [USE_MOTIF]: Decrement it.
4887
4888 * xterm.c (toplevel): Include atimer.h.
4889 (toolkit_scroll_bar_interaction): New variable.
4890 (Fxt_process_timeouts): Removed.
4891 (x_process_timeouts): New function.
4892 (xt_action_hook): Clear toolkit_scroll_bar_interaction.
4893 (x_send_scroll_bar_event): Set toolkit_scroll_bar_interaction.
4894 (x_make_frame_visible): Call poll_for_input_1 instead of
4895 input_poll_signal. Don't call alarm.
4896 (x_initialize): Install timer calling x_process_timeouts.
427ec082 4897
1e5279b9
DL
48982000-01-24 Dave Love <fx@gnu.org>
4899
6c67ddee 4900 * s/irix5-0.h: Don't set LD_SWITCH_SYSTEM -- we use unexelf now.
1e5279b9
DL
4901 Don't use -cckr -- apparently not now necessary.
4902
edf6aeb8
EZ
49032000-01-24 Eli Zaretskii <eliz@is.elta.co.il>
4904
4905 * msdos.c (IT_menu_display): Truncate long menu lines at the right
4906 screen boundary.
4907
9badad41
JR
49082000-01-23 Jason Rumney <jasonr@gnu.org>
4909
4910 * w32fns.c (w32_defined_color): Apply gamma correction before
4911 trying to map to the palette.
4912 (w32_wnd_proc) [WM_ERASE_BACKGROUND]: Pass device context of frame
4913 to w32_clear_rect.
4914
4915 * w32term.c (w32_fill_rect): Do not try to deal with NULL hdc
4916 here. Callers changed to always pass real device context.
4917 (w32_draw_bitmap): Likewise.
4918 (w32_get_glyph_overhangs): Likewise.
4919 (w32_draw_box_rect): Make use of s->hdc rather than getting a new
4920 one.
4921 (w32_set_vertical_scroll_bar): Pass correct HWND parameters to
4922 pfnSetScrollInfo and SetScrollRange.
4923 (x_get_char_face_and_encoding): Don't turn iso8859-1 characters
4924 back into MULE characters after decoding them.
4925 (x_get_glyph_face_and_encoding): Likewise.
4926 (w32_per_char_metric): Use GetCharExtentPoint32W as fallback when
4927 GetCharABCWidthsW fails, since this is defined on Windows 9x.
4928 (x_produce_glyphs): Calculate per char metrics for a character
4929 that we know exists in default font when font_not_found_p is true.
4930
63bd786b
JR
49312000-01-22 Jason Rumney <jasonr@gnu.org>
4932
4933 * makefile.nt (intervals.obj, composite.obj): New modules.
4934 (composite.h): Added as dependency where appropriate.
4935
4936 * w32gui.h (XGCValue): New struct for emulating X GCs.
4937
4938 * w32term.h (XCharStruct): New struct for emulating X.
4939
4940 * w32console.c (turn_on_face, turn_off_face): New functions.
4941 (change_line_highlight): New prototype for new redisplay.
4942 (write_glyphs): Support multibyte text. Support faces.
4943
4944 * w32faces.c: Complete rewrite for new redisplay based on new
4945 xfaces.c.
4946
4947 * w32fns.c: Use SELECTED_FRAME macro in place of selected_frame
4948 throughout. struct frame * in place of FRAME_PTR.
4949 Skeleton support for images, toolbars, tooltips from xfns.c.
4950 (Fx_create_frame): Use system default for default scroll bar
4951 width.
4952 (w32_get_arg): Renamed from x_get_arg.
4953 (Fx_file_dialog): New function.
4954 (w32_list_fonts): Check cache before asking system.
4955 (Vw32_enable_synthesized_fonts): New variable.
4956 (Vw32_enable_italics): Obsolete, removed.
4957
4958 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
4959 Use SELECTED_FRAME macro.
4960
4961 * w32menu.c: Add skeleton support for help strings on menus.
4962 (add_menu_item): Native checkbox and radio support added, but not
4963 yet enabled due to bugs.
4964 (push_menu_item): Add parameters type, selection and help.
4965 Callers updated.
4966 Formatting changes to reduce unnecessary diffs with xmenu.c.
4967
4968 * w32select.c (Fw32_set_clipboard_data): Update call to
4969 find_charset_in_str.
4970
4971 * w32term.c: Complete rewrite for new redisplay based on new
4972 xterm.c with necessary sections merged back in from old w32term.c.
4973
6ffd3cf7 49742000-01-21 Richard M. Stallman <rms@gnu.org>
b50c9214
RS
4975
4976 * data.c (set_internal): Further fix in same criterion.
4977
6ffd3cf7 49782000-01-20 Richard M. Stallman <rms@gnu.org>
8cc95642
RS
4979
4980 * data.c (set_internal): Fix the criteria for whether
4981 to swap out the old cached binding.
4982
60af03f1
DL
49832000-01-19 Dave Love <fx@gnu.org>
4984
4985 * lread.c: (syms_of_lread) [user-init-file]: Doc change.
4986
f9be074f
KH
49872000-01-18 Kenichi Handa <handa@etl.go.jp>
4988
4989 * regex.c (re_compile_fastmap): While checking a range table for
4990 `charset', skip flag bits for a character class correctly.
4991
52b8dbf9
GM
49922000-01-17 Gerd Moellmann <gerd@gnu.org>
4993
d36100c9
GM
4994 * m/news-risc.h (LD_SWITCH_MACHINE): Define differently for GCC.
4995
52b8dbf9
GM
4996 * xfns.c (x_window): Call lw_create_widget with new parameter
4997 list.
4998
4999 * widget.c (EmacsFrameSetCharSize): Change size of children first
5000 because of problems with main window geometry management under
5001 Lesstif.
5002
5003 * xmenu.c (enum menu_item_idx): New enumeration replacing defines
5004 MENU_ITEMS_ITEM_.*.
5005 (MENU_ITEMS_ITEM_HELP): New enumerator.
5006 (push_menu_item): Add parameter HELP. Record help in menu_items.
5007 (single_menu_item, single_submenu, list_of_items): Call
5008 push_menu_item with new parameter.
5009 (single_submenu): Set help string in widget value.
5010 (menu_highlight_callback): New function.
5011 (set_frame_menubar): Call lw_create_widget with new
5012 parameter list.
5013 (xmenu_show, xdialog_show): Ditto.
5014
3139018f
GM
50152000-01-13 Gerd Moellmann <gerd@gnu.org>
5016
5017 * sound.c (Fplay_sound): Improve doc string.
5018
83c8f461
RS
50192000-01-11 Richard M. Stallman <rms@gnu.org>
5020
5021 * lisp.h (set_internal): Enter the new arg.
5022
5023 * eval.c (specbind): Record buffer-local variables specially,
5024 indicating which buffer's binding was saved.
5025 (unbind_to): Restore buffer-local variables specially
5026 in the proper buffer.
5027
5028 * data.c (set_internal): New arg BUF.
427ec082 5029
83c8f461
RS
5030 * eval.c (specbind, unbind_to): Pass new arg to set_internal.
5031 * data.c (Fset): Pass new arg to set_internal.
5032 * bytecode.c (Fbyte_code): Pass new arg to set_internal.
427ec082 5033
1fab1775
GM
50342000-01-11 Gerd Moellmann <gerd@gnu.org>
5035
5036 * .gdbinit: Adapt to new strings. Add xbacktrace, xreload,
5037 xprintsym.
5038
83c8f461 50392000-01-11 Richard M. Stallman <rms@gnu.org>
6f59462e
RS
5040
5041 * minibuf.c (Ftry_completion): Doc fix.
5042
7a85e4df
GM
50432000-01-11 Gerd Moellmann <gerd@gnu.org>
5044
5045 * keyboard.c (Fclear_this_command_keys): Clear recent_keys
5046 vector, too.
5047
a970dae4
AS
50482000-01-11 Andreas Schwab <schwab@suse.de>
5049
5050 * coding.c (code_convert_region): Initialize total_skip.
5051
c65d14ee
DL
50522000-01-08 Dave Love <fx@gnu.org>
5053
5054 * eval.c (Fuser_variable_p): Check customizability too.
5055
834938d2
GM
50562000-01-07 Gerd Moellmann <gerd@gnu.org>
5057
5058 * minibuf.c (Fcompleting_read): Doc fix.
5059
e0303cd6
GM
50602000-01-05 Gerd Moellmann <gerd@gnu.org>
5061
8a26744b
GM
5062 * s/freebsd.h (C_SWITCH_SYSTEM): Add -I /usr/local/include and
5063 -L /usr/local/lib.
5064
e0303cd6
GM
5065 * xfns.c (x_create_im): New function to set IM and IC of a frame.
5066 Check that input style is supported before trying to create an
5067 IC for it.
5068 (x_window): Call x_create_im.
427ec082 5069
2e471eb5
GM
50702000-01-04 Gerd Moellmann <gerd@gnu.org>
5071
560a7bd2
GM
5072 * xfns.c (current_gif_memory_src): New variable.
5073 (gif_load): Record the address of the current memory source
5074 in current_gif_memory_src.
5075 (gif_read_from_memory): Use current_gif_memory_src.
5076
f9ee84a3
GM
5077 * systime.h (EMACS_GET_TIME, EMACS_ADD_TIME, EMACS_SUB_TIME): Give
5078 macros statement form.
5079
d1299cde
GM
5080 * sound.c (struct sound): Renamed from struct sound_file.
5081 (struct sound): Add members `data' and `header_size'.
5082 (enum sound_attr): Add SOUND_DATA.
5083 (current_sound, current_sound_device): Variables renamed from
5084 sound_file and sound_device.
5085 (parse_sound): Parse :data.
5086 (parse_sound): Handle sound data in strings.
5087 (find_sound_type): Function renamed from find_sound_file_type.
427ec082 5088 (wav_init, au_init): Fail if sound's header_size is smaller than
d1299cde
GM
5089 needed header size.
5090 (wav_play, au_play): Play sounds from string data.
5091
2e471eb5
GM
5092 * puresize.h (BASE_PURE_SIZE): Increase to 600000.
5093
5094 * lisp.h: Add prototype for allocate_string_data.
5095
5096 * alloc.c (Fgarbage_collect): Return number of live and free
5097 strings.
5098
5099 * alloc.c (mark_buffer): Remove code in #if 0.
5100 (gc_sweep): Ditto.
5101 (UNMARK_BALANCE_INTERVALS): Give the macro statement form.
5102 (strings_consed): New variable.
5103 (allocate_string): Set it.
5104 (syms_of_alloc): Add DEFVAR_INT for strings_consed.
5105 (Fmemory_use_counts): Return strings_consed. Use Flist.
5106
5107 * alloc.c: General cleanup in comments etc. Remove conditional
5108 compilation for `standalone'.
5109
5110 * lisp.h (struct Lisp_String): Make DATA member `unsigned char *'.
5111
5112 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P):
5113 (GC_STRING_BYTES, GC_STRING_CHARS): New macros.
5114 (DONT_COPY_FLAG): Removed.
5115 (SBLOCK_SIZE, LARGE_STRING_BYTES): New macros.
5116 (struct sdata, struct sblock): New
5117 (struct string_block): Rewritten.
5118 (STRINGS_IN_STRING_BLOCK): New macro.
5119 (oldest_sblock, current_sblock, total_strings, total_free_strings)
5120 (large_sblocks, string_blocks, string_free_list): New variables.
5121 (NEXT_FREE_LISP_STRING, SDATA_OF_STRING, SDATA_SIZE): New macros.
5122 (init_strings): Rewritten.
5123 (allocate_string, allocate_string_data, compact_small_strings)
5124 (free_large_strings, sweep_strings): New functions.
5125 (STRING_BLOCK_SIZE, STRING_BLOCK_OUTSIZE)
5126 (struct string_block_head, current_string_block)
5127 (first_string_block, large_string_blocks, STRING_FULLSIZE)
5128 (STRING_PAD): Removed.
5129 (make_uninit_multibyte_string, make_pure_string): Rewritten.
5130 (Fgarbage_collect): Don't set mark bit in large strings.
5131 (mark_object): Mark strings differently. Mark symbol names
5132 differently.
5133 (survives_gc_p): Test marked strings differently.
427ec082 5134 (gc_sweep): Sweep strings differently, unmark strings in
2e471eb5
GM
5135 symbol names.
5136 (compact_strings): Removed.
5137
42608ba8
EZ
51382000-01-04 Eli Zaretskii <eliz@is.elta.co.il>
5139
5140 * xfaces.c (syms_of_xfaces): defsubr Scolor_gray_p and
5141 Scolor_supported_p even if HAVE_X_WINDOWS is not defined.
5142
e0a09e1a
KH
51432000-01-04 Kenichi Handa <handa@etl.go.jp>
5144
dd9f0750 5145 * fileio.c (Finsert_file_contents): Signal error if visiting file
427ec082 5146 in a non-empty buffer.
dd9f0750 5147
3c0f3b15 5148 * term.c (encode_terminal_code): Fix the previous change.
e0a09e1a 5149
44cd3ae5
GM
51502000-01-03 Gerd Moellmann <gerd@gnu.org>
5151
5152 * xfaces.c (syms_of_xfaces): Change Sface_color_gray_p to
5153 Scolor_gray_p, Sface_color_supported_p to Scolor_supported_p.
5154
5155 * s/hpux9.h (NO_EDITRES): Define even if HAVE_LIBXMU.
5156
c182a70f
EZ
51572000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
5158
5159 * xdisp.c (handle_single_display_prop) [HAVE_WINDOW_SYSTEM]: No
5160 need to test for MSDOS frames.
5161
24480d5b
EZ
51622000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
5163
5164 * dosfns.c (unspecified_colors): Remove.
5165 (msdos_stdcolor_idx): Use global variables unspecified_fg and
5166 unspecified_bg.
5167 (msdos_stdcolor_name): Return strings for unspecified fore- and
5168 back-ground colors.
5169
5170 * xfaces.c (Qunspecified_fg, Qunspecified_bg): Remove.
aaf2320c 5171 (syms_of_xfaces): Remove their staticpro's.
24480d5b
EZ
5172 (tty_color_name): Return Lisp strings for unspecified fore- and
5173 back-ground colors.
5174 (Finternal_set_lisp_face_attribute): Remove the special treatment
5175 for Qunspecified_{f,b}g.
5176 (realize_default_face): Replace Qunspecified_{f,b}g with a Lisp
5177 string.
5178
047f434a
GM
51792000-01-03 Gerd Moellmann <gerd@gnu.org>
5180
5181 * xdisp.c (reseat_at_next_visible_line_start): Position before
5182 newline only if ending up on a newline.
5183 (next_element_from_ellipsis): Return success. Handle case of
5184 displaying no ellipsis. Fix case of ellipsis defined in display
5185 table.
5186 (next_element_from_buffer): Return 0 if next_element_from_ellipsis
5187 returns 0.
5188
d684c676
EZ
51892000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
5190
5191 * xfaces.c (Fcolor_gray_p): Renamed from face-color-gray-p.
5192 (Fcolor_supported_p): Renamed from face-color-supported-p.
5193
5fe1d139
EZ
51942000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
5195
5196 * xfaces.c (tty_defined_color): Pass frame to tty-color-desc. The
5197 list of colors renamed to tty-defined-color-alist.
5198 (tty_color_name): Pass the frame to tty-color-by-index.
5199 (realize_tty_face): tty-color-alist is now a function which
5200 accepts the frame as argument.
5201
5202 * term.c (Ftty_display_color_p): Accept an optional argument
5203 FRAME.
5204
816be8b8
EZ
52052000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
5206
5207 * term.c (insert_glyphs): Pass glyph, not &glyph, to
5208 encode_terminal_code.
5209
b635321e
EZ
52102000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
5211
5212 * dispnew.c (mode_line_string): Support termcap frames as well.
5213
9b784e96
GM
52142000-01-01 Gerd Moellmann <gerd@gnu.org>
5215
27189709
GM
5216 * syntax.c (Fforward_word): Undo previous change.
5217
5218 * editfns.c (Fconstrain_to_field): Don't constrain if
5219 inhibit-field-text-motion is non-nil.
5220 (Fline_beginning_position): Undo previous change.
5221 (Fline_end_position): Ditto.
5222
5223 * syntax.c (Fforward_word): Notice field boundaries only if
5224 inhibit-field-text-motion is nil.
5225
5226 * lisp.h: Add extern declaration for Vinhibit_field_text_motion.
5227
5228 * editfns.c (Vinhibit_field_text_motion): New variable.
5229 (inhibit-field-text-motion): New DEFVAR_LISP.
5230 (Fline_beginning_position, Fline_end_position): Notice field
5231 boundaries only if inhibit-field-text-motion is nil.
5232
45158a91
GM
5233 * xfns.c (x_create_x_image_and_pixmap): Remove parameter FILE.
5234 All calls adjusted.
5235 (x_build_heuristic_mask): Likewise.
5236 (xbm_load_image_from_file): Change error output.
5237 (xbm_load, xpm_load, pbm_load, png_load, jpeg_load, tiff_load)
5238 (gif_load, gs_load, x_kill_gs_process): Ditto.
5239
9b784e96
GM
5240 * xfns.c (gif_load): Avoid sign extension and thus out of bounds
5241 color indices when accessing raster pixels.
63cec32f
GM
5242 (gif_image_p, png_image_p, jpeg_image_p, tiff_image_p): Allow only
5243 one of :file or :data.
5244 (enum pbm_keyword_index): Add PBM_DATA.
5245 (pbm_format): Add :data.
5246 (pbm_image_p): Allow either :file or :data.
5247 (pbm_read_file): New function.
5248 (pbm_scan_number): Rewritten to read from string.
5249 (pbm_load): Support :data.
9b784e96 5250
5ad6a5fb
GM
52511999-12-31 Gerd Moellmann <gerd@gnu.org>
5252
5253 * xfns.c: New image functions adapted to Emacs conventions.
5254 (png_load, tiff_load, jpeg_load, gif_load): Always GCPRO local
5255 variable `file'.
5256
63448a4d
WP
52571999-12-31 William M. Perry <wmperry@aventail.com>
5258
5259 * xfns.c (jpeg_format): Added the :data keyword
5260 (jpeg_image_p): JPEG is valid with :file _or_ :data
5261 (jpeg_memory_src): Defined new JPEG image source to read from a
5262 memory buffer.
5263 (jpeg_load): Pay attention to the :data keyword if specified.
5264 Instantiates a jpeg_memory_src instead of jpeg_stdio_src if
5265 found.
5266 (png_format): Added the :data keyword
5267 (png_image_p): PNG is valid with :file _or_ :data
5268 (png_read_from_memory): New PNG read function to read from a
5269 memory buffer.
5270 (png_load): Pay attention to the :data keyword if specified. Uses
5271 png_set_read_fn() instead of png_init_io() if specified.
5272 (tiff_format): Added the :data keyword for TIFF images.
5273 (tiff_image_p): TIFF is valid with :file _or_ :data
5274 (tiff_read_from_memory): Defined new TIFF I/O functions to read
5275 from a memory buffer.
5276 (tiff_load): Pay attention to the :data keyword if specified.
5277 Uses TIFFClientOpen() instead of TIFFOpen() if specified.
5278 (gif_format): Added the :data keyword
5279 (gif_image_p): GIF is valid with :file _or_ :data
5280 (gif_read_from_memory): New GIF input function to read from a
5281 memory buffer.
c65d14ee 5282 (gif_load): Pay attention to the :data keyword. Uses DGifOpen()
63448a4d
WP
5283 instead of DGifOpenFileName() if specified.
5284
c880678e
GM
52851999-12-31 Gerd Moellmann <gerd@gnu.org>
5286
5287 * xdisp.c (next_element_from_buffer): Change assertion at the end
5288 because it doesn't hold when there's an overlay string at the end
5289 from which we deliver an image.
5290
8ccb9a54
EZ
52911999-12-30 Eli Zaretskii <eliz@is.elta.co.il>
5292
5293 * msdos.c (IT_update_begin): Don't dereference members of struct
5294 window for deleted windows.
5295
12ce2351
GM
52961999-12-30 Gerd Moellmann <gerd@gnu.org>
5297
a915c648
GM
5298 * abbrev.c (Fexpand_abbrev): If expanding an abbrev which has only
5299 a hook, and the hook has a non-nil `no-self-insert' property, let
5300 the return value of the hook specify whether an expansion took
5301 place. If it returns nil, no expansion has been performed.
5302
12ce2351
GM
5303 * xterm.c (x_make_frame_visible): Wait for frame becoming visible
5304 differently.
5305
04ee4f45
EZ
53061999-12-30 Eli Zaretskii <eliz@is.elta.co.il>
5307
5308 * msdos.c (IT_write_glyphs): Track last changes to struct glyph.
5309
7f4bc0c3
EZ
53101999-12-29 Eli Zaretskii <eliz@is.elta.co.il>
5311
5312 * dispnew.c (mode_line_string): Support MS-DOS frames.
5313
dac204bc
GM
53141999-12-29 Gerd Moellmann <gerd@gnu.org>
5315
5316 * eval.c (syms_of_eval): Initialize debugger_may_continue.
5317
7b712ad8
KH
53181999-12-29 Kenichi Handa <handa@etl.go.jp>
5319
5320 * process.c (read_process_output): Fix the args CHARPOS and LENINS
5321 to signal_after_change.
5322
adb9900f
EZ
53231999-12-28 Eli Zaretskii <eliz@is.elta.co.il>
5324
41ad069b
EZ
5325 * msdos.c (dos_set_window_size) [__DJGPP__ > 1]: If the frame
5326 dimensions changed, invalidate the mouse highlight info.
5327 (disable_mouse_highlight, help_echo, previous_help_echo): New
5328 variables.
5329 (IT_set_mouse_pointer, show_mouse_face, clear_mouse_face)
5330 (fast_find_position, IT_note_mode_line_highlight)
5331 (IT_note_mouse_highlight): New functions.
5332 (IT_update_begin): If the redisplay affects the window where the
5333 mouse highlight is, clear the highlight. If the frame where the
5334 highlight was displayed was killed, invalidate the highlight
5335 info.
5336 (IT_update_end): Reset the highlight flag. Reset the mouse
5337 highlight-defer flag.
5338 (IT_frame_up_to_date): New function, if mouse highlight was
5339 deferred due to GC, do it now.
5340 (internal_terminal_init): Initialize mouse-highlight related
5341 members of the_only_x_display. Assign IT_frame_up_to_date to
5342 frame_up_to_date_hook.
5343 (dos_rawgetc): If the mouse moved, update mouse highlight. If
5344 help_echo changed value, generate a HELP_EVENT event.
5345 (syms_of_msdos): Staticpro help_echo and previous_help_echo.
5346
adb9900f
EZ
5347 * msdos.h (struct display_info): New.
5348 (struct x_output): Add the display_info member.
5349 (FRAME_X_DISPLAY_INFO): New macro.
5350
481b5054
GM
53511999-12-28 Gerd Moellmann <gerd@gnu.org>
5352
5353 * xdisp.c (try_window_id): Compute BEG_UNCHANGED and END_UNCHANGED
5354 if MODIFF > 1.
6448a6b3 5355 (dump_glyph_row): Adapt to changes in struct glyph.
481b5054
GM
5356
5357 * buffer.c (modify_overlay): Always compute unchanged info.
5358
a2882b0d
KH
53591999-12-27 Kenichi Handa <handa@etl.go.jp>
5360
5361 * dispextern.h (FACE_FROM_ID): Cast the arg ID to `unsigned'.
5362
89ba5b5f
KH
53631999-12-27 Kenichi Handa <handa@etl.go.jp>
5364
5365 The following changes are to use more bits for face IDs.
5366
5367 * lisp.h (GLYPH): Defined as `int', not `unsigned int'. Now the
5368 lowest 8 bits are single byte character code, the bits above are
5369 face ID.
481b5054 5370 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjusted for the change
89ba5b5f 5371 above.
481b5054
GM
5372 (FAST_MAKE_GLYPH, FSST_GLYPH_FACE): Likewise.
5373 (GLYPH_MASK_REV_DIR, GLYPH_MASK_PADDING): Macros deleted.
89ba5b5f
KH
5374
5375 * charset.h (CHAR_BYTES): Use ((1 << CHARACTERBITS) - 1) instead
5376 of GLYPH_MASK_CHAR.
5377
5378 * charset.c (char_bytes): Use ((1 << CHARACTERBITS) - 1) instead
5379 of GLYPH_MASK_CHAR.
5380
5381 * dispextern.h (struct glyph): Make face_id and padding_p the top
5382 level members. Change members in union `u'.
5383 (GLYPH_EQUAL_P): Check also members face_id and padding_p.
5384 (GLYPH_CHAR_AND_FACE_EQUAL_P): New macro.
5385 (SET_CHAR_GLYPH): Adjusted for the change of struct glyph.
5386 (CHAR_GLYPH_PADDING_P): Likewise.
5387 (GLYPH_FROM_CHAR_GLYPH): Likewise. Always return -1 for multibyte
5388 characters.
5389
481b5054 5390 * dispnew.c (line_hash_code, direct_output_for_insert): Adjusted
89ba5b5f
KH
5391 for the change of struct glyph.
5392 (line_draw_cost): Adjusted for the change of
5393 GLYPH_FROM_CHAR_GLYPH.
5394 (count_match): Use macro GLYPH_CHAR_AND_FACE_EQUAL_P.
5395
5396 * term.c (encode_terminal_code): Adjusted for the change of struct
5397 glyph and GLYPH_FROM_CHAR_GLYPH.
481b5054 5398 (write_glyphs, insert_glyphs, append_glyph): Adjusted for the
89ba5b5f
KH
5399 change of struct glyph.
5400
5401 * xdisp.c: All codes adjusted for the change of struct glyph.
5402
5403 * xterm.c: All codes adjusted for the change of struct glyph.
5404
5bcd116c
KH
54051999-12-27 Kenichi Handa <handa@etl.go.jp>
5406
5407 * composite.h (struct composition): Change the order of declaring
5408 members to reduce the byte size of the structure.
5409
f21b06b7
GM
54101999-12-25 Gerd Moellmann <gerd@gnu.org>
5411
5412 * search.c (looking_at_1): Reset immediate_quit before modifying
5413 global data.
5414
e36557c9
KH
54151999-12-24 Kenichi Handa <handa@etl.go.jp>
5416
5417 * process.c (read_process_output): Fix the arg FROM to
5418 update_compositions.
5419
83c8f461 54201999-12-22 Richard M. Stallman <rms@gnu.org>
f7c9e039
RS
5421
5422 * search.c (Freplace_match): For nonliteral replacement in buffer,
5423 construct all the new text first, then insert all at once.
5424
0b863bd9
DL
54251999-12-22 Dave Love <fx@gnu.org>
5426
5427 * xfns.c (Fx_show_tip): Gcpro `timeout' too.
5428
6d8e8ef3
GM
54291999-12-22 Gerd Moellmann <gerd@gnu.org>
5430
28d7281d
GM
5431 * xfns.c (Fx_create_frame): Move x_default_parameter calls that
5432 lead to size changes to after the X window has been created.
5433
e22ef6eb 5434 * xfaces.c (realize_x_face): Don't use uninitialized local
6d8e8ef3
GM
5435 variable in xassert.
5436
8affcced
KH
54371999-12-22 Kenichi Handa <handa@etl.go.jp>
5438
5439 * xfaces.c (face_color_supported_p): Check by tty_defined_color
6d8e8ef3 5440 only when the frame is not for a window system.
8affcced 5441
f2be1146
GM
54421999-12-22 Gerd Moellmann <gerd@gnu.org>
5443
deca1348
GM
5444 * buffer.c (Fset_buffer_multibyte): Arrange for a thorough
5445 redisplay after changing the multibyteness of a buffer.
5446
f2be1146
GM
5447 * xterm.c (XTread_socket): At the beginning of the loop, pass the
5448 frame's X window to XFilterEvent instead of None because that's
5449 the X window for which the IC was created. This makes dead
5450 accents work when the pointer is not in Emacs' frame.
5451 (XTread_socket) <KeyPress>: Don't call XFilterEvent here.
5452
a744a2ec
DL
54531999-12-20 Dave Love <fx@gnu.org>
5454
5455 * xfns.c (Fx_show_tip): Add missing UNGCPRO.
5456
9e6985ed
GM
54571999-12-19 Gerd Moellmann <gerd@gnu.org>
5458
5459 * eval.c (debugger_may_continue): New variable.
5460 (syms_of_eval): Add a DEFVAR_BOOL for it.
5461 (call_debugger): Bind it.
5462
3b620731
EZ
54631999-12-19 Eli Zaretskii <eliz@is.elta.co.il>
5464
5465 * msdos.c (IT_set_face): Don't swap face colors when highlight or
5466 fp->tty_reverse_p is set, unless the computed colors are identical
5467 to frame colors. Print both original and computed colors to
5468 termscript file.
5469 (IT_write_glyphs): Track the changes in handling of composite
5470 characters.
5471 (IT_set_frame_parameters): Don't set frame colors from
5472 unspecified-fg and unspecified-bg pseudo-colors.
5473
0f9a51c4
DL
54741999-12-17 Dave Love <fx@gnu.org>
5475
5476 * data.c (Fkeywordp): New function.
5477 (syms_of_data): Install it.
5478
363e4e42
EZ
54791999-12-16 Eli Zaretskii <eliz@is.elta.co.il>
5480
5481 * xfaces.c (tty_defined_color): Fix last change.
5482
cfad01b4
GM
54831999-12-15 Gerd Moellmann <gerd@gnu.org>
5484
5485 * xdisp.c (redisplay_window) <optional new window start>: Check
5486 that window start is in [BEGV..ZV].
5487
f9d2fdc4
EZ
54881999-12-15 Eli Zaretskii <eliz@is.elta.co.il>
5489
5490 * dispextern.h (FACE_TTY_DEFAULT_FG_COLOR)
5491 (FACE_TTY_DEFAULT_BG_COLOR): New macros.
5492
5493 * xfaces.c (Qunspecified_fg, Qunspecified_bg): New variables.
5494 (syms_of_xfaces): Initialize and staticpro them.
5495 (tty_defined_color): If the color name is unspecified-fg or
5496 unspecified-bg, return FACE_TTY_DEFAULT_FG_COLOR and
5497 FACE_TTY_DEFAULT_BG_COLOR, respectively, as the pixel value.
5498 (tty_color_name): If the color pixel value is either
5499 FACE_TTY_DEFAULT_FG_COLOR or FACE_TTY_DEFAULT_BG_COLOR, return
5500 Qunspecified_fg or Qunspecified_bg, respectively.
5501 (Finternal_set_lisp_face_attribute): Allow values Qunspecified_fg
5502 and Qunspecified_bg for foreground and background colors.
5503 (realize_default_face): If the foreground and background colors
5504 are not specified, default to Qunspecified_fg and Qunspecified_bg.
5505 (realize_tty_face): By default, set the face colors to
5506 FACE_TTY_DEFAULT_FG_COLOR and FACE_TTY_DEFAULT_BG_COLOR.
5507 [MSDOS]: Handle FACE_TTY_DEFAULT_FG_COLOR and
5508 FACE_TTY_DEFAULT_BG_COLOR when face colors are not defined.
5509 Reverse the colors if the default colors were reversed.
5510
5511 * dispnew.c (init_display): Initialize the frame pixels of the
5512 initial frame to FACE_TTY_DEFAULT_FG_COLOR and
5513 FACE_TTY_DEFAULT_BG_COLOR.
5514
5515 * term.c (turn_on_face): If the default fore- and background
5516 colors are reversed, enter inverse video mode. Don't send color
5517 escape sequences for unspecified foreground and background colors.
5518 (turn_off_face): Handle unspecified-fg and unspecified-bg colors.
5519
5520 * dosfns.c (unspecified_colors): New variable.
5521 (msdos_stdcolor_idx): Handle unspecified-fg and unspecified-bg
5522 color names, return FACE_TTY_DEFAULT_FG_COLOR and
5523 FACE_TTY_DEFAULT_BG_COLOR, respectively.
5524 (msdos_stdcolor_name): Handle FACE_TTY_DEFAULT_FG_COLOR and
5525 FACE_TTY_DEFAULT_BG_COLOR, return Qunspecified_fg and
5526 Qunspecified_bg, respectively.
5527
5528 * msdos.c (IT_set_face): Support FACE_TTY_DEFAULT_FG_COLOR and
5529 FACE_TTY_DEFAULT_BG_COLOR as pixel values.
5530
e19539f1
KH
55311999-12-15 Kenichi Handa <handa@etl.go.jp>
5532
5533 * coding.c (code_convert_region): Fix the secoding arg to
5534 update_compositions.
5535
5ec14d3c
KH
55361999-12-15 Kenichi Handa <handa@etl.go.jp>
5537
5538 The following changes are for the new composition mechanism. We
5539 have deleted `composition' charset and composite characters,
5540 instead introduced a special text property `composition'.
5541
5542 * Makefile.in (INTERVAL_SRC): Include composite.h.
5543 (INTERVAL_OBJ): Include composite.o.
5544 (SOME_MACHINE_OBJECTS): Include composite.o.
5545 (casefiddle.o) (dispnew.o) (indent.o) (process.o) (search.o)
5546 (syntax.o) (window.o) (xdisp.o) (xfaces.o) (xterm.o) (print.o):
5547 Depend on composite.h.
5548 (doc.o): Depend on charset.h.
5549 (keyboard.o) (textprop.o) (intervals.o): Depend on INTERVAL_SRC.
5550 (composite.o): New target.
427ec082 5551
5ec14d3c
KH
5552 * alloc.c (Fmake_string): Adjusted for the change of CHAR_STRING.
5553
5554 * callproc.c (Fcall_process): Call code_convert_string to encode
5555 arguments. Use CODING_REQUIRE_DECODING to check if the process
5556 output should be decoded.
5557
5558 * casefiddle.c: Include composite.h.
5559 (casify_object): Use MAX_MULTIBYTE_LENGTH to allocate memory for a
5560 multibyte character. Adjusted for the change of CHAR_STRING.
5561 (casify_region): Likewise. Call update_compositions.
5562
5563 * category.h (CATEGORY_SET): Delete codes for a composite
5564 character.
5565
5566 * category.c (word_boundary_p): Delete codes for a composite
5567 character.
5568 (Fmake_category_table): New function.
5569 (syms_of_category): Defsubr it.
5570
5571 * ccl.c (CCL_WRITE_CHAR): Adjusted for the change of CHAR_STRING.
5572 (ccl_driver): Delete codes for a composite character.
5573
5574 * charset.h: In this entry, just `Modified' means that codes for a
5575 composite character is deleted.
5576 (LEADING_CODE_COMPOSITION) (CHARSET_COMPOSITION)
5577 (charset_composition) (MIN_CHAR_COMPOSITION)
5578 (MAX_CHAR_COMPOSITION) (GENERIC_COMPOSITION_CHAR)
5579 (COMPOSITE_CHAR_P) (MAKE_COMPOSITE_CHAR) (COMPOSITE_CHAR_ID)
5580 (PARSE_COMPOSITE_SEQ) (PARSE_CHARACTER_SEQ): Deleted.
5581 (MAX_CHAR) (CHARSET_VALID_P) (CHARSET_DEFINED_P) (CHARSET_AT)
5582 (FIRST_CHARSET_AT) (SAME_CHARSET_P) (MAKE_NON_ASCII_CHAR)
5583 (PARSE_MULTIBYTE_SEQ) (SPLIT_NON_ASCII_CHAR) (CHAR_PRINTABLE_P):
5584 Modified.
5585 (SPLIT_STRING): Call split_string, not split_non_ascii_string.
5586 (CHAR_STRING): Delete WORKBUF argument. Call char_string, not
5587 non_ascii_char_to_string.
5588 (STRING_CHAR): Call string_to_char, not string_to_non_ascii_char.
5589 (STRING_CHAR_AND_LENGTH): Likewise.
5590 (FETCH_CHAR_ADVANCE): New macro.
5591 (MAX_COMPONENT_COUNT) (struct cmpchar_info): Deleted.
5592 (MAX_MULTIBYTE_LENGTH): New macro.
5593 (MAX_LENGTH_OF_MULTI_BYTE_FORM): Deleted.
5594 (find_charset_in_str): Argument adjusted.
5595 (CHAR_LEN): Modified.
427ec082 5596
5ec14d3c
KH
5597 * charset.c: In this entry, just `Modified' means that codes for a
5598 composite character is deleted.
5599 (Qcomposition) (leading_code_composition)
5600 (charset_composition) (min_composite_char) (cmpchar_table)
5601 (cmpchar_table_size) (n_cmpchars): Deleted.
5602 (SPLIT_COMPOSITE_SEQ): Deleted.
5603 (SPLIT_MULTIBYTE_SEQ): Modified.
5604 (char_to_string): Renamed from non_ascii_char_to_string.
5605 Modified.
5606 (string_to_char): Renamed from string_to_non_ascii_char.
5607 (split_string): Renamed from split_non_ascii_string.
5608 (char_printable_p) (Fsplit_char)
5609 (Ffind_charset_region) (Ffind_charset_string) (char_valid_p)
5610 (char_bytes) (Fchar_width) (strwidth): Modified.
5611 (find_charset_in_str): Argument CMPCHARP deleted. Modified.
5612 (Fstring): Adjusted for the change of CHAR_STRING. Modified.
5613 (hash_string) (CMPCHAR_HASH_TABLE_SIZE) (cmpchar_hash_table)
5614 (CMPCHAR_HASH_SIZE) (CMPCHAR_HASH_USED) (CMPCHAR_HASH_CMPCHAR_ID)
5615 (str_cmpchar_id) (cmpchar_component) (Fcmpcharp)
5616 (Fcmpchar_component) (Fcmpchar_cmp_rule) (Fcmpchar_cmp_rule_p)
5617 (Fcmpchar_cmp_count): Deleted.
5618 (Fcompose_string): Implemented by Emacs Lisp in composite.el.
5619 (init_charset_once): Modified.
5620 (syms_of_charset): Modified.
5621
5622 * cmds.c (internal_self_insert): Adjusted for the change of
5623 CHAR_STRING.
5624
5625 * coding.h (emacs_code_class_type): Delete the member
5626 EMACS_leading_code_composition.
5627 (COMPOSING_NO) (COMPOSING_WITH_RULE_HEAD) (COMPOSING_NO_RULE_HEAD)
5628 (COMPOSING_WITH_RULE_TAIL) (COMPOSING_NO_RULE_TAIL)
5629 (COMPOSING_WITH_RULE_RULE) (COMPOSING_HEAD_P)
5630 (COMPOSING_WITH_RULE_P): Macros deleted.
5631 (COMPOSITION_DATA_SIZE) (COMPOSITION_DATA_MAX_BUNCH_LENGTH): New
5632 macros.
5633 (struct composition_data): New structure.
5634 (CODING_FINISH_INSUFFICIENT_CMP): New macro.
5635 (struct coding_system): New members composition_rule_follows,
5636 cmp_data, cmp_data_start, cmp_data_index.
5637 (coding_save_composition) (coding_free_composition_data)
5638 (coding_adjust_composition_offset): Extern them.
5639
5640 * coding.c: Include composite.h.
5641 (DECODE_CHARACTER_ASCII): Don't handle composition here.
5642 (DECODE_CHARACTER_DIMENSION1): Likewise. Don't check the validity
5643 of multibyte code here.
5644 (DECODE_CHARACTER_DIMENSION2): Likewise.
5645 (detect_coding_emacs_mule): Change the case label from
5646 EMACS_leading_code_composition to 0x80.
5647 (detect_coding_iso2022): Handle new composition sequence.
5648 (DECODE_ISO_CHARACTER): Likewise.
5649 (check_composing_code): Deleted.
5650 (coding_allocate_composition_data): New function.
5651 (CODING_ADD_COMPOSITION_START) (CODING_ADD_COMPOSITION_END)
5652 (CODING_ADD_COMPOSITION_COMPONENT) (DECODE_COMPOSITION_START)
5653 (DECODE_COMPOSITION_END) (DECODE_COMPOSITION_RULE): New macros.
5654 (decode_coding_iso2022): Handle new composition sequence.
5655 (ENCODE_ISO_CHARACTER): Don't check composition here.
5656 (ENCODE_COMPOSITION_RULE) (ENCODE_COMPOSITION_START): New macros.
5657 (ENCODE_COMPOSITION_NO_RULE_START)
5658 (ENCODE_COMPOSITION_WITH_RULE_START): Deleted.
5659 (ENCODE_COMPOSITION_END): Handle new composition sequence.
5660 (ENCODE_COMPOSITION_FAKE_START): New macro.
5661 (encode_coding_iso2022): Handle new composition sequence.
5662 (ENCODE_SJIS_BIG5_CHARACTER): Delete superfluous `;' at the tail.
5663 (encode_coding_sjis_big5): Ignore composition.
5664 (setup_coding_system): Initialize new members of struct
5665 coding_system. Enable composition only when the coding system has
5666 `composition' property t.
5667 (coding_free_composition_data) (coding_adjust_composition_offset)
5668 (coding_save_composition) (coding_restore_composition): New
5669 functions.
5670 (code_convert_region): Call coding_save_composition for encoding
5671 and coding_allocate_composition_data for decoding. Don't skip
5672 ASCII characters if we handle composition on encoding. Call
5673 signal_after_change with Check_BORDER.
5674 (code_convert_string): Call coding_save_composition for encoding
5675 and coding_allocate_composition_data for decoding. Don't skip
5676 ASCII characters if we handle composition on encoding.
5677 (code_convert_string1): Set Vlast_coding_system_used after calling
5678 code_convert_string.
5679 (code_convert_string_norecord): Disable composition.
5680 (Fset_terminal_coding_system_internal): Likewise.
5681 (Fset_safe_terminal_coding_system_internal): Likewise.
5682 (Fset_keyboard_coding_system_internal): Likewise.
5683 (init_coding_once): Set emacs_code_class[0x80] to
5684 EMACS_invalid_code.
5685
5686 * composite.h: New file.
5687
5688 * composite.c: New file.
5689
5690 * data.c (Faref): Delete codes for a composite character..
5691 (Faset): Likewise. Adjusted for the change of CHAR_STRING.
5692
5693 * dispextern.h (enum glyph_type): New member COMPOSITE_GLYPH.
5694 (struct glyph): Add new sub-structure cmp to the union `u'.
5695 (enum display_element_type): New member IT_COMPOSITION.
5696 (enum prop_idx): New member COMPOSITION_PROP_IDX.
5697 (struct it): New members cmp_id, cmp_len.
5698
5699 * dispnew.c (direct_output_forward_char): Check point moving into
5700 or out of a composition. If so, give up direct method.
5701
5702 * doprnt.c (doprnt1): Adjusted for the change of CHAR_STRING.
5703
5704 * editfns.c (Fchar_to_string): Adjusted for the change of
5705 CHAR_STRING.
5706 (general_insert_function): Likewise.
5707 (Finsert_char): Likewise.
5708 (Fsubst_char_in_region): Likewise. Call update_compositions.
5709 (Ftranslate_region): Call update_compositions.
5710 (Ftranspose_regions): Call update_compositions.
5711
5712 * emacs.c (main): Call syms_of_composite.
5713
5714 * fileio.c (Fsubstitute_in_file_name): Adjusted for the change of
5715 CHAR_STRING.
5716 (Finsert_file_contents): Set Vlast_coding_system_used before
5717 calling signal_after_change. Call update_compositions if some
5718 texts are inserted..
5719 (Fwrite_region): Adjusted for the change of a_write and e_write.
5720 (a_write): Argument changed. Work based on character position,
5721 not byte position.
5722 (e_write): Argument changed. Handle new way of composition.
5723
5724 * fns.c (Flength): The length of char-table is MAX_CHAR.
5725 (concat): Adjusted for the change of CHAR_STRING.
5726 (Ffillarray): Adjusted for the change of CHAR_STRING.
5727 (Fset_char_table_default): Delete codes for a composite character.
5728 (hash_put): Return hash index.
5729
5730 * fontset.h (struct font_info): New member vertical_centering.
5731 (Vvertical_centering_font_regexp): Extern it.
5732
5733 * fontset.c (Vvertical_centering_font_regexp): New variable.
5734 (syms_of_fontset): Declare it as a Lisp variable and initialize.
5735 Set Vignore_relative_composition to nil.
5736 (fs_load_font): Initialize `vertical_centering' of struct
5737 font_info.
5738
5739 * indent.c (check_composition): New function.
5740 (MULTIBYTE_BYTES_WIDTH): Call STRING_CHAR_AND_LENGTH with
5741 MAX_MULTIBYTE_LENGTH, not MAX_LENGTH_OF_MULTI_BYTE_FORM.
5742 (current_column_1): Handle new way of composition.
5743 (Fmove_to_column): Likewise.
5744 (compute_motion): Likewise.
5745
5746 * insdel.c (copy_text): Adjusted for the change of CHAR_STRING.
5747 (insert_char): Likewise.
5748 (insert): Call update_compositions.
5749 (insert_and_inherit): Likewise.
5750 (insert_before_markers): Likewise.
5751 (insert_before_markers_and_inherit): Likewise.
5752 (insert_from_string): Likewise.
5753 (insert_from_string_before_markers): Likewise.
5754 (insert_from_buffer): Likewise.
5755 (replace_range): Likewise.
5756 (count_combining_composition): Deleted.
5757 (count_combining_before): Delete codes for a composite character.
5758 (count_combining_after): Likewise.
5759 (del_range_1): Call update_compositions.
5760 (del_range_byte): Likewise.
5761 (del_range_both): Likewise.
5762 (Fcombine_after_change_execute): Likewise.
5763
5764 * intervals.h: Include composite.h.
5765 (get_property_and_range): Extern it.
5766 (Vtext_property_default_nonsticky): Extern it.
427ec082 5767
5ec14d3c
KH
5768 * intervals.c (adjust_intervals_for_insertion): To check stickines
5769 of properties, pay attention to text-property-default-nonsticky.
5770 (merge_properties_sticky): Likewise.
5771 (get_property_and_range): New function.
5772
5773 * keyboard.c (Vdisable_point_adjustment): New variable.
5774 (Vglobal_disable_point_adjustment): New variable.
5775 (syms_of_keyboard): Declare them as Lisp variables.
5776 (command_loop_1): Check them and call adjust_point_for_property if
5777 necessary.
5778 (adjust_point_for_property): New function.
5779
5780 * keymap.c (push_key_description): Adjusted for the change of
5781 CHAR_STRING.
5782 (Ftext_char_description): Likewise.
5783
5784 * lisp.h (QCtest, QCweakness, Qequal): Extern them.
5785 (hash_put): Adjusted for the change of the definition.
5786 (signal_after_change): Likewise.
5787 (check_point_in_composition): Extern it.
5788
5789 * lread.c (readchar): Adjusted for the change of CHAR_STRING.
5790 Delete a code that handles an invalid too-long multibyte sequence
5791 because we are now sure that we never encounter with such a
5792 sequence.
5793 (read_multibyte): Use macro MAX_MULTIBYTE_LENGTH, not
5794 MAX_LENGTH_OF_MULTI_BYTE_FORM.
5795 (init_obarray): Likewise.
5796 (read1): Likewise. Adjusted for the change of CHAR_STRING.
5797
5798 * print.c (printchar): Adjusted for the change of CHAR_STRING.
5799
5800 * process.c: Include composite.h.
5801 (read_process_output): Call update_compositions.
5802
5803 * regex.c (regex_compile): Adjusted for the change of CHAR_STRING.
5804
5805 * search.c (search_buffer): Adjusted for the change of CHAR_STRING.
5806
5807 * syntax.h (SYNTAX_ENTRY_INT): Delete codes for a composite
5808 character.
5809
5810 * term.c (encode_terminal_code): Delete codes for a composite
5811 character. Adjusted for the change of CHAR_STRING.
5812 (produce_glyphs): When called, it->what can be IT_COMPOSITION.
5813 Delete codes for a composite character.
5814
5815 * textprop.c (Vtext_property_default_nonsticky): New variable
5816 (syms_of_textprop): Declare it as a Lisp variable.
5817
5818 * window.c (Frecenter): Clear all caches of compositions.
5819
5820 * xdisp.c (it_props): Add an entry for composition.
5821 (face_before_or_after_it_pos): For composition, check face of a
5822 character after the composition.
5823 (handle_composition_prop): New function.
5824 (get_next_display_element): Adjusted for the change of
5825 CHAR_STRING.
5826 (set_iterator_to_next): Handle the case that it->method ==
5827 next_element_from_composition.
5828 (next_element_from_composition): New function.
5829 (message_dolog): Adjusted for the change of CHAR_STRING.
5830 (set_message_1): Likewise.
5831 (check_point_in_composition): New function.
5832 (reconsider_clip_changes): If point moved into or out of
5833 composition, set b->clip_changed to 1 to force updating of the
5834 screen.
5835 (disp_char_vector): Delete codes for a composite character.
5836 (decode_mode_spec_coding): Adjusted for the change of CHAR_STRING.
5837
5838 * xfaces.c (choose_face_fontset_font): Delete codes for a
5839 composite character.
5840 (realize_x_face): Likewise. Change a place to set local variable
5841 `f' to avoid a bug of GCC 2.8.1 on Solaris.
5842
5843 * xfns.c: Include intervals.h.
5844 (syms_of_xfns): Make `display' property nonsticky by default.
5845
5846 * xselect.c (lisp_data_to_selection_data): Adjusted for the change
5847 for find_charset_in_str.
5848
5849 * xterm.h (struct x_output): Change member font_baseline to
5850 baseline_offset.
5851
5852 * xterm.c (x_append_glyph): Setup members of struct glyph properly
5853 for composition.
5854 (x_append_composite_glyph): New function.
5855 (VCENTER_BASELINE_OFFSET): New macro.
5856 (x_produce_glyphs): If it->what == IT_COMPOSITION, setup members
5857 of struct it for the composition. Cache pixel offsets in the
5858 struct composition. Delete codes for a composite character.
5859 Handle Vignore_relative_composition in composition code.
5860 (struct glyph_string): Delete member cmpcharp, add new member cmp.
5861 (x_set_cursor_gc): Check s->cmp, not s->cmpcharp.
5862 (x_compute_glyph_string_overhangs): Likewise.
5863 (x_get_glyph_overhangs): Delete codes for a composite character.
5864 (x_right_overwritten): Check s->cmp, not s->cmpcharp.
5865 (x_draw_glyph_string_background): Likewise. Delete codes for
5866 checking s->gidx for a composition.
5867 (x_draw_glyph_string_foreground): Delete code for a composite
5868 character.
5869 (x_draw_composite_glyph_string_foreground): New function.
5870 (x_draw_glyph_string_box): Check s->cmp, not s->cmpcharp.
5871 (x_draw_glyph_string): Handle the case of COMPOSITE_GLYPH.
5872 (struct work): Deleted.
5873 (x_fill_composite_glyph_string): Argument changed. Mostly
5874 rewritten for that.
5875 (x_fill_glyph_string): Don't check CHARSET_COMPOSITION.
5876 (BUILD_CHAR_GLYPH_STRINGS): Don't handle composition here.
5877 (BUILD_COMPOSITE_GLYPH_STRING): New macro.
5878 (BUILD_GLYPH_STRINGS): For composition, call
5879 BUILD_COMPOSITE_GLYPH_STRING.
5880 (x_new_font): Initialize f->output_data.x->baseline_offset, not
5881 f->output_data.x->font_baseline.
5882
c3c60f13
GM
58831999-12-14 Gerd Moellmann <gerd@gnu.org>
5884
5885 * xterm.c (show_mouse_face): Don't use updated_area, use
5886 TEXT_AREA.
5887
83c8f461 58881999-12-12 Richard M. Stallman <rms@gnu.org>
c838eb57
RS
5889
5890 * minibuf.c (Fall_completions): Doc fix.
5891
83c8f461 58921999-12-12 Richard M. Stallman <rms@gnu.org>
c838eb57
RS
5893
5894 * macros.c (Fstart_kbd_macro): Handle case where last-kbd-macro
5895 has been changed by the Lisp code.
5896
d8eccf12
GM
58971999-12-12 Gerd Moellmann <gerd@gnu.org>
5898
5899 * xfns.c: Indentation fixes.
5900
ae56feae
SM
59011999-12-10 Stefan Monnier <monnier@cs.yale.edu>
5902
5903 * xterm.c (x_initialize): Only setup xaw3d_* if they've been declared.
5904
dfa1c6ae
GM
59051999-12-10 Gerd Moellmann <gerd@gnu.org>
5906
5907 * frame.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
5908 [!MSDOS && !WINDOWSNT && !macintosh]: Moved here from xterm.h.
5909
5910 * xterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Moved
5911 to frame.h.
5912
ec18280f
SM
59131999-12-09 Stefan Monnier <monnier@cs.yale.edu>
5914
5915 * keyboard.c (Qratio): New symbol.
5916 (scroll_bar_parts): Add `Qratio' to it.
5917 (syms_of_keyboard): Init `Qratio'.
5918 * termhooks.h (scroll_bar_part): Add `scroll_bar_move_ratio'.
5919 * xterm.c (#includes): Allow compilation with only Xaw.
5920 (xaw3d_arrow_scroll, xaw3d_pick_top): New variables.
5921 (xt_action_hook): Replace XAW3D by XAW.
5922 (xaw3d_jump_callback): Renamed to xaw_jump_callback.
5923 (xaw_jump_callback): Renamed from xaw3d_jump_callback.
5924 Determine epsilon dynamically and don't try to be too clever.
5925 (xaw3d_scroll_callback): Renamed to xaw_scroll_callback.
5926 (xaw_scroll_callback): Renamed from xaw3d_scroll_callback.
5927 Handle both Xaw3d with arrow-scrollbars and with Xaw-style
5928 scrollbar (using `ratio').
5929 (x_create_toolkit_scroll_bar): Try to detect which style of Xaw3d
5930 scrollbar we have so as to set it up more optimally and to fix
5931 xaw3d_arrow_scroll and xaw3d_pick_top.
5932 (x_set_toolkit_scroll_bar_thumb): Try to maintain 2 spare pixels at the
5933 bottom of the Xaw3d scrollbar, to work around its tendency to refuse
5934 shrinking the thumb. Also make sure that `XawScrollbarSetThumb'
5935 is not ignored, using a major gross hack.
5936 (x_initialize): Init default values for xaw3d_arrow_scroll and
5937 xaw3d_pick_top.
5938
83b6d970
DL
59391999-12-09 Dave Love <fx@gnu.org>
5940
5941 * frame.h: (PIX_TYPE) [! HAVE_X_WINDOWS]: Define PIX_TYPE.
5942
3648c842
GM
59431999-12-08 Gerd Moellmann <gerd@gnu.org>
5944
5945 * eval.c: Remove conditional compilation on `standalone'.
5946 (call_debugger): When entering the debugger while redisplaying,
5947 reset redisplaying_p, and go back to the top-level if the debugger
5948 returns.
5949
05e71564
GM
59501999-12-07 Gerd Moellmann <gerd@gnu.org>
5951
5952 * xfaces.c (x_set_menu_resources_from_menu_face): Make sure
5953 basic faces are realized before trying to use face `menu'.
5954
5955 * window.c (delete_window): Block input for the time window
5956 matrices are being changed.
5957
b46cd536
DL
59581999-12-07 Dave Love <fx@gnu.org>
5959
5960 * lread.c (Fintern_soft): Fix newlines in doc string.
5961
96acb1f7
GM
59621999-12-07 Alexandre Oliva <oliva@dcc.unicamp.br>
5963
5964 * unexelf.c: Include <syms.h>, not <sym.h> on IRIX. Removed
5965 duplicate definition of ElfW.
5966 (find_section): Copied from unexsgi.c.
5967 (unexec): Use find_section. Adjust whitespace. Initialize
5968 new_data2_offset based on old_data, not sbss (this fixes a bug on
5969 IRIX6). Change #ifdef __mips to __sgi, since it's IRIX-specific.
5970 Adjust test for presence of .mdebug section to the new return
5971 value of find_section.
427ec082 5972
96acb1f7
GM
59731999-12-07 Gerd Moellmann <gerd@gnu.org>
5974
5975 * unexelf.c: Merge changes from 20.5.
5976 (unexec): Handle .lit4 and .lit8 unconditionally.
5977
5978 * m/iris4d.h (UNEXEC) [USG5_4]: Use unexelf.o instead of
5979 unexsgi.o again.
427ec082 5980
96acb1f7
GM
5981 * m/iris5d.h (UNEXEC): Likewise.
5982
7dae4502
SM
59831999-12-06 Stefan Monnier <monnier@cs.yale.edu>
5984
5985 * editfns.c (Fdelete_and_extract_region): New function.
05e71564
GM
5986 (syms_of_editfns): Register it.
5987 * insdel.c (del_range): Update del_range_1 call.
7dae4502
SM
5988 (del_range_1, del_range_2): Add a ret_string argument to
5989 request that the deleted text be returned.
5990 (del_range_byte, del_range_both): Update del_range_2 call.
05e71564 5991 * lisp.h (del_range_1, del_range_2): Change prototype
7dae4502
SM
5992 * casefiddle.c (casify_region): Update del_range_1 call.
5993 * coding.c (code_convert_region): Update del_range_2 call.
5994 * fileio.c (Finsert_file_contents): Update del_range_2 call.
5995
397e4fae
GM
59961999-12-06 Gerd Moellmann <gerd@gnu.org>
5997
5998 * xfaces.c (set_lface_from_font_name): Fix incomplete merge.
5999
3d973f71
GM
60001999-12-04 Hrvoje Niksic <hniksic@iskon.hr>
6001
6002 * lread.c (Fintern_soft): Accept a symbol argument.
427ec082 6003
740e985f
EZ
60041999-12-06 Eli Zaretskii <eliz@is.elta.co.il>
6005
6006 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 40000.
809f3d51
EZ
6007
6008 * insdel.c (adjust_markers_for_delete): Fix last change.
6009
2d764c78
EZ
60101999-12-06 Eli Zaretskii <eliz@is.elta.co.il>
6011
6012 Changes for automatic remapping of X colors on terminal frames:
6013
6014 * xfaces.c (XColor) [!HAVE_X_WINDOWS]: Provide a typedef for non-X
6015 frames.
6016 (Vface_tty_color_alist): Remove.
6017 (tty_defined_color): New function.
6018 (defined_color): Rewrite to support any type of frame.
6019 (tty_color_name): New function.
6020 (face_color_supported_p, Fface_color_gray_p,
6021 Fface_color_supported_p): Support non-X frames.
6022 (load_color): Enclose the color name in quotes, in the log
6023 messages. Remove DOS-specific version of load_color.
6024 (realize_tty_face): Take the supported colors from
6025 tty-color-alist. Support translation of X colors to the closest
6026 tty color, for both MSDOS and tty frames.
6027 [MSDOS]: Don't invert face colors if they were taken from the
6028 frame colors.
6029 (Fface_register_tty_color, Fface_clear_tty_colors): Remove.
6030
6031 * frame.h (struct x_output) [!MSDOS, !WINDOWSNT, !HAVE_X_WINDOWS]:
6032 Define a mostly empty surrogate.
6033 (tty_display): Declare.
6034
6035 * frame.c (make_terminal_frame) [!macintosh]: Don't use
6036 tty_display.
6037 (Fframe_parameters): Don't invert colors of non-FRAME_WINDOW_P
6038 frames when the frame's param_alist includes 'reverse.
6039 (tty_display): Define.
6040 (make_terminal_frame) [!MSDOS]: Assign &tty_display to the
6041 output_data.x member.
6042 (Fframe_parameters): Return foreground and background color names
6043 on tty frames as well, in addition to MSDOS frames.
6044
6045 * msdos.h (DisplayWidth, DisplayHeight): Changes for Lisp_Object
6046 selected_frame.
6047 (struct x_output): Remove unused members; document who uses each
6048 member.
6049 (FRAME_PARAM_FACES, FRAME_N_PARAM_FACES, FRAME_DEFAULT_PARAM_FACE,
6050 FRAME_MODE_LINE_PARAM_FACE, FRAME_COMPUTED_FACES,
6051 FRAME_N_COMPUTED_FACES, FRAME_SIZE_COMPUTED_FACES,
6052 FRAME_DEFAULT_FACE, FRAME_MODE_LINE_FACE, unload_color): Remove
6053 unused macro definintions.
6054
6055 * msdos.c (IT_set_frame_parameters): Don't call
6056 recompute_basic_faces, the next redisplay will, anyway.
6057 (x_current_display): Remove unused variable.
6058 Many functions: changes for Lisp_object selected_frame.
6059 (IT_set_face): If the tty_reverse_p flag is set for the face,
6060 reverse the foreground and background colors.
6061 (Fmsdos_remember_default_colors): New function.
6062 (syms_of_msdos): Defsubr it.
6063 (IT_set_frame_parameters): Use initial_screen_colors[] when
6064 creating a new frame. If the frame parameters include 'reverse,
6065 swap the foreground and background colors.
6066 (internal_terminal_init): Initialize initial_screen_colors to -1.
6067 (syms_of_msdos): Add DEFVAR_BOOL for x-stretch-cursor, to shut up
6068 cus-start.el.
6069
6070 * Makefile.in (lisp, shortlisp): Add lisp/term/tty-colors.elc.
6071
6072 * xfns.c (x_defined_color): Rename from defined_color. All
6073 callers changed.
6074 (Fxw_color_defined_p): Renamed from Fx_color_defined_p;
6075 all callers changed.
6076 (Fxw_color_values): Renamed from Fx_color_values; all callers
6077 changed.
6078 (Fxw_display_color_p): Renamed from Fx_display_color_p; all
6079 callers changed.
6080 (x_window_to_frame, x_any_window_to_frame,
6081 x_non_menubar_window_to_frame, x_menubar_window_to_frame,
6082 x_top_window_to_frame): Use !FRAME_X_P instead of
6083 f->output_data.nothing.
6084 * xterm.h (x_defined_color): Rename from defined_color.
6085
6086 * w32fns.c (x_window_to_frame): Use FRAME_W32_P instead of
6087 f->output_data.nothing.
6088 (Fxw_color_defined_p): Renamed from Fx_color_defined_p;
6089 all callers changed.
6090 (Fxw_color_values): Renamed from Fx_color_values; all callers
6091 changed.
6092 (Fxw_display_color_p): Renamed from Fx_display_color_p; all
6093 callers changed.
6094
6095 * dispextern.h (tty_color_name): Add prototype.
6096
6097 * xmenu.c (menubar_id_to_frame): Use FRAME_WINDOW_P instead of
6098 f->output_data.nothing.
6099 * w32menu.c (menubar_id_to_frame): Likewise.
6100 * w32term.h (w32_output): Declare.
6101
6102 * dosfns.c (Qmsdos_color_translate): Remove.
6103 (msdos_stdcolor_name): Now returns a Lisp_Object.
6104 * dosfns.h (Qmsdos_color_translate): Remove.
6105
6106 * s/msdos.h (INTERNAL_TERMINAL): Add entries for color support.
6107
b3e5232e
KH
61081999-12-06 Kenichi Handa <handa@etl.go.jp>
6109
6110 * fileio.c (decide_coding_unwind): Renamed from
6111 set_auto_coding_unwind.
6112 (Finsert_file_contents): Make single unwind protect to call both
6113 Vset_auto_coding_function and Ffind_operation_coding_system.
6114
6115 * insdel.c (adjust_markers_for_delete): Make it non-static.
6116
db0e466c
SM
61171999-12-04 Stefan Monnier <monnier@cs.yale.edu>
6118
6119 * regex.c (regex_compile): Recognize *?, +? and ?? as non-greedy
6120 operators and handle them properly.
6121 * regex.h (RE_ALL_GREEDY): New option.
6122 (RE_UNMATCHED_RIGHT_PAREN_ORD): Moved to the end where alphabetic
6123 sorting would put it.
6124 (RE_SYNTAX_AWK, RE_SYNTAX_GREP, RE_SYNTAX_EGREP)
6125 (_RE_SYNTAX_POSIX_COMMON): Use the new option to keep old behavior.
6126
22afa6e8
DL
61271999-12-04 Dave Love <d.love@dl.ac.uk>
6128
6129 * m/arm.h: New file.
6130
40afb967
DL
61311999-12-03 Dave Love <fx@gnu.org>
6132
6133 * editfns.c (Fmessage_or_box): Use use_dialog_box.
6134
ddf8eff5
GM
61351999-12-02 Gerd Moellmann <gerd@gnu.org>
6136
6137 * s/usg5-4.h (LIBS_SYSTEM): Add -lgen because that's needed
6138 for building with Motif.
6139
6140 * m/iris4d.h (UNEXEC) [USG5_4]: Use unexsgi.o instead of
6141 unexelf.o.
427ec082 6142
ddf8eff5
GM
6143 * m/iris5d.h (UNEXEC): Use unexsgi.o instead of unexelf.o.
6144
fa09a82d
DL
61451999-12-01 Dave Love <fx@gnu.org>
6146
6147 * emacs.c (main): Set LANG=C iff AX3_2 defined.
6148
ddf8eff5
GM
61491999-11-28 Gerd Moellmann <gerd@gnu.org>
6150
6151 * systime.h (EMACS_TIME_CMP, EMACS_TIME_EQ, EMACS_TIME_NE)
6152 (EMACS_TIME_GT, EMACS_TIME_GE, EMACS_TIME_LT,EMACS_TIME_LE): New
6153 macros.
6154
6155 * config.in (HAVE_SETITIMER, HAVE_UALARM): New.
6156
fa09a82d
DL
61571999-11-28 eliz <eliz@dlpx1>
6158
6159 * emacs.c (synchronize_locale): Avoid compiler warnings about
6160 pointer type mismatch.
6161
f9632fc8
GM
61621999-11-28 Gerd Moellmann <gerd@gnu.org>
6163
717d0121
GM
6164 * window.c (Fwindow_end): Don't call temp_set_pt_both with
6165 out of range position.
6166
427ec082 6167 * xterm.c (XTread_socket) <ClientMessage, Xatom_Scrollbar>:
f9632fc8
GM
6168 Switch off busy-cursor by setting inhibit_busy_cursor to 2.
6169
59c65f1e
EZ
61701999-11-28 Eli Zaretskii <eliz@is.elta.co.il>
6171
613a8346
EZ
6172 * charset.c (Fmake_char_internal): Print the charset ID when
6173 signalling an error.
6174
59c65f1e
EZ
6175 * emacs.c (synchronize_locale): Avoid compiler warnings about
6176 pointer type mismatch.
6177
83c8f461 61781999-11-26 Richard M. Stallman <rms@gnu.org>
d01f3570
RS
6179
6180 * editfns.c (Fdelete_field): Make it noninteractive. Return nil.
6181
18df9369
GM
61821999-11-26 Gerd Moellmann <gerd@gnu.org>
6183
65a3ccf7
GM
6184 * puresize.h (BASE_PURESIZE): Increase to 550000.
6185
b3b98592
GM
6186 * textprop.c (set_text_properties): New function. Like
6187 Fset_text_properties, but with additional parameter
6188 SIGNAL_AFTER_CHANGE_P. If that is nil, don't signal after
6189 changes.
6190 (Fset_text_properties): Use it.
6191
6192 * insdel.c (insert_1_both): Call set_text_properties with last
6193 parameter nil so that no after changes will be signaled.
6194
6195 * lisp.h: Add prototype for set_text_properties.
6196
18df9369
GM
6197 * xfaces.c (set_lface_from_font_name): Fix previous change.
6198 (recompute_basic_faces): Change assert to abort.
6199
71a8e74b
DL
62001999-11-25 Dave Love <fx@gnu.org>
6201
6202 * fns.c (Fnthcdr, Fnreverse): Inline cdr.
6203 (Fmember, Fdelq, Fdelete): Inline car.
6204 (Fy_or_n_p): Doc fix.
6205
bc6a5782
GM
62061999-11-25 Gerd Moellmann <gerd@gnu.org>
6207
3221576b 6208 * xfaces.c (set_lface_from_font_name): New parameter may_fail_p.
18df9369 6209 Callers changed. If specified font name is bogus, and may_fail_p
3221576b
GM
6210 is not set, try to use a reasonable default.
6211
bc6a5782
GM
6212 * dispnew.c (direct_output_for_insert): Set glyph row's
6213 displays_text_p flag. Correct window's window_end_vpos if
6214 necessary.
6215
0c8559bb
PE
62161999-11-25 Paul Eggert <eggert@twinsun.com>
6217
6218 * emacs.c (fixup_locale): Don't bother to record initial locale.
6219 (synchronize_locale): If the desired locale is nil,
6220 treat it as if it were the empty string,
6221 so that we set the locale from the environment.
6222
35737351
KH
62231999-11-25 Kenichi Handa <handa@etl.go.jp>
6224
6225 * fileio.c (Finsert_file_contents): Set buffer-file-coding-system
6226 of the current buffer via Fset.
6227
5562b47f
DL
62281999-11-24 Dave Love <fx@gnu.org>
6229
5562b47f
DL
6230 * xfaces.c: Don't duplicate Qmode_line definition done elsewhere.
6231
6232 * xfns.c: Don't duplicate Qdisplay definition done elsewhere.
6233
00da0e4a
GM
62341999-11-24 Gerd Moellmann <gerd@gnu.org>
6235
6236 * lisp.h (enum pvec_type): Put PVEC_FLAG in #if 0.
6237
6238 * emacs.c (PVEC_FLAG): New variable.
6239
b1775dc1
GM
62401999-11-23 Gerd Moellmann <gerd@gnu.org>
6241
6242 * unexaix.c (unexec): Use unsigned instead of uintptr_t because
6243 that fails on IBM PowerPC, AIX 4.2.
427ec082 6244
08de6200
EZ
62451999-11-22 Eli Zaretskii <eliz@is.elta.co.il>
6246
6247 * buffer.c (syms_of_buffer): Add %z, %Z, %m and %& to the doc
6248 string of mode-line-format. Remove the obsolete %t.
6249
02fda8ff
GM
62501999-11-22 Gerd Moellmann <gerd@gnu.org>
6251
f2fa858f
GM
6252 * dispnew.c (direct_output_for_insert): Increment glyph positions
6253 for glyphs from buffer text only.
6254
02fda8ff
GM
6255 * emacs.c (gdb_valbits, gdb_gctypebits, gdb_emacs_intbits)
6256 (gdb_data_seg_bits): New variables.
427ec082 6257
02fda8ff
GM
6258 * lisp.h (enum gdb_lisp_params): Put in #if 0, since it doesn't
6259 work on systems not allowing enumerators > INT_MAX, and it
6260 won't work if EMACS_INT is long long.
6261
1b0d24e7
PE
62621999-11-22 Paul Eggert <eggert@twinsun.com>
6263
6264 Port to SunOS 4.1.x again. Help out with Alpha port.
6265 Rename messages-locale to system-messages-locale,
6266 and likewise for time-locale.
427ec082 6267
1b0d24e7
PE
6268 * callproc.c (strerror): Remove decl.
6269 * fileio.c (strerror): Likewise.
6270 * process.c (strerror): Likewise.
6271 * emacs.c (strerror): Likewise.
6272 (Vsystem_messages_locale): Renamed from Vmessages_locale.
6273 All uses changed.
6274 (Vprevious_system_messages_locale): Likewise, from
6275 Vprevious_messages_locale.
6276 (Vsystem_time_locale): Likewise, from Vtime_locale.
6277 (Vprevious_system_time_locale): Likewise, from Vprevious_time_locale.
6278 (ABORT_RETURN_TYPE): New macro.
6279 (abort): Return type is now ABORT_RETURN_TYPE.
6280 (main): Always invoke init_signals, even if POSIX_SIGNALS is not
6281 defined.
6282 (syms_of_emacs): messages-locale -> system-messages-locale,
6283 previous-messages-locale -> previous-system-messages-locale,
6284 time-locale -> system-time-locale,
6285 previous-time-locale -> previous-system-time-locale.
6286
6287 * gmalloc.c (PP, __ptr_t): Assume ANSI C if STDC_HEADERS is defined.
6288 (const): Do not define; that's config.h's job.
6289 (<limits.h>): Include if HAVE_LIMITS_H is defined.
6290 (CHAR_BIT): Move test for definedness outside of limits.h condition.
6291 (<stddef.h>): Include if STDC_HEADERS is defined.
6292 (FREE_RETURN_TYPE): New macro.
6293 (free): Return type is now FREE_RETURN_TYPE.
6294
6295 * lisp.h (synchronize_system_time_locale): Renamed from
6296 synchronize_time_locale. All uses changed.
6297 (synchronize_system_messages_locale): Likewise, from
6298 synchronize_messages_locale.
6299
6300 * m/alpha.h (malloc, realloc, calloc): Remove decls;
6301 stdlib.h now does this.
6302
6303 * process.c (sys_siglist): Remove.
6304
6305 * s/sunos4-0.h (ABORT_RETURN_TYPE, FREE_RETURN_TYPE):
6306 New macros.
6307
6308 * syntax.c (scan_sexps_forward): Use abort, not assert.
6309
6310 * sysdep.c (my_sys_siglist): New var.
6311 (sys_siglist): New macro. Remove old initialized vars of same name.
6312 (init_signals): Initialize sys_siglist.
6313
6314 * xfns.c (abort): Remove decl; stdlib.h now does this.
6315
0dcd5b54
DL
63161999-11-18 Dave Love <fx@gnu.org>
6317
946173ad
DL
6318 * filelock.c: Add forward declaration for get_boot_time_1.
6319
0dcd5b54
DL
6320 * dispnew.c (Finternal_show_cursor_p): Fix doc string.
6321
71447e8f
GM
63221999-11-18 Gerd Moellmann <gerd@gnu.org>
6323
6324 * buffer.h (struct buffer_text): Add comment about moving
6325 buffer text if REL_ALLOC is defined.
6326
eeedff63
KH
63271999-11-18 Kenichi Handa <handa@etl.go.jp>
6328
6329 * lisp.h (KEY_DESCRIPTION_SIZE): New macro.
6330
6331 * keyboard.c (echo_char): Use KEY_DESCRIPTION_SIZE to check free
6332 memory for push_key_description.
6333
6334 * keymap.c (Fsingle_key_description): Use KEY_DESCRIPTION_SIZE to
6335 allocate memory for push_key_description.
6336 (describe_buffer_bindings): Likewise.
6337
5d7e4a2c
GM
63381999-11-17 Gerd Moellmann <gerd@gnu.org>
6339
6340 * xfns.c (Fx_show_busy_cursor): Doc-fix.
6341 (Fx_hide_busy_cursor): Ditto.
6342
63431999-11-17 Marco Walther <walther@siemens-pyramid.com>
6344
6345 * unexsni.c (unexec): Handle .rel.dyn section.
6346
b5b41e02
DL
63471999-11-16 Dave Love <fx@gnu.org>
6348
6349 * doc.c (Fdocumentation): Remove gcpro here too.
6350
e35b6123
GM
63511999-11-16 Gerd Moellmann <gerd@gnu.org>
6352
6353 * keyboard.c (command_loop_1): Remove no_redisplay.
6354
83c8f461 63551999-11-16 Richard M. Stallman <rms@gnu.org>
0a14b9bb
GM
6356
6357 * print.c (PRINTPREPARE): Don't call setup_echo_area_for_printing
6358 in noninteractive.
6359
b05d3bee
GM
63601999-11-14 Gerd Moellmann <gerd@gnu.org>
6361
5bcfeb49
GM
6362 * xdisp.c (ensure_echo_area_buffers): New.
6363 (with_echo_area_buffer): Use it.
6364 (setup_echo_area_for_printing): Ditto.
6365
b05d3bee
GM
6366 * buffer.c (indicate-empty-lines): Doc-fix.
6367
9b2e6e4c
GM
63681999-11-12 Gerd Moellmann <gerd@gnu.org>
6369
e7f90eab
GM
6370 * term.c (term_init): If "op" isn't available, don't support color
6371 because we can't switch back to the default foreground and
6372 background.
6373
9b2e6e4c
GM
6374 * doc.c (Fdocumentation_property): Remove GCPRO because
6375 Fsubstitute_command_keys gcpro's the string.
6376
1bf21027
KH
63771999-11-12 Kenichi Handa <handa@etl.go.jp>
6378
6379 * editfns.c (Ftranslate_region): Check the buffer multibyteness.
6380
3bc6df53
GM
63811999-11-11 Gerd Moellmann <gerd@gnu.org>
6382
6383 * print.c, keymap.c, indent.c, insdel.c, keyboard.c, intervals.c,
6384 lread.c, textprop.c, undo.c, emacs.c, lisp.h, intervals.h,
6385 buffer.h, config.in, Makefile.in: Remove USE_TEXT_PROPERTIES.
6386
35a5514b
GM
63871999-11-10 Gerd Moellmann <gerd@gnu.org>
6388
6389 * xfns.c (QCuser_data): Removed.
6390 (syms_of_xfns): Initialization of QCuser_data removed.
6391 (parse_image_spec): Don't handle :user-data specially. Allow
6392 unknown keys. Remove parameter ALLOW_OTHER_KEYS.
6393 (xbm_image_p, xbm_load, xpm_image_p, pbm_image_p, png_image_p)
6394 (tiff_image_p, jpeg_image_p, gif_image_p, gs_image_p): Call
6395 parse_image_spec accordingly.
6396
83c8f461 63971999-11-09 Richard M. Stallman <rms@gnu.org>
4ea68fcc
RS
6398
6399 * cmds.c (Fbeginning_of_line): Doc fix.
6400 (Fend_of_line): Doc fix.
6401
6402 * editfns.c (Fline_beginning_position): If N is not 1,
6403 pass t to Fconstrain_to_field for ESCAPE-FROM-EDGE.
6404
6405 * syntax.c (Fforward_word): Handle fields even if would have hit
6406 an edge of the buffer. Return nil if affected by fields.
6407
83c8f461 64081999-11-09 Richard M. Stallman <rms@gnu.org>
4ea68fcc
RS
6409
6410 * editfns.c (preceding_pos): Function deleted.
6411 (text_property_stickiness): Decrement POS directly.
6412 Fix a confusion that used PT instead of POS.
6413
6414 * editfns.c (find_field): Properly handle the case
6415 of a field boundary where `field' inherits from neither side.
6416
6417 * editfns.c (Ffield_beginning, Ffield_end): Doc fixes.
6418 (Ferase_field, Ffield_string, Ffield_string_no_properties): Doc fixes.
6419
fa9aabf6
GM
64201999-11-08 Gerd Moellmann <gerd@gnu.org>
6421
6422 * bytecode.c (Fbyte_code) <BinsertN, Bcall>: Do the
6423 BEFORE_POTENTIAL_GC before DISCARD.
6424
4015b3c0
GM
64251999-11-07 Gerd Moellmann <gerd@gnu.org>
6426
033a5fa3
GM
6427 * alloc.c (Fgarbage_collect): Call unmark_byte_stack.
6428
6429 * lisp.h: Add prototype for unmark_byte_stack.
6430
6431 * bytecode.c (mark_byte_stack): Use XMARKBIT and XMARK.
6432 (unmark_byte_stack): Renamed from relocate_byte_pcs. Use
6433 XUNMARK.
6434
55b064bd
GM
6435 * xdisp.c (resize_mini_window): Fix computation of needed
6436 mini-window height.
6437
6438 * alloc.c, buffer.c, editfns.c, xdisp.c: Remove conditional
6439 compilation on USE_TEXT_PROPERTIES.
01e9b9df 6440
4015b3c0 6441 * Fbyte_code: Use block statements in cases and declare v1 and v2
60af03f1 6442 locally there. Rearrange case statements so that those most
4015b3c0
GM
6443 frequently executed come first. Avoid goto's in frequently
6444 executed cases.
6445
fe512f27
GM
64461999-11-05 Gerd Moellmann <gerd@gnu.org>
6447
dd59e217
GM
6448 * bytecode.c (Fbyte_code): Use BEFORE_POTENTIAL_GC and
6449 AFTER_POTENTIAL_GC around internal_catch.
6450
bcf28080
GM
6451 * alloc.c (Fgarbage_collect): Call mark_byte_stack and
6452 relocate_byte_pcs.
6453 (init_alloc_once, init_alloc): Set byte_stack_list to null.
6454
6455 * eval.c (struct catchtag): Add member byte_stack.
6456 (internal_catch, Fcondition_case, internal_condition_case)
dd59e217 6457 (internal_condition_case_1): Save value of byte_stack_list in
bcf28080
GM
6458 catchtag.
6459 (unwind_to_catch): Restore byte_stack_list from catchtag.
6460
6461 * lisp.h: Add prototypes for new functions in bytecode.c.
6462 Add extern declaration for byte_stack_list.
6463
6464 * bytecode.c (struct byte_stack): New.
6465 (byte_stack_list, mark_byte_stack, relocate_byte_pcs): New
6466 (BEFORE_POTENTIAL_GC, AFTER_POTENTIAL_GC): New.
6467 (FETCH, PUSH, POP, DISCARD, TOP, MAYBE_GC): Rewritten.
6468 (HANDLE_RELOCATION): Removed.
6469 (Fbyte_code): Use byte_stack structures.
6470
4d59c34c
GM
6471 * filelock.c (Ffile_locked_p): Make FILENAME a required argument.
6472
fe512f27
GM
6473 * buffer.c (syms_of_buffer): Extend documentation of
6474 mode-line-format.
6475
60b64cd6
GM
64761999-11-04 Gerd Moellmann <gerd@gnu.org>
6477
6478 * editfns.c (Fdelete_field): Renamed from Ferase_field.
6479
6480 * minibuf.c (do_completion, Fminibuffer_complete_word): Use
6481 Ferase_field instead of Fdelete_field.
6482
b51b619b
GM
64831999-11-03 Gerd Moellmann <gerd@gnu.org>
6484
6485 * dispnew.c (Finternal_show_cursor): Change it to set the
6486 cursor on/off, not toggle its state.
6487 (Finternal_show_cursor_p): New.
6488 (syms_of_display): Defsubr Sinternal_show_cursor_p.
6489
5865af0d
DL
64901999-11-03 Dave Love <fx@gnu.org>
6491
6492 * charset.c (split_non_ascii_string): Define return value.
6493
82a700f3
GM
64941999-11-03 Gerd Moellmann <gerd@gnu.org>
6495
edfef199
GM
6496 * minibuf.c (string_to_object): New.
6497 (read_minibuf_noninteractive): New.
6498 (read_minibuf): Call read_minibuf_noninteractive if
6499 noninteractive. Use string_to_object.
6500
82a700f3
GM
6501 * doc.c (Fdocumentation_property): Fix bug bypassing UNGCPRO.
6502
b5540f0d
DL
65031999-11-02 Dave Love <fx@gnu.org>
6504
e69dcd60
DL
6505 * gnu-linux.h: Use SIGCHLD, not SIGCLD (not in glibc 2.1).
6506
827a1788
DL
6507 * process.c: Define _GNU_SOURCE before config.h to get strsignal
6508 declared with glibc2.
b5540f0d 6509
a69a6e61
GM
65101999-11-02 Gerd Moellmann <gerd@gnu.org>
6511
6512 * lisp.h (QUIT): Give it statement form.
6513
87e21fbd
DL
65141999-11-02 Dave Love <fx@gnu.org>
6515
6516 * eval.c (init_eval): Conditionalize declaration of gcpro_level.
6517
1b335865
GM
65181999-11-02 Gerd Moellmann <gerd@gnu.org>
6519
9fb5e03d
GM
6520 * xfns.c (QCuser_data): New.
6521 (syms_of_xfns): Initialize QCuser_data.
6522 (parse_image_spec): Ignore :user-data DATA properties.
6523
1b335865
GM
6524 * xdisp.c (display_line): Set charpos of first glyph in blank
6525 lines not corresponding to any text to -1, even if no glyphs are
6526 filled in in that line.
6527
e76f1c44
GM
65281999-11-01 Gerd Moellmann <gerd@gnu.org>
6529
427ec082 6530 * xfns.c (png_load) [PNG_READ_sRGB_SUPPORTED]: Put code using
36fcd3d9
GM
6531 png_get_sRGB in #ifdef.
6532
111259b4
GM
6533 * dispnew.c (Finternal_show_cursor): Renamed from Fshow_cursor.
6534 (syms_of_display): Use the new name.
6535
dd5c96e8
GM
6536 * textprop.c (verify_interval_modification): Signal text-read-only
6537 instead of calling error.
6538
db8878fb
GM
6539 * data.c (Qtext_read_only): New built-in error.
6540 (syms_of_data): Initialize it.
6541
6542 * lisp.h: Add extern declaration for Qtext_read_only.
6543
e76f1c44
GM
6544 * syntax.c: Remove whitespace after open or in front of closing
6545 parentheses.
6546
83c8f461 65471999-11-01 Richard M. Stallman <rms@gnu.org>
cb3a6c48
GM
6548
6549 * Makefile.in (w16select.o, sound.o): Don't depend on lisp.h.
6550
7843e09c
GM
65511999-10-31 Gerd Moellmann <gerd@gnu.org>
6552
575ed805
GM
6553 * xdisp.c (resize_mini_window): Compute needed height differently.
6554
7843e09c
GM
6555 * fns.c (Flength): Unroll loop over lists.
6556
6557 * xdisp.c (append_space): Return non-zero if space was appended.
6558 (display_line): Set charpos of first glyph to -1 only if that
6559 glyph is the space added by append_glyph.
6560
83c8f461 65611999-10-30 Richard M. Stallman <rms@gnu.org>
cb3a6c48
GM
6562
6563 * print.c (strout): Consider `noninteractive' and use stdout
6564 only when PRINTCHARFUN is t.
6565
6566 * lisp.h (struct gcpro) [DEBUG_GCPRO]: New field `level'.
6567 (gcpro_level): Declare it extern.
6568 [DEBUG_GCPRO] (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
6569 Alternate definitions that set `level' and increment `gcpro_level'.
6570 [DEBUG_GCPRO] (UNGCPRO): Alternate definition that checks gcpro_level.
6571
6572 * eval.c [DEBUG_GCPRO] (gcpro_level): New variable.
6573 (init_eval) [DEBUG_GCPRO]: Initialize it.
6574 (unwind_to_catch) [DEBUG_GCPRO]: Set gcpro_level
6575 from remaining gcprolist.
6576
3636f7a3
KH
65771999-10-29 Kenichi Handa <handa@etl.go.jp>
6578
6579 * coding.c (code_convert_region): Update `dst' correctly.
6580
a2ad7096
GM
65811999-10-28 Gerd Moellmann <gerd@gnu.org>
6582
6583 * fns.c (Fmemq, Fassq, Frassq, assq_no_quit, Fassoc)
6584 (Frassoc): Rewritten.
6585
1e3196e8
GM
65861999-10-27 Noah Friedman <friedman@splode.com>
6587
6588 * s/gnu-linux.h [HAVE_DEV_PTMX]: Redefine FIRST_PTY_LETTER to 'z'.
6589 Define PTY_NAME_SPRINTF.
6590 Redefine PTY_TTY_NAME_SPRINTF.
6591 * config.in: Add undef for HAVE_DEV_PTMX.
6592
83c8f461 65931999-10-26 Richard M. Stallman <rms@gnu.org>
4ea68fcc
RS
6594
6595 * regex.c (POP_FAILURE_POINT): Use failure_id.integer
6596 as arg to DEBUG_POP and DEBUG_PRINT.
6597
83c8f461 65981999-10-27 Richard M. Stallman <rms@gnu.org>
17dbfaad
GM
6599
6600 * data.c (Qad_activate_internal): Renamed from Qad_activate.
6601 (Ffset): Call Qad_activate_internal.
6602 (syms_of_data): Initialize Qad_activate_internal.
6603
26922151
GM
66041999-10-27 Gerd Moellmann <gerd@gnu.org>
6605
6606 * xdisp.c (echo_area_display) [HAVE_X_WINDOWS]: Do nothing if
6607 Vterminal_frame is selected and Vwindow_system is non-nil.
6608
67a5596f
GM
66091999-10-26 Gerd Moellmann <gerd@gnu.org>
6610
2bea706b
GM
6611 * xdisp.c (echo_area_display): Put previous change in #if 0.
6612
67a5596f
GM
6613 * emacs.c (standard_args): Add `file' as synonym for `visit',
6614 `execute' as synonym for `eval'.
6615 (main): Add new options to usage message.
6616
81dc5de5
GM
66171999-10-25 Gerd Moellmann <gerd@gnu.org>
6618
6619 * data.c (Qhash_table): New.
6620 (Ftype_of): Return it for hash tables.
6621 (syms_of_data): Initialize Qhash_table.
6622
83c8f461 66231999-10-25 Richard M. Stallman <rms@gnu.org>
bd3c545d
GM
6624
6625 * regex.c (POP_FAILURE_POINT): Extract failure_id as an integer.
6626
66e4690f 66271999-10-24 Ken Raeburn <raeburn@gnu.org>
3a7093d8 6628
7539e11f
KR
6629 * alloc.c: Undef HIDE_LISP_IMPLEMENTATION before including
6630 lisp.h.
6631
6632 * buffer.c (Fbuffer_list, Fget_file_buffer, get_truename_buffer,
6633 Fbuffer_local_variables, Fother_buffer, record_buffer,
6634 set_buffer_internal_1, Fbury_buffer, Fkill_all_local_variables,
6635 swap_out_buffer_local_variables, overlays_at, overlays_in,
6636 overlay_touches_p, overlay_strings, recenter_overlay_lists,
6637 fix_overlays_in_range, fix_overlays_before, Foverlay_get,
6638 Foverlay_put, report_overlay_modification, evaporate_overlays):
6639 Use XCAR, XCDR, and XFLOAT_DATA instead of explicit member
6640 references.
6641 * data.c (Fcar, Fcar_safe, Fcdr, Fcdr_safe, Fsetcar, Fsetcdr,
6642 swap_in_symval_forwarding, set_internal, default_value,
6643 Fset_default, Fmake_variable_buffer_local, Fmake_local_variable,
6644 Fmake_variable_frame_local, Flocal_variable_p,
6645 Flocal_variable_if_set_p, arithcompare, Fzerop, cons_to_long,
6646 Fnumber_to_string, float_arith_driver, Fadd1, Fsub1): Likewise.
6647 * dispnew.c (Fframe_or_buffer_changed_p): Likewise.
6648 * emacs.c (main): Likewise.
6649 * fontset.c (fs_load_font, fs_register_fontset,
6650 CACHED_FONTSET_NAME, CACHED_FONTSET_REGEX, Fquery_fontset,
6651 Fnew_fontset, Fset_fontset_font): Likewise.
6652 * frame.c (do_switch_frame, next_frame, prev_frame,
6653 other_visible_frames, Fdelete_frame, Fvisible_frame_list):
6654 Likewise.
6655 * keyboard.c (read_char, help_char_p, event_to_kboard,
6656 kbd_buffer_get_event, timer_start_idle, timer_check,
6657 make_lispy_event, apply_modifiers, reorder_modifiers,
6658 Fevent_convert_list, lucid_event_type_list_p, menu_bar_items,
6659 menu_bar_one_keymap, menu_item_eval_property_1, parse_menu_item,
6660 tool_bar_items, read_char_x_menu_prompt, read_key_sequence,
6661 Fcommand_execute, Fexecute_extended_command): Likewise.
6662 * minibuf.c (read_minibuf, get_minibuffer, Ftry_completion,
6663 Fall_completions): Likewise.
6664 * window.c (Fset_window_margins): Likewise.
6665
6666 * callint.c (quotify_args): Don't explicitly use struct
6667 Lisp_Cons, use Lisp_Object and XCAR/XCDR instead.
6668
3a7093d8
KR
6669 * s/netbsd.h (HAVE_GETLOADAVG): Define as 1.
6670 (UNEXEC, START_FILES, LIB_STANDARD, LIB_GCC): Define ELF versions,
6671 if __ELF__ is defined.
6672
2a3d7146
GM
66731999-10-24 Gerd Moellmann <gerd@gnu.org>
6674
6675 * window.c (Fnext_window): Add a QUIT in the loop.
6676
8ac52782
GM
66771999-10-23 Gerd Moellmann <gerd@gnu.org>
6678
427ec082 6679 * Makefile.in (bootstrap, bootstrap-emacs, bootstrap-temacs):
8ac52782
GM
6680 New targets.
6681
05f0d15a
DL
66821999-10-22 Dave Love <fx@gnu.org>
6683
6684 * emacs.c (main): Enable profiling conditional on __linux also.
6685
882fb0e6
GM
66861999-10-20 Gerd Moellmann <gerd@gnu.org>
6687
6688 * xrdb.c (x_load_resources): Set default resources for resource
6689 classes instead of for the specific Emacs.
6690
b5f5bc31
GM
66911999-10-19 Gerd Moellmann <gerd@gnu.org>
6692
66f4dd69
GM
6693 * s/freebsd.h (HAVE_GETLOADAVG): Define as 1 because config.h
6694 defines it that way.
427ec082 6695
b5f5bc31
GM
6696 * xdisp.c (echo_area_display) [HAVE_X_WINDOWS]: Do nothing
6697 if selected_frame is equal to Vterminal_frame.
6698
68c45bf0 66991999-10-19 Paul Eggert <eggert@twinsun.com>
427ec082 6700
68c45bf0 6701 Add support for large files, 64-bit Solaris, system locale codings.
427ec082 6702
68c45bf0
PE
6703 * Makefile.in (emacs): Set the LC_ALL environment variable to "C"
6704 when dumping, so that the dumped Emacs doesn't have stray locale info.
6705 (dired.o): Depend on systime.h.
6706 (editfns.o): Depend on coding.h.
6707
6708 * alloc.c, buffer.c, callproc.c, ccl.c, charset.c, coding.c, data.c,
6709 dispnew.c, editfns.c, emacs.c, filelock.c, floatfns.c, hftctl.c,
6710 keyboard.c, process.c, sysdep.c, unexelf.c, unexhp9k800.c,
6711 unexsunos4.c, vmsfns.c, vmsgmalloc.c, w32faces.c, w32menu.c, w32term.c,
6712 w32xfns.c, xfaces.c, xfns.c, xmenu.c, xterm.c:
6713 Include <config.h> before any system include files.
6714
6715 * alloc.c, buffer.c, ccl.c, data.c, editfns.c, emacs.c, eval.c,
6716 fileio.c, filelock.c, frame.c, insdel.c, keymap.c, lread.c,
6717 m/alpha.h, print.c, search.c, sysdep.c, xdisp.c, xfaces.c, xfns.c,
6718 xmenu.c, xterm.c:
6719 Do not include <stdlib.h>, as <config.h> does this now.
6720
6721 * callproc.c (Fcall_process):
6722 Synchronize messages locale before invoking strerror.
6723 Decode resulting string with locale-coding-system.
6724
6725 * coding.c (Vlocale_coding_system): New var.
6726 (syms_of_coding): Adjust to above change.
6727 (emacs_strerror): New function.
6728
6729 * coding.h (emacs_strerror, Vlocale_coding_system): New decls.
427ec082 6730
68c45bf0
PE
6731 * config.in (HAVE_STDIO_EXT_H, HAVE_TM_GMTOFF, HAVE___FPENDING,
6732 HAVE_FTELLO, HAVE_GETLOADAVG, HAVE_MBLEN, HAVE_MBRLEN,
6733 HAVE_STRSIGNAL): New macros.
6734 (BITS_PER_LONG): Default to 64 if _LP64 is defined.
6735 <stdlib.h>: Include if HAVE_STDLIB_H is defined and NOT_C_CODE isn't.
6736
6737 * dired.c: Include "systime.h".
6738 (Ffile_attributes): Do not cast s.st_size to int; this loses
6739 information if int is 32 bits but st_size and EMACS_INT are larger.
6740 Treat large device numbers like large inode numbers.
6741
6742 * dispnew.c (PENDING_OUTPUT_COUNT): Use __fpending if available.
6743
6744 * editfns.c: Include coding.h.
6745 (emacs_strftime): Remove decl.
6746 (emacs_strftimeu): New decl.
6747 (emacs_memftimeu): Renamed from emacs_memftime; new arg UT.
6748 Use emacs_strftimeu instead of emacs_strftime.
6749 (Fformat_time_string): Convert format string using
6750 Vlocale_coding_system, and convert result back. Synchronize time
6751 locale before invoking lower level function. Invoke
6752 emacs_memftimeu, passing ut, instead of emacs_memftime.
427ec082 6753
68c45bf0
PE
6754 * emacs.c: Include <locale.h> if HAVE_SETLOCALE is defined.
6755 (Vmessages_locale, Vprevious_messages_locale, Vtime_locale,
6756 Vprevious_time_locale): New variables.
6757 (main): Invoke setlocale early, so that initial error messages are
6758 localized properly. But skip locale-setting if LC_ALL is "C".
6759 Fix up locale when it's safe to do so.
6760 (fixup_locale): Moved here from xterm.c.
6761 (synchronize_locale, synchronize_time_locale,
6762 synchronize_messages_locale): New functions.
6763 (syms_of_emacs): Accommodate above changes.
6764
6765 * fileio.c (report_file_error): Convert strerror output according
6766 to Vlocale_coding_system.
6767 (Finsert_file_contents): Check for arithmetic overflow in
6768 computations that depend on file size. Report IO errors
6769 with emacs_strerror, not strerror.
6770
6771 * fns.c (Fgethash): Declare dflt parameter.
6772
6773 * gmalloc.c: Do not define const to nothing if HAVE_CONFIG_H
6774 is defined; that's config.h's job.
6775
6776 * lisp.h (EMACS_INT, BITS_PER_EMACS_INT, EMACS_UINT): If _LP64,
6777 default these values to long, BITS_PER_LONG, and unsigned long.
6778 (VALBITS, MARKBIT, XINT): Do not assume 32-bit EMACS_INT.
6779 (PNTR_COMPARISON_TYPE): Default to EMACS_UINT, not to unsigned int.
6780 (code_convert_string_norecord, fixup_locale,
6781 synchronize_messages_locale, synchronize_time_locale,
6782 emacs_open, emacs_close, emacs_read, emacs_write): New decls.
6783 All Emacs callers of open, close, read, write changed to use
6784 emacs_open, emacs_close, emacs_read, emacs_write.
6785
6786 * lread.c (file_offset, file_tell): New macros. All uses of ftell
6787 changed to file_tell.
6788 (saved_doc_string_position, prev_saved_doc_string_position): Now
6789 of type file_offset.
6790 (init_lread): Do not fix locale here; fixup_locale now does this.
6791
6792 * m/amdahl.h, s/usg5-4.h:
6793 (NSIG): Remove.
6794 (NSIG_MINIMUM): New macro.
6795
6796 * m/cydra5.h, m/dpx2.h, m/mips.h, m/pfa50.h, m/sps7.h, m/stride.h,
6797 m/ustation.h, s/gnu-linux.h, s/hpux.h, s/iris3-5.h, s/iris3-6.h,
6798 s/umips.h, s/usg5-4.h:
6799 (SIGIO): Do not undef.
6800 (BROKEN_SIGIO): New macro.
6801
6802 * m/ustation.h:
6803 (SIGTSTP): Do not undef.
6804 (BROKEN_SIGTSTP): New macro.
6805
6806 * s/gnu-linux.h:
6807 (SIGPOLL, SIGURG): Do not undef.
6808 (BROKEN_SIGPOLL, BROKEN_SIGURG): New macros.
6809
6810 * s/ptx4.h:
6811 (SIGINFO): Do not undef.
6812 (BROKEN_SIGINFO): New macros.
427ec082 6813
68c45bf0
PE
6814 * m/delta.h, s/ptx.h, s/template.h: Doc fix.
6815
6816 * mktime.c, strftime.c: Update to glibc 2.1.2 version, with
6817 some Emacs-related changes merged.
6818
6819 * print.c (float_to_string): Prepend "-" to representation of a
6820 NaN if the NaN is negative.
6821
6822 * process.c (sys_siglist): Omit if HAVE_STRSIGNAL.
6823 (wait_reading_process_input): Use emacs_strerror, not strerror.
427ec082 6824
68c45bf0
PE
6825 * process.c (status_message, sigchld_handler): Synchronize locale,
6826 then use strsignal istead of sys_siglist.
6827 * w32proc.c (sys_wait): Likewise.
427ec082 6828
68c45bf0
PE
6829 * s/aix3-1.h, s/bsd4-1.h, s/dgux.h, s/gnu-linux.h, s/hiuxmpp.h,
6830 s/hpux.h, s/iris3-5.h, s/iris3-6.h, s/irix3-3.h, s/osf1.h, s/rtu.h,
6831 s/sunos4-1.h, s/unipl5-0.h, s/unipl5-2.h, s/usg5-0.h, s/usg5-2-2.h,
6832 s/usg5-2.h, s/usg5-3.h, s/xenix.h:
6833 (open, close, read, write, INTERRUPTIBLE_OPEN,
6834 INTERRUPTIBLE_CLOSE, INTERRUPTIBLE_IO): Remove.
6835
6836 * s/sol2-5.h (_LARGEFILE_SOURCE, _FILE_OFFSET_BITS): New macros.
6837
6838 * sysdep.c (sys_read, sys_write, read, write, sys_close, close,
6839 sys_open, open): Remove.
6840 (emacs_open, emacs_close, emacs_read, emacs_write): Always define;
6841 the old INTERRUPTIBLE_OPEN, INTERRUPTIBLE_CLOSE, and INTERRUPTIBLE_IO
6842 macros are no longer used.
6843 (emacs_open): Renamed from sys_open. Merge BSD4_1 version.
6844 (emacs_close): Renamed from sys_close.
6845 (emacs_read): Renamed from sys_read.
6846 (emacs_write): Renamed from sys_write.
6847 (sys_siglist): Do not declare if HAVE_STRSIGNAL.
6848 (dup2): Do not print error on failure; the real dup2 doesn't.
6849 (strsignal): New function, defined if !HAVE_STRSIGNAL.
6850
6851 * syssignal.h (SIGINFO): Undef if defined and if BROKEN_SIGINFO
6852 is defined.
6853 (SIGIO, SIGPOLL, SIGTSTP, SIGURG): Likewise.
6854 (NSIG): If less than NSIG_MINIMUM, define to NSIG_MINIMUM.
6855 (strsignal): Declare if !HAVE_STRSIGNAL.
6856
6857 * unexelf.c (ElfBitsW, ELFSIZE, ElfExpandBitsW): New macros.
6858 (ElfW): Define in terms of ElfExpandBitsW.
6859
6860 * w32proc.c (sys_siglist): Remove decl.
6861
6862 * xdisp.c (decode_mode_spec): 3rd arg is int, not char, to comply
6863 with ANSI C.
6864 (display_string): Declare face_string_pos arg.
6865
6866 * xfns.c (Fx_show_tip): Declare timeout param.
6867
6868 * xterm.c: No need to include locale.h.
6869 (x_alloc_lighter_color, x_setup_relief_color):
6870 Pass arg as double, not float, for compatibility with ANSI C.
6871 (fixup_locale): Move to emacs.c.
6872 (x_term_init): Do not setlocale or fixup locale; the main program
6873 does this now.
6874
2f0b74ea
DL
68751999-10-18 Dave Love <fx@gnu.org>
6876
6877 * doc.c (Fdocumentation_property): Gcpro `tem'.
6878
471aa4a0
KH
68791999-10-18 Kenichi Handa <handa@etl.go.jp>
6880
6881 * lread.c (Fload): Calculate bytes of filename correctly.
6882 (openp): Likewise.
6883
aca2020b
KH
68841999-10-18 Keisuke Nishida <kxn30@po.cwru.edu>
6885
6886 * print.c (print_preprocess): In case print-circle is nil,
6887 add OBJ to Vprint_number_table only when OBJ is a symbol.
6888
1f5fe392 68891999-10-18 Kenichi Handa <handa@etl.go.jp>
b843d1ae
KH
6890
6891 * coding.c (code_convert_string): Add record_unwind_protect to
6892 assure setting inhibit_pre_post_conversion back to zero. Take
6893 care of the multibyteness of the working buffer.
6894
6895 * coding.c (inhibit_pre_post_conversion): New variable.
6896 (setup_coding_system): If inhibit_pre_post_conversion is nonzero,
6897 ignore post-read-conversion and pre-write-conversion property of
6898 the coding system.
6899 (code_convert_region_unwind): New function.
6900 (code_convert_region): Set inhibit_pre_post_conversion to 1 while
6901 running pre-write-conversion and post-read-conversion.
6902 (code_convert_string): Likewise.
6903
cd876a91
GM
69041999-10-17 Miles Bader <miles@gnu.org>
6905
6906 * editfns.c: Doc fix.
6907
69081999-10-17 Miles Bader <miles@gnu.org>
6909
6910 * editfns.c (Fconstrain_to_field): Make sure we don't violate the
6911 argument preconditions of find_before_next_newline in the case
6912 where both ONLY_IN_LINE and ESCAPE_FROM_EDGE are set and OLD_POS
6913 was indeed at the edge.
6914
69151999-10-17 Miles Bader <miles@gnu.org>
6916
6917 * minibuf.c (Fminibuffer_complete_and_exit): Supply value for new
6918 ESCAPE_FROM_EDGE parameter to Ffield_beginning.
6919
6920 * editfns.c (text_property_eq, text_property_stickiness): Don't
6921 use initializers for auto variables of type Lisp_Object.
6922 (find_field): Likewise. Use braces around nested ifs.
6923 (Fline_end_position): Store the raw eol in a variable, so that the
6924 final expression doesn't look so ugly.
6925 (Fconstrain_to_field): Doc fix.
6926 (preceding_pos): Renamed from `preceeding_pos'.
6927 (text_property_stickiness, find_field): Call preceding_pos,
6928 not preceeding_pos.
6929
69301999-10-17 Miles Bader <miles@gnu.org>
6931
6932 * editfns.c (Ffield_string_no_properties): New function.
6933 (text_property_stickiness, preceeding_pos): New functions.
6934 (Ffield_string): Remove PROPS parameter.
6935 (find_field): Add MERGE_AT_BOUNDARY parameter.
6936 Rewrite to use stickiness of `field' property to resolve
6937 ambiguous cases.
6938 (Ffield_beginning, Ffield_end): Add ESCAPE_FROM_EDGE parameter.
6939 (Fconstrain_to_field): Likewise.
6940 (syms_of_editfns): Init Sfield_string_no_properties.
427ec082 6941 (Ffield_string, Ferase_field, Ffield_end):
cd876a91
GM
6942 Supply new MERGE_AT_BOUNDARY argument to find_field.
6943 (Fline_beginning_position, Fline_end_position): Supply new
6944 ESCAPE_FROM_EDGE parameter to Fconstrain_to_field.
6945 Pass a value of Qt for the ONLY_IN_LINE argument to
6946 Fconstrain_to_field (only matters if N != 1).
6947 * syntax.c (Fforward_word): Supply new ESCAPE_FROM_EDGE parameter
6948 to Fconstrain_to_field.
6949
6950 * minibuf.c (Fminibuffer_complete_word): Use
6951 Ffield_beginning to find the prompt end.
6952
69531999-10-17 Miles Bader <miles@gnu.org>
6954
6955 * editfns.c (Fconstrain_to_field): Add get/set-current-point
6956 behavior when NEW_POS is nil.
6957 (find_field): Use XSETFASTINT instead of make_number.
6958 * minibuf.c (Fminibuffer_complete_and_exit): Test for an empty
6959 input string by seeing where the field begins, instead of
6960 looking at text-properties.
6961
69621999-10-17 Miles Bader <miles@gnu.org>
6963
6964 * editfns.c (Qfield): New variable.
6965 (find_field, Ferase_field, Ffield_string,
6966 Ffield_beginning, Ffield_end, Fconstrain_to_field): New functions.
6967 (Fline_beginning_position, Fline_end_position): Constrain to any field.
6968 (make_buffer_string_both): Remove minibuffer-prompt hack.
6969 (syms_of_editfns): Initialize Qfield, and subr entries for
6970 field functions above.
6971 * minibuf.c (read_minibuf): Don't save minibuffer prompt length on
6972 minibuf_save_list.
6973 Don't initialize minibuffer prompt length.
6974 Wrap prompt text-properties around the entire prompt.
6975 Add 'prompt text-property to prompt.
6976 Get final value with Ffield_string instead of make_buffer_string.
6977 (read_minibuf_unwind): Don't restore minibuffer prompt length from
6978 minibuf_save_list.
6979 (do_completion): Get minibuffer input with Ffield_string
6980 instead of Fbuffer_string.
6981 Erase minibuffer input with Ferase_field instead of erase_buffer.
6982 (Fminibuffer_complete_and_exit): Likewise.
6983 Test whether buffer is empty by looking for the 'prompt text
6984 property at the end.
6985 Set prompt length by looking for the end of the prompt text property,
6986 and save prompt length for later use (since there is no longer a
6987 buffer variable to get it from).
6988 (Fminibuffer_prompt_width, Fminibuffer_prompt_end): Functions removed.
6989 (syms_of_minibuf): Remove initializations of
6990 Sminibuffer_prompt_width and Sminibuffer_prompt_end.
6991 * buffer.h (struct buffer): Remove prompt_end_charpos field.
427ec082 6992 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer, Fkill_buffer):
cd876a91
GM
6993 Don't initialize prompt_end_charpos field.
6994 * syntax.c (Fforward_word): Likewise.
6995 Constrain to any field.
6996
3f6f7508
GM
69971999-10-16 Gerd Moellmann <gerd@gnu.org>
6998
6999 * window.c (enum save_restore_action): New.
7000 (save_restore_orig_size): Change parameter list. Add
7001 functionality to check for valid orig_top and orig_height members
7002 in a window tree.
7003 (grow_mini_window): Call save_restore_orig_size with new parameter
7004 list.
7005 (shrink_mini_window): Restore old window sizes only if old
7006 size information is valid in all windows in a window tree.
427ec082 7007
06482119
GM
70081999-10-15 Gerd Moellmann <gerd@gnu.org>
7009
2710454d
GM
7010 * xmenu.c (set_frame_menubar): Don't call
7011 x_set_menu_resources_from_menu_face here.
7012 (update_frame_menubar): Call x_set_menu_resources_from_menu_face.
7013
06482119
GM
7014 * xfns.c (gif_load): Fix handling of interlaced GIFs.
7015
17fa2837
DL
70161999-10-14 Dave Love <fx@gnu.org>
7017
7018 * xdisp.c (handle_fontified_prop): GCPRO `pos'.
7019
45f93416
GM
70201999-10-14 Gerd Moellmann <gerd@gnu.org>
7021
7022 * process.c (Fopen_network_stream): Don't loop if gethostbyname
7023 fails and h_errno is TRY_AGAIN.
7024
c765b723
DL
70251999-10-13 Dave Love <fx@gnu.org>
7026
7027 * filelock.c (lock_file): Move gcpro of `fn'.
7028
dace7f4e
GM
70291999-10-10 Gerd Moellmann <gerd@gnu.org>
7030
7031 * keyboard.c (auto-save-interval): Fix documentation.
427ec082 7032
83c8f461 70331999-10-09 Richard M. Stallman <rms@gnu.org>
73fb36f1
RS
7034
7035 * print.c (print): When removing objects from Vprint_number_table,
7036 only scan the newly added objects.
7037 (print_preprocess): If OBJ is a gensym, and print-continuous-numbering,
7038 unconditionally force it to stay in the table.
7039
85177c86
GM
70401999-10-09 Gerd Moellmann <gerd@gnu.org>
7041
7042 * xfns.c (prepare_image_for_display): Don't try to load image if
7043 loading it failed before.
7044 (lookup_image, prepare_image_for_display): Remember if loading the
7045 image failed.
7046 (xpm_load): Add missing UNBLOCK_INPUT.
7047
7048 * dispextern.h (struct image): New member load_failed_p.
7049
11e4de5d
SM
70501999-10-08 Stefan Monnier <monnier@cs.yale.edu>
7051
f28eba7b 7052 * fileio.c (Fmake_temp_name): Add a reference to `make-temp-file'
11e4de5d
SM
7053 in the docstring.
7054
f1da8f06
GM
70551999-10-08 Gerd Moellmann <gerd@gnu.org>
7056
7057 * xterm.c (XTread_socket) <ClientMessage, WM_TAKE_FOCUS>:
7058 Don't call XSetInputFocus because that can generate additional
7059 FocusIn events.
427ec082 7060
c37bbd4f
GM
70611999-10-07 Jeffrey C Honig <jch@bsdi.com>
7062
7063 * bsdos4.h [HAVE_LIBNCURSES]: Define TERMINFO and LIBS_TERMCAP.
7064
83c8f461 70651999-10-07 Richard M. Stallman <rms@gnu.org>
78cc5c64
GM
7066
7067 * process.c (wait_reading_process_input): When trying to suck
7068 input from one process, for accept-process-output,
7069 exit that loop if we get EAGAIN or EWOULDBLOCK.
7070
577d9e2f
GM
70711999-10-07 Gerd Moellmann <gerd@gnu.org>
7072
7073 * xfaces.c (Qbitmap_spec_p): Replaces Qpixmap_spec_p.
7074 (Fbitmap_spec_p): Replaces Fpixmap_spec_p.
7075 (load_pixmap): Use Fbitmap_spec_p and Qbitmap_spec_p instead of
7076 Fpixmap_spec_p and Qpixmap_spec_p.
7077 (load_face_colors, check_lface_attrs,
7078 merge_face_vector_with_property,
7079 Finternal_set_lisp_face_attribute): Use Fbitmap_spec_p.
7080 (syms_of_xfaces): Initialize Qbitmap_spec_p, defsubr
7081 Fbitmap_spec_p.
7082
f5737ad2
GM
70831999-10-07 Gerd Moellmann <gerd@gnu.org>
7084
7085 * xdisp.c (display_menu_bar): Use MENU_FACE_ID instead of
7086 MODE_LINE_FACE_ID.
7087
7088 * xfaces.c (toplevel) [USE_MOTIF]: Include some Motif headers.
7089 (struct x_resources) [USE_X_TOOLKIT]: New.
7090 (xm_apply_resources, xm_set_menu_resources_from_menu_face)
7091 [USE_MOTIF]: New.
7092 (xl_apply_resources, xl_set_menu_resources_from_menu_face)
7093 [USE_LUCID]: New.
7094 (x_set_menu_resources_from_menu_face) [USE_X_TOOLKIT]: New.
7095 (Qmenu): New.
7096 (syms_of_xfaces): Initialize Qmenu.
7097 (realize_basic_faces): Realize face `menu'.
7098 (resolve_face_name): New.
7099 (lface_from_face_name): Use it.
7100 (Finternal_set_lisp_face_attribute): Ditto.
7101 (Fpixmap_spec_p): Rewritten. Extend doc string.
7102
7103 * xmenu.c (set_frame_menubar, xmenu_show): Call
7104 x_set_menu_resources_from_menu_face.
7105
7106 * dispextern.h (enum face_id): Add MENU_FACE_ID.
7107 (toplevel): Include X11/Intrinsic.h.
7108
6a1aa823
DL
71091999-10-03 Ken'ichi Handa <handa@gnu.org>
7110
7111 * coding.c (DECODE_CHARACTER_ASCII): Decode ASCII invocated to GR
7112 correctly.
7113
26901792
DL
71141999-09-30 Kenichi Handa <handa@etl.go.jp>
7115
7116 * category.c (modify_lower_category_set): Set default value of
7117 TABLE correctly.
7118
7119 * minibuf.c (Fminibuffer_complete_word): Calculate string byte
7120 size correctly.
7121
71221999-09-29 Gerd Moellmann <gerd@gnu.org>
7123
7124 * editfns.c (Fpropertize): Renamed from Fproperties.
7125
71261999-09-29 Gerd Moellmann <gerd@gnu.org>
7127
7128 * xdisp.c (resize_mini_window): Do nothing if frame is an X
7129 frame that hasn't been initialized yet.
7130
83c8f461 71311999-09-28 Richard M. Stallman <rms@gnu.org>
a04f1a93
PR
7132
7133 * keymap.c (Fsingle_key_description): Make tem big enough.
7134 (describe_buffer_bindings): Make buf big enough.
7135
83c8f461 71361999-09-27 Richard M. Stallman <rms@gnu.org>
d177c583
PR
7137
7138 * intervals.c (get_local_map): Use indirect_function,
7139 not Findirect_function.
7140
26901792
DL
71411999-09-27 Dave Love <fx@gnu.org>
7142
7143 * cm.h: Remove unneeded declaration of ospeed.
7144
71451999-09-26 Gerd Moellmann <gerd@gnu.org>
7146
7147 * lisp.h (toplevel): Add prototype for
7148 next_single_char_property_change.
7149
7150 * textprop.c (next_single_char_property_change): New.
7151
7152 * xdisp.c (display_prop_end, invisible_text_between_p): Use
7153 next_single_char_property_change.
7154
71551999-09-25 Gerd Moellmann <gerd@gnu.org>
7156
7157 * editfns.c (Fproperties): New.
7158 (syms_of_editfns): Defsubr it.
7159
7160 * xfns.c (lookup_image): Set image's timestamp because it's
7161 used when we look it up.
7162
71631999-09-23 Gerd Moellmann <gerd@gnu.org>
7164
7165 * window.c (enlarge_window): Add window parameter instead of using
7166 selected_window.
7167 (Fdisplay_buffer): Call it with window parameter instead of
7168 setting selected_window.
7169 (Fenlarge_window, Fshrink_window): Ditto.
7170 (shrink_mini_window): If there is no recorded height and position
7171 info, resize mini-window to height 1.
7172
7173 * xfns.c (image_error): Use add_to_log.
7174
7175 * xfaces.c (load_pixmap): Call add_to_log without frame parameter.
7176 (load_face_font_or_fontset, load_color,
7177 merge_face_vector_with_property): Ditto.
7178
7179 * dispextern.h: Add prototype for add_to_log.
7180
7181 * xfaces.c (add_to_log): Move to xdisp.c.
7182
7183 * xdisp.c (add_to_log): Moved from xfaces.c. Remove frame
7184 parameter.
7185
71861999-09-23 Gerd Moellmann <gerd@gnu.org>
7187
7188 * xterm.c (XTread_socket) <MotionNotify>: Change #ifdef
7189 USE_X_TOOLKIT to #ifdef USE_TOOLKIT_SCROLL_BARS.
7190
7191 * xdisp.c (resize_mini_window): Use grow_mini_window and
7192 shrink_mini_window.
7193
7194 * window.c (window_min_size): Add parameter ignore_fixed_p.
7195 (change_window_height): Call window_min_size with new parameter.
7196 (shrink_window_lowest_first, save_restore_orig_size,
7197 grow_mini_window, shrink_mini_window): New.
7198 (make_window, replace_window): Initialize orig_top and
7199 orig_height.
7200 (enlarge_window): Renamed from change_window_height. Make it
7201 static.
7202 (Fdisplay_buffer, Fenlage_window, Fshrink_window): Call
7203 enlarge_window instead of change_window_height.
7204
7205 * window.h (struct window): New members orig_top, orig_height.
7206 (toplevel): Add prototypes for grow_mini_window and
7207 shrink_mini_window. Remove prototype for change_window_height.
7208
72091999-09-21 Eli Zaretskii <eliz@gnu.org>
7210
7211 * frame.c (frame_name_fnn_p): Fix previous change.
7212
72131999-09-20 Gerd Moellmann <gerd@gnu.org>
7214
7215 * minibuf.c (toplevel): Move include of stdio.h to other includes.
7216
7217 * dispnew.c (direct_output_for_insert): Cast arguments to
7218 safe_bcopy to char *.
7219
7220 * lread.c (readchar): Remove unused variables.
7221 (read_filtered_event, read1, Fmapatoms): Ditto.
7222 (toplevel): Include intervals.h.
7223
7224 * eval.c (Fsignal): Remove unused variables.
7225 (Fcommandp, do_autoload): Ditto.
7226
7227 * lisp.h: Add prototype for safe_bcopy, fatal.
7228
7229 * editfns.c (init_editfns): Remove unused variables.
7230 (Fgoto_char, Fchar_after, Fformat): Ditto.
7231 (message_text, message_length): Put in #ifndef HAVE_MENUS.
7232
7233 * data.c (find_symbol_value): Remove unused variables.
7234 (Faref, Fstring_to_number): Ditto.
7235 (toplevel): Include stdio.h.
7236 (Fnumber_to_string): Cast XINT to long for %ld.
7237
7238 * casefiddle.c (casify_object): Remove unused variables.
7239 (casify_region): Ditto.
7240
427ec082 7241 * filelock.c (get_boot_time): Put local variable used in
26901792
DL
7242 conditinally compiled section in #ifdef.
7243 (toplevel): Include stdio.h.
7244
7245 * keymap.c (Flookup_key, Faccessible_keymaps, describe_vector,
7246 keys_of_keymap, syms_of_keymap): Remove unused variables.
7247
72481999-09-20 Gerd Moellmann <gerd@gnu.org>
7249
7250 * xdisp.c (sync_frame_with_window_matrix_rows): Disable frame rows
7251 whose corresponding window rows have been disabled in
7252 try_window_id.
7253
72541999-09-20 Gerd Moellmann <gerd@gnu.org>
7255
7256 * xdisp.c (compute_window_start_on_continuation_line): Handle case
7257 that window start is out of range.
7258 (handle_display_prop, handle_single_display_prop): Replace
7259 marginal area specifications like `left-margin' with `(margin
7260 left-margin)'.
7261 (Qmargin): New.
7262 (syms_of_xdisp): Initialize Qmargin.
7263
72641999-09-19 Gerd Moellmann <gerd@gnu.org>
7265
7266 * syntax.c (update_syntax_table, find_defun_start, back_comment,
7267 describe_syntax, skip_chars): Remove unused variables.
7268 (back_comment, forw_comment): Add braces to if-statement with
7269 if-else as dependent statement.
7270
7271 * process.c (list_processes_1): Remove unused variables.
7272 (Fopen_network_stream, create_process): Add parentheses to
7273 conditional expressions.
7274 (create_process): Put declaration of sigchld in #if 0.
7275 (Fopen_network_stream): Removed unused variables.
7276 (Fopen_network_stream, wait_reading_process_input,
7277 wait_reading_process_input, send_process, send_process): Ditto.
7278 (toplevel): Add prototypes for set_waiting_for_input and
7279 keyboard_bit_set.
7280
7281 * abbrev.c (Fexpand_abbrev): Remove unused variables.
7282
7283 * textprop.c (Fset_text_properties): Remove unused variables.
7284 (text_property_list, verify_interval_modification,
7285 interval_has_all_properties): Ditto.
7286
7287 * callproc.c (toplevel) [HAVE_UNISTD_H]: Include unistd.h.
7288 (Fcall_process): Remove unused variable.
7289
7290 * keyboard.c (Frecursive_edit): Remove unused variable.
7291 (command_loop_1, safe_run_hooks, kbd_buffer_get_event,
7292 timer_check, make_lispy_event, menu_bar_items,
7293 menu_bar_one_keymap, menu_bar_item, parse_menu_item,
7294 parse_tool_bar_item, read_char_x_menu_prompt, read_key_sequence,
7295 kbd_buffer_get_event, make_lispy_event, read_char_x_menu_prompt,
7296 read_key_sequence): Ditto. Fread_key_sequence,
7297 Fread_key_sequence_vector, Fsuspend_emacs): Ditto.
7298 (read_key_sequence) [GOBBLE_FIRST_EVENT]: Put local variables only
7299 used when GOBBLE_FIRST_EVENT is defined in #ifdef
7300 (Fexecute_extended_command): Cast XINT to long for %ld.
7301 (toplevel) [HAVE_UNISTD_H]: Include unistd.h.
7302 (toplevel): Include sys/types.h.
7303
7304 * lisp.h (RETURN_UNGCPRO): Use do-while (0) idiom.
7305 (toplevel): Add prototypes for stuff_char, and
7306 code_convert_string_norecord.
7307
73081999-09-19 Gerd Moellmann <gerd@gnu.org>
7309
7310 * buffer.h: Add prototype for r_re_alloc.
7311
7312 * insdel.c (copy_text): Removed unused variables.
7313 (count_combining_after, count_combining_after, insert_1_both,
7314 insert_from_string_1, insert_from_buffer_1, check_markers): Ditto.
7315 (adjust_after_replace, replace_range): Add parentheses to logical
7316 expressions. Remove unused variables.
7317 (CHECK_BYTE_COMBINING_FOR_INSERT): Add parentheses to logical
7318 expression.
7319
7320 * alloc.c (Fgarbage_collect): Remove unused variable.
7321 (compact_strings): Add parentheses around assignments in
7322 conditional context.
7323 (toplevel): Put declaration of unused function clear_marks
7324 in #if 0 like its definition.
7325
7326 * lisp.h: Add prototype for shrink_regexp_cache,
7327 sweep_weak_hash_tables.
7328
73291999-09-19 Dave Love <fx@gnu.org>
7330
7331 * process.c (Fopen_network_stream): Use strerror, not gai_strerror.
7332
7333 * doc.c (read_bytecode_char): Declare arg.
7334
7335 * lisp.h: Declare Fcurrent_message, Fmake_temp_name,
7336 read_bytecode_char, Fx_hide_busy_cursor, getloadavg.
7337
73381999-09-18 Richard Stallman <rms@gnu.org>
7339
7340 * xdisp.c (echo_area_display): Turn off code that returned
7341 without doing anything when using a terminal frame.
7342
83c8f461 73431999-09-17 Richard M. Stallman <rms@gnu.org>
27271329
PR
7344
7345 * unexelf.c (unexec): Don't get confused by a short section
7346 just before the bss section.
7347
26901792
DL
73481999-09-16 Gerd Moellmann <gerd@gnu.org>
7349
7350 * emacs.c (main): Remove unused variables.
7351 (sort_args, Fkill_emacs, Fkill_emacs): Ditto.
7352
7353 * lisp.h: Add prototype for uninterrupt_malloc, memory_warnings,
7354 init_fileio_once, syms_of_sound, init_xfns, init_fns
7355 init_sound, check_message_stack.
7356
7357 * emacs.c (toplevel) [HAVE_UNISTD_H]: Include unistd.h.
7358
7359 * intervals.c (rotate_right, rotate_left): Add braces to avoid
7360 ambiguous else warning.
7361 (split_interval_left): Remove unused variables.
7362 (previous_interval, adjust_intervals_for_deletion,
7363 set_point_both, set_point_both, set_intervals_multibyte_1): Ditto.
7364 (icount, idepth, zero_length): Move into #if 0 section below
7365 original position where these are used.
7366
7367 * buffer.h [REL_ALLOC]: Add prototypes for r_alloc and r_alloc_free.
7368
7369 * buffer.c (Fkill_buffer): Remove unused variables.
7370 (Fkill_buffer, overlays_at, overlays_in, recenter_overlay_lists,
7371 fix_overlays_in_range, Fmove_overlay, Fprevious_overlay_change,
7372 init_buffer_once, (syms_of_buffer): Ditto.
7373
7374 * xrdb.c (get_fallback): Remove unused variable.
7375 (x_load_resources): Ditto. Put local variable used for Motif only
7376 in #ifdef USE_MOTIF.
7377
73781999-09-16 Gerd Moellmann <gerd@gnu.org>
7379
7380 * minibuf.c (read_minibuf): Remove unused variables.
7381 (read_minibuf, Fread_buffer, scmp, Fcompleting_read): Ditto.
7382 (do_completion): Move assignment out of conditional context.
7383 (Fdisplay_completion_list): Add parentheses to conditional expression.
7384
7385 * cm.c (toplevel) [HAVE_TERMCAP_H]: Include termcap.h.
7386
7387 * lisp.h: Add prototype for no_switch_window.
7388
7389 * window.c (Fset_window_buffer): Remove unused variables.
7390 (Fset_window_margins): Ditto.
7391
7392 * xdisp.c (resize_mini_window): Temporarily set the selected
7393 window's or Vminibuf_scroll_window's height to "fixed" around
7394 the call the change_window_height.
7395
7396 * window.c (window_fixed_size_p): Check window's height_fixed_p
7397 flag.
7398
7399 * window.h (struct window): New member height_fixed_p.
7400
7401 * dispnew.c (direct_output_forward_char): Don't use this method
7402 if showing a message or a message was just cleared because we
7403 might need to resize the mini-window.
7404
74051999-09-16 Gerd Moellmann <gerd@gnu.org>
7406
7407 * frame.c (Fdelete_frame): Correct local variable pointing to
7408 selected frame after selecting new frame.
7409
74101999-09-15 Richard Stallman <rms@gnu.org>
7411
7412 * puresize.h (BASE_PURESIZE): Increase to 525000.
7413
7414 * filelock.c (Vtemporary_file_directory): New variable.
7415 (syms_of_filelock): Set up Lisp variable.
7416
74171999-09-15 Gerd Moellmann <gerd@gnu.org>
7418
7419 * term.c (OUTPUT_IF, OUTPUT1_IF): Use do-while.
7420 (encode_terminal_code): Remove unused variables.
7421 (turn_off_face): Ditto.
7422 (toplevel): Include termcap.h if HAVE_TERMCAP_H.
7423
7424 * dispnew.c (update_frame_line): If writing whole desired line,
7425 don't clear to end of line if already at the end.
7426
74271999-09-15 Gerd Moellmann <gerd@gnu.org>
7428
7429 * xdisp.c (resize_mini_window): Don't report changed window
7430 height if it actually hasn't changed.
7431
427ec082 7432 * widget.c (set_frame_size, EmacsFrameSetCharSize): Remove
26901792
DL
7433 unused variables.
7434 (mark_shell_size_user_specified): Put in #if 0 because not used.
7435 (create_frame_gcs): Put in #if 0 because currently unused.
7436 (first_frame_p): Ditto.
7437
7438 * xmenu.c (single_menu_item, Fx_popup_menu, Fx_popup_menu,
7439 single_submenu, update_frame_menubar, set_frame_menubar,
7440 free_frame_menubar, xmenu_show, xdialog_show): Remove unused
7441 variables.
7442
7443 * print.c (PRINTFULLP): Removed because it is no longer used and
7444 is misleading.
7445 (Ferror_message_string): Remove unused variables.
7446 (print_object): Cast argument of sprintf to long for `%ld'
7447 specifier. Remove unused variable.
7448
74491999-09-14 Gerd Moellmann <gerd@gnu.org>
7450
7451 * sound.c (Fplay_sound): Remove usused variables.
7452 (be2hs): Put in #if 0 because it's currently not used.
7453
74541999-09-14 Ken Raeburn <raeburn@gnu.org>
7455
7456 * print.c (Ferror_message_string, print_error_message,
7457 print_object): Use XCAR, XCDR and XFLOAT_DATA instead of explicit
7458 member access.
7459
74601999-09-14 Gerd Moellmann <gerd@gnu.org>
7461
7462 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Put code in do-while.
7463
7464 * frame.c (Fnext_frame): Remove unused variable(s).
7465 (Fprevious_frame, Fmouse_pixel_position, frame_name_fnn_p): Ditto.
7466 (store_frame_param): Add parentheses to conditional expression.
7467 (Fmodify_frame_parameters): Remove unused variables.
7468 (Fmodify_frame_parameters, Fset_frame_size, Fset_frame_position):
7469 Ditto.
7470
7471 * xfns.c (x_set_background_color): Remove unused variable(s).
7472 (x_set_border_pixel): Ditto.
7473 (x_set_menu_bar_lines): Put local variable used only for
7474 non-toolkit case in #ifdef/#endif.
7475 (x_figure_window_size): Remove unused variable(s).
427ec082 7476 (x_figure_window_size, x_window, lookup_image,
26901792
DL
7477 xbm_read_bitmap_file_data, x_build_heuristic_mask, pbm_load,
7478 png_load, jpeg_load, gif_load, x_create_tip_frame,
7479 x_create_tip_frame, Fx_show_tip, x_set_border_pixel): Ditto.
7480
7481 * xterm.c (x_scroll_bar_handle_click): Compile only if
7482 not USE_TOOLKIT_SCROLL_BARS.
7483 (x_scroll_bar_set_handle, x_scroll_bar_note_movement): Ditto.
7484
7485 * dispextern.h: Add prototypes for gamma_correct and
7486 x_kill_gs_process.
7487
7488 * xterm.c (x_produce_glyphs): Remove unused variable(s).
7489 (x_alloc_nearest_color_for_widget, note_tool_bar_highlight,
7490 x_set_toolkit_scroll_bar_thumb): Ditto.
7491 (x_scroll_bar_create): Move local variable to the
7492 conditionally compiled section of code where it is used.
7493 (x_scroll_bar_create): Remove unused variable(s).
7494 (x_scroll_bar_remove, XTread_socket): Ditto.
7495 (XTread_socket) <ConfigureNotify>: Move variables used for
7496 non-toolkit case into conditionally compiled section of code.
7497
7498 * window.h (freeze_window_starts): Fix typo in prototype.
7499
7500 * xdisp.c (display_echo_area_1, try_window_id): Remove unused
7501 variable(s).
7502
7503 * lisp.h: Add prototype for debug_print.
7504
7505 * dispextern.h (xassert) [GLYPH_DEBUG]: Change definition
7506 to use do-while.
7507
7508 * fns.c (SXHASH_COMBINE): Add missing parentheses.
7509 (Fchar_table_range, Fset_char_table_default, mapcar1,
7510 Fyes_or_no_p, sweep_weak_hash_tables): Remove unused variable(s).
7511
7512 * lisp.h: Add prototype for getloadavg.
7513
75141999-09-14 Andreas Schwab <schwab@gnu.org>
7515
7516 * process.c (Fopen_network_stream): Avoid socket decriptor leak.
7517
7518 * lisp.h: Declare close_file_unwind.
7519
75201999-09-14 Richard Stallman <rms@gnu.org>
7521
7522 * filelock.c (get_boot_time): Make the temp name in the proper dir.
7523
75241999-09-13 Gerd Moellmann <gerd@gnu.org>
7525
7526 * xdisp.c (redisplay_window): Make sure start_at_line_beg
7527 is always set correctly.
7528
75291999-09-13 Dave Love <fx@gnu.org>
7530
7531 * xdisp.c (move_it_in_display_line_to): Make type consistent with
7532 declaration.
7533
75341999-09-13 Gerd Moellmann <gerd@delysid.gnu.org>
7535
7536 * xdisp.c (QCfile): Move here from xfns.c.
7537 (syms_of_xdisp): Initialize it.
7538 (message2_nolog): Change for Lisp_Object selected_frame.
7539 (message3_nolog, message_with_string, message,
7540 setup_echo_area_for_printing, truncate_echo_area,
7541 prepare_menu_bars, redisplay_internal, Fdump_tool_bar_row): Ditto.
7542
75431999-09-13 Dave Love <fx@gnu.org>
7544
7545 * xterm.c: Don't continue #define args for benefit of old cc.
7546 (xt_action_hook): Indent #error for benefit of K&R cc.
7547
75481999-09-13 Gerd Moellmann <gerd@delysid.gnu.org>
7549
7550 * xterm.c (XTcursor_to): Change for Lisp_Object selected_frame.
7551 (x_clear_frame, XTring_bell, XTmouse_position, XTread_socket): Ditto.
7552 (XRINGBELL): Removed.
7553
75541999-09-13 Dave Love <fx@gnu.org>
7555
7556 * xfns.c (x_put_x_image): Make type consistent with declaration.
7557
7558 * fns.c (Fmake_hash_table): Fix string continuation.
7559
75601999-09-13 Gerd Moellmann <gerd@delysid.gnu.org>
7561
7562 * xfns.c (QCfile): Moved to xdisp.c.
7563 (syms_of_xfns): Don't initialize QCfile.
7564 (check_x_frame): Change for Lisp_Object selected_frame.
7565 (check_x_display_info, x_get_resource_string): Ditto.
7566
75671999-09-13 Gerd Moellmann <gerd@gnu.org>
7568
7569 * minibuf.c (choose_minibuf_frame): Don't try to set the
7570 mini-buffer window's buffer, if the buffer is invalid.
7571
7572 * xfns.c (QCfile): Moved to xdisp.c.
7573 (syms_of_xfns): Don't initialize QCfile.
7574
7575 * xdisp.c (QCfile): Move here from xfns.c.
7576 (syms_of_xdisp): Initialize it.
7577
7578 * lisp.h (selected_frame): Add external declaration.
7579
7580 * xselect.c (x_own_selection): Change for Lisp_Object selected_frame.
7581 (Fx_store_cut_buffer_internal): Ditto.
7582 (Fx_rotate_cut_buffers_internal): Ditto.
7583
7584 * xfaces.c (frame_or_selected_frame): Change for Lisp_Object
7585 selected_frame.
7586 (Finternal_set_lisp_face_attribute): Ditto.
7587 (Finternal_get_lisp_face_attribute): Ditto.
7588 (Finternal_lisp_face_empty_p): Ditto.
7589 (Fdump_face): Ditto.
7590
7591 * term.c (OUTPUT): Change for Lisp_Object selected_frame.
7592 (OUTPUT_IF, ring_bell, set_terminal_modes, reset_terminal_modes,
7593 set_terminal_window, set_scroll_region, reassert_line_highlight,
7594 change_line_highlight, cursor_to, raw_cursor_to, clear_to_end,
7595 clear_end_of_line, clear_end_of_line_raw, clear_end_of_line_raw,
7596 encode_terminal_code, write_glyphs, term_init): Ditto.
7597
7598 * sysdep.c (reset_sys_modes): Change for Lisp_Object selected_frame.
7599 (kbd_input_ast, read_input_waiting): Ditto.
7600
7601 * minibuf.c (choose_minibuf_frame): Change for Lisp_Object
7602 selected_frame.
7603 (read_minibuf): Ditto.
7604
7605 * keyboard.c (command_loop_1): Change for Lisp_Object
7606 selected_frame.
7607 (cmd_error_internal, command_loop_1, read_char,
7608 kbd_buffer_get_event, read_avail_input,
7609 read_char_minibuf_menu_prompt, read_key_sequence, Fsuspend_emacs,
7610 interrupt_signal, quit_throw_to_read_char): Ditto.
7611
7612 * fontset.c (Ffont_info): Change for Lisp_Object selected_frame.
7613 (Ffontset_info): DItto.
7614
7615 * emacs.c (handle_USR1_signal): Change for Lisp_Object selected_frame.
7616
7617 * dispnew.c (selected_frame): Make it a Lisp_Object.
7618 (adjust_frame_glyphs_initially): Change for Lisp_Object selected_frame.
7619 (direct_output_for_insert, direct_output_forward_char,
7620 init_display): Ditto.
7621
7622 * data.c (swap_in_symval_forwarding): Change for Lisp_Object
7623 selected_frame.
7624 (set_internal): Ditto.
7625
7626 * buffer.c (Fother_buffer): Change for Lisp_Object selected_frame.
7627 (record_buffer): Ditto.
7628
7629 * frame.c (Fmake_terminal_frame): Use SELECTED_FRAME.
7630 (do_switch_frame): Change for Lisp_Object selected_frame.
7631 (Fselected_frame): Ditto.
7632 (Fframe_first_window): Use SELECTED_FRAME.
7633 (Fframe_root_window): Change for Lisp_Object selected_frame.
7634 (Fframe_selected_window, Fset_frame_selected_window, Fnext_frame,
7635 Fprevious_frame, other_visible_frames, Fdelete_frame,
7636 Fmouse_position, Fmouse_pixel_position, Fmake_frame_visible,
7637 Fmake_frame_invisible, Ficonify_frame, Fraise_frame, Flower_frame,
7638 Fframe_parameters, Fmodify_frame_parameters, Fframe_char_height,
7639 Fframe_char_width, Fframe_pixel_height, Fframe_pixel_width,
7640 Fset_frame_height, Fset_frame_width): Ditto.
7641
76421999-09-13 Gerd Moellmann <gerd@gnu.org>
7643
7644 * xdisp.c (message2_nolog): Change for Lisp_Object selected_frame.
7645 (message3_nolog, message_with_string, message,
7646 setup_echo_area_for_printing, truncate_echo_area,
7647 prepare_menu_bars, redisplay_internal, Fdump_tool_bar_row): Ditto.
7648
7649 * xmenu.c (Fx_popup_menu): Change for Lisp_Object selected_frame.
7650 (Fx_popup_dialog): Ditto.
7651
7652 * xfns.c (check_x_frame): Change for Lisp_Object selected_frame.
7653 (check_x_display_info, x_get_resource_string): Ditto.
7654
7655 * xterm.c (XTcursor_to): Change for Lisp_Object selected_frame.
7656 (x_clear_frame, XTring_bell, XTmouse_position, XTread_socket): Ditto.
7657 (XRINGBELL): Removed.
7658
7659 * window.c (Fminibuffer_window): Change for Lisp_Object
7660 selected_frame.
7661 (Fwindow_at, Fprevious_window, window_loop, select_window_1,
7662 display_buffer_1, Fdisplay_buffer, temp_output_buffer_show,
7663 Fcurrent_window_configuration, init_window_once): Ditto.
7664
7665 * frame.h (SELECTED_FRAME): New.
7666
76671999-09-12 Ken Raeburn <raeburn@gnu.org>
7668
7669 * category.c (word_boundary_p): Use XCAR and XCDR.
7670 * ccl.c (ccl_driver, resolve_symbol_ccl_program,
7671 Fregister_code_conversion_map): Likewise.
7672 * coding.c (setup_coding_system, detect_coding_system,
7673 Ffind_operation_coding_system, Fset_coding_priority_internal):
7674 Likewise.
7675 * doc.c (get_doc_string, Fdocumentation,
7676 store_function_docstring): Likewise.
7677 * editfns.c (save_restriction_restore): Likewise.
7678 * eval.c (Fcond, Fmacroexpand, Fcondition_case, wants_debugger,
7679 skip_debugger, find_handler_clause, Fautoload, Fapply,
7680 run_hook_with_args, run_hook_list_with_args, Ffetch_bytecode):
7681 Likewise.
7682 * fileio.c (Ffind_file_name_handler, Finsert_file_contents,
7683 Fwrite_region, do_auto_save_unwind, Fdo_auto_save,
7684 Fread_file_name): Likewise.
7685 * filelock.c (unlock_all_files): Likewise.
7686 * insdel.c (Fcombine_after_change_execute): Likewise.
7687 * intervals.c (adjust_intervals_for_insertion): Likewise.
7688 * keymap.c (get_keymap_1, Fkeymap_parent, Fset_keymap_parent,
7689 Fset_keymap_parent, fix_submap_inheritance, access_keymap,
7690 store_in_keymap, Fcopy_keymap, define_as_prefix,
7691 current_minor_maps, Faccessible_keymaps,
7692 accessible_keymaps_char_table, Fkey_description,
7693 Fwhere_is_internal, where_is_internal_2, where_is_internal_1,
7694 describe_buffer_bindings, describe_map_tree, shadow_lookup,
7695 describe_map): Likewise.
7696 * lread.c (Fload, load_unwind, close_load_descs, read_vector,
7697 read_list, init_lread): Likewise.
7698 * search.c (Fmatch_data): Likewise.
7699 * sunfns.c (Fsun_menu_internal): Likewise.
7700 * syntax.c (describe_syntax): Likewise.
7701 * undo.c (record_insert, record_delete, Fundo_boundary,
7702 truncate_undo_list): Likewise.
7703 * vmsproc.c (child_sig): Likewise.
7704
7705 * editfns.c (Fformat): Use XFLOAT_DATA.
7706
77071999-09-12 Gerd Moellmann <gerd@gnu.org>
7708
7709 * keyboard.c (command_loop_1): Resize mini-window to the
7710 exact size of a message displayed, if any.
7711
7712 * xdisp.c (resize_mini_window): Add parameter exact_p. Resize
7713 to exact size if exact_p is non-zero.
7714 (display_echo_area_1): Call resize_mini_window with
7715 new parameter.
7716 (redisplay_internal): Ditto.
7717 (resize_echo_area_axactly): New.
7718
7719 * minibuf.c (read_minibuf_unwind): Call resize_mini_window with
7720 new parameter.
7721
7722 * dispextern.h: Change prototype of resize_mini_window.
7723 Add prototype for resize_echo_area_axactly.
7724
7725 * xfaces.c (Fx_family_fonts): Replaces Fx_font_list.
7726 (syms_of_xfaces): Defsubr accordingly.
7727
7728 * xdisp.c (hscroll_window_tree): Choose cursor row from
7729 desired or current matrix.
7730 (redisplay_internal): Hscroll before updating.
7731
77321999-09-12 Gerd Moellmann <gerd@gnu.org>
7733
7734 * syntax.c (Fforward_word): Use prompt_end_charpos instead
7735 of minibuffer_prompt_length.
7736
7737 * minibuf.c (read_minibuf): Use prompt_end_charpos instead
7738 of minibuffer_prompt_length.
7739 (read_minibuf_unwind): Ditto.
7740 (Fminibuffer_complete_and_exit): Ditto.
7741 (Fminibuffer_complete_word): Ditto.
7742 (Fminibuffer_prompt_end): Ditto.
7743
7744 * editfns.c (Fbuffer_string): Use prompt_end_charpos instead
7745 of minibuffer_prompt_length.
7746 (Fline_beginning_position): Ditto.
7747
7748 * buffer.c (Fget_buffer_create): Use prompt_end_charpos instead
7749 of minibuffer_prompt_length.
7750 (Fmake_indirect_buffer): Ditto.
7751 (Fkill_buffer): Ditto.
7752 (Ferase_buffer): Ditto.
7753
7754 * buffer.h (prompt_end_charpos): Replaces
7755 minibuffer_prompt_length.
7756
427ec082 7757 * minibuf.c (read_minibuf): Return mini-buffer contents
26901792
DL
7758 without the prompt.
7759
7760 * editfns.c (make_buffer_string_both): Take out the code
7761 to handle mini-buffer prompts.
7762 (Fbuffer_string): Handle the prompt here, instead.
7763
7764 * xfaces.c (lface_from_face_name): Resolve face aliases.
7765 (Qmode_line): Replaces Qmodeline.
7766 (realize_basic_faces): Use Qmode_line.
7767 (syms_of_xfaces): Initialize Qmode_line.
7768
77691999-09-12 Gerd Moellmann <gerd@gnu.org>
7770
7771 * minibuf.c (read_minibuf): Set minibuf_prompt_width to the
7772 current column after inserting prompt.
7773 (Fminibuffer_prompt_width): Return minibuf_prompt_width.
7774
7775 * xfaces.c (Qframe_update_face_colors): New.
7776 (syms_of_xfaces): Initialize call.
7777 (update_face_from_frame_parameter): Call that function when
7778 the frame's background changes.
7779
77801999-09-12 Richard Stallman <rms@gnu.org>
7781
7782 * insdel.c (del_range_1): Don't treat minibuffer prompt specially.
7783
77841999-09-12 Ken Raeburn <raeburn@gnu.org>
7785
7786 * alloc.c (Fcons, pure_cons, Fpurecopy, Fgarbage_collect,
7787 mark_object, mark_buffer): Use XCAR and XCDR.
7788 * bytecode.c (Fbyte_code): Likewise.
7789 * callint.c (Fcall_interactively, Fprefix_numeric_value):
7790 Likewise.
7791 * callproc.c (Fcall_process, Fcall_process_region, child_setup,
7792 getenv_internal): Likewise.
7793 * dired.c (file_name_completion): Likewise.
7794 * fns.c (Fsafe_length, concat, Fcopy_alist, Fmember, Fmemq, Fassq,
7795 assq_no_quit, Fassoc, Frassq, Frassoc, Fdelq, Fdelete, Freverse,
7796 Fplist_get, Fplist_put, internal_equal, mapcar1): Likewise.
7797 * indent.c (Fcompute_motion): Likewise.
7798 * process.c (decode_status, Fprocess_status, Fprocess_exit_status,
7799 list_processes_1, Fstart_process, Fopen_network_stream,
7800 wait_reading_process_input, read_process_output_call,
7801 kill_buffer_processes, sigchld_handler, exec_sentinel_unwind,
7802 status_notify, wait_reading_process_input): Likewise.
7803 * textprop.c (PLIST_ELT_P, property_value, set_properties,
7804 extend_property_ranges): Likewise.
7805 * w32faces.c (Fpixmap_spec_p, merge_face_list): Likewise.
7806 * w32fns.c (x_window_to_frame, x_set_frame_parameters,
7807 x_report_frame_params, x_set_cursor_type, x_icon_type,
7808 x_figure_window_size, Fx_create_frame, w32_load_system_font,
7809 w32_load_font, enum_font_cb2, w32_list_bdf_fonts, w32_list_fonts,
7810 w32_list_synthesized_fonts, w32_find_ccl_program, Fx_list_fonts,
7811 Fw32_find_bdf_fonts, w32_find_bdf_fonts_in_dir,
7812 x_display_info_for_name, Fx_display_list): Likewise.
7813 * w32menu.c (menubar_id_to_frame, single_keymap_panes,
7814 Fx_popup_menu, Fx_popup_dialog): Likewise.
7815 * w32proc.c (Fw32_set_keyboard_layout): Likewise.
7816 * w32term.c (x_window_to_scroll_bar, w32_read_socket,
7817 w32_term_init, x_delete_display): Likewise.
7818 * xfns.c (x_window_to_frame, x_any_window_to_frame,
7819 x_non_menubar_window_to_frame, x_menubar_window_to_frame,
7820 x_top_window_to_frame, x_set_frame_parameters,
7821 x_report_frame_params, x_set_cursor_type, x_icon_type,
7822 x_figure_window_size, Fx_create_frame, x_display_info_for_name,
7823 Fx_display_list, x_create_tip_frame): Likewise.
7824 * xmenu.c (menubar_id_to_frame, single_keymap_panes,
7825 Fx_popup_menu, Fx_popup_dialog): Likewise.
7826 * xselect.c (x_own_selection, x_get_local_selection,
7827 x_handle_selection_request, x_handle_selection_clear,
7828 x_clear_frame_selections, wait_for_property_change_unwind,
7829 wait_for_property_change, x_handle_property_notify,
7830 copy_multiple_data, x_get_foreign_selection,
7831 lisp_data_to_selection_data, clean_local_selection_data,
7832 x_handle_selection_notify, Fx_get_selection_internal,
7833 x_disown_buffer_selections): Likewise.
7834 * xterm.c (x_window_to_scroll_bar, XTread_socket, x_list_fonts,
7835 x_load_font, x_find_ccl_program, x_term_init, x_delete_display):
7836 Likewise.
7837
7838 * alloc.c (make_float, make_pure_float, Fpurecopy): Use
7839 XFLOAT_DATA.
7840 * bytecode.c (Fbyte_code): Likewise.
7841 * floatfns.c (extract_float, Fexpt, Fabs, rounding_driver,
7842 fmod_float): Likewise.
7843
78441999-09-11 Richard Stallman <rms@gnu.org>
7845
7846 * xdisp.c (run_window_scroll_functions): If hook functions switch
7847 buffers, switch back after.
7848
78491999-09-11 Ken Raeburn <raeburn@gnu.org>
7850
7851 * charset.h (GET_TRANSLATION_TABLE): Use XCDR.
7852 * frame.h (FOR_EACH_FRAME): Use XCAR and XCDR.
7853 (PIXEL_X_FROM_CANON_X, PIXEL_Y_FROM_CANON_Y): Use XFLOAT_DATA.
7854 * keyboard.h (EVENT_HEAD, EVENT_START, EVENT_END, POSN_WINDOW,
7855 POSN_BUFFER_POSN, POSN_WINDOW_POSN, POSN_TIMESTAMP): Use XCAR and
7856 XCDR.
7857 * syntax.h (SYNTAX, SYNTAX_WITH_FLAGS, SYNTAX_MATCH): Use XCAR and
7858 XCDR.
7859
78601999-09-10 Richard Stallman <rms@gnu.org>
7861
7862 * xterm.c (XTread_socket): In XSetInputFocus, use RevertToParent,
7863 not RevertToPointerRoot.
7864 (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
7865 Fix the code to clear around the scroll bar.
7866
78671999-09-10 Keisuke Nishida <kxn30@po.cwru.edu>
7868
7869 * print.c: Support print-circle and related features.
7870 (Vprint_gensym_alist): Removed.
7871 (Vprint_circle, Vprint_continuous_numbering, print_number_index
7872 Vprint_number_table): New variables.
7873 (PRINT_NUMBER_OBJECT, PRINT_NUMBER_STATUS): New macros.
7874 (PRINTPREPARE, PRINTFINISH): Don't set Vprint_gensym_alist.
7875 (print, print_preprocess, print_preprocess_string, print_object):
7876 New/modified functions with print-circle feature. Use
7877 Vprint_number_table instead of Vprint_gensym_alist for print-gensym.
7878 (syms_of_print): Defined new Lisp variables `print-circle',
7879 `print-continuous-numbering', `print-number-table'.
7880
78811999-09-10 Gerd Moellmann <gerd@gnu.org>
7882
7883 * xfns.c (x_build_heuristic_mask): Accept a list `(R G B)'
7884 as background color specification instead of an integer.
7885 (image-cache-eviction-delay): Replaces image-eviction-seconds.
7886 (Vimage_cache_eviction_delay): Replaces Vimage_eviction_seconds.
7887 (clear_image_cache, syms_of_xfns): Use it.
7888 (Qpostscript): Replaces Qghostscript.
7889 (gs_type): Use it.
7890 (gs_image_p): Ditto.
7891 (syms_of_xfns): Initialize Qpostscript.
7892
78931999-09-10 Richard Stallman <rms@gnu.org>
7894
7895 * buffer.c (Ferase_buffer): Don't erase the minibuffer prompt.
7896
78971999-09-09 Richard Stallman <rms@gnu.org>
7898
7899 * editfns.c (Fline_beginning_position): Handle minibuffer prompt here.
7900
7901 * cmds.c (Fbeginning_of_line): Don't handle minibuffer prompt here.
7902
79031999-09-09 Gerd Moellmann <gerd@gnu.org>
7904
7905 * fns.c (Fmakehash): Accept just one optional argument TEST.
7906
7907 * xfns.c (QCindex): New.
7908 (syms_of_xfns): Initialize QCindex.
7909 (gif_load): Use it instead of `:image'.
7910
79111999-09-09 Richard Stallman <rms@gnu.org>
7912
7913 * fileio.c (Fwrite_region): Finish renaming CONFIRM to MUSTBENEW.
7914 (Fwrite_region) [DOS_NT]: Handle `excl' here too.
7915
79161999-09-08 Gerd Moellmann <gerd@gnu.org>
7917
7918 * xdisp.c (Qwhen): Replaces QCwhen.
7919 (syms_of_xdisp): Initialized it instead of QCwhen.
7920 (handle_single_display_prop): Use it instead of QCwhen.
7921
79221999-09-08 Ken'ichi Handa <handa@gnu.org>
7923
7924 * charset.c (translate_char): Reset MSBs of arguments of
7925 MAKE_CHAR.
7926 (CHAR_COMPONENTS_VALID_P): Fix for ASCII.
7927
79281999-09-08 Lars Magne Ingebrigtsen <larsi@gnus.org>
7929
7930 * editfns.c (Fbufsize): Accept an extra BUFFER parameter.
7931
7932 * fns.c (Fbase64_decode_region): Don't place point outside of the
7933 current accessible portion.
7934
79351999-09-07 Richard Stallman <rms@gnu.org>
7936
7937 * keymap.c (fix_submap_inheritance): Do nothing if the proper
7938 parent is an ancestor of SUBMAP; otherwise, add it as the
7939 ultimate ancestor.
7940
79411999-09-07 Gerd Moellmann <gerd@gnu.org>
7942
7943 * xdisp.c (handle_single_display_prop): Change conditional
7944 display property to `:when FORM . VALUE'.
7945
79461999-09-07 Richard Stallman <rms@gnu.org>
7947
7948 * fileio.c (Fwrite_region): Doc fix.
7949
79501999-09-07 Stefan Monnier <monnier@cs.yale.edu>
7951
7952 * fileio.c (Qexcl): New variable.
7953 (report_file_error): Handle EEXIST specially.
7954 (Fwrite_region): Special handling for CONFIRM = `excl'.
7955 (syms_of_fileio): Initialize Qexcl.
7956
79571999-09-07 Gerd Moellmann <gerd@gnu.org>
7958
7959 * xfns.c (x_set_foreground_color): Call
7960 update_face_from_frame_parameter.
7961 (x_set_background_color): Ditto.
7962 (x_set_mouse_color): Ditto.
7963 (x_set_cursor_color): Ditto.
7964 (x_set_border_color): Ditto.
7965 (x_set_scroll_bar_foreground): Ditto.
7966 (x_set_scroll_bar_background): Ditto.
7967
7968 * xfaces.c (recompute_basic_faces): Clear face cache.
7969 (Finternal_set_lisp_face_attribute): Modify frame parameters
7970 if attributes of certain faces are changed.
7971 (update_face_from_frame_parameter): New.
7972
7973 * xfaces.c (realize_basic_faces): Realize new basic faces.
7974
7975 * dispextern.h (SCROLL_BAR_FACE_ID, BORDER_FACE_ID,
7976 CURSOR_FACE_ID, MOUSE_FACE_ID): New.
7977
7978 * xfaces.c (Qscroll_bar, Qcursor, Qborder, Qmouse): New.
7979 (syms_of_xfaces): Intialize new symbols.
7980
7981 * fns.c (Fmakehash): Take one argument, test, make all the
7982 rest keyword arguments.
7983
7984 * window.c (Fset_window_margins): Make window the first argument.
7985 (set_window_buffer): Call Fset_window_margins with window as first
7986 argument.
7987
79881999-09-07 Gerd Moellmann <gerd@gnu.org>
7989
7990 * xfaces.c (Qfringe): Replaces Qmargin.
7991
79921999-09-07 Kenichi Handa <handa@etl.go.jp>
7993
7994 * charset.h: Lots of comments fixed.
7995 (PARSE_MULTIBYTE_SEQ): Make it work also for ASCII string.
7996 (STRING_CHAR_AND_CHAR_LENGTH): This macro removed.
7997
7998 * charset.c : Lots of comments fixed.
7999 (SPLIT_MULTIBYTE_SEQ): Make it work also for ASCII string.
8000 (CHAR_COMPONENTS_VALID_P): Name changed from
8001 CHAR_COMPONENT_VALID_P. Caller changed.
8002
80031999-09-06 Richard Stallman <rms@gnu.org>
8004
8005 * insdel.c (syms_of_insdel): Define Lisp variable
8006 inhibit-modification-hooks.
8007
80081999-09-06 Michael Sperber [Mr. Preprocessor] <sperber@informatik.uni-tuebingen.de>
8009
8010 * s/aix4-2.h (ALIGN_DATA_RELOC): Undefined to support new
8011 unexaix.c.
8012
8013 * s/aix3-1.h (ALIGN_DATA_RELOC): Defined to support new unexaix.c.
8014
80151999-09-06 Dave Love <fx@gnu.org>
8016
8017 * unexaix.c: New version incorporating Michael Sperber's changes
8018 from XEmacs. Should solve problems on AIX 4.3.
8019
8020 * lread.c (Vbyte_boolean_vars): New variable.
8021 (defvar_bool, syms_of_lread): Use it.
8022
80231999-09-05 Richard Stallman <rms@gnu.org>
8024
8025 * minibuf.c (read_minibuf): Put all three properties on the
8026 same range, the whole prompt.
8027
80281999-09-05 Gerd Moellmann <gerd@gnu.org>
8029
8030 * sound.c (Qplay_sound_functions): Replaces Qplay_sound_hook.
8031 (Fplay_sound, syms_of_sound): Use it.
8032 (parse_sound): Allow float volume values in the range [0, 1].
8033 (Fplay_sound): Ditto.
8034
8035 * window.c (Fset_window_vscroll): Make window the first argument,
8036 amount to scroll the second. Take non-negative vscroll as
8037 argument.
8038 (Fwindow_vscroll): Return non-negative vscroll.
8039
8040 * xfns.c (Fx_show_tip): Improve documentation.
8041
80421999-09-05 Gerd Moellmann <gerd@gnu.org>
8043
8044 * buffer.c, buffer.h, dispextern.h, dispnew.c, keyboard.c,
8045 window.c, xdisp.c, xfaces.c, xterm.c, keyboard.h: Change
8046 `top-line' and `top_line' to `header-line' and `header_line'.
8047 Likewise for similar spellings.
8048
80491999-09-05 Gerd Moellmann <gerd@gnu.org>
8050
8051 * xdisp.c (row_containing_pos): New.
8052 (try_window_id): Use it.
8053
8054 * alloc.c, dispextern.h, dispnew.c, frame.c, frame.h, keyboard.c,
8055 lisp.h, termhooks.h, window.c xdisp.c, xfaces.c, xfns.c, xterm.c:
8056 Change spelling of `toolbar' to `tool_bar' or `tool-bar'.
8057 Likewise for upper-case etc.
8058
80591999-09-05 Gerd Moellmann <gerd@gnu.org>
8060
8061 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
8062 Fix reference to renamed variable.
8063
80641999-09-04 Gerd Moellmann <gerd@gnu.org>
8065
8066 * window.c (Qwindow_size_fixed): Replaces Qfixed_window_size.
427ec082 8067 (window_fixed_size_p): Use Qwindow_size_fixed instead of
26901792
DL
8068 Qfixed_window_size.
8069 (syms_of_window): Ditto.
8070
8071 * fns.c (Fmakehash): Exchange optional test and size arguments.
8072
80731999-09-03 Gerd Moellmann <gerd@gnu.org>
8074
8075 * xterm.c (XTset_vertical_scroll_bar): Block input when clearing
8076 under newly created scroll bar.
8077 (expose_window): If window is not yet fully initialized, do
8078 nothing. This can happen when toolkit scroll bars are used and a
8079 window is split. Reconfiguring the scroll bars will generate an
8080 expose for a newly created window.
8081
8082 * frame.h (struct frame): New member `gamma'.
8083
8084 * xfns.c: Include math.h. Add extern declaration for atof in case
8085 we don't see one.
8086 (Qscreen_gamma): New.
8087 (struct x_frame_parm_table): Add prototypes, add
8088 x_set_screen_gamma.
8089 (gamma_correct): New function.
8090 (defined_color): Call it.
8091 (x_set_screen_gamma): New.
8092 (x_set_title): Add parameter old_value.
8093 (RES_TYPE_FLOAT): New.
8094 (x_get_arg): Handle RES_TYPE_FLOAT.
8095 (Fx_create_frame): Call x_default_parameter for `screen-gamma'.
8096 (lookup_pixel_color): Change call to x_alloc_nearest_color to
8097 new prototype.
8098 (lookup_rgb_color): Ditto.
8099 (syms_of_xfns): Initialize Qscreen_gamma.
8100
8101 * xterm.c (x_alloc_nearest_color_for_widget) [USE_X_TOOLKIT]:
8102 New. Allocate color for lwlib widgets.
8103 (x_alloc_nearest_color): Change parameter list include the
8104 frame on which to allocate colors. Gamma-correct colors.
8105 (x_alloc_lighter_color): Call x_alloc_lighter_color with new
8106 parameter list.
8107
8108 * xterm.h: Change protorype of x_alloc_nearest_color.
8109
81101999-09-03 Richard Stallman <rms@gnu.org>
8111
8112 * callproc.c: Delete the system-independent include of stdlib.h
8113 (leaving only the one in the WINDOWSNT conditional).
8114
81151999-09-03 Andrew Choi <choi@cs.hku.hk>
8116
8117 * callproc.c (call-process) [macintosh]: Call mac_run_command in
8118 sysdep.c. The Mac code is modeled after the DOS code.
427ec082 8119
26901792
DL
8120 * dispextern.h [macintosh]: Include macterm.h to define substitute X
8121 Window types and macros.
8122
8123 * frame.h: Do nothing if included a second time.
8124 (enum output_method): Add mac_output frame type.
8125 (union output_data): Add new alternative `mac'.
8126 (FRAME_MAC_P): New macro.
427ec082 8127
26901792
DL
8128 * frame.c (Fframep) [macintosh]: Handle mac frame type.
8129 (syms_of_frame_1): Initialize Qmac.
8130 (make_terminal_frame) [macintosh]: Initialize output_data.mac fields.
8131 (Fmake_terminal_frame) [macintosh]: Add an alternate error check.
8132 (Fmodify_frame_parameters) [macintosh]: Call
8133 mac_set_frame_parameter in macterm.c.
427ec082 8134
26901792
DL
8135 * keyboard.c [macintosh]: Set KBD_BUFFER_SIZE to a smaller value
8136 (512) because Mac compilers limit local data of a function to 32K.
427ec082 8137
26901792
DL
8138 * make-docfiles.c: Correctly handle input files with Mac-style
8139 eol's.
427ec082 8140
26901792 8141 * sysdep.c: Define numerous routines to emulate Unix system calls.
427ec082 8142
26901792
DL
8143 * xfaces.c: on MacOS, define the set of colors listed in rgb.txt
8144 file of an X Window environment.
427ec082 8145
26901792
DL
8146 * xfaces.c: on MacOS, define the Lisp functions x-display-color-p,
8147 x-display-grayscale, x-color-defined-p, and x-color-values.
427ec082 8148
26901792
DL
8149 * sysdep.c [macintosh] (stat, fstat, mkdir, rmdir, utime, access)
8150 (open, creat, unlink, read, write, rename, fopen, pause, alarm)
8151 (signal, sleep, gmtime, localtime, ctime, time, index, mktemp)
8152 (getpwuid, getpwnam, dup, dup2, isatty, getgid, getegid, getuid)
8153 (geteuid, getpid, getenv, uname, opendir, closedir, readdir, getwd.):
8154 New functions, replacing POSIX features.
427ec082 8155
26901792
DL
8156 * sysdep.c [macintosh] (Mac2UnixPathname, Unix2MacPathname, CheckAlarm)
8157 (InitMyPasswd, GetTempDirName, mystrchr, mystrtok, mystrcpy):
8158 (InitEmacsPasswdDir, run_mac_command): New subroutines.
8159
8160 * sysdep.c [macintosh] (targetTicks, alarm_signal_func, myPasswdName)
8161 (myPasswd, emacsPasswdDir, emacsPasswd, myPasswdInited, mask)
8162 (myPasswdDir, TempDirName, sys_siglist): New variables.
8163
8164 * sysdep.c [macintosh] (execvp, wait, croak, fork, kill, sigsetmask)
8165 (sigblock, request_sigio, unrequest_sigio, setpgrp, pipe, symlink)
8166 (link, lstat, readlink, umask, chmod, sbrk, fsync, ioctl):
8167 Define empty stubs so Emacs will link.
8168
81691999-09-03 Gerd Moellmann <gerd@gnu.org>
8170
8171 * xdisp.c: Use XCAR and XCDR instead of XCONS.
8172
8173 * window.h: New member frozen_window_start_p.
8174
8175 * window.c (foreach_window, foreach_window_1): New.
8176 (freeze_window_start, freeze_window_starts): New.
8177 (make_window): Initialize frozen_window_start_p.
8178 (replace_window): Ditto.
8179 (Fset_window_point): Remove references to deleted variables.
8180 (Fset_window_start): Ditto.
8181
8182 * xdisp.c (Vresize_mini_config, resize_mini_frame,
8183 resize_mini_initial_height): Removed.
8184 (syms_of_xdisp): Remove references to these variables.
8185 (resize_mini_window): Don't save window configuration, freeze
8186 window starts instead. Enlarge window until displaying an empty
8187 buffer, then shrink it. Make the function externally visible.
8188 (redisplay_window): Treat frozen window start like forced start,
8189 but accept point outside of the window.
8190
8191 * dispextern.h: Add function prototype for resize_mini_window.
8192
8193 * minibuf.c (read_minibuf_unwind): Resize mini-window when
8194 reaching minibuf_level 0.
8195
8196 * lisp.h: Remove extern declarations for variables deleted from
8197 xdisp.c.
8198
8199 * dispnew.c (adjust_frame_glyphs): Remove reference to
8200 Vresize_mini_config.
8201
82021999-09-03 Gerd Moellmann <gerd@gnu.org>
8203
8204 * xfns.c (x_set_scroll_bar_width): Change conditional compilation
8205 to USE_TOOLKIT_SCROLL_BARS.
8206
8207 * xterm.c (x_scroll_bar_create): Don't clear under scroll bar
8208 here.
8209 (XTset_vertical_scroll_bar): Clarify position computations. Clear
8210 under newly created scroll bar. Put toolkit scroll bars in the
8211 middle of the area reserved for the scroll bar.
8212
82131999-09-03 Kenichi Handa <handa@etl.go.jp>
8214
8215 The following changes are for the new handling of mulitbyte
8216 sequence. Now, except for a composite character, no multibyte
8217 character in string/buffer has trailing garbage bytes. For
8218 instance, the length of string "\201\300\300" is now 2, the first
8219 character is Latin-1 A-grave, the second is raw \300.
8220
8221 * charset.h (MAKE_NON_ASCII_CHAR): Handle the case that C1 or C2
8222 are negative.
8223 (MAKE_CHAR): Don't set MSBs of C1 and C2 to 0.
8224 (VALID_MULTIBYTE_CHAR_P): This macro deleted.
8225 (PARSE_COMPOSITE_SEQ): New macro.
8226 (PARSE_CHARACTER_SEQ): New macro.
427ec082 8227 (PARSE_MULTIBYTE_SEQ): New macro.
26901792
DL
8228 (CHAR_PRINTABLE_P): New macro.
8229 (STRING_CHAR): Adjusted for the change of string_to_non_ascii_char.
8230 (STRING_CHAR_AND_LENGTH): Likewise.
8231 (STRING_CHAR_AND_CHAR_LENGTH): Define it as STRING_CHAR_AND_LENGTH.
8232 (INC_POS): Use the macro PARSE_MULTIBYTE_SEQ.
8233 (DEC_POS, BUF_INC_POS, BUF_DEC_POS): Likewise,
8234
8235 * charset.c (SPLIT_COMPOSITE_SEQ): New macro.
8236 (SPLIT_CHARACTER_SEQ): New macro.
8237 (SPLIT_MULTIBYTE_SEQ): New macro.
8238 (CHAR_COMPONENT_VALID_P): New macro.
8239 (non_ascii_char_to_string): Generate a multibyte sequence as far
8240 as possible.
8241 (string_to_non_ascii_char): The 4th arg exclude_tail_garbage is
8242 deleted. Caller changed. Use the macro SPLIT_MULTIBYTE_SEQ.
8243 (split_non_ascii_string): Likewise.
8244 (multibyte_form_length): Use the macro PARSE_MULTIBYTE_SEQ.
8245 (char_printable_p): New function.
8246 (translate_char): Check character by NATNUMP instead of INTEGERP.
8247 (unibyte_char_to_multibyte): Call char_valid_p instead of
8248 VALID_MULTIBYTE_CHAR_P.
8249 (Fmake_char_internal): Check the arguments more rigidly.
8250 (Fcharset_after): Use the macro SPLIT_MULTIBYTE_SEQ.
8251 (char_valid_p): Check the validity by CHAR_COMPONENT_VALID_P.
8252 (Fmultibyte_char_to_unibyte): Check the validity of character by
8253 CHAR_VALID_P.
8254 (chars_in_text): Call multibyte_chars_in_text.
8255 (multibyte_chars_in_text): Use the macro PARSE_MULTIBYTE_SEQ.
8256 (Fcompose_string): Use the macro STRING_CHAR_AND_LENGTH instead of
8257 STRING_CHAR_AND_CHAR_LENGTH (which is obsolete now).
8258
8259 * data.c (Faset): Adjust the way to check byte-combining
8260 possibility for the new handling of multibyte sequence.
8261
8262 * editfns.c (Fsubst_char_in_region): Likewise.
8263
8264 * fns.c (count_combining): Use the macro PARSE_MULTIBYTE_SEQ.
8265 (string_char_to_byte): Likewise.
8266 (string_byte_to_char): Likewise.
8267
8268 * indent.c (MULTIBYTE_BYTES_WIDTH): Delete the 2nd arg C. Use the
8269 macro STRING_CHAR_AND_LENGTH. Caller changed.
8270
8271 * insdel.c (count_combining_composition): New function.
8272 (count_combining_before): Adjust the way to check byte-combining
8273 possibility for the new handling of multibyte sequence. Call
8274 count_combining_composition for a composite character.
8275 (count_combining_after): Likewise.
8276
8277 * print.c (print_string): Use the macro STRING_CHAR_AND_LENGTH.
8278 (print): Likewise.
8279
8280 * dispextern.h (struct it): Change the size of the member
8281 `ctl_chars'.
8282
8283 * xdisp.c (get_next_display_element): Display incomplete multibyte
8284 sequence (e.g. \222\300) by octal form.
8285
82861999-09-02 Gerd Moellmann <gerd@gnu.org>
8287
8288 * xterm.h (VERTICAL_SCROLL_BAR_WIDTH_TRIM): Change from 2 to 0.
8289
8290 * fns.c (Fhash_table_weakness): Replaces Fhash_table_weak.
8291 (cmpfn_eql, sxhash): Use XFLOAT_DATA.
8292
82931999-09-02 Gerd Moellmann <gerd@gnu.org>
8294
8295 * buffer.c (set_buffer_internal): Never set
8296 windows_or_buffers_changed.
8297
8298 * xdisp.c (try_window_id): Reset first_unchanged_at_end_row
8299 if we have displayed to the bottom of the window.
8300
8301 * syntax.c (Fforward_word): Stop at a mini-buffer prompt end
8302 in both directions. Extend documentation.
8303
83041999-09-01 Gerd Moellmann <gerd@gnu.org>
8305
8306 * minibuf.c (read_minibuf): Flush display after setting cursor to
8307 column 0.
8308
83091999-08-31 Gerd Moellmann <gerd@gnu.org>
8310
8311 * s/freebsd.h (__FreeBSD_version): Don't define it if it is
8312 already defined. This avoids a warning from buffer.c.
8313
83141999-08-30 Gerd Moellmann <gerd@gnu.org>
8315
8316 * xterm.h (FRAME_X_FLAGS_AREA_COLS): Define it as the total width
8317 of both margins.
8318 (FRAME_X_FLAGS_AREA_WIDTH): Likewise.
8319 (FRAME_X_LEFT_FLAGS_AREA_WIDTH): New.
8320 (FRAME_X_RIGHT_FLAGS_AREA_WIDTH): New.
8321
8322 * frame.h (FRAME_WINDOW_WIDTH_ARG): Add in FRAME_FLAGS_AREA_COLS
8323 once instead of twice.
8324 (FRAME_LEFT_FLAGS_AREA_WIDTH): New.
8325
8326 * xterm.c: Remove unused bitmaps.
8327 (continued_bits, continuation_bits, overlay_bits): Change images.
8328 (x_draw_vertical_border): Use FRAME_X_RIGHT_FLAGS_AREA_WIDTH
8329 instead of FRAME_X_FLAGS_AREA_WIDTH.
8330 (x_after_update_window_line): Ditto.
8331 (x_draw_bitmap): Likewise.
8332 (x_draw_row_bitmaps): Likewise.
8333 (x_draw_glyph_string_box): Likewise.
8334 (x_draw_glyphs): Likewise.
8335 (x_scroll_run): Likewise.
8336 (expose_window_tree): Likewise.
8337 (note_mode_line_highlight): Likewise.
8338 (XTset_vertical_scroll_bar): Likewise.
8339 (x_clip_to_row): Likewise.
8340 (x_set_window_size): Likewise.
8341
8342 * xfns.c (x_figure_window_size): Use FRAME_FLAGS_AREA_COLS instead
8343 of 2 * that value.
8344
8345 * xdisp.c (window_box_width): Use FRAME_FLAGS_AREA_COLS instead of
8346 2 * that value.
8347 (window_box_left): Use FRAME_LEFT_FLAGS_AREA_WIDTH instead of
8348 FRAME_FLAGS_AREA_WIDTH.
8349
8350 * window.c (coordinates_in_window): Use
8351 FRAME_LEFT_FLAGS_AREA_WIDTH instead of FRAME_FLAGS_AREA_WIDTH.
8352 (window_internal_width): Subtract FRAME_FLAGS_AREA_WIDTH once
8353 instead of twice.
8354
427ec082 8355 * widget.c (set_frame_size): Set flags_area_extra to
26901792
DL
8356 FRAME_FLAGS_AREA_WIDTH instead of 2 * that width.
8357 (EmacsFrameSetCharSize): Ditto.
8358
8359 * dispnew.c (mode_line_string): Add FRAME_LEFT_FLAGS_AREA_WIDTH
8360 instead of FRAME_FLAGS_AREA_WIDTH.
8361
8362 * dispextern.h (WINDOW_DISPLAY_PIXEL_WIDTH): Subtract
8363 FRAME_FLAGS_AREA_COLS once.
8364 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X): Add
8365 FRAME_LEFT_FLAGS_AREA_WIDTH instead of FRAME_FLAGS_AREA_WIDTH.
8366
83671999-08-30 Gerd Moellmann <gerd@gnu.org>
8368
8369 * freebsd.h (C_SWITCH_SYSTEM): Added to let configure find headers
8370 in /usr/X11R6/include which are checked for with AC_CHECK_HEADER.
8371
83721999-08-30 Gerd Moellmann <gerd@gnu.org>
8373
8374 * fns.c (QCweakness): Replaces QCweak.
8375 (Fmake_hash_table): Ditto.
8376 (Fmakehash): Ditto.
8377 (syms_of_fns): Ditto.
8378
83791999-08-29 Richard Stallman <rms@gnu.org>
8380
8381 * search.c (compile_pattern_1): Enable RE_CHAR_CLASSES for regexp.
8382
8383 * sysdep.c (read_input_waiting): Pass read_socket_hook just 4 args.
8384
8385 * syntax.h (SYNTAX_COMMENT_NESTED, SYNTAX_FLAGS_COMMENT_NESTED):
8386 Add support for nested comments.
8387
d7d0dac0
SM
8388 * syntax.c (Fforward_comment, scan_lists, scan_sexps_forward):
8389 Consolidate the forward comment code into the new `forw_comment'.
8390 (forw_comment): New subroutine. Added support for nested comments.
8391 (lisp_parse_state, back_comment, Fmodify_syntax_entry)
8392 (Fparse_partial_sexp): Add support for nested comments.
26901792
DL
8393
83941999-08-28 Ken Raeburn <raeburn@gnu.org>
8395
8396 * lisp.h (struct Lisp_Cons, XCAR, XCDR, struct Lisp_Float): Change
8397 names of structure elements if HIDE_LISP_IMPLEMENTATION is
8398 defined, to help detect code that uses knowledge of the Lisp
8399 internals that it shouldn't have.
8400 (XFLOAT_DATA): New macro.
8401
84021999-08-25 Gerd Moellmann <gerd@gnu.org>
8403
8404 * syntax.c (Fforward_word): If in a mini-buffer and moving
8405 backwards, stop in front of the prompt to prevent accidentially
8406 moving into the read-only prompt.
8407
8408 * window.c (Frecenter): Clear frame if called with nil or no arg.
8409
8410 * xdisp.c (resize_mini_window): Don't resize if
8411 Vmax_mini_window_height is nil. Otherwise, use a default if
8412 Vmax_mini_window_height is not ot a number.
8413 (syms_of_xdisp): Extend documentation of Vmax_mini_window_height.
8414
84151999-08-25 Alexandre Oliva <oliva@dcc.unicamp.br>
8416
8417 * unexelf.c: Merge IRIX debugging info patch from unexsgi.c
8418 * m/iris4d.h: Use unexelf for IRIX 5.*.
8419 * m/iris5d.h: Use unexelf for IRIX 6.*.
8420 * unexsgi.c: Deleted.
8421
8422 * unexelf.c: Auto-detect .sbss section.
8423 (round_up): Make it static.
8424 (unexec): Declare alignment as Elf Word. Skip ``Program
8425 segment above .bss'' test on MIPS without .sbss.
8426 Copy sections .got and .sdata1 sections. Adjust offsets in
8427 sections .sdata, .lit4, .lit8, .got and .sdata1.
8428
84291999-08-25 Gerd Moellmann <gerd@gnu.org>
8430
8431 * xdisp.c (try_window_id): Remove typo.
8432
84331999-08-24 Gerd Moellmann <gerd@gnu.org>
8434
8435 * xdisp.c (try_window_id): Recognize case that PT == ZV and in
8436 unchanged text at the bottom when computing the cursor position.
8437 (message3_nolog): Raise frame only if minibuffer_auto_raise is
8438 set.
8439
8440 * lisp.h (PVEC_TYPE_MASK): Add the bit for hash tables.
8441
84421999-08-24 Gerd Moellmann <gerd@gnu.org>
8443
8444 * xfaces.c (Qmargin): Replacement for Qbitmap_area.
8445 (realize_basic_faces): Replace Qmargin for Qbitmap_area.
8446 (syms_of_xfaces): Ditto.
8447
8448 * window.c (Fset_window_point): Reset Vresize_mini_config.
8449 (Fset_window_start): Ditto.
8450 (set_window_buffer): Ditto.
8451
8452 * dispnew.c (adjust_frame_glyphs): Reset Vresize_mini_config.
8453
8454 * xdisp.c (redisplay_window): Don't ever test just_this_one_p
8455 before calling try_window.
8456 (echo_area_display): If height has changed, update other windows.
8457 (resize_mini_frame, resize_mini_initial_height): New.
8458 (resize_mini_window): Save/restore window configuration
8459 differently.
8460
427ec082 8461 * lisp.h (Vresize_mini_config, resize_mini_frame,
26901792
DL
8462 resize_mini_initial_height): Add extern declarations.
8463
8464 * xterm.c (expose_window_tree): Fix typo CANON_Y_UNIT to
8465 CANON_X_UNIT.
8466
8467 * xfns.c [HAVE_JPEG]: Work around a warning about HAVE_STDLIB_H
8468 being redefined in jconfig.h.
8469
84701999-08-23 Ken'ichi Handa <handa@gnu.org>
8471
8472 * coding.h: Include "ccl.h" instead of "../src/ccl.h".
8473
84741999-08-22 Gerd Moellmann <gerd@gnu.org>
8475
8476 * alloc.c (mark_glyph_matrix): Mark strings only.
8477
8478 * xdisp.c (redisplay_internal): Clear garbaged frames after
8479 resizing mini-window.
8480
84811999-08-22 Gerd Moellmann <gerd@gnu.org>
8482
8483 * xdisp.c (unwind_with_echo_area_buffer): Use
8484 set_buffer_internal_1 instead of set_buffer_internal.
8485 (with_echo_area_buffer): Ditto.
8486
8487 * buffer.c (set_buffer_internal): Set windows_or_buffers_changed
8488 only if buffer is displayed somewhere.
8489
8490 * buffer.h (BUF_COMPUTE_UNCHANGED): New.
8491
8492 * insdel.c (gap_left): Use BUF_COMPUTE_UNCHANGED.
8493 (gap_right): Ditto.
8494 (modify_region): Ditto.
8495
8496 * buffer.c (modify_overlay): Use BUF_COMPUTE_UNCHANGED.
8497
8498 * xdisp.c (Vresize_mini_config): New.
8499 (resize_mini_window): Use it to save restore original window
8500 configuration
8501 (syms_of_xdisp): Initialize it.
8502
8503 * buffer.h (struct buffer): Add prevent_redisplay_optimizations_p.
8504
8505 * dispextern.h (struct glyph_matrix): Add buffer, begv, and zv.
8506
8507 * xdisp.c (reconsider_clip_changes): New.
8508 (redisplay_internal, redisplay_window): Call it.
8509 (mark_window_display_accurate, redisplay_internal): Set current
8510 matrix' buffer, begv, zv.
8511
8512 * window.c (Fset_window_hscroll): Set
8513 prevent_redisplay_optimizations_p instead of clip_changed.
8514 (Fset_window_hscroll): Ditto.
8515 (temp_output_buffer_show): Ditto.
8516 (Fset_window_vscroll): Ditto.
8517
8518 * buffer.c (reset_buffer): Set clip_changed to 0 and
8519 prevent_redisplay_optimizations_p to 1.
8520 (Fget_buffer_create): Set prevent_redisplay_optimizations_p to 1.
8521
8522 * buffer.h (BUF_UNCHANGED_MODIFIED, UNCHANGED_MODIFIED,
8523 BUF_OVERLAY_UNCHANGED_MODIFIED, OVERLAY_UNCHANGED_MODIFIED,
8524 BUF_BEG_UNCHANGED, BEG_UNCHANGED, BUF_END_UNCHANGED,
8525 END_UNCHANGED): New.
8526 (struct buffer_text): Add beg_unchanged, end_unchanged,
8527 unchanged_modified, overlay_unchanged_modified.
8528
8529 * window.h (beg_unchanged, end_unchanged, unchanged_modified,
8530 overlay_unchanged_modified): Removed.
8531 (with_echo_area_unwind_data): Don't save beg/end_unchanged.
8532 (unwind_with_echo_area_buffer): Don't restore them.
8533 (debug_beg_unchanged, debug_end_unchanged) [GLYPH_DEBUG]: Removed.
8534 (text_outside_line_unchanged_p, redisplay_internal,
8535 try_scrolling): Use/set buffer-specific beg/end_unchanged.
8536 (redisplay_window): Let try_window_id be called if more than one
8537 window is displayed. Use/set buffer-specific beg/end_unchanged.
8538 (get_last_unchanged_at_beg_row, get_first_unchanged_at_end_row,
8539 try_window_id):
8540 Use buffer-specific beg/end_unchanged.
8541
8542 * window.h (beg_unchanged, end_unchanged, unchanged_modified,
8543 overlay_unchanged_modified): Remove extern declarations.
8544
8545 * keyboard.c (command_loop_1): Set beg/end_unchanged per
8546 buffer.
8547
8548 * insdel.c (gap_left): Compute beg/end_unchanged per buffer.
8549 (gap_right): Ditto.
8550 (adjust_after_replace): Likewise.
8551 (replace_range, del_range_2, modify_region): Likewise.
8552
8553 * dispnew.c (direct_output_for_insert): Set beg_unchanged
8554 and unchanged_modified per buffer.
8555
8556 * coding.c (code_convert_region): Compute beg/end_unchanged per
8557 buffer.
8558
8559 * buffer.c (modify_overlay): Compute beg/end_unchanged
8560 per buffer.
427ec082 8561 (Fget_buffer_create): Initialize new members of the buffer
26901792
DL
8562 structure.
8563
85641999-08-22 Gerd Moellmann <gerd@gnu.org>
8565
8566 * lisp.h: Add prototype for copy_hash_table and Fcopy_hash_table.
8567
8568 * fns.c (Qkey, Qvalue): Renamed from Qkey_weak, and Qvalue_weak.
8569 (Qkey_value_weak): Removed.
8570 (make_hash_table): Use nil, `key', `value', t for weakness.
8571 (Fmake_hash_table): Ditto.
8572 (copy_hash_table): New.
8573 (Fcopy_hash_table): New.
8574
85751999-08-22 Gerd Moellmann <gerd@gnu.org>
8576
8577 * xfns.c: Call change_frame_size and do_pending_window_change with
d7d0dac0 8578 new parameter.
26901792
DL
8579
85801999-08-21 Gerd Moellmann <gerd@gnu.org>
8581
8582 * xdisp.c (resize_mini_window): Do it for truncate-lines t as
8583 well.
427ec082 8584 (redisplay_internal): Resize mini-window only if text might
26901792
DL
8585 have changed.
8586 (display_echo_area): Reset displayed echo_area_buffer to nil
8587 at the end if we're displaying a nil message.
8588
85891999-08-21 Gerd Moellmann <gerd@gnu.org>
427ec082 8590
26901792
DL
8591 * fns.c (hash_lookup): Test with EQ before calling key comparion
8592 function.
8593 (hash_remove): Ditto.
8594 (cmpfn_eq): Removed.
8595 (cmpfn_eql): Don't test with EQ.
8596 (cmpfn_equal): Ditto.
8597 (make_hash_table): Set comparison function for `eq' to null.
8598
8599 * buffer.c, cmds.c, editfns.c, indent.c, insdel.c, buffer.h:
8600 Remove conditional compilation on NO_PROMPT_IN_BUFFER.
8601
8602 * dispextern.h (NO_PROMPT_IN_BUFFER): Removed.
8603
8604 * window.c, widget.c, process.c, keyboard.c, frame.c, xdisp.c,
8605 xterm.c: Call change_frame_size and do_pending_window_change with
8606 new parameter.
8607
8608 * dispnew.c (do_pending_window_change): Add parameter `safe'.
8609 (change_frame_size): Ditto.
8610 (change_frame_size_1): Ditto. Deley size changes if redisplaying
8611 and not called from a safe place.
8612 (window_change_signal): Call change_frame_size with new parameter.
8613
8614 * dispextern.h: Change prototypes for do_pending_window_change
8615 and change_frame_size.
8616
8617 * xfaces.c (face_at_buffer_position): Don't xassert that
427ec082 8618 window's buffers equals current_buffer; this is not the
26901792
DL
8619 case during echo area display.
8620
86211999-08-21 Gerd Moellmann <gerd@gnu.org>
8622
8623 * xdisp.c, minibuf.c: Remove conditional compilation on
8624 NO_PROMPT_IN_BUFFER.
8625
8626 * minibuf.c (Fminibuffer_prompt_end): New.
8627 (syms_of_minibuf): Defsubr it. Remove
8628 minibuffer-prompt-in-buffer.
8629 (Fminibuffer_prompt_width): Return 0 if not in mini-buffer.
8630 Extend documentation.
8631
8632 * xdisp.c (get_next_display_element): Display \r as ^M.
8633
8634 * xterm.c (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]: Clear
8635 under scroll bar widget.
8636
86371999-08-21 Gerd Moellmann <gerd@gnu.org>
8638
8639 * xdisp.c (minibuffer_scroll_overlap): Removed because not used
8640 anywhere.
8641 (unwind_redisplay): Return nil.
8642 (clear_garbaged_frames): New.
8643 (redisplay_internal): Use it.
8644 (echo_area_display): Ditto.
8645 (resize_mini_window): Mew.
8646 (display_echo_area_1): Use it to resize echo area window.
8647 (redisplay_internal): Use it to resize active mini-window.
8648
8649 * dispextern.h, lisp.h: Add function prototypes.
8650
427ec082 8651 * dispnew.c (set_window_cursor_after_update): Do the
26901792
DL
8652 cursor_in_echo_area case only for a mini-window showing
8653 a message. Don't let cursor end up after the end of a row.
8654
8655 * xdisp.c (echo_area_glyphs, echo_area_message,
8656 echo_area_glyphs_length, previous_echo_glyphs,
8657 previous_echo_area_message, previous_echo_area_glyphs_length):
8658 Removed.
8659 (Vmessage_stack, echo_area_buffer, echo_buffer,
8660 display_last_displayed_message_p, Vwith_echo_area_save_vector): New.
8661 (message2_nolog): Use set_message and clear_message.
8662 (message3): Rename parameter len to nbytes to make clear what
8663 it is.
8664 (message3_nolog): Ditto. Use set_message and clear_message.
8665 (update_echo_area): Rewritten.
8666 (with_echo_area_buffer): New.
8667 (with_echo_area_buffer_unwind_data, unwind_with_area_buffer): New.
8668 (setup_echo_area_for_printing): New.
8669 (display_echo_area, display_echo_area_1): New.
8670
8671 (current_message, current_message_1): New.
427ec082 8672 (push_message, restore_message, pop_message,
26901792
DL
8673 check_message_stack): New.
8674 (truncate_echo_area): Rewritten.
8675 (truncate_message_1): New.
8676 (set_message, set_message_1, clear_message): New.
8677 (echo_area_display): Rewritten.
8678 (redisplay_internal): Check for needed echo area update
8679 differently.
8680 (redisplay_preserve_echo_area): Rewritten.
427ec082 8681 (redisplay_window): Check for mini-window displaying echo area
26901792
DL
8682 message differently.
8683 (syms_of_xdisp): Initialize Vmessage_stack and echo area buffers.
8684 Remove initialzation of removed variables.
8685 (init_xdisp): Remove references to removed variables.
8686
8687 * dispnew.c (adjust_frame_message_buffer): Removed references
8688 to echo_area_glyphs and previous_echo_glyphs.
8689 (direct_output_for_insert): Check for mini-window displaying
8690 echo area message differently.
8691 (update_frame): Likewise.
8692 (set_window_cursor_after_update): Likewise. In echo area,
8693 don't try to set cursor on rows that aren't enabled.
8694
8695 * print.c: Remove conditional compilation on `standalone'.
8696 (glyph_len, str_to_glyph_cpy, str_to_glyph_ncpy,
427ec082 8697 glyph_to_str_cpy): Remove that section because GLYPHs are no
26901792
DL
8698 longer used in that way.
8699 (PRINTDECLARE): Add multibyte.
8700 (PRINTPREPARE, PRINTFINISH): Handle printcharfun t differently.
8701 (printbufidx): Removed.
8702 (printchar, strout): Rewritten.
8703
8704 * keyboard.c (ok_to_echo_at_next_pause): Make it a pointer to
8705 a struct kboard.
8706 (echo_kboard): New.
8707 (echo_now): Set echo_kboard to the current kboard.
8708 (cancel_echoing): Set echo_kboard to null.
8709 (cmd_error_internal): Use clear_message, remove references
8710 to echo_area_glyphs and echo_area_message.
8711 (command_loop_1): Check for echo area messages differently.
8712 (read_char): Likewise.
8713 (record_menu_key): Use clear_message.
8714 (Fexecute_extended_command): Check for echo area messages
8715 differently. Use push_message, restore_message, pop_message.
8716
8717 * alloc.c (Fgarbage_collect): Use push_message, restore_message,
8718 pop_message.
8719
8720 * emacs.c (shut_down_emacs): Call check_message_stack.
8721
8722 * lisp.h: Add function prototypes and extern declarations for
8723 new functions and variables.
8724
8725 * fileio.c (Fdo_auto_save): Use push_message, restore_message,
8726 pop_message.
8727
427ec082 8728 * minibuf.c (read_minibuf): Use clear_message instead of
26901792
DL
8729 setting echo_area_glyphs.
8730 (Fminibuffer_completion_help): Ditto.
8731
8732 * editfns.c (Fcurrent_message): Rewritten.
8733
8734 * frame.c, window.h: Remove references to echo_area_glyphs
8735 and previous_echo_glyphs.
8736
87371999-08-21 Dave Love <fx@gnu.org>
8738
8739 * aix3-2-5.h (C_DEBUG_SWITCH): Use -g -O.
8740 * aix4-1.h: Likewise.
8741
8742 * irix6-5.h (C_DEBUG_SWITCH): Set for debug and optimize.
8743
87441999-08-20 Gerd Moellmann <gerd@gnu.org>
8745
8746 * xfns.c: Remove tiff34 prefix from include.
8747
87481999-08-20 Dave Love <fx@gnu.org>
8749
8750 * cm.c: Revert previous change.
8751
87521999-08-19 Gerd Moellmann <gerd@gnu.org>
8753
8754 * xterm.c (XTset_vertical_scroll_bar): Fix previous change. Clear
8755 under scroll bar with width FRAME_SCROLL_BAR_COLS.
8756
87571999-08-18 Dave Love <fx@gnu.org>
8758
8759 * callproc.c, filelock.c, insdel.c, sysdep.c, xmenu.c: Use
8760 stdlib.h.
8761
8762 * doprnt.c: Use stdlib.h, unistd.h.
8763
8764 * config.in: Add HAVE_TERMCAP_H.
8765
8766 * cm.c: Use termcap.h.
8767
87681999-08-18 Gerd Moellmann <gerd@gnu.org>
8769
8770 * xfns.c (x_window) [USE_X_TOOLKIT]: Remove test for
8771 FRAME_X_WINDOW (f) being null at the of the function. If widgets
8772 cannot be created we will already have crashed earlier. Call
8773 lw_set_main_areas with a null menu-bar widget, so that we have
8774 a reasonable default.
8775 (Fx_create_frame): Rearranged so that Lisp errors during frame
8776 initialization cause less damage. Initialize menu bar widget
8777 here.
8778
87791999-08-18 Gerd Moellmann <gerd@gnu.org>
427ec082 8780
26901792
DL
8781 * dispnew.c (update_frame_line): Fix previous change. If writing
8782 whole line clear to end of frame.
8783
87841999-08-17 Gerd Moellmann <gerd@gnu.org>
8785
8786 * window.c (Fcoordinates_in_window_p): Return `left-bitmap-area'
8787 and `right-bitmap-area' if position is in the bitmap areas. This
8788 avoids an error when clicking on the bitmap areas. Instead, they
8789 are currently treated like clicks inside the window.
8790 (coordinates_in_window): Return 5 and 6 for bitmap areas.
8791 (Qleft_bitmap_area, Qright_bitmap_area): New.
8792 (syms_of_window): Initialize new symbols.
8793
8794 * dispnew.c (update_frame_line): If writing whole line,
8795 don't write trailing spaces unless we must.
8796
8797 * xdisp.c (unwind_redisplay): New. Resets flag redisplaying_p.
8798 (redisplay_internal): Register unwind_redisplay with
8799 register_unwind_protect.
8800 (try_window_reusing_current_matrix): If new start > old start,
8801 give up if start pos of first reusable row is not equal to new
8802 start.
8803
8804 * eval.c (Fsignal): Don't reset redisplaying_p here.
8805
8806 * xterm.c (expose_area): If row extends face to end of line,
8807 write the whole line.
8808
88091999-08-16 Gerd Moellmann <gerd@gnu.org>
8810
8811 * dispextern.h (struct it): Remove member
8812 show_trailing_whitespace_p.
8813
8814 * dispnew.c (direct_output_for_insert): Use
8815 Vshow_trailing_whitespace instead of former iterator member
8816 show_trailing_whitespace_p.
8817 (direct_output_forward_char): Don't do it if hightlighting
8818 trailing whitespace.
8819
8820 * xdisp.c (Qshow_trailing_whitespace): Removed.
8821 (Vshow_trailing_whitespace): Added.
8822 (init_iterator): Remove initialization code for
8823 show_trailing_whitespace_p.
8824 (redisplay_internal): Don't try cursor movement in this_line
8825 if showing trailing whitespace.
8826 (redisplay_window): Likewise for cursor movement in current
8827 matrix and try_window_id.
8828 (try_window_reusing_current_matrix): Likewise.
8829 (trailing_whitespace_p): Return 0 if trailing whitespace is
8830 in front of point.
8831 (display_line): Use Vshow_trailing_whitespace instead of
8832 former iterator member show_trailing_whitespace_p.
8833 (syms_of_xdisp): Add DEFVAR_LISP for show-trailing-whitespace.
8834
88351999-08-16 Gerd Moellmann <gerd@gnu.org>
8836
8837 * window.c (Fpos_visible_in_window_p): Rewritten.
8838
8839 * xfaces.c (add_to_log): Renamed from display_message.
8840 Don't display messages in echo area.
8841
8842 * xterm.c (x_draw_glyph_string_box): Use the background width
8843 of the glyph string for the width of the box.
8844
88451999-08-16 Stefan Monnier <monnier@cs.yale.edu>
8846
8847 * syntax.c (Fforward_comment): Set comstyle for Scomment_fence.
8848
88491999-08-16 Geoff Voelker <voelker@cs.washington.edu>
8850
8851 * xfns.c, w32fns.c (x_set_frame_parameters): Set foreground and
8852 background first, and then set other parameters that might
8853 depend upon their new values.
8854
88551999-08-15 Gerd Moellmann <gerd@gnu.org>
8856
8857 * xfaces.c (Vfont_list_limit): New.
8858 (syms_of_xfaces): Make it a user-variable.
8859 (DEFAULT_FONT_LIST_LIMIT): New.
8860 (sorted_font_list): If Vfont_list_limit is an integer > 0, list
8861 maximally that number of fonts, otherwise use
8862 DEFAULT_FONT_LIST_LIMIT.
427ec082 8863 (Fx_font_family_list): Bind `font-list-limit' to higher values
26901792
DL
8864 until we have all fonts.
8865 (Fxfont_list): Additionally return the full names of fonts and
8866 their registry and encoding.
8867
427ec082 8868 * xterm.c (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
26901792
DL
8869 Simplify clearing "under" scroll bar.
8870
8871 * window.c (Qfixed_window_size): New.
8872 (syms_of_window): Initialiaze it.
8873 (check_all_windows): Add return type void.
8874 (window_fixed_size_p): New. Return non-zero if window
8875 is fixed-size.
8876 (window_min_size_1): New.
8877 (window_min_size): Handle fixed-size windows.
8878 (size_window): New. Rewritten combination of set_window_height and
8879 set_window_width that handles fixed-size windows.
8880 (set_window_height): Call it.
8881 (set_window_width): Call it.
8882 (Fsplit_window): Give an error on attempt to split a fixed-size
8883 window.
8884 (change_window_height): Partly rewritten to handle fixed-size
8885 windows.
8886
88871999-08-13 Wolfgang Rupprecht <wolfgang@wsrcc.com>
8888
8889 * process.c (Fopen_network_stream): Fix previous change.
8890
88911999-08-13 Karl Heuer <kwzh@gnu.org>
8892
8893 * xdisp.c (line_number_display_limit_width): New var.
8894 (decode_mode_spec): Use it instead of hardcoded value.
8895 (syms_of_xdisp): Defvar it.
8896
88971999-08-13 Richard M. Stallman <rms@gnu.org>
8898
8899 * eval.c (run_hook_list_with_args): Gcpro `globals'.
8900 (run_hook_with_args): Likewise.
8901
8902 * window.h (struct window): New field too_small_ok.
8903
427ec082 8904 * window.c (set_window_height, set_window_width):
26901792
DL
8905 If window starts out "too small", set its too_small_ok flag.
8906 If window's too_small_ok flag is set, don't delete it
8907 unless it is so small it would cause a crash.
8908
89091999-08-13 Gerd Moellmann <gerd@gnu.org>
8910
8911 * window.c (MINSIZE): Removed.
8912 (window_min_size): New.
8913 (set_window_height): Use window_min_size.
8914 (change_window_height): Ditto.
8915
89161999-08-12 Gerd Moellmann <gerd@gnu.org>
8917
8918 * indent.c (vmotion): Don't add in mini-buffer prompt width
8919 if prompts are inserted into mini-buffer.
8920
89211999-08-12 Wolfgang Rupprecht <wolfgang@wsrcc.com>
8922
8923 * config.in: Add HAVE_GETADDRINFO.
8924 * process.c (Fopen_network_stream): Use getaddrinfo.
8925
89261999-08-11 Gerd Moellmann <gerd@gnu.org>
8927
8928 * xdisp.c (get_overlay_arrow_glyph_row): Set the charpos of
8929 glyphs to -1.
8930
8931 * xdisp.c (face_before_or_after_it_pos): If position after
8932 or before iterator's current position in the buffer is out
8933 of bounds, return the iterator's original face id.
8934
8935 * dispnew.c (mirror_make_current): If desired row isn't enabled,
8936 just swap glyphs pointers between current and desired row.
8937 (build_frame_matrix_from_leaf_window) [GLYPH_DEBUG]: Copy
8938 desired matrix method string to current matrix.
8939
89401999-08-11 Kenichi Handa <handa@etl.go.jp>
8941
8942 * lisp.h (CHAR_MODIFIER_MASK): New macro.
8943
8944 * lread.c (read_escape): For Control modifier, pay attention to
8945 multibyte character.
8946 (read1): Likewise. Singal error or a multibyte character which
8947 has a modifer bit. Check validity of Shift modifer.
8948
8949 * charset.c (non_ascii_char_to_string): Handle modifier bits as
8950 the same as Lisp reader.
8951
89521999-08-10 Richard M. Stallman <rms@gnu.org>
8953
8954 * charset.h (BCOPY_SHORT): Fix typo `unsigined'.
8955
89561999-08-10 Alexandre Oliva <oliva@dcc.unicamp.br>
8957
8958 * unexelf.c [__linux__ && __alpha__] (HAS_SBSS_SECTION): Define.
8959
89601999-08-10 Eli Zaretskii <eliz@gnu.org>
8961
8962 * msdos.c (IT_set_face): Abort if the default face is not realized
8963 and cached.
8964 (IT_write_glyphs): Reset the screen face to the default face
8965 before writing glyphs.
8966
8967 * xfaces.c (realize_default_face) [MSDOS]: Don't take default
8968 colors from the frame here.
8969 (realize_tty_face) [MSDOS]: Do it here. Update the face
8970 attributes with the actual name of the color taken from the
8971 frame.
8972
8973 * dosfns.c (msdos_stdcolor_name): Remove const from return value.
8974 * dosfns.h (msdos_stdcolor_name): Ditto for the prototype.
8975
8976 * frame.c (Fframe_parameters): Swap foreground and background
8977 colors returned in frame parameters if the frame has reverse in
8978 its parameter alist.
8979 (Fmake_terminal_frame): Make a unique copy of face_alist for
8980 each frame.
8981
89821999-08-07 Richard Stallman <rms@gnu.org>
8983
8984 * buffer.c (Fprevious_overlay_change): Just return
8985 the answer obtained from overlays_at.
8986
8987 * xfns.c (xpm_load) [!XpmAllocCloseColors]:
8988 Use XpmCloseness and attrs.closeness instead.
8989
89901999-08-06 Richard Stallman <rms@gnu.org>
8991
8992 * lread.c (Feval_buffer): New arg DO_ALLOW_PRINT.
8993
89941999-08-06 Geoff Voelker <voelker@cs.washington.edu>
8995
427ec082 8996 * dired.c (directory_files_internal, Fdirectory_files_and_attributes,
26901792
DL
8997 Ffile_attributes_lessp): New functions.
8998 (Fdirectory_files): Use directory_files_internal.
8999 (syms_of_dired): Initialize Fdirectory_files_and_attributes,
9000 Ffile_attributes_lessp.
9001
9002 * w32.c (stat): Check for directory ending in separator when
9003 doing readdir fast path.
9004
9005 * w32fns.c (x_set_icon_type): Support setting frame icons.
9006 * w32term.c (x_bitmap_icon): New function.
9007 (x_make_frame_visible, x_iconify_frame): Invoke x_bitmap_icon.
427ec082 9008
26901792
DL
90091999-08-06 Gerd Moellmann <gerd@gnu.org>
9010
9011 * xdisp.c (set_iterator_to_next): After delivering a character
9012 from a display vector, restore face and charset to what they were
9013 before the display vector was processed.
9014
90151999-08-06 Gerd Moellmann <gerd@gnu.org>
9016
9017 * xdisp.c (reseat_at_next_visible_line_start): New parameter
9018 on_newline_p.
9019 (set_iterator_to_next): After delivering last char
427ec082 9020 from display vector, reseat on next visible line start if
26901792
DL
9021 dpvec_char_len < 0.
9022 (next_element_from_buffer): Set dpvec_char_len to -1 for
9023 selective display.
9024
90251999-08-06 Gerd Moellmann <gerd@gnu.org>
9026
9027 * xdisp.c (compute_line_metrics): If first line's physical ascent
9028 is larger than its logical ascent, use the physical ascent, and
9029 make the row taller. Set row's overlapping_p flag.
9030
9031 * dispnew.c (redraw_overlapping_rows): Use flag overlapping_p.
9032 (direct_output_for_insert): Ditto.
9033
9034 * dispextern.h (struct glyph_row): Add overlapping_p.
9035
9036 * xterm.c (x_draw_phys_cursor_glyph): Redraw overlaps.
9037
9038 * dispextern.h (MATRIX_ROW_OVERLAPS_PRED_P): New.
9039 (MATRIX_ROW_OVERLAPS_SUCC_P): New.
9040
9041 * dispnew.c (direct_output_for_insert): Don't use this method if
9042 row is overlapped by others.
9043 (update_text_area): Write full line if current line is overlapped.
9044 (redraw_overlapped_rows): New.
9045 (update_window): Call it.
9046 (redraw_overlapping_rows): New.
9047 (update_window): Call it.
9048 (scrolling_window): Make sure overlapped_p flag in current rows is
9049 unchanged.
9050 (row_equal_p): Take rows overlapped_p flag into account.
9051
9052 * dispextern.h (struct glyph_row): Add flag overlapped_p.
9053
9054 * xterm.c (x_fix_overlapping_area): New.
9055 (x_redisplay_interface): Add x_fix_overlapping_area.
9056
9057 * dispnew.c (adjust_glyphs): Block input while adjusting matrices.
9058
90591999-08-06 Gerd Moellmann <gerd@gnu.org>
9060
9061 * xterm.c (x_draw_glyphs): Add parameter overlaps_p.
9062 (struct glyph_string): Add member for_overlaps_p.
9063 (x_get_glyph_string_clip_rect): If glyph string draws foreground
9064 of overlapping rows, clip to window bottom.
9065 (x_fill_glyph_string): Add parameter overlaps_p.
9066 (x_fill_composite_glyph_string): Ditto.
9067 (BUILD_GLYPH_STRINGS): Ditto.
9068 (BUILD_CHAR_GLYPH_STRINGS): Ditto.
9069 (x_draw_glyph_string): Don't draw anything but the foreground
9070 if glyph string draws row overlaps.
9071
9072 * dispnew.c (direct_output_for_insert): Don't use this
9073 optimization for rows that overlap others.
9074 (update_window_line): Return non-zero if display has changed.
9075 (update_text_area): Ditto.
9076 (update_window): Record if display has been changed.
9077
9078 * dispextern.h (MATRIX_ROW_OVERLAPPING_P): New.
9079
9080 * dispextern.h (struct redisplay_interface): Add
9081 fix_overlapping_area.
9082
9083 * xterm.c (x_append_glyph): Set glyph flag overlaps_vertically_p.
9084
9085 * dispextern.h (struct glyph): Add overlaps_vertically_p.
9086
9087 * xterm.c (x_produce_image_glyph): Compute iterator's physical
9088 ascent and descent.
9089 (x_produce_stretch_glyph): Ditto.
9090 (x_produce_glyphs): Ditto.
9091
9092 * xdisp.c (init_iterator): Reset physical line height info
9093 after producing special glyphs.
9094 (display_toolbar_line): Set physical line height info.
9095 (compute_line_metrics): Ditto.
9096 (display_line): Ditto.
9097 (display_string): Ditto.
9098
9099 * term.c (produce_glyphs): Set iterator's physical height
9100 information.
9101
9102 * dispnew.c (blank_row): Compute glyph row's physical height.
9103 (row_equal_p): Take physical row heights into account.
9104 (direct_output_for_insert): Ditto.
9105 (update_text_area): Ditto.
9106
9107 * dispextern.h (struct glyph_row): Add phys_ascent and
9108 phys_height.
9109 (struct it): Add phys_ascent, phys_descent, max_phys_ascent,
9110 max_phys_descent.
9111
91121999-08-04 Stefan Monnier <monnier@cs.yale.edu>
9113
9114 * buffer.c (switch_to_buffer_1): New subroutine, taken out from
9115 Fswitch_to_buffer.
9116 (no_switch_buffer): New function.
9117 (Fswitch_to_buffer): Call them. Don't get confused
9118 by "same-window" buffers in a dedicated frame.
9119
9120 * window.c (display-buffer): Don't get confused
9121 by "same-window" buffers in a dedicated frame.
9122
91231999-08-04 Andreas Schwab <schwab@gnu.org>
9124
9125 * insdel.c (insert_from_string_1): Check gap size against number
9126 of outgoing bytes, not incoming bytes.
9127
91281999-08-03 Tom Breton <tob@world.std.com>
9129
9130 * lread.c (read1): Added circular reading code to #N=.
9131 (SUBSTITUTE): New macro.
9132 (seen_list): New variable.
9133 (substitute_object_in_subtree): New function.
9134 (substitute_object_recurse): New function.
9135 (substitute_in_interval): New function.
9136
91371999-08-02 Eli Zaretskii <eliz@gnu.org>
9138
9139 * Makefile.in (frame.o, sysdep.o, xfaces.o): Depend on dosfns.h.
9140
9141 * frame.c (make_terminal_frame): Don't call init_frame_faces if
9142 noninteractive, for termcap frames as well.
9143
9144 * sysdep.c (init_sys_modes): Call init_frame_faces for termcap
9145 frames.
9146
91471999-08-01 Richard Stallman <rms@gnu.org>
9148
9149 * fns.c (internal_equal): Correct overlay comparison.
9150
83c8f461 91511999-07-31 Richard M. Stallman <rms@gnu.org>
26901792 9152
427ec082 9153 * xfns.c (x_set_internal_border_width):
26901792
DL
9154 Call do_pending_window_change. Don't block input, don't call XFlush.
9155 (x_set_vertical_scroll_bars): Call do_pending_window_change.
9156 (x_set_scroll_bar_width, x_set_font): Likewise.
9157
9158 * frame.c (Fset_frame_height): Call do_pending_window_change.
9159 (Fset_frame_width, Fset_frame_size): Likewise.
9160
9161 * xterm.c (x_set_window_size): When calling change_frame_size,
9162 specify 1 for DELAY.
9163
9164 * widget.c (EmacsFrameSetCharSize): Don't call
9165 do_pending_window_change here.
9166
91671999-07-30 Dave Love <fx@gnu.org>
9168
9169 * config.in: Add HAVE_STDLIB_H.
9170
91711999-07-30 Richard M. Stallman <rms@gnu.org>
9172
9173 * process.c (create_process): Detect failure of `pipe'.
9174
91751999-07-30 Keisuke Nishida <kei@psn.net>
9176
9177 * alloc.c (allocate_vectorlike): Add missing increment.
9178
9179 * data.c (Fdefalias): Call Ffset instead of duplicating code.
9180
9181 * keymap.c (get_keymap_1, get_keyelt): Check the type of OBJECT
9182 before calling indirect_function.
9183
91841999-07-30 Eli Zaretskii <eliz@gnu.org>
9185
9186 * dispextern.h (load_color, lookup_derived_face): Declare
9187 prototypes.
9188
9189 * dispnew.c (init_display) [MSDOS]: Don't initialize frame faces,
9190 it will be done later.
9191
9192 * frame.c (make_terminal_frame) [MSDOS]: Don't call
9193 init_frame_faces if non-interactive.
9194 (Fframe_parameters) [MSDOS]: Replace indexing into colornames[]
9195 array with a call to msdos_stdcolor_name. The font name is now
9196 "ms-dos", consistent with realize_tty_face.
9197
9198 * keyboard.c (cmd_error_internal): Don't kill Emacs if this is an
9199 MSDOS frame.
9200
9201 * window.c (Fset_window_configuration) [MSDOS]: Don't call
9202 x_set_toolbar_lines.
9203
9204 * xfaces.c (load_color): Remove static from definition and remove
9205 prototype.
9206 [MSDOS]: Add a DOS-specific version of load_color.
9207 (lookup_face): Replace FRAME_TERMCAP_P with !FRAME_WINDOW_P.
9208 (lookup_derived_face): New function.
9209 (realize_default_face): Support MSDOS frames.
9210 [MSDOS]: If fore/background colors are unspecified, inherit them
9211 from the frame.
9212 (realize_face): Support MSDOS frames.
9213 (realize_tty_face): Support MSDOS frames.
9214 [MSDOS]: If the face color is not in Vface_tty_color_alist, call
9215 load_color to try to find a suitable approximation. If the face
9216 is inverse-video, swap the foreground and background colors.
9217
9218 * dosfns.c (msdos_stdcolor_name, msdos_stdcolor_idx): New
9219 functions.
9220
9221 * dosfns.h (msdos_stdcolor_name, msdos_stdcolor_idx): Declare.
9222
9223 * msdos.h: Remove redundant declarations (most of them are now in
9224 dispextern.h).
9225
9226 * msdos.c (IT_set_face): Rewritten for the new redisplay engine.
9227 Use default frame colors if the face doesn't specify them; invert
9228 the colors if highlight is ON.
9229 (IT_write_glyphs): Rewritten for the new redisplay engine.
9230 (IT_change_line_highlight): Add (unused) parameter Y, since that's
9231 how the hook is called by term.c.
9232 (IT_copy_glyphs): New function, copies an area of the display in
9233 video RAM.
9234 (IT_insert_glyphs): Rewritten to DTRT instead of aborting, since
9235 redisplay now calls it even if char_ins_del_ok is zero.
9236 (IT_set_frame_parameters): Prototype changed. Calls the new
9237 load_color. Puts the new fore/background colors into the default
9238 face on current frame.
9239 (IT_menu_display): Rewritten to handle the new struct glyph
9240 instead of a char array.
9241 (XMenuActivate): Call lookup_derived_face to create and use
9242 special faces for the pop-up and drop-down menus.
9243
92441999-07-29 Gerd Moellmann <gerd@gnu.org>
9245
9246 * xterm.c (x_set_toolkit_scroll_bar_thumb): Don't call
9247 XawScrollbarSetThumb if thumb parameters haven't changed because
9248 that function apparently isn't optimized for this case.
9249
92501999-07-29 Eli Zaretskii <eliz@gnu.org>
9251
9252 * msdos.c (getdefdir): Don't return failure indication when
9253 _fixpath sets errno to ENOSYS.
9254
92551999-07-28 Gerd Moellmann <gerd@gnu.org>
9256
9257 * xdisp.c (string_char_and_length): New. Use it everywhere
9258 instead of STRING_CHAR_AND_LENGTH in xdisp.c.
9259
92601999-07-28 Kenichi Handa <handa@etl.go.jp>
9261
9262 * fns.c (count_combining): New function.
9263 (struct textprop_rec): New structure.
9264 (concat): Copy text properties correctly when byte combining
9265 occurs.
9266
92671999-07-28 Gerd Moellmann <gerd@gnu.org>
9268
9269 * xterm.c (x_setup_relief_color): Don't try smart color allocation
9270 if display is mono.
9271 (x_draw_row_bitmaps): If face has stipple, don't switch
9272 to foreground color for clearing areas, and set the fill style.
9273
9274 * xfaces.c (load_face_colors): Load background color if setting
9275 stipple, too.
427ec082 9276 (prepare_face_for_display): Use FillOpaqueStippled instead of
26901792
DL
9277 FillStippled.
9278
92791999-07-26 Ken'ichi Handa <handa@gnu.org>
9280
9281 * xterm.c (x_find_ccl_program): Add casting.
9282
9283 * w32fns.c (w32_find_ccl_program): Add casting.
9284
92851999-07-27 Gerd Moellmann <gerd@gnu.org>
9286
9287 * dispextern.h (struct glyph_row): Flag internal_border_p removed.
9288
9289 * xfns.c (x_create_tip_frame): Don't set bitmapIcon resource
9290 because this will try to access a nonexisting widget.
9291
92921999-07-26 Markus Rost <rost@gnu.org>
9293
427ec082 9294 * fns.c (Fgethash): Fix order of variables (patch by gerd).
26901792
DL
9295 (Fputhash): Ditto.
9296 (Fremhash): Ditto.
9297
92981999-07-26 Gerd Moellmann <gerd@gnu.org>
427ec082 9299
26901792
DL
9300 * widget.c (EmacsFrameSetCharSize): Don't add XtNborderWidth
9301 value to frame width and height.
9302
9303 * xterm.c (x_get_glyph_string_clip_rect): Take internal border
9304 into account for full-width windows. Don't add scroll bar width
9305 to width of clip rect.
9306 (x_draw_glyph_string_box): Add 1 to right x of full width lines.
9307 (x_set_glyph_string_background_width): Add 1 to background width.
9308 (x_draw_glyphs): Take internal border into account for full-width
9309 lines.
9310
93111999-07-26 Richard M. Stallman <rms@gnu.org>
9312
9313 * xfns.c (x_set_mouse_color): Always unload the old color.
9314 Don't allow nil as color value.
427ec082 9315 (x_set_cursor_color, x_set_background_color, x_set_foreground_color):
26901792
DL
9316 Always unload the old color.
9317
9318 * indent.c (Fmove_to_column): Extend end of line only if FORCE is t.
9319
93201999-07-26 Karl Heuer <kwzh@gnu.org>
9321
9322 * fns.c (Fy_or_n_p): Doc fix.
9323
93241999-07-26 Kenichi Handa <handa@etl.go.jp>
9325
9326 * ccl.h (setup_ccl_program): The type is changed to `int'.
9327
9328 * ccl.c (ccl_driver) <CCL_Call>: Now CCL program ID to call may be
9329 stored in the following CCL code. Adjusted for the change of
9330 Vccl_program_table.
9331 (resolve_symbol_ccl_program): Adjusted for the new style of
9332 embedded symbols (SYMBOL . PROP) in CCL compiled code. Return Qt
9333 is resolving failed.
9334 (ccl_get_compiled_code): New function.
9335 (setup_ccl_program): Function type changed from `void' to `int'.
9336 Resolve symbols in CCL_PROG.
9337 (Fccl_program_p): New function.
9338 (Fccl_execute): Get compiled CCL code by just calling
9339 setup_ccl_program.
9340 (Fccl_execute_on_string): Likewise.
9341 (Fregister_ccl_program): Adjusted for the change of
9342 Vccl_program_table.
9343
9344 * coding.c (setup_coding_system): Get compiled CCL code by just
9345 calling setup_ccl_program.
9346
9347 * xterm.c (x_find_ccl_program): Get compiled CCL code by just
9348 calling setup_ccl_program.
9349
9350 * w32fns.c (w32_find_ccl_program): Get compiled CCL code by just
9351 calling setup_ccl_program.
9352
93531999-07-23 Gerd Moellmann <gerd@gnu.org>
9354
9355 * xfaces.c (frame_update_line_height): Just use the height of the
9356 frame's fontset or font, instead of taking face fonts into
9357 account.
9358
9359 * xdisp.c (get_next_display_element): Display DEL as `^?'.
9360
93611999-07-23 Richard M. Stallman <rms@gnu.org>
9362
9363 * window.c (Fsplit_window): For default size, round up for left window.
9364
93651999-07-21 Joe Ramey <ramey@ti.com>
9366
d7d0dac0 9367 * filelock.c (lock_if_free): Return -1 if check_lock_owner
26901792
DL
9368 has returned -1 (lockfile exists but is not a symlink?).
9369
93701999-07-20 Gerd Moellmann <gerd@gnu.org>
9371
9372 * xterm.c (x_draw_bar_cursor): Use scratch_cursor_gc to
9373 because of a change in cursor_gc made in 20.4.
9374
93751999-07-19 Gerd Moellmann <gerd@gnu.org>
9376
9377 * xterm.c (x_calc_absolute_position): Subtract menu bar height
9378 for YNegative, if using X toolkit.
9379
427ec082 9380 * xfns.c (x_real_positions): Don't subtract window borders
26901792
DL
9381 from positions returned.
9382
93831999-07-17 Gerd Moellmann <gerd@gnu.org>
9384
9385 * xrdb.c (x_load_resources): Set double-click time defaults
9386 for Motif list boxes from double-click-time.
9387
9388 * fns.c (Vhash_table_tests): Remvoed.
9389 (Qhash_table_test): New.
9390 (syms_of_fns): Initialize Qhash_table_test.
9391 (Fmake_hash_table): Look up user-defined tests in symbol prop
9392 `hash-table-test'.
9393 (Fdefine_hash_table_test): Store test and hash function as
9394 symbol prop `hash-table-test'.
9395 (make_hash_table): Add parameters user_test and user_hash.
9396
9397 * window.c (set_window_buffer): Set window margins for tty
9398 frames, too.
9399 (Fset_window_margins): Ditto.
9400
9401 * term.c (append_glyph): Use glyph area of iterator instead of
9402 always TEXT_AREA.
9403
9404 * dispnew.c (update_frame_1): Add left margin width to cursor
9405 hpos.
9406 (direct_output_for_insert): Ditto.
9407 (direct_output_forward_char): Ditto.
9408
9409 * dispnew.c (adjust_glyph_matrix): Set glyph matrix' top_line_p.
9410
9411 * dispextern.h (struct glyph_matrix): Add top_line_p.
9412
94131999-07-16 Gerd Moellmann <gerd@gnu.org>
9414
9415 * frame.h (FRAME_WINDOW_REDISPLAY_P): Removed. Use FRAME_WINDOW_P
9416 instead.
9417
9418 * fns.c (cmpfn_eq): Add hash code parameters.
9419 (cmpfn_eql): Ditto.
9420 (cmpfn_equal): Ditto, and compare hash codes before calling Fequal.
9421 (cmpfn_user_defined): Likewise.
9422
94231999-07-15 Gerd Moellmann <gerd@gnu.org>
9424
9425 * lisp.h (DEFAULT_REHASH_THRESHOLD): Changed to 0.8.
9426
9427 * fns.c (maybe_resize_hash_table): Correct computation of
9428 index vector size.
9429 (make_hash_table): Ditto.
9430 (Fmakehash): New.
9431
9432 * xdisp.c (echo_area_display): Don't call redraw_garbaged_frames.
9433
9434 * alloc.c (gc_sweep): Call sweep_weak_hash_tables.
9435 (survives_gc_p): Make it externally visible.
9436 (mark_object): Ditto.
9437
9438 * fns.c (remove_hash_entry): Removed.
9439 (sweep_weak_hash_tables): New.
9440
9441 * print.c (print): Print more information about hash tables.
9442
9443 * xfns.c (image_spec_hash): Removed.
9444 (lookup_image): Use sxhash instead of image_spec_hash.
9445 (image_spec_equal_p): Removed.
9446 (lookup_image): Use Fequal instead of image_spec_equal_p.
9447
94481999-07-14 Gerd Moellmann <gerd@gnu.org>
9449
9450 * lisp.h (P_): Moved to top of file.
9451
9452 * fns.c (make_hash_table): Set new members.
9453
9454 * alloc.c (mark_object): Mark hash table's user_hash_function.
9455 Mark index vector for weak hash tables.
9456
9457 * lisp.h (struct Lisp_Hash_Table): Add user_cmp_function,
9458 user_hash_function, cmpfn, and hashfn.
9459
9460 * fns.c (build_hash): Removed.
9461 (hash_test): Removed.
9462 (cmpfn_eq, cmpfn_eql, cmpfn_equal, cmpfn_user_defined): New.
9463 (hashfn_eq, hashfn_eql, hashfn_equal, hashfn_user_defined): New.
9464
94651999-07-13 Gerd Moellmann <gerd@gnu.org>
9466
9467 * alloc.c (survives_gc_p): New.
9468
9469 * print.c (print): Add hash table handling.
9470
9471 * alloc.c (mark_object): Add code to mark hash tables.
9472
9473 * lisp.h (GC_HASH_TABLE_P): New.
9474
9475 * emacs.c (main): Call init_fns.
9476
9477 * fns.c (init_fns): New.
9478
9479 * fns.c: Add hash table implementation.
9480
9481 * lisp.h (PVEC_HASH_TABLE): New.
9482 (struct Lisp_Hash_Table): New.
9483 (XHASH_TABLE): New.
9484 (XSET_HASH_TABLE): New.
9485 (HASH_TABLE_P): New.
9486 (CHECK_HASH_TABLE): New.
9487 (DEFAULT_HASH_SIZE): New.
9488 (DEFAULT_REHASH_THRESHOLD): New.
9489 (DEFAULT_REHASH_SIZE): New.
9490
9491 * xterm.c (x_draw_glyphs): Add parameters real_start and real_end.
9492 (x_write_glyphs): Compute overwritten cursor using real start
9493 and end positions of display.
9494 (x_insert_glyphs): Ditto.
9495
94961999-07-10 Gerd Moellmann <gerd@gnu.org>
9497
9498 * keyboard.c (read_char): Use message3_nolog to show help-echo.
9499
9500 * dispnew.c (blank_row): Add y-position as parameter. Compute
9501 visible height.
9502
9503 * xdisp.c (next_element_from_string): Give padding spaces
9504 a position of -1.
9505
427ec082 9506 * dispnew.c (adjust_glyph_matrix): Some work to support
26901792
DL
9507 marginals areas on tty frames in a future version.
9508 (allocate_matrices_for_frame_redisplay): Ditto.
9509
9510 * xdisp.c (display_line): At ZV, set glyph row's displays_text_p
9511 to zero if number of glyphs in the row is <= 1.
9512
95131999-07-09 Gerd Moellmann <gerd@gnu.org>
9514
9515 * dispnew.c (buffer_posn_from_coords): Take left marginal area
9516 into account.
9517
9518 * xdisp.c (handle_display_prop): Don't reset area if handing
9519 a property from a string that came from a `display' property.
9520 (handle_single_display_prop): Don't handle recursive `display'
9521 properties.
9522 (handle_single_display_prop): Handle some display property
9523 forms for terminal frames.
9524 (Qimage): Moved here from xfns.c.
9525
9526 * dispextern.h (struct it): New field string_from_display_prop_p.
9527
9528 * xterm.c (x_clip_to_row): Don't let clip_rect include top
9529 line.
9530
95311999-07-08 Gerd Moellmann <gerd@gnu.org>
9532
9533 * xdisp.c (handle_single_display_prop): Handle `:when FORM'.
9534
9535 * window.c (set_window_buffer): Set window's vscroll to zero.
9536
9537 * xdisp.c (QCwhen): New.
9538 (display_prop_end): New.
9539 (handle_single_display_prop): Use it.
9540 (debug_method_add): Print buffer name if tracing.
9541 (try_window_reusing_current_matrix): Compute visible height
9542 of reused rows. Fix cursor position calculation in case of
9543 top-line.
9544
9545 * dispextern.h (struct redisplay_interface): Add parameter
9546 cursor_on_p to update_window_end_hook.
9547
9548 * xterm.c (x_update_window_end): Add parameter cursor_on_p.
9549
95501999-07-07 Gerd Moellmann <gerd@gnu.org>
9551
427ec082 9552 * xdisp.c (redisplay_internal): Ensure that redisplayinp_p
26901792
DL
9553 doesn't become negative when decrementing it.
9554
9555 * eval.c (Fsignal): Reset redisplaying_p to zero.
9556
9557 * xdisp.c (try_window_reusing_current_matrix): Call hooks
9558 for window update.
9559 (try_window_id): Ditto.
9560
9561 * xterm.c (x_clear_end_of_line): Handle top-line correctly.
9562 (x_scroll_run): Ditto.
9563 (any_help_event_p): New.
9564 (x_initialize): Set it to zero.
9565 (XTread_socket): Clear help echo only if any_help_event_p.
9566
9567 * xdisp.c (init_iterator): Set top_line_p.
9568 (start_display): Use correct initial y if top-line is present.
9569 (make_cursor_line_fully_visible): Bug fixes for top-line.
9570 (try_scrolling): Ditto.
9571 (try_window_reusing_current_matrix): Ditto.
9572
9573 * dispextern.h (struct it): Add top_line_p.
9574
9575 * dispnew.c (shift_glyph_matrix): Move some computations out
9576 of the loop.
9577
427ec082 9578 * dispnew.c (margin_glyphs_to_reserve): Use NUMBERP and
26901792
DL
9579 XFLOATINT.
9580
95811999-07-06 Gerd Moellmann <gerd@gnu.org>
9582
9583 * dispnew.c (update_frame_1): When setting cursor in echo area,
9584 skip only over padding spaces at the end.
9585
9586 * xfaces.c (realize_tty_face): Set face's font_name field to
9587 "tty".
9588
9589 * term.c (update_end): Turn cursor on only if selected window's
9590 cursor_off_p flag is not set.
9591
95921999-07-05 Gerd Moellmann <gerd@gnu.org>
9593
9594 * term.c (TS_cursor_visible): Renamed from TS_visual_mode.
9595 (TS_cursor_normal): Renamed from TS_end_visual_mode.
9596 (TS_cursor_invisible): New.
9597 (term_init): Initialize TS_cursor_invisible.
9598 (tty_hide_cursor): New.
9599 (tty_show_cursor): New.
9600 (update_end): Show tty cursor.
9601 (update_begin): Hide tty cursor to prevent cursor flickering
9602 during redisplays triggered by timers (stealth fontification).
9603
9604 * keyboard.c (make_lispy_event) <TOOLBAR_EVENT>: Apply modifiers.
9605
9606 * xterm.c (XTread_socket) [USE_MOTIF] <KeyPress>: Catch events
9607 in scroll bars.
9608 (x_handle_toolbar_click): Set modifier bits.
9609
96101999-07-04 Gerd Moellmann <gerd@gnu.org>
9611
9612 * keyboard.c (kbd_store_ptr): Declare it as a volatile pointer
9613 instead of a pointer to a volatile input_event.
427ec082 9614 (kbd_buffer_store_event): Remove volatile modifier from
26901792
DL
9615 declaration of local variable `sp'.
9616 (Fdiscard_input): Don't cast when assigning kbd_store_ptr
9617 to kbd_fetch_ptr.
9618
96191999-07-03 Gerd Moellmann <gerd@gnu.org>
9620
9621 * xdisp.c (try_window_id): Set beg_unchanged and end_unchanged
9622 only if buffer is modified. Return quickly if changes are
9623 above window start.
9624
96251999-07-02 Gerd Moellmann <gerd@gnu.org>
9626
9627 * dispextern.h (HSCROLL_WINDOWS): Removed.
9628
9629 * xdisp.c (mark_window_display_accurate): Don't set
9630 w->region_showing.
9631 (redisplay_internal): Don't call redraw_garbaged_frames.
9632
96331999-07-01 Gerd Moellmann <gerd@gnu.org>
9634
9635 * xdisp.c (echo_area_display): Don't display truncation marks
9636 for messages because 20.4 doesn't do it either.
9637 (redisplay_window): Case same window start. Instead of giving
9638 up when cursor is partially visible, make it fully visible.
9639 (mark_window_display_accurate): Some cleanup. Record window's
9640 last cursor information.
9641 (debug_method_add): Improved.
9642 (redisplay_internal): Record last cursor info only if not
9643 consider_all_windows_p.
9644
9645 * dispnew.c (update_window): Update top line after scrolling.
9646 (blank_row): Renamed from make_empty_enabled_row.
9647 (increment_glyph_row_buffer_positions): Increment positions
9648 in buffers, only.
9649
9650 * window.c (Fcoordinates_in_window_p): Add top-line to doc
9651 string.
9652
96531999-06-30 Gerd Moellmann <gerd@gnu.org>
9654
9655 * dispnew.c (update_window): Check that updated row is visible.
9656
9657 * xterm.c (x_draw_row_bitmaps): Check for invisible rows at
9658 top of window differently.
9659
9660 * xdisp.c (try_window_reusing_current_matrix): Don't do it
9661 if region is showing.
9662
9663 * dispnew.c (adjust_glyph_matrix): Check w->vscroll when
9664 avoiding matrix reallocation. Set window_vscroll in matrix.
9665
9666 * dispextern.h (struct glyph_matrix): Add member window_vscroll.
9667
26901792
DL
9668 * xdisp.c (debug_method_add): New.
9669 (debug_redisplay_method): Removed.
9670 (try_window_reusing_current_matrix): Handle case where old
9671 window start is the same as new window start.
9672
9673 * dispextern.h (struct glyph_matrix) [GLYPH_DEBUG]: Make `method'
9674 an array instead of a pointer.
9675
26901792
DL
9676 * xfns.c (Fx_show_tip): Undo previous change.
9677
9678 * xterm.c (x_append_glyph): Clear glyph->u.val.
9679
9680 * dispextern.h (struct glyph): Increase size of face_id bit-field
9681 for CHAR_GLYPH to 12.
9682
96831999-06-29 Gerd Moellmann <gerd@gnu.org>
9684
9685 * xfaces.c (x_charset_registry): Make it externally visible.
9686
96871999-06-28 Gerd Moellmann <gerd@gnu.org>
9688
427ec082 9689 * dispnew.c (update_window): Use mode_line_p flag of rows
26901792
DL
9690 instead of WINDOW_WANTS_MODELINE_P.
9691
9692 * xterm.c (clear_mouse_face): Make externally visible.
9693
9694 * xfns.c (Fx_show_tip): Clear mouse face before showing tip.
9695
9696 * xterm.c (expose_line): Handle exposure of top-lines.
9697
9698 * xterm.c (XTframe_up_to_date): Don't call note_mouse_highlight
9699 if mouse_face_mouse_frame is null.
9700
9701 * xdisp.c (redisplay_window): If window is echo_area_window,
9702 and update_mode_line is set, update menubar and toolbar.
9703
9704 * dispnew.c (space_glyph): Set its charpos to -1.
9705 (update_frame_1): Ignore trailing padding spaces.
9706
9707 * xdisp.c (next_element_from_c_string): Set position of padding
9708 glyphs to -1.
9709
97101999-06-27 Gerd Moellmann <gerd@gnu.org>
9711
9712 * xfns.c (x_laplace_read_row): Use XQueryColors instead of
9713 XQueryColor.
9714
9715 * xdisp.c (display_menu_bar): Remove unwarranted assertion.
9716 (set_cursor_from_row): Skip over glyphs having a null object at
9717 the start of rows.
9718 (insert_left_trunc_glyphs): Use charpos < 0 to indicate truncation
9719 glyphs.
9720 (handle_invisible_prop): Compute next change only when needed.
9721 (handle_face_prop): Don't correct DEFAULT_FACE_ID if in the mode
9722 line.
9723
97241999-06-26 Gerd Moellmann <gerd@gnu.org>
9725
9726 * xrdb.c (x_load_resources): Don't set resource for double-click
9727 time.
9728
9729 * xdisp.c (try_window_id): Return quickly if all changes are
9730 below the window's current matrix end.
9731
9732 * dispextern.h (MATRIX_ROW_PARTIALLY_VISIBLE_P): Remove window
9733 parameter.
9734
9735 * xdisp.c (try_window_reusing_current_matrix): Set no_scrolling_p
9736 in desired not in current matrix.
9737 (try_window_reusing_current_matrix): Rotate matrices starting
9738 at start_vpos instead of 0.
9739
9740 * xterm.c (expose_window): Use window_text_bottom_y.
9741 (fast_find_position): Ditto.
9742
9743 * xdisp.c (redisplay_window): Use window_text_bottom_y.
9744 (try_window_reusing_current_matrix): Ditto.
9745 (get_last_unchanged_at_beg_row): Ditto.
9746 (init_iterator): Ditto.
9747
9748 * dispnew.c (allocate_matrices_for_window_redisplay): Allocate one
9749 more row.
9750 (check_matrix_invariants): Use window_text_bottom_y.
9751 (update_window): Ditto.
9752 (scrolling_window): Ditto.
9753
9754 * xdisp.c (window_text_bottom_y): New.
9755
97561999-06-25 Gerd Moellmann <gerd@gnu.org>
9757
9758 * xterm.c (XTread_socket): Set mouse_face_frame to zero after
9759 clearing mouse face.
9760 (XTread_socket) <EnterNotify> [LESSTIF_VERSION]: If
9761 event.xcrossing.focus is not set, and focus is in the menu bar,
9762 set focus frame as if event.xcrossing.focus were set.
9763
97641999-06-24 Gerd Moellmann <gerd@gnu.org>
9765
9766 * keyboard.c (make_lispy_event): Handle mouse on top lines.
9767 * keyboard.c (make_lispy_movement): Ditto.
9768
9769 * window.c (coordinates_in_window): Return 4 if on top line.
9770 (Fcoordinates_in_window_p): Return `top-line' if on top line.
9771
9772 * xdisp.c (window_box_height): Subtract top line height.
9773 (window_box): Add top line height to top y position if top line
9774 exists.
9775 (init_iterator): If base_face_id is TOP_LINE_FACE_ID, set row to
9776 the top line row of the window. Set initial y-position to
9777 window's top line height plus delta.
9778 (start_display): Choose start glyph row depending on whether
9779 window has a top line.
9780 (try_scrolling): Take top line height into account for aggressive
9781 scrolling.
9782 (compute_window_start_on_continuation_line): Take top line into
9783 account.
427ec082 9784 (redisplay_window): Ditto. If top line height has changed,
26901792
DL
9785 trigger a new redisplay.
9786 (try_window_reusing_current_matrix): Take top line into account.
9787 (find_last_row_displaying_text): Ditto.
9788 (get_last_unchanged_at_beg_row): DItto.
9789 (try_window_id): Ditto.
9790 (compute_line_metrics): Ditto.
9791
9792 * dispnew.c (shift_glyph_matrix): Compute visible row height
9793 taking top line of window into account.
9794 (update_window): Update top line. If scrolling_window detects
9795 that all rows are equal, only set cursor.
9796 (update_window_line): Call after_update_window_line_hook if
9797 mode_line_p flag of rows has changed.
9798 (scrolling_window): Add parameter top_line_p. Return -1 if
9799 all rows are equal.
9800 (mode_line_string): Add parameter mode_line_p. Handle strings
9801 in top lines.
9802
9803 * dispextern.h (MATRIX_TOP_LINE_ROW): New.
9804 (MATRIX_FIRST_TEXT_ROW): New.
9805 (MATRIX_ROW_PARTIALLY_VISIBLE_P): Use row's visible_height.
9806 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_TOP_P): New.
9807 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_BOTTOM_P): New.
9808 (MATRIX_TOP_LINE_HEIGHT): New.
9809 (CURRENT_MODE_LINE_HEIGHT): Use estimate_mode_line_height.
9810 (CURRENT_TOP_LINE_HEIGHT): New.
9811 (DESIRED_TOP_LINE_HEIGHT): New.
9812 (WINDOW_DISPLAY_TOP_LINE_HEIGHT): New.
9813 (WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE): Replaces
9814 WINDOW_DISPLAY_TEXT_AREA_PIXEL_HEIGHT.
9815 (WINDOW_DISPLAY_TEXT_HEIGHT): New.
9816
9817 * xterm.c (x_after_update_window_line): Don't draw bitmaps for top
9818 lines.
9819 (x_draw_row_bitmaps): Take top line into account when clearing
9820 bitmap area.
9821 (x_estimate_mode_line_height): Replacement for
9822 x_frame_mode_line_height.
9823 (x_get_glyph_string_clip_rect): Take top line into account.
9824 (x_clear_end_of_line): Ditto.
9825 (note_mode_line_highlight): Add parameter mode_line_p. Handle
9826 top lines.
9827 (note_mouse_highlight): Call note_mode_line_highlight for top lines.
9828 (x_erase_phys_cursor): Take top line into account.
9829
9830 * xdisp.c (window_box_height): Subtract top line height if
9831 window wants a top line.
9832 (display_mode_lines): New.
9833 (redisplay_window): Call it.
9834 (display_mode_line): Add parameters face_id and format.
9835
9836 * dispextern.h (CURRENT_TOP_LINE_HEIGHT): New.
9837 (MATRIX_TOP_LINE_HEIGHT): New.
9838
9839 * xterm.c (x_frame_mode_line_height): Add parameter face_id.
9840
9841 * term.c (estimate_mode_line_height): Renamed from
9842 frame_mode_line_height. Add parameter face_id.
9843 (estimate_mode_line_height_hook): Renamed from
9844 frame_mode_line_height_hook.
9845 (produce_special_glyphs_hook): Removed.
9846 (produce_glyphs_hook): Removed.
9847
98481999-06-23 Gerd Moellmann <gerd@gnu.org>
9849
9850 * dispextern.h (WINDOW_WANTS_TOP_LINE_P): New.
9851 (struct glyph_row): Add mode_line_p.
9852
9853 * xfaces.c (realize_basic_faces): Realize face `top-line'.
9854 (Qtop_line): New.
9855 (syms_of_xfaces): Initialize Qtop_line.
9856
9857 * dispextern.h (TOP_LINE_FACE_ID): New.
9858
9859 * buffer.c (init_buffer_once): Set default for
9860 top_line_format to nil.
9861 (init_buffer_once): Init top_line_format.
9862 (default-top-line-format): New.
9863 (top-line-format): New buffer-local variable.
9864
9865 * buffer.h: Add top_line_format.
9866
9867 * xdisp.c (overlay_arrow_changed_p): Removed because not used.
9868
98691999-06-17 Dave Love <fx@gnu.org>
9870
9871 * xfns.c: Move the PNG section before the JPEG one to avoid
9872 problems surrounding setjmp.h/png.h on GNU/Linux.
427ec082 9873
26901792
DL
98741999-06-17 Gerd Moellmann <gerd@gnu.org>
9875
9876 * xfns.c (x_kill_gs_process): Don't free colors.
9877
98781999-06-17 Dave Love <fx@gnu.org>
9879
9880 * s/gnu-linux.h: Zap spurious ~.
9881
98821999-06-16 Gerd Moellmann <gerd@gnu.org>
9883
9884 * xfns.c (gif_load): Improve multi-image support.
9885
98861999-06-15 Gerd Moellmann <gerd@gnu.org>
9887
9888 * xfns.c (gif_load): Support multi-image files.
9889
9890 * Makefile.in (LIBGIF): Use libungif.
9891
9892 * configure.in (HAVE_GIF): Use libungif instead of libgif
9893 because the former doesn't contain patented compression code.
9894
9895 * xdisp.c (compute_window_start_on_continuation_line): Don't
9896 do it if line start is too far away from window start.
9897
98981999-06-14 Gerd Moellmann <gerd@gnu.org>
9899
9900 * buffer.c (init_buffer_once): Set buffer_local_flags for
9901 scroll_*_aggressively.
9902 (syms_of_buffer): Add DEFVAR_PER_BUFFER for scroll-*-aggressively.
9903 (init_buffer_once): Set defaults for these variables.
9904 (syms_of_buffer): Add default-scroll-*-aggressively.
9905
9906 * buffer.h (scroll_up_aggressively): New.
9907 (scroll_down_aggressively): New.
9908
9909 * Makefile.in (LIBPNG): Add -lz -lm in case we're linking with
9910 a static PNG library.
9911
9912 * configure.in (HAVE_PNG): Add -lz -lm when checking for PNG lib
9913 in case it's a static library.
9914
9915 * Makefile.in (ctagsfiles): Split so that files starting
9916 with an `x' are found before files starting with `w32'.
9917 (ctagsfiles1): New.
9918 (ctagsfiles2): New.
9919 (TAGS): Use ctagsfiles[12] instead of ctagsfiles.
9920
9921 * xdisp.c (compute_window_start_on_continuation_line): New.
9922 (redisplay_window): Use it.
9923 (INFINITY): New.
9924 (reseat_to_string): Use it.
9925 (hscroll_window_tree): Ditto.
9926 (compute_window_start_on_continuation_line): Ditto.
9927 (redisplay_window): Don't force display with a new window start.
9928
99291999-06-06 Gerd Moellmann <gerd@gnu.org>
9930
9931 * xfns.c (x_report_frame_params): Don't report `outer-window-id'
9932 if widget not present.
9933
9934 * xdisp.c (prepare_menu_bars): Ignore tooltip frame.
9935
99361999-06-04 Gerd Moellmann <gerd@gnu.org>
9937
9938 * xfaces.c (recompute_basic_faces)[GLYPH_DEBUG]: Check return
9939 value of realize_basic_faces.
9940 (load_face_font_or_fontset): Store full font name in face.
9941 (realize_default_face): Use full font name.
9942
26901792
DL
9943 * xterm.c (x_produce_glyphs): Set member char_to_display.
9944 (x_append_glyph): Store char_to_display in glyphs.
9945
9946 * dispextern.h (struct it): Add char_to_display.
9947
9948 * xfns.c (x_set_font): Don't call face-set-after-frame-default
9949 if faces haven't been initialized.
9950 (Fx_create_frame): Call face-set-after-frame-default after
9951 faces have been initialized, and widget has been created.
9952
9953 * puresize.h (BASE_PURESIZE): Increased.
9954
99551999-06-01 Gerd Moellmann <gerd@gnu.org>
9956
9957 * xfaces.c (set_lface_from_font_name): Add parameter force_p.
9958 (Finternal_set_lisp_face_attribute): If frame is t when
9959 :font attribute is set, use the selected frame.
9960 (clear_face_cache): Add parameter clear_fonts_p.
9961 (Fclear_face_cache): Add optional parameter thorougly.
9962
9963 * xfaces.c (face_numeric_value): Return -1 if symbol is not
9964 in table.
9965 (Fclear_face_cache): New.
9966 (choose_face_fontset_font): If fontset doesn't contain font
9967 pattern for the given charset, use CHARSET_ASCII.
9968 (Finternal_set_lisp_face_attribute): Fix handling of nil
9969 stipple attribute.
9970 (Finternal_set_lisp_face_attribute): Fix handling of changing
9971 font-related face attributes of the default face.
9972 (set_lface_from_font_name): Set only attributes that aren't
9973 specified.
9974
99751999-05-31 Gerd Moellmann <gerd@gnu.org>
9976
9977 * xfaces.c (SCALABLE_FONTS): Define this to enable scalable
9978 font support.
9979 (Vscalable_fonts_allowed) [SCALABLE_FONTS]: New.
9980 (x_face_list_fonts): Add parameter scalable_fonts_p. Handle
9981 scalable fonts depending on the setting of SCALABLE_FONTS.
9982 (first_font_matching): List more than one font to find the
9983 first non-scalable matching font.
9984 (sorted_font_list): Let x_face_list_fonts return scalable fonts
9985 depending on SCALABLE_FONTS.
9986 (better_font_p): New parameter compare_pt_p. If zero, don't
9987 compare point sizes of fonts.
9988 (exact_face_match_p) [SCALABLE_FONTS]: New.
9989 (build_scalable_font_name) [SCALABLE_FONTS]: New.
9990 (may_use_scalable_font_p) [SCALABLE_FONTS]: New.
9991 (best_matching_font) [SCALABLE_FONTS]: Handle scalable fonts.
9992 (syms_of_xfaces): Add scalable-fonts-allowed.
9993
99941999-05-26 Gerd Moellmann <gerd@gnu.org>
9995
9996 * xfns.c (png_load): Let PNG lib handle gamma. Construct
9997 mask only if image contains simple transparency information.
9998 Otherwise, combine image with frame background color.
9999
10000 * configure.in (--with-png, HAVE_PNG): New.
10001
10002 * config.in (HAVE_PNG): New.
10003
10004 * Makefile.in: Add PNG library.
10005
10006 * xfns.c: Add PNG support.
10007
100081999-05-25 Gerd Moellmann <gerd@gnu.org>
10009
10010 * xdisp.c (init_xdisp): Initialize echo_area_message and
10011 previous_echo_area_message to nil.
10012
10013 * keyboard.c (read_char): Rename local variable echo_area_message
10014 because it shadows the global one.
10015
100161999-05-05 Gerd Moellmann <gerd@gnu.org>
10017
10018 * xterm.c (note_mode_line_highlight): Restructured.
10019
10020 * window.c (coordinates_in_window): Handle windows that don't have
10021 a mode line because their buffer's mode-line-format is nil.
10022 Recognize the mode line under x positions that correspond to
10023 flags areas and left scroll bar.
10024
100251999-05-02 Dave Love <fx@gnu.org>
10026
10027 * xterm.c (note_mouse_highlight): Separate help-echo processing
10028 from check on mouse-face so that it works generally.
10029
100301999-04-21 Gerd Moellmann <gerd@gnu.org>
10031
10032 * sound.c (Fplay_sound): Run hook play-sound-hook.
10033 (Qplay_sound_hook): New.
10034
100351999-04-20 Gerd Moellmann <gerd@gnu.org>
10036
10037 * xdisp.c (update_echo_area): Handle echo_area_message.
10038
100391999-04-19 Gerd Moellmann <gerd@gnu.org>
10040
10041 * editfns.c (Fmessage): Use message3.
10042
10043 * print.c (printchar): Set echo_area_message to nil.
10044 (strout): Ditto.
10045
10046 * minibuf.c (read_minibuf): Reset echo message strings to nil.
10047 (Fminibuffer_completion_help): Ditto.
10048
10049 * keyboard.c (cmd_error_internal): Set echo_areA_message.
10050 (command_loop_1): Test echo_areA_message.
10051 (read_char): Ditto.
10052 (record_menu_key): Set echo_area_message to nil.
10053 (Fexecute_extended_command): Test echo_area_message.
10054 (Fexecute_extended_command): Handle echo_area_message.
10055
10056 * fileio.c (Fdo_auto_save): Handle the case that echo_area_message
10057 is set.
10058
10059 * editfns.c (Fcurrent_message): If echo_area_message is set,
10060 return a substring of that string.
10061
10062 * dispnew.c (direct_output_for_insert): Test echo_area_message
10063 in addition to echo_area_glyphs.
10064 (set_window_cursor_after_update): Ditto.
10065 (update_frame_1): Ditto.
10066
10067 * alloc.c (Fgarbage_collect): Use message3_nolog to display
10068 old Lisp message string.
10069
10070 * xdisp.c (echo_area_message): New.
10071 (previous_echo_area_message): New.
10072 (syms_of_xdisp): Initialize and staticpro new variables.
10073 (echo_area_display): Display echo_area_message if set.
10074 (message2_nolog): Set echo_area_message and
10075 previous_echo_area_message.
10076 (echo_area_display): Set previous_echo_area_message.
10077 (redisplay_internal): Display echo area if echo_area_message
10078 or previous_echo_area_message are set.
10079 (redisplay_preserve_echo_area): Test/set echo_area_message and
10080 previous_echo_area_message.
10081 (redisplay_window): Test echo_area_message.
10082 (message3_nolog): New.
10083 (message3): New.
10084
10085 * editfns.c (Fformat): Add text properties to the result string
10086 from properties of the format string and properties of string
10087 arguments.
10088
10089 * textprop.c (text_property_list): New.
10090 (add_text_properties_from_list): New.
10091 (extend_property_ranges): New.
10092
100931999-03-29 Gerd Moellmann <gerd@gnu.org>
10094
10095 * xfaces.c (Qraised, Qsunken, QCshadow): Removed.
10096 (QCline_width, QCstyle, Qpressed_button, Qreleased_button): New.
10097 Use these symbols for the box face attribute instead of the
10098 removed ones.
10099
101001999-03-12 Gerd Moellmann <gerd@gnu.org>
10101
10102 * xfaces.c (realize_tty_face): Don't set alt_char_p of face.
10103 Correct wrong test for slant.
10104
101051999-03-10 Gerd Moellmann <gerd@gnu.org>
10106
10107 * xfaces.c: Use `unspecified' for unspecified face attributes,
10108 use t and nil for on/off.
10109
101101999-03-06 Gerd Moellmann <gerd@gnu.org>
10111
10112 * buffer.c (syms_of_buffer): Extend doc string of
10113 mode-line-format.
10114
10115 * xfaces.c (x_face_list_fonts): New parameter try_alternatives_p.
10116 (first_font_matching): New.
10117 (set_lface_from_font_name): Use it if font name is a pattern.
10118 (font_field_wildcard_p): Removed.
10119
10120 * dispnew.c (shift_glyph_matrix): Add `window' parameter.
10121 Recompute visible height of rows.
10122
10123 * xterm.c (note_mouse_highlight): Reorder code for help-echo.
10124 Don't accept non-strings for help-echo from overlays.
10125
101261999-03-04 Dave Love <fx@gnu.org>
10127
10128 * xterm.c (note_mouse_highlight): Check overlays for help-text
10129 property.
10130 (XTread_socket): Fix compiler warning.
427ec082 10131
26901792
DL
101321999-03-05 Gerd Moellmann <gerd@gnu.org>
10133
427ec082 10134 * xterm.c (note_mouse_highlight): Don't restrict number of
26901792
DL
10135 overlay to 10. Call overlays_at so that it doesn't try to
10136 extend the vector.
10137
10138 * xdisp.c (compute_line_metrics): Compute glyph row's visible
10139 height.
10140
10141 * dispnew.c (row_equal_p): Compare visible row height, only.
10142 (update_text_area): Draw whole line if visible heights of
10143 rows differ.
10144 (update_window_line): Call after_update_window_line_hook
10145 if visible row height has changed.
10146
10147 * dispextern.h (MATRIX_ROW_VISIBLE_HEIGHT): Removed.
10148 (struct glyph_row): New member visible_height.
10149
10150 * xfaces.c (font_field_wildcard_p): New.
10151 (set_lface_from_font_name): Remove parameter force_p. Accept
10152 font names containing wildcards.
10153
101541999-03-04 Gerd Moellmann <gerd@gnu.org>
10155
10156 * xterm.c (x_after_update_window_line): Clear internal border
10157 when windows_or_buffers_changed.
10158
10159 * dispextern.h (WINDOW_WANTS_MODELINE_P): Return zero if window's
10160 buffer has a nil mode_line_format.
10161
101621999-03-03 Gerd Moellmann <gerd@gnu.org>
10163
10164 * xterm.c (x_setup_relief_colors): Use either background color
10165 or specified color.
10166
10167 * xfaces.c (realize_x_face): Set face->use_box_color_for_shadows_p.
10168
10169 * dispextern.h (struct face): Add use_box_color_for_shadows_p.
10170
10171 * xterm.c (x_draw_box_rect): New.
10172 (x_draw_glyph_string_box): Renamed from
10173 x_draw_glyph_string_relief. Call x_draw_box_rect.
10174
10175 * xfns.c (QCrelief): New.
10176 (syms_of_xfns): Initialize it.
10177
10178 * dispextern.h (struct glyph): Rename left_shadow_p to
10179 left_box_line_p, right_shadow_p to right_box_line_p.
10180 (MAX_RELIEF_THICKNESS): Removed.
10181 (struct it): Rename members having `relief' in their names
10182 to contain `box' instead.
10183
10184 * xfaces.c (realize_x_face): Handle new box attribute values.
10185 (QCrelief, Qbox): Removed.
10186 (QCshadow, QCcolor, Qraised, Qsunken): New.
10187 (syms_of_xfaces): Initialize new symbols.
10188
101891999-03-02 Gerd Moellmann <gerd@gnu.org>
10190
10191 * dispextern.h (LFACE_RELIEF_INDEX): Removed.
10192
10193 * xfaces.c (LFACE_RELIEF): Removed.
10194 (merge_face_vector_with_property): Remove handling of `:relief'.
10195 (Finternal_set_lisp_face_attribute): Ditto.
10196 (Finternal_set_lisp_face_attribute_from_resource): Ditto.
10197 (Finternal_get_lisp_face_attribute): Ditto.
10198 (realize_default_face): Ditto.
10199 (lface_hash): Don't compute hash from relief.
10200
10201 * dispextern.h (struct face): Replace member `relief' by
10202 `box_line_width'. Add member `box'.
10203 (face_box_type): New.
10204
10205 * xterm.c (x_produce_glyphs): If face has overline, add overline
10206 thickness + 1 to ascent.
10207
102081999-03-01 Gerd Moellmann <gerd@gnu.org>
10209
10210 * xterm.c (x_draw_glyph_string): Draw underline, overline,
10211 strike-through, and boxes.
10212 (x_draw_glyph_string_underline): Removed.
10213
10214 * xfaces.c (QCoverline, QCstrike_through, QCbox): New.
10215 (Qoverline, Qstrike_through, Qbox): New.
10216 (syms_of_xfaces): Define these symbols.
10217 (check_lface_attrs): Add checks for overline, strike-through,
10218 and box.
10219 (Finternal_set_lisp_face_attribute): Set new attributes.
10220 (LFACE_OVERLINE, LFACE_STRIKE_THROUGH, LFACE_BOX): New.
10221 (load_color): Handle new attributes.
10222 (realize_x_face): Ditto.
10223 (merge_face_vector_with_property): Ditto.
10224 (free_face_colors): Ditto.
10225 (Finternal_set_lisp_face_attribute_from_resource): Ditto.
10226 (Finternal_get_lisp_face_attribute): Ditto.
10227 (Finternal_lisp_face_attribute_values): Ditto.
10228
10229 * dispextern.h (lface_attribute_index): Add enumerators for
10230 overstrike, strike-through, and box.
10231 (struct face): Add members for overline, strike-through, and
10232 box.
10233
102341999-02-17 Dave Love <fx@gnu.org>
10235
10236 * s/gnu-linux.h s/gnu.h s/irix5-0.h s/netbsd.h s/sco4.h s/sco5.h
10237 s/template.h (NARROWPROTO): Define on the basis of relevant X cf
10238 files.
10239
102401999-02-16 Gerd Moellmann <gerd@gnu.org>
10241
10242 * keyboard.c (toolbar_items): Call access_keymap with third
10243 parameter 1, so that we don't get inherited toolbar item
10244 definitions.
10245
10246 * xdisp.c (redisplay_internal): In optimization 1, don't decrement
10247 the window end vpos when in empty first line of window.
10248
102491999-02-15 Gerd Moellmann <gerd@gnu.org>
10250
10251 * xfaces.c (set_font_frame_param): New.
10252 (Finternal_set_lisp_face_attribute): Call it.
10253
10254Sun Feb 14 10:54:02 1999 Masatake Yamato <masata-y@is.aist-nara.ac.jp>
10255
10256 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
10257 Accept specifications of color for underline.
10258
102591999-02-13 Gerd Moellmann <gerd@gnu.org>
10260
10261 * xfaces.c (Finternal_set_lisp_face_attribute): If parameter
10262 `frame' is t, operate on face defaults for new frames. If it
10263 is nil, operate on the selected frame.
10264
102651999-02-12 Gerd Moellmann <gerd@gnu.org>
10266
10267 * dispnew.c (check_matrix_invariants): Put it in #if 0.
10268 (update_window): Put the call to check_matrix_invariants in #if 0.
10269
10270Sun Feb 7 09:58:49 1999 Masatake Yamato <masata-y@is.aist-nara.ac.jp>
10271
10272 * dispextern.h: Remove all else block of UNDERLINE_COLOR.
10273 Remove definition of UNDERLINE_COLOR.
10274
10275Mon Jan 4 04:43:41 1999 Masatake Yamato <masata-y@is.aist-nara.ac.jp>
10276
10277 * xfaces.c (free_face_colors): Free the color for underline.
10278
10279 * xterm.c (x_draw_glyph_string_underline): Set the color for underline
10280 to the GC.
10281
10282Sun Jan 3 08:41:10 1999 Masatake Yamato <masata-y@is.aist-nara.ac.jp>
10283
10284 * dispextern.h (UNDERLINE_COLOR): Defined.
10285 (struct face): Added two new members.
10286 underline_color, underline_defaulted_p.
10287
427ec082 10288 * xfaces.c (merge_face_vector_with_property):
26901792 10289 (check_lface_attrs): Accept the string value for underline.
427ec082 10290 (Finternal_set_lisp_face_attribute): Likewise.
26901792
DL
10291
10292 * xfaces.c (load_color): Change the last argument type to enum
10293 lface_attribute_index from int. And addec code for underling coloring.
10294 (load_face_colors): Pass LFACE_*_INDEX to load_color.
427ec082 10295
26901792
DL
102961999-02-12 Gerd Moellmann <gerd@gnu.org>
10297
10298 * xfns.c (Fx_image_header): Removed.
10299
103001999-02-07 Gerd Moellmann <gerd@gnu.org>
10301
10302 * xterm.c: Don't include <bitmaps/gray>.
10303 (x_term_init): Use gray_bitmap_width and gray_bitmap_height.
10304
10305 * xfns.c (Fx_image_header): Add missing `\n\'.
10306 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits): New.
10307
103081999-02-01 Gerd Moellmann <gerd@gnu.org>
10309
10310 * xterm.c (x_scroll_bar_create): Set background pixel from
10311 specified scroll bar color.
10312 (x_scroll_bar_set_handle): Use scroll bar foreground color.
10313
10314 * xfns.c (x_set_scroll_bar_foreground): Remove all scroll bars.
10315 (x_set_scroll_bar_background): Ditto.
10316
10317 * xterm.c (x_create_toolkit_scroll_bar): Set scroll bar colors.
10318
10319 * xfns.c (x_default_scroll_bar_color_parameter): New.
10320 (Fx_create_frame): Call it.
10321
103221999-01-31 Gerd Moellmann <gerd@gnu.org>
10323
10324 * xfns.c (Fx_create_frame): Initialize scroll bar pixel color
427ec082 10325 values in x_output structure.
26901792
DL
10326 (Qscroll_bar_foreground, Qscroll_bar_background): New.
10327 (syms_of_xfns): Initialize these symbols.
10328
10329 * xterm.h (struct x_output): Add scroll bar pixel colors.
10330
10331 * xfns.c (x_frame_parms): Add entries for scroll bar colors.
10332 (x_set_scroll_bar_foreground): New.
10333 (x_set_scroll_bar_background): New.
10334
26901792
DL
103351999-01-12 Gerd Moellmann <gerd@gnu.org>
10336
10337 * xdisp.c (handle_single_display_prop): New.
10338 (handle_display_prop): Call it.
10339 (handle_raise_prop): Removed.
10340 (handle_height_prop): Removed.
10341 (handle_space_width_prop): Removed.
10342 (handle_face_prop): Remove handling of raised text.
10343 (handle_display_prop): Do it here.
10344
10345 * dispextern.h (DISPLAY_PROP_IDX): Replaces GLYPH_PROP_IDX.
10346 (RAISE_PROP_IDX): Removed.
10347 (HEIGHT_PROP_IDX): Removed.
10348 (SPACE_WIDTH_PROP_IDX): Removed.
10349
10350 * xdisp.c (Qdisplay): Replaces Qglyph.
10351 (handle_display_prop): Formerly handle_glyph_prop.
10352
103531999-01-11 Gerd Moellmann <gerd@gnu.org>
10354
10355 * xdisp.c (reseat_to_string): Set position in display vector to -1.
10356 (handle_stop): Set position in display vector to -1. Don't
10357 check overlay strings when set up to deliver characters from a
10358 display vector.
10359 (set_iterator_to_next): At the end of a run of characters from a
10360 display vector, check whether the display vector display replaces
10361 the display of a character.
10362
103631999-01-05 Gerd Moellmann <gerd@gnu.org>
10364
10365 * xfaces.c (init_frame_faces): Don't realize faces if frame's
10366 X window hasn't been created yet.
10367
103681998-12-06 Gerd Moellmann <gerd@gnu.org>
10369
10370 * sound.c: New.
10371
103721998-12-04 Gerd Moellmann <gerd@gnu.org>
10373
10374 * config.in (HAVE_SOUND): New.
10375
10376 * emacs.c (main): Call syms_of_sound and init_sound.
10377
10378 * Makefile.in (obj): Add sound.o.
10379
10380 * configure.in: Add checks for machine/soundcard.h and sys/soundcard.h.
10381
10382 * config.in (HAVE_MACHINE_SOUNDCARD_H): New.
10383 (HAVE_SYS_SOUNDCARD_H): New.
10384
103851998-12-03 Gerd Moellmann <gerd@gnu.org>
10386
10387 * buffer.h (struct buffer): indicate_empty_lines renamed from
10388 indicate_zv_lines.
10389
10390 * buffer.c (indicate-empty-lines): Renamed from indicate_zv_lines.
10391 (default-indicate-zv-lines): Likewise.
10392
10393 * dispextern.h (struct glyph_row): Rename indicate_zv_line_p
10394 to indicate_empty_line_p.
10395
10396 * xdisp.c (reseat_at_next_visible_line_start): Reset method
10397 to next_element_from_buffer.
10398
10399 * frame.c (make_frame): Set n_current_toolbar_items to 0.
10400
10401 * xdisp.c (handle_face_prop): Allow symbols of the form `N+'
10402 and `N-'.
10403
10404 * xfns.c (xbm_scan): New.
10405 (xbm_read_hexint): Removed.
10406 (xbm_read_bitmap_file_data): Use xbm_scan.
10407
10408 * fileio.c (Finsert_file_contents): Prevent redisplay optimizations.
10409
104101998-12-02 Gerd Moellmann <gerd@gnu.org>
10411
10412 * xfns.c (xbm_read_hexint): New.
10413 (xbm_read_bitmap_file_data): New.
10414 (xbm_load_image_from_file): Call xbm_read_bitmap_file_data
10415 instead of XReadBitmapFileData.
10416
10417 * xdisp.c (handle_raise_prop): Compute voffset from current font.
10418
10419 * xfaces.c (face_with_height): New.
10420
10421 * xdisp.c (eval_handler): Renamed from eval_mode_handler.
10422 (eval_form): Renamed from eval_mode_element.
10423 (handle_face_prop): Use it.
10424 (Qheight): Replaces Qsmaller.
10425 (handle_height_prop): Replaces handle_smaller_prop.
427ec082 10426 (handle_face_prop): If iterator's font_height is not an
26901792
DL
10427 integer, evaluate it to get the font height to use.
10428
10429 * dispextern.h (HEIGHT_PROP_IDX): Replaces SMALLER_PROP_IDX.
10430 (struct it): Use `font_height' instead of `smaller'.
10431
104321998-12-01 Gerd Moellmann <gerd@gnu.org>
10433
10434 * xdisp.c (reseat_1): New.
10435 (reseat): Call it.
10436 (move_it_vertically_backward): Ditto.
10437 (redisplay_window): Don't abort when cursor not found in recenter.
10438
104391998-11-30 Gerd Moellmann <gerd@gnu.org>
10440
10441 * xdisp.c (reseat_at_next_visible_line_start): When not
10442 currently delivering display elements from the current buffer,
10443 restore buffer position first.
10444 (init_from_display_pos): Don't set IT's position from the
10445 position passed to this function.
10446
104471998-11-28 Gerd Moellmann <gerd@gnu.org>
10448
10449 * config.in (PROTO): Removed.
10450
10451 * xterm.h: Change PROTO to P_.
10452
104531998-11-26 Gerd Moellmann <gerd@gnu.org>
10454
10455 * xterm.c (take_vertical_position_into_account): New.
10456 (x_produce_image_glyph): Call it.
10457 (x_produce_stretch_glyph): Ditto.
10458 (x_produce_glyphs): Ditto.
10459 (x_fill_glyph_string): Adjust base line for glyph's voffset.
10460 (x_fill_composite_glyph_string): Ditto.
10461 (x_fill_image_glyph_string): Ditto.
10462 (x_fill_stretch_glyph_string): Ditto.
10463
10464 * xdisp.c (display_line): Always compute row height from
10465 max_ascent and max_descent.
10466
10467 * dispextern.h (struct glyph): Add voffset.
10468 (struct it): Replace height by descent, max_height by max_descent.
10469
10470 * xterm.c (x_append_glyph): Set voffset
10471 (x_append_stretch_glyph): Ditto.
10472 (x_produce_image_glyph): Ditto.
10473 (x_produce_glyphs): Take voffset into account.
10474 (x_produce_image_glyph): Ditto.
10475 (x_produce_stretch_glyph): Ditto.
10476
10477 * dispextern.h (struct it): Add voffset.
10478 * xdisp.c (push_it): Save voffset.
10479 (pop_it): Restore it.
10480
10481 * xdisp.c (it_props): Add entry for `raise'.
10482 (handle_raise_prop): New.
10483
10484 * dispextern.h (RAISE_PROP_IDX): New.
10485
10486 * xdisp.c (Qraise): New.
10487 (syms_of_xdisp): Define Qraised.
10488
10489 * xterm.c (x_scroll_bar_move): Clear to the left and right
10490 of toolkit scroll bars differently.
10491 (x_scroll_bar_move): Removed.
10492 (XTset_vertical_scroll_bar): Move code from x_scroll_bar_move here.
10493
10494 * dispextern.h: Make it compilable --with-x=no.
10495 * alloc.c: Ditto.
10496 * emacs.c: Ditto.
10497 * dispnew.c: Ditto.
10498 * keyboard.c: Ditto.
10499 * term.c: Ditto.
10500 * xdisp.c: Ditto.
10501 * xfaces.c: Ditto.
10502 * xfns.c: Ditto.
10503 * xmenu.c: Ditto.
10504
105051998-11-25 Gerd Moellmann <gerd@gnu.org>
10506
10507 * xterm.c (XTread_socket): Cancel help-echo when leaving frame.
10508
105091998-11-24 Gerd Moellmann <gerd@gnu.org>
10510
10511 * xterm.c (x_set_toolkit_scroll_bar_thumb): When dragging,
10512 update slider size, only.
10513 (xm_scroll_callback): Set dragging member of the scroll bar.
10514 (xt_action_hook): Reset last_scroll_bar_part.
10515 (XTredeem_scroll_bar): Reset bar->dragging to nil.
10516
26901792
DL
10517 * xfns.c (Fx_hide_busy_cursor): Don't try to hide busy cursor
10518 window on newly created frames that don't have one.
10519
105201998-11-23 Gerd Moellmann <gerd@gnu.org>
10521
10522 * xdisp.c (restore_overlay_strings): Removed.
10523 (restore_dpvec): Removed.
10524 (init_from_display_pos): Inline both functions above.
10525
10526 * xfns.c (IMAGE_NON_NEGATIVE_INTEGER_VALUE): New.
10527 (parse_image_spec): Handle it.
10528 (xbm_format): Use it.
10529 (xpm_format): Ditto.
10530 (pbm_format): Ditto.
10531 (jpeg_format): Ditto.
10532 (tiff_format): Ditto.
10533 (gif_format): Ditto.
10534 (gs_format): Ditto.
10535
10536 * xdisp.c (set_window_cursor): Removed.
10537 (redisplay_internal): Case cursor motion in cursor line of
10538 selected window; use set_cursor_from_row.
10539
105401998-11-22 Gerd Moellmann <gerd@gnu.org>
10541
10542 * widget.c (EmacsFrameSetCharSize): Take widget's border width
10543 into account.
10544
105451998-11-21 Gerd Moellmann <gerd@gnu.org>
10546
10547 * xterm.c (expose_frame): Redraw menu bar window.
10548
10549 * xdisp.c (display_menu_bar): Record hpos instead of x-position
10550 in menu item.
10551
10552 * dispnew.c (change_frame_size_1): Use FRAME_TOP_MARGIN instead
10553 of FRAME_TOOLBAR_LINES. Use `f' instead of `frame'.
10554
10555 * widget.c (set_frame_size): Use FRAME_SCROLL_BAR_COLS
10556 to determine vertical_scroll_bar_extra.
10557 (EmacsFrameSetCharSize): Ditto.
10558 * xfns.c (x_figure_window_size): Ditto.
10559
10560 * xterm.c (x_draw_row_bitmaps): Draw in `bitmap-area' face.
10561 (x_draw_bitmap): Ditto.
10562
10563 * dispextern.h (face_id): New id BITMAP_AREA_FACE_ID.
10564 * xfaces.c (realize_basic_faces): Realize it.
10565
105661998-11-20 Gerd Moellmann <gerd@gnu.org>
10567
10568 * xmenu.c (xmenu_show): Add workaround for remaining button grab
427ec082 10569 under LessTif Use the widget of the frame as parent for the
26901792
DL
10570 menu, again.
10571
105721998-11-19 Gerd Moellmann <gerd@gnu.org>
10573
10574 * xterm.c (XTread_socket): Inhibit busy cursor for EnterNotify.
10575 When EnterNotify, don't generate a mouse movement event if
10576 notification is from a busy-cursor child window.
10577
10578 * xterm.h (struct x_output): Add busy_window, remove cursor.
10579
10580 * xfns.c (Fx_show_busy_cursor): Formerly Fx_display_busy_cursor.
10581 Use a transparent window to display the busy-cursor.
10582 (Fx_hide_busy_cursor): Formerly Fx_undisplay_busy_cursor.
10583
105841998-11-17 Gerd Moellmann <gerd@gnu.org>
10585
10586 * xdisp.c (check_window_end): New, for debugging.
10587 (CHECK_WINDOW_END): New.
10588 (try_window_id): Use it.
10589
10590 * xterm.c (process_expose_from_menu): Return int.
10591
10592 * keyboard.c (kbd_buffer_get_event): Set flag to prevent recording
10593 TOOLBAR_EVENT events in last_nonmenu_event.
10594
105951998-11-16 Gerd Moellmann <gerd@gnu.org>
10596
10597 * xdisp.c (redisplay_window): If windows_or_buffers_changed,
10598 window end isn't reliable, so set window_end_valid to nil.
10599 (redisplay_internal): If overlay arrow has changed, set
10600 windows_or_buffers_changed to redisplay thoroughly.
10601
10602 * dispnew.c (adjust_glyph_matrix): Invalidate window end, if
10603 necessary.
10604
10605 * xfns.c (file_dialog_cb): New.
10606 (Fx_file_dialog): New.
10607 * fileio.c (Fread_file_name): Call it.
10608
427ec082 10609 * xrdb.c (x_load_resources): Add default resoures for file
26901792
DL
10610 selection dialog.
10611
106121998-11-14 Gerd Moellmann <gerd@gnu.org>
10613
10614 * xterm.c (note_mouse_highlight): Don't highlight when popup
10615 is active.
10616
26901792
DL
10617 * keyboard.c (timer_check): Inhibit busy cursor around calls to
10618 timer-event-handler. This busy cursor tends to be anoying if
10619 fontifying stealthily.
10620
10621 * dispnew.c (direct_output_for_insert): Give up if current row
10622 contains trailing whitespace.
10623
106241998-11-13 Gerd Moellmann <gerd@gnu.org>
10625
10626 * dispextern.h (prop_idx): Add FONTIFIED_PROP_IDX.
10627
10628 * xdisp.c (handle_fontified_prop): New.
10629 (Vfontification_functions): New.
10630 (Qfontification_functions): New.
10631 (it_props): Add handle_fontified_prop.
10632
106331998-11-12 Gerd Moellmann <gerd@gnu.org>
10634
10635 * xmenu.c (xmenu_show): Use the frame's edit_widget as parent.
10636 Otherwise, under LessTif, after the popup has gone, all button
10637 press events come in for the frame's widget, and release events
10638 come in for the edit_widget.
10639 * xterm.c (XTread_socket): Remove workaround for that problem.
10640 (x_set_toolkit_scroll_bar_thumb): Add workaround for LessTif
10641 XmScrollBarSetValues.
10642 (SET_SAVED_MENU_EVENT): Give it statement form.
10643
26901792
DL
10644 * xfaces.c (display_message): If waiting_for_input, don't display
10645 the message.
10646
10647 * window.c (scroll_command): If not acting on current_buffer,
10648 make redisplay consider all windows.
10649
10650 * xfns.c (Fx_hide_tip): Return t if tooltip was open.
10651
10652 * xdisp.c (handle_glyph_prop): Set it->object for images to
10653 the object having the glyph property.
10654
10655 * xterm.c (x_draw_row_bitmaps): Don't draw if row is completely
10656 invisible.
10657
106581998-11-11 Gerd Moellmann <gerd@gnu.org>
10659
10660 * xterm.h (struct x_display_info): Add gray pixmap. * xterm.c
10661 (x_term_init): Create the gray pixmap.
10662 (x_setup_relief_color): Use it.
10663 (x_get_glyph_string_clip_rect): Draw a toolbar window over the
10664 internal border at the top of a frame.
10665 (x_init_glyph_string): Likewise.
427ec082 10666 (x_draw_glyph_string_relief): Correct right x by 1 pixel for
26901792
DL
10667 full-width lines.
10668 (XTflash): Don't flash the toolbar window.
10669
10670 * xterm.c (XTread_socket): Workaround for LessTif popup menus
10671 in case of ButtonPress events.
10672
106731998-11-10 Gerd Moellmann <gerd@gnu.org>
10674
10675 * xrdb.c (x_load_resources): Add grey background colors as
10676 defaults for menus, scroll bars, and dialogs.
10677
10678 * insdel.c (prepare_to_modify_buffer): Move setting
10679 windows_or_buffers_changed from modify_region here.
10680
10681 * xfns.c (Fx_show_tip): Inhibit redisplay.
10682 (Fx_hide_tip): Ditto.
10683 (Fx_image_header): New.
10684
106851998-11-09 Gerd Moellmann <gerd@gnu.org>
10686
10687 * dispnew.c (clear_window_matrices): Set window_end_valid to nil
10688 when clearing current window matrices.
10689
106901998-11-08 Gerd Moellmann <gerd@gnu.org>
10691
10692 * xdisp.c (handle_glyph_prop): Don't set an iterator's buffer
10693 position from a string position. Use the right end position
10694 if the property spans a whole overlay string.
10695
106961998-11-07 Gerd Moellmann <gerd@gnu.org>
10697
10698 * xmenu.c (menubar_selection_callback): Remove workaround for
10699 Lesstif not calling XmNpopdownCallback because it doesn't
10700 handle the case where users don't select any menu item.
10701
26901792
DL
10702 * insdel.c (modify_region): Set windows_or_buffers_changed.
10703
10704 * buffer.c (set_buffer_internal): Don't set
10705 windows_or_buffers_changed.
10706
26901792
DL
10707 * xmenu.c (HAVE_BOXES): Define if USE_X_TOOLKIT.
10708
26901792
DL
10709 * xmenu.c (menubar_selection_callback): Add workaround for
10710 Lesstif not calling XmNpopdownCallback.
10711
10712 * xdisp.c (eval_mode_element): New.
10713 (eval_mode_handler): New.
10714 (display_mode_element): Use eval_mode_element.
10715
10716 * xdisp.c (display_mode_element): Allow `(:eval FORM)'.
10717 Remove code looking at text props of default value.
10718
10719 * xmenu.c (HAVE_BOXES): Define if using Lucid menus.
10720
26901792
DL
107211998-11-06 Gerd Moellmann <gerd@gnu.org>
10722
427ec082 10723 * xmenu.c (single_submenu): Set button_type of menu to
26901792
DL
10724 BUTTON_TYPE_NONE.
10725 (single_submenu): Likewise for panes and menu items.
10726 (set_frame_menubar): Set button_type of menu bar to none.
10727 (xmenu_show): Likewise.
10728 (single_submenu): Set widget values selected slot.
10729 (xmenu_show): Likewise.
10730
26901792
DL
10731 * xmenu.c (push_menu_item): Add parameters `type' and
10732 `selected'. Store it in menu_items.
10733 (MENU_ITEMS_ITEM_TYPE): New.
10734 (MENU_ITEMS_ITEM_SELECTED): New.
10735 (MENU_ITEMS_ITEM_LENGTH): Increase by two.
10736
10737 * xfns.c (clear_image_cache): Get the current time, before
10738 doing anything.
10739 (cache_image): Set prev pointer of next image.
10740 (clear_image_cache): Clear current matrices if any image was
10741 freed.
10742
10743 * xterm.c (XTread_socket): Set inhibit_busy_cursor.
10744
10745 * xfns.c (x_set_cursor): New.
10746 (Fx_display_busy_cursor): New.
10747 (Fx_undisplay_busy_cursor): New.
10748
10749 * xterm.h (struct x_output): Add busy_cursor.
10750
10751 * xfns.c (Vx_busy_pointer_shape): New.
10752 (x_set_mouse_color): Create busy cursor.
10753
10754 * process.c (wait_reading_process_input): Show and hide busy
10755 cursor.
10756
10757 * keyboard.c (command_loop_1): Display busy cursor.
10758
10759 * eval.c (Fsignal): Hide busy cursor.
10760
10761 * buffer.c (set_buffer_internal): Don't set
10762 windows_or_buffers_changed.
10763
10764 * xterm.c (redo_mouse_highlight): New.
10765
107661998-11-04 Gerd Moellmann <gerd@gnu.org>
10767
26901792
DL
10768 * xfns.c (x_create_x_image_and_pixmap): Add depth parameter.
10769 (x_build_heuritic_mask): New.
10770 (lookup_image): Call it.
10771
10772 * xterm.c (note_toolbar_highlight): Always set up help_echo.
10773 (previous_help_echo): New.
10774 (XTread_socket): Generate help event with nil message when
10775 leaving a region with help-echo.
10776 (note_mouse_highlight): Handle `help-echo' over text.
10777 (XTread_socket): Dispatch VisibilityNotify, CirculateNotify,
10778 CirculateRequest.
10779 (clear_mouse_face): Don't clear if tooltip is shown.
10780 (XTread_socket): Redo mouse-highlight after tooltip is gone.
10781 Avoid SET_FRAME_GARBAGED when tooltip is mapped.
10782
10783 * keyboard.c (Vshow_help_function): New.
10784 (read_char): Use it.
10785
107861998-11-03 Gerd Moellmann <gerd@gnu.org>
10787
10788 * xfns.c (x_create_tip_frame): New.
10789 (Fx_show_tip): New.
10790 (Fx_hide_tip): New.
10791
427ec082 10792 * xterm.c (x_destroy_window): Handle case that we don't have
26901792
DL
10793 a widget.
10794
10795 * dispextern.h (struct glyph_row): Rename no_marginal_areas_p
10796 to full_width_p. Add internal_border_p.
10797
107981998-11-02 Gerd Moellmann <gerd@gnu.org>
10799
10800 * xterm.c (note_mode_line_highlight): Check the charpos of
10801 the glyph under the mouse pointer before accessing text
10802 properties at that position.
10803
108041998-11-01 Gerd Moellmann <gerd@gnu.org>
10805
10806 * xterm.c (x_draw_image_relief): Handle toolbar_button_relief.
10807
10808 * xdisp.c (auto-raise-toolbar-buttons): New.
10809 (build_desired_toolbar_string): Handle the flag.
10810 (toolbar-button-margin): New.
10811 (toolbar-button-relief): New.
10812 (build_desired_toolbar_string): Use margin and relief.
10813
10814 * xterm.c (x_set_toolkit_scroll_bar_thumb): Remove workaround
10815 for FreeBSD.
10816 (note_mode_line_highlight): New.
10817 (note_mouse_highlight): Call it.
10818
108191998-10-31 Gerd Moellmann <gerd@gnu.org>
10820
10821 * s/freebsd.h (NARROWPROTO): New.
10822
10823 * xdisp.c (display_string): New parameter face_string.
10824 (display_mode_element): When displaying a symbol with a string
10825 value, use text properties from the symbol's default value, maybe.
10826
10827 * xrdb.c (x_load_resources): Add font defaults for menus and
10828 dialogs.
10829
108301998-10-30 Gerd Moellmann <gerd@gnu.org>
10831
10832 * xfns.c (Fx_create_frame): Try 12pt Courier font first.
10833
108341998-10-29 Gerd Moellmann <gerd@gnu.org>
10835
10836 * xterm.c (x_produce_glyphs): Fix bug causing glyphs to be
10837 produced for characters with codes < 32 under certain
10838 circumstances.
10839
10840 * xdisp.c (redisplay_window): Handle values of PT in front
10841 of invisible, intangible text.
427ec082 10842 (try_window_id): Set overlay_arrow_seen to zero before
26901792
DL
10843 displaying lines.
10844 (display_mode_element): Assign to glyphs written for a mode
10845 line spec `%x' as object the Lisp format string, as position
10846 the position of the `%' in that string.
10847 (display_string): If displaying a C string, optionally get
10848 the face to use from a Lisp string.
10849
10850 * xterm.c (expose_window_tree): Include mode line height.
10851
10852 * xfns.c (Fx_create_frame): Add toolbar height to frame height.
10853
108541998-10-27 Gerd Moellmann <gerd@gnu.org>
10855
10856 * xterm.c (note_mouse_highlight): Change mouse pointer shape
10857 over mode line.
10858
108591998-10-26 Gerd Moellmann <gerd@gnu.org>
10860
10861 * window.c (coordinates_in_window): Use CURRENT_MODE_LINE_HEIGHT.
10862
10863 * xdisp.c (redisplay_window): If mode line height has changed,
10864 arrange for a thorough immediate redisplay using the correct mode
10865 line height.
10866 (window_box_height): Use CURRENT_MODE_LINE_HEIGHT.
10867
10868 * dispextern.h (MATRIX_MODE_LINE_HEIGHT): New.
10869 (CURRENT_MODE_LINE_HEIGHT): New.
10870 (DESIRED_MODE_LINE_HEIGHT): New.
10871
10872 * keyboard.c (make_lispy_event): Add string and string position
10873 info to mouse-click events.
10874 (read_key_sequence): Handle `local-map' property of mode line
10875 strings.
10876
10877 * keyboard.h (POSN_STRING): New.
10878
108791998-10-25 Gerd Moellmann <gerd@gnu.org>
10880
10881 * dispnew.c (mode_line_string): Mew.
10882
10883 * xterm.c (xt_action_hook): New.
10884 (x_create_toolkit_scroll_bar): Add action hook.
10885 (xm_scroll_callback): Implement dragging.
10886
10887 * keyboard.c (Qend_scroll): New.
10888 (scroll_bar_parts): Add it.
10889
10890 * termhooks.h (scroll_bar_end_scroll): New.
10891
10892 * xterm.c (XTread_socket): Bug fix.
10893
108941998-10-24 Gerd Moellmann <gerd@gnu.org>
10895
10896 * xdisp.c (redisplay_window): Finish scroll bars after
10897 redisplaying toolbar.
10898
10899 * keyboard.c (scroll_bar_parts): Add Qtop and Qbottom.
10900 (syms_of_keyboard): Add Qbottom.
10901
10902 * termhooks.h (scroll_bar_to_top): New.
10903 (scroll_bar_to_bottom): New.
10904
10905 * xdisp.c (redisplay_window): Always resize toolbar window if
10906 auto_resize_toolbar_p is non-zero.
10907 (auto_resize_toolbar_p): Renamed from auto_resize_toolbar.
10908 (window_box): New.
10909 (window_box_height): New.
10910 (window_box_width): New.
10911 (window_box_left): New.
10912 (window_box_right): New.
10913 (window_box_edges): New.
10914
109151998-10-23 Gerd Moellmann <gerd@gnu.org>
10916
10917 * xterm.c (x_set_toolkit_scroll_bar_thumb): Kluge for call to
10918 XawScrollbarSetThumb in FreeBSD.
10919 (x_create_toolkit_scroll_bar): Set resource "beNiceToColormap"
10920 to true.
10921
10922 * window.c (get_phys_cursor_glyph): Return null if cursor vpos
10923 is out of range.
10924
10925 * xterm.c (x_create_toolkit_scroll_bar): Set scroll_bar_pixel.
10926 (x_term_init): Initialize it.
10927
10928 * xterm.h (struct x_display_info): Add scroll_bar_pixel.
10929
10930 * xterm.c (x_create_toolkit_scroll_bar): Set LessTif scroll bar's
10931 cursor.
10932
109331998-10-22 Gerd Moellmann <gerd@gnu.org>
10934
10935 * keyboard.c (make_lispy_event): Handle scroll_bar_click
10936 differently when using toolkit scroll bars.
10937
10938 * xterm.c (x_send_scroll_bar_event): New.
10939 (x_scroll_bar_to_input_event): New.
10940 (xaw3d_scroll_callback): New.
10941 (xaw3d_jump_callback): New.
10942 (xm_scroll_callback): New.
10943 (x_toolkit_scroll_p): New.
10944 (XTread_socket): Handle scroll bar client message.
10945 (x_term_init): Initialize Xatom_Scrollbar.
10946 (x_scroll_bar_create): Set cursor.
10947 (xm_scroll_callback):
10948 (x_create_toolkit_scroll_bar): New.
10949 (x_set_toolkit_scroll_bar_thumb): New.
10950 (x_scroll_bar_create): Call x_create_toolkit_scroll_bar.
10951 (XTset_vertical_scroll_bar): Call x_set_toolkit_scroll_bar_thumb.
10952
10953 * xterm.h (struct x_display_info): Add Xatom_Scrollbar.
10954
109551998-10-21 Gerd Moellmann <gerd@gnu.org>
10956
10957 * xterm.c (x_scroll_bar_remove): Handle toolkit scroll bars.
10958 (XTread_socket): Don't handle mouse button events for scroll bars
10959 if using toolkit scroll bars.
10960 (XTset_vertical_scroll_bar): Set thumb size and position for
10961 Athena scroll bar.
10962
10963 * xterm.h (scroll_bar): Add x_widget_low and x_widget_high.
10964
10965 * xterm.c (XTread_socket): Dispatch expose event to widget
10966 if using toolkit scroll bars.
10967 (x_scroll_bar_expose): Make no-op for toolkit scroll bars.
427ec082 10968 (x_scroll_bar_create): Create and show a scroll bar widget
26901792
DL
10969 if using toolkit scroll bars.
10970 (x_scroll_bar_move): Handle tookit scroll bars.
10971
10972 * Makefile.in (LIBW): Use Xaw3d if present.
10973
10974 * configure.in (USE_TOOLKIT_SCROLL_BARS): New.
10975 (HAVE_XAW3D): New.
427ec082 10976
26901792
DL
10977 * config.in (USE_TOOLKIT_SCROLL_BARS): New.
10978 (HAVE_XAW3D): New.
10979
427ec082 10980 * xterm.c (XTset_vertical_scroll_bar): Correct position of
26901792
DL
10981 right vertical scroll bar.
10982
109831998-10-20 Gerd Moellmann <gerd@gnu.org>
10984
10985 * xfns.c (xpm_load): Support reading XPM images from string
10986 buffers containing data in the same format as an XPM file.
10987 Support `:color-symbols'.
10988 (xpm_format): Add `:data'.
10989 (xpm_keyword_index): Add XPM_DATA.
10990 (syms_of_xfns): Add `:color-symbols'.
10991 (xpm_keyword_index): Add XPM_COLOR_SYMBOLS.
10992 (xpm_valid_color_symbols_p): New.
10993 (xpm_image_p): Call it.
10994
10995 * xdisp.c (build_desired_toolbar_string): Add `:algorithm'
10996 attribute to the image if item is not enabled.
10997
10998 * xfns.c (x_laplace): New.
10999 (x_laplace_read_row): New.
11000 (x_laplace_write_row): New.
11001 (lookup_image): Handle common image attributes here. New
11002 attribute `:algorithm'.
11003
11004 * xfaces.c (clear_face_cache): Call clear_image_cache.
11005
11006 * xterm.c (x_inverted_image_mask): Removed.
11007 (x_draw_image_foreground_1): New.
11008 (x_draw_image_glyph_string): Draw images with mask to a temporary
11009 pixmap to reduce flickering.
11010
11011 * xdisp.c (redisplay_toolbar): Handle auto-resize-toolbars.
11012 (display_toolbar_line): Remove parameter `margin'.
11013
110141998-10-19 Gerd Moellmann <gerd@gnu.org>
11015
11016 * xdisp.c (toolbar_lines_needed): New.
11017 (auto-resize-toolbars): New.
11018
11019 * xfns.c (cache_image): Correct call to xrealloc.
11020
11021 * dispnew.c (Fset_toolbar_height): Removed.
11022
11023 * xdisp.c (init_xdisp): Use FRAME_TOP_MARGIN instead of
11024 FRAME_MENU_BAR_LINES.
11025
11026 * window.c (Fdelete_other_windows): Use FRAME_TOP_MARGIN
11027 instead of FRAME_MENU_BAR_LINES.
11028 (check_frame_size): Ditto.
11029
11030 * dispnew.c (adjust_frame_glyphs_initially): Use FRAME_TOP_MARGIN
11031 instead of FRAME_MENU_BAR_LINES.
11032 (adjust_frame_glyphs_for_frame_redisplay): Ditto.
11033 (build_frame_matrix): Ditto.
11034 (change_frame_size_1): Ditto.
11035
11036 * frame.h (FRAME_TOOLBAR_LINES): New.
11037 (FRAME_TOP_MARGIN): New.
11038
11039 * window.c (struct save_window_data): Add frame_toolbar_lines.
11040 (Fset_window_configuration): Handle toolbar lines.
11041 (Fcurrent_window_configuration): Save toolbar lines.
11042
11043 * frame.c (syms_of_frame_1): Add Qtoolbar_lines.
11044
11045 * xfns.c (Fx_create_frame): Add default parameter for toolbar.
11046
11047 * frame.h (struct frame): Rename top_margin to toolbar_lines.
11048
11049 * xfns.c (x_frame_parms): Add `toolbar-lines'.
11050 (x_set_toolbar_lines): New.
11051
11052 * keyboard.c (cmd_error_internal): Bug fix.
11053
11054 * xterm.c: Remove double include of syssignal.h.
11055
110561998-10-18 Gerd Moellmann <gerd@gnu.org>
11057
11058 * xterm.c (x_toolbar_item): New.
11059 (x_handle_toolbar_click): Use it.
11060 (note_toolbar_highlight): Use it.
11061
11062 * keyboard.c (syms_of_keyboard): Staticpro toolbar_item_properties
11063 and toolbar_items_vectors.
11064
11065 * xterm.c (help_echo): New.
11066 (draw_glyphs_face): Add DRAW_IMAGE_RAISED and DRAW_IMAGE_SUNKEN.
11067 (x_set_glyph_string_gc): Handle them.
11068 (x_after_update_window_line): Don't do anything in pseudo-windows.
11069 (x_produce_image_glyph): Take image margin and face relief into
11070 account.
11071 (x_get_glyph_string_clip_rect): Handle pseudo-windows.
11072 (x_draw_glyph_string_background): Optimize case when face has
11073 relief.
11074 (x_setup_relief_color): Take frame instead of glyph string
11075 parameter.
11076 (x_draw_relief_rect): New.
11077 (x_draw_glyph_string_relief): Call it.
11078 (x_draw_image_glyph_string_foreground): Handle margin and image
11079 relief.
11080 (x_draw_image_glyph_string_background): Ditto.
11081 (expose_frame): Redraw toolbar window.
11082 (expose_window): Don't draw cursor for pseudo-windows.
11083 (x_y_to_hpos_vpos): Handle pseudo-windows.
11084 (frame_to_window_pixel_xy): New.
11085 (note_mouse_highlight): Call note_toolbar_highlight.
11086 (x_handle_toolbar_click): New.
11087 (note_toolbar_highlight): New.
11088 (show_mouse_face): Change int parameter `hl' to parameter of
11089 type enum draw_glyphs_face. Handle image highlighting.
11090 (XTread_socket): Return a HELP_EVENT input event if help_echo is
11091 non-nil. Use x_handle_toolbar_click.
11092
11093 * termhooks.h (event_kind): Add HELP_EVENT, TOOLBAR_EVENT.
11094
11095 * xfns.c (image_value_type): Add IMAGE_INTEGER_VALUE,
11096 IMAGE_BOOL_VALUE.
11097 (parse_image_spec): Handle them.
11098 (image_spec_value): Additional parameter found.
427ec082 11099 (free_image): Remove image from the vector `images' of the
26901792
DL
11100 image cache.
11101 (clear_image_cache): Additional parameter force_p.
11102 (Fclear_image_cache): New.
11103 (x_find_image_file): New.
11104 (xbm_load): Handle `:margin' and `:relief'. Use
11105 x_find_image_file.
11106 (xpm_load): Likewise.
11107 (pbm_load): Likewise.
11108 (jpeg_load): Likewise.
11109 (tiff_load): Likewise.
11110 (gif_load): Likewise.
11111
11112 * keyboard.c (Qhelp_echo): New symbol.
11113 (read_char): Handle `toolbar' and `help_echo' events.
11114 (kbd_buffer_get_event): Handle HELP_ECHO input event.
11115 (make_lispy_event): Handle TOOLBAR_EVENT.
11116 (toolbar_items): New.
11117 (process_toolbar_item): New.
11118 (PROP): New.
11119 (init_toolbar_items): New.
11120 (append_toolbar_item): New.
11121 (read_char_x_menu_prompt): Handle `toolbar' event.
11122 (read_key_sequence): Ditto.
11123
11124 * xfaces.c (Qtoolbar): New.
11125 (realize_basic_faces): Realize `toolbar' face.
11126 (face_at_string_position): Remove parameter modeline_p, add
11127 base_face_id.
11128
11129 * xfns.c (xbm_load_image_from_file): Don't use Xmu function
11130 to read data.
11131
111321998-10-17 Gerd Moellmann <gerd@gnu.org>
11133
11134 * xdisp.c (init_iterator): Replace parameter modeline_p with
11135 base_face_id.
11136 (next_element_from_string): Call get_next_display_element
11137 recursively after handling text properties.
11138 (prepare_menu_bars): Call update_toolbar.
11139 (update_toolbar): New.
11140 (build_desired_toolbar_string): New.
11141 (display_toolbar_line): New.
11142 (redisplay_toolbar): New.
11143 (toolbar_item_info): New.
11144 (redisplay_window): Call redisplay_toolbar.
11145 (Fdump_toolbar_row): New. Defined if compiled with GLYPH_DEBUG.
11146
11147 * dispnew.c (clear_current_matrices): Clear matrices of toolbar
11148 window.
11149 (clear_desired_matrices): Ditto.
11150 (adjust_frame_glyphs_for_window_redisplay): Make toolbar window.
11151 (free_glyphs): Free matrices of toolbar window.
11152 (update_frame): Update toolbar window.
11153 (change_frame_size_1): Take toolbar into account.
11154 (Fset_toolbar_height): New.
11155
11156 * dispextern.h (struct it): Remove member modeline_p, add
11157 base_face_id.
11158 (struct image): Add members relief and margin.
11159 (IMAGE_ASCENT): Include margin in height.
11160
111611998-10-14 Gerd Moellmann <gerd@gnu.org>
11162
11163 * xfns.c (Fclear_image_cache): New.
11164
11165 * xfaces.c (realize_basic_faces): Realize toolbar face.
11166 (face_at_string_position): Remove parameter modeline_p, add
11167 base_face_id.
11168
11169 * dispextern.h (enum face_id): Add TOOLBAR_FACE_ID.
11170
111711998-10-13 Gerd Moellmann <gerd@gnu.org>
11172
11173 * keyboard.c (syms_of_keyboard): Intern `:help'.
11174
111751998-10-12 Gerd Moellmann <gerd@gnu.org>
11176
11177 * xterm.c (note_toolbar_highlight): New.
11178 (note_mouse_highlight): Call it.
11179
11180 * window.c (window_from_coordinates): Additional parameter toolbar_p.
11181 (coordinates_in_window): Handle toolbar window.
11182
11183 * keyboard.c (toolbar_items): New.
11184 (process_toolbar_item): New.
11185 (parse_toolbar_item): New.
11186 (init_toolbar_items): New.
11187 (append_toolbar_item): New.
11188
11189 * dispextern.h (enum toolbar_item_idx): New.
11190 (enum toolbar_item_image): New.
11191
11192 * frame.h (struct frame): Add toolbar-related members.
11193
11194 * xfaces.c (face_at_string_position): Remove assertion that
11195 current_buffer == window's buffer. This is not the case when
11196 called for the toolbar window.
11197
11198 * frame.c (make_frame): Initialize toolbar members.
11199
11200 * alloc.c (mark_object): Mark toolbar data of frames.
11201
11202 * frame.h (struct frame): Add toolbar-related members
11203 toolbar_window, desired_toolbar_items, current_toolbar_items,
11204 desired_toolbar_string, current_toolbar_string,
11205 n_desired_toolbar_items, n_current_toolbar_items. Add
11206 window_height.
11207
11208 * xterm.c (x_after_update_window_line): Don't draw bitmap
11209 areas for pseudo-windows.
11210 (expose_frame): Handle toolbar window.
11211 (expose_window): Don't do cursor stuff for pseudo-windows.
11212
11213 * xdisp.c (display_menu_bar): Correct calls to init_iterator.
11214
112151998-10-11 Gerd Moellmann <gerd@gnu.org>
11216
11217 * frame.c (make_frame): Initialize toolbar_window.
11218
11219 * alloc.c (mark_object): Make the toolbar window.
11220
11221 * dispnew.c (update_frame): Update frame's toolbar_window.
11222 (clear_current_matrices): Likewise.
11223 (clear_desired_matrices): Likewise.
11224 (adjust_frame_glyphs_for_window_redisplay): Make toolbar_window.
11225 (free_glyphs): Free the toolbar window and its matrices.
11226
11227 * frame.h (struct frame): Add toolbar_window.
11228
11229 * xterm.c (x_draw_glyph_string_relief): Handle mouse-face
11230 with relief.
11231
112321998-10-10 Gerd Moellmann <gerd@gnu.org>
11233
427ec082 11234 * dispnew.c (buffer_posn_from_coords): Don't screw up if
26901792
DL
11235 window start is not in the range BEGV..ZV.
11236
112371998-10-09 Gerd Moellmann <gerd@gnu.org>
11238
11239 * xdisp.c (try_scrolling): Experimentally handle the case
11240 that scroll-preserve-screen-position is set to `always'.
11241
11242 * window.c (Vscroll_preserve_screen_position): Replacement for
11243 scroll_preserve_screen_position.
11244
112451998-10-08 Gerd Moellmann <gerd@gnu.org>
11246
11247 * dispnew.c: Don't initialize auto structs; the HP/UX compiler
11248 doesn't like it.
11249 * xdisp.c: Ditto.
11250
11251 * xdisp.c (make_cursor_line_fully_visible): Adjust this_line_y.
11252
112531998-10-06 Gerd Moellmann <gerd@gnu.org>
11254
427ec082 11255 * minibuf.c (Fminibuffer_complete_word): Fix computation of
26901792
DL
11256 i_byte when prompts are inserted into minibuffers.
11257
11258 * dispextern.h (FRAME_INTERNAL_BORDER_WIDTH_SAFE): New.
11259 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X): Use it.
11260 (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y): Ditto.
11261
112621998-10-04 Gerd Moellmann <gerd@gnu.org>
11263
11264 * xdisp.c (make_cursor_line_fully_visible): New.
11265 (try_scrolling): New.
11266 (redisplay_window): Move scrolling code to try_scrolling.
11267 (make_cursor_line_fully_visible): Handle case of window too small
11268 to show a single line.
11269 (redisplay_window): Case forced window start---use
11270 make_cursor_line_fully_visible.
11271 (redisplay_window): Case cursor movement via current matrix.
11272 If ending up on a partially visible line, make it fully visible
11273 instead of recentering.
11274 (try_scrolling): Additional parameter scroll_smoothly.
11275
11276 * xterm.c (x_draw_bitmap): Don't XClearArea under the pixmap.
11277
112781998-09-28 Gerd Moellmann <gerd@gnu.org>
11279
11280 * window.c (window_scroll_pixel_based): Bug fix: vpos used
11281 instead of y-position for scroll-preserved-screen-position.
11282
112831998-09-07 Gerd Moellmann <gerd@gnu.org>
11284
11285 * dispnew.c (update_frame_line): If current row is not enabled,
11286 write the whole line.
11287
112881998-09-06 Gerd Moellmann <gerd@gnu.org>
11289
11290 * lisp.h (HAVE_FACES): Removed.
11291
11292 * dispextern.h (HAVE_FACES): Removed.
11293
11294 * config.in (HAVE_FACES): Removed.
11295
11296 * dispnew.c (HAVE_FACES): Removed.
11297
11298 * xdisp.c (HAVE_FACES): Removed.
11299
11300 * xfaces.c (HAVE_FACES): Removed.
11301
113021998-09-05 Gerd Moellmann <gerd@gnu.org>
11303
11304 * xdisp.c (init_iterator): If face_change_count is non-zero,
11305 free realized faces.
11306
11307 * xfaces.c (free_all_realized_faces): Make it externally visible.
11308 (Finternal_set_lisp_face_attribute): Increment
11309 windows_or_buffers_changed.
11310
11311 * dispnew.c (direct_output_for_insert): Give up if
11312 face_change_count is non-zero.
11313 (direct_output_forward_char): Ditto.
11314
11315 * xfaces.c (face_change_count): New.
11316
113171998-09-04 Gerd Moellmann <gerd@gnu.org>
11318
11319 * xterm.c (x_draw_bar_cursor): Don't draw if cursor hpos is out
11320 of range.
11321
113221998-09-03 Gerd Moellmann <gerd@gnu.org>
11323
11324 * term.c (Ftty_display_color_p): New.
11325
113261998-09-02 Gerd Moellmann <gerd@gnu.org>
11327
11328 * xfaces.c (Ftty_defined_colors): New.
11329
11330 * xterm.c (x_produce_glyphs): Fix computation of
11331 contains_overlapping_glyphs_p for ASCII.
11332
11333 * dispnew.c (Fshow_cursor): Don't change cursor state while
11334 redisplaying.
11335 (direct_output_for_insert): If a glyph with lbearing or rbearing
11336 is among the new glyphs, set row flag contains_overlapping_glyph_p.
11337
113381998-09-01 Gerd Moellmann <gerd@gnu.org>
11339
11340 * term.c (OUTPUT_IF): Make replacement text have statement form.
11341 (OUTPUT1_IF): Ditto.
11342 (TS_italic_mode, TS_end_italic_mode): Removed.
11343 (TS_bold_mode): Removed.
11344 (TS_underscore_mode, TS_end_underscore_mode): Removed.
11345 (TS_enter_bold_mode, TS_enter_dim_mode, TS_enter_blink_mode): New.
11346 (TS_enter_reverse_mode): New.
11347 (TS_enter_underline_mode, TS_exit_underline_mode): New.
11348 (TN_magic_cookie_glitch_ul): New.
11349 (TS_enter_alt_charset_mode, TS_exit_alt_charset_mode): New.
11350 (TS_exit_attribute_mode): New.
11351 (TN_max_colors, TN_max_pairs, TS_orig_pairs): New.
11352 (TS_set_foreground, TS_set_background): New.
11353 (reset_terminal_modes): Switch colors back to default.
11354 (write_glyphs): Turn face on before writing text, turn it off
11355 afterwards.
11356 (insert_glyphs): Ditto.
11357 (term_init): Initialize new terminal capability variables.
11358 (turn_on_face): Turn a face on.
11359 (turn_off_face): Turn a face off.
11360
11361 * lisp.h (MAKE_GLYPH): Remove test for frame type.
11362 (GLYPH_CHAR): Ditto.
11363 (GLYPH_FACE): Ditto.
11364
11365 * xfaces.c (Vface_tty_color_alist): New.
11366 (face-register-tty-color): New.
11367 (face-clear-tty-colors): New.
11368
11369 * dispextern.h (FACE_TTY_DEFAULT_COLOR): New.
11370 (struct it): Remove member faces_p since we now always have faces.
11371
113721998-08-31 Gerd Moellmann <gerd@gnu.org>
11373
11374 * dispextern.h (struct face): Add tty appearance flags.
11375
11376 * xdisp.c (init_iterator): Always handle faces.
11377 (extend_face_to_end_of_line): Handle tty frames.
11378
11379 * dispnew.c (clear_glyph_matrix): Allow a null matrix to be
11380 passed in.
11381
113821998-08-30 Gerd Moellmann <gerd@gnu.org>
11383
11384 * xfaces.c (realize_default_face): Use empty strings to indicate
11385 that the face should use the default foreground/background
427ec082 11386 color of the terminal. Fill font-related attributes with
26901792
DL
11387 appropriate values for tty frames.
11388
11389 * emacs.c (main): Call syms_of_xfaces before init_window_once.
11390
11391 * xfaces.c (realize_default_face): If face `default' is not
11392 yet known, create it.
11393
11394 * frame.c (make_terminal_frame): Call init_frame_faces
11395 unconditionally.
11396
11397 * xfaces.c (init_frame_faces): Make it work for tty frames.
11398 (free_frame_faces): Ditto.
11399 (clear_face_cache): Ditto.
11400 (recompute_basic_faces): Ditto.
11401 (Fframe_face_alist): Ditto.
11402 (free_realized_face): Ditto.
11403 (prepare_face_for_display): Ditto.
11404 (clear_face_gcs): Ditto.
11405 (lookup_face): Ditto.
11406 (smaller_face): Ditto.
11407 (realize_default_face): Ditto.
11408 (realize_face): Ditto.
11409 (realize_face): Dispatch to functions depending on the frame type.
11410 (realize_x_face): X way of realizing faces.
11411 (realize_tty_face): TTY way of realizing faces.
11412
114131998-08-29 Gerd Moellmann <gerd@gnu.org>
11414
11415 * xfaces.c (realize_face): Remove parameter unibyte_registry,
11416 compute it instead.
11417 (lookup_face): Remove local variable unibyte_registry.
11418
114191998-08-22 Gerd Moellmann <gerd@gnu.org>
11420
11421 * xterm.c (x_draw_glyph_string_relief): Draw top and bottom lines
11422 1 pixel longer.
11423
427ec082 11424 * xdisp.c (face_before_or_after_it_pos): Fix computation
26901792
DL
11425 of face in buffer.
11426
11427 * editfns.c (make_buffer_string_both): If prompt in buffer,
11428 prevent start > end.
11429
11430 * indent.c (Fvertical_motion): Set current_buffer to window's
11431 buffer if it isn't already.
11432
114331998-08-21 Gerd Moellmann <gerd@gnu.org>
11434
11435 * dispextern.h (GLYPH_DEBUG): Use default 0.
11436
11437 * xdisp.c (it_props): New member `smaller'.
11438 (init_iterator): Initialize it.
11439 (Qsmaller): New.
11440 (push_it): Save value of `smaller' value on the stack.
11441 (pop_it): Restore `smaller' from the stack.
11442 (handle_smaller_prop): New.
11443 (handle_face_prop): Use `smaller' text property to select a
11444 suitable face.
11445
11446 * dispextern.h (SMALLER_PROP_IDX): New.
11447 (struct it): Add member `smaller'.
11448
11449 * xfaces.c (smaller_face): New.
11450
11451 * frame.h (FRAME_WINDOW_WIDTH_ARG): Add bitmap area widths.
11452
11453 * dispnew.c (allocate_matrices_for_window_redisplay): Compute
11454 total pixel width of window differently.
11455
11456 * xdisp.c (init_iterator): Compute width of mode line differently.
11457
11458 * dispextern.h (WINDOW_DISPLAY_PIXEL_WIDTH): Subtract width
11459 of bitmap areas.
11460
11461 * window.c (Fsplit_window): Include width of bitmap areas in
11462 window width.
11463 (window_internal_width): Subtract width of bitmap areas from
11464 total width.
11465
114661998-08-18 Gerd Moellmann <gerd@gnu.org>
11467
11468 * xdisp.c: Functions reordered for better readability.
11469
11470 * dispnew.c (update_text_area): Handle glyphs with arbitrary
11471 lbearing.
11472 (update_window_tree): Parameter no_scrolling_p removed.
11473 (update_single_window): Ditto.
11474
11475 * xterm.c (x_get_char_font_and_encoding): Renamed to
11476 x_get_char_face_and_encoding.
11477
11478 * dispnew.c (update_text_area): Don't call get_glyph_overhangs
11479 if end of current row reached.
11480
11481 * xterm.c (x_get_glyph_face_and_encoding): New.
11482 (x_get_glyph_overhangs): Call it.
11483
11484 * xdisp.c (Qshow_trailing_whitespace): New.
11485 (Qtrailing_whitespace): New.
11486 (enum prop_handled): New.
11487 (struct props, it_props): New.
11488 (next_overlay_change): New. Works like Fnext_overlay_change
11489 but doesn't use xmalloc.
11490 (handle_stop): Restructured.
11491 (face_before_or_after_it_pos): Case iteration over a string: fix
11492 handling of face before current position.
11493
114941998-08-16 Gerd Moellmann <gerd@gnu.org>
11495
11496 * dispnew.c (adjust_glyph_matrix): Don't optimize matrix
11497 reallocation matrix if fonts_changed_p.
11498 (update_text_area): Handle glyphs with lbearing.
11499
115001998-08-14 Gerd Moellmann <gerd@gnu.org>
11501
11502 * xdisp.c (struct props): New.
11503 (it_props): New.
11504 (compute_prop_info): New.
11505 (handle_stop): New.
11506
11507 * textprop.c (validate_interval_range): Make it externally
11508 visible.
11509
11510 * dispnew.c (direct_output_for_insert): Remove calls
11511 to compute_stop_pos.
11512
11513 * dispextern.h (struct it): Remove check_charpos,
11514 next_overlay_pos. Add what_changes.
11515
115161998-08-10 Gerd Moellmann <gerd@gnu.org>
11517
11518 * xterm.c (note_mouse_highlight): Set BEGV_BYTE, ZV_BYTE.
11519
11520 * xfaces.c (Vx_unibyte_registry_and_encoding): Removed. Use
11521 face_default_registry instead.
11522
11523 * syntax.c (scan_sexps_forward): Set up syntax table before
11524 jumping to initial state label.
11525
115261998-08-09 Gerd Moellmann <gerd@gnu.org>
11527
11528 * dispnew.c (check_matrix_invariants): Handle case of row end pos
11529 >= ZV specially.
11530
115311998-08-08 Gerd Moellmann <gerd@gnu.org>
11532
11533 * xdisp.c (redisplay_window): Case cursor movement---if cursor
11534 ends up in partially visible row, try to scroll. Case forced
11535 window start---handle windows not tall enough to show a single
11536 line.
11537
11538 * window.h (struct window): Member dy renamed vscroll.
11539
11540 * xterm.c (x_list_fonts): Re-activate suppression of scalable
11541 fonts.
11542 (x_draw_stretch_glyph_string): Set clipping if using GC that
11543 hasn't set it yet.
11544
11545 * xdisp.c (redisplay_window): Case forced window start -
11546 don't let cursor end on partially visible row. Use desired
11547 matrix to find a suitable PT if it doesn't appear.
11548 (decode_mode_spec): Merged with 20.2.97.
11549 (try_window_reusing_current_matrix): Give up if old or
11550 new display is vscrolled.
11551 (redisplay_window): Reset vscrolling if forced window start,
11552 or if recentering.
11553
115541998-08-06 Gerd Moellmann <gerd@gnu.org>
11555
11556 * xfaces.c (realize_default_face): Use the fontset name instead of
11557 the alias for the family attribute of the default face because we
11558 can't easily determine a good alias from fontset-alias-alist.
11559 (face_fontset): Use Fquery_fontset to find the fontset.
11560 (font_list): Additional pattern parameter.
11561 (try_font_list): Ditto.
11562 (set_lface_from_font_name): Set face family from font foundry
11563 and family.
11564 (font_list): If family contains a hyphen, build pattern differently.
11565
115661998-08-05 Gerd Moellmann <gerd@gnu.org>
11567
11568 * xfaces.c (free_realized_faces): Increment windows_or_buffers_-
11569 changed instead of setting the frame garbaged.
11570
11571 * xfaces.c (lface_equal_p): Don't assume equal Lisp types for
11572 all attribute values. This is wrong if values are unspecified,
11573 i.e. nil.
11574
11575 * xdisp.c (try_window_id): Give up if window start changed.
11576
11577 * xfaces.c (make_realized_face): Store registry as Lisp object.
11578 (load_face_font_or_fontset): Compute registry of a face
11579 differently. Make it `eq' to Vx_unibyte_registry_and_encoding if
11580 possible.
11581
11582 * dispextern.h (FACE_SUITABLE_FOR_CHARSET_P): Compare registries
11583 differently.
11584
11585 * alloc.c (mark_face_cache): Mark the registry member of faces.
11586
11587 * dispextern.h (struct face): Make registry a Lisp string.
11588
115891998-08-04 Gerd Moellmann <gerd@gnu.org>
11590
11591 * xterm.c (x_get_char_font_and_encoding): Additional parameter
11592 multibyte_p. Handle unibyte text.
11593 (x_append_glyph): Set the multibyte_p flag of glyphs.
11594 (x_produce_image_glyph): Ditto.
11595 (x_append_stretch_glyph): Ditto.
11596 (x_produce_glyphs): Handle unibyte text like ASCII.
11597
11598 * xdisp.c (push_it): Save the multibyte flag of an iterator on the
11599 stack.
11600 (pop_it): Restore it.
11601 (face_before_or_after_it_pos): Handle the case that the string or
11602 buffer is unibyte.
11603 (get_overlay_strings): Set the multibyte flag of the iterator if
11604 the new overlay string is multibyte.
11605 (get_glyph_property): Likewise.
11606 (get_next_display_element): Don't check for charset changes in
11607 unibyte text.
11608 (append_space): Compute face differently for unibyte text.
11609 (extend_face_to_end_of_line): Don't return quickly if face has
11610 stipple.
11611
11612 * xfaces.c (load_face_font_or_fontset): Store registry and
11613 encoding of the font in the registry member of the face.
11614 (make_realized_face): Additional parameter `registry'.
11615 (free_realized_face): Free the registry of a realized face.
11616 (face_suitable_for_charset_p): Function form of the macro
11617 with the same name in uppercase.
11618 (lookup_face): Use Vx_unibyte_registry_and_encoding if charset < 0.
11619 (choose_face_font): New parameter unibyte_registry.
11620 (choose_face_fontset_font): Ditto.
11621 (realize_default_face): Remember the registry and encoding of
11622 the specified frame font in Vx_unibyte_registry_and_encoding.
11623 (face_at_buffer_position): Handle unibyte.
11624 (face_at_string_position): Likewise.
427ec082 11625 (realize_face): New parameter unibyte_registry.
26901792
DL
11626 (compute_char_face): Handle the unibyte case.
11627
11628 * dispextern.h (struct glyph): Add bit multibyte_p.
11629 (struct face): New member registry holding the registry and
11630 encoding of the X font of the face.
11631 (FACE_UNIBYTE_P): Value is non-zero if face is for unibye text.
11632 (enum face_id): Add BASIC_FACE_ID_SENTINEL.
11633 (FACE_SUITABLE_FOR_CHARSET_P): Handle charset < 0 meansing unibyte
11634 text.
11635 (struct iterator_stack_entry): Add multibyte_p.
11636
11637 * xdisp.c (string_pos): Use string_char_to_byte.
11638 (char_charset): Removed.
11639
116401998-08-03 Gerd Moellmann <gerd@gnu.org>
11641
11642 * xterm.c (x_draw_image_glyph_string_foreground): Draw a
11643 rectangle for a block cursor over an image without a mask.
11644 (x_stretch_block_cursor): Added. Non-zero means don't draw
11645 a block cursor over a stretch as wide as that stretch.
11646 (x_draw_stretch_glyph_string): Use it.
11647 (x_draw_hollow_cursor): Ditto.
11648
11649 * minibuf.c (read_minibuf): Use minibuf_prompt instead of prompt.
11650 (read_minibuf): Add front-sticky text property for prompt.
11651
11652 * xdisp.c (char_charset): Return charset of a character,
11653 depending on whether or not multi-byte characters are enabled.
11654
11655 * xfaces.c (Fset_face_charset_registry): Removed.
11656 (x_charset_registry): Determine registry from charset plist.
11657
116581998-08-02 Gerd Moellmann <gerd@gnu.org>
11659
11660 * xdisp.c (get_next_display_element): Don't check for charset
11661 changes if multi-byte characters are not enabled.
427ec082 11662
26901792 11663 * xdisp.c (echo_area_display): Use the flush function from the
427ec082 11664 redisplay interface.
26901792
DL
11665 * keyboard.c (detect_input_pending_run_timers): Likewise.
11666
11667 * dispextern.h (produce_*glyphs_hook): Removed.
11668 * term.c (produce_*glyphs): Ditto.
11669 (cursor_to): Remove pixel position parameters.
11670
11671 * dispnew.c: Remove hooks for window-based redisplay, introduce
11672 a redisplay interface structure.
11673
11674 * xterm.c (x_per_char_metric): Return default char metrics if per
11675 char metric exists but contains a zero width. Adobe Courier seems
11676 to contain such characters.
11677
11678 * xdisp.c (compute_line_metrics): Compute the width of rows
11679 without stopping at glyphs with zero width.
11680
116811998-08-01 Gerd Moellmann <gerd@gnu.org>
11682
11683 * xdisp.c (display_mode_line): If nothing was displayed at all,
11684 display a space.
11685 (hscroll_window_tree): Don't subtract 1 from target point if equal
11686 to ZV and window is not the selected window.
11687
11688 * dispnew.c (check_matrix_invariants): Remove check for window
11689 start at BEGV or after newline. This happens in rare cases
11690 intentionally.
11691
116921998-07-31 Gerd Moellmann <gerd@gnu.org>
11693
11694 * xfaces.c (x_charset_registry): Use STRING_BYTES.
11695 (syms_of_xfaces): Add Vface_default_registry.
11696 (x_charset_registry): Use it.
11697
11698 * xdisp.c (run_window_scroll_functions): Run window scroll functions.
11699 (redisplay_window): Use it.
11700
11701 * dispnew.c (update_text_area): Handle lbearing of deleted text
11702 by backing up one character.
11703
117041998-07-30 Gerd Moellmann <gerd@gnu.org>
11705
427ec082 11706 * dispnew.c (adjust_glyph_matrix): Use a different check to
26901792
DL
11707 decide to do nothing.
11708
11709 * xfaces.c (face_at_string_position): Additional parameter
11710 mode_line_p. If non-zero, merge with the mode line face
11711 instead of the default face.
11712 * dispextern.h (struct it): Add mode_line_p.
11713 * xdisp.c (init_iterator): Set it.
11714 (compute_face_in_string): Use it.
11715 (face_before_or_after_it_pos): Handle strings.
11716 (get_next_display_element): Don't look for relief end in C strings.
11717 (next_element_from_string): Deliver string position instead of
11718 buffer position.
11719
11720 * xterm.c (x_flush): Flush X output buffer.
11721 (XTflash): Use it.
11722
11723 * xfaces.c (lface_from_face_name): Renamed from lface_from_symbol.
11724 Allow strings as face names.
11725
11726 * xfns.c (forall_images_in_image_cache): Check that frame is
11727 alive.
11728
11729 * widget.c (EmacsFrameDestroy): Remove call to free_frame_faces;
11730 it's also called from x_destroy_window. Since this function is
11731 called from X, freeing stuff allocated with xmalloc is dangerous
11732 here, anyway.
11733
11734 * xfaces.c (free_realized_faces): Don't clear current matrices
11735 of a frame being destroyed.
11736
427ec082 11737 * frame.c (make_frame): Call set_window_buffer instead of
26901792
DL
11738 Fset_window_buffer.
11739
11740 * window.c (set_window_buffer): Extracted from Fset_window_buffer,
11741 with an additional argument specifying whether or not hooks may
11742 be called.
11743 (Fset_window_buffer): Call it.
11744
11745 * dispnew.c (clear_desired_matrices): Check that frame has
11746 a valid root window before clearing matrices in the window tree.
11747 (clear_current_matrices): Ditto.
11748 (clear_window_matrices): If GLYPH_DEBUG, check that hchild and
11749 vchild are valid windows if not nil.
11750
11751 * xfaces.c (merge_face_vector_with_property): Allow :reverse-video
11752 for :inverse-video.
11753 (Finternal_set_lisp_face_attribute): Ditto.
11754 (Finternal_set_lisp_face_attribute_from_resource): Ditto.
11755 (Finternal_get_lisp_face_attribute): Ditto.
11756 (Finternal_lisp_face_attribute_values): Ditto.
11757 (syms_of_xfaces): Define the symbol `:reverse-video'.
11758
11759 * xdisp.c (get_glyph_property): Renamed from
11760 fill_iterator_from_glyph_property.
11761 (next_element_from_buffer): Handle case that no `glyph' property
11762 was found correctly.
11763 (display_line): Extend face to end of line only if we have faces.
11764
117651998-07-29 Gerd Moellmann <gerd@gnu.org>
11766
11767 * dispnew.c (Fshow_cursor): Renamed from blink_cursor. Take
11768 additional window argument.
11769
11770 * xdisp.c (reseat_at_previous_visible_line_start): Renamed from
11771 set_iterator_to_previous_visible_line_start.
11772 (reseat_at_next_visible_line_start): Likewise.
11773 (compute_stop_pos): Renamed from set_iterator_stop_pos.
11774 (face_before_or_after_it_pos): Renamed from get_face_at_it_pos.
11775 (compute_face_in_buffer): Renamed from
11776 compute_face_at_iterator_position.
11777 (compute_face_in_string): Renamed from
11778 compute_face_at_iterator_string_position.
11779 (get_space_width): Renamed from get_iterator_space_width.
11780 (next_overlay_string): Renamed from
11781 set_iterator_to_next_overlay_string.
11782 (get_overlay_strings): Renamed from
11783 get_overlay_strings_at_iterator_position.
11784 (restore_overlay_strings): Renamed from
11785 setup_overlay_strings_from_glyph_pos.
11786 (restore_dpvec): Renamed from setup_iterator_dpvec_from_glyph_pos.
11787 (init_from_display_pos): Renamed from init_iterator_from_glyph_pos.
11788 (init_to_row_start): Renamed from init_iterator_to_row_start.
11789 (init_to_row_end): Formerly init_iterator_to_next_row_start.
11790
11791 * xterm.c: Merge with 20.2.97.
11792 (x_produce_glyphs): Use x_append_stretch_glyph for tabs.
11793
11794 * dispextern.h (struct glyph): Replace text_pos position with
11795 simple charpos.
11796
11797 * xdisp.c (this_line_start_pos): Use struct text_pos.
11798 (this_line_end_pos): Renamed from .*endpos; use struct text_pos.
11799 (enum move_it_result): Renamed from move_iterator_result.
11800 (string_pos_nchars_ahead): Compute text_pos in a string from a
11801 known text_pos plus a character delta.
11802 (string_pos): Compute text_pos in string from charpos.
11803 (c_string_pos): Likewise for a C string.
11804 (number_of_chars): Return number of characters in a possibly
11805 multi-byte C string.
11806 (check_it): Renamed from check_iterator. Check that charpos and
11807 bytepos are in sync.
11808 (push_it): Renamed from save_iterator_settings.
11809 (pop_it): Renamed from restore_iterator_settings.
11810 (move_it_.*): Renamed from move_iterator_.*.
11811 (charset_at_position): Take charpos/bytepos into account.
11812 (back_to_previous_line_start): Set iterator to previous line start.
11813 (forward_to_next_line_start): Set iterator to next line start.
427ec082 11814 (back_to_previous_visible_line_start): Renamed from
26901792
DL
11815 move_iterator_previous_visible_line_start.
11816 (set_iterator_to_next_visible_line_start): Handle charpos/bytepos.
11817 (get_face_at_it_pos): Renamed from get_face_from_cursor_pos.
11818 Handle charpos/bytepos.
11819 (compute_face_at_iterator_position): Handle charpos/bytepos.
11820 (compute_face_at_iterator_string_position): Likewise.
11821 (get_iterator_space_width): Likewise.
11822 (load_overlay_strings): Likewise.
11823 (get_overlay_strings_at_iterator_position): Likewise.
11824 (reseat_iterator): Take a text_pos position argument.
11825 (setup_iterator_overlay_strings_from_glyph_pos): Handle charpos/
11826 bytepos.
11827 (init_iterator): Take additional bytepos parameter.
11828 (reseat_iterator_to_string): Handle charpos/bytepos.
11829 (start_display): Take a text_pos parameter. Handle charpos/bytepos.
11830 (next_element_from_string): Handle charpos/bytepos.
11831 (next_element_from_c_string): Likewise.
11832 (fill_iterator_from_glyph_property): Likewise.
11833 (next_element_from_buffer): Likewise.
11834 (set_iterator_to_next): Increment charpos and bytepos of an iterator.
11835 (move_iterator_in_display_line_to): Handle charpos/bytepos.
11836 (move_it_to): Likewise.
11837 (move_it_vertically_backward): Likewise.
11838 (move_it_vertically): Likewise.
11839 (move_it_by_lines): Likewise.
11840 (hscroll_window_tree): Likewise.
11841 (redisplay_internal): Likewise.
11842 (set_cursor_from_row): Likewise.
11843 (redisplay_window): Likewise.
11844 (try_window): Take a text_pos parameter. Handle charpos/bytepos.
11845 (try_window_reusing_current_matrix): Handle charpos/bytepos.
11846 (get_first_unchanged_at_end_row): Compute and return delta_bytes.
11847 (try_window_id): Handle charpos/bytepos.
11848 (Ftrace_redisplay_toggle): Return Qnil.
11849 (get_overlay_arrow_glyph_row): Handle charpos/bytepos.
11850 (insert_left_trunc_glyphs): Likewise.
11851
11852 * dispnew.c: `Merge' with 20.2.97 (it's really too different to
11853 do a real merge).
11854 (increment_glyph_matrix_buffer_positions): Add parameter delta_bytes.
11855 (increment_glyph_row_buffer_positions): Ditto.
11856 (copy_glyph_row_contents): Ditto.
11857 (check_matrix_invariants): Add additional checks for charpos/
11858 bytepos consistency.
11859 (direct_output_for_insert): Changed for charpos/bytepos.
427ec082 11860 (buffer_posn_from_coords): Likewise. Put code dealing with
26901792
DL
11861 `direction-reversed' in #if 0.
11862
11863 * xterm.h: Merge with 20.2.97.
427ec082 11864
26901792
DL
11865 * frame.h: Merge with 20.2.97.
11866
11867 * window.h: Merge with 20.2.97. Add window_end_bytepos.
11868
11869 * dispextern.h (MATRIX_ROW_START_CHARPOS): Get charpos of a row
11870 start.
11871 (MATRIX_ROW_START_BYTEPOS): Likewise for the byte position.
11872 (MATRIX_ROW_END_CHARPOS): Likewise for the row end.
11873 (MATRIX_ROW_END_BYTEPOS): Likewise for the row end byte position.
11874 (struct it): Various members renamed from .*pos to .*charpos.
11875 (IT_CHARPOS): Access current buffer character position of an
11876 iterator.
11877 (IT_BYTEPOS): Access current buffer byte position of an iterator.
11878 (IT_STRING_CHARPOS): Access current string character position of
11879 an iterator.
11880 (IT_STRING_BYTEPOS): Access current string byte position of
11881 an iterator.
11882 (globally): Add function prototypes from 20.2.97.
11883
11884 * everywhere: Use P_ instead of PROTO for function prototypes
11885 because everyone else seems to use P_.
11886
11887 * dispextern.h (struct text_pos): Structure describing a charpos/
11888 bytepos position in text.
11889 (BYTEPOS): Access the byte position part of a text_pos.
11890 (CHARPOS): Likewise for the character position.
11891 (SET_TEXT_POS): Set a text_pos from a character and byte position.
11892 (INC_TEXT_POS, DEC_TEXT_POS): Increment/decrement a text position.
11893 (SET_TEXT_POS_FROM_MARKER): Set a text_pos from a marker.
11894 (SET_MARKER_FROM_TEXT_POS): Set a marker from a text_pos.
11895 (TEXT_POS_EQUAL_P): Compare two text_pos structures for equality.
11896 (struct display_pos): Renamed from glyph_pos. Use struct text_pos
11897 for buffer and string positions.
11898 (struct glyph): Use text_pos.
11899 (struct it): Renamed from display_iterator. Use text_pos.
11900
119011998-07-23 Gerd Moellmann <gerd@gnu.org>
11902
11903 * xfns.c (x_kill_gs_process): Get image colors from XImage of a
11904 pixmap.
11905
119061998-07-21 Gerd Moellmann <gerd@gnu.org>
11907
11908 * dispextern.h (struct glyph_row): New flag indicate_zv_line_p.
11909 * xterm.c (x_draw_row_bitmaps): Use it.
11910 * dispnew.c (row_equal_p): Ditto.
11911 (update_window_line): Ditto.
11912
11913 * xfns.c (prepare_image_for_display): Don't set loading_failed_p
11914 flag of images.
11915
11916 * dispextern.h (struct image): Removed member loading_failed_p.
11917 It's probably better to have the chance to try to load an image
11918 again.
11919
119201998-07-20 Gerd Moellmann <gerd@gnu.org>
11921
11922 * xterm.c (x_draw_bitmap): Draw bitmap for empty lines ending
11923 at ZV if `indicate-zv-lines' is non-nil.
11924 (x_draw_row_bitmaps): Compute bitmap for `indicate-zv-lines'.
11925
11926 * dispnew.c (row_equal_p): Compare displays_text_p and
11927 ends_at_zv_p flags of rows.
11928 (update_window_line): Ditto.
11929
11930 * buffer.h (struct buffer): New member indicate_zv_lines.
11931
11932 * buffer.c (init_buffer_once): Add default for `indicate-zv-lines'.
11933 (init_buffer_once): New variable `default-indicate-zv-lines'.
11934 (syms_of_buffer): New buffer-local varianle `indicate-zv-lines'.
11935
11936 * xdisp.c (redisplay_window): Don't try moving the cursor
11937 if current glyph row w->last_cursor.vpos isn't enabled.
11938
11939 * xterm.c (bitmap_type): Add ZV_LINE_BITMAP.
11940
11941 * window.c (Fset_window_vscroll): Allow only negative scroll
11942 values. Others don't seem to make sense, and this way it's easy
11943 to restore a vscroll of zero.
11944
11945 * xterm.c (x_inverted_image_mask): Check that pixmap could be
11946 allocated.
11947 (x_draw_image_glyph_string_background): Don't clip if pixmap
11948 could not be created.
11949
11950 * xfns.c (xbm_load_image_from_file): Check that pixmap could
11951 be created.
11952 (xbm_load): Ditto.
11953 (gs_load): Ditto.
11954
11955 * xterm.c (x_get_glyph_overhangs): Take image and stretch
11956 glyphs into account.
11957
11958 * xfaces.c (realize_default_face): Don't set font family of
11959 the default face from the fontset alias name for `fontset-startup'.
11960
11961 * xfns.c (gs_load): Pass frame's pixel foreground and background
11962 color to the Lisp loader.
11963
119641998-07-19 Gerd Moellmann <gerd@gnu.org>
11965
11966 * xfns.c (tiff_image_p, tiff_load): Support TIFF images via
11967 libtiff34.
11968
11969 * configure.in (--with-tiff, HAVE_TIFF): Added.
11970
11971 * config.in (HAVE_TIFF): Added.
11972
11973 * Makefile.in (LIBTIFF): Added.
11974
11975 * xfns.c (jpeg_image_p, jpeg_load): Support JPEG images.
11976
11977 * Makefile.in (LIBJPEG): Added.
11978
11979 * xfns.c (resource_types): Enumerators renamed to RES_TYPE_NUMBER,
11980 RES_TYPE_BOOLEAN etc. because of conflict of `boolean' with
11981 jpeglib.h.
11982
427ec082 11983 * configure.in (HAVE_JPEG, --with-jpeg): Added. On systems
26901792
DL
11984 where the library is installed in /usr/local/lib, e.g. FreeBSD,
11985 configure must be run with `--x-includes=/usr/X11R6/include:
11986 /usr/local/include --x-libraries=/usr/X11R6/lib:/usr/local/lib'.
11987
119881998-07-18 Gerd Moellmann <gerd@gnu.org>
11989
11990 * config.in (HAVE_JPEG): Added.
11991
11992 * xfns.c (ct_init): Initialize color table used to map RGB colors
11993 from images to X pixel colors.
11994 (ct_free): Free color table.
11995 (ct_lookup): Look an RGB color up.
11996 (ct_allocated_colors): Get vector of allocated colors.
427ec082 11997 (pbm_image_p): Test if image specification is a valid PPM
26901792
DL
11998 image specification.
11999 (pbm_scan_number): Scan a decimal ASCII number from a file.
12000 (pbm_load): Load a PPM image.
12001
12002 * window.c (Fset_window_vscroll): Adjust glyph matrix if
12003 necessary. Take canonical character units as parameter.
12004 (Fwindow_vscroll): Return canonical character units.
12005
12006 * dispnew.c (allocate_matrices_for_window_redisplay): Add negative
12007 w->dy to display height for which glyph rows must be allocated.
12008
120091998-07-17 Gerd Moellmann <gerd@gnu.org>
12010
12011 * xfaces.c (face_at_string_position): Merge in region face
12012 so that it won't overwrite the font in the region.
12013 (face_at_buffer_position): Ditto.
12014 (realize_basic_faces): Don't realize region face.
12015
12016 * dispextern.h (enum face_id): REGION_FACE_ID removed.
12017
12018 * xterm.c (x_set_glyph_string_background_width): Don't let
12019 cursor face extend to end of line.
12020
12021 * xdisp.c (append_space): If adding space of default face,
12022 make sure glyph ist produced with right face.
12023
12024 * xterm.c (x_clear_glyph_string_rect): Draw a rectangle in the
12025 background color of a glyph string.
12026 (x_draw_glyph_string_background): Call it.
12027 (x_draw_glyph_string_bg_rect): Ditto.
12028 (x_draw_stretch_glyph_string): Ditto.
12029
120301998-07-15 Gerd Moellmann <gerd@gnu.org>
12031
12032 * xdisp.c (init_iterator): Initialize it->current_y to the
12033 window's vscroll w->dy.
12034
12035 * window.c (Fwindow_vscroll): Return number of pixels window
12036 is vscrolled smoothly.
12037 (Fset_window_vscroll): Set the number.
12038
12039 * xdisp.c (move_iterator_to): Recognize case MOVE_TO_POS and
12040 to_pos in truncated part of a line.
12041
120421998-07-14 Gerd Moellmann <gerd@gnu.org>
12043
12044 * xdisp.c (move_iterator_in_display_line_to): If very first glyph
12045 doesn't fit on the line, truncate it, despite truncate_lines nil.
12046 (display_line): Ditto.
12047
12048 * xfns.c: Experimental support for Ghostscript images.
12049
12050 * xterm.c (x_term_init): Initialize new atoms DONE and PAGE.
12051 (XTread_socket): React on events from Ghostscript.
12052 (expose_frame): If width or height are zero, redraw entire frame.
12053 (XTread_socket): Call expose_frame after receiving event from
12054 Ghostscript.
12055
12056 * xterm.h (struct x_display_info): Add atoms DONE and PAGE
12057 for Ghostscript support.
12058
12059 * xdisp.c (redisplay_internal): Return quickly if called
12060 recursively.
12061
12062 * alloc.c (NSTATICS): Increased to 1024.
12063
120641998-07-08 Gerd Moellmann <gerd@gnu.org>
12065
12066 * xterm.c (x_append_stretch_glyph): Append a stretch glyph to an
12067 iterator's glyph row.
12068 (x_produce_stretch_glyph): Call it.
12069 (x_produce_glyphs): Handle `space-width' property; call
12070 x_append_stretch_glyph.
12071
12072 * xdisp.c (syms_of_xdisp): Add symbol `space-width' used as a text
12073 property.
12074 (get_iterator_space_width): Determine value of `space-width'
12075 property at iterator's position.
12076 (reseat_iterator): Call it.
12077 (next_element_from_string): Ditto.
12078 (next_element_from_buffer): Ditto.
12079 (init_iterator): Initialize space_width of iterator.
12080 (redisplay_internal): Don't goto end_of_redisplay if PT hasn't
12081 moved, but cursor blinks.
12082 (redisplay_internal): Set w->last_cursor_off_p after update.
12083
12084 * dispextern.h (enum iterator_prop_idx): Add SPACE_WIDTH_PROP_IDX.
12085 (struct display_iterator): Add new member space_width.
12086
12087 * window.h (struct window): Add last_cursor_off_p.
12088
120891998-07-07 Gerd Moellmann <gerd@gnu.org>
12090
12091 * Saved.
12092
12093 * window.c (Fpos_visible_in_window_p): Case window not up to
12094 date---return nil if iterator hasn't reached position.
12095
120961998-07-06 Gerd Moellmann <gerd@gnu.org>
12097
12098 * xdisp.c (text_outside_line_unchanged_p): Fix case that
12099 overlays have changed.
12100 (redisplay_window): Case cursor movement. Don't try it if
12101 last_cursor.vpos is out of range.
12102
12103 * xdisp.c (set_cursor_from_row): Set this_line_.* variables. This
12104 way, the display optimization for the line containing the cursor
12105 is used more frequently, esp. when we have a blinking cursor.
12106 (display_line): Don't set this_line_.* variables.
12107
12108 * xterm.c (x_redraw_cursor): Removed.
12109 (x_display_and_set_cursor): Set cursor type depending on
12110 cursor_off_p flag of window.
12111
12112 * dispnew.c (redraw_cursor_hook): Removed.
12113 (Fblink_cursor): Additional parameter on_p to set the cursor_off_p
12114 member of the selected window.
12115
12116 * xfaces.c (Fface_font): Added for compatibility with 20.2.
12117
12118 * xterm.c (x_y_to_hpos_vpos): Return null if not over text.
12119 Return glyph area under x/y.
12120 (note_mouse_highlight): Use x_y_to_hpos_vpos in its new form.
12121
12122 * keyboard.c (detect_input_pending_run_timers): Call gobble_input
12123 after redisplaying.
12124
121251998-07-05 Gerd Moellmann <gerd@gnu.org>
12126
12127 * xdisp.c (text_outside_line_unchanged_p): Test if changes
12128 are all outside of a line of text.
12129 (redisplay_internal): Use it.
12130
121311998-06-30 Gerd Moellmann <gerd@gnu.org>
12132
12133 * xdisp.c (next_element_from_buffer): After skipping over
12134 invisible text, look for the `glyph' property.
12135 (set_iterator_stop_pos): Ignore check positions in front
12136 of an iterator's current position.
12137
12138 * xterm.c (show_mouse_face): Don't act on rows that don't exist
12139 anymore or which are marked as not having valid contents.
12140
12141 * xfaces.c (Finternal_set_lisp_face_attribute): Don't free
12142 realized faces if new attribute value is equal to old value.
12143
121441998-06-29 Gerd Moellmann <gerd@gnu.org>
12145
12146 * xfaces.c (Finternal_make_lisp_face): Increment
12147 lface_id_to_name_size when lface_id_to_name is reallocated.
12148
121491998-06-27 Gerd Moellmann <gerd@gnu.org>
12150
12151 * xdisp.c (set_iterator_stop_pos): Compute initial stop_pos
12152 as minimum of endpos and overlay_pos.
12153 (load_overlay_strings): Set next_overlay_pos of iterator to
12154 -1 if we don't have to check for more overlay strings.
12155
121561998-05-09 Gerd Moellmann <gerd@gnu.org>
12157
12158 * xdisp.c (set_iterator_to_next_visible_line_start): Don't
12159 do anything if iterator is at ZV because scan_buffer doesn't
12160 work otherwise.
12161
12162 * xterm.c (x_encode_char): Inline it.
12163 (x_get_char_font_and_encoding): Simplified.
12164 (x_per_char_metric): Inline it.
12165
12166 * xterm.c (x_draw_glyph_string_relief): Use clipping.
12167
12168 * xdisp.c (get_next_display_element): Check for end of relief
12169 face moved here from next_element_from_buffer.
12170
12171 * xterm.c (x_produce_image_glyph): Add relief thickness.
12172 (x_produce_stretch_glyph): Ditto.
12173
121741998-05-08 Gerd Moellmann <gerd@gnu.org>
12175
12176 * xdisp.c (fill_iterator_from_glyph_property): Handle glyph
12177 property value (space :width WIDTH :height HEIGHT :ascent ASCENT).
12178
12179 * xterm.c (x_produce_stretch_glyph): Produce a stretch glyph
12180 from a glyph property.
12181 (x_produce_glyphs): Use it.
12182
12183 * xdisp.c (set_iterator_to_next): Handle next_element_from_stretch.
12184
427ec082 12185 * xterm.c (x_produce_image_glyph): Add to current_x only if
26901792
DL
12186 in text area.
12187 (x_produce_glyphs): Ditto.
12188
427ec082 12189 * xdisp.c (display_line): Compute row height from glyphs in
26901792
DL
12190 marginal areas.
12191
427ec082 12192 * xterm.c (x_draw_image_glyph_string_background): Draw
26901792 12193 background of an image glyph string.
427ec082 12194 (x_draw_glyph_string_bg_rect): Draw a rectangular region of
26901792
DL
12195 the background of a glyph string.
12196 (x_draw_image_glyph_string_foreground): Draw the foreground of
12197 an image glyph string.
12198 (x_inverted_image_mask): Return the inverted mask of an image.
12199
12200 * xfns.c (x_draw_image): Removed.
12201
12202 * dispextern.h (struct image_type): Remove drawing function.
12203
12204 * xfaces.c (load_face_colors): Swap colors if face is inverse.
12205
12206 * xdisp.c (get_next_display_element): In marginal areas, translate
12207 newlines, tabs, etc. like normal control characters.
12208
12209 * xfaces.c (Fface_color_supported_p): Transpose parameters frame
12210 and color.
12211 (free_realized_faces): Set frame garbaged.
12212
12213 * xfaces.c (syms_of_xfaces): Add defsubr for
12214 internal-lisp-face-attribute-values.
12215
122161998-05-07 Gerd Moellmann <gerd@gnu.org>
12217
12218 * xterm.c (x_produce_image_glyph): Don't add glyph if area is
12219 full.
12220 (x_produce_image_glyph): Set IT->nglyphs to 1.
12221 (x_draw_image_glyph_string): Use inverted mask to draw background.
12222
12223 * dispextern.h (struct image_type): Additional clipping rect
12224 parameters for drawing functions.
12225
427ec082 12226 * xterm.c (x_get_glyph_string_clip_rect): Get clip rect for
26901792
DL
12227 a glyph string.
12228 (x_draw_image_glyph_string): Use it and pass the rect to the
12229 image drawing function.
12230
12231 * xdisp.c (fill_iterator_from_glyph_property): Use position of
12232 first character with `glyph' property as image position. Set
12233 iterator back to that position as long as the image hasn't been
12234 consumed with set_iterator_to_next.
12235 (set_cursor_from_row): Accept when glyph with given position is
12236 not found in the row. Set cursor x to end of line in that case,
12237 so that we can hscroll.
12238 (redisplay_internal): Correct computation of delta by which
12239 positions have changed in redisplay optimization for cursor
12240 row of selected window.
12241
12242 * xdisp.c (display_line): Remove start_pos.
427ec082 12243 (display_line): Fix bug preventing display optimization for
26901792
DL
12244 cursor line of selected window.
12245 (next_element_from_buffer): Avoid XSETBUFFER, use it->w->buffer
12246 instead.
12247
12248 * dispnew.c (update_text_area): Use GLYPH_EQUAL_P.
12249 (update_text_area): Take glyph pixel width into account
12250 when trying to find a resync point.
12251 (row_equal_p): Compare glyphs in all areas.
12252
122531998-05-06 Gerd Moellmann <gerd@gnu.org>
12254
12255 * xterm.c (x_produce_glyphs): Don't add glyph if area is full.
12256
12257 * dispextern.h (struct glyph_row): Use unsigned hash value.
12258
12259 * xdisp.c (display_line): Simplified and made faster by setting
12260 the cursor with set_cursor_from_row.
12261 (set_cursor_from_row): Handle rows of desired matrix.
12262
122631998-05-05 Gerd Moellmann <gerd@gnu.org>
12264
12265 * xdisp.c (set_cursor_from_row): Don't put cursor on glyphs
12266 with type != CHAR_GLYPH.
12267 (fill_iterator_from_glyph_property): Return void. Set
12268 method to next_element_from_image.
12269 (next_element_from_image): Dummy function for delivering a
12270 single image id.
12271 (set_iterator_to_next): Add method next_element_from_image.
12272 (redisplay_window): When recentering, and cursor vpos is -1
12273 after display, assume middle of window is in first line displayed
12274 in window, and display again.
427ec082 12275 (fill_iterator_from_glyph_property): Assign image glyph
26901792
DL
12276 the position of the first character having the glyph property.
12277
12278 * dispextern.h (IMAGE_ASCENT): Compute ascent of image.
12279 * xfns.c (x_draw_image): Use it.
12280 * xterm.c (x_produce_image_glyph): Use it.
12281
12282 * xterm.c (x_produce_image_glyph): Set iterator's pixel_width.
12283
12284 * Makefile.in: Extraneous #define of LIBXPM removed.
12285
12286 * xterm.c (x_produce_glyphs): Produce a STRETCH_GLYPH for tabs.
427ec082 12287 (x_fill_stretch_glyph_string): Fill a glyph string from a
26901792
DL
12288 stretch glyph.
12289 (x_compute_glyph_string_overhangs): Compute overhangs only
12290 for text glyph strings.
12291 (x_draw_stretch_glyph_string): Draw a stretch glyph string.
12292 (x_draw_glyph_string): Call it.
12293
12294 * dispextern.h (glyph_type): Add STRETCH_GLYPH.
12295 (struct glyph): Add sub-structure for stretchable glyphs.
12296 (GLYPH_EQUAL_P): Compare glyph type and u.val.
12297
12298 * xdisp.c (get_overlay_arrow_glyph_row): Put face code into
12299 #ifdef HAVE_FACES.
12300
12301 * xterm.c (x_produce_glyphs): Use ASCII face for spaces of a TAB.
12302
12303 * xdisp.c (fill_iterator_from_glyph_property): Renamed from
12304 setup_iterator_from_glyph_property. Don't do it for terminal
12305 frames.
12306
12307 * xterm.c (x_produce_image_glyph): Produce glyph for image
12308 that can't be loaded.
12309
12310 * xfns.c (lookup_image): If image can't be loaded, set its
12311 width and height so that we can draw a rectangle.
12312 (x_draw_image): Draw a rectangle for images that don't have
12313 a pixmap.
12314 (make_image): Set hash value.
12315 (image_spec_equal_p): Use image_spec_value.
12316
12317 * xterm.c (expose_frame): Don't try to redraw if basic faces
12318 haven't benn realized yet.
427ec082 12319 (x_draw_image_glyph_string): Fill background only if image
26901792
DL
12320 is not as tall as row.
12321
123221998-05-04 Gerd Moellmann <gerd@gnu.org>
12323
12324 * Makefile.in (LIBXPM): If not already defined, define to -lXpm.
12325 (LIBX)[HAVE_X11]: Add LIBXPM.
12326
12327 * xfns.c (xpm_image_p): Implementation of image type functions
12328 for XPM.
12329 (xpm_load): Ditto.
12330
12331 * dispextern.h (struct image): Add mask pixmap for XPM.
12332
12333 * xfns.c (x_draw_image): Handle images with masks.
12334
12335 * configure.in: --with-xpm added. Code detecting -lXpm added.
12336
12337 * config.in: Add HAVE_XPM.
12338
12339 * xfns.c (xbm_draw): Removed.
12340 (x_draw_image): Default implementation for drawing images.
12341 (xbm_keyword_index): Remove XBM_DEPTH.
12342 (xbm_format): Remove `:depth'.
12343 (xbm_image_spec_from_file): Removed to reduce consing.
427ec082 12344 (xbm_load_image_from_file): Added for the same reason.
26901792 12345
427ec082 12346 * xterm.c (x_fill_image_glyph_string): Don't set ybase of
26901792
DL
12347 glyph string.
12348 (x_draw_image_glyph_string): Pass ybase to image draw function.
12349
12350 * xfns.c (make_image): Set default baseline.
12351
12352 * xterm.c (x_produce_image_glyph): Compute ascent of image
12353 from its height and baseline percentage.
12354
12355 * xfns.c (xbm_keyword_index): Add XBM_BASELINE.
12356 (xbm_format): Add description for `:baseline'.
12357 (xbm_image_spec_from_file): Add keywords from original spec to
12358 result.
12359 (xbm_load): Set baseline of image.
12360 (xbm_image_p): Check range for baseline.
12361
12362 * dispextern.h (struct image): Add member baseline.
12363
12364 * xdisp.c (dump_glyph_matrix): Handle image glyphs.
12365
12366 * term.c (produce_glyphs): Change assertion to allow DISP_IMAGE.
12367
12368 * xdisp.c (get_next_display_element): Do character translations
12369 only if delivering characters.
12370
123711998-05-03 Gerd Moellmann <gerd@gnu.org>
12372
427ec082 12373 * dispextern.h (ITERATOR_AT_END_OF_LINE_P): Test for
26901792
DL
12374 DISP_CHARACTER.
12375
12376 * xterm.c (x_produce_image_glyph): Poduce image glyphs.
12377 (x_produce_glyphs): Call x_produce_glyphs for DISP_IMAGE.
12378
123791998-05-02 Gerd Moellmann <gerd@gnu.org>
12380
12381 * xfns.c (prepare_image_for_display): Set image timestamp.
12382 (clear_image_cache): Clear images if image's timestamp +
12383 Vimage_eviction_seconds is > now.
12384 (syms_of_xfns): New variables image-eviction-seconds, and
12385 image-types.
12386 (add_image_format): Add to image-types.
12387 (xbm_load): Support new image spec format.
12388 (x_alloc_image_color): Allocate a color for an image.
12389
12390 * dispextern.h (struct image): Add timestamp.
12391
12392 * xfns.c (xbm_image_p): Allow bool-vectors, vectors of strings and
12393 vectors of bool-vectors.
12394 (xbm_lisp_object_from_file): Build new format image spec.
12395
123961998-05-01 Gerd Moellmann <gerd@gnu.org>
12397
12398 * xfaces.c (init_frame_faces): Initialize image cache.
12399 (free_frame_faces): Free it.
12400
12401 * xterm.c (x_delete_display): Don't free image cache.
12402
12403 * emacs.c (main): Call init_xfns.
12404
124051998-04-30 Gerd Moellmann <gerd@gnu.org>
12406
12407 * alloc.c (mark_object): Mark objects in image cache.
12408
427ec082 12409 * xfns.c (x_set_internal_border_width): Correct call to
26901792
DL
12410 widget_store_internal_border_width.
12411
12412 * widget.c (widget_store_internal_border): Return void.
12413
12414 * xfns.c (x_destroy_bitmap): Use xfree instead of free. Return
12415 void.
12416 (init_x_parm_symbols): Return void.
12417 (x_report_frame_params): Ditto.
12418 (x_set_border_pixel): Ditto.
12419 (syms_of_xfns): Ditto.
12420 (x_destroy_all_bitmaps): Use xfree instead of free.
12421
12422 * xterm.h (FRAME_X_IMAGE_CACHE): Access the image cache of a frame.
12423
12424 * xterm.c (x_term_init): Initialize image_cache of display info.
12425 (x_delete_display): Free image cache.
12426
12427 * xterm.h (struct x_display_info): Add image_cache.
12428
12429 * xfns.c (make_image_cache): Allocate a new image cache.
12430 (free_image_cache): Free an image cache.
12431 (make_image): Allocate an image.
12432 (free_image): Free an image.
12433
12434 * dispextern.h (struct image): Structure describing an image.
12435 (struct image_cache): Structure describing an image cache.
12436
124371998-04-29 Gerd Moellmann <gerd@gnu.org>
12438
12439 * xdisp.c (check_iterator_glyph_property): Return int. Value is
12440 non-zero if iterator is filled with something to return.
12441 (next_element_from_buffer): Immediately return if
12442 setup_iterator_from_glyph_prop has filled iterator with pixmap.
12443 (next_element_from_string): Likewise.
12444
12445 * xfaces.c (load_pixmap): Allow to pass null for W_PTR and H_PTR.
12446
12447 * dispextern.h (struct glyph): Add pixmap_id.
12448 (display_element_type): Add DISP_PIXMAP.
12449
12450 * xmenu.c (popup_get_selection): Use xmalloc/xfree instead of
12451 malloc/free.
12452
12453 * xfaces.c (clear_font_table): Free fonts not used by fontsets.
12454 (clear_face_cache): Call it.
12455
12456 * xterm.c (x_query_font): Don't look at empty font table slots.
12457 (x_compute_min_glyph_bounds): Likewise.
12458 (x_term_init): Initialize font_table to null.
12459 (x_load_font): Change allocation of font_info structures so
12460 that it is possible to free fonts.
12461
427ec082 12462 * xfns.c (Fx_close_connection): Use xfree instead of free.
26901792
DL
12463 Only free fonts from filled font table entries.
12464
12465 * xfaces.c (best_matching_font): Support use of scalable fonts.
12466 (Fface_scalable_fonts_mode): Toggle use of scalable fonts.
12467
12468 * xterm.h (struct x_display_info): Remove screen_dpi, add resx
12469 and resy.
12470 * xterm.c (x_term_init): Compute resx and resy.
12471
12472 * xfaces.c (split_font_name): Don't reject scalable fonts.
12473
427ec082 12474 * xterm.c (x_list_fonts): Set code exclusing scalable fonts
26901792
DL
12475 in #if 0.
12476
12477 * xfaces.c (xlfd_point_size): Return 0 for fonts whose real
12478 point size cannot be determined.
12479
12480 * xterm.h (FRAME_SMALLEST_CHAR_WIDTH): Return smallest character
12481 width over all fonts on a frame.
12482 (FRAME_SMALLEST_FONT_HEIGHT): Likewise for font height.
12483 * dispnew.c (adjust_frame_glyphs_for_window_redisplay): Use these
12484 macros.
12485
12486 * xterm.c (x_font_min_bounds): Moved here from xfaces.c.
12487 (x_compute_min_char_bounds): Formerly min_char_bounds in xfaces.c.
12488 (x_load_font): Use x_compute_min_char_bounds.
12489
12490 * xterm.h (struct x_display_info): New members smallest_char_width
12491 and smallest_font_height.
12492
124931998-04-28 Gerd Moellmann <gerd@gnu.org>
12494
12495 * dispextern.h (PREPARE_FACE_FOR_DISPLAY): Call function with
12496 the same name if GC of face is zero.
12497
12498 * dispextern.h (struct face): Member non_ascii_gc removed.
12499
12500 * xterm.c (x_get_char_font_and_encoding): Return face's font
427ec082 12501 for characters < 0177 in default face. Prepare face for
26901792
DL
12502 display before returning it.
12503 (x_produce_glyphs): Use it->charset.
12504 (x_get_char_font_and_encoding): Simplified.
12505 (x_encode_char): Remove parameter `font'.
12506
12507 * xfaces.c (choose_face_font): If registry from charset symbol
12508 doesn't contain a `-', make it a pattern by appending "*-*".
12509
12510 * xdisp.c (check_iterator_glyph_property): Adjust limit for
12511 glyph_check_pos computation to character boundary.
12512
125131998-04-27 Gerd Moellmann <gerd@gnu.org>
12514
12515 * fontset.h (FONT_INFO_FROM_ID): Return null if ID is invalid.
12516
12517 * xfaces.c (ascii_face_of_lisp_face): Get the id of the realized
12518 ASCII face for a given Lisp face id.
12519
12520 * xdisp.c (set_iterator_stop_pos): Take glyph_check_pos into
12521 account.
427ec082 12522 (reseat_iterator): Set glyph_check_pos. Handle case where
26901792
DL
12523 new position is < original position.
12524 (check_iterator_glyph_property): Handle glyph property in strings.
12525 (next_element_from_string): Call above function.
12526 (next_element_from_display_vector): Handle faces in glyphs.
12527 (get_next_display_element): Set face_id of glyphs for
12528 control chars to zero.
12529
12530 * Makefile.in (term.o): Add dependency on dispextern.h.
12531
12532 * xdisp.c (syms_of_xdisp): Add symbol `glyph'.
12533 (display_line): Handle marginal areas.
12534 (move_iterator_in_display_line_to): Likewise.
12535
12536 * xfaces.c (Finternal_make_lisp_face): Assign Lisp faces an id.
12537
12538 * xfaces.c (face_at_buffer_position): Don't merge with nil
12539 text property.
12540 (face_at_string_position): Ditto.
12541
12542 * dispextern.h (struct display_iterator): Use a stack of saved
12543 values instead of saving check positions etc. individually.
12544
12545 * xdisp.c (set_iterator_to_next): If end of Lisp string reached,
12546 maybe pop the iterator's stack.
12547 (save_iterator_settings): Push a value on iterator's stack.
12548 (get_overlay_strings_at_iterator_position): Use it.
12549 (restore_iterator_settings): Pop the stack.
12550 (set_iterator_to_next_overlay_string): Use it.
12551
12552 * xfaces.c (try_font_list): Use alternative font families.
12553
125541998-04-26 Gerd Moellmann <gerd@gnu.org>
12555
12556 * xfaces.c (Fset_face_font_sort_order): Set the order in which
12557 font selection matches fonts.
12558 (Fface_font_sort_order): Return the font sort order.
12559 (best_matching_font): Find best matching font based on sort order.
12560 (cmp_font_names): Sort by given sort order.
12561
12562 * dispextern.h (struct display_iterator): New member faces_p.
12563 * xdisp.c (init_iterator): Initialize it->faces_p.
12564 (compute_face_at_iterator_string_position): Use it.
12565 (compute_face_at_iterator_position): Use it.
12566 (init_iterator): Use it.
12567 (display_mode_line): Ditto.
12568
12569 * xdisp.c (get_next_display_element): Put code choosing a face
12570 when the charset changes in #ifdef HAVE_FACES.
12571
427ec082 12572 * dispextern.h (FACE_FOR_CHARSET): Replacement for function
26901792
DL
12573 lookup_face_for_charset.
12574
12575 * xfaces.c (free_font_names): Renamed from free_split_font_names.
12576 (free_all_realized_faces): Renamed from remove_all_realized_faces.
12577
125781998-04-25 Gerd Moellmann <gerd@gnu.org>
12579
12580 * xfaces.c (best_matching_font): Return the name of the best
12581 matching font in an array of font_name structures.
12582 (choose_face_font): Use it.
12583 (choose_face_fontset_font): Use it.
12584 (find_best_weight_font): If final font found has same weight as
12585 the font we started with, return the original font because it is a
12586 better match for the resolution of the display.
12587 (find_best_slant_font): Likewise.
12588 (merge_face_vector_with_property): Check more invalid attribute
12589 values.
12590 (lface_suitable_for_charset_p): Replaced by a macro with the same
12591 name in upper-case.
12592
125931998-04-24 Gerd Moellmann <gerd@gnu.org>
12594
12595 * dispextern.h (struct face): Member
12596 fontset_chosen_for_realization_p removed.
12597
12598 * xfaces.c (cache_face): If face->fontset >= 0, add face to the
12599 end of the collision list, so that we find more specific faces
12600 first.
12601 (lookup_face_for_charset): Look up a new face if face->fontset >=
12602 0, and charset != CHARSET_COMPOSITION.
12603
12604 * xfaces.c (split_font_name): Return zero if point size of font
12605 couldn't be computed.
12606 (realize_default_face): Use ASCII font of a fontset to determine
12607 font-related attributes of the default face.
12608 (face_fontset): Return fontset id for face family.
12609 (font_list): Additional parameter font_pattern. If non-nil,
12610 return fonts matching that pattern.
12611
126121998-04-23 Gerd Moellmann <gerd@gnu.org>
12613
12614 * xfaces.c (choose_face_fontset): If new fontset cannot be
12615 constructed, or fontset name cannot be split, return the id of the
12616 standard fontset.
12617
12618 * xterm.c (XTframe_up_to_date): Check that frame is an X frame.
12619 When Emacs starts, it may be called for the initial frame which
12620 isn't an X frame.
12621
12622 * dispextern.h (struct face): New members foreground_defaulted_p,
12623 background_defaulted_p.
12624 (struct face): Members `mask' and `cache' removed.
12625
12626 * xfaces.c (load_color): Set them.
12627 (free_face_colors): Check them.
427ec082 12628 (xlfd_point_size): Return -1 if resolution or point size of
26901792
DL
12629 font unknown.
12630
12631 * xfaces.c (free_font): Removed.
12632 (load_face_font_or_fontset): Renamed from load_font.
12633 (load_face_font_or_fontset): Use message2 instead of signalling.
12634 (load_color): Likewise.
12635 (load_pixmap): Likewise.
12636
12637 * xterm.h (struct x_display_info): Add screen_dpi.
12638 * xterm.c (x_term_init): Initialize it.
12639 * xfaces.c (xlfd_point_size): Use it.
12640 (split_font_name): Compute numeric XLFD_RESY.
427ec082 12641 (cmp_font_names): Make fonts with an y-resolution more
26901792
DL
12642 similar to that of the frame appear first in the result.
12643
12644 * xfaces.c (cache_face): If fontset_chosen_for_realization_p
12645 is set for the face to cache, add it to the end of the collision
12646 list.
12647 (try_font_list): If fonts for given family and registry cannot
12648 be found, first try to keep the registry, and choose a different
12649 family.
12650 (choose_face_font): Allow nfonts == 0.
12651 (try_font_list): Give up if no font matches given registry.
12652
126531998-04-22 Gerd Moellmann <gerd@gnu.org>
12654
12655 * xterm.c (x_get_char_font_and_encoding): Get font_info from
12656 font info id of the face.
12657
12658 * xfaces.c (load_font): Set font_info_id.
12659 (realize_face): Ditto.
12660
12661 * dispextern.h (struct face): Change member font_info to
12662 font_info_id.
12663
12664 * fontset.h (FONT_INFO_ID): Build an ID from a font_info pointer.
12665 (FONT_INFO_FROM_ID): Get a font_info pointer from an ID.
12666
12667 * xdisp.c (extend_face_to_end_of_line): If IT's current charset
12668 isn't ASCII, get the ASCII face before adding a space.
12669 (append_space): Likewise.
12670 (insert_left_trunc_glyphs): Initialize truncate_it's charset
12671 to -1 so that it will compute the right face for the truncation
12672 glyphs.
12673
12674 * xfaces.c (realize_face): Set
12675 face->fontset_chosen_for_realization_p.
12676 (lookup_face_for_charset): If fontset wasn't specified originally
12677 and new charset != CHARSET_COMPOSITION, get a new face for that
12678 charset.
12679
12680 * dispextern.h (struct face): New member
12681 fontset_chosen_for_realization_p_specified_p. Set to 1 when
12682 realize_face has chosen a fontset to display composite characters
12683 for a Lisp face not specifying a fontset.
12684
12685 * xdisp.c (extend_face_to_end_of_line): Move tests for default
12686 face and line already filled here. Don't do anything if current
12687 face hasn't a relief or has a background equal to the frame
12688 background.
12689
12690 * xfaces.c (split_font_name): Additional parameter numeric_p.
12691 Don't compute numeric values if it is non-zero.
12692 (choose_face_fontset): Call split_font_name with numeric_p == 0.
427ec082 12693 (choose_face_fontset): Print a message if fontset contains a
26901792
DL
12694 font whose name cannot be split into fields.
12695
126961998-04-21 Gerd Moellmann <gerd@gnu.org>
12697
427ec082 12698 * xfaces.c (try_font_list): Try to load a list of fonts,
26901792
DL
12699 possibly using less restrictive patterns.
12700 (choose_face_font): Use it.
12701
12702 * xterm.c (x_get_char_font_and_encoding): For charset !=
12703 CHARSET_ASCII use font_info of face if face hasn't a fontset set.
12704
12705 * dispextern.h (struct face): New member font_info.
12706
12707 * xfaces.c (load_font): Use FS_LOAD_FONT to load fonts for faces
12708 specifying a fontset as well as those not having a fontset.
12709 (free_font): Make it empty.
12710 (realize_face): Use changed load_font.
12711
12712 * xterm.c (x_get_char_font_and_encoding): If face doesn't
12713 fit for charset, get the right one.
12714
12715 * xfaces.c (load_font): Take frame and name parameter, return
12716 font.
12717 (free_font): Likewise.
12718 (split_font_name): Compute numeric values for height, swidth etc.
12719 (cmp_font_names): Use them.
12720 (find_best_width_font): Ditto.
12721 (find_best_height_font): Ditto.
12722 (find_best_weight_font): Ditto.
12723 (find_best_slant_font): Ditto.
12724 (lface_hash): Add weight, slant, swidth and relief to hash value.
12725 (lface_equal_p): Make it faster.
12726 (lface_from_symbol): Use assq_no_quit.
12727 (Fnote_default_face_changed): Removed.
12728 (cmp_font_names): Use strcmp instead of xstricmp.
12729 (face_charset_registries): Removed.
12730
127311998-04-20 Gerd Moellmann <gerd@gnu.org>
12732
12733 * frame.h (CHECK_FRAME): Give this macro a statement form.
12734 (CHECK_LIVE_FRAME): Ditto.
12735
12736 * xfaces.c (find_best_width_font): Find the best matching font
12737 for a given width.
12738 (find_best_height_font): Likewise for height.
12739 (find_best_weight_font): Likewise for weight.
12740 (find_best_slant_font): Likewise for slant.
12741 (choose_face_font): Use them.
12742 (get_lface_attributes): Always return frame-local face attrs.
427ec082 12743 (Finternal_merge_in_global_face): Merge local face with
26901792
DL
12744 global face attributes.
12745
12746 * xfaces.c (check_lface_attrs, check_lface): Check consistency of
12747 Lisp face attributes.
12748
127491998-04-19 Gerd Moellmann <gerd@gnu.org>
12750
12751 * xfaces.c (Finternal_set_lisp_face_attribute): Add :bold
12752 and :italic for compatibility.
12753 (Finternal_set_lisp_face_attribute_from_resource): Handle
427ec082 12754 :bold and :italic. Handle boolean resource values for
26901792
DL
12755 :underline and :italic.
12756
12757 * xfns.c (display_x_get_resource): Make it externally visible.
12758
12759 * xfaces.c (lface_from_symbol): Take a frame as parameter.
12760 If that frame is non-null, return the frame-local face.
12761 (Finternal_make_lisp_face): Additional frame argument.
12762 (lface_attributes): Get face attributes from global and frame-local
12763 definitions.
12764 (Finternal_lisp_face_equal_p): Additional frame argument.
12765 (merge_lisp_face_vector_with_property): Ditto.
12766 (Frealize_basic_faces): Removed.
12767 (Finternal_get_lisp_face_attribute): Additional frame argument.
12768 (Finternal_lisp_face_p): Ditto.
12769 (load_color) [MSDOS]: Removed because it isn't clear how
12770 to do this for MS-DOS.
12771
12772 * xfaces.c (lface_from_symbol): Get global face definition
12773 from face-global-alist.
12774
12775 * xfaces.c (Finternal_set_lisp_face_attribute): Allow `t'
12776 as values for :underline and :inverse-video.
12777 (Finternal_set_lisp_face_attribute): Allow nil values.
12778
127791998-04-17 Gerd Moellmann <gerd@gnu.org>
12780
12781 * xfaces.c (Finternal_make_lisp_face): Return Lisp face vector.
12782
12783 * xfaces.c (syms_of_xfaces): Add Vall_faces.
12784 (Finternal_make_lisp_face): Add new face to Vall_faces.
12785
12786 * xdisp.c (echo_area_display): Remove code recomputing faces.
12787 (redisplay_internal): Ditto.
12788 (init_iterator): Do it here.
12789
12790 * xfaces.c (choose_face_font): Check that swidth doesn't change
12791 for subusequent attributes.
12792 (xlfd_point_size): Return int.
12793
12794 * xdisp.c (redisplay_internal, echo_area-display): If realized
12795 faces have been cleared, call recompute_basic_faces.
12796
12797 * xfaces.c (recompute_basic_faces): Free realized faces. Reset
12798 face_attributes_changed_p.
427ec082 12799 (remove_all_realized_faces): Remove all realized faces on
26901792
DL
12800 all frames.
12801 (Finternal_set_lisp_face_attribute): Call remove_all_realized_faces.
12802
12803 * xdisp.c (redisplay_internal): If face attributes have been
12804 changed since the last redisplay, recompute basic faces.
12805 (echo_area_display): Ditto.
12806
12807 * xfaces.c (clear_face_gcs): Renamed from clear_realized_face_cache.
12808
12809 * xfaces.c (min_char_bounds): If face cache not yet present,
12810 don't try to get font dimensions from faces.
12811
12812 * xterm.c (x_frame_mode_line_height): If face cache not present
12813 set, return default height.
12814
12815 * alloc.c (mark_face_cache): Check for null faces. Correct
12816 index bug.
12817
12818 * dispextern.h (struct face): Renamed from struct rface. Member
12819 underline renamed underline_p. Make it a bit-field.
12820
12821 * xfaces.c (init_frame_faces): Allocate face cache.
12822 (free_frame_faces): Free face cache.
12823 (recompute_basic_faces): Realize basic faces only if face cache is
12824 allocated, i.e. after init_frame_faces has been called.
12825
12826 * frame.c (make_frame): Initialze face cache with null.
12827
12828 * xfaces.c (same_size_fonts): Removed.
12829
427ec082 12830 * xterm.c (x_set_glyph_string_gc): Add post-condition
26901792
DL
12831 s->gc != 0.
12832 (x_set_mouse_face_gc): Ditto.
12833 (x_set_mode_line_face_gc): Ditto.
12834
427ec082
SS
12835 * xfaces.c (realize_default_face): Return int. Value is
12836 zero if frame params don't contain enough information to
26901792
DL
12837 realize the default face.
12838 (realize_basic_faces): Ditto.
12839 (init_frame_faces): Realize basic faces.
12840
12841 * xfns.c (x_set_font): First store real font name in frame
12842 parameters, then call recompute_basic_faces.
12843
12844 * xfaces.c (recompute_basic_faces): Call realize_basic_faces.
12845
128461998-04-16 Gerd Moellmann <gerd@gnu.org>
12847
12848 * xfaces.c (syms_of_xfaces): Correct calls to defsubr.
12849
12850 * xfns.c (Fx_face_fixed_p): Removed.
12851 (Fx_list_fonts): Moved to xfaces.c.
12852
12853 * xfaces.c (compute_face_at_buffer_pos): Renamed to
12854 face_at_buffer_position. Parameter charset removed; always
12855 compute face for CHARSET_ASCII.
12856 (face_at_string_position): Renamed from
12857 compute_face_at_string_pos. Parameter charset removed; always
12858 compute for CHARSET_ASCII.
427ec082 12859 (lookup_face_for_charset): Take frame parameter instead of
26901792
DL
12860 face_cache.
12861 (lookup_face): Ditto.
12862 (compute_char_face): Renamed from compute_glyph_face.
12863
12864 * xdisp.c (init_iterator): Initialize charset member.
12865 (reseat_iterator_to_string): Ditto.
12866 (get_charset_at_buffer_position): Determine charset at
12867 buffer position in current_buffer.
12868 (reseat_iterator): Call above function.
12869 (compute_face_at_iterator_position): Call
12870 compute_face_at_buffer_pos.
12871 (compute_face_at_iterator_string_position): Call
12872 compute_face_at_string_pos.
12873 (get_face_from_id): Removed.
12874 (get_face_from_cursor_pos): Call compute_face_at_buffer_pos.
12875 Call get_charset_at_buffer_position.
12876 (reseat_iterator): Determine face if charset at pos differs
12877 from iterator's charset.
12878 (reseat_iterator_to_glyph_pos): Removed.
12879
12880 * xfaces.c (compute_face_at_bufpos): Remove parameter charset.
12881 Determine charset from buffer position.
12882 (compute_string_char_face): Renamed to compute_face_at_string_pos.
12883 (compute_face_at_bufpos): Renamed to compute_face_at_buffer_pos.
12884
12885 * dispextern.h (struct display_iterator): Add member charset.
12886
128871998-04-15 Gerd Moellmann <gerd@gnu.org>
12888
12889 * xfaces.c (compute_char_face): Removed.
12890
12891 * xdisp.c (get_overlay_arrow_glyph_row): Use compute_glyph_face
12892 with new parameter list.
12893
12894 * xfaces.c (region_face): Removed.
12895 (allocate_face): Removed.
12896 (copy_face): Ditto.
12897 (face_eql): Removed.
12898 (intern_face): Removed.
12899 (clear_face_cache): Removed.
12900 (load_font): Ditto.
12901 (unload_font): Ditto.
12902 (load_color): Ditto.
12903 (unload_color): Ditto.
12904 (new_computed_face): Ditto.
12905 (intern_computed_face): Ditto.
12906 (ensure_face_ready): Ditto.
12907 (merge_faces): Ditto.
12908 (compute_base_face): Ditto.
12909 (merge_face_list): Ditto.
12910 (Fmake_face_internal): Removed.
12911 (Fset_face_attribute_internal): Ditto.
12912 (face_name_id_number): Removed.
12913 (Fframe_face_alist): Ditto.
12914 (Fset_frame_face_alist): Ditto.
12915 (Finternal_next_face_id): Ditto.
12916
12917 * xterm.h (struct x_output): Remove computed_faces, and
12918 param_faces. Remove macros accessing them.
12919
12920 * xfaces.c: Entirely new face implementation added.
12921
129221998-04-11 Gerd Moellmann <gerd@gnu.org>
12923
12924 * dispextern.h (struct glyph_pos): Member `bufpos' renamed
12925 `charpos'.
12926
129271998-04-10 Gerd Moellmann <gerd@gnu.org>
12928
12929 * xterm.c (x_scroll_bar_move): Clear only regions not covered by
12930 scroll bar window to reduce flickering. Clear entire height.
12931
12932 * xdisp.c (move_iterator_vertically_backward): Set iterator's
12933 current_x and hpos to zero after moving to previous line
12934 start.
12935
129361998-04-03 Gerd Moellmann <gerd@gnu.org>
12937
12938 * frame.h (FRAME_FACE_CACHE): Access to a frame's face cache.
12939
12940 * xfaces.c (xlfd_point_size): Compute relative point size of
12941 fonts from font and frame resolution.
12942 (sort_fonts): New function to sort fonts, temporarily setting
12943 font_frame to the frame in effect.
12944 (xlfd_point_size): Take additional frame parameter to be able
12945 to get at the display's resolution.
12946
12947 * xterm.c (x_setup_relief_colors): Use WHITE_PIX_DEFAULT and
12948 BLACK_PIX_DEFAULT.
12949 (x_setup_relief_color): Use FRAME_X_SCREEN instead of default
12950 screen of display.
12951
129521998-03-31 Gerd Moellmann <gerd@gnu.org>
12953
12954 * xfaces.c (choose_face_fontset): Instantiate fontsets.
12955
12956 * fontset.h: Add external declarations for Vfontset_alias_alist
12957 and Vglobal_fontset_alist.
12958
12959 * xfaces.c (merge_lisp_face_vector_with_property): Simplified.
12960 (realize_default_face): If frame parameters contain an artificial
12961 font name naming a fontset, set the family of the default face to
12962 the fontset name given by the registry.
12963
12964 * Makefile.in (alloc.o): Add dependency to dispextern.h.
12965
129661998-03-22 Gerd Moellmann <gerd@gnu.org>
12967
12968 * alloc.c (mark_object): Add function prototype. Add cast to
12969 Lisp_Object pointer in call to mark_object for symbol names
12970 because this otherwise gives a warning from gcc 2.8.1.
12971 (mark_face_cache): Mark Lisp objects in realized faces.
12972
129731998-03-19 Gerd Moellmann <gerd@gnu.org>
12974
12975 * frame.h (struct frame): Add member face_cache.
12976
12977 * alloc.c (mark_object): Mark face cache.
12978 (mark_face_cache): Mark Lisp faces in face cache of frame.
12979
12980 * frame.c (make_frame): Initialize face_cache.
12981 (Fdelete_frame): Free it.
12982
129831998-03-18 Gerd Moellmann <gerd@gnu.org>
12984
12985 * xfaces.c: Very first skeleton of functions for face realization,
12986 face merging, face cache etc.
12987
12988 * dispextern.h (struct rface): Realized faces. Will replace
12989 struct face when tested.
12990 (struct face_cache): Realized face caches.
12991
12992 * xdisp.c (init_iterator): Initialize area member of display
12993 iterator.
12994
129951998-03-17 Gerd Moellmann <gerd@gnu.org>
12996
12997 * xterm.c (x_append_glyph): Use it->area to store glyphs.
12998
12999 * dispextern.h (struct display_iterator): New member area.
13000
13001 * xterm.c (note_overwritten_text_cursor): Note when the text
13002 cursor of a window is overwritten.
13003
13004 * xdisp.c (set_cursor_from_row): If PT is not found in the
13005 row, display the cursor at the start of the row.
13006
13007 * dispnew.c (direct_output_forward_char): Call
13008 set_cursor_from_row.
13009
13010 * xdisp.c (setup_iterator_overlay_strings_from_glyph_pos): If
13011 position is not in an overlay string, set iterator's position and
13012 method explicitly so.
427ec082 13013 (set_cursor_from_row): Correct cursor position calculation.
26901792
DL
13014 Make it externally visible.
13015 (redisplay_window): Call set_cursor_from_row so that there is only
13016 one place where the cursor position is calculated from a current
13017 row.
13018
13019 * dispextern.h (struct display_iterator): New member
13020 overlay_strings_at_end_processed_p.
13021
13022 * xdisp.c (check_iterator): Perform sanity checks on
13023 display_iterators.
13024 (next_element_from_buffer): Check for overlay strings at ZV.
13025
130261998-03-16 Gerd Moellmann <gerd@gnu.org>
13027
13028 * buffer.c (init_buffer_once): Add left_margin_width and
13029 right_margin_width to buffer_local_flags.
13030
13031 * dispnew.c (margin_glyphs_to_reserve): Function computing
13032 number of glyphs to reserve for a marginal area.
13033 (adjust_glyph_matrix): Call it.
13034 (adjust_frame_glyphs_for_frame_redisplay): Return if frame
13035 is not alive.
13036
13037 * window.c (Fset_window_margins): Allow floats.
13038
13039 * buffer.c (syms_of_buffer): Add buffer-local variables
13040 left-margin-width and right-margin-width. Add defaults
13041 default-left-margin-width and default-right-margin-width.
13042
13043 * buffer.h (struct buffer): New members left_margin_width
13044 and right_margin_width.
13045
13046 * window.c (Fset_window_margins): Make window the last and
13047 optional argument.
13048
13049 * xterm.c (x_draw_glyphs): Compute x-positions for rows with
13050 flag no_marginal_areas_p differently.
13051 (x_clear_end_of_line): Ditto.
13052 (x_draw_glyph_string_relief): Compute width of relief differently
13053 for rows with flag no_marginal_areas_p.
13054
13055 * dispnew.c (update_window_line): Update marginal areas only
13056 for rows that don't have no_marginal_areas_p set.
13057
13058 * xdisp.c (display_mode_line): Set row's flag no_marginal_areas_p.
13059 (display_menu_bar): Ditto.
13060
13061 * dispextern.h (struct glyph_row): New member no_marginal_areas_p.
13062
13063 * dispnew.c (adjust_glyph_matrix): Compute glyph pointers for
13064 marginal areas in window-based redisplay.
13065
13066 * dispextern.h (struct glyph_matrix): New members
13067 left_margin_glyphs and right_margin_glyphs.
13068
130691998-03-15 Gerd Moellmann <gerd@gnu.org>
13070
13071 * minibuf.c (read_minibuf_unwind): Return Lisp_Object.
13072
13073 * charset.c (non_ascii_char_to_string): Use char type parameters
13074 because the function is used that way from outside. Use unsigned
13075 char internally.
13076
13077 * window.c (change_window_height): Return void.
13078 (make_dummy_parent): Return void.
13079 (init_window_once): Return void.
13080 (syms_of_window): Ditto.
13081 (keys_of_window): Ditto.
13082 (delete_window): Correct return with and without value.
13083
13084 * buffer.c (record_buffer): Return void.
13085
13086 * marker.c (unchain_marker): Return void.
13087
13088 * window.c (unshow_buffer): Return void.
13089 (replace_window): Ditto.
13090 (delete_window): Ditto.
13091
13092 * term.c (delete_glyphs_hook): Void return type.
13093 (ring_bell_hook): Ditto.
13094 (set_terminal_window_hook): Ditto.
13095
13096 * sysdep.c (init_sigio): Return void.
13097
13098 * xterm.c (x_set_window_size): Return void.
13099 (x_calc_absolute_position): Ditto.
13100 (x_set_offset): Ditto.
13101 (x_focus_on_frame): Ditto.
13102 (x_unfocus_frame): Ditto.
13103 (x_make_frame_visible): Ditto.
13104 (x_make_frame_invisible): Ditto.
13105 (x_iconify_frame): Ditto.
13106 (x_destroy_window): Ditto.
13107 (x_wm_set_window_state): Ditto.
13108 (x_wm_set_icon_pixmap): Ditto.
13109 (x_wm_set_icon_position): Ditto.
13110 (x_initialize): Ditto.
13111 (x_error_quitter): Ditto.
13112 (x_destroy_window): Use xfree instead of free.
13113
13114 * keyboard.c (clear_waiting_for_input): Return void.
13115
13116 * xterm.c (x_wm_set_size_hint): Return void.
13117 (x_raise_frame): Ditto.
13118 (refreshicon): Ditto.
13119 (x_error_catcher): Ditto.
13120 (x_clear_errors): Ditto.
13121
13122 * keyboard.c (record_asynch_buffer_change): Return void.
13123
bb6677a8
GM
13124 The first line of the following paragraph was garbled for an
13125 unknown reason. It couldn't be fully reconstructed.
178c5d9c 13126
bb6677a8 13127 * xterm.c (XTread_socket, XTset_terminal_window): Ditto.
26901792
DL
13128 (x_lower_frame): Ditto.
13129 (x_scroll_bar_clear): Ditto.
13130 (XTflash): Add default case in switch for -Wall.
13131 (construct_mouse_click): Return Qnil.
13132 (cancel_mouse_face): Return void.
13133 (x_queue_event): Use xmalloc instead of malloc.
13134 (x_unqueue_events): Use xfree instead of free.
13135
13136 * ccl.c (ccl_driver): Return int.
13137
13138 * keyboard.c (stop_polling): Return void.
13139 (start_polling): Ditto.
13140
13141 * term.c (keys): Add braces in initializer list for -Wall.
13142
13143 * sysdep.c (tabs_safe_p): Return int.
13144 (init_baud_rate): Return void.
13145
13146 * xterm.c (x_draw_bitmap): Add default case.
13147 (x_setup_relief_colors): Use DefaultScreen instead of
13148 DefaultScreenOfDisplay.
13149 (x_delete_glyphs): Return void.
13150 (construct_menu_click): Put in #if 0 because it isn't called.
13151
13152 * xdisp.c (load_overlay_strings): Remove extraneous argument
13153 in call to qsort.
13154 (get_overlay_arrow_glyph_row): Add missing return value.
13155
13156 * window.c (set_window_height): Return void.
13157 (set_window_width): Ditto.
13158
13159 * sysdep.c (request_sigio): Return void.
13160 (unrequest_sigio): Ditto.
13161 (get_frame_size): Ditto.
13162
13163 * scroll.c (scroll_cost): Return int.
13164 (do_line_insertion_deletion_costs): Return void.
13165
13166 * frame.c (Fdelete_frame): Use xfree instead of free.
13167
13168 * fileio.c (report_file_error): Return void.
13169
13170 * dispnew.c: Make compilable with -Wall.
13171 * term.c: Ditto.
13172
13173 * charset.h (CHAR_LEN): Moved here from dispextern.h.
13174
131751998-03-14 Gerd Moellmann <gerd@gnu.org>
13176
13177 * xterm.c (x_scroll_bar_move): Clear under scroll bar if height is
13178 increased.
13179 (x_setup_relief_color): Free color only for appropriate visual
13180 classes.
13181
13182 * xterm.c (expose_window): Fix calculation of intersection of mode
13183 line rectangle with exposed rectangle.
13184
13185 * xdisp.c (redisplay_window): Don't do cursor movement based
13186 on current matrix if w->last_point is not valid.
13187
131881998-03-09 Gerd Moellmann <gerd@gnu.org>
13189
13190 * xterm.c (expose_line): Redraw mode line and menu lines
13191 differently because they reach into the scroll bar area.
13192
13193 * xdisp.c (redisplay_window): If redisplaying with same window
13194 start, don't accept cursor on partially visible line.
13195
131961998-03-08 Gerd Moellmann <gerd@gnu.org>
13197
13198 * xterm.c (x_set_glyph_string_clipping): Set clip rectangle
13199 for wider mode lines.
13200 (x_draw_glyph_string_relief): Use larger rectangle for mode lines.
13201
13202 * xdisp.c (init_iterator): Increase last_visible_x by vertical
13203 scroll bar width for mode lines.
13204
13205 * dispnew.c (allocate_matrices_for_window_redisplay): Include
13206 vertical scroll bar width in width calculation so that we can
13207 display mode lines wider.
13208
13209 * xdisp.c (redisplay_window): Restore buffers before returning
13210 when fonts have changed.
13211
13212 * dispnew.c (update_window): Mark invisible rows in the current
13213 matrix invalid.
13214
13215 * xdisp.c (try_window_id): Force update of first row displayed
13216 at window end.
13217 (dump_glyph_matrix): Extracted from Fdump_glyph_matrix.
13218
132191998-03-05 Gerd Moellmann <gerd@gnu.org>
13220
13221 * dispextern.h (struct glyph_row): Member max_ascent renamed
13222 ascent. Member max_descent replaced by height.
13223 (struct display_iterator): Member max_descent replaced by height.
13224 (MATRIX_ROW_PIXEL_HEIGHT): Removed.
13225
13226 * xterm.c (x_alloc_lighter_color): Don't free colors if visual
13227 class makes it unnecessary or dangerous.
13228
13229 * xdisp.c (redisplay_window): Case only point has changed, and
13230 point has moved forward. Move forward over overlay strings.
13231 (display_line): Don't set cursor if first glyph from PT is part of
13232 a continuation line.
13233
132341998-02-21 Gerd Moellmann <gerd@gnu.org>
13235
13236 * xdisp.c (start_display): When computing continuation lines
13237 width, add current_x to the continuation lines width because
13238 move_iterator_to will stop in front of the buffer position moved
13239 to.
13240
132411998-02-20 Gerd Moellmann <gerd@gnu.org>
13242
13243 * xdisp.c (redisplay_window): Don't try try_window_id if
13244 windows_or_buffers_changed.
13245
13246 * xterm.c (x_alloc_lighter_color): Try both factor and delta to
13247 determine a color.
13248 (x_setup_relief_color): Allocate/ change one relief.
13249 (x_setup_relief_colors): Call above function.
13250
13251 * xterm.h (struct relief): New structure type holding relief info:
13252 GCs, colors, and whether colors are allocated.
13253
427ec082 13254 * xterm.c (x_alloc_lighter_color): If multiplying by factor
26901792
DL
13255 produces the same color, try adding a delta to RGB values.
13256 (x_setup_relief_colors): Free color cells.
13257
427ec082 13258 * xterm.h (struct x_output): New members white_relief_pixel,
26901792
DL
13259 black_relief_pixel holding the foreground colors allocated for
13260 relief GCs. New members white_allocated_p, black_allocated_p.
13261
13262 * xterm.c (x_scroll_run): Don't set updated_window to null.
13263 This resets updated_window when called from scrolling_window.
13264
13265 * dispextern.h (scroll_run_hook): Renamed from line_dance_hook.
427ec082 13266
26901792
DL
13267 * xterm.c (x_scroll_run): Additional window parameter. Set
13268 and reset updated_window.
13269
13270 * dispnew.c (line_dance_hook): Additional window parameter.
13271
13272 * xdisp.c (try_window_reusing_current_matrix): Don't call
13273 update_window_begin/end here. The end function would display the
13274 cursor on a wrong position and the additional functionality of
13275 update_window_begin is not needed anyway. Just set
13276 updated_window.
13277 (try_window_id): Ditto.
13278
13279 * dispnew.c (Fblink_cursor): Remove call to detect_input_pending.
13280 Don't redraw cursor during redisplay.
13281
13282 * xterm.c (x_scroll_run): Renamed from do_line_dance.
13283
13284 * xdisp.c (redisplay_window): For window-based redisplay, alway
13285 try try_window_id.
13286
13287 * xterm.c (struct glyph_string): New member two_byte_p that is
13288 non-zero if 16-bit drawing functions must be used.
13289 (x_fill_composite_glyph_string): Set it.
13290 (x_fill_glyph_string): Set it.
13291 (x_draw_glyph_string_foreground): Use it.
13292 (x_draw_vertical_border): Make line 1 pixel less tall.
13293 (x_draw_row_bitmaps): Decrease width of area cleared on the left
13294 side by 1 pixel if window is not right-most hasn't vertical scroll
13295 bars.
13296 (x_draw_phys_cursor_glyph): Do nothing if phys_cursor.hpos is
13297 out of bounds.
13298 (x_draw_glyph_string_foreground): Use XDrawImageStringX if
13299 hl == DRAW_CURSOR.
13300
13301 * xdisp.c (start_display): Check that window start is at line
13302 start if GLYPH_DEBUG != 0.
13303
13304 * window.c (window_scroll_pixel_based): Move assertion to
13305 start_display.
13306
133071998-02-19 Gerd Moellmann <gerd@gnu.org>
13308
427ec082 13309 * xterm.c (x_redraw_cursor): Don't redraw the cursor if the
26901792
DL
13310 frame hasn't the focus.
13311
13312 * window.c (make_window): Initialize dy.
13313 (replace_window): Ditto.
13314
13315 * window.h (window): New member dy specifying the amount by which
13316 a window is scrolled "smoothly".
13317
13318 * xterm.c (x_set_glyph_string_clipping): Don't use glyph string's
427ec082 13319 y-position because it can be negative.
26901792
DL
13320 (x_draw_row_bitmaps): Don't clear with negative y-position like
13321 above.
13322 (x_clear_end_of_line): Same theme as above.
13323
13324 * xterm.c (x_alloc_nearest_color): Allocate a color or, if no
13325 exact match exists, the nearest existing color. Patterned after
13326 defined_color.
13327 (x_alloc_lighter_color): Allocate a color that is lighter or
13328 darker than a given color by a specified factor.
427ec082 13329 (x_setup_relief_colors): Set up relief line colors based on
26901792
DL
13330 the background color of a glyph string face.
13331 (x_draw_glyph_string_relief): Call x_setup_relief_colors.
13332
13333 * xfns.c (x_make_gc): Don't allocate relief GCs.
13334 * widget.c (create_frame_gcs): Don't allocate relief GCs.
13335 (setup_frame_gcs): Don't change relief GCs.
13336
13337 * xterm.h (struct x_output): New member relief_background giving
13338 the background pixel color for which relief GCs can be used.
13339 Set by x_setup_relief_colors.
13340
13341 * xterm.c (x_draw_glyph_string_relief): Draw relief differently
13342 for mode and menu lines.
13343
13344 * xdisp.c (set_next_iterator_stop_pos): No longer static.
13345
13346 * dispnew.c (direct_output_for_insert): Call
13347 set_next_iterator_stop_pos after having changed it2.endpos.
13348
133491998-02-17 Gerd Moellmann <gerd@gnu.org>
13350
13351 * dispnew.c (update_window): Work on selected_window, only.
13352
13353 * xterm.c (x_erase_phys_cursor): Return quickly if physical cursor
13354 hpos is >= number of glyphs in the cursor row.
13355
13356 * xdisp.c (try_window_id): Bug fix; update_window_end was not
13357 called.
13358
133591998-02-16 Gerd Moellmann <gerd@gnu.org>
13360
13361 * xdisp.c (init_iterator): Increase last_visible_x for mode lines
13362 and menu lines.
13363
13364 * dispnew.c (allocate_matrices_for_window_redisplay): Allocate
13365 enough glyphs to display a mode line or menu line which draws over
13366 flags areas.
13367
13368 * xterm.c (XTset_vertical_scroll_bar): Use
13369 WINDOW_DISPLAY_TEXT_AREA_PIXEL_HEIGHT instead of
13370 VERTICAL_SCROLL_BAR_PIXEL_HEIGHT.
427ec082 13371 (x_draw_glyphs): Draw over flags areas when drawing a mode line
26901792
DL
13372 or menu.
13373 (x_set_glyph_string_clipping): Set clipping differently if drawing
13374 a mode line or menu line.
13375
13376 * xterm.h (VERTICAL_SCROLL_BAR_PIXEL_HEIGHT): Removed.
13377
13378 * xterm.c (expose_line): Don't draw bitmaps for mode lines and
13379 menu lines.
13380 (x_scroll_bar_create): Don't clear flags areas.
13381 (x_draw_row_bitmaps): Clear visible row height, only.
13382
13383 * dispnew.c (Fblink_cursor): Moved here from xdisp.c.
13384
133851998-02-15 Gerd Moellmann <gerd@gnu.org>
13386
13387 * dispnew.c (direct_output_for_insert): When checking for tabs in
13388 the line, set it2.endpos to ZV.
427ec082 13389
26901792
DL
13390 * window.h (struct window): New member cursor_off_p.
13391 * xterm.c (x_redraw_cursor): Implementation of redraw_cursor_hook
13392 for X.
13393 * dispnew.c (redraw_cursor_hook): If non-null, function that can
13394 be called to display or erase the cursor.
13395 * xdisp.c (Fblink_cursor): Blink the cursor of a specified window
13396 or selected_window.
13397
13398 * xterm.h (text_cursor_kinds): Enumerators changed to uppercase.
13399
13400 * dispnew.c (update_window_line): Special handling of inverse
13401 lines in #if 0 removed.
13402
13403 * xterm.c (x_write_glyphs): Renamed from XTwrite_glyphs.
13404 (x_insert_glyphs): Renamed from XTinsert_glyphs.
13405 (x_clear_frame): Renamed from XTclear_frame.
13406 (x_clear_end_of_line): Renamed from XTclear_end_of_line.
13407 (x_ins_del_lines): Renamed from XTins_del_lines.
13408 (x_change_line_height): Renamed from XTchange_line_height.
13409 (x_delete_glyphs): Renamed from XTdelete_glyphs.
13410 (x_clear_cursor): Renamed from clear_cursor.
13411 (x_update_begin): Renamed from XTupdate_begin.
13412 (x_update_end): Renamed from XTupdate_end.
13413 (x_update_window_begin): Renamed from XTupdate_window_begin.
13414 (x_update_window_end): Renamed from XTupdate_window_end.
13415 (x_frame_mode_line_height): Renamed from XTframe_mode_line_height.
13416 (x_produce_glyphs): Renamed from XTproduce_glyphs.
13417 (x_produce_special_glyphs): Renamed from XTproduce_special_glyphs.
13418 (x_produce_special_glyphs): Implementation in #if 0 removed.
13419
13420 * xdisp.c (Fdump_redisplay_state): Display row's fill_line_p
13421 flag in the dump.
13422
13423 * dispnew.c (update_text_area): Handling of glyphs with pixel
13424 width zero removed. Decrement desired stop pos if desired row
13425 fills its line.
13426
13427 * xterm.c (x_fill_glyph_string): Handling of glyphs with pixel
13428 width zero removed.
13429 (BUILD_GLYPH_STRINGS): Set glyph string flag
13430 extends_to_end_of_line_p based on row's flag fill_line_p and face
13431 background and stipple. Make sure it works for composite characters.
13432
13433 * xdisp.c (extend_face_to_end_of_line): Set the glyph row flag
13434 fill_line_p. For window-based redisplay, add a space only if
13435 the row is empty so that we know the face to draw.
13436
13437 * dispextern.h (struct glyph_row): New flag fill_line_p. Non-zero
13438 means draw the face of the last glyph in the text area to the
13439 right end of the text area.
13440
13441 * xdisp.c (init_iterator): Show region in window mini-buffer
13442 window refers to.
13443
427ec082 13444 * dispextern.h (struct display_iterator): Redundant member
26901792
DL
13445 region_showing_p removed. Test for region_beg > 0 instead.
13446
13447 * dispnew.c (update_text_area): Clear to end of line if cursor is
13448 beyond the end of the desired line. Necessary because we don't
13449 have a phys_cursor_glyph with which to erase the cursor. We don't
13450 have one because this method of drawing a cursor doesn't work with
13451 lbearing/rbearing.
13452
13453 * xterm.c (XTinsert_glyphs): Block input.
13454
134551998-02-14 Gerd Moellmann <gerd@gnu.org>
13456
13457 * xterm.c (x_set_cursor_gc): Don't use cursor_gc for composite
13458 glyph strings.
13459 (x_draw_glyph_string_background): Fill background with background
13460 pixel for the first glyph of a composite character.
13461
13462 * xdisp.c (try_window): Change return type to int. Value is zero
13463 if fonts were loaded during redisplay.
13464 (redisplay_window): Return if fonts have been loaded during
13465 redisplay.
13466 (append_space): New parameter default_face_p.
13467
134681998-02-13 Gerd Moellmann <gerd@gnu.org>
13469
13470 * dispnew.c (adjust_glyph_matrix): In case of optimizing C-x 2,
13471 don't let a partially visible line in a current matrix stay
13472 enabled.
13473
134741998-02-09 Gerd Moellmann <gerd@gnu.org>
13475
13476 * minibuf.c (read_minibuf): Put access to minibuffer_prompt_length
13477 in #if PROMPT_IN_BUFFER.
13478
13479 * xdisp.c (display_line): If row ends in ZV, make the space
13480 that is added to place the cursor on it appear in default face.
13481
427ec082 13482 * xterm.c (expose_area): New function redrawing a single
26901792
DL
13483 glyph row area.
13484 (expose_line): Use it to redraw all areas of a row.
13485
13486 * dispextern.h (move_operation_enum): New enum
13487 move_operation_enum.
13488
13489 * window.c (window_scroll_pixel_based): Remove now unnecessary
13490 code that made sure that it->current_y doesn't become negative.
13491
13492 * xdisp.c (move_iterator_in_display_line_to): New parameter
13493 op. Special meaning of to_pos <= 0 and to_x < 0 removed.
13494 (move_iterator_to): Ditto.
13495
13496 * dispextern.h (struct glyph_matrix): New member window_width.
13497
13498 * dispnew.c (adjust_glyph_matrix): Set window_width. Optimize
13499 case of changing window height.
13500
13501 * xterm.c (x_draw_row_bitmaps): Don't clear vertical window
427ec082 13502 border to the left.
26901792
DL
13503
13504 * dispextern.h (struct glyph_row): Remove right_to_left_p. RMS
13505 says this aspect of Emacs is currently redesigned.
13506
13507 * xterm.c (x_clip_to_row): Subtract 1 from clip width if we
13508 have to draw a vertical border.
13509
13510 * window.c (window_scroll_pixel_based): When scrolling down by
13511 screen-fulls, make sure it.current_y doesn't get negative because
13512 this would confuse move_iterator_vertically.
13513
13514 * xdisp.c (move_iterator_vertically_backward): Bug fix for
13515 the case continuation lines are involved.
13516 (try_window_id): Don't set the cursor into scroll margins.
13517
135181998-02-08 Gerd Moellmann <gerd@gnu.org>
13519
13520 * xterm.c (x_append_glyph): Don't compute left_overhang and
13521 right_overhang.
13522 (XTproduce_glyphs): left_overhang and right_overhang removed.
13523 Set it->glyph_row->contains_overlapping_glyphs_p.
13524
13525 * xdisp.c (Fdump_redisplay_state): Output of glyph->left_overhang
13526 and right_overhang removed.
13527
13528 * dispextern.h (struct glyph_row): New member
13529 contains_overlapping_glyphs_p used to optimize glyph drawing.
13530 (struct display_iterator): left_overhang and right_overhang
13531 removed.
13532 (struct glyph): Ditto.
13533
13534 * xterm.c (x_draw_relief): Removed.
13535 (x_draw_bitmap): Renamed from draw_bitmap.
13536 (x_draw_glyphs): Completely new implementation of draw_glyphs
13537 capable of handling arbitrary lbearing and rbearing values.
13538 Several sub-functions not mentioned here.
13539
135401998-01-30 Gerd Moellmann <gerd@gnu.org>
13541
13542 * xterm.c (x_erase_phys_cursor): Clear area under the cursor only
427ec082 13543 if displaying hollow box cursor. draw_glyphs should handle
26901792
DL
13544 other cases.
13545 (draw_glyphs): Move start to the left and end to the right if they
427ec082 13546 overlap with previous or following characters.
26901792 13547 (draw_glyphs): If background is cleared for hl == DRAW_CURSOR,
427ec082 13548 make sure XDrawString uses function GXset. Otherwise the
26901792
DL
13549 character under the cursor would be invisible.
13550 (x_draw_bar_cursor): Don't draw over previous character if it
13551 has right_overhang.
13552
13553 * window.c (get_phys_cursor_glyph): Return the glyph under a
13554 window's physical cursor.
427ec082 13555
26901792
DL
13556 * xterm.c (x_draw_hollow_cursor): Use get_phys_cursor_glyph.
13557 (x_draw_bar_cursor): Ditto.
13558 (x_erase_phys_cursor): Ditto.
13559 (x_phys_cursor_in_rect_p): Ditto.
13560 (x_display_and_set_cursor): Remove reference to w->phys_cursor_glyph.
13561
13562 * window.c (make_window): Remove reference to phys_cursor_glyph.
13563 (replace_window): Ditto.
13564
13565 * window.h (struct window): Remove phys_cursor_glyph. There is
427ec082 13566 now always a glyph present for placing the cursor on it in
26901792
DL
13567 each glyph row, even at the end of a line.
13568
13569 * xdisp.c (append_space): Function to add a space to an iterators
13570 glyph row.
13571 (display_line): Add spaces at the end of lines that are used to
13572 place the cursor on them.
13573 (compute_line_metrics): If row consists of a space only that was
427ec082 13574 added to place the cursor on it, use that space's height as the
26901792
DL
13575 line height.
13576
135771998-01-29 Gerd Moellmann <gerd@gnu.org>
13578
13579 * xdisp.c (Fdump_redisplay_state): Dump left and right overhang of
13580 glyphs.
13581
135821998-01-28 Gerd Moellmann <gerd@gnu.org>
13583
13584 * xterm.c (x_append_glyph): Set overhang of glyph from iterator.
13585 (XTproduce_glyphs): Set it->left_overhang and it->right_overhang.
13586
13587 * dispextern.h (struct glyph): Add left_overhang and
427ec082 13588 right_overhang.
26901792
DL
13589 (struct display_iterator): Ditto.
13590
13591 * dispnew.c (direct_output_for_insert): Give up if newly inserted
13592 glyphs have different ascent or descent than original row.
13593
13594 * xdisp.c (compute_line_metrics): Compute row->max_ascent and
13595 row->max_descent only if unknown.
13596 (display_line): Compute row->max_ascent and row->max_descent.
13597 (display_string): Ditto.
13598
13599 * window.h (struct window): New members phys_cursor_ascent and
427ec082 13600 phys_cursor_descent.
26901792
DL
13601
13602 * xterm.c (x_phys_cursor_in_rect_p): Use them.
13603 (x_draw_hollow_cursor): Ditto.
13604 (x_erase_phys_cursor): Ditto.
13605 (x_display_and_set_cursor): Set them.
13606 (x_append_glyph): Don't set glyph members that were removed.
13607
13608 * dispextern.h (struct glyph): Members ascent, descent,
13609 contributes_to_line_height_p removed.
13610
136111998-01-25 Gerd Moellmann <gerd@gnu.org>
13612
13613 * dispextern.h (DEFAULT_FACE_ID, MODE_LINE_FACE_ID): Symbolic
13614 names for face ids of frame default face and mode line face.
13615
13616 * xdisp.c (compute_face_at_iterator_string_position): If
13617 displaying a mode line use MODE_LINE_FACE_ID instead of
13618 DEFAULT_FACE_ID.
13619
13620 * xdisp.c (reseat_iterator_to_string): Additional parameter start.
13621 (display_string): Ditto, additional parameter lisp_string.
13622 (display_line): Call display_string with Lisp mini-buffer prompt
13623 string.
13624 (display_menu_bar): Call display_string with Lisp string.
13625 (display_mode_element): Ditto.
13626 (next_element_from_string): Make it work for non-overlay Lisp
13627 strings with field width and precision.
13628
13629 * minibuf.c (minibuffer-prompt-in-buffer): Bound if
13630 PROMPT_IN_BUFFER.
13631
13632 * xfaces.c (compute_string_char_face): Fix face computation
13633 for overlay strings.
13634
13635 * xdisp.c (struct overlay_entry): Add member after_string_p.
13636 (load_overlay_strings): Simplify.
13637
13638 * window.c (delete_window): Defer glyph matrix adjustment.
13639 (Fsplit_window): Ditto.
13640 (change_window_height): Ditto.
13641 (Fset_window_configuration): Ditto.
13642 (Fset_window_margins): Ditto.
13643 * frame.c (set_menu_bar_lines): Ditto.
13644 (Fmake_terminal_frame): Ditto.
13645 * dispnew.c (change_frame_size_1): Ditto.
13646
136471998-01-24 Gerd Moellmann <gerd@gnu.org>
13648
13649 * xdisp.c (move_iterator_vertically_backward): Change algorithm.
13650
427ec082 13651 * dispnew.c (direct_output_for_insert): Give up if start
26901792
DL
13652 position has overlay strings.
13653
13654 * xdisp.c (display_line): Don't set cursor if row ends in middle
13655 of overlay string.
13656 (Fdump_redisplay_state): Print complete row start and end
13657 position.
13658 (redisplay_window): Cursor movement when matrix hasn't changed---
13659 if PT < last_point, maybe move forward if row ends at PT and
13660 in middle of char.
13661
13662 * minibuf.c (read_minibuf): Save the value of
13663 minibuffer_prompt_length in minibuf_save_list.
13664 (read_minibuf_unwind): Restore minibuffer_prompt_length.
13665
13666 * xdisp.c (redisplay_window): Add assertion for cursor movement
13667 case, PT < last_point.
13668 (move_iterator_in_display_line_to): If to_pos specified, move
13669 over before-strings.
13670
13671 * dispextern.h (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Test
13672 start.string_index > 0.
13673
13674 * xdisp.c (redisplay_internal): Adjust glyphs if fonts_changed_p
13675 is set. Retry redisplay if fonts_changed_p is set before update.
13676
13677 * xterm.c (x_load_font): Set fonts_changed_p.
13678
13679 * xfaces.c (Fset_face_attribute_internal): Set fonts_changed_p.
13680
13681 * dispnew.c (adjust_glyphs_for_font_change): Removed.
13682
13683 * xdisp.c (try_window): Check fonts_changed_p.
13684 (try_window_reusing_current_matrix): Ditto.
13685 (try_window_id): Ditto.
13686
13687 * dispnew.c (adjust_glyphs_for_font_change): Set fonts_changed_p.
13688 (fonts_changed_p): Flag indicating a font change since the last
13689 glyph matrix adjustment.
13690
13691 * xterm.c (x_per_char_metric): Use font->max_bounds as
13692 char metric of the font's default char if the default char
13693 hasn't per char metric itself.
13694
13695 * xfaces.c (Fset_face_attribute_internal): Adjust glyphs
13696 for font change.
13697 (min_char_bounds): Check face->font != NULL.
427ec082 13698 (font_min_bounds): Return minimum font metrics. Capture the
26901792
DL
13699 case of invalid min_bounds contents.
13700 (min_char_bounds): Call font_min_bounds.
13701
137021998-01-22 Gerd Moellmann <gerd@gnu.org>
13703
13704 * xdisp.c (start_display): Don't set it->prompt_width if
13705 PROMPT_IN_BUFFER.
13706 (move_iterator_in_display_line_to): Ditto.
13707 (display_line): Don't display prompt via display_string if
13708 PROMPT_IN_BUFFER.
13709
13710 * minibuf.c (Fminibuffer_prompt_width): Return value from
13711 current_buffer if PROMPT_IN_BUFFER.
427ec082 13712 (read_minibuf): If PROMPT_IN_BUFFER, insert prompt into
26901792
DL
13713 mini-buffer and make it read-only.
13714 (Fminibuffer_complete_and_exit): If PROMPT_IN_BUFFER, use
13715 minibuffer_prompt_length instead of BEGV.
13716 (Fminibuffer_complete_word): Ditto.
13717 (Fminibuffer_complete_word): Ditto.
13718
13719 * insdel.c (del_range_1): If PROMPT_IN_BUFFER, and start position
13720 is less than mini-buffer prompt width, use prompt width as start.
13721
13722 * editfns.c (make_buffer_string): If PROMPT_IN_BUFFER, and start
13723 position is less than mini-buffer prompt width, use the prompt
13724 width as start.
13725
13726 * cmds.c (Fbeginning_of_line): If PROMPT_IN_BUFFER, set point to
13727 end of prompt if applied to a mini-buffer and BEG reached.
13728
137291998-01-21 Gerd Moellmann <gerd@gnu.org>
13730
13731 * editfns.c (make_buffer_string): If PROMPT_IN_BUFFER, add prompt
13732 length to start position.
13733
13734 * buffer.c (Fget_buffer_create): Initialize
13735 minibuffer_prompt_length.
13736 (Fmake_indirect_buffer): Ditto.
13737 (Fkill_buffer): Ditto.
13738
13739 * buffer.h (struct buffer): Add member minibuffer_prompt_length
13740 if PROMPT_IN_BUFFER.
13741
137421998-01-19 Gerd Moellmann <gerd@gnu.org>
13743
13744 * xdisp.c (next_element_from_string): Make it work for arbitrary
13745 Lisp strings.
13746 (set_iterator_to_next): Advance to next overlay string only
13747 if it->string is an overlay string.
13748
13749 * dispextern.h (struct display_iterator):
13750 next_ovstr_face_check_pos renamed next_string_face_check_pos.
13751
427ec082 13752 * xfaces.c (compute_string_char_face): Compute face for
26901792
DL
13753 arbitrary Lisp string. Renamed from compute_overlay_string_char_face.
13754
13755 * xdisp.c (next_element_from_string): Renamed from
13756 next_element_from_overlay_string.
427ec082 13757 (compute_face_at_iterator_string_position): Renamed from
26901792
DL
13758 compute_face_at_iterator_overlay_string_position.
13759
13760 * dispextern.h (struct display_iterator): Member overlay_string
13761 renamed string.
13762
13763 * xdisp.c (next_element_from_c_string): Renamed from
13764 next_element_from_string.
13765
13766 * dispextern.h (struct glyph_pos): Reversed meaning of
13767 overlay_string_index and string_index.
13768
13769 * xdisp.c (next_element_from_overlay_string): Fix bug that made
13770 this function always return the first character of an overlay
13771 string.
13772
137731998-01-18 Gerd Moellmann <gerd@gnu.org>
13774
13775 * xdisp.c (reseat_iterator): Set next_invisible_check_pos only if
13776 forced or new pos > next_invisible_check_pos.
13777 (redisplay_window): Don't try same window start if PT < window
13778 start.
13779 (move_iterator_vertically): Bug fix satisfying post-condition
13780 when ZV is reached and no newline in front.
13781 (move_iterator_vertically_backward): New implementation.
13782 (move_iterator_vertically_backward): Bug fixes.
13783
13784 * xterm.c (XTmouse_position): Change call to min_char_bounds.
13785 * dispnew.c (adjust_frame_glyphs_for_window_redisplay): Ditto.
13786 (adjust_glyphs_for_font_change): Always adjust.
13787
13788 * dispnew.c (struct dim): Use int.
13789
13790 * xfaces.c (Fset_face_attribute_internal): Set face->font_name;
13791 (allocate_face): Initialize it.
13792 (load_font): Use XLoadQueryFont again instead of x_load_font.
13793 (unload_font): Use XFreeFont again.
13794 (min_char_bounds): Iterate over fonts of faces. Use frame's
13795 font sizes as default. Remove parameter except_last_font_p.
13796
13797 * dispextern.h (struct face): Add font_name.
13798
137991998-01-17 Gerd Moellmann <gerd@gnu.org>
13800
13801 * xdisp.c (move_iterator_vertically): Check post-condition. Move
13802 to start of line if ending at ZV and no newline in front.
13803 (move_iterator_to): If to_y specified, always first move to x = 0,
13804 so that move stops at line start instead of line end. This is
13805 probably what callers would expect to happen.
13806
13807 * window.c (window_scroll_pixel_based): Pixel-based scrolling that
13808 can handle different line heights.
13809 (window_scroll_line_based): Formerly window_scroll.
13810 (window_scroll): Call both.
13811
13812 * xdisp.c (start_display): Exclude code if PROMPT_IN_BUFFER.
13813 (move_iterator_in_display_line_to): Ditto.
13814 (display_line): Ditto.
13815
13816 * minibuf.c (read_minibuf): Conditionally insert prompt into
13817 buffer instead of handling prompts specially. Change other
13818 functions accordingly. All such code is in #if PROMPT_IN_BUFFER.
13819
13820 * dispnew.c (adjust_glyph_matrix): Optimize the handling of C-x 2,
13821 upper window. Optimize calls to xrealloc if same width.
13822
13823 * xdisp.c (redisplay_window): Don't use
13824 try_window_reusing_current_matrix if window scroll functions
13825 exist.
13826
13827 * dispextern.h (struct display_iterator): Member
13828 redisplay_end_trigger_p removed.
13829
13830 * dispextern.h (WINDOW_DISPLAY_PIXEL_HEIGHT_WITHOUT_MODE_LINE):
13831 Renamed to WINDOW_DISPLAY_TEXT_AREA_PIXEL_HEIGHT.
13832
138331998-01-16 Gerd Moellmann <gerd@gnu.org>
13834
13835 * xdisp.c (move_iterator_by_lines): Optimize for truncate-lines
13836 nil. Optimize truncate-lines t and moving backward.
13837 (move_iterator_to_previous_visible_line_start): Contains the heart
13838 of the previous set_iterator_to_previous_visible_line_end. Don't
13839 reseat the iterator. Used by move_iterator_by_lines.
13840 (set_iterator_to_previous_visible_line_start): Call function
13841 above.
13842 (move_iterator_in_display_line_to): Check TO_POS before doing
13843 anything else. Otherwise to_pos == PT would move to x of PT+1.
13844
13845 * indent.c (Fvertical_motion): Use display_iterator.
13846
13847 * xdisp.c (move_iterator_by_lines): New function moving by screen
13848 lines.
13849 (redisplay_window): Use it.
13850 (move_iterator_to): Correct branch of to_vpos specified.
13851 (move_iterator_vertically_backward): Increment nlines after having
13852 backed up over some lines because the last line was not backed up
13853 over.
13854 (move_iterator_via_matrix): Look for it->pos in the matrix, and
13855 calculate it->vpos and it->current_y relative to this row.
427ec082 13856 (move_iterator_via_matrix): Set in #if 0. It doesn't seem to
26901792
DL
13857 have a big effect and it is complex.
13858 (move_iterator_to): Call to move_iterator_via_matrix in #if 0.
13859
138601998-01-15 Gerd Moellmann <gerd@gnu.org>
13861
13862 * xterm.c (x_draw_relief): Simplify drawing and draw so that lines
13863 join nicely. Lines with widths > 2 don't join nicely under X.
13864 * xterm.h (struct x_output): Remove member relief_gc_line_width.
13865 * widget.c (setup_frame_gcs): Initialize relief GC's to line
13866 width 1; remove references to relief_gc_line_width.
13867 * xfns.c (x_make_gc): Ditto.
13868
13869 * xfaces.c (Fset_face_attribute_internal): Set frame garbaged
13870 if relief changes.
13871 (Fset_face_attribute_internal): Use XINT instead of XFASTINT
13872 to get a relief because they can be negative.
13873
13874 * xterm.c (x_draw_relief): Correct line drawing positions. Pixel
13875 positions are for the middle of lines under X.
13876
13877 * xdisp.c (try_window_id): Always search for the cursor by setting
13878 w->cursor.vpos = -1. Search in unchanged rows at the top and
13879 bottom if cursor not found in displayed lines.
427ec082 13880 (display_mode_line): First extend face, then set right shadow
26901792
DL
13881 flag. Otherwise the wrong glyph gets the right shadow.
13882
13883 * dispnew.c (direct_output_for_insert): Give up if line contains
13884 a tab. The number of spaces inserted for a tab changes if we
13885 insert glyphs in front of it.
13886
13887 * xterm.c (x_list_fonts): Changes undone because the Lisp
13888 implementation for make-face-smaller, make-face-larger, and
13889 make-face-fixed can do without them.
13890
13891 * xfns.c (Fx_list_fonts): Original x-list-fonts from x-list-font.c
13892 inserted.
13893
13894 * xdisp.c (try_window_id): First compute beg_unchanged, then
13895 compare with window start pos.
13896
13897 * xfns.c (Fx_face_fixed_p): Determine whether a face has a
13898 fixed-width font.
13899 (syms_of_xfns): defsubr for x-face-fixed-p.
13900
13901 * xterm.c (x_erase_phys_cursor): If row containing cursor is not
13902 enabled, don't do anything because this row will be newly drawn
13903 anyway and because we can additionally no longer determine the row
13904 height.
13905
13906 * xdisp.c (display_line): Bug fix cursor positioning.
13907
13908 * xfns.c (x-list-fonts): Copied from x-list-fonts.c; #include
13909 removed. x-list-fonts.c is now obsolete.
13910 (Qfixed, Qvariable): Moved here from xfaces.c.
13911
139121998-01-14 Gerd Moellmann <gerd@gnu.org>
13913
13914 * xdisp.c (display_line): Set row->ends_at_zv_p based on
13915 FETCH_BYTE for truncated lines.
13916 (display_line): Set cursor differently.
13917 (display_line): Fixed bug setting last_pos_on_this_line wrong
13918 for truncated lines.
13919
13920 * dispnew.c (adjust_glyph_matrix): Always adjust for frame-based
13921 redisplay.
13922
13923 * window.c (Fsplit_window): Adjust glyphs before setting buffer.
13924
13925 * dispnew.c (adjust_frame_glyphs_for_window_redisplay): Add
13926 assertion that character dimensions are not zero.
13927
13928 * xterm.c (x_load_font): adjust_glyphs_for_font_change while
13929 input is blocked.
13930
13931 * xdisp.c (decode_mode_spec): Faster implementation of line number
13932 display.
13933
13934 * xterm.c (x_draw_row_bitmaps): Clear flags area before drawing
13935 bitmaps if bitmaps don't fill the entire area.
13936 (draw_bitmap): Draw bitmaps horizontally centered in flags area.
13937
427ec082 13938 * xterm.h (FRAME_FLAGS_BITMAP_HEIGHT): Macro giving the
26901792
DL
13939 pixel height of flags bitmaps.
13940
13941 * frame.h (FRAME_FLAGS_AREA_COLS): Use FRAME_X_FLAGS_AREA_COLS.
13942 (FRAME_FLAGS_AREA_WIDTH): Ditto.
13943
13944 * xterm.h (FRAME_FLAGS_BITMAP_WIDTH): Macro giving the width
13945 in pixels of a flags area of a frame.
13946 (FRAME_X_FLAGS_AREA_WIDTH): Removed.
13947 (FRAME_X_FLAGS_AREA_COLS): Macro giving the number of columns
13948 occupied by a flags area.
13949
139501998-01-13 Gerd Moellmann <gerd@gnu.org>
13951
13952 * xdisp.c (hscroll_window_tree): Remove test for non-nil
13953 window_end_valid.
13954
13955 * dispnew.c (adjust_glyph_matrix): Check redisplay_p if
13956 GLYPH_DEBUG != 0.
13957
13958 * xdisp.c (display_line): Correct wrong calculation of row->x for
13959 the case of nglyphs == 1.
13960 (hscroll_window_tree): Renamed from hscroll_windows.
13961 (hscroll_windows): New function calling hscroll_window_tree that
13962 clears desired matrices on a frame when hscroll has been changed.
13963 (redisplay_p): Global flag set during redisplay.
13964 (redisplay_internal): Set and clear redisplay_p.
13965
13966 * xfaces.c (min_char_bounds): Add assertion that width and height
13967 are not zero at the end. Initialize *height and *width to -1,
13968 instead of using BITS_PER_SHORT. If font has min_bounds.width
13969 zero, use its max_bounds.width.
13970
13971 * x-list-font.c (Fx_list_fonts): Check INTEGERP or FLOATP for
13972 width and height.
13973
139741998-01-12 Gerd Moellmann <gerd@acm.org>
13975
13976 * dispnew.c (adjust_glyph_matrix): Do nothing if sizes haven't
13977 changed. Don't clear desired matrices.
13978
13979 * xdisp.c (hscroll_windows): Compute pt after setting
13980 current_buffer.
13981 (redisplay_window): Don't do cursor movement based on current
13982 matrix if just_this_one_p is zero.
13983
13984 * x-list-font.c (Fx_list_fonts): Additional parameter fixed.
427ec082 13985 specifying that fixed-width, variable-width fonts or both
26901792
DL
13986 should be returned.
13987
13988 * xfaces.c (Qfixed, Qvariable): Symbols for use by x-list-fonts.
13989 (syms_of_xfaces): Initialize them.
13990
13991 * xterm.c (x_list_fonts): Include auto-scaled fonts. Extend
13992 cached information.
13993
139941998-01-11 Gerd Moellmann <gerd@acm.org>
13995
13996 * xdisp.c (display_mode_line): Extend face to end of line.
13997
13998 * xdisp.c (echo_area_display): Don't call display_string with
13999 echo_area_glyphs_length == 0 which would mean infinite precision.
14000 (redisplay_internal): Adjust window_end_vpos if necessary.
14001
140021998-01-07 Gerd Moellmann <gerd@acm.org>
14003
14004 * xdisp.c (display_line): Set it->ends_at_zv_p differently.
14005
140061998-01-05 Gerd Moellmann <gerd@acm.org>
14007
14008 * xdisp.c (get_row_start_continuation_line_width): Removed.
14009 (init_iterator_to_row_start): Set it.current_x from row.
14010 (try_window_id): Set it.continuation_lines_width directly from
14011 row.
14012
14013 * xdisp.c (hscroll_windows): Use w->pointm if window is not
14014 selected_window.
14015 (hscroll_windows): Center cursor in window.
14016 (hscroll_windows): Call move_iterator_in_display_line_to.
14017
140181998-01-04 Gerd Moellmann <gerd@acm.org>
14019
14020 * xdisp.c (hscroll_windows): Check hscroll < 0.
14021 (redisplay_window): Allow quick cursor movement if overlay arrow
14022 but frame uses window-based redisplay.
14023 (display_line): Take special case for nglyphs == 1 out of #if 0.
14024 (display_line): Set row->ends_at_zv_p after the loop displaying
14025 glyphs because ZV can be in truncated text.
14026 (hscroll_windows): Use init_iterator_to_row_start.
14027
14028 * dispnew.c (scrolling_window): Calculation of overlapping
14029 runs fixed.
14030 (row_equal_p): Compare continued_p and continuation_line_p.
14031
140321998-01-02 Gerd Moellmann <gerd@acm.org>
14033
14034 * xterm.c (x_get_mode_line_face_gc): Renamed from
14035 x_get_modeline_face_gc.
14036
14037 * xdisp.c (TEXT_PROP_DISTANCE_LIMIT): Max. distance from current
14038 buffer position to look for text properties.
14039 (get_face_from_cursor_pos): Use it.
14040 (compute_face_at_iterator_position): Use it.
14041 (next_element_from_buffer): Use it.
14042
14043 * dispnew.c (scrolling_window): Decrement run's y-position
14044 when extending it backwards.
14045
14046 * xterm.c (do_line_dance): Don't ever copy more than window height.
14047
140481998-01-01 Gerd Moellmann <gerd@acm.org>
14049
14050 * xdisp.c (redisplay_window): Cursor motion in unchanged
14051 matrix---use MATRIX_ROW_.*_IN_MIDDLE_OF_CHAR_P.
14052 (init_iterator_to_next_row_start): Special handling of lines
14053 ending in middle of char removed.
14054 (hscroll_windows): Hscroll windows only if window_end_valid is not
14055 nil.
14056 (try_window_reusing_current_matrix): Call hscroll_windows.
14057 (init_iterator_to_row_start): Initialize iterator for display
14058 starting at a position given by a glyph_row->start.
14059 (redisplay_window): Don't use vmotion because it gives wrong
14060 results if lines are continued and variable width fonts are used.
14061
427ec082 14062 * dispextern.h (struct glyph_pos): New member dpvec_index.
26901792
DL
14063 (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P): Test if row ends in the
14064 the middle of a character.
427ec082 14065 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Test if row starts in
26901792
DL
14066 the middle of a character.
14067
14068 * xdisp.c (set_iterator_to_next): Increment it->dpvec_index, reset
14069 it.
14070 (next_element_from_display_vector): Use it->dpvec_index.
14071 (reseat_iterator): Reset it.
14072 (init_iterator): Reset it.
14073 (setup_iterator_dpvec_from_glyph_pos): Set up it->dpvec and
14074 it->pos.dpvec_index from a glyph_pos structure.
14075 (init_iterator_from_glyph_pos): Call the function above.
14076 (reseat_iterator_to_glyph_pos): Ditto.
14077
14078 * dispnew.c (direct_output_forward_char): Don't use this method at
14079 overlay boundaries or near invisible text.
14080 (direct_output_forward_char): Step through glyph row to find
14081 cursor position.
14082
427ec082 14083 * xterm.c (x_get_cursor_gc): Don't return cursor_gc for font ==
26901792
DL
14084 frame font if line height differs from font height.
14085
14086 * xdisp.c (set_iterator_to_next): Renamed from
14087 move_iterator_forward to avoid confusion with other move_.*
14088 functions.
14089
14090 * dispextern.h (FACE_RELIEF_P): Renamed from FACE_3D_P.
14091
140921997-12-31 Gerd Moellmann <gerd@acm.org>
14093
14094 * xterm.c (x_get_cursor_gc): Renamed from x_cursor_gc to use the
14095 same naming convention as for other GC functions.
14096 (draw_glyphs): Don't fill background when drawing a cursor and
14097 font height is less than line height.
14098
140991997-12-30 Gerd Moellmann <gerd@acm.org>
14100
14101 * xdisp.c (init_display_iterator.*): Renamed to shorter names
14102 init_iterator_.*.
14103
14104 * xdisp.c (move_iterator_forward): Restore it->len from
14105 it->dpvec_char_len if dpend reached.
14106 (get_next_display_element): Don't consume translated char
14107 prematurely.
14108 (display_line): Don't set this_.* variables if row is continued.
14109 (start_display): Move to start of continuation line if ending
14110 up at end of continued line.
14111
14112 * dispextern.h (struct display_iterator): New member dpvec_char_len.
14113
14114 * xdisp.c (move_iterator_in_display_line_to): Check TO_POS after
14115 checking TO_X and continuation lines.
14116 (get_last_unchanged_at_beg_row): If first_changed_pos is the end
14117 of a continued line, don't consider this line as unchanged because
14118 it may no longer be continued.
14119
141201997-12-29 Gerd Moellmann <gerd@acm.org>
14121
14122 * xdisp.c (try_window_id): Catch the case that moving over
14123 continuation lines moves first_unchanged_at_end_row to a row not
14124 displaying text.
14125
14126 * dispextern.h (struct glyph_row): New member
14127 continuation_lines_width. Member continuation_line_p removed.
427ec082 14128 (MATRIX_ROW_CONTINUATION_LINE_P): Non-zero if row displays a
26901792
DL
14129 continuation line.
14130 * xdisp.c (display_line): Set row->continuation_lines_width.
14131 (get_row_start_continuation_line_width): Set continuation lines
14132 width of iterator from continuation lines width of glyph row.
14133 (get_row_start_continuation_line_width): Make it inline.
14134 (set_window_cursor): Make it inline.
14135 (try_window_id): Use MATRIX_ROW_CONTINUATION_LINE_P.
14136 (Fdump_redisplay_state): Ditto.
427ec082 14137
26901792
DL
14138 * dispnew.c (update_window_line): Use MATRIX_ROW_CONTINUATION_LINE_P.
14139 * xterm.c (x_draw_row_bitmaps): Use MATRIX_ROW_CONTINUATION_LINE_P.
14140
14141 * xdisp.c (try_window_id): Set it.hpos and it.current_x to zero
14142 after determining the continuation lines width for
14143 last_unchanged_at_beg_row.
14144
14145 * xterm.c (x_draw_row_bitmaps): Let overlay arrow have precedence.
14146
14147 * xdisp.c (display_mode_line): Handle 3D faces only on frames
14148 which support faces.
14149 (init_display_iterator): Ditto.
14150 (move_iterator_via_matrix): Skip over truncation glyph at the row
14151 start on terminal frames.
14152 (hscroll_windows): Choose hscroll margin differently for window
14153 system and terminal frames.
14154
141551997-12-28 Gerd Moellmann <gerd@acm.org>
14156
14157 * xdisp.c (hscroll_windows): Change hscroll of windows.
14158 (redisplay_internal): Call it.
14159
427ec082 14160 * dispnew.c (direct_output_for_insert): Give up if a glyph
26901792
DL
14161 doesn't fit completely on the line.
14162 (direct_output_forward_char): Give up for non-ASCII chars.
14163 (direct_output_forward_char): Set redisplay_performed_directly_p.
14164
14165 * dispextern.h (struct display_iterator): Make first_visible_x
14166 and last_visible_x ints; this is for very long truncated lines.
14167
14168 * xdisp.c (move_iterator_in_display_line_to): Separate check for
14169 MOVE_X_REACHED only if it->nglyphs == 0. This fixes cursor
14170 positioning problems with the mouse.
14171 (move_iterator_in_display_line_to): Truncate lines if it->current_x
14172 >= it->last_visible_x instead of >.
14173 (display_line): Ditto.
14174
14175 * xterm.c (draw_glyphs): Draw rectangles if font could not be
14176 loaded.
14177 (XTproduce_glyphs): Calculate pixel_width for composite chars and
14178 non-ASCII chars differently. Always produce 1 glyph for composite
14179 chars. If font not found, use CHARSET_WIDTH to calculate width of
14180 non-ASCII chars.
14181 (x_get_char_font_and_encoding): Return null if font could not be
14182 loaded. Reset font to null if fontset could not be loaded.
14183 (draw_glyphs): Fill background if font not found.
14184 (draw_glyphs): Unused parameter just_foreground_p removed. New
14185 parameter composite_glyph.
14186 (draw_glyphs): Use enumeration for parameter hl.
427ec082 14187 (draw_glyphs): Pass a display area relative x-position to
26901792
DL
14188 draw_glyphs when calling it recursively for composite chars.
14189
141901997-12-27 Gerd Moellmann <gerd@acm.org>
14191
14192 * xterm.c: Patches from handa.etl.go.jp integrated.
14193 (draw_glyphs): Don't rely on x_get_char_font_and_encoding to
14194 find a font_info.
14195
14196 * xdisp.c (move_iterator_in_display_line_to): Check to_x
14197 for nglyphs == 1.
14198
14199 * xterm.c (x_draw_relief): Draw relief lines.
14200 (draw_glyphs): Call x_draw_relief.
14201
142021997-12-26 Gerd Moellmann <gerd@acm.org>
14203
14204 * xfns.c (x_make_gc): Create relief GC's.
14205
14206 * widget.c (create_frame_gcs): Create GC's for relief drawing.
14207 (setup_frame_gcs): Initialize them.
14208 (EmacsFrameDestroy): Free them.
14209
427ec082 14210 * xdisp.c (try_window_id): Get continuation lines width if
26901792
DL
14211 last_unchanged_at_beg_row is continued or a continuation line.
14212 (move_iterator_via_matrix): Don't do it for mini-buffer windows.
427ec082 14213 (redisplay_window): Case point has changed, and it has not
26901792
DL
14214 moved off the frame. Don't increment row if PT equals the row
14215 end if the row ends in ZV.
14216
14217 * xterm.c (x_draw_row_bitmaps): New function to draw bitmaps.
14218 (expose_line): Call it.
14219 (x_after_update_window_line): Call it.
14220
14221 * xdisp.c (display_line): Reset continuation_lines_width when ZV
14222 reached.
14223
14224 * xterm.c (x_after_update_window_line): Draw continuation line
14225 bitmap.
14226
14227 * dispnew.c (update_window_line): Call
14228 after_update_window_line_hook when row's continuation_line_p
14229 changes.
14230
14231 * xterm.c (draw_bitmap): Draw new bitmap CONTINUATION_LINE_BITMAP.
14232
14233 * xdisp.c (display_line): Handle continued lines on window system
14234 frames differently since continuation glyphs are not displayed.
14235 (move_iterator_in_display_line_to): Ditto.
14236 (move_iterator_in_display_line_to): Take the mini-buffer prompt
14237 into account.
14238 (move_iterator_vertically_backward): Handle dy == 0 specially.
14239 (redisplay_window): Catch the case of small windows when
14240 recentering where moving back window_height/2 moves us beyond the
14241 top of the display area of the window.
14242
142431997-12-18 Gerd Moellmann <gerd@acm.org>
14244
14245 * xdisp.c (move_iterator_vertically_backward): Unused parameter
14246 dvpos removed.
14247
142481997-12-17 Gerd Moellmann <gerd@acm.org>
14249
14250 * dispnew.c (direct_output_forward_char): Correct new cursor
14251 x-position.
14252
142531997-12-16 Gerd Moellmann <gerd@acm.org>
14254
14255 * xterm.c (x_after_update_window_line): Remove unused parameters.
14256 (XTclear_end_of_line): Clear to display_height instead of
14257 display_height - 1.
14258
14259 * dispnew.c (set_frame_matrix_frame): Make it INLINE.
427ec082 14260 (update_window_line): Call after_update_window_line_hook if
26901792
DL
14261 rows have different y-positions, or different height.
14262
142631997-12-14 Gerd Moellmann <gerd@acm.org>
14264
14265 * frame.h (FRAME_MODE_LINE_PIXEL_HEIGHT): Removed.
14266
14267 * window.c (coordinates_in_window): Call frame_mode_line_height.
14268
14269 * xterm.c (x_draw_3d_border): Removed.
14270 (x_draw_row_borders): Removed.
14271
14272 * dispnew.c (update_window): References to
14273 FRAME_MODE_LINE_BORDER_WIDTH removed.
14274
14275 * xterm.h (FRAME_MODE_LINE_BORDER_WIDTH): Removed.
14276 (FRAME_MODE_LINE_HEIGHT): Removed.
14277
14278 * xterm.c (draw_3d_borders_p): Removed.
14279 (draw_glyphs): Ditto.
14280 (XTwrite_glyphs): Ditto.
14281 (expose_line): Ditto.
14282 (x_initialize): Ditto.
14283
14284 * dispextern.h (WINDOW_DISPLAY_MODE_LINE_HEIGHT): Call
14285 frame_mode_line_height.
14286
14287 * term.c (frame_mode_line_height): Get the pixel height of a
14288 frame's mode line.
14289 (frame_mode_line_height_hook): Hook to implement system dependent
427ec082
SS
14290 versions.
14291
26901792
DL
14292 * xterm.c (x_initialize): Set the hook.
14293 (XTframe_mode_line_height): X version of frame_mode_line_height.
14294
14295 * xdisp.c (echo_area_display): Call gobble_input to flush the X
14296 output buffer.
14297 (display_string): Don't add right truncation mark if line ends in
14298 padding space.
14299 (init_display_iterator): If called with modeline_p non-zero, set
14300 face_id to 1, which is the id of the mode line face.
14301
14302 * keyboard.c (cmd_error_internal): Write to stderr if selected
14303 frame is Vterminal_frame under X. This is the case when a font
14304 cannot be loaded when Emacs starts. Replace test for
14305 FRAME_MESSAGE_BUF with test for glyphs_initialized_p.
14306
14307 * xfaces.c (compute_overlay_string_char_face): Compute the
14308 face of a character in an overlay string.
14309 * xterm.h (compute_overlay_string_char_face): Prototype.
427ec082 14310 * xdisp.c (compute_face_at_iterator_overlay_string_position):
26901792
DL
14311 Use it.
14312
14313 * xdisp.c (set_iterator_to_next_overlay_string): Formerly
14314 set_iterator_to_next_overlay.
14315 (struct overlay_entry): Structure used to sort overlay strings.
14316 (compare_overlay_entries): Compare overlay strings.
14317 (load_iterator_with_overlay_strings): Load a chunk of overlay
14318 strings.
14319 (get_overlay_strings_at_iterator_position): Call it.
14320 (next_element_from_overlay_string): Set it->object to the overlay
14321 string. Prepare for setting it->position to a string position.
14322 (get_overlay_strings_at_iterator_position): Renamed from
14323 get_overlays_at_iterator_position.
14324 (setup_iterator_overlay_strings_from_glyph_pos): Changed to load
14325 chunks of overlay strings.
14326 (load_overlay_strings): Renamed from load_iterator_overlay_strings.
14327
14328 * dispextern.h (struct display_iterator): New vector
14329 overlay_strings and new member n_overlay_strings---formerly
427ec082
SS
14330 overlays and n_overlays.
14331 (struct glyph_pos): Remove after_string_p; overlay_index
26901792
DL
14332 renamed to string_index.
14333
143341997-12-13 Gerd Moellmann <gerd@acm.org>
14335
14336 * xdisp.c (copy_iterator): Increment n_iterator_overlay_vectors
14337 when allocating a vector.
14338 (release_iterator): Removed.
14339 (restore_iterator): Removed.
14340 (copy_iterator): Removed.
14341
143421997-12-08 Gerd Moellmann <gerd@acm.org>
14343
14344 * xdisp.c (redisplay_window): Use make_empty_enabled_row for
14345 clearing a mini-buffer window that is not active.
14346 (redisplay_window): Do not scroll one line too early when last
14347 window line is completely visible.
14348 (init_display_iterator): Leave some room to display the cursor
14349 after the last glyph on a continued line.
14350
14351 * xterm.h (struct x_output): trunc_area_extra renamed
14352 flags_areas_extra.
14353 (FRAME_X_FLAGS_AREA_WIDTH): Renamed from FRAME_X_TRUNC_WIDTH.
14354
14355 * dispnew.c (update_window_line): Call
14356 after_update_window_line_hook when current row is not enabled
14357 which is the case after a frame has been cleared.
14358
14359 * xdisp.c (display_mode_line): Reset row flags for truncation
14360 on right side for the mode line.
14361
14362 * xterm.c (bitmap_type): Type of bitmap to display in flags
14363 area of frame.
14364 (x_after_update_window_line): Use the enum.
14365 (draw_bitmap): Ditto.
14366
143671997-12-07 Gerd Moellmann <gerd@acm.org>
14368
14369 * xterm.c (x_clip_to_row): Include width of both flag areas.
14370 (do_line_dance): Ditto.
14371 (expose_window_tree): Ditto.
14372 * dispnew.c (update_window_line): Call
14373 after_update_window_line_hook for right truncation and continuation.
14374 * xdisp.c (init_display_iterator): Don't subtract width of
14375 continuation glyphs for window-based redisplay.
14376 * xterm.c (draw_bitmap): Draw continuation bitmap.
14377 * widget.c (set_frame_size): Double trunc_area_extra.
14378 (EmacsFrameSetCharSize): Ditto.
14379 * xfns.c (x_figure_window_size): Ditto.
14380 * xterm.c (x_set_window_size): Ditto.
14381 (x_after_update_window_line): Draw right truncation mark.
14382
14383 * xterm.c (draw_glyphs): Bug fix buffer overrun.
14384
14385 * window.h: Include blocker around dispextern.h removed.
14386
14387 * eval.c (Feval): Check interrupt_input_block == 0.
427ec082 14388
26901792
DL
14389 * dispextern.h (struct display_iterator): Former ovstr made a
14390 Lisp_Object overlay_string. New next_ovstr_face_check_pos and
14391 next_ovstr_invisble_check_pos; check at these positions for
14392 face changes and changes in invisible text property.
14393 (struct glyph_pos): Former ovlen now overlay_string_index.
14394
14395 * xdisp.c (setup_iterator_overlays_from_glyph_pos): Set
14396 overlay_string.
14397 (set_iterator_to_next_overlay_string): Set overlay_string and
14398 pos.overlay_string_index.
14399 (get_overlays_at_iterator_position): Use overlay_string and
14400 overlay_string_index.
14401 (next_element_from_overlay_string): Use overlay_string and
14402 overlay_string_index.
14403 (move_iterator_forward): Increment overlay_string_index.
14404 (try_window_id): Use overlay_string and overlay_string_index.
14405 (move_iterator_forward): At end of dpvec, maybe use method
14406 next_element_from_overlay_string for the case a character from an
14407 overlay string was translated via a display table.
14408 (reseat_iterator_to_string): Take a Lisp string.
14409 (display_string): Pass a Lisp string to reseat_iterator_to_string.
14410 (compute_face_at_iterator_overlay_string_position): Compute face
14411 based on text properties for an overlay string.
14412 (next_element_from_overlay_string): Check invisible and face text
14413 properties.
178c5d9c 14414
26901792
DL
14415 (set_iterator_to_next_overlay_string): Restore face id before
14416 overlay strings when no more overlay strings are found to return.
14417 Initialize next_ovstr_.*check_pos for each new overlay string
178c5d9c 14418
bb6677a8
GM
14419 A line in the following paragraph was garbled for an unknown
14420 reason. It couldn't be fully reconstructed.
178c5d9c 14421
bb6677a8 14422 (compute_base_face): Made public.
26901792
DL
14423 (merge_face_list): Ditto.
14424 (intern_computed_face): Ditto.
14425
427ec082 14426 * xdisp.c (redisplay_window): Cursor movement in unchanged
26901792
DL
14427 window if PT > w->last_point. Goto try_to_scroll if bottom Y
14428 of row is > instead of >= last_y.
14429
14430 * buffer.h (overlays_at): Function prototype.
14431
14432 * xdisp.c (reseat_iterator_to_string): Clear iterator position.
14433 * dispextern.h (GET_NEXT_DISPLAY_ELEMENT): Removed.
14434
427ec082 14435 * xdisp.c (release_iterator): Release dynamically allocated
26901792
DL
14436 memory of a display_iterator.
14437 (copy_iterator): Copy an iterator.
14438 (restore_iterator): Restore an iterator from a backup copy.
14439 (global): Use the functions above.
14440 * window.c (Fpos_visible_in_window_p): Call release_iterator.
14441 * dispnew.c (direct_output_for_insert): Call release_iterator.
14442
14443 * dispextern.h (struct display_iterator): Allocate overlays
14444 vector dynamically.
14445
144461997-12-06 Gerd Moellmann <gerd@acm.org>
14447
14448 * Makefile.in (window.o): Depends on dispextern.h.
14449
14450 * buffer.c (overlays_at): Make it work when extending vectors
14451 and an initial vector of zero size.
14452
14453 * xdisp.c (set_iterator_to_previous_visible_line_end): Renamed
14454 from set_cursor_to_previous_visible_line_end.
14455 (set_iterator_to_next_visible_line_start): Renamed from
14456 set_cursor_to_next_visible_line_end.
14457 (set_next_iterator_stop_pos): Renamed from set_next_stop_pos.
14458 (compute_face_at_iterator_position): Renamed from
14459 compute_cursor_face.
14460 (set_iterator_to_next_overlay_string): Renamed from
14461 cursor_to_next_overlay_string.
14462 (get_overlays_at_iterator_position): Renamed from
14463 get_overlays_for_cursor.
14464 (reseat_iterator): Renamed from reseat_cursor.
14465 (setup_iterator_overlays_from_glyph_pos): Renamed from
14466 setup_overlays_from_pos.
14467 (init_string_iterator): Renamed from init_string_cursor.
14468 (get_next_display_element): Renamed from next_display_element.
14469 (move_iterator_forward): Renamed from advance_display_cursor.
427ec082 14470 (get_overlays_at_iterator_position): Allocate overlays vector
26901792
DL
14471 dynamically.
14472
14473 * xdisp.c: display_cursor renamed display_iterator.
14474 * dispextern.h: Ditto.
14475 * dispnew.c: Ditto.
14476
144771997-12-01 Gerd Moellmann <gerd@acm.org>
14478
14479 * window.c (mark_window_cursors_off): Function comment added.
14480 (window_topmost_p, window_rightmost_p): Removed because not used.
14481
144821997-11-30 Gerd Moellmann <gerd@acm.org>
14483
14484 * emacs.c (main): Function prototypes removed in profiling code.
14485 Use safe_bcopy as start of text.
14486
14487 * dispnew.c (update_frame_line): update_line -> update_frame_line;
14488 mirrored_make_current -> make_current.
14489
14490 * xdisp.c: (store_frame_title_char): New function to store a
14491 single character for the frame title with re-allocation of
14492 frame_title_buf.
14493 (init_xdisp): Intialize frame_title_.* variables to null.
14494
14495 * dispnew.c (quit_error_check): Removed.
14496
14497 * eval.c (Fsignal): Call to quit_error_check removed.
14498 * keyboard.c (quit_throw_to_read_char): Ditto.
14499
145001997-11-23 Gerd Moellmann <gerd@acm.org>
14501
14502 * xfaces.c (Fset_face_attribute_internal): Allow nil relief
14503 to mean a zero relief.
14504
26901792
DL
145051997-11-19 Gerd Moellmann <gerd@acm.org>
14506
14507 * dispnew.c (new_glyph_matrix): Increment glyph_matrix_count
14508 unconditionally.
14509 (glyph_matrix_count, glyph_pool_count): Define unconditionally.
14510 (free_glyph_matrix): Decrement glyph_matrix_count unconditionally.
14511 (check_glyph_memory): Define function body unconditionally.
14512
145131997-11-17 Gerd Moellmann <gerd@acm.org>
14514
14515 * dispnew.c (scrolling_window): Alternative version of this
14516 function removed.
14517
145181997-11-16 Gerd Moellmann <gerd@acm.org>
14519
14520 * dispnew.c (make_empty_enabled_row): Make an empty, enabled row
14521 of height CANON_Y_UNIT.
14522 * dispextern.h: Prototype for that function.
427ec082 14523 * xdisp.c (echo_area_display): Don't use display_string to
26901792
DL
14524 produce empty rows. Use make_empty_enabled_row instead.
14525
14526 * dispnew.c (scrolling_window): New version using diff-like
14527 algorithm activated.
427ec082 14528
26901792
DL
145291997-11-15 Gerd Moellmann <gerd@acm.org>
14530
14531 * dispnew.c (clear_current_matrices): Clear matrix of menu_bar_window
14532 (clear_desired_matrices): Ditto.
14533 (adjust_frame_glyphs_for_window_redisplay): Use FRAME_WINDOW_WIDTH
14534 for menu_bar_window.
14535
14536 * alloc.c (mark_object): Mark menu_bar_window of frames.
14537
14538 * xterm.c (XTupdate_window_end): Don't display cursor if
14539 pseudo_window_p.
14540
14541 * dispnew.c (adjust_frame_glyphs_for_window_redisplay): Don't
14542 set mini_p.
14543 (update_window): Don't set cursor if pseudo_window_p.
14544
14545 * dispextern.h (WINDOW_WANTS_MODELINE_P): Test pseudo_window_p.
14546
14547 * window.h (struct window): New flag pseudo_window_p set to
14548 1 for windows that aren't really part of the window tree, like
14549 menu_bar_window's of frames.
14550 * window.c (make_window): Initialize it.
14551 (replace_window): Ditto.
14552 * dispnew.c (adjust_frame_glyphs_for_window_redisplay): Ditto.
14553
14554 * frame.c (make_frame): Initialize menu_bar_window to nil.
14555
14556 * xterm.c (XTget_display_info): FACE_SHADOW_THICKNESS renamed
14557 FACE_RELIEF
14558
14559 * xfaces.c (copy_face): shadow_thickness -> relief.
14560 (face_eql): Ditto.
14561 (merge_faces): Ditto.
14562 (compute_base_face): Ditto.
14563 (Fset_face_attribute_internal): Ditto.
14564 * dispextern.h (struct face): Ditto.
14565
14566 * dispnew.c (update_frame): Update menu_bar_window of the frame if
14567 it is non-nil.
14568
14569 * xdisp.c (display_menu_bar): Display the menu bar in
14570 f->menu_bar_window if appropriate.
14571 (display_mode_line): Use MATRIX_MODE_LINE_ROW.
14572
14573 * dispnew.c (adjust_frame_glyphs_for_window_redisplay): Allocate
14574 dummy window and window matrices for f->menu_bar_window.
14575 (free_glyphs): Free the dummy window and its glyph matrices.
14576
14577 * frame.h (struct frame): New member menu_bar_window.
14578
145791997-11-09 Gerd Moellmann <gerd@acm.org>
14580
14581 * dispnew.c (scrolling_window): New version with diff-like
14582 algorithm.
14583
14584 * xdisp.c (try_window_reusing_current_matrix): If new_start >
14585 old_start always start displaying at start of
14586 first_row_to_display. The previous scheme failed if the last row
14587 was fully visible.
14588
14589 * dispnew.c (update_window): Remove cost calculations. Remove
14590 redundant preempt_count calculations.
14591
14592 * xterm.c (x_clip_to_row): Set clipping for non-text rows
14593 differently.
14594
14595 * dispnew.c (update_window): Use WINDOW_WANTS_MODELINE_P.
14596
427ec082 14597 * window.c (syms_of_window): Functions for marginal areas if
26901792
DL
14598 WITH_MARGINAL_AREAS is defined.
14599
427ec082 14600 * xdisp.c (try_window_reusing_current_matrix): Trace fprintf
26901792
DL
14601 removed.
14602
14603 * dispnew.c (scrolling): Call line_hash_code because hash values
14604 are not set in the frame matrix.
14605
14606 * xdisp.c (try_window_id): Fix scrolling for terminal frames.
14607 (redisplay_window): Check line_ins_del_ok before calling
14608 try_window_id.
14609 (try_window_reusing_current_matrix): Give up for terminal frames
14610 if window is not full width or we cannot insert/delete lines.
14611 (try_window_reusing_current_matrix): Fixed scrolling for terminal
14612 frames.
14613
14614 * alloc.c (mark_glyph_matrix): Bug fix - pass pointer to
14615 Lisp_Object to mark_object.
14616
14617 * xdisp.c (sync_frame_with_window_matrix_rows): Make frame and
14618 window rows have the same glyph pointers.
14619 (try_window_id): Call it.
14620
14621 * alloc.c (mark_glyph_matrix): Function to mark Lisp objects in
14622 a glyph matrix.
14623 (mark_object): Call it.
14624
14625 * xdisp.c (insert_left_trunc_glyphs): Use 0 object in glyphs for
14626 truncations.
14627 (display_line): Ditto.
14628 (display_line): Ditto for DISP_CONTINUATION.
14629 (display_line): Truncation on right: test current_x >
14630 last_visible_x.
14631 (skip_in_display_line_to): Ditto.
14632 (skip_via_matrix): Stop skipping in glyph row at face extending
14633 glyphs or at padding spaces.
14634
14635 * dispnew.c (fill_up_glyph_row_with_spaces): Comment extended.
14636
14637 * xdisp.c (display_line): Use glyph->object == 0 for padding
14638 glyphs.
14639 (redisplay_window): Don't let cursor move over padding
14640 spaces.
14641
14642 * dispextern.h (struct glyph): Fix comment for object.
14643
146441997-11-08 Gerd Moellmann <gerd@acm.org>
14645
14646 * dispextern.h (WINDOW_WANTS_MODELINE_P): Non-zero if a window
14647 has a mode line.
14648 * xdisp.c (redisplay_window): Use it.
14649 (display_mode_line): Check that window wants mode line.
14650
146511997-11-03 Gerd Moellmann <gerd@acm.org>
14652
14653 * xdisp.c (display_menu_bar): Enable menu bar rows.
14654
14655 * xterm.c (x_draw_hollow_cursor): X positions based on text area.
14656 (x_erase_phys_cursor): Ditto.
14657 (x_draw_bar_cursor): Ditto.
14658
146591997-11-02 Gerd Moellmann <gerd@acm.org>
14660
14661 * dispnew.c (update_marginal_area): Update a marginal area.
14662 (update_text_area): Update text area.
14663 (update_window_line): Call both.
14664
14665 * xterm.c (XTclear_end_of_line): Translate coordinates area
14666 dependent.
14667
14668 * dispnew.c (updated_area): Row area being updated in
14669 update_window_line.
14670 (update_window_line): Set it.
14671 (update_marginal_area): Clear to end of line if not in text area.
14672
14673 * window.c (Fset_window_margins): Increment
14674 windows_or_buffer_changed. Adjust glyphs.
14675
14676 * dispextern.h (WINDOW_TEXT_TO_FRAME_PIXEL_X): Convert text
14677 area X coordinates to frame coordinates.
427ec082 14678 (WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH): Width of left marginal area.
26901792
DL
14679 (WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH): Same for right area.
14680 (WINDOW_DISPLAY_TEXT_AREA_PIXEL_WIDTH): Same for text area.
14681
14682 * xterm.c (draw_glyphs): Use text area width as display width.
14683
14684 * xdisp.c (init_display_info): Subtract widths of marginal areas
14685 from last_visible_x.
14686
14687 * alloc.c (mark_object): Mark objects in glyphs only if they are
14688 overlays. Mark only if current_matrix != 0. Activate the code.
14689
14690 * window.c (Fset_window_margins): Set margins.
14691 (Fwindow_margins): Return margin area widths.
14692 (syms_of_window): Add defsubr's.
14693
14694 * window.h (struct window): left_margin_width, right_margin_width.
14695
14696 * xfns.c (x_set_trunc_area_width): Set truncation pixel width
14697 and cols.
14698
14699 * frame.h (FRAME_TRUNC_COLS): Number of columns occupied by
14700 truncation/overlay arrow area.
14701 (struct frame): trunc_area_pixel_width, and _cols.
14702
14703 * window.c (Fsplit_window): Use it.
14704
14705 * window.c (Fsplit_window): Set cursor vpos to -1 after
14706 splitting.
14707 (Fsplit_window): SUbtract/add FRAME_TRUNC_WIDTH for horizontally
14708 split windows.
14709
14710 * dispnew.c (set_window_cursor_after_update): Accept out
427ec082 14711 of bounds cursor positions.
26901792
DL
14712
14713 * xdisp.c (redisplay_internal): Check that after cursor motion
14714 within line, PT is on same line.
14715
14716 * dispextern.h (WINDOW_DISPLAY_PIXEL_WIDTH): Don't subtract
14717 FRAME_TRUNC_WIDTH.
14718
14719 * xterm.h (struct x_output): trunc_area_extra.
14720 (CHAR_TO_PIXEL_WIDTH): Add in trunc_area_extra.
14721 (PIXEL_TO_CHAR_WIDTH): Subtract it.
14722 * widget.c (set_frame_size): Set it.
14723 (EmacsFrameSetCharSize): Ditto.
14724 * xfns.c (x_figure_window_size): Ditto.
14725 * xterm.c (x_set_window_size): Ditto.
14726
14727 * dispnew.c (check_matrix_invariants): First try to check window
14728 ends (in #if 0).
14729
14730 * xdisp.c (try_window_reusing_current_matrix): Try window
14731 redisplay with different window start.
14732
147331997-11-01 Gerd Moellmann <gerd@acm.org>
14734
14735 * window.c (make_window): Set window_end_pos/vpos.
14736 (Fsplit_window): Zero last_cursor, window_end_valid.
14737 (Fset_window_buffer): Set window_end_vpos, zero last_cursor.
14738
14739 * dispnew.c (check_matrix_invariants): Check window_end_pos/vpos.
14740
147411997-10-31 Gerd Moellmann <gerd@acm.org>
14742
14743 * window.c (make_window): Initialize last_cursor.
14744 (replace_window): Ditto.
14745
147461997-10-29 Gerd Moellmann <gerd@acm.org>
14747
14748 * window.h: New member last_cursor.
14749 * dispnew.c (direct_output_for_insert): Set it.
14750 (direct_output_forward_char): Ditto.
14751 * xdisp.c (redisplay_internal): Ditto.
14752
147531997-10-28 Gerd Moellmann <gerd@acm.org>
14754
14755 * xdisp.c (redisplay_internal): Optimization 1 change partially
14756 reverted. Check this again later.
14757 (skip_via_matrix): Remove redundent test for
427ec082 14758 MATRIX_ROW_DISPLAYS_TEXT_P.
26901792
DL
14759
147601997-10-27 Gerd Moellmann <gerd@acm.org>
14761
14762 * dispnew.c (update_window_line): Call
14763 after_update_window_line_hook only for interesting constellations.
14764 (free_glyph_matrix): Fix memory leak.
14765
14766 * window.h: Include blocker WINDOW_H_INCLUDED, include
14767 dispextern.h.
14768 (struct window): phys_cursor_glyph as struct glyph. * window.c
14769 (make_window): Initialize it.
427ec082 14770 (replace_window): Ditto.
26901792
DL
14771 * dispnew.c (free_window_matrices): Remove freeing of
14772 phys_cursor_glyph.
14773 (check_matrix_invariants): Renamed from check_current_matrix_...
14774 * xterm.c: All references to phys_cursor_glyph changed.
14775
14776 * dispextern.h (DISPEXTERN_H_INCLUDED: New include blocker.
14777
14778 * xfaces.c: Comment update.
14779
14780 * window.h (struct window): Make phys_cursor_glyph a struct glyph
14781 pointer. Remove phys_cursor_ascent, descent, etc.
14782 * dispnew.c (free_window_matrices): Free it.
14783 * window.c (make_window): Allocate it.
14784 (replace_window): Ditto.
14785 * xterm.c (x_draw_phys_cursor_glyph): Draw it.
14786 (x_display_and_set_cursor): Fill it.
14787 (x_phys_cursor_in_rect_p): Use it.
14788 (x_draw_hollow_cursor): Ditto.
14789 (x_draw_bar_cursor): Ditto.
14790 (x_erase_phys_cursor): Ditto.
14791
14792 * xdisp.c (skip_in_display_line_to): Use SET_INFO_FROM_CURSOR.
14793
14794 * xterm.c (XTget_display_info): Handle 3D facess.
14795 (draw_glyphs): Ditto.
14796
14797 * xdisp.c (Fdump_redisplay_state): Change interactive spec to "p".
14798
14799 * xfaces.c (Fset_face_attribute_internal): New face attribute
14800 shadow-thickness.
14801 (copy_face): Handle shadow_thickness.
14802 (face_eql): Ditto.
14803 (merge_faces): Ditto.
14804 (compute_base_face): Ditto.
14805
14806 * dispextern.h (struct display_cursor): New member start_of_3d_run_p.
14807 (struct display_info): Ditto.
14808 (SET_INFO_FROM_CURSOR): Transfer it to display_info.
14809 * xdisp.c (compute_cursor_face): Set it.
14810 (advance_display_cursor): Clear it.
14811
14812 * xdisp.c (init_string_cursor): Initialize face_id to -1.
14813 (init_string_cursor): Init face_id to zero.
14814
14815 * dispextern.h (struct face): New member shadow_thickness.
14816
427ec082 14817 * xdisp.c (compute_cursor_face): Set limit for text property
26901792
DL
14818 search to 100.
14819
14820 * dispnew.c (update_window_line): Try to resynch with current line
14821 to prevent mode line flickering.
14822
148231997-10-26 Gerd Moellmann <gerd@acm.org>
14824
427ec082 14825 * dispnew.c (set_window_cursor_after_update): React again
26901792
DL
14826 on cursor_in_echo_area >= 0.
14827
14828 * xdisp.c (echo_area_display): Clear desired matrix before
14829 displaying into it.
14830 (display_menu_bar): Clear glyph row instead of hoping it is not
14831 enabled. This is safer.
14832
14833 * dispnew.c (check_current_matrix_invariants): Check only
14834 visible rows.
14835
14836 * xdisp.c (try_window_id): Handle window end setting in case of
14837 display to end of window, but only non-text lines displayed.
14838
14839 * dispnew.c (check_current_matrix_invariants): Check nrows for zero.
14840 (check_current_matrix_invariants): Check used counts.
14841
14842 * Revisiob v114.
14843
14844 * dispnew.c (scrolling): Use hash codes from rows.
14845
14846 * xdisp.c (Fdump_redisplay_state): Dump current matrix.
14847
14848 * dispnew.c (scrolling_window): Invalidate conflicting runs.
14849
148501997-10-25 Gerd Moellmann <gerd@acm.org>
14851
14852 * dispextern.h (struct glyph_matrix): Flag no_scrolling_p.
14853 * dispnew.c (update_window): Use it.
14854 (clear_glyph_matrix): Clear it.
14855 * xdisp.c (try_window_id): Set it.
14856
14857 * dispextern.h (struct glyph_row): New flag ends_at_zv_p.
14858
14859 * xdisp.c (redisplay_internal): Increment glyph positions differently.
14860
14861 * dispextern.h: More comments etc.
14862
148631997-10-24 Gerd Moellmann <gerd@acm.org>
14864
14865 * dispnew.c (set_window_cursor_after_update): Set cursor
14866 for cursor_in_echo_area == 0 to (0, 0).
14867
14868 * dispextern.h (struct glyph_row): New flags continuation_line_p
14869 and displays_text_p.
14870 (MATRIX_ROW_DISPLAYS_TEXT_P): Use displays_text_p.
14871 * xdisp.c (display_line): Set them.
14872 (try_window_id): Move to start of continuation line to find out
14873 continuation_line_width.
14874 (first_unchanged_current_row): Don't retract row if continued,
14875 truncated etc.
14876
14877 * xterm.c: Map X coordinates.
14878
148791997-10-23 Gerd Moellmann <gerd@acm.org>
14880
14881 * dispnew.c (buffer_posn_from_coords): Translate X for right to
14882 left text.
14883
14884 * xdisp.c (display_line): Set right_to_left_p after clearing the row.
14885
14886 * xterm.c (XTclear_end_of_line): Respect right_to_left_p.
14887
f28eba7b 14888 * xdisp.c (try_window_id): Clear desired matrix if not successul.
26901792
DL
14889
14890 * xdisp.c (try_window_id): Call update_window_begin_hook/end_hook.
14891
14892 * dispnew.c (update_window_begin_hook, update_winodw_end_hook):
14893 Set this to functions to be called before/after window updates.
14894 (direct_output_for_insert): Call them.
14895 (update_window): Ditto.
14896 (update_frame): Call update_begin/ update_end for windows.
14897
14898 * xterm.c (XTupdate_window_begin): Called before window updates.
14899 (XTupdate_end): Called after window updates.
14900 (x_initialize): Set hooks to above.
14901
14902 * xdisp.c (init_display_info): Initialize c and len of
14903 display_info.
14904
14905 * xterm.c (x_get_char_font_and_encoding): Bug fix. Don't load
14906 fonts more than once.
14907
149081997-10-22 Gerd Moellmann <gerd@acm.org>
14909
14910 * xdisp.c (display_line): Handle most common case of current_x <
14911 last_visible_x separately.
14912
14913 * dispextern.h (display_element_type): DISP_ELLIPSIS removed.
14914
14915 * dispnew.c (update_window_line): Compare pixel widths of glyphs
14916 so that face extending space doesn't compare equal to normal space
14917 with same face.
14918
14919 * xdisp.c (display_line): Make sure we have a position for
14920 a line end in an otherwise blank line if face is extended.
14921
14922 * dispnew.c (direct_output_for_insert): Increment row end position.
14923
427ec082 14924 * window.c (Fpos_visible_in_window_p): Use old meaning of
26901792
DL
14925 window_end_pos.
14926
14927 * xdisp.c (init_display_cursor_from_glyph_pos): New.
14928
14929 * dispextern.h (MATRIX_ROW_FIRST_POS): Use row start.
14930
14931 * dispnew.c (increment_glyph_row_buffer_positions): Adjust
14932 start and end positions in rows.
14933 (increment_glyph_row_buffer_positions): Stop adjusting at
14934 glyphs with positions <= 0.
14935
14936 * dispextern.h (struct glyph_pos): Structure desribing a text
427ec082 14937 position including position in overlay.
26901792
DL
14938 (struct glyph_row): Use it for start and end positions.
14939 (struct display_cursor): Use it.
14940 * xdisp.c: Use it.
14941 (display_line): Set row start and end positions.
14942
14943 * dispnew.c (copy_row_except_pointers): Use bcopy and struct
14944 assignment.
14945
149461997-10-21 Gerd Moellmann <gerd@acm.org>
14947
14948 * dispnew.c (update_window): Add scrolling_window again. It's
14949 necessary for scroll_step != 0.
14950
14951 * xdisp.c (redisplay_window): Use vmotion for scroll_step
14952 scrolling.
14953
14954 * xdisp.c (last_unchanged_current_row): Use window_end_vpos.
14955
14956 * xterm.c (XTupdate_end): Flush only for messages.
14957
14958 * xdisp.c (try_window_id): Assert last_unchanged_row >=
14959 first_unchanged_row.
14960
14961 * xterm.c (XTupdate_end): Flush if miniwindow.
14962
14963 * dispnew.c (matrix_row_last_pos): New function.
14964 * dispextern.h (MATRIX_ROW_LAST_POS): Call it.
427ec082 14965 Large comment moved to xdisp.c.
26901792
DL
14966
14967 * xdisp.c (redisplay_window): Bug fix: PT set to value > Z.
14968 (skip_via_matrix): Check window_end_valid instead of
14969 display_completed.
14970
14971 * dispnew.c (scroll_glyph_matrix_range): Bug fix.
14972 (update_window): scrolling_window commented out. It has negative
14973 effect most of the time.
14974
14975 * xdisp.c (try_window_id): Correct parameters to
14976 scroll_glyph_matrix_range.
14977
427ec082 14978 * xterm.c (XTupdate_end): XFlush commented out.
26901792
DL
14979
14980 * window.h: Comments for window_end_pos/vpos.
14981
f28eba7b 14982 * xdisp.c (skip_to): Assert current_buffer is the buffer
26901792
DL
14983 of the window in which we are skipping.
14984
14985 * dispnew.c (update_window_line): Optimized clear_end_of_line.
14986
14987 * xterm.c (draw_glyphs): Bug fix. Return window relative X
14988 reached.
14989
149901997-10-20 Gerd Moellmann <gerd@acm.org>
14991
14992 * dispextern.h (MATRIX_ROW_LAST_POS): Go back one glyph if this is
14993 a face extending glyph.
14994
427ec082 14995 * xdisp.c (try_window_id): Check if point will appear.
26901792
DL
14996 (set_cursor_from_row): Set cursor position from a glyph row.
14997
14998 * dispnew.c (update_window_line): Write entire line if hash
14999 codes of lines differ.
15000
15001 * dispextern.h (MATRIX_ROW_EXTENDS_FACE_P): Value is non-zero
15002 if glyph row has an infinite width glyph at its end.
15003
15004 * xdisp.c (last_unchanged_current_row): Respect partially visible
15005 lines when looking for the last row displaying text.
15006 (try_window_id): Handle partially visible lines better.
15007
150081997-10-19 Gerd Moellmann <gerd@acm.org>
15009
15010 * dispnew.c (update_window): Remove unused variable.
15011 (update_window_line): Simplified.
15012
15013 * xterm.c (x_get_char_font_and_encoding): Handle most common
15014 case at the beginning.
15015
15016 * xdisp.c (advance_display_cursor): Dispatch on method and
15017 order if statements by expected call frequency. Fixed unclosed
15018 comment.
15019
15020 * xdisp.c (try_window_id): New implementation.
15021
15022 * dispnew.c (increment_glyph_row_buffer_positions): Capture
15023 rows displaying a line end, only.
15024
150251997-10-18 Gerd Moellmann <gerd@acm.org>
15026
15027 * window.c (Fpos_visible_in_window_p): Remove use of window_end_vpos.
15028
150291997-10-14 Gerd Moellmann <gerd@acm.org>
15030
15031 * xdisp.c (display_line): Mark empty lines not corresponding to
15032 text with position -1.
15033
15034 * xterm.c (x_erase_phys_cursor): Don't bother to erase cursor if
15035 not within window matrix bounds.
15036
15037 * dispextern.h (struct display_cursor): New member REGION_SHOWING_P.
15038 (struct display_info): NGLYPHS_TO_IGNORE removed.
15039 * xdisp.c: References to NGLYPHS_TO_IGNORE removed.
15040 * term.c: Ditto.
15041 * xterm.c: Ditto.
15042
15043 * xdisp.c (init_display_cursor): Set it.
15044 (display_line): Use it to set W->REGION_SHOWING.
15045
15046 * xdisp.c (skip_via_matrix): Check for overlay arrow.
15047
15048 * region-cache.h: functino prototypes with PROTO.
15049
15050 * dispnew.c (buffer_posn_from_coords): Use -1 as skip position.
15051
15052 * xdisp.c (skip_via_matrix): Check for rows that don't contain
15053 a position.
15054
427ec082 15055 * xterm.c (XTmouse_position): Calculate LAST_MOUSE_GLYPH
26901792
DL
15056 rectangle based on minimum character bounds.
15057
f28eba7b 15058 * keyboard.c (make_lispy_event): Mouse clicks; don't do frame
26901792
DL
15059 glyph position calculations.
15060 (make_lispy_movement): Use buffer_posn_from_coords and window
15061 relative coordinates.
15062
15063 * xterm.c (construct_mouse_click): Remove #if 0 case.
15064
15065 * dispextern.h (MATRIX_ROW_BOTTOM_Y): Return bottom pixel y of
15066 given row.
15067
427ec082
SS
15068 * xdisp.c (skip_via_matrix): Skip using current matrix if up to
15069 date.
26901792
DL
15070 (skip_to): Use it.
15071 (redisplay_window): Remove code skipping using current matrix.
15072
150731997-10-13 Gerd Moellmann <gerd@acm.org>
15074
15075 * xdisp.c (redisplay_window): Use available current matrix to
15076 skip faster when only point is moved withing the window.
15077
427ec082 15078 * intervals.c: Include stdio.h.
26901792
DL
15079 (find_interval): Trace to stderr to catch some nasty error
15080 that did not yet occur again with tracing.
15081 (set_point): Ditto.
15082
15083 * dispnew.c (shift_glyph_matrix): Experimental code for handling
15084 cursor positioning on partially visible lines.
15085 (set_window_cursor_after_update): Ditto.
15086
f28eba7b 15087 * dispextern.h (MATRIX_ROW_PARTIALLY_VISIBLE_P): Bug fix.
26901792
DL
15088
15089 * window.h (struct window): start_y removed.
15090
15091 * window.c (make_window): start_y removed.
15092 (replace_window): Ditto.
15093
427ec082 15094 * xdisp.c (last_max_ascent, last_max_descent): Ascent and
26901792
DL
15095 descent values of the last line processed by skip_to.
15096 (redisplay_window): Use them.
15097 (skip_to): Set them.
15098
15099 * dispextern.h (struct display_cursor): New member METHOD.
15100
15101 * xdisp.c: Use function member METHOD.
15102
15103 * xdisp.c (set_next_stop_pos): Determine next position at which to
15104 check for face properties, invisible text properties, and overlays.
15105 (compute_cursor_face): Use it.
15106 (get_overlays_for_cursor): Ditto.
15107 (reseat_cursor): Ditto.
15108 (next_display_element): Ditto.
15109
15110Sun Aug 24 08:50:52 1997 Gerd Moellmann <gerd@acm.org>
15111
15112 * termhooks.h: Some hooks with prototypes.
15113
15114 * term.c: Some hooks with function prototypes.
427ec082 15115
26901792
DL
15116 * xdisp.c (reseat_cursor): Additional argument force_p. Avoid
15117 computing face if possible.
15118
15119 * xdisp.c (next_display_element): Use face from glyph from display
15120 table only if != 0.
15121
15122 * emacs.c: FreeBSD headers for profiling removed.
15123
427ec082
SS
15124 * dispnew.c (direct_output_for_insert): Don't use PT-1 for
15125 display cursor, use DEC_POS instread.
26901792
DL
15126
15127 * xfaces.c (load_font): Use x_load_font to load fonts so that
427ec082 15128 all fonts are in the font table.
26901792
DL
15129 (unload_font): Don't XFreeFont.
15130
15131 * dispnew.c (row_equal_p): Compare ascent, descent and visible
15132 row height.
15133
15134 * xterm.c (draw_glyphs): Use 8-bit functions if possible.
15135 (x_erase_phys_cursor): Clear only visible part of row.
15136 (x_draw_bar_cursor): Set clipping.
15137 (x_draw_hollow_cursor): Ditto.
15138 (x_display_and_set_cursor): Remove clipping.
15139 (expose_window_tree): Take trunc border into account.
15140 (x_phys_cursor_in_rect_p): Test if phys_cursor intersects a rect.
15141 (expose_window): Use it.
15142
15143 * xdisp.c (display_string): Catch case that we are called with
d7d0dac0 15144 current_x already beyond max_x.
26901792
DL
15145 (global): Fix usage of FRAME_WINDOW_P <-> FRAME_WINDOW_REDISPLAY_P.
15146 (init_display_info): Subtract vertical border glyph from
d7d0dac0 15147 last_visible_x.
26901792
DL
15148
15149 * scroll.c (scrolling_window_1): Removed.
15150
15151 * dispnew.c (adjust_frame_glyphs): Split into two functions,
15152 based on redisplay method used.
15153 (adjust_frame_glyphs_for_frame_redisplay): Part for frame
15154 based redisplay.
15155 (adjust_frame_glyphs_for_window_redisplay): Part for purely
15156 window based redisplay.
15157
15158 * frame.h (FRAME_WINDOW_REDISPLAY_P): Changed to not depend
15159 on data structures.
15160
15161 * dispnew.c (adjust_glyph_matrix): Additional parameter W.
15162 Handle own storage for purely window based redisplay.
15163 (allocate_matrices_for_frame_redisplay): Formerly part of
427ec082 15164 allocate_matrices.
26901792
DL
15165 (allocate_matrices_for_window_redisplay): Ditto.
15166
15167 * dispextern.h (struct glyph_matrix): window_top_y,
15168 window_height.
15169
15170 * dispnew.c (allocate_matrices_for_window_redisplay): Detect
15171 and optimize some common cases of window changes.
15172
15173 * emacs.c (main): Remove own profiling code because 0.95 now
15174 has it in.
15175
15176Fri Aug 22 18:46:43 1997 Gerd Moellmann <gerd@acm.org>
15177
d7d0dac0 15178 * xterm.c (XTupdate_end): Draw horizontal border at right position.
26901792
DL
15179 (expose_window): Draw vertical border.
15180 (XTclear_end_of_line): Accept width <= 0 and height <= 0 but
15181 don't do anything.
15182
15183 * xdisp.c (redisplay_internal): Set update_mode_line if paused
15184 for non full width windows only if not window redisplay.
15185
15186 * dispnew.c (update_window_tree): Or paused_p return of called
15187 functions.
15188
15189 * xterm.c (x_display_and_set_cursor): Return if hpos/vpos outside
15190 of window.
15191
15192 * window.c (Fset_window_configuration): adjust_glyphs being
15193 called twice.
15194 (Fset_window_configuration): Set frame garbaged if not all
15195 leaf windows reused.
15196
151971997-08-21 Gerd Moellmann <gerd@acm.org>
15198
15199 * dispnew.c (clear_glyph_matrix): Additional argument specifiying
15200 that rows should really be cleared. Used for current matrices.
15201
d7d0dac0
SM
15202 * dispnew.c (scrolling_window): Bug fix.
15203 (line_dance_hook): Formerly line_dance_fn, take only one parameter.
26901792
DL
15204
15205 * dispextern.h (struct run): Remove current_vpos.
15206
15207 * xterm.c (do_line_dance): Only one parameter.
15208
f28eba7b 15209 * xdisp.c (display_line): Set continued_p.
26901792
DL
15210
15211 * dispextern.h (struct glyph_row): New flag continued_p.
15212 Fix truncated_on_left_p and truncated_on_right_p to be bits.
427ec082 15213 (struct glyph_row):
26901792
DL
15214
15215Thu Aug 21 14:37:34 1997 Gerd Moellmann <gerd@acm.org>
15216
15217 * xdisp.c (skip_vertically_backward): Avoid negative vpos values
15218 when calling skip_to for continued lines.
15219
15220 * dispnew.c (change_frame_size_1): Set frame garbaged.
15221
15222 * xterm.c (expose_window): Check enabled_p of rows.
15223
15224 * xdisp.c (redisplay_internal): Compare line heights before and
15225 now for redisplay optimization 2 (hit).
15226 (display_line): Set this_line_pixel_height.
15227
15228 * xterm.c (x_draw_row_borders): Use FRAME_MODE_LINE_HEIGHT height
15229 value.
15230 (x_clip_to_row): Use MATRIX_ROW_VISIBLE_HEIGHT. Simplified.
15231 (do_line_dance): Simplified and pixel corrected.
15232
15233 * dispnew.c (scrolling_window): Simplified.
15234
15235 * xterm.c (x_draw_3d_border): Inset rectangle by line width.
15236
15237 * dispnew.c (update_window): Add FRAME_MODE_LINE_BORDER_WIDTH
15238 to mode line row->x.
15239
15240Wed Aug 20 11:23:28 1997 Gerd Moellmann <gerd@acm.org>
15241
15242 * xterm.c (x_get_char_font_and_encoding): Don't let fontset
15243 override font of face.
15244 (draw_glyphs): Correct return value.
15245 (XTclear_end_of_line): Compare differently with output cursor
15246 position.
15247 (x_draw_hollow_cursor): 2 parameters, window and row.
15248
15249 * dispnew.c (update_window_line): If rows have different height
15250 or y, write entire line.
15251
f28eba7b 15252 * xdisp.c (compute_line_metrics): Reset max_ascent and max_descent
26901792
DL
15253 of info struct.
15254
427ec082 15255 * xfaces.c (Fset_face_attribute_internal): Don't call
26901792
DL
15256 frame_update_line_height.
15257 (merge_faces): Don't use default font if new font has different
15258 size.
15259
15260Tue Aug 19 14:38:05 1997 Gerd Moellmann <gerd@acm.org>
15261
15262 * xterm.c (x_display_and_set_cursor): Use FONT_WIDTH if width
d7d0dac0 15263 unknown. Some fonts have min_width zero.
26901792 15264 (draw_glyphs): Don't draw underlines to the end of the display
d7d0dac0 15265 line if face is merely extended to that point.
26901792 15266 (draw_glyphs): Don't assume background is filled if
d7d0dac0 15267 just_foreground_p but extending to end of line.
26901792
DL
15268
15269 * xterm.c (XTclear_end_of_line): Clip only to display_height - 1
15270 for partially visible last lines.
15271 (x_clip_to_row): Ditto.
15272 (x_clip_to_row): Clip to display_height-1 if y + line_height >
15273 display_height since line_height is really a line distance.
15274 (x_display_and_set_cursor): If cursor on padding glyph, use
15275 min_bounds pixel width.
15276
15277Mon Aug 18 09:39:18 1997 Gerd Moellmann <gerd@acm.org>
15278
15279 * xterm.c (x_clip_to_row): Height value was 1 too large.
15280 (XTclear_end_of_line): Clip to display area.
15281
15282 * xfns.c (x_figure_window_sizes): Add trunc border width
15283 to frame pixel width.
15284
15285 * xdisp.c (next_display_element): Don't display overlay strings
15286 within invisible text.
427ec082 15287 (skip_vertically_backward): Skip display lines.
26901792
DL
15288
15289Sat Aug 16 13:13:32 1997 Gerd Moellmann <gerd@acm.org>
15290
15291 * xdisp.c (x_consider_frame_titie): Don't pad with blanks.
15292
15293 * xdisp.c (next_display_element): Next invisible
15294 text check position computed differently.
15295
15296 * dispextern.h (struct display_cursor): last_invisible_text_pos
15297 and display_ellipsis_for_invisible_p removed.
15298
15299 * xdisp.c (next_display_element): Set last_invisible_text_pos
15300 to the last position at which invisible text was found. Don't
15301 decrement cursor.pos for newlines and cr with ellipsis. Set
427ec082 15302 dpvec for `...' due to invisible text directly.
26901792
DL
15303 (redisplay_internal): Don't assert that cursor is at PT after
15304 skip_to. It may be in invisible text.
15305
427ec082 15306 * keyboard.c (make_lispy_event): For mouse clicks, use
26901792
DL
15307 x_y_to_hpos_vpos.
15308
427ec082 15309 * xdisp.c (next_display_element): Call get_overlays_for_cursor when
26901792
DL
15310 next_overlay_pos is reached. Use limit cursor.pos + 100 when
15311 checking for invisible text.
15312
15313 * xterm.h (WINDOW_COL_PIXEL_X etc.) Removed.
15314
15315 * dispextern.h (WINDOW_TO_FRAME_HPOS/VPOS): Moved to dispnew.c
15316
d7d0dac0 15317 * xfns.c (x_contour_region): Use pixel coordinates from window
26901792
DL
15318 cursor instead of WINDOW_TO_FRAME_H/VPOS.
15319
15320 * dispextern.h (FRAME_TO_WINDOW_HPOS, FRAME_TO_WINDOW_VPOS):
15321 Removed.
15322
15323 * dispnew.c (frame_to_window_hpos, frame_to_window_vpos): Removed.
15324
15325 * xterm.c (x_y_to_hpos_vpos): Get hpos/vpos from window relative
15326 pixel coordinates.
15327 (note_mouse_highlight): Use it.
15328
15329 * xdisp.c (echo_area_display): Ignore calls for terminal frames
15330 under a window system.
15331
427ec082 15332 * dispnew.c (adjust_frame_glyphs): Call redraw_frame if
26901792 15333 necessary.
427ec082 15334 (update_window_line): Add width of face padding glyph to
26901792
DL
15335 displayed widths of rows.
15336
15337 * xterm.c (x_display_and_set_cursor): Set clipping after
15338 erasing cursor.
427ec082
SS
15339
15340 * window.c (Fset_window_configuration): Free only those
26901792
DL
15341 window matrices not reused.
15342 (get_leaf_windows): Build vector of leaf windows.
15343 Corrupted archive restored from v77.
15344
f28eba7b 15345 * xdisp.c (display_string): Stop at >= last_visible_x if truncating
26901792
DL
15346 like display_line does.
15347
15348 * xdisp.c (display_mode_line): Don't hscroll mode line.
15349
15350 * xterm.c (draw_glyphs): Wrong run_width computed for horiz. split
15351 windows.
15352 (x_scroll_bar_create): #3039 Clear area below scroll bar to remove
15353 garbage between mode lines when splitting windows horiz.
15354
15355 * dispnew.c (direct_output_for_insert): Bug fix.
15356
15357 * dispextern.h (struct display_cursor): New member string_length.
15358
15359 * xdisp.c (next_display_element): Return padding spaces.
f28eba7b 15360 (init_string_cursor): Take precision and field_width
26901792
DL
15361 (display_string): Use string cursor, skip over invisible text.
15362
15363Thu Aug 14 10:41:41 1997 Gerd Moellmann <gerd@acm.org>
15364
15365 * xterm.c (x_clip_to_row): Clip to partially visible lines.
15366 (x_display_and_set_cursor): Call it.
15367 (draw_glyphs): Call it
15368 (draw_bitmap): Call it.
15369
427ec082 15370 * dispnew.c (adjust_frame_glyphs): Optimize frame garbaging.
26901792
DL
15371 (allocate_leaf_matrix): Return flags.
15372 (row_equal_p): Compare enabled_p.
15373
15374 * xterm.c (x_erase_phys_cursor): Set phys_cursor_on_p to 0
15375 for type == -1.
15376
15377 * xterm.c (x_display_and_set_cursor): Bar cursor 1 pixel taller.
427ec082 15378 (draw_glyphs): Clip height one pixel taller.
26901792 15379
427ec082 15380 * dispnew.c (direct_output_for_insert): Give up for hscrolled
26901792
DL
15381 mini window.
15382
f28eba7b 15383 * xdisp.c (display_line): Don't scroll mini prompt.
26901792 15384
427ec082
SS
15385 * xdisp.c (echo_area_display): Call update_single_window if
15386 possible.
26901792
DL
15387
15388 * dispnew.c (update_window_line): Call scrolling_window.
f28eba7b 15389 (scrolling_window): Work on enabled desired lines only.
26901792
DL
15390 (update_single_window): Update a single window like update_frame
15391 does for all windows.
427ec082 15392 (update_window, update_window_tree): Additional argument
26901792
DL
15393 no_scrolling_p.
15394 (update_frame): Pass no_scrolling_p to update_window_tree.
15395 (update_window): Don't call scrolling_window if no_scrolling_p.
15396
15397 * xterm.c (x_erase_phys_cursor): Do nothing if type == -1.
427ec082
SS
15398 Erase under hollow cursor.
15399 (x_display_and_set_cursor): Do nothing if cursor glyph row
26901792
DL
15400 not enabled. Draw bar cursor 1 pixel smaller.
15401
f28eba7b 15402 * dispnew.c (adjust_frame_glyphs): Don't set frame garbaged
26901792
DL
15403 since update will follow soon.
15404
15405 * xdisp.c (echo_area_display): Unitialized variable.
15406
f28eba7b 15407 * xterm.c (draw_bitmap): Previously draw_truncation; draw
26901792
DL
15408 overlay arrow bitmap.
15409
f28eba7b 15410 * xdisp.c (display_line): For truncated lines, consider everything
427ec082 15411 up to the final \n as part of the line for cursor positioning.
26901792 15412
f28eba7b
SM
15413 * xterm.c (draw_truncation): Take FRAME_X_TRUNC_WIDTH into account.
15414 (x_after_update_window_line): Clear trunc marks.
26901792
DL
15415
15416 * xterm.h (FRAME_X_TRUNC_WIDTH).
15417
f28eba7b 15418 * frame.h (FRAME_TRUNC_WIDTH): Width of area at the left margin
26901792
DL
15419 of a window reserved for truncation mark.
15420
427ec082 15421 * dispextern.h: Take FRAME_TRUNC_WIDTH into account.
26901792
DL
15422
15423 * dispnew.c (update_window_line): Call after_update_windwo_line-
427ec082 15424 hook.
26901792
DL
15425
15426 * xdisp.c (display_line): Set overlay_arrow_p in row.
15427
15428 * dispextern.h (struct glyph_row): New flag overlay_arrow_p.
15429
15430 * xterm.c (x_after_update_window_line): Draw truncation marks.
15431
15432 * xdisp.c (display_line): Insert truncation for lines with
15433 current_x > 0.
15434
15435 * xterm.c (x_draw_row_borders): Convert y to frame coords.
15436 Correct y by 1.
15437 (x_display_cursor): Use default font width if width not
427ec082 15438 known.
26901792 15439
f28eba7b 15440 * xdisp.c (echo_area_display): Set row->y.
26901792
DL
15441
15442 * dispnew.c (set_window_cursor_after_update): Don't assume
15443 all rows are enabled.
15444
15445 * xdisp.c (skip_in_display_line_to): Test cursor.position instead
15446 of cursor.pos.
15447 (skip_in_display_line_to): Check cursor.position after call to
15448 next_display_element.
15449
427ec082 15450 * dispextern.h (CURSOR_AT_P): Test if cursor has reached
26901792
DL
15451 buffer position.
15452
15453 * xdisp.c (display_line): Set row->y here.
15454 (skip_in_display_line_to): Test for to_pos after all glyphs
15455 have been added to hpos so that hpos is at the end of all
15456 glyphs for to_pos.
15457 (start_display): Remove assertion.
15458
d7d0dac0 15459 * dispnew.c (direct_output_forward_char): Bug fix, = instead of ==.
26901792
DL
15460 (update_window): Don't set row->y here.
15461
15462 * xdisp.c (next_display_element): Don't translate control chars
15463 from display table entries.
15464
427ec082 15465 * dispnew.c (direct_output_for_insert): Set cursor before
26901792
DL
15466 update end to prevent cursor flickering. Revert changes to
15467 setting cursor.endpos.
15468
15469Wed Aug 13 10:46:12 1997 Gerd Moellmann <gerd@acm.org>
15470
15471 * dispnew.c (direct_output_for_insert): Don't set cursor.endpos
15472 to PT because this prevents multi-byte characters from being
15473 recognized.
15474
427ec082
SS
15475 * xdisp.c (skip_to, display_line): Advance cursor at end of
15476 truncated line.
26901792
DL
15477
15478 * xterm.c (x_draw_3d_borders): Use CapRound. Struct rect
15479 replaced by XRectangle.
15480
d7d0dac0 15481 * dispnew.c (scrolling_window): New method.
26901792
DL
15482
15483 * xterm.c (do_line_dance): New implementation, new method.
427ec082 15484
26901792
DL
15485 * xdisp.c (draw_glyphs): Draw truncation bitmaps. Clip to
15486 visible part of line.
15487
15488 * dispnew.c (update_window_line): Fill inverse video lines
15489 with infinite width space.
15490 (update_window): Handle completely empty matrices.
15491 (set_window_cursor_after_update): Bug fix.
15492
427ec082 15493 * xterm.c (draw_glyphs): Stop drawing at right window end.
26901792
DL
15494
15495 * dispnew.c (update_window_line): Don't ignore spaces, don't
15496 fill with spaces.
15497
15498 * xdisp.c (compute_line_metrics): Stop adding glyph widths with
15499 the first glyph having width 0.
15500
15501 * xterm.c (draw_glyphs): Let a glyph pixel with of 0 denote
427ec082 15502 a glyph that extends to the end of the line.
26901792
DL
15503
15504 * xdisp.c (display_line): Insert one padding glyph
15505
15506 * xdisp.c (skip_in_display_line_to): Don't subtract shift left
15507 amount from info.current_x.
15508 (display_line): Ditto.
15509
15510 * dispnew.c (direct_output_for_insert): Correct use of cursor.x.
15511 (change_frame_size_1): Correct cursor.x if frame gets too small.
15512 (update_window_line): Start at row->x.
15513
15514 * xdisp.c (redisplay_internal): Correct cursor.x (everwhere
15515 in xdisp.c).
15516
15517 * xterm.c (set_output_cursor): Use window relative X/Y.
15518 (global): Use window relative output cursor x/y.
15519 (draw_glyphs): Remove y param. Pass window relative x/y.
15520
15521 * dispnew.c (update_window): Start rows at start_y.
15522 (update_window): Don't try scrolling because it wouldn't work
15523 with variable height lines, anyway.
15524
15525 * dispextern.h (struct glyph_row): Remove shift_left_by,
15526 add x.
15527
15528 * window.h: (struct window): New member start_y.
15529
15530 * window.c (replace_window): Initialize start_y.
15531 (make_window): Ditto.
15532
15533Tue Aug 12 14:53:04 1997 Gerd Moellmann <gerd@acm.org>
15534
15535 * xterm.c (draw_glyphs): Clip rows that would paint over
427ec082 15536 the mode line.
26901792 15537
427ec082
SS
15538 * dispnew.c (update_window): Take mode line border into
15539 account.
26901792
DL
15540
15541 * xterm.h (FRAME_MODE_LINE_BORDER_WIDTH): Number of pixels
427ec082 15542 of border around mode line.
26901792
DL
15543
15544 * xterm.c (x_draw_row_borders): Bug fix.
15545 (x_erase_phys_cursor): Set pyhs_cursor.x/y before calling
15546 drawing functions.
15547
15548 * xterm.c (x_draw_row_border): Experimental; draw 3d borders
427ec082 15549 around modeline instead of inverting it.
26901792 15550
427ec082 15551 * xterm.c (glyph_to_pixel_coords): Use current matrix.
26901792
DL
15552
15553 * dispnew.c (buffer_posn_from_coords): Use SKIP_TO. Now takes
15554 window relative pixel coordinates as arguments.
15555
15556 * keyboard.c (make_lispy_event): Use BUFFER_POSN_FROM_COORDS
15557 with window relative pixel coordinates. Use GLYPH_TO_PIXEL_-
15558 COORDS mit new arguments.
15559
15560Mon Aug 11 12:32:34 1997 Gerd Moellmann <gerd@acm.org>
15561
15562 * xdisp.c (start_display): Use SKIP_TO instead of SKIP_IN-
427ec082 15563 DISPLAY_LINE.
26901792
DL
15564
15565 * keyboard.c (make_lispy_event): WINDOW_FROM_COORDINATES with
15566 pixel coords.
15567 (make_lispy_movement): Same.
15568
15569 * xterm.c (note_mouse_highlight): Use WINDOW_FROM_COORDINATES
15570 with new parameter meaning.
15571
15572 * window.c (Fcoordinates_in_window_p): Convert Lisp params
15573 from canon units to pixels.
15574 (coordinates_in_window): Pixel based.
15575 (Fcoordinates_in_window_p): Convert result pixel values back
15576 to canonical units.
15577
15578 * window.h: phys_cursor_ascent + descent instead of height.
15579
15580 * xterm.c (XTget_char_info): Use per char metrics for multi-byte
d7d0dac0 15581 chars with charset width 1.
26901792
DL
15582
15583 * dispnew.c (direct_output_for_insert): Set updated_row.
15584
15585Sat Aug 9 12:11:44 1997 Gerd Moellmann <gerd@acm.org>
15586
15587 * dispextern.h (struct glyph): Padding flag removed.
15588
15589Tue Aug 5 09:59:08 1997 Gerd Moellmann <gerd@acm.org>
15590
15591 * sysdep.c (reset_sys_modes): cursor_to with 4 params.
15592
15593 * keyboard.c (interrupt_signal): Cursor_to with 4 params.
15594
15595 * dispnew.c (update_window_line): Use pixels.
15596
15597 * xdisp.c (compute_line_metrics): Correct pixel_width by
15598 shift_left_by.
15599
15600 * dispextern.h (struct glyph_row): FIRST_SHIFTED_LEFT_GLYPH
427ec082 15601 removed. Remove references to it everywhere. Reverse_p in
26901792
DL
15602 glyph_row -> right_to_left_p. Change references to it.
15603
15604Mon Aug 4 18:09:27 1997 Gerd Moellmann <gerd@acm.org>
15605
15606 * dispnew.c (direct_output_for_insert): Use INSERT_GLYPHS.
15607
15608 * xterm.c (XTinsert_glyphs): Implement it.
15609
15610 * term.c (insert_glyphs): UPDATING_FRAME may be NULL in case
15611 of a call from DIRECT_OUTPUT_FOR_INSERT.
15612
15613 * window.h (struct cursor_pos): Keeps both matrix positions
15614 and pixel positions.
15615 (struct window): Use it.
15616
15617 * dispnew.c (direct_output_for_insert): New version.
15618
15619 * xdisp.c (redisplay_internal): Don't do anything if it has
15620 already be done directly.
15621
15622 * keyboard.c (command_loop_1): Call DIRECT_OUTPUT_FOR_INSERT
15623 for any character.
15624
15625Thu Jul 31 15:39:10 1997 Gerd Moellmann <gerd@acm.org>
15626
15627 * xdisp.c (echo_area_display): Use new DISPLAY_STRING.
15628
15629Wed Jul 30 12:18:03 1997 Gerd Moellmann <gerd@acm.org>
15630
15631 * dispextern.h (struct glyph_row): MAX_ASCENT, MAX_DESCENT.
15632 (struct glyph): ASCENT, DESCENT.
15633 (MATRIX_ROW_PIXEL_HEIGHT): Pixel height of row.
15634 (GLYPH_PIXEL_HEIGHT): Pixel height of glyph.
15635
15636 * xterm.c (XTget_display_info): Correct tab computation.
15637
15638 * term.c (get_display_info): Correct tab computation.
15639
15640 * dispextern.h (struct display_cursor): WHAT_FOUND, SOURCE_OBJECT.
15641 Renamed from CHAR_CURSOR.
15642
15643Tue Jul 29 12:52:40 1997 Gerd Moellmann <gerd@acm.org>
15644
15645 * xdisp.c (display_text_line): Mostly pixel oriented.
15646
15647 * dispextern.h (struct glyph): BOX_WIDTH -> PIXEL_WIDTH.
15648
15649 * term.c (append_intermediate_glyph): Generate padding glyphs.
15650
15651 * xdisp.c (display_text_line): More into final direction.
15652
15653 * xterm.c (XTget_char_info): Use WHAT field of CHAR_INFO.
15654 (XTget_char_info): Use tabs as multiples of spaces.
15655
15656 * term.c (get_char_info): Use WHAT field of CHAR_INFO.
15657 Use tabs as multiples of spaces.
15658
15659 * dispextern.h (struct char_info ): WHAT field.
15660
15661 * term.c (encode_terminal_code): Don't use GLYPH_CHAR, use
d7d0dac0 15662 FAST_GLYPH_CHAR instead because GLYPH_CHAR won't remove faces.
26901792
DL
15663
15664Mon Jul 28 14:23:06 1997 Gerd Moellmann <gerd@acm.org>
15665
15666 * dispnew.c (init_char_info): Correct TAB_WIDTH to a reasonable
15667 value.
15668 (init_char_info): Initialize with glyph row.
15669
15670 * term.c (get_char_info): Check WANT_ELLIPSIS_P.
15671
15672 * xterm.c (XTget_char_info): Check WANT_ELLIPSIS_P.
15673
15674 * dispextern.h (struct char_info ): GLYPH_ROW for intermediate
15675 glyphs.
15676
15677 * dispnew.c (init_char_info): Init GLYPH_ROW to NULL. CHAR_CURSOR
15678 moved to xdisp.c.
15679
15680 * xdisp.c (display_text_line): Use CHAR_CURSOR.
15681
15682 * xterm.c (x_append_intermediate_glyph): Intermediate glyph
15683 generation.
15684 (XTget_char_info): Ditto.
15685
15686 * term.c (get_char_info): Intermediate glyph generation.
15687 (append_intermediate_glyph): Ditto.
15688
15689Sun Jul 27 18:57:24 1997 Gerd Moellmann <gerd@acm.org>
15690
427ec082 15691 * dispnew.c (compute_char_cursor_face): Compute the face for a
26901792
DL
15692 CHAR_CURSOR.
15693 (init_char_cursor): Initialize a CHAR_CURSOR.
15694 (get_char_and_advance): Get next character to display.
15695
15696 * dispextern.h (struct char_cursor): Cursor for iterating over
15697 display text of CURRENT_BUFFER.
15698
15699Sat Jul 26 13:33:03 1997 Gerd Moellmann <gerd@acm.org>
15700
15701 * term.c (get_char_info): Set MAX_PIXEL_WIDTH in CHAR_INFO.
15702
15703 * dispextern.h (struct char_info ): Use LISP_CHAR_TABLE for DP.
15704 New member MAX_PIXEL_HEIGHT.
15705
15706 * xterm.c (x_per_char_metric): Get per character metrics.
15707 (XTget_char_info): More cases covered.
15708
15709 * term.c (get_char_and_info): Get next character and character
15710 display information.
15711 (get_char_info): Get character display information.
15712
15713 * dispextern.h: Character display information.
15714
427ec082 15715 * xterm.c (x_get_char_font_and_encoding): Get font and
26901792
DL
15716 encode character.
15717 (XTget_char_info): Get display information about a character.
15718
15719Wed Jul 23 16:50:18 1997 Gerd Moellmann <gerd@acm.org>
15720
15721 * dispextern.h (WINDOW_DISPLAY_MODE_LINE_HEIGHT): Height is
15722 zero if window is mini-window.
15723
15724 * xdisp.c: Include xterm.h or w32term.h for FRAME_LINE_HEIGHT.
15725 (try_window): DISPLAY_TEXT_LINE as long as Y < DISPLAY_HEIGHT.
15726
427ec082 15727 * dispnew.c (assign_row): Assign row pixel height.
26901792
DL
15728 (clear_glyph_row): Clear pixel height.
15729 (update_window): Use PIXEL_HEIGHT.
15730
15731 * xdisp.c (display_string): Set row pixel height temporarily.
15732 (display_text_line): Ditto.
15733
427ec082 15734 * dispextern.h (GLYPH_PIXEL_WIDTH):
26901792
DL
15735 (GLYPH_PIXEL_HEIGHT): Get glyph pixel dimension.
15736
427ec082 15737 * frame.h (FRAME_DEFAULT_PIXEL_LINE_HEIGHT): Get height of
26901792
DL
15738 line in default font.
15739 (FRAME_DEFAULT_GLYPH_PIXEL_WIDTH): Get width of character
15740 in default font.
15741 (FRAME_MODE_LINE_PIXEL_HEIGHT): Get height of mode line.
15742
15743 * xterm.h (FRAME_MODE_LINE_HEIGHT): Return height of mode line
15744 in pixels.
15745
15746 * dispnew.c (allocate_leaf_matrix): Use window pixel macros.
15747
15748 * dispextern.h (WINDOW_DISPLAY_PIXEL_WIDTH):
427ec082
SS
15749 (WINDOW_DISPLAY_PIXEL_HEIGHT):
15750 (WINDOW_DISPLAY_MODE_LINE_HEIGHT):
15751 (WINDOW_DISPLAY_PIXEL_HEIGHT_WITHOUT_MODE_LINE):
15752 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X):
15753 (WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X):
15754 (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y):
26901792
DL
15755 (WINDOW_DISPLAY_BOTTOM_EDGE_PIXEL_Y): Macros to get various
15756 pixel values related to windows.
15757
15758Mon Jul 21 12:22:02 1997 Gerd Moellmann <gerd@acm.org>
15759
15760 * xterm.c (XTflash): Flash last line of frame.
15761
15762 * dispextern.h (cursor_in_echo_area): Extern declaration.
15763
15764 * xterm.c (dumpglyphs): 8-bit version to test if my Xserver
d7d0dac0 15765 freezes stem from 16-bit functions.
26901792
DL
15766
15767 * xterm.c (x_display_and_set_cursor): Don't display hollow
15768 cursor in mini windows.
15769
15770 * window.c (replace_window): Initialize PHYS_CURSOR_TYPE.
15771 (make_window): Ditto.
15772
15773 * xterm.c (x_erase_phys_cursor): Erase cursor image.
15774 (x_display_and_set_cursor): Merged version of X_DISPLAY_BOX_CURSOR
15775 and X_DISPLAY_BAR_CURSOR.
15776 (x_display_cursor): Use it.
15777 (x_update_window_cursor): Use it.
15778
15779 * xdisp.c (display_text_line): Set cursor for window even if not
d7d0dac0 15780 selected.
26901792
DL
15781
15782 * xterm.c (x_display_bar_cursor): Use HPOS and VPOS instead
15783 of X and Y to denote matrix positions.
15784 (x_display_cursor): Ditto.
15785
15786 * dispnew.c (scrolling_window): Scrolling for windows.
15787
15788Wed Jul 16 13:37:51 1997 Gerd Moellmann <gerd@acm.org>
15789
15790 * dispnew.c (build_frame_matrix): Work on windows with update
15791 flag set.
15792 (build_frame_matrix_from_window_tree): Ditto.
15793 (build_frame_matrix_from_leaf_window): Ditto.
15794
15795 * xdisp.c (echo_area_display): Set MUST_BE_UPDATED_P instead of
15796 building frame matrix.
427ec082 15797 (redisplay_internal): Set window update flags instead of
26901792
DL
15798 building frame matrix.
15799
15800 * minibuf.c (read_minibuf): Set MUST_BE_UPDATED_P instead of
15801 building frame matrix.
15802
15803 * window.c (make_window): Initialize new members.
15804 (replace_window): Ditto.
15805
15806 * xfns.c (Fx_create_frame): Don't set PHYS_CURSOR_X to -1.
15807 I don't believe this is really necessary.
15808
15809 * dispnew.c (build_frame_matrix_from_leaf_window): Determine
427ec082 15810 border glyph once.
26901792
DL
15811
15812Tue Jul 15 13:58:33 1997 Gerd Moellmann <gerd@acm.org>
15813
427ec082 15814 * window.c (mark_window_cursors_off): Mark all cursors in
26901792
DL
15815 window tree off.
15816
427ec082 15817 * xterm.c (x_display_box_cursor): Window paraemter. Use
26901792
DL
15818 window matrix.
15819 (glyph_to_pixel_pos): Convert matrix pos -> pixels.
15820 (pixel_to_glyph_pos): Convert pixel pos -> matrix pos.
15821 (x_update_cursor): Work on windows.
15822 (x_display_bar_cursor): Ditto.
15823 (x_draw_single_glyph): Ditto.
15824
15825 * xterm.h: Prototype for X_DISPLAY_CURSOR.
15826
15827 * xterm.c (XTcursor_to): Void return type. Test for
d7d0dac0 15828 UPDATED_WINDOW. Call x_display_cursor with window.
26901792 15829 (x_display_cursor): Void return type. Window instead of frame
d7d0dac0 15830 parameter.
26901792 15831
d7d0dac0 15832 * window.h (WINDOW_RIGHTMOST_P, WINDOW_TOPMOST_P): Use functions below.
26901792
DL
15833
15834 * window.c (window_rightmost_p, window_topmost_p): Based on
15835 window tree.
15836
15837 * dispnew.c (adjust_frame_message_buffer): Allocate with
d7d0dac0 15838 FRAME_MESSAGE_BUF_SIZE.
26901792
DL
15839
15840 * window.h: PHYS_CURSOR_.* added.
15841
15842 * frame.h (struct frame): Cursor information removed.
15843
15844 * frame.h (FRAME_SCROLL_BAR_WIDTH): Removed because unused.
15845 (FRAME_WINDOW_WIDTH_ARG): Don't add scroll bar width.
15846
15847 * window.h (WINDOW_LEFT_MARGIN): Remove FRAME_LEFT_SCROLL_BAR.
15848
15849 * window.c (window_internal_width): Scroll bars no longer
15850 part of window.
15851
d7d0dac0 15852 * xterm.c (XTclear_end_of_line): FRAME_LEFT_SCROLL_BAR_WIDTH removed.
26901792 15853
d7d0dac0 15854 * xfns.c (x_set_scroll_bar_width): FRAME_LEFT_SCROLL_BAR_WIDTH removed.
26901792
DL
15855
15856 * xdisp.c (echo_area_display): FRAME_LEFT_SCROLL_BAR_WIDTH removed.
15857 (redisplay_internal): Ditto.
15858 (redisplay_window): Ditto.
15859 (redisplay_window): Ditto.
15860 (display_text_line): Ditto.
15861 (display_mode_line): Ditto.
15862
15863 * minibuf.c (read_minibuf): FRAME_LEFT_SCROLL_BAR_WIDTH removed.
15864
15865 * dispnew.c (set_cursor_to): FRAME_LEFT_SCROLL_BAR_WIDTH removed.
15866 (direct_output_for_insert): Ditto.
15867 (direct_output_forward_char): Ditto.
15868 (update_frame_1): Ditto.
15869
15870Mon Jul 14 12:30:03 1997 Gerd Moellmann <gerd@acm.org>
15871
15872 * dispnew.c (updated_window): Set by UPDATE_WINDOW to the window
d7d0dac0 15873 being updated.
26901792
DL
15874 (update_window): Set and clear it.
15875
15876 * dispnew.c (update_window_line, update_window, scrolling_window):
15877 First versions.
15878
15879 * dispnew.c (build_frame_matrix_from_leaf_window): Add vertical
15880 bar for window borders.
15881 (fill_up_glyph_row_area_with_spaces): Fill an area of a row
15882 with spaces.
15883 (fill_up_glyph_row_with_spaces): Call above function.
15884
15885 * xdisp.c (display_text_line): Don't add vertical bar for
15886 window borders.
15887 (display_string): Ditto.
15888
15889 * window.c (make_window): Init CURSOR_VPOS/HPOS.
15890 (replace_window): Ditto.
15891
15892 * xterm.c (XTwrite_glyphs): Use selected window cursor position.
15893
15894 * xfns.c (Fx_contour_region): Use selected window cursor position.
15895 (Fx_uncontour_region): Ditto.
15896 (Fx_select_region): Ditto.
15897
15898 * frame.c (make_frame): Remove CURSOR_X/Y.
15899
15900 * xdisp.c (redisplay_internal): Use window cursor position.
15901
15902 * dispnew.c (update_frame_1): Use cursor position of selected
15903 window.
15904 (change_frame_size_1): Ditto.
15905
15906 * xterm.c (XTupdate_begin): Set CURS_X/Y from selected window.
15907 (XTwrite_glyphs): Use cursor position of selected window.
15908
d7d0dac0 15909 * xfns.c (x_set_scroll_bar_width): Set cursor pos of selected window.
26901792
DL
15910
15911 * dispnew.c (set_cursor_to): Set window cursor position.
15912 (direct_output_for_insert): Use window cursor position.
15913 (init_display): Don't use frame cursor position.
15914
15915 * window.h: CURSOR_VPOS/HPOS added.
15916
15917 * frame.h (struct frame): CURSOR_X/Y removed.
15918 (FRAME_CURSOR_X): Removed.
15919 (FRAME_CURSOR_Y): Ditto.
15920
15921 * dispnew.c (direct_output_for_insert): LAST_POINT_X removed.
15922 (direct_output_forward_char): Ditto.
15923
d7d0dac0 15924 * xdisp.c (redisplay_internal): LAST_POINT_X and LAST_POINT_Y removed.
26901792
DL
15925
15926 * window.c (make_window): LAST_POINT_X and LAST_POINT_Y removed.
15927
15928 * window.h: LAST_POINT_X and LAST_POINT_Y removed.
15929
15930Sun Jul 13 14:18:24 1997 Gerd Moellmann <gerd@acm.org>
15931
15932 * xdisp.c: Bug fixes using SET_CURSOR with HPOS 0 instead
15933 of FRAME_LEFT_SCROLL_BAR_WIDTH.
15934
15935 * dispextern.h: Changed function names.
15936
15937 * dispnew.c (scrolling): Don't call SCROLLING_1 if WINDOW_SIZE
15938 < 2.
15939 (clear_window_matrices): Formerly two functions for desired
15940 and current matrix.
15941 (update_frame_1): Call CLEAR_DESIRED_MATRICES.
15942 (update_frame): Return return value from UPDATE_FRAME_1.
15943
15944Sat Jul 12 12:58:48 1997 Gerd Moellmann <gerd@acm.org>
15945
15946 * xdisp.c (try_window): Set WINDOW_END_VPOS with window relative
15947 LAST_TEXT_VPOS.
15948
15949 * frame.c (set_menu_bar_lines): Adjust matrices.
15950
15951 * dispnew.c (set_cursor_to): Set cursor position.
15952
15953 * minibuf.c (read_minibuf): Build frame matrix.
15954
15955 * xdisp.c (this_line_start_hpos): Renamed to
d7d0dac0
SM
15956 THIS_LINE_START_WINDOW_HPOS to make it clear that this is window
15957 relative.
26901792
DL
15958 (this_line_vpos): Renamed to THIS_LINE_WINDOW_VPOS for the same
15959 reason.
15960
427ec082 15961 * dispnew.c (build_frame_matrix): Don't clear rows of the
26901792
DL
15962 menu bar.
15963 (clear_window_records): Clear window rows.
15964 (clear_frame_records): Clear window and frame rows.
15965 (clear_glyph_matrix): Set all rows of a matrix to empty.
15966
d7d0dac0
SM
15967 * xdisp.c (echo_area_display): Parameter UPDATE_FRAME_P.
15968 Update frame if set.
26901792
DL
15969 (message2_nolog): Pass 1 to ECHO_AREA_DISPLAY. UPDATE_FRAME
15970 removed.
15971 (redisplay_internal): Pass 0 to ECHO_AREA_DISPLAY.
15972 (redisplay_internal): Build frame matrix before UPDATE_FRAME.
15973
15974 * dispnew.c (assign_row): Assign one glyph row to another.
15975 (mirrored_make_current): Use it.
15976 (mirror_make_current): Use it.
15977 (update_line): Rely on MIRRORED_MAKE_CURRENT to set flags and
15978 used counters for the current glyph row.
427ec082 15979
26901792
DL
15980
15981Fri Jul 11 13:16:50 1997 Gerd Moellmann <gerd@acm.org>
15982
15983 * lisp.h: Prototype for SCAN_BUFFER.
15984
15985 * xdisp.c (redisplay_windows): Simplified.
15986
15987 * dispnew.c (window_to_frame_vpos): Convert window to frame vpos
15988 with debug checks.
15989 (window_to_frame_hpos): Convert window to frame hpos with checks.
15990 (frame_to_window_vpos): Convert frame to window vpos with checks.
15991 (frame_to_window_hpos): Convert frame to window hpos with checks.
15992
15993 * dispextern.h: PRESERVE_OTHER_COLUMNS removed.
15994
15995 * dispnew.c: PRESERVE_OTHER_COLUMNS removed.
15996
15997 * xdisp.c (redisplay_internal): Another instance of
15998 DISPLAY_TEXT_LINE with window relative VPOS.
15999 (redisplay_internal): Remove PRESERVE_OTHER_COLUMNS.
16000
16001 * dispnew.c (init_desired_glyphs): Do it on window matrices,
16002 only.
16003
16004 * xdisp.c (try_window_id): Use CANCEL_WINDOW_LINE.
16005 (redisplay_internal): Ditto.
16006
16007 * dispnew.c (cancel_window_line): Use window matrix. Changed
16008 name to CANCEL_WINDOW_LINE.
16009
16010 * xdisp.c (try_window_id): Use DISPLAY_TEXT_LINE with window
16011 relative VPOS.
16012
427ec082
SS
16013 * dispextern.h (WINDOW_TO_FRAME_VPOS): Convert window vpos
16014 to frame vpos.
26901792
DL
16015 (WINDOW_TO_FRAME_HPOS): Convert window hpos to frame hpos.
16016 (FRAME_TO_WINDOW_VPOS): Convert frame vpos to window vpos.
16017 (FRAME_TO_WINDOW_HPOS): Convert frame hpos to window hpos.
16018
16019 * xdisp.c (try_window_id): Use ADJUST_WINDOW_CHARSTARTS with
16020 window relative VPOS.
16021 (redisplay_internal): Use ADJUST_WINDOW_CHARSTARTS with window
16022 relative VPOS.
16023
16024 * dispnew.c (adjust_window_charstarts): Use INCREMENT_GLYPH_-
16025 MATRIX_BUFFER_POSITIONS.
16026
16027 * xdisp.c (try_window_id): Use SCROLL_FULL_WIDTH_WINDOW.
16028
16029 * dispextern.h: Prototype for SCROLL_FULL_WIDTH_WINDOW.
16030
427ec082 16031 * dispnew.c (scroll_frame_lines): Make it work on window
26901792
DL
16032 matrix. Change name to scroll_full_width_window.
16033
16034 * xdisp.c (message2_nolog): Don't fwrite NULL message If
d7d0dac0 16035 NONINTERACTIVE.
26901792
DL
16036
16037Mon Jul 7 14:44:38 1997 Gerd Moellmann <gerd@acm.org>
16038
16039 * dispnew.c (init_desired_glyphs): Clear both frame matrix
427ec082 16040 and window matrices.
26901792
DL
16041 (adjust_window_charstarts): Use window matrix.
16042 (cancel_my_columns): Use window matrix.
16043 (direct_output_for_insert): Use window matrix, only.
16044
16045 * xdisp.c (display_glyphs): Extracted code from DISPLAY_STRING.
16046 (display_string): Call display_glyphs.
16047 (display_menu_bar_string): Display a string in a menu bar line.
16048 (display_menu_bar): Use DISPLAY_MENU_BAR_STRING.
16049 (display_text_line): Use window matrix.
16050 (try_window): Use window relative positions.
16051
16052Sun Jul 6 17:02:26 1997 Gerd Moellmann <gerd@acm.org>
16053
16054 * dispnew.c (adjust_frame_glyphs): Allocate window matrices from
d7d0dac0 16055 (0, 0).
26901792 16056 (allocate_leaf_matrix): Add FRAME_MENU_BAR_LINES to the height of
d7d0dac0 16057 top-most windows.
26901792
DL
16058
16059 * window.h (WINDOW_TOPMOST_P): Added.
16060
16061 * xdisp.c (echo_area_display): Use PREPARE_DESIRED_ROW.
16062 (redisplay_window): Ditto.
16063 (display_text_line): Ditto.
16064 (display_menu_bar): Ditto.
16065 (display_mode_line): Ditto.
16066 (display_mode_line): Use window matrix.
16067 (display_string): Use window matrix.
16068 (display_mode_element): Ditto.
16069 (echo_area_display): Don't display if frame has no pools yet.
16070 (echo_area_display): Work with window matrix for mini window.
16071 (redisplay_window): Use window marix for mini window.
16072 (display_text_line): Assume HPOS and VPOS are window relative and
d7d0dac0 16073 use that for DISPLAY_STRING.
26901792
DL
16074
16075 * dispextern.h: Prototype for prepare_desired_row.
16076
d7d0dac0 16077 * dispnew.c (prepare_desired_row): Replacement for GET_DISPLAY_LINE.
26901792
DL
16078
16079 * dispnew.c (adjust_window_charstarts): Always allocate window
16080 matrices.
16081 (clear_glyph_row): Only reset used counters and flags.
16082
16083Sat Jul 5 14:55:44 1997 Gerd Moellmann <gerd@acm.org>
16084
16085 * dispnew.c (scroll_frame_lines): Don't assume first scolled
427ec082 16086 line is non-empty.
26901792
DL
16087 (realloc_glyph_pool): Don't add 1 to the pool size.
16088 (adjust_glyph_matrix): Don't add 1 to pointers to glyph areas.
16089
16090 * dispnew.c (line_hash_code): Don't use null-glyph end marker.
16091 (line_draw_cost): Ditto.
16092 (update_line): Ditto.
16093 (update_line): Use SPACE_GLYPH.
16094 (count_blanks): Additional parameter LEN.
16095
16096 * xdisp.c (display_text_line): Use SPACE_GLYPH.
16097 (display_text_line): Don't add null-glyph end marker.
16098 (display_string): Use SPACE_GLYPH.
16099 (display_string): Don't use null-glyph end marker.
16100
16101 * term.c (clear_end_of_line): Use SPACE_GLYPH.
16102
16103 * dispnew.c (clear_glyph_row): Don't use null-glyph end markers.
16104 (fill_up_glyph_row_with_spaces): Ditto.
16105 (preserve_other_columns): Add SPACE_GLYPH at then end of desired
16106 rows, instead of null-glyphs.
16107 (direct_output_for_insert): Don't add null-glyph end marker.
16108
16109 * scroll.c (do_direct_scrolling): Change algorithm to construct
d7d0dac0 16110 vector of lines assigned. Call MIRRORED_LINE_DANCE:
26901792
DL
16111 (do_scrolling): Ditto.
16112
16113 * dispnew.c (mirror_line_dance): Mirror line assignments in a
d7d0dac0 16114 frame matrix in window matrices.
26901792 16115 (mirrored_line_dance): Do line assignments during scrolling.
d7d0dac0 16116 Maybe do corresponding assignments in window matrices.
26901792 16117 (check_window_matrix_pointers): Check that window rows and frame
d7d0dac0 16118 rows agree about glyph pointers.
26901792
DL
16119 (check_matrix_pointers): Ditto.
16120 (mirrored_make_current): Make a row of a desired matrix current;
d7d0dac0 16121 maybe mirror the operation in window matrices.
26901792 16122 (mirror_make_current): Make window desired matrix row current when
d7d0dac0 16123 frame matrix row was made current.
26901792
DL
16124
16125Fri Jul 4 13:27:46 1997 Gerd Moellmann <gerd@acm.org>
16126
16127 * dispnew.c (check_matrix_pointer_lossage): Check against
16128 pointer lossage in matrices.
16129 (get_glyph_matrix_row): Removed.
16130
16131 * scroll.c (do_scrolling): Simplified.
16132 (do_direct_scrolling): Simplified.
16133 (scrolling_1): Pass CURRENT_MATRIX instead of FRAME to
d7d0dac0 16134 DO_.*SCROLLING.
427ec082 16135
26901792
DL
16136
16137 * dispnew.c (ins_del_glyph_rows): Insert/delete rows in a matrix.
16138 (rotate_vector): Removed.
16139 (rotate_pointers): Removed.
16140 (scroll_frame_lines): Simplified.
16141
16142Thu Jul 3 13:54:21 1997 Gerd Moellmann <gerd@acm.org>
16143
16144 * dispextern.h (MATRIX_ROW_SWAP_CONTENTS): Removed.
16145
16146 * dispnew.c (increment_glyph_matrix_buffer_positions): Does
16147 what the name says.
16148 (clear_glyph_row): Make a glyph row structure empty.
16149 (make_matrix_row_current): Make a glyph row current.
16150 (make_window_matrix_row_current): Perform analogous row swaps
16151 for window matrices.
16152 (update_line): Call make_matrix_row_current.
16153
16154Wed Jul 2 13:43:35 1997 Gerd Moellmann <gerd@acm.org>
16155
16156 * dispextern.h (SET_MATRIX_ROW_ENABLED_P): Better macro name.
16157 (SET_MATRIX_ROW_INVERSE_P): Better name and HIGHLIGHT_P ->
16158 INVERSE_P.
16159 (MATRIX_ROW_INVERSE_P): Former MATRIX_ROW_HIGHLIGHT_P.
16160 (struct glyph_row): HIGHLIGHT_P -> INVERSE_P
16161
16162 * all files: use above new names.
16163
16164 * dispnew.c (scroll_frame_lines): Simplified. Use
d7d0dac0 16165 SCROLL_GLYPH_MATRIX.
26901792 16166 (make_glyph_row_empty): Mark a glyph row empty.
427ec082 16167 (increment_glyph_row_buffer_positions): Increment
26901792
DL
16168 buffer positions in a glyph row.
16169 (increment_glyph_matrix_buffer_positions): Increment buffer
16170 positions in a range of rows.
16171 (scroll_glyph_matrix): Scroll a glyph matrix.
16172 (swap_glyphs_in_rows): Swap glyphs between rows.
16173 (swap_glyph_pointers): Swap pointers between rows.
16174 (glyph_row_slice_p): Return 1 if one row is a slice of another.
16175 (init_display): Initialize SPACE_GLYPH.
16176 (fill_up_glyph_row_areas_with_spaces): Fill up areas with
427ec082 16177 spaces.
26901792
DL
16178
16179Tue Jul 1 13:49:55 1997 Gerd Moellmann <gerd@acm.org>
16180
16181 * xterm.c (dumprectangle): Use vectors in glyph rows.
16182
16183 * xdisp.c (display_text_line): Use vectors in glyph rows.
16184 (display_string): Ditto.
16185
16186 * scroll.c (do_scrolling): Use vectors in glyph rows.
16187 (do_direct_scrolling): Ditto.
16188
16189 * alloc.c (mark_object): Use vectors in glyph rows.
16190 Mark for all frame types.
16191
16192 * dispnew.c (adjust_glyph_matrix): Use vectors to glyphs in
16193 glyph rows.
16194 (get_glyph_matrix_row): Ditto.
16195 (matrix_row): Ditto.
16196 (rotate_pointers): Ditto.
16197 (scroll_frame_lines): Ditto.
16198 (preserve_other_columns): Ditto.
16199 (cancel_my_columns): Ditto.
16200 (update_line): Ditto.
16201 (direct_output_for_insert): Ditto.
16202
16203 * dispextern.h (struct glyph_row): Use a vector of pointers
d7d0dac0 16204 instead of individual members. Use a vector of used counters.
26901792
DL
16205 (MATRIX_ROW_SWAP_CONTENTS): Use vectors.
16206 (MATRIX_ROW_GLYPH_START): Ditto.
16207 (MATRIX_ROW_GLYPH_END): Ditto.
16208 (MATRIX_ROW_USED): Ditto.
16209 (MATRIX_ROW_SET_USED): Ditto.
16210
16211 * dispnew.c (line_hash_code): Simplified.
16212
16213Mon Jun 30 20:39:38 1997 Gerd Moellmann <gerd@acm.org>
16214
16215 * dispnew.c: Prototype for ROTATE_VECTOR, ROTATE_POINTERS,
16216 CHANGE_FRAME_SIZE_1
16217 (preserve_other_columns): Void return.
16218 (cancel_my_columns): Void return type.
16219 (scrolling): Int return type.
16220 (do_pending_window_change): Void return type.
16221 (change_frame_size): Ditto.
16222 (bitch_at_user): Ditto.
16223 (init_display): Ditto.
16224 (syms_of_display): Ditto.
16225
16226 * dispextern.h: add prototypes for REDRAW_FRAME,
d7d0dac0
SM
16227 REDRAW_GARBAGED_FRAMES, CANCEL_LINE, CLEAR_FRAME_RECORDS,
16228 INIT_DESIRED_GLYPHS, SCROLL_FRAME_LINES, PRESERVE_OTHER_COLUMNS,
16229 ADJUST_WINDOW_CHARSTARTS, CANCEL_MY_COLUMNS,
16230 DIRECT_OUTPUT_FOR_INSERT, DIRECT_OUTPUT_FORWARD_CHAR,
16231 UPDATE_FRAME, SCROLLING, BUFFER_POSN_FROM_COORDS,
16232 DO_PENDING_WINDOW_CHANGE, CHANGE_FRAME_SIZE, BITCH_AT_USER,
26901792 16233 SIT_FOR, INIT_DISPLAY, SYMS_OF_DISPLAY,
427ec082 16234
26901792 16235 * dispnew.c (redraw_frame): FRAME_PTR -> struct frame. Return
d7d0dac0 16236 void.
26901792
DL
16237 (cancel_line): Return void.
16238 (clear_frame_records): Return void.
427ec082 16239
26901792
DL
16240 * dispextern.h (struct glyph): Remove GLYPH, add bit-fields.
16241 (SET_CHAR_GLYPH): Fill a character glyph.
16242 (SET_CHAR_GLYPH_FROM_GLYPH): Set a character glyph from a GLYPH.
16243 (GLYPH_FROM_CHAR_GLYPH): Construct a GLYPH from a character
427ec082 16244 glyph.
26901792
DL
16245 (CHAR_GLYPH_CHAR_CODE): Return character code of a glyph.
16246 (SET_CHAR_GLYPH_CHAR_CODE): Set character code of a glyph.
16247 (CHAR_GLYPH_FACE_ID): Return face id of a glyph.
16248 (SET_CHAR_GLYPH_FACE_ID): Set face id of a glyph.
16249 (CHAR_GLYPH_PADDING_P): Return padding flag of a glyph.
16250 (SET_CHAR_GLYPH_PADDING_P): Set padding flag.
16251 (CHAR_GLYPH_REVERSE_P): Return reversed flag.
16252 (SET_CHAR_GLYPH_REVERSE_P): Set reversed flag.
16253 (MATRIX_ROW_SWAP_CONTENTS): Swap pointers between rows.
16254
16255 * term.c (reassert_line_highlight): Check CHARS_WASTED == 0.
16256
16257 * window.h (struct window): Add comment that no Lisp data may
d7d0dac0 16258 come below CURRENT_MATRIX.
26901792
DL
16259
16260 * alloc.c (mark_object): Change window mark code to stop with
d7d0dac0 16261 member CURRENT_MATRIX.
26901792
DL
16262
16263Sat Jun 28 13:54:55 1997 Gerd Moellmann <gerd@acm.org>
16264
16265 * scroll.c (do_scrolling): Change algorithm to use pointers.
16266 (do_direct_scrolling): Ditto.
16267
16268 * dispnew.c (get_glyph_matrix_row): Use pointers stored in rows.
16269 (new_glyph_pool): Formerly new_FRAME_GLYPH_MATRIX.
16270 (free_glyph_pool): Formerly FREE_FRAME_GLYPH_MATRIX
16271 (realloc_glyph_pool): Formerly REALLOC_FRAME_GLYPH_MATRIX.
d7d0dac0 16272 Returns 1 if pool changed.
26901792
DL
16273 (matrix_row): Additional check for lost pointers to glyph rows.
16274 (compute_matrices): Additional parameter DIM_P set means that no
d7d0dac0
SM
16275 allocation should take place. Addtional parameter
16276 ANY_WINDOWS_CHANGED_P set if any windows matrix has changed.
26901792 16277 (compute_leaf_matrix): Additional parameter CHANGED_P set to 1
d7d0dac0
SM
16278 when window matrix changes. Additional parameter DIM_ONLY_P set
16279 to 1 to indicate that no allocation should take place.
26901792 16280 (adjust_frame_glyphs): Construct new glyph pools and glyph
d7d0dac0 16281 matrices. Optimize frame redraws.
26901792
DL
16282 (free_glyphs): Free pools.
16283 (check_glyph_memory): Check pools not freed.
16284 (rotate_pointers): Rotate pointers in a vector of glyph rows.
16285 (scroll_frame_lines): Change algorithm to use pointers.
16286 (update_line): Ditto.
16287
16288 * dispextern.h (struct glyph_row): Use pointers to areas in a row.
16289 (global): All macro names changed from prefix FRAME_MATRIX to
d7d0dac0 16290 MATRIX.
26901792
DL
16291
16292Fri Jun 27 14:51:15 1997 Gerd Moellmann <gerd@acm.org>
16293
16294 * dispextern.h (struct glyph_pool): Replacement for former
16295 FRAME_GLYPH_MATRIX.
16296 (struct glyph_matrix): No longer contains sizes of allocated
16297 areas.
16298
16299 * xdisp.c (redisplay_internal): Don't redisplay if frame has
16300 no glyph pools.
16301
16302 * frame.c (make_frame): Initialize pools.
16303
16304Thu Jun 26 00:00:55 1997 Gerd Moellmann <gerd@acm.org>
16305
427ec082 16306 * scroll.c (do_direct_scrolling): Don't assume that the
26901792
DL
16307 line moving algorithm has no intermediate steps.
16308 (do_scrolling): Ditto.
16309
16310 * Makefile.in (alloc.o): Add dependency dispextern.h.
16311
16312 * alloc.c: Include dispextern.h for glyph definitions.
16313
16314 * dispnew.c (get_glyph_matrix_row): Return 1 if ROW_INDEX
16315 is legal, return 0 otherwise.
16316
16317 * window.h: Add comment that windows are marked specially.
16318
16319 * alloc.c (mark_object): Mark windows specially.
16320
16321
16322Wed Jun 25 15:22:58 1997 Gerd Moellmann <gerd@acm.org>
16323
16324 * dispextern.h (struct glyph): Add member OBJECT
16325 referencing a Lisp object from which a glyph was drawn.
16326 Member TEXT_POSITION renamed POSITION.
16327 * xterm.c, xdisp.c, dispnew.c: Rename TEXT_POSITION -> POSITION.
16328
16329 * alloc.c: Include dispextern.h
16330 (mark_object): Mark objects referenced from glyphs.
16331
f28eba7b 16332 * frame.c (make_frame): Initialize DECODE_MODE_SPEC_BUFFER.
26901792
DL
16333
16334 * scroll.c (do_direct_scrolling): Remove TEMP_MATRIX.
16335 (do_scrolling): Ditto.
16336
427ec082 16337 * frame.h (struct frame): TEMP_MATRIX removed.
26901792
DL
16338 DECODE_MODE_SPEC_BUFFER added.
16339
16340 * window.h: TEMP_MATRIX removed.
16341
16342 * scroll.c: OPHYS_LINES removed.
16343
16344 * dispnew.c: OPHYS_LINES and OPHYS_LINES_LENGTH removed.
16345 FRAME_PTR -> struct frame *.
16346
16347 * termhooks.h: Prototypes for INSERT_GLYPHS_HOOK,
16348 WRITE_GLYPHS_HOOK, DELETE_GLYPHS_HOOK,
16349
16350 * term.c: Prototypes for INSERT_GLYPHS_HOOK,
16351 WRITE_GLYPHS_HOOK, DELETE_GLYPHS_HOOK,
16352
16353 * xdisp.c (redisplay_internal): Remove call to VERIFY_CHARSTARTS.
16354 (do_verify_charstarts): Removed.
16355
16356 * frame.c (Fmake_terminal_frame): Adjust glyphs.
16357 (Fdelete_frame): Free glyphs.
16358 (make_frame): Initialize matrix fields in frame.
16359
f28eba7b 16360 * config.in (PROTO): Added.
26901792 16361
f28eba7b 16362 * emacs.c (shut_down_emacs): Check glyph memory.
26901792
DL
16363
16364 * window.c (Fdelete_window): Free window matrices.
16365 (Fset_window_configuration): Ditto.
16366 (Fdelete_window): Adjust glyphs.
16367 (Fsplit_window): Ditto.
16368 (change_window_height): Ditto.
16369 (Fset_window_configuration): Ditto.
16370 (make_window): Initialize DESIRED_MATRIX and CURRENT_MATRIX.
16371 (replace_window): Reset DESIRED_MATRIX and CURRENT_MATRIX
16372
16373 * Makefile.in (window.o): Add dependency window.c -> dispextern.h
16374
16375 * window.c: Include dispextern.h
16376
16377 * scroll.c (do_scrolling): Use new glyphs.
16378 (do_direct_scrolling): Ditto.
16379
16380 * xdisp.c: Some function prototypes.
16381 (redisplay_internal): Don't do anything if matrices not yet set.
16382 (redisplay_internal): Use new glyphs.
16383 (try_window_id): Ditto.
16384 (copy_part_of_rope): Ditto.
16385 (display_text_line): Ditto.
16386 (display_menu_bar): Ditto.
16387 (display_mode_line): Ditto.
16388 (display_string): Ditto.
16389
16390 * xterm.c: Prototypes for some local functions.
16391 (dumpglyphs): Use new glyphs.
16392 (XTwrite_glyphs): Ditto.
16393 (dumprectangle): Ditto.
16394 (note_mouse_highlight): Ditto.
16395 (fast_find_position): Ditto.
16396 (show_mouse_face): Ditto.
16397 (x_draw_single_glyph): Ditto.
16398 (x_display_bar_cursor): Ditto.
16399 (x_display_box_cursor): Ditto.
16400 (x_new_font): Adjust glyphs when font change.
16401
16402 * term.c (clear_end_of_line): Use new glyphs.
16403 (write_glyphs): Ditto.
16404 (insert_glyphs): Ditto.
16405
16406 * Makefile.in (term.o): term.c depends on dispextern.h
16407
16408 * term.c: Include dispextern.h
16409
16410 * dispnew.c (direct_output_forward_char): Old glyph functions
427ec082 16411 removed, new inserted.
26901792
DL
16412 (line_hash_code): Use new glyphs.
16413 (line_draw_cost): Ditto
16414 (cancel_line): Ditto
16415 (clear_frame_records): Ditto.
16416 (init_desired_glyphs): Ditto.
16417 (get_display_line): Ditto
16418 (scroll_frame_lines): Ditto.
16419 (preserve_other_columns): Ditto.
16420 (adjust_window_charstarts): Ditto.
16421 (cancel_my_columns): Ditto.
16422 (direct_output_for_insert): Ditto.
16423 (update_frame): Ditto.
16424 (quit_error_check): Made empty.
16425 (scrolling): Use new glyphs.
16426 (count_blanks): Ditto.
16427 (count_match): Ditto.
16428 (update_line): Ditto.
16429 (init_display): Adjust glyphs initially.
16430 (change_frame_size_1): Adjust glyphs.
16431
16432 * dispextern.h: Old glyphs removed, new added.
16433
16434 * xfaces.c (min_char_bounds): Get smallest char in loaded fonts.
16435
16436 * xterm.h: Prototype for min_char_bounds.
16437
16438 * window.h (struct window): Remove old glyphs, add new.
16439
16440 * frame.h (struct frame): Remove old glyphs, add new.
427ec082 16441
26901792
DL
164421999-07-20 Dave Love <fx@gnu.org>
16443
16444 * buffer.c (syms_of_buffer): Make
16445 default-enable-multibyte-characters a user variable.
16446
164471999-07-14 Richard Stallman <rms@gnu.org>
16448
16449 * Version 20.4 released.
16450
164511999-07-14 Richard Stallman <rms@gnu.org>
16452
16453 * filelock.c (lock_file): Do nothing if purifying.
16454
164551999-07-10 Richard Stallman <rms@gnu.org>
16456
16457 * xterm.c (x_display_bar_cursor): Use the cursor-color
16458 to display the bar, not the cursor foreground pixel.
16459
164601999-07-09 Andrew Innes <andrewi@gnu.org>
16461
16462 * w32console.c (w32_use_full_screen_buffer): New variable.
16463 (syms_of_ntterm): Register it.
16464 (initialize_w32_display): Set initial frame size accordingly,
16465 respecting the LINES and COLUMNS environment variables if set.
16466
16467 * w32inevt.c (w32_console_read_socket): Use it.
16468
164691999-07-07 Kenichi Handa <handa@etl.go.jp>
16470
16471 * callproc.c (Fcall_process): Decide coding system for decoding
16472 after we set to the target buffer. If the output goes to a
16473 unibyte buffer, suppress character code conversion.
16474
16475 * fileio.c (Finsert_file_contents): If reading into a unibyte
16476 buffer, suppress character code conversion.
16477
16478 * process.c (create_process): If the output goes to a unibyte
16479 buffer, suppress character code conversion.p
16480
164811999-07-07 Andreas Schwab <schwab@gnu.org>
16482
16483 * xdisp.c (line-number-display-limit): Doc fix.
16484
164851999-07-05 Richard Stallman <rms@gnu.org>
16486
16487 * callproc.c (Fcall_process): Don't use initializer on coding_systems.
16488 (Fcall_process_region): Likewise.
16489
164901999-07-01 Markus Rost <markus.rost@mathematik.uni-regensburg.de>
16491
16492 * callproc.c (init_callproc): Set exec_directory if
16493 installation_directory is non-nil, without a test of exec_path.
16494
164951999-07-01 Andrew Innes <andrewi@gnu.org>
16496
16497 * w32xfns.c (drain_message_queue): New function.
16498
16499 * w32term.h (drain_message_queue): Add extern.
16500
16501 * w32proc.c (sys_select): Call MsgWaitForMultipleObjects instead
16502 of WaitForMultipleObjects when user input is allowed, so we can
16503 handle incoming window messages. Call drain_message_queue when
16504 there are messages waiting; this ensures that windows created
16505 indirectly from the lisp thread get processed properly, and don't
16506 hang other applications by failing to respond to broadcasts.
16507
165081999-07-01 Andreas Schwab <schwab@gnu.org>
16509
16510 * callint.c (Fcall_interactively): Ignore first element of
16511 event-symbol-elements property.
16512
165131999-07-01 Richard Stallman <rms@gnu.org>
16514
16515 * fileio.c (Fread_file_name): Check type of DEFAULT_FILENAME.
16516
165171999-07-01 Kenichi Handa <handa@etl.go.jp>
16518
16519 * minibuf.c (read_minibuf): Set the multibyteness of the
16520 minibuffer before inserting `initial' string.
16521
165221999-06-30 Richard Stallman <rms@gnu.org>
16523
16524 * xfns.c (x_make_gc): Turn off GCStipple when setting up cursor_gc.
16525
165261999-06-29 Richard M. Stallman <rms@gnu.org>
16527
16528 * emacs.c [DOUG_LEA_MALLOC] (malloc_initialize_hook):
16529 Move the handling of MALLOC_CHECK_ envvar here.
16530 (main): Moved from here.
16531
165321999-06-29 Wolfram Gloger <wmglo@dent.med.uni-muenchen.de>
16533
16534 * emacs.c [DOUG_LEA_MALLOC] (malloc_initialize_hook): New
16535 function, assigned to the global __malloc_initialize_hook pointer.
16536 (main): Move malloc_set_state call into malloc_initialize_hook
16537 so that it happens as early as possible.
16538
165391999-06-27 Richard M. Stallman <rms@gnu.org>
16540
16541 * keyboard.c (read_key_sequence): Properly reinitialize
16542 fkey_map after translating thru Vkey_translation_map.
16543 After translating thru Vfunction_key_map, don't reset
16544 keytrans-start to 0.
16545
165461999-06-24 Geoff Voelker <voelker@cs.washington.edu>
16547
16548 * w32.c (get_emacs_configuration): Use GetVersionEx to
16549 handle NT5.0 correctly. Include build number in configuration.
16550 w32heap.c (osinfo_cache): New variable.
16551 (cache_system_info): Initialize osinfo_cache.
16552 w32heap.h (osinfo_cache): Declare.
16553
165541999-06-24 Richard M. Stallman <rms@gnu.org>
16555
16556 * casefiddle.c (casify_object): Use make_multibyte_string
16557 if we casify a multibyte string.
16558
165591999-06-22 Ken'ichi Handa <handa@gnu.org>
16560
16561 * fileio.c: (Finsert_file_contents): In the case of REPLACE, call
16562 del_range_byte instead of del_range_1, set `inserted' to the
16563 number of characters actually inserted.
16564
165651999-06-17 Dave Love <fx@gnu.org>
16566
16567 * coding.c (decode_coding_sjis_big5): Avoid compiler warning.
16568
165691999-06-18 Paul Eggert <eggert@twinsun.com>
16570
16571 * filelock.c (BOOT_TIME_FILE): New macro.
16572 (get_boot_time): Use it instead of hardwiring the file name.
16573 Check BOOT_TIME_FILE only after inspecting the kernel directly.
16574
165751999-06-17 Dave Love <fx@gnu.org>
16576
16577 * xdisp.c (invalid_eol_type): Make it unsigned.
16578
165791999-06-17 Karl Heuer <kwzh@gnu.org>
16580
16581 * process.c (send_process): Delete unsafe/redundant assignment.
16582
165831999-06-17 Jason Rumney <jasonr@gnu.org>
16584
16585 * w32term.c (dumprectangle): Handle wide characters properly.
16586
165871999-06-16 Andrew Innes <andrewi@gnu.org>
16588
16589 * s/ms-w32.h (strerror): Override the default implementation of
16590 strerror, so we can map winsock error codes.
16591
16592 * w32.c (sys_strerror): New function.
16593
16594 * w32fns.c (w32_to_x_weight): Return "demibold" instead of "semibold".
16595
165961999-06-15 Ken'ichi Handa <handa@gnu.org>
16597
16598 * buffer.c (syms_of_buffer): Don't make
16599 enable-multibyte-characters customizable.
16600
166011999-06-15 Richard M. Stallman <rms@gnu.org>
16602
16603 * editfns.c (Fuser_full_name): Doc fix.
16604
166051999-06-14 Tak Ota <ota@atc.sel.sony.com>
16606
16607 * w32bdf.c: (clear_cached_bitmap_slots): Remove.
16608 (get_bitmap_with_cache): Check if CreateBitmap failed.
16609 Adjust cache size dynamically so cache is never larger than the
16610 system limit of GDI resources.
16611 Do cache clearing inline. Move global variables to local scope.
16612
16613
166141999-06-13 Wolfgang Glas <Wolfgang.Glas@hfm.tu-graz.ac.at>
16615
16616 * unexsgi.c (unexec): Dump the .rodata section from memory
16617 under IRIX6.5 in order to be able to unexec with gcc.
16618
166191999-06-11 Greg Hudson <ghudson@MIT.EDU>
16620
16621 * indent.c (compute_motion): Fix boundary case.
16622
166231999-06-11 Jason Rumney <jasonr@altavista.net>
16624
16625 * w32term.c (cancel_mouse_face): New function. See equiv
16626 changes to xterm.c on 1996-10-31.
16627 (x_set_window_size): Use cancel_mouse_face.
d7d0dac0
SM
16628 (w32_read_socket): Use cancel_mouse_face.
16629 Update frame position when size is restored.
26901792
DL
16630
166311999-06-04 Richard M. Stallman <rms@gnu.org>
16632
16633 * lread.c (Vuser_init_file): New variable.
16634 (syms_of_lread): Set up Lisp variable.
16635 (Fload): Store the file name there, if var was t before.
16636
166371999-06-04 Paul Eggert <eggert@twinsun.com>
16638
16639 * filelock.c (get_boot_time): Don't look at /proc/uptime; it
16640 doesn't work if the system date is changed, or if the system
16641 is suspended. Look at the last-modified time of
16642 /var/run/random-seed instead.
16643
166441999-06-03 Ken'ichi Handa <handa@gnu.org>
16645
16646 * coding.c (ENCODE_SJIS_BIG5_CHARACTER): Encode charset
16647 japanese-jisx0208-1978 correctly.
16648
166491999-06-03 Andrew Innes <andrewi@gnu.org>
16650
16651 * unexw32.c (get_section_info) [_ALPHA_]: Force as much bss data
16652 as possible to be dumped, for safety.
16653
166541999-06-02 Ken'ichi Handa <handa@gnu.org>
16655
16656 * coding.c (ENCODE_SJIS_BIG5_CHARACTER): Encode charset
16657 latin-jisx0201 correctly.
16658
166591999-05-26 Ken'ichi Handa <handa@gnu.org>
16660
16661 * charset.h (Vcharset_table): Comment fixed.
16662
166631999-05-24 Richard Stallman <rms@gnu.org>
16664
16665 * coding.c (syms_of_coding): Doc fix.
16666
16667 * buffer.c (syms_of_buffer): Doc fix.
16668
16669 * filelock.c (lock_if_free): After deleting a stale lock,
16670 try again to lock the file.
16671
166721999-05-22 Andrew Innes <andrewi@gnu.org>
16673
16674 * w32inevt.c (maybe_generate_resize_event): Detect changes in the
16675 console window size.
16676 (w32_console_read_socket): Call maybe_generate_resize_event
16677 whenever input events are received, since we don't get told when
16678 the window size changes (as opposed to the buffer size, which we
16679 don't care about).
16680
16681 * w32console.c (clear_frame): Remember that the window width might
16682 be smaller than the screen buffer width.
16683 (write_glyphs): Remove redundant variable attrs. Use
16684 FillConsoleOutputAttribute instead of WriteConsoleOutputAttribute.
16685
166861999-05-20 Andrew Innes <andrewi@gnu.org>
16687
16688 * w32term.c (w32_read_socket): Reset the grabbed flag when a frame gains or
16689 loses focus.
16690
16691 * w32fns.c (w32_wnd_proc): Ensure mouse capture is released if
16692 frame loses focus, and that mouse button state is reset. Ditto
16693 when the menu bar is activated.
16694
166951999-05-18 Richard Stallman <rms@gnu.org>
16696
16697 * abbrev.c (Fdefine_abbrev): Doc fix.
16698
166991999-05-13 Paul Eggert <eggert@twinsun.com>
16700
16701 * filelock.c: Fix performance bug on hosts with large
16702 /var/adm/wtmp files with no boot records.
16703
16704 (boot_time_initialized): New var.
16705 (init_filelock): Initialize it.
16706 (get_boot_time): Use it, instead of nonzero boot_time,
16707 to test whether boot_time is initialized.
16708 Don't invoke utmp routines when dumping.
16709
16710 (get_boot_time): First, try to get the boot time from the
16711 current utmp file, as this can be much faster. Don't try to
16712 get the boot time from utmp and/or wtmp more than once.
16713
16714 (get_boot_time_1): When passed null pointer, don't invoke utmpname.
16715 New arg LATEST. All uses changed.
16716
167171999-05-15 Andrew Innes <andrewi@gnu.org>
16718
16719 * w32term.c (dumpglyphs): Use correct colours for drawing
16720 rectangles in place of missing fonts, and make them the right
16721 size.
16722
167231999-05-14 Dave Love <fx@gnu.org>
16724
16725 * syntax.c (Fparse_partial_sexp): Correct test for element 8 to be
16726 non-nil.
16727
167281999-05-11 Andrew Innes <andrewi@gnu.org>
16729
16730 * w32fns.c (x_to_w32_charset): Reinstall VIETNAMESE_CHARSET
16731 definition.
16732 (w32_wnd_proc): Reinstall debugging output.
16733 (w32_wnd_proc): Reinstall SetForegroundWindow change.
16734 (syms_of_w32fns): Reinstall new initializer for
16735 Vw32_phantom_key_code.
16736
16737 * w32fns.c (x_to_w32_charset): Do partial matching of charset
16738 names for most non-European charsets, to cope with wildcards or
16739 missing spec dates.
16740 (Fw32_send_sys_command): Post WM_SYSCOMMAND rather than sending it
16741 to avoid deadlock when activating the menu bar.
16742
167431999-05-10 Ken'ichi Handa <handa@gnu.org>
16744
16745 * search.c (boyer_moore): Get charset base value of `untranslated'
16746 by masking by ~CHAR_FIELD3_MASK (instead of ~0xff).
16747
167481999-05-10 Andreas Schwab <schwab@gnu.org>
16749
16750 * fileio.c (Fread_file_name): Correct handling of dollars in file
16751 names. Protect dollars in strings put on the file-name-history.
16752 Substitute homedir by `~' also in default_filename.
16753
16754 * xdisp.c (try_window_id): Fix computation of tab_offset when
16755 backing up over a character that is splitted across lines.
16756
167571999-05-08 Kenichi HANDA <handa@etl.go.jp>
16758
16759 * coding.c (code_convert_region): If eol format is inconsistent,
16760 change coding->symbol to the sibling coding system of Unix like
16761 eol format.
16762
167631999-05-09 Richard M. Stallman <rms@gnu.org>
16764
16765 * s/irix5-2.h (NO_WTMP_FILE): Define it.
16766
16767 * filelock.c (get_boot_time): Handle NO_WTMP_FILE.
16768
167691999-05-05 Andrew Innes <andrewi@gnu.org>
16770
16771 * w32fns.c (w32_strict_painting): New variable.
16772 (w32_wnd_proc): Use it to select repaint rules.
16773 (syms_of_w32fns): Defvar it.
16774
167751999-05-04 Andrew Innes <andrewi@gnu.org>
16776
16777 * w32fns.c (x_to_w32_charset): Fix typo: want to map all Japanese
16778 charsets to the standard Windows charset for Japanese.
16779
167801999-05-04 Ken'ichi Handa <handa@gnu.org>
16781
16782 * xterm.c (x_load_font): Fix typo (`>' -> `=').
16783
16784 * ccl.h (struct ccl_program): New member stack_idx.
16785
16786 * ccl.c (ccl_prog_stack_struct): Declare it as static.
16787 (ccl_driver): Setup stack_idx and ccl_prog correctly. Update them
16788 before returing.
16789 (setup_ccl_program): Initialize ccl->stack_idx to 0.
16790
167911999-05-03 Jason Rumney <jasonr@altavista.net>
16792
16793 * w32term.c (dumpglyphs): Always fill background for italic fonts.
16794
167951999-05-03 Eli Zaretskii <eliz@is.elta.co.il>
16796
16797 * dired.c (make_time): Make argument type be time_t.
16798
167991999-05-02 Eli Zaretskii <eliz@is.elta.co.il>
16800
16801 * msdos.c (unibyte_display_via_language_environment): Add extern.
16802
83c8f461 168031999-05-02 Richard M. Stallman <rms@gnu.org>
26901792
DL
16804
16805 * xdisp.c (display_text_line): Convert unibyte char to multibyte
16806 if unibyte_display_via_language_environment is set.
16807 (unibyte_display_via_language_environment):
16808 Variable moved from xfns.c and elsewhere.
16809 (syms_of_xfns): Set up Lisp var.
16810
16811 * xfns.c (unibyte_display_via_language_environment):
16812 Variable moved to xdisp.c.
16813 (syms_of_xfns): Don't set up Lisp var here.
16814
16815 * msdos.c (unibyte_display_via_language_environment):
16816 Variable moved to xdisp.c.
16817 (syms_of_msdos): Don't set up Lisp var here.
16818
16819 * w32fns.c (unibyte_display_via_language_environment):
16820 Variable moved to xdisp.c.
16821 (syms_of_w32fns): Don't set up Lisp var here.
16822
168231999-05-02 Andrew Innes <andrewi@gnu.org>
16824
16825 * s/ms-w32.h (HAVE_FSYNC): New macro.
16826 (fsync): Map to _commit.
16827 (ftruncate): Map to _chsize.
16828
16829 * w32term.c (dumpglyphs): On Windows NT, do output in Unicode even
16830 for ASCII, if enabled, to avoid memory allocation overhead for
16831 implicit Unicode conversion. Also, recognize that ASCII and
16832 Latin-1 have a trivial conversion to Unicode, so x_2byte_buffer
16833 already contains the Unicode characters in that case.
16834 (construct_drag_n_drop): Remove old code that was
16835 trashing the drop location.
16836
16837 * w32select.c (Fw32_set_clipboard_data): Undo last change to add
16838 nlines to encoding_buffer_size (real bug was in a ccl program in
16839 lisp/international/coding.el).
16840
16841 * w32reg.c (w32_get_string_resource): Check for name in current
16842 user area, and if not found look in the local machine area.
16843
16844 * w32fns.c (w32_list_bdf_fonts): Initialize n_fonts.
16845 (Fw32_shell_execute): New function; used to support browse-url.
16846 (syms_of_w32fns): Register it.
16847 (w32_load_system_font): Force max width to be average
16848 char width for fixed-pitch fonts, to avoid unnecessary redisplay
16849 slowdown.
16850 (x_to_w32_charset): Define VIETNAMESE_CHARSET if not
16851 already defined.
16852 (syms_of_w32fns): Set Vw32_phantom_key_code to 255.
16853
16854 * unexw32.c (get_section_info): Dump back the entire EMDATA
16855 section if we can put Emacs' initialized data in a separate
16856 section, otherwise use the my_begdata/my_edata method.
16857
16858 * makefile.nt ($(BLD)\w32term.obj): Add dependency on w32heap.h.
16859
16860 * coding.c (decode_eol): Set produced/consumed values to zero if
16861 src_bytes is <= 0 on entry.
16862
168631999-05-02 Jason Rumney <jasonr@altavista.net>
16864
16865 * w32term.c (w32_write_glyphs, w32_clear_end_of_line,
16866 w32_clear_frame, clear_cursor, x_display_bar_cursor,
16867 x_display_box_cursor, x_set_window_size): Use phys_cursor_on
16868 field in frame.
16869 (do_line_dance): Updated WRT xterm.c. Use macros where possible.
16870 (dumprectangle): Take into account the width of a left-side
16871 scroll bar.
16872
16873 * w32proc.c (sys_kill): Attach to current foreground thread
16874 when grabbing focus; necessary on NT 5.0.
16875
16876 * w32fns.c (w32_wnd_proc) [WM_PAINT]: Use rectangle from
16877 GetUpdateRect rather than BeginPaint.
16878 (w32_wnd_proc): Attach to current foreground thread
16879 when grabbing focus; necessary on NT 5.0.
16880 (w32_wnd_proc) [W32_DEBUG_DISPLAY]: Add output for
16881 debugging display messages.
16882 (w32_to_x_charset): Put wildcard last in unknown charsets to avoid
16883 false matching.
16884
168851999-05-02 Kenichi HANDA <handa@etl.go.jp>
16886
16887 * coding.c (setup_raw_text_coding_system): Call
16888 setup_coding_system to initialize the fields of struct
16889 coding_system correctly.
427ec082 16890
26901792
DL
168911999-04-26 Kenichi HANDA <handa@etl.go.jp>
16892
16893 * xterm.c (x_list_fonts): Fix previous change.
16894
168951999-04-26 Richard Stallman <rms@gnu.org>
16896
16897 * config.in (HAVE_LIBXP): Add #undef.
16898 * Makefile.in (LIB_MOTIF_EXTRA): Check HAVE_LIBXP.
16899
169001999-04-12 Ken'ichi Handa <handa@gnu.org>
16901
16902 * xterm.c (x_list_fonts): Trap X errors so that Emacs doesn't die
16903 by them.
16904
169051999-04-12 Karl Heuer <kwzh@gnu.org>
16906
16907 * s/freebsd.h (BSD_SYSTEM): Define for FreeBSD 4 as with FreeBSD 3.
16908
169091999-04-11 Ken'ichi Handa <handa@gnu.org>
16910
16911 * fontset.c (Fset_fontset_font): Fix previous change.
16912
169131999-04-09 Ken'ichi Handa <handa@gnu.org>
16914
16915 * fontset.c (Fquery_fontset): Check for fontset aliases here.
16916 (Fnew_fontset, Fset_fontset_font): Don't check for them here.
16917
169181999-04-08 Richard Stallman <rms@gnu.org>
16919
16920 * process.c (Faccept_process_output): Check validity of PROCESS.
16921
169221999-04-08 Eli Zaretskii <eliz@gnu.org>
16923
16924 * msdos.c (jp_kbd_translate_table): Fix the other \ key.
16925
169261999-04-07 Richard Stallman <rms@gnu.org>
16927
16928 * xfns.c (x_set_font): Fix error message.
16929
16930 * fontset.c (Fquery_fontset): Don't check for fontset aliases here.
16931 (Fnew_fontset, Fset_fontset_font): Check for them here.
16932 (Ffontset_info, Fnew_fontset, Fset_fontset_font):
16933 Fix error message syntax.
16934
16935 * buffer.c (Fmake_indirect_buffer): Copy multibyte status
16936 from the base buffer.
16937 (Fset_buffer_multibyte): Copy new multibyte status
16938 into the buffer's indirect buffers.
16939
169401999-04-07 Ken'ichi Handa <handa@gnu.org>
16941
16942 * fns.c (base64_encode_1): Don't add unnecessary newline at the
16943 tail.
16944
169451999-04-06 Richard Stallman <rms@gnu.org>
16946
16947 * dired.c (Ffile_attributes): Doc fix.
16948
16949 * keymap.c (Faccessible_keymaps): Really initialize i_byte.
16950 Convert 0200 to meta only in a unibyte string.
16951 (Fkey_description): Likewise.
16952
16953 * eval.c (do_autoload): Preserve match data.
16954
169551999-04-06 Kenichi HANDA <handa@etl.go.jp>
16956
16957 * w32fns.c (x_to_w32_font): Provide sufficient buffer to
16958 encode_coding to avoid carryover.
16959
16960 * coding.c: Add comments for decode_coding and encode_coding.
16961
16962 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>: Fix bug of handling
16963 a composite character by skipping its leading code.
16964 <CCL_WriteMultibyteChar2>: Handle non-ascii single byte character
16965 correctly.
16966
16967 * coding.c: Add comments for decode_coding and encode_coding.
16968
16969 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>: Fix bug of handling
16970 a composite character by skipping its leading code.
16971 <CCL_WriteMultibyteChar2>: Handle non-ascii single byte character
16972 correctly.
16973
169741999-04-06 Eli Zaretskii <eliz@gnu.org>
16975
16976 * msdos.c (dos_rawgetc): Don't zero out c if private translation
16977 table was used.
16978 (jp_kbd_translate_table): Support C-\.
16979 (it_kbd_translate_table): Map `>' correctly.
16980 (it_keyboard): Add `>'.
16981
169821999-04-06 Richard Stallman <rms@gnu.org>
16983
16984 * intervals.c (graft_intervals_into_buffer): Turn off
16985 inhibit_modification_hooks around calling Fset_text_properties.
16986
169871999-04-05 Kenichi HANDA <handa@etl.go.jp>
16988
16989 * xterm.c (dumpglyphs): Be sure to fill the whole background of
16990 glyphs.
16991
169921999-04-05 Eli Zaretskii <eliz@gnu.org>
16993
16994 * msdos.c (jp_kbd_translate_table): Fix last change.
16995
169961999-04-04 Eli Zaretskii <eliz@gnu.org>
16997
16998 * msdos.c (struct kbd_translate): New struct, for key translation
16999 tables private to certain national keyboard layouts.
17000 (struct dos_keyboard_map): Add a pointer to a private translation
17001 table.
17002 (jp_kbd_translate_table): Private table for the Japanese
17003 keyboard.
17004 (jp_keyboard): Japanese keyboard layout.
17005 (it_kbd_translate_table): Private table for the Italian keyboard.
17006 (it_keyboard): Use it_kbd_translate_table.
17007 (keyboard_layout_list): Add the Japanese keyboard.
17008 (dos_rawgetc): Use the keyboard-private translation table, if
17009 available.
17010 (abort) [__DJGPP_MINOR__ >= 2]: Raise SIGABRT.
17011
170121999-04-02 Kenichi HANDA <handa@etl.go.jp>
17013
17014 * xdisp.c (redisplay_window): When we call compute_motion with
17015 HPOS got from w->last_point_x, call it with DID_MOTION 1.
17016 (display_text_line): Stop the loop for processing overlay strings
17017 when we reach the right edge of the window.
17018
83c8f461 170191999-03-31 Richard M. Stallman <rms@gnu.org>
26901792
DL
17020
17021 * doc.c (get_doc_string): When UNIBYTE and DEFINITION are 0,
17022 let the data control whether string is unibyte.
17023
170241999-03-30 Richard M. Stallman <rms@gnu.org>
17025
17026 * macros.c (Fexecute_kbd_macro): Save real_this_command.
17027 (pop_kbd_macro): Restore the saved real_this_command.
17028 (Fcall_last_kbd_macro): Set real_this_command to the macro.
17029
170301999-03-26 Richard M. Stallman <rms@gnu.org>
17031
17032 * buffer.c (Fset_buffer_modified_p): Don't lock or unlock
17033 if buffer-file-name is nil.
17034
170351999-03-25 Jason Rumney <jasonr@altavista.net>
17036
17037 * w32select.c (Fw32_set_clipboard_data): Take into account line
17038 ends when calculating clipboard storage needed for non-ASCII text.
17039
170401999-03-25 Andrew Innes <andrewi@gnu.org>
17041
17042 * makefile.nt (PREPARED_HEADERS): Change name of paths.h to epaths.h.
17043 (epaths.h): Renamed from paths.h.
427ec082
SS
17044 (clean):
17045 ($(BLD)\filelock.obj):
17046 ($(BLD)\lread.obj):
26901792
DL
17047 ($(BLD)\w32fns.obj): Renamed paths.h to epaths.h.
17048
170491999-03-23 Ken'ichi Handa <handa@gnu.org>
17050
17051 * coding.c (encode_coding_iso2022): Initialize dummy arguments to
17052 ENCODE_ISO_CHARACTER for the previous change on this macro.
17053
170541999-03-23 Kenichi Handa <handa@etl.go.jp>
17055
17056 * xdisp.c (decode_mode_spec_coding): Handle integer value in
17057 eoltype correctly for backward compatibility.
17058
170591999-03-20 Kenichi HANDA <handa@etl.go.jp>
17060
17061 * coding.c (ENCODE_ISO_CHARACTER): Check validity of CHARSET. If
17062 invalid, produce the buffer internal byte sequence without encoding.
17063
170641999-03-19 Karl Heuer <kwzh@gnu.org>
17065
17066 * editfns.c (Fformat): Accept %i format.
17067
170681999-03-17 Karl Heuer <kwzh@gnu.org>
17069
17070 * filelock.c (get_boot_time): Test tempname, not filename.
17071
170721999-03-17 Jason Rumney <jasonr@altavista.net>
17073
e5619f6b
JR
17074 * w32bdf.h: Merged patches from Meadow; introduce bitmap cache to
17075 speed display.
17076
17077 * w32bdf.c: Merged patches from Meadow; introduce bitmap cache to
17078 speed display.
17079 (get_cached_font_char, cache_char_offset, get_bitmap_with_cache)
17080 New functions.
17081 (w32_free_bdf_font, seek_char, w32_get_bdf_glyph, w32_BDF_TextOut)
17082 Use bitmap cache.
26901792
DL
17083
17084 * w32fns.c (enum_font_cb2): Set the font height to be the
17085 character height, not the cell height.
17086 (Fw32_select_font): Initialize font dialog with current default font.
17087 (Vw32_system_coding_system): New variable.
17088 (w32_strict_filenames): Add comment.
17089 (w32_to_x_font): Decode font name using Vw32_system_coding_system.
427ec082 17090 (x_to_w32_font): Encode font name using Vw32_system_coding_system.
26901792
DL
17091 (syms_of_w32fns): Add w32-system-coding-system.
17092
170931999-03-15 Richard M. Stallman <rms@gnu.org>
17094
17095 * xterm.c (XTread_socket) <ConfigureNotify>:
17096 If cursor pos is outside the new frame size, mark cursor as off.
17097
170981999-03-14 Ken'ichi Handa <handa@gnu.org>
17099
17100 * xdisp.c (try_window_id): Initialize val.ovstring_chars_done to 0.
17101
17102 * xterm.c (x_load_font): Trap X errors so that Emacs doesn't die
17103 by them.
17104
171051999-03-14 Richard M. Stallman <rms@gnu.org>
17106
17107 * macros.c (Fexecute_kbd_macro): Initialize executing_macro_iterations
17108 at beginning.
17109
171101999-03-14 Jason Rumney <jasonr@altavista.net>
17111
17112 * w32fns.c (w32_strict_fontnames): New variable.
17113 (Fx_create_frame): Formatting fix.
17114 (w32_load_system_font): Keep trying to load non-existant font
17115 if w32_strict_fontnames is nil. Formatting fix.
17116 (syms_of_w32fns): Add w32-strict-fontnames.
17117
17118 * w32term.c (W32_TEXTOUT): Do not multiply nchars by charset_dim.
17119 (dumpglyphs): Formatting fixes.
17120
171211999-03-14 Geoff Voelker <voelker@cs.washington.edu>
17122
17123 * w32fns.c (w32_wnd_proc): Handle WM_GETMINMAXINFO message.
17124
171251999-03-10 Karl Heuer <kwzh@gnu.org>
17126
17127 * puresize.h (BASE_PURESIZE): Increase to 505000.
17128
171291999-03-09 Richard M. Stallman <rms@gnu.org>
17130
17131 * emacs.c (main) [CLASH_DETECTION]: Call init_filelock.
17132
17133 * filelock.c (init_filelock): New function.
17134
171351999-03-09 Dave Love <fx@gnu.org>
17136
17137 * fileio.c (Ffile_directory_p): Doc fix.
17138
83c8f461 171391999-03-05 Richard M. Stallman <rms@gnu.org>
26901792
DL
17140
17141 * coding.c (setup_coding_system): Check for CODING_SYSTEM = nil.
17142
171431999-03-08 Richard M. Stallman <rms@gnu.org>
17144
17145 * filelock.c (get_boot_time): Reduce scope of #ifdef BOOT_TIME
17146 to only the part that uses get_boot_time_1.
17147
171481999-03-07 Dave Love <fx@gnu.org>
17149
17150 * fileio.c (Finsert_file_contents): Use xfree.
17151
171521999-03-06 Kenichi Handa <handa@etl.go.jp>
17153
17154 * Makefile.in (callproc.o, coding.o, fileio.o, msdos.o, process.o,
17155 term.o, xselect.o): Depend on ccl.h.
17156
171571999-03-05 Geoff Voelker <voelker@cs.washington.edu>
17158
17159 * makefile.nt: Remove common multiple file compilation commands.
17160
171611999-03-04 Takeshi YAMADA <yamada@cslab.kecl.ntt.co.jp>
17162
17163 * fns.c (Fbase64_encode_string): Allocate sufficient memory for
17164 newlines added when the arg NO-LINE-BREAK is nil.
17165
171661999-03-04 Karl Heuer <kwzh@gnu.org>
17167
17168 * search.c (Fstring_match, Fposix_string_match): Doc fix.
17169
17170 * buffer.c (syms_of_buffer): Doc fix for case-fold-search.
17171
171721999-03-04 Dave Love <fx@gnu.org>
17173
17174 * term.c (term_init): Use xmalloc, not malloc.
17175
17176 * callproc.c (Fcall_process): Use xmalloc, xfree.
17177
171781999-03-03 Andreas Schwab <schwab@gnu.org>
17179
17180 * eval.c (Fdefconst): Doc fix.
17181
171821999-03-01 Kenichi Handa <handa@etl.go.jp>
17183
17184 * coding.c: Comment for ISO 2022 encoding mechanism modified.
17185
171861999-03-01 Eli Zaretskii <eliz@gnu.org>
17187
17188 * w16select.c (get_clipboard_data): Always stop at the first null byte.
17189
171901999-02-28 Richard M. Stallman <rms@gnu.org>
17191
17192 * filelock.c (get_boot_time): Support FreeBSD way to read boot-time.
17193
17194 * cmds.c (internal_self_insert): Calculate column properly
17195 in overwrite-of-tab case.
17196
171971999-02-27 Andreas Schwab <schwab@gnu.org>
17198
17199 * emacs.c (main) [DOUG_LEA_MALLOC]: Don't use unsetenv, it calls
17200 malloc in glibc 2.1.
17201
172021999-02-26 Richard Stallman <rms@gnu.org>
17203
17204 * Makefile.in: paths.h and paths.in renamed to epaths.h and epaths.in.
17205
17206 * epaths.in: Renamed from paths.in.
17207 This avoids a conflict with a system header file paths.h on GNU/Linux.
17208
17209 * callproc.c, lread.c, w32fns.c, xfns.c, xrdb.c:
17210 Use epaths.h istead of paths.h.
17211
172121999-02-26 Andreas Schwab <schwab@gnu.org>
17213
17214 * emacs.c (main) [DOUG_LEA_MALLOC]: Work around a bug in glibc's
17215 malloc.
17216
172171999-02-25 Dave Love <fx@gnu.org>
17218
17219 * buffer.c (syms_of_buffer): Doc fix for enable-multibyte-characters.
17220
172211999-02-25 Richard Stallman <rms@gnu.org>
17222
17223 * filelock.c (get_boot_time): Use WTMP_FILE for file name.
17224 (WTMP_FILE): Default definition in case not defined.
17225 (get_boot_time_1): Test that file exists before trying to read it.
427ec082 17226
26901792
DL
172271999-02-25 Ken'ichi Handa <handa@gnu.org>
17228
17229 * keymap.c (push_key_description): If enable-multibyte-characters
17230 is nil and C is single byte, push C as is.
17231
172321999-02-24 Kenichi Handa <handa@etl.go.jp>
17233
17234 * keymap.c (push_key_description): If enable-multibyte-characters
17235 is non-nil, try to convert unibyte character to multibyte. For
17236 invalid multibyte character, show all bits by octal form.
17237 (Fsingle_key_description): Check the validity of charset for a
17238 generic character.
17239
172401999-02-23 Richard M. Stallman <rms@gnu.org>
17241
17242 * fileio.c (Ffile_regular_p): Undo previous change.
17243
17244 * eval.c (Fdefconst): Doc fix.
17245
17246 * filelock.c (get_boot_time): Don't use BUFSIZ.
17247
172481999-02-22 Andrew Innes <andrewi@gnu.org>
17249
17250 * makefile.nt ($(BLD)\w32bdf.obj): Add missing continuation character.
17251 (EXTRA_LINK): Do version test with strings.
17252
172531999-02-22 Andreas Schwab <schwab@gnu.org>
17254
17255 * fns.c (Fbase64_encode_string): Fix last change.
17256
17257 * termhooks.h (event_kind): Add user_signal.
17258
17259 * keyboard.c (Qusr1_signal, Qusr2_signal): New variables.
17260 (syms_of_keyboard): Initialize them.
17261 (lispy_user_signals): New variable.
17262 (make_lispy_event): Handle user_signal event type.
17263
17264 * emacs.c: Don't define Qusr1_signal and Qusr2_signal.
17265 (syms_of_emacs): Don't initialize them.
17266 (handle_USR1_signal, handle_USR2_signal): Set event type to
17267 user_signal instead of non_ascii_keystroke, and use plain integers
17268 as code instead of Lisp symbols.
17269
172701999-02-21 Eli Zaretskii <eliz@delysid.gnu.org>
17271
17272 * fileio.c: (lstat) [!S_ISLNK]: Use stat instead of lstat.
17273
172741999-02-21 Richard Stallman <rms@gnu.org>
17275
17276 * filelock.c (get_boot_time_1): Put this in #ifdef BOOT_TIME.
17277
17278 * print.c (print_error_message): Don't crash if (cdr data)
17279 is not a list.
17280
172811999-02-21 Eli Zaretskii <eliz@gnu.org>
17282
17283 * fileio.c (lstat) [!S_ISLNK]: Use stat instead of lstat.
17284
172851999-02-20 Andrew Innes <andrewi@gnu.org>
17286
17287 * vm-limit.c (memory_warnings) [WINDOWSNT]: Reset lim_data on each
17288 run, since size can vary from run to run.
17289
17290 * makefile.nt (EXTRA_LINK, LINK_FLAGS): Ensure base relocation
17291 data is included, to enable profiling.
17292 ($(EMACS)): Map file not needed for emacs.exe.
17293
17294 * emacs.c (main): [!SYSTEM_MALLOC]: Call realloc and free as well
17295 as malloc before calling uninterrupt_malloc, for consistency.
17296 This also enables profiling to work on WINDOWSNT.
17297
172981999-02-18 Richard Stallman <rms@gnu.org>
17299
17300 * Makefile.in (emacs.o): Depend on termhooks.h.
17301 (filelock.o): Depend on systime.h.
17302
173031999-02-18 Ken'ichi Handa <handa@gnu.org>
17304
17305 * coding.c (Fdecode_sjis_char): Use %x for formatting error message.
17306 (Fdecode_big5_char): Likewise.
17307
173081999-02-17 Richard Stallman <rms@gnu.org>
17309
17310 * insdel.c (adjust_markers_for_replace): When doing an insertion
17311 (replacing a region of zero length), handle markers at the
17312 insertion point properly.
17313
173141999-02-17 Andrew Innes <andrewi@gnu.org>
17315
17316 * w32fns.c (Vw32_quit_key): New variable.
17317 (post_character_message): Use it.
17318 (syms_of_w32fns): DEFVAR it.
17319
173201999-02-16 MORIOKA Tomohiko <morioka@jaist.ac.jp>
17321
17322 * fns.c (Fbase64_encode_string): New optional argument `NO_LINE_BREAK'.
17323
173241999-02-16 Richard Stallman <rms@gnu.org>
17325
17326 * filelock.c (within_one_second): New function.
17327 (current_lock_owner): Use that.
17328 (get_boot_time): Use /proc/uptime if available.
17329 Otherwise, if nothing found in wtmp, try wtmp.1.gz and so on.
17330 (get_boot_time_1): New subroutine taken from get_boot_time.
427ec082 17331
26901792
DL
173321999-02-16 Richard Stallman <rms@gnu.org>
17333
17334 * emacs.c (Qusr1_signal, Qusr2_signal): New variables.
17335 (syms_of_emacs): Init and staticpro them.
17336 (handle_USR1_signal): Don't run any code, just queue up an event.
17337 (handle_USR2_signal): Likewise.
17338
173391999-02-16 Eli Zaretskii <eliz@gnu.org>
17340
17341 * dired.c (Ffile_attributes): If the file's size doesn't fit in
17342 an integer, return it as a float. Doc string fixed.
17343
173441999-02-16 Richard Stallman <rms@gnu.org>
17345
17346 * emacs.c (Qusr1_signal, Qusr2_signal): New variables.
17347 (syms_of_emacs): Init and staticpro them.
17348 (handle_USR1_signal): Don't run any code, just queue up an event.
17349 (handle_USR2_signal): Likewise.
17350
173511999-02-15 Kenichi Handa <handa@etl.go.jp>
17352
17353 * coding.c (Fdecode_sjis_char, Fencode_sjis_char): Handle
17354 ASCII correctly. Signal error on invalid characters.
17355 (Fdecode_big5_char, Fencode_big5_char): Likewise.
17356
173571999-02-15 Eli Zaretskii <eliz@gnu.org>
17358
17359 * w16select.c (get_clipboard_data): Work around a bug in Windows95
17360 DOS box which doubles the reported size of text in the clipboard.
17361
173621999-02-15 Kenichi Handa <handa@etl.go.jp>
17363
17364 * coding.c (decode_coding_iso2022): Don't set
17365 coding->composed_chars to 0 here.
17366 (setup_coding_system): Set coding->composed_chars to 0 here.
17367
173681999-02-10 Richard Stallman <rms@gnu.org>
17369
17370 * fileio.c (Ffile_regular_p): Use lstat.
17371
173721999-02-09 Richard Stallman <rms@gnu.org>
17373
17374 * unexelf.c (HAS_SBSS_SECTION): Define this in some cases.
17375 (unexec): Test this instead of specific systems.
17376
17377 * m/macppc.h: New file.
17378
173791999-02-08 Dave Love <fx@gnu.org>
17380
17381 * fns.c (Fyes_or_no_p, Fy_or_n_p): Doc fix.
17382
173831999-02-08 Ken'ichi Handa <handa@gnu.org>
17384
17385 * coding.c (ccl_coding_driver): On encoding, coding->produced_char
17386 should be set to coding->produced.
17387
173881999-02-07 Paul Fisher <rao@gnu.org>
17389
17390 * fns.c (IS_BASE64_IGNORABLE, READ_QUADRUPLET_BYTE): New macros.
17391 (base64_decode_1): Use READ_QUADRUPLET_BYTE.
17392
173931999-02-07 Markus Rost <markus.rost@mathematik.uni-regensburg.de>
17394
17395 * editfns.c (Fformat): Doc fix.
17396
173971999-02-06 Richard Stallman <rms@gnu.org>
17398
17399 * process.c (syms_of_process): defsubr it.
17400 (Fprocess_running_child_p): New function.
17401
174021999-02-05 Andrew Innes <andrewi@gnu.org>
17403
17404 * w32term.c (construct_drag_n_drop): Call DraqQueryPoint before
17405 recording drop position.
17406
174071999-02-05 Ken'ichi Handa <handa@gnu.org>
17408
17409 * coding.c (encode_coding_iso2022): Before writing out an invalid
17410 code, reset graphic planes and registers if necessary.
17411
17412 * term.c (encode_terminal_code): Fix previous change.
17413
174141999-02-04 Eli Zaretskii <eliz@gnu.org>
17415
17416 * w16select.c (last_clipboard_text, clipboard_storage_size): New
17417 static variables.
17418 (set_clipboard_data): Save a copy of the text we put into
17419 clipboard in last_clipboard_text.
17420 (get_clipboard_data): If the clipboard text is identical to what
17421 last_clipboard_text holds, pretend there's no data in the clipboard.
17422
174231999-02-03 Richard Stallman <rms@gnu.org>
17424
17425 * s/gnu.h (NLIST_STRUCT): Add #undef.
17426
174271999-02-03 Eli Zaretskii <eliz@gnu.org>
17428
17429 * w16select.c (Fw16_set_clipboard_data): When the text needs to be
17430 encoded, set its pointer and size as returned by encode_coding.
17431
174321999-02-02 Ken'ichi Handa <handa@gnu.org>
17433
17434 * fns.c (Fset_char_table_default): To handle the case that CH is
17435 an ASCII char, use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
17436
174371999-02-02 Andrew Innes <andrewi@gnu.org>
17438
17439 * w32fns.c (syms_of_w32fns): Change default value of
17440 w32-mouse-move-interval to 0, so that the mouse wheel/rocker on
17441 some mice works properly.
17442
174431999-02-02 Eli Zaretskii <eliz@gnu.org>
17444
17445 * w16select.c (set_clipboard_data): Correctly null-terminate the
17446 string to be put into the Windows clipboard. Use xbuf_addr.
17447
174481999-02-01 Richard Stallman <rms@gnu.org>
17449
17450 * buffer.c (Fset_buffer_multibyte): Error if buffer is indirect.
17451
174521999-01-31 Richard Stallman <rms@gnu.org>
17453
17454 * process.c (process_send_signal): If CURRENT_GROUP is `lambda'
17455 then don't send the signal if the shell owns the terminal.
17456 (Finterrupt_process): Doc change.
427ec082 17457
26901792
DL
174581999-01-31 Andrew Innes <andrewi@gnu.org>
17459
17460 * unexw32.c: (ROUND_UP_DST_AND_ZERO): New macro.
17461 (copy_executable_and_dump_data): Use it to ensure alignment slop
17462 is zeroed.
17463
174641999-01-30 Andrew Innes <andrewi@gnu.org>
17465
17466 * w32.c (init_environment): Change argv[0] to contain the full
17467 path to Emacs.
17468
17469 * emacs.c (main) [WINDOWSNT]: Pass argv to init_environment.
17470
174711999-01-29 Ken'ichi Handa <handa@gnu.org>
17472
17473 * xterm.c (x_new_fontset): For ASCII font, don't use the font name
17474 returned by x_new_font (the resolved one) but use the font name
17475 set in the fontset specification.
17476 (x_load_font): For the height of font, if normarl ascent and
17477 descent value are larger than those in max_bounds field, use the
17478 former.
17479
174801999-01-28 Eli Zaretskii <eliz@gnu.org>
17481
17482 * xdisp.c (decode_mode_spec_coding): Fix previous change.
17483
174841999-01-27 Geoff Voelker <voelker@cs.washington.edu>
17485
17486 * makefile.nt: Use full path to temacs.exe when dumping.
17487
174881999-01-27 Jason Rumney <jasonr@altavista.net>
17489
17490 * w32fns.c (w32_load_system_font): Do not load unlisted fonts if
17491 list was reliable.
17492 (enum_fontex_cb1, enum_fontex_cb2): New functions.
17493 (w32_list_bdf_fonts): New parameter; max_names. Callers updated.
17494 (w32_list_synthesized_fonts): New function.
17495 (w32_list_fonts): Use maxnames. Use EnumFontFamiliesEx when
17496 available instead of EnumFontFamilies. List synthesized fonts if
17497 Vw32_enable_italics is non-nil.
427ec082 17498
26901792
DL
174991999-01-27 Richard Stallman <rms@gnu.org>
17500
17501 * s/ptx4.h (SETUP_SLAVE_PTY): Use the ptem module if it exists.
17502 Don't complain if ttcompat does not exist.
17503
17504 * w32fns.c (x_set_frame_parameters): gcpro as needed.
17505
175061999-01-27 Andrew Innes <andrewi@gnu.org>
17507
17508 * w32fns.c (w32_wnd_proc): Fix bug introduced by previous change;
17509 the lwindow, rwindow and apps keys could not be used as function
17510 keys, because they were being passed to TranslateMessage which
17511 ignores them. Also, key was being changed to SPC.
17512
17513 * makefile.nt: Do make version comparison as strings.
17514
175151999-01-27 Eli Zaretskii <eliz@gnu.org>
17516
17517 * coding.c (syms_of_coding): eol-mnemonic-* variables are now
17518 strings, not characters.
17519
17520 * coding.h: Likewise.
17521
17522 * xdisp.c (decode_mode_spec_coding): Display the EOL type as a
17523 string.
17524
175251999-01-26 Dave Love <fx@gnu.org>
17526
17527 * emacs.c (main): Up-date copyright.
17528
175291999-01-25 Dave Love <fx@gnu.org>
17530
17531 * coding.c (syms_of_coding): Doc fix for inhibit-eol-conversion.
17532
175331999-01-25 Andreas Schwab <schwab@gnu.org>
17534
17535 * eval.c (Fsignal): Move comment to avoid confusing make-docfile.
17536
175371999-01-23 Richard M. Stallman <rms@borg.ai.mit.edu>
17538
17539 * xfns.c (x_set_frame_parameters): gcpro as needed.
17540
17541 * window.c (Fset_window_point): If WINDOW is selected but the
17542 current buffer is not its buffer, don't use Fgoto_char.
17543
175441999-01-22 Richard M. Stallman <rms@gnu.org>
17545
17546 * syntax.c (scan_sexps_forward): Delete duplicate code
17547 to set prev_from_syntax, above start of main loop.
17548 At startinstring, check syntax when checking for a match.
17549
175501999-01-22 Jason Rumney <jasonr@altavista.net>
17551
17552 * w32bdf.c: New file.
17553 * w32bdf.h: New file.
17554 * makefile.nt: Add w32bdf.c and w32bdf.h.
17555
17556 * w32gui.h: Include w32bdf.h.
17557 (W32FontStruct) Add bdf element.
17558
17559 * w32term.h (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_MAX_WIDTH):
17560 Support BDF fonts.
17561
17562 * w32term.c (W32_TEXTOUT): New macro.
17563 (dumpglyphs): Support BDF fonts. Use W32_TEXTOUT macro.
17564 Simplify baseline calculation. Detect SJIS by font, not glyph.
17565 Call SetTextAlign.
17566 (syms_of_w32term): Remove "jisx0212-sjis" from
17567 w32-charset-to-codepage-alist.
17568 Replace "ksc5601" with "ksc5601.1987" in w32-charset-to-codepage-alist.
17569 Add "ksc5601.1992' to w32-charset-to-codepage-alist.
427ec082 17570
26901792
DL
17571 * w32fns.c (Vw32_bdf_filename_alist): New variable.
17572 (x_destroy_bitmap): Returns void not int.
17573 (x_set_border_pixel): Returns void.
17574 (w32_load_bdf_font): New function.
17575 (w32_load_system_font): New function, was w32_load_font. List
17576 fonts before loading. Explicitly set encoding for SJIS fonts.
17577 Set default_ascent to 0 as comment indicates.
17578 (w32_load_font): Call w32_load_system_font and w32_load_bdf_font.
17579 (w32_unload_font): Support BDF fonts.
17580 (w32_to_x_charset): Fix mappings to avoid wildcard mismatches.
17581 Autodetect whether to use koi8-r instead of iso8859-5.
17582 Associate "ksc5601.1987" with HANGUEL_CHARSET.
17583 Associate "ksc5601.1992" with JOHAB_CHARSET.
17584 (x_to_w32_charset): Make consistent with w32_to_x_charset.
17585 (w32_to_x_font): Add resolution.
17586 (x_to_w32_font): Use font resolution to calculate height if supplied.
17587 (w32_font_match): Handle wildcards anywhere within field.
17588 (enumfont_t): Remove unused head pointer.
17589 (enum_font_cb2): Dereference elfLogFont.
17590 (w32_list_bdf_fonts): New function.
17591 (w32_list_fonts): Use one_w32_dispay_info instead of insisting on
17592 valid frame. Remove MessageBox. Support BDF fonts.
17593 (Fw32_find_bdf_fonts): New function.
17594 (syms_of_w32fns): Add Vw32_bdf_filename_alist and
17595 Sw32_find_bdf_fonts.
17596
175971999-01-21 Andrew Innes <andrewi@gnu.org>
17598
17599 * makefile.nt (temacs): Use del to delete file, not rm.
17600
176011999-01-19 Richard Stallman <rms@psilocin.ai.mit.edu>
17602
17603 * keyboard.c (read_key_sequence): Fix previous change.
17604
17605 * xterm.c (same_x_server): Detect treat ":0" and "unix:0"
17606 as the same. Treat "myname:0" as the same as those two.
17607
176081999-01-19 Jason Rumney <jasonr@altavista.net>
17609
17610 * w32fns.c (x_to_w32_charset): Add iso8859-9.
17611 (w32_to_x_charset): Fix charset mappings.
17612
17613 * w32term.c: Remove codepage macros. Remove redundant BIG5 macros.
17614 (dumpglyphs): Move definitions out of block containing goto.
17615 Remove redundant code for BIG5.
17616 Use w32_codepage_for_font instead of
17617 w32_codepage_for_charset. Add cast to int where float
17618 operation is assigned to int.
17619 (Vw32_charset_to_codepage_alist): New variable.
17620 (w32_codepage_for_charset): Removed.
427ec082
SS
17621 (w32_codepage_for_font): New function, replacing
17622 w32_codepage_for_charset.
26901792
DL
17623 (syms_of_w32term): Add and initialize
17624 w32-charset-to-codepage-alist.
17625
176261999-01-17 Richard Stallman <rms@psilocin.ai.mit.edu>
17627
17628 * xselect.c (x_handle_selection_clear): Don't clear the
17629 selection if Emacs still owns it through a different display.
17630
176311999-01-17 Andrew Innes <andrewi@gnu.org>
17632
17633 * w32proc.c: (w32_executable_type): Relax the check to identify
17634 cygwin-compiled applications, because the exact dll name varies
17635 with release. Now only require the name to start "cygwin".
17636
17637 * w32heap.h: (ROUND_UP):
17638 (ROUND_DOWN): New macros.
17639 (need_to_recreate_heap): Renamed to using_dynamic_heap.
17640 (init_heap): New extern.
17641 (data_region_size):
17642 (recreate_heap):
17643 (read_in_bss):
17644 (map_in_heap):
17645 (round_to_next):
17646 (w32_fatal_reload_error):
17647 (get_section_size): Obsolete externs removed.
17648
17649 * w32heap.c: (RVA_TO_PTR): Redefine to convert RVA to address in
17650 current process.
17651 (round_to_next): Obsolete function removed.
17652 (preload_heap_section): New variable.
17653 (data_region_size): Obsolete variable removed.
17654 (allocate_heap): Modified to determine end of static heap section
17655 used during preload, and use that as initial base address for
17656 dynamic heap instead of hard-coded value.
17657 (sbrk): Remove call to allocate_heap; handled by init_heap. Skip
17658 calls to commit or decommit pages when allocating from static heap
17659 section during preload.
17660 (recreate_heap): Obsolete function removed.
17661 (init_heap): New function to initialize internal sbrk heap
17662 variables. Uses static heap section during preload, otherwise
17663 calls allocate_heap to reserve a heap region dynamically.
17664 (round_heap): Use ROUND_UP macro instead of round_to_next.
17665
17666 * unexw32.c: Major rewrite to support cleaner method of dumping; a
17667 static "bss" section is used for heap space during preload, and
17668 bss data is now written to the proper section area when dumping.
17669 (need_to_recreate_heap): Renamed to using_dynamic_heap.
17670 (heap_index_in_executable): Obsolete variable removed.
17671 (data_section): New variable.
17672 (data_start_va): Renamed to data_start.
17673 (data_start_file): Obsolete variable removed.
17674 (bss_section):
17675 (extra_bss_size):
17676 (bss_section_static):
17677 (bss_start_static):
17678 (bss_size_static):
17679 (extra_bss_size_static):
17680 (heap_section): New variables.
17681 (_start): Remove code based on old unexec method. Call init_heap
17682 to initialize sbrk heap.
17683 (close_file_data): Update size of file when closing, so that
17684 unexec doesn't have to work out exact size in advance.
17685 (get_bss_info_from_map_file):
17686 (get_section_size): Obsolete functions removed.
17687 (rva_to_section): Fix minor bug, and add a work-around for a bug
17688 in very old linkers.
17689 (offset_to_section):
17690 (relocate_offset): New functions.
17691 (OFFSET_TO_RVA):
17692 (RVA_TO_OFFSET):
17693 (RVA_TO_SECTION_OFFSET):
17694 (PTR_TO_RVA):
17695 (PTR_TO_OFFSET):
17696 (OFFSET_TO_PTR): New macros.
17697 (get_section_info): Modify to support new unexec method;
17698 determines address ranges in process that need dumping, and COFF
17699 sections where data will be dumped. Allows for static and global
17700 bss data to be in separate ranges. No longer relies on knowledge
17701 of section names.
17702 (copy_executable_and_dump_data_section): Renamed
17703 copy_executable_and_dump_data. Completely rewritten to copy
17704 executable section by section, so that raw data areas can be
17705 expanded to hold dumped data as necessary. Allows for bss data to
17706 be in same section as initialized data. Reduces size of static
17707 heap section to that used during preload.
17708 (dump_bss_and_heap):
17709 (w32_fatal_reload_error):
17710 (read_in_bss):
17711 (map_in_heap): Obsolete functions removed.
17712 (unexec): Rounds off preload heap to nearest page rather than
17713 virtual allocation unit. Modified to match other changes.
17714
17715 * mem-limits.h: (get_lim_data): Use reserved_heap_size instead of
17716 data_region_size.
17717
17718 * makefile.nt: (TEMACS_TMP): New macro.
17719 ($(TEMACS)): Output to TEMACS_TMP from link, use post-link
17720 processor to add static heap section in support of new unexec.
17721
17722 * lastfile.c: Include config.h to pick up data layout pragmas.
17723 [WINDOWSNT]: Remove explicit pragma.
17724
177251999-01-12 Kenichi Handa <handa@etl.go.jp>
17726
17727 * coding.c (Fdecode_sjis_char): Decode Japanese Katakana character
17728 correctly.
17729 (Fencode_sjis_char): Encode Japanese Katakana character correctly.
17730
177311999-01-11 Dave Love <fx@gnu.org>
17732
17733 * coding.c (syms_of_coding): Doc fix for inhibit-eol-conversion.
17734
177351999-01-11 Richard Stallman <rms@psilocin.ai.mit.edu>
17736
17737 * keyboard.c (read_key_sequence): In key-translation-map and
17738 function-key-map, handle symbol with array as fn def.
17739 In function-key-map, handle symbol with keymap as fn def,
17740 and autoloaded definitions.
427ec082 17741
26901792
DL
17742 * puresize.h (BASE_PURESIZE): Increment to 500000.
17743
17744 * print.c (Qtemp_buffer_setup_hook): New variable.
17745 (syms_of_print): Init and staticpro that.
17746 (temp_output_buffer_setup): Run Qtemp_buffer_setup_hook.
17747
177481999-01-11 Kenichi Handa <handa@etl.go.jp>
17749
17750 * insdel.c (del_range_1): Call signal_after_change.
17751 (del_range_byte): Likewise.
17752 (del_range_both): Likewise.
17753 (del_range_2): Don't call signal_after_change.
17754
17755 * xdisp.c (message_dolog): Use insert_1_both to avoid running any
17756 Lisp code here.
17757
177581999-01-07 Richard Stallman <rms@psilocin.ai.mit.edu>
17759
17760 * eval.c (find_handler_clause): If SIG is nil (memory full error),
17761 never run the debugger, and don't bother checking the args
17762 to see whether the debugger should be run.
17763
177641999-01-06 Richard Stallman <rms@psilocin.ai.mit.edu>
17765
17766 * keyboard.c (read_key_sequence):
17767 Tell get_keyelt to look handle autoloads.
17768 Handle symbols defined as keymaps, and autoloaded keymaps.
17769
177701999-01-06 Kenichi Handa <handa@etl.go.jp>
17771
17772 * search.c (search_buffer): Fix previous change.
17773
177741999-01-06 Eli Zaretskii <eliz@gnu.org>
17775
17776 * w16select.c (set_clipboard_data): Terminate the text with a null
17777 character. Don't allow to put binary data into the clipboard.
17778 Return zero in case of success, 1 or 2 otherwise.
17779 (get_clipboard_data): Only bail out if the null character is in
17780 the last 32-byte chunk of clipboard data
17781 (Fw16_set_clipboard_data): Make ok and put_status be unsigned. If
17782 they save binary data, print a message in the echo area saying the
17783 text was not put into the clipboard.
17784
17785 * msdos.c (IT_write_glyphs): Move constant expression out of the loop.
17786
177871999-01-06 Andreas Schwab <schwab@gnu.org>
17788
17789 * systty.h [__GLIBC__ >= 2]: Check __FAVOR_BSD instead of
17790 _BSD_SOURCE, the latter is always defined.
17791
177921999-01-05 Richard Stallman <rms@psilocin.ai.mit.edu>
17793
17794 * fns.c (Frequire): Don't fail to unbind bindings.
17795
177961999-01-02 Richard Stallman <rms@psilocin.ai.mit.edu>
17797
17798 * emacs.c (main) [DOUG_LEA_MALLOC]: Don't call r_alloc_reinit.
17799
17800 * charset.c (Ffind_charset_region): Fix doc typo.
17801
178021998-12-31 Eli Zaretskii <eliz@mescaline.gnu.org>
17803
17804 * msdos.c (IT_write_glyphs): Convert unibyte characters to
17805 multibyte in unibyte buffers only.
17806
17807 * keymap.c (Fdefine_prefix_command): Accept a third argument NAME
17808 and pass it to Fmake_sparse_keymap.
17809
178101998-12-29 Richard Stallman <rms@psilocin.ai.mit.edu>
17811
17812 * alloc.c (MMAP_MAX_AREAS): New macro.
17813 (allocate_vectorlike, make_uninit_multibyte_string): Use that.
17814 (init_alloc_once): Use that.
17815
17816 * s/gnu-linux.h [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it.
17817
17818 * alloc.c (lisp_malloc, lisp_free): New functions.
17819 Use them instead of malloc, xmalloc, and xfree, for Lisp objects.
17820 Don't set allocating_for_lisp in the callers; let lisp_malloc do it.
17821 (n_interval_blocks, n_float_blocks): New variable.
17822 (n_cons_blocks, n_vectors, n_symbol_blocks): New variable.
17823 (n_marker_blocks, n_string_blocks): New variable.
17824 (init_intervals, make_interval): Set a count variable.
17825 Use lisp_malloc instead of setting allocating_for_lisp.
17826 (init_float, make_float, init_cons, Fcons): Likewise.
17827 (allocate_vectorlike, init_symbol, Fmake_symbol): Likewise
17828 (init_marker, allocate_misc, init_strings): Likewise.
17829 (make_uninit_multibyte_string): Likewise.
17830 (gc_sweep, compact_strings): Decrement the count variables.
17831
17832 * alloc.c (uninterrupt_malloc): Don't store Emacs's hooks
17833 into the old_..._hook variables.
17834
178351998-12-28 Richard Stallman <rms@psilocin.ai.mit.edu>
17836
17837 * keyboard.c: In each active map, for each menu bar item, use only
17838 the first submap.
17839 (menu_bar_one_keymap): Initialize menu_bar_one_keymap_changed_items.
17840 (menu_bar_item): Update and test menu_bar_one_keymap_changed_items.
17841 (syms_of_keyboard): Staticpro and init it.
17842
427ec082 17843 * xmenu.c (single_keymap_panes):
26901792
DL
17844
178451998-12-28 Andrew Innes <andrewi@delysid.gnu.org>
17846
17847 * w32fns.c (w32_msg_pump): Ignore WM_NULL message posted to thread
17848 by complete_deferred_msg.
17849 (post_character_message): Cancel all deferred messages when
17850 quit_char is typed, in order to break out of potential deadlocks.
17851 (cancel_all_deferred_msgs): New function.
17852 (complete_deferred_msg): Don't abort if msg not found; may have
17853 been cancelled.
17854 (Fw32_reconstruct_hot_key): Use pre-interned symbols.
17855 (Fw32_send_sys_command): Wait for system command to
17856 complete before returning.
427ec082 17857
26901792
DL
17858 * w32term.c (x_iconify_frame): Wait for frame to be iconified; do
17859 not set async_iconified flag though.
17860
17861 * w32proc.c: (Vw32_start_process_inherit_error_mode): New variable.
17862 (create_child): Use it.
17863 (syms_of_ntproc): Defvar it. Also fix docstrings for
17864 w32-start-process-share-console and w32-start-process-show-window.
17865
17866 * unexw32.c (_start): Force system calls accessing unmounted
17867 devices to fail without prompting.
17868
178691998-12-26 Richard Stallman <rms@psilocin.ai.mit.edu>
17870
17871 * emacs.c (main): Call memory_warnings and uninterrupt_malloc
17872 even when starting the dumped Emacs.
17873
17874 * keymap.c (Fsingle_key_description): Handle (control ?x) etc.
17875 (Fkey_description): Handle lists like vectors.
17876
178771998-12-21 Kenichi Handa <handa@etl.go.jp>
17878
17879 * callint.c (Fcall_interactively) <'C'>: Give Fread_char Qnil
17880 because of the change of the second argument of Fread_char.
17881
17882 * charset.c (Fcharset_after): Check range. If POS is out of
17883 range, return nil.
17884
17885 * keyboard.c (read_char): Don't bind input-method-exit-on-first-char.
17886
17887 * lread.c (Fread_char): Change the meaning of the second argument.
17888 (Fread_event): Likewise.
17889 (Fread_char_exclusive): Likewise.
17890
17891 * print.c (printchar): Fix previous change.
17892
17893 * process.c (read_process_output): Decide the multibyteness of
17894 string given to a process filter by a coding system used for
17895 decoding the process output.
17896
178971998-12-21 Eli Zaretskii <eliz@mescaline.gnu.org>
17898
17899 * xterm.c (dumpglyphs): Don't convert 7-bit ASCII characters via
17900 nonascii-translation-table.
17901 * msdos.c (IT_write_glyphs): Likewise.
17902 * fns.c (concat): Likewise.
17903 * charset.c (unibyte_char_to_multibyte): Likewise.
17904 * insdel.c (copy_text, count_size_as_multibyte): Likewise.
17905
179061998-12-21 Andreas Schwab <schwab@delysid.gnu.org>
17907
17908 * doc.c (Fdocumentation): Change the doc string for prefix
17909 commands to make it a complete sentence in one line.
17910
179111998-12-16 Petri Kaurinkoski <Petri.Kaurinkoski@hut.fi>
17912
17913 * s/irix6-5.h: New file.
17914 * s/irix6-0.h (IRIX6): Define this symbol.
17915 * s/usg5-4.h (TIOCSIGSEND): Don't define this if irix6.
17916 (bcopy, bcmp, bzero): Likewise.
17917 * m/iris4d.h (LIBS_MACHINE): Leave this blank if irix6.5.
17918 (C_SWITCH_MACHINE): New value for irix6.5.
17919
179201998-12-15 Richard Stallman <rms@gnu.org>
17921
17922 * fns.c (Fbase64_decode_region, Fbase64_decode_string):
17923 Do free malloc'd memory even in case of failure. Use xfree, not free.
17924 (Fbase64_encode_region, Fbase64_encode_string): Use xfree, not free.
17925 (base64_decode_1): Don't fail for short lines.
17926
17927 * print.c (printchar): Outputting multibyte characters
17928 to echo area always makes it multibyte.
17929
17930 * search.c (search_buffer): Don't use Boyer-Moore
17931 to search for an invalid multibyte code.
17932 In unibyte case, no need to check whether there are translations
17933 in more than one charset; just set charset_base to 0.
17934
179351998-12-15 Ken'ichi Handa <handa@delysid.gnu.org>
17936
17937 * print.c (printchar): Cancel previous change.
17938
179391998-12-15 Kenichi Handa <handa@etl.go.jp>
17940
17941 * callproc.c: Include "ccl.h".
17942 (Fcall_process): Doc-string modified. Set CODING_MODE_LAST_BLOCK
17943 bit in argument_coding.mode to tell encoding procedure to flush
17944 data. While encoding arguments, if argument_coding uses CCL
17945 program, initialize it again after encoding.
17946 (Fcall_process_region): Doc-string modified. Handle the case that
17947 NARGS is 3.
17948
17949 * ccl.c (CCL_SUCCESS): Don't set ccl->ic.
17950 (ccl_driver) <CCL_End>: Pretend that all source text is consumed.
17951 Set `ic' to the head of this command.
17952 (ccl_driver) <CCL_ReadMultibyteChar2>: Return a single byte 8-bit
17953 code for an invalid code.
17954 (setup_ccl_program): If the arg VEC is nil, skip setting ups
17955 based on VEC.
17956
17957 * charset.c (Qunknown): New variable.
17958 (init_charset_once): Intern and staticpro Qunknown. Initialize
17959 all elements of Vcharset_symbol_table to Qunknown.
17960 (find_charset_in_str): New arg MULTIBYTE. If it is zero, check
17961 unibyte characters only. For an invalid composition sequence, set
17962 CHARSETS[1] to 1.
17963 (Ffind_charset_region): Call find_charset_in_str with an
17964 appropriate MULTIBYTE arg. If undefined charsets are found,
17965 include `unknown' is the return value.
17966 (Ffind_charset_string): Likewise.
17967 (Fsplit_char): If CHAR is invalid, return `(unknown CHAR)'.
17968 (str_cmpchar_id): Max composite character code should be less than
17969 GENERIC_COMPOSITION_CHAR.
17970
17971 * charset.h (find_charset_in_str): Update declaration.
17972
17973 * coding.c (DECODE_DESIGNATION): Jump to label_invalid_code if
17974 final_char is invalid.
17975 (decode_coding): If coding->type is coding_type_ccl, call
17976 ccl_coding_driver even if SRC_BYTES is zero.
17977 (code_convert_region): Update `inserted' correctly after calling
17978 coding->post_read_conversion. Even after the code converter
17979 consumed all source text, call it once more if it is
17980 coding_type_ccl to flush out data.
17981
17982 * fileio.c (Finsert_file_contents): Even if INSERTED is zero, if
17983 CODING is handled by CCL program, call code_convert_region.
17984
17985 * fns.c (string_char_to_byte): Handle invalid multibyte sequence
17986 correctly.
17987 (string_byte_to_char): Likesize.
17988
17989 * print.c (printchar): When outputting a multibyte character to
17990 echo area, always set message_enable_multibyte to 1.
17991
17992 * process.c (read_process_output): If NBYTES is zero and
17993 CODING_MODE_LAST_BLOCK bit is not yet set in coding->mode, set it
17994 and try decoding again.
17995 (Fprocess_send_eof): If the coding system of PROCESS
17996 requires flushing, call send_process with null-string at first.
17997
17998 * w16select.c (Fw16_set_clipboard_data): Call find_charset_in_str
17999 with MULTIBYTE arg 0.
18000 * w32select.c (Fw32_set_clipboard_data): Likewise.
18001 * xselect.c (lisp_data_to_selection_data): Likewise.
18002
180031998-11-30 Richard Stallman <rms@psilocin.ai.mit.edu>
18004
18005 * search.c (Freplace_match): Set OPOINT clearly for the case
18006 where point is in the middle of the text to be replaced.
18007
18008 * xdisp.c (display_text_line): When handling HPOS < 0 after loop,
18009 if compute_motion fails to advance at all, don't back it up.
18010
180111998-12-10 Geoff Voelker <voelker@cs.washington.edu>
18012
18013 * w32.c (w32_get_long_filename): Handle root dirs correctly.
18014
427ec082 18015 * s/ms-w32.h (LOCALTIME_CACHE): Define.
26901792
DL
18016
180171998-12-09 Richard Stallman <rms@gnu.org>
18018
18019 * insdel.c (insert_from_buffer_1): Properly count the size
18020 of output from conversion to multibyte even when input
18021 is split across the gap.
18022
180231998-12-09 Karl Heuer <kwzh@gnu.org>
18024
18025 * keyboard.c: Doc fixes.
18026
18027 * s/irix4-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Increase space.
18028
180291998-12-08 Andrew Innes <andrewi@harlequin.co.uk>
18030
18031 * w32select.c (Fw32_get_clipboard_data): Do not delete isolated CR
18032 characters, only convert CRLF to LF.
18033
180341998-12-08 Geoff Voelker <voelker@cs.washington.edu>
18035
18036 * makefile.nt: Do string comparision of _NMAKE_VER.
18037
180381998-12-06 Eli Zaretskii <eliz@mescaline.gnu.org>
18039
18040 * Makefile.in (msdos.o): Depend on termchar.h, charset.h,
18041 coding.h, and disptab.h
18042
18043 * msdos.c (Vdos_unsupported_char_glyph): New variable.
18044 (syms_of_msdos): DEFVAR_LISP it.
18045 (IT_insert_glyphs, IT_delete_glyphs): New functions which abort Emacs.
18046 (internal_terminal_init): Set up insert_glyphs_hook and
18047 delete_glyphs_hook to call them. Explicitly set char_ins_del_ok to 0.
18048 (unibyte_display_via_language_environment): New variable.
18049 (syms_of_msdos): Devfar it.
18050 (IT_write_glyphs): Honor glyph aliasing via Vglyph_table.
18051 Encode the character codes of the glyphs according to the
18052 terminal_coding in effect.
18053
180541998-12-04 Andreas Schwab <schwab@delysid.gnu.org>
18055
18056 * fns.c (Fstring_as_unibyte): Doc fix.
18057
180581998-12-03 Andreas Schwab <schwab@delysid.gnu.org>
18059
18060 * charset.h: Declare char_valid_p.
18061
180621998-12-03 Eli Zaretskii <eliz@mescaline.gnu.org>
18063
18064 * dosfns.c (dos_cleanup): Flush and fsync the termscript stream.
18065
18066 * msdos.c (init_environment): Record the time we started up.
18067 (IT_reset_terminal_modes): Don't restore the screen if we exit too
18068 fast after startup (aka crash).
18069
180701998-12-02 Geoff Voelker <voelker@cs.washington.edu>
18071
18072 * w32.c (check_windows_init_file): Use decode_env_path when
18073 using EMACSLOADPATH.
18074
180751998-12-02 Jason Rumney <jasonr@altavista.net>
18076
18077 * w32term.c (dumpglyphs): Use unsigned char arrays.
18078 Use FONT_MAX_WIDTH to detect and fudge proportional fonts
18079 for various languages.
18080 Compensate for fonts that have underhangs (e.g., Thai).
18081
18082 * w32term.h (FONT_MAX_WIDTH): New macro.
18083
180841998-12-02 Andrew Innes <andrewi@harlequin.co.uk>
18085
18086 * keyboard.c (Qlanguage_change): New variable.
18087 (syms_of_keyboard): Init it.
18088 (kbd_buffer_get_event) [WINDOWSNT]: Generate language-change events.
18089 (lispy_function_keys) [HAVE_NTGUI]: Remove names for modifier
18090 keys; add name for Escape key; extend to 256 elements.
18091 (parse_modifiers): Make non-static.
18092
18093 * keyboard.h (parse_modifiers): Declare prototype.
18094
18095 * termhooks.h (event_kind) [WINDOWSNT]: Define language_change_event.
18096
18097 * w32fns.c (w32_last_error): Fix cut+paste error.
18098 (Vw32_phantom_key_code): New variable.
18099 (Qhyper, Qsuper, Qmeta, Qalt, Qctrl, Qcontrol, Qshift): New variables.
18100 (syms_of_w32fns): Init and register them.
18101 (reset_modifiers): Use a more precise test for whether Emacs has
18102 keyboard focus. Synchronize state of all keys that can be used as
18103 modifiers, to overcome problems arising from hot-keys.
18104 (w32_key_to_modifier): Be careful not to call intern() to avoid
18105 requiring thread synchronization.
18106 (w32_msg_pump): Handle new WM_EMACS_TOGGLE_LOCK_KEY message.
18107 (w32_wnd_proc): Ensure lock key indicator lights are updated
18108 promptly on Windows 9x, by passing key events on to the system.
18109 (w32_wnd_proc): Use Vw32_phantom_key_code to stop system
18110 responding to Windows key events when not wanted.
18111 (w32_wnd_proc): Undo the mapping of Ctrl-Pause into cancel and
18112 Ctrl-NumLock into pause by the system.
18113 (w32_wnd_proc): Don't translate key combinations containing any
18114 modifiers other than shift (and capslock).
18115 (w32_wnd_proc): Reset modifier key states when receiving focus (we
18116 can't determine the key states until we have keyboard focus).
18117 (Fw32_toggle_lock_key): New function.
18118 (syms_of_w32fns): Defsubr it.
18119
18120 * w32inevt.c (key_event): Use Vw32_phantom_key_code. Undo the
18121 mapping of Ctrl-Pause into cancel, and Ctrl-NumLock into pause.
18122 (w32_console_toggle_lock_key): New function.
18123
18124 * w32term.h (WM_EMACS_TOGGLE_LOCK_KEY): New define.
18125
181261998-11-30 Richard Stallman <rms@psilocin.ai.mit.edu>
18127
18128 * search.c (Freplace_match): Set OPOINT clearly for the case
18129 where point is in the middle of the text to be replaced.
18130
18131 * xdisp.c (display_text_line): When handling HPOS < 0 after loop,
18132 if compute_motion fails to advance at all, don't back it up.
18133
181341998-11-28 Richard Stallman <rms@psilocin.ai.mit.edu>
18135
18136 * xfns.c (Qouter_window_id): New variable.
18137 (syms_of_xfns): Initialize it.
18138 (x_report_frame_params): Set up outer-window-id parameter.
18139
18140 * keymap.c (Fsingle_key_description): Fix previous change.
18141
181421998-11-26 Ken'ichi Handa <handa@delysid.gnu.org>
18143
18144 * lisp.h (Frequire): Update declaration.
18145
181461998-11-26 Kenichi Handa <handa@etl.go.jp>
18147
18148 * ccl.c (ccl_driver) <CCL_TranslateCharacter>: Don't suppress MSB
18149 if the charset is ascii.
18150 (ccl_driver) <CCL_TranslateCharacterConstTbl>: Likewise.
18151
18152 * charset.c (non_ascii_char_to_string): If C has modifier bits,
18153 make an appropriate one byte string.
18154 (char_bytes): Handle the case that C is a single byte char or has
18155 modifier bits.
18156
18157 * charset.h (CHAR_BYTES): If C has modifier bits, return 1.
18158
18159 * cmds.c (internal_self_insert): If C has modifier bits, insert
18160 appropriate one byte char.
18161
181621998-11-25 Richard Stallman <rms@psilocin.ai.mit.edu>
18163
18164 * fns.c (Fstring_as_unibyte, Fstring_as_multibyte):
18165 Clear text properties in the new string.
18166
181671998-11-24 Felix Lee <flee@cygnus.com>
18168
18169 * process.c (read_process_output): Call signal_after_change.
18170
181711998-11-24 Richard Stallman <rms@psilocin.ai.mit.edu>
18172
18173 * buffer.c (syms_of_buffer): Doc fix.
18174
18175 * keyboard.c (syms_of_keyboard): Doc fix.
18176
181771998-11-22 Richard Stallman <rms@psilocin.ai.mit.edu>
18178
18179 * frame.c (Fset_mouse_position): Doc fix.
18180
181811998-11-20 Richard Stallman <rms@psilocin.ai.mit.edu>
18182
18183 * keymap.c (Fmake_keymap): Doc fix.
18184
181851998-11-17 Kenichi Handa <handa@etl.go.jp>
18186
18187 * category.c (word_boundary_p): If C1 or C2 are composite
18188 characters, test their first components.
18189
181901998-11-16 Richard Stallman <rms@sucrose.ai.mit.edu>
18191
18192 * window.c (temp_output_buffer_show): Around temp-buffer-show-hook,
18193 don't do save-excursion, just restore selected window.
18194
18195 * window.c (window_loop): For UNSHOW_BUFFER,
18196 always do consider minibuffer windows.
427ec082 18197
26901792
DL
181981998-11-16 Kenichi Handa <handa@etl.go.jp>
18199
18200 * charset.h (SINGLE_BYTE_CHAR_P): Check if C is negative or not.
18201
18202 * charset.c (non_ascii_char_to_string): If C is negative, signal error.
18203
18204 * lisp.h (CHAR_TABLE_REF): Check if IDX is negative or not.
18205
18206 * s/bsdos4.h: New file.
18207
182081998-11-16 Kenichi Handa <handa@etl.go.jp>
18209
18210 * Makefile.in (abbrev.o): Depend on charset.h
18211 (bytecode.o): Depend on charset.h.
18212
18213 * bytecode.c: Include charset.h.
18214
18215 * abbrev.c: Include charset.h.
18216
18217 * syntax.h (SYNTAX_ENTRY_INT): For a composite character, check
18218 the first component.
18219
182201998-11-13 Ehud Karni <ehud@unix.simonwiesel.co.il>
18221
18222 * m/aviion-intel.h (LIBS_MACHINE): Delete redundant definition.
18223
182241998-11-11 Richard Stallman <rms@gnu.org>
18225
18226 * xterm.c (XTread_socket): Fix previous change in case F == 0.
18227
18228 * s/dgux5-4-3.h (BSD_PGRPS): Add #undef.
18229
18230 * s/dgux4.h (BROKEN_FIONREAD): #undef commented out.
18231 (INTERRUPT_INPUT): #define commented out.
18232
18233 * m/aviion-intel.h: New file.
18234
182351998-11-11 Eli Zaretskii <eliz@delysid.gnu.org>
18236
18237 * fns.c (MAX_ALLOCA): New macro.
18238 (Fbase64_encode_region, Fbase64_encode_string,
18239 Fbase64_decode_region, Fbase64_decode_string): Don't allocate
18240 more than MAX_ALLOCA bytes with alloca; otherwise use xmalloc.
18241
182421998-11-11 Ken'ichi Handa <handa@delysid.gnu.org>
18243
18244 * insdel.c (byte_combining_error): Error message improved.
18245
18246 * charset.c (char_valid_p): Handle a composite character correctly.
18247
182481998-11-11 Kenichi Handa <handa@etl.go.jp>
18249
18250 * charset.c (str_cmpchar_id): Check the byte sequence for
18251 composition more rigidly.
18252 (Fcompose_string): Allow DEL to be composed. Signal error if STR
18253 contains an invalid multibyte sequence.
18254
18255 * xterm.c (x_list_fonts): Don't change the value of maxnames.
18256
182571998-11-10 Andrew Innes <andrewi@harlequin.co.uk>
18258
18259 * w32term.h (struct w32_display_info): New element faked_key.
427ec082
SS
18260 (WM_EMACS_SETKEYBOARDLAYOUT):
18261 (WM_EMACS_REGISTER_HOT_KEY):
26901792 18262 (WM_EMACS_UNREGISTER_HOT_KEY): New message definitions.
427ec082
SS
18263 (LEFT_WIN_PRESSED):
18264 (RIGHT_WIN_PRESSED):
26901792
DL
18265 (APPS_PRESSED): New console keyboard modifier flags.
18266
18267 * w32term.c (convert_to_key_event): Removed.
18268 (is_dead_key): Copied to w32fns.c.
18269 (w32_read_socket): Generate language_change_event. Modify to work
18270 with keyboard handling changes in w32_wnd_proc.
18271
18272 * w32proc.c (sys_kill): Set extended key flag when faking
18273 Ctrl-Break keystrokes.
18274 (Fw32_get_locale_info): Allow LONGFORM parameter to specify an
18275 arbitrary locale property using a numerical index.
18276 (Vw32_valid_codepages): New variable.
427ec082
SS
18277 (enum_codepage_fn):
18278 (Fw32_get_valid_codepages):
18279 (Fw32_get_console_codepage):
18280 (Fw32_set_console_codepage):
18281 (Fw32_get_console_output_codepage):
18282 (Fw32_set_console_output_codepage):
18283 (Fw32_get_codepage_charset):
18284 (Fw32_get_valid_keyboard_layouts):
18285 (Fw32_get_keyboard_layout):
26901792
DL
18286 (Fw32_set_keyboard_layout): New functions, exposing Windows locale
18287 handling functions.
18288 (syms_of_ntproc): Register them.
18289
18290 * w32inevt.c: Include w32term.h and w32heap.h.
18291 (map_keypad_keys):
18292 (Vw32_enable_caps_lock):
18293 (Vw32_enable_num_lock):
18294 (Vw32_pass_lwindow_to_system):
18295 (Vw32_pass_rwindow_to_system):
18296 (Vw32_lwindow_modifier):
18297 (Vw32_rwindow_modifier):
18298 (Vw32_apps_modifier):
18299 (Vw32_scroll_lock_modifier):
18300 (w32_key_to_modifier): Add externs.
18301 (w32_kbd_mods_to_emacs): Recognize Windows keys, Apps key, and
18302 Scroll Lock as potential modifiers; exclude numpad keys from
18303 effect by CapsLock; act on Vw32_enable_caps_lock; remove obsolete
18304 code.
18305 (is_dead_key): Copy from w32fns.c.
18306 (w32_kbd_patch_key): Comment attempt to improve handling of
18307 dead-keys, and system bug relating to same on Windows NT. Work
18308 around the bug by calling ToUnicode and then converting to the
18309 correct codepage.
18310 (map_virt_key): Removed obsolete variable.
18311 (lispy_function_keys): Add extern.
18312 (key_event): Major rework of keyboard input handling: optionally
18313 recognize Windows keys and Apps key as modifiers; optionally treat
18314 NumLock, CapsLock and ScrollLock as function keys; let system
18315 translate keystrokes to characters to avoid system bugs relating
18316 to dead-key handling; preserve shift distinction for control
18317 characters. Remove some obsolete code.
18318
18319 * makefile.nt ($(BLD)\w32inevt.obj): Add dependencies on w32term.h
18320 and w32heap.h.
18321
18322 * w32fns.c (Vw32_pass_optional_keys_to_system): Variable removed.
18323 (Vw32_pass_lwindow_to_system):
18324 (Vw32_pass_rwindow_to_system):
18325 (Vw32_lwindow_modifier):
18326 (Vw32_rwindow_modifier):
18327 (Vw32_apps_modifier):
18328 (Vw32_enable_num_lock):
18329 (Vw32_enable_caps_lock):
18330 (Vw32_scroll_lock_modifier): New variables.
18331 (modifier_set): Return toggle state for Scroll Lock.
18332 (w32_key_to_modifier): New function. Returns chosen modifier bit
18333 for given key.
18334 (w32_get_modifiers): Returns modifier flags for
18335 non-keyboard input events.
18336 (construct_console_modifiers): Renamed from construct_modifiers;
18337 recognize Windows and Apps keys as modifiers.
18338 (w32_get_key_modifiers): New function. Returns modifier flags for
18339 keyboard input events.
18340 (map_keypad_keys): Make non-static. Use second arg as extended
18341 flag.
18342 (w32_grabbed_keys): New variable.
18343 (HOTKEY, HOTKEY_ID, HOTKEY_VK_CODE, HOTKEY_MODIFIERS): New macros.
18344 (register_hot_keys):
18345 (unregister_hot_keys):
18346 (lookup_vk_code):
18347 (w32_parse_hot_key):
18348 (Fw32_register_hot_key):
18349 (Fw32_unregister_hot_key):
18350 (Fw32_registered_hot_keys):
18351 (Fw32_reconstruct_hot_key): New functions to support hotkeys.
18352 (post_character_message): New function.
18353 (w32_msg_pump): Handle new messages for using hotkeys and changing
18354 keyboard layout/language.
18355 (w32_wnd_proc): Major rework of keyboard input handling:
18356 optionally recognize Windows keys and Apps key as modifiers;
18357 optionally treat NumLock, CapsLock and ScrollLock as function
18358 keys; let system translate keystrokes to characters to avoid
18359 system bugs relating to dead-key handling; preserve shift
18360 distinction for control characters; forward keyboard
18361 layout/language changes to lisp; detect and convert hot-key events
18362 to normal keystrokes.
18363 (syms_of_w32fns): Register new functions and variables.
18364 (w32_last_error): New function for use in debugging.
18365
183661998-11-10 Kenichi Handa <handa@etl.go.jp>
18367
18368 * category.h (CATEGORY_SET): Adjusted for the change of
18369 cmpchar_component.
18370 (CATEGORY_SET): Likewise.
18371
18372 * charset.c (cmpchar_component): New arg NOERROR. Check
18373 composition char ID more strictly.
18374 (Fcmpchar_component): Call cmpchar_component with NOERROR arg zero.
18375 (Fcmpchar_cmp_rule): If CHARACTER should be composed relatively,
18376 return 255.
18377 (Fcompose_string): Signal error if STR contains a rule-based
18378 composition character.
18379
18380 * charset.h (cmpchar_component): Proto-type adjusted.
18381
183821998-11-09 Kenichi Handa <handa@etl.go.jp>
18383
18384 * charset.c (string_to_non_ascii_char): Return correct length for
18385 a charset of dimension 2 and composition character.
18386
183871998-11-08 Richard Stallman <rms@sucrose.ai.mit.edu>
18388
18389 * keymap.c (Fsingle_key_description): Handle generic characters.
18390
18391 * process.c (Fprocess_status): Doc fix.
18392
183931998-11-06 Ken'ichi Handa <handa@delysid.gnu.org>
18394
18395 * charset.c (init_charset_once): Fix previous change.
18396
183971998-11-06 Kenichi Handa <handa@etl.go.jp>
18398
18399 * charset.c (string_to_non_ascii_char): Fix previous change.
18400 (char_valid_p): Check the validity of CHARSET by CHARSET_DEFINED_P.
18401
18402 * charset.h (SPLIT_NON_ASCII_CHAR): Check dimension of an invalid
18403 character correctly.
18404 (STRING_CHAR): Handle an invalid charater correctly.
18405
184061998-11-05 Kenichi Handa <handa@etl.go.jp>
18407
18408 * charset.c (string_to_non_ascii_char): Fix previous change.
18409
18410 * charset.h (MAKE_NON_ASCII_CHAR): Check validity of CHARSET.
18411
18412 * editfns.c (Fstring_to_char): Don't return a multibyte character
18413 if STRING is a unibyte string.
18414
18415 * indent.c (MULTIBYTE_BYTES_WIDTH): Check validity of a multibyte
18416 character.
18417
18418 * xdisp.c (display_text_line): Check validity of a multibyte character.
18419 (display_string): Likewise. Handle an invalid character correctly.
18420
184211998-11-05 Karl Heuer <kwzh@gnu.org>
18422
18423 * insdel.c (Fcombine_after_change_execute): Return nil, not junk.
18424 If nothing to do, return immediately.
18425 (syms_of_insdel): Initialize combine_after_change_buffer.
18426
184271998-11-05 Richard Stallman <rms@gnu.org>
18428
18429 * xterm.c (XTread_socket): ButtonPress clears f->mouse_moved.
18430
184311998-11-04 Geoff Voelker <voelker@cs.washington.edu>
18432
18433 * w32term.c (w32_enable_unicode_output): Rename from
18434 w32_no_unicode_output.
18435 (w32_use_unicode_for_codepage, syms_of_w32term): Use new name
18436 and new semantics.
18437
184381998-11-04 Jason Rumney <jasonr@altavista.net>
18439
18440 * w32fns.c (w32_list_fonts): Report an error if a frame has not
18441 been created yet.
18442
18443 * w32term.c (dumpglyphs): Use FRAME_FONT for w32_fill_area.
18444
184451998-11-04 Kenichi Handa <handa@etl.go.jp>
18446
18447 * charset.c (string_to_non_ascii_char): Change the check for the
18448 varidity of multibyte form.
18449 (update_charset_table): Check validity of BYTES. Don't set
18450 bytes_by_char_head here.
18451 (init_charset_once): Set bytes_by_char_head completely.
18452
18453 * frame.c (do_switch_frame): Cancel previous change.
18454
18455 * print.c (print_string): Check validity of a character.
18456 (print): Likewise.
18457
18458 * sysdep.c [nec_ews_svr4]: Extern *_sobuf.
18459
18460 * m/ews4800.h, s/ux4800.h: New files.
18461
184621998-11-03 Theodore Jump <tjump@tertius.com>
18463
18464 * makefile.nt: Compile multiple source files when possible.
18465
18466 * w32faces.c (Qmouse_face): Replace definition with extern decl.
427ec082 18467
26901792
DL
184681998-11-03 Andrew Innes <andrewi@delysid.gnu.org>
18469
18470 * w32.c (stat): GetFileInformationByHandle can legitimately fail,
18471 so don't rely on it succeeding.
18472
18473 * w32fns.c (x_to_w32_font): Specify DEFAULT_CHARSET in the w32
18474 LOGFONT struct if x font doesn't specify the charset.
18475 (x_to_w32_charset): Change >= to == when testing results of
18476 stricmp.
18477
184781998-11-02 Richard Stallman <rms@sucrose.ai.mit.edu>
18479
18480 * fns.c (Frequire): New arg NOERROR.
18481
184821998-11-02 Andrew Innes <andrewi@harlequin.co.uk>
18483
18484 * fileio.c (Fsubstitute_in_file_name) [DOS_NT]: Fix typo.
18485
184861998-10-31 Richard Stallman <rms@psilocin.ai.mit.edu>
18487
18488 * xfaces.c (Qmouse_face): Replace definition with extern decl.
18489 (syms_of_xfaces): Initialization deleted.
18490
18491 * textprop.c (Qmouse_face): Variable definition moved here.
18492 (syms_of_textprop): Initialize it.
18493
18494 * data.c (set_internal): For built-in maybe-local vars,
18495 when BINDFLAG is set, do not mark them as local.
18496
184971998-10-31 Ken'ichi Handa <handa@delysid.gnu.org>
18498
18499 * insdel.c (replace_range): Fix previous change.
18500
185011998-10-31 Kenichi Handa <handa@etl.go.jp>
18502
18503 * editfns.c (Fsubst_char_in_region): Fix previous change.
18504 (Ftranslate_region): Fix previous change.
18505
18506 * fns.c (Fbase64_decode_region): Fix previous change.
18507
18508 * frame.c (do_switch_frame): Update minibuf_window if necessary.
18509
18510 * insdel.c (byte_combining_error): New function.
18511 (CHECK_BYTE_COMBINING_FOR_INSERT): Call byte_combining_error.
18512 (insert_from_string_1): Set *(GPT_ADDR) to 0 before calling
18513 CHECK_BYTE_COMBINING_FOR_INSERT.
18514 (insert_from_buffer_1): Likewise.
18515 (adjust_after_replace): Check the posibility of inhibitted byte
18516 combining correctly.
18517 (replace_range): Before signaling an error for inhibitted byte
18518 combining, recover the buffer in a safe state.
18519 (del_range_2): Check the posibility of inhibitted byte combining
18520 correctly.
18521
185221998-10-30 Andreas Schwab <schwab@delysid.gnu.org>
18523
18524 * xselect.c (Vselection_coding_system): Doc fix.
18525
18526 * fns.c (Fbase64_encode_region): Use SET_PT_BOTH instead of SET_PT
18527 when we have both char and byte position. Fix type clashes.
18528
18529 * eval.c (Fsignal): Use a separate format string when passing
18530 error message string to fatal, in case it contains %'s.
18531
18532 * editfns.c (Fchar_after): Fix type clashes.
18533
18534 * charset.c (Fchar_bytes): Doc fix.
18535 (char_bytes): Fix returned value to match returned type.
18536 (syms_of_charset): Fix type clash in initialisation of
18537 Vauto_fill_chars.
18538
185391998-10-29 Geoff Voelker <voelker@cs.washington.edu>
18540
18541 * w32console.c (initialize_w32_display): Use buffer coords
18542 instead of buffer size (which may be larger than the window).
18543
18544 * fileio.c (init_fileio_once): New function.
18545
18546 * emacs.c (main): Invoke init_fileio_once.
18547
185481998-10-28 Paul Eggert <eggert@twinsun.com>
18549
18550 * xterm.c (XTread_socket): Check the returned value of
18551 XmbLookupString more carefully.
18552
185531998-10-28 Kenichi Handa <handa@etl.go.jp>
18554
18555 * coding.c (DECODE_CHARACTER_ASCII): Check validity of inserted code.
18556 (DECODE_CHARACTER_DIMENSION1): Likewise.
18557 (DECODE_CHARACTER_DIMENSION2): Likewise.
18558 (decode_coding_sjis_big5): Check the 2nd byte of SJIS correctly.
18559
18560 * editfns.c (Fsubst_char_in_region): Fix previous change.
18561 (Ftranslate_region): Fix previous change.
18562
18563 * insdel.c (check_markers): Check if markers are at character boundry.
18564 (adjust_markers_for_insert): Fix previous change.
18565 (count_combining_before): Don't limit the check at BEGV.
18566 (count_combining_after): Don't limit the check at ZV.
18567 (CHECK_BYTE_COMBINING_FOR_INSERT): New macro.
18568 (insert_1_both): Call CHECK_BYTE_COMBINING_FOR_INSERT.
18569 (insert_from_string_1): Likewise.
18570 (insert_from_buffer_1): Likewise.
18571 (adjust_after_replace): Inhibit bytes combined across region
18572 boundary. Update end_unchanged correctly.
18573 (replace_range): Call CHECK_BYTE_COMBINING_FOR_INSERT. Update
18574 end_unchanged correctly.
18575 (del_range_2): Inhibit bytes combined across region boundary.
18576 Update end_unchanged correctly.
18577
185781998-10-27 Geoff Voelker <voelker@cs.washington.edu>
18579
18580 * w32.c (check_windows_init_file): Also look in load path specified
18581 in environment.
18582
18583 * w32console.c (Fset_message_beep): Recognize 'silent.
18584 (w32_sys_ring_bell): Do nothing for the 'silent sound.
427ec082 18585
26901792
DL
18586 * w32fns.c (w32_color_map_lookup): Remove duplicate definition.
18587
18588 * w32select.c (Vnext_selection_coding_system): New variable.
18589 (syms_of_w32select): DEFVAR_LISP it.
18590 (Fw32_set_clipboard_data): Use Vnext_selection_coding_system if
18591 non-nil. Always convert multibyte strings.
18592 (Fw32_get_clipboard_data): Use Vnext_selection_coding_system if
18593 non-nil. Always convert a string that includes non-ASCII characters.
427ec082 18594
26901792
DL
185951998-10-27 Richard Stallman <rms@psilocin.ai.mit.edu>
18596
18597 * fns.c (Fbase64_decode_string): Doc fix.
18598 (Fbase64_decode_region, Fbase64_encode_string Fbase64_encode_region):
18599 Likewise.
18600
186011998-10-27 Dave Love <fx@gnu.org>
18602
18603 * fns.c (Fbase64_decode_region, Fbase64_encode_region): Fix
18604 newline in doc string.
18605
186061998-10-27 Kenichi Handa <handa@etl.go.jp>
18607
18608 * editfns.c (Fsubst_char_in_region): Correctly handle the case
18609 that byte combining before happens.
18610 (Ftranslate_region): Likewise.
18611
18612 * insdel.c (adjust_after_replace): Correctly handle the case that
18613 both byte combining before and byte combining after happen.
18614 (replace_range): Likewise.
18615
186161998-10-26 Kenichi Handa <handa@etl.go.jp>
18617
18618 * category.c (syms_of_category): Doc-string modified.
18619
18620 * coding.c (code_convert_region): Kill the work buffer created by
18621 pre-write-conversion.
18622
186231998-10-25 Jason Rumney <jasonr@altavista.net>
18624
18625 * emacs.c (main) [HAVE_NTGUI]: Invoke syms_of_fontset().
18626
186271998-10-23 Kenichi Handa <handa@etl.go.jp>
18628
18629 * coding.c (code_convert_region): While preserving the orignal
18630 point, pay attention to the byte combining problem.
18631
18632 * fns.c (Fbase64_decode_region): Pay attention to the byte
18633 combining problem.
18634
18635 * insdel.c (adjust_markers_for_insert): Adjust markers by taking
18636 combined_before_bytes and combined_after_bytes into account.
18637 (count_combining_after): Handle the case that LENGTH is zero.
18638 (adjust_after_replace): Record deletion at correct buffer
18639 position. Handle the case that LEN is zero.
18640 (replace_range): Record deletion at correct buffer position.
18641 (del_range_2): Call adjust_makers_for_replace to adjust makers for
18642 combined bytes.
18643
186441998-10-21 Richard Stallman <rms@psilocin.ai.mit.edu>
18645
18646 * alloc.c (Fgarbage_collect): Block input around most of the function.
427ec082 18647
26901792
DL
186481998-10-21 Kenichi Handa <handa@etl.go.jp>
18649
18650 * coding.c (setup_coding_system): Fix setting up
18651 coding->spec.ccl.valid_codes for CCL based coding system.
18652 (code_convert_region): Set point to FROM before inserting the
18653 result of pre-write-funciton. Preserve original point.
18654 (code_convert_string): If coding->type is coding_type_ccl, do
18655 conversion even if the length of conversion region is zero.
18656
18657 * fontset.c: Include frame.h before fontset.h.
427ec082 18658 (list_fonts_func): Fix prototype.
26901792
DL
18659
18660 * frame.c: Include frame.h before fontset.h.
18661
18662 * xterm.c: Likewise.
18663
186641998-10-21 Jason Rumney <jasonr@altavista.net>
18665
18666 * x-list-font.c (Fx_list_fonts): Access frame parameters throught
18667 general macros. Don't call x_list_font directory, instead call a
18668 function set in list_fonts_func.
18669
18670 * fontset.h (list_fonts_func): Fix prototype.
18671
186721998-10-20 Jason Rumney <jasonr@altavista.net>
18673
18674 * makefile.nt (w32fns.c): Add x-list-font.c to dependancies.
18675
18676 * w32faces.c: Update comments referring to obsolete structs.
18677 (allocate_face, copy_face, face_eql, load_font,
18678 Fpixmap_spec_p, free_frame_faces, new_computed_face,
18679 frame_update_line_height, merge_faces, compute_base_face,
18680 Fset_face_attribute_internal): Use fontset support based on xfaces.c.
18681
18682 * w32fns.c: (Vx_pixel_size_width): New global variable.
18683 (unibyte_display_via_language_environment): New global variable.
18684 (x_set_font): Add support for setting fontsets.
18685 (Fx_create_frame): Add check_w32(). Initialize fontsets. Fix
18686 font names to match xlfd-tight-regexp.
18687 (w32_load_font): Rewrite based on x_load_font.
18688 (x_to_w32_charset, w32_to_x_charset): Add character sets. Use
18689 `iso8859-1' rather than `ansi'.
18690 (w32_to_x_font): Remove `-' from font name. Remove the `-' off the
18691 end. Move charset into `charset registry' field.
18692 (enum_font_cb2): Check charsets match. Include width in font list.
18693 (w32_list_fonts): Rewrite based on x_list_fonts.
18694 Moved from w32term.c to have access to enumfont_t struct.
18695 (Fx_list_fonts): w32 specific version eliminated. Include
18696 `x-list-fonts.c'.
18697 (w32_get_font_info, w32_query_font, w32_find_ccl_program): New
18698 functions for fontset support - adapted from x_ equivalents.
18699 (syms_of_w32fns): New lisp variables initialised. Function
18700 pointers for fontset.c set up.
18701
427ec082 18702 * w32term.c: Include fontset.h. Define codepage macros.
26901792
DL
18703 Add ENCODE_BIG5 macro from coding.c.
18704 (w32_no_unicode_output): New variable.
18705 (w32_codepage_for_charset, w32_use_unicode_for_codepage): New
18706 functions.
18707 (BUILD_WCHAR_T, BYTE1, BYTE2): New macros.
18708 (dumpglyphs): Rewrite based on xterm.c equivalent.
18709 (x_new_font): Use functionality provided in fontset.c.
18710 (x_new_fontset): New function based on the one in xterm.c.
18711 (syms_of_w32term): Add w32-no-unicode-output flag.
18712
427ec082 18713 * w32term.h: Remove redundant font_info struct definition.
26901792
DL
18714 (Vx_pixel_size_width_font_regexp,
18715 unibyte_display_via_language_environment): Declare variables.
427ec082 18716 (w32_list_fonts, w32_get_font_info, w32_query_font, w32_load_font):
26901792
DL
18717 Declare functions.
18718 (w32_output): New fields font_baseline and fontset.
18719 (FRAME_FONTSET, FRAME_W32_FONT_TABLE): New macros.
18720
18721 * w32xfns.c: Include charset.h and fontset.h.
18722
187231998-10-20 Richard Stallman <rms@psilocin.ai.mit.edu>
18724
18725 * syntax.c (syms_of_syntax): Fix the setup of Qscan_error.
18726
187271998-10-20 Eli Zaretskii <eliz@mescaline.gnu.org>
18728
18729 * msdos.c (mouse_init): Reset the button press/release info of the
18730 mouse driver.
18731 (mouse_preempted): New variable.
18732 (dos_rawgetc): Don't generate mouse events if mouse is preempted.
18733 (XMenuActivate): Preempt the mouse during menu-handling loop.
18734 Release the current time slice while idling in the menu-handling
18735 loop. Leave the loop only if the user pressed, then released the
18736 same button. Discard all mouse events that are pending in the
18737 event queue before exiting.
18738
187391998-10-19 Richard Stallman <rms@psilocin.ai.mit.edu>
18740
18741 * editfns.c (Fformat): Increase buffer size for floating format.
18742
187431998-10-17 Kenichi Handa <handa@etl.go.jp>
18744
18745 * charset.c (Vauto_fill_chars, Qauto_fill_chars): New variables.
18746 (syms_of_charset): Staticpro and initialize Qauto_fill_chars.
18747 Declare auto-fill-chars as a Lisp variable and initialize it.
18748
18749 * charset.h (Vauto_fill_chars): Extern it.
18750
18751 * cmds.c (internal_self_insert): Check Vauto_fill_chars.
18752
187531998-10-16 Kenichi Handa <handa@etl.go.jp>
18754
18755 * casefiddle.c (casify_object): Use make_string instead of
18756 make_specified_string to cope with byte-combining situation.
18757
18758 * coding.c (decode_coding_iso2022): Set coding->fake_multibyte to
18759 1 when encountered with a code of the range 0x80..0x9F.
18760
187611998-10-14 Eli Zaretskii <eliz@mescaline.gnu.org>
18762
18763 * callproc.c (Fcall_process) [MSDOS]: Use $TMPDIR instead of
18764 trying $TMP and $TEMP, since the former is always set in msdos.c.
18765 (Fcall_process_region) [DOS_NT]: When looking for a place to put
18766 the temporary files, check $TMPDIR as well.
18767
187681998-10-14 Richard Stallman <rms@psilocin.ai.mit.edu>
18769
427ec082 18770 * process.c (exec_sentinel, read_process_output):
26901792
DL
18771 Restore waiting_for_user_input_p after running Lisp code.
18772
18773 * keyboard.c (parse_menu_item): Avoid initialization for Lisp_Object.
18774 (command_loop): Likewise.
18775
187761998-10-14 Kenichi HANDA <handa@etl.go.jp>
18777
18778 * data.c (Faset): Fix previous change.
18779
18780 * fns.c (Ffillarray): Fix previous change.
18781
18782 * insdel.c (adjust_markers_for_combining): This function deleted.
18783 (adjust_markers_for_replace): Correctly adjust marker positions.
18784 Don't record these adjustment because they were recorded already.
18785 (combine_bytes): Don't adjust markers here.
18786
187871998-10-13 Richard Stallman <rms@psilocin.ai.mit.edu>
18788
18789 * minibuf.c (Fdisplay_completion_list): Put on mouse-face properties.
18790
187911998-10-12 Richard Stallman <rms@psilocin.ai.mit.edu>
18792
18793 * keyboard.c (Fclear_this_command_keys): New function.
18794 (syms_of_keyboard): defsubr it.
18795
18796 * macros.c (Fexecute_kbd_macro): Set real_this_command.
18797
187981998-10-12 Kenichi Handa <handa@etl.go.jp>
18799
18800 * ccl.c (CCL_DECODE_SJIS, CCL_ENCODE_SJIS): Swap the definitions.
18801
18802 * charset.c (Fstring): Call make_string instead of
18803 make_string_from_bytes.
18804 (Ffind_charset_region): Include `composition' in the returned list
18805 if the region contains any composite characters.
18806 (Ffind_charset_string): Include `composition' in the returned list
18807 if the string contains any composite characters.
18808 (find_charset_in_str): Handle CMPCHARP arg correctly.
18809
18810 * coding.c (shrink_decoding_region): If a charset other than ascii
18811 is initially designated to G0, don't shrink the region.
18812 (shrink_encoding_region): Likewise.
18813
18814 * data.c (Faset): If ARRAY is a multibyte string, pay attention to
18815 byte-combining situation.
18816
18817 * fns.c (clear_string_char_byte_cache): New function.
18818 (Ffillarray): Handle multibyte string correctly.
18819
18820 * lisp.h (clear_string_char_byte_cache): Extern it.
18821
18822 * xselect.c (lisp_data_to_selection_data): Call
18823 find_charset_in_str with CMPCHARP arg 0.
18824 * w16select.c (Fw16_set_clipboard_data): Likewise.
18825 * w32select.c (Fw32_set_clipboard_data): Likewise.
18826
188271998-10-11 Richard Stallman <rms@psilocin.ai.mit.edu>
18828
18829 * keyboard.c (parse_menu_item): For top level of menu bar,
18830 accept ordinary commands, and treat them just like a keymap.
18831
188321998-10-11 Richard Stallman <rms@sucrose.ai.mit.edu>
18833
18834 * xdisp.c (redisplay_window): Clear w->window_end_valid
18835 before running the window-scroll-functions hook, if appropriate.
18836
188371998-10-10 Richard Stallman <rms@psilocin.ai.mit.edu>
18838
18839 * data.c (Fstring_to_number): Don't recognize floating point
18840 if base is not 10.
18841
18842 * window.c (window_loop): New alternative CHECK_ALL_WINDOWS.
18843 (check_all_windows): New function for debugging tests.
18844 (syms_of_window): Initialize it.
18845
18846 * window.c (Qwindow_configuration_p): New variable.
18847 (Fwindow_configuration_frame): New function.
18848 (syms_of_window): defsubr it.
18849 (Fset_window_configuration): Return t if frame is live.
18850 Use Qwindow_configuration_p.
18851
18852 * xfns.c (check_x_display_info): Don't use selected_frame
18853 if it is dead.
18854
188551998-10-09 Geoff Voelker <voelker@cs.washington.edu>
18856
18857 * w32fns.c (x_create_bitmap_from_file): Skip special files.
18858
188591998-10-08 Kenichi Handa <handa@etl.go.jp>
18860
18861 * buffer.h (inhibit_modification_hooks): Extern it.
18862
18863 * buffer.c (inhibit_modification_hooks): New variable.
18864 (init_buffer_once): Initialize inhibit_modification_hooks to 0.
18865
18866 * charset.c (invalid_character): Prepend `0' to octal
18867 representation. Give error sufficient args.
18868
18869 * coding.c (code_convert_region): Set inhibit_modification_hooks
18870 to 1 before calling Fset_text_properties.
18871
18872 * insdel.c (signal_before_change): If inhibit_modification_hooks
18873 is nonzero, do nothing.
18874 (signal_after_change): Likewise.
18875
188761998-10-08 Emilio Lopes <Emilio.Lopes@Physik.TU-Muenchen.DE>
18877
18878 * process.c: Doc fixes.
18879
188801998-10-08 Richard Stallman <rms@sucrose.ai.mit.edu>
18881
18882 * syntax.c (scan_lists): Bring FROM back into range BEGV...ZV.
18883
188841998-10-07 Geoff Voelker <voelker@cs.washington.edu>
18885
18886 * w32.c (init_ntproc): Check for Windows init file.
18887 (term_ntproc): Do not check for it here.
18888
188891998-09-28 Kenichi Handa <handa@etl.go.jp>
18890
18891 * coding.c (check_composing_code): Fix previous change. Now it
18892 alwasy returns 0 or -1.
18893 (decode_coding_iso2022): Adjusted for the above change.
18894 (encode_coding_iso2022): When encoding the last block, flush out
18895 tailing garbage bytes.
18896 (setup_coding_system): Delete unnecessary code.
18897 (shrink_decoding_region): Check translation table. If ASCII
18898 should be translated, give up shrinking.
18899 (shrink_encoding_region): Likewise.
18900 (SHRINK_CONVERSION_REGION_THRESHHOLD): New macro.
18901 (SHRINK_CONVERSION_REGION): New macro.
18902 (code_convert_region): Call SHRINK_CONVERSION_REGION. Delete text
18903 properties here.
18904 (code_convert_region): In the case of encoding, always calulate
18905 correct character number.
18906 (code_convert_string): Call SHRINK_CONVERSION_REGION.
18907 (code_convert_region1): Don't delete text properties here.
18908
18909 * insdel.c (adjust_after_replace): Don't delete text properties here.
18910
18911 * term.c (encode_terminal_code): Handle raw 8-bit codes correctly.
18912
189131998-09-27 Richard Stallman <rms@psilocin.ai.mit.edu>
18914
18915 * emacs.c (sort_args): Fill extra space with NULL ptrs.
18916
189171998-09-26 Kenichi Handa <handa@etl.go.jp>
18918
18919 * coding.h (struct coding_system): New member composed_chars.
18920
18921 * coding.c (check_composing_code): If the current composing
18922 sequence doesn't end properly, return -1.
18923 (DECODE_CHARACTER_ASCII): Update coding->composed_chars.
18924 (DECODE_CHARACTER_DIMENSION1): Likewise.
18925 (decode_coding_iso2022): Check validity of a composing sequence.
18926 (code_convert_string): If the length of text to be converted is
18927 shrunk to zero, don't perform code conversion.
18928 (shrink_decoding_region): Fix previous change.
18929
18930 * editfns.c (Fformat): Check format control characters.
18931
189321998-09-25 Kenichi Handa <handa@etl.go.jp>
18933
18934 * coding.c (decode_eol): While decoding DOS-like eol, handle a
18935 single CR code correctly.
18936 (shrink_decoding_region) <CODING_CATEGORY_IDX_ISO_7 or
18937 CODING_CATEGORY_IDX_ISO_7_TIGHT>: Skip also 8-bit codes.
18938
189391998-09-23 Geoff Voelker <voelker@cs.washington.edu>
18940
18941 * w32fns.c (w32_color_map_lookup): New function.
18942 (x_to_w32_color): Approximate colors ending in numbers if necessary.
18943
189441998-09-22 Kenichi Handa <handa@etl.go.jp>
18945
18946 * ccl.c (ccl_driver): Report correct CCL program counter on error.
18947
18948 * xmenu.c (single_submenu) [! HAVE_MULTILINGUAL_MENU]: Make
18949 strings unibyte.
18950 (xmenu_show) [! HAVE_MULTILINGUAL_MENU]: Likewise.
18951
189521998-09-22 Kenichi Handa <handa@etl.go.jp>
18953
18954 * callint.c (Fcall_interactively): Don't use input method when
18955 reading a character in the case of `c' code letter.
18956
189571998-09-21 Dave Love <fx@gnu.org>
18958
18959 * editfns.c (Fsave_restriction): Doc fix.
18960
189611998-09-21 Richard Stallman <rms@gnu.org>
18962
18963 * lread.c (build_load_history): Do add to Vload_history
18964 even when dumping Emacs.
18965
189661998-09-18 Kenichi Handa <handa@etl.go.jp>
18967
18968 * ccl.c (CCL_WRITE_CHAR): Don't use bcopy.
18969 (ccl_driver): If BUFFER-MAGNIFICATION of the CCL program is 0,
18970 cause error if the program is going to output some bytes. When
18971 outputing a string to notify an error, check the case that
18972 DST_BYTES is zero.
18973
427ec082 18974 * coding.h (CODING_FINISH_INTERRUPT): New macro.
26901792
DL
18975
18976 * coding.c (ccl_coding_driver): If ccl_driver is interrupted by a
18977 user or the CCL program executed an invalid command, return
18978 CODING_FINISH_INTERRUPT.
18979 (code_convert_region): Pay attention to the converters return
18980 value CODING_FINISH_NORMAL and CODING_FINISH_INTERRUPT.
18981
189821998-09-16 Kenichi Handa <handa@etl.go.jp>
18983
18984 * coding.c (code_convert_region): Update beg_unchanged and
18985 end_unchanged after we delete the source text.
18986
18987 * insdel.c (adjust_markers_for_replace): Don't adjust a byte
18988 position if it is FROM.
18989 (adjust_markers_for_combining): New function.
18990 (combine_bytes): Call adjust_markers_for_combining instead of
18991 adjust_markers_for_replace.
18992 (adjust_after_replace): Record deletion of combining after bytes
18993 with the correct position.
18994 (replace_range): Likewise. Record the actual deletion after
18995 recoding deletions of combining bytes.
18996
18997 * xdisp.c (message_log_check_duplicate): Count byte length of the
18998 latest message correctly.
18999
190001998-09-12 Richard Stallman <rms@gnu.org>
19001
19002 * xdisp.c (redisplay_internal): Use TEMP_SET_PT_BOTH
19003 instead of SET_PT_BOTH.
19004 (try_window_id, display_text_line): Likewise.
19005
190061998-09-12 Karl Heuer <kwzh@gnu.org>
19007
19008 * data.c (Fmake_local_variable): Doc fix.
19009
190101998-09-10 Dave Love <fx@gnu.org>
19011
19012 * print.c (Fwith_output_to_temp_buffer): Doc fix.
19013
190141998-09-10 Richard Stallman <rms@gnu.org>
19015
19016 * s/irix6-0.h (TIOCSIGSEND): Add #undef.
19017 (bcopy, bcmp, bzero): Add #undef.
19018
19019 * keyboard.c (command_loop_1): When switching to selected window's bfr,
19020 first exit if selected frame is dead (no live frames remain).
19021 (read_key_sequence): Likewise.
19022
190231998-09-10 Karl Heuer <kwzh@gnu.org>
19024
19025 * emacs.c (main): Mention --display and --eval in help.
19026
190271998-09-07 Paul Eggert <eggert@twinsun.com>
19028
19029 * editfns.c (emacs_memftime): New function.
19030 (Fformat_time_string): Use it to handle null bytes in formats
19031 correctly.
19032
190331998-09-08 Kenichi Handa <handa@etl.go.jp>
19034
19035 * charset.c (Ffind_charset_region): Optimization for unibyte buffer.
19036 (Ffind_charset_string): For unibyte string, return (ascii).
19037
19038 * editfns.c (Fsubst_char_in_region): Call replace_range with the
19039 arg MARKERS 1.
19040
19041 * insdel.c (adjust_after_replace): Don't add combining bytes to
19042 the args given to adjust_point. Handle correctly the case that
19043 there are both before and after combining bytes.
19044 (replace_range): Likewise.
19045
190461998-09-07 Lars Magne Ingebrigtsen <larsi@gnus.org>
19047
19048 * fns.c (base64_decode_1, base64_encode_1): New functions.
19049 (Fbase64_decode_string, Fbase64_encode_string): New functions.
19050 (Fbase64_decode_region, Fbase64_encode_region): New functions.
19051
190521998-09-07 Karl Heuer <kwzh@gnu.org>
19053
19054 * eval.c (error): After enlarging buffer, write to it, not to buf.
19055
19056 * fns.c (Fwidget_put): Return VALUE instead of garbage.
19057
190581998-09-07 Kenichi Handa <handa@etl.go.jp>
19059
19060 * charset.h (STRING_CHAR_AND_LENGTH): Return correct value in
19061 ACTUAL_LEN even if LEN is too short to have a valid multibyte form.
19062 (STRING_CHAR_AND_CHAR_LENGTH): Likewise.
19063
19064 * coding.c (ccl_coding_driver): Always calculate correct mulibyte
19065 chars in produced byte sequence.
19066 (Ffind_operation_coding_system): Doc-string fixed.
19067
19068 * insdel.c (count_combining_after): Check also preceding bytes at
19069 POS if all characters in STRING are not character head.
19070
190711998-09-06 Paul Eggert <eggert@twinsun.com>
19072
19073 * editfns.c (Fformat_time_string, Fdecode_time, Fcurrent_time_zone):
19074 Don't assume that localtime and gmtime return non-NULL.
19075
190761998-09-06 Lars Magne Ingebrigtsen <larsi@gnus.org>
19077
19078 * fns.c (Fbase64_decode_string, Fbase64_encode_string,
19079 base64_decode_1, Fbase64_decode_region, Fbase64_encode_region):
19080 New functions.
19081
190821998-09-06 Richard Stallman <rms@gnu.org>
19083
19084 * editfns.c (Fformat): Detect incomplete format spec at string's end.
19085
19086 * lread.c (Fload): Handle case where openp finds a magic file
19087 but it has no `load' handler or that handler calls `load'.
19088 If FOUND != FILE, find FOUND's handler even if inhibited for FILE.
19089
190901998-09-04 Dave Love <fx@gnu.org>
19091
19092 * buffer.c (enable-multibyte-characters): Doc fix.
19093
190941998-09-02 Geoff Voelker <voelker@cs.washington.edu>
19095
19096 * w32heap.c (allocate_heap): Define NTHEAP_PROBE_BASE by default.
19097
190981998-09-01 Kenichi Handa <handa@etl.go.jp>
19099
19100 * editfns.c (Ftranspose_regions): Use BYTE_POS_ADDR to get an
19101 address in buffer from byte-position.
19102
191031998-09-01 Eli Zaretskii <eliz@delysid.gnu.org>
19104
19105 * w16select.c (Vnext_selection_coding_system): New variable.
19106 (syms_of_win16select): DEFVAR_LISP it. No need to staticpro
19107 Vselection_coding_system.
19108 (Fw16_set_clipboard_data): Always convert multibyte strings. Use
19109 Vnext_selection_coding_system if non-nil.
19110 (Fw16_get_clipboard_data): Always convert a string that includes
19111 non-ASCII characters. Use Vnext_selection_coding_system if
19112 non-nil.
19113
191141998-08-31 Andrew Innes <andrewi@harlequin.co.uk>
19115
19116 * w32fns.c (w32_wnd_proc): Always zero button_state when releasing
19117 mouse capture.
19118
191191998-08-31 Kenichi Handa <handa@etl.go.jp>
19120
19121 * xterm.c (x_load_font): If SIZE is 0, don't use a name
19122 x_list_font returns.
19123
191241998-08-31 Paul Eggert <eggert@twinsun.com>
19125
19126 * lread.c (read1): Don't assume that atof ("-0.0") yields +0.0.
19127 Handle leading '-' uniformly for zeros, infinities, and NaNs.
19128
191291998-08-31 Eli Zaretskii <eliz@delysid.gnu.org>
19130
19131 * msdos.c (IT_cmgoto): When tracking echo area messages with the
19132 cursor, save and restore previous cursor position in the
19133 minibuffer.
19134
191351998-08-31 Kenichi Handa <handa@etl.go.jp>
19136
19137 * charset.c (unibyte_char_to_multibyte):
19138 Vnonacii_translation_table will convert a 7-bit charcater.
19139 (multibyte_char_to_unibyte): Handle the case that
19140 Vnonacii_translation_table converts a multibyte charcater to a
19141 unibyte charcter of less than 128.
19142 (init_charset_once): Initialize nonascii_insert_offset and
19143 Vnonacii_translation_table.
19144
19145 * coding.c (decode_coding): Even if SRC_BYTES is zero, try
19146 processing if CODING requires flushing.
19147 (encode_coding): Likewise.
19148 (code_convert_region): Likewise.
19149 (code_convert_string): Likewise.
19150
19151 * fns.c (concat): If Vnonascii_translation_table is non-nil, try
19152 to convert a character less than 160 to multibyte.
19153 * insdel.c (copy_text): Likewise.
19154 (count_size_as_multibyte): Likewise.
19155 * xterm.c (dumpglyphs): Likewise.
19156
191571998-08-29 Paul Eggert <eggert@twinsun.com>
19158
19159 * data.c (arith_driver, float_arith_driver): Compute (- x) by
19160 using negation, not subtraction; this makes a difference with
19161 IEEE floating point arithmetic (and also if integer arithmetic
19162 is ones' complement or signed-magnitude!).
19163
191641998-08-29 Karl Heuer <kwzh@gnu.org>
19165
19166 * xfns.c (x_create_bitmap_from_file): Fail immediately if magic.
19167
191681998-08-28 Ken'ichi Handa <handa@delysid.gnu.org>
19169
19170 * charset.c (Fchar_bytes): Add \n\ in doc-string.
19171
191721998-08-28 Paul Eggert <eggert@twinsun.com>
19173
19174 * s/sol2-4.h (NOT_USING_MOTIF): New macro.
19175 (LD_SWITCH_SYSTEM_TEMACS): Put /usr/dt/lib in the link library
19176 path only if we're not building with Motif.
19177
191781998-08-28 Kenichi Handa <handa@etl.go.jp>
19179
19180 * insdel.c (adjust_after_replace): Fix the code to record undo
19181 information for the case that `before combining' happens. Remove
19182 text properties which are added to the new text by
19183 offset_intervals.
19184
19185 * coding.c (code_convert_region1): Remove all text properties of
19186 the region.
19187
191881998-08-28 Kenichi Handa <handa@etl.go.jp>
19189
19190 * charset.h (CHAR_BYTES): New macro.
19191
19192 * charset.c (Fchar_bytes): Now always return 1.
19193 (char_bytes): New function.
19194
19195 * editfns.c (Fposition_bytes): If the arg POSITION is out of
19196 range, return nil.
19197 (Fbyte_to_position): If the arg BYTEPOS is out of range, return
19198 nil.
19199
19200 * data.c (Faset): Use macro CHAR_BYTES instead of Fchar_bytes.
19201 * fns.c (concat): Likewise.
19202 * insdel.c (count_size_as_multibyte): Likewise.
19203 * xdisp.c (message_dolog): Likewise.
19204
192051998-08-27 Kenichi Handa <handa@etl.go.jp>
19206
19207 * coding.c (detect_coding_iso2022): Handle ESC N and ESC O
19208 correctly. They are for SS2 and SS3 respectively.
19209 (ccl_coding_driver): Fix previous change.
19210
192111998-08-26 Paul Eggert <eggert@twinsun.com>
19212
19213 * xterm.c (fixup_locale): New function. For now, it resets
19214 LC_TIME to "C" (reverting the 1998-08-07 change), and also
19215 resets LC_MESSAGES to "C".
19216 (x_term_init): Use it to fix up the locale after setlocale
19217 (LC_ALL, "").
19218
192191998-08-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19220
19221 * xterm.c (x_calc_absolute_position): Cast argument to XFree, in
19222 case it was prototyped the old way.
19223
192241998-08-25 Kenichi Handa <handa@etl.go.jp>
19225
19226 * xterm.c (x_list_fonts): Work-around for the case XGetAtomName
19227 returns a null string. This happens when dxpc 3.7 is being used.
19228
192291998-08-24 Andreas Schwab <schwab@delysid.gnu.org>
19230
19231 * keyboard.c (input-method-previous-message): Doc fix.
19232
19233 * coding.c (file-coding-system-alist,
19234 select-safe-coding-system-function): Doc fix.
19235
192361998-08-23 Kenichi HANDA <handa@etl.go.jp>
19237
19238 * coding.c (detect_coding_iso2022): Don't check the byte length of
19239 succeeding codes (0xa0..0xFF) if the codes follows single shift
19240 code (SS2 or SS3).
19241
192421998-08-21 Ken'ichi Handa <handa@delysid.gnu.org>
19243
19244 * coding.c (detect_coding_system): If detect_eol_type returns
19245 CODING_EOL_INCONSISTENT, set eol_type to CODING_EOL_UNDECIDED
19246 correctly.
19247
19248See ChangeLog.7 for earlier changes.