Replace `illegal' with `invalid'.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
82d497fc
KH
12000-08-05 Kenichi Handa <handa@etl.go.jp>
2
3 * syntax.c (skip_chars): Fix handling of multibyte<->unibyte
4 conversion.
5
59f953a2
NF
62000-08-04 Noah Friedman <friedman@splode.com>
7
8 * fns.c (Fmake_hash_table): Add missing `\n\' to end of line in
9 docstring.
10
688351f2
GM
112000-08-04 Gerd Moellmann <gerd@gnu.org>
12
13 * syntax.c (skip_chars): Fix typo in error message.
14
2dad51cc
AS
152000-08-04 Andreas Schwab <schwab@suse.de>
16
17 * m/ia64.h: Moved from s/ia64.h.
18
99bb2c60
KH
192000-08-04 Kenichi Handa <handa@etl.go.jp>
20
082a1df2
KH
21 * process.c (read_process_output): Big simplification. Handle
22 composition and post-read-conversion of coding system correctly.
23 (send_process): Handle composition correctly.
24
25 * callproc.c (Fcall_process): Handle post-read-conversion of
26 coding system if any.
27
99bb2c60
KH
28 * coding.c (decode_coding_iso2022): More strict check for handling
29 single shifting.
082a1df2
KH
30 (coding_restore_composition): Pay attention to the case that
31 cmp_data is not set properly (because of invalid code in the
32 source text).
33 (run_pre_post_conversion_on_str): Include text properties in the
34 resulting string.
35 (decode_coding_string): Set members of coding correctly.
99bb2c60 36
f4988be7
GM
372000-08-03 Gerd Moellmann <gerd@gnu.org>
38
39 * s/ia64.h: New file.
40
41 * widget.c (set_frame_size, update_wm_hints, EmacsFrameSetValues):
42 Use NULL instead of 0 at the end of variable argument list of
43 XtVaGetValues and XtVaSetValues, because 0 fails on systems where
44 sizeof (int) < sizeof (void *).
45
46 * xmenu.c (update_frame_menubar): Use NULL instead of 0 at the end
47 of variable argument lists of XtVaGetValues and XtVaSetValues.
48
49 * xfns.c (Fx_file_dialog): Use NULL instead of 0 at the end of
50 variable argument lists of XtVaGetValues and XtVaSetValues.
51
ead53494
GM
522000-08-02 Gerd Moellmann <gerd@gnu.org>
53
54 * alloc.c (lisp_malloc, lisp_free): Use size_t and POINTER_TYPE.
55 (xrealloc, xmalloc): Use size_t. Some callers adjusted.
56
57 * lisp.h (Fsingle_key_description, xmalloc, xrealloc): Change
58 prototype.
59
60 * keyboard.c (read_char_minibuf_menu_prompt): Add new parameter
61 in call to Fsingle_key_description.
62
63 * keymap.c (Fsingle_key_description): Add parameter NO_ANGLES.
64 Callers changed.
65
662000-08-02 Colin Walters <walters@cis.ohio-state.edu>
67
68 * window.c (display_buffer_reuse_frames): New variable.
69 (Fdisplay_buffer): If display_buffer_reuse_frames is set, reuse
70 frames displaying BUFFER.
71 (syms_of_window): Define Lisp variable
72 display-buffer-reuse-frames.
73
10b0f752
MB
742000-08-01 Miles Bader <miles@gnu.org>
75
76 * editfns.c (Fconstrain_to_field): Fix the conditions for deciding
77 when to constrain NEW_POS (they were pretty screwed up before).
78
16425c4a
EZ
792000-07-31 Eli Zaretskii <eliz@is.elta.co.il>
80
81 * msdos.c (run_msdos_command): Save and restore the master
82 environment, for the case that child_setup signals an error.
83 When mirroring slashes in DOS shell commands, don't fail when
84 argv[2] has embedded blanks.
da288c14
EZ
85 (Fmsdos_set_mouse_buttons, mouse_setup_buttons): New functions.
86 (syms_of_msdos): Defsubr Fmsdos_set_mouse_buttons.
87 (dos_ttraw): Call mouse_setup_buttons.
16425c4a
EZ
88
89 * callproc.c (child_setup) [MSDOS]: malloc pwd_var instead of
90 using alloca; free it after run_msdos_command returns.
91
27f73852
DL
922000-07-27 Dave Love <fx@gnu.org>
93
94 * s/irix6-5.h (IRIX_FORCE_32_BITS, LD_SWITCH_SYSTEM): Don't
95 define.
96 [_MIPS_SZLONG == 64]: Set up for 64-bit mode -- not currently
97 working.
98
99 * m/iris4d.h (XUINT, XSET, XUNMARK) [_LP64]: Don't define.
100
c0261b5e
EZ
1012000-07-27 Eli Zaretskii <eliz@is.elta.co.il>
102
103 * editfns.c (lisp_time_argument): Fix last change.
104
b548072f
GM
1052000-07-27 Gerd Moellmann <gerd@gnu.org>
106
3ab82477
GM
107 * fns.c (Fdelete): Make it work on vectors and strings in addition
108 to lists.
109
b548072f
GM
110 * fns.c (Qkey_or_value, Qkey_and_value): New variables.
111 (syms_of_fns): Initialize new variables.
112 (sweep_weak_table): Handle weakness `key-or-value' and
113 `key-and-value'.
114 (Fmake_hash_table): Recognize `key-and-value' and `key-or-value'
115 weakness, with t meaning the same as `key-and-value'.
116
91ae8751
KH
1172000-07-27 Kenichi Handa <handa@etl.go.jp>
118
119 * coding.h (struct coding_system): Member safe_charset deleted.
120
121 * coding.c (Qsafe_charsets): This variable deleted.
122 (Qsafe_chars, Vchar_coding_system_table, Qchar_coding_system): New
123 variables.
124 (coding_safe_chars): New function.
125 (CODING_SAFE_CHAR_P): New macro.
126 (CHARSET_OK): New arg C. Call CODING_SAFE_CHAR_P instead of
127 checking safe_charsets member of the coding system. Caller
128 changed.
129 (detect_coding_iso2022): New local variable safe_chars.
130 (DECODE_DESIGNATION): Call CODING_SAFE_CHAR_P instead of checking
131 safe_charsets member of the coding system.
132 (decode_coding_iso2022): New local variable safe_chars.
133 (ENCODE_ISO_CHARACTER_DIMENSION1): Don't check unsafe chars here.
134 (ENCODE_ISO_CHARACTER_DIMENSION2): Likewise.
135 (ENCODE_ISO_CHARACTER): Arguments changed. Caller changed.
136 (ENCODE_UNSAFE_CHARACTER): New macro.
137 (encode_coding_iso2022): New local variable safe_chars. Check
138 unsafe chars.
139 (setup_coding_system): Delete the code to initialize
140 coding->safe_charses
141 (intersection, find_safe_codings): New functions.
142 (Ffind_coding_systems_region_internal): New function.
143 (syms_of_coding): Defsubr it. Initialize Qsafe_chars,
144 Qsafe_cding_system. Make Vchar_coding_system_table a Lisp
145 variable and initialize it.
146
147 * fns.c (char_table_ref_and_index): New function.
148
149 * lisp.h (char_table_ref_and_index): Add prototype.
150
34a7a267
SS
1512000-07-26 Sam Steingold <sds@gnu.org>
152
153 * editfns.c (lisp_time_argument): Added third argument `usec'.
3ab82477 154 (Ffloat_time): New built-in Lisp function.
34a7a267 155
a95cb10a
GM
1562000-07-26 Gerd Moellmann <gerd@gnu.org>
157
3353ef5a
GM
158 * dispextern.h (GLYPH_FROM_CHAR_GLYPH): Use CHARACTERBITS bits
159 for the character code.
160
161 * config.in (HAVE_SOUND): Define only for FreeBSD, NetBSD and
162 GNU/Linux.
163
a95cb10a
GM
164 * xmenu.c (menu_highlight_callback): Call show_help_echo directly
165 if called for a popup menu.
166 (xmenu_show): Store help string in widget values.
167
b4a12321
DL
1682000-07-26 Dave Love <fx@gnu.org>
169
170 * syswait.h: Move some definitions.
171 (HAVE_SYS_WAIT_H): Undef for HPUX7, Convex.
172 [!HAVE_SYS_WAIT_H]: Define things unconditionally. More
173 perspicuous definitions.
174 (WTERMSIG): Fix bit pattern used.
175
13f5ad37
KH
1762000-07-26 Kenichi Handa <handa@etl.go.jp>
177
178 * print.c (print_object): If vector printing is truncated, print
179 "..." to indicate it as well as the case of list printing.
180
070fe99c
GM
1812000-07-25 Gerd Moellmann <gerd@gnu.org>
182
969065c3
GM
183 * xdisp.c (next_element_from_display_vector): Improve comments.
184
185 * lisp.h (GLYPH_MASK_CHAR, GLYPH_MASK_FACE): Use 19 bits
186 for the character code, and the rest for the face id as in 20.x.
187 (FAST_GLYPH_FACE, FAST_MAKE_GLYPH): Changed accordingly.
188
189 * window.c (window_display_table): Cleaned up.
190
070fe99c
GM
191 * syntax.c (Fforward_word): Add last arg nil in call of
192 Fconstrain_to_field.
193
bad77ef7
EZ
1942000-07-25 Eli Zaretskii <eliz@is.elta.co.il>
195
969065c3 196 * fileio.c (Frename_file) [DOS_NT]: If the file names are
bad77ef7
EZ
197 identical but for the letter-case, don't call
198 barf_or_query_if_file_exists.
199
c28da489
MB
2002000-07-25 Miles Bader <miles@gnu.org>
201
202 * editfns.c (find_field): Honor special `boundary' fields.
203 (Qboundary): New variables.
204 (syms_of_editfns): Initialize Qboundary.
205 (Fconstrain_to_field): Add the INHIBIT-CAPTURE-PROPERTY argument.
206 Use scan_buffer instead of find_before_next_newline, because it
207 allows us to detect the boundary case where there's a newline at
208 the search limit.
209 * lisp.h (Fconstrain_to_field): Update external declaration.
210
e3c31fd5
GM
2112000-07-24 Gerd Moellmann <gerd@gnu.org>
212
213 * print.c (temp_output_buffer_setup): Don't call1 Vrun_hooks
214 if that is nil.
c28da489 215
c66c29a2
DL
2162000-07-24 Dave Love <fx@gnu.org>
217
218 * s/sunos4-0.h, s/sol2.h:
219 (LIBS_TERMCAP): Move from m/sparc.h.
220
221 * m/sparc.h (TERMINFO): Moved to system files (probably only
222 relevant for sunos4 judging by its vintage).
223 (BITS_PER_LONG, BITS_PER_EMACS_INT, _LP64): Define conditional on
224 __arch64__.
225
fbe0a958
EZ
2262000-07-24 Eli Zaretskii <eliz@is.elta.co.il>
227
228 * xmenu.c (keymap_panes): Pass the keymap's prompt as the pane
229 name to single_keymap_panes.
230
7d88e5c9
AS
2312000-07-24 Andreas Schwab <schwab@suse.de>
232
233 * fns.c (Fmakehash): Pass Qeql to Fmake_hash_table if TEST is nil.
234
e024b101
GM
2352000-07-24 Gerd Moellmann <gerd@gnu.org>
236
237 * xdisp.c (with_echo_area_buffer): Take additional EMACS_INT
238 parameters instead of using int parameters. Expect FN to accept
239 EMACS_INT parameters.
240 (display_echo_area, resize_echo_area_axactly, current_message)
241 (truncate_echo_area, set_message_1): Call with_echo_area_buffer
242 with new argument list.
243 (resize_mini_window_1): New callback function.
244 (current_message_1, truncate_message_1, set_message_1): Change
245 parameter lists to the new format expected by
246 with_echo_area_buffer.
247
25c1a9ce
KH
2482000-07-24 Kenichi Handa <handa@etl.go.jp>
249
250 * fontset.c (fontset_ref): Remove INLINE declaration.
251 (fontset_ref_via_base): Likewise.
252 (Fset_fontset_font): Convert FAMILY and REGISTRY specifications
253 to downcase.
254
7f987ac0
EZ
2552000-07-23 Eli Zaretskii <eliz@is.elta.co.il>
256
257 * msdos.c (IT_note_mouse_highlight): Process overlays in the
258 correct order of priority. If help echo was found in an overlay,
259 use that overlay as the object in which the help echo was found.
260
e2db3069
MB
2612000-07-22 Miles Bader <miles@gnu.org>
262
263 * textprop.c (Fprevious_single_char_property_change): The initial
264 property value should be from the position preceding POSITION, not
265 following it.
266
5e3203e4
EZ
2672000-07-22 Eli Zaretskii <eliz@is.elta.co.il>
268
269 * coding.c (syms_of_coding): Doc fix for
270 inhibit-iso-escape-detection.
271
62145073
GM
2722000-07-21 Gerd Moellmann <gerd@gnu.org>
273
c20aeb83
GM
274 * xterm.c (note_mouse_highlight): Process overlays in the right
275 order of priority.
34a7a267 276
743934db
GM
277 * keyboard.c (show_help_echo, gen_help_event): Extend comments.
278
279 * xterm.c (note_mouse_highlight): If help-echo was found in an
280 overlay, use that overlay as the object in which the help was
281 found.
282
d1dc7e43 283 * window.c (foreach_window_1): Fix typo reversing an if-condition.
34a7a267 284
62145073
GM
285 * window.c (foreach_window): Instead of a fake variable argument
286 list, take one USER_DATA argument.
287 (foreach_window_1): Likewise, and call callback functions with two
288 args, the window and USER_DATA.
289 (struct check_window_data): New struct.
290 (check_window_containing): Use it.
291 (window_from_coordinates): Set up a struct check_window_data for
292 foreach_window.
293 (add_window_to_list, freeze_window_start): Change parameters
294 according to new calling convention.
295
296 * window.h (foreach_window): Change prototype.
297
298 * buffer.c (Fprevious_overlay_change): Avoid memory leak.
299
3002000-07-21 Eli Zaretskii <eliz@is.elta.co.il>
301
302 * xmenu.c (menu_help_callback): Call show_help_echo with
303 additional arguments OBJECT and POS.
304
11270583
KH
3052000-07-21 Kenichi Handa <handa@etl.go.jp>
306
07b14857
KH
307 * data.c (Faset): Allow storing any multibyte character in a
308 string. Convert unibyte string to multibyte if necessary.
309
11270583
KH
310 * xfns.c (x_encode_text): New function.
311 (x_set_name): Use x_encode_text.
312 (x_set_title): Likewise.
313
314 * xselect.c (lisp_data_to_selection_data): Use x_encode_text.
315
316 * xterm.h (x_encode_text): Add prototype.
317
bc75b4fd
DL
3182000-07-20 Dave Love <fx@gnu.org>
319
320 * ccl.c (Fccl_execute_on_string): Don't check xmalloc return. Use
321 xfree, not free.
322
48c14970
EZ
3232000-07-20 Eli Zaretskii <eliz@is.elta.co.il>
324
325 * msdos.c (help_echo_window): New variable.
326 (syms_of_msdos): Initialize and staticpro it.
327 (IT_note_mode_line_highlight): Set help_echo_window.
328 (IT_note_mouse_highlight): Ditto.
329 (dos_rawgetc): Store help_echo_window in the second event produced
330 for HELP_EVENTs.
331
332 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight):
333 Record the object that generated the help echo and the position of
334 that object in help_echo_object and help_echo_pos. Record that
335 some glyphs in a row are displayed in mouse-face.
336 (IT_update_begin): Don't clear mouse highlight unless one of the
337 enabled glyph rows is marked as being displayed in mouse-face.
338 (dos_rawgetc): Generate 2 events for HELP_EVENT. Pass the object
339 and position recorded in help_echo_object and help_echo_pos to the
340 event queue.
341 (IT_menu_display): Accept a new argument PN: the pane number of
342 the current menu pane. Record the pane number and the item
343 number of the item which has associated help string.
344 (XMenuActivate): Update the prototype for help_callback in
345 function declaration. Call IT_menu_display with the current menu
346 pane number as an additional argument. Call help_callback with
347 two additional arguments: the pane number and the item number of
348 the menu item associated with the help text.
349 (help_echo_object, help_echo_pos): New variables.
350 (syms_of_msdos): Initialize them and staticpro help_echo_object.
351
352 * msdos.h (XMenuActivate): Update prototype.
353
4279296d
GM
3542000-07-19 Gerd Moellmann <gerd@gnu.org>
355
47db06aa
GM
356 * xdisp.c (with_echo_area_buffer): Call FN with more arguments.
357 Add some more prototypes.
358
359 * xterm.c, xterm.h: Add some more prototypes.
360
361 * lisp.h (Fnext_single_char_property_change): Add prototype.
362
363 * dispnew.c (direct_output_for_insert): Remove confusing
364 outer local variable mouse_face_overwritten_p.
365 (glyph_row_slice_p): Put in #ifdef GLYPH_DEBUG.
366
4279296d
GM
367 * alloc.c (allocate_string_data): Don't copy old string contents.
368
670acd62
KH
3692000-07-19 Kenichi Handa <handa@etl.go.jp>
370
371 * coding.c (code_convert_region): Delete text properties before
372 shrinking the conversion region.
373
7cea38bc
GM
3742000-07-18 Gerd Moellmann <gerd@gnu.org>
375
dc1cac59
GM
376 * dispnew.c (update_text_area): Write the whole row if it
377 has mouse-face in it.
378
85a8aca9
GM
379 * xfaces.c (face-alternative-font-family-alist): Remove
380 DEFVAR_LISP; staticpro instead.
381
34a7a267 382 * xmenu.c (menu_help_callback): Call show_help_echo with
7cea38bc
GM
383 new arguments.
384
385 * keyboard.c (show_help_echo): Add parameter WINDOW.
386 (read_char): Call show_help_echo with window extracted from Lisp
387 help event.
388 (gen_help_event): Add parameter WINDOW.
389
390 * keyboard.h (show_help_echo, gen_help_event): Change prototypes.
391
392 * xterm.c (help_echo_window): New variable.
393 (note_mouse_highlight, note_tool_bar_highlight): Set
394 help_echo_window.
395 (XTread_socket): Pass help_echo_window to gen_help_event.
396 (syms_of_xterm): Initialize and staticpro help_echo_window.
397
f8276b77
DL
3982000-07-18 Dave Love <fx@gnu.org>
399
400 * Makefile.in: Fix dependencies of blockinput.h on atimer.h,
401 systime.h.
402
088831a6
GM
4032000-07-18 Gerd Moellmann <gerd@gnu.org>
404
3d6cd763
GM
405 * alloc.c (allocate_string_data): If string had already data
406 assigned, copy old contents to new string data.
407
408 * coding.c (syms_of_coding): Fix typo in spelling of variable
409 `inhibit-iso-escape-detection'.
410
088831a6
GM
411 * alloca.c (free) [emacs && EMACS_FREE]: Define as EMACS_FREE.
412
413 * Makefile.in: Add dependencies on dispextern.h.
414 (alloca.o): Don't define malloc and define EMACS_FREE instead of
415 `free'; both can conflict with system header files.
416
bc8a8d55
KH
4172000-07-18 Kenichi Handa <handa@etl.go.jp>
418
419 * charset.h (MAKE_CHAR): Return reasonable code even if CHARSET is
420 undefined.
421
069f5950
DL
4222000-07-18 Dave Love <fx@gnu.org>
423
424 * window.c (Fwindow_list): Declare arg `window'.
425
aa96c820
KH
4262000-07-18 Kenichi Handa <handa@etl.go.jp>
427
428 * coding.c (setup_coding_system): Don't override the explicitly
429 specified designations.
430
06be8d32
MB
4312000-07-15 Miles Bader <miles@gnu.org>
432
433 * editfns.c (char_property_eq, char_property_stickiness): Renamed
434 from `text_property_eq' and `text_property_stickiness', respectively.
435 (find_field, Fconstrain_to_field, char_property_eq)
436 (char_property_stickiness): Changed to call char-property functions
437 instead of text-property-only ones.
438
439 * textprop.c (Fnext_single_char_property_change): Made a subr (was
440 `next_single_char_property_change'). Do more error checking, and
441 cleanup limit behavior.
442 (Fprevious_single_char_property_change): New function.
443 (syms_of_textprop): Initialize new subrs.
444
445 * xdisp.c (display_prop_end, invisible_text_between_p):
446 Call Fnext_single_char_property_change instead of
447 next_single_char_property_change.
448
3fddcdc3
JR
4492000-07-15 Jason Rumney <jasonr@gnu.org>
450
451 * w32menu.c (w32_menu_show): Call free_menubar_widget_value_tree
452 after menu is finished with.
453 (add_menu_item): Only consider wv->title as a menu title.
454 (w32_menu_display_help): Add OBJECT and POS to show_help_echo.
455
456 * w32fns.c (w32_wnd_proc) [WM_DRAW_ITEM]: Do not try to draw a
457 null title.
458 (FONT_REGEXP): Remove unused macro, and its sub-components.
459 (syms_of_w32fns): Replace underscore in w32-enable-synthesized-fonts.
460
461 * w32term.c (help_echo_object, help_echo_pos): New variables.
462 (note_mode_line_highlight): Store additional information about the
463 help-echo in help_echo_object and help_echo_pos. Check both
464 `local-map' and `keymap' properties for changing the cursor
465 (note_mouse_highlight): Store additional information about the
466 help-echo in help_echo_object and help_echo_pos.
467 (note_tool_bar_highlight): Set help_echo_object to nil and
468 help_echo_pos to -1.
469 (w32_read_socket): Use gen_help_event instead of filling
470 input_events manually.
471 (syms_of_w32term): Staticpro help_echo_object.
472 (x_update_window_end): Add parameter MOUSE_FACE_OVERWRITTEN_P. If
473 set, arrange for a mouse-highlight redisplay in
474 XTframe_up_to_date.
475 (x_clear_mouse_face): New function.
476 (w32_redisplay_interface): Add pointer to x_clear_mouse_face.
477 (x_update_window_begin): No need to turn off the mouse
478 highlight here.
479 (show_mouse_face): Set the mouse_face_p flag of glyph rows
480 depending on whether they contain glyphs highlighted in
481 mouse-face.
482 (x_fill_stretch_glyph_string): Consume runs of stretch
483 glyphs instead of a single one.
484 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
485 with new argument list.
486 (x_set_glyph_string_gc): Make sure the face's GC is valid.
487 (x_append_glyph, x_append_composite_glyph)
488 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
489 changes in struct glyph starting 1999-12-27. See comments for
490 xterm.c on 2000-07-05.
491
178c5d9c
SS
4922000-07-14 Sam Steingold <sds@gnu.org>
493
494 * xfaces.c (realize_x_face): Fix the last patch:
495 check `default_face' before dereferencing.
496
6fe533f6
DL
4972000-07-14 Dave Love <fx@gnu.org>
498
069f5950 499 * syntax.c (back_comment): Add null default in switch (for pcc).
6fe533f6 500
dd7b81cf
KH
5012000-07-14 Kenichi Handa <handa@etl.go.jp>
502
0693904a 503 * xfaces.c (realize_x_face): Make fontset using the base of the
178c5d9c 504 default_face's fontset, not using the default fontset.
0693904a 505
dd7b81cf
KH
506 * coding.c (inhibit_iso_escape_detection): New variable.
507 (syms_of_coding): Make it a Lisp variable.
508 (detect_coding_iso2022): If inhibit_iso_escape_detection is
509 nonzero, ignore ISO2022's escape sequence.
510
d5aa31d8
GM
5112000-07-14 Gerd Moellmann <gerd@gnu.org>
512
e5acf0ca
GM
513 * alloca.c (malloc) [emacs]: Define as xmalloc.
514
bd23a692
GM
515 * xfns.c (Fx_show_tip): If frame parameters contain a position,
516 use that instead of the mouse position. Add parameters DX and DY.
517
518 * dispextern.h (Fx_show_tip): Adjust number of parameters
519 in prototype.
520
9662da0b
GM
521 * keyboard.c (show_help_echo): Add parameters OBJECT and POS.
522 if HELP is a function, call it with OBJECT and POS as parameters
523 to get the help to display.
524 (gen_help_event, kbd_buffer_store_help_event): New functions.
525 (kbd_buffer_get_event): Construct the Lisp help-event differently.
526 (read_char): Call show_help_echo with new parameters.
527
178c5d9c 528 * keyboard.h (gen_help_event, kbd_buffer_store_help_event):
9662da0b
GM
529 Add prototypes.
530
531 * xterm.c (help_echo_object, help_echo_pos): New variables.
532 (note_mode_line_highlight): Store additional information about the
533 help-echo in help_echo_object and help_echo_pos. Check both
534 `local-map' and `keymap' properties for changing the cursor
535 (note_mouse_highlight): Store additional information about the
536 help-echo in help_echo_object and help_echo_pos.
537 (note_tool_bar_highlight): Set help_echo_object to nil and
538 help_echo_pos to -1.
539 (XTread_socket): Use gen_help_event instead of filling
540 input_events manually.
541 (syms_of_xterm): Staticpro help_echo_object.
542
543 * xmenu.c (menu_highlight_callback): Use
544 kbd_buffer_store_help_event instead of setting up and input_event
545 structure manually.
546
547 * xdisp.c (eval_form): GCPRO argument sexpr.
548 (call_function): New function.
549 (handle_single_display_prop): Use call_function and FUNCTIONP
550 instead of checking whether if font_height is a symbol and
551 using eval_form.
552
553 * eval.c (internal_condition_case_2): New function.
554
555 * lisp.h (FUNCTIONP): New macro.
556 (internal_condition_case_2, call_function): Add prototypes.
557
d5aa31d8
GM
558 * xterm.c (construct_mouse_click, x_scroll_bar_to_input_event)
559 (x_scroll_bar_handle_click, SET_SAVED_MENU_EVENT, XTread_socket):
560 Always set `arg' member of input_events.
561 (construct_menu_click): Unused function removed.
562
563 * msdos.c (dos_rawgetc): Always set `arg' member of input_events.
564
565 * w32term.c (construct_mouse_click, construct_mouse_wheel)
566 (construct_drag_n_drop, x_scroll_bar_handle_click)
567 (w32_read_socket): Always set `arg' member of input_events.
568
569 * keyboard.c (show_help_echo): Use eval_form. Add comment.
570
571 * lisp.h (eval_form): Add prototype.
572
573 * xdisp.c (eval_form): Make it externally visible.
574
0f1a9b23
GM
5752000-07-13 Gerd Moellmann <gerd@gnu.org>
576
577 * xterm.c (x_handle_tool_bar_click): Store the frame in the
578 frame_or_window slot of TOOL_BAR_EVENT input events instead of
579 consing. For prefix events, store the frame in the `arg' slot of
580 the event, otherwise store the key there.
581 (XTread_socket): Instead of consing, use the frame_or_window slot
582 of HELP_EVENTs for the frame, and the `arg' slot for the help
583 string.
584
585 * xmenu.c (menu_highlight_callback): Store help string in the
586 `arg' member of the input event; don't cons.
587 (menubar_selection_callback): Use the `arg' slot of input events
588 to queue additional information, instead of consing.
589
590 * msdos.c (dos_rawgetc): Adapt to change of HELP_EVENTs.
591
592 * w32term.c (w32_handle_tool_bar_click): Adapt to changes in
593 TOOL_BAR_EVENTs.
594 (w32_read_socket): Adapt to changes in HELP_EVENTs.
595
596 * w32menu.c (menubar_selection_callback): Use the `arg' slot of
597 input events to queue additional information, instead of consing.
598
599 * keyboard.c (kbd_buffer_gcpro): Renamed from
600 kbd_buffer_frame_or_window. Now used for all Lisp objects
601 referenced from the input queue.
602 (kbd_buffer_store_event): Always use structure assignment for
603 copying input events. Record all Lisp objects referenced from
604 events in kbd_buffer_gcpro.
605 (kbd_buffer_get_event): Construct Lisp `help-echo' events
606 differently from input events. Test for prefix menu_bar_events
607 and TOOL_BAR_EVENTs differently. Reset all slots used by an input
608 event in kbd_buffer_gcpro to nil.
609 (make_lispy_event) <TOOL_BAR_EVENT>: Treat an input event whose
610 frame_or_window is equal to its arg member as prefix events.
611 (stuff_buffered_input): Reset all slots in kbd_buffer_gcpro
612 used by an input event to nil.
613 (init_keyboard): Use two times the size of the input queue
614 for kbd_buffer_gcpro.
615 (syms_of_keyboard): Likewise.
616
617 * emacs.c (handle_USR2_signal, handle_USR1_signal): Use
618 USER_SIGNAL_EVENT.
619
620 * termhooks.h (struct input_event): Add member `arg'.
621 (MENU_BAR_EVENT): Renamed from menu_bar_event.
622 (USER_SIGNAL_EVENT): Renamed from user_signal.
623
624 * xfaces.c (ASET): Remove definition.
625
626 * lisp.h (AREF, ASET, ASIZE): New macros.
627
628 * fontset.c (AREF, ASIZE): Remove definitions.
629
630 * fns.c (AREF): Remove definition.
178c5d9c 631
0f1a9b23
GM
632 * composite.c (AREF): Remove definition.
633
712eaef2
GM
6342000-07-12 Gerd Moellmann <gerd@gnu.org>
635
d8ee7803
GM
636 * dispnew.c (redraw_overlapped_rows): Add missing local.
637 (scrolling_window): Remove debug code.
638
712eaef2
GM
639 * xdisp.c (try_window_reusing_current_matrix, try_window_id):
640 Before scrolling, turn off a mouse-highlight in the window
641 being scrolled.
642
643 * xterm.c (x_update_window_end): Add parameter
644 MOUSE_FACE_OVERWRITTEN_P. If set, arrange for a mouse-highlight
645 redisplay in XTframe_up_to_date.
646 (x_clear_mouse_face): New function.
647 (x_redisplay_interface): Add pointer to x_clear_mouse_face.
648
649 * dispnew.c (make_current): Preserve the mouse_face_p flag of the
650 current glyph row.
651 (update_window_line): Add parameter MOUSE_FACE_OVERWRITTEN_P. Set
652 it when any row is written to that contains glyphs highlighted in
653 mouse-face.
654 (update_window): Call the window update end hook with new
655 parameter MOUSE_FACE_OVERWRITTEN_P.
656 (direct_output_for_insert): Give up if row contains mouse-face.
657
658 * dispextern.h (struct redisplay_interface): Add parameter
659 MOUSE_FACE_OVERWRITTEN_P to update_window_end_hook function.
660 (clear_mouse_face): New function pointer member.
661
02010917
SM
6622000-07-11 Stefan Monnier <monnier@cs.yale.edu>
663
664 * syntax.c (back_comment): Use one switch rather than a few `if's.
665 Obey open_paren_in_column_0_is_defun_start.
666 When reverting to the `slow' method, try to nicely handle the case
667 of nested comments by checking that the comment-starter we found
668 does indeed match the comment-ender.
669 (scan_sexps_forward, scan_sexps_forward):
670 Ignore excessive opening parenthesis rather than throwing an error.
671
d76c03ea
GM
6722000-07-11 Gerd Moellmann <gerd@gnu.org>
673
674 * doc.c (Fsubstitute_command_keys): Handle case that a GC
675 in Fwhere_is_internal or get_keymap_1 relocates string contents.
676
677 * dispnew.c (direct_output_forward_char): Give up if currently
678 displaying a message instead of the minibuffer contents.
679
680 * xterm.c (x_update_window_begin): No need to turn off the mouse
681 highlight here.
682 (show_mouse_face): Set the mouse_face_p flag of glyph rows
683 depending on whether they contain glyphs highlighted in
684 mouse-face.
685
686 * dispnew.c (row_equal_p): Add parameter MOUSE_FACE_P. If set,
687 compare the mouse_face_p flags of both rows.
688
689 * dispextern.h (struct glyph_row): Add flag mouse_face_p.
690
d55ead18
EZ
6912000-07-11 Eli Zaretskii <eliz@is.elta.co.il>
692
693 * keyboard.c (show_help_echo): Accept additional parameter
694 ok_to_overwrite_keystroke_echo.
695 (read_char): Call show_help_echo with a zero
696 ok_to_overwrite_keystroke_echo argument.
697 * keyboard.h (show_help_echo): Update prototype of
698 show_help_echo.
699 * xmenu.c (menu_help_callback): Call show_help_echo with non-zero
700 ok_to_overwrite_keystroke_echo argument.
701 * w32menu.c (w32_menu_display_help): Call show_help_echo with
702 non-zero ok_to_overwrite_keystroke_echo argument.
703
df75b1a3
GM
7042000-07-10 Gerd Moellmann <gerd@gnu.org>
705
4b92c49a
GM
706 * xdisp.c (try_window_id): If changes are all below what is
707 displayed in the window, and point is in the window, we still
708 might have to find point on the display.
709
710 * xterm.c (x_fill_stretch_glyph_string): Consume runs of stretch
711 glyphs instead of a single one.
712 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
713 with new argument list.
714 (x_set_glyph_string_gc): Make sure the face's GC is valid.
715
df75b1a3
GM
716 * keymap.c (get_keymap_1): Add comment that this function can GC.
717 (where_is_internal_2, where_is_internal_1): Add GCPROs, add
718 comment that functions can GC.
719 (Fset_keymap_parent): GCPRO arg KEYMAP.
720
4314cf3e
EZ
7212000-07-10 Eli Zaretskii <eliz@is.elta.co.il>
722
723 * msdos.c (XMenuActivate): After exiting the menu, restore the
724 echo area message and erase it.
725
ab49ce15
KH
7262000-07-10 Kenichi Handa <handa@etl.go.jp>
727
728 * fontset.c (Ffontset_info): Make the return value more compatible
729 with that of Emacs 20.
730
090a072f
GM
7312000-07-07 Gerd Moellmann <gerd@gnu.org>
732
733 * eval.c (Fsignal): Handle case that backtrace_list is null.
734
f92de4a6
KH
7352000-07-07 Kenichi Handa <handa@etl.go.jp>
736
737 * ccl.c (Fccl_execute): Typo fixed.
738
dd8888a1
GM
7392000-07-06 Gerd Moellmann <gerd@gnu.org>
740
e5c81191 741 * window.c (window_loop): Add missing gcpro1 local variable.
178c5d9c 742
dd8888a1
GM
743 * window.c (Fwindow_list): Reverse list at the end.
744 (candidate_window_p): Add parameter OWINDOW. ALL_FRAMES nil
745 means allow windows on OWINDOW's frame, only.
746 (window_loop): Simplified; use Fwindow_list.
747
748 * Makefile.in (TAGS-LISP): Don't pass `$(lispsource)' to make.
749
485266d0
GM
7502000-07-05 Gerd Moellmann <gerd@gnu.org>
751
752 * xterm.c (XTread_socket): Increment handling_signal at the start,
753 decrement it at the end.
754
755 * eval.c (handling_signal): New variable.
756 (Fsignal): Abort if handling_signal is non-zero.
757
758 * lisp.h (handling_signal): External declaration.
178c5d9c 759
485266d0
GM
760 * s/freebsd.h (WAITTYPE, WRETCODE): Put in #if 0.
761
80fcd514
KR
7622000-07-05 Ken Raeburn <raeburn@gnu.org>
763
764 Sound support for NetBSD through "Linux emulation" support:
765 * config.in (HAVE_SOUNDCARD_H): Undef.
766 (HAVE_SOUND): Define if HAVE_SOUNDCARD_H.
767 * Makefile.in (LIBSOUND): New variable.
768 (LIBES): Include it.
769 * sound.c [HAVE_SOUNDCARD_H]: Include <sys/ioctl.h> and
770 <soundcard.h>.
771 (DEFAULT_SOUND_DEVICE): Define to "/dev/dsp" if not defined
772 elsewhere.
773 (vox_open): Use DEFAULT_SOUND_DEVICE.
774 * s/netbsd.h (DEFAULT_SOUND_DEVICE): Define to /dev/audio.
775
d5c5cddd
GM
7762000-07-05 Gerd Moellmann <gerd@gnu.org>
777
778 * print.c (print_error_message): If Vsignaling_function is set,
779 show it in *Messages*.
780
781 * lisp.h (Vsignaling_function): External declaration.
782
783 * eval.c (Vsignaling_function): New variable.
784 (Fsignal): Compute it.
785 (syms_of_eval): Staticpro it.
786
65171e3a
DL
7872000-07-05 Dave Love <fx@gnu.org>
788
789 * syswait.h: Use the autoconf recommended approach. Old code
790 #if'd out in case we need to revert.
791
178c5d9c 792 * config.in (HAVE_SYS_WAIT_H): Added.
65171e3a 793
e2c46326
AI
7942000-07-05 Andrew Innes <andrewi@gnu.org>
795
796 * vm-limit.c (check_memory_limits) [REL_ALLOC]: Use real_morecore
797 when non-NULL instead of __morecore, to take account of buffer
798 memory. This also solves a problem with spurious memory warnings
799 on Windows.
800
801 * ralloc.c: Make real_morecore non-static.
802
803 * eval.c (internal_condition_case): Comment out abort if
804 interrupt_input_blocked is not zero.
805
806 * makefile.nt: Add support for `bootstrap' and related targets.
807 Include minimal debug info in emacs.exe in release build.
808 Remove all dependencies on lisp.h, and fixup some others.
809
810 * w32.c (init_environment): Install code from 20.7 for providing
811 default values for environment variables, based on the
812 executable's own location.
813 (map_w32_filename): Handle filenames that are longer than
814 MAX_PATH.
815 (sys_socket): Install socket inheritance bug fix from 20.7.
816
817 * alloca.c [emacs]: Include lisp.h (needed by atimer.h included
818 here via blockinput.h).
819
a027a91b
SM
8202000-07-05 Stefan Monnier <monnier@cs.yale.edu>
821
e4b31601
SM
822 * w32menu.c (w32_menu_display_help):
823 * xmenu.c (menu_help_callback): Use show_help_echo.
a027a91b
SM
824
825 * keyboard.h (show_help_echo): Declare.
826
827 * keyboard.c (show_help_echo): New function, extracted from read_char.
828 Feval its `msg' argument if it's a cons cell.
829 (read_char): Use it.
4cf8d9d5 830 (follow_key): Pass `autoload' to get_keyelt.
a027a91b 831
178c5d9c 832 * xterm.c (note_mode_line_highlight, note_mouse_highlight)
a027a91b 833 (note_tool_bar_highlight, XTread_socket):
178c5d9c 834 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight)
a027a91b
SM
835 (dos_rawgetc):
836 * w32term.c (note_mode_line_highlight, note_mouse_highlight)
837 (note_tool_bar_highlight, w32_read_socket):
838 Do not gratuitously ignore non-string `help-echo' properties.
839
88d75730
GM
8402000-07-05 Gerd Moellmann <gerd@gnu.org>
841
969f7e79
GM
842 * eval.c (Feval): Put check for interrupt_input_block in #if 0.
843
71201b00
GM
844 * window.c (delete_all_subwindows): Reset Vwindow_list.
845
88d75730
GM
846 * xterm.c (x_append_glyph, x_append_composite_glyph)
847 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
848 changes in struct glyph starting 1999-12-27. Some bit-fields of
849 struct glyph were not set, which made glyphs unequal when compared
850 with GLYPH_EQUAL_P. Redisplay outputs such glyphs, and flickering
851 effects were the result. This also depended on the contents of
852 memory returned by xmalloc. If flickering happens again, activate
853 the code in clear_glyph_row that's in #if 0. If the flickering is
854 gone with that, chances are that it is caused by something
855 similar.
856
857 * dispnew.c (clear_glyph_row): Add debug code in #if 0.
178c5d9c 858
88d75730
GM
859 * dispextern.h: Add some comments.
860
861 * window.c (add_window_to_list): Add parameter LIST.
862 (window_list): Order list so that, for each frame, windows are
863 in canonical order, and so that frames appear in the list in
864 the order given by Vframe_list.
865 (next_window): Reverse the handling of NEXT_P.
866
53654733
GM
8672000-07-04 Gerd Moellmann <gerd@gnu.org>
868
87efd256
GM
869 * window.c (Vwindow_list): New variable.
870 (make_window, delete_window): Set Vwindow_list to nil.
871 (check_window_containing): New function.
872 (window_from_coordinates): Rewritten.
873 (add_window_to_list, window_list, candidate_window_p)
874 (decode_next_window_args, next_window): New functions.
875 (Fnext_window, Fprevious_window): Rewritten in terms of
876 next_window.
877 (Fwindow_list): New function.
878 (Fother_window): Cleaned up.
879 (foreach_window): Add a longer "variable argument list". Let
880 callback function return 0 to indicate that cycling over windows
881 should stop.
882 (foreach_window_1): Likewise.
883 (freeze_window_start): Return int.
884 (init_window): New function.
885 (syms_of_window): Staticpro Vwindow_list and defsubr Swindow_list.
886
887 * emacs.c (handle_USR1_signal, handle_USR2_signal) Clear
888 input_event with bzero.
889 (main): Call init_window.
890
53654733
GM
891 * keymap.c (get_keyelt): Temporarily inhibit GC while evaluating
892 a menu filter.
893
4a8c194f
KH
8942000-07-04 Kenichi Handa <handa@etl.go.jp>
895
896 * composite.h (make_composition_value_copy): Extern it.
897
898 * composite.c (make_composition_value_copy): New function.
899
900 * editfns.c (Fformat): While copying text properties, make each
901 composition property value a copy.
902
903 * fns.c (concat): While copying text properties, make each
904 composition property value a copy.
905
831a6cb0
GM
9062000-07-03 Gerd Moellmann <gerd@gnu.org>
907
2f516940
GM
908 * m/macppc.h (LINKER, LD_SWITCH_MACHINE) [LINUX]: Define.
909
178c5d9c 910 * fns.c (sweep_weak_table): Mark only objects that are not
aee625fa
GM
911 marked already.
912
831a6cb0
GM
913 * frame.c (next_frame, prev_frame): If MINIBUF is a window,
914 include those frames as candidates which have their focus
915 redirected to the minibuffer frame.
916
d9c4f922
SM
9172000-07-03 Stefan Monnier <monnier@cs.yale.edu>
918
919 * fns.c (Fputhash): Return `value' rather than nil.
920
3780bc22
GM
9212000-06-30 Gerd Moellmann <gerd@gnu.org>
922
97d176db
GM
923 * frame.c (next_frame): Don't check focus redirection in case
924 MINIBUF is a window. Doing so excludes frames using MINIBUF
3780bc22
GM
925 unless their focus is redirected, which contradicts the
926 specification of next-frame, and leads to infinite loops in
927 certain situations when cycling through windows with next-window.
928
dca9961d
KH
9292000-06-30 Kenichi Handa <handa@etl.go.jp>
930
931 * coding.c (code_convert_region): Even if the length of text is
932 zero, try to convert it if coding->type is coding_type_ccl.
933 (decode_coding_string, encode_coding_string): Likewise.
934
d5483ab1
GM
9352000-06-28 Gerd Moellmann <gerd@gnu.org>
936
af5c25e1 937 * xdisp.c (try_window_reusing_current_matrix): Don't try to reuse
97d176db 938 the display if windows_or_buffers_changed.
af5c25e1
GM
939
940 * dispnew.c (struct row_entry): New structure.
941 (row_entry_pool, row_entry_pool_size, row_entry_idx, row_table)
942 (row_table_size, old_lines, new_lines, old_lines_size)
943 (new_lines_size, run_pool, runs_size, runs): New variables.
944 (add_row_entry): New function.
945 (scrolling_window): Use data structures allocated with xmalloc and
97d176db 946 held in global variables, instead of allocating them with alloca and
af5c25e1
GM
947 holding them in local variables. Use a larger hash table whose
948 size depends on glyph matrix sizes. Don't use bzero to clear the
949 hash table; instead, clear used slots only.
950
951 * fns.c (next_almost_prime): Make it externally visible.
952
953 * lisp.h (next_almost_prime): Add prototype.
954
d5483ab1
GM
955 * s/isc4-0.h (sigunblock): Define.
956
957 * s/sco5.h (sigunblock): Define.
958
93e40f40
DL
9592000-06-27 Dave Love <fx@gnu.org>
960
961 * s/osf1.h (C_SWITCH_SYSTEM, LIBS_SYSTEM): Revert last change
962 (moved to osf5-0.h).
963 [!NOT_C_CODE]: Protect string.h stuff.
964
965 * s/osf5-0.h (C_SWITCH_SYSTEM, WAIT_USE_INT, SYS_SIGLIST_DECLARED)
966 (sys_siglist, NSIG): Definitions moved here from osf1.h.
967
3c4b7685
GM
9682000-06-27 Gerd Moellmann <gerd@gnu.org>
969
97d176db 970 * xdisp.c (resize_mini_window): Subtract the extra line spacing
3c4b7685
GM
971 below the last line from the needed window height.
972
32cad0aa
SM
9732000-06-26 Stefan Monnier <monnier@cs.yale.edu>
974
975 * fns.c (Fplist_member): Renamed from Fwidget_plist_member.
976 (Fwidget_get): Use it.
977 (syms_of_fns): Defsubr it.
978
2c69ced2
GM
9792000-06-26 Gerd Moellmann <gerd@gnu.org>
980
178c5d9c 981 * xterm.c (xim_initialize) [!USE_XIM]: Don't set up the
1d36487c
GM
982 display info for XIM.
983 (xim_open_dpy): Likewise.
984 (xim_close_dpy): Don't free the display info's XIM.
985
986 * xfns.c (x_window) [!USE_XIM]: Don't call create_frame_ic.
987
988 * config.in (USE_XIM): New define.
989
3fc720e4
GM
990 * keymap.c (get_keyelt): For menu-items containing a `:filter
991 FILTER', apply FILTER to the menu-item's definition to get the
992 real definition to use.
993
994 * lisp.h (QCfilter): External declaration.
995
2c69ced2
GM
996 * xfns.c (Fimage_size): New function.
997 (syms_of_xfns): Defsubr it.
998
f978b2a2
AS
9992000-06-26 Andreas Schwab <schwab@suse.de>
1000
1001 * coding.c (decode_coding_string): Re-fetch STRING_BYTES after
1002 Fstring_as_unibyte.
1003
94cc7892
DL
10042000-06-25 Dave Love <fx@gnu.org>
1005
1006 * term.c [!HAVE_TERMCAP_H]: Declare tputs, tgetent, tgetflag,
1007 tgetnum.
1008
1009 * Makefile.in (blockinput.h): Depend on atimer.h.
1010 (atimer.h): Depend on systime.h.
1011
1012 * blockinput.h: Protect against multiple inclusion. Include
1013 atimer.h.
1014
1015 * atimer.h: Protect against multiple inclusion. Include
1016 systime.h.
1017
1018 * lisp.h (swap_in_global_binding): Declare.
1019
b8c24556
KR
10202000-06-24 Ken Raeburn <raeburn@gnu.org>
1021
1022 * process.c (Fopen_network_stream): Turn off atimers for duration
1023 of call to connect. (Patch from Gerd.)
1024
8cf8560b
DL
10252000-06-23 Dave Love <fx@gnu.org>
1026
511c7541
DL
1027 * ralloc.c: Maybe include unistd.h
1028
8cf8560b
DL
1029 * emacs.c (setgrp): Undefine before defining.
1030 (malloc_warning, set_time_zone_rule, index): Prototype.
1031
1032 * systime.h (EMACS_GET_TIME) [!GETTIMEOFDAY_ONE_ARGUMENT]: Use
1033 HAVE_STRUCT_TIMEZONE.
1034
1035 * s/osf1.h: Move string.h hack here from alpha.h and make it
1036 conditional.
1037 (C_SWITCH_SYSTEM): Use _OSF_SOURCE, not -BSD, which clashes with
1038 _XOPEN_SOURCE.
1039 (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist, NSIG): Define.
1040 (SOCKLEN_TYPE): Don't define.
1041
1042 * m/alpha.h: Remove string.h hack.
1043
1044 * s/osf5-0.h: New file.
1045
1046 * filelock.c: Use feature tests for fcntl.h, string.h. Don't
1047 include time.h, done by systime.h.
1048 [__FreeBSD__]: Remove redundant includes.
1049
3fc720e4 1050 * callproc.c (setpgrp): Undefine before defining.
8cf8560b
DL
1051 (delete_temp_file): Return Qnil to avoid warning.
1052
1053 * config.in (HAVE_TERM_H, HAVE_STRUCT_TIMEZONE): Add.
1054
1055 * xfaces.c: Include fontset.h dependent on HAVE_WINDOW_SYSTEM, not
1056 HAVE_X_WINDOWS.
1057
1058 * fontset.h (free_face_fontset): Renamed from fs_free_face_fontset.
1059
1060 * composite.h (compose_text): Declare.
1061
1062 * xterm.c: Don't include sys/types.h unconditionally. Don't
1063 protect its inclusion with !USG (following xmenu.c).
1064
ea055732
GM
10652000-06-23 Gerd Moellmann <gerd@gnu.org>
1066
1067 * xfns.c (x_create_tip_frame): Initialize frame's colors like
1068 in x_create_frame.
1069
74b01b80
EZ
10702000-06-23 Eli Zaretskii <eliz@is.elta.co.il>
1071
1072 * coding.c (decode_eol_post_ccl): Special handling for undecided
1073 and inconsistent EOL types.
1074
64f3a166
GM
10752000-06-22 Gerd Moellmann <gerd@gnu.org>
1076
16cf31f7
GM
1077 * xrdb.c (x_load_resources): Add default resource for scroll bar's
1078 trough color and main window's background color.
1079
178c5d9c 1080 * xfns.c (Fx_file_dialog) [HAVE_MOTIF_2_1]: Handle events
16cf31f7
GM
1081 differently.
1082
1083 * xterm.h (Xt_app_con): External declaration.
1084
1085 * widget.c (EmacsFrameRealize): Fix typo.
178c5d9c 1086
486a103d
GM
1087 * widget.c (EmacsFrameRealize): Remove SubstructureRedirectMask.
1088
64f3a166
GM
1089 * xdisp.c (handle_stop): Initialize it->add_overlay_start to zero.
1090 (handle_invisible_prop): Record the start of invisible text in
1091 it->add_overlay_start.
1092 (struct overlay_entry): Add member `overlay'.
1093 (handle_overlay_change): Simplify.
1094 (next_overlay_string): After having processed overlay strings at the
1095 end of the buffer, record that fact in
1096 it->overlay_strings_at_end_processed_p.
1097 (compare_overlay_entries): If before- and after-strings come
1098 from the same overlay, let before-strings come first.
1099 (RECORD_OVERLAY_STRING): Record the overlay that strings come from.
1100 (load_overlay_strings): Take it->add_overlay_start into account
1101 when adding overlay strings.
1102
1103 * dispextern.h (struct it): Add member add_overlay_start.
1104
bb746ea6
DL
11052000-06-22 Dave Love <fx@gnu.org>
1106
1107 * s/isc3-0.h (C_SWITCH_SYSTEM): Define _XOPEN_SOURCE=500.
1108
1109 * s/gnu-linux.h (C_SWITCH_SYSTEM): Don't define _XOPEN_SOURCE here.
1110
a8f573f3
KH
11112000-06-22 Kenichi Handa <handa@etl.go.jp>
1112
1113 * ccl.c (ccl_driver) <CCL_End>: Decrement stack_idx only when it
1114 is greater than 0.
1115
9f2bbc92
DL
11162000-06-21 Dave Love <fx@gnu.org>
1117
178c5d9c 1118 * Makefile.in (GETLOADAVG_OBJ): Removed -- LIBOBJS does it.
9f2bbc92 1119
3ee5041c
SM
11202000-06-21 Stefan Monnier <monnier@cs.yale.edu>
1121
1122 * syntax.c (back_comment): Simplify string-parity counting (with
1123 the added benefit of handling multiple string-styles as long as
1124 they are not intertwined).
1125 Jump to the slow code as soon as a comment starter is found in
1126 a "string_lossage" position. Fixes the case: " /* " /* " */.
1127
4c343001
DL
11282000-06-21 Dave Love <fx@gnu.org>
1129
1130 * Makefile.in: Use GETLOADAVG_LIBS.
1131
1132 * config.in: Add HAVE_FCNTL_H, _FILE_OFFSET_BITS,
1133 _LARGEFILE_SOURCE, _LARGE_FILES, _XOPEN_SOURCE.
1134
e6365855
SM
11352000-06-20 Stefan Monnier <monnier@cs.yale.edu>
1136
1137 * syntax.c (describe_syntax): Recognize the `n'estable bit.
1138 (Fforward_comment, scan_lists):
1139 Check the comstyle of single-char comment-starters.
1140 (scan_sexps_forward): Don't try to recognize `half comment-enders' if
1141 we're just at the beginning of the comment (f.ex with (*) ... (*)).
d355bd8a
SM
1142 Check the comstyle of single-char comment-starters.
1143 Clarify control-flow around the Scomment case.
e6365855 1144
5700d2cc
DL
11452000-06-20 Dave Love <fx@gnu.org>
1146
d355bd8a
SM
1147 * fns.c (make_hash_table, maybe_resize_hash_table):
1148 Cast arg of next_almost_prime.
5700d2cc 1149
178c5d9c 1150 * tparam.c [emacs]: Include lisp.h.
5700d2cc
DL
1151
1152 * termcap.c [emacs]: Test HAVE_FCNTL_H, not USG5. Include lisp.h
1153 and unistd.h.
1154
4a27bdfb
GM
11552000-06-20 Gerd Moellmann <gerd@gnu.org>
1156
a61d762c
GM
1157 * keyboard.c (adjust_point_for_property): Check if display
1158 property should be treated as intangible by looking at its
1159 value.
1160
178c5d9c 1161 * xdisp.c (single_display_prop_intangible_p)
a61d762c
GM
1162 (display_prop_intangible_p): New functions.
1163
1164 * dispextern.h (display_prop_intangible_p): Add prototype.
1165
1166 * xdisp.c (dump_glyph_row): Show type of glyph->object.
178c5d9c 1167
4a27bdfb
GM
1168 * s/isc4-0.h (sigblock): Redefined to pass a pointer as second
1169 argument to sigprocmask.
1170
1171 * s/sco5.h (sigblock): Redefined to pass a pointer as second
1172 argument to sigprocmask.
1173
1174 * syssignal.h (sigblock, sigunblock) [USG5_4]: Set
1175 sigprocmask_set, and pass a pointer to it to sigprocmask.
1176
1177 * sysdep.c (sigprocmask_set): New variable.
1178
1179 * fileio.c (make_temp_name): Don't use `%s' in string passed to
1180 report_file_error.
1181
427ec082
SS
11822000-06-20 Sam Steingold <sds@gnu.org>
1183
1184 * xrdb.c: Don't declare xmalloc, xrealloc.
1185
8972fe79 11862000-06-20 Stefan Monnier <monnier@cs.yale.edu>
8972fe79
SM
1187
1188 * regex.c (re_match, re_match_2): Protect calls to alloca (0).
1189 (re_comp): Cast gettext return value to avoid complaints when
1190 !HAVE_LIBINTL.
1191
074b6efe
DL
11922000-06-20 Dave Love <fx@gnu.org>
1193
f85c008a
DL
1194 * m/stride.h, m/mips.h: Don't define HAVE_GETWD,
1195 HAVE_GETTIMEOFDAY.
1196
5700d2cc 1197 * m/ibmrt-aix.h: Don't declare HAVE_GETTIMEOFDAY, HAVE_VFORK.
f85c008a 1198
d355bd8a 1199 * m/ibmrs6000.h, m/ibmps2-aix.h, m/dpx2.h: Don't declare HAVE_GETWD.
f85c008a
DL
1200
1201 * m/alpha.h: Don't declare xmalloc, xrealloc.
1202
0af4f205
DL
1203 * s/ux4800.h: Don't declare GETTIMEOFDAY_ONE_ARGUMENT.
1204
1205 * s/usg5-4-2.h: Don't declare HAVE_GETWD, VFORK_RETURN_TYPE.
1206
1207 * s/umips.h: Don't declare HAVE_GETWD, HAVE_GETTIMEOFDAY.
1208
1209 * s/cxux.h, s/gnu-linux.h, s/iris3-6.h, s/irix3-3.h: Don't declare
1210 HAVE_GETWD.
1211
074b6efe
DL
1212 * keyboard.h (poll_for_input_1): Declare.
1213
1214 * getloadavg.c: Don't define NLIST_STRUCT (handled by configure).
1215
1216 * alloc.c (xmalloc, xrealloc, xfree): Define using POINTER_TYPE.
1217
1218 * doprnt.c: Don't declare xmalloc, xrealloc.
1219
1220 * lisp.h (x_set_tool_bar_lines, free_frame_xic, compose_text)
1221 (getenv, ctime, getwd): Removed.
1222 (xmalloc, xrealloc, xfree): Declare using POINTER_TYPE.
1223
1224 * xterm.h: Remove duplicate prototypes. Declare free_frame_xic,
1225 x_set_tool_bar_lines.
1226
1227 * config.in: Add HAVE_GETWD. Move some definitions above
1228 machine/system includes.
1229
68a5e97b
KH
12302000-06-20 Kenichi Handa <handa@etl.go.jp>
1231
95417e1e
KH
1232 * s/bsd386.h (HAVE_GETLOADAVG): Define it as 1.
1233
68a5e97b
KH
1234 * xfaces.c (font_list): Handle the case that REGISTRY doesn't
1235 contain information about ENCODING.
1236
1237 * fontset.c (FONTSET_ASCII): Use the first element of char table
1238 for an ASCII font, not defalt slot.
1239 (fontset_ref_via_base): If FONTSET doesn't contain information for
1240 C, try the default fontset.
1241 (make_fontset): Don't copy the default fontset.
1242 (fontset_font_pattern): Likewise.
1243 (accumulate_font_info): If ELT is nil, use the corresponding
1244 element in the default fontset.
1245
3b4fa1b2
DL
12462000-06-19 Dave Love <fx@gnu.org>
1247
943e731c
DL
1248 * syntax.c (Fparse_partial_sexp): Doc fix.
1249
1250 * regex.h: Test PROTOTYPES as well as __STDC__.
1251
3b4fa1b2
DL
1252 * unexalpha.c: Include errno.h, string.h, unistd.h. Don't declare
1253 errno, strerror. Put text after #endif in comment.
1254
1255 * xdisp.c (dump_glyph_matrix): Add `static' to declaration (for
1256 pcc).
1257
1258 * xterm.c (x_frame_of_widget): Likewise.
1259
cdf0357b
GM
12602000-06-19 Gerd Moellmann <gerd@gnu.org>
1261
1262 * abbrev.c (syms_of_abbrev): Set buffer_default's abbrev table
1263 to Vfundamental_mode_abbrev_table.
1264
1265 * alloc.c (mark_object) [GC_CHECK_MARKED_OBJECTS]: Check that no
1266 bogus objects are marked. This slows down GC by ~80 percent, but
1267 it might be worth trying when debugging GC-related problems.
1268 This feature requires conservative stack marking to be enabled.
1269
1270 * xterm.c (XTread_socket) <KeyPress>: In case XmbLookupString
1271 returns XLookupChars, reset `modifiers' to zero.
1272
998e9f8c
DL
12732000-06-19 Dave Love <fx@gnu.org>
1274
1275 * mktime.c: Unprotoized.
1276
18e21ce8 12772000-06-19 Richard Stallman <rms@gnu.org>
d1504184
GM
1278
1279 * data.c (set_internal): If variable is frame-local,
1280 store the new value immediately into the frame parameter alist.
1281
140c4ac6
KR
12822000-06-19 Ken Raeburn <raeburn@gnu.org>
1283
14358466
KR
1284 * xfns.c (jpeg_load): Fetch error-handling data first, then fill
1285 in the custom handler pointer.
1286
140c4ac6
KR
1287 * keyboard.c (follow_key, read_key_sequence): Use XUINT on key
1288 value, or checks for CHAR_META can fail when Lisp_Object is a
1289 union type.
1290 * keymap.c (get_keyelt): Likewise.
1291
10d7bf84
KH
12922000-06-19 Kenichi Handa <handa@etl.go.jp>
1293
1294 * ccl.h (struct ccl_program): New member eol_type.
1295 (struct ccl_spec): New member cr_carryover.
1296
1297 * ccl.c (CCL_WRITE_CHAR): Convert NL according to ccl->eol_type.
1298 (setup_ccl_program): Initialize ccl->eol_type to CODING_EOL_LF.
1299
1300 * coding.c (setup_coding_system) <4>: Reset member `cr_carryover'.
1301 (ccl_coding_driver): On encoding, initialize ccl->eol_type.
1302 (decode_eol_post_ccl): New function.
1303 (decode_coding): Don't detect EOL format here for CCL based coding
1304 systems.
1305 (decode_coding) <coding_type_ccl>: Handle carryovered CR. Call
1306 decode_eol_post_ccl after running the CCL program.
1307 (code_convert_region): Don't detect EOL format here for CCL based
1308 coding systems.
1309 (decode_coding_string): Likewise.
1310
52e386c2
KR
13112000-06-18 Ken Raeburn <raeburn@gnu.org>
1312
1313 * charset.c (update_charset_table): Use XINT on "iso_final_char"
1314 when treating it as an integer.
1315
1316 * coding.h (encode_coding_string): Declare.
1317
1318 * keyboard.c (read_key_sequence): Use XINT on "pos" when treating
1319 it as an integer.
1320
1321 * keymap.c (Fwhere_is_internal): Rename argument "keymap" to
1322 "xkeymap" to avoid shadowing the "enum map_type" value that needs
1323 to be passed to get_local_map.
1324
1325 * sound.c (Fplay_sound): Don't call make_number on
1326 Frun_hook_with_args count argument.
1327
1328 * xterm.c (x_send_scroll_bar_event): Fudge lisp object/integer
1329 for lisp objects in X event structure data field, when lisp
1330 objects are represented with unions.
1331 (x_scroll_bar_to_input_event): Ditto.
1332
b357b9d4
KR
13332000-06-16 Ken Raeburn <raeburn@gnu.org>
1334
1335 * xdisp.c (decode_mode_spec): In "no_value" case, do NUL
37d034d3
KR
1336 termination of string. Fix sense of test whether
1337 Vline_number_display_limit is an integer.
b357b9d4 1338
a871441d
GM
13392000-06-16 Gerd Moellmann <gerd@gnu.org>
1340
a9021acd
GM
1341 * xfaces.c (syms_of_xfaces) [DEBUG_X_COLORS]: Defsubr dump_colors
1342 only if HAVE_X_WINDOWS.
1343
6344985d
GM
1344 * keymap.c (describe_buffer_bindings): Add `\f\n' in front
1345 of titles.
1346
427ec082 1347 * dispnew.c (update_frame_1): Handle case that cursor vpos is
a871441d
GM
1348 out of bounds.
1349
228b083e
EZ
13502000-06-15 Eli Zaretskii <eliz@is.elta.co.il>
1351
1352 * unexec.c (toplevel): Fix last change, so as not to deprive MSDOS
1353 of its headers.
1354
c25b53a2
KH
13552000-06-15 Kenichi Handa <handa@etl.go.jp>
1356
1357 * coding.c (decode_coding_emacs_mule): Always set src_base at the
1358 start of the while loop.
1359
a6981b11
GM
13602000-06-15 Gerd Moellmann <gerd@gnu.org>
1361
e9924e52
GM
1362 * atimer.c (alarm_signal_handler): Add forward declaration.
1363
a6981b11
GM
1364 * data.c (set_internal): Remove debug code.
1365
25fa6deb
GM
13662000-06-14 Gerd Moellmann <gerd@gnu.org>
1367
dce6b995
GM
1368 * Makefile.in (bootstrap-temacs): Add `-I../src'.
1369
9f817ea4
GM
1370 * unexec.c (toplevel) [COFF]: Include coff.h.
1371
1372 * s/lynxos.h: New file.
1373
1374 * keymap.c (Fsingle_key_description): Enclose function key and
1375 event symbol names in angle brackets.
1376
8a4e3c0c
GM
1377 * xdisp.c (setup_echo_area_for_printing): Call
1378 message_log_maybe_newline if message_buf_print is not set.
1379
1380 * print.c (printchar, strout): Don't check message_buf_print
427ec082 1381 before calling setup_echo_area_for_printing because that
8a4e3c0c
GM
1382 function does something useful even when message_buf_print is
1383 already set.
1384
25fa6deb
GM
1385 * xdisp.c (message_truncate_lines, Qmessage_truncate_lines): New
1386 variables.
1387 (ensure_echo_area_buffers): Initialize echo buffer's
1388 truncate lines setting to nil.
1389 (with_echo_area_buffer): Don't set the echo buffer's truncate
1390 lines setting here.
8a4e3c0c 1391 (set_message_1): Set it here instead, based on the value
25fa6deb
GM
1392 of message_truncate_lines.
1393 (resize_mini_window): Handle case that lines are truncated.
1394 (syms_of_xdisp): Initialize Qmessage_truncate_lines. DEFVAR_BOOL
1395 message-truncate-lines.
1396
1397 * keyboard.c (read_char): Bind message-truncate-lines to t
1398 while displaying a help-echo.
1399
1400 * lisp.h (Qmessage_truncate_lines): External declaration.
1401
163dcff3
GM
14022000-06-13 Gerd Moellmann <gerd@gnu.org>
1403
1681ead6
GM
1404 * xdisp.c (Vline_number_display_limit): Renamed from
1405 line_number_display_limit.
1406 (syms_of_xdisp): Use DEFVAR_LISP for line-number-display-limit.
1407 Extend documentation string. Initialize
1408 Vline_number_display_limit to nil meaning no limit.
1409 (decode_mode_spec): Use Vline_number_display_limit with its new
1410 meaning.
1411
163dcff3
GM
1412 * xterm.c (x_check_font) [GLYPH_DEBUG]: Add prototype.
1413
18e21ce8 14142000-06-13 Richard Stallman <rms@gnu.org>
163dcff3
GM
1415
1416 * frame.c (Fmodify_frame_parameters): Doc fix.
427ec082 1417
163dcff3
GM
1418 * xfns.c (x_set_frame_parameters): Comment fix.
1419
1420 * frame.c (store_frame_param): Call swap_in_global_binding if the
1421 variable's current binding was chosen based on this frame.
1422
1423 * data.c (swap_in_global_binding): New function.
1424
a704139d
EZ
14252000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
1426
1427 * msdos.c (IT_write_glyphs): Don't use CODING_REQUIRE_ENCODING
1428 macro, instead AND with CODING_REQUIRE_ENCODING_MASK.
1429
9b6610db
EZ
14302000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
1431
1432 * msdos.h (EMACS_MSDOS_H): Renamed from MSDOS_H_.
1433
c68833d2
JR
14342000-06-12 Jason Rumney <jasonr@gnu.org>
1435
1436 * w32bdf.h (EMACS_W32BDF_H): Renamed from __W32BDF_H__
1437
1438 * w32.h (EMACS_W32_H): Renamed from _NT_H_
1439
1440 * w32gui.h (EMACS_W32GUI_H): Renamed from __W32GUI_H__
1441
1442 * w32inevt.h (EMACS_W32INEVT_H): Renamed from __NTINEVT_H__
1443
ed1056b3
GM
14442000-06-12 Gerd Moellmann <gerd@gnu.org>
1445
1446 * xfaces.c (Fdump_colors) [DEBUG_X_COLORS]: New function.
1447 (syms_of_xfaces): Defsubr Sdump_colors.
1448 (x_free_colors): Don't treat b&w specially on default visual.
1449 (x_free_dpy_colors): New function.
1450 (free_face_colors): Don't check visual class; it's done
1451 in x_free_colors.
1452
1453 * xterm.c (x_frame_of_widget): New function.
1454 (x_alloc_nearest_color_for_widget): Use it.
1455 (x_copy_dpy_color): New function.
1456 (x_destroy_window): Free various colors.
1457
5050a2ef
KH
14582000-06-12 Kenichi Handa <handa@etl.go.jp>
1459
1460 * ccl.h (EMACS_CCL_H): Renamed from _CCL_H.
1461
1462 * charset.h (EMACS_CHARSET_H): Renamed from _CHARSET_H.
1463
1464 * coding.h (EMASC_CODING_H): Renamed from _CODING_H.
1465
1466 * composite.h (EMACS_COMPOSITE_H): Renamed from _COMPOSITE_H.
1467
1468 * fontset.h (EMACS_FONTSET_H): Renamed from _FONTSET_H.
1469
fb1b041d
DL
14702000-06-11 Dave Love <fx@gnu.org>
1471
1472 * systime.h (EMACS_SYSTIME_H): Renamed from _SYSTIME_H.
1473
ff96b5f4
EZ
14742000-06-11 Eli Zaretskii <eliz@is.elta.co.il>
1475
1476 * msdos.h: Don't use _MSDOS_H_ as a symbol, use MSDOS_H_ instead.
1477
db8eeecd
GM
14782000-06-11 Gerd Moellmann <gerd@gnu.org>
1479
ed1056b3 1480 * xmenu.c (xmenu_show): Cast second parameter of lw_popup_menu
db8eeecd
GM
1481 to `XEvent *'.
1482
49b71c5f
KH
14832000-06-10 Kenichi Handa <handa@etl.go.jp>
1484
c479bd55
KH
1485 * regex.c (MAKE_CHAR) [!emacs]: Dummy macro for non-Emacs env.
1486 (regex_compile): Fix the code for handling the case of single byte
1487 char and multibyte char being mixed in a range within [...].
1488
ff6a65c2
KH
1489 * fileio.c (Finsert_file_contents): Be sure to setup src_multibyte
1490 and dst_multibyte members of coding.
1491
49b71c5f
KH
1492 * charset.c (update_charset_table): Update the table
1493 bytes_by_char_head.
1494 (init_charset_once): Initialize elements of bytes_by_char_head to
1495 1 except for leading codes for private charases.
1496
1497 * charset.h (CHARSET_8_BIT_GRAPHIC): Define as 0x80.
1498 (UNIBYTE_STR_AS_MULTIBYTE_P): Fix for an invalid multibyte
1499 sequence.
1500
9e80b57d
KR
15012000-06-09 Ken Raeburn <raeburn@gnu.org>
1502
1503 * xterm.c (x_connection_closed): If dpyinfo is NULL, don't try to
1504 access the data it doesn't point to.
1505
f83fe4b4
GM
15062000-06-08 Gerd Moellmann <gerd@gnu.org>
1507
1508 * xterm.c (XTread_socket) <FocusIn>: Queue a FOCUS_IN_EVENT which
db8eeecd 1509 will be translated to a switch-frame event when reading the
f83fe4b4
GM
1510 event queue. This is necessary because Emacs otherwise won't
1511 perform a switch-frame to a new frame until some other event, for
1512 example a keystroke event, forces it to do so. This has various
1513 effects, one visible being that the cursor of a frame created with
1514 C-x 5 2 or switched to with a window manager key binding like
1515 A-TAB stays hollow because selected_window isn't on the newly
1516 focused frame until the switch-frame is performed.
1517
1518 * keyboard.c (kbd_buffer_get_event): Handle FOCUS_IN_EVENT by
1519 generating a switch-frame event if necessary.
1520
1521 * termhooks.h (enum event_kind): Add FOCUS_IN_EVENT.
1522
1523 * xdisp.c (handle_fontified_prop): Don't GCPRO local var `pos';
1524 it's an integer.
1525
0890801b
KH
15262000-06-08 Kenichi Handa <handa@etl.go.jp>
1527
1528 * fontset.c (Fset_fontset_font): The arg CHARACTER may be a
1529 charset.
1530
173cbca8
GM
15312000-06-07 Gerd Moellmann <gerd@gnu.org>
1532
3091c2a6
GM
1533 * window.c (displayed_window_lines): Take empty lines at
1534 the bottom of a window into account.
427ec082 1535
f38952fe
GM
1536 * window.c (displayed_window_lines): New function.
1537 (Fmove_to_window_line): Use displayed_window_lines to determine
1538 the number of lines to move, instead of using the window's height.
1539
1540 * lread.c (readevalloop): If READCHARFUN sets point to ZV, arrange
1541 to stop reading, even if the form read sets point to a different
1542 value when evaluated.
1543
427ec082 1544 * xdisp.c (display_line): Fix code deciding in which line to
173cbca8
GM
1545 put the cursor.
1546
6ba6c818
KH
15472000-06-07 Kenichi Handa <handa@etl.go.jp>
1548
1549 * fileio.c (e_write): Free composition data if stored in
1550 coding->cmp_data.
1551
5f1aea9a
GM
15522000-06-06 Gerd Moellmann <gerd@gnu.org>
1553
666852af
GM
1554 * xdisp.c (display_line): Set row's and iterator's
1555 starts_in_middle_of_char_p and ends_in_middle_of_char_p flags.
1556 Set cursor even if row ends in the middle of a character.
1557 (dump_glyph_row): Print values of new flags.
1558 (redisplay_window) <cursor movement in unchanged window>: When
1559 point has been moved forward, and PT is at the end of the cursor
1560 row, don't place the cursor in the next row if the cursor row ends
1561 in the middle of a character or at ZV.
1562
1563 * dispextern.h (struct it): Add starts_in_middle_of_char_p.
1564 (struct glyph_row): Add starts_in_middle_of_char_p and
1565 ends_in_middle_of_char_p.
1566 (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P): Test row's
1567 ends_in_middle_of_char_p flag.
1568 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Likewise.
1569
d13f3e2e
GM
1570 * term.c (append_glyph): Revert change of 2000-06-06.
1571
1572 * xdisp.c (display_line): Revert change of 2000-06-06. Treat
1573 padding glyph not fitting on line as whole character not
1574 fitting on line.
1575
5f1aea9a
GM
1576 * xterm.c (x_produce_glyphs): Don't xassert `it->descent > 0';
1577 this isn't true for images with `:ascent 100'.
1578
10cda9b0
KH
15792000-06-06 Kenichi Handa <handa@etl.go.jp>
1580
ed00559d
KH
1581 * buffer.c (Fset_buffer_multibyte): Don't make the current buffer
1582 as modified if it is originally unmodified.
1583
10cda9b0
KH
1584 * term.c (encode_terminal_code): Change the way to check if
1585 terminal coding does any conversion.
1586 (append_glyph): Set glyph->pixel_width correctly.
1587
1588 * xdisp.c (display_line): While checking line continuation, pay
1589 attention to a padding glyph.
1590
1969fae2
GM
15912000-06-05 Gerd Moellmann <gerd@gnu.org>
1592
1593 * xdisp.c (redisplay_window): Always use set_buffer_internal_1.
1594
162ccef4
DL
15952000-06-05 Dave Love <fx@gnu.org>
1596
f19f32dd
DL
1597 * xdisp.c: Include fontset.h.
1598
1599 * xfns.c (x_real_positions): Declare tmp_nchildren as unsigned.
1600
1601 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
1602
1603 * dispnew.c: Conditionally include term.h.
1604
1605 * coding.h: Declare code_convert_string_norecord.
1606
1607 * frame.h (struct frame): Use volatile unconditionally.
1608
1609 * buffer.h: Remove Vbefore_change_function, Vafter_change_function.
1610
1611 * xmenu.c (menu_item_selection): Declare volatile unconditionally.
1612
1613 * systime.h: Protect against multiple inclusion.
1614 (timezone) [USG5_4]: Define as time_t.
1615
1616 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
1617 (Foptimize_char_table, make_temp_name): Declare.
1618
1619 * Makefile.in (xdisp.o): Depend on fontset.h.
1620
1621 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
1622
1623 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
1624 (Foptimize_char_table, make_temp_name): Declare.
1625
427ec082 1626 * s/irix4-0.h:
162ccef4
DL
1627 * s/irix5-0.h:
1628 * s/netbsd.h: Don't define autoconfiscated MATHERR.
1629
2082fe81
DL
16302000-06-02 Dave Love <fx@gnu.org>
1631
1632 * lread.c (_XOPEN_SOURCE, __EXTENSIONS__): Don't define.
1633
dcf671d2
GM
16342000-06-02 Gerd Moellmann <gerd@gnu.org>
1635
1636 * xfaces.c (realize_x_face): When copying BASE_FACE bitwise to the
1969fae2 1637 result face, set flags in that face indicating that colors may not
dcf671d2
GM
1638 be freed.
1639
1640 * xterm.c (x_set_mouse_face_gc): If first glyph isn't a character
1641 glyph, use the ASCII NUL character to determine the face.
1642
d42122a3
DL
16432000-06-02 Dave Love <fx@gnu.org>
1644
1645 * sysdep.c: Conditionally include stdlib.h, unistd.h.
1646 (VFORK_RETURN_TYPE): Remove.
427ec082 1647
d42122a3
DL
1648 * config.in: Add NO_MATHERR.
1649
dd432f16
DL
16502000-06-01 Dave Love <fx@gnu.org>
1651
90aa4ea8
DL
1652 * cmds.c (internal_self_insert): Don't check
1653 Vbefore_change_function, Vafter_change_function.
1654
1655 * insdel.c (signal_before_change, signal_after_change): Likewise.
1656
1657 * buffer.c (Vbefore_change_function, Vafter_change_function):
1658 Variables and their initializations deleted.
1659
2330c9d4
DL
1660 * callint.c (Fcall_interactively): Doc fix.
1661
dd432f16
DL
1662 * terminfo.c (ospeed) [HAVE_SPEED_T]: Don't declare extern.
1663
bf9e8804
DL
16642000-05-31 Dave Love <fx@gnu.org>
1665
1666 * textprop.c: Revert last change -- duplicated.
1667
3694b4ab
GM
16682000-05-31 Gerd Moellmann <gerd@gnu.org>
1669
1670 * dispnew.c (find_glyph_row_slice, swap_glyphs_in_rows): Put
1671 in #if 0.
1672
1673 * lisp.h (eassert) [!ENABLE_CHECKING]: Define as `(void) 0'.
1674
f14156cd
JR
16752000-05-31 Jason Rumney <jasonr@gnu.org>
1676
8119aab8
JR
1677 * search.c (Fre_search_forward, Fre_search_backward)
1678 (Fposix_search_backward, Fposix_search_forward): Fix newlines in docs.
1679
f14156cd
JR
1680 * w32select.c (Fw32_set_clipboard_data): Change QNil to Qnil.
1681
4aab9be3
JR
16822000-05-30 Jason Rumney <jasonr@gnu.org>
1683
1684 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: New macros.
1685 [WINDOWSNT]: Add extern for Vw32_system_coding_system.
1686
1687 * dispextern.h (struct glyph) [WINDOWSNT]: Add w32_font_type
1688 member.
1689
1690 * fileio.c (Fread_file_name) [HAVE_NTGUI]: Use file dialog.
1691 (Fread_file_name) [HAVE_NTGUI, USE_MOTIF]: Do not attempt to
1692 expand a nil default_filename.
1693
1694 * keyboard.c (make_lispy_event) [WINDOWS_NT]: Pass a window
1695 pointer to glyph_to_pixel_coords, not a frame.
1696
1697 * makefile.nt (w32fns.obj, w32menu.obj): Add charset.h and
1698 coding.h to dependencies.
1699
1700 * w32bdf.c (w32_load_bdf_font): Initialize font->double_byte_p.
1701
1702 * w32console.c (glyph_to_pixel_coords): Change first parameter to
1703 window pointer to be consistent with w32term.c and xterm.c.
1704
1705 * w32fns.c: Format and doc changes to bring closer to xfns.c.
1706 (VIETNAMESE_CHARSET): Define if not defined in system headers.
1707 (Qline_spacing, Qcenter): New variables.
1708 (Qw32_charset_*, w32_codepage_for_font): Moved from w32term.c.
1709 (x_set_line_spacing): New function.
1710 (x_set_frame_parameters): Use FRAME_NEW_WIDTH, FRAME_NEW_HEIGHT
1711 macros.
1712 (x_specified_cursor_type): New function.
1713 (x_set_cursor_type): Use it.
1714 (x_set_name, x_set_title): Use ENCODE_SYSTEM to encode titlebar
1715 and icon strings.
1716 (validate_x_resource_name, x_get_resource_string): Measure lengths
1717 of external strings in bytes.
1718 (w32_wnd_proc) [WM_MEASURE_ITEM]: Avoid calling
1719 GetTextExtentPoint32 with NULL title.
1720 (Fx_create_frame): Initialize Qline_spacing.
1721 (w32_load_system_font): Initialize font->double_byte_p.
1722 (x_to_w32_charset): Use Vw32_charset_info_alist.
1723 (Image, busy cursor, tooltip functions): Merged changes from
1724 xfns.c. Not yet functional on Windows.
1725
1726 * w32gui.h (W32FontStruct): Add double_byte_p member.
1727
1728 * w32inevt.c (NUM_TRANSLATED_MOUSE_BUTTONS): New constant.
1729 (emacs_button_translation): Use it.
1730 (do_mouse_event): Allow up to 32 mouse buttons by allowing any bit
1731 in `mask' to be set.
1732
1733 * w32menu.c (single_submenu, w32_menu_show): Call ENCODE_SYSTEM on
1734 menu strings.
1735
1736 * w32term.c: Format and doc changes to bring closer to xterm.c.
1737 (w32_char_font_type): New enum.
1738 (Qw32_charset_*, w32_codepage_for_font): Moved to w32fns.c.
1739 (w32_per_char_metric): Use w32_char_font_type instead of unicode_p.
1740 (w32_encode_char): New function.
1741 (x_encode_char): Removed.
1742 (x_get_glyph_and_face_encoding): Use w32_encode_char in place of
1743 x_encode_char and w32_font_is_double_byte.
1744 (x_produce_image_glyph): Use image_ascent.
1745 (x_produce_glyphs): Use new version of w32_per_char_metric and
1746 handle NULL return value. Allow extra line spacing.
1747 (W32_TEXTOUT): Distinguish between Unicode and DBCS text.
1748 (w32_get_glyph_overhangs): Remove unicode_p param. Use
1749 w32_font_type member of glyph instead.
1750 (x_draw_glyph_string): Draw underline and strike-out for BDF fonts.
1751 (fast_find_position): Make sure not to consider rows not visible
1752 in the window.
1753 (w32_read_socket) [WM_MENUSELECT]: Cannot call
1754 w32_menu_display_help with input blocked, as it can abort.
1755 (x_display_and_set_cursor): Choose cursor depending
1756 on buffer-local value of cursor_type.
1757 (x_draw_bar_cursor): Add parameter WIDTH.
1758
1759 * w32term.h (CP_DEFAULT): Define.
1760 (Fx_display_color_p, Fx_display_grayscale_p, image_ascent): Declare.
1761
10fc3187
GM
17622000-05-30 Gerd Moellmann <gerd@gnu.org>
1763
1764 * search.c (Fre_search_forward, Fre_search_backward)
1765 (Fposix_search_backward, Fposix_search_forward): Doc fix.
1766
d0555360
KH
17672000-05-30 Kenichi Handa <handa@etl.go.jp>
1768
1769 * coding.c (detect_coding_iso2022): Fix code for checking
1770 CODING_CATEGORY_MASK_ISO_8_2.
1771
f1ad044f
SM
17722000-05-29 Stefan Monnier <monnier@cs.yale.edu>
1773
1774 * regex.c (PREFETCH_NOLIMIT): New function.
1775 (re_match_2_internal): Use it and adjust the end_match_2 logic.
1776
84ec3b4b
GM
17772000-05-29 Gerd Moellmann <gerd@gnu.org>
1778
66254a13
GM
1779 * syntax.c (find_defun_start): Move test for
1780 open_paren_in_column_0_is_defun_start outside of the loop.
1781
49e70dec
GM
1782 * xdisp.c (redisplay_window): Really switch buffers when
1783 displaying mode lines, and temporarily set selected_frame to the
1784 frame of the window that's redisplayed.
1785
84ec3b4b
GM
1786 * xfaces.c (free_realized_faces): Block/unblock input.
1787 (free_realized_multibyte_face): Ditto.
1788
869a3a14
DL
17892000-05-29 Dave Love <fx@gnu.org>
1790
1791 * textprop.c (Qkeymap): New variable.
1792 (syms_of_textprop): Intern it.
1793
1794 * keymap.c: Include intervals.h.
1795 (Fkey_binding, Fwhere_is_internal): Deal with `keymap' property.
1796
1797 * Makefile.in (keymap.o): Depend on intervals.h.
1798
1799 * keyboard.c (menu_bar_items, tool_bar_items)
1800 (Fexecute_extended_command): Deal with `keymap' property.
1801 (read_key_sequence): Track map from `keymap' property as well as
1802 `local_map'.
1803
1804 * intervals.c (get_local_map): Extra arg to allow looking for
1805 `keymap' too.
1806
1807 * intervals.h (map_property): New enum.
1808 (get_local_map): Extra arg using it.
1809 (Qkeymap): Declare.
1810
84ec3b4b 1811 * lisp.h (get_local_map): Don't declare here.
869a3a14 1812
89d0c844
KH
18132000-05-29 Kenichi Handa <handa@etl.go.jp>
1814
1815 * Makefile.in (callproc.o): Depend on composite.h.
1816
1817 * callproc.c: Include composite.h.
1818 (Fcall_process): Handle composition correctly.
1819
1820 * coding.h (coding_allocate_composition_data): Extern it.
1821 (coding_restore_composition): Likewise.
1822
1823 * coding.c (DECODE_COMPOSITION_START): If coding->cmp_data is not
1824 yet allocated, finish decoding with result
1825 CODING_FINISH_INSUFFICIENT_CMP.
1826 (coding_allocate_composition_data): Make it non-static.
1827 (coding_restore_composition): Likewise.
1828
797a084a
EZ
18292000-05-29 Eli Zaretskii <eliz@is.elta.co.il>
1830
1831 * charset.c (syms_of_charset): Revert last change.
1832
cf872af5
EZ
18332000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
1834
1835 * term.c (produce_glyphs): Treat characters from the eight-bit-*
d7d0dac0
SM
1836 charsets as unibyte, with 1-column screen width. Sent by Kenichi
1837 Handa.
cf872af5 1838
5b1ae051
EZ
18392000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
1840
1841 * charset.c (syms_of_charset): Set width of character sets
1842 eight-bit-control and eight-bit-graphic to 1 column.
1843
34ec9ebe
GM
18442000-05-26 Gerd Moellmann <gerd@gnu.org>
1845
1846 * config.in (HAVE_SPEED_T): New define.
1847
1848 * sysdep.c, terminfo.c (ospeed) [HAVE_SPEED_T]: Declare as
1849 `extern speed_t'.
1850
dd854dc2
DL
18512000-05-26 Dave Love <fx@gnu.org>
1852
1853 * coding.c (shrink_decoding_region): Initialize eol_conversion.
1854
1855 * data.c (Qsubrp, Qmany, Qunevalled): New variables.
1856 (Fsubr_arity): New function.
1857 (syms_of_data): Install them.
1858
ba9f8f95
KH
18592000-05-26 Kenichi Handa <handa@etl.go.jp>
1860
0f3e0672
KH
1861 * charset.c (init_charset_once): Set the table bytes_by_char_head
1862 correctly.
1863
cebefb44
KH
1864 * fontset.c (syms_of_fontset): Adjust the font name for ascii of
1865 the default fontset to what Emacs uses by default.
0f3e0672
KH
1866 (check_registry_encoding): This function deleted.
1867 (Fset_fontset_font): Remove the adhoc condition for the default
1868 fontset. Allow cons in FONTNAME.
cebefb44 1869
0f3e0672
KH
1870 * fns.c (map_char_table): Ignore char-table entries for
1871 charsets eight-bit-control and eight-bit-graphic.
ba9f8f95 1872
7a18af49
KR
18732000-05-25 Ken Raeburn <raeburn@gnu.org>
1874
1875 * emacs.c (main): Initialize keyboard syms before initializing
1876 window code, so face names are available.
1877
d2af47df
SM
18782000-05-25 Stefan Monnier <monnier@cs.yale.edu>
1879
1880 * regex.c (at_begline_loc_p): Also recognize the \\(?:^ case
1881 of an anchor at the beginning of a shy-group.
1882
fc6a6a4e
GM
18832000-05-25 Gerd Moellmann <gerd@gnu.org>
1884
1885 * xdisp.c (handle_invisible_prop): Don't try to skip over
1886 invisible text if end of text is already reached.
1887
005f0d35
DL
18882000-05-25 Dave Love <fx@gnu.org>
1889
02513cdd
DL
1890 * xdisp.c (Fdump_glyph_matrix): Declare the arg.
1891
005f0d35
DL
1892 * coding.c (encode_eol): Add null statement after label.
1893
89f6ca4e
EZ
18942000-05-25 Eli Zaretskii <eliz@is.elta.co.il>
1895
1896 * w16select.c (Fw16_set_clipboard_data): Fix the change from
1897 2000-05-20.
1898
a4e1759e
KH
18992000-05-25 Kenichi Handa <handa@etl.go.jp>
1900
1901 * ccl.c (ccl_driver): Fix previous change.
1902
eacfd7fe
KH
19032000-05-25 Kenichi Handa <handa@etl.go.jp>
1904
46ab33a9
KH
1905 * coding.c (run_pre_post_conversion_on_str): Set point to the
1906 beginning of buffer before calling coding->post_read_conversion.
1907 (decode_coding_string): Give correct args to
1908 run_pre_post_conversion_on_str.
1909 (encode_coding_string): Likewise.
1910
eacfd7fe
KH
1911 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>
1912 <CCL_WriteMultibyteChar2>: Handle charsets eight-bit-control and
1913 eight-bit-graphic correctly.
1914
f8569325
DL
19152000-05-24 Kenichi HANDA <handa@etl.go.jp>
1916
1917 * fileio.c (Finsert_file_contents): Even if a file is not found,
1918 execute codes for setting up coding system. Call
1919 after-insert-file-functions unconditionally.
1920
04545643
GM
19212000-05-24 Gerd Moellmann <gerd@gnu.org>
1922
1923 * callproc.c, emacs.c, sysdep.c (setpgrp): Don't define if USG and
1924 BSD_PGRPS are not defined.
1925
747d90ea
KH
19262000-05-24 Kenichi Handa <handa@etl.go.jp>
1927
1928 * charset.c (update_charset_table): Accept nil in LONG_NAME and
1929 DESCRIPTION.
1930 (syms_of_charset): Avoid building same strings.
1931
716e3b88
GM
19322000-05-23 Gerd Moellmann <gerd@gnu.org>
1933
1934 * lread.c (Fload): Add a comment about the meaning of
1935 Vuser_init_file being t.
1936
1937 * puresize.h (BASE_PURESIZE): Increase to 675000.
1938
1939 * s/gnu-linux.h (setpgrp): Don't define it here because this
1940 prevents compilation on GNU/Linux systems with glib 2.2.
1941
1942 * callproc.c, emacs.c, sysdep.c (setpgrp) [HAVE_SETPGID]: Define
1943 as setpgid.
427ec082 1944
9aeb39fa
EZ
19452000-05-23 Eli Zaretskii <eliz@is.elta.co.il>
1946
1947 * Makefile.in (SOME_MACHINE_LISP): Add disp-table.elc,
1948 dos-vars.elc, ccl.elc, and codepage.elc, all loaded by the MS-DOS
1949 version.
1950 (MSDOS_SUPPORT): Add dos-vars.elc, ccl.elc, and codepage.elc.
1951
29ced61b
KH
19522000-05-23 Kenichi Handa <handa@etl.go.jp>
1953
0574a2ed
KH
1954 * syntax.c (skip_chars): Use FETCH_STRING_CHAR_ADVANCE
1955 unconditionally.
1956
3d80f24d
KH
1957 * msdos.c (IT_write_glyphs): Set coding->src_multibyte to 1.
1958
1959 * term.c (encode_terminal_code): Set coding->src_multibyte
1960 properly.
1961
29ced61b
KH
1962 * coding.c (encode_eol): Fix a bug of DOS style EOL encoding.
1963
d7e00792
KH
19642000-05-22 Kenichi Handa <handa@etl.go.jp>
1965
c9d80d38
KH
1966 * keyboard.c (read_char): Allow character codes 128..255 to be
1967 handled by input-method-function.
1968
d7e00792
KH
1969 * insdel.c (adjust_markers_for_replace): Fix previous change.
1970 (adjust_after_replace): If PREV_TEXT is nil, call
1971 adjust_markers_for_insert, not adjust_markers_for_replace.
1972
087121cc 19732000-05-20 NIIBE Yutaka <gniibe@mri.co.jp>
427ec082 1974
087121cc
GM
1975 * s/gnu-linux.h (UNIX98_PTYS) [HAVE_GRANDPT]: Define.
1976 (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_OPEN, PTY_TTY_NAME_SPRINTF)
1977 [HAVE_GRANDPT]: Define.
1978 (C_SWITCH_SYSTEM): Add -D_XOPEN_SOURCE.
1979
1980 * sysdep.c (setup_pty): Treat case that UNIX98_PTYS is defined
1981 like SYSV_PTYS.
1982
1983 * config.in (HAVE_GRANDPT, HAVE_GETPT): New defines.
1984
1985 * process.c (toplevel) [UNIX98_PTYS]: Include stdlib.h.
1986
c9671f81
KH
19872000-05-20 Kenichi Handa <handa@etl.go.jp>
1988
1989 The following changes are to handle 8-bit characters in a
1990 multibyte buffer/string without facing with byte combining
1991 problem. Two new charsets eight-bit-control (for 0x80..0x9F) and
1992 eight-bit-graphic (for 0xA0..0xFF) are introduced.
1993
1994 * Makefile.in (fns.o): Depend on charset.h.
1995
1996 * alloc.c (Fmake_byte_code): If BYTECODE-STRING is multibyte,
1997 convert it to unibyte.
1998 (make_string): Use parse_str_as_multibyte, not chars_in_text.
1999
2000 * buffer.c (advance_to_char_boundary): Don't use DEC_POS to find a
2001 apparent char boundary.
2002 (Fset_buffer_multibyte): Convert 8-bit characters in the range
2003 0x80..0x9F to/from multibyte form.
2004
2005 * bytecode.c (Fbyte_code): If arg BYTESTR is multibyte, convert it
2006 to unibyte.
2007
2008 * callproc.c (Fcall_process): Always encode an argument string if
2009 it is multibyte. Setup src_multibyte and dst_multibyte members of
2010 process_coding properly.
ce75fd23 2011
c9671f81
KH
2012 * category.c (Fmodify_category_entry): Use SPLIT_CHAR, not
2013 SPLIT_NON_ASCII_CHAR.
2014
2015 * ccl.c (CCL_WRITE_CHAR): Be sure to write single byte characters
2016 as is.
2017 (CCL_MAKE_CHAR): Use MAKE_CHAR, not MAKE_NON_ASCII_CHAR.
2018
2019 * charset.c (Qeight_bit_control, Qeight_bit_graphic): New
2020 variables.
2021 (SPLIT_CHARACTER_SEQ): This macro deleted.
2022 (SPLIT_MULTIBYTE_SEQ): Assume that multibyte sequence at STR is
2023 valid.
2024 (CHAR_COMPONENTS_VALID_P): Handle new charsets; eight-bit-control
2025 and eight-bit-graphic.
2026 (char_to_string): Likewise. Signal an error for too large
2027 character code.
2028 (char_printable_p): Return 0 for 8-bit characters.
2029 (update_charset_table): Update iso_charset_table only when a final
2030 character is non-negative.
2031 (find_charset_in_text): Renamed from find_charset_in_str.
2032 Arguments and return value changed. Callers changed.
2033 (Fdefine_charset): Args ISO-FINAL-CHAR and ISO-GRAPHIC-PLANE can
2034 be -1 if CHARSET is used only internally.
2035 (Fmake_char_internal): Handle new charsets; eight-bit-control and
2036 eight-bit-graphic.
2037 (Fcharset_after): Simplified.
2038 (char_valid_p): Use SPLIT_CHAR, not SPLIT_NON_ASCII_CHAR.
2039 (char_bytes): Return 2 for chars of the range 0xA0..0xFF.
2040 (multibyte_chars_in_text): Simplified by assuming there's no
2041 invalid multibyte sequence.
2042 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte,
2043 str_as_unibyte): New functions.
2044 (Fstring): Simpified by assuming that byte combining never
2045 happens.
2046 (init_charset_once): Initialization for
2047 LEADING_CODE_8_BIT_CONTROL.
2048 (syms_of_charset): Intern and staticpro Qeight_bit_control and
2049 Qeight_bit_graphic. Include them in Vcharset_list. Make charsets
2050 eight-bit-control and eight-bit-graphic.
2051
2052 * charset.h (LEADING_CODE_8_BIT_CONTROL, CHARSET_8_BIT_CONTROL,
2053 CHARSET_8_BIT_GRAPHIC): New macros.
2054 (SINGLE_BYTE_CHAR_P): Make it faster by using casting.
2055 (CHARSET_ISO_GRAPHIC_PLANE): Use XINT instead of XFASTINT.
2056 (CHARSET_REVERSE_CHARSET): Likewise.
2057 (CHARSET_VALID_P): Handle new charsets; eight-bit-control and
2058 eight-bit-graphic.
2059 (BYTES_BY_CHAR_HEAD, WIDTH_BY_CHAR_HEAD): Optimize for ASCII.
2060 (CHAR_CHARSET, MAKE_CHAR, SPLIT_CHAR, CHAR_BYTES): Likewise.
2061 (PARSE_MULTIBYTE_SEQ) [BYTE_COMBINING_DEBUG]: Abort if we
2062 encounter an invalid multibyte sequence.
2063 (PARSE_MULTIBYTE_SEQ) [not BYTE_COMBINING_DEBUG]: Assume multibyte
2064 sequence is always valid.
2065 (MAKE_NON_ASCII_CHAR, SPLIT_NON_ASCII_CHAR): These macros Deleted.
2066 (UNIBYTE_STR_AS_MULTIBYTE_P, MULTIBYTE_STR_AS_UNIBYTE_P): New
2067 macros.
2068 (CHAR_STRING): For 8-bit characters, call char_to_string.
2069 (INC_POS) [not BYTE_COMBINING_DEBUG]: Faster version. Assume
2070 multibyte sequence is always valid.
2071 (BUF_INC_POS) [not BYTE_COMBINING_DEBUG]: Likewise.
2072 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte,
2073 str_as_unibyte): Extern them.
2074 (BCOPY_SHORT): Fix a bug.
2075 (CHAR_LEN): This macro deleted. Callers changed to use
2076 CHAR_BYTES.
2077 (FETCH_STRING_CHAR_ADVANCE): Check multibyteness of STRING.
2078 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): New macro.
2079 (FETCH_CHAR_ADVANCE): Check multibyteness of the current buffer.
2080
bd4bde7f 2081 * coding.c (ONE_MORE_BYTE, TWO_MORE_BYTES): Set coding->result to
c9671f81
KH
2082 CODING_FINISH_INSUFFICIENT_SRC if there's not enough source.
2083 (ONE_MORE_CHAR, EMIT_CHAR, EMIT_ONE_BYTE, EMIT_TWO_BYTE,
2084 EMIT_BYTES): New macros.
2085 (THREE_MORE_BYTES, DECODE_CHARACTER_ASCII,
2086 DECODE_CHARACTER_DIMENSION1, DECODE_CHARACTER_DIMENSION2): These
2087 macros deleted.
2088 (CHECK_CODE_RANGE_A0_FF): This macro deleted.
2089 (detect_coding_emacs_mule): Use UNIBYTE_STR_AS_MULTIBYTE_P to
2090 check the validity of multibyte sequence.
2091 (decode_coding_emacs_mule): New function.
2092 (encode_coding_emacs_mule): New macro.
2093 (detect_coding_iso2022): Use ONE_MORE_BYTE to fetch a byte from
2094 the source.
2095 (DECODE_ISO_CHARACTER): Just return a character code.
2096 (DECODE_COMPOSITION_START): Set coding->result instead of result.
2097 (decode_coding_iso2022, decode_coding_sjis_big5, decode_eol): Use
2098 EMIT_CHAR to produced decoded characters. Exit the loop only by
2099 macros ONE_MORE_BYTE or EMIT_CHAR. Don't handle the case of last
2100 block here.
2101 (ENCODE_ISO_CHARACTER): Don't translate character here. Produce
2102 only position codes for an invalid character.
2103 (encode_designation_at_bol): Return new destination pointer. 5th
2104 arg DSTP is changed to DST.
2105 (encode_coding_iso2022, decode_coding_sjis_big5): Get a character
2106 from the source by ONE_MORE_CHAR. Don't handle the case of last
2107 block here.
2108 (DECODE_SJIS_BIG5_CHARACTER, ENCODE_SJIS_BIG5_CHARACTER): These
2109 macros deleted.
2110 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8,
2111 detect_coding_utf_16, detect_coding_ccl): Use ONE_MORE_BYTE and
2112 TWO_MORE_BYTES to fetch a byte from the source.
2113 (encode_eol): Pay attention to coding->src_multibyte.
2114 (detect_coding, detect_eol): Preserve members src_multibyte and
2115 dst_multibyte.
2116 (DECODING_BUFFER_MAG): Return 2 even for coding_type_raw_text.
2117 (encoding_buffer_size): Set magnification to 3 for all coding
2118 systems that require encoding.
2119 (ccl_coding_driver): For decoding, be sure that the result is
2120 valid multibyte sequence.
2121 (decode_coding): Initialize coding->errors and coding->result.
2122 For emacs-mule, call decode_coding_emacs_mule. For no-conversion
2123 and raw-text, always call decode_eol. Handle the case of last
2124 block here. If not coding->dst_multibyte, convert the resulting
2125 sequence to unibyte.
2126 (encode_coding): Initialize coding->errors and coding->result.
2127 For emacs-mule, call encode_coding_emacs_mule. For no-conversion
2128 and raw-text, always call encode_eol. Handle the case of last
2129 block here.
2130 (shrink_decoding_region, shrink_encoding_region): Detect cases
2131 that we can't skip data more rigidly.
2132 (code_convert_region): Setup src_multibyte and dst_multibyte
2133 members of coding. For decoding, if the buffer is multibyte,
2134 convert the source sequence to unibyte in advance. For encoding,
2135 if the buffer is multibyte, convert the resulting sequence to
2136 multibyte afterward.
2137 (run_pre_post_conversion_on_str): New function.
2138 (code_convert_string): Deleted and divided into the following two.
2139 (decode_coding_string, encode_coding_string): New functions.
2140 (code_convert_string1, code_convert_string_norecord): Call one of
2141 above.
2142 (Fdecode_sjis_char, Fdecode_big5_char): Use MAKE_CHAR instead of
2143 MAKE_NON_ASCII_CHAR.
2144 (Fset_terminal_coding_system_internal,
2145 Fset_safe_terminal_coding_system_internal): Setup src_multibyte
2146 and dst_multibyte members.
2147 (init_coding_once): Initialize iso_code_class with new enum
2148 ISO_control_0 and ISO_control_1.
2149
2150 * coding.h (enum iso_code_class_type): Member ISO_control_code is
2151 devided into ISO_control_0 and ISO_control_1.
2152 (struct coding_system): New members src_multibyte, dst_multibyte,
2153 errors, and result. Delete member fake_multibyte.
2154 (CODING_REQUIRE_DECODING): Return 1 if coding->dst_multibyte is
2155 nonzero.
2156 (CODING_REQUIRE_ENCODING): Return 1 if coding->src_multibyte is
2157 nonzero.
2158
2159 * data.c (Faref): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
2160 (Faset): Likewise.
2161
2162 * editfns.c (Fformat): Be sure to convert 8-bit characters to
2163 multibyte form.
2164 (Ftranspose_region) [BYTE_COMBINING_DEBUG]: Abort if byte
2165 combining occurs.
2166 (Ftranspose_region): Delete codes for handling byte combining.
2167
2168 * fileio.c (Finsert_file_contents): Setup src_multibyte and
2169 dst_multibyte members of coding. On handling REPLACE on unibyte
2170 buffer, convert the result of decode_coding to unibyte. On
2171 inserting into a mutibyte buffer, always call code_convert_region.
bd4bde7f 2172 (e_write): Setup coding->src_multibyte according to the
c9671f81
KH
2173 multibyteness of the source (buffer or string).
2174
2175 * fns.c (concat): Handle 8-bit characters correctly.
2176 (Fstring_as_unibyte): Be sure to make all 8-bit characters in
2177 unibyte in the result.
2178 (Fstring_as_multibyte): Be sure to make all 8-bit characters in
2179 valid multibyte form in the result.
2180 (map_char_table): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
2181 (Fbase64_encode_region, Fbase64_encode_string): If base64_encode_1
2182 return -1, signal an error.
2183 (base64_encode_1): New arg MULTIBYTE. Get each character by
2184 CHAR_STRING_AND_LENGTH if MULTIBYTE is nonzero. If a multibyte
2185 character is found, return -1.
2186 (Fbase64_decode_region): Delete codes for handling byte-combining.
2187 Treat each decoded byte as a unibyte character.
2188 (Fbase64_decode_string): Return unibyte string.
2189 (Fcompare_strings, concat, string_byte_to_char): Use
2190 FETCH_STRING_CHAR_ADVANCE_NO_CHECK instead off
2191 FETCH_STRING_CHAR_ADVANCE.
2192 (Fstring_lessp): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
2193 (mapcar1): If SEQ is string, always use FETCH_STRING_CHAR_ADVANCE.
2194
2195 * fontset.c (fontset_ref): Use SPLIT_CHAR instead of
2196 SPLIT_NON_ASCII_CHAR.
2197 (fontset_ref_via_base, fontset_set): Likewise
2198
2199 * insdel.c (adjust_markers_for_record_delete): Deleted.
2200 (adjust_markers_for_insert): Argument changed. Caller changed.
2201 (adjust_markers_for_replace): Likewise.
2202 (ADJUST_CHAR_POS, combine_bytes, byte_combining_error,
2203 CHECK_BYTE_COMBINING_FOR_INSERT): Deleted.
2204 (copy_text): Delete unused local varialbe c_save. For converting
2205 to multibyte, be sure to make all 8-bit characters in valid
2206 multibyte form.
2207 (count_size_as_multibyte): Handle 8-bit characters correctly.
2208 (insert_1_both, insert_from_string_1, insert_from_buffer_1,
2209 adjust_after_replace, replace_range, del_range_2)
2210 [BYTE_COMBINING_DEBUG]: Abort if byte combining occurs.
2211 (insert_1_both, insert_from_string_1, insert_from_buffer_1,
2212 adjust_after_replace, replace_range, del_range_2) Delete codes for
2213 handling byte combining.
2214 (adjust_before_replace): Deleted.
427ec082 2215
c9671f81
KH
2216 * keymap.c (Fsingle_key_description): Use SPLIT_CHAR instead of
2217 SPLIT_NON_ASCII_CHAR.
2218 (describe_vector): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
2219 (Faccessible_keymaps): Use FETCH_STRING_CHAR_ADVANCE
2220 unconditionally.
2221 (Fkey_description): Likewise.
2222
2223 * lread.c (read1): On reading multibyte string, be sure to make
2224 all 8-bit chararacters in valid multibyte form.
2225 (readchar): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
2226
2227 * print.c (print_object): Use FETCH_STRING_CHAR_ADVANCE
2228 unconditionally.
2229
2230 * process.c (Fstart_process): GCPRO current_dir before calling
2231 Ffind_operation_coding_system. Encode arguments here.
2232 (create_process): Don't encode arguments here. Setup
2233 src_multibyte and dst_multibyte members of struct coding.
2234 (read_process_output): Setup src_multibyte and dst_multibyte
2235 members of struct coding. If the output is to multibyte buffer,
2236 always decode the output of the process. Adjust the
2237 representation of 8-bit characters to the multibyteness of the
2238 output.
2239 (send_process): Setup coding->src_multibyte according to the
2240 multibyteness of the source.
2241
2242 * search.c (wordify): Use FETCH_STRING_CHAR_ADVANCE
2243 unconditionally.
2244 (Freplace_match): Use FETCH_STRING_CHAR_ADVANCE and
2245 FETCH_STRING_CHAR_ADVANCE_NO_CHECK appropriately.
2246
2247 * term.c (produce_special_glyphs): Use CHAR_BYTES instead of
2248 CHAR_LEN.
2249
2250 * w16select.c (Fw16_set_clipboard_data): Setup members
2251 src_multibyte and dst_multibyte of coding. Adjusted for the
2252 change for find_charset_in_str.
2253 (Fw16_get_clipboard_data): Likewise.
2254
2255 * w32fns.c (w32_to_x_font): Setup members src_multibyte and
2256 dst_multibyte of coding.
2257 (x_to_w32_font): Likewise.
2258
2259 * w32select.c (Fw32_set_clipboard_data): Setup members
2260 src_multibyte and dst_multibyte of coding. Adjusted for the
2261 change for find_charset_in_str.
2262 (Fw32_get_clipboard_data): Likewise.
2263
2264 * xdisp.c (get_next_display_element): Handle 8-bit characters
2265 correctly.
2266 (next_element_from_display_vector): Use CHAR_BYTES instead of
2267 CHAR_LEN.
2268 (disp_char_vector): Use SPLIT_CHAR instead of
2269 SPLIT_NON_ASCII_CHAR.
2270
2271 * xselect.c (selection_data_to_lisp_data): Setup members
2272 src_multibyte and dst_multibyte of coding. Adjusted for the
2273 change for find_charset_in_str.
2274 (lisp_data_to_selection_data): Likewise.
2275
5f64c9e0
GM
22762000-05-19 Gerd Moellmann <gerd@gnu.org>
2277
2b63d473
GM
2278 * buffer.c (Fbury_buffer): Avoid trouble from burying a killed
2279 buffer.
2280
5f64c9e0
GM
2281 * dispextern.h (Vimage_types): Add extern declaration.
2282
2283 * xdisp.c (Vimage_types): Moved here from xfns.c.
2284 (syms_of_xdisp): Move `image-types' variable here from xfns.c.
2285
2286 * xfns.c (Vimages_types): Moved to xdisp.c.
2287 (syms_of_xfns): Move `image-types' to xdisp.c.
2288
2289 * w32fns.c (Vimage_types): Removed.
2290 (syms_of_w32fns): Remove `image-types'.
2291
813086ea
KH
22922000-05-18 Kenichi Handa <handa@etl.go.jp>
2293
2294 * fns.c (map_char_table): Pay attention to character number of
2295 charset. Check the validity of charset at the first level. For
2296 leaf nodes that has nil value, call C_FUNCTION or FUNCTION with
2297 the default value.
2298
2299 * fontset.c: Include "buffer.h".
2300 (fs_load_font): If the face has fontset, record the face ID in
2301 that fontset.
2302 (Finternal_char_font): New function.
2303 (accumulate_font_info): New function.
2304 (Ffontset_info): Rewritten for the new fontset implementation.
2305 (syms_of_fontset): Register Vdefault_fontset in the first element
2306 of Vfontset_table. Include Vdefault_fontset in
2307 Vfontset_alias_alist. Declare `internal-char-font' as a Lisp
2308 function.
2309
bdaebbf0
DL
23102000-05-16 Dave Love <fx@gnu.org>
2311
2312 * m/iris5d.h: Deleted -- unused.
2313
cb613bb8
GM
23142000-05-16 Gerd Moellmann <gerd@gnu.org>
2315
b15f3b77
GM
2316 * xdisp.c, w32.c, print.c, msdos.c, emacs.c: Use the term
2317 `invalid' instead of `illegal'.
2318
2319 * indent.c (Fmove_to_column): When ending within a tab, insert
2320 spaces first so that markers at the end of the tab get adjusted.
2321
835c1b36
GM
2322 * frame.c (frames_bury_buffer): Don't add a buffer to the frame's
2323 buffer list that wasn't selected in that frame.
2324
cb613bb8
GM
2325 * filelock.c (get_boot_time): To obtain an 8 char file name, which
2326 is needed on mescaline, use a 2 char prefix, and call
2327 make_temp_name with second arg non-zero.
2328
2329 * fileio.c (make_temp_name): New function, extracted from
2330 Fmake_temp_name.
2331 (Fmake_temp_name): Use it.
2332
f685bea9
EZ
23332000-05-15 Eli Zaretskii <eliz@is.elta.co.il>
2334
2335 * window.c (coordinates_in_window): Subtract 1 when computing
2336 right_x.
2337
a1b8d58b
GM
23382000-05-15 Gerd Moellmann <gerd@gnu.org>
2339
2340 * Makefile.in (lisp): Add env.elc.
2341
2342 * callproc.c (Fgetenv_internal): Renamed from Fgetenv.
2343
a265079f
GM
23442000-05-12 Gerd Moellmann <gerd@gnu.org>
2345
2346 * search.c (Freplace_match): Handle case of `\N' in the
2347 replacement when there's no group N.
2348
da4496b6
GM
23492000-05-11 Gerd Moellmann <gerd@gnu.org>
2350
0ace421a
GM
2351 * xdisp.c (add_to_log): Don't pass the terminating NUL byte
2352 of the message to message_dolog.
2353
1172eb8d
GM
2354 * keyboard.c (read_char): Don't clear current message for help
2355 events; let the code handling help events handle this. Change
2356 code detecting help events that should be ignored.
2357
da4496b6
GM
2358 * xdisp.c (handle_single_display_prop): Don't try to set PT if
2359 we're interating over a string.
2360
0623e40f
DL
23612000-05-09 Dave Love <fx@gnu.org>
2362
2363 * fileio.c (Fwrite_region): If APPEND arg is an integer, seek to
2364 that offset before writing. Move gcpro region past call of
2365 Ffile_regular_p.
2366
bae2503b
DL
23672000-05-04 Dave Love <fx@gnu.org>
2368
2369 * buffer.c (syms_of_buffer) [auto-fill-function]: Doc fix.
2370
ec82fb2f
GM
23712000-05-04 Gerd Moellmann <gerd@gnu.org>
2372
2373 * insdel.c (insert_from_buffer_1): Adjust FROM position by number
2374 of inserted characters when BUF equals the current buffer, and PT
2375 is in front of or equal to FROM.
2376
cbf18892
GM
23772000-05-03 Gerd Moellmann <gerd@gnu.org>
2378
4ff40dd0
GM
2379 * xdisp.c (handle_single_display_prop): If display property value
2380 is invalid, or something not supported on the frame, restore
2381 iterator's position to what it was initially. Make sure to return
2382 0 for invalid and unsupported property values.
2383
cbf18892
GM
2384 * xterm.c (x_produce_glyphs) <composite chars>: Handle case
2385 that x_per_char_metric returns null.
2386
1b0672c3
GM
23872000-05-02 Gerd Moellmann <gerd@gnu.org>
2388
576da55d
GM
2389 * xterm.h (struct face): Add forward declaration.
2390 (struct image): Ditto.
2391 (image_ascent): Add prototype.
2392
2393 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
2394 (x_draw_image_relief, x_draw_image_foreground_1): Call function
2395 image_ascent instead of using IMAGE_ASCENT.
2396
2397 * dispextern.h (DEFAULT_IMAGE_HEIGHT): New macro.
2398 (IMAGE_ASCENT): Removed.
2399
2400 * xfns.c (Qcenter): New variable.
2401 (enum image_value_type): Add IMAGE_ASCENT_VALUE.
2402 (parse_image_spec): Handle IMAGE_ASCENT_VALUE.
2403 (image_ascent): New function.
2404 (lookup_image): Recognize `:ascent center'.
2405 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
2406 (tiff_format, gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
2407 (xbm_load): Don't set image's ascent here.
2408 (xbm_image_p, xpm_image_p, pbm_image_p, png_image_p)
2409 (jpeg_image_p, tiff_image_p, gif_image_p, gs_image_p): Don't
2410 check ascent values here.
2411 (Fimagep, Flookup_image [GLYPH_DEBUG]: Removed.
2412 (syms_of_xfns) [GLYPH_DEBUG]: Don't defsubr removed functions.
2413 (syms_of_xfns): Initialize Qcenter.
2414
1b0672c3
GM
2415 * eval.c (Fsignal): If lisp_eval_depth or spepdl_size are near
2416 to the limits, increase the limits.
2417
0d7811ed
KH
24182000-05-01 Kenichi Handa <handa@etl.go.jp>
2419
2420 * fontset.c (fs_load_font): By default, use 0x00..0x7f for ASCII.
2421 Check Vfont_encoding_alist against the full name of the opened
2422 font.
2423
a943a5ca
GM
24242000-04-28 Gerd Moellmann <gerd@gnu.org>
2425
2426 * xdisp.c (make_cursor_line_fully_visible): Handle case of rows
2427 taller than the window.
2428
5dba1e29
KH
24292000-04-28 Kenichi Handa <handa@etl.go.jp>
2430
2431 * xfaces.c (realize_x_face): Fix the argument of the second
2432 xassert. BASE_FACE may not be a face for ASCII.
2433
353964e3
GM
24342000-04-27 Gerd Moellmann <gerd@gnu.org>
2435
c76e04a8
GM
2436 * print.c (print_object): Treat print-length < 0 as nil.
2437
2438 * Makefile.in (termcapobj): Don't use TERMCAP_OBJ.
2439
2440 * s/freebsd.h (TERMCAP_OBJ): Removed.
2441 (LIBS_TERMCAP): Don't define for __FreeBSD_version >= 400000.
2442
2443 * lread.c (read1): Don't treat period followed by certain
2444 characters as symbol start.
2445
2446 * xfns.c (slurp_file): New function.
2447 (xbm_image_p): Handle case of in-memory XBM files.
2448 (xbm_scan): Rewritten to work on memory buffers instead of files.
2449 (xbm_read_bitmap_data): Renamed from xbm_read_bitmap_file_data.
2450 Work on memory buffers instead of files. If DATA is null test
2451 if buffer looks like an in-memory XBM file.
2452 (xbm_load_image): Renamed from xbm_load_image_file. Work on
2453 memory buffers instead of files.
2454 (xbm_file_p): New function.
2455 (xbm_load): Accept :data DATA where DATA is an in-memory XBM file.
2456
353964e3
GM
2457 * lread.c (end_of_file_error): New function.
2458 (read1): Call it instead of signaling `end-of-file' directly.
2459
427ec082 2460 * print.c (print_error_message): Print data of `end-of-file'
353964e3
GM
2461 with Fprinc instead of Fprin1.
2462
24d744ac
KR
24632000-04-26 Ken Raeburn <raeburn@gnu.org>
2464
2465 * window.c (freeze_window_start): Check that minibuffer scroll
2466 window isn't nil before extracting the window structure pointer
2467 from it.
2468
2469 * undo.c (record_delete): If we hit the end of the undo list, stop
2470 picking elements apart.
2471
7464346d
GM
24722000-04-26 Gerd Moellmann <gerd@gnu.org>
2473
2474 * xdisp.c (display_line): If lines are continued, restore
2475 iterator's ascent/descent information to the values before the
2476 first glyph not fitting on the line.
2477
612839b6
GM
24782000-04-25 Gerd Moellmann <gerd@gnu.org>
2479
2480 * xdisp.c (try_window_id) <all changes above window start>: Adjust
2481 positions in glyph matrix. Don't compute new window end
2482 positions.
2483
2484 * dispnew.c (increment_matrix_positions): Renamed from
2485 increment_glyph_matrix_buffer_positions.
2486 (increment_row_positions): Renamed from
2487 increment_glyph_row_buffer_positions.
2488
2489 * dispextern.h: Change names of renamed functions from dispnew.c
2490 in prototypes.
2491
cc181e95
GM
24922000-04-24 Gerd Moellmann <gerd@gnu.org>
2493
abfcc168
GM
2494 * fileio.c (Fdo_auto_save): Create directories for auto-save
2495 list file if necessary.
2496
cc181e95
GM
2497 * xdisp.c (init_iterator): Set iterator's extra_line_spacing
2498 from buffer or frame.
2499 (automatic_hscrolling_p): New variable.
2500 (hscroll_windows): Scroll windows horizontally only if automatic
2501 hscrolling is allowed.
2502 (syms_of_xdisp): New variable `automatic-hscrolling'.
2503
2504 * frame.h (struct frame): Add member extra_line_spacing.
2505
2506 * xfns.c (x_set_line_spacing): New function.
2507 (Fx_create_frame): Set line spacing from resources.
2508 (Qline_spacing): New variable.
2509 (syms_of_xfns): Initialize Qline_spacing.
427ec082 2510
cc181e95
GM
2511 * emacs.c (USAGE2): Add `--line-spacing' and `-lsp'.
2512
2513 * buffer.c (init_buffer_once): Handle extra_line_spacing.
2514 (syms_of_buffer): Add `default-line-spacing' and `line-spacing'.
abfcc168 2515 (reset_buffer): Don't initialize extra2 and extra3. Initialize
cc181e95
GM
2516 extra_line_spacing from default value.
2517 (init_buffer_once): Initialize default value of extra_line_spacing.
2518
2519 * buffer.h (struct buffer): Add extra_line_spacing, remove extra2
2520 and extra3.
2521
2522 * xterm.c (x_produce_glyphs): Remove reference to struct it's
2523 prompt_width. Add extra line spacing.
2524
2525 * term.c (produce_glyphs): Remove reference to struct it's
2526 prompt_width.
2527
2528 * dispextern.h (struct it): Remove member prompt_width, add
2529 extra_line_spacing.
2530
58827478
GM
25312000-04-22 Gerd Moellmann <gerd@gnu.org>
2532
2533 * dispnew.c (update_frame_line): When writing a whole line, make
2534 sure cursor is in the right row afterwards, otherwise a use of
2535 capability `ch' in cmgoto might leave the cursor in the row below.
2536
25a87f42
GM
25372000-04-21 Gerd Moellmann <gerd@gnu.org>
2538
2539 * lisp.h (struct Lisp_Buffer_Cons): Remove.
2540
2541 * keyboard.c (timer_check): Fix typo in comment.
2542
54edf5c2
KH
25432000-04-21 Kenichi Handa <handa@etl.go.jp>
2544
2545 * fontset.c (Fset_fontset_font): Fix docstring. Local variable
2546 name change: ch -> character.
2547
3a64eef5
GM
25482000-04-20 Gerd Moellmann <gerd@gnu.org>
2549
2550 * keyboard.c (echo_message_buffer): New variable.
2551 (echo_now): Set echo_message_buffer to the echo area buffer used
2552 to display the echo.
2553 (cancel_echoing): Reset echo_message_buffer to nil.
2554 (read_char): Code rewritten that handles canceling an echo or
2555 echoing a dash, respectively.
2556
2557 * fileio.c (Ffile_writable_p) [WINDOWSNT]: Return nil if parent
2558 directory doesn't exist.
2559
6142fdcb
DL
25602000-04-19 Dave Love <fx@gnu.org>
2561
2562 * fns.c (syms_of_fns): Defsubr mapc.
a9cacab7
DL
2563 (concat): Don't allow numeric args.
2564 (Fconcat): Doc change.
6142fdcb 2565
ac6b5352
SM
25662000-04-19 Stefan Monnier <monnier@cs.yale.edu>
2567
2568 * regex.c (re_match_2_internal): Don't shorten the strings anymore,
2569 instead define end_match(1|2) more carefully.
2570 Use GET_CHAR_BEFORE_2 for `begline'.
2571
cb9215e4
GM
25722000-04-19 Gerd Moellmann <gerd@gnu.org>
2573
5e3dac3f
GM
2574 * frame.h (SELECTED_FRAME): Change definition to compile cleanly
2575 on 64-bit systems where NULL is defined as `0'.
2576
2577 * xdisp.c (with_echo_area_buffer): Add more `int' parameters for
2578 the `variable argument list' to make it work on Alpha.
2579
cb9215e4
GM
2580 * m/alpha.h (_LP64) [!_LP64]: Define.
2581 (ORDINARY_LINK): Define for NetBSD.
2582
2583 * m/macppc.h (ORDINARY_LINK): Define for NetBSD.
427ec082 2584
f532dca0
DL
25852000-04-19 Dave Love <fx@gnu.org>
2586
c750667e
DL
2587 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Revert 2000-04-14
2588 change.
2589
2590 * Makefile.in (LIBS): Don't use.
2591 (GETLOADAVG_OBJ): Define again.
2592 (otherobj): Add GETLOADAVG_OBJ.
2593
f532dca0
DL
2594 * buffer.c (Fmake_indirect_buffer): Escape newline in doc.
2595
1c7e22fd
GM
25962000-04-18 Gerd Moellmann <gerd@gnu.org>
2597
f6d3257b
GM
2598 * lread.c (read_filtered_event): Cancel and start busy cursor.
2599
427ec082 2600 * xterm.c (x_produce_glyphs) <ASCII chars>: Take into account
1c7e22fd
GM
2601 that the per-character metrics may be null.
2602
e10f64e7
GM
26032000-04-17 Gerd Moellmann <gerd@gnu.org>
2604
0daee095
GM
2605 * buffer.c (clone_per_buffer_values): New function.
2606 (Fmake_indirect_buffer): Add optional argument CLONE. Call
2607 clone_per_buffer_values if CLONE is not nil.
2608
e10f64e7
GM
2609 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
2610
38687d43
DL
26112000-04-16 Dave Love <fx@gnu.org>
2612
2613 * Makefile.in: Remove obsolete localcpp stuff.
2614 (GETLOADAVG_OBJ): Don't define.
2615 (obj): Move LIBOBJS...
2616 (otherobj): ... to here.
2617 (MSDOS_OBJ): Convert to make variable -- preprocessing zapped
2618 whitespace-only lines after the continuation (Irix).
2619
c21c7262
GM
26202000-04-14 Gerd Moellmann <gerd@gnu.org>
2621
2622 * xfns.c (xpm_load) [DEBUG_X_COLORS]: Register colors.
2623
2624 * s/freebsd.h (LD_SWITCH_SYSTEM): Add `-L /usr/local/lib'.
2625
314767c0
DL
26262000-04-14 Dave Love <fx@gnu.org>
2627
2628 * s/aix3-1.h, s/bsd4-2.h, s/bsd4-3.h, s/cxux.h, s/dgux.h, s/gnu.h:
2629 * s/hpux.h, s/iris3-5.h, s/iris3-6.h, s/irix3-3.h, s/rtu.h:
2630 * s/unipl5-0.h, s/unipl5-2.h, s/usg5-0.h, s/usg5-2-2.h, s/usg5-2.h:
2631 * s/usg5-3.h, s/xenix.h, s/umax.h: Don't define autoconfiscated
2632 NLIST_STRUCT.
2633
2634 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Don't define
2635 autoconfiscated HAVE_GETLOADAVG.
2636
2637 * s/nextstep.h, s/sco4.h, s/sco5.h: Don't define autoconfiscated
2638 BROKEN_MKTIME.
2639
a2522dca
GM
26402000-04-14 Gerd Moellmann <gerd@gnu.org>
2641
2642 * filelock.c (MAKE_LOCK_NAME): Allocate 2 more bytes.
2643 (fill_in_lock_file_name): Avoid existing files that aren't
2644 links.
2645
33744b5d
DL
26462000-04-14 Dave Love <fx@gnu.org>
2647
c21c7262 2648 * Makefile.in (LIBS, LIBOBJS): New variable.
33744b5d
DL
2649 (INTERVAL_SRC): Convert to make variable.
2650 (INTERVAL_OBJ, MKTIME_OBJ, FLOAT_SUPPORT, FACE_SUPPORT)
2651 (HAVE_X_WINDOWS, OBJECTS_SYSTEM): Remove.
2652 (obj): Substitute INTERVAL_OBJ, add MKTIME_OBJ, GETLOADAVG_OBJ and
2653 add LIBOBJS.
2654 (SOME_MACHINE_OBJECTS): Remove interval stuff.
2655 (lisp): Substitute FACE_SUPPORT, FLOAT_SUP.
2656 (shortlisp): Add facemenu, float-sup, frame.
2657 (SOME_MACHINE_LISP): Remove them from here.
2658 (LIBES): Change unused LDLIBS to autoconf LIBS.
2659
2660 * config.in: Add BROKEN_MKTIME, NLIST_STRUCT, NLIST_NAME_UNION.
2661
9d3d5916
KH
26622000-04-14 Kenichi Handa <handa@etl.go.jp>
2663
2664 * composite.c (update_compositions): If FROM and TO are not in a
2665 valid range, do nothing.
2666
198e3c7a
GM
26672000-04-13 Gerd Moellmann <gerd@gnu.org>
2668
2669 * tparam.c (tparam1): Abort when encountering an unknown
2670 `%'-specifier.
2671
2672 * s/freebsd.h (TERMCAP_OBJ) [__FreeBSD__ >= 4]: Define as
2673 terminfo.o.
2674
2675 * Makefile.in (termcapobj) [LIBS_TERMCAP && TERMCAP_OBJ]: Define
2676 as TERMCAP_OBJ.
2677
055a28c9
EZ
26782000-04-13 Eli Zaretskii <eliz@is.elta.co.il>
2679
2680 * fileio.c (a_write): Remove redundant semi-colons.
2681 (e_write): Return -1 if failed to write all the data.
2682 This fixes the changes made at 1999-12-15.
2683
f5c75033
DL
26842000-04-12 Dave Love <fx@gnu.org>
2685
2686 * fns.c (mapcar1): Test for null vals to support mapc.
2687 (Fmapc): New function.
2688
0c3cfc51
EZ
26892000-04-12 Eli Zaretskii <eliz@is.elta.co.il>
2690
2691 * msdos.c (NUM_MOUSE_BUTTONS): Define.
2692 (IT_frame_up_to_date): Support the buffer local value of
2693 cursor-type, if defined.
2694
33465a31
DL
26952000-04-10 Dave Love <fx@gnu.org>
2696
2697 * editfns.c (preceding-char, following-char): Doc fix.
2698
6ed56568
KR
26992000-04-10 Ken Raeburn <raeburn@gnu.org>
2700
2701 * Makefile.in (temacs): Revert 2000-03-12 change.
2702
7cf80d4e
JR
27032000-04-10 Jason Rumney <jasonr@gnu.org>
2704
2705 * xfaces.c (realize_face): Change FRAME_X_P to FRAME_WINDOW_P.
2706
34f3f342
GM
27072000-04-10 Gerd Moellmann <gerd@gnu.org>
2708
1a1b1895
GM
2709 * xdisp.c (setup_echo_area_for_printing): Choose an echo
2710 area buffer, if it's not set up yet.
2711
34f3f342
GM
2712 * indent.c (compute_motion): Set immediate_quit.
2713
be0dbdab
GM
27142000-04-09 Gerd Moellmann <gerd@gnu.org>
2715
c45be9ac
GM
2716 * xfaces.c (tty_suppress_bold_inverse_default_colors_p): New
2717 variable.
2718 (realize_tty_face): Suppress boldness if colors are the inverse of
2719 the default colors, and tty_suppress_bold_inverse_default_colors_p
2720 is set.
2721 (Ftty_suppress_bold_inverse_default_colors): New function.
2722 (syms_of_xfaces): Defsubr it.
2723
be0dbdab
GM
2724 * buffer.c (Frestore_buffer_modified_p): New function.
2725 (syms_of_buffer): Defsubr it.
2726
e8413c3b
KR
27272000-04-08 Ken Raeburn <raeburn@gnu.org>
2728
87f67317
KR
2729 * charset.c (Fmake_char_internal): CHAR_COMPONENTS_VALID_P takes a
2730 charset id (int) argument, not a charset (Lisp_Object).
2731
e8413c3b
KR
2732 * coding.h (code_convert_string): Declare.
2733 * coding.c (code_convert_string_norecord): Pass an int, not a lisp
2734 object, as the fourth argument to code_convert_string.
2735
2736 * fontset.c (make_fontset_for_ascii_face): Use XINT on return
2737 value.
2738 (Fset_fontset_font): Use EQ to compare lisp objects.
2739
7c752c80
KR
27402000-04-05 Ken Raeburn <raeburn@gnu.org>
2741
c0333abc
KR
2742 * intervals.h (SET_INTERVAL_PARENT): Use INT_LISPLIKE to test for
2743 a pointer that looks like a lisp object.
2744 (SET_INTERVAL_OBJECT): Don't explicitly compare the object with
2745 zero, instead see whether it's an integer object, since they can't
2746 have intervals.
2747 (GET_INTERVAL_OBJECT): Simply assign to the destination.
2748
7c752c80
KR
2749 * dispnew.c (allocate_matrices_for_frame_redisplay,
2750 direct_output_forward_char): Use X(U)INT and make_number as needed
2751 to convert between (unsigned) int values and lisp integers.
2752 * keyboard.c (read_key_sequence): Likewise.
2753 * lread.c (substitute_object_recurse): Likewise.
2754 * fns.c (concat, hash_lookup, hash_remove): Likewise.
2755 * minibuf.c (do_completion, Fminibuffer_complete_word,
2756 Fminibuffer_completion_help): Likewise.
2757 * term.c (produce_special_glyphs): Likewise.
2758
2759 * fileio.c (Fwrite_region): Use EQ when comparing lisp objects.
2760 * print.c (print_preprocess, print_object): Likewise.
2761
2762 * search.c (compile_pattern): Use NILP when checking for nil.
2763
74e49b38
KR
2764 * lisp.h (make_number) [!NO_UNION_TYPE && __GNUC__ >= 2 &&
2765 __OPTIMIZE__]: Provide a GNU C macro version that handles
2766 lisp-object unions.
2767 (XSET) [!NO_UNION_TYPE]: Set the value field first, then the type
2768 field, to better cope with ENABLE_CHECKING and calls that modify a
2769 Lisp_Object using its old value.
2770
685e5ed2
GM
27712000-04-04 Gerd Moellmann <gerd@gnu.org>
2772
c407c570
GM
2773 * window.c (compare_window_configurations): Signal an error
2774 if parameters C1 or C2 aren't window configurations.
2775
685e5ed2
GM
2776 * bytecode.c (Fbyte_code): Add a bunch of BEFORE_POTENTIAL_GC/
2777 AFTER_POTENTIAL_GC calls around calls to functions that can
2778 signal an error and thus invoke the debugger.
2779
587a49ab
GM
27802000-04-03 Gerd Moellmann <gerd@gnu.org>
2781
62f20204
GM
2782 * fns.c (Fbase64_decode_region, Fbase64_decode_string): Signal
2783 an error if decoding fails.
2784
587a49ab
GM
2785 * keyboard.c (lispy_mouse_names): Variable removed.
2786 (Vlispy_mouse_stem): New variable.
2787 (syms_of_keyboard): Initialize Vlispy_mouse_stem.
2788 (make_lispy_event) <mouse_click, scroll_bar_click>: Don't abort
2789 for any mouse button number. Increase size of mouse_syms and
2790 button_down_location as needed. Call modify_event_symbol with
2791 different arguments.
2792 (make_lispy_event) <scroll_bar_click> [USE_TOOLKIT_SCROLL_BARS]:
2793 Call modify_event_symbol with different arguments.
2794 (make_lispy_event) <w32_scroll_bar_click> [WINDOWSNT]: Don't abort
2795 for any button number. Call modify_event_symbol with different
2796 arguments.
2797 (modify_event_symbol): Rename NAME_ALIST to NAME_ALIST_OR_STEM.
2798 Accept a string for NAME_ALIST_OR_STEM.
2799
2800 * lisp.h (larger_vector): Add prototype.
2801
2802 * fns.c (larger_vector): Make externally visible.
2803
2804 * termhooks.h (NUM_MOUSE_BUTTONS): Removed.
2805
2d1675e4
SM
28062000-04-02 Stefan Monnier <monnier@cs.yale.edu>
2807
2808 * regex.c (PTR_TO_OFFSET) [!emacs]: Remove.
2809 (RE_MULTIBYTE_P, RE_STRING_CHAR_AND_LENGTH): New macros.
2810 (GET_CHAR_BEFORE_2): Moved from charset.h plus fixed minor bug when
2811 we are between str1 and str2.
2812 (MAX_MULTIBYTE_LENGTH, CHAR_STRING) [!emacs]: Provide trivial default.
2813 (PATFETCH): Use `TRANSLATE'.
2814 (PATFETCH_RAW): Fetch multibyte char if applicable.
2815 (PATUNFETCH): Remove.
2816 (regex_compile): Rely on PATFETCH to do most of the multibyte magic.
2817 When writing a char, write it directly into the pattern buffer rather
2818 than going needlessly through a temp char-array.
2819 (re_match_2_internal): Similarly, rely on RE_STRING_CHAR to do the
2820 multibyte magic and remove the useless `#ifdef emacs'.
2821 (bcmp_translate): Don't compare as multibyte chars when in a unibyte
2822 buffer.
2823
2824 * regex.h (struct re_pattern_buffer): Make field `multibyte'
2825 conditional on `emacs'.
2826
2827 * charset.h (GET_CHAR_BEFORE_2): Moved to regex.c.
2828
cc2d8c6b
KR
28292000-04-01 Ken Raeburn <raeburn@gnu.org>
2830
2831 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P): Expand
2832 non-union-type versions of XMARK and friends here, because XMARK
2833 and friends won't work on an integer field if NO_UNION_TYPE is not
2834 defined.
2835 (make_number): Define as a function if it's not defined as a
2836 macro.
2837
09654086
KR
2838 * composite.c (run_composite_function): Use NILP when checking for
2839 nil.
2840 (syms_of_composite): Delete local var NARGS, pass an int as first
2841 argument to Fmake_hash_table.
2842
2387b382
KR
2843 * editfns.c (text_property_stickiness): Use NILP to test
2844 Lisp_Object boolean value.
2845 (Fmessage_or_box): Don't use NILP to test int variable.
c01fbf95
KR
2846 (Fformat): Use a temporary variable to avoid ENABLE_CHECKING
2847 problems reading from and changing the same lisp value in an
2848 XSETSTRING call.
2849
27660e89
GM
28502000-04-01 Gerd Moellmann <gerd@gnu.org>
2851
2852 * term.c (TN_no_color_video): New variable.
2853 (term_init): Intitialize TN_no_color_video.
2854 (enum no_color_bit): New enumeration.
2855 (MAY_USE_WITH_COLORS_P): New macro.
2856 (turn_on_face): Use it to determine if attributes may be used
2857 combined with colors.
2858
3578db3c
KR
28592000-04-01 Ken Raeburn <raeburn@gnu.org>
2860
2861 * window.c (CURBEG, CURSIZE): Don't overload lisp object lvalues
2862 with int lvalues via casts; instead, just yield lisp object
2863 lvalues.
2864 (enlarge_window): Variable sizep now points to Lisp_Object. Use
2865 proper accessor macros.
2866 (shrink_window_lowest_first): w->top is Lisp_Object; use XINT.
2867 (grow_mini_window): Fix typo getting int value of root->height.
2868
6fc556fd
KR
2869 * xdisp.c (compute_string_pos): Fix order of arguments to
2870 string_pos_nchars_ahead.
2871 (handle_fontified_prop, add_to_log): Pass int, not Lisp_Object, as
2872 count arg to variable-arg routines like Frun_hook_with_args and
2873 Fformat.
587a49ab
GM
2874 (back_to_previous_visible_line_start)
2875 (build_desired_tool_bar_string): Pass Lisp_Object, not int, to
6fc556fd
KR
2876 fixed-arg routines like Fget_char_property and Fmake_string.
2877 (reconsider_clip_changes): Use XINT when comparing integer lisp
2878 objects, or passing them as int arguments.
587a49ab
GM
2879 (mark_window_display_accurate, insert_left_trunc_glyphs)
2880 (append_space, extend_face_to_end_of_line): Use make_number when
6fc556fd
KR
2881 storing or passing integer values as lisp objects.
2882 (set_cursor_from_row, highlight_trailing_whitespace): Use
2883 INTEGERP, not implicit test against zero, for glyph object.
2884 (try_window_id): Don't use make_number when we want an int value.
2885
2886 * xfaces.c (xlfd_symbolic_value): Make last argument a
2887 Lisp_Object, to be consistent with callers.
2888 (Fbitmap_spec_p): Use XINT to get numeric value of height.
2889 (lface_hash): Apply XFASTINT to lisp values before folding in.
2890
2891 * xfns.c (Fx_show_tip): Use make_number to get lisp objects to
2892 fill in window width and height. Pass an int, not a lisp object,
2893 as first arg to Finsert.
2894
6e7b2457
GM
28952000-04-01 Gerd Moellmann <gerd@gnu.org>
2896
610d841e
GM
2897 * xfaces.c (realize_basic_faces): Block input while realizing
2898 the faces.
2899
6e7b2457
GM
2900 * keyboard.c (lispy_mouse_names): Add additional mouse names.
2901
2902 * termhooks.h (NUM_MOUSE_BUTTONS): Increase to 15.
2903
aa110c0c
GM
29042000-03-31 Gerd Moellmann <gerd@gnu.org>
2905
2906 * xterm.c (x_produce_glyphs): When displaying unibyte text
610d841e 2907 or ASCII, handle case that per-char metric is null.
aa110c0c 2908
8801a864
KR
29092000-03-30 Ken Raeburn <raeburn@gnu.org>
2910
c6129d7e
KR
2911 * lisp.h (NO_UNION_TYPE) [ENABLE_CHECKING]: Undef.
2912
8801a864
KR
2913 * lisp.h (XCONS, XSTRING, XSYMBOL, XFLOAT, XPROCESS, XWINDOW,
2914 XSUBR, XBUFFER): Verify correct object type before returning
2915 pointer, using eassert.
2916 * frame.h (XFRAME): Likewise.
2917
2918 * buffer.c (Frename_buffer, Fset_buffer_multibyte,
2919 swap_out_buffer_local_variables, Fmove_overlay): Don't apply
2920 XSYMBOL, XBUFFER, etc, to values that may be nil or of the wrong
2921 type.
2922 * data.c (set_internal): Likewise.
2923 * dispextern.h (WINDOW_WANTS_MODELINE_P,
2924 WINDOW_WANTS_HEADER_LINE_P): Likewise.
2925 * fileio.c (auto_save_1): Likewise.
2926 * insdel.c (check_markers): Likewise.
2927 * marker.c (buf_charpos_to_bytepos, unchain_marker): Likewise.
2928 * undo.c (record_insert): Likewise.
2929 * vmsproc.c (child_sig): Likewise.
2930 * window.c (unshow_buffer, window_loop): Likewise.
2931 * xterm.c (x_erase_phys_cursor): Likewise.
2932
8e7af858
GM
29332000-03-30 Gerd Moellmann <gerd@gnu.org>
2934
2935 * xfns.c (free_image_cache): Free the cache structure itself
2936 last, after all its members have been freed.
2937
2938 * lisp.h (xstrdup): Add prototype.
2939
2940 * alloc.c (xstrdup): Moved here from xfaces.c.
2941 (allocating_for_lisp): Variable removed.
2942 (lisp_malloc): Block input around the calls to malloc and
2943 mem_insert.
2944
2945 * xfaces.c (realize_tty_face): Use find_symbol_value instead
2946 of Fsymbol_value.
2947 (xstrdup): Moved to alloc.c.
2948
e0b8c689
KR
29492000-03-29 Ken Raeburn <raeburn@gnu.org>
2950
b96f9fb7
KR
2951 * scroll.c (CHECK_BOUNDS): Renamed from CHECK.
2952
2953 * emacs.c (main): Fix sense of no-loadup test.
2954
e0b8c689
KR
2955 * config.in (ENABLE_CHECKING): Undef.
2956
2957 * lisp.h (struct interval): Replace "parent" field with a union of
2958 interval pointer and Lisp_Object; add new bitfield to use as
2959 discriminant. Change other flag fields to bitfields.
2960 (CHECK): New macro for consistency checking. If ENABLE_CHECKING
2961 is defined and the supplied test fails, print a message and
2962 abort.
2963 (eassert): New macro. Use CHECK to provide an assert-like
2964 facility.
2965
2966 * intervals.h (NULL_INTERVAL_P): Now applies only to real interval
2967 pointers; abort if the value looks like a lisp object.
2968 (NULL_INTERVAL_P, NULL_PARENT, HAS_PARENT, HAS_OBJECT, SET_PARENT,
2969 SET_OBJECT, INTERVAL_PARENT, GET_INTERVAL_OBJECT, COPY_PARENT):
2970 Modify for new interval parent definition.
2971
2972 * alloc.c (mark_interval_tree, MARK_INTERVAL_TREE,
2973 UNMARK_BALANCE_INTERVALS): Update references that need an
2974 addressable lisp object in the interval structure.
2975 (die): New function.
2976 (suppress_checking): New variable.
2977
2978 * intervals.c (interval_start_pos): Just return 0 if there's no
2979 parent object.
2980
f83c5440
GM
29812000-03-29 Gerd Moellmann <gerd@gnu.org>
2982
2983 * lread.c (read1): Accept `.' (period) as symbol start like in CL
2984 and earlier Emacs versions.
2985
2986 * keyboard.c (Ftop_level): Cancel busy-cursor.
2987
2988 * eval.c (call_debugger): Cancel busy-cursor.
2989
fdce64ff
KH
29902000-03-29 Kenichi Handa <handa@etl.go.jp>
2991
2992 * search.c (Freplace_match): Adjust multibyteness of the current
2993 buffer and NEWTEXT. Free allocated memory before signaling an
2994 error.
2995
f6a3f532
SM
29962000-03-28 Stefan Monnier <monnier@cs.yale.edu>
2997
2998 * regex.c (analyse_first): New function obtained by ripping out most
2999 of re_compile_fastmap and generalizing it a little bit so that it
3000 can also just return whether a given (sub)pattern can match the empty
3001 string or not.
3002 (regex_compile): Use `analyse_first' to decide whether the loop-check
3003 needs to be done or not for *, +, *? and +? (the loop check is costly
3004 for non-greedy repetition).
3005 (re_compile_fastmap): Delegate the actual work to `analyse_first'.
3006
e9b309ac
DL
30072000-03-28 Dave Love <fx@gnu.org>
3008
bb15bd9a
DL
3009 * s/gnu-linux.h (GC_SETJMP_WORKS): Define for i386, sparc, m68k,
3010 alpha.
3011
e9b309ac
DL
3012 * alloc.c: Include stdio.h. Test STDC_HEADERS, not __STDC__.
3013
ed0767d8
SM
30142000-03-27 Stefan Monnier <monnier@cs.yale.edu>
3015
3016 * regex.c (REGEX_FREE_STACK, RESET_FAIL_STACK): Make them usable as
3017 an expression.
3018 (enum re_opcode_t): Update description of succeed_n.
3019 (PATFETCH): Always define.
3020 (regex_compile): Use lookahead rather than PATUNFETCH (for repetition
3021 operators, char classes, shy-groups and intervals).
3022 Optimize special cases of intervals so as to only use succeed_n and
3023 jump_n when really needed.
3024 (re_compile_fastmap): Simplify handling of jump_n and succeed_n now
3025 that we don't have to handle the special cases any more.
3026 Simplify on_failure_jump handling as well.
3027
e11e7e46
JR
30282000-03-28 Jason Rumney <jasonr@gnu.org>
3029
3030 * lread.c (Fload): Move safe_p definition to above #ifdef DOS_NT.
3031
88faab89
GM
30322000-03-27 Gerd Moellmann <gerd@gnu.org>
3033
182ff242
GM
3034 * s/freebsd.h (GC_SETJMP_WORKS): Define.
3035
3036 * s/msdos.h (GC_SETJMP_WORKS): Define.
427ec082 3037
182ff242
GM
3038 * alloc.c (mark_maybe_object): New function.
3039 (mark_memory): Use it.
3040 (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK): New macros.
3041 (setjmp_tested_p, longjmp_done): New variables.
3042 (test_setjmp): New function.
3043 (mark_stack) [!GC_SETJMP_WORKS]: Call test_setjmp.
3044 (init_alloc): Initialize setjmp_tested_p and longjmp_done.
3045
c1005d06
GM
3046 * xdisp.c (face_before_or_after_it_pos): Pass multibyteness
3047 to DEC_TEXT_POS and INC_TEXT_POS.
3048
3049 * dispnew.c (direct_output_for_insert): Use DEC_TEXT_POS
3050 with parameter MULTIBYTE_P.
3051
427ec082 3052 * dispextern.h (INC_TEXT_POS, DEC_TEXT_POS): Add parameter
c1005d06
GM
3053 MULTIBYTE_P.
3054
7439e5b9 3055 * editfns.c (Fsubst_char_in_region): Don't use INC_POS in unibyte
182ff242
GM
3056 buffers because it looks for multibyte character byte sequences
3057 which don't exist in unibyte text.
7439e5b9 3058
d9c545da
GM
3059 * xterm.h (x_specified_cursor_type, x_copy_color): Add prototypes.
3060
11fd416e 3061 * xfaces.c (register_color, unregister_color, unregister_colors)
d9c545da
GM
3062 [DEBUG_X_COLORS]: New functions.
3063 (x_free_colors) [DEBUG_X_COLORS]: Unregister colors.
3064
3065 * xfns.c (x_set_cursor_color): Get color reference counts right.
3066
3067 * xterm.c (x_copy_color): New function.
3068 (x_alloc_nearest_color) [DEBUG_X_COLORS]: Call register_color.
3069
3070 * buffer.h (MAX_PER_BUFFER_VARS): Renamed from MAX_BUFFER_LOCAL_VARS.
3071 (PER_BUFFER_VAR_OFFSET): Renamed from BUFFER_LOCAL_VAR_OFFSET.
3072 (PER_BUFFER_VAR_IDX): Renamed from BUFFER_LOCAL_VAR_IDX.
3073 (PER_BUFFER_VALUE_P): Renamed from BUFFER_HAS_LOCAL_VALUE_P.
3074 (SET_PER_BUFFER_VALUE_P): Renamed from SET_BUFFER_HAS_LOCAL_VALUE_P.
3075 (PER_BUFFER_IDX): Renamed from BUFFER_LOCAL_IDX.
3076 (PER_BUFFER_DEFAULT): Renamed from BUFFER_LOCAL_DEFAULT_VALUE.
3077 (PER_BUFFER_VALUE): Renamed from BUFFER_LOCAL_VALUE.
3078 (PER_BUFFER_SYMBOL): Renamed from BUFFER_LOCAL_SYMBOL.
3079 (PER_BUFFER_TYPE): Renamed from BUFFER_LOCAL_TYPE.
3080
11fd416e
GM
3081 * category.c, data.c, syntax.c, print.c, lread.c: Use new macro
3082 names for handling per-buffer variables.
d9c545da
GM
3083
3084 * buffer.c (buffer_permanent_local_flags): Use MAX_PER_BUFFER_VARS
3085 instead of MAX_BUFFER_LOCAL_VARS.
3086 (last_per_buffer_idx): Renamed from max_buffer_local_idx.
3087
3088 * xfaces.c (lookup_face): Don't assert FACE_SUITABLE_FOR_CHAR_P.
3089
88faab89
GM
3090 * xfns.c (x_specified_cursor_type): New function.
3091 (x_set_cursor_type): Use it.
3092
3093 * buffer.h (struct buffer): Add cursor_type.
3094
d80f42b7
SM
30952000-03-26 Stefan Monnier <monnier@cs.yale.edu>
3096
3097 * regex.c (enum re_opcode_t): New opcode on_failure_jump_nastyloop.
427ec082 3098 (print_partial_compiled_pattern, re_compile_fastmap): Handle new
88faab89 3099 opcode.
d80f42b7
SM
3100 (regex_compile): Use on_failure_jump_nastyloop for non-greedy loops.
3101 (re_match_2_internal): Add code for on_failure_jump_nastyloop when
3102 executing it as well as when popping it off the stack to find infinite
3103 loops in non-greedy repetition operators.
3104
89e80928
GM
31052000-03-26 Gerd Moellmann <gerd@gnu.org>
3106
3d4ff2dd
GM
3107 * doc.c (Qfunction_documentation): New variable.
3108 (syms_of_doc): Initialize Qfunction_documentation.
3109 (Fdocumentation): If FUNCTION is a symbol with non-nil
3110 `function-documentation' property, return a documentation derived
3111 from that.
3112
bd96bd79
GM
3113 * buffer.c (syms_of_buffer): Add default-cursor-type.
3114 (init_buffer_once): Don't let cursor_type have a local value
3115 in every buffer.
3116
19d1bc27
GM
3117 * xterm.c (x_display_and_set_cursor): Choose cursor depending
3118 on buffer-local value of cursor_type.
3119 (x_draw_bar_cursor): Add parameter WIDTH.
3120
3121 * buffer.c (reset_buffer): Initialize buffer's cursor_type.
3122 (init_buffer_once): Set default cursor_type value to t.
3123 Mark cursor_type as local everywhere.
3124 (syms_of_buffer): New per-buffer variable cursor-type.
3125
89e80928
GM
3126 * buffer.h (struct buffer): Remove member local_var_flags,
3127 add local_flags.
3128 (MAX_BUFFER_LOCAL_VARS): New macro.
3129 (BUFFER_LOCAL_VAR_OFFSET, BUFFER_LOCAL_VAR_IDX)
3130 (BUFFER_HAS_LOCAL_VALUE_P, SET_BUFFER_HAS_LOCAL_VALUE_P)
3131 (BUFFER_LOCAL_IDX, BUFFER_LOCAL_DEFAULT_VALUE, BUFFER_LOCAL_VALUE)
3132 (BUFFER_LOCAL_SYMBOL, BUFFER_LOCAL_TYPE): New macros.
3133
3134 * print.c (print_object): Use new macros for per-buffer
3135 variables.
3136
3137 * category.c (Fset_category_table): Use new macros for per-buffer
3138 variables.
3139
3140 * buffer.c (buffer_permanent_local_flags): Make a char array.
3141 (max_buffer_local_idx): New variable.
3142 (reset_buffer_local_variables, Fbuffer_local_variables): Rewritten
3143 for new handling of per-buffer variables.
3144 (buffer_slot_type_mismatch): Use new macros for per-buffer vars.
3145 (init_buffer_once): Initialize per-buffer vars differently.
3146 Set max_buffer_local_idx.
3147
3148 * syntax.c (Fset_syntax_table): Use new macros for per-buffer
3149 variables.
3150
3151 * lread.c (defvar_per_buffer): Use new macros for per-buffer
3152 variables.
3153
3154 * data.c (do_symval_forwarding, store_symval_forwarding)
3155 (find_symbol_value, set_internal, default_value, Fset_default)
3156 (Fkill_local_variable, Flocal_variable_p): Use new macros for
3157 per-buffer variables.
3158
3159 * Makefile.in (bootstrap-emacs): Use `mv -f' instead of `mv'.
3160
9a0dd3dc
GM
31612000-03-24 Gerd Moellmann <gerd@gnu.org>
3162
b68c375f
GM
3163 * xterm.c (x_term_init): Unblock input around call1 of
3164 Qvendor_specific_keysyms.
3165
9a0dd3dc
GM
3166 * syntax.c (open_paren_in_column_0_is_defun_start): New variable.
3167 (find_defun_start): Consider an open parenthesis in column 0
3168 a defun start only if open_paren_in_column_0_is_defun_start is set.
3169 (syms_of_syntax): New variable open-paren-in-column-0-is-defun-start.
3170
7973e637
SM
31712000-03-24 Stefan Monnier <monnier@cs.yale.edu>
3172
3173 * eval.c (Fautoload): Add entry in load-history (if after dump).
3174 * lread.c (load-history): Update docstring.
3175
39210e90
GM
31762000-03-24 Gerd Moellmann <gerd@gnu.org>
3177
3178 * indent.c (Fvertical_motion): Always use the current buffer.
3179 Temporarily change the window's buffer, if necessary.
3180
72db3ab5
GM
31812000-03-23 Gerd Moellmann <gerd@gnu.org>
3182
3183 * xterm.c (fast_find_position): Make sure not to consider rows
3184 not visible in the window.
3185
990b2375
SM
31862000-03-22 Stefan Monnier <monnier@cs.yale.edu>
3187
3188 * regex.c (enum syntaxcode): Provide default for non-Emacs.
3189 (re_compile_fastmap, re_match_2_internal): Undo Dave's previous fix.
3190
ff4df011
JR
31912000-03-22 Jason Rumney <jasonr@gnu.org>
3192
3193 * w32menu.c (single_submenu): Set help string to NULL if none.
3194 (w32_menu_show): Set help string correctly.
3195 (add-menu-item): Set help string in MIIM_DATA for menu item.
3196 Load SetMenuItemInfoA explicitly.
3197 (w32_menu_display_help): New function.
427ec082 3198
ff4df011
JR
3199 * w32fns.c (w32_wnd_proc): Handle WM_MENUSELECT message.
3200 (QCdata): Moved to xdisp.c.
3201
3202 * w32term.c (w32_read_socket): Handle WM_MENUSELECT message.
3203 (Vw32_charset_to_codepage_alist): Removed.
3204 (Vw32_charset_info_alist): New variable.
3205 (Qw32_charset_[ansi, default, symbol, shiftjis, hangul, gb2312,
3206 chinesebig5, oem, easteurope, turkish, baltic, russian, arabic,
3207 greek, hebrew, thai, johab, mac, unicode]): New symbols.
3208 (x_produce_glyphs): Remove out of date #ifdef 0'd section. Replace
3209 with TODO comment.
3210 (w32_codepage_for_font): Use Vw32_charset_info_alist.
3211 (syms_of_w32term): Remove Vw32_charset_to_codepage_alist.
3212 Define Vw32_charset_info_alist and w32_charset symbols.
3213
32142000-03-22 Jason Rumney <jasonr@gnu.org>
3215
3216 * makefile.nt (w32bdf.obj): Update dependencies.
3217
3218 * w32bdf.c: Include frame.h and dispextern.h before fontset.h.
3219
3220 * w32fns.c: Include fontset.h after dispextern.h.
3221 (Fx_create_frame): Do not create fontset.
3222 (w32_load_system_font): Doc fix.
3223 (Fx_close_connection): Free full_name if it is not shared.
3224
3225 * w32term.c: Include fontset.h after dispextern.h.
3226 (x_get_glyph_face_and_encoding): New parameter two_byte_p. Callers
3227 updated.
3228 (w32_per_char_metric): If PCM is invalid, delete and return NULL.
3229 (x_get_char_and_face_encoding): Use FACE_FOR_CHAR to get face_id.
3230 (w32_font_is_double_byte): New function, needs body.
3231 (x_append_glyph): Set glyph->glyph_not_available_p.
3232 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
3233 it->charset. If it->multibyte_p is zero and it->c is a multibyte
3234 character, convert it to a unibyte character.
3235 (struct glyph_string): Delete member `charset'.
3236 (W32_TEXTOUT): Temporarily remove charset_dim until another way of
3237 calculating it is found.
3238 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
3239 the case that per char metric is not available correctly.
3240 (x_fill_glyph_string): Handle the case that the specific glyph is
3241 not available correctly.
3242 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
3243 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
3244 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
3245 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
3246 fontset. Don't call FS_LOAD_FONT.
3247
439d5cb4
KR
32482000-03-22 Ken Raeburn <raeburn@gnu.org>
3249
3250 * intervals.h (NULL_INTERVAL): Cast to INTERVAL type.
3251 (INT_LISPLIKE): New macro.
3252 (NULL_INTERVAL_P): Use it.
3253 (INTERVAL_HAS_PARENT, INTERVAL_HAS_OBJECT, SET_INTERVAL_PARENT,
3254 SET_INTERVAL_OBJECT, INTERVAL_PARENT, COPY_INTERVAL_PARENT,
3255 GET_INTERVAL_OBJECT, INTERVAL_PARENT_OR_NULL): New macros.
3256
3257 * alloc.c (make_interval, gc_sweep): Use new macros; eliminate all
3258 explicit references to "parent" field of struct interval and
3259 associated unclean type conversions.
3260 * intervals.c (create_root_interval, root_interval, rotate_right,
3261 rotate_left, balance_possible_root_interval, split_interval_right,
3262 split_interval_left, interval_start_pos, find_interval,
3263 next_interval, previous_interval, update_interval,
3264 adjust_intervals_for_insertion, delete_node, delete_interval,
3265 adjust_intervals_for_deletion, merge_interval_right,
3266 merge_interval_left, reproduce_tree, graft_intervals_into_buffer,
3267 copy_intervals_to_string): Likewise.
3268 * intervals.h (AM_LEFT_CHILD, AM_RIGHT_CHILD, RESET_INTERVAL):
3269 Likewise.
3270 * syntax.c (update_syntax_table): Likewise.
3271
3272 * intervals.c (reproduce_tree_obj): New function, like
3273 reproduce_tree but takes a Lisp_Object for the parent. Declare
3274 with prototype.
3275 (graft_intervals_into_buffer): Use it when appropriate.
3276 (reproduce_tree): Declare with prototype.
3277 (balance_possible_root_interval): Check that the parent is a lisp
3278 object before trying to examine its type.
3279
ee1c5b21
GM
32802000-03-22 Gerd Moellmann <gerd@gnu.org>
3281
3282 * xfaces.c (lface_same_font_attributes_p): Compare font attributes
3283 as strings only if both are known to be strings.
3284
3285 * s/openbsd.h (LIBS_TERMCAP): Undef.
3286
1fb352e0
SM
32872000-03-21 Stefan Monnier <monnier@cs.yale.edu>
3288
3289 * regex.c (CHAR_CHARSET, CHARSET_LEADING_CODE_BASE): Add default
3290 definitions for non-Emacs compilation.
3291 (enum re_opcode_t): Remove (not)wordchar and move (not)syntaxspec
3292 outside of `#ifdef emacs'.
3293 (print_partial_compiled_pattern): Update.
3294 (regex_compile): Use (not)syntaxspec(Sword) instead of (not)wordchar.
3295 (re_compile_fastmap): Merge handling of charset and charset_not (for
3296 emacs and non-emacs compilation as well).
3297 Similarly for (not)categoryspec and (not)syntaxspec.
3298 Don't use the fastmap when reaching `anychar' since the added
3299 complexity is not justified.
3300 (re_match_2_internal): Merge (not)wordchar (emacs and non-emacs)
3301 and (not)syntaxspec. Merge (not)categoryspec.
3302
fdaa1f77
KH
33032000-03-22 Kenichi Handa <handa@etl.go.jp>
3304
ff1a0d8e
KH
3305 * dispextern.h [!HAVE_WINDOW_SYSTEM] (FACE_SUITABLE_FOR_CHAR_P,
3306 FACE_FOR_CHAR): Define them differently for the configuration of
3307 --without-x.
fdaa1f77 3308
d152fb46
DL
33092000-03-21 Dave Love <fx@gnu.org>
3310
3311 * fontset.c (Fset_fontset_font, Ffontset_font): Fix newlines in
3312 doc string.
3313
d2cafc8c
GM
33142000-03-21 Gerd Moellmann <gerd@gnu.org>
3315
3316 * xfaces.c (check_lface_attrs) [GLYPH_DEBUG]: Fix syntax error.
3317 (lface_fully_specified_p): Don't check contents of
3318 LFACE_FONT_INDEX because that attribute is optional.
3319 (realize_x_face): Remove now unwarranted xassert.
3320
9111d4b5
KH
33212000-03-21 Kenichi HANDA <handa@etl.go.jp>
3322
3323 The following changes are to make font selection based on
3324 characters, not charset. In addition, they recover fontset
3325 facilities while utilizing the new font selection mechanism.
3326
6c4bfdc0
KH
3327 * Makefile.in (fontset.o): Depend on dispextern.h.
3328
3329 * alloc.c (mark_face_cache): Don't mark face->registry.
3330
9111d4b5
KH
3331 * dispextern.h (struct glyph): New member glyph_not_available_p.
3332 Use 22 bits for face_id.
3333 (enum lface_attribute_index): Add LFACE_FONT_INDEX.
3334 (struct face): Delete member registry, new member ascii_face.
3335 (FACE_SUITABLE_FOR_CHAR_P): Renamed from
3336 FACE_SUITABLE_FOR_CHARSET_P. Caller changed.
3337 (FACE_FOR_CHAR): Renamed from FACE_FOR_CHARSET. Caller changed.
3338 (struct it): Delete member charset, new member
3339 glyph_not_available_p.
3340
3341 * fontset.h (FONT_NOT_OPENED, FONT_NOT_FOUND): Macros removed.
3342 (struct fontset_info, struct fontset_data): Structs removed.
3343 (allloc_fontset_data, free_fontset_data, fs_regiser_fontset,
3344 Vglobale_fontset_alist, font_idx_temp): Externs removed.
3345 (fs_load_font, fs_query_fontset): Adjusted for new argument.
3346 (fs_free_face_fontset, fontset_font_pattern,
3347 face_suitable_for_char_p, face_for_char,
3348 make_fontset_for_ascii_face): Extern them.
3349 (FS_LOAD_FONT): Adjusted for the change of fontset implementation.
3350 (FS_LOAD_FACE_FONT): New macro.
3351
3352 * fontset.c: All codes rewritten or adjusted for the change of
3353 fontset implementation. Now fontset is represented by char table.
3354 (Vglobal_fontset_alist, font_idx_temp, my_strcasetbl): Variables
3355 removed.
3356 (my_strcasecmp): Function removed.
3357 (Vfontset_table, next_fontset_id, Vdefault_fontset): New
3358 variables.
3359 (AREF, ASIZE): New macros.
3360 (FONTSET_FROM_ID, FONTSET_ID, FONTSET_NAME, FONTSET_FRAME,
3361 FONTSET_ASCII, FONTSET_BASE, BASE_FONTSET_P, FONTSET_REF,
3362 FONTSET_REF_VIA_BASE, FONTSET_SET): New macros.
3363 (fontset_ref, fontset_ref_via_base, fontset_set, make_fontset,
3364 fontset_id_valid_p, font_family_registry, fontset_name,
3365 fontset_ascii, free_face_fontset, face_suitable_for_char_p,
3366 face_for_char, make_fontset_for_ascii_face, fontset_font_pattern):
3367 New functions.
3368 (fs_load_font): New arg FACE. Caller changed.
3369 (fs_query_fontset): Argument changed. Caller changed.
3370 (Fquery_fontset): call fs_query_fontset.
3371 (fs_register_fontset, alloc_fontset_data, free_fontset_data):
3372 Functions removed.
3373 (clear_fontset_elements, check_registry_encoding,
3374 check_fontset_name): New functions.
3375 (syms_of_fontset): Set char-table-extra-slots property of fontset
3376 to 3. Staticpro and initialize Vfontset_table and
3377 Vdefault_fontset. Defsubr fontset_font and fontset_list.
3378
3379 * frame.h (struct frame): Member `fontset_data' removed.
3380 (FRAME_FONTSET_DATA): Macro removed.
3381
3382 * frame.c (make_frame): Don't allocate f->fontset_data.
3383 (Fdelete_frame): Don't free f->fontset_data.
3384
6c4bfdc0
KH
3385 * msdos.c (XMenuActivate): Args to lookup_derived_face changed.
3386
9111d4b5
KH
3387 * xdisp.c (charset_at_position): Function removed.
3388 (init_iterator): Don't set member charset of struct `it'.
3389 (handle_face_prop, reseat_to_string, set_iterator_to_next,
3390 next_element_from_display_vector, insert_left_trunc_glyphs):
3391 Likewise.
3392 (face_before_or_after_it_pos): Call FACE_FOR_CHAR, not
3393 FACE_FOR_CHARSET.
3394 (get_next_display_element, append_space,
3395 extend_face_to_end_of_line): Likewise.
3396
3397 * xfaces.c (Qx_charset_registry, Vface_default_registry):
3398 Variables removed.
3399 (clear_font_table, frame_update_line_height, load_face_font):
3400 Adjusted for the change of fontset implementation.
3401 (load_face_fontset_font): Function removed.
3402 (pixel_point_size): New function.
3403 (font_list): Argument type changed. Caller changed.
3404 (LFACE_FONT): New macro.
3405 (check_lface_attrs): Check attr[LFACE_FONT_INDEX].
3406 (set_lface_from_font_name): Type of arg FONTNAME is changed to
3407 Lisp_Object. Determine the font name by actually loading a font
3408 by the specified pattern. Set LFACE_FONT (lface) to the specified
3409 pattern. Even if a font is not found, don't try alternatives.
3410 (Finternal_set_lisp_face_attribute): Handle `font' slot in lface.
3411 (set_font_frame_param): If `font' is specified in lface, use it.
3412 (Finternal_get_lisp_face_attribute): Handle `font' slot in lface.
3413 (lface_same_font_attributes_p): Likewise.
3414 (make_realized_face): Arguent changed. Caller changed. Set
3415 face->ascii_face to face itself.
3416 (free_realized_face): Free face->fontset if face is for ASCII.
3417 (face_suitable_for_iso8859_1_p, face_suitable_for_charset_p,
3418 deduce_unibyte_registry, x_charset_registry): Functions removed.
3419 (free_realized_multibyte_face): New function.
3420 (lookup_face, lookup_named_face, lookup_derived_face): Argument
3421 changed. Caller changed.
3422 (try_font_list): Argument type changed.
3423 (face_fontset): Check `font' slot of ATTRS, not `family' slot.
3424 (choose_face_font): Argument changed. Handle fontset properly.
3425 (choose_face_fontset_font): Function removed.
3426 (realize_default_face, realize_named_face): Don't remove the
3427 former face here.
3428 (realize_face): Argument changed. Caller changed. Remove face
3429 with the arg former_face_id in advance. Load font for the new
3430 face.
3431 (realize_x_face): Argument changed. Caller changed. For a
3432 multibyte character, share fontset with base_face. For a single
3433 byte character, make a new realized fontset. Don't load a font
3434 here.
3435 (realize_tty_face): Argument changed. Caller changed.
3436 (compute_char_face): Call FACE_FOR_CHAR, not FACE_FOR_CHARSET.
3437 (face_at_buffer_position): Don't check multibyte_p for returning
3438 DEFAULT_FACE_ID.
3439 (face_at_string_position): Call FACE_SUITABLE_FOR_CHAR_P, not
3440 FACE_SUITABLE_FOR_CHARSET_P.
3441 (syms_of_xfaces): Remove code for Qx_charset_registry and
3442 Vface_default_registry.
3443
6c4bfdc0
KH
3444 * xterm.c: Include fontset.h after dispextern.h. Undo the changes
3445 related to PER_CHAR_METRIC done by Gerd on 2000-03-03.
9111d4b5
KH
3446 (x_per_char_metric): Don't try FONT->default_char. Even if
3447 pcm->width is zero, glyph bits may exist.
3448 (x_encode_char): Always initialize char2b->byte1.
3449 (x_get_char_face_and_encoding): Call FACE_FOR_CHAR to get face_id.
3450 (x_get_glyph_face_and_encoding): New arg two_byte_p. Caller
3451 changed.
3452 (x_append_glyph): Set glyph->glyph_not_available_p.
3453 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
3454 it->charset. Handle the case that per char metric is not
3455 available. If it->multibyte_p is zero and it->c is a multibyte
3456 character, convert it to a unibyte character.
3457 (struct glyph_string): Delete member `charset'.
3458 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
3459 the case that per char metric is not available correctly.
3460 (x_fill_glyph_string): Handle the case that the specific glyph is
3461 not available correctly.
3462 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
3463 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
3464 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
3465 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
3466 fontset. Don't call FS_LOAD_FONT.
3467
3468 * xfns.c (Fx_create_frame): Don't cal fs_register_fontset.
3469 (x_create_tip_frame): Likewise.
3470 (Fx_close_connection): Free full_name of font_info.
3471
3472 * fns.c (optimize_sub_char_table): New function.
3473 (Foptimize_char_table): New function.
3474 (syms_of_fns): Defsubr Soptimize_char_table.
3475
b33dd3b0
GM
34762000-03-20 Gerd Moellmann <gerd@gnu.org>
3477
3478 * buffer.c (Fset_buffer_modified_p): Set update_mode_lines
3479 only if buffer is displayed in some window.
3480
3481 * xdisp.c (handle_single_display_prop): Initialize local `value'.
3482 (try_window_reusing_current_matrix): Don't call scroll run
3483 function if run's current and desired position are the same;
3484 this prevents cursor flickering.
3485
4e8a9132
SM
34862000-03-19 Stefan Monnier <monnier@cs.yale.edu>
3487
3488 * regex.h (RE_TRANSLATE. RE_TRANSLATE_P): Moved to regex.c.
3489
3490 * regex.c (RE_STRING_CHAR): New macro.
3491 (GET_CHAR_AFER_2): Remove.
3492 (RE_TRANSLATE, RE_TRANSLATE_P): New macros moved from regex.h.
3493 (enum re_opcode_t): Remove on_failure_jump_exclusive.
3494 (print_partial_compiled_pattern, re_compile_fastmap)
3495 (re_match_2_internal): Remove on_failure_jump_exclusive.
3496 (regex_compile): Turn optimizable P+ loops into PP*, so that the
3497 optimization only need to work for * (ie. can use of_keep_string_jump).
3498 Remove the special case for .*\n since it is now covered by the general
3499 optimization.
3500 (re_search_2): Don't bother with `room'.
3501 (skip_one_char): New function.
3502 (skip_noops): Simplify since `memory' is not needed any more.
3503 (mutually_exclusive_p): Restructure slightly to use `switch' and
3504 add handling for "all" remaining cases.
3505 (re_match_2_internal): Change on_failure_jump_smart to use
3506 on_failure_keep_string_jump (and redirect the end-of-loop jump)
3507 rather than on_failure_jump_exclusive.
3508
2136fdd4
GM
35092000-03-19 Gerd Moellmann <gerd@gnu.org>
3510
3511 * xfns.c (select_visual): Don't set dpyinfo->n_planes to the
3512 number of bits per RGB because it's everywhere used as the depth
3513 of the visual.
3514
3515 * term.c (calculate_costs): Remove code dealing with X frames.
3516
18e21ce8 35172000-03-19 Richard M. Stallman <rms@gnu.org>
e53ae11c
RS
3518
3519 * lread.c (syms_of_lread): Doc fix for load-convert-to-unibyte.
3520
d7b511c4
GM
35212000-03-18 Gerd Moellmann <gerd@gnu.org>
3522
3523 * lread.c (read_integer): Unread the last char not consumed.
3524
16b5d424
GM
35252000-03-17 Gerd Moellmann <gerd@gnu.org>
3526
3527 * xterm.c (x_update_window_cursor): Don't update in frames
d7b511c4 3528 which are in the process of being deleted.
16b5d424 3529
1fa28578
GM
35302000-03-16 Gerd Moellmann <gerd@gnu.org>
3531
83488cce
GM
3532 * Makefile.in (mostlyclean): Add `*.core'.
3533 (clean): Add `bootstrap-emacs'.
3534
1fa28578
GM
3535 * lread.c (read_integer): New function.
3536 (read1): Support read syntax #o, #x, #b, #r.
3537
99633e97
SM
35382000-03-15 Stefan Monnier <monnier@cs.yale.edu>
3539
1fa28578
GM
3540 * regex.c (re_match_2): Fix string shortening (to fit `stop') to
3541 make sure POINTER_TO_OFFSET gives the same value before and after
3542 PREFETCH. Use `dfail' to guarantee "atomic" matching.
99633e97
SM
3543 (PTR_TO_OFFSET): Use POINTER_TO_OFFSET.
3544 (debug): Now only active if > 0 rather than if != 0.
3545 (DEBUG_*): Update for the new meaning of `debug'.
1fa28578
GM
3546 (print_partial_compiled_pattern): Add missing `succeed' case. Use
3547 CHARSET_* macros in the charset(_not) branch. Fix off-by-two bugs
3548 in `succeed_n', `jump_n' and `set_number_at'.
99633e97
SM
3549 (store_op1, store_op2, insert_op1, insert_op2)
3550 (at_begline_loc_p, at_endline_loc_p): Add prototype.
1fa28578
GM
3551 (group_in_compile_stack): Move to after its arg's types are
3552 declared and add a prototype.
99633e97 3553 (PATFETCH): Define in terms of PATFETCH_RAW.
1fa28578
GM
3554 (GET_UNSIGNED_NUMBER): Add the usual `do { ... } while(0)'
3555 wrapper.
99633e97 3556 (QUIT): Redefine as a nop except for NTemacs.
1fa28578
GM
3557 (regex_compile): Handle intervals {,M} as if it was {0,M}. Fix
3558 indentation of the greedy-op and shy-group code.
99633e97
SM
3559 (at_(beg|end)line_loc_p): Fix argument's types.
3560 (re_compile_fastmap): Ifdef out failure_stack_ptr to shut up gcc.
3561 (re_search_2): Use POS_AS_IN_BUFFER. Simplify `room' computation.
3562 (MATCHING_IN_FIRST_STRING): Remove.
1fa28578
GM
3563 (re_match_2): Use POS_AS_IN_BUFFER. Ifdef out failure_stack_ptr
3564 to shut up gcc. Use FIRST_STRING_P and POINTER_TO_OFFSET. Use
3565 QUIT unconditionally.
99633e97 3566
699238d9
GM
35672000-03-15 Gerd Moellmann <gerd@gnu.org>
3568
3569 * minibuf.c (Fminibuffer_complete): Set point to ZV if finding
3570 a sole completion.
3571
3572 * process.c (send_process): Add a hint that the function
3573 can call Lisp code to its comment.
3574
3575 * lread.c (load_dangerous_libraries): New variable.
3576 (Vbytecomp_version_regexp): New variable.
3577 (safe_to_load_p): New function.
3578 (Fload): Handle files not compiled with Emacs specially.
3579 (syms_of_lread): New Lisp variable load-dangerous-libraries.
3580
34e23e5a
GM
35812000-03-14 Gerd Moellmann <gerd@gnu.org>
3582
9c763cca
GM
3583 * lisp.h (free_frame_xic) [HAVE_X_I18N]: Add missing semicolon.
3584
3585 * xterm.c (xim_close_dpy, xim_initialize): Use X11R6-style XIM
3586 support functions only if HAVE_X11R6_XIM is defined.
3587 (xim_instantiate_callback): Define only if HAVE_X11R6_XIM.
3588
3589 * s/sol2.h (INHIBIT_X11R6_XIM): Define.
3590
3591 * xfns.c (X_I18N_INHIBITED): Don't define.
3592 (create_frame_xic): Remove conditional compilation on
3593 X_I18N_INHIBITED.
3594 (x_kill_gs_process, x_window): Use FRAME_X_VISUAL.
3595
3596 * config.in (HAVE_X_I18N): Moved here from xterm.h.
3597 (HAVE_X11R6_XIM): Define.
3598
3599 * xterm.h (HAVE_X_I18N) [HAVE_X11R6]: Moved to config.in.
3600
34e23e5a
GM
3601 * xterm.c (x_term_init): Add support for X resource `synchronous'.
3602 If set, call XSynchronize.
3603
66f0296e
SM
36042000-03-13 Stefan Monnier <monnier@cs.yale.edu>
3605
34e23e5a
GM
3606 * regex.c: Declare a new type `re_char' used throughout the code
3607 for the string char type. It's `const unsigned char' to match the
3608 rest of Emacs. Consistently make sure all pointers to strings use
3609 it and make sure all pointers into the pattern use `unsigned
3610 char'.
66f0296e 3611 (re_match_2_internal): Use `PREFETCH+STRING_CHAR' instead of
34e23e5a
GM
3612 GET_CHAR_AFTER_2. Also merge wordbound and notwordbound to reduce
3613 code duplication.
66f0296e
SM
3614
3615 * charset.h (GET_CHAR_AFTER_2): Remove.
3616 (GET_CHAR_BEFORE_2): Use unsigned chars, like everywhere else.
3617
854a025c
KR
36182000-03-12 Ken Raeburn <raeburn@gnu.org>
3619
3620 * Makefile.in (temacs): Evaluate ALL_LDFLAGS into a temporary
3621 variable before the invocation of YMF_PASS_LDFLAGS, in case both
3622 of them try to use backquotes.
3623
b9d2c7e2
DL
36242000-03-12 Dave Love <fx@gnu.org>
3625
3626 * unexelf.c: Restore changes of 1999-10-19.
3627 (unexec): Don't adjust bss for sbss type SHT_PROGBITS; otherwise
3628 fix its type and alignment; copy it from current process.
3629
5e5dff44
GM
36302000-03-12 Gerd Moellmann <gerd@gnu.org>
3631
9b2f3c38
GM
3632 * atimer.c (cancel_atimer): Break out of the loop as soon as timer
3633 has been found. Fix bug not computing timer's predecessor.
3634
427ec082 3635 * fileio.c (Fread_file_name): Handle case that DIR contains a
9172b88d
GM
3636 file name.
3637
e1cff360
GM
3638 * window.c (Fsave_window_excursion): Doc fix.
3639
5e5dff44
GM
3640 * xfns.c (x_defined_color): Rewritten to use
3641 x_allocate_nearest_color.
3642
e411ce4b
EZ
36432000-03-12 Eli Zaretskii <eliz@is.elta.co.il>
3644
3645 * msdos.c (vga_installed): New function, code moved from
3646 dos_set_window_size.
3647 (Qbar, Qcursor_type, outside_cursor): New variables.
3648 (syms_of_msdos): Intern and staticpro them.
3649 (dos_ttraw) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Save the cursor
3650 shape used outside Emacs when called for the first time.
3651 (dos_ttcooked) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Restore the
3652 cursor shape used outside Emacs.
3653 (msdos_set_cursor_shape, IT_set_cursor_type): New functions.
3654 (IT_frame_up_to_date): Call IT_set_cursor_type, in case the cursor
3655 type has changed.
3656 (IT_set_frame_parameters): Call IT_set_cursor_type if the frame
3657 parameters specify the cursor. Make qreverse a global
3658 variable (renamed to Qreverse).
3659
80460654
GM
36602000-03-09 Gerd Moellmann <gerd@gnu.org>
3661
3662 * fns.c (Fy_or_n_p): Cancel busy-cursor.
3663
95cd4c40
SM
36642000-03-08 Stefan Monnier <monnier@cs.yale.edu>
3665
3666 This is a big redesign of failure-stack and register handling, prompted
3667 by bugs revealed when trying to add shy-groups. Overall, what happened
3668 is that loops are now structured a little differently, groups can be
3669 shy and the code is a little simpler.
3670
3671 * regex.h: Update the copyright.
3672 (RE_SHY_GROUPS): New value.
3673 (RE_UNMATCHED_RIGHT_PAREN_ORD): Renumber.
3674 (RE_SYNTAX_EMACS): Add RE_SHY_GROUPS.
3675
80460654
GM
3676 * regex.c (enum re_opcode_t): Remove jump_past_alt,
3677 maybe_pop_jump, push_dummy_failure and dumy_failure_jump. Add
3678 on_failure_jump_(exclusive, loop and smart). Also fix the comment
3679 for (start|stop)_memory since they now only take one argument (the
3680 second has becomes unnecessary).
3681 (print_partial_compiled_pattern): Adjust for changes in
3682 re_opcode_t.
3683 (print_compiled_pattern): Use %ld to printf long ints and flush to
3684 make debugging a little easier.
95cd4c40
SM
3685 (union fail_stack_elt): Make the integer unsigned.
3686 (struct fail_stack_type): Add a `frame' element.
3687 (INIT_FAIL_STACK): Init `frame' as well.
3688 (POP_PATTERN_OP): New macro for re_compile_fastmap.
3689 (DEBUG_PUSH, DEBUG_POP): Remove.
3690 (NUM_REG_ITEMS): Remove.
3691 (NUM_NONREG_ITEMS): Adjust.
80460654
GM
3692 (FAILURE_PAT, FAILURE_STR, NEXT_FAILURE_HANDLE)
3693 (TOP_FAILURE_HANDLE): New macros for the cycle detection.
95cd4c40 3694 (ENSURE_FAIL_STACK): New macro for PUSH_FAILURE_(REG|POINT).
80460654
GM
3695 (PUSH_FAILURE_REG, POP_FAILURE_REG, CHECK_INFINITE_LOOP): New
3696 macros.
3697 (PUSH_FAILURE_POINT): Don't push registers any more. The pattern
3698 address pushed is not the destination of the jump but the source
3699 of it instead.
95cd4c40
SM
3700 (NUM_FAILURE_ITEMS): Remove.
3701 (POP_FAILURE_POINT): Adapt to the new stack structure (i.e. pop
80460654
GM
3702 registers before the actual failure point). Don't hardcode any
3703 meaning for str==NULL anymore.
95cd4c40 3704 (union register_info_type, REG_MATCH_NULL_STRING_P, IS_ACTIVE)
80460654
GM
3705 (MATCHED_SOMETHING, EVER_MATCHED_SOMETHING, SET_REGS_MATCHED):
3706 Remove.
95cd4c40
SM
3707 (REG_UNSET_VALUE): Use NULL (why not?).
3708 (compile_range): Remove declaration since it doesn't exist.
3709 (struct compile_stack_elt_t): Remove inner_group_offset.
3710 (old_reg(start|end), reg_info, reg_dummy, reg_info_dummy): Remove.
3711 (regex_grow_registers): Remove dead code.
3712 (FIXUP_ALT_JUMP): New macro.
80460654
GM
3713 (regex_compile): Add shy-groups Change loops to use
3714 on_failure_jump_smart&jump instead of
3715 on_failure_jump&maybe_pop_jump. Change + loops to eliminate the
3716 initial (dummy_failure_)jump. Remove c1_base (looks like unused
3717 variable to me). Use `jump' instead of `jump_past_alt' and don't
3718 bother with push_dummy_failure in alternatives since it is now
3719 unnecessary. Use FIXUP_ALT_JUMP. Eliminate a useless `#ifdef
3720 emacs' for (re)allocating the stack.
3721 (re_compile_fastmap): Remove dead variables i and num_regs. Exit
3722 from loop when bufp->can_be_null rather than jumping to `done'.
3723 Avoid jumping backwards so as to ensure termination. Use
3724 PATTERN_STACK_EMPTY and POP_PATTERN_OP. Improved handling of
3725 backreferences. Remove dead code in handling of `anychar'.
95cd4c40 3726 (skip_noops, mutually_exclusive_p): New functions taken from the
80460654
GM
3727 handling of `maybe_pop_jump' in re_match_2_internal. Slightly
3728 improve mutually_exclusive_p to handle ".+\n".
3729 (lowest_active_reg, highest_active_reg,
3730 NO_(LOWEST|HIGHEST)_ACTIVE_REG) Remove.
3731 (re_match_2_internal): Use %p instead of 0x%x when printf'ing
3732 ptrs. Don't SET_REGS_MATCHED anymore. Remove many dead
3733 variables. Push register (in `start_memory') on the stack rather
3734 than storing it in old_reg(start|end). Remove the cycle detection
3735 from `stop_memory', replaced by the use of on_failure_jump_loop
3736 for greedy loops. Add code for the new on_failure_jump_<foo>.
3737 Remove ad-hoc code in `on_failure_jump' to push more registers in
3738 the case of a loop. Take out code from `maybe_pop_jump' into
3739 separate functions and adapt it to the semantics of
3740 `on_failure_jump_smart'. Remove jump_past_alt, dummy_failure_jump
3741 and push_dummy_failure. Remove dummy_failure handling and
3742 handling of `failures to jump to on_failure_jump' (this last one
3743 was already dead code, it seems).
3744 (group_match_null_string_p, alt_match_null_string_p)
3745 (common_op_match_null_string_p): Remove.
95cd4c40 3746
7397acc4
DL
37472000-03-08 Dave Love <fx@gnu.org>
3748
3749 * config.in: Don't depend on __STDC__ for volatile.
3750 Add POINTER_TYPE, PTR, PROTOTYPES.
3751
3752 * hftctl.c, strftime.c: Use PROTOTYPES.
3753 * eval.c (find_handler_clause): Likewise.
3754
3755 * mem-limits.h: Use POINTER_TYPE.
3756
3757 * lisp.h (P_): Define based on PROTOTYPES, not __STDC__.
3758 (memory_warnings): Declare using POINTER_TYPE.
3759
5e91ff9e
GM
37602000-03-08 Gerd Moellmann <gerd@gnu.org>
3761
feab4fba
GM
3762 * xfns.c (x_set_cursor_type): If ARG is nil, give frame no cursor.
3763
25edb08f
GM
3764 * xdisp.c (display_echo_area): Temporarily inhibit garbage
3765 collection.
3766
5e91ff9e
GM
3767 * xfns.c: Remove obsolete code in #if 0.
3768 (Fx_focus_frame): New function.
3769
a735b7e1
KH
37702000-03-07 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
3771
3772 * coding.c (coding_category_name): Add coding-category-utf-8,
3773 coding-category-utf-16-be, coding-category-utf-16-le.
3774 (UTF_8_1_OCTET_P, UTF_8_EXTRA_OCTET_P, UTF_8_2_OCTET_LEADING_P,
3775 UTF_8_3_OCTET_LEADING_P, UTF_8_4_OCTET_LEADING_P,
3776 UTF_8_5_OCTET_LEADING_P, UTF_8_6_OCTET_LEADING_P): New macros.
3777 (detect_coding_utf_8): New function.
3778 (UTF_16_INVALID_P, UTF_16_HIGH_SURROGATE_P
3779 UTF_16_LOW_SURROGATE_P): New macros.
3780 (detect_coding_utf_16): New function
3781 (detect_coding_mask): When priorities are specified, skip any
3782 categories that have `nil' coding-system. Fix bug of returning
3783 wrong mask when PRIORITIES is specified and detect_coding_XXX()
3784 returns a mask not set in PRIORITIES.
3785 (detect_eol_type_in_2_octet_form): New function.
3786 (detect_eol): selects detect_eol_type_XXX to call according to
3787 cooding->category_idx.
3788 (detect_coding_system): Remove `nil' coding-system in the result.
3789 (Fupdate_coding_systems_internal): Update all coding-categories.
3790
3791 * coding.h (CODING_CATEGORY_IDX_UTF_8,
3792 CODING_CATEGORY_IDX_UTF_16_BE, CODING_CATEGORY_IDX_UTF_16_LE): New
3793 macros.
3794 (CODING_CATEGORY_IDX_RAW_TEXT, CODING_CATEGORY_IDX_BINARY,
3795 CODING_CATEGORY_IDX_MAX): Adjusted for the above macros.
3796 CODING_CATEGORY_IDX_UTF_16_LE.
3797 (CODING_CATEGORY_MASK_UTF_8, CODING_CATEGORY_MASK_UTF_16_BE,
3798 CODING_CATEGORY_MASK_UTF_16_LE): New macros.
3799 (CODING_CATEGORY_MASK_ANY): Include the above macros.
3800 (CODING_CATEGORY_MASK_UTF_16_BE_LE): New macro.
3801
9994cc69
GM
38022000-03-07 Gerd Moellmann <gerd@gnu.org>
3803
e9b4e5ff
GM
3804 * doc.c (Fdocumentation_property): If value is not a string,
3805 and doesn't refer to etc/DOC, evaluate it to obtain a string.
3806
f7daf1e1
GM
3807 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Don't try to
3808 close the display with XtCloseDisplay. This caused a bus error
3809 on OpenWindows.
3810
9994cc69
GM
3811 * minibuf.c (Fminibuffer_complete): Move point to ZV when input is
3812 complete but not unique.
3813
4336c705
GM
38142000-03-06 Gerd Moellmann <gerd@gnu.org>
3815
18bb0684
GM
3816 * process.c (send_process): Remove local variable `procname' that
3817 might become invalid when a GC happens. Instead, access the
3818 process name slot directly.
3819
4336c705
GM
3820 * xfns.c (x_set_menu_bar_lines_1): Adjust window's orig_top and
3821 orig_height if set.
3822
3823 * frame.c (set_menu_bar_lines_1): Adjust window's orig_top and
3824 orig_height if set.
3825
515d0d0e
EZ
38262000-03-06 Eli Zaretskii <eliz@is.elta.co.il>
3827
3828 * msdos.c (IT_note_mouse_highlight): Return immediately if frame's
3829 glyph matrices have been freed.
3830
100b3cbb
GM
38312000-03-05 Gerd Moellmann <gerd@gnu.org>
3832
50df5e5a 3833 * Makefile.in (tags): Include ../lwlib/TAGS in TAGS.
6178bc23 3834 (bootstrap-temacs): Set LC_ALL to C like for temacs.
50df5e5a
GM
3835
3836 * xfns.c (QCdata): Moved to xdisp.c.
3837
3838 * xdisp.c (QCdata): Moved here from xfns.c.
3839 (syms_of_xdisp): Initialize QCdata.
3840
3841 * frame.h (FRAME_INTERNAL_BORDER_WIDTH) [!HAVE_X_WINDOWS]: Define.
3842
3843 * window.c (coordinates_in_window): Use
3844 FRAME_INTERNAL_BORDER_WIDTH_SAFE instead of
3845 FRAME_INTERNAL_BORDER_WIDTH.
3846
100b3cbb 3847 * xdisp.c (try_window_id): Recompute unchanged information if
4336c705 3848 it is obviously invalid.
100b3cbb
GM
3849
3850 * xterm.c (x_term_init): Create a colormap if not using the
3851 default visual.
3852
3853 * xterm.h (select_visual): Change prototype.
3854
3855 * xfns.c (select_visual): Rewritten. Recognize user-specified
3856 visual classes.
3857 (visual_classes): New variable.
3858
64d739c4
GM
38592000-03-04 Gerd Moellmann <gerd@gnu.org>
3860
3861 * xfns.c (x_defined_color, x_set_mouse_color, lookup_rgb_color)
3862 (lookup_pixel_color, x_laplace, x_build_heuristic_mask)
3863 (png_load): Access colormap of frame using FRAME_X_COLORMAP.
3864 (x_decode_color): Don't handle allocation of white and black
3865 specially.
3866 (x_window) [USE_X_TOOLKIT]: Set XtNvisual, XtNdepth, and
3867 XtNcolormap resources.
3868 (x_window) [!USE_X_TOOLKIT]: Pass colormap to XCreateWindow.
3869 (Fx_create_frame): Initialize color members of x_output structure.
3870 (xpm_load): Pass colormap to XPM lib.
3871
3872 * xfaces.c (x_free_colors): Access colormap of frame using
3873 FRAME_X_COLORMAP. Be paranoid about freeing black and white
3874 when default colormap is used.
3875
3876 * xterm.c (x_term_init): Set Colormap member of x_display_info
3877 structure. Copy colormap if resource `privateColormap' is
3878 specified (PseudoColor only).
3879 (x_setup_relief_color): Access colormap of frame using
3880 FRAME_X_COLORMAP.
3881
3882 * xterm.h (struct x_display_info): Add Colormap member `cmap'.
3883 (FRAME_X_COLORMAP, FRAME_X_VISUAL): New macros.
3884
c3cee013
JR
38852000-03-04 Jason Rumney <jasonr@gnu.org>
3886
3887 * xfaces.c Change many FRAME_X... macros to FRAME_WINDOW... or
3888 other non-platform-specific equivalents.
64d739c4 3889 [WINDOWSNT]: Include w32term.h, fontset.h and define X
c3cee013
JR
3890 specific functions and macros as their w32 equivalents where
3891 non-platform-specifics are not available.
3892 [HAVE_X_WINDOWS]: Change most of these to HAVE_WINDOW_SYSTEM.
3893 (x_create_gc, x_free_gc) [WINDOWSNT]: Add W32 versions.
3894 (clear_font_table) [WINDOWSNT]: Call w32_unload_font.
3895 (frame_update_line_height): Use macros to access f->output_data.
3896 (defined_color): Remove FIXME comments; fixed.
3897 (x_face_list_fonts, prepare_face_for_display): Put X specifics
3898 into #ifdef blocks. Add WINDOWSNT blocks.
3899 (Fx_list_fonts): Use macros for accessing font data.
3900 (set_lface_from_font_name): Different default fonts for X and
3901 WINDOWSNT.
3902 (font_scalable_p) [WINDOWSNT]: Treat wildcard XLFD_AVGWIDTH as
3903 scalable for backward compatibility.
64d739c4 3904 (realize_tty_face) [MSDOS]: Do the same for WINDOWSNT.
c3cee013
JR
3905 (syms_of_xfaces) [WINDOWSNT]: Allow scalable fonts by default.
3906
64d739c4 3907 * emacs.c (main) [HAVE_NTGUI]: Call syms_of_xfaces instead of
c3cee013
JR
3908 syms_of_w32faces.
3909
3910 * makefile.nt (w32faces.obj): Remove.
3911 (xfaces.obj): Add.
3912
807cc41c
JR
39132000-03-03 Jason Rumney <jasonr@gnu.org>
3914
3915 * keyboard.c (make_lispy_event): Call buffer_posn_from_coords with
3916 correct parameters.
3917
0007072a
KR
39182000-03-03 Ken Raeburn <raeburn@gnu.org>
3919
3920 * unexelf.c (PT_LOAD, SHT_*, SHN_*) [__NetBSD__]: Only provide
3921 standard ELF definitions here if the system header does not.
3922
71a6ba55
GM
39232000-03-03 Gerd Moellmann <gerd@gnu.org>
3924
3925 * xterm.c (PER_CHAR_METRIC): Removed.
3926 (x_per_char_metric_1, x_default_char): New functions.
3927 (x_per_char_metric): If font's default char is invalid, return
3928 metrics of a suitably chosen usable default char.
3929 (x_draw_glyph_string_foreground): If font has an invalid default
64d739c4
GM
3930 char, replace occurrences of unprintable chars with a suitably
3931 chosen usable default char.
71a6ba55 3932
900fa1f1
GM
39332000-03-02 Gerd Moellmann <gerd@gnu.org>
3934
42f55fe0
GM
3935 * xterm.c (note_mouse_highlight): Return quickly if frame's
3936 glyph matrices have been freed.
3937
3938 * dispnew.c (free_glyphs): Block input while freeing matrices.
3939
900fa1f1
GM
3940 * xfns.c (x_clear_image, x_kill_gs_process): Use x_free_colors.
3941
3942 * xterm.c (x_alloc_lighter_color, x_setup_relief_color): Use
3943 x_free_colors.
3944
3945 * dispextern.h (x_free_colors): Add prototype.
3946
3947 * xfaces.c (x_free_colors): New function.
3948 (unload_color, free_face_colors): Use it.
3949
2f950292
EZ
39502000-03-02 Eli Zaretskii <eliz@is.elta.co.il>
3951
3952 * msdos.h (FRAME_INTERNAL_BORDER_WIDTH): Define to zero.
3953
3954 * window.c [MSDOS]: Include msdos.h.
3955
54d04320
DL
39562000-03-02 Dave Love <fx@gnu.org>
3957
3958 * m/powerpcle.h, m/sparc.h: Don't set C_OPTIMIZE_SWITCH.
3959
3960 * m/mips-siemens.h, m/news-r6.h, m/news-risc.h, m/tekxd88.h: Don't
3961 set C_OPTIMIZE_SWITCH for gcc.
3962
0ba93ac4
KH
39632000-03-02 Kenichi Handa <handa@etl.go.jp>
3964
3965 * coding.c (coding_save_composition): Be sure to allocate
3966 composition data area in coding even if there's no composition in
3967 the current run.
3968
a2bc11d4
JR
39692000-03-01 Jason Rumney <jasonr@gnu.org>
3970
3971 * w32term.c: Equivalent changes to those made to xterm.c on
3972 2000-02-25 and 2000-02-24.
3973
3974 * w32fns.c: Equivalent changes to those made to xfns.c on
3975 2000-02-25 and 2000-02-21.
3976
3977 * sysdep.c: [WINDOWSNT]: Use sys_read and sys_write to ensure
3978 correct line-end convention is followed.
3979
3980 * w32menu.c [HAVE_BOXES]: Remove #undef.
3981 (single_keymap_panes): Remove code for simulating checkmarks.
3982 (single_menu_item): Remove notbuttons_ptr argument. Callers changed.
3983 Remove code for drawing simulated checkmarks.
3984 (w32_menu_show): make unibyte help string correctly.
3985 (add_menu_item): draw standard Windows checkmarks. Draw radio
3986 buttons as radio buttons if possible.
3987
72d19d75
GM
39882000-03-01 Gerd Moellmann <gerd@gnu.org>
3989
2df636f4
GM
3990 * sysdep.c (start_of_text): Don't define this function for NetBSD
3991 with ELF.
3992
427ec082 3993 * m/pmax.h (START_FILES, CANNOT_DUMP) [__NetBSD__ || __OpenBSD__]:
2df636f4
GM
3994 Don't define.
3995 (UNEXEC) [__NetBSD__ || __OpenBSD__]: Define to unexelf.o.
3996 (LINKER): Don't undef if __NetBSD__ is defined.
3997
3998 * m/mips.h (LINKER) [__NetBSD__ || __OpenBSD__]: Don't define.
3999
4000 * fileio.c [__NetBSD__]: Define `unix'.
4001
72d19d75
GM
4002 * xfns.c (start_busy_cursor): Allow floats for busy-cursor-delay.
4003
ed4d0512
GM
40042000-02-29 Gerd Moellmann <gerd@gnu.org>
4005
50b1039f
GM
4006 * atimer.c (start_atimer): Don't abort when timers are stopped.
4007 (append_atimer_lists): New function.
4008 (cancel_atimer, stop_other_atimers, run_all_atimers): Handle
4009 arbitrary lists of stopped and running atimers.
4010
ed4d0512
GM
4011 * atimer.c (cancel_atimer): Handle canceling an atimer when
4012 some timers are stopped.
4013
4014 * xfns.c (cancel_busy_cursor): Set busy_cursor_atimer to null
4015 after canceling it.
4016
4017 * fns.c (maybe_resize_hash_table): Handle case of new size
4018 coming out as being the same as old size.
4019
387023ee
JR
40202000-02-27 Jason Rumney <jasonr@gnu.org>
4021
4022 * makefile.nt: Add atimer.h to dependencies.
4023 * w32.c (init_environment): Set Vw32_num_mouse_buttons here.
4024 * w32console.c: Only disable window system features for dispextern.h
4025 (initialize_w32_display): Build a display info for the console.
4026 * w32faces.c (tty_defined_color): Apply xfaces.c change from 02-17.
4027 * w32fns.c (w32_wnd_proc) [WM_LBUTTON_DOWN, WM_RBUTTON_DOWN,
4028 WM_LBUTTON_UP, WM_RBUTTON_UP]: Do not treat 4 or more button mice
4029 as 2 button mice.
4030 * w32gui.h (struct W32FontStruct): Revert last change after change
4031 to xdisp.c.
4032 * w32menu.c (single_submenu): Set up help string.
4033 [!HAVE_MULTILINGUAL_MENU]: Don't overwrite item_name with descrip.
4034 (w32_dialog_show): Set up help string.
4035 * w32term.c (w32_display_info_for_display): Remove unused function.
4036 (w32_draw_bitmap): Use pre-built bitmaps.
4037 (w32_initialize_display_info): New function to initialize parts of
4038 display info that are common to both GUI and console frames.
4039 (w32_term_init): Use w32_initialize_display_info. Do not set
4040 Vw32_num_mouse_buttons here, as it is not called for console
4041 frames. Build bitmaps for indicating truncated lines etc.
4042 (x_delete_display): Destroy pre-built bitmaps.
4043 * xdisp.c (handle_single_display_prop): Use FONT_HEIGHT macro.
4044 (echo_area_display): Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM.
4045
4516715a
DL
40462000-02-27 Dave Love <fx@gnu.org>
4047
4048 * lisp.h: Add a bunch of prototypes.
4049
171ca836
KH
40502000-02-26 Kenichi Handa <handa@etl.go.jp>
4051
4052 * keyboard.c (read_char): Set `usec' correctly.
4053
4013921d
KH
40542000-02-25 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
4055
4056 * ccl.c (ccl_driver) [CCL_MapMultiple]: When the mapped value is
4057 `lambda', set reg[RRR] to the map index.
4058 (ccl_driver) [CCL_MapSingle]: When the mapped value is found, set
4059 reg[RRR] to 0. Otherwise, set it to -1.
4060
9244a058
GM
40612000-02-25 Gerd Moellmann <gerd@gnu.org>
4062
2df636f4 4063 * emacs.c (main): Remove code snippet commented out with `//'.
9244a058 4064
18e21ce8 40652000-02-25 Richard M. Stallman <rms@gnu.org>
427ec082 4066
f43d79c1
GM
4067 * fileio.c (Ffile_symlink_p): If result starts with a `/'
4068 and contains a `:', prepend `/:'.
4069
4070 * window.c (select_window_1): If selected_window is nil,
4071 don't "swap out" the buffer's point.
4072 (Fset_window_configuration): Set selected_window to nil
4073 before calling Fselect_window.
4074 (unshow_buffer): Don't set point in buffer from window's point
4075 if another more recently selected window also shows the buffer.
4076
bed0c171
GM
40772000-02-25 Gerd Moellmann <gerd@gnu.org>
4078
449c3c52
GM
4079 * keyboard.c (recursive_edit_1): Cancel busy-cursor.
4080
f5b58615
GM
4081 * xfns.c (inhibit_busy_cursor, busy_count): Removed.
4082 (Fx_show_busy_cursor, Fx_hide_busy_cursor): Removed.
4083 (busy_cursor_atimer, busy_cursor_shown_p, Vbusy_cursor_delay): New
4084 variables.
4085 (DEFAULT_BUSY_CURSOR_DELAY): New define.
4086 (start_busy_cursor, cancel_busy_cursor, show_busy_cursor)
4087 (hide_busy_cursor): New functions.
4088 (syms_of_xfns): DEFVAR_LISP Vbusy_cursor_delay.
4089
4090 * minibuf.c (read_minibuf): Cancel busy-cursor.
4091
4092 * keyboard.c (command_loop_1): Call start_busy_cursor before
4093 Fcommand_execute and cancel_busy_cursor after it.
4094 (timer_check): Remove busy-cursor code.
4095 (Fread_key_sequence, Fread_key_sequence_vector): Start/cancel busy
4096 cursor timer.
4097
4098 * process.c (wait_reading_process_input): Remove busy-cursor code.
4099
4100 * eval.c (Fsignal): Call cancel_busy_cursor instead of
4101 Fx_hide_busy_cursor.
4102
4103 * dispextern.h (Fx_show_busy_cursor, Fx_hide_busy_cursor):
4104 Remove prototyoes.
4105 (start_busy_cursor, cancel_busy_cursor): Add prototypes.
4106
4107 * lisp.h (Fx_hide_busy_cursor): Remove prototype.
4108
4109 * xterm.c (XTread_socket): Remove busy-cursor code.
4110
4eb8436f
GM
4111 * dispnew.c (flush_stdout) [GLYPH_DEBUG]: New function.
4112 (build_frame_matrix_from_leaf_window): Put code handling
4113 glyph row's not being a slice of a frame row in #if 0.
4114 (sync_window_with_frame_matrix_rows): New function.
4115 (frame_row_to_window): New function.
4116 (mirror_line_dance): Handle copies between windows.
4117
3cb65b0e
GM
4118 * lread.c (Fload): Use `xfree' instead of `free'.
4119 (init_obarray): Use `xmalloc' instead of `malloc'.
4120
bed0c171
GM
4121 * window.c (Fset_window_buffer): Set WINDOW to the window
4122 after decoding.
2add4349
GM
4123 (coordinates_in_window): Take frame's internal border width
4124 into account.
bed0c171 4125
42088c12
GM
41262000-02-24 Gerd Moellmann <gerd@gnu.org>
4127
4128 * xterm.c (x_display_and_set_cursor): Display cursor of
4129 non-selected windows depending on the setting of
4130 cursor_in_non_selected_windows.
4131
4132 * xdisp.c (cursor_in_non_selected_windows): New variable.
4133 (syms_of_xdisp): DEFVAR_BOOL it.
4134
d1e103b2
GM
41352000-02-23 Gerd Moellmann <gerd@gnu.org>
4136
723e779c
GM
4137 * data.c (Fstring_to_number): If number is greater than what
4138 fits into an integer, return a float.
4139
d1e103b2
GM
4140 * eval.c (specbind): Remove references to
4141 keyword_symbols_constant_flag.
4142
4143 * data.c (keyword_symbols_constant_flag): Removed.
4144 (Fmakunbound, set_internal, syms_of_data): Remove references to
4145 keyword_symbols_constant_flag.
4146
4147 * bytecode.c (Fbyte_code): Remove keyword_symbols_constant_flag.
4148
214f877f
KH
41492000-02-23 Kenichi Handa <handa@etl.go.jp>
4150
4151 * syntax.c (multibyte_syntax_as_symbol): New variable.
4152 (syms_of_syntax): Declare it as a Lisp variable.
4153 (SYNTAX_WITH_MULTIBYTE_CHECK): New macro.
4154 (scan_lists): If both sexpflag and multibyte_syntax_as_symbol are
4155 nonzero, treat all multibyte characters as symbol.
42088c12 4156 (init_syntax_once): Give syntax `word' to all multibyte
214f877f
KH
4157 characters.
4158
130adcb7
EZ
41592000-02-22 Eli Zaretskii <eliz@is.elta.co.il>
4160
3cb65b0e 4161 * frame.c (Fdelete_frame): Don't let echo_area_window remain on
d7d0dac0 4162 a deleted frame.
130adcb7 4163
17cbbf95
GM
41642000-02-21 Gerd Moellmann <gerd@gnu.org>
4165
4166 * frame.c (Fmouse_position): GCPRO retval instead of x and y.
4167
4168 * xfns.c (x_window_to_frame, x_any_window_to_frame)
4169 (x_non_menubar_window_to_frame): Check the busy-cursor window.
4170
beb0bc36
DL
41712000-02-21 Dave Love <fx@gnu.org>
4172
4173 * frame.c (Vmouse_position_function): New variable.
4174 (Fmouse_position): Use it.
4175 (syms_of_frame): Install it.
4176
4177 * charset.c (find_charset_in_str): Fix use of `c' instead of `c1'.
4178
1d92afcd
GM
41792000-02-20 Gerd Moellmann <gerd@gnu.org>
4180
4181 * fileio.c (Finsert_file_contents): Unbind the binding of
4182 standard-output done by temp_output_buffer_setup.
329eed9f
GM
4183
4184 * eval.c (funcall_lambda): Don't bind Qmocklisp_arguments unless
4185 Vmocklisp_arguments is nil. Inline Fcar and Fcdr.
4186 (specbind, unbind_to): Handle most common case of non-constant
4187 symbol with trivial value specially.
4188
4189 * bytecode.c (Fbyte_code) <Bvarset>: Inline most common case.
4190
18e21ce8 41912000-02-20 Richard M. Stallman <rms@gnu.org>
2d06696f
RS
4192
4193 * data.c (Fmake_variable_buffer_local): Doc fix.
4194 Init found_for_buffer to 0.
4195 (Fmake_variable_frame_local): If the variable has already
4196 been buffer-local, set the check_frame field.
4197
1d4311c3
EZ
41982000-02-20 Eli Zaretskii <eliz@is.elta.co.il>
4199
4200 * msdos.c (IT_write_glyphs): Allocate a larger screen_buf as data
4201 produced for CODING_MODE_LAST_BLOCK requires.
4202
2dc95ddd
DL
42032000-02-18 Dave Love <fx@gnu.org>
4204
4205 * keyboard.c (echo_keystrokes): Remove declaration.
4206 (Vecho_keystrokes) New variable.
4207 (read_char, record_menu_key, read_key_sequence): Use it to allow
4208 use of float value.
4209 (syms_of_keyboard): Change Vecho_keystrokes declaration.
4210
4211 * lread.c: Undef feature selection macros before defining.
4212
f0930f35
GM
42132000-02-18 Gerd Moellmann <gerd@gnu.org>
4214
4215 * data.c (let_shadows_buffer_binding_p): Ignore specbindings
4216 for symbols other than the symbol in question.
4217
e3d4de90
DL
42182000-02-17 Dave Love <fx@gnu.org>
4219
4220 * s/sol2.h (C_DEBUG_SWITCH): Define to allow optimization.
4221
0b378936
GM
42222000-02-17 Gerd Moellmann <gerd@gnu.org>
4223
d621caf7
GM
4224 * emacs.c (main): Use #if GC_MARK_STACK instead of #ifdef.
4225
0b378936
GM
4226 * alloc.c (enum mem_type): Compile unconditionally.
4227
3b451f74
EZ
42282000-02-17 Eli Zaretskii <eliz@is.elta.co.il>
4229
4230 * xfaces.c (tty_defined_color): Don't return faulire indication
4231 for unspecified-fg and unspecified-bg pseudo-colors.
4232
10689a01
GM
42332000-02-17 Gerd Moellmann <gerd@gnu.org>
4234
1216f5e4
GM
4235 * alloc.c (mark_object): Don't mark symbol names in pure space.
4236 (gc_sweep): Don't unmark symbol names in pure space.
4237
4238 * lisp.h (GC_USE_GCPROS_AS_BEFORE, GC_MAKE_GCPROS_NOOPS)
4239 (GC_MARK_STACK_CHECK_GCPROS, GC_USE_GCPROS_CHECK_ZOMBIES)
4240 [GC_MARK_STACK]: New defines.
427ec082 4241 (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5, UNGCPRO)
1216f5e4
GM
4242 [GC_MARK_STACK == GC_MAKE_GCPROS_NOOPS]: Define as no-ops.
4243
4244 * emacs.c (main) [GC_MARK_STACK]: Initialize stack_base.
4245
4246 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use
4247 allocate_buffer instead of xmalloc.
4248
4249 * alloc.c (toplevel): Include setjmp.h.
4250 (PURE_POINTER_P): New define.
4251 (enum mem_type) [GC_MARK_STACK]: New enumeration.
4252 (Vdead) [GC_MARK_STACK]: New variable.
4253 (lisp_malloc): Add parameter TYPE, call mem_insert if
4254 GC_MARK_STACK is defined.
4255 (allocate_buffer): New function.
427ec082 4256 (lisp_free) [GC_MARK_STACK]: Call mem_delete.
1216f5e4
GM
4257 (free_float) [GC_MARK_STACK]: Set type to Vdead.
4258 (free_cons) [GC_MARK_STACK]: Set car to Vdead.
4259 (stack_base, mem_root, mem_z) [GC_MARK_STACK]: New variables.
4260 (MEM_NIL) [GC_MARK_STACK]: New define.
4261 (struct mem_node) [GC_MARK_STACK]: New structure.
4262 (mem_init, mem_find, mem_insert, mem_delete, mem_insert_fixup)
4263 (mem_delete_fixup, mem_rotate_left, mem_rotate_right)
4264 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
4265 (live_misc_p, live_vector_p, live_buffer_p, mark_memory)
4266 (mark_stack) [GC_MARK_STACK]: New functions.
4267 (Fgarbage_collect) [GC_MARK_STACK]: Call mark_stack.
4268 (clear_marks): Removed.
4269 (gc_sweep): Set free conses' car, free floats' type, free
4270 symbols' function to Vdead. Use lisp_free to free buffers.
4271 (init_alloc_once): Initialize Vdead.
4272 (survives_gc_p): Return non-zero for pure objects.
4273
4274 * alloc.c: Add comments throughout the file.
4275
2503c8b1
GM
4276 * atimer.c (stop_other_atimers): Don't call cancel_atimer because
4277 that unblocks alarms.
4278
8389e1e2
GM
4279 * alloc.c, bytecode.c, data.c, dispnew.c, ecrt0.c, editfns.c,
4280 emacs.c, floatfns.c, fns.c, lread.c, print.c, config.in, lisp.h,
4281 Makefile.in: Remove `LISP_FLOAT_TYPE' and `standalone'.
4282
10689a01 4283 * frame.c (make_frame): Set frame initiallly to `garbaged'.
427ec082 4284
bfc17d18
KH
42852000-02-17 Kenichi Handa <handa@etl.go.jp>
4286
4a09dee0
KH
4287 * xdisp.c (decode_mode_spec_coding): Delete superfluous code to
4288 avoid infinite error signaling. Allocate sufficient memory for
4289 eol_str in the case that eoltype is Lisp_Int.
bfc17d18 4290
2b927d02
SM
42912000-02-17 Stefan Monnier <monnier@cs.yale.edu>
4292
4293 * syntax.c (Fforward_comment): Undo the previous change, since cc-mode
4294 depends on the previous behavior.
4295
b49cb764
GM
42962000-02-16 Gerd Moellmann <gerd@gnu.org>
4297
4298 * sysdep.c (vfork) [!HAVE_VFORK]: Removed.
4299
99e95407
GM
43002000-02-15 Gerd Moellmann <gerd@gnu.org>
4301
4302 * s/freebsd.h (BROKEN_PTY_READ_AFTER_EAGAIN): Define.
4303
4304 * process.c (send_process) [BROKEN_PTY_READ_AFTER_EAGAIN]:
b49cb764 4305 Workaround for FreeBSD bug. Clear output queue after EAGAIN in
99e95407
GM
4306 write(2).
4307
6ffd3cf7
RS
43082000-02-15 Richard M. Stallman <rms@gnu.org>
4309
4310 * data.c (set_internal): Don't make variable buffer-local
4311 if within a let-binding for the same buffer.
4312 (let_shadows_buffer_binding_p): New function.
4313
4314 * eval.c (specbind): For buffer-local value,
4315 record the current buffer also.
4316 (unbind_to): Cope with that change.
4317
cad53475
GM
43182000-02-15 Gerd Moellmann <gerd@gnu.org>
4319
4320 * window.c (Fsave_window_excursion): Doc fix.
4321
1aa963c8
SM
43222000-02-15 Stefan Monnier <monnier@cs.yale.edu>
4323
4324 * syntax.c (back_comment): Make sure we only consider comment-starters
4325 of the relevant style and return -1 in case of a failure to find the
4326 beginning of the comment.
4327 (Fforward_comment): If back_comment fails, go back to the position just
4328 after the comment-end.
4329 (scan_lists): Add comment describing a very minor bug.
4330
b9b84fd3
SM
43312000-02-14 Stefan Monnier <monnier@cs.yale.edu>
4332
4333 * minibuf.c (Ftry_completion, Fall_completions): Add a reference to
4334 `completion-regexp-list' in the docstring.
4335
3a28db80
DL
43362000-02-14 Dave Love <fx@gnu.org>
4337
4338 * xfaces.c (tty_defined_color): Declare color_idx unsigned long.
4339
fb4a568d
SM
43402000-02-14 Stefan Monnier <monnier@cs.yale.edu>
4341
4342 * regex.h (RE_SYNTAX_EMACS): Add RE_CHAR_CLASSES and RE_INTERVALS
4343 to Emacs' syntax. Also fix the comment about set/not-set meanings
4344 since Emacs syntax is not the value 0 any more.
4345 * search.c (compile_pattern_1): Remove RE_CHAR_CLASSES from the syntax
4346 since it's now part of RE_SYNTAX_EMACS.
4347
1063ebb5
DL
43482000-02-12 Dave Love <fx@gnu.org>
4349
4350 * frame.h (SELECTED_FRAME): Use NULL, not 0 to avoid warnings on
4351 Alpha.
4352
fb07a302
GM
43532000-02-12 Gerd Moellmann <gerd@gnu.org>
4354
4355 * xdisp.c (syms_of_xdisp): Doc fix for scroll-conservatively.
4356
aaf2320c
DL
43572000-02-12 Dave Love <fx@gnu.org>
4358
4359 * s/aix3-2.h, s/osf-1.h: Define C_DEBUG_SWITCH for non-gcc.
4360
4361 * s/ux4800.h, s/umips.h, s/umax.h, s/sol2.h, s/sco5.h, s/rtu.h:
fb07a302
GM
4362 * s/ptx4.h, s/umax.h, s/dgux.h, s/bsd4-2.h, s/bsd4-3.h:
4363 * s/hpux.h: Don't define HAVE_VFORK.
aaf2320c
DL
4364
4365 * s/gnu-linux.h: Don't define HAVE_VFORK or HAVE_SYS_SIGLIST.
4366
4367 * s/nextstep.h: Don't define HAVE_ALLOCA.
4368
4369 * config.in: Add vfork bits.
4370
eedf8bde
GM
43712000-02-12 Gerd Moellmann <gerd@gnu.org>
4372
4373 * process.c (Fopen_network_stream) [POLL_FOR_INPUT]: Register
4374 unwind function to undo the effect of stopping atimers.
4375
4376 * keyboard.c (bind_polling_period): Stop all timers except
4377 poll_timer.
4378
4379 * atimer.c (stopped_atimers): New variable.
4380 (stop_other_atimers, run_all_atimers, unwind_stop_other_atimers):
4381 New functions.
4382
4383 * atimer.h (stop_other_atimers, run_all_atimers)
4384 (unwind_stop_other_atimers): Add function prototypes.
427ec082 4385
eedf8bde
GM
4386 * s/hpux10.h (HAVE_XRMSETDATABASE): Define if not already defined.
4387
8476c2f8
KR
43882000-02-11 Ken Raeburn <raeburn@gnu.org>
4389
4390 * Makefile.in (LIBX): Link in tiff library before jpeg, since tiff
4391 library may depend on jpeg.
4392 (atimer.o): Depends on atimer.c.
4393
0e85e4a3
KH
43942000-02-11 Kenichi Handa <handa@etl.go.jp>
4395
4396 * insdel.c (del_range_1): Call update_compositions.
4397 (del_range_both): Call update_compositions just once..
4398
97fa0cc8
DL
43992000-02-10 Dave Love <fx@gnu.org>
4400
4401 * xfns.c (create_frame_xic): Fix initialization of automatic
4402 aggregates for pcc.
4403
25566a3c
KH
44042000-02-09 Kenichi Handa <handa@etl.go.jp>
4405
4406 * ccl.c (CCL_MAKE_CHAR): New macro.
4407 (ccl_driver) <CCL_TranslateCharacter>: Check the validity of
4408 registers by CCL_MAKE_CHAR before calling translate_char.
4409 <CCL_TranslateCharacterConstTbl> Likewise.
4410
69da54ba
DL
44112000-02-08 Dave Love <fx@gnu.org>
4412
4413 * lread.c (__EXTENSIONS__): Define.
4414
f7136ee8
GM
44152000-02-08 Gerd Moellmann <gerd@gnu.org>
4416
4417 * puresize.h (BASE_PURESIZE): Increase to 650000.
4418
7768790b
EZ
44192000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
4420
4421 * msdos.c (XMenuActivate): Turn off the cursor after displaying
4422 the help message.
4423
38fd211b
EZ
44242000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
4425
4426 * s/msdos.h (INTERNAL_TERMINAL): Add capabilities se, so, us, ue,
4427 md, mh, mb, mr, and me to the fake termcap entry.
4428
66e4690f
KR
44292000-02-06 Ken Raeburn <raeburn@gnu.org>
4430
4431 * sound.c (sound_cleanup): Don't call device close routine if the
4432 function pointer is null.
4433
a75dfea0
AI
44342000-02-06 Andrew Innes <andrewi@gnu.org>
4435
4436 * dispextern.h: Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM,
4437 around image definitions and prototypes.
4438 (gamma_correct) [WINDOWSNT]: New prototype.
4439
4440 * w32term.c (x_make_frame_visible): Replace call to
4441 input_poll_signal with poll_for_input.
4442
4443 * window.c [WINDOWSNT]: Include w32term.h.
4444
4445 * xdisp.c [WINDOWSNT]: Include w32term.h.
4446
4447 * makefile.nt: Add dependencies on w32gui.h.
4448 (OBJ1): Include atimer.obj.
4449 ($(BLD)\atimer.obj): New dependency rule.
4450
4451 * w32.c (sigmask): New function (does nothing).
4452 (sigunblock): Ditto.
4453
4454 * frame.c [WINDOWSNT]: Include w32term.h.
4455
4456 * w32gui.h (struct W32FontStruct): Add ascent and descent slots.
4457
4458 * lread.c (syms_of_lread): Fix literal newlines.
4459
4460 * emacs.c (USAGE): Split into USAGE1 and USAGE2, to work-around
4461 the string constant limit (2048 bytes) in MSVC.
4462 (main): Ditto.
4463
59ddecde
GM
44642000-02-05 INOUE Seiichiro <inoue@ainet.or.jp>
4465
4466 * xterm.c (x_display_and_set_cursor) [HAVE_X_I18N]: Set pre-edit
4467 area.
4468 (x_display_cursor) [HAVE_X_I18N]: Don't set it here.
4469 (XTread_socket) [HAVE_X_I18N]: <KeyPress, KeyRelease>: Don't
4470 dispatch the event.
4471
07590973
DL
44722000-02-04 Dave Love <fx@gnu.org>
4473
4474 * fileio.c: Remove some unused vars.
4475 (_GNU_SOURCE): Define (for euidaccess).
4476
4477 * lread.c (_XOPEN_SOURCE): Declare (for ftello).
4478
4479 * minibuf.c (read_minibuf_noninteractive): Remove undeclared
4480 gcpro1, gcpro2.
4481 (read_minibuf): Deal with allow_props correctly.
4482
649351f9
EZ
44832000-02-03 Eli Zaretskii <eliz@is.elta.co.il>
4484
4485 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Enlarge to 60000.
4486
66e4690f 44872000-02-03 Ken Raeburn <raeburn@gnu.org>
f1b9c7c1
KR
4488
4489 * search.c (compile_pattern): If a cache entry has a nil regexp,
4490 fill in that entry instead of clobbering a previously cached
4491 string regexp.
4492
66e4690f 44932000-02-02 Ken Raeburn <raeburn@gnu.org>
15c9cf81
KR
4494
4495 * puresize.h (BASE_PURESIZE): Increase to 610000.
4496
d240a249
GM
44972000-02-02 Gerd Moellmann <gerd@gnu.org>
4498
4499 * frame.c (Fframe_parameters): Add GCPRO because tty_color_name
4500 can GC.
4501
ca91fb26
KH
45022000-02-02 Kenichi Handa <handa@etl.go.jp>
4503
25660570
KH
4504 * ccl.c (ccl_driver) <CCL_WriteExprRegister>: Set jump_address
4505 instead of incrementing ic directly.
4506 <CCL_WriteExprConst> Likewise.
4507 <ccl_set_expr>: Set ic to jump_address.
4508
ca91fb26
KH
4509 * fileio.c (e_write): Fix the handling of
4510 CODING_FINISH_INSUFFICIENT_SRC.
4511
2ede9689
DL
45122000-02-01 Dave Love <fx@gnu.org>
4513
4514 * editfns.c (Fpropertize): Doc fix.
4515
4516 * process.c (Fstart_process): Doc fix.
4517
4518 * eval.c: Fix various doc strings not to duplicate information
4519 from help-manyarg-func-alist.
4520
4521 * window.c (Fset_window_margins): Don't make interactive. Doc
4522 fix.
4523
4524 * doc.c (Vhelp_manyarg_func_alist): New variable.
4525 (Fdocumentation): Use it.
4526 (syms_of_doc): Define it.
4527
b6680a0e
GM
45282000-01-31 Gerd Moellmann <gerd@gnu.org>
4529
2cb750ba
GM
4530 * xterm.c (xim_open_dpy): Remove unused local variable.
4531
74e9213b
GM
4532 * emacs.c (USAGE): Use term `display options' instead of `X
4533 options'.
4534
4535 * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: New function.
4536 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
4537
b6680a0e
GM
4538 * fns.c (sweep_weak_table): New function.
4539 (sweep_weak_hash_tables): Use it. Keep on marking until there
4540 is no more change.
4541
994c5afe
GM
45422000-01-30 Gerd Moellmann <gerd@gnu.org>
4543
4544 * xterm.c (x_delete_display): Update next_noop_dpyinfo to ensure
4545 that XTread_socket does not crash by trying to call XNoOp on a
4546 closed display.
427ec082 4547
f00276e3
JR
45482000-01-30 Jason Rumney <jasonr@gnu.org>
4549
4550 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
4551 Change selected_frame to SELECTED_FRAME ().
4552 (w32_console_mouse_position): Remove #ifndef MULE from around
4553 `insist' parameter.
4554
4555 * makefile.nt: Remove dosfns.obj.
4556
4557 * term.c (term_init) [WINDOWSNT]: Initialize TN_max_colors.
4558
4559 * w32fns.c (w32_defined_color): Check for valid frame before
4560 applying gamma correction. Eliminate dependency on frame elsewhere.
4561 (w32_load_system_font): Switch FIXED_PITCH and VARIABLE_PITCH.
4562 (w32_to_x_font): Use resx and resy not height_in and width_in.
4563 (x_to_w32_font): Doc fix.
4564 (xlfd_strip_height): New function to strip and return font height.
4565 (w32_font_match): Compare height separately from rest of xlfd
4566 spec, using xlfd_strip_height.
4567
4568 * w32term.c (w32_term_init): Swap resx and height_in, resy and
4569 width_in. Use w32_defined_color in place of defined_color.
4570
4571 * w32faces.c: Merge more of DOS and X specifics in preparation for
4572 merge with xfaces.c.
4573 (defined_color): Remove FIXME comment.
4574 (tty_color_name): Provide w32-specific function.
4575 (realize_tty_face): Handle FACE_TTY_DEFAULT*_COLOR specially.
4576
4577 * w32console.c (turn_on_face, turn_off_face): Removed.
4578 (w32_face_attributes): New function.
4579 (Global_variables): Reduce scope where possible.
4580 (clear_frame, ins_del_lines, scroll_line): Use char_attr_normal as
4581 fill attribute.
4582 (hl_mode): Don't modify text attributes.
4583 (write_glyphs): Don't do anything if len <= 0. Use
4584 w32_face_attributes to get attributes for drawing. Write
4585 terminating codes using char_attr_normal.
4586 (reset_terminal_modes, set_terminal_modes): Turn off highlight.
4587 (update_begin, update_end): Likewise.
4588 (vga_stdcolor_name): New function.
4589 (initialize_w32_display): Remove char_attr_reverse and char_attr.
4590 (Fset_screen_color): Remove char_attr_reverse.
4591
b08e8bb2
GM
45922000-01-29 Gerd Moellmann <gerd@gnu.org>
4593
4594 * xfns.c (xic_set_preeditarea): Take window parameter and
4595 window-relative pixel-positions.
4596
4597 * xterm.c (x_display_cursor): Set XIC pre-edit area only if window
4598 is its frame's selected window.
4599 (xim_instantiate_callback): Likewise.
4600
4601 * xfns.c (x_create_im): Removed.
4602 (DEFAULT_STYLE, DEFAULT_FONT): Removed.
4603 (supported_xim_styles): Renamed from supported_styles.
4604 (best_xim_style): Renamed from best_style.
4605 (create_frame_xic): Renamed from xic_create_frame.
4606 (free_frame_xic): Renamed from xic_destroy_frame.
427ec082 4607
b08e8bb2
GM
46082000-01-29 INOUE Seiichiro <inoue@ainet.or.jp>
4609
4610 * xterm.c (XTread_socket) [HAVE_X_I18N]: If event is for none of
4611 our frames, call XFilterEvent with 2nd parameter `None'.
4612 (XTread_socket) <KeyPress> [HAVE_X_I18N]: Handle XmbLookupString
4613 returning XBufferOverflow.
4614 (XTread_socket) <ConfigureNotify> [HAVE_X_I18N]: Set XIC status
4615 area.
4616 (x_display_cursor) [HAVE_X_I18N]: Set XIC pre-edit area.
4617 (x_new_fontset) [HAVE_X_I18N]: Create XIC status area fontset.
4618 (xim_destroy_callback, xim_open_dpy, xim_instantiate_callback)
4619 (xim_initialize, xim_close)
4620 [HAVE_X_I18N && HAVE_X11R6]: New functions.
4621 (x_destroy_window) [HAVE_X_I18N]: Call xic_destroy_frame.
4622 (x_term_init) [HAVE_X_I18N]: Call xim_initialize.
4623 (x_delete_display) [HAVE_X_I18N]: Call xim_close.
4624
4625 * xterm.h (struct x_display_info) [HAVE_X_I18N]: Add members `xim'
4626 and `xim_styles'.
4627 (struct x_output) [HAVE_X_I18N]: Remove member `xim', add
4628 `xic_style' and `xic_xfs'.
4629 (FRAME_MENUBAR_HEIGHT, FRAME_X_XIM, FRAME_X_XIM_STYLES)
4630 (FRAME_XIC_STYLE, FRAME_XIC_FONTSET): New macros.
4631 (FRAME_XIM): Removed.
4632
4633 * xfns.c (supported_styles): New variable.
4634 (DEFAULT_STYLE, DEFAULT_FONT): New macros
4635 (xic_create_xfontset, best_style, xic_create_frame)
4636 (xic_destroy_frame, xic_set_preeditarea, xic_set_statusarea)
4637 (xic_set_xfontset): New functions.
4638
142e109c
DL
46392000-01-28 Dave Love <fx@gnu.org>
4640
4641 * s/irix6-5.h: Revert last change after change to irix5-0.h.
4642
4643 * m/iris4d.h (C_SWITCH_MACHINE): Don't use -G0.
4644
b02786f9
GM
46452000-01-28 Gerd Moellmann <gerd@gnu.org>
4646
d060bc9f
GM
4647 * buffer.c (Fother_buffer): Don't call Fset_buffer_major_mode
4648 for *scratch* if it already existed.
4649
b02786f9
GM
4650 * emacs.c (USAGE): New macro.
4651 (main): Use it to display usage information.
4652
2c52d7e4
EZ
46532000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
4654
4655 Support for the menu-help feature:
4656
4657 * msdos.h: Change prototypes of XMenuAddSelection and
4658 XMenuActivate.
4659
4660 * msdos.c (IT_clear_end_of_line): Print the extent of the cleared
4661 part of the line to the termscript file.
4662 (IT_clear_to_end): Clear the entire line, not just its beginning.
4663 (menu_help_message, prev_menu_help_message): New variables.
4664 (IT_menu_make_room): Make room for the help_text member.
4665 (IT_menu_display): New argument disp_help; all callers changed.
4666 If disp_help is non-zero, store the help text of the active menu
4667 item in menu_help_message.
4668 (XMenuAddPane): Initialize the help_text member to NULL.
4669 (XMenuAddSelection): New argument help_text. Store it in the
4670 XMenu structure.
4671 (XMenuActivate): New argument help_callback. If the value of
4672 menu_help_message has changed since the last time, display the
4673 menu help message text while waiting for the mouse to move. Clear
4674 the echo area before exiting.
4675 (XMenuDestroy): Free the help_text member.
4676
ffe0bcd1
GM
46772000-01-27 Gerd Moellmann <gerd@gnu.org>
4678
4679 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT]: Pass help to
4680 XMenuAddSelection. Pass help callback to XMenuActivate.
4681 (menu_help_callback) [!USE_X_TOOLKIT]: New function.
4682
50dbd23f
EZ
46832000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
4684
4685 * atimer.c (start_atimer) [!HAVE_SETITIMER]: Use EMACS_SET_SECS
4686 and EMACS_SET_USECS.
4687
f5941bf8
GM
46882000-01-26 Dave Love <fx@gnu.org>
4689
6c67ddee
DL
4690 * editfns.c (Fchar_after, Fchar_before): Doc fix.
4691
f5941bf8
GM
4692 * bytecode.c (Fbyte_code): Use {BEFORE,AFTER}_POTENTIAL_GC where
4693 an error may be signalled.
4694
9e49c990
GM
46952000-01-26 Gerd Moellmann <gerd@gnu.org>
4696
fc3cb460
GM
4697 * s/irix6-5.h [__GNUC__ && __GNUC_MINOR__ >= 95]: Undef
4698 LD_SWITCH_SYSTEM inherited from irix5-0.h.
4699
9e49c990
GM
4700 * bytecode.c (Fbyte_code) [BYTE_CODE_SAFE]: Fix typo.
4701
d0c037d8
GM
47022000-01-25 Gerd Moellmann <gerd@gnu.org>
4703
4704 * charset.c (Fstring): If there is a multibyte char among
4705 the args, always return a multibyte string.
4706
e12489f9
GM
47072000-01-25 Gerd Moellmann <gerd@gnu.org>
4708
4709 * sysdep.c (sys_select): Turn atimers off and on instead of
4710 recording and restoring old alarm handler
4711
4712 * process.c (toplevel): Include atimer.h.
4713 (create_process_1): Rewritten.
4714 (create_process): Use atimers instead of alarm.
4715 (wait_reading_process_input) [hpux]: Turn atimers off instead
4716 of turning off SIGALRM.
4717 (wait_reading_process_input): Turn off atimers instead off
4718 calling stop_polling.
4719
4720 * emacs.c (main): Call init_atimer.
4721
4722 * keyboard.c (toplevel): Include systime.h and atimer.h.
4723 (polling_for_input): Removed because unused.
4724 (input_poll_signal) [POLL_FOR_INPUT]: Removed.
4725 (poll_timer): New variable.
4726 (poll_for_input, poll_for_input_1): New functions.
4727 (start_polling, stop_polling): Rewritten.
4728
4729 * keyboard.h (polling_for_input): Removed.
427ec082 4730
e12489f9
GM
4731 * atimer.h, atimer.c: New files.
4732
4733 * Makefile.in (obj): Add atimer.o.
4734 (atimer.o): New target.
4735
4736 * blockinput.h (pending_atimers): Add extern declaration.
4737 (UNBLOCK_INPUT): Rewritten. Handle pending atimers.
4738
4739 * lisp.h (popup_activated_flag): Add extern declaration.
4740
4741 * xmenu.c (popup_activated_flag): Make externally visible.
4742 (popup_activate_callback) [USE_MOTIF]: Increment
4743 popup_activated_flag.
4744 (popup_deactivate_callback) [USE_MOTIF]: Decrement it.
4745
4746 * xterm.c (toplevel): Include atimer.h.
4747 (toolkit_scroll_bar_interaction): New variable.
4748 (Fxt_process_timeouts): Removed.
4749 (x_process_timeouts): New function.
4750 (xt_action_hook): Clear toolkit_scroll_bar_interaction.
4751 (x_send_scroll_bar_event): Set toolkit_scroll_bar_interaction.
4752 (x_make_frame_visible): Call poll_for_input_1 instead of
4753 input_poll_signal. Don't call alarm.
4754 (x_initialize): Install timer calling x_process_timeouts.
427ec082 4755
1e5279b9
DL
47562000-01-24 Dave Love <fx@gnu.org>
4757
6c67ddee 4758 * s/irix5-0.h: Don't set LD_SWITCH_SYSTEM -- we use unexelf now.
1e5279b9
DL
4759 Don't use -cckr -- apparently not now necessary.
4760
edf6aeb8
EZ
47612000-01-24 Eli Zaretskii <eliz@is.elta.co.il>
4762
4763 * msdos.c (IT_menu_display): Truncate long menu lines at the right
4764 screen boundary.
4765
9badad41
JR
47662000-01-23 Jason Rumney <jasonr@gnu.org>
4767
4768 * w32fns.c (w32_defined_color): Apply gamma correction before
4769 trying to map to the palette.
4770 (w32_wnd_proc) [WM_ERASE_BACKGROUND]: Pass device context of frame
4771 to w32_clear_rect.
4772
4773 * w32term.c (w32_fill_rect): Do not try to deal with NULL hdc
4774 here. Callers changed to always pass real device context.
4775 (w32_draw_bitmap): Likewise.
4776 (w32_get_glyph_overhangs): Likewise.
4777 (w32_draw_box_rect): Make use of s->hdc rather than getting a new
4778 one.
4779 (w32_set_vertical_scroll_bar): Pass correct HWND parameters to
4780 pfnSetScrollInfo and SetScrollRange.
4781 (x_get_char_face_and_encoding): Don't turn iso8859-1 characters
4782 back into MULE characters after decoding them.
4783 (x_get_glyph_face_and_encoding): Likewise.
4784 (w32_per_char_metric): Use GetCharExtentPoint32W as fallback when
4785 GetCharABCWidthsW fails, since this is defined on Windows 9x.
4786 (x_produce_glyphs): Calculate per char metrics for a character
4787 that we know exists in default font when font_not_found_p is true.
4788
63bd786b
JR
47892000-01-22 Jason Rumney <jasonr@gnu.org>
4790
4791 * makefile.nt (intervals.obj, composite.obj): New modules.
4792 (composite.h): Added as dependency where appropriate.
4793
4794 * w32gui.h (XGCValue): New struct for emulating X GCs.
4795
4796 * w32term.h (XCharStruct): New struct for emulating X.
4797
4798 * w32console.c (turn_on_face, turn_off_face): New functions.
4799 (change_line_highlight): New prototype for new redisplay.
4800 (write_glyphs): Support multibyte text. Support faces.
4801
4802 * w32faces.c: Complete rewrite for new redisplay based on new
4803 xfaces.c.
4804
4805 * w32fns.c: Use SELECTED_FRAME macro in place of selected_frame
4806 throughout. struct frame * in place of FRAME_PTR.
4807 Skeleton support for images, toolbars, tooltips from xfns.c.
4808 (Fx_create_frame): Use system default for default scroll bar
4809 width.
4810 (w32_get_arg): Renamed from x_get_arg.
4811 (Fx_file_dialog): New function.
4812 (w32_list_fonts): Check cache before asking system.
4813 (Vw32_enable_synthesized_fonts): New variable.
4814 (Vw32_enable_italics): Obsolete, removed.
4815
4816 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
4817 Use SELECTED_FRAME macro.
4818
4819 * w32menu.c: Add skeleton support for help strings on menus.
4820 (add_menu_item): Native checkbox and radio support added, but not
4821 yet enabled due to bugs.
4822 (push_menu_item): Add parameters type, selection and help.
4823 Callers updated.
4824 Formatting changes to reduce unnecessary diffs with xmenu.c.
4825
4826 * w32select.c (Fw32_set_clipboard_data): Update call to
4827 find_charset_in_str.
4828
4829 * w32term.c: Complete rewrite for new redisplay based on new
4830 xterm.c with necessary sections merged back in from old w32term.c.
4831
6ffd3cf7 48322000-01-21 Richard M. Stallman <rms@gnu.org>
b50c9214
RS
4833
4834 * data.c (set_internal): Further fix in same criterion.
4835
6ffd3cf7 48362000-01-20 Richard M. Stallman <rms@gnu.org>
8cc95642
RS
4837
4838 * data.c (set_internal): Fix the criteria for whether
4839 to swap out the old cached binding.
4840
60af03f1
DL
48412000-01-19 Dave Love <fx@gnu.org>
4842
4843 * lread.c: (syms_of_lread) [user-init-file]: Doc change.
4844
f9be074f
KH
48452000-01-18 Kenichi Handa <handa@etl.go.jp>
4846
4847 * regex.c (re_compile_fastmap): While checking a range table for
4848 `charset', skip flag bits for a character class correctly.
4849
52b8dbf9
GM
48502000-01-17 Gerd Moellmann <gerd@gnu.org>
4851
d36100c9
GM
4852 * m/news-risc.h (LD_SWITCH_MACHINE): Define differently for GCC.
4853
52b8dbf9
GM
4854 * xfns.c (x_window): Call lw_create_widget with new parameter
4855 list.
4856
4857 * widget.c (EmacsFrameSetCharSize): Change size of children first
4858 because of problems with main window geometry management under
4859 Lesstif.
4860
4861 * xmenu.c (enum menu_item_idx): New enumeration replacing defines
4862 MENU_ITEMS_ITEM_.*.
4863 (MENU_ITEMS_ITEM_HELP): New enumerator.
4864 (push_menu_item): Add parameter HELP. Record help in menu_items.
4865 (single_menu_item, single_submenu, list_of_items): Call
4866 push_menu_item with new parameter.
4867 (single_submenu): Set help string in widget value.
4868 (menu_highlight_callback): New function.
4869 (set_frame_menubar): Call lw_create_widget with new
4870 parameter list.
4871 (xmenu_show, xdialog_show): Ditto.
4872
3139018f
GM
48732000-01-13 Gerd Moellmann <gerd@gnu.org>
4874
4875 * sound.c (Fplay_sound): Improve doc string.
4876
83c8f461
RS
48772000-01-11 Richard M. Stallman <rms@gnu.org>
4878
4879 * lisp.h (set_internal): Enter the new arg.
4880
4881 * eval.c (specbind): Record buffer-local variables specially,
4882 indicating which buffer's binding was saved.
4883 (unbind_to): Restore buffer-local variables specially
4884 in the proper buffer.
4885
4886 * data.c (set_internal): New arg BUF.
427ec082 4887
83c8f461
RS
4888 * eval.c (specbind, unbind_to): Pass new arg to set_internal.
4889 * data.c (Fset): Pass new arg to set_internal.
4890 * bytecode.c (Fbyte_code): Pass new arg to set_internal.
427ec082 4891
1fab1775
GM
48922000-01-11 Gerd Moellmann <gerd@gnu.org>
4893
4894 * .gdbinit: Adapt to new strings. Add xbacktrace, xreload,
4895 xprintsym.
4896
83c8f461 48972000-01-11 Richard M. Stallman <rms@gnu.org>
6f59462e
RS
4898
4899 * minibuf.c (Ftry_completion): Doc fix.
4900
7a85e4df
GM
49012000-01-11 Gerd Moellmann <gerd@gnu.org>
4902
4903 * keyboard.c (Fclear_this_command_keys): Clear recent_keys
4904 vector, too.
4905
a970dae4
AS
49062000-01-11 Andreas Schwab <schwab@suse.de>
4907
4908 * coding.c (code_convert_region): Initialize total_skip.
4909
c65d14ee
DL
49102000-01-08 Dave Love <fx@gnu.org>
4911
4912 * eval.c (Fuser_variable_p): Check customizability too.
4913
834938d2
GM
49142000-01-07 Gerd Moellmann <gerd@gnu.org>
4915
4916 * minibuf.c (Fcompleting_read): Doc fix.
4917
e0303cd6
GM
49182000-01-05 Gerd Moellmann <gerd@gnu.org>
4919
8a26744b
GM
4920 * s/freebsd.h (C_SWITCH_SYSTEM): Add -I /usr/local/include and
4921 -L /usr/local/lib.
4922
e0303cd6
GM
4923 * xfns.c (x_create_im): New function to set IM and IC of a frame.
4924 Check that input style is supported before trying to create an
4925 IC for it.
4926 (x_window): Call x_create_im.
427ec082 4927
2e471eb5
GM
49282000-01-04 Gerd Moellmann <gerd@gnu.org>
4929
560a7bd2
GM
4930 * xfns.c (current_gif_memory_src): New variable.
4931 (gif_load): Record the address of the current memory source
4932 in current_gif_memory_src.
4933 (gif_read_from_memory): Use current_gif_memory_src.
4934
f9ee84a3
GM
4935 * systime.h (EMACS_GET_TIME, EMACS_ADD_TIME, EMACS_SUB_TIME): Give
4936 macros statement form.
4937
d1299cde
GM
4938 * sound.c (struct sound): Renamed from struct sound_file.
4939 (struct sound): Add members `data' and `header_size'.
4940 (enum sound_attr): Add SOUND_DATA.
4941 (current_sound, current_sound_device): Variables renamed from
4942 sound_file and sound_device.
4943 (parse_sound): Parse :data.
4944 (parse_sound): Handle sound data in strings.
4945 (find_sound_type): Function renamed from find_sound_file_type.
427ec082 4946 (wav_init, au_init): Fail if sound's header_size is smaller than
d1299cde
GM
4947 needed header size.
4948 (wav_play, au_play): Play sounds from string data.
4949
2e471eb5
GM
4950 * puresize.h (BASE_PURE_SIZE): Increase to 600000.
4951
4952 * lisp.h: Add prototype for allocate_string_data.
4953
4954 * alloc.c (Fgarbage_collect): Return number of live and free
4955 strings.
4956
4957 * alloc.c (mark_buffer): Remove code in #if 0.
4958 (gc_sweep): Ditto.
4959 (UNMARK_BALANCE_INTERVALS): Give the macro statement form.
4960 (strings_consed): New variable.
4961 (allocate_string): Set it.
4962 (syms_of_alloc): Add DEFVAR_INT for strings_consed.
4963 (Fmemory_use_counts): Return strings_consed. Use Flist.
4964
4965 * alloc.c: General cleanup in comments etc. Remove conditional
4966 compilation for `standalone'.
4967
4968 * lisp.h (struct Lisp_String): Make DATA member `unsigned char *'.
4969
4970 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P):
4971 (GC_STRING_BYTES, GC_STRING_CHARS): New macros.
4972 (DONT_COPY_FLAG): Removed.
4973 (SBLOCK_SIZE, LARGE_STRING_BYTES): New macros.
4974 (struct sdata, struct sblock): New
4975 (struct string_block): Rewritten.
4976 (STRINGS_IN_STRING_BLOCK): New macro.
4977 (oldest_sblock, current_sblock, total_strings, total_free_strings)
4978 (large_sblocks, string_blocks, string_free_list): New variables.
4979 (NEXT_FREE_LISP_STRING, SDATA_OF_STRING, SDATA_SIZE): New macros.
4980 (init_strings): Rewritten.
4981 (allocate_string, allocate_string_data, compact_small_strings)
4982 (free_large_strings, sweep_strings): New functions.
4983 (STRING_BLOCK_SIZE, STRING_BLOCK_OUTSIZE)
4984 (struct string_block_head, current_string_block)
4985 (first_string_block, large_string_blocks, STRING_FULLSIZE)
4986 (STRING_PAD): Removed.
4987 (make_uninit_multibyte_string, make_pure_string): Rewritten.
4988 (Fgarbage_collect): Don't set mark bit in large strings.
4989 (mark_object): Mark strings differently. Mark symbol names
4990 differently.
4991 (survives_gc_p): Test marked strings differently.
427ec082 4992 (gc_sweep): Sweep strings differently, unmark strings in
2e471eb5
GM
4993 symbol names.
4994 (compact_strings): Removed.
4995
42608ba8
EZ
49962000-01-04 Eli Zaretskii <eliz@is.elta.co.il>
4997
4998 * xfaces.c (syms_of_xfaces): defsubr Scolor_gray_p and
4999 Scolor_supported_p even if HAVE_X_WINDOWS is not defined.
5000
e0a09e1a
KH
50012000-01-04 Kenichi Handa <handa@etl.go.jp>
5002
dd9f0750 5003 * fileio.c (Finsert_file_contents): Signal error if visiting file
427ec082 5004 in a non-empty buffer.
dd9f0750 5005
3c0f3b15 5006 * term.c (encode_terminal_code): Fix the previous change.
e0a09e1a 5007
44cd3ae5
GM
50082000-01-03 Gerd Moellmann <gerd@gnu.org>
5009
5010 * xfaces.c (syms_of_xfaces): Change Sface_color_gray_p to
5011 Scolor_gray_p, Sface_color_supported_p to Scolor_supported_p.
5012
5013 * s/hpux9.h (NO_EDITRES): Define even if HAVE_LIBXMU.
5014
c182a70f
EZ
50152000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
5016
5017 * xdisp.c (handle_single_display_prop) [HAVE_WINDOW_SYSTEM]: No
5018 need to test for MSDOS frames.
5019
24480d5b
EZ
50202000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
5021
5022 * dosfns.c (unspecified_colors): Remove.
5023 (msdos_stdcolor_idx): Use global variables unspecified_fg and
5024 unspecified_bg.
5025 (msdos_stdcolor_name): Return strings for unspecified fore- and
5026 back-ground colors.
5027
5028 * xfaces.c (Qunspecified_fg, Qunspecified_bg): Remove.
aaf2320c 5029 (syms_of_xfaces): Remove their staticpro's.
24480d5b
EZ
5030 (tty_color_name): Return Lisp strings for unspecified fore- and
5031 back-ground colors.
5032 (Finternal_set_lisp_face_attribute): Remove the special treatment
5033 for Qunspecified_{f,b}g.
5034 (realize_default_face): Replace Qunspecified_{f,b}g with a Lisp
5035 string.
5036
047f434a
GM
50372000-01-03 Gerd Moellmann <gerd@gnu.org>
5038
5039 * xdisp.c (reseat_at_next_visible_line_start): Position before
5040 newline only if ending up on a newline.
5041 (next_element_from_ellipsis): Return success. Handle case of
5042 displaying no ellipsis. Fix case of ellipsis defined in display
5043 table.
5044 (next_element_from_buffer): Return 0 if next_element_from_ellipsis
5045 returns 0.
5046
d684c676
EZ
50472000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
5048
5049 * xfaces.c (Fcolor_gray_p): Renamed from face-color-gray-p.
5050 (Fcolor_supported_p): Renamed from face-color-supported-p.
5051
5fe1d139
EZ
50522000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
5053
5054 * xfaces.c (tty_defined_color): Pass frame to tty-color-desc. The
5055 list of colors renamed to tty-defined-color-alist.
5056 (tty_color_name): Pass the frame to tty-color-by-index.
5057 (realize_tty_face): tty-color-alist is now a function which
5058 accepts the frame as argument.
5059
5060 * term.c (Ftty_display_color_p): Accept an optional argument
5061 FRAME.
5062
816be8b8
EZ
50632000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
5064
5065 * term.c (insert_glyphs): Pass glyph, not &glyph, to
5066 encode_terminal_code.
5067
b635321e
EZ
50682000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
5069
5070 * dispnew.c (mode_line_string): Support termcap frames as well.
5071
9b784e96
GM
50722000-01-01 Gerd Moellmann <gerd@gnu.org>
5073
27189709
GM
5074 * syntax.c (Fforward_word): Undo previous change.
5075
5076 * editfns.c (Fconstrain_to_field): Don't constrain if
5077 inhibit-field-text-motion is non-nil.
5078 (Fline_beginning_position): Undo previous change.
5079 (Fline_end_position): Ditto.
5080
5081 * syntax.c (Fforward_word): Notice field boundaries only if
5082 inhibit-field-text-motion is nil.
5083
5084 * lisp.h: Add extern declaration for Vinhibit_field_text_motion.
5085
5086 * editfns.c (Vinhibit_field_text_motion): New variable.
5087 (inhibit-field-text-motion): New DEFVAR_LISP.
5088 (Fline_beginning_position, Fline_end_position): Notice field
5089 boundaries only if inhibit-field-text-motion is nil.
5090
45158a91
GM
5091 * xfns.c (x_create_x_image_and_pixmap): Remove parameter FILE.
5092 All calls adjusted.
5093 (x_build_heuristic_mask): Likewise.
5094 (xbm_load_image_from_file): Change error output.
5095 (xbm_load, xpm_load, pbm_load, png_load, jpeg_load, tiff_load)
5096 (gif_load, gs_load, x_kill_gs_process): Ditto.
5097
9b784e96
GM
5098 * xfns.c (gif_load): Avoid sign extension and thus out of bounds
5099 color indices when accessing raster pixels.
63cec32f
GM
5100 (gif_image_p, png_image_p, jpeg_image_p, tiff_image_p): Allow only
5101 one of :file or :data.
5102 (enum pbm_keyword_index): Add PBM_DATA.
5103 (pbm_format): Add :data.
5104 (pbm_image_p): Allow either :file or :data.
5105 (pbm_read_file): New function.
5106 (pbm_scan_number): Rewritten to read from string.
5107 (pbm_load): Support :data.
9b784e96 5108
5ad6a5fb
GM
51091999-12-31 Gerd Moellmann <gerd@gnu.org>
5110
5111 * xfns.c: New image functions adapted to Emacs conventions.
5112 (png_load, tiff_load, jpeg_load, gif_load): Always GCPRO local
5113 variable `file'.
5114
63448a4d
WP
51151999-12-31 William M. Perry <wmperry@aventail.com>
5116
5117 * xfns.c (jpeg_format): Added the :data keyword
5118 (jpeg_image_p): JPEG is valid with :file _or_ :data
5119 (jpeg_memory_src): Defined new JPEG image source to read from a
5120 memory buffer.
5121 (jpeg_load): Pay attention to the :data keyword if specified.
5122 Instantiates a jpeg_memory_src instead of jpeg_stdio_src if
5123 found.
5124 (png_format): Added the :data keyword
5125 (png_image_p): PNG is valid with :file _or_ :data
5126 (png_read_from_memory): New PNG read function to read from a
5127 memory buffer.
5128 (png_load): Pay attention to the :data keyword if specified. Uses
5129 png_set_read_fn() instead of png_init_io() if specified.
5130 (tiff_format): Added the :data keyword for TIFF images.
5131 (tiff_image_p): TIFF is valid with :file _or_ :data
5132 (tiff_read_from_memory): Defined new TIFF I/O functions to read
5133 from a memory buffer.
5134 (tiff_load): Pay attention to the :data keyword if specified.
5135 Uses TIFFClientOpen() instead of TIFFOpen() if specified.
5136 (gif_format): Added the :data keyword
5137 (gif_image_p): GIF is valid with :file _or_ :data
5138 (gif_read_from_memory): New GIF input function to read from a
5139 memory buffer.
c65d14ee 5140 (gif_load): Pay attention to the :data keyword. Uses DGifOpen()
63448a4d
WP
5141 instead of DGifOpenFileName() if specified.
5142
c880678e
GM
51431999-12-31 Gerd Moellmann <gerd@gnu.org>
5144
5145 * xdisp.c (next_element_from_buffer): Change assertion at the end
5146 because it doesn't hold when there's an overlay string at the end
5147 from which we deliver an image.
5148
8ccb9a54
EZ
51491999-12-30 Eli Zaretskii <eliz@is.elta.co.il>
5150
5151 * msdos.c (IT_update_begin): Don't dereference members of struct
5152 window for deleted windows.
5153
12ce2351
GM
51541999-12-30 Gerd Moellmann <gerd@gnu.org>
5155
a915c648
GM
5156 * abbrev.c (Fexpand_abbrev): If expanding an abbrev which has only
5157 a hook, and the hook has a non-nil `no-self-insert' property, let
5158 the return value of the hook specify whether an expansion took
5159 place. If it returns nil, no expansion has been performed.
5160
12ce2351
GM
5161 * xterm.c (x_make_frame_visible): Wait for frame becoming visible
5162 differently.
5163
04ee4f45
EZ
51641999-12-30 Eli Zaretskii <eliz@is.elta.co.il>
5165
5166 * msdos.c (IT_write_glyphs): Track last changes to struct glyph.
5167
7f4bc0c3
EZ
51681999-12-29 Eli Zaretskii <eliz@is.elta.co.il>
5169
5170 * dispnew.c (mode_line_string): Support MS-DOS frames.
5171
dac204bc
GM
51721999-12-29 Gerd Moellmann <gerd@gnu.org>
5173
5174 * eval.c (syms_of_eval): Initialize debugger_may_continue.
5175
7b712ad8
KH
51761999-12-29 Kenichi Handa <handa@etl.go.jp>
5177
5178 * process.c (read_process_output): Fix the args CHARPOS and LENINS
5179 to signal_after_change.
5180
adb9900f
EZ
51811999-12-28 Eli Zaretskii <eliz@is.elta.co.il>
5182
41ad069b
EZ
5183 * msdos.c (dos_set_window_size) [__DJGPP__ > 1]: If the frame
5184 dimensions changed, invalidate the mouse highlight info.
5185 (disable_mouse_highlight, help_echo, previous_help_echo): New
5186 variables.
5187 (IT_set_mouse_pointer, show_mouse_face, clear_mouse_face)
5188 (fast_find_position, IT_note_mode_line_highlight)
5189 (IT_note_mouse_highlight): New functions.
5190 (IT_update_begin): If the redisplay affects the window where the
5191 mouse highlight is, clear the highlight. If the frame where the
5192 highlight was displayed was killed, invalidate the highlight
5193 info.
5194 (IT_update_end): Reset the highlight flag. Reset the mouse
5195 highlight-defer flag.
5196 (IT_frame_up_to_date): New function, if mouse highlight was
5197 deferred due to GC, do it now.
5198 (internal_terminal_init): Initialize mouse-highlight related
5199 members of the_only_x_display. Assign IT_frame_up_to_date to
5200 frame_up_to_date_hook.
5201 (dos_rawgetc): If the mouse moved, update mouse highlight. If
5202 help_echo changed value, generate a HELP_EVENT event.
5203 (syms_of_msdos): Staticpro help_echo and previous_help_echo.
5204
adb9900f
EZ
5205 * msdos.h (struct display_info): New.
5206 (struct x_output): Add the display_info member.
5207 (FRAME_X_DISPLAY_INFO): New macro.
5208
481b5054
GM
52091999-12-28 Gerd Moellmann <gerd@gnu.org>
5210
5211 * xdisp.c (try_window_id): Compute BEG_UNCHANGED and END_UNCHANGED
5212 if MODIFF > 1.
6448a6b3 5213 (dump_glyph_row): Adapt to changes in struct glyph.
481b5054
GM
5214
5215 * buffer.c (modify_overlay): Always compute unchanged info.
5216
a2882b0d
KH
52171999-12-27 Kenichi Handa <handa@etl.go.jp>
5218
5219 * dispextern.h (FACE_FROM_ID): Cast the arg ID to `unsigned'.
5220
89ba5b5f
KH
52211999-12-27 Kenichi Handa <handa@etl.go.jp>
5222
5223 The following changes are to use more bits for face IDs.
5224
5225 * lisp.h (GLYPH): Defined as `int', not `unsigned int'. Now the
5226 lowest 8 bits are single byte character code, the bits above are
5227 face ID.
481b5054 5228 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjusted for the change
89ba5b5f 5229 above.
481b5054
GM
5230 (FAST_MAKE_GLYPH, FSST_GLYPH_FACE): Likewise.
5231 (GLYPH_MASK_REV_DIR, GLYPH_MASK_PADDING): Macros deleted.
89ba5b5f
KH
5232
5233 * charset.h (CHAR_BYTES): Use ((1 << CHARACTERBITS) - 1) instead
5234 of GLYPH_MASK_CHAR.
5235
5236 * charset.c (char_bytes): Use ((1 << CHARACTERBITS) - 1) instead
5237 of GLYPH_MASK_CHAR.
5238
5239 * dispextern.h (struct glyph): Make face_id and padding_p the top
5240 level members. Change members in union `u'.
5241 (GLYPH_EQUAL_P): Check also members face_id and padding_p.
5242 (GLYPH_CHAR_AND_FACE_EQUAL_P): New macro.
5243 (SET_CHAR_GLYPH): Adjusted for the change of struct glyph.
5244 (CHAR_GLYPH_PADDING_P): Likewise.
5245 (GLYPH_FROM_CHAR_GLYPH): Likewise. Always return -1 for multibyte
5246 characters.
5247
481b5054 5248 * dispnew.c (line_hash_code, direct_output_for_insert): Adjusted
89ba5b5f
KH
5249 for the change of struct glyph.
5250 (line_draw_cost): Adjusted for the change of
5251 GLYPH_FROM_CHAR_GLYPH.
5252 (count_match): Use macro GLYPH_CHAR_AND_FACE_EQUAL_P.
5253
5254 * term.c (encode_terminal_code): Adjusted for the change of struct
5255 glyph and GLYPH_FROM_CHAR_GLYPH.
481b5054 5256 (write_glyphs, insert_glyphs, append_glyph): Adjusted for the
89ba5b5f
KH
5257 change of struct glyph.
5258
5259 * xdisp.c: All codes adjusted for the change of struct glyph.
5260
5261 * xterm.c: All codes adjusted for the change of struct glyph.
5262
5bcd116c
KH
52631999-12-27 Kenichi Handa <handa@etl.go.jp>
5264
5265 * composite.h (struct composition): Change the order of declaring
5266 members to reduce the byte size of the structure.
5267
f21b06b7
GM
52681999-12-25 Gerd Moellmann <gerd@gnu.org>
5269
5270 * search.c (looking_at_1): Reset immediate_quit before modifying
5271 global data.
5272
e36557c9
KH
52731999-12-24 Kenichi Handa <handa@etl.go.jp>
5274
5275 * process.c (read_process_output): Fix the arg FROM to
5276 update_compositions.
5277
83c8f461 52781999-12-22 Richard M. Stallman <rms@gnu.org>
f7c9e039
RS
5279
5280 * search.c (Freplace_match): For nonliteral replacement in buffer,
5281 construct all the new text first, then insert all at once.
5282
0b863bd9
DL
52831999-12-22 Dave Love <fx@gnu.org>
5284
5285 * xfns.c (Fx_show_tip): Gcpro `timeout' too.
5286
6d8e8ef3
GM
52871999-12-22 Gerd Moellmann <gerd@gnu.org>
5288
28d7281d
GM
5289 * xfns.c (Fx_create_frame): Move x_default_parameter calls that
5290 lead to size changes to after the X window has been created.
5291
e22ef6eb 5292 * xfaces.c (realize_x_face): Don't use uninitialized local
6d8e8ef3
GM
5293 variable in xassert.
5294
8affcced
KH
52951999-12-22 Kenichi Handa <handa@etl.go.jp>
5296
5297 * xfaces.c (face_color_supported_p): Check by tty_defined_color
6d8e8ef3 5298 only when the frame is not for a window system.
8affcced 5299
f2be1146
GM
53001999-12-22 Gerd Moellmann <gerd@gnu.org>
5301
deca1348
GM
5302 * buffer.c (Fset_buffer_multibyte): Arrange for a thorough
5303 redisplay after changing the multibyteness of a buffer.
5304
f2be1146
GM
5305 * xterm.c (XTread_socket): At the beginning of the loop, pass the
5306 frame's X window to XFilterEvent instead of None because that's
5307 the X window for which the IC was created. This makes dead
5308 accents work when the pointer is not in Emacs' frame.
5309 (XTread_socket) <KeyPress>: Don't call XFilterEvent here.
5310
a744a2ec
DL
53111999-12-20 Dave Love <fx@gnu.org>
5312
5313 * xfns.c (Fx_show_tip): Add missing UNGCPRO.
5314
9e6985ed
GM
53151999-12-19 Gerd Moellmann <gerd@gnu.org>
5316
5317 * eval.c (debugger_may_continue): New variable.
5318 (syms_of_eval): Add a DEFVAR_BOOL for it.
5319 (call_debugger): Bind it.
5320
3b620731
EZ
53211999-12-19 Eli Zaretskii <eliz@is.elta.co.il>
5322
5323 * msdos.c (IT_set_face): Don't swap face colors when highlight or
5324 fp->tty_reverse_p is set, unless the computed colors are identical
5325 to frame colors. Print both original and computed colors to
5326 termscript file.
5327 (IT_write_glyphs): Track the changes in handling of composite
5328 characters.
5329 (IT_set_frame_parameters): Don't set frame colors from
5330 unspecified-fg and unspecified-bg pseudo-colors.
5331
0f9a51c4
DL
53321999-12-17 Dave Love <fx@gnu.org>
5333
5334 * data.c (Fkeywordp): New function.
5335 (syms_of_data): Install it.
5336
363e4e42
EZ
53371999-12-16 Eli Zaretskii <eliz@is.elta.co.il>
5338
5339 * xfaces.c (tty_defined_color): Fix last change.
5340
cfad01b4
GM
53411999-12-15 Gerd Moellmann <gerd@gnu.org>
5342
5343 * xdisp.c (redisplay_window) <optional new window start>: Check
5344 that window start is in [BEGV..ZV].
5345
f9d2fdc4
EZ
53461999-12-15 Eli Zaretskii <eliz@is.elta.co.il>
5347
5348 * dispextern.h (FACE_TTY_DEFAULT_FG_COLOR)
5349 (FACE_TTY_DEFAULT_BG_COLOR): New macros.
5350
5351 * xfaces.c (Qunspecified_fg, Qunspecified_bg): New variables.
5352 (syms_of_xfaces): Initialize and staticpro them.
5353 (tty_defined_color): If the color name is unspecified-fg or
5354 unspecified-bg, return FACE_TTY_DEFAULT_FG_COLOR and
5355 FACE_TTY_DEFAULT_BG_COLOR, respectively, as the pixel value.
5356 (tty_color_name): If the color pixel value is either
5357 FACE_TTY_DEFAULT_FG_COLOR or FACE_TTY_DEFAULT_BG_COLOR, return
5358 Qunspecified_fg or Qunspecified_bg, respectively.
5359 (Finternal_set_lisp_face_attribute): Allow values Qunspecified_fg
5360 and Qunspecified_bg for foreground and background colors.
5361 (realize_default_face): If the foreground and background colors
5362 are not specified, default to Qunspecified_fg and Qunspecified_bg.
5363 (realize_tty_face): By default, set the face colors to
5364 FACE_TTY_DEFAULT_FG_COLOR and FACE_TTY_DEFAULT_BG_COLOR.
5365 [MSDOS]: Handle FACE_TTY_DEFAULT_FG_COLOR and
5366 FACE_TTY_DEFAULT_BG_COLOR when face colors are not defined.
5367 Reverse the colors if the default colors were reversed.
5368
5369 * dispnew.c (init_display): Initialize the frame pixels of the
5370 initial frame to FACE_TTY_DEFAULT_FG_COLOR and
5371 FACE_TTY_DEFAULT_BG_COLOR.
5372
5373 * term.c (turn_on_face): If the default fore- and background
5374 colors are reversed, enter inverse video mode. Don't send color
5375 escape sequences for unspecified foreground and background colors.
5376 (turn_off_face): Handle unspecified-fg and unspecified-bg colors.
5377
5378 * dosfns.c (unspecified_colors): New variable.
5379 (msdos_stdcolor_idx): Handle unspecified-fg and unspecified-bg
5380 color names, return FACE_TTY_DEFAULT_FG_COLOR and
5381 FACE_TTY_DEFAULT_BG_COLOR, respectively.
5382 (msdos_stdcolor_name): Handle FACE_TTY_DEFAULT_FG_COLOR and
5383 FACE_TTY_DEFAULT_BG_COLOR, return Qunspecified_fg and
5384 Qunspecified_bg, respectively.
5385
5386 * msdos.c (IT_set_face): Support FACE_TTY_DEFAULT_FG_COLOR and
5387 FACE_TTY_DEFAULT_BG_COLOR as pixel values.
5388
e19539f1
KH
53891999-12-15 Kenichi Handa <handa@etl.go.jp>
5390
5391 * coding.c (code_convert_region): Fix the secoding arg to
5392 update_compositions.
5393
5ec14d3c
KH
53941999-12-15 Kenichi Handa <handa@etl.go.jp>
5395
5396 The following changes are for the new composition mechanism. We
5397 have deleted `composition' charset and composite characters,
5398 instead introduced a special text property `composition'.
5399
5400 * Makefile.in (INTERVAL_SRC): Include composite.h.
5401 (INTERVAL_OBJ): Include composite.o.
5402 (SOME_MACHINE_OBJECTS): Include composite.o.
5403 (casefiddle.o) (dispnew.o) (indent.o) (process.o) (search.o)
5404 (syntax.o) (window.o) (xdisp.o) (xfaces.o) (xterm.o) (print.o):
5405 Depend on composite.h.
5406 (doc.o): Depend on charset.h.
5407 (keyboard.o) (textprop.o) (intervals.o): Depend on INTERVAL_SRC.
5408 (composite.o): New target.
427ec082 5409
5ec14d3c
KH
5410 * alloc.c (Fmake_string): Adjusted for the change of CHAR_STRING.
5411
5412 * callproc.c (Fcall_process): Call code_convert_string to encode
5413 arguments. Use CODING_REQUIRE_DECODING to check if the process
5414 output should be decoded.
5415
5416 * casefiddle.c: Include composite.h.
5417 (casify_object): Use MAX_MULTIBYTE_LENGTH to allocate memory for a
5418 multibyte character. Adjusted for the change of CHAR_STRING.
5419 (casify_region): Likewise. Call update_compositions.
5420
5421 * category.h (CATEGORY_SET): Delete codes for a composite
5422 character.
5423
5424 * category.c (word_boundary_p): Delete codes for a composite
5425 character.
5426 (Fmake_category_table): New function.
5427 (syms_of_category): Defsubr it.
5428
5429 * ccl.c (CCL_WRITE_CHAR): Adjusted for the change of CHAR_STRING.
5430 (ccl_driver): Delete codes for a composite character.
5431
5432 * charset.h: In this entry, just `Modified' means that codes for a
5433 composite character is deleted.
5434 (LEADING_CODE_COMPOSITION) (CHARSET_COMPOSITION)
5435 (charset_composition) (MIN_CHAR_COMPOSITION)
5436 (MAX_CHAR_COMPOSITION) (GENERIC_COMPOSITION_CHAR)
5437 (COMPOSITE_CHAR_P) (MAKE_COMPOSITE_CHAR) (COMPOSITE_CHAR_ID)
5438 (PARSE_COMPOSITE_SEQ) (PARSE_CHARACTER_SEQ): Deleted.
5439 (MAX_CHAR) (CHARSET_VALID_P) (CHARSET_DEFINED_P) (CHARSET_AT)
5440 (FIRST_CHARSET_AT) (SAME_CHARSET_P) (MAKE_NON_ASCII_CHAR)
5441 (PARSE_MULTIBYTE_SEQ) (SPLIT_NON_ASCII_CHAR) (CHAR_PRINTABLE_P):
5442 Modified.
5443 (SPLIT_STRING): Call split_string, not split_non_ascii_string.
5444 (CHAR_STRING): Delete WORKBUF argument. Call char_string, not
5445 non_ascii_char_to_string.
5446 (STRING_CHAR): Call string_to_char, not string_to_non_ascii_char.
5447 (STRING_CHAR_AND_LENGTH): Likewise.
5448 (FETCH_CHAR_ADVANCE): New macro.
5449 (MAX_COMPONENT_COUNT) (struct cmpchar_info): Deleted.
5450 (MAX_MULTIBYTE_LENGTH): New macro.
5451 (MAX_LENGTH_OF_MULTI_BYTE_FORM): Deleted.
5452 (find_charset_in_str): Argument adjusted.
5453 (CHAR_LEN): Modified.
427ec082 5454
5ec14d3c
KH
5455 * charset.c: In this entry, just `Modified' means that codes for a
5456 composite character is deleted.
5457 (Qcomposition) (leading_code_composition)
5458 (charset_composition) (min_composite_char) (cmpchar_table)
5459 (cmpchar_table_size) (n_cmpchars): Deleted.
5460 (SPLIT_COMPOSITE_SEQ): Deleted.
5461 (SPLIT_MULTIBYTE_SEQ): Modified.
5462 (char_to_string): Renamed from non_ascii_char_to_string.
5463 Modified.
5464 (string_to_char): Renamed from string_to_non_ascii_char.
5465 (split_string): Renamed from split_non_ascii_string.
5466 (char_printable_p) (Fsplit_char)
5467 (Ffind_charset_region) (Ffind_charset_string) (char_valid_p)
5468 (char_bytes) (Fchar_width) (strwidth): Modified.
5469 (find_charset_in_str): Argument CMPCHARP deleted. Modified.
5470 (Fstring): Adjusted for the change of CHAR_STRING. Modified.
5471 (hash_string) (CMPCHAR_HASH_TABLE_SIZE) (cmpchar_hash_table)
5472 (CMPCHAR_HASH_SIZE) (CMPCHAR_HASH_USED) (CMPCHAR_HASH_CMPCHAR_ID)
5473 (str_cmpchar_id) (cmpchar_component) (Fcmpcharp)
5474 (Fcmpchar_component) (Fcmpchar_cmp_rule) (Fcmpchar_cmp_rule_p)
5475 (Fcmpchar_cmp_count): Deleted.
5476 (Fcompose_string): Implemented by Emacs Lisp in composite.el.
5477 (init_charset_once): Modified.
5478 (syms_of_charset): Modified.
5479
5480 * cmds.c (internal_self_insert): Adjusted for the change of
5481 CHAR_STRING.
5482
5483 * coding.h (emacs_code_class_type): Delete the member
5484 EMACS_leading_code_composition.
5485 (COMPOSING_NO) (COMPOSING_WITH_RULE_HEAD) (COMPOSING_NO_RULE_HEAD)
5486 (COMPOSING_WITH_RULE_TAIL) (COMPOSING_NO_RULE_TAIL)
5487 (COMPOSING_WITH_RULE_RULE) (COMPOSING_HEAD_P)
5488 (COMPOSING_WITH_RULE_P): Macros deleted.
5489 (COMPOSITION_DATA_SIZE) (COMPOSITION_DATA_MAX_BUNCH_LENGTH): New
5490 macros.
5491 (struct composition_data): New structure.
5492 (CODING_FINISH_INSUFFICIENT_CMP): New macro.
5493 (struct coding_system): New members composition_rule_follows,
5494 cmp_data, cmp_data_start, cmp_data_index.
5495 (coding_save_composition) (coding_free_composition_data)
5496 (coding_adjust_composition_offset): Extern them.
5497
5498 * coding.c: Include composite.h.
5499 (DECODE_CHARACTER_ASCII): Don't handle composition here.
5500 (DECODE_CHARACTER_DIMENSION1): Likewise. Don't check the validity
5501 of multibyte code here.
5502 (DECODE_CHARACTER_DIMENSION2): Likewise.
5503 (detect_coding_emacs_mule): Change the case label from
5504 EMACS_leading_code_composition to 0x80.
5505 (detect_coding_iso2022): Handle new composition sequence.
5506 (DECODE_ISO_CHARACTER): Likewise.
5507 (check_composing_code): Deleted.
5508 (coding_allocate_composition_data): New function.
5509 (CODING_ADD_COMPOSITION_START) (CODING_ADD_COMPOSITION_END)
5510 (CODING_ADD_COMPOSITION_COMPONENT) (DECODE_COMPOSITION_START)
5511 (DECODE_COMPOSITION_END) (DECODE_COMPOSITION_RULE): New macros.
5512 (decode_coding_iso2022): Handle new composition sequence.
5513 (ENCODE_ISO_CHARACTER): Don't check composition here.
5514 (ENCODE_COMPOSITION_RULE) (ENCODE_COMPOSITION_START): New macros.
5515 (ENCODE_COMPOSITION_NO_RULE_START)
5516 (ENCODE_COMPOSITION_WITH_RULE_START): Deleted.
5517 (ENCODE_COMPOSITION_END): Handle new composition sequence.
5518 (ENCODE_COMPOSITION_FAKE_START): New macro.
5519 (encode_coding_iso2022): Handle new composition sequence.
5520 (ENCODE_SJIS_BIG5_CHARACTER): Delete superfluous `;' at the tail.
5521 (encode_coding_sjis_big5): Ignore composition.
5522 (setup_coding_system): Initialize new members of struct
5523 coding_system. Enable composition only when the coding system has
5524 `composition' property t.
5525 (coding_free_composition_data) (coding_adjust_composition_offset)
5526 (coding_save_composition) (coding_restore_composition): New
5527 functions.
5528 (code_convert_region): Call coding_save_composition for encoding
5529 and coding_allocate_composition_data for decoding. Don't skip
5530 ASCII characters if we handle composition on encoding. Call
5531 signal_after_change with Check_BORDER.
5532 (code_convert_string): Call coding_save_composition for encoding
5533 and coding_allocate_composition_data for decoding. Don't skip
5534 ASCII characters if we handle composition on encoding.
5535 (code_convert_string1): Set Vlast_coding_system_used after calling
5536 code_convert_string.
5537 (code_convert_string_norecord): Disable composition.
5538 (Fset_terminal_coding_system_internal): Likewise.
5539 (Fset_safe_terminal_coding_system_internal): Likewise.
5540 (Fset_keyboard_coding_system_internal): Likewise.
5541 (init_coding_once): Set emacs_code_class[0x80] to
5542 EMACS_invalid_code.
5543
5544 * composite.h: New file.
5545
5546 * composite.c: New file.
5547
5548 * data.c (Faref): Delete codes for a composite character..
5549 (Faset): Likewise. Adjusted for the change of CHAR_STRING.
5550
5551 * dispextern.h (enum glyph_type): New member COMPOSITE_GLYPH.
5552 (struct glyph): Add new sub-structure cmp to the union `u'.
5553 (enum display_element_type): New member IT_COMPOSITION.
5554 (enum prop_idx): New member COMPOSITION_PROP_IDX.
5555 (struct it): New members cmp_id, cmp_len.
5556
5557 * dispnew.c (direct_output_forward_char): Check point moving into
5558 or out of a composition. If so, give up direct method.
5559
5560 * doprnt.c (doprnt1): Adjusted for the change of CHAR_STRING.
5561
5562 * editfns.c (Fchar_to_string): Adjusted for the change of
5563 CHAR_STRING.
5564 (general_insert_function): Likewise.
5565 (Finsert_char): Likewise.
5566 (Fsubst_char_in_region): Likewise. Call update_compositions.
5567 (Ftranslate_region): Call update_compositions.
5568 (Ftranspose_regions): Call update_compositions.
5569
5570 * emacs.c (main): Call syms_of_composite.
5571
5572 * fileio.c (Fsubstitute_in_file_name): Adjusted for the change of
5573 CHAR_STRING.
5574 (Finsert_file_contents): Set Vlast_coding_system_used before
5575 calling signal_after_change. Call update_compositions if some
5576 texts are inserted..
5577 (Fwrite_region): Adjusted for the change of a_write and e_write.
5578 (a_write): Argument changed. Work based on character position,
5579 not byte position.
5580 (e_write): Argument changed. Handle new way of composition.
5581
5582 * fns.c (Flength): The length of char-table is MAX_CHAR.
5583 (concat): Adjusted for the change of CHAR_STRING.
5584 (Ffillarray): Adjusted for the change of CHAR_STRING.
5585 (Fset_char_table_default): Delete codes for a composite character.
5586 (hash_put): Return hash index.
5587
5588 * fontset.h (struct font_info): New member vertical_centering.
5589 (Vvertical_centering_font_regexp): Extern it.
5590
5591 * fontset.c (Vvertical_centering_font_regexp): New variable.
5592 (syms_of_fontset): Declare it as a Lisp variable and initialize.
5593 Set Vignore_relative_composition to nil.
5594 (fs_load_font): Initialize `vertical_centering' of struct
5595 font_info.
5596
5597 * indent.c (check_composition): New function.
5598 (MULTIBYTE_BYTES_WIDTH): Call STRING_CHAR_AND_LENGTH with
5599 MAX_MULTIBYTE_LENGTH, not MAX_LENGTH_OF_MULTI_BYTE_FORM.
5600 (current_column_1): Handle new way of composition.
5601 (Fmove_to_column): Likewise.
5602 (compute_motion): Likewise.
5603
5604 * insdel.c (copy_text): Adjusted for the change of CHAR_STRING.
5605 (insert_char): Likewise.
5606 (insert): Call update_compositions.
5607 (insert_and_inherit): Likewise.
5608 (insert_before_markers): Likewise.
5609 (insert_before_markers_and_inherit): Likewise.
5610 (insert_from_string): Likewise.
5611 (insert_from_string_before_markers): Likewise.
5612 (insert_from_buffer): Likewise.
5613 (replace_range): Likewise.
5614 (count_combining_composition): Deleted.
5615 (count_combining_before): Delete codes for a composite character.
5616 (count_combining_after): Likewise.
5617 (del_range_1): Call update_compositions.
5618 (del_range_byte): Likewise.
5619 (del_range_both): Likewise.
5620 (Fcombine_after_change_execute): Likewise.
5621
5622 * intervals.h: Include composite.h.
5623 (get_property_and_range): Extern it.
5624 (Vtext_property_default_nonsticky): Extern it.
427ec082 5625
5ec14d3c
KH
5626 * intervals.c (adjust_intervals_for_insertion): To check stickines
5627 of properties, pay attention to text-property-default-nonsticky.
5628 (merge_properties_sticky): Likewise.
5629 (get_property_and_range): New function.
5630
5631 * keyboard.c (Vdisable_point_adjustment): New variable.
5632 (Vglobal_disable_point_adjustment): New variable.
5633 (syms_of_keyboard): Declare them as Lisp variables.
5634 (command_loop_1): Check them and call adjust_point_for_property if
5635 necessary.
5636 (adjust_point_for_property): New function.
5637
5638 * keymap.c (push_key_description): Adjusted for the change of
5639 CHAR_STRING.
5640 (Ftext_char_description): Likewise.
5641
5642 * lisp.h (QCtest, QCweakness, Qequal): Extern them.
5643 (hash_put): Adjusted for the change of the definition.
5644 (signal_after_change): Likewise.
5645 (check_point_in_composition): Extern it.
5646
5647 * lread.c (readchar): Adjusted for the change of CHAR_STRING.
5648 Delete a code that handles an invalid too-long multibyte sequence
5649 because we are now sure that we never encounter with such a
5650 sequence.
5651 (read_multibyte): Use macro MAX_MULTIBYTE_LENGTH, not
5652 MAX_LENGTH_OF_MULTI_BYTE_FORM.
5653 (init_obarray): Likewise.
5654 (read1): Likewise. Adjusted for the change of CHAR_STRING.
5655
5656 * print.c (printchar): Adjusted for the change of CHAR_STRING.
5657
5658 * process.c: Include composite.h.
5659 (read_process_output): Call update_compositions.
5660
5661 * regex.c (regex_compile): Adjusted for the change of CHAR_STRING.
5662
5663 * search.c (search_buffer): Adjusted for the change of CHAR_STRING.
5664
5665 * syntax.h (SYNTAX_ENTRY_INT): Delete codes for a composite
5666 character.
5667
5668 * term.c (encode_terminal_code): Delete codes for a composite
5669 character. Adjusted for the change of CHAR_STRING.
5670 (produce_glyphs): When called, it->what can be IT_COMPOSITION.
5671 Delete codes for a composite character.
5672
5673 * textprop.c (Vtext_property_default_nonsticky): New variable
5674 (syms_of_textprop): Declare it as a Lisp variable.
5675
5676 * window.c (Frecenter): Clear all caches of compositions.
5677
5678 * xdisp.c (it_props): Add an entry for composition.
5679 (face_before_or_after_it_pos): For composition, check face of a
5680 character after the composition.
5681 (handle_composition_prop): New function.
5682 (get_next_display_element): Adjusted for the change of
5683 CHAR_STRING.
5684 (set_iterator_to_next): Handle the case that it->method ==
5685 next_element_from_composition.
5686 (next_element_from_composition): New function.
5687 (message_dolog): Adjusted for the change of CHAR_STRING.
5688 (set_message_1): Likewise.
5689 (check_point_in_composition): New function.
5690 (reconsider_clip_changes): If point moved into or out of
5691 composition, set b->clip_changed to 1 to force updating of the
5692 screen.
5693 (disp_char_vector): Delete codes for a composite character.
5694 (decode_mode_spec_coding): Adjusted for the change of CHAR_STRING.
5695
5696 * xfaces.c (choose_face_fontset_font): Delete codes for a
5697 composite character.
5698 (realize_x_face): Likewise. Change a place to set local variable
5699 `f' to avoid a bug of GCC 2.8.1 on Solaris.
5700
5701 * xfns.c: Include intervals.h.
5702 (syms_of_xfns): Make `display' property nonsticky by default.
5703
5704 * xselect.c (lisp_data_to_selection_data): Adjusted for the change
5705 for find_charset_in_str.
5706
5707 * xterm.h (struct x_output): Change member font_baseline to
5708 baseline_offset.
5709
5710 * xterm.c (x_append_glyph): Setup members of struct glyph properly
5711 for composition.
5712 (x_append_composite_glyph): New function.
5713 (VCENTER_BASELINE_OFFSET): New macro.
5714 (x_produce_glyphs): If it->what == IT_COMPOSITION, setup members
5715 of struct it for the composition. Cache pixel offsets in the
5716 struct composition. Delete codes for a composite character.
5717 Handle Vignore_relative_composition in composition code.
5718 (struct glyph_string): Delete member cmpcharp, add new member cmp.
5719 (x_set_cursor_gc): Check s->cmp, not s->cmpcharp.
5720 (x_compute_glyph_string_overhangs): Likewise.
5721 (x_get_glyph_overhangs): Delete codes for a composite character.
5722 (x_right_overwritten): Check s->cmp, not s->cmpcharp.
5723 (x_draw_glyph_string_background): Likewise. Delete codes for
5724 checking s->gidx for a composition.
5725 (x_draw_glyph_string_foreground): Delete code for a composite
5726 character.
5727 (x_draw_composite_glyph_string_foreground): New function.
5728 (x_draw_glyph_string_box): Check s->cmp, not s->cmpcharp.
5729 (x_draw_glyph_string): Handle the case of COMPOSITE_GLYPH.
5730 (struct work): Deleted.
5731 (x_fill_composite_glyph_string): Argument changed. Mostly
5732 rewritten for that.
5733 (x_fill_glyph_string): Don't check CHARSET_COMPOSITION.
5734 (BUILD_CHAR_GLYPH_STRINGS): Don't handle composition here.
5735 (BUILD_COMPOSITE_GLYPH_STRING): New macro.
5736 (BUILD_GLYPH_STRINGS): For composition, call
5737 BUILD_COMPOSITE_GLYPH_STRING.
5738 (x_new_font): Initialize f->output_data.x->baseline_offset, not
5739 f->output_data.x->font_baseline.
5740
c3c60f13
GM
57411999-12-14 Gerd Moellmann <gerd@gnu.org>
5742
5743 * xterm.c (show_mouse_face): Don't use updated_area, use
5744 TEXT_AREA.
5745
83c8f461 57461999-12-12 Richard M. Stallman <rms@gnu.org>
c838eb57
RS
5747
5748 * minibuf.c (Fall_completions): Doc fix.
5749
83c8f461 57501999-12-12 Richard M. Stallman <rms@gnu.org>
c838eb57
RS
5751
5752 * macros.c (Fstart_kbd_macro): Handle case where last-kbd-macro
5753 has been changed by the Lisp code.
5754
d8eccf12
GM
57551999-12-12 Gerd Moellmann <gerd@gnu.org>
5756
5757 * xfns.c: Indentation fixes.
5758
ae56feae
SM
57591999-12-10 Stefan Monnier <monnier@cs.yale.edu>
5760
5761 * xterm.c (x_initialize): Only setup xaw3d_* if they've been declared.
5762
dfa1c6ae
GM
57631999-12-10 Gerd Moellmann <gerd@gnu.org>
5764
5765 * frame.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
5766 [!MSDOS && !WINDOWSNT && !macintosh]: Moved here from xterm.h.
5767
5768 * xterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Moved
5769 to frame.h.
5770
ec18280f
SM
57711999-12-09 Stefan Monnier <monnier@cs.yale.edu>
5772
5773 * keyboard.c (Qratio): New symbol.
5774 (scroll_bar_parts): Add `Qratio' to it.
5775 (syms_of_keyboard): Init `Qratio'.
5776 * termhooks.h (scroll_bar_part): Add `scroll_bar_move_ratio'.
5777 * xterm.c (#includes): Allow compilation with only Xaw.
5778 (xaw3d_arrow_scroll, xaw3d_pick_top): New variables.
5779 (xt_action_hook): Replace XAW3D by XAW.
5780 (xaw3d_jump_callback): Renamed to xaw_jump_callback.
5781 (xaw_jump_callback): Renamed from xaw3d_jump_callback.
5782 Determine epsilon dynamically and don't try to be too clever.
5783 (xaw3d_scroll_callback): Renamed to xaw_scroll_callback.
5784 (xaw_scroll_callback): Renamed from xaw3d_scroll_callback.
5785 Handle both Xaw3d with arrow-scrollbars and with Xaw-style
5786 scrollbar (using `ratio').
5787 (x_create_toolkit_scroll_bar): Try to detect which style of Xaw3d
5788 scrollbar we have so as to set it up more optimally and to fix
5789 xaw3d_arrow_scroll and xaw3d_pick_top.
5790 (x_set_toolkit_scroll_bar_thumb): Try to maintain 2 spare pixels at the
5791 bottom of the Xaw3d scrollbar, to work around its tendency to refuse
5792 shrinking the thumb. Also make sure that `XawScrollbarSetThumb'
5793 is not ignored, using a major gross hack.
5794 (x_initialize): Init default values for xaw3d_arrow_scroll and
5795 xaw3d_pick_top.
5796
83b6d970
DL
57971999-12-09 Dave Love <fx@gnu.org>
5798
5799 * frame.h: (PIX_TYPE) [! HAVE_X_WINDOWS]: Define PIX_TYPE.
5800
3648c842
GM
58011999-12-08 Gerd Moellmann <gerd@gnu.org>
5802
5803 * eval.c: Remove conditional compilation on `standalone'.
5804 (call_debugger): When entering the debugger while redisplaying,
5805 reset redisplaying_p, and go back to the top-level if the debugger
5806 returns.
5807
05e71564
GM
58081999-12-07 Gerd Moellmann <gerd@gnu.org>
5809
5810 * xfaces.c (x_set_menu_resources_from_menu_face): Make sure
5811 basic faces are realized before trying to use face `menu'.
5812
5813 * window.c (delete_window): Block input for the time window
5814 matrices are being changed.
5815
b46cd536
DL
58161999-12-07 Dave Love <fx@gnu.org>
5817
5818 * lread.c (Fintern_soft): Fix newlines in doc string.
5819
96acb1f7
GM
58201999-12-07 Alexandre Oliva <oliva@dcc.unicamp.br>
5821
5822 * unexelf.c: Include <syms.h>, not <sym.h> on IRIX. Removed
5823 duplicate definition of ElfW.
5824 (find_section): Copied from unexsgi.c.
5825 (unexec): Use find_section. Adjust whitespace. Initialize
5826 new_data2_offset based on old_data, not sbss (this fixes a bug on
5827 IRIX6). Change #ifdef __mips to __sgi, since it's IRIX-specific.
5828 Adjust test for presence of .mdebug section to the new return
5829 value of find_section.
427ec082 5830
96acb1f7
GM
58311999-12-07 Gerd Moellmann <gerd@gnu.org>
5832
5833 * unexelf.c: Merge changes from 20.5.
5834 (unexec): Handle .lit4 and .lit8 unconditionally.
5835
5836 * m/iris4d.h (UNEXEC) [USG5_4]: Use unexelf.o instead of
5837 unexsgi.o again.
427ec082 5838
96acb1f7
GM
5839 * m/iris5d.h (UNEXEC): Likewise.
5840
7dae4502
SM
58411999-12-06 Stefan Monnier <monnier@cs.yale.edu>
5842
5843 * editfns.c (Fdelete_and_extract_region): New function.
05e71564
GM
5844 (syms_of_editfns): Register it.
5845 * insdel.c (del_range): Update del_range_1 call.
7dae4502
SM
5846 (del_range_1, del_range_2): Add a ret_string argument to
5847 request that the deleted text be returned.
5848 (del_range_byte, del_range_both): Update del_range_2 call.
05e71564 5849 * lisp.h (del_range_1, del_range_2): Change prototype
7dae4502
SM
5850 * casefiddle.c (casify_region): Update del_range_1 call.
5851 * coding.c (code_convert_region): Update del_range_2 call.
5852 * fileio.c (Finsert_file_contents): Update del_range_2 call.
5853
397e4fae
GM
58541999-12-06 Gerd Moellmann <gerd@gnu.org>
5855
5856 * xfaces.c (set_lface_from_font_name): Fix incomplete merge.
5857
3d973f71
GM
58581999-12-04 Hrvoje Niksic <hniksic@iskon.hr>
5859
5860 * lread.c (Fintern_soft): Accept a symbol argument.
427ec082 5861
740e985f
EZ
58621999-12-06 Eli Zaretskii <eliz@is.elta.co.il>
5863
5864 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 40000.
809f3d51
EZ
5865
5866 * insdel.c (adjust_markers_for_delete): Fix last change.
5867
2d764c78
EZ
58681999-12-06 Eli Zaretskii <eliz@is.elta.co.il>
5869
5870 Changes for automatic remapping of X colors on terminal frames:
5871
5872 * xfaces.c (XColor) [!HAVE_X_WINDOWS]: Provide a typedef for non-X
5873 frames.
5874 (Vface_tty_color_alist): Remove.
5875 (tty_defined_color): New function.
5876 (defined_color): Rewrite to support any type of frame.
5877 (tty_color_name): New function.
5878 (face_color_supported_p, Fface_color_gray_p,
5879 Fface_color_supported_p): Support non-X frames.
5880 (load_color): Enclose the color name in quotes, in the log
5881 messages. Remove DOS-specific version of load_color.
5882 (realize_tty_face): Take the supported colors from
5883 tty-color-alist. Support translation of X colors to the closest
5884 tty color, for both MSDOS and tty frames.
5885 [MSDOS]: Don't invert face colors if they were taken from the
5886 frame colors.
5887 (Fface_register_tty_color, Fface_clear_tty_colors): Remove.
5888
5889 * frame.h (struct x_output) [!MSDOS, !WINDOWSNT, !HAVE_X_WINDOWS]:
5890 Define a mostly empty surrogate.
5891 (tty_display): Declare.
5892
5893 * frame.c (make_terminal_frame) [!macintosh]: Don't use
5894 tty_display.
5895 (Fframe_parameters): Don't invert colors of non-FRAME_WINDOW_P
5896 frames when the frame's param_alist includes 'reverse.
5897 (tty_display): Define.
5898 (make_terminal_frame) [!MSDOS]: Assign &tty_display to the
5899 output_data.x member.
5900 (Fframe_parameters): Return foreground and background color names
5901 on tty frames as well, in addition to MSDOS frames.
5902
5903 * msdos.h (DisplayWidth, DisplayHeight): Changes for Lisp_Object
5904 selected_frame.
5905 (struct x_output): Remove unused members; document who uses each
5906 member.
5907 (FRAME_PARAM_FACES, FRAME_N_PARAM_FACES, FRAME_DEFAULT_PARAM_FACE,
5908 FRAME_MODE_LINE_PARAM_FACE, FRAME_COMPUTED_FACES,
5909 FRAME_N_COMPUTED_FACES, FRAME_SIZE_COMPUTED_FACES,
5910 FRAME_DEFAULT_FACE, FRAME_MODE_LINE_FACE, unload_color): Remove
5911 unused macro definintions.
5912
5913 * msdos.c (IT_set_frame_parameters): Don't call
5914 recompute_basic_faces, the next redisplay will, anyway.
5915 (x_current_display): Remove unused variable.
5916 Many functions: changes for Lisp_object selected_frame.
5917 (IT_set_face): If the tty_reverse_p flag is set for the face,
5918 reverse the foreground and background colors.
5919 (Fmsdos_remember_default_colors): New function.
5920 (syms_of_msdos): Defsubr it.
5921 (IT_set_frame_parameters): Use initial_screen_colors[] when
5922 creating a new frame. If the frame parameters include 'reverse,
5923 swap the foreground and background colors.
5924 (internal_terminal_init): Initialize initial_screen_colors to -1.
5925 (syms_of_msdos): Add DEFVAR_BOOL for x-stretch-cursor, to shut up
5926 cus-start.el.
5927
5928 * Makefile.in (lisp, shortlisp): Add lisp/term/tty-colors.elc.
5929
5930 * xfns.c (x_defined_color): Rename from defined_color. All
5931 callers changed.
5932 (Fxw_color_defined_p): Renamed from Fx_color_defined_p;
5933 all callers changed.
5934 (Fxw_color_values): Renamed from Fx_color_values; all callers
5935 changed.
5936 (Fxw_display_color_p): Renamed from Fx_display_color_p; all
5937 callers changed.
5938 (x_window_to_frame, x_any_window_to_frame,
5939 x_non_menubar_window_to_frame, x_menubar_window_to_frame,
5940 x_top_window_to_frame): Use !FRAME_X_P instead of
5941 f->output_data.nothing.
5942 * xterm.h (x_defined_color): Rename from defined_color.
5943
5944 * w32fns.c (x_window_to_frame): Use FRAME_W32_P instead of
5945 f->output_data.nothing.
5946 (Fxw_color_defined_p): Renamed from Fx_color_defined_p;
5947 all callers changed.
5948 (Fxw_color_values): Renamed from Fx_color_values; all callers
5949 changed.
5950 (Fxw_display_color_p): Renamed from Fx_display_color_p; all
5951 callers changed.
5952
5953 * dispextern.h (tty_color_name): Add prototype.
5954
5955 * xmenu.c (menubar_id_to_frame): Use FRAME_WINDOW_P instead of
5956 f->output_data.nothing.
5957 * w32menu.c (menubar_id_to_frame): Likewise.
5958 * w32term.h (w32_output): Declare.
5959
5960 * dosfns.c (Qmsdos_color_translate): Remove.
5961 (msdos_stdcolor_name): Now returns a Lisp_Object.
5962 * dosfns.h (Qmsdos_color_translate): Remove.
5963
5964 * s/msdos.h (INTERNAL_TERMINAL): Add entries for color support.
5965
b3e5232e
KH
59661999-12-06 Kenichi Handa <handa@etl.go.jp>
5967
5968 * fileio.c (decide_coding_unwind): Renamed from
5969 set_auto_coding_unwind.
5970 (Finsert_file_contents): Make single unwind protect to call both
5971 Vset_auto_coding_function and Ffind_operation_coding_system.
5972
5973 * insdel.c (adjust_markers_for_delete): Make it non-static.
5974
db0e466c
SM
59751999-12-04 Stefan Monnier <monnier@cs.yale.edu>
5976
5977 * regex.c (regex_compile): Recognize *?, +? and ?? as non-greedy
5978 operators and handle them properly.
5979 * regex.h (RE_ALL_GREEDY): New option.
5980 (RE_UNMATCHED_RIGHT_PAREN_ORD): Moved to the end where alphabetic
5981 sorting would put it.
5982 (RE_SYNTAX_AWK, RE_SYNTAX_GREP, RE_SYNTAX_EGREP)
5983 (_RE_SYNTAX_POSIX_COMMON): Use the new option to keep old behavior.
5984
22afa6e8
DL
59851999-12-04 Dave Love <d.love@dl.ac.uk>
5986
5987 * m/arm.h: New file.
5988
40afb967
DL
59891999-12-03 Dave Love <fx@gnu.org>
5990
5991 * editfns.c (Fmessage_or_box): Use use_dialog_box.
5992
ddf8eff5
GM
59931999-12-02 Gerd Moellmann <gerd@gnu.org>
5994
5995 * s/usg5-4.h (LIBS_SYSTEM): Add -lgen because that's needed
5996 for building with Motif.
5997
5998 * m/iris4d.h (UNEXEC) [USG5_4]: Use unexsgi.o instead of
5999 unexelf.o.
427ec082 6000
ddf8eff5
GM
6001 * m/iris5d.h (UNEXEC): Use unexsgi.o instead of unexelf.o.
6002
fa09a82d
DL
60031999-12-01 Dave Love <fx@gnu.org>
6004
6005 * emacs.c (main): Set LANG=C iff AX3_2 defined.
6006
ddf8eff5
GM
60071999-11-28 Gerd Moellmann <gerd@gnu.org>
6008
6009 * systime.h (EMACS_TIME_CMP, EMACS_TIME_EQ, EMACS_TIME_NE)
6010 (EMACS_TIME_GT, EMACS_TIME_GE, EMACS_TIME_LT,EMACS_TIME_LE): New
6011 macros.
6012
6013 * config.in (HAVE_SETITIMER, HAVE_UALARM): New.
6014
fa09a82d
DL
60151999-11-28 eliz <eliz@dlpx1>
6016
6017 * emacs.c (synchronize_locale): Avoid compiler warnings about
6018 pointer type mismatch.
6019
f9632fc8
GM
60201999-11-28 Gerd Moellmann <gerd@gnu.org>
6021
717d0121
GM
6022 * window.c (Fwindow_end): Don't call temp_set_pt_both with
6023 out of range position.
6024
427ec082 6025 * xterm.c (XTread_socket) <ClientMessage, Xatom_Scrollbar>:
f9632fc8
GM
6026 Switch off busy-cursor by setting inhibit_busy_cursor to 2.
6027
59c65f1e
EZ
60281999-11-28 Eli Zaretskii <eliz@is.elta.co.il>
6029
613a8346
EZ
6030 * charset.c (Fmake_char_internal): Print the charset ID when
6031 signalling an error.
6032
59c65f1e
EZ
6033 * emacs.c (synchronize_locale): Avoid compiler warnings about
6034 pointer type mismatch.
6035
83c8f461 60361999-11-26 Richard M. Stallman <rms@gnu.org>
d01f3570
RS
6037
6038 * editfns.c (Fdelete_field): Make it noninteractive. Return nil.
6039
18df9369
GM
60401999-11-26 Gerd Moellmann <gerd@gnu.org>
6041
65a3ccf7
GM
6042 * puresize.h (BASE_PURESIZE): Increase to 550000.
6043
b3b98592
GM
6044 * textprop.c (set_text_properties): New function. Like
6045 Fset_text_properties, but with additional parameter
6046 SIGNAL_AFTER_CHANGE_P. If that is nil, don't signal after
6047 changes.
6048 (Fset_text_properties): Use it.
6049
6050 * insdel.c (insert_1_both): Call set_text_properties with last
6051 parameter nil so that no after changes will be signaled.
6052
6053 * lisp.h: Add prototype for set_text_properties.
6054
18df9369
GM
6055 * xfaces.c (set_lface_from_font_name): Fix previous change.
6056 (recompute_basic_faces): Change assert to abort.
6057
71a8e74b
DL
60581999-11-25 Dave Love <fx@gnu.org>
6059
6060 * fns.c (Fnthcdr, Fnreverse): Inline cdr.
6061 (Fmember, Fdelq, Fdelete): Inline car.
6062 (Fy_or_n_p): Doc fix.
6063
bc6a5782
GM
60641999-11-25 Gerd Moellmann <gerd@gnu.org>
6065
3221576b 6066 * xfaces.c (set_lface_from_font_name): New parameter may_fail_p.
18df9369 6067 Callers changed. If specified font name is bogus, and may_fail_p
3221576b
GM
6068 is not set, try to use a reasonable default.
6069
bc6a5782
GM
6070 * dispnew.c (direct_output_for_insert): Set glyph row's
6071 displays_text_p flag. Correct window's window_end_vpos if
6072 necessary.
6073
0c8559bb
PE
60741999-11-25 Paul Eggert <eggert@twinsun.com>
6075
6076 * emacs.c (fixup_locale): Don't bother to record initial locale.
6077 (synchronize_locale): If the desired locale is nil,
6078 treat it as if it were the empty string,
6079 so that we set the locale from the environment.
6080
35737351
KH
60811999-11-25 Kenichi Handa <handa@etl.go.jp>
6082
6083 * fileio.c (Finsert_file_contents): Set buffer-file-coding-system
6084 of the current buffer via Fset.
6085
5562b47f
DL
60861999-11-24 Dave Love <fx@gnu.org>
6087
5562b47f
DL
6088 * xfaces.c: Don't duplicate Qmode_line definition done elsewhere.
6089
6090 * xfns.c: Don't duplicate Qdisplay definition done elsewhere.
6091
00da0e4a
GM
60921999-11-24 Gerd Moellmann <gerd@gnu.org>
6093
6094 * lisp.h (enum pvec_type): Put PVEC_FLAG in #if 0.
6095
6096 * emacs.c (PVEC_FLAG): New variable.
6097
b1775dc1
GM
60981999-11-23 Gerd Moellmann <gerd@gnu.org>
6099
6100 * unexaix.c (unexec): Use unsigned instead of uintptr_t because
6101 that fails on IBM PowerPC, AIX 4.2.
427ec082 6102
08de6200
EZ
61031999-11-22 Eli Zaretskii <eliz@is.elta.co.il>
6104
6105 * buffer.c (syms_of_buffer): Add %z, %Z, %m and %& to the doc
6106 string of mode-line-format. Remove the obsolete %t.
6107
02fda8ff
GM
61081999-11-22 Gerd Moellmann <gerd@gnu.org>
6109
f2fa858f
GM
6110 * dispnew.c (direct_output_for_insert): Increment glyph positions
6111 for glyphs from buffer text only.
6112
02fda8ff
GM
6113 * emacs.c (gdb_valbits, gdb_gctypebits, gdb_emacs_intbits)
6114 (gdb_data_seg_bits): New variables.
427ec082 6115
02fda8ff
GM
6116 * lisp.h (enum gdb_lisp_params): Put in #if 0, since it doesn't
6117 work on systems not allowing enumerators > INT_MAX, and it
6118 won't work if EMACS_INT is long long.
6119
1b0d24e7
PE
61201999-11-22 Paul Eggert <eggert@twinsun.com>
6121
6122 Port to SunOS 4.1.x again. Help out with Alpha port.
6123 Rename messages-locale to system-messages-locale,
6124 and likewise for time-locale.
427ec082 6125
1b0d24e7
PE
6126 * callproc.c (strerror): Remove decl.
6127 * fileio.c (strerror): Likewise.
6128 * process.c (strerror): Likewise.
6129 * emacs.c (strerror): Likewise.
6130 (Vsystem_messages_locale): Renamed from Vmessages_locale.
6131 All uses changed.
6132 (Vprevious_system_messages_locale): Likewise, from
6133 Vprevious_messages_locale.
6134 (Vsystem_time_locale): Likewise, from Vtime_locale.
6135 (Vprevious_system_time_locale): Likewise, from Vprevious_time_locale.
6136 (ABORT_RETURN_TYPE): New macro.
6137 (abort): Return type is now ABORT_RETURN_TYPE.
6138 (main): Always invoke init_signals, even if POSIX_SIGNALS is not
6139 defined.
6140 (syms_of_emacs): messages-locale -> system-messages-locale,
6141 previous-messages-locale -> previous-system-messages-locale,
6142 time-locale -> system-time-locale,
6143 previous-time-locale -> previous-system-time-locale.
6144
6145 * gmalloc.c (PP, __ptr_t): Assume ANSI C if STDC_HEADERS is defined.
6146 (const): Do not define; that's config.h's job.
6147 (<limits.h>): Include if HAVE_LIMITS_H is defined.
6148 (CHAR_BIT): Move test for definedness outside of limits.h condition.
6149 (<stddef.h>): Include if STDC_HEADERS is defined.
6150 (FREE_RETURN_TYPE): New macro.
6151 (free): Return type is now FREE_RETURN_TYPE.
6152
6153 * lisp.h (synchronize_system_time_locale): Renamed from
6154 synchronize_time_locale. All uses changed.
6155 (synchronize_system_messages_locale): Likewise, from
6156 synchronize_messages_locale.
6157
6158 * m/alpha.h (malloc, realloc, calloc): Remove decls;
6159 stdlib.h now does this.
6160
6161 * process.c (sys_siglist): Remove.
6162
6163 * s/sunos4-0.h (ABORT_RETURN_TYPE, FREE_RETURN_TYPE):
6164 New macros.
6165
6166 * syntax.c (scan_sexps_forward): Use abort, not assert.
6167
6168 * sysdep.c (my_sys_siglist): New var.
6169 (sys_siglist): New macro. Remove old initialized vars of same name.
6170 (init_signals): Initialize sys_siglist.
6171
6172 * xfns.c (abort): Remove decl; stdlib.h now does this.
6173
0dcd5b54
DL
61741999-11-18 Dave Love <fx@gnu.org>
6175
946173ad
DL
6176 * filelock.c: Add forward declaration for get_boot_time_1.
6177
0dcd5b54
DL
6178 * dispnew.c (Finternal_show_cursor_p): Fix doc string.
6179
71447e8f
GM
61801999-11-18 Gerd Moellmann <gerd@gnu.org>
6181
6182 * buffer.h (struct buffer_text): Add comment about moving
6183 buffer text if REL_ALLOC is defined.
6184
eeedff63
KH
61851999-11-18 Kenichi Handa <handa@etl.go.jp>
6186
6187 * lisp.h (KEY_DESCRIPTION_SIZE): New macro.
6188
6189 * keyboard.c (echo_char): Use KEY_DESCRIPTION_SIZE to check free
6190 memory for push_key_description.
6191
6192 * keymap.c (Fsingle_key_description): Use KEY_DESCRIPTION_SIZE to
6193 allocate memory for push_key_description.
6194 (describe_buffer_bindings): Likewise.
6195
5d7e4a2c
GM
61961999-11-17 Gerd Moellmann <gerd@gnu.org>
6197
6198 * xfns.c (Fx_show_busy_cursor): Doc-fix.
6199 (Fx_hide_busy_cursor): Ditto.
6200
62011999-11-17 Marco Walther <walther@siemens-pyramid.com>
6202
6203 * unexsni.c (unexec): Handle .rel.dyn section.
6204
b5b41e02
DL
62051999-11-16 Dave Love <fx@gnu.org>
6206
6207 * doc.c (Fdocumentation): Remove gcpro here too.
6208
e35b6123
GM
62091999-11-16 Gerd Moellmann <gerd@gnu.org>
6210
6211 * keyboard.c (command_loop_1): Remove no_redisplay.
6212
83c8f461 62131999-11-16 Richard M. Stallman <rms@gnu.org>
0a14b9bb
GM
6214
6215 * print.c (PRINTPREPARE): Don't call setup_echo_area_for_printing
6216 in noninteractive.
6217
b05d3bee
GM
62181999-11-14 Gerd Moellmann <gerd@gnu.org>
6219
5bcfeb49
GM
6220 * xdisp.c (ensure_echo_area_buffers): New.
6221 (with_echo_area_buffer): Use it.
6222 (setup_echo_area_for_printing): Ditto.
6223
b05d3bee
GM
6224 * buffer.c (indicate-empty-lines): Doc-fix.
6225
9b2e6e4c
GM
62261999-11-12 Gerd Moellmann <gerd@gnu.org>
6227
e7f90eab
GM
6228 * term.c (term_init): If "op" isn't available, don't support color
6229 because we can't switch back to the default foreground and
6230 background.
6231
9b2e6e4c
GM
6232 * doc.c (Fdocumentation_property): Remove GCPRO because
6233 Fsubstitute_command_keys gcpro's the string.
6234
1bf21027
KH
62351999-11-12 Kenichi Handa <handa@etl.go.jp>
6236
6237 * editfns.c (Ftranslate_region): Check the buffer multibyteness.
6238
3bc6df53
GM
62391999-11-11 Gerd Moellmann <gerd@gnu.org>
6240
6241 * print.c, keymap.c, indent.c, insdel.c, keyboard.c, intervals.c,
6242 lread.c, textprop.c, undo.c, emacs.c, lisp.h, intervals.h,
6243 buffer.h, config.in, Makefile.in: Remove USE_TEXT_PROPERTIES.
6244
35a5514b
GM
62451999-11-10 Gerd Moellmann <gerd@gnu.org>
6246
6247 * xfns.c (QCuser_data): Removed.
6248 (syms_of_xfns): Initialization of QCuser_data removed.
6249 (parse_image_spec): Don't handle :user-data specially. Allow
6250 unknown keys. Remove parameter ALLOW_OTHER_KEYS.
6251 (xbm_image_p, xbm_load, xpm_image_p, pbm_image_p, png_image_p)
6252 (tiff_image_p, jpeg_image_p, gif_image_p, gs_image_p): Call
6253 parse_image_spec accordingly.
6254
83c8f461 62551999-11-09 Richard M. Stallman <rms@gnu.org>
4ea68fcc
RS
6256
6257 * cmds.c (Fbeginning_of_line): Doc fix.
6258 (Fend_of_line): Doc fix.
6259
6260 * editfns.c (Fline_beginning_position): If N is not 1,
6261 pass t to Fconstrain_to_field for ESCAPE-FROM-EDGE.
6262
6263 * syntax.c (Fforward_word): Handle fields even if would have hit
6264 an edge of the buffer. Return nil if affected by fields.
6265
83c8f461 62661999-11-09 Richard M. Stallman <rms@gnu.org>
4ea68fcc
RS
6267
6268 * editfns.c (preceding_pos): Function deleted.
6269 (text_property_stickiness): Decrement POS directly.
6270 Fix a confusion that used PT instead of POS.
6271
6272 * editfns.c (find_field): Properly handle the case
6273 of a field boundary where `field' inherits from neither side.
6274
6275 * editfns.c (Ffield_beginning, Ffield_end): Doc fixes.
6276 (Ferase_field, Ffield_string, Ffield_string_no_properties): Doc fixes.
6277
fa9aabf6
GM
62781999-11-08 Gerd Moellmann <gerd@gnu.org>
6279
6280 * bytecode.c (Fbyte_code) <BinsertN, Bcall>: Do the
6281 BEFORE_POTENTIAL_GC before DISCARD.
6282
4015b3c0
GM
62831999-11-07 Gerd Moellmann <gerd@gnu.org>
6284
033a5fa3
GM
6285 * alloc.c (Fgarbage_collect): Call unmark_byte_stack.
6286
6287 * lisp.h: Add prototype for unmark_byte_stack.
6288
6289 * bytecode.c (mark_byte_stack): Use XMARKBIT and XMARK.
6290 (unmark_byte_stack): Renamed from relocate_byte_pcs. Use
6291 XUNMARK.
6292
55b064bd
GM
6293 * xdisp.c (resize_mini_window): Fix computation of needed
6294 mini-window height.
6295
6296 * alloc.c, buffer.c, editfns.c, xdisp.c: Remove conditional
6297 compilation on USE_TEXT_PROPERTIES.
01e9b9df 6298
4015b3c0 6299 * Fbyte_code: Use block statements in cases and declare v1 and v2
60af03f1 6300 locally there. Rearrange case statements so that those most
4015b3c0
GM
6301 frequently executed come first. Avoid goto's in frequently
6302 executed cases.
6303
fe512f27
GM
63041999-11-05 Gerd Moellmann <gerd@gnu.org>
6305
dd59e217
GM
6306 * bytecode.c (Fbyte_code): Use BEFORE_POTENTIAL_GC and
6307 AFTER_POTENTIAL_GC around internal_catch.
6308
bcf28080
GM
6309 * alloc.c (Fgarbage_collect): Call mark_byte_stack and
6310 relocate_byte_pcs.
6311 (init_alloc_once, init_alloc): Set byte_stack_list to null.
6312
6313 * eval.c (struct catchtag): Add member byte_stack.
6314 (internal_catch, Fcondition_case, internal_condition_case)
dd59e217 6315 (internal_condition_case_1): Save value of byte_stack_list in
bcf28080
GM
6316 catchtag.
6317 (unwind_to_catch): Restore byte_stack_list from catchtag.
6318
6319 * lisp.h: Add prototypes for new functions in bytecode.c.
6320 Add extern declaration for byte_stack_list.
6321
6322 * bytecode.c (struct byte_stack): New.
6323 (byte_stack_list, mark_byte_stack, relocate_byte_pcs): New
6324 (BEFORE_POTENTIAL_GC, AFTER_POTENTIAL_GC): New.
6325 (FETCH, PUSH, POP, DISCARD, TOP, MAYBE_GC): Rewritten.
6326 (HANDLE_RELOCATION): Removed.
6327 (Fbyte_code): Use byte_stack structures.
6328
4d59c34c
GM
6329 * filelock.c (Ffile_locked_p): Make FILENAME a required argument.
6330
fe512f27
GM
6331 * buffer.c (syms_of_buffer): Extend documentation of
6332 mode-line-format.
6333
60b64cd6
GM
63341999-11-04 Gerd Moellmann <gerd@gnu.org>
6335
6336 * editfns.c (Fdelete_field): Renamed from Ferase_field.
6337
6338 * minibuf.c (do_completion, Fminibuffer_complete_word): Use
6339 Ferase_field instead of Fdelete_field.
6340
b51b619b
GM
63411999-11-03 Gerd Moellmann <gerd@gnu.org>
6342
6343 * dispnew.c (Finternal_show_cursor): Change it to set the
6344 cursor on/off, not toggle its state.
6345 (Finternal_show_cursor_p): New.
6346 (syms_of_display): Defsubr Sinternal_show_cursor_p.
6347
5865af0d
DL
63481999-11-03 Dave Love <fx@gnu.org>
6349
6350 * charset.c (split_non_ascii_string): Define return value.
6351
82a700f3
GM
63521999-11-03 Gerd Moellmann <gerd@gnu.org>
6353
edfef199
GM
6354 * minibuf.c (string_to_object): New.
6355 (read_minibuf_noninteractive): New.
6356 (read_minibuf): Call read_minibuf_noninteractive if
6357 noninteractive. Use string_to_object.
6358
82a700f3
GM
6359 * doc.c (Fdocumentation_property): Fix bug bypassing UNGCPRO.
6360
b5540f0d
DL
63611999-11-02 Dave Love <fx@gnu.org>
6362
e69dcd60
DL
6363 * gnu-linux.h: Use SIGCHLD, not SIGCLD (not in glibc 2.1).
6364
827a1788
DL
6365 * process.c: Define _GNU_SOURCE before config.h to get strsignal
6366 declared with glibc2.
b5540f0d 6367
a69a6e61
GM
63681999-11-02 Gerd Moellmann <gerd@gnu.org>
6369
6370 * lisp.h (QUIT): Give it statement form.
6371
87e21fbd
DL
63721999-11-02 Dave Love <fx@gnu.org>
6373
6374 * eval.c (init_eval): Conditionalize declaration of gcpro_level.
6375
1b335865
GM
63761999-11-02 Gerd Moellmann <gerd@gnu.org>
6377
9fb5e03d
GM
6378 * xfns.c (QCuser_data): New.
6379 (syms_of_xfns): Initialize QCuser_data.
6380 (parse_image_spec): Ignore :user-data DATA properties.
6381
1b335865
GM
6382 * xdisp.c (display_line): Set charpos of first glyph in blank
6383 lines not corresponding to any text to -1, even if no glyphs are
6384 filled in in that line.
6385
e76f1c44
GM
63861999-11-01 Gerd Moellmann <gerd@gnu.org>
6387
427ec082 6388 * xfns.c (png_load) [PNG_READ_sRGB_SUPPORTED]: Put code using
36fcd3d9
GM
6389 png_get_sRGB in #ifdef.
6390
111259b4
GM
6391 * dispnew.c (Finternal_show_cursor): Renamed from Fshow_cursor.
6392 (syms_of_display): Use the new name.
6393
dd5c96e8
GM
6394 * textprop.c (verify_interval_modification): Signal text-read-only
6395 instead of calling error.
6396
db8878fb
GM
6397 * data.c (Qtext_read_only): New built-in error.
6398 (syms_of_data): Initialize it.
6399
6400 * lisp.h: Add extern declaration for Qtext_read_only.
6401
e76f1c44
GM
6402 * syntax.c: Remove whitespace after open or in front of closing
6403 parentheses.
6404
83c8f461 64051999-11-01 Richard M. Stallman <rms@gnu.org>
cb3a6c48
GM
6406
6407 * Makefile.in (w16select.o, sound.o): Don't depend on lisp.h.
6408
7843e09c
GM
64091999-10-31 Gerd Moellmann <gerd@gnu.org>
6410
575ed805
GM
6411 * xdisp.c (resize_mini_window): Compute needed height differently.
6412
7843e09c
GM
6413 * fns.c (Flength): Unroll loop over lists.
6414
6415 * xdisp.c (append_space): Return non-zero if space was appended.
6416 (display_line): Set charpos of first glyph to -1 only if that
6417 glyph is the space added by append_glyph.
6418
83c8f461 64191999-10-30 Richard M. Stallman <rms@gnu.org>
cb3a6c48
GM
6420
6421 * print.c (strout): Consider `noninteractive' and use stdout
6422 only when PRINTCHARFUN is t.
6423
6424 * lisp.h (struct gcpro) [DEBUG_GCPRO]: New field `level'.
6425 (gcpro_level): Declare it extern.
6426 [DEBUG_GCPRO] (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
6427 Alternate definitions that set `level' and increment `gcpro_level'.
6428 [DEBUG_GCPRO] (UNGCPRO): Alternate definition that checks gcpro_level.
6429
6430 * eval.c [DEBUG_GCPRO] (gcpro_level): New variable.
6431 (init_eval) [DEBUG_GCPRO]: Initialize it.
6432 (unwind_to_catch) [DEBUG_GCPRO]: Set gcpro_level
6433 from remaining gcprolist.
6434
3636f7a3
KH
64351999-10-29 Kenichi Handa <handa@etl.go.jp>
6436
6437 * coding.c (code_convert_region): Update `dst' correctly.
6438
a2ad7096
GM
64391999-10-28 Gerd Moellmann <gerd@gnu.org>
6440
6441 * fns.c (Fmemq, Fassq, Frassq, assq_no_quit, Fassoc)
6442 (Frassoc): Rewritten.
6443
1e3196e8
GM
64441999-10-27 Noah Friedman <friedman@splode.com>
6445
6446 * s/gnu-linux.h [HAVE_DEV_PTMX]: Redefine FIRST_PTY_LETTER to 'z'.
6447 Define PTY_NAME_SPRINTF.
6448 Redefine PTY_TTY_NAME_SPRINTF.
6449 * config.in: Add undef for HAVE_DEV_PTMX.
6450
83c8f461 64511999-10-26 Richard M. Stallman <rms@gnu.org>
4ea68fcc
RS
6452
6453 * regex.c (POP_FAILURE_POINT): Use failure_id.integer
6454 as arg to DEBUG_POP and DEBUG_PRINT.
6455
83c8f461 64561999-10-27 Richard M. Stallman <rms@gnu.org>
17dbfaad
GM
6457
6458 * data.c (Qad_activate_internal): Renamed from Qad_activate.
6459 (Ffset): Call Qad_activate_internal.
6460 (syms_of_data): Initialize Qad_activate_internal.
6461
26922151
GM
64621999-10-27 Gerd Moellmann <gerd@gnu.org>
6463
6464 * xdisp.c (echo_area_display) [HAVE_X_WINDOWS]: Do nothing if
6465 Vterminal_frame is selected and Vwindow_system is non-nil.
6466
67a5596f
GM
64671999-10-26 Gerd Moellmann <gerd@gnu.org>
6468
2bea706b
GM
6469 * xdisp.c (echo_area_display): Put previous change in #if 0.
6470
67a5596f
GM
6471 * emacs.c (standard_args): Add `file' as synonym for `visit',
6472 `execute' as synonym for `eval'.
6473 (main): Add new options to usage message.
6474
81dc5de5
GM
64751999-10-25 Gerd Moellmann <gerd@gnu.org>
6476
6477 * data.c (Qhash_table): New.
6478 (Ftype_of): Return it for hash tables.
6479 (syms_of_data): Initialize Qhash_table.
6480
83c8f461 64811999-10-25 Richard M. Stallman <rms@gnu.org>
bd3c545d
GM
6482
6483 * regex.c (POP_FAILURE_POINT): Extract failure_id as an integer.
6484
66e4690f 64851999-10-24 Ken Raeburn <raeburn@gnu.org>
3a7093d8 6486
7539e11f
KR
6487 * alloc.c: Undef HIDE_LISP_IMPLEMENTATION before including
6488 lisp.h.
6489
6490 * buffer.c (Fbuffer_list, Fget_file_buffer, get_truename_buffer,
6491 Fbuffer_local_variables, Fother_buffer, record_buffer,
6492 set_buffer_internal_1, Fbury_buffer, Fkill_all_local_variables,
6493 swap_out_buffer_local_variables, overlays_at, overlays_in,
6494 overlay_touches_p, overlay_strings, recenter_overlay_lists,
6495 fix_overlays_in_range, fix_overlays_before, Foverlay_get,
6496 Foverlay_put, report_overlay_modification, evaporate_overlays):
6497 Use XCAR, XCDR, and XFLOAT_DATA instead of explicit member
6498 references.
6499 * data.c (Fcar, Fcar_safe, Fcdr, Fcdr_safe, Fsetcar, Fsetcdr,
6500 swap_in_symval_forwarding, set_internal, default_value,
6501 Fset_default, Fmake_variable_buffer_local, Fmake_local_variable,
6502 Fmake_variable_frame_local, Flocal_variable_p,
6503 Flocal_variable_if_set_p, arithcompare, Fzerop, cons_to_long,
6504 Fnumber_to_string, float_arith_driver, Fadd1, Fsub1): Likewise.
6505 * dispnew.c (Fframe_or_buffer_changed_p): Likewise.
6506 * emacs.c (main): Likewise.
6507 * fontset.c (fs_load_font, fs_register_fontset,
6508 CACHED_FONTSET_NAME, CACHED_FONTSET_REGEX, Fquery_fontset,
6509 Fnew_fontset, Fset_fontset_font): Likewise.
6510 * frame.c (do_switch_frame, next_frame, prev_frame,
6511 other_visible_frames, Fdelete_frame, Fvisible_frame_list):
6512 Likewise.
6513 * keyboard.c (read_char, help_char_p, event_to_kboard,
6514 kbd_buffer_get_event, timer_start_idle, timer_check,
6515 make_lispy_event, apply_modifiers, reorder_modifiers,
6516 Fevent_convert_list, lucid_event_type_list_p, menu_bar_items,
6517 menu_bar_one_keymap, menu_item_eval_property_1, parse_menu_item,
6518 tool_bar_items, read_char_x_menu_prompt, read_key_sequence,
6519 Fcommand_execute, Fexecute_extended_command): Likewise.
6520 * minibuf.c (read_minibuf, get_minibuffer, Ftry_completion,
6521 Fall_completions): Likewise.
6522 * window.c (Fset_window_margins): Likewise.
6523
6524 * callint.c (quotify_args): Don't explicitly use struct
6525 Lisp_Cons, use Lisp_Object and XCAR/XCDR instead.
6526
3a7093d8
KR
6527 * s/netbsd.h (HAVE_GETLOADAVG): Define as 1.
6528 (UNEXEC, START_FILES, LIB_STANDARD, LIB_GCC): Define ELF versions,
6529 if __ELF__ is defined.
6530
2a3d7146
GM
65311999-10-24 Gerd Moellmann <gerd@gnu.org>
6532
6533 * window.c (Fnext_window): Add a QUIT in the loop.
6534
8ac52782
GM
65351999-10-23 Gerd Moellmann <gerd@gnu.org>
6536
427ec082 6537 * Makefile.in (bootstrap, bootstrap-emacs, bootstrap-temacs):
8ac52782
GM
6538 New targets.
6539
05f0d15a
DL
65401999-10-22 Dave Love <fx@gnu.org>
6541
6542 * emacs.c (main): Enable profiling conditional on __linux also.
6543
882fb0e6
GM
65441999-10-20 Gerd Moellmann <gerd@gnu.org>
6545
6546 * xrdb.c (x_load_resources): Set default resources for resource
6547 classes instead of for the specific Emacs.
6548
b5f5bc31
GM
65491999-10-19 Gerd Moellmann <gerd@gnu.org>
6550
66f4dd69
GM
6551 * s/freebsd.h (HAVE_GETLOADAVG): Define as 1 because config.h
6552 defines it that way.
427ec082 6553
b5f5bc31
GM
6554 * xdisp.c (echo_area_display) [HAVE_X_WINDOWS]: Do nothing
6555 if selected_frame is equal to Vterminal_frame.
6556
68c45bf0 65571999-10-19 Paul Eggert <eggert@twinsun.com>
427ec082 6558
68c45bf0 6559 Add support for large files, 64-bit Solaris, system locale codings.
427ec082 6560
68c45bf0
PE
6561 * Makefile.in (emacs): Set the LC_ALL environment variable to "C"
6562 when dumping, so that the dumped Emacs doesn't have stray locale info.
6563 (dired.o): Depend on systime.h.
6564 (editfns.o): Depend on coding.h.
6565
6566 * alloc.c, buffer.c, callproc.c, ccl.c, charset.c, coding.c, data.c,
6567 dispnew.c, editfns.c, emacs.c, filelock.c, floatfns.c, hftctl.c,
6568 keyboard.c, process.c, sysdep.c, unexelf.c, unexhp9k800.c,
6569 unexsunos4.c, vmsfns.c, vmsgmalloc.c, w32faces.c, w32menu.c, w32term.c,
6570 w32xfns.c, xfaces.c, xfns.c, xmenu.c, xterm.c:
6571 Include <config.h> before any system include files.
6572
6573 * alloc.c, buffer.c, ccl.c, data.c, editfns.c, emacs.c, eval.c,
6574 fileio.c, filelock.c, frame.c, insdel.c, keymap.c, lread.c,
6575 m/alpha.h, print.c, search.c, sysdep.c, xdisp.c, xfaces.c, xfns.c,
6576 xmenu.c, xterm.c:
6577 Do not include <stdlib.h>, as <config.h> does this now.
6578
6579 * callproc.c (Fcall_process):
6580 Synchronize messages locale before invoking strerror.
6581 Decode resulting string with locale-coding-system.
6582
6583 * coding.c (Vlocale_coding_system): New var.
6584 (syms_of_coding): Adjust to above change.
6585 (emacs_strerror): New function.
6586
6587 * coding.h (emacs_strerror, Vlocale_coding_system): New decls.
427ec082 6588
68c45bf0
PE
6589 * config.in (HAVE_STDIO_EXT_H, HAVE_TM_GMTOFF, HAVE___FPENDING,
6590 HAVE_FTELLO, HAVE_GETLOADAVG, HAVE_MBLEN, HAVE_MBRLEN,
6591 HAVE_STRSIGNAL): New macros.
6592 (BITS_PER_LONG): Default to 64 if _LP64 is defined.
6593 <stdlib.h>: Include if HAVE_STDLIB_H is defined and NOT_C_CODE isn't.
6594
6595 * dired.c: Include "systime.h".
6596 (Ffile_attributes): Do not cast s.st_size to int; this loses
6597 information if int is 32 bits but st_size and EMACS_INT are larger.
6598 Treat large device numbers like large inode numbers.
6599
6600 * dispnew.c (PENDING_OUTPUT_COUNT): Use __fpending if available.
6601
6602 * editfns.c: Include coding.h.
6603 (emacs_strftime): Remove decl.
6604 (emacs_strftimeu): New decl.
6605 (emacs_memftimeu): Renamed from emacs_memftime; new arg UT.
6606 Use emacs_strftimeu instead of emacs_strftime.
6607 (Fformat_time_string): Convert format string using
6608 Vlocale_coding_system, and convert result back. Synchronize time
6609 locale before invoking lower level function. Invoke
6610 emacs_memftimeu, passing ut, instead of emacs_memftime.
427ec082 6611
68c45bf0
PE
6612 * emacs.c: Include <locale.h> if HAVE_SETLOCALE is defined.
6613 (Vmessages_locale, Vprevious_messages_locale, Vtime_locale,
6614 Vprevious_time_locale): New variables.
6615 (main): Invoke setlocale early, so that initial error messages are
6616 localized properly. But skip locale-setting if LC_ALL is "C".
6617 Fix up locale when it's safe to do so.
6618 (fixup_locale): Moved here from xterm.c.
6619 (synchronize_locale, synchronize_time_locale,
6620 synchronize_messages_locale): New functions.
6621 (syms_of_emacs): Accommodate above changes.
6622
6623 * fileio.c (report_file_error): Convert strerror output according
6624 to Vlocale_coding_system.
6625 (Finsert_file_contents): Check for arithmetic overflow in
6626 computations that depend on file size. Report IO errors
6627 with emacs_strerror, not strerror.
6628
6629 * fns.c (Fgethash): Declare dflt parameter.
6630
6631 * gmalloc.c: Do not define const to nothing if HAVE_CONFIG_H
6632 is defined; that's config.h's job.
6633
6634 * lisp.h (EMACS_INT, BITS_PER_EMACS_INT, EMACS_UINT): If _LP64,
6635 default these values to long, BITS_PER_LONG, and unsigned long.
6636 (VALBITS, MARKBIT, XINT): Do not assume 32-bit EMACS_INT.
6637 (PNTR_COMPARISON_TYPE): Default to EMACS_UINT, not to unsigned int.
6638 (code_convert_string_norecord, fixup_locale,
6639 synchronize_messages_locale, synchronize_time_locale,
6640 emacs_open, emacs_close, emacs_read, emacs_write): New decls.
6641 All Emacs callers of open, close, read, write changed to use
6642 emacs_open, emacs_close, emacs_read, emacs_write.
6643
6644 * lread.c (file_offset, file_tell): New macros. All uses of ftell
6645 changed to file_tell.
6646 (saved_doc_string_position, prev_saved_doc_string_position): Now
6647 of type file_offset.
6648 (init_lread): Do not fix locale here; fixup_locale now does this.
6649
6650 * m/amdahl.h, s/usg5-4.h:
6651 (NSIG): Remove.
6652 (NSIG_MINIMUM): New macro.
6653
6654 * m/cydra5.h, m/dpx2.h, m/mips.h, m/pfa50.h, m/sps7.h, m/stride.h,
6655 m/ustation.h, s/gnu-linux.h, s/hpux.h, s/iris3-5.h, s/iris3-6.h,
6656 s/umips.h, s/usg5-4.h:
6657 (SIGIO): Do not undef.
6658 (BROKEN_SIGIO): New macro.
6659
6660 * m/ustation.h:
6661 (SIGTSTP): Do not undef.
6662 (BROKEN_SIGTSTP): New macro.
6663
6664 * s/gnu-linux.h:
6665 (SIGPOLL, SIGURG): Do not undef.
6666 (BROKEN_SIGPOLL, BROKEN_SIGURG): New macros.
6667
6668 * s/ptx4.h:
6669 (SIGINFO): Do not undef.
6670 (BROKEN_SIGINFO): New macros.
427ec082 6671
68c45bf0
PE
6672 * m/delta.h, s/ptx.h, s/template.h: Doc fix.
6673
6674 * mktime.c, strftime.c: Update to glibc 2.1.2 version, with
6675 some Emacs-related changes merged.
6676
6677 * print.c (float_to_string): Prepend "-" to representation of a
6678 NaN if the NaN is negative.
6679
6680 * process.c (sys_siglist): Omit if HAVE_STRSIGNAL.
6681 (wait_reading_process_input): Use emacs_strerror, not strerror.
427ec082 6682
68c45bf0
PE
6683 * process.c (status_message, sigchld_handler): Synchronize locale,
6684 then use strsignal istead of sys_siglist.
6685 * w32proc.c (sys_wait): Likewise.
427ec082 6686
68c45bf0
PE
6687 * s/aix3-1.h, s/bsd4-1.h, s/dgux.h, s/gnu-linux.h, s/hiuxmpp.h,
6688 s/hpux.h, s/iris3-5.h, s/iris3-6.h, s/irix3-3.h, s/osf1.h, s/rtu.h,
6689 s/sunos4-1.h, s/unipl5-0.h, s/unipl5-2.h, s/usg5-0.h, s/usg5-2-2.h,
6690 s/usg5-2.h, s/usg5-3.h, s/xenix.h:
6691 (open, close, read, write, INTERRUPTIBLE_OPEN,
6692 INTERRUPTIBLE_CLOSE, INTERRUPTIBLE_IO): Remove.
6693
6694 * s/sol2-5.h (_LARGEFILE_SOURCE, _FILE_OFFSET_BITS): New macros.
6695
6696 * sysdep.c (sys_read, sys_write, read, write, sys_close, close,
6697 sys_open, open): Remove.
6698 (emacs_open, emacs_close, emacs_read, emacs_write): Always define;
6699 the old INTERRUPTIBLE_OPEN, INTERRUPTIBLE_CLOSE, and INTERRUPTIBLE_IO
6700 macros are no longer used.
6701 (emacs_open): Renamed from sys_open. Merge BSD4_1 version.
6702 (emacs_close): Renamed from sys_close.
6703 (emacs_read): Renamed from sys_read.
6704 (emacs_write): Renamed from sys_write.
6705 (sys_siglist): Do not declare if HAVE_STRSIGNAL.
6706 (dup2): Do not print error on failure; the real dup2 doesn't.
6707 (strsignal): New function, defined if !HAVE_STRSIGNAL.
6708
6709 * syssignal.h (SIGINFO): Undef if defined and if BROKEN_SIGINFO
6710 is defined.
6711 (SIGIO, SIGPOLL, SIGTSTP, SIGURG): Likewise.
6712 (NSIG): If less than NSIG_MINIMUM, define to NSIG_MINIMUM.
6713 (strsignal): Declare if !HAVE_STRSIGNAL.
6714
6715 * unexelf.c (ElfBitsW, ELFSIZE, ElfExpandBitsW): New macros.
6716 (ElfW): Define in terms of ElfExpandBitsW.
6717
6718 * w32proc.c (sys_siglist): Remove decl.
6719
6720 * xdisp.c (decode_mode_spec): 3rd arg is int, not char, to comply
6721 with ANSI C.
6722 (display_string): Declare face_string_pos arg.
6723
6724 * xfns.c (Fx_show_tip): Declare timeout param.
6725
6726 * xterm.c: No need to include locale.h.
6727 (x_alloc_lighter_color, x_setup_relief_color):
6728 Pass arg as double, not float, for compatibility with ANSI C.
6729 (fixup_locale): Move to emacs.c.
6730 (x_term_init): Do not setlocale or fixup locale; the main program
6731 does this now.
6732
2f0b74ea
DL
67331999-10-18 Dave Love <fx@gnu.org>
6734
6735 * doc.c (Fdocumentation_property): Gcpro `tem'.
6736
471aa4a0
KH
67371999-10-18 Kenichi Handa <handa@etl.go.jp>
6738
6739 * lread.c (Fload): Calculate bytes of filename correctly.
6740 (openp): Likewise.
6741
aca2020b
KH
67421999-10-18 Keisuke Nishida <kxn30@po.cwru.edu>
6743
6744 * print.c (print_preprocess): In case print-circle is nil,
6745 add OBJ to Vprint_number_table only when OBJ is a symbol.
6746
1f5fe392 67471999-10-18 Kenichi Handa <handa@etl.go.jp>
b843d1ae
KH
6748
6749 * coding.c (code_convert_string): Add record_unwind_protect to
6750 assure setting inhibit_pre_post_conversion back to zero. Take
6751 care of the multibyteness of the working buffer.
6752
6753 * coding.c (inhibit_pre_post_conversion): New variable.
6754 (setup_coding_system): If inhibit_pre_post_conversion is nonzero,
6755 ignore post-read-conversion and pre-write-conversion property of
6756 the coding system.
6757 (code_convert_region_unwind): New function.
6758 (code_convert_region): Set inhibit_pre_post_conversion to 1 while
6759 running pre-write-conversion and post-read-conversion.
6760 (code_convert_string): Likewise.
6761
cd876a91
GM
67621999-10-17 Miles Bader <miles@gnu.org>
6763
6764 * editfns.c: Doc fix.
6765
67661999-10-17 Miles Bader <miles@gnu.org>
6767
6768 * editfns.c (Fconstrain_to_field): Make sure we don't violate the
6769 argument preconditions of find_before_next_newline in the case
6770 where both ONLY_IN_LINE and ESCAPE_FROM_EDGE are set and OLD_POS
6771 was indeed at the edge.
6772
67731999-10-17 Miles Bader <miles@gnu.org>
6774
6775 * minibuf.c (Fminibuffer_complete_and_exit): Supply value for new
6776 ESCAPE_FROM_EDGE parameter to Ffield_beginning.
6777
6778 * editfns.c (text_property_eq, text_property_stickiness): Don't
6779 use initializers for auto variables of type Lisp_Object.
6780 (find_field): Likewise. Use braces around nested ifs.
6781 (Fline_end_position): Store the raw eol in a variable, so that the
6782 final expression doesn't look so ugly.
6783 (Fconstrain_to_field): Doc fix.
6784 (preceding_pos): Renamed from `preceeding_pos'.
6785 (text_property_stickiness, find_field): Call preceding_pos,
6786 not preceeding_pos.
6787
67881999-10-17 Miles Bader <miles@gnu.org>
6789
6790 * editfns.c (Ffield_string_no_properties): New function.
6791 (text_property_stickiness, preceeding_pos): New functions.
6792 (Ffield_string): Remove PROPS parameter.
6793 (find_field): Add MERGE_AT_BOUNDARY parameter.
6794 Rewrite to use stickiness of `field' property to resolve
6795 ambiguous cases.
6796 (Ffield_beginning, Ffield_end): Add ESCAPE_FROM_EDGE parameter.
6797 (Fconstrain_to_field): Likewise.
6798 (syms_of_editfns): Init Sfield_string_no_properties.
427ec082 6799 (Ffield_string, Ferase_field, Ffield_end):
cd876a91
GM
6800 Supply new MERGE_AT_BOUNDARY argument to find_field.
6801 (Fline_beginning_position, Fline_end_position): Supply new
6802 ESCAPE_FROM_EDGE parameter to Fconstrain_to_field.
6803 Pass a value of Qt for the ONLY_IN_LINE argument to
6804 Fconstrain_to_field (only matters if N != 1).
6805 * syntax.c (Fforward_word): Supply new ESCAPE_FROM_EDGE parameter
6806 to Fconstrain_to_field.
6807
6808 * minibuf.c (Fminibuffer_complete_word): Use
6809 Ffield_beginning to find the prompt end.
6810
68111999-10-17 Miles Bader <miles@gnu.org>
6812
6813 * editfns.c (Fconstrain_to_field): Add get/set-current-point
6814 behavior when NEW_POS is nil.
6815 (find_field): Use XSETFASTINT instead of make_number.
6816 * minibuf.c (Fminibuffer_complete_and_exit): Test for an empty
6817 input string by seeing where the field begins, instead of
6818 looking at text-properties.
6819
68201999-10-17 Miles Bader <miles@gnu.org>
6821
6822 * editfns.c (Qfield): New variable.
6823 (find_field, Ferase_field, Ffield_string,
6824 Ffield_beginning, Ffield_end, Fconstrain_to_field): New functions.
6825 (Fline_beginning_position, Fline_end_position): Constrain to any field.
6826 (make_buffer_string_both): Remove minibuffer-prompt hack.
6827 (syms_of_editfns): Initialize Qfield, and subr entries for
6828 field functions above.
6829 * minibuf.c (read_minibuf): Don't save minibuffer prompt length on
6830 minibuf_save_list.
6831 Don't initialize minibuffer prompt length.
6832 Wrap prompt text-properties around the entire prompt.
6833 Add 'prompt text-property to prompt.
6834 Get final value with Ffield_string instead of make_buffer_string.
6835 (read_minibuf_unwind): Don't restore minibuffer prompt length from
6836 minibuf_save_list.
6837 (do_completion): Get minibuffer input with Ffield_string
6838 instead of Fbuffer_string.
6839 Erase minibuffer input with Ferase_field instead of erase_buffer.
6840 (Fminibuffer_complete_and_exit): Likewise.
6841 Test whether buffer is empty by looking for the 'prompt text
6842 property at the end.
6843 Set prompt length by looking for the end of the prompt text property,
6844 and save prompt length for later use (since there is no longer a
6845 buffer variable to get it from).
6846 (Fminibuffer_prompt_width, Fminibuffer_prompt_end): Functions removed.
6847 (syms_of_minibuf): Remove initializations of
6848 Sminibuffer_prompt_width and Sminibuffer_prompt_end.
6849 * buffer.h (struct buffer): Remove prompt_end_charpos field.
427ec082 6850 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer, Fkill_buffer):
cd876a91
GM
6851 Don't initialize prompt_end_charpos field.
6852 * syntax.c (Fforward_word): Likewise.
6853 Constrain to any field.
6854
3f6f7508
GM
68551999-10-16 Gerd Moellmann <gerd@gnu.org>
6856
6857 * window.c (enum save_restore_action): New.
6858 (save_restore_orig_size): Change parameter list. Add
6859 functionality to check for valid orig_top and orig_height members
6860 in a window tree.
6861 (grow_mini_window): Call save_restore_orig_size with new parameter
6862 list.
6863 (shrink_mini_window): Restore old window sizes only if old
6864 size information is valid in all windows in a window tree.
427ec082 6865
06482119
GM
68661999-10-15 Gerd Moellmann <gerd@gnu.org>
6867
2710454d
GM
6868 * xmenu.c (set_frame_menubar): Don't call
6869 x_set_menu_resources_from_menu_face here.
6870 (update_frame_menubar): Call x_set_menu_resources_from_menu_face.
6871
06482119
GM
6872 * xfns.c (gif_load): Fix handling of interlaced GIFs.
6873
17fa2837
DL
68741999-10-14 Dave Love <fx@gnu.org>
6875
6876 * xdisp.c (handle_fontified_prop): GCPRO `pos'.
6877
45f93416
GM
68781999-10-14 Gerd Moellmann <gerd@gnu.org>
6879
6880 * process.c (Fopen_network_stream): Don't loop if gethostbyname
6881 fails and h_errno is TRY_AGAIN.
6882
c765b723
DL
68831999-10-13 Dave Love <fx@gnu.org>
6884
6885 * filelock.c (lock_file): Move gcpro of `fn'.
6886
dace7f4e
GM
68871999-10-10 Gerd Moellmann <gerd@gnu.org>
6888
6889 * keyboard.c (auto-save-interval): Fix documentation.
427ec082 6890
83c8f461 68911999-10-09 Richard M. Stallman <rms@gnu.org>
73fb36f1
RS
6892
6893 * print.c (print): When removing objects from Vprint_number_table,
6894 only scan the newly added objects.
6895 (print_preprocess): If OBJ is a gensym, and print-continuous-numbering,
6896 unconditionally force it to stay in the table.
6897
85177c86
GM
68981999-10-09 Gerd Moellmann <gerd@gnu.org>
6899
6900 * xfns.c (prepare_image_for_display): Don't try to load image if
6901 loading it failed before.
6902 (lookup_image, prepare_image_for_display): Remember if loading the
6903 image failed.
6904 (xpm_load): Add missing UNBLOCK_INPUT.
6905
6906 * dispextern.h (struct image): New member load_failed_p.
6907
11e4de5d
SM
69081999-10-08 Stefan Monnier <monnier@cs.yale.edu>
6909
f28eba7b 6910 * fileio.c (Fmake_temp_name): Add a reference to `make-temp-file'
11e4de5d
SM
6911 in the docstring.
6912
f1da8f06
GM
69131999-10-08 Gerd Moellmann <gerd@gnu.org>
6914
6915 * xterm.c (XTread_socket) <ClientMessage, WM_TAKE_FOCUS>:
6916 Don't call XSetInputFocus because that can generate additional
6917 FocusIn events.
427ec082 6918
c37bbd4f
GM
69191999-10-07 Jeffrey C Honig <jch@bsdi.com>
6920
6921 * bsdos4.h [HAVE_LIBNCURSES]: Define TERMINFO and LIBS_TERMCAP.
6922
83c8f461 69231999-10-07 Richard M. Stallman <rms@gnu.org>
78cc5c64
GM
6924
6925 * process.c (wait_reading_process_input): When trying to suck
6926 input from one process, for accept-process-output,
6927 exit that loop if we get EAGAIN or EWOULDBLOCK.
6928
577d9e2f
GM
69291999-10-07 Gerd Moellmann <gerd@gnu.org>
6930
6931 * xfaces.c (Qbitmap_spec_p): Replaces Qpixmap_spec_p.
6932 (Fbitmap_spec_p): Replaces Fpixmap_spec_p.
6933 (load_pixmap): Use Fbitmap_spec_p and Qbitmap_spec_p instead of
6934 Fpixmap_spec_p and Qpixmap_spec_p.
6935 (load_face_colors, check_lface_attrs,
6936 merge_face_vector_with_property,
6937 Finternal_set_lisp_face_attribute): Use Fbitmap_spec_p.
6938 (syms_of_xfaces): Initialize Qbitmap_spec_p, defsubr
6939 Fbitmap_spec_p.
6940
f5737ad2
GM
69411999-10-07 Gerd Moellmann <gerd@gnu.org>
6942
6943 * xdisp.c (display_menu_bar): Use MENU_FACE_ID instead of
6944 MODE_LINE_FACE_ID.
6945
6946 * xfaces.c (toplevel) [USE_MOTIF]: Include some Motif headers.
6947 (struct x_resources) [USE_X_TOOLKIT]: New.
6948 (xm_apply_resources, xm_set_menu_resources_from_menu_face)
6949 [USE_MOTIF]: New.
6950 (xl_apply_resources, xl_set_menu_resources_from_menu_face)
6951 [USE_LUCID]: New.
6952 (x_set_menu_resources_from_menu_face) [USE_X_TOOLKIT]: New.
6953 (Qmenu): New.
6954 (syms_of_xfaces): Initialize Qmenu.
6955 (realize_basic_faces): Realize face `menu'.
6956 (resolve_face_name): New.
6957 (lface_from_face_name): Use it.
6958 (Finternal_set_lisp_face_attribute): Ditto.
6959 (Fpixmap_spec_p): Rewritten. Extend doc string.
6960
6961 * xmenu.c (set_frame_menubar, xmenu_show): Call
6962 x_set_menu_resources_from_menu_face.
6963
6964 * dispextern.h (enum face_id): Add MENU_FACE_ID.
6965 (toplevel): Include X11/Intrinsic.h.
6966
6a1aa823
DL
69671999-10-03 Ken'ichi Handa <handa@gnu.org>
6968
6969 * coding.c (DECODE_CHARACTER_ASCII): Decode ASCII invocated to GR
6970 correctly.
6971
26901792
DL
69721999-09-30 Kenichi Handa <handa@etl.go.jp>
6973
6974 * category.c (modify_lower_category_set): Set default value of
6975 TABLE correctly.
6976
6977 * minibuf.c (Fminibuffer_complete_word): Calculate string byte
6978 size correctly.
6979
69801999-09-29 Gerd Moellmann <gerd@gnu.org>
6981
6982 * editfns.c (Fpropertize): Renamed from Fproperties.
6983
69841999-09-29 Gerd Moellmann <gerd@gnu.org>
6985
6986 * xdisp.c (resize_mini_window): Do nothing if frame is an X
6987 frame that hasn't been initialized yet.
6988
83c8f461 69891999-09-28 Richard M. Stallman <rms@gnu.org>
a04f1a93
PR
6990
6991 * keymap.c (Fsingle_key_description): Make tem big enough.
6992 (describe_buffer_bindings): Make buf big enough.
6993
83c8f461 69941999-09-27 Richard M. Stallman <rms@gnu.org>
d177c583
PR
6995
6996 * intervals.c (get_local_map): Use indirect_function,
6997 not Findirect_function.
6998
26901792
DL
69991999-09-27 Dave Love <fx@gnu.org>
7000
7001 * cm.h: Remove unneeded declaration of ospeed.
7002
70031999-09-26 Gerd Moellmann <gerd@gnu.org>
7004
7005 * lisp.h (toplevel): Add prototype for
7006 next_single_char_property_change.
7007
7008 * textprop.c (next_single_char_property_change): New.
7009
7010 * xdisp.c (display_prop_end, invisible_text_between_p): Use
7011 next_single_char_property_change.
7012
70131999-09-25 Gerd Moellmann <gerd@gnu.org>
7014
7015 * editfns.c (Fproperties): New.
7016 (syms_of_editfns): Defsubr it.
7017
7018 * xfns.c (lookup_image): Set image's timestamp because it's
7019 used when we look it up.
7020
70211999-09-23 Gerd Moellmann <gerd@gnu.org>
7022
7023 * window.c (enlarge_window): Add window parameter instead of using
7024 selected_window.
7025 (Fdisplay_buffer): Call it with window parameter instead of
7026 setting selected_window.
7027 (Fenlarge_window, Fshrink_window): Ditto.
7028 (shrink_mini_window): If there is no recorded height and position
7029 info, resize mini-window to height 1.
7030
7031 * xfns.c (image_error): Use add_to_log.
7032
7033 * xfaces.c (load_pixmap): Call add_to_log without frame parameter.
7034 (load_face_font_or_fontset, load_color,
7035 merge_face_vector_with_property): Ditto.
7036
7037 * dispextern.h: Add prototype for add_to_log.
7038
7039 * xfaces.c (add_to_log): Move to xdisp.c.
7040
7041 * xdisp.c (add_to_log): Moved from xfaces.c. Remove frame
7042 parameter.
7043
70441999-09-23 Gerd Moellmann <gerd@gnu.org>
7045
7046 * xterm.c (XTread_socket) <MotionNotify>: Change #ifdef
7047 USE_X_TOOLKIT to #ifdef USE_TOOLKIT_SCROLL_BARS.
7048
7049 * xdisp.c (resize_mini_window): Use grow_mini_window and
7050 shrink_mini_window.
7051
7052 * window.c (window_min_size): Add parameter ignore_fixed_p.
7053 (change_window_height): Call window_min_size with new parameter.
7054 (shrink_window_lowest_first, save_restore_orig_size,
7055 grow_mini_window, shrink_mini_window): New.
7056 (make_window, replace_window): Initialize orig_top and
7057 orig_height.
7058 (enlarge_window): Renamed from change_window_height. Make it
7059 static.
7060 (Fdisplay_buffer, Fenlage_window, Fshrink_window): Call
7061 enlarge_window instead of change_window_height.
7062
7063 * window.h (struct window): New members orig_top, orig_height.
7064 (toplevel): Add prototypes for grow_mini_window and
7065 shrink_mini_window. Remove prototype for change_window_height.
7066
70671999-09-21 Eli Zaretskii <eliz@gnu.org>
7068
7069 * frame.c (frame_name_fnn_p): Fix previous change.
7070
70711999-09-20 Gerd Moellmann <gerd@gnu.org>
7072
7073 * minibuf.c (toplevel): Move include of stdio.h to other includes.
7074
7075 * dispnew.c (direct_output_for_insert): Cast arguments to
7076 safe_bcopy to char *.
7077
7078 * lread.c (readchar): Remove unused variables.
7079 (read_filtered_event, read1, Fmapatoms): Ditto.
7080 (toplevel): Include intervals.h.
7081
7082 * eval.c (Fsignal): Remove unused variables.
7083 (Fcommandp, do_autoload): Ditto.
7084
7085 * lisp.h: Add prototype for safe_bcopy, fatal.
7086
7087 * editfns.c (init_editfns): Remove unused variables.
7088 (Fgoto_char, Fchar_after, Fformat): Ditto.
7089 (message_text, message_length): Put in #ifndef HAVE_MENUS.
7090
7091 * data.c (find_symbol_value): Remove unused variables.
7092 (Faref, Fstring_to_number): Ditto.
7093 (toplevel): Include stdio.h.
7094 (Fnumber_to_string): Cast XINT to long for %ld.
7095
7096 * casefiddle.c (casify_object): Remove unused variables.
7097 (casify_region): Ditto.
7098
427ec082 7099 * filelock.c (get_boot_time): Put local variable used in
26901792
DL
7100 conditinally compiled section in #ifdef.
7101 (toplevel): Include stdio.h.
7102
7103 * keymap.c (Flookup_key, Faccessible_keymaps, describe_vector,
7104 keys_of_keymap, syms_of_keymap): Remove unused variables.
7105
71061999-09-20 Gerd Moellmann <gerd@gnu.org>
7107
7108 * xdisp.c (sync_frame_with_window_matrix_rows): Disable frame rows
7109 whose corresponding window rows have been disabled in
7110 try_window_id.
7111
71121999-09-20 Gerd Moellmann <gerd@gnu.org>
7113
7114 * xdisp.c (compute_window_start_on_continuation_line): Handle case
7115 that window start is out of range.
7116 (handle_display_prop, handle_single_display_prop): Replace
7117 marginal area specifications like `left-margin' with `(margin
7118 left-margin)'.
7119 (Qmargin): New.
7120 (syms_of_xdisp): Initialize Qmargin.
7121
71221999-09-19 Gerd Moellmann <gerd@gnu.org>
7123
7124 * syntax.c (update_syntax_table, find_defun_start, back_comment,
7125 describe_syntax, skip_chars): Remove unused variables.
7126 (back_comment, forw_comment): Add braces to if-statement with
7127 if-else as dependent statement.
7128
7129 * process.c (list_processes_1): Remove unused variables.
7130 (Fopen_network_stream, create_process): Add parentheses to
7131 conditional expressions.
7132 (create_process): Put declaration of sigchld in #if 0.
7133 (Fopen_network_stream): Removed unused variables.
7134 (Fopen_network_stream, wait_reading_process_input,
7135 wait_reading_process_input, send_process, send_process): Ditto.
7136 (toplevel): Add prototypes for set_waiting_for_input and
7137 keyboard_bit_set.
7138
7139 * abbrev.c (Fexpand_abbrev): Remove unused variables.
7140
7141 * textprop.c (Fset_text_properties): Remove unused variables.
7142 (text_property_list, verify_interval_modification,
7143 interval_has_all_properties): Ditto.
7144
7145 * callproc.c (toplevel) [HAVE_UNISTD_H]: Include unistd.h.
7146 (Fcall_process): Remove unused variable.
7147
7148 * keyboard.c (Frecursive_edit): Remove unused variable.
7149 (command_loop_1, safe_run_hooks, kbd_buffer_get_event,
7150 timer_check, make_lispy_event, menu_bar_items,
7151 menu_bar_one_keymap, menu_bar_item, parse_menu_item,
7152 parse_tool_bar_item, read_char_x_menu_prompt, read_key_sequence,
7153 kbd_buffer_get_event, make_lispy_event, read_char_x_menu_prompt,
7154 read_key_sequence): Ditto. Fread_key_sequence,
7155 Fread_key_sequence_vector, Fsuspend_emacs): Ditto.
7156 (read_key_sequence) [GOBBLE_FIRST_EVENT]: Put local variables only
7157 used when GOBBLE_FIRST_EVENT is defined in #ifdef
7158 (Fexecute_extended_command): Cast XINT to long for %ld.
7159 (toplevel) [HAVE_UNISTD_H]: Include unistd.h.
7160 (toplevel): Include sys/types.h.
7161
7162 * lisp.h (RETURN_UNGCPRO): Use do-while (0) idiom.
7163 (toplevel): Add prototypes for stuff_char, and
7164 code_convert_string_norecord.
7165
71661999-09-19 Gerd Moellmann <gerd@gnu.org>
7167
7168 * buffer.h: Add prototype for r_re_alloc.
7169
7170 * insdel.c (copy_text): Removed unused variables.
7171 (count_combining_after, count_combining_after, insert_1_both,
7172 insert_from_string_1, insert_from_buffer_1, check_markers): Ditto.
7173 (adjust_after_replace, replace_range): Add parentheses to logical
7174 expressions. Remove unused variables.
7175 (CHECK_BYTE_COMBINING_FOR_INSERT): Add parentheses to logical
7176 expression.
7177
7178 * alloc.c (Fgarbage_collect): Remove unused variable.
7179 (compact_strings): Add parentheses around assignments in
7180 conditional context.
7181 (toplevel): Put declaration of unused function clear_marks
7182 in #if 0 like its definition.
7183
7184 * lisp.h: Add prototype for shrink_regexp_cache,
7185 sweep_weak_hash_tables.
7186
71871999-09-19 Dave Love <fx@gnu.org>
7188
7189 * process.c (Fopen_network_stream): Use strerror, not gai_strerror.
7190
7191 * doc.c (read_bytecode_char): Declare arg.
7192
7193 * lisp.h: Declare Fcurrent_message, Fmake_temp_name,
7194 read_bytecode_char, Fx_hide_busy_cursor, getloadavg.
7195
71961999-09-18 Richard Stallman <rms@gnu.org>
7197
7198 * xdisp.c (echo_area_display): Turn off code that returned
7199 without doing anything when using a terminal frame.
7200
83c8f461 72011999-09-17 Richard M. Stallman <rms@gnu.org>
27271329
PR
7202
7203 * unexelf.c (unexec): Don't get confused by a short section
7204 just before the bss section.
7205
26901792
DL
72061999-09-16 Gerd Moellmann <gerd@gnu.org>
7207
7208 * emacs.c (main): Remove unused variables.
7209 (sort_args, Fkill_emacs, Fkill_emacs): Ditto.
7210
7211 * lisp.h: Add prototype for uninterrupt_malloc, memory_warnings,
7212 init_fileio_once, syms_of_sound, init_xfns, init_fns
7213 init_sound, check_message_stack.
7214
7215 * emacs.c (toplevel) [HAVE_UNISTD_H]: Include unistd.h.
7216
7217 * intervals.c (rotate_right, rotate_left): Add braces to avoid
7218 ambiguous else warning.
7219 (split_interval_left): Remove unused variables.
7220 (previous_interval, adjust_intervals_for_deletion,
7221 set_point_both, set_point_both, set_intervals_multibyte_1): Ditto.
7222 (icount, idepth, zero_length): Move into #if 0 section below
7223 original position where these are used.
7224
7225 * buffer.h [REL_ALLOC]: Add prototypes for r_alloc and r_alloc_free.
7226
7227 * buffer.c (Fkill_buffer): Remove unused variables.
7228 (Fkill_buffer, overlays_at, overlays_in, recenter_overlay_lists,
7229 fix_overlays_in_range, Fmove_overlay, Fprevious_overlay_change,
7230 init_buffer_once, (syms_of_buffer): Ditto.
7231
7232 * xrdb.c (get_fallback): Remove unused variable.
7233 (x_load_resources): Ditto. Put local variable used for Motif only
7234 in #ifdef USE_MOTIF.
7235
72361999-09-16 Gerd Moellmann <gerd@gnu.org>
7237
7238 * minibuf.c (read_minibuf): Remove unused variables.
7239 (read_minibuf, Fread_buffer, scmp, Fcompleting_read): Ditto.
7240 (do_completion): Move assignment out of conditional context.
7241 (Fdisplay_completion_list): Add parentheses to conditional expression.
7242
7243 * cm.c (toplevel) [HAVE_TERMCAP_H]: Include termcap.h.
7244
7245 * lisp.h: Add prototype for no_switch_window.
7246
7247 * window.c (Fset_window_buffer): Remove unused variables.
7248 (Fset_window_margins): Ditto.
7249
7250 * xdisp.c (resize_mini_window): Temporarily set the selected
7251 window's or Vminibuf_scroll_window's height to "fixed" around
7252 the call the change_window_height.
7253
7254 * window.c (window_fixed_size_p): Check window's height_fixed_p
7255 flag.
7256
7257 * window.h (struct window): New member height_fixed_p.
7258
7259 * dispnew.c (direct_output_forward_char): Don't use this method
7260 if showing a message or a message was just cleared because we
7261 might need to resize the mini-window.
7262
72631999-09-16 Gerd Moellmann <gerd@gnu.org>
7264
7265 * frame.c (Fdelete_frame): Correct local variable pointing to
7266 selected frame after selecting new frame.
7267
72681999-09-15 Richard Stallman <rms@gnu.org>
7269
7270 * puresize.h (BASE_PURESIZE): Increase to 525000.
7271
7272 * filelock.c (Vtemporary_file_directory): New variable.
7273 (syms_of_filelock): Set up Lisp variable.
7274
72751999-09-15 Gerd Moellmann <gerd@gnu.org>
7276
7277 * term.c (OUTPUT_IF, OUTPUT1_IF): Use do-while.
7278 (encode_terminal_code): Remove unused variables.
7279 (turn_off_face): Ditto.
7280 (toplevel): Include termcap.h if HAVE_TERMCAP_H.
7281
7282 * dispnew.c (update_frame_line): If writing whole desired line,
7283 don't clear to end of line if already at the end.
7284
72851999-09-15 Gerd Moellmann <gerd@gnu.org>
7286
7287 * xdisp.c (resize_mini_window): Don't report changed window
7288 height if it actually hasn't changed.
7289
427ec082 7290 * widget.c (set_frame_size, EmacsFrameSetCharSize): Remove
26901792
DL
7291 unused variables.
7292 (mark_shell_size_user_specified): Put in #if 0 because not used.
7293 (create_frame_gcs): Put in #if 0 because currently unused.
7294 (first_frame_p): Ditto.
7295
7296 * xmenu.c (single_menu_item, Fx_popup_menu, Fx_popup_menu,
7297 single_submenu, update_frame_menubar, set_frame_menubar,
7298 free_frame_menubar, xmenu_show, xdialog_show): Remove unused
7299 variables.
7300
7301 * print.c (PRINTFULLP): Removed because it is no longer used and
7302 is misleading.
7303 (Ferror_message_string): Remove unused variables.
7304 (print_object): Cast argument of sprintf to long for `%ld'
7305 specifier. Remove unused variable.
7306
73071999-09-14 Gerd Moellmann <gerd@gnu.org>
7308
7309 * sound.c (Fplay_sound): Remove usused variables.
7310 (be2hs): Put in #if 0 because it's currently not used.
7311
73121999-09-14 Ken Raeburn <raeburn@gnu.org>
7313
7314 * print.c (Ferror_message_string, print_error_message,
7315 print_object): Use XCAR, XCDR and XFLOAT_DATA instead of explicit
7316 member access.
7317
73181999-09-14 Gerd Moellmann <gerd@gnu.org>
7319
7320 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Put code in do-while.
7321
7322 * frame.c (Fnext_frame): Remove unused variable(s).
7323 (Fprevious_frame, Fmouse_pixel_position, frame_name_fnn_p): Ditto.
7324 (store_frame_param): Add parentheses to conditional expression.
7325 (Fmodify_frame_parameters): Remove unused variables.
7326 (Fmodify_frame_parameters, Fset_frame_size, Fset_frame_position):
7327 Ditto.
7328
7329 * xfns.c (x_set_background_color): Remove unused variable(s).
7330 (x_set_border_pixel): Ditto.
7331 (x_set_menu_bar_lines): Put local variable used only for
7332 non-toolkit case in #ifdef/#endif.
7333 (x_figure_window_size): Remove unused variable(s).
427ec082 7334 (x_figure_window_size, x_window, lookup_image,
26901792
DL
7335 xbm_read_bitmap_file_data, x_build_heuristic_mask, pbm_load,
7336 png_load, jpeg_load, gif_load, x_create_tip_frame,
7337 x_create_tip_frame, Fx_show_tip, x_set_border_pixel): Ditto.
7338
7339 * xterm.c (x_scroll_bar_handle_click): Compile only if
7340 not USE_TOOLKIT_SCROLL_BARS.
7341 (x_scroll_bar_set_handle, x_scroll_bar_note_movement): Ditto.
7342
7343 * dispextern.h: Add prototypes for gamma_correct and
7344 x_kill_gs_process.
7345
7346 * xterm.c (x_produce_glyphs): Remove unused variable(s).
7347 (x_alloc_nearest_color_for_widget, note_tool_bar_highlight,
7348 x_set_toolkit_scroll_bar_thumb): Ditto.
7349 (x_scroll_bar_create): Move local variable to the
7350 conditionally compiled section of code where it is used.
7351 (x_scroll_bar_create): Remove unused variable(s).
7352 (x_scroll_bar_remove, XTread_socket): Ditto.
7353 (XTread_socket) <ConfigureNotify>: Move variables used for
7354 non-toolkit case into conditionally compiled section of code.
7355
7356 * window.h (freeze_window_starts): Fix typo in prototype.
7357
7358 * xdisp.c (display_echo_area_1, try_window_id): Remove unused
7359 variable(s).
7360
7361 * lisp.h: Add prototype for debug_print.
7362
7363 * dispextern.h (xassert) [GLYPH_DEBUG]: Change definition
7364 to use do-while.
7365
7366 * fns.c (SXHASH_COMBINE): Add missing parentheses.
7367 (Fchar_table_range, Fset_char_table_default, mapcar1,
7368 Fyes_or_no_p, sweep_weak_hash_tables): Remove unused variable(s).
7369
7370 * lisp.h: Add prototype for getloadavg.
7371
73721999-09-14 Andreas Schwab <schwab@gnu.org>
7373
7374 * process.c (Fopen_network_stream): Avoid socket decriptor leak.
7375
7376 * lisp.h: Declare close_file_unwind.
7377
73781999-09-14 Richard Stallman <rms@gnu.org>
7379
7380 * filelock.c (get_boot_time): Make the temp name in the proper dir.
7381
73821999-09-13 Gerd Moellmann <gerd@gnu.org>
7383
7384 * xdisp.c (redisplay_window): Make sure start_at_line_beg
7385 is always set correctly.
7386
73871999-09-13 Dave Love <fx@gnu.org>
7388
7389 * xdisp.c (move_it_in_display_line_to): Make type consistent with
7390 declaration.
7391
73921999-09-13 Gerd Moellmann <gerd@delysid.gnu.org>
7393
7394 * xdisp.c (QCfile): Move here from xfns.c.
7395 (syms_of_xdisp): Initialize it.
7396 (message2_nolog): Change for Lisp_Object selected_frame.
7397 (message3_nolog, message_with_string, message,
7398 setup_echo_area_for_printing, truncate_echo_area,
7399 prepare_menu_bars, redisplay_internal, Fdump_tool_bar_row): Ditto.
7400
74011999-09-13 Dave Love <fx@gnu.org>
7402
7403 * xterm.c: Don't continue #define args for benefit of old cc.
7404 (xt_action_hook): Indent #error for benefit of K&R cc.
7405
74061999-09-13 Gerd Moellmann <gerd@delysid.gnu.org>
7407
7408 * xterm.c (XTcursor_to): Change for Lisp_Object selected_frame.
7409 (x_clear_frame, XTring_bell, XTmouse_position, XTread_socket): Ditto.
7410 (XRINGBELL): Removed.
7411
74121999-09-13 Dave Love <fx@gnu.org>
7413
7414 * xfns.c (x_put_x_image): Make type consistent with declaration.
7415
7416 * fns.c (Fmake_hash_table): Fix string continuation.
7417
74181999-09-13 Gerd Moellmann <gerd@delysid.gnu.org>
7419
7420 * xfns.c (QCfile): Moved to xdisp.c.
7421 (syms_of_xfns): Don't initialize QCfile.
7422 (check_x_frame): Change for Lisp_Object selected_frame.
7423 (check_x_display_info, x_get_resource_string): Ditto.
7424
74251999-09-13 Gerd Moellmann <gerd@gnu.org>
7426
7427 * minibuf.c (choose_minibuf_frame): Don't try to set the
7428 mini-buffer window's buffer, if the buffer is invalid.
7429
7430 * xfns.c (QCfile): Moved to xdisp.c.
7431 (syms_of_xfns): Don't initialize QCfile.
7432
7433 * xdisp.c (QCfile): Move here from xfns.c.
7434 (syms_of_xdisp): Initialize it.
7435
7436 * lisp.h (selected_frame): Add external declaration.
7437
7438 * xselect.c (x_own_selection): Change for Lisp_Object selected_frame.
7439 (Fx_store_cut_buffer_internal): Ditto.
7440 (Fx_rotate_cut_buffers_internal): Ditto.
7441
7442 * xfaces.c (frame_or_selected_frame): Change for Lisp_Object
7443 selected_frame.
7444 (Finternal_set_lisp_face_attribute): Ditto.
7445 (Finternal_get_lisp_face_attribute): Ditto.
7446 (Finternal_lisp_face_empty_p): Ditto.
7447 (Fdump_face): Ditto.
7448
7449 * term.c (OUTPUT): Change for Lisp_Object selected_frame.
7450 (OUTPUT_IF, ring_bell, set_terminal_modes, reset_terminal_modes,
7451 set_terminal_window, set_scroll_region, reassert_line_highlight,
7452 change_line_highlight, cursor_to, raw_cursor_to, clear_to_end,
7453 clear_end_of_line, clear_end_of_line_raw, clear_end_of_line_raw,
7454 encode_terminal_code, write_glyphs, term_init): Ditto.
7455
7456 * sysdep.c (reset_sys_modes): Change for Lisp_Object selected_frame.
7457 (kbd_input_ast, read_input_waiting): Ditto.
7458
7459 * minibuf.c (choose_minibuf_frame): Change for Lisp_Object
7460 selected_frame.
7461 (read_minibuf): Ditto.
7462
7463 * keyboard.c (command_loop_1): Change for Lisp_Object
7464 selected_frame.
7465 (cmd_error_internal, command_loop_1, read_char,
7466 kbd_buffer_get_event, read_avail_input,
7467 read_char_minibuf_menu_prompt, read_key_sequence, Fsuspend_emacs,
7468 interrupt_signal, quit_throw_to_read_char): Ditto.
7469
7470 * fontset.c (Ffont_info): Change for Lisp_Object selected_frame.
7471 (Ffontset_info): DItto.
7472
7473 * emacs.c (handle_USR1_signal): Change for Lisp_Object selected_frame.
7474
7475 * dispnew.c (selected_frame): Make it a Lisp_Object.
7476 (adjust_frame_glyphs_initially): Change for Lisp_Object selected_frame.
7477 (direct_output_for_insert, direct_output_forward_char,
7478 init_display): Ditto.
7479
7480 * data.c (swap_in_symval_forwarding): Change for Lisp_Object
7481 selected_frame.
7482 (set_internal): Ditto.
7483
7484 * buffer.c (Fother_buffer): Change for Lisp_Object selected_frame.
7485 (record_buffer): Ditto.
7486
7487 * frame.c (Fmake_terminal_frame): Use SELECTED_FRAME.
7488 (do_switch_frame): Change for Lisp_Object selected_frame.
7489 (Fselected_frame): Ditto.
7490 (Fframe_first_window): Use SELECTED_FRAME.
7491 (Fframe_root_window): Change for Lisp_Object selected_frame.
7492 (Fframe_selected_window, Fset_frame_selected_window, Fnext_frame,
7493 Fprevious_frame, other_visible_frames, Fdelete_frame,
7494 Fmouse_position, Fmouse_pixel_position, Fmake_frame_visible,
7495 Fmake_frame_invisible, Ficonify_frame, Fraise_frame, Flower_frame,
7496 Fframe_parameters, Fmodify_frame_parameters, Fframe_char_height,
7497 Fframe_char_width, Fframe_pixel_height, Fframe_pixel_width,
7498 Fset_frame_height, Fset_frame_width): Ditto.
7499
75001999-09-13 Gerd Moellmann <gerd@gnu.org>
7501
7502 * xdisp.c (message2_nolog): Change for Lisp_Object selected_frame.
7503 (message3_nolog, message_with_string, message,
7504 setup_echo_area_for_printing, truncate_echo_area,
7505 prepare_menu_bars, redisplay_internal, Fdump_tool_bar_row): Ditto.
7506
7507 * xmenu.c (Fx_popup_menu): Change for Lisp_Object selected_frame.
7508 (Fx_popup_dialog): Ditto.
7509
7510 * xfns.c (check_x_frame): Change for Lisp_Object selected_frame.
7511 (check_x_display_info, x_get_resource_string): Ditto.
7512
7513 * xterm.c (XTcursor_to): Change for Lisp_Object selected_frame.
7514 (x_clear_frame, XTring_bell, XTmouse_position, XTread_socket): Ditto.
7515 (XRINGBELL): Removed.
7516
7517 * window.c (Fminibuffer_window): Change for Lisp_Object
7518 selected_frame.
7519 (Fwindow_at, Fprevious_window, window_loop, select_window_1,
7520 display_buffer_1, Fdisplay_buffer, temp_output_buffer_show,
7521 Fcurrent_window_configuration, init_window_once): Ditto.
7522
7523 * frame.h (SELECTED_FRAME): New.
7524
75251999-09-12 Ken Raeburn <raeburn@gnu.org>
7526
7527 * category.c (word_boundary_p): Use XCAR and XCDR.
7528 * ccl.c (ccl_driver, resolve_symbol_ccl_program,
7529 Fregister_code_conversion_map): Likewise.
7530 * coding.c (setup_coding_system, detect_coding_system,
7531 Ffind_operation_coding_system, Fset_coding_priority_internal):
7532 Likewise.
7533 * doc.c (get_doc_string, Fdocumentation,
7534 store_function_docstring): Likewise.
7535 * editfns.c (save_restriction_restore): Likewise.
7536 * eval.c (Fcond, Fmacroexpand, Fcondition_case, wants_debugger,
7537 skip_debugger, find_handler_clause, Fautoload, Fapply,
7538 run_hook_with_args, run_hook_list_with_args, Ffetch_bytecode):
7539 Likewise.
7540 * fileio.c (Ffind_file_name_handler, Finsert_file_contents,
7541 Fwrite_region, do_auto_save_unwind, Fdo_auto_save,
7542 Fread_file_name): Likewise.
7543 * filelock.c (unlock_all_files): Likewise.
7544 * insdel.c (Fcombine_after_change_execute): Likewise.
7545 * intervals.c (adjust_intervals_for_insertion): Likewise.
7546 * keymap.c (get_keymap_1, Fkeymap_parent, Fset_keymap_parent,
7547 Fset_keymap_parent, fix_submap_inheritance, access_keymap,
7548 store_in_keymap, Fcopy_keymap, define_as_prefix,
7549 current_minor_maps, Faccessible_keymaps,
7550 accessible_keymaps_char_table, Fkey_description,
7551 Fwhere_is_internal, where_is_internal_2, where_is_internal_1,
7552 describe_buffer_bindings, describe_map_tree, shadow_lookup,
7553 describe_map): Likewise.
7554 * lread.c (Fload, load_unwind, close_load_descs, read_vector,
7555 read_list, init_lread): Likewise.
7556 * search.c (Fmatch_data): Likewise.
7557 * sunfns.c (Fsun_menu_internal): Likewise.
7558 * syntax.c (describe_syntax): Likewise.
7559 * undo.c (record_insert, record_delete, Fundo_boundary,
7560 truncate_undo_list): Likewise.
7561 * vmsproc.c (child_sig): Likewise.
7562
7563 * editfns.c (Fformat): Use XFLOAT_DATA.
7564
75651999-09-12 Gerd Moellmann <gerd@gnu.org>
7566
7567 * keyboard.c (command_loop_1): Resize mini-window to the
7568 exact size of a message displayed, if any.
7569
7570 * xdisp.c (resize_mini_window): Add parameter exact_p. Resize
7571 to exact size if exact_p is non-zero.
7572 (display_echo_area_1): Call resize_mini_window with
7573 new parameter.
7574 (redisplay_internal): Ditto.
7575 (resize_echo_area_axactly): New.
7576
7577 * minibuf.c (read_minibuf_unwind): Call resize_mini_window with
7578 new parameter.
7579
7580 * dispextern.h: Change prototype of resize_mini_window.
7581 Add prototype for resize_echo_area_axactly.
7582
7583 * xfaces.c (Fx_family_fonts): Replaces Fx_font_list.
7584 (syms_of_xfaces): Defsubr accordingly.
7585
7586 * xdisp.c (hscroll_window_tree): Choose cursor row from
7587 desired or current matrix.
7588 (redisplay_internal): Hscroll before updating.
7589
75901999-09-12 Gerd Moellmann <gerd@gnu.org>
7591
7592 * syntax.c (Fforward_word): Use prompt_end_charpos instead
7593 of minibuffer_prompt_length.
7594
7595 * minibuf.c (read_minibuf): Use prompt_end_charpos instead
7596 of minibuffer_prompt_length.
7597 (read_minibuf_unwind): Ditto.
7598 (Fminibuffer_complete_and_exit): Ditto.
7599 (Fminibuffer_complete_word): Ditto.
7600 (Fminibuffer_prompt_end): Ditto.
7601
7602 * editfns.c (Fbuffer_string): Use prompt_end_charpos instead
7603 of minibuffer_prompt_length.
7604 (Fline_beginning_position): Ditto.
7605
7606 * buffer.c (Fget_buffer_create): Use prompt_end_charpos instead
7607 of minibuffer_prompt_length.
7608 (Fmake_indirect_buffer): Ditto.
7609 (Fkill_buffer): Ditto.
7610 (Ferase_buffer): Ditto.
7611
7612 * buffer.h (prompt_end_charpos): Replaces
7613 minibuffer_prompt_length.
7614
427ec082 7615 * minibuf.c (read_minibuf): Return mini-buffer contents
26901792
DL
7616 without the prompt.
7617
7618 * editfns.c (make_buffer_string_both): Take out the code
7619 to handle mini-buffer prompts.
7620 (Fbuffer_string): Handle the prompt here, instead.
7621
7622 * xfaces.c (lface_from_face_name): Resolve face aliases.
7623 (Qmode_line): Replaces Qmodeline.
7624 (realize_basic_faces): Use Qmode_line.
7625 (syms_of_xfaces): Initialize Qmode_line.
7626
76271999-09-12 Gerd Moellmann <gerd@gnu.org>
7628
7629 * minibuf.c (read_minibuf): Set minibuf_prompt_width to the
7630 current column after inserting prompt.
7631 (Fminibuffer_prompt_width): Return minibuf_prompt_width.
7632
7633 * xfaces.c (Qframe_update_face_colors): New.
7634 (syms_of_xfaces): Initialize call.
7635 (update_face_from_frame_parameter): Call that function when
7636 the frame's background changes.
7637
76381999-09-12 Richard Stallman <rms@gnu.org>
7639
7640 * insdel.c (del_range_1): Don't treat minibuffer prompt specially.
7641
76421999-09-12 Ken Raeburn <raeburn@gnu.org>
7643
7644 * alloc.c (Fcons, pure_cons, Fpurecopy, Fgarbage_collect,
7645 mark_object, mark_buffer): Use XCAR and XCDR.
7646 * bytecode.c (Fbyte_code): Likewise.
7647 * callint.c (Fcall_interactively, Fprefix_numeric_value):
7648 Likewise.
7649 * callproc.c (Fcall_process, Fcall_process_region, child_setup,
7650 getenv_internal): Likewise.
7651 * dired.c (file_name_completion): Likewise.
7652 * fns.c (Fsafe_length, concat, Fcopy_alist, Fmember, Fmemq, Fassq,
7653 assq_no_quit, Fassoc, Frassq, Frassoc, Fdelq, Fdelete, Freverse,
7654 Fplist_get, Fplist_put, internal_equal, mapcar1): Likewise.
7655 * indent.c (Fcompute_motion): Likewise.
7656 * process.c (decode_status, Fprocess_status, Fprocess_exit_status,
7657 list_processes_1, Fstart_process, Fopen_network_stream,
7658 wait_reading_process_input, read_process_output_call,
7659 kill_buffer_processes, sigchld_handler, exec_sentinel_unwind,
7660 status_notify, wait_reading_process_input): Likewise.
7661 * textprop.c (PLIST_ELT_P, property_value, set_properties,
7662 extend_property_ranges): Likewise.
7663 * w32faces.c (Fpixmap_spec_p, merge_face_list): Likewise.
7664 * w32fns.c (x_window_to_frame, x_set_frame_parameters,
7665 x_report_frame_params, x_set_cursor_type, x_icon_type,
7666 x_figure_window_size, Fx_create_frame, w32_load_system_font,
7667 w32_load_font, enum_font_cb2, w32_list_bdf_fonts, w32_list_fonts,
7668 w32_list_synthesized_fonts, w32_find_ccl_program, Fx_list_fonts,
7669 Fw32_find_bdf_fonts, w32_find_bdf_fonts_in_dir,
7670 x_display_info_for_name, Fx_display_list): Likewise.
7671 * w32menu.c (menubar_id_to_frame, single_keymap_panes,
7672 Fx_popup_menu, Fx_popup_dialog): Likewise.
7673 * w32proc.c (Fw32_set_keyboard_layout): Likewise.
7674 * w32term.c (x_window_to_scroll_bar, w32_read_socket,
7675 w32_term_init, x_delete_display): Likewise.
7676 * xfns.c (x_window_to_frame, x_any_window_to_frame,
7677 x_non_menubar_window_to_frame, x_menubar_window_to_frame,
7678 x_top_window_to_frame, x_set_frame_parameters,
7679 x_report_frame_params, x_set_cursor_type, x_icon_type,
7680 x_figure_window_size, Fx_create_frame, x_display_info_for_name,
7681 Fx_display_list, x_create_tip_frame): Likewise.
7682 * xmenu.c (menubar_id_to_frame, single_keymap_panes,
7683 Fx_popup_menu, Fx_popup_dialog): Likewise.
7684 * xselect.c (x_own_selection, x_get_local_selection,
7685 x_handle_selection_request, x_handle_selection_clear,
7686 x_clear_frame_selections, wait_for_property_change_unwind,
7687 wait_for_property_change, x_handle_property_notify,
7688 copy_multiple_data, x_get_foreign_selection,
7689 lisp_data_to_selection_data, clean_local_selection_data,
7690 x_handle_selection_notify, Fx_get_selection_internal,
7691 x_disown_buffer_selections): Likewise.
7692 * xterm.c (x_window_to_scroll_bar, XTread_socket, x_list_fonts,
7693 x_load_font, x_find_ccl_program, x_term_init, x_delete_display):
7694 Likewise.
7695
7696 * alloc.c (make_float, make_pure_float, Fpurecopy): Use
7697 XFLOAT_DATA.
7698 * bytecode.c (Fbyte_code): Likewise.
7699 * floatfns.c (extract_float, Fexpt, Fabs, rounding_driver,
7700 fmod_float): Likewise.
7701
77021999-09-11 Richard Stallman <rms@gnu.org>
7703
7704 * xdisp.c (run_window_scroll_functions): If hook functions switch
7705 buffers, switch back after.
7706
77071999-09-11 Ken Raeburn <raeburn@gnu.org>
7708
7709 * charset.h (GET_TRANSLATION_TABLE): Use XCDR.
7710 * frame.h (FOR_EACH_FRAME): Use XCAR and XCDR.
7711 (PIXEL_X_FROM_CANON_X, PIXEL_Y_FROM_CANON_Y): Use XFLOAT_DATA.
7712 * keyboard.h (EVENT_HEAD, EVENT_START, EVENT_END, POSN_WINDOW,
7713 POSN_BUFFER_POSN, POSN_WINDOW_POSN, POSN_TIMESTAMP): Use XCAR and
7714 XCDR.
7715 * syntax.h (SYNTAX, SYNTAX_WITH_FLAGS, SYNTAX_MATCH): Use XCAR and
7716 XCDR.
7717
77181999-09-10 Richard Stallman <rms@gnu.org>
7719
7720 * xterm.c (XTread_socket): In XSetInputFocus, use RevertToParent,
7721 not RevertToPointerRoot.
7722 (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
7723 Fix the code to clear around the scroll bar.
7724
77251999-09-10 Keisuke Nishida <kxn30@po.cwru.edu>
7726
7727 * print.c: Support print-circle and related features.
7728 (Vprint_gensym_alist): Removed.
7729 (Vprint_circle, Vprint_continuous_numbering, print_number_index
7730 Vprint_number_table): New variables.
7731 (PRINT_NUMBER_OBJECT, PRINT_NUMBER_STATUS): New macros.
7732 (PRINTPREPARE, PRINTFINISH): Don't set Vprint_gensym_alist.
7733 (print, print_preprocess, print_preprocess_string, print_object):
7734 New/modified functions with print-circle feature. Use
7735 Vprint_number_table instead of Vprint_gensym_alist for print-gensym.
7736 (syms_of_print): Defined new Lisp variables `print-circle',
7737 `print-continuous-numbering', `print-number-table'.
7738
77391999-09-10 Gerd Moellmann <gerd@gnu.org>
7740
7741 * xfns.c (x_build_heuristic_mask): Accept a list `(R G B)'
7742 as background color specification instead of an integer.
7743 (image-cache-eviction-delay): Replaces image-eviction-seconds.
7744 (Vimage_cache_eviction_delay): Replaces Vimage_eviction_seconds.
7745 (clear_image_cache, syms_of_xfns): Use it.
7746 (Qpostscript): Replaces Qghostscript.
7747 (gs_type): Use it.
7748 (gs_image_p): Ditto.
7749 (syms_of_xfns): Initialize Qpostscript.
7750
77511999-09-10 Richard Stallman <rms@gnu.org>
7752
7753 * buffer.c (Ferase_buffer): Don't erase the minibuffer prompt.
7754
77551999-09-09 Richard Stallman <rms@gnu.org>
7756
7757 * editfns.c (Fline_beginning_position): Handle minibuffer prompt here.
7758
7759 * cmds.c (Fbeginning_of_line): Don't handle minibuffer prompt here.
7760
77611999-09-09 Gerd Moellmann <gerd@gnu.org>
7762
7763 * fns.c (Fmakehash): Accept just one optional argument TEST.
7764
7765 * xfns.c (QCindex): New.
7766 (syms_of_xfns): Initialize QCindex.
7767 (gif_load): Use it instead of `:image'.
7768
77691999-09-09 Richard Stallman <rms@gnu.org>
7770
7771 * fileio.c (Fwrite_region): Finish renaming CONFIRM to MUSTBENEW.
7772 (Fwrite_region) [DOS_NT]: Handle `excl' here too.
7773
77741999-09-08 Gerd Moellmann <gerd@gnu.org>
7775
7776 * xdisp.c (Qwhen): Replaces QCwhen.
7777 (syms_of_xdisp): Initialized it instead of QCwhen.
7778 (handle_single_display_prop): Use it instead of QCwhen.
7779
77801999-09-08 Ken'ichi Handa <handa@gnu.org>
7781
7782 * charset.c (translate_char): Reset MSBs of arguments of
7783 MAKE_CHAR.
7784 (CHAR_COMPONENTS_VALID_P): Fix for ASCII.
7785
77861999-09-08 Lars Magne Ingebrigtsen <larsi@gnus.org>
7787
7788 * editfns.c (Fbufsize): Accept an extra BUFFER parameter.
7789
7790 * fns.c (Fbase64_decode_region): Don't place point outside of the
7791 current accessible portion.
7792
77931999-09-07 Richard Stallman <rms@gnu.org>
7794
7795 * keymap.c (fix_submap_inheritance): Do nothing if the proper
7796 parent is an ancestor of SUBMAP; otherwise, add it as the
7797 ultimate ancestor.
7798
77991999-09-07 Gerd Moellmann <gerd@gnu.org>
7800
7801 * xdisp.c (handle_single_display_prop): Change conditional
7802 display property to `:when FORM . VALUE'.
7803
78041999-09-07 Richard Stallman <rms@gnu.org>
7805
7806 * fileio.c (Fwrite_region): Doc fix.
7807
78081999-09-07 Stefan Monnier <monnier@cs.yale.edu>
7809
7810 * fileio.c (Qexcl): New variable.
7811 (report_file_error): Handle EEXIST specially.
7812 (Fwrite_region): Special handling for CONFIRM = `excl'.
7813 (syms_of_fileio): Initialize Qexcl.
7814
78151999-09-07 Gerd Moellmann <gerd@gnu.org>
7816
7817 * xfns.c (x_set_foreground_color): Call
7818 update_face_from_frame_parameter.
7819 (x_set_background_color): Ditto.
7820 (x_set_mouse_color): Ditto.
7821 (x_set_cursor_color): Ditto.
7822 (x_set_border_color): Ditto.
7823 (x_set_scroll_bar_foreground): Ditto.
7824 (x_set_scroll_bar_background): Ditto.
7825
7826 * xfaces.c (recompute_basic_faces): Clear face cache.
7827 (Finternal_set_lisp_face_attribute): Modify frame parameters
7828 if attributes of certain faces are changed.
7829 (update_face_from_frame_parameter): New.
7830
7831 * xfaces.c (realize_basic_faces): Realize new basic faces.
7832
7833 * dispextern.h (SCROLL_BAR_FACE_ID, BORDER_FACE_ID,
7834 CURSOR_FACE_ID, MOUSE_FACE_ID): New.
7835
7836 * xfaces.c (Qscroll_bar, Qcursor, Qborder, Qmouse): New.
7837 (syms_of_xfaces): Intialize new symbols.
7838
7839 * fns.c (Fmakehash): Take one argument, test, make all the
7840 rest keyword arguments.
7841
7842 * window.c (Fset_window_margins): Make window the first argument.
7843 (set_window_buffer): Call Fset_window_margins with window as first
7844 argument.
7845
78461999-09-07 Gerd Moellmann <gerd@gnu.org>
7847
7848 * xfaces.c (Qfringe): Replaces Qmargin.
7849
78501999-09-07 Kenichi Handa <handa@etl.go.jp>
7851
7852 * charset.h: Lots of comments fixed.
7853 (PARSE_MULTIBYTE_SEQ): Make it work also for ASCII string.
7854 (STRING_CHAR_AND_CHAR_LENGTH): This macro removed.
7855
7856 * charset.c : Lots of comments fixed.
7857 (SPLIT_MULTIBYTE_SEQ): Make it work also for ASCII string.
7858 (CHAR_COMPONENTS_VALID_P): Name changed from
7859 CHAR_COMPONENT_VALID_P. Caller changed.
7860
78611999-09-06 Richard Stallman <rms@gnu.org>
7862
7863 * insdel.c (syms_of_insdel): Define Lisp variable
7864 inhibit-modification-hooks.
7865
78661999-09-06 Michael Sperber [Mr. Preprocessor] <sperber@informatik.uni-tuebingen.de>
7867
7868 * s/aix4-2.h (ALIGN_DATA_RELOC): Undefined to support new
7869 unexaix.c.
7870
7871 * s/aix3-1.h (ALIGN_DATA_RELOC): Defined to support new unexaix.c.
7872
78731999-09-06 Dave Love <fx@gnu.org>
7874
7875 * unexaix.c: New version incorporating Michael Sperber's changes
7876 from XEmacs. Should solve problems on AIX 4.3.
7877
7878 * lread.c (Vbyte_boolean_vars): New variable.
7879 (defvar_bool, syms_of_lread): Use it.
7880
78811999-09-05 Richard Stallman <rms@gnu.org>
7882
7883 * minibuf.c (read_minibuf): Put all three properties on the
7884 same range, the whole prompt.
7885
78861999-09-05 Gerd Moellmann <gerd@gnu.org>
7887
7888 * sound.c (Qplay_sound_functions): Replaces Qplay_sound_hook.
7889 (Fplay_sound, syms_of_sound): Use it.
7890 (parse_sound): Allow float volume values in the range [0, 1].
7891 (Fplay_sound): Ditto.
7892
7893 * window.c (Fset_window_vscroll): Make window the first argument,
7894 amount to scroll the second. Take non-negative vscroll as
7895 argument.
7896 (Fwindow_vscroll): Return non-negative vscroll.
7897
7898 * xfns.c (Fx_show_tip): Improve documentation.
7899
79001999-09-05 Gerd Moellmann <gerd@gnu.org>
7901
7902 * buffer.c, buffer.h, dispextern.h, dispnew.c, keyboard.c,
7903 window.c, xdisp.c, xfaces.c, xterm.c, keyboard.h: Change
7904 `top-line' and `top_line' to `header-line' and `header_line'.
7905 Likewise for similar spellings.
7906
79071999-09-05 Gerd Moellmann <gerd@gnu.org>
7908
7909 * xdisp.c (row_containing_pos): New.
7910 (try_window_id): Use it.
7911
7912 * alloc.c, dispextern.h, dispnew.c, frame.c, frame.h, keyboard.c,
7913 lisp.h, termhooks.h, window.c xdisp.c, xfaces.c, xfns.c, xterm.c:
7914 Change spelling of `toolbar' to `tool_bar' or `tool-bar'.
7915 Likewise for upper-case etc.
7916
79171999-09-05 Gerd Moellmann <gerd@gnu.org>
7918
7919 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
7920 Fix reference to renamed variable.
7921
79221999-09-04 Gerd Moellmann <gerd@gnu.org>
7923
7924 * window.c (Qwindow_size_fixed): Replaces Qfixed_window_size.
427ec082 7925 (window_fixed_size_p): Use Qwindow_size_fixed instead of
26901792
DL
7926 Qfixed_window_size.
7927 (syms_of_window): Ditto.
7928
7929 * fns.c (Fmakehash): Exchange optional test and size arguments.
7930
79311999-09-03 Gerd Moellmann <gerd@gnu.org>
7932
7933 * xterm.c (XTset_vertical_scroll_bar): Block input when clearing
7934 under newly created scroll bar.
7935 (expose_window): If window is not yet fully initialized, do
7936 nothing. This can happen when toolkit scroll bars are used and a
7937 window is split. Reconfiguring the scroll bars will generate an
7938 expose for a newly created window.
7939
7940 * frame.h (struct frame): New member `gamma'.
7941
7942 * xfns.c: Include math.h. Add extern declaration for atof in case
7943 we don't see one.
7944 (Qscreen_gamma): New.
7945 (struct x_frame_parm_table): Add prototypes, add
7946 x_set_screen_gamma.
7947 (gamma_correct): New function.
7948 (defined_color): Call it.
7949 (x_set_screen_gamma): New.
7950 (x_set_title): Add parameter old_value.
7951 (RES_TYPE_FLOAT): New.
7952 (x_get_arg): Handle RES_TYPE_FLOAT.
7953 (Fx_create_frame): Call x_default_parameter for `screen-gamma'.
7954 (lookup_pixel_color): Change call to x_alloc_nearest_color to
7955 new prototype.
7956 (lookup_rgb_color): Ditto.
7957 (syms_of_xfns): Initialize Qscreen_gamma.
7958
7959 * xterm.c (x_alloc_nearest_color_for_widget) [USE_X_TOOLKIT]:
7960 New. Allocate color for lwlib widgets.
7961 (x_alloc_nearest_color): Change parameter list include the
7962 frame on which to allocate colors. Gamma-correct colors.
7963 (x_alloc_lighter_color): Call x_alloc_lighter_color with new
7964 parameter list.
7965
7966 * xterm.h: Change protorype of x_alloc_nearest_color.
7967
79681999-09-03 Richard Stallman <rms@gnu.org>
7969
7970 * callproc.c: Delete the system-independent include of stdlib.h
7971 (leaving only the one in the WINDOWSNT conditional).
7972
79731999-09-03 Andrew Choi <choi@cs.hku.hk>
7974
7975 * callproc.c (call-process) [macintosh]: Call mac_run_command in
7976 sysdep.c. The Mac code is modeled after the DOS code.
427ec082 7977
26901792
DL
7978 * dispextern.h [macintosh]: Include macterm.h to define substitute X
7979 Window types and macros.
7980
7981 * frame.h: Do nothing if included a second time.
7982 (enum output_method): Add mac_output frame type.
7983 (union output_data): Add new alternative `mac'.
7984 (FRAME_MAC_P): New macro.
427ec082 7985
26901792
DL
7986 * frame.c (Fframep) [macintosh]: Handle mac frame type.
7987 (syms_of_frame_1): Initialize Qmac.
7988 (make_terminal_frame) [macintosh]: Initialize output_data.mac fields.
7989 (Fmake_terminal_frame) [macintosh]: Add an alternate error check.
7990 (Fmodify_frame_parameters) [macintosh]: Call
7991 mac_set_frame_parameter in macterm.c.
427ec082 7992
26901792
DL
7993 * keyboard.c [macintosh]: Set KBD_BUFFER_SIZE to a smaller value
7994 (512) because Mac compilers limit local data of a function to 32K.
427ec082 7995
26901792
DL
7996 * make-docfiles.c: Correctly handle input files with Mac-style
7997 eol's.
427ec082 7998
26901792 7999 * sysdep.c: Define numerous routines to emulate Unix system calls.
427ec082 8000
26901792
DL
8001 * xfaces.c: on MacOS, define the set of colors listed in rgb.txt
8002 file of an X Window environment.
427ec082 8003
26901792
DL
8004 * xfaces.c: on MacOS, define the Lisp functions x-display-color-p,
8005 x-display-grayscale, x-color-defined-p, and x-color-values.
427ec082 8006
26901792
DL
8007 * sysdep.c [macintosh] (stat, fstat, mkdir, rmdir, utime, access)
8008 (open, creat, unlink, read, write, rename, fopen, pause, alarm)
8009 (signal, sleep, gmtime, localtime, ctime, time, index, mktemp)
8010 (getpwuid, getpwnam, dup, dup2, isatty, getgid, getegid, getuid)
8011 (geteuid, getpid, getenv, uname, opendir, closedir, readdir, getwd.):
8012 New functions, replacing POSIX features.
427ec082 8013
26901792
DL
8014 * sysdep.c [macintosh] (Mac2UnixPathname, Unix2MacPathname, CheckAlarm)
8015 (InitMyPasswd, GetTempDirName, mystrchr, mystrtok, mystrcpy):
8016 (InitEmacsPasswdDir, run_mac_command): New subroutines.
8017
8018 * sysdep.c [macintosh] (targetTicks, alarm_signal_func, myPasswdName)
8019 (myPasswd, emacsPasswdDir, emacsPasswd, myPasswdInited, mask)
8020 (myPasswdDir, TempDirName, sys_siglist): New variables.
8021
8022 * sysdep.c [macintosh] (execvp, wait, croak, fork, kill, sigsetmask)
8023 (sigblock, request_sigio, unrequest_sigio, setpgrp, pipe, symlink)
8024 (link, lstat, readlink, umask, chmod, sbrk, fsync, ioctl):
8025 Define empty stubs so Emacs will link.
8026
80271999-09-03 Gerd Moellmann <gerd@gnu.org>
8028
8029 * xdisp.c: Use XCAR and XCDR instead of XCONS.
8030
8031 * window.h: New member frozen_window_start_p.
8032
8033 * window.c (foreach_window, foreach_window_1): New.
8034 (freeze_window_start, freeze_window_starts): New.
8035 (make_window): Initialize frozen_window_start_p.
8036 (replace_window): Ditto.
8037 (Fset_window_point): Remove references to deleted variables.
8038 (Fset_window_start): Ditto.
8039
8040 * xdisp.c (Vresize_mini_config, resize_mini_frame,
8041 resize_mini_initial_height): Removed.
8042 (syms_of_xdisp): Remove references to these variables.
8043 (resize_mini_window): Don't save window configuration, freeze
8044 window starts instead. Enlarge window until displaying an empty
8045 buffer, then shrink it. Make the function externally visible.
8046 (redisplay_window): Treat frozen window start like forced start,
8047 but accept point outside of the window.
8048
8049 * dispextern.h: Add function prototype for resize_mini_window.
8050
8051 * minibuf.c (read_minibuf_unwind): Resize mini-window when
8052 reaching minibuf_level 0.
8053
8054 * lisp.h: Remove extern declarations for variables deleted from
8055 xdisp.c.
8056
8057 * dispnew.c (adjust_frame_glyphs): Remove reference to
8058 Vresize_mini_config.
8059
80601999-09-03 Gerd Moellmann <gerd@gnu.org>
8061
8062 * xfns.c (x_set_scroll_bar_width): Change conditional compilation
8063 to USE_TOOLKIT_SCROLL_BARS.
8064
8065 * xterm.c (x_scroll_bar_create): Don't clear under scroll bar
8066 here.
8067 (XTset_vertical_scroll_bar): Clarify position computations. Clear
8068 under newly created scroll bar. Put toolkit scroll bars in the
8069 middle of the area reserved for the scroll bar.
8070
80711999-09-03 Kenichi Handa <handa@etl.go.jp>
8072
8073 The following changes are for the new handling of mulitbyte
8074 sequence. Now, except for a composite character, no multibyte
8075 character in string/buffer has trailing garbage bytes. For
8076 instance, the length of string "\201\300\300" is now 2, the first
8077 character is Latin-1 A-grave, the second is raw \300.
8078
8079 * charset.h (MAKE_NON_ASCII_CHAR): Handle the case that C1 or C2
8080 are negative.
8081 (MAKE_CHAR): Don't set MSBs of C1 and C2 to 0.
8082 (VALID_MULTIBYTE_CHAR_P): This macro deleted.
8083 (PARSE_COMPOSITE_SEQ): New macro.
8084 (PARSE_CHARACTER_SEQ): New macro.
427ec082 8085 (PARSE_MULTIBYTE_SEQ): New macro.
26901792
DL
8086 (CHAR_PRINTABLE_P): New macro.
8087 (STRING_CHAR): Adjusted for the change of string_to_non_ascii_char.
8088 (STRING_CHAR_AND_LENGTH): Likewise.
8089 (STRING_CHAR_AND_CHAR_LENGTH): Define it as STRING_CHAR_AND_LENGTH.
8090 (INC_POS): Use the macro PARSE_MULTIBYTE_SEQ.
8091 (DEC_POS, BUF_INC_POS, BUF_DEC_POS): Likewise,
8092
8093 * charset.c (SPLIT_COMPOSITE_SEQ): New macro.
8094 (SPLIT_CHARACTER_SEQ): New macro.
8095 (SPLIT_MULTIBYTE_SEQ): New macro.
8096 (CHAR_COMPONENT_VALID_P): New macro.
8097 (non_ascii_char_to_string): Generate a multibyte sequence as far
8098 as possible.
8099 (string_to_non_ascii_char): The 4th arg exclude_tail_garbage is
8100 deleted. Caller changed. Use the macro SPLIT_MULTIBYTE_SEQ.
8101 (split_non_ascii_string): Likewise.
8102 (multibyte_form_length): Use the macro PARSE_MULTIBYTE_SEQ.
8103 (char_printable_p): New function.
8104 (translate_char): Check character by NATNUMP instead of INTEGERP.
8105 (unibyte_char_to_multibyte): Call char_valid_p instead of
8106 VALID_MULTIBYTE_CHAR_P.
8107 (Fmake_char_internal): Check the arguments more rigidly.
8108 (Fcharset_after): Use the macro SPLIT_MULTIBYTE_SEQ.
8109 (char_valid_p): Check the validity by CHAR_COMPONENT_VALID_P.
8110 (Fmultibyte_char_to_unibyte): Check the validity of character by
8111 CHAR_VALID_P.
8112 (chars_in_text): Call multibyte_chars_in_text.
8113 (multibyte_chars_in_text): Use the macro PARSE_MULTIBYTE_SEQ.
8114 (Fcompose_string): Use the macro STRING_CHAR_AND_LENGTH instead of
8115 STRING_CHAR_AND_CHAR_LENGTH (which is obsolete now).
8116
8117 * data.c (Faset): Adjust the way to check byte-combining
8118 possibility for the new handling of multibyte sequence.
8119
8120 * editfns.c (Fsubst_char_in_region): Likewise.
8121
8122 * fns.c (count_combining): Use the macro PARSE_MULTIBYTE_SEQ.
8123 (string_char_to_byte): Likewise.
8124 (string_byte_to_char): Likewise.
8125
8126 * indent.c (MULTIBYTE_BYTES_WIDTH): Delete the 2nd arg C. Use the
8127 macro STRING_CHAR_AND_LENGTH. Caller changed.
8128
8129 * insdel.c (count_combining_composition): New function.
8130 (count_combining_before): Adjust the way to check byte-combining
8131 possibility for the new handling of multibyte sequence. Call
8132 count_combining_composition for a composite character.
8133 (count_combining_after): Likewise.
8134
8135 * print.c (print_string): Use the macro STRING_CHAR_AND_LENGTH.
8136 (print): Likewise.
8137
8138 * dispextern.h (struct it): Change the size of the member
8139 `ctl_chars'.
8140
8141 * xdisp.c (get_next_display_element): Display incomplete multibyte
8142 sequence (e.g. \222\300) by octal form.
8143
81441999-09-02 Gerd Moellmann <gerd@gnu.org>
8145
8146 * xterm.h (VERTICAL_SCROLL_BAR_WIDTH_TRIM): Change from 2 to 0.
8147
8148 * fns.c (Fhash_table_weakness): Replaces Fhash_table_weak.
8149 (cmpfn_eql, sxhash): Use XFLOAT_DATA.
8150
81511999-09-02 Gerd Moellmann <gerd@gnu.org>
8152
8153 * buffer.c (set_buffer_internal): Never set
8154 windows_or_buffers_changed.
8155
8156 * xdisp.c (try_window_id): Reset first_unchanged_at_end_row
8157 if we have displayed to the bottom of the window.
8158
8159 * syntax.c (Fforward_word): Stop at a mini-buffer prompt end
8160 in both directions. Extend documentation.
8161
81621999-09-01 Gerd Moellmann <gerd@gnu.org>
8163
8164 * minibuf.c (read_minibuf): Flush display after setting cursor to
8165 column 0.
8166
81671999-08-31 Gerd Moellmann <gerd@gnu.org>
8168
8169 * s/freebsd.h (__FreeBSD_version): Don't define it if it is
8170 already defined. This avoids a warning from buffer.c.
8171
81721999-08-30 Gerd Moellmann <gerd@gnu.org>
8173
8174 * xterm.h (FRAME_X_FLAGS_AREA_COLS): Define it as the total width
8175 of both margins.
8176 (FRAME_X_FLAGS_AREA_WIDTH): Likewise.
8177 (FRAME_X_LEFT_FLAGS_AREA_WIDTH): New.
8178 (FRAME_X_RIGHT_FLAGS_AREA_WIDTH): New.
8179
8180 * frame.h (FRAME_WINDOW_WIDTH_ARG): Add in FRAME_FLAGS_AREA_COLS
8181 once instead of twice.
8182 (FRAME_LEFT_FLAGS_AREA_WIDTH): New.
8183
8184 * xterm.c: Remove unused bitmaps.
8185 (continued_bits, continuation_bits, overlay_bits): Change images.
8186 (x_draw_vertical_border): Use FRAME_X_RIGHT_FLAGS_AREA_WIDTH
8187 instead of FRAME_X_FLAGS_AREA_WIDTH.
8188 (x_after_update_window_line): Ditto.
8189 (x_draw_bitmap): Likewise.
8190 (x_draw_row_bitmaps): Likewise.
8191 (x_draw_glyph_string_box): Likewise.
8192 (x_draw_glyphs): Likewise.
8193 (x_scroll_run): Likewise.
8194 (expose_window_tree): Likewise.
8195 (note_mode_line_highlight): Likewise.
8196 (XTset_vertical_scroll_bar): Likewise.
8197 (x_clip_to_row): Likewise.
8198 (x_set_window_size): Likewise.
8199
8200 * xfns.c (x_figure_window_size): Use FRAME_FLAGS_AREA_COLS instead
8201 of 2 * that value.
8202
8203 * xdisp.c (window_box_width): Use FRAME_FLAGS_AREA_COLS instead of
8204 2 * that value.
8205 (window_box_left): Use FRAME_LEFT_FLAGS_AREA_WIDTH instead of
8206 FRAME_FLAGS_AREA_WIDTH.
8207
8208 * window.c (coordinates_in_window): Use
8209 FRAME_LEFT_FLAGS_AREA_WIDTH instead of FRAME_FLAGS_AREA_WIDTH.
8210 (window_internal_width): Subtract FRAME_FLAGS_AREA_WIDTH once
8211 instead of twice.
8212
427ec082 8213 * widget.c (set_frame_size): Set flags_area_extra to
26901792
DL
8214 FRAME_FLAGS_AREA_WIDTH instead of 2 * that width.
8215 (EmacsFrameSetCharSize): Ditto.
8216
8217 * dispnew.c (mode_line_string): Add FRAME_LEFT_FLAGS_AREA_WIDTH
8218 instead of FRAME_FLAGS_AREA_WIDTH.
8219
8220 * dispextern.h (WINDOW_DISPLAY_PIXEL_WIDTH): Subtract
8221 FRAME_FLAGS_AREA_COLS once.
8222 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X): Add
8223 FRAME_LEFT_FLAGS_AREA_WIDTH instead of FRAME_FLAGS_AREA_WIDTH.
8224
82251999-08-30 Gerd Moellmann <gerd@gnu.org>
8226
8227 * freebsd.h (C_SWITCH_SYSTEM): Added to let configure find headers
8228 in /usr/X11R6/include which are checked for with AC_CHECK_HEADER.
8229
82301999-08-30 Gerd Moellmann <gerd@gnu.org>
8231
8232 * fns.c (QCweakness): Replaces QCweak.
8233 (Fmake_hash_table): Ditto.
8234 (Fmakehash): Ditto.
8235 (syms_of_fns): Ditto.
8236
82371999-08-29 Richard Stallman <rms@gnu.org>
8238
8239 * search.c (compile_pattern_1): Enable RE_CHAR_CLASSES for regexp.
8240
8241 * sysdep.c (read_input_waiting): Pass read_socket_hook just 4 args.
8242
8243 * syntax.h (SYNTAX_COMMENT_NESTED, SYNTAX_FLAGS_COMMENT_NESTED):
8244 Add support for nested comments.
8245
d7d0dac0
SM
8246 * syntax.c (Fforward_comment, scan_lists, scan_sexps_forward):
8247 Consolidate the forward comment code into the new `forw_comment'.
8248 (forw_comment): New subroutine. Added support for nested comments.
8249 (lisp_parse_state, back_comment, Fmodify_syntax_entry)
8250 (Fparse_partial_sexp): Add support for nested comments.
26901792
DL
8251
82521999-08-28 Ken Raeburn <raeburn@gnu.org>
8253
8254 * lisp.h (struct Lisp_Cons, XCAR, XCDR, struct Lisp_Float): Change
8255 names of structure elements if HIDE_LISP_IMPLEMENTATION is
8256 defined, to help detect code that uses knowledge of the Lisp
8257 internals that it shouldn't have.
8258 (XFLOAT_DATA): New macro.
8259
82601999-08-25 Gerd Moellmann <gerd@gnu.org>
8261
8262 * syntax.c (Fforward_word): If in a mini-buffer and moving
8263 backwards, stop in front of the prompt to prevent accidentially
8264 moving into the read-only prompt.
8265
8266 * window.c (Frecenter): Clear frame if called with nil or no arg.
8267
8268 * xdisp.c (resize_mini_window): Don't resize if
8269 Vmax_mini_window_height is nil. Otherwise, use a default if
8270 Vmax_mini_window_height is not ot a number.
8271 (syms_of_xdisp): Extend documentation of Vmax_mini_window_height.
8272
82731999-08-25 Alexandre Oliva <oliva@dcc.unicamp.br>
8274
8275 * unexelf.c: Merge IRIX debugging info patch from unexsgi.c
8276 * m/iris4d.h: Use unexelf for IRIX 5.*.
8277 * m/iris5d.h: Use unexelf for IRIX 6.*.
8278 * unexsgi.c: Deleted.
8279
8280 * unexelf.c: Auto-detect .sbss section.
8281 (round_up): Make it static.
8282 (unexec): Declare alignment as Elf Word. Skip ``Program
8283 segment above .bss'' test on MIPS without .sbss.
8284 Copy sections .got and .sdata1 sections. Adjust offsets in
8285 sections .sdata, .lit4, .lit8, .got and .sdata1.
8286
82871999-08-25 Gerd Moellmann <gerd@gnu.org>
8288
8289 * xdisp.c (try_window_id): Remove typo.
8290
82911999-08-24 Gerd Moellmann <gerd@gnu.org>
8292
8293 * xdisp.c (try_window_id): Recognize case that PT == ZV and in
8294 unchanged text at the bottom when computing the cursor position.
8295 (message3_nolog): Raise frame only if minibuffer_auto_raise is
8296 set.
8297
8298 * lisp.h (PVEC_TYPE_MASK): Add the bit for hash tables.
8299
83001999-08-24 Gerd Moellmann <gerd@gnu.org>
8301
8302 * xfaces.c (Qmargin): Replacement for Qbitmap_area.
8303 (realize_basic_faces): Replace Qmargin for Qbitmap_area.
8304 (syms_of_xfaces): Ditto.
8305
8306 * window.c (Fset_window_point): Reset Vresize_mini_config.
8307 (Fset_window_start): Ditto.
8308 (set_window_buffer): Ditto.
8309
8310 * dispnew.c (adjust_frame_glyphs): Reset Vresize_mini_config.
8311
8312 * xdisp.c (redisplay_window): Don't ever test just_this_one_p
8313 before calling try_window.
8314 (echo_area_display): If height has changed, update other windows.
8315 (resize_mini_frame, resize_mini_initial_height): New.
8316 (resize_mini_window): Save/restore window configuration
8317 differently.
8318
427ec082 8319 * lisp.h (Vresize_mini_config, resize_mini_frame,
26901792
DL
8320 resize_mini_initial_height): Add extern declarations.
8321
8322 * xterm.c (expose_window_tree): Fix typo CANON_Y_UNIT to
8323 CANON_X_UNIT.
8324
8325 * xfns.c [HAVE_JPEG]: Work around a warning about HAVE_STDLIB_H
8326 being redefined in jconfig.h.
8327
83281999-08-23 Ken'ichi Handa <handa@gnu.org>
8329
8330 * coding.h: Include "ccl.h" instead of "../src/ccl.h".
8331
83321999-08-22 Gerd Moellmann <gerd@gnu.org>
8333
8334 * alloc.c (mark_glyph_matrix): Mark strings only.
8335
8336 * xdisp.c (redisplay_internal): Clear garbaged frames after
8337 resizing mini-window.
8338
83391999-08-22 Gerd Moellmann <gerd@gnu.org>
8340
8341 * xdisp.c (unwind_with_echo_area_buffer): Use
8342 set_buffer_internal_1 instead of set_buffer_internal.
8343 (with_echo_area_buffer): Ditto.
8344
8345 * buffer.c (set_buffer_internal): Set windows_or_buffers_changed
8346 only if buffer is displayed somewhere.
8347
8348 * buffer.h (BUF_COMPUTE_UNCHANGED): New.
8349
8350 * insdel.c (gap_left): Use BUF_COMPUTE_UNCHANGED.
8351 (gap_right): Ditto.
8352 (modify_region): Ditto.
8353
8354 * buffer.c (modify_overlay): Use BUF_COMPUTE_UNCHANGED.
8355
8356 * xdisp.c (Vresize_mini_config): New.
8357 (resize_mini_window): Use it to save restore original window
8358 configuration
8359 (syms_of_xdisp): Initialize it.
8360
8361 * buffer.h (struct buffer): Add prevent_redisplay_optimizations_p.
8362
8363 * dispextern.h (struct glyph_matrix): Add buffer, begv, and zv.
8364
8365 * xdisp.c (reconsider_clip_changes): New.
8366 (redisplay_internal, redisplay_window): Call it.
8367 (mark_window_display_accurate, redisplay_internal): Set current
8368 matrix' buffer, begv, zv.
8369
8370 * window.c (Fset_window_hscroll): Set
8371 prevent_redisplay_optimizations_p instead of clip_changed.
8372 (Fset_window_hscroll): Ditto.
8373 (temp_output_buffer_show): Ditto.
8374 (Fset_window_vscroll): Ditto.
8375
8376 * buffer.c (reset_buffer): Set clip_changed to 0 and
8377 prevent_redisplay_optimizations_p to 1.
8378 (Fget_buffer_create): Set prevent_redisplay_optimizations_p to 1.
8379
8380 * buffer.h (BUF_UNCHANGED_MODIFIED, UNCHANGED_MODIFIED,
8381 BUF_OVERLAY_UNCHANGED_MODIFIED, OVERLAY_UNCHANGED_MODIFIED,
8382 BUF_BEG_UNCHANGED, BEG_UNCHANGED, BUF_END_UNCHANGED,
8383 END_UNCHANGED): New.
8384 (struct buffer_text): Add beg_unchanged, end_unchanged,
8385 unchanged_modified, overlay_unchanged_modified.
8386
8387 * window.h (beg_unchanged, end_unchanged, unchanged_modified,
8388 overlay_unchanged_modified): Removed.
8389 (with_echo_area_unwind_data): Don't save beg/end_unchanged.
8390 (unwind_with_echo_area_buffer): Don't restore them.
8391 (debug_beg_unchanged, debug_end_unchanged) [GLYPH_DEBUG]: Removed.
8392 (text_outside_line_unchanged_p, redisplay_internal,
8393 try_scrolling): Use/set buffer-specific beg/end_unchanged.
8394 (redisplay_window): Let try_window_id be called if more than one
8395 window is displayed. Use/set buffer-specific beg/end_unchanged.
8396 (get_last_unchanged_at_beg_row, get_first_unchanged_at_end_row,
8397 try_window_id):
8398 Use buffer-specific beg/end_unchanged.
8399
8400 * window.h (beg_unchanged, end_unchanged, unchanged_modified,
8401 overlay_unchanged_modified): Remove extern declarations.
8402
8403 * keyboard.c (command_loop_1): Set beg/end_unchanged per
8404 buffer.
8405
8406 * insdel.c (gap_left): Compute beg/end_unchanged per buffer.
8407 (gap_right): Ditto.
8408 (adjust_after_replace): Likewise.
8409 (replace_range, del_range_2, modify_region): Likewise.
8410
8411 * dispnew.c (direct_output_for_insert): Set beg_unchanged
8412 and unchanged_modified per buffer.
8413
8414 * coding.c (code_convert_region): Compute beg/end_unchanged per
8415 buffer.
8416
8417 * buffer.c (modify_overlay): Compute beg/end_unchanged
8418 per buffer.
427ec082 8419 (Fget_buffer_create): Initialize new members of the buffer
26901792
DL
8420 structure.
8421
84221999-08-22 Gerd Moellmann <gerd@gnu.org>
8423
8424 * lisp.h: Add prototype for copy_hash_table and Fcopy_hash_table.
8425
8426 * fns.c (Qkey, Qvalue): Renamed from Qkey_weak, and Qvalue_weak.
8427 (Qkey_value_weak): Removed.
8428 (make_hash_table): Use nil, `key', `value', t for weakness.
8429 (Fmake_hash_table): Ditto.
8430 (copy_hash_table): New.
8431 (Fcopy_hash_table): New.
8432
84331999-08-22 Gerd Moellmann <gerd@gnu.org>
8434
8435 * xfns.c: Call change_frame_size and do_pending_window_change with
d7d0dac0 8436 new parameter.
26901792
DL
8437
84381999-08-21 Gerd Moellmann <gerd@gnu.org>
8439
8440 * xdisp.c (resize_mini_window): Do it for truncate-lines t as
8441 well.
427ec082 8442 (redisplay_internal): Resize mini-window only if text might
26901792
DL
8443 have changed.
8444 (display_echo_area): Reset displayed echo_area_buffer to nil
8445 at the end if we're displaying a nil message.
8446
84471999-08-21 Gerd Moellmann <gerd@gnu.org>
427ec082 8448
26901792
DL
8449 * fns.c (hash_lookup): Test with EQ before calling key comparion
8450 function.
8451 (hash_remove): Ditto.
8452 (cmpfn_eq): Removed.
8453 (cmpfn_eql): Don't test with EQ.
8454 (cmpfn_equal): Ditto.
8455 (make_hash_table): Set comparison function for `eq' to null.
8456
8457 * buffer.c, cmds.c, editfns.c, indent.c, insdel.c, buffer.h:
8458 Remove conditional compilation on NO_PROMPT_IN_BUFFER.
8459
8460 * dispextern.h (NO_PROMPT_IN_BUFFER): Removed.
8461
8462 * window.c, widget.c, process.c, keyboard.c, frame.c, xdisp.c,
8463 xterm.c: Call change_frame_size and do_pending_window_change with
8464 new parameter.
8465
8466 * dispnew.c (do_pending_window_change): Add parameter `safe'.
8467 (change_frame_size): Ditto.
8468 (change_frame_size_1): Ditto. Deley size changes if redisplaying
8469 and not called from a safe place.
8470 (window_change_signal): Call change_frame_size with new parameter.
8471
8472 * dispextern.h: Change prototypes for do_pending_window_change
8473 and change_frame_size.
8474
8475 * xfaces.c (face_at_buffer_position): Don't xassert that
427ec082 8476 window's buffers equals current_buffer; this is not the
26901792
DL
8477 case during echo area display.
8478
84791999-08-21 Gerd Moellmann <gerd@gnu.org>
8480
8481 * xdisp.c, minibuf.c: Remove conditional compilation on
8482 NO_PROMPT_IN_BUFFER.
8483
8484 * minibuf.c (Fminibuffer_prompt_end): New.
8485 (syms_of_minibuf): Defsubr it. Remove
8486 minibuffer-prompt-in-buffer.
8487 (Fminibuffer_prompt_width): Return 0 if not in mini-buffer.
8488 Extend documentation.
8489
8490 * xdisp.c (get_next_display_element): Display \r as ^M.
8491
8492 * xterm.c (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]: Clear
8493 under scroll bar widget.
8494
84951999-08-21 Gerd Moellmann <gerd@gnu.org>
8496
8497 * xdisp.c (minibuffer_scroll_overlap): Removed because not used
8498 anywhere.
8499 (unwind_redisplay): Return nil.
8500 (clear_garbaged_frames): New.
8501 (redisplay_internal): Use it.
8502 (echo_area_display): Ditto.
8503 (resize_mini_window): Mew.
8504 (display_echo_area_1): Use it to resize echo area window.
8505 (redisplay_internal): Use it to resize active mini-window.
8506
8507 * dispextern.h, lisp.h: Add function prototypes.
8508
427ec082 8509 * dispnew.c (set_window_cursor_after_update): Do the
26901792
DL
8510 cursor_in_echo_area case only for a mini-window showing
8511 a message. Don't let cursor end up after the end of a row.
8512
8513 * xdisp.c (echo_area_glyphs, echo_area_message,
8514 echo_area_glyphs_length, previous_echo_glyphs,
8515 previous_echo_area_message, previous_echo_area_glyphs_length):
8516 Removed.
8517 (Vmessage_stack, echo_area_buffer, echo_buffer,
8518 display_last_displayed_message_p, Vwith_echo_area_save_vector): New.
8519 (message2_nolog): Use set_message and clear_message.
8520 (message3): Rename parameter len to nbytes to make clear what
8521 it is.
8522 (message3_nolog): Ditto. Use set_message and clear_message.
8523 (update_echo_area): Rewritten.
8524 (with_echo_area_buffer): New.
8525 (with_echo_area_buffer_unwind_data, unwind_with_area_buffer): New.
8526 (setup_echo_area_for_printing): New.
8527 (display_echo_area, display_echo_area_1): New.
8528
8529 (current_message, current_message_1): New.
427ec082 8530 (push_message, restore_message, pop_message,
26901792
DL
8531 check_message_stack): New.
8532 (truncate_echo_area): Rewritten.
8533 (truncate_message_1): New.
8534 (set_message, set_message_1, clear_message): New.
8535 (echo_area_display): Rewritten.
8536 (redisplay_internal): Check for needed echo area update
8537 differently.
8538 (redisplay_preserve_echo_area): Rewritten.
427ec082 8539 (redisplay_window): Check for mini-window displaying echo area
26901792
DL
8540 message differently.
8541 (syms_of_xdisp): Initialize Vmessage_stack and echo area buffers.
8542 Remove initialzation of removed variables.
8543 (init_xdisp): Remove references to removed variables.
8544
8545 * dispnew.c (adjust_frame_message_buffer): Removed references
8546 to echo_area_glyphs and previous_echo_glyphs.
8547 (direct_output_for_insert): Check for mini-window displaying
8548 echo area message differently.
8549 (update_frame): Likewise.
8550 (set_window_cursor_after_update): Likewise. In echo area,
8551 don't try to set cursor on rows that aren't enabled.
8552
8553 * print.c: Remove conditional compilation on `standalone'.
8554 (glyph_len, str_to_glyph_cpy, str_to_glyph_ncpy,
427ec082 8555 glyph_to_str_cpy): Remove that section because GLYPHs are no
26901792
DL
8556 longer used in that way.
8557 (PRINTDECLARE): Add multibyte.
8558 (PRINTPREPARE, PRINTFINISH): Handle printcharfun t differently.
8559 (printbufidx): Removed.
8560 (printchar, strout): Rewritten.
8561
8562 * keyboard.c (ok_to_echo_at_next_pause): Make it a pointer to
8563 a struct kboard.
8564 (echo_kboard): New.
8565 (echo_now): Set echo_kboard to the current kboard.
8566 (cancel_echoing): Set echo_kboard to null.
8567 (cmd_error_internal): Use clear_message, remove references
8568 to echo_area_glyphs and echo_area_message.
8569 (command_loop_1): Check for echo area messages differently.
8570 (read_char): Likewise.
8571 (record_menu_key): Use clear_message.
8572 (Fexecute_extended_command): Check for echo area messages
8573 differently. Use push_message, restore_message, pop_message.
8574
8575 * alloc.c (Fgarbage_collect): Use push_message, restore_message,
8576 pop_message.
8577
8578 * emacs.c (shut_down_emacs): Call check_message_stack.
8579
8580 * lisp.h: Add function prototypes and extern declarations for
8581 new functions and variables.
8582
8583 * fileio.c (Fdo_auto_save): Use push_message, restore_message,
8584 pop_message.
8585
427ec082 8586 * minibuf.c (read_minibuf): Use clear_message instead of
26901792
DL
8587 setting echo_area_glyphs.
8588 (Fminibuffer_completion_help): Ditto.
8589
8590 * editfns.c (Fcurrent_message): Rewritten.
8591
8592 * frame.c, window.h: Remove references to echo_area_glyphs
8593 and previous_echo_glyphs.
8594
85951999-08-21 Dave Love <fx@gnu.org>
8596
8597 * aix3-2-5.h (C_DEBUG_SWITCH): Use -g -O.
8598 * aix4-1.h: Likewise.
8599
8600 * irix6-5.h (C_DEBUG_SWITCH): Set for debug and optimize.
8601
86021999-08-20 Gerd Moellmann <gerd@gnu.org>
8603
8604 * xfns.c: Remove tiff34 prefix from include.
8605
86061999-08-20 Dave Love <fx@gnu.org>
8607
8608 * cm.c: Revert previous change.
8609
86101999-08-19 Gerd Moellmann <gerd@gnu.org>
8611
8612 * xterm.c (XTset_vertical_scroll_bar): Fix previous change. Clear
8613 under scroll bar with width FRAME_SCROLL_BAR_COLS.
8614
86151999-08-18 Dave Love <fx@gnu.org>
8616
8617 * callproc.c, filelock.c, insdel.c, sysdep.c, xmenu.c: Use
8618 stdlib.h.
8619
8620 * doprnt.c: Use stdlib.h, unistd.h.
8621
8622 * config.in: Add HAVE_TERMCAP_H.
8623
8624 * cm.c: Use termcap.h.
8625
86261999-08-18 Gerd Moellmann <gerd@gnu.org>
8627
8628 * xfns.c (x_window) [USE_X_TOOLKIT]: Remove test for
8629 FRAME_X_WINDOW (f) being null at the of the function. If widgets
8630 cannot be created we will already have crashed earlier. Call
8631 lw_set_main_areas with a null menu-bar widget, so that we have
8632 a reasonable default.
8633 (Fx_create_frame): Rearranged so that Lisp errors during frame
8634 initialization cause less damage. Initialize menu bar widget
8635 here.
8636
86371999-08-18 Gerd Moellmann <gerd@gnu.org>
427ec082 8638
26901792
DL
8639 * dispnew.c (update_frame_line): Fix previous change. If writing
8640 whole line clear to end of frame.
8641
86421999-08-17 Gerd Moellmann <gerd@gnu.org>
8643
8644 * window.c (Fcoordinates_in_window_p): Return `left-bitmap-area'
8645 and `right-bitmap-area' if position is in the bitmap areas. This
8646 avoids an error when clicking on the bitmap areas. Instead, they
8647 are currently treated like clicks inside the window.
8648 (coordinates_in_window): Return 5 and 6 for bitmap areas.
8649 (Qleft_bitmap_area, Qright_bitmap_area): New.
8650 (syms_of_window): Initialize new symbols.
8651
8652 * dispnew.c (update_frame_line): If writing whole line,
8653 don't write trailing spaces unless we must.
8654
8655 * xdisp.c (unwind_redisplay): New. Resets flag redisplaying_p.
8656 (redisplay_internal): Register unwind_redisplay with
8657 register_unwind_protect.
8658 (try_window_reusing_current_matrix): If new start > old start,
8659 give up if start pos of first reusable row is not equal to new
8660 start.
8661
8662 * eval.c (Fsignal): Don't reset redisplaying_p here.
8663
8664 * xterm.c (expose_area): If row extends face to end of line,
8665 write the whole line.
8666
86671999-08-16 Gerd Moellmann <gerd@gnu.org>
8668
8669 * dispextern.h (struct it): Remove member
8670 show_trailing_whitespace_p.
8671
8672 * dispnew.c (direct_output_for_insert): Use
8673 Vshow_trailing_whitespace instead of former iterator member
8674 show_trailing_whitespace_p.
8675 (direct_output_forward_char): Don't do it if hightlighting
8676 trailing whitespace.
8677
8678 * xdisp.c (Qshow_trailing_whitespace): Removed.
8679 (Vshow_trailing_whitespace): Added.
8680 (init_iterator): Remove initialization code for
8681 show_trailing_whitespace_p.
8682 (redisplay_internal): Don't try cursor movement in this_line
8683 if showing trailing whitespace.
8684 (redisplay_window): Likewise for cursor movement in current
8685 matrix and try_window_id.
8686 (try_window_reusing_current_matrix): Likewise.
8687 (trailing_whitespace_p): Return 0 if trailing whitespace is
8688 in front of point.
8689 (display_line): Use Vshow_trailing_whitespace instead of
8690 former iterator member show_trailing_whitespace_p.
8691 (syms_of_xdisp): Add DEFVAR_LISP for show-trailing-whitespace.
8692
86931999-08-16 Gerd Moellmann <gerd@gnu.org>
8694
8695 * window.c (Fpos_visible_in_window_p): Rewritten.
8696
8697 * xfaces.c (add_to_log): Renamed from display_message.
8698 Don't display messages in echo area.
8699
8700 * xterm.c (x_draw_glyph_string_box): Use the background width
8701 of the glyph string for the width of the box.
8702
87031999-08-16 Stefan Monnier <monnier@cs.yale.edu>
8704
8705 * syntax.c (Fforward_comment): Set comstyle for Scomment_fence.
8706
87071999-08-16 Geoff Voelker <voelker@cs.washington.edu>
8708
8709 * xfns.c, w32fns.c (x_set_frame_parameters): Set foreground and
8710 background first, and then set other parameters that might
8711 depend upon their new values.
8712
87131999-08-15 Gerd Moellmann <gerd@gnu.org>
8714
8715 * xfaces.c (Vfont_list_limit): New.
8716 (syms_of_xfaces): Make it a user-variable.
8717 (DEFAULT_FONT_LIST_LIMIT): New.
8718 (sorted_font_list): If Vfont_list_limit is an integer > 0, list
8719 maximally that number of fonts, otherwise use
8720 DEFAULT_FONT_LIST_LIMIT.
427ec082 8721 (Fx_font_family_list): Bind `font-list-limit' to higher values
26901792
DL
8722 until we have all fonts.
8723 (Fxfont_list): Additionally return the full names of fonts and
8724 their registry and encoding.
8725
427ec082 8726 * xterm.c (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
26901792
DL
8727 Simplify clearing "under" scroll bar.
8728
8729 * window.c (Qfixed_window_size): New.
8730 (syms_of_window): Initialiaze it.
8731 (check_all_windows): Add return type void.
8732 (window_fixed_size_p): New. Return non-zero if window
8733 is fixed-size.
8734 (window_min_size_1): New.
8735 (window_min_size): Handle fixed-size windows.
8736 (size_window): New. Rewritten combination of set_window_height and
8737 set_window_width that handles fixed-size windows.
8738 (set_window_height): Call it.
8739 (set_window_width): Call it.
8740 (Fsplit_window): Give an error on attempt to split a fixed-size
8741 window.
8742 (change_window_height): Partly rewritten to handle fixed-size
8743 windows.
8744
87451999-08-13 Wolfgang Rupprecht <wolfgang@wsrcc.com>
8746
8747 * process.c (Fopen_network_stream): Fix previous change.
8748
87491999-08-13 Karl Heuer <kwzh@gnu.org>
8750
8751 * xdisp.c (line_number_display_limit_width): New var.
8752 (decode_mode_spec): Use it instead of hardcoded value.
8753 (syms_of_xdisp): Defvar it.
8754
87551999-08-13 Richard M. Stallman <rms@gnu.org>
8756
8757 * eval.c (run_hook_list_with_args): Gcpro `globals'.
8758 (run_hook_with_args): Likewise.
8759
8760 * window.h (struct window): New field too_small_ok.
8761
427ec082 8762 * window.c (set_window_height, set_window_width):
26901792
DL
8763 If window starts out "too small", set its too_small_ok flag.
8764 If window's too_small_ok flag is set, don't delete it
8765 unless it is so small it would cause a crash.
8766
87671999-08-13 Gerd Moellmann <gerd@gnu.org>
8768
8769 * window.c (MINSIZE): Removed.
8770 (window_min_size): New.
8771 (set_window_height): Use window_min_size.
8772 (change_window_height): Ditto.
8773
87741999-08-12 Gerd Moellmann <gerd@gnu.org>
8775
8776 * indent.c (vmotion): Don't add in mini-buffer prompt width
8777 if prompts are inserted into mini-buffer.
8778
87791999-08-12 Wolfgang Rupprecht <wolfgang@wsrcc.com>
8780
8781 * config.in: Add HAVE_GETADDRINFO.
8782 * process.c (Fopen_network_stream): Use getaddrinfo.
8783
87841999-08-11 Gerd Moellmann <gerd@gnu.org>
8785
8786 * xdisp.c (get_overlay_arrow_glyph_row): Set the charpos of
8787 glyphs to -1.
8788
8789 * xdisp.c (face_before_or_after_it_pos): If position after
8790 or before iterator's current position in the buffer is out
8791 of bounds, return the iterator's original face id.
8792
8793 * dispnew.c (mirror_make_current): If desired row isn't enabled,
8794 just swap glyphs pointers between current and desired row.
8795 (build_frame_matrix_from_leaf_window) [GLYPH_DEBUG]: Copy
8796 desired matrix method string to current matrix.
8797
87981999-08-11 Kenichi Handa <handa@etl.go.jp>
8799
8800 * lisp.h (CHAR_MODIFIER_MASK): New macro.
8801
8802 * lread.c (read_escape): For Control modifier, pay attention to
8803 multibyte character.
8804 (read1): Likewise. Singal error or a multibyte character which
8805 has a modifer bit. Check validity of Shift modifer.
8806
8807 * charset.c (non_ascii_char_to_string): Handle modifier bits as
8808 the same as Lisp reader.
8809
88101999-08-10 Richard M. Stallman <rms@gnu.org>
8811
8812 * charset.h (BCOPY_SHORT): Fix typo `unsigined'.
8813
88141999-08-10 Alexandre Oliva <oliva@dcc.unicamp.br>
8815
8816 * unexelf.c [__linux__ && __alpha__] (HAS_SBSS_SECTION): Define.
8817
88181999-08-10 Eli Zaretskii <eliz@gnu.org>
8819
8820 * msdos.c (IT_set_face): Abort if the default face is not realized
8821 and cached.
8822 (IT_write_glyphs): Reset the screen face to the default face
8823 before writing glyphs.
8824
8825 * xfaces.c (realize_default_face) [MSDOS]: Don't take default
8826 colors from the frame here.
8827 (realize_tty_face) [MSDOS]: Do it here. Update the face
8828 attributes with the actual name of the color taken from the
8829 frame.
8830
8831 * dosfns.c (msdos_stdcolor_name): Remove const from return value.
8832 * dosfns.h (msdos_stdcolor_name): Ditto for the prototype.
8833
8834 * frame.c (Fframe_parameters): Swap foreground and background
8835 colors returned in frame parameters if the frame has reverse in
8836 its parameter alist.
8837 (Fmake_terminal_frame): Make a unique copy of face_alist for
8838 each frame.
8839
88401999-08-07 Richard Stallman <rms@gnu.org>
8841
8842 * buffer.c (Fprevious_overlay_change): Just return
8843 the answer obtained from overlays_at.
8844
8845 * xfns.c (xpm_load) [!XpmAllocCloseColors]:
8846 Use XpmCloseness and attrs.closeness instead.
8847
88481999-08-06 Richard Stallman <rms@gnu.org>
8849
8850 * lread.c (Feval_buffer): New arg DO_ALLOW_PRINT.
8851
88521999-08-06 Geoff Voelker <voelker@cs.washington.edu>
8853
427ec082 8854 * dired.c (directory_files_internal, Fdirectory_files_and_attributes,
26901792
DL
8855 Ffile_attributes_lessp): New functions.
8856 (Fdirectory_files): Use directory_files_internal.
8857 (syms_of_dired): Initialize Fdirectory_files_and_attributes,
8858 Ffile_attributes_lessp.
8859
8860 * w32.c (stat): Check for directory ending in separator when
8861 doing readdir fast path.
8862
8863 * w32fns.c (x_set_icon_type): Support setting frame icons.
8864 * w32term.c (x_bitmap_icon): New function.
8865 (x_make_frame_visible, x_iconify_frame): Invoke x_bitmap_icon.
427ec082 8866
26901792
DL
88671999-08-06 Gerd Moellmann <gerd@gnu.org>
8868
8869 * xdisp.c (set_iterator_to_next): After delivering a character
8870 from a display vector, restore face and charset to what they were
8871 before the display vector was processed.
8872
88731999-08-06 Gerd Moellmann <gerd@gnu.org>
8874
8875 * xdisp.c (reseat_at_next_visible_line_start): New parameter
8876 on_newline_p.
8877 (set_iterator_to_next): After delivering last char
427ec082 8878 from display vector, reseat on next visible line start if
26901792
DL
8879 dpvec_char_len < 0.
8880 (next_element_from_buffer): Set dpvec_char_len to -1 for
8881 selective display.
8882
88831999-08-06 Gerd Moellmann <gerd@gnu.org>
8884
8885 * xdisp.c (compute_line_metrics): If first line's physical ascent
8886 is larger than its logical ascent, use the physical ascent, and
8887 make the row taller. Set row's overlapping_p flag.
8888
8889 * dispnew.c (redraw_overlapping_rows): Use flag overlapping_p.
8890 (direct_output_for_insert): Ditto.
8891
8892 * dispextern.h (struct glyph_row): Add overlapping_p.
8893
8894 * xterm.c (x_draw_phys_cursor_glyph): Redraw overlaps.
8895
8896 * dispextern.h (MATRIX_ROW_OVERLAPS_PRED_P): New.
8897 (MATRIX_ROW_OVERLAPS_SUCC_P): New.
8898
8899 * dispnew.c (direct_output_for_insert): Don't use this method if
8900 row is overlapped by others.
8901 (update_text_area): Write full line if current line is overlapped.
8902 (redraw_overlapped_rows): New.
8903 (update_window): Call it.
8904 (redraw_overlapping_rows): New.
8905 (update_window): Call it.
8906 (scrolling_window): Make sure overlapped_p flag in current rows is
8907 unchanged.
8908 (row_equal_p): Take rows overlapped_p flag into account.
8909
8910 * dispextern.h (struct glyph_row): Add flag overlapped_p.
8911
8912 * xterm.c (x_fix_overlapping_area): New.
8913 (x_redisplay_interface): Add x_fix_overlapping_area.
8914
8915 * dispnew.c (adjust_glyphs): Block input while adjusting matrices.
8916
89171999-08-06 Gerd Moellmann <gerd@gnu.org>
8918
8919 * xterm.c (x_draw_glyphs): Add parameter overlaps_p.
8920 (struct glyph_string): Add member for_overlaps_p.
8921 (x_get_glyph_string_clip_rect): If glyph string draws foreground
8922 of overlapping rows, clip to window bottom.
8923 (x_fill_glyph_string): Add parameter overlaps_p.
8924 (x_fill_composite_glyph_string): Ditto.
8925 (BUILD_GLYPH_STRINGS): Ditto.
8926 (BUILD_CHAR_GLYPH_STRINGS): Ditto.
8927 (x_draw_glyph_string): Don't draw anything but the foreground
8928 if glyph string draws row overlaps.
8929
8930 * dispnew.c (direct_output_for_insert): Don't use this
8931 optimization for rows that overlap others.
8932 (update_window_line): Return non-zero if display has changed.
8933 (update_text_area): Ditto.
8934 (update_window): Record if display has been changed.
8935
8936 * dispextern.h (MATRIX_ROW_OVERLAPPING_P): New.
8937
8938 * dispextern.h (struct redisplay_interface): Add
8939 fix_overlapping_area.
8940
8941 * xterm.c (x_append_glyph): Set glyph flag overlaps_vertically_p.
8942
8943 * dispextern.h (struct glyph): Add overlaps_vertically_p.
8944
8945 * xterm.c (x_produce_image_glyph): Compute iterator's physical
8946 ascent and descent.
8947 (x_produce_stretch_glyph): Ditto.
8948 (x_produce_glyphs): Ditto.
8949
8950 * xdisp.c (init_iterator): Reset physical line height info
8951 after producing special glyphs.
8952 (display_toolbar_line): Set physical line height info.
8953 (compute_line_metrics): Ditto.
8954 (display_line): Ditto.
8955 (display_string): Ditto.
8956
8957 * term.c (produce_glyphs): Set iterator's physical height
8958 information.
8959
8960 * dispnew.c (blank_row): Compute glyph row's physical height.
8961 (row_equal_p): Take physical row heights into account.
8962 (direct_output_for_insert): Ditto.
8963 (update_text_area): Ditto.
8964
8965 * dispextern.h (struct glyph_row): Add phys_ascent and
8966 phys_height.
8967 (struct it): Add phys_ascent, phys_descent, max_phys_ascent,
8968 max_phys_descent.
8969
89701999-08-04 Stefan Monnier <monnier@cs.yale.edu>
8971
8972 * buffer.c (switch_to_buffer_1): New subroutine, taken out from
8973 Fswitch_to_buffer.
8974 (no_switch_buffer): New function.
8975 (Fswitch_to_buffer): Call them. Don't get confused
8976 by "same-window" buffers in a dedicated frame.
8977
8978 * window.c (display-buffer): Don't get confused
8979 by "same-window" buffers in a dedicated frame.
8980
89811999-08-04 Andreas Schwab <schwab@gnu.org>
8982
8983 * insdel.c (insert_from_string_1): Check gap size against number
8984 of outgoing bytes, not incoming bytes.
8985
89861999-08-03 Tom Breton <tob@world.std.com>
8987
8988 * lread.c (read1): Added circular reading code to #N=.
8989 (SUBSTITUTE): New macro.
8990 (seen_list): New variable.
8991 (substitute_object_in_subtree): New function.
8992 (substitute_object_recurse): New function.
8993 (substitute_in_interval): New function.
8994
89951999-08-02 Eli Zaretskii <eliz@gnu.org>
8996
8997 * Makefile.in (frame.o, sysdep.o, xfaces.o): Depend on dosfns.h.
8998
8999 * frame.c (make_terminal_frame): Don't call init_frame_faces if
9000 noninteractive, for termcap frames as well.
9001
9002 * sysdep.c (init_sys_modes): Call init_frame_faces for termcap
9003 frames.
9004
90051999-08-01 Richard Stallman <rms@gnu.org>
9006
9007 * fns.c (internal_equal): Correct overlay comparison.
9008
83c8f461 90091999-07-31 Richard M. Stallman <rms@gnu.org>
26901792 9010
427ec082 9011 * xfns.c (x_set_internal_border_width):
26901792
DL
9012 Call do_pending_window_change. Don't block input, don't call XFlush.
9013 (x_set_vertical_scroll_bars): Call do_pending_window_change.
9014 (x_set_scroll_bar_width, x_set_font): Likewise.
9015
9016 * frame.c (Fset_frame_height): Call do_pending_window_change.
9017 (Fset_frame_width, Fset_frame_size): Likewise.
9018
9019 * xterm.c (x_set_window_size): When calling change_frame_size,
9020 specify 1 for DELAY.
9021
9022 * widget.c (EmacsFrameSetCharSize): Don't call
9023 do_pending_window_change here.
9024
90251999-07-30 Dave Love <fx@gnu.org>
9026
9027 * config.in: Add HAVE_STDLIB_H.
9028
90291999-07-30 Richard M. Stallman <rms@gnu.org>
9030
9031 * process.c (create_process): Detect failure of `pipe'.
9032
90331999-07-30 Keisuke Nishida <kei@psn.net>
9034
9035 * alloc.c (allocate_vectorlike): Add missing increment.
9036
9037 * data.c (Fdefalias): Call Ffset instead of duplicating code.
9038
9039 * keymap.c (get_keymap_1, get_keyelt): Check the type of OBJECT
9040 before calling indirect_function.
9041
90421999-07-30 Eli Zaretskii <eliz@gnu.org>
9043
9044 * dispextern.h (load_color, lookup_derived_face): Declare
9045 prototypes.
9046
9047 * dispnew.c (init_display) [MSDOS]: Don't initialize frame faces,
9048 it will be done later.
9049
9050 * frame.c (make_terminal_frame) [MSDOS]: Don't call
9051 init_frame_faces if non-interactive.
9052 (Fframe_parameters) [MSDOS]: Replace indexing into colornames[]
9053 array with a call to msdos_stdcolor_name. The font name is now
9054 "ms-dos", consistent with realize_tty_face.
9055
9056 * keyboard.c (cmd_error_internal): Don't kill Emacs if this is an
9057 MSDOS frame.
9058
9059 * window.c (Fset_window_configuration) [MSDOS]: Don't call
9060 x_set_toolbar_lines.
9061
9062 * xfaces.c (load_color): Remove static from definition and remove
9063 prototype.
9064 [MSDOS]: Add a DOS-specific version of load_color.
9065 (lookup_face): Replace FRAME_TERMCAP_P with !FRAME_WINDOW_P.
9066 (lookup_derived_face): New function.
9067 (realize_default_face): Support MSDOS frames.
9068 [MSDOS]: If fore/background colors are unspecified, inherit them
9069 from the frame.
9070 (realize_face): Support MSDOS frames.
9071 (realize_tty_face): Support MSDOS frames.
9072 [MSDOS]: If the face color is not in Vface_tty_color_alist, call
9073 load_color to try to find a suitable approximation. If the face
9074 is inverse-video, swap the foreground and background colors.
9075
9076 * dosfns.c (msdos_stdcolor_name, msdos_stdcolor_idx): New
9077 functions.
9078
9079 * dosfns.h (msdos_stdcolor_name, msdos_stdcolor_idx): Declare.
9080
9081 * msdos.h: Remove redundant declarations (most of them are now in
9082 dispextern.h).
9083
9084 * msdos.c (IT_set_face): Rewritten for the new redisplay engine.
9085 Use default frame colors if the face doesn't specify them; invert
9086 the colors if highlight is ON.
9087 (IT_write_glyphs): Rewritten for the new redisplay engine.
9088 (IT_change_line_highlight): Add (unused) parameter Y, since that's
9089 how the hook is called by term.c.
9090 (IT_copy_glyphs): New function, copies an area of the display in
9091 video RAM.
9092 (IT_insert_glyphs): Rewritten to DTRT instead of aborting, since
9093 redisplay now calls it even if char_ins_del_ok is zero.
9094 (IT_set_frame_parameters): Prototype changed. Calls the new
9095 load_color. Puts the new fore/background colors into the default
9096 face on current frame.
9097 (IT_menu_display): Rewritten to handle the new struct glyph
9098 instead of a char array.
9099 (XMenuActivate): Call lookup_derived_face to create and use
9100 special faces for the pop-up and drop-down menus.
9101
91021999-07-29 Gerd Moellmann <gerd@gnu.org>
9103
9104 * xterm.c (x_set_toolkit_scroll_bar_thumb): Don't call
9105 XawScrollbarSetThumb if thumb parameters haven't changed because
9106 that function apparently isn't optimized for this case.
9107
91081999-07-29 Eli Zaretskii <eliz@gnu.org>
9109
9110 * msdos.c (getdefdir): Don't return failure indication when
9111 _fixpath sets errno to ENOSYS.
9112
91131999-07-28 Gerd Moellmann <gerd@gnu.org>
9114
9115 * xdisp.c (string_char_and_length): New. Use it everywhere
9116 instead of STRING_CHAR_AND_LENGTH in xdisp.c.
9117
91181999-07-28 Kenichi Handa <handa@etl.go.jp>
9119
9120 * fns.c (count_combining): New function.
9121 (struct textprop_rec): New structure.
9122 (concat): Copy text properties correctly when byte combining
9123 occurs.
9124
91251999-07-28 Gerd Moellmann <gerd@gnu.org>
9126
9127 * xterm.c (x_setup_relief_color): Don't try smart color allocation
9128 if display is mono.
9129 (x_draw_row_bitmaps): If face has stipple, don't switch
9130 to foreground color for clearing areas, and set the fill style.
9131
9132 * xfaces.c (load_face_colors): Load background color if setting
9133 stipple, too.
427ec082 9134 (prepare_face_for_display): Use FillOpaqueStippled instead of
26901792
DL
9135 FillStippled.
9136
91371999-07-26 Ken'ichi Handa <handa@gnu.org>
9138
9139 * xterm.c (x_find_ccl_program): Add casting.
9140
9141 * w32fns.c (w32_find_ccl_program): Add casting.
9142
91431999-07-27 Gerd Moellmann <gerd@gnu.org>
9144
9145 * dispextern.h (struct glyph_row): Flag internal_border_p removed.
9146
9147 * xfns.c (x_create_tip_frame): Don't set bitmapIcon resource
9148 because this will try to access a nonexisting widget.
9149
91501999-07-26 Markus Rost <rost@gnu.org>
9151
427ec082 9152 * fns.c (Fgethash): Fix order of variables (patch by gerd).
26901792
DL
9153 (Fputhash): Ditto.
9154 (Fremhash): Ditto.
9155
91561999-07-26 Gerd Moellmann <gerd@gnu.org>
427ec082 9157
26901792
DL
9158 * widget.c (EmacsFrameSetCharSize): Don't add XtNborderWidth
9159 value to frame width and height.
9160
9161 * xterm.c (x_get_glyph_string_clip_rect): Take internal border
9162 into account for full-width windows. Don't add scroll bar width
9163 to width of clip rect.
9164 (x_draw_glyph_string_box): Add 1 to right x of full width lines.
9165 (x_set_glyph_string_background_width): Add 1 to background width.
9166 (x_draw_glyphs): Take internal border into account for full-width
9167 lines.
9168
91691999-07-26 Richard M. Stallman <rms@gnu.org>
9170
9171 * xfns.c (x_set_mouse_color): Always unload the old color.
9172 Don't allow nil as color value.
427ec082 9173 (x_set_cursor_color, x_set_background_color, x_set_foreground_color):
26901792
DL
9174 Always unload the old color.
9175
9176 * indent.c (Fmove_to_column): Extend end of line only if FORCE is t.
9177
91781999-07-26 Karl Heuer <kwzh@gnu.org>
9179
9180 * fns.c (Fy_or_n_p): Doc fix.
9181
91821999-07-26 Kenichi Handa <handa@etl.go.jp>
9183
9184 * ccl.h (setup_ccl_program): The type is changed to `int'.
9185
9186 * ccl.c (ccl_driver) <CCL_Call>: Now CCL program ID to call may be
9187 stored in the following CCL code. Adjusted for the change of
9188 Vccl_program_table.
9189 (resolve_symbol_ccl_program): Adjusted for the new style of
9190 embedded symbols (SYMBOL . PROP) in CCL compiled code. Return Qt
9191 is resolving failed.
9192 (ccl_get_compiled_code): New function.
9193 (setup_ccl_program): Function type changed from `void' to `int'.
9194 Resolve symbols in CCL_PROG.
9195 (Fccl_program_p): New function.
9196 (Fccl_execute): Get compiled CCL code by just calling
9197 setup_ccl_program.
9198 (Fccl_execute_on_string): Likewise.
9199 (Fregister_ccl_program): Adjusted for the change of
9200 Vccl_program_table.
9201
9202 * coding.c (setup_coding_system): Get compiled CCL code by just
9203 calling setup_ccl_program.
9204
9205 * xterm.c (x_find_ccl_program): Get compiled CCL code by just
9206 calling setup_ccl_program.
9207
9208 * w32fns.c (w32_find_ccl_program): Get compiled CCL code by just
9209 calling setup_ccl_program.
9210
92111999-07-23 Gerd Moellmann <gerd@gnu.org>
9212
9213 * xfaces.c (frame_update_line_height): Just use the height of the
9214 frame's fontset or font, instead of taking face fonts into
9215 account.
9216
9217 * xdisp.c (get_next_display_element): Display DEL as `^?'.
9218
92191999-07-23 Richard M. Stallman <rms@gnu.org>
9220
9221 * window.c (Fsplit_window): For default size, round up for left window.
9222
92231999-07-21 Joe Ramey <ramey@ti.com>
9224
d7d0dac0 9225 * filelock.c (lock_if_free): Return -1 if check_lock_owner
26901792
DL
9226 has returned -1 (lockfile exists but is not a symlink?).
9227
92281999-07-20 Gerd Moellmann <gerd@gnu.org>
9229
9230 * xterm.c (x_draw_bar_cursor): Use scratch_cursor_gc to
9231 because of a change in cursor_gc made in 20.4.
9232
92331999-07-19 Gerd Moellmann <gerd@gnu.org>
9234
9235 * xterm.c (x_calc_absolute_position): Subtract menu bar height
9236 for YNegative, if using X toolkit.
9237
427ec082 9238 * xfns.c (x_real_positions): Don't subtract window borders
26901792
DL
9239 from positions returned.
9240
92411999-07-17 Gerd Moellmann <gerd@gnu.org>
9242
9243 * xrdb.c (x_load_resources): Set double-click time defaults
9244 for Motif list boxes from double-click-time.
9245
9246 * fns.c (Vhash_table_tests): Remvoed.
9247 (Qhash_table_test): New.
9248 (syms_of_fns): Initialize Qhash_table_test.
9249 (Fmake_hash_table): Look up user-defined tests in symbol prop
9250 `hash-table-test'.
9251 (Fdefine_hash_table_test): Store test and hash function as
9252 symbol prop `hash-table-test'.
9253 (make_hash_table): Add parameters user_test and user_hash.
9254
9255 * window.c (set_window_buffer): Set window margins for tty
9256 frames, too.
9257 (Fset_window_margins): Ditto.
9258
9259 * term.c (append_glyph): Use glyph area of iterator instead of
9260 always TEXT_AREA.
9261
9262 * dispnew.c (update_frame_1): Add left margin width to cursor
9263 hpos.
9264 (direct_output_for_insert): Ditto.
9265 (direct_output_forward_char): Ditto.
9266
9267 * dispnew.c (adjust_glyph_matrix): Set glyph matrix' top_line_p.
9268
9269 * dispextern.h (struct glyph_matrix): Add top_line_p.
9270
92711999-07-16 Gerd Moellmann <gerd@gnu.org>
9272
9273 * frame.h (FRAME_WINDOW_REDISPLAY_P): Removed. Use FRAME_WINDOW_P
9274 instead.
9275
9276 * fns.c (cmpfn_eq): Add hash code parameters.
9277 (cmpfn_eql): Ditto.
9278 (cmpfn_equal): Ditto, and compare hash codes before calling Fequal.
9279 (cmpfn_user_defined): Likewise.
9280
92811999-07-15 Gerd Moellmann <gerd@gnu.org>
9282
9283 * lisp.h (DEFAULT_REHASH_THRESHOLD): Changed to 0.8.
9284
9285 * fns.c (maybe_resize_hash_table): Correct computation of
9286 index vector size.
9287 (make_hash_table): Ditto.
9288 (Fmakehash): New.
9289
9290 * xdisp.c (echo_area_display): Don't call redraw_garbaged_frames.
9291
9292 * alloc.c (gc_sweep): Call sweep_weak_hash_tables.
9293 (survives_gc_p): Make it externally visible.
9294 (mark_object): Ditto.
9295
9296 * fns.c (remove_hash_entry): Removed.
9297 (sweep_weak_hash_tables): New.
9298
9299 * print.c (print): Print more information about hash tables.
9300
9301 * xfns.c (image_spec_hash): Removed.
9302 (lookup_image): Use sxhash instead of image_spec_hash.
9303 (image_spec_equal_p): Removed.
9304 (lookup_image): Use Fequal instead of image_spec_equal_p.
9305
93061999-07-14 Gerd Moellmann <gerd@gnu.org>
9307
9308 * lisp.h (P_): Moved to top of file.
9309
9310 * fns.c (make_hash_table): Set new members.
9311
9312 * alloc.c (mark_object): Mark hash table's user_hash_function.
9313 Mark index vector for weak hash tables.
9314
9315 * lisp.h (struct Lisp_Hash_Table): Add user_cmp_function,
9316 user_hash_function, cmpfn, and hashfn.
9317
9318 * fns.c (build_hash): Removed.
9319 (hash_test): Removed.
9320 (cmpfn_eq, cmpfn_eql, cmpfn_equal, cmpfn_user_defined): New.
9321 (hashfn_eq, hashfn_eql, hashfn_equal, hashfn_user_defined): New.
9322
93231999-07-13 Gerd Moellmann <gerd@gnu.org>
9324
9325 * alloc.c (survives_gc_p): New.
9326
9327 * print.c (print): Add hash table handling.
9328
9329 * alloc.c (mark_object): Add code to mark hash tables.
9330
9331 * lisp.h (GC_HASH_TABLE_P): New.
9332
9333 * emacs.c (main): Call init_fns.
9334
9335 * fns.c (init_fns): New.
9336
9337 * fns.c: Add hash table implementation.
9338
9339 * lisp.h (PVEC_HASH_TABLE): New.
9340 (struct Lisp_Hash_Table): New.
9341 (XHASH_TABLE): New.
9342 (XSET_HASH_TABLE): New.
9343 (HASH_TABLE_P): New.
9344 (CHECK_HASH_TABLE): New.
9345 (DEFAULT_HASH_SIZE): New.
9346 (DEFAULT_REHASH_THRESHOLD): New.
9347 (DEFAULT_REHASH_SIZE): New.
9348
9349 * xterm.c (x_draw_glyphs): Add parameters real_start and real_end.
9350 (x_write_glyphs): Compute overwritten cursor using real start
9351 and end positions of display.
9352 (x_insert_glyphs): Ditto.
9353
93541999-07-10 Gerd Moellmann <gerd@gnu.org>
9355
9356 * keyboard.c (read_char): Use message3_nolog to show help-echo.
9357
9358 * dispnew.c (blank_row): Add y-position as parameter. Compute
9359 visible height.
9360
9361 * xdisp.c (next_element_from_string): Give padding spaces
9362 a position of -1.
9363
427ec082 9364 * dispnew.c (adjust_glyph_matrix): Some work to support
26901792
DL
9365 marginals areas on tty frames in a future version.
9366 (allocate_matrices_for_frame_redisplay): Ditto.
9367
9368 * xdisp.c (display_line): At ZV, set glyph row's displays_text_p
9369 to zero if number of glyphs in the row is <= 1.
9370
93711999-07-09 Gerd Moellmann <gerd@gnu.org>
9372
9373 * dispnew.c (buffer_posn_from_coords): Take left marginal area
9374 into account.
9375
9376 * xdisp.c (handle_display_prop): Don't reset area if handing
9377 a property from a string that came from a `display' property.
9378 (handle_single_display_prop): Don't handle recursive `display'
9379 properties.
9380 (handle_single_display_prop): Handle some display property
9381 forms for terminal frames.
9382 (Qimage): Moved here from xfns.c.
9383
9384 * dispextern.h (struct it): New field string_from_display_prop_p.
9385
9386 * xterm.c (x_clip_to_row): Don't let clip_rect include top
9387 line.
9388
93891999-07-08 Gerd Moellmann <gerd@gnu.org>
9390
9391 * xdisp.c (handle_single_display_prop): Handle `:when FORM'.
9392
9393 * window.c (set_window_buffer): Set window's vscroll to zero.
9394
9395 * xdisp.c (QCwhen): New.
9396 (display_prop_end): New.
9397 (handle_single_display_prop): Use it.
9398 (debug_method_add): Print buffer name if tracing.
9399 (try_window_reusing_current_matrix): Compute visible height
9400 of reused rows. Fix cursor position calculation in case of
9401 top-line.
9402
9403 * dispextern.h (struct redisplay_interface): Add parameter
9404 cursor_on_p to update_window_end_hook.
9405
9406 * xterm.c (x_update_window_end): Add parameter cursor_on_p.
9407
94081999-07-07 Gerd Moellmann <gerd@gnu.org>
9409
427ec082 9410 * xdisp.c (redisplay_internal): Ensure that redisplayinp_p
26901792
DL
9411 doesn't become negative when decrementing it.
9412
9413 * eval.c (Fsignal): Reset redisplaying_p to zero.
9414
9415 * xdisp.c (try_window_reusing_current_matrix): Call hooks
9416 for window update.
9417 (try_window_id): Ditto.
9418
9419 * xterm.c (x_clear_end_of_line): Handle top-line correctly.
9420 (x_scroll_run): Ditto.
9421 (any_help_event_p): New.
9422 (x_initialize): Set it to zero.
9423 (XTread_socket): Clear help echo only if any_help_event_p.
9424
9425 * xdisp.c (init_iterator): Set top_line_p.
9426 (start_display): Use correct initial y if top-line is present.
9427 (make_cursor_line_fully_visible): Bug fixes for top-line.
9428 (try_scrolling): Ditto.
9429 (try_window_reusing_current_matrix): Ditto.
9430
9431 * dispextern.h (struct it): Add top_line_p.
9432
9433 * dispnew.c (shift_glyph_matrix): Move some computations out
9434 of the loop.
9435
427ec082 9436 * dispnew.c (margin_glyphs_to_reserve): Use NUMBERP and
26901792
DL
9437 XFLOATINT.
9438
94391999-07-06 Gerd Moellmann <gerd@gnu.org>
9440
9441 * dispnew.c (update_frame_1): When setting cursor in echo area,
9442 skip only over padding spaces at the end.
9443
9444 * xfaces.c (realize_tty_face): Set face's font_name field to
9445 "tty".
9446
9447 * term.c (update_end): Turn cursor on only if selected window's
9448 cursor_off_p flag is not set.
9449
94501999-07-05 Gerd Moellmann <gerd@gnu.org>
9451
9452 * term.c (TS_cursor_visible): Renamed from TS_visual_mode.
9453 (TS_cursor_normal): Renamed from TS_end_visual_mode.
9454 (TS_cursor_invisible): New.
9455 (term_init): Initialize TS_cursor_invisible.
9456 (tty_hide_cursor): New.
9457 (tty_show_cursor): New.
9458 (update_end): Show tty cursor.
9459 (update_begin): Hide tty cursor to prevent cursor flickering
9460 during redisplays triggered by timers (stealth fontification).
9461
9462 * keyboard.c (make_lispy_event) <TOOLBAR_EVENT>: Apply modifiers.
9463
9464 * xterm.c (XTread_socket) [USE_MOTIF] <KeyPress>: Catch events
9465 in scroll bars.
9466 (x_handle_toolbar_click): Set modifier bits.
9467
94681999-07-04 Gerd Moellmann <gerd@gnu.org>
9469
9470 * keyboard.c (kbd_store_ptr): Declare it as a volatile pointer
9471 instead of a pointer to a volatile input_event.
427ec082 9472 (kbd_buffer_store_event): Remove volatile modifier from
26901792
DL
9473 declaration of local variable `sp'.
9474 (Fdiscard_input): Don't cast when assigning kbd_store_ptr
9475 to kbd_fetch_ptr.
9476
94771999-07-03 Gerd Moellmann <gerd@gnu.org>
9478
9479 * xdisp.c (try_window_id): Set beg_unchanged and end_unchanged
9480 only if buffer is modified. Return quickly if changes are
9481 above window start.
9482
94831999-07-02 Gerd Moellmann <gerd@gnu.org>
9484
9485 * dispextern.h (HSCROLL_WINDOWS): Removed.
9486
9487 * xdisp.c (mark_window_display_accurate): Don't set
9488 w->region_showing.
9489 (redisplay_internal): Don't call redraw_garbaged_frames.
9490
94911999-07-01 Gerd Moellmann <gerd@gnu.org>
9492
9493 * xdisp.c (echo_area_display): Don't display truncation marks
9494 for messages because 20.4 doesn't do it either.
9495 (redisplay_window): Case same window start. Instead of giving
9496 up when cursor is partially visible, make it fully visible.
9497 (mark_window_display_accurate): Some cleanup. Record window's
9498 last cursor information.
9499 (debug_method_add): Improved.
9500 (redisplay_internal): Record last cursor info only if not
9501 consider_all_windows_p.
9502
9503 * dispnew.c (update_window): Update top line after scrolling.
9504 (blank_row): Renamed from make_empty_enabled_row.
9505 (increment_glyph_row_buffer_positions): Increment positions
9506 in buffers, only.
9507
9508 * window.c (Fcoordinates_in_window_p): Add top-line to doc
9509 string.
9510
95111999-06-30 Gerd Moellmann <gerd@gnu.org>
9512
9513 * dispnew.c (update_window): Check that updated row is visible.
9514
9515 * xterm.c (x_draw_row_bitmaps): Check for invisible rows at
9516 top of window differently.
9517
9518 * xdisp.c (try_window_reusing_current_matrix): Don't do it
9519 if region is showing.
9520
9521 * dispnew.c (adjust_glyph_matrix): Check w->vscroll when
9522 avoiding matrix reallocation. Set window_vscroll in matrix.
9523
9524 * dispextern.h (struct glyph_matrix): Add member window_vscroll.
9525
26901792
DL
9526 * xdisp.c (debug_method_add): New.
9527 (debug_redisplay_method): Removed.
9528 (try_window_reusing_current_matrix): Handle case where old
9529 window start is the same as new window start.
9530
9531 * dispextern.h (struct glyph_matrix) [GLYPH_DEBUG]: Make `method'
9532 an array instead of a pointer.
9533
26901792
DL
9534 * xfns.c (Fx_show_tip): Undo previous change.
9535
9536 * xterm.c (x_append_glyph): Clear glyph->u.val.
9537
9538 * dispextern.h (struct glyph): Increase size of face_id bit-field
9539 for CHAR_GLYPH to 12.
9540
95411999-06-29 Gerd Moellmann <gerd@gnu.org>
9542
9543 * xfaces.c (x_charset_registry): Make it externally visible.
9544
95451999-06-28 Gerd Moellmann <gerd@gnu.org>
9546
427ec082 9547 * dispnew.c (update_window): Use mode_line_p flag of rows
26901792
DL
9548 instead of WINDOW_WANTS_MODELINE_P.
9549
9550 * xterm.c (clear_mouse_face): Make externally visible.
9551
9552 * xfns.c (Fx_show_tip): Clear mouse face before showing tip.
9553
9554 * xterm.c (expose_line): Handle exposure of top-lines.
9555
9556 * xterm.c (XTframe_up_to_date): Don't call note_mouse_highlight
9557 if mouse_face_mouse_frame is null.
9558
9559 * xdisp.c (redisplay_window): If window is echo_area_window,
9560 and update_mode_line is set, update menubar and toolbar.
9561
9562 * dispnew.c (space_glyph): Set its charpos to -1.
9563 (update_frame_1): Ignore trailing padding spaces.
9564
9565 * xdisp.c (next_element_from_c_string): Set position of padding
9566 glyphs to -1.
9567
95681999-06-27 Gerd Moellmann <gerd@gnu.org>
9569
9570 * xfns.c (x_laplace_read_row): Use XQueryColors instead of
9571 XQueryColor.
9572
9573 * xdisp.c (display_menu_bar): Remove unwarranted assertion.
9574 (set_cursor_from_row): Skip over glyphs having a null object at
9575 the start of rows.
9576 (insert_left_trunc_glyphs): Use charpos < 0 to indicate truncation
9577 glyphs.
9578 (handle_invisible_prop): Compute next change only when needed.
9579 (handle_face_prop): Don't correct DEFAULT_FACE_ID if in the mode
9580 line.
9581
95821999-06-26 Gerd Moellmann <gerd@gnu.org>
9583
9584 * xrdb.c (x_load_resources): Don't set resource for double-click
9585 time.
9586
9587 * xdisp.c (try_window_id): Return quickly if all changes are
9588 below the window's current matrix end.
9589
9590 * dispextern.h (MATRIX_ROW_PARTIALLY_VISIBLE_P): Remove window
9591 parameter.
9592
9593 * xdisp.c (try_window_reusing_current_matrix): Set no_scrolling_p
9594 in desired not in current matrix.
9595 (try_window_reusing_current_matrix): Rotate matrices starting
9596 at start_vpos instead of 0.
9597
9598 * xterm.c (expose_window): Use window_text_bottom_y.
9599 (fast_find_position): Ditto.
9600
9601 * xdisp.c (redisplay_window): Use window_text_bottom_y.
9602 (try_window_reusing_current_matrix): Ditto.
9603 (get_last_unchanged_at_beg_row): Ditto.
9604 (init_iterator): Ditto.
9605
9606 * dispnew.c (allocate_matrices_for_window_redisplay): Allocate one
9607 more row.
9608 (check_matrix_invariants): Use window_text_bottom_y.
9609 (update_window): Ditto.
9610 (scrolling_window): Ditto.
9611
9612 * xdisp.c (window_text_bottom_y): New.
9613
96141999-06-25 Gerd Moellmann <gerd@gnu.org>
9615
9616 * xterm.c (XTread_socket): Set mouse_face_frame to zero after
9617 clearing mouse face.
9618 (XTread_socket) <EnterNotify> [LESSTIF_VERSION]: If
9619 event.xcrossing.focus is not set, and focus is in the menu bar,
9620 set focus frame as if event.xcrossing.focus were set.
9621
96221999-06-24 Gerd Moellmann <gerd@gnu.org>
9623
9624 * keyboard.c (make_lispy_event): Handle mouse on top lines.
9625 * keyboard.c (make_lispy_movement): Ditto.
9626
9627 * window.c (coordinates_in_window): Return 4 if on top line.
9628 (Fcoordinates_in_window_p): Return `top-line' if on top line.
9629
9630 * xdisp.c (window_box_height): Subtract top line height.
9631 (window_box): Add top line height to top y position if top line
9632 exists.
9633 (init_iterator): If base_face_id is TOP_LINE_FACE_ID, set row to
9634 the top line row of the window. Set initial y-position to
9635 window's top line height plus delta.
9636 (start_display): Choose start glyph row depending on whether
9637 window has a top line.
9638 (try_scrolling): Take top line height into account for aggressive
9639 scrolling.
9640 (compute_window_start_on_continuation_line): Take top line into
9641 account.
427ec082 9642 (redisplay_window): Ditto. If top line height has changed,
26901792
DL
9643 trigger a new redisplay.
9644 (try_window_reusing_current_matrix): Take top line into account.
9645 (find_last_row_displaying_text): Ditto.
9646 (get_last_unchanged_at_beg_row): DItto.
9647 (try_window_id): Ditto.
9648 (compute_line_metrics): Ditto.
9649
9650 * dispnew.c (shift_glyph_matrix): Compute visible row height
9651 taking top line of window into account.
9652 (update_window): Update top line. If scrolling_window detects
9653 that all rows are equal, only set cursor.
9654 (update_window_line): Call after_update_window_line_hook if
9655 mode_line_p flag of rows has changed.
9656 (scrolling_window): Add parameter top_line_p. Return -1 if
9657 all rows are equal.
9658 (mode_line_string): Add parameter mode_line_p. Handle strings
9659 in top lines.
9660
9661 * dispextern.h (MATRIX_TOP_LINE_ROW): New.
9662 (MATRIX_FIRST_TEXT_ROW): New.
9663 (MATRIX_ROW_PARTIALLY_VISIBLE_P): Use row's visible_height.
9664 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_TOP_P): New.
9665 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_BOTTOM_P): New.
9666 (MATRIX_TOP_LINE_HEIGHT): New.
9667 (CURRENT_MODE_LINE_HEIGHT): Use estimate_mode_line_height.
9668 (CURRENT_TOP_LINE_HEIGHT): New.
9669 (DESIRED_TOP_LINE_HEIGHT): New.
9670 (WINDOW_DISPLAY_TOP_LINE_HEIGHT): New.
9671 (WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE): Replaces
9672 WINDOW_DISPLAY_TEXT_AREA_PIXEL_HEIGHT.
9673 (WINDOW_DISPLAY_TEXT_HEIGHT): New.
9674
9675 * xterm.c (x_after_update_window_line): Don't draw bitmaps for top
9676 lines.
9677 (x_draw_row_bitmaps): Take top line into account when clearing
9678 bitmap area.
9679 (x_estimate_mode_line_height): Replacement for
9680 x_frame_mode_line_height.
9681 (x_get_glyph_string_clip_rect): Take top line into account.
9682 (x_clear_end_of_line): Ditto.
9683 (note_mode_line_highlight): Add parameter mode_line_p. Handle
9684 top lines.
9685 (note_mouse_highlight): Call note_mode_line_highlight for top lines.
9686 (x_erase_phys_cursor): Take top line into account.
9687
9688 * xdisp.c (window_box_height): Subtract top line height if
9689 window wants a top line.
9690 (display_mode_lines): New.
9691 (redisplay_window): Call it.
9692 (display_mode_line): Add parameters face_id and format.
9693
9694 * dispextern.h (CURRENT_TOP_LINE_HEIGHT): New.
9695 (MATRIX_TOP_LINE_HEIGHT): New.
9696
9697 * xterm.c (x_frame_mode_line_height): Add parameter face_id.
9698
9699 * term.c (estimate_mode_line_height): Renamed from
9700 frame_mode_line_height. Add parameter face_id.
9701 (estimate_mode_line_height_hook): Renamed from
9702 frame_mode_line_height_hook.
9703 (produce_special_glyphs_hook): Removed.
9704 (produce_glyphs_hook): Removed.
9705
97061999-06-23 Gerd Moellmann <gerd@gnu.org>
9707
9708 * dispextern.h (WINDOW_WANTS_TOP_LINE_P): New.
9709 (struct glyph_row): Add mode_line_p.
9710
9711 * xfaces.c (realize_basic_faces): Realize face `top-line'.
9712 (Qtop_line): New.
9713 (syms_of_xfaces): Initialize Qtop_line.
9714
9715 * dispextern.h (TOP_LINE_FACE_ID): New.
9716
9717 * buffer.c (init_buffer_once): Set default for
9718 top_line_format to nil.
9719 (init_buffer_once): Init top_line_format.
9720 (default-top-line-format): New.
9721 (top-line-format): New buffer-local variable.
9722
9723 * buffer.h: Add top_line_format.
9724
9725 * xdisp.c (overlay_arrow_changed_p): Removed because not used.
9726
97271999-06-17 Dave Love <fx@gnu.org>
9728
9729 * xfns.c: Move the PNG section before the JPEG one to avoid
9730 problems surrounding setjmp.h/png.h on GNU/Linux.
427ec082 9731
26901792
DL
97321999-06-17 Gerd Moellmann <gerd@gnu.org>
9733
9734 * xfns.c (x_kill_gs_process): Don't free colors.
9735
97361999-06-17 Dave Love <fx@gnu.org>
9737
9738 * s/gnu-linux.h: Zap spurious ~.
9739
97401999-06-16 Gerd Moellmann <gerd@gnu.org>
9741
9742 * xfns.c (gif_load): Improve multi-image support.
9743
97441999-06-15 Gerd Moellmann <gerd@gnu.org>
9745
9746 * xfns.c (gif_load): Support multi-image files.
9747
9748 * Makefile.in (LIBGIF): Use libungif.
9749
9750 * configure.in (HAVE_GIF): Use libungif instead of libgif
9751 because the former doesn't contain patented compression code.
9752
9753 * xdisp.c (compute_window_start_on_continuation_line): Don't
9754 do it if line start is too far away from window start.
9755
97561999-06-14 Gerd Moellmann <gerd@gnu.org>
9757
9758 * buffer.c (init_buffer_once): Set buffer_local_flags for
9759 scroll_*_aggressively.
9760 (syms_of_buffer): Add DEFVAR_PER_BUFFER for scroll-*-aggressively.
9761 (init_buffer_once): Set defaults for these variables.
9762 (syms_of_buffer): Add default-scroll-*-aggressively.
9763
9764 * buffer.h (scroll_up_aggressively): New.
9765 (scroll_down_aggressively): New.
9766
9767 * Makefile.in (LIBPNG): Add -lz -lm in case we're linking with
9768 a static PNG library.
9769
9770 * configure.in (HAVE_PNG): Add -lz -lm when checking for PNG lib
9771 in case it's a static library.
9772
9773 * Makefile.in (ctagsfiles): Split so that files starting
9774 with an `x' are found before files starting with `w32'.
9775 (ctagsfiles1): New.
9776 (ctagsfiles2): New.
9777 (TAGS): Use ctagsfiles[12] instead of ctagsfiles.
9778
9779 * xdisp.c (compute_window_start_on_continuation_line): New.
9780 (redisplay_window): Use it.
9781 (INFINITY): New.
9782 (reseat_to_string): Use it.
9783 (hscroll_window_tree): Ditto.
9784 (compute_window_start_on_continuation_line): Ditto.
9785 (redisplay_window): Don't force display with a new window start.
9786
97871999-06-06 Gerd Moellmann <gerd@gnu.org>
9788
9789 * xfns.c (x_report_frame_params): Don't report `outer-window-id'
9790 if widget not present.
9791
9792 * xdisp.c (prepare_menu_bars): Ignore tooltip frame.
9793
97941999-06-04 Gerd Moellmann <gerd@gnu.org>
9795
9796 * xfaces.c (recompute_basic_faces)[GLYPH_DEBUG]: Check return
9797 value of realize_basic_faces.
9798 (load_face_font_or_fontset): Store full font name in face.
9799 (realize_default_face): Use full font name.
9800
26901792
DL
9801 * xterm.c (x_produce_glyphs): Set member char_to_display.
9802 (x_append_glyph): Store char_to_display in glyphs.
9803
9804 * dispextern.h (struct it): Add char_to_display.
9805
9806 * xfns.c (x_set_font): Don't call face-set-after-frame-default
9807 if faces haven't been initialized.
9808 (Fx_create_frame): Call face-set-after-frame-default after
9809 faces have been initialized, and widget has been created.
9810
9811 * puresize.h (BASE_PURESIZE): Increased.
9812
98131999-06-01 Gerd Moellmann <gerd@gnu.org>
9814
9815 * xfaces.c (set_lface_from_font_name): Add parameter force_p.
9816 (Finternal_set_lisp_face_attribute): If frame is t when
9817 :font attribute is set, use the selected frame.
9818 (clear_face_cache): Add parameter clear_fonts_p.
9819 (Fclear_face_cache): Add optional parameter thorougly.
9820
9821 * xfaces.c (face_numeric_value): Return -1 if symbol is not
9822 in table.
9823 (Fclear_face_cache): New.
9824 (choose_face_fontset_font): If fontset doesn't contain font
9825 pattern for the given charset, use CHARSET_ASCII.
9826 (Finternal_set_lisp_face_attribute): Fix handling of nil
9827 stipple attribute.
9828 (Finternal_set_lisp_face_attribute): Fix handling of changing
9829 font-related face attributes of the default face.
9830 (set_lface_from_font_name): Set only attributes that aren't
9831 specified.
9832
98331999-05-31 Gerd Moellmann <gerd@gnu.org>
9834
9835 * xfaces.c (SCALABLE_FONTS): Define this to enable scalable
9836 font support.
9837 (Vscalable_fonts_allowed) [SCALABLE_FONTS]: New.
9838 (x_face_list_fonts): Add parameter scalable_fonts_p. Handle
9839 scalable fonts depending on the setting of SCALABLE_FONTS.
9840 (first_font_matching): List more than one font to find the
9841 first non-scalable matching font.
9842 (sorted_font_list): Let x_face_list_fonts return scalable fonts
9843 depending on SCALABLE_FONTS.
9844 (better_font_p): New parameter compare_pt_p. If zero, don't
9845 compare point sizes of fonts.
9846 (exact_face_match_p) [SCALABLE_FONTS]: New.
9847 (build_scalable_font_name) [SCALABLE_FONTS]: New.
9848 (may_use_scalable_font_p) [SCALABLE_FONTS]: New.
9849 (best_matching_font) [SCALABLE_FONTS]: Handle scalable fonts.
9850 (syms_of_xfaces): Add scalable-fonts-allowed.
9851
98521999-05-26 Gerd Moellmann <gerd@gnu.org>
9853
9854 * xfns.c (png_load): Let PNG lib handle gamma. Construct
9855 mask only if image contains simple transparency information.
9856 Otherwise, combine image with frame background color.
9857
9858 * configure.in (--with-png, HAVE_PNG): New.
9859
9860 * config.in (HAVE_PNG): New.
9861
9862 * Makefile.in: Add PNG library.
9863
9864 * xfns.c: Add PNG support.
9865
98661999-05-25 Gerd Moellmann <gerd@gnu.org>
9867
9868 * xdisp.c (init_xdisp): Initialize echo_area_message and
9869 previous_echo_area_message to nil.
9870
9871 * keyboard.c (read_char): Rename local variable echo_area_message
9872 because it shadows the global one.
9873
98741999-05-05 Gerd Moellmann <gerd@gnu.org>
9875
9876 * xterm.c (note_mode_line_highlight): Restructured.
9877
9878 * window.c (coordinates_in_window): Handle windows that don't have
9879 a mode line because their buffer's mode-line-format is nil.
9880 Recognize the mode line under x positions that correspond to
9881 flags areas and left scroll bar.
9882
98831999-05-02 Dave Love <fx@gnu.org>
9884
9885 * xterm.c (note_mouse_highlight): Separate help-echo processing
9886 from check on mouse-face so that it works generally.
9887
98881999-04-21 Gerd Moellmann <gerd@gnu.org>
9889
9890 * sound.c (Fplay_sound): Run hook play-sound-hook.
9891 (Qplay_sound_hook): New.
9892
98931999-04-20 Gerd Moellmann <gerd@gnu.org>
9894
9895 * xdisp.c (update_echo_area): Handle echo_area_message.
9896
98971999-04-19 Gerd Moellmann <gerd@gnu.org>
9898
9899 * editfns.c (Fmessage): Use message3.
9900
9901 * print.c (printchar): Set echo_area_message to nil.
9902 (strout): Ditto.
9903
9904 * minibuf.c (read_minibuf): Reset echo message strings to nil.
9905 (Fminibuffer_completion_help): Ditto.
9906
9907 * keyboard.c (cmd_error_internal): Set echo_areA_message.
9908 (command_loop_1): Test echo_areA_message.
9909 (read_char): Ditto.
9910 (record_menu_key): Set echo_area_message to nil.
9911 (Fexecute_extended_command): Test echo_area_message.
9912 (Fexecute_extended_command): Handle echo_area_message.
9913
9914 * fileio.c (Fdo_auto_save): Handle the case that echo_area_message
9915 is set.
9916
9917 * editfns.c (Fcurrent_message): If echo_area_message is set,
9918 return a substring of that string.
9919
9920 * dispnew.c (direct_output_for_insert): Test echo_area_message
9921 in addition to echo_area_glyphs.
9922 (set_window_cursor_after_update): Ditto.
9923 (update_frame_1): Ditto.
9924
9925 * alloc.c (Fgarbage_collect): Use message3_nolog to display
9926 old Lisp message string.
9927
9928 * xdisp.c (echo_area_message): New.
9929 (previous_echo_area_message): New.
9930 (syms_of_xdisp): Initialize and staticpro new variables.
9931 (echo_area_display): Display echo_area_message if set.
9932 (message2_nolog): Set echo_area_message and
9933 previous_echo_area_message.
9934 (echo_area_display): Set previous_echo_area_message.
9935 (redisplay_internal): Display echo area if echo_area_message
9936 or previous_echo_area_message are set.
9937 (redisplay_preserve_echo_area): Test/set echo_area_message and
9938 previous_echo_area_message.
9939 (redisplay_window): Test echo_area_message.
9940 (message3_nolog): New.
9941 (message3): New.
9942
9943 * editfns.c (Fformat): Add text properties to the result string
9944 from properties of the format string and properties of string
9945 arguments.
9946
9947 * textprop.c (text_property_list): New.
9948 (add_text_properties_from_list): New.
9949 (extend_property_ranges): New.
9950
99511999-03-29 Gerd Moellmann <gerd@gnu.org>
9952
9953 * xfaces.c (Qraised, Qsunken, QCshadow): Removed.
9954 (QCline_width, QCstyle, Qpressed_button, Qreleased_button): New.
9955 Use these symbols for the box face attribute instead of the
9956 removed ones.
9957
99581999-03-12 Gerd Moellmann <gerd@gnu.org>
9959
9960 * xfaces.c (realize_tty_face): Don't set alt_char_p of face.
9961 Correct wrong test for slant.
9962
99631999-03-10 Gerd Moellmann <gerd@gnu.org>
9964
9965 * xfaces.c: Use `unspecified' for unspecified face attributes,
9966 use t and nil for on/off.
9967
99681999-03-06 Gerd Moellmann <gerd@gnu.org>
9969
9970 * buffer.c (syms_of_buffer): Extend doc string of
9971 mode-line-format.
9972
9973 * xfaces.c (x_face_list_fonts): New parameter try_alternatives_p.
9974 (first_font_matching): New.
9975 (set_lface_from_font_name): Use it if font name is a pattern.
9976 (font_field_wildcard_p): Removed.
9977
9978 * dispnew.c (shift_glyph_matrix): Add `window' parameter.
9979 Recompute visible height of rows.
9980
9981 * xterm.c (note_mouse_highlight): Reorder code for help-echo.
9982 Don't accept non-strings for help-echo from overlays.
9983
99841999-03-04 Dave Love <fx@gnu.org>
9985
9986 * xterm.c (note_mouse_highlight): Check overlays for help-text
9987 property.
9988 (XTread_socket): Fix compiler warning.
427ec082 9989
26901792
DL
99901999-03-05 Gerd Moellmann <gerd@gnu.org>
9991
427ec082 9992 * xterm.c (note_mouse_highlight): Don't restrict number of
26901792
DL
9993 overlay to 10. Call overlays_at so that it doesn't try to
9994 extend the vector.
9995
9996 * xdisp.c (compute_line_metrics): Compute glyph row's visible
9997 height.
9998
9999 * dispnew.c (row_equal_p): Compare visible row height, only.
10000 (update_text_area): Draw whole line if visible heights of
10001 rows differ.
10002 (update_window_line): Call after_update_window_line_hook
10003 if visible row height has changed.
10004
10005 * dispextern.h (MATRIX_ROW_VISIBLE_HEIGHT): Removed.
10006 (struct glyph_row): New member visible_height.
10007
10008 * xfaces.c (font_field_wildcard_p): New.
10009 (set_lface_from_font_name): Remove parameter force_p. Accept
10010 font names containing wildcards.
10011
100121999-03-04 Gerd Moellmann <gerd@gnu.org>
10013
10014 * xterm.c (x_after_update_window_line): Clear internal border
10015 when windows_or_buffers_changed.
10016
10017 * dispextern.h (WINDOW_WANTS_MODELINE_P): Return zero if window's
10018 buffer has a nil mode_line_format.
10019
100201999-03-03 Gerd Moellmann <gerd@gnu.org>
10021
10022 * xterm.c (x_setup_relief_colors): Use either background color
10023 or specified color.
10024
10025 * xfaces.c (realize_x_face): Set face->use_box_color_for_shadows_p.
10026
10027 * dispextern.h (struct face): Add use_box_color_for_shadows_p.
10028
10029 * xterm.c (x_draw_box_rect): New.
10030 (x_draw_glyph_string_box): Renamed from
10031 x_draw_glyph_string_relief. Call x_draw_box_rect.
10032
10033 * xfns.c (QCrelief): New.
10034 (syms_of_xfns): Initialize it.
10035
10036 * dispextern.h (struct glyph): Rename left_shadow_p to
10037 left_box_line_p, right_shadow_p to right_box_line_p.
10038 (MAX_RELIEF_THICKNESS): Removed.
10039 (struct it): Rename members having `relief' in their names
10040 to contain `box' instead.
10041
10042 * xfaces.c (realize_x_face): Handle new box attribute values.
10043 (QCrelief, Qbox): Removed.
10044 (QCshadow, QCcolor, Qraised, Qsunken): New.
10045 (syms_of_xfaces): Initialize new symbols.
10046
100471999-03-02 Gerd Moellmann <gerd@gnu.org>
10048
10049 * dispextern.h (LFACE_RELIEF_INDEX): Removed.
10050
10051 * xfaces.c (LFACE_RELIEF): Removed.
10052 (merge_face_vector_with_property): Remove handling of `:relief'.
10053 (Finternal_set_lisp_face_attribute): Ditto.
10054 (Finternal_set_lisp_face_attribute_from_resource): Ditto.
10055 (Finternal_get_lisp_face_attribute): Ditto.
10056 (realize_default_face): Ditto.
10057 (lface_hash): Don't compute hash from relief.
10058
10059 * dispextern.h (struct face): Replace member `relief' by
10060 `box_line_width'. Add member `box'.
10061 (face_box_type): New.
10062
10063 * xterm.c (x_produce_glyphs): If face has overline, add overline
10064 thickness + 1 to ascent.
10065
100661999-03-01 Gerd Moellmann <gerd@gnu.org>
10067
10068 * xterm.c (x_draw_glyph_string): Draw underline, overline,
10069 strike-through, and boxes.
10070 (x_draw_glyph_string_underline): Removed.
10071
10072 * xfaces.c (QCoverline, QCstrike_through, QCbox): New.
10073 (Qoverline, Qstrike_through, Qbox): New.
10074 (syms_of_xfaces): Define these symbols.
10075 (check_lface_attrs): Add checks for overline, strike-through,
10076 and box.
10077 (Finternal_set_lisp_face_attribute): Set new attributes.
10078 (LFACE_OVERLINE, LFACE_STRIKE_THROUGH, LFACE_BOX): New.
10079 (load_color): Handle new attributes.
10080 (realize_x_face): Ditto.
10081 (merge_face_vector_with_property): Ditto.
10082 (free_face_colors): Ditto.
10083 (Finternal_set_lisp_face_attribute_from_resource): Ditto.
10084 (Finternal_get_lisp_face_attribute): Ditto.
10085 (Finternal_lisp_face_attribute_values): Ditto.
10086
10087 * dispextern.h (lface_attribute_index): Add enumerators for
10088 overstrike, strike-through, and box.
10089 (struct face): Add members for overline, strike-through, and
10090 box.
10091
100921999-02-17 Dave Love <fx@gnu.org>
10093
10094 * s/gnu-linux.h s/gnu.h s/irix5-0.h s/netbsd.h s/sco4.h s/sco5.h
10095 s/template.h (NARROWPROTO): Define on the basis of relevant X cf
10096 files.
10097
100981999-02-16 Gerd Moellmann <gerd@gnu.org>
10099
10100 * keyboard.c (toolbar_items): Call access_keymap with third
10101 parameter 1, so that we don't get inherited toolbar item
10102 definitions.
10103
10104 * xdisp.c (redisplay_internal): In optimization 1, don't decrement
10105 the window end vpos when in empty first line of window.
10106
101071999-02-15 Gerd Moellmann <gerd@gnu.org>
10108
10109 * xfaces.c (set_font_frame_param): New.
10110 (Finternal_set_lisp_face_attribute): Call it.
10111
10112Sun Feb 14 10:54:02 1999 Masatake Yamato <masata-y@is.aist-nara.ac.jp>
10113
10114 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
10115 Accept specifications of color for underline.
10116
101171999-02-13 Gerd Moellmann <gerd@gnu.org>
10118
10119 * xfaces.c (Finternal_set_lisp_face_attribute): If parameter
10120 `frame' is t, operate on face defaults for new frames. If it
10121 is nil, operate on the selected frame.
10122
101231999-02-12 Gerd Moellmann <gerd@gnu.org>
10124
10125 * dispnew.c (check_matrix_invariants): Put it in #if 0.
10126 (update_window): Put the call to check_matrix_invariants in #if 0.
10127
10128Sun Feb 7 09:58:49 1999 Masatake Yamato <masata-y@is.aist-nara.ac.jp>
10129
10130 * dispextern.h: Remove all else block of UNDERLINE_COLOR.
10131 Remove definition of UNDERLINE_COLOR.
10132
10133Mon Jan 4 04:43:41 1999 Masatake Yamato <masata-y@is.aist-nara.ac.jp>
10134
10135 * xfaces.c (free_face_colors): Free the color for underline.
10136
10137 * xterm.c (x_draw_glyph_string_underline): Set the color for underline
10138 to the GC.
10139
10140Sun Jan 3 08:41:10 1999 Masatake Yamato <masata-y@is.aist-nara.ac.jp>
10141
10142 * dispextern.h (UNDERLINE_COLOR): Defined.
10143 (struct face): Added two new members.
10144 underline_color, underline_defaulted_p.
10145
427ec082 10146 * xfaces.c (merge_face_vector_with_property):
26901792 10147 (check_lface_attrs): Accept the string value for underline.
427ec082 10148 (Finternal_set_lisp_face_attribute): Likewise.
26901792
DL
10149
10150 * xfaces.c (load_color): Change the last argument type to enum
10151 lface_attribute_index from int. And addec code for underling coloring.
10152 (load_face_colors): Pass LFACE_*_INDEX to load_color.
427ec082 10153
26901792
DL
101541999-02-12 Gerd Moellmann <gerd@gnu.org>
10155
10156 * xfns.c (Fx_image_header): Removed.
10157
101581999-02-07 Gerd Moellmann <gerd@gnu.org>
10159
10160 * xterm.c: Don't include <bitmaps/gray>.
10161 (x_term_init): Use gray_bitmap_width and gray_bitmap_height.
10162
10163 * xfns.c (Fx_image_header): Add missing `\n\'.
10164 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits): New.
10165
101661999-02-01 Gerd Moellmann <gerd@gnu.org>
10167
10168 * xterm.c (x_scroll_bar_create): Set background pixel from
10169 specified scroll bar color.
10170 (x_scroll_bar_set_handle): Use scroll bar foreground color.
10171
10172 * xfns.c (x_set_scroll_bar_foreground): Remove all scroll bars.
10173 (x_set_scroll_bar_background): Ditto.
10174
10175 * xterm.c (x_create_toolkit_scroll_bar): Set scroll bar colors.
10176
10177 * xfns.c (x_default_scroll_bar_color_parameter): New.
10178 (Fx_create_frame): Call it.
10179
101801999-01-31 Gerd Moellmann <gerd@gnu.org>
10181
10182 * xfns.c (Fx_create_frame): Initialize scroll bar pixel color
427ec082 10183 values in x_output structure.
26901792
DL
10184 (Qscroll_bar_foreground, Qscroll_bar_background): New.
10185 (syms_of_xfns): Initialize these symbols.
10186
10187 * xterm.h (struct x_output): Add scroll bar pixel colors.
10188
10189 * xfns.c (x_frame_parms): Add entries for scroll bar colors.
10190 (x_set_scroll_bar_foreground): New.
10191 (x_set_scroll_bar_background): New.
10192
26901792
DL
101931999-01-12 Gerd Moellmann <gerd@gnu.org>
10194
10195 * xdisp.c (handle_single_display_prop): New.
10196 (handle_display_prop): Call it.
10197 (handle_raise_prop): Removed.
10198 (handle_height_prop): Removed.
10199 (handle_space_width_prop): Removed.
10200 (handle_face_prop): Remove handling of raised text.
10201 (handle_display_prop): Do it here.
10202
10203 * dispextern.h (DISPLAY_PROP_IDX): Replaces GLYPH_PROP_IDX.
10204 (RAISE_PROP_IDX): Removed.
10205 (HEIGHT_PROP_IDX): Removed.
10206 (SPACE_WIDTH_PROP_IDX): Removed.
10207
10208 * xdisp.c (Qdisplay): Replaces Qglyph.
10209 (handle_display_prop): Formerly handle_glyph_prop.
10210
102111999-01-11 Gerd Moellmann <gerd@gnu.org>
10212
10213 * xdisp.c (reseat_to_string): Set position in display vector to -1.
10214 (handle_stop): Set position in display vector to -1. Don't
10215 check overlay strings when set up to deliver characters from a
10216 display vector.
10217 (set_iterator_to_next): At the end of a run of characters from a
10218 display vector, check whether the display vector display replaces
10219 the display of a character.
10220
102211999-01-05 Gerd Moellmann <gerd@gnu.org>
10222
10223 * xfaces.c (init_frame_faces): Don't realize faces if frame's
10224 X window hasn't been created yet.
10225
102261998-12-06 Gerd Moellmann <gerd@gnu.org>
10227
10228 * sound.c: New.
10229
102301998-12-04 Gerd Moellmann <gerd@gnu.org>
10231
10232 * config.in (HAVE_SOUND): New.
10233
10234 * emacs.c (main): Call syms_of_sound and init_sound.
10235
10236 * Makefile.in (obj): Add sound.o.
10237
10238 * configure.in: Add checks for machine/soundcard.h and sys/soundcard.h.
10239
10240 * config.in (HAVE_MACHINE_SOUNDCARD_H): New.
10241 (HAVE_SYS_SOUNDCARD_H): New.
10242
102431998-12-03 Gerd Moellmann <gerd@gnu.org>
10244
10245 * buffer.h (struct buffer): indicate_empty_lines renamed from
10246 indicate_zv_lines.
10247
10248 * buffer.c (indicate-empty-lines): Renamed from indicate_zv_lines.
10249 (default-indicate-zv-lines): Likewise.
10250
10251 * dispextern.h (struct glyph_row): Rename indicate_zv_line_p
10252 to indicate_empty_line_p.
10253
10254 * xdisp.c (reseat_at_next_visible_line_start): Reset method
10255 to next_element_from_buffer.
10256
10257 * frame.c (make_frame): Set n_current_toolbar_items to 0.
10258
10259 * xdisp.c (handle_face_prop): Allow symbols of the form `N+'
10260 and `N-'.
10261
10262 * xfns.c (xbm_scan): New.
10263 (xbm_read_hexint): Removed.
10264 (xbm_read_bitmap_file_data): Use xbm_scan.
10265
10266 * fileio.c (Finsert_file_contents): Prevent redisplay optimizations.
10267
102681998-12-02 Gerd Moellmann <gerd@gnu.org>
10269
10270 * xfns.c (xbm_read_hexint): New.
10271 (xbm_read_bitmap_file_data): New.
10272 (xbm_load_image_from_file): Call xbm_read_bitmap_file_data
10273 instead of XReadBitmapFileData.
10274
10275 * xdisp.c (handle_raise_prop): Compute voffset from current font.
10276
10277 * xfaces.c (face_with_height): New.
10278
10279 * xdisp.c (eval_handler): Renamed from eval_mode_handler.
10280 (eval_form): Renamed from eval_mode_element.
10281 (handle_face_prop): Use it.
10282 (Qheight): Replaces Qsmaller.
10283 (handle_height_prop): Replaces handle_smaller_prop.
427ec082 10284 (handle_face_prop): If iterator's font_height is not an
26901792
DL
10285 integer, evaluate it to get the font height to use.
10286
10287 * dispextern.h (HEIGHT_PROP_IDX): Replaces SMALLER_PROP_IDX.
10288 (struct it): Use `font_height' instead of `smaller'.
10289
102901998-12-01 Gerd Moellmann <gerd@gnu.org>
10291
10292 * xdisp.c (reseat_1): New.
10293 (reseat): Call it.
10294 (move_it_vertically_backward): Ditto.
10295 (redisplay_window): Don't abort when cursor not found in recenter.
10296
102971998-11-30 Gerd Moellmann <gerd@gnu.org>
10298
10299 * xdisp.c (reseat_at_next_visible_line_start): When not
10300 currently delivering display elements from the current buffer,
10301 restore buffer position first.
10302 (init_from_display_pos): Don't set IT's position from the
10303 position passed to this function.
10304
103051998-11-28 Gerd Moellmann <gerd@gnu.org>
10306
10307 * config.in (PROTO): Removed.
10308
10309 * xterm.h: Change PROTO to P_.
10310
103111998-11-26 Gerd Moellmann <gerd@gnu.org>
10312
10313 * xterm.c (take_vertical_position_into_account): New.
10314 (x_produce_image_glyph): Call it.
10315 (x_produce_stretch_glyph): Ditto.
10316 (x_produce_glyphs): Ditto.
10317 (x_fill_glyph_string): Adjust base line for glyph's voffset.
10318 (x_fill_composite_glyph_string): Ditto.
10319 (x_fill_image_glyph_string): Ditto.
10320 (x_fill_stretch_glyph_string): Ditto.
10321
10322 * xdisp.c (display_line): Always compute row height from
10323 max_ascent and max_descent.
10324
10325 * dispextern.h (struct glyph): Add voffset.
10326 (struct it): Replace height by descent, max_height by max_descent.
10327
10328 * xterm.c (x_append_glyph): Set voffset
10329 (x_append_stretch_glyph): Ditto.
10330 (x_produce_image_glyph): Ditto.
10331 (x_produce_glyphs): Take voffset into account.
10332 (x_produce_image_glyph): Ditto.
10333 (x_produce_stretch_glyph): Ditto.
10334
10335 * dispextern.h (struct it): Add voffset.
10336 * xdisp.c (push_it): Save voffset.
10337 (pop_it): Restore it.
10338
10339 * xdisp.c (it_props): Add entry for `raise'.
10340 (handle_raise_prop): New.
10341
10342 * dispextern.h (RAISE_PROP_IDX): New.
10343
10344 * xdisp.c (Qraise): New.
10345 (syms_of_xdisp): Define Qraised.
10346
10347 * xterm.c (x_scroll_bar_move): Clear to the left and right
10348 of toolkit scroll bars differently.
10349 (x_scroll_bar_move): Removed.
10350 (XTset_vertical_scroll_bar): Move code from x_scroll_bar_move here.
10351
10352 * dispextern.h: Make it compilable --with-x=no.
10353 * alloc.c: Ditto.
10354 * emacs.c: Ditto.
10355 * dispnew.c: Ditto.
10356 * keyboard.c: Ditto.
10357 * term.c: Ditto.
10358 * xdisp.c: Ditto.
10359 * xfaces.c: Ditto.
10360 * xfns.c: Ditto.
10361 * xmenu.c: Ditto.
10362
103631998-11-25 Gerd Moellmann <gerd@gnu.org>
10364
10365 * xterm.c (XTread_socket): Cancel help-echo when leaving frame.
10366
103671998-11-24 Gerd Moellmann <gerd@gnu.org>
10368
10369 * xterm.c (x_set_toolkit_scroll_bar_thumb): When dragging,
10370 update slider size, only.
10371 (xm_scroll_callback): Set dragging member of the scroll bar.
10372 (xt_action_hook): Reset last_scroll_bar_part.
10373 (XTredeem_scroll_bar): Reset bar->dragging to nil.
10374
26901792
DL
10375 * xfns.c (Fx_hide_busy_cursor): Don't try to hide busy cursor
10376 window on newly created frames that don't have one.
10377
103781998-11-23 Gerd Moellmann <gerd@gnu.org>
10379
10380 * xdisp.c (restore_overlay_strings): Removed.
10381 (restore_dpvec): Removed.
10382 (init_from_display_pos): Inline both functions above.
10383
10384 * xfns.c (IMAGE_NON_NEGATIVE_INTEGER_VALUE): New.
10385 (parse_image_spec): Handle it.
10386 (xbm_format): Use it.
10387 (xpm_format): Ditto.
10388 (pbm_format): Ditto.
10389 (jpeg_format): Ditto.
10390 (tiff_format): Ditto.
10391 (gif_format): Ditto.
10392 (gs_format): Ditto.
10393
10394 * xdisp.c (set_window_cursor): Removed.
10395 (redisplay_internal): Case cursor motion in cursor line of
10396 selected window; use set_cursor_from_row.
10397
103981998-11-22 Gerd Moellmann <gerd@gnu.org>
10399
10400 * widget.c (EmacsFrameSetCharSize): Take widget's border width
10401 into account.
10402
104031998-11-21 Gerd Moellmann <gerd@gnu.org>
10404
10405 * xterm.c (expose_frame): Redraw menu bar window.
10406
10407 * xdisp.c (display_menu_bar): Record hpos instead of x-position
10408 in menu item.
10409
10410 * dispnew.c (change_frame_size_1): Use FRAME_TOP_MARGIN instead
10411 of FRAME_TOOLBAR_LINES. Use `f' instead of `frame'.
10412
10413 * widget.c (set_frame_size): Use FRAME_SCROLL_BAR_COLS
10414 to determine vertical_scroll_bar_extra.
10415 (EmacsFrameSetCharSize): Ditto.
10416 * xfns.c (x_figure_window_size): Ditto.
10417
10418 * xterm.c (x_draw_row_bitmaps): Draw in `bitmap-area' face.
10419 (x_draw_bitmap): Ditto.
10420
10421 * dispextern.h (face_id): New id BITMAP_AREA_FACE_ID.
10422 * xfaces.c (realize_basic_faces): Realize it.
10423
104241998-11-20 Gerd Moellmann <gerd@gnu.org>
10425
10426 * xmenu.c (xmenu_show): Add workaround for remaining button grab
427ec082 10427 under LessTif Use the widget of the frame as parent for the
26901792
DL
10428 menu, again.
10429
104301998-11-19 Gerd Moellmann <gerd@gnu.org>
10431
10432 * xterm.c (XTread_socket): Inhibit busy cursor for EnterNotify.
10433 When EnterNotify, don't generate a mouse movement event if
10434 notification is from a busy-cursor child window.
10435
10436 * xterm.h (struct x_output): Add busy_window, remove cursor.
10437
10438 * xfns.c (Fx_show_busy_cursor): Formerly Fx_display_busy_cursor.
10439 Use a transparent window to display the busy-cursor.
10440 (Fx_hide_busy_cursor): Formerly Fx_undisplay_busy_cursor.
10441
104421998-11-17 Gerd Moellmann <gerd@gnu.org>
10443
10444 * xdisp.c (check_window_end): New, for debugging.
10445 (CHECK_WINDOW_END): New.
10446 (try_window_id): Use it.
10447
10448 * xterm.c (process_expose_from_menu): Return int.
10449
10450 * keyboard.c (kbd_buffer_get_event): Set flag to prevent recording
10451 TOOLBAR_EVENT events in last_nonmenu_event.
10452
104531998-11-16 Gerd Moellmann <gerd@gnu.org>
10454
10455 * xdisp.c (redisplay_window): If windows_or_buffers_changed,
10456 window end isn't reliable, so set window_end_valid to nil.
10457 (redisplay_internal): If overlay arrow has changed, set
10458 windows_or_buffers_changed to redisplay thoroughly.
10459
10460 * dispnew.c (adjust_glyph_matrix): Invalidate window end, if
10461 necessary.
10462
10463 * xfns.c (file_dialog_cb): New.
10464 (Fx_file_dialog): New.
10465 * fileio.c (Fread_file_name): Call it.
10466
427ec082 10467 * xrdb.c (x_load_resources): Add default resoures for file
26901792
DL
10468 selection dialog.
10469
104701998-11-14 Gerd Moellmann <gerd@gnu.org>
10471
10472 * xterm.c (note_mouse_highlight): Don't highlight when popup
10473 is active.
10474
26901792
DL
10475 * keyboard.c (timer_check): Inhibit busy cursor around calls to
10476 timer-event-handler. This busy cursor tends to be anoying if
10477 fontifying stealthily.
10478
10479 * dispnew.c (direct_output_for_insert): Give up if current row
10480 contains trailing whitespace.
10481
104821998-11-13 Gerd Moellmann <gerd@gnu.org>
10483
10484 * dispextern.h (prop_idx): Add FONTIFIED_PROP_IDX.
10485
10486 * xdisp.c (handle_fontified_prop): New.
10487 (Vfontification_functions): New.
10488 (Qfontification_functions): New.
10489 (it_props): Add handle_fontified_prop.
10490
104911998-11-12 Gerd Moellmann <gerd@gnu.org>
10492
10493 * xmenu.c (xmenu_show): Use the frame's edit_widget as parent.
10494 Otherwise, under LessTif, after the popup has gone, all button
10495 press events come in for the frame's widget, and release events
10496 come in for the edit_widget.
10497 * xterm.c (XTread_socket): Remove workaround for that problem.
10498 (x_set_toolkit_scroll_bar_thumb): Add workaround for LessTif
10499 XmScrollBarSetValues.
10500 (SET_SAVED_MENU_EVENT): Give it statement form.
10501
26901792
DL
10502 * xfaces.c (display_message): If waiting_for_input, don't display
10503 the message.
10504
10505 * window.c (scroll_command): If not acting on current_buffer,
10506 make redisplay consider all windows.
10507
10508 * xfns.c (Fx_hide_tip): Return t if tooltip was open.
10509
10510 * xdisp.c (handle_glyph_prop): Set it->object for images to
10511 the object having the glyph property.
10512
10513 * xterm.c (x_draw_row_bitmaps): Don't draw if row is completely
10514 invisible.
10515
105161998-11-11 Gerd Moellmann <gerd@gnu.org>
10517
10518 * xterm.h (struct x_display_info): Add gray pixmap. * xterm.c
10519 (x_term_init): Create the gray pixmap.
10520 (x_setup_relief_color): Use it.
10521 (x_get_glyph_string_clip_rect): Draw a toolbar window over the
10522 internal border at the top of a frame.
10523 (x_init_glyph_string): Likewise.
427ec082 10524 (x_draw_glyph_string_relief): Correct right x by 1 pixel for
26901792
DL
10525 full-width lines.
10526 (XTflash): Don't flash the toolbar window.
10527
10528 * xterm.c (XTread_socket): Workaround for LessTif popup menus
10529 in case of ButtonPress events.
10530
105311998-11-10 Gerd Moellmann <gerd@gnu.org>
10532
10533 * xrdb.c (x_load_resources): Add grey background colors as
10534 defaults for menus, scroll bars, and dialogs.
10535
10536 * insdel.c (prepare_to_modify_buffer): Move setting
10537 windows_or_buffers_changed from modify_region here.
10538
10539 * xfns.c (Fx_show_tip): Inhibit redisplay.
10540 (Fx_hide_tip): Ditto.
10541 (Fx_image_header): New.
10542
105431998-11-09 Gerd Moellmann <gerd@gnu.org>
10544
10545 * dispnew.c (clear_window_matrices): Set window_end_valid to nil
10546 when clearing current window matrices.
10547
105481998-11-08 Gerd Moellmann <gerd@gnu.org>
10549
10550 * xdisp.c (handle_glyph_prop): Don't set an iterator's buffer
10551 position from a string position. Use the right end position
10552 if the property spans a whole overlay string.
10553
105541998-11-07 Gerd Moellmann <gerd@gnu.org>
10555
10556 * xmenu.c (menubar_selection_callback): Remove workaround for
10557 Lesstif not calling XmNpopdownCallback because it doesn't
10558 handle the case where users don't select any menu item.
10559
26901792
DL
10560 * insdel.c (modify_region): Set windows_or_buffers_changed.
10561
10562 * buffer.c (set_buffer_internal): Don't set
10563 windows_or_buffers_changed.
10564
26901792
DL
10565 * xmenu.c (HAVE_BOXES): Define if USE_X_TOOLKIT.
10566
26901792
DL
10567 * xmenu.c (menubar_selection_callback): Add workaround for
10568 Lesstif not calling XmNpopdownCallback.
10569
10570 * xdisp.c (eval_mode_element): New.
10571 (eval_mode_handler): New.
10572 (display_mode_element): Use eval_mode_element.
10573
10574 * xdisp.c (display_mode_element): Allow `(:eval FORM)'.
10575 Remove code looking at text props of default value.
10576
10577 * xmenu.c (HAVE_BOXES): Define if using Lucid menus.
10578
26901792
DL
105791998-11-06 Gerd Moellmann <gerd@gnu.org>
10580
427ec082 10581 * xmenu.c (single_submenu): Set button_type of menu to
26901792
DL
10582 BUTTON_TYPE_NONE.
10583 (single_submenu): Likewise for panes and menu items.
10584 (set_frame_menubar): Set button_type of menu bar to none.
10585 (xmenu_show): Likewise.
10586 (single_submenu): Set widget values selected slot.
10587 (xmenu_show): Likewise.
10588
26901792
DL
10589 * xmenu.c (push_menu_item): Add parameters `type' and
10590 `selected'. Store it in menu_items.
10591 (MENU_ITEMS_ITEM_TYPE): New.
10592 (MENU_ITEMS_ITEM_SELECTED): New.
10593 (MENU_ITEMS_ITEM_LENGTH): Increase by two.
10594
10595 * xfns.c (clear_image_cache): Get the current time, before
10596 doing anything.
10597 (cache_image): Set prev pointer of next image.
10598 (clear_image_cache): Clear current matrices if any image was
10599 freed.
10600
10601 * xterm.c (XTread_socket): Set inhibit_busy_cursor.
10602
10603 * xfns.c (x_set_cursor): New.
10604 (Fx_display_busy_cursor): New.
10605 (Fx_undisplay_busy_cursor): New.
10606
10607 * xterm.h (struct x_output): Add busy_cursor.
10608
10609 * xfns.c (Vx_busy_pointer_shape): New.
10610 (x_set_mouse_color): Create busy cursor.
10611
10612 * process.c (wait_reading_process_input): Show and hide busy
10613 cursor.
10614
10615 * keyboard.c (command_loop_1): Display busy cursor.
10616
10617 * eval.c (Fsignal): Hide busy cursor.
10618
10619 * buffer.c (set_buffer_internal): Don't set
10620 windows_or_buffers_changed.
10621
10622 * xterm.c (redo_mouse_highlight): New.
10623
106241998-11-04 Gerd Moellmann <gerd@gnu.org>
10625
26901792
DL
10626 * xfns.c (x_create_x_image_and_pixmap): Add depth parameter.
10627 (x_build_heuritic_mask): New.
10628 (lookup_image): Call it.
10629
10630 * xterm.c (note_toolbar_highlight): Always set up help_echo.
10631 (previous_help_echo): New.
10632 (XTread_socket): Generate help event with nil message when
10633 leaving a region with help-echo.
10634 (note_mouse_highlight): Handle `help-echo' over text.
10635 (XTread_socket): Dispatch VisibilityNotify, CirculateNotify,
10636 CirculateRequest.
10637 (clear_mouse_face): Don't clear if tooltip is shown.
10638 (XTread_socket): Redo mouse-highlight after tooltip is gone.
10639 Avoid SET_FRAME_GARBAGED when tooltip is mapped.
10640
10641 * keyboard.c (Vshow_help_function): New.
10642 (read_char): Use it.
10643
106441998-11-03 Gerd Moellmann <gerd@gnu.org>
10645
10646 * xfns.c (x_create_tip_frame): New.
10647 (Fx_show_tip): New.
10648 (Fx_hide_tip): New.
10649
427ec082 10650 * xterm.c (x_destroy_window): Handle case that we don't have
26901792
DL
10651 a widget.
10652
10653 * dispextern.h (struct glyph_row): Rename no_marginal_areas_p
10654 to full_width_p. Add internal_border_p.
10655
106561998-11-02 Gerd Moellmann <gerd@gnu.org>
10657
10658 * xterm.c (note_mode_line_highlight): Check the charpos of
10659 the glyph under the mouse pointer before accessing text
10660 properties at that position.
10661
106621998-11-01 Gerd Moellmann <gerd@gnu.org>
10663
10664 * xterm.c (x_draw_image_relief): Handle toolbar_button_relief.
10665
10666 * xdisp.c (auto-raise-toolbar-buttons): New.
10667 (build_desired_toolbar_string): Handle the flag.
10668 (toolbar-button-margin): New.
10669 (toolbar-button-relief): New.
10670 (build_desired_toolbar_string): Use margin and relief.
10671
10672 * xterm.c (x_set_toolkit_scroll_bar_thumb): Remove workaround
10673 for FreeBSD.
10674 (note_mode_line_highlight): New.
10675 (note_mouse_highlight): Call it.
10676
106771998-10-31 Gerd Moellmann <gerd@gnu.org>
10678
10679 * s/freebsd.h (NARROWPROTO): New.
10680
10681 * xdisp.c (display_string): New parameter face_string.
10682 (display_mode_element): When displaying a symbol with a string
10683 value, use text properties from the symbol's default value, maybe.
10684
10685 * xrdb.c (x_load_resources): Add font defaults for menus and
10686 dialogs.
10687
106881998-10-30 Gerd Moellmann <gerd@gnu.org>
10689
10690 * xfns.c (Fx_create_frame): Try 12pt Courier font first.
10691
106921998-10-29 Gerd Moellmann <gerd@gnu.org>
10693
10694 * xterm.c (x_produce_glyphs): Fix bug causing glyphs to be
10695 produced for characters with codes < 32 under certain
10696 circumstances.
10697
10698 * xdisp.c (redisplay_window): Handle values of PT in front
10699 of invisible, intangible text.
427ec082 10700 (try_window_id): Set overlay_arrow_seen to zero before
26901792
DL
10701 displaying lines.
10702 (display_mode_element): Assign to glyphs written for a mode
10703 line spec `%x' as object the Lisp format string, as position
10704 the position of the `%' in that string.
10705 (display_string): If displaying a C string, optionally get
10706 the face to use from a Lisp string.
10707
10708 * xterm.c (expose_window_tree): Include mode line height.
10709
10710 * xfns.c (Fx_create_frame): Add toolbar height to frame height.
10711
107121998-10-27 Gerd Moellmann <gerd@gnu.org>
10713
10714 * xterm.c (note_mouse_highlight): Change mouse pointer shape
10715 over mode line.
10716
107171998-10-26 Gerd Moellmann <gerd@gnu.org>
10718
10719 * window.c (coordinates_in_window): Use CURRENT_MODE_LINE_HEIGHT.
10720
10721 * xdisp.c (redisplay_window): If mode line height has changed,
10722 arrange for a thorough immediate redisplay using the correct mode
10723 line height.
10724 (window_box_height): Use CURRENT_MODE_LINE_HEIGHT.
10725
10726 * dispextern.h (MATRIX_MODE_LINE_HEIGHT): New.
10727 (CURRENT_MODE_LINE_HEIGHT): New.
10728 (DESIRED_MODE_LINE_HEIGHT): New.
10729
10730 * keyboard.c (make_lispy_event): Add string and string position
10731 info to mouse-click events.
10732 (read_key_sequence): Handle `local-map' property of mode line
10733 strings.
10734
10735 * keyboard.h (POSN_STRING): New.
10736
107371998-10-25 Gerd Moellmann <gerd@gnu.org>
10738
10739 * dispnew.c (mode_line_string): Mew.
10740
10741 * xterm.c (xt_action_hook): New.
10742 (x_create_toolkit_scroll_bar): Add action hook.
10743 (xm_scroll_callback): Implement dragging.
10744
10745 * keyboard.c (Qend_scroll): New.
10746 (scroll_bar_parts): Add it.
10747
10748 * termhooks.h (scroll_bar_end_scroll): New.
10749
10750 * xterm.c (XTread_socket): Bug fix.
10751
107521998-10-24 Gerd Moellmann <gerd@gnu.org>
10753
10754 * xdisp.c (redisplay_window): Finish scroll bars after
10755 redisplaying toolbar.
10756
10757 * keyboard.c (scroll_bar_parts): Add Qtop and Qbottom.
10758 (syms_of_keyboard): Add Qbottom.
10759
10760 * termhooks.h (scroll_bar_to_top): New.
10761 (scroll_bar_to_bottom): New.
10762
10763 * xdisp.c (redisplay_window): Always resize toolbar window if
10764 auto_resize_toolbar_p is non-zero.
10765 (auto_resize_toolbar_p): Renamed from auto_resize_toolbar.
10766 (window_box): New.
10767 (window_box_height): New.
10768 (window_box_width): New.
10769 (window_box_left): New.
10770 (window_box_right): New.
10771 (window_box_edges): New.
10772
107731998-10-23 Gerd Moellmann <gerd@gnu.org>
10774
10775 * xterm.c (x_set_toolkit_scroll_bar_thumb): Kluge for call to
10776 XawScrollbarSetThumb in FreeBSD.
10777 (x_create_toolkit_scroll_bar): Set resource "beNiceToColormap"
10778 to true.
10779
10780 * window.c (get_phys_cursor_glyph): Return null if cursor vpos
10781 is out of range.
10782
10783 * xterm.c (x_create_toolkit_scroll_bar): Set scroll_bar_pixel.
10784 (x_term_init): Initialize it.
10785
10786 * xterm.h (struct x_display_info): Add scroll_bar_pixel.
10787
10788 * xterm.c (x_create_toolkit_scroll_bar): Set LessTif scroll bar's
10789 cursor.
10790
107911998-10-22 Gerd Moellmann <gerd@gnu.org>
10792
10793 * keyboard.c (make_lispy_event): Handle scroll_bar_click
10794 differently when using toolkit scroll bars.
10795
10796 * xterm.c (x_send_scroll_bar_event): New.
10797 (x_scroll_bar_to_input_event): New.
10798 (xaw3d_scroll_callback): New.
10799 (xaw3d_jump_callback): New.
10800 (xm_scroll_callback): New.
10801 (x_toolkit_scroll_p): New.
10802 (XTread_socket): Handle scroll bar client message.
10803 (x_term_init): Initialize Xatom_Scrollbar.
10804 (x_scroll_bar_create): Set cursor.
10805 (xm_scroll_callback):
10806 (x_create_toolkit_scroll_bar): New.
10807 (x_set_toolkit_scroll_bar_thumb): New.
10808 (x_scroll_bar_create): Call x_create_toolkit_scroll_bar.
10809 (XTset_vertical_scroll_bar): Call x_set_toolkit_scroll_bar_thumb.
10810
10811 * xterm.h (struct x_display_info): Add Xatom_Scrollbar.
10812
108131998-10-21 Gerd Moellmann <gerd@gnu.org>
10814
10815 * xterm.c (x_scroll_bar_remove): Handle toolkit scroll bars.
10816 (XTread_socket): Don't handle mouse button events for scroll bars
10817 if using toolkit scroll bars.
10818 (XTset_vertical_scroll_bar): Set thumb size and position for
10819 Athena scroll bar.
10820
10821 * xterm.h (scroll_bar): Add x_widget_low and x_widget_high.
10822
10823 * xterm.c (XTread_socket): Dispatch expose event to widget
10824 if using toolkit scroll bars.
10825 (x_scroll_bar_expose): Make no-op for toolkit scroll bars.
427ec082 10826 (x_scroll_bar_create): Create and show a scroll bar widget
26901792
DL
10827 if using toolkit scroll bars.
10828 (x_scroll_bar_move): Handle tookit scroll bars.
10829
10830 * Makefile.in (LIBW): Use Xaw3d if present.
10831
10832 * configure.in (USE_TOOLKIT_SCROLL_BARS): New.
10833 (HAVE_XAW3D): New.
427ec082 10834
26901792
DL
10835 * config.in (USE_TOOLKIT_SCROLL_BARS): New.
10836 (HAVE_XAW3D): New.
10837
427ec082 10838 * xterm.c (XTset_vertical_scroll_bar): Correct position of
26901792
DL
10839 right vertical scroll bar.
10840
108411998-10-20 Gerd Moellmann <gerd@gnu.org>
10842
10843 * xfns.c (xpm_load): Support reading XPM images from string
10844 buffers containing data in the same format as an XPM file.
10845 Support `:color-symbols'.
10846 (xpm_format): Add `:data'.
10847 (xpm_keyword_index): Add XPM_DATA.
10848 (syms_of_xfns): Add `:color-symbols'.
10849 (xpm_keyword_index): Add XPM_COLOR_SYMBOLS.
10850 (xpm_valid_color_symbols_p): New.
10851 (xpm_image_p): Call it.
10852
10853 * xdisp.c (build_desired_toolbar_string): Add `:algorithm'
10854 attribute to the image if item is not enabled.
10855
10856 * xfns.c (x_laplace): New.
10857 (x_laplace_read_row): New.
10858 (x_laplace_write_row): New.
10859 (lookup_image): Handle common image attributes here. New
10860 attribute `:algorithm'.
10861
10862 * xfaces.c (clear_face_cache): Call clear_image_cache.
10863
10864 * xterm.c (x_inverted_image_mask): Removed.
10865 (x_draw_image_foreground_1): New.
10866 (x_draw_image_glyph_string): Draw images with mask to a temporary
10867 pixmap to reduce flickering.
10868
10869 * xdisp.c (redisplay_toolbar): Handle auto-resize-toolbars.
10870 (display_toolbar_line): Remove parameter `margin'.
10871
108721998-10-19 Gerd Moellmann <gerd@gnu.org>
10873
10874 * xdisp.c (toolbar_lines_needed): New.
10875 (auto-resize-toolbars): New.
10876
10877 * xfns.c (cache_image): Correct call to xrealloc.
10878
10879 * dispnew.c (Fset_toolbar_height): Removed.
10880
10881 * xdisp.c (init_xdisp): Use FRAME_TOP_MARGIN instead of
10882 FRAME_MENU_BAR_LINES.
10883
10884 * window.c (Fdelete_other_windows): Use FRAME_TOP_MARGIN
10885 instead of FRAME_MENU_BAR_LINES.
10886 (check_frame_size): Ditto.
10887
10888 * dispnew.c (adjust_frame_glyphs_initially): Use FRAME_TOP_MARGIN
10889 instead of FRAME_MENU_BAR_LINES.
10890 (adjust_frame_glyphs_for_frame_redisplay): Ditto.
10891 (build_frame_matrix): Ditto.
10892 (change_frame_size_1): Ditto.
10893
10894 * frame.h (FRAME_TOOLBAR_LINES): New.
10895 (FRAME_TOP_MARGIN): New.
10896
10897 * window.c (struct save_window_data): Add frame_toolbar_lines.
10898 (Fset_window_configuration): Handle toolbar lines.
10899 (Fcurrent_window_configuration): Save toolbar lines.
10900
10901 * frame.c (syms_of_frame_1): Add Qtoolbar_lines.
10902
10903 * xfns.c (Fx_create_frame): Add default parameter for toolbar.
10904
10905 * frame.h (struct frame): Rename top_margin to toolbar_lines.
10906
10907 * xfns.c (x_frame_parms): Add `toolbar-lines'.
10908 (x_set_toolbar_lines): New.
10909
10910 * keyboard.c (cmd_error_internal): Bug fix.
10911
10912 * xterm.c: Remove double include of syssignal.h.
10913
109141998-10-18 Gerd Moellmann <gerd@gnu.org>
10915
10916 * xterm.c (x_toolbar_item): New.
10917 (x_handle_toolbar_click): Use it.
10918 (note_toolbar_highlight): Use it.
10919
10920 * keyboard.c (syms_of_keyboard): Staticpro toolbar_item_properties
10921 and toolbar_items_vectors.
10922
10923 * xterm.c (help_echo): New.
10924 (draw_glyphs_face): Add DRAW_IMAGE_RAISED and DRAW_IMAGE_SUNKEN.
10925 (x_set_glyph_string_gc): Handle them.
10926 (x_after_update_window_line): Don't do anything in pseudo-windows.
10927 (x_produce_image_glyph): Take image margin and face relief into
10928 account.
10929 (x_get_glyph_string_clip_rect): Handle pseudo-windows.
10930 (x_draw_glyph_string_background): Optimize case when face has
10931 relief.
10932 (x_setup_relief_color): Take frame instead of glyph string
10933 parameter.
10934 (x_draw_relief_rect): New.
10935 (x_draw_glyph_string_relief): Call it.
10936 (x_draw_image_glyph_string_foreground): Handle margin and image
10937 relief.
10938 (x_draw_image_glyph_string_background): Ditto.
10939 (expose_frame): Redraw toolbar window.
10940 (expose_window): Don't draw cursor for pseudo-windows.
10941 (x_y_to_hpos_vpos): Handle pseudo-windows.
10942 (frame_to_window_pixel_xy): New.
10943 (note_mouse_highlight): Call note_toolbar_highlight.
10944 (x_handle_toolbar_click): New.
10945 (note_toolbar_highlight): New.
10946 (show_mouse_face): Change int parameter `hl' to parameter of
10947 type enum draw_glyphs_face. Handle image highlighting.
10948 (XTread_socket): Return a HELP_EVENT input event if help_echo is
10949 non-nil. Use x_handle_toolbar_click.
10950
10951 * termhooks.h (event_kind): Add HELP_EVENT, TOOLBAR_EVENT.
10952
10953 * xfns.c (image_value_type): Add IMAGE_INTEGER_VALUE,
10954 IMAGE_BOOL_VALUE.
10955 (parse_image_spec): Handle them.
10956 (image_spec_value): Additional parameter found.
427ec082 10957 (free_image): Remove image from the vector `images' of the
26901792
DL
10958 image cache.
10959 (clear_image_cache): Additional parameter force_p.
10960 (Fclear_image_cache): New.
10961 (x_find_image_file): New.
10962 (xbm_load): Handle `:margin' and `:relief'. Use
10963 x_find_image_file.
10964 (xpm_load): Likewise.
10965 (pbm_load): Likewise.
10966 (jpeg_load): Likewise.
10967 (tiff_load): Likewise.
10968 (gif_load): Likewise.
10969
10970 * keyboard.c (Qhelp_echo): New symbol.
10971 (read_char): Handle `toolbar' and `help_echo' events.
10972 (kbd_buffer_get_event): Handle HELP_ECHO input event.
10973 (make_lispy_event): Handle TOOLBAR_EVENT.
10974 (toolbar_items): New.
10975 (process_toolbar_item): New.
10976 (PROP): New.
10977 (init_toolbar_items): New.
10978 (append_toolbar_item): New.
10979 (read_char_x_menu_prompt): Handle `toolbar' event.
10980 (read_key_sequence): Ditto.
10981
10982 * xfaces.c (Qtoolbar): New.
10983 (realize_basic_faces): Realize `toolbar' face.
10984 (face_at_string_position): Remove parameter modeline_p, add
10985 base_face_id.
10986
10987 * xfns.c (xbm_load_image_from_file): Don't use Xmu function
10988 to read data.
10989
109901998-10-17 Gerd Moellmann <gerd@gnu.org>
10991
10992 * xdisp.c (init_iterator): Replace parameter modeline_p with
10993 base_face_id.
10994 (next_element_from_string): Call get_next_display_element
10995 recursively after handling text properties.
10996 (prepare_menu_bars): Call update_toolbar.
10997 (update_toolbar): New.
10998 (build_desired_toolbar_string): New.
10999 (display_toolbar_line): New.
11000 (redisplay_toolbar): New.
11001 (toolbar_item_info): New.
11002 (redisplay_window): Call redisplay_toolbar.
11003 (Fdump_toolbar_row): New. Defined if compiled with GLYPH_DEBUG.
11004
11005 * dispnew.c (clear_current_matrices): Clear matrices of toolbar
11006 window.
11007 (clear_desired_matrices): Ditto.
11008 (adjust_frame_glyphs_for_window_redisplay): Make toolbar window.
11009 (free_glyphs): Free matrices of toolbar window.
11010 (update_frame): Update toolbar window.
11011 (change_frame_size_1): Take toolbar into account.
11012 (Fset_toolbar_height): New.
11013
11014 * dispextern.h (struct it): Remove member modeline_p, add
11015 base_face_id.
11016 (struct image): Add members relief and margin.
11017 (IMAGE_ASCENT): Include margin in height.
11018
110191998-10-14 Gerd Moellmann <gerd@gnu.org>
11020
11021 * xfns.c (Fclear_image_cache): New.
11022
11023 * xfaces.c (realize_basic_faces): Realize toolbar face.
11024 (face_at_string_position): Remove parameter modeline_p, add
11025 base_face_id.
11026
11027 * dispextern.h (enum face_id): Add TOOLBAR_FACE_ID.
11028
110291998-10-13 Gerd Moellmann <gerd@gnu.org>
11030
11031 * keyboard.c (syms_of_keyboard): Intern `:help'.
11032
110331998-10-12 Gerd Moellmann <gerd@gnu.org>
11034
11035 * xterm.c (note_toolbar_highlight): New.
11036 (note_mouse_highlight): Call it.
11037
11038 * window.c (window_from_coordinates): Additional parameter toolbar_p.
11039 (coordinates_in_window): Handle toolbar window.
11040
11041 * keyboard.c (toolbar_items): New.
11042 (process_toolbar_item): New.
11043 (parse_toolbar_item): New.
11044 (init_toolbar_items): New.
11045 (append_toolbar_item): New.
11046
11047 * dispextern.h (enum toolbar_item_idx): New.
11048 (enum toolbar_item_image): New.
11049
11050 * frame.h (struct frame): Add toolbar-related members.
11051
11052 * xfaces.c (face_at_string_position): Remove assertion that
11053 current_buffer == window's buffer. This is not the case when
11054 called for the toolbar window.
11055
11056 * frame.c (make_frame): Initialize toolbar members.
11057
11058 * alloc.c (mark_object): Mark toolbar data of frames.
11059
11060 * frame.h (struct frame): Add toolbar-related members
11061 toolbar_window, desired_toolbar_items, current_toolbar_items,
11062 desired_toolbar_string, current_toolbar_string,
11063 n_desired_toolbar_items, n_current_toolbar_items. Add
11064 window_height.
11065
11066 * xterm.c (x_after_update_window_line): Don't draw bitmap
11067 areas for pseudo-windows.
11068 (expose_frame): Handle toolbar window.
11069 (expose_window): Don't do cursor stuff for pseudo-windows.
11070
11071 * xdisp.c (display_menu_bar): Correct calls to init_iterator.
11072
110731998-10-11 Gerd Moellmann <gerd@gnu.org>
11074
11075 * frame.c (make_frame): Initialize toolbar_window.
11076
11077 * alloc.c (mark_object): Make the toolbar window.
11078
11079 * dispnew.c (update_frame): Update frame's toolbar_window.
11080 (clear_current_matrices): Likewise.
11081 (clear_desired_matrices): Likewise.
11082 (adjust_frame_glyphs_for_window_redisplay): Make toolbar_window.
11083 (free_glyphs): Free the toolbar window and its matrices.
11084
11085 * frame.h (struct frame): Add toolbar_window.
11086
11087 * xterm.c (x_draw_glyph_string_relief): Handle mouse-face
11088 with relief.
11089
110901998-10-10 Gerd Moellmann <gerd@gnu.org>
11091
427ec082 11092 * dispnew.c (buffer_posn_from_coords): Don't screw up if
26901792
DL
11093 window start is not in the range BEGV..ZV.
11094
110951998-10-09 Gerd Moellmann <gerd@gnu.org>
11096
11097 * xdisp.c (try_scrolling): Experimentally handle the case
11098 that scroll-preserve-screen-position is set to `always'.
11099
11100 * window.c (Vscroll_preserve_screen_position): Replacement for
11101 scroll_preserve_screen_position.
11102
111031998-10-08 Gerd Moellmann <gerd@gnu.org>
11104
11105 * dispnew.c: Don't initialize auto structs; the HP/UX compiler
11106 doesn't like it.
11107 * xdisp.c: Ditto.
11108
11109 * xdisp.c (make_cursor_line_fully_visible): Adjust this_line_y.
11110
111111998-10-06 Gerd Moellmann <gerd@gnu.org>
11112
427ec082 11113 * minibuf.c (Fminibuffer_complete_word): Fix computation of
26901792
DL
11114 i_byte when prompts are inserted into minibuffers.
11115
11116 * dispextern.h (FRAME_INTERNAL_BORDER_WIDTH_SAFE): New.
11117 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X): Use it.
11118 (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y): Ditto.
11119
111201998-10-04 Gerd Moellmann <gerd@gnu.org>
11121
11122 * xdisp.c (make_cursor_line_fully_visible): New.
11123 (try_scrolling): New.
11124 (redisplay_window): Move scrolling code to try_scrolling.
11125 (make_cursor_line_fully_visible): Handle case of window too small
11126 to show a single line.
11127 (redisplay_window): Case forced window start---use
11128 make_cursor_line_fully_visible.
11129 (redisplay_window): Case cursor movement via current matrix.
11130 If ending up on a partially visible line, make it fully visible
11131 instead of recentering.
11132 (try_scrolling): Additional parameter scroll_smoothly.
11133
11134 * xterm.c (x_draw_bitmap): Don't XClearArea under the pixmap.
11135
111361998-09-28 Gerd Moellmann <gerd@gnu.org>
11137
11138 * window.c (window_scroll_pixel_based): Bug fix: vpos used
11139 instead of y-position for scroll-preserved-screen-position.
11140
111411998-09-07 Gerd Moellmann <gerd@gnu.org>
11142
11143 * dispnew.c (update_frame_line): If current row is not enabled,
11144 write the whole line.
11145
111461998-09-06 Gerd Moellmann <gerd@gnu.org>
11147
11148 * lisp.h (HAVE_FACES): Removed.
11149
11150 * dispextern.h (HAVE_FACES): Removed.
11151
11152 * config.in (HAVE_FACES): Removed.
11153
11154 * dispnew.c (HAVE_FACES): Removed.
11155
11156 * xdisp.c (HAVE_FACES): Removed.
11157
11158 * xfaces.c (HAVE_FACES): Removed.
11159
111601998-09-05 Gerd Moellmann <gerd@gnu.org>
11161
11162 * xdisp.c (init_iterator): If face_change_count is non-zero,
11163 free realized faces.
11164
11165 * xfaces.c (free_all_realized_faces): Make it externally visible.
11166 (Finternal_set_lisp_face_attribute): Increment
11167 windows_or_buffers_changed.
11168
11169 * dispnew.c (direct_output_for_insert): Give up if
11170 face_change_count is non-zero.
11171 (direct_output_forward_char): Ditto.
11172
11173 * xfaces.c (face_change_count): New.
11174
111751998-09-04 Gerd Moellmann <gerd@gnu.org>
11176
11177 * xterm.c (x_draw_bar_cursor): Don't draw if cursor hpos is out
11178 of range.
11179
111801998-09-03 Gerd Moellmann <gerd@gnu.org>
11181
11182 * term.c (Ftty_display_color_p): New.
11183
111841998-09-02 Gerd Moellmann <gerd@gnu.org>
11185
11186 * xfaces.c (Ftty_defined_colors): New.
11187
11188 * xterm.c (x_produce_glyphs): Fix computation of
11189 contains_overlapping_glyphs_p for ASCII.
11190
11191 * dispnew.c (Fshow_cursor): Don't change cursor state while
11192 redisplaying.
11193 (direct_output_for_insert): If a glyph with lbearing or rbearing
11194 is among the new glyphs, set row flag contains_overlapping_glyph_p.
11195
111961998-09-01 Gerd Moellmann <gerd@gnu.org>
11197
11198 * term.c (OUTPUT_IF): Make replacement text have statement form.
11199 (OUTPUT1_IF): Ditto.
11200 (TS_italic_mode, TS_end_italic_mode): Removed.
11201 (TS_bold_mode): Removed.
11202 (TS_underscore_mode, TS_end_underscore_mode): Removed.
11203 (TS_enter_bold_mode, TS_enter_dim_mode, TS_enter_blink_mode): New.
11204 (TS_enter_reverse_mode): New.
11205 (TS_enter_underline_mode, TS_exit_underline_mode): New.
11206 (TN_magic_cookie_glitch_ul): New.
11207 (TS_enter_alt_charset_mode, TS_exit_alt_charset_mode): New.
11208 (TS_exit_attribute_mode): New.
11209 (TN_max_colors, TN_max_pairs, TS_orig_pairs): New.
11210 (TS_set_foreground, TS_set_background): New.
11211 (reset_terminal_modes): Switch colors back to default.
11212 (write_glyphs): Turn face on before writing text, turn it off
11213 afterwards.
11214 (insert_glyphs): Ditto.
11215 (term_init): Initialize new terminal capability variables.
11216 (turn_on_face): Turn a face on.
11217 (turn_off_face): Turn a face off.
11218
11219 * lisp.h (MAKE_GLYPH): Remove test for frame type.
11220 (GLYPH_CHAR): Ditto.
11221 (GLYPH_FACE): Ditto.
11222
11223 * xfaces.c (Vface_tty_color_alist): New.
11224 (face-register-tty-color): New.
11225 (face-clear-tty-colors): New.
11226
11227 * dispextern.h (FACE_TTY_DEFAULT_COLOR): New.
11228 (struct it): Remove member faces_p since we now always have faces.
11229
112301998-08-31 Gerd Moellmann <gerd@gnu.org>
11231
11232 * dispextern.h (struct face): Add tty appearance flags.
11233
11234 * xdisp.c (init_iterator): Always handle faces.
11235 (extend_face_to_end_of_line): Handle tty frames.
11236
11237 * dispnew.c (clear_glyph_matrix): Allow a null matrix to be
11238 passed in.
11239
112401998-08-30 Gerd Moellmann <gerd@gnu.org>
11241
11242 * xfaces.c (realize_default_face): Use empty strings to indicate
11243 that the face should use the default foreground/background
427ec082 11244 color of the terminal. Fill font-related attributes with
26901792
DL
11245 appropriate values for tty frames.
11246
11247 * emacs.c (main): Call syms_of_xfaces before init_window_once.
11248
11249 * xfaces.c (realize_default_face): If face `default' is not
11250 yet known, create it.
11251
11252 * frame.c (make_terminal_frame): Call init_frame_faces
11253 unconditionally.
11254
11255 * xfaces.c (init_frame_faces): Make it work for tty frames.
11256 (free_frame_faces): Ditto.
11257 (clear_face_cache): Ditto.
11258 (recompute_basic_faces): Ditto.
11259 (Fframe_face_alist): Ditto.
11260 (free_realized_face): Ditto.
11261 (prepare_face_for_display): Ditto.
11262 (clear_face_gcs): Ditto.
11263 (lookup_face): Ditto.
11264 (smaller_face): Ditto.
11265 (realize_default_face): Ditto.
11266 (realize_face): Ditto.
11267 (realize_face): Dispatch to functions depending on the frame type.
11268 (realize_x_face): X way of realizing faces.
11269 (realize_tty_face): TTY way of realizing faces.
11270
112711998-08-29 Gerd Moellmann <gerd@gnu.org>
11272
11273 * xfaces.c (realize_face): Remove parameter unibyte_registry,
11274 compute it instead.
11275 (lookup_face): Remove local variable unibyte_registry.
11276
112771998-08-22 Gerd Moellmann <gerd@gnu.org>
11278
11279 * xterm.c (x_draw_glyph_string_relief): Draw top and bottom lines
11280 1 pixel longer.
11281
427ec082 11282 * xdisp.c (face_before_or_after_it_pos): Fix computation
26901792
DL
11283 of face in buffer.
11284
11285 * editfns.c (make_buffer_string_both): If prompt in buffer,
11286 prevent start > end.
11287
11288 * indent.c (Fvertical_motion): Set current_buffer to window's
11289 buffer if it isn't already.
11290
112911998-08-21 Gerd Moellmann <gerd@gnu.org>
11292
11293 * dispextern.h (GLYPH_DEBUG): Use default 0.
11294
11295 * xdisp.c (it_props): New member `smaller'.
11296 (init_iterator): Initialize it.
11297 (Qsmaller): New.
11298 (push_it): Save value of `smaller' value on the stack.
11299 (pop_it): Restore `smaller' from the stack.
11300 (handle_smaller_prop): New.
11301 (handle_face_prop): Use `smaller' text property to select a
11302 suitable face.
11303
11304 * dispextern.h (SMALLER_PROP_IDX): New.
11305 (struct it): Add member `smaller'.
11306
11307 * xfaces.c (smaller_face): New.
11308
11309 * frame.h (FRAME_WINDOW_WIDTH_ARG): Add bitmap area widths.
11310
11311 * dispnew.c (allocate_matrices_for_window_redisplay): Compute
11312 total pixel width of window differently.
11313
11314 * xdisp.c (init_iterator): Compute width of mode line differently.
11315
11316 * dispextern.h (WINDOW_DISPLAY_PIXEL_WIDTH): Subtract width
11317 of bitmap areas.
11318
11319 * window.c (Fsplit_window): Include width of bitmap areas in
11320 window width.
11321 (window_internal_width): Subtract width of bitmap areas from
11322 total width.
11323
113241998-08-18 Gerd Moellmann <gerd@gnu.org>
11325
11326 * xdisp.c: Functions reordered for better readability.
11327
11328 * dispnew.c (update_text_area): Handle glyphs with arbitrary
11329 lbearing.
11330 (update_window_tree): Parameter no_scrolling_p removed.
11331 (update_single_window): Ditto.
11332
11333 * xterm.c (x_get_char_font_and_encoding): Renamed to
11334 x_get_char_face_and_encoding.
11335
11336 * dispnew.c (update_text_area): Don't call get_glyph_overhangs
11337 if end of current row reached.
11338
11339 * xterm.c (x_get_glyph_face_and_encoding): New.
11340 (x_get_glyph_overhangs): Call it.
11341
11342 * xdisp.c (Qshow_trailing_whitespace): New.
11343 (Qtrailing_whitespace): New.
11344 (enum prop_handled): New.
11345 (struct props, it_props): New.
11346 (next_overlay_change): New. Works like Fnext_overlay_change
11347 but doesn't use xmalloc.
11348 (handle_stop): Restructured.
11349 (face_before_or_after_it_pos): Case iteration over a string: fix
11350 handling of face before current position.
11351
113521998-08-16 Gerd Moellmann <gerd@gnu.org>
11353
11354 * dispnew.c (adjust_glyph_matrix): Don't optimize matrix
11355 reallocation matrix if fonts_changed_p.
11356 (update_text_area): Handle glyphs with lbearing.
11357
113581998-08-14 Gerd Moellmann <gerd@gnu.org>
11359
11360 * xdisp.c (struct props): New.
11361 (it_props): New.
11362 (compute_prop_info): New.
11363 (handle_stop): New.
11364
11365 * textprop.c (validate_interval_range): Make it externally
11366 visible.
11367
11368 * dispnew.c (direct_output_for_insert): Remove calls
11369 to compute_stop_pos.
11370
11371 * dispextern.h (struct it): Remove check_charpos,
11372 next_overlay_pos. Add what_changes.
11373
113741998-08-10 Gerd Moellmann <gerd@gnu.org>
11375
11376 * xterm.c (note_mouse_highlight): Set BEGV_BYTE, ZV_BYTE.
11377
11378 * xfaces.c (Vx_unibyte_registry_and_encoding): Removed. Use
11379 face_default_registry instead.
11380
11381 * syntax.c (scan_sexps_forward): Set up syntax table before
11382 jumping to initial state label.
11383
113841998-08-09 Gerd Moellmann <gerd@gnu.org>
11385
11386 * dispnew.c (check_matrix_invariants): Handle case of row end pos
11387 >= ZV specially.
11388
113891998-08-08 Gerd Moellmann <gerd@gnu.org>
11390
11391 * xdisp.c (redisplay_window): Case cursor movement---if cursor
11392 ends up in partially visible row, try to scroll. Case forced
11393 window start---handle windows not tall enough to show a single
11394 line.
11395
11396 * window.h (struct window): Member dy renamed vscroll.
11397
11398 * xterm.c (x_list_fonts): Re-activate suppression of scalable
11399 fonts.
11400 (x_draw_stretch_glyph_string): Set clipping if using GC that
11401 hasn't set it yet.
11402
11403 * xdisp.c (redisplay_window): Case forced window start -
11404 don't let cursor end on partially visible row. Use desired
11405 matrix to find a suitable PT if it doesn't appear.
11406 (decode_mode_spec): Merged with 20.2.97.
11407 (try_window_reusing_current_matrix): Give up if old or
11408 new display is vscrolled.
11409 (redisplay_window): Reset vscrolling if forced window start,
11410 or if recentering.
11411
114121998-08-06 Gerd Moellmann <gerd@gnu.org>
11413
11414 * xfaces.c (realize_default_face): Use the fontset name instead of
11415 the alias for the family attribute of the default face because we
11416 can't easily determine a good alias from fontset-alias-alist.
11417 (face_fontset): Use Fquery_fontset to find the fontset.
11418 (font_list): Additional pattern parameter.
11419 (try_font_list): Ditto.
11420 (set_lface_from_font_name): Set face family from font foundry
11421 and family.
11422 (font_list): If family contains a hyphen, build pattern differently.
11423
114241998-08-05 Gerd Moellmann <gerd@gnu.org>
11425
11426 * xfaces.c (free_realized_faces): Increment windows_or_buffers_-
11427 changed instead of setting the frame garbaged.
11428
11429 * xfaces.c (lface_equal_p): Don't assume equal Lisp types for
11430 all attribute values. This is wrong if values are unspecified,
11431 i.e. nil.
11432
11433 * xdisp.c (try_window_id): Give up if window start changed.
11434
11435 * xfaces.c (make_realized_face): Store registry as Lisp object.
11436 (load_face_font_or_fontset): Compute registry of a face
11437 differently. Make it `eq' to Vx_unibyte_registry_and_encoding if
11438 possible.
11439
11440 * dispextern.h (FACE_SUITABLE_FOR_CHARSET_P): Compare registries
11441 differently.
11442
11443 * alloc.c (mark_face_cache): Mark the registry member of faces.
11444
11445 * dispextern.h (struct face): Make registry a Lisp string.
11446
114471998-08-04 Gerd Moellmann <gerd@gnu.org>
11448
11449 * xterm.c (x_get_char_font_and_encoding): Additional parameter
11450 multibyte_p. Handle unibyte text.
11451 (x_append_glyph): Set the multibyte_p flag of glyphs.
11452 (x_produce_image_glyph): Ditto.
11453 (x_append_stretch_glyph): Ditto.
11454 (x_produce_glyphs): Handle unibyte text like ASCII.
11455
11456 * xdisp.c (push_it): Save the multibyte flag of an iterator on the
11457 stack.
11458 (pop_it): Restore it.
11459 (face_before_or_after_it_pos): Handle the case that the string or
11460 buffer is unibyte.
11461 (get_overlay_strings): Set the multibyte flag of the iterator if
11462 the new overlay string is multibyte.
11463 (get_glyph_property): Likewise.
11464 (get_next_display_element): Don't check for charset changes in
11465 unibyte text.
11466 (append_space): Compute face differently for unibyte text.
11467 (extend_face_to_end_of_line): Don't return quickly if face has
11468 stipple.
11469
11470 * xfaces.c (load_face_font_or_fontset): Store registry and
11471 encoding of the font in the registry member of the face.
11472 (make_realized_face): Additional parameter `registry'.
11473 (free_realized_face): Free the registry of a realized face.
11474 (face_suitable_for_charset_p): Function form of the macro
11475 with the same name in uppercase.
11476 (lookup_face): Use Vx_unibyte_registry_and_encoding if charset < 0.
11477 (choose_face_font): New parameter unibyte_registry.
11478 (choose_face_fontset_font): Ditto.
11479 (realize_default_face): Remember the registry and encoding of
11480 the specified frame font in Vx_unibyte_registry_and_encoding.
11481 (face_at_buffer_position): Handle unibyte.
11482 (face_at_string_position): Likewise.
427ec082 11483 (realize_face): New parameter unibyte_registry.
26901792
DL
11484 (compute_char_face): Handle the unibyte case.
11485
11486 * dispextern.h (struct glyph): Add bit multibyte_p.
11487 (struct face): New member registry holding the registry and
11488 encoding of the X font of the face.
11489 (FACE_UNIBYTE_P): Value is non-zero if face is for unibye text.
11490 (enum face_id): Add BASIC_FACE_ID_SENTINEL.
11491 (FACE_SUITABLE_FOR_CHARSET_P): Handle charset < 0 meansing unibyte
11492 text.
11493 (struct iterator_stack_entry): Add multibyte_p.
11494
11495 * xdisp.c (string_pos): Use string_char_to_byte.
11496 (char_charset): Removed.
11497
114981998-08-03 Gerd Moellmann <gerd@gnu.org>
11499
11500 * xterm.c (x_draw_image_glyph_string_foreground): Draw a
11501 rectangle for a block cursor over an image without a mask.
11502 (x_stretch_block_cursor): Added. Non-zero means don't draw
11503 a block cursor over a stretch as wide as that stretch.
11504 (x_draw_stretch_glyph_string): Use it.
11505 (x_draw_hollow_cursor): Ditto.
11506
11507 * minibuf.c (read_minibuf): Use minibuf_prompt instead of prompt.
11508 (read_minibuf): Add front-sticky text property for prompt.
11509
11510 * xdisp.c (char_charset): Return charset of a character,
11511 depending on whether or not multi-byte characters are enabled.
11512
11513 * xfaces.c (Fset_face_charset_registry): Removed.
11514 (x_charset_registry): Determine registry from charset plist.
11515
115161998-08-02 Gerd Moellmann <gerd@gnu.org>
11517
11518 * xdisp.c (get_next_display_element): Don't check for charset
11519 changes if multi-byte characters are not enabled.
427ec082 11520
26901792 11521 * xdisp.c (echo_area_display): Use the flush function from the
427ec082 11522 redisplay interface.
26901792
DL
11523 * keyboard.c (detect_input_pending_run_timers): Likewise.
11524
11525 * dispextern.h (produce_*glyphs_hook): Removed.
11526 * term.c (produce_*glyphs): Ditto.
11527 (cursor_to): Remove pixel position parameters.
11528
11529 * dispnew.c: Remove hooks for window-based redisplay, introduce
11530 a redisplay interface structure.
11531
11532 * xterm.c (x_per_char_metric): Return default char metrics if per
11533 char metric exists but contains a zero width. Adobe Courier seems
11534 to contain such characters.
11535
11536 * xdisp.c (compute_line_metrics): Compute the width of rows
11537 without stopping at glyphs with zero width.
11538
115391998-08-01 Gerd Moellmann <gerd@gnu.org>
11540
11541 * xdisp.c (display_mode_line): If nothing was displayed at all,
11542 display a space.
11543 (hscroll_window_tree): Don't subtract 1 from target point if equal
11544 to ZV and window is not the selected window.
11545
11546 * dispnew.c (check_matrix_invariants): Remove check for window
11547 start at BEGV or after newline. This happens in rare cases
11548 intentionally.
11549
115501998-07-31 Gerd Moellmann <gerd@gnu.org>
11551
11552 * xfaces.c (x_charset_registry): Use STRING_BYTES.
11553 (syms_of_xfaces): Add Vface_default_registry.
11554 (x_charset_registry): Use it.
11555
11556 * xdisp.c (run_window_scroll_functions): Run window scroll functions.
11557 (redisplay_window): Use it.
11558
11559 * dispnew.c (update_text_area): Handle lbearing of deleted text
11560 by backing up one character.
11561
115621998-07-30 Gerd Moellmann <gerd@gnu.org>
11563
427ec082 11564 * dispnew.c (adjust_glyph_matrix): Use a different check to
26901792
DL
11565 decide to do nothing.
11566
11567 * xfaces.c (face_at_string_position): Additional parameter
11568 mode_line_p. If non-zero, merge with the mode line face
11569 instead of the default face.
11570 * dispextern.h (struct it): Add mode_line_p.
11571 * xdisp.c (init_iterator): Set it.
11572 (compute_face_in_string): Use it.
11573 (face_before_or_after_it_pos): Handle strings.
11574 (get_next_display_element): Don't look for relief end in C strings.
11575 (next_element_from_string): Deliver string position instead of
11576 buffer position.
11577
11578 * xterm.c (x_flush): Flush X output buffer.
11579 (XTflash): Use it.
11580
11581 * xfaces.c (lface_from_face_name): Renamed from lface_from_symbol.
11582 Allow strings as face names.
11583
11584 * xfns.c (forall_images_in_image_cache): Check that frame is
11585 alive.
11586
11587 * widget.c (EmacsFrameDestroy): Remove call to free_frame_faces;
11588 it's also called from x_destroy_window. Since this function is
11589 called from X, freeing stuff allocated with xmalloc is dangerous
11590 here, anyway.
11591
11592 * xfaces.c (free_realized_faces): Don't clear current matrices
11593 of a frame being destroyed.
11594
427ec082 11595 * frame.c (make_frame): Call set_window_buffer instead of
26901792
DL
11596 Fset_window_buffer.
11597
11598 * window.c (set_window_buffer): Extracted from Fset_window_buffer,
11599 with an additional argument specifying whether or not hooks may
11600 be called.
11601 (Fset_window_buffer): Call it.
11602
11603 * dispnew.c (clear_desired_matrices): Check that frame has
11604 a valid root window before clearing matrices in the window tree.
11605 (clear_current_matrices): Ditto.
11606 (clear_window_matrices): If GLYPH_DEBUG, check that hchild and
11607 vchild are valid windows if not nil.
11608
11609 * xfaces.c (merge_face_vector_with_property): Allow :reverse-video
11610 for :inverse-video.
11611 (Finternal_set_lisp_face_attribute): Ditto.
11612 (Finternal_set_lisp_face_attribute_from_resource): Ditto.
11613 (Finternal_get_lisp_face_attribute): Ditto.
11614 (Finternal_lisp_face_attribute_values): Ditto.
11615 (syms_of_xfaces): Define the symbol `:reverse-video'.
11616
11617 * xdisp.c (get_glyph_property): Renamed from
11618 fill_iterator_from_glyph_property.
11619 (next_element_from_buffer): Handle case that no `glyph' property
11620 was found correctly.
11621 (display_line): Extend face to end of line only if we have faces.
11622
116231998-07-29 Gerd Moellmann <gerd@gnu.org>
11624
11625 * dispnew.c (Fshow_cursor): Renamed from blink_cursor. Take
11626 additional window argument.
11627
11628 * xdisp.c (reseat_at_previous_visible_line_start): Renamed from
11629 set_iterator_to_previous_visible_line_start.
11630 (reseat_at_next_visible_line_start): Likewise.
11631 (compute_stop_pos): Renamed from set_iterator_stop_pos.
11632 (face_before_or_after_it_pos): Renamed from get_face_at_it_pos.
11633 (compute_face_in_buffer): Renamed from
11634 compute_face_at_iterator_position.
11635 (compute_face_in_string): Renamed from
11636 compute_face_at_iterator_string_position.
11637 (get_space_width): Renamed from get_iterator_space_width.
11638 (next_overlay_string): Renamed from
11639 set_iterator_to_next_overlay_string.
11640 (get_overlay_strings): Renamed from
11641 get_overlay_strings_at_iterator_position.
11642 (restore_overlay_strings): Renamed from
11643 setup_overlay_strings_from_glyph_pos.
11644 (restore_dpvec): Renamed from setup_iterator_dpvec_from_glyph_pos.
11645 (init_from_display_pos): Renamed from init_iterator_from_glyph_pos.
11646 (init_to_row_start): Renamed from init_iterator_to_row_start.
11647 (init_to_row_end): Formerly init_iterator_to_next_row_start.
11648
11649 * xterm.c: Merge with 20.2.97.
11650 (x_produce_glyphs): Use x_append_stretch_glyph for tabs.
11651
11652 * dispextern.h (struct glyph): Replace text_pos position with
11653 simple charpos.
11654
11655 * xdisp.c (this_line_start_pos): Use struct text_pos.
11656 (this_line_end_pos): Renamed from .*endpos; use struct text_pos.
11657 (enum move_it_result): Renamed from move_iterator_result.
11658 (string_pos_nchars_ahead): Compute text_pos in a string from a
11659 known text_pos plus a character delta.
11660 (string_pos): Compute text_pos in string from charpos.
11661 (c_string_pos): Likewise for a C string.
11662 (number_of_chars): Return number of characters in a possibly
11663 multi-byte C string.
11664 (check_it): Renamed from check_iterator. Check that charpos and
11665 bytepos are in sync.
11666 (push_it): Renamed from save_iterator_settings.
11667 (pop_it): Renamed from restore_iterator_settings.
11668 (move_it_.*): Renamed from move_iterator_.*.
11669 (charset_at_position): Take charpos/bytepos into account.
11670 (back_to_previous_line_start): Set iterator to previous line start.
11671 (forward_to_next_line_start): Set iterator to next line start.
427ec082 11672 (back_to_previous_visible_line_start): Renamed from
26901792
DL
11673 move_iterator_previous_visible_line_start.
11674 (set_iterator_to_next_visible_line_start): Handle charpos/bytepos.
11675 (get_face_at_it_pos): Renamed from get_face_from_cursor_pos.
11676 Handle charpos/bytepos.
11677 (compute_face_at_iterator_position): Handle charpos/bytepos.
11678 (compute_face_at_iterator_string_position): Likewise.
11679 (get_iterator_space_width): Likewise.
11680 (load_overlay_strings): Likewise.
11681 (get_overlay_strings_at_iterator_position): Likewise.
11682 (reseat_iterator): Take a text_pos position argument.
11683 (setup_iterator_overlay_strings_from_glyph_pos): Handle charpos/
11684 bytepos.
11685 (init_iterator): Take additional bytepos parameter.
11686 (reseat_iterator_to_string): Handle charpos/bytepos.
11687 (start_display): Take a text_pos parameter. Handle charpos/bytepos.
11688 (next_element_from_string): Handle charpos/bytepos.
11689 (next_element_from_c_string): Likewise.
11690 (fill_iterator_from_glyph_property): Likewise.
11691 (next_element_from_buffer): Likewise.
11692 (set_iterator_to_next): Increment charpos and bytepos of an iterator.
11693 (move_iterator_in_display_line_to): Handle charpos/bytepos.
11694 (move_it_to): Likewise.
11695 (move_it_vertically_backward): Likewise.
11696 (move_it_vertically): Likewise.
11697 (move_it_by_lines): Likewise.
11698 (hscroll_window_tree): Likewise.
11699 (redisplay_internal): Likewise.
11700 (set_cursor_from_row): Likewise.
11701 (redisplay_window): Likewise.
11702 (try_window): Take a text_pos parameter. Handle charpos/bytepos.
11703 (try_window_reusing_current_matrix): Handle charpos/bytepos.
11704 (get_first_unchanged_at_end_row): Compute and return delta_bytes.
11705 (try_window_id): Handle charpos/bytepos.
11706 (Ftrace_redisplay_toggle): Return Qnil.
11707 (get_overlay_arrow_glyph_row): Handle charpos/bytepos.
11708 (insert_left_trunc_glyphs): Likewise.
11709
11710 * dispnew.c: `Merge' with 20.2.97 (it's really too different to
11711 do a real merge).
11712 (increment_glyph_matrix_buffer_positions): Add parameter delta_bytes.
11713 (increment_glyph_row_buffer_positions): Ditto.
11714 (copy_glyph_row_contents): Ditto.
11715 (check_matrix_invariants): Add additional checks for charpos/
11716 bytepos consistency.
11717 (direct_output_for_insert): Changed for charpos/bytepos.
427ec082 11718 (buffer_posn_from_coords): Likewise. Put code dealing with
26901792
DL
11719 `direction-reversed' in #if 0.
11720
11721 * xterm.h: Merge with 20.2.97.
427ec082 11722
26901792
DL
11723 * frame.h: Merge with 20.2.97.
11724
11725 * window.h: Merge with 20.2.97. Add window_end_bytepos.
11726
11727 * dispextern.h (MATRIX_ROW_START_CHARPOS): Get charpos of a row
11728 start.
11729 (MATRIX_ROW_START_BYTEPOS): Likewise for the byte position.
11730 (MATRIX_ROW_END_CHARPOS): Likewise for the row end.
11731 (MATRIX_ROW_END_BYTEPOS): Likewise for the row end byte position.
11732 (struct it): Various members renamed from .*pos to .*charpos.
11733 (IT_CHARPOS): Access current buffer character position of an
11734 iterator.
11735 (IT_BYTEPOS): Access current buffer byte position of an iterator.
11736 (IT_STRING_CHARPOS): Access current string character position of
11737 an iterator.
11738 (IT_STRING_BYTEPOS): Access current string byte position of
11739 an iterator.
11740 (globally): Add function prototypes from 20.2.97.
11741
11742 * everywhere: Use P_ instead of PROTO for function prototypes
11743 because everyone else seems to use P_.
11744
11745 * dispextern.h (struct text_pos): Structure describing a charpos/
11746 bytepos position in text.
11747 (BYTEPOS): Access the byte position part of a text_pos.
11748 (CHARPOS): Likewise for the character position.
11749 (SET_TEXT_POS): Set a text_pos from a character and byte position.
11750 (INC_TEXT_POS, DEC_TEXT_POS): Increment/decrement a text position.
11751 (SET_TEXT_POS_FROM_MARKER): Set a text_pos from a marker.
11752 (SET_MARKER_FROM_TEXT_POS): Set a marker from a text_pos.
11753 (TEXT_POS_EQUAL_P): Compare two text_pos structures for equality.
11754 (struct display_pos): Renamed from glyph_pos. Use struct text_pos
11755 for buffer and string positions.
11756 (struct glyph): Use text_pos.
11757 (struct it): Renamed from display_iterator. Use text_pos.
11758
117591998-07-23 Gerd Moellmann <gerd@gnu.org>
11760
11761 * xfns.c (x_kill_gs_process): Get image colors from XImage of a
11762 pixmap.
11763
117641998-07-21 Gerd Moellmann <gerd@gnu.org>
11765
11766 * dispextern.h (struct glyph_row): New flag indicate_zv_line_p.
11767 * xterm.c (x_draw_row_bitmaps): Use it.
11768 * dispnew.c (row_equal_p): Ditto.
11769 (update_window_line): Ditto.
11770
11771 * xfns.c (prepare_image_for_display): Don't set loading_failed_p
11772 flag of images.
11773
11774 * dispextern.h (struct image): Removed member loading_failed_p.
11775 It's probably better to have the chance to try to load an image
11776 again.
11777
117781998-07-20 Gerd Moellmann <gerd@gnu.org>
11779
11780 * xterm.c (x_draw_bitmap): Draw bitmap for empty lines ending
11781 at ZV if `indicate-zv-lines' is non-nil.
11782 (x_draw_row_bitmaps): Compute bitmap for `indicate-zv-lines'.
11783
11784 * dispnew.c (row_equal_p): Compare displays_text_p and
11785 ends_at_zv_p flags of rows.
11786 (update_window_line): Ditto.
11787
11788 * buffer.h (struct buffer): New member indicate_zv_lines.
11789
11790 * buffer.c (init_buffer_once): Add default for `indicate-zv-lines'.
11791 (init_buffer_once): New variable `default-indicate-zv-lines'.
11792 (syms_of_buffer): New buffer-local varianle `indicate-zv-lines'.
11793
11794 * xdisp.c (redisplay_window): Don't try moving the cursor
11795 if current glyph row w->last_cursor.vpos isn't enabled.
11796
11797 * xterm.c (bitmap_type): Add ZV_LINE_BITMAP.
11798
11799 * window.c (Fset_window_vscroll): Allow only negative scroll
11800 values. Others don't seem to make sense, and this way it's easy
11801 to restore a vscroll of zero.
11802
11803 * xterm.c (x_inverted_image_mask): Check that pixmap could be
11804 allocated.
11805 (x_draw_image_glyph_string_background): Don't clip if pixmap
11806 could not be created.
11807
11808 * xfns.c (xbm_load_image_from_file): Check that pixmap could
11809 be created.
11810 (xbm_load): Ditto.
11811 (gs_load): Ditto.
11812
11813 * xterm.c (x_get_glyph_overhangs): Take image and stretch
11814 glyphs into account.
11815
11816 * xfaces.c (realize_default_face): Don't set font family of
11817 the default face from the fontset alias name for `fontset-startup'.
11818
11819 * xfns.c (gs_load): Pass frame's pixel foreground and background
11820 color to the Lisp loader.
11821
118221998-07-19 Gerd Moellmann <gerd@gnu.org>
11823
11824 * xfns.c (tiff_image_p, tiff_load): Support TIFF images via
11825 libtiff34.
11826
11827 * configure.in (--with-tiff, HAVE_TIFF): Added.
11828
11829 * config.in (HAVE_TIFF): Added.
11830
11831 * Makefile.in (LIBTIFF): Added.
11832
11833 * xfns.c (jpeg_image_p, jpeg_load): Support JPEG images.
11834
11835 * Makefile.in (LIBJPEG): Added.
11836
11837 * xfns.c (resource_types): Enumerators renamed to RES_TYPE_NUMBER,
11838 RES_TYPE_BOOLEAN etc. because of conflict of `boolean' with
11839 jpeglib.h.
11840
427ec082 11841 * configure.in (HAVE_JPEG, --with-jpeg): Added. On systems
26901792
DL
11842 where the library is installed in /usr/local/lib, e.g. FreeBSD,
11843 configure must be run with `--x-includes=/usr/X11R6/include:
11844 /usr/local/include --x-libraries=/usr/X11R6/lib:/usr/local/lib'.
11845
118461998-07-18 Gerd Moellmann <gerd@gnu.org>
11847
11848 * config.in (HAVE_JPEG): Added.
11849
11850 * xfns.c (ct_init): Initialize color table used to map RGB colors
11851 from images to X pixel colors.
11852 (ct_free): Free color table.
11853 (ct_lookup): Look an RGB color up.
11854 (ct_allocated_colors): Get vector of allocated colors.
427ec082 11855 (pbm_image_p): Test if image specification is a valid PPM
26901792
DL
11856 image specification.
11857 (pbm_scan_number): Scan a decimal ASCII number from a file.
11858 (pbm_load): Load a PPM image.
11859
11860 * window.c (Fset_window_vscroll): Adjust glyph matrix if
11861 necessary. Take canonical character units as parameter.
11862 (Fwindow_vscroll): Return canonical character units.
11863
11864 * dispnew.c (allocate_matrices_for_window_redisplay): Add negative
11865 w->dy to display height for which glyph rows must be allocated.
11866
118671998-07-17 Gerd Moellmann <gerd@gnu.org>
11868
11869 * xfaces.c (face_at_string_position): Merge in region face
11870 so that it won't overwrite the font in the region.
11871 (face_at_buffer_position): Ditto.
11872 (realize_basic_faces): Don't realize region face.
11873
11874 * dispextern.h (enum face_id): REGION_FACE_ID removed.
11875
11876 * xterm.c (x_set_glyph_string_background_width): Don't let
11877 cursor face extend to end of line.
11878
11879 * xdisp.c (append_space): If adding space of default face,
11880 make sure glyph ist produced with right face.
11881
11882 * xterm.c (x_clear_glyph_string_rect): Draw a rectangle in the
11883 background color of a glyph string.
11884 (x_draw_glyph_string_background): Call it.
11885 (x_draw_glyph_string_bg_rect): Ditto.
11886 (x_draw_stretch_glyph_string): Ditto.
11887
118881998-07-15 Gerd Moellmann <gerd@gnu.org>
11889
11890 * xdisp.c (init_iterator): Initialize it->current_y to the
11891 window's vscroll w->dy.
11892
11893 * window.c (Fwindow_vscroll): Return number of pixels window
11894 is vscrolled smoothly.
11895 (Fset_window_vscroll): Set the number.
11896
11897 * xdisp.c (move_iterator_to): Recognize case MOVE_TO_POS and
11898 to_pos in truncated part of a line.
11899
119001998-07-14 Gerd Moellmann <gerd@gnu.org>
11901
11902 * xdisp.c (move_iterator_in_display_line_to): If very first glyph
11903 doesn't fit on the line, truncate it, despite truncate_lines nil.
11904 (display_line): Ditto.
11905
11906 * xfns.c: Experimental support for Ghostscript images.
11907
11908 * xterm.c (x_term_init): Initialize new atoms DONE and PAGE.
11909 (XTread_socket): React on events from Ghostscript.
11910 (expose_frame): If width or height are zero, redraw entire frame.
11911 (XTread_socket): Call expose_frame after receiving event from
11912 Ghostscript.
11913
11914 * xterm.h (struct x_display_info): Add atoms DONE and PAGE
11915 for Ghostscript support.
11916
11917 * xdisp.c (redisplay_internal): Return quickly if called
11918 recursively.
11919
11920 * alloc.c (NSTATICS): Increased to 1024.
11921
119221998-07-08 Gerd Moellmann <gerd@gnu.org>
11923
11924 * xterm.c (x_append_stretch_glyph): Append a stretch glyph to an
11925 iterator's glyph row.
11926 (x_produce_stretch_glyph): Call it.
11927 (x_produce_glyphs): Handle `space-width' property; call
11928 x_append_stretch_glyph.
11929
11930 * xdisp.c (syms_of_xdisp): Add symbol `space-width' used as a text
11931 property.
11932 (get_iterator_space_width): Determine value of `space-width'
11933 property at iterator's position.
11934 (reseat_iterator): Call it.
11935 (next_element_from_string): Ditto.
11936 (next_element_from_buffer): Ditto.
11937 (init_iterator): Initialize space_width of iterator.
11938 (redisplay_internal): Don't goto end_of_redisplay if PT hasn't
11939 moved, but cursor blinks.
11940 (redisplay_internal): Set w->last_cursor_off_p after update.
11941
11942 * dispextern.h (enum iterator_prop_idx): Add SPACE_WIDTH_PROP_IDX.
11943 (struct display_iterator): Add new member space_width.
11944
11945 * window.h (struct window): Add last_cursor_off_p.
11946
119471998-07-07 Gerd Moellmann <gerd@gnu.org>
11948
11949 * Saved.
11950
11951 * window.c (Fpos_visible_in_window_p): Case window not up to
11952 date---return nil if iterator hasn't reached position.
11953
119541998-07-06 Gerd Moellmann <gerd@gnu.org>
11955
11956 * xdisp.c (text_outside_line_unchanged_p): Fix case that
11957 overlays have changed.
11958 (redisplay_window): Case cursor movement. Don't try it if
11959 last_cursor.vpos is out of range.
11960
11961 * xdisp.c (set_cursor_from_row): Set this_line_.* variables. This
11962 way, the display optimization for the line containing the cursor
11963 is used more frequently, esp. when we have a blinking cursor.
11964 (display_line): Don't set this_line_.* variables.
11965
11966 * xterm.c (x_redraw_cursor): Removed.
11967 (x_display_and_set_cursor): Set cursor type depending on
11968 cursor_off_p flag of window.
11969
11970 * dispnew.c (redraw_cursor_hook): Removed.
11971 (Fblink_cursor): Additional parameter on_p to set the cursor_off_p
11972 member of the selected window.
11973
11974 * xfaces.c (Fface_font): Added for compatibility with 20.2.
11975
11976 * xterm.c (x_y_to_hpos_vpos): Return null if not over text.
11977 Return glyph area under x/y.
11978 (note_mouse_highlight): Use x_y_to_hpos_vpos in its new form.
11979
11980 * keyboard.c (detect_input_pending_run_timers): Call gobble_input
11981 after redisplaying.
11982
119831998-07-05 Gerd Moellmann <gerd@gnu.org>
11984
11985 * xdisp.c (text_outside_line_unchanged_p): Test if changes
11986 are all outside of a line of text.
11987 (redisplay_internal): Use it.
11988
119891998-06-30 Gerd Moellmann <gerd@gnu.org>
11990
11991 * xdisp.c (next_element_from_buffer): After skipping over
11992 invisible text, look for the `glyph' property.
11993 (set_iterator_stop_pos): Ignore check positions in front
11994 of an iterator's current position.
11995
11996 * xterm.c (show_mouse_face): Don't act on rows that don't exist
11997 anymore or which are marked as not having valid contents.
11998
11999 * xfaces.c (Finternal_set_lisp_face_attribute): Don't free
12000 realized faces if new attribute value is equal to old value.
12001
120021998-06-29 Gerd Moellmann <gerd@gnu.org>
12003
12004 * xfaces.c (Finternal_make_lisp_face): Increment
12005 lface_id_to_name_size when lface_id_to_name is reallocated.
12006
120071998-06-27 Gerd Moellmann <gerd@gnu.org>
12008
12009 * xdisp.c (set_iterator_stop_pos): Compute initial stop_pos
12010 as minimum of endpos and overlay_pos.
12011 (load_overlay_strings): Set next_overlay_pos of iterator to
12012 -1 if we don't have to check for more overlay strings.
12013
120141998-05-09 Gerd Moellmann <gerd@gnu.org>
12015
12016 * xdisp.c (set_iterator_to_next_visible_line_start): Don't
12017 do anything if iterator is at ZV because scan_buffer doesn't
12018 work otherwise.
12019
12020 * xterm.c (x_encode_char): Inline it.
12021 (x_get_char_font_and_encoding): Simplified.
12022 (x_per_char_metric): Inline it.
12023
12024 * xterm.c (x_draw_glyph_string_relief): Use clipping.
12025
12026 * xdisp.c (get_next_display_element): Check for end of relief
12027 face moved here from next_element_from_buffer.
12028
12029 * xterm.c (x_produce_image_glyph): Add relief thickness.
12030 (x_produce_stretch_glyph): Ditto.
12031
120321998-05-08 Gerd Moellmann <gerd@gnu.org>
12033
12034 * xdisp.c (fill_iterator_from_glyph_property): Handle glyph
12035 property value (space :width WIDTH :height HEIGHT :ascent ASCENT).
12036
12037 * xterm.c (x_produce_stretch_glyph): Produce a stretch glyph
12038 from a glyph property.
12039 (x_produce_glyphs): Use it.
12040
12041 * xdisp.c (set_iterator_to_next): Handle next_element_from_stretch.
12042
427ec082 12043 * xterm.c (x_produce_image_glyph): Add to current_x only if
26901792
DL
12044 in text area.
12045 (x_produce_glyphs): Ditto.
12046
427ec082 12047 * xdisp.c (display_line): Compute row height from glyphs in
26901792
DL
12048 marginal areas.
12049
427ec082 12050 * xterm.c (x_draw_image_glyph_string_background): Draw
26901792 12051 background of an image glyph string.
427ec082 12052 (x_draw_glyph_string_bg_rect): Draw a rectangular region of
26901792
DL
12053 the background of a glyph string.
12054 (x_draw_image_glyph_string_foreground): Draw the foreground of
12055 an image glyph string.
12056 (x_inverted_image_mask): Return the inverted mask of an image.
12057
12058 * xfns.c (x_draw_image): Removed.
12059
12060 * dispextern.h (struct image_type): Remove drawing function.
12061
12062 * xfaces.c (load_face_colors): Swap colors if face is inverse.
12063
12064 * xdisp.c (get_next_display_element): In marginal areas, translate
12065 newlines, tabs, etc. like normal control characters.
12066
12067 * xfaces.c (Fface_color_supported_p): Transpose parameters frame
12068 and color.
12069 (free_realized_faces): Set frame garbaged.
12070
12071 * xfaces.c (syms_of_xfaces): Add defsubr for
12072 internal-lisp-face-attribute-values.
12073
120741998-05-07 Gerd Moellmann <gerd@gnu.org>
12075
12076 * xterm.c (x_produce_image_glyph): Don't add glyph if area is
12077 full.
12078 (x_produce_image_glyph): Set IT->nglyphs to 1.
12079 (x_draw_image_glyph_string): Use inverted mask to draw background.
12080
12081 * dispextern.h (struct image_type): Additional clipping rect
12082 parameters for drawing functions.
12083
427ec082 12084 * xterm.c (x_get_glyph_string_clip_rect): Get clip rect for
26901792
DL
12085 a glyph string.
12086 (x_draw_image_glyph_string): Use it and pass the rect to the
12087 image drawing function.
12088
12089 * xdisp.c (fill_iterator_from_glyph_property): Use position of
12090 first character with `glyph' property as image position. Set
12091 iterator back to that position as long as the image hasn't been
12092 consumed with set_iterator_to_next.
12093 (set_cursor_from_row): Accept when glyph with given position is
12094 not found in the row. Set cursor x to end of line in that case,
12095 so that we can hscroll.
12096 (redisplay_internal): Correct computation of delta by which
12097 positions have changed in redisplay optimization for cursor
12098 row of selected window.
12099
12100 * xdisp.c (display_line): Remove start_pos.
427ec082 12101 (display_line): Fix bug preventing display optimization for
26901792
DL
12102 cursor line of selected window.
12103 (next_element_from_buffer): Avoid XSETBUFFER, use it->w->buffer
12104 instead.
12105
12106 * dispnew.c (update_text_area): Use GLYPH_EQUAL_P.
12107 (update_text_area): Take glyph pixel width into account
12108 when trying to find a resync point.
12109 (row_equal_p): Compare glyphs in all areas.
12110
121111998-05-06 Gerd Moellmann <gerd@gnu.org>
12112
12113 * xterm.c (x_produce_glyphs): Don't add glyph if area is full.
12114
12115 * dispextern.h (struct glyph_row): Use unsigned hash value.
12116
12117 * xdisp.c (display_line): Simplified and made faster by setting
12118 the cursor with set_cursor_from_row.
12119 (set_cursor_from_row): Handle rows of desired matrix.
12120
121211998-05-05 Gerd Moellmann <gerd@gnu.org>
12122
12123 * xdisp.c (set_cursor_from_row): Don't put cursor on glyphs
12124 with type != CHAR_GLYPH.
12125 (fill_iterator_from_glyph_property): Return void. Set
12126 method to next_element_from_image.
12127 (next_element_from_image): Dummy function for delivering a
12128 single image id.
12129 (set_iterator_to_next): Add method next_element_from_image.
12130 (redisplay_window): When recentering, and cursor vpos is -1
12131 after display, assume middle of window is in first line displayed
12132 in window, and display again.
427ec082 12133 (fill_iterator_from_glyph_property): Assign image glyph
26901792
DL
12134 the position of the first character having the glyph property.
12135
12136 * dispextern.h (IMAGE_ASCENT): Compute ascent of image.
12137 * xfns.c (x_draw_image): Use it.
12138 * xterm.c (x_produce_image_glyph): Use it.
12139
12140 * xterm.c (x_produce_image_glyph): Set iterator's pixel_width.
12141
12142 * Makefile.in: Extraneous #define of LIBXPM removed.
12143
12144 * xterm.c (x_produce_glyphs): Produce a STRETCH_GLYPH for tabs.
427ec082 12145 (x_fill_stretch_glyph_string): Fill a glyph string from a
26901792
DL
12146 stretch glyph.
12147 (x_compute_glyph_string_overhangs): Compute overhangs only
12148 for text glyph strings.
12149 (x_draw_stretch_glyph_string): Draw a stretch glyph string.
12150 (x_draw_glyph_string): Call it.
12151
12152 * dispextern.h (glyph_type): Add STRETCH_GLYPH.
12153 (struct glyph): Add sub-structure for stretchable glyphs.
12154 (GLYPH_EQUAL_P): Compare glyph type and u.val.
12155
12156 * xdisp.c (get_overlay_arrow_glyph_row): Put face code into
12157 #ifdef HAVE_FACES.
12158
12159 * xterm.c (x_produce_glyphs): Use ASCII face for spaces of a TAB.
12160
12161 * xdisp.c (fill_iterator_from_glyph_property): Renamed from
12162 setup_iterator_from_glyph_property. Don't do it for terminal
12163 frames.
12164
12165 * xterm.c (x_produce_image_glyph): Produce glyph for image
12166 that can't be loaded.
12167
12168 * xfns.c (lookup_image): If image can't be loaded, set its
12169 width and height so that we can draw a rectangle.
12170 (x_draw_image): Draw a rectangle for images that don't have
12171 a pixmap.
12172 (make_image): Set hash value.
12173 (image_spec_equal_p): Use image_spec_value.
12174
12175 * xterm.c (expose_frame): Don't try to redraw if basic faces
12176 haven't benn realized yet.
427ec082 12177 (x_draw_image_glyph_string): Fill background only if image
26901792
DL
12178 is not as tall as row.
12179
121801998-05-04 Gerd Moellmann <gerd@gnu.org>
12181
12182 * Makefile.in (LIBXPM): If not already defined, define to -lXpm.
12183 (LIBX)[HAVE_X11]: Add LIBXPM.
12184
12185 * xfns.c (xpm_image_p): Implementation of image type functions
12186 for XPM.
12187 (xpm_load): Ditto.
12188
12189 * dispextern.h (struct image): Add mask pixmap for XPM.
12190
12191 * xfns.c (x_draw_image): Handle images with masks.
12192
12193 * configure.in: --with-xpm added. Code detecting -lXpm added.
12194
12195 * config.in: Add HAVE_XPM.
12196
12197 * xfns.c (xbm_draw): Removed.
12198 (x_draw_image): Default implementation for drawing images.
12199 (xbm_keyword_index): Remove XBM_DEPTH.
12200 (xbm_format): Remove `:depth'.
12201 (xbm_image_spec_from_file): Removed to reduce consing.
427ec082 12202 (xbm_load_image_from_file): Added for the same reason.
26901792 12203
427ec082 12204 * xterm.c (x_fill_image_glyph_string): Don't set ybase of
26901792
DL
12205 glyph string.
12206 (x_draw_image_glyph_string): Pass ybase to image draw function.
12207
12208 * xfns.c (make_image): Set default baseline.
12209
12210 * xterm.c (x_produce_image_glyph): Compute ascent of image
12211 from its height and baseline percentage.
12212
12213 * xfns.c (xbm_keyword_index): Add XBM_BASELINE.
12214 (xbm_format): Add description for `:baseline'.
12215 (xbm_image_spec_from_file): Add keywords from original spec to
12216 result.
12217 (xbm_load): Set baseline of image.
12218 (xbm_image_p): Check range for baseline.
12219
12220 * dispextern.h (struct image): Add member baseline.
12221
12222 * xdisp.c (dump_glyph_matrix): Handle image glyphs.
12223
12224 * term.c (produce_glyphs): Change assertion to allow DISP_IMAGE.
12225
12226 * xdisp.c (get_next_display_element): Do character translations
12227 only if delivering characters.
12228
122291998-05-03 Gerd Moellmann <gerd@gnu.org>
12230
427ec082 12231 * dispextern.h (ITERATOR_AT_END_OF_LINE_P): Test for
26901792
DL
12232 DISP_CHARACTER.
12233
12234 * xterm.c (x_produce_image_glyph): Poduce image glyphs.
12235 (x_produce_glyphs): Call x_produce_glyphs for DISP_IMAGE.
12236
122371998-05-02 Gerd Moellmann <gerd@gnu.org>
12238
12239 * xfns.c (prepare_image_for_display): Set image timestamp.
12240 (clear_image_cache): Clear images if image's timestamp +
12241 Vimage_eviction_seconds is > now.
12242 (syms_of_xfns): New variables image-eviction-seconds, and
12243 image-types.
12244 (add_image_format): Add to image-types.
12245 (xbm_load): Support new image spec format.
12246 (x_alloc_image_color): Allocate a color for an image.
12247
12248 * dispextern.h (struct image): Add timestamp.
12249
12250 * xfns.c (xbm_image_p): Allow bool-vectors, vectors of strings and
12251 vectors of bool-vectors.
12252 (xbm_lisp_object_from_file): Build new format image spec.
12253
122541998-05-01 Gerd Moellmann <gerd@gnu.org>
12255
12256 * xfaces.c (init_frame_faces): Initialize image cache.
12257 (free_frame_faces): Free it.
12258
12259 * xterm.c (x_delete_display): Don't free image cache.
12260
12261 * emacs.c (main): Call init_xfns.
12262
122631998-04-30 Gerd Moellmann <gerd@gnu.org>
12264
12265 * alloc.c (mark_object): Mark objects in image cache.
12266
427ec082 12267 * xfns.c (x_set_internal_border_width): Correct call to
26901792
DL
12268 widget_store_internal_border_width.
12269
12270 * widget.c (widget_store_internal_border): Return void.
12271
12272 * xfns.c (x_destroy_bitmap): Use xfree instead of free. Return
12273 void.
12274 (init_x_parm_symbols): Return void.
12275 (x_report_frame_params): Ditto.
12276 (x_set_border_pixel): Ditto.
12277 (syms_of_xfns): Ditto.
12278 (x_destroy_all_bitmaps): Use xfree instead of free.
12279
12280 * xterm.h (FRAME_X_IMAGE_CACHE): Access the image cache of a frame.
12281
12282 * xterm.c (x_term_init): Initialize image_cache of display info.
12283 (x_delete_display): Free image cache.
12284
12285 * xterm.h (struct x_display_info): Add image_cache.
12286
12287 * xfns.c (make_image_cache): Allocate a new image cache.
12288 (free_image_cache): Free an image cache.
12289 (make_image): Allocate an image.
12290 (free_image): Free an image.
12291
12292 * dispextern.h (struct image): Structure describing an image.
12293 (struct image_cache): Structure describing an image cache.
12294
122951998-04-29 Gerd Moellmann <gerd@gnu.org>
12296
12297 * xdisp.c (check_iterator_glyph_property): Return int. Value is
12298 non-zero if iterator is filled with something to return.
12299 (next_element_from_buffer): Immediately return if
12300 setup_iterator_from_glyph_prop has filled iterator with pixmap.
12301 (next_element_from_string): Likewise.
12302
12303 * xfaces.c (load_pixmap): Allow to pass null for W_PTR and H_PTR.
12304
12305 * dispextern.h (struct glyph): Add pixmap_id.
12306 (display_element_type): Add DISP_PIXMAP.
12307
12308 * xmenu.c (popup_get_selection): Use xmalloc/xfree instead of
12309 malloc/free.
12310
12311 * xfaces.c (clear_font_table): Free fonts not used by fontsets.
12312 (clear_face_cache): Call it.
12313
12314 * xterm.c (x_query_font): Don't look at empty font table slots.
12315 (x_compute_min_glyph_bounds): Likewise.
12316 (x_term_init): Initialize font_table to null.
12317 (x_load_font): Change allocation of font_info structures so
12318 that it is possible to free fonts.
12319
427ec082 12320 * xfns.c (Fx_close_connection): Use xfree instead of free.
26901792
DL
12321 Only free fonts from filled font table entries.
12322
12323 * xfaces.c (best_matching_font): Support use of scalable fonts.
12324 (Fface_scalable_fonts_mode): Toggle use of scalable fonts.
12325
12326 * xterm.h (struct x_display_info): Remove screen_dpi, add resx
12327 and resy.
12328 * xterm.c (x_term_init): Compute resx and resy.
12329
12330 * xfaces.c (split_font_name): Don't reject scalable fonts.
12331
427ec082 12332 * xterm.c (x_list_fonts): Set code exclusing scalable fonts
26901792
DL
12333 in #if 0.
12334
12335 * xfaces.c (xlfd_point_size): Return 0 for fonts whose real
12336 point size cannot be determined.
12337
12338 * xterm.h (FRAME_SMALLEST_CHAR_WIDTH): Return smallest character
12339 width over all fonts on a frame.
12340 (FRAME_SMALLEST_FONT_HEIGHT): Likewise for font height.
12341 * dispnew.c (adjust_frame_glyphs_for_window_redisplay): Use these
12342 macros.
12343
12344 * xterm.c (x_font_min_bounds): Moved here from xfaces.c.
12345 (x_compute_min_char_bounds): Formerly min_char_bounds in xfaces.c.
12346 (x_load_font): Use x_compute_min_char_bounds.
12347
12348 * xterm.h (struct x_display_info): New members smallest_char_width
12349 and smallest_font_height.
12350
123511998-04-28 Gerd Moellmann <gerd@gnu.org>
12352
12353 * dispextern.h (PREPARE_FACE_FOR_DISPLAY): Call function with
12354 the same name if GC of face is zero.
12355
12356 * dispextern.h (struct face): Member non_ascii_gc removed.
12357
12358 * xterm.c (x_get_char_font_and_encoding): Return face's font
427ec082 12359 for characters < 0177 in default face. Prepare face for
26901792
DL
12360 display before returning it.
12361 (x_produce_glyphs): Use it->charset.
12362 (x_get_char_font_and_encoding): Simplified.
12363 (x_encode_char): Remove parameter `font'.
12364
12365 * xfaces.c (choose_face_font): If registry from charset symbol
12366 doesn't contain a `-', make it a pattern by appending "*-*".
12367
12368 * xdisp.c (check_iterator_glyph_property): Adjust limit for
12369 glyph_check_pos computation to character boundary.
12370
123711998-04-27 Gerd Moellmann <gerd@gnu.org>
12372
12373 * fontset.h (FONT_INFO_FROM_ID): Return null if ID is invalid.
12374
12375 * xfaces.c (ascii_face_of_lisp_face): Get the id of the realized
12376 ASCII face for a given Lisp face id.
12377
12378 * xdisp.c (set_iterator_stop_pos): Take glyph_check_pos into
12379 account.
427ec082 12380 (reseat_iterator): Set glyph_check_pos. Handle case where
26901792
DL
12381 new position is < original position.
12382 (check_iterator_glyph_property): Handle glyph property in strings.
12383 (next_element_from_string): Call above function.
12384 (next_element_from_display_vector): Handle faces in glyphs.
12385 (get_next_display_element): Set face_id of glyphs for
12386 control chars to zero.
12387
12388 * Makefile.in (term.o): Add dependency on dispextern.h.
12389
12390 * xdisp.c (syms_of_xdisp): Add symbol `glyph'.
12391 (display_line): Handle marginal areas.
12392 (move_iterator_in_display_line_to): Likewise.
12393
12394 * xfaces.c (Finternal_make_lisp_face): Assign Lisp faces an id.
12395
12396 * xfaces.c (face_at_buffer_position): Don't merge with nil
12397 text property.
12398 (face_at_string_position): Ditto.
12399
12400 * dispextern.h (struct display_iterator): Use a stack of saved
12401 values instead of saving check positions etc. individually.
12402
12403 * xdisp.c (set_iterator_to_next): If end of Lisp string reached,
12404 maybe pop the iterator's stack.
12405 (save_iterator_settings): Push a value on iterator's stack.
12406 (get_overlay_strings_at_iterator_position): Use it.
12407 (restore_iterator_settings): Pop the stack.
12408 (set_iterator_to_next_overlay_string): Use it.
12409
12410 * xfaces.c (try_font_list): Use alternative font families.
12411
124121998-04-26 Gerd Moellmann <gerd@gnu.org>
12413
12414 * xfaces.c (Fset_face_font_sort_order): Set the order in which
12415 font selection matches fonts.
12416 (Fface_font_sort_order): Return the font sort order.
12417 (best_matching_font): Find best matching font based on sort order.
12418 (cmp_font_names): Sort by given sort order.
12419
12420 * dispextern.h (struct display_iterator): New member faces_p.
12421 * xdisp.c (init_iterator): Initialize it->faces_p.
12422 (compute_face_at_iterator_string_position): Use it.
12423 (compute_face_at_iterator_position): Use it.
12424 (init_iterator): Use it.
12425 (display_mode_line): Ditto.
12426
12427 * xdisp.c (get_next_display_element): Put code choosing a face
12428 when the charset changes in #ifdef HAVE_FACES.
12429
427ec082 12430 * dispextern.h (FACE_FOR_CHARSET): Replacement for function
26901792
DL
12431 lookup_face_for_charset.
12432
12433 * xfaces.c (free_font_names): Renamed from free_split_font_names.
12434 (free_all_realized_faces): Renamed from remove_all_realized_faces.
12435
124361998-04-25 Gerd Moellmann <gerd@gnu.org>
12437
12438 * xfaces.c (best_matching_font): Return the name of the best
12439 matching font in an array of font_name structures.
12440 (choose_face_font): Use it.
12441 (choose_face_fontset_font): Use it.
12442 (find_best_weight_font): If final font found has same weight as
12443 the font we started with, return the original font because it is a
12444 better match for the resolution of the display.
12445 (find_best_slant_font): Likewise.
12446 (merge_face_vector_with_property): Check more invalid attribute
12447 values.
12448 (lface_suitable_for_charset_p): Replaced by a macro with the same
12449 name in upper-case.
12450
124511998-04-24 Gerd Moellmann <gerd@gnu.org>
12452
12453 * dispextern.h (struct face): Member
12454 fontset_chosen_for_realization_p removed.
12455
12456 * xfaces.c (cache_face): If face->fontset >= 0, add face to the
12457 end of the collision list, so that we find more specific faces
12458 first.
12459 (lookup_face_for_charset): Look up a new face if face->fontset >=
12460 0, and charset != CHARSET_COMPOSITION.
12461
12462 * xfaces.c (split_font_name): Return zero if point size of font
12463 couldn't be computed.
12464 (realize_default_face): Use ASCII font of a fontset to determine
12465 font-related attributes of the default face.
12466 (face_fontset): Return fontset id for face family.
12467 (font_list): Additional parameter font_pattern. If non-nil,
12468 return fonts matching that pattern.
12469
124701998-04-23 Gerd Moellmann <gerd@gnu.org>
12471
12472 * xfaces.c (choose_face_fontset): If new fontset cannot be
12473 constructed, or fontset name cannot be split, return the id of the
12474 standard fontset.
12475
12476 * xterm.c (XTframe_up_to_date): Check that frame is an X frame.
12477 When Emacs starts, it may be called for the initial frame which
12478 isn't an X frame.
12479
12480 * dispextern.h (struct face): New members foreground_defaulted_p,
12481 background_defaulted_p.
12482 (struct face): Members `mask' and `cache' removed.
12483
12484 * xfaces.c (load_color): Set them.
12485 (free_face_colors): Check them.
427ec082 12486 (xlfd_point_size): Return -1 if resolution or point size of
26901792
DL
12487 font unknown.
12488
12489 * xfaces.c (free_font): Removed.
12490 (load_face_font_or_fontset): Renamed from load_font.
12491 (load_face_font_or_fontset): Use message2 instead of signalling.
12492 (load_color): Likewise.
12493 (load_pixmap): Likewise.
12494
12495 * xterm.h (struct x_display_info): Add screen_dpi.
12496 * xterm.c (x_term_init): Initialize it.
12497 * xfaces.c (xlfd_point_size): Use it.
12498 (split_font_name): Compute numeric XLFD_RESY.
427ec082 12499 (cmp_font_names): Make fonts with an y-resolution more
26901792
DL
12500 similar to that of the frame appear first in the result.
12501
12502 * xfaces.c (cache_face): If fontset_chosen_for_realization_p
12503 is set for the face to cache, add it to the end of the collision
12504 list.
12505 (try_font_list): If fonts for given family and registry cannot
12506 be found, first try to keep the registry, and choose a different
12507 family.
12508 (choose_face_font): Allow nfonts == 0.
12509 (try_font_list): Give up if no font matches given registry.
12510
125111998-04-22 Gerd Moellmann <gerd@gnu.org>
12512
12513 * xterm.c (x_get_char_font_and_encoding): Get font_info from
12514 font info id of the face.
12515
12516 * xfaces.c (load_font): Set font_info_id.
12517 (realize_face): Ditto.
12518
12519 * dispextern.h (struct face): Change member font_info to
12520 font_info_id.
12521
12522 * fontset.h (FONT_INFO_ID): Build an ID from a font_info pointer.
12523 (FONT_INFO_FROM_ID): Get a font_info pointer from an ID.
12524
12525 * xdisp.c (extend_face_to_end_of_line): If IT's current charset
12526 isn't ASCII, get the ASCII face before adding a space.
12527 (append_space): Likewise.
12528 (insert_left_trunc_glyphs): Initialize truncate_it's charset
12529 to -1 so that it will compute the right face for the truncation
12530 glyphs.
12531
12532 * xfaces.c (realize_face): Set
12533 face->fontset_chosen_for_realization_p.
12534 (lookup_face_for_charset): If fontset wasn't specified originally
12535 and new charset != CHARSET_COMPOSITION, get a new face for that
12536 charset.
12537
12538 * dispextern.h (struct face): New member
12539 fontset_chosen_for_realization_p_specified_p. Set to 1 when
12540 realize_face has chosen a fontset to display composite characters
12541 for a Lisp face not specifying a fontset.
12542
12543 * xdisp.c (extend_face_to_end_of_line): Move tests for default
12544 face and line already filled here. Don't do anything if current
12545 face hasn't a relief or has a background equal to the frame
12546 background.
12547
12548 * xfaces.c (split_font_name): Additional parameter numeric_p.
12549 Don't compute numeric values if it is non-zero.
12550 (choose_face_fontset): Call split_font_name with numeric_p == 0.
427ec082 12551 (choose_face_fontset): Print a message if fontset contains a
26901792
DL
12552 font whose name cannot be split into fields.
12553
125541998-04-21 Gerd Moellmann <gerd@gnu.org>
12555
427ec082 12556 * xfaces.c (try_font_list): Try to load a list of fonts,
26901792
DL
12557 possibly using less restrictive patterns.
12558 (choose_face_font): Use it.
12559
12560 * xterm.c (x_get_char_font_and_encoding): For charset !=
12561 CHARSET_ASCII use font_info of face if face hasn't a fontset set.
12562
12563 * dispextern.h (struct face): New member font_info.
12564
12565 * xfaces.c (load_font): Use FS_LOAD_FONT to load fonts for faces
12566 specifying a fontset as well as those not having a fontset.
12567 (free_font): Make it empty.
12568 (realize_face): Use changed load_font.
12569
12570 * xterm.c (x_get_char_font_and_encoding): If face doesn't
12571 fit for charset, get the right one.
12572
12573 * xfaces.c (load_font): Take frame and name parameter, return
12574 font.
12575 (free_font): Likewise.
12576 (split_font_name): Compute numeric values for height, swidth etc.
12577 (cmp_font_names): Use them.
12578 (find_best_width_font): Ditto.
12579 (find_best_height_font): Ditto.
12580 (find_best_weight_font): Ditto.
12581 (find_best_slant_font): Ditto.
12582 (lface_hash): Add weight, slant, swidth and relief to hash value.
12583 (lface_equal_p): Make it faster.
12584 (lface_from_symbol): Use assq_no_quit.
12585 (Fnote_default_face_changed): Removed.
12586 (cmp_font_names): Use strcmp instead of xstricmp.
12587 (face_charset_registries): Removed.
12588
125891998-04-20 Gerd Moellmann <gerd@gnu.org>
12590
12591 * frame.h (CHECK_FRAME): Give this macro a statement form.
12592 (CHECK_LIVE_FRAME): Ditto.
12593
12594 * xfaces.c (find_best_width_font): Find the best matching font
12595 for a given width.
12596 (find_best_height_font): Likewise for height.
12597 (find_best_weight_font): Likewise for weight.
12598 (find_best_slant_font): Likewise for slant.
12599 (choose_face_font): Use them.
12600 (get_lface_attributes): Always return frame-local face attrs.
427ec082 12601 (Finternal_merge_in_global_face): Merge local face with
26901792
DL
12602 global face attributes.
12603
12604 * xfaces.c (check_lface_attrs, check_lface): Check consistency of
12605 Lisp face attributes.
12606
126071998-04-19 Gerd Moellmann <gerd@gnu.org>
12608
12609 * xfaces.c (Finternal_set_lisp_face_attribute): Add :bold
12610 and :italic for compatibility.
12611 (Finternal_set_lisp_face_attribute_from_resource): Handle
427ec082 12612 :bold and :italic. Handle boolean resource values for
26901792
DL
12613 :underline and :italic.
12614
12615 * xfns.c (display_x_get_resource): Make it externally visible.
12616
12617 * xfaces.c (lface_from_symbol): Take a frame as parameter.
12618 If that frame is non-null, return the frame-local face.
12619 (Finternal_make_lisp_face): Additional frame argument.
12620 (lface_attributes): Get face attributes from global and frame-local
12621 definitions.
12622 (Finternal_lisp_face_equal_p): Additional frame argument.
12623 (merge_lisp_face_vector_with_property): Ditto.
12624 (Frealize_basic_faces): Removed.
12625 (Finternal_get_lisp_face_attribute): Additional frame argument.
12626 (Finternal_lisp_face_p): Ditto.
12627 (load_color) [MSDOS]: Removed because it isn't clear how
12628 to do this for MS-DOS.
12629
12630 * xfaces.c (lface_from_symbol): Get global face definition
12631 from face-global-alist.
12632
12633 * xfaces.c (Finternal_set_lisp_face_attribute): Allow `t'
12634 as values for :underline and :inverse-video.
12635 (Finternal_set_lisp_face_attribute): Allow nil values.
12636
126371998-04-17 Gerd Moellmann <gerd@gnu.org>
12638
12639 * xfaces.c (Finternal_make_lisp_face): Return Lisp face vector.
12640
12641 * xfaces.c (syms_of_xfaces): Add Vall_faces.
12642 (Finternal_make_lisp_face): Add new face to Vall_faces.
12643
12644 * xdisp.c (echo_area_display): Remove code recomputing faces.
12645 (redisplay_internal): Ditto.
12646 (init_iterator): Do it here.
12647
12648 * xfaces.c (choose_face_font): Check that swidth doesn't change
12649 for subusequent attributes.
12650 (xlfd_point_size): Return int.
12651
12652 * xdisp.c (redisplay_internal, echo_area-display): If realized
12653 faces have been cleared, call recompute_basic_faces.
12654
12655 * xfaces.c (recompute_basic_faces): Free realized faces. Reset
12656 face_attributes_changed_p.
427ec082 12657 (remove_all_realized_faces): Remove all realized faces on
26901792
DL
12658 all frames.
12659 (Finternal_set_lisp_face_attribute): Call remove_all_realized_faces.
12660
12661 * xdisp.c (redisplay_internal): If face attributes have been
12662 changed since the last redisplay, recompute basic faces.
12663 (echo_area_display): Ditto.
12664
12665 * xfaces.c (clear_face_gcs): Renamed from clear_realized_face_cache.
12666
12667 * xfaces.c (min_char_bounds): If face cache not yet present,
12668 don't try to get font dimensions from faces.
12669
12670 * xterm.c (x_frame_mode_line_height): If face cache not present
12671 set, return default height.
12672
12673 * alloc.c (mark_face_cache): Check for null faces. Correct
12674 index bug.
12675
12676 * dispextern.h (struct face): Renamed from struct rface. Member
12677 underline renamed underline_p. Make it a bit-field.
12678
12679 * xfaces.c (init_frame_faces): Allocate face cache.
12680 (free_frame_faces): Free face cache.
12681 (recompute_basic_faces): Realize basic faces only if face cache is
12682 allocated, i.e. after init_frame_faces has been called.
12683
12684 * frame.c (make_frame): Initialze face cache with null.
12685
12686 * xfaces.c (same_size_fonts): Removed.
12687
427ec082 12688 * xterm.c (x_set_glyph_string_gc): Add post-condition
26901792
DL
12689 s->gc != 0.
12690 (x_set_mouse_face_gc): Ditto.
12691 (x_set_mode_line_face_gc): Ditto.
12692
427ec082
SS
12693 * xfaces.c (realize_default_face): Return int. Value is
12694 zero if frame params don't contain enough information to
26901792
DL
12695 realize the default face.
12696 (realize_basic_faces): Ditto.
12697 (init_frame_faces): Realize basic faces.
12698
12699 * xfns.c (x_set_font): First store real font name in frame
12700 parameters, then call recompute_basic_faces.
12701
12702 * xfaces.c (recompute_basic_faces): Call realize_basic_faces.
12703
127041998-04-16 Gerd Moellmann <gerd@gnu.org>
12705
12706 * xfaces.c (syms_of_xfaces): Correct calls to defsubr.
12707
12708 * xfns.c (Fx_face_fixed_p): Removed.
12709 (Fx_list_fonts): Moved to xfaces.c.
12710
12711 * xfaces.c (compute_face_at_buffer_pos): Renamed to
12712 face_at_buffer_position. Parameter charset removed; always
12713 compute face for CHARSET_ASCII.
12714 (face_at_string_position): Renamed from
12715 compute_face_at_string_pos. Parameter charset removed; always
12716 compute for CHARSET_ASCII.
427ec082 12717 (lookup_face_for_charset): Take frame parameter instead of
26901792
DL
12718 face_cache.
12719 (lookup_face): Ditto.
12720 (compute_char_face): Renamed from compute_glyph_face.
12721
12722 * xdisp.c (init_iterator): Initialize charset member.
12723 (reseat_iterator_to_string): Ditto.
12724 (get_charset_at_buffer_position): Determine charset at
12725 buffer position in current_buffer.
12726 (reseat_iterator): Call above function.
12727 (compute_face_at_iterator_position): Call
12728 compute_face_at_buffer_pos.
12729 (compute_face_at_iterator_string_position): Call
12730 compute_face_at_string_pos.
12731 (get_face_from_id): Removed.
12732 (get_face_from_cursor_pos): Call compute_face_at_buffer_pos.
12733 Call get_charset_at_buffer_position.
12734 (reseat_iterator): Determine face if charset at pos differs
12735 from iterator's charset.
12736 (reseat_iterator_to_glyph_pos): Removed.
12737
12738 * xfaces.c (compute_face_at_bufpos): Remove parameter charset.
12739 Determine charset from buffer position.
12740 (compute_string_char_face): Renamed to compute_face_at_string_pos.
12741 (compute_face_at_bufpos): Renamed to compute_face_at_buffer_pos.
12742
12743 * dispextern.h (struct display_iterator): Add member charset.
12744
127451998-04-15 Gerd Moellmann <gerd@gnu.org>
12746
12747 * xfaces.c (compute_char_face): Removed.
12748
12749 * xdisp.c (get_overlay_arrow_glyph_row): Use compute_glyph_face
12750 with new parameter list.
12751
12752 * xfaces.c (region_face): Removed.
12753 (allocate_face): Removed.
12754 (copy_face): Ditto.
12755 (face_eql): Removed.
12756 (intern_face): Removed.
12757 (clear_face_cache): Removed.
12758 (load_font): Ditto.
12759 (unload_font): Ditto.
12760 (load_color): Ditto.
12761 (unload_color): Ditto.
12762 (new_computed_face): Ditto.
12763 (intern_computed_face): Ditto.
12764 (ensure_face_ready): Ditto.
12765 (merge_faces): Ditto.
12766 (compute_base_face): Ditto.
12767 (merge_face_list): Ditto.
12768 (Fmake_face_internal): Removed.
12769 (Fset_face_attribute_internal): Ditto.
12770 (face_name_id_number): Removed.
12771 (Fframe_face_alist): Ditto.
12772 (Fset_frame_face_alist): Ditto.
12773 (Finternal_next_face_id): Ditto.
12774
12775 * xterm.h (struct x_output): Remove computed_faces, and
12776 param_faces. Remove macros accessing them.
12777
12778 * xfaces.c: Entirely new face implementation added.
12779
127801998-04-11 Gerd Moellmann <gerd@gnu.org>
12781
12782 * dispextern.h (struct glyph_pos): Member `bufpos' renamed
12783 `charpos'.
12784
127851998-04-10 Gerd Moellmann <gerd@gnu.org>
12786
12787 * xterm.c (x_scroll_bar_move): Clear only regions not covered by
12788 scroll bar window to reduce flickering. Clear entire height.
12789
12790 * xdisp.c (move_iterator_vertically_backward): Set iterator's
12791 current_x and hpos to zero after moving to previous line
12792 start.
12793
127941998-04-03 Gerd Moellmann <gerd@gnu.org>
12795
12796 * frame.h (FRAME_FACE_CACHE): Access to a frame's face cache.
12797
12798 * xfaces.c (xlfd_point_size): Compute relative point size of
12799 fonts from font and frame resolution.
12800 (sort_fonts): New function to sort fonts, temporarily setting
12801 font_frame to the frame in effect.
12802 (xlfd_point_size): Take additional frame parameter to be able
12803 to get at the display's resolution.
12804
12805 * xterm.c (x_setup_relief_colors): Use WHITE_PIX_DEFAULT and
12806 BLACK_PIX_DEFAULT.
12807 (x_setup_relief_color): Use FRAME_X_SCREEN instead of default
12808 screen of display.
12809
128101998-03-31 Gerd Moellmann <gerd@gnu.org>
12811
12812 * xfaces.c (choose_face_fontset): Instantiate fontsets.
12813
12814 * fontset.h: Add external declarations for Vfontset_alias_alist
12815 and Vglobal_fontset_alist.
12816
12817 * xfaces.c (merge_lisp_face_vector_with_property): Simplified.
12818 (realize_default_face): If frame parameters contain an artificial
12819 font name naming a fontset, set the family of the default face to
12820 the fontset name given by the registry.
12821
12822 * Makefile.in (alloc.o): Add dependency to dispextern.h.
12823
128241998-03-22 Gerd Moellmann <gerd@gnu.org>
12825
12826 * alloc.c (mark_object): Add function prototype. Add cast to
12827 Lisp_Object pointer in call to mark_object for symbol names
12828 because this otherwise gives a warning from gcc 2.8.1.
12829 (mark_face_cache): Mark Lisp objects in realized faces.
12830
128311998-03-19 Gerd Moellmann <gerd@gnu.org>
12832
12833 * frame.h (struct frame): Add member face_cache.
12834
12835 * alloc.c (mark_object): Mark face cache.
12836 (mark_face_cache): Mark Lisp faces in face cache of frame.
12837
12838 * frame.c (make_frame): Initialize face_cache.
12839 (Fdelete_frame): Free it.
12840
128411998-03-18 Gerd Moellmann <gerd@gnu.org>
12842
12843 * xfaces.c: Very first skeleton of functions for face realization,
12844 face merging, face cache etc.
12845
12846 * dispextern.h (struct rface): Realized faces. Will replace
12847 struct face when tested.
12848 (struct face_cache): Realized face caches.
12849
12850 * xdisp.c (init_iterator): Initialize area member of display
12851 iterator.
12852
128531998-03-17 Gerd Moellmann <gerd@gnu.org>
12854
12855 * xterm.c (x_append_glyph): Use it->area to store glyphs.
12856
12857 * dispextern.h (struct display_iterator): New member area.
12858
12859 * xterm.c (note_overwritten_text_cursor): Note when the text
12860 cursor of a window is overwritten.
12861
12862 * xdisp.c (set_cursor_from_row): If PT is not found in the
12863 row, display the cursor at the start of the row.
12864
12865 * dispnew.c (direct_output_forward_char): Call
12866 set_cursor_from_row.
12867
12868 * xdisp.c (setup_iterator_overlay_strings_from_glyph_pos): If
12869 position is not in an overlay string, set iterator's position and
12870 method explicitly so.
427ec082 12871 (set_cursor_from_row): Correct cursor position calculation.
26901792
DL
12872 Make it externally visible.
12873 (redisplay_window): Call set_cursor_from_row so that there is only
12874 one place where the cursor position is calculated from a current
12875 row.
12876
12877 * dispextern.h (struct display_iterator): New member
12878 overlay_strings_at_end_processed_p.
12879
12880 * xdisp.c (check_iterator): Perform sanity checks on
12881 display_iterators.
12882 (next_element_from_buffer): Check for overlay strings at ZV.
12883
128841998-03-16 Gerd Moellmann <gerd@gnu.org>
12885
12886 * buffer.c (init_buffer_once): Add left_margin_width and
12887 right_margin_width to buffer_local_flags.
12888
12889 * dispnew.c (margin_glyphs_to_reserve): Function computing
12890 number of glyphs to reserve for a marginal area.
12891 (adjust_glyph_matrix): Call it.
12892 (adjust_frame_glyphs_for_frame_redisplay): Return if frame
12893 is not alive.
12894
12895 * window.c (Fset_window_margins): Allow floats.
12896
12897 * buffer.c (syms_of_buffer): Add buffer-local variables
12898 left-margin-width and right-margin-width. Add defaults
12899 default-left-margin-width and default-right-margin-width.
12900
12901 * buffer.h (struct buffer): New members left_margin_width
12902 and right_margin_width.
12903
12904 * window.c (Fset_window_margins): Make window the last and
12905 optional argument.
12906
12907 * xterm.c (x_draw_glyphs): Compute x-positions for rows with
12908 flag no_marginal_areas_p differently.
12909 (x_clear_end_of_line): Ditto.
12910 (x_draw_glyph_string_relief): Compute width of relief differently
12911 for rows with flag no_marginal_areas_p.
12912
12913 * dispnew.c (update_window_line): Update marginal areas only
12914 for rows that don't have no_marginal_areas_p set.
12915
12916 * xdisp.c (display_mode_line): Set row's flag no_marginal_areas_p.
12917 (display_menu_bar): Ditto.
12918
12919 * dispextern.h (struct glyph_row): New member no_marginal_areas_p.
12920
12921 * dispnew.c (adjust_glyph_matrix): Compute glyph pointers for
12922 marginal areas in window-based redisplay.
12923
12924 * dispextern.h (struct glyph_matrix): New members
12925 left_margin_glyphs and right_margin_glyphs.
12926
129271998-03-15 Gerd Moellmann <gerd@gnu.org>
12928
12929 * minibuf.c (read_minibuf_unwind): Return Lisp_Object.
12930
12931 * charset.c (non_ascii_char_to_string): Use char type parameters
12932 because the function is used that way from outside. Use unsigned
12933 char internally.
12934
12935 * window.c (change_window_height): Return void.
12936 (make_dummy_parent): Return void.
12937 (init_window_once): Return void.
12938 (syms_of_window): Ditto.
12939 (keys_of_window): Ditto.
12940 (delete_window): Correct return with and without value.
12941
12942 * buffer.c (record_buffer): Return void.
12943
12944 * marker.c (unchain_marker): Return void.
12945
12946 * window.c (unshow_buffer): Return void.
12947 (replace_window): Ditto.
12948 (delete_window): Ditto.
12949
12950 * term.c (delete_glyphs_hook): Void return type.
12951 (ring_bell_hook): Ditto.
12952 (set_terminal_window_hook): Ditto.
12953
12954 * sysdep.c (init_sigio): Return void.
12955
12956 * xterm.c (x_set_window_size): Return void.
12957 (x_calc_absolute_position): Ditto.
12958 (x_set_offset): Ditto.
12959 (x_focus_on_frame): Ditto.
12960 (x_unfocus_frame): Ditto.
12961 (x_make_frame_visible): Ditto.
12962 (x_make_frame_invisible): Ditto.
12963 (x_iconify_frame): Ditto.
12964 (x_destroy_window): Ditto.
12965 (x_wm_set_window_state): Ditto.
12966 (x_wm_set_icon_pixmap): Ditto.
12967 (x_wm_set_icon_position): Ditto.
12968 (x_initialize): Ditto.
12969 (x_error_quitter): Ditto.
12970 (x_destroy_window): Use xfree instead of free.
12971
12972 * keyboard.c (clear_waiting_for_input): Return void.
12973
12974 * xterm.c (x_wm_set_size_hint): Return void.
12975 (x_raise_frame): Ditto.
12976 (refreshicon): Ditto.
12977 (x_error_catcher): Ditto.
12978 (x_clear_errors): Ditto.
12979
12980 * keyboard.c (record_asynch_buffer_change): Return void.
12981
bb6677a8
GM
12982 The first line of the following paragraph was garbled for an
12983 unknown reason. It couldn't be fully reconstructed.
178c5d9c 12984
bb6677a8 12985 * xterm.c (XTread_socket, XTset_terminal_window): Ditto.
26901792
DL
12986 (x_lower_frame): Ditto.
12987 (x_scroll_bar_clear): Ditto.
12988 (XTflash): Add default case in switch for -Wall.
12989 (construct_mouse_click): Return Qnil.
12990 (cancel_mouse_face): Return void.
12991 (x_queue_event): Use xmalloc instead of malloc.
12992 (x_unqueue_events): Use xfree instead of free.
12993
12994 * ccl.c (ccl_driver): Return int.
12995
12996 * keyboard.c (stop_polling): Return void.
12997 (start_polling): Ditto.
12998
12999 * term.c (keys): Add braces in initializer list for -Wall.
13000
13001 * sysdep.c (tabs_safe_p): Return int.
13002 (init_baud_rate): Return void.
13003
13004 * xterm.c (x_draw_bitmap): Add default case.
13005 (x_setup_relief_colors): Use DefaultScreen instead of
13006 DefaultScreenOfDisplay.
13007 (x_delete_glyphs): Return void.
13008 (construct_menu_click): Put in #if 0 because it isn't called.
13009
13010 * xdisp.c (load_overlay_strings): Remove extraneous argument
13011 in call to qsort.
13012 (get_overlay_arrow_glyph_row): Add missing return value.
13013
13014 * window.c (set_window_height): Return void.
13015 (set_window_width): Ditto.
13016
13017 * sysdep.c (request_sigio): Return void.
13018 (unrequest_sigio): Ditto.
13019 (get_frame_size): Ditto.
13020
13021 * scroll.c (scroll_cost): Return int.
13022 (do_line_insertion_deletion_costs): Return void.
13023
13024 * frame.c (Fdelete_frame): Use xfree instead of free.
13025
13026 * fileio.c (report_file_error): Return void.
13027
13028 * dispnew.c: Make compilable with -Wall.
13029 * term.c: Ditto.
13030
13031 * charset.h (CHAR_LEN): Moved here from dispextern.h.
13032
130331998-03-14 Gerd Moellmann <gerd@gnu.org>
13034
13035 * xterm.c (x_scroll_bar_move): Clear under scroll bar if height is
13036 increased.
13037 (x_setup_relief_color): Free color only for appropriate visual
13038 classes.
13039
13040 * xterm.c (expose_window): Fix calculation of intersection of mode
13041 line rectangle with exposed rectangle.
13042
13043 * xdisp.c (redisplay_window): Don't do cursor movement based
13044 on current matrix if w->last_point is not valid.
13045
130461998-03-09 Gerd Moellmann <gerd@gnu.org>
13047
13048 * xterm.c (expose_line): Redraw mode line and menu lines
13049 differently because they reach into the scroll bar area.
13050
13051 * xdisp.c (redisplay_window): If redisplaying with same window
13052 start, don't accept cursor on partially visible line.
13053
130541998-03-08 Gerd Moellmann <gerd@gnu.org>
13055
13056 * xterm.c (x_set_glyph_string_clipping): Set clip rectangle
13057 for wider mode lines.
13058 (x_draw_glyph_string_relief): Use larger rectangle for mode lines.
13059
13060 * xdisp.c (init_iterator): Increase last_visible_x by vertical
13061 scroll bar width for mode lines.
13062
13063 * dispnew.c (allocate_matrices_for_window_redisplay): Include
13064 vertical scroll bar width in width calculation so that we can
13065 display mode lines wider.
13066
13067 * xdisp.c (redisplay_window): Restore buffers before returning
13068 when fonts have changed.
13069
13070 * dispnew.c (update_window): Mark invisible rows in the current
13071 matrix invalid.
13072
13073 * xdisp.c (try_window_id): Force update of first row displayed
13074 at window end.
13075 (dump_glyph_matrix): Extracted from Fdump_glyph_matrix.
13076
130771998-03-05 Gerd Moellmann <gerd@gnu.org>
13078
13079 * dispextern.h (struct glyph_row): Member max_ascent renamed
13080 ascent. Member max_descent replaced by height.
13081 (struct display_iterator): Member max_descent replaced by height.
13082 (MATRIX_ROW_PIXEL_HEIGHT): Removed.
13083
13084 * xterm.c (x_alloc_lighter_color): Don't free colors if visual
13085 class makes it unnecessary or dangerous.
13086
13087 * xdisp.c (redisplay_window): Case only point has changed, and
13088 point has moved forward. Move forward over overlay strings.
13089 (display_line): Don't set cursor if first glyph from PT is part of
13090 a continuation line.
13091
130921998-02-21 Gerd Moellmann <gerd@gnu.org>
13093
13094 * xdisp.c (start_display): When computing continuation lines
13095 width, add current_x to the continuation lines width because
13096 move_iterator_to will stop in front of the buffer position moved
13097 to.
13098
130991998-02-20 Gerd Moellmann <gerd@gnu.org>
13100
13101 * xdisp.c (redisplay_window): Don't try try_window_id if
13102 windows_or_buffers_changed.
13103
13104 * xterm.c (x_alloc_lighter_color): Try both factor and delta to
13105 determine a color.
13106 (x_setup_relief_color): Allocate/ change one relief.
13107 (x_setup_relief_colors): Call above function.
13108
13109 * xterm.h (struct relief): New structure type holding relief info:
13110 GCs, colors, and whether colors are allocated.
13111
427ec082 13112 * xterm.c (x_alloc_lighter_color): If multiplying by factor
26901792
DL
13113 produces the same color, try adding a delta to RGB values.
13114 (x_setup_relief_colors): Free color cells.
13115
427ec082 13116 * xterm.h (struct x_output): New members white_relief_pixel,
26901792
DL
13117 black_relief_pixel holding the foreground colors allocated for
13118 relief GCs. New members white_allocated_p, black_allocated_p.
13119
13120 * xterm.c (x_scroll_run): Don't set updated_window to null.
13121 This resets updated_window when called from scrolling_window.
13122
13123 * dispextern.h (scroll_run_hook): Renamed from line_dance_hook.
427ec082 13124
26901792
DL
13125 * xterm.c (x_scroll_run): Additional window parameter. Set
13126 and reset updated_window.
13127
13128 * dispnew.c (line_dance_hook): Additional window parameter.
13129
13130 * xdisp.c (try_window_reusing_current_matrix): Don't call
13131 update_window_begin/end here. The end function would display the
13132 cursor on a wrong position and the additional functionality of
13133 update_window_begin is not needed anyway. Just set
13134 updated_window.
13135 (try_window_id): Ditto.
13136
13137 * dispnew.c (Fblink_cursor): Remove call to detect_input_pending.
13138 Don't redraw cursor during redisplay.
13139
13140 * xterm.c (x_scroll_run): Renamed from do_line_dance.
13141
13142 * xdisp.c (redisplay_window): For window-based redisplay, alway
13143 try try_window_id.
13144
13145 * xterm.c (struct glyph_string): New member two_byte_p that is
13146 non-zero if 16-bit drawing functions must be used.
13147 (x_fill_composite_glyph_string): Set it.
13148 (x_fill_glyph_string): Set it.
13149 (x_draw_glyph_string_foreground): Use it.
13150 (x_draw_vertical_border): Make line 1 pixel less tall.
13151 (x_draw_row_bitmaps): Decrease width of area cleared on the left
13152 side by 1 pixel if window is not right-most hasn't vertical scroll
13153 bars.
13154 (x_draw_phys_cursor_glyph): Do nothing if phys_cursor.hpos is
13155 out of bounds.
13156 (x_draw_glyph_string_foreground): Use XDrawImageStringX if
13157 hl == DRAW_CURSOR.
13158
13159 * xdisp.c (start_display): Check that window start is at line
13160 start if GLYPH_DEBUG != 0.
13161
13162 * window.c (window_scroll_pixel_based): Move assertion to
13163 start_display.
13164
131651998-02-19 Gerd Moellmann <gerd@gnu.org>
13166
427ec082 13167 * xterm.c (x_redraw_cursor): Don't redraw the cursor if the
26901792
DL
13168 frame hasn't the focus.
13169
13170 * window.c (make_window): Initialize dy.
13171 (replace_window): Ditto.
13172
13173 * window.h (window): New member dy specifying the amount by which
13174 a window is scrolled "smoothly".
13175
13176 * xterm.c (x_set_glyph_string_clipping): Don't use glyph string's
427ec082 13177 y-position because it can be negative.
26901792
DL
13178 (x_draw_row_bitmaps): Don't clear with negative y-position like
13179 above.
13180 (x_clear_end_of_line): Same theme as above.
13181
13182 * xterm.c (x_alloc_nearest_color): Allocate a color or, if no
13183 exact match exists, the nearest existing color. Patterned after
13184 defined_color.
13185 (x_alloc_lighter_color): Allocate a color that is lighter or
13186 darker than a given color by a specified factor.
427ec082 13187 (x_setup_relief_colors): Set up relief line colors based on
26901792
DL
13188 the background color of a glyph string face.
13189 (x_draw_glyph_string_relief): Call x_setup_relief_colors.
13190
13191 * xfns.c (x_make_gc): Don't allocate relief GCs.
13192 * widget.c (create_frame_gcs): Don't allocate relief GCs.
13193 (setup_frame_gcs): Don't change relief GCs.
13194
13195 * xterm.h (struct x_output): New member relief_background giving
13196 the background pixel color for which relief GCs can be used.
13197 Set by x_setup_relief_colors.
13198
13199 * xterm.c (x_draw_glyph_string_relief): Draw relief differently
13200 for mode and menu lines.
13201
13202 * xdisp.c (set_next_iterator_stop_pos): No longer static.
13203
13204 * dispnew.c (direct_output_for_insert): Call
13205 set_next_iterator_stop_pos after having changed it2.endpos.
13206
132071998-02-17 Gerd Moellmann <gerd@gnu.org>
13208
13209 * dispnew.c (update_window): Work on selected_window, only.
13210
13211 * xterm.c (x_erase_phys_cursor): Return quickly if physical cursor
13212 hpos is >= number of glyphs in the cursor row.
13213
13214 * xdisp.c (try_window_id): Bug fix; update_window_end was not
13215 called.
13216
132171998-02-16 Gerd Moellmann <gerd@gnu.org>
13218
13219 * xdisp.c (init_iterator): Increase last_visible_x for mode lines
13220 and menu lines.
13221
13222 * dispnew.c (allocate_matrices_for_window_redisplay): Allocate
13223 enough glyphs to display a mode line or menu line which draws over
13224 flags areas.
13225
13226 * xterm.c (XTset_vertical_scroll_bar): Use
13227 WINDOW_DISPLAY_TEXT_AREA_PIXEL_HEIGHT instead of
13228 VERTICAL_SCROLL_BAR_PIXEL_HEIGHT.
427ec082 13229 (x_draw_glyphs): Draw over flags areas when drawing a mode line
26901792
DL
13230 or menu.
13231 (x_set_glyph_string_clipping): Set clipping differently if drawing
13232 a mode line or menu line.
13233
13234 * xterm.h (VERTICAL_SCROLL_BAR_PIXEL_HEIGHT): Removed.
13235
13236 * xterm.c (expose_line): Don't draw bitmaps for mode lines and
13237 menu lines.
13238 (x_scroll_bar_create): Don't clear flags areas.
13239 (x_draw_row_bitmaps): Clear visible row height, only.
13240
13241 * dispnew.c (Fblink_cursor): Moved here from xdisp.c.
13242
132431998-02-15 Gerd Moellmann <gerd@gnu.org>
13244
13245 * dispnew.c (direct_output_for_insert): When checking for tabs in
13246 the line, set it2.endpos to ZV.
427ec082 13247
26901792
DL
13248 * window.h (struct window): New member cursor_off_p.
13249 * xterm.c (x_redraw_cursor): Implementation of redraw_cursor_hook
13250 for X.
13251 * dispnew.c (redraw_cursor_hook): If non-null, function that can
13252 be called to display or erase the cursor.
13253 * xdisp.c (Fblink_cursor): Blink the cursor of a specified window
13254 or selected_window.
13255
13256 * xterm.h (text_cursor_kinds): Enumerators changed to uppercase.
13257
13258 * dispnew.c (update_window_line): Special handling of inverse
13259 lines in #if 0 removed.
13260
13261 * xterm.c (x_write_glyphs): Renamed from XTwrite_glyphs.
13262 (x_insert_glyphs): Renamed from XTinsert_glyphs.
13263 (x_clear_frame): Renamed from XTclear_frame.
13264 (x_clear_end_of_line): Renamed from XTclear_end_of_line.
13265 (x_ins_del_lines): Renamed from XTins_del_lines.
13266 (x_change_line_height): Renamed from XTchange_line_height.
13267 (x_delete_glyphs): Renamed from XTdelete_glyphs.
13268 (x_clear_cursor): Renamed from clear_cursor.
13269 (x_update_begin): Renamed from XTupdate_begin.
13270 (x_update_end): Renamed from XTupdate_end.
13271 (x_update_window_begin): Renamed from XTupdate_window_begin.
13272 (x_update_window_end): Renamed from XTupdate_window_end.
13273 (x_frame_mode_line_height): Renamed from XTframe_mode_line_height.
13274 (x_produce_glyphs): Renamed from XTproduce_glyphs.
13275 (x_produce_special_glyphs): Renamed from XTproduce_special_glyphs.
13276 (x_produce_special_glyphs): Implementation in #if 0 removed.
13277
13278 * xdisp.c (Fdump_redisplay_state): Display row's fill_line_p
13279 flag in the dump.
13280
13281 * dispnew.c (update_text_area): Handling of glyphs with pixel
13282 width zero removed. Decrement desired stop pos if desired row
13283 fills its line.
13284
13285 * xterm.c (x_fill_glyph_string): Handling of glyphs with pixel
13286 width zero removed.
13287 (BUILD_GLYPH_STRINGS): Set glyph string flag
13288 extends_to_end_of_line_p based on row's flag fill_line_p and face
13289 background and stipple. Make sure it works for composite characters.
13290
13291 * xdisp.c (extend_face_to_end_of_line): Set the glyph row flag
13292 fill_line_p. For window-based redisplay, add a space only if
13293 the row is empty so that we know the face to draw.
13294
13295 * dispextern.h (struct glyph_row): New flag fill_line_p. Non-zero
13296 means draw the face of the last glyph in the text area to the
13297 right end of the text area.
13298
13299 * xdisp.c (init_iterator): Show region in window mini-buffer
13300 window refers to.
13301
427ec082 13302 * dispextern.h (struct display_iterator): Redundant member
26901792
DL
13303 region_showing_p removed. Test for region_beg > 0 instead.
13304
13305 * dispnew.c (update_text_area): Clear to end of line if cursor is
13306 beyond the end of the desired line. Necessary because we don't
13307 have a phys_cursor_glyph with which to erase the cursor. We don't
13308 have one because this method of drawing a cursor doesn't work with
13309 lbearing/rbearing.
13310
13311 * xterm.c (XTinsert_glyphs): Block input.
13312
133131998-02-14 Gerd Moellmann <gerd@gnu.org>
13314
13315 * xterm.c (x_set_cursor_gc): Don't use cursor_gc for composite
13316 glyph strings.
13317 (x_draw_glyph_string_background): Fill background with background
13318 pixel for the first glyph of a composite character.
13319
13320 * xdisp.c (try_window): Change return type to int. Value is zero
13321 if fonts were loaded during redisplay.
13322 (redisplay_window): Return if fonts have been loaded during
13323 redisplay.
13324 (append_space): New parameter default_face_p.
13325
133261998-02-13 Gerd Moellmann <gerd@gnu.org>
13327
13328 * dispnew.c (adjust_glyph_matrix): In case of optimizing C-x 2,
13329 don't let a partially visible line in a current matrix stay
13330 enabled.
13331
133321998-02-09 Gerd Moellmann <gerd@gnu.org>
13333
13334 * minibuf.c (read_minibuf): Put access to minibuffer_prompt_length
13335 in #if PROMPT_IN_BUFFER.
13336
13337 * xdisp.c (display_line): If row ends in ZV, make the space
13338 that is added to place the cursor on it appear in default face.
13339
427ec082 13340 * xterm.c (expose_area): New function redrawing a single
26901792
DL
13341 glyph row area.
13342 (expose_line): Use it to redraw all areas of a row.
13343
13344 * dispextern.h (move_operation_enum): New enum
13345 move_operation_enum.
13346
13347 * window.c (window_scroll_pixel_based): Remove now unnecessary
13348 code that made sure that it->current_y doesn't become negative.
13349
13350 * xdisp.c (move_iterator_in_display_line_to): New parameter
13351 op. Special meaning of to_pos <= 0 and to_x < 0 removed.
13352 (move_iterator_to): Ditto.
13353
13354 * dispextern.h (struct glyph_matrix): New member window_width.
13355
13356 * dispnew.c (adjust_glyph_matrix): Set window_width. Optimize
13357 case of changing window height.
13358
13359 * xterm.c (x_draw_row_bitmaps): Don't clear vertical window
427ec082 13360 border to the left.
26901792
DL
13361
13362 * dispextern.h (struct glyph_row): Remove right_to_left_p. RMS
13363 says this aspect of Emacs is currently redesigned.
13364
13365 * xterm.c (x_clip_to_row): Subtract 1 from clip width if we
13366 have to draw a vertical border.
13367
13368 * window.c (window_scroll_pixel_based): When scrolling down by
13369 screen-fulls, make sure it.current_y doesn't get negative because
13370 this would confuse move_iterator_vertically.
13371
13372 * xdisp.c (move_iterator_vertically_backward): Bug fix for
13373 the case continuation lines are involved.
13374 (try_window_id): Don't set the cursor into scroll margins.
13375
133761998-02-08 Gerd Moellmann <gerd@gnu.org>
13377
13378 * xterm.c (x_append_glyph): Don't compute left_overhang and
13379 right_overhang.
13380 (XTproduce_glyphs): left_overhang and right_overhang removed.
13381 Set it->glyph_row->contains_overlapping_glyphs_p.
13382
13383 * xdisp.c (Fdump_redisplay_state): Output of glyph->left_overhang
13384 and right_overhang removed.
13385
13386 * dispextern.h (struct glyph_row): New member
13387 contains_overlapping_glyphs_p used to optimize glyph drawing.
13388 (struct display_iterator): left_overhang and right_overhang
13389 removed.
13390 (struct glyph): Ditto.
13391
13392 * xterm.c (x_draw_relief): Removed.
13393 (x_draw_bitmap): Renamed from draw_bitmap.
13394 (x_draw_glyphs): Completely new implementation of draw_glyphs
13395 capable of handling arbitrary lbearing and rbearing values.
13396 Several sub-functions not mentioned here.
13397
133981998-01-30 Gerd Moellmann <gerd@gnu.org>
13399
13400 * xterm.c (x_erase_phys_cursor): Clear area under the cursor only
427ec082 13401 if displaying hollow box cursor. draw_glyphs should handle
26901792
DL
13402 other cases.
13403 (draw_glyphs): Move start to the left and end to the right if they
427ec082 13404 overlap with previous or following characters.
26901792 13405 (draw_glyphs): If background is cleared for hl == DRAW_CURSOR,
427ec082 13406 make sure XDrawString uses function GXset. Otherwise the
26901792
DL
13407 character under the cursor would be invisible.
13408 (x_draw_bar_cursor): Don't draw over previous character if it
13409 has right_overhang.
13410
13411 * window.c (get_phys_cursor_glyph): Return the glyph under a
13412 window's physical cursor.
427ec082 13413
26901792
DL
13414 * xterm.c (x_draw_hollow_cursor): Use get_phys_cursor_glyph.
13415 (x_draw_bar_cursor): Ditto.
13416 (x_erase_phys_cursor): Ditto.
13417 (x_phys_cursor_in_rect_p): Ditto.
13418 (x_display_and_set_cursor): Remove reference to w->phys_cursor_glyph.
13419
13420 * window.c (make_window): Remove reference to phys_cursor_glyph.
13421 (replace_window): Ditto.
13422
13423 * window.h (struct window): Remove phys_cursor_glyph. There is
427ec082 13424 now always a glyph present for placing the cursor on it in
26901792
DL
13425 each glyph row, even at the end of a line.
13426
13427 * xdisp.c (append_space): Function to add a space to an iterators
13428 glyph row.
13429 (display_line): Add spaces at the end of lines that are used to
13430 place the cursor on them.
13431 (compute_line_metrics): If row consists of a space only that was
427ec082 13432 added to place the cursor on it, use that space's height as the
26901792
DL
13433 line height.
13434
134351998-01-29 Gerd Moellmann <gerd@gnu.org>
13436
13437 * xdisp.c (Fdump_redisplay_state): Dump left and right overhang of
13438 glyphs.
13439
134401998-01-28 Gerd Moellmann <gerd@gnu.org>
13441
13442 * xterm.c (x_append_glyph): Set overhang of glyph from iterator.
13443 (XTproduce_glyphs): Set it->left_overhang and it->right_overhang.
13444
13445 * dispextern.h (struct glyph): Add left_overhang and
427ec082 13446 right_overhang.
26901792
DL
13447 (struct display_iterator): Ditto.
13448
13449 * dispnew.c (direct_output_for_insert): Give up if newly inserted
13450 glyphs have different ascent or descent than original row.
13451
13452 * xdisp.c (compute_line_metrics): Compute row->max_ascent and
13453 row->max_descent only if unknown.
13454 (display_line): Compute row->max_ascent and row->max_descent.
13455 (display_string): Ditto.
13456
13457 * window.h (struct window): New members phys_cursor_ascent and
427ec082 13458 phys_cursor_descent.
26901792
DL
13459
13460 * xterm.c (x_phys_cursor_in_rect_p): Use them.
13461 (x_draw_hollow_cursor): Ditto.
13462 (x_erase_phys_cursor): Ditto.
13463 (x_display_and_set_cursor): Set them.
13464 (x_append_glyph): Don't set glyph members that were removed.
13465
13466 * dispextern.h (struct glyph): Members ascent, descent,
13467 contributes_to_line_height_p removed.
13468
134691998-01-25 Gerd Moellmann <gerd@gnu.org>
13470
13471 * dispextern.h (DEFAULT_FACE_ID, MODE_LINE_FACE_ID): Symbolic
13472 names for face ids of frame default face and mode line face.
13473
13474 * xdisp.c (compute_face_at_iterator_string_position): If
13475 displaying a mode line use MODE_LINE_FACE_ID instead of
13476 DEFAULT_FACE_ID.
13477
13478 * xdisp.c (reseat_iterator_to_string): Additional parameter start.
13479 (display_string): Ditto, additional parameter lisp_string.
13480 (display_line): Call display_string with Lisp mini-buffer prompt
13481 string.
13482 (display_menu_bar): Call display_string with Lisp string.
13483 (display_mode_element): Ditto.
13484 (next_element_from_string): Make it work for non-overlay Lisp
13485 strings with field width and precision.
13486
13487 * minibuf.c (minibuffer-prompt-in-buffer): Bound if
13488 PROMPT_IN_BUFFER.
13489
13490 * xfaces.c (compute_string_char_face): Fix face computation
13491 for overlay strings.
13492
13493 * xdisp.c (struct overlay_entry): Add member after_string_p.
13494 (load_overlay_strings): Simplify.
13495
13496 * window.c (delete_window): Defer glyph matrix adjustment.
13497 (Fsplit_window): Ditto.
13498 (change_window_height): Ditto.
13499 (Fset_window_configuration): Ditto.
13500 (Fset_window_margins): Ditto.
13501 * frame.c (set_menu_bar_lines): Ditto.
13502 (Fmake_terminal_frame): Ditto.
13503 * dispnew.c (change_frame_size_1): Ditto.
13504
135051998-01-24 Gerd Moellmann <gerd@gnu.org>
13506
13507 * xdisp.c (move_iterator_vertically_backward): Change algorithm.
13508
427ec082 13509 * dispnew.c (direct_output_for_insert): Give up if start
26901792
DL
13510 position has overlay strings.
13511
13512 * xdisp.c (display_line): Don't set cursor if row ends in middle
13513 of overlay string.
13514 (Fdump_redisplay_state): Print complete row start and end
13515 position.
13516 (redisplay_window): Cursor movement when matrix hasn't changed---
13517 if PT < last_point, maybe move forward if row ends at PT and
13518 in middle of char.
13519
13520 * minibuf.c (read_minibuf): Save the value of
13521 minibuffer_prompt_length in minibuf_save_list.
13522 (read_minibuf_unwind): Restore minibuffer_prompt_length.
13523
13524 * xdisp.c (redisplay_window): Add assertion for cursor movement
13525 case, PT < last_point.
13526 (move_iterator_in_display_line_to): If to_pos specified, move
13527 over before-strings.
13528
13529 * dispextern.h (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Test
13530 start.string_index > 0.
13531
13532 * xdisp.c (redisplay_internal): Adjust glyphs if fonts_changed_p
13533 is set. Retry redisplay if fonts_changed_p is set before update.
13534
13535 * xterm.c (x_load_font): Set fonts_changed_p.
13536
13537 * xfaces.c (Fset_face_attribute_internal): Set fonts_changed_p.
13538
13539 * dispnew.c (adjust_glyphs_for_font_change): Removed.
13540
13541 * xdisp.c (try_window): Check fonts_changed_p.
13542 (try_window_reusing_current_matrix): Ditto.
13543 (try_window_id): Ditto.
13544
13545 * dispnew.c (adjust_glyphs_for_font_change): Set fonts_changed_p.
13546 (fonts_changed_p): Flag indicating a font change since the last
13547 glyph matrix adjustment.
13548
13549 * xterm.c (x_per_char_metric): Use font->max_bounds as
13550 char metric of the font's default char if the default char
13551 hasn't per char metric itself.
13552
13553 * xfaces.c (Fset_face_attribute_internal): Adjust glyphs
13554 for font change.
13555 (min_char_bounds): Check face->font != NULL.
427ec082 13556 (font_min_bounds): Return minimum font metrics. Capture the
26901792
DL
13557 case of invalid min_bounds contents.
13558 (min_char_bounds): Call font_min_bounds.
13559
135601998-01-22 Gerd Moellmann <gerd@gnu.org>
13561
13562 * xdisp.c (start_display): Don't set it->prompt_width if
13563 PROMPT_IN_BUFFER.
13564 (move_iterator_in_display_line_to): Ditto.
13565 (display_line): Don't display prompt via display_string if
13566 PROMPT_IN_BUFFER.
13567
13568 * minibuf.c (Fminibuffer_prompt_width): Return value from
13569 current_buffer if PROMPT_IN_BUFFER.
427ec082 13570 (read_minibuf): If PROMPT_IN_BUFFER, insert prompt into
26901792
DL
13571 mini-buffer and make it read-only.
13572 (Fminibuffer_complete_and_exit): If PROMPT_IN_BUFFER, use
13573 minibuffer_prompt_length instead of BEGV.
13574 (Fminibuffer_complete_word): Ditto.
13575 (Fminibuffer_complete_word): Ditto.
13576
13577 * insdel.c (del_range_1): If PROMPT_IN_BUFFER, and start position
13578 is less than mini-buffer prompt width, use prompt width as start.
13579
13580 * editfns.c (make_buffer_string): If PROMPT_IN_BUFFER, and start
13581 position is less than mini-buffer prompt width, use the prompt
13582 width as start.
13583
13584 * cmds.c (Fbeginning_of_line): If PROMPT_IN_BUFFER, set point to
13585 end of prompt if applied to a mini-buffer and BEG reached.
13586
135871998-01-21 Gerd Moellmann <gerd@gnu.org>
13588
13589 * editfns.c (make_buffer_string): If PROMPT_IN_BUFFER, add prompt
13590 length to start position.
13591
13592 * buffer.c (Fget_buffer_create): Initialize
13593 minibuffer_prompt_length.
13594 (Fmake_indirect_buffer): Ditto.
13595 (Fkill_buffer): Ditto.
13596
13597 * buffer.h (struct buffer): Add member minibuffer_prompt_length
13598 if PROMPT_IN_BUFFER.
13599
136001998-01-19 Gerd Moellmann <gerd@gnu.org>
13601
13602 * xdisp.c (next_element_from_string): Make it work for arbitrary
13603 Lisp strings.
13604 (set_iterator_to_next): Advance to next overlay string only
13605 if it->string is an overlay string.
13606
13607 * dispextern.h (struct display_iterator):
13608 next_ovstr_face_check_pos renamed next_string_face_check_pos.
13609
427ec082 13610 * xfaces.c (compute_string_char_face): Compute face for
26901792
DL
13611 arbitrary Lisp string. Renamed from compute_overlay_string_char_face.
13612
13613 * xdisp.c (next_element_from_string): Renamed from
13614 next_element_from_overlay_string.
427ec082 13615 (compute_face_at_iterator_string_position): Renamed from
26901792
DL
13616 compute_face_at_iterator_overlay_string_position.
13617
13618 * dispextern.h (struct display_iterator): Member overlay_string
13619 renamed string.
13620
13621 * xdisp.c (next_element_from_c_string): Renamed from
13622 next_element_from_string.
13623
13624 * dispextern.h (struct glyph_pos): Reversed meaning of
13625 overlay_string_index and string_index.
13626
13627 * xdisp.c (next_element_from_overlay_string): Fix bug that made
13628 this function always return the first character of an overlay
13629 string.
13630
136311998-01-18 Gerd Moellmann <gerd@gnu.org>
13632
13633 * xdisp.c (reseat_iterator): Set next_invisible_check_pos only if
13634 forced or new pos > next_invisible_check_pos.
13635 (redisplay_window): Don't try same window start if PT < window
13636 start.
13637 (move_iterator_vertically): Bug fix satisfying post-condition
13638 when ZV is reached and no newline in front.
13639 (move_iterator_vertically_backward): New implementation.
13640 (move_iterator_vertically_backward): Bug fixes.
13641
13642 * xterm.c (XTmouse_position): Change call to min_char_bounds.
13643 * dispnew.c (adjust_frame_glyphs_for_window_redisplay): Ditto.
13644 (adjust_glyphs_for_font_change): Always adjust.
13645
13646 * dispnew.c (struct dim): Use int.
13647
13648 * xfaces.c (Fset_face_attribute_internal): Set face->font_name;
13649 (allocate_face): Initialize it.
13650 (load_font): Use XLoadQueryFont again instead of x_load_font.
13651 (unload_font): Use XFreeFont again.
13652 (min_char_bounds): Iterate over fonts of faces. Use frame's
13653 font sizes as default. Remove parameter except_last_font_p.
13654
13655 * dispextern.h (struct face): Add font_name.
13656
136571998-01-17 Gerd Moellmann <gerd@gnu.org>
13658
13659 * xdisp.c (move_iterator_vertically): Check post-condition. Move
13660 to start of line if ending at ZV and no newline in front.
13661 (move_iterator_to): If to_y specified, always first move to x = 0,
13662 so that move stops at line start instead of line end. This is
13663 probably what callers would expect to happen.
13664
13665 * window.c (window_scroll_pixel_based): Pixel-based scrolling that
13666 can handle different line heights.
13667 (window_scroll_line_based): Formerly window_scroll.
13668 (window_scroll): Call both.
13669
13670 * xdisp.c (start_display): Exclude code if PROMPT_IN_BUFFER.
13671 (move_iterator_in_display_line_to): Ditto.
13672 (display_line): Ditto.
13673
13674 * minibuf.c (read_minibuf): Conditionally insert prompt into
13675 buffer instead of handling prompts specially. Change other
13676 functions accordingly. All such code is in #if PROMPT_IN_BUFFER.
13677
13678 * dispnew.c (adjust_glyph_matrix): Optimize the handling of C-x 2,
13679 upper window. Optimize calls to xrealloc if same width.
13680
13681 * xdisp.c (redisplay_window): Don't use
13682 try_window_reusing_current_matrix if window scroll functions
13683 exist.
13684
13685 * dispextern.h (struct display_iterator): Member
13686 redisplay_end_trigger_p removed.
13687
13688 * dispextern.h (WINDOW_DISPLAY_PIXEL_HEIGHT_WITHOUT_MODE_LINE):
13689 Renamed to WINDOW_DISPLAY_TEXT_AREA_PIXEL_HEIGHT.
13690
136911998-01-16 Gerd Moellmann <gerd@gnu.org>
13692
13693 * xdisp.c (move_iterator_by_lines): Optimize for truncate-lines
13694 nil. Optimize truncate-lines t and moving backward.
13695 (move_iterator_to_previous_visible_line_start): Contains the heart
13696 of the previous set_iterator_to_previous_visible_line_end. Don't
13697 reseat the iterator. Used by move_iterator_by_lines.
13698 (set_iterator_to_previous_visible_line_start): Call function
13699 above.
13700 (move_iterator_in_display_line_to): Check TO_POS before doing
13701 anything else. Otherwise to_pos == PT would move to x of PT+1.
13702
13703 * indent.c (Fvertical_motion): Use display_iterator.
13704
13705 * xdisp.c (move_iterator_by_lines): New function moving by screen
13706 lines.
13707 (redisplay_window): Use it.
13708 (move_iterator_to): Correct branch of to_vpos specified.
13709 (move_iterator_vertically_backward): Increment nlines after having
13710 backed up over some lines because the last line was not backed up
13711 over.
13712 (move_iterator_via_matrix): Look for it->pos in the matrix, and
13713 calculate it->vpos and it->current_y relative to this row.
427ec082 13714 (move_iterator_via_matrix): Set in #if 0. It doesn't seem to
26901792
DL
13715 have a big effect and it is complex.
13716 (move_iterator_to): Call to move_iterator_via_matrix in #if 0.
13717
137181998-01-15 Gerd Moellmann <gerd@gnu.org>
13719
13720 * xterm.c (x_draw_relief): Simplify drawing and draw so that lines
13721 join nicely. Lines with widths > 2 don't join nicely under X.
13722 * xterm.h (struct x_output): Remove member relief_gc_line_width.
13723 * widget.c (setup_frame_gcs): Initialize relief GC's to line
13724 width 1; remove references to relief_gc_line_width.
13725 * xfns.c (x_make_gc): Ditto.
13726
13727 * xfaces.c (Fset_face_attribute_internal): Set frame garbaged
13728 if relief changes.
13729 (Fset_face_attribute_internal): Use XINT instead of XFASTINT
13730 to get a relief because they can be negative.
13731
13732 * xterm.c (x_draw_relief): Correct line drawing positions. Pixel
13733 positions are for the middle of lines under X.
13734
13735 * xdisp.c (try_window_id): Always search for the cursor by setting
13736 w->cursor.vpos = -1. Search in unchanged rows at the top and
13737 bottom if cursor not found in displayed lines.
427ec082 13738 (display_mode_line): First extend face, then set right shadow
26901792
DL
13739 flag. Otherwise the wrong glyph gets the right shadow.
13740
13741 * dispnew.c (direct_output_for_insert): Give up if line contains
13742 a tab. The number of spaces inserted for a tab changes if we
13743 insert glyphs in front of it.
13744
13745 * xterm.c (x_list_fonts): Changes undone because the Lisp
13746 implementation for make-face-smaller, make-face-larger, and
13747 make-face-fixed can do without them.
13748
13749 * xfns.c (Fx_list_fonts): Original x-list-fonts from x-list-font.c
13750 inserted.
13751
13752 * xdisp.c (try_window_id): First compute beg_unchanged, then
13753 compare with window start pos.
13754
13755 * xfns.c (Fx_face_fixed_p): Determine whether a face has a
13756 fixed-width font.
13757 (syms_of_xfns): defsubr for x-face-fixed-p.
13758
13759 * xterm.c (x_erase_phys_cursor): If row containing cursor is not
13760 enabled, don't do anything because this row will be newly drawn
13761 anyway and because we can additionally no longer determine the row
13762 height.
13763
13764 * xdisp.c (display_line): Bug fix cursor positioning.
13765
13766 * xfns.c (x-list-fonts): Copied from x-list-fonts.c; #include
13767 removed. x-list-fonts.c is now obsolete.
13768 (Qfixed, Qvariable): Moved here from xfaces.c.
13769
137701998-01-14 Gerd Moellmann <gerd@gnu.org>
13771
13772 * xdisp.c (display_line): Set row->ends_at_zv_p based on
13773 FETCH_BYTE for truncated lines.
13774 (display_line): Set cursor differently.
13775 (display_line): Fixed bug setting last_pos_on_this_line wrong
13776 for truncated lines.
13777
13778 * dispnew.c (adjust_glyph_matrix): Always adjust for frame-based
13779 redisplay.
13780
13781 * window.c (Fsplit_window): Adjust glyphs before setting buffer.
13782
13783 * dispnew.c (adjust_frame_glyphs_for_window_redisplay): Add
13784 assertion that character dimensions are not zero.
13785
13786 * xterm.c (x_load_font): adjust_glyphs_for_font_change while
13787 input is blocked.
13788
13789 * xdisp.c (decode_mode_spec): Faster implementation of line number
13790 display.
13791
13792 * xterm.c (x_draw_row_bitmaps): Clear flags area before drawing
13793 bitmaps if bitmaps don't fill the entire area.
13794 (draw_bitmap): Draw bitmaps horizontally centered in flags area.
13795
427ec082 13796 * xterm.h (FRAME_FLAGS_BITMAP_HEIGHT): Macro giving the
26901792
DL
13797 pixel height of flags bitmaps.
13798
13799 * frame.h (FRAME_FLAGS_AREA_COLS): Use FRAME_X_FLAGS_AREA_COLS.
13800 (FRAME_FLAGS_AREA_WIDTH): Ditto.
13801
13802 * xterm.h (FRAME_FLAGS_BITMAP_WIDTH): Macro giving the width
13803 in pixels of a flags area of a frame.
13804 (FRAME_X_FLAGS_AREA_WIDTH): Removed.
13805 (FRAME_X_FLAGS_AREA_COLS): Macro giving the number of columns
13806 occupied by a flags area.
13807
138081998-01-13 Gerd Moellmann <gerd@gnu.org>
13809
13810 * xdisp.c (hscroll_window_tree): Remove test for non-nil
13811 window_end_valid.
13812
13813 * dispnew.c (adjust_glyph_matrix): Check redisplay_p if
13814 GLYPH_DEBUG != 0.
13815
13816 * xdisp.c (display_line): Correct wrong calculation of row->x for
13817 the case of nglyphs == 1.
13818 (hscroll_window_tree): Renamed from hscroll_windows.
13819 (hscroll_windows): New function calling hscroll_window_tree that
13820 clears desired matrices on a frame when hscroll has been changed.
13821 (redisplay_p): Global flag set during redisplay.
13822 (redisplay_internal): Set and clear redisplay_p.
13823
13824 * xfaces.c (min_char_bounds): Add assertion that width and height
13825 are not zero at the end. Initialize *height and *width to -1,
13826 instead of using BITS_PER_SHORT. If font has min_bounds.width
13827 zero, use its max_bounds.width.
13828
13829 * x-list-font.c (Fx_list_fonts): Check INTEGERP or FLOATP for
13830 width and height.
13831
138321998-01-12 Gerd Moellmann <gerd@acm.org>
13833
13834 * dispnew.c (adjust_glyph_matrix): Do nothing if sizes haven't
13835 changed. Don't clear desired matrices.
13836
13837 * xdisp.c (hscroll_windows): Compute pt after setting
13838 current_buffer.
13839 (redisplay_window): Don't do cursor movement based on current
13840 matrix if just_this_one_p is zero.
13841
13842 * x-list-font.c (Fx_list_fonts): Additional parameter fixed.
427ec082 13843 specifying that fixed-width, variable-width fonts or both
26901792
DL
13844 should be returned.
13845
13846 * xfaces.c (Qfixed, Qvariable): Symbols for use by x-list-fonts.
13847 (syms_of_xfaces): Initialize them.
13848
13849 * xterm.c (x_list_fonts): Include auto-scaled fonts. Extend
13850 cached information.
13851
138521998-01-11 Gerd Moellmann <gerd@acm.org>
13853
13854 * xdisp.c (display_mode_line): Extend face to end of line.
13855
13856 * xdisp.c (echo_area_display): Don't call display_string with
13857 echo_area_glyphs_length == 0 which would mean infinite precision.
13858 (redisplay_internal): Adjust window_end_vpos if necessary.
13859
138601998-01-07 Gerd Moellmann <gerd@acm.org>
13861
13862 * xdisp.c (display_line): Set it->ends_at_zv_p differently.
13863
138641998-01-05 Gerd Moellmann <gerd@acm.org>
13865
13866 * xdisp.c (get_row_start_continuation_line_width): Removed.
13867 (init_iterator_to_row_start): Set it.current_x from row.
13868 (try_window_id): Set it.continuation_lines_width directly from
13869 row.
13870
13871 * xdisp.c (hscroll_windows): Use w->pointm if window is not
13872 selected_window.
13873 (hscroll_windows): Center cursor in window.
13874 (hscroll_windows): Call move_iterator_in_display_line_to.
13875
138761998-01-04 Gerd Moellmann <gerd@acm.org>
13877
13878 * xdisp.c (hscroll_windows): Check hscroll < 0.
13879 (redisplay_window): Allow quick cursor movement if overlay arrow
13880 but frame uses window-based redisplay.
13881 (display_line): Take special case for nglyphs == 1 out of #if 0.
13882 (display_line): Set row->ends_at_zv_p after the loop displaying
13883 glyphs because ZV can be in truncated text.
13884 (hscroll_windows): Use init_iterator_to_row_start.
13885
13886 * dispnew.c (scrolling_window): Calculation of overlapping
13887 runs fixed.
13888 (row_equal_p): Compare continued_p and continuation_line_p.
13889
138901998-01-02 Gerd Moellmann <gerd@acm.org>
13891
13892 * xterm.c (x_get_mode_line_face_gc): Renamed from
13893 x_get_modeline_face_gc.
13894
13895 * xdisp.c (TEXT_PROP_DISTANCE_LIMIT): Max. distance from current
13896 buffer position to look for text properties.
13897 (get_face_from_cursor_pos): Use it.
13898 (compute_face_at_iterator_position): Use it.
13899 (next_element_from_buffer): Use it.
13900
13901 * dispnew.c (scrolling_window): Decrement run's y-position
13902 when extending it backwards.
13903
13904 * xterm.c (do_line_dance): Don't ever copy more than window height.
13905
139061998-01-01 Gerd Moellmann <gerd@acm.org>
13907
13908 * xdisp.c (redisplay_window): Cursor motion in unchanged
13909 matrix---use MATRIX_ROW_.*_IN_MIDDLE_OF_CHAR_P.
13910 (init_iterator_to_next_row_start): Special handling of lines
13911 ending in middle of char removed.
13912 (hscroll_windows): Hscroll windows only if window_end_valid is not
13913 nil.
13914 (try_window_reusing_current_matrix): Call hscroll_windows.
13915 (init_iterator_to_row_start): Initialize iterator for display
13916 starting at a position given by a glyph_row->start.
13917 (redisplay_window): Don't use vmotion because it gives wrong
13918 results if lines are continued and variable width fonts are used.
13919
427ec082 13920 * dispextern.h (struct glyph_pos): New member dpvec_index.
26901792
DL
13921 (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P): Test if row ends in the
13922 the middle of a character.
427ec082 13923 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Test if row starts in
26901792
DL
13924 the middle of a character.
13925
13926 * xdisp.c (set_iterator_to_next): Increment it->dpvec_index, reset
13927 it.
13928 (next_element_from_display_vector): Use it->dpvec_index.
13929 (reseat_iterator): Reset it.
13930 (init_iterator): Reset it.
13931 (setup_iterator_dpvec_from_glyph_pos): Set up it->dpvec and
13932 it->pos.dpvec_index from a glyph_pos structure.
13933 (init_iterator_from_glyph_pos): Call the function above.
13934 (reseat_iterator_to_glyph_pos): Ditto.
13935
13936 * dispnew.c (direct_output_forward_char): Don't use this method at
13937 overlay boundaries or near invisible text.
13938 (direct_output_forward_char): Step through glyph row to find
13939 cursor position.
13940
427ec082 13941 * xterm.c (x_get_cursor_gc): Don't return cursor_gc for font ==
26901792
DL
13942 frame font if line height differs from font height.
13943
13944 * xdisp.c (set_iterator_to_next): Renamed from
13945 move_iterator_forward to avoid confusion with other move_.*
13946 functions.
13947
13948 * dispextern.h (FACE_RELIEF_P): Renamed from FACE_3D_P.
13949
139501997-12-31 Gerd Moellmann <gerd@acm.org>
13951
13952 * xterm.c (x_get_cursor_gc): Renamed from x_cursor_gc to use the
13953 same naming convention as for other GC functions.
13954 (draw_glyphs): Don't fill background when drawing a cursor and
13955 font height is less than line height.
13956
139571997-12-30 Gerd Moellmann <gerd@acm.org>
13958
13959 * xdisp.c (init_display_iterator.*): Renamed to shorter names
13960 init_iterator_.*.
13961
13962 * xdisp.c (move_iterator_forward): Restore it->len from
13963 it->dpvec_char_len if dpend reached.
13964 (get_next_display_element): Don't consume translated char
13965 prematurely.
13966 (display_line): Don't set this_.* variables if row is continued.
13967 (start_display): Move to start of continuation line if ending
13968 up at end of continued line.
13969
13970 * dispextern.h (struct display_iterator): New member dpvec_char_len.
13971
13972 * xdisp.c (move_iterator_in_display_line_to): Check TO_POS after
13973 checking TO_X and continuation lines.
13974 (get_last_unchanged_at_beg_row): If first_changed_pos is the end
13975 of a continued line, don't consider this line as unchanged because
13976 it may no longer be continued.
13977
139781997-12-29 Gerd Moellmann <gerd@acm.org>
13979
13980 * xdisp.c (try_window_id): Catch the case that moving over
13981 continuation lines moves first_unchanged_at_end_row to a row not
13982 displaying text.
13983
13984 * dispextern.h (struct glyph_row): New member
13985 continuation_lines_width. Member continuation_line_p removed.
427ec082 13986 (MATRIX_ROW_CONTINUATION_LINE_P): Non-zero if row displays a
26901792
DL
13987 continuation line.
13988 * xdisp.c (display_line): Set row->continuation_lines_width.
13989 (get_row_start_continuation_line_width): Set continuation lines
13990 width of iterator from continuation lines width of glyph row.
13991 (get_row_start_continuation_line_width): Make it inline.
13992 (set_window_cursor): Make it inline.
13993 (try_window_id): Use MATRIX_ROW_CONTINUATION_LINE_P.
13994 (Fdump_redisplay_state): Ditto.
427ec082 13995
26901792
DL
13996 * dispnew.c (update_window_line): Use MATRIX_ROW_CONTINUATION_LINE_P.
13997 * xterm.c (x_draw_row_bitmaps): Use MATRIX_ROW_CONTINUATION_LINE_P.
13998
13999 * xdisp.c (try_window_id): Set it.hpos and it.current_x to zero
14000 after determining the continuation lines width for
14001 last_unchanged_at_beg_row.
14002
14003 * xterm.c (x_draw_row_bitmaps): Let overlay arrow have precedence.
14004
14005 * xdisp.c (display_mode_line): Handle 3D faces only on frames
14006 which support faces.
14007 (init_display_iterator): Ditto.
14008 (move_iterator_via_matrix): Skip over truncation glyph at the row
14009 start on terminal frames.
14010 (hscroll_windows): Choose hscroll margin differently for window
14011 system and terminal frames.
14012
140131997-12-28 Gerd Moellmann <gerd@acm.org>
14014
14015 * xdisp.c (hscroll_windows): Change hscroll of windows.
14016 (redisplay_internal): Call it.
14017
427ec082 14018 * dispnew.c (direct_output_for_insert): Give up if a glyph
26901792
DL
14019 doesn't fit completely on the line.
14020 (direct_output_forward_char): Give up for non-ASCII chars.
14021 (direct_output_forward_char): Set redisplay_performed_directly_p.
14022
14023 * dispextern.h (struct display_iterator): Make first_visible_x
14024 and last_visible_x ints; this is for very long truncated lines.
14025
14026 * xdisp.c (move_iterator_in_display_line_to): Separate check for
14027 MOVE_X_REACHED only if it->nglyphs == 0. This fixes cursor
14028 positioning problems with the mouse.
14029 (move_iterator_in_display_line_to): Truncate lines if it->current_x
14030 >= it->last_visible_x instead of >.
14031 (display_line): Ditto.
14032
14033 * xterm.c (draw_glyphs): Draw rectangles if font could not be
14034 loaded.
14035 (XTproduce_glyphs): Calculate pixel_width for composite chars and
14036 non-ASCII chars differently. Always produce 1 glyph for composite
14037 chars. If font not found, use CHARSET_WIDTH to calculate width of
14038 non-ASCII chars.
14039 (x_get_char_font_and_encoding): Return null if font could not be
14040 loaded. Reset font to null if fontset could not be loaded.
14041 (draw_glyphs): Fill background if font not found.
14042 (draw_glyphs): Unused parameter just_foreground_p removed. New
14043 parameter composite_glyph.
14044 (draw_glyphs): Use enumeration for parameter hl.
427ec082 14045 (draw_glyphs): Pass a display area relative x-position to
26901792
DL
14046 draw_glyphs when calling it recursively for composite chars.
14047
140481997-12-27 Gerd Moellmann <gerd@acm.org>
14049
14050 * xterm.c: Patches from handa.etl.go.jp integrated.
14051 (draw_glyphs): Don't rely on x_get_char_font_and_encoding to
14052 find a font_info.
14053
14054 * xdisp.c (move_iterator_in_display_line_to): Check to_x
14055 for nglyphs == 1.
14056
14057 * xterm.c (x_draw_relief): Draw relief lines.
14058 (draw_glyphs): Call x_draw_relief.
14059
140601997-12-26 Gerd Moellmann <gerd@acm.org>
14061
14062 * xfns.c (x_make_gc): Create relief GC's.
14063
14064 * widget.c (create_frame_gcs): Create GC's for relief drawing.
14065 (setup_frame_gcs): Initialize them.
14066 (EmacsFrameDestroy): Free them.
14067
427ec082 14068 * xdisp.c (try_window_id): Get continuation lines width if
26901792
DL
14069 last_unchanged_at_beg_row is continued or a continuation line.
14070 (move_iterator_via_matrix): Don't do it for mini-buffer windows.
427ec082 14071 (redisplay_window): Case point has changed, and it has not
26901792
DL
14072 moved off the frame. Don't increment row if PT equals the row
14073 end if the row ends in ZV.
14074
14075 * xterm.c (x_draw_row_bitmaps): New function to draw bitmaps.
14076 (expose_line): Call it.
14077 (x_after_update_window_line): Call it.
14078
14079 * xdisp.c (display_line): Reset continuation_lines_width when ZV
14080 reached.
14081
14082 * xterm.c (x_after_update_window_line): Draw continuation line
14083 bitmap.
14084
14085 * dispnew.c (update_window_line): Call
14086 after_update_window_line_hook when row's continuation_line_p
14087 changes.
14088
14089 * xterm.c (draw_bitmap): Draw new bitmap CONTINUATION_LINE_BITMAP.
14090
14091 * xdisp.c (display_line): Handle continued lines on window system
14092 frames differently since continuation glyphs are not displayed.
14093 (move_iterator_in_display_line_to): Ditto.
14094 (move_iterator_in_display_line_to): Take the mini-buffer prompt
14095 into account.
14096 (move_iterator_vertically_backward): Handle dy == 0 specially.
14097 (redisplay_window): Catch the case of small windows when
14098 recentering where moving back window_height/2 moves us beyond the
14099 top of the display area of the window.
14100
141011997-12-18 Gerd Moellmann <gerd@acm.org>
14102
14103 * xdisp.c (move_iterator_vertically_backward): Unused parameter
14104 dvpos removed.
14105
141061997-12-17 Gerd Moellmann <gerd@acm.org>
14107
14108 * dispnew.c (direct_output_forward_char): Correct new cursor
14109 x-position.
14110
141111997-12-16 Gerd Moellmann <gerd@acm.org>
14112
14113 * xterm.c (x_after_update_window_line): Remove unused parameters.
14114 (XTclear_end_of_line): Clear to display_height instead of
14115 display_height - 1.
14116
14117 * dispnew.c (set_frame_matrix_frame): Make it INLINE.
427ec082 14118 (update_window_line): Call after_update_window_line_hook if
26901792
DL
14119 rows have different y-positions, or different height.
14120
141211997-12-14 Gerd Moellmann <gerd@acm.org>
14122
14123 * frame.h (FRAME_MODE_LINE_PIXEL_HEIGHT): Removed.
14124
14125 * window.c (coordinates_in_window): Call frame_mode_line_height.
14126
14127 * xterm.c (x_draw_3d_border): Removed.
14128 (x_draw_row_borders): Removed.
14129
14130 * dispnew.c (update_window): References to
14131 FRAME_MODE_LINE_BORDER_WIDTH removed.
14132
14133 * xterm.h (FRAME_MODE_LINE_BORDER_WIDTH): Removed.
14134 (FRAME_MODE_LINE_HEIGHT): Removed.
14135
14136 * xterm.c (draw_3d_borders_p): Removed.
14137 (draw_glyphs): Ditto.
14138 (XTwrite_glyphs): Ditto.
14139 (expose_line): Ditto.
14140 (x_initialize): Ditto.
14141
14142 * dispextern.h (WINDOW_DISPLAY_MODE_LINE_HEIGHT): Call
14143 frame_mode_line_height.
14144
14145 * term.c (frame_mode_line_height): Get the pixel height of a
14146 frame's mode line.
14147 (frame_mode_line_height_hook): Hook to implement system dependent
427ec082
SS
14148 versions.
14149
26901792
DL
14150 * xterm.c (x_initialize): Set the hook.
14151 (XTframe_mode_line_height): X version of frame_mode_line_height.
14152
14153 * xdisp.c (echo_area_display): Call gobble_input to flush the X
14154 output buffer.
14155 (display_string): Don't add right truncation mark if line ends in
14156 padding space.
14157 (init_display_iterator): If called with modeline_p non-zero, set
14158 face_id to 1, which is the id of the mode line face.
14159
14160 * keyboard.c (cmd_error_internal): Write to stderr if selected
14161 frame is Vterminal_frame under X. This is the case when a font
14162 cannot be loaded when Emacs starts. Replace test for
14163 FRAME_MESSAGE_BUF with test for glyphs_initialized_p.
14164
14165 * xfaces.c (compute_overlay_string_char_face): Compute the
14166 face of a character in an overlay string.
14167 * xterm.h (compute_overlay_string_char_face): Prototype.
427ec082 14168 * xdisp.c (compute_face_at_iterator_overlay_string_position):
26901792
DL
14169 Use it.
14170
14171 * xdisp.c (set_iterator_to_next_overlay_string): Formerly
14172 set_iterator_to_next_overlay.
14173 (struct overlay_entry): Structure used to sort overlay strings.
14174 (compare_overlay_entries): Compare overlay strings.
14175 (load_iterator_with_overlay_strings): Load a chunk of overlay
14176 strings.
14177 (get_overlay_strings_at_iterator_position): Call it.
14178 (next_element_from_overlay_string): Set it->object to the overlay
14179 string. Prepare for setting it->position to a string position.
14180 (get_overlay_strings_at_iterator_position): Renamed from
14181 get_overlays_at_iterator_position.
14182 (setup_iterator_overlay_strings_from_glyph_pos): Changed to load
14183 chunks of overlay strings.
14184 (load_overlay_strings): Renamed from load_iterator_overlay_strings.
14185
14186 * dispextern.h (struct display_iterator): New vector
14187 overlay_strings and new member n_overlay_strings---formerly
427ec082
SS
14188 overlays and n_overlays.
14189 (struct glyph_pos): Remove after_string_p; overlay_index
26901792
DL
14190 renamed to string_index.
14191
141921997-12-13 Gerd Moellmann <gerd@acm.org>
14193
14194 * xdisp.c (copy_iterator): Increment n_iterator_overlay_vectors
14195 when allocating a vector.
14196 (release_iterator): Removed.
14197 (restore_iterator): Removed.
14198 (copy_iterator): Removed.
14199
142001997-12-08 Gerd Moellmann <gerd@acm.org>
14201
14202 * xdisp.c (redisplay_window): Use make_empty_enabled_row for
14203 clearing a mini-buffer window that is not active.
14204 (redisplay_window): Do not scroll one line too early when last
14205 window line is completely visible.
14206 (init_display_iterator): Leave some room to display the cursor
14207 after the last glyph on a continued line.
14208
14209 * xterm.h (struct x_output): trunc_area_extra renamed
14210 flags_areas_extra.
14211 (FRAME_X_FLAGS_AREA_WIDTH): Renamed from FRAME_X_TRUNC_WIDTH.
14212
14213 * dispnew.c (update_window_line): Call
14214 after_update_window_line_hook when current row is not enabled
14215 which is the case after a frame has been cleared.
14216
14217 * xdisp.c (display_mode_line): Reset row flags for truncation
14218 on right side for the mode line.
14219
14220 * xterm.c (bitmap_type): Type of bitmap to display in flags
14221 area of frame.
14222 (x_after_update_window_line): Use the enum.
14223 (draw_bitmap): Ditto.
14224
142251997-12-07 Gerd Moellmann <gerd@acm.org>
14226
14227 * xterm.c (x_clip_to_row): Include width of both flag areas.
14228 (do_line_dance): Ditto.
14229 (expose_window_tree): Ditto.
14230 * dispnew.c (update_window_line): Call
14231 after_update_window_line_hook for right truncation and continuation.
14232 * xdisp.c (init_display_iterator): Don't subtract width of
14233 continuation glyphs for window-based redisplay.
14234 * xterm.c (draw_bitmap): Draw continuation bitmap.
14235 * widget.c (set_frame_size): Double trunc_area_extra.
14236 (EmacsFrameSetCharSize): Ditto.
14237 * xfns.c (x_figure_window_size): Ditto.
14238 * xterm.c (x_set_window_size): Ditto.
14239 (x_after_update_window_line): Draw right truncation mark.
14240
14241 * xterm.c (draw_glyphs): Bug fix buffer overrun.
14242
14243 * window.h: Include blocker around dispextern.h removed.
14244
14245 * eval.c (Feval): Check interrupt_input_block == 0.
427ec082 14246
26901792
DL
14247 * dispextern.h (struct display_iterator): Former ovstr made a
14248 Lisp_Object overlay_string. New next_ovstr_face_check_pos and
14249 next_ovstr_invisble_check_pos; check at these positions for
14250 face changes and changes in invisible text property.
14251 (struct glyph_pos): Former ovlen now overlay_string_index.
14252
14253 * xdisp.c (setup_iterator_overlays_from_glyph_pos): Set
14254 overlay_string.
14255 (set_iterator_to_next_overlay_string): Set overlay_string and
14256 pos.overlay_string_index.
14257 (get_overlays_at_iterator_position): Use overlay_string and
14258 overlay_string_index.
14259 (next_element_from_overlay_string): Use overlay_string and
14260 overlay_string_index.
14261 (move_iterator_forward): Increment overlay_string_index.
14262 (try_window_id): Use overlay_string and overlay_string_index.
14263 (move_iterator_forward): At end of dpvec, maybe use method
14264 next_element_from_overlay_string for the case a character from an
14265 overlay string was translated via a display table.
14266 (reseat_iterator_to_string): Take a Lisp string.
14267 (display_string): Pass a Lisp string to reseat_iterator_to_string.
14268 (compute_face_at_iterator_overlay_string_position): Compute face
14269 based on text properties for an overlay string.
14270 (next_element_from_overlay_string): Check invisible and face text
14271 properties.
178c5d9c 14272
26901792
DL
14273 (set_iterator_to_next_overlay_string): Restore face id before
14274 overlay strings when no more overlay strings are found to return.
14275 Initialize next_ovstr_.*check_pos for each new overlay string
178c5d9c 14276
bb6677a8
GM
14277 A line in the following paragraph was garbled for an unknown
14278 reason. It couldn't be fully reconstructed.
178c5d9c 14279
bb6677a8 14280 (compute_base_face): Made public.
26901792
DL
14281 (merge_face_list): Ditto.
14282 (intern_computed_face): Ditto.
14283
427ec082 14284 * xdisp.c (redisplay_window): Cursor movement in unchanged
26901792
DL
14285 window if PT > w->last_point. Goto try_to_scroll if bottom Y
14286 of row is > instead of >= last_y.
14287
14288 * buffer.h (overlays_at): Function prototype.
14289
14290 * xdisp.c (reseat_iterator_to_string): Clear iterator position.
14291 * dispextern.h (GET_NEXT_DISPLAY_ELEMENT): Removed.
14292
427ec082 14293 * xdisp.c (release_iterator): Release dynamically allocated
26901792
DL
14294 memory of a display_iterator.
14295 (copy_iterator): Copy an iterator.
14296 (restore_iterator): Restore an iterator from a backup copy.
14297 (global): Use the functions above.
14298 * window.c (Fpos_visible_in_window_p): Call release_iterator.
14299 * dispnew.c (direct_output_for_insert): Call release_iterator.
14300
14301 * dispextern.h (struct display_iterator): Allocate overlays
14302 vector dynamically.
14303
143041997-12-06 Gerd Moellmann <gerd@acm.org>
14305
14306 * Makefile.in (window.o): Depends on dispextern.h.
14307
14308 * buffer.c (overlays_at): Make it work when extending vectors
14309 and an initial vector of zero size.
14310
14311 * xdisp.c (set_iterator_to_previous_visible_line_end): Renamed
14312 from set_cursor_to_previous_visible_line_end.
14313 (set_iterator_to_next_visible_line_start): Renamed from
14314 set_cursor_to_next_visible_line_end.
14315 (set_next_iterator_stop_pos): Renamed from set_next_stop_pos.
14316 (compute_face_at_iterator_position): Renamed from
14317 compute_cursor_face.
14318 (set_iterator_to_next_overlay_string): Renamed from
14319 cursor_to_next_overlay_string.
14320 (get_overlays_at_iterator_position): Renamed from
14321 get_overlays_for_cursor.
14322 (reseat_iterator): Renamed from reseat_cursor.
14323 (setup_iterator_overlays_from_glyph_pos): Renamed from
14324 setup_overlays_from_pos.
14325 (init_string_iterator): Renamed from init_string_cursor.
14326 (get_next_display_element): Renamed from next_display_element.
14327 (move_iterator_forward): Renamed from advance_display_cursor.
427ec082 14328 (get_overlays_at_iterator_position): Allocate overlays vector
26901792
DL
14329 dynamically.
14330
14331 * xdisp.c: display_cursor renamed display_iterator.
14332 * dispextern.h: Ditto.
14333 * dispnew.c: Ditto.
14334
143351997-12-01 Gerd Moellmann <gerd@acm.org>
14336
14337 * window.c (mark_window_cursors_off): Function comment added.
14338 (window_topmost_p, window_rightmost_p): Removed because not used.
14339
143401997-11-30 Gerd Moellmann <gerd@acm.org>
14341
14342 * emacs.c (main): Function prototypes removed in profiling code.
14343 Use safe_bcopy as start of text.
14344
14345 * dispnew.c (update_frame_line): update_line -> update_frame_line;
14346 mirrored_make_current -> make_current.
14347
14348 * xdisp.c: (store_frame_title_char): New function to store a
14349 single character for the frame title with re-allocation of
14350 frame_title_buf.
14351 (init_xdisp): Intialize frame_title_.* variables to null.
14352
14353 * dispnew.c (quit_error_check): Removed.
14354
14355 * eval.c (Fsignal): Call to quit_error_check removed.
14356 * keyboard.c (quit_throw_to_read_char): Ditto.
14357
143581997-11-23 Gerd Moellmann <gerd@acm.org>
14359
14360 * xfaces.c (Fset_face_attribute_internal): Allow nil relief
14361 to mean a zero relief.
14362
26901792
DL
143631997-11-19 Gerd Moellmann <gerd@acm.org>
14364
14365 * dispnew.c (new_glyph_matrix): Increment glyph_matrix_count
14366 unconditionally.
14367 (glyph_matrix_count, glyph_pool_count): Define unconditionally.
14368 (free_glyph_matrix): Decrement glyph_matrix_count unconditionally.
14369 (check_glyph_memory): Define function body unconditionally.
14370
143711997-11-17 Gerd Moellmann <gerd@acm.org>
14372
14373 * dispnew.c (scrolling_window): Alternative version of this
14374 function removed.
14375
143761997-11-16 Gerd Moellmann <gerd@acm.org>
14377
14378 * dispnew.c (make_empty_enabled_row): Make an empty, enabled row
14379 of height CANON_Y_UNIT.
14380 * dispextern.h: Prototype for that function.
427ec082 14381 * xdisp.c (echo_area_display): Don't use display_string to
26901792
DL
14382 produce empty rows. Use make_empty_enabled_row instead.
14383
14384 * dispnew.c (scrolling_window): New version using diff-like
14385 algorithm activated.
427ec082 14386
26901792
DL
143871997-11-15 Gerd Moellmann <gerd@acm.org>
14388
14389 * dispnew.c (clear_current_matrices): Clear matrix of menu_bar_window
14390 (clear_desired_matrices): Ditto.
14391 (adjust_frame_glyphs_for_window_redisplay): Use FRAME_WINDOW_WIDTH
14392 for menu_bar_window.
14393
14394 * alloc.c (mark_object): Mark menu_bar_window of frames.
14395
14396 * xterm.c (XTupdate_window_end): Don't display cursor if
14397 pseudo_window_p.
14398
14399 * dispnew.c (adjust_frame_glyphs_for_window_redisplay): Don't
14400 set mini_p.
14401 (update_window): Don't set cursor if pseudo_window_p.
14402
14403 * dispextern.h (WINDOW_WANTS_MODELINE_P): Test pseudo_window_p.
14404
14405 * window.h (struct window): New flag pseudo_window_p set to
14406 1 for windows that aren't really part of the window tree, like
14407 menu_bar_window's of frames.
14408 * window.c (make_window): Initialize it.
14409 (replace_window): Ditto.
14410 * dispnew.c (adjust_frame_glyphs_for_window_redisplay): Ditto.
14411
14412 * frame.c (make_frame): Initialize menu_bar_window to nil.
14413
14414 * xterm.c (XTget_display_info): FACE_SHADOW_THICKNESS renamed
14415 FACE_RELIEF
14416
14417 * xfaces.c (copy_face): shadow_thickness -> relief.
14418 (face_eql): Ditto.
14419 (merge_faces): Ditto.
14420 (compute_base_face): Ditto.
14421 (Fset_face_attribute_internal): Ditto.
14422 * dispextern.h (struct face): Ditto.
14423
14424 * dispnew.c (update_frame): Update menu_bar_window of the frame if
14425 it is non-nil.
14426
14427 * xdisp.c (display_menu_bar): Display the menu bar in
14428 f->menu_bar_window if appropriate.
14429 (display_mode_line): Use MATRIX_MODE_LINE_ROW.
14430
14431 * dispnew.c (adjust_frame_glyphs_for_window_redisplay): Allocate
14432 dummy window and window matrices for f->menu_bar_window.
14433 (free_glyphs): Free the dummy window and its glyph matrices.
14434
14435 * frame.h (struct frame): New member menu_bar_window.
14436
144371997-11-09 Gerd Moellmann <gerd@acm.org>
14438
14439 * dispnew.c (scrolling_window): New version with diff-like
14440 algorithm.
14441
14442 * xdisp.c (try_window_reusing_current_matrix): If new_start >
14443 old_start always start displaying at start of
14444 first_row_to_display. The previous scheme failed if the last row
14445 was fully visible.
14446
14447 * dispnew.c (update_window): Remove cost calculations. Remove
14448 redundant preempt_count calculations.
14449
14450 * xterm.c (x_clip_to_row): Set clipping for non-text rows
14451 differently.
14452
14453 * dispnew.c (update_window): Use WINDOW_WANTS_MODELINE_P.
14454
427ec082 14455 * window.c (syms_of_window): Functions for marginal areas if
26901792
DL
14456 WITH_MARGINAL_AREAS is defined.
14457
427ec082 14458 * xdisp.c (try_window_reusing_current_matrix): Trace fprintf
26901792
DL
14459 removed.
14460
14461 * dispnew.c (scrolling): Call line_hash_code because hash values
14462 are not set in the frame matrix.
14463
14464 * xdisp.c (try_window_id): Fix scrolling for terminal frames.
14465 (redisplay_window): Check line_ins_del_ok before calling
14466 try_window_id.
14467 (try_window_reusing_current_matrix): Give up for terminal frames
14468 if window is not full width or we cannot insert/delete lines.
14469 (try_window_reusing_current_matrix): Fixed scrolling for terminal
14470 frames.
14471
14472 * alloc.c (mark_glyph_matrix): Bug fix - pass pointer to
14473 Lisp_Object to mark_object.
14474
14475 * xdisp.c (sync_frame_with_window_matrix_rows): Make frame and
14476 window rows have the same glyph pointers.
14477 (try_window_id): Call it.
14478
14479 * alloc.c (mark_glyph_matrix): Function to mark Lisp objects in
14480 a glyph matrix.
14481 (mark_object): Call it.
14482
14483 * xdisp.c (insert_left_trunc_glyphs): Use 0 object in glyphs for
14484 truncations.
14485 (display_line): Ditto.
14486 (display_line): Ditto for DISP_CONTINUATION.
14487 (display_line): Truncation on right: test current_x >
14488 last_visible_x.
14489 (skip_in_display_line_to): Ditto.
14490 (skip_via_matrix): Stop skipping in glyph row at face extending
14491 glyphs or at padding spaces.
14492
14493 * dispnew.c (fill_up_glyph_row_with_spaces): Comment extended.
14494
14495 * xdisp.c (display_line): Use glyph->object == 0 for padding
14496 glyphs.
14497 (redisplay_window): Don't let cursor move over padding
14498 spaces.
14499
14500 * dispextern.h (struct glyph): Fix comment for object.
14501
145021997-11-08 Gerd Moellmann <gerd@acm.org>
14503
14504 * dispextern.h (WINDOW_WANTS_MODELINE_P): Non-zero if a window
14505 has a mode line.
14506 * xdisp.c (redisplay_window): Use it.
14507 (display_mode_line): Check that window wants mode line.
14508
145091997-11-03 Gerd Moellmann <gerd@acm.org>
14510
14511 * xdisp.c (display_menu_bar): Enable menu bar rows.
14512
14513 * xterm.c (x_draw_hollow_cursor): X positions based on text area.
14514 (x_erase_phys_cursor): Ditto.
14515 (x_draw_bar_cursor): Ditto.
14516
145171997-11-02 Gerd Moellmann <gerd@acm.org>
14518
14519 * dispnew.c (update_marginal_area): Update a marginal area.
14520 (update_text_area): Update text area.
14521 (update_window_line): Call both.
14522
14523 * xterm.c (XTclear_end_of_line): Translate coordinates area
14524 dependent.
14525
14526 * dispnew.c (updated_area): Row area being updated in
14527 update_window_line.
14528 (update_window_line): Set it.
14529 (update_marginal_area): Clear to end of line if not in text area.
14530
14531 * window.c (Fset_window_margins): Increment
14532 windows_or_buffer_changed. Adjust glyphs.
14533
14534 * dispextern.h (WINDOW_TEXT_TO_FRAME_PIXEL_X): Convert text
14535 area X coordinates to frame coordinates.
427ec082 14536 (WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH): Width of left marginal area.
26901792
DL
14537 (WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH): Same for right area.
14538 (WINDOW_DISPLAY_TEXT_AREA_PIXEL_WIDTH): Same for text area.
14539
14540 * xterm.c (draw_glyphs): Use text area width as display width.
14541
14542 * xdisp.c (init_display_info): Subtract widths of marginal areas
14543 from last_visible_x.
14544
14545 * alloc.c (mark_object): Mark objects in glyphs only if they are
14546 overlays. Mark only if current_matrix != 0. Activate the code.
14547
14548 * window.c (Fset_window_margins): Set margins.
14549 (Fwindow_margins): Return margin area widths.
14550 (syms_of_window): Add defsubr's.
14551
14552 * window.h (struct window): left_margin_width, right_margin_width.
14553
14554 * xfns.c (x_set_trunc_area_width): Set truncation pixel width
14555 and cols.
14556
14557 * frame.h (FRAME_TRUNC_COLS): Number of columns occupied by
14558 truncation/overlay arrow area.
14559 (struct frame): trunc_area_pixel_width, and _cols.
14560
14561 * window.c (Fsplit_window): Use it.
14562
14563 * window.c (Fsplit_window): Set cursor vpos to -1 after
14564 splitting.
14565 (Fsplit_window): SUbtract/add FRAME_TRUNC_WIDTH for horizontally
14566 split windows.
14567
14568 * dispnew.c (set_window_cursor_after_update): Accept out
427ec082 14569 of bounds cursor positions.
26901792
DL
14570
14571 * xdisp.c (redisplay_internal): Check that after cursor motion
14572 within line, PT is on same line.
14573
14574 * dispextern.h (WINDOW_DISPLAY_PIXEL_WIDTH): Don't subtract
14575 FRAME_TRUNC_WIDTH.
14576
14577 * xterm.h (struct x_output): trunc_area_extra.
14578 (CHAR_TO_PIXEL_WIDTH): Add in trunc_area_extra.
14579 (PIXEL_TO_CHAR_WIDTH): Subtract it.
14580 * widget.c (set_frame_size): Set it.
14581 (EmacsFrameSetCharSize): Ditto.
14582 * xfns.c (x_figure_window_size): Ditto.
14583 * xterm.c (x_set_window_size): Ditto.
14584
14585 * dispnew.c (check_matrix_invariants): First try to check window
14586 ends (in #if 0).
14587
14588 * xdisp.c (try_window_reusing_current_matrix): Try window
14589 redisplay with different window start.
14590
145911997-11-01 Gerd Moellmann <gerd@acm.org>
14592
14593 * window.c (make_window): Set window_end_pos/vpos.
14594 (Fsplit_window): Zero last_cursor, window_end_valid.
14595 (Fset_window_buffer): Set window_end_vpos, zero last_cursor.
14596
14597 * dispnew.c (check_matrix_invariants): Check window_end_pos/vpos.
14598
145991997-10-31 Gerd Moellmann <gerd@acm.org>
14600
14601 * window.c (make_window): Initialize last_cursor.
14602 (replace_window): Ditto.
14603
146041997-10-29 Gerd Moellmann <gerd@acm.org>
14605
14606 * window.h: New member last_cursor.
14607 * dispnew.c (direct_output_for_insert): Set it.
14608 (direct_output_forward_char): Ditto.
14609 * xdisp.c (redisplay_internal): Ditto.
14610
146111997-10-28 Gerd Moellmann <gerd@acm.org>
14612
14613 * xdisp.c (redisplay_internal): Optimization 1 change partially
14614 reverted. Check this again later.
14615 (skip_via_matrix): Remove redundent test for
427ec082 14616 MATRIX_ROW_DISPLAYS_TEXT_P.
26901792
DL
14617
146181997-10-27 Gerd Moellmann <gerd@acm.org>
14619
14620 * dispnew.c (update_window_line): Call
14621 after_update_window_line_hook only for interesting constellations.
14622 (free_glyph_matrix): Fix memory leak.
14623
14624 * window.h: Include blocker WINDOW_H_INCLUDED, include
14625 dispextern.h.
14626 (struct window): phys_cursor_glyph as struct glyph. * window.c
14627 (make_window): Initialize it.
427ec082 14628 (replace_window): Ditto.
26901792
DL
14629 * dispnew.c (free_window_matrices): Remove freeing of
14630 phys_cursor_glyph.
14631 (check_matrix_invariants): Renamed from check_current_matrix_...
14632 * xterm.c: All references to phys_cursor_glyph changed.
14633
14634 * dispextern.h (DISPEXTERN_H_INCLUDED: New include blocker.
14635
14636 * xfaces.c: Comment update.
14637
14638 * window.h (struct window): Make phys_cursor_glyph a struct glyph
14639 pointer. Remove phys_cursor_ascent, descent, etc.
14640 * dispnew.c (free_window_matrices): Free it.
14641 * window.c (make_window): Allocate it.
14642 (replace_window): Ditto.
14643 * xterm.c (x_draw_phys_cursor_glyph): Draw it.
14644 (x_display_and_set_cursor): Fill it.
14645 (x_phys_cursor_in_rect_p): Use it.
14646 (x_draw_hollow_cursor): Ditto.
14647 (x_draw_bar_cursor): Ditto.
14648 (x_erase_phys_cursor): Ditto.
14649
14650 * xdisp.c (skip_in_display_line_to): Use SET_INFO_FROM_CURSOR.
14651
14652 * xterm.c (XTget_display_info): Handle 3D facess.
14653 (draw_glyphs): Ditto.
14654
14655 * xdisp.c (Fdump_redisplay_state): Change interactive spec to "p".
14656
14657 * xfaces.c (Fset_face_attribute_internal): New face attribute
14658 shadow-thickness.
14659 (copy_face): Handle shadow_thickness.
14660 (face_eql): Ditto.
14661 (merge_faces): Ditto.
14662 (compute_base_face): Ditto.
14663
14664 * dispextern.h (struct display_cursor): New member start_of_3d_run_p.
14665 (struct display_info): Ditto.
14666 (SET_INFO_FROM_CURSOR): Transfer it to display_info.
14667 * xdisp.c (compute_cursor_face): Set it.
14668 (advance_display_cursor): Clear it.
14669
14670 * xdisp.c (init_string_cursor): Initialize face_id to -1.
14671 (init_string_cursor): Init face_id to zero.
14672
14673 * dispextern.h (struct face): New member shadow_thickness.
14674
427ec082 14675 * xdisp.c (compute_cursor_face): Set limit for text property
26901792
DL
14676 search to 100.
14677
14678 * dispnew.c (update_window_line): Try to resynch with current line
14679 to prevent mode line flickering.
14680
146811997-10-26 Gerd Moellmann <gerd@acm.org>
14682
427ec082 14683 * dispnew.c (set_window_cursor_after_update): React again
26901792
DL
14684 on cursor_in_echo_area >= 0.
14685
14686 * xdisp.c (echo_area_display): Clear desired matrix before
14687 displaying into it.
14688 (display_menu_bar): Clear glyph row instead of hoping it is not
14689 enabled. This is safer.
14690
14691 * dispnew.c (check_current_matrix_invariants): Check only
14692 visible rows.
14693
14694 * xdisp.c (try_window_id): Handle window end setting in case of
14695 display to end of window, but only non-text lines displayed.
14696
14697 * dispnew.c (check_current_matrix_invariants): Check nrows for zero.
14698 (check_current_matrix_invariants): Check used counts.
14699
14700 * Revisiob v114.
14701
14702 * dispnew.c (scrolling): Use hash codes from rows.
14703
14704 * xdisp.c (Fdump_redisplay_state): Dump current matrix.
14705
14706 * dispnew.c (scrolling_window): Invalidate conflicting runs.
14707
147081997-10-25 Gerd Moellmann <gerd@acm.org>
14709
14710 * dispextern.h (struct glyph_matrix): Flag no_scrolling_p.
14711 * dispnew.c (update_window): Use it.
14712 (clear_glyph_matrix): Clear it.
14713 * xdisp.c (try_window_id): Set it.
14714
14715 * dispextern.h (struct glyph_row): New flag ends_at_zv_p.
14716
14717 * xdisp.c (redisplay_internal): Increment glyph positions differently.
14718
14719 * dispextern.h: More comments etc.
14720
147211997-10-24 Gerd Moellmann <gerd@acm.org>
14722
14723 * dispnew.c (set_window_cursor_after_update): Set cursor
14724 for cursor_in_echo_area == 0 to (0, 0).
14725
14726 * dispextern.h (struct glyph_row): New flags continuation_line_p
14727 and displays_text_p.
14728 (MATRIX_ROW_DISPLAYS_TEXT_P): Use displays_text_p.
14729 * xdisp.c (display_line): Set them.
14730 (try_window_id): Move to start of continuation line to find out
14731 continuation_line_width.
14732 (first_unchanged_current_row): Don't retract row if continued,
14733 truncated etc.
14734
14735 * xterm.c: Map X coordinates.
14736
147371997-10-23 Gerd Moellmann <gerd@acm.org>
14738
14739 * dispnew.c (buffer_posn_from_coords): Translate X for right to
14740 left text.
14741
14742 * xdisp.c (display_line): Set right_to_left_p after clearing the row.
14743
14744 * xterm.c (XTclear_end_of_line): Respect right_to_left_p.
14745
f28eba7b 14746 * xdisp.c (try_window_id): Clear desired matrix if not successul.
26901792
DL
14747
14748 * xdisp.c (try_window_id): Call update_window_begin_hook/end_hook.
14749
14750 * dispnew.c (update_window_begin_hook, update_winodw_end_hook):
14751 Set this to functions to be called before/after window updates.
14752 (direct_output_for_insert): Call them.
14753 (update_window): Ditto.
14754 (update_frame): Call update_begin/ update_end for windows.
14755
14756 * xterm.c (XTupdate_window_begin): Called before window updates.
14757 (XTupdate_end): Called after window updates.
14758 (x_initialize): Set hooks to above.
14759
14760 * xdisp.c (init_display_info): Initialize c and len of
14761 display_info.
14762
14763 * xterm.c (x_get_char_font_and_encoding): Bug fix. Don't load
14764 fonts more than once.
14765
147661997-10-22 Gerd Moellmann <gerd@acm.org>
14767
14768 * xdisp.c (display_line): Handle most common case of current_x <
14769 last_visible_x separately.
14770
14771 * dispextern.h (display_element_type): DISP_ELLIPSIS removed.
14772
14773 * dispnew.c (update_window_line): Compare pixel widths of glyphs
14774 so that face extending space doesn't compare equal to normal space
14775 with same face.
14776
14777 * xdisp.c (display_line): Make sure we have a position for
14778 a line end in an otherwise blank line if face is extended.
14779
14780 * dispnew.c (direct_output_for_insert): Increment row end position.
14781
427ec082 14782 * window.c (Fpos_visible_in_window_p): Use old meaning of
26901792
DL
14783 window_end_pos.
14784
14785 * xdisp.c (init_display_cursor_from_glyph_pos): New.
14786
14787 * dispextern.h (MATRIX_ROW_FIRST_POS): Use row start.
14788
14789 * dispnew.c (increment_glyph_row_buffer_positions): Adjust
14790 start and end positions in rows.
14791 (increment_glyph_row_buffer_positions): Stop adjusting at
14792 glyphs with positions <= 0.
14793
14794 * dispextern.h (struct glyph_pos): Structure desribing a text
427ec082 14795 position including position in overlay.
26901792
DL
14796 (struct glyph_row): Use it for start and end positions.
14797 (struct display_cursor): Use it.
14798 * xdisp.c: Use it.
14799 (display_line): Set row start and end positions.
14800
14801 * dispnew.c (copy_row_except_pointers): Use bcopy and struct
14802 assignment.
14803
148041997-10-21 Gerd Moellmann <gerd@acm.org>
14805
14806 * dispnew.c (update_window): Add scrolling_window again. It's
14807 necessary for scroll_step != 0.
14808
14809 * xdisp.c (redisplay_window): Use vmotion for scroll_step
14810 scrolling.
14811
14812 * xdisp.c (last_unchanged_current_row): Use window_end_vpos.
14813
14814 * xterm.c (XTupdate_end): Flush only for messages.
14815
14816 * xdisp.c (try_window_id): Assert last_unchanged_row >=
14817 first_unchanged_row.
14818
14819 * xterm.c (XTupdate_end): Flush if miniwindow.
14820
14821 * dispnew.c (matrix_row_last_pos): New function.
14822 * dispextern.h (MATRIX_ROW_LAST_POS): Call it.
427ec082 14823 Large comment moved to xdisp.c.
26901792
DL
14824
14825 * xdisp.c (redisplay_window): Bug fix: PT set to value > Z.
14826 (skip_via_matrix): Check window_end_valid instead of
14827 display_completed.
14828
14829 * dispnew.c (scroll_glyph_matrix_range): Bug fix.
14830 (update_window): scrolling_window commented out. It has negative
14831 effect most of the time.
14832
14833 * xdisp.c (try_window_id): Correct parameters to
14834 scroll_glyph_matrix_range.
14835
427ec082 14836 * xterm.c (XTupdate_end): XFlush commented out.
26901792
DL
14837
14838 * window.h: Comments for window_end_pos/vpos.
14839
f28eba7b 14840 * xdisp.c (skip_to): Assert current_buffer is the buffer
26901792
DL
14841 of the window in which we are skipping.
14842
14843 * dispnew.c (update_window_line): Optimized clear_end_of_line.
14844
14845 * xterm.c (draw_glyphs): Bug fix. Return window relative X
14846 reached.
14847
148481997-10-20 Gerd Moellmann <gerd@acm.org>
14849
14850 * dispextern.h (MATRIX_ROW_LAST_POS): Go back one glyph if this is
14851 a face extending glyph.
14852
427ec082 14853 * xdisp.c (try_window_id): Check if point will appear.
26901792
DL
14854 (set_cursor_from_row): Set cursor position from a glyph row.
14855
14856 * dispnew.c (update_window_line): Write entire line if hash
14857 codes of lines differ.
14858
14859 * dispextern.h (MATRIX_ROW_EXTENDS_FACE_P): Value is non-zero
14860 if glyph row has an infinite width glyph at its end.
14861
14862 * xdisp.c (last_unchanged_current_row): Respect partially visible
14863 lines when looking for the last row displaying text.
14864 (try_window_id): Handle partially visible lines better.
14865
148661997-10-19 Gerd Moellmann <gerd@acm.org>
14867
14868 * dispnew.c (update_window): Remove unused variable.
14869 (update_window_line): Simplified.
14870
14871 * xterm.c (x_get_char_font_and_encoding): Handle most common
14872 case at the beginning.
14873
14874 * xdisp.c (advance_display_cursor): Dispatch on method and
14875 order if statements by expected call frequency. Fixed unclosed
14876 comment.
14877
14878 * xdisp.c (try_window_id): New implementation.
14879
14880 * dispnew.c (increment_glyph_row_buffer_positions): Capture
14881 rows displaying a line end, only.
14882
148831997-10-18 Gerd Moellmann <gerd@acm.org>
14884
14885 * window.c (Fpos_visible_in_window_p): Remove use of window_end_vpos.
14886
148871997-10-14 Gerd Moellmann <gerd@acm.org>
14888
14889 * xdisp.c (display_line): Mark empty lines not corresponding to
14890 text with position -1.
14891
14892 * xterm.c (x_erase_phys_cursor): Don't bother to erase cursor if
14893 not within window matrix bounds.
14894
14895 * dispextern.h (struct display_cursor): New member REGION_SHOWING_P.
14896 (struct display_info): NGLYPHS_TO_IGNORE removed.
14897 * xdisp.c: References to NGLYPHS_TO_IGNORE removed.
14898 * term.c: Ditto.
14899 * xterm.c: Ditto.
14900
14901 * xdisp.c (init_display_cursor): Set it.
14902 (display_line): Use it to set W->REGION_SHOWING.
14903
14904 * xdisp.c (skip_via_matrix): Check for overlay arrow.
14905
14906 * region-cache.h: functino prototypes with PROTO.
14907
14908 * dispnew.c (buffer_posn_from_coords): Use -1 as skip position.
14909
14910 * xdisp.c (skip_via_matrix): Check for rows that don't contain
14911 a position.
14912
427ec082 14913 * xterm.c (XTmouse_position): Calculate LAST_MOUSE_GLYPH
26901792
DL
14914 rectangle based on minimum character bounds.
14915
f28eba7b 14916 * keyboard.c (make_lispy_event): Mouse clicks; don't do frame
26901792
DL
14917 glyph position calculations.
14918 (make_lispy_movement): Use buffer_posn_from_coords and window
14919 relative coordinates.
14920
14921 * xterm.c (construct_mouse_click): Remove #if 0 case.
14922
14923 * dispextern.h (MATRIX_ROW_BOTTOM_Y): Return bottom pixel y of
14924 given row.
14925
427ec082
SS
14926 * xdisp.c (skip_via_matrix): Skip using current matrix if up to
14927 date.
26901792
DL
14928 (skip_to): Use it.
14929 (redisplay_window): Remove code skipping using current matrix.
14930
149311997-10-13 Gerd Moellmann <gerd@acm.org>
14932
14933 * xdisp.c (redisplay_window): Use available current matrix to
14934 skip faster when only point is moved withing the window.
14935
427ec082 14936 * intervals.c: Include stdio.h.
26901792
DL
14937 (find_interval): Trace to stderr to catch some nasty error
14938 that did not yet occur again with tracing.
14939 (set_point): Ditto.
14940
14941 * dispnew.c (shift_glyph_matrix): Experimental code for handling
14942 cursor positioning on partially visible lines.
14943 (set_window_cursor_after_update): Ditto.
14944
f28eba7b 14945 * dispextern.h (MATRIX_ROW_PARTIALLY_VISIBLE_P): Bug fix.
26901792
DL
14946
14947 * window.h (struct window): start_y removed.
14948
14949 * window.c (make_window): start_y removed.
14950 (replace_window): Ditto.
14951
427ec082 14952 * xdisp.c (last_max_ascent, last_max_descent): Ascent and
26901792
DL
14953 descent values of the last line processed by skip_to.
14954 (redisplay_window): Use them.
14955 (skip_to): Set them.
14956
14957 * dispextern.h (struct display_cursor): New member METHOD.
14958
14959 * xdisp.c: Use function member METHOD.
14960
14961 * xdisp.c (set_next_stop_pos): Determine next position at which to
14962 check for face properties, invisible text properties, and overlays.
14963 (compute_cursor_face): Use it.
14964 (get_overlays_for_cursor): Ditto.
14965 (reseat_cursor): Ditto.
14966 (next_display_element): Ditto.
14967
14968Sun Aug 24 08:50:52 1997 Gerd Moellmann <gerd@acm.org>
14969
14970 * termhooks.h: Some hooks with prototypes.
14971
14972 * term.c: Some hooks with function prototypes.
427ec082 14973
26901792
DL
14974 * xdisp.c (reseat_cursor): Additional argument force_p. Avoid
14975 computing face if possible.
14976
14977 * xdisp.c (next_display_element): Use face from glyph from display
14978 table only if != 0.
14979
14980 * emacs.c: FreeBSD headers for profiling removed.
14981
427ec082
SS
14982 * dispnew.c (direct_output_for_insert): Don't use PT-1 for
14983 display cursor, use DEC_POS instread.
26901792
DL
14984
14985 * xfaces.c (load_font): Use x_load_font to load fonts so that
427ec082 14986 all fonts are in the font table.
26901792
DL
14987 (unload_font): Don't XFreeFont.
14988
14989 * dispnew.c (row_equal_p): Compare ascent, descent and visible
14990 row height.
14991
14992 * xterm.c (draw_glyphs): Use 8-bit functions if possible.
14993 (x_erase_phys_cursor): Clear only visible part of row.
14994 (x_draw_bar_cursor): Set clipping.
14995 (x_draw_hollow_cursor): Ditto.
14996 (x_display_and_set_cursor): Remove clipping.
14997 (expose_window_tree): Take trunc border into account.
14998 (x_phys_cursor_in_rect_p): Test if phys_cursor intersects a rect.
14999 (expose_window): Use it.
15000
15001 * xdisp.c (display_string): Catch case that we are called with
d7d0dac0 15002 current_x already beyond max_x.
26901792
DL
15003 (global): Fix usage of FRAME_WINDOW_P <-> FRAME_WINDOW_REDISPLAY_P.
15004 (init_display_info): Subtract vertical border glyph from
d7d0dac0 15005 last_visible_x.
26901792
DL
15006
15007 * scroll.c (scrolling_window_1): Removed.
15008
15009 * dispnew.c (adjust_frame_glyphs): Split into two functions,
15010 based on redisplay method used.
15011 (adjust_frame_glyphs_for_frame_redisplay): Part for frame
15012 based redisplay.
15013 (adjust_frame_glyphs_for_window_redisplay): Part for purely
15014 window based redisplay.
15015
15016 * frame.h (FRAME_WINDOW_REDISPLAY_P): Changed to not depend
15017 on data structures.
15018
15019 * dispnew.c (adjust_glyph_matrix): Additional parameter W.
15020 Handle own storage for purely window based redisplay.
15021 (allocate_matrices_for_frame_redisplay): Formerly part of
427ec082 15022 allocate_matrices.
26901792
DL
15023 (allocate_matrices_for_window_redisplay): Ditto.
15024
15025 * dispextern.h (struct glyph_matrix): window_top_y,
15026 window_height.
15027
15028 * dispnew.c (allocate_matrices_for_window_redisplay): Detect
15029 and optimize some common cases of window changes.
15030
15031 * emacs.c (main): Remove own profiling code because 0.95 now
15032 has it in.
15033
15034Fri Aug 22 18:46:43 1997 Gerd Moellmann <gerd@acm.org>
15035
d7d0dac0 15036 * xterm.c (XTupdate_end): Draw horizontal border at right position.
26901792
DL
15037 (expose_window): Draw vertical border.
15038 (XTclear_end_of_line): Accept width <= 0 and height <= 0 but
15039 don't do anything.
15040
15041 * xdisp.c (redisplay_internal): Set update_mode_line if paused
15042 for non full width windows only if not window redisplay.
15043
15044 * dispnew.c (update_window_tree): Or paused_p return of called
15045 functions.
15046
15047 * xterm.c (x_display_and_set_cursor): Return if hpos/vpos outside
15048 of window.
15049
15050 * window.c (Fset_window_configuration): adjust_glyphs being
15051 called twice.
15052 (Fset_window_configuration): Set frame garbaged if not all
15053 leaf windows reused.
15054
150551997-08-21 Gerd Moellmann <gerd@acm.org>
15056
15057 * dispnew.c (clear_glyph_matrix): Additional argument specifiying
15058 that rows should really be cleared. Used for current matrices.
15059
d7d0dac0
SM
15060 * dispnew.c (scrolling_window): Bug fix.
15061 (line_dance_hook): Formerly line_dance_fn, take only one parameter.
26901792
DL
15062
15063 * dispextern.h (struct run): Remove current_vpos.
15064
15065 * xterm.c (do_line_dance): Only one parameter.
15066
f28eba7b 15067 * xdisp.c (display_line): Set continued_p.
26901792
DL
15068
15069 * dispextern.h (struct glyph_row): New flag continued_p.
15070 Fix truncated_on_left_p and truncated_on_right_p to be bits.
427ec082 15071 (struct glyph_row):
26901792
DL
15072
15073Thu Aug 21 14:37:34 1997 Gerd Moellmann <gerd@acm.org>
15074
15075 * xdisp.c (skip_vertically_backward): Avoid negative vpos values
15076 when calling skip_to for continued lines.
15077
15078 * dispnew.c (change_frame_size_1): Set frame garbaged.
15079
15080 * xterm.c (expose_window): Check enabled_p of rows.
15081
15082 * xdisp.c (redisplay_internal): Compare line heights before and
15083 now for redisplay optimization 2 (hit).
15084 (display_line): Set this_line_pixel_height.
15085
15086 * xterm.c (x_draw_row_borders): Use FRAME_MODE_LINE_HEIGHT height
15087 value.
15088 (x_clip_to_row): Use MATRIX_ROW_VISIBLE_HEIGHT. Simplified.
15089 (do_line_dance): Simplified and pixel corrected.
15090
15091 * dispnew.c (scrolling_window): Simplified.
15092
15093 * xterm.c (x_draw_3d_border): Inset rectangle by line width.
15094
15095 * dispnew.c (update_window): Add FRAME_MODE_LINE_BORDER_WIDTH
15096 to mode line row->x.
15097
15098Wed Aug 20 11:23:28 1997 Gerd Moellmann <gerd@acm.org>
15099
15100 * xterm.c (x_get_char_font_and_encoding): Don't let fontset
15101 override font of face.
15102 (draw_glyphs): Correct return value.
15103 (XTclear_end_of_line): Compare differently with output cursor
15104 position.
15105 (x_draw_hollow_cursor): 2 parameters, window and row.
15106
15107 * dispnew.c (update_window_line): If rows have different height
15108 or y, write entire line.
15109
f28eba7b 15110 * xdisp.c (compute_line_metrics): Reset max_ascent and max_descent
26901792
DL
15111 of info struct.
15112
427ec082 15113 * xfaces.c (Fset_face_attribute_internal): Don't call
26901792
DL
15114 frame_update_line_height.
15115 (merge_faces): Don't use default font if new font has different
15116 size.
15117
15118Tue Aug 19 14:38:05 1997 Gerd Moellmann <gerd@acm.org>
15119
15120 * xterm.c (x_display_and_set_cursor): Use FONT_WIDTH if width
d7d0dac0 15121 unknown. Some fonts have min_width zero.
26901792 15122 (draw_glyphs): Don't draw underlines to the end of the display
d7d0dac0 15123 line if face is merely extended to that point.
26901792 15124 (draw_glyphs): Don't assume background is filled if
d7d0dac0 15125 just_foreground_p but extending to end of line.
26901792
DL
15126
15127 * xterm.c (XTclear_end_of_line): Clip only to display_height - 1
15128 for partially visible last lines.
15129 (x_clip_to_row): Ditto.
15130 (x_clip_to_row): Clip to display_height-1 if y + line_height >
15131 display_height since line_height is really a line distance.
15132 (x_display_and_set_cursor): If cursor on padding glyph, use
15133 min_bounds pixel width.
15134
15135Mon Aug 18 09:39:18 1997 Gerd Moellmann <gerd@acm.org>
15136
15137 * xterm.c (x_clip_to_row): Height value was 1 too large.
15138 (XTclear_end_of_line): Clip to display area.
15139
15140 * xfns.c (x_figure_window_sizes): Add trunc border width
15141 to frame pixel width.
15142
15143 * xdisp.c (next_display_element): Don't display overlay strings
15144 within invisible text.
427ec082 15145 (skip_vertically_backward): Skip display lines.
26901792
DL
15146
15147Sat Aug 16 13:13:32 1997 Gerd Moellmann <gerd@acm.org>
15148
15149 * xdisp.c (x_consider_frame_titie): Don't pad with blanks.
15150
15151 * xdisp.c (next_display_element): Next invisible
15152 text check position computed differently.
15153
15154 * dispextern.h (struct display_cursor): last_invisible_text_pos
15155 and display_ellipsis_for_invisible_p removed.
15156
15157 * xdisp.c (next_display_element): Set last_invisible_text_pos
15158 to the last position at which invisible text was found. Don't
15159 decrement cursor.pos for newlines and cr with ellipsis. Set
427ec082 15160 dpvec for `...' due to invisible text directly.
26901792
DL
15161 (redisplay_internal): Don't assert that cursor is at PT after
15162 skip_to. It may be in invisible text.
15163
427ec082 15164 * keyboard.c (make_lispy_event): For mouse clicks, use
26901792
DL
15165 x_y_to_hpos_vpos.
15166
427ec082 15167 * xdisp.c (next_display_element): Call get_overlays_for_cursor when
26901792
DL
15168 next_overlay_pos is reached. Use limit cursor.pos + 100 when
15169 checking for invisible text.
15170
15171 * xterm.h (WINDOW_COL_PIXEL_X etc.) Removed.
15172
15173 * dispextern.h (WINDOW_TO_FRAME_HPOS/VPOS): Moved to dispnew.c
15174
d7d0dac0 15175 * xfns.c (x_contour_region): Use pixel coordinates from window
26901792
DL
15176 cursor instead of WINDOW_TO_FRAME_H/VPOS.
15177
15178 * dispextern.h (FRAME_TO_WINDOW_HPOS, FRAME_TO_WINDOW_VPOS):
15179 Removed.
15180
15181 * dispnew.c (frame_to_window_hpos, frame_to_window_vpos): Removed.
15182
15183 * xterm.c (x_y_to_hpos_vpos): Get hpos/vpos from window relative
15184 pixel coordinates.
15185 (note_mouse_highlight): Use it.
15186
15187 * xdisp.c (echo_area_display): Ignore calls for terminal frames
15188 under a window system.
15189
427ec082 15190 * dispnew.c (adjust_frame_glyphs): Call redraw_frame if
26901792 15191 necessary.
427ec082 15192 (update_window_line): Add width of face padding glyph to
26901792
DL
15193 displayed widths of rows.
15194
15195 * xterm.c (x_display_and_set_cursor): Set clipping after
15196 erasing cursor.
427ec082
SS
15197
15198 * window.c (Fset_window_configuration): Free only those
26901792
DL
15199 window matrices not reused.
15200 (get_leaf_windows): Build vector of leaf windows.
15201 Corrupted archive restored from v77.
15202
f28eba7b 15203 * xdisp.c (display_string): Stop at >= last_visible_x if truncating
26901792
DL
15204 like display_line does.
15205
15206 * xdisp.c (display_mode_line): Don't hscroll mode line.
15207
15208 * xterm.c (draw_glyphs): Wrong run_width computed for horiz. split
15209 windows.
15210 (x_scroll_bar_create): #3039 Clear area below scroll bar to remove
15211 garbage between mode lines when splitting windows horiz.
15212
15213 * dispnew.c (direct_output_for_insert): Bug fix.
15214
15215 * dispextern.h (struct display_cursor): New member string_length.
15216
15217 * xdisp.c (next_display_element): Return padding spaces.
f28eba7b 15218 (init_string_cursor): Take precision and field_width
26901792
DL
15219 (display_string): Use string cursor, skip over invisible text.
15220
15221Thu Aug 14 10:41:41 1997 Gerd Moellmann <gerd@acm.org>
15222
15223 * xterm.c (x_clip_to_row): Clip to partially visible lines.
15224 (x_display_and_set_cursor): Call it.
15225 (draw_glyphs): Call it
15226 (draw_bitmap): Call it.
15227
427ec082 15228 * dispnew.c (adjust_frame_glyphs): Optimize frame garbaging.
26901792
DL
15229 (allocate_leaf_matrix): Return flags.
15230 (row_equal_p): Compare enabled_p.
15231
15232 * xterm.c (x_erase_phys_cursor): Set phys_cursor_on_p to 0
15233 for type == -1.
15234
15235 * xterm.c (x_display_and_set_cursor): Bar cursor 1 pixel taller.
427ec082 15236 (draw_glyphs): Clip height one pixel taller.
26901792 15237
427ec082 15238 * dispnew.c (direct_output_for_insert): Give up for hscrolled
26901792
DL
15239 mini window.
15240
f28eba7b 15241 * xdisp.c (display_line): Don't scroll mini prompt.
26901792 15242
427ec082
SS
15243 * xdisp.c (echo_area_display): Call update_single_window if
15244 possible.
26901792
DL
15245
15246 * dispnew.c (update_window_line): Call scrolling_window.
f28eba7b 15247 (scrolling_window): Work on enabled desired lines only.
26901792
DL
15248 (update_single_window): Update a single window like update_frame
15249 does for all windows.
427ec082 15250 (update_window, update_window_tree): Additional argument
26901792
DL
15251 no_scrolling_p.
15252 (update_frame): Pass no_scrolling_p to update_window_tree.
15253 (update_window): Don't call scrolling_window if no_scrolling_p.
15254
15255 * xterm.c (x_erase_phys_cursor): Do nothing if type == -1.
427ec082
SS
15256 Erase under hollow cursor.
15257 (x_display_and_set_cursor): Do nothing if cursor glyph row
26901792
DL
15258 not enabled. Draw bar cursor 1 pixel smaller.
15259
f28eba7b 15260 * dispnew.c (adjust_frame_glyphs): Don't set frame garbaged
26901792
DL
15261 since update will follow soon.
15262
15263 * xdisp.c (echo_area_display): Unitialized variable.
15264
f28eba7b 15265 * xterm.c (draw_bitmap): Previously draw_truncation; draw
26901792
DL
15266 overlay arrow bitmap.
15267
f28eba7b 15268 * xdisp.c (display_line): For truncated lines, consider everything
427ec082 15269 up to the final \n as part of the line for cursor positioning.
26901792 15270
f28eba7b
SM
15271 * xterm.c (draw_truncation): Take FRAME_X_TRUNC_WIDTH into account.
15272 (x_after_update_window_line): Clear trunc marks.
26901792
DL
15273
15274 * xterm.h (FRAME_X_TRUNC_WIDTH).
15275
f28eba7b 15276 * frame.h (FRAME_TRUNC_WIDTH): Width of area at the left margin
26901792
DL
15277 of a window reserved for truncation mark.
15278
427ec082 15279 * dispextern.h: Take FRAME_TRUNC_WIDTH into account.
26901792
DL
15280
15281 * dispnew.c (update_window_line): Call after_update_windwo_line-
427ec082 15282 hook.
26901792
DL
15283
15284 * xdisp.c (display_line): Set overlay_arrow_p in row.
15285
15286 * dispextern.h (struct glyph_row): New flag overlay_arrow_p.
15287
15288 * xterm.c (x_after_update_window_line): Draw truncation marks.
15289
15290 * xdisp.c (display_line): Insert truncation for lines with
15291 current_x > 0.
15292
15293 * xterm.c (x_draw_row_borders): Convert y to frame coords.
15294 Correct y by 1.
15295 (x_display_cursor): Use default font width if width not
427ec082 15296 known.
26901792 15297
f28eba7b 15298 * xdisp.c (echo_area_display): Set row->y.
26901792
DL
15299
15300 * dispnew.c (set_window_cursor_after_update): Don't assume
15301 all rows are enabled.
15302
15303 * xdisp.c (skip_in_display_line_to): Test cursor.position instead
15304 of cursor.pos.
15305 (skip_in_display_line_to): Check cursor.position after call to
15306 next_display_element.
15307
427ec082 15308 * dispextern.h (CURSOR_AT_P): Test if cursor has reached
26901792
DL
15309 buffer position.
15310
15311 * xdisp.c (display_line): Set row->y here.
15312 (skip_in_display_line_to): Test for to_pos after all glyphs
15313 have been added to hpos so that hpos is at the end of all
15314 glyphs for to_pos.
15315 (start_display): Remove assertion.
15316
d7d0dac0 15317 * dispnew.c (direct_output_forward_char): Bug fix, = instead of ==.
26901792
DL
15318 (update_window): Don't set row->y here.
15319
15320 * xdisp.c (next_display_element): Don't translate control chars
15321 from display table entries.
15322
427ec082 15323 * dispnew.c (direct_output_for_insert): Set cursor before
26901792
DL
15324 update end to prevent cursor flickering. Revert changes to
15325 setting cursor.endpos.
15326
15327Wed Aug 13 10:46:12 1997 Gerd Moellmann <gerd@acm.org>
15328
15329 * dispnew.c (direct_output_for_insert): Don't set cursor.endpos
15330 to PT because this prevents multi-byte characters from being
15331 recognized.
15332
427ec082
SS
15333 * xdisp.c (skip_to, display_line): Advance cursor at end of
15334 truncated line.
26901792
DL
15335
15336 * xterm.c (x_draw_3d_borders): Use CapRound. Struct rect
15337 replaced by XRectangle.
15338
d7d0dac0 15339 * dispnew.c (scrolling_window): New method.
26901792
DL
15340
15341 * xterm.c (do_line_dance): New implementation, new method.
427ec082 15342
26901792
DL
15343 * xdisp.c (draw_glyphs): Draw truncation bitmaps. Clip to
15344 visible part of line.
15345
15346 * dispnew.c (update_window_line): Fill inverse video lines
15347 with infinite width space.
15348 (update_window): Handle completely empty matrices.
15349 (set_window_cursor_after_update): Bug fix.
15350
427ec082 15351 * xterm.c (draw_glyphs): Stop drawing at right window end.
26901792
DL
15352
15353 * dispnew.c (update_window_line): Don't ignore spaces, don't
15354 fill with spaces.
15355
15356 * xdisp.c (compute_line_metrics): Stop adding glyph widths with
15357 the first glyph having width 0.
15358
15359 * xterm.c (draw_glyphs): Let a glyph pixel with of 0 denote
427ec082 15360 a glyph that extends to the end of the line.
26901792
DL
15361
15362 * xdisp.c (display_line): Insert one padding glyph
15363
15364 * xdisp.c (skip_in_display_line_to): Don't subtract shift left
15365 amount from info.current_x.
15366 (display_line): Ditto.
15367
15368 * dispnew.c (direct_output_for_insert): Correct use of cursor.x.
15369 (change_frame_size_1): Correct cursor.x if frame gets too small.
15370 (update_window_line): Start at row->x.
15371
15372 * xdisp.c (redisplay_internal): Correct cursor.x (everwhere
15373 in xdisp.c).
15374
15375 * xterm.c (set_output_cursor): Use window relative X/Y.
15376 (global): Use window relative output cursor x/y.
15377 (draw_glyphs): Remove y param. Pass window relative x/y.
15378
15379 * dispnew.c (update_window): Start rows at start_y.
15380 (update_window): Don't try scrolling because it wouldn't work
15381 with variable height lines, anyway.
15382
15383 * dispextern.h (struct glyph_row): Remove shift_left_by,
15384 add x.
15385
15386 * window.h: (struct window): New member start_y.
15387
15388 * window.c (replace_window): Initialize start_y.
15389 (make_window): Ditto.
15390
15391Tue Aug 12 14:53:04 1997 Gerd Moellmann <gerd@acm.org>
15392
15393 * xterm.c (draw_glyphs): Clip rows that would paint over
427ec082 15394 the mode line.
26901792 15395
427ec082
SS
15396 * dispnew.c (update_window): Take mode line border into
15397 account.
26901792
DL
15398
15399 * xterm.h (FRAME_MODE_LINE_BORDER_WIDTH): Number of pixels
427ec082 15400 of border around mode line.
26901792
DL
15401
15402 * xterm.c (x_draw_row_borders): Bug fix.
15403 (x_erase_phys_cursor): Set pyhs_cursor.x/y before calling
15404 drawing functions.
15405
15406 * xterm.c (x_draw_row_border): Experimental; draw 3d borders
427ec082 15407 around modeline instead of inverting it.
26901792 15408
427ec082 15409 * xterm.c (glyph_to_pixel_coords): Use current matrix.
26901792
DL
15410
15411 * dispnew.c (buffer_posn_from_coords): Use SKIP_TO. Now takes
15412 window relative pixel coordinates as arguments.
15413
15414 * keyboard.c (make_lispy_event): Use BUFFER_POSN_FROM_COORDS
15415 with window relative pixel coordinates. Use GLYPH_TO_PIXEL_-
15416 COORDS mit new arguments.
15417
15418Mon Aug 11 12:32:34 1997 Gerd Moellmann <gerd@acm.org>
15419
15420 * xdisp.c (start_display): Use SKIP_TO instead of SKIP_IN-
427ec082 15421 DISPLAY_LINE.
26901792
DL
15422
15423 * keyboard.c (make_lispy_event): WINDOW_FROM_COORDINATES with
15424 pixel coords.
15425 (make_lispy_movement): Same.
15426
15427 * xterm.c (note_mouse_highlight): Use WINDOW_FROM_COORDINATES
15428 with new parameter meaning.
15429
15430 * window.c (Fcoordinates_in_window_p): Convert Lisp params
15431 from canon units to pixels.
15432 (coordinates_in_window): Pixel based.
15433 (Fcoordinates_in_window_p): Convert result pixel values back
15434 to canonical units.
15435
15436 * window.h: phys_cursor_ascent + descent instead of height.
15437
15438 * xterm.c (XTget_char_info): Use per char metrics for multi-byte
d7d0dac0 15439 chars with charset width 1.
26901792
DL
15440
15441 * dispnew.c (direct_output_for_insert): Set updated_row.
15442
15443Sat Aug 9 12:11:44 1997 Gerd Moellmann <gerd@acm.org>
15444
15445 * dispextern.h (struct glyph): Padding flag removed.
15446
15447Tue Aug 5 09:59:08 1997 Gerd Moellmann <gerd@acm.org>
15448
15449 * sysdep.c (reset_sys_modes): cursor_to with 4 params.
15450
15451 * keyboard.c (interrupt_signal): Cursor_to with 4 params.
15452
15453 * dispnew.c (update_window_line): Use pixels.
15454
15455 * xdisp.c (compute_line_metrics): Correct pixel_width by
15456 shift_left_by.
15457
15458 * dispextern.h (struct glyph_row): FIRST_SHIFTED_LEFT_GLYPH
427ec082 15459 removed. Remove references to it everywhere. Reverse_p in
26901792
DL
15460 glyph_row -> right_to_left_p. Change references to it.
15461
15462Mon Aug 4 18:09:27 1997 Gerd Moellmann <gerd@acm.org>
15463
15464 * dispnew.c (direct_output_for_insert): Use INSERT_GLYPHS.
15465
15466 * xterm.c (XTinsert_glyphs): Implement it.
15467
15468 * term.c (insert_glyphs): UPDATING_FRAME may be NULL in case
15469 of a call from DIRECT_OUTPUT_FOR_INSERT.
15470
15471 * window.h (struct cursor_pos): Keeps both matrix positions
15472 and pixel positions.
15473 (struct window): Use it.
15474
15475 * dispnew.c (direct_output_for_insert): New version.
15476
15477 * xdisp.c (redisplay_internal): Don't do anything if it has
15478 already be done directly.
15479
15480 * keyboard.c (command_loop_1): Call DIRECT_OUTPUT_FOR_INSERT
15481 for any character.
15482
15483Thu Jul 31 15:39:10 1997 Gerd Moellmann <gerd@acm.org>
15484
15485 * xdisp.c (echo_area_display): Use new DISPLAY_STRING.
15486
15487Wed Jul 30 12:18:03 1997 Gerd Moellmann <gerd@acm.org>
15488
15489 * dispextern.h (struct glyph_row): MAX_ASCENT, MAX_DESCENT.
15490 (struct glyph): ASCENT, DESCENT.
15491 (MATRIX_ROW_PIXEL_HEIGHT): Pixel height of row.
15492 (GLYPH_PIXEL_HEIGHT): Pixel height of glyph.
15493
15494 * xterm.c (XTget_display_info): Correct tab computation.
15495
15496 * term.c (get_display_info): Correct tab computation.
15497
15498 * dispextern.h (struct display_cursor): WHAT_FOUND, SOURCE_OBJECT.
15499 Renamed from CHAR_CURSOR.
15500
15501Tue Jul 29 12:52:40 1997 Gerd Moellmann <gerd@acm.org>
15502
15503 * xdisp.c (display_text_line): Mostly pixel oriented.
15504
15505 * dispextern.h (struct glyph): BOX_WIDTH -> PIXEL_WIDTH.
15506
15507 * term.c (append_intermediate_glyph): Generate padding glyphs.
15508
15509 * xdisp.c (display_text_line): More into final direction.
15510
15511 * xterm.c (XTget_char_info): Use WHAT field of CHAR_INFO.
15512 (XTget_char_info): Use tabs as multiples of spaces.
15513
15514 * term.c (get_char_info): Use WHAT field of CHAR_INFO.
15515 Use tabs as multiples of spaces.
15516
15517 * dispextern.h (struct char_info ): WHAT field.
15518
15519 * term.c (encode_terminal_code): Don't use GLYPH_CHAR, use
d7d0dac0 15520 FAST_GLYPH_CHAR instead because GLYPH_CHAR won't remove faces.
26901792
DL
15521
15522Mon Jul 28 14:23:06 1997 Gerd Moellmann <gerd@acm.org>
15523
15524 * dispnew.c (init_char_info): Correct TAB_WIDTH to a reasonable
15525 value.
15526 (init_char_info): Initialize with glyph row.
15527
15528 * term.c (get_char_info): Check WANT_ELLIPSIS_P.
15529
15530 * xterm.c (XTget_char_info): Check WANT_ELLIPSIS_P.
15531
15532 * dispextern.h (struct char_info ): GLYPH_ROW for intermediate
15533 glyphs.
15534
15535 * dispnew.c (init_char_info): Init GLYPH_ROW to NULL. CHAR_CURSOR
15536 moved to xdisp.c.
15537
15538 * xdisp.c (display_text_line): Use CHAR_CURSOR.
15539
15540 * xterm.c (x_append_intermediate_glyph): Intermediate glyph
15541 generation.
15542 (XTget_char_info): Ditto.
15543
15544 * term.c (get_char_info): Intermediate glyph generation.
15545 (append_intermediate_glyph): Ditto.
15546
15547Sun Jul 27 18:57:24 1997 Gerd Moellmann <gerd@acm.org>
15548
427ec082 15549 * dispnew.c (compute_char_cursor_face): Compute the face for a
26901792
DL
15550 CHAR_CURSOR.
15551 (init_char_cursor): Initialize a CHAR_CURSOR.
15552 (get_char_and_advance): Get next character to display.
15553
15554 * dispextern.h (struct char_cursor): Cursor for iterating over
15555 display text of CURRENT_BUFFER.
15556
15557Sat Jul 26 13:33:03 1997 Gerd Moellmann <gerd@acm.org>
15558
15559 * term.c (get_char_info): Set MAX_PIXEL_WIDTH in CHAR_INFO.
15560
15561 * dispextern.h (struct char_info ): Use LISP_CHAR_TABLE for DP.
15562 New member MAX_PIXEL_HEIGHT.
15563
15564 * xterm.c (x_per_char_metric): Get per character metrics.
15565 (XTget_char_info): More cases covered.
15566
15567 * term.c (get_char_and_info): Get next character and character
15568 display information.
15569 (get_char_info): Get character display information.
15570
15571 * dispextern.h: Character display information.
15572
427ec082 15573 * xterm.c (x_get_char_font_and_encoding): Get font and
26901792
DL
15574 encode character.
15575 (XTget_char_info): Get display information about a character.
15576
15577Wed Jul 23 16:50:18 1997 Gerd Moellmann <gerd@acm.org>
15578
15579 * dispextern.h (WINDOW_DISPLAY_MODE_LINE_HEIGHT): Height is
15580 zero if window is mini-window.
15581
15582 * xdisp.c: Include xterm.h or w32term.h for FRAME_LINE_HEIGHT.
15583 (try_window): DISPLAY_TEXT_LINE as long as Y < DISPLAY_HEIGHT.
15584
427ec082 15585 * dispnew.c (assign_row): Assign row pixel height.
26901792
DL
15586 (clear_glyph_row): Clear pixel height.
15587 (update_window): Use PIXEL_HEIGHT.
15588
15589 * xdisp.c (display_string): Set row pixel height temporarily.
15590 (display_text_line): Ditto.
15591
427ec082 15592 * dispextern.h (GLYPH_PIXEL_WIDTH):
26901792
DL
15593 (GLYPH_PIXEL_HEIGHT): Get glyph pixel dimension.
15594
427ec082 15595 * frame.h (FRAME_DEFAULT_PIXEL_LINE_HEIGHT): Get height of
26901792
DL
15596 line in default font.
15597 (FRAME_DEFAULT_GLYPH_PIXEL_WIDTH): Get width of character
15598 in default font.
15599 (FRAME_MODE_LINE_PIXEL_HEIGHT): Get height of mode line.
15600
15601 * xterm.h (FRAME_MODE_LINE_HEIGHT): Return height of mode line
15602 in pixels.
15603
15604 * dispnew.c (allocate_leaf_matrix): Use window pixel macros.
15605
15606 * dispextern.h (WINDOW_DISPLAY_PIXEL_WIDTH):
427ec082
SS
15607 (WINDOW_DISPLAY_PIXEL_HEIGHT):
15608 (WINDOW_DISPLAY_MODE_LINE_HEIGHT):
15609 (WINDOW_DISPLAY_PIXEL_HEIGHT_WITHOUT_MODE_LINE):
15610 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X):
15611 (WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X):
15612 (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y):
26901792
DL
15613 (WINDOW_DISPLAY_BOTTOM_EDGE_PIXEL_Y): Macros to get various
15614 pixel values related to windows.
15615
15616Mon Jul 21 12:22:02 1997 Gerd Moellmann <gerd@acm.org>
15617
15618 * xterm.c (XTflash): Flash last line of frame.
15619
15620 * dispextern.h (cursor_in_echo_area): Extern declaration.
15621
15622 * xterm.c (dumpglyphs): 8-bit version to test if my Xserver
d7d0dac0 15623 freezes stem from 16-bit functions.
26901792
DL
15624
15625 * xterm.c (x_display_and_set_cursor): Don't display hollow
15626 cursor in mini windows.
15627
15628 * window.c (replace_window): Initialize PHYS_CURSOR_TYPE.
15629 (make_window): Ditto.
15630
15631 * xterm.c (x_erase_phys_cursor): Erase cursor image.
15632 (x_display_and_set_cursor): Merged version of X_DISPLAY_BOX_CURSOR
15633 and X_DISPLAY_BAR_CURSOR.
15634 (x_display_cursor): Use it.
15635 (x_update_window_cursor): Use it.
15636
15637 * xdisp.c (display_text_line): Set cursor for window even if not
d7d0dac0 15638 selected.
26901792
DL
15639
15640 * xterm.c (x_display_bar_cursor): Use HPOS and VPOS instead
15641 of X and Y to denote matrix positions.
15642 (x_display_cursor): Ditto.
15643
15644 * dispnew.c (scrolling_window): Scrolling for windows.
15645
15646Wed Jul 16 13:37:51 1997 Gerd Moellmann <gerd@acm.org>
15647
15648 * dispnew.c (build_frame_matrix): Work on windows with update
15649 flag set.
15650 (build_frame_matrix_from_window_tree): Ditto.
15651 (build_frame_matrix_from_leaf_window): Ditto.
15652
15653 * xdisp.c (echo_area_display): Set MUST_BE_UPDATED_P instead of
15654 building frame matrix.
427ec082 15655 (redisplay_internal): Set window update flags instead of
26901792
DL
15656 building frame matrix.
15657
15658 * minibuf.c (read_minibuf): Set MUST_BE_UPDATED_P instead of
15659 building frame matrix.
15660
15661 * window.c (make_window): Initialize new members.
15662 (replace_window): Ditto.
15663
15664 * xfns.c (Fx_create_frame): Don't set PHYS_CURSOR_X to -1.
15665 I don't believe this is really necessary.
15666
15667 * dispnew.c (build_frame_matrix_from_leaf_window): Determine
427ec082 15668 border glyph once.
26901792
DL
15669
15670Tue Jul 15 13:58:33 1997 Gerd Moellmann <gerd@acm.org>
15671
427ec082 15672 * window.c (mark_window_cursors_off): Mark all cursors in
26901792
DL
15673 window tree off.
15674
427ec082 15675 * xterm.c (x_display_box_cursor): Window paraemter. Use
26901792
DL
15676 window matrix.
15677 (glyph_to_pixel_pos): Convert matrix pos -> pixels.
15678 (pixel_to_glyph_pos): Convert pixel pos -> matrix pos.
15679 (x_update_cursor): Work on windows.
15680 (x_display_bar_cursor): Ditto.
15681 (x_draw_single_glyph): Ditto.
15682
15683 * xterm.h: Prototype for X_DISPLAY_CURSOR.
15684
15685 * xterm.c (XTcursor_to): Void return type. Test for
d7d0dac0 15686 UPDATED_WINDOW. Call x_display_cursor with window.
26901792 15687 (x_display_cursor): Void return type. Window instead of frame
d7d0dac0 15688 parameter.
26901792 15689
d7d0dac0 15690 * window.h (WINDOW_RIGHTMOST_P, WINDOW_TOPMOST_P): Use functions below.
26901792
DL
15691
15692 * window.c (window_rightmost_p, window_topmost_p): Based on
15693 window tree.
15694
15695 * dispnew.c (adjust_frame_message_buffer): Allocate with
d7d0dac0 15696 FRAME_MESSAGE_BUF_SIZE.
26901792
DL
15697
15698 * window.h: PHYS_CURSOR_.* added.
15699
15700 * frame.h (struct frame): Cursor information removed.
15701
15702 * frame.h (FRAME_SCROLL_BAR_WIDTH): Removed because unused.
15703 (FRAME_WINDOW_WIDTH_ARG): Don't add scroll bar width.
15704
15705 * window.h (WINDOW_LEFT_MARGIN): Remove FRAME_LEFT_SCROLL_BAR.
15706
15707 * window.c (window_internal_width): Scroll bars no longer
15708 part of window.
15709
d7d0dac0 15710 * xterm.c (XTclear_end_of_line): FRAME_LEFT_SCROLL_BAR_WIDTH removed.
26901792 15711
d7d0dac0 15712 * xfns.c (x_set_scroll_bar_width): FRAME_LEFT_SCROLL_BAR_WIDTH removed.
26901792
DL
15713
15714 * xdisp.c (echo_area_display): FRAME_LEFT_SCROLL_BAR_WIDTH removed.
15715 (redisplay_internal): Ditto.
15716 (redisplay_window): Ditto.
15717 (redisplay_window): Ditto.
15718 (display_text_line): Ditto.
15719 (display_mode_line): Ditto.
15720
15721 * minibuf.c (read_minibuf): FRAME_LEFT_SCROLL_BAR_WIDTH removed.
15722
15723 * dispnew.c (set_cursor_to): FRAME_LEFT_SCROLL_BAR_WIDTH removed.
15724 (direct_output_for_insert): Ditto.
15725 (direct_output_forward_char): Ditto.
15726 (update_frame_1): Ditto.
15727
15728Mon Jul 14 12:30:03 1997 Gerd Moellmann <gerd@acm.org>
15729
15730 * dispnew.c (updated_window): Set by UPDATE_WINDOW to the window
d7d0dac0 15731 being updated.
26901792
DL
15732 (update_window): Set and clear it.
15733
15734 * dispnew.c (update_window_line, update_window, scrolling_window):
15735 First versions.
15736
15737 * dispnew.c (build_frame_matrix_from_leaf_window): Add vertical
15738 bar for window borders.
15739 (fill_up_glyph_row_area_with_spaces): Fill an area of a row
15740 with spaces.
15741 (fill_up_glyph_row_with_spaces): Call above function.
15742
15743 * xdisp.c (display_text_line): Don't add vertical bar for
15744 window borders.
15745 (display_string): Ditto.
15746
15747 * window.c (make_window): Init CURSOR_VPOS/HPOS.
15748 (replace_window): Ditto.
15749
15750 * xterm.c (XTwrite_glyphs): Use selected window cursor position.
15751
15752 * xfns.c (Fx_contour_region): Use selected window cursor position.
15753 (Fx_uncontour_region): Ditto.
15754 (Fx_select_region): Ditto.
15755
15756 * frame.c (make_frame): Remove CURSOR_X/Y.
15757
15758 * xdisp.c (redisplay_internal): Use window cursor position.
15759
15760 * dispnew.c (update_frame_1): Use cursor position of selected
15761 window.
15762 (change_frame_size_1): Ditto.
15763
15764 * xterm.c (XTupdate_begin): Set CURS_X/Y from selected window.
15765 (XTwrite_glyphs): Use cursor position of selected window.
15766
d7d0dac0 15767 * xfns.c (x_set_scroll_bar_width): Set cursor pos of selected window.
26901792
DL
15768
15769 * dispnew.c (set_cursor_to): Set window cursor position.
15770 (direct_output_for_insert): Use window cursor position.
15771 (init_display): Don't use frame cursor position.
15772
15773 * window.h: CURSOR_VPOS/HPOS added.
15774
15775 * frame.h (struct frame): CURSOR_X/Y removed.
15776 (FRAME_CURSOR_X): Removed.
15777 (FRAME_CURSOR_Y): Ditto.
15778
15779 * dispnew.c (direct_output_for_insert): LAST_POINT_X removed.
15780 (direct_output_forward_char): Ditto.
15781
d7d0dac0 15782 * xdisp.c (redisplay_internal): LAST_POINT_X and LAST_POINT_Y removed.
26901792
DL
15783
15784 * window.c (make_window): LAST_POINT_X and LAST_POINT_Y removed.
15785
15786 * window.h: LAST_POINT_X and LAST_POINT_Y removed.
15787
15788Sun Jul 13 14:18:24 1997 Gerd Moellmann <gerd@acm.org>
15789
15790 * xdisp.c: Bug fixes using SET_CURSOR with HPOS 0 instead
15791 of FRAME_LEFT_SCROLL_BAR_WIDTH.
15792
15793 * dispextern.h: Changed function names.
15794
15795 * dispnew.c (scrolling): Don't call SCROLLING_1 if WINDOW_SIZE
15796 < 2.
15797 (clear_window_matrices): Formerly two functions for desired
15798 and current matrix.
15799 (update_frame_1): Call CLEAR_DESIRED_MATRICES.
15800 (update_frame): Return return value from UPDATE_FRAME_1.
15801
15802Sat Jul 12 12:58:48 1997 Gerd Moellmann <gerd@acm.org>
15803
15804 * xdisp.c (try_window): Set WINDOW_END_VPOS with window relative
15805 LAST_TEXT_VPOS.
15806
15807 * frame.c (set_menu_bar_lines): Adjust matrices.
15808
15809 * dispnew.c (set_cursor_to): Set cursor position.
15810
15811 * minibuf.c (read_minibuf): Build frame matrix.
15812
15813 * xdisp.c (this_line_start_hpos): Renamed to
d7d0dac0
SM
15814 THIS_LINE_START_WINDOW_HPOS to make it clear that this is window
15815 relative.
26901792
DL
15816 (this_line_vpos): Renamed to THIS_LINE_WINDOW_VPOS for the same
15817 reason.
15818
427ec082 15819 * dispnew.c (build_frame_matrix): Don't clear rows of the
26901792
DL
15820 menu bar.
15821 (clear_window_records): Clear window rows.
15822 (clear_frame_records): Clear window and frame rows.
15823 (clear_glyph_matrix): Set all rows of a matrix to empty.
15824
d7d0dac0
SM
15825 * xdisp.c (echo_area_display): Parameter UPDATE_FRAME_P.
15826 Update frame if set.
26901792
DL
15827 (message2_nolog): Pass 1 to ECHO_AREA_DISPLAY. UPDATE_FRAME
15828 removed.
15829 (redisplay_internal): Pass 0 to ECHO_AREA_DISPLAY.
15830 (redisplay_internal): Build frame matrix before UPDATE_FRAME.
15831
15832 * dispnew.c (assign_row): Assign one glyph row to another.
15833 (mirrored_make_current): Use it.
15834 (mirror_make_current): Use it.
15835 (update_line): Rely on MIRRORED_MAKE_CURRENT to set flags and
15836 used counters for the current glyph row.
427ec082 15837
26901792
DL
15838
15839Fri Jul 11 13:16:50 1997 Gerd Moellmann <gerd@acm.org>
15840
15841 * lisp.h: Prototype for SCAN_BUFFER.
15842
15843 * xdisp.c (redisplay_windows): Simplified.
15844
15845 * dispnew.c (window_to_frame_vpos): Convert window to frame vpos
15846 with debug checks.
15847 (window_to_frame_hpos): Convert window to frame hpos with checks.
15848 (frame_to_window_vpos): Convert frame to window vpos with checks.
15849 (frame_to_window_hpos): Convert frame to window hpos with checks.
15850
15851 * dispextern.h: PRESERVE_OTHER_COLUMNS removed.
15852
15853 * dispnew.c: PRESERVE_OTHER_COLUMNS removed.
15854
15855 * xdisp.c (redisplay_internal): Another instance of
15856 DISPLAY_TEXT_LINE with window relative VPOS.
15857 (redisplay_internal): Remove PRESERVE_OTHER_COLUMNS.
15858
15859 * dispnew.c (init_desired_glyphs): Do it on window matrices,
15860 only.
15861
15862 * xdisp.c (try_window_id): Use CANCEL_WINDOW_LINE.
15863 (redisplay_internal): Ditto.
15864
15865 * dispnew.c (cancel_window_line): Use window matrix. Changed
15866 name to CANCEL_WINDOW_LINE.
15867
15868 * xdisp.c (try_window_id): Use DISPLAY_TEXT_LINE with window
15869 relative VPOS.
15870
427ec082
SS
15871 * dispextern.h (WINDOW_TO_FRAME_VPOS): Convert window vpos
15872 to frame vpos.
26901792
DL
15873 (WINDOW_TO_FRAME_HPOS): Convert window hpos to frame hpos.
15874 (FRAME_TO_WINDOW_VPOS): Convert frame vpos to window vpos.
15875 (FRAME_TO_WINDOW_HPOS): Convert frame hpos to window hpos.
15876
15877 * xdisp.c (try_window_id): Use ADJUST_WINDOW_CHARSTARTS with
15878 window relative VPOS.
15879 (redisplay_internal): Use ADJUST_WINDOW_CHARSTARTS with window
15880 relative VPOS.
15881
15882 * dispnew.c (adjust_window_charstarts): Use INCREMENT_GLYPH_-
15883 MATRIX_BUFFER_POSITIONS.
15884
15885 * xdisp.c (try_window_id): Use SCROLL_FULL_WIDTH_WINDOW.
15886
15887 * dispextern.h: Prototype for SCROLL_FULL_WIDTH_WINDOW.
15888
427ec082 15889 * dispnew.c (scroll_frame_lines): Make it work on window
26901792
DL
15890 matrix. Change name to scroll_full_width_window.
15891
15892 * xdisp.c (message2_nolog): Don't fwrite NULL message If
d7d0dac0 15893 NONINTERACTIVE.
26901792
DL
15894
15895Mon Jul 7 14:44:38 1997 Gerd Moellmann <gerd@acm.org>
15896
15897 * dispnew.c (init_desired_glyphs): Clear both frame matrix
427ec082 15898 and window matrices.
26901792
DL
15899 (adjust_window_charstarts): Use window matrix.
15900 (cancel_my_columns): Use window matrix.
15901 (direct_output_for_insert): Use window matrix, only.
15902
15903 * xdisp.c (display_glyphs): Extracted code from DISPLAY_STRING.
15904 (display_string): Call display_glyphs.
15905 (display_menu_bar_string): Display a string in a menu bar line.
15906 (display_menu_bar): Use DISPLAY_MENU_BAR_STRING.
15907 (display_text_line): Use window matrix.
15908 (try_window): Use window relative positions.
15909
15910Sun Jul 6 17:02:26 1997 Gerd Moellmann <gerd@acm.org>
15911
15912 * dispnew.c (adjust_frame_glyphs): Allocate window matrices from
d7d0dac0 15913 (0, 0).
26901792 15914 (allocate_leaf_matrix): Add FRAME_MENU_BAR_LINES to the height of
d7d0dac0 15915 top-most windows.
26901792
DL
15916
15917 * window.h (WINDOW_TOPMOST_P): Added.
15918
15919 * xdisp.c (echo_area_display): Use PREPARE_DESIRED_ROW.
15920 (redisplay_window): Ditto.
15921 (display_text_line): Ditto.
15922 (display_menu_bar): Ditto.
15923 (display_mode_line): Ditto.
15924 (display_mode_line): Use window matrix.
15925 (display_string): Use window matrix.
15926 (display_mode_element): Ditto.
15927 (echo_area_display): Don't display if frame has no pools yet.
15928 (echo_area_display): Work with window matrix for mini window.
15929 (redisplay_window): Use window marix for mini window.
15930 (display_text_line): Assume HPOS and VPOS are window relative and
d7d0dac0 15931 use that for DISPLAY_STRING.
26901792
DL
15932
15933 * dispextern.h: Prototype for prepare_desired_row.
15934
d7d0dac0 15935 * dispnew.c (prepare_desired_row): Replacement for GET_DISPLAY_LINE.
26901792
DL
15936
15937 * dispnew.c (adjust_window_charstarts): Always allocate window
15938 matrices.
15939 (clear_glyph_row): Only reset used counters and flags.
15940
15941Sat Jul 5 14:55:44 1997 Gerd Moellmann <gerd@acm.org>
15942
15943 * dispnew.c (scroll_frame_lines): Don't assume first scolled
427ec082 15944 line is non-empty.
26901792
DL
15945 (realloc_glyph_pool): Don't add 1 to the pool size.
15946 (adjust_glyph_matrix): Don't add 1 to pointers to glyph areas.
15947
15948 * dispnew.c (line_hash_code): Don't use null-glyph end marker.
15949 (line_draw_cost): Ditto.
15950 (update_line): Ditto.
15951 (update_line): Use SPACE_GLYPH.
15952 (count_blanks): Additional parameter LEN.
15953
15954 * xdisp.c (display_text_line): Use SPACE_GLYPH.
15955 (display_text_line): Don't add null-glyph end marker.
15956 (display_string): Use SPACE_GLYPH.
15957 (display_string): Don't use null-glyph end marker.
15958
15959 * term.c (clear_end_of_line): Use SPACE_GLYPH.
15960
15961 * dispnew.c (clear_glyph_row): Don't use null-glyph end markers.
15962 (fill_up_glyph_row_with_spaces): Ditto.
15963 (preserve_other_columns): Add SPACE_GLYPH at then end of desired
15964 rows, instead of null-glyphs.
15965 (direct_output_for_insert): Don't add null-glyph end marker.
15966
15967 * scroll.c (do_direct_scrolling): Change algorithm to construct
d7d0dac0 15968 vector of lines assigned. Call MIRRORED_LINE_DANCE:
26901792
DL
15969 (do_scrolling): Ditto.
15970
15971 * dispnew.c (mirror_line_dance): Mirror line assignments in a
d7d0dac0 15972 frame matrix in window matrices.
26901792 15973 (mirrored_line_dance): Do line assignments during scrolling.
d7d0dac0 15974 Maybe do corresponding assignments in window matrices.
26901792 15975 (check_window_matrix_pointers): Check that window rows and frame
d7d0dac0 15976 rows agree about glyph pointers.
26901792
DL
15977 (check_matrix_pointers): Ditto.
15978 (mirrored_make_current): Make a row of a desired matrix current;
d7d0dac0 15979 maybe mirror the operation in window matrices.
26901792 15980 (mirror_make_current): Make window desired matrix row current when
d7d0dac0 15981 frame matrix row was made current.
26901792
DL
15982
15983Fri Jul 4 13:27:46 1997 Gerd Moellmann <gerd@acm.org>
15984
15985 * dispnew.c (check_matrix_pointer_lossage): Check against
15986 pointer lossage in matrices.
15987 (get_glyph_matrix_row): Removed.
15988
15989 * scroll.c (do_scrolling): Simplified.
15990 (do_direct_scrolling): Simplified.
15991 (scrolling_1): Pass CURRENT_MATRIX instead of FRAME to
d7d0dac0 15992 DO_.*SCROLLING.
427ec082 15993
26901792
DL
15994
15995 * dispnew.c (ins_del_glyph_rows): Insert/delete rows in a matrix.
15996 (rotate_vector): Removed.
15997 (rotate_pointers): Removed.
15998 (scroll_frame_lines): Simplified.
15999
16000Thu Jul 3 13:54:21 1997 Gerd Moellmann <gerd@acm.org>
16001
16002 * dispextern.h (MATRIX_ROW_SWAP_CONTENTS): Removed.
16003
16004 * dispnew.c (increment_glyph_matrix_buffer_positions): Does
16005 what the name says.
16006 (clear_glyph_row): Make a glyph row structure empty.
16007 (make_matrix_row_current): Make a glyph row current.
16008 (make_window_matrix_row_current): Perform analogous row swaps
16009 for window matrices.
16010 (update_line): Call make_matrix_row_current.
16011
16012Wed Jul 2 13:43:35 1997 Gerd Moellmann <gerd@acm.org>
16013
16014 * dispextern.h (SET_MATRIX_ROW_ENABLED_P): Better macro name.
16015 (SET_MATRIX_ROW_INVERSE_P): Better name and HIGHLIGHT_P ->
16016 INVERSE_P.
16017 (MATRIX_ROW_INVERSE_P): Former MATRIX_ROW_HIGHLIGHT_P.
16018 (struct glyph_row): HIGHLIGHT_P -> INVERSE_P
16019
16020 * all files: use above new names.
16021
16022 * dispnew.c (scroll_frame_lines): Simplified. Use
d7d0dac0 16023 SCROLL_GLYPH_MATRIX.
26901792 16024 (make_glyph_row_empty): Mark a glyph row empty.
427ec082 16025 (increment_glyph_row_buffer_positions): Increment
26901792
DL
16026 buffer positions in a glyph row.
16027 (increment_glyph_matrix_buffer_positions): Increment buffer
16028 positions in a range of rows.
16029 (scroll_glyph_matrix): Scroll a glyph matrix.
16030 (swap_glyphs_in_rows): Swap glyphs between rows.
16031 (swap_glyph_pointers): Swap pointers between rows.
16032 (glyph_row_slice_p): Return 1 if one row is a slice of another.
16033 (init_display): Initialize SPACE_GLYPH.
16034 (fill_up_glyph_row_areas_with_spaces): Fill up areas with
427ec082 16035 spaces.
26901792
DL
16036
16037Tue Jul 1 13:49:55 1997 Gerd Moellmann <gerd@acm.org>
16038
16039 * xterm.c (dumprectangle): Use vectors in glyph rows.
16040
16041 * xdisp.c (display_text_line): Use vectors in glyph rows.
16042 (display_string): Ditto.
16043
16044 * scroll.c (do_scrolling): Use vectors in glyph rows.
16045 (do_direct_scrolling): Ditto.
16046
16047 * alloc.c (mark_object): Use vectors in glyph rows.
16048 Mark for all frame types.
16049
16050 * dispnew.c (adjust_glyph_matrix): Use vectors to glyphs in
16051 glyph rows.
16052 (get_glyph_matrix_row): Ditto.
16053 (matrix_row): Ditto.
16054 (rotate_pointers): Ditto.
16055 (scroll_frame_lines): Ditto.
16056 (preserve_other_columns): Ditto.
16057 (cancel_my_columns): Ditto.
16058 (update_line): Ditto.
16059 (direct_output_for_insert): Ditto.
16060
16061 * dispextern.h (struct glyph_row): Use a vector of pointers
d7d0dac0 16062 instead of individual members. Use a vector of used counters.
26901792
DL
16063 (MATRIX_ROW_SWAP_CONTENTS): Use vectors.
16064 (MATRIX_ROW_GLYPH_START): Ditto.
16065 (MATRIX_ROW_GLYPH_END): Ditto.
16066 (MATRIX_ROW_USED): Ditto.
16067 (MATRIX_ROW_SET_USED): Ditto.
16068
16069 * dispnew.c (line_hash_code): Simplified.
16070
16071Mon Jun 30 20:39:38 1997 Gerd Moellmann <gerd@acm.org>
16072
16073 * dispnew.c: Prototype for ROTATE_VECTOR, ROTATE_POINTERS,
16074 CHANGE_FRAME_SIZE_1
16075 (preserve_other_columns): Void return.
16076 (cancel_my_columns): Void return type.
16077 (scrolling): Int return type.
16078 (do_pending_window_change): Void return type.
16079 (change_frame_size): Ditto.
16080 (bitch_at_user): Ditto.
16081 (init_display): Ditto.
16082 (syms_of_display): Ditto.
16083
16084 * dispextern.h: add prototypes for REDRAW_FRAME,
d7d0dac0
SM
16085 REDRAW_GARBAGED_FRAMES, CANCEL_LINE, CLEAR_FRAME_RECORDS,
16086 INIT_DESIRED_GLYPHS, SCROLL_FRAME_LINES, PRESERVE_OTHER_COLUMNS,
16087 ADJUST_WINDOW_CHARSTARTS, CANCEL_MY_COLUMNS,
16088 DIRECT_OUTPUT_FOR_INSERT, DIRECT_OUTPUT_FORWARD_CHAR,
16089 UPDATE_FRAME, SCROLLING, BUFFER_POSN_FROM_COORDS,
16090 DO_PENDING_WINDOW_CHANGE, CHANGE_FRAME_SIZE, BITCH_AT_USER,
26901792 16091 SIT_FOR, INIT_DISPLAY, SYMS_OF_DISPLAY,
427ec082 16092
26901792 16093 * dispnew.c (redraw_frame): FRAME_PTR -> struct frame. Return
d7d0dac0 16094 void.
26901792
DL
16095 (cancel_line): Return void.
16096 (clear_frame_records): Return void.
427ec082 16097
26901792
DL
16098 * dispextern.h (struct glyph): Remove GLYPH, add bit-fields.
16099 (SET_CHAR_GLYPH): Fill a character glyph.
16100 (SET_CHAR_GLYPH_FROM_GLYPH): Set a character glyph from a GLYPH.
16101 (GLYPH_FROM_CHAR_GLYPH): Construct a GLYPH from a character
427ec082 16102 glyph.
26901792
DL
16103 (CHAR_GLYPH_CHAR_CODE): Return character code of a glyph.
16104 (SET_CHAR_GLYPH_CHAR_CODE): Set character code of a glyph.
16105 (CHAR_GLYPH_FACE_ID): Return face id of a glyph.
16106 (SET_CHAR_GLYPH_FACE_ID): Set face id of a glyph.
16107 (CHAR_GLYPH_PADDING_P): Return padding flag of a glyph.
16108 (SET_CHAR_GLYPH_PADDING_P): Set padding flag.
16109 (CHAR_GLYPH_REVERSE_P): Return reversed flag.
16110 (SET_CHAR_GLYPH_REVERSE_P): Set reversed flag.
16111 (MATRIX_ROW_SWAP_CONTENTS): Swap pointers between rows.
16112
16113 * term.c (reassert_line_highlight): Check CHARS_WASTED == 0.
16114
16115 * window.h (struct window): Add comment that no Lisp data may
d7d0dac0 16116 come below CURRENT_MATRIX.
26901792
DL
16117
16118 * alloc.c (mark_object): Change window mark code to stop with
d7d0dac0 16119 member CURRENT_MATRIX.
26901792
DL
16120
16121Sat Jun 28 13:54:55 1997 Gerd Moellmann <gerd@acm.org>
16122
16123 * scroll.c (do_scrolling): Change algorithm to use pointers.
16124 (do_direct_scrolling): Ditto.
16125
16126 * dispnew.c (get_glyph_matrix_row): Use pointers stored in rows.
16127 (new_glyph_pool): Formerly new_FRAME_GLYPH_MATRIX.
16128 (free_glyph_pool): Formerly FREE_FRAME_GLYPH_MATRIX
16129 (realloc_glyph_pool): Formerly REALLOC_FRAME_GLYPH_MATRIX.
d7d0dac0 16130 Returns 1 if pool changed.
26901792
DL
16131 (matrix_row): Additional check for lost pointers to glyph rows.
16132 (compute_matrices): Additional parameter DIM_P set means that no
d7d0dac0
SM
16133 allocation should take place. Addtional parameter
16134 ANY_WINDOWS_CHANGED_P set if any windows matrix has changed.
26901792 16135 (compute_leaf_matrix): Additional parameter CHANGED_P set to 1
d7d0dac0
SM
16136 when window matrix changes. Additional parameter DIM_ONLY_P set
16137 to 1 to indicate that no allocation should take place.
26901792 16138 (adjust_frame_glyphs): Construct new glyph pools and glyph
d7d0dac0 16139 matrices. Optimize frame redraws.
26901792
DL
16140 (free_glyphs): Free pools.
16141 (check_glyph_memory): Check pools not freed.
16142 (rotate_pointers): Rotate pointers in a vector of glyph rows.
16143 (scroll_frame_lines): Change algorithm to use pointers.
16144 (update_line): Ditto.
16145
16146 * dispextern.h (struct glyph_row): Use pointers to areas in a row.
16147 (global): All macro names changed from prefix FRAME_MATRIX to
d7d0dac0 16148 MATRIX.
26901792
DL
16149
16150Fri Jun 27 14:51:15 1997 Gerd Moellmann <gerd@acm.org>
16151
16152 * dispextern.h (struct glyph_pool): Replacement for former
16153 FRAME_GLYPH_MATRIX.
16154 (struct glyph_matrix): No longer contains sizes of allocated
16155 areas.
16156
16157 * xdisp.c (redisplay_internal): Don't redisplay if frame has
16158 no glyph pools.
16159
16160 * frame.c (make_frame): Initialize pools.
16161
16162Thu Jun 26 00:00:55 1997 Gerd Moellmann <gerd@acm.org>
16163
427ec082 16164 * scroll.c (do_direct_scrolling): Don't assume that the
26901792
DL
16165 line moving algorithm has no intermediate steps.
16166 (do_scrolling): Ditto.
16167
16168 * Makefile.in (alloc.o): Add dependency dispextern.h.
16169
16170 * alloc.c: Include dispextern.h for glyph definitions.
16171
16172 * dispnew.c (get_glyph_matrix_row): Return 1 if ROW_INDEX
16173 is legal, return 0 otherwise.
16174
16175 * window.h: Add comment that windows are marked specially.
16176
16177 * alloc.c (mark_object): Mark windows specially.
16178
16179
16180Wed Jun 25 15:22:58 1997 Gerd Moellmann <gerd@acm.org>
16181
16182 * dispextern.h (struct glyph): Add member OBJECT
16183 referencing a Lisp object from which a glyph was drawn.
16184 Member TEXT_POSITION renamed POSITION.
16185 * xterm.c, xdisp.c, dispnew.c: Rename TEXT_POSITION -> POSITION.
16186
16187 * alloc.c: Include dispextern.h
16188 (mark_object): Mark objects referenced from glyphs.
16189
f28eba7b 16190 * frame.c (make_frame): Initialize DECODE_MODE_SPEC_BUFFER.
26901792
DL
16191
16192 * scroll.c (do_direct_scrolling): Remove TEMP_MATRIX.
16193 (do_scrolling): Ditto.
16194
427ec082 16195 * frame.h (struct frame): TEMP_MATRIX removed.
26901792
DL
16196 DECODE_MODE_SPEC_BUFFER added.
16197
16198 * window.h: TEMP_MATRIX removed.
16199
16200 * scroll.c: OPHYS_LINES removed.
16201
16202 * dispnew.c: OPHYS_LINES and OPHYS_LINES_LENGTH removed.
16203 FRAME_PTR -> struct frame *.
16204
16205 * termhooks.h: Prototypes for INSERT_GLYPHS_HOOK,
16206 WRITE_GLYPHS_HOOK, DELETE_GLYPHS_HOOK,
16207
16208 * term.c: Prototypes for INSERT_GLYPHS_HOOK,
16209 WRITE_GLYPHS_HOOK, DELETE_GLYPHS_HOOK,
16210
16211 * xdisp.c (redisplay_internal): Remove call to VERIFY_CHARSTARTS.
16212 (do_verify_charstarts): Removed.
16213
16214 * frame.c (Fmake_terminal_frame): Adjust glyphs.
16215 (Fdelete_frame): Free glyphs.
16216 (make_frame): Initialize matrix fields in frame.
16217
f28eba7b 16218 * config.in (PROTO): Added.
26901792 16219
f28eba7b 16220 * emacs.c (shut_down_emacs): Check glyph memory.
26901792
DL
16221
16222 * window.c (Fdelete_window): Free window matrices.
16223 (Fset_window_configuration): Ditto.
16224 (Fdelete_window): Adjust glyphs.
16225 (Fsplit_window): Ditto.
16226 (change_window_height): Ditto.
16227 (Fset_window_configuration): Ditto.
16228 (make_window): Initialize DESIRED_MATRIX and CURRENT_MATRIX.
16229 (replace_window): Reset DESIRED_MATRIX and CURRENT_MATRIX
16230
16231 * Makefile.in (window.o): Add dependency window.c -> dispextern.h
16232
16233 * window.c: Include dispextern.h
16234
16235 * scroll.c (do_scrolling): Use new glyphs.
16236 (do_direct_scrolling): Ditto.
16237
16238 * xdisp.c: Some function prototypes.
16239 (redisplay_internal): Don't do anything if matrices not yet set.
16240 (redisplay_internal): Use new glyphs.
16241 (try_window_id): Ditto.
16242 (copy_part_of_rope): Ditto.
16243 (display_text_line): Ditto.
16244 (display_menu_bar): Ditto.
16245 (display_mode_line): Ditto.
16246 (display_string): Ditto.
16247
16248 * xterm.c: Prototypes for some local functions.
16249 (dumpglyphs): Use new glyphs.
16250 (XTwrite_glyphs): Ditto.
16251 (dumprectangle): Ditto.
16252 (note_mouse_highlight): Ditto.
16253 (fast_find_position): Ditto.
16254 (show_mouse_face): Ditto.
16255 (x_draw_single_glyph): Ditto.
16256 (x_display_bar_cursor): Ditto.
16257 (x_display_box_cursor): Ditto.
16258 (x_new_font): Adjust glyphs when font change.
16259
16260 * term.c (clear_end_of_line): Use new glyphs.
16261 (write_glyphs): Ditto.
16262 (insert_glyphs): Ditto.
16263
16264 * Makefile.in (term.o): term.c depends on dispextern.h
16265
16266 * term.c: Include dispextern.h
16267
16268 * dispnew.c (direct_output_forward_char): Old glyph functions
427ec082 16269 removed, new inserted.
26901792
DL
16270 (line_hash_code): Use new glyphs.
16271 (line_draw_cost): Ditto
16272 (cancel_line): Ditto
16273 (clear_frame_records): Ditto.
16274 (init_desired_glyphs): Ditto.
16275 (get_display_line): Ditto
16276 (scroll_frame_lines): Ditto.
16277 (preserve_other_columns): Ditto.
16278 (adjust_window_charstarts): Ditto.
16279 (cancel_my_columns): Ditto.
16280 (direct_output_for_insert): Ditto.
16281 (update_frame): Ditto.
16282 (quit_error_check): Made empty.
16283 (scrolling): Use new glyphs.
16284 (count_blanks): Ditto.
16285 (count_match): Ditto.
16286 (update_line): Ditto.
16287 (init_display): Adjust glyphs initially.
16288 (change_frame_size_1): Adjust glyphs.
16289
16290 * dispextern.h: Old glyphs removed, new added.
16291
16292 * xfaces.c (min_char_bounds): Get smallest char in loaded fonts.
16293
16294 * xterm.h: Prototype for min_char_bounds.
16295
16296 * window.h (struct window): Remove old glyphs, add new.
16297
16298 * frame.h (struct frame): Remove old glyphs, add new.
427ec082 16299
26901792
DL
163001999-07-20 Dave Love <fx@gnu.org>
16301
16302 * buffer.c (syms_of_buffer): Make
16303 default-enable-multibyte-characters a user variable.
16304
163051999-07-14 Richard Stallman <rms@gnu.org>
16306
16307 * Version 20.4 released.
16308
163091999-07-14 Richard Stallman <rms@gnu.org>
16310
16311 * filelock.c (lock_file): Do nothing if purifying.
16312
163131999-07-10 Richard Stallman <rms@gnu.org>
16314
16315 * xterm.c (x_display_bar_cursor): Use the cursor-color
16316 to display the bar, not the cursor foreground pixel.
16317
163181999-07-09 Andrew Innes <andrewi@gnu.org>
16319
16320 * w32console.c (w32_use_full_screen_buffer): New variable.
16321 (syms_of_ntterm): Register it.
16322 (initialize_w32_display): Set initial frame size accordingly,
16323 respecting the LINES and COLUMNS environment variables if set.
16324
16325 * w32inevt.c (w32_console_read_socket): Use it.
16326
163271999-07-07 Kenichi Handa <handa@etl.go.jp>
16328
16329 * callproc.c (Fcall_process): Decide coding system for decoding
16330 after we set to the target buffer. If the output goes to a
16331 unibyte buffer, suppress character code conversion.
16332
16333 * fileio.c (Finsert_file_contents): If reading into a unibyte
16334 buffer, suppress character code conversion.
16335
16336 * process.c (create_process): If the output goes to a unibyte
16337 buffer, suppress character code conversion.p
16338
163391999-07-07 Andreas Schwab <schwab@gnu.org>
16340
16341 * xdisp.c (line-number-display-limit): Doc fix.
16342
163431999-07-05 Richard Stallman <rms@gnu.org>
16344
16345 * callproc.c (Fcall_process): Don't use initializer on coding_systems.
16346 (Fcall_process_region): Likewise.
16347
163481999-07-01 Markus Rost <markus.rost@mathematik.uni-regensburg.de>
16349
16350 * callproc.c (init_callproc): Set exec_directory if
16351 installation_directory is non-nil, without a test of exec_path.
16352
163531999-07-01 Andrew Innes <andrewi@gnu.org>
16354
16355 * w32xfns.c (drain_message_queue): New function.
16356
16357 * w32term.h (drain_message_queue): Add extern.
16358
16359 * w32proc.c (sys_select): Call MsgWaitForMultipleObjects instead
16360 of WaitForMultipleObjects when user input is allowed, so we can
16361 handle incoming window messages. Call drain_message_queue when
16362 there are messages waiting; this ensures that windows created
16363 indirectly from the lisp thread get processed properly, and don't
16364 hang other applications by failing to respond to broadcasts.
16365
163661999-07-01 Andreas Schwab <schwab@gnu.org>
16367
16368 * callint.c (Fcall_interactively): Ignore first element of
16369 event-symbol-elements property.
16370
163711999-07-01 Richard Stallman <rms@gnu.org>
16372
16373 * fileio.c (Fread_file_name): Check type of DEFAULT_FILENAME.
16374
163751999-07-01 Kenichi Handa <handa@etl.go.jp>
16376
16377 * minibuf.c (read_minibuf): Set the multibyteness of the
16378 minibuffer before inserting `initial' string.
16379
163801999-06-30 Richard Stallman <rms@gnu.org>
16381
16382 * xfns.c (x_make_gc): Turn off GCStipple when setting up cursor_gc.
16383
163841999-06-29 Richard M. Stallman <rms@gnu.org>
16385
16386 * emacs.c [DOUG_LEA_MALLOC] (malloc_initialize_hook):
16387 Move the handling of MALLOC_CHECK_ envvar here.
16388 (main): Moved from here.
16389
163901999-06-29 Wolfram Gloger <wmglo@dent.med.uni-muenchen.de>
16391
16392 * emacs.c [DOUG_LEA_MALLOC] (malloc_initialize_hook): New
16393 function, assigned to the global __malloc_initialize_hook pointer.
16394 (main): Move malloc_set_state call into malloc_initialize_hook
16395 so that it happens as early as possible.
16396
163971999-06-27 Richard M. Stallman <rms@gnu.org>
16398
16399 * keyboard.c (read_key_sequence): Properly reinitialize
16400 fkey_map after translating thru Vkey_translation_map.
16401 After translating thru Vfunction_key_map, don't reset
16402 keytrans-start to 0.
16403
164041999-06-24 Geoff Voelker <voelker@cs.washington.edu>
16405
16406 * w32.c (get_emacs_configuration): Use GetVersionEx to
16407 handle NT5.0 correctly. Include build number in configuration.
16408 w32heap.c (osinfo_cache): New variable.
16409 (cache_system_info): Initialize osinfo_cache.
16410 w32heap.h (osinfo_cache): Declare.
16411
164121999-06-24 Richard M. Stallman <rms@gnu.org>
16413
16414 * casefiddle.c (casify_object): Use make_multibyte_string
16415 if we casify a multibyte string.
16416
164171999-06-22 Ken'ichi Handa <handa@gnu.org>
16418
16419 * fileio.c: (Finsert_file_contents): In the case of REPLACE, call
16420 del_range_byte instead of del_range_1, set `inserted' to the
16421 number of characters actually inserted.
16422
164231999-06-17 Dave Love <fx@gnu.org>
16424
16425 * coding.c (decode_coding_sjis_big5): Avoid compiler warning.
16426
164271999-06-18 Paul Eggert <eggert@twinsun.com>
16428
16429 * filelock.c (BOOT_TIME_FILE): New macro.
16430 (get_boot_time): Use it instead of hardwiring the file name.
16431 Check BOOT_TIME_FILE only after inspecting the kernel directly.
16432
164331999-06-17 Dave Love <fx@gnu.org>
16434
16435 * xdisp.c (invalid_eol_type): Make it unsigned.
16436
164371999-06-17 Karl Heuer <kwzh@gnu.org>
16438
16439 * process.c (send_process): Delete unsafe/redundant assignment.
16440
164411999-06-17 Jason Rumney <jasonr@gnu.org>
16442
16443 * w32term.c (dumprectangle): Handle wide characters properly.
16444
164451999-06-16 Andrew Innes <andrewi@gnu.org>
16446
16447 * s/ms-w32.h (strerror): Override the default implementation of
16448 strerror, so we can map winsock error codes.
16449
16450 * w32.c (sys_strerror): New function.
16451
16452 * w32fns.c (w32_to_x_weight): Return "demibold" instead of "semibold".
16453
164541999-06-15 Ken'ichi Handa <handa@gnu.org>
16455
16456 * buffer.c (syms_of_buffer): Don't make
16457 enable-multibyte-characters customizable.
16458
164591999-06-15 Richard M. Stallman <rms@gnu.org>
16460
16461 * editfns.c (Fuser_full_name): Doc fix.
16462
164631999-06-14 Tak Ota <ota@atc.sel.sony.com>
16464
16465 * w32bdf.c: (clear_cached_bitmap_slots): Remove.
16466 (get_bitmap_with_cache): Check if CreateBitmap failed.
16467 Adjust cache size dynamically so cache is never larger than the
16468 system limit of GDI resources.
16469 Do cache clearing inline. Move global variables to local scope.
16470
16471
164721999-06-13 Wolfgang Glas <Wolfgang.Glas@hfm.tu-graz.ac.at>
16473
16474 * unexsgi.c (unexec): Dump the .rodata section from memory
16475 under IRIX6.5 in order to be able to unexec with gcc.
16476
164771999-06-11 Greg Hudson <ghudson@MIT.EDU>
16478
16479 * indent.c (compute_motion): Fix boundary case.
16480
164811999-06-11 Jason Rumney <jasonr@altavista.net>
16482
16483 * w32term.c (cancel_mouse_face): New function. See equiv
16484 changes to xterm.c on 1996-10-31.
16485 (x_set_window_size): Use cancel_mouse_face.
d7d0dac0
SM
16486 (w32_read_socket): Use cancel_mouse_face.
16487 Update frame position when size is restored.
26901792
DL
16488
164891999-06-04 Richard M. Stallman <rms@gnu.org>
16490
16491 * lread.c (Vuser_init_file): New variable.
16492 (syms_of_lread): Set up Lisp variable.
16493 (Fload): Store the file name there, if var was t before.
16494
164951999-06-04 Paul Eggert <eggert@twinsun.com>
16496
16497 * filelock.c (get_boot_time): Don't look at /proc/uptime; it
16498 doesn't work if the system date is changed, or if the system
16499 is suspended. Look at the last-modified time of
16500 /var/run/random-seed instead.
16501
165021999-06-03 Ken'ichi Handa <handa@gnu.org>
16503
16504 * coding.c (ENCODE_SJIS_BIG5_CHARACTER): Encode charset
16505 japanese-jisx0208-1978 correctly.
16506
165071999-06-03 Andrew Innes <andrewi@gnu.org>
16508
16509 * unexw32.c (get_section_info) [_ALPHA_]: Force as much bss data
16510 as possible to be dumped, for safety.
16511
165121999-06-02 Ken'ichi Handa <handa@gnu.org>
16513
16514 * coding.c (ENCODE_SJIS_BIG5_CHARACTER): Encode charset
16515 latin-jisx0201 correctly.
16516
165171999-05-26 Ken'ichi Handa <handa@gnu.org>
16518
16519 * charset.h (Vcharset_table): Comment fixed.
16520
165211999-05-24 Richard Stallman <rms@gnu.org>
16522
16523 * coding.c (syms_of_coding): Doc fix.
16524
16525 * buffer.c (syms_of_buffer): Doc fix.
16526
16527 * filelock.c (lock_if_free): After deleting a stale lock,
16528 try again to lock the file.
16529
165301999-05-22 Andrew Innes <andrewi@gnu.org>
16531
16532 * w32inevt.c (maybe_generate_resize_event): Detect changes in the
16533 console window size.
16534 (w32_console_read_socket): Call maybe_generate_resize_event
16535 whenever input events are received, since we don't get told when
16536 the window size changes (as opposed to the buffer size, which we
16537 don't care about).
16538
16539 * w32console.c (clear_frame): Remember that the window width might
16540 be smaller than the screen buffer width.
16541 (write_glyphs): Remove redundant variable attrs. Use
16542 FillConsoleOutputAttribute instead of WriteConsoleOutputAttribute.
16543
165441999-05-20 Andrew Innes <andrewi@gnu.org>
16545
16546 * w32term.c (w32_read_socket): Reset the grabbed flag when a frame gains or
16547 loses focus.
16548
16549 * w32fns.c (w32_wnd_proc): Ensure mouse capture is released if
16550 frame loses focus, and that mouse button state is reset. Ditto
16551 when the menu bar is activated.
16552
165531999-05-18 Richard Stallman <rms@gnu.org>
16554
16555 * abbrev.c (Fdefine_abbrev): Doc fix.
16556
165571999-05-13 Paul Eggert <eggert@twinsun.com>
16558
16559 * filelock.c: Fix performance bug on hosts with large
16560 /var/adm/wtmp files with no boot records.
16561
16562 (boot_time_initialized): New var.
16563 (init_filelock): Initialize it.
16564 (get_boot_time): Use it, instead of nonzero boot_time,
16565 to test whether boot_time is initialized.
16566 Don't invoke utmp routines when dumping.
16567
16568 (get_boot_time): First, try to get the boot time from the
16569 current utmp file, as this can be much faster. Don't try to
16570 get the boot time from utmp and/or wtmp more than once.
16571
16572 (get_boot_time_1): When passed null pointer, don't invoke utmpname.
16573 New arg LATEST. All uses changed.
16574
165751999-05-15 Andrew Innes <andrewi@gnu.org>
16576
16577 * w32term.c (dumpglyphs): Use correct colours for drawing
16578 rectangles in place of missing fonts, and make them the right
16579 size.
16580
165811999-05-14 Dave Love <fx@gnu.org>
16582
16583 * syntax.c (Fparse_partial_sexp): Correct test for element 8 to be
16584 non-nil.
16585
165861999-05-11 Andrew Innes <andrewi@gnu.org>
16587
16588 * w32fns.c (x_to_w32_charset): Reinstall VIETNAMESE_CHARSET
16589 definition.
16590 (w32_wnd_proc): Reinstall debugging output.
16591 (w32_wnd_proc): Reinstall SetForegroundWindow change.
16592 (syms_of_w32fns): Reinstall new initializer for
16593 Vw32_phantom_key_code.
16594
16595 * w32fns.c (x_to_w32_charset): Do partial matching of charset
16596 names for most non-European charsets, to cope with wildcards or
16597 missing spec dates.
16598 (Fw32_send_sys_command): Post WM_SYSCOMMAND rather than sending it
16599 to avoid deadlock when activating the menu bar.
16600
166011999-05-10 Ken'ichi Handa <handa@gnu.org>
16602
16603 * search.c (boyer_moore): Get charset base value of `untranslated'
16604 by masking by ~CHAR_FIELD3_MASK (instead of ~0xff).
16605
166061999-05-10 Andreas Schwab <schwab@gnu.org>
16607
16608 * fileio.c (Fread_file_name): Correct handling of dollars in file
16609 names. Protect dollars in strings put on the file-name-history.
16610 Substitute homedir by `~' also in default_filename.
16611
16612 * xdisp.c (try_window_id): Fix computation of tab_offset when
16613 backing up over a character that is splitted across lines.
16614
166151999-05-08 Kenichi HANDA <handa@etl.go.jp>
16616
16617 * coding.c (code_convert_region): If eol format is inconsistent,
16618 change coding->symbol to the sibling coding system of Unix like
16619 eol format.
16620
166211999-05-09 Richard M. Stallman <rms@gnu.org>
16622
16623 * s/irix5-2.h (NO_WTMP_FILE): Define it.
16624
16625 * filelock.c (get_boot_time): Handle NO_WTMP_FILE.
16626
166271999-05-05 Andrew Innes <andrewi@gnu.org>
16628
16629 * w32fns.c (w32_strict_painting): New variable.
16630 (w32_wnd_proc): Use it to select repaint rules.
16631 (syms_of_w32fns): Defvar it.
16632
166331999-05-04 Andrew Innes <andrewi@gnu.org>
16634
16635 * w32fns.c (x_to_w32_charset): Fix typo: want to map all Japanese
16636 charsets to the standard Windows charset for Japanese.
16637
166381999-05-04 Ken'ichi Handa <handa@gnu.org>
16639
16640 * xterm.c (x_load_font): Fix typo (`>' -> `=').
16641
16642 * ccl.h (struct ccl_program): New member stack_idx.
16643
16644 * ccl.c (ccl_prog_stack_struct): Declare it as static.
16645 (ccl_driver): Setup stack_idx and ccl_prog correctly. Update them
16646 before returing.
16647 (setup_ccl_program): Initialize ccl->stack_idx to 0.
16648
166491999-05-03 Jason Rumney <jasonr@altavista.net>
16650
16651 * w32term.c (dumpglyphs): Always fill background for italic fonts.
16652
166531999-05-03 Eli Zaretskii <eliz@is.elta.co.il>
16654
16655 * dired.c (make_time): Make argument type be time_t.
16656
166571999-05-02 Eli Zaretskii <eliz@is.elta.co.il>
16658
16659 * msdos.c (unibyte_display_via_language_environment): Add extern.
16660
83c8f461 166611999-05-02 Richard M. Stallman <rms@gnu.org>
26901792
DL
16662
16663 * xdisp.c (display_text_line): Convert unibyte char to multibyte
16664 if unibyte_display_via_language_environment is set.
16665 (unibyte_display_via_language_environment):
16666 Variable moved from xfns.c and elsewhere.
16667 (syms_of_xfns): Set up Lisp var.
16668
16669 * xfns.c (unibyte_display_via_language_environment):
16670 Variable moved to xdisp.c.
16671 (syms_of_xfns): Don't set up Lisp var here.
16672
16673 * msdos.c (unibyte_display_via_language_environment):
16674 Variable moved to xdisp.c.
16675 (syms_of_msdos): Don't set up Lisp var here.
16676
16677 * w32fns.c (unibyte_display_via_language_environment):
16678 Variable moved to xdisp.c.
16679 (syms_of_w32fns): Don't set up Lisp var here.
16680
166811999-05-02 Andrew Innes <andrewi@gnu.org>
16682
16683 * s/ms-w32.h (HAVE_FSYNC): New macro.
16684 (fsync): Map to _commit.
16685 (ftruncate): Map to _chsize.
16686
16687 * w32term.c (dumpglyphs): On Windows NT, do output in Unicode even
16688 for ASCII, if enabled, to avoid memory allocation overhead for
16689 implicit Unicode conversion. Also, recognize that ASCII and
16690 Latin-1 have a trivial conversion to Unicode, so x_2byte_buffer
16691 already contains the Unicode characters in that case.
16692 (construct_drag_n_drop): Remove old code that was
16693 trashing the drop location.
16694
16695 * w32select.c (Fw32_set_clipboard_data): Undo last change to add
16696 nlines to encoding_buffer_size (real bug was in a ccl program in
16697 lisp/international/coding.el).
16698
16699 * w32reg.c (w32_get_string_resource): Check for name in current
16700 user area, and if not found look in the local machine area.
16701
16702 * w32fns.c (w32_list_bdf_fonts): Initialize n_fonts.
16703 (Fw32_shell_execute): New function; used to support browse-url.
16704 (syms_of_w32fns): Register it.
16705 (w32_load_system_font): Force max width to be average
16706 char width for fixed-pitch fonts, to avoid unnecessary redisplay
16707 slowdown.
16708 (x_to_w32_charset): Define VIETNAMESE_CHARSET if not
16709 already defined.
16710 (syms_of_w32fns): Set Vw32_phantom_key_code to 255.
16711
16712 * unexw32.c (get_section_info): Dump back the entire EMDATA
16713 section if we can put Emacs' initialized data in a separate
16714 section, otherwise use the my_begdata/my_edata method.
16715
16716 * makefile.nt ($(BLD)\w32term.obj): Add dependency on w32heap.h.
16717
16718 * coding.c (decode_eol): Set produced/consumed values to zero if
16719 src_bytes is <= 0 on entry.
16720
167211999-05-02 Jason Rumney <jasonr@altavista.net>
16722
16723 * w32term.c (w32_write_glyphs, w32_clear_end_of_line,
16724 w32_clear_frame, clear_cursor, x_display_bar_cursor,
16725 x_display_box_cursor, x_set_window_size): Use phys_cursor_on
16726 field in frame.
16727 (do_line_dance): Updated WRT xterm.c. Use macros where possible.
16728 (dumprectangle): Take into account the width of a left-side
16729 scroll bar.
16730
16731 * w32proc.c (sys_kill): Attach to current foreground thread
16732 when grabbing focus; necessary on NT 5.0.
16733
16734 * w32fns.c (w32_wnd_proc) [WM_PAINT]: Use rectangle from
16735 GetUpdateRect rather than BeginPaint.
16736 (w32_wnd_proc): Attach to current foreground thread
16737 when grabbing focus; necessary on NT 5.0.
16738 (w32_wnd_proc) [W32_DEBUG_DISPLAY]: Add output for
16739 debugging display messages.
16740 (w32_to_x_charset): Put wildcard last in unknown charsets to avoid
16741 false matching.
16742
167431999-05-02 Kenichi HANDA <handa@etl.go.jp>
16744
16745 * coding.c (setup_raw_text_coding_system): Call
16746 setup_coding_system to initialize the fields of struct
16747 coding_system correctly.
427ec082 16748
26901792
DL
167491999-04-26 Kenichi HANDA <handa@etl.go.jp>
16750
16751 * xterm.c (x_list_fonts): Fix previous change.
16752
167531999-04-26 Richard Stallman <rms@gnu.org>
16754
16755 * config.in (HAVE_LIBXP): Add #undef.
16756 * Makefile.in (LIB_MOTIF_EXTRA): Check HAVE_LIBXP.
16757
167581999-04-12 Ken'ichi Handa <handa@gnu.org>
16759
16760 * xterm.c (x_list_fonts): Trap X errors so that Emacs doesn't die
16761 by them.
16762
167631999-04-12 Karl Heuer <kwzh@gnu.org>
16764
16765 * s/freebsd.h (BSD_SYSTEM): Define for FreeBSD 4 as with FreeBSD 3.
16766
167671999-04-11 Ken'ichi Handa <handa@gnu.org>
16768
16769 * fontset.c (Fset_fontset_font): Fix previous change.
16770
167711999-04-09 Ken'ichi Handa <handa@gnu.org>
16772
16773 * fontset.c (Fquery_fontset): Check for fontset aliases here.
16774 (Fnew_fontset, Fset_fontset_font): Don't check for them here.
16775
167761999-04-08 Richard Stallman <rms@gnu.org>
16777
16778 * process.c (Faccept_process_output): Check validity of PROCESS.
16779
167801999-04-08 Eli Zaretskii <eliz@gnu.org>
16781
16782 * msdos.c (jp_kbd_translate_table): Fix the other \ key.
16783
167841999-04-07 Richard Stallman <rms@gnu.org>
16785
16786 * xfns.c (x_set_font): Fix error message.
16787
16788 * fontset.c (Fquery_fontset): Don't check for fontset aliases here.
16789 (Fnew_fontset, Fset_fontset_font): Check for them here.
16790 (Ffontset_info, Fnew_fontset, Fset_fontset_font):
16791 Fix error message syntax.
16792
16793 * buffer.c (Fmake_indirect_buffer): Copy multibyte status
16794 from the base buffer.
16795 (Fset_buffer_multibyte): Copy new multibyte status
16796 into the buffer's indirect buffers.
16797
167981999-04-07 Ken'ichi Handa <handa@gnu.org>
16799
16800 * fns.c (base64_encode_1): Don't add unnecessary newline at the
16801 tail.
16802
168031999-04-06 Richard Stallman <rms@gnu.org>
16804
16805 * dired.c (Ffile_attributes): Doc fix.
16806
16807 * keymap.c (Faccessible_keymaps): Really initialize i_byte.
16808 Convert 0200 to meta only in a unibyte string.
16809 (Fkey_description): Likewise.
16810
16811 * eval.c (do_autoload): Preserve match data.
16812
168131999-04-06 Kenichi HANDA <handa@etl.go.jp>
16814
16815 * w32fns.c (x_to_w32_font): Provide sufficient buffer to
16816 encode_coding to avoid carryover.
16817
16818 * coding.c: Add comments for decode_coding and encode_coding.
16819
16820 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>: Fix bug of handling
16821 a composite character by skipping its leading code.
16822 <CCL_WriteMultibyteChar2>: Handle non-ascii single byte character
16823 correctly.
16824
16825 * coding.c: Add comments for decode_coding and encode_coding.
16826
16827 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>: Fix bug of handling
16828 a composite character by skipping its leading code.
16829 <CCL_WriteMultibyteChar2>: Handle non-ascii single byte character
16830 correctly.
16831
168321999-04-06 Eli Zaretskii <eliz@gnu.org>
16833
16834 * msdos.c (dos_rawgetc): Don't zero out c if private translation
16835 table was used.
16836 (jp_kbd_translate_table): Support C-\.
16837 (it_kbd_translate_table): Map `>' correctly.
16838 (it_keyboard): Add `>'.
16839
168401999-04-06 Richard Stallman <rms@gnu.org>
16841
16842 * intervals.c (graft_intervals_into_buffer): Turn off
16843 inhibit_modification_hooks around calling Fset_text_properties.
16844
168451999-04-05 Kenichi HANDA <handa@etl.go.jp>
16846
16847 * xterm.c (dumpglyphs): Be sure to fill the whole background of
16848 glyphs.
16849
168501999-04-05 Eli Zaretskii <eliz@gnu.org>
16851
16852 * msdos.c (jp_kbd_translate_table): Fix last change.
16853
168541999-04-04 Eli Zaretskii <eliz@gnu.org>
16855
16856 * msdos.c (struct kbd_translate): New struct, for key translation
16857 tables private to certain national keyboard layouts.
16858 (struct dos_keyboard_map): Add a pointer to a private translation
16859 table.
16860 (jp_kbd_translate_table): Private table for the Japanese
16861 keyboard.
16862 (jp_keyboard): Japanese keyboard layout.
16863 (it_kbd_translate_table): Private table for the Italian keyboard.
16864 (it_keyboard): Use it_kbd_translate_table.
16865 (keyboard_layout_list): Add the Japanese keyboard.
16866 (dos_rawgetc): Use the keyboard-private translation table, if
16867 available.
16868 (abort) [__DJGPP_MINOR__ >= 2]: Raise SIGABRT.
16869
168701999-04-02 Kenichi HANDA <handa@etl.go.jp>
16871
16872 * xdisp.c (redisplay_window): When we call compute_motion with
16873 HPOS got from w->last_point_x, call it with DID_MOTION 1.
16874 (display_text_line): Stop the loop for processing overlay strings
16875 when we reach the right edge of the window.
16876
83c8f461 168771999-03-31 Richard M. Stallman <rms@gnu.org>
26901792
DL
16878
16879 * doc.c (get_doc_string): When UNIBYTE and DEFINITION are 0,
16880 let the data control whether string is unibyte.
16881
168821999-03-30 Richard M. Stallman <rms@gnu.org>
16883
16884 * macros.c (Fexecute_kbd_macro): Save real_this_command.
16885 (pop_kbd_macro): Restore the saved real_this_command.
16886 (Fcall_last_kbd_macro): Set real_this_command to the macro.
16887
168881999-03-26 Richard M. Stallman <rms@gnu.org>
16889
16890 * buffer.c (Fset_buffer_modified_p): Don't lock or unlock
16891 if buffer-file-name is nil.
16892
168931999-03-25 Jason Rumney <jasonr@altavista.net>
16894
16895 * w32select.c (Fw32_set_clipboard_data): Take into account line
16896 ends when calculating clipboard storage needed for non-ASCII text.
16897
168981999-03-25 Andrew Innes <andrewi@gnu.org>
16899
16900 * makefile.nt (PREPARED_HEADERS): Change name of paths.h to epaths.h.
16901 (epaths.h): Renamed from paths.h.
427ec082
SS
16902 (clean):
16903 ($(BLD)\filelock.obj):
16904 ($(BLD)\lread.obj):
26901792
DL
16905 ($(BLD)\w32fns.obj): Renamed paths.h to epaths.h.
16906
169071999-03-23 Ken'ichi Handa <handa@gnu.org>
16908
16909 * coding.c (encode_coding_iso2022): Initialize dummy arguments to
16910 ENCODE_ISO_CHARACTER for the previous change on this macro.
16911
169121999-03-23 Kenichi Handa <handa@etl.go.jp>
16913
16914 * xdisp.c (decode_mode_spec_coding): Handle integer value in
16915 eoltype correctly for backward compatibility.
16916
169171999-03-20 Kenichi HANDA <handa@etl.go.jp>
16918
16919 * coding.c (ENCODE_ISO_CHARACTER): Check validity of CHARSET. If
16920 invalid, produce the buffer internal byte sequence without encoding.
16921
169221999-03-19 Karl Heuer <kwzh@gnu.org>
16923
16924 * editfns.c (Fformat): Accept %i format.
16925
169261999-03-17 Karl Heuer <kwzh@gnu.org>
16927
16928 * filelock.c (get_boot_time): Test tempname, not filename.
16929
169301999-03-17 Jason Rumney <jasonr@altavista.net>
16931
e5619f6b
JR
16932 * w32bdf.h: Merged patches from Meadow; introduce bitmap cache to
16933 speed display.
16934
16935 * w32bdf.c: Merged patches from Meadow; introduce bitmap cache to
16936 speed display.
16937 (get_cached_font_char, cache_char_offset, get_bitmap_with_cache)
16938 New functions.
16939 (w32_free_bdf_font, seek_char, w32_get_bdf_glyph, w32_BDF_TextOut)
16940 Use bitmap cache.
26901792
DL
16941
16942 * w32fns.c (enum_font_cb2): Set the font height to be the
16943 character height, not the cell height.
16944 (Fw32_select_font): Initialize font dialog with current default font.
16945 (Vw32_system_coding_system): New variable.
16946 (w32_strict_filenames): Add comment.
16947 (w32_to_x_font): Decode font name using Vw32_system_coding_system.
427ec082 16948 (x_to_w32_font): Encode font name using Vw32_system_coding_system.
26901792
DL
16949 (syms_of_w32fns): Add w32-system-coding-system.
16950
169511999-03-15 Richard M. Stallman <rms@gnu.org>
16952
16953 * xterm.c (XTread_socket) <ConfigureNotify>:
16954 If cursor pos is outside the new frame size, mark cursor as off.
16955
169561999-03-14 Ken'ichi Handa <handa@gnu.org>
16957
16958 * xdisp.c (try_window_id): Initialize val.ovstring_chars_done to 0.
16959
16960 * xterm.c (x_load_font): Trap X errors so that Emacs doesn't die
16961 by them.
16962
169631999-03-14 Richard M. Stallman <rms@gnu.org>
16964
16965 * macros.c (Fexecute_kbd_macro): Initialize executing_macro_iterations
16966 at beginning.
16967
169681999-03-14 Jason Rumney <jasonr@altavista.net>
16969
16970 * w32fns.c (w32_strict_fontnames): New variable.
16971 (Fx_create_frame): Formatting fix.
16972 (w32_load_system_font): Keep trying to load non-existant font
16973 if w32_strict_fontnames is nil. Formatting fix.
16974 (syms_of_w32fns): Add w32-strict-fontnames.
16975
16976 * w32term.c (W32_TEXTOUT): Do not multiply nchars by charset_dim.
16977 (dumpglyphs): Formatting fixes.
16978
169791999-03-14 Geoff Voelker <voelker@cs.washington.edu>
16980
16981 * w32fns.c (w32_wnd_proc): Handle WM_GETMINMAXINFO message.
16982
169831999-03-10 Karl Heuer <kwzh@gnu.org>
16984
16985 * puresize.h (BASE_PURESIZE): Increase to 505000.
16986
169871999-03-09 Richard M. Stallman <rms@gnu.org>
16988
16989 * emacs.c (main) [CLASH_DETECTION]: Call init_filelock.
16990
16991 * filelock.c (init_filelock): New function.
16992
169931999-03-09 Dave Love <fx@gnu.org>
16994
16995 * fileio.c (Ffile_directory_p): Doc fix.
16996
83c8f461 169971999-03-05 Richard M. Stallman <rms@gnu.org>
26901792
DL
16998
16999 * coding.c (setup_coding_system): Check for CODING_SYSTEM = nil.
17000
170011999-03-08 Richard M. Stallman <rms@gnu.org>
17002
17003 * filelock.c (get_boot_time): Reduce scope of #ifdef BOOT_TIME
17004 to only the part that uses get_boot_time_1.
17005
170061999-03-07 Dave Love <fx@gnu.org>
17007
17008 * fileio.c (Finsert_file_contents): Use xfree.
17009
170101999-03-06 Kenichi Handa <handa@etl.go.jp>
17011
17012 * Makefile.in (callproc.o, coding.o, fileio.o, msdos.o, process.o,
17013 term.o, xselect.o): Depend on ccl.h.
17014
170151999-03-05 Geoff Voelker <voelker@cs.washington.edu>
17016
17017 * makefile.nt: Remove common multiple file compilation commands.
17018
170191999-03-04 Takeshi YAMADA <yamada@cslab.kecl.ntt.co.jp>
17020
17021 * fns.c (Fbase64_encode_string): Allocate sufficient memory for
17022 newlines added when the arg NO-LINE-BREAK is nil.
17023
170241999-03-04 Karl Heuer <kwzh@gnu.org>
17025
17026 * search.c (Fstring_match, Fposix_string_match): Doc fix.
17027
17028 * buffer.c (syms_of_buffer): Doc fix for case-fold-search.
17029
170301999-03-04 Dave Love <fx@gnu.org>
17031
17032 * term.c (term_init): Use xmalloc, not malloc.
17033
17034 * callproc.c (Fcall_process): Use xmalloc, xfree.
17035
170361999-03-03 Andreas Schwab <schwab@gnu.org>
17037
17038 * eval.c (Fdefconst): Doc fix.
17039
170401999-03-01 Kenichi Handa <handa@etl.go.jp>
17041
17042 * coding.c: Comment for ISO 2022 encoding mechanism modified.
17043
170441999-03-01 Eli Zaretskii <eliz@gnu.org>
17045
17046 * w16select.c (get_clipboard_data): Always stop at the first null byte.
17047
170481999-02-28 Richard M. Stallman <rms@gnu.org>
17049
17050 * filelock.c (get_boot_time): Support FreeBSD way to read boot-time.
17051
17052 * cmds.c (internal_self_insert): Calculate column properly
17053 in overwrite-of-tab case.
17054
170551999-02-27 Andreas Schwab <schwab@gnu.org>
17056
17057 * emacs.c (main) [DOUG_LEA_MALLOC]: Don't use unsetenv, it calls
17058 malloc in glibc 2.1.
17059
170601999-02-26 Richard Stallman <rms@gnu.org>
17061
17062 * Makefile.in: paths.h and paths.in renamed to epaths.h and epaths.in.
17063
17064 * epaths.in: Renamed from paths.in.
17065 This avoids a conflict with a system header file paths.h on GNU/Linux.
17066
17067 * callproc.c, lread.c, w32fns.c, xfns.c, xrdb.c:
17068 Use epaths.h istead of paths.h.
17069
170701999-02-26 Andreas Schwab <schwab@gnu.org>
17071
17072 * emacs.c (main) [DOUG_LEA_MALLOC]: Work around a bug in glibc's
17073 malloc.
17074
170751999-02-25 Dave Love <fx@gnu.org>
17076
17077 * buffer.c (syms_of_buffer): Doc fix for enable-multibyte-characters.
17078
170791999-02-25 Richard Stallman <rms@gnu.org>
17080
17081 * filelock.c (get_boot_time): Use WTMP_FILE for file name.
17082 (WTMP_FILE): Default definition in case not defined.
17083 (get_boot_time_1): Test that file exists before trying to read it.
427ec082 17084
26901792
DL
170851999-02-25 Ken'ichi Handa <handa@gnu.org>
17086
17087 * keymap.c (push_key_description): If enable-multibyte-characters
17088 is nil and C is single byte, push C as is.
17089
170901999-02-24 Kenichi Handa <handa@etl.go.jp>
17091
17092 * keymap.c (push_key_description): If enable-multibyte-characters
17093 is non-nil, try to convert unibyte character to multibyte. For
17094 invalid multibyte character, show all bits by octal form.
17095 (Fsingle_key_description): Check the validity of charset for a
17096 generic character.
17097
170981999-02-23 Richard M. Stallman <rms@gnu.org>
17099
17100 * fileio.c (Ffile_regular_p): Undo previous change.
17101
17102 * eval.c (Fdefconst): Doc fix.
17103
17104 * filelock.c (get_boot_time): Don't use BUFSIZ.
17105
171061999-02-22 Andrew Innes <andrewi@gnu.org>
17107
17108 * makefile.nt ($(BLD)\w32bdf.obj): Add missing continuation character.
17109 (EXTRA_LINK): Do version test with strings.
17110
171111999-02-22 Andreas Schwab <schwab@gnu.org>
17112
17113 * fns.c (Fbase64_encode_string): Fix last change.
17114
17115 * termhooks.h (event_kind): Add user_signal.
17116
17117 * keyboard.c (Qusr1_signal, Qusr2_signal): New variables.
17118 (syms_of_keyboard): Initialize them.
17119 (lispy_user_signals): New variable.
17120 (make_lispy_event): Handle user_signal event type.
17121
17122 * emacs.c: Don't define Qusr1_signal and Qusr2_signal.
17123 (syms_of_emacs): Don't initialize them.
17124 (handle_USR1_signal, handle_USR2_signal): Set event type to
17125 user_signal instead of non_ascii_keystroke, and use plain integers
17126 as code instead of Lisp symbols.
17127
171281999-02-21 Eli Zaretskii <eliz@delysid.gnu.org>
17129
17130 * fileio.c: (lstat) [!S_ISLNK]: Use stat instead of lstat.
17131
171321999-02-21 Richard Stallman <rms@gnu.org>
17133
17134 * filelock.c (get_boot_time_1): Put this in #ifdef BOOT_TIME.
17135
17136 * print.c (print_error_message): Don't crash if (cdr data)
17137 is not a list.
17138
171391999-02-21 Eli Zaretskii <eliz@gnu.org>
17140
17141 * fileio.c (lstat) [!S_ISLNK]: Use stat instead of lstat.
17142
171431999-02-20 Andrew Innes <andrewi@gnu.org>
17144
17145 * vm-limit.c (memory_warnings) [WINDOWSNT]: Reset lim_data on each
17146 run, since size can vary from run to run.
17147
17148 * makefile.nt (EXTRA_LINK, LINK_FLAGS): Ensure base relocation
17149 data is included, to enable profiling.
17150 ($(EMACS)): Map file not needed for emacs.exe.
17151
17152 * emacs.c (main): [!SYSTEM_MALLOC]: Call realloc and free as well
17153 as malloc before calling uninterrupt_malloc, for consistency.
17154 This also enables profiling to work on WINDOWSNT.
17155
171561999-02-18 Richard Stallman <rms@gnu.org>
17157
17158 * Makefile.in (emacs.o): Depend on termhooks.h.
17159 (filelock.o): Depend on systime.h.
17160
171611999-02-18 Ken'ichi Handa <handa@gnu.org>
17162
17163 * coding.c (Fdecode_sjis_char): Use %x for formatting error message.
17164 (Fdecode_big5_char): Likewise.
17165
171661999-02-17 Richard Stallman <rms@gnu.org>
17167
17168 * insdel.c (adjust_markers_for_replace): When doing an insertion
17169 (replacing a region of zero length), handle markers at the
17170 insertion point properly.
17171
171721999-02-17 Andrew Innes <andrewi@gnu.org>
17173
17174 * w32fns.c (Vw32_quit_key): New variable.
17175 (post_character_message): Use it.
17176 (syms_of_w32fns): DEFVAR it.
17177
171781999-02-16 MORIOKA Tomohiko <morioka@jaist.ac.jp>
17179
17180 * fns.c (Fbase64_encode_string): New optional argument `NO_LINE_BREAK'.
17181
171821999-02-16 Richard Stallman <rms@gnu.org>
17183
17184 * filelock.c (within_one_second): New function.
17185 (current_lock_owner): Use that.
17186 (get_boot_time): Use /proc/uptime if available.
17187 Otherwise, if nothing found in wtmp, try wtmp.1.gz and so on.
17188 (get_boot_time_1): New subroutine taken from get_boot_time.
427ec082 17189
26901792
DL
171901999-02-16 Richard Stallman <rms@gnu.org>
17191
17192 * emacs.c (Qusr1_signal, Qusr2_signal): New variables.
17193 (syms_of_emacs): Init and staticpro them.
17194 (handle_USR1_signal): Don't run any code, just queue up an event.
17195 (handle_USR2_signal): Likewise.
17196
171971999-02-16 Eli Zaretskii <eliz@gnu.org>
17198
17199 * dired.c (Ffile_attributes): If the file's size doesn't fit in
17200 an integer, return it as a float. Doc string fixed.
17201
172021999-02-16 Richard Stallman <rms@gnu.org>
17203
17204 * emacs.c (Qusr1_signal, Qusr2_signal): New variables.
17205 (syms_of_emacs): Init and staticpro them.
17206 (handle_USR1_signal): Don't run any code, just queue up an event.
17207 (handle_USR2_signal): Likewise.
17208
172091999-02-15 Kenichi Handa <handa@etl.go.jp>
17210
17211 * coding.c (Fdecode_sjis_char, Fencode_sjis_char): Handle
17212 ASCII correctly. Signal error on invalid characters.
17213 (Fdecode_big5_char, Fencode_big5_char): Likewise.
17214
172151999-02-15 Eli Zaretskii <eliz@gnu.org>
17216
17217 * w16select.c (get_clipboard_data): Work around a bug in Windows95
17218 DOS box which doubles the reported size of text in the clipboard.
17219
172201999-02-15 Kenichi Handa <handa@etl.go.jp>
17221
17222 * coding.c (decode_coding_iso2022): Don't set
17223 coding->composed_chars to 0 here.
17224 (setup_coding_system): Set coding->composed_chars to 0 here.
17225
172261999-02-10 Richard Stallman <rms@gnu.org>
17227
17228 * fileio.c (Ffile_regular_p): Use lstat.
17229
172301999-02-09 Richard Stallman <rms@gnu.org>
17231
17232 * unexelf.c (HAS_SBSS_SECTION): Define this in some cases.
17233 (unexec): Test this instead of specific systems.
17234
17235 * m/macppc.h: New file.
17236
172371999-02-08 Dave Love <fx@gnu.org>
17238
17239 * fns.c (Fyes_or_no_p, Fy_or_n_p): Doc fix.
17240
172411999-02-08 Ken'ichi Handa <handa@gnu.org>
17242
17243 * coding.c (ccl_coding_driver): On encoding, coding->produced_char
17244 should be set to coding->produced.
17245
172461999-02-07 Paul Fisher <rao@gnu.org>
17247
17248 * fns.c (IS_BASE64_IGNORABLE, READ_QUADRUPLET_BYTE): New macros.
17249 (base64_decode_1): Use READ_QUADRUPLET_BYTE.
17250
172511999-02-07 Markus Rost <markus.rost@mathematik.uni-regensburg.de>
17252
17253 * editfns.c (Fformat): Doc fix.
17254
172551999-02-06 Richard Stallman <rms@gnu.org>
17256
17257 * process.c (syms_of_process): defsubr it.
17258 (Fprocess_running_child_p): New function.
17259
172601999-02-05 Andrew Innes <andrewi@gnu.org>
17261
17262 * w32term.c (construct_drag_n_drop): Call DraqQueryPoint before
17263 recording drop position.
17264
172651999-02-05 Ken'ichi Handa <handa@gnu.org>
17266
17267 * coding.c (encode_coding_iso2022): Before writing out an invalid
17268 code, reset graphic planes and registers if necessary.
17269
17270 * term.c (encode_terminal_code): Fix previous change.
17271
172721999-02-04 Eli Zaretskii <eliz@gnu.org>
17273
17274 * w16select.c (last_clipboard_text, clipboard_storage_size): New
17275 static variables.
17276 (set_clipboard_data): Save a copy of the text we put into
17277 clipboard in last_clipboard_text.
17278 (get_clipboard_data): If the clipboard text is identical to what
17279 last_clipboard_text holds, pretend there's no data in the clipboard.
17280
172811999-02-03 Richard Stallman <rms@gnu.org>
17282
17283 * s/gnu.h (NLIST_STRUCT): Add #undef.
17284
172851999-02-03 Eli Zaretskii <eliz@gnu.org>
17286
17287 * w16select.c (Fw16_set_clipboard_data): When the text needs to be
17288 encoded, set its pointer and size as returned by encode_coding.
17289
172901999-02-02 Ken'ichi Handa <handa@gnu.org>
17291
17292 * fns.c (Fset_char_table_default): To handle the case that CH is
17293 an ASCII char, use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
17294
172951999-02-02 Andrew Innes <andrewi@gnu.org>
17296
17297 * w32fns.c (syms_of_w32fns): Change default value of
17298 w32-mouse-move-interval to 0, so that the mouse wheel/rocker on
17299 some mice works properly.
17300
173011999-02-02 Eli Zaretskii <eliz@gnu.org>
17302
17303 * w16select.c (set_clipboard_data): Correctly null-terminate the
17304 string to be put into the Windows clipboard. Use xbuf_addr.
17305
173061999-02-01 Richard Stallman <rms@gnu.org>
17307
17308 * buffer.c (Fset_buffer_multibyte): Error if buffer is indirect.
17309
173101999-01-31 Richard Stallman <rms@gnu.org>
17311
17312 * process.c (process_send_signal): If CURRENT_GROUP is `lambda'
17313 then don't send the signal if the shell owns the terminal.
17314 (Finterrupt_process): Doc change.
427ec082 17315
26901792
DL
173161999-01-31 Andrew Innes <andrewi@gnu.org>
17317
17318 * unexw32.c: (ROUND_UP_DST_AND_ZERO): New macro.
17319 (copy_executable_and_dump_data): Use it to ensure alignment slop
17320 is zeroed.
17321
173221999-01-30 Andrew Innes <andrewi@gnu.org>
17323
17324 * w32.c (init_environment): Change argv[0] to contain the full
17325 path to Emacs.
17326
17327 * emacs.c (main) [WINDOWSNT]: Pass argv to init_environment.
17328
173291999-01-29 Ken'ichi Handa <handa@gnu.org>
17330
17331 * xterm.c (x_new_fontset): For ASCII font, don't use the font name
17332 returned by x_new_font (the resolved one) but use the font name
17333 set in the fontset specification.
17334 (x_load_font): For the height of font, if normarl ascent and
17335 descent value are larger than those in max_bounds field, use the
17336 former.
17337
173381999-01-28 Eli Zaretskii <eliz@gnu.org>
17339
17340 * xdisp.c (decode_mode_spec_coding): Fix previous change.
17341
173421999-01-27 Geoff Voelker <voelker@cs.washington.edu>
17343
17344 * makefile.nt: Use full path to temacs.exe when dumping.
17345
173461999-01-27 Jason Rumney <jasonr@altavista.net>
17347
17348 * w32fns.c (w32_load_system_font): Do not load unlisted fonts if
17349 list was reliable.
17350 (enum_fontex_cb1, enum_fontex_cb2): New functions.
17351 (w32_list_bdf_fonts): New parameter; max_names. Callers updated.
17352 (w32_list_synthesized_fonts): New function.
17353 (w32_list_fonts): Use maxnames. Use EnumFontFamiliesEx when
17354 available instead of EnumFontFamilies. List synthesized fonts if
17355 Vw32_enable_italics is non-nil.
427ec082 17356
26901792
DL
173571999-01-27 Richard Stallman <rms@gnu.org>
17358
17359 * s/ptx4.h (SETUP_SLAVE_PTY): Use the ptem module if it exists.
17360 Don't complain if ttcompat does not exist.
17361
17362 * w32fns.c (x_set_frame_parameters): gcpro as needed.
17363
173641999-01-27 Andrew Innes <andrewi@gnu.org>
17365
17366 * w32fns.c (w32_wnd_proc): Fix bug introduced by previous change;
17367 the lwindow, rwindow and apps keys could not be used as function
17368 keys, because they were being passed to TranslateMessage which
17369 ignores them. Also, key was being changed to SPC.
17370
17371 * makefile.nt: Do make version comparison as strings.
17372
173731999-01-27 Eli Zaretskii <eliz@gnu.org>
17374
17375 * coding.c (syms_of_coding): eol-mnemonic-* variables are now
17376 strings, not characters.
17377
17378 * coding.h: Likewise.
17379
17380 * xdisp.c (decode_mode_spec_coding): Display the EOL type as a
17381 string.
17382
173831999-01-26 Dave Love <fx@gnu.org>
17384
17385 * emacs.c (main): Up-date copyright.
17386
173871999-01-25 Dave Love <fx@gnu.org>
17388
17389 * coding.c (syms_of_coding): Doc fix for inhibit-eol-conversion.
17390
173911999-01-25 Andreas Schwab <schwab@gnu.org>
17392
17393 * eval.c (Fsignal): Move comment to avoid confusing make-docfile.
17394
173951999-01-23 Richard M. Stallman <rms@borg.ai.mit.edu>
17396
17397 * xfns.c (x_set_frame_parameters): gcpro as needed.
17398
17399 * window.c (Fset_window_point): If WINDOW is selected but the
17400 current buffer is not its buffer, don't use Fgoto_char.
17401
174021999-01-22 Richard M. Stallman <rms@gnu.org>
17403
17404 * syntax.c (scan_sexps_forward): Delete duplicate code
17405 to set prev_from_syntax, above start of main loop.
17406 At startinstring, check syntax when checking for a match.
17407
174081999-01-22 Jason Rumney <jasonr@altavista.net>
17409
17410 * w32bdf.c: New file.
17411 * w32bdf.h: New file.
17412 * makefile.nt: Add w32bdf.c and w32bdf.h.
17413
17414 * w32gui.h: Include w32bdf.h.
17415 (W32FontStruct) Add bdf element.
17416
17417 * w32term.h (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_MAX_WIDTH):
17418 Support BDF fonts.
17419
17420 * w32term.c (W32_TEXTOUT): New macro.
17421 (dumpglyphs): Support BDF fonts. Use W32_TEXTOUT macro.
17422 Simplify baseline calculation. Detect SJIS by font, not glyph.
17423 Call SetTextAlign.
17424 (syms_of_w32term): Remove "jisx0212-sjis" from
17425 w32-charset-to-codepage-alist.
17426 Replace "ksc5601" with "ksc5601.1987" in w32-charset-to-codepage-alist.
17427 Add "ksc5601.1992' to w32-charset-to-codepage-alist.
427ec082 17428
26901792
DL
17429 * w32fns.c (Vw32_bdf_filename_alist): New variable.
17430 (x_destroy_bitmap): Returns void not int.
17431 (x_set_border_pixel): Returns void.
17432 (w32_load_bdf_font): New function.
17433 (w32_load_system_font): New function, was w32_load_font. List
17434 fonts before loading. Explicitly set encoding for SJIS fonts.
17435 Set default_ascent to 0 as comment indicates.
17436 (w32_load_font): Call w32_load_system_font and w32_load_bdf_font.
17437 (w32_unload_font): Support BDF fonts.
17438 (w32_to_x_charset): Fix mappings to avoid wildcard mismatches.
17439 Autodetect whether to use koi8-r instead of iso8859-5.
17440 Associate "ksc5601.1987" with HANGUEL_CHARSET.
17441 Associate "ksc5601.1992" with JOHAB_CHARSET.
17442 (x_to_w32_charset): Make consistent with w32_to_x_charset.
17443 (w32_to_x_font): Add resolution.
17444 (x_to_w32_font): Use font resolution to calculate height if supplied.
17445 (w32_font_match): Handle wildcards anywhere within field.
17446 (enumfont_t): Remove unused head pointer.
17447 (enum_font_cb2): Dereference elfLogFont.
17448 (w32_list_bdf_fonts): New function.
17449 (w32_list_fonts): Use one_w32_dispay_info instead of insisting on
17450 valid frame. Remove MessageBox. Support BDF fonts.
17451 (Fw32_find_bdf_fonts): New function.
17452 (syms_of_w32fns): Add Vw32_bdf_filename_alist and
17453 Sw32_find_bdf_fonts.
17454
174551999-01-21 Andrew Innes <andrewi@gnu.org>
17456
17457 * makefile.nt (temacs): Use del to delete file, not rm.
17458
174591999-01-19 Richard Stallman <rms@psilocin.ai.mit.edu>
17460
17461 * keyboard.c (read_key_sequence): Fix previous change.
17462
17463 * xterm.c (same_x_server): Detect treat ":0" and "unix:0"
17464 as the same. Treat "myname:0" as the same as those two.
17465
174661999-01-19 Jason Rumney <jasonr@altavista.net>
17467
17468 * w32fns.c (x_to_w32_charset): Add iso8859-9.
17469 (w32_to_x_charset): Fix charset mappings.
17470
17471 * w32term.c: Remove codepage macros. Remove redundant BIG5 macros.
17472 (dumpglyphs): Move definitions out of block containing goto.
17473 Remove redundant code for BIG5.
17474 Use w32_codepage_for_font instead of
17475 w32_codepage_for_charset. Add cast to int where float
17476 operation is assigned to int.
17477 (Vw32_charset_to_codepage_alist): New variable.
17478 (w32_codepage_for_charset): Removed.
427ec082
SS
17479 (w32_codepage_for_font): New function, replacing
17480 w32_codepage_for_charset.
26901792
DL
17481 (syms_of_w32term): Add and initialize
17482 w32-charset-to-codepage-alist.
17483
174841999-01-17 Richard Stallman <rms@psilocin.ai.mit.edu>
17485
17486 * xselect.c (x_handle_selection_clear): Don't clear the
17487 selection if Emacs still owns it through a different display.
17488
174891999-01-17 Andrew Innes <andrewi@gnu.org>
17490
17491 * w32proc.c: (w32_executable_type): Relax the check to identify
17492 cygwin-compiled applications, because the exact dll name varies
17493 with release. Now only require the name to start "cygwin".
17494
17495 * w32heap.h: (ROUND_UP):
17496 (ROUND_DOWN): New macros.
17497 (need_to_recreate_heap): Renamed to using_dynamic_heap.
17498 (init_heap): New extern.
17499 (data_region_size):
17500 (recreate_heap):
17501 (read_in_bss):
17502 (map_in_heap):
17503 (round_to_next):
17504 (w32_fatal_reload_error):
17505 (get_section_size): Obsolete externs removed.
17506
17507 * w32heap.c: (RVA_TO_PTR): Redefine to convert RVA to address in
17508 current process.
17509 (round_to_next): Obsolete function removed.
17510 (preload_heap_section): New variable.
17511 (data_region_size): Obsolete variable removed.
17512 (allocate_heap): Modified to determine end of static heap section
17513 used during preload, and use that as initial base address for
17514 dynamic heap instead of hard-coded value.
17515 (sbrk): Remove call to allocate_heap; handled by init_heap. Skip
17516 calls to commit or decommit pages when allocating from static heap
17517 section during preload.
17518 (recreate_heap): Obsolete function removed.
17519 (init_heap): New function to initialize internal sbrk heap
17520 variables. Uses static heap section during preload, otherwise
17521 calls allocate_heap to reserve a heap region dynamically.
17522 (round_heap): Use ROUND_UP macro instead of round_to_next.
17523
17524 * unexw32.c: Major rewrite to support cleaner method of dumping; a
17525 static "bss" section is used for heap space during preload, and
17526 bss data is now written to the proper section area when dumping.
17527 (need_to_recreate_heap): Renamed to using_dynamic_heap.
17528 (heap_index_in_executable): Obsolete variable removed.
17529 (data_section): New variable.
17530 (data_start_va): Renamed to data_start.
17531 (data_start_file): Obsolete variable removed.
17532 (bss_section):
17533 (extra_bss_size):
17534 (bss_section_static):
17535 (bss_start_static):
17536 (bss_size_static):
17537 (extra_bss_size_static):
17538 (heap_section): New variables.
17539 (_start): Remove code based on old unexec method. Call init_heap
17540 to initialize sbrk heap.
17541 (close_file_data): Update size of file when closing, so that
17542 unexec doesn't have to work out exact size in advance.
17543 (get_bss_info_from_map_file):
17544 (get_section_size): Obsolete functions removed.
17545 (rva_to_section): Fix minor bug, and add a work-around for a bug
17546 in very old linkers.
17547 (offset_to_section):
17548 (relocate_offset): New functions.
17549 (OFFSET_TO_RVA):
17550 (RVA_TO_OFFSET):
17551 (RVA_TO_SECTION_OFFSET):
17552 (PTR_TO_RVA):
17553 (PTR_TO_OFFSET):
17554 (OFFSET_TO_PTR): New macros.
17555 (get_section_info): Modify to support new unexec method;
17556 determines address ranges in process that need dumping, and COFF
17557 sections where data will be dumped. Allows for static and global
17558 bss data to be in separate ranges. No longer relies on knowledge
17559 of section names.
17560 (copy_executable_and_dump_data_section): Renamed
17561 copy_executable_and_dump_data. Completely rewritten to copy
17562 executable section by section, so that raw data areas can be
17563 expanded to hold dumped data as necessary. Allows for bss data to
17564 be in same section as initialized data. Reduces size of static
17565 heap section to that used during preload.
17566 (dump_bss_and_heap):
17567 (w32_fatal_reload_error):
17568 (read_in_bss):
17569 (map_in_heap): Obsolete functions removed.
17570 (unexec): Rounds off preload heap to nearest page rather than
17571 virtual allocation unit. Modified to match other changes.
17572
17573 * mem-limits.h: (get_lim_data): Use reserved_heap_size instead of
17574 data_region_size.
17575
17576 * makefile.nt: (TEMACS_TMP): New macro.
17577 ($(TEMACS)): Output to TEMACS_TMP from link, use post-link
17578 processor to add static heap section in support of new unexec.
17579
17580 * lastfile.c: Include config.h to pick up data layout pragmas.
17581 [WINDOWSNT]: Remove explicit pragma.
17582
175831999-01-12 Kenichi Handa <handa@etl.go.jp>
17584
17585 * coding.c (Fdecode_sjis_char): Decode Japanese Katakana character
17586 correctly.
17587 (Fencode_sjis_char): Encode Japanese Katakana character correctly.
17588
175891999-01-11 Dave Love <fx@gnu.org>
17590
17591 * coding.c (syms_of_coding): Doc fix for inhibit-eol-conversion.
17592
175931999-01-11 Richard Stallman <rms@psilocin.ai.mit.edu>
17594
17595 * keyboard.c (read_key_sequence): In key-translation-map and
17596 function-key-map, handle symbol with array as fn def.
17597 In function-key-map, handle symbol with keymap as fn def,
17598 and autoloaded definitions.
427ec082 17599
26901792
DL
17600 * puresize.h (BASE_PURESIZE): Increment to 500000.
17601
17602 * print.c (Qtemp_buffer_setup_hook): New variable.
17603 (syms_of_print): Init and staticpro that.
17604 (temp_output_buffer_setup): Run Qtemp_buffer_setup_hook.
17605
176061999-01-11 Kenichi Handa <handa@etl.go.jp>
17607
17608 * insdel.c (del_range_1): Call signal_after_change.
17609 (del_range_byte): Likewise.
17610 (del_range_both): Likewise.
17611 (del_range_2): Don't call signal_after_change.
17612
17613 * xdisp.c (message_dolog): Use insert_1_both to avoid running any
17614 Lisp code here.
17615
176161999-01-07 Richard Stallman <rms@psilocin.ai.mit.edu>
17617
17618 * eval.c (find_handler_clause): If SIG is nil (memory full error),
17619 never run the debugger, and don't bother checking the args
17620 to see whether the debugger should be run.
17621
176221999-01-06 Richard Stallman <rms@psilocin.ai.mit.edu>
17623
17624 * keyboard.c (read_key_sequence):
17625 Tell get_keyelt to look handle autoloads.
17626 Handle symbols defined as keymaps, and autoloaded keymaps.
17627
176281999-01-06 Kenichi Handa <handa@etl.go.jp>
17629
17630 * search.c (search_buffer): Fix previous change.
17631
176321999-01-06 Eli Zaretskii <eliz@gnu.org>
17633
17634 * w16select.c (set_clipboard_data): Terminate the text with a null
17635 character. Don't allow to put binary data into the clipboard.
17636 Return zero in case of success, 1 or 2 otherwise.
17637 (get_clipboard_data): Only bail out if the null character is in
17638 the last 32-byte chunk of clipboard data
17639 (Fw16_set_clipboard_data): Make ok and put_status be unsigned. If
17640 they save binary data, print a message in the echo area saying the
17641 text was not put into the clipboard.
17642
17643 * msdos.c (IT_write_glyphs): Move constant expression out of the loop.
17644
176451999-01-06 Andreas Schwab <schwab@gnu.org>
17646
17647 * systty.h [__GLIBC__ >= 2]: Check __FAVOR_BSD instead of
17648 _BSD_SOURCE, the latter is always defined.
17649
176501999-01-05 Richard Stallman <rms@psilocin.ai.mit.edu>
17651
17652 * fns.c (Frequire): Don't fail to unbind bindings.
17653
176541999-01-02 Richard Stallman <rms@psilocin.ai.mit.edu>
17655
17656 * emacs.c (main) [DOUG_LEA_MALLOC]: Don't call r_alloc_reinit.
17657
17658 * charset.c (Ffind_charset_region): Fix doc typo.
17659
176601998-12-31 Eli Zaretskii <eliz@mescaline.gnu.org>
17661
17662 * msdos.c (IT_write_glyphs): Convert unibyte characters to
17663 multibyte in unibyte buffers only.
17664
17665 * keymap.c (Fdefine_prefix_command): Accept a third argument NAME
17666 and pass it to Fmake_sparse_keymap.
17667
176681998-12-29 Richard Stallman <rms@psilocin.ai.mit.edu>
17669
17670 * alloc.c (MMAP_MAX_AREAS): New macro.
17671 (allocate_vectorlike, make_uninit_multibyte_string): Use that.
17672 (init_alloc_once): Use that.
17673
17674 * s/gnu-linux.h [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it.
17675
17676 * alloc.c (lisp_malloc, lisp_free): New functions.
17677 Use them instead of malloc, xmalloc, and xfree, for Lisp objects.
17678 Don't set allocating_for_lisp in the callers; let lisp_malloc do it.
17679 (n_interval_blocks, n_float_blocks): New variable.
17680 (n_cons_blocks, n_vectors, n_symbol_blocks): New variable.
17681 (n_marker_blocks, n_string_blocks): New variable.
17682 (init_intervals, make_interval): Set a count variable.
17683 Use lisp_malloc instead of setting allocating_for_lisp.
17684 (init_float, make_float, init_cons, Fcons): Likewise.
17685 (allocate_vectorlike, init_symbol, Fmake_symbol): Likewise
17686 (init_marker, allocate_misc, init_strings): Likewise.
17687 (make_uninit_multibyte_string): Likewise.
17688 (gc_sweep, compact_strings): Decrement the count variables.
17689
17690 * alloc.c (uninterrupt_malloc): Don't store Emacs's hooks
17691 into the old_..._hook variables.
17692
176931998-12-28 Richard Stallman <rms@psilocin.ai.mit.edu>
17694
17695 * keyboard.c: In each active map, for each menu bar item, use only
17696 the first submap.
17697 (menu_bar_one_keymap): Initialize menu_bar_one_keymap_changed_items.
17698 (menu_bar_item): Update and test menu_bar_one_keymap_changed_items.
17699 (syms_of_keyboard): Staticpro and init it.
17700
427ec082 17701 * xmenu.c (single_keymap_panes):
26901792
DL
17702
177031998-12-28 Andrew Innes <andrewi@delysid.gnu.org>
17704
17705 * w32fns.c (w32_msg_pump): Ignore WM_NULL message posted to thread
17706 by complete_deferred_msg.
17707 (post_character_message): Cancel all deferred messages when
17708 quit_char is typed, in order to break out of potential deadlocks.
17709 (cancel_all_deferred_msgs): New function.
17710 (complete_deferred_msg): Don't abort if msg not found; may have
17711 been cancelled.
17712 (Fw32_reconstruct_hot_key): Use pre-interned symbols.
17713 (Fw32_send_sys_command): Wait for system command to
17714 complete before returning.
427ec082 17715
26901792
DL
17716 * w32term.c (x_iconify_frame): Wait for frame to be iconified; do
17717 not set async_iconified flag though.
17718
17719 * w32proc.c: (Vw32_start_process_inherit_error_mode): New variable.
17720 (create_child): Use it.
17721 (syms_of_ntproc): Defvar it. Also fix docstrings for
17722 w32-start-process-share-console and w32-start-process-show-window.
17723
17724 * unexw32.c (_start): Force system calls accessing unmounted
17725 devices to fail without prompting.
17726
177271998-12-26 Richard Stallman <rms@psilocin.ai.mit.edu>
17728
17729 * emacs.c (main): Call memory_warnings and uninterrupt_malloc
17730 even when starting the dumped Emacs.
17731
17732 * keymap.c (Fsingle_key_description): Handle (control ?x) etc.
17733 (Fkey_description): Handle lists like vectors.
17734
177351998-12-21 Kenichi Handa <handa@etl.go.jp>
17736
17737 * callint.c (Fcall_interactively) <'C'>: Give Fread_char Qnil
17738 because of the change of the second argument of Fread_char.
17739
17740 * charset.c (Fcharset_after): Check range. If POS is out of
17741 range, return nil.
17742
17743 * keyboard.c (read_char): Don't bind input-method-exit-on-first-char.
17744
17745 * lread.c (Fread_char): Change the meaning of the second argument.
17746 (Fread_event): Likewise.
17747 (Fread_char_exclusive): Likewise.
17748
17749 * print.c (printchar): Fix previous change.
17750
17751 * process.c (read_process_output): Decide the multibyteness of
17752 string given to a process filter by a coding system used for
17753 decoding the process output.
17754
177551998-12-21 Eli Zaretskii <eliz@mescaline.gnu.org>
17756
17757 * xterm.c (dumpglyphs): Don't convert 7-bit ASCII characters via
17758 nonascii-translation-table.
17759 * msdos.c (IT_write_glyphs): Likewise.
17760 * fns.c (concat): Likewise.
17761 * charset.c (unibyte_char_to_multibyte): Likewise.
17762 * insdel.c (copy_text, count_size_as_multibyte): Likewise.
17763
177641998-12-21 Andreas Schwab <schwab@delysid.gnu.org>
17765
17766 * doc.c (Fdocumentation): Change the doc string for prefix
17767 commands to make it a complete sentence in one line.
17768
177691998-12-16 Petri Kaurinkoski <Petri.Kaurinkoski@hut.fi>
17770
17771 * s/irix6-5.h: New file.
17772 * s/irix6-0.h (IRIX6): Define this symbol.
17773 * s/usg5-4.h (TIOCSIGSEND): Don't define this if irix6.
17774 (bcopy, bcmp, bzero): Likewise.
17775 * m/iris4d.h (LIBS_MACHINE): Leave this blank if irix6.5.
17776 (C_SWITCH_MACHINE): New value for irix6.5.
17777
177781998-12-15 Richard Stallman <rms@gnu.org>
17779
17780 * fns.c (Fbase64_decode_region, Fbase64_decode_string):
17781 Do free malloc'd memory even in case of failure. Use xfree, not free.
17782 (Fbase64_encode_region, Fbase64_encode_string): Use xfree, not free.
17783 (base64_decode_1): Don't fail for short lines.
17784
17785 * print.c (printchar): Outputting multibyte characters
17786 to echo area always makes it multibyte.
17787
17788 * search.c (search_buffer): Don't use Boyer-Moore
17789 to search for an invalid multibyte code.
17790 In unibyte case, no need to check whether there are translations
17791 in more than one charset; just set charset_base to 0.
17792
177931998-12-15 Ken'ichi Handa <handa@delysid.gnu.org>
17794
17795 * print.c (printchar): Cancel previous change.
17796
177971998-12-15 Kenichi Handa <handa@etl.go.jp>
17798
17799 * callproc.c: Include "ccl.h".
17800 (Fcall_process): Doc-string modified. Set CODING_MODE_LAST_BLOCK
17801 bit in argument_coding.mode to tell encoding procedure to flush
17802 data. While encoding arguments, if argument_coding uses CCL
17803 program, initialize it again after encoding.
17804 (Fcall_process_region): Doc-string modified. Handle the case that
17805 NARGS is 3.
17806
17807 * ccl.c (CCL_SUCCESS): Don't set ccl->ic.
17808 (ccl_driver) <CCL_End>: Pretend that all source text is consumed.
17809 Set `ic' to the head of this command.
17810 (ccl_driver) <CCL_ReadMultibyteChar2>: Return a single byte 8-bit
17811 code for an invalid code.
17812 (setup_ccl_program): If the arg VEC is nil, skip setting ups
17813 based on VEC.
17814
17815 * charset.c (Qunknown): New variable.
17816 (init_charset_once): Intern and staticpro Qunknown. Initialize
17817 all elements of Vcharset_symbol_table to Qunknown.
17818 (find_charset_in_str): New arg MULTIBYTE. If it is zero, check
17819 unibyte characters only. For an invalid composition sequence, set
17820 CHARSETS[1] to 1.
17821 (Ffind_charset_region): Call find_charset_in_str with an
17822 appropriate MULTIBYTE arg. If undefined charsets are found,
17823 include `unknown' is the return value.
17824 (Ffind_charset_string): Likewise.
17825 (Fsplit_char): If CHAR is invalid, return `(unknown CHAR)'.
17826 (str_cmpchar_id): Max composite character code should be less than
17827 GENERIC_COMPOSITION_CHAR.
17828
17829 * charset.h (find_charset_in_str): Update declaration.
17830
17831 * coding.c (DECODE_DESIGNATION): Jump to label_invalid_code if
17832 final_char is invalid.
17833 (decode_coding): If coding->type is coding_type_ccl, call
17834 ccl_coding_driver even if SRC_BYTES is zero.
17835 (code_convert_region): Update `inserted' correctly after calling
17836 coding->post_read_conversion. Even after the code converter
17837 consumed all source text, call it once more if it is
17838 coding_type_ccl to flush out data.
17839
17840 * fileio.c (Finsert_file_contents): Even if INSERTED is zero, if
17841 CODING is handled by CCL program, call code_convert_region.
17842
17843 * fns.c (string_char_to_byte): Handle invalid multibyte sequence
17844 correctly.
17845 (string_byte_to_char): Likesize.
17846
17847 * print.c (printchar): When outputting a multibyte character to
17848 echo area, always set message_enable_multibyte to 1.
17849
17850 * process.c (read_process_output): If NBYTES is zero and
17851 CODING_MODE_LAST_BLOCK bit is not yet set in coding->mode, set it
17852 and try decoding again.
17853 (Fprocess_send_eof): If the coding system of PROCESS
17854 requires flushing, call send_process with null-string at first.
17855
17856 * w16select.c (Fw16_set_clipboard_data): Call find_charset_in_str
17857 with MULTIBYTE arg 0.
17858 * w32select.c (Fw32_set_clipboard_data): Likewise.
17859 * xselect.c (lisp_data_to_selection_data): Likewise.
17860
178611998-11-30 Richard Stallman <rms@psilocin.ai.mit.edu>
17862
17863 * search.c (Freplace_match): Set OPOINT clearly for the case
17864 where point is in the middle of the text to be replaced.
17865
17866 * xdisp.c (display_text_line): When handling HPOS < 0 after loop,
17867 if compute_motion fails to advance at all, don't back it up.
17868
178691998-12-10 Geoff Voelker <voelker@cs.washington.edu>
17870
17871 * w32.c (w32_get_long_filename): Handle root dirs correctly.
17872
427ec082 17873 * s/ms-w32.h (LOCALTIME_CACHE): Define.
26901792
DL
17874
178751998-12-09 Richard Stallman <rms@gnu.org>
17876
17877 * insdel.c (insert_from_buffer_1): Properly count the size
17878 of output from conversion to multibyte even when input
17879 is split across the gap.
17880
178811998-12-09 Karl Heuer <kwzh@gnu.org>
17882
17883 * keyboard.c: Doc fixes.
17884
17885 * s/irix4-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Increase space.
17886
178871998-12-08 Andrew Innes <andrewi@harlequin.co.uk>
17888
17889 * w32select.c (Fw32_get_clipboard_data): Do not delete isolated CR
17890 characters, only convert CRLF to LF.
17891
178921998-12-08 Geoff Voelker <voelker@cs.washington.edu>
17893
17894 * makefile.nt: Do string comparision of _NMAKE_VER.
17895
178961998-12-06 Eli Zaretskii <eliz@mescaline.gnu.org>
17897
17898 * Makefile.in (msdos.o): Depend on termchar.h, charset.h,
17899 coding.h, and disptab.h
17900
17901 * msdos.c (Vdos_unsupported_char_glyph): New variable.
17902 (syms_of_msdos): DEFVAR_LISP it.
17903 (IT_insert_glyphs, IT_delete_glyphs): New functions which abort Emacs.
17904 (internal_terminal_init): Set up insert_glyphs_hook and
17905 delete_glyphs_hook to call them. Explicitly set char_ins_del_ok to 0.
17906 (unibyte_display_via_language_environment): New variable.
17907 (syms_of_msdos): Devfar it.
17908 (IT_write_glyphs): Honor glyph aliasing via Vglyph_table.
17909 Encode the character codes of the glyphs according to the
17910 terminal_coding in effect.
17911
179121998-12-04 Andreas Schwab <schwab@delysid.gnu.org>
17913
17914 * fns.c (Fstring_as_unibyte): Doc fix.
17915
179161998-12-03 Andreas Schwab <schwab@delysid.gnu.org>
17917
17918 * charset.h: Declare char_valid_p.
17919
179201998-12-03 Eli Zaretskii <eliz@mescaline.gnu.org>
17921
17922 * dosfns.c (dos_cleanup): Flush and fsync the termscript stream.
17923
17924 * msdos.c (init_environment): Record the time we started up.
17925 (IT_reset_terminal_modes): Don't restore the screen if we exit too
17926 fast after startup (aka crash).
17927
179281998-12-02 Geoff Voelker <voelker@cs.washington.edu>
17929
17930 * w32.c (check_windows_init_file): Use decode_env_path when
17931 using EMACSLOADPATH.
17932
179331998-12-02 Jason Rumney <jasonr@altavista.net>
17934
17935 * w32term.c (dumpglyphs): Use unsigned char arrays.
17936 Use FONT_MAX_WIDTH to detect and fudge proportional fonts
17937 for various languages.
17938 Compensate for fonts that have underhangs (e.g., Thai).
17939
17940 * w32term.h (FONT_MAX_WIDTH): New macro.
17941
179421998-12-02 Andrew Innes <andrewi@harlequin.co.uk>
17943
17944 * keyboard.c (Qlanguage_change): New variable.
17945 (syms_of_keyboard): Init it.
17946 (kbd_buffer_get_event) [WINDOWSNT]: Generate language-change events.
17947 (lispy_function_keys) [HAVE_NTGUI]: Remove names for modifier
17948 keys; add name for Escape key; extend to 256 elements.
17949 (parse_modifiers): Make non-static.
17950
17951 * keyboard.h (parse_modifiers): Declare prototype.
17952
17953 * termhooks.h (event_kind) [WINDOWSNT]: Define language_change_event.
17954
17955 * w32fns.c (w32_last_error): Fix cut+paste error.
17956 (Vw32_phantom_key_code): New variable.
17957 (Qhyper, Qsuper, Qmeta, Qalt, Qctrl, Qcontrol, Qshift): New variables.
17958 (syms_of_w32fns): Init and register them.
17959 (reset_modifiers): Use a more precise test for whether Emacs has
17960 keyboard focus. Synchronize state of all keys that can be used as
17961 modifiers, to overcome problems arising from hot-keys.
17962 (w32_key_to_modifier): Be careful not to call intern() to avoid
17963 requiring thread synchronization.
17964 (w32_msg_pump): Handle new WM_EMACS_TOGGLE_LOCK_KEY message.
17965 (w32_wnd_proc): Ensure lock key indicator lights are updated
17966 promptly on Windows 9x, by passing key events on to the system.
17967 (w32_wnd_proc): Use Vw32_phantom_key_code to stop system
17968 responding to Windows key events when not wanted.
17969 (w32_wnd_proc): Undo the mapping of Ctrl-Pause into cancel and
17970 Ctrl-NumLock into pause by the system.
17971 (w32_wnd_proc): Don't translate key combinations containing any
17972 modifiers other than shift (and capslock).
17973 (w32_wnd_proc): Reset modifier key states when receiving focus (we
17974 can't determine the key states until we have keyboard focus).
17975 (Fw32_toggle_lock_key): New function.
17976 (syms_of_w32fns): Defsubr it.
17977
17978 * w32inevt.c (key_event): Use Vw32_phantom_key_code. Undo the
17979 mapping of Ctrl-Pause into cancel, and Ctrl-NumLock into pause.
17980 (w32_console_toggle_lock_key): New function.
17981
17982 * w32term.h (WM_EMACS_TOGGLE_LOCK_KEY): New define.
17983
179841998-11-30 Richard Stallman <rms@psilocin.ai.mit.edu>
17985
17986 * search.c (Freplace_match): Set OPOINT clearly for the case
17987 where point is in the middle of the text to be replaced.
17988
17989 * xdisp.c (display_text_line): When handling HPOS < 0 after loop,
17990 if compute_motion fails to advance at all, don't back it up.
17991
179921998-11-28 Richard Stallman <rms@psilocin.ai.mit.edu>
17993
17994 * xfns.c (Qouter_window_id): New variable.
17995 (syms_of_xfns): Initialize it.
17996 (x_report_frame_params): Set up outer-window-id parameter.
17997
17998 * keymap.c (Fsingle_key_description): Fix previous change.
17999
180001998-11-26 Ken'ichi Handa <handa@delysid.gnu.org>
18001
18002 * lisp.h (Frequire): Update declaration.
18003
180041998-11-26 Kenichi Handa <handa@etl.go.jp>
18005
18006 * ccl.c (ccl_driver) <CCL_TranslateCharacter>: Don't suppress MSB
18007 if the charset is ascii.
18008 (ccl_driver) <CCL_TranslateCharacterConstTbl>: Likewise.
18009
18010 * charset.c (non_ascii_char_to_string): If C has modifier bits,
18011 make an appropriate one byte string.
18012 (char_bytes): Handle the case that C is a single byte char or has
18013 modifier bits.
18014
18015 * charset.h (CHAR_BYTES): If C has modifier bits, return 1.
18016
18017 * cmds.c (internal_self_insert): If C has modifier bits, insert
18018 appropriate one byte char.
18019
180201998-11-25 Richard Stallman <rms@psilocin.ai.mit.edu>
18021
18022 * fns.c (Fstring_as_unibyte, Fstring_as_multibyte):
18023 Clear text properties in the new string.
18024
180251998-11-24 Felix Lee <flee@cygnus.com>
18026
18027 * process.c (read_process_output): Call signal_after_change.
18028
180291998-11-24 Richard Stallman <rms@psilocin.ai.mit.edu>
18030
18031 * buffer.c (syms_of_buffer): Doc fix.
18032
18033 * keyboard.c (syms_of_keyboard): Doc fix.
18034
180351998-11-22 Richard Stallman <rms@psilocin.ai.mit.edu>
18036
18037 * frame.c (Fset_mouse_position): Doc fix.
18038
180391998-11-20 Richard Stallman <rms@psilocin.ai.mit.edu>
18040
18041 * keymap.c (Fmake_keymap): Doc fix.
18042
180431998-11-17 Kenichi Handa <handa@etl.go.jp>
18044
18045 * category.c (word_boundary_p): If C1 or C2 are composite
18046 characters, test their first components.
18047
180481998-11-16 Richard Stallman <rms@sucrose.ai.mit.edu>
18049
18050 * window.c (temp_output_buffer_show): Around temp-buffer-show-hook,
18051 don't do save-excursion, just restore selected window.
18052
18053 * window.c (window_loop): For UNSHOW_BUFFER,
18054 always do consider minibuffer windows.
427ec082 18055
26901792
DL
180561998-11-16 Kenichi Handa <handa@etl.go.jp>
18057
18058 * charset.h (SINGLE_BYTE_CHAR_P): Check if C is negative or not.
18059
18060 * charset.c (non_ascii_char_to_string): If C is negative, signal error.
18061
18062 * lisp.h (CHAR_TABLE_REF): Check if IDX is negative or not.
18063
18064 * s/bsdos4.h: New file.
18065
180661998-11-16 Kenichi Handa <handa@etl.go.jp>
18067
18068 * Makefile.in (abbrev.o): Depend on charset.h
18069 (bytecode.o): Depend on charset.h.
18070
18071 * bytecode.c: Include charset.h.
18072
18073 * abbrev.c: Include charset.h.
18074
18075 * syntax.h (SYNTAX_ENTRY_INT): For a composite character, check
18076 the first component.
18077
180781998-11-13 Ehud Karni <ehud@unix.simonwiesel.co.il>
18079
18080 * m/aviion-intel.h (LIBS_MACHINE): Delete redundant definition.
18081
180821998-11-11 Richard Stallman <rms@gnu.org>
18083
18084 * xterm.c (XTread_socket): Fix previous change in case F == 0.
18085
18086 * s/dgux5-4-3.h (BSD_PGRPS): Add #undef.
18087
18088 * s/dgux4.h (BROKEN_FIONREAD): #undef commented out.
18089 (INTERRUPT_INPUT): #define commented out.
18090
18091 * m/aviion-intel.h: New file.
18092
180931998-11-11 Eli Zaretskii <eliz@delysid.gnu.org>
18094
18095 * fns.c (MAX_ALLOCA): New macro.
18096 (Fbase64_encode_region, Fbase64_encode_string,
18097 Fbase64_decode_region, Fbase64_decode_string): Don't allocate
18098 more than MAX_ALLOCA bytes with alloca; otherwise use xmalloc.
18099
181001998-11-11 Ken'ichi Handa <handa@delysid.gnu.org>
18101
18102 * insdel.c (byte_combining_error): Error message improved.
18103
18104 * charset.c (char_valid_p): Handle a composite character correctly.
18105
181061998-11-11 Kenichi Handa <handa@etl.go.jp>
18107
18108 * charset.c (str_cmpchar_id): Check the byte sequence for
18109 composition more rigidly.
18110 (Fcompose_string): Allow DEL to be composed. Signal error if STR
18111 contains an invalid multibyte sequence.
18112
18113 * xterm.c (x_list_fonts): Don't change the value of maxnames.
18114
181151998-11-10 Andrew Innes <andrewi@harlequin.co.uk>
18116
18117 * w32term.h (struct w32_display_info): New element faked_key.
427ec082
SS
18118 (WM_EMACS_SETKEYBOARDLAYOUT):
18119 (WM_EMACS_REGISTER_HOT_KEY):
26901792 18120 (WM_EMACS_UNREGISTER_HOT_KEY): New message definitions.
427ec082
SS
18121 (LEFT_WIN_PRESSED):
18122 (RIGHT_WIN_PRESSED):
26901792
DL
18123 (APPS_PRESSED): New console keyboard modifier flags.
18124
18125 * w32term.c (convert_to_key_event): Removed.
18126 (is_dead_key): Copied to w32fns.c.
18127 (w32_read_socket): Generate language_change_event. Modify to work
18128 with keyboard handling changes in w32_wnd_proc.
18129
18130 * w32proc.c (sys_kill): Set extended key flag when faking
18131 Ctrl-Break keystrokes.
18132 (Fw32_get_locale_info): Allow LONGFORM parameter to specify an
18133 arbitrary locale property using a numerical index.
18134 (Vw32_valid_codepages): New variable.
427ec082
SS
18135 (enum_codepage_fn):
18136 (Fw32_get_valid_codepages):
18137 (Fw32_get_console_codepage):
18138 (Fw32_set_console_codepage):
18139 (Fw32_get_console_output_codepage):
18140 (Fw32_set_console_output_codepage):
18141 (Fw32_get_codepage_charset):
18142 (Fw32_get_valid_keyboard_layouts):
18143 (Fw32_get_keyboard_layout):
26901792
DL
18144 (Fw32_set_keyboard_layout): New functions, exposing Windows locale
18145 handling functions.
18146 (syms_of_ntproc): Register them.
18147
18148 * w32inevt.c: Include w32term.h and w32heap.h.
18149 (map_keypad_keys):
18150 (Vw32_enable_caps_lock):
18151 (Vw32_enable_num_lock):
18152 (Vw32_pass_lwindow_to_system):
18153 (Vw32_pass_rwindow_to_system):
18154 (Vw32_lwindow_modifier):
18155 (Vw32_rwindow_modifier):
18156 (Vw32_apps_modifier):
18157 (Vw32_scroll_lock_modifier):
18158 (w32_key_to_modifier): Add externs.
18159 (w32_kbd_mods_to_emacs): Recognize Windows keys, Apps key, and
18160 Scroll Lock as potential modifiers; exclude numpad keys from
18161 effect by CapsLock; act on Vw32_enable_caps_lock; remove obsolete
18162 code.
18163 (is_dead_key): Copy from w32fns.c.
18164 (w32_kbd_patch_key): Comment attempt to improve handling of
18165 dead-keys, and system bug relating to same on Windows NT. Work
18166 around the bug by calling ToUnicode and then converting to the
18167 correct codepage.
18168 (map_virt_key): Removed obsolete variable.
18169 (lispy_function_keys): Add extern.
18170 (key_event): Major rework of keyboard input handling: optionally
18171 recognize Windows keys and Apps key as modifiers; optionally treat
18172 NumLock, CapsLock and ScrollLock as function keys; let system
18173 translate keystrokes to characters to avoid system bugs relating
18174 to dead-key handling; preserve shift distinction for control
18175 characters. Remove some obsolete code.
18176
18177 * makefile.nt ($(BLD)\w32inevt.obj): Add dependencies on w32term.h
18178 and w32heap.h.
18179
18180 * w32fns.c (Vw32_pass_optional_keys_to_system): Variable removed.
18181 (Vw32_pass_lwindow_to_system):
18182 (Vw32_pass_rwindow_to_system):
18183 (Vw32_lwindow_modifier):
18184 (Vw32_rwindow_modifier):
18185 (Vw32_apps_modifier):
18186 (Vw32_enable_num_lock):
18187 (Vw32_enable_caps_lock):
18188 (Vw32_scroll_lock_modifier): New variables.
18189 (modifier_set): Return toggle state for Scroll Lock.
18190 (w32_key_to_modifier): New function. Returns chosen modifier bit
18191 for given key.
18192 (w32_get_modifiers): Returns modifier flags for
18193 non-keyboard input events.
18194 (construct_console_modifiers): Renamed from construct_modifiers;
18195 recognize Windows and Apps keys as modifiers.
18196 (w32_get_key_modifiers): New function. Returns modifier flags for
18197 keyboard input events.
18198 (map_keypad_keys): Make non-static. Use second arg as extended
18199 flag.
18200 (w32_grabbed_keys): New variable.
18201 (HOTKEY, HOTKEY_ID, HOTKEY_VK_CODE, HOTKEY_MODIFIERS): New macros.
18202 (register_hot_keys):
18203 (unregister_hot_keys):
18204 (lookup_vk_code):
18205 (w32_parse_hot_key):
18206 (Fw32_register_hot_key):
18207 (Fw32_unregister_hot_key):
18208 (Fw32_registered_hot_keys):
18209 (Fw32_reconstruct_hot_key): New functions to support hotkeys.
18210 (post_character_message): New function.
18211 (w32_msg_pump): Handle new messages for using hotkeys and changing
18212 keyboard layout/language.
18213 (w32_wnd_proc): Major rework of keyboard input handling:
18214 optionally recognize Windows keys and Apps key as modifiers;
18215 optionally treat NumLock, CapsLock and ScrollLock as function
18216 keys; let system translate keystrokes to characters to avoid
18217 system bugs relating to dead-key handling; preserve shift
18218 distinction for control characters; forward keyboard
18219 layout/language changes to lisp; detect and convert hot-key events
18220 to normal keystrokes.
18221 (syms_of_w32fns): Register new functions and variables.
18222 (w32_last_error): New function for use in debugging.
18223
182241998-11-10 Kenichi Handa <handa@etl.go.jp>
18225
18226 * category.h (CATEGORY_SET): Adjusted for the change of
18227 cmpchar_component.
18228 (CATEGORY_SET): Likewise.
18229
18230 * charset.c (cmpchar_component): New arg NOERROR. Check
18231 composition char ID more strictly.
18232 (Fcmpchar_component): Call cmpchar_component with NOERROR arg zero.
18233 (Fcmpchar_cmp_rule): If CHARACTER should be composed relatively,
18234 return 255.
18235 (Fcompose_string): Signal error if STR contains a rule-based
18236 composition character.
18237
18238 * charset.h (cmpchar_component): Proto-type adjusted.
18239
182401998-11-09 Kenichi Handa <handa@etl.go.jp>
18241
18242 * charset.c (string_to_non_ascii_char): Return correct length for
18243 a charset of dimension 2 and composition character.
18244
182451998-11-08 Richard Stallman <rms@sucrose.ai.mit.edu>
18246
18247 * keymap.c (Fsingle_key_description): Handle generic characters.
18248
18249 * process.c (Fprocess_status): Doc fix.
18250
182511998-11-06 Ken'ichi Handa <handa@delysid.gnu.org>
18252
18253 * charset.c (init_charset_once): Fix previous change.
18254
182551998-11-06 Kenichi Handa <handa@etl.go.jp>
18256
18257 * charset.c (string_to_non_ascii_char): Fix previous change.
18258 (char_valid_p): Check the validity of CHARSET by CHARSET_DEFINED_P.
18259
18260 * charset.h (SPLIT_NON_ASCII_CHAR): Check dimension of an invalid
18261 character correctly.
18262 (STRING_CHAR): Handle an invalid charater correctly.
18263
182641998-11-05 Kenichi Handa <handa@etl.go.jp>
18265
18266 * charset.c (string_to_non_ascii_char): Fix previous change.
18267
18268 * charset.h (MAKE_NON_ASCII_CHAR): Check validity of CHARSET.
18269
18270 * editfns.c (Fstring_to_char): Don't return a multibyte character
18271 if STRING is a unibyte string.
18272
18273 * indent.c (MULTIBYTE_BYTES_WIDTH): Check validity of a multibyte
18274 character.
18275
18276 * xdisp.c (display_text_line): Check validity of a multibyte character.
18277 (display_string): Likewise. Handle an invalid character correctly.
18278
182791998-11-05 Karl Heuer <kwzh@gnu.org>
18280
18281 * insdel.c (Fcombine_after_change_execute): Return nil, not junk.
18282 If nothing to do, return immediately.
18283 (syms_of_insdel): Initialize combine_after_change_buffer.
18284
182851998-11-05 Richard Stallman <rms@gnu.org>
18286
18287 * xterm.c (XTread_socket): ButtonPress clears f->mouse_moved.
18288
182891998-11-04 Geoff Voelker <voelker@cs.washington.edu>
18290
18291 * w32term.c (w32_enable_unicode_output): Rename from
18292 w32_no_unicode_output.
18293 (w32_use_unicode_for_codepage, syms_of_w32term): Use new name
18294 and new semantics.
18295
182961998-11-04 Jason Rumney <jasonr@altavista.net>
18297
18298 * w32fns.c (w32_list_fonts): Report an error if a frame has not
18299 been created yet.
18300
18301 * w32term.c (dumpglyphs): Use FRAME_FONT for w32_fill_area.
18302
183031998-11-04 Kenichi Handa <handa@etl.go.jp>
18304
18305 * charset.c (string_to_non_ascii_char): Change the check for the
18306 varidity of multibyte form.
18307 (update_charset_table): Check validity of BYTES. Don't set
18308 bytes_by_char_head here.
18309 (init_charset_once): Set bytes_by_char_head completely.
18310
18311 * frame.c (do_switch_frame): Cancel previous change.
18312
18313 * print.c (print_string): Check validity of a character.
18314 (print): Likewise.
18315
18316 * sysdep.c [nec_ews_svr4]: Extern *_sobuf.
18317
18318 * m/ews4800.h, s/ux4800.h: New files.
18319
183201998-11-03 Theodore Jump <tjump@tertius.com>
18321
18322 * makefile.nt: Compile multiple source files when possible.
18323
18324 * w32faces.c (Qmouse_face): Replace definition with extern decl.
427ec082 18325
26901792
DL
183261998-11-03 Andrew Innes <andrewi@delysid.gnu.org>
18327
18328 * w32.c (stat): GetFileInformationByHandle can legitimately fail,
18329 so don't rely on it succeeding.
18330
18331 * w32fns.c (x_to_w32_font): Specify DEFAULT_CHARSET in the w32
18332 LOGFONT struct if x font doesn't specify the charset.
18333 (x_to_w32_charset): Change >= to == when testing results of
18334 stricmp.
18335
183361998-11-02 Richard Stallman <rms@sucrose.ai.mit.edu>
18337
18338 * fns.c (Frequire): New arg NOERROR.
18339
183401998-11-02 Andrew Innes <andrewi@harlequin.co.uk>
18341
18342 * fileio.c (Fsubstitute_in_file_name) [DOS_NT]: Fix typo.
18343
183441998-10-31 Richard Stallman <rms@psilocin.ai.mit.edu>
18345
18346 * xfaces.c (Qmouse_face): Replace definition with extern decl.
18347 (syms_of_xfaces): Initialization deleted.
18348
18349 * textprop.c (Qmouse_face): Variable definition moved here.
18350 (syms_of_textprop): Initialize it.
18351
18352 * data.c (set_internal): For built-in maybe-local vars,
18353 when BINDFLAG is set, do not mark them as local.
18354
183551998-10-31 Ken'ichi Handa <handa@delysid.gnu.org>
18356
18357 * insdel.c (replace_range): Fix previous change.
18358
183591998-10-31 Kenichi Handa <handa@etl.go.jp>
18360
18361 * editfns.c (Fsubst_char_in_region): Fix previous change.
18362 (Ftranslate_region): Fix previous change.
18363
18364 * fns.c (Fbase64_decode_region): Fix previous change.
18365
18366 * frame.c (do_switch_frame): Update minibuf_window if necessary.
18367
18368 * insdel.c (byte_combining_error): New function.
18369 (CHECK_BYTE_COMBINING_FOR_INSERT): Call byte_combining_error.
18370 (insert_from_string_1): Set *(GPT_ADDR) to 0 before calling
18371 CHECK_BYTE_COMBINING_FOR_INSERT.
18372 (insert_from_buffer_1): Likewise.
18373 (adjust_after_replace): Check the posibility of inhibitted byte
18374 combining correctly.
18375 (replace_range): Before signaling an error for inhibitted byte
18376 combining, recover the buffer in a safe state.
18377 (del_range_2): Check the posibility of inhibitted byte combining
18378 correctly.
18379
183801998-10-30 Andreas Schwab <schwab@delysid.gnu.org>
18381
18382 * xselect.c (Vselection_coding_system): Doc fix.
18383
18384 * fns.c (Fbase64_encode_region): Use SET_PT_BOTH instead of SET_PT
18385 when we have both char and byte position. Fix type clashes.
18386
18387 * eval.c (Fsignal): Use a separate format string when passing
18388 error message string to fatal, in case it contains %'s.
18389
18390 * editfns.c (Fchar_after): Fix type clashes.
18391
18392 * charset.c (Fchar_bytes): Doc fix.
18393 (char_bytes): Fix returned value to match returned type.
18394 (syms_of_charset): Fix type clash in initialisation of
18395 Vauto_fill_chars.
18396
183971998-10-29 Geoff Voelker <voelker@cs.washington.edu>
18398
18399 * w32console.c (initialize_w32_display): Use buffer coords
18400 instead of buffer size (which may be larger than the window).
18401
18402 * fileio.c (init_fileio_once): New function.
18403
18404 * emacs.c (main): Invoke init_fileio_once.
18405
184061998-10-28 Paul Eggert <eggert@twinsun.com>
18407
18408 * xterm.c (XTread_socket): Check the returned value of
18409 XmbLookupString more carefully.
18410
184111998-10-28 Kenichi Handa <handa@etl.go.jp>
18412
18413 * coding.c (DECODE_CHARACTER_ASCII): Check validity of inserted code.
18414 (DECODE_CHARACTER_DIMENSION1): Likewise.
18415 (DECODE_CHARACTER_DIMENSION2): Likewise.
18416 (decode_coding_sjis_big5): Check the 2nd byte of SJIS correctly.
18417
18418 * editfns.c (Fsubst_char_in_region): Fix previous change.
18419 (Ftranslate_region): Fix previous change.
18420
18421 * insdel.c (check_markers): Check if markers are at character boundry.
18422 (adjust_markers_for_insert): Fix previous change.
18423 (count_combining_before): Don't limit the check at BEGV.
18424 (count_combining_after): Don't limit the check at ZV.
18425 (CHECK_BYTE_COMBINING_FOR_INSERT): New macro.
18426 (insert_1_both): Call CHECK_BYTE_COMBINING_FOR_INSERT.
18427 (insert_from_string_1): Likewise.
18428 (insert_from_buffer_1): Likewise.
18429 (adjust_after_replace): Inhibit bytes combined across region
18430 boundary. Update end_unchanged correctly.
18431 (replace_range): Call CHECK_BYTE_COMBINING_FOR_INSERT. Update
18432 end_unchanged correctly.
18433 (del_range_2): Inhibit bytes combined across region boundary.
18434 Update end_unchanged correctly.
18435
184361998-10-27 Geoff Voelker <voelker@cs.washington.edu>
18437
18438 * w32.c (check_windows_init_file): Also look in load path specified
18439 in environment.
18440
18441 * w32console.c (Fset_message_beep): Recognize 'silent.
18442 (w32_sys_ring_bell): Do nothing for the 'silent sound.
427ec082 18443
26901792
DL
18444 * w32fns.c (w32_color_map_lookup): Remove duplicate definition.
18445
18446 * w32select.c (Vnext_selection_coding_system): New variable.
18447 (syms_of_w32select): DEFVAR_LISP it.
18448 (Fw32_set_clipboard_data): Use Vnext_selection_coding_system if
18449 non-nil. Always convert multibyte strings.
18450 (Fw32_get_clipboard_data): Use Vnext_selection_coding_system if
18451 non-nil. Always convert a string that includes non-ASCII characters.
427ec082 18452
26901792
DL
184531998-10-27 Richard Stallman <rms@psilocin.ai.mit.edu>
18454
18455 * fns.c (Fbase64_decode_string): Doc fix.
18456 (Fbase64_decode_region, Fbase64_encode_string Fbase64_encode_region):
18457 Likewise.
18458
184591998-10-27 Dave Love <fx@gnu.org>
18460
18461 * fns.c (Fbase64_decode_region, Fbase64_encode_region): Fix
18462 newline in doc string.
18463
184641998-10-27 Kenichi Handa <handa@etl.go.jp>
18465
18466 * editfns.c (Fsubst_char_in_region): Correctly handle the case
18467 that byte combining before happens.
18468 (Ftranslate_region): Likewise.
18469
18470 * insdel.c (adjust_after_replace): Correctly handle the case that
18471 both byte combining before and byte combining after happen.
18472 (replace_range): Likewise.
18473
184741998-10-26 Kenichi Handa <handa@etl.go.jp>
18475
18476 * category.c (syms_of_category): Doc-string modified.
18477
18478 * coding.c (code_convert_region): Kill the work buffer created by
18479 pre-write-conversion.
18480
184811998-10-25 Jason Rumney <jasonr@altavista.net>
18482
18483 * emacs.c (main) [HAVE_NTGUI]: Invoke syms_of_fontset().
18484
184851998-10-23 Kenichi Handa <handa@etl.go.jp>
18486
18487 * coding.c (code_convert_region): While preserving the orignal
18488 point, pay attention to the byte combining problem.
18489
18490 * fns.c (Fbase64_decode_region): Pay attention to the byte
18491 combining problem.
18492
18493 * insdel.c (adjust_markers_for_insert): Adjust markers by taking
18494 combined_before_bytes and combined_after_bytes into account.
18495 (count_combining_after): Handle the case that LENGTH is zero.
18496 (adjust_after_replace): Record deletion at correct buffer
18497 position. Handle the case that LEN is zero.
18498 (replace_range): Record deletion at correct buffer position.
18499 (del_range_2): Call adjust_makers_for_replace to adjust makers for
18500 combined bytes.
18501
185021998-10-21 Richard Stallman <rms@psilocin.ai.mit.edu>
18503
18504 * alloc.c (Fgarbage_collect): Block input around most of the function.
427ec082 18505
26901792
DL
185061998-10-21 Kenichi Handa <handa@etl.go.jp>
18507
18508 * coding.c (setup_coding_system): Fix setting up
18509 coding->spec.ccl.valid_codes for CCL based coding system.
18510 (code_convert_region): Set point to FROM before inserting the
18511 result of pre-write-funciton. Preserve original point.
18512 (code_convert_string): If coding->type is coding_type_ccl, do
18513 conversion even if the length of conversion region is zero.
18514
18515 * fontset.c: Include frame.h before fontset.h.
427ec082 18516 (list_fonts_func): Fix prototype.
26901792
DL
18517
18518 * frame.c: Include frame.h before fontset.h.
18519
18520 * xterm.c: Likewise.
18521
185221998-10-21 Jason Rumney <jasonr@altavista.net>
18523
18524 * x-list-font.c (Fx_list_fonts): Access frame parameters throught
18525 general macros. Don't call x_list_font directory, instead call a
18526 function set in list_fonts_func.
18527
18528 * fontset.h (list_fonts_func): Fix prototype.
18529
185301998-10-20 Jason Rumney <jasonr@altavista.net>
18531
18532 * makefile.nt (w32fns.c): Add x-list-font.c to dependancies.
18533
18534 * w32faces.c: Update comments referring to obsolete structs.
18535 (allocate_face, copy_face, face_eql, load_font,
18536 Fpixmap_spec_p, free_frame_faces, new_computed_face,
18537 frame_update_line_height, merge_faces, compute_base_face,
18538 Fset_face_attribute_internal): Use fontset support based on xfaces.c.
18539
18540 * w32fns.c: (Vx_pixel_size_width): New global variable.
18541 (unibyte_display_via_language_environment): New global variable.
18542 (x_set_font): Add support for setting fontsets.
18543 (Fx_create_frame): Add check_w32(). Initialize fontsets. Fix
18544 font names to match xlfd-tight-regexp.
18545 (w32_load_font): Rewrite based on x_load_font.
18546 (x_to_w32_charset, w32_to_x_charset): Add character sets. Use
18547 `iso8859-1' rather than `ansi'.
18548 (w32_to_x_font): Remove `-' from font name. Remove the `-' off the
18549 end. Move charset into `charset registry' field.
18550 (enum_font_cb2): Check charsets match. Include width in font list.
18551 (w32_list_fonts): Rewrite based on x_list_fonts.
18552 Moved from w32term.c to have access to enumfont_t struct.
18553 (Fx_list_fonts): w32 specific version eliminated. Include
18554 `x-list-fonts.c'.
18555 (w32_get_font_info, w32_query_font, w32_find_ccl_program): New
18556 functions for fontset support - adapted from x_ equivalents.
18557 (syms_of_w32fns): New lisp variables initialised. Function
18558 pointers for fontset.c set up.
18559
427ec082 18560 * w32term.c: Include fontset.h. Define codepage macros.
26901792
DL
18561 Add ENCODE_BIG5 macro from coding.c.
18562 (w32_no_unicode_output): New variable.
18563 (w32_codepage_for_charset, w32_use_unicode_for_codepage): New
18564 functions.
18565 (BUILD_WCHAR_T, BYTE1, BYTE2): New macros.
18566 (dumpglyphs): Rewrite based on xterm.c equivalent.
18567 (x_new_font): Use functionality provided in fontset.c.
18568 (x_new_fontset): New function based on the one in xterm.c.
18569 (syms_of_w32term): Add w32-no-unicode-output flag.
18570
427ec082 18571 * w32term.h: Remove redundant font_info struct definition.
26901792
DL
18572 (Vx_pixel_size_width_font_regexp,
18573 unibyte_display_via_language_environment): Declare variables.
427ec082 18574 (w32_list_fonts, w32_get_font_info, w32_query_font, w32_load_font):
26901792
DL
18575 Declare functions.
18576 (w32_output): New fields font_baseline and fontset.
18577 (FRAME_FONTSET, FRAME_W32_FONT_TABLE): New macros.
18578
18579 * w32xfns.c: Include charset.h and fontset.h.
18580
185811998-10-20 Richard Stallman <rms@psilocin.ai.mit.edu>
18582
18583 * syntax.c (syms_of_syntax): Fix the setup of Qscan_error.
18584
185851998-10-20 Eli Zaretskii <eliz@mescaline.gnu.org>
18586
18587 * msdos.c (mouse_init): Reset the button press/release info of the
18588 mouse driver.
18589 (mouse_preempted): New variable.
18590 (dos_rawgetc): Don't generate mouse events if mouse is preempted.
18591 (XMenuActivate): Preempt the mouse during menu-handling loop.
18592 Release the current time slice while idling in the menu-handling
18593 loop. Leave the loop only if the user pressed, then released the
18594 same button. Discard all mouse events that are pending in the
18595 event queue before exiting.
18596
185971998-10-19 Richard Stallman <rms@psilocin.ai.mit.edu>
18598
18599 * editfns.c (Fformat): Increase buffer size for floating format.
18600
186011998-10-17 Kenichi Handa <handa@etl.go.jp>
18602
18603 * charset.c (Vauto_fill_chars, Qauto_fill_chars): New variables.
18604 (syms_of_charset): Staticpro and initialize Qauto_fill_chars.
18605 Declare auto-fill-chars as a Lisp variable and initialize it.
18606
18607 * charset.h (Vauto_fill_chars): Extern it.
18608
18609 * cmds.c (internal_self_insert): Check Vauto_fill_chars.
18610
186111998-10-16 Kenichi Handa <handa@etl.go.jp>
18612
18613 * casefiddle.c (casify_object): Use make_string instead of
18614 make_specified_string to cope with byte-combining situation.
18615
18616 * coding.c (decode_coding_iso2022): Set coding->fake_multibyte to
18617 1 when encountered with a code of the range 0x80..0x9F.
18618
186191998-10-14 Eli Zaretskii <eliz@mescaline.gnu.org>
18620
18621 * callproc.c (Fcall_process) [MSDOS]: Use $TMPDIR instead of
18622 trying $TMP and $TEMP, since the former is always set in msdos.c.
18623 (Fcall_process_region) [DOS_NT]: When looking for a place to put
18624 the temporary files, check $TMPDIR as well.
18625
186261998-10-14 Richard Stallman <rms@psilocin.ai.mit.edu>
18627
427ec082 18628 * process.c (exec_sentinel, read_process_output):
26901792
DL
18629 Restore waiting_for_user_input_p after running Lisp code.
18630
18631 * keyboard.c (parse_menu_item): Avoid initialization for Lisp_Object.
18632 (command_loop): Likewise.
18633
186341998-10-14 Kenichi HANDA <handa@etl.go.jp>
18635
18636 * data.c (Faset): Fix previous change.
18637
18638 * fns.c (Ffillarray): Fix previous change.
18639
18640 * insdel.c (adjust_markers_for_combining): This function deleted.
18641 (adjust_markers_for_replace): Correctly adjust marker positions.
18642 Don't record these adjustment because they were recorded already.
18643 (combine_bytes): Don't adjust markers here.
18644
186451998-10-13 Richard Stallman <rms@psilocin.ai.mit.edu>
18646
18647 * minibuf.c (Fdisplay_completion_list): Put on mouse-face properties.
18648
186491998-10-12 Richard Stallman <rms@psilocin.ai.mit.edu>
18650
18651 * keyboard.c (Fclear_this_command_keys): New function.
18652 (syms_of_keyboard): defsubr it.
18653
18654 * macros.c (Fexecute_kbd_macro): Set real_this_command.
18655
186561998-10-12 Kenichi Handa <handa@etl.go.jp>
18657
18658 * ccl.c (CCL_DECODE_SJIS, CCL_ENCODE_SJIS): Swap the definitions.
18659
18660 * charset.c (Fstring): Call make_string instead of
18661 make_string_from_bytes.
18662 (Ffind_charset_region): Include `composition' in the returned list
18663 if the region contains any composite characters.
18664 (Ffind_charset_string): Include `composition' in the returned list
18665 if the string contains any composite characters.
18666 (find_charset_in_str): Handle CMPCHARP arg correctly.
18667
18668 * coding.c (shrink_decoding_region): If a charset other than ascii
18669 is initially designated to G0, don't shrink the region.
18670 (shrink_encoding_region): Likewise.
18671
18672 * data.c (Faset): If ARRAY is a multibyte string, pay attention to
18673 byte-combining situation.
18674
18675 * fns.c (clear_string_char_byte_cache): New function.
18676 (Ffillarray): Handle multibyte string correctly.
18677
18678 * lisp.h (clear_string_char_byte_cache): Extern it.
18679
18680 * xselect.c (lisp_data_to_selection_data): Call
18681 find_charset_in_str with CMPCHARP arg 0.
18682 * w16select.c (Fw16_set_clipboard_data): Likewise.
18683 * w32select.c (Fw32_set_clipboard_data): Likewise.
18684
186851998-10-11 Richard Stallman <rms@psilocin.ai.mit.edu>
18686
18687 * keyboard.c (parse_menu_item): For top level of menu bar,
18688 accept ordinary commands, and treat them just like a keymap.
18689
186901998-10-11 Richard Stallman <rms@sucrose.ai.mit.edu>
18691
18692 * xdisp.c (redisplay_window): Clear w->window_end_valid
18693 before running the window-scroll-functions hook, if appropriate.
18694
186951998-10-10 Richard Stallman <rms@psilocin.ai.mit.edu>
18696
18697 * data.c (Fstring_to_number): Don't recognize floating point
18698 if base is not 10.
18699
18700 * window.c (window_loop): New alternative CHECK_ALL_WINDOWS.
18701 (check_all_windows): New function for debugging tests.
18702 (syms_of_window): Initialize it.
18703
18704 * window.c (Qwindow_configuration_p): New variable.
18705 (Fwindow_configuration_frame): New function.
18706 (syms_of_window): defsubr it.
18707 (Fset_window_configuration): Return t if frame is live.
18708 Use Qwindow_configuration_p.
18709
18710 * xfns.c (check_x_display_info): Don't use selected_frame
18711 if it is dead.
18712
187131998-10-09 Geoff Voelker <voelker@cs.washington.edu>
18714
18715 * w32fns.c (x_create_bitmap_from_file): Skip special files.
18716
187171998-10-08 Kenichi Handa <handa@etl.go.jp>
18718
18719 * buffer.h (inhibit_modification_hooks): Extern it.
18720
18721 * buffer.c (inhibit_modification_hooks): New variable.
18722 (init_buffer_once): Initialize inhibit_modification_hooks to 0.
18723
18724 * charset.c (invalid_character): Prepend `0' to octal
18725 representation. Give error sufficient args.
18726
18727 * coding.c (code_convert_region): Set inhibit_modification_hooks
18728 to 1 before calling Fset_text_properties.
18729
18730 * insdel.c (signal_before_change): If inhibit_modification_hooks
18731 is nonzero, do nothing.
18732 (signal_after_change): Likewise.
18733
187341998-10-08 Emilio Lopes <Emilio.Lopes@Physik.TU-Muenchen.DE>
18735
18736 * process.c: Doc fixes.
18737
187381998-10-08 Richard Stallman <rms@sucrose.ai.mit.edu>
18739
18740 * syntax.c (scan_lists): Bring FROM back into range BEGV...ZV.
18741
187421998-10-07 Geoff Voelker <voelker@cs.washington.edu>
18743
18744 * w32.c (init_ntproc): Check for Windows init file.
18745 (term_ntproc): Do not check for it here.
18746
187471998-09-28 Kenichi Handa <handa@etl.go.jp>
18748
18749 * coding.c (check_composing_code): Fix previous change. Now it
18750 alwasy returns 0 or -1.
18751 (decode_coding_iso2022): Adjusted for the above change.
18752 (encode_coding_iso2022): When encoding the last block, flush out
18753 tailing garbage bytes.
18754 (setup_coding_system): Delete unnecessary code.
18755 (shrink_decoding_region): Check translation table. If ASCII
18756 should be translated, give up shrinking.
18757 (shrink_encoding_region): Likewise.
18758 (SHRINK_CONVERSION_REGION_THRESHHOLD): New macro.
18759 (SHRINK_CONVERSION_REGION): New macro.
18760 (code_convert_region): Call SHRINK_CONVERSION_REGION. Delete text
18761 properties here.
18762 (code_convert_region): In the case of encoding, always calulate
18763 correct character number.
18764 (code_convert_string): Call SHRINK_CONVERSION_REGION.
18765 (code_convert_region1): Don't delete text properties here.
18766
18767 * insdel.c (adjust_after_replace): Don't delete text properties here.
18768
18769 * term.c (encode_terminal_code): Handle raw 8-bit codes correctly.
18770
187711998-09-27 Richard Stallman <rms@psilocin.ai.mit.edu>
18772
18773 * emacs.c (sort_args): Fill extra space with NULL ptrs.
18774
187751998-09-26 Kenichi Handa <handa@etl.go.jp>
18776
18777 * coding.h (struct coding_system): New member composed_chars.
18778
18779 * coding.c (check_composing_code): If the current composing
18780 sequence doesn't end properly, return -1.
18781 (DECODE_CHARACTER_ASCII): Update coding->composed_chars.
18782 (DECODE_CHARACTER_DIMENSION1): Likewise.
18783 (decode_coding_iso2022): Check validity of a composing sequence.
18784 (code_convert_string): If the length of text to be converted is
18785 shrunk to zero, don't perform code conversion.
18786 (shrink_decoding_region): Fix previous change.
18787
18788 * editfns.c (Fformat): Check format control characters.
18789
187901998-09-25 Kenichi Handa <handa@etl.go.jp>
18791
18792 * coding.c (decode_eol): While decoding DOS-like eol, handle a
18793 single CR code correctly.
18794 (shrink_decoding_region) <CODING_CATEGORY_IDX_ISO_7 or
18795 CODING_CATEGORY_IDX_ISO_7_TIGHT>: Skip also 8-bit codes.
18796
187971998-09-23 Geoff Voelker <voelker@cs.washington.edu>
18798
18799 * w32fns.c (w32_color_map_lookup): New function.
18800 (x_to_w32_color): Approximate colors ending in numbers if necessary.
18801
188021998-09-22 Kenichi Handa <handa@etl.go.jp>
18803
18804 * ccl.c (ccl_driver): Report correct CCL program counter on error.
18805
18806 * xmenu.c (single_submenu) [! HAVE_MULTILINGUAL_MENU]: Make
18807 strings unibyte.
18808 (xmenu_show) [! HAVE_MULTILINGUAL_MENU]: Likewise.
18809
188101998-09-22 Kenichi Handa <handa@etl.go.jp>
18811
18812 * callint.c (Fcall_interactively): Don't use input method when
18813 reading a character in the case of `c' code letter.
18814
188151998-09-21 Dave Love <fx@gnu.org>
18816
18817 * editfns.c (Fsave_restriction): Doc fix.
18818
188191998-09-21 Richard Stallman <rms@gnu.org>
18820
18821 * lread.c (build_load_history): Do add to Vload_history
18822 even when dumping Emacs.
18823
188241998-09-18 Kenichi Handa <handa@etl.go.jp>
18825
18826 * ccl.c (CCL_WRITE_CHAR): Don't use bcopy.
18827 (ccl_driver): If BUFFER-MAGNIFICATION of the CCL program is 0,
18828 cause error if the program is going to output some bytes. When
18829 outputing a string to notify an error, check the case that
18830 DST_BYTES is zero.
18831
427ec082 18832 * coding.h (CODING_FINISH_INTERRUPT): New macro.
26901792
DL
18833
18834 * coding.c (ccl_coding_driver): If ccl_driver is interrupted by a
18835 user or the CCL program executed an invalid command, return
18836 CODING_FINISH_INTERRUPT.
18837 (code_convert_region): Pay attention to the converters return
18838 value CODING_FINISH_NORMAL and CODING_FINISH_INTERRUPT.
18839
188401998-09-16 Kenichi Handa <handa@etl.go.jp>
18841
18842 * coding.c (code_convert_region): Update beg_unchanged and
18843 end_unchanged after we delete the source text.
18844
18845 * insdel.c (adjust_markers_for_replace): Don't adjust a byte
18846 position if it is FROM.
18847 (adjust_markers_for_combining): New function.
18848 (combine_bytes): Call adjust_markers_for_combining instead of
18849 adjust_markers_for_replace.
18850 (adjust_after_replace): Record deletion of combining after bytes
18851 with the correct position.
18852 (replace_range): Likewise. Record the actual deletion after
18853 recoding deletions of combining bytes.
18854
18855 * xdisp.c (message_log_check_duplicate): Count byte length of the
18856 latest message correctly.
18857
188581998-09-12 Richard Stallman <rms@gnu.org>
18859
18860 * xdisp.c (redisplay_internal): Use TEMP_SET_PT_BOTH
18861 instead of SET_PT_BOTH.
18862 (try_window_id, display_text_line): Likewise.
18863
188641998-09-12 Karl Heuer <kwzh@gnu.org>
18865
18866 * data.c (Fmake_local_variable): Doc fix.
18867
188681998-09-10 Dave Love <fx@gnu.org>
18869
18870 * print.c (Fwith_output_to_temp_buffer): Doc fix.
18871
188721998-09-10 Richard Stallman <rms@gnu.org>
18873
18874 * s/irix6-0.h (TIOCSIGSEND): Add #undef.
18875 (bcopy, bcmp, bzero): Add #undef.
18876
18877 * keyboard.c (command_loop_1): When switching to selected window's bfr,
18878 first exit if selected frame is dead (no live frames remain).
18879 (read_key_sequence): Likewise.
18880
188811998-09-10 Karl Heuer <kwzh@gnu.org>
18882
18883 * emacs.c (main): Mention --display and --eval in help.
18884
188851998-09-07 Paul Eggert <eggert@twinsun.com>
18886
18887 * editfns.c (emacs_memftime): New function.
18888 (Fformat_time_string): Use it to handle null bytes in formats
18889 correctly.
18890
188911998-09-08 Kenichi Handa <handa@etl.go.jp>
18892
18893 * charset.c (Ffind_charset_region): Optimization for unibyte buffer.
18894 (Ffind_charset_string): For unibyte string, return (ascii).
18895
18896 * editfns.c (Fsubst_char_in_region): Call replace_range with the
18897 arg MARKERS 1.
18898
18899 * insdel.c (adjust_after_replace): Don't add combining bytes to
18900 the args given to adjust_point. Handle correctly the case that
18901 there are both before and after combining bytes.
18902 (replace_range): Likewise.
18903
189041998-09-07 Lars Magne Ingebrigtsen <larsi@gnus.org>
18905
18906 * fns.c (base64_decode_1, base64_encode_1): New functions.
18907 (Fbase64_decode_string, Fbase64_encode_string): New functions.
18908 (Fbase64_decode_region, Fbase64_encode_region): New functions.
18909
189101998-09-07 Karl Heuer <kwzh@gnu.org>
18911
18912 * eval.c (error): After enlarging buffer, write to it, not to buf.
18913
18914 * fns.c (Fwidget_put): Return VALUE instead of garbage.
18915
189161998-09-07 Kenichi Handa <handa@etl.go.jp>
18917
18918 * charset.h (STRING_CHAR_AND_LENGTH): Return correct value in
18919 ACTUAL_LEN even if LEN is too short to have a valid multibyte form.
18920 (STRING_CHAR_AND_CHAR_LENGTH): Likewise.
18921
18922 * coding.c (ccl_coding_driver): Always calculate correct mulibyte
18923 chars in produced byte sequence.
18924 (Ffind_operation_coding_system): Doc-string fixed.
18925
18926 * insdel.c (count_combining_after): Check also preceding bytes at
18927 POS if all characters in STRING are not character head.
18928
189291998-09-06 Paul Eggert <eggert@twinsun.com>
18930
18931 * editfns.c (Fformat_time_string, Fdecode_time, Fcurrent_time_zone):
18932 Don't assume that localtime and gmtime return non-NULL.
18933
189341998-09-06 Lars Magne Ingebrigtsen <larsi@gnus.org>
18935
18936 * fns.c (Fbase64_decode_string, Fbase64_encode_string,
18937 base64_decode_1, Fbase64_decode_region, Fbase64_encode_region):
18938 New functions.
18939
189401998-09-06 Richard Stallman <rms@gnu.org>
18941
18942 * editfns.c (Fformat): Detect incomplete format spec at string's end.
18943
18944 * lread.c (Fload): Handle case where openp finds a magic file
18945 but it has no `load' handler or that handler calls `load'.
18946 If FOUND != FILE, find FOUND's handler even if inhibited for FILE.
18947
189481998-09-04 Dave Love <fx@gnu.org>
18949
18950 * buffer.c (enable-multibyte-characters): Doc fix.
18951
189521998-09-02 Geoff Voelker <voelker@cs.washington.edu>
18953
18954 * w32heap.c (allocate_heap): Define NTHEAP_PROBE_BASE by default.
18955
189561998-09-01 Kenichi Handa <handa@etl.go.jp>
18957
18958 * editfns.c (Ftranspose_regions): Use BYTE_POS_ADDR to get an
18959 address in buffer from byte-position.
18960
189611998-09-01 Eli Zaretskii <eliz@delysid.gnu.org>
18962
18963 * w16select.c (Vnext_selection_coding_system): New variable.
18964 (syms_of_win16select): DEFVAR_LISP it. No need to staticpro
18965 Vselection_coding_system.
18966 (Fw16_set_clipboard_data): Always convert multibyte strings. Use
18967 Vnext_selection_coding_system if non-nil.
18968 (Fw16_get_clipboard_data): Always convert a string that includes
18969 non-ASCII characters. Use Vnext_selection_coding_system if
18970 non-nil.
18971
189721998-08-31 Andrew Innes <andrewi@harlequin.co.uk>
18973
18974 * w32fns.c (w32_wnd_proc): Always zero button_state when releasing
18975 mouse capture.
18976
189771998-08-31 Kenichi Handa <handa@etl.go.jp>
18978
18979 * xterm.c (x_load_font): If SIZE is 0, don't use a name
18980 x_list_font returns.
18981
189821998-08-31 Paul Eggert <eggert@twinsun.com>
18983
18984 * lread.c (read1): Don't assume that atof ("-0.0") yields +0.0.
18985 Handle leading '-' uniformly for zeros, infinities, and NaNs.
18986
189871998-08-31 Eli Zaretskii <eliz@delysid.gnu.org>
18988
18989 * msdos.c (IT_cmgoto): When tracking echo area messages with the
18990 cursor, save and restore previous cursor position in the
18991 minibuffer.
18992
189931998-08-31 Kenichi Handa <handa@etl.go.jp>
18994
18995 * charset.c (unibyte_char_to_multibyte):
18996 Vnonacii_translation_table will convert a 7-bit charcater.
18997 (multibyte_char_to_unibyte): Handle the case that
18998 Vnonacii_translation_table converts a multibyte charcater to a
18999 unibyte charcter of less than 128.
19000 (init_charset_once): Initialize nonascii_insert_offset and
19001 Vnonacii_translation_table.
19002
19003 * coding.c (decode_coding): Even if SRC_BYTES is zero, try
19004 processing if CODING requires flushing.
19005 (encode_coding): Likewise.
19006 (code_convert_region): Likewise.
19007 (code_convert_string): Likewise.
19008
19009 * fns.c (concat): If Vnonascii_translation_table is non-nil, try
19010 to convert a character less than 160 to multibyte.
19011 * insdel.c (copy_text): Likewise.
19012 (count_size_as_multibyte): Likewise.
19013 * xterm.c (dumpglyphs): Likewise.
19014
190151998-08-29 Paul Eggert <eggert@twinsun.com>
19016
19017 * data.c (arith_driver, float_arith_driver): Compute (- x) by
19018 using negation, not subtraction; this makes a difference with
19019 IEEE floating point arithmetic (and also if integer arithmetic
19020 is ones' complement or signed-magnitude!).
19021
190221998-08-29 Karl Heuer <kwzh@gnu.org>
19023
19024 * xfns.c (x_create_bitmap_from_file): Fail immediately if magic.
19025
190261998-08-28 Ken'ichi Handa <handa@delysid.gnu.org>
19027
19028 * charset.c (Fchar_bytes): Add \n\ in doc-string.
19029
190301998-08-28 Paul Eggert <eggert@twinsun.com>
19031
19032 * s/sol2-4.h (NOT_USING_MOTIF): New macro.
19033 (LD_SWITCH_SYSTEM_TEMACS): Put /usr/dt/lib in the link library
19034 path only if we're not building with Motif.
19035
190361998-08-28 Kenichi Handa <handa@etl.go.jp>
19037
19038 * insdel.c (adjust_after_replace): Fix the code to record undo
19039 information for the case that `before combining' happens. Remove
19040 text properties which are added to the new text by
19041 offset_intervals.
19042
19043 * coding.c (code_convert_region1): Remove all text properties of
19044 the region.
19045
190461998-08-28 Kenichi Handa <handa@etl.go.jp>
19047
19048 * charset.h (CHAR_BYTES): New macro.
19049
19050 * charset.c (Fchar_bytes): Now always return 1.
19051 (char_bytes): New function.
19052
19053 * editfns.c (Fposition_bytes): If the arg POSITION is out of
19054 range, return nil.
19055 (Fbyte_to_position): If the arg BYTEPOS is out of range, return
19056 nil.
19057
19058 * data.c (Faset): Use macro CHAR_BYTES instead of Fchar_bytes.
19059 * fns.c (concat): Likewise.
19060 * insdel.c (count_size_as_multibyte): Likewise.
19061 * xdisp.c (message_dolog): Likewise.
19062
190631998-08-27 Kenichi Handa <handa@etl.go.jp>
19064
19065 * coding.c (detect_coding_iso2022): Handle ESC N and ESC O
19066 correctly. They are for SS2 and SS3 respectively.
19067 (ccl_coding_driver): Fix previous change.
19068
190691998-08-26 Paul Eggert <eggert@twinsun.com>
19070
19071 * xterm.c (fixup_locale): New function. For now, it resets
19072 LC_TIME to "C" (reverting the 1998-08-07 change), and also
19073 resets LC_MESSAGES to "C".
19074 (x_term_init): Use it to fix up the locale after setlocale
19075 (LC_ALL, "").
19076
190771998-08-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19078
19079 * xterm.c (x_calc_absolute_position): Cast argument to XFree, in
19080 case it was prototyped the old way.
19081
190821998-08-25 Kenichi Handa <handa@etl.go.jp>
19083
19084 * xterm.c (x_list_fonts): Work-around for the case XGetAtomName
19085 returns a null string. This happens when dxpc 3.7 is being used.
19086
190871998-08-24 Andreas Schwab <schwab@delysid.gnu.org>
19088
19089 * keyboard.c (input-method-previous-message): Doc fix.
19090
19091 * coding.c (file-coding-system-alist,
19092 select-safe-coding-system-function): Doc fix.
19093
190941998-08-23 Kenichi HANDA <handa@etl.go.jp>
19095
19096 * coding.c (detect_coding_iso2022): Don't check the byte length of
19097 succeeding codes (0xa0..0xFF) if the codes follows single shift
19098 code (SS2 or SS3).
19099
191001998-08-21 Ken'ichi Handa <handa@delysid.gnu.org>
19101
19102 * coding.c (detect_coding_system): If detect_eol_type returns
19103 CODING_EOL_INCONSISTENT, set eol_type to CODING_EOL_UNDECIDED
19104 correctly.
19105
19106See ChangeLog.7 for earlier changes.