(insert-directory): Don't call access-file on
[bpt/emacs.git] / src / ChangeLog
CommitLineData
2f2174fa
KH
12000-08-09 Miles Bader <miles@lsi.nec.co.jp>
2
3 * callproc.c (Fcall_process): Terminate the unwind-protect around
4 the post-read-conversion of coding system.
5
0c80756e
MB
62000-08-09 Miles Bader <miles@lsi.nec.co.jp>
7
0a6fd67e
MB
8 * buffer.c (overlays_at): Add CHANGE_REQ parameter.
9 (Foverlays_at, Fnext_overlay_change, Fprevious_overlay_change): Use it.
10 * buffer.h (overlays_at): Update prototype.
11 * xdisp.c (next_overlay_change): Update call to overlays_at.
12 * xfaces.c (face_at_buffer_position): Likewise.
13 * textprop.c (Fget_char_property): Likewise.
14 * xterm.c (note_mouse_highlight): Likewise.
15
0c80756e
MB
16 * minibuf.c (do_completion): Don't consider a simple change of
17 case as `completion'.
18
975f250a
KR
192000-08-08 Ken Raeburn <raeburn@gnu.org>
20
b347b3fd
KR
21 * keyboard.c (syms_of_keyboard): Initialize
22 last_point_position_buffer.
23 * undo.c (record_delete): Make sure last_point_position_buffer is
24 a buffer before comparing pointers.
25
26 * coding.h (decode_coding_string): Declare.
27
28 * intervals.h (Fprevious_single_char_property_change): Declare.
29
30 * textprop.c (Fprevious_single_char_property_change): Don't do
31 arithmetic directly on lisp objects.
32
25ad1371 33 * editfns.c (find_field): Use EQ, not ==, to compare Lisp
b347b3fd
KR
34 objects.
35
36 * keyboard.h (menu_item_eval_property): Declare.
37
38 * xdisp.c (message_dolog): Save and protect string "*Messages*" to
39 reuse as buffer name, instead of recreating (and discarding) every
40 time a message is logged.
41 (with_echo_area_buffer): Make callback arg A2 a lisp object.
25ad1371
GM
42 (current_message_1, truncate_message_1, set_message_1)
43 (display_echo_area_1, resize_mini_window_1): Signatures changed.
44 (current_message, truncate_echo_area, display_echo_area)
45 (resize_echo_area_axactly): Changed calls.
b347b3fd 46
975f250a 47 * coding.c (find_safe_codings): CHAR_TABLE_SET index must be a
25ad1371 48 Lisp object.
975f250a 49 (Ffind_coding_systems_region_internal): First argument to Fappend
25ad1371 50 must be an integer, not a Lisp object.
975f250a 51
46dc9912
KH
522000-08-08 Kenichi Handa <handa@etl.go.jp>
53
54 * charset.c (Fchar_width): Doc fix.
55
9f6d1a6c
GM
562000-08-08 Gerd Moellmann <gerd@gnu.org>
57
58 * charset.c (Fstring_width): Doc fix.
59
ff3d9573
GM
602000-08-07 Gerd Moellmann <gerd@gnu.org>
61
49ad1d99
GM
62 * xdisp.c (start_display): WHen starting display on a continuation
63 line, clear ascent and descent members of the iterator structure;
64 the height of the continued line does not affect the height of the
65 continuation line.
66 (make_cursor_line_fully_visible): Do nothing if cursor is on a
67 line taller than the window.
68 (redisplay_window) <forced window start>: Handle case that the
69 middle of the window is not found in any row.
70 (dump_glyph_row): Show more information.
71 (compute_line_metrics): Use MATRIX_FIRST_TEXT_ROW to determine the
72 first text line in a glyph matrix.
73
74 * xterm.c (x_draw_image_foreground): Avoid drawing outside
75 of the clip area when image doesn't have a mask.
76
70fc58b3
GM
77 * fns.c (sweep_weak_table): Fix survival conditions for
78 key-or-value and key-and-value weakness.
79
80 * .gdbinit (xhashtable): New command.
81
ac0e96ee
GM
82 * fns.c (sweep_weak_hash_tables): Fix the code taking unmarked
83 tables out of the list of all weak hash tables.
84
ff3d9573
GM
85 * xdisp.c (ensure_echo_area_buffers): If a buffer was killed, and
86 a new buffer is created, make sure echo_area_buffer[] references
87 the new buffer.
88
e0d8827b
EZ
892000-08-07 Eli Zaretskii <eliz@is.elta.co.il>
90
91 * msdos.c (Fmsdos_set_mouse_buttons): Add missing backslashes in
92 the doc string.
93
c6f35378
KH
942000-08-07 Kenichi Handa <handa@etl.go.jp>
95
96 * syntax.c (skip_chars): Fix previous change. Make the handling
97 of unibyte string consistent with that of regex search.
98
1fd4c450
GM
992000-08-05 Gerd Moellmann <gerd@gnu.org>
100
e49aa397
GM
101 * xmenu.c (popup_get_selection): Use xfree instead of free.
102
103 * fileio.c (Finsert_file_contents): Use xfree instead of free.
104
105 * editfns.c (Ftranspose_regions): Use xfree instead of free.
106
107 * callproc.c (child_setup): Use xfree instead of free.
108
109 * sysdep.c (opendir, GetTempDirName, run_mac_command): Use xmalloc
110 instead of malloc.
111 (run_mac_command, closedir): Use `xfree' instead of `free'.
112
113 * keymap.c (current_minor_maps): Use xmalloc instead of malloc.
114
115 * eval.c (error): Use xfree instead of free.
116
1fd4c450
GM
117 * xfaces.c, xfns.c, w32fns.c: Replace `illegal' with `invalid'.
118
119 * fns.c: Replace `illegal' with `invalid'.
e49aa397 120 (Fmake_hash_table, make_hash_table): Allow table size of 0.
1fd4c450 121
82d497fc
KH
1222000-08-05 Kenichi Handa <handa@etl.go.jp>
123
124 * syntax.c (skip_chars): Fix handling of multibyte<->unibyte
125 conversion.
126
59f953a2
NF
1272000-08-04 Noah Friedman <friedman@splode.com>
128
129 * fns.c (Fmake_hash_table): Add missing `\n\' to end of line in
130 docstring.
131
688351f2
GM
1322000-08-04 Gerd Moellmann <gerd@gnu.org>
133
134 * syntax.c (skip_chars): Fix typo in error message.
135
2dad51cc
AS
1362000-08-04 Andreas Schwab <schwab@suse.de>
137
138 * m/ia64.h: Moved from s/ia64.h.
139
99bb2c60
KH
1402000-08-04 Kenichi Handa <handa@etl.go.jp>
141
082a1df2
KH
142 * process.c (read_process_output): Big simplification. Handle
143 composition and post-read-conversion of coding system correctly.
144 (send_process): Handle composition correctly.
145
146 * callproc.c (Fcall_process): Handle post-read-conversion of
147 coding system if any.
148
99bb2c60
KH
149 * coding.c (decode_coding_iso2022): More strict check for handling
150 single shifting.
082a1df2
KH
151 (coding_restore_composition): Pay attention to the case that
152 cmp_data is not set properly (because of invalid code in the
153 source text).
154 (run_pre_post_conversion_on_str): Include text properties in the
155 resulting string.
156 (decode_coding_string): Set members of coding correctly.
99bb2c60 157
f4988be7
GM
1582000-08-03 Gerd Moellmann <gerd@gnu.org>
159
160 * s/ia64.h: New file.
161
162 * widget.c (set_frame_size, update_wm_hints, EmacsFrameSetValues):
163 Use NULL instead of 0 at the end of variable argument list of
164 XtVaGetValues and XtVaSetValues, because 0 fails on systems where
165 sizeof (int) < sizeof (void *).
166
167 * xmenu.c (update_frame_menubar): Use NULL instead of 0 at the end
168 of variable argument lists of XtVaGetValues and XtVaSetValues.
169
170 * xfns.c (Fx_file_dialog): Use NULL instead of 0 at the end of
171 variable argument lists of XtVaGetValues and XtVaSetValues.
172
ead53494
GM
1732000-08-02 Gerd Moellmann <gerd@gnu.org>
174
175 * alloc.c (lisp_malloc, lisp_free): Use size_t and POINTER_TYPE.
176 (xrealloc, xmalloc): Use size_t. Some callers adjusted.
177
178 * lisp.h (Fsingle_key_description, xmalloc, xrealloc): Change
179 prototype.
180
181 * keyboard.c (read_char_minibuf_menu_prompt): Add new parameter
182 in call to Fsingle_key_description.
183
184 * keymap.c (Fsingle_key_description): Add parameter NO_ANGLES.
185 Callers changed.
186
1872000-08-02 Colin Walters <walters@cis.ohio-state.edu>
188
189 * window.c (display_buffer_reuse_frames): New variable.
190 (Fdisplay_buffer): If display_buffer_reuse_frames is set, reuse
191 frames displaying BUFFER.
192 (syms_of_window): Define Lisp variable
193 display-buffer-reuse-frames.
194
10b0f752
MB
1952000-08-01 Miles Bader <miles@gnu.org>
196
197 * editfns.c (Fconstrain_to_field): Fix the conditions for deciding
198 when to constrain NEW_POS (they were pretty screwed up before).
199
16425c4a
EZ
2002000-07-31 Eli Zaretskii <eliz@is.elta.co.il>
201
202 * msdos.c (run_msdos_command): Save and restore the master
203 environment, for the case that child_setup signals an error.
204 When mirroring slashes in DOS shell commands, don't fail when
205 argv[2] has embedded blanks.
da288c14
EZ
206 (Fmsdos_set_mouse_buttons, mouse_setup_buttons): New functions.
207 (syms_of_msdos): Defsubr Fmsdos_set_mouse_buttons.
208 (dos_ttraw): Call mouse_setup_buttons.
16425c4a
EZ
209
210 * callproc.c (child_setup) [MSDOS]: malloc pwd_var instead of
211 using alloca; free it after run_msdos_command returns.
212
27f73852
DL
2132000-07-27 Dave Love <fx@gnu.org>
214
215 * s/irix6-5.h (IRIX_FORCE_32_BITS, LD_SWITCH_SYSTEM): Don't
216 define.
217 [_MIPS_SZLONG == 64]: Set up for 64-bit mode -- not currently
218 working.
219
220 * m/iris4d.h (XUINT, XSET, XUNMARK) [_LP64]: Don't define.
221
c0261b5e
EZ
2222000-07-27 Eli Zaretskii <eliz@is.elta.co.il>
223
224 * editfns.c (lisp_time_argument): Fix last change.
225
b548072f
GM
2262000-07-27 Gerd Moellmann <gerd@gnu.org>
227
3ab82477
GM
228 * fns.c (Fdelete): Make it work on vectors and strings in addition
229 to lists.
230
b548072f
GM
231 * fns.c (Qkey_or_value, Qkey_and_value): New variables.
232 (syms_of_fns): Initialize new variables.
233 (sweep_weak_table): Handle weakness `key-or-value' and
234 `key-and-value'.
235 (Fmake_hash_table): Recognize `key-and-value' and `key-or-value'
236 weakness, with t meaning the same as `key-and-value'.
237
91ae8751
KH
2382000-07-27 Kenichi Handa <handa@etl.go.jp>
239
240 * coding.h (struct coding_system): Member safe_charset deleted.
241
242 * coding.c (Qsafe_charsets): This variable deleted.
243 (Qsafe_chars, Vchar_coding_system_table, Qchar_coding_system): New
244 variables.
245 (coding_safe_chars): New function.
246 (CODING_SAFE_CHAR_P): New macro.
247 (CHARSET_OK): New arg C. Call CODING_SAFE_CHAR_P instead of
248 checking safe_charsets member of the coding system. Caller
249 changed.
250 (detect_coding_iso2022): New local variable safe_chars.
251 (DECODE_DESIGNATION): Call CODING_SAFE_CHAR_P instead of checking
252 safe_charsets member of the coding system.
253 (decode_coding_iso2022): New local variable safe_chars.
254 (ENCODE_ISO_CHARACTER_DIMENSION1): Don't check unsafe chars here.
255 (ENCODE_ISO_CHARACTER_DIMENSION2): Likewise.
256 (ENCODE_ISO_CHARACTER): Arguments changed. Caller changed.
257 (ENCODE_UNSAFE_CHARACTER): New macro.
258 (encode_coding_iso2022): New local variable safe_chars. Check
259 unsafe chars.
260 (setup_coding_system): Delete the code to initialize
261 coding->safe_charses
262 (intersection, find_safe_codings): New functions.
263 (Ffind_coding_systems_region_internal): New function.
264 (syms_of_coding): Defsubr it. Initialize Qsafe_chars,
265 Qsafe_cding_system. Make Vchar_coding_system_table a Lisp
266 variable and initialize it.
267
268 * fns.c (char_table_ref_and_index): New function.
269
270 * lisp.h (char_table_ref_and_index): Add prototype.
271
34a7a267
SS
2722000-07-26 Sam Steingold <sds@gnu.org>
273
274 * editfns.c (lisp_time_argument): Added third argument `usec'.
3ab82477 275 (Ffloat_time): New built-in Lisp function.
34a7a267 276
a95cb10a
GM
2772000-07-26 Gerd Moellmann <gerd@gnu.org>
278
3353ef5a
GM
279 * dispextern.h (GLYPH_FROM_CHAR_GLYPH): Use CHARACTERBITS bits
280 for the character code.
281
282 * config.in (HAVE_SOUND): Define only for FreeBSD, NetBSD and
283 GNU/Linux.
284
a95cb10a
GM
285 * xmenu.c (menu_highlight_callback): Call show_help_echo directly
286 if called for a popup menu.
287 (xmenu_show): Store help string in widget values.
288
b4a12321
DL
2892000-07-26 Dave Love <fx@gnu.org>
290
291 * syswait.h: Move some definitions.
292 (HAVE_SYS_WAIT_H): Undef for HPUX7, Convex.
293 [!HAVE_SYS_WAIT_H]: Define things unconditionally. More
294 perspicuous definitions.
295 (WTERMSIG): Fix bit pattern used.
296
13f5ad37
KH
2972000-07-26 Kenichi Handa <handa@etl.go.jp>
298
299 * print.c (print_object): If vector printing is truncated, print
300 "..." to indicate it as well as the case of list printing.
301
070fe99c
GM
3022000-07-25 Gerd Moellmann <gerd@gnu.org>
303
969065c3
GM
304 * xdisp.c (next_element_from_display_vector): Improve comments.
305
306 * lisp.h (GLYPH_MASK_CHAR, GLYPH_MASK_FACE): Use 19 bits
307 for the character code, and the rest for the face id as in 20.x.
308 (FAST_GLYPH_FACE, FAST_MAKE_GLYPH): Changed accordingly.
309
310 * window.c (window_display_table): Cleaned up.
311
070fe99c
GM
312 * syntax.c (Fforward_word): Add last arg nil in call of
313 Fconstrain_to_field.
314
bad77ef7
EZ
3152000-07-25 Eli Zaretskii <eliz@is.elta.co.il>
316
969065c3 317 * fileio.c (Frename_file) [DOS_NT]: If the file names are
bad77ef7
EZ
318 identical but for the letter-case, don't call
319 barf_or_query_if_file_exists.
320
c28da489
MB
3212000-07-25 Miles Bader <miles@gnu.org>
322
323 * editfns.c (find_field): Honor special `boundary' fields.
324 (Qboundary): New variables.
325 (syms_of_editfns): Initialize Qboundary.
326 (Fconstrain_to_field): Add the INHIBIT-CAPTURE-PROPERTY argument.
327 Use scan_buffer instead of find_before_next_newline, because it
328 allows us to detect the boundary case where there's a newline at
329 the search limit.
330 * lisp.h (Fconstrain_to_field): Update external declaration.
331
e3c31fd5
GM
3322000-07-24 Gerd Moellmann <gerd@gnu.org>
333
334 * print.c (temp_output_buffer_setup): Don't call1 Vrun_hooks
335 if that is nil.
c28da489 336
c66c29a2
DL
3372000-07-24 Dave Love <fx@gnu.org>
338
339 * s/sunos4-0.h, s/sol2.h:
340 (LIBS_TERMCAP): Move from m/sparc.h.
341
342 * m/sparc.h (TERMINFO): Moved to system files (probably only
343 relevant for sunos4 judging by its vintage).
344 (BITS_PER_LONG, BITS_PER_EMACS_INT, _LP64): Define conditional on
345 __arch64__.
346
fbe0a958
EZ
3472000-07-24 Eli Zaretskii <eliz@is.elta.co.il>
348
349 * xmenu.c (keymap_panes): Pass the keymap's prompt as the pane
350 name to single_keymap_panes.
351
7d88e5c9
AS
3522000-07-24 Andreas Schwab <schwab@suse.de>
353
354 * fns.c (Fmakehash): Pass Qeql to Fmake_hash_table if TEST is nil.
355
e024b101
GM
3562000-07-24 Gerd Moellmann <gerd@gnu.org>
357
358 * xdisp.c (with_echo_area_buffer): Take additional EMACS_INT
359 parameters instead of using int parameters. Expect FN to accept
360 EMACS_INT parameters.
361 (display_echo_area, resize_echo_area_axactly, current_message)
362 (truncate_echo_area, set_message_1): Call with_echo_area_buffer
363 with new argument list.
364 (resize_mini_window_1): New callback function.
365 (current_message_1, truncate_message_1, set_message_1): Change
366 parameter lists to the new format expected by
367 with_echo_area_buffer.
368
25c1a9ce
KH
3692000-07-24 Kenichi Handa <handa@etl.go.jp>
370
371 * fontset.c (fontset_ref): Remove INLINE declaration.
372 (fontset_ref_via_base): Likewise.
373 (Fset_fontset_font): Convert FAMILY and REGISTRY specifications
374 to downcase.
375
7f987ac0
EZ
3762000-07-23 Eli Zaretskii <eliz@is.elta.co.il>
377
378 * msdos.c (IT_note_mouse_highlight): Process overlays in the
379 correct order of priority. If help echo was found in an overlay,
380 use that overlay as the object in which the help echo was found.
381
e2db3069
MB
3822000-07-22 Miles Bader <miles@gnu.org>
383
384 * textprop.c (Fprevious_single_char_property_change): The initial
385 property value should be from the position preceding POSITION, not
386 following it.
387
5e3203e4
EZ
3882000-07-22 Eli Zaretskii <eliz@is.elta.co.il>
389
390 * coding.c (syms_of_coding): Doc fix for
391 inhibit-iso-escape-detection.
392
62145073
GM
3932000-07-21 Gerd Moellmann <gerd@gnu.org>
394
c20aeb83
GM
395 * xterm.c (note_mouse_highlight): Process overlays in the right
396 order of priority.
34a7a267 397
743934db
GM
398 * keyboard.c (show_help_echo, gen_help_event): Extend comments.
399
400 * xterm.c (note_mouse_highlight): If help-echo was found in an
401 overlay, use that overlay as the object in which the help was
402 found.
403
d1dc7e43 404 * window.c (foreach_window_1): Fix typo reversing an if-condition.
34a7a267 405
62145073
GM
406 * window.c (foreach_window): Instead of a fake variable argument
407 list, take one USER_DATA argument.
408 (foreach_window_1): Likewise, and call callback functions with two
409 args, the window and USER_DATA.
410 (struct check_window_data): New struct.
411 (check_window_containing): Use it.
412 (window_from_coordinates): Set up a struct check_window_data for
413 foreach_window.
414 (add_window_to_list, freeze_window_start): Change parameters
415 according to new calling convention.
416
417 * window.h (foreach_window): Change prototype.
418
419 * buffer.c (Fprevious_overlay_change): Avoid memory leak.
420
4212000-07-21 Eli Zaretskii <eliz@is.elta.co.il>
422
423 * xmenu.c (menu_help_callback): Call show_help_echo with
424 additional arguments OBJECT and POS.
425
11270583
KH
4262000-07-21 Kenichi Handa <handa@etl.go.jp>
427
07b14857
KH
428 * data.c (Faset): Allow storing any multibyte character in a
429 string. Convert unibyte string to multibyte if necessary.
430
11270583
KH
431 * xfns.c (x_encode_text): New function.
432 (x_set_name): Use x_encode_text.
433 (x_set_title): Likewise.
434
435 * xselect.c (lisp_data_to_selection_data): Use x_encode_text.
436
437 * xterm.h (x_encode_text): Add prototype.
438
bc75b4fd
DL
4392000-07-20 Dave Love <fx@gnu.org>
440
441 * ccl.c (Fccl_execute_on_string): Don't check xmalloc return. Use
442 xfree, not free.
443
48c14970
EZ
4442000-07-20 Eli Zaretskii <eliz@is.elta.co.il>
445
446 * msdos.c (help_echo_window): New variable.
447 (syms_of_msdos): Initialize and staticpro it.
448 (IT_note_mode_line_highlight): Set help_echo_window.
449 (IT_note_mouse_highlight): Ditto.
450 (dos_rawgetc): Store help_echo_window in the second event produced
451 for HELP_EVENTs.
452
453 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight):
454 Record the object that generated the help echo and the position of
455 that object in help_echo_object and help_echo_pos. Record that
456 some glyphs in a row are displayed in mouse-face.
457 (IT_update_begin): Don't clear mouse highlight unless one of the
458 enabled glyph rows is marked as being displayed in mouse-face.
459 (dos_rawgetc): Generate 2 events for HELP_EVENT. Pass the object
460 and position recorded in help_echo_object and help_echo_pos to the
461 event queue.
462 (IT_menu_display): Accept a new argument PN: the pane number of
463 the current menu pane. Record the pane number and the item
464 number of the item which has associated help string.
465 (XMenuActivate): Update the prototype for help_callback in
466 function declaration. Call IT_menu_display with the current menu
467 pane number as an additional argument. Call help_callback with
468 two additional arguments: the pane number and the item number of
469 the menu item associated with the help text.
470 (help_echo_object, help_echo_pos): New variables.
471 (syms_of_msdos): Initialize them and staticpro help_echo_object.
472
473 * msdos.h (XMenuActivate): Update prototype.
474
4279296d
GM
4752000-07-19 Gerd Moellmann <gerd@gnu.org>
476
47db06aa
GM
477 * xdisp.c (with_echo_area_buffer): Call FN with more arguments.
478 Add some more prototypes.
479
480 * xterm.c, xterm.h: Add some more prototypes.
481
482 * lisp.h (Fnext_single_char_property_change): Add prototype.
483
484 * dispnew.c (direct_output_for_insert): Remove confusing
485 outer local variable mouse_face_overwritten_p.
486 (glyph_row_slice_p): Put in #ifdef GLYPH_DEBUG.
487
4279296d
GM
488 * alloc.c (allocate_string_data): Don't copy old string contents.
489
670acd62
KH
4902000-07-19 Kenichi Handa <handa@etl.go.jp>
491
492 * coding.c (code_convert_region): Delete text properties before
493 shrinking the conversion region.
494
7cea38bc
GM
4952000-07-18 Gerd Moellmann <gerd@gnu.org>
496
dc1cac59
GM
497 * dispnew.c (update_text_area): Write the whole row if it
498 has mouse-face in it.
499
85a8aca9
GM
500 * xfaces.c (face-alternative-font-family-alist): Remove
501 DEFVAR_LISP; staticpro instead.
502
34a7a267 503 * xmenu.c (menu_help_callback): Call show_help_echo with
7cea38bc
GM
504 new arguments.
505
506 * keyboard.c (show_help_echo): Add parameter WINDOW.
507 (read_char): Call show_help_echo with window extracted from Lisp
508 help event.
509 (gen_help_event): Add parameter WINDOW.
510
511 * keyboard.h (show_help_echo, gen_help_event): Change prototypes.
512
513 * xterm.c (help_echo_window): New variable.
514 (note_mouse_highlight, note_tool_bar_highlight): Set
515 help_echo_window.
516 (XTread_socket): Pass help_echo_window to gen_help_event.
517 (syms_of_xterm): Initialize and staticpro help_echo_window.
518
f8276b77
DL
5192000-07-18 Dave Love <fx@gnu.org>
520
521 * Makefile.in: Fix dependencies of blockinput.h on atimer.h,
522 systime.h.
523
088831a6
GM
5242000-07-18 Gerd Moellmann <gerd@gnu.org>
525
3d6cd763
GM
526 * alloc.c (allocate_string_data): If string had already data
527 assigned, copy old contents to new string data.
528
529 * coding.c (syms_of_coding): Fix typo in spelling of variable
530 `inhibit-iso-escape-detection'.
531
088831a6
GM
532 * alloca.c (free) [emacs && EMACS_FREE]: Define as EMACS_FREE.
533
534 * Makefile.in: Add dependencies on dispextern.h.
535 (alloca.o): Don't define malloc and define EMACS_FREE instead of
536 `free'; both can conflict with system header files.
537
bc8a8d55
KH
5382000-07-18 Kenichi Handa <handa@etl.go.jp>
539
540 * charset.h (MAKE_CHAR): Return reasonable code even if CHARSET is
541 undefined.
542
069f5950
DL
5432000-07-18 Dave Love <fx@gnu.org>
544
545 * window.c (Fwindow_list): Declare arg `window'.
546
aa96c820
KH
5472000-07-18 Kenichi Handa <handa@etl.go.jp>
548
549 * coding.c (setup_coding_system): Don't override the explicitly
550 specified designations.
551
06be8d32
MB
5522000-07-15 Miles Bader <miles@gnu.org>
553
554 * editfns.c (char_property_eq, char_property_stickiness): Renamed
555 from `text_property_eq' and `text_property_stickiness', respectively.
556 (find_field, Fconstrain_to_field, char_property_eq)
557 (char_property_stickiness): Changed to call char-property functions
558 instead of text-property-only ones.
559
560 * textprop.c (Fnext_single_char_property_change): Made a subr (was
561 `next_single_char_property_change'). Do more error checking, and
562 cleanup limit behavior.
563 (Fprevious_single_char_property_change): New function.
564 (syms_of_textprop): Initialize new subrs.
565
566 * xdisp.c (display_prop_end, invisible_text_between_p):
567 Call Fnext_single_char_property_change instead of
568 next_single_char_property_change.
569
3fddcdc3
JR
5702000-07-15 Jason Rumney <jasonr@gnu.org>
571
572 * w32menu.c (w32_menu_show): Call free_menubar_widget_value_tree
573 after menu is finished with.
574 (add_menu_item): Only consider wv->title as a menu title.
575 (w32_menu_display_help): Add OBJECT and POS to show_help_echo.
576
577 * w32fns.c (w32_wnd_proc) [WM_DRAW_ITEM]: Do not try to draw a
578 null title.
579 (FONT_REGEXP): Remove unused macro, and its sub-components.
580 (syms_of_w32fns): Replace underscore in w32-enable-synthesized-fonts.
581
582 * w32term.c (help_echo_object, help_echo_pos): New variables.
583 (note_mode_line_highlight): Store additional information about the
584 help-echo in help_echo_object and help_echo_pos. Check both
585 `local-map' and `keymap' properties for changing the cursor
586 (note_mouse_highlight): Store additional information about the
587 help-echo in help_echo_object and help_echo_pos.
588 (note_tool_bar_highlight): Set help_echo_object to nil and
589 help_echo_pos to -1.
590 (w32_read_socket): Use gen_help_event instead of filling
591 input_events manually.
592 (syms_of_w32term): Staticpro help_echo_object.
593 (x_update_window_end): Add parameter MOUSE_FACE_OVERWRITTEN_P. If
594 set, arrange for a mouse-highlight redisplay in
595 XTframe_up_to_date.
596 (x_clear_mouse_face): New function.
597 (w32_redisplay_interface): Add pointer to x_clear_mouse_face.
598 (x_update_window_begin): No need to turn off the mouse
599 highlight here.
600 (show_mouse_face): Set the mouse_face_p flag of glyph rows
601 depending on whether they contain glyphs highlighted in
602 mouse-face.
603 (x_fill_stretch_glyph_string): Consume runs of stretch
604 glyphs instead of a single one.
605 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
606 with new argument list.
607 (x_set_glyph_string_gc): Make sure the face's GC is valid.
608 (x_append_glyph, x_append_composite_glyph)
609 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
610 changes in struct glyph starting 1999-12-27. See comments for
611 xterm.c on 2000-07-05.
612
178c5d9c
SS
6132000-07-14 Sam Steingold <sds@gnu.org>
614
615 * xfaces.c (realize_x_face): Fix the last patch:
616 check `default_face' before dereferencing.
617
6fe533f6
DL
6182000-07-14 Dave Love <fx@gnu.org>
619
069f5950 620 * syntax.c (back_comment): Add null default in switch (for pcc).
6fe533f6 621
dd7b81cf
KH
6222000-07-14 Kenichi Handa <handa@etl.go.jp>
623
0693904a 624 * xfaces.c (realize_x_face): Make fontset using the base of the
178c5d9c 625 default_face's fontset, not using the default fontset.
0693904a 626
dd7b81cf
KH
627 * coding.c (inhibit_iso_escape_detection): New variable.
628 (syms_of_coding): Make it a Lisp variable.
629 (detect_coding_iso2022): If inhibit_iso_escape_detection is
630 nonzero, ignore ISO2022's escape sequence.
631
d5aa31d8
GM
6322000-07-14 Gerd Moellmann <gerd@gnu.org>
633
e5acf0ca
GM
634 * alloca.c (malloc) [emacs]: Define as xmalloc.
635
bd23a692
GM
636 * xfns.c (Fx_show_tip): If frame parameters contain a position,
637 use that instead of the mouse position. Add parameters DX and DY.
638
639 * dispextern.h (Fx_show_tip): Adjust number of parameters
640 in prototype.
641
9662da0b
GM
642 * keyboard.c (show_help_echo): Add parameters OBJECT and POS.
643 if HELP is a function, call it with OBJECT and POS as parameters
644 to get the help to display.
645 (gen_help_event, kbd_buffer_store_help_event): New functions.
646 (kbd_buffer_get_event): Construct the Lisp help-event differently.
647 (read_char): Call show_help_echo with new parameters.
648
178c5d9c 649 * keyboard.h (gen_help_event, kbd_buffer_store_help_event):
9662da0b
GM
650 Add prototypes.
651
652 * xterm.c (help_echo_object, help_echo_pos): New variables.
653 (note_mode_line_highlight): Store additional information about the
654 help-echo in help_echo_object and help_echo_pos. Check both
655 `local-map' and `keymap' properties for changing the cursor
656 (note_mouse_highlight): Store additional information about the
657 help-echo in help_echo_object and help_echo_pos.
658 (note_tool_bar_highlight): Set help_echo_object to nil and
659 help_echo_pos to -1.
660 (XTread_socket): Use gen_help_event instead of filling
661 input_events manually.
662 (syms_of_xterm): Staticpro help_echo_object.
663
664 * xmenu.c (menu_highlight_callback): Use
665 kbd_buffer_store_help_event instead of setting up and input_event
666 structure manually.
667
668 * xdisp.c (eval_form): GCPRO argument sexpr.
669 (call_function): New function.
670 (handle_single_display_prop): Use call_function and FUNCTIONP
671 instead of checking whether if font_height is a symbol and
672 using eval_form.
673
674 * eval.c (internal_condition_case_2): New function.
675
676 * lisp.h (FUNCTIONP): New macro.
677 (internal_condition_case_2, call_function): Add prototypes.
678
d5aa31d8
GM
679 * xterm.c (construct_mouse_click, x_scroll_bar_to_input_event)
680 (x_scroll_bar_handle_click, SET_SAVED_MENU_EVENT, XTread_socket):
681 Always set `arg' member of input_events.
682 (construct_menu_click): Unused function removed.
683
684 * msdos.c (dos_rawgetc): Always set `arg' member of input_events.
685
686 * w32term.c (construct_mouse_click, construct_mouse_wheel)
687 (construct_drag_n_drop, x_scroll_bar_handle_click)
688 (w32_read_socket): Always set `arg' member of input_events.
689
690 * keyboard.c (show_help_echo): Use eval_form. Add comment.
691
692 * lisp.h (eval_form): Add prototype.
693
694 * xdisp.c (eval_form): Make it externally visible.
695
0f1a9b23
GM
6962000-07-13 Gerd Moellmann <gerd@gnu.org>
697
698 * xterm.c (x_handle_tool_bar_click): Store the frame in the
699 frame_or_window slot of TOOL_BAR_EVENT input events instead of
700 consing. For prefix events, store the frame in the `arg' slot of
701 the event, otherwise store the key there.
702 (XTread_socket): Instead of consing, use the frame_or_window slot
703 of HELP_EVENTs for the frame, and the `arg' slot for the help
704 string.
705
706 * xmenu.c (menu_highlight_callback): Store help string in the
707 `arg' member of the input event; don't cons.
708 (menubar_selection_callback): Use the `arg' slot of input events
709 to queue additional information, instead of consing.
710
711 * msdos.c (dos_rawgetc): Adapt to change of HELP_EVENTs.
712
713 * w32term.c (w32_handle_tool_bar_click): Adapt to changes in
714 TOOL_BAR_EVENTs.
715 (w32_read_socket): Adapt to changes in HELP_EVENTs.
716
717 * w32menu.c (menubar_selection_callback): Use the `arg' slot of
718 input events to queue additional information, instead of consing.
719
720 * keyboard.c (kbd_buffer_gcpro): Renamed from
721 kbd_buffer_frame_or_window. Now used for all Lisp objects
722 referenced from the input queue.
723 (kbd_buffer_store_event): Always use structure assignment for
724 copying input events. Record all Lisp objects referenced from
725 events in kbd_buffer_gcpro.
726 (kbd_buffer_get_event): Construct Lisp `help-echo' events
727 differently from input events. Test for prefix menu_bar_events
728 and TOOL_BAR_EVENTs differently. Reset all slots used by an input
729 event in kbd_buffer_gcpro to nil.
730 (make_lispy_event) <TOOL_BAR_EVENT>: Treat an input event whose
731 frame_or_window is equal to its arg member as prefix events.
732 (stuff_buffered_input): Reset all slots in kbd_buffer_gcpro
733 used by an input event to nil.
734 (init_keyboard): Use two times the size of the input queue
735 for kbd_buffer_gcpro.
736 (syms_of_keyboard): Likewise.
737
738 * emacs.c (handle_USR2_signal, handle_USR1_signal): Use
739 USER_SIGNAL_EVENT.
740
741 * termhooks.h (struct input_event): Add member `arg'.
742 (MENU_BAR_EVENT): Renamed from menu_bar_event.
743 (USER_SIGNAL_EVENT): Renamed from user_signal.
744
745 * xfaces.c (ASET): Remove definition.
746
747 * lisp.h (AREF, ASET, ASIZE): New macros.
748
749 * fontset.c (AREF, ASIZE): Remove definitions.
750
751 * fns.c (AREF): Remove definition.
178c5d9c 752
0f1a9b23
GM
753 * composite.c (AREF): Remove definition.
754
712eaef2
GM
7552000-07-12 Gerd Moellmann <gerd@gnu.org>
756
d8ee7803
GM
757 * dispnew.c (redraw_overlapped_rows): Add missing local.
758 (scrolling_window): Remove debug code.
759
712eaef2
GM
760 * xdisp.c (try_window_reusing_current_matrix, try_window_id):
761 Before scrolling, turn off a mouse-highlight in the window
762 being scrolled.
763
764 * xterm.c (x_update_window_end): Add parameter
765 MOUSE_FACE_OVERWRITTEN_P. If set, arrange for a mouse-highlight
766 redisplay in XTframe_up_to_date.
767 (x_clear_mouse_face): New function.
768 (x_redisplay_interface): Add pointer to x_clear_mouse_face.
769
770 * dispnew.c (make_current): Preserve the mouse_face_p flag of the
771 current glyph row.
772 (update_window_line): Add parameter MOUSE_FACE_OVERWRITTEN_P. Set
773 it when any row is written to that contains glyphs highlighted in
774 mouse-face.
775 (update_window): Call the window update end hook with new
776 parameter MOUSE_FACE_OVERWRITTEN_P.
777 (direct_output_for_insert): Give up if row contains mouse-face.
778
779 * dispextern.h (struct redisplay_interface): Add parameter
780 MOUSE_FACE_OVERWRITTEN_P to update_window_end_hook function.
781 (clear_mouse_face): New function pointer member.
782
02010917
SM
7832000-07-11 Stefan Monnier <monnier@cs.yale.edu>
784
785 * syntax.c (back_comment): Use one switch rather than a few `if's.
786 Obey open_paren_in_column_0_is_defun_start.
787 When reverting to the `slow' method, try to nicely handle the case
788 of nested comments by checking that the comment-starter we found
789 does indeed match the comment-ender.
790 (scan_sexps_forward, scan_sexps_forward):
791 Ignore excessive opening parenthesis rather than throwing an error.
792
d76c03ea
GM
7932000-07-11 Gerd Moellmann <gerd@gnu.org>
794
795 * doc.c (Fsubstitute_command_keys): Handle case that a GC
796 in Fwhere_is_internal or get_keymap_1 relocates string contents.
797
798 * dispnew.c (direct_output_forward_char): Give up if currently
799 displaying a message instead of the minibuffer contents.
800
801 * xterm.c (x_update_window_begin): No need to turn off the mouse
802 highlight here.
803 (show_mouse_face): Set the mouse_face_p flag of glyph rows
804 depending on whether they contain glyphs highlighted in
805 mouse-face.
806
807 * dispnew.c (row_equal_p): Add parameter MOUSE_FACE_P. If set,
808 compare the mouse_face_p flags of both rows.
809
810 * dispextern.h (struct glyph_row): Add flag mouse_face_p.
811
d55ead18
EZ
8122000-07-11 Eli Zaretskii <eliz@is.elta.co.il>
813
814 * keyboard.c (show_help_echo): Accept additional parameter
815 ok_to_overwrite_keystroke_echo.
816 (read_char): Call show_help_echo with a zero
817 ok_to_overwrite_keystroke_echo argument.
818 * keyboard.h (show_help_echo): Update prototype of
819 show_help_echo.
820 * xmenu.c (menu_help_callback): Call show_help_echo with non-zero
821 ok_to_overwrite_keystroke_echo argument.
822 * w32menu.c (w32_menu_display_help): Call show_help_echo with
823 non-zero ok_to_overwrite_keystroke_echo argument.
824
df75b1a3
GM
8252000-07-10 Gerd Moellmann <gerd@gnu.org>
826
4b92c49a
GM
827 * xdisp.c (try_window_id): If changes are all below what is
828 displayed in the window, and point is in the window, we still
829 might have to find point on the display.
830
831 * xterm.c (x_fill_stretch_glyph_string): Consume runs of stretch
832 glyphs instead of a single one.
833 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
834 with new argument list.
835 (x_set_glyph_string_gc): Make sure the face's GC is valid.
836
df75b1a3
GM
837 * keymap.c (get_keymap_1): Add comment that this function can GC.
838 (where_is_internal_2, where_is_internal_1): Add GCPROs, add
839 comment that functions can GC.
840 (Fset_keymap_parent): GCPRO arg KEYMAP.
841
4314cf3e
EZ
8422000-07-10 Eli Zaretskii <eliz@is.elta.co.il>
843
844 * msdos.c (XMenuActivate): After exiting the menu, restore the
845 echo area message and erase it.
846
ab49ce15
KH
8472000-07-10 Kenichi Handa <handa@etl.go.jp>
848
849 * fontset.c (Ffontset_info): Make the return value more compatible
850 with that of Emacs 20.
851
090a072f
GM
8522000-07-07 Gerd Moellmann <gerd@gnu.org>
853
854 * eval.c (Fsignal): Handle case that backtrace_list is null.
855
f92de4a6
KH
8562000-07-07 Kenichi Handa <handa@etl.go.jp>
857
858 * ccl.c (Fccl_execute): Typo fixed.
859
dd8888a1
GM
8602000-07-06 Gerd Moellmann <gerd@gnu.org>
861
e5c81191 862 * window.c (window_loop): Add missing gcpro1 local variable.
178c5d9c 863
dd8888a1
GM
864 * window.c (Fwindow_list): Reverse list at the end.
865 (candidate_window_p): Add parameter OWINDOW. ALL_FRAMES nil
866 means allow windows on OWINDOW's frame, only.
867 (window_loop): Simplified; use Fwindow_list.
868
869 * Makefile.in (TAGS-LISP): Don't pass `$(lispsource)' to make.
870
485266d0
GM
8712000-07-05 Gerd Moellmann <gerd@gnu.org>
872
873 * xterm.c (XTread_socket): Increment handling_signal at the start,
874 decrement it at the end.
875
876 * eval.c (handling_signal): New variable.
877 (Fsignal): Abort if handling_signal is non-zero.
878
879 * lisp.h (handling_signal): External declaration.
178c5d9c 880
485266d0
GM
881 * s/freebsd.h (WAITTYPE, WRETCODE): Put in #if 0.
882
80fcd514
KR
8832000-07-05 Ken Raeburn <raeburn@gnu.org>
884
885 Sound support for NetBSD through "Linux emulation" support:
886 * config.in (HAVE_SOUNDCARD_H): Undef.
887 (HAVE_SOUND): Define if HAVE_SOUNDCARD_H.
888 * Makefile.in (LIBSOUND): New variable.
889 (LIBES): Include it.
890 * sound.c [HAVE_SOUNDCARD_H]: Include <sys/ioctl.h> and
891 <soundcard.h>.
892 (DEFAULT_SOUND_DEVICE): Define to "/dev/dsp" if not defined
893 elsewhere.
894 (vox_open): Use DEFAULT_SOUND_DEVICE.
895 * s/netbsd.h (DEFAULT_SOUND_DEVICE): Define to /dev/audio.
896
d5c5cddd
GM
8972000-07-05 Gerd Moellmann <gerd@gnu.org>
898
899 * print.c (print_error_message): If Vsignaling_function is set,
900 show it in *Messages*.
901
902 * lisp.h (Vsignaling_function): External declaration.
903
904 * eval.c (Vsignaling_function): New variable.
905 (Fsignal): Compute it.
906 (syms_of_eval): Staticpro it.
907
65171e3a
DL
9082000-07-05 Dave Love <fx@gnu.org>
909
910 * syswait.h: Use the autoconf recommended approach. Old code
911 #if'd out in case we need to revert.
912
178c5d9c 913 * config.in (HAVE_SYS_WAIT_H): Added.
65171e3a 914
e2c46326
AI
9152000-07-05 Andrew Innes <andrewi@gnu.org>
916
917 * vm-limit.c (check_memory_limits) [REL_ALLOC]: Use real_morecore
918 when non-NULL instead of __morecore, to take account of buffer
919 memory. This also solves a problem with spurious memory warnings
920 on Windows.
921
922 * ralloc.c: Make real_morecore non-static.
923
924 * eval.c (internal_condition_case): Comment out abort if
925 interrupt_input_blocked is not zero.
926
927 * makefile.nt: Add support for `bootstrap' and related targets.
928 Include minimal debug info in emacs.exe in release build.
929 Remove all dependencies on lisp.h, and fixup some others.
930
931 * w32.c (init_environment): Install code from 20.7 for providing
932 default values for environment variables, based on the
933 executable's own location.
934 (map_w32_filename): Handle filenames that are longer than
935 MAX_PATH.
936 (sys_socket): Install socket inheritance bug fix from 20.7.
937
938 * alloca.c [emacs]: Include lisp.h (needed by atimer.h included
939 here via blockinput.h).
940
a027a91b
SM
9412000-07-05 Stefan Monnier <monnier@cs.yale.edu>
942
e4b31601
SM
943 * w32menu.c (w32_menu_display_help):
944 * xmenu.c (menu_help_callback): Use show_help_echo.
a027a91b
SM
945
946 * keyboard.h (show_help_echo): Declare.
947
948 * keyboard.c (show_help_echo): New function, extracted from read_char.
949 Feval its `msg' argument if it's a cons cell.
950 (read_char): Use it.
4cf8d9d5 951 (follow_key): Pass `autoload' to get_keyelt.
a027a91b 952
178c5d9c 953 * xterm.c (note_mode_line_highlight, note_mouse_highlight)
a027a91b 954 (note_tool_bar_highlight, XTread_socket):
178c5d9c 955 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight)
a027a91b
SM
956 (dos_rawgetc):
957 * w32term.c (note_mode_line_highlight, note_mouse_highlight)
958 (note_tool_bar_highlight, w32_read_socket):
959 Do not gratuitously ignore non-string `help-echo' properties.
960
88d75730
GM
9612000-07-05 Gerd Moellmann <gerd@gnu.org>
962
969f7e79
GM
963 * eval.c (Feval): Put check for interrupt_input_block in #if 0.
964
71201b00
GM
965 * window.c (delete_all_subwindows): Reset Vwindow_list.
966
88d75730
GM
967 * xterm.c (x_append_glyph, x_append_composite_glyph)
968 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
969 changes in struct glyph starting 1999-12-27. Some bit-fields of
970 struct glyph were not set, which made glyphs unequal when compared
971 with GLYPH_EQUAL_P. Redisplay outputs such glyphs, and flickering
972 effects were the result. This also depended on the contents of
973 memory returned by xmalloc. If flickering happens again, activate
974 the code in clear_glyph_row that's in #if 0. If the flickering is
975 gone with that, chances are that it is caused by something
976 similar.
977
978 * dispnew.c (clear_glyph_row): Add debug code in #if 0.
178c5d9c 979
88d75730
GM
980 * dispextern.h: Add some comments.
981
982 * window.c (add_window_to_list): Add parameter LIST.
983 (window_list): Order list so that, for each frame, windows are
984 in canonical order, and so that frames appear in the list in
985 the order given by Vframe_list.
986 (next_window): Reverse the handling of NEXT_P.
987
53654733
GM
9882000-07-04 Gerd Moellmann <gerd@gnu.org>
989
87efd256
GM
990 * window.c (Vwindow_list): New variable.
991 (make_window, delete_window): Set Vwindow_list to nil.
992 (check_window_containing): New function.
993 (window_from_coordinates): Rewritten.
994 (add_window_to_list, window_list, candidate_window_p)
995 (decode_next_window_args, next_window): New functions.
996 (Fnext_window, Fprevious_window): Rewritten in terms of
997 next_window.
998 (Fwindow_list): New function.
999 (Fother_window): Cleaned up.
1000 (foreach_window): Add a longer "variable argument list". Let
1001 callback function return 0 to indicate that cycling over windows
1002 should stop.
1003 (foreach_window_1): Likewise.
1004 (freeze_window_start): Return int.
1005 (init_window): New function.
1006 (syms_of_window): Staticpro Vwindow_list and defsubr Swindow_list.
1007
1008 * emacs.c (handle_USR1_signal, handle_USR2_signal) Clear
1009 input_event with bzero.
1010 (main): Call init_window.
1011
53654733
GM
1012 * keymap.c (get_keyelt): Temporarily inhibit GC while evaluating
1013 a menu filter.
1014
4a8c194f
KH
10152000-07-04 Kenichi Handa <handa@etl.go.jp>
1016
1017 * composite.h (make_composition_value_copy): Extern it.
1018
1019 * composite.c (make_composition_value_copy): New function.
1020
1021 * editfns.c (Fformat): While copying text properties, make each
1022 composition property value a copy.
1023
1024 * fns.c (concat): While copying text properties, make each
1025 composition property value a copy.
1026
831a6cb0
GM
10272000-07-03 Gerd Moellmann <gerd@gnu.org>
1028
2f516940
GM
1029 * m/macppc.h (LINKER, LD_SWITCH_MACHINE) [LINUX]: Define.
1030
178c5d9c 1031 * fns.c (sweep_weak_table): Mark only objects that are not
aee625fa
GM
1032 marked already.
1033
831a6cb0
GM
1034 * frame.c (next_frame, prev_frame): If MINIBUF is a window,
1035 include those frames as candidates which have their focus
1036 redirected to the minibuffer frame.
1037
d9c4f922
SM
10382000-07-03 Stefan Monnier <monnier@cs.yale.edu>
1039
1040 * fns.c (Fputhash): Return `value' rather than nil.
1041
3780bc22
GM
10422000-06-30 Gerd Moellmann <gerd@gnu.org>
1043
97d176db
GM
1044 * frame.c (next_frame): Don't check focus redirection in case
1045 MINIBUF is a window. Doing so excludes frames using MINIBUF
3780bc22
GM
1046 unless their focus is redirected, which contradicts the
1047 specification of next-frame, and leads to infinite loops in
1048 certain situations when cycling through windows with next-window.
1049
dca9961d
KH
10502000-06-30 Kenichi Handa <handa@etl.go.jp>
1051
1052 * coding.c (code_convert_region): Even if the length of text is
1053 zero, try to convert it if coding->type is coding_type_ccl.
1054 (decode_coding_string, encode_coding_string): Likewise.
1055
d5483ab1
GM
10562000-06-28 Gerd Moellmann <gerd@gnu.org>
1057
af5c25e1 1058 * xdisp.c (try_window_reusing_current_matrix): Don't try to reuse
97d176db 1059 the display if windows_or_buffers_changed.
af5c25e1
GM
1060
1061 * dispnew.c (struct row_entry): New structure.
1062 (row_entry_pool, row_entry_pool_size, row_entry_idx, row_table)
1063 (row_table_size, old_lines, new_lines, old_lines_size)
1064 (new_lines_size, run_pool, runs_size, runs): New variables.
1065 (add_row_entry): New function.
1066 (scrolling_window): Use data structures allocated with xmalloc and
97d176db 1067 held in global variables, instead of allocating them with alloca and
af5c25e1
GM
1068 holding them in local variables. Use a larger hash table whose
1069 size depends on glyph matrix sizes. Don't use bzero to clear the
1070 hash table; instead, clear used slots only.
1071
1072 * fns.c (next_almost_prime): Make it externally visible.
1073
1074 * lisp.h (next_almost_prime): Add prototype.
1075
d5483ab1
GM
1076 * s/isc4-0.h (sigunblock): Define.
1077
1078 * s/sco5.h (sigunblock): Define.
1079
93e40f40
DL
10802000-06-27 Dave Love <fx@gnu.org>
1081
1082 * s/osf1.h (C_SWITCH_SYSTEM, LIBS_SYSTEM): Revert last change
1083 (moved to osf5-0.h).
1084 [!NOT_C_CODE]: Protect string.h stuff.
1085
1086 * s/osf5-0.h (C_SWITCH_SYSTEM, WAIT_USE_INT, SYS_SIGLIST_DECLARED)
1087 (sys_siglist, NSIG): Definitions moved here from osf1.h.
1088
3c4b7685
GM
10892000-06-27 Gerd Moellmann <gerd@gnu.org>
1090
97d176db 1091 * xdisp.c (resize_mini_window): Subtract the extra line spacing
3c4b7685
GM
1092 below the last line from the needed window height.
1093
32cad0aa
SM
10942000-06-26 Stefan Monnier <monnier@cs.yale.edu>
1095
1096 * fns.c (Fplist_member): Renamed from Fwidget_plist_member.
1097 (Fwidget_get): Use it.
1098 (syms_of_fns): Defsubr it.
1099
2c69ced2
GM
11002000-06-26 Gerd Moellmann <gerd@gnu.org>
1101
178c5d9c 1102 * xterm.c (xim_initialize) [!USE_XIM]: Don't set up the
1d36487c
GM
1103 display info for XIM.
1104 (xim_open_dpy): Likewise.
1105 (xim_close_dpy): Don't free the display info's XIM.
1106
1107 * xfns.c (x_window) [!USE_XIM]: Don't call create_frame_ic.
1108
1109 * config.in (USE_XIM): New define.
1110
3fc720e4
GM
1111 * keymap.c (get_keyelt): For menu-items containing a `:filter
1112 FILTER', apply FILTER to the menu-item's definition to get the
1113 real definition to use.
1114
1115 * lisp.h (QCfilter): External declaration.
1116
2c69ced2
GM
1117 * xfns.c (Fimage_size): New function.
1118 (syms_of_xfns): Defsubr it.
1119
f978b2a2
AS
11202000-06-26 Andreas Schwab <schwab@suse.de>
1121
1122 * coding.c (decode_coding_string): Re-fetch STRING_BYTES after
1123 Fstring_as_unibyte.
1124
94cc7892
DL
11252000-06-25 Dave Love <fx@gnu.org>
1126
1127 * term.c [!HAVE_TERMCAP_H]: Declare tputs, tgetent, tgetflag,
1128 tgetnum.
1129
1130 * Makefile.in (blockinput.h): Depend on atimer.h.
1131 (atimer.h): Depend on systime.h.
1132
1133 * blockinput.h: Protect against multiple inclusion. Include
1134 atimer.h.
1135
1136 * atimer.h: Protect against multiple inclusion. Include
1137 systime.h.
1138
1139 * lisp.h (swap_in_global_binding): Declare.
1140
b8c24556
KR
11412000-06-24 Ken Raeburn <raeburn@gnu.org>
1142
1143 * process.c (Fopen_network_stream): Turn off atimers for duration
1144 of call to connect. (Patch from Gerd.)
1145
8cf8560b
DL
11462000-06-23 Dave Love <fx@gnu.org>
1147
511c7541
DL
1148 * ralloc.c: Maybe include unistd.h
1149
8cf8560b
DL
1150 * emacs.c (setgrp): Undefine before defining.
1151 (malloc_warning, set_time_zone_rule, index): Prototype.
1152
1153 * systime.h (EMACS_GET_TIME) [!GETTIMEOFDAY_ONE_ARGUMENT]: Use
1154 HAVE_STRUCT_TIMEZONE.
1155
1156 * s/osf1.h: Move string.h hack here from alpha.h and make it
1157 conditional.
1158 (C_SWITCH_SYSTEM): Use _OSF_SOURCE, not -BSD, which clashes with
1159 _XOPEN_SOURCE.
1160 (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist, NSIG): Define.
1161 (SOCKLEN_TYPE): Don't define.
1162
1163 * m/alpha.h: Remove string.h hack.
1164
1165 * s/osf5-0.h: New file.
1166
1167 * filelock.c: Use feature tests for fcntl.h, string.h. Don't
1168 include time.h, done by systime.h.
1169 [__FreeBSD__]: Remove redundant includes.
1170
3fc720e4 1171 * callproc.c (setpgrp): Undefine before defining.
8cf8560b
DL
1172 (delete_temp_file): Return Qnil to avoid warning.
1173
1174 * config.in (HAVE_TERM_H, HAVE_STRUCT_TIMEZONE): Add.
1175
1176 * xfaces.c: Include fontset.h dependent on HAVE_WINDOW_SYSTEM, not
1177 HAVE_X_WINDOWS.
1178
1179 * fontset.h (free_face_fontset): Renamed from fs_free_face_fontset.
1180
1181 * composite.h (compose_text): Declare.
1182
1183 * xterm.c: Don't include sys/types.h unconditionally. Don't
1184 protect its inclusion with !USG (following xmenu.c).
1185
ea055732
GM
11862000-06-23 Gerd Moellmann <gerd@gnu.org>
1187
1188 * xfns.c (x_create_tip_frame): Initialize frame's colors like
1189 in x_create_frame.
1190
74b01b80
EZ
11912000-06-23 Eli Zaretskii <eliz@is.elta.co.il>
1192
1193 * coding.c (decode_eol_post_ccl): Special handling for undecided
1194 and inconsistent EOL types.
1195
64f3a166
GM
11962000-06-22 Gerd Moellmann <gerd@gnu.org>
1197
16cf31f7
GM
1198 * xrdb.c (x_load_resources): Add default resource for scroll bar's
1199 trough color and main window's background color.
1200
178c5d9c 1201 * xfns.c (Fx_file_dialog) [HAVE_MOTIF_2_1]: Handle events
16cf31f7
GM
1202 differently.
1203
1204 * xterm.h (Xt_app_con): External declaration.
1205
1206 * widget.c (EmacsFrameRealize): Fix typo.
178c5d9c 1207
486a103d
GM
1208 * widget.c (EmacsFrameRealize): Remove SubstructureRedirectMask.
1209
64f3a166
GM
1210 * xdisp.c (handle_stop): Initialize it->add_overlay_start to zero.
1211 (handle_invisible_prop): Record the start of invisible text in
1212 it->add_overlay_start.
1213 (struct overlay_entry): Add member `overlay'.
1214 (handle_overlay_change): Simplify.
1215 (next_overlay_string): After having processed overlay strings at the
1216 end of the buffer, record that fact in
1217 it->overlay_strings_at_end_processed_p.
1218 (compare_overlay_entries): If before- and after-strings come
1219 from the same overlay, let before-strings come first.
1220 (RECORD_OVERLAY_STRING): Record the overlay that strings come from.
1221 (load_overlay_strings): Take it->add_overlay_start into account
1222 when adding overlay strings.
1223
1224 * dispextern.h (struct it): Add member add_overlay_start.
1225
bb746ea6
DL
12262000-06-22 Dave Love <fx@gnu.org>
1227
1228 * s/isc3-0.h (C_SWITCH_SYSTEM): Define _XOPEN_SOURCE=500.
1229
1230 * s/gnu-linux.h (C_SWITCH_SYSTEM): Don't define _XOPEN_SOURCE here.
1231
a8f573f3
KH
12322000-06-22 Kenichi Handa <handa@etl.go.jp>
1233
1234 * ccl.c (ccl_driver) <CCL_End>: Decrement stack_idx only when it
1235 is greater than 0.
1236
9f2bbc92
DL
12372000-06-21 Dave Love <fx@gnu.org>
1238
178c5d9c 1239 * Makefile.in (GETLOADAVG_OBJ): Removed -- LIBOBJS does it.
9f2bbc92 1240
3ee5041c
SM
12412000-06-21 Stefan Monnier <monnier@cs.yale.edu>
1242
1243 * syntax.c (back_comment): Simplify string-parity counting (with
1244 the added benefit of handling multiple string-styles as long as
1245 they are not intertwined).
1246 Jump to the slow code as soon as a comment starter is found in
1247 a "string_lossage" position. Fixes the case: " /* " /* " */.
1248
4c343001
DL
12492000-06-21 Dave Love <fx@gnu.org>
1250
1251 * Makefile.in: Use GETLOADAVG_LIBS.
1252
1253 * config.in: Add HAVE_FCNTL_H, _FILE_OFFSET_BITS,
1254 _LARGEFILE_SOURCE, _LARGE_FILES, _XOPEN_SOURCE.
1255
e6365855
SM
12562000-06-20 Stefan Monnier <monnier@cs.yale.edu>
1257
1258 * syntax.c (describe_syntax): Recognize the `n'estable bit.
1259 (Fforward_comment, scan_lists):
1260 Check the comstyle of single-char comment-starters.
1261 (scan_sexps_forward): Don't try to recognize `half comment-enders' if
1262 we're just at the beginning of the comment (f.ex with (*) ... (*)).
d355bd8a
SM
1263 Check the comstyle of single-char comment-starters.
1264 Clarify control-flow around the Scomment case.
e6365855 1265
5700d2cc
DL
12662000-06-20 Dave Love <fx@gnu.org>
1267
d355bd8a
SM
1268 * fns.c (make_hash_table, maybe_resize_hash_table):
1269 Cast arg of next_almost_prime.
5700d2cc 1270
178c5d9c 1271 * tparam.c [emacs]: Include lisp.h.
5700d2cc
DL
1272
1273 * termcap.c [emacs]: Test HAVE_FCNTL_H, not USG5. Include lisp.h
1274 and unistd.h.
1275
4a27bdfb
GM
12762000-06-20 Gerd Moellmann <gerd@gnu.org>
1277
a61d762c
GM
1278 * keyboard.c (adjust_point_for_property): Check if display
1279 property should be treated as intangible by looking at its
1280 value.
1281
178c5d9c 1282 * xdisp.c (single_display_prop_intangible_p)
a61d762c
GM
1283 (display_prop_intangible_p): New functions.
1284
1285 * dispextern.h (display_prop_intangible_p): Add prototype.
1286
1287 * xdisp.c (dump_glyph_row): Show type of glyph->object.
178c5d9c 1288
4a27bdfb
GM
1289 * s/isc4-0.h (sigblock): Redefined to pass a pointer as second
1290 argument to sigprocmask.
1291
1292 * s/sco5.h (sigblock): Redefined to pass a pointer as second
1293 argument to sigprocmask.
1294
1295 * syssignal.h (sigblock, sigunblock) [USG5_4]: Set
1296 sigprocmask_set, and pass a pointer to it to sigprocmask.
1297
1298 * sysdep.c (sigprocmask_set): New variable.
1299
1300 * fileio.c (make_temp_name): Don't use `%s' in string passed to
1301 report_file_error.
1302
427ec082
SS
13032000-06-20 Sam Steingold <sds@gnu.org>
1304
1305 * xrdb.c: Don't declare xmalloc, xrealloc.
1306
8972fe79 13072000-06-20 Stefan Monnier <monnier@cs.yale.edu>
8972fe79
SM
1308
1309 * regex.c (re_match, re_match_2): Protect calls to alloca (0).
1310 (re_comp): Cast gettext return value to avoid complaints when
1311 !HAVE_LIBINTL.
1312
074b6efe
DL
13132000-06-20 Dave Love <fx@gnu.org>
1314
f85c008a
DL
1315 * m/stride.h, m/mips.h: Don't define HAVE_GETWD,
1316 HAVE_GETTIMEOFDAY.
1317
5700d2cc 1318 * m/ibmrt-aix.h: Don't declare HAVE_GETTIMEOFDAY, HAVE_VFORK.
f85c008a 1319
d355bd8a 1320 * m/ibmrs6000.h, m/ibmps2-aix.h, m/dpx2.h: Don't declare HAVE_GETWD.
f85c008a
DL
1321
1322 * m/alpha.h: Don't declare xmalloc, xrealloc.
1323
0af4f205
DL
1324 * s/ux4800.h: Don't declare GETTIMEOFDAY_ONE_ARGUMENT.
1325
1326 * s/usg5-4-2.h: Don't declare HAVE_GETWD, VFORK_RETURN_TYPE.
1327
1328 * s/umips.h: Don't declare HAVE_GETWD, HAVE_GETTIMEOFDAY.
1329
1330 * s/cxux.h, s/gnu-linux.h, s/iris3-6.h, s/irix3-3.h: Don't declare
1331 HAVE_GETWD.
1332
074b6efe
DL
1333 * keyboard.h (poll_for_input_1): Declare.
1334
1335 * getloadavg.c: Don't define NLIST_STRUCT (handled by configure).
1336
1337 * alloc.c (xmalloc, xrealloc, xfree): Define using POINTER_TYPE.
1338
1339 * doprnt.c: Don't declare xmalloc, xrealloc.
1340
1341 * lisp.h (x_set_tool_bar_lines, free_frame_xic, compose_text)
1342 (getenv, ctime, getwd): Removed.
1343 (xmalloc, xrealloc, xfree): Declare using POINTER_TYPE.
1344
1345 * xterm.h: Remove duplicate prototypes. Declare free_frame_xic,
1346 x_set_tool_bar_lines.
1347
1348 * config.in: Add HAVE_GETWD. Move some definitions above
1349 machine/system includes.
1350
68a5e97b
KH
13512000-06-20 Kenichi Handa <handa@etl.go.jp>
1352
95417e1e
KH
1353 * s/bsd386.h (HAVE_GETLOADAVG): Define it as 1.
1354
68a5e97b
KH
1355 * xfaces.c (font_list): Handle the case that REGISTRY doesn't
1356 contain information about ENCODING.
1357
1358 * fontset.c (FONTSET_ASCII): Use the first element of char table
1359 for an ASCII font, not defalt slot.
1360 (fontset_ref_via_base): If FONTSET doesn't contain information for
1361 C, try the default fontset.
1362 (make_fontset): Don't copy the default fontset.
1363 (fontset_font_pattern): Likewise.
1364 (accumulate_font_info): If ELT is nil, use the corresponding
1365 element in the default fontset.
1366
3b4fa1b2
DL
13672000-06-19 Dave Love <fx@gnu.org>
1368
943e731c
DL
1369 * syntax.c (Fparse_partial_sexp): Doc fix.
1370
1371 * regex.h: Test PROTOTYPES as well as __STDC__.
1372
3b4fa1b2
DL
1373 * unexalpha.c: Include errno.h, string.h, unistd.h. Don't declare
1374 errno, strerror. Put text after #endif in comment.
1375
1376 * xdisp.c (dump_glyph_matrix): Add `static' to declaration (for
1377 pcc).
1378
1379 * xterm.c (x_frame_of_widget): Likewise.
1380
cdf0357b
GM
13812000-06-19 Gerd Moellmann <gerd@gnu.org>
1382
1383 * abbrev.c (syms_of_abbrev): Set buffer_default's abbrev table
1384 to Vfundamental_mode_abbrev_table.
1385
1386 * alloc.c (mark_object) [GC_CHECK_MARKED_OBJECTS]: Check that no
1387 bogus objects are marked. This slows down GC by ~80 percent, but
1388 it might be worth trying when debugging GC-related problems.
1389 This feature requires conservative stack marking to be enabled.
1390
1391 * xterm.c (XTread_socket) <KeyPress>: In case XmbLookupString
1392 returns XLookupChars, reset `modifiers' to zero.
1393
998e9f8c
DL
13942000-06-19 Dave Love <fx@gnu.org>
1395
1396 * mktime.c: Unprotoized.
1397
18e21ce8 13982000-06-19 Richard Stallman <rms@gnu.org>
d1504184
GM
1399
1400 * data.c (set_internal): If variable is frame-local,
1401 store the new value immediately into the frame parameter alist.
1402
140c4ac6
KR
14032000-06-19 Ken Raeburn <raeburn@gnu.org>
1404
14358466
KR
1405 * xfns.c (jpeg_load): Fetch error-handling data first, then fill
1406 in the custom handler pointer.
1407
140c4ac6
KR
1408 * keyboard.c (follow_key, read_key_sequence): Use XUINT on key
1409 value, or checks for CHAR_META can fail when Lisp_Object is a
1410 union type.
1411 * keymap.c (get_keyelt): Likewise.
1412
10d7bf84
KH
14132000-06-19 Kenichi Handa <handa@etl.go.jp>
1414
1415 * ccl.h (struct ccl_program): New member eol_type.
1416 (struct ccl_spec): New member cr_carryover.
1417
1418 * ccl.c (CCL_WRITE_CHAR): Convert NL according to ccl->eol_type.
1419 (setup_ccl_program): Initialize ccl->eol_type to CODING_EOL_LF.
1420
1421 * coding.c (setup_coding_system) <4>: Reset member `cr_carryover'.
1422 (ccl_coding_driver): On encoding, initialize ccl->eol_type.
1423 (decode_eol_post_ccl): New function.
1424 (decode_coding): Don't detect EOL format here for CCL based coding
1425 systems.
1426 (decode_coding) <coding_type_ccl>: Handle carryovered CR. Call
1427 decode_eol_post_ccl after running the CCL program.
1428 (code_convert_region): Don't detect EOL format here for CCL based
1429 coding systems.
1430 (decode_coding_string): Likewise.
1431
52e386c2
KR
14322000-06-18 Ken Raeburn <raeburn@gnu.org>
1433
1434 * charset.c (update_charset_table): Use XINT on "iso_final_char"
1435 when treating it as an integer.
1436
1437 * coding.h (encode_coding_string): Declare.
1438
1439 * keyboard.c (read_key_sequence): Use XINT on "pos" when treating
1440 it as an integer.
1441
1442 * keymap.c (Fwhere_is_internal): Rename argument "keymap" to
1443 "xkeymap" to avoid shadowing the "enum map_type" value that needs
1444 to be passed to get_local_map.
1445
1446 * sound.c (Fplay_sound): Don't call make_number on
1447 Frun_hook_with_args count argument.
1448
1449 * xterm.c (x_send_scroll_bar_event): Fudge lisp object/integer
1450 for lisp objects in X event structure data field, when lisp
1451 objects are represented with unions.
1452 (x_scroll_bar_to_input_event): Ditto.
1453
b357b9d4
KR
14542000-06-16 Ken Raeburn <raeburn@gnu.org>
1455
1456 * xdisp.c (decode_mode_spec): In "no_value" case, do NUL
37d034d3
KR
1457 termination of string. Fix sense of test whether
1458 Vline_number_display_limit is an integer.
b357b9d4 1459
a871441d
GM
14602000-06-16 Gerd Moellmann <gerd@gnu.org>
1461
a9021acd
GM
1462 * xfaces.c (syms_of_xfaces) [DEBUG_X_COLORS]: Defsubr dump_colors
1463 only if HAVE_X_WINDOWS.
1464
6344985d
GM
1465 * keymap.c (describe_buffer_bindings): Add `\f\n' in front
1466 of titles.
1467
427ec082 1468 * dispnew.c (update_frame_1): Handle case that cursor vpos is
a871441d
GM
1469 out of bounds.
1470
228b083e
EZ
14712000-06-15 Eli Zaretskii <eliz@is.elta.co.il>
1472
1473 * unexec.c (toplevel): Fix last change, so as not to deprive MSDOS
1474 of its headers.
1475
c25b53a2
KH
14762000-06-15 Kenichi Handa <handa@etl.go.jp>
1477
1478 * coding.c (decode_coding_emacs_mule): Always set src_base at the
1479 start of the while loop.
1480
a6981b11
GM
14812000-06-15 Gerd Moellmann <gerd@gnu.org>
1482
e9924e52
GM
1483 * atimer.c (alarm_signal_handler): Add forward declaration.
1484
a6981b11
GM
1485 * data.c (set_internal): Remove debug code.
1486
25fa6deb
GM
14872000-06-14 Gerd Moellmann <gerd@gnu.org>
1488
dce6b995
GM
1489 * Makefile.in (bootstrap-temacs): Add `-I../src'.
1490
9f817ea4
GM
1491 * unexec.c (toplevel) [COFF]: Include coff.h.
1492
1493 * s/lynxos.h: New file.
1494
1495 * keymap.c (Fsingle_key_description): Enclose function key and
1496 event symbol names in angle brackets.
1497
8a4e3c0c
GM
1498 * xdisp.c (setup_echo_area_for_printing): Call
1499 message_log_maybe_newline if message_buf_print is not set.
1500
1501 * print.c (printchar, strout): Don't check message_buf_print
427ec082 1502 before calling setup_echo_area_for_printing because that
8a4e3c0c
GM
1503 function does something useful even when message_buf_print is
1504 already set.
1505
25fa6deb
GM
1506 * xdisp.c (message_truncate_lines, Qmessage_truncate_lines): New
1507 variables.
1508 (ensure_echo_area_buffers): Initialize echo buffer's
1509 truncate lines setting to nil.
1510 (with_echo_area_buffer): Don't set the echo buffer's truncate
1511 lines setting here.
8a4e3c0c 1512 (set_message_1): Set it here instead, based on the value
25fa6deb
GM
1513 of message_truncate_lines.
1514 (resize_mini_window): Handle case that lines are truncated.
1515 (syms_of_xdisp): Initialize Qmessage_truncate_lines. DEFVAR_BOOL
1516 message-truncate-lines.
1517
1518 * keyboard.c (read_char): Bind message-truncate-lines to t
1519 while displaying a help-echo.
1520
1521 * lisp.h (Qmessage_truncate_lines): External declaration.
1522
163dcff3
GM
15232000-06-13 Gerd Moellmann <gerd@gnu.org>
1524
1681ead6
GM
1525 * xdisp.c (Vline_number_display_limit): Renamed from
1526 line_number_display_limit.
1527 (syms_of_xdisp): Use DEFVAR_LISP for line-number-display-limit.
1528 Extend documentation string. Initialize
1529 Vline_number_display_limit to nil meaning no limit.
1530 (decode_mode_spec): Use Vline_number_display_limit with its new
1531 meaning.
1532
163dcff3
GM
1533 * xterm.c (x_check_font) [GLYPH_DEBUG]: Add prototype.
1534
18e21ce8 15352000-06-13 Richard Stallman <rms@gnu.org>
163dcff3
GM
1536
1537 * frame.c (Fmodify_frame_parameters): Doc fix.
427ec082 1538
163dcff3
GM
1539 * xfns.c (x_set_frame_parameters): Comment fix.
1540
1541 * frame.c (store_frame_param): Call swap_in_global_binding if the
1542 variable's current binding was chosen based on this frame.
1543
1544 * data.c (swap_in_global_binding): New function.
1545
a704139d
EZ
15462000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
1547
1548 * msdos.c (IT_write_glyphs): Don't use CODING_REQUIRE_ENCODING
1549 macro, instead AND with CODING_REQUIRE_ENCODING_MASK.
1550
9b6610db
EZ
15512000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
1552
1553 * msdos.h (EMACS_MSDOS_H): Renamed from MSDOS_H_.
1554
c68833d2
JR
15552000-06-12 Jason Rumney <jasonr@gnu.org>
1556
1557 * w32bdf.h (EMACS_W32BDF_H): Renamed from __W32BDF_H__
1558
1559 * w32.h (EMACS_W32_H): Renamed from _NT_H_
1560
1561 * w32gui.h (EMACS_W32GUI_H): Renamed from __W32GUI_H__
1562
1563 * w32inevt.h (EMACS_W32INEVT_H): Renamed from __NTINEVT_H__
1564
ed1056b3
GM
15652000-06-12 Gerd Moellmann <gerd@gnu.org>
1566
1567 * xfaces.c (Fdump_colors) [DEBUG_X_COLORS]: New function.
1568 (syms_of_xfaces): Defsubr Sdump_colors.
1569 (x_free_colors): Don't treat b&w specially on default visual.
1570 (x_free_dpy_colors): New function.
1571 (free_face_colors): Don't check visual class; it's done
1572 in x_free_colors.
1573
1574 * xterm.c (x_frame_of_widget): New function.
1575 (x_alloc_nearest_color_for_widget): Use it.
1576 (x_copy_dpy_color): New function.
1577 (x_destroy_window): Free various colors.
1578
5050a2ef
KH
15792000-06-12 Kenichi Handa <handa@etl.go.jp>
1580
1581 * ccl.h (EMACS_CCL_H): Renamed from _CCL_H.
1582
1583 * charset.h (EMACS_CHARSET_H): Renamed from _CHARSET_H.
1584
1585 * coding.h (EMASC_CODING_H): Renamed from _CODING_H.
1586
1587 * composite.h (EMACS_COMPOSITE_H): Renamed from _COMPOSITE_H.
1588
1589 * fontset.h (EMACS_FONTSET_H): Renamed from _FONTSET_H.
1590
fb1b041d
DL
15912000-06-11 Dave Love <fx@gnu.org>
1592
1593 * systime.h (EMACS_SYSTIME_H): Renamed from _SYSTIME_H.
1594
ff96b5f4
EZ
15952000-06-11 Eli Zaretskii <eliz@is.elta.co.il>
1596
1597 * msdos.h: Don't use _MSDOS_H_ as a symbol, use MSDOS_H_ instead.
1598
db8eeecd
GM
15992000-06-11 Gerd Moellmann <gerd@gnu.org>
1600
ed1056b3 1601 * xmenu.c (xmenu_show): Cast second parameter of lw_popup_menu
db8eeecd
GM
1602 to `XEvent *'.
1603
49b71c5f
KH
16042000-06-10 Kenichi Handa <handa@etl.go.jp>
1605
c479bd55
KH
1606 * regex.c (MAKE_CHAR) [!emacs]: Dummy macro for non-Emacs env.
1607 (regex_compile): Fix the code for handling the case of single byte
1608 char and multibyte char being mixed in a range within [...].
1609
ff6a65c2
KH
1610 * fileio.c (Finsert_file_contents): Be sure to setup src_multibyte
1611 and dst_multibyte members of coding.
1612
49b71c5f
KH
1613 * charset.c (update_charset_table): Update the table
1614 bytes_by_char_head.
1615 (init_charset_once): Initialize elements of bytes_by_char_head to
1616 1 except for leading codes for private charases.
1617
1618 * charset.h (CHARSET_8_BIT_GRAPHIC): Define as 0x80.
1619 (UNIBYTE_STR_AS_MULTIBYTE_P): Fix for an invalid multibyte
1620 sequence.
1621
9e80b57d
KR
16222000-06-09 Ken Raeburn <raeburn@gnu.org>
1623
1624 * xterm.c (x_connection_closed): If dpyinfo is NULL, don't try to
1625 access the data it doesn't point to.
1626
f83fe4b4
GM
16272000-06-08 Gerd Moellmann <gerd@gnu.org>
1628
1629 * xterm.c (XTread_socket) <FocusIn>: Queue a FOCUS_IN_EVENT which
db8eeecd 1630 will be translated to a switch-frame event when reading the
f83fe4b4
GM
1631 event queue. This is necessary because Emacs otherwise won't
1632 perform a switch-frame to a new frame until some other event, for
1633 example a keystroke event, forces it to do so. This has various
1634 effects, one visible being that the cursor of a frame created with
1635 C-x 5 2 or switched to with a window manager key binding like
1636 A-TAB stays hollow because selected_window isn't on the newly
1637 focused frame until the switch-frame is performed.
1638
1639 * keyboard.c (kbd_buffer_get_event): Handle FOCUS_IN_EVENT by
1640 generating a switch-frame event if necessary.
1641
1642 * termhooks.h (enum event_kind): Add FOCUS_IN_EVENT.
1643
1644 * xdisp.c (handle_fontified_prop): Don't GCPRO local var `pos';
1645 it's an integer.
1646
0890801b
KH
16472000-06-08 Kenichi Handa <handa@etl.go.jp>
1648
1649 * fontset.c (Fset_fontset_font): The arg CHARACTER may be a
1650 charset.
1651
173cbca8
GM
16522000-06-07 Gerd Moellmann <gerd@gnu.org>
1653
3091c2a6
GM
1654 * window.c (displayed_window_lines): Take empty lines at
1655 the bottom of a window into account.
427ec082 1656
f38952fe
GM
1657 * window.c (displayed_window_lines): New function.
1658 (Fmove_to_window_line): Use displayed_window_lines to determine
1659 the number of lines to move, instead of using the window's height.
1660
1661 * lread.c (readevalloop): If READCHARFUN sets point to ZV, arrange
1662 to stop reading, even if the form read sets point to a different
1663 value when evaluated.
1664
427ec082 1665 * xdisp.c (display_line): Fix code deciding in which line to
173cbca8
GM
1666 put the cursor.
1667
6ba6c818
KH
16682000-06-07 Kenichi Handa <handa@etl.go.jp>
1669
1670 * fileio.c (e_write): Free composition data if stored in
1671 coding->cmp_data.
1672
5f1aea9a
GM
16732000-06-06 Gerd Moellmann <gerd@gnu.org>
1674
666852af
GM
1675 * xdisp.c (display_line): Set row's and iterator's
1676 starts_in_middle_of_char_p and ends_in_middle_of_char_p flags.
1677 Set cursor even if row ends in the middle of a character.
1678 (dump_glyph_row): Print values of new flags.
1679 (redisplay_window) <cursor movement in unchanged window>: When
1680 point has been moved forward, and PT is at the end of the cursor
1681 row, don't place the cursor in the next row if the cursor row ends
1682 in the middle of a character or at ZV.
1683
1684 * dispextern.h (struct it): Add starts_in_middle_of_char_p.
1685 (struct glyph_row): Add starts_in_middle_of_char_p and
1686 ends_in_middle_of_char_p.
1687 (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P): Test row's
1688 ends_in_middle_of_char_p flag.
1689 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Likewise.
1690
d13f3e2e
GM
1691 * term.c (append_glyph): Revert change of 2000-06-06.
1692
1693 * xdisp.c (display_line): Revert change of 2000-06-06. Treat
1694 padding glyph not fitting on line as whole character not
1695 fitting on line.
1696
5f1aea9a
GM
1697 * xterm.c (x_produce_glyphs): Don't xassert `it->descent > 0';
1698 this isn't true for images with `:ascent 100'.
1699
10cda9b0
KH
17002000-06-06 Kenichi Handa <handa@etl.go.jp>
1701
ed00559d
KH
1702 * buffer.c (Fset_buffer_multibyte): Don't make the current buffer
1703 as modified if it is originally unmodified.
1704
10cda9b0
KH
1705 * term.c (encode_terminal_code): Change the way to check if
1706 terminal coding does any conversion.
1707 (append_glyph): Set glyph->pixel_width correctly.
1708
1709 * xdisp.c (display_line): While checking line continuation, pay
1710 attention to a padding glyph.
1711
1969fae2
GM
17122000-06-05 Gerd Moellmann <gerd@gnu.org>
1713
1714 * xdisp.c (redisplay_window): Always use set_buffer_internal_1.
1715
162ccef4
DL
17162000-06-05 Dave Love <fx@gnu.org>
1717
f19f32dd
DL
1718 * xdisp.c: Include fontset.h.
1719
1720 * xfns.c (x_real_positions): Declare tmp_nchildren as unsigned.
1721
1722 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
1723
1724 * dispnew.c: Conditionally include term.h.
1725
1726 * coding.h: Declare code_convert_string_norecord.
1727
1728 * frame.h (struct frame): Use volatile unconditionally.
1729
1730 * buffer.h: Remove Vbefore_change_function, Vafter_change_function.
1731
1732 * xmenu.c (menu_item_selection): Declare volatile unconditionally.
1733
1734 * systime.h: Protect against multiple inclusion.
1735 (timezone) [USG5_4]: Define as time_t.
1736
1737 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
1738 (Foptimize_char_table, make_temp_name): Declare.
1739
1740 * Makefile.in (xdisp.o): Depend on fontset.h.
1741
1742 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
1743
1744 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
1745 (Foptimize_char_table, make_temp_name): Declare.
1746
427ec082 1747 * s/irix4-0.h:
162ccef4
DL
1748 * s/irix5-0.h:
1749 * s/netbsd.h: Don't define autoconfiscated MATHERR.
1750
2082fe81
DL
17512000-06-02 Dave Love <fx@gnu.org>
1752
1753 * lread.c (_XOPEN_SOURCE, __EXTENSIONS__): Don't define.
1754
dcf671d2
GM
17552000-06-02 Gerd Moellmann <gerd@gnu.org>
1756
1757 * xfaces.c (realize_x_face): When copying BASE_FACE bitwise to the
1969fae2 1758 result face, set flags in that face indicating that colors may not
dcf671d2
GM
1759 be freed.
1760
1761 * xterm.c (x_set_mouse_face_gc): If first glyph isn't a character
1762 glyph, use the ASCII NUL character to determine the face.
1763
d42122a3
DL
17642000-06-02 Dave Love <fx@gnu.org>
1765
1766 * sysdep.c: Conditionally include stdlib.h, unistd.h.
1767 (VFORK_RETURN_TYPE): Remove.
427ec082 1768
d42122a3
DL
1769 * config.in: Add NO_MATHERR.
1770
dd432f16
DL
17712000-06-01 Dave Love <fx@gnu.org>
1772
90aa4ea8
DL
1773 * cmds.c (internal_self_insert): Don't check
1774 Vbefore_change_function, Vafter_change_function.
1775
1776 * insdel.c (signal_before_change, signal_after_change): Likewise.
1777
1778 * buffer.c (Vbefore_change_function, Vafter_change_function):
1779 Variables and their initializations deleted.
1780
2330c9d4
DL
1781 * callint.c (Fcall_interactively): Doc fix.
1782
dd432f16
DL
1783 * terminfo.c (ospeed) [HAVE_SPEED_T]: Don't declare extern.
1784
bf9e8804
DL
17852000-05-31 Dave Love <fx@gnu.org>
1786
1787 * textprop.c: Revert last change -- duplicated.
1788
3694b4ab
GM
17892000-05-31 Gerd Moellmann <gerd@gnu.org>
1790
1791 * dispnew.c (find_glyph_row_slice, swap_glyphs_in_rows): Put
1792 in #if 0.
1793
1794 * lisp.h (eassert) [!ENABLE_CHECKING]: Define as `(void) 0'.
1795
f14156cd
JR
17962000-05-31 Jason Rumney <jasonr@gnu.org>
1797
8119aab8
JR
1798 * search.c (Fre_search_forward, Fre_search_backward)
1799 (Fposix_search_backward, Fposix_search_forward): Fix newlines in docs.
1800
f14156cd
JR
1801 * w32select.c (Fw32_set_clipboard_data): Change QNil to Qnil.
1802
4aab9be3
JR
18032000-05-30 Jason Rumney <jasonr@gnu.org>
1804
1805 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: New macros.
1806 [WINDOWSNT]: Add extern for Vw32_system_coding_system.
1807
1808 * dispextern.h (struct glyph) [WINDOWSNT]: Add w32_font_type
1809 member.
1810
1811 * fileio.c (Fread_file_name) [HAVE_NTGUI]: Use file dialog.
1812 (Fread_file_name) [HAVE_NTGUI, USE_MOTIF]: Do not attempt to
1813 expand a nil default_filename.
1814
1815 * keyboard.c (make_lispy_event) [WINDOWS_NT]: Pass a window
1816 pointer to glyph_to_pixel_coords, not a frame.
1817
1818 * makefile.nt (w32fns.obj, w32menu.obj): Add charset.h and
1819 coding.h to dependencies.
1820
1821 * w32bdf.c (w32_load_bdf_font): Initialize font->double_byte_p.
1822
1823 * w32console.c (glyph_to_pixel_coords): Change first parameter to
1824 window pointer to be consistent with w32term.c and xterm.c.
1825
1826 * w32fns.c: Format and doc changes to bring closer to xfns.c.
1827 (VIETNAMESE_CHARSET): Define if not defined in system headers.
1828 (Qline_spacing, Qcenter): New variables.
1829 (Qw32_charset_*, w32_codepage_for_font): Moved from w32term.c.
1830 (x_set_line_spacing): New function.
1831 (x_set_frame_parameters): Use FRAME_NEW_WIDTH, FRAME_NEW_HEIGHT
1832 macros.
1833 (x_specified_cursor_type): New function.
1834 (x_set_cursor_type): Use it.
1835 (x_set_name, x_set_title): Use ENCODE_SYSTEM to encode titlebar
1836 and icon strings.
1837 (validate_x_resource_name, x_get_resource_string): Measure lengths
1838 of external strings in bytes.
1839 (w32_wnd_proc) [WM_MEASURE_ITEM]: Avoid calling
1840 GetTextExtentPoint32 with NULL title.
1841 (Fx_create_frame): Initialize Qline_spacing.
1842 (w32_load_system_font): Initialize font->double_byte_p.
1843 (x_to_w32_charset): Use Vw32_charset_info_alist.
1844 (Image, busy cursor, tooltip functions): Merged changes from
1845 xfns.c. Not yet functional on Windows.
1846
1847 * w32gui.h (W32FontStruct): Add double_byte_p member.
1848
1849 * w32inevt.c (NUM_TRANSLATED_MOUSE_BUTTONS): New constant.
1850 (emacs_button_translation): Use it.
1851 (do_mouse_event): Allow up to 32 mouse buttons by allowing any bit
1852 in `mask' to be set.
1853
1854 * w32menu.c (single_submenu, w32_menu_show): Call ENCODE_SYSTEM on
1855 menu strings.
1856
1857 * w32term.c: Format and doc changes to bring closer to xterm.c.
1858 (w32_char_font_type): New enum.
1859 (Qw32_charset_*, w32_codepage_for_font): Moved to w32fns.c.
1860 (w32_per_char_metric): Use w32_char_font_type instead of unicode_p.
1861 (w32_encode_char): New function.
1862 (x_encode_char): Removed.
1863 (x_get_glyph_and_face_encoding): Use w32_encode_char in place of
1864 x_encode_char and w32_font_is_double_byte.
1865 (x_produce_image_glyph): Use image_ascent.
1866 (x_produce_glyphs): Use new version of w32_per_char_metric and
1867 handle NULL return value. Allow extra line spacing.
1868 (W32_TEXTOUT): Distinguish between Unicode and DBCS text.
1869 (w32_get_glyph_overhangs): Remove unicode_p param. Use
1870 w32_font_type member of glyph instead.
1871 (x_draw_glyph_string): Draw underline and strike-out for BDF fonts.
1872 (fast_find_position): Make sure not to consider rows not visible
1873 in the window.
1874 (w32_read_socket) [WM_MENUSELECT]: Cannot call
1875 w32_menu_display_help with input blocked, as it can abort.
1876 (x_display_and_set_cursor): Choose cursor depending
1877 on buffer-local value of cursor_type.
1878 (x_draw_bar_cursor): Add parameter WIDTH.
1879
1880 * w32term.h (CP_DEFAULT): Define.
1881 (Fx_display_color_p, Fx_display_grayscale_p, image_ascent): Declare.
1882
10fc3187
GM
18832000-05-30 Gerd Moellmann <gerd@gnu.org>
1884
1885 * search.c (Fre_search_forward, Fre_search_backward)
1886 (Fposix_search_backward, Fposix_search_forward): Doc fix.
1887
d0555360
KH
18882000-05-30 Kenichi Handa <handa@etl.go.jp>
1889
1890 * coding.c (detect_coding_iso2022): Fix code for checking
1891 CODING_CATEGORY_MASK_ISO_8_2.
1892
f1ad044f
SM
18932000-05-29 Stefan Monnier <monnier@cs.yale.edu>
1894
1895 * regex.c (PREFETCH_NOLIMIT): New function.
1896 (re_match_2_internal): Use it and adjust the end_match_2 logic.
1897
84ec3b4b
GM
18982000-05-29 Gerd Moellmann <gerd@gnu.org>
1899
66254a13
GM
1900 * syntax.c (find_defun_start): Move test for
1901 open_paren_in_column_0_is_defun_start outside of the loop.
1902
49e70dec
GM
1903 * xdisp.c (redisplay_window): Really switch buffers when
1904 displaying mode lines, and temporarily set selected_frame to the
1905 frame of the window that's redisplayed.
1906
84ec3b4b
GM
1907 * xfaces.c (free_realized_faces): Block/unblock input.
1908 (free_realized_multibyte_face): Ditto.
1909
869a3a14
DL
19102000-05-29 Dave Love <fx@gnu.org>
1911
1912 * textprop.c (Qkeymap): New variable.
1913 (syms_of_textprop): Intern it.
1914
1915 * keymap.c: Include intervals.h.
1916 (Fkey_binding, Fwhere_is_internal): Deal with `keymap' property.
1917
1918 * Makefile.in (keymap.o): Depend on intervals.h.
1919
1920 * keyboard.c (menu_bar_items, tool_bar_items)
1921 (Fexecute_extended_command): Deal with `keymap' property.
1922 (read_key_sequence): Track map from `keymap' property as well as
1923 `local_map'.
1924
1925 * intervals.c (get_local_map): Extra arg to allow looking for
1926 `keymap' too.
1927
1928 * intervals.h (map_property): New enum.
1929 (get_local_map): Extra arg using it.
1930 (Qkeymap): Declare.
1931
84ec3b4b 1932 * lisp.h (get_local_map): Don't declare here.
869a3a14 1933
89d0c844
KH
19342000-05-29 Kenichi Handa <handa@etl.go.jp>
1935
1936 * Makefile.in (callproc.o): Depend on composite.h.
1937
1938 * callproc.c: Include composite.h.
1939 (Fcall_process): Handle composition correctly.
1940
1941 * coding.h (coding_allocate_composition_data): Extern it.
1942 (coding_restore_composition): Likewise.
1943
1944 * coding.c (DECODE_COMPOSITION_START): If coding->cmp_data is not
1945 yet allocated, finish decoding with result
1946 CODING_FINISH_INSUFFICIENT_CMP.
1947 (coding_allocate_composition_data): Make it non-static.
1948 (coding_restore_composition): Likewise.
1949
797a084a
EZ
19502000-05-29 Eli Zaretskii <eliz@is.elta.co.il>
1951
1952 * charset.c (syms_of_charset): Revert last change.
1953
cf872af5
EZ
19542000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
1955
1956 * term.c (produce_glyphs): Treat characters from the eight-bit-*
d7d0dac0
SM
1957 charsets as unibyte, with 1-column screen width. Sent by Kenichi
1958 Handa.
cf872af5 1959
5b1ae051
EZ
19602000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
1961
1962 * charset.c (syms_of_charset): Set width of character sets
1963 eight-bit-control and eight-bit-graphic to 1 column.
1964
34ec9ebe
GM
19652000-05-26 Gerd Moellmann <gerd@gnu.org>
1966
1967 * config.in (HAVE_SPEED_T): New define.
1968
1969 * sysdep.c, terminfo.c (ospeed) [HAVE_SPEED_T]: Declare as
1970 `extern speed_t'.
1971
dd854dc2
DL
19722000-05-26 Dave Love <fx@gnu.org>
1973
1974 * coding.c (shrink_decoding_region): Initialize eol_conversion.
1975
1976 * data.c (Qsubrp, Qmany, Qunevalled): New variables.
1977 (Fsubr_arity): New function.
1978 (syms_of_data): Install them.
1979
ba9f8f95
KH
19802000-05-26 Kenichi Handa <handa@etl.go.jp>
1981
0f3e0672
KH
1982 * charset.c (init_charset_once): Set the table bytes_by_char_head
1983 correctly.
1984
cebefb44
KH
1985 * fontset.c (syms_of_fontset): Adjust the font name for ascii of
1986 the default fontset to what Emacs uses by default.
0f3e0672
KH
1987 (check_registry_encoding): This function deleted.
1988 (Fset_fontset_font): Remove the adhoc condition for the default
1989 fontset. Allow cons in FONTNAME.
cebefb44 1990
0f3e0672
KH
1991 * fns.c (map_char_table): Ignore char-table entries for
1992 charsets eight-bit-control and eight-bit-graphic.
ba9f8f95 1993
7a18af49
KR
19942000-05-25 Ken Raeburn <raeburn@gnu.org>
1995
1996 * emacs.c (main): Initialize keyboard syms before initializing
1997 window code, so face names are available.
1998
d2af47df
SM
19992000-05-25 Stefan Monnier <monnier@cs.yale.edu>
2000
2001 * regex.c (at_begline_loc_p): Also recognize the \\(?:^ case
2002 of an anchor at the beginning of a shy-group.
2003
fc6a6a4e
GM
20042000-05-25 Gerd Moellmann <gerd@gnu.org>
2005
2006 * xdisp.c (handle_invisible_prop): Don't try to skip over
2007 invisible text if end of text is already reached.
2008
005f0d35
DL
20092000-05-25 Dave Love <fx@gnu.org>
2010
02513cdd
DL
2011 * xdisp.c (Fdump_glyph_matrix): Declare the arg.
2012
005f0d35
DL
2013 * coding.c (encode_eol): Add null statement after label.
2014
89f6ca4e
EZ
20152000-05-25 Eli Zaretskii <eliz@is.elta.co.il>
2016
2017 * w16select.c (Fw16_set_clipboard_data): Fix the change from
2018 2000-05-20.
2019
a4e1759e
KH
20202000-05-25 Kenichi Handa <handa@etl.go.jp>
2021
2022 * ccl.c (ccl_driver): Fix previous change.
2023
eacfd7fe
KH
20242000-05-25 Kenichi Handa <handa@etl.go.jp>
2025
46ab33a9
KH
2026 * coding.c (run_pre_post_conversion_on_str): Set point to the
2027 beginning of buffer before calling coding->post_read_conversion.
2028 (decode_coding_string): Give correct args to
2029 run_pre_post_conversion_on_str.
2030 (encode_coding_string): Likewise.
2031
eacfd7fe
KH
2032 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>
2033 <CCL_WriteMultibyteChar2>: Handle charsets eight-bit-control and
2034 eight-bit-graphic correctly.
2035
f8569325
DL
20362000-05-24 Kenichi HANDA <handa@etl.go.jp>
2037
2038 * fileio.c (Finsert_file_contents): Even if a file is not found,
2039 execute codes for setting up coding system. Call
2040 after-insert-file-functions unconditionally.
2041
04545643
GM
20422000-05-24 Gerd Moellmann <gerd@gnu.org>
2043
2044 * callproc.c, emacs.c, sysdep.c (setpgrp): Don't define if USG and
2045 BSD_PGRPS are not defined.
2046
747d90ea
KH
20472000-05-24 Kenichi Handa <handa@etl.go.jp>
2048
2049 * charset.c (update_charset_table): Accept nil in LONG_NAME and
2050 DESCRIPTION.
2051 (syms_of_charset): Avoid building same strings.
2052
716e3b88
GM
20532000-05-23 Gerd Moellmann <gerd@gnu.org>
2054
2055 * lread.c (Fload): Add a comment about the meaning of
2056 Vuser_init_file being t.
2057
2058 * puresize.h (BASE_PURESIZE): Increase to 675000.
2059
2060 * s/gnu-linux.h (setpgrp): Don't define it here because this
2061 prevents compilation on GNU/Linux systems with glib 2.2.
2062
2063 * callproc.c, emacs.c, sysdep.c (setpgrp) [HAVE_SETPGID]: Define
2064 as setpgid.
427ec082 2065
9aeb39fa
EZ
20662000-05-23 Eli Zaretskii <eliz@is.elta.co.il>
2067
2068 * Makefile.in (SOME_MACHINE_LISP): Add disp-table.elc,
2069 dos-vars.elc, ccl.elc, and codepage.elc, all loaded by the MS-DOS
2070 version.
2071 (MSDOS_SUPPORT): Add dos-vars.elc, ccl.elc, and codepage.elc.
2072
29ced61b
KH
20732000-05-23 Kenichi Handa <handa@etl.go.jp>
2074
0574a2ed
KH
2075 * syntax.c (skip_chars): Use FETCH_STRING_CHAR_ADVANCE
2076 unconditionally.
2077
3d80f24d
KH
2078 * msdos.c (IT_write_glyphs): Set coding->src_multibyte to 1.
2079
2080 * term.c (encode_terminal_code): Set coding->src_multibyte
2081 properly.
2082
29ced61b
KH
2083 * coding.c (encode_eol): Fix a bug of DOS style EOL encoding.
2084
d7e00792
KH
20852000-05-22 Kenichi Handa <handa@etl.go.jp>
2086
c9d80d38
KH
2087 * keyboard.c (read_char): Allow character codes 128..255 to be
2088 handled by input-method-function.
2089
d7e00792
KH
2090 * insdel.c (adjust_markers_for_replace): Fix previous change.
2091 (adjust_after_replace): If PREV_TEXT is nil, call
2092 adjust_markers_for_insert, not adjust_markers_for_replace.
2093
087121cc 20942000-05-20 NIIBE Yutaka <gniibe@mri.co.jp>
427ec082 2095
087121cc
GM
2096 * s/gnu-linux.h (UNIX98_PTYS) [HAVE_GRANDPT]: Define.
2097 (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_OPEN, PTY_TTY_NAME_SPRINTF)
2098 [HAVE_GRANDPT]: Define.
2099 (C_SWITCH_SYSTEM): Add -D_XOPEN_SOURCE.
2100
2101 * sysdep.c (setup_pty): Treat case that UNIX98_PTYS is defined
2102 like SYSV_PTYS.
2103
2104 * config.in (HAVE_GRANDPT, HAVE_GETPT): New defines.
2105
2106 * process.c (toplevel) [UNIX98_PTYS]: Include stdlib.h.
2107
c9671f81
KH
21082000-05-20 Kenichi Handa <handa@etl.go.jp>
2109
2110 The following changes are to handle 8-bit characters in a
2111 multibyte buffer/string without facing with byte combining
2112 problem. Two new charsets eight-bit-control (for 0x80..0x9F) and
2113 eight-bit-graphic (for 0xA0..0xFF) are introduced.
2114
2115 * Makefile.in (fns.o): Depend on charset.h.
2116
2117 * alloc.c (Fmake_byte_code): If BYTECODE-STRING is multibyte,
2118 convert it to unibyte.
2119 (make_string): Use parse_str_as_multibyte, not chars_in_text.
2120
2121 * buffer.c (advance_to_char_boundary): Don't use DEC_POS to find a
2122 apparent char boundary.
2123 (Fset_buffer_multibyte): Convert 8-bit characters in the range
2124 0x80..0x9F to/from multibyte form.
2125
2126 * bytecode.c (Fbyte_code): If arg BYTESTR is multibyte, convert it
2127 to unibyte.
2128
2129 * callproc.c (Fcall_process): Always encode an argument string if
2130 it is multibyte. Setup src_multibyte and dst_multibyte members of
2131 process_coding properly.
ce75fd23 2132
c9671f81
KH
2133 * category.c (Fmodify_category_entry): Use SPLIT_CHAR, not
2134 SPLIT_NON_ASCII_CHAR.
2135
2136 * ccl.c (CCL_WRITE_CHAR): Be sure to write single byte characters
2137 as is.
2138 (CCL_MAKE_CHAR): Use MAKE_CHAR, not MAKE_NON_ASCII_CHAR.
2139
2140 * charset.c (Qeight_bit_control, Qeight_bit_graphic): New
2141 variables.
2142 (SPLIT_CHARACTER_SEQ): This macro deleted.
2143 (SPLIT_MULTIBYTE_SEQ): Assume that multibyte sequence at STR is
2144 valid.
2145 (CHAR_COMPONENTS_VALID_P): Handle new charsets; eight-bit-control
2146 and eight-bit-graphic.
2147 (char_to_string): Likewise. Signal an error for too large
2148 character code.
2149 (char_printable_p): Return 0 for 8-bit characters.
2150 (update_charset_table): Update iso_charset_table only when a final
2151 character is non-negative.
2152 (find_charset_in_text): Renamed from find_charset_in_str.
2153 Arguments and return value changed. Callers changed.
2154 (Fdefine_charset): Args ISO-FINAL-CHAR and ISO-GRAPHIC-PLANE can
2155 be -1 if CHARSET is used only internally.
2156 (Fmake_char_internal): Handle new charsets; eight-bit-control and
2157 eight-bit-graphic.
2158 (Fcharset_after): Simplified.
2159 (char_valid_p): Use SPLIT_CHAR, not SPLIT_NON_ASCII_CHAR.
2160 (char_bytes): Return 2 for chars of the range 0xA0..0xFF.
2161 (multibyte_chars_in_text): Simplified by assuming there's no
2162 invalid multibyte sequence.
2163 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte,
2164 str_as_unibyte): New functions.
2165 (Fstring): Simpified by assuming that byte combining never
2166 happens.
2167 (init_charset_once): Initialization for
2168 LEADING_CODE_8_BIT_CONTROL.
2169 (syms_of_charset): Intern and staticpro Qeight_bit_control and
2170 Qeight_bit_graphic. Include them in Vcharset_list. Make charsets
2171 eight-bit-control and eight-bit-graphic.
2172
2173 * charset.h (LEADING_CODE_8_BIT_CONTROL, CHARSET_8_BIT_CONTROL,
2174 CHARSET_8_BIT_GRAPHIC): New macros.
2175 (SINGLE_BYTE_CHAR_P): Make it faster by using casting.
2176 (CHARSET_ISO_GRAPHIC_PLANE): Use XINT instead of XFASTINT.
2177 (CHARSET_REVERSE_CHARSET): Likewise.
2178 (CHARSET_VALID_P): Handle new charsets; eight-bit-control and
2179 eight-bit-graphic.
2180 (BYTES_BY_CHAR_HEAD, WIDTH_BY_CHAR_HEAD): Optimize for ASCII.
2181 (CHAR_CHARSET, MAKE_CHAR, SPLIT_CHAR, CHAR_BYTES): Likewise.
2182 (PARSE_MULTIBYTE_SEQ) [BYTE_COMBINING_DEBUG]: Abort if we
2183 encounter an invalid multibyte sequence.
2184 (PARSE_MULTIBYTE_SEQ) [not BYTE_COMBINING_DEBUG]: Assume multibyte
2185 sequence is always valid.
2186 (MAKE_NON_ASCII_CHAR, SPLIT_NON_ASCII_CHAR): These macros Deleted.
2187 (UNIBYTE_STR_AS_MULTIBYTE_P, MULTIBYTE_STR_AS_UNIBYTE_P): New
2188 macros.
2189 (CHAR_STRING): For 8-bit characters, call char_to_string.
2190 (INC_POS) [not BYTE_COMBINING_DEBUG]: Faster version. Assume
2191 multibyte sequence is always valid.
2192 (BUF_INC_POS) [not BYTE_COMBINING_DEBUG]: Likewise.
2193 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte,
2194 str_as_unibyte): Extern them.
2195 (BCOPY_SHORT): Fix a bug.
2196 (CHAR_LEN): This macro deleted. Callers changed to use
2197 CHAR_BYTES.
2198 (FETCH_STRING_CHAR_ADVANCE): Check multibyteness of STRING.
2199 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): New macro.
2200 (FETCH_CHAR_ADVANCE): Check multibyteness of the current buffer.
2201
bd4bde7f 2202 * coding.c (ONE_MORE_BYTE, TWO_MORE_BYTES): Set coding->result to
c9671f81
KH
2203 CODING_FINISH_INSUFFICIENT_SRC if there's not enough source.
2204 (ONE_MORE_CHAR, EMIT_CHAR, EMIT_ONE_BYTE, EMIT_TWO_BYTE,
2205 EMIT_BYTES): New macros.
2206 (THREE_MORE_BYTES, DECODE_CHARACTER_ASCII,
2207 DECODE_CHARACTER_DIMENSION1, DECODE_CHARACTER_DIMENSION2): These
2208 macros deleted.
2209 (CHECK_CODE_RANGE_A0_FF): This macro deleted.
2210 (detect_coding_emacs_mule): Use UNIBYTE_STR_AS_MULTIBYTE_P to
2211 check the validity of multibyte sequence.
2212 (decode_coding_emacs_mule): New function.
2213 (encode_coding_emacs_mule): New macro.
2214 (detect_coding_iso2022): Use ONE_MORE_BYTE to fetch a byte from
2215 the source.
2216 (DECODE_ISO_CHARACTER): Just return a character code.
2217 (DECODE_COMPOSITION_START): Set coding->result instead of result.
2218 (decode_coding_iso2022, decode_coding_sjis_big5, decode_eol): Use
2219 EMIT_CHAR to produced decoded characters. Exit the loop only by
2220 macros ONE_MORE_BYTE or EMIT_CHAR. Don't handle the case of last
2221 block here.
2222 (ENCODE_ISO_CHARACTER): Don't translate character here. Produce
2223 only position codes for an invalid character.
2224 (encode_designation_at_bol): Return new destination pointer. 5th
2225 arg DSTP is changed to DST.
2226 (encode_coding_iso2022, decode_coding_sjis_big5): Get a character
2227 from the source by ONE_MORE_CHAR. Don't handle the case of last
2228 block here.
2229 (DECODE_SJIS_BIG5_CHARACTER, ENCODE_SJIS_BIG5_CHARACTER): These
2230 macros deleted.
2231 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8,
2232 detect_coding_utf_16, detect_coding_ccl): Use ONE_MORE_BYTE and
2233 TWO_MORE_BYTES to fetch a byte from the source.
2234 (encode_eol): Pay attention to coding->src_multibyte.
2235 (detect_coding, detect_eol): Preserve members src_multibyte and
2236 dst_multibyte.
2237 (DECODING_BUFFER_MAG): Return 2 even for coding_type_raw_text.
2238 (encoding_buffer_size): Set magnification to 3 for all coding
2239 systems that require encoding.
2240 (ccl_coding_driver): For decoding, be sure that the result is
2241 valid multibyte sequence.
2242 (decode_coding): Initialize coding->errors and coding->result.
2243 For emacs-mule, call decode_coding_emacs_mule. For no-conversion
2244 and raw-text, always call decode_eol. Handle the case of last
2245 block here. If not coding->dst_multibyte, convert the resulting
2246 sequence to unibyte.
2247 (encode_coding): Initialize coding->errors and coding->result.
2248 For emacs-mule, call encode_coding_emacs_mule. For no-conversion
2249 and raw-text, always call encode_eol. Handle the case of last
2250 block here.
2251 (shrink_decoding_region, shrink_encoding_region): Detect cases
2252 that we can't skip data more rigidly.
2253 (code_convert_region): Setup src_multibyte and dst_multibyte
2254 members of coding. For decoding, if the buffer is multibyte,
2255 convert the source sequence to unibyte in advance. For encoding,
2256 if the buffer is multibyte, convert the resulting sequence to
2257 multibyte afterward.
2258 (run_pre_post_conversion_on_str): New function.
2259 (code_convert_string): Deleted and divided into the following two.
2260 (decode_coding_string, encode_coding_string): New functions.
2261 (code_convert_string1, code_convert_string_norecord): Call one of
2262 above.
2263 (Fdecode_sjis_char, Fdecode_big5_char): Use MAKE_CHAR instead of
2264 MAKE_NON_ASCII_CHAR.
2265 (Fset_terminal_coding_system_internal,
2266 Fset_safe_terminal_coding_system_internal): Setup src_multibyte
2267 and dst_multibyte members.
2268 (init_coding_once): Initialize iso_code_class with new enum
2269 ISO_control_0 and ISO_control_1.
2270
2271 * coding.h (enum iso_code_class_type): Member ISO_control_code is
2272 devided into ISO_control_0 and ISO_control_1.
2273 (struct coding_system): New members src_multibyte, dst_multibyte,
2274 errors, and result. Delete member fake_multibyte.
2275 (CODING_REQUIRE_DECODING): Return 1 if coding->dst_multibyte is
2276 nonzero.
2277 (CODING_REQUIRE_ENCODING): Return 1 if coding->src_multibyte is
2278 nonzero.
2279
2280 * data.c (Faref): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
2281 (Faset): Likewise.
2282
2283 * editfns.c (Fformat): Be sure to convert 8-bit characters to
2284 multibyte form.
2285 (Ftranspose_region) [BYTE_COMBINING_DEBUG]: Abort if byte
2286 combining occurs.
2287 (Ftranspose_region): Delete codes for handling byte combining.
2288
2289 * fileio.c (Finsert_file_contents): Setup src_multibyte and
2290 dst_multibyte members of coding. On handling REPLACE on unibyte
2291 buffer, convert the result of decode_coding to unibyte. On
2292 inserting into a mutibyte buffer, always call code_convert_region.
bd4bde7f 2293 (e_write): Setup coding->src_multibyte according to the
c9671f81
KH
2294 multibyteness of the source (buffer or string).
2295
2296 * fns.c (concat): Handle 8-bit characters correctly.
2297 (Fstring_as_unibyte): Be sure to make all 8-bit characters in
2298 unibyte in the result.
2299 (Fstring_as_multibyte): Be sure to make all 8-bit characters in
2300 valid multibyte form in the result.
2301 (map_char_table): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
2302 (Fbase64_encode_region, Fbase64_encode_string): If base64_encode_1
2303 return -1, signal an error.
2304 (base64_encode_1): New arg MULTIBYTE. Get each character by
2305 CHAR_STRING_AND_LENGTH if MULTIBYTE is nonzero. If a multibyte
2306 character is found, return -1.
2307 (Fbase64_decode_region): Delete codes for handling byte-combining.
2308 Treat each decoded byte as a unibyte character.
2309 (Fbase64_decode_string): Return unibyte string.
2310 (Fcompare_strings, concat, string_byte_to_char): Use
2311 FETCH_STRING_CHAR_ADVANCE_NO_CHECK instead off
2312 FETCH_STRING_CHAR_ADVANCE.
2313 (Fstring_lessp): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
2314 (mapcar1): If SEQ is string, always use FETCH_STRING_CHAR_ADVANCE.
2315
2316 * fontset.c (fontset_ref): Use SPLIT_CHAR instead of
2317 SPLIT_NON_ASCII_CHAR.
2318 (fontset_ref_via_base, fontset_set): Likewise
2319
2320 * insdel.c (adjust_markers_for_record_delete): Deleted.
2321 (adjust_markers_for_insert): Argument changed. Caller changed.
2322 (adjust_markers_for_replace): Likewise.
2323 (ADJUST_CHAR_POS, combine_bytes, byte_combining_error,
2324 CHECK_BYTE_COMBINING_FOR_INSERT): Deleted.
2325 (copy_text): Delete unused local varialbe c_save. For converting
2326 to multibyte, be sure to make all 8-bit characters in valid
2327 multibyte form.
2328 (count_size_as_multibyte): Handle 8-bit characters correctly.
2329 (insert_1_both, insert_from_string_1, insert_from_buffer_1,
2330 adjust_after_replace, replace_range, del_range_2)
2331 [BYTE_COMBINING_DEBUG]: Abort if byte combining occurs.
2332 (insert_1_both, insert_from_string_1, insert_from_buffer_1,
2333 adjust_after_replace, replace_range, del_range_2) Delete codes for
2334 handling byte combining.
2335 (adjust_before_replace): Deleted.
427ec082 2336
c9671f81
KH
2337 * keymap.c (Fsingle_key_description): Use SPLIT_CHAR instead of
2338 SPLIT_NON_ASCII_CHAR.
2339 (describe_vector): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
2340 (Faccessible_keymaps): Use FETCH_STRING_CHAR_ADVANCE
2341 unconditionally.
2342 (Fkey_description): Likewise.
2343
2344 * lread.c (read1): On reading multibyte string, be sure to make
2345 all 8-bit chararacters in valid multibyte form.
2346 (readchar): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
2347
2348 * print.c (print_object): Use FETCH_STRING_CHAR_ADVANCE
2349 unconditionally.
2350
2351 * process.c (Fstart_process): GCPRO current_dir before calling
2352 Ffind_operation_coding_system. Encode arguments here.
2353 (create_process): Don't encode arguments here. Setup
2354 src_multibyte and dst_multibyte members of struct coding.
2355 (read_process_output): Setup src_multibyte and dst_multibyte
2356 members of struct coding. If the output is to multibyte buffer,
2357 always decode the output of the process. Adjust the
2358 representation of 8-bit characters to the multibyteness of the
2359 output.
2360 (send_process): Setup coding->src_multibyte according to the
2361 multibyteness of the source.
2362
2363 * search.c (wordify): Use FETCH_STRING_CHAR_ADVANCE
2364 unconditionally.
2365 (Freplace_match): Use FETCH_STRING_CHAR_ADVANCE and
2366 FETCH_STRING_CHAR_ADVANCE_NO_CHECK appropriately.
2367
2368 * term.c (produce_special_glyphs): Use CHAR_BYTES instead of
2369 CHAR_LEN.
2370
2371 * w16select.c (Fw16_set_clipboard_data): Setup members
2372 src_multibyte and dst_multibyte of coding. Adjusted for the
2373 change for find_charset_in_str.
2374 (Fw16_get_clipboard_data): Likewise.
2375
2376 * w32fns.c (w32_to_x_font): Setup members src_multibyte and
2377 dst_multibyte of coding.
2378 (x_to_w32_font): Likewise.
2379
2380 * w32select.c (Fw32_set_clipboard_data): Setup members
2381 src_multibyte and dst_multibyte of coding. Adjusted for the
2382 change for find_charset_in_str.
2383 (Fw32_get_clipboard_data): Likewise.
2384
2385 * xdisp.c (get_next_display_element): Handle 8-bit characters
2386 correctly.
2387 (next_element_from_display_vector): Use CHAR_BYTES instead of
2388 CHAR_LEN.
2389 (disp_char_vector): Use SPLIT_CHAR instead of
2390 SPLIT_NON_ASCII_CHAR.
2391
2392 * xselect.c (selection_data_to_lisp_data): Setup members
2393 src_multibyte and dst_multibyte of coding. Adjusted for the
2394 change for find_charset_in_str.
2395 (lisp_data_to_selection_data): Likewise.
2396
5f64c9e0
GM
23972000-05-19 Gerd Moellmann <gerd@gnu.org>
2398
2b63d473
GM
2399 * buffer.c (Fbury_buffer): Avoid trouble from burying a killed
2400 buffer.
2401
5f64c9e0
GM
2402 * dispextern.h (Vimage_types): Add extern declaration.
2403
2404 * xdisp.c (Vimage_types): Moved here from xfns.c.
2405 (syms_of_xdisp): Move `image-types' variable here from xfns.c.
2406
2407 * xfns.c (Vimages_types): Moved to xdisp.c.
2408 (syms_of_xfns): Move `image-types' to xdisp.c.
2409
2410 * w32fns.c (Vimage_types): Removed.
2411 (syms_of_w32fns): Remove `image-types'.
2412
813086ea
KH
24132000-05-18 Kenichi Handa <handa@etl.go.jp>
2414
2415 * fns.c (map_char_table): Pay attention to character number of
2416 charset. Check the validity of charset at the first level. For
2417 leaf nodes that has nil value, call C_FUNCTION or FUNCTION with
2418 the default value.
2419
2420 * fontset.c: Include "buffer.h".
2421 (fs_load_font): If the face has fontset, record the face ID in
2422 that fontset.
2423 (Finternal_char_font): New function.
2424 (accumulate_font_info): New function.
2425 (Ffontset_info): Rewritten for the new fontset implementation.
2426 (syms_of_fontset): Register Vdefault_fontset in the first element
2427 of Vfontset_table. Include Vdefault_fontset in
2428 Vfontset_alias_alist. Declare `internal-char-font' as a Lisp
2429 function.
2430
bdaebbf0
DL
24312000-05-16 Dave Love <fx@gnu.org>
2432
2433 * m/iris5d.h: Deleted -- unused.
2434
cb613bb8
GM
24352000-05-16 Gerd Moellmann <gerd@gnu.org>
2436
b15f3b77
GM
2437 * xdisp.c, w32.c, print.c, msdos.c, emacs.c: Use the term
2438 `invalid' instead of `illegal'.
2439
2440 * indent.c (Fmove_to_column): When ending within a tab, insert
2441 spaces first so that markers at the end of the tab get adjusted.
2442
835c1b36
GM
2443 * frame.c (frames_bury_buffer): Don't add a buffer to the frame's
2444 buffer list that wasn't selected in that frame.
2445
cb613bb8
GM
2446 * filelock.c (get_boot_time): To obtain an 8 char file name, which
2447 is needed on mescaline, use a 2 char prefix, and call
2448 make_temp_name with second arg non-zero.
2449
2450 * fileio.c (make_temp_name): New function, extracted from
2451 Fmake_temp_name.
2452 (Fmake_temp_name): Use it.
2453
f685bea9
EZ
24542000-05-15 Eli Zaretskii <eliz@is.elta.co.il>
2455
2456 * window.c (coordinates_in_window): Subtract 1 when computing
2457 right_x.
2458
a1b8d58b
GM
24592000-05-15 Gerd Moellmann <gerd@gnu.org>
2460
2461 * Makefile.in (lisp): Add env.elc.
2462
2463 * callproc.c (Fgetenv_internal): Renamed from Fgetenv.
2464
a265079f
GM
24652000-05-12 Gerd Moellmann <gerd@gnu.org>
2466
2467 * search.c (Freplace_match): Handle case of `\N' in the
2468 replacement when there's no group N.
2469
da4496b6
GM
24702000-05-11 Gerd Moellmann <gerd@gnu.org>
2471
0ace421a
GM
2472 * xdisp.c (add_to_log): Don't pass the terminating NUL byte
2473 of the message to message_dolog.
2474
1172eb8d
GM
2475 * keyboard.c (read_char): Don't clear current message for help
2476 events; let the code handling help events handle this. Change
2477 code detecting help events that should be ignored.
2478
da4496b6
GM
2479 * xdisp.c (handle_single_display_prop): Don't try to set PT if
2480 we're interating over a string.
2481
0623e40f
DL
24822000-05-09 Dave Love <fx@gnu.org>
2483
2484 * fileio.c (Fwrite_region): If APPEND arg is an integer, seek to
2485 that offset before writing. Move gcpro region past call of
2486 Ffile_regular_p.
2487
bae2503b
DL
24882000-05-04 Dave Love <fx@gnu.org>
2489
2490 * buffer.c (syms_of_buffer) [auto-fill-function]: Doc fix.
2491
ec82fb2f
GM
24922000-05-04 Gerd Moellmann <gerd@gnu.org>
2493
2494 * insdel.c (insert_from_buffer_1): Adjust FROM position by number
2495 of inserted characters when BUF equals the current buffer, and PT
2496 is in front of or equal to FROM.
2497
cbf18892
GM
24982000-05-03 Gerd Moellmann <gerd@gnu.org>
2499
4ff40dd0
GM
2500 * xdisp.c (handle_single_display_prop): If display property value
2501 is invalid, or something not supported on the frame, restore
2502 iterator's position to what it was initially. Make sure to return
2503 0 for invalid and unsupported property values.
2504
cbf18892
GM
2505 * xterm.c (x_produce_glyphs) <composite chars>: Handle case
2506 that x_per_char_metric returns null.
2507
1b0672c3
GM
25082000-05-02 Gerd Moellmann <gerd@gnu.org>
2509
576da55d
GM
2510 * xterm.h (struct face): Add forward declaration.
2511 (struct image): Ditto.
2512 (image_ascent): Add prototype.
2513
2514 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
2515 (x_draw_image_relief, x_draw_image_foreground_1): Call function
2516 image_ascent instead of using IMAGE_ASCENT.
2517
2518 * dispextern.h (DEFAULT_IMAGE_HEIGHT): New macro.
2519 (IMAGE_ASCENT): Removed.
2520
2521 * xfns.c (Qcenter): New variable.
2522 (enum image_value_type): Add IMAGE_ASCENT_VALUE.
2523 (parse_image_spec): Handle IMAGE_ASCENT_VALUE.
2524 (image_ascent): New function.
2525 (lookup_image): Recognize `:ascent center'.
2526 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
2527 (tiff_format, gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
2528 (xbm_load): Don't set image's ascent here.
2529 (xbm_image_p, xpm_image_p, pbm_image_p, png_image_p)
2530 (jpeg_image_p, tiff_image_p, gif_image_p, gs_image_p): Don't
2531 check ascent values here.
2532 (Fimagep, Flookup_image [GLYPH_DEBUG]: Removed.
2533 (syms_of_xfns) [GLYPH_DEBUG]: Don't defsubr removed functions.
2534 (syms_of_xfns): Initialize Qcenter.
2535
1b0672c3
GM
2536 * eval.c (Fsignal): If lisp_eval_depth or spepdl_size are near
2537 to the limits, increase the limits.
2538
0d7811ed
KH
25392000-05-01 Kenichi Handa <handa@etl.go.jp>
2540
2541 * fontset.c (fs_load_font): By default, use 0x00..0x7f for ASCII.
2542 Check Vfont_encoding_alist against the full name of the opened
2543 font.
2544
a943a5ca
GM
25452000-04-28 Gerd Moellmann <gerd@gnu.org>
2546
2547 * xdisp.c (make_cursor_line_fully_visible): Handle case of rows
2548 taller than the window.
2549
5dba1e29
KH
25502000-04-28 Kenichi Handa <handa@etl.go.jp>
2551
2552 * xfaces.c (realize_x_face): Fix the argument of the second
2553 xassert. BASE_FACE may not be a face for ASCII.
2554
353964e3
GM
25552000-04-27 Gerd Moellmann <gerd@gnu.org>
2556
c76e04a8
GM
2557 * print.c (print_object): Treat print-length < 0 as nil.
2558
2559 * Makefile.in (termcapobj): Don't use TERMCAP_OBJ.
2560
2561 * s/freebsd.h (TERMCAP_OBJ): Removed.
2562 (LIBS_TERMCAP): Don't define for __FreeBSD_version >= 400000.
2563
2564 * lread.c (read1): Don't treat period followed by certain
2565 characters as symbol start.
2566
2567 * xfns.c (slurp_file): New function.
2568 (xbm_image_p): Handle case of in-memory XBM files.
2569 (xbm_scan): Rewritten to work on memory buffers instead of files.
2570 (xbm_read_bitmap_data): Renamed from xbm_read_bitmap_file_data.
2571 Work on memory buffers instead of files. If DATA is null test
2572 if buffer looks like an in-memory XBM file.
2573 (xbm_load_image): Renamed from xbm_load_image_file. Work on
2574 memory buffers instead of files.
2575 (xbm_file_p): New function.
2576 (xbm_load): Accept :data DATA where DATA is an in-memory XBM file.
2577
353964e3
GM
2578 * lread.c (end_of_file_error): New function.
2579 (read1): Call it instead of signaling `end-of-file' directly.
2580
427ec082 2581 * print.c (print_error_message): Print data of `end-of-file'
353964e3
GM
2582 with Fprinc instead of Fprin1.
2583
24d744ac
KR
25842000-04-26 Ken Raeburn <raeburn@gnu.org>
2585
2586 * window.c (freeze_window_start): Check that minibuffer scroll
2587 window isn't nil before extracting the window structure pointer
2588 from it.
2589
2590 * undo.c (record_delete): If we hit the end of the undo list, stop
2591 picking elements apart.
2592
7464346d
GM
25932000-04-26 Gerd Moellmann <gerd@gnu.org>
2594
2595 * xdisp.c (display_line): If lines are continued, restore
2596 iterator's ascent/descent information to the values before the
2597 first glyph not fitting on the line.
2598
612839b6
GM
25992000-04-25 Gerd Moellmann <gerd@gnu.org>
2600
2601 * xdisp.c (try_window_id) <all changes above window start>: Adjust
2602 positions in glyph matrix. Don't compute new window end
2603 positions.
2604
2605 * dispnew.c (increment_matrix_positions): Renamed from
2606 increment_glyph_matrix_buffer_positions.
2607 (increment_row_positions): Renamed from
2608 increment_glyph_row_buffer_positions.
2609
2610 * dispextern.h: Change names of renamed functions from dispnew.c
2611 in prototypes.
2612
cc181e95
GM
26132000-04-24 Gerd Moellmann <gerd@gnu.org>
2614
abfcc168
GM
2615 * fileio.c (Fdo_auto_save): Create directories for auto-save
2616 list file if necessary.
2617
cc181e95
GM
2618 * xdisp.c (init_iterator): Set iterator's extra_line_spacing
2619 from buffer or frame.
2620 (automatic_hscrolling_p): New variable.
2621 (hscroll_windows): Scroll windows horizontally only if automatic
2622 hscrolling is allowed.
2623 (syms_of_xdisp): New variable `automatic-hscrolling'.
2624
2625 * frame.h (struct frame): Add member extra_line_spacing.
2626
2627 * xfns.c (x_set_line_spacing): New function.
2628 (Fx_create_frame): Set line spacing from resources.
2629 (Qline_spacing): New variable.
2630 (syms_of_xfns): Initialize Qline_spacing.
427ec082 2631
cc181e95
GM
2632 * emacs.c (USAGE2): Add `--line-spacing' and `-lsp'.
2633
2634 * buffer.c (init_buffer_once): Handle extra_line_spacing.
2635 (syms_of_buffer): Add `default-line-spacing' and `line-spacing'.
abfcc168 2636 (reset_buffer): Don't initialize extra2 and extra3. Initialize
cc181e95
GM
2637 extra_line_spacing from default value.
2638 (init_buffer_once): Initialize default value of extra_line_spacing.
2639
2640 * buffer.h (struct buffer): Add extra_line_spacing, remove extra2
2641 and extra3.
2642
2643 * xterm.c (x_produce_glyphs): Remove reference to struct it's
2644 prompt_width. Add extra line spacing.
2645
2646 * term.c (produce_glyphs): Remove reference to struct it's
2647 prompt_width.
2648
2649 * dispextern.h (struct it): Remove member prompt_width, add
2650 extra_line_spacing.
2651
58827478
GM
26522000-04-22 Gerd Moellmann <gerd@gnu.org>
2653
2654 * dispnew.c (update_frame_line): When writing a whole line, make
2655 sure cursor is in the right row afterwards, otherwise a use of
2656 capability `ch' in cmgoto might leave the cursor in the row below.
2657
25a87f42
GM
26582000-04-21 Gerd Moellmann <gerd@gnu.org>
2659
2660 * lisp.h (struct Lisp_Buffer_Cons): Remove.
2661
2662 * keyboard.c (timer_check): Fix typo in comment.
2663
54edf5c2
KH
26642000-04-21 Kenichi Handa <handa@etl.go.jp>
2665
2666 * fontset.c (Fset_fontset_font): Fix docstring. Local variable
2667 name change: ch -> character.
2668
3a64eef5
GM
26692000-04-20 Gerd Moellmann <gerd@gnu.org>
2670
2671 * keyboard.c (echo_message_buffer): New variable.
2672 (echo_now): Set echo_message_buffer to the echo area buffer used
2673 to display the echo.
2674 (cancel_echoing): Reset echo_message_buffer to nil.
2675 (read_char): Code rewritten that handles canceling an echo or
2676 echoing a dash, respectively.
2677
2678 * fileio.c (Ffile_writable_p) [WINDOWSNT]: Return nil if parent
2679 directory doesn't exist.
2680
6142fdcb
DL
26812000-04-19 Dave Love <fx@gnu.org>
2682
2683 * fns.c (syms_of_fns): Defsubr mapc.
a9cacab7
DL
2684 (concat): Don't allow numeric args.
2685 (Fconcat): Doc change.
6142fdcb 2686
ac6b5352
SM
26872000-04-19 Stefan Monnier <monnier@cs.yale.edu>
2688
2689 * regex.c (re_match_2_internal): Don't shorten the strings anymore,
2690 instead define end_match(1|2) more carefully.
2691 Use GET_CHAR_BEFORE_2 for `begline'.
2692
cb9215e4
GM
26932000-04-19 Gerd Moellmann <gerd@gnu.org>
2694
5e3dac3f
GM
2695 * frame.h (SELECTED_FRAME): Change definition to compile cleanly
2696 on 64-bit systems where NULL is defined as `0'.
2697
2698 * xdisp.c (with_echo_area_buffer): Add more `int' parameters for
2699 the `variable argument list' to make it work on Alpha.
2700
cb9215e4
GM
2701 * m/alpha.h (_LP64) [!_LP64]: Define.
2702 (ORDINARY_LINK): Define for NetBSD.
2703
2704 * m/macppc.h (ORDINARY_LINK): Define for NetBSD.
427ec082 2705
f532dca0
DL
27062000-04-19 Dave Love <fx@gnu.org>
2707
c750667e
DL
2708 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Revert 2000-04-14
2709 change.
2710
2711 * Makefile.in (LIBS): Don't use.
2712 (GETLOADAVG_OBJ): Define again.
2713 (otherobj): Add GETLOADAVG_OBJ.
2714
f532dca0
DL
2715 * buffer.c (Fmake_indirect_buffer): Escape newline in doc.
2716
1c7e22fd
GM
27172000-04-18 Gerd Moellmann <gerd@gnu.org>
2718
f6d3257b
GM
2719 * lread.c (read_filtered_event): Cancel and start busy cursor.
2720
427ec082 2721 * xterm.c (x_produce_glyphs) <ASCII chars>: Take into account
1c7e22fd
GM
2722 that the per-character metrics may be null.
2723
e10f64e7
GM
27242000-04-17 Gerd Moellmann <gerd@gnu.org>
2725
0daee095
GM
2726 * buffer.c (clone_per_buffer_values): New function.
2727 (Fmake_indirect_buffer): Add optional argument CLONE. Call
2728 clone_per_buffer_values if CLONE is not nil.
2729
e10f64e7
GM
2730 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
2731
38687d43
DL
27322000-04-16 Dave Love <fx@gnu.org>
2733
2734 * Makefile.in: Remove obsolete localcpp stuff.
2735 (GETLOADAVG_OBJ): Don't define.
2736 (obj): Move LIBOBJS...
2737 (otherobj): ... to here.
2738 (MSDOS_OBJ): Convert to make variable -- preprocessing zapped
2739 whitespace-only lines after the continuation (Irix).
2740
c21c7262
GM
27412000-04-14 Gerd Moellmann <gerd@gnu.org>
2742
2743 * xfns.c (xpm_load) [DEBUG_X_COLORS]: Register colors.
2744
2745 * s/freebsd.h (LD_SWITCH_SYSTEM): Add `-L /usr/local/lib'.
2746
314767c0
DL
27472000-04-14 Dave Love <fx@gnu.org>
2748
2749 * s/aix3-1.h, s/bsd4-2.h, s/bsd4-3.h, s/cxux.h, s/dgux.h, s/gnu.h:
2750 * s/hpux.h, s/iris3-5.h, s/iris3-6.h, s/irix3-3.h, s/rtu.h:
2751 * s/unipl5-0.h, s/unipl5-2.h, s/usg5-0.h, s/usg5-2-2.h, s/usg5-2.h:
2752 * s/usg5-3.h, s/xenix.h, s/umax.h: Don't define autoconfiscated
2753 NLIST_STRUCT.
2754
2755 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Don't define
2756 autoconfiscated HAVE_GETLOADAVG.
2757
2758 * s/nextstep.h, s/sco4.h, s/sco5.h: Don't define autoconfiscated
2759 BROKEN_MKTIME.
2760
a2522dca
GM
27612000-04-14 Gerd Moellmann <gerd@gnu.org>
2762
2763 * filelock.c (MAKE_LOCK_NAME): Allocate 2 more bytes.
2764 (fill_in_lock_file_name): Avoid existing files that aren't
2765 links.
2766
33744b5d
DL
27672000-04-14 Dave Love <fx@gnu.org>
2768
c21c7262 2769 * Makefile.in (LIBS, LIBOBJS): New variable.
33744b5d
DL
2770 (INTERVAL_SRC): Convert to make variable.
2771 (INTERVAL_OBJ, MKTIME_OBJ, FLOAT_SUPPORT, FACE_SUPPORT)
2772 (HAVE_X_WINDOWS, OBJECTS_SYSTEM): Remove.
2773 (obj): Substitute INTERVAL_OBJ, add MKTIME_OBJ, GETLOADAVG_OBJ and
2774 add LIBOBJS.
2775 (SOME_MACHINE_OBJECTS): Remove interval stuff.
2776 (lisp): Substitute FACE_SUPPORT, FLOAT_SUP.
2777 (shortlisp): Add facemenu, float-sup, frame.
2778 (SOME_MACHINE_LISP): Remove them from here.
2779 (LIBES): Change unused LDLIBS to autoconf LIBS.
2780
2781 * config.in: Add BROKEN_MKTIME, NLIST_STRUCT, NLIST_NAME_UNION.
2782
9d3d5916
KH
27832000-04-14 Kenichi Handa <handa@etl.go.jp>
2784
2785 * composite.c (update_compositions): If FROM and TO are not in a
2786 valid range, do nothing.
2787
198e3c7a
GM
27882000-04-13 Gerd Moellmann <gerd@gnu.org>
2789
2790 * tparam.c (tparam1): Abort when encountering an unknown
2791 `%'-specifier.
2792
2793 * s/freebsd.h (TERMCAP_OBJ) [__FreeBSD__ >= 4]: Define as
2794 terminfo.o.
2795
2796 * Makefile.in (termcapobj) [LIBS_TERMCAP && TERMCAP_OBJ]: Define
2797 as TERMCAP_OBJ.
2798
055a28c9
EZ
27992000-04-13 Eli Zaretskii <eliz@is.elta.co.il>
2800
2801 * fileio.c (a_write): Remove redundant semi-colons.
2802 (e_write): Return -1 if failed to write all the data.
2803 This fixes the changes made at 1999-12-15.
2804
f5c75033
DL
28052000-04-12 Dave Love <fx@gnu.org>
2806
2807 * fns.c (mapcar1): Test for null vals to support mapc.
2808 (Fmapc): New function.
2809
0c3cfc51
EZ
28102000-04-12 Eli Zaretskii <eliz@is.elta.co.il>
2811
2812 * msdos.c (NUM_MOUSE_BUTTONS): Define.
2813 (IT_frame_up_to_date): Support the buffer local value of
2814 cursor-type, if defined.
2815
33465a31
DL
28162000-04-10 Dave Love <fx@gnu.org>
2817
2818 * editfns.c (preceding-char, following-char): Doc fix.
2819
6ed56568
KR
28202000-04-10 Ken Raeburn <raeburn@gnu.org>
2821
2822 * Makefile.in (temacs): Revert 2000-03-12 change.
2823
7cf80d4e
JR
28242000-04-10 Jason Rumney <jasonr@gnu.org>
2825
2826 * xfaces.c (realize_face): Change FRAME_X_P to FRAME_WINDOW_P.
2827
34f3f342
GM
28282000-04-10 Gerd Moellmann <gerd@gnu.org>
2829
1a1b1895
GM
2830 * xdisp.c (setup_echo_area_for_printing): Choose an echo
2831 area buffer, if it's not set up yet.
2832
34f3f342
GM
2833 * indent.c (compute_motion): Set immediate_quit.
2834
be0dbdab
GM
28352000-04-09 Gerd Moellmann <gerd@gnu.org>
2836
c45be9ac
GM
2837 * xfaces.c (tty_suppress_bold_inverse_default_colors_p): New
2838 variable.
2839 (realize_tty_face): Suppress boldness if colors are the inverse of
2840 the default colors, and tty_suppress_bold_inverse_default_colors_p
2841 is set.
2842 (Ftty_suppress_bold_inverse_default_colors): New function.
2843 (syms_of_xfaces): Defsubr it.
2844
be0dbdab
GM
2845 * buffer.c (Frestore_buffer_modified_p): New function.
2846 (syms_of_buffer): Defsubr it.
2847
e8413c3b
KR
28482000-04-08 Ken Raeburn <raeburn@gnu.org>
2849
87f67317
KR
2850 * charset.c (Fmake_char_internal): CHAR_COMPONENTS_VALID_P takes a
2851 charset id (int) argument, not a charset (Lisp_Object).
2852
e8413c3b
KR
2853 * coding.h (code_convert_string): Declare.
2854 * coding.c (code_convert_string_norecord): Pass an int, not a lisp
2855 object, as the fourth argument to code_convert_string.
2856
2857 * fontset.c (make_fontset_for_ascii_face): Use XINT on return
2858 value.
2859 (Fset_fontset_font): Use EQ to compare lisp objects.
2860
7c752c80
KR
28612000-04-05 Ken Raeburn <raeburn@gnu.org>
2862
c0333abc
KR
2863 * intervals.h (SET_INTERVAL_PARENT): Use INT_LISPLIKE to test for
2864 a pointer that looks like a lisp object.
2865 (SET_INTERVAL_OBJECT): Don't explicitly compare the object with
2866 zero, instead see whether it's an integer object, since they can't
2867 have intervals.
2868 (GET_INTERVAL_OBJECT): Simply assign to the destination.
2869
7c752c80
KR
2870 * dispnew.c (allocate_matrices_for_frame_redisplay,
2871 direct_output_forward_char): Use X(U)INT and make_number as needed
2872 to convert between (unsigned) int values and lisp integers.
2873 * keyboard.c (read_key_sequence): Likewise.
2874 * lread.c (substitute_object_recurse): Likewise.
2875 * fns.c (concat, hash_lookup, hash_remove): Likewise.
2876 * minibuf.c (do_completion, Fminibuffer_complete_word,
2877 Fminibuffer_completion_help): Likewise.
2878 * term.c (produce_special_glyphs): Likewise.
2879
2880 * fileio.c (Fwrite_region): Use EQ when comparing lisp objects.
2881 * print.c (print_preprocess, print_object): Likewise.
2882
2883 * search.c (compile_pattern): Use NILP when checking for nil.
2884
74e49b38
KR
2885 * lisp.h (make_number) [!NO_UNION_TYPE && __GNUC__ >= 2 &&
2886 __OPTIMIZE__]: Provide a GNU C macro version that handles
2887 lisp-object unions.
2888 (XSET) [!NO_UNION_TYPE]: Set the value field first, then the type
2889 field, to better cope with ENABLE_CHECKING and calls that modify a
2890 Lisp_Object using its old value.
2891
685e5ed2
GM
28922000-04-04 Gerd Moellmann <gerd@gnu.org>
2893
c407c570
GM
2894 * window.c (compare_window_configurations): Signal an error
2895 if parameters C1 or C2 aren't window configurations.
2896
685e5ed2
GM
2897 * bytecode.c (Fbyte_code): Add a bunch of BEFORE_POTENTIAL_GC/
2898 AFTER_POTENTIAL_GC calls around calls to functions that can
2899 signal an error and thus invoke the debugger.
2900
587a49ab
GM
29012000-04-03 Gerd Moellmann <gerd@gnu.org>
2902
62f20204
GM
2903 * fns.c (Fbase64_decode_region, Fbase64_decode_string): Signal
2904 an error if decoding fails.
2905
587a49ab
GM
2906 * keyboard.c (lispy_mouse_names): Variable removed.
2907 (Vlispy_mouse_stem): New variable.
2908 (syms_of_keyboard): Initialize Vlispy_mouse_stem.
2909 (make_lispy_event) <mouse_click, scroll_bar_click>: Don't abort
2910 for any mouse button number. Increase size of mouse_syms and
2911 button_down_location as needed. Call modify_event_symbol with
2912 different arguments.
2913 (make_lispy_event) <scroll_bar_click> [USE_TOOLKIT_SCROLL_BARS]:
2914 Call modify_event_symbol with different arguments.
2915 (make_lispy_event) <w32_scroll_bar_click> [WINDOWSNT]: Don't abort
2916 for any button number. Call modify_event_symbol with different
2917 arguments.
2918 (modify_event_symbol): Rename NAME_ALIST to NAME_ALIST_OR_STEM.
2919 Accept a string for NAME_ALIST_OR_STEM.
2920
2921 * lisp.h (larger_vector): Add prototype.
2922
2923 * fns.c (larger_vector): Make externally visible.
2924
2925 * termhooks.h (NUM_MOUSE_BUTTONS): Removed.
2926
2d1675e4
SM
29272000-04-02 Stefan Monnier <monnier@cs.yale.edu>
2928
2929 * regex.c (PTR_TO_OFFSET) [!emacs]: Remove.
2930 (RE_MULTIBYTE_P, RE_STRING_CHAR_AND_LENGTH): New macros.
2931 (GET_CHAR_BEFORE_2): Moved from charset.h plus fixed minor bug when
2932 we are between str1 and str2.
2933 (MAX_MULTIBYTE_LENGTH, CHAR_STRING) [!emacs]: Provide trivial default.
2934 (PATFETCH): Use `TRANSLATE'.
2935 (PATFETCH_RAW): Fetch multibyte char if applicable.
2936 (PATUNFETCH): Remove.
2937 (regex_compile): Rely on PATFETCH to do most of the multibyte magic.
2938 When writing a char, write it directly into the pattern buffer rather
2939 than going needlessly through a temp char-array.
2940 (re_match_2_internal): Similarly, rely on RE_STRING_CHAR to do the
2941 multibyte magic and remove the useless `#ifdef emacs'.
2942 (bcmp_translate): Don't compare as multibyte chars when in a unibyte
2943 buffer.
2944
2945 * regex.h (struct re_pattern_buffer): Make field `multibyte'
2946 conditional on `emacs'.
2947
2948 * charset.h (GET_CHAR_BEFORE_2): Moved to regex.c.
2949
cc2d8c6b
KR
29502000-04-01 Ken Raeburn <raeburn@gnu.org>
2951
2952 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P): Expand
2953 non-union-type versions of XMARK and friends here, because XMARK
2954 and friends won't work on an integer field if NO_UNION_TYPE is not
2955 defined.
2956 (make_number): Define as a function if it's not defined as a
2957 macro.
2958
09654086
KR
2959 * composite.c (run_composite_function): Use NILP when checking for
2960 nil.
2961 (syms_of_composite): Delete local var NARGS, pass an int as first
2962 argument to Fmake_hash_table.
2963
2387b382
KR
2964 * editfns.c (text_property_stickiness): Use NILP to test
2965 Lisp_Object boolean value.
2966 (Fmessage_or_box): Don't use NILP to test int variable.
c01fbf95
KR
2967 (Fformat): Use a temporary variable to avoid ENABLE_CHECKING
2968 problems reading from and changing the same lisp value in an
2969 XSETSTRING call.
2970
27660e89
GM
29712000-04-01 Gerd Moellmann <gerd@gnu.org>
2972
2973 * term.c (TN_no_color_video): New variable.
2974 (term_init): Intitialize TN_no_color_video.
2975 (enum no_color_bit): New enumeration.
2976 (MAY_USE_WITH_COLORS_P): New macro.
2977 (turn_on_face): Use it to determine if attributes may be used
2978 combined with colors.
2979
3578db3c
KR
29802000-04-01 Ken Raeburn <raeburn@gnu.org>
2981
2982 * window.c (CURBEG, CURSIZE): Don't overload lisp object lvalues
2983 with int lvalues via casts; instead, just yield lisp object
2984 lvalues.
2985 (enlarge_window): Variable sizep now points to Lisp_Object. Use
2986 proper accessor macros.
2987 (shrink_window_lowest_first): w->top is Lisp_Object; use XINT.
2988 (grow_mini_window): Fix typo getting int value of root->height.
2989
6fc556fd
KR
2990 * xdisp.c (compute_string_pos): Fix order of arguments to
2991 string_pos_nchars_ahead.
2992 (handle_fontified_prop, add_to_log): Pass int, not Lisp_Object, as
2993 count arg to variable-arg routines like Frun_hook_with_args and
2994 Fformat.
587a49ab
GM
2995 (back_to_previous_visible_line_start)
2996 (build_desired_tool_bar_string): Pass Lisp_Object, not int, to
6fc556fd
KR
2997 fixed-arg routines like Fget_char_property and Fmake_string.
2998 (reconsider_clip_changes): Use XINT when comparing integer lisp
2999 objects, or passing them as int arguments.
587a49ab
GM
3000 (mark_window_display_accurate, insert_left_trunc_glyphs)
3001 (append_space, extend_face_to_end_of_line): Use make_number when
6fc556fd
KR
3002 storing or passing integer values as lisp objects.
3003 (set_cursor_from_row, highlight_trailing_whitespace): Use
3004 INTEGERP, not implicit test against zero, for glyph object.
3005 (try_window_id): Don't use make_number when we want an int value.
3006
3007 * xfaces.c (xlfd_symbolic_value): Make last argument a
3008 Lisp_Object, to be consistent with callers.
3009 (Fbitmap_spec_p): Use XINT to get numeric value of height.
3010 (lface_hash): Apply XFASTINT to lisp values before folding in.
3011
3012 * xfns.c (Fx_show_tip): Use make_number to get lisp objects to
3013 fill in window width and height. Pass an int, not a lisp object,
3014 as first arg to Finsert.
3015
6e7b2457
GM
30162000-04-01 Gerd Moellmann <gerd@gnu.org>
3017
610d841e
GM
3018 * xfaces.c (realize_basic_faces): Block input while realizing
3019 the faces.
3020
6e7b2457
GM
3021 * keyboard.c (lispy_mouse_names): Add additional mouse names.
3022
3023 * termhooks.h (NUM_MOUSE_BUTTONS): Increase to 15.
3024
aa110c0c
GM
30252000-03-31 Gerd Moellmann <gerd@gnu.org>
3026
3027 * xterm.c (x_produce_glyphs): When displaying unibyte text
610d841e 3028 or ASCII, handle case that per-char metric is null.
aa110c0c 3029
8801a864
KR
30302000-03-30 Ken Raeburn <raeburn@gnu.org>
3031
c6129d7e
KR
3032 * lisp.h (NO_UNION_TYPE) [ENABLE_CHECKING]: Undef.
3033
8801a864
KR
3034 * lisp.h (XCONS, XSTRING, XSYMBOL, XFLOAT, XPROCESS, XWINDOW,
3035 XSUBR, XBUFFER): Verify correct object type before returning
3036 pointer, using eassert.
3037 * frame.h (XFRAME): Likewise.
3038
3039 * buffer.c (Frename_buffer, Fset_buffer_multibyte,
3040 swap_out_buffer_local_variables, Fmove_overlay): Don't apply
3041 XSYMBOL, XBUFFER, etc, to values that may be nil or of the wrong
3042 type.
3043 * data.c (set_internal): Likewise.
3044 * dispextern.h (WINDOW_WANTS_MODELINE_P,
3045 WINDOW_WANTS_HEADER_LINE_P): Likewise.
3046 * fileio.c (auto_save_1): Likewise.
3047 * insdel.c (check_markers): Likewise.
3048 * marker.c (buf_charpos_to_bytepos, unchain_marker): Likewise.
3049 * undo.c (record_insert): Likewise.
3050 * vmsproc.c (child_sig): Likewise.
3051 * window.c (unshow_buffer, window_loop): Likewise.
3052 * xterm.c (x_erase_phys_cursor): Likewise.
3053
8e7af858
GM
30542000-03-30 Gerd Moellmann <gerd@gnu.org>
3055
3056 * xfns.c (free_image_cache): Free the cache structure itself
3057 last, after all its members have been freed.
3058
3059 * lisp.h (xstrdup): Add prototype.
3060
3061 * alloc.c (xstrdup): Moved here from xfaces.c.
3062 (allocating_for_lisp): Variable removed.
3063 (lisp_malloc): Block input around the calls to malloc and
3064 mem_insert.
3065
3066 * xfaces.c (realize_tty_face): Use find_symbol_value instead
3067 of Fsymbol_value.
3068 (xstrdup): Moved to alloc.c.
3069
e0b8c689
KR
30702000-03-29 Ken Raeburn <raeburn@gnu.org>
3071
b96f9fb7
KR
3072 * scroll.c (CHECK_BOUNDS): Renamed from CHECK.
3073
3074 * emacs.c (main): Fix sense of no-loadup test.
3075
e0b8c689
KR
3076 * config.in (ENABLE_CHECKING): Undef.
3077
3078 * lisp.h (struct interval): Replace "parent" field with a union of
3079 interval pointer and Lisp_Object; add new bitfield to use as
3080 discriminant. Change other flag fields to bitfields.
3081 (CHECK): New macro for consistency checking. If ENABLE_CHECKING
3082 is defined and the supplied test fails, print a message and
3083 abort.
3084 (eassert): New macro. Use CHECK to provide an assert-like
3085 facility.
3086
3087 * intervals.h (NULL_INTERVAL_P): Now applies only to real interval
3088 pointers; abort if the value looks like a lisp object.
3089 (NULL_INTERVAL_P, NULL_PARENT, HAS_PARENT, HAS_OBJECT, SET_PARENT,
3090 SET_OBJECT, INTERVAL_PARENT, GET_INTERVAL_OBJECT, COPY_PARENT):
3091 Modify for new interval parent definition.
3092
3093 * alloc.c (mark_interval_tree, MARK_INTERVAL_TREE,
3094 UNMARK_BALANCE_INTERVALS): Update references that need an
3095 addressable lisp object in the interval structure.
3096 (die): New function.
3097 (suppress_checking): New variable.
3098
3099 * intervals.c (interval_start_pos): Just return 0 if there's no
3100 parent object.
3101
f83c5440
GM
31022000-03-29 Gerd Moellmann <gerd@gnu.org>
3103
3104 * lread.c (read1): Accept `.' (period) as symbol start like in CL
3105 and earlier Emacs versions.
3106
3107 * keyboard.c (Ftop_level): Cancel busy-cursor.
3108
3109 * eval.c (call_debugger): Cancel busy-cursor.
3110
fdce64ff
KH
31112000-03-29 Kenichi Handa <handa@etl.go.jp>
3112
3113 * search.c (Freplace_match): Adjust multibyteness of the current
3114 buffer and NEWTEXT. Free allocated memory before signaling an
3115 error.
3116
f6a3f532
SM
31172000-03-28 Stefan Monnier <monnier@cs.yale.edu>
3118
3119 * regex.c (analyse_first): New function obtained by ripping out most
3120 of re_compile_fastmap and generalizing it a little bit so that it
3121 can also just return whether a given (sub)pattern can match the empty
3122 string or not.
3123 (regex_compile): Use `analyse_first' to decide whether the loop-check
3124 needs to be done or not for *, +, *? and +? (the loop check is costly
3125 for non-greedy repetition).
3126 (re_compile_fastmap): Delegate the actual work to `analyse_first'.
3127
e9b309ac
DL
31282000-03-28 Dave Love <fx@gnu.org>
3129
bb15bd9a
DL
3130 * s/gnu-linux.h (GC_SETJMP_WORKS): Define for i386, sparc, m68k,
3131 alpha.
3132
e9b309ac
DL
3133 * alloc.c: Include stdio.h. Test STDC_HEADERS, not __STDC__.
3134
ed0767d8
SM
31352000-03-27 Stefan Monnier <monnier@cs.yale.edu>
3136
3137 * regex.c (REGEX_FREE_STACK, RESET_FAIL_STACK): Make them usable as
3138 an expression.
3139 (enum re_opcode_t): Update description of succeed_n.
3140 (PATFETCH): Always define.
3141 (regex_compile): Use lookahead rather than PATUNFETCH (for repetition
3142 operators, char classes, shy-groups and intervals).
3143 Optimize special cases of intervals so as to only use succeed_n and
3144 jump_n when really needed.
3145 (re_compile_fastmap): Simplify handling of jump_n and succeed_n now
3146 that we don't have to handle the special cases any more.
3147 Simplify on_failure_jump handling as well.
3148
e11e7e46
JR
31492000-03-28 Jason Rumney <jasonr@gnu.org>
3150
3151 * lread.c (Fload): Move safe_p definition to above #ifdef DOS_NT.
3152
88faab89
GM
31532000-03-27 Gerd Moellmann <gerd@gnu.org>
3154
182ff242
GM
3155 * s/freebsd.h (GC_SETJMP_WORKS): Define.
3156
3157 * s/msdos.h (GC_SETJMP_WORKS): Define.
427ec082 3158
182ff242
GM
3159 * alloc.c (mark_maybe_object): New function.
3160 (mark_memory): Use it.
3161 (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK): New macros.
3162 (setjmp_tested_p, longjmp_done): New variables.
3163 (test_setjmp): New function.
3164 (mark_stack) [!GC_SETJMP_WORKS]: Call test_setjmp.
3165 (init_alloc): Initialize setjmp_tested_p and longjmp_done.
3166
c1005d06
GM
3167 * xdisp.c (face_before_or_after_it_pos): Pass multibyteness
3168 to DEC_TEXT_POS and INC_TEXT_POS.
3169
3170 * dispnew.c (direct_output_for_insert): Use DEC_TEXT_POS
3171 with parameter MULTIBYTE_P.
3172
427ec082 3173 * dispextern.h (INC_TEXT_POS, DEC_TEXT_POS): Add parameter
c1005d06
GM
3174 MULTIBYTE_P.
3175
7439e5b9 3176 * editfns.c (Fsubst_char_in_region): Don't use INC_POS in unibyte
182ff242
GM
3177 buffers because it looks for multibyte character byte sequences
3178 which don't exist in unibyte text.
7439e5b9 3179
d9c545da
GM
3180 * xterm.h (x_specified_cursor_type, x_copy_color): Add prototypes.
3181
11fd416e 3182 * xfaces.c (register_color, unregister_color, unregister_colors)
d9c545da
GM
3183 [DEBUG_X_COLORS]: New functions.
3184 (x_free_colors) [DEBUG_X_COLORS]: Unregister colors.
3185
3186 * xfns.c (x_set_cursor_color): Get color reference counts right.
3187
3188 * xterm.c (x_copy_color): New function.
3189 (x_alloc_nearest_color) [DEBUG_X_COLORS]: Call register_color.
3190
3191 * buffer.h (MAX_PER_BUFFER_VARS): Renamed from MAX_BUFFER_LOCAL_VARS.
3192 (PER_BUFFER_VAR_OFFSET): Renamed from BUFFER_LOCAL_VAR_OFFSET.
3193 (PER_BUFFER_VAR_IDX): Renamed from BUFFER_LOCAL_VAR_IDX.
3194 (PER_BUFFER_VALUE_P): Renamed from BUFFER_HAS_LOCAL_VALUE_P.
3195 (SET_PER_BUFFER_VALUE_P): Renamed from SET_BUFFER_HAS_LOCAL_VALUE_P.
3196 (PER_BUFFER_IDX): Renamed from BUFFER_LOCAL_IDX.
3197 (PER_BUFFER_DEFAULT): Renamed from BUFFER_LOCAL_DEFAULT_VALUE.
3198 (PER_BUFFER_VALUE): Renamed from BUFFER_LOCAL_VALUE.
3199 (PER_BUFFER_SYMBOL): Renamed from BUFFER_LOCAL_SYMBOL.
3200 (PER_BUFFER_TYPE): Renamed from BUFFER_LOCAL_TYPE.
3201
11fd416e
GM
3202 * category.c, data.c, syntax.c, print.c, lread.c: Use new macro
3203 names for handling per-buffer variables.
d9c545da
GM
3204
3205 * buffer.c (buffer_permanent_local_flags): Use MAX_PER_BUFFER_VARS
3206 instead of MAX_BUFFER_LOCAL_VARS.
3207 (last_per_buffer_idx): Renamed from max_buffer_local_idx.
3208
3209 * xfaces.c (lookup_face): Don't assert FACE_SUITABLE_FOR_CHAR_P.
3210
88faab89
GM
3211 * xfns.c (x_specified_cursor_type): New function.
3212 (x_set_cursor_type): Use it.
3213
3214 * buffer.h (struct buffer): Add cursor_type.
3215
d80f42b7
SM
32162000-03-26 Stefan Monnier <monnier@cs.yale.edu>
3217
3218 * regex.c (enum re_opcode_t): New opcode on_failure_jump_nastyloop.
427ec082 3219 (print_partial_compiled_pattern, re_compile_fastmap): Handle new
88faab89 3220 opcode.
d80f42b7
SM
3221 (regex_compile): Use on_failure_jump_nastyloop for non-greedy loops.
3222 (re_match_2_internal): Add code for on_failure_jump_nastyloop when
3223 executing it as well as when popping it off the stack to find infinite
3224 loops in non-greedy repetition operators.
3225
89e80928
GM
32262000-03-26 Gerd Moellmann <gerd@gnu.org>
3227
3d4ff2dd
GM
3228 * doc.c (Qfunction_documentation): New variable.
3229 (syms_of_doc): Initialize Qfunction_documentation.
3230 (Fdocumentation): If FUNCTION is a symbol with non-nil
3231 `function-documentation' property, return a documentation derived
3232 from that.
3233
bd96bd79
GM
3234 * buffer.c (syms_of_buffer): Add default-cursor-type.
3235 (init_buffer_once): Don't let cursor_type have a local value
3236 in every buffer.
3237
19d1bc27
GM
3238 * xterm.c (x_display_and_set_cursor): Choose cursor depending
3239 on buffer-local value of cursor_type.
3240 (x_draw_bar_cursor): Add parameter WIDTH.
3241
3242 * buffer.c (reset_buffer): Initialize buffer's cursor_type.
3243 (init_buffer_once): Set default cursor_type value to t.
3244 Mark cursor_type as local everywhere.
3245 (syms_of_buffer): New per-buffer variable cursor-type.
3246
89e80928
GM
3247 * buffer.h (struct buffer): Remove member local_var_flags,
3248 add local_flags.
3249 (MAX_BUFFER_LOCAL_VARS): New macro.
3250 (BUFFER_LOCAL_VAR_OFFSET, BUFFER_LOCAL_VAR_IDX)
3251 (BUFFER_HAS_LOCAL_VALUE_P, SET_BUFFER_HAS_LOCAL_VALUE_P)
3252 (BUFFER_LOCAL_IDX, BUFFER_LOCAL_DEFAULT_VALUE, BUFFER_LOCAL_VALUE)
3253 (BUFFER_LOCAL_SYMBOL, BUFFER_LOCAL_TYPE): New macros.
3254
3255 * print.c (print_object): Use new macros for per-buffer
3256 variables.
3257
3258 * category.c (Fset_category_table): Use new macros for per-buffer
3259 variables.
3260
3261 * buffer.c (buffer_permanent_local_flags): Make a char array.
3262 (max_buffer_local_idx): New variable.
3263 (reset_buffer_local_variables, Fbuffer_local_variables): Rewritten
3264 for new handling of per-buffer variables.
3265 (buffer_slot_type_mismatch): Use new macros for per-buffer vars.
3266 (init_buffer_once): Initialize per-buffer vars differently.
3267 Set max_buffer_local_idx.
3268
3269 * syntax.c (Fset_syntax_table): Use new macros for per-buffer
3270 variables.
3271
3272 * lread.c (defvar_per_buffer): Use new macros for per-buffer
3273 variables.
3274
3275 * data.c (do_symval_forwarding, store_symval_forwarding)
3276 (find_symbol_value, set_internal, default_value, Fset_default)
3277 (Fkill_local_variable, Flocal_variable_p): Use new macros for
3278 per-buffer variables.
3279
3280 * Makefile.in (bootstrap-emacs): Use `mv -f' instead of `mv'.
3281
9a0dd3dc
GM
32822000-03-24 Gerd Moellmann <gerd@gnu.org>
3283
b68c375f
GM
3284 * xterm.c (x_term_init): Unblock input around call1 of
3285 Qvendor_specific_keysyms.
3286
9a0dd3dc
GM
3287 * syntax.c (open_paren_in_column_0_is_defun_start): New variable.
3288 (find_defun_start): Consider an open parenthesis in column 0
3289 a defun start only if open_paren_in_column_0_is_defun_start is set.
3290 (syms_of_syntax): New variable open-paren-in-column-0-is-defun-start.
3291
7973e637
SM
32922000-03-24 Stefan Monnier <monnier@cs.yale.edu>
3293
3294 * eval.c (Fautoload): Add entry in load-history (if after dump).
3295 * lread.c (load-history): Update docstring.
3296
39210e90
GM
32972000-03-24 Gerd Moellmann <gerd@gnu.org>
3298
3299 * indent.c (Fvertical_motion): Always use the current buffer.
3300 Temporarily change the window's buffer, if necessary.
3301
72db3ab5
GM
33022000-03-23 Gerd Moellmann <gerd@gnu.org>
3303
3304 * xterm.c (fast_find_position): Make sure not to consider rows
3305 not visible in the window.
3306
990b2375
SM
33072000-03-22 Stefan Monnier <monnier@cs.yale.edu>
3308
3309 * regex.c (enum syntaxcode): Provide default for non-Emacs.
3310 (re_compile_fastmap, re_match_2_internal): Undo Dave's previous fix.
3311
ff4df011
JR
33122000-03-22 Jason Rumney <jasonr@gnu.org>
3313
3314 * w32menu.c (single_submenu): Set help string to NULL if none.
3315 (w32_menu_show): Set help string correctly.
3316 (add-menu-item): Set help string in MIIM_DATA for menu item.
3317 Load SetMenuItemInfoA explicitly.
3318 (w32_menu_display_help): New function.
427ec082 3319
ff4df011
JR
3320 * w32fns.c (w32_wnd_proc): Handle WM_MENUSELECT message.
3321 (QCdata): Moved to xdisp.c.
3322
3323 * w32term.c (w32_read_socket): Handle WM_MENUSELECT message.
3324 (Vw32_charset_to_codepage_alist): Removed.
3325 (Vw32_charset_info_alist): New variable.
3326 (Qw32_charset_[ansi, default, symbol, shiftjis, hangul, gb2312,
3327 chinesebig5, oem, easteurope, turkish, baltic, russian, arabic,
3328 greek, hebrew, thai, johab, mac, unicode]): New symbols.
3329 (x_produce_glyphs): Remove out of date #ifdef 0'd section. Replace
3330 with TODO comment.
3331 (w32_codepage_for_font): Use Vw32_charset_info_alist.
3332 (syms_of_w32term): Remove Vw32_charset_to_codepage_alist.
3333 Define Vw32_charset_info_alist and w32_charset symbols.
3334
33352000-03-22 Jason Rumney <jasonr@gnu.org>
3336
3337 * makefile.nt (w32bdf.obj): Update dependencies.
3338
3339 * w32bdf.c: Include frame.h and dispextern.h before fontset.h.
3340
3341 * w32fns.c: Include fontset.h after dispextern.h.
3342 (Fx_create_frame): Do not create fontset.
3343 (w32_load_system_font): Doc fix.
3344 (Fx_close_connection): Free full_name if it is not shared.
3345
3346 * w32term.c: Include fontset.h after dispextern.h.
3347 (x_get_glyph_face_and_encoding): New parameter two_byte_p. Callers
3348 updated.
3349 (w32_per_char_metric): If PCM is invalid, delete and return NULL.
3350 (x_get_char_and_face_encoding): Use FACE_FOR_CHAR to get face_id.
3351 (w32_font_is_double_byte): New function, needs body.
3352 (x_append_glyph): Set glyph->glyph_not_available_p.
3353 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
3354 it->charset. If it->multibyte_p is zero and it->c is a multibyte
3355 character, convert it to a unibyte character.
3356 (struct glyph_string): Delete member `charset'.
3357 (W32_TEXTOUT): Temporarily remove charset_dim until another way of
3358 calculating it is found.
3359 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
3360 the case that per char metric is not available correctly.
3361 (x_fill_glyph_string): Handle the case that the specific glyph is
3362 not available correctly.
3363 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
3364 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
3365 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
3366 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
3367 fontset. Don't call FS_LOAD_FONT.
3368
439d5cb4
KR
33692000-03-22 Ken Raeburn <raeburn@gnu.org>
3370
3371 * intervals.h (NULL_INTERVAL): Cast to INTERVAL type.
3372 (INT_LISPLIKE): New macro.
3373 (NULL_INTERVAL_P): Use it.
3374 (INTERVAL_HAS_PARENT, INTERVAL_HAS_OBJECT, SET_INTERVAL_PARENT,
3375 SET_INTERVAL_OBJECT, INTERVAL_PARENT, COPY_INTERVAL_PARENT,
3376 GET_INTERVAL_OBJECT, INTERVAL_PARENT_OR_NULL): New macros.
3377
3378 * alloc.c (make_interval, gc_sweep): Use new macros; eliminate all
3379 explicit references to "parent" field of struct interval and
3380 associated unclean type conversions.
3381 * intervals.c (create_root_interval, root_interval, rotate_right,
3382 rotate_left, balance_possible_root_interval, split_interval_right,
3383 split_interval_left, interval_start_pos, find_interval,
3384 next_interval, previous_interval, update_interval,
3385 adjust_intervals_for_insertion, delete_node, delete_interval,
3386 adjust_intervals_for_deletion, merge_interval_right,
3387 merge_interval_left, reproduce_tree, graft_intervals_into_buffer,
3388 copy_intervals_to_string): Likewise.
3389 * intervals.h (AM_LEFT_CHILD, AM_RIGHT_CHILD, RESET_INTERVAL):
3390 Likewise.
3391 * syntax.c (update_syntax_table): Likewise.
3392
3393 * intervals.c (reproduce_tree_obj): New function, like
3394 reproduce_tree but takes a Lisp_Object for the parent. Declare
3395 with prototype.
3396 (graft_intervals_into_buffer): Use it when appropriate.
3397 (reproduce_tree): Declare with prototype.
3398 (balance_possible_root_interval): Check that the parent is a lisp
3399 object before trying to examine its type.
3400
ee1c5b21
GM
34012000-03-22 Gerd Moellmann <gerd@gnu.org>
3402
3403 * xfaces.c (lface_same_font_attributes_p): Compare font attributes
3404 as strings only if both are known to be strings.
3405
3406 * s/openbsd.h (LIBS_TERMCAP): Undef.
3407
1fb352e0
SM
34082000-03-21 Stefan Monnier <monnier@cs.yale.edu>
3409
3410 * regex.c (CHAR_CHARSET, CHARSET_LEADING_CODE_BASE): Add default
3411 definitions for non-Emacs compilation.
3412 (enum re_opcode_t): Remove (not)wordchar and move (not)syntaxspec
3413 outside of `#ifdef emacs'.
3414 (print_partial_compiled_pattern): Update.
3415 (regex_compile): Use (not)syntaxspec(Sword) instead of (not)wordchar.
3416 (re_compile_fastmap): Merge handling of charset and charset_not (for
3417 emacs and non-emacs compilation as well).
3418 Similarly for (not)categoryspec and (not)syntaxspec.
3419 Don't use the fastmap when reaching `anychar' since the added
3420 complexity is not justified.
3421 (re_match_2_internal): Merge (not)wordchar (emacs and non-emacs)
3422 and (not)syntaxspec. Merge (not)categoryspec.
3423
fdaa1f77
KH
34242000-03-22 Kenichi Handa <handa@etl.go.jp>
3425
ff1a0d8e
KH
3426 * dispextern.h [!HAVE_WINDOW_SYSTEM] (FACE_SUITABLE_FOR_CHAR_P,
3427 FACE_FOR_CHAR): Define them differently for the configuration of
3428 --without-x.
fdaa1f77 3429
d152fb46
DL
34302000-03-21 Dave Love <fx@gnu.org>
3431
3432 * fontset.c (Fset_fontset_font, Ffontset_font): Fix newlines in
3433 doc string.
3434
d2cafc8c
GM
34352000-03-21 Gerd Moellmann <gerd@gnu.org>
3436
3437 * xfaces.c (check_lface_attrs) [GLYPH_DEBUG]: Fix syntax error.
3438 (lface_fully_specified_p): Don't check contents of
3439 LFACE_FONT_INDEX because that attribute is optional.
3440 (realize_x_face): Remove now unwarranted xassert.
3441
9111d4b5
KH
34422000-03-21 Kenichi HANDA <handa@etl.go.jp>
3443
3444 The following changes are to make font selection based on
3445 characters, not charset. In addition, they recover fontset
3446 facilities while utilizing the new font selection mechanism.
3447
6c4bfdc0
KH
3448 * Makefile.in (fontset.o): Depend on dispextern.h.
3449
3450 * alloc.c (mark_face_cache): Don't mark face->registry.
3451
9111d4b5
KH
3452 * dispextern.h (struct glyph): New member glyph_not_available_p.
3453 Use 22 bits for face_id.
3454 (enum lface_attribute_index): Add LFACE_FONT_INDEX.
3455 (struct face): Delete member registry, new member ascii_face.
3456 (FACE_SUITABLE_FOR_CHAR_P): Renamed from
3457 FACE_SUITABLE_FOR_CHARSET_P. Caller changed.
3458 (FACE_FOR_CHAR): Renamed from FACE_FOR_CHARSET. Caller changed.
3459 (struct it): Delete member charset, new member
3460 glyph_not_available_p.
3461
3462 * fontset.h (FONT_NOT_OPENED, FONT_NOT_FOUND): Macros removed.
3463 (struct fontset_info, struct fontset_data): Structs removed.
3464 (allloc_fontset_data, free_fontset_data, fs_regiser_fontset,
3465 Vglobale_fontset_alist, font_idx_temp): Externs removed.
3466 (fs_load_font, fs_query_fontset): Adjusted for new argument.
3467 (fs_free_face_fontset, fontset_font_pattern,
3468 face_suitable_for_char_p, face_for_char,
3469 make_fontset_for_ascii_face): Extern them.
3470 (FS_LOAD_FONT): Adjusted for the change of fontset implementation.
3471 (FS_LOAD_FACE_FONT): New macro.
3472
3473 * fontset.c: All codes rewritten or adjusted for the change of
3474 fontset implementation. Now fontset is represented by char table.
3475 (Vglobal_fontset_alist, font_idx_temp, my_strcasetbl): Variables
3476 removed.
3477 (my_strcasecmp): Function removed.
3478 (Vfontset_table, next_fontset_id, Vdefault_fontset): New
3479 variables.
3480 (AREF, ASIZE): New macros.
3481 (FONTSET_FROM_ID, FONTSET_ID, FONTSET_NAME, FONTSET_FRAME,
3482 FONTSET_ASCII, FONTSET_BASE, BASE_FONTSET_P, FONTSET_REF,
3483 FONTSET_REF_VIA_BASE, FONTSET_SET): New macros.
3484 (fontset_ref, fontset_ref_via_base, fontset_set, make_fontset,
3485 fontset_id_valid_p, font_family_registry, fontset_name,
3486 fontset_ascii, free_face_fontset, face_suitable_for_char_p,
3487 face_for_char, make_fontset_for_ascii_face, fontset_font_pattern):
3488 New functions.
3489 (fs_load_font): New arg FACE. Caller changed.
3490 (fs_query_fontset): Argument changed. Caller changed.
3491 (Fquery_fontset): call fs_query_fontset.
3492 (fs_register_fontset, alloc_fontset_data, free_fontset_data):
3493 Functions removed.
3494 (clear_fontset_elements, check_registry_encoding,
3495 check_fontset_name): New functions.
3496 (syms_of_fontset): Set char-table-extra-slots property of fontset
3497 to 3. Staticpro and initialize Vfontset_table and
3498 Vdefault_fontset. Defsubr fontset_font and fontset_list.
3499
3500 * frame.h (struct frame): Member `fontset_data' removed.
3501 (FRAME_FONTSET_DATA): Macro removed.
3502
3503 * frame.c (make_frame): Don't allocate f->fontset_data.
3504 (Fdelete_frame): Don't free f->fontset_data.
3505
6c4bfdc0
KH
3506 * msdos.c (XMenuActivate): Args to lookup_derived_face changed.
3507
9111d4b5
KH
3508 * xdisp.c (charset_at_position): Function removed.
3509 (init_iterator): Don't set member charset of struct `it'.
3510 (handle_face_prop, reseat_to_string, set_iterator_to_next,
3511 next_element_from_display_vector, insert_left_trunc_glyphs):
3512 Likewise.
3513 (face_before_or_after_it_pos): Call FACE_FOR_CHAR, not
3514 FACE_FOR_CHARSET.
3515 (get_next_display_element, append_space,
3516 extend_face_to_end_of_line): Likewise.
3517
3518 * xfaces.c (Qx_charset_registry, Vface_default_registry):
3519 Variables removed.
3520 (clear_font_table, frame_update_line_height, load_face_font):
3521 Adjusted for the change of fontset implementation.
3522 (load_face_fontset_font): Function removed.
3523 (pixel_point_size): New function.
3524 (font_list): Argument type changed. Caller changed.
3525 (LFACE_FONT): New macro.
3526 (check_lface_attrs): Check attr[LFACE_FONT_INDEX].
3527 (set_lface_from_font_name): Type of arg FONTNAME is changed to
3528 Lisp_Object. Determine the font name by actually loading a font
3529 by the specified pattern. Set LFACE_FONT (lface) to the specified
3530 pattern. Even if a font is not found, don't try alternatives.
3531 (Finternal_set_lisp_face_attribute): Handle `font' slot in lface.
3532 (set_font_frame_param): If `font' is specified in lface, use it.
3533 (Finternal_get_lisp_face_attribute): Handle `font' slot in lface.
3534 (lface_same_font_attributes_p): Likewise.
3535 (make_realized_face): Arguent changed. Caller changed. Set
3536 face->ascii_face to face itself.
3537 (free_realized_face): Free face->fontset if face is for ASCII.
3538 (face_suitable_for_iso8859_1_p, face_suitable_for_charset_p,
3539 deduce_unibyte_registry, x_charset_registry): Functions removed.
3540 (free_realized_multibyte_face): New function.
3541 (lookup_face, lookup_named_face, lookup_derived_face): Argument
3542 changed. Caller changed.
3543 (try_font_list): Argument type changed.
3544 (face_fontset): Check `font' slot of ATTRS, not `family' slot.
3545 (choose_face_font): Argument changed. Handle fontset properly.
3546 (choose_face_fontset_font): Function removed.
3547 (realize_default_face, realize_named_face): Don't remove the
3548 former face here.
3549 (realize_face): Argument changed. Caller changed. Remove face
3550 with the arg former_face_id in advance. Load font for the new
3551 face.
3552 (realize_x_face): Argument changed. Caller changed. For a
3553 multibyte character, share fontset with base_face. For a single
3554 byte character, make a new realized fontset. Don't load a font
3555 here.
3556 (realize_tty_face): Argument changed. Caller changed.
3557 (compute_char_face): Call FACE_FOR_CHAR, not FACE_FOR_CHARSET.
3558 (face_at_buffer_position): Don't check multibyte_p for returning
3559 DEFAULT_FACE_ID.
3560 (face_at_string_position): Call FACE_SUITABLE_FOR_CHAR_P, not
3561 FACE_SUITABLE_FOR_CHARSET_P.
3562 (syms_of_xfaces): Remove code for Qx_charset_registry and
3563 Vface_default_registry.
3564
6c4bfdc0
KH
3565 * xterm.c: Include fontset.h after dispextern.h. Undo the changes
3566 related to PER_CHAR_METRIC done by Gerd on 2000-03-03.
9111d4b5
KH
3567 (x_per_char_metric): Don't try FONT->default_char. Even if
3568 pcm->width is zero, glyph bits may exist.
3569 (x_encode_char): Always initialize char2b->byte1.
3570 (x_get_char_face_and_encoding): Call FACE_FOR_CHAR to get face_id.
3571 (x_get_glyph_face_and_encoding): New arg two_byte_p. Caller
3572 changed.
3573 (x_append_glyph): Set glyph->glyph_not_available_p.
3574 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
3575 it->charset. Handle the case that per char metric is not
3576 available. If it->multibyte_p is zero and it->c is a multibyte
3577 character, convert it to a unibyte character.
3578 (struct glyph_string): Delete member `charset'.
3579 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
3580 the case that per char metric is not available correctly.
3581 (x_fill_glyph_string): Handle the case that the specific glyph is
3582 not available correctly.
3583 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
3584 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
3585 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
3586 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
3587 fontset. Don't call FS_LOAD_FONT.
3588
3589 * xfns.c (Fx_create_frame): Don't cal fs_register_fontset.
3590 (x_create_tip_frame): Likewise.
3591 (Fx_close_connection): Free full_name of font_info.
3592
3593 * fns.c (optimize_sub_char_table): New function.
3594 (Foptimize_char_table): New function.
3595 (syms_of_fns): Defsubr Soptimize_char_table.
3596
b33dd3b0
GM
35972000-03-20 Gerd Moellmann <gerd@gnu.org>
3598
3599 * buffer.c (Fset_buffer_modified_p): Set update_mode_lines
3600 only if buffer is displayed in some window.
3601
3602 * xdisp.c (handle_single_display_prop): Initialize local `value'.
3603 (try_window_reusing_current_matrix): Don't call scroll run
3604 function if run's current and desired position are the same;
3605 this prevents cursor flickering.
3606
4e8a9132
SM
36072000-03-19 Stefan Monnier <monnier@cs.yale.edu>
3608
3609 * regex.h (RE_TRANSLATE. RE_TRANSLATE_P): Moved to regex.c.
3610
3611 * regex.c (RE_STRING_CHAR): New macro.
3612 (GET_CHAR_AFER_2): Remove.
3613 (RE_TRANSLATE, RE_TRANSLATE_P): New macros moved from regex.h.
3614 (enum re_opcode_t): Remove on_failure_jump_exclusive.
3615 (print_partial_compiled_pattern, re_compile_fastmap)
3616 (re_match_2_internal): Remove on_failure_jump_exclusive.
3617 (regex_compile): Turn optimizable P+ loops into PP*, so that the
3618 optimization only need to work for * (ie. can use of_keep_string_jump).
3619 Remove the special case for .*\n since it is now covered by the general
3620 optimization.
3621 (re_search_2): Don't bother with `room'.
3622 (skip_one_char): New function.
3623 (skip_noops): Simplify since `memory' is not needed any more.
3624 (mutually_exclusive_p): Restructure slightly to use `switch' and
3625 add handling for "all" remaining cases.
3626 (re_match_2_internal): Change on_failure_jump_smart to use
3627 on_failure_keep_string_jump (and redirect the end-of-loop jump)
3628 rather than on_failure_jump_exclusive.
3629
2136fdd4
GM
36302000-03-19 Gerd Moellmann <gerd@gnu.org>
3631
3632 * xfns.c (select_visual): Don't set dpyinfo->n_planes to the
3633 number of bits per RGB because it's everywhere used as the depth
3634 of the visual.
3635
3636 * term.c (calculate_costs): Remove code dealing with X frames.
3637
18e21ce8 36382000-03-19 Richard M. Stallman <rms@gnu.org>
e53ae11c
RS
3639
3640 * lread.c (syms_of_lread): Doc fix for load-convert-to-unibyte.
3641
d7b511c4
GM
36422000-03-18 Gerd Moellmann <gerd@gnu.org>
3643
3644 * lread.c (read_integer): Unread the last char not consumed.
3645
16b5d424
GM
36462000-03-17 Gerd Moellmann <gerd@gnu.org>
3647
3648 * xterm.c (x_update_window_cursor): Don't update in frames
d7b511c4 3649 which are in the process of being deleted.
16b5d424 3650
1fa28578
GM
36512000-03-16 Gerd Moellmann <gerd@gnu.org>
3652
83488cce
GM
3653 * Makefile.in (mostlyclean): Add `*.core'.
3654 (clean): Add `bootstrap-emacs'.
3655
1fa28578
GM
3656 * lread.c (read_integer): New function.
3657 (read1): Support read syntax #o, #x, #b, #r.
3658
99633e97
SM
36592000-03-15 Stefan Monnier <monnier@cs.yale.edu>
3660
1fa28578
GM
3661 * regex.c (re_match_2): Fix string shortening (to fit `stop') to
3662 make sure POINTER_TO_OFFSET gives the same value before and after
3663 PREFETCH. Use `dfail' to guarantee "atomic" matching.
99633e97
SM
3664 (PTR_TO_OFFSET): Use POINTER_TO_OFFSET.
3665 (debug): Now only active if > 0 rather than if != 0.
3666 (DEBUG_*): Update for the new meaning of `debug'.
1fa28578
GM
3667 (print_partial_compiled_pattern): Add missing `succeed' case. Use
3668 CHARSET_* macros in the charset(_not) branch. Fix off-by-two bugs
3669 in `succeed_n', `jump_n' and `set_number_at'.
99633e97
SM
3670 (store_op1, store_op2, insert_op1, insert_op2)
3671 (at_begline_loc_p, at_endline_loc_p): Add prototype.
1fa28578
GM
3672 (group_in_compile_stack): Move to after its arg's types are
3673 declared and add a prototype.
99633e97 3674 (PATFETCH): Define in terms of PATFETCH_RAW.
1fa28578
GM
3675 (GET_UNSIGNED_NUMBER): Add the usual `do { ... } while(0)'
3676 wrapper.
99633e97 3677 (QUIT): Redefine as a nop except for NTemacs.
1fa28578
GM
3678 (regex_compile): Handle intervals {,M} as if it was {0,M}. Fix
3679 indentation of the greedy-op and shy-group code.
99633e97
SM
3680 (at_(beg|end)line_loc_p): Fix argument's types.
3681 (re_compile_fastmap): Ifdef out failure_stack_ptr to shut up gcc.
3682 (re_search_2): Use POS_AS_IN_BUFFER. Simplify `room' computation.
3683 (MATCHING_IN_FIRST_STRING): Remove.
1fa28578
GM
3684 (re_match_2): Use POS_AS_IN_BUFFER. Ifdef out failure_stack_ptr
3685 to shut up gcc. Use FIRST_STRING_P and POINTER_TO_OFFSET. Use
3686 QUIT unconditionally.
99633e97 3687
699238d9
GM
36882000-03-15 Gerd Moellmann <gerd@gnu.org>
3689
3690 * minibuf.c (Fminibuffer_complete): Set point to ZV if finding
3691 a sole completion.
3692
3693 * process.c (send_process): Add a hint that the function
3694 can call Lisp code to its comment.
3695
3696 * lread.c (load_dangerous_libraries): New variable.
3697 (Vbytecomp_version_regexp): New variable.
3698 (safe_to_load_p): New function.
3699 (Fload): Handle files not compiled with Emacs specially.
3700 (syms_of_lread): New Lisp variable load-dangerous-libraries.
3701
34e23e5a
GM
37022000-03-14 Gerd Moellmann <gerd@gnu.org>
3703
9c763cca
GM
3704 * lisp.h (free_frame_xic) [HAVE_X_I18N]: Add missing semicolon.
3705
3706 * xterm.c (xim_close_dpy, xim_initialize): Use X11R6-style XIM
3707 support functions only if HAVE_X11R6_XIM is defined.
3708 (xim_instantiate_callback): Define only if HAVE_X11R6_XIM.
3709
3710 * s/sol2.h (INHIBIT_X11R6_XIM): Define.
3711
3712 * xfns.c (X_I18N_INHIBITED): Don't define.
3713 (create_frame_xic): Remove conditional compilation on
3714 X_I18N_INHIBITED.
3715 (x_kill_gs_process, x_window): Use FRAME_X_VISUAL.
3716
3717 * config.in (HAVE_X_I18N): Moved here from xterm.h.
3718 (HAVE_X11R6_XIM): Define.
3719
3720 * xterm.h (HAVE_X_I18N) [HAVE_X11R6]: Moved to config.in.
3721
34e23e5a
GM
3722 * xterm.c (x_term_init): Add support for X resource `synchronous'.
3723 If set, call XSynchronize.
3724
66f0296e
SM
37252000-03-13 Stefan Monnier <monnier@cs.yale.edu>
3726
34e23e5a
GM
3727 * regex.c: Declare a new type `re_char' used throughout the code
3728 for the string char type. It's `const unsigned char' to match the
3729 rest of Emacs. Consistently make sure all pointers to strings use
3730 it and make sure all pointers into the pattern use `unsigned
3731 char'.
66f0296e 3732 (re_match_2_internal): Use `PREFETCH+STRING_CHAR' instead of
34e23e5a
GM
3733 GET_CHAR_AFTER_2. Also merge wordbound and notwordbound to reduce
3734 code duplication.
66f0296e
SM
3735
3736 * charset.h (GET_CHAR_AFTER_2): Remove.
3737 (GET_CHAR_BEFORE_2): Use unsigned chars, like everywhere else.
3738
854a025c
KR
37392000-03-12 Ken Raeburn <raeburn@gnu.org>
3740
3741 * Makefile.in (temacs): Evaluate ALL_LDFLAGS into a temporary
3742 variable before the invocation of YMF_PASS_LDFLAGS, in case both
3743 of them try to use backquotes.
3744
b9d2c7e2
DL
37452000-03-12 Dave Love <fx@gnu.org>
3746
3747 * unexelf.c: Restore changes of 1999-10-19.
3748 (unexec): Don't adjust bss for sbss type SHT_PROGBITS; otherwise
3749 fix its type and alignment; copy it from current process.
3750
5e5dff44
GM
37512000-03-12 Gerd Moellmann <gerd@gnu.org>
3752
9b2f3c38
GM
3753 * atimer.c (cancel_atimer): Break out of the loop as soon as timer
3754 has been found. Fix bug not computing timer's predecessor.
3755
427ec082 3756 * fileio.c (Fread_file_name): Handle case that DIR contains a
9172b88d
GM
3757 file name.
3758
e1cff360
GM
3759 * window.c (Fsave_window_excursion): Doc fix.
3760
5e5dff44
GM
3761 * xfns.c (x_defined_color): Rewritten to use
3762 x_allocate_nearest_color.
3763
e411ce4b
EZ
37642000-03-12 Eli Zaretskii <eliz@is.elta.co.il>
3765
3766 * msdos.c (vga_installed): New function, code moved from
3767 dos_set_window_size.
3768 (Qbar, Qcursor_type, outside_cursor): New variables.
3769 (syms_of_msdos): Intern and staticpro them.
3770 (dos_ttraw) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Save the cursor
3771 shape used outside Emacs when called for the first time.
3772 (dos_ttcooked) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Restore the
3773 cursor shape used outside Emacs.
3774 (msdos_set_cursor_shape, IT_set_cursor_type): New functions.
3775 (IT_frame_up_to_date): Call IT_set_cursor_type, in case the cursor
3776 type has changed.
3777 (IT_set_frame_parameters): Call IT_set_cursor_type if the frame
3778 parameters specify the cursor. Make qreverse a global
3779 variable (renamed to Qreverse).
3780
80460654
GM
37812000-03-09 Gerd Moellmann <gerd@gnu.org>
3782
3783 * fns.c (Fy_or_n_p): Cancel busy-cursor.
3784
95cd4c40
SM
37852000-03-08 Stefan Monnier <monnier@cs.yale.edu>
3786
3787 This is a big redesign of failure-stack and register handling, prompted
3788 by bugs revealed when trying to add shy-groups. Overall, what happened
3789 is that loops are now structured a little differently, groups can be
3790 shy and the code is a little simpler.
3791
3792 * regex.h: Update the copyright.
3793 (RE_SHY_GROUPS): New value.
3794 (RE_UNMATCHED_RIGHT_PAREN_ORD): Renumber.
3795 (RE_SYNTAX_EMACS): Add RE_SHY_GROUPS.
3796
80460654
GM
3797 * regex.c (enum re_opcode_t): Remove jump_past_alt,
3798 maybe_pop_jump, push_dummy_failure and dumy_failure_jump. Add
3799 on_failure_jump_(exclusive, loop and smart). Also fix the comment
3800 for (start|stop)_memory since they now only take one argument (the
3801 second has becomes unnecessary).
3802 (print_partial_compiled_pattern): Adjust for changes in
3803 re_opcode_t.
3804 (print_compiled_pattern): Use %ld to printf long ints and flush to
3805 make debugging a little easier.
95cd4c40
SM
3806 (union fail_stack_elt): Make the integer unsigned.
3807 (struct fail_stack_type): Add a `frame' element.
3808 (INIT_FAIL_STACK): Init `frame' as well.
3809 (POP_PATTERN_OP): New macro for re_compile_fastmap.
3810 (DEBUG_PUSH, DEBUG_POP): Remove.
3811 (NUM_REG_ITEMS): Remove.
3812 (NUM_NONREG_ITEMS): Adjust.
80460654
GM
3813 (FAILURE_PAT, FAILURE_STR, NEXT_FAILURE_HANDLE)
3814 (TOP_FAILURE_HANDLE): New macros for the cycle detection.
95cd4c40 3815 (ENSURE_FAIL_STACK): New macro for PUSH_FAILURE_(REG|POINT).
80460654
GM
3816 (PUSH_FAILURE_REG, POP_FAILURE_REG, CHECK_INFINITE_LOOP): New
3817 macros.
3818 (PUSH_FAILURE_POINT): Don't push registers any more. The pattern
3819 address pushed is not the destination of the jump but the source
3820 of it instead.
95cd4c40
SM
3821 (NUM_FAILURE_ITEMS): Remove.
3822 (POP_FAILURE_POINT): Adapt to the new stack structure (i.e. pop
80460654
GM
3823 registers before the actual failure point). Don't hardcode any
3824 meaning for str==NULL anymore.
95cd4c40 3825 (union register_info_type, REG_MATCH_NULL_STRING_P, IS_ACTIVE)
80460654
GM
3826 (MATCHED_SOMETHING, EVER_MATCHED_SOMETHING, SET_REGS_MATCHED):
3827 Remove.
95cd4c40
SM
3828 (REG_UNSET_VALUE): Use NULL (why not?).
3829 (compile_range): Remove declaration since it doesn't exist.
3830 (struct compile_stack_elt_t): Remove inner_group_offset.
3831 (old_reg(start|end), reg_info, reg_dummy, reg_info_dummy): Remove.
3832 (regex_grow_registers): Remove dead code.
3833 (FIXUP_ALT_JUMP): New macro.
80460654
GM
3834 (regex_compile): Add shy-groups Change loops to use
3835 on_failure_jump_smart&jump instead of
3836 on_failure_jump&maybe_pop_jump. Change + loops to eliminate the
3837 initial (dummy_failure_)jump. Remove c1_base (looks like unused
3838 variable to me). Use `jump' instead of `jump_past_alt' and don't
3839 bother with push_dummy_failure in alternatives since it is now
3840 unnecessary. Use FIXUP_ALT_JUMP. Eliminate a useless `#ifdef
3841 emacs' for (re)allocating the stack.
3842 (re_compile_fastmap): Remove dead variables i and num_regs. Exit
3843 from loop when bufp->can_be_null rather than jumping to `done'.
3844 Avoid jumping backwards so as to ensure termination. Use
3845 PATTERN_STACK_EMPTY and POP_PATTERN_OP. Improved handling of
3846 backreferences. Remove dead code in handling of `anychar'.
95cd4c40 3847 (skip_noops, mutually_exclusive_p): New functions taken from the
80460654
GM
3848 handling of `maybe_pop_jump' in re_match_2_internal. Slightly
3849 improve mutually_exclusive_p to handle ".+\n".
3850 (lowest_active_reg, highest_active_reg,
3851 NO_(LOWEST|HIGHEST)_ACTIVE_REG) Remove.
3852 (re_match_2_internal): Use %p instead of 0x%x when printf'ing
3853 ptrs. Don't SET_REGS_MATCHED anymore. Remove many dead
3854 variables. Push register (in `start_memory') on the stack rather
3855 than storing it in old_reg(start|end). Remove the cycle detection
3856 from `stop_memory', replaced by the use of on_failure_jump_loop
3857 for greedy loops. Add code for the new on_failure_jump_<foo>.
3858 Remove ad-hoc code in `on_failure_jump' to push more registers in
3859 the case of a loop. Take out code from `maybe_pop_jump' into
3860 separate functions and adapt it to the semantics of
3861 `on_failure_jump_smart'. Remove jump_past_alt, dummy_failure_jump
3862 and push_dummy_failure. Remove dummy_failure handling and
3863 handling of `failures to jump to on_failure_jump' (this last one
3864 was already dead code, it seems).
3865 (group_match_null_string_p, alt_match_null_string_p)
3866 (common_op_match_null_string_p): Remove.
95cd4c40 3867
7397acc4
DL
38682000-03-08 Dave Love <fx@gnu.org>
3869
3870 * config.in: Don't depend on __STDC__ for volatile.
3871 Add POINTER_TYPE, PTR, PROTOTYPES.
3872
3873 * hftctl.c, strftime.c: Use PROTOTYPES.
3874 * eval.c (find_handler_clause): Likewise.
3875
3876 * mem-limits.h: Use POINTER_TYPE.
3877
3878 * lisp.h (P_): Define based on PROTOTYPES, not __STDC__.
3879 (memory_warnings): Declare using POINTER_TYPE.
3880
5e91ff9e
GM
38812000-03-08 Gerd Moellmann <gerd@gnu.org>
3882
feab4fba
GM
3883 * xfns.c (x_set_cursor_type): If ARG is nil, give frame no cursor.
3884
25edb08f
GM
3885 * xdisp.c (display_echo_area): Temporarily inhibit garbage
3886 collection.
3887
5e91ff9e
GM
3888 * xfns.c: Remove obsolete code in #if 0.
3889 (Fx_focus_frame): New function.
3890
a735b7e1
KH
38912000-03-07 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
3892
3893 * coding.c (coding_category_name): Add coding-category-utf-8,
3894 coding-category-utf-16-be, coding-category-utf-16-le.
3895 (UTF_8_1_OCTET_P, UTF_8_EXTRA_OCTET_P, UTF_8_2_OCTET_LEADING_P,
3896 UTF_8_3_OCTET_LEADING_P, UTF_8_4_OCTET_LEADING_P,
3897 UTF_8_5_OCTET_LEADING_P, UTF_8_6_OCTET_LEADING_P): New macros.
3898 (detect_coding_utf_8): New function.
3899 (UTF_16_INVALID_P, UTF_16_HIGH_SURROGATE_P
3900 UTF_16_LOW_SURROGATE_P): New macros.
3901 (detect_coding_utf_16): New function
3902 (detect_coding_mask): When priorities are specified, skip any
3903 categories that have `nil' coding-system. Fix bug of returning
3904 wrong mask when PRIORITIES is specified and detect_coding_XXX()
3905 returns a mask not set in PRIORITIES.
3906 (detect_eol_type_in_2_octet_form): New function.
3907 (detect_eol): selects detect_eol_type_XXX to call according to
3908 cooding->category_idx.
3909 (detect_coding_system): Remove `nil' coding-system in the result.
3910 (Fupdate_coding_systems_internal): Update all coding-categories.
3911
3912 * coding.h (CODING_CATEGORY_IDX_UTF_8,
3913 CODING_CATEGORY_IDX_UTF_16_BE, CODING_CATEGORY_IDX_UTF_16_LE): New
3914 macros.
3915 (CODING_CATEGORY_IDX_RAW_TEXT, CODING_CATEGORY_IDX_BINARY,
3916 CODING_CATEGORY_IDX_MAX): Adjusted for the above macros.
3917 CODING_CATEGORY_IDX_UTF_16_LE.
3918 (CODING_CATEGORY_MASK_UTF_8, CODING_CATEGORY_MASK_UTF_16_BE,
3919 CODING_CATEGORY_MASK_UTF_16_LE): New macros.
3920 (CODING_CATEGORY_MASK_ANY): Include the above macros.
3921 (CODING_CATEGORY_MASK_UTF_16_BE_LE): New macro.
3922
9994cc69
GM
39232000-03-07 Gerd Moellmann <gerd@gnu.org>
3924
e9b4e5ff
GM
3925 * doc.c (Fdocumentation_property): If value is not a string,
3926 and doesn't refer to etc/DOC, evaluate it to obtain a string.
3927
f7daf1e1
GM
3928 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Don't try to
3929 close the display with XtCloseDisplay. This caused a bus error
3930 on OpenWindows.
3931
9994cc69
GM
3932 * minibuf.c (Fminibuffer_complete): Move point to ZV when input is
3933 complete but not unique.
3934
4336c705
GM
39352000-03-06 Gerd Moellmann <gerd@gnu.org>
3936
18bb0684
GM
3937 * process.c (send_process): Remove local variable `procname' that
3938 might become invalid when a GC happens. Instead, access the
3939 process name slot directly.
3940
4336c705
GM
3941 * xfns.c (x_set_menu_bar_lines_1): Adjust window's orig_top and
3942 orig_height if set.
3943
3944 * frame.c (set_menu_bar_lines_1): Adjust window's orig_top and
3945 orig_height if set.
3946
515d0d0e
EZ
39472000-03-06 Eli Zaretskii <eliz@is.elta.co.il>
3948
3949 * msdos.c (IT_note_mouse_highlight): Return immediately if frame's
3950 glyph matrices have been freed.
3951
100b3cbb
GM
39522000-03-05 Gerd Moellmann <gerd@gnu.org>
3953
50df5e5a 3954 * Makefile.in (tags): Include ../lwlib/TAGS in TAGS.
6178bc23 3955 (bootstrap-temacs): Set LC_ALL to C like for temacs.
50df5e5a
GM
3956
3957 * xfns.c (QCdata): Moved to xdisp.c.
3958
3959 * xdisp.c (QCdata): Moved here from xfns.c.
3960 (syms_of_xdisp): Initialize QCdata.
3961
3962 * frame.h (FRAME_INTERNAL_BORDER_WIDTH) [!HAVE_X_WINDOWS]: Define.
3963
3964 * window.c (coordinates_in_window): Use
3965 FRAME_INTERNAL_BORDER_WIDTH_SAFE instead of
3966 FRAME_INTERNAL_BORDER_WIDTH.
3967
100b3cbb 3968 * xdisp.c (try_window_id): Recompute unchanged information if
4336c705 3969 it is obviously invalid.
100b3cbb
GM
3970
3971 * xterm.c (x_term_init): Create a colormap if not using the
3972 default visual.
3973
3974 * xterm.h (select_visual): Change prototype.
3975
3976 * xfns.c (select_visual): Rewritten. Recognize user-specified
3977 visual classes.
3978 (visual_classes): New variable.
3979
64d739c4
GM
39802000-03-04 Gerd Moellmann <gerd@gnu.org>
3981
3982 * xfns.c (x_defined_color, x_set_mouse_color, lookup_rgb_color)
3983 (lookup_pixel_color, x_laplace, x_build_heuristic_mask)
3984 (png_load): Access colormap of frame using FRAME_X_COLORMAP.
3985 (x_decode_color): Don't handle allocation of white and black
3986 specially.
3987 (x_window) [USE_X_TOOLKIT]: Set XtNvisual, XtNdepth, and
3988 XtNcolormap resources.
3989 (x_window) [!USE_X_TOOLKIT]: Pass colormap to XCreateWindow.
3990 (Fx_create_frame): Initialize color members of x_output structure.
3991 (xpm_load): Pass colormap to XPM lib.
3992
3993 * xfaces.c (x_free_colors): Access colormap of frame using
3994 FRAME_X_COLORMAP. Be paranoid about freeing black and white
3995 when default colormap is used.
3996
3997 * xterm.c (x_term_init): Set Colormap member of x_display_info
3998 structure. Copy colormap if resource `privateColormap' is
3999 specified (PseudoColor only).
4000 (x_setup_relief_color): Access colormap of frame using
4001 FRAME_X_COLORMAP.
4002
4003 * xterm.h (struct x_display_info): Add Colormap member `cmap'.
4004 (FRAME_X_COLORMAP, FRAME_X_VISUAL): New macros.
4005
c3cee013
JR
40062000-03-04 Jason Rumney <jasonr@gnu.org>
4007
4008 * xfaces.c Change many FRAME_X... macros to FRAME_WINDOW... or
4009 other non-platform-specific equivalents.
64d739c4 4010 [WINDOWSNT]: Include w32term.h, fontset.h and define X
c3cee013
JR
4011 specific functions and macros as their w32 equivalents where
4012 non-platform-specifics are not available.
4013 [HAVE_X_WINDOWS]: Change most of these to HAVE_WINDOW_SYSTEM.
4014 (x_create_gc, x_free_gc) [WINDOWSNT]: Add W32 versions.
4015 (clear_font_table) [WINDOWSNT]: Call w32_unload_font.
4016 (frame_update_line_height): Use macros to access f->output_data.
4017 (defined_color): Remove FIXME comments; fixed.
4018 (x_face_list_fonts, prepare_face_for_display): Put X specifics
4019 into #ifdef blocks. Add WINDOWSNT blocks.
4020 (Fx_list_fonts): Use macros for accessing font data.
4021 (set_lface_from_font_name): Different default fonts for X and
4022 WINDOWSNT.
4023 (font_scalable_p) [WINDOWSNT]: Treat wildcard XLFD_AVGWIDTH as
4024 scalable for backward compatibility.
64d739c4 4025 (realize_tty_face) [MSDOS]: Do the same for WINDOWSNT.
c3cee013
JR
4026 (syms_of_xfaces) [WINDOWSNT]: Allow scalable fonts by default.
4027
64d739c4 4028 * emacs.c (main) [HAVE_NTGUI]: Call syms_of_xfaces instead of
c3cee013
JR
4029 syms_of_w32faces.
4030
4031 * makefile.nt (w32faces.obj): Remove.
4032 (xfaces.obj): Add.
4033
807cc41c
JR
40342000-03-03 Jason Rumney <jasonr@gnu.org>
4035
4036 * keyboard.c (make_lispy_event): Call buffer_posn_from_coords with
4037 correct parameters.
4038
0007072a
KR
40392000-03-03 Ken Raeburn <raeburn@gnu.org>
4040
4041 * unexelf.c (PT_LOAD, SHT_*, SHN_*) [__NetBSD__]: Only provide
4042 standard ELF definitions here if the system header does not.
4043
71a6ba55
GM
40442000-03-03 Gerd Moellmann <gerd@gnu.org>
4045
4046 * xterm.c (PER_CHAR_METRIC): Removed.
4047 (x_per_char_metric_1, x_default_char): New functions.
4048 (x_per_char_metric): If font's default char is invalid, return
4049 metrics of a suitably chosen usable default char.
4050 (x_draw_glyph_string_foreground): If font has an invalid default
64d739c4
GM
4051 char, replace occurrences of unprintable chars with a suitably
4052 chosen usable default char.
71a6ba55 4053
900fa1f1
GM
40542000-03-02 Gerd Moellmann <gerd@gnu.org>
4055
42f55fe0
GM
4056 * xterm.c (note_mouse_highlight): Return quickly if frame's
4057 glyph matrices have been freed.
4058
4059 * dispnew.c (free_glyphs): Block input while freeing matrices.
4060
900fa1f1
GM
4061 * xfns.c (x_clear_image, x_kill_gs_process): Use x_free_colors.
4062
4063 * xterm.c (x_alloc_lighter_color, x_setup_relief_color): Use
4064 x_free_colors.
4065
4066 * dispextern.h (x_free_colors): Add prototype.
4067
4068 * xfaces.c (x_free_colors): New function.
4069 (unload_color, free_face_colors): Use it.
4070
2f950292
EZ
40712000-03-02 Eli Zaretskii <eliz@is.elta.co.il>
4072
4073 * msdos.h (FRAME_INTERNAL_BORDER_WIDTH): Define to zero.
4074
4075 * window.c [MSDOS]: Include msdos.h.
4076
54d04320
DL
40772000-03-02 Dave Love <fx@gnu.org>
4078
4079 * m/powerpcle.h, m/sparc.h: Don't set C_OPTIMIZE_SWITCH.
4080
4081 * m/mips-siemens.h, m/news-r6.h, m/news-risc.h, m/tekxd88.h: Don't
4082 set C_OPTIMIZE_SWITCH for gcc.
4083
0ba93ac4
KH
40842000-03-02 Kenichi Handa <handa@etl.go.jp>
4085
4086 * coding.c (coding_save_composition): Be sure to allocate
4087 composition data area in coding even if there's no composition in
4088 the current run.
4089
a2bc11d4
JR
40902000-03-01 Jason Rumney <jasonr@gnu.org>
4091
4092 * w32term.c: Equivalent changes to those made to xterm.c on
4093 2000-02-25 and 2000-02-24.
4094
4095 * w32fns.c: Equivalent changes to those made to xfns.c on
4096 2000-02-25 and 2000-02-21.
4097
4098 * sysdep.c: [WINDOWSNT]: Use sys_read and sys_write to ensure
4099 correct line-end convention is followed.
4100
4101 * w32menu.c [HAVE_BOXES]: Remove #undef.
4102 (single_keymap_panes): Remove code for simulating checkmarks.
4103 (single_menu_item): Remove notbuttons_ptr argument. Callers changed.
4104 Remove code for drawing simulated checkmarks.
4105 (w32_menu_show): make unibyte help string correctly.
4106 (add_menu_item): draw standard Windows checkmarks. Draw radio
4107 buttons as radio buttons if possible.
4108
72d19d75
GM
41092000-03-01 Gerd Moellmann <gerd@gnu.org>
4110
2df636f4
GM
4111 * sysdep.c (start_of_text): Don't define this function for NetBSD
4112 with ELF.
4113
427ec082 4114 * m/pmax.h (START_FILES, CANNOT_DUMP) [__NetBSD__ || __OpenBSD__]:
2df636f4
GM
4115 Don't define.
4116 (UNEXEC) [__NetBSD__ || __OpenBSD__]: Define to unexelf.o.
4117 (LINKER): Don't undef if __NetBSD__ is defined.
4118
4119 * m/mips.h (LINKER) [__NetBSD__ || __OpenBSD__]: Don't define.
4120
4121 * fileio.c [__NetBSD__]: Define `unix'.
4122
72d19d75
GM
4123 * xfns.c (start_busy_cursor): Allow floats for busy-cursor-delay.
4124
ed4d0512
GM
41252000-02-29 Gerd Moellmann <gerd@gnu.org>
4126
50b1039f
GM
4127 * atimer.c (start_atimer): Don't abort when timers are stopped.
4128 (append_atimer_lists): New function.
4129 (cancel_atimer, stop_other_atimers, run_all_atimers): Handle
4130 arbitrary lists of stopped and running atimers.
4131
ed4d0512
GM
4132 * atimer.c (cancel_atimer): Handle canceling an atimer when
4133 some timers are stopped.
4134
4135 * xfns.c (cancel_busy_cursor): Set busy_cursor_atimer to null
4136 after canceling it.
4137
4138 * fns.c (maybe_resize_hash_table): Handle case of new size
4139 coming out as being the same as old size.
4140
387023ee
JR
41412000-02-27 Jason Rumney <jasonr@gnu.org>
4142
4143 * makefile.nt: Add atimer.h to dependencies.
4144 * w32.c (init_environment): Set Vw32_num_mouse_buttons here.
4145 * w32console.c: Only disable window system features for dispextern.h
4146 (initialize_w32_display): Build a display info for the console.
4147 * w32faces.c (tty_defined_color): Apply xfaces.c change from 02-17.
4148 * w32fns.c (w32_wnd_proc) [WM_LBUTTON_DOWN, WM_RBUTTON_DOWN,
4149 WM_LBUTTON_UP, WM_RBUTTON_UP]: Do not treat 4 or more button mice
4150 as 2 button mice.
4151 * w32gui.h (struct W32FontStruct): Revert last change after change
4152 to xdisp.c.
4153 * w32menu.c (single_submenu): Set up help string.
4154 [!HAVE_MULTILINGUAL_MENU]: Don't overwrite item_name with descrip.
4155 (w32_dialog_show): Set up help string.
4156 * w32term.c (w32_display_info_for_display): Remove unused function.
4157 (w32_draw_bitmap): Use pre-built bitmaps.
4158 (w32_initialize_display_info): New function to initialize parts of
4159 display info that are common to both GUI and console frames.
4160 (w32_term_init): Use w32_initialize_display_info. Do not set
4161 Vw32_num_mouse_buttons here, as it is not called for console
4162 frames. Build bitmaps for indicating truncated lines etc.
4163 (x_delete_display): Destroy pre-built bitmaps.
4164 * xdisp.c (handle_single_display_prop): Use FONT_HEIGHT macro.
4165 (echo_area_display): Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM.
4166
4516715a
DL
41672000-02-27 Dave Love <fx@gnu.org>
4168
4169 * lisp.h: Add a bunch of prototypes.
4170
171ca836
KH
41712000-02-26 Kenichi Handa <handa@etl.go.jp>
4172
4173 * keyboard.c (read_char): Set `usec' correctly.
4174
4013921d
KH
41752000-02-25 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
4176
4177 * ccl.c (ccl_driver) [CCL_MapMultiple]: When the mapped value is
4178 `lambda', set reg[RRR] to the map index.
4179 (ccl_driver) [CCL_MapSingle]: When the mapped value is found, set
4180 reg[RRR] to 0. Otherwise, set it to -1.
4181
9244a058
GM
41822000-02-25 Gerd Moellmann <gerd@gnu.org>
4183
2df636f4 4184 * emacs.c (main): Remove code snippet commented out with `//'.
9244a058 4185
18e21ce8 41862000-02-25 Richard M. Stallman <rms@gnu.org>
427ec082 4187
f43d79c1
GM
4188 * fileio.c (Ffile_symlink_p): If result starts with a `/'
4189 and contains a `:', prepend `/:'.
4190
4191 * window.c (select_window_1): If selected_window is nil,
4192 don't "swap out" the buffer's point.
4193 (Fset_window_configuration): Set selected_window to nil
4194 before calling Fselect_window.
4195 (unshow_buffer): Don't set point in buffer from window's point
4196 if another more recently selected window also shows the buffer.
4197
bed0c171
GM
41982000-02-25 Gerd Moellmann <gerd@gnu.org>
4199
449c3c52
GM
4200 * keyboard.c (recursive_edit_1): Cancel busy-cursor.
4201
f5b58615
GM
4202 * xfns.c (inhibit_busy_cursor, busy_count): Removed.
4203 (Fx_show_busy_cursor, Fx_hide_busy_cursor): Removed.
4204 (busy_cursor_atimer, busy_cursor_shown_p, Vbusy_cursor_delay): New
4205 variables.
4206 (DEFAULT_BUSY_CURSOR_DELAY): New define.
4207 (start_busy_cursor, cancel_busy_cursor, show_busy_cursor)
4208 (hide_busy_cursor): New functions.
4209 (syms_of_xfns): DEFVAR_LISP Vbusy_cursor_delay.
4210
4211 * minibuf.c (read_minibuf): Cancel busy-cursor.
4212
4213 * keyboard.c (command_loop_1): Call start_busy_cursor before
4214 Fcommand_execute and cancel_busy_cursor after it.
4215 (timer_check): Remove busy-cursor code.
4216 (Fread_key_sequence, Fread_key_sequence_vector): Start/cancel busy
4217 cursor timer.
4218
4219 * process.c (wait_reading_process_input): Remove busy-cursor code.
4220
4221 * eval.c (Fsignal): Call cancel_busy_cursor instead of
4222 Fx_hide_busy_cursor.
4223
4224 * dispextern.h (Fx_show_busy_cursor, Fx_hide_busy_cursor):
4225 Remove prototyoes.
4226 (start_busy_cursor, cancel_busy_cursor): Add prototypes.
4227
4228 * lisp.h (Fx_hide_busy_cursor): Remove prototype.
4229
4230 * xterm.c (XTread_socket): Remove busy-cursor code.
4231
4eb8436f
GM
4232 * dispnew.c (flush_stdout) [GLYPH_DEBUG]: New function.
4233 (build_frame_matrix_from_leaf_window): Put code handling
4234 glyph row's not being a slice of a frame row in #if 0.
4235 (sync_window_with_frame_matrix_rows): New function.
4236 (frame_row_to_window): New function.
4237 (mirror_line_dance): Handle copies between windows.
4238
3cb65b0e
GM
4239 * lread.c (Fload): Use `xfree' instead of `free'.
4240 (init_obarray): Use `xmalloc' instead of `malloc'.
4241
bed0c171
GM
4242 * window.c (Fset_window_buffer): Set WINDOW to the window
4243 after decoding.
2add4349
GM
4244 (coordinates_in_window): Take frame's internal border width
4245 into account.
bed0c171 4246
42088c12
GM
42472000-02-24 Gerd Moellmann <gerd@gnu.org>
4248
4249 * xterm.c (x_display_and_set_cursor): Display cursor of
4250 non-selected windows depending on the setting of
4251 cursor_in_non_selected_windows.
4252
4253 * xdisp.c (cursor_in_non_selected_windows): New variable.
4254 (syms_of_xdisp): DEFVAR_BOOL it.
4255
d1e103b2
GM
42562000-02-23 Gerd Moellmann <gerd@gnu.org>
4257
723e779c
GM
4258 * data.c (Fstring_to_number): If number is greater than what
4259 fits into an integer, return a float.
4260
d1e103b2
GM
4261 * eval.c (specbind): Remove references to
4262 keyword_symbols_constant_flag.
4263
4264 * data.c (keyword_symbols_constant_flag): Removed.
4265 (Fmakunbound, set_internal, syms_of_data): Remove references to
4266 keyword_symbols_constant_flag.
4267
4268 * bytecode.c (Fbyte_code): Remove keyword_symbols_constant_flag.
4269
214f877f
KH
42702000-02-23 Kenichi Handa <handa@etl.go.jp>
4271
4272 * syntax.c (multibyte_syntax_as_symbol): New variable.
4273 (syms_of_syntax): Declare it as a Lisp variable.
4274 (SYNTAX_WITH_MULTIBYTE_CHECK): New macro.
4275 (scan_lists): If both sexpflag and multibyte_syntax_as_symbol are
4276 nonzero, treat all multibyte characters as symbol.
42088c12 4277 (init_syntax_once): Give syntax `word' to all multibyte
214f877f
KH
4278 characters.
4279
130adcb7
EZ
42802000-02-22 Eli Zaretskii <eliz@is.elta.co.il>
4281
3cb65b0e 4282 * frame.c (Fdelete_frame): Don't let echo_area_window remain on
d7d0dac0 4283 a deleted frame.
130adcb7 4284
17cbbf95
GM
42852000-02-21 Gerd Moellmann <gerd@gnu.org>
4286
4287 * frame.c (Fmouse_position): GCPRO retval instead of x and y.
4288
4289 * xfns.c (x_window_to_frame, x_any_window_to_frame)
4290 (x_non_menubar_window_to_frame): Check the busy-cursor window.
4291
beb0bc36
DL
42922000-02-21 Dave Love <fx@gnu.org>
4293
4294 * frame.c (Vmouse_position_function): New variable.
4295 (Fmouse_position): Use it.
4296 (syms_of_frame): Install it.
4297
4298 * charset.c (find_charset_in_str): Fix use of `c' instead of `c1'.
4299
1d92afcd
GM
43002000-02-20 Gerd Moellmann <gerd@gnu.org>
4301
4302 * fileio.c (Finsert_file_contents): Unbind the binding of
4303 standard-output done by temp_output_buffer_setup.
329eed9f
GM
4304
4305 * eval.c (funcall_lambda): Don't bind Qmocklisp_arguments unless
4306 Vmocklisp_arguments is nil. Inline Fcar and Fcdr.
4307 (specbind, unbind_to): Handle most common case of non-constant
4308 symbol with trivial value specially.
4309
4310 * bytecode.c (Fbyte_code) <Bvarset>: Inline most common case.
4311
18e21ce8 43122000-02-20 Richard M. Stallman <rms@gnu.org>
2d06696f
RS
4313
4314 * data.c (Fmake_variable_buffer_local): Doc fix.
4315 Init found_for_buffer to 0.
4316 (Fmake_variable_frame_local): If the variable has already
4317 been buffer-local, set the check_frame field.
4318
1d4311c3
EZ
43192000-02-20 Eli Zaretskii <eliz@is.elta.co.il>
4320
4321 * msdos.c (IT_write_glyphs): Allocate a larger screen_buf as data
4322 produced for CODING_MODE_LAST_BLOCK requires.
4323
2dc95ddd
DL
43242000-02-18 Dave Love <fx@gnu.org>
4325
4326 * keyboard.c (echo_keystrokes): Remove declaration.
4327 (Vecho_keystrokes) New variable.
4328 (read_char, record_menu_key, read_key_sequence): Use it to allow
4329 use of float value.
4330 (syms_of_keyboard): Change Vecho_keystrokes declaration.
4331
4332 * lread.c: Undef feature selection macros before defining.
4333
f0930f35
GM
43342000-02-18 Gerd Moellmann <gerd@gnu.org>
4335
4336 * data.c (let_shadows_buffer_binding_p): Ignore specbindings
4337 for symbols other than the symbol in question.
4338
e3d4de90
DL
43392000-02-17 Dave Love <fx@gnu.org>
4340
4341 * s/sol2.h (C_DEBUG_SWITCH): Define to allow optimization.
4342
0b378936
GM
43432000-02-17 Gerd Moellmann <gerd@gnu.org>
4344
d621caf7
GM
4345 * emacs.c (main): Use #if GC_MARK_STACK instead of #ifdef.
4346
0b378936
GM
4347 * alloc.c (enum mem_type): Compile unconditionally.
4348
3b451f74
EZ
43492000-02-17 Eli Zaretskii <eliz@is.elta.co.il>
4350
4351 * xfaces.c (tty_defined_color): Don't return faulire indication
4352 for unspecified-fg and unspecified-bg pseudo-colors.
4353
10689a01
GM
43542000-02-17 Gerd Moellmann <gerd@gnu.org>
4355
1216f5e4
GM
4356 * alloc.c (mark_object): Don't mark symbol names in pure space.
4357 (gc_sweep): Don't unmark symbol names in pure space.
4358
4359 * lisp.h (GC_USE_GCPROS_AS_BEFORE, GC_MAKE_GCPROS_NOOPS)
4360 (GC_MARK_STACK_CHECK_GCPROS, GC_USE_GCPROS_CHECK_ZOMBIES)
4361 [GC_MARK_STACK]: New defines.
427ec082 4362 (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5, UNGCPRO)
1216f5e4
GM
4363 [GC_MARK_STACK == GC_MAKE_GCPROS_NOOPS]: Define as no-ops.
4364
4365 * emacs.c (main) [GC_MARK_STACK]: Initialize stack_base.
4366
4367 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use
4368 allocate_buffer instead of xmalloc.
4369
4370 * alloc.c (toplevel): Include setjmp.h.
4371 (PURE_POINTER_P): New define.
4372 (enum mem_type) [GC_MARK_STACK]: New enumeration.
4373 (Vdead) [GC_MARK_STACK]: New variable.
4374 (lisp_malloc): Add parameter TYPE, call mem_insert if
4375 GC_MARK_STACK is defined.
4376 (allocate_buffer): New function.
427ec082 4377 (lisp_free) [GC_MARK_STACK]: Call mem_delete.
1216f5e4
GM
4378 (free_float) [GC_MARK_STACK]: Set type to Vdead.
4379 (free_cons) [GC_MARK_STACK]: Set car to Vdead.
4380 (stack_base, mem_root, mem_z) [GC_MARK_STACK]: New variables.
4381 (MEM_NIL) [GC_MARK_STACK]: New define.
4382 (struct mem_node) [GC_MARK_STACK]: New structure.
4383 (mem_init, mem_find, mem_insert, mem_delete, mem_insert_fixup)
4384 (mem_delete_fixup, mem_rotate_left, mem_rotate_right)
4385 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
4386 (live_misc_p, live_vector_p, live_buffer_p, mark_memory)
4387 (mark_stack) [GC_MARK_STACK]: New functions.
4388 (Fgarbage_collect) [GC_MARK_STACK]: Call mark_stack.
4389 (clear_marks): Removed.
4390 (gc_sweep): Set free conses' car, free floats' type, free
4391 symbols' function to Vdead. Use lisp_free to free buffers.
4392 (init_alloc_once): Initialize Vdead.
4393 (survives_gc_p): Return non-zero for pure objects.
4394
4395 * alloc.c: Add comments throughout the file.
4396
2503c8b1
GM
4397 * atimer.c (stop_other_atimers): Don't call cancel_atimer because
4398 that unblocks alarms.
4399
8389e1e2
GM
4400 * alloc.c, bytecode.c, data.c, dispnew.c, ecrt0.c, editfns.c,
4401 emacs.c, floatfns.c, fns.c, lread.c, print.c, config.in, lisp.h,
4402 Makefile.in: Remove `LISP_FLOAT_TYPE' and `standalone'.
4403
10689a01 4404 * frame.c (make_frame): Set frame initiallly to `garbaged'.
427ec082 4405
bfc17d18
KH
44062000-02-17 Kenichi Handa <handa@etl.go.jp>
4407
4a09dee0
KH
4408 * xdisp.c (decode_mode_spec_coding): Delete superfluous code to
4409 avoid infinite error signaling. Allocate sufficient memory for
4410 eol_str in the case that eoltype is Lisp_Int.
bfc17d18 4411
2b927d02
SM
44122000-02-17 Stefan Monnier <monnier@cs.yale.edu>
4413
4414 * syntax.c (Fforward_comment): Undo the previous change, since cc-mode
4415 depends on the previous behavior.
4416
b49cb764
GM
44172000-02-16 Gerd Moellmann <gerd@gnu.org>
4418
4419 * sysdep.c (vfork) [!HAVE_VFORK]: Removed.
4420
99e95407
GM
44212000-02-15 Gerd Moellmann <gerd@gnu.org>
4422
4423 * s/freebsd.h (BROKEN_PTY_READ_AFTER_EAGAIN): Define.
4424
4425 * process.c (send_process) [BROKEN_PTY_READ_AFTER_EAGAIN]:
b49cb764 4426 Workaround for FreeBSD bug. Clear output queue after EAGAIN in
99e95407
GM
4427 write(2).
4428
6ffd3cf7
RS
44292000-02-15 Richard M. Stallman <rms@gnu.org>
4430
4431 * data.c (set_internal): Don't make variable buffer-local
4432 if within a let-binding for the same buffer.
4433 (let_shadows_buffer_binding_p): New function.
4434
4435 * eval.c (specbind): For buffer-local value,
4436 record the current buffer also.
4437 (unbind_to): Cope with that change.
4438
cad53475
GM
44392000-02-15 Gerd Moellmann <gerd@gnu.org>
4440
4441 * window.c (Fsave_window_excursion): Doc fix.
4442
1aa963c8
SM
44432000-02-15 Stefan Monnier <monnier@cs.yale.edu>
4444
4445 * syntax.c (back_comment): Make sure we only consider comment-starters
4446 of the relevant style and return -1 in case of a failure to find the
4447 beginning of the comment.
4448 (Fforward_comment): If back_comment fails, go back to the position just
4449 after the comment-end.
4450 (scan_lists): Add comment describing a very minor bug.
4451
b9b84fd3
SM
44522000-02-14 Stefan Monnier <monnier@cs.yale.edu>
4453
4454 * minibuf.c (Ftry_completion, Fall_completions): Add a reference to
4455 `completion-regexp-list' in the docstring.
4456
3a28db80
DL
44572000-02-14 Dave Love <fx@gnu.org>
4458
4459 * xfaces.c (tty_defined_color): Declare color_idx unsigned long.
4460
fb4a568d
SM
44612000-02-14 Stefan Monnier <monnier@cs.yale.edu>
4462
4463 * regex.h (RE_SYNTAX_EMACS): Add RE_CHAR_CLASSES and RE_INTERVALS
4464 to Emacs' syntax. Also fix the comment about set/not-set meanings
4465 since Emacs syntax is not the value 0 any more.
4466 * search.c (compile_pattern_1): Remove RE_CHAR_CLASSES from the syntax
4467 since it's now part of RE_SYNTAX_EMACS.
4468
1063ebb5
DL
44692000-02-12 Dave Love <fx@gnu.org>
4470
4471 * frame.h (SELECTED_FRAME): Use NULL, not 0 to avoid warnings on
4472 Alpha.
4473
fb07a302
GM
44742000-02-12 Gerd Moellmann <gerd@gnu.org>
4475
4476 * xdisp.c (syms_of_xdisp): Doc fix for scroll-conservatively.
4477
aaf2320c
DL
44782000-02-12 Dave Love <fx@gnu.org>
4479
4480 * s/aix3-2.h, s/osf-1.h: Define C_DEBUG_SWITCH for non-gcc.
4481
4482 * s/ux4800.h, s/umips.h, s/umax.h, s/sol2.h, s/sco5.h, s/rtu.h:
fb07a302
GM
4483 * s/ptx4.h, s/umax.h, s/dgux.h, s/bsd4-2.h, s/bsd4-3.h:
4484 * s/hpux.h: Don't define HAVE_VFORK.
aaf2320c
DL
4485
4486 * s/gnu-linux.h: Don't define HAVE_VFORK or HAVE_SYS_SIGLIST.
4487
4488 * s/nextstep.h: Don't define HAVE_ALLOCA.
4489
4490 * config.in: Add vfork bits.
4491
eedf8bde
GM
44922000-02-12 Gerd Moellmann <gerd@gnu.org>
4493
4494 * process.c (Fopen_network_stream) [POLL_FOR_INPUT]: Register
4495 unwind function to undo the effect of stopping atimers.
4496
4497 * keyboard.c (bind_polling_period): Stop all timers except
4498 poll_timer.
4499
4500 * atimer.c (stopped_atimers): New variable.
4501 (stop_other_atimers, run_all_atimers, unwind_stop_other_atimers):
4502 New functions.
4503
4504 * atimer.h (stop_other_atimers, run_all_atimers)
4505 (unwind_stop_other_atimers): Add function prototypes.
427ec082 4506
eedf8bde
GM
4507 * s/hpux10.h (HAVE_XRMSETDATABASE): Define if not already defined.
4508
8476c2f8
KR
45092000-02-11 Ken Raeburn <raeburn@gnu.org>
4510
4511 * Makefile.in (LIBX): Link in tiff library before jpeg, since tiff
4512 library may depend on jpeg.
4513 (atimer.o): Depends on atimer.c.
4514
0e85e4a3
KH
45152000-02-11 Kenichi Handa <handa@etl.go.jp>
4516
4517 * insdel.c (del_range_1): Call update_compositions.
4518 (del_range_both): Call update_compositions just once..
4519
97fa0cc8
DL
45202000-02-10 Dave Love <fx@gnu.org>
4521
4522 * xfns.c (create_frame_xic): Fix initialization of automatic
4523 aggregates for pcc.
4524
25566a3c
KH
45252000-02-09 Kenichi Handa <handa@etl.go.jp>
4526
4527 * ccl.c (CCL_MAKE_CHAR): New macro.
4528 (ccl_driver) <CCL_TranslateCharacter>: Check the validity of
4529 registers by CCL_MAKE_CHAR before calling translate_char.
4530 <CCL_TranslateCharacterConstTbl> Likewise.
4531
69da54ba
DL
45322000-02-08 Dave Love <fx@gnu.org>
4533
4534 * lread.c (__EXTENSIONS__): Define.
4535
f7136ee8
GM
45362000-02-08 Gerd Moellmann <gerd@gnu.org>
4537
4538 * puresize.h (BASE_PURESIZE): Increase to 650000.
4539
7768790b
EZ
45402000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
4541
4542 * msdos.c (XMenuActivate): Turn off the cursor after displaying
4543 the help message.
4544
38fd211b
EZ
45452000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
4546
4547 * s/msdos.h (INTERNAL_TERMINAL): Add capabilities se, so, us, ue,
4548 md, mh, mb, mr, and me to the fake termcap entry.
4549
66e4690f
KR
45502000-02-06 Ken Raeburn <raeburn@gnu.org>
4551
4552 * sound.c (sound_cleanup): Don't call device close routine if the
4553 function pointer is null.
4554
a75dfea0
AI
45552000-02-06 Andrew Innes <andrewi@gnu.org>
4556
4557 * dispextern.h: Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM,
4558 around image definitions and prototypes.
4559 (gamma_correct) [WINDOWSNT]: New prototype.
4560
4561 * w32term.c (x_make_frame_visible): Replace call to
4562 input_poll_signal with poll_for_input.
4563
4564 * window.c [WINDOWSNT]: Include w32term.h.
4565
4566 * xdisp.c [WINDOWSNT]: Include w32term.h.
4567
4568 * makefile.nt: Add dependencies on w32gui.h.
4569 (OBJ1): Include atimer.obj.
4570 ($(BLD)\atimer.obj): New dependency rule.
4571
4572 * w32.c (sigmask): New function (does nothing).
4573 (sigunblock): Ditto.
4574
4575 * frame.c [WINDOWSNT]: Include w32term.h.
4576
4577 * w32gui.h (struct W32FontStruct): Add ascent and descent slots.
4578
4579 * lread.c (syms_of_lread): Fix literal newlines.
4580
4581 * emacs.c (USAGE): Split into USAGE1 and USAGE2, to work-around
4582 the string constant limit (2048 bytes) in MSVC.
4583 (main): Ditto.
4584
59ddecde
GM
45852000-02-05 INOUE Seiichiro <inoue@ainet.or.jp>
4586
4587 * xterm.c (x_display_and_set_cursor) [HAVE_X_I18N]: Set pre-edit
4588 area.
4589 (x_display_cursor) [HAVE_X_I18N]: Don't set it here.
4590 (XTread_socket) [HAVE_X_I18N]: <KeyPress, KeyRelease>: Don't
4591 dispatch the event.
4592
07590973
DL
45932000-02-04 Dave Love <fx@gnu.org>
4594
4595 * fileio.c: Remove some unused vars.
4596 (_GNU_SOURCE): Define (for euidaccess).
4597
4598 * lread.c (_XOPEN_SOURCE): Declare (for ftello).
4599
4600 * minibuf.c (read_minibuf_noninteractive): Remove undeclared
4601 gcpro1, gcpro2.
4602 (read_minibuf): Deal with allow_props correctly.
4603
649351f9
EZ
46042000-02-03 Eli Zaretskii <eliz@is.elta.co.il>
4605
4606 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Enlarge to 60000.
4607
66e4690f 46082000-02-03 Ken Raeburn <raeburn@gnu.org>
f1b9c7c1
KR
4609
4610 * search.c (compile_pattern): If a cache entry has a nil regexp,
4611 fill in that entry instead of clobbering a previously cached
4612 string regexp.
4613
66e4690f 46142000-02-02 Ken Raeburn <raeburn@gnu.org>
15c9cf81
KR
4615
4616 * puresize.h (BASE_PURESIZE): Increase to 610000.
4617
d240a249
GM
46182000-02-02 Gerd Moellmann <gerd@gnu.org>
4619
4620 * frame.c (Fframe_parameters): Add GCPRO because tty_color_name
4621 can GC.
4622
ca91fb26
KH
46232000-02-02 Kenichi Handa <handa@etl.go.jp>
4624
25660570
KH
4625 * ccl.c (ccl_driver) <CCL_WriteExprRegister>: Set jump_address
4626 instead of incrementing ic directly.
4627 <CCL_WriteExprConst> Likewise.
4628 <ccl_set_expr>: Set ic to jump_address.
4629
ca91fb26
KH
4630 * fileio.c (e_write): Fix the handling of
4631 CODING_FINISH_INSUFFICIENT_SRC.
4632
2ede9689
DL
46332000-02-01 Dave Love <fx@gnu.org>
4634
4635 * editfns.c (Fpropertize): Doc fix.
4636
4637 * process.c (Fstart_process): Doc fix.
4638
4639 * eval.c: Fix various doc strings not to duplicate information
4640 from help-manyarg-func-alist.
4641
4642 * window.c (Fset_window_margins): Don't make interactive. Doc
4643 fix.
4644
4645 * doc.c (Vhelp_manyarg_func_alist): New variable.
4646 (Fdocumentation): Use it.
4647 (syms_of_doc): Define it.
4648
b6680a0e
GM
46492000-01-31 Gerd Moellmann <gerd@gnu.org>
4650
2cb750ba
GM
4651 * xterm.c (xim_open_dpy): Remove unused local variable.
4652
74e9213b
GM
4653 * emacs.c (USAGE): Use term `display options' instead of `X
4654 options'.
4655
4656 * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: New function.
4657 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
4658
b6680a0e
GM
4659 * fns.c (sweep_weak_table): New function.
4660 (sweep_weak_hash_tables): Use it. Keep on marking until there
4661 is no more change.
4662
994c5afe
GM
46632000-01-30 Gerd Moellmann <gerd@gnu.org>
4664
4665 * xterm.c (x_delete_display): Update next_noop_dpyinfo to ensure
4666 that XTread_socket does not crash by trying to call XNoOp on a
4667 closed display.
427ec082 4668
f00276e3
JR
46692000-01-30 Jason Rumney <jasonr@gnu.org>
4670
4671 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
4672 Change selected_frame to SELECTED_FRAME ().
4673 (w32_console_mouse_position): Remove #ifndef MULE from around
4674 `insist' parameter.
4675
4676 * makefile.nt: Remove dosfns.obj.
4677
4678 * term.c (term_init) [WINDOWSNT]: Initialize TN_max_colors.
4679
4680 * w32fns.c (w32_defined_color): Check for valid frame before
4681 applying gamma correction. Eliminate dependency on frame elsewhere.
4682 (w32_load_system_font): Switch FIXED_PITCH and VARIABLE_PITCH.
4683 (w32_to_x_font): Use resx and resy not height_in and width_in.
4684 (x_to_w32_font): Doc fix.
4685 (xlfd_strip_height): New function to strip and return font height.
4686 (w32_font_match): Compare height separately from rest of xlfd
4687 spec, using xlfd_strip_height.
4688
4689 * w32term.c (w32_term_init): Swap resx and height_in, resy and
4690 width_in. Use w32_defined_color in place of defined_color.
4691
4692 * w32faces.c: Merge more of DOS and X specifics in preparation for
4693 merge with xfaces.c.
4694 (defined_color): Remove FIXME comment.
4695 (tty_color_name): Provide w32-specific function.
4696 (realize_tty_face): Handle FACE_TTY_DEFAULT*_COLOR specially.
4697
4698 * w32console.c (turn_on_face, turn_off_face): Removed.
4699 (w32_face_attributes): New function.
4700 (Global_variables): Reduce scope where possible.
4701 (clear_frame, ins_del_lines, scroll_line): Use char_attr_normal as
4702 fill attribute.
4703 (hl_mode): Don't modify text attributes.
4704 (write_glyphs): Don't do anything if len <= 0. Use
4705 w32_face_attributes to get attributes for drawing. Write
4706 terminating codes using char_attr_normal.
4707 (reset_terminal_modes, set_terminal_modes): Turn off highlight.
4708 (update_begin, update_end): Likewise.
4709 (vga_stdcolor_name): New function.
4710 (initialize_w32_display): Remove char_attr_reverse and char_attr.
4711 (Fset_screen_color): Remove char_attr_reverse.
4712
b08e8bb2
GM
47132000-01-29 Gerd Moellmann <gerd@gnu.org>
4714
4715 * xfns.c (xic_set_preeditarea): Take window parameter and
4716 window-relative pixel-positions.
4717
4718 * xterm.c (x_display_cursor): Set XIC pre-edit area only if window
4719 is its frame's selected window.
4720 (xim_instantiate_callback): Likewise.
4721
4722 * xfns.c (x_create_im): Removed.
4723 (DEFAULT_STYLE, DEFAULT_FONT): Removed.
4724 (supported_xim_styles): Renamed from supported_styles.
4725 (best_xim_style): Renamed from best_style.
4726 (create_frame_xic): Renamed from xic_create_frame.
4727 (free_frame_xic): Renamed from xic_destroy_frame.
427ec082 4728
b08e8bb2
GM
47292000-01-29 INOUE Seiichiro <inoue@ainet.or.jp>
4730
4731 * xterm.c (XTread_socket) [HAVE_X_I18N]: If event is for none of
4732 our frames, call XFilterEvent with 2nd parameter `None'.
4733 (XTread_socket) <KeyPress> [HAVE_X_I18N]: Handle XmbLookupString
4734 returning XBufferOverflow.
4735 (XTread_socket) <ConfigureNotify> [HAVE_X_I18N]: Set XIC status
4736 area.
4737 (x_display_cursor) [HAVE_X_I18N]: Set XIC pre-edit area.
4738 (x_new_fontset) [HAVE_X_I18N]: Create XIC status area fontset.
4739 (xim_destroy_callback, xim_open_dpy, xim_instantiate_callback)
4740 (xim_initialize, xim_close)
4741 [HAVE_X_I18N && HAVE_X11R6]: New functions.
4742 (x_destroy_window) [HAVE_X_I18N]: Call xic_destroy_frame.
4743 (x_term_init) [HAVE_X_I18N]: Call xim_initialize.
4744 (x_delete_display) [HAVE_X_I18N]: Call xim_close.
4745
4746 * xterm.h (struct x_display_info) [HAVE_X_I18N]: Add members `xim'
4747 and `xim_styles'.
4748 (struct x_output) [HAVE_X_I18N]: Remove member `xim', add
4749 `xic_style' and `xic_xfs'.
4750 (FRAME_MENUBAR_HEIGHT, FRAME_X_XIM, FRAME_X_XIM_STYLES)
4751 (FRAME_XIC_STYLE, FRAME_XIC_FONTSET): New macros.
4752 (FRAME_XIM): Removed.
4753
4754 * xfns.c (supported_styles): New variable.
4755 (DEFAULT_STYLE, DEFAULT_FONT): New macros
4756 (xic_create_xfontset, best_style, xic_create_frame)
4757 (xic_destroy_frame, xic_set_preeditarea, xic_set_statusarea)
4758 (xic_set_xfontset): New functions.
4759
142e109c
DL
47602000-01-28 Dave Love <fx@gnu.org>
4761
4762 * s/irix6-5.h: Revert last change after change to irix5-0.h.
4763
4764 * m/iris4d.h (C_SWITCH_MACHINE): Don't use -G0.
4765
b02786f9
GM
47662000-01-28 Gerd Moellmann <gerd@gnu.org>
4767
d060bc9f
GM
4768 * buffer.c (Fother_buffer): Don't call Fset_buffer_major_mode
4769 for *scratch* if it already existed.
4770
b02786f9
GM
4771 * emacs.c (USAGE): New macro.
4772 (main): Use it to display usage information.
4773
2c52d7e4
EZ
47742000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
4775
4776 Support for the menu-help feature:
4777
4778 * msdos.h: Change prototypes of XMenuAddSelection and
4779 XMenuActivate.
4780
4781 * msdos.c (IT_clear_end_of_line): Print the extent of the cleared
4782 part of the line to the termscript file.
4783 (IT_clear_to_end): Clear the entire line, not just its beginning.
4784 (menu_help_message, prev_menu_help_message): New variables.
4785 (IT_menu_make_room): Make room for the help_text member.
4786 (IT_menu_display): New argument disp_help; all callers changed.
4787 If disp_help is non-zero, store the help text of the active menu
4788 item in menu_help_message.
4789 (XMenuAddPane): Initialize the help_text member to NULL.
4790 (XMenuAddSelection): New argument help_text. Store it in the
4791 XMenu structure.
4792 (XMenuActivate): New argument help_callback. If the value of
4793 menu_help_message has changed since the last time, display the
4794 menu help message text while waiting for the mouse to move. Clear
4795 the echo area before exiting.
4796 (XMenuDestroy): Free the help_text member.
4797
ffe0bcd1
GM
47982000-01-27 Gerd Moellmann <gerd@gnu.org>
4799
4800 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT]: Pass help to
4801 XMenuAddSelection. Pass help callback to XMenuActivate.
4802 (menu_help_callback) [!USE_X_TOOLKIT]: New function.
4803
50dbd23f
EZ
48042000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
4805
4806 * atimer.c (start_atimer) [!HAVE_SETITIMER]: Use EMACS_SET_SECS
4807 and EMACS_SET_USECS.
4808
f5941bf8
GM
48092000-01-26 Dave Love <fx@gnu.org>
4810
6c67ddee
DL
4811 * editfns.c (Fchar_after, Fchar_before): Doc fix.
4812
f5941bf8
GM
4813 * bytecode.c (Fbyte_code): Use {BEFORE,AFTER}_POTENTIAL_GC where
4814 an error may be signalled.
4815
9e49c990
GM
48162000-01-26 Gerd Moellmann <gerd@gnu.org>
4817
fc3cb460
GM
4818 * s/irix6-5.h [__GNUC__ && __GNUC_MINOR__ >= 95]: Undef
4819 LD_SWITCH_SYSTEM inherited from irix5-0.h.
4820
9e49c990
GM
4821 * bytecode.c (Fbyte_code) [BYTE_CODE_SAFE]: Fix typo.
4822
d0c037d8
GM
48232000-01-25 Gerd Moellmann <gerd@gnu.org>
4824
4825 * charset.c (Fstring): If there is a multibyte char among
4826 the args, always return a multibyte string.
4827
e12489f9
GM
48282000-01-25 Gerd Moellmann <gerd@gnu.org>
4829
4830 * sysdep.c (sys_select): Turn atimers off and on instead of
4831 recording and restoring old alarm handler
4832
4833 * process.c (toplevel): Include atimer.h.
4834 (create_process_1): Rewritten.
4835 (create_process): Use atimers instead of alarm.
4836 (wait_reading_process_input) [hpux]: Turn atimers off instead
4837 of turning off SIGALRM.
4838 (wait_reading_process_input): Turn off atimers instead off
4839 calling stop_polling.
4840
4841 * emacs.c (main): Call init_atimer.
4842
4843 * keyboard.c (toplevel): Include systime.h and atimer.h.
4844 (polling_for_input): Removed because unused.
4845 (input_poll_signal) [POLL_FOR_INPUT]: Removed.
4846 (poll_timer): New variable.
4847 (poll_for_input, poll_for_input_1): New functions.
4848 (start_polling, stop_polling): Rewritten.
4849
4850 * keyboard.h (polling_for_input): Removed.
427ec082 4851
e12489f9
GM
4852 * atimer.h, atimer.c: New files.
4853
4854 * Makefile.in (obj): Add atimer.o.
4855 (atimer.o): New target.
4856
4857 * blockinput.h (pending_atimers): Add extern declaration.
4858 (UNBLOCK_INPUT): Rewritten. Handle pending atimers.
4859
4860 * lisp.h (popup_activated_flag): Add extern declaration.
4861
4862 * xmenu.c (popup_activated_flag): Make externally visible.
4863 (popup_activate_callback) [USE_MOTIF]: Increment
4864 popup_activated_flag.
4865 (popup_deactivate_callback) [USE_MOTIF]: Decrement it.
4866
4867 * xterm.c (toplevel): Include atimer.h.
4868 (toolkit_scroll_bar_interaction): New variable.
4869 (Fxt_process_timeouts): Removed.
4870 (x_process_timeouts): New function.
4871 (xt_action_hook): Clear toolkit_scroll_bar_interaction.
4872 (x_send_scroll_bar_event): Set toolkit_scroll_bar_interaction.
4873 (x_make_frame_visible): Call poll_for_input_1 instead of
4874 input_poll_signal. Don't call alarm.
4875 (x_initialize): Install timer calling x_process_timeouts.
427ec082 4876
1e5279b9
DL
48772000-01-24 Dave Love <fx@gnu.org>
4878
6c67ddee 4879 * s/irix5-0.h: Don't set LD_SWITCH_SYSTEM -- we use unexelf now.
1e5279b9
DL
4880 Don't use -cckr -- apparently not now necessary.
4881
edf6aeb8
EZ
48822000-01-24 Eli Zaretskii <eliz@is.elta.co.il>
4883
4884 * msdos.c (IT_menu_display): Truncate long menu lines at the right
4885 screen boundary.
4886
9badad41
JR
48872000-01-23 Jason Rumney <jasonr@gnu.org>
4888
4889 * w32fns.c (w32_defined_color): Apply gamma correction before
4890 trying to map to the palette.
4891 (w32_wnd_proc) [WM_ERASE_BACKGROUND]: Pass device context of frame
4892 to w32_clear_rect.
4893
4894 * w32term.c (w32_fill_rect): Do not try to deal with NULL hdc
4895 here. Callers changed to always pass real device context.
4896 (w32_draw_bitmap): Likewise.
4897 (w32_get_glyph_overhangs): Likewise.
4898 (w32_draw_box_rect): Make use of s->hdc rather than getting a new
4899 one.
4900 (w32_set_vertical_scroll_bar): Pass correct HWND parameters to
4901 pfnSetScrollInfo and SetScrollRange.
4902 (x_get_char_face_and_encoding): Don't turn iso8859-1 characters
4903 back into MULE characters after decoding them.
4904 (x_get_glyph_face_and_encoding): Likewise.
4905 (w32_per_char_metric): Use GetCharExtentPoint32W as fallback when
4906 GetCharABCWidthsW fails, since this is defined on Windows 9x.
4907 (x_produce_glyphs): Calculate per char metrics for a character
4908 that we know exists in default font when font_not_found_p is true.
4909
63bd786b
JR
49102000-01-22 Jason Rumney <jasonr@gnu.org>
4911
4912 * makefile.nt (intervals.obj, composite.obj): New modules.
4913 (composite.h): Added as dependency where appropriate.
4914
4915 * w32gui.h (XGCValue): New struct for emulating X GCs.
4916
4917 * w32term.h (XCharStruct): New struct for emulating X.
4918
4919 * w32console.c (turn_on_face, turn_off_face): New functions.
4920 (change_line_highlight): New prototype for new redisplay.
4921 (write_glyphs): Support multibyte text. Support faces.
4922
4923 * w32faces.c: Complete rewrite for new redisplay based on new
4924 xfaces.c.
4925
4926 * w32fns.c: Use SELECTED_FRAME macro in place of selected_frame
4927 throughout. struct frame * in place of FRAME_PTR.
4928 Skeleton support for images, toolbars, tooltips from xfns.c.
4929 (Fx_create_frame): Use system default for default scroll bar
4930 width.
4931 (w32_get_arg): Renamed from x_get_arg.
4932 (Fx_file_dialog): New function.
4933 (w32_list_fonts): Check cache before asking system.
4934 (Vw32_enable_synthesized_fonts): New variable.
4935 (Vw32_enable_italics): Obsolete, removed.
4936
4937 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
4938 Use SELECTED_FRAME macro.
4939
4940 * w32menu.c: Add skeleton support for help strings on menus.
4941 (add_menu_item): Native checkbox and radio support added, but not
4942 yet enabled due to bugs.
4943 (push_menu_item): Add parameters type, selection and help.
4944 Callers updated.
4945 Formatting changes to reduce unnecessary diffs with xmenu.c.
4946
4947 * w32select.c (Fw32_set_clipboard_data): Update call to
4948 find_charset_in_str.
4949
4950 * w32term.c: Complete rewrite for new redisplay based on new
4951 xterm.c with necessary sections merged back in from old w32term.c.
4952
6ffd3cf7 49532000-01-21 Richard M. Stallman <rms@gnu.org>
b50c9214
RS
4954
4955 * data.c (set_internal): Further fix in same criterion.
4956
6ffd3cf7 49572000-01-20 Richard M. Stallman <rms@gnu.org>
8cc95642
RS
4958
4959 * data.c (set_internal): Fix the criteria for whether
4960 to swap out the old cached binding.
4961
60af03f1
DL
49622000-01-19 Dave Love <fx@gnu.org>
4963
4964 * lread.c: (syms_of_lread) [user-init-file]: Doc change.
4965
f9be074f
KH
49662000-01-18 Kenichi Handa <handa@etl.go.jp>
4967
4968 * regex.c (re_compile_fastmap): While checking a range table for
4969 `charset', skip flag bits for a character class correctly.
4970
52b8dbf9
GM
49712000-01-17 Gerd Moellmann <gerd@gnu.org>
4972
d36100c9
GM
4973 * m/news-risc.h (LD_SWITCH_MACHINE): Define differently for GCC.
4974
52b8dbf9
GM
4975 * xfns.c (x_window): Call lw_create_widget with new parameter
4976 list.
4977
4978 * widget.c (EmacsFrameSetCharSize): Change size of children first
4979 because of problems with main window geometry management under
4980 Lesstif.
4981
4982 * xmenu.c (enum menu_item_idx): New enumeration replacing defines
4983 MENU_ITEMS_ITEM_.*.
4984 (MENU_ITEMS_ITEM_HELP): New enumerator.
4985 (push_menu_item): Add parameter HELP. Record help in menu_items.
4986 (single_menu_item, single_submenu, list_of_items): Call
4987 push_menu_item with new parameter.
4988 (single_submenu): Set help string in widget value.
4989 (menu_highlight_callback): New function.
4990 (set_frame_menubar): Call lw_create_widget with new
4991 parameter list.
4992 (xmenu_show, xdialog_show): Ditto.
4993
3139018f
GM
49942000-01-13 Gerd Moellmann <gerd@gnu.org>
4995
4996 * sound.c (Fplay_sound): Improve doc string.
4997
83c8f461
RS
49982000-01-11 Richard M. Stallman <rms@gnu.org>
4999
5000 * lisp.h (set_internal): Enter the new arg.
5001
5002 * eval.c (specbind): Record buffer-local variables specially,
5003 indicating which buffer's binding was saved.
5004 (unbind_to): Restore buffer-local variables specially
5005 in the proper buffer.
5006
5007 * data.c (set_internal): New arg BUF.
427ec082 5008
83c8f461
RS
5009 * eval.c (specbind, unbind_to): Pass new arg to set_internal.
5010 * data.c (Fset): Pass new arg to set_internal.
5011 * bytecode.c (Fbyte_code): Pass new arg to set_internal.
427ec082 5012
1fab1775
GM
50132000-01-11 Gerd Moellmann <gerd@gnu.org>
5014
5015 * .gdbinit: Adapt to new strings. Add xbacktrace, xreload,
5016 xprintsym.
5017
83c8f461 50182000-01-11 Richard M. Stallman <rms@gnu.org>
6f59462e
RS
5019
5020 * minibuf.c (Ftry_completion): Doc fix.
5021
7a85e4df
GM
50222000-01-11 Gerd Moellmann <gerd@gnu.org>
5023
5024 * keyboard.c (Fclear_this_command_keys): Clear recent_keys
5025 vector, too.
5026
a970dae4
AS
50272000-01-11 Andreas Schwab <schwab@suse.de>
5028
5029 * coding.c (code_convert_region): Initialize total_skip.
5030
c65d14ee
DL
50312000-01-08 Dave Love <fx@gnu.org>
5032
5033 * eval.c (Fuser_variable_p): Check customizability too.
5034
834938d2
GM
50352000-01-07 Gerd Moellmann <gerd@gnu.org>
5036
5037 * minibuf.c (Fcompleting_read): Doc fix.
5038
e0303cd6
GM
50392000-01-05 Gerd Moellmann <gerd@gnu.org>
5040
8a26744b
GM
5041 * s/freebsd.h (C_SWITCH_SYSTEM): Add -I /usr/local/include and
5042 -L /usr/local/lib.
5043
e0303cd6
GM
5044 * xfns.c (x_create_im): New function to set IM and IC of a frame.
5045 Check that input style is supported before trying to create an
5046 IC for it.
5047 (x_window): Call x_create_im.
427ec082 5048
2e471eb5
GM
50492000-01-04 Gerd Moellmann <gerd@gnu.org>
5050
560a7bd2
GM
5051 * xfns.c (current_gif_memory_src): New variable.
5052 (gif_load): Record the address of the current memory source
5053 in current_gif_memory_src.
5054 (gif_read_from_memory): Use current_gif_memory_src.
5055
f9ee84a3
GM
5056 * systime.h (EMACS_GET_TIME, EMACS_ADD_TIME, EMACS_SUB_TIME): Give
5057 macros statement form.
5058
d1299cde
GM
5059 * sound.c (struct sound): Renamed from struct sound_file.
5060 (struct sound): Add members `data' and `header_size'.
5061 (enum sound_attr): Add SOUND_DATA.
5062 (current_sound, current_sound_device): Variables renamed from
5063 sound_file and sound_device.
5064 (parse_sound): Parse :data.
5065 (parse_sound): Handle sound data in strings.
5066 (find_sound_type): Function renamed from find_sound_file_type.
427ec082 5067 (wav_init, au_init): Fail if sound's header_size is smaller than
d1299cde
GM
5068 needed header size.
5069 (wav_play, au_play): Play sounds from string data.
5070
2e471eb5
GM
5071 * puresize.h (BASE_PURE_SIZE): Increase to 600000.
5072
5073 * lisp.h: Add prototype for allocate_string_data.
5074
5075 * alloc.c (Fgarbage_collect): Return number of live and free
5076 strings.
5077
5078 * alloc.c (mark_buffer): Remove code in #if 0.
5079 (gc_sweep): Ditto.
5080 (UNMARK_BALANCE_INTERVALS): Give the macro statement form.
5081 (strings_consed): New variable.
5082 (allocate_string): Set it.
5083 (syms_of_alloc): Add DEFVAR_INT for strings_consed.
5084 (Fmemory_use_counts): Return strings_consed. Use Flist.
5085
5086 * alloc.c: General cleanup in comments etc. Remove conditional
5087 compilation for `standalone'.
5088
5089 * lisp.h (struct Lisp_String): Make DATA member `unsigned char *'.
5090
5091 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P):
5092 (GC_STRING_BYTES, GC_STRING_CHARS): New macros.
5093 (DONT_COPY_FLAG): Removed.
5094 (SBLOCK_SIZE, LARGE_STRING_BYTES): New macros.
5095 (struct sdata, struct sblock): New
5096 (struct string_block): Rewritten.
5097 (STRINGS_IN_STRING_BLOCK): New macro.
5098 (oldest_sblock, current_sblock, total_strings, total_free_strings)
5099 (large_sblocks, string_blocks, string_free_list): New variables.
5100 (NEXT_FREE_LISP_STRING, SDATA_OF_STRING, SDATA_SIZE): New macros.
5101 (init_strings): Rewritten.
5102 (allocate_string, allocate_string_data, compact_small_strings)
5103 (free_large_strings, sweep_strings): New functions.
5104 (STRING_BLOCK_SIZE, STRING_BLOCK_OUTSIZE)
5105 (struct string_block_head, current_string_block)
5106 (first_string_block, large_string_blocks, STRING_FULLSIZE)
5107 (STRING_PAD): Removed.
5108 (make_uninit_multibyte_string, make_pure_string): Rewritten.
5109 (Fgarbage_collect): Don't set mark bit in large strings.
5110 (mark_object): Mark strings differently. Mark symbol names
5111 differently.
5112 (survives_gc_p): Test marked strings differently.
427ec082 5113 (gc_sweep): Sweep strings differently, unmark strings in
2e471eb5
GM
5114 symbol names.
5115 (compact_strings): Removed.
5116
42608ba8
EZ
51172000-01-04 Eli Zaretskii <eliz@is.elta.co.il>
5118
5119 * xfaces.c (syms_of_xfaces): defsubr Scolor_gray_p and
5120 Scolor_supported_p even if HAVE_X_WINDOWS is not defined.
5121
e0a09e1a
KH
51222000-01-04 Kenichi Handa <handa@etl.go.jp>
5123
dd9f0750 5124 * fileio.c (Finsert_file_contents): Signal error if visiting file
427ec082 5125 in a non-empty buffer.
dd9f0750 5126
3c0f3b15 5127 * term.c (encode_terminal_code): Fix the previous change.
e0a09e1a 5128
44cd3ae5
GM
51292000-01-03 Gerd Moellmann <gerd@gnu.org>
5130
5131 * xfaces.c (syms_of_xfaces): Change Sface_color_gray_p to
5132 Scolor_gray_p, Sface_color_supported_p to Scolor_supported_p.
5133
5134 * s/hpux9.h (NO_EDITRES): Define even if HAVE_LIBXMU.
5135
c182a70f
EZ
51362000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
5137
5138 * xdisp.c (handle_single_display_prop) [HAVE_WINDOW_SYSTEM]: No
5139 need to test for MSDOS frames.
5140
24480d5b
EZ
51412000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
5142
5143 * dosfns.c (unspecified_colors): Remove.
5144 (msdos_stdcolor_idx): Use global variables unspecified_fg and
5145 unspecified_bg.
5146 (msdos_stdcolor_name): Return strings for unspecified fore- and
5147 back-ground colors.
5148
5149 * xfaces.c (Qunspecified_fg, Qunspecified_bg): Remove.
aaf2320c 5150 (syms_of_xfaces): Remove their staticpro's.
24480d5b
EZ
5151 (tty_color_name): Return Lisp strings for unspecified fore- and
5152 back-ground colors.
5153 (Finternal_set_lisp_face_attribute): Remove the special treatment
5154 for Qunspecified_{f,b}g.
5155 (realize_default_face): Replace Qunspecified_{f,b}g with a Lisp
5156 string.
5157
047f434a
GM
51582000-01-03 Gerd Moellmann <gerd@gnu.org>
5159
5160 * xdisp.c (reseat_at_next_visible_line_start): Position before
5161 newline only if ending up on a newline.
5162 (next_element_from_ellipsis): Return success. Handle case of
5163 displaying no ellipsis. Fix case of ellipsis defined in display
5164 table.
5165 (next_element_from_buffer): Return 0 if next_element_from_ellipsis
5166 returns 0.
5167
d684c676
EZ
51682000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
5169
5170 * xfaces.c (Fcolor_gray_p): Renamed from face-color-gray-p.
5171 (Fcolor_supported_p): Renamed from face-color-supported-p.
5172
5fe1d139
EZ
51732000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
5174
5175 * xfaces.c (tty_defined_color): Pass frame to tty-color-desc. The
5176 list of colors renamed to tty-defined-color-alist.
5177 (tty_color_name): Pass the frame to tty-color-by-index.
5178 (realize_tty_face): tty-color-alist is now a function which
5179 accepts the frame as argument.
5180
5181 * term.c (Ftty_display_color_p): Accept an optional argument
5182 FRAME.
5183
816be8b8
EZ
51842000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
5185
5186 * term.c (insert_glyphs): Pass glyph, not &glyph, to
5187 encode_terminal_code.
5188
b635321e
EZ
51892000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
5190
5191 * dispnew.c (mode_line_string): Support termcap frames as well.
5192
9b784e96
GM
51932000-01-01 Gerd Moellmann <gerd@gnu.org>
5194
27189709
GM
5195 * syntax.c (Fforward_word): Undo previous change.
5196
5197 * editfns.c (Fconstrain_to_field): Don't constrain if
5198 inhibit-field-text-motion is non-nil.
5199 (Fline_beginning_position): Undo previous change.
5200 (Fline_end_position): Ditto.
5201
5202 * syntax.c (Fforward_word): Notice field boundaries only if
5203 inhibit-field-text-motion is nil.
5204
5205 * lisp.h: Add extern declaration for Vinhibit_field_text_motion.
5206
5207 * editfns.c (Vinhibit_field_text_motion): New variable.
5208 (inhibit-field-text-motion): New DEFVAR_LISP.
5209 (Fline_beginning_position, Fline_end_position): Notice field
5210 boundaries only if inhibit-field-text-motion is nil.
5211
45158a91
GM
5212 * xfns.c (x_create_x_image_and_pixmap): Remove parameter FILE.
5213 All calls adjusted.
5214 (x_build_heuristic_mask): Likewise.
5215 (xbm_load_image_from_file): Change error output.
5216 (xbm_load, xpm_load, pbm_load, png_load, jpeg_load, tiff_load)
5217 (gif_load, gs_load, x_kill_gs_process): Ditto.
5218
9b784e96
GM
5219 * xfns.c (gif_load): Avoid sign extension and thus out of bounds
5220 color indices when accessing raster pixels.
63cec32f
GM
5221 (gif_image_p, png_image_p, jpeg_image_p, tiff_image_p): Allow only
5222 one of :file or :data.
5223 (enum pbm_keyword_index): Add PBM_DATA.
5224 (pbm_format): Add :data.
5225 (pbm_image_p): Allow either :file or :data.
5226 (pbm_read_file): New function.
5227 (pbm_scan_number): Rewritten to read from string.
5228 (pbm_load): Support :data.
9b784e96 5229
5ad6a5fb
GM
52301999-12-31 Gerd Moellmann <gerd@gnu.org>
5231
5232 * xfns.c: New image functions adapted to Emacs conventions.
5233 (png_load, tiff_load, jpeg_load, gif_load): Always GCPRO local
5234 variable `file'.
5235
63448a4d
WP
52361999-12-31 William M. Perry <wmperry@aventail.com>
5237
5238 * xfns.c (jpeg_format): Added the :data keyword
5239 (jpeg_image_p): JPEG is valid with :file _or_ :data
5240 (jpeg_memory_src): Defined new JPEG image source to read from a
5241 memory buffer.
5242 (jpeg_load): Pay attention to the :data keyword if specified.
5243 Instantiates a jpeg_memory_src instead of jpeg_stdio_src if
5244 found.
5245 (png_format): Added the :data keyword
5246 (png_image_p): PNG is valid with :file _or_ :data
5247 (png_read_from_memory): New PNG read function to read from a
5248 memory buffer.
5249 (png_load): Pay attention to the :data keyword if specified. Uses
5250 png_set_read_fn() instead of png_init_io() if specified.
5251 (tiff_format): Added the :data keyword for TIFF images.
5252 (tiff_image_p): TIFF is valid with :file _or_ :data
5253 (tiff_read_from_memory): Defined new TIFF I/O functions to read
5254 from a memory buffer.
5255 (tiff_load): Pay attention to the :data keyword if specified.
5256 Uses TIFFClientOpen() instead of TIFFOpen() if specified.
5257 (gif_format): Added the :data keyword
5258 (gif_image_p): GIF is valid with :file _or_ :data
5259 (gif_read_from_memory): New GIF input function to read from a
5260 memory buffer.
c65d14ee 5261 (gif_load): Pay attention to the :data keyword. Uses DGifOpen()
63448a4d
WP
5262 instead of DGifOpenFileName() if specified.
5263
c880678e
GM
52641999-12-31 Gerd Moellmann <gerd@gnu.org>
5265
5266 * xdisp.c (next_element_from_buffer): Change assertion at the end
5267 because it doesn't hold when there's an overlay string at the end
5268 from which we deliver an image.
5269
8ccb9a54
EZ
52701999-12-30 Eli Zaretskii <eliz@is.elta.co.il>
5271
5272 * msdos.c (IT_update_begin): Don't dereference members of struct
5273 window for deleted windows.
5274
12ce2351
GM
52751999-12-30 Gerd Moellmann <gerd@gnu.org>
5276
a915c648
GM
5277 * abbrev.c (Fexpand_abbrev): If expanding an abbrev which has only
5278 a hook, and the hook has a non-nil `no-self-insert' property, let
5279 the return value of the hook specify whether an expansion took
5280 place. If it returns nil, no expansion has been performed.
5281
12ce2351
GM
5282 * xterm.c (x_make_frame_visible): Wait for frame becoming visible
5283 differently.
5284
04ee4f45
EZ
52851999-12-30 Eli Zaretskii <eliz@is.elta.co.il>
5286
5287 * msdos.c (IT_write_glyphs): Track last changes to struct glyph.
5288
7f4bc0c3
EZ
52891999-12-29 Eli Zaretskii <eliz@is.elta.co.il>
5290
5291 * dispnew.c (mode_line_string): Support MS-DOS frames.
5292
dac204bc
GM
52931999-12-29 Gerd Moellmann <gerd@gnu.org>
5294
5295 * eval.c (syms_of_eval): Initialize debugger_may_continue.
5296
7b712ad8
KH
52971999-12-29 Kenichi Handa <handa@etl.go.jp>
5298
5299 * process.c (read_process_output): Fix the args CHARPOS and LENINS
5300 to signal_after_change.
5301
adb9900f
EZ
53021999-12-28 Eli Zaretskii <eliz@is.elta.co.il>
5303
41ad069b
EZ
5304 * msdos.c (dos_set_window_size) [__DJGPP__ > 1]: If the frame
5305 dimensions changed, invalidate the mouse highlight info.
5306 (disable_mouse_highlight, help_echo, previous_help_echo): New
5307 variables.
5308 (IT_set_mouse_pointer, show_mouse_face, clear_mouse_face)
5309 (fast_find_position, IT_note_mode_line_highlight)
5310 (IT_note_mouse_highlight): New functions.
5311 (IT_update_begin): If the redisplay affects the window where the
5312 mouse highlight is, clear the highlight. If the frame where the
5313 highlight was displayed was killed, invalidate the highlight
5314 info.
5315 (IT_update_end): Reset the highlight flag. Reset the mouse
5316 highlight-defer flag.
5317 (IT_frame_up_to_date): New function, if mouse highlight was
5318 deferred due to GC, do it now.
5319 (internal_terminal_init): Initialize mouse-highlight related
5320 members of the_only_x_display. Assign IT_frame_up_to_date to
5321 frame_up_to_date_hook.
5322 (dos_rawgetc): If the mouse moved, update mouse highlight. If
5323 help_echo changed value, generate a HELP_EVENT event.
5324 (syms_of_msdos): Staticpro help_echo and previous_help_echo.
5325
adb9900f
EZ
5326 * msdos.h (struct display_info): New.
5327 (struct x_output): Add the display_info member.
5328 (FRAME_X_DISPLAY_INFO): New macro.
5329
481b5054
GM
53301999-12-28 Gerd Moellmann <gerd@gnu.org>
5331
5332 * xdisp.c (try_window_id): Compute BEG_UNCHANGED and END_UNCHANGED
5333 if MODIFF > 1.
6448a6b3 5334 (dump_glyph_row): Adapt to changes in struct glyph.
481b5054
GM
5335
5336 * buffer.c (modify_overlay): Always compute unchanged info.
5337
a2882b0d
KH
53381999-12-27 Kenichi Handa <handa@etl.go.jp>
5339
5340 * dispextern.h (FACE_FROM_ID): Cast the arg ID to `unsigned'.
5341
89ba5b5f
KH
53421999-12-27 Kenichi Handa <handa@etl.go.jp>
5343
5344 The following changes are to use more bits for face IDs.
5345
5346 * lisp.h (GLYPH): Defined as `int', not `unsigned int'. Now the
5347 lowest 8 bits are single byte character code, the bits above are
5348 face ID.
481b5054 5349 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjusted for the change
89ba5b5f 5350 above.
481b5054
GM
5351 (FAST_MAKE_GLYPH, FSST_GLYPH_FACE): Likewise.
5352 (GLYPH_MASK_REV_DIR, GLYPH_MASK_PADDING): Macros deleted.
89ba5b5f
KH
5353
5354 * charset.h (CHAR_BYTES): Use ((1 << CHARACTERBITS) - 1) instead
5355 of GLYPH_MASK_CHAR.
5356
5357 * charset.c (char_bytes): Use ((1 << CHARACTERBITS) - 1) instead
5358 of GLYPH_MASK_CHAR.
5359
5360 * dispextern.h (struct glyph): Make face_id and padding_p the top
5361 level members. Change members in union `u'.
5362 (GLYPH_EQUAL_P): Check also members face_id and padding_p.
5363 (GLYPH_CHAR_AND_FACE_EQUAL_P): New macro.
5364 (SET_CHAR_GLYPH): Adjusted for the change of struct glyph.
5365 (CHAR_GLYPH_PADDING_P): Likewise.
5366 (GLYPH_FROM_CHAR_GLYPH): Likewise. Always return -1 for multibyte
5367 characters.
5368
481b5054 5369 * dispnew.c (line_hash_code, direct_output_for_insert): Adjusted
89ba5b5f
KH
5370 for the change of struct glyph.
5371 (line_draw_cost): Adjusted for the change of
5372 GLYPH_FROM_CHAR_GLYPH.
5373 (count_match): Use macro GLYPH_CHAR_AND_FACE_EQUAL_P.
5374
5375 * term.c (encode_terminal_code): Adjusted for the change of struct
5376 glyph and GLYPH_FROM_CHAR_GLYPH.
481b5054 5377 (write_glyphs, insert_glyphs, append_glyph): Adjusted for the
89ba5b5f
KH
5378 change of struct glyph.
5379
5380 * xdisp.c: All codes adjusted for the change of struct glyph.
5381
5382 * xterm.c: All codes adjusted for the change of struct glyph.
5383
5bcd116c
KH
53841999-12-27 Kenichi Handa <handa@etl.go.jp>
5385
5386 * composite.h (struct composition): Change the order of declaring
5387 members to reduce the byte size of the structure.
5388
f21b06b7
GM
53891999-12-25 Gerd Moellmann <gerd@gnu.org>
5390
5391 * search.c (looking_at_1): Reset immediate_quit before modifying
5392 global data.
5393
e36557c9
KH
53941999-12-24 Kenichi Handa <handa@etl.go.jp>
5395
5396 * process.c (read_process_output): Fix the arg FROM to
5397 update_compositions.
5398
83c8f461 53991999-12-22 Richard M. Stallman <rms@gnu.org>
f7c9e039
RS
5400
5401 * search.c (Freplace_match): For nonliteral replacement in buffer,
5402 construct all the new text first, then insert all at once.
5403
0b863bd9
DL
54041999-12-22 Dave Love <fx@gnu.org>
5405
5406 * xfns.c (Fx_show_tip): Gcpro `timeout' too.
5407
6d8e8ef3
GM
54081999-12-22 Gerd Moellmann <gerd@gnu.org>
5409
28d7281d
GM
5410 * xfns.c (Fx_create_frame): Move x_default_parameter calls that
5411 lead to size changes to after the X window has been created.
5412
e22ef6eb 5413 * xfaces.c (realize_x_face): Don't use uninitialized local
6d8e8ef3
GM
5414 variable in xassert.
5415
8affcced
KH
54161999-12-22 Kenichi Handa <handa@etl.go.jp>
5417
5418 * xfaces.c (face_color_supported_p): Check by tty_defined_color
6d8e8ef3 5419 only when the frame is not for a window system.
8affcced 5420
f2be1146
GM
54211999-12-22 Gerd Moellmann <gerd@gnu.org>
5422
deca1348
GM
5423 * buffer.c (Fset_buffer_multibyte): Arrange for a thorough
5424 redisplay after changing the multibyteness of a buffer.
5425
f2be1146
GM
5426 * xterm.c (XTread_socket): At the beginning of the loop, pass the
5427 frame's X window to XFilterEvent instead of None because that's
5428 the X window for which the IC was created. This makes dead
5429 accents work when the pointer is not in Emacs' frame.
5430 (XTread_socket) <KeyPress>: Don't call XFilterEvent here.
5431
a744a2ec
DL
54321999-12-20 Dave Love <fx@gnu.org>
5433
5434 * xfns.c (Fx_show_tip): Add missing UNGCPRO.
5435
9e6985ed
GM
54361999-12-19 Gerd Moellmann <gerd@gnu.org>
5437
5438 * eval.c (debugger_may_continue): New variable.
5439 (syms_of_eval): Add a DEFVAR_BOOL for it.
5440 (call_debugger): Bind it.
5441
3b620731
EZ
54421999-12-19 Eli Zaretskii <eliz@is.elta.co.il>
5443
5444 * msdos.c (IT_set_face): Don't swap face colors when highlight or
5445 fp->tty_reverse_p is set, unless the computed colors are identical
5446 to frame colors. Print both original and computed colors to
5447 termscript file.
5448 (IT_write_glyphs): Track the changes in handling of composite
5449 characters.
5450 (IT_set_frame_parameters): Don't set frame colors from
5451 unspecified-fg and unspecified-bg pseudo-colors.
5452
0f9a51c4
DL
54531999-12-17 Dave Love <fx@gnu.org>
5454
5455 * data.c (Fkeywordp): New function.
5456 (syms_of_data): Install it.
5457
363e4e42
EZ
54581999-12-16 Eli Zaretskii <eliz@is.elta.co.il>
5459
5460 * xfaces.c (tty_defined_color): Fix last change.
5461
cfad01b4
GM
54621999-12-15 Gerd Moellmann <gerd@gnu.org>
5463
5464 * xdisp.c (redisplay_window) <optional new window start>: Check
5465 that window start is in [BEGV..ZV].
5466
f9d2fdc4
EZ
54671999-12-15 Eli Zaretskii <eliz@is.elta.co.il>
5468
5469 * dispextern.h (FACE_TTY_DEFAULT_FG_COLOR)
5470 (FACE_TTY_DEFAULT_BG_COLOR): New macros.
5471
5472 * xfaces.c (Qunspecified_fg, Qunspecified_bg): New variables.
5473 (syms_of_xfaces): Initialize and staticpro them.
5474 (tty_defined_color): If the color name is unspecified-fg or
5475 unspecified-bg, return FACE_TTY_DEFAULT_FG_COLOR and
5476 FACE_TTY_DEFAULT_BG_COLOR, respectively, as the pixel value.
5477 (tty_color_name): If the color pixel value is either
5478 FACE_TTY_DEFAULT_FG_COLOR or FACE_TTY_DEFAULT_BG_COLOR, return
5479 Qunspecified_fg or Qunspecified_bg, respectively.
5480 (Finternal_set_lisp_face_attribute): Allow values Qunspecified_fg
5481 and Qunspecified_bg for foreground and background colors.
5482 (realize_default_face): If the foreground and background colors
5483 are not specified, default to Qunspecified_fg and Qunspecified_bg.
5484 (realize_tty_face): By default, set the face colors to
5485 FACE_TTY_DEFAULT_FG_COLOR and FACE_TTY_DEFAULT_BG_COLOR.
5486 [MSDOS]: Handle FACE_TTY_DEFAULT_FG_COLOR and
5487 FACE_TTY_DEFAULT_BG_COLOR when face colors are not defined.
5488 Reverse the colors if the default colors were reversed.
5489
5490 * dispnew.c (init_display): Initialize the frame pixels of the
5491 initial frame to FACE_TTY_DEFAULT_FG_COLOR and
5492 FACE_TTY_DEFAULT_BG_COLOR.
5493
5494 * term.c (turn_on_face): If the default fore- and background
5495 colors are reversed, enter inverse video mode. Don't send color
5496 escape sequences for unspecified foreground and background colors.
5497 (turn_off_face): Handle unspecified-fg and unspecified-bg colors.
5498
5499 * dosfns.c (unspecified_colors): New variable.
5500 (msdos_stdcolor_idx): Handle unspecified-fg and unspecified-bg
5501 color names, return FACE_TTY_DEFAULT_FG_COLOR and
5502 FACE_TTY_DEFAULT_BG_COLOR, respectively.
5503 (msdos_stdcolor_name): Handle FACE_TTY_DEFAULT_FG_COLOR and
5504 FACE_TTY_DEFAULT_BG_COLOR, return Qunspecified_fg and
5505 Qunspecified_bg, respectively.
5506
5507 * msdos.c (IT_set_face): Support FACE_TTY_DEFAULT_FG_COLOR and
5508 FACE_TTY_DEFAULT_BG_COLOR as pixel values.
5509
e19539f1
KH
55101999-12-15 Kenichi Handa <handa@etl.go.jp>
5511
5512 * coding.c (code_convert_region): Fix the secoding arg to
5513 update_compositions.
5514
5ec14d3c
KH
55151999-12-15 Kenichi Handa <handa@etl.go.jp>
5516
5517 The following changes are for the new composition mechanism. We
5518 have deleted `composition' charset and composite characters,
5519 instead introduced a special text property `composition'.
5520
5521 * Makefile.in (INTERVAL_SRC): Include composite.h.
5522 (INTERVAL_OBJ): Include composite.o.
5523 (SOME_MACHINE_OBJECTS): Include composite.o.
5524 (casefiddle.o) (dispnew.o) (indent.o) (process.o) (search.o)
5525 (syntax.o) (window.o) (xdisp.o) (xfaces.o) (xterm.o) (print.o):
5526 Depend on composite.h.
5527 (doc.o): Depend on charset.h.
5528 (keyboard.o) (textprop.o) (intervals.o): Depend on INTERVAL_SRC.
5529 (composite.o): New target.
427ec082 5530
5ec14d3c
KH
5531 * alloc.c (Fmake_string): Adjusted for the change of CHAR_STRING.
5532
5533 * callproc.c (Fcall_process): Call code_convert_string to encode
5534 arguments. Use CODING_REQUIRE_DECODING to check if the process
5535 output should be decoded.
5536
5537 * casefiddle.c: Include composite.h.
5538 (casify_object): Use MAX_MULTIBYTE_LENGTH to allocate memory for a
5539 multibyte character. Adjusted for the change of CHAR_STRING.
5540 (casify_region): Likewise. Call update_compositions.
5541
5542 * category.h (CATEGORY_SET): Delete codes for a composite
5543 character.
5544
5545 * category.c (word_boundary_p): Delete codes for a composite
5546 character.
5547 (Fmake_category_table): New function.
5548 (syms_of_category): Defsubr it.
5549
5550 * ccl.c (CCL_WRITE_CHAR): Adjusted for the change of CHAR_STRING.
5551 (ccl_driver): Delete codes for a composite character.
5552
5553 * charset.h: In this entry, just `Modified' means that codes for a
5554 composite character is deleted.
5555 (LEADING_CODE_COMPOSITION) (CHARSET_COMPOSITION)
5556 (charset_composition) (MIN_CHAR_COMPOSITION)
5557 (MAX_CHAR_COMPOSITION) (GENERIC_COMPOSITION_CHAR)
5558 (COMPOSITE_CHAR_P) (MAKE_COMPOSITE_CHAR) (COMPOSITE_CHAR_ID)
5559 (PARSE_COMPOSITE_SEQ) (PARSE_CHARACTER_SEQ): Deleted.
5560 (MAX_CHAR) (CHARSET_VALID_P) (CHARSET_DEFINED_P) (CHARSET_AT)
5561 (FIRST_CHARSET_AT) (SAME_CHARSET_P) (MAKE_NON_ASCII_CHAR)
5562 (PARSE_MULTIBYTE_SEQ) (SPLIT_NON_ASCII_CHAR) (CHAR_PRINTABLE_P):
5563 Modified.
5564 (SPLIT_STRING): Call split_string, not split_non_ascii_string.
5565 (CHAR_STRING): Delete WORKBUF argument. Call char_string, not
5566 non_ascii_char_to_string.
5567 (STRING_CHAR): Call string_to_char, not string_to_non_ascii_char.
5568 (STRING_CHAR_AND_LENGTH): Likewise.
5569 (FETCH_CHAR_ADVANCE): New macro.
5570 (MAX_COMPONENT_COUNT) (struct cmpchar_info): Deleted.
5571 (MAX_MULTIBYTE_LENGTH): New macro.
5572 (MAX_LENGTH_OF_MULTI_BYTE_FORM): Deleted.
5573 (find_charset_in_str): Argument adjusted.
5574 (CHAR_LEN): Modified.
427ec082 5575
5ec14d3c
KH
5576 * charset.c: In this entry, just `Modified' means that codes for a
5577 composite character is deleted.
5578 (Qcomposition) (leading_code_composition)
5579 (charset_composition) (min_composite_char) (cmpchar_table)
5580 (cmpchar_table_size) (n_cmpchars): Deleted.
5581 (SPLIT_COMPOSITE_SEQ): Deleted.
5582 (SPLIT_MULTIBYTE_SEQ): Modified.
5583 (char_to_string): Renamed from non_ascii_char_to_string.
5584 Modified.
5585 (string_to_char): Renamed from string_to_non_ascii_char.
5586 (split_string): Renamed from split_non_ascii_string.
5587 (char_printable_p) (Fsplit_char)
5588 (Ffind_charset_region) (Ffind_charset_string) (char_valid_p)
5589 (char_bytes) (Fchar_width) (strwidth): Modified.
5590 (find_charset_in_str): Argument CMPCHARP deleted. Modified.
5591 (Fstring): Adjusted for the change of CHAR_STRING. Modified.
5592 (hash_string) (CMPCHAR_HASH_TABLE_SIZE) (cmpchar_hash_table)
5593 (CMPCHAR_HASH_SIZE) (CMPCHAR_HASH_USED) (CMPCHAR_HASH_CMPCHAR_ID)
5594 (str_cmpchar_id) (cmpchar_component) (Fcmpcharp)
5595 (Fcmpchar_component) (Fcmpchar_cmp_rule) (Fcmpchar_cmp_rule_p)
5596 (Fcmpchar_cmp_count): Deleted.
5597 (Fcompose_string): Implemented by Emacs Lisp in composite.el.
5598 (init_charset_once): Modified.
5599 (syms_of_charset): Modified.
5600
5601 * cmds.c (internal_self_insert): Adjusted for the change of
5602 CHAR_STRING.
5603
5604 * coding.h (emacs_code_class_type): Delete the member
5605 EMACS_leading_code_composition.
5606 (COMPOSING_NO) (COMPOSING_WITH_RULE_HEAD) (COMPOSING_NO_RULE_HEAD)
5607 (COMPOSING_WITH_RULE_TAIL) (COMPOSING_NO_RULE_TAIL)
5608 (COMPOSING_WITH_RULE_RULE) (COMPOSING_HEAD_P)
5609 (COMPOSING_WITH_RULE_P): Macros deleted.
5610 (COMPOSITION_DATA_SIZE) (COMPOSITION_DATA_MAX_BUNCH_LENGTH): New
5611 macros.
5612 (struct composition_data): New structure.
5613 (CODING_FINISH_INSUFFICIENT_CMP): New macro.
5614 (struct coding_system): New members composition_rule_follows,
5615 cmp_data, cmp_data_start, cmp_data_index.
5616 (coding_save_composition) (coding_free_composition_data)
5617 (coding_adjust_composition_offset): Extern them.
5618
5619 * coding.c: Include composite.h.
5620 (DECODE_CHARACTER_ASCII): Don't handle composition here.
5621 (DECODE_CHARACTER_DIMENSION1): Likewise. Don't check the validity
5622 of multibyte code here.
5623 (DECODE_CHARACTER_DIMENSION2): Likewise.
5624 (detect_coding_emacs_mule): Change the case label from
5625 EMACS_leading_code_composition to 0x80.
5626 (detect_coding_iso2022): Handle new composition sequence.
5627 (DECODE_ISO_CHARACTER): Likewise.
5628 (check_composing_code): Deleted.
5629 (coding_allocate_composition_data): New function.
5630 (CODING_ADD_COMPOSITION_START) (CODING_ADD_COMPOSITION_END)
5631 (CODING_ADD_COMPOSITION_COMPONENT) (DECODE_COMPOSITION_START)
5632 (DECODE_COMPOSITION_END) (DECODE_COMPOSITION_RULE): New macros.
5633 (decode_coding_iso2022): Handle new composition sequence.
5634 (ENCODE_ISO_CHARACTER): Don't check composition here.
5635 (ENCODE_COMPOSITION_RULE) (ENCODE_COMPOSITION_START): New macros.
5636 (ENCODE_COMPOSITION_NO_RULE_START)
5637 (ENCODE_COMPOSITION_WITH_RULE_START): Deleted.
5638 (ENCODE_COMPOSITION_END): Handle new composition sequence.
5639 (ENCODE_COMPOSITION_FAKE_START): New macro.
5640 (encode_coding_iso2022): Handle new composition sequence.
5641 (ENCODE_SJIS_BIG5_CHARACTER): Delete superfluous `;' at the tail.
5642 (encode_coding_sjis_big5): Ignore composition.
5643 (setup_coding_system): Initialize new members of struct
5644 coding_system. Enable composition only when the coding system has
5645 `composition' property t.
5646 (coding_free_composition_data) (coding_adjust_composition_offset)
5647 (coding_save_composition) (coding_restore_composition): New
5648 functions.
5649 (code_convert_region): Call coding_save_composition for encoding
5650 and coding_allocate_composition_data for decoding. Don't skip
5651 ASCII characters if we handle composition on encoding. Call
5652 signal_after_change with Check_BORDER.
5653 (code_convert_string): Call coding_save_composition for encoding
5654 and coding_allocate_composition_data for decoding. Don't skip
5655 ASCII characters if we handle composition on encoding.
5656 (code_convert_string1): Set Vlast_coding_system_used after calling
5657 code_convert_string.
5658 (code_convert_string_norecord): Disable composition.
5659 (Fset_terminal_coding_system_internal): Likewise.
5660 (Fset_safe_terminal_coding_system_internal): Likewise.
5661 (Fset_keyboard_coding_system_internal): Likewise.
5662 (init_coding_once): Set emacs_code_class[0x80] to
5663 EMACS_invalid_code.
5664
5665 * composite.h: New file.
5666
5667 * composite.c: New file.
5668
5669 * data.c (Faref): Delete codes for a composite character..
5670 (Faset): Likewise. Adjusted for the change of CHAR_STRING.
5671
5672 * dispextern.h (enum glyph_type): New member COMPOSITE_GLYPH.
5673 (struct glyph): Add new sub-structure cmp to the union `u'.
5674 (enum display_element_type): New member IT_COMPOSITION.
5675 (enum prop_idx): New member COMPOSITION_PROP_IDX.
5676 (struct it): New members cmp_id, cmp_len.
5677
5678 * dispnew.c (direct_output_forward_char): Check point moving into
5679 or out of a composition. If so, give up direct method.
5680
5681 * doprnt.c (doprnt1): Adjusted for the change of CHAR_STRING.
5682
5683 * editfns.c (Fchar_to_string): Adjusted for the change of
5684 CHAR_STRING.
5685 (general_insert_function): Likewise.
5686 (Finsert_char): Likewise.
5687 (Fsubst_char_in_region): Likewise. Call update_compositions.
5688 (Ftranslate_region): Call update_compositions.
5689 (Ftranspose_regions): Call update_compositions.
5690
5691 * emacs.c (main): Call syms_of_composite.
5692
5693 * fileio.c (Fsubstitute_in_file_name): Adjusted for the change of
5694 CHAR_STRING.
5695 (Finsert_file_contents): Set Vlast_coding_system_used before
5696 calling signal_after_change. Call update_compositions if some
5697 texts are inserted..
5698 (Fwrite_region): Adjusted for the change of a_write and e_write.
5699 (a_write): Argument changed. Work based on character position,
5700 not byte position.
5701 (e_write): Argument changed. Handle new way of composition.
5702
5703 * fns.c (Flength): The length of char-table is MAX_CHAR.
5704 (concat): Adjusted for the change of CHAR_STRING.
5705 (Ffillarray): Adjusted for the change of CHAR_STRING.
5706 (Fset_char_table_default): Delete codes for a composite character.
5707 (hash_put): Return hash index.
5708
5709 * fontset.h (struct font_info): New member vertical_centering.
5710 (Vvertical_centering_font_regexp): Extern it.
5711
5712 * fontset.c (Vvertical_centering_font_regexp): New variable.
5713 (syms_of_fontset): Declare it as a Lisp variable and initialize.
5714 Set Vignore_relative_composition to nil.
5715 (fs_load_font): Initialize `vertical_centering' of struct
5716 font_info.
5717
5718 * indent.c (check_composition): New function.
5719 (MULTIBYTE_BYTES_WIDTH): Call STRING_CHAR_AND_LENGTH with
5720 MAX_MULTIBYTE_LENGTH, not MAX_LENGTH_OF_MULTI_BYTE_FORM.
5721 (current_column_1): Handle new way of composition.
5722 (Fmove_to_column): Likewise.
5723 (compute_motion): Likewise.
5724
5725 * insdel.c (copy_text): Adjusted for the change of CHAR_STRING.
5726 (insert_char): Likewise.
5727 (insert): Call update_compositions.
5728 (insert_and_inherit): Likewise.
5729 (insert_before_markers): Likewise.
5730 (insert_before_markers_and_inherit): Likewise.
5731 (insert_from_string): Likewise.
5732 (insert_from_string_before_markers): Likewise.
5733 (insert_from_buffer): Likewise.
5734 (replace_range): Likewise.
5735 (count_combining_composition): Deleted.
5736 (count_combining_before): Delete codes for a composite character.
5737 (count_combining_after): Likewise.
5738 (del_range_1): Call update_compositions.
5739 (del_range_byte): Likewise.
5740 (del_range_both): Likewise.
5741 (Fcombine_after_change_execute): Likewise.
5742
5743 * intervals.h: Include composite.h.
5744 (get_property_and_range): Extern it.
5745 (Vtext_property_default_nonsticky): Extern it.
427ec082 5746
5ec14d3c
KH
5747 * intervals.c (adjust_intervals_for_insertion): To check stickines
5748 of properties, pay attention to text-property-default-nonsticky.
5749 (merge_properties_sticky): Likewise.
5750 (get_property_and_range): New function.
5751
5752 * keyboard.c (Vdisable_point_adjustment): New variable.
5753 (Vglobal_disable_point_adjustment): New variable.
5754 (syms_of_keyboard): Declare them as Lisp variables.
5755 (command_loop_1): Check them and call adjust_point_for_property if
5756 necessary.
5757 (adjust_point_for_property): New function.
5758
5759 * keymap.c (push_key_description): Adjusted for the change of
5760 CHAR_STRING.
5761 (Ftext_char_description): Likewise.
5762
5763 * lisp.h (QCtest, QCweakness, Qequal): Extern them.
5764 (hash_put): Adjusted for the change of the definition.
5765 (signal_after_change): Likewise.
5766 (check_point_in_composition): Extern it.
5767
5768 * lread.c (readchar): Adjusted for the change of CHAR_STRING.
5769 Delete a code that handles an invalid too-long multibyte sequence
5770 because we are now sure that we never encounter with such a
5771 sequence.
5772 (read_multibyte): Use macro MAX_MULTIBYTE_LENGTH, not
5773 MAX_LENGTH_OF_MULTI_BYTE_FORM.
5774 (init_obarray): Likewise.
5775 (read1): Likewise. Adjusted for the change of CHAR_STRING.
5776
5777 * print.c (printchar): Adjusted for the change of CHAR_STRING.
5778
5779 * process.c: Include composite.h.
5780 (read_process_output): Call update_compositions.
5781
5782 * regex.c (regex_compile): Adjusted for the change of CHAR_STRING.
5783
5784 * search.c (search_buffer): Adjusted for the change of CHAR_STRING.
5785
5786 * syntax.h (SYNTAX_ENTRY_INT): Delete codes for a composite
5787 character.
5788
5789 * term.c (encode_terminal_code): Delete codes for a composite
5790 character. Adjusted for the change of CHAR_STRING.
5791 (produce_glyphs): When called, it->what can be IT_COMPOSITION.
5792 Delete codes for a composite character.
5793
5794 * textprop.c (Vtext_property_default_nonsticky): New variable
5795 (syms_of_textprop): Declare it as a Lisp variable.
5796
5797 * window.c (Frecenter): Clear all caches of compositions.
5798
5799 * xdisp.c (it_props): Add an entry for composition.
5800 (face_before_or_after_it_pos): For composition, check face of a
5801 character after the composition.
5802 (handle_composition_prop): New function.
5803 (get_next_display_element): Adjusted for the change of
5804 CHAR_STRING.
5805 (set_iterator_to_next): Handle the case that it->method ==
5806 next_element_from_composition.
5807 (next_element_from_composition): New function.
5808 (message_dolog): Adjusted for the change of CHAR_STRING.
5809 (set_message_1): Likewise.
5810 (check_point_in_composition): New function.
5811 (reconsider_clip_changes): If point moved into or out of
5812 composition, set b->clip_changed to 1 to force updating of the
5813 screen.
5814 (disp_char_vector): Delete codes for a composite character.
5815 (decode_mode_spec_coding): Adjusted for the change of CHAR_STRING.
5816
5817 * xfaces.c (choose_face_fontset_font): Delete codes for a
5818 composite character.
5819 (realize_x_face): Likewise. Change a place to set local variable
5820 `f' to avoid a bug of GCC 2.8.1 on Solaris.
5821
5822 * xfns.c: Include intervals.h.
5823 (syms_of_xfns): Make `display' property nonsticky by default.
5824
5825 * xselect.c (lisp_data_to_selection_data): Adjusted for the change
5826 for find_charset_in_str.
5827
5828 * xterm.h (struct x_output): Change member font_baseline to
5829 baseline_offset.
5830
5831 * xterm.c (x_append_glyph): Setup members of struct glyph properly
5832 for composition.
5833 (x_append_composite_glyph): New function.
5834 (VCENTER_BASELINE_OFFSET): New macro.
5835 (x_produce_glyphs): If it->what == IT_COMPOSITION, setup members
5836 of struct it for the composition. Cache pixel offsets in the
5837 struct composition. Delete codes for a composite character.
5838 Handle Vignore_relative_composition in composition code.
5839 (struct glyph_string): Delete member cmpcharp, add new member cmp.
5840 (x_set_cursor_gc): Check s->cmp, not s->cmpcharp.
5841 (x_compute_glyph_string_overhangs): Likewise.
5842 (x_get_glyph_overhangs): Delete codes for a composite character.
5843 (x_right_overwritten): Check s->cmp, not s->cmpcharp.
5844 (x_draw_glyph_string_background): Likewise. Delete codes for
5845 checking s->gidx for a composition.
5846 (x_draw_glyph_string_foreground): Delete code for a composite
5847 character.
5848 (x_draw_composite_glyph_string_foreground): New function.
5849 (x_draw_glyph_string_box): Check s->cmp, not s->cmpcharp.
5850 (x_draw_glyph_string): Handle the case of COMPOSITE_GLYPH.
5851 (struct work): Deleted.
5852 (x_fill_composite_glyph_string): Argument changed. Mostly
5853 rewritten for that.
5854 (x_fill_glyph_string): Don't check CHARSET_COMPOSITION.
5855 (BUILD_CHAR_GLYPH_STRINGS): Don't handle composition here.
5856 (BUILD_COMPOSITE_GLYPH_STRING): New macro.
5857 (BUILD_GLYPH_STRINGS): For composition, call
5858 BUILD_COMPOSITE_GLYPH_STRING.
5859 (x_new_font): Initialize f->output_data.x->baseline_offset, not
5860 f->output_data.x->font_baseline.
5861
c3c60f13
GM
58621999-12-14 Gerd Moellmann <gerd@gnu.org>
5863
5864 * xterm.c (show_mouse_face): Don't use updated_area, use
5865 TEXT_AREA.
5866
83c8f461 58671999-12-12 Richard M. Stallman <rms@gnu.org>
c838eb57
RS
5868
5869 * minibuf.c (Fall_completions): Doc fix.
5870
83c8f461 58711999-12-12 Richard M. Stallman <rms@gnu.org>
c838eb57
RS
5872
5873 * macros.c (Fstart_kbd_macro): Handle case where last-kbd-macro
5874 has been changed by the Lisp code.
5875
d8eccf12
GM
58761999-12-12 Gerd Moellmann <gerd@gnu.org>
5877
5878 * xfns.c: Indentation fixes.
5879
ae56feae
SM
58801999-12-10 Stefan Monnier <monnier@cs.yale.edu>
5881
5882 * xterm.c (x_initialize): Only setup xaw3d_* if they've been declared.
5883
dfa1c6ae
GM
58841999-12-10 Gerd Moellmann <gerd@gnu.org>
5885
5886 * frame.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
5887 [!MSDOS && !WINDOWSNT && !macintosh]: Moved here from xterm.h.
5888
5889 * xterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Moved
5890 to frame.h.
5891
ec18280f
SM
58921999-12-09 Stefan Monnier <monnier@cs.yale.edu>
5893
5894 * keyboard.c (Qratio): New symbol.
5895 (scroll_bar_parts): Add `Qratio' to it.
5896 (syms_of_keyboard): Init `Qratio'.
5897 * termhooks.h (scroll_bar_part): Add `scroll_bar_move_ratio'.
5898 * xterm.c (#includes): Allow compilation with only Xaw.
5899 (xaw3d_arrow_scroll, xaw3d_pick_top): New variables.
5900 (xt_action_hook): Replace XAW3D by XAW.
5901 (xaw3d_jump_callback): Renamed to xaw_jump_callback.
5902 (xaw_jump_callback): Renamed from xaw3d_jump_callback.
5903 Determine epsilon dynamically and don't try to be too clever.
5904 (xaw3d_scroll_callback): Renamed to xaw_scroll_callback.
5905 (xaw_scroll_callback): Renamed from xaw3d_scroll_callback.
5906 Handle both Xaw3d with arrow-scrollbars and with Xaw-style
5907 scrollbar (using `ratio').
5908 (x_create_toolkit_scroll_bar): Try to detect which style of Xaw3d
5909 scrollbar we have so as to set it up more optimally and to fix
5910 xaw3d_arrow_scroll and xaw3d_pick_top.
5911 (x_set_toolkit_scroll_bar_thumb): Try to maintain 2 spare pixels at the
5912 bottom of the Xaw3d scrollbar, to work around its tendency to refuse
5913 shrinking the thumb. Also make sure that `XawScrollbarSetThumb'
5914 is not ignored, using a major gross hack.
5915 (x_initialize): Init default values for xaw3d_arrow_scroll and
5916 xaw3d_pick_top.
5917
83b6d970
DL
59181999-12-09 Dave Love <fx@gnu.org>
5919
5920 * frame.h: (PIX_TYPE) [! HAVE_X_WINDOWS]: Define PIX_TYPE.
5921
3648c842
GM
59221999-12-08 Gerd Moellmann <gerd@gnu.org>
5923
5924 * eval.c: Remove conditional compilation on `standalone'.
5925 (call_debugger): When entering the debugger while redisplaying,
5926 reset redisplaying_p, and go back to the top-level if the debugger
5927 returns.
5928
05e71564
GM
59291999-12-07 Gerd Moellmann <gerd@gnu.org>
5930
5931 * xfaces.c (x_set_menu_resources_from_menu_face): Make sure
5932 basic faces are realized before trying to use face `menu'.
5933
5934 * window.c (delete_window): Block input for the time window
5935 matrices are being changed.
5936
b46cd536
DL
59371999-12-07 Dave Love <fx@gnu.org>
5938
5939 * lread.c (Fintern_soft): Fix newlines in doc string.
5940
96acb1f7
GM
59411999-12-07 Alexandre Oliva <oliva@dcc.unicamp.br>
5942
5943 * unexelf.c: Include <syms.h>, not <sym.h> on IRIX. Removed
5944 duplicate definition of ElfW.
5945 (find_section): Copied from unexsgi.c.
5946 (unexec): Use find_section. Adjust whitespace. Initialize
5947 new_data2_offset based on old_data, not sbss (this fixes a bug on
5948 IRIX6). Change #ifdef __mips to __sgi, since it's IRIX-specific.
5949 Adjust test for presence of .mdebug section to the new return
5950 value of find_section.
427ec082 5951
96acb1f7
GM
59521999-12-07 Gerd Moellmann <gerd@gnu.org>
5953
5954 * unexelf.c: Merge changes from 20.5.
5955 (unexec): Handle .lit4 and .lit8 unconditionally.
5956
5957 * m/iris4d.h (UNEXEC) [USG5_4]: Use unexelf.o instead of
5958 unexsgi.o again.
427ec082 5959
96acb1f7
GM
5960 * m/iris5d.h (UNEXEC): Likewise.
5961
7dae4502
SM
59621999-12-06 Stefan Monnier <monnier@cs.yale.edu>
5963
5964 * editfns.c (Fdelete_and_extract_region): New function.
05e71564
GM
5965 (syms_of_editfns): Register it.
5966 * insdel.c (del_range): Update del_range_1 call.
7dae4502
SM
5967 (del_range_1, del_range_2): Add a ret_string argument to
5968 request that the deleted text be returned.
5969 (del_range_byte, del_range_both): Update del_range_2 call.
05e71564 5970 * lisp.h (del_range_1, del_range_2): Change prototype
7dae4502
SM
5971 * casefiddle.c (casify_region): Update del_range_1 call.
5972 * coding.c (code_convert_region): Update del_range_2 call.
5973 * fileio.c (Finsert_file_contents): Update del_range_2 call.
5974
397e4fae
GM
59751999-12-06 Gerd Moellmann <gerd@gnu.org>
5976
5977 * xfaces.c (set_lface_from_font_name): Fix incomplete merge.
5978
3d973f71
GM
59791999-12-04 Hrvoje Niksic <hniksic@iskon.hr>
5980
5981 * lread.c (Fintern_soft): Accept a symbol argument.
427ec082 5982
740e985f
EZ
59831999-12-06 Eli Zaretskii <eliz@is.elta.co.il>
5984
5985 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 40000.
809f3d51
EZ
5986
5987 * insdel.c (adjust_markers_for_delete): Fix last change.
5988
2d764c78
EZ
59891999-12-06 Eli Zaretskii <eliz@is.elta.co.il>
5990
5991 Changes for automatic remapping of X colors on terminal frames:
5992
5993 * xfaces.c (XColor) [!HAVE_X_WINDOWS]: Provide a typedef for non-X
5994 frames.
5995 (Vface_tty_color_alist): Remove.
5996 (tty_defined_color): New function.
5997 (defined_color): Rewrite to support any type of frame.
5998 (tty_color_name): New function.
5999 (face_color_supported_p, Fface_color_gray_p,
6000 Fface_color_supported_p): Support non-X frames.
6001 (load_color): Enclose the color name in quotes, in the log
6002 messages. Remove DOS-specific version of load_color.
6003 (realize_tty_face): Take the supported colors from
6004 tty-color-alist. Support translation of X colors to the closest
6005 tty color, for both MSDOS and tty frames.
6006 [MSDOS]: Don't invert face colors if they were taken from the
6007 frame colors.
6008 (Fface_register_tty_color, Fface_clear_tty_colors): Remove.
6009
6010 * frame.h (struct x_output) [!MSDOS, !WINDOWSNT, !HAVE_X_WINDOWS]:
6011 Define a mostly empty surrogate.
6012 (tty_display): Declare.
6013
6014 * frame.c (make_terminal_frame) [!macintosh]: Don't use
6015 tty_display.
6016 (Fframe_parameters): Don't invert colors of non-FRAME_WINDOW_P
6017 frames when the frame's param_alist includes 'reverse.
6018 (tty_display): Define.
6019 (make_terminal_frame) [!MSDOS]: Assign &tty_display to the
6020 output_data.x member.
6021 (Fframe_parameters): Return foreground and background color names
6022 on tty frames as well, in addition to MSDOS frames.
6023
6024 * msdos.h (DisplayWidth, DisplayHeight): Changes for Lisp_Object
6025 selected_frame.
6026 (struct x_output): Remove unused members; document who uses each
6027 member.
6028 (FRAME_PARAM_FACES, FRAME_N_PARAM_FACES, FRAME_DEFAULT_PARAM_FACE,
6029 FRAME_MODE_LINE_PARAM_FACE, FRAME_COMPUTED_FACES,
6030 FRAME_N_COMPUTED_FACES, FRAME_SIZE_COMPUTED_FACES,
6031 FRAME_DEFAULT_FACE, FRAME_MODE_LINE_FACE, unload_color): Remove
6032 unused macro definintions.
6033
6034 * msdos.c (IT_set_frame_parameters): Don't call
6035 recompute_basic_faces, the next redisplay will, anyway.
6036 (x_current_display): Remove unused variable.
6037 Many functions: changes for Lisp_object selected_frame.
6038 (IT_set_face): If the tty_reverse_p flag is set for the face,
6039 reverse the foreground and background colors.
6040 (Fmsdos_remember_default_colors): New function.
6041 (syms_of_msdos): Defsubr it.
6042 (IT_set_frame_parameters): Use initial_screen_colors[] when
6043 creating a new frame. If the frame parameters include 'reverse,
6044 swap the foreground and background colors.
6045 (internal_terminal_init): Initialize initial_screen_colors to -1.
6046 (syms_of_msdos): Add DEFVAR_BOOL for x-stretch-cursor, to shut up
6047 cus-start.el.
6048
6049 * Makefile.in (lisp, shortlisp): Add lisp/term/tty-colors.elc.
6050
6051 * xfns.c (x_defined_color): Rename from defined_color. All
6052 callers changed.
6053 (Fxw_color_defined_p): Renamed from Fx_color_defined_p;
6054 all callers changed.
6055 (Fxw_color_values): Renamed from Fx_color_values; all callers
6056 changed.
6057 (Fxw_display_color_p): Renamed from Fx_display_color_p; all
6058 callers changed.
6059 (x_window_to_frame, x_any_window_to_frame,
6060 x_non_menubar_window_to_frame, x_menubar_window_to_frame,
6061 x_top_window_to_frame): Use !FRAME_X_P instead of
6062 f->output_data.nothing.
6063 * xterm.h (x_defined_color): Rename from defined_color.
6064
6065 * w32fns.c (x_window_to_frame): Use FRAME_W32_P instead of
6066 f->output_data.nothing.
6067 (Fxw_color_defined_p): Renamed from Fx_color_defined_p;
6068 all callers changed.
6069 (Fxw_color_values): Renamed from Fx_color_values; all callers
6070 changed.
6071 (Fxw_display_color_p): Renamed from Fx_display_color_p; all
6072 callers changed.
6073
6074 * dispextern.h (tty_color_name): Add prototype.
6075
6076 * xmenu.c (menubar_id_to_frame): Use FRAME_WINDOW_P instead of
6077 f->output_data.nothing.
6078 * w32menu.c (menubar_id_to_frame): Likewise.
6079 * w32term.h (w32_output): Declare.
6080
6081 * dosfns.c (Qmsdos_color_translate): Remove.
6082 (msdos_stdcolor_name): Now returns a Lisp_Object.
6083 * dosfns.h (Qmsdos_color_translate): Remove.
6084
6085 * s/msdos.h (INTERNAL_TERMINAL): Add entries for color support.
6086
b3e5232e
KH
60871999-12-06 Kenichi Handa <handa@etl.go.jp>
6088
6089 * fileio.c (decide_coding_unwind): Renamed from
6090 set_auto_coding_unwind.
6091 (Finsert_file_contents): Make single unwind protect to call both
6092 Vset_auto_coding_function and Ffind_operation_coding_system.
6093
6094 * insdel.c (adjust_markers_for_delete): Make it non-static.
6095
db0e466c
SM
60961999-12-04 Stefan Monnier <monnier@cs.yale.edu>
6097
6098 * regex.c (regex_compile): Recognize *?, +? and ?? as non-greedy
6099 operators and handle them properly.
6100 * regex.h (RE_ALL_GREEDY): New option.
6101 (RE_UNMATCHED_RIGHT_PAREN_ORD): Moved to the end where alphabetic
6102 sorting would put it.
6103 (RE_SYNTAX_AWK, RE_SYNTAX_GREP, RE_SYNTAX_EGREP)
6104 (_RE_SYNTAX_POSIX_COMMON): Use the new option to keep old behavior.
6105
22afa6e8
DL
61061999-12-04 Dave Love <d.love@dl.ac.uk>
6107
6108 * m/arm.h: New file.
6109
40afb967
DL
61101999-12-03 Dave Love <fx@gnu.org>
6111
6112 * editfns.c (Fmessage_or_box): Use use_dialog_box.
6113
ddf8eff5
GM
61141999-12-02 Gerd Moellmann <gerd@gnu.org>
6115
6116 * s/usg5-4.h (LIBS_SYSTEM): Add -lgen because that's needed
6117 for building with Motif.
6118
6119 * m/iris4d.h (UNEXEC) [USG5_4]: Use unexsgi.o instead of
6120 unexelf.o.
427ec082 6121
ddf8eff5
GM
6122 * m/iris5d.h (UNEXEC): Use unexsgi.o instead of unexelf.o.
6123
fa09a82d
DL
61241999-12-01 Dave Love <fx@gnu.org>
6125
6126 * emacs.c (main): Set LANG=C iff AX3_2 defined.
6127
ddf8eff5
GM
61281999-11-28 Gerd Moellmann <gerd@gnu.org>
6129
6130 * systime.h (EMACS_TIME_CMP, EMACS_TIME_EQ, EMACS_TIME_NE)
6131 (EMACS_TIME_GT, EMACS_TIME_GE, EMACS_TIME_LT,EMACS_TIME_LE): New
6132 macros.
6133
6134 * config.in (HAVE_SETITIMER, HAVE_UALARM): New.
6135
fa09a82d
DL
61361999-11-28 eliz <eliz@dlpx1>
6137
6138 * emacs.c (synchronize_locale): Avoid compiler warnings about
6139 pointer type mismatch.
6140
f9632fc8
GM
61411999-11-28 Gerd Moellmann <gerd@gnu.org>
6142
717d0121
GM
6143 * window.c (Fwindow_end): Don't call temp_set_pt_both with
6144 out of range position.
6145
427ec082 6146 * xterm.c (XTread_socket) <ClientMessage, Xatom_Scrollbar>:
f9632fc8
GM
6147 Switch off busy-cursor by setting inhibit_busy_cursor to 2.
6148
59c65f1e
EZ
61491999-11-28 Eli Zaretskii <eliz@is.elta.co.il>
6150
613a8346
EZ
6151 * charset.c (Fmake_char_internal): Print the charset ID when
6152 signalling an error.
6153
59c65f1e
EZ
6154 * emacs.c (synchronize_locale): Avoid compiler warnings about
6155 pointer type mismatch.
6156
83c8f461 61571999-11-26 Richard M. Stallman <rms@gnu.org>
d01f3570
RS
6158
6159 * editfns.c (Fdelete_field): Make it noninteractive. Return nil.
6160
18df9369
GM
61611999-11-26 Gerd Moellmann <gerd@gnu.org>
6162
65a3ccf7
GM
6163 * puresize.h (BASE_PURESIZE): Increase to 550000.
6164
b3b98592
GM
6165 * textprop.c (set_text_properties): New function. Like
6166 Fset_text_properties, but with additional parameter
6167 SIGNAL_AFTER_CHANGE_P. If that is nil, don't signal after
6168 changes.
6169 (Fset_text_properties): Use it.
6170
6171 * insdel.c (insert_1_both): Call set_text_properties with last
6172 parameter nil so that no after changes will be signaled.
6173
6174 * lisp.h: Add prototype for set_text_properties.
6175
18df9369
GM
6176 * xfaces.c (set_lface_from_font_name): Fix previous change.
6177 (recompute_basic_faces): Change assert to abort.
6178
71a8e74b
DL
61791999-11-25 Dave Love <fx@gnu.org>
6180
6181 * fns.c (Fnthcdr, Fnreverse): Inline cdr.
6182 (Fmember, Fdelq, Fdelete): Inline car.
6183 (Fy_or_n_p): Doc fix.
6184
bc6a5782
GM
61851999-11-25 Gerd Moellmann <gerd@gnu.org>
6186
3221576b 6187 * xfaces.c (set_lface_from_font_name): New parameter may_fail_p.
18df9369 6188 Callers changed. If specified font name is bogus, and may_fail_p
3221576b
GM
6189 is not set, try to use a reasonable default.
6190
bc6a5782
GM
6191 * dispnew.c (direct_output_for_insert): Set glyph row's
6192 displays_text_p flag. Correct window's window_end_vpos if
6193 necessary.
6194
0c8559bb
PE
61951999-11-25 Paul Eggert <eggert@twinsun.com>
6196
6197 * emacs.c (fixup_locale): Don't bother to record initial locale.
6198 (synchronize_locale): If the desired locale is nil,
6199 treat it as if it were the empty string,
6200 so that we set the locale from the environment.
6201
35737351
KH
62021999-11-25 Kenichi Handa <handa@etl.go.jp>
6203
6204 * fileio.c (Finsert_file_contents): Set buffer-file-coding-system
6205 of the current buffer via Fset.
6206
5562b47f
DL
62071999-11-24 Dave Love <fx@gnu.org>
6208
5562b47f
DL
6209 * xfaces.c: Don't duplicate Qmode_line definition done elsewhere.
6210
6211 * xfns.c: Don't duplicate Qdisplay definition done elsewhere.
6212
00da0e4a
GM
62131999-11-24 Gerd Moellmann <gerd@gnu.org>
6214
6215 * lisp.h (enum pvec_type): Put PVEC_FLAG in #if 0.
6216
6217 * emacs.c (PVEC_FLAG): New variable.
6218
b1775dc1
GM
62191999-11-23 Gerd Moellmann <gerd@gnu.org>
6220
6221 * unexaix.c (unexec): Use unsigned instead of uintptr_t because
6222 that fails on IBM PowerPC, AIX 4.2.
427ec082 6223
08de6200
EZ
62241999-11-22 Eli Zaretskii <eliz@is.elta.co.il>
6225
6226 * buffer.c (syms_of_buffer): Add %z, %Z, %m and %& to the doc
6227 string of mode-line-format. Remove the obsolete %t.
6228
02fda8ff
GM
62291999-11-22 Gerd Moellmann <gerd@gnu.org>
6230
f2fa858f
GM
6231 * dispnew.c (direct_output_for_insert): Increment glyph positions
6232 for glyphs from buffer text only.
6233
02fda8ff
GM
6234 * emacs.c (gdb_valbits, gdb_gctypebits, gdb_emacs_intbits)
6235 (gdb_data_seg_bits): New variables.
427ec082 6236
02fda8ff
GM
6237 * lisp.h (enum gdb_lisp_params): Put in #if 0, since it doesn't
6238 work on systems not allowing enumerators > INT_MAX, and it
6239 won't work if EMACS_INT is long long.
6240
1b0d24e7
PE
62411999-11-22 Paul Eggert <eggert@twinsun.com>
6242
6243 Port to SunOS 4.1.x again. Help out with Alpha port.
6244 Rename messages-locale to system-messages-locale,
6245 and likewise for time-locale.
427ec082 6246
1b0d24e7
PE
6247 * callproc.c (strerror): Remove decl.
6248 * fileio.c (strerror): Likewise.
6249 * process.c (strerror): Likewise.
6250 * emacs.c (strerror): Likewise.
6251 (Vsystem_messages_locale): Renamed from Vmessages_locale.
6252 All uses changed.
6253 (Vprevious_system_messages_locale): Likewise, from
6254 Vprevious_messages_locale.
6255 (Vsystem_time_locale): Likewise, from Vtime_locale.
6256 (Vprevious_system_time_locale): Likewise, from Vprevious_time_locale.
6257 (ABORT_RETURN_TYPE): New macro.
6258 (abort): Return type is now ABORT_RETURN_TYPE.
6259 (main): Always invoke init_signals, even if POSIX_SIGNALS is not
6260 defined.
6261 (syms_of_emacs): messages-locale -> system-messages-locale,
6262 previous-messages-locale -> previous-system-messages-locale,
6263 time-locale -> system-time-locale,
6264 previous-time-locale -> previous-system-time-locale.
6265
6266 * gmalloc.c (PP, __ptr_t): Assume ANSI C if STDC_HEADERS is defined.
6267 (const): Do not define; that's config.h's job.
6268 (<limits.h>): Include if HAVE_LIMITS_H is defined.
6269 (CHAR_BIT): Move test for definedness outside of limits.h condition.
6270 (<stddef.h>): Include if STDC_HEADERS is defined.
6271 (FREE_RETURN_TYPE): New macro.
6272 (free): Return type is now FREE_RETURN_TYPE.
6273
6274 * lisp.h (synchronize_system_time_locale): Renamed from
6275 synchronize_time_locale. All uses changed.
6276 (synchronize_system_messages_locale): Likewise, from
6277 synchronize_messages_locale.
6278
6279 * m/alpha.h (malloc, realloc, calloc): Remove decls;
6280 stdlib.h now does this.
6281
6282 * process.c (sys_siglist): Remove.
6283
6284 * s/sunos4-0.h (ABORT_RETURN_TYPE, FREE_RETURN_TYPE):
6285 New macros.
6286
6287 * syntax.c (scan_sexps_forward): Use abort, not assert.
6288
6289 * sysdep.c (my_sys_siglist): New var.
6290 (sys_siglist): New macro. Remove old initialized vars of same name.
6291 (init_signals): Initialize sys_siglist.
6292
6293 * xfns.c (abort): Remove decl; stdlib.h now does this.
6294
0dcd5b54
DL
62951999-11-18 Dave Love <fx@gnu.org>
6296
946173ad
DL
6297 * filelock.c: Add forward declaration for get_boot_time_1.
6298
0dcd5b54
DL
6299 * dispnew.c (Finternal_show_cursor_p): Fix doc string.
6300
71447e8f
GM
63011999-11-18 Gerd Moellmann <gerd@gnu.org>
6302
6303 * buffer.h (struct buffer_text): Add comment about moving
6304 buffer text if REL_ALLOC is defined.
6305
eeedff63
KH
63061999-11-18 Kenichi Handa <handa@etl.go.jp>
6307
6308 * lisp.h (KEY_DESCRIPTION_SIZE): New macro.
6309
6310 * keyboard.c (echo_char): Use KEY_DESCRIPTION_SIZE to check free
6311 memory for push_key_description.
6312
6313 * keymap.c (Fsingle_key_description): Use KEY_DESCRIPTION_SIZE to
6314 allocate memory for push_key_description.
6315 (describe_buffer_bindings): Likewise.
6316
5d7e4a2c
GM
63171999-11-17 Gerd Moellmann <gerd@gnu.org>
6318
6319 * xfns.c (Fx_show_busy_cursor): Doc-fix.
6320 (Fx_hide_busy_cursor): Ditto.
6321
63221999-11-17 Marco Walther <walther@siemens-pyramid.com>
6323
6324 * unexsni.c (unexec): Handle .rel.dyn section.
6325
b5b41e02
DL
63261999-11-16 Dave Love <fx@gnu.org>
6327
6328 * doc.c (Fdocumentation): Remove gcpro here too.
6329
e35b6123
GM
63301999-11-16 Gerd Moellmann <gerd@gnu.org>
6331
6332 * keyboard.c (command_loop_1): Remove no_redisplay.
6333
83c8f461 63341999-11-16 Richard M. Stallman <rms@gnu.org>
0a14b9bb
GM
6335
6336 * print.c (PRINTPREPARE): Don't call setup_echo_area_for_printing
6337 in noninteractive.
6338
b05d3bee
GM
63391999-11-14 Gerd Moellmann <gerd@gnu.org>
6340
5bcfeb49
GM
6341 * xdisp.c (ensure_echo_area_buffers): New.
6342 (with_echo_area_buffer): Use it.
6343 (setup_echo_area_for_printing): Ditto.
6344
b05d3bee
GM
6345 * buffer.c (indicate-empty-lines): Doc-fix.
6346
9b2e6e4c
GM
63471999-11-12 Gerd Moellmann <gerd@gnu.org>
6348
e7f90eab
GM
6349 * term.c (term_init): If "op" isn't available, don't support color
6350 because we can't switch back to the default foreground and
6351 background.
6352
9b2e6e4c
GM
6353 * doc.c (Fdocumentation_property): Remove GCPRO because
6354 Fsubstitute_command_keys gcpro's the string.
6355
1bf21027
KH
63561999-11-12 Kenichi Handa <handa@etl.go.jp>
6357
6358 * editfns.c (Ftranslate_region): Check the buffer multibyteness.
6359
3bc6df53
GM
63601999-11-11 Gerd Moellmann <gerd@gnu.org>
6361
6362 * print.c, keymap.c, indent.c, insdel.c, keyboard.c, intervals.c,
6363 lread.c, textprop.c, undo.c, emacs.c, lisp.h, intervals.h,
6364 buffer.h, config.in, Makefile.in: Remove USE_TEXT_PROPERTIES.
6365
35a5514b
GM
63661999-11-10 Gerd Moellmann <gerd@gnu.org>
6367
6368 * xfns.c (QCuser_data): Removed.
6369 (syms_of_xfns): Initialization of QCuser_data removed.
6370 (parse_image_spec): Don't handle :user-data specially. Allow
6371 unknown keys. Remove parameter ALLOW_OTHER_KEYS.
6372 (xbm_image_p, xbm_load, xpm_image_p, pbm_image_p, png_image_p)
6373 (tiff_image_p, jpeg_image_p, gif_image_p, gs_image_p): Call
6374 parse_image_spec accordingly.
6375
83c8f461 63761999-11-09 Richard M. Stallman <rms@gnu.org>
4ea68fcc
RS
6377
6378 * cmds.c (Fbeginning_of_line): Doc fix.
6379 (Fend_of_line): Doc fix.
6380
6381 * editfns.c (Fline_beginning_position): If N is not 1,
6382 pass t to Fconstrain_to_field for ESCAPE-FROM-EDGE.
6383
6384 * syntax.c (Fforward_word): Handle fields even if would have hit
6385 an edge of the buffer. Return nil if affected by fields.
6386
83c8f461 63871999-11-09 Richard M. Stallman <rms@gnu.org>
4ea68fcc
RS
6388
6389 * editfns.c (preceding_pos): Function deleted.
6390 (text_property_stickiness): Decrement POS directly.
6391 Fix a confusion that used PT instead of POS.
6392
6393 * editfns.c (find_field): Properly handle the case
6394 of a field boundary where `field' inherits from neither side.
6395
6396 * editfns.c (Ffield_beginning, Ffield_end): Doc fixes.
6397 (Ferase_field, Ffield_string, Ffield_string_no_properties): Doc fixes.
6398
fa9aabf6
GM
63991999-11-08 Gerd Moellmann <gerd@gnu.org>
6400
6401 * bytecode.c (Fbyte_code) <BinsertN, Bcall>: Do the
6402 BEFORE_POTENTIAL_GC before DISCARD.
6403
4015b3c0
GM
64041999-11-07 Gerd Moellmann <gerd@gnu.org>
6405
033a5fa3
GM
6406 * alloc.c (Fgarbage_collect): Call unmark_byte_stack.
6407
6408 * lisp.h: Add prototype for unmark_byte_stack.
6409
6410 * bytecode.c (mark_byte_stack): Use XMARKBIT and XMARK.
6411 (unmark_byte_stack): Renamed from relocate_byte_pcs. Use
6412 XUNMARK.
6413
55b064bd
GM
6414 * xdisp.c (resize_mini_window): Fix computation of needed
6415 mini-window height.
6416
6417 * alloc.c, buffer.c, editfns.c, xdisp.c: Remove conditional
6418 compilation on USE_TEXT_PROPERTIES.
01e9b9df 6419
4015b3c0 6420 * Fbyte_code: Use block statements in cases and declare v1 and v2
60af03f1 6421 locally there. Rearrange case statements so that those most
4015b3c0
GM
6422 frequently executed come first. Avoid goto's in frequently
6423 executed cases.
6424
fe512f27
GM
64251999-11-05 Gerd Moellmann <gerd@gnu.org>
6426
dd59e217
GM
6427 * bytecode.c (Fbyte_code): Use BEFORE_POTENTIAL_GC and
6428 AFTER_POTENTIAL_GC around internal_catch.
6429
bcf28080
GM
6430 * alloc.c (Fgarbage_collect): Call mark_byte_stack and
6431 relocate_byte_pcs.
6432 (init_alloc_once, init_alloc): Set byte_stack_list to null.
6433
6434 * eval.c (struct catchtag): Add member byte_stack.
6435 (internal_catch, Fcondition_case, internal_condition_case)
dd59e217 6436 (internal_condition_case_1): Save value of byte_stack_list in
bcf28080
GM
6437 catchtag.
6438 (unwind_to_catch): Restore byte_stack_list from catchtag.
6439
6440 * lisp.h: Add prototypes for new functions in bytecode.c.
6441 Add extern declaration for byte_stack_list.
6442
6443 * bytecode.c (struct byte_stack): New.
6444 (byte_stack_list, mark_byte_stack, relocate_byte_pcs): New
6445 (BEFORE_POTENTIAL_GC, AFTER_POTENTIAL_GC): New.
6446 (FETCH, PUSH, POP, DISCARD, TOP, MAYBE_GC): Rewritten.
6447 (HANDLE_RELOCATION): Removed.
6448 (Fbyte_code): Use byte_stack structures.
6449
4d59c34c
GM
6450 * filelock.c (Ffile_locked_p): Make FILENAME a required argument.
6451
fe512f27
GM
6452 * buffer.c (syms_of_buffer): Extend documentation of
6453 mode-line-format.
6454
60b64cd6
GM
64551999-11-04 Gerd Moellmann <gerd@gnu.org>
6456
6457 * editfns.c (Fdelete_field): Renamed from Ferase_field.
6458
6459 * minibuf.c (do_completion, Fminibuffer_complete_word): Use
6460 Ferase_field instead of Fdelete_field.
6461
b51b619b
GM
64621999-11-03 Gerd Moellmann <gerd@gnu.org>
6463
6464 * dispnew.c (Finternal_show_cursor): Change it to set the
6465 cursor on/off, not toggle its state.
6466 (Finternal_show_cursor_p): New.
6467 (syms_of_display): Defsubr Sinternal_show_cursor_p.
6468
5865af0d
DL
64691999-11-03 Dave Love <fx@gnu.org>
6470
6471 * charset.c (split_non_ascii_string): Define return value.
6472
82a700f3
GM
64731999-11-03 Gerd Moellmann <gerd@gnu.org>
6474
edfef199
GM
6475 * minibuf.c (string_to_object): New.
6476 (read_minibuf_noninteractive): New.
6477 (read_minibuf): Call read_minibuf_noninteractive if
6478 noninteractive. Use string_to_object.
6479
82a700f3
GM
6480 * doc.c (Fdocumentation_property): Fix bug bypassing UNGCPRO.
6481
b5540f0d
DL
64821999-11-02 Dave Love <fx@gnu.org>
6483
e69dcd60
DL
6484 * gnu-linux.h: Use SIGCHLD, not SIGCLD (not in glibc 2.1).
6485
827a1788
DL
6486 * process.c: Define _GNU_SOURCE before config.h to get strsignal
6487 declared with glibc2.
b5540f0d 6488
a69a6e61
GM
64891999-11-02 Gerd Moellmann <gerd@gnu.org>
6490
6491 * lisp.h (QUIT): Give it statement form.
6492
87e21fbd
DL
64931999-11-02 Dave Love <fx@gnu.org>
6494
6495 * eval.c (init_eval): Conditionalize declaration of gcpro_level.
6496
1b335865
GM
64971999-11-02 Gerd Moellmann <gerd@gnu.org>
6498
9fb5e03d
GM
6499 * xfns.c (QCuser_data): New.
6500 (syms_of_xfns): Initialize QCuser_data.
6501 (parse_image_spec): Ignore :user-data DATA properties.
6502
1b335865
GM
6503 * xdisp.c (display_line): Set charpos of first glyph in blank
6504 lines not corresponding to any text to -1, even if no glyphs are
6505 filled in in that line.
6506
e76f1c44
GM
65071999-11-01 Gerd Moellmann <gerd@gnu.org>
6508
427ec082 6509 * xfns.c (png_load) [PNG_READ_sRGB_SUPPORTED]: Put code using
36fcd3d9
GM
6510 png_get_sRGB in #ifdef.
6511
111259b4
GM
6512 * dispnew.c (Finternal_show_cursor): Renamed from Fshow_cursor.
6513 (syms_of_display): Use the new name.
6514
dd5c96e8
GM
6515 * textprop.c (verify_interval_modification): Signal text-read-only
6516 instead of calling error.
6517
db8878fb
GM
6518 * data.c (Qtext_read_only): New built-in error.
6519 (syms_of_data): Initialize it.
6520
6521 * lisp.h: Add extern declaration for Qtext_read_only.
6522
e76f1c44
GM
6523 * syntax.c: Remove whitespace after open or in front of closing
6524 parentheses.
6525
83c8f461 65261999-11-01 Richard M. Stallman <rms@gnu.org>
cb3a6c48
GM
6527
6528 * Makefile.in (w16select.o, sound.o): Don't depend on lisp.h.
6529
7843e09c
GM
65301999-10-31 Gerd Moellmann <gerd@gnu.org>
6531
575ed805
GM
6532 * xdisp.c (resize_mini_window): Compute needed height differently.
6533
7843e09c
GM
6534 * fns.c (Flength): Unroll loop over lists.
6535
6536 * xdisp.c (append_space): Return non-zero if space was appended.
6537 (display_line): Set charpos of first glyph to -1 only if that
6538 glyph is the space added by append_glyph.
6539
83c8f461 65401999-10-30 Richard M. Stallman <rms@gnu.org>
cb3a6c48
GM
6541
6542 * print.c (strout): Consider `noninteractive' and use stdout
6543 only when PRINTCHARFUN is t.
6544
6545 * lisp.h (struct gcpro) [DEBUG_GCPRO]: New field `level'.
6546 (gcpro_level): Declare it extern.
6547 [DEBUG_GCPRO] (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
6548 Alternate definitions that set `level' and increment `gcpro_level'.
6549 [DEBUG_GCPRO] (UNGCPRO): Alternate definition that checks gcpro_level.
6550
6551 * eval.c [DEBUG_GCPRO] (gcpro_level): New variable.
6552 (init_eval) [DEBUG_GCPRO]: Initialize it.
6553 (unwind_to_catch) [DEBUG_GCPRO]: Set gcpro_level
6554 from remaining gcprolist.
6555
3636f7a3
KH
65561999-10-29 Kenichi Handa <handa@etl.go.jp>
6557
6558 * coding.c (code_convert_region): Update `dst' correctly.
6559
a2ad7096
GM
65601999-10-28 Gerd Moellmann <gerd@gnu.org>
6561
6562 * fns.c (Fmemq, Fassq, Frassq, assq_no_quit, Fassoc)
6563 (Frassoc): Rewritten.
6564
1e3196e8
GM
65651999-10-27 Noah Friedman <friedman@splode.com>
6566
6567 * s/gnu-linux.h [HAVE_DEV_PTMX]: Redefine FIRST_PTY_LETTER to 'z'.
6568 Define PTY_NAME_SPRINTF.
6569 Redefine PTY_TTY_NAME_SPRINTF.
6570 * config.in: Add undef for HAVE_DEV_PTMX.
6571
83c8f461 65721999-10-26 Richard M. Stallman <rms@gnu.org>
4ea68fcc
RS
6573
6574 * regex.c (POP_FAILURE_POINT): Use failure_id.integer
6575 as arg to DEBUG_POP and DEBUG_PRINT.
6576
83c8f461 65771999-10-27 Richard M. Stallman <rms@gnu.org>
17dbfaad
GM
6578
6579 * data.c (Qad_activate_internal): Renamed from Qad_activate.
6580 (Ffset): Call Qad_activate_internal.
6581 (syms_of_data): Initialize Qad_activate_internal.
6582
26922151
GM
65831999-10-27 Gerd Moellmann <gerd@gnu.org>
6584
6585 * xdisp.c (echo_area_display) [HAVE_X_WINDOWS]: Do nothing if
6586 Vterminal_frame is selected and Vwindow_system is non-nil.
6587
67a5596f
GM
65881999-10-26 Gerd Moellmann <gerd@gnu.org>
6589
2bea706b
GM
6590 * xdisp.c (echo_area_display): Put previous change in #if 0.
6591
67a5596f
GM
6592 * emacs.c (standard_args): Add `file' as synonym for `visit',
6593 `execute' as synonym for `eval'.
6594 (main): Add new options to usage message.
6595
81dc5de5
GM
65961999-10-25 Gerd Moellmann <gerd@gnu.org>
6597
6598 * data.c (Qhash_table): New.
6599 (Ftype_of): Return it for hash tables.
6600 (syms_of_data): Initialize Qhash_table.
6601
83c8f461 66021999-10-25 Richard M. Stallman <rms@gnu.org>
bd3c545d
GM
6603
6604 * regex.c (POP_FAILURE_POINT): Extract failure_id as an integer.
6605
66e4690f 66061999-10-24 Ken Raeburn <raeburn@gnu.org>
3a7093d8 6607
7539e11f
KR
6608 * alloc.c: Undef HIDE_LISP_IMPLEMENTATION before including
6609 lisp.h.
6610
6611 * buffer.c (Fbuffer_list, Fget_file_buffer, get_truename_buffer,
6612 Fbuffer_local_variables, Fother_buffer, record_buffer,
6613 set_buffer_internal_1, Fbury_buffer, Fkill_all_local_variables,
6614 swap_out_buffer_local_variables, overlays_at, overlays_in,
6615 overlay_touches_p, overlay_strings, recenter_overlay_lists,
6616 fix_overlays_in_range, fix_overlays_before, Foverlay_get,
6617 Foverlay_put, report_overlay_modification, evaporate_overlays):
6618 Use XCAR, XCDR, and XFLOAT_DATA instead of explicit member
6619 references.
6620 * data.c (Fcar, Fcar_safe, Fcdr, Fcdr_safe, Fsetcar, Fsetcdr,
6621 swap_in_symval_forwarding, set_internal, default_value,
6622 Fset_default, Fmake_variable_buffer_local, Fmake_local_variable,
6623 Fmake_variable_frame_local, Flocal_variable_p,
6624 Flocal_variable_if_set_p, arithcompare, Fzerop, cons_to_long,
6625 Fnumber_to_string, float_arith_driver, Fadd1, Fsub1): Likewise.
6626 * dispnew.c (Fframe_or_buffer_changed_p): Likewise.
6627 * emacs.c (main): Likewise.
6628 * fontset.c (fs_load_font, fs_register_fontset,
6629 CACHED_FONTSET_NAME, CACHED_FONTSET_REGEX, Fquery_fontset,
6630 Fnew_fontset, Fset_fontset_font): Likewise.
6631 * frame.c (do_switch_frame, next_frame, prev_frame,
6632 other_visible_frames, Fdelete_frame, Fvisible_frame_list):
6633 Likewise.
6634 * keyboard.c (read_char, help_char_p, event_to_kboard,
6635 kbd_buffer_get_event, timer_start_idle, timer_check,
6636 make_lispy_event, apply_modifiers, reorder_modifiers,
6637 Fevent_convert_list, lucid_event_type_list_p, menu_bar_items,
6638 menu_bar_one_keymap, menu_item_eval_property_1, parse_menu_item,
6639 tool_bar_items, read_char_x_menu_prompt, read_key_sequence,
6640 Fcommand_execute, Fexecute_extended_command): Likewise.
6641 * minibuf.c (read_minibuf, get_minibuffer, Ftry_completion,
6642 Fall_completions): Likewise.
6643 * window.c (Fset_window_margins): Likewise.
6644
6645 * callint.c (quotify_args): Don't explicitly use struct
6646 Lisp_Cons, use Lisp_Object and XCAR/XCDR instead.
6647
3a7093d8
KR
6648 * s/netbsd.h (HAVE_GETLOADAVG): Define as 1.
6649 (UNEXEC, START_FILES, LIB_STANDARD, LIB_GCC): Define ELF versions,
6650 if __ELF__ is defined.
6651
2a3d7146
GM
66521999-10-24 Gerd Moellmann <gerd@gnu.org>
6653
6654 * window.c (Fnext_window): Add a QUIT in the loop.
6655
8ac52782
GM
66561999-10-23 Gerd Moellmann <gerd@gnu.org>
6657
427ec082 6658 * Makefile.in (bootstrap, bootstrap-emacs, bootstrap-temacs):
8ac52782
GM
6659 New targets.
6660
05f0d15a
DL
66611999-10-22 Dave Love <fx@gnu.org>
6662
6663 * emacs.c (main): Enable profiling conditional on __linux also.
6664
882fb0e6
GM
66651999-10-20 Gerd Moellmann <gerd@gnu.org>
6666
6667 * xrdb.c (x_load_resources): Set default resources for resource
6668 classes instead of for the specific Emacs.
6669
b5f5bc31
GM
66701999-10-19 Gerd Moellmann <gerd@gnu.org>
6671
66f4dd69
GM
6672 * s/freebsd.h (HAVE_GETLOADAVG): Define as 1 because config.h
6673 defines it that way.
427ec082 6674
b5f5bc31
GM
6675 * xdisp.c (echo_area_display) [HAVE_X_WINDOWS]: Do nothing
6676 if selected_frame is equal to Vterminal_frame.
6677
68c45bf0 66781999-10-19 Paul Eggert <eggert@twinsun.com>
427ec082 6679
68c45bf0 6680 Add support for large files, 64-bit Solaris, system locale codings.
427ec082 6681
68c45bf0
PE
6682 * Makefile.in (emacs): Set the LC_ALL environment variable to "C"
6683 when dumping, so that the dumped Emacs doesn't have stray locale info.
6684 (dired.o): Depend on systime.h.
6685 (editfns.o): Depend on coding.h.
6686
6687 * alloc.c, buffer.c, callproc.c, ccl.c, charset.c, coding.c, data.c,
6688 dispnew.c, editfns.c, emacs.c, filelock.c, floatfns.c, hftctl.c,
6689 keyboard.c, process.c, sysdep.c, unexelf.c, unexhp9k800.c,
6690 unexsunos4.c, vmsfns.c, vmsgmalloc.c, w32faces.c, w32menu.c, w32term.c,
6691 w32xfns.c, xfaces.c, xfns.c, xmenu.c, xterm.c:
6692 Include <config.h> before any system include files.
6693
6694 * alloc.c, buffer.c, ccl.c, data.c, editfns.c, emacs.c, eval.c,
6695 fileio.c, filelock.c, frame.c, insdel.c, keymap.c, lread.c,
6696 m/alpha.h, print.c, search.c, sysdep.c, xdisp.c, xfaces.c, xfns.c,
6697 xmenu.c, xterm.c:
6698 Do not include <stdlib.h>, as <config.h> does this now.
6699
6700 * callproc.c (Fcall_process):
6701 Synchronize messages locale before invoking strerror.
6702 Decode resulting string with locale-coding-system.
6703
6704 * coding.c (Vlocale_coding_system): New var.
6705 (syms_of_coding): Adjust to above change.
6706 (emacs_strerror): New function.
6707
6708 * coding.h (emacs_strerror, Vlocale_coding_system): New decls.
427ec082 6709
68c45bf0
PE
6710 * config.in (HAVE_STDIO_EXT_H, HAVE_TM_GMTOFF, HAVE___FPENDING,
6711 HAVE_FTELLO, HAVE_GETLOADAVG, HAVE_MBLEN, HAVE_MBRLEN,
6712 HAVE_STRSIGNAL): New macros.
6713 (BITS_PER_LONG): Default to 64 if _LP64 is defined.
6714 <stdlib.h>: Include if HAVE_STDLIB_H is defined and NOT_C_CODE isn't.
6715
6716 * dired.c: Include "systime.h".
6717 (Ffile_attributes): Do not cast s.st_size to int; this loses
6718 information if int is 32 bits but st_size and EMACS_INT are larger.
6719 Treat large device numbers like large inode numbers.
6720
6721 * dispnew.c (PENDING_OUTPUT_COUNT): Use __fpending if available.
6722
6723 * editfns.c: Include coding.h.
6724 (emacs_strftime): Remove decl.
6725 (emacs_strftimeu): New decl.
6726 (emacs_memftimeu): Renamed from emacs_memftime; new arg UT.
6727 Use emacs_strftimeu instead of emacs_strftime.
6728 (Fformat_time_string): Convert format string using
6729 Vlocale_coding_system, and convert result back. Synchronize time
6730 locale before invoking lower level function. Invoke
6731 emacs_memftimeu, passing ut, instead of emacs_memftime.
427ec082 6732
68c45bf0
PE
6733 * emacs.c: Include <locale.h> if HAVE_SETLOCALE is defined.
6734 (Vmessages_locale, Vprevious_messages_locale, Vtime_locale,
6735 Vprevious_time_locale): New variables.
6736 (main): Invoke setlocale early, so that initial error messages are
6737 localized properly. But skip locale-setting if LC_ALL is "C".
6738 Fix up locale when it's safe to do so.
6739 (fixup_locale): Moved here from xterm.c.
6740 (synchronize_locale, synchronize_time_locale,
6741 synchronize_messages_locale): New functions.
6742 (syms_of_emacs): Accommodate above changes.
6743
6744 * fileio.c (report_file_error): Convert strerror output according
6745 to Vlocale_coding_system.
6746 (Finsert_file_contents): Check for arithmetic overflow in
6747 computations that depend on file size. Report IO errors
6748 with emacs_strerror, not strerror.
6749
6750 * fns.c (Fgethash): Declare dflt parameter.
6751
6752 * gmalloc.c: Do not define const to nothing if HAVE_CONFIG_H
6753 is defined; that's config.h's job.
6754
6755 * lisp.h (EMACS_INT, BITS_PER_EMACS_INT, EMACS_UINT): If _LP64,
6756 default these values to long, BITS_PER_LONG, and unsigned long.
6757 (VALBITS, MARKBIT, XINT): Do not assume 32-bit EMACS_INT.
6758 (PNTR_COMPARISON_TYPE): Default to EMACS_UINT, not to unsigned int.
6759 (code_convert_string_norecord, fixup_locale,
6760 synchronize_messages_locale, synchronize_time_locale,
6761 emacs_open, emacs_close, emacs_read, emacs_write): New decls.
6762 All Emacs callers of open, close, read, write changed to use
6763 emacs_open, emacs_close, emacs_read, emacs_write.
6764
6765 * lread.c (file_offset, file_tell): New macros. All uses of ftell
6766 changed to file_tell.
6767 (saved_doc_string_position, prev_saved_doc_string_position): Now
6768 of type file_offset.
6769 (init_lread): Do not fix locale here; fixup_locale now does this.
6770
6771 * m/amdahl.h, s/usg5-4.h:
6772 (NSIG): Remove.
6773 (NSIG_MINIMUM): New macro.
6774
6775 * m/cydra5.h, m/dpx2.h, m/mips.h, m/pfa50.h, m/sps7.h, m/stride.h,
6776 m/ustation.h, s/gnu-linux.h, s/hpux.h, s/iris3-5.h, s/iris3-6.h,
6777 s/umips.h, s/usg5-4.h:
6778 (SIGIO): Do not undef.
6779 (BROKEN_SIGIO): New macro.
6780
6781 * m/ustation.h:
6782 (SIGTSTP): Do not undef.
6783 (BROKEN_SIGTSTP): New macro.
6784
6785 * s/gnu-linux.h:
6786 (SIGPOLL, SIGURG): Do not undef.
6787 (BROKEN_SIGPOLL, BROKEN_SIGURG): New macros.
6788
6789 * s/ptx4.h:
6790 (SIGINFO): Do not undef.
6791 (BROKEN_SIGINFO): New macros.
427ec082 6792
68c45bf0
PE
6793 * m/delta.h, s/ptx.h, s/template.h: Doc fix.
6794
6795 * mktime.c, strftime.c: Update to glibc 2.1.2 version, with
6796 some Emacs-related changes merged.
6797
6798 * print.c (float_to_string): Prepend "-" to representation of a
6799 NaN if the NaN is negative.
6800
6801 * process.c (sys_siglist): Omit if HAVE_STRSIGNAL.
6802 (wait_reading_process_input): Use emacs_strerror, not strerror.
427ec082 6803
68c45bf0
PE
6804 * process.c (status_message, sigchld_handler): Synchronize locale,
6805 then use strsignal istead of sys_siglist.
6806 * w32proc.c (sys_wait): Likewise.
427ec082 6807
68c45bf0
PE
6808 * s/aix3-1.h, s/bsd4-1.h, s/dgux.h, s/gnu-linux.h, s/hiuxmpp.h,
6809 s/hpux.h, s/iris3-5.h, s/iris3-6.h, s/irix3-3.h, s/osf1.h, s/rtu.h,
6810 s/sunos4-1.h, s/unipl5-0.h, s/unipl5-2.h, s/usg5-0.h, s/usg5-2-2.h,
6811 s/usg5-2.h, s/usg5-3.h, s/xenix.h:
6812 (open, close, read, write, INTERRUPTIBLE_OPEN,
6813 INTERRUPTIBLE_CLOSE, INTERRUPTIBLE_IO): Remove.
6814
6815 * s/sol2-5.h (_LARGEFILE_SOURCE, _FILE_OFFSET_BITS): New macros.
6816
6817 * sysdep.c (sys_read, sys_write, read, write, sys_close, close,
6818 sys_open, open): Remove.
6819 (emacs_open, emacs_close, emacs_read, emacs_write): Always define;
6820 the old INTERRUPTIBLE_OPEN, INTERRUPTIBLE_CLOSE, and INTERRUPTIBLE_IO
6821 macros are no longer used.
6822 (emacs_open): Renamed from sys_open. Merge BSD4_1 version.
6823 (emacs_close): Renamed from sys_close.
6824 (emacs_read): Renamed from sys_read.
6825 (emacs_write): Renamed from sys_write.
6826 (sys_siglist): Do not declare if HAVE_STRSIGNAL.
6827 (dup2): Do not print error on failure; the real dup2 doesn't.
6828 (strsignal): New function, defined if !HAVE_STRSIGNAL.
6829
6830 * syssignal.h (SIGINFO): Undef if defined and if BROKEN_SIGINFO
6831 is defined.
6832 (SIGIO, SIGPOLL, SIGTSTP, SIGURG): Likewise.
6833 (NSIG): If less than NSIG_MINIMUM, define to NSIG_MINIMUM.
6834 (strsignal): Declare if !HAVE_STRSIGNAL.
6835
6836 * unexelf.c (ElfBitsW, ELFSIZE, ElfExpandBitsW): New macros.
6837 (ElfW): Define in terms of ElfExpandBitsW.
6838
6839 * w32proc.c (sys_siglist): Remove decl.
6840
6841 * xdisp.c (decode_mode_spec): 3rd arg is int, not char, to comply
6842 with ANSI C.
6843 (display_string): Declare face_string_pos arg.
6844
6845 * xfns.c (Fx_show_tip): Declare timeout param.
6846
6847 * xterm.c: No need to include locale.h.
6848 (x_alloc_lighter_color, x_setup_relief_color):
6849 Pass arg as double, not float, for compatibility with ANSI C.
6850 (fixup_locale): Move to emacs.c.
6851 (x_term_init): Do not setlocale or fixup locale; the main program
6852 does this now.
6853
2f0b74ea
DL
68541999-10-18 Dave Love <fx@gnu.org>
6855
6856 * doc.c (Fdocumentation_property): Gcpro `tem'.
6857
471aa4a0
KH
68581999-10-18 Kenichi Handa <handa@etl.go.jp>
6859
6860 * lread.c (Fload): Calculate bytes of filename correctly.
6861 (openp): Likewise.
6862
aca2020b
KH
68631999-10-18 Keisuke Nishida <kxn30@po.cwru.edu>
6864
6865 * print.c (print_preprocess): In case print-circle is nil,
6866 add OBJ to Vprint_number_table only when OBJ is a symbol.
6867
1f5fe392 68681999-10-18 Kenichi Handa <handa@etl.go.jp>
b843d1ae
KH
6869
6870 * coding.c (code_convert_string): Add record_unwind_protect to
6871 assure setting inhibit_pre_post_conversion back to zero. Take
6872 care of the multibyteness of the working buffer.
6873
6874 * coding.c (inhibit_pre_post_conversion): New variable.
6875 (setup_coding_system): If inhibit_pre_post_conversion is nonzero,
6876 ignore post-read-conversion and pre-write-conversion property of
6877 the coding system.
6878 (code_convert_region_unwind): New function.
6879 (code_convert_region): Set inhibit_pre_post_conversion to 1 while
6880 running pre-write-conversion and post-read-conversion.
6881 (code_convert_string): Likewise.
6882
cd876a91
GM
68831999-10-17 Miles Bader <miles@gnu.org>
6884
6885 * editfns.c: Doc fix.
6886
68871999-10-17 Miles Bader <miles@gnu.org>
6888
6889 * editfns.c (Fconstrain_to_field): Make sure we don't violate the
6890 argument preconditions of find_before_next_newline in the case
6891 where both ONLY_IN_LINE and ESCAPE_FROM_EDGE are set and OLD_POS
6892 was indeed at the edge.
6893
68941999-10-17 Miles Bader <miles@gnu.org>
6895
6896 * minibuf.c (Fminibuffer_complete_and_exit): Supply value for new
6897 ESCAPE_FROM_EDGE parameter to Ffield_beginning.
6898
6899 * editfns.c (text_property_eq, text_property_stickiness): Don't
6900 use initializers for auto variables of type Lisp_Object.
6901 (find_field): Likewise. Use braces around nested ifs.
6902 (Fline_end_position): Store the raw eol in a variable, so that the
6903 final expression doesn't look so ugly.
6904 (Fconstrain_to_field): Doc fix.
6905 (preceding_pos): Renamed from `preceeding_pos'.
6906 (text_property_stickiness, find_field): Call preceding_pos,
6907 not preceeding_pos.
6908
69091999-10-17 Miles Bader <miles@gnu.org>
6910
6911 * editfns.c (Ffield_string_no_properties): New function.
6912 (text_property_stickiness, preceeding_pos): New functions.
6913 (Ffield_string): Remove PROPS parameter.
6914 (find_field): Add MERGE_AT_BOUNDARY parameter.
6915 Rewrite to use stickiness of `field' property to resolve
6916 ambiguous cases.
6917 (Ffield_beginning, Ffield_end): Add ESCAPE_FROM_EDGE parameter.
6918 (Fconstrain_to_field): Likewise.
6919 (syms_of_editfns): Init Sfield_string_no_properties.
427ec082 6920 (Ffield_string, Ferase_field, Ffield_end):
cd876a91
GM
6921 Supply new MERGE_AT_BOUNDARY argument to find_field.
6922 (Fline_beginning_position, Fline_end_position): Supply new
6923 ESCAPE_FROM_EDGE parameter to Fconstrain_to_field.
6924 Pass a value of Qt for the ONLY_IN_LINE argument to
6925 Fconstrain_to_field (only matters if N != 1).
6926 * syntax.c (Fforward_word): Supply new ESCAPE_FROM_EDGE parameter
6927 to Fconstrain_to_field.
6928
6929 * minibuf.c (Fminibuffer_complete_word): Use
6930 Ffield_beginning to find the prompt end.
6931
69321999-10-17 Miles Bader <miles@gnu.org>
6933
6934 * editfns.c (Fconstrain_to_field): Add get/set-current-point
6935 behavior when NEW_POS is nil.
6936 (find_field): Use XSETFASTINT instead of make_number.
6937 * minibuf.c (Fminibuffer_complete_and_exit): Test for an empty
6938 input string by seeing where the field begins, instead of
6939 looking at text-properties.
6940
69411999-10-17 Miles Bader <miles@gnu.org>
6942
6943 * editfns.c (Qfield): New variable.
6944 (find_field, Ferase_field, Ffield_string,
6945 Ffield_beginning, Ffield_end, Fconstrain_to_field): New functions.
6946 (Fline_beginning_position, Fline_end_position): Constrain to any field.
6947 (make_buffer_string_both): Remove minibuffer-prompt hack.
6948 (syms_of_editfns): Initialize Qfield, and subr entries for
6949 field functions above.
6950 * minibuf.c (read_minibuf): Don't save minibuffer prompt length on
6951 minibuf_save_list.
6952 Don't initialize minibuffer prompt length.
6953 Wrap prompt text-properties around the entire prompt.
6954 Add 'prompt text-property to prompt.
6955 Get final value with Ffield_string instead of make_buffer_string.
6956 (read_minibuf_unwind): Don't restore minibuffer prompt length from
6957 minibuf_save_list.
6958 (do_completion): Get minibuffer input with Ffield_string
6959 instead of Fbuffer_string.
6960 Erase minibuffer input with Ferase_field instead of erase_buffer.
6961 (Fminibuffer_complete_and_exit): Likewise.
6962 Test whether buffer is empty by looking for the 'prompt text
6963 property at the end.
6964 Set prompt length by looking for the end of the prompt text property,
6965 and save prompt length for later use (since there is no longer a
6966 buffer variable to get it from).
6967 (Fminibuffer_prompt_width, Fminibuffer_prompt_end): Functions removed.
6968 (syms_of_minibuf): Remove initializations of
6969 Sminibuffer_prompt_width and Sminibuffer_prompt_end.
6970 * buffer.h (struct buffer): Remove prompt_end_charpos field.
427ec082 6971 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer, Fkill_buffer):
cd876a91
GM
6972 Don't initialize prompt_end_charpos field.
6973 * syntax.c (Fforward_word): Likewise.
6974 Constrain to any field.
6975
3f6f7508
GM
69761999-10-16 Gerd Moellmann <gerd@gnu.org>
6977
6978 * window.c (enum save_restore_action): New.
6979 (save_restore_orig_size): Change parameter list. Add
6980 functionality to check for valid orig_top and orig_height members
6981 in a window tree.
6982 (grow_mini_window): Call save_restore_orig_size with new parameter
6983 list.
6984 (shrink_mini_window): Restore old window sizes only if old
6985 size information is valid in all windows in a window tree.
427ec082 6986
06482119
GM
69871999-10-15 Gerd Moellmann <gerd@gnu.org>
6988
2710454d
GM
6989 * xmenu.c (set_frame_menubar): Don't call
6990 x_set_menu_resources_from_menu_face here.
6991 (update_frame_menubar): Call x_set_menu_resources_from_menu_face.
6992
06482119
GM
6993 * xfns.c (gif_load): Fix handling of interlaced GIFs.
6994
17fa2837
DL
69951999-10-14 Dave Love <fx@gnu.org>
6996
6997 * xdisp.c (handle_fontified_prop): GCPRO `pos'.
6998
45f93416
GM
69991999-10-14 Gerd Moellmann <gerd@gnu.org>
7000
7001 * process.c (Fopen_network_stream): Don't loop if gethostbyname
7002 fails and h_errno is TRY_AGAIN.
7003
c765b723
DL
70041999-10-13 Dave Love <fx@gnu.org>
7005
7006 * filelock.c (lock_file): Move gcpro of `fn'.
7007
dace7f4e
GM
70081999-10-10 Gerd Moellmann <gerd@gnu.org>
7009
7010 * keyboard.c (auto-save-interval): Fix documentation.
427ec082 7011
83c8f461 70121999-10-09 Richard M. Stallman <rms@gnu.org>
73fb36f1
RS
7013
7014 * print.c (print): When removing objects from Vprint_number_table,
7015 only scan the newly added objects.
7016 (print_preprocess): If OBJ is a gensym, and print-continuous-numbering,
7017 unconditionally force it to stay in the table.
7018
85177c86
GM
70191999-10-09 Gerd Moellmann <gerd@gnu.org>
7020
7021 * xfns.c (prepare_image_for_display): Don't try to load image if
7022 loading it failed before.
7023 (lookup_image, prepare_image_for_display): Remember if loading the
7024 image failed.
7025 (xpm_load): Add missing UNBLOCK_INPUT.
7026
7027 * dispextern.h (struct image): New member load_failed_p.
7028
11e4de5d
SM
70291999-10-08 Stefan Monnier <monnier@cs.yale.edu>
7030
f28eba7b 7031 * fileio.c (Fmake_temp_name): Add a reference to `make-temp-file'
11e4de5d
SM
7032 in the docstring.
7033
f1da8f06
GM
70341999-10-08 Gerd Moellmann <gerd@gnu.org>
7035
7036 * xterm.c (XTread_socket) <ClientMessage, WM_TAKE_FOCUS>:
7037 Don't call XSetInputFocus because that can generate additional
7038 FocusIn events.
427ec082 7039
c37bbd4f
GM
70401999-10-07 Jeffrey C Honig <jch@bsdi.com>
7041
7042 * bsdos4.h [HAVE_LIBNCURSES]: Define TERMINFO and LIBS_TERMCAP.
7043
83c8f461 70441999-10-07 Richard M. Stallman <rms@gnu.org>
78cc5c64
GM
7045
7046 * process.c (wait_reading_process_input): When trying to suck
7047 input from one process, for accept-process-output,
7048 exit that loop if we get EAGAIN or EWOULDBLOCK.
7049
577d9e2f
GM
70501999-10-07 Gerd Moellmann <gerd@gnu.org>
7051
7052 * xfaces.c (Qbitmap_spec_p): Replaces Qpixmap_spec_p.
7053 (Fbitmap_spec_p): Replaces Fpixmap_spec_p.
7054 (load_pixmap): Use Fbitmap_spec_p and Qbitmap_spec_p instead of
7055 Fpixmap_spec_p and Qpixmap_spec_p.
7056 (load_face_colors, check_lface_attrs,
7057 merge_face_vector_with_property,
7058 Finternal_set_lisp_face_attribute): Use Fbitmap_spec_p.
7059 (syms_of_xfaces): Initialize Qbitmap_spec_p, defsubr
7060 Fbitmap_spec_p.
7061
f5737ad2
GM
70621999-10-07 Gerd Moellmann <gerd@gnu.org>
7063
7064 * xdisp.c (display_menu_bar): Use MENU_FACE_ID instead of
7065 MODE_LINE_FACE_ID.
7066
7067 * xfaces.c (toplevel) [USE_MOTIF]: Include some Motif headers.
7068 (struct x_resources) [USE_X_TOOLKIT]: New.
7069 (xm_apply_resources, xm_set_menu_resources_from_menu_face)
7070 [USE_MOTIF]: New.
7071 (xl_apply_resources, xl_set_menu_resources_from_menu_face)
7072 [USE_LUCID]: New.
7073 (x_set_menu_resources_from_menu_face) [USE_X_TOOLKIT]: New.
7074 (Qmenu): New.
7075 (syms_of_xfaces): Initialize Qmenu.
7076 (realize_basic_faces): Realize face `menu'.
7077 (resolve_face_name): New.
7078 (lface_from_face_name): Use it.
7079 (Finternal_set_lisp_face_attribute): Ditto.
7080 (Fpixmap_spec_p): Rewritten. Extend doc string.
7081
7082 * xmenu.c (set_frame_menubar, xmenu_show): Call
7083 x_set_menu_resources_from_menu_face.
7084
7085 * dispextern.h (enum face_id): Add MENU_FACE_ID.
7086 (toplevel): Include X11/Intrinsic.h.
7087
6a1aa823
DL
70881999-10-03 Ken'ichi Handa <handa@gnu.org>
7089
7090 * coding.c (DECODE_CHARACTER_ASCII): Decode ASCII invocated to GR
7091 correctly.
7092
26901792
DL
70931999-09-30 Kenichi Handa <handa@etl.go.jp>
7094
7095 * category.c (modify_lower_category_set): Set default value of
7096 TABLE correctly.
7097
7098 * minibuf.c (Fminibuffer_complete_word): Calculate string byte
7099 size correctly.
7100
71011999-09-29 Gerd Moellmann <gerd@gnu.org>
7102
7103 * editfns.c (Fpropertize): Renamed from Fproperties.
7104
71051999-09-29 Gerd Moellmann <gerd@gnu.org>
7106
7107 * xdisp.c (resize_mini_window): Do nothing if frame is an X
7108 frame that hasn't been initialized yet.
7109
83c8f461 71101999-09-28 Richard M. Stallman <rms@gnu.org>
a04f1a93
PR
7111
7112 * keymap.c (Fsingle_key_description): Make tem big enough.
7113 (describe_buffer_bindings): Make buf big enough.
7114
83c8f461 71151999-09-27 Richard M. Stallman <rms@gnu.org>
d177c583
PR
7116
7117 * intervals.c (get_local_map): Use indirect_function,
7118 not Findirect_function.
7119
26901792
DL
71201999-09-27 Dave Love <fx@gnu.org>
7121
7122 * cm.h: Remove unneeded declaration of ospeed.
7123
71241999-09-26 Gerd Moellmann <gerd@gnu.org>
7125
7126 * lisp.h (toplevel): Add prototype for
7127 next_single_char_property_change.
7128
7129 * textprop.c (next_single_char_property_change): New.
7130
7131 * xdisp.c (display_prop_end, invisible_text_between_p): Use
7132 next_single_char_property_change.
7133
71341999-09-25 Gerd Moellmann <gerd@gnu.org>
7135
7136 * editfns.c (Fproperties): New.
7137 (syms_of_editfns): Defsubr it.
7138
7139 * xfns.c (lookup_image): Set image's timestamp because it's
7140 used when we look it up.
7141
71421999-09-23 Gerd Moellmann <gerd@gnu.org>
7143
7144 * window.c (enlarge_window): Add window parameter instead of using
7145 selected_window.
7146 (Fdisplay_buffer): Call it with window parameter instead of
7147 setting selected_window.
7148 (Fenlarge_window, Fshrink_window): Ditto.
7149 (shrink_mini_window): If there is no recorded height and position
7150 info, resize mini-window to height 1.
7151
7152 * xfns.c (image_error): Use add_to_log.
7153
7154 * xfaces.c (load_pixmap): Call add_to_log without frame parameter.
7155 (load_face_font_or_fontset, load_color,
7156 merge_face_vector_with_property): Ditto.
7157
7158 * dispextern.h: Add prototype for add_to_log.
7159
7160 * xfaces.c (add_to_log): Move to xdisp.c.
7161
7162 * xdisp.c (add_to_log): Moved from xfaces.c. Remove frame
7163 parameter.
7164
71651999-09-23 Gerd Moellmann <gerd@gnu.org>
7166
7167 * xterm.c (XTread_socket) <MotionNotify>: Change #ifdef
7168 USE_X_TOOLKIT to #ifdef USE_TOOLKIT_SCROLL_BARS.
7169
7170 * xdisp.c (resize_mini_window): Use grow_mini_window and
7171 shrink_mini_window.
7172
7173 * window.c (window_min_size): Add parameter ignore_fixed_p.
7174 (change_window_height): Call window_min_size with new parameter.
7175 (shrink_window_lowest_first, save_restore_orig_size,
7176 grow_mini_window, shrink_mini_window): New.
7177 (make_window, replace_window): Initialize orig_top and
7178 orig_height.
7179 (enlarge_window): Renamed from change_window_height. Make it
7180 static.
7181 (Fdisplay_buffer, Fenlage_window, Fshrink_window): Call
7182 enlarge_window instead of change_window_height.
7183
7184 * window.h (struct window): New members orig_top, orig_height.
7185 (toplevel): Add prototypes for grow_mini_window and
7186 shrink_mini_window. Remove prototype for change_window_height.
7187
71881999-09-21 Eli Zaretskii <eliz@gnu.org>
7189
7190 * frame.c (frame_name_fnn_p): Fix previous change.
7191
71921999-09-20 Gerd Moellmann <gerd@gnu.org>
7193
7194 * minibuf.c (toplevel): Move include of stdio.h to other includes.
7195
7196 * dispnew.c (direct_output_for_insert): Cast arguments to
7197 safe_bcopy to char *.
7198
7199 * lread.c (readchar): Remove unused variables.
7200 (read_filtered_event, read1, Fmapatoms): Ditto.
7201 (toplevel): Include intervals.h.
7202
7203 * eval.c (Fsignal): Remove unused variables.
7204 (Fcommandp, do_autoload): Ditto.
7205
7206 * lisp.h: Add prototype for safe_bcopy, fatal.
7207
7208 * editfns.c (init_editfns): Remove unused variables.
7209 (Fgoto_char, Fchar_after, Fformat): Ditto.
7210 (message_text, message_length): Put in #ifndef HAVE_MENUS.
7211
7212 * data.c (find_symbol_value): Remove unused variables.
7213 (Faref, Fstring_to_number): Ditto.
7214 (toplevel): Include stdio.h.
7215 (Fnumber_to_string): Cast XINT to long for %ld.
7216
7217 * casefiddle.c (casify_object): Remove unused variables.
7218 (casify_region): Ditto.
7219
427ec082 7220 * filelock.c (get_boot_time): Put local variable used in
26901792
DL
7221 conditinally compiled section in #ifdef.
7222 (toplevel): Include stdio.h.
7223
7224 * keymap.c (Flookup_key, Faccessible_keymaps, describe_vector,
7225 keys_of_keymap, syms_of_keymap): Remove unused variables.
7226
72271999-09-20 Gerd Moellmann <gerd@gnu.org>
7228
7229 * xdisp.c (sync_frame_with_window_matrix_rows): Disable frame rows
7230 whose corresponding window rows have been disabled in
7231 try_window_id.
7232
72331999-09-20 Gerd Moellmann <gerd@gnu.org>
7234
7235 * xdisp.c (compute_window_start_on_continuation_line): Handle case
7236 that window start is out of range.
7237 (handle_display_prop, handle_single_display_prop): Replace
7238 marginal area specifications like `left-margin' with `(margin
7239 left-margin)'.
7240 (Qmargin): New.
7241 (syms_of_xdisp): Initialize Qmargin.
7242
72431999-09-19 Gerd Moellmann <gerd@gnu.org>
7244
7245 * syntax.c (update_syntax_table, find_defun_start, back_comment,
7246 describe_syntax, skip_chars): Remove unused variables.
7247 (back_comment, forw_comment): Add braces to if-statement with
7248 if-else as dependent statement.
7249
7250 * process.c (list_processes_1): Remove unused variables.
7251 (Fopen_network_stream, create_process): Add parentheses to
7252 conditional expressions.
7253 (create_process): Put declaration of sigchld in #if 0.
7254 (Fopen_network_stream): Removed unused variables.
7255 (Fopen_network_stream, wait_reading_process_input,
7256 wait_reading_process_input, send_process, send_process): Ditto.
7257 (toplevel): Add prototypes for set_waiting_for_input and
7258 keyboard_bit_set.
7259
7260 * abbrev.c (Fexpand_abbrev): Remove unused variables.
7261
7262 * textprop.c (Fset_text_properties): Remove unused variables.
7263 (text_property_list, verify_interval_modification,
7264 interval_has_all_properties): Ditto.
7265
7266 * callproc.c (toplevel) [HAVE_UNISTD_H]: Include unistd.h.
7267 (Fcall_process): Remove unused variable.
7268
7269 * keyboard.c (Frecursive_edit): Remove unused variable.
7270 (command_loop_1, safe_run_hooks, kbd_buffer_get_event,
7271 timer_check, make_lispy_event, menu_bar_items,
7272 menu_bar_one_keymap, menu_bar_item, parse_menu_item,
7273 parse_tool_bar_item, read_char_x_menu_prompt, read_key_sequence,
7274 kbd_buffer_get_event, make_lispy_event, read_char_x_menu_prompt,
7275 read_key_sequence): Ditto. Fread_key_sequence,
7276 Fread_key_sequence_vector, Fsuspend_emacs): Ditto.
7277 (read_key_sequence) [GOBBLE_FIRST_EVENT]: Put local variables only
7278 used when GOBBLE_FIRST_EVENT is defined in #ifdef
7279 (Fexecute_extended_command): Cast XINT to long for %ld.
7280 (toplevel) [HAVE_UNISTD_H]: Include unistd.h.
7281 (toplevel): Include sys/types.h.
7282
7283 * lisp.h (RETURN_UNGCPRO): Use do-while (0) idiom.
7284 (toplevel): Add prototypes for stuff_char, and
7285 code_convert_string_norecord.
7286
72871999-09-19 Gerd Moellmann <gerd@gnu.org>
7288
7289 * buffer.h: Add prototype for r_re_alloc.
7290
7291 * insdel.c (copy_text): Removed unused variables.
7292 (count_combining_after, count_combining_after, insert_1_both,
7293 insert_from_string_1, insert_from_buffer_1, check_markers): Ditto.
7294 (adjust_after_replace, replace_range): Add parentheses to logical
7295 expressions. Remove unused variables.
7296 (CHECK_BYTE_COMBINING_FOR_INSERT): Add parentheses to logical
7297 expression.
7298
7299 * alloc.c (Fgarbage_collect): Remove unused variable.
7300 (compact_strings): Add parentheses around assignments in
7301 conditional context.
7302 (toplevel): Put declaration of unused function clear_marks
7303 in #if 0 like its definition.
7304
7305 * lisp.h: Add prototype for shrink_regexp_cache,
7306 sweep_weak_hash_tables.
7307
73081999-09-19 Dave Love <fx@gnu.org>
7309
7310 * process.c (Fopen_network_stream): Use strerror, not gai_strerror.
7311
7312 * doc.c (read_bytecode_char): Declare arg.
7313
7314 * lisp.h: Declare Fcurrent_message, Fmake_temp_name,
7315 read_bytecode_char, Fx_hide_busy_cursor, getloadavg.
7316
73171999-09-18 Richard Stallman <rms@gnu.org>
7318
7319 * xdisp.c (echo_area_display): Turn off code that returned
7320 without doing anything when using a terminal frame.
7321
83c8f461 73221999-09-17 Richard M. Stallman <rms@gnu.org>
27271329
PR
7323
7324 * unexelf.c (unexec): Don't get confused by a short section
7325 just before the bss section.
7326
26901792
DL
73271999-09-16 Gerd Moellmann <gerd@gnu.org>
7328
7329 * emacs.c (main): Remove unused variables.
7330 (sort_args, Fkill_emacs, Fkill_emacs): Ditto.
7331
7332 * lisp.h: Add prototype for uninterrupt_malloc, memory_warnings,
7333 init_fileio_once, syms_of_sound, init_xfns, init_fns
7334 init_sound, check_message_stack.
7335
7336 * emacs.c (toplevel) [HAVE_UNISTD_H]: Include unistd.h.
7337
7338 * intervals.c (rotate_right, rotate_left): Add braces to avoid
7339 ambiguous else warning.
7340 (split_interval_left): Remove unused variables.
7341 (previous_interval, adjust_intervals_for_deletion,
7342 set_point_both, set_point_both, set_intervals_multibyte_1): Ditto.
7343 (icount, idepth, zero_length): Move into #if 0 section below
7344 original position where these are used.
7345
7346 * buffer.h [REL_ALLOC]: Add prototypes for r_alloc and r_alloc_free.
7347
7348 * buffer.c (Fkill_buffer): Remove unused variables.
7349 (Fkill_buffer, overlays_at, overlays_in, recenter_overlay_lists,
7350 fix_overlays_in_range, Fmove_overlay, Fprevious_overlay_change,
7351 init_buffer_once, (syms_of_buffer): Ditto.
7352
7353 * xrdb.c (get_fallback): Remove unused variable.
7354 (x_load_resources): Ditto. Put local variable used for Motif only
7355 in #ifdef USE_MOTIF.
7356
73571999-09-16 Gerd Moellmann <gerd@gnu.org>
7358
7359 * minibuf.c (read_minibuf): Remove unused variables.
7360 (read_minibuf, Fread_buffer, scmp, Fcompleting_read): Ditto.
7361 (do_completion): Move assignment out of conditional context.
7362 (Fdisplay_completion_list): Add parentheses to conditional expression.
7363
7364 * cm.c (toplevel) [HAVE_TERMCAP_H]: Include termcap.h.
7365
7366 * lisp.h: Add prototype for no_switch_window.
7367
7368 * window.c (Fset_window_buffer): Remove unused variables.
7369 (Fset_window_margins): Ditto.
7370
7371 * xdisp.c (resize_mini_window): Temporarily set the selected
7372 window's or Vminibuf_scroll_window's height to "fixed" around
7373 the call the change_window_height.
7374
7375 * window.c (window_fixed_size_p): Check window's height_fixed_p
7376 flag.
7377
7378 * window.h (struct window): New member height_fixed_p.
7379
7380 * dispnew.c (direct_output_forward_char): Don't use this method
7381 if showing a message or a message was just cleared because we
7382 might need to resize the mini-window.
7383
73841999-09-16 Gerd Moellmann <gerd@gnu.org>
7385
7386 * frame.c (Fdelete_frame): Correct local variable pointing to
7387 selected frame after selecting new frame.
7388
73891999-09-15 Richard Stallman <rms@gnu.org>
7390
7391 * puresize.h (BASE_PURESIZE): Increase to 525000.
7392
7393 * filelock.c (Vtemporary_file_directory): New variable.
7394 (syms_of_filelock): Set up Lisp variable.
7395
73961999-09-15 Gerd Moellmann <gerd@gnu.org>
7397
7398 * term.c (OUTPUT_IF, OUTPUT1_IF): Use do-while.
7399 (encode_terminal_code): Remove unused variables.
7400 (turn_off_face): Ditto.
7401 (toplevel): Include termcap.h if HAVE_TERMCAP_H.
7402
7403 * dispnew.c (update_frame_line): If writing whole desired line,
7404 don't clear to end of line if already at the end.
7405
74061999-09-15 Gerd Moellmann <gerd@gnu.org>
7407
7408 * xdisp.c (resize_mini_window): Don't report changed window
7409 height if it actually hasn't changed.
7410
427ec082 7411 * widget.c (set_frame_size, EmacsFrameSetCharSize): Remove
26901792
DL
7412 unused variables.
7413 (mark_shell_size_user_specified): Put in #if 0 because not used.
7414 (create_frame_gcs): Put in #if 0 because currently unused.
7415 (first_frame_p): Ditto.
7416
7417 * xmenu.c (single_menu_item, Fx_popup_menu, Fx_popup_menu,
7418 single_submenu, update_frame_menubar, set_frame_menubar,
7419 free_frame_menubar, xmenu_show, xdialog_show): Remove unused
7420 variables.
7421
7422 * print.c (PRINTFULLP): Removed because it is no longer used and
7423 is misleading.
7424 (Ferror_message_string): Remove unused variables.
7425 (print_object): Cast argument of sprintf to long for `%ld'
7426 specifier. Remove unused variable.
7427
74281999-09-14 Gerd Moellmann <gerd@gnu.org>
7429
7430 * sound.c (Fplay_sound): Remove usused variables.
7431 (be2hs): Put in #if 0 because it's currently not used.
7432
74331999-09-14 Ken Raeburn <raeburn@gnu.org>
7434
7435 * print.c (Ferror_message_string, print_error_message,
7436 print_object): Use XCAR, XCDR and XFLOAT_DATA instead of explicit
7437 member access.
7438
74391999-09-14 Gerd Moellmann <gerd@gnu.org>
7440
7441 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Put code in do-while.
7442
7443 * frame.c (Fnext_frame): Remove unused variable(s).
7444 (Fprevious_frame, Fmouse_pixel_position, frame_name_fnn_p): Ditto.
7445 (store_frame_param): Add parentheses to conditional expression.
7446 (Fmodify_frame_parameters): Remove unused variables.
7447 (Fmodify_frame_parameters, Fset_frame_size, Fset_frame_position):
7448 Ditto.
7449
7450 * xfns.c (x_set_background_color): Remove unused variable(s).
7451 (x_set_border_pixel): Ditto.
7452 (x_set_menu_bar_lines): Put local variable used only for
7453 non-toolkit case in #ifdef/#endif.
7454 (x_figure_window_size): Remove unused variable(s).
427ec082 7455 (x_figure_window_size, x_window, lookup_image,
26901792
DL
7456 xbm_read_bitmap_file_data, x_build_heuristic_mask, pbm_load,
7457 png_load, jpeg_load, gif_load, x_create_tip_frame,
7458 x_create_tip_frame, Fx_show_tip, x_set_border_pixel): Ditto.
7459
7460 * xterm.c (x_scroll_bar_handle_click): Compile only if
7461 not USE_TOOLKIT_SCROLL_BARS.
7462 (x_scroll_bar_set_handle, x_scroll_bar_note_movement): Ditto.
7463
7464 * dispextern.h: Add prototypes for gamma_correct and
7465 x_kill_gs_process.
7466
7467 * xterm.c (x_produce_glyphs): Remove unused variable(s).
7468 (x_alloc_nearest_color_for_widget, note_tool_bar_highlight,
7469 x_set_toolkit_scroll_bar_thumb): Ditto.
7470 (x_scroll_bar_create): Move local variable to the
7471 conditionally compiled section of code where it is used.
7472 (x_scroll_bar_create): Remove unused variable(s).
7473 (x_scroll_bar_remove, XTread_socket): Ditto.
7474 (XTread_socket) <ConfigureNotify>: Move variables used for
7475 non-toolkit case into conditionally compiled section of code.
7476
7477 * window.h (freeze_window_starts): Fix typo in prototype.
7478
7479 * xdisp.c (display_echo_area_1, try_window_id): Remove unused
7480 variable(s).
7481
7482 * lisp.h: Add prototype for debug_print.
7483
7484 * dispextern.h (xassert) [GLYPH_DEBUG]: Change definition
7485 to use do-while.
7486
7487 * fns.c (SXHASH_COMBINE): Add missing parentheses.
7488 (Fchar_table_range, Fset_char_table_default, mapcar1,
7489 Fyes_or_no_p, sweep_weak_hash_tables): Remove unused variable(s).
7490
7491 * lisp.h: Add prototype for getloadavg.
7492
74931999-09-14 Andreas Schwab <schwab@gnu.org>
7494
7495 * process.c (Fopen_network_stream): Avoid socket decriptor leak.
7496
7497 * lisp.h: Declare close_file_unwind.
7498
74991999-09-14 Richard Stallman <rms@gnu.org>
7500
7501 * filelock.c (get_boot_time): Make the temp name in the proper dir.
7502
75031999-09-13 Gerd Moellmann <gerd@gnu.org>
7504
7505 * xdisp.c (redisplay_window): Make sure start_at_line_beg
7506 is always set correctly.
7507
75081999-09-13 Dave Love <fx@gnu.org>
7509
7510 * xdisp.c (move_it_in_display_line_to): Make type consistent with
7511 declaration.
7512
75131999-09-13 Gerd Moellmann <gerd@delysid.gnu.org>
7514
7515 * xdisp.c (QCfile): Move here from xfns.c.
7516 (syms_of_xdisp): Initialize it.
7517 (message2_nolog): Change for Lisp_Object selected_frame.
7518 (message3_nolog, message_with_string, message,
7519 setup_echo_area_for_printing, truncate_echo_area,
7520 prepare_menu_bars, redisplay_internal, Fdump_tool_bar_row): Ditto.
7521
75221999-09-13 Dave Love <fx@gnu.org>
7523
7524 * xterm.c: Don't continue #define args for benefit of old cc.
7525 (xt_action_hook): Indent #error for benefit of K&R cc.
7526
75271999-09-13 Gerd Moellmann <gerd@delysid.gnu.org>
7528
7529 * xterm.c (XTcursor_to): Change for Lisp_Object selected_frame.
7530 (x_clear_frame, XTring_bell, XTmouse_position, XTread_socket): Ditto.
7531 (XRINGBELL): Removed.
7532
75331999-09-13 Dave Love <fx@gnu.org>
7534
7535 * xfns.c (x_put_x_image): Make type consistent with declaration.
7536
7537 * fns.c (Fmake_hash_table): Fix string continuation.
7538
75391999-09-13 Gerd Moellmann <gerd@delysid.gnu.org>
7540
7541 * xfns.c (QCfile): Moved to xdisp.c.
7542 (syms_of_xfns): Don't initialize QCfile.
7543 (check_x_frame): Change for Lisp_Object selected_frame.
7544 (check_x_display_info, x_get_resource_string): Ditto.
7545
75461999-09-13 Gerd Moellmann <gerd@gnu.org>
7547
7548 * minibuf.c (choose_minibuf_frame): Don't try to set the
7549 mini-buffer window's buffer, if the buffer is invalid.
7550
7551 * xfns.c (QCfile): Moved to xdisp.c.
7552 (syms_of_xfns): Don't initialize QCfile.
7553
7554 * xdisp.c (QCfile): Move here from xfns.c.
7555 (syms_of_xdisp): Initialize it.
7556
7557 * lisp.h (selected_frame): Add external declaration.
7558
7559 * xselect.c (x_own_selection): Change for Lisp_Object selected_frame.
7560 (Fx_store_cut_buffer_internal): Ditto.
7561 (Fx_rotate_cut_buffers_internal): Ditto.
7562
7563 * xfaces.c (frame_or_selected_frame): Change for Lisp_Object
7564 selected_frame.
7565 (Finternal_set_lisp_face_attribute): Ditto.
7566 (Finternal_get_lisp_face_attribute): Ditto.
7567 (Finternal_lisp_face_empty_p): Ditto.
7568 (Fdump_face): Ditto.
7569
7570 * term.c (OUTPUT): Change for Lisp_Object selected_frame.
7571 (OUTPUT_IF, ring_bell, set_terminal_modes, reset_terminal_modes,
7572 set_terminal_window, set_scroll_region, reassert_line_highlight,
7573 change_line_highlight, cursor_to, raw_cursor_to, clear_to_end,
7574 clear_end_of_line, clear_end_of_line_raw, clear_end_of_line_raw,
7575 encode_terminal_code, write_glyphs, term_init): Ditto.
7576
7577 * sysdep.c (reset_sys_modes): Change for Lisp_Object selected_frame.
7578 (kbd_input_ast, read_input_waiting): Ditto.
7579
7580 * minibuf.c (choose_minibuf_frame): Change for Lisp_Object
7581 selected_frame.
7582 (read_minibuf): Ditto.
7583
7584 * keyboard.c (command_loop_1): Change for Lisp_Object
7585 selected_frame.
7586 (cmd_error_internal, command_loop_1, read_char,
7587 kbd_buffer_get_event, read_avail_input,
7588 read_char_minibuf_menu_prompt, read_key_sequence, Fsuspend_emacs,
7589 interrupt_signal, quit_throw_to_read_char): Ditto.
7590
7591 * fontset.c (Ffont_info): Change for Lisp_Object selected_frame.
7592 (Ffontset_info): DItto.
7593
7594 * emacs.c (handle_USR1_signal): Change for Lisp_Object selected_frame.
7595
7596 * dispnew.c (selected_frame): Make it a Lisp_Object.
7597 (adjust_frame_glyphs_initially): Change for Lisp_Object selected_frame.
7598 (direct_output_for_insert, direct_output_forward_char,
7599 init_display): Ditto.
7600
7601 * data.c (swap_in_symval_forwarding): Change for Lisp_Object
7602 selected_frame.
7603 (set_internal): Ditto.
7604
7605 * buffer.c (Fother_buffer): Change for Lisp_Object selected_frame.
7606 (record_buffer): Ditto.
7607
7608 * frame.c (Fmake_terminal_frame): Use SELECTED_FRAME.
7609 (do_switch_frame): Change for Lisp_Object selected_frame.
7610 (Fselected_frame): Ditto.
7611 (Fframe_first_window): Use SELECTED_FRAME.
7612 (Fframe_root_window): Change for Lisp_Object selected_frame.
7613 (Fframe_selected_window, Fset_frame_selected_window, Fnext_frame,
7614 Fprevious_frame, other_visible_frames, Fdelete_frame,
7615 Fmouse_position, Fmouse_pixel_position, Fmake_frame_visible,
7616 Fmake_frame_invisible, Ficonify_frame, Fraise_frame, Flower_frame,
7617 Fframe_parameters, Fmodify_frame_parameters, Fframe_char_height,
7618 Fframe_char_width, Fframe_pixel_height, Fframe_pixel_width,
7619 Fset_frame_height, Fset_frame_width): Ditto.
7620
76211999-09-13 Gerd Moellmann <gerd@gnu.org>
7622
7623 * xdisp.c (message2_nolog): Change for Lisp_Object selected_frame.
7624 (message3_nolog, message_with_string, message,
7625 setup_echo_area_for_printing, truncate_echo_area,
7626 prepare_menu_bars, redisplay_internal, Fdump_tool_bar_row): Ditto.
7627
7628 * xmenu.c (Fx_popup_menu): Change for Lisp_Object selected_frame.
7629 (Fx_popup_dialog): Ditto.
7630
7631 * xfns.c (check_x_frame): Change for Lisp_Object selected_frame.
7632 (check_x_display_info, x_get_resource_string): Ditto.
7633
7634 * xterm.c (XTcursor_to): Change for Lisp_Object selected_frame.
7635 (x_clear_frame, XTring_bell, XTmouse_position, XTread_socket): Ditto.
7636 (XRINGBELL): Removed.
7637
7638 * window.c (Fminibuffer_window): Change for Lisp_Object
7639 selected_frame.
7640 (Fwindow_at, Fprevious_window, window_loop, select_window_1,
7641 display_buffer_1, Fdisplay_buffer, temp_output_buffer_show,
7642 Fcurrent_window_configuration, init_window_once): Ditto.
7643
7644 * frame.h (SELECTED_FRAME): New.
7645
76461999-09-12 Ken Raeburn <raeburn@gnu.org>
7647
7648 * category.c (word_boundary_p): Use XCAR and XCDR.
7649 * ccl.c (ccl_driver, resolve_symbol_ccl_program,
7650 Fregister_code_conversion_map): Likewise.
7651 * coding.c (setup_coding_system, detect_coding_system,
7652 Ffind_operation_coding_system, Fset_coding_priority_internal):
7653 Likewise.
7654 * doc.c (get_doc_string, Fdocumentation,
7655 store_function_docstring): Likewise.
7656 * editfns.c (save_restriction_restore): Likewise.
7657 * eval.c (Fcond, Fmacroexpand, Fcondition_case, wants_debugger,
7658 skip_debugger, find_handler_clause, Fautoload, Fapply,
7659 run_hook_with_args, run_hook_list_with_args, Ffetch_bytecode):
7660 Likewise.
7661 * fileio.c (Ffind_file_name_handler, Finsert_file_contents,
7662 Fwrite_region, do_auto_save_unwind, Fdo_auto_save,
7663 Fread_file_name): Likewise.
7664 * filelock.c (unlock_all_files): Likewise.
7665 * insdel.c (Fcombine_after_change_execute): Likewise.
7666 * intervals.c (adjust_intervals_for_insertion): Likewise.
7667 * keymap.c (get_keymap_1, Fkeymap_parent, Fset_keymap_parent,
7668 Fset_keymap_parent, fix_submap_inheritance, access_keymap,
7669 store_in_keymap, Fcopy_keymap, define_as_prefix,
7670 current_minor_maps, Faccessible_keymaps,
7671 accessible_keymaps_char_table, Fkey_description,
7672 Fwhere_is_internal, where_is_internal_2, where_is_internal_1,
7673 describe_buffer_bindings, describe_map_tree, shadow_lookup,
7674 describe_map): Likewise.
7675 * lread.c (Fload, load_unwind, close_load_descs, read_vector,
7676 read_list, init_lread): Likewise.
7677 * search.c (Fmatch_data): Likewise.
7678 * sunfns.c (Fsun_menu_internal): Likewise.
7679 * syntax.c (describe_syntax): Likewise.
7680 * undo.c (record_insert, record_delete, Fundo_boundary,
7681 truncate_undo_list): Likewise.
7682 * vmsproc.c (child_sig): Likewise.
7683
7684 * editfns.c (Fformat): Use XFLOAT_DATA.
7685
76861999-09-12 Gerd Moellmann <gerd@gnu.org>
7687
7688 * keyboard.c (command_loop_1): Resize mini-window to the
7689 exact size of a message displayed, if any.
7690
7691 * xdisp.c (resize_mini_window): Add parameter exact_p. Resize
7692 to exact size if exact_p is non-zero.
7693 (display_echo_area_1): Call resize_mini_window with
7694 new parameter.
7695 (redisplay_internal): Ditto.
7696 (resize_echo_area_axactly): New.
7697
7698 * minibuf.c (read_minibuf_unwind): Call resize_mini_window with
7699 new parameter.
7700
7701 * dispextern.h: Change prototype of resize_mini_window.
7702 Add prototype for resize_echo_area_axactly.
7703
7704 * xfaces.c (Fx_family_fonts): Replaces Fx_font_list.
7705 (syms_of_xfaces): Defsubr accordingly.
7706
7707 * xdisp.c (hscroll_window_tree): Choose cursor row from
7708 desired or current matrix.
7709 (redisplay_internal): Hscroll before updating.
7710
77111999-09-12 Gerd Moellmann <gerd@gnu.org>
7712
7713 * syntax.c (Fforward_word): Use prompt_end_charpos instead
7714 of minibuffer_prompt_length.
7715
7716 * minibuf.c (read_minibuf): Use prompt_end_charpos instead
7717 of minibuffer_prompt_length.
7718 (read_minibuf_unwind): Ditto.
7719 (Fminibuffer_complete_and_exit): Ditto.
7720 (Fminibuffer_complete_word): Ditto.
7721 (Fminibuffer_prompt_end): Ditto.
7722
7723 * editfns.c (Fbuffer_string): Use prompt_end_charpos instead
7724 of minibuffer_prompt_length.
7725 (Fline_beginning_position): Ditto.
7726
7727 * buffer.c (Fget_buffer_create): Use prompt_end_charpos instead
7728 of minibuffer_prompt_length.
7729 (Fmake_indirect_buffer): Ditto.
7730 (Fkill_buffer): Ditto.
7731 (Ferase_buffer): Ditto.
7732
7733 * buffer.h (prompt_end_charpos): Replaces
7734 minibuffer_prompt_length.
7735
427ec082 7736 * minibuf.c (read_minibuf): Return mini-buffer contents
26901792
DL
7737 without the prompt.
7738
7739 * editfns.c (make_buffer_string_both): Take out the code
7740 to handle mini-buffer prompts.
7741 (Fbuffer_string): Handle the prompt here, instead.
7742
7743 * xfaces.c (lface_from_face_name): Resolve face aliases.
7744 (Qmode_line): Replaces Qmodeline.
7745 (realize_basic_faces): Use Qmode_line.
7746 (syms_of_xfaces): Initialize Qmode_line.
7747
77481999-09-12 Gerd Moellmann <gerd@gnu.org>
7749
7750 * minibuf.c (read_minibuf): Set minibuf_prompt_width to the
7751 current column after inserting prompt.
7752 (Fminibuffer_prompt_width): Return minibuf_prompt_width.
7753
7754 * xfaces.c (Qframe_update_face_colors): New.
7755 (syms_of_xfaces): Initialize call.
7756 (update_face_from_frame_parameter): Call that function when
7757 the frame's background changes.
7758
77591999-09-12 Richard Stallman <rms@gnu.org>
7760
7761 * insdel.c (del_range_1): Don't treat minibuffer prompt specially.
7762
77631999-09-12 Ken Raeburn <raeburn@gnu.org>
7764
7765 * alloc.c (Fcons, pure_cons, Fpurecopy, Fgarbage_collect,
7766 mark_object, mark_buffer): Use XCAR and XCDR.
7767 * bytecode.c (Fbyte_code): Likewise.
7768 * callint.c (Fcall_interactively, Fprefix_numeric_value):
7769 Likewise.
7770 * callproc.c (Fcall_process, Fcall_process_region, child_setup,
7771 getenv_internal): Likewise.
7772 * dired.c (file_name_completion): Likewise.
7773 * fns.c (Fsafe_length, concat, Fcopy_alist, Fmember, Fmemq, Fassq,
7774 assq_no_quit, Fassoc, Frassq, Frassoc, Fdelq, Fdelete, Freverse,
7775 Fplist_get, Fplist_put, internal_equal, mapcar1): Likewise.
7776 * indent.c (Fcompute_motion): Likewise.
7777 * process.c (decode_status, Fprocess_status, Fprocess_exit_status,
7778 list_processes_1, Fstart_process, Fopen_network_stream,
7779 wait_reading_process_input, read_process_output_call,
7780 kill_buffer_processes, sigchld_handler, exec_sentinel_unwind,
7781 status_notify, wait_reading_process_input): Likewise.
7782 * textprop.c (PLIST_ELT_P, property_value, set_properties,
7783 extend_property_ranges): Likewise.
7784 * w32faces.c (Fpixmap_spec_p, merge_face_list): Likewise.
7785 * w32fns.c (x_window_to_frame, x_set_frame_parameters,
7786 x_report_frame_params, x_set_cursor_type, x_icon_type,
7787 x_figure_window_size, Fx_create_frame, w32_load_system_font,
7788 w32_load_font, enum_font_cb2, w32_list_bdf_fonts, w32_list_fonts,
7789 w32_list_synthesized_fonts, w32_find_ccl_program, Fx_list_fonts,
7790 Fw32_find_bdf_fonts, w32_find_bdf_fonts_in_dir,
7791 x_display_info_for_name, Fx_display_list): Likewise.
7792 * w32menu.c (menubar_id_to_frame, single_keymap_panes,
7793 Fx_popup_menu, Fx_popup_dialog): Likewise.
7794 * w32proc.c (Fw32_set_keyboard_layout): Likewise.
7795 * w32term.c (x_window_to_scroll_bar, w32_read_socket,
7796 w32_term_init, x_delete_display): Likewise.
7797 * xfns.c (x_window_to_frame, x_any_window_to_frame,
7798 x_non_menubar_window_to_frame, x_menubar_window_to_frame,
7799 x_top_window_to_frame, x_set_frame_parameters,
7800 x_report_frame_params, x_set_cursor_type, x_icon_type,
7801 x_figure_window_size, Fx_create_frame, x_display_info_for_name,
7802 Fx_display_list, x_create_tip_frame): Likewise.
7803 * xmenu.c (menubar_id_to_frame, single_keymap_panes,
7804 Fx_popup_menu, Fx_popup_dialog): Likewise.
7805 * xselect.c (x_own_selection, x_get_local_selection,
7806 x_handle_selection_request, x_handle_selection_clear,
7807 x_clear_frame_selections, wait_for_property_change_unwind,
7808 wait_for_property_change, x_handle_property_notify,
7809 copy_multiple_data, x_get_foreign_selection,
7810 lisp_data_to_selection_data, clean_local_selection_data,
7811 x_handle_selection_notify, Fx_get_selection_internal,
7812 x_disown_buffer_selections): Likewise.
7813 * xterm.c (x_window_to_scroll_bar, XTread_socket, x_list_fonts,
7814 x_load_font, x_find_ccl_program, x_term_init, x_delete_display):
7815 Likewise.
7816
7817 * alloc.c (make_float, make_pure_float, Fpurecopy): Use
7818 XFLOAT_DATA.
7819 * bytecode.c (Fbyte_code): Likewise.
7820 * floatfns.c (extract_float, Fexpt, Fabs, rounding_driver,
7821 fmod_float): Likewise.
7822
78231999-09-11 Richard Stallman <rms@gnu.org>
7824
7825 * xdisp.c (run_window_scroll_functions): If hook functions switch
7826 buffers, switch back after.
7827
78281999-09-11 Ken Raeburn <raeburn@gnu.org>
7829
7830 * charset.h (GET_TRANSLATION_TABLE): Use XCDR.
7831 * frame.h (FOR_EACH_FRAME): Use XCAR and XCDR.
7832 (PIXEL_X_FROM_CANON_X, PIXEL_Y_FROM_CANON_Y): Use XFLOAT_DATA.
7833 * keyboard.h (EVENT_HEAD, EVENT_START, EVENT_END, POSN_WINDOW,
7834 POSN_BUFFER_POSN, POSN_WINDOW_POSN, POSN_TIMESTAMP): Use XCAR and
7835 XCDR.
7836 * syntax.h (SYNTAX, SYNTAX_WITH_FLAGS, SYNTAX_MATCH): Use XCAR and
7837 XCDR.
7838
78391999-09-10 Richard Stallman <rms@gnu.org>
7840
7841 * xterm.c (XTread_socket): In XSetInputFocus, use RevertToParent,
7842 not RevertToPointerRoot.
7843 (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
7844 Fix the code to clear around the scroll bar.
7845
78461999-09-10 Keisuke Nishida <kxn30@po.cwru.edu>
7847
7848 * print.c: Support print-circle and related features.
7849 (Vprint_gensym_alist): Removed.
7850 (Vprint_circle, Vprint_continuous_numbering, print_number_index
7851 Vprint_number_table): New variables.
7852 (PRINT_NUMBER_OBJECT, PRINT_NUMBER_STATUS): New macros.
7853 (PRINTPREPARE, PRINTFINISH): Don't set Vprint_gensym_alist.
7854 (print, print_preprocess, print_preprocess_string, print_object):
7855 New/modified functions with print-circle feature. Use
7856 Vprint_number_table instead of Vprint_gensym_alist for print-gensym.
7857 (syms_of_print): Defined new Lisp variables `print-circle',
7858 `print-continuous-numbering', `print-number-table'.
7859
78601999-09-10 Gerd Moellmann <gerd@gnu.org>
7861
7862 * xfns.c (x_build_heuristic_mask): Accept a list `(R G B)'
7863 as background color specification instead of an integer.
7864 (image-cache-eviction-delay): Replaces image-eviction-seconds.
7865 (Vimage_cache_eviction_delay): Replaces Vimage_eviction_seconds.
7866 (clear_image_cache, syms_of_xfns): Use it.
7867 (Qpostscript): Replaces Qghostscript.
7868 (gs_type): Use it.
7869 (gs_image_p): Ditto.
7870 (syms_of_xfns): Initialize Qpostscript.
7871
78721999-09-10 Richard Stallman <rms@gnu.org>
7873
7874 * buffer.c (Ferase_buffer): Don't erase the minibuffer prompt.
7875
78761999-09-09 Richard Stallman <rms@gnu.org>
7877
7878 * editfns.c (Fline_beginning_position): Handle minibuffer prompt here.
7879
7880 * cmds.c (Fbeginning_of_line): Don't handle minibuffer prompt here.
7881
78821999-09-09 Gerd Moellmann <gerd@gnu.org>
7883
7884 * fns.c (Fmakehash): Accept just one optional argument TEST.
7885
7886 * xfns.c (QCindex): New.
7887 (syms_of_xfns): Initialize QCindex.
7888 (gif_load): Use it instead of `:image'.
7889
78901999-09-09 Richard Stallman <rms@gnu.org>
7891
7892 * fileio.c (Fwrite_region): Finish renaming CONFIRM to MUSTBENEW.
7893 (Fwrite_region) [DOS_NT]: Handle `excl' here too.
7894
78951999-09-08 Gerd Moellmann <gerd@gnu.org>
7896
7897 * xdisp.c (Qwhen): Replaces QCwhen.
7898 (syms_of_xdisp): Initialized it instead of QCwhen.
7899 (handle_single_display_prop): Use it instead of QCwhen.
7900
79011999-09-08 Ken'ichi Handa <handa@gnu.org>
7902
7903 * charset.c (translate_char): Reset MSBs of arguments of
7904 MAKE_CHAR.
7905 (CHAR_COMPONENTS_VALID_P): Fix for ASCII.
7906
79071999-09-08 Lars Magne Ingebrigtsen <larsi@gnus.org>
7908
7909 * editfns.c (Fbufsize): Accept an extra BUFFER parameter.
7910
7911 * fns.c (Fbase64_decode_region): Don't place point outside of the
7912 current accessible portion.
7913
79141999-09-07 Richard Stallman <rms@gnu.org>
7915
7916 * keymap.c (fix_submap_inheritance): Do nothing if the proper
7917 parent is an ancestor of SUBMAP; otherwise, add it as the
7918 ultimate ancestor.
7919
79201999-09-07 Gerd Moellmann <gerd@gnu.org>
7921
7922 * xdisp.c (handle_single_display_prop): Change conditional
7923 display property to `:when FORM . VALUE'.
7924
79251999-09-07 Richard Stallman <rms@gnu.org>
7926
7927 * fileio.c (Fwrite_region): Doc fix.
7928
79291999-09-07 Stefan Monnier <monnier@cs.yale.edu>
7930
7931 * fileio.c (Qexcl): New variable.
7932 (report_file_error): Handle EEXIST specially.
7933 (Fwrite_region): Special handling for CONFIRM = `excl'.
7934 (syms_of_fileio): Initialize Qexcl.
7935
79361999-09-07 Gerd Moellmann <gerd@gnu.org>
7937
7938 * xfns.c (x_set_foreground_color): Call
7939 update_face_from_frame_parameter.
7940 (x_set_background_color): Ditto.
7941 (x_set_mouse_color): Ditto.
7942 (x_set_cursor_color): Ditto.
7943 (x_set_border_color): Ditto.
7944 (x_set_scroll_bar_foreground): Ditto.
7945 (x_set_scroll_bar_background): Ditto.
7946
7947 * xfaces.c (recompute_basic_faces): Clear face cache.
7948 (Finternal_set_lisp_face_attribute): Modify frame parameters
7949 if attributes of certain faces are changed.
7950 (update_face_from_frame_parameter): New.
7951
7952 * xfaces.c (realize_basic_faces): Realize new basic faces.
7953
7954 * dispextern.h (SCROLL_BAR_FACE_ID, BORDER_FACE_ID,
7955 CURSOR_FACE_ID, MOUSE_FACE_ID): New.
7956
7957 * xfaces.c (Qscroll_bar, Qcursor, Qborder, Qmouse): New.
7958 (syms_of_xfaces): Intialize new symbols.
7959
7960 * fns.c (Fmakehash): Take one argument, test, make all the
7961 rest keyword arguments.
7962
7963 * window.c (Fset_window_margins): Make window the first argument.
7964 (set_window_buffer): Call Fset_window_margins with window as first
7965 argument.
7966
79671999-09-07 Gerd Moellmann <gerd@gnu.org>
7968
7969 * xfaces.c (Qfringe): Replaces Qmargin.
7970
79711999-09-07 Kenichi Handa <handa@etl.go.jp>
7972
7973 * charset.h: Lots of comments fixed.
7974 (PARSE_MULTIBYTE_SEQ): Make it work also for ASCII string.
7975 (STRING_CHAR_AND_CHAR_LENGTH): This macro removed.
7976
7977 * charset.c : Lots of comments fixed.
7978 (SPLIT_MULTIBYTE_SEQ): Make it work also for ASCII string.
7979 (CHAR_COMPONENTS_VALID_P): Name changed from
7980 CHAR_COMPONENT_VALID_P. Caller changed.
7981
79821999-09-06 Richard Stallman <rms@gnu.org>
7983
7984 * insdel.c (syms_of_insdel): Define Lisp variable
7985 inhibit-modification-hooks.
7986
79871999-09-06 Michael Sperber [Mr. Preprocessor] <sperber@informatik.uni-tuebingen.de>
7988
7989 * s/aix4-2.h (ALIGN_DATA_RELOC): Undefined to support new
7990 unexaix.c.
7991
7992 * s/aix3-1.h (ALIGN_DATA_RELOC): Defined to support new unexaix.c.
7993
79941999-09-06 Dave Love <fx@gnu.org>
7995
7996 * unexaix.c: New version incorporating Michael Sperber's changes
7997 from XEmacs. Should solve problems on AIX 4.3.
7998
7999 * lread.c (Vbyte_boolean_vars): New variable.
8000 (defvar_bool, syms_of_lread): Use it.
8001
80021999-09-05 Richard Stallman <rms@gnu.org>
8003
8004 * minibuf.c (read_minibuf): Put all three properties on the
8005 same range, the whole prompt.
8006
80071999-09-05 Gerd Moellmann <gerd@gnu.org>
8008
8009 * sound.c (Qplay_sound_functions): Replaces Qplay_sound_hook.
8010 (Fplay_sound, syms_of_sound): Use it.
8011 (parse_sound): Allow float volume values in the range [0, 1].
8012 (Fplay_sound): Ditto.
8013
8014 * window.c (Fset_window_vscroll): Make window the first argument,
8015 amount to scroll the second. Take non-negative vscroll as
8016 argument.
8017 (Fwindow_vscroll): Return non-negative vscroll.
8018
8019 * xfns.c (Fx_show_tip): Improve documentation.
8020
80211999-09-05 Gerd Moellmann <gerd@gnu.org>
8022
8023 * buffer.c, buffer.h, dispextern.h, dispnew.c, keyboard.c,
8024 window.c, xdisp.c, xfaces.c, xterm.c, keyboard.h: Change
8025 `top-line' and `top_line' to `header-line' and `header_line'.
8026 Likewise for similar spellings.
8027
80281999-09-05 Gerd Moellmann <gerd@gnu.org>
8029
8030 * xdisp.c (row_containing_pos): New.
8031 (try_window_id): Use it.
8032
8033 * alloc.c, dispextern.h, dispnew.c, frame.c, frame.h, keyboard.c,
8034 lisp.h, termhooks.h, window.c xdisp.c, xfaces.c, xfns.c, xterm.c:
8035 Change spelling of `toolbar' to `tool_bar' or `tool-bar'.
8036 Likewise for upper-case etc.
8037
80381999-09-05 Gerd Moellmann <gerd@gnu.org>
8039
8040 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
8041 Fix reference to renamed variable.
8042
80431999-09-04 Gerd Moellmann <gerd@gnu.org>
8044
8045 * window.c (Qwindow_size_fixed): Replaces Qfixed_window_size.
427ec082 8046 (window_fixed_size_p): Use Qwindow_size_fixed instead of
26901792
DL
8047 Qfixed_window_size.
8048 (syms_of_window): Ditto.
8049
8050 * fns.c (Fmakehash): Exchange optional test and size arguments.
8051
80521999-09-03 Gerd Moellmann <gerd@gnu.org>
8053
8054 * xterm.c (XTset_vertical_scroll_bar): Block input when clearing
8055 under newly created scroll bar.
8056 (expose_window): If window is not yet fully initialized, do
8057 nothing. This can happen when toolkit scroll bars are used and a
8058 window is split. Reconfiguring the scroll bars will generate an
8059 expose for a newly created window.
8060
8061 * frame.h (struct frame): New member `gamma'.
8062
8063 * xfns.c: Include math.h. Add extern declaration for atof in case
8064 we don't see one.
8065 (Qscreen_gamma): New.
8066 (struct x_frame_parm_table): Add prototypes, add
8067 x_set_screen_gamma.
8068 (gamma_correct): New function.
8069 (defined_color): Call it.
8070 (x_set_screen_gamma): New.
8071 (x_set_title): Add parameter old_value.
8072 (RES_TYPE_FLOAT): New.
8073 (x_get_arg): Handle RES_TYPE_FLOAT.
8074 (Fx_create_frame): Call x_default_parameter for `screen-gamma'.
8075 (lookup_pixel_color): Change call to x_alloc_nearest_color to
8076 new prototype.
8077 (lookup_rgb_color): Ditto.
8078 (syms_of_xfns): Initialize Qscreen_gamma.
8079
8080 * xterm.c (x_alloc_nearest_color_for_widget) [USE_X_TOOLKIT]:
8081 New. Allocate color for lwlib widgets.
8082 (x_alloc_nearest_color): Change parameter list include the
8083 frame on which to allocate colors. Gamma-correct colors.
8084 (x_alloc_lighter_color): Call x_alloc_lighter_color with new
8085 parameter list.
8086
8087 * xterm.h: Change protorype of x_alloc_nearest_color.
8088
80891999-09-03 Richard Stallman <rms@gnu.org>
8090
8091 * callproc.c: Delete the system-independent include of stdlib.h
8092 (leaving only the one in the WINDOWSNT conditional).
8093
80941999-09-03 Andrew Choi <choi@cs.hku.hk>
8095
8096 * callproc.c (call-process) [macintosh]: Call mac_run_command in
8097 sysdep.c. The Mac code is modeled after the DOS code.
427ec082 8098
26901792
DL
8099 * dispextern.h [macintosh]: Include macterm.h to define substitute X
8100 Window types and macros.
8101
8102 * frame.h: Do nothing if included a second time.
8103 (enum output_method): Add mac_output frame type.
8104 (union output_data): Add new alternative `mac'.
8105 (FRAME_MAC_P): New macro.
427ec082 8106
26901792
DL
8107 * frame.c (Fframep) [macintosh]: Handle mac frame type.
8108 (syms_of_frame_1): Initialize Qmac.
8109 (make_terminal_frame) [macintosh]: Initialize output_data.mac fields.
8110 (Fmake_terminal_frame) [macintosh]: Add an alternate error check.
8111 (Fmodify_frame_parameters) [macintosh]: Call
8112 mac_set_frame_parameter in macterm.c.
427ec082 8113
26901792
DL
8114 * keyboard.c [macintosh]: Set KBD_BUFFER_SIZE to a smaller value
8115 (512) because Mac compilers limit local data of a function to 32K.
427ec082 8116
26901792
DL
8117 * make-docfiles.c: Correctly handle input files with Mac-style
8118 eol's.
427ec082 8119
26901792 8120 * sysdep.c: Define numerous routines to emulate Unix system calls.
427ec082 8121
26901792
DL
8122 * xfaces.c: on MacOS, define the set of colors listed in rgb.txt
8123 file of an X Window environment.
427ec082 8124
26901792
DL
8125 * xfaces.c: on MacOS, define the Lisp functions x-display-color-p,
8126 x-display-grayscale, x-color-defined-p, and x-color-values.
427ec082 8127
26901792
DL
8128 * sysdep.c [macintosh] (stat, fstat, mkdir, rmdir, utime, access)
8129 (open, creat, unlink, read, write, rename, fopen, pause, alarm)
8130 (signal, sleep, gmtime, localtime, ctime, time, index, mktemp)
8131 (getpwuid, getpwnam, dup, dup2, isatty, getgid, getegid, getuid)
8132 (geteuid, getpid, getenv, uname, opendir, closedir, readdir, getwd.):
8133 New functions, replacing POSIX features.
427ec082 8134
26901792
DL
8135 * sysdep.c [macintosh] (Mac2UnixPathname, Unix2MacPathname, CheckAlarm)
8136 (InitMyPasswd, GetTempDirName, mystrchr, mystrtok, mystrcpy):
8137 (InitEmacsPasswdDir, run_mac_command): New subroutines.
8138
8139 * sysdep.c [macintosh] (targetTicks, alarm_signal_func, myPasswdName)
8140 (myPasswd, emacsPasswdDir, emacsPasswd, myPasswdInited, mask)
8141 (myPasswdDir, TempDirName, sys_siglist): New variables.
8142
8143 * sysdep.c [macintosh] (execvp, wait, croak, fork, kill, sigsetmask)
8144 (sigblock, request_sigio, unrequest_sigio, setpgrp, pipe, symlink)
8145 (link, lstat, readlink, umask, chmod, sbrk, fsync, ioctl):
8146 Define empty stubs so Emacs will link.
8147
81481999-09-03 Gerd Moellmann <gerd@gnu.org>
8149
8150 * xdisp.c: Use XCAR and XCDR instead of XCONS.
8151
8152 * window.h: New member frozen_window_start_p.
8153
8154 * window.c (foreach_window, foreach_window_1): New.
8155 (freeze_window_start, freeze_window_starts): New.
8156 (make_window): Initialize frozen_window_start_p.
8157 (replace_window): Ditto.
8158 (Fset_window_point): Remove references to deleted variables.
8159 (Fset_window_start): Ditto.
8160
8161 * xdisp.c (Vresize_mini_config, resize_mini_frame,
8162 resize_mini_initial_height): Removed.
8163 (syms_of_xdisp): Remove references to these variables.
8164 (resize_mini_window): Don't save window configuration, freeze
8165 window starts instead. Enlarge window until displaying an empty
8166 buffer, then shrink it. Make the function externally visible.
8167 (redisplay_window): Treat frozen window start like forced start,
8168 but accept point outside of the window.
8169
8170 * dispextern.h: Add function prototype for resize_mini_window.
8171
8172 * minibuf.c (read_minibuf_unwind): Resize mini-window when
8173 reaching minibuf_level 0.
8174
8175 * lisp.h: Remove extern declarations for variables deleted from
8176 xdisp.c.
8177
8178 * dispnew.c (adjust_frame_glyphs): Remove reference to
8179 Vresize_mini_config.
8180
81811999-09-03 Gerd Moellmann <gerd@gnu.org>
8182
8183 * xfns.c (x_set_scroll_bar_width): Change conditional compilation
8184 to USE_TOOLKIT_SCROLL_BARS.
8185
8186 * xterm.c (x_scroll_bar_create): Don't clear under scroll bar
8187 here.
8188 (XTset_vertical_scroll_bar): Clarify position computations. Clear
8189 under newly created scroll bar. Put toolkit scroll bars in the
8190 middle of the area reserved for the scroll bar.
8191
81921999-09-03 Kenichi Handa <handa@etl.go.jp>
8193
8194 The following changes are for the new handling of mulitbyte
8195 sequence. Now, except for a composite character, no multibyte
8196 character in string/buffer has trailing garbage bytes. For
8197 instance, the length of string "\201\300\300" is now 2, the first
8198 character is Latin-1 A-grave, the second is raw \300.
8199
8200 * charset.h (MAKE_NON_ASCII_CHAR): Handle the case that C1 or C2
8201 are negative.
8202 (MAKE_CHAR): Don't set MSBs of C1 and C2 to 0.
8203 (VALID_MULTIBYTE_CHAR_P): This macro deleted.
8204 (PARSE_COMPOSITE_SEQ): New macro.
8205 (PARSE_CHARACTER_SEQ): New macro.
427ec082 8206 (PARSE_MULTIBYTE_SEQ): New macro.
26901792
DL
8207 (CHAR_PRINTABLE_P): New macro.
8208 (STRING_CHAR): Adjusted for the change of string_to_non_ascii_char.
8209 (STRING_CHAR_AND_LENGTH): Likewise.
8210 (STRING_CHAR_AND_CHAR_LENGTH): Define it as STRING_CHAR_AND_LENGTH.
8211 (INC_POS): Use the macro PARSE_MULTIBYTE_SEQ.
8212 (DEC_POS, BUF_INC_POS, BUF_DEC_POS): Likewise,
8213
8214 * charset.c (SPLIT_COMPOSITE_SEQ): New macro.
8215 (SPLIT_CHARACTER_SEQ): New macro.
8216 (SPLIT_MULTIBYTE_SEQ): New macro.
8217 (CHAR_COMPONENT_VALID_P): New macro.
8218 (non_ascii_char_to_string): Generate a multibyte sequence as far
8219 as possible.
8220 (string_to_non_ascii_char): The 4th arg exclude_tail_garbage is
8221 deleted. Caller changed. Use the macro SPLIT_MULTIBYTE_SEQ.
8222 (split_non_ascii_string): Likewise.
8223 (multibyte_form_length): Use the macro PARSE_MULTIBYTE_SEQ.
8224 (char_printable_p): New function.
8225 (translate_char): Check character by NATNUMP instead of INTEGERP.
8226 (unibyte_char_to_multibyte): Call char_valid_p instead of
8227 VALID_MULTIBYTE_CHAR_P.
8228 (Fmake_char_internal): Check the arguments more rigidly.
8229 (Fcharset_after): Use the macro SPLIT_MULTIBYTE_SEQ.
8230 (char_valid_p): Check the validity by CHAR_COMPONENT_VALID_P.
8231 (Fmultibyte_char_to_unibyte): Check the validity of character by
8232 CHAR_VALID_P.
8233 (chars_in_text): Call multibyte_chars_in_text.
8234 (multibyte_chars_in_text): Use the macro PARSE_MULTIBYTE_SEQ.
8235 (Fcompose_string): Use the macro STRING_CHAR_AND_LENGTH instead of
8236 STRING_CHAR_AND_CHAR_LENGTH (which is obsolete now).
8237
8238 * data.c (Faset): Adjust the way to check byte-combining
8239 possibility for the new handling of multibyte sequence.
8240
8241 * editfns.c (Fsubst_char_in_region): Likewise.
8242
8243 * fns.c (count_combining): Use the macro PARSE_MULTIBYTE_SEQ.
8244 (string_char_to_byte): Likewise.
8245 (string_byte_to_char): Likewise.
8246
8247 * indent.c (MULTIBYTE_BYTES_WIDTH): Delete the 2nd arg C. Use the
8248 macro STRING_CHAR_AND_LENGTH. Caller changed.
8249
8250 * insdel.c (count_combining_composition): New function.
8251 (count_combining_before): Adjust the way to check byte-combining
8252 possibility for the new handling of multibyte sequence. Call
8253 count_combining_composition for a composite character.
8254 (count_combining_after): Likewise.
8255
8256 * print.c (print_string): Use the macro STRING_CHAR_AND_LENGTH.
8257 (print): Likewise.
8258
8259 * dispextern.h (struct it): Change the size of the member
8260 `ctl_chars'.
8261
8262 * xdisp.c (get_next_display_element): Display incomplete multibyte
8263 sequence (e.g. \222\300) by octal form.
8264
82651999-09-02 Gerd Moellmann <gerd@gnu.org>
8266
8267 * xterm.h (VERTICAL_SCROLL_BAR_WIDTH_TRIM): Change from 2 to 0.
8268
8269 * fns.c (Fhash_table_weakness): Replaces Fhash_table_weak.
8270 (cmpfn_eql, sxhash): Use XFLOAT_DATA.
8271
82721999-09-02 Gerd Moellmann <gerd@gnu.org>
8273
8274 * buffer.c (set_buffer_internal): Never set
8275 windows_or_buffers_changed.
8276
8277 * xdisp.c (try_window_id): Reset first_unchanged_at_end_row
8278 if we have displayed to the bottom of the window.
8279
8280 * syntax.c (Fforward_word): Stop at a mini-buffer prompt end
8281 in both directions. Extend documentation.
8282
82831999-09-01 Gerd Moellmann <gerd@gnu.org>
8284
8285 * minibuf.c (read_minibuf): Flush display after setting cursor to
8286 column 0.
8287
82881999-08-31 Gerd Moellmann <gerd@gnu.org>
8289
8290 * s/freebsd.h (__FreeBSD_version): Don't define it if it is
8291 already defined. This avoids a warning from buffer.c.
8292
82931999-08-30 Gerd Moellmann <gerd@gnu.org>
8294
8295 * xterm.h (FRAME_X_FLAGS_AREA_COLS): Define it as the total width
8296 of both margins.
8297 (FRAME_X_FLAGS_AREA_WIDTH): Likewise.
8298 (FRAME_X_LEFT_FLAGS_AREA_WIDTH): New.
8299 (FRAME_X_RIGHT_FLAGS_AREA_WIDTH): New.
8300
8301 * frame.h (FRAME_WINDOW_WIDTH_ARG): Add in FRAME_FLAGS_AREA_COLS
8302 once instead of twice.
8303 (FRAME_LEFT_FLAGS_AREA_WIDTH): New.
8304
8305 * xterm.c: Remove unused bitmaps.
8306 (continued_bits, continuation_bits, overlay_bits): Change images.
8307 (x_draw_vertical_border): Use FRAME_X_RIGHT_FLAGS_AREA_WIDTH
8308 instead of FRAME_X_FLAGS_AREA_WIDTH.
8309 (x_after_update_window_line): Ditto.
8310 (x_draw_bitmap): Likewise.
8311 (x_draw_row_bitmaps): Likewise.
8312 (x_draw_glyph_string_box): Likewise.
8313 (x_draw_glyphs): Likewise.
8314 (x_scroll_run): Likewise.
8315 (expose_window_tree): Likewise.
8316 (note_mode_line_highlight): Likewise.
8317 (XTset_vertical_scroll_bar): Likewise.
8318 (x_clip_to_row): Likewise.
8319 (x_set_window_size): Likewise.
8320
8321 * xfns.c (x_figure_window_size): Use FRAME_FLAGS_AREA_COLS instead
8322 of 2 * that value.
8323
8324 * xdisp.c (window_box_width): Use FRAME_FLAGS_AREA_COLS instead of
8325 2 * that value.
8326 (window_box_left): Use FRAME_LEFT_FLAGS_AREA_WIDTH instead of
8327 FRAME_FLAGS_AREA_WIDTH.
8328
8329 * window.c (coordinates_in_window): Use
8330 FRAME_LEFT_FLAGS_AREA_WIDTH instead of FRAME_FLAGS_AREA_WIDTH.
8331 (window_internal_width): Subtract FRAME_FLAGS_AREA_WIDTH once
8332 instead of twice.
8333
427ec082 8334 * widget.c (set_frame_size): Set flags_area_extra to
26901792
DL
8335 FRAME_FLAGS_AREA_WIDTH instead of 2 * that width.
8336 (EmacsFrameSetCharSize): Ditto.
8337
8338 * dispnew.c (mode_line_string): Add FRAME_LEFT_FLAGS_AREA_WIDTH
8339 instead of FRAME_FLAGS_AREA_WIDTH.
8340
8341 * dispextern.h (WINDOW_DISPLAY_PIXEL_WIDTH): Subtract
8342 FRAME_FLAGS_AREA_COLS once.
8343 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X): Add
8344 FRAME_LEFT_FLAGS_AREA_WIDTH instead of FRAME_FLAGS_AREA_WIDTH.
8345
83461999-08-30 Gerd Moellmann <gerd@gnu.org>
8347
8348 * freebsd.h (C_SWITCH_SYSTEM): Added to let configure find headers
8349 in /usr/X11R6/include which are checked for with AC_CHECK_HEADER.
8350
83511999-08-30 Gerd Moellmann <gerd@gnu.org>
8352
8353 * fns.c (QCweakness): Replaces QCweak.
8354 (Fmake_hash_table): Ditto.
8355 (Fmakehash): Ditto.
8356 (syms_of_fns): Ditto.
8357
83581999-08-29 Richard Stallman <rms@gnu.org>
8359
8360 * search.c (compile_pattern_1): Enable RE_CHAR_CLASSES for regexp.
8361
8362 * sysdep.c (read_input_waiting): Pass read_socket_hook just 4 args.
8363
8364 * syntax.h (SYNTAX_COMMENT_NESTED, SYNTAX_FLAGS_COMMENT_NESTED):
8365 Add support for nested comments.
8366
d7d0dac0
SM
8367 * syntax.c (Fforward_comment, scan_lists, scan_sexps_forward):
8368 Consolidate the forward comment code into the new `forw_comment'.
8369 (forw_comment): New subroutine. Added support for nested comments.
8370 (lisp_parse_state, back_comment, Fmodify_syntax_entry)
8371 (Fparse_partial_sexp): Add support for nested comments.
26901792
DL
8372
83731999-08-28 Ken Raeburn <raeburn@gnu.org>
8374
8375 * lisp.h (struct Lisp_Cons, XCAR, XCDR, struct Lisp_Float): Change
8376 names of structure elements if HIDE_LISP_IMPLEMENTATION is
8377 defined, to help detect code that uses knowledge of the Lisp
8378 internals that it shouldn't have.
8379 (XFLOAT_DATA): New macro.
8380
83811999-08-25 Gerd Moellmann <gerd@gnu.org>
8382
8383 * syntax.c (Fforward_word): If in a mini-buffer and moving
8384 backwards, stop in front of the prompt to prevent accidentially
8385 moving into the read-only prompt.
8386
8387 * window.c (Frecenter): Clear frame if called with nil or no arg.
8388
8389 * xdisp.c (resize_mini_window): Don't resize if
8390 Vmax_mini_window_height is nil. Otherwise, use a default if
8391 Vmax_mini_window_height is not ot a number.
8392 (syms_of_xdisp): Extend documentation of Vmax_mini_window_height.
8393
83941999-08-25 Alexandre Oliva <oliva@dcc.unicamp.br>
8395
8396 * unexelf.c: Merge IRIX debugging info patch from unexsgi.c
8397 * m/iris4d.h: Use unexelf for IRIX 5.*.
8398 * m/iris5d.h: Use unexelf for IRIX 6.*.
8399 * unexsgi.c: Deleted.
8400
8401 * unexelf.c: Auto-detect .sbss section.
8402 (round_up): Make it static.
8403 (unexec): Declare alignment as Elf Word. Skip ``Program
8404 segment above .bss'' test on MIPS without .sbss.
8405 Copy sections .got and .sdata1 sections. Adjust offsets in
8406 sections .sdata, .lit4, .lit8, .got and .sdata1.
8407
84081999-08-25 Gerd Moellmann <gerd@gnu.org>
8409
8410 * xdisp.c (try_window_id): Remove typo.
8411
84121999-08-24 Gerd Moellmann <gerd@gnu.org>
8413
8414 * xdisp.c (try_window_id): Recognize case that PT == ZV and in
8415 unchanged text at the bottom when computing the cursor position.
8416 (message3_nolog): Raise frame only if minibuffer_auto_raise is
8417 set.
8418
8419 * lisp.h (PVEC_TYPE_MASK): Add the bit for hash tables.
8420
84211999-08-24 Gerd Moellmann <gerd@gnu.org>
8422
8423 * xfaces.c (Qmargin): Replacement for Qbitmap_area.
8424 (realize_basic_faces): Replace Qmargin for Qbitmap_area.
8425 (syms_of_xfaces): Ditto.
8426
8427 * window.c (Fset_window_point): Reset Vresize_mini_config.
8428 (Fset_window_start): Ditto.
8429 (set_window_buffer): Ditto.
8430
8431 * dispnew.c (adjust_frame_glyphs): Reset Vresize_mini_config.
8432
8433 * xdisp.c (redisplay_window): Don't ever test just_this_one_p
8434 before calling try_window.
8435 (echo_area_display): If height has changed, update other windows.
8436 (resize_mini_frame, resize_mini_initial_height): New.
8437 (resize_mini_window): Save/restore window configuration
8438 differently.
8439
427ec082 8440 * lisp.h (Vresize_mini_config, resize_mini_frame,
26901792
DL
8441 resize_mini_initial_height): Add extern declarations.
8442
8443 * xterm.c (expose_window_tree): Fix typo CANON_Y_UNIT to
8444 CANON_X_UNIT.
8445
8446 * xfns.c [HAVE_JPEG]: Work around a warning about HAVE_STDLIB_H
8447 being redefined in jconfig.h.
8448
84491999-08-23 Ken'ichi Handa <handa@gnu.org>
8450
8451 * coding.h: Include "ccl.h" instead of "../src/ccl.h".
8452
84531999-08-22 Gerd Moellmann <gerd@gnu.org>
8454
8455 * alloc.c (mark_glyph_matrix): Mark strings only.
8456
8457 * xdisp.c (redisplay_internal): Clear garbaged frames after
8458 resizing mini-window.
8459
84601999-08-22 Gerd Moellmann <gerd@gnu.org>
8461
8462 * xdisp.c (unwind_with_echo_area_buffer): Use
8463 set_buffer_internal_1 instead of set_buffer_internal.
8464 (with_echo_area_buffer): Ditto.
8465
8466 * buffer.c (set_buffer_internal): Set windows_or_buffers_changed
8467 only if buffer is displayed somewhere.
8468
8469 * buffer.h (BUF_COMPUTE_UNCHANGED): New.
8470
8471 * insdel.c (gap_left): Use BUF_COMPUTE_UNCHANGED.
8472 (gap_right): Ditto.
8473 (modify_region): Ditto.
8474
8475 * buffer.c (modify_overlay): Use BUF_COMPUTE_UNCHANGED.
8476
8477 * xdisp.c (Vresize_mini_config): New.
8478 (resize_mini_window): Use it to save restore original window
8479 configuration
8480 (syms_of_xdisp): Initialize it.
8481
8482 * buffer.h (struct buffer): Add prevent_redisplay_optimizations_p.
8483
8484 * dispextern.h (struct glyph_matrix): Add buffer, begv, and zv.
8485
8486 * xdisp.c (reconsider_clip_changes): New.
8487 (redisplay_internal, redisplay_window): Call it.
8488 (mark_window_display_accurate, redisplay_internal): Set current
8489 matrix' buffer, begv, zv.
8490
8491 * window.c (Fset_window_hscroll): Set
8492 prevent_redisplay_optimizations_p instead of clip_changed.
8493 (Fset_window_hscroll): Ditto.
8494 (temp_output_buffer_show): Ditto.
8495 (Fset_window_vscroll): Ditto.
8496
8497 * buffer.c (reset_buffer): Set clip_changed to 0 and
8498 prevent_redisplay_optimizations_p to 1.
8499 (Fget_buffer_create): Set prevent_redisplay_optimizations_p to 1.
8500
8501 * buffer.h (BUF_UNCHANGED_MODIFIED, UNCHANGED_MODIFIED,
8502 BUF_OVERLAY_UNCHANGED_MODIFIED, OVERLAY_UNCHANGED_MODIFIED,
8503 BUF_BEG_UNCHANGED, BEG_UNCHANGED, BUF_END_UNCHANGED,
8504 END_UNCHANGED): New.
8505 (struct buffer_text): Add beg_unchanged, end_unchanged,
8506 unchanged_modified, overlay_unchanged_modified.
8507
8508 * window.h (beg_unchanged, end_unchanged, unchanged_modified,
8509 overlay_unchanged_modified): Removed.
8510 (with_echo_area_unwind_data): Don't save beg/end_unchanged.
8511 (unwind_with_echo_area_buffer): Don't restore them.
8512 (debug_beg_unchanged, debug_end_unchanged) [GLYPH_DEBUG]: Removed.
8513 (text_outside_line_unchanged_p, redisplay_internal,
8514 try_scrolling): Use/set buffer-specific beg/end_unchanged.
8515 (redisplay_window): Let try_window_id be called if more than one
8516 window is displayed. Use/set buffer-specific beg/end_unchanged.
8517 (get_last_unchanged_at_beg_row, get_first_unchanged_at_end_row,
8518 try_window_id):
8519 Use buffer-specific beg/end_unchanged.
8520
8521 * window.h (beg_unchanged, end_unchanged, unchanged_modified,
8522 overlay_unchanged_modified): Remove extern declarations.
8523
8524 * keyboard.c (command_loop_1): Set beg/end_unchanged per
8525 buffer.
8526
8527 * insdel.c (gap_left): Compute beg/end_unchanged per buffer.
8528 (gap_right): Ditto.
8529 (adjust_after_replace): Likewise.
8530 (replace_range, del_range_2, modify_region): Likewise.
8531
8532 * dispnew.c (direct_output_for_insert): Set beg_unchanged
8533 and unchanged_modified per buffer.
8534
8535 * coding.c (code_convert_region): Compute beg/end_unchanged per
8536 buffer.
8537
8538 * buffer.c (modify_overlay): Compute beg/end_unchanged
8539 per buffer.
427ec082 8540 (Fget_buffer_create): Initialize new members of the buffer
26901792
DL
8541 structure.
8542
85431999-08-22 Gerd Moellmann <gerd@gnu.org>
8544
8545 * lisp.h: Add prototype for copy_hash_table and Fcopy_hash_table.
8546
8547 * fns.c (Qkey, Qvalue): Renamed from Qkey_weak, and Qvalue_weak.
8548 (Qkey_value_weak): Removed.
8549 (make_hash_table): Use nil, `key', `value', t for weakness.
8550 (Fmake_hash_table): Ditto.
8551 (copy_hash_table): New.
8552 (Fcopy_hash_table): New.
8553
85541999-08-22 Gerd Moellmann <gerd@gnu.org>
8555
8556 * xfns.c: Call change_frame_size and do_pending_window_change with
d7d0dac0 8557 new parameter.
26901792
DL
8558
85591999-08-21 Gerd Moellmann <gerd@gnu.org>
8560
8561 * xdisp.c (resize_mini_window): Do it for truncate-lines t as
8562 well.
427ec082 8563 (redisplay_internal): Resize mini-window only if text might
26901792
DL
8564 have changed.
8565 (display_echo_area): Reset displayed echo_area_buffer to nil
8566 at the end if we're displaying a nil message.
8567
85681999-08-21 Gerd Moellmann <gerd@gnu.org>
427ec082 8569
26901792
DL
8570 * fns.c (hash_lookup): Test with EQ before calling key comparion
8571 function.
8572 (hash_remove): Ditto.
8573 (cmpfn_eq): Removed.
8574 (cmpfn_eql): Don't test with EQ.
8575 (cmpfn_equal): Ditto.
8576 (make_hash_table): Set comparison function for `eq' to null.
8577
8578 * buffer.c, cmds.c, editfns.c, indent.c, insdel.c, buffer.h:
8579 Remove conditional compilation on NO_PROMPT_IN_BUFFER.
8580
8581 * dispextern.h (NO_PROMPT_IN_BUFFER): Removed.
8582
8583 * window.c, widget.c, process.c, keyboard.c, frame.c, xdisp.c,
8584 xterm.c: Call change_frame_size and do_pending_window_change with
8585 new parameter.
8586
8587 * dispnew.c (do_pending_window_change): Add parameter `safe'.
8588 (change_frame_size): Ditto.
8589 (change_frame_size_1): Ditto. Deley size changes if redisplaying
8590 and not called from a safe place.
8591 (window_change_signal): Call change_frame_size with new parameter.
8592
8593 * dispextern.h: Change prototypes for do_pending_window_change
8594 and change_frame_size.
8595
8596 * xfaces.c (face_at_buffer_position): Don't xassert that
427ec082 8597 window's buffers equals current_buffer; this is not the
26901792
DL
8598 case during echo area display.
8599
86001999-08-21 Gerd Moellmann <gerd@gnu.org>
8601
8602 * xdisp.c, minibuf.c: Remove conditional compilation on
8603 NO_PROMPT_IN_BUFFER.
8604
8605 * minibuf.c (Fminibuffer_prompt_end): New.
8606 (syms_of_minibuf): Defsubr it. Remove
8607 minibuffer-prompt-in-buffer.
8608 (Fminibuffer_prompt_width): Return 0 if not in mini-buffer.
8609 Extend documentation.
8610
8611 * xdisp.c (get_next_display_element): Display \r as ^M.
8612
8613 * xterm.c (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]: Clear
8614 under scroll bar widget.
8615
86161999-08-21 Gerd Moellmann <gerd@gnu.org>
8617
8618 * xdisp.c (minibuffer_scroll_overlap): Removed because not used
8619 anywhere.
8620 (unwind_redisplay): Return nil.
8621 (clear_garbaged_frames): New.
8622 (redisplay_internal): Use it.
8623 (echo_area_display): Ditto.
8624 (resize_mini_window): Mew.
8625 (display_echo_area_1): Use it to resize echo area window.
8626 (redisplay_internal): Use it to resize active mini-window.
8627
8628 * dispextern.h, lisp.h: Add function prototypes.
8629
427ec082 8630 * dispnew.c (set_window_cursor_after_update): Do the
26901792
DL
8631 cursor_in_echo_area case only for a mini-window showing
8632 a message. Don't let cursor end up after the end of a row.
8633
8634 * xdisp.c (echo_area_glyphs, echo_area_message,
8635 echo_area_glyphs_length, previous_echo_glyphs,
8636 previous_echo_area_message, previous_echo_area_glyphs_length):
8637 Removed.
8638 (Vmessage_stack, echo_area_buffer, echo_buffer,
8639 display_last_displayed_message_p, Vwith_echo_area_save_vector): New.
8640 (message2_nolog): Use set_message and clear_message.
8641 (message3): Rename parameter len to nbytes to make clear what
8642 it is.
8643 (message3_nolog): Ditto. Use set_message and clear_message.
8644 (update_echo_area): Rewritten.
8645 (with_echo_area_buffer): New.
8646 (with_echo_area_buffer_unwind_data, unwind_with_area_buffer): New.
8647 (setup_echo_area_for_printing): New.
8648 (display_echo_area, display_echo_area_1): New.
8649
8650 (current_message, current_message_1): New.
427ec082 8651 (push_message, restore_message, pop_message,
26901792
DL
8652 check_message_stack): New.
8653 (truncate_echo_area): Rewritten.
8654 (truncate_message_1): New.
8655 (set_message, set_message_1, clear_message): New.
8656 (echo_area_display): Rewritten.
8657 (redisplay_internal): Check for needed echo area update
8658 differently.
8659 (redisplay_preserve_echo_area): Rewritten.
427ec082 8660 (redisplay_window): Check for mini-window displaying echo area
26901792
DL
8661 message differently.
8662 (syms_of_xdisp): Initialize Vmessage_stack and echo area buffers.
8663 Remove initialzation of removed variables.
8664 (init_xdisp): Remove references to removed variables.
8665
8666 * dispnew.c (adjust_frame_message_buffer): Removed references
8667 to echo_area_glyphs and previous_echo_glyphs.
8668 (direct_output_for_insert): Check for mini-window displaying
8669 echo area message differently.
8670 (update_frame): Likewise.
8671 (set_window_cursor_after_update): Likewise. In echo area,
8672 don't try to set cursor on rows that aren't enabled.
8673
8674 * print.c: Remove conditional compilation on `standalone'.
8675 (glyph_len, str_to_glyph_cpy, str_to_glyph_ncpy,
427ec082 8676 glyph_to_str_cpy): Remove that section because GLYPHs are no
26901792
DL
8677 longer used in that way.
8678 (PRINTDECLARE): Add multibyte.
8679 (PRINTPREPARE, PRINTFINISH): Handle printcharfun t differently.
8680 (printbufidx): Removed.
8681 (printchar, strout): Rewritten.
8682
8683 * keyboard.c (ok_to_echo_at_next_pause): Make it a pointer to
8684 a struct kboard.
8685 (echo_kboard): New.
8686 (echo_now): Set echo_kboard to the current kboard.
8687 (cancel_echoing): Set echo_kboard to null.
8688 (cmd_error_internal): Use clear_message, remove references
8689 to echo_area_glyphs and echo_area_message.
8690 (command_loop_1): Check for echo area messages differently.
8691 (read_char): Likewise.
8692 (record_menu_key): Use clear_message.
8693 (Fexecute_extended_command): Check for echo area messages
8694 differently. Use push_message, restore_message, pop_message.
8695
8696 * alloc.c (Fgarbage_collect): Use push_message, restore_message,
8697 pop_message.
8698
8699 * emacs.c (shut_down_emacs): Call check_message_stack.
8700
8701 * lisp.h: Add function prototypes and extern declarations for
8702 new functions and variables.
8703
8704 * fileio.c (Fdo_auto_save): Use push_message, restore_message,
8705 pop_message.
8706
427ec082 8707 * minibuf.c (read_minibuf): Use clear_message instead of
26901792
DL
8708 setting echo_area_glyphs.
8709 (Fminibuffer_completion_help): Ditto.
8710
8711 * editfns.c (Fcurrent_message): Rewritten.
8712
8713 * frame.c, window.h: Remove references to echo_area_glyphs
8714 and previous_echo_glyphs.
8715
87161999-08-21 Dave Love <fx@gnu.org>
8717
8718 * aix3-2-5.h (C_DEBUG_SWITCH): Use -g -O.
8719 * aix4-1.h: Likewise.
8720
8721 * irix6-5.h (C_DEBUG_SWITCH): Set for debug and optimize.
8722
87231999-08-20 Gerd Moellmann <gerd@gnu.org>
8724
8725 * xfns.c: Remove tiff34 prefix from include.
8726
87271999-08-20 Dave Love <fx@gnu.org>
8728
8729 * cm.c: Revert previous change.
8730
87311999-08-19 Gerd Moellmann <gerd@gnu.org>
8732
8733 * xterm.c (XTset_vertical_scroll_bar): Fix previous change. Clear
8734 under scroll bar with width FRAME_SCROLL_BAR_COLS.
8735
87361999-08-18 Dave Love <fx@gnu.org>
8737
8738 * callproc.c, filelock.c, insdel.c, sysdep.c, xmenu.c: Use
8739 stdlib.h.
8740
8741 * doprnt.c: Use stdlib.h, unistd.h.
8742
8743 * config.in: Add HAVE_TERMCAP_H.
8744
8745 * cm.c: Use termcap.h.
8746
87471999-08-18 Gerd Moellmann <gerd@gnu.org>
8748
8749 * xfns.c (x_window) [USE_X_TOOLKIT]: Remove test for
8750 FRAME_X_WINDOW (f) being null at the of the function. If widgets
8751 cannot be created we will already have crashed earlier. Call
8752 lw_set_main_areas with a null menu-bar widget, so that we have
8753 a reasonable default.
8754 (Fx_create_frame): Rearranged so that Lisp errors during frame
8755 initialization cause less damage. Initialize menu bar widget
8756 here.
8757
87581999-08-18 Gerd Moellmann <gerd@gnu.org>
427ec082 8759
26901792
DL
8760 * dispnew.c (update_frame_line): Fix previous change. If writing
8761 whole line clear to end of frame.
8762
87631999-08-17 Gerd Moellmann <gerd@gnu.org>
8764
8765 * window.c (Fcoordinates_in_window_p): Return `left-bitmap-area'
8766 and `right-bitmap-area' if position is in the bitmap areas. This
8767 avoids an error when clicking on the bitmap areas. Instead, they
8768 are currently treated like clicks inside the window.
8769 (coordinates_in_window): Return 5 and 6 for bitmap areas.
8770 (Qleft_bitmap_area, Qright_bitmap_area): New.
8771 (syms_of_window): Initialize new symbols.
8772
8773 * dispnew.c (update_frame_line): If writing whole line,
8774 don't write trailing spaces unless we must.
8775
8776 * xdisp.c (unwind_redisplay): New. Resets flag redisplaying_p.
8777 (redisplay_internal): Register unwind_redisplay with
8778 register_unwind_protect.
8779 (try_window_reusing_current_matrix): If new start > old start,
8780 give up if start pos of first reusable row is not equal to new
8781 start.
8782
8783 * eval.c (Fsignal): Don't reset redisplaying_p here.
8784
8785 * xterm.c (expose_area): If row extends face to end of line,
8786 write the whole line.
8787
87881999-08-16 Gerd Moellmann <gerd@gnu.org>
8789
8790 * dispextern.h (struct it): Remove member
8791 show_trailing_whitespace_p.
8792
8793 * dispnew.c (direct_output_for_insert): Use
8794 Vshow_trailing_whitespace instead of former iterator member
8795 show_trailing_whitespace_p.
8796 (direct_output_forward_char): Don't do it if hightlighting
8797 trailing whitespace.
8798
8799 * xdisp.c (Qshow_trailing_whitespace): Removed.
8800 (Vshow_trailing_whitespace): Added.
8801 (init_iterator): Remove initialization code for
8802 show_trailing_whitespace_p.
8803 (redisplay_internal): Don't try cursor movement in this_line
8804 if showing trailing whitespace.
8805 (redisplay_window): Likewise for cursor movement in current
8806 matrix and try_window_id.
8807 (try_window_reusing_current_matrix): Likewise.
8808 (trailing_whitespace_p): Return 0 if trailing whitespace is
8809 in front of point.
8810 (display_line): Use Vshow_trailing_whitespace instead of
8811 former iterator member show_trailing_whitespace_p.
8812 (syms_of_xdisp): Add DEFVAR_LISP for show-trailing-whitespace.
8813
88141999-08-16 Gerd Moellmann <gerd@gnu.org>
8815
8816 * window.c (Fpos_visible_in_window_p): Rewritten.
8817
8818 * xfaces.c (add_to_log): Renamed from display_message.
8819 Don't display messages in echo area.
8820
8821 * xterm.c (x_draw_glyph_string_box): Use the background width
8822 of the glyph string for the width of the box.
8823
88241999-08-16 Stefan Monnier <monnier@cs.yale.edu>
8825
8826 * syntax.c (Fforward_comment): Set comstyle for Scomment_fence.
8827
88281999-08-16 Geoff Voelker <voelker@cs.washington.edu>
8829
8830 * xfns.c, w32fns.c (x_set_frame_parameters): Set foreground and
8831 background first, and then set other parameters that might
8832 depend upon their new values.
8833
88341999-08-15 Gerd Moellmann <gerd@gnu.org>
8835
8836 * xfaces.c (Vfont_list_limit): New.
8837 (syms_of_xfaces): Make it a user-variable.
8838 (DEFAULT_FONT_LIST_LIMIT): New.
8839 (sorted_font_list): If Vfont_list_limit is an integer > 0, list
8840 maximally that number of fonts, otherwise use
8841 DEFAULT_FONT_LIST_LIMIT.
427ec082 8842 (Fx_font_family_list): Bind `font-list-limit' to higher values
26901792
DL
8843 until we have all fonts.
8844 (Fxfont_list): Additionally return the full names of fonts and
8845 their registry and encoding.
8846
427ec082 8847 * xterm.c (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
26901792
DL
8848 Simplify clearing "under" scroll bar.
8849
8850 * window.c (Qfixed_window_size): New.
8851 (syms_of_window): Initialiaze it.
8852 (check_all_windows): Add return type void.
8853 (window_fixed_size_p): New. Return non-zero if window
8854 is fixed-size.
8855 (window_min_size_1): New.
8856 (window_min_size): Handle fixed-size windows.
8857 (size_window): New. Rewritten combination of set_window_height and
8858 set_window_width that handles fixed-size windows.
8859 (set_window_height): Call it.
8860 (set_window_width): Call it.
8861 (Fsplit_window): Give an error on attempt to split a fixed-size
8862 window.
8863 (change_window_height): Partly rewritten to handle fixed-size
8864 windows.
8865
88661999-08-13 Wolfgang Rupprecht <wolfgang@wsrcc.com>
8867
8868 * process.c (Fopen_network_stream): Fix previous change.
8869
88701999-08-13 Karl Heuer <kwzh@gnu.org>
8871
8872 * xdisp.c (line_number_display_limit_width): New var.
8873 (decode_mode_spec): Use it instead of hardcoded value.
8874 (syms_of_xdisp): Defvar it.
8875
88761999-08-13 Richard M. Stallman <rms@gnu.org>
8877
8878 * eval.c (run_hook_list_with_args): Gcpro `globals'.
8879 (run_hook_with_args): Likewise.
8880
8881 * window.h (struct window): New field too_small_ok.
8882
427ec082 8883 * window.c (set_window_height, set_window_width):
26901792
DL
8884 If window starts out "too small", set its too_small_ok flag.
8885 If window's too_small_ok flag is set, don't delete it
8886 unless it is so small it would cause a crash.
8887
88881999-08-13 Gerd Moellmann <gerd@gnu.org>
8889
8890 * window.c (MINSIZE): Removed.
8891 (window_min_size): New.
8892 (set_window_height): Use window_min_size.
8893 (change_window_height): Ditto.
8894
88951999-08-12 Gerd Moellmann <gerd@gnu.org>
8896
8897 * indent.c (vmotion): Don't add in mini-buffer prompt width
8898 if prompts are inserted into mini-buffer.
8899
89001999-08-12 Wolfgang Rupprecht <wolfgang@wsrcc.com>
8901
8902 * config.in: Add HAVE_GETADDRINFO.
8903 * process.c (Fopen_network_stream): Use getaddrinfo.
8904
89051999-08-11 Gerd Moellmann <gerd@gnu.org>
8906
8907 * xdisp.c (get_overlay_arrow_glyph_row): Set the charpos of
8908 glyphs to -1.
8909
8910 * xdisp.c (face_before_or_after_it_pos): If position after
8911 or before iterator's current position in the buffer is out
8912 of bounds, return the iterator's original face id.
8913
8914 * dispnew.c (mirror_make_current): If desired row isn't enabled,
8915 just swap glyphs pointers between current and desired row.
8916 (build_frame_matrix_from_leaf_window) [GLYPH_DEBUG]: Copy
8917 desired matrix method string to current matrix.
8918
89191999-08-11 Kenichi Handa <handa@etl.go.jp>
8920
8921 * lisp.h (CHAR_MODIFIER_MASK): New macro.
8922
8923 * lread.c (read_escape): For Control modifier, pay attention to
8924 multibyte character.
8925 (read1): Likewise. Singal error or a multibyte character which
8926 has a modifer bit. Check validity of Shift modifer.
8927
8928 * charset.c (non_ascii_char_to_string): Handle modifier bits as
8929 the same as Lisp reader.
8930
89311999-08-10 Richard M. Stallman <rms@gnu.org>
8932
8933 * charset.h (BCOPY_SHORT): Fix typo `unsigined'.
8934
89351999-08-10 Alexandre Oliva <oliva@dcc.unicamp.br>
8936
8937 * unexelf.c [__linux__ && __alpha__] (HAS_SBSS_SECTION): Define.
8938
89391999-08-10 Eli Zaretskii <eliz@gnu.org>
8940
8941 * msdos.c (IT_set_face): Abort if the default face is not realized
8942 and cached.
8943 (IT_write_glyphs): Reset the screen face to the default face
8944 before writing glyphs.
8945
8946 * xfaces.c (realize_default_face) [MSDOS]: Don't take default
8947 colors from the frame here.
8948 (realize_tty_face) [MSDOS]: Do it here. Update the face
8949 attributes with the actual name of the color taken from the
8950 frame.
8951
8952 * dosfns.c (msdos_stdcolor_name): Remove const from return value.
8953 * dosfns.h (msdos_stdcolor_name): Ditto for the prototype.
8954
8955 * frame.c (Fframe_parameters): Swap foreground and background
8956 colors returned in frame parameters if the frame has reverse in
8957 its parameter alist.
8958 (Fmake_terminal_frame): Make a unique copy of face_alist for
8959 each frame.
8960
89611999-08-07 Richard Stallman <rms@gnu.org>
8962
8963 * buffer.c (Fprevious_overlay_change): Just return
8964 the answer obtained from overlays_at.
8965
8966 * xfns.c (xpm_load) [!XpmAllocCloseColors]:
8967 Use XpmCloseness and attrs.closeness instead.
8968
89691999-08-06 Richard Stallman <rms@gnu.org>
8970
8971 * lread.c (Feval_buffer): New arg DO_ALLOW_PRINT.
8972
89731999-08-06 Geoff Voelker <voelker@cs.washington.edu>
8974
427ec082 8975 * dired.c (directory_files_internal, Fdirectory_files_and_attributes,
26901792
DL
8976 Ffile_attributes_lessp): New functions.
8977 (Fdirectory_files): Use directory_files_internal.
8978 (syms_of_dired): Initialize Fdirectory_files_and_attributes,
8979 Ffile_attributes_lessp.
8980
8981 * w32.c (stat): Check for directory ending in separator when
8982 doing readdir fast path.
8983
8984 * w32fns.c (x_set_icon_type): Support setting frame icons.
8985 * w32term.c (x_bitmap_icon): New function.
8986 (x_make_frame_visible, x_iconify_frame): Invoke x_bitmap_icon.
427ec082 8987
26901792
DL
89881999-08-06 Gerd Moellmann <gerd@gnu.org>
8989
8990 * xdisp.c (set_iterator_to_next): After delivering a character
8991 from a display vector, restore face and charset to what they were
8992 before the display vector was processed.
8993
89941999-08-06 Gerd Moellmann <gerd@gnu.org>
8995
8996 * xdisp.c (reseat_at_next_visible_line_start): New parameter
8997 on_newline_p.
8998 (set_iterator_to_next): After delivering last char
427ec082 8999 from display vector, reseat on next visible line start if
26901792
DL
9000 dpvec_char_len < 0.
9001 (next_element_from_buffer): Set dpvec_char_len to -1 for
9002 selective display.
9003
90041999-08-06 Gerd Moellmann <gerd@gnu.org>
9005
9006 * xdisp.c (compute_line_metrics): If first line's physical ascent
9007 is larger than its logical ascent, use the physical ascent, and
9008 make the row taller. Set row's overlapping_p flag.
9009
9010 * dispnew.c (redraw_overlapping_rows): Use flag overlapping_p.
9011 (direct_output_for_insert): Ditto.
9012
9013 * dispextern.h (struct glyph_row): Add overlapping_p.
9014
9015 * xterm.c (x_draw_phys_cursor_glyph): Redraw overlaps.
9016
9017 * dispextern.h (MATRIX_ROW_OVERLAPS_PRED_P): New.
9018 (MATRIX_ROW_OVERLAPS_SUCC_P): New.
9019
9020 * dispnew.c (direct_output_for_insert): Don't use this method if
9021 row is overlapped by others.
9022 (update_text_area): Write full line if current line is overlapped.
9023 (redraw_overlapped_rows): New.
9024 (update_window): Call it.
9025 (redraw_overlapping_rows): New.
9026 (update_window): Call it.
9027 (scrolling_window): Make sure overlapped_p flag in current rows is
9028 unchanged.
9029 (row_equal_p): Take rows overlapped_p flag into account.
9030
9031 * dispextern.h (struct glyph_row): Add flag overlapped_p.
9032
9033 * xterm.c (x_fix_overlapping_area): New.
9034 (x_redisplay_interface): Add x_fix_overlapping_area.
9035
9036 * dispnew.c (adjust_glyphs): Block input while adjusting matrices.
9037
90381999-08-06 Gerd Moellmann <gerd@gnu.org>
9039
9040 * xterm.c (x_draw_glyphs): Add parameter overlaps_p.
9041 (struct glyph_string): Add member for_overlaps_p.
9042 (x_get_glyph_string_clip_rect): If glyph string draws foreground
9043 of overlapping rows, clip to window bottom.
9044 (x_fill_glyph_string): Add parameter overlaps_p.
9045 (x_fill_composite_glyph_string): Ditto.
9046 (BUILD_GLYPH_STRINGS): Ditto.
9047 (BUILD_CHAR_GLYPH_STRINGS): Ditto.
9048 (x_draw_glyph_string): Don't draw anything but the foreground
9049 if glyph string draws row overlaps.
9050
9051 * dispnew.c (direct_output_for_insert): Don't use this
9052 optimization for rows that overlap others.
9053 (update_window_line): Return non-zero if display has changed.
9054 (update_text_area): Ditto.
9055 (update_window): Record if display has been changed.
9056
9057 * dispextern.h (MATRIX_ROW_OVERLAPPING_P): New.
9058
9059 * dispextern.h (struct redisplay_interface): Add
9060 fix_overlapping_area.
9061
9062 * xterm.c (x_append_glyph): Set glyph flag overlaps_vertically_p.
9063
9064 * dispextern.h (struct glyph): Add overlaps_vertically_p.
9065
9066 * xterm.c (x_produce_image_glyph): Compute iterator's physical
9067 ascent and descent.
9068 (x_produce_stretch_glyph): Ditto.
9069 (x_produce_glyphs): Ditto.
9070
9071 * xdisp.c (init_iterator): Reset physical line height info
9072 after producing special glyphs.
9073 (display_toolbar_line): Set physical line height info.
9074 (compute_line_metrics): Ditto.
9075 (display_line): Ditto.
9076 (display_string): Ditto.
9077
9078 * term.c (produce_glyphs): Set iterator's physical height
9079 information.
9080
9081 * dispnew.c (blank_row): Compute glyph row's physical height.
9082 (row_equal_p): Take physical row heights into account.
9083 (direct_output_for_insert): Ditto.
9084 (update_text_area): Ditto.
9085
9086 * dispextern.h (struct glyph_row): Add phys_ascent and
9087 phys_height.
9088 (struct it): Add phys_ascent, phys_descent, max_phys_ascent,
9089 max_phys_descent.
9090
90911999-08-04 Stefan Monnier <monnier@cs.yale.edu>
9092
9093 * buffer.c (switch_to_buffer_1): New subroutine, taken out from
9094 Fswitch_to_buffer.
9095 (no_switch_buffer): New function.
9096 (Fswitch_to_buffer): Call them. Don't get confused
9097 by "same-window" buffers in a dedicated frame.
9098
9099 * window.c (display-buffer): Don't get confused
9100 by "same-window" buffers in a dedicated frame.
9101
91021999-08-04 Andreas Schwab <schwab@gnu.org>
9103
9104 * insdel.c (insert_from_string_1): Check gap size against number
9105 of outgoing bytes, not incoming bytes.
9106
91071999-08-03 Tom Breton <tob@world.std.com>
9108
9109 * lread.c (read1): Added circular reading code to #N=.
9110 (SUBSTITUTE): New macro.
9111 (seen_list): New variable.
9112 (substitute_object_in_subtree): New function.
9113 (substitute_object_recurse): New function.
9114 (substitute_in_interval): New function.
9115
91161999-08-02 Eli Zaretskii <eliz@gnu.org>
9117
9118 * Makefile.in (frame.o, sysdep.o, xfaces.o): Depend on dosfns.h.
9119
9120 * frame.c (make_terminal_frame): Don't call init_frame_faces if
9121 noninteractive, for termcap frames as well.
9122
9123 * sysdep.c (init_sys_modes): Call init_frame_faces for termcap
9124 frames.
9125
91261999-08-01 Richard Stallman <rms@gnu.org>
9127
9128 * fns.c (internal_equal): Correct overlay comparison.
9129
83c8f461 91301999-07-31 Richard M. Stallman <rms@gnu.org>
26901792 9131
427ec082 9132 * xfns.c (x_set_internal_border_width):
26901792
DL
9133 Call do_pending_window_change. Don't block input, don't call XFlush.
9134 (x_set_vertical_scroll_bars): Call do_pending_window_change.
9135 (x_set_scroll_bar_width, x_set_font): Likewise.
9136
9137 * frame.c (Fset_frame_height): Call do_pending_window_change.
9138 (Fset_frame_width, Fset_frame_size): Likewise.
9139
9140 * xterm.c (x_set_window_size): When calling change_frame_size,
9141 specify 1 for DELAY.
9142
9143 * widget.c (EmacsFrameSetCharSize): Don't call
9144 do_pending_window_change here.
9145
91461999-07-30 Dave Love <fx@gnu.org>
9147
9148 * config.in: Add HAVE_STDLIB_H.
9149
91501999-07-30 Richard M. Stallman <rms@gnu.org>
9151
9152 * process.c (create_process): Detect failure of `pipe'.
9153
91541999-07-30 Keisuke Nishida <kei@psn.net>
9155
9156 * alloc.c (allocate_vectorlike): Add missing increment.
9157
9158 * data.c (Fdefalias): Call Ffset instead of duplicating code.
9159
9160 * keymap.c (get_keymap_1, get_keyelt): Check the type of OBJECT
9161 before calling indirect_function.
9162
91631999-07-30 Eli Zaretskii <eliz@gnu.org>
9164
9165 * dispextern.h (load_color, lookup_derived_face): Declare
9166 prototypes.
9167
9168 * dispnew.c (init_display) [MSDOS]: Don't initialize frame faces,
9169 it will be done later.
9170
9171 * frame.c (make_terminal_frame) [MSDOS]: Don't call
9172 init_frame_faces if non-interactive.
9173 (Fframe_parameters) [MSDOS]: Replace indexing into colornames[]
9174 array with a call to msdos_stdcolor_name. The font name is now
9175 "ms-dos", consistent with realize_tty_face.
9176
9177 * keyboard.c (cmd_error_internal): Don't kill Emacs if this is an
9178 MSDOS frame.
9179
9180 * window.c (Fset_window_configuration) [MSDOS]: Don't call
9181 x_set_toolbar_lines.
9182
9183 * xfaces.c (load_color): Remove static from definition and remove
9184 prototype.
9185 [MSDOS]: Add a DOS-specific version of load_color.
9186 (lookup_face): Replace FRAME_TERMCAP_P with !FRAME_WINDOW_P.
9187 (lookup_derived_face): New function.
9188 (realize_default_face): Support MSDOS frames.
9189 [MSDOS]: If fore/background colors are unspecified, inherit them
9190 from the frame.
9191 (realize_face): Support MSDOS frames.
9192 (realize_tty_face): Support MSDOS frames.
9193 [MSDOS]: If the face color is not in Vface_tty_color_alist, call
9194 load_color to try to find a suitable approximation. If the face
9195 is inverse-video, swap the foreground and background colors.
9196
9197 * dosfns.c (msdos_stdcolor_name, msdos_stdcolor_idx): New
9198 functions.
9199
9200 * dosfns.h (msdos_stdcolor_name, msdos_stdcolor_idx): Declare.
9201
9202 * msdos.h: Remove redundant declarations (most of them are now in
9203 dispextern.h).
9204
9205 * msdos.c (IT_set_face): Rewritten for the new redisplay engine.
9206 Use default frame colors if the face doesn't specify them; invert
9207 the colors if highlight is ON.
9208 (IT_write_glyphs): Rewritten for the new redisplay engine.
9209 (IT_change_line_highlight): Add (unused) parameter Y, since that's
9210 how the hook is called by term.c.
9211 (IT_copy_glyphs): New function, copies an area of the display in
9212 video RAM.
9213 (IT_insert_glyphs): Rewritten to DTRT instead of aborting, since
9214 redisplay now calls it even if char_ins_del_ok is zero.
9215 (IT_set_frame_parameters): Prototype changed. Calls the new
9216 load_color. Puts the new fore/background colors into the default
9217 face on current frame.
9218 (IT_menu_display): Rewritten to handle the new struct glyph
9219 instead of a char array.
9220 (XMenuActivate): Call lookup_derived_face to create and use
9221 special faces for the pop-up and drop-down menus.
9222
92231999-07-29 Gerd Moellmann <gerd@gnu.org>
9224
9225 * xterm.c (x_set_toolkit_scroll_bar_thumb): Don't call
9226 XawScrollbarSetThumb if thumb parameters haven't changed because
9227 that function apparently isn't optimized for this case.
9228
92291999-07-29 Eli Zaretskii <eliz@gnu.org>
9230
9231 * msdos.c (getdefdir): Don't return failure indication when
9232 _fixpath sets errno to ENOSYS.
9233
92341999-07-28 Gerd Moellmann <gerd@gnu.org>
9235
9236 * xdisp.c (string_char_and_length): New. Use it everywhere
9237 instead of STRING_CHAR_AND_LENGTH in xdisp.c.
9238
92391999-07-28 Kenichi Handa <handa@etl.go.jp>
9240
9241 * fns.c (count_combining): New function.
9242 (struct textprop_rec): New structure.
9243 (concat): Copy text properties correctly when byte combining
9244 occurs.
9245
92461999-07-28 Gerd Moellmann <gerd@gnu.org>
9247
9248 * xterm.c (x_setup_relief_color): Don't try smart color allocation
9249 if display is mono.
9250 (x_draw_row_bitmaps): If face has stipple, don't switch
9251 to foreground color for clearing areas, and set the fill style.
9252
9253 * xfaces.c (load_face_colors): Load background color if setting
9254 stipple, too.
427ec082 9255 (prepare_face_for_display): Use FillOpaqueStippled instead of
26901792
DL
9256 FillStippled.
9257
92581999-07-26 Ken'ichi Handa <handa@gnu.org>
9259
9260 * xterm.c (x_find_ccl_program): Add casting.
9261
9262 * w32fns.c (w32_find_ccl_program): Add casting.
9263
92641999-07-27 Gerd Moellmann <gerd@gnu.org>
9265
9266 * dispextern.h (struct glyph_row): Flag internal_border_p removed.
9267
9268 * xfns.c (x_create_tip_frame): Don't set bitmapIcon resource
9269 because this will try to access a nonexisting widget.
9270
92711999-07-26 Markus Rost <rost@gnu.org>
9272
427ec082 9273 * fns.c (Fgethash): Fix order of variables (patch by gerd).
26901792
DL
9274 (Fputhash): Ditto.
9275 (Fremhash): Ditto.
9276
92771999-07-26 Gerd Moellmann <gerd@gnu.org>
427ec082 9278
26901792
DL
9279 * widget.c (EmacsFrameSetCharSize): Don't add XtNborderWidth
9280 value to frame width and height.
9281
9282 * xterm.c (x_get_glyph_string_clip_rect): Take internal border
9283 into account for full-width windows. Don't add scroll bar width
9284 to width of clip rect.
9285 (x_draw_glyph_string_box): Add 1 to right x of full width lines.
9286 (x_set_glyph_string_background_width): Add 1 to background width.
9287 (x_draw_glyphs): Take internal border into account for full-width
9288 lines.
9289
92901999-07-26 Richard M. Stallman <rms@gnu.org>
9291
9292 * xfns.c (x_set_mouse_color): Always unload the old color.
9293 Don't allow nil as color value.
427ec082 9294 (x_set_cursor_color, x_set_background_color, x_set_foreground_color):
26901792
DL
9295 Always unload the old color.
9296
9297 * indent.c (Fmove_to_column): Extend end of line only if FORCE is t.
9298
92991999-07-26 Karl Heuer <kwzh@gnu.org>
9300
9301 * fns.c (Fy_or_n_p): Doc fix.
9302
93031999-07-26 Kenichi Handa <handa@etl.go.jp>
9304
9305 * ccl.h (setup_ccl_program): The type is changed to `int'.
9306
9307 * ccl.c (ccl_driver) <CCL_Call>: Now CCL program ID to call may be
9308 stored in the following CCL code. Adjusted for the change of
9309 Vccl_program_table.
9310 (resolve_symbol_ccl_program): Adjusted for the new style of
9311 embedded symbols (SYMBOL . PROP) in CCL compiled code. Return Qt
9312 is resolving failed.
9313 (ccl_get_compiled_code): New function.
9314 (setup_ccl_program): Function type changed from `void' to `int'.
9315 Resolve symbols in CCL_PROG.
9316 (Fccl_program_p): New function.
9317 (Fccl_execute): Get compiled CCL code by just calling
9318 setup_ccl_program.
9319 (Fccl_execute_on_string): Likewise.
9320 (Fregister_ccl_program): Adjusted for the change of
9321 Vccl_program_table.
9322
9323 * coding.c (setup_coding_system): Get compiled CCL code by just
9324 calling setup_ccl_program.
9325
9326 * xterm.c (x_find_ccl_program): Get compiled CCL code by just
9327 calling setup_ccl_program.
9328
9329 * w32fns.c (w32_find_ccl_program): Get compiled CCL code by just
9330 calling setup_ccl_program.
9331
93321999-07-23 Gerd Moellmann <gerd@gnu.org>
9333
9334 * xfaces.c (frame_update_line_height): Just use the height of the
9335 frame's fontset or font, instead of taking face fonts into
9336 account.
9337
9338 * xdisp.c (get_next_display_element): Display DEL as `^?'.
9339
93401999-07-23 Richard M. Stallman <rms@gnu.org>
9341
9342 * window.c (Fsplit_window): For default size, round up for left window.
9343
93441999-07-21 Joe Ramey <ramey@ti.com>
9345
d7d0dac0 9346 * filelock.c (lock_if_free): Return -1 if check_lock_owner
26901792
DL
9347 has returned -1 (lockfile exists but is not a symlink?).
9348
93491999-07-20 Gerd Moellmann <gerd@gnu.org>
9350
9351 * xterm.c (x_draw_bar_cursor): Use scratch_cursor_gc to
9352 because of a change in cursor_gc made in 20.4.
9353
93541999-07-19 Gerd Moellmann <gerd@gnu.org>
9355
9356 * xterm.c (x_calc_absolute_position): Subtract menu bar height
9357 for YNegative, if using X toolkit.
9358
427ec082 9359 * xfns.c (x_real_positions): Don't subtract window borders
26901792
DL
9360 from positions returned.
9361
93621999-07-17 Gerd Moellmann <gerd@gnu.org>
9363
9364 * xrdb.c (x_load_resources): Set double-click time defaults
9365 for Motif list boxes from double-click-time.
9366
9367 * fns.c (Vhash_table_tests): Remvoed.
9368 (Qhash_table_test): New.
9369 (syms_of_fns): Initialize Qhash_table_test.
9370 (Fmake_hash_table): Look up user-defined tests in symbol prop
9371 `hash-table-test'.
9372 (Fdefine_hash_table_test): Store test and hash function as
9373 symbol prop `hash-table-test'.
9374 (make_hash_table): Add parameters user_test and user_hash.
9375
9376 * window.c (set_window_buffer): Set window margins for tty
9377 frames, too.
9378 (Fset_window_margins): Ditto.
9379
9380 * term.c (append_glyph): Use glyph area of iterator instead of
9381 always TEXT_AREA.
9382
9383 * dispnew.c (update_frame_1): Add left margin width to cursor
9384 hpos.
9385 (direct_output_for_insert): Ditto.
9386 (direct_output_forward_char): Ditto.
9387
9388 * dispnew.c (adjust_glyph_matrix): Set glyph matrix' top_line_p.
9389
9390 * dispextern.h (struct glyph_matrix): Add top_line_p.
9391
93921999-07-16 Gerd Moellmann <gerd@gnu.org>
9393
9394 * frame.h (FRAME_WINDOW_REDISPLAY_P): Removed. Use FRAME_WINDOW_P
9395 instead.
9396
9397 * fns.c (cmpfn_eq): Add hash code parameters.
9398 (cmpfn_eql): Ditto.
9399 (cmpfn_equal): Ditto, and compare hash codes before calling Fequal.
9400 (cmpfn_user_defined): Likewise.
9401
94021999-07-15 Gerd Moellmann <gerd@gnu.org>
9403
9404 * lisp.h (DEFAULT_REHASH_THRESHOLD): Changed to 0.8.
9405
9406 * fns.c (maybe_resize_hash_table): Correct computation of
9407 index vector size.
9408 (make_hash_table): Ditto.
9409 (Fmakehash): New.
9410
9411 * xdisp.c (echo_area_display): Don't call redraw_garbaged_frames.
9412
9413 * alloc.c (gc_sweep): Call sweep_weak_hash_tables.
9414 (survives_gc_p): Make it externally visible.
9415 (mark_object): Ditto.
9416
9417 * fns.c (remove_hash_entry): Removed.
9418 (sweep_weak_hash_tables): New.
9419
9420 * print.c (print): Print more information about hash tables.
9421
9422 * xfns.c (image_spec_hash): Removed.
9423 (lookup_image): Use sxhash instead of image_spec_hash.
9424 (image_spec_equal_p): Removed.
9425 (lookup_image): Use Fequal instead of image_spec_equal_p.
9426
94271999-07-14 Gerd Moellmann <gerd@gnu.org>
9428
9429 * lisp.h (P_): Moved to top of file.
9430
9431 * fns.c (make_hash_table): Set new members.
9432
9433 * alloc.c (mark_object): Mark hash table's user_hash_function.
9434 Mark index vector for weak hash tables.
9435
9436 * lisp.h (struct Lisp_Hash_Table): Add user_cmp_function,
9437 user_hash_function, cmpfn, and hashfn.
9438
9439 * fns.c (build_hash): Removed.
9440 (hash_test): Removed.
9441 (cmpfn_eq, cmpfn_eql, cmpfn_equal, cmpfn_user_defined): New.
9442 (hashfn_eq, hashfn_eql, hashfn_equal, hashfn_user_defined): New.
9443
94441999-07-13 Gerd Moellmann <gerd@gnu.org>
9445
9446 * alloc.c (survives_gc_p): New.
9447
9448 * print.c (print): Add hash table handling.
9449
9450 * alloc.c (mark_object): Add code to mark hash tables.
9451
9452 * lisp.h (GC_HASH_TABLE_P): New.
9453
9454 * emacs.c (main): Call init_fns.
9455
9456 * fns.c (init_fns): New.
9457
9458 * fns.c: Add hash table implementation.
9459
9460 * lisp.h (PVEC_HASH_TABLE): New.
9461 (struct Lisp_Hash_Table): New.
9462 (XHASH_TABLE): New.
9463 (XSET_HASH_TABLE): New.
9464 (HASH_TABLE_P): New.
9465 (CHECK_HASH_TABLE): New.
9466 (DEFAULT_HASH_SIZE): New.
9467 (DEFAULT_REHASH_THRESHOLD): New.
9468 (DEFAULT_REHASH_SIZE): New.
9469
9470 * xterm.c (x_draw_glyphs): Add parameters real_start and real_end.
9471 (x_write_glyphs): Compute overwritten cursor using real start
9472 and end positions of display.
9473 (x_insert_glyphs): Ditto.
9474
94751999-07-10 Gerd Moellmann <gerd@gnu.org>
9476
9477 * keyboard.c (read_char): Use message3_nolog to show help-echo.
9478
9479 * dispnew.c (blank_row): Add y-position as parameter. Compute
9480 visible height.
9481
9482 * xdisp.c (next_element_from_string): Give padding spaces
9483 a position of -1.
9484
427ec082 9485 * dispnew.c (adjust_glyph_matrix): Some work to support
26901792
DL
9486 marginals areas on tty frames in a future version.
9487 (allocate_matrices_for_frame_redisplay): Ditto.
9488
9489 * xdisp.c (display_line): At ZV, set glyph row's displays_text_p
9490 to zero if number of glyphs in the row is <= 1.
9491
94921999-07-09 Gerd Moellmann <gerd@gnu.org>
9493
9494 * dispnew.c (buffer_posn_from_coords): Take left marginal area
9495 into account.
9496
9497 * xdisp.c (handle_display_prop): Don't reset area if handing
9498 a property from a string that came from a `display' property.
9499 (handle_single_display_prop): Don't handle recursive `display'
9500 properties.
9501 (handle_single_display_prop): Handle some display property
9502 forms for terminal frames.
9503 (Qimage): Moved here from xfns.c.
9504
9505 * dispextern.h (struct it): New field string_from_display_prop_p.
9506
9507 * xterm.c (x_clip_to_row): Don't let clip_rect include top
9508 line.
9509
95101999-07-08 Gerd Moellmann <gerd@gnu.org>
9511
9512 * xdisp.c (handle_single_display_prop): Handle `:when FORM'.
9513
9514 * window.c (set_window_buffer): Set window's vscroll to zero.
9515
9516 * xdisp.c (QCwhen): New.
9517 (display_prop_end): New.
9518 (handle_single_display_prop): Use it.
9519 (debug_method_add): Print buffer name if tracing.
9520 (try_window_reusing_current_matrix): Compute visible height
9521 of reused rows. Fix cursor position calculation in case of
9522 top-line.
9523
9524 * dispextern.h (struct redisplay_interface): Add parameter
9525 cursor_on_p to update_window_end_hook.
9526
9527 * xterm.c (x_update_window_end): Add parameter cursor_on_p.
9528
95291999-07-07 Gerd Moellmann <gerd@gnu.org>
9530
427ec082 9531 * xdisp.c (redisplay_internal): Ensure that redisplayinp_p
26901792
DL
9532 doesn't become negative when decrementing it.
9533
9534 * eval.c (Fsignal): Reset redisplaying_p to zero.
9535
9536 * xdisp.c (try_window_reusing_current_matrix): Call hooks
9537 for window update.
9538 (try_window_id): Ditto.
9539
9540 * xterm.c (x_clear_end_of_line): Handle top-line correctly.
9541 (x_scroll_run): Ditto.
9542 (any_help_event_p): New.
9543 (x_initialize): Set it to zero.
9544 (XTread_socket): Clear help echo only if any_help_event_p.
9545
9546 * xdisp.c (init_iterator): Set top_line_p.
9547 (start_display): Use correct initial y if top-line is present.
9548 (make_cursor_line_fully_visible): Bug fixes for top-line.
9549 (try_scrolling): Ditto.
9550 (try_window_reusing_current_matrix): Ditto.
9551
9552 * dispextern.h (struct it): Add top_line_p.
9553
9554 * dispnew.c (shift_glyph_matrix): Move some computations out
9555 of the loop.
9556
427ec082 9557 * dispnew.c (margin_glyphs_to_reserve): Use NUMBERP and
26901792
DL
9558 XFLOATINT.
9559
95601999-07-06 Gerd Moellmann <gerd@gnu.org>
9561
9562 * dispnew.c (update_frame_1): When setting cursor in echo area,
9563 skip only over padding spaces at the end.
9564
9565 * xfaces.c (realize_tty_face): Set face's font_name field to
9566 "tty".
9567
9568 * term.c (update_end): Turn cursor on only if selected window's
9569 cursor_off_p flag is not set.
9570
95711999-07-05 Gerd Moellmann <gerd@gnu.org>
9572
9573 * term.c (TS_cursor_visible): Renamed from TS_visual_mode.
9574 (TS_cursor_normal): Renamed from TS_end_visual_mode.
9575 (TS_cursor_invisible): New.
9576 (term_init): Initialize TS_cursor_invisible.
9577 (tty_hide_cursor): New.
9578 (tty_show_cursor): New.
9579 (update_end): Show tty cursor.
9580 (update_begin): Hide tty cursor to prevent cursor flickering
9581 during redisplays triggered by timers (stealth fontification).
9582
9583 * keyboard.c (make_lispy_event) <TOOLBAR_EVENT>: Apply modifiers.
9584
9585 * xterm.c (XTread_socket) [USE_MOTIF] <KeyPress>: Catch events
9586 in scroll bars.
9587 (x_handle_toolbar_click): Set modifier bits.
9588
95891999-07-04 Gerd Moellmann <gerd@gnu.org>
9590
9591 * keyboard.c (kbd_store_ptr): Declare it as a volatile pointer
9592 instead of a pointer to a volatile input_event.
427ec082 9593 (kbd_buffer_store_event): Remove volatile modifier from
26901792
DL
9594 declaration of local variable `sp'.
9595 (Fdiscard_input): Don't cast when assigning kbd_store_ptr
9596 to kbd_fetch_ptr.
9597
95981999-07-03 Gerd Moellmann <gerd@gnu.org>
9599
9600 * xdisp.c (try_window_id): Set beg_unchanged and end_unchanged
9601 only if buffer is modified. Return quickly if changes are
9602 above window start.
9603
96041999-07-02 Gerd Moellmann <gerd@gnu.org>
9605
9606 * dispextern.h (HSCROLL_WINDOWS): Removed.
9607
9608 * xdisp.c (mark_window_display_accurate): Don't set
9609 w->region_showing.
9610 (redisplay_internal): Don't call redraw_garbaged_frames.
9611
96121999-07-01 Gerd Moellmann <gerd@gnu.org>
9613
9614 * xdisp.c (echo_area_display): Don't display truncation marks
9615 for messages because 20.4 doesn't do it either.
9616 (redisplay_window): Case same window start. Instead of giving
9617 up when cursor is partially visible, make it fully visible.
9618 (mark_window_display_accurate): Some cleanup. Record window's
9619 last cursor information.
9620 (debug_method_add): Improved.
9621 (redisplay_internal): Record last cursor info only if not
9622 consider_all_windows_p.
9623
9624 * dispnew.c (update_window): Update top line after scrolling.
9625 (blank_row): Renamed from make_empty_enabled_row.
9626 (increment_glyph_row_buffer_positions): Increment positions
9627 in buffers, only.
9628
9629 * window.c (Fcoordinates_in_window_p): Add top-line to doc
9630 string.
9631
96321999-06-30 Gerd Moellmann <gerd@gnu.org>
9633
9634 * dispnew.c (update_window): Check that updated row is visible.
9635
9636 * xterm.c (x_draw_row_bitmaps): Check for invisible rows at
9637 top of window differently.
9638
9639 * xdisp.c (try_window_reusing_current_matrix): Don't do it
9640 if region is showing.
9641
9642 * dispnew.c (adjust_glyph_matrix): Check w->vscroll when
9643 avoiding matrix reallocation. Set window_vscroll in matrix.
9644
9645 * dispextern.h (struct glyph_matrix): Add member window_vscroll.
9646
26901792
DL
9647 * xdisp.c (debug_method_add): New.
9648 (debug_redisplay_method): Removed.
9649 (try_window_reusing_current_matrix): Handle case where old
9650 window start is the same as new window start.
9651
9652 * dispextern.h (struct glyph_matrix) [GLYPH_DEBUG]: Make `method'
9653 an array instead of a pointer.
9654
26901792
DL
9655 * xfns.c (Fx_show_tip): Undo previous change.
9656
9657 * xterm.c (x_append_glyph): Clear glyph->u.val.
9658
9659 * dispextern.h (struct glyph): Increase size of face_id bit-field
9660 for CHAR_GLYPH to 12.
9661
96621999-06-29 Gerd Moellmann <gerd@gnu.org>
9663
9664 * xfaces.c (x_charset_registry): Make it externally visible.
9665
96661999-06-28 Gerd Moellmann <gerd@gnu.org>
9667
427ec082 9668 * dispnew.c (update_window): Use mode_line_p flag of rows
26901792
DL
9669 instead of WINDOW_WANTS_MODELINE_P.
9670
9671 * xterm.c (clear_mouse_face): Make externally visible.
9672
9673 * xfns.c (Fx_show_tip): Clear mouse face before showing tip.
9674
9675 * xterm.c (expose_line): Handle exposure of top-lines.
9676
9677 * xterm.c (XTframe_up_to_date): Don't call note_mouse_highlight
9678 if mouse_face_mouse_frame is null.
9679
9680 * xdisp.c (redisplay_window): If window is echo_area_window,
9681 and update_mode_line is set, update menubar and toolbar.
9682
9683 * dispnew.c (space_glyph): Set its charpos to -1.
9684 (update_frame_1): Ignore trailing padding spaces.
9685
9686 * xdisp.c (next_element_from_c_string): Set position of padding
9687 glyphs to -1.
9688
96891999-06-27 Gerd Moellmann <gerd@gnu.org>
9690
9691 * xfns.c (x_laplace_read_row): Use XQueryColors instead of
9692 XQueryColor.
9693
9694 * xdisp.c (display_menu_bar): Remove unwarranted assertion.
9695 (set_cursor_from_row): Skip over glyphs having a null object at
9696 the start of rows.
9697 (insert_left_trunc_glyphs): Use charpos < 0 to indicate truncation
9698 glyphs.
9699 (handle_invisible_prop): Compute next change only when needed.
9700 (handle_face_prop): Don't correct DEFAULT_FACE_ID if in the mode
9701 line.
9702
97031999-06-26 Gerd Moellmann <gerd@gnu.org>
9704
9705 * xrdb.c (x_load_resources): Don't set resource for double-click
9706 time.
9707
9708 * xdisp.c (try_window_id): Return quickly if all changes are
9709 below the window's current matrix end.
9710
9711 * dispextern.h (MATRIX_ROW_PARTIALLY_VISIBLE_P): Remove window
9712 parameter.
9713
9714 * xdisp.c (try_window_reusing_current_matrix): Set no_scrolling_p
9715 in desired not in current matrix.
9716 (try_window_reusing_current_matrix): Rotate matrices starting
9717 at start_vpos instead of 0.
9718
9719 * xterm.c (expose_window): Use window_text_bottom_y.
9720 (fast_find_position): Ditto.
9721
9722 * xdisp.c (redisplay_window): Use window_text_bottom_y.
9723 (try_window_reusing_current_matrix): Ditto.
9724 (get_last_unchanged_at_beg_row): Ditto.
9725 (init_iterator): Ditto.
9726
9727 * dispnew.c (allocate_matrices_for_window_redisplay): Allocate one
9728 more row.
9729 (check_matrix_invariants): Use window_text_bottom_y.
9730 (update_window): Ditto.
9731 (scrolling_window): Ditto.
9732
9733 * xdisp.c (window_text_bottom_y): New.
9734
97351999-06-25 Gerd Moellmann <gerd@gnu.org>
9736
9737 * xterm.c (XTread_socket): Set mouse_face_frame to zero after
9738 clearing mouse face.
9739 (XTread_socket) <EnterNotify> [LESSTIF_VERSION]: If
9740 event.xcrossing.focus is not set, and focus is in the menu bar,
9741 set focus frame as if event.xcrossing.focus were set.
9742
97431999-06-24 Gerd Moellmann <gerd@gnu.org>
9744
9745 * keyboard.c (make_lispy_event): Handle mouse on top lines.
9746 * keyboard.c (make_lispy_movement): Ditto.
9747
9748 * window.c (coordinates_in_window): Return 4 if on top line.
9749 (Fcoordinates_in_window_p): Return `top-line' if on top line.
9750
9751 * xdisp.c (window_box_height): Subtract top line height.
9752 (window_box): Add top line height to top y position if top line
9753 exists.
9754 (init_iterator): If base_face_id is TOP_LINE_FACE_ID, set row to
9755 the top line row of the window. Set initial y-position to
9756 window's top line height plus delta.
9757 (start_display): Choose start glyph row depending on whether
9758 window has a top line.
9759 (try_scrolling): Take top line height into account for aggressive
9760 scrolling.
9761 (compute_window_start_on_continuation_line): Take top line into
9762 account.
427ec082 9763 (redisplay_window): Ditto. If top line height has changed,
26901792
DL
9764 trigger a new redisplay.
9765 (try_window_reusing_current_matrix): Take top line into account.
9766 (find_last_row_displaying_text): Ditto.
9767 (get_last_unchanged_at_beg_row): DItto.
9768 (try_window_id): Ditto.
9769 (compute_line_metrics): Ditto.
9770
9771 * dispnew.c (shift_glyph_matrix): Compute visible row height
9772 taking top line of window into account.
9773 (update_window): Update top line. If scrolling_window detects
9774 that all rows are equal, only set cursor.
9775 (update_window_line): Call after_update_window_line_hook if
9776 mode_line_p flag of rows has changed.
9777 (scrolling_window): Add parameter top_line_p. Return -1 if
9778 all rows are equal.
9779 (mode_line_string): Add parameter mode_line_p. Handle strings
9780 in top lines.
9781
9782 * dispextern.h (MATRIX_TOP_LINE_ROW): New.
9783 (MATRIX_FIRST_TEXT_ROW): New.
9784 (MATRIX_ROW_PARTIALLY_VISIBLE_P): Use row's visible_height.
9785 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_TOP_P): New.
9786 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_BOTTOM_P): New.
9787 (MATRIX_TOP_LINE_HEIGHT): New.
9788 (CURRENT_MODE_LINE_HEIGHT): Use estimate_mode_line_height.
9789 (CURRENT_TOP_LINE_HEIGHT): New.
9790 (DESIRED_TOP_LINE_HEIGHT): New.
9791 (WINDOW_DISPLAY_TOP_LINE_HEIGHT): New.
9792 (WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE): Replaces
9793 WINDOW_DISPLAY_TEXT_AREA_PIXEL_HEIGHT.
9794 (WINDOW_DISPLAY_TEXT_HEIGHT): New.
9795
9796 * xterm.c (x_after_update_window_line): Don't draw bitmaps for top
9797 lines.
9798 (x_draw_row_bitmaps): Take top line into account when clearing
9799 bitmap area.
9800 (x_estimate_mode_line_height): Replacement for
9801 x_frame_mode_line_height.
9802 (x_get_glyph_string_clip_rect): Take top line into account.
9803 (x_clear_end_of_line): Ditto.
9804 (note_mode_line_highlight): Add parameter mode_line_p. Handle
9805 top lines.
9806 (note_mouse_highlight): Call note_mode_line_highlight for top lines.
9807 (x_erase_phys_cursor): Take top line into account.
9808
9809 * xdisp.c (window_box_height): Subtract top line height if
9810 window wants a top line.
9811 (display_mode_lines): New.
9812 (redisplay_window): Call it.
9813 (display_mode_line): Add parameters face_id and format.
9814
9815 * dispextern.h (CURRENT_TOP_LINE_HEIGHT): New.
9816 (MATRIX_TOP_LINE_HEIGHT): New.
9817
9818 * xterm.c (x_frame_mode_line_height): Add parameter face_id.
9819
9820 * term.c (estimate_mode_line_height): Renamed from
9821 frame_mode_line_height. Add parameter face_id.
9822 (estimate_mode_line_height_hook): Renamed from
9823 frame_mode_line_height_hook.
9824 (produce_special_glyphs_hook): Removed.
9825 (produce_glyphs_hook): Removed.
9826
98271999-06-23 Gerd Moellmann <gerd@gnu.org>
9828
9829 * dispextern.h (WINDOW_WANTS_TOP_LINE_P): New.
9830 (struct glyph_row): Add mode_line_p.
9831
9832 * xfaces.c (realize_basic_faces): Realize face `top-line'.
9833 (Qtop_line): New.
9834 (syms_of_xfaces): Initialize Qtop_line.
9835
9836 * dispextern.h (TOP_LINE_FACE_ID): New.
9837
9838 * buffer.c (init_buffer_once): Set default for
9839 top_line_format to nil.
9840 (init_buffer_once): Init top_line_format.
9841 (default-top-line-format): New.
9842 (top-line-format): New buffer-local variable.
9843
9844 * buffer.h: Add top_line_format.
9845
9846 * xdisp.c (overlay_arrow_changed_p): Removed because not used.
9847
98481999-06-17 Dave Love <fx@gnu.org>
9849
9850 * xfns.c: Move the PNG section before the JPEG one to avoid
9851 problems surrounding setjmp.h/png.h on GNU/Linux.
427ec082 9852
26901792
DL
98531999-06-17 Gerd Moellmann <gerd@gnu.org>
9854
9855 * xfns.c (x_kill_gs_process): Don't free colors.
9856
98571999-06-17 Dave Love <fx@gnu.org>
9858
9859 * s/gnu-linux.h: Zap spurious ~.
9860
98611999-06-16 Gerd Moellmann <gerd@gnu.org>
9862
9863 * xfns.c (gif_load): Improve multi-image support.
9864
98651999-06-15 Gerd Moellmann <gerd@gnu.org>
9866
9867 * xfns.c (gif_load): Support multi-image files.
9868
9869 * Makefile.in (LIBGIF): Use libungif.
9870
9871 * configure.in (HAVE_GIF): Use libungif instead of libgif
9872 because the former doesn't contain patented compression code.
9873
9874 * xdisp.c (compute_window_start_on_continuation_line): Don't
9875 do it if line start is too far away from window start.
9876
98771999-06-14 Gerd Moellmann <gerd@gnu.org>
9878
9879 * buffer.c (init_buffer_once): Set buffer_local_flags for
9880 scroll_*_aggressively.
9881 (syms_of_buffer): Add DEFVAR_PER_BUFFER for scroll-*-aggressively.
9882 (init_buffer_once): Set defaults for these variables.
9883 (syms_of_buffer): Add default-scroll-*-aggressively.
9884
9885 * buffer.h (scroll_up_aggressively): New.
9886 (scroll_down_aggressively): New.
9887
9888 * Makefile.in (LIBPNG): Add -lz -lm in case we're linking with
9889 a static PNG library.
9890
9891 * configure.in (HAVE_PNG): Add -lz -lm when checking for PNG lib
9892 in case it's a static library.
9893
9894 * Makefile.in (ctagsfiles): Split so that files starting
9895 with an `x' are found before files starting with `w32'.
9896 (ctagsfiles1): New.
9897 (ctagsfiles2): New.
9898 (TAGS): Use ctagsfiles[12] instead of ctagsfiles.
9899
9900 * xdisp.c (compute_window_start_on_continuation_line): New.
9901 (redisplay_window): Use it.
9902 (INFINITY): New.
9903 (reseat_to_string): Use it.
9904 (hscroll_window_tree): Ditto.
9905 (compute_window_start_on_continuation_line): Ditto.
9906 (redisplay_window): Don't force display with a new window start.
9907
99081999-06-06 Gerd Moellmann <gerd@gnu.org>
9909
9910 * xfns.c (x_report_frame_params): Don't report `outer-window-id'
9911 if widget not present.
9912
9913 * xdisp.c (prepare_menu_bars): Ignore tooltip frame.
9914
99151999-06-04 Gerd Moellmann <gerd@gnu.org>
9916
9917 * xfaces.c (recompute_basic_faces)[GLYPH_DEBUG]: Check return
9918 value of realize_basic_faces.
9919 (load_face_font_or_fontset): Store full font name in face.
9920 (realize_default_face): Use full font name.
9921
26901792
DL
9922 * xterm.c (x_produce_glyphs): Set member char_to_display.
9923 (x_append_glyph): Store char_to_display in glyphs.
9924
9925 * dispextern.h (struct it): Add char_to_display.
9926
9927 * xfns.c (x_set_font): Don't call face-set-after-frame-default
9928 if faces haven't been initialized.
9929 (Fx_create_frame): Call face-set-after-frame-default after
9930 faces have been initialized, and widget has been created.
9931
9932 * puresize.h (BASE_PURESIZE): Increased.
9933
99341999-06-01 Gerd Moellmann <gerd@gnu.org>
9935
9936 * xfaces.c (set_lface_from_font_name): Add parameter force_p.
9937 (Finternal_set_lisp_face_attribute): If frame is t when
9938 :font attribute is set, use the selected frame.
9939 (clear_face_cache): Add parameter clear_fonts_p.
9940 (Fclear_face_cache): Add optional parameter thorougly.
9941
9942 * xfaces.c (face_numeric_value): Return -1 if symbol is not
9943 in table.
9944 (Fclear_face_cache): New.
9945 (choose_face_fontset_font): If fontset doesn't contain font
9946 pattern for the given charset, use CHARSET_ASCII.
9947 (Finternal_set_lisp_face_attribute): Fix handling of nil
9948 stipple attribute.
9949 (Finternal_set_lisp_face_attribute): Fix handling of changing
9950 font-related face attributes of the default face.
9951 (set_lface_from_font_name): Set only attributes that aren't
9952 specified.
9953
99541999-05-31 Gerd Moellmann <gerd@gnu.org>
9955
9956 * xfaces.c (SCALABLE_FONTS): Define this to enable scalable
9957 font support.
9958 (Vscalable_fonts_allowed) [SCALABLE_FONTS]: New.
9959 (x_face_list_fonts): Add parameter scalable_fonts_p. Handle
9960 scalable fonts depending on the setting of SCALABLE_FONTS.
9961 (first_font_matching): List more than one font to find the
9962 first non-scalable matching font.
9963 (sorted_font_list): Let x_face_list_fonts return scalable fonts
9964 depending on SCALABLE_FONTS.
9965 (better_font_p): New parameter compare_pt_p. If zero, don't
9966 compare point sizes of fonts.
9967 (exact_face_match_p) [SCALABLE_FONTS]: New.
9968 (build_scalable_font_name) [SCALABLE_FONTS]: New.
9969 (may_use_scalable_font_p) [SCALABLE_FONTS]: New.
9970 (best_matching_font) [SCALABLE_FONTS]: Handle scalable fonts.
9971 (syms_of_xfaces): Add scalable-fonts-allowed.
9972
99731999-05-26 Gerd Moellmann <gerd@gnu.org>
9974
9975 * xfns.c (png_load): Let PNG lib handle gamma. Construct
9976 mask only if image contains simple transparency information.
9977 Otherwise, combine image with frame background color.
9978
9979 * configure.in (--with-png, HAVE_PNG): New.
9980
9981 * config.in (HAVE_PNG): New.
9982
9983 * Makefile.in: Add PNG library.
9984
9985 * xfns.c: Add PNG support.
9986
99871999-05-25 Gerd Moellmann <gerd@gnu.org>
9988
9989 * xdisp.c (init_xdisp): Initialize echo_area_message and
9990 previous_echo_area_message to nil.
9991
9992 * keyboard.c (read_char): Rename local variable echo_area_message
9993 because it shadows the global one.
9994
99951999-05-05 Gerd Moellmann <gerd@gnu.org>
9996
9997 * xterm.c (note_mode_line_highlight): Restructured.
9998
9999 * window.c (coordinates_in_window): Handle windows that don't have
10000 a mode line because their buffer's mode-line-format is nil.
10001 Recognize the mode line under x positions that correspond to
10002 flags areas and left scroll bar.
10003
100041999-05-02 Dave Love <fx@gnu.org>
10005
10006 * xterm.c (note_mouse_highlight): Separate help-echo processing
10007 from check on mouse-face so that it works generally.
10008
100091999-04-21 Gerd Moellmann <gerd@gnu.org>
10010
10011 * sound.c (Fplay_sound): Run hook play-sound-hook.
10012 (Qplay_sound_hook): New.
10013
100141999-04-20 Gerd Moellmann <gerd@gnu.org>
10015
10016 * xdisp.c (update_echo_area): Handle echo_area_message.
10017
100181999-04-19 Gerd Moellmann <gerd@gnu.org>
10019
10020 * editfns.c (Fmessage): Use message3.
10021
10022 * print.c (printchar): Set echo_area_message to nil.
10023 (strout): Ditto.
10024
10025 * minibuf.c (read_minibuf): Reset echo message strings to nil.
10026 (Fminibuffer_completion_help): Ditto.
10027
10028 * keyboard.c (cmd_error_internal): Set echo_areA_message.
10029 (command_loop_1): Test echo_areA_message.
10030 (read_char): Ditto.
10031 (record_menu_key): Set echo_area_message to nil.
10032 (Fexecute_extended_command): Test echo_area_message.
10033 (Fexecute_extended_command): Handle echo_area_message.
10034
10035 * fileio.c (Fdo_auto_save): Handle the case that echo_area_message
10036 is set.
10037
10038 * editfns.c (Fcurrent_message): If echo_area_message is set,
10039 return a substring of that string.
10040
10041 * dispnew.c (direct_output_for_insert): Test echo_area_message
10042 in addition to echo_area_glyphs.
10043 (set_window_cursor_after_update): Ditto.
10044 (update_frame_1): Ditto.
10045
10046 * alloc.c (Fgarbage_collect): Use message3_nolog to display
10047 old Lisp message string.
10048
10049 * xdisp.c (echo_area_message): New.
10050 (previous_echo_area_message): New.
10051 (syms_of_xdisp): Initialize and staticpro new variables.
10052 (echo_area_display): Display echo_area_message if set.
10053 (message2_nolog): Set echo_area_message and
10054 previous_echo_area_message.
10055 (echo_area_display): Set previous_echo_area_message.
10056 (redisplay_internal): Display echo area if echo_area_message
10057 or previous_echo_area_message are set.
10058 (redisplay_preserve_echo_area): Test/set echo_area_message and
10059 previous_echo_area_message.
10060 (redisplay_window): Test echo_area_message.
10061 (message3_nolog): New.
10062 (message3): New.
10063
10064 * editfns.c (Fformat): Add text properties to the result string
10065 from properties of the format string and properties of string
10066 arguments.
10067
10068 * textprop.c (text_property_list): New.
10069 (add_text_properties_from_list): New.
10070 (extend_property_ranges): New.
10071
100721999-03-29 Gerd Moellmann <gerd@gnu.org>
10073
10074 * xfaces.c (Qraised, Qsunken, QCshadow): Removed.
10075 (QCline_width, QCstyle, Qpressed_button, Qreleased_button): New.
10076 Use these symbols for the box face attribute instead of the
10077 removed ones.
10078
100791999-03-12 Gerd Moellmann <gerd@gnu.org>
10080
10081 * xfaces.c (realize_tty_face): Don't set alt_char_p of face.
10082 Correct wrong test for slant.
10083
100841999-03-10 Gerd Moellmann <gerd@gnu.org>
10085
10086 * xfaces.c: Use `unspecified' for unspecified face attributes,
10087 use t and nil for on/off.
10088
100891999-03-06 Gerd Moellmann <gerd@gnu.org>
10090
10091 * buffer.c (syms_of_buffer): Extend doc string of
10092 mode-line-format.
10093
10094 * xfaces.c (x_face_list_fonts): New parameter try_alternatives_p.
10095 (first_font_matching): New.
10096 (set_lface_from_font_name): Use it if font name is a pattern.
10097 (font_field_wildcard_p): Removed.
10098
10099 * dispnew.c (shift_glyph_matrix): Add `window' parameter.
10100 Recompute visible height of rows.
10101
10102 * xterm.c (note_mouse_highlight): Reorder code for help-echo.
10103 Don't accept non-strings for help-echo from overlays.
10104
101051999-03-04 Dave Love <fx@gnu.org>
10106
10107 * xterm.c (note_mouse_highlight): Check overlays for help-text
10108 property.
10109 (XTread_socket): Fix compiler warning.
427ec082 10110
26901792
DL
101111999-03-05 Gerd Moellmann <gerd@gnu.org>
10112
427ec082 10113 * xterm.c (note_mouse_highlight): Don't restrict number of
26901792
DL
10114 overlay to 10. Call overlays_at so that it doesn't try to
10115 extend the vector.
10116
10117 * xdisp.c (compute_line_metrics): Compute glyph row's visible
10118 height.
10119
10120 * dispnew.c (row_equal_p): Compare visible row height, only.
10121 (update_text_area): Draw whole line if visible heights of
10122 rows differ.
10123 (update_window_line): Call after_update_window_line_hook
10124 if visible row height has changed.
10125
10126 * dispextern.h (MATRIX_ROW_VISIBLE_HEIGHT): Removed.
10127 (struct glyph_row): New member visible_height.
10128
10129 * xfaces.c (font_field_wildcard_p): New.
10130 (set_lface_from_font_name): Remove parameter force_p. Accept
10131 font names containing wildcards.
10132
101331999-03-04 Gerd Moellmann <gerd@gnu.org>
10134
10135 * xterm.c (x_after_update_window_line): Clear internal border
10136 when windows_or_buffers_changed.
10137
10138 * dispextern.h (WINDOW_WANTS_MODELINE_P): Return zero if window's
10139 buffer has a nil mode_line_format.
10140
101411999-03-03 Gerd Moellmann <gerd@gnu.org>
10142
10143 * xterm.c (x_setup_relief_colors): Use either background color
10144 or specified color.
10145
10146 * xfaces.c (realize_x_face): Set face->use_box_color_for_shadows_p.
10147
10148 * dispextern.h (struct face): Add use_box_color_for_shadows_p.
10149
10150 * xterm.c (x_draw_box_rect): New.
10151 (x_draw_glyph_string_box): Renamed from
10152 x_draw_glyph_string_relief. Call x_draw_box_rect.
10153
10154 * xfns.c (QCrelief): New.
10155 (syms_of_xfns): Initialize it.
10156
10157 * dispextern.h (struct glyph): Rename left_shadow_p to
10158 left_box_line_p, right_shadow_p to right_box_line_p.
10159 (MAX_RELIEF_THICKNESS): Removed.
10160 (struct it): Rename members having `relief' in their names
10161 to contain `box' instead.
10162
10163 * xfaces.c (realize_x_face): Handle new box attribute values.
10164 (QCrelief, Qbox): Removed.
10165 (QCshadow, QCcolor, Qraised, Qsunken): New.
10166 (syms_of_xfaces): Initialize new symbols.
10167
101681999-03-02 Gerd Moellmann <gerd@gnu.org>
10169
10170 * dispextern.h (LFACE_RELIEF_INDEX): Removed.
10171
10172 * xfaces.c (LFACE_RELIEF): Removed.
10173 (merge_face_vector_with_property): Remove handling of `:relief'.
10174 (Finternal_set_lisp_face_attribute): Ditto.
10175 (Finternal_set_lisp_face_attribute_from_resource): Ditto.
10176 (Finternal_get_lisp_face_attribute): Ditto.
10177 (realize_default_face): Ditto.
10178 (lface_hash): Don't compute hash from relief.
10179
10180 * dispextern.h (struct face): Replace member `relief' by
10181 `box_line_width'. Add member `box'.
10182 (face_box_type): New.
10183
10184 * xterm.c (x_produce_glyphs): If face has overline, add overline
10185 thickness + 1 to ascent.
10186
101871999-03-01 Gerd Moellmann <gerd@gnu.org>
10188
10189 * xterm.c (x_draw_glyph_string): Draw underline, overline,
10190 strike-through, and boxes.
10191 (x_draw_glyph_string_underline): Removed.
10192
10193 * xfaces.c (QCoverline, QCstrike_through, QCbox): New.
10194 (Qoverline, Qstrike_through, Qbox): New.
10195 (syms_of_xfaces): Define these symbols.
10196 (check_lface_attrs): Add checks for overline, strike-through,
10197 and box.
10198 (Finternal_set_lisp_face_attribute): Set new attributes.
10199 (LFACE_OVERLINE, LFACE_STRIKE_THROUGH, LFACE_BOX): New.
10200 (load_color): Handle new attributes.
10201 (realize_x_face): Ditto.
10202 (merge_face_vector_with_property): Ditto.
10203 (free_face_colors): Ditto.
10204 (Finternal_set_lisp_face_attribute_from_resource): Ditto.
10205 (Finternal_get_lisp_face_attribute): Ditto.
10206 (Finternal_lisp_face_attribute_values): Ditto.
10207
10208 * dispextern.h (lface_attribute_index): Add enumerators for
10209 overstrike, strike-through, and box.
10210 (struct face): Add members for overline, strike-through, and
10211 box.
10212
102131999-02-17 Dave Love <fx@gnu.org>
10214
10215 * s/gnu-linux.h s/gnu.h s/irix5-0.h s/netbsd.h s/sco4.h s/sco5.h
10216 s/template.h (NARROWPROTO): Define on the basis of relevant X cf
10217 files.
10218
102191999-02-16 Gerd Moellmann <gerd@gnu.org>
10220
10221 * keyboard.c (toolbar_items): Call access_keymap with third
10222 parameter 1, so that we don't get inherited toolbar item
10223 definitions.
10224
10225 * xdisp.c (redisplay_internal): In optimization 1, don't decrement
10226 the window end vpos when in empty first line of window.
10227
102281999-02-15 Gerd Moellmann <gerd@gnu.org>
10229
10230 * xfaces.c (set_font_frame_param): New.
10231 (Finternal_set_lisp_face_attribute): Call it.
10232
10233Sun Feb 14 10:54:02 1999 Masatake Yamato <masata-y@is.aist-nara.ac.jp>
10234
10235 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
10236 Accept specifications of color for underline.
10237
102381999-02-13 Gerd Moellmann <gerd@gnu.org>
10239
10240 * xfaces.c (Finternal_set_lisp_face_attribute): If parameter
10241 `frame' is t, operate on face defaults for new frames. If it
10242 is nil, operate on the selected frame.
10243
102441999-02-12 Gerd Moellmann <gerd@gnu.org>
10245
10246 * dispnew.c (check_matrix_invariants): Put it in #if 0.
10247 (update_window): Put the call to check_matrix_invariants in #if 0.
10248
10249Sun Feb 7 09:58:49 1999 Masatake Yamato <masata-y@is.aist-nara.ac.jp>
10250
10251 * dispextern.h: Remove all else block of UNDERLINE_COLOR.
10252 Remove definition of UNDERLINE_COLOR.
10253
10254Mon Jan 4 04:43:41 1999 Masatake Yamato <masata-y@is.aist-nara.ac.jp>
10255
10256 * xfaces.c (free_face_colors): Free the color for underline.
10257
10258 * xterm.c (x_draw_glyph_string_underline): Set the color for underline
10259 to the GC.
10260
10261Sun Jan 3 08:41:10 1999 Masatake Yamato <masata-y@is.aist-nara.ac.jp>
10262
10263 * dispextern.h (UNDERLINE_COLOR): Defined.
10264 (struct face): Added two new members.
10265 underline_color, underline_defaulted_p.
10266
427ec082 10267 * xfaces.c (merge_face_vector_with_property):
26901792 10268 (check_lface_attrs): Accept the string value for underline.
427ec082 10269 (Finternal_set_lisp_face_attribute): Likewise.
26901792
DL
10270
10271 * xfaces.c (load_color): Change the last argument type to enum
10272 lface_attribute_index from int. And addec code for underling coloring.
10273 (load_face_colors): Pass LFACE_*_INDEX to load_color.
427ec082 10274
26901792
DL
102751999-02-12 Gerd Moellmann <gerd@gnu.org>
10276
10277 * xfns.c (Fx_image_header): Removed.
10278
102791999-02-07 Gerd Moellmann <gerd@gnu.org>
10280
10281 * xterm.c: Don't include <bitmaps/gray>.
10282 (x_term_init): Use gray_bitmap_width and gray_bitmap_height.
10283
10284 * xfns.c (Fx_image_header): Add missing `\n\'.
10285 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits): New.
10286
102871999-02-01 Gerd Moellmann <gerd@gnu.org>
10288
10289 * xterm.c (x_scroll_bar_create): Set background pixel from
10290 specified scroll bar color.
10291 (x_scroll_bar_set_handle): Use scroll bar foreground color.
10292
10293 * xfns.c (x_set_scroll_bar_foreground): Remove all scroll bars.
10294 (x_set_scroll_bar_background): Ditto.
10295
10296 * xterm.c (x_create_toolkit_scroll_bar): Set scroll bar colors.
10297
10298 * xfns.c (x_default_scroll_bar_color_parameter): New.
10299 (Fx_create_frame): Call it.
10300
103011999-01-31 Gerd Moellmann <gerd@gnu.org>
10302
10303 * xfns.c (Fx_create_frame): Initialize scroll bar pixel color
427ec082 10304 values in x_output structure.
26901792
DL
10305 (Qscroll_bar_foreground, Qscroll_bar_background): New.
10306 (syms_of_xfns): Initialize these symbols.
10307
10308 * xterm.h (struct x_output): Add scroll bar pixel colors.
10309
10310 * xfns.c (x_frame_parms): Add entries for scroll bar colors.
10311 (x_set_scroll_bar_foreground): New.
10312 (x_set_scroll_bar_background): New.
10313
26901792
DL
103141999-01-12 Gerd Moellmann <gerd@gnu.org>
10315
10316 * xdisp.c (handle_single_display_prop): New.
10317 (handle_display_prop): Call it.
10318 (handle_raise_prop): Removed.
10319 (handle_height_prop): Removed.
10320 (handle_space_width_prop): Removed.
10321 (handle_face_prop): Remove handling of raised text.
10322 (handle_display_prop): Do it here.
10323
10324 * dispextern.h (DISPLAY_PROP_IDX): Replaces GLYPH_PROP_IDX.
10325 (RAISE_PROP_IDX): Removed.
10326 (HEIGHT_PROP_IDX): Removed.
10327 (SPACE_WIDTH_PROP_IDX): Removed.
10328
10329 * xdisp.c (Qdisplay): Replaces Qglyph.
10330 (handle_display_prop): Formerly handle_glyph_prop.
10331
103321999-01-11 Gerd Moellmann <gerd@gnu.org>
10333
10334 * xdisp.c (reseat_to_string): Set position in display vector to -1.
10335 (handle_stop): Set position in display vector to -1. Don't
10336 check overlay strings when set up to deliver characters from a
10337 display vector.
10338 (set_iterator_to_next): At the end of a run of characters from a
10339 display vector, check whether the display vector display replaces
10340 the display of a character.
10341
103421999-01-05 Gerd Moellmann <gerd@gnu.org>
10343
10344 * xfaces.c (init_frame_faces): Don't realize faces if frame's
10345 X window hasn't been created yet.
10346
103471998-12-06 Gerd Moellmann <gerd@gnu.org>
10348
10349 * sound.c: New.
10350
103511998-12-04 Gerd Moellmann <gerd@gnu.org>
10352
10353 * config.in (HAVE_SOUND): New.
10354
10355 * emacs.c (main): Call syms_of_sound and init_sound.
10356
10357 * Makefile.in (obj): Add sound.o.
10358
10359 * configure.in: Add checks for machine/soundcard.h and sys/soundcard.h.
10360
10361 * config.in (HAVE_MACHINE_SOUNDCARD_H): New.
10362 (HAVE_SYS_SOUNDCARD_H): New.
10363
103641998-12-03 Gerd Moellmann <gerd@gnu.org>
10365
10366 * buffer.h (struct buffer): indicate_empty_lines renamed from
10367 indicate_zv_lines.
10368
10369 * buffer.c (indicate-empty-lines): Renamed from indicate_zv_lines.
10370 (default-indicate-zv-lines): Likewise.
10371
10372 * dispextern.h (struct glyph_row): Rename indicate_zv_line_p
10373 to indicate_empty_line_p.
10374
10375 * xdisp.c (reseat_at_next_visible_line_start): Reset method
10376 to next_element_from_buffer.
10377
10378 * frame.c (make_frame): Set n_current_toolbar_items to 0.
10379
10380 * xdisp.c (handle_face_prop): Allow symbols of the form `N+'
10381 and `N-'.
10382
10383 * xfns.c (xbm_scan): New.
10384 (xbm_read_hexint): Removed.
10385 (xbm_read_bitmap_file_data): Use xbm_scan.
10386
10387 * fileio.c (Finsert_file_contents): Prevent redisplay optimizations.
10388
103891998-12-02 Gerd Moellmann <gerd@gnu.org>
10390
10391 * xfns.c (xbm_read_hexint): New.
10392 (xbm_read_bitmap_file_data): New.
10393 (xbm_load_image_from_file): Call xbm_read_bitmap_file_data
10394 instead of XReadBitmapFileData.
10395
10396 * xdisp.c (handle_raise_prop): Compute voffset from current font.
10397
10398 * xfaces.c (face_with_height): New.
10399
10400 * xdisp.c (eval_handler): Renamed from eval_mode_handler.
10401 (eval_form): Renamed from eval_mode_element.
10402 (handle_face_prop): Use it.
10403 (Qheight): Replaces Qsmaller.
10404 (handle_height_prop): Replaces handle_smaller_prop.
427ec082 10405 (handle_face_prop): If iterator's font_height is not an
26901792
DL
10406 integer, evaluate it to get the font height to use.
10407
10408 * dispextern.h (HEIGHT_PROP_IDX): Replaces SMALLER_PROP_IDX.
10409 (struct it): Use `font_height' instead of `smaller'.
10410
104111998-12-01 Gerd Moellmann <gerd@gnu.org>
10412
10413 * xdisp.c (reseat_1): New.
10414 (reseat): Call it.
10415 (move_it_vertically_backward): Ditto.
10416 (redisplay_window): Don't abort when cursor not found in recenter.
10417
104181998-11-30 Gerd Moellmann <gerd@gnu.org>
10419
10420 * xdisp.c (reseat_at_next_visible_line_start): When not
10421 currently delivering display elements from the current buffer,
10422 restore buffer position first.
10423 (init_from_display_pos): Don't set IT's position from the
10424 position passed to this function.
10425
104261998-11-28 Gerd Moellmann <gerd@gnu.org>
10427
10428 * config.in (PROTO): Removed.
10429
10430 * xterm.h: Change PROTO to P_.
10431
104321998-11-26 Gerd Moellmann <gerd@gnu.org>
10433
10434 * xterm.c (take_vertical_position_into_account): New.
10435 (x_produce_image_glyph): Call it.
10436 (x_produce_stretch_glyph): Ditto.
10437 (x_produce_glyphs): Ditto.
10438 (x_fill_glyph_string): Adjust base line for glyph's voffset.
10439 (x_fill_composite_glyph_string): Ditto.
10440 (x_fill_image_glyph_string): Ditto.
10441 (x_fill_stretch_glyph_string): Ditto.
10442
10443 * xdisp.c (display_line): Always compute row height from
10444 max_ascent and max_descent.
10445
10446 * dispextern.h (struct glyph): Add voffset.
10447 (struct it): Replace height by descent, max_height by max_descent.
10448
10449 * xterm.c (x_append_glyph): Set voffset
10450 (x_append_stretch_glyph): Ditto.
10451 (x_produce_image_glyph): Ditto.
10452 (x_produce_glyphs): Take voffset into account.
10453 (x_produce_image_glyph): Ditto.
10454 (x_produce_stretch_glyph): Ditto.
10455
10456 * dispextern.h (struct it): Add voffset.
10457 * xdisp.c (push_it): Save voffset.
10458 (pop_it): Restore it.
10459
10460 * xdisp.c (it_props): Add entry for `raise'.
10461 (handle_raise_prop): New.
10462
10463 * dispextern.h (RAISE_PROP_IDX): New.
10464
10465 * xdisp.c (Qraise): New.
10466 (syms_of_xdisp): Define Qraised.
10467
10468 * xterm.c (x_scroll_bar_move): Clear to the left and right
10469 of toolkit scroll bars differently.
10470 (x_scroll_bar_move): Removed.
10471 (XTset_vertical_scroll_bar): Move code from x_scroll_bar_move here.
10472
10473 * dispextern.h: Make it compilable --with-x=no.
10474 * alloc.c: Ditto.
10475 * emacs.c: Ditto.
10476 * dispnew.c: Ditto.
10477 * keyboard.c: Ditto.
10478 * term.c: Ditto.
10479 * xdisp.c: Ditto.
10480 * xfaces.c: Ditto.
10481 * xfns.c: Ditto.
10482 * xmenu.c: Ditto.
10483
104841998-11-25 Gerd Moellmann <gerd@gnu.org>
10485
10486 * xterm.c (XTread_socket): Cancel help-echo when leaving frame.
10487
104881998-11-24 Gerd Moellmann <gerd@gnu.org>
10489
10490 * xterm.c (x_set_toolkit_scroll_bar_thumb): When dragging,
10491 update slider size, only.
10492 (xm_scroll_callback): Set dragging member of the scroll bar.
10493 (xt_action_hook): Reset last_scroll_bar_part.
10494 (XTredeem_scroll_bar): Reset bar->dragging to nil.
10495
26901792
DL
10496 * xfns.c (Fx_hide_busy_cursor): Don't try to hide busy cursor
10497 window on newly created frames that don't have one.
10498
104991998-11-23 Gerd Moellmann <gerd@gnu.org>
10500
10501 * xdisp.c (restore_overlay_strings): Removed.
10502 (restore_dpvec): Removed.
10503 (init_from_display_pos): Inline both functions above.
10504
10505 * xfns.c (IMAGE_NON_NEGATIVE_INTEGER_VALUE): New.
10506 (parse_image_spec): Handle it.
10507 (xbm_format): Use it.
10508 (xpm_format): Ditto.
10509 (pbm_format): Ditto.
10510 (jpeg_format): Ditto.
10511 (tiff_format): Ditto.
10512 (gif_format): Ditto.
10513 (gs_format): Ditto.
10514
10515 * xdisp.c (set_window_cursor): Removed.
10516 (redisplay_internal): Case cursor motion in cursor line of
10517 selected window; use set_cursor_from_row.
10518
105191998-11-22 Gerd Moellmann <gerd@gnu.org>
10520
10521 * widget.c (EmacsFrameSetCharSize): Take widget's border width
10522 into account.
10523
105241998-11-21 Gerd Moellmann <gerd@gnu.org>
10525
10526 * xterm.c (expose_frame): Redraw menu bar window.
10527
10528 * xdisp.c (display_menu_bar): Record hpos instead of x-position
10529 in menu item.
10530
10531 * dispnew.c (change_frame_size_1): Use FRAME_TOP_MARGIN instead
10532 of FRAME_TOOLBAR_LINES. Use `f' instead of `frame'.
10533
10534 * widget.c (set_frame_size): Use FRAME_SCROLL_BAR_COLS
10535 to determine vertical_scroll_bar_extra.
10536 (EmacsFrameSetCharSize): Ditto.
10537 * xfns.c (x_figure_window_size): Ditto.
10538
10539 * xterm.c (x_draw_row_bitmaps): Draw in `bitmap-area' face.
10540 (x_draw_bitmap): Ditto.
10541
10542 * dispextern.h (face_id): New id BITMAP_AREA_FACE_ID.
10543 * xfaces.c (realize_basic_faces): Realize it.
10544
105451998-11-20 Gerd Moellmann <gerd@gnu.org>
10546
10547 * xmenu.c (xmenu_show): Add workaround for remaining button grab
427ec082 10548 under LessTif Use the widget of the frame as parent for the
26901792
DL
10549 menu, again.
10550
105511998-11-19 Gerd Moellmann <gerd@gnu.org>
10552
10553 * xterm.c (XTread_socket): Inhibit busy cursor for EnterNotify.
10554 When EnterNotify, don't generate a mouse movement event if
10555 notification is from a busy-cursor child window.
10556
10557 * xterm.h (struct x_output): Add busy_window, remove cursor.
10558
10559 * xfns.c (Fx_show_busy_cursor): Formerly Fx_display_busy_cursor.
10560 Use a transparent window to display the busy-cursor.
10561 (Fx_hide_busy_cursor): Formerly Fx_undisplay_busy_cursor.
10562
105631998-11-17 Gerd Moellmann <gerd@gnu.org>
10564
10565 * xdisp.c (check_window_end): New, for debugging.
10566 (CHECK_WINDOW_END): New.
10567 (try_window_id): Use it.
10568
10569 * xterm.c (process_expose_from_menu): Return int.
10570
10571 * keyboard.c (kbd_buffer_get_event): Set flag to prevent recording
10572 TOOLBAR_EVENT events in last_nonmenu_event.
10573
105741998-11-16 Gerd Moellmann <gerd@gnu.org>
10575
10576 * xdisp.c (redisplay_window): If windows_or_buffers_changed,
10577 window end isn't reliable, so set window_end_valid to nil.
10578 (redisplay_internal): If overlay arrow has changed, set
10579 windows_or_buffers_changed to redisplay thoroughly.
10580
10581 * dispnew.c (adjust_glyph_matrix): Invalidate window end, if
10582 necessary.
10583
10584 * xfns.c (file_dialog_cb): New.
10585 (Fx_file_dialog): New.
10586 * fileio.c (Fread_file_name): Call it.
10587
427ec082 10588 * xrdb.c (x_load_resources): Add default resoures for file
26901792
DL
10589 selection dialog.
10590
105911998-11-14 Gerd Moellmann <gerd@gnu.org>
10592
10593 * xterm.c (note_mouse_highlight): Don't highlight when popup
10594 is active.
10595
26901792
DL
10596 * keyboard.c (timer_check): Inhibit busy cursor around calls to
10597 timer-event-handler. This busy cursor tends to be anoying if
10598 fontifying stealthily.
10599
10600 * dispnew.c (direct_output_for_insert): Give up if current row
10601 contains trailing whitespace.
10602
106031998-11-13 Gerd Moellmann <gerd@gnu.org>
10604
10605 * dispextern.h (prop_idx): Add FONTIFIED_PROP_IDX.
10606
10607 * xdisp.c (handle_fontified_prop): New.
10608 (Vfontification_functions): New.
10609 (Qfontification_functions): New.
10610 (it_props): Add handle_fontified_prop.
10611
106121998-11-12 Gerd Moellmann <gerd@gnu.org>
10613
10614 * xmenu.c (xmenu_show): Use the frame's edit_widget as parent.
10615 Otherwise, under LessTif, after the popup has gone, all button
10616 press events come in for the frame's widget, and release events
10617 come in for the edit_widget.
10618 * xterm.c (XTread_socket): Remove workaround for that problem.
10619 (x_set_toolkit_scroll_bar_thumb): Add workaround for LessTif
10620 XmScrollBarSetValues.
10621 (SET_SAVED_MENU_EVENT): Give it statement form.
10622
26901792
DL
10623 * xfaces.c (display_message): If waiting_for_input, don't display
10624 the message.
10625
10626 * window.c (scroll_command): If not acting on current_buffer,
10627 make redisplay consider all windows.
10628
10629 * xfns.c (Fx_hide_tip): Return t if tooltip was open.
10630
10631 * xdisp.c (handle_glyph_prop): Set it->object for images to
10632 the object having the glyph property.
10633
10634 * xterm.c (x_draw_row_bitmaps): Don't draw if row is completely
10635 invisible.
10636
106371998-11-11 Gerd Moellmann <gerd@gnu.org>
10638
10639 * xterm.h (struct x_display_info): Add gray pixmap. * xterm.c
10640 (x_term_init): Create the gray pixmap.
10641 (x_setup_relief_color): Use it.
10642 (x_get_glyph_string_clip_rect): Draw a toolbar window over the
10643 internal border at the top of a frame.
10644 (x_init_glyph_string): Likewise.
427ec082 10645 (x_draw_glyph_string_relief): Correct right x by 1 pixel for
26901792
DL
10646 full-width lines.
10647 (XTflash): Don't flash the toolbar window.
10648
10649 * xterm.c (XTread_socket): Workaround for LessTif popup menus
10650 in case of ButtonPress events.
10651
106521998-11-10 Gerd Moellmann <gerd@gnu.org>
10653
10654 * xrdb.c (x_load_resources): Add grey background colors as
10655 defaults for menus, scroll bars, and dialogs.
10656
10657 * insdel.c (prepare_to_modify_buffer): Move setting
10658 windows_or_buffers_changed from modify_region here.
10659
10660 * xfns.c (Fx_show_tip): Inhibit redisplay.
10661 (Fx_hide_tip): Ditto.
10662 (Fx_image_header): New.
10663
106641998-11-09 Gerd Moellmann <gerd@gnu.org>
10665
10666 * dispnew.c (clear_window_matrices): Set window_end_valid to nil
10667 when clearing current window matrices.
10668
106691998-11-08 Gerd Moellmann <gerd@gnu.org>
10670
10671 * xdisp.c (handle_glyph_prop): Don't set an iterator's buffer
10672 position from a string position. Use the right end position
10673 if the property spans a whole overlay string.
10674
106751998-11-07 Gerd Moellmann <gerd@gnu.org>
10676
10677 * xmenu.c (menubar_selection_callback): Remove workaround for
10678 Lesstif not calling XmNpopdownCallback because it doesn't
10679 handle the case where users don't select any menu item.
10680
26901792
DL
10681 * insdel.c (modify_region): Set windows_or_buffers_changed.
10682
10683 * buffer.c (set_buffer_internal): Don't set
10684 windows_or_buffers_changed.
10685
26901792
DL
10686 * xmenu.c (HAVE_BOXES): Define if USE_X_TOOLKIT.
10687
26901792
DL
10688 * xmenu.c (menubar_selection_callback): Add workaround for
10689 Lesstif not calling XmNpopdownCallback.
10690
10691 * xdisp.c (eval_mode_element): New.
10692 (eval_mode_handler): New.
10693 (display_mode_element): Use eval_mode_element.
10694
10695 * xdisp.c (display_mode_element): Allow `(:eval FORM)'.
10696 Remove code looking at text props of default value.
10697
10698 * xmenu.c (HAVE_BOXES): Define if using Lucid menus.
10699
26901792
DL
107001998-11-06 Gerd Moellmann <gerd@gnu.org>
10701
427ec082 10702 * xmenu.c (single_submenu): Set button_type of menu to
26901792
DL
10703 BUTTON_TYPE_NONE.
10704 (single_submenu): Likewise for panes and menu items.
10705 (set_frame_menubar): Set button_type of menu bar to none.
10706 (xmenu_show): Likewise.
10707 (single_submenu): Set widget values selected slot.
10708 (xmenu_show): Likewise.
10709
26901792
DL
10710 * xmenu.c (push_menu_item): Add parameters `type' and
10711 `selected'. Store it in menu_items.
10712 (MENU_ITEMS_ITEM_TYPE): New.
10713 (MENU_ITEMS_ITEM_SELECTED): New.
10714 (MENU_ITEMS_ITEM_LENGTH): Increase by two.
10715
10716 * xfns.c (clear_image_cache): Get the current time, before
10717 doing anything.
10718 (cache_image): Set prev pointer of next image.
10719 (clear_image_cache): Clear current matrices if any image was
10720 freed.
10721
10722 * xterm.c (XTread_socket): Set inhibit_busy_cursor.
10723
10724 * xfns.c (x_set_cursor): New.
10725 (Fx_display_busy_cursor): New.
10726 (Fx_undisplay_busy_cursor): New.
10727
10728 * xterm.h (struct x_output): Add busy_cursor.
10729
10730 * xfns.c (Vx_busy_pointer_shape): New.
10731 (x_set_mouse_color): Create busy cursor.
10732
10733 * process.c (wait_reading_process_input): Show and hide busy
10734 cursor.
10735
10736 * keyboard.c (command_loop_1): Display busy cursor.
10737
10738 * eval.c (Fsignal): Hide busy cursor.
10739
10740 * buffer.c (set_buffer_internal): Don't set
10741 windows_or_buffers_changed.
10742
10743 * xterm.c (redo_mouse_highlight): New.
10744
107451998-11-04 Gerd Moellmann <gerd@gnu.org>
10746
26901792
DL
10747 * xfns.c (x_create_x_image_and_pixmap): Add depth parameter.
10748 (x_build_heuritic_mask): New.
10749 (lookup_image): Call it.
10750
10751 * xterm.c (note_toolbar_highlight): Always set up help_echo.
10752 (previous_help_echo): New.
10753 (XTread_socket): Generate help event with nil message when
10754 leaving a region with help-echo.
10755 (note_mouse_highlight): Handle `help-echo' over text.
10756 (XTread_socket): Dispatch VisibilityNotify, CirculateNotify,
10757 CirculateRequest.
10758 (clear_mouse_face): Don't clear if tooltip is shown.
10759 (XTread_socket): Redo mouse-highlight after tooltip is gone.
10760 Avoid SET_FRAME_GARBAGED when tooltip is mapped.
10761
10762 * keyboard.c (Vshow_help_function): New.
10763 (read_char): Use it.
10764
107651998-11-03 Gerd Moellmann <gerd@gnu.org>
10766
10767 * xfns.c (x_create_tip_frame): New.
10768 (Fx_show_tip): New.
10769 (Fx_hide_tip): New.
10770
427ec082 10771 * xterm.c (x_destroy_window): Handle case that we don't have
26901792
DL
10772 a widget.
10773
10774 * dispextern.h (struct glyph_row): Rename no_marginal_areas_p
10775 to full_width_p. Add internal_border_p.
10776
107771998-11-02 Gerd Moellmann <gerd@gnu.org>
10778
10779 * xterm.c (note_mode_line_highlight): Check the charpos of
10780 the glyph under the mouse pointer before accessing text
10781 properties at that position.
10782
107831998-11-01 Gerd Moellmann <gerd@gnu.org>
10784
10785 * xterm.c (x_draw_image_relief): Handle toolbar_button_relief.
10786
10787 * xdisp.c (auto-raise-toolbar-buttons): New.
10788 (build_desired_toolbar_string): Handle the flag.
10789 (toolbar-button-margin): New.
10790 (toolbar-button-relief): New.
10791 (build_desired_toolbar_string): Use margin and relief.
10792
10793 * xterm.c (x_set_toolkit_scroll_bar_thumb): Remove workaround
10794 for FreeBSD.
10795 (note_mode_line_highlight): New.
10796 (note_mouse_highlight): Call it.
10797
107981998-10-31 Gerd Moellmann <gerd@gnu.org>
10799
10800 * s/freebsd.h (NARROWPROTO): New.
10801
10802 * xdisp.c (display_string): New parameter face_string.
10803 (display_mode_element): When displaying a symbol with a string
10804 value, use text properties from the symbol's default value, maybe.
10805
10806 * xrdb.c (x_load_resources): Add font defaults for menus and
10807 dialogs.
10808
108091998-10-30 Gerd Moellmann <gerd@gnu.org>
10810
10811 * xfns.c (Fx_create_frame): Try 12pt Courier font first.
10812
108131998-10-29 Gerd Moellmann <gerd@gnu.org>
10814
10815 * xterm.c (x_produce_glyphs): Fix bug causing glyphs to be
10816 produced for characters with codes < 32 under certain
10817 circumstances.
10818
10819 * xdisp.c (redisplay_window): Handle values of PT in front
10820 of invisible, intangible text.
427ec082 10821 (try_window_id): Set overlay_arrow_seen to zero before
26901792
DL
10822 displaying lines.
10823 (display_mode_element): Assign to glyphs written for a mode
10824 line spec `%x' as object the Lisp format string, as position
10825 the position of the `%' in that string.
10826 (display_string): If displaying a C string, optionally get
10827 the face to use from a Lisp string.
10828
10829 * xterm.c (expose_window_tree): Include mode line height.
10830
10831 * xfns.c (Fx_create_frame): Add toolbar height to frame height.
10832
108331998-10-27 Gerd Moellmann <gerd@gnu.org>
10834
10835 * xterm.c (note_mouse_highlight): Change mouse pointer shape
10836 over mode line.
10837
108381998-10-26 Gerd Moellmann <gerd@gnu.org>
10839
10840 * window.c (coordinates_in_window): Use CURRENT_MODE_LINE_HEIGHT.
10841
10842 * xdisp.c (redisplay_window): If mode line height has changed,
10843 arrange for a thorough immediate redisplay using the correct mode
10844 line height.
10845 (window_box_height): Use CURRENT_MODE_LINE_HEIGHT.
10846
10847 * dispextern.h (MATRIX_MODE_LINE_HEIGHT): New.
10848 (CURRENT_MODE_LINE_HEIGHT): New.
10849 (DESIRED_MODE_LINE_HEIGHT): New.
10850
10851 * keyboard.c (make_lispy_event): Add string and string position
10852 info to mouse-click events.
10853 (read_key_sequence): Handle `local-map' property of mode line
10854 strings.
10855
10856 * keyboard.h (POSN_STRING): New.
10857
108581998-10-25 Gerd Moellmann <gerd@gnu.org>
10859
10860 * dispnew.c (mode_line_string): Mew.
10861
10862 * xterm.c (xt_action_hook): New.
10863 (x_create_toolkit_scroll_bar): Add action hook.
10864 (xm_scroll_callback): Implement dragging.
10865
10866 * keyboard.c (Qend_scroll): New.
10867 (scroll_bar_parts): Add it.
10868
10869 * termhooks.h (scroll_bar_end_scroll): New.
10870
10871 * xterm.c (XTread_socket): Bug fix.
10872
108731998-10-24 Gerd Moellmann <gerd@gnu.org>
10874
10875 * xdisp.c (redisplay_window): Finish scroll bars after
10876 redisplaying toolbar.
10877
10878 * keyboard.c (scroll_bar_parts): Add Qtop and Qbottom.
10879 (syms_of_keyboard): Add Qbottom.
10880
10881 * termhooks.h (scroll_bar_to_top): New.
10882 (scroll_bar_to_bottom): New.
10883
10884 * xdisp.c (redisplay_window): Always resize toolbar window if
10885 auto_resize_toolbar_p is non-zero.
10886 (auto_resize_toolbar_p): Renamed from auto_resize_toolbar.
10887 (window_box): New.
10888 (window_box_height): New.
10889 (window_box_width): New.
10890 (window_box_left): New.
10891 (window_box_right): New.
10892 (window_box_edges): New.
10893
108941998-10-23 Gerd Moellmann <gerd@gnu.org>
10895
10896 * xterm.c (x_set_toolkit_scroll_bar_thumb): Kluge for call to
10897 XawScrollbarSetThumb in FreeBSD.
10898 (x_create_toolkit_scroll_bar): Set resource "beNiceToColormap"
10899 to true.
10900
10901 * window.c (get_phys_cursor_glyph): Return null if cursor vpos
10902 is out of range.
10903
10904 * xterm.c (x_create_toolkit_scroll_bar): Set scroll_bar_pixel.
10905 (x_term_init): Initialize it.
10906
10907 * xterm.h (struct x_display_info): Add scroll_bar_pixel.
10908
10909 * xterm.c (x_create_toolkit_scroll_bar): Set LessTif scroll bar's
10910 cursor.
10911
109121998-10-22 Gerd Moellmann <gerd@gnu.org>
10913
10914 * keyboard.c (make_lispy_event): Handle scroll_bar_click
10915 differently when using toolkit scroll bars.
10916
10917 * xterm.c (x_send_scroll_bar_event): New.
10918 (x_scroll_bar_to_input_event): New.
10919 (xaw3d_scroll_callback): New.
10920 (xaw3d_jump_callback): New.
10921 (xm_scroll_callback): New.
10922 (x_toolkit_scroll_p): New.
10923 (XTread_socket): Handle scroll bar client message.
10924 (x_term_init): Initialize Xatom_Scrollbar.
10925 (x_scroll_bar_create): Set cursor.
10926 (xm_scroll_callback):
10927 (x_create_toolkit_scroll_bar): New.
10928 (x_set_toolkit_scroll_bar_thumb): New.
10929 (x_scroll_bar_create): Call x_create_toolkit_scroll_bar.
10930 (XTset_vertical_scroll_bar): Call x_set_toolkit_scroll_bar_thumb.
10931
10932 * xterm.h (struct x_display_info): Add Xatom_Scrollbar.
10933
109341998-10-21 Gerd Moellmann <gerd@gnu.org>
10935
10936 * xterm.c (x_scroll_bar_remove): Handle toolkit scroll bars.
10937 (XTread_socket): Don't handle mouse button events for scroll bars
10938 if using toolkit scroll bars.
10939 (XTset_vertical_scroll_bar): Set thumb size and position for
10940 Athena scroll bar.
10941
10942 * xterm.h (scroll_bar): Add x_widget_low and x_widget_high.
10943
10944 * xterm.c (XTread_socket): Dispatch expose event to widget
10945 if using toolkit scroll bars.
10946 (x_scroll_bar_expose): Make no-op for toolkit scroll bars.
427ec082 10947 (x_scroll_bar_create): Create and show a scroll bar widget
26901792
DL
10948 if using toolkit scroll bars.
10949 (x_scroll_bar_move): Handle tookit scroll bars.
10950
10951 * Makefile.in (LIBW): Use Xaw3d if present.
10952
10953 * configure.in (USE_TOOLKIT_SCROLL_BARS): New.
10954 (HAVE_XAW3D): New.
427ec082 10955
26901792
DL
10956 * config.in (USE_TOOLKIT_SCROLL_BARS): New.
10957 (HAVE_XAW3D): New.
10958
427ec082 10959 * xterm.c (XTset_vertical_scroll_bar): Correct position of
26901792
DL
10960 right vertical scroll bar.
10961
109621998-10-20 Gerd Moellmann <gerd@gnu.org>
10963
10964 * xfns.c (xpm_load): Support reading XPM images from string
10965 buffers containing data in the same format as an XPM file.
10966 Support `:color-symbols'.
10967 (xpm_format): Add `:data'.
10968 (xpm_keyword_index): Add XPM_DATA.
10969 (syms_of_xfns): Add `:color-symbols'.
10970 (xpm_keyword_index): Add XPM_COLOR_SYMBOLS.
10971 (xpm_valid_color_symbols_p): New.
10972 (xpm_image_p): Call it.
10973
10974 * xdisp.c (build_desired_toolbar_string): Add `:algorithm'
10975 attribute to the image if item is not enabled.
10976
10977 * xfns.c (x_laplace): New.
10978 (x_laplace_read_row): New.
10979 (x_laplace_write_row): New.
10980 (lookup_image): Handle common image attributes here. New
10981 attribute `:algorithm'.
10982
10983 * xfaces.c (clear_face_cache): Call clear_image_cache.
10984
10985 * xterm.c (x_inverted_image_mask): Removed.
10986 (x_draw_image_foreground_1): New.
10987 (x_draw_image_glyph_string): Draw images with mask to a temporary
10988 pixmap to reduce flickering.
10989
10990 * xdisp.c (redisplay_toolbar): Handle auto-resize-toolbars.
10991 (display_toolbar_line): Remove parameter `margin'.
10992
109931998-10-19 Gerd Moellmann <gerd@gnu.org>
10994
10995 * xdisp.c (toolbar_lines_needed): New.
10996 (auto-resize-toolbars): New.
10997
10998 * xfns.c (cache_image): Correct call to xrealloc.
10999
11000 * dispnew.c (Fset_toolbar_height): Removed.
11001
11002 * xdisp.c (init_xdisp): Use FRAME_TOP_MARGIN instead of
11003 FRAME_MENU_BAR_LINES.
11004
11005 * window.c (Fdelete_other_windows): Use FRAME_TOP_MARGIN
11006 instead of FRAME_MENU_BAR_LINES.
11007 (check_frame_size): Ditto.
11008
11009 * dispnew.c (adjust_frame_glyphs_initially): Use FRAME_TOP_MARGIN
11010 instead of FRAME_MENU_BAR_LINES.
11011 (adjust_frame_glyphs_for_frame_redisplay): Ditto.
11012 (build_frame_matrix): Ditto.
11013 (change_frame_size_1): Ditto.
11014
11015 * frame.h (FRAME_TOOLBAR_LINES): New.
11016 (FRAME_TOP_MARGIN): New.
11017
11018 * window.c (struct save_window_data): Add frame_toolbar_lines.
11019 (Fset_window_configuration): Handle toolbar lines.
11020 (Fcurrent_window_configuration): Save toolbar lines.
11021
11022 * frame.c (syms_of_frame_1): Add Qtoolbar_lines.
11023
11024 * xfns.c (Fx_create_frame): Add default parameter for toolbar.
11025
11026 * frame.h (struct frame): Rename top_margin to toolbar_lines.
11027
11028 * xfns.c (x_frame_parms): Add `toolbar-lines'.
11029 (x_set_toolbar_lines): New.
11030
11031 * keyboard.c (cmd_error_internal): Bug fix.
11032
11033 * xterm.c: Remove double include of syssignal.h.
11034
110351998-10-18 Gerd Moellmann <gerd@gnu.org>
11036
11037 * xterm.c (x_toolbar_item): New.
11038 (x_handle_toolbar_click): Use it.
11039 (note_toolbar_highlight): Use it.
11040
11041 * keyboard.c (syms_of_keyboard): Staticpro toolbar_item_properties
11042 and toolbar_items_vectors.
11043
11044 * xterm.c (help_echo): New.
11045 (draw_glyphs_face): Add DRAW_IMAGE_RAISED and DRAW_IMAGE_SUNKEN.
11046 (x_set_glyph_string_gc): Handle them.
11047 (x_after_update_window_line): Don't do anything in pseudo-windows.
11048 (x_produce_image_glyph): Take image margin and face relief into
11049 account.
11050 (x_get_glyph_string_clip_rect): Handle pseudo-windows.
11051 (x_draw_glyph_string_background): Optimize case when face has
11052 relief.
11053 (x_setup_relief_color): Take frame instead of glyph string
11054 parameter.
11055 (x_draw_relief_rect): New.
11056 (x_draw_glyph_string_relief): Call it.
11057 (x_draw_image_glyph_string_foreground): Handle margin and image
11058 relief.
11059 (x_draw_image_glyph_string_background): Ditto.
11060 (expose_frame): Redraw toolbar window.
11061 (expose_window): Don't draw cursor for pseudo-windows.
11062 (x_y_to_hpos_vpos): Handle pseudo-windows.
11063 (frame_to_window_pixel_xy): New.
11064 (note_mouse_highlight): Call note_toolbar_highlight.
11065 (x_handle_toolbar_click): New.
11066 (note_toolbar_highlight): New.
11067 (show_mouse_face): Change int parameter `hl' to parameter of
11068 type enum draw_glyphs_face. Handle image highlighting.
11069 (XTread_socket): Return a HELP_EVENT input event if help_echo is
11070 non-nil. Use x_handle_toolbar_click.
11071
11072 * termhooks.h (event_kind): Add HELP_EVENT, TOOLBAR_EVENT.
11073
11074 * xfns.c (image_value_type): Add IMAGE_INTEGER_VALUE,
11075 IMAGE_BOOL_VALUE.
11076 (parse_image_spec): Handle them.
11077 (image_spec_value): Additional parameter found.
427ec082 11078 (free_image): Remove image from the vector `images' of the
26901792
DL
11079 image cache.
11080 (clear_image_cache): Additional parameter force_p.
11081 (Fclear_image_cache): New.
11082 (x_find_image_file): New.
11083 (xbm_load): Handle `:margin' and `:relief'. Use
11084 x_find_image_file.
11085 (xpm_load): Likewise.
11086 (pbm_load): Likewise.
11087 (jpeg_load): Likewise.
11088 (tiff_load): Likewise.
11089 (gif_load): Likewise.
11090
11091 * keyboard.c (Qhelp_echo): New symbol.
11092 (read_char): Handle `toolbar' and `help_echo' events.
11093 (kbd_buffer_get_event): Handle HELP_ECHO input event.
11094 (make_lispy_event): Handle TOOLBAR_EVENT.
11095 (toolbar_items): New.
11096 (process_toolbar_item): New.
11097 (PROP): New.
11098 (init_toolbar_items): New.
11099 (append_toolbar_item): New.
11100 (read_char_x_menu_prompt): Handle `toolbar' event.
11101 (read_key_sequence): Ditto.
11102
11103 * xfaces.c (Qtoolbar): New.
11104 (realize_basic_faces): Realize `toolbar' face.
11105 (face_at_string_position): Remove parameter modeline_p, add
11106 base_face_id.
11107
11108 * xfns.c (xbm_load_image_from_file): Don't use Xmu function
11109 to read data.
11110
111111998-10-17 Gerd Moellmann <gerd@gnu.org>
11112
11113 * xdisp.c (init_iterator): Replace parameter modeline_p with
11114 base_face_id.
11115 (next_element_from_string): Call get_next_display_element
11116 recursively after handling text properties.
11117 (prepare_menu_bars): Call update_toolbar.
11118 (update_toolbar): New.
11119 (build_desired_toolbar_string): New.
11120 (display_toolbar_line): New.
11121 (redisplay_toolbar): New.
11122 (toolbar_item_info): New.
11123 (redisplay_window): Call redisplay_toolbar.
11124 (Fdump_toolbar_row): New. Defined if compiled with GLYPH_DEBUG.
11125
11126 * dispnew.c (clear_current_matrices): Clear matrices of toolbar
11127 window.
11128 (clear_desired_matrices): Ditto.
11129 (adjust_frame_glyphs_for_window_redisplay): Make toolbar window.
11130 (free_glyphs): Free matrices of toolbar window.
11131 (update_frame): Update toolbar window.
11132 (change_frame_size_1): Take toolbar into account.
11133 (Fset_toolbar_height): New.
11134
11135 * dispextern.h (struct it): Remove member modeline_p, add
11136 base_face_id.
11137 (struct image): Add members relief and margin.
11138 (IMAGE_ASCENT): Include margin in height.
11139
111401998-10-14 Gerd Moellmann <gerd@gnu.org>
11141
11142 * xfns.c (Fclear_image_cache): New.
11143
11144 * xfaces.c (realize_basic_faces): Realize toolbar face.
11145 (face_at_string_position): Remove parameter modeline_p, add
11146 base_face_id.
11147
11148 * dispextern.h (enum face_id): Add TOOLBAR_FACE_ID.
11149
111501998-10-13 Gerd Moellmann <gerd@gnu.org>
11151
11152 * keyboard.c (syms_of_keyboard): Intern `:help'.
11153
111541998-10-12 Gerd Moellmann <gerd@gnu.org>
11155
11156 * xterm.c (note_toolbar_highlight): New.
11157 (note_mouse_highlight): Call it.
11158
11159 * window.c (window_from_coordinates): Additional parameter toolbar_p.
11160 (coordinates_in_window): Handle toolbar window.
11161
11162 * keyboard.c (toolbar_items): New.
11163 (process_toolbar_item): New.
11164 (parse_toolbar_item): New.
11165 (init_toolbar_items): New.
11166 (append_toolbar_item): New.
11167
11168 * dispextern.h (enum toolbar_item_idx): New.
11169 (enum toolbar_item_image): New.
11170
11171 * frame.h (struct frame): Add toolbar-related members.
11172
11173 * xfaces.c (face_at_string_position): Remove assertion that
11174 current_buffer == window's buffer. This is not the case when
11175 called for the toolbar window.
11176
11177 * frame.c (make_frame): Initialize toolbar members.
11178
11179 * alloc.c (mark_object): Mark toolbar data of frames.
11180
11181 * frame.h (struct frame): Add toolbar-related members
11182 toolbar_window, desired_toolbar_items, current_toolbar_items,
11183 desired_toolbar_string, current_toolbar_string,
11184 n_desired_toolbar_items, n_current_toolbar_items. Add
11185 window_height.
11186
11187 * xterm.c (x_after_update_window_line): Don't draw bitmap
11188 areas for pseudo-windows.
11189 (expose_frame): Handle toolbar window.
11190 (expose_window): Don't do cursor stuff for pseudo-windows.
11191
11192 * xdisp.c (display_menu_bar): Correct calls to init_iterator.
11193
111941998-10-11 Gerd Moellmann <gerd@gnu.org>
11195
11196 * frame.c (make_frame): Initialize toolbar_window.
11197
11198 * alloc.c (mark_object): Make the toolbar window.
11199
11200 * dispnew.c (update_frame): Update frame's toolbar_window.
11201 (clear_current_matrices): Likewise.
11202 (clear_desired_matrices): Likewise.
11203 (adjust_frame_glyphs_for_window_redisplay): Make toolbar_window.
11204 (free_glyphs): Free the toolbar window and its matrices.
11205
11206 * frame.h (struct frame): Add toolbar_window.
11207
11208 * xterm.c (x_draw_glyph_string_relief): Handle mouse-face
11209 with relief.
11210
112111998-10-10 Gerd Moellmann <gerd@gnu.org>
11212
427ec082 11213 * dispnew.c (buffer_posn_from_coords): Don't screw up if
26901792
DL
11214 window start is not in the range BEGV..ZV.
11215
112161998-10-09 Gerd Moellmann <gerd@gnu.org>
11217
11218 * xdisp.c (try_scrolling): Experimentally handle the case
11219 that scroll-preserve-screen-position is set to `always'.
11220
11221 * window.c (Vscroll_preserve_screen_position): Replacement for
11222 scroll_preserve_screen_position.
11223
112241998-10-08 Gerd Moellmann <gerd@gnu.org>
11225
11226 * dispnew.c: Don't initialize auto structs; the HP/UX compiler
11227 doesn't like it.
11228 * xdisp.c: Ditto.
11229
11230 * xdisp.c (make_cursor_line_fully_visible): Adjust this_line_y.
11231
112321998-10-06 Gerd Moellmann <gerd@gnu.org>
11233
427ec082 11234 * minibuf.c (Fminibuffer_complete_word): Fix computation of
26901792
DL
11235 i_byte when prompts are inserted into minibuffers.
11236
11237 * dispextern.h (FRAME_INTERNAL_BORDER_WIDTH_SAFE): New.
11238 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X): Use it.
11239 (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y): Ditto.
11240
112411998-10-04 Gerd Moellmann <gerd@gnu.org>
11242
11243 * xdisp.c (make_cursor_line_fully_visible): New.
11244 (try_scrolling): New.
11245 (redisplay_window): Move scrolling code to try_scrolling.
11246 (make_cursor_line_fully_visible): Handle case of window too small
11247 to show a single line.
11248 (redisplay_window): Case forced window start---use
11249 make_cursor_line_fully_visible.
11250 (redisplay_window): Case cursor movement via current matrix.
11251 If ending up on a partially visible line, make it fully visible
11252 instead of recentering.
11253 (try_scrolling): Additional parameter scroll_smoothly.
11254
11255 * xterm.c (x_draw_bitmap): Don't XClearArea under the pixmap.
11256
112571998-09-28 Gerd Moellmann <gerd@gnu.org>
11258
11259 * window.c (window_scroll_pixel_based): Bug fix: vpos used
11260 instead of y-position for scroll-preserved-screen-position.
11261
112621998-09-07 Gerd Moellmann <gerd@gnu.org>
11263
11264 * dispnew.c (update_frame_line): If current row is not enabled,
11265 write the whole line.
11266
112671998-09-06 Gerd Moellmann <gerd@gnu.org>
11268
11269 * lisp.h (HAVE_FACES): Removed.
11270
11271 * dispextern.h (HAVE_FACES): Removed.
11272
11273 * config.in (HAVE_FACES): Removed.
11274
11275 * dispnew.c (HAVE_FACES): Removed.
11276
11277 * xdisp.c (HAVE_FACES): Removed.
11278
11279 * xfaces.c (HAVE_FACES): Removed.
11280
112811998-09-05 Gerd Moellmann <gerd@gnu.org>
11282
11283 * xdisp.c (init_iterator): If face_change_count is non-zero,
11284 free realized faces.
11285
11286 * xfaces.c (free_all_realized_faces): Make it externally visible.
11287 (Finternal_set_lisp_face_attribute): Increment
11288 windows_or_buffers_changed.
11289
11290 * dispnew.c (direct_output_for_insert): Give up if
11291 face_change_count is non-zero.
11292 (direct_output_forward_char): Ditto.
11293
11294 * xfaces.c (face_change_count): New.
11295
112961998-09-04 Gerd Moellmann <gerd@gnu.org>
11297
11298 * xterm.c (x_draw_bar_cursor): Don't draw if cursor hpos is out
11299 of range.
11300
113011998-09-03 Gerd Moellmann <gerd@gnu.org>
11302
11303 * term.c (Ftty_display_color_p): New.
11304
113051998-09-02 Gerd Moellmann <gerd@gnu.org>
11306
11307 * xfaces.c (Ftty_defined_colors): New.
11308
11309 * xterm.c (x_produce_glyphs): Fix computation of
11310 contains_overlapping_glyphs_p for ASCII.
11311
11312 * dispnew.c (Fshow_cursor): Don't change cursor state while
11313 redisplaying.
11314 (direct_output_for_insert): If a glyph with lbearing or rbearing
11315 is among the new glyphs, set row flag contains_overlapping_glyph_p.
11316
113171998-09-01 Gerd Moellmann <gerd@gnu.org>
11318
11319 * term.c (OUTPUT_IF): Make replacement text have statement form.
11320 (OUTPUT1_IF): Ditto.
11321 (TS_italic_mode, TS_end_italic_mode): Removed.
11322 (TS_bold_mode): Removed.
11323 (TS_underscore_mode, TS_end_underscore_mode): Removed.
11324 (TS_enter_bold_mode, TS_enter_dim_mode, TS_enter_blink_mode): New.
11325 (TS_enter_reverse_mode): New.
11326 (TS_enter_underline_mode, TS_exit_underline_mode): New.
11327 (TN_magic_cookie_glitch_ul): New.
11328 (TS_enter_alt_charset_mode, TS_exit_alt_charset_mode): New.
11329 (TS_exit_attribute_mode): New.
11330 (TN_max_colors, TN_max_pairs, TS_orig_pairs): New.
11331 (TS_set_foreground, TS_set_background): New.
11332 (reset_terminal_modes): Switch colors back to default.
11333 (write_glyphs): Turn face on before writing text, turn it off
11334 afterwards.
11335 (insert_glyphs): Ditto.
11336 (term_init): Initialize new terminal capability variables.
11337 (turn_on_face): Turn a face on.
11338 (turn_off_face): Turn a face off.
11339
11340 * lisp.h (MAKE_GLYPH): Remove test for frame type.
11341 (GLYPH_CHAR): Ditto.
11342 (GLYPH_FACE): Ditto.
11343
11344 * xfaces.c (Vface_tty_color_alist): New.
11345 (face-register-tty-color): New.
11346 (face-clear-tty-colors): New.
11347
11348 * dispextern.h (FACE_TTY_DEFAULT_COLOR): New.
11349 (struct it): Remove member faces_p since we now always have faces.
11350
113511998-08-31 Gerd Moellmann <gerd@gnu.org>
11352
11353 * dispextern.h (struct face): Add tty appearance flags.
11354
11355 * xdisp.c (init_iterator): Always handle faces.
11356 (extend_face_to_end_of_line): Handle tty frames.
11357
11358 * dispnew.c (clear_glyph_matrix): Allow a null matrix to be
11359 passed in.
11360
113611998-08-30 Gerd Moellmann <gerd@gnu.org>
11362
11363 * xfaces.c (realize_default_face): Use empty strings to indicate
11364 that the face should use the default foreground/background
427ec082 11365 color of the terminal. Fill font-related attributes with
26901792
DL
11366 appropriate values for tty frames.
11367
11368 * emacs.c (main): Call syms_of_xfaces before init_window_once.
11369
11370 * xfaces.c (realize_default_face): If face `default' is not
11371 yet known, create it.
11372
11373 * frame.c (make_terminal_frame): Call init_frame_faces
11374 unconditionally.
11375
11376 * xfaces.c (init_frame_faces): Make it work for tty frames.
11377 (free_frame_faces): Ditto.
11378 (clear_face_cache): Ditto.
11379 (recompute_basic_faces): Ditto.
11380 (Fframe_face_alist): Ditto.
11381 (free_realized_face): Ditto.
11382 (prepare_face_for_display): Ditto.
11383 (clear_face_gcs): Ditto.
11384 (lookup_face): Ditto.
11385 (smaller_face): Ditto.
11386 (realize_default_face): Ditto.
11387 (realize_face): Ditto.
11388 (realize_face): Dispatch to functions depending on the frame type.
11389 (realize_x_face): X way of realizing faces.
11390 (realize_tty_face): TTY way of realizing faces.
11391
113921998-08-29 Gerd Moellmann <gerd@gnu.org>
11393
11394 * xfaces.c (realize_face): Remove parameter unibyte_registry,
11395 compute it instead.
11396 (lookup_face): Remove local variable unibyte_registry.
11397
113981998-08-22 Gerd Moellmann <gerd@gnu.org>
11399
11400 * xterm.c (x_draw_glyph_string_relief): Draw top and bottom lines
11401 1 pixel longer.
11402
427ec082 11403 * xdisp.c (face_before_or_after_it_pos): Fix computation
26901792
DL
11404 of face in buffer.
11405
11406 * editfns.c (make_buffer_string_both): If prompt in buffer,
11407 prevent start > end.
11408
11409 * indent.c (Fvertical_motion): Set current_buffer to window's
11410 buffer if it isn't already.
11411
114121998-08-21 Gerd Moellmann <gerd@gnu.org>
11413
11414 * dispextern.h (GLYPH_DEBUG): Use default 0.
11415
11416 * xdisp.c (it_props): New member `smaller'.
11417 (init_iterator): Initialize it.
11418 (Qsmaller): New.
11419 (push_it): Save value of `smaller' value on the stack.
11420 (pop_it): Restore `smaller' from the stack.
11421 (handle_smaller_prop): New.
11422 (handle_face_prop): Use `smaller' text property to select a
11423 suitable face.
11424
11425 * dispextern.h (SMALLER_PROP_IDX): New.
11426 (struct it): Add member `smaller'.
11427
11428 * xfaces.c (smaller_face): New.
11429
11430 * frame.h (FRAME_WINDOW_WIDTH_ARG): Add bitmap area widths.
11431
11432 * dispnew.c (allocate_matrices_for_window_redisplay): Compute
11433 total pixel width of window differently.
11434
11435 * xdisp.c (init_iterator): Compute width of mode line differently.
11436
11437 * dispextern.h (WINDOW_DISPLAY_PIXEL_WIDTH): Subtract width
11438 of bitmap areas.
11439
11440 * window.c (Fsplit_window): Include width of bitmap areas in
11441 window width.
11442 (window_internal_width): Subtract width of bitmap areas from
11443 total width.
11444
114451998-08-18 Gerd Moellmann <gerd@gnu.org>
11446
11447 * xdisp.c: Functions reordered for better readability.
11448
11449 * dispnew.c (update_text_area): Handle glyphs with arbitrary
11450 lbearing.
11451 (update_window_tree): Parameter no_scrolling_p removed.
11452 (update_single_window): Ditto.
11453
11454 * xterm.c (x_get_char_font_and_encoding): Renamed to
11455 x_get_char_face_and_encoding.
11456
11457 * dispnew.c (update_text_area): Don't call get_glyph_overhangs
11458 if end of current row reached.
11459
11460 * xterm.c (x_get_glyph_face_and_encoding): New.
11461 (x_get_glyph_overhangs): Call it.
11462
11463 * xdisp.c (Qshow_trailing_whitespace): New.
11464 (Qtrailing_whitespace): New.
11465 (enum prop_handled): New.
11466 (struct props, it_props): New.
11467 (next_overlay_change): New. Works like Fnext_overlay_change
11468 but doesn't use xmalloc.
11469 (handle_stop): Restructured.
11470 (face_before_or_after_it_pos): Case iteration over a string: fix
11471 handling of face before current position.
11472
114731998-08-16 Gerd Moellmann <gerd@gnu.org>
11474
11475 * dispnew.c (adjust_glyph_matrix): Don't optimize matrix
11476 reallocation matrix if fonts_changed_p.
11477 (update_text_area): Handle glyphs with lbearing.
11478
114791998-08-14 Gerd Moellmann <gerd@gnu.org>
11480
11481 * xdisp.c (struct props): New.
11482 (it_props): New.
11483 (compute_prop_info): New.
11484 (handle_stop): New.
11485
11486 * textprop.c (validate_interval_range): Make it externally
11487 visible.
11488
11489 * dispnew.c (direct_output_for_insert): Remove calls
11490 to compute_stop_pos.
11491
11492 * dispextern.h (struct it): Remove check_charpos,
11493 next_overlay_pos. Add what_changes.
11494
114951998-08-10 Gerd Moellmann <gerd@gnu.org>
11496
11497 * xterm.c (note_mouse_highlight): Set BEGV_BYTE, ZV_BYTE.
11498
11499 * xfaces.c (Vx_unibyte_registry_and_encoding): Removed. Use
11500 face_default_registry instead.
11501
11502 * syntax.c (scan_sexps_forward): Set up syntax table before
11503 jumping to initial state label.
11504
115051998-08-09 Gerd Moellmann <gerd@gnu.org>
11506
11507 * dispnew.c (check_matrix_invariants): Handle case of row end pos
11508 >= ZV specially.
11509
115101998-08-08 Gerd Moellmann <gerd@gnu.org>
11511
11512 * xdisp.c (redisplay_window): Case cursor movement---if cursor
11513 ends up in partially visible row, try to scroll. Case forced
11514 window start---handle windows not tall enough to show a single
11515 line.
11516
11517 * window.h (struct window): Member dy renamed vscroll.
11518
11519 * xterm.c (x_list_fonts): Re-activate suppression of scalable
11520 fonts.
11521 (x_draw_stretch_glyph_string): Set clipping if using GC that
11522 hasn't set it yet.
11523
11524 * xdisp.c (redisplay_window): Case forced window start -
11525 don't let cursor end on partially visible row. Use desired
11526 matrix to find a suitable PT if it doesn't appear.
11527 (decode_mode_spec): Merged with 20.2.97.
11528 (try_window_reusing_current_matrix): Give up if old or
11529 new display is vscrolled.
11530 (redisplay_window): Reset vscrolling if forced window start,
11531 or if recentering.
11532
115331998-08-06 Gerd Moellmann <gerd@gnu.org>
11534
11535 * xfaces.c (realize_default_face): Use the fontset name instead of
11536 the alias for the family attribute of the default face because we
11537 can't easily determine a good alias from fontset-alias-alist.
11538 (face_fontset): Use Fquery_fontset to find the fontset.
11539 (font_list): Additional pattern parameter.
11540 (try_font_list): Ditto.
11541 (set_lface_from_font_name): Set face family from font foundry
11542 and family.
11543 (font_list): If family contains a hyphen, build pattern differently.
11544
115451998-08-05 Gerd Moellmann <gerd@gnu.org>
11546
11547 * xfaces.c (free_realized_faces): Increment windows_or_buffers_-
11548 changed instead of setting the frame garbaged.
11549
11550 * xfaces.c (lface_equal_p): Don't assume equal Lisp types for
11551 all attribute values. This is wrong if values are unspecified,
11552 i.e. nil.
11553
11554 * xdisp.c (try_window_id): Give up if window start changed.
11555
11556 * xfaces.c (make_realized_face): Store registry as Lisp object.
11557 (load_face_font_or_fontset): Compute registry of a face
11558 differently. Make it `eq' to Vx_unibyte_registry_and_encoding if
11559 possible.
11560
11561 * dispextern.h (FACE_SUITABLE_FOR_CHARSET_P): Compare registries
11562 differently.
11563
11564 * alloc.c (mark_face_cache): Mark the registry member of faces.
11565
11566 * dispextern.h (struct face): Make registry a Lisp string.
11567
115681998-08-04 Gerd Moellmann <gerd@gnu.org>
11569
11570 * xterm.c (x_get_char_font_and_encoding): Additional parameter
11571 multibyte_p. Handle unibyte text.
11572 (x_append_glyph): Set the multibyte_p flag of glyphs.
11573 (x_produce_image_glyph): Ditto.
11574 (x_append_stretch_glyph): Ditto.
11575 (x_produce_glyphs): Handle unibyte text like ASCII.
11576
11577 * xdisp.c (push_it): Save the multibyte flag of an iterator on the
11578 stack.
11579 (pop_it): Restore it.
11580 (face_before_or_after_it_pos): Handle the case that the string or
11581 buffer is unibyte.
11582 (get_overlay_strings): Set the multibyte flag of the iterator if
11583 the new overlay string is multibyte.
11584 (get_glyph_property): Likewise.
11585 (get_next_display_element): Don't check for charset changes in
11586 unibyte text.
11587 (append_space): Compute face differently for unibyte text.
11588 (extend_face_to_end_of_line): Don't return quickly if face has
11589 stipple.
11590
11591 * xfaces.c (load_face_font_or_fontset): Store registry and
11592 encoding of the font in the registry member of the face.
11593 (make_realized_face): Additional parameter `registry'.
11594 (free_realized_face): Free the registry of a realized face.
11595 (face_suitable_for_charset_p): Function form of the macro
11596 with the same name in uppercase.
11597 (lookup_face): Use Vx_unibyte_registry_and_encoding if charset < 0.
11598 (choose_face_font): New parameter unibyte_registry.
11599 (choose_face_fontset_font): Ditto.
11600 (realize_default_face): Remember the registry and encoding of
11601 the specified frame font in Vx_unibyte_registry_and_encoding.
11602 (face_at_buffer_position): Handle unibyte.
11603 (face_at_string_position): Likewise.
427ec082 11604 (realize_face): New parameter unibyte_registry.
26901792
DL
11605 (compute_char_face): Handle the unibyte case.
11606
11607 * dispextern.h (struct glyph): Add bit multibyte_p.
11608 (struct face): New member registry holding the registry and
11609 encoding of the X font of the face.
11610 (FACE_UNIBYTE_P): Value is non-zero if face is for unibye text.
11611 (enum face_id): Add BASIC_FACE_ID_SENTINEL.
11612 (FACE_SUITABLE_FOR_CHARSET_P): Handle charset < 0 meansing unibyte
11613 text.
11614 (struct iterator_stack_entry): Add multibyte_p.
11615
11616 * xdisp.c (string_pos): Use string_char_to_byte.
11617 (char_charset): Removed.
11618
116191998-08-03 Gerd Moellmann <gerd@gnu.org>
11620
11621 * xterm.c (x_draw_image_glyph_string_foreground): Draw a
11622 rectangle for a block cursor over an image without a mask.
11623 (x_stretch_block_cursor): Added. Non-zero means don't draw
11624 a block cursor over a stretch as wide as that stretch.
11625 (x_draw_stretch_glyph_string): Use it.
11626 (x_draw_hollow_cursor): Ditto.
11627
11628 * minibuf.c (read_minibuf): Use minibuf_prompt instead of prompt.
11629 (read_minibuf): Add front-sticky text property for prompt.
11630
11631 * xdisp.c (char_charset): Return charset of a character,
11632 depending on whether or not multi-byte characters are enabled.
11633
11634 * xfaces.c (Fset_face_charset_registry): Removed.
11635 (x_charset_registry): Determine registry from charset plist.
11636
116371998-08-02 Gerd Moellmann <gerd@gnu.org>
11638
11639 * xdisp.c (get_next_display_element): Don't check for charset
11640 changes if multi-byte characters are not enabled.
427ec082 11641
26901792 11642 * xdisp.c (echo_area_display): Use the flush function from the
427ec082 11643 redisplay interface.
26901792
DL
11644 * keyboard.c (detect_input_pending_run_timers): Likewise.
11645
11646 * dispextern.h (produce_*glyphs_hook): Removed.
11647 * term.c (produce_*glyphs): Ditto.
11648 (cursor_to): Remove pixel position parameters.
11649
11650 * dispnew.c: Remove hooks for window-based redisplay, introduce
11651 a redisplay interface structure.
11652
11653 * xterm.c (x_per_char_metric): Return default char metrics if per
11654 char metric exists but contains a zero width. Adobe Courier seems
11655 to contain such characters.
11656
11657 * xdisp.c (compute_line_metrics): Compute the width of rows
11658 without stopping at glyphs with zero width.
11659
116601998-08-01 Gerd Moellmann <gerd@gnu.org>
11661
11662 * xdisp.c (display_mode_line): If nothing was displayed at all,
11663 display a space.
11664 (hscroll_window_tree): Don't subtract 1 from target point if equal
11665 to ZV and window is not the selected window.
11666
11667 * dispnew.c (check_matrix_invariants): Remove check for window
11668 start at BEGV or after newline. This happens in rare cases
11669 intentionally.
11670
116711998-07-31 Gerd Moellmann <gerd@gnu.org>
11672
11673 * xfaces.c (x_charset_registry): Use STRING_BYTES.
11674 (syms_of_xfaces): Add Vface_default_registry.
11675 (x_charset_registry): Use it.
11676
11677 * xdisp.c (run_window_scroll_functions): Run window scroll functions.
11678 (redisplay_window): Use it.
11679
11680 * dispnew.c (update_text_area): Handle lbearing of deleted text
11681 by backing up one character.
11682
116831998-07-30 Gerd Moellmann <gerd@gnu.org>
11684
427ec082 11685 * dispnew.c (adjust_glyph_matrix): Use a different check to
26901792
DL
11686 decide to do nothing.
11687
11688 * xfaces.c (face_at_string_position): Additional parameter
11689 mode_line_p. If non-zero, merge with the mode line face
11690 instead of the default face.
11691 * dispextern.h (struct it): Add mode_line_p.
11692 * xdisp.c (init_iterator): Set it.
11693 (compute_face_in_string): Use it.
11694 (face_before_or_after_it_pos): Handle strings.
11695 (get_next_display_element): Don't look for relief end in C strings.
11696 (next_element_from_string): Deliver string position instead of
11697 buffer position.
11698
11699 * xterm.c (x_flush): Flush X output buffer.
11700 (XTflash): Use it.
11701
11702 * xfaces.c (lface_from_face_name): Renamed from lface_from_symbol.
11703 Allow strings as face names.
11704
11705 * xfns.c (forall_images_in_image_cache): Check that frame is
11706 alive.
11707
11708 * widget.c (EmacsFrameDestroy): Remove call to free_frame_faces;
11709 it's also called from x_destroy_window. Since this function is
11710 called from X, freeing stuff allocated with xmalloc is dangerous
11711 here, anyway.
11712
11713 * xfaces.c (free_realized_faces): Don't clear current matrices
11714 of a frame being destroyed.
11715
427ec082 11716 * frame.c (make_frame): Call set_window_buffer instead of
26901792
DL
11717 Fset_window_buffer.
11718
11719 * window.c (set_window_buffer): Extracted from Fset_window_buffer,
11720 with an additional argument specifying whether or not hooks may
11721 be called.
11722 (Fset_window_buffer): Call it.
11723
11724 * dispnew.c (clear_desired_matrices): Check that frame has
11725 a valid root window before clearing matrices in the window tree.
11726 (clear_current_matrices): Ditto.
11727 (clear_window_matrices): If GLYPH_DEBUG, check that hchild and
11728 vchild are valid windows if not nil.
11729
11730 * xfaces.c (merge_face_vector_with_property): Allow :reverse-video
11731 for :inverse-video.
11732 (Finternal_set_lisp_face_attribute): Ditto.
11733 (Finternal_set_lisp_face_attribute_from_resource): Ditto.
11734 (Finternal_get_lisp_face_attribute): Ditto.
11735 (Finternal_lisp_face_attribute_values): Ditto.
11736 (syms_of_xfaces): Define the symbol `:reverse-video'.
11737
11738 * xdisp.c (get_glyph_property): Renamed from
11739 fill_iterator_from_glyph_property.
11740 (next_element_from_buffer): Handle case that no `glyph' property
11741 was found correctly.
11742 (display_line): Extend face to end of line only if we have faces.
11743
117441998-07-29 Gerd Moellmann <gerd@gnu.org>
11745
11746 * dispnew.c (Fshow_cursor): Renamed from blink_cursor. Take
11747 additional window argument.
11748
11749 * xdisp.c (reseat_at_previous_visible_line_start): Renamed from
11750 set_iterator_to_previous_visible_line_start.
11751 (reseat_at_next_visible_line_start): Likewise.
11752 (compute_stop_pos): Renamed from set_iterator_stop_pos.
11753 (face_before_or_after_it_pos): Renamed from get_face_at_it_pos.
11754 (compute_face_in_buffer): Renamed from
11755 compute_face_at_iterator_position.
11756 (compute_face_in_string): Renamed from
11757 compute_face_at_iterator_string_position.
11758 (get_space_width): Renamed from get_iterator_space_width.
11759 (next_overlay_string): Renamed from
11760 set_iterator_to_next_overlay_string.
11761 (get_overlay_strings): Renamed from
11762 get_overlay_strings_at_iterator_position.
11763 (restore_overlay_strings): Renamed from
11764 setup_overlay_strings_from_glyph_pos.
11765 (restore_dpvec): Renamed from setup_iterator_dpvec_from_glyph_pos.
11766 (init_from_display_pos): Renamed from init_iterator_from_glyph_pos.
11767 (init_to_row_start): Renamed from init_iterator_to_row_start.
11768 (init_to_row_end): Formerly init_iterator_to_next_row_start.
11769
11770 * xterm.c: Merge with 20.2.97.
11771 (x_produce_glyphs): Use x_append_stretch_glyph for tabs.
11772
11773 * dispextern.h (struct glyph): Replace text_pos position with
11774 simple charpos.
11775
11776 * xdisp.c (this_line_start_pos): Use struct text_pos.
11777 (this_line_end_pos): Renamed from .*endpos; use struct text_pos.
11778 (enum move_it_result): Renamed from move_iterator_result.
11779 (string_pos_nchars_ahead): Compute text_pos in a string from a
11780 known text_pos plus a character delta.
11781 (string_pos): Compute text_pos in string from charpos.
11782 (c_string_pos): Likewise for a C string.
11783 (number_of_chars): Return number of characters in a possibly
11784 multi-byte C string.
11785 (check_it): Renamed from check_iterator. Check that charpos and
11786 bytepos are in sync.
11787 (push_it): Renamed from save_iterator_settings.
11788 (pop_it): Renamed from restore_iterator_settings.
11789 (move_it_.*): Renamed from move_iterator_.*.
11790 (charset_at_position): Take charpos/bytepos into account.
11791 (back_to_previous_line_start): Set iterator to previous line start.
11792 (forward_to_next_line_start): Set iterator to next line start.
427ec082 11793 (back_to_previous_visible_line_start): Renamed from
26901792
DL
11794 move_iterator_previous_visible_line_start.
11795 (set_iterator_to_next_visible_line_start): Handle charpos/bytepos.
11796 (get_face_at_it_pos): Renamed from get_face_from_cursor_pos.
11797 Handle charpos/bytepos.
11798 (compute_face_at_iterator_position): Handle charpos/bytepos.
11799 (compute_face_at_iterator_string_position): Likewise.
11800 (get_iterator_space_width): Likewise.
11801 (load_overlay_strings): Likewise.
11802 (get_overlay_strings_at_iterator_position): Likewise.
11803 (reseat_iterator): Take a text_pos position argument.
11804 (setup_iterator_overlay_strings_from_glyph_pos): Handle charpos/
11805 bytepos.
11806 (init_iterator): Take additional bytepos parameter.
11807 (reseat_iterator_to_string): Handle charpos/bytepos.
11808 (start_display): Take a text_pos parameter. Handle charpos/bytepos.
11809 (next_element_from_string): Handle charpos/bytepos.
11810 (next_element_from_c_string): Likewise.
11811 (fill_iterator_from_glyph_property): Likewise.
11812 (next_element_from_buffer): Likewise.
11813 (set_iterator_to_next): Increment charpos and bytepos of an iterator.
11814 (move_iterator_in_display_line_to): Handle charpos/bytepos.
11815 (move_it_to): Likewise.
11816 (move_it_vertically_backward): Likewise.
11817 (move_it_vertically): Likewise.
11818 (move_it_by_lines): Likewise.
11819 (hscroll_window_tree): Likewise.
11820 (redisplay_internal): Likewise.
11821 (set_cursor_from_row): Likewise.
11822 (redisplay_window): Likewise.
11823 (try_window): Take a text_pos parameter. Handle charpos/bytepos.
11824 (try_window_reusing_current_matrix): Handle charpos/bytepos.
11825 (get_first_unchanged_at_end_row): Compute and return delta_bytes.
11826 (try_window_id): Handle charpos/bytepos.
11827 (Ftrace_redisplay_toggle): Return Qnil.
11828 (get_overlay_arrow_glyph_row): Handle charpos/bytepos.
11829 (insert_left_trunc_glyphs): Likewise.
11830
11831 * dispnew.c: `Merge' with 20.2.97 (it's really too different to
11832 do a real merge).
11833 (increment_glyph_matrix_buffer_positions): Add parameter delta_bytes.
11834 (increment_glyph_row_buffer_positions): Ditto.
11835 (copy_glyph_row_contents): Ditto.
11836 (check_matrix_invariants): Add additional checks for charpos/
11837 bytepos consistency.
11838 (direct_output_for_insert): Changed for charpos/bytepos.
427ec082 11839 (buffer_posn_from_coords): Likewise. Put code dealing with
26901792
DL
11840 `direction-reversed' in #if 0.
11841
11842 * xterm.h: Merge with 20.2.97.
427ec082 11843
26901792
DL
11844 * frame.h: Merge with 20.2.97.
11845
11846 * window.h: Merge with 20.2.97. Add window_end_bytepos.
11847
11848 * dispextern.h (MATRIX_ROW_START_CHARPOS): Get charpos of a row
11849 start.
11850 (MATRIX_ROW_START_BYTEPOS): Likewise for the byte position.
11851 (MATRIX_ROW_END_CHARPOS): Likewise for the row end.
11852 (MATRIX_ROW_END_BYTEPOS): Likewise for the row end byte position.
11853 (struct it): Various members renamed from .*pos to .*charpos.
11854 (IT_CHARPOS): Access current buffer character position of an
11855 iterator.
11856 (IT_BYTEPOS): Access current buffer byte position of an iterator.
11857 (IT_STRING_CHARPOS): Access current string character position of
11858 an iterator.
11859 (IT_STRING_BYTEPOS): Access current string byte position of
11860 an iterator.
11861 (globally): Add function prototypes from 20.2.97.
11862
11863 * everywhere: Use P_ instead of PROTO for function prototypes
11864 because everyone else seems to use P_.
11865
11866 * dispextern.h (struct text_pos): Structure describing a charpos/
11867 bytepos position in text.
11868 (BYTEPOS): Access the byte position part of a text_pos.
11869 (CHARPOS): Likewise for the character position.
11870 (SET_TEXT_POS): Set a text_pos from a character and byte position.
11871 (INC_TEXT_POS, DEC_TEXT_POS): Increment/decrement a text position.
11872 (SET_TEXT_POS_FROM_MARKER): Set a text_pos from a marker.
11873 (SET_MARKER_FROM_TEXT_POS): Set a marker from a text_pos.
11874 (TEXT_POS_EQUAL_P): Compare two text_pos structures for equality.
11875 (struct display_pos): Renamed from glyph_pos. Use struct text_pos
11876 for buffer and string positions.
11877 (struct glyph): Use text_pos.
11878 (struct it): Renamed from display_iterator. Use text_pos.
11879
118801998-07-23 Gerd Moellmann <gerd@gnu.org>
11881
11882 * xfns.c (x_kill_gs_process): Get image colors from XImage of a
11883 pixmap.
11884
118851998-07-21 Gerd Moellmann <gerd@gnu.org>
11886
11887 * dispextern.h (struct glyph_row): New flag indicate_zv_line_p.
11888 * xterm.c (x_draw_row_bitmaps): Use it.
11889 * dispnew.c (row_equal_p): Ditto.
11890 (update_window_line): Ditto.
11891
11892 * xfns.c (prepare_image_for_display): Don't set loading_failed_p
11893 flag of images.
11894
11895 * dispextern.h (struct image): Removed member loading_failed_p.
11896 It's probably better to have the chance to try to load an image
11897 again.
11898
118991998-07-20 Gerd Moellmann <gerd@gnu.org>
11900
11901 * xterm.c (x_draw_bitmap): Draw bitmap for empty lines ending
11902 at ZV if `indicate-zv-lines' is non-nil.
11903 (x_draw_row_bitmaps): Compute bitmap for `indicate-zv-lines'.
11904
11905 * dispnew.c (row_equal_p): Compare displays_text_p and
11906 ends_at_zv_p flags of rows.
11907 (update_window_line): Ditto.
11908
11909 * buffer.h (struct buffer): New member indicate_zv_lines.
11910
11911 * buffer.c (init_buffer_once): Add default for `indicate-zv-lines'.
11912 (init_buffer_once): New variable `default-indicate-zv-lines'.
11913 (syms_of_buffer): New buffer-local varianle `indicate-zv-lines'.
11914
11915 * xdisp.c (redisplay_window): Don't try moving the cursor
11916 if current glyph row w->last_cursor.vpos isn't enabled.
11917
11918 * xterm.c (bitmap_type): Add ZV_LINE_BITMAP.
11919
11920 * window.c (Fset_window_vscroll): Allow only negative scroll
11921 values. Others don't seem to make sense, and this way it's easy
11922 to restore a vscroll of zero.
11923
11924 * xterm.c (x_inverted_image_mask): Check that pixmap could be
11925 allocated.
11926 (x_draw_image_glyph_string_background): Don't clip if pixmap
11927 could not be created.
11928
11929 * xfns.c (xbm_load_image_from_file): Check that pixmap could
11930 be created.
11931 (xbm_load): Ditto.
11932 (gs_load): Ditto.
11933
11934 * xterm.c (x_get_glyph_overhangs): Take image and stretch
11935 glyphs into account.
11936
11937 * xfaces.c (realize_default_face): Don't set font family of
11938 the default face from the fontset alias name for `fontset-startup'.
11939
11940 * xfns.c (gs_load): Pass frame's pixel foreground and background
11941 color to the Lisp loader.
11942
119431998-07-19 Gerd Moellmann <gerd@gnu.org>
11944
11945 * xfns.c (tiff_image_p, tiff_load): Support TIFF images via
11946 libtiff34.
11947
11948 * configure.in (--with-tiff, HAVE_TIFF): Added.
11949
11950 * config.in (HAVE_TIFF): Added.
11951
11952 * Makefile.in (LIBTIFF): Added.
11953
11954 * xfns.c (jpeg_image_p, jpeg_load): Support JPEG images.
11955
11956 * Makefile.in (LIBJPEG): Added.
11957
11958 * xfns.c (resource_types): Enumerators renamed to RES_TYPE_NUMBER,
11959 RES_TYPE_BOOLEAN etc. because of conflict of `boolean' with
11960 jpeglib.h.
11961
427ec082 11962 * configure.in (HAVE_JPEG, --with-jpeg): Added. On systems
26901792
DL
11963 where the library is installed in /usr/local/lib, e.g. FreeBSD,
11964 configure must be run with `--x-includes=/usr/X11R6/include:
11965 /usr/local/include --x-libraries=/usr/X11R6/lib:/usr/local/lib'.
11966
119671998-07-18 Gerd Moellmann <gerd@gnu.org>
11968
11969 * config.in (HAVE_JPEG): Added.
11970
11971 * xfns.c (ct_init): Initialize color table used to map RGB colors
11972 from images to X pixel colors.
11973 (ct_free): Free color table.
11974 (ct_lookup): Look an RGB color up.
11975 (ct_allocated_colors): Get vector of allocated colors.
427ec082 11976 (pbm_image_p): Test if image specification is a valid PPM
26901792
DL
11977 image specification.
11978 (pbm_scan_number): Scan a decimal ASCII number from a file.
11979 (pbm_load): Load a PPM image.
11980
11981 * window.c (Fset_window_vscroll): Adjust glyph matrix if
11982 necessary. Take canonical character units as parameter.
11983 (Fwindow_vscroll): Return canonical character units.
11984
11985 * dispnew.c (allocate_matrices_for_window_redisplay): Add negative
11986 w->dy to display height for which glyph rows must be allocated.
11987
119881998-07-17 Gerd Moellmann <gerd@gnu.org>
11989
11990 * xfaces.c (face_at_string_position): Merge in region face
11991 so that it won't overwrite the font in the region.
11992 (face_at_buffer_position): Ditto.
11993 (realize_basic_faces): Don't realize region face.
11994
11995 * dispextern.h (enum face_id): REGION_FACE_ID removed.
11996
11997 * xterm.c (x_set_glyph_string_background_width): Don't let
11998 cursor face extend to end of line.
11999
12000 * xdisp.c (append_space): If adding space of default face,
12001 make sure glyph ist produced with right face.
12002
12003 * xterm.c (x_clear_glyph_string_rect): Draw a rectangle in the
12004 background color of a glyph string.
12005 (x_draw_glyph_string_background): Call it.
12006 (x_draw_glyph_string_bg_rect): Ditto.
12007 (x_draw_stretch_glyph_string): Ditto.
12008
120091998-07-15 Gerd Moellmann <gerd@gnu.org>
12010
12011 * xdisp.c (init_iterator): Initialize it->current_y to the
12012 window's vscroll w->dy.
12013
12014 * window.c (Fwindow_vscroll): Return number of pixels window
12015 is vscrolled smoothly.
12016 (Fset_window_vscroll): Set the number.
12017
12018 * xdisp.c (move_iterator_to): Recognize case MOVE_TO_POS and
12019 to_pos in truncated part of a line.
12020
120211998-07-14 Gerd Moellmann <gerd@gnu.org>
12022
12023 * xdisp.c (move_iterator_in_display_line_to): If very first glyph
12024 doesn't fit on the line, truncate it, despite truncate_lines nil.
12025 (display_line): Ditto.
12026
12027 * xfns.c: Experimental support for Ghostscript images.
12028
12029 * xterm.c (x_term_init): Initialize new atoms DONE and PAGE.
12030 (XTread_socket): React on events from Ghostscript.
12031 (expose_frame): If width or height are zero, redraw entire frame.
12032 (XTread_socket): Call expose_frame after receiving event from
12033 Ghostscript.
12034
12035 * xterm.h (struct x_display_info): Add atoms DONE and PAGE
12036 for Ghostscript support.
12037
12038 * xdisp.c (redisplay_internal): Return quickly if called
12039 recursively.
12040
12041 * alloc.c (NSTATICS): Increased to 1024.
12042
120431998-07-08 Gerd Moellmann <gerd@gnu.org>
12044
12045 * xterm.c (x_append_stretch_glyph): Append a stretch glyph to an
12046 iterator's glyph row.
12047 (x_produce_stretch_glyph): Call it.
12048 (x_produce_glyphs): Handle `space-width' property; call
12049 x_append_stretch_glyph.
12050
12051 * xdisp.c (syms_of_xdisp): Add symbol `space-width' used as a text
12052 property.
12053 (get_iterator_space_width): Determine value of `space-width'
12054 property at iterator's position.
12055 (reseat_iterator): Call it.
12056 (next_element_from_string): Ditto.
12057 (next_element_from_buffer): Ditto.
12058 (init_iterator): Initialize space_width of iterator.
12059 (redisplay_internal): Don't goto end_of_redisplay if PT hasn't
12060 moved, but cursor blinks.
12061 (redisplay_internal): Set w->last_cursor_off_p after update.
12062
12063 * dispextern.h (enum iterator_prop_idx): Add SPACE_WIDTH_PROP_IDX.
12064 (struct display_iterator): Add new member space_width.
12065
12066 * window.h (struct window): Add last_cursor_off_p.
12067
120681998-07-07 Gerd Moellmann <gerd@gnu.org>
12069
12070 * Saved.
12071
12072 * window.c (Fpos_visible_in_window_p): Case window not up to
12073 date---return nil if iterator hasn't reached position.
12074
120751998-07-06 Gerd Moellmann <gerd@gnu.org>
12076
12077 * xdisp.c (text_outside_line_unchanged_p): Fix case that
12078 overlays have changed.
12079 (redisplay_window): Case cursor movement. Don't try it if
12080 last_cursor.vpos is out of range.
12081
12082 * xdisp.c (set_cursor_from_row): Set this_line_.* variables. This
12083 way, the display optimization for the line containing the cursor
12084 is used more frequently, esp. when we have a blinking cursor.
12085 (display_line): Don't set this_line_.* variables.
12086
12087 * xterm.c (x_redraw_cursor): Removed.
12088 (x_display_and_set_cursor): Set cursor type depending on
12089 cursor_off_p flag of window.
12090
12091 * dispnew.c (redraw_cursor_hook): Removed.
12092 (Fblink_cursor): Additional parameter on_p to set the cursor_off_p
12093 member of the selected window.
12094
12095 * xfaces.c (Fface_font): Added for compatibility with 20.2.
12096
12097 * xterm.c (x_y_to_hpos_vpos): Return null if not over text.
12098 Return glyph area under x/y.
12099 (note_mouse_highlight): Use x_y_to_hpos_vpos in its new form.
12100
12101 * keyboard.c (detect_input_pending_run_timers): Call gobble_input
12102 after redisplaying.
12103
121041998-07-05 Gerd Moellmann <gerd@gnu.org>
12105
12106 * xdisp.c (text_outside_line_unchanged_p): Test if changes
12107 are all outside of a line of text.
12108 (redisplay_internal): Use it.
12109
121101998-06-30 Gerd Moellmann <gerd@gnu.org>
12111
12112 * xdisp.c (next_element_from_buffer): After skipping over
12113 invisible text, look for the `glyph' property.
12114 (set_iterator_stop_pos): Ignore check positions in front
12115 of an iterator's current position.
12116
12117 * xterm.c (show_mouse_face): Don't act on rows that don't exist
12118 anymore or which are marked as not having valid contents.
12119
12120 * xfaces.c (Finternal_set_lisp_face_attribute): Don't free
12121 realized faces if new attribute value is equal to old value.
12122
121231998-06-29 Gerd Moellmann <gerd@gnu.org>
12124
12125 * xfaces.c (Finternal_make_lisp_face): Increment
12126 lface_id_to_name_size when lface_id_to_name is reallocated.
12127
121281998-06-27 Gerd Moellmann <gerd@gnu.org>
12129
12130 * xdisp.c (set_iterator_stop_pos): Compute initial stop_pos
12131 as minimum of endpos and overlay_pos.
12132 (load_overlay_strings): Set next_overlay_pos of iterator to
12133 -1 if we don't have to check for more overlay strings.
12134
121351998-05-09 Gerd Moellmann <gerd@gnu.org>
12136
12137 * xdisp.c (set_iterator_to_next_visible_line_start): Don't
12138 do anything if iterator is at ZV because scan_buffer doesn't
12139 work otherwise.
12140
12141 * xterm.c (x_encode_char): Inline it.
12142 (x_get_char_font_and_encoding): Simplified.
12143 (x_per_char_metric): Inline it.
12144
12145 * xterm.c (x_draw_glyph_string_relief): Use clipping.
12146
12147 * xdisp.c (get_next_display_element): Check for end of relief
12148 face moved here from next_element_from_buffer.
12149
12150 * xterm.c (x_produce_image_glyph): Add relief thickness.
12151 (x_produce_stretch_glyph): Ditto.
12152
121531998-05-08 Gerd Moellmann <gerd@gnu.org>
12154
12155 * xdisp.c (fill_iterator_from_glyph_property): Handle glyph
12156 property value (space :width WIDTH :height HEIGHT :ascent ASCENT).
12157
12158 * xterm.c (x_produce_stretch_glyph): Produce a stretch glyph
12159 from a glyph property.
12160 (x_produce_glyphs): Use it.
12161
12162 * xdisp.c (set_iterator_to_next): Handle next_element_from_stretch.
12163
427ec082 12164 * xterm.c (x_produce_image_glyph): Add to current_x only if
26901792
DL
12165 in text area.
12166 (x_produce_glyphs): Ditto.
12167
427ec082 12168 * xdisp.c (display_line): Compute row height from glyphs in
26901792
DL
12169 marginal areas.
12170
427ec082 12171 * xterm.c (x_draw_image_glyph_string_background): Draw
26901792 12172 background of an image glyph string.
427ec082 12173 (x_draw_glyph_string_bg_rect): Draw a rectangular region of
26901792
DL
12174 the background of a glyph string.
12175 (x_draw_image_glyph_string_foreground): Draw the foreground of
12176 an image glyph string.
12177 (x_inverted_image_mask): Return the inverted mask of an image.
12178
12179 * xfns.c (x_draw_image): Removed.
12180
12181 * dispextern.h (struct image_type): Remove drawing function.
12182
12183 * xfaces.c (load_face_colors): Swap colors if face is inverse.
12184
12185 * xdisp.c (get_next_display_element): In marginal areas, translate
12186 newlines, tabs, etc. like normal control characters.
12187
12188 * xfaces.c (Fface_color_supported_p): Transpose parameters frame
12189 and color.
12190 (free_realized_faces): Set frame garbaged.
12191
12192 * xfaces.c (syms_of_xfaces): Add defsubr for
12193 internal-lisp-face-attribute-values.
12194
121951998-05-07 Gerd Moellmann <gerd@gnu.org>
12196
12197 * xterm.c (x_produce_image_glyph): Don't add glyph if area is
12198 full.
12199 (x_produce_image_glyph): Set IT->nglyphs to 1.
12200 (x_draw_image_glyph_string): Use inverted mask to draw background.
12201
12202 * dispextern.h (struct image_type): Additional clipping rect
12203 parameters for drawing functions.
12204
427ec082 12205 * xterm.c (x_get_glyph_string_clip_rect): Get clip rect for
26901792
DL
12206 a glyph string.
12207 (x_draw_image_glyph_string): Use it and pass the rect to the
12208 image drawing function.
12209
12210 * xdisp.c (fill_iterator_from_glyph_property): Use position of
12211 first character with `glyph' property as image position. Set
12212 iterator back to that position as long as the image hasn't been
12213 consumed with set_iterator_to_next.
12214 (set_cursor_from_row): Accept when glyph with given position is
12215 not found in the row. Set cursor x to end of line in that case,
12216 so that we can hscroll.
12217 (redisplay_internal): Correct computation of delta by which
12218 positions have changed in redisplay optimization for cursor
12219 row of selected window.
12220
12221 * xdisp.c (display_line): Remove start_pos.
427ec082 12222 (display_line): Fix bug preventing display optimization for
26901792
DL
12223 cursor line of selected window.
12224 (next_element_from_buffer): Avoid XSETBUFFER, use it->w->buffer
12225 instead.
12226
12227 * dispnew.c (update_text_area): Use GLYPH_EQUAL_P.
12228 (update_text_area): Take glyph pixel width into account
12229 when trying to find a resync point.
12230 (row_equal_p): Compare glyphs in all areas.
12231
122321998-05-06 Gerd Moellmann <gerd@gnu.org>
12233
12234 * xterm.c (x_produce_glyphs): Don't add glyph if area is full.
12235
12236 * dispextern.h (struct glyph_row): Use unsigned hash value.
12237
12238 * xdisp.c (display_line): Simplified and made faster by setting
12239 the cursor with set_cursor_from_row.
12240 (set_cursor_from_row): Handle rows of desired matrix.
12241
122421998-05-05 Gerd Moellmann <gerd@gnu.org>
12243
12244 * xdisp.c (set_cursor_from_row): Don't put cursor on glyphs
12245 with type != CHAR_GLYPH.
12246 (fill_iterator_from_glyph_property): Return void. Set
12247 method to next_element_from_image.
12248 (next_element_from_image): Dummy function for delivering a
12249 single image id.
12250 (set_iterator_to_next): Add method next_element_from_image.
12251 (redisplay_window): When recentering, and cursor vpos is -1
12252 after display, assume middle of window is in first line displayed
12253 in window, and display again.
427ec082 12254 (fill_iterator_from_glyph_property): Assign image glyph
26901792
DL
12255 the position of the first character having the glyph property.
12256
12257 * dispextern.h (IMAGE_ASCENT): Compute ascent of image.
12258 * xfns.c (x_draw_image): Use it.
12259 * xterm.c (x_produce_image_glyph): Use it.
12260
12261 * xterm.c (x_produce_image_glyph): Set iterator's pixel_width.
12262
12263 * Makefile.in: Extraneous #define of LIBXPM removed.
12264
12265 * xterm.c (x_produce_glyphs): Produce a STRETCH_GLYPH for tabs.
427ec082 12266 (x_fill_stretch_glyph_string): Fill a glyph string from a
26901792
DL
12267 stretch glyph.
12268 (x_compute_glyph_string_overhangs): Compute overhangs only
12269 for text glyph strings.
12270 (x_draw_stretch_glyph_string): Draw a stretch glyph string.
12271 (x_draw_glyph_string): Call it.
12272
12273 * dispextern.h (glyph_type): Add STRETCH_GLYPH.
12274 (struct glyph): Add sub-structure for stretchable glyphs.
12275 (GLYPH_EQUAL_P): Compare glyph type and u.val.
12276
12277 * xdisp.c (get_overlay_arrow_glyph_row): Put face code into
12278 #ifdef HAVE_FACES.
12279
12280 * xterm.c (x_produce_glyphs): Use ASCII face for spaces of a TAB.
12281
12282 * xdisp.c (fill_iterator_from_glyph_property): Renamed from
12283 setup_iterator_from_glyph_property. Don't do it for terminal
12284 frames.
12285
12286 * xterm.c (x_produce_image_glyph): Produce glyph for image
12287 that can't be loaded.
12288
12289 * xfns.c (lookup_image): If image can't be loaded, set its
12290 width and height so that we can draw a rectangle.
12291 (x_draw_image): Draw a rectangle for images that don't have
12292 a pixmap.
12293 (make_image): Set hash value.
12294 (image_spec_equal_p): Use image_spec_value.
12295
12296 * xterm.c (expose_frame): Don't try to redraw if basic faces
12297 haven't benn realized yet.
427ec082 12298 (x_draw_image_glyph_string): Fill background only if image
26901792
DL
12299 is not as tall as row.
12300
123011998-05-04 Gerd Moellmann <gerd@gnu.org>
12302
12303 * Makefile.in (LIBXPM): If not already defined, define to -lXpm.
12304 (LIBX)[HAVE_X11]: Add LIBXPM.
12305
12306 * xfns.c (xpm_image_p): Implementation of image type functions
12307 for XPM.
12308 (xpm_load): Ditto.
12309
12310 * dispextern.h (struct image): Add mask pixmap for XPM.
12311
12312 * xfns.c (x_draw_image): Handle images with masks.
12313
12314 * configure.in: --with-xpm added. Code detecting -lXpm added.
12315
12316 * config.in: Add HAVE_XPM.
12317
12318 * xfns.c (xbm_draw): Removed.
12319 (x_draw_image): Default implementation for drawing images.
12320 (xbm_keyword_index): Remove XBM_DEPTH.
12321 (xbm_format): Remove `:depth'.
12322 (xbm_image_spec_from_file): Removed to reduce consing.
427ec082 12323 (xbm_load_image_from_file): Added for the same reason.
26901792 12324
427ec082 12325 * xterm.c (x_fill_image_glyph_string): Don't set ybase of
26901792
DL
12326 glyph string.
12327 (x_draw_image_glyph_string): Pass ybase to image draw function.
12328
12329 * xfns.c (make_image): Set default baseline.
12330
12331 * xterm.c (x_produce_image_glyph): Compute ascent of image
12332 from its height and baseline percentage.
12333
12334 * xfns.c (xbm_keyword_index): Add XBM_BASELINE.
12335 (xbm_format): Add description for `:baseline'.
12336 (xbm_image_spec_from_file): Add keywords from original spec to
12337 result.
12338 (xbm_load): Set baseline of image.
12339 (xbm_image_p): Check range for baseline.
12340
12341 * dispextern.h (struct image): Add member baseline.
12342
12343 * xdisp.c (dump_glyph_matrix): Handle image glyphs.
12344
12345 * term.c (produce_glyphs): Change assertion to allow DISP_IMAGE.
12346
12347 * xdisp.c (get_next_display_element): Do character translations
12348 only if delivering characters.
12349
123501998-05-03 Gerd Moellmann <gerd@gnu.org>
12351
427ec082 12352 * dispextern.h (ITERATOR_AT_END_OF_LINE_P): Test for
26901792
DL
12353 DISP_CHARACTER.
12354
12355 * xterm.c (x_produce_image_glyph): Poduce image glyphs.
12356 (x_produce_glyphs): Call x_produce_glyphs for DISP_IMAGE.
12357
123581998-05-02 Gerd Moellmann <gerd@gnu.org>
12359
12360 * xfns.c (prepare_image_for_display): Set image timestamp.
12361 (clear_image_cache): Clear images if image's timestamp +
12362 Vimage_eviction_seconds is > now.
12363 (syms_of_xfns): New variables image-eviction-seconds, and
12364 image-types.
12365 (add_image_format): Add to image-types.
12366 (xbm_load): Support new image spec format.
12367 (x_alloc_image_color): Allocate a color for an image.
12368
12369 * dispextern.h (struct image): Add timestamp.
12370
12371 * xfns.c (xbm_image_p): Allow bool-vectors, vectors of strings and
12372 vectors of bool-vectors.
12373 (xbm_lisp_object_from_file): Build new format image spec.
12374
123751998-05-01 Gerd Moellmann <gerd@gnu.org>
12376
12377 * xfaces.c (init_frame_faces): Initialize image cache.
12378 (free_frame_faces): Free it.
12379
12380 * xterm.c (x_delete_display): Don't free image cache.
12381
12382 * emacs.c (main): Call init_xfns.
12383
123841998-04-30 Gerd Moellmann <gerd@gnu.org>
12385
12386 * alloc.c (mark_object): Mark objects in image cache.
12387
427ec082 12388 * xfns.c (x_set_internal_border_width): Correct call to
26901792
DL
12389 widget_store_internal_border_width.
12390
12391 * widget.c (widget_store_internal_border): Return void.
12392
12393 * xfns.c (x_destroy_bitmap): Use xfree instead of free. Return
12394 void.
12395 (init_x_parm_symbols): Return void.
12396 (x_report_frame_params): Ditto.
12397 (x_set_border_pixel): Ditto.
12398 (syms_of_xfns): Ditto.
12399 (x_destroy_all_bitmaps): Use xfree instead of free.
12400
12401 * xterm.h (FRAME_X_IMAGE_CACHE): Access the image cache of a frame.
12402
12403 * xterm.c (x_term_init): Initialize image_cache of display info.
12404 (x_delete_display): Free image cache.
12405
12406 * xterm.h (struct x_display_info): Add image_cache.
12407
12408 * xfns.c (make_image_cache): Allocate a new image cache.
12409 (free_image_cache): Free an image cache.
12410 (make_image): Allocate an image.
12411 (free_image): Free an image.
12412
12413 * dispextern.h (struct image): Structure describing an image.
12414 (struct image_cache): Structure describing an image cache.
12415
124161998-04-29 Gerd Moellmann <gerd@gnu.org>
12417
12418 * xdisp.c (check_iterator_glyph_property): Return int. Value is
12419 non-zero if iterator is filled with something to return.
12420 (next_element_from_buffer): Immediately return if
12421 setup_iterator_from_glyph_prop has filled iterator with pixmap.
12422 (next_element_from_string): Likewise.
12423
12424 * xfaces.c (load_pixmap): Allow to pass null for W_PTR and H_PTR.
12425
12426 * dispextern.h (struct glyph): Add pixmap_id.
12427 (display_element_type): Add DISP_PIXMAP.
12428
12429 * xmenu.c (popup_get_selection): Use xmalloc/xfree instead of
12430 malloc/free.
12431
12432 * xfaces.c (clear_font_table): Free fonts not used by fontsets.
12433 (clear_face_cache): Call it.
12434
12435 * xterm.c (x_query_font): Don't look at empty font table slots.
12436 (x_compute_min_glyph_bounds): Likewise.
12437 (x_term_init): Initialize font_table to null.
12438 (x_load_font): Change allocation of font_info structures so
12439 that it is possible to free fonts.
12440
427ec082 12441 * xfns.c (Fx_close_connection): Use xfree instead of free.
26901792
DL
12442 Only free fonts from filled font table entries.
12443
12444 * xfaces.c (best_matching_font): Support use of scalable fonts.
12445 (Fface_scalable_fonts_mode): Toggle use of scalable fonts.
12446
12447 * xterm.h (struct x_display_info): Remove screen_dpi, add resx
12448 and resy.
12449 * xterm.c (x_term_init): Compute resx and resy.
12450
12451 * xfaces.c (split_font_name): Don't reject scalable fonts.
12452
427ec082 12453 * xterm.c (x_list_fonts): Set code exclusing scalable fonts
26901792
DL
12454 in #if 0.
12455
12456 * xfaces.c (xlfd_point_size): Return 0 for fonts whose real
12457 point size cannot be determined.
12458
12459 * xterm.h (FRAME_SMALLEST_CHAR_WIDTH): Return smallest character
12460 width over all fonts on a frame.
12461 (FRAME_SMALLEST_FONT_HEIGHT): Likewise for font height.
12462 * dispnew.c (adjust_frame_glyphs_for_window_redisplay): Use these
12463 macros.
12464
12465 * xterm.c (x_font_min_bounds): Moved here from xfaces.c.
12466 (x_compute_min_char_bounds): Formerly min_char_bounds in xfaces.c.
12467 (x_load_font): Use x_compute_min_char_bounds.
12468
12469 * xterm.h (struct x_display_info): New members smallest_char_width
12470 and smallest_font_height.
12471
124721998-04-28 Gerd Moellmann <gerd@gnu.org>
12473
12474 * dispextern.h (PREPARE_FACE_FOR_DISPLAY): Call function with
12475 the same name if GC of face is zero.
12476
12477 * dispextern.h (struct face): Member non_ascii_gc removed.
12478
12479 * xterm.c (x_get_char_font_and_encoding): Return face's font
427ec082 12480 for characters < 0177 in default face. Prepare face for
26901792
DL
12481 display before returning it.
12482 (x_produce_glyphs): Use it->charset.
12483 (x_get_char_font_and_encoding): Simplified.
12484 (x_encode_char): Remove parameter `font'.
12485
12486 * xfaces.c (choose_face_font): If registry from charset symbol
12487 doesn't contain a `-', make it a pattern by appending "*-*".
12488
12489 * xdisp.c (check_iterator_glyph_property): Adjust limit for
12490 glyph_check_pos computation to character boundary.
12491
124921998-04-27 Gerd Moellmann <gerd@gnu.org>
12493
12494 * fontset.h (FONT_INFO_FROM_ID): Return null if ID is invalid.
12495
12496 * xfaces.c (ascii_face_of_lisp_face): Get the id of the realized
12497 ASCII face for a given Lisp face id.
12498
12499 * xdisp.c (set_iterator_stop_pos): Take glyph_check_pos into
12500 account.
427ec082 12501 (reseat_iterator): Set glyph_check_pos. Handle case where
26901792
DL
12502 new position is < original position.
12503 (check_iterator_glyph_property): Handle glyph property in strings.
12504 (next_element_from_string): Call above function.
12505 (next_element_from_display_vector): Handle faces in glyphs.
12506 (get_next_display_element): Set face_id of glyphs for
12507 control chars to zero.
12508
12509 * Makefile.in (term.o): Add dependency on dispextern.h.
12510
12511 * xdisp.c (syms_of_xdisp): Add symbol `glyph'.
12512 (display_line): Handle marginal areas.
12513 (move_iterator_in_display_line_to): Likewise.
12514
12515 * xfaces.c (Finternal_make_lisp_face): Assign Lisp faces an id.
12516
12517 * xfaces.c (face_at_buffer_position): Don't merge with nil
12518 text property.
12519 (face_at_string_position): Ditto.
12520
12521 * dispextern.h (struct display_iterator): Use a stack of saved
12522 values instead of saving check positions etc. individually.
12523
12524 * xdisp.c (set_iterator_to_next): If end of Lisp string reached,
12525 maybe pop the iterator's stack.
12526 (save_iterator_settings): Push a value on iterator's stack.
12527 (get_overlay_strings_at_iterator_position): Use it.
12528 (restore_iterator_settings): Pop the stack.
12529 (set_iterator_to_next_overlay_string): Use it.
12530
12531 * xfaces.c (try_font_list): Use alternative font families.
12532
125331998-04-26 Gerd Moellmann <gerd@gnu.org>
12534
12535 * xfaces.c (Fset_face_font_sort_order): Set the order in which
12536 font selection matches fonts.
12537 (Fface_font_sort_order): Return the font sort order.
12538 (best_matching_font): Find best matching font based on sort order.
12539 (cmp_font_names): Sort by given sort order.
12540
12541 * dispextern.h (struct display_iterator): New member faces_p.
12542 * xdisp.c (init_iterator): Initialize it->faces_p.
12543 (compute_face_at_iterator_string_position): Use it.
12544 (compute_face_at_iterator_position): Use it.
12545 (init_iterator): Use it.
12546 (display_mode_line): Ditto.
12547
12548 * xdisp.c (get_next_display_element): Put code choosing a face
12549 when the charset changes in #ifdef HAVE_FACES.
12550
427ec082 12551 * dispextern.h (FACE_FOR_CHARSET): Replacement for function
26901792
DL
12552 lookup_face_for_charset.
12553
12554 * xfaces.c (free_font_names): Renamed from free_split_font_names.
12555 (free_all_realized_faces): Renamed from remove_all_realized_faces.
12556
125571998-04-25 Gerd Moellmann <gerd@gnu.org>
12558
12559 * xfaces.c (best_matching_font): Return the name of the best
12560 matching font in an array of font_name structures.
12561 (choose_face_font): Use it.
12562 (choose_face_fontset_font): Use it.
12563 (find_best_weight_font): If final font found has same weight as
12564 the font we started with, return the original font because it is a
12565 better match for the resolution of the display.
12566 (find_best_slant_font): Likewise.
12567 (merge_face_vector_with_property): Check more invalid attribute
12568 values.
12569 (lface_suitable_for_charset_p): Replaced by a macro with the same
12570 name in upper-case.
12571
125721998-04-24 Gerd Moellmann <gerd@gnu.org>
12573
12574 * dispextern.h (struct face): Member
12575 fontset_chosen_for_realization_p removed.
12576
12577 * xfaces.c (cache_face): If face->fontset >= 0, add face to the
12578 end of the collision list, so that we find more specific faces
12579 first.
12580 (lookup_face_for_charset): Look up a new face if face->fontset >=
12581 0, and charset != CHARSET_COMPOSITION.
12582
12583 * xfaces.c (split_font_name): Return zero if point size of font
12584 couldn't be computed.
12585 (realize_default_face): Use ASCII font of a fontset to determine
12586 font-related attributes of the default face.
12587 (face_fontset): Return fontset id for face family.
12588 (font_list): Additional parameter font_pattern. If non-nil,
12589 return fonts matching that pattern.
12590
125911998-04-23 Gerd Moellmann <gerd@gnu.org>
12592
12593 * xfaces.c (choose_face_fontset): If new fontset cannot be
12594 constructed, or fontset name cannot be split, return the id of the
12595 standard fontset.
12596
12597 * xterm.c (XTframe_up_to_date): Check that frame is an X frame.
12598 When Emacs starts, it may be called for the initial frame which
12599 isn't an X frame.
12600
12601 * dispextern.h (struct face): New members foreground_defaulted_p,
12602 background_defaulted_p.
12603 (struct face): Members `mask' and `cache' removed.
12604
12605 * xfaces.c (load_color): Set them.
12606 (free_face_colors): Check them.
427ec082 12607 (xlfd_point_size): Return -1 if resolution or point size of
26901792
DL
12608 font unknown.
12609
12610 * xfaces.c (free_font): Removed.
12611 (load_face_font_or_fontset): Renamed from load_font.
12612 (load_face_font_or_fontset): Use message2 instead of signalling.
12613 (load_color): Likewise.
12614 (load_pixmap): Likewise.
12615
12616 * xterm.h (struct x_display_info): Add screen_dpi.
12617 * xterm.c (x_term_init): Initialize it.
12618 * xfaces.c (xlfd_point_size): Use it.
12619 (split_font_name): Compute numeric XLFD_RESY.
427ec082 12620 (cmp_font_names): Make fonts with an y-resolution more
26901792
DL
12621 similar to that of the frame appear first in the result.
12622
12623 * xfaces.c (cache_face): If fontset_chosen_for_realization_p
12624 is set for the face to cache, add it to the end of the collision
12625 list.
12626 (try_font_list): If fonts for given family and registry cannot
12627 be found, first try to keep the registry, and choose a different
12628 family.
12629 (choose_face_font): Allow nfonts == 0.
12630 (try_font_list): Give up if no font matches given registry.
12631
126321998-04-22 Gerd Moellmann <gerd@gnu.org>
12633
12634 * xterm.c (x_get_char_font_and_encoding): Get font_info from
12635 font info id of the face.
12636
12637 * xfaces.c (load_font): Set font_info_id.
12638 (realize_face): Ditto.
12639
12640 * dispextern.h (struct face): Change member font_info to
12641 font_info_id.
12642
12643 * fontset.h (FONT_INFO_ID): Build an ID from a font_info pointer.
12644 (FONT_INFO_FROM_ID): Get a font_info pointer from an ID.
12645
12646 * xdisp.c (extend_face_to_end_of_line): If IT's current charset
12647 isn't ASCII, get the ASCII face before adding a space.
12648 (append_space): Likewise.
12649 (insert_left_trunc_glyphs): Initialize truncate_it's charset
12650 to -1 so that it will compute the right face for the truncation
12651 glyphs.
12652
12653 * xfaces.c (realize_face): Set
12654 face->fontset_chosen_for_realization_p.
12655 (lookup_face_for_charset): If fontset wasn't specified originally
12656 and new charset != CHARSET_COMPOSITION, get a new face for that
12657 charset.
12658
12659 * dispextern.h (struct face): New member
12660 fontset_chosen_for_realization_p_specified_p. Set to 1 when
12661 realize_face has chosen a fontset to display composite characters
12662 for a Lisp face not specifying a fontset.
12663
12664 * xdisp.c (extend_face_to_end_of_line): Move tests for default
12665 face and line already filled here. Don't do anything if current
12666 face hasn't a relief or has a background equal to the frame
12667 background.
12668
12669 * xfaces.c (split_font_name): Additional parameter numeric_p.
12670 Don't compute numeric values if it is non-zero.
12671 (choose_face_fontset): Call split_font_name with numeric_p == 0.
427ec082 12672 (choose_face_fontset): Print a message if fontset contains a
26901792
DL
12673 font whose name cannot be split into fields.
12674
126751998-04-21 Gerd Moellmann <gerd@gnu.org>
12676
427ec082 12677 * xfaces.c (try_font_list): Try to load a list of fonts,
26901792
DL
12678 possibly using less restrictive patterns.
12679 (choose_face_font): Use it.
12680
12681 * xterm.c (x_get_char_font_and_encoding): For charset !=
12682 CHARSET_ASCII use font_info of face if face hasn't a fontset set.
12683
12684 * dispextern.h (struct face): New member font_info.
12685
12686 * xfaces.c (load_font): Use FS_LOAD_FONT to load fonts for faces
12687 specifying a fontset as well as those not having a fontset.
12688 (free_font): Make it empty.
12689 (realize_face): Use changed load_font.
12690
12691 * xterm.c (x_get_char_font_and_encoding): If face doesn't
12692 fit for charset, get the right one.
12693
12694 * xfaces.c (load_font): Take frame and name parameter, return
12695 font.
12696 (free_font): Likewise.
12697 (split_font_name): Compute numeric values for height, swidth etc.
12698 (cmp_font_names): Use them.
12699 (find_best_width_font): Ditto.
12700 (find_best_height_font): Ditto.
12701 (find_best_weight_font): Ditto.
12702 (find_best_slant_font): Ditto.
12703 (lface_hash): Add weight, slant, swidth and relief to hash value.
12704 (lface_equal_p): Make it faster.
12705 (lface_from_symbol): Use assq_no_quit.
12706 (Fnote_default_face_changed): Removed.
12707 (cmp_font_names): Use strcmp instead of xstricmp.
12708 (face_charset_registries): Removed.
12709
127101998-04-20 Gerd Moellmann <gerd@gnu.org>
12711
12712 * frame.h (CHECK_FRAME): Give this macro a statement form.
12713 (CHECK_LIVE_FRAME): Ditto.
12714
12715 * xfaces.c (find_best_width_font): Find the best matching font
12716 for a given width.
12717 (find_best_height_font): Likewise for height.
12718 (find_best_weight_font): Likewise for weight.
12719 (find_best_slant_font): Likewise for slant.
12720 (choose_face_font): Use them.
12721 (get_lface_attributes): Always return frame-local face attrs.
427ec082 12722 (Finternal_merge_in_global_face): Merge local face with
26901792
DL
12723 global face attributes.
12724
12725 * xfaces.c (check_lface_attrs, check_lface): Check consistency of
12726 Lisp face attributes.
12727
127281998-04-19 Gerd Moellmann <gerd@gnu.org>
12729
12730 * xfaces.c (Finternal_set_lisp_face_attribute): Add :bold
12731 and :italic for compatibility.
12732 (Finternal_set_lisp_face_attribute_from_resource): Handle
427ec082 12733 :bold and :italic. Handle boolean resource values for
26901792
DL
12734 :underline and :italic.
12735
12736 * xfns.c (display_x_get_resource): Make it externally visible.
12737
12738 * xfaces.c (lface_from_symbol): Take a frame as parameter.
12739 If that frame is non-null, return the frame-local face.
12740 (Finternal_make_lisp_face): Additional frame argument.
12741 (lface_attributes): Get face attributes from global and frame-local
12742 definitions.
12743 (Finternal_lisp_face_equal_p): Additional frame argument.
12744 (merge_lisp_face_vector_with_property): Ditto.
12745 (Frealize_basic_faces): Removed.
12746 (Finternal_get_lisp_face_attribute): Additional frame argument.
12747 (Finternal_lisp_face_p): Ditto.
12748 (load_color) [MSDOS]: Removed because it isn't clear how
12749 to do this for MS-DOS.
12750
12751 * xfaces.c (lface_from_symbol): Get global face definition
12752 from face-global-alist.
12753
12754 * xfaces.c (Finternal_set_lisp_face_attribute): Allow `t'
12755 as values for :underline and :inverse-video.
12756 (Finternal_set_lisp_face_attribute): Allow nil values.
12757
127581998-04-17 Gerd Moellmann <gerd@gnu.org>
12759
12760 * xfaces.c (Finternal_make_lisp_face): Return Lisp face vector.
12761
12762 * xfaces.c (syms_of_xfaces): Add Vall_faces.
12763 (Finternal_make_lisp_face): Add new face to Vall_faces.
12764
12765 * xdisp.c (echo_area_display): Remove code recomputing faces.
12766 (redisplay_internal): Ditto.
12767 (init_iterator): Do it here.
12768
12769 * xfaces.c (choose_face_font): Check that swidth doesn't change
12770 for subusequent attributes.
12771 (xlfd_point_size): Return int.
12772
12773 * xdisp.c (redisplay_internal, echo_area-display): If realized
12774 faces have been cleared, call recompute_basic_faces.
12775
12776 * xfaces.c (recompute_basic_faces): Free realized faces. Reset
12777 face_attributes_changed_p.
427ec082 12778 (remove_all_realized_faces): Remove all realized faces on
26901792
DL
12779 all frames.
12780 (Finternal_set_lisp_face_attribute): Call remove_all_realized_faces.
12781
12782 * xdisp.c (redisplay_internal): If face attributes have been
12783 changed since the last redisplay, recompute basic faces.
12784 (echo_area_display): Ditto.
12785
12786 * xfaces.c (clear_face_gcs): Renamed from clear_realized_face_cache.
12787
12788 * xfaces.c (min_char_bounds): If face cache not yet present,
12789 don't try to get font dimensions from faces.
12790
12791 * xterm.c (x_frame_mode_line_height): If face cache not present
12792 set, return default height.
12793
12794 * alloc.c (mark_face_cache): Check for null faces. Correct
12795 index bug.
12796
12797 * dispextern.h (struct face): Renamed from struct rface. Member
12798 underline renamed underline_p. Make it a bit-field.
12799
12800 * xfaces.c (init_frame_faces): Allocate face cache.
12801 (free_frame_faces): Free face cache.
12802 (recompute_basic_faces): Realize basic faces only if face cache is
12803 allocated, i.e. after init_frame_faces has been called.
12804
12805 * frame.c (make_frame): Initialze face cache with null.
12806
12807 * xfaces.c (same_size_fonts): Removed.
12808
427ec082 12809 * xterm.c (x_set_glyph_string_gc): Add post-condition
26901792
DL
12810 s->gc != 0.
12811 (x_set_mouse_face_gc): Ditto.
12812 (x_set_mode_line_face_gc): Ditto.
12813
427ec082
SS
12814 * xfaces.c (realize_default_face): Return int. Value is
12815 zero if frame params don't contain enough information to
26901792
DL
12816 realize the default face.
12817 (realize_basic_faces): Ditto.
12818 (init_frame_faces): Realize basic faces.
12819
12820 * xfns.c (x_set_font): First store real font name in frame
12821 parameters, then call recompute_basic_faces.
12822
12823 * xfaces.c (recompute_basic_faces): Call realize_basic_faces.
12824
128251998-04-16 Gerd Moellmann <gerd@gnu.org>
12826
12827 * xfaces.c (syms_of_xfaces): Correct calls to defsubr.
12828
12829 * xfns.c (Fx_face_fixed_p): Removed.
12830 (Fx_list_fonts): Moved to xfaces.c.
12831
12832 * xfaces.c (compute_face_at_buffer_pos): Renamed to
12833 face_at_buffer_position. Parameter charset removed; always
12834 compute face for CHARSET_ASCII.
12835 (face_at_string_position): Renamed from
12836 compute_face_at_string_pos. Parameter charset removed; always
12837 compute for CHARSET_ASCII.
427ec082 12838 (lookup_face_for_charset): Take frame parameter instead of
26901792
DL
12839 face_cache.
12840 (lookup_face): Ditto.
12841 (compute_char_face): Renamed from compute_glyph_face.
12842
12843 * xdisp.c (init_iterator): Initialize charset member.
12844 (reseat_iterator_to_string): Ditto.
12845 (get_charset_at_buffer_position): Determine charset at
12846 buffer position in current_buffer.
12847 (reseat_iterator): Call above function.
12848 (compute_face_at_iterator_position): Call
12849 compute_face_at_buffer_pos.
12850 (compute_face_at_iterator_string_position): Call
12851 compute_face_at_string_pos.
12852 (get_face_from_id): Removed.
12853 (get_face_from_cursor_pos): Call compute_face_at_buffer_pos.
12854 Call get_charset_at_buffer_position.
12855 (reseat_iterator): Determine face if charset at pos differs
12856 from iterator's charset.
12857 (reseat_iterator_to_glyph_pos): Removed.
12858
12859 * xfaces.c (compute_face_at_bufpos): Remove parameter charset.
12860 Determine charset from buffer position.
12861 (compute_string_char_face): Renamed to compute_face_at_string_pos.
12862 (compute_face_at_bufpos): Renamed to compute_face_at_buffer_pos.
12863
12864 * dispextern.h (struct display_iterator): Add member charset.
12865
128661998-04-15 Gerd Moellmann <gerd@gnu.org>
12867
12868 * xfaces.c (compute_char_face): Removed.
12869
12870 * xdisp.c (get_overlay_arrow_glyph_row): Use compute_glyph_face
12871 with new parameter list.
12872
12873 * xfaces.c (region_face): Removed.
12874 (allocate_face): Removed.
12875 (copy_face): Ditto.
12876 (face_eql): Removed.
12877 (intern_face): Removed.
12878 (clear_face_cache): Removed.
12879 (load_font): Ditto.
12880 (unload_font): Ditto.
12881 (load_color): Ditto.
12882 (unload_color): Ditto.
12883 (new_computed_face): Ditto.
12884 (intern_computed_face): Ditto.
12885 (ensure_face_ready): Ditto.
12886 (merge_faces): Ditto.
12887 (compute_base_face): Ditto.
12888 (merge_face_list): Ditto.
12889 (Fmake_face_internal): Removed.
12890 (Fset_face_attribute_internal): Ditto.
12891 (face_name_id_number): Removed.
12892 (Fframe_face_alist): Ditto.
12893 (Fset_frame_face_alist): Ditto.
12894 (Finternal_next_face_id): Ditto.
12895
12896 * xterm.h (struct x_output): Remove computed_faces, and
12897 param_faces. Remove macros accessing them.
12898
12899 * xfaces.c: Entirely new face implementation added.
12900
129011998-04-11 Gerd Moellmann <gerd@gnu.org>
12902
12903 * dispextern.h (struct glyph_pos): Member `bufpos' renamed
12904 `charpos'.
12905
129061998-04-10 Gerd Moellmann <gerd@gnu.org>
12907
12908 * xterm.c (x_scroll_bar_move): Clear only regions not covered by
12909 scroll bar window to reduce flickering. Clear entire height.
12910
12911 * xdisp.c (move_iterator_vertically_backward): Set iterator's
12912 current_x and hpos to zero after moving to previous line
12913 start.
12914
129151998-04-03 Gerd Moellmann <gerd@gnu.org>
12916
12917 * frame.h (FRAME_FACE_CACHE): Access to a frame's face cache.
12918
12919 * xfaces.c (xlfd_point_size): Compute relative point size of
12920 fonts from font and frame resolution.
12921 (sort_fonts): New function to sort fonts, temporarily setting
12922 font_frame to the frame in effect.
12923 (xlfd_point_size): Take additional frame parameter to be able
12924 to get at the display's resolution.
12925
12926 * xterm.c (x_setup_relief_colors): Use WHITE_PIX_DEFAULT and
12927 BLACK_PIX_DEFAULT.
12928 (x_setup_relief_color): Use FRAME_X_SCREEN instead of default
12929 screen of display.
12930
129311998-03-31 Gerd Moellmann <gerd@gnu.org>
12932
12933 * xfaces.c (choose_face_fontset): Instantiate fontsets.
12934
12935 * fontset.h: Add external declarations for Vfontset_alias_alist
12936 and Vglobal_fontset_alist.
12937
12938 * xfaces.c (merge_lisp_face_vector_with_property): Simplified.
12939 (realize_default_face): If frame parameters contain an artificial
12940 font name naming a fontset, set the family of the default face to
12941 the fontset name given by the registry.
12942
12943 * Makefile.in (alloc.o): Add dependency to dispextern.h.
12944
129451998-03-22 Gerd Moellmann <gerd@gnu.org>
12946
12947 * alloc.c (mark_object): Add function prototype. Add cast to
12948 Lisp_Object pointer in call to mark_object for symbol names
12949 because this otherwise gives a warning from gcc 2.8.1.
12950 (mark_face_cache): Mark Lisp objects in realized faces.
12951
129521998-03-19 Gerd Moellmann <gerd@gnu.org>
12953
12954 * frame.h (struct frame): Add member face_cache.
12955
12956 * alloc.c (mark_object): Mark face cache.
12957 (mark_face_cache): Mark Lisp faces in face cache of frame.
12958
12959 * frame.c (make_frame): Initialize face_cache.
12960 (Fdelete_frame): Free it.
12961
129621998-03-18 Gerd Moellmann <gerd@gnu.org>
12963
12964 * xfaces.c: Very first skeleton of functions for face realization,
12965 face merging, face cache etc.
12966
12967 * dispextern.h (struct rface): Realized faces. Will replace
12968 struct face when tested.
12969 (struct face_cache): Realized face caches.
12970
12971 * xdisp.c (init_iterator): Initialize area member of display
12972 iterator.
12973
129741998-03-17 Gerd Moellmann <gerd@gnu.org>
12975
12976 * xterm.c (x_append_glyph): Use it->area to store glyphs.
12977
12978 * dispextern.h (struct display_iterator): New member area.
12979
12980 * xterm.c (note_overwritten_text_cursor): Note when the text
12981 cursor of a window is overwritten.
12982
12983 * xdisp.c (set_cursor_from_row): If PT is not found in the
12984 row, display the cursor at the start of the row.
12985
12986 * dispnew.c (direct_output_forward_char): Call
12987 set_cursor_from_row.
12988
12989 * xdisp.c (setup_iterator_overlay_strings_from_glyph_pos): If
12990 position is not in an overlay string, set iterator's position and
12991 method explicitly so.
427ec082 12992 (set_cursor_from_row): Correct cursor position calculation.
26901792
DL
12993 Make it externally visible.
12994 (redisplay_window): Call set_cursor_from_row so that there is only
12995 one place where the cursor position is calculated from a current
12996 row.
12997
12998 * dispextern.h (struct display_iterator): New member
12999 overlay_strings_at_end_processed_p.
13000
13001 * xdisp.c (check_iterator): Perform sanity checks on
13002 display_iterators.
13003 (next_element_from_buffer): Check for overlay strings at ZV.
13004
130051998-03-16 Gerd Moellmann <gerd@gnu.org>
13006
13007 * buffer.c (init_buffer_once): Add left_margin_width and
13008 right_margin_width to buffer_local_flags.
13009
13010 * dispnew.c (margin_glyphs_to_reserve): Function computing
13011 number of glyphs to reserve for a marginal area.
13012 (adjust_glyph_matrix): Call it.
13013 (adjust_frame_glyphs_for_frame_redisplay): Return if frame
13014 is not alive.
13015
13016 * window.c (Fset_window_margins): Allow floats.
13017
13018 * buffer.c (syms_of_buffer): Add buffer-local variables
13019 left-margin-width and right-margin-width. Add defaults
13020 default-left-margin-width and default-right-margin-width.
13021
13022 * buffer.h (struct buffer): New members left_margin_width
13023 and right_margin_width.
13024
13025 * window.c (Fset_window_margins): Make window the last and
13026 optional argument.
13027
13028 * xterm.c (x_draw_glyphs): Compute x-positions for rows with
13029 flag no_marginal_areas_p differently.
13030 (x_clear_end_of_line): Ditto.
13031 (x_draw_glyph_string_relief): Compute width of relief differently
13032 for rows with flag no_marginal_areas_p.
13033
13034 * dispnew.c (update_window_line): Update marginal areas only
13035 for rows that don't have no_marginal_areas_p set.
13036
13037 * xdisp.c (display_mode_line): Set row's flag no_marginal_areas_p.
13038 (display_menu_bar): Ditto.
13039
13040 * dispextern.h (struct glyph_row): New member no_marginal_areas_p.
13041
13042 * dispnew.c (adjust_glyph_matrix): Compute glyph pointers for
13043 marginal areas in window-based redisplay.
13044
13045 * dispextern.h (struct glyph_matrix): New members
13046 left_margin_glyphs and right_margin_glyphs.
13047
130481998-03-15 Gerd Moellmann <gerd@gnu.org>
13049
13050 * minibuf.c (read_minibuf_unwind): Return Lisp_Object.
13051
13052 * charset.c (non_ascii_char_to_string): Use char type parameters
13053 because the function is used that way from outside. Use unsigned
13054 char internally.
13055
13056 * window.c (change_window_height): Return void.
13057 (make_dummy_parent): Return void.
13058 (init_window_once): Return void.
13059 (syms_of_window): Ditto.
13060 (keys_of_window): Ditto.
13061 (delete_window): Correct return with and without value.
13062
13063 * buffer.c (record_buffer): Return void.
13064
13065 * marker.c (unchain_marker): Return void.
13066
13067 * window.c (unshow_buffer): Return void.
13068 (replace_window): Ditto.
13069 (delete_window): Ditto.
13070
13071 * term.c (delete_glyphs_hook): Void return type.
13072 (ring_bell_hook): Ditto.
13073 (set_terminal_window_hook): Ditto.
13074
13075 * sysdep.c (init_sigio): Return void.
13076
13077 * xterm.c (x_set_window_size): Return void.
13078 (x_calc_absolute_position): Ditto.
13079 (x_set_offset): Ditto.
13080 (x_focus_on_frame): Ditto.
13081 (x_unfocus_frame): Ditto.
13082 (x_make_frame_visible): Ditto.
13083 (x_make_frame_invisible): Ditto.
13084 (x_iconify_frame): Ditto.
13085 (x_destroy_window): Ditto.
13086 (x_wm_set_window_state): Ditto.
13087 (x_wm_set_icon_pixmap): Ditto.
13088 (x_wm_set_icon_position): Ditto.
13089 (x_initialize): Ditto.
13090 (x_error_quitter): Ditto.
13091 (x_destroy_window): Use xfree instead of free.
13092
13093 * keyboard.c (clear_waiting_for_input): Return void.
13094
13095 * xterm.c (x_wm_set_size_hint): Return void.
13096 (x_raise_frame): Ditto.
13097 (refreshicon): Ditto.
13098 (x_error_catcher): Ditto.
13099 (x_clear_errors): Ditto.
13100
13101 * keyboard.c (record_asynch_buffer_change): Return void.
13102
bb6677a8
GM
13103 The first line of the following paragraph was garbled for an
13104 unknown reason. It couldn't be fully reconstructed.
178c5d9c 13105
bb6677a8 13106 * xterm.c (XTread_socket, XTset_terminal_window): Ditto.
26901792
DL
13107 (x_lower_frame): Ditto.
13108 (x_scroll_bar_clear): Ditto.
13109 (XTflash): Add default case in switch for -Wall.
13110 (construct_mouse_click): Return Qnil.
13111 (cancel_mouse_face): Return void.
13112 (x_queue_event): Use xmalloc instead of malloc.
13113 (x_unqueue_events): Use xfree instead of free.
13114
13115 * ccl.c (ccl_driver): Return int.
13116
13117 * keyboard.c (stop_polling): Return void.
13118 (start_polling): Ditto.
13119
13120 * term.c (keys): Add braces in initializer list for -Wall.
13121
13122 * sysdep.c (tabs_safe_p): Return int.
13123 (init_baud_rate): Return void.
13124
13125 * xterm.c (x_draw_bitmap): Add default case.
13126 (x_setup_relief_colors): Use DefaultScreen instead of
13127 DefaultScreenOfDisplay.
13128 (x_delete_glyphs): Return void.
13129 (construct_menu_click): Put in #if 0 because it isn't called.
13130
13131 * xdisp.c (load_overlay_strings): Remove extraneous argument
13132 in call to qsort.
13133 (get_overlay_arrow_glyph_row): Add missing return value.
13134
13135 * window.c (set_window_height): Return void.
13136 (set_window_width): Ditto.
13137
13138 * sysdep.c (request_sigio): Return void.
13139 (unrequest_sigio): Ditto.
13140 (get_frame_size): Ditto.
13141
13142 * scroll.c (scroll_cost): Return int.
13143 (do_line_insertion_deletion_costs): Return void.
13144
13145 * frame.c (Fdelete_frame): Use xfree instead of free.
13146
13147 * fileio.c (report_file_error): Return void.
13148
13149 * dispnew.c: Make compilable with -Wall.
13150 * term.c: Ditto.
13151
13152 * charset.h (CHAR_LEN): Moved here from dispextern.h.
13153
131541998-03-14 Gerd Moellmann <gerd@gnu.org>
13155
13156 * xterm.c (x_scroll_bar_move): Clear under scroll bar if height is
13157 increased.
13158 (x_setup_relief_color): Free color only for appropriate visual
13159 classes.
13160
13161 * xterm.c (expose_window): Fix calculation of intersection of mode
13162 line rectangle with exposed rectangle.
13163
13164 * xdisp.c (redisplay_window): Don't do cursor movement based
13165 on current matrix if w->last_point is not valid.
13166
131671998-03-09 Gerd Moellmann <gerd@gnu.org>
13168
13169 * xterm.c (expose_line): Redraw mode line and menu lines
13170 differently because they reach into the scroll bar area.
13171
13172 * xdisp.c (redisplay_window): If redisplaying with same window
13173 start, don't accept cursor on partially visible line.
13174
131751998-03-08 Gerd Moellmann <gerd@gnu.org>
13176
13177 * xterm.c (x_set_glyph_string_clipping): Set clip rectangle
13178 for wider mode lines.
13179 (x_draw_glyph_string_relief): Use larger rectangle for mode lines.
13180
13181 * xdisp.c (init_iterator): Increase last_visible_x by vertical
13182 scroll bar width for mode lines.
13183
13184 * dispnew.c (allocate_matrices_for_window_redisplay): Include
13185 vertical scroll bar width in width calculation so that we can
13186 display mode lines wider.
13187
13188 * xdisp.c (redisplay_window): Restore buffers before returning
13189 when fonts have changed.
13190
13191 * dispnew.c (update_window): Mark invisible rows in the current
13192 matrix invalid.
13193
13194 * xdisp.c (try_window_id): Force update of first row displayed
13195 at window end.
13196 (dump_glyph_matrix): Extracted from Fdump_glyph_matrix.
13197
131981998-03-05 Gerd Moellmann <gerd@gnu.org>
13199
13200 * dispextern.h (struct glyph_row): Member max_ascent renamed
13201 ascent. Member max_descent replaced by height.
13202 (struct display_iterator): Member max_descent replaced by height.
13203 (MATRIX_ROW_PIXEL_HEIGHT): Removed.
13204
13205 * xterm.c (x_alloc_lighter_color): Don't free colors if visual
13206 class makes it unnecessary or dangerous.
13207
13208 * xdisp.c (redisplay_window): Case only point has changed, and
13209 point has moved forward. Move forward over overlay strings.
13210 (display_line): Don't set cursor if first glyph from PT is part of
13211 a continuation line.
13212
132131998-02-21 Gerd Moellmann <gerd@gnu.org>
13214
13215 * xdisp.c (start_display): When computing continuation lines
13216 width, add current_x to the continuation lines width because
13217 move_iterator_to will stop in front of the buffer position moved
13218 to.
13219
132201998-02-20 Gerd Moellmann <gerd@gnu.org>
13221
13222 * xdisp.c (redisplay_window): Don't try try_window_id if
13223 windows_or_buffers_changed.
13224
13225 * xterm.c (x_alloc_lighter_color): Try both factor and delta to
13226 determine a color.
13227 (x_setup_relief_color): Allocate/ change one relief.
13228 (x_setup_relief_colors): Call above function.
13229
13230 * xterm.h (struct relief): New structure type holding relief info:
13231 GCs, colors, and whether colors are allocated.
13232
427ec082 13233 * xterm.c (x_alloc_lighter_color): If multiplying by factor
26901792
DL
13234 produces the same color, try adding a delta to RGB values.
13235 (x_setup_relief_colors): Free color cells.
13236
427ec082 13237 * xterm.h (struct x_output): New members white_relief_pixel,
26901792
DL
13238 black_relief_pixel holding the foreground colors allocated for
13239 relief GCs. New members white_allocated_p, black_allocated_p.
13240
13241 * xterm.c (x_scroll_run): Don't set updated_window to null.
13242 This resets updated_window when called from scrolling_window.
13243
13244 * dispextern.h (scroll_run_hook): Renamed from line_dance_hook.
427ec082 13245
26901792
DL
13246 * xterm.c (x_scroll_run): Additional window parameter. Set
13247 and reset updated_window.
13248
13249 * dispnew.c (line_dance_hook): Additional window parameter.
13250
13251 * xdisp.c (try_window_reusing_current_matrix): Don't call
13252 update_window_begin/end here. The end function would display the
13253 cursor on a wrong position and the additional functionality of
13254 update_window_begin is not needed anyway. Just set
13255 updated_window.
13256 (try_window_id): Ditto.
13257
13258 * dispnew.c (Fblink_cursor): Remove call to detect_input_pending.
13259 Don't redraw cursor during redisplay.
13260
13261 * xterm.c (x_scroll_run): Renamed from do_line_dance.
13262
13263 * xdisp.c (redisplay_window): For window-based redisplay, alway
13264 try try_window_id.
13265
13266 * xterm.c (struct glyph_string): New member two_byte_p that is
13267 non-zero if 16-bit drawing functions must be used.
13268 (x_fill_composite_glyph_string): Set it.
13269 (x_fill_glyph_string): Set it.
13270 (x_draw_glyph_string_foreground): Use it.
13271 (x_draw_vertical_border): Make line 1 pixel less tall.
13272 (x_draw_row_bitmaps): Decrease width of area cleared on the left
13273 side by 1 pixel if window is not right-most hasn't vertical scroll
13274 bars.
13275 (x_draw_phys_cursor_glyph): Do nothing if phys_cursor.hpos is
13276 out of bounds.
13277 (x_draw_glyph_string_foreground): Use XDrawImageStringX if
13278 hl == DRAW_CURSOR.
13279
13280 * xdisp.c (start_display): Check that window start is at line
13281 start if GLYPH_DEBUG != 0.
13282
13283 * window.c (window_scroll_pixel_based): Move assertion to
13284 start_display.
13285
132861998-02-19 Gerd Moellmann <gerd@gnu.org>
13287
427ec082 13288 * xterm.c (x_redraw_cursor): Don't redraw the cursor if the
26901792
DL
13289 frame hasn't the focus.
13290
13291 * window.c (make_window): Initialize dy.
13292 (replace_window): Ditto.
13293
13294 * window.h (window): New member dy specifying the amount by which
13295 a window is scrolled "smoothly".
13296
13297 * xterm.c (x_set_glyph_string_clipping): Don't use glyph string's
427ec082 13298 y-position because it can be negative.
26901792
DL
13299 (x_draw_row_bitmaps): Don't clear with negative y-position like
13300 above.
13301 (x_clear_end_of_line): Same theme as above.
13302
13303 * xterm.c (x_alloc_nearest_color): Allocate a color or, if no
13304 exact match exists, the nearest existing color. Patterned after
13305 defined_color.
13306 (x_alloc_lighter_color): Allocate a color that is lighter or
13307 darker than a given color by a specified factor.
427ec082 13308 (x_setup_relief_colors): Set up relief line colors based on
26901792
DL
13309 the background color of a glyph string face.
13310 (x_draw_glyph_string_relief): Call x_setup_relief_colors.
13311
13312 * xfns.c (x_make_gc): Don't allocate relief GCs.
13313 * widget.c (create_frame_gcs): Don't allocate relief GCs.
13314 (setup_frame_gcs): Don't change relief GCs.
13315
13316 * xterm.h (struct x_output): New member relief_background giving
13317 the background pixel color for which relief GCs can be used.
13318 Set by x_setup_relief_colors.
13319
13320 * xterm.c (x_draw_glyph_string_relief): Draw relief differently
13321 for mode and menu lines.
13322
13323 * xdisp.c (set_next_iterator_stop_pos): No longer static.
13324
13325 * dispnew.c (direct_output_for_insert): Call
13326 set_next_iterator_stop_pos after having changed it2.endpos.
13327
133281998-02-17 Gerd Moellmann <gerd@gnu.org>
13329
13330 * dispnew.c (update_window): Work on selected_window, only.
13331
13332 * xterm.c (x_erase_phys_cursor): Return quickly if physical cursor
13333 hpos is >= number of glyphs in the cursor row.
13334
13335 * xdisp.c (try_window_id): Bug fix; update_window_end was not
13336 called.
13337
133381998-02-16 Gerd Moellmann <gerd@gnu.org>
13339
13340 * xdisp.c (init_iterator): Increase last_visible_x for mode lines
13341 and menu lines.
13342
13343 * dispnew.c (allocate_matrices_for_window_redisplay): Allocate
13344 enough glyphs to display a mode line or menu line which draws over
13345 flags areas.
13346
13347 * xterm.c (XTset_vertical_scroll_bar): Use
13348 WINDOW_DISPLAY_TEXT_AREA_PIXEL_HEIGHT instead of
13349 VERTICAL_SCROLL_BAR_PIXEL_HEIGHT.
427ec082 13350 (x_draw_glyphs): Draw over flags areas when drawing a mode line
26901792
DL
13351 or menu.
13352 (x_set_glyph_string_clipping): Set clipping differently if drawing
13353 a mode line or menu line.
13354
13355 * xterm.h (VERTICAL_SCROLL_BAR_PIXEL_HEIGHT): Removed.
13356
13357 * xterm.c (expose_line): Don't draw bitmaps for mode lines and
13358 menu lines.
13359 (x_scroll_bar_create): Don't clear flags areas.
13360 (x_draw_row_bitmaps): Clear visible row height, only.
13361
13362 * dispnew.c (Fblink_cursor): Moved here from xdisp.c.
13363
133641998-02-15 Gerd Moellmann <gerd@gnu.org>
13365
13366 * dispnew.c (direct_output_for_insert): When checking for tabs in
13367 the line, set it2.endpos to ZV.
427ec082 13368
26901792
DL
13369 * window.h (struct window): New member cursor_off_p.
13370 * xterm.c (x_redraw_cursor): Implementation of redraw_cursor_hook
13371 for X.
13372 * dispnew.c (redraw_cursor_hook): If non-null, function that can
13373 be called to display or erase the cursor.
13374 * xdisp.c (Fblink_cursor): Blink the cursor of a specified window
13375 or selected_window.
13376
13377 * xterm.h (text_cursor_kinds): Enumerators changed to uppercase.
13378
13379 * dispnew.c (update_window_line): Special handling of inverse
13380 lines in #if 0 removed.
13381
13382 * xterm.c (x_write_glyphs): Renamed from XTwrite_glyphs.
13383 (x_insert_glyphs): Renamed from XTinsert_glyphs.
13384 (x_clear_frame): Renamed from XTclear_frame.
13385 (x_clear_end_of_line): Renamed from XTclear_end_of_line.
13386 (x_ins_del_lines): Renamed from XTins_del_lines.
13387 (x_change_line_height): Renamed from XTchange_line_height.
13388 (x_delete_glyphs): Renamed from XTdelete_glyphs.
13389 (x_clear_cursor): Renamed from clear_cursor.
13390 (x_update_begin): Renamed from XTupdate_begin.
13391 (x_update_end): Renamed from XTupdate_end.
13392 (x_update_window_begin): Renamed from XTupdate_window_begin.
13393 (x_update_window_end): Renamed from XTupdate_window_end.
13394 (x_frame_mode_line_height): Renamed from XTframe_mode_line_height.
13395 (x_produce_glyphs): Renamed from XTproduce_glyphs.
13396 (x_produce_special_glyphs): Renamed from XTproduce_special_glyphs.
13397 (x_produce_special_glyphs): Implementation in #if 0 removed.
13398
13399 * xdisp.c (Fdump_redisplay_state): Display row's fill_line_p
13400 flag in the dump.
13401
13402 * dispnew.c (update_text_area): Handling of glyphs with pixel
13403 width zero removed. Decrement desired stop pos if desired row
13404 fills its line.
13405
13406 * xterm.c (x_fill_glyph_string): Handling of glyphs with pixel
13407 width zero removed.
13408 (BUILD_GLYPH_STRINGS): Set glyph string flag
13409 extends_to_end_of_line_p based on row's flag fill_line_p and face
13410 background and stipple. Make sure it works for composite characters.
13411
13412 * xdisp.c (extend_face_to_end_of_line): Set the glyph row flag
13413 fill_line_p. For window-based redisplay, add a space only if
13414 the row is empty so that we know the face to draw.
13415
13416 * dispextern.h (struct glyph_row): New flag fill_line_p. Non-zero
13417 means draw the face of the last glyph in the text area to the
13418 right end of the text area.
13419
13420 * xdisp.c (init_iterator): Show region in window mini-buffer
13421 window refers to.
13422
427ec082 13423 * dispextern.h (struct display_iterator): Redundant member
26901792
DL
13424 region_showing_p removed. Test for region_beg > 0 instead.
13425
13426 * dispnew.c (update_text_area): Clear to end of line if cursor is
13427 beyond the end of the desired line. Necessary because we don't
13428 have a phys_cursor_glyph with which to erase the cursor. We don't
13429 have one because this method of drawing a cursor doesn't work with
13430 lbearing/rbearing.
13431
13432 * xterm.c (XTinsert_glyphs): Block input.
13433
134341998-02-14 Gerd Moellmann <gerd@gnu.org>
13435
13436 * xterm.c (x_set_cursor_gc): Don't use cursor_gc for composite
13437 glyph strings.
13438 (x_draw_glyph_string_background): Fill background with background
13439 pixel for the first glyph of a composite character.
13440
13441 * xdisp.c (try_window): Change return type to int. Value is zero
13442 if fonts were loaded during redisplay.
13443 (redisplay_window): Return if fonts have been loaded during
13444 redisplay.
13445 (append_space): New parameter default_face_p.
13446
134471998-02-13 Gerd Moellmann <gerd@gnu.org>
13448
13449 * dispnew.c (adjust_glyph_matrix): In case of optimizing C-x 2,
13450 don't let a partially visible line in a current matrix stay
13451 enabled.
13452
134531998-02-09 Gerd Moellmann <gerd@gnu.org>
13454
13455 * minibuf.c (read_minibuf): Put access to minibuffer_prompt_length
13456 in #if PROMPT_IN_BUFFER.
13457
13458 * xdisp.c (display_line): If row ends in ZV, make the space
13459 that is added to place the cursor on it appear in default face.
13460
427ec082 13461 * xterm.c (expose_area): New function redrawing a single
26901792
DL
13462 glyph row area.
13463 (expose_line): Use it to redraw all areas of a row.
13464
13465 * dispextern.h (move_operation_enum): New enum
13466 move_operation_enum.
13467
13468 * window.c (window_scroll_pixel_based): Remove now unnecessary
13469 code that made sure that it->current_y doesn't become negative.
13470
13471 * xdisp.c (move_iterator_in_display_line_to): New parameter
13472 op. Special meaning of to_pos <= 0 and to_x < 0 removed.
13473 (move_iterator_to): Ditto.
13474
13475 * dispextern.h (struct glyph_matrix): New member window_width.
13476
13477 * dispnew.c (adjust_glyph_matrix): Set window_width. Optimize
13478 case of changing window height.
13479
13480 * xterm.c (x_draw_row_bitmaps): Don't clear vertical window
427ec082 13481 border to the left.
26901792
DL
13482
13483 * dispextern.h (struct glyph_row): Remove right_to_left_p. RMS
13484 says this aspect of Emacs is currently redesigned.
13485
13486 * xterm.c (x_clip_to_row): Subtract 1 from clip width if we
13487 have to draw a vertical border.
13488
13489 * window.c (window_scroll_pixel_based): When scrolling down by
13490 screen-fulls, make sure it.current_y doesn't get negative because
13491 this would confuse move_iterator_vertically.
13492
13493 * xdisp.c (move_iterator_vertically_backward): Bug fix for
13494 the case continuation lines are involved.
13495 (try_window_id): Don't set the cursor into scroll margins.
13496
134971998-02-08 Gerd Moellmann <gerd@gnu.org>
13498
13499 * xterm.c (x_append_glyph): Don't compute left_overhang and
13500 right_overhang.
13501 (XTproduce_glyphs): left_overhang and right_overhang removed.
13502 Set it->glyph_row->contains_overlapping_glyphs_p.
13503
13504 * xdisp.c (Fdump_redisplay_state): Output of glyph->left_overhang
13505 and right_overhang removed.
13506
13507 * dispextern.h (struct glyph_row): New member
13508 contains_overlapping_glyphs_p used to optimize glyph drawing.
13509 (struct display_iterator): left_overhang and right_overhang
13510 removed.
13511 (struct glyph): Ditto.
13512
13513 * xterm.c (x_draw_relief): Removed.
13514 (x_draw_bitmap): Renamed from draw_bitmap.
13515 (x_draw_glyphs): Completely new implementation of draw_glyphs
13516 capable of handling arbitrary lbearing and rbearing values.
13517 Several sub-functions not mentioned here.
13518
135191998-01-30 Gerd Moellmann <gerd@gnu.org>
13520
13521 * xterm.c (x_erase_phys_cursor): Clear area under the cursor only
427ec082 13522 if displaying hollow box cursor. draw_glyphs should handle
26901792
DL
13523 other cases.
13524 (draw_glyphs): Move start to the left and end to the right if they
427ec082 13525 overlap with previous or following characters.
26901792 13526 (draw_glyphs): If background is cleared for hl == DRAW_CURSOR,
427ec082 13527 make sure XDrawString uses function GXset. Otherwise the
26901792
DL
13528 character under the cursor would be invisible.
13529 (x_draw_bar_cursor): Don't draw over previous character if it
13530 has right_overhang.
13531
13532 * window.c (get_phys_cursor_glyph): Return the glyph under a
13533 window's physical cursor.
427ec082 13534
26901792
DL
13535 * xterm.c (x_draw_hollow_cursor): Use get_phys_cursor_glyph.
13536 (x_draw_bar_cursor): Ditto.
13537 (x_erase_phys_cursor): Ditto.
13538 (x_phys_cursor_in_rect_p): Ditto.
13539 (x_display_and_set_cursor): Remove reference to w->phys_cursor_glyph.
13540
13541 * window.c (make_window): Remove reference to phys_cursor_glyph.
13542 (replace_window): Ditto.
13543
13544 * window.h (struct window): Remove phys_cursor_glyph. There is
427ec082 13545 now always a glyph present for placing the cursor on it in
26901792
DL
13546 each glyph row, even at the end of a line.
13547
13548 * xdisp.c (append_space): Function to add a space to an iterators
13549 glyph row.
13550 (display_line): Add spaces at the end of lines that are used to
13551 place the cursor on them.
13552 (compute_line_metrics): If row consists of a space only that was
427ec082 13553 added to place the cursor on it, use that space's height as the
26901792
DL
13554 line height.
13555
135561998-01-29 Gerd Moellmann <gerd@gnu.org>
13557
13558 * xdisp.c (Fdump_redisplay_state): Dump left and right overhang of
13559 glyphs.
13560
135611998-01-28 Gerd Moellmann <gerd@gnu.org>
13562
13563 * xterm.c (x_append_glyph): Set overhang of glyph from iterator.
13564 (XTproduce_glyphs): Set it->left_overhang and it->right_overhang.
13565
13566 * dispextern.h (struct glyph): Add left_overhang and
427ec082 13567 right_overhang.
26901792
DL
13568 (struct display_iterator): Ditto.
13569
13570 * dispnew.c (direct_output_for_insert): Give up if newly inserted
13571 glyphs have different ascent or descent than original row.
13572
13573 * xdisp.c (compute_line_metrics): Compute row->max_ascent and
13574 row->max_descent only if unknown.
13575 (display_line): Compute row->max_ascent and row->max_descent.
13576 (display_string): Ditto.
13577
13578 * window.h (struct window): New members phys_cursor_ascent and
427ec082 13579 phys_cursor_descent.
26901792
DL
13580
13581 * xterm.c (x_phys_cursor_in_rect_p): Use them.
13582 (x_draw_hollow_cursor): Ditto.
13583 (x_erase_phys_cursor): Ditto.
13584 (x_display_and_set_cursor): Set them.
13585 (x_append_glyph): Don't set glyph members that were removed.
13586
13587 * dispextern.h (struct glyph): Members ascent, descent,
13588 contributes_to_line_height_p removed.
13589
135901998-01-25 Gerd Moellmann <gerd@gnu.org>
13591
13592 * dispextern.h (DEFAULT_FACE_ID, MODE_LINE_FACE_ID): Symbolic
13593 names for face ids of frame default face and mode line face.
13594
13595 * xdisp.c (compute_face_at_iterator_string_position): If
13596 displaying a mode line use MODE_LINE_FACE_ID instead of
13597 DEFAULT_FACE_ID.
13598
13599 * xdisp.c (reseat_iterator_to_string): Additional parameter start.
13600 (display_string): Ditto, additional parameter lisp_string.
13601 (display_line): Call display_string with Lisp mini-buffer prompt
13602 string.
13603 (display_menu_bar): Call display_string with Lisp string.
13604 (display_mode_element): Ditto.
13605 (next_element_from_string): Make it work for non-overlay Lisp
13606 strings with field width and precision.
13607
13608 * minibuf.c (minibuffer-prompt-in-buffer): Bound if
13609 PROMPT_IN_BUFFER.
13610
13611 * xfaces.c (compute_string_char_face): Fix face computation
13612 for overlay strings.
13613
13614 * xdisp.c (struct overlay_entry): Add member after_string_p.
13615 (load_overlay_strings): Simplify.
13616
13617 * window.c (delete_window): Defer glyph matrix adjustment.
13618 (Fsplit_window): Ditto.
13619 (change_window_height): Ditto.
13620 (Fset_window_configuration): Ditto.
13621 (Fset_window_margins): Ditto.
13622 * frame.c (set_menu_bar_lines): Ditto.
13623 (Fmake_terminal_frame): Ditto.
13624 * dispnew.c (change_frame_size_1): Ditto.
13625
136261998-01-24 Gerd Moellmann <gerd@gnu.org>
13627
13628 * xdisp.c (move_iterator_vertically_backward): Change algorithm.
13629
427ec082 13630 * dispnew.c (direct_output_for_insert): Give up if start
26901792
DL
13631 position has overlay strings.
13632
13633 * xdisp.c (display_line): Don't set cursor if row ends in middle
13634 of overlay string.
13635 (Fdump_redisplay_state): Print complete row start and end
13636 position.
13637 (redisplay_window): Cursor movement when matrix hasn't changed---
13638 if PT < last_point, maybe move forward if row ends at PT and
13639 in middle of char.
13640
13641 * minibuf.c (read_minibuf): Save the value of
13642 minibuffer_prompt_length in minibuf_save_list.
13643 (read_minibuf_unwind): Restore minibuffer_prompt_length.
13644
13645 * xdisp.c (redisplay_window): Add assertion for cursor movement
13646 case, PT < last_point.
13647 (move_iterator_in_display_line_to): If to_pos specified, move
13648 over before-strings.
13649
13650 * dispextern.h (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Test
13651 start.string_index > 0.
13652
13653 * xdisp.c (redisplay_internal): Adjust glyphs if fonts_changed_p
13654 is set. Retry redisplay if fonts_changed_p is set before update.
13655
13656 * xterm.c (x_load_font): Set fonts_changed_p.
13657
13658 * xfaces.c (Fset_face_attribute_internal): Set fonts_changed_p.
13659
13660 * dispnew.c (adjust_glyphs_for_font_change): Removed.
13661
13662 * xdisp.c (try_window): Check fonts_changed_p.
13663 (try_window_reusing_current_matrix): Ditto.
13664 (try_window_id): Ditto.
13665
13666 * dispnew.c (adjust_glyphs_for_font_change): Set fonts_changed_p.
13667 (fonts_changed_p): Flag indicating a font change since the last
13668 glyph matrix adjustment.
13669
13670 * xterm.c (x_per_char_metric): Use font->max_bounds as
13671 char metric of the font's default char if the default char
13672 hasn't per char metric itself.
13673
13674 * xfaces.c (Fset_face_attribute_internal): Adjust glyphs
13675 for font change.
13676 (min_char_bounds): Check face->font != NULL.
427ec082 13677 (font_min_bounds): Return minimum font metrics. Capture the
26901792
DL
13678 case of invalid min_bounds contents.
13679 (min_char_bounds): Call font_min_bounds.
13680
136811998-01-22 Gerd Moellmann <gerd@gnu.org>
13682
13683 * xdisp.c (start_display): Don't set it->prompt_width if
13684 PROMPT_IN_BUFFER.
13685 (move_iterator_in_display_line_to): Ditto.
13686 (display_line): Don't display prompt via display_string if
13687 PROMPT_IN_BUFFER.
13688
13689 * minibuf.c (Fminibuffer_prompt_width): Return value from
13690 current_buffer if PROMPT_IN_BUFFER.
427ec082 13691 (read_minibuf): If PROMPT_IN_BUFFER, insert prompt into
26901792
DL
13692 mini-buffer and make it read-only.
13693 (Fminibuffer_complete_and_exit): If PROMPT_IN_BUFFER, use
13694 minibuffer_prompt_length instead of BEGV.
13695 (Fminibuffer_complete_word): Ditto.
13696 (Fminibuffer_complete_word): Ditto.
13697
13698 * insdel.c (del_range_1): If PROMPT_IN_BUFFER, and start position
13699 is less than mini-buffer prompt width, use prompt width as start.
13700
13701 * editfns.c (make_buffer_string): If PROMPT_IN_BUFFER, and start
13702 position is less than mini-buffer prompt width, use the prompt
13703 width as start.
13704
13705 * cmds.c (Fbeginning_of_line): If PROMPT_IN_BUFFER, set point to
13706 end of prompt if applied to a mini-buffer and BEG reached.
13707
137081998-01-21 Gerd Moellmann <gerd@gnu.org>
13709
13710 * editfns.c (make_buffer_string): If PROMPT_IN_BUFFER, add prompt
13711 length to start position.
13712
13713 * buffer.c (Fget_buffer_create): Initialize
13714 minibuffer_prompt_length.
13715 (Fmake_indirect_buffer): Ditto.
13716 (Fkill_buffer): Ditto.
13717
13718 * buffer.h (struct buffer): Add member minibuffer_prompt_length
13719 if PROMPT_IN_BUFFER.
13720
137211998-01-19 Gerd Moellmann <gerd@gnu.org>
13722
13723 * xdisp.c (next_element_from_string): Make it work for arbitrary
13724 Lisp strings.
13725 (set_iterator_to_next): Advance to next overlay string only
13726 if it->string is an overlay string.
13727
13728 * dispextern.h (struct display_iterator):
13729 next_ovstr_face_check_pos renamed next_string_face_check_pos.
13730
427ec082 13731 * xfaces.c (compute_string_char_face): Compute face for
26901792
DL
13732 arbitrary Lisp string. Renamed from compute_overlay_string_char_face.
13733
13734 * xdisp.c (next_element_from_string): Renamed from
13735 next_element_from_overlay_string.
427ec082 13736 (compute_face_at_iterator_string_position): Renamed from
26901792
DL
13737 compute_face_at_iterator_overlay_string_position.
13738
13739 * dispextern.h (struct display_iterator): Member overlay_string
13740 renamed string.
13741
13742 * xdisp.c (next_element_from_c_string): Renamed from
13743 next_element_from_string.
13744
13745 * dispextern.h (struct glyph_pos): Reversed meaning of
13746 overlay_string_index and string_index.
13747
13748 * xdisp.c (next_element_from_overlay_string): Fix bug that made
13749 this function always return the first character of an overlay
13750 string.
13751
137521998-01-18 Gerd Moellmann <gerd@gnu.org>
13753
13754 * xdisp.c (reseat_iterator): Set next_invisible_check_pos only if
13755 forced or new pos > next_invisible_check_pos.
13756 (redisplay_window): Don't try same window start if PT < window
13757 start.
13758 (move_iterator_vertically): Bug fix satisfying post-condition
13759 when ZV is reached and no newline in front.
13760 (move_iterator_vertically_backward): New implementation.
13761 (move_iterator_vertically_backward): Bug fixes.
13762
13763 * xterm.c (XTmouse_position): Change call to min_char_bounds.
13764 * dispnew.c (adjust_frame_glyphs_for_window_redisplay): Ditto.
13765 (adjust_glyphs_for_font_change): Always adjust.
13766
13767 * dispnew.c (struct dim): Use int.
13768
13769 * xfaces.c (Fset_face_attribute_internal): Set face->font_name;
13770 (allocate_face): Initialize it.
13771 (load_font): Use XLoadQueryFont again instead of x_load_font.
13772 (unload_font): Use XFreeFont again.
13773 (min_char_bounds): Iterate over fonts of faces. Use frame's
13774 font sizes as default. Remove parameter except_last_font_p.
13775
13776 * dispextern.h (struct face): Add font_name.
13777
137781998-01-17 Gerd Moellmann <gerd@gnu.org>
13779
13780 * xdisp.c (move_iterator_vertically): Check post-condition. Move
13781 to start of line if ending at ZV and no newline in front.
13782 (move_iterator_to): If to_y specified, always first move to x = 0,
13783 so that move stops at line start instead of line end. This is
13784 probably what callers would expect to happen.
13785
13786 * window.c (window_scroll_pixel_based): Pixel-based scrolling that
13787 can handle different line heights.
13788 (window_scroll_line_based): Formerly window_scroll.
13789 (window_scroll): Call both.
13790
13791 * xdisp.c (start_display): Exclude code if PROMPT_IN_BUFFER.
13792 (move_iterator_in_display_line_to): Ditto.
13793 (display_line): Ditto.
13794
13795 * minibuf.c (read_minibuf): Conditionally insert prompt into
13796 buffer instead of handling prompts specially. Change other
13797 functions accordingly. All such code is in #if PROMPT_IN_BUFFER.
13798
13799 * dispnew.c (adjust_glyph_matrix): Optimize the handling of C-x 2,
13800 upper window. Optimize calls to xrealloc if same width.
13801
13802 * xdisp.c (redisplay_window): Don't use
13803 try_window_reusing_current_matrix if window scroll functions
13804 exist.
13805
13806 * dispextern.h (struct display_iterator): Member
13807 redisplay_end_trigger_p removed.
13808
13809 * dispextern.h (WINDOW_DISPLAY_PIXEL_HEIGHT_WITHOUT_MODE_LINE):
13810 Renamed to WINDOW_DISPLAY_TEXT_AREA_PIXEL_HEIGHT.
13811
138121998-01-16 Gerd Moellmann <gerd@gnu.org>
13813
13814 * xdisp.c (move_iterator_by_lines): Optimize for truncate-lines
13815 nil. Optimize truncate-lines t and moving backward.
13816 (move_iterator_to_previous_visible_line_start): Contains the heart
13817 of the previous set_iterator_to_previous_visible_line_end. Don't
13818 reseat the iterator. Used by move_iterator_by_lines.
13819 (set_iterator_to_previous_visible_line_start): Call function
13820 above.
13821 (move_iterator_in_display_line_to): Check TO_POS before doing
13822 anything else. Otherwise to_pos == PT would move to x of PT+1.
13823
13824 * indent.c (Fvertical_motion): Use display_iterator.
13825
13826 * xdisp.c (move_iterator_by_lines): New function moving by screen
13827 lines.
13828 (redisplay_window): Use it.
13829 (move_iterator_to): Correct branch of to_vpos specified.
13830 (move_iterator_vertically_backward): Increment nlines after having
13831 backed up over some lines because the last line was not backed up
13832 over.
13833 (move_iterator_via_matrix): Look for it->pos in the matrix, and
13834 calculate it->vpos and it->current_y relative to this row.
427ec082 13835 (move_iterator_via_matrix): Set in #if 0. It doesn't seem to
26901792
DL
13836 have a big effect and it is complex.
13837 (move_iterator_to): Call to move_iterator_via_matrix in #if 0.
13838
138391998-01-15 Gerd Moellmann <gerd@gnu.org>
13840
13841 * xterm.c (x_draw_relief): Simplify drawing and draw so that lines
13842 join nicely. Lines with widths > 2 don't join nicely under X.
13843 * xterm.h (struct x_output): Remove member relief_gc_line_width.
13844 * widget.c (setup_frame_gcs): Initialize relief GC's to line
13845 width 1; remove references to relief_gc_line_width.
13846 * xfns.c (x_make_gc): Ditto.
13847
13848 * xfaces.c (Fset_face_attribute_internal): Set frame garbaged
13849 if relief changes.
13850 (Fset_face_attribute_internal): Use XINT instead of XFASTINT
13851 to get a relief because they can be negative.
13852
13853 * xterm.c (x_draw_relief): Correct line drawing positions. Pixel
13854 positions are for the middle of lines under X.
13855
13856 * xdisp.c (try_window_id): Always search for the cursor by setting
13857 w->cursor.vpos = -1. Search in unchanged rows at the top and
13858 bottom if cursor not found in displayed lines.
427ec082 13859 (display_mode_line): First extend face, then set right shadow
26901792
DL
13860 flag. Otherwise the wrong glyph gets the right shadow.
13861
13862 * dispnew.c (direct_output_for_insert): Give up if line contains
13863 a tab. The number of spaces inserted for a tab changes if we
13864 insert glyphs in front of it.
13865
13866 * xterm.c (x_list_fonts): Changes undone because the Lisp
13867 implementation for make-face-smaller, make-face-larger, and
13868 make-face-fixed can do without them.
13869
13870 * xfns.c (Fx_list_fonts): Original x-list-fonts from x-list-font.c
13871 inserted.
13872
13873 * xdisp.c (try_window_id): First compute beg_unchanged, then
13874 compare with window start pos.
13875
13876 * xfns.c (Fx_face_fixed_p): Determine whether a face has a
13877 fixed-width font.
13878 (syms_of_xfns): defsubr for x-face-fixed-p.
13879
13880 * xterm.c (x_erase_phys_cursor): If row containing cursor is not
13881 enabled, don't do anything because this row will be newly drawn
13882 anyway and because we can additionally no longer determine the row
13883 height.
13884
13885 * xdisp.c (display_line): Bug fix cursor positioning.
13886
13887 * xfns.c (x-list-fonts): Copied from x-list-fonts.c; #include
13888 removed. x-list-fonts.c is now obsolete.
13889 (Qfixed, Qvariable): Moved here from xfaces.c.
13890
138911998-01-14 Gerd Moellmann <gerd@gnu.org>
13892
13893 * xdisp.c (display_line): Set row->ends_at_zv_p based on
13894 FETCH_BYTE for truncated lines.
13895 (display_line): Set cursor differently.
13896 (display_line): Fixed bug setting last_pos_on_this_line wrong
13897 for truncated lines.
13898
13899 * dispnew.c (adjust_glyph_matrix): Always adjust for frame-based
13900 redisplay.
13901
13902 * window.c (Fsplit_window): Adjust glyphs before setting buffer.
13903
13904 * dispnew.c (adjust_frame_glyphs_for_window_redisplay): Add
13905 assertion that character dimensions are not zero.
13906
13907 * xterm.c (x_load_font): adjust_glyphs_for_font_change while
13908 input is blocked.
13909
13910 * xdisp.c (decode_mode_spec): Faster implementation of line number
13911 display.
13912
13913 * xterm.c (x_draw_row_bitmaps): Clear flags area before drawing
13914 bitmaps if bitmaps don't fill the entire area.
13915 (draw_bitmap): Draw bitmaps horizontally centered in flags area.
13916
427ec082 13917 * xterm.h (FRAME_FLAGS_BITMAP_HEIGHT): Macro giving the
26901792
DL
13918 pixel height of flags bitmaps.
13919
13920 * frame.h (FRAME_FLAGS_AREA_COLS): Use FRAME_X_FLAGS_AREA_COLS.
13921 (FRAME_FLAGS_AREA_WIDTH): Ditto.
13922
13923 * xterm.h (FRAME_FLAGS_BITMAP_WIDTH): Macro giving the width
13924 in pixels of a flags area of a frame.
13925 (FRAME_X_FLAGS_AREA_WIDTH): Removed.
13926 (FRAME_X_FLAGS_AREA_COLS): Macro giving the number of columns
13927 occupied by a flags area.
13928
139291998-01-13 Gerd Moellmann <gerd@gnu.org>
13930
13931 * xdisp.c (hscroll_window_tree): Remove test for non-nil
13932 window_end_valid.
13933
13934 * dispnew.c (adjust_glyph_matrix): Check redisplay_p if
13935 GLYPH_DEBUG != 0.
13936
13937 * xdisp.c (display_line): Correct wrong calculation of row->x for
13938 the case of nglyphs == 1.
13939 (hscroll_window_tree): Renamed from hscroll_windows.
13940 (hscroll_windows): New function calling hscroll_window_tree that
13941 clears desired matrices on a frame when hscroll has been changed.
13942 (redisplay_p): Global flag set during redisplay.
13943 (redisplay_internal): Set and clear redisplay_p.
13944
13945 * xfaces.c (min_char_bounds): Add assertion that width and height
13946 are not zero at the end. Initialize *height and *width to -1,
13947 instead of using BITS_PER_SHORT. If font has min_bounds.width
13948 zero, use its max_bounds.width.
13949
13950 * x-list-font.c (Fx_list_fonts): Check INTEGERP or FLOATP for
13951 width and height.
13952
139531998-01-12 Gerd Moellmann <gerd@acm.org>
13954
13955 * dispnew.c (adjust_glyph_matrix): Do nothing if sizes haven't
13956 changed. Don't clear desired matrices.
13957
13958 * xdisp.c (hscroll_windows): Compute pt after setting
13959 current_buffer.
13960 (redisplay_window): Don't do cursor movement based on current
13961 matrix if just_this_one_p is zero.
13962
13963 * x-list-font.c (Fx_list_fonts): Additional parameter fixed.
427ec082 13964 specifying that fixed-width, variable-width fonts or both
26901792
DL
13965 should be returned.
13966
13967 * xfaces.c (Qfixed, Qvariable): Symbols for use by x-list-fonts.
13968 (syms_of_xfaces): Initialize them.
13969
13970 * xterm.c (x_list_fonts): Include auto-scaled fonts. Extend
13971 cached information.
13972
139731998-01-11 Gerd Moellmann <gerd@acm.org>
13974
13975 * xdisp.c (display_mode_line): Extend face to end of line.
13976
13977 * xdisp.c (echo_area_display): Don't call display_string with
13978 echo_area_glyphs_length == 0 which would mean infinite precision.
13979 (redisplay_internal): Adjust window_end_vpos if necessary.
13980
139811998-01-07 Gerd Moellmann <gerd@acm.org>
13982
13983 * xdisp.c (display_line): Set it->ends_at_zv_p differently.
13984
139851998-01-05 Gerd Moellmann <gerd@acm.org>
13986
13987 * xdisp.c (get_row_start_continuation_line_width): Removed.
13988 (init_iterator_to_row_start): Set it.current_x from row.
13989 (try_window_id): Set it.continuation_lines_width directly from
13990 row.
13991
13992 * xdisp.c (hscroll_windows): Use w->pointm if window is not
13993 selected_window.
13994 (hscroll_windows): Center cursor in window.
13995 (hscroll_windows): Call move_iterator_in_display_line_to.
13996
139971998-01-04 Gerd Moellmann <gerd@acm.org>
13998
13999 * xdisp.c (hscroll_windows): Check hscroll < 0.
14000 (redisplay_window): Allow quick cursor movement if overlay arrow
14001 but frame uses window-based redisplay.
14002 (display_line): Take special case for nglyphs == 1 out of #if 0.
14003 (display_line): Set row->ends_at_zv_p after the loop displaying
14004 glyphs because ZV can be in truncated text.
14005 (hscroll_windows): Use init_iterator_to_row_start.
14006
14007 * dispnew.c (scrolling_window): Calculation of overlapping
14008 runs fixed.
14009 (row_equal_p): Compare continued_p and continuation_line_p.
14010
140111998-01-02 Gerd Moellmann <gerd@acm.org>
14012
14013 * xterm.c (x_get_mode_line_face_gc): Renamed from
14014 x_get_modeline_face_gc.
14015
14016 * xdisp.c (TEXT_PROP_DISTANCE_LIMIT): Max. distance from current
14017 buffer position to look for text properties.
14018 (get_face_from_cursor_pos): Use it.
14019 (compute_face_at_iterator_position): Use it.
14020 (next_element_from_buffer): Use it.
14021
14022 * dispnew.c (scrolling_window): Decrement run's y-position
14023 when extending it backwards.
14024
14025 * xterm.c (do_line_dance): Don't ever copy more than window height.
14026
140271998-01-01 Gerd Moellmann <gerd@acm.org>
14028
14029 * xdisp.c (redisplay_window): Cursor motion in unchanged
14030 matrix---use MATRIX_ROW_.*_IN_MIDDLE_OF_CHAR_P.
14031 (init_iterator_to_next_row_start): Special handling of lines
14032 ending in middle of char removed.
14033 (hscroll_windows): Hscroll windows only if window_end_valid is not
14034 nil.
14035 (try_window_reusing_current_matrix): Call hscroll_windows.
14036 (init_iterator_to_row_start): Initialize iterator for display
14037 starting at a position given by a glyph_row->start.
14038 (redisplay_window): Don't use vmotion because it gives wrong
14039 results if lines are continued and variable width fonts are used.
14040
427ec082 14041 * dispextern.h (struct glyph_pos): New member dpvec_index.
26901792
DL
14042 (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P): Test if row ends in the
14043 the middle of a character.
427ec082 14044 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Test if row starts in
26901792
DL
14045 the middle of a character.
14046
14047 * xdisp.c (set_iterator_to_next): Increment it->dpvec_index, reset
14048 it.
14049 (next_element_from_display_vector): Use it->dpvec_index.
14050 (reseat_iterator): Reset it.
14051 (init_iterator): Reset it.
14052 (setup_iterator_dpvec_from_glyph_pos): Set up it->dpvec and
14053 it->pos.dpvec_index from a glyph_pos structure.
14054 (init_iterator_from_glyph_pos): Call the function above.
14055 (reseat_iterator_to_glyph_pos): Ditto.
14056
14057 * dispnew.c (direct_output_forward_char): Don't use this method at
14058 overlay boundaries or near invisible text.
14059 (direct_output_forward_char): Step through glyph row to find
14060 cursor position.
14061
427ec082 14062 * xterm.c (x_get_cursor_gc): Don't return cursor_gc for font ==
26901792
DL
14063 frame font if line height differs from font height.
14064
14065 * xdisp.c (set_iterator_to_next): Renamed from
14066 move_iterator_forward to avoid confusion with other move_.*
14067 functions.
14068
14069 * dispextern.h (FACE_RELIEF_P): Renamed from FACE_3D_P.
14070
140711997-12-31 Gerd Moellmann <gerd@acm.org>
14072
14073 * xterm.c (x_get_cursor_gc): Renamed from x_cursor_gc to use the
14074 same naming convention as for other GC functions.
14075 (draw_glyphs): Don't fill background when drawing a cursor and
14076 font height is less than line height.
14077
140781997-12-30 Gerd Moellmann <gerd@acm.org>
14079
14080 * xdisp.c (init_display_iterator.*): Renamed to shorter names
14081 init_iterator_.*.
14082
14083 * xdisp.c (move_iterator_forward): Restore it->len from
14084 it->dpvec_char_len if dpend reached.
14085 (get_next_display_element): Don't consume translated char
14086 prematurely.
14087 (display_line): Don't set this_.* variables if row is continued.
14088 (start_display): Move to start of continuation line if ending
14089 up at end of continued line.
14090
14091 * dispextern.h (struct display_iterator): New member dpvec_char_len.
14092
14093 * xdisp.c (move_iterator_in_display_line_to): Check TO_POS after
14094 checking TO_X and continuation lines.
14095 (get_last_unchanged_at_beg_row): If first_changed_pos is the end
14096 of a continued line, don't consider this line as unchanged because
14097 it may no longer be continued.
14098
140991997-12-29 Gerd Moellmann <gerd@acm.org>
14100
14101 * xdisp.c (try_window_id): Catch the case that moving over
14102 continuation lines moves first_unchanged_at_end_row to a row not
14103 displaying text.
14104
14105 * dispextern.h (struct glyph_row): New member
14106 continuation_lines_width. Member continuation_line_p removed.
427ec082 14107 (MATRIX_ROW_CONTINUATION_LINE_P): Non-zero if row displays a
26901792
DL
14108 continuation line.
14109 * xdisp.c (display_line): Set row->continuation_lines_width.
14110 (get_row_start_continuation_line_width): Set continuation lines
14111 width of iterator from continuation lines width of glyph row.
14112 (get_row_start_continuation_line_width): Make it inline.
14113 (set_window_cursor): Make it inline.
14114 (try_window_id): Use MATRIX_ROW_CONTINUATION_LINE_P.
14115 (Fdump_redisplay_state): Ditto.
427ec082 14116
26901792
DL
14117 * dispnew.c (update_window_line): Use MATRIX_ROW_CONTINUATION_LINE_P.
14118 * xterm.c (x_draw_row_bitmaps): Use MATRIX_ROW_CONTINUATION_LINE_P.
14119
14120 * xdisp.c (try_window_id): Set it.hpos and it.current_x to zero
14121 after determining the continuation lines width for
14122 last_unchanged_at_beg_row.
14123
14124 * xterm.c (x_draw_row_bitmaps): Let overlay arrow have precedence.
14125
14126 * xdisp.c (display_mode_line): Handle 3D faces only on frames
14127 which support faces.
14128 (init_display_iterator): Ditto.
14129 (move_iterator_via_matrix): Skip over truncation glyph at the row
14130 start on terminal frames.
14131 (hscroll_windows): Choose hscroll margin differently for window
14132 system and terminal frames.
14133
141341997-12-28 Gerd Moellmann <gerd@acm.org>
14135
14136 * xdisp.c (hscroll_windows): Change hscroll of windows.
14137 (redisplay_internal): Call it.
14138
427ec082 14139 * dispnew.c (direct_output_for_insert): Give up if a glyph
26901792
DL
14140 doesn't fit completely on the line.
14141 (direct_output_forward_char): Give up for non-ASCII chars.
14142 (direct_output_forward_char): Set redisplay_performed_directly_p.
14143
14144 * dispextern.h (struct display_iterator): Make first_visible_x
14145 and last_visible_x ints; this is for very long truncated lines.
14146
14147 * xdisp.c (move_iterator_in_display_line_to): Separate check for
14148 MOVE_X_REACHED only if it->nglyphs == 0. This fixes cursor
14149 positioning problems with the mouse.
14150 (move_iterator_in_display_line_to): Truncate lines if it->current_x
14151 >= it->last_visible_x instead of >.
14152 (display_line): Ditto.
14153
14154 * xterm.c (draw_glyphs): Draw rectangles if font could not be
14155 loaded.
14156 (XTproduce_glyphs): Calculate pixel_width for composite chars and
14157 non-ASCII chars differently. Always produce 1 glyph for composite
14158 chars. If font not found, use CHARSET_WIDTH to calculate width of
14159 non-ASCII chars.
14160 (x_get_char_font_and_encoding): Return null if font could not be
14161 loaded. Reset font to null if fontset could not be loaded.
14162 (draw_glyphs): Fill background if font not found.
14163 (draw_glyphs): Unused parameter just_foreground_p removed. New
14164 parameter composite_glyph.
14165 (draw_glyphs): Use enumeration for parameter hl.
427ec082 14166 (draw_glyphs): Pass a display area relative x-position to
26901792
DL
14167 draw_glyphs when calling it recursively for composite chars.
14168
141691997-12-27 Gerd Moellmann <gerd@acm.org>
14170
14171 * xterm.c: Patches from handa.etl.go.jp integrated.
14172 (draw_glyphs): Don't rely on x_get_char_font_and_encoding to
14173 find a font_info.
14174
14175 * xdisp.c (move_iterator_in_display_line_to): Check to_x
14176 for nglyphs == 1.
14177
14178 * xterm.c (x_draw_relief): Draw relief lines.
14179 (draw_glyphs): Call x_draw_relief.
14180
141811997-12-26 Gerd Moellmann <gerd@acm.org>
14182
14183 * xfns.c (x_make_gc): Create relief GC's.
14184
14185 * widget.c (create_frame_gcs): Create GC's for relief drawing.
14186 (setup_frame_gcs): Initialize them.
14187 (EmacsFrameDestroy): Free them.
14188
427ec082 14189 * xdisp.c (try_window_id): Get continuation lines width if
26901792
DL
14190 last_unchanged_at_beg_row is continued or a continuation line.
14191 (move_iterator_via_matrix): Don't do it for mini-buffer windows.
427ec082 14192 (redisplay_window): Case point has changed, and it has not
26901792
DL
14193 moved off the frame. Don't increment row if PT equals the row
14194 end if the row ends in ZV.
14195
14196 * xterm.c (x_draw_row_bitmaps): New function to draw bitmaps.
14197 (expose_line): Call it.
14198 (x_after_update_window_line): Call it.
14199
14200 * xdisp.c (display_line): Reset continuation_lines_width when ZV
14201 reached.
14202
14203 * xterm.c (x_after_update_window_line): Draw continuation line
14204 bitmap.
14205
14206 * dispnew.c (update_window_line): Call
14207 after_update_window_line_hook when row's continuation_line_p
14208 changes.
14209
14210 * xterm.c (draw_bitmap): Draw new bitmap CONTINUATION_LINE_BITMAP.
14211
14212 * xdisp.c (display_line): Handle continued lines on window system
14213 frames differently since continuation glyphs are not displayed.
14214 (move_iterator_in_display_line_to): Ditto.
14215 (move_iterator_in_display_line_to): Take the mini-buffer prompt
14216 into account.
14217 (move_iterator_vertically_backward): Handle dy == 0 specially.
14218 (redisplay_window): Catch the case of small windows when
14219 recentering where moving back window_height/2 moves us beyond the
14220 top of the display area of the window.
14221
142221997-12-18 Gerd Moellmann <gerd@acm.org>
14223
14224 * xdisp.c (move_iterator_vertically_backward): Unused parameter
14225 dvpos removed.
14226
142271997-12-17 Gerd Moellmann <gerd@acm.org>
14228
14229 * dispnew.c (direct_output_forward_char): Correct new cursor
14230 x-position.
14231
142321997-12-16 Gerd Moellmann <gerd@acm.org>
14233
14234 * xterm.c (x_after_update_window_line): Remove unused parameters.
14235 (XTclear_end_of_line): Clear to display_height instead of
14236 display_height - 1.
14237
14238 * dispnew.c (set_frame_matrix_frame): Make it INLINE.
427ec082 14239 (update_window_line): Call after_update_window_line_hook if
26901792
DL
14240 rows have different y-positions, or different height.
14241
142421997-12-14 Gerd Moellmann <gerd@acm.org>
14243
14244 * frame.h (FRAME_MODE_LINE_PIXEL_HEIGHT): Removed.
14245
14246 * window.c (coordinates_in_window): Call frame_mode_line_height.
14247
14248 * xterm.c (x_draw_3d_border): Removed.
14249 (x_draw_row_borders): Removed.
14250
14251 * dispnew.c (update_window): References to
14252 FRAME_MODE_LINE_BORDER_WIDTH removed.
14253
14254 * xterm.h (FRAME_MODE_LINE_BORDER_WIDTH): Removed.
14255 (FRAME_MODE_LINE_HEIGHT): Removed.
14256
14257 * xterm.c (draw_3d_borders_p): Removed.
14258 (draw_glyphs): Ditto.
14259 (XTwrite_glyphs): Ditto.
14260 (expose_line): Ditto.
14261 (x_initialize): Ditto.
14262
14263 * dispextern.h (WINDOW_DISPLAY_MODE_LINE_HEIGHT): Call
14264 frame_mode_line_height.
14265
14266 * term.c (frame_mode_line_height): Get the pixel height of a
14267 frame's mode line.
14268 (frame_mode_line_height_hook): Hook to implement system dependent
427ec082
SS
14269 versions.
14270
26901792
DL
14271 * xterm.c (x_initialize): Set the hook.
14272 (XTframe_mode_line_height): X version of frame_mode_line_height.
14273
14274 * xdisp.c (echo_area_display): Call gobble_input to flush the X
14275 output buffer.
14276 (display_string): Don't add right truncation mark if line ends in
14277 padding space.
14278 (init_display_iterator): If called with modeline_p non-zero, set
14279 face_id to 1, which is the id of the mode line face.
14280
14281 * keyboard.c (cmd_error_internal): Write to stderr if selected
14282 frame is Vterminal_frame under X. This is the case when a font
14283 cannot be loaded when Emacs starts. Replace test for
14284 FRAME_MESSAGE_BUF with test for glyphs_initialized_p.
14285
14286 * xfaces.c (compute_overlay_string_char_face): Compute the
14287 face of a character in an overlay string.
14288 * xterm.h (compute_overlay_string_char_face): Prototype.
427ec082 14289 * xdisp.c (compute_face_at_iterator_overlay_string_position):
26901792
DL
14290 Use it.
14291
14292 * xdisp.c (set_iterator_to_next_overlay_string): Formerly
14293 set_iterator_to_next_overlay.
14294 (struct overlay_entry): Structure used to sort overlay strings.
14295 (compare_overlay_entries): Compare overlay strings.
14296 (load_iterator_with_overlay_strings): Load a chunk of overlay
14297 strings.
14298 (get_overlay_strings_at_iterator_position): Call it.
14299 (next_element_from_overlay_string): Set it->object to the overlay
14300 string. Prepare for setting it->position to a string position.
14301 (get_overlay_strings_at_iterator_position): Renamed from
14302 get_overlays_at_iterator_position.
14303 (setup_iterator_overlay_strings_from_glyph_pos): Changed to load
14304 chunks of overlay strings.
14305 (load_overlay_strings): Renamed from load_iterator_overlay_strings.
14306
14307 * dispextern.h (struct display_iterator): New vector
14308 overlay_strings and new member n_overlay_strings---formerly
427ec082
SS
14309 overlays and n_overlays.
14310 (struct glyph_pos): Remove after_string_p; overlay_index
26901792
DL
14311 renamed to string_index.
14312
143131997-12-13 Gerd Moellmann <gerd@acm.org>
14314
14315 * xdisp.c (copy_iterator): Increment n_iterator_overlay_vectors
14316 when allocating a vector.
14317 (release_iterator): Removed.
14318 (restore_iterator): Removed.
14319 (copy_iterator): Removed.
14320
143211997-12-08 Gerd Moellmann <gerd@acm.org>
14322
14323 * xdisp.c (redisplay_window): Use make_empty_enabled_row for
14324 clearing a mini-buffer window that is not active.
14325 (redisplay_window): Do not scroll one line too early when last
14326 window line is completely visible.
14327 (init_display_iterator): Leave some room to display the cursor
14328 after the last glyph on a continued line.
14329
14330 * xterm.h (struct x_output): trunc_area_extra renamed
14331 flags_areas_extra.
14332 (FRAME_X_FLAGS_AREA_WIDTH): Renamed from FRAME_X_TRUNC_WIDTH.
14333
14334 * dispnew.c (update_window_line): Call
14335 after_update_window_line_hook when current row is not enabled
14336 which is the case after a frame has been cleared.
14337
14338 * xdisp.c (display_mode_line): Reset row flags for truncation
14339 on right side for the mode line.
14340
14341 * xterm.c (bitmap_type): Type of bitmap to display in flags
14342 area of frame.
14343 (x_after_update_window_line): Use the enum.
14344 (draw_bitmap): Ditto.
14345
143461997-12-07 Gerd Moellmann <gerd@acm.org>
14347
14348 * xterm.c (x_clip_to_row): Include width of both flag areas.
14349 (do_line_dance): Ditto.
14350 (expose_window_tree): Ditto.
14351 * dispnew.c (update_window_line): Call
14352 after_update_window_line_hook for right truncation and continuation.
14353 * xdisp.c (init_display_iterator): Don't subtract width of
14354 continuation glyphs for window-based redisplay.
14355 * xterm.c (draw_bitmap): Draw continuation bitmap.
14356 * widget.c (set_frame_size): Double trunc_area_extra.
14357 (EmacsFrameSetCharSize): Ditto.
14358 * xfns.c (x_figure_window_size): Ditto.
14359 * xterm.c (x_set_window_size): Ditto.
14360 (x_after_update_window_line): Draw right truncation mark.
14361
14362 * xterm.c (draw_glyphs): Bug fix buffer overrun.
14363
14364 * window.h: Include blocker around dispextern.h removed.
14365
14366 * eval.c (Feval): Check interrupt_input_block == 0.
427ec082 14367
26901792
DL
14368 * dispextern.h (struct display_iterator): Former ovstr made a
14369 Lisp_Object overlay_string. New next_ovstr_face_check_pos and
14370 next_ovstr_invisble_check_pos; check at these positions for
14371 face changes and changes in invisible text property.
14372 (struct glyph_pos): Former ovlen now overlay_string_index.
14373
14374 * xdisp.c (setup_iterator_overlays_from_glyph_pos): Set
14375 overlay_string.
14376 (set_iterator_to_next_overlay_string): Set overlay_string and
14377 pos.overlay_string_index.
14378 (get_overlays_at_iterator_position): Use overlay_string and
14379 overlay_string_index.
14380 (next_element_from_overlay_string): Use overlay_string and
14381 overlay_string_index.
14382 (move_iterator_forward): Increment overlay_string_index.
14383 (try_window_id): Use overlay_string and overlay_string_index.
14384 (move_iterator_forward): At end of dpvec, maybe use method
14385 next_element_from_overlay_string for the case a character from an
14386 overlay string was translated via a display table.
14387 (reseat_iterator_to_string): Take a Lisp string.
14388 (display_string): Pass a Lisp string to reseat_iterator_to_string.
14389 (compute_face_at_iterator_overlay_string_position): Compute face
14390 based on text properties for an overlay string.
14391 (next_element_from_overlay_string): Check invisible and face text
14392 properties.
178c5d9c 14393
26901792
DL
14394 (set_iterator_to_next_overlay_string): Restore face id before
14395 overlay strings when no more overlay strings are found to return.
14396 Initialize next_ovstr_.*check_pos for each new overlay string
178c5d9c 14397
bb6677a8
GM
14398 A line in the following paragraph was garbled for an unknown
14399 reason. It couldn't be fully reconstructed.
178c5d9c 14400
bb6677a8 14401 (compute_base_face): Made public.
26901792
DL
14402 (merge_face_list): Ditto.
14403 (intern_computed_face): Ditto.
14404
427ec082 14405 * xdisp.c (redisplay_window): Cursor movement in unchanged
26901792
DL
14406 window if PT > w->last_point. Goto try_to_scroll if bottom Y
14407 of row is > instead of >= last_y.
14408
14409 * buffer.h (overlays_at): Function prototype.
14410
14411 * xdisp.c (reseat_iterator_to_string): Clear iterator position.
14412 * dispextern.h (GET_NEXT_DISPLAY_ELEMENT): Removed.
14413
427ec082 14414 * xdisp.c (release_iterator): Release dynamically allocated
26901792
DL
14415 memory of a display_iterator.
14416 (copy_iterator): Copy an iterator.
14417 (restore_iterator): Restore an iterator from a backup copy.
14418 (global): Use the functions above.
14419 * window.c (Fpos_visible_in_window_p): Call release_iterator.
14420 * dispnew.c (direct_output_for_insert): Call release_iterator.
14421
14422 * dispextern.h (struct display_iterator): Allocate overlays
14423 vector dynamically.
14424
144251997-12-06 Gerd Moellmann <gerd@acm.org>
14426
14427 * Makefile.in (window.o): Depends on dispextern.h.
14428
14429 * buffer.c (overlays_at): Make it work when extending vectors
14430 and an initial vector of zero size.
14431
14432 * xdisp.c (set_iterator_to_previous_visible_line_end): Renamed
14433 from set_cursor_to_previous_visible_line_end.
14434 (set_iterator_to_next_visible_line_start): Renamed from
14435 set_cursor_to_next_visible_line_end.
14436 (set_next_iterator_stop_pos): Renamed from set_next_stop_pos.
14437 (compute_face_at_iterator_position): Renamed from
14438 compute_cursor_face.
14439 (set_iterator_to_next_overlay_string): Renamed from
14440 cursor_to_next_overlay_string.
14441 (get_overlays_at_iterator_position): Renamed from
14442 get_overlays_for_cursor.
14443 (reseat_iterator): Renamed from reseat_cursor.
14444 (setup_iterator_overlays_from_glyph_pos): Renamed from
14445 setup_overlays_from_pos.
14446 (init_string_iterator): Renamed from init_string_cursor.
14447 (get_next_display_element): Renamed from next_display_element.
14448 (move_iterator_forward): Renamed from advance_display_cursor.
427ec082 14449 (get_overlays_at_iterator_position): Allocate overlays vector
26901792
DL
14450 dynamically.
14451
14452 * xdisp.c: display_cursor renamed display_iterator.
14453 * dispextern.h: Ditto.
14454 * dispnew.c: Ditto.
14455
144561997-12-01 Gerd Moellmann <gerd@acm.org>
14457
14458 * window.c (mark_window_cursors_off): Function comment added.
14459 (window_topmost_p, window_rightmost_p): Removed because not used.
14460
144611997-11-30 Gerd Moellmann <gerd@acm.org>
14462
14463 * emacs.c (main): Function prototypes removed in profiling code.
14464 Use safe_bcopy as start of text.
14465
14466 * dispnew.c (update_frame_line): update_line -> update_frame_line;
14467 mirrored_make_current -> make_current.
14468
14469 * xdisp.c: (store_frame_title_char): New function to store a
14470 single character for the frame title with re-allocation of
14471 frame_title_buf.
14472 (init_xdisp): Intialize frame_title_.* variables to null.
14473
14474 * dispnew.c (quit_error_check): Removed.
14475
14476 * eval.c (Fsignal): Call to quit_error_check removed.
14477 * keyboard.c (quit_throw_to_read_char): Ditto.
14478
144791997-11-23 Gerd Moellmann <gerd@acm.org>
14480
14481 * xfaces.c (Fset_face_attribute_internal): Allow nil relief
14482 to mean a zero relief.
14483
26901792
DL
144841997-11-19 Gerd Moellmann <gerd@acm.org>
14485
14486 * dispnew.c (new_glyph_matrix): Increment glyph_matrix_count
14487 unconditionally.
14488 (glyph_matrix_count, glyph_pool_count): Define unconditionally.
14489 (free_glyph_matrix): Decrement glyph_matrix_count unconditionally.
14490 (check_glyph_memory): Define function body unconditionally.
14491
144921997-11-17 Gerd Moellmann <gerd@acm.org>
14493
14494 * dispnew.c (scrolling_window): Alternative version of this
14495 function removed.
14496
144971997-11-16 Gerd Moellmann <gerd@acm.org>
14498
14499 * dispnew.c (make_empty_enabled_row): Make an empty, enabled row
14500 of height CANON_Y_UNIT.
14501 * dispextern.h: Prototype for that function.
427ec082 14502 * xdisp.c (echo_area_display): Don't use display_string to
26901792
DL
14503 produce empty rows. Use make_empty_enabled_row instead.
14504
14505 * dispnew.c (scrolling_window): New version using diff-like
14506 algorithm activated.
427ec082 14507
26901792
DL
145081997-11-15 Gerd Moellmann <gerd@acm.org>
14509
14510 * dispnew.c (clear_current_matrices): Clear matrix of menu_bar_window
14511 (clear_desired_matrices): Ditto.
14512 (adjust_frame_glyphs_for_window_redisplay): Use FRAME_WINDOW_WIDTH
14513 for menu_bar_window.
14514
14515 * alloc.c (mark_object): Mark menu_bar_window of frames.
14516
14517 * xterm.c (XTupdate_window_end): Don't display cursor if
14518 pseudo_window_p.
14519
14520 * dispnew.c (adjust_frame_glyphs_for_window_redisplay): Don't
14521 set mini_p.
14522 (update_window): Don't set cursor if pseudo_window_p.
14523
14524 * dispextern.h (WINDOW_WANTS_MODELINE_P): Test pseudo_window_p.
14525
14526 * window.h (struct window): New flag pseudo_window_p set to
14527 1 for windows that aren't really part of the window tree, like
14528 menu_bar_window's of frames.
14529 * window.c (make_window): Initialize it.
14530 (replace_window): Ditto.
14531 * dispnew.c (adjust_frame_glyphs_for_window_redisplay): Ditto.
14532
14533 * frame.c (make_frame): Initialize menu_bar_window to nil.
14534
14535 * xterm.c (XTget_display_info): FACE_SHADOW_THICKNESS renamed
14536 FACE_RELIEF
14537
14538 * xfaces.c (copy_face): shadow_thickness -> relief.
14539 (face_eql): Ditto.
14540 (merge_faces): Ditto.
14541 (compute_base_face): Ditto.
14542 (Fset_face_attribute_internal): Ditto.
14543 * dispextern.h (struct face): Ditto.
14544
14545 * dispnew.c (update_frame): Update menu_bar_window of the frame if
14546 it is non-nil.
14547
14548 * xdisp.c (display_menu_bar): Display the menu bar in
14549 f->menu_bar_window if appropriate.
14550 (display_mode_line): Use MATRIX_MODE_LINE_ROW.
14551
14552 * dispnew.c (adjust_frame_glyphs_for_window_redisplay): Allocate
14553 dummy window and window matrices for f->menu_bar_window.
14554 (free_glyphs): Free the dummy window and its glyph matrices.
14555
14556 * frame.h (struct frame): New member menu_bar_window.
14557
145581997-11-09 Gerd Moellmann <gerd@acm.org>
14559
14560 * dispnew.c (scrolling_window): New version with diff-like
14561 algorithm.
14562
14563 * xdisp.c (try_window_reusing_current_matrix): If new_start >
14564 old_start always start displaying at start of
14565 first_row_to_display. The previous scheme failed if the last row
14566 was fully visible.
14567
14568 * dispnew.c (update_window): Remove cost calculations. Remove
14569 redundant preempt_count calculations.
14570
14571 * xterm.c (x_clip_to_row): Set clipping for non-text rows
14572 differently.
14573
14574 * dispnew.c (update_window): Use WINDOW_WANTS_MODELINE_P.
14575
427ec082 14576 * window.c (syms_of_window): Functions for marginal areas if
26901792
DL
14577 WITH_MARGINAL_AREAS is defined.
14578
427ec082 14579 * xdisp.c (try_window_reusing_current_matrix): Trace fprintf
26901792
DL
14580 removed.
14581
14582 * dispnew.c (scrolling): Call line_hash_code because hash values
14583 are not set in the frame matrix.
14584
14585 * xdisp.c (try_window_id): Fix scrolling for terminal frames.
14586 (redisplay_window): Check line_ins_del_ok before calling
14587 try_window_id.
14588 (try_window_reusing_current_matrix): Give up for terminal frames
14589 if window is not full width or we cannot insert/delete lines.
14590 (try_window_reusing_current_matrix): Fixed scrolling for terminal
14591 frames.
14592
14593 * alloc.c (mark_glyph_matrix): Bug fix - pass pointer to
14594 Lisp_Object to mark_object.
14595
14596 * xdisp.c (sync_frame_with_window_matrix_rows): Make frame and
14597 window rows have the same glyph pointers.
14598 (try_window_id): Call it.
14599
14600 * alloc.c (mark_glyph_matrix): Function to mark Lisp objects in
14601 a glyph matrix.
14602 (mark_object): Call it.
14603
14604 * xdisp.c (insert_left_trunc_glyphs): Use 0 object in glyphs for
14605 truncations.
14606 (display_line): Ditto.
14607 (display_line): Ditto for DISP_CONTINUATION.
14608 (display_line): Truncation on right: test current_x >
14609 last_visible_x.
14610 (skip_in_display_line_to): Ditto.
14611 (skip_via_matrix): Stop skipping in glyph row at face extending
14612 glyphs or at padding spaces.
14613
14614 * dispnew.c (fill_up_glyph_row_with_spaces): Comment extended.
14615
14616 * xdisp.c (display_line): Use glyph->object == 0 for padding
14617 glyphs.
14618 (redisplay_window): Don't let cursor move over padding
14619 spaces.
14620
14621 * dispextern.h (struct glyph): Fix comment for object.
14622
146231997-11-08 Gerd Moellmann <gerd@acm.org>
14624
14625 * dispextern.h (WINDOW_WANTS_MODELINE_P): Non-zero if a window
14626 has a mode line.
14627 * xdisp.c (redisplay_window): Use it.
14628 (display_mode_line): Check that window wants mode line.
14629
146301997-11-03 Gerd Moellmann <gerd@acm.org>
14631
14632 * xdisp.c (display_menu_bar): Enable menu bar rows.
14633
14634 * xterm.c (x_draw_hollow_cursor): X positions based on text area.
14635 (x_erase_phys_cursor): Ditto.
14636 (x_draw_bar_cursor): Ditto.
14637
146381997-11-02 Gerd Moellmann <gerd@acm.org>
14639
14640 * dispnew.c (update_marginal_area): Update a marginal area.
14641 (update_text_area): Update text area.
14642 (update_window_line): Call both.
14643
14644 * xterm.c (XTclear_end_of_line): Translate coordinates area
14645 dependent.
14646
14647 * dispnew.c (updated_area): Row area being updated in
14648 update_window_line.
14649 (update_window_line): Set it.
14650 (update_marginal_area): Clear to end of line if not in text area.
14651
14652 * window.c (Fset_window_margins): Increment
14653 windows_or_buffer_changed. Adjust glyphs.
14654
14655 * dispextern.h (WINDOW_TEXT_TO_FRAME_PIXEL_X): Convert text
14656 area X coordinates to frame coordinates.
427ec082 14657 (WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH): Width of left marginal area.
26901792
DL
14658 (WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH): Same for right area.
14659 (WINDOW_DISPLAY_TEXT_AREA_PIXEL_WIDTH): Same for text area.
14660
14661 * xterm.c (draw_glyphs): Use text area width as display width.
14662
14663 * xdisp.c (init_display_info): Subtract widths of marginal areas
14664 from last_visible_x.
14665
14666 * alloc.c (mark_object): Mark objects in glyphs only if they are
14667 overlays. Mark only if current_matrix != 0. Activate the code.
14668
14669 * window.c (Fset_window_margins): Set margins.
14670 (Fwindow_margins): Return margin area widths.
14671 (syms_of_window): Add defsubr's.
14672
14673 * window.h (struct window): left_margin_width, right_margin_width.
14674
14675 * xfns.c (x_set_trunc_area_width): Set truncation pixel width
14676 and cols.
14677
14678 * frame.h (FRAME_TRUNC_COLS): Number of columns occupied by
14679 truncation/overlay arrow area.
14680 (struct frame): trunc_area_pixel_width, and _cols.
14681
14682 * window.c (Fsplit_window): Use it.
14683
14684 * window.c (Fsplit_window): Set cursor vpos to -1 after
14685 splitting.
14686 (Fsplit_window): SUbtract/add FRAME_TRUNC_WIDTH for horizontally
14687 split windows.
14688
14689 * dispnew.c (set_window_cursor_after_update): Accept out
427ec082 14690 of bounds cursor positions.
26901792
DL
14691
14692 * xdisp.c (redisplay_internal): Check that after cursor motion
14693 within line, PT is on same line.
14694
14695 * dispextern.h (WINDOW_DISPLAY_PIXEL_WIDTH): Don't subtract
14696 FRAME_TRUNC_WIDTH.
14697
14698 * xterm.h (struct x_output): trunc_area_extra.
14699 (CHAR_TO_PIXEL_WIDTH): Add in trunc_area_extra.
14700 (PIXEL_TO_CHAR_WIDTH): Subtract it.
14701 * widget.c (set_frame_size): Set it.
14702 (EmacsFrameSetCharSize): Ditto.
14703 * xfns.c (x_figure_window_size): Ditto.
14704 * xterm.c (x_set_window_size): Ditto.
14705
14706 * dispnew.c (check_matrix_invariants): First try to check window
14707 ends (in #if 0).
14708
14709 * xdisp.c (try_window_reusing_current_matrix): Try window
14710 redisplay with different window start.
14711
147121997-11-01 Gerd Moellmann <gerd@acm.org>
14713
14714 * window.c (make_window): Set window_end_pos/vpos.
14715 (Fsplit_window): Zero last_cursor, window_end_valid.
14716 (Fset_window_buffer): Set window_end_vpos, zero last_cursor.
14717
14718 * dispnew.c (check_matrix_invariants): Check window_end_pos/vpos.
14719
147201997-10-31 Gerd Moellmann <gerd@acm.org>
14721
14722 * window.c (make_window): Initialize last_cursor.
14723 (replace_window): Ditto.
14724
147251997-10-29 Gerd Moellmann <gerd@acm.org>
14726
14727 * window.h: New member last_cursor.
14728 * dispnew.c (direct_output_for_insert): Set it.
14729 (direct_output_forward_char): Ditto.
14730 * xdisp.c (redisplay_internal): Ditto.
14731
147321997-10-28 Gerd Moellmann <gerd@acm.org>
14733
14734 * xdisp.c (redisplay_internal): Optimization 1 change partially
14735 reverted. Check this again later.
14736 (skip_via_matrix): Remove redundent test for
427ec082 14737 MATRIX_ROW_DISPLAYS_TEXT_P.
26901792
DL
14738
147391997-10-27 Gerd Moellmann <gerd@acm.org>
14740
14741 * dispnew.c (update_window_line): Call
14742 after_update_window_line_hook only for interesting constellations.
14743 (free_glyph_matrix): Fix memory leak.
14744
14745 * window.h: Include blocker WINDOW_H_INCLUDED, include
14746 dispextern.h.
14747 (struct window): phys_cursor_glyph as struct glyph. * window.c
14748 (make_window): Initialize it.
427ec082 14749 (replace_window): Ditto.
26901792
DL
14750 * dispnew.c (free_window_matrices): Remove freeing of
14751 phys_cursor_glyph.
14752 (check_matrix_invariants): Renamed from check_current_matrix_...
14753 * xterm.c: All references to phys_cursor_glyph changed.
14754
14755 * dispextern.h (DISPEXTERN_H_INCLUDED: New include blocker.
14756
14757 * xfaces.c: Comment update.
14758
14759 * window.h (struct window): Make phys_cursor_glyph a struct glyph
14760 pointer. Remove phys_cursor_ascent, descent, etc.
14761 * dispnew.c (free_window_matrices): Free it.
14762 * window.c (make_window): Allocate it.
14763 (replace_window): Ditto.
14764 * xterm.c (x_draw_phys_cursor_glyph): Draw it.
14765 (x_display_and_set_cursor): Fill it.
14766 (x_phys_cursor_in_rect_p): Use it.
14767 (x_draw_hollow_cursor): Ditto.
14768 (x_draw_bar_cursor): Ditto.
14769 (x_erase_phys_cursor): Ditto.
14770
14771 * xdisp.c (skip_in_display_line_to): Use SET_INFO_FROM_CURSOR.
14772
14773 * xterm.c (XTget_display_info): Handle 3D facess.
14774 (draw_glyphs): Ditto.
14775
14776 * xdisp.c (Fdump_redisplay_state): Change interactive spec to "p".
14777
14778 * xfaces.c (Fset_face_attribute_internal): New face attribute
14779 shadow-thickness.
14780 (copy_face): Handle shadow_thickness.
14781 (face_eql): Ditto.
14782 (merge_faces): Ditto.
14783 (compute_base_face): Ditto.
14784
14785 * dispextern.h (struct display_cursor): New member start_of_3d_run_p.
14786 (struct display_info): Ditto.
14787 (SET_INFO_FROM_CURSOR): Transfer it to display_info.
14788 * xdisp.c (compute_cursor_face): Set it.
14789 (advance_display_cursor): Clear it.
14790
14791 * xdisp.c (init_string_cursor): Initialize face_id to -1.
14792 (init_string_cursor): Init face_id to zero.
14793
14794 * dispextern.h (struct face): New member shadow_thickness.
14795
427ec082 14796 * xdisp.c (compute_cursor_face): Set limit for text property
26901792
DL
14797 search to 100.
14798
14799 * dispnew.c (update_window_line): Try to resynch with current line
14800 to prevent mode line flickering.
14801
148021997-10-26 Gerd Moellmann <gerd@acm.org>
14803
427ec082 14804 * dispnew.c (set_window_cursor_after_update): React again
26901792
DL
14805 on cursor_in_echo_area >= 0.
14806
14807 * xdisp.c (echo_area_display): Clear desired matrix before
14808 displaying into it.
14809 (display_menu_bar): Clear glyph row instead of hoping it is not
14810 enabled. This is safer.
14811
14812 * dispnew.c (check_current_matrix_invariants): Check only
14813 visible rows.
14814
14815 * xdisp.c (try_window_id): Handle window end setting in case of
14816 display to end of window, but only non-text lines displayed.
14817
14818 * dispnew.c (check_current_matrix_invariants): Check nrows for zero.
14819 (check_current_matrix_invariants): Check used counts.
14820
14821 * Revisiob v114.
14822
14823 * dispnew.c (scrolling): Use hash codes from rows.
14824
14825 * xdisp.c (Fdump_redisplay_state): Dump current matrix.
14826
14827 * dispnew.c (scrolling_window): Invalidate conflicting runs.
14828
148291997-10-25 Gerd Moellmann <gerd@acm.org>
14830
14831 * dispextern.h (struct glyph_matrix): Flag no_scrolling_p.
14832 * dispnew.c (update_window): Use it.
14833 (clear_glyph_matrix): Clear it.
14834 * xdisp.c (try_window_id): Set it.
14835
14836 * dispextern.h (struct glyph_row): New flag ends_at_zv_p.
14837
14838 * xdisp.c (redisplay_internal): Increment glyph positions differently.
14839
14840 * dispextern.h: More comments etc.
14841
148421997-10-24 Gerd Moellmann <gerd@acm.org>
14843
14844 * dispnew.c (set_window_cursor_after_update): Set cursor
14845 for cursor_in_echo_area == 0 to (0, 0).
14846
14847 * dispextern.h (struct glyph_row): New flags continuation_line_p
14848 and displays_text_p.
14849 (MATRIX_ROW_DISPLAYS_TEXT_P): Use displays_text_p.
14850 * xdisp.c (display_line): Set them.
14851 (try_window_id): Move to start of continuation line to find out
14852 continuation_line_width.
14853 (first_unchanged_current_row): Don't retract row if continued,
14854 truncated etc.
14855
14856 * xterm.c: Map X coordinates.
14857
148581997-10-23 Gerd Moellmann <gerd@acm.org>
14859
14860 * dispnew.c (buffer_posn_from_coords): Translate X for right to
14861 left text.
14862
14863 * xdisp.c (display_line): Set right_to_left_p after clearing the row.
14864
14865 * xterm.c (XTclear_end_of_line): Respect right_to_left_p.
14866
f28eba7b 14867 * xdisp.c (try_window_id): Clear desired matrix if not successul.
26901792
DL
14868
14869 * xdisp.c (try_window_id): Call update_window_begin_hook/end_hook.
14870
14871 * dispnew.c (update_window_begin_hook, update_winodw_end_hook):
14872 Set this to functions to be called before/after window updates.
14873 (direct_output_for_insert): Call them.
14874 (update_window): Ditto.
14875 (update_frame): Call update_begin/ update_end for windows.
14876
14877 * xterm.c (XTupdate_window_begin): Called before window updates.
14878 (XTupdate_end): Called after window updates.
14879 (x_initialize): Set hooks to above.
14880
14881 * xdisp.c (init_display_info): Initialize c and len of
14882 display_info.
14883
14884 * xterm.c (x_get_char_font_and_encoding): Bug fix. Don't load
14885 fonts more than once.
14886
148871997-10-22 Gerd Moellmann <gerd@acm.org>
14888
14889 * xdisp.c (display_line): Handle most common case of current_x <
14890 last_visible_x separately.
14891
14892 * dispextern.h (display_element_type): DISP_ELLIPSIS removed.
14893
14894 * dispnew.c (update_window_line): Compare pixel widths of glyphs
14895 so that face extending space doesn't compare equal to normal space
14896 with same face.
14897
14898 * xdisp.c (display_line): Make sure we have a position for
14899 a line end in an otherwise blank line if face is extended.
14900
14901 * dispnew.c (direct_output_for_insert): Increment row end position.
14902
427ec082 14903 * window.c (Fpos_visible_in_window_p): Use old meaning of
26901792
DL
14904 window_end_pos.
14905
14906 * xdisp.c (init_display_cursor_from_glyph_pos): New.
14907
14908 * dispextern.h (MATRIX_ROW_FIRST_POS): Use row start.
14909
14910 * dispnew.c (increment_glyph_row_buffer_positions): Adjust
14911 start and end positions in rows.
14912 (increment_glyph_row_buffer_positions): Stop adjusting at
14913 glyphs with positions <= 0.
14914
14915 * dispextern.h (struct glyph_pos): Structure desribing a text
427ec082 14916 position including position in overlay.
26901792
DL
14917 (struct glyph_row): Use it for start and end positions.
14918 (struct display_cursor): Use it.
14919 * xdisp.c: Use it.
14920 (display_line): Set row start and end positions.
14921
14922 * dispnew.c (copy_row_except_pointers): Use bcopy and struct
14923 assignment.
14924
149251997-10-21 Gerd Moellmann <gerd@acm.org>
14926
14927 * dispnew.c (update_window): Add scrolling_window again. It's
14928 necessary for scroll_step != 0.
14929
14930 * xdisp.c (redisplay_window): Use vmotion for scroll_step
14931 scrolling.
14932
14933 * xdisp.c (last_unchanged_current_row): Use window_end_vpos.
14934
14935 * xterm.c (XTupdate_end): Flush only for messages.
14936
14937 * xdisp.c (try_window_id): Assert last_unchanged_row >=
14938 first_unchanged_row.
14939
14940 * xterm.c (XTupdate_end): Flush if miniwindow.
14941
14942 * dispnew.c (matrix_row_last_pos): New function.
14943 * dispextern.h (MATRIX_ROW_LAST_POS): Call it.
427ec082 14944 Large comment moved to xdisp.c.
26901792
DL
14945
14946 * xdisp.c (redisplay_window): Bug fix: PT set to value > Z.
14947 (skip_via_matrix): Check window_end_valid instead of
14948 display_completed.
14949
14950 * dispnew.c (scroll_glyph_matrix_range): Bug fix.
14951 (update_window): scrolling_window commented out. It has negative
14952 effect most of the time.
14953
14954 * xdisp.c (try_window_id): Correct parameters to
14955 scroll_glyph_matrix_range.
14956
427ec082 14957 * xterm.c (XTupdate_end): XFlush commented out.
26901792
DL
14958
14959 * window.h: Comments for window_end_pos/vpos.
14960
f28eba7b 14961 * xdisp.c (skip_to): Assert current_buffer is the buffer
26901792
DL
14962 of the window in which we are skipping.
14963
14964 * dispnew.c (update_window_line): Optimized clear_end_of_line.
14965
14966 * xterm.c (draw_glyphs): Bug fix. Return window relative X
14967 reached.
14968
149691997-10-20 Gerd Moellmann <gerd@acm.org>
14970
14971 * dispextern.h (MATRIX_ROW_LAST_POS): Go back one glyph if this is
14972 a face extending glyph.
14973
427ec082 14974 * xdisp.c (try_window_id): Check if point will appear.
26901792
DL
14975 (set_cursor_from_row): Set cursor position from a glyph row.
14976
14977 * dispnew.c (update_window_line): Write entire line if hash
14978 codes of lines differ.
14979
14980 * dispextern.h (MATRIX_ROW_EXTENDS_FACE_P): Value is non-zero
14981 if glyph row has an infinite width glyph at its end.
14982
14983 * xdisp.c (last_unchanged_current_row): Respect partially visible
14984 lines when looking for the last row displaying text.
14985 (try_window_id): Handle partially visible lines better.
14986
149871997-10-19 Gerd Moellmann <gerd@acm.org>
14988
14989 * dispnew.c (update_window): Remove unused variable.
14990 (update_window_line): Simplified.
14991
14992 * xterm.c (x_get_char_font_and_encoding): Handle most common
14993 case at the beginning.
14994
14995 * xdisp.c (advance_display_cursor): Dispatch on method and
14996 order if statements by expected call frequency. Fixed unclosed
14997 comment.
14998
14999 * xdisp.c (try_window_id): New implementation.
15000
15001 * dispnew.c (increment_glyph_row_buffer_positions): Capture
15002 rows displaying a line end, only.
15003
150041997-10-18 Gerd Moellmann <gerd@acm.org>
15005
15006 * window.c (Fpos_visible_in_window_p): Remove use of window_end_vpos.
15007
150081997-10-14 Gerd Moellmann <gerd@acm.org>
15009
15010 * xdisp.c (display_line): Mark empty lines not corresponding to
15011 text with position -1.
15012
15013 * xterm.c (x_erase_phys_cursor): Don't bother to erase cursor if
15014 not within window matrix bounds.
15015
15016 * dispextern.h (struct display_cursor): New member REGION_SHOWING_P.
15017 (struct display_info): NGLYPHS_TO_IGNORE removed.
15018 * xdisp.c: References to NGLYPHS_TO_IGNORE removed.
15019 * term.c: Ditto.
15020 * xterm.c: Ditto.
15021
15022 * xdisp.c (init_display_cursor): Set it.
15023 (display_line): Use it to set W->REGION_SHOWING.
15024
15025 * xdisp.c (skip_via_matrix): Check for overlay arrow.
15026
15027 * region-cache.h: functino prototypes with PROTO.
15028
15029 * dispnew.c (buffer_posn_from_coords): Use -1 as skip position.
15030
15031 * xdisp.c (skip_via_matrix): Check for rows that don't contain
15032 a position.
15033
427ec082 15034 * xterm.c (XTmouse_position): Calculate LAST_MOUSE_GLYPH
26901792
DL
15035 rectangle based on minimum character bounds.
15036
f28eba7b 15037 * keyboard.c (make_lispy_event): Mouse clicks; don't do frame
26901792
DL
15038 glyph position calculations.
15039 (make_lispy_movement): Use buffer_posn_from_coords and window
15040 relative coordinates.
15041
15042 * xterm.c (construct_mouse_click): Remove #if 0 case.
15043
15044 * dispextern.h (MATRIX_ROW_BOTTOM_Y): Return bottom pixel y of
15045 given row.
15046
427ec082
SS
15047 * xdisp.c (skip_via_matrix): Skip using current matrix if up to
15048 date.
26901792
DL
15049 (skip_to): Use it.
15050 (redisplay_window): Remove code skipping using current matrix.
15051
150521997-10-13 Gerd Moellmann <gerd@acm.org>
15053
15054 * xdisp.c (redisplay_window): Use available current matrix to
15055 skip faster when only point is moved withing the window.
15056
427ec082 15057 * intervals.c: Include stdio.h.
26901792
DL
15058 (find_interval): Trace to stderr to catch some nasty error
15059 that did not yet occur again with tracing.
15060 (set_point): Ditto.
15061
15062 * dispnew.c (shift_glyph_matrix): Experimental code for handling
15063 cursor positioning on partially visible lines.
15064 (set_window_cursor_after_update): Ditto.
15065
f28eba7b 15066 * dispextern.h (MATRIX_ROW_PARTIALLY_VISIBLE_P): Bug fix.
26901792
DL
15067
15068 * window.h (struct window): start_y removed.
15069
15070 * window.c (make_window): start_y removed.
15071 (replace_window): Ditto.
15072
427ec082 15073 * xdisp.c (last_max_ascent, last_max_descent): Ascent and
26901792
DL
15074 descent values of the last line processed by skip_to.
15075 (redisplay_window): Use them.
15076 (skip_to): Set them.
15077
15078 * dispextern.h (struct display_cursor): New member METHOD.
15079
15080 * xdisp.c: Use function member METHOD.
15081
15082 * xdisp.c (set_next_stop_pos): Determine next position at which to
15083 check for face properties, invisible text properties, and overlays.
15084 (compute_cursor_face): Use it.
15085 (get_overlays_for_cursor): Ditto.
15086 (reseat_cursor): Ditto.
15087 (next_display_element): Ditto.
15088
15089Sun Aug 24 08:50:52 1997 Gerd Moellmann <gerd@acm.org>
15090
15091 * termhooks.h: Some hooks with prototypes.
15092
15093 * term.c: Some hooks with function prototypes.
427ec082 15094
26901792
DL
15095 * xdisp.c (reseat_cursor): Additional argument force_p. Avoid
15096 computing face if possible.
15097
15098 * xdisp.c (next_display_element): Use face from glyph from display
15099 table only if != 0.
15100
15101 * emacs.c: FreeBSD headers for profiling removed.
15102
427ec082
SS
15103 * dispnew.c (direct_output_for_insert): Don't use PT-1 for
15104 display cursor, use DEC_POS instread.
26901792
DL
15105
15106 * xfaces.c (load_font): Use x_load_font to load fonts so that
427ec082 15107 all fonts are in the font table.
26901792
DL
15108 (unload_font): Don't XFreeFont.
15109
15110 * dispnew.c (row_equal_p): Compare ascent, descent and visible
15111 row height.
15112
15113 * xterm.c (draw_glyphs): Use 8-bit functions if possible.
15114 (x_erase_phys_cursor): Clear only visible part of row.
15115 (x_draw_bar_cursor): Set clipping.
15116 (x_draw_hollow_cursor): Ditto.
15117 (x_display_and_set_cursor): Remove clipping.
15118 (expose_window_tree): Take trunc border into account.
15119 (x_phys_cursor_in_rect_p): Test if phys_cursor intersects a rect.
15120 (expose_window): Use it.
15121
15122 * xdisp.c (display_string): Catch case that we are called with
d7d0dac0 15123 current_x already beyond max_x.
26901792
DL
15124 (global): Fix usage of FRAME_WINDOW_P <-> FRAME_WINDOW_REDISPLAY_P.
15125 (init_display_info): Subtract vertical border glyph from
d7d0dac0 15126 last_visible_x.
26901792
DL
15127
15128 * scroll.c (scrolling_window_1): Removed.
15129
15130 * dispnew.c (adjust_frame_glyphs): Split into two functions,
15131 based on redisplay method used.
15132 (adjust_frame_glyphs_for_frame_redisplay): Part for frame
15133 based redisplay.
15134 (adjust_frame_glyphs_for_window_redisplay): Part for purely
15135 window based redisplay.
15136
15137 * frame.h (FRAME_WINDOW_REDISPLAY_P): Changed to not depend
15138 on data structures.
15139
15140 * dispnew.c (adjust_glyph_matrix): Additional parameter W.
15141 Handle own storage for purely window based redisplay.
15142 (allocate_matrices_for_frame_redisplay): Formerly part of
427ec082 15143 allocate_matrices.
26901792
DL
15144 (allocate_matrices_for_window_redisplay): Ditto.
15145
15146 * dispextern.h (struct glyph_matrix): window_top_y,
15147 window_height.
15148
15149 * dispnew.c (allocate_matrices_for_window_redisplay): Detect
15150 and optimize some common cases of window changes.
15151
15152 * emacs.c (main): Remove own profiling code because 0.95 now
15153 has it in.
15154
15155Fri Aug 22 18:46:43 1997 Gerd Moellmann <gerd@acm.org>
15156
d7d0dac0 15157 * xterm.c (XTupdate_end): Draw horizontal border at right position.
26901792
DL
15158 (expose_window): Draw vertical border.
15159 (XTclear_end_of_line): Accept width <= 0 and height <= 0 but
15160 don't do anything.
15161
15162 * xdisp.c (redisplay_internal): Set update_mode_line if paused
15163 for non full width windows only if not window redisplay.
15164
15165 * dispnew.c (update_window_tree): Or paused_p return of called
15166 functions.
15167
15168 * xterm.c (x_display_and_set_cursor): Return if hpos/vpos outside
15169 of window.
15170
15171 * window.c (Fset_window_configuration): adjust_glyphs being
15172 called twice.
15173 (Fset_window_configuration): Set frame garbaged if not all
15174 leaf windows reused.
15175
151761997-08-21 Gerd Moellmann <gerd@acm.org>
15177
15178 * dispnew.c (clear_glyph_matrix): Additional argument specifiying
15179 that rows should really be cleared. Used for current matrices.
15180
d7d0dac0
SM
15181 * dispnew.c (scrolling_window): Bug fix.
15182 (line_dance_hook): Formerly line_dance_fn, take only one parameter.
26901792
DL
15183
15184 * dispextern.h (struct run): Remove current_vpos.
15185
15186 * xterm.c (do_line_dance): Only one parameter.
15187
f28eba7b 15188 * xdisp.c (display_line): Set continued_p.
26901792
DL
15189
15190 * dispextern.h (struct glyph_row): New flag continued_p.
15191 Fix truncated_on_left_p and truncated_on_right_p to be bits.
427ec082 15192 (struct glyph_row):
26901792
DL
15193
15194Thu Aug 21 14:37:34 1997 Gerd Moellmann <gerd@acm.org>
15195
15196 * xdisp.c (skip_vertically_backward): Avoid negative vpos values
15197 when calling skip_to for continued lines.
15198
15199 * dispnew.c (change_frame_size_1): Set frame garbaged.
15200
15201 * xterm.c (expose_window): Check enabled_p of rows.
15202
15203 * xdisp.c (redisplay_internal): Compare line heights before and
15204 now for redisplay optimization 2 (hit).
15205 (display_line): Set this_line_pixel_height.
15206
15207 * xterm.c (x_draw_row_borders): Use FRAME_MODE_LINE_HEIGHT height
15208 value.
15209 (x_clip_to_row): Use MATRIX_ROW_VISIBLE_HEIGHT. Simplified.
15210 (do_line_dance): Simplified and pixel corrected.
15211
15212 * dispnew.c (scrolling_window): Simplified.
15213
15214 * xterm.c (x_draw_3d_border): Inset rectangle by line width.
15215
15216 * dispnew.c (update_window): Add FRAME_MODE_LINE_BORDER_WIDTH
15217 to mode line row->x.
15218
15219Wed Aug 20 11:23:28 1997 Gerd Moellmann <gerd@acm.org>
15220
15221 * xterm.c (x_get_char_font_and_encoding): Don't let fontset
15222 override font of face.
15223 (draw_glyphs): Correct return value.
15224 (XTclear_end_of_line): Compare differently with output cursor
15225 position.
15226 (x_draw_hollow_cursor): 2 parameters, window and row.
15227
15228 * dispnew.c (update_window_line): If rows have different height
15229 or y, write entire line.
15230
f28eba7b 15231 * xdisp.c (compute_line_metrics): Reset max_ascent and max_descent
26901792
DL
15232 of info struct.
15233
427ec082 15234 * xfaces.c (Fset_face_attribute_internal): Don't call
26901792
DL
15235 frame_update_line_height.
15236 (merge_faces): Don't use default font if new font has different
15237 size.
15238
15239Tue Aug 19 14:38:05 1997 Gerd Moellmann <gerd@acm.org>
15240
15241 * xterm.c (x_display_and_set_cursor): Use FONT_WIDTH if width
d7d0dac0 15242 unknown. Some fonts have min_width zero.
26901792 15243 (draw_glyphs): Don't draw underlines to the end of the display
d7d0dac0 15244 line if face is merely extended to that point.
26901792 15245 (draw_glyphs): Don't assume background is filled if
d7d0dac0 15246 just_foreground_p but extending to end of line.
26901792
DL
15247
15248 * xterm.c (XTclear_end_of_line): Clip only to display_height - 1
15249 for partially visible last lines.
15250 (x_clip_to_row): Ditto.
15251 (x_clip_to_row): Clip to display_height-1 if y + line_height >
15252 display_height since line_height is really a line distance.
15253 (x_display_and_set_cursor): If cursor on padding glyph, use
15254 min_bounds pixel width.
15255
15256Mon Aug 18 09:39:18 1997 Gerd Moellmann <gerd@acm.org>
15257
15258 * xterm.c (x_clip_to_row): Height value was 1 too large.
15259 (XTclear_end_of_line): Clip to display area.
15260
15261 * xfns.c (x_figure_window_sizes): Add trunc border width
15262 to frame pixel width.
15263
15264 * xdisp.c (next_display_element): Don't display overlay strings
15265 within invisible text.
427ec082 15266 (skip_vertically_backward): Skip display lines.
26901792
DL
15267
15268Sat Aug 16 13:13:32 1997 Gerd Moellmann <gerd@acm.org>
15269
15270 * xdisp.c (x_consider_frame_titie): Don't pad with blanks.
15271
15272 * xdisp.c (next_display_element): Next invisible
15273 text check position computed differently.
15274
15275 * dispextern.h (struct display_cursor): last_invisible_text_pos
15276 and display_ellipsis_for_invisible_p removed.
15277
15278 * xdisp.c (next_display_element): Set last_invisible_text_pos
15279 to the last position at which invisible text was found. Don't
15280 decrement cursor.pos for newlines and cr with ellipsis. Set
427ec082 15281 dpvec for `...' due to invisible text directly.
26901792
DL
15282 (redisplay_internal): Don't assert that cursor is at PT after
15283 skip_to. It may be in invisible text.
15284
427ec082 15285 * keyboard.c (make_lispy_event): For mouse clicks, use
26901792
DL
15286 x_y_to_hpos_vpos.
15287
427ec082 15288 * xdisp.c (next_display_element): Call get_overlays_for_cursor when
26901792
DL
15289 next_overlay_pos is reached. Use limit cursor.pos + 100 when
15290 checking for invisible text.
15291
15292 * xterm.h (WINDOW_COL_PIXEL_X etc.) Removed.
15293
15294 * dispextern.h (WINDOW_TO_FRAME_HPOS/VPOS): Moved to dispnew.c
15295
d7d0dac0 15296 * xfns.c (x_contour_region): Use pixel coordinates from window
26901792
DL
15297 cursor instead of WINDOW_TO_FRAME_H/VPOS.
15298
15299 * dispextern.h (FRAME_TO_WINDOW_HPOS, FRAME_TO_WINDOW_VPOS):
15300 Removed.
15301
15302 * dispnew.c (frame_to_window_hpos, frame_to_window_vpos): Removed.
15303
15304 * xterm.c (x_y_to_hpos_vpos): Get hpos/vpos from window relative
15305 pixel coordinates.
15306 (note_mouse_highlight): Use it.
15307
15308 * xdisp.c (echo_area_display): Ignore calls for terminal frames
15309 under a window system.
15310
427ec082 15311 * dispnew.c (adjust_frame_glyphs): Call redraw_frame if
26901792 15312 necessary.
427ec082 15313 (update_window_line): Add width of face padding glyph to
26901792
DL
15314 displayed widths of rows.
15315
15316 * xterm.c (x_display_and_set_cursor): Set clipping after
15317 erasing cursor.
427ec082
SS
15318
15319 * window.c (Fset_window_configuration): Free only those
26901792
DL
15320 window matrices not reused.
15321 (get_leaf_windows): Build vector of leaf windows.
15322 Corrupted archive restored from v77.
15323
f28eba7b 15324 * xdisp.c (display_string): Stop at >= last_visible_x if truncating
26901792
DL
15325 like display_line does.
15326
15327 * xdisp.c (display_mode_line): Don't hscroll mode line.
15328
15329 * xterm.c (draw_glyphs): Wrong run_width computed for horiz. split
15330 windows.
15331 (x_scroll_bar_create): #3039 Clear area below scroll bar to remove
15332 garbage between mode lines when splitting windows horiz.
15333
15334 * dispnew.c (direct_output_for_insert): Bug fix.
15335
15336 * dispextern.h (struct display_cursor): New member string_length.
15337
15338 * xdisp.c (next_display_element): Return padding spaces.
f28eba7b 15339 (init_string_cursor): Take precision and field_width
26901792
DL
15340 (display_string): Use string cursor, skip over invisible text.
15341
15342Thu Aug 14 10:41:41 1997 Gerd Moellmann <gerd@acm.org>
15343
15344 * xterm.c (x_clip_to_row): Clip to partially visible lines.
15345 (x_display_and_set_cursor): Call it.
15346 (draw_glyphs): Call it
15347 (draw_bitmap): Call it.
15348
427ec082 15349 * dispnew.c (adjust_frame_glyphs): Optimize frame garbaging.
26901792
DL
15350 (allocate_leaf_matrix): Return flags.
15351 (row_equal_p): Compare enabled_p.
15352
15353 * xterm.c (x_erase_phys_cursor): Set phys_cursor_on_p to 0
15354 for type == -1.
15355
15356 * xterm.c (x_display_and_set_cursor): Bar cursor 1 pixel taller.
427ec082 15357 (draw_glyphs): Clip height one pixel taller.
26901792 15358
427ec082 15359 * dispnew.c (direct_output_for_insert): Give up for hscrolled
26901792
DL
15360 mini window.
15361
f28eba7b 15362 * xdisp.c (display_line): Don't scroll mini prompt.
26901792 15363
427ec082
SS
15364 * xdisp.c (echo_area_display): Call update_single_window if
15365 possible.
26901792
DL
15366
15367 * dispnew.c (update_window_line): Call scrolling_window.
f28eba7b 15368 (scrolling_window): Work on enabled desired lines only.
26901792
DL
15369 (update_single_window): Update a single window like update_frame
15370 does for all windows.
427ec082 15371 (update_window, update_window_tree): Additional argument
26901792
DL
15372 no_scrolling_p.
15373 (update_frame): Pass no_scrolling_p to update_window_tree.
15374 (update_window): Don't call scrolling_window if no_scrolling_p.
15375
15376 * xterm.c (x_erase_phys_cursor): Do nothing if type == -1.
427ec082
SS
15377 Erase under hollow cursor.
15378 (x_display_and_set_cursor): Do nothing if cursor glyph row
26901792
DL
15379 not enabled. Draw bar cursor 1 pixel smaller.
15380
f28eba7b 15381 * dispnew.c (adjust_frame_glyphs): Don't set frame garbaged
26901792
DL
15382 since update will follow soon.
15383
15384 * xdisp.c (echo_area_display): Unitialized variable.
15385
f28eba7b 15386 * xterm.c (draw_bitmap): Previously draw_truncation; draw
26901792
DL
15387 overlay arrow bitmap.
15388
f28eba7b 15389 * xdisp.c (display_line): For truncated lines, consider everything
427ec082 15390 up to the final \n as part of the line for cursor positioning.
26901792 15391
f28eba7b
SM
15392 * xterm.c (draw_truncation): Take FRAME_X_TRUNC_WIDTH into account.
15393 (x_after_update_window_line): Clear trunc marks.
26901792
DL
15394
15395 * xterm.h (FRAME_X_TRUNC_WIDTH).
15396
f28eba7b 15397 * frame.h (FRAME_TRUNC_WIDTH): Width of area at the left margin
26901792
DL
15398 of a window reserved for truncation mark.
15399
427ec082 15400 * dispextern.h: Take FRAME_TRUNC_WIDTH into account.
26901792
DL
15401
15402 * dispnew.c (update_window_line): Call after_update_windwo_line-
427ec082 15403 hook.
26901792
DL
15404
15405 * xdisp.c (display_line): Set overlay_arrow_p in row.
15406
15407 * dispextern.h (struct glyph_row): New flag overlay_arrow_p.
15408
15409 * xterm.c (x_after_update_window_line): Draw truncation marks.
15410
15411 * xdisp.c (display_line): Insert truncation for lines with
15412 current_x > 0.
15413
15414 * xterm.c (x_draw_row_borders): Convert y to frame coords.
15415 Correct y by 1.
15416 (x_display_cursor): Use default font width if width not
427ec082 15417 known.
26901792 15418
f28eba7b 15419 * xdisp.c (echo_area_display): Set row->y.
26901792
DL
15420
15421 * dispnew.c (set_window_cursor_after_update): Don't assume
15422 all rows are enabled.
15423
15424 * xdisp.c (skip_in_display_line_to): Test cursor.position instead
15425 of cursor.pos.
15426 (skip_in_display_line_to): Check cursor.position after call to
15427 next_display_element.
15428
427ec082 15429 * dispextern.h (CURSOR_AT_P): Test if cursor has reached
26901792
DL
15430 buffer position.
15431
15432 * xdisp.c (display_line): Set row->y here.
15433 (skip_in_display_line_to): Test for to_pos after all glyphs
15434 have been added to hpos so that hpos is at the end of all
15435 glyphs for to_pos.
15436 (start_display): Remove assertion.
15437
d7d0dac0 15438 * dispnew.c (direct_output_forward_char): Bug fix, = instead of ==.
26901792
DL
15439 (update_window): Don't set row->y here.
15440
15441 * xdisp.c (next_display_element): Don't translate control chars
15442 from display table entries.
15443
427ec082 15444 * dispnew.c (direct_output_for_insert): Set cursor before
26901792
DL
15445 update end to prevent cursor flickering. Revert changes to
15446 setting cursor.endpos.
15447
15448Wed Aug 13 10:46:12 1997 Gerd Moellmann <gerd@acm.org>
15449
15450 * dispnew.c (direct_output_for_insert): Don't set cursor.endpos
15451 to PT because this prevents multi-byte characters from being
15452 recognized.
15453
427ec082
SS
15454 * xdisp.c (skip_to, display_line): Advance cursor at end of
15455 truncated line.
26901792
DL
15456
15457 * xterm.c (x_draw_3d_borders): Use CapRound. Struct rect
15458 replaced by XRectangle.
15459
d7d0dac0 15460 * dispnew.c (scrolling_window): New method.
26901792
DL
15461
15462 * xterm.c (do_line_dance): New implementation, new method.
427ec082 15463
26901792
DL
15464 * xdisp.c (draw_glyphs): Draw truncation bitmaps. Clip to
15465 visible part of line.
15466
15467 * dispnew.c (update_window_line): Fill inverse video lines
15468 with infinite width space.
15469 (update_window): Handle completely empty matrices.
15470 (set_window_cursor_after_update): Bug fix.
15471
427ec082 15472 * xterm.c (draw_glyphs): Stop drawing at right window end.
26901792
DL
15473
15474 * dispnew.c (update_window_line): Don't ignore spaces, don't
15475 fill with spaces.
15476
15477 * xdisp.c (compute_line_metrics): Stop adding glyph widths with
15478 the first glyph having width 0.
15479
15480 * xterm.c (draw_glyphs): Let a glyph pixel with of 0 denote
427ec082 15481 a glyph that extends to the end of the line.
26901792
DL
15482
15483 * xdisp.c (display_line): Insert one padding glyph
15484
15485 * xdisp.c (skip_in_display_line_to): Don't subtract shift left
15486 amount from info.current_x.
15487 (display_line): Ditto.
15488
15489 * dispnew.c (direct_output_for_insert): Correct use of cursor.x.
15490 (change_frame_size_1): Correct cursor.x if frame gets too small.
15491 (update_window_line): Start at row->x.
15492
15493 * xdisp.c (redisplay_internal): Correct cursor.x (everwhere
15494 in xdisp.c).
15495
15496 * xterm.c (set_output_cursor): Use window relative X/Y.
15497 (global): Use window relative output cursor x/y.
15498 (draw_glyphs): Remove y param. Pass window relative x/y.
15499
15500 * dispnew.c (update_window): Start rows at start_y.
15501 (update_window): Don't try scrolling because it wouldn't work
15502 with variable height lines, anyway.
15503
15504 * dispextern.h (struct glyph_row): Remove shift_left_by,
15505 add x.
15506
15507 * window.h: (struct window): New member start_y.
15508
15509 * window.c (replace_window): Initialize start_y.
15510 (make_window): Ditto.
15511
15512Tue Aug 12 14:53:04 1997 Gerd Moellmann <gerd@acm.org>
15513
15514 * xterm.c (draw_glyphs): Clip rows that would paint over
427ec082 15515 the mode line.
26901792 15516
427ec082
SS
15517 * dispnew.c (update_window): Take mode line border into
15518 account.
26901792
DL
15519
15520 * xterm.h (FRAME_MODE_LINE_BORDER_WIDTH): Number of pixels
427ec082 15521 of border around mode line.
26901792
DL
15522
15523 * xterm.c (x_draw_row_borders): Bug fix.
15524 (x_erase_phys_cursor): Set pyhs_cursor.x/y before calling
15525 drawing functions.
15526
15527 * xterm.c (x_draw_row_border): Experimental; draw 3d borders
427ec082 15528 around modeline instead of inverting it.
26901792 15529
427ec082 15530 * xterm.c (glyph_to_pixel_coords): Use current matrix.
26901792
DL
15531
15532 * dispnew.c (buffer_posn_from_coords): Use SKIP_TO. Now takes
15533 window relative pixel coordinates as arguments.
15534
15535 * keyboard.c (make_lispy_event): Use BUFFER_POSN_FROM_COORDS
15536 with window relative pixel coordinates. Use GLYPH_TO_PIXEL_-
15537 COORDS mit new arguments.
15538
15539Mon Aug 11 12:32:34 1997 Gerd Moellmann <gerd@acm.org>
15540
15541 * xdisp.c (start_display): Use SKIP_TO instead of SKIP_IN-
427ec082 15542 DISPLAY_LINE.
26901792
DL
15543
15544 * keyboard.c (make_lispy_event): WINDOW_FROM_COORDINATES with
15545 pixel coords.
15546 (make_lispy_movement): Same.
15547
15548 * xterm.c (note_mouse_highlight): Use WINDOW_FROM_COORDINATES
15549 with new parameter meaning.
15550
15551 * window.c (Fcoordinates_in_window_p): Convert Lisp params
15552 from canon units to pixels.
15553 (coordinates_in_window): Pixel based.
15554 (Fcoordinates_in_window_p): Convert result pixel values back
15555 to canonical units.
15556
15557 * window.h: phys_cursor_ascent + descent instead of height.
15558
15559 * xterm.c (XTget_char_info): Use per char metrics for multi-byte
d7d0dac0 15560 chars with charset width 1.
26901792
DL
15561
15562 * dispnew.c (direct_output_for_insert): Set updated_row.
15563
15564Sat Aug 9 12:11:44 1997 Gerd Moellmann <gerd@acm.org>
15565
15566 * dispextern.h (struct glyph): Padding flag removed.
15567
15568Tue Aug 5 09:59:08 1997 Gerd Moellmann <gerd@acm.org>
15569
15570 * sysdep.c (reset_sys_modes): cursor_to with 4 params.
15571
15572 * keyboard.c (interrupt_signal): Cursor_to with 4 params.
15573
15574 * dispnew.c (update_window_line): Use pixels.
15575
15576 * xdisp.c (compute_line_metrics): Correct pixel_width by
15577 shift_left_by.
15578
15579 * dispextern.h (struct glyph_row): FIRST_SHIFTED_LEFT_GLYPH
427ec082 15580 removed. Remove references to it everywhere. Reverse_p in
26901792
DL
15581 glyph_row -> right_to_left_p. Change references to it.
15582
15583Mon Aug 4 18:09:27 1997 Gerd Moellmann <gerd@acm.org>
15584
15585 * dispnew.c (direct_output_for_insert): Use INSERT_GLYPHS.
15586
15587 * xterm.c (XTinsert_glyphs): Implement it.
15588
15589 * term.c (insert_glyphs): UPDATING_FRAME may be NULL in case
15590 of a call from DIRECT_OUTPUT_FOR_INSERT.
15591
15592 * window.h (struct cursor_pos): Keeps both matrix positions
15593 and pixel positions.
15594 (struct window): Use it.
15595
15596 * dispnew.c (direct_output_for_insert): New version.
15597
15598 * xdisp.c (redisplay_internal): Don't do anything if it has
15599 already be done directly.
15600
15601 * keyboard.c (command_loop_1): Call DIRECT_OUTPUT_FOR_INSERT
15602 for any character.
15603
15604Thu Jul 31 15:39:10 1997 Gerd Moellmann <gerd@acm.org>
15605
15606 * xdisp.c (echo_area_display): Use new DISPLAY_STRING.
15607
15608Wed Jul 30 12:18:03 1997 Gerd Moellmann <gerd@acm.org>
15609
15610 * dispextern.h (struct glyph_row): MAX_ASCENT, MAX_DESCENT.
15611 (struct glyph): ASCENT, DESCENT.
15612 (MATRIX_ROW_PIXEL_HEIGHT): Pixel height of row.
15613 (GLYPH_PIXEL_HEIGHT): Pixel height of glyph.
15614
15615 * xterm.c (XTget_display_info): Correct tab computation.
15616
15617 * term.c (get_display_info): Correct tab computation.
15618
15619 * dispextern.h (struct display_cursor): WHAT_FOUND, SOURCE_OBJECT.
15620 Renamed from CHAR_CURSOR.
15621
15622Tue Jul 29 12:52:40 1997 Gerd Moellmann <gerd@acm.org>
15623
15624 * xdisp.c (display_text_line): Mostly pixel oriented.
15625
15626 * dispextern.h (struct glyph): BOX_WIDTH -> PIXEL_WIDTH.
15627
15628 * term.c (append_intermediate_glyph): Generate padding glyphs.
15629
15630 * xdisp.c (display_text_line): More into final direction.
15631
15632 * xterm.c (XTget_char_info): Use WHAT field of CHAR_INFO.
15633 (XTget_char_info): Use tabs as multiples of spaces.
15634
15635 * term.c (get_char_info): Use WHAT field of CHAR_INFO.
15636 Use tabs as multiples of spaces.
15637
15638 * dispextern.h (struct char_info ): WHAT field.
15639
15640 * term.c (encode_terminal_code): Don't use GLYPH_CHAR, use
d7d0dac0 15641 FAST_GLYPH_CHAR instead because GLYPH_CHAR won't remove faces.
26901792
DL
15642
15643Mon Jul 28 14:23:06 1997 Gerd Moellmann <gerd@acm.org>
15644
15645 * dispnew.c (init_char_info): Correct TAB_WIDTH to a reasonable
15646 value.
15647 (init_char_info): Initialize with glyph row.
15648
15649 * term.c (get_char_info): Check WANT_ELLIPSIS_P.
15650
15651 * xterm.c (XTget_char_info): Check WANT_ELLIPSIS_P.
15652
15653 * dispextern.h (struct char_info ): GLYPH_ROW for intermediate
15654 glyphs.
15655
15656 * dispnew.c (init_char_info): Init GLYPH_ROW to NULL. CHAR_CURSOR
15657 moved to xdisp.c.
15658
15659 * xdisp.c (display_text_line): Use CHAR_CURSOR.
15660
15661 * xterm.c (x_append_intermediate_glyph): Intermediate glyph
15662 generation.
15663 (XTget_char_info): Ditto.
15664
15665 * term.c (get_char_info): Intermediate glyph generation.
15666 (append_intermediate_glyph): Ditto.
15667
15668Sun Jul 27 18:57:24 1997 Gerd Moellmann <gerd@acm.org>
15669
427ec082 15670 * dispnew.c (compute_char_cursor_face): Compute the face for a
26901792
DL
15671 CHAR_CURSOR.
15672 (init_char_cursor): Initialize a CHAR_CURSOR.
15673 (get_char_and_advance): Get next character to display.
15674
15675 * dispextern.h (struct char_cursor): Cursor for iterating over
15676 display text of CURRENT_BUFFER.
15677
15678Sat Jul 26 13:33:03 1997 Gerd Moellmann <gerd@acm.org>
15679
15680 * term.c (get_char_info): Set MAX_PIXEL_WIDTH in CHAR_INFO.
15681
15682 * dispextern.h (struct char_info ): Use LISP_CHAR_TABLE for DP.
15683 New member MAX_PIXEL_HEIGHT.
15684
15685 * xterm.c (x_per_char_metric): Get per character metrics.
15686 (XTget_char_info): More cases covered.
15687
15688 * term.c (get_char_and_info): Get next character and character
15689 display information.
15690 (get_char_info): Get character display information.
15691
15692 * dispextern.h: Character display information.
15693
427ec082 15694 * xterm.c (x_get_char_font_and_encoding): Get font and
26901792
DL
15695 encode character.
15696 (XTget_char_info): Get display information about a character.
15697
15698Wed Jul 23 16:50:18 1997 Gerd Moellmann <gerd@acm.org>
15699
15700 * dispextern.h (WINDOW_DISPLAY_MODE_LINE_HEIGHT): Height is
15701 zero if window is mini-window.
15702
15703 * xdisp.c: Include xterm.h or w32term.h for FRAME_LINE_HEIGHT.
15704 (try_window): DISPLAY_TEXT_LINE as long as Y < DISPLAY_HEIGHT.
15705
427ec082 15706 * dispnew.c (assign_row): Assign row pixel height.
26901792
DL
15707 (clear_glyph_row): Clear pixel height.
15708 (update_window): Use PIXEL_HEIGHT.
15709
15710 * xdisp.c (display_string): Set row pixel height temporarily.
15711 (display_text_line): Ditto.
15712
427ec082 15713 * dispextern.h (GLYPH_PIXEL_WIDTH):
26901792
DL
15714 (GLYPH_PIXEL_HEIGHT): Get glyph pixel dimension.
15715
427ec082 15716 * frame.h (FRAME_DEFAULT_PIXEL_LINE_HEIGHT): Get height of
26901792
DL
15717 line in default font.
15718 (FRAME_DEFAULT_GLYPH_PIXEL_WIDTH): Get width of character
15719 in default font.
15720 (FRAME_MODE_LINE_PIXEL_HEIGHT): Get height of mode line.
15721
15722 * xterm.h (FRAME_MODE_LINE_HEIGHT): Return height of mode line
15723 in pixels.
15724
15725 * dispnew.c (allocate_leaf_matrix): Use window pixel macros.
15726
15727 * dispextern.h (WINDOW_DISPLAY_PIXEL_WIDTH):
427ec082
SS
15728 (WINDOW_DISPLAY_PIXEL_HEIGHT):
15729 (WINDOW_DISPLAY_MODE_LINE_HEIGHT):
15730 (WINDOW_DISPLAY_PIXEL_HEIGHT_WITHOUT_MODE_LINE):
15731 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X):
15732 (WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X):
15733 (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y):
26901792
DL
15734 (WINDOW_DISPLAY_BOTTOM_EDGE_PIXEL_Y): Macros to get various
15735 pixel values related to windows.
15736
15737Mon Jul 21 12:22:02 1997 Gerd Moellmann <gerd@acm.org>
15738
15739 * xterm.c (XTflash): Flash last line of frame.
15740
15741 * dispextern.h (cursor_in_echo_area): Extern declaration.
15742
15743 * xterm.c (dumpglyphs): 8-bit version to test if my Xserver
d7d0dac0 15744 freezes stem from 16-bit functions.
26901792
DL
15745
15746 * xterm.c (x_display_and_set_cursor): Don't display hollow
15747 cursor in mini windows.
15748
15749 * window.c (replace_window): Initialize PHYS_CURSOR_TYPE.
15750 (make_window): Ditto.
15751
15752 * xterm.c (x_erase_phys_cursor): Erase cursor image.
15753 (x_display_and_set_cursor): Merged version of X_DISPLAY_BOX_CURSOR
15754 and X_DISPLAY_BAR_CURSOR.
15755 (x_display_cursor): Use it.
15756 (x_update_window_cursor): Use it.
15757
15758 * xdisp.c (display_text_line): Set cursor for window even if not
d7d0dac0 15759 selected.
26901792
DL
15760
15761 * xterm.c (x_display_bar_cursor): Use HPOS and VPOS instead
15762 of X and Y to denote matrix positions.
15763 (x_display_cursor): Ditto.
15764
15765 * dispnew.c (scrolling_window): Scrolling for windows.
15766
15767Wed Jul 16 13:37:51 1997 Gerd Moellmann <gerd@acm.org>
15768
15769 * dispnew.c (build_frame_matrix): Work on windows with update
15770 flag set.
15771 (build_frame_matrix_from_window_tree): Ditto.
15772 (build_frame_matrix_from_leaf_window): Ditto.
15773
15774 * xdisp.c (echo_area_display): Set MUST_BE_UPDATED_P instead of
15775 building frame matrix.
427ec082 15776 (redisplay_internal): Set window update flags instead of
26901792
DL
15777 building frame matrix.
15778
15779 * minibuf.c (read_minibuf): Set MUST_BE_UPDATED_P instead of
15780 building frame matrix.
15781
15782 * window.c (make_window): Initialize new members.
15783 (replace_window): Ditto.
15784
15785 * xfns.c (Fx_create_frame): Don't set PHYS_CURSOR_X to -1.
15786 I don't believe this is really necessary.
15787
15788 * dispnew.c (build_frame_matrix_from_leaf_window): Determine
427ec082 15789 border glyph once.
26901792
DL
15790
15791Tue Jul 15 13:58:33 1997 Gerd Moellmann <gerd@acm.org>
15792
427ec082 15793 * window.c (mark_window_cursors_off): Mark all cursors in
26901792
DL
15794 window tree off.
15795
427ec082 15796 * xterm.c (x_display_box_cursor): Window paraemter. Use
26901792
DL
15797 window matrix.
15798 (glyph_to_pixel_pos): Convert matrix pos -> pixels.
15799 (pixel_to_glyph_pos): Convert pixel pos -> matrix pos.
15800 (x_update_cursor): Work on windows.
15801 (x_display_bar_cursor): Ditto.
15802 (x_draw_single_glyph): Ditto.
15803
15804 * xterm.h: Prototype for X_DISPLAY_CURSOR.
15805
15806 * xterm.c (XTcursor_to): Void return type. Test for
d7d0dac0 15807 UPDATED_WINDOW. Call x_display_cursor with window.
26901792 15808 (x_display_cursor): Void return type. Window instead of frame
d7d0dac0 15809 parameter.
26901792 15810
d7d0dac0 15811 * window.h (WINDOW_RIGHTMOST_P, WINDOW_TOPMOST_P): Use functions below.
26901792
DL
15812
15813 * window.c (window_rightmost_p, window_topmost_p): Based on
15814 window tree.
15815
15816 * dispnew.c (adjust_frame_message_buffer): Allocate with
d7d0dac0 15817 FRAME_MESSAGE_BUF_SIZE.
26901792
DL
15818
15819 * window.h: PHYS_CURSOR_.* added.
15820
15821 * frame.h (struct frame): Cursor information removed.
15822
15823 * frame.h (FRAME_SCROLL_BAR_WIDTH): Removed because unused.
15824 (FRAME_WINDOW_WIDTH_ARG): Don't add scroll bar width.
15825
15826 * window.h (WINDOW_LEFT_MARGIN): Remove FRAME_LEFT_SCROLL_BAR.
15827
15828 * window.c (window_internal_width): Scroll bars no longer
15829 part of window.
15830
d7d0dac0 15831 * xterm.c (XTclear_end_of_line): FRAME_LEFT_SCROLL_BAR_WIDTH removed.
26901792 15832
d7d0dac0 15833 * xfns.c (x_set_scroll_bar_width): FRAME_LEFT_SCROLL_BAR_WIDTH removed.
26901792
DL
15834
15835 * xdisp.c (echo_area_display): FRAME_LEFT_SCROLL_BAR_WIDTH removed.
15836 (redisplay_internal): Ditto.
15837 (redisplay_window): Ditto.
15838 (redisplay_window): Ditto.
15839 (display_text_line): Ditto.
15840 (display_mode_line): Ditto.
15841
15842 * minibuf.c (read_minibuf): FRAME_LEFT_SCROLL_BAR_WIDTH removed.
15843
15844 * dispnew.c (set_cursor_to): FRAME_LEFT_SCROLL_BAR_WIDTH removed.
15845 (direct_output_for_insert): Ditto.
15846 (direct_output_forward_char): Ditto.
15847 (update_frame_1): Ditto.
15848
15849Mon Jul 14 12:30:03 1997 Gerd Moellmann <gerd@acm.org>
15850
15851 * dispnew.c (updated_window): Set by UPDATE_WINDOW to the window
d7d0dac0 15852 being updated.
26901792
DL
15853 (update_window): Set and clear it.
15854
15855 * dispnew.c (update_window_line, update_window, scrolling_window):
15856 First versions.
15857
15858 * dispnew.c (build_frame_matrix_from_leaf_window): Add vertical
15859 bar for window borders.
15860 (fill_up_glyph_row_area_with_spaces): Fill an area of a row
15861 with spaces.
15862 (fill_up_glyph_row_with_spaces): Call above function.
15863
15864 * xdisp.c (display_text_line): Don't add vertical bar for
15865 window borders.
15866 (display_string): Ditto.
15867
15868 * window.c (make_window): Init CURSOR_VPOS/HPOS.
15869 (replace_window): Ditto.
15870
15871 * xterm.c (XTwrite_glyphs): Use selected window cursor position.
15872
15873 * xfns.c (Fx_contour_region): Use selected window cursor position.
15874 (Fx_uncontour_region): Ditto.
15875 (Fx_select_region): Ditto.
15876
15877 * frame.c (make_frame): Remove CURSOR_X/Y.
15878
15879 * xdisp.c (redisplay_internal): Use window cursor position.
15880
15881 * dispnew.c (update_frame_1): Use cursor position of selected
15882 window.
15883 (change_frame_size_1): Ditto.
15884
15885 * xterm.c (XTupdate_begin): Set CURS_X/Y from selected window.
15886 (XTwrite_glyphs): Use cursor position of selected window.
15887
d7d0dac0 15888 * xfns.c (x_set_scroll_bar_width): Set cursor pos of selected window.
26901792
DL
15889
15890 * dispnew.c (set_cursor_to): Set window cursor position.
15891 (direct_output_for_insert): Use window cursor position.
15892 (init_display): Don't use frame cursor position.
15893
15894 * window.h: CURSOR_VPOS/HPOS added.
15895
15896 * frame.h (struct frame): CURSOR_X/Y removed.
15897 (FRAME_CURSOR_X): Removed.
15898 (FRAME_CURSOR_Y): Ditto.
15899
15900 * dispnew.c (direct_output_for_insert): LAST_POINT_X removed.
15901 (direct_output_forward_char): Ditto.
15902
d7d0dac0 15903 * xdisp.c (redisplay_internal): LAST_POINT_X and LAST_POINT_Y removed.
26901792
DL
15904
15905 * window.c (make_window): LAST_POINT_X and LAST_POINT_Y removed.
15906
15907 * window.h: LAST_POINT_X and LAST_POINT_Y removed.
15908
15909Sun Jul 13 14:18:24 1997 Gerd Moellmann <gerd@acm.org>
15910
15911 * xdisp.c: Bug fixes using SET_CURSOR with HPOS 0 instead
15912 of FRAME_LEFT_SCROLL_BAR_WIDTH.
15913
15914 * dispextern.h: Changed function names.
15915
15916 * dispnew.c (scrolling): Don't call SCROLLING_1 if WINDOW_SIZE
15917 < 2.
15918 (clear_window_matrices): Formerly two functions for desired
15919 and current matrix.
15920 (update_frame_1): Call CLEAR_DESIRED_MATRICES.
15921 (update_frame): Return return value from UPDATE_FRAME_1.
15922
15923Sat Jul 12 12:58:48 1997 Gerd Moellmann <gerd@acm.org>
15924
15925 * xdisp.c (try_window): Set WINDOW_END_VPOS with window relative
15926 LAST_TEXT_VPOS.
15927
15928 * frame.c (set_menu_bar_lines): Adjust matrices.
15929
15930 * dispnew.c (set_cursor_to): Set cursor position.
15931
15932 * minibuf.c (read_minibuf): Build frame matrix.
15933
15934 * xdisp.c (this_line_start_hpos): Renamed to
d7d0dac0
SM
15935 THIS_LINE_START_WINDOW_HPOS to make it clear that this is window
15936 relative.
26901792
DL
15937 (this_line_vpos): Renamed to THIS_LINE_WINDOW_VPOS for the same
15938 reason.
15939
427ec082 15940 * dispnew.c (build_frame_matrix): Don't clear rows of the
26901792
DL
15941 menu bar.
15942 (clear_window_records): Clear window rows.
15943 (clear_frame_records): Clear window and frame rows.
15944 (clear_glyph_matrix): Set all rows of a matrix to empty.
15945
d7d0dac0
SM
15946 * xdisp.c (echo_area_display): Parameter UPDATE_FRAME_P.
15947 Update frame if set.
26901792
DL
15948 (message2_nolog): Pass 1 to ECHO_AREA_DISPLAY. UPDATE_FRAME
15949 removed.
15950 (redisplay_internal): Pass 0 to ECHO_AREA_DISPLAY.
15951 (redisplay_internal): Build frame matrix before UPDATE_FRAME.
15952
15953 * dispnew.c (assign_row): Assign one glyph row to another.
15954 (mirrored_make_current): Use it.
15955 (mirror_make_current): Use it.
15956 (update_line): Rely on MIRRORED_MAKE_CURRENT to set flags and
15957 used counters for the current glyph row.
427ec082 15958
26901792
DL
15959
15960Fri Jul 11 13:16:50 1997 Gerd Moellmann <gerd@acm.org>
15961
15962 * lisp.h: Prototype for SCAN_BUFFER.
15963
15964 * xdisp.c (redisplay_windows): Simplified.
15965
15966 * dispnew.c (window_to_frame_vpos): Convert window to frame vpos
15967 with debug checks.
15968 (window_to_frame_hpos): Convert window to frame hpos with checks.
15969 (frame_to_window_vpos): Convert frame to window vpos with checks.
15970 (frame_to_window_hpos): Convert frame to window hpos with checks.
15971
15972 * dispextern.h: PRESERVE_OTHER_COLUMNS removed.
15973
15974 * dispnew.c: PRESERVE_OTHER_COLUMNS removed.
15975
15976 * xdisp.c (redisplay_internal): Another instance of
15977 DISPLAY_TEXT_LINE with window relative VPOS.
15978 (redisplay_internal): Remove PRESERVE_OTHER_COLUMNS.
15979
15980 * dispnew.c (init_desired_glyphs): Do it on window matrices,
15981 only.
15982
15983 * xdisp.c (try_window_id): Use CANCEL_WINDOW_LINE.
15984 (redisplay_internal): Ditto.
15985
15986 * dispnew.c (cancel_window_line): Use window matrix. Changed
15987 name to CANCEL_WINDOW_LINE.
15988
15989 * xdisp.c (try_window_id): Use DISPLAY_TEXT_LINE with window
15990 relative VPOS.
15991
427ec082
SS
15992 * dispextern.h (WINDOW_TO_FRAME_VPOS): Convert window vpos
15993 to frame vpos.
26901792
DL
15994 (WINDOW_TO_FRAME_HPOS): Convert window hpos to frame hpos.
15995 (FRAME_TO_WINDOW_VPOS): Convert frame vpos to window vpos.
15996 (FRAME_TO_WINDOW_HPOS): Convert frame hpos to window hpos.
15997
15998 * xdisp.c (try_window_id): Use ADJUST_WINDOW_CHARSTARTS with
15999 window relative VPOS.
16000 (redisplay_internal): Use ADJUST_WINDOW_CHARSTARTS with window
16001 relative VPOS.
16002
16003 * dispnew.c (adjust_window_charstarts): Use INCREMENT_GLYPH_-
16004 MATRIX_BUFFER_POSITIONS.
16005
16006 * xdisp.c (try_window_id): Use SCROLL_FULL_WIDTH_WINDOW.
16007
16008 * dispextern.h: Prototype for SCROLL_FULL_WIDTH_WINDOW.
16009
427ec082 16010 * dispnew.c (scroll_frame_lines): Make it work on window
26901792
DL
16011 matrix. Change name to scroll_full_width_window.
16012
16013 * xdisp.c (message2_nolog): Don't fwrite NULL message If
d7d0dac0 16014 NONINTERACTIVE.
26901792
DL
16015
16016Mon Jul 7 14:44:38 1997 Gerd Moellmann <gerd@acm.org>
16017
16018 * dispnew.c (init_desired_glyphs): Clear both frame matrix
427ec082 16019 and window matrices.
26901792
DL
16020 (adjust_window_charstarts): Use window matrix.
16021 (cancel_my_columns): Use window matrix.
16022 (direct_output_for_insert): Use window matrix, only.
16023
16024 * xdisp.c (display_glyphs): Extracted code from DISPLAY_STRING.
16025 (display_string): Call display_glyphs.
16026 (display_menu_bar_string): Display a string in a menu bar line.
16027 (display_menu_bar): Use DISPLAY_MENU_BAR_STRING.
16028 (display_text_line): Use window matrix.
16029 (try_window): Use window relative positions.
16030
16031Sun Jul 6 17:02:26 1997 Gerd Moellmann <gerd@acm.org>
16032
16033 * dispnew.c (adjust_frame_glyphs): Allocate window matrices from
d7d0dac0 16034 (0, 0).
26901792 16035 (allocate_leaf_matrix): Add FRAME_MENU_BAR_LINES to the height of
d7d0dac0 16036 top-most windows.
26901792
DL
16037
16038 * window.h (WINDOW_TOPMOST_P): Added.
16039
16040 * xdisp.c (echo_area_display): Use PREPARE_DESIRED_ROW.
16041 (redisplay_window): Ditto.
16042 (display_text_line): Ditto.
16043 (display_menu_bar): Ditto.
16044 (display_mode_line): Ditto.
16045 (display_mode_line): Use window matrix.
16046 (display_string): Use window matrix.
16047 (display_mode_element): Ditto.
16048 (echo_area_display): Don't display if frame has no pools yet.
16049 (echo_area_display): Work with window matrix for mini window.
16050 (redisplay_window): Use window marix for mini window.
16051 (display_text_line): Assume HPOS and VPOS are window relative and
d7d0dac0 16052 use that for DISPLAY_STRING.
26901792
DL
16053
16054 * dispextern.h: Prototype for prepare_desired_row.
16055
d7d0dac0 16056 * dispnew.c (prepare_desired_row): Replacement for GET_DISPLAY_LINE.
26901792
DL
16057
16058 * dispnew.c (adjust_window_charstarts): Always allocate window
16059 matrices.
16060 (clear_glyph_row): Only reset used counters and flags.
16061
16062Sat Jul 5 14:55:44 1997 Gerd Moellmann <gerd@acm.org>
16063
16064 * dispnew.c (scroll_frame_lines): Don't assume first scolled
427ec082 16065 line is non-empty.
26901792
DL
16066 (realloc_glyph_pool): Don't add 1 to the pool size.
16067 (adjust_glyph_matrix): Don't add 1 to pointers to glyph areas.
16068
16069 * dispnew.c (line_hash_code): Don't use null-glyph end marker.
16070 (line_draw_cost): Ditto.
16071 (update_line): Ditto.
16072 (update_line): Use SPACE_GLYPH.
16073 (count_blanks): Additional parameter LEN.
16074
16075 * xdisp.c (display_text_line): Use SPACE_GLYPH.
16076 (display_text_line): Don't add null-glyph end marker.
16077 (display_string): Use SPACE_GLYPH.
16078 (display_string): Don't use null-glyph end marker.
16079
16080 * term.c (clear_end_of_line): Use SPACE_GLYPH.
16081
16082 * dispnew.c (clear_glyph_row): Don't use null-glyph end markers.
16083 (fill_up_glyph_row_with_spaces): Ditto.
16084 (preserve_other_columns): Add SPACE_GLYPH at then end of desired
16085 rows, instead of null-glyphs.
16086 (direct_output_for_insert): Don't add null-glyph end marker.
16087
16088 * scroll.c (do_direct_scrolling): Change algorithm to construct
d7d0dac0 16089 vector of lines assigned. Call MIRRORED_LINE_DANCE:
26901792
DL
16090 (do_scrolling): Ditto.
16091
16092 * dispnew.c (mirror_line_dance): Mirror line assignments in a
d7d0dac0 16093 frame matrix in window matrices.
26901792 16094 (mirrored_line_dance): Do line assignments during scrolling.
d7d0dac0 16095 Maybe do corresponding assignments in window matrices.
26901792 16096 (check_window_matrix_pointers): Check that window rows and frame
d7d0dac0 16097 rows agree about glyph pointers.
26901792
DL
16098 (check_matrix_pointers): Ditto.
16099 (mirrored_make_current): Make a row of a desired matrix current;
d7d0dac0 16100 maybe mirror the operation in window matrices.
26901792 16101 (mirror_make_current): Make window desired matrix row current when
d7d0dac0 16102 frame matrix row was made current.
26901792
DL
16103
16104Fri Jul 4 13:27:46 1997 Gerd Moellmann <gerd@acm.org>
16105
16106 * dispnew.c (check_matrix_pointer_lossage): Check against
16107 pointer lossage in matrices.
16108 (get_glyph_matrix_row): Removed.
16109
16110 * scroll.c (do_scrolling): Simplified.
16111 (do_direct_scrolling): Simplified.
16112 (scrolling_1): Pass CURRENT_MATRIX instead of FRAME to
d7d0dac0 16113 DO_.*SCROLLING.
427ec082 16114
26901792
DL
16115
16116 * dispnew.c (ins_del_glyph_rows): Insert/delete rows in a matrix.
16117 (rotate_vector): Removed.
16118 (rotate_pointers): Removed.
16119 (scroll_frame_lines): Simplified.
16120
16121Thu Jul 3 13:54:21 1997 Gerd Moellmann <gerd@acm.org>
16122
16123 * dispextern.h (MATRIX_ROW_SWAP_CONTENTS): Removed.
16124
16125 * dispnew.c (increment_glyph_matrix_buffer_positions): Does
16126 what the name says.
16127 (clear_glyph_row): Make a glyph row structure empty.
16128 (make_matrix_row_current): Make a glyph row current.
16129 (make_window_matrix_row_current): Perform analogous row swaps
16130 for window matrices.
16131 (update_line): Call make_matrix_row_current.
16132
16133Wed Jul 2 13:43:35 1997 Gerd Moellmann <gerd@acm.org>
16134
16135 * dispextern.h (SET_MATRIX_ROW_ENABLED_P): Better macro name.
16136 (SET_MATRIX_ROW_INVERSE_P): Better name and HIGHLIGHT_P ->
16137 INVERSE_P.
16138 (MATRIX_ROW_INVERSE_P): Former MATRIX_ROW_HIGHLIGHT_P.
16139 (struct glyph_row): HIGHLIGHT_P -> INVERSE_P
16140
16141 * all files: use above new names.
16142
16143 * dispnew.c (scroll_frame_lines): Simplified. Use
d7d0dac0 16144 SCROLL_GLYPH_MATRIX.
26901792 16145 (make_glyph_row_empty): Mark a glyph row empty.
427ec082 16146 (increment_glyph_row_buffer_positions): Increment
26901792
DL
16147 buffer positions in a glyph row.
16148 (increment_glyph_matrix_buffer_positions): Increment buffer
16149 positions in a range of rows.
16150 (scroll_glyph_matrix): Scroll a glyph matrix.
16151 (swap_glyphs_in_rows): Swap glyphs between rows.
16152 (swap_glyph_pointers): Swap pointers between rows.
16153 (glyph_row_slice_p): Return 1 if one row is a slice of another.
16154 (init_display): Initialize SPACE_GLYPH.
16155 (fill_up_glyph_row_areas_with_spaces): Fill up areas with
427ec082 16156 spaces.
26901792
DL
16157
16158Tue Jul 1 13:49:55 1997 Gerd Moellmann <gerd@acm.org>
16159
16160 * xterm.c (dumprectangle): Use vectors in glyph rows.
16161
16162 * xdisp.c (display_text_line): Use vectors in glyph rows.
16163 (display_string): Ditto.
16164
16165 * scroll.c (do_scrolling): Use vectors in glyph rows.
16166 (do_direct_scrolling): Ditto.
16167
16168 * alloc.c (mark_object): Use vectors in glyph rows.
16169 Mark for all frame types.
16170
16171 * dispnew.c (adjust_glyph_matrix): Use vectors to glyphs in
16172 glyph rows.
16173 (get_glyph_matrix_row): Ditto.
16174 (matrix_row): Ditto.
16175 (rotate_pointers): Ditto.
16176 (scroll_frame_lines): Ditto.
16177 (preserve_other_columns): Ditto.
16178 (cancel_my_columns): Ditto.
16179 (update_line): Ditto.
16180 (direct_output_for_insert): Ditto.
16181
16182 * dispextern.h (struct glyph_row): Use a vector of pointers
d7d0dac0 16183 instead of individual members. Use a vector of used counters.
26901792
DL
16184 (MATRIX_ROW_SWAP_CONTENTS): Use vectors.
16185 (MATRIX_ROW_GLYPH_START): Ditto.
16186 (MATRIX_ROW_GLYPH_END): Ditto.
16187 (MATRIX_ROW_USED): Ditto.
16188 (MATRIX_ROW_SET_USED): Ditto.
16189
16190 * dispnew.c (line_hash_code): Simplified.
16191
16192Mon Jun 30 20:39:38 1997 Gerd Moellmann <gerd@acm.org>
16193
16194 * dispnew.c: Prototype for ROTATE_VECTOR, ROTATE_POINTERS,
16195 CHANGE_FRAME_SIZE_1
16196 (preserve_other_columns): Void return.
16197 (cancel_my_columns): Void return type.
16198 (scrolling): Int return type.
16199 (do_pending_window_change): Void return type.
16200 (change_frame_size): Ditto.
16201 (bitch_at_user): Ditto.
16202 (init_display): Ditto.
16203 (syms_of_display): Ditto.
16204
16205 * dispextern.h: add prototypes for REDRAW_FRAME,
d7d0dac0
SM
16206 REDRAW_GARBAGED_FRAMES, CANCEL_LINE, CLEAR_FRAME_RECORDS,
16207 INIT_DESIRED_GLYPHS, SCROLL_FRAME_LINES, PRESERVE_OTHER_COLUMNS,
16208 ADJUST_WINDOW_CHARSTARTS, CANCEL_MY_COLUMNS,
16209 DIRECT_OUTPUT_FOR_INSERT, DIRECT_OUTPUT_FORWARD_CHAR,
16210 UPDATE_FRAME, SCROLLING, BUFFER_POSN_FROM_COORDS,
16211 DO_PENDING_WINDOW_CHANGE, CHANGE_FRAME_SIZE, BITCH_AT_USER,
26901792 16212 SIT_FOR, INIT_DISPLAY, SYMS_OF_DISPLAY,
427ec082 16213
26901792 16214 * dispnew.c (redraw_frame): FRAME_PTR -> struct frame. Return
d7d0dac0 16215 void.
26901792
DL
16216 (cancel_line): Return void.
16217 (clear_frame_records): Return void.
427ec082 16218
26901792
DL
16219 * dispextern.h (struct glyph): Remove GLYPH, add bit-fields.
16220 (SET_CHAR_GLYPH): Fill a character glyph.
16221 (SET_CHAR_GLYPH_FROM_GLYPH): Set a character glyph from a GLYPH.
16222 (GLYPH_FROM_CHAR_GLYPH): Construct a GLYPH from a character
427ec082 16223 glyph.
26901792
DL
16224 (CHAR_GLYPH_CHAR_CODE): Return character code of a glyph.
16225 (SET_CHAR_GLYPH_CHAR_CODE): Set character code of a glyph.
16226 (CHAR_GLYPH_FACE_ID): Return face id of a glyph.
16227 (SET_CHAR_GLYPH_FACE_ID): Set face id of a glyph.
16228 (CHAR_GLYPH_PADDING_P): Return padding flag of a glyph.
16229 (SET_CHAR_GLYPH_PADDING_P): Set padding flag.
16230 (CHAR_GLYPH_REVERSE_P): Return reversed flag.
16231 (SET_CHAR_GLYPH_REVERSE_P): Set reversed flag.
16232 (MATRIX_ROW_SWAP_CONTENTS): Swap pointers between rows.
16233
16234 * term.c (reassert_line_highlight): Check CHARS_WASTED == 0.
16235
16236 * window.h (struct window): Add comment that no Lisp data may
d7d0dac0 16237 come below CURRENT_MATRIX.
26901792
DL
16238
16239 * alloc.c (mark_object): Change window mark code to stop with
d7d0dac0 16240 member CURRENT_MATRIX.
26901792
DL
16241
16242Sat Jun 28 13:54:55 1997 Gerd Moellmann <gerd@acm.org>
16243
16244 * scroll.c (do_scrolling): Change algorithm to use pointers.
16245 (do_direct_scrolling): Ditto.
16246
16247 * dispnew.c (get_glyph_matrix_row): Use pointers stored in rows.
16248 (new_glyph_pool): Formerly new_FRAME_GLYPH_MATRIX.
16249 (free_glyph_pool): Formerly FREE_FRAME_GLYPH_MATRIX
16250 (realloc_glyph_pool): Formerly REALLOC_FRAME_GLYPH_MATRIX.
d7d0dac0 16251 Returns 1 if pool changed.
26901792
DL
16252 (matrix_row): Additional check for lost pointers to glyph rows.
16253 (compute_matrices): Additional parameter DIM_P set means that no
d7d0dac0
SM
16254 allocation should take place. Addtional parameter
16255 ANY_WINDOWS_CHANGED_P set if any windows matrix has changed.
26901792 16256 (compute_leaf_matrix): Additional parameter CHANGED_P set to 1
d7d0dac0
SM
16257 when window matrix changes. Additional parameter DIM_ONLY_P set
16258 to 1 to indicate that no allocation should take place.
26901792 16259 (adjust_frame_glyphs): Construct new glyph pools and glyph
d7d0dac0 16260 matrices. Optimize frame redraws.
26901792
DL
16261 (free_glyphs): Free pools.
16262 (check_glyph_memory): Check pools not freed.
16263 (rotate_pointers): Rotate pointers in a vector of glyph rows.
16264 (scroll_frame_lines): Change algorithm to use pointers.
16265 (update_line): Ditto.
16266
16267 * dispextern.h (struct glyph_row): Use pointers to areas in a row.
16268 (global): All macro names changed from prefix FRAME_MATRIX to
d7d0dac0 16269 MATRIX.
26901792
DL
16270
16271Fri Jun 27 14:51:15 1997 Gerd Moellmann <gerd@acm.org>
16272
16273 * dispextern.h (struct glyph_pool): Replacement for former
16274 FRAME_GLYPH_MATRIX.
16275 (struct glyph_matrix): No longer contains sizes of allocated
16276 areas.
16277
16278 * xdisp.c (redisplay_internal): Don't redisplay if frame has
16279 no glyph pools.
16280
16281 * frame.c (make_frame): Initialize pools.
16282
16283Thu Jun 26 00:00:55 1997 Gerd Moellmann <gerd@acm.org>
16284
427ec082 16285 * scroll.c (do_direct_scrolling): Don't assume that the
26901792
DL
16286 line moving algorithm has no intermediate steps.
16287 (do_scrolling): Ditto.
16288
16289 * Makefile.in (alloc.o): Add dependency dispextern.h.
16290
16291 * alloc.c: Include dispextern.h for glyph definitions.
16292
16293 * dispnew.c (get_glyph_matrix_row): Return 1 if ROW_INDEX
16294 is legal, return 0 otherwise.
16295
16296 * window.h: Add comment that windows are marked specially.
16297
16298 * alloc.c (mark_object): Mark windows specially.
16299
16300
16301Wed Jun 25 15:22:58 1997 Gerd Moellmann <gerd@acm.org>
16302
16303 * dispextern.h (struct glyph): Add member OBJECT
16304 referencing a Lisp object from which a glyph was drawn.
16305 Member TEXT_POSITION renamed POSITION.
16306 * xterm.c, xdisp.c, dispnew.c: Rename TEXT_POSITION -> POSITION.
16307
16308 * alloc.c: Include dispextern.h
16309 (mark_object): Mark objects referenced from glyphs.
16310
f28eba7b 16311 * frame.c (make_frame): Initialize DECODE_MODE_SPEC_BUFFER.
26901792
DL
16312
16313 * scroll.c (do_direct_scrolling): Remove TEMP_MATRIX.
16314 (do_scrolling): Ditto.
16315
427ec082 16316 * frame.h (struct frame): TEMP_MATRIX removed.
26901792
DL
16317 DECODE_MODE_SPEC_BUFFER added.
16318
16319 * window.h: TEMP_MATRIX removed.
16320
16321 * scroll.c: OPHYS_LINES removed.
16322
16323 * dispnew.c: OPHYS_LINES and OPHYS_LINES_LENGTH removed.
16324 FRAME_PTR -> struct frame *.
16325
16326 * termhooks.h: Prototypes for INSERT_GLYPHS_HOOK,
16327 WRITE_GLYPHS_HOOK, DELETE_GLYPHS_HOOK,
16328
16329 * term.c: Prototypes for INSERT_GLYPHS_HOOK,
16330 WRITE_GLYPHS_HOOK, DELETE_GLYPHS_HOOK,
16331
16332 * xdisp.c (redisplay_internal): Remove call to VERIFY_CHARSTARTS.
16333 (do_verify_charstarts): Removed.
16334
16335 * frame.c (Fmake_terminal_frame): Adjust glyphs.
16336 (Fdelete_frame): Free glyphs.
16337 (make_frame): Initialize matrix fields in frame.
16338
f28eba7b 16339 * config.in (PROTO): Added.
26901792 16340
f28eba7b 16341 * emacs.c (shut_down_emacs): Check glyph memory.
26901792
DL
16342
16343 * window.c (Fdelete_window): Free window matrices.
16344 (Fset_window_configuration): Ditto.
16345 (Fdelete_window): Adjust glyphs.
16346 (Fsplit_window): Ditto.
16347 (change_window_height): Ditto.
16348 (Fset_window_configuration): Ditto.
16349 (make_window): Initialize DESIRED_MATRIX and CURRENT_MATRIX.
16350 (replace_window): Reset DESIRED_MATRIX and CURRENT_MATRIX
16351
16352 * Makefile.in (window.o): Add dependency window.c -> dispextern.h
16353
16354 * window.c: Include dispextern.h
16355
16356 * scroll.c (do_scrolling): Use new glyphs.
16357 (do_direct_scrolling): Ditto.
16358
16359 * xdisp.c: Some function prototypes.
16360 (redisplay_internal): Don't do anything if matrices not yet set.
16361 (redisplay_internal): Use new glyphs.
16362 (try_window_id): Ditto.
16363 (copy_part_of_rope): Ditto.
16364 (display_text_line): Ditto.
16365 (display_menu_bar): Ditto.
16366 (display_mode_line): Ditto.
16367 (display_string): Ditto.
16368
16369 * xterm.c: Prototypes for some local functions.
16370 (dumpglyphs): Use new glyphs.
16371 (XTwrite_glyphs): Ditto.
16372 (dumprectangle): Ditto.
16373 (note_mouse_highlight): Ditto.
16374 (fast_find_position): Ditto.
16375 (show_mouse_face): Ditto.
16376 (x_draw_single_glyph): Ditto.
16377 (x_display_bar_cursor): Ditto.
16378 (x_display_box_cursor): Ditto.
16379 (x_new_font): Adjust glyphs when font change.
16380
16381 * term.c (clear_end_of_line): Use new glyphs.
16382 (write_glyphs): Ditto.
16383 (insert_glyphs): Ditto.
16384
16385 * Makefile.in (term.o): term.c depends on dispextern.h
16386
16387 * term.c: Include dispextern.h
16388
16389 * dispnew.c (direct_output_forward_char): Old glyph functions
427ec082 16390 removed, new inserted.
26901792
DL
16391 (line_hash_code): Use new glyphs.
16392 (line_draw_cost): Ditto
16393 (cancel_line): Ditto
16394 (clear_frame_records): Ditto.
16395 (init_desired_glyphs): Ditto.
16396 (get_display_line): Ditto
16397 (scroll_frame_lines): Ditto.
16398 (preserve_other_columns): Ditto.
16399 (adjust_window_charstarts): Ditto.
16400 (cancel_my_columns): Ditto.
16401 (direct_output_for_insert): Ditto.
16402 (update_frame): Ditto.
16403 (quit_error_check): Made empty.
16404 (scrolling): Use new glyphs.
16405 (count_blanks): Ditto.
16406 (count_match): Ditto.
16407 (update_line): Ditto.
16408 (init_display): Adjust glyphs initially.
16409 (change_frame_size_1): Adjust glyphs.
16410
16411 * dispextern.h: Old glyphs removed, new added.
16412
16413 * xfaces.c (min_char_bounds): Get smallest char in loaded fonts.
16414
16415 * xterm.h: Prototype for min_char_bounds.
16416
16417 * window.h (struct window): Remove old glyphs, add new.
16418
16419 * frame.h (struct frame): Remove old glyphs, add new.
427ec082 16420
26901792
DL
164211999-07-20 Dave Love <fx@gnu.org>
16422
16423 * buffer.c (syms_of_buffer): Make
16424 default-enable-multibyte-characters a user variable.
16425
164261999-07-14 Richard Stallman <rms@gnu.org>
16427
16428 * Version 20.4 released.
16429
164301999-07-14 Richard Stallman <rms@gnu.org>
16431
16432 * filelock.c (lock_file): Do nothing if purifying.
16433
164341999-07-10 Richard Stallman <rms@gnu.org>
16435
16436 * xterm.c (x_display_bar_cursor): Use the cursor-color
16437 to display the bar, not the cursor foreground pixel.
16438
164391999-07-09 Andrew Innes <andrewi@gnu.org>
16440
16441 * w32console.c (w32_use_full_screen_buffer): New variable.
16442 (syms_of_ntterm): Register it.
16443 (initialize_w32_display): Set initial frame size accordingly,
16444 respecting the LINES and COLUMNS environment variables if set.
16445
16446 * w32inevt.c (w32_console_read_socket): Use it.
16447
164481999-07-07 Kenichi Handa <handa@etl.go.jp>
16449
16450 * callproc.c (Fcall_process): Decide coding system for decoding
16451 after we set to the target buffer. If the output goes to a
16452 unibyte buffer, suppress character code conversion.
16453
16454 * fileio.c (Finsert_file_contents): If reading into a unibyte
16455 buffer, suppress character code conversion.
16456
16457 * process.c (create_process): If the output goes to a unibyte
16458 buffer, suppress character code conversion.p
16459
164601999-07-07 Andreas Schwab <schwab@gnu.org>
16461
16462 * xdisp.c (line-number-display-limit): Doc fix.
16463
164641999-07-05 Richard Stallman <rms@gnu.org>
16465
16466 * callproc.c (Fcall_process): Don't use initializer on coding_systems.
16467 (Fcall_process_region): Likewise.
16468
164691999-07-01 Markus Rost <markus.rost@mathematik.uni-regensburg.de>
16470
16471 * callproc.c (init_callproc): Set exec_directory if
16472 installation_directory is non-nil, without a test of exec_path.
16473
164741999-07-01 Andrew Innes <andrewi@gnu.org>
16475
16476 * w32xfns.c (drain_message_queue): New function.
16477
16478 * w32term.h (drain_message_queue): Add extern.
16479
16480 * w32proc.c (sys_select): Call MsgWaitForMultipleObjects instead
16481 of WaitForMultipleObjects when user input is allowed, so we can
16482 handle incoming window messages. Call drain_message_queue when
16483 there are messages waiting; this ensures that windows created
16484 indirectly from the lisp thread get processed properly, and don't
16485 hang other applications by failing to respond to broadcasts.
16486
164871999-07-01 Andreas Schwab <schwab@gnu.org>
16488
16489 * callint.c (Fcall_interactively): Ignore first element of
16490 event-symbol-elements property.
16491
164921999-07-01 Richard Stallman <rms@gnu.org>
16493
16494 * fileio.c (Fread_file_name): Check type of DEFAULT_FILENAME.
16495
164961999-07-01 Kenichi Handa <handa@etl.go.jp>
16497
16498 * minibuf.c (read_minibuf): Set the multibyteness of the
16499 minibuffer before inserting `initial' string.
16500
165011999-06-30 Richard Stallman <rms@gnu.org>
16502
16503 * xfns.c (x_make_gc): Turn off GCStipple when setting up cursor_gc.
16504
165051999-06-29 Richard M. Stallman <rms@gnu.org>
16506
16507 * emacs.c [DOUG_LEA_MALLOC] (malloc_initialize_hook):
16508 Move the handling of MALLOC_CHECK_ envvar here.
16509 (main): Moved from here.
16510
165111999-06-29 Wolfram Gloger <wmglo@dent.med.uni-muenchen.de>
16512
16513 * emacs.c [DOUG_LEA_MALLOC] (malloc_initialize_hook): New
16514 function, assigned to the global __malloc_initialize_hook pointer.
16515 (main): Move malloc_set_state call into malloc_initialize_hook
16516 so that it happens as early as possible.
16517
165181999-06-27 Richard M. Stallman <rms@gnu.org>
16519
16520 * keyboard.c (read_key_sequence): Properly reinitialize
16521 fkey_map after translating thru Vkey_translation_map.
16522 After translating thru Vfunction_key_map, don't reset
16523 keytrans-start to 0.
16524
165251999-06-24 Geoff Voelker <voelker@cs.washington.edu>
16526
16527 * w32.c (get_emacs_configuration): Use GetVersionEx to
16528 handle NT5.0 correctly. Include build number in configuration.
16529 w32heap.c (osinfo_cache): New variable.
16530 (cache_system_info): Initialize osinfo_cache.
16531 w32heap.h (osinfo_cache): Declare.
16532
165331999-06-24 Richard M. Stallman <rms@gnu.org>
16534
16535 * casefiddle.c (casify_object): Use make_multibyte_string
16536 if we casify a multibyte string.
16537
165381999-06-22 Ken'ichi Handa <handa@gnu.org>
16539
16540 * fileio.c: (Finsert_file_contents): In the case of REPLACE, call
16541 del_range_byte instead of del_range_1, set `inserted' to the
16542 number of characters actually inserted.
16543
165441999-06-17 Dave Love <fx@gnu.org>
16545
16546 * coding.c (decode_coding_sjis_big5): Avoid compiler warning.
16547
165481999-06-18 Paul Eggert <eggert@twinsun.com>
16549
16550 * filelock.c (BOOT_TIME_FILE): New macro.
16551 (get_boot_time): Use it instead of hardwiring the file name.
16552 Check BOOT_TIME_FILE only after inspecting the kernel directly.
16553
165541999-06-17 Dave Love <fx@gnu.org>
16555
16556 * xdisp.c (invalid_eol_type): Make it unsigned.
16557
165581999-06-17 Karl Heuer <kwzh@gnu.org>
16559
16560 * process.c (send_process): Delete unsafe/redundant assignment.
16561
165621999-06-17 Jason Rumney <jasonr@gnu.org>
16563
16564 * w32term.c (dumprectangle): Handle wide characters properly.
16565
165661999-06-16 Andrew Innes <andrewi@gnu.org>
16567
16568 * s/ms-w32.h (strerror): Override the default implementation of
16569 strerror, so we can map winsock error codes.
16570
16571 * w32.c (sys_strerror): New function.
16572
16573 * w32fns.c (w32_to_x_weight): Return "demibold" instead of "semibold".
16574
165751999-06-15 Ken'ichi Handa <handa@gnu.org>
16576
16577 * buffer.c (syms_of_buffer): Don't make
16578 enable-multibyte-characters customizable.
16579
165801999-06-15 Richard M. Stallman <rms@gnu.org>
16581
16582 * editfns.c (Fuser_full_name): Doc fix.
16583
165841999-06-14 Tak Ota <ota@atc.sel.sony.com>
16585
16586 * w32bdf.c: (clear_cached_bitmap_slots): Remove.
16587 (get_bitmap_with_cache): Check if CreateBitmap failed.
16588 Adjust cache size dynamically so cache is never larger than the
16589 system limit of GDI resources.
16590 Do cache clearing inline. Move global variables to local scope.
16591
16592
165931999-06-13 Wolfgang Glas <Wolfgang.Glas@hfm.tu-graz.ac.at>
16594
16595 * unexsgi.c (unexec): Dump the .rodata section from memory
16596 under IRIX6.5 in order to be able to unexec with gcc.
16597
165981999-06-11 Greg Hudson <ghudson@MIT.EDU>
16599
16600 * indent.c (compute_motion): Fix boundary case.
16601
166021999-06-11 Jason Rumney <jasonr@altavista.net>
16603
16604 * w32term.c (cancel_mouse_face): New function. See equiv
16605 changes to xterm.c on 1996-10-31.
16606 (x_set_window_size): Use cancel_mouse_face.
d7d0dac0
SM
16607 (w32_read_socket): Use cancel_mouse_face.
16608 Update frame position when size is restored.
26901792
DL
16609
166101999-06-04 Richard M. Stallman <rms@gnu.org>
16611
16612 * lread.c (Vuser_init_file): New variable.
16613 (syms_of_lread): Set up Lisp variable.
16614 (Fload): Store the file name there, if var was t before.
16615
166161999-06-04 Paul Eggert <eggert@twinsun.com>
16617
16618 * filelock.c (get_boot_time): Don't look at /proc/uptime; it
16619 doesn't work if the system date is changed, or if the system
16620 is suspended. Look at the last-modified time of
16621 /var/run/random-seed instead.
16622
166231999-06-03 Ken'ichi Handa <handa@gnu.org>
16624
16625 * coding.c (ENCODE_SJIS_BIG5_CHARACTER): Encode charset
16626 japanese-jisx0208-1978 correctly.
16627
166281999-06-03 Andrew Innes <andrewi@gnu.org>
16629
16630 * unexw32.c (get_section_info) [_ALPHA_]: Force as much bss data
16631 as possible to be dumped, for safety.
16632
166331999-06-02 Ken'ichi Handa <handa@gnu.org>
16634
16635 * coding.c (ENCODE_SJIS_BIG5_CHARACTER): Encode charset
16636 latin-jisx0201 correctly.
16637
166381999-05-26 Ken'ichi Handa <handa@gnu.org>
16639
16640 * charset.h (Vcharset_table): Comment fixed.
16641
166421999-05-24 Richard Stallman <rms@gnu.org>
16643
16644 * coding.c (syms_of_coding): Doc fix.
16645
16646 * buffer.c (syms_of_buffer): Doc fix.
16647
16648 * filelock.c (lock_if_free): After deleting a stale lock,
16649 try again to lock the file.
16650
166511999-05-22 Andrew Innes <andrewi@gnu.org>
16652
16653 * w32inevt.c (maybe_generate_resize_event): Detect changes in the
16654 console window size.
16655 (w32_console_read_socket): Call maybe_generate_resize_event
16656 whenever input events are received, since we don't get told when
16657 the window size changes (as opposed to the buffer size, which we
16658 don't care about).
16659
16660 * w32console.c (clear_frame): Remember that the window width might
16661 be smaller than the screen buffer width.
16662 (write_glyphs): Remove redundant variable attrs. Use
16663 FillConsoleOutputAttribute instead of WriteConsoleOutputAttribute.
16664
166651999-05-20 Andrew Innes <andrewi@gnu.org>
16666
16667 * w32term.c (w32_read_socket): Reset the grabbed flag when a frame gains or
16668 loses focus.
16669
16670 * w32fns.c (w32_wnd_proc): Ensure mouse capture is released if
16671 frame loses focus, and that mouse button state is reset. Ditto
16672 when the menu bar is activated.
16673
166741999-05-18 Richard Stallman <rms@gnu.org>
16675
16676 * abbrev.c (Fdefine_abbrev): Doc fix.
16677
166781999-05-13 Paul Eggert <eggert@twinsun.com>
16679
16680 * filelock.c: Fix performance bug on hosts with large
16681 /var/adm/wtmp files with no boot records.
16682
16683 (boot_time_initialized): New var.
16684 (init_filelock): Initialize it.
16685 (get_boot_time): Use it, instead of nonzero boot_time,
16686 to test whether boot_time is initialized.
16687 Don't invoke utmp routines when dumping.
16688
16689 (get_boot_time): First, try to get the boot time from the
16690 current utmp file, as this can be much faster. Don't try to
16691 get the boot time from utmp and/or wtmp more than once.
16692
16693 (get_boot_time_1): When passed null pointer, don't invoke utmpname.
16694 New arg LATEST. All uses changed.
16695
166961999-05-15 Andrew Innes <andrewi@gnu.org>
16697
16698 * w32term.c (dumpglyphs): Use correct colours for drawing
16699 rectangles in place of missing fonts, and make them the right
16700 size.
16701
167021999-05-14 Dave Love <fx@gnu.org>
16703
16704 * syntax.c (Fparse_partial_sexp): Correct test for element 8 to be
16705 non-nil.
16706
167071999-05-11 Andrew Innes <andrewi@gnu.org>
16708
16709 * w32fns.c (x_to_w32_charset): Reinstall VIETNAMESE_CHARSET
16710 definition.
16711 (w32_wnd_proc): Reinstall debugging output.
16712 (w32_wnd_proc): Reinstall SetForegroundWindow change.
16713 (syms_of_w32fns): Reinstall new initializer for
16714 Vw32_phantom_key_code.
16715
16716 * w32fns.c (x_to_w32_charset): Do partial matching of charset
16717 names for most non-European charsets, to cope with wildcards or
16718 missing spec dates.
16719 (Fw32_send_sys_command): Post WM_SYSCOMMAND rather than sending it
16720 to avoid deadlock when activating the menu bar.
16721
167221999-05-10 Ken'ichi Handa <handa@gnu.org>
16723
16724 * search.c (boyer_moore): Get charset base value of `untranslated'
16725 by masking by ~CHAR_FIELD3_MASK (instead of ~0xff).
16726
167271999-05-10 Andreas Schwab <schwab@gnu.org>
16728
16729 * fileio.c (Fread_file_name): Correct handling of dollars in file
16730 names. Protect dollars in strings put on the file-name-history.
16731 Substitute homedir by `~' also in default_filename.
16732
16733 * xdisp.c (try_window_id): Fix computation of tab_offset when
16734 backing up over a character that is splitted across lines.
16735
167361999-05-08 Kenichi HANDA <handa@etl.go.jp>
16737
16738 * coding.c (code_convert_region): If eol format is inconsistent,
16739 change coding->symbol to the sibling coding system of Unix like
16740 eol format.
16741
167421999-05-09 Richard M. Stallman <rms@gnu.org>
16743
16744 * s/irix5-2.h (NO_WTMP_FILE): Define it.
16745
16746 * filelock.c (get_boot_time): Handle NO_WTMP_FILE.
16747
167481999-05-05 Andrew Innes <andrewi@gnu.org>
16749
16750 * w32fns.c (w32_strict_painting): New variable.
16751 (w32_wnd_proc): Use it to select repaint rules.
16752 (syms_of_w32fns): Defvar it.
16753
167541999-05-04 Andrew Innes <andrewi@gnu.org>
16755
16756 * w32fns.c (x_to_w32_charset): Fix typo: want to map all Japanese
16757 charsets to the standard Windows charset for Japanese.
16758
167591999-05-04 Ken'ichi Handa <handa@gnu.org>
16760
16761 * xterm.c (x_load_font): Fix typo (`>' -> `=').
16762
16763 * ccl.h (struct ccl_program): New member stack_idx.
16764
16765 * ccl.c (ccl_prog_stack_struct): Declare it as static.
16766 (ccl_driver): Setup stack_idx and ccl_prog correctly. Update them
16767 before returing.
16768 (setup_ccl_program): Initialize ccl->stack_idx to 0.
16769
167701999-05-03 Jason Rumney <jasonr@altavista.net>
16771
16772 * w32term.c (dumpglyphs): Always fill background for italic fonts.
16773
167741999-05-03 Eli Zaretskii <eliz@is.elta.co.il>
16775
16776 * dired.c (make_time): Make argument type be time_t.
16777
167781999-05-02 Eli Zaretskii <eliz@is.elta.co.il>
16779
16780 * msdos.c (unibyte_display_via_language_environment): Add extern.
16781
83c8f461 167821999-05-02 Richard M. Stallman <rms@gnu.org>
26901792
DL
16783
16784 * xdisp.c (display_text_line): Convert unibyte char to multibyte
16785 if unibyte_display_via_language_environment is set.
16786 (unibyte_display_via_language_environment):
16787 Variable moved from xfns.c and elsewhere.
16788 (syms_of_xfns): Set up Lisp var.
16789
16790 * xfns.c (unibyte_display_via_language_environment):
16791 Variable moved to xdisp.c.
16792 (syms_of_xfns): Don't set up Lisp var here.
16793
16794 * msdos.c (unibyte_display_via_language_environment):
16795 Variable moved to xdisp.c.
16796 (syms_of_msdos): Don't set up Lisp var here.
16797
16798 * w32fns.c (unibyte_display_via_language_environment):
16799 Variable moved to xdisp.c.
16800 (syms_of_w32fns): Don't set up Lisp var here.
16801
168021999-05-02 Andrew Innes <andrewi@gnu.org>
16803
16804 * s/ms-w32.h (HAVE_FSYNC): New macro.
16805 (fsync): Map to _commit.
16806 (ftruncate): Map to _chsize.
16807
16808 * w32term.c (dumpglyphs): On Windows NT, do output in Unicode even
16809 for ASCII, if enabled, to avoid memory allocation overhead for
16810 implicit Unicode conversion. Also, recognize that ASCII and
16811 Latin-1 have a trivial conversion to Unicode, so x_2byte_buffer
16812 already contains the Unicode characters in that case.
16813 (construct_drag_n_drop): Remove old code that was
16814 trashing the drop location.
16815
16816 * w32select.c (Fw32_set_clipboard_data): Undo last change to add
16817 nlines to encoding_buffer_size (real bug was in a ccl program in
16818 lisp/international/coding.el).
16819
16820 * w32reg.c (w32_get_string_resource): Check for name in current
16821 user area, and if not found look in the local machine area.
16822
16823 * w32fns.c (w32_list_bdf_fonts): Initialize n_fonts.
16824 (Fw32_shell_execute): New function; used to support browse-url.
16825 (syms_of_w32fns): Register it.
16826 (w32_load_system_font): Force max width to be average
16827 char width for fixed-pitch fonts, to avoid unnecessary redisplay
16828 slowdown.
16829 (x_to_w32_charset): Define VIETNAMESE_CHARSET if not
16830 already defined.
16831 (syms_of_w32fns): Set Vw32_phantom_key_code to 255.
16832
16833 * unexw32.c (get_section_info): Dump back the entire EMDATA
16834 section if we can put Emacs' initialized data in a separate
16835 section, otherwise use the my_begdata/my_edata method.
16836
16837 * makefile.nt ($(BLD)\w32term.obj): Add dependency on w32heap.h.
16838
16839 * coding.c (decode_eol): Set produced/consumed values to zero if
16840 src_bytes is <= 0 on entry.
16841
168421999-05-02 Jason Rumney <jasonr@altavista.net>
16843
16844 * w32term.c (w32_write_glyphs, w32_clear_end_of_line,
16845 w32_clear_frame, clear_cursor, x_display_bar_cursor,
16846 x_display_box_cursor, x_set_window_size): Use phys_cursor_on
16847 field in frame.
16848 (do_line_dance): Updated WRT xterm.c. Use macros where possible.
16849 (dumprectangle): Take into account the width of a left-side
16850 scroll bar.
16851
16852 * w32proc.c (sys_kill): Attach to current foreground thread
16853 when grabbing focus; necessary on NT 5.0.
16854
16855 * w32fns.c (w32_wnd_proc) [WM_PAINT]: Use rectangle from
16856 GetUpdateRect rather than BeginPaint.
16857 (w32_wnd_proc): Attach to current foreground thread
16858 when grabbing focus; necessary on NT 5.0.
16859 (w32_wnd_proc) [W32_DEBUG_DISPLAY]: Add output for
16860 debugging display messages.
16861 (w32_to_x_charset): Put wildcard last in unknown charsets to avoid
16862 false matching.
16863
168641999-05-02 Kenichi HANDA <handa@etl.go.jp>
16865
16866 * coding.c (setup_raw_text_coding_system): Call
16867 setup_coding_system to initialize the fields of struct
16868 coding_system correctly.
427ec082 16869
26901792
DL
168701999-04-26 Kenichi HANDA <handa@etl.go.jp>
16871
16872 * xterm.c (x_list_fonts): Fix previous change.
16873
168741999-04-26 Richard Stallman <rms@gnu.org>
16875
16876 * config.in (HAVE_LIBXP): Add #undef.
16877 * Makefile.in (LIB_MOTIF_EXTRA): Check HAVE_LIBXP.
16878
168791999-04-12 Ken'ichi Handa <handa@gnu.org>
16880
16881 * xterm.c (x_list_fonts): Trap X errors so that Emacs doesn't die
16882 by them.
16883
168841999-04-12 Karl Heuer <kwzh@gnu.org>
16885
16886 * s/freebsd.h (BSD_SYSTEM): Define for FreeBSD 4 as with FreeBSD 3.
16887
168881999-04-11 Ken'ichi Handa <handa@gnu.org>
16889
16890 * fontset.c (Fset_fontset_font): Fix previous change.
16891
168921999-04-09 Ken'ichi Handa <handa@gnu.org>
16893
16894 * fontset.c (Fquery_fontset): Check for fontset aliases here.
16895 (Fnew_fontset, Fset_fontset_font): Don't check for them here.
16896
168971999-04-08 Richard Stallman <rms@gnu.org>
16898
16899 * process.c (Faccept_process_output): Check validity of PROCESS.
16900
169011999-04-08 Eli Zaretskii <eliz@gnu.org>
16902
16903 * msdos.c (jp_kbd_translate_table): Fix the other \ key.
16904
169051999-04-07 Richard Stallman <rms@gnu.org>
16906
16907 * xfns.c (x_set_font): Fix error message.
16908
16909 * fontset.c (Fquery_fontset): Don't check for fontset aliases here.
16910 (Fnew_fontset, Fset_fontset_font): Check for them here.
16911 (Ffontset_info, Fnew_fontset, Fset_fontset_font):
16912 Fix error message syntax.
16913
16914 * buffer.c (Fmake_indirect_buffer): Copy multibyte status
16915 from the base buffer.
16916 (Fset_buffer_multibyte): Copy new multibyte status
16917 into the buffer's indirect buffers.
16918
169191999-04-07 Ken'ichi Handa <handa@gnu.org>
16920
16921 * fns.c (base64_encode_1): Don't add unnecessary newline at the
16922 tail.
16923
169241999-04-06 Richard Stallman <rms@gnu.org>
16925
16926 * dired.c (Ffile_attributes): Doc fix.
16927
16928 * keymap.c (Faccessible_keymaps): Really initialize i_byte.
16929 Convert 0200 to meta only in a unibyte string.
16930 (Fkey_description): Likewise.
16931
16932 * eval.c (do_autoload): Preserve match data.
16933
169341999-04-06 Kenichi HANDA <handa@etl.go.jp>
16935
16936 * w32fns.c (x_to_w32_font): Provide sufficient buffer to
16937 encode_coding to avoid carryover.
16938
16939 * coding.c: Add comments for decode_coding and encode_coding.
16940
16941 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>: Fix bug of handling
16942 a composite character by skipping its leading code.
16943 <CCL_WriteMultibyteChar2>: Handle non-ascii single byte character
16944 correctly.
16945
16946 * coding.c: Add comments for decode_coding and encode_coding.
16947
16948 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>: Fix bug of handling
16949 a composite character by skipping its leading code.
16950 <CCL_WriteMultibyteChar2>: Handle non-ascii single byte character
16951 correctly.
16952
169531999-04-06 Eli Zaretskii <eliz@gnu.org>
16954
16955 * msdos.c (dos_rawgetc): Don't zero out c if private translation
16956 table was used.
16957 (jp_kbd_translate_table): Support C-\.
16958 (it_kbd_translate_table): Map `>' correctly.
16959 (it_keyboard): Add `>'.
16960
169611999-04-06 Richard Stallman <rms@gnu.org>
16962
16963 * intervals.c (graft_intervals_into_buffer): Turn off
16964 inhibit_modification_hooks around calling Fset_text_properties.
16965
169661999-04-05 Kenichi HANDA <handa@etl.go.jp>
16967
16968 * xterm.c (dumpglyphs): Be sure to fill the whole background of
16969 glyphs.
16970
169711999-04-05 Eli Zaretskii <eliz@gnu.org>
16972
16973 * msdos.c (jp_kbd_translate_table): Fix last change.
16974
169751999-04-04 Eli Zaretskii <eliz@gnu.org>
16976
16977 * msdos.c (struct kbd_translate): New struct, for key translation
16978 tables private to certain national keyboard layouts.
16979 (struct dos_keyboard_map): Add a pointer to a private translation
16980 table.
16981 (jp_kbd_translate_table): Private table for the Japanese
16982 keyboard.
16983 (jp_keyboard): Japanese keyboard layout.
16984 (it_kbd_translate_table): Private table for the Italian keyboard.
16985 (it_keyboard): Use it_kbd_translate_table.
16986 (keyboard_layout_list): Add the Japanese keyboard.
16987 (dos_rawgetc): Use the keyboard-private translation table, if
16988 available.
16989 (abort) [__DJGPP_MINOR__ >= 2]: Raise SIGABRT.
16990
169911999-04-02 Kenichi HANDA <handa@etl.go.jp>
16992
16993 * xdisp.c (redisplay_window): When we call compute_motion with
16994 HPOS got from w->last_point_x, call it with DID_MOTION 1.
16995 (display_text_line): Stop the loop for processing overlay strings
16996 when we reach the right edge of the window.
16997
83c8f461 169981999-03-31 Richard M. Stallman <rms@gnu.org>
26901792
DL
16999
17000 * doc.c (get_doc_string): When UNIBYTE and DEFINITION are 0,
17001 let the data control whether string is unibyte.
17002
170031999-03-30 Richard M. Stallman <rms@gnu.org>
17004
17005 * macros.c (Fexecute_kbd_macro): Save real_this_command.
17006 (pop_kbd_macro): Restore the saved real_this_command.
17007 (Fcall_last_kbd_macro): Set real_this_command to the macro.
17008
170091999-03-26 Richard M. Stallman <rms@gnu.org>
17010
17011 * buffer.c (Fset_buffer_modified_p): Don't lock or unlock
17012 if buffer-file-name is nil.
17013
170141999-03-25 Jason Rumney <jasonr@altavista.net>
17015
17016 * w32select.c (Fw32_set_clipboard_data): Take into account line
17017 ends when calculating clipboard storage needed for non-ASCII text.
17018
170191999-03-25 Andrew Innes <andrewi@gnu.org>
17020
17021 * makefile.nt (PREPARED_HEADERS): Change name of paths.h to epaths.h.
17022 (epaths.h): Renamed from paths.h.
427ec082
SS
17023 (clean):
17024 ($(BLD)\filelock.obj):
17025 ($(BLD)\lread.obj):
26901792
DL
17026 ($(BLD)\w32fns.obj): Renamed paths.h to epaths.h.
17027
170281999-03-23 Ken'ichi Handa <handa@gnu.org>
17029
17030 * coding.c (encode_coding_iso2022): Initialize dummy arguments to
17031 ENCODE_ISO_CHARACTER for the previous change on this macro.
17032
170331999-03-23 Kenichi Handa <handa@etl.go.jp>
17034
17035 * xdisp.c (decode_mode_spec_coding): Handle integer value in
17036 eoltype correctly for backward compatibility.
17037
170381999-03-20 Kenichi HANDA <handa@etl.go.jp>
17039
17040 * coding.c (ENCODE_ISO_CHARACTER): Check validity of CHARSET. If
17041 invalid, produce the buffer internal byte sequence without encoding.
17042
170431999-03-19 Karl Heuer <kwzh@gnu.org>
17044
17045 * editfns.c (Fformat): Accept %i format.
17046
170471999-03-17 Karl Heuer <kwzh@gnu.org>
17048
17049 * filelock.c (get_boot_time): Test tempname, not filename.
17050
170511999-03-17 Jason Rumney <jasonr@altavista.net>
17052
e5619f6b
JR
17053 * w32bdf.h: Merged patches from Meadow; introduce bitmap cache to
17054 speed display.
17055
17056 * w32bdf.c: Merged patches from Meadow; introduce bitmap cache to
17057 speed display.
17058 (get_cached_font_char, cache_char_offset, get_bitmap_with_cache)
17059 New functions.
17060 (w32_free_bdf_font, seek_char, w32_get_bdf_glyph, w32_BDF_TextOut)
17061 Use bitmap cache.
26901792
DL
17062
17063 * w32fns.c (enum_font_cb2): Set the font height to be the
17064 character height, not the cell height.
17065 (Fw32_select_font): Initialize font dialog with current default font.
17066 (Vw32_system_coding_system): New variable.
17067 (w32_strict_filenames): Add comment.
17068 (w32_to_x_font): Decode font name using Vw32_system_coding_system.
427ec082 17069 (x_to_w32_font): Encode font name using Vw32_system_coding_system.
26901792
DL
17070 (syms_of_w32fns): Add w32-system-coding-system.
17071
170721999-03-15 Richard M. Stallman <rms@gnu.org>
17073
17074 * xterm.c (XTread_socket) <ConfigureNotify>:
17075 If cursor pos is outside the new frame size, mark cursor as off.
17076
170771999-03-14 Ken'ichi Handa <handa@gnu.org>
17078
17079 * xdisp.c (try_window_id): Initialize val.ovstring_chars_done to 0.
17080
17081 * xterm.c (x_load_font): Trap X errors so that Emacs doesn't die
17082 by them.
17083
170841999-03-14 Richard M. Stallman <rms@gnu.org>
17085
17086 * macros.c (Fexecute_kbd_macro): Initialize executing_macro_iterations
17087 at beginning.
17088
170891999-03-14 Jason Rumney <jasonr@altavista.net>
17090
17091 * w32fns.c (w32_strict_fontnames): New variable.
17092 (Fx_create_frame): Formatting fix.
17093 (w32_load_system_font): Keep trying to load non-existant font
17094 if w32_strict_fontnames is nil. Formatting fix.
17095 (syms_of_w32fns): Add w32-strict-fontnames.
17096
17097 * w32term.c (W32_TEXTOUT): Do not multiply nchars by charset_dim.
17098 (dumpglyphs): Formatting fixes.
17099
171001999-03-14 Geoff Voelker <voelker@cs.washington.edu>
17101
17102 * w32fns.c (w32_wnd_proc): Handle WM_GETMINMAXINFO message.
17103
171041999-03-10 Karl Heuer <kwzh@gnu.org>
17105
17106 * puresize.h (BASE_PURESIZE): Increase to 505000.
17107
171081999-03-09 Richard M. Stallman <rms@gnu.org>
17109
17110 * emacs.c (main) [CLASH_DETECTION]: Call init_filelock.
17111
17112 * filelock.c (init_filelock): New function.
17113
171141999-03-09 Dave Love <fx@gnu.org>
17115
17116 * fileio.c (Ffile_directory_p): Doc fix.
17117
83c8f461 171181999-03-05 Richard M. Stallman <rms@gnu.org>
26901792
DL
17119
17120 * coding.c (setup_coding_system): Check for CODING_SYSTEM = nil.
17121
171221999-03-08 Richard M. Stallman <rms@gnu.org>
17123
17124 * filelock.c (get_boot_time): Reduce scope of #ifdef BOOT_TIME
17125 to only the part that uses get_boot_time_1.
17126
171271999-03-07 Dave Love <fx@gnu.org>
17128
17129 * fileio.c (Finsert_file_contents): Use xfree.
17130
171311999-03-06 Kenichi Handa <handa@etl.go.jp>
17132
17133 * Makefile.in (callproc.o, coding.o, fileio.o, msdos.o, process.o,
17134 term.o, xselect.o): Depend on ccl.h.
17135
171361999-03-05 Geoff Voelker <voelker@cs.washington.edu>
17137
17138 * makefile.nt: Remove common multiple file compilation commands.
17139
171401999-03-04 Takeshi YAMADA <yamada@cslab.kecl.ntt.co.jp>
17141
17142 * fns.c (Fbase64_encode_string): Allocate sufficient memory for
17143 newlines added when the arg NO-LINE-BREAK is nil.
17144
171451999-03-04 Karl Heuer <kwzh@gnu.org>
17146
17147 * search.c (Fstring_match, Fposix_string_match): Doc fix.
17148
17149 * buffer.c (syms_of_buffer): Doc fix for case-fold-search.
17150
171511999-03-04 Dave Love <fx@gnu.org>
17152
17153 * term.c (term_init): Use xmalloc, not malloc.
17154
17155 * callproc.c (Fcall_process): Use xmalloc, xfree.
17156
171571999-03-03 Andreas Schwab <schwab@gnu.org>
17158
17159 * eval.c (Fdefconst): Doc fix.
17160
171611999-03-01 Kenichi Handa <handa@etl.go.jp>
17162
17163 * coding.c: Comment for ISO 2022 encoding mechanism modified.
17164
171651999-03-01 Eli Zaretskii <eliz@gnu.org>
17166
17167 * w16select.c (get_clipboard_data): Always stop at the first null byte.
17168
171691999-02-28 Richard M. Stallman <rms@gnu.org>
17170
17171 * filelock.c (get_boot_time): Support FreeBSD way to read boot-time.
17172
17173 * cmds.c (internal_self_insert): Calculate column properly
17174 in overwrite-of-tab case.
17175
171761999-02-27 Andreas Schwab <schwab@gnu.org>
17177
17178 * emacs.c (main) [DOUG_LEA_MALLOC]: Don't use unsetenv, it calls
17179 malloc in glibc 2.1.
17180
171811999-02-26 Richard Stallman <rms@gnu.org>
17182
17183 * Makefile.in: paths.h and paths.in renamed to epaths.h and epaths.in.
17184
17185 * epaths.in: Renamed from paths.in.
17186 This avoids a conflict with a system header file paths.h on GNU/Linux.
17187
17188 * callproc.c, lread.c, w32fns.c, xfns.c, xrdb.c:
17189 Use epaths.h istead of paths.h.
17190
171911999-02-26 Andreas Schwab <schwab@gnu.org>
17192
17193 * emacs.c (main) [DOUG_LEA_MALLOC]: Work around a bug in glibc's
17194 malloc.
17195
171961999-02-25 Dave Love <fx@gnu.org>
17197
17198 * buffer.c (syms_of_buffer): Doc fix for enable-multibyte-characters.
17199
172001999-02-25 Richard Stallman <rms@gnu.org>
17201
17202 * filelock.c (get_boot_time): Use WTMP_FILE for file name.
17203 (WTMP_FILE): Default definition in case not defined.
17204 (get_boot_time_1): Test that file exists before trying to read it.
427ec082 17205
26901792
DL
172061999-02-25 Ken'ichi Handa <handa@gnu.org>
17207
17208 * keymap.c (push_key_description): If enable-multibyte-characters
17209 is nil and C is single byte, push C as is.
17210
172111999-02-24 Kenichi Handa <handa@etl.go.jp>
17212
17213 * keymap.c (push_key_description): If enable-multibyte-characters
17214 is non-nil, try to convert unibyte character to multibyte. For
17215 invalid multibyte character, show all bits by octal form.
17216 (Fsingle_key_description): Check the validity of charset for a
17217 generic character.
17218
172191999-02-23 Richard M. Stallman <rms@gnu.org>
17220
17221 * fileio.c (Ffile_regular_p): Undo previous change.
17222
17223 * eval.c (Fdefconst): Doc fix.
17224
17225 * filelock.c (get_boot_time): Don't use BUFSIZ.
17226
172271999-02-22 Andrew Innes <andrewi@gnu.org>
17228
17229 * makefile.nt ($(BLD)\w32bdf.obj): Add missing continuation character.
17230 (EXTRA_LINK): Do version test with strings.
17231
172321999-02-22 Andreas Schwab <schwab@gnu.org>
17233
17234 * fns.c (Fbase64_encode_string): Fix last change.
17235
17236 * termhooks.h (event_kind): Add user_signal.
17237
17238 * keyboard.c (Qusr1_signal, Qusr2_signal): New variables.
17239 (syms_of_keyboard): Initialize them.
17240 (lispy_user_signals): New variable.
17241 (make_lispy_event): Handle user_signal event type.
17242
17243 * emacs.c: Don't define Qusr1_signal and Qusr2_signal.
17244 (syms_of_emacs): Don't initialize them.
17245 (handle_USR1_signal, handle_USR2_signal): Set event type to
17246 user_signal instead of non_ascii_keystroke, and use plain integers
17247 as code instead of Lisp symbols.
17248
172491999-02-21 Eli Zaretskii <eliz@delysid.gnu.org>
17250
17251 * fileio.c: (lstat) [!S_ISLNK]: Use stat instead of lstat.
17252
172531999-02-21 Richard Stallman <rms@gnu.org>
17254
17255 * filelock.c (get_boot_time_1): Put this in #ifdef BOOT_TIME.
17256
17257 * print.c (print_error_message): Don't crash if (cdr data)
17258 is not a list.
17259
172601999-02-21 Eli Zaretskii <eliz@gnu.org>
17261
17262 * fileio.c (lstat) [!S_ISLNK]: Use stat instead of lstat.
17263
172641999-02-20 Andrew Innes <andrewi@gnu.org>
17265
17266 * vm-limit.c (memory_warnings) [WINDOWSNT]: Reset lim_data on each
17267 run, since size can vary from run to run.
17268
17269 * makefile.nt (EXTRA_LINK, LINK_FLAGS): Ensure base relocation
17270 data is included, to enable profiling.
17271 ($(EMACS)): Map file not needed for emacs.exe.
17272
17273 * emacs.c (main): [!SYSTEM_MALLOC]: Call realloc and free as well
17274 as malloc before calling uninterrupt_malloc, for consistency.
17275 This also enables profiling to work on WINDOWSNT.
17276
172771999-02-18 Richard Stallman <rms@gnu.org>
17278
17279 * Makefile.in (emacs.o): Depend on termhooks.h.
17280 (filelock.o): Depend on systime.h.
17281
172821999-02-18 Ken'ichi Handa <handa@gnu.org>
17283
17284 * coding.c (Fdecode_sjis_char): Use %x for formatting error message.
17285 (Fdecode_big5_char): Likewise.
17286
172871999-02-17 Richard Stallman <rms@gnu.org>
17288
17289 * insdel.c (adjust_markers_for_replace): When doing an insertion
17290 (replacing a region of zero length), handle markers at the
17291 insertion point properly.
17292
172931999-02-17 Andrew Innes <andrewi@gnu.org>
17294
17295 * w32fns.c (Vw32_quit_key): New variable.
17296 (post_character_message): Use it.
17297 (syms_of_w32fns): DEFVAR it.
17298
172991999-02-16 MORIOKA Tomohiko <morioka@jaist.ac.jp>
17300
17301 * fns.c (Fbase64_encode_string): New optional argument `NO_LINE_BREAK'.
17302
173031999-02-16 Richard Stallman <rms@gnu.org>
17304
17305 * filelock.c (within_one_second): New function.
17306 (current_lock_owner): Use that.
17307 (get_boot_time): Use /proc/uptime if available.
17308 Otherwise, if nothing found in wtmp, try wtmp.1.gz and so on.
17309 (get_boot_time_1): New subroutine taken from get_boot_time.
427ec082 17310
26901792
DL
173111999-02-16 Richard Stallman <rms@gnu.org>
17312
17313 * emacs.c (Qusr1_signal, Qusr2_signal): New variables.
17314 (syms_of_emacs): Init and staticpro them.
17315 (handle_USR1_signal): Don't run any code, just queue up an event.
17316 (handle_USR2_signal): Likewise.
17317
173181999-02-16 Eli Zaretskii <eliz@gnu.org>
17319
17320 * dired.c (Ffile_attributes): If the file's size doesn't fit in
17321 an integer, return it as a float. Doc string fixed.
17322
173231999-02-16 Richard Stallman <rms@gnu.org>
17324
17325 * emacs.c (Qusr1_signal, Qusr2_signal): New variables.
17326 (syms_of_emacs): Init and staticpro them.
17327 (handle_USR1_signal): Don't run any code, just queue up an event.
17328 (handle_USR2_signal): Likewise.
17329
173301999-02-15 Kenichi Handa <handa@etl.go.jp>
17331
17332 * coding.c (Fdecode_sjis_char, Fencode_sjis_char): Handle
17333 ASCII correctly. Signal error on invalid characters.
17334 (Fdecode_big5_char, Fencode_big5_char): Likewise.
17335
173361999-02-15 Eli Zaretskii <eliz@gnu.org>
17337
17338 * w16select.c (get_clipboard_data): Work around a bug in Windows95
17339 DOS box which doubles the reported size of text in the clipboard.
17340
173411999-02-15 Kenichi Handa <handa@etl.go.jp>
17342
17343 * coding.c (decode_coding_iso2022): Don't set
17344 coding->composed_chars to 0 here.
17345 (setup_coding_system): Set coding->composed_chars to 0 here.
17346
173471999-02-10 Richard Stallman <rms@gnu.org>
17348
17349 * fileio.c (Ffile_regular_p): Use lstat.
17350
173511999-02-09 Richard Stallman <rms@gnu.org>
17352
17353 * unexelf.c (HAS_SBSS_SECTION): Define this in some cases.
17354 (unexec): Test this instead of specific systems.
17355
17356 * m/macppc.h: New file.
17357
173581999-02-08 Dave Love <fx@gnu.org>
17359
17360 * fns.c (Fyes_or_no_p, Fy_or_n_p): Doc fix.
17361
173621999-02-08 Ken'ichi Handa <handa@gnu.org>
17363
17364 * coding.c (ccl_coding_driver): On encoding, coding->produced_char
17365 should be set to coding->produced.
17366
173671999-02-07 Paul Fisher <rao@gnu.org>
17368
17369 * fns.c (IS_BASE64_IGNORABLE, READ_QUADRUPLET_BYTE): New macros.
17370 (base64_decode_1): Use READ_QUADRUPLET_BYTE.
17371
173721999-02-07 Markus Rost <markus.rost@mathematik.uni-regensburg.de>
17373
17374 * editfns.c (Fformat): Doc fix.
17375
173761999-02-06 Richard Stallman <rms@gnu.org>
17377
17378 * process.c (syms_of_process): defsubr it.
17379 (Fprocess_running_child_p): New function.
17380
173811999-02-05 Andrew Innes <andrewi@gnu.org>
17382
17383 * w32term.c (construct_drag_n_drop): Call DraqQueryPoint before
17384 recording drop position.
17385
173861999-02-05 Ken'ichi Handa <handa@gnu.org>
17387
17388 * coding.c (encode_coding_iso2022): Before writing out an invalid
17389 code, reset graphic planes and registers if necessary.
17390
17391 * term.c (encode_terminal_code): Fix previous change.
17392
173931999-02-04 Eli Zaretskii <eliz@gnu.org>
17394
17395 * w16select.c (last_clipboard_text, clipboard_storage_size): New
17396 static variables.
17397 (set_clipboard_data): Save a copy of the text we put into
17398 clipboard in last_clipboard_text.
17399 (get_clipboard_data): If the clipboard text is identical to what
17400 last_clipboard_text holds, pretend there's no data in the clipboard.
17401
174021999-02-03 Richard Stallman <rms@gnu.org>
17403
17404 * s/gnu.h (NLIST_STRUCT): Add #undef.
17405
174061999-02-03 Eli Zaretskii <eliz@gnu.org>
17407
17408 * w16select.c (Fw16_set_clipboard_data): When the text needs to be
17409 encoded, set its pointer and size as returned by encode_coding.
17410
174111999-02-02 Ken'ichi Handa <handa@gnu.org>
17412
17413 * fns.c (Fset_char_table_default): To handle the case that CH is
17414 an ASCII char, use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
17415
174161999-02-02 Andrew Innes <andrewi@gnu.org>
17417
17418 * w32fns.c (syms_of_w32fns): Change default value of
17419 w32-mouse-move-interval to 0, so that the mouse wheel/rocker on
17420 some mice works properly.
17421
174221999-02-02 Eli Zaretskii <eliz@gnu.org>
17423
17424 * w16select.c (set_clipboard_data): Correctly null-terminate the
17425 string to be put into the Windows clipboard. Use xbuf_addr.
17426
174271999-02-01 Richard Stallman <rms@gnu.org>
17428
17429 * buffer.c (Fset_buffer_multibyte): Error if buffer is indirect.
17430
174311999-01-31 Richard Stallman <rms@gnu.org>
17432
17433 * process.c (process_send_signal): If CURRENT_GROUP is `lambda'
17434 then don't send the signal if the shell owns the terminal.
17435 (Finterrupt_process): Doc change.
427ec082 17436
26901792
DL
174371999-01-31 Andrew Innes <andrewi@gnu.org>
17438
17439 * unexw32.c: (ROUND_UP_DST_AND_ZERO): New macro.
17440 (copy_executable_and_dump_data): Use it to ensure alignment slop
17441 is zeroed.
17442
174431999-01-30 Andrew Innes <andrewi@gnu.org>
17444
17445 * w32.c (init_environment): Change argv[0] to contain the full
17446 path to Emacs.
17447
17448 * emacs.c (main) [WINDOWSNT]: Pass argv to init_environment.
17449
174501999-01-29 Ken'ichi Handa <handa@gnu.org>
17451
17452 * xterm.c (x_new_fontset): For ASCII font, don't use the font name
17453 returned by x_new_font (the resolved one) but use the font name
17454 set in the fontset specification.
17455 (x_load_font): For the height of font, if normarl ascent and
17456 descent value are larger than those in max_bounds field, use the
17457 former.
17458
174591999-01-28 Eli Zaretskii <eliz@gnu.org>
17460
17461 * xdisp.c (decode_mode_spec_coding): Fix previous change.
17462
174631999-01-27 Geoff Voelker <voelker@cs.washington.edu>
17464
17465 * makefile.nt: Use full path to temacs.exe when dumping.
17466
174671999-01-27 Jason Rumney <jasonr@altavista.net>
17468
17469 * w32fns.c (w32_load_system_font): Do not load unlisted fonts if
17470 list was reliable.
17471 (enum_fontex_cb1, enum_fontex_cb2): New functions.
17472 (w32_list_bdf_fonts): New parameter; max_names. Callers updated.
17473 (w32_list_synthesized_fonts): New function.
17474 (w32_list_fonts): Use maxnames. Use EnumFontFamiliesEx when
17475 available instead of EnumFontFamilies. List synthesized fonts if
17476 Vw32_enable_italics is non-nil.
427ec082 17477
26901792
DL
174781999-01-27 Richard Stallman <rms@gnu.org>
17479
17480 * s/ptx4.h (SETUP_SLAVE_PTY): Use the ptem module if it exists.
17481 Don't complain if ttcompat does not exist.
17482
17483 * w32fns.c (x_set_frame_parameters): gcpro as needed.
17484
174851999-01-27 Andrew Innes <andrewi@gnu.org>
17486
17487 * w32fns.c (w32_wnd_proc): Fix bug introduced by previous change;
17488 the lwindow, rwindow and apps keys could not be used as function
17489 keys, because they were being passed to TranslateMessage which
17490 ignores them. Also, key was being changed to SPC.
17491
17492 * makefile.nt: Do make version comparison as strings.
17493
174941999-01-27 Eli Zaretskii <eliz@gnu.org>
17495
17496 * coding.c (syms_of_coding): eol-mnemonic-* variables are now
17497 strings, not characters.
17498
17499 * coding.h: Likewise.
17500
17501 * xdisp.c (decode_mode_spec_coding): Display the EOL type as a
17502 string.
17503
175041999-01-26 Dave Love <fx@gnu.org>
17505
17506 * emacs.c (main): Up-date copyright.
17507
175081999-01-25 Dave Love <fx@gnu.org>
17509
17510 * coding.c (syms_of_coding): Doc fix for inhibit-eol-conversion.
17511
175121999-01-25 Andreas Schwab <schwab@gnu.org>
17513
17514 * eval.c (Fsignal): Move comment to avoid confusing make-docfile.
17515
175161999-01-23 Richard M. Stallman <rms@borg.ai.mit.edu>
17517
17518 * xfns.c (x_set_frame_parameters): gcpro as needed.
17519
17520 * window.c (Fset_window_point): If WINDOW is selected but the
17521 current buffer is not its buffer, don't use Fgoto_char.
17522
175231999-01-22 Richard M. Stallman <rms@gnu.org>
17524
17525 * syntax.c (scan_sexps_forward): Delete duplicate code
17526 to set prev_from_syntax, above start of main loop.
17527 At startinstring, check syntax when checking for a match.
17528
175291999-01-22 Jason Rumney <jasonr@altavista.net>
17530
17531 * w32bdf.c: New file.
17532 * w32bdf.h: New file.
17533 * makefile.nt: Add w32bdf.c and w32bdf.h.
17534
17535 * w32gui.h: Include w32bdf.h.
17536 (W32FontStruct) Add bdf element.
17537
17538 * w32term.h (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_MAX_WIDTH):
17539 Support BDF fonts.
17540
17541 * w32term.c (W32_TEXTOUT): New macro.
17542 (dumpglyphs): Support BDF fonts. Use W32_TEXTOUT macro.
17543 Simplify baseline calculation. Detect SJIS by font, not glyph.
17544 Call SetTextAlign.
17545 (syms_of_w32term): Remove "jisx0212-sjis" from
17546 w32-charset-to-codepage-alist.
17547 Replace "ksc5601" with "ksc5601.1987" in w32-charset-to-codepage-alist.
17548 Add "ksc5601.1992' to w32-charset-to-codepage-alist.
427ec082 17549
26901792
DL
17550 * w32fns.c (Vw32_bdf_filename_alist): New variable.
17551 (x_destroy_bitmap): Returns void not int.
17552 (x_set_border_pixel): Returns void.
17553 (w32_load_bdf_font): New function.
17554 (w32_load_system_font): New function, was w32_load_font. List
17555 fonts before loading. Explicitly set encoding for SJIS fonts.
17556 Set default_ascent to 0 as comment indicates.
17557 (w32_load_font): Call w32_load_system_font and w32_load_bdf_font.
17558 (w32_unload_font): Support BDF fonts.
17559 (w32_to_x_charset): Fix mappings to avoid wildcard mismatches.
17560 Autodetect whether to use koi8-r instead of iso8859-5.
17561 Associate "ksc5601.1987" with HANGUEL_CHARSET.
17562 Associate "ksc5601.1992" with JOHAB_CHARSET.
17563 (x_to_w32_charset): Make consistent with w32_to_x_charset.
17564 (w32_to_x_font): Add resolution.
17565 (x_to_w32_font): Use font resolution to calculate height if supplied.
17566 (w32_font_match): Handle wildcards anywhere within field.
17567 (enumfont_t): Remove unused head pointer.
17568 (enum_font_cb2): Dereference elfLogFont.
17569 (w32_list_bdf_fonts): New function.
17570 (w32_list_fonts): Use one_w32_dispay_info instead of insisting on
17571 valid frame. Remove MessageBox. Support BDF fonts.
17572 (Fw32_find_bdf_fonts): New function.
17573 (syms_of_w32fns): Add Vw32_bdf_filename_alist and
17574 Sw32_find_bdf_fonts.
17575
175761999-01-21 Andrew Innes <andrewi@gnu.org>
17577
17578 * makefile.nt (temacs): Use del to delete file, not rm.
17579
175801999-01-19 Richard Stallman <rms@psilocin.ai.mit.edu>
17581
17582 * keyboard.c (read_key_sequence): Fix previous change.
17583
17584 * xterm.c (same_x_server): Detect treat ":0" and "unix:0"
17585 as the same. Treat "myname:0" as the same as those two.
17586
175871999-01-19 Jason Rumney <jasonr@altavista.net>
17588
17589 * w32fns.c (x_to_w32_charset): Add iso8859-9.
17590 (w32_to_x_charset): Fix charset mappings.
17591
17592 * w32term.c: Remove codepage macros. Remove redundant BIG5 macros.
17593 (dumpglyphs): Move definitions out of block containing goto.
17594 Remove redundant code for BIG5.
17595 Use w32_codepage_for_font instead of
17596 w32_codepage_for_charset. Add cast to int where float
17597 operation is assigned to int.
17598 (Vw32_charset_to_codepage_alist): New variable.
17599 (w32_codepage_for_charset): Removed.
427ec082
SS
17600 (w32_codepage_for_font): New function, replacing
17601 w32_codepage_for_charset.
26901792
DL
17602 (syms_of_w32term): Add and initialize
17603 w32-charset-to-codepage-alist.
17604
176051999-01-17 Richard Stallman <rms@psilocin.ai.mit.edu>
17606
17607 * xselect.c (x_handle_selection_clear): Don't clear the
17608 selection if Emacs still owns it through a different display.
17609
176101999-01-17 Andrew Innes <andrewi@gnu.org>
17611
17612 * w32proc.c: (w32_executable_type): Relax the check to identify
17613 cygwin-compiled applications, because the exact dll name varies
17614 with release. Now only require the name to start "cygwin".
17615
17616 * w32heap.h: (ROUND_UP):
17617 (ROUND_DOWN): New macros.
17618 (need_to_recreate_heap): Renamed to using_dynamic_heap.
17619 (init_heap): New extern.
17620 (data_region_size):
17621 (recreate_heap):
17622 (read_in_bss):
17623 (map_in_heap):
17624 (round_to_next):
17625 (w32_fatal_reload_error):
17626 (get_section_size): Obsolete externs removed.
17627
17628 * w32heap.c: (RVA_TO_PTR): Redefine to convert RVA to address in
17629 current process.
17630 (round_to_next): Obsolete function removed.
17631 (preload_heap_section): New variable.
17632 (data_region_size): Obsolete variable removed.
17633 (allocate_heap): Modified to determine end of static heap section
17634 used during preload, and use that as initial base address for
17635 dynamic heap instead of hard-coded value.
17636 (sbrk): Remove call to allocate_heap; handled by init_heap. Skip
17637 calls to commit or decommit pages when allocating from static heap
17638 section during preload.
17639 (recreate_heap): Obsolete function removed.
17640 (init_heap): New function to initialize internal sbrk heap
17641 variables. Uses static heap section during preload, otherwise
17642 calls allocate_heap to reserve a heap region dynamically.
17643 (round_heap): Use ROUND_UP macro instead of round_to_next.
17644
17645 * unexw32.c: Major rewrite to support cleaner method of dumping; a
17646 static "bss" section is used for heap space during preload, and
17647 bss data is now written to the proper section area when dumping.
17648 (need_to_recreate_heap): Renamed to using_dynamic_heap.
17649 (heap_index_in_executable): Obsolete variable removed.
17650 (data_section): New variable.
17651 (data_start_va): Renamed to data_start.
17652 (data_start_file): Obsolete variable removed.
17653 (bss_section):
17654 (extra_bss_size):
17655 (bss_section_static):
17656 (bss_start_static):
17657 (bss_size_static):
17658 (extra_bss_size_static):
17659 (heap_section): New variables.
17660 (_start): Remove code based on old unexec method. Call init_heap
17661 to initialize sbrk heap.
17662 (close_file_data): Update size of file when closing, so that
17663 unexec doesn't have to work out exact size in advance.
17664 (get_bss_info_from_map_file):
17665 (get_section_size): Obsolete functions removed.
17666 (rva_to_section): Fix minor bug, and add a work-around for a bug
17667 in very old linkers.
17668 (offset_to_section):
17669 (relocate_offset): New functions.
17670 (OFFSET_TO_RVA):
17671 (RVA_TO_OFFSET):
17672 (RVA_TO_SECTION_OFFSET):
17673 (PTR_TO_RVA):
17674 (PTR_TO_OFFSET):
17675 (OFFSET_TO_PTR): New macros.
17676 (get_section_info): Modify to support new unexec method;
17677 determines address ranges in process that need dumping, and COFF
17678 sections where data will be dumped. Allows for static and global
17679 bss data to be in separate ranges. No longer relies on knowledge
17680 of section names.
17681 (copy_executable_and_dump_data_section): Renamed
17682 copy_executable_and_dump_data. Completely rewritten to copy
17683 executable section by section, so that raw data areas can be
17684 expanded to hold dumped data as necessary. Allows for bss data to
17685 be in same section as initialized data. Reduces size of static
17686 heap section to that used during preload.
17687 (dump_bss_and_heap):
17688 (w32_fatal_reload_error):
17689 (read_in_bss):
17690 (map_in_heap): Obsolete functions removed.
17691 (unexec): Rounds off preload heap to nearest page rather than
17692 virtual allocation unit. Modified to match other changes.
17693
17694 * mem-limits.h: (get_lim_data): Use reserved_heap_size instead of
17695 data_region_size.
17696
17697 * makefile.nt: (TEMACS_TMP): New macro.
17698 ($(TEMACS)): Output to TEMACS_TMP from link, use post-link
17699 processor to add static heap section in support of new unexec.
17700
17701 * lastfile.c: Include config.h to pick up data layout pragmas.
17702 [WINDOWSNT]: Remove explicit pragma.
17703
177041999-01-12 Kenichi Handa <handa@etl.go.jp>
17705
17706 * coding.c (Fdecode_sjis_char): Decode Japanese Katakana character
17707 correctly.
17708 (Fencode_sjis_char): Encode Japanese Katakana character correctly.
17709
177101999-01-11 Dave Love <fx@gnu.org>
17711
17712 * coding.c (syms_of_coding): Doc fix for inhibit-eol-conversion.
17713
177141999-01-11 Richard Stallman <rms@psilocin.ai.mit.edu>
17715
17716 * keyboard.c (read_key_sequence): In key-translation-map and
17717 function-key-map, handle symbol with array as fn def.
17718 In function-key-map, handle symbol with keymap as fn def,
17719 and autoloaded definitions.
427ec082 17720
26901792
DL
17721 * puresize.h (BASE_PURESIZE): Increment to 500000.
17722
17723 * print.c (Qtemp_buffer_setup_hook): New variable.
17724 (syms_of_print): Init and staticpro that.
17725 (temp_output_buffer_setup): Run Qtemp_buffer_setup_hook.
17726
177271999-01-11 Kenichi Handa <handa@etl.go.jp>
17728
17729 * insdel.c (del_range_1): Call signal_after_change.
17730 (del_range_byte): Likewise.
17731 (del_range_both): Likewise.
17732 (del_range_2): Don't call signal_after_change.
17733
17734 * xdisp.c (message_dolog): Use insert_1_both to avoid running any
17735 Lisp code here.
17736
177371999-01-07 Richard Stallman <rms@psilocin.ai.mit.edu>
17738
17739 * eval.c (find_handler_clause): If SIG is nil (memory full error),
17740 never run the debugger, and don't bother checking the args
17741 to see whether the debugger should be run.
17742
177431999-01-06 Richard Stallman <rms@psilocin.ai.mit.edu>
17744
17745 * keyboard.c (read_key_sequence):
17746 Tell get_keyelt to look handle autoloads.
17747 Handle symbols defined as keymaps, and autoloaded keymaps.
17748
177491999-01-06 Kenichi Handa <handa@etl.go.jp>
17750
17751 * search.c (search_buffer): Fix previous change.
17752
177531999-01-06 Eli Zaretskii <eliz@gnu.org>
17754
17755 * w16select.c (set_clipboard_data): Terminate the text with a null
17756 character. Don't allow to put binary data into the clipboard.
17757 Return zero in case of success, 1 or 2 otherwise.
17758 (get_clipboard_data): Only bail out if the null character is in
17759 the last 32-byte chunk of clipboard data
17760 (Fw16_set_clipboard_data): Make ok and put_status be unsigned. If
17761 they save binary data, print a message in the echo area saying the
17762 text was not put into the clipboard.
17763
17764 * msdos.c (IT_write_glyphs): Move constant expression out of the loop.
17765
177661999-01-06 Andreas Schwab <schwab@gnu.org>
17767
17768 * systty.h [__GLIBC__ >= 2]: Check __FAVOR_BSD instead of
17769 _BSD_SOURCE, the latter is always defined.
17770
177711999-01-05 Richard Stallman <rms@psilocin.ai.mit.edu>
17772
17773 * fns.c (Frequire): Don't fail to unbind bindings.
17774
177751999-01-02 Richard Stallman <rms@psilocin.ai.mit.edu>
17776
17777 * emacs.c (main) [DOUG_LEA_MALLOC]: Don't call r_alloc_reinit.
17778
17779 * charset.c (Ffind_charset_region): Fix doc typo.
17780
177811998-12-31 Eli Zaretskii <eliz@mescaline.gnu.org>
17782
17783 * msdos.c (IT_write_glyphs): Convert unibyte characters to
17784 multibyte in unibyte buffers only.
17785
17786 * keymap.c (Fdefine_prefix_command): Accept a third argument NAME
17787 and pass it to Fmake_sparse_keymap.
17788
177891998-12-29 Richard Stallman <rms@psilocin.ai.mit.edu>
17790
17791 * alloc.c (MMAP_MAX_AREAS): New macro.
17792 (allocate_vectorlike, make_uninit_multibyte_string): Use that.
17793 (init_alloc_once): Use that.
17794
17795 * s/gnu-linux.h [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it.
17796
17797 * alloc.c (lisp_malloc, lisp_free): New functions.
17798 Use them instead of malloc, xmalloc, and xfree, for Lisp objects.
17799 Don't set allocating_for_lisp in the callers; let lisp_malloc do it.
17800 (n_interval_blocks, n_float_blocks): New variable.
17801 (n_cons_blocks, n_vectors, n_symbol_blocks): New variable.
17802 (n_marker_blocks, n_string_blocks): New variable.
17803 (init_intervals, make_interval): Set a count variable.
17804 Use lisp_malloc instead of setting allocating_for_lisp.
17805 (init_float, make_float, init_cons, Fcons): Likewise.
17806 (allocate_vectorlike, init_symbol, Fmake_symbol): Likewise
17807 (init_marker, allocate_misc, init_strings): Likewise.
17808 (make_uninit_multibyte_string): Likewise.
17809 (gc_sweep, compact_strings): Decrement the count variables.
17810
17811 * alloc.c (uninterrupt_malloc): Don't store Emacs's hooks
17812 into the old_..._hook variables.
17813
178141998-12-28 Richard Stallman <rms@psilocin.ai.mit.edu>
17815
17816 * keyboard.c: In each active map, for each menu bar item, use only
17817 the first submap.
17818 (menu_bar_one_keymap): Initialize menu_bar_one_keymap_changed_items.
17819 (menu_bar_item): Update and test menu_bar_one_keymap_changed_items.
17820 (syms_of_keyboard): Staticpro and init it.
17821
427ec082 17822 * xmenu.c (single_keymap_panes):
26901792
DL
17823
178241998-12-28 Andrew Innes <andrewi@delysid.gnu.org>
17825
17826 * w32fns.c (w32_msg_pump): Ignore WM_NULL message posted to thread
17827 by complete_deferred_msg.
17828 (post_character_message): Cancel all deferred messages when
17829 quit_char is typed, in order to break out of potential deadlocks.
17830 (cancel_all_deferred_msgs): New function.
17831 (complete_deferred_msg): Don't abort if msg not found; may have
17832 been cancelled.
17833 (Fw32_reconstruct_hot_key): Use pre-interned symbols.
17834 (Fw32_send_sys_command): Wait for system command to
17835 complete before returning.
427ec082 17836
26901792
DL
17837 * w32term.c (x_iconify_frame): Wait for frame to be iconified; do
17838 not set async_iconified flag though.
17839
17840 * w32proc.c: (Vw32_start_process_inherit_error_mode): New variable.
17841 (create_child): Use it.
17842 (syms_of_ntproc): Defvar it. Also fix docstrings for
17843 w32-start-process-share-console and w32-start-process-show-window.
17844
17845 * unexw32.c (_start): Force system calls accessing unmounted
17846 devices to fail without prompting.
17847
178481998-12-26 Richard Stallman <rms@psilocin.ai.mit.edu>
17849
17850 * emacs.c (main): Call memory_warnings and uninterrupt_malloc
17851 even when starting the dumped Emacs.
17852
17853 * keymap.c (Fsingle_key_description): Handle (control ?x) etc.
17854 (Fkey_description): Handle lists like vectors.
17855
178561998-12-21 Kenichi Handa <handa@etl.go.jp>
17857
17858 * callint.c (Fcall_interactively) <'C'>: Give Fread_char Qnil
17859 because of the change of the second argument of Fread_char.
17860
17861 * charset.c (Fcharset_after): Check range. If POS is out of
17862 range, return nil.
17863
17864 * keyboard.c (read_char): Don't bind input-method-exit-on-first-char.
17865
17866 * lread.c (Fread_char): Change the meaning of the second argument.
17867 (Fread_event): Likewise.
17868 (Fread_char_exclusive): Likewise.
17869
17870 * print.c (printchar): Fix previous change.
17871
17872 * process.c (read_process_output): Decide the multibyteness of
17873 string given to a process filter by a coding system used for
17874 decoding the process output.
17875
178761998-12-21 Eli Zaretskii <eliz@mescaline.gnu.org>
17877
17878 * xterm.c (dumpglyphs): Don't convert 7-bit ASCII characters via
17879 nonascii-translation-table.
17880 * msdos.c (IT_write_glyphs): Likewise.
17881 * fns.c (concat): Likewise.
17882 * charset.c (unibyte_char_to_multibyte): Likewise.
17883 * insdel.c (copy_text, count_size_as_multibyte): Likewise.
17884
178851998-12-21 Andreas Schwab <schwab@delysid.gnu.org>
17886
17887 * doc.c (Fdocumentation): Change the doc string for prefix
17888 commands to make it a complete sentence in one line.
17889
178901998-12-16 Petri Kaurinkoski <Petri.Kaurinkoski@hut.fi>
17891
17892 * s/irix6-5.h: New file.
17893 * s/irix6-0.h (IRIX6): Define this symbol.
17894 * s/usg5-4.h (TIOCSIGSEND): Don't define this if irix6.
17895 (bcopy, bcmp, bzero): Likewise.
17896 * m/iris4d.h (LIBS_MACHINE): Leave this blank if irix6.5.
17897 (C_SWITCH_MACHINE): New value for irix6.5.
17898
178991998-12-15 Richard Stallman <rms@gnu.org>
17900
17901 * fns.c (Fbase64_decode_region, Fbase64_decode_string):
17902 Do free malloc'd memory even in case of failure. Use xfree, not free.
17903 (Fbase64_encode_region, Fbase64_encode_string): Use xfree, not free.
17904 (base64_decode_1): Don't fail for short lines.
17905
17906 * print.c (printchar): Outputting multibyte characters
17907 to echo area always makes it multibyte.
17908
17909 * search.c (search_buffer): Don't use Boyer-Moore
17910 to search for an invalid multibyte code.
17911 In unibyte case, no need to check whether there are translations
17912 in more than one charset; just set charset_base to 0.
17913
179141998-12-15 Ken'ichi Handa <handa@delysid.gnu.org>
17915
17916 * print.c (printchar): Cancel previous change.
17917
179181998-12-15 Kenichi Handa <handa@etl.go.jp>
17919
17920 * callproc.c: Include "ccl.h".
17921 (Fcall_process): Doc-string modified. Set CODING_MODE_LAST_BLOCK
17922 bit in argument_coding.mode to tell encoding procedure to flush
17923 data. While encoding arguments, if argument_coding uses CCL
17924 program, initialize it again after encoding.
17925 (Fcall_process_region): Doc-string modified. Handle the case that
17926 NARGS is 3.
17927
17928 * ccl.c (CCL_SUCCESS): Don't set ccl->ic.
17929 (ccl_driver) <CCL_End>: Pretend that all source text is consumed.
17930 Set `ic' to the head of this command.
17931 (ccl_driver) <CCL_ReadMultibyteChar2>: Return a single byte 8-bit
17932 code for an invalid code.
17933 (setup_ccl_program): If the arg VEC is nil, skip setting ups
17934 based on VEC.
17935
17936 * charset.c (Qunknown): New variable.
17937 (init_charset_once): Intern and staticpro Qunknown. Initialize
17938 all elements of Vcharset_symbol_table to Qunknown.
17939 (find_charset_in_str): New arg MULTIBYTE. If it is zero, check
17940 unibyte characters only. For an invalid composition sequence, set
17941 CHARSETS[1] to 1.
17942 (Ffind_charset_region): Call find_charset_in_str with an
17943 appropriate MULTIBYTE arg. If undefined charsets are found,
17944 include `unknown' is the return value.
17945 (Ffind_charset_string): Likewise.
17946 (Fsplit_char): If CHAR is invalid, return `(unknown CHAR)'.
17947 (str_cmpchar_id): Max composite character code should be less than
17948 GENERIC_COMPOSITION_CHAR.
17949
17950 * charset.h (find_charset_in_str): Update declaration.
17951
17952 * coding.c (DECODE_DESIGNATION): Jump to label_invalid_code if
17953 final_char is invalid.
17954 (decode_coding): If coding->type is coding_type_ccl, call
17955 ccl_coding_driver even if SRC_BYTES is zero.
17956 (code_convert_region): Update `inserted' correctly after calling
17957 coding->post_read_conversion. Even after the code converter
17958 consumed all source text, call it once more if it is
17959 coding_type_ccl to flush out data.
17960
17961 * fileio.c (Finsert_file_contents): Even if INSERTED is zero, if
17962 CODING is handled by CCL program, call code_convert_region.
17963
17964 * fns.c (string_char_to_byte): Handle invalid multibyte sequence
17965 correctly.
17966 (string_byte_to_char): Likesize.
17967
17968 * print.c (printchar): When outputting a multibyte character to
17969 echo area, always set message_enable_multibyte to 1.
17970
17971 * process.c (read_process_output): If NBYTES is zero and
17972 CODING_MODE_LAST_BLOCK bit is not yet set in coding->mode, set it
17973 and try decoding again.
17974 (Fprocess_send_eof): If the coding system of PROCESS
17975 requires flushing, call send_process with null-string at first.
17976
17977 * w16select.c (Fw16_set_clipboard_data): Call find_charset_in_str
17978 with MULTIBYTE arg 0.
17979 * w32select.c (Fw32_set_clipboard_data): Likewise.
17980 * xselect.c (lisp_data_to_selection_data): Likewise.
17981
179821998-11-30 Richard Stallman <rms@psilocin.ai.mit.edu>
17983
17984 * search.c (Freplace_match): Set OPOINT clearly for the case
17985 where point is in the middle of the text to be replaced.
17986
17987 * xdisp.c (display_text_line): When handling HPOS < 0 after loop,
17988 if compute_motion fails to advance at all, don't back it up.
17989
179901998-12-10 Geoff Voelker <voelker@cs.washington.edu>
17991
17992 * w32.c (w32_get_long_filename): Handle root dirs correctly.
17993
427ec082 17994 * s/ms-w32.h (LOCALTIME_CACHE): Define.
26901792
DL
17995
179961998-12-09 Richard Stallman <rms@gnu.org>
17997
17998 * insdel.c (insert_from_buffer_1): Properly count the size
17999 of output from conversion to multibyte even when input
18000 is split across the gap.
18001
180021998-12-09 Karl Heuer <kwzh@gnu.org>
18003
18004 * keyboard.c: Doc fixes.
18005
18006 * s/irix4-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Increase space.
18007
180081998-12-08 Andrew Innes <andrewi@harlequin.co.uk>
18009
18010 * w32select.c (Fw32_get_clipboard_data): Do not delete isolated CR
18011 characters, only convert CRLF to LF.
18012
180131998-12-08 Geoff Voelker <voelker@cs.washington.edu>
18014
18015 * makefile.nt: Do string comparision of _NMAKE_VER.
18016
180171998-12-06 Eli Zaretskii <eliz@mescaline.gnu.org>
18018
18019 * Makefile.in (msdos.o): Depend on termchar.h, charset.h,
18020 coding.h, and disptab.h
18021
18022 * msdos.c (Vdos_unsupported_char_glyph): New variable.
18023 (syms_of_msdos): DEFVAR_LISP it.
18024 (IT_insert_glyphs, IT_delete_glyphs): New functions which abort Emacs.
18025 (internal_terminal_init): Set up insert_glyphs_hook and
18026 delete_glyphs_hook to call them. Explicitly set char_ins_del_ok to 0.
18027 (unibyte_display_via_language_environment): New variable.
18028 (syms_of_msdos): Devfar it.
18029 (IT_write_glyphs): Honor glyph aliasing via Vglyph_table.
18030 Encode the character codes of the glyphs according to the
18031 terminal_coding in effect.
18032
180331998-12-04 Andreas Schwab <schwab@delysid.gnu.org>
18034
18035 * fns.c (Fstring_as_unibyte): Doc fix.
18036
180371998-12-03 Andreas Schwab <schwab@delysid.gnu.org>
18038
18039 * charset.h: Declare char_valid_p.
18040
180411998-12-03 Eli Zaretskii <eliz@mescaline.gnu.org>
18042
18043 * dosfns.c (dos_cleanup): Flush and fsync the termscript stream.
18044
18045 * msdos.c (init_environment): Record the time we started up.
18046 (IT_reset_terminal_modes): Don't restore the screen if we exit too
18047 fast after startup (aka crash).
18048
180491998-12-02 Geoff Voelker <voelker@cs.washington.edu>
18050
18051 * w32.c (check_windows_init_file): Use decode_env_path when
18052 using EMACSLOADPATH.
18053
180541998-12-02 Jason Rumney <jasonr@altavista.net>
18055
18056 * w32term.c (dumpglyphs): Use unsigned char arrays.
18057 Use FONT_MAX_WIDTH to detect and fudge proportional fonts
18058 for various languages.
18059 Compensate for fonts that have underhangs (e.g., Thai).
18060
18061 * w32term.h (FONT_MAX_WIDTH): New macro.
18062
180631998-12-02 Andrew Innes <andrewi@harlequin.co.uk>
18064
18065 * keyboard.c (Qlanguage_change): New variable.
18066 (syms_of_keyboard): Init it.
18067 (kbd_buffer_get_event) [WINDOWSNT]: Generate language-change events.
18068 (lispy_function_keys) [HAVE_NTGUI]: Remove names for modifier
18069 keys; add name for Escape key; extend to 256 elements.
18070 (parse_modifiers): Make non-static.
18071
18072 * keyboard.h (parse_modifiers): Declare prototype.
18073
18074 * termhooks.h (event_kind) [WINDOWSNT]: Define language_change_event.
18075
18076 * w32fns.c (w32_last_error): Fix cut+paste error.
18077 (Vw32_phantom_key_code): New variable.
18078 (Qhyper, Qsuper, Qmeta, Qalt, Qctrl, Qcontrol, Qshift): New variables.
18079 (syms_of_w32fns): Init and register them.
18080 (reset_modifiers): Use a more precise test for whether Emacs has
18081 keyboard focus. Synchronize state of all keys that can be used as
18082 modifiers, to overcome problems arising from hot-keys.
18083 (w32_key_to_modifier): Be careful not to call intern() to avoid
18084 requiring thread synchronization.
18085 (w32_msg_pump): Handle new WM_EMACS_TOGGLE_LOCK_KEY message.
18086 (w32_wnd_proc): Ensure lock key indicator lights are updated
18087 promptly on Windows 9x, by passing key events on to the system.
18088 (w32_wnd_proc): Use Vw32_phantom_key_code to stop system
18089 responding to Windows key events when not wanted.
18090 (w32_wnd_proc): Undo the mapping of Ctrl-Pause into cancel and
18091 Ctrl-NumLock into pause by the system.
18092 (w32_wnd_proc): Don't translate key combinations containing any
18093 modifiers other than shift (and capslock).
18094 (w32_wnd_proc): Reset modifier key states when receiving focus (we
18095 can't determine the key states until we have keyboard focus).
18096 (Fw32_toggle_lock_key): New function.
18097 (syms_of_w32fns): Defsubr it.
18098
18099 * w32inevt.c (key_event): Use Vw32_phantom_key_code. Undo the
18100 mapping of Ctrl-Pause into cancel, and Ctrl-NumLock into pause.
18101 (w32_console_toggle_lock_key): New function.
18102
18103 * w32term.h (WM_EMACS_TOGGLE_LOCK_KEY): New define.
18104
181051998-11-30 Richard Stallman <rms@psilocin.ai.mit.edu>
18106
18107 * search.c (Freplace_match): Set OPOINT clearly for the case
18108 where point is in the middle of the text to be replaced.
18109
18110 * xdisp.c (display_text_line): When handling HPOS < 0 after loop,
18111 if compute_motion fails to advance at all, don't back it up.
18112
181131998-11-28 Richard Stallman <rms@psilocin.ai.mit.edu>
18114
18115 * xfns.c (Qouter_window_id): New variable.
18116 (syms_of_xfns): Initialize it.
18117 (x_report_frame_params): Set up outer-window-id parameter.
18118
18119 * keymap.c (Fsingle_key_description): Fix previous change.
18120
181211998-11-26 Ken'ichi Handa <handa@delysid.gnu.org>
18122
18123 * lisp.h (Frequire): Update declaration.
18124
181251998-11-26 Kenichi Handa <handa@etl.go.jp>
18126
18127 * ccl.c (ccl_driver) <CCL_TranslateCharacter>: Don't suppress MSB
18128 if the charset is ascii.
18129 (ccl_driver) <CCL_TranslateCharacterConstTbl>: Likewise.
18130
18131 * charset.c (non_ascii_char_to_string): If C has modifier bits,
18132 make an appropriate one byte string.
18133 (char_bytes): Handle the case that C is a single byte char or has
18134 modifier bits.
18135
18136 * charset.h (CHAR_BYTES): If C has modifier bits, return 1.
18137
18138 * cmds.c (internal_self_insert): If C has modifier bits, insert
18139 appropriate one byte char.
18140
181411998-11-25 Richard Stallman <rms@psilocin.ai.mit.edu>
18142
18143 * fns.c (Fstring_as_unibyte, Fstring_as_multibyte):
18144 Clear text properties in the new string.
18145
181461998-11-24 Felix Lee <flee@cygnus.com>
18147
18148 * process.c (read_process_output): Call signal_after_change.
18149
181501998-11-24 Richard Stallman <rms@psilocin.ai.mit.edu>
18151
18152 * buffer.c (syms_of_buffer): Doc fix.
18153
18154 * keyboard.c (syms_of_keyboard): Doc fix.
18155
181561998-11-22 Richard Stallman <rms@psilocin.ai.mit.edu>
18157
18158 * frame.c (Fset_mouse_position): Doc fix.
18159
181601998-11-20 Richard Stallman <rms@psilocin.ai.mit.edu>
18161
18162 * keymap.c (Fmake_keymap): Doc fix.
18163
181641998-11-17 Kenichi Handa <handa@etl.go.jp>
18165
18166 * category.c (word_boundary_p): If C1 or C2 are composite
18167 characters, test their first components.
18168
181691998-11-16 Richard Stallman <rms@sucrose.ai.mit.edu>
18170
18171 * window.c (temp_output_buffer_show): Around temp-buffer-show-hook,
18172 don't do save-excursion, just restore selected window.
18173
18174 * window.c (window_loop): For UNSHOW_BUFFER,
18175 always do consider minibuffer windows.
427ec082 18176
26901792
DL
181771998-11-16 Kenichi Handa <handa@etl.go.jp>
18178
18179 * charset.h (SINGLE_BYTE_CHAR_P): Check if C is negative or not.
18180
18181 * charset.c (non_ascii_char_to_string): If C is negative, signal error.
18182
18183 * lisp.h (CHAR_TABLE_REF): Check if IDX is negative or not.
18184
18185 * s/bsdos4.h: New file.
18186
181871998-11-16 Kenichi Handa <handa@etl.go.jp>
18188
18189 * Makefile.in (abbrev.o): Depend on charset.h
18190 (bytecode.o): Depend on charset.h.
18191
18192 * bytecode.c: Include charset.h.
18193
18194 * abbrev.c: Include charset.h.
18195
18196 * syntax.h (SYNTAX_ENTRY_INT): For a composite character, check
18197 the first component.
18198
181991998-11-13 Ehud Karni <ehud@unix.simonwiesel.co.il>
18200
18201 * m/aviion-intel.h (LIBS_MACHINE): Delete redundant definition.
18202
182031998-11-11 Richard Stallman <rms@gnu.org>
18204
18205 * xterm.c (XTread_socket): Fix previous change in case F == 0.
18206
18207 * s/dgux5-4-3.h (BSD_PGRPS): Add #undef.
18208
18209 * s/dgux4.h (BROKEN_FIONREAD): #undef commented out.
18210 (INTERRUPT_INPUT): #define commented out.
18211
18212 * m/aviion-intel.h: New file.
18213
182141998-11-11 Eli Zaretskii <eliz@delysid.gnu.org>
18215
18216 * fns.c (MAX_ALLOCA): New macro.
18217 (Fbase64_encode_region, Fbase64_encode_string,
18218 Fbase64_decode_region, Fbase64_decode_string): Don't allocate
18219 more than MAX_ALLOCA bytes with alloca; otherwise use xmalloc.
18220
182211998-11-11 Ken'ichi Handa <handa@delysid.gnu.org>
18222
18223 * insdel.c (byte_combining_error): Error message improved.
18224
18225 * charset.c (char_valid_p): Handle a composite character correctly.
18226
182271998-11-11 Kenichi Handa <handa@etl.go.jp>
18228
18229 * charset.c (str_cmpchar_id): Check the byte sequence for
18230 composition more rigidly.
18231 (Fcompose_string): Allow DEL to be composed. Signal error if STR
18232 contains an invalid multibyte sequence.
18233
18234 * xterm.c (x_list_fonts): Don't change the value of maxnames.
18235
182361998-11-10 Andrew Innes <andrewi@harlequin.co.uk>
18237
18238 * w32term.h (struct w32_display_info): New element faked_key.
427ec082
SS
18239 (WM_EMACS_SETKEYBOARDLAYOUT):
18240 (WM_EMACS_REGISTER_HOT_KEY):
26901792 18241 (WM_EMACS_UNREGISTER_HOT_KEY): New message definitions.
427ec082
SS
18242 (LEFT_WIN_PRESSED):
18243 (RIGHT_WIN_PRESSED):
26901792
DL
18244 (APPS_PRESSED): New console keyboard modifier flags.
18245
18246 * w32term.c (convert_to_key_event): Removed.
18247 (is_dead_key): Copied to w32fns.c.
18248 (w32_read_socket): Generate language_change_event. Modify to work
18249 with keyboard handling changes in w32_wnd_proc.
18250
18251 * w32proc.c (sys_kill): Set extended key flag when faking
18252 Ctrl-Break keystrokes.
18253 (Fw32_get_locale_info): Allow LONGFORM parameter to specify an
18254 arbitrary locale property using a numerical index.
18255 (Vw32_valid_codepages): New variable.
427ec082
SS
18256 (enum_codepage_fn):
18257 (Fw32_get_valid_codepages):
18258 (Fw32_get_console_codepage):
18259 (Fw32_set_console_codepage):
18260 (Fw32_get_console_output_codepage):
18261 (Fw32_set_console_output_codepage):
18262 (Fw32_get_codepage_charset):
18263 (Fw32_get_valid_keyboard_layouts):
18264 (Fw32_get_keyboard_layout):
26901792
DL
18265 (Fw32_set_keyboard_layout): New functions, exposing Windows locale
18266 handling functions.
18267 (syms_of_ntproc): Register them.
18268
18269 * w32inevt.c: Include w32term.h and w32heap.h.
18270 (map_keypad_keys):
18271 (Vw32_enable_caps_lock):
18272 (Vw32_enable_num_lock):
18273 (Vw32_pass_lwindow_to_system):
18274 (Vw32_pass_rwindow_to_system):
18275 (Vw32_lwindow_modifier):
18276 (Vw32_rwindow_modifier):
18277 (Vw32_apps_modifier):
18278 (Vw32_scroll_lock_modifier):
18279 (w32_key_to_modifier): Add externs.
18280 (w32_kbd_mods_to_emacs): Recognize Windows keys, Apps key, and
18281 Scroll Lock as potential modifiers; exclude numpad keys from
18282 effect by CapsLock; act on Vw32_enable_caps_lock; remove obsolete
18283 code.
18284 (is_dead_key): Copy from w32fns.c.
18285 (w32_kbd_patch_key): Comment attempt to improve handling of
18286 dead-keys, and system bug relating to same on Windows NT. Work
18287 around the bug by calling ToUnicode and then converting to the
18288 correct codepage.
18289 (map_virt_key): Removed obsolete variable.
18290 (lispy_function_keys): Add extern.
18291 (key_event): Major rework of keyboard input handling: optionally
18292 recognize Windows keys and Apps key as modifiers; optionally treat
18293 NumLock, CapsLock and ScrollLock as function keys; let system
18294 translate keystrokes to characters to avoid system bugs relating
18295 to dead-key handling; preserve shift distinction for control
18296 characters. Remove some obsolete code.
18297
18298 * makefile.nt ($(BLD)\w32inevt.obj): Add dependencies on w32term.h
18299 and w32heap.h.
18300
18301 * w32fns.c (Vw32_pass_optional_keys_to_system): Variable removed.
18302 (Vw32_pass_lwindow_to_system):
18303 (Vw32_pass_rwindow_to_system):
18304 (Vw32_lwindow_modifier):
18305 (Vw32_rwindow_modifier):
18306 (Vw32_apps_modifier):
18307 (Vw32_enable_num_lock):
18308 (Vw32_enable_caps_lock):
18309 (Vw32_scroll_lock_modifier): New variables.
18310 (modifier_set): Return toggle state for Scroll Lock.
18311 (w32_key_to_modifier): New function. Returns chosen modifier bit
18312 for given key.
18313 (w32_get_modifiers): Returns modifier flags for
18314 non-keyboard input events.
18315 (construct_console_modifiers): Renamed from construct_modifiers;
18316 recognize Windows and Apps keys as modifiers.
18317 (w32_get_key_modifiers): New function. Returns modifier flags for
18318 keyboard input events.
18319 (map_keypad_keys): Make non-static. Use second arg as extended
18320 flag.
18321 (w32_grabbed_keys): New variable.
18322 (HOTKEY, HOTKEY_ID, HOTKEY_VK_CODE, HOTKEY_MODIFIERS): New macros.
18323 (register_hot_keys):
18324 (unregister_hot_keys):
18325 (lookup_vk_code):
18326 (w32_parse_hot_key):
18327 (Fw32_register_hot_key):
18328 (Fw32_unregister_hot_key):
18329 (Fw32_registered_hot_keys):
18330 (Fw32_reconstruct_hot_key): New functions to support hotkeys.
18331 (post_character_message): New function.
18332 (w32_msg_pump): Handle new messages for using hotkeys and changing
18333 keyboard layout/language.
18334 (w32_wnd_proc): Major rework of keyboard input handling:
18335 optionally recognize Windows keys and Apps key as modifiers;
18336 optionally treat NumLock, CapsLock and ScrollLock as function
18337 keys; let system translate keystrokes to characters to avoid
18338 system bugs relating to dead-key handling; preserve shift
18339 distinction for control characters; forward keyboard
18340 layout/language changes to lisp; detect and convert hot-key events
18341 to normal keystrokes.
18342 (syms_of_w32fns): Register new functions and variables.
18343 (w32_last_error): New function for use in debugging.
18344
183451998-11-10 Kenichi Handa <handa@etl.go.jp>
18346
18347 * category.h (CATEGORY_SET): Adjusted for the change of
18348 cmpchar_component.
18349 (CATEGORY_SET): Likewise.
18350
18351 * charset.c (cmpchar_component): New arg NOERROR. Check
18352 composition char ID more strictly.
18353 (Fcmpchar_component): Call cmpchar_component with NOERROR arg zero.
18354 (Fcmpchar_cmp_rule): If CHARACTER should be composed relatively,
18355 return 255.
18356 (Fcompose_string): Signal error if STR contains a rule-based
18357 composition character.
18358
18359 * charset.h (cmpchar_component): Proto-type adjusted.
18360
183611998-11-09 Kenichi Handa <handa@etl.go.jp>
18362
18363 * charset.c (string_to_non_ascii_char): Return correct length for
18364 a charset of dimension 2 and composition character.
18365
183661998-11-08 Richard Stallman <rms@sucrose.ai.mit.edu>
18367
18368 * keymap.c (Fsingle_key_description): Handle generic characters.
18369
18370 * process.c (Fprocess_status): Doc fix.
18371
183721998-11-06 Ken'ichi Handa <handa@delysid.gnu.org>
18373
18374 * charset.c (init_charset_once): Fix previous change.
18375
183761998-11-06 Kenichi Handa <handa@etl.go.jp>
18377
18378 * charset.c (string_to_non_ascii_char): Fix previous change.
18379 (char_valid_p): Check the validity of CHARSET by CHARSET_DEFINED_P.
18380
18381 * charset.h (SPLIT_NON_ASCII_CHAR): Check dimension of an invalid
18382 character correctly.
18383 (STRING_CHAR): Handle an invalid charater correctly.
18384
183851998-11-05 Kenichi Handa <handa@etl.go.jp>
18386
18387 * charset.c (string_to_non_ascii_char): Fix previous change.
18388
18389 * charset.h (MAKE_NON_ASCII_CHAR): Check validity of CHARSET.
18390
18391 * editfns.c (Fstring_to_char): Don't return a multibyte character
18392 if STRING is a unibyte string.
18393
18394 * indent.c (MULTIBYTE_BYTES_WIDTH): Check validity of a multibyte
18395 character.
18396
18397 * xdisp.c (display_text_line): Check validity of a multibyte character.
18398 (display_string): Likewise. Handle an invalid character correctly.
18399
184001998-11-05 Karl Heuer <kwzh@gnu.org>
18401
18402 * insdel.c (Fcombine_after_change_execute): Return nil, not junk.
18403 If nothing to do, return immediately.
18404 (syms_of_insdel): Initialize combine_after_change_buffer.
18405
184061998-11-05 Richard Stallman <rms@gnu.org>
18407
18408 * xterm.c (XTread_socket): ButtonPress clears f->mouse_moved.
18409
184101998-11-04 Geoff Voelker <voelker@cs.washington.edu>
18411
18412 * w32term.c (w32_enable_unicode_output): Rename from
18413 w32_no_unicode_output.
18414 (w32_use_unicode_for_codepage, syms_of_w32term): Use new name
18415 and new semantics.
18416
184171998-11-04 Jason Rumney <jasonr@altavista.net>
18418
18419 * w32fns.c (w32_list_fonts): Report an error if a frame has not
18420 been created yet.
18421
18422 * w32term.c (dumpglyphs): Use FRAME_FONT for w32_fill_area.
18423
184241998-11-04 Kenichi Handa <handa@etl.go.jp>
18425
18426 * charset.c (string_to_non_ascii_char): Change the check for the
18427 varidity of multibyte form.
18428 (update_charset_table): Check validity of BYTES. Don't set
18429 bytes_by_char_head here.
18430 (init_charset_once): Set bytes_by_char_head completely.
18431
18432 * frame.c (do_switch_frame): Cancel previous change.
18433
18434 * print.c (print_string): Check validity of a character.
18435 (print): Likewise.
18436
18437 * sysdep.c [nec_ews_svr4]: Extern *_sobuf.
18438
18439 * m/ews4800.h, s/ux4800.h: New files.
18440
184411998-11-03 Theodore Jump <tjump@tertius.com>
18442
18443 * makefile.nt: Compile multiple source files when possible.
18444
18445 * w32faces.c (Qmouse_face): Replace definition with extern decl.
427ec082 18446
26901792
DL
184471998-11-03 Andrew Innes <andrewi@delysid.gnu.org>
18448
18449 * w32.c (stat): GetFileInformationByHandle can legitimately fail,
18450 so don't rely on it succeeding.
18451
18452 * w32fns.c (x_to_w32_font): Specify DEFAULT_CHARSET in the w32
18453 LOGFONT struct if x font doesn't specify the charset.
18454 (x_to_w32_charset): Change >= to == when testing results of
18455 stricmp.
18456
184571998-11-02 Richard Stallman <rms@sucrose.ai.mit.edu>
18458
18459 * fns.c (Frequire): New arg NOERROR.
18460
184611998-11-02 Andrew Innes <andrewi@harlequin.co.uk>
18462
18463 * fileio.c (Fsubstitute_in_file_name) [DOS_NT]: Fix typo.
18464
184651998-10-31 Richard Stallman <rms@psilocin.ai.mit.edu>
18466
18467 * xfaces.c (Qmouse_face): Replace definition with extern decl.
18468 (syms_of_xfaces): Initialization deleted.
18469
18470 * textprop.c (Qmouse_face): Variable definition moved here.
18471 (syms_of_textprop): Initialize it.
18472
18473 * data.c (set_internal): For built-in maybe-local vars,
18474 when BINDFLAG is set, do not mark them as local.
18475
184761998-10-31 Ken'ichi Handa <handa@delysid.gnu.org>
18477
18478 * insdel.c (replace_range): Fix previous change.
18479
184801998-10-31 Kenichi Handa <handa@etl.go.jp>
18481
18482 * editfns.c (Fsubst_char_in_region): Fix previous change.
18483 (Ftranslate_region): Fix previous change.
18484
18485 * fns.c (Fbase64_decode_region): Fix previous change.
18486
18487 * frame.c (do_switch_frame): Update minibuf_window if necessary.
18488
18489 * insdel.c (byte_combining_error): New function.
18490 (CHECK_BYTE_COMBINING_FOR_INSERT): Call byte_combining_error.
18491 (insert_from_string_1): Set *(GPT_ADDR) to 0 before calling
18492 CHECK_BYTE_COMBINING_FOR_INSERT.
18493 (insert_from_buffer_1): Likewise.
18494 (adjust_after_replace): Check the posibility of inhibitted byte
18495 combining correctly.
18496 (replace_range): Before signaling an error for inhibitted byte
18497 combining, recover the buffer in a safe state.
18498 (del_range_2): Check the posibility of inhibitted byte combining
18499 correctly.
18500
185011998-10-30 Andreas Schwab <schwab@delysid.gnu.org>
18502
18503 * xselect.c (Vselection_coding_system): Doc fix.
18504
18505 * fns.c (Fbase64_encode_region): Use SET_PT_BOTH instead of SET_PT
18506 when we have both char and byte position. Fix type clashes.
18507
18508 * eval.c (Fsignal): Use a separate format string when passing
18509 error message string to fatal, in case it contains %'s.
18510
18511 * editfns.c (Fchar_after): Fix type clashes.
18512
18513 * charset.c (Fchar_bytes): Doc fix.
18514 (char_bytes): Fix returned value to match returned type.
18515 (syms_of_charset): Fix type clash in initialisation of
18516 Vauto_fill_chars.
18517
185181998-10-29 Geoff Voelker <voelker@cs.washington.edu>
18519
18520 * w32console.c (initialize_w32_display): Use buffer coords
18521 instead of buffer size (which may be larger than the window).
18522
18523 * fileio.c (init_fileio_once): New function.
18524
18525 * emacs.c (main): Invoke init_fileio_once.
18526
185271998-10-28 Paul Eggert <eggert@twinsun.com>
18528
18529 * xterm.c (XTread_socket): Check the returned value of
18530 XmbLookupString more carefully.
18531
185321998-10-28 Kenichi Handa <handa@etl.go.jp>
18533
18534 * coding.c (DECODE_CHARACTER_ASCII): Check validity of inserted code.
18535 (DECODE_CHARACTER_DIMENSION1): Likewise.
18536 (DECODE_CHARACTER_DIMENSION2): Likewise.
18537 (decode_coding_sjis_big5): Check the 2nd byte of SJIS correctly.
18538
18539 * editfns.c (Fsubst_char_in_region): Fix previous change.
18540 (Ftranslate_region): Fix previous change.
18541
18542 * insdel.c (check_markers): Check if markers are at character boundry.
18543 (adjust_markers_for_insert): Fix previous change.
18544 (count_combining_before): Don't limit the check at BEGV.
18545 (count_combining_after): Don't limit the check at ZV.
18546 (CHECK_BYTE_COMBINING_FOR_INSERT): New macro.
18547 (insert_1_both): Call CHECK_BYTE_COMBINING_FOR_INSERT.
18548 (insert_from_string_1): Likewise.
18549 (insert_from_buffer_1): Likewise.
18550 (adjust_after_replace): Inhibit bytes combined across region
18551 boundary. Update end_unchanged correctly.
18552 (replace_range): Call CHECK_BYTE_COMBINING_FOR_INSERT. Update
18553 end_unchanged correctly.
18554 (del_range_2): Inhibit bytes combined across region boundary.
18555 Update end_unchanged correctly.
18556
185571998-10-27 Geoff Voelker <voelker@cs.washington.edu>
18558
18559 * w32.c (check_windows_init_file): Also look in load path specified
18560 in environment.
18561
18562 * w32console.c (Fset_message_beep): Recognize 'silent.
18563 (w32_sys_ring_bell): Do nothing for the 'silent sound.
427ec082 18564
26901792
DL
18565 * w32fns.c (w32_color_map_lookup): Remove duplicate definition.
18566
18567 * w32select.c (Vnext_selection_coding_system): New variable.
18568 (syms_of_w32select): DEFVAR_LISP it.
18569 (Fw32_set_clipboard_data): Use Vnext_selection_coding_system if
18570 non-nil. Always convert multibyte strings.
18571 (Fw32_get_clipboard_data): Use Vnext_selection_coding_system if
18572 non-nil. Always convert a string that includes non-ASCII characters.
427ec082 18573
26901792
DL
185741998-10-27 Richard Stallman <rms@psilocin.ai.mit.edu>
18575
18576 * fns.c (Fbase64_decode_string): Doc fix.
18577 (Fbase64_decode_region, Fbase64_encode_string Fbase64_encode_region):
18578 Likewise.
18579
185801998-10-27 Dave Love <fx@gnu.org>
18581
18582 * fns.c (Fbase64_decode_region, Fbase64_encode_region): Fix
18583 newline in doc string.
18584
185851998-10-27 Kenichi Handa <handa@etl.go.jp>
18586
18587 * editfns.c (Fsubst_char_in_region): Correctly handle the case
18588 that byte combining before happens.
18589 (Ftranslate_region): Likewise.
18590
18591 * insdel.c (adjust_after_replace): Correctly handle the case that
18592 both byte combining before and byte combining after happen.
18593 (replace_range): Likewise.
18594
185951998-10-26 Kenichi Handa <handa@etl.go.jp>
18596
18597 * category.c (syms_of_category): Doc-string modified.
18598
18599 * coding.c (code_convert_region): Kill the work buffer created by
18600 pre-write-conversion.
18601
186021998-10-25 Jason Rumney <jasonr@altavista.net>
18603
18604 * emacs.c (main) [HAVE_NTGUI]: Invoke syms_of_fontset().
18605
186061998-10-23 Kenichi Handa <handa@etl.go.jp>
18607
18608 * coding.c (code_convert_region): While preserving the orignal
18609 point, pay attention to the byte combining problem.
18610
18611 * fns.c (Fbase64_decode_region): Pay attention to the byte
18612 combining problem.
18613
18614 * insdel.c (adjust_markers_for_insert): Adjust markers by taking
18615 combined_before_bytes and combined_after_bytes into account.
18616 (count_combining_after): Handle the case that LENGTH is zero.
18617 (adjust_after_replace): Record deletion at correct buffer
18618 position. Handle the case that LEN is zero.
18619 (replace_range): Record deletion at correct buffer position.
18620 (del_range_2): Call adjust_makers_for_replace to adjust makers for
18621 combined bytes.
18622
186231998-10-21 Richard Stallman <rms@psilocin.ai.mit.edu>
18624
18625 * alloc.c (Fgarbage_collect): Block input around most of the function.
427ec082 18626
26901792
DL
186271998-10-21 Kenichi Handa <handa@etl.go.jp>
18628
18629 * coding.c (setup_coding_system): Fix setting up
18630 coding->spec.ccl.valid_codes for CCL based coding system.
18631 (code_convert_region): Set point to FROM before inserting the
18632 result of pre-write-funciton. Preserve original point.
18633 (code_convert_string): If coding->type is coding_type_ccl, do
18634 conversion even if the length of conversion region is zero.
18635
18636 * fontset.c: Include frame.h before fontset.h.
427ec082 18637 (list_fonts_func): Fix prototype.
26901792
DL
18638
18639 * frame.c: Include frame.h before fontset.h.
18640
18641 * xterm.c: Likewise.
18642
186431998-10-21 Jason Rumney <jasonr@altavista.net>
18644
18645 * x-list-font.c (Fx_list_fonts): Access frame parameters throught
18646 general macros. Don't call x_list_font directory, instead call a
18647 function set in list_fonts_func.
18648
18649 * fontset.h (list_fonts_func): Fix prototype.
18650
186511998-10-20 Jason Rumney <jasonr@altavista.net>
18652
18653 * makefile.nt (w32fns.c): Add x-list-font.c to dependancies.
18654
18655 * w32faces.c: Update comments referring to obsolete structs.
18656 (allocate_face, copy_face, face_eql, load_font,
18657 Fpixmap_spec_p, free_frame_faces, new_computed_face,
18658 frame_update_line_height, merge_faces, compute_base_face,
18659 Fset_face_attribute_internal): Use fontset support based on xfaces.c.
18660
18661 * w32fns.c: (Vx_pixel_size_width): New global variable.
18662 (unibyte_display_via_language_environment): New global variable.
18663 (x_set_font): Add support for setting fontsets.
18664 (Fx_create_frame): Add check_w32(). Initialize fontsets. Fix
18665 font names to match xlfd-tight-regexp.
18666 (w32_load_font): Rewrite based on x_load_font.
18667 (x_to_w32_charset, w32_to_x_charset): Add character sets. Use
18668 `iso8859-1' rather than `ansi'.
18669 (w32_to_x_font): Remove `-' from font name. Remove the `-' off the
18670 end. Move charset into `charset registry' field.
18671 (enum_font_cb2): Check charsets match. Include width in font list.
18672 (w32_list_fonts): Rewrite based on x_list_fonts.
18673 Moved from w32term.c to have access to enumfont_t struct.
18674 (Fx_list_fonts): w32 specific version eliminated. Include
18675 `x-list-fonts.c'.
18676 (w32_get_font_info, w32_query_font, w32_find_ccl_program): New
18677 functions for fontset support - adapted from x_ equivalents.
18678 (syms_of_w32fns): New lisp variables initialised. Function
18679 pointers for fontset.c set up.
18680
427ec082 18681 * w32term.c: Include fontset.h. Define codepage macros.
26901792
DL
18682 Add ENCODE_BIG5 macro from coding.c.
18683 (w32_no_unicode_output): New variable.
18684 (w32_codepage_for_charset, w32_use_unicode_for_codepage): New
18685 functions.
18686 (BUILD_WCHAR_T, BYTE1, BYTE2): New macros.
18687 (dumpglyphs): Rewrite based on xterm.c equivalent.
18688 (x_new_font): Use functionality provided in fontset.c.
18689 (x_new_fontset): New function based on the one in xterm.c.
18690 (syms_of_w32term): Add w32-no-unicode-output flag.
18691
427ec082 18692 * w32term.h: Remove redundant font_info struct definition.
26901792
DL
18693 (Vx_pixel_size_width_font_regexp,
18694 unibyte_display_via_language_environment): Declare variables.
427ec082 18695 (w32_list_fonts, w32_get_font_info, w32_query_font, w32_load_font):
26901792
DL
18696 Declare functions.
18697 (w32_output): New fields font_baseline and fontset.
18698 (FRAME_FONTSET, FRAME_W32_FONT_TABLE): New macros.
18699
18700 * w32xfns.c: Include charset.h and fontset.h.
18701
187021998-10-20 Richard Stallman <rms@psilocin.ai.mit.edu>
18703
18704 * syntax.c (syms_of_syntax): Fix the setup of Qscan_error.
18705
187061998-10-20 Eli Zaretskii <eliz@mescaline.gnu.org>
18707
18708 * msdos.c (mouse_init): Reset the button press/release info of the
18709 mouse driver.
18710 (mouse_preempted): New variable.
18711 (dos_rawgetc): Don't generate mouse events if mouse is preempted.
18712 (XMenuActivate): Preempt the mouse during menu-handling loop.
18713 Release the current time slice while idling in the menu-handling
18714 loop. Leave the loop only if the user pressed, then released the
18715 same button. Discard all mouse events that are pending in the
18716 event queue before exiting.
18717
187181998-10-19 Richard Stallman <rms@psilocin.ai.mit.edu>
18719
18720 * editfns.c (Fformat): Increase buffer size for floating format.
18721
187221998-10-17 Kenichi Handa <handa@etl.go.jp>
18723
18724 * charset.c (Vauto_fill_chars, Qauto_fill_chars): New variables.
18725 (syms_of_charset): Staticpro and initialize Qauto_fill_chars.
18726 Declare auto-fill-chars as a Lisp variable and initialize it.
18727
18728 * charset.h (Vauto_fill_chars): Extern it.
18729
18730 * cmds.c (internal_self_insert): Check Vauto_fill_chars.
18731
187321998-10-16 Kenichi Handa <handa@etl.go.jp>
18733
18734 * casefiddle.c (casify_object): Use make_string instead of
18735 make_specified_string to cope with byte-combining situation.
18736
18737 * coding.c (decode_coding_iso2022): Set coding->fake_multibyte to
18738 1 when encountered with a code of the range 0x80..0x9F.
18739
187401998-10-14 Eli Zaretskii <eliz@mescaline.gnu.org>
18741
18742 * callproc.c (Fcall_process) [MSDOS]: Use $TMPDIR instead of
18743 trying $TMP and $TEMP, since the former is always set in msdos.c.
18744 (Fcall_process_region) [DOS_NT]: When looking for a place to put
18745 the temporary files, check $TMPDIR as well.
18746
187471998-10-14 Richard Stallman <rms@psilocin.ai.mit.edu>
18748
427ec082 18749 * process.c (exec_sentinel, read_process_output):
26901792
DL
18750 Restore waiting_for_user_input_p after running Lisp code.
18751
18752 * keyboard.c (parse_menu_item): Avoid initialization for Lisp_Object.
18753 (command_loop): Likewise.
18754
187551998-10-14 Kenichi HANDA <handa@etl.go.jp>
18756
18757 * data.c (Faset): Fix previous change.
18758
18759 * fns.c (Ffillarray): Fix previous change.
18760
18761 * insdel.c (adjust_markers_for_combining): This function deleted.
18762 (adjust_markers_for_replace): Correctly adjust marker positions.
18763 Don't record these adjustment because they were recorded already.
18764 (combine_bytes): Don't adjust markers here.
18765
187661998-10-13 Richard Stallman <rms@psilocin.ai.mit.edu>
18767
18768 * minibuf.c (Fdisplay_completion_list): Put on mouse-face properties.
18769
187701998-10-12 Richard Stallman <rms@psilocin.ai.mit.edu>
18771
18772 * keyboard.c (Fclear_this_command_keys): New function.
18773 (syms_of_keyboard): defsubr it.
18774
18775 * macros.c (Fexecute_kbd_macro): Set real_this_command.
18776
187771998-10-12 Kenichi Handa <handa@etl.go.jp>
18778
18779 * ccl.c (CCL_DECODE_SJIS, CCL_ENCODE_SJIS): Swap the definitions.
18780
18781 * charset.c (Fstring): Call make_string instead of
18782 make_string_from_bytes.
18783 (Ffind_charset_region): Include `composition' in the returned list
18784 if the region contains any composite characters.
18785 (Ffind_charset_string): Include `composition' in the returned list
18786 if the string contains any composite characters.
18787 (find_charset_in_str): Handle CMPCHARP arg correctly.
18788
18789 * coding.c (shrink_decoding_region): If a charset other than ascii
18790 is initially designated to G0, don't shrink the region.
18791 (shrink_encoding_region): Likewise.
18792
18793 * data.c (Faset): If ARRAY is a multibyte string, pay attention to
18794 byte-combining situation.
18795
18796 * fns.c (clear_string_char_byte_cache): New function.
18797 (Ffillarray): Handle multibyte string correctly.
18798
18799 * lisp.h (clear_string_char_byte_cache): Extern it.
18800
18801 * xselect.c (lisp_data_to_selection_data): Call
18802 find_charset_in_str with CMPCHARP arg 0.
18803 * w16select.c (Fw16_set_clipboard_data): Likewise.
18804 * w32select.c (Fw32_set_clipboard_data): Likewise.
18805
188061998-10-11 Richard Stallman <rms@psilocin.ai.mit.edu>
18807
18808 * keyboard.c (parse_menu_item): For top level of menu bar,
18809 accept ordinary commands, and treat them just like a keymap.
18810
188111998-10-11 Richard Stallman <rms@sucrose.ai.mit.edu>
18812
18813 * xdisp.c (redisplay_window): Clear w->window_end_valid
18814 before running the window-scroll-functions hook, if appropriate.
18815
188161998-10-10 Richard Stallman <rms@psilocin.ai.mit.edu>
18817
18818 * data.c (Fstring_to_number): Don't recognize floating point
18819 if base is not 10.
18820
18821 * window.c (window_loop): New alternative CHECK_ALL_WINDOWS.
18822 (check_all_windows): New function for debugging tests.
18823 (syms_of_window): Initialize it.
18824
18825 * window.c (Qwindow_configuration_p): New variable.
18826 (Fwindow_configuration_frame): New function.
18827 (syms_of_window): defsubr it.
18828 (Fset_window_configuration): Return t if frame is live.
18829 Use Qwindow_configuration_p.
18830
18831 * xfns.c (check_x_display_info): Don't use selected_frame
18832 if it is dead.
18833
188341998-10-09 Geoff Voelker <voelker@cs.washington.edu>
18835
18836 * w32fns.c (x_create_bitmap_from_file): Skip special files.
18837
188381998-10-08 Kenichi Handa <handa@etl.go.jp>
18839
18840 * buffer.h (inhibit_modification_hooks): Extern it.
18841
18842 * buffer.c (inhibit_modification_hooks): New variable.
18843 (init_buffer_once): Initialize inhibit_modification_hooks to 0.
18844
18845 * charset.c (invalid_character): Prepend `0' to octal
18846 representation. Give error sufficient args.
18847
18848 * coding.c (code_convert_region): Set inhibit_modification_hooks
18849 to 1 before calling Fset_text_properties.
18850
18851 * insdel.c (signal_before_change): If inhibit_modification_hooks
18852 is nonzero, do nothing.
18853 (signal_after_change): Likewise.
18854
188551998-10-08 Emilio Lopes <Emilio.Lopes@Physik.TU-Muenchen.DE>
18856
18857 * process.c: Doc fixes.
18858
188591998-10-08 Richard Stallman <rms@sucrose.ai.mit.edu>
18860
18861 * syntax.c (scan_lists): Bring FROM back into range BEGV...ZV.
18862
188631998-10-07 Geoff Voelker <voelker@cs.washington.edu>
18864
18865 * w32.c (init_ntproc): Check for Windows init file.
18866 (term_ntproc): Do not check for it here.
18867
188681998-09-28 Kenichi Handa <handa@etl.go.jp>
18869
18870 * coding.c (check_composing_code): Fix previous change. Now it
18871 alwasy returns 0 or -1.
18872 (decode_coding_iso2022): Adjusted for the above change.
18873 (encode_coding_iso2022): When encoding the last block, flush out
18874 tailing garbage bytes.
18875 (setup_coding_system): Delete unnecessary code.
18876 (shrink_decoding_region): Check translation table. If ASCII
18877 should be translated, give up shrinking.
18878 (shrink_encoding_region): Likewise.
18879 (SHRINK_CONVERSION_REGION_THRESHHOLD): New macro.
18880 (SHRINK_CONVERSION_REGION): New macro.
18881 (code_convert_region): Call SHRINK_CONVERSION_REGION. Delete text
18882 properties here.
18883 (code_convert_region): In the case of encoding, always calulate
18884 correct character number.
18885 (code_convert_string): Call SHRINK_CONVERSION_REGION.
18886 (code_convert_region1): Don't delete text properties here.
18887
18888 * insdel.c (adjust_after_replace): Don't delete text properties here.
18889
18890 * term.c (encode_terminal_code): Handle raw 8-bit codes correctly.
18891
188921998-09-27 Richard Stallman <rms@psilocin.ai.mit.edu>
18893
18894 * emacs.c (sort_args): Fill extra space with NULL ptrs.
18895
188961998-09-26 Kenichi Handa <handa@etl.go.jp>
18897
18898 * coding.h (struct coding_system): New member composed_chars.
18899
18900 * coding.c (check_composing_code): If the current composing
18901 sequence doesn't end properly, return -1.
18902 (DECODE_CHARACTER_ASCII): Update coding->composed_chars.
18903 (DECODE_CHARACTER_DIMENSION1): Likewise.
18904 (decode_coding_iso2022): Check validity of a composing sequence.
18905 (code_convert_string): If the length of text to be converted is
18906 shrunk to zero, don't perform code conversion.
18907 (shrink_decoding_region): Fix previous change.
18908
18909 * editfns.c (Fformat): Check format control characters.
18910
189111998-09-25 Kenichi Handa <handa@etl.go.jp>
18912
18913 * coding.c (decode_eol): While decoding DOS-like eol, handle a
18914 single CR code correctly.
18915 (shrink_decoding_region) <CODING_CATEGORY_IDX_ISO_7 or
18916 CODING_CATEGORY_IDX_ISO_7_TIGHT>: Skip also 8-bit codes.
18917
189181998-09-23 Geoff Voelker <voelker@cs.washington.edu>
18919
18920 * w32fns.c (w32_color_map_lookup): New function.
18921 (x_to_w32_color): Approximate colors ending in numbers if necessary.
18922
189231998-09-22 Kenichi Handa <handa@etl.go.jp>
18924
18925 * ccl.c (ccl_driver): Report correct CCL program counter on error.
18926
18927 * xmenu.c (single_submenu) [! HAVE_MULTILINGUAL_MENU]: Make
18928 strings unibyte.
18929 (xmenu_show) [! HAVE_MULTILINGUAL_MENU]: Likewise.
18930
189311998-09-22 Kenichi Handa <handa@etl.go.jp>
18932
18933 * callint.c (Fcall_interactively): Don't use input method when
18934 reading a character in the case of `c' code letter.
18935
189361998-09-21 Dave Love <fx@gnu.org>
18937
18938 * editfns.c (Fsave_restriction): Doc fix.
18939
189401998-09-21 Richard Stallman <rms@gnu.org>
18941
18942 * lread.c (build_load_history): Do add to Vload_history
18943 even when dumping Emacs.
18944
189451998-09-18 Kenichi Handa <handa@etl.go.jp>
18946
18947 * ccl.c (CCL_WRITE_CHAR): Don't use bcopy.
18948 (ccl_driver): If BUFFER-MAGNIFICATION of the CCL program is 0,
18949 cause error if the program is going to output some bytes. When
18950 outputing a string to notify an error, check the case that
18951 DST_BYTES is zero.
18952
427ec082 18953 * coding.h (CODING_FINISH_INTERRUPT): New macro.
26901792
DL
18954
18955 * coding.c (ccl_coding_driver): If ccl_driver is interrupted by a
18956 user or the CCL program executed an invalid command, return
18957 CODING_FINISH_INTERRUPT.
18958 (code_convert_region): Pay attention to the converters return
18959 value CODING_FINISH_NORMAL and CODING_FINISH_INTERRUPT.
18960
189611998-09-16 Kenichi Handa <handa@etl.go.jp>
18962
18963 * coding.c (code_convert_region): Update beg_unchanged and
18964 end_unchanged after we delete the source text.
18965
18966 * insdel.c (adjust_markers_for_replace): Don't adjust a byte
18967 position if it is FROM.
18968 (adjust_markers_for_combining): New function.
18969 (combine_bytes): Call adjust_markers_for_combining instead of
18970 adjust_markers_for_replace.
18971 (adjust_after_replace): Record deletion of combining after bytes
18972 with the correct position.
18973 (replace_range): Likewise. Record the actual deletion after
18974 recoding deletions of combining bytes.
18975
18976 * xdisp.c (message_log_check_duplicate): Count byte length of the
18977 latest message correctly.
18978
189791998-09-12 Richard Stallman <rms@gnu.org>
18980
18981 * xdisp.c (redisplay_internal): Use TEMP_SET_PT_BOTH
18982 instead of SET_PT_BOTH.
18983 (try_window_id, display_text_line): Likewise.
18984
189851998-09-12 Karl Heuer <kwzh@gnu.org>
18986
18987 * data.c (Fmake_local_variable): Doc fix.
18988
189891998-09-10 Dave Love <fx@gnu.org>
18990
18991 * print.c (Fwith_output_to_temp_buffer): Doc fix.
18992
189931998-09-10 Richard Stallman <rms@gnu.org>
18994
18995 * s/irix6-0.h (TIOCSIGSEND): Add #undef.
18996 (bcopy, bcmp, bzero): Add #undef.
18997
18998 * keyboard.c (command_loop_1): When switching to selected window's bfr,
18999 first exit if selected frame is dead (no live frames remain).
19000 (read_key_sequence): Likewise.
19001
190021998-09-10 Karl Heuer <kwzh@gnu.org>
19003
19004 * emacs.c (main): Mention --display and --eval in help.
19005
190061998-09-07 Paul Eggert <eggert@twinsun.com>
19007
19008 * editfns.c (emacs_memftime): New function.
19009 (Fformat_time_string): Use it to handle null bytes in formats
19010 correctly.
19011
190121998-09-08 Kenichi Handa <handa@etl.go.jp>
19013
19014 * charset.c (Ffind_charset_region): Optimization for unibyte buffer.
19015 (Ffind_charset_string): For unibyte string, return (ascii).
19016
19017 * editfns.c (Fsubst_char_in_region): Call replace_range with the
19018 arg MARKERS 1.
19019
19020 * insdel.c (adjust_after_replace): Don't add combining bytes to
19021 the args given to adjust_point. Handle correctly the case that
19022 there are both before and after combining bytes.
19023 (replace_range): Likewise.
19024
190251998-09-07 Lars Magne Ingebrigtsen <larsi@gnus.org>
19026
19027 * fns.c (base64_decode_1, base64_encode_1): New functions.
19028 (Fbase64_decode_string, Fbase64_encode_string): New functions.
19029 (Fbase64_decode_region, Fbase64_encode_region): New functions.
19030
190311998-09-07 Karl Heuer <kwzh@gnu.org>
19032
19033 * eval.c (error): After enlarging buffer, write to it, not to buf.
19034
19035 * fns.c (Fwidget_put): Return VALUE instead of garbage.
19036
190371998-09-07 Kenichi Handa <handa@etl.go.jp>
19038
19039 * charset.h (STRING_CHAR_AND_LENGTH): Return correct value in
19040 ACTUAL_LEN even if LEN is too short to have a valid multibyte form.
19041 (STRING_CHAR_AND_CHAR_LENGTH): Likewise.
19042
19043 * coding.c (ccl_coding_driver): Always calculate correct mulibyte
19044 chars in produced byte sequence.
19045 (Ffind_operation_coding_system): Doc-string fixed.
19046
19047 * insdel.c (count_combining_after): Check also preceding bytes at
19048 POS if all characters in STRING are not character head.
19049
190501998-09-06 Paul Eggert <eggert@twinsun.com>
19051
19052 * editfns.c (Fformat_time_string, Fdecode_time, Fcurrent_time_zone):
19053 Don't assume that localtime and gmtime return non-NULL.
19054
190551998-09-06 Lars Magne Ingebrigtsen <larsi@gnus.org>
19056
19057 * fns.c (Fbase64_decode_string, Fbase64_encode_string,
19058 base64_decode_1, Fbase64_decode_region, Fbase64_encode_region):
19059 New functions.
19060
190611998-09-06 Richard Stallman <rms@gnu.org>
19062
19063 * editfns.c (Fformat): Detect incomplete format spec at string's end.
19064
19065 * lread.c (Fload): Handle case where openp finds a magic file
19066 but it has no `load' handler or that handler calls `load'.
19067 If FOUND != FILE, find FOUND's handler even if inhibited for FILE.
19068
190691998-09-04 Dave Love <fx@gnu.org>
19070
19071 * buffer.c (enable-multibyte-characters): Doc fix.
19072
190731998-09-02 Geoff Voelker <voelker@cs.washington.edu>
19074
19075 * w32heap.c (allocate_heap): Define NTHEAP_PROBE_BASE by default.
19076
190771998-09-01 Kenichi Handa <handa@etl.go.jp>
19078
19079 * editfns.c (Ftranspose_regions): Use BYTE_POS_ADDR to get an
19080 address in buffer from byte-position.
19081
190821998-09-01 Eli Zaretskii <eliz@delysid.gnu.org>
19083
19084 * w16select.c (Vnext_selection_coding_system): New variable.
19085 (syms_of_win16select): DEFVAR_LISP it. No need to staticpro
19086 Vselection_coding_system.
19087 (Fw16_set_clipboard_data): Always convert multibyte strings. Use
19088 Vnext_selection_coding_system if non-nil.
19089 (Fw16_get_clipboard_data): Always convert a string that includes
19090 non-ASCII characters. Use Vnext_selection_coding_system if
19091 non-nil.
19092
190931998-08-31 Andrew Innes <andrewi@harlequin.co.uk>
19094
19095 * w32fns.c (w32_wnd_proc): Always zero button_state when releasing
19096 mouse capture.
19097
190981998-08-31 Kenichi Handa <handa@etl.go.jp>
19099
19100 * xterm.c (x_load_font): If SIZE is 0, don't use a name
19101 x_list_font returns.
19102
191031998-08-31 Paul Eggert <eggert@twinsun.com>
19104
19105 * lread.c (read1): Don't assume that atof ("-0.0") yields +0.0.
19106 Handle leading '-' uniformly for zeros, infinities, and NaNs.
19107
191081998-08-31 Eli Zaretskii <eliz@delysid.gnu.org>
19109
19110 * msdos.c (IT_cmgoto): When tracking echo area messages with the
19111 cursor, save and restore previous cursor position in the
19112 minibuffer.
19113
191141998-08-31 Kenichi Handa <handa@etl.go.jp>
19115
19116 * charset.c (unibyte_char_to_multibyte):
19117 Vnonacii_translation_table will convert a 7-bit charcater.
19118 (multibyte_char_to_unibyte): Handle the case that
19119 Vnonacii_translation_table converts a multibyte charcater to a
19120 unibyte charcter of less than 128.
19121 (init_charset_once): Initialize nonascii_insert_offset and
19122 Vnonacii_translation_table.
19123
19124 * coding.c (decode_coding): Even if SRC_BYTES is zero, try
19125 processing if CODING requires flushing.
19126 (encode_coding): Likewise.
19127 (code_convert_region): Likewise.
19128 (code_convert_string): Likewise.
19129
19130 * fns.c (concat): If Vnonascii_translation_table is non-nil, try
19131 to convert a character less than 160 to multibyte.
19132 * insdel.c (copy_text): Likewise.
19133 (count_size_as_multibyte): Likewise.
19134 * xterm.c (dumpglyphs): Likewise.
19135
191361998-08-29 Paul Eggert <eggert@twinsun.com>
19137
19138 * data.c (arith_driver, float_arith_driver): Compute (- x) by
19139 using negation, not subtraction; this makes a difference with
19140 IEEE floating point arithmetic (and also if integer arithmetic
19141 is ones' complement or signed-magnitude!).
19142
191431998-08-29 Karl Heuer <kwzh@gnu.org>
19144
19145 * xfns.c (x_create_bitmap_from_file): Fail immediately if magic.
19146
191471998-08-28 Ken'ichi Handa <handa@delysid.gnu.org>
19148
19149 * charset.c (Fchar_bytes): Add \n\ in doc-string.
19150
191511998-08-28 Paul Eggert <eggert@twinsun.com>
19152
19153 * s/sol2-4.h (NOT_USING_MOTIF): New macro.
19154 (LD_SWITCH_SYSTEM_TEMACS): Put /usr/dt/lib in the link library
19155 path only if we're not building with Motif.
19156
191571998-08-28 Kenichi Handa <handa@etl.go.jp>
19158
19159 * insdel.c (adjust_after_replace): Fix the code to record undo
19160 information for the case that `before combining' happens. Remove
19161 text properties which are added to the new text by
19162 offset_intervals.
19163
19164 * coding.c (code_convert_region1): Remove all text properties of
19165 the region.
19166
191671998-08-28 Kenichi Handa <handa@etl.go.jp>
19168
19169 * charset.h (CHAR_BYTES): New macro.
19170
19171 * charset.c (Fchar_bytes): Now always return 1.
19172 (char_bytes): New function.
19173
19174 * editfns.c (Fposition_bytes): If the arg POSITION is out of
19175 range, return nil.
19176 (Fbyte_to_position): If the arg BYTEPOS is out of range, return
19177 nil.
19178
19179 * data.c (Faset): Use macro CHAR_BYTES instead of Fchar_bytes.
19180 * fns.c (concat): Likewise.
19181 * insdel.c (count_size_as_multibyte): Likewise.
19182 * xdisp.c (message_dolog): Likewise.
19183
191841998-08-27 Kenichi Handa <handa@etl.go.jp>
19185
19186 * coding.c (detect_coding_iso2022): Handle ESC N and ESC O
19187 correctly. They are for SS2 and SS3 respectively.
19188 (ccl_coding_driver): Fix previous change.
19189
191901998-08-26 Paul Eggert <eggert@twinsun.com>
19191
19192 * xterm.c (fixup_locale): New function. For now, it resets
19193 LC_TIME to "C" (reverting the 1998-08-07 change), and also
19194 resets LC_MESSAGES to "C".
19195 (x_term_init): Use it to fix up the locale after setlocale
19196 (LC_ALL, "").
19197
191981998-08-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19199
19200 * xterm.c (x_calc_absolute_position): Cast argument to XFree, in
19201 case it was prototyped the old way.
19202
192031998-08-25 Kenichi Handa <handa@etl.go.jp>
19204
19205 * xterm.c (x_list_fonts): Work-around for the case XGetAtomName
19206 returns a null string. This happens when dxpc 3.7 is being used.
19207
192081998-08-24 Andreas Schwab <schwab@delysid.gnu.org>
19209
19210 * keyboard.c (input-method-previous-message): Doc fix.
19211
19212 * coding.c (file-coding-system-alist,
19213 select-safe-coding-system-function): Doc fix.
19214
192151998-08-23 Kenichi HANDA <handa@etl.go.jp>
19216
19217 * coding.c (detect_coding_iso2022): Don't check the byte length of
19218 succeeding codes (0xa0..0xFF) if the codes follows single shift
19219 code (SS2 or SS3).
19220
192211998-08-21 Ken'ichi Handa <handa@delysid.gnu.org>
19222
19223 * coding.c (detect_coding_system): If detect_eol_type returns
19224 CODING_EOL_INCONSISTENT, set eol_type to CODING_EOL_UNDECIDED
19225 correctly.
19226
19227See ChangeLog.7 for earlier changes.