Move some definitions.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
13f5ad37
KH
12000-07-26 Kenichi Handa <handa@etl.go.jp>
2
3 * print.c (print_object): If vector printing is truncated, print
4 "..." to indicate it as well as the case of list printing.
5
070fe99c
GM
62000-07-25 Gerd Moellmann <gerd@gnu.org>
7
969065c3
GM
8 * xdisp.c (next_element_from_display_vector): Improve comments.
9
10 * lisp.h (GLYPH_MASK_CHAR, GLYPH_MASK_FACE): Use 19 bits
11 for the character code, and the rest for the face id as in 20.x.
12 (FAST_GLYPH_FACE, FAST_MAKE_GLYPH): Changed accordingly.
13
14 * window.c (window_display_table): Cleaned up.
15
070fe99c
GM
16 * syntax.c (Fforward_word): Add last arg nil in call of
17 Fconstrain_to_field.
18
bad77ef7
EZ
192000-07-25 Eli Zaretskii <eliz@is.elta.co.il>
20
969065c3 21 * fileio.c (Frename_file) [DOS_NT]: If the file names are
bad77ef7
EZ
22 identical but for the letter-case, don't call
23 barf_or_query_if_file_exists.
24
c28da489
MB
252000-07-25 Miles Bader <miles@gnu.org>
26
27 * editfns.c (find_field): Honor special `boundary' fields.
28 (Qboundary): New variables.
29 (syms_of_editfns): Initialize Qboundary.
30 (Fconstrain_to_field): Add the INHIBIT-CAPTURE-PROPERTY argument.
31 Use scan_buffer instead of find_before_next_newline, because it
32 allows us to detect the boundary case where there's a newline at
33 the search limit.
34 * lisp.h (Fconstrain_to_field): Update external declaration.
35
e3c31fd5
GM
362000-07-24 Gerd Moellmann <gerd@gnu.org>
37
38 * print.c (temp_output_buffer_setup): Don't call1 Vrun_hooks
39 if that is nil.
c28da489 40
c66c29a2
DL
412000-07-24 Dave Love <fx@gnu.org>
42
43 * s/sunos4-0.h, s/sol2.h:
44 (LIBS_TERMCAP): Move from m/sparc.h.
45
46 * m/sparc.h (TERMINFO): Moved to system files (probably only
47 relevant for sunos4 judging by its vintage).
48 (BITS_PER_LONG, BITS_PER_EMACS_INT, _LP64): Define conditional on
49 __arch64__.
50
fbe0a958
EZ
512000-07-24 Eli Zaretskii <eliz@is.elta.co.il>
52
53 * xmenu.c (keymap_panes): Pass the keymap's prompt as the pane
54 name to single_keymap_panes.
55
7d88e5c9
AS
562000-07-24 Andreas Schwab <schwab@suse.de>
57
58 * fns.c (Fmakehash): Pass Qeql to Fmake_hash_table if TEST is nil.
59
e024b101
GM
602000-07-24 Gerd Moellmann <gerd@gnu.org>
61
62 * xdisp.c (with_echo_area_buffer): Take additional EMACS_INT
63 parameters instead of using int parameters. Expect FN to accept
64 EMACS_INT parameters.
65 (display_echo_area, resize_echo_area_axactly, current_message)
66 (truncate_echo_area, set_message_1): Call with_echo_area_buffer
67 with new argument list.
68 (resize_mini_window_1): New callback function.
69 (current_message_1, truncate_message_1, set_message_1): Change
70 parameter lists to the new format expected by
71 with_echo_area_buffer.
72
25c1a9ce
KH
732000-07-24 Kenichi Handa <handa@etl.go.jp>
74
75 * fontset.c (fontset_ref): Remove INLINE declaration.
76 (fontset_ref_via_base): Likewise.
77 (Fset_fontset_font): Convert FAMILY and REGISTRY specifications
78 to downcase.
79
7f987ac0
EZ
802000-07-23 Eli Zaretskii <eliz@is.elta.co.il>
81
82 * msdos.c (IT_note_mouse_highlight): Process overlays in the
83 correct order of priority. If help echo was found in an overlay,
84 use that overlay as the object in which the help echo was found.
85
e2db3069
MB
862000-07-22 Miles Bader <miles@gnu.org>
87
88 * textprop.c (Fprevious_single_char_property_change): The initial
89 property value should be from the position preceding POSITION, not
90 following it.
91
5e3203e4
EZ
922000-07-22 Eli Zaretskii <eliz@is.elta.co.il>
93
94 * coding.c (syms_of_coding): Doc fix for
95 inhibit-iso-escape-detection.
96
62145073
GM
972000-07-21 Gerd Moellmann <gerd@gnu.org>
98
c20aeb83
GM
99 * xterm.c (note_mouse_highlight): Process overlays in the right
100 order of priority.
101
743934db
GM
102 * keyboard.c (show_help_echo, gen_help_event): Extend comments.
103
104 * xterm.c (note_mouse_highlight): If help-echo was found in an
105 overlay, use that overlay as the object in which the help was
106 found.
107
d1dc7e43
GM
108 * window.c (foreach_window_1): Fix typo reversing an if-condition.
109
62145073
GM
110 * window.c (foreach_window): Instead of a fake variable argument
111 list, take one USER_DATA argument.
112 (foreach_window_1): Likewise, and call callback functions with two
113 args, the window and USER_DATA.
114 (struct check_window_data): New struct.
115 (check_window_containing): Use it.
116 (window_from_coordinates): Set up a struct check_window_data for
117 foreach_window.
118 (add_window_to_list, freeze_window_start): Change parameters
119 according to new calling convention.
120
121 * window.h (foreach_window): Change prototype.
122
123 * buffer.c (Fprevious_overlay_change): Avoid memory leak.
124
1252000-07-21 Eli Zaretskii <eliz@is.elta.co.il>
126
127 * xmenu.c (menu_help_callback): Call show_help_echo with
128 additional arguments OBJECT and POS.
129
11270583
KH
1302000-07-21 Kenichi Handa <handa@etl.go.jp>
131
07b14857
KH
132 * data.c (Faset): Allow storing any multibyte character in a
133 string. Convert unibyte string to multibyte if necessary.
134
11270583
KH
135 * xfns.c (x_encode_text): New function.
136 (x_set_name): Use x_encode_text.
137 (x_set_title): Likewise.
138
139 * xselect.c (lisp_data_to_selection_data): Use x_encode_text.
140
141 * xterm.h (x_encode_text): Add prototype.
142
bc75b4fd
DL
1432000-07-20 Dave Love <fx@gnu.org>
144
145 * ccl.c (Fccl_execute_on_string): Don't check xmalloc return. Use
146 xfree, not free.
147
48c14970
EZ
1482000-07-20 Eli Zaretskii <eliz@is.elta.co.il>
149
150 * msdos.c (help_echo_window): New variable.
151 (syms_of_msdos): Initialize and staticpro it.
152 (IT_note_mode_line_highlight): Set help_echo_window.
153 (IT_note_mouse_highlight): Ditto.
154 (dos_rawgetc): Store help_echo_window in the second event produced
155 for HELP_EVENTs.
156
157 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight):
158 Record the object that generated the help echo and the position of
159 that object in help_echo_object and help_echo_pos. Record that
160 some glyphs in a row are displayed in mouse-face.
161 (IT_update_begin): Don't clear mouse highlight unless one of the
162 enabled glyph rows is marked as being displayed in mouse-face.
163 (dos_rawgetc): Generate 2 events for HELP_EVENT. Pass the object
164 and position recorded in help_echo_object and help_echo_pos to the
165 event queue.
166 (IT_menu_display): Accept a new argument PN: the pane number of
167 the current menu pane. Record the pane number and the item
168 number of the item which has associated help string.
169 (XMenuActivate): Update the prototype for help_callback in
170 function declaration. Call IT_menu_display with the current menu
171 pane number as an additional argument. Call help_callback with
172 two additional arguments: the pane number and the item number of
173 the menu item associated with the help text.
174 (help_echo_object, help_echo_pos): New variables.
175 (syms_of_msdos): Initialize them and staticpro help_echo_object.
176
177 * msdos.h (XMenuActivate): Update prototype.
178
4279296d
GM
1792000-07-19 Gerd Moellmann <gerd@gnu.org>
180
47db06aa
GM
181 * xdisp.c (with_echo_area_buffer): Call FN with more arguments.
182 Add some more prototypes.
183
184 * xterm.c, xterm.h: Add some more prototypes.
185
186 * lisp.h (Fnext_single_char_property_change): Add prototype.
187
188 * dispnew.c (direct_output_for_insert): Remove confusing
189 outer local variable mouse_face_overwritten_p.
190 (glyph_row_slice_p): Put in #ifdef GLYPH_DEBUG.
191
4279296d
GM
192 * alloc.c (allocate_string_data): Don't copy old string contents.
193
670acd62
KH
1942000-07-19 Kenichi Handa <handa@etl.go.jp>
195
196 * coding.c (code_convert_region): Delete text properties before
197 shrinking the conversion region.
198
7cea38bc
GM
1992000-07-18 Gerd Moellmann <gerd@gnu.org>
200
dc1cac59
GM
201 * dispnew.c (update_text_area): Write the whole row if it
202 has mouse-face in it.
203
85a8aca9
GM
204 * xfaces.c (face-alternative-font-family-alist): Remove
205 DEFVAR_LISP; staticpro instead.
206
7cea38bc
GM
207 * xmenu.c (menu_help_callback): Call show_help_echo with
208 new arguments.
209
210 * keyboard.c (show_help_echo): Add parameter WINDOW.
211 (read_char): Call show_help_echo with window extracted from Lisp
212 help event.
213 (gen_help_event): Add parameter WINDOW.
214
215 * keyboard.h (show_help_echo, gen_help_event): Change prototypes.
216
217 * xterm.c (help_echo_window): New variable.
218 (note_mouse_highlight, note_tool_bar_highlight): Set
219 help_echo_window.
220 (XTread_socket): Pass help_echo_window to gen_help_event.
221 (syms_of_xterm): Initialize and staticpro help_echo_window.
222
f8276b77
DL
2232000-07-18 Dave Love <fx@gnu.org>
224
225 * Makefile.in: Fix dependencies of blockinput.h on atimer.h,
226 systime.h.
227
088831a6
GM
2282000-07-18 Gerd Moellmann <gerd@gnu.org>
229
3d6cd763
GM
230 * alloc.c (allocate_string_data): If string had already data
231 assigned, copy old contents to new string data.
232
233 * coding.c (syms_of_coding): Fix typo in spelling of variable
234 `inhibit-iso-escape-detection'.
235
088831a6
GM
236 * alloca.c (free) [emacs && EMACS_FREE]: Define as EMACS_FREE.
237
238 * Makefile.in: Add dependencies on dispextern.h.
239 (alloca.o): Don't define malloc and define EMACS_FREE instead of
240 `free'; both can conflict with system header files.
241
bc8a8d55
KH
2422000-07-18 Kenichi Handa <handa@etl.go.jp>
243
244 * charset.h (MAKE_CHAR): Return reasonable code even if CHARSET is
245 undefined.
246
069f5950
DL
2472000-07-18 Dave Love <fx@gnu.org>
248
249 * window.c (Fwindow_list): Declare arg `window'.
250
aa96c820
KH
2512000-07-18 Kenichi Handa <handa@etl.go.jp>
252
253 * coding.c (setup_coding_system): Don't override the explicitly
254 specified designations.
255
06be8d32
MB
2562000-07-15 Miles Bader <miles@gnu.org>
257
258 * editfns.c (char_property_eq, char_property_stickiness): Renamed
259 from `text_property_eq' and `text_property_stickiness', respectively.
260 (find_field, Fconstrain_to_field, char_property_eq)
261 (char_property_stickiness): Changed to call char-property functions
262 instead of text-property-only ones.
263
264 * textprop.c (Fnext_single_char_property_change): Made a subr (was
265 `next_single_char_property_change'). Do more error checking, and
266 cleanup limit behavior.
267 (Fprevious_single_char_property_change): New function.
268 (syms_of_textprop): Initialize new subrs.
269
270 * xdisp.c (display_prop_end, invisible_text_between_p):
271 Call Fnext_single_char_property_change instead of
272 next_single_char_property_change.
273
3fddcdc3
JR
2742000-07-15 Jason Rumney <jasonr@gnu.org>
275
276 * w32menu.c (w32_menu_show): Call free_menubar_widget_value_tree
277 after menu is finished with.
278 (add_menu_item): Only consider wv->title as a menu title.
279 (w32_menu_display_help): Add OBJECT and POS to show_help_echo.
280
281 * w32fns.c (w32_wnd_proc) [WM_DRAW_ITEM]: Do not try to draw a
282 null title.
283 (FONT_REGEXP): Remove unused macro, and its sub-components.
284 (syms_of_w32fns): Replace underscore in w32-enable-synthesized-fonts.
285
286 * w32term.c (help_echo_object, help_echo_pos): New variables.
287 (note_mode_line_highlight): Store additional information about the
288 help-echo in help_echo_object and help_echo_pos. Check both
289 `local-map' and `keymap' properties for changing the cursor
290 (note_mouse_highlight): Store additional information about the
291 help-echo in help_echo_object and help_echo_pos.
292 (note_tool_bar_highlight): Set help_echo_object to nil and
293 help_echo_pos to -1.
294 (w32_read_socket): Use gen_help_event instead of filling
295 input_events manually.
296 (syms_of_w32term): Staticpro help_echo_object.
297 (x_update_window_end): Add parameter MOUSE_FACE_OVERWRITTEN_P. If
298 set, arrange for a mouse-highlight redisplay in
299 XTframe_up_to_date.
300 (x_clear_mouse_face): New function.
301 (w32_redisplay_interface): Add pointer to x_clear_mouse_face.
302 (x_update_window_begin): No need to turn off the mouse
303 highlight here.
304 (show_mouse_face): Set the mouse_face_p flag of glyph rows
305 depending on whether they contain glyphs highlighted in
306 mouse-face.
307 (x_fill_stretch_glyph_string): Consume runs of stretch
308 glyphs instead of a single one.
309 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
310 with new argument list.
311 (x_set_glyph_string_gc): Make sure the face's GC is valid.
312 (x_append_glyph, x_append_composite_glyph)
313 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
314 changes in struct glyph starting 1999-12-27. See comments for
315 xterm.c on 2000-07-05.
316
178c5d9c
SS
3172000-07-14 Sam Steingold <sds@gnu.org>
318
319 * xfaces.c (realize_x_face): Fix the last patch:
320 check `default_face' before dereferencing.
321
6fe533f6
DL
3222000-07-14 Dave Love <fx@gnu.org>
323
069f5950 324 * syntax.c (back_comment): Add null default in switch (for pcc).
6fe533f6 325
dd7b81cf
KH
3262000-07-14 Kenichi Handa <handa@etl.go.jp>
327
0693904a 328 * xfaces.c (realize_x_face): Make fontset using the base of the
178c5d9c 329 default_face's fontset, not using the default fontset.
0693904a 330
dd7b81cf
KH
331 * coding.c (inhibit_iso_escape_detection): New variable.
332 (syms_of_coding): Make it a Lisp variable.
333 (detect_coding_iso2022): If inhibit_iso_escape_detection is
334 nonzero, ignore ISO2022's escape sequence.
335
d5aa31d8
GM
3362000-07-14 Gerd Moellmann <gerd@gnu.org>
337
e5acf0ca
GM
338 * alloca.c (malloc) [emacs]: Define as xmalloc.
339
bd23a692
GM
340 * xfns.c (Fx_show_tip): If frame parameters contain a position,
341 use that instead of the mouse position. Add parameters DX and DY.
342
343 * dispextern.h (Fx_show_tip): Adjust number of parameters
344 in prototype.
345
9662da0b
GM
346 * keyboard.c (show_help_echo): Add parameters OBJECT and POS.
347 if HELP is a function, call it with OBJECT and POS as parameters
348 to get the help to display.
349 (gen_help_event, kbd_buffer_store_help_event): New functions.
350 (kbd_buffer_get_event): Construct the Lisp help-event differently.
351 (read_char): Call show_help_echo with new parameters.
352
178c5d9c 353 * keyboard.h (gen_help_event, kbd_buffer_store_help_event):
9662da0b
GM
354 Add prototypes.
355
356 * xterm.c (help_echo_object, help_echo_pos): New variables.
357 (note_mode_line_highlight): Store additional information about the
358 help-echo in help_echo_object and help_echo_pos. Check both
359 `local-map' and `keymap' properties for changing the cursor
360 (note_mouse_highlight): Store additional information about the
361 help-echo in help_echo_object and help_echo_pos.
362 (note_tool_bar_highlight): Set help_echo_object to nil and
363 help_echo_pos to -1.
364 (XTread_socket): Use gen_help_event instead of filling
365 input_events manually.
366 (syms_of_xterm): Staticpro help_echo_object.
367
368 * xmenu.c (menu_highlight_callback): Use
369 kbd_buffer_store_help_event instead of setting up and input_event
370 structure manually.
371
372 * xdisp.c (eval_form): GCPRO argument sexpr.
373 (call_function): New function.
374 (handle_single_display_prop): Use call_function and FUNCTIONP
375 instead of checking whether if font_height is a symbol and
376 using eval_form.
377
378 * eval.c (internal_condition_case_2): New function.
379
380 * lisp.h (FUNCTIONP): New macro.
381 (internal_condition_case_2, call_function): Add prototypes.
382
d5aa31d8
GM
383 * xterm.c (construct_mouse_click, x_scroll_bar_to_input_event)
384 (x_scroll_bar_handle_click, SET_SAVED_MENU_EVENT, XTread_socket):
385 Always set `arg' member of input_events.
386 (construct_menu_click): Unused function removed.
387
388 * msdos.c (dos_rawgetc): Always set `arg' member of input_events.
389
390 * w32term.c (construct_mouse_click, construct_mouse_wheel)
391 (construct_drag_n_drop, x_scroll_bar_handle_click)
392 (w32_read_socket): Always set `arg' member of input_events.
393
394 * keyboard.c (show_help_echo): Use eval_form. Add comment.
395
396 * lisp.h (eval_form): Add prototype.
397
398 * xdisp.c (eval_form): Make it externally visible.
399
0f1a9b23
GM
4002000-07-13 Gerd Moellmann <gerd@gnu.org>
401
402 * xterm.c (x_handle_tool_bar_click): Store the frame in the
403 frame_or_window slot of TOOL_BAR_EVENT input events instead of
404 consing. For prefix events, store the frame in the `arg' slot of
405 the event, otherwise store the key there.
406 (XTread_socket): Instead of consing, use the frame_or_window slot
407 of HELP_EVENTs for the frame, and the `arg' slot for the help
408 string.
409
410 * xmenu.c (menu_highlight_callback): Store help string in the
411 `arg' member of the input event; don't cons.
412 (menubar_selection_callback): Use the `arg' slot of input events
413 to queue additional information, instead of consing.
414
415 * msdos.c (dos_rawgetc): Adapt to change of HELP_EVENTs.
416
417 * w32term.c (w32_handle_tool_bar_click): Adapt to changes in
418 TOOL_BAR_EVENTs.
419 (w32_read_socket): Adapt to changes in HELP_EVENTs.
420
421 * w32menu.c (menubar_selection_callback): Use the `arg' slot of
422 input events to queue additional information, instead of consing.
423
424 * keyboard.c (kbd_buffer_gcpro): Renamed from
425 kbd_buffer_frame_or_window. Now used for all Lisp objects
426 referenced from the input queue.
427 (kbd_buffer_store_event): Always use structure assignment for
428 copying input events. Record all Lisp objects referenced from
429 events in kbd_buffer_gcpro.
430 (kbd_buffer_get_event): Construct Lisp `help-echo' events
431 differently from input events. Test for prefix menu_bar_events
432 and TOOL_BAR_EVENTs differently. Reset all slots used by an input
433 event in kbd_buffer_gcpro to nil.
434 (make_lispy_event) <TOOL_BAR_EVENT>: Treat an input event whose
435 frame_or_window is equal to its arg member as prefix events.
436 (stuff_buffered_input): Reset all slots in kbd_buffer_gcpro
437 used by an input event to nil.
438 (init_keyboard): Use two times the size of the input queue
439 for kbd_buffer_gcpro.
440 (syms_of_keyboard): Likewise.
441
442 * emacs.c (handle_USR2_signal, handle_USR1_signal): Use
443 USER_SIGNAL_EVENT.
444
445 * termhooks.h (struct input_event): Add member `arg'.
446 (MENU_BAR_EVENT): Renamed from menu_bar_event.
447 (USER_SIGNAL_EVENT): Renamed from user_signal.
448
449 * xfaces.c (ASET): Remove definition.
450
451 * lisp.h (AREF, ASET, ASIZE): New macros.
452
453 * fontset.c (AREF, ASIZE): Remove definitions.
454
455 * fns.c (AREF): Remove definition.
178c5d9c 456
0f1a9b23
GM
457 * composite.c (AREF): Remove definition.
458
712eaef2
GM
4592000-07-12 Gerd Moellmann <gerd@gnu.org>
460
d8ee7803
GM
461 * dispnew.c (redraw_overlapped_rows): Add missing local.
462 (scrolling_window): Remove debug code.
463
712eaef2
GM
464 * xdisp.c (try_window_reusing_current_matrix, try_window_id):
465 Before scrolling, turn off a mouse-highlight in the window
466 being scrolled.
467
468 * xterm.c (x_update_window_end): Add parameter
469 MOUSE_FACE_OVERWRITTEN_P. If set, arrange for a mouse-highlight
470 redisplay in XTframe_up_to_date.
471 (x_clear_mouse_face): New function.
472 (x_redisplay_interface): Add pointer to x_clear_mouse_face.
473
474 * dispnew.c (make_current): Preserve the mouse_face_p flag of the
475 current glyph row.
476 (update_window_line): Add parameter MOUSE_FACE_OVERWRITTEN_P. Set
477 it when any row is written to that contains glyphs highlighted in
478 mouse-face.
479 (update_window): Call the window update end hook with new
480 parameter MOUSE_FACE_OVERWRITTEN_P.
481 (direct_output_for_insert): Give up if row contains mouse-face.
482
483 * dispextern.h (struct redisplay_interface): Add parameter
484 MOUSE_FACE_OVERWRITTEN_P to update_window_end_hook function.
485 (clear_mouse_face): New function pointer member.
486
02010917
SM
4872000-07-11 Stefan Monnier <monnier@cs.yale.edu>
488
489 * syntax.c (back_comment): Use one switch rather than a few `if's.
490 Obey open_paren_in_column_0_is_defun_start.
491 When reverting to the `slow' method, try to nicely handle the case
492 of nested comments by checking that the comment-starter we found
493 does indeed match the comment-ender.
494 (scan_sexps_forward, scan_sexps_forward):
495 Ignore excessive opening parenthesis rather than throwing an error.
496
d76c03ea
GM
4972000-07-11 Gerd Moellmann <gerd@gnu.org>
498
499 * doc.c (Fsubstitute_command_keys): Handle case that a GC
500 in Fwhere_is_internal or get_keymap_1 relocates string contents.
501
502 * dispnew.c (direct_output_forward_char): Give up if currently
503 displaying a message instead of the minibuffer contents.
504
505 * xterm.c (x_update_window_begin): No need to turn off the mouse
506 highlight here.
507 (show_mouse_face): Set the mouse_face_p flag of glyph rows
508 depending on whether they contain glyphs highlighted in
509 mouse-face.
510
511 * dispnew.c (row_equal_p): Add parameter MOUSE_FACE_P. If set,
512 compare the mouse_face_p flags of both rows.
513
514 * dispextern.h (struct glyph_row): Add flag mouse_face_p.
515
d55ead18
EZ
5162000-07-11 Eli Zaretskii <eliz@is.elta.co.il>
517
518 * keyboard.c (show_help_echo): Accept additional parameter
519 ok_to_overwrite_keystroke_echo.
520 (read_char): Call show_help_echo with a zero
521 ok_to_overwrite_keystroke_echo argument.
522 * keyboard.h (show_help_echo): Update prototype of
523 show_help_echo.
524 * xmenu.c (menu_help_callback): Call show_help_echo with non-zero
525 ok_to_overwrite_keystroke_echo argument.
526 * w32menu.c (w32_menu_display_help): Call show_help_echo with
527 non-zero ok_to_overwrite_keystroke_echo argument.
528
df75b1a3
GM
5292000-07-10 Gerd Moellmann <gerd@gnu.org>
530
4b92c49a
GM
531 * xdisp.c (try_window_id): If changes are all below what is
532 displayed in the window, and point is in the window, we still
533 might have to find point on the display.
534
535 * xterm.c (x_fill_stretch_glyph_string): Consume runs of stretch
536 glyphs instead of a single one.
537 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
538 with new argument list.
539 (x_set_glyph_string_gc): Make sure the face's GC is valid.
540
df75b1a3
GM
541 * keymap.c (get_keymap_1): Add comment that this function can GC.
542 (where_is_internal_2, where_is_internal_1): Add GCPROs, add
543 comment that functions can GC.
544 (Fset_keymap_parent): GCPRO arg KEYMAP.
545
4314cf3e
EZ
5462000-07-10 Eli Zaretskii <eliz@is.elta.co.il>
547
548 * msdos.c (XMenuActivate): After exiting the menu, restore the
549 echo area message and erase it.
550
ab49ce15
KH
5512000-07-10 Kenichi Handa <handa@etl.go.jp>
552
553 * fontset.c (Ffontset_info): Make the return value more compatible
554 with that of Emacs 20.
555
090a072f
GM
5562000-07-07 Gerd Moellmann <gerd@gnu.org>
557
558 * eval.c (Fsignal): Handle case that backtrace_list is null.
559
f92de4a6
KH
5602000-07-07 Kenichi Handa <handa@etl.go.jp>
561
562 * ccl.c (Fccl_execute): Typo fixed.
563
dd8888a1
GM
5642000-07-06 Gerd Moellmann <gerd@gnu.org>
565
e5c81191 566 * window.c (window_loop): Add missing gcpro1 local variable.
178c5d9c 567
dd8888a1
GM
568 * window.c (Fwindow_list): Reverse list at the end.
569 (candidate_window_p): Add parameter OWINDOW. ALL_FRAMES nil
570 means allow windows on OWINDOW's frame, only.
571 (window_loop): Simplified; use Fwindow_list.
572
573 * Makefile.in (TAGS-LISP): Don't pass `$(lispsource)' to make.
574
485266d0
GM
5752000-07-05 Gerd Moellmann <gerd@gnu.org>
576
577 * xterm.c (XTread_socket): Increment handling_signal at the start,
578 decrement it at the end.
579
580 * eval.c (handling_signal): New variable.
581 (Fsignal): Abort if handling_signal is non-zero.
582
583 * lisp.h (handling_signal): External declaration.
178c5d9c 584
485266d0
GM
585 * s/freebsd.h (WAITTYPE, WRETCODE): Put in #if 0.
586
80fcd514
KR
5872000-07-05 Ken Raeburn <raeburn@gnu.org>
588
589 Sound support for NetBSD through "Linux emulation" support:
590 * config.in (HAVE_SOUNDCARD_H): Undef.
591 (HAVE_SOUND): Define if HAVE_SOUNDCARD_H.
592 * Makefile.in (LIBSOUND): New variable.
593 (LIBES): Include it.
594 * sound.c [HAVE_SOUNDCARD_H]: Include <sys/ioctl.h> and
595 <soundcard.h>.
596 (DEFAULT_SOUND_DEVICE): Define to "/dev/dsp" if not defined
597 elsewhere.
598 (vox_open): Use DEFAULT_SOUND_DEVICE.
599 * s/netbsd.h (DEFAULT_SOUND_DEVICE): Define to /dev/audio.
600
d5c5cddd
GM
6012000-07-05 Gerd Moellmann <gerd@gnu.org>
602
603 * print.c (print_error_message): If Vsignaling_function is set,
604 show it in *Messages*.
605
606 * lisp.h (Vsignaling_function): External declaration.
607
608 * eval.c (Vsignaling_function): New variable.
609 (Fsignal): Compute it.
610 (syms_of_eval): Staticpro it.
611
65171e3a
DL
6122000-07-05 Dave Love <fx@gnu.org>
613
614 * syswait.h: Use the autoconf recommended approach. Old code
615 #if'd out in case we need to revert.
616
178c5d9c 617 * config.in (HAVE_SYS_WAIT_H): Added.
65171e3a 618
e2c46326
AI
6192000-07-05 Andrew Innes <andrewi@gnu.org>
620
621 * vm-limit.c (check_memory_limits) [REL_ALLOC]: Use real_morecore
622 when non-NULL instead of __morecore, to take account of buffer
623 memory. This also solves a problem with spurious memory warnings
624 on Windows.
625
626 * ralloc.c: Make real_morecore non-static.
627
628 * eval.c (internal_condition_case): Comment out abort if
629 interrupt_input_blocked is not zero.
630
631 * makefile.nt: Add support for `bootstrap' and related targets.
632 Include minimal debug info in emacs.exe in release build.
633 Remove all dependencies on lisp.h, and fixup some others.
634
635 * w32.c (init_environment): Install code from 20.7 for providing
636 default values for environment variables, based on the
637 executable's own location.
638 (map_w32_filename): Handle filenames that are longer than
639 MAX_PATH.
640 (sys_socket): Install socket inheritance bug fix from 20.7.
641
642 * alloca.c [emacs]: Include lisp.h (needed by atimer.h included
643 here via blockinput.h).
644
a027a91b
SM
6452000-07-05 Stefan Monnier <monnier@cs.yale.edu>
646
e4b31601
SM
647 * w32menu.c (w32_menu_display_help):
648 * xmenu.c (menu_help_callback): Use show_help_echo.
a027a91b
SM
649
650 * keyboard.h (show_help_echo): Declare.
651
652 * keyboard.c (show_help_echo): New function, extracted from read_char.
653 Feval its `msg' argument if it's a cons cell.
654 (read_char): Use it.
4cf8d9d5 655 (follow_key): Pass `autoload' to get_keyelt.
a027a91b 656
178c5d9c 657 * xterm.c (note_mode_line_highlight, note_mouse_highlight)
a027a91b 658 (note_tool_bar_highlight, XTread_socket):
178c5d9c 659 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight)
a027a91b
SM
660 (dos_rawgetc):
661 * w32term.c (note_mode_line_highlight, note_mouse_highlight)
662 (note_tool_bar_highlight, w32_read_socket):
663 Do not gratuitously ignore non-string `help-echo' properties.
664
88d75730
GM
6652000-07-05 Gerd Moellmann <gerd@gnu.org>
666
969f7e79
GM
667 * eval.c (Feval): Put check for interrupt_input_block in #if 0.
668
71201b00
GM
669 * window.c (delete_all_subwindows): Reset Vwindow_list.
670
88d75730
GM
671 * xterm.c (x_append_glyph, x_append_composite_glyph)
672 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
673 changes in struct glyph starting 1999-12-27. Some bit-fields of
674 struct glyph were not set, which made glyphs unequal when compared
675 with GLYPH_EQUAL_P. Redisplay outputs such glyphs, and flickering
676 effects were the result. This also depended on the contents of
677 memory returned by xmalloc. If flickering happens again, activate
678 the code in clear_glyph_row that's in #if 0. If the flickering is
679 gone with that, chances are that it is caused by something
680 similar.
681
682 * dispnew.c (clear_glyph_row): Add debug code in #if 0.
178c5d9c 683
88d75730
GM
684 * dispextern.h: Add some comments.
685
686 * window.c (add_window_to_list): Add parameter LIST.
687 (window_list): Order list so that, for each frame, windows are
688 in canonical order, and so that frames appear in the list in
689 the order given by Vframe_list.
690 (next_window): Reverse the handling of NEXT_P.
691
53654733
GM
6922000-07-04 Gerd Moellmann <gerd@gnu.org>
693
87efd256
GM
694 * window.c (Vwindow_list): New variable.
695 (make_window, delete_window): Set Vwindow_list to nil.
696 (check_window_containing): New function.
697 (window_from_coordinates): Rewritten.
698 (add_window_to_list, window_list, candidate_window_p)
699 (decode_next_window_args, next_window): New functions.
700 (Fnext_window, Fprevious_window): Rewritten in terms of
701 next_window.
702 (Fwindow_list): New function.
703 (Fother_window): Cleaned up.
704 (foreach_window): Add a longer "variable argument list". Let
705 callback function return 0 to indicate that cycling over windows
706 should stop.
707 (foreach_window_1): Likewise.
708 (freeze_window_start): Return int.
709 (init_window): New function.
710 (syms_of_window): Staticpro Vwindow_list and defsubr Swindow_list.
711
712 * emacs.c (handle_USR1_signal, handle_USR2_signal) Clear
713 input_event with bzero.
714 (main): Call init_window.
715
53654733
GM
716 * keymap.c (get_keyelt): Temporarily inhibit GC while evaluating
717 a menu filter.
718
4a8c194f
KH
7192000-07-04 Kenichi Handa <handa@etl.go.jp>
720
721 * composite.h (make_composition_value_copy): Extern it.
722
723 * composite.c (make_composition_value_copy): New function.
724
725 * editfns.c (Fformat): While copying text properties, make each
726 composition property value a copy.
727
728 * fns.c (concat): While copying text properties, make each
729 composition property value a copy.
730
831a6cb0
GM
7312000-07-03 Gerd Moellmann <gerd@gnu.org>
732
2f516940
GM
733 * m/macppc.h (LINKER, LD_SWITCH_MACHINE) [LINUX]: Define.
734
178c5d9c 735 * fns.c (sweep_weak_table): Mark only objects that are not
aee625fa
GM
736 marked already.
737
831a6cb0
GM
738 * frame.c (next_frame, prev_frame): If MINIBUF is a window,
739 include those frames as candidates which have their focus
740 redirected to the minibuffer frame.
741
d9c4f922
SM
7422000-07-03 Stefan Monnier <monnier@cs.yale.edu>
743
744 * fns.c (Fputhash): Return `value' rather than nil.
745
3780bc22
GM
7462000-06-30 Gerd Moellmann <gerd@gnu.org>
747
97d176db
GM
748 * frame.c (next_frame): Don't check focus redirection in case
749 MINIBUF is a window. Doing so excludes frames using MINIBUF
3780bc22
GM
750 unless their focus is redirected, which contradicts the
751 specification of next-frame, and leads to infinite loops in
752 certain situations when cycling through windows with next-window.
753
dca9961d
KH
7542000-06-30 Kenichi Handa <handa@etl.go.jp>
755
756 * coding.c (code_convert_region): Even if the length of text is
757 zero, try to convert it if coding->type is coding_type_ccl.
758 (decode_coding_string, encode_coding_string): Likewise.
759
d5483ab1
GM
7602000-06-28 Gerd Moellmann <gerd@gnu.org>
761
af5c25e1 762 * xdisp.c (try_window_reusing_current_matrix): Don't try to reuse
97d176db 763 the display if windows_or_buffers_changed.
af5c25e1
GM
764
765 * dispnew.c (struct row_entry): New structure.
766 (row_entry_pool, row_entry_pool_size, row_entry_idx, row_table)
767 (row_table_size, old_lines, new_lines, old_lines_size)
768 (new_lines_size, run_pool, runs_size, runs): New variables.
769 (add_row_entry): New function.
770 (scrolling_window): Use data structures allocated with xmalloc and
97d176db 771 held in global variables, instead of allocating them with alloca and
af5c25e1
GM
772 holding them in local variables. Use a larger hash table whose
773 size depends on glyph matrix sizes. Don't use bzero to clear the
774 hash table; instead, clear used slots only.
775
776 * fns.c (next_almost_prime): Make it externally visible.
777
778 * lisp.h (next_almost_prime): Add prototype.
779
d5483ab1
GM
780 * s/isc4-0.h (sigunblock): Define.
781
782 * s/sco5.h (sigunblock): Define.
783
93e40f40
DL
7842000-06-27 Dave Love <fx@gnu.org>
785
786 * s/osf1.h (C_SWITCH_SYSTEM, LIBS_SYSTEM): Revert last change
787 (moved to osf5-0.h).
788 [!NOT_C_CODE]: Protect string.h stuff.
789
790 * s/osf5-0.h (C_SWITCH_SYSTEM, WAIT_USE_INT, SYS_SIGLIST_DECLARED)
791 (sys_siglist, NSIG): Definitions moved here from osf1.h.
792
3c4b7685
GM
7932000-06-27 Gerd Moellmann <gerd@gnu.org>
794
97d176db 795 * xdisp.c (resize_mini_window): Subtract the extra line spacing
3c4b7685
GM
796 below the last line from the needed window height.
797
32cad0aa
SM
7982000-06-26 Stefan Monnier <monnier@cs.yale.edu>
799
800 * fns.c (Fplist_member): Renamed from Fwidget_plist_member.
801 (Fwidget_get): Use it.
802 (syms_of_fns): Defsubr it.
803
2c69ced2
GM
8042000-06-26 Gerd Moellmann <gerd@gnu.org>
805
178c5d9c 806 * xterm.c (xim_initialize) [!USE_XIM]: Don't set up the
1d36487c
GM
807 display info for XIM.
808 (xim_open_dpy): Likewise.
809 (xim_close_dpy): Don't free the display info's XIM.
810
811 * xfns.c (x_window) [!USE_XIM]: Don't call create_frame_ic.
812
813 * config.in (USE_XIM): New define.
814
3fc720e4
GM
815 * keymap.c (get_keyelt): For menu-items containing a `:filter
816 FILTER', apply FILTER to the menu-item's definition to get the
817 real definition to use.
818
819 * lisp.h (QCfilter): External declaration.
820
2c69ced2
GM
821 * xfns.c (Fimage_size): New function.
822 (syms_of_xfns): Defsubr it.
823
f978b2a2
AS
8242000-06-26 Andreas Schwab <schwab@suse.de>
825
826 * coding.c (decode_coding_string): Re-fetch STRING_BYTES after
827 Fstring_as_unibyte.
828
94cc7892
DL
8292000-06-25 Dave Love <fx@gnu.org>
830
831 * term.c [!HAVE_TERMCAP_H]: Declare tputs, tgetent, tgetflag,
832 tgetnum.
833
834 * Makefile.in (blockinput.h): Depend on atimer.h.
835 (atimer.h): Depend on systime.h.
836
837 * blockinput.h: Protect against multiple inclusion. Include
838 atimer.h.
839
840 * atimer.h: Protect against multiple inclusion. Include
841 systime.h.
842
843 * lisp.h (swap_in_global_binding): Declare.
844
b8c24556
KR
8452000-06-24 Ken Raeburn <raeburn@gnu.org>
846
847 * process.c (Fopen_network_stream): Turn off atimers for duration
848 of call to connect. (Patch from Gerd.)
849
8cf8560b
DL
8502000-06-23 Dave Love <fx@gnu.org>
851
511c7541
DL
852 * ralloc.c: Maybe include unistd.h
853
8cf8560b
DL
854 * emacs.c (setgrp): Undefine before defining.
855 (malloc_warning, set_time_zone_rule, index): Prototype.
856
857 * systime.h (EMACS_GET_TIME) [!GETTIMEOFDAY_ONE_ARGUMENT]: Use
858 HAVE_STRUCT_TIMEZONE.
859
860 * s/osf1.h: Move string.h hack here from alpha.h and make it
861 conditional.
862 (C_SWITCH_SYSTEM): Use _OSF_SOURCE, not -BSD, which clashes with
863 _XOPEN_SOURCE.
864 (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist, NSIG): Define.
865 (SOCKLEN_TYPE): Don't define.
866
867 * m/alpha.h: Remove string.h hack.
868
869 * s/osf5-0.h: New file.
870
871 * filelock.c: Use feature tests for fcntl.h, string.h. Don't
872 include time.h, done by systime.h.
873 [__FreeBSD__]: Remove redundant includes.
874
3fc720e4 875 * callproc.c (setpgrp): Undefine before defining.
8cf8560b
DL
876 (delete_temp_file): Return Qnil to avoid warning.
877
878 * config.in (HAVE_TERM_H, HAVE_STRUCT_TIMEZONE): Add.
879
880 * xfaces.c: Include fontset.h dependent on HAVE_WINDOW_SYSTEM, not
881 HAVE_X_WINDOWS.
882
883 * fontset.h (free_face_fontset): Renamed from fs_free_face_fontset.
884
885 * composite.h (compose_text): Declare.
886
887 * xterm.c: Don't include sys/types.h unconditionally. Don't
888 protect its inclusion with !USG (following xmenu.c).
889
ea055732
GM
8902000-06-23 Gerd Moellmann <gerd@gnu.org>
891
892 * xfns.c (x_create_tip_frame): Initialize frame's colors like
893 in x_create_frame.
894
74b01b80
EZ
8952000-06-23 Eli Zaretskii <eliz@is.elta.co.il>
896
897 * coding.c (decode_eol_post_ccl): Special handling for undecided
898 and inconsistent EOL types.
899
64f3a166
GM
9002000-06-22 Gerd Moellmann <gerd@gnu.org>
901
16cf31f7
GM
902 * xrdb.c (x_load_resources): Add default resource for scroll bar's
903 trough color and main window's background color.
904
178c5d9c 905 * xfns.c (Fx_file_dialog) [HAVE_MOTIF_2_1]: Handle events
16cf31f7
GM
906 differently.
907
908 * xterm.h (Xt_app_con): External declaration.
909
910 * widget.c (EmacsFrameRealize): Fix typo.
178c5d9c 911
486a103d
GM
912 * widget.c (EmacsFrameRealize): Remove SubstructureRedirectMask.
913
64f3a166
GM
914 * xdisp.c (handle_stop): Initialize it->add_overlay_start to zero.
915 (handle_invisible_prop): Record the start of invisible text in
916 it->add_overlay_start.
917 (struct overlay_entry): Add member `overlay'.
918 (handle_overlay_change): Simplify.
919 (next_overlay_string): After having processed overlay strings at the
920 end of the buffer, record that fact in
921 it->overlay_strings_at_end_processed_p.
922 (compare_overlay_entries): If before- and after-strings come
923 from the same overlay, let before-strings come first.
924 (RECORD_OVERLAY_STRING): Record the overlay that strings come from.
925 (load_overlay_strings): Take it->add_overlay_start into account
926 when adding overlay strings.
927
928 * dispextern.h (struct it): Add member add_overlay_start.
929
bb746ea6
DL
9302000-06-22 Dave Love <fx@gnu.org>
931
932 * s/isc3-0.h (C_SWITCH_SYSTEM): Define _XOPEN_SOURCE=500.
933
934 * s/gnu-linux.h (C_SWITCH_SYSTEM): Don't define _XOPEN_SOURCE here.
935
a8f573f3
KH
9362000-06-22 Kenichi Handa <handa@etl.go.jp>
937
938 * ccl.c (ccl_driver) <CCL_End>: Decrement stack_idx only when it
939 is greater than 0.
940
9f2bbc92
DL
9412000-06-21 Dave Love <fx@gnu.org>
942
178c5d9c 943 * Makefile.in (GETLOADAVG_OBJ): Removed -- LIBOBJS does it.
9f2bbc92 944
3ee5041c
SM
9452000-06-21 Stefan Monnier <monnier@cs.yale.edu>
946
947 * syntax.c (back_comment): Simplify string-parity counting (with
948 the added benefit of handling multiple string-styles as long as
949 they are not intertwined).
950 Jump to the slow code as soon as a comment starter is found in
951 a "string_lossage" position. Fixes the case: " /* " /* " */.
952
4c343001
DL
9532000-06-21 Dave Love <fx@gnu.org>
954
955 * Makefile.in: Use GETLOADAVG_LIBS.
956
957 * config.in: Add HAVE_FCNTL_H, _FILE_OFFSET_BITS,
958 _LARGEFILE_SOURCE, _LARGE_FILES, _XOPEN_SOURCE.
959
e6365855
SM
9602000-06-20 Stefan Monnier <monnier@cs.yale.edu>
961
962 * syntax.c (describe_syntax): Recognize the `n'estable bit.
963 (Fforward_comment, scan_lists):
964 Check the comstyle of single-char comment-starters.
965 (scan_sexps_forward): Don't try to recognize `half comment-enders' if
966 we're just at the beginning of the comment (f.ex with (*) ... (*)).
d355bd8a
SM
967 Check the comstyle of single-char comment-starters.
968 Clarify control-flow around the Scomment case.
e6365855 969
5700d2cc
DL
9702000-06-20 Dave Love <fx@gnu.org>
971
d355bd8a
SM
972 * fns.c (make_hash_table, maybe_resize_hash_table):
973 Cast arg of next_almost_prime.
5700d2cc 974
178c5d9c 975 * tparam.c [emacs]: Include lisp.h.
5700d2cc
DL
976
977 * termcap.c [emacs]: Test HAVE_FCNTL_H, not USG5. Include lisp.h
978 and unistd.h.
979
4a27bdfb
GM
9802000-06-20 Gerd Moellmann <gerd@gnu.org>
981
a61d762c
GM
982 * keyboard.c (adjust_point_for_property): Check if display
983 property should be treated as intangible by looking at its
984 value.
985
178c5d9c 986 * xdisp.c (single_display_prop_intangible_p)
a61d762c
GM
987 (display_prop_intangible_p): New functions.
988
989 * dispextern.h (display_prop_intangible_p): Add prototype.
990
991 * xdisp.c (dump_glyph_row): Show type of glyph->object.
178c5d9c 992
4a27bdfb
GM
993 * s/isc4-0.h (sigblock): Redefined to pass a pointer as second
994 argument to sigprocmask.
995
996 * s/sco5.h (sigblock): Redefined to pass a pointer as second
997 argument to sigprocmask.
998
999 * syssignal.h (sigblock, sigunblock) [USG5_4]: Set
1000 sigprocmask_set, and pass a pointer to it to sigprocmask.
1001
1002 * sysdep.c (sigprocmask_set): New variable.
1003
1004 * fileio.c (make_temp_name): Don't use `%s' in string passed to
1005 report_file_error.
1006
427ec082
SS
10072000-06-20 Sam Steingold <sds@gnu.org>
1008
1009 * xrdb.c: Don't declare xmalloc, xrealloc.
1010
8972fe79 10112000-06-20 Stefan Monnier <monnier@cs.yale.edu>
8972fe79
SM
1012
1013 * regex.c (re_match, re_match_2): Protect calls to alloca (0).
1014 (re_comp): Cast gettext return value to avoid complaints when
1015 !HAVE_LIBINTL.
1016
074b6efe
DL
10172000-06-20 Dave Love <fx@gnu.org>
1018
f85c008a
DL
1019 * m/stride.h, m/mips.h: Don't define HAVE_GETWD,
1020 HAVE_GETTIMEOFDAY.
1021
5700d2cc 1022 * m/ibmrt-aix.h: Don't declare HAVE_GETTIMEOFDAY, HAVE_VFORK.
f85c008a 1023
d355bd8a 1024 * m/ibmrs6000.h, m/ibmps2-aix.h, m/dpx2.h: Don't declare HAVE_GETWD.
f85c008a
DL
1025
1026 * m/alpha.h: Don't declare xmalloc, xrealloc.
1027
0af4f205
DL
1028 * s/ux4800.h: Don't declare GETTIMEOFDAY_ONE_ARGUMENT.
1029
1030 * s/usg5-4-2.h: Don't declare HAVE_GETWD, VFORK_RETURN_TYPE.
1031
1032 * s/umips.h: Don't declare HAVE_GETWD, HAVE_GETTIMEOFDAY.
1033
1034 * s/cxux.h, s/gnu-linux.h, s/iris3-6.h, s/irix3-3.h: Don't declare
1035 HAVE_GETWD.
1036
074b6efe
DL
1037 * keyboard.h (poll_for_input_1): Declare.
1038
1039 * getloadavg.c: Don't define NLIST_STRUCT (handled by configure).
1040
1041 * alloc.c (xmalloc, xrealloc, xfree): Define using POINTER_TYPE.
1042
1043 * doprnt.c: Don't declare xmalloc, xrealloc.
1044
1045 * lisp.h (x_set_tool_bar_lines, free_frame_xic, compose_text)
1046 (getenv, ctime, getwd): Removed.
1047 (xmalloc, xrealloc, xfree): Declare using POINTER_TYPE.
1048
1049 * xterm.h: Remove duplicate prototypes. Declare free_frame_xic,
1050 x_set_tool_bar_lines.
1051
1052 * config.in: Add HAVE_GETWD. Move some definitions above
1053 machine/system includes.
1054
68a5e97b
KH
10552000-06-20 Kenichi Handa <handa@etl.go.jp>
1056
95417e1e
KH
1057 * s/bsd386.h (HAVE_GETLOADAVG): Define it as 1.
1058
68a5e97b
KH
1059 * xfaces.c (font_list): Handle the case that REGISTRY doesn't
1060 contain information about ENCODING.
1061
1062 * fontset.c (FONTSET_ASCII): Use the first element of char table
1063 for an ASCII font, not defalt slot.
1064 (fontset_ref_via_base): If FONTSET doesn't contain information for
1065 C, try the default fontset.
1066 (make_fontset): Don't copy the default fontset.
1067 (fontset_font_pattern): Likewise.
1068 (accumulate_font_info): If ELT is nil, use the corresponding
1069 element in the default fontset.
1070
3b4fa1b2
DL
10712000-06-19 Dave Love <fx@gnu.org>
1072
943e731c
DL
1073 * syntax.c (Fparse_partial_sexp): Doc fix.
1074
1075 * regex.h: Test PROTOTYPES as well as __STDC__.
1076
3b4fa1b2
DL
1077 * unexalpha.c: Include errno.h, string.h, unistd.h. Don't declare
1078 errno, strerror. Put text after #endif in comment.
1079
1080 * xdisp.c (dump_glyph_matrix): Add `static' to declaration (for
1081 pcc).
1082
1083 * xterm.c (x_frame_of_widget): Likewise.
1084
cdf0357b
GM
10852000-06-19 Gerd Moellmann <gerd@gnu.org>
1086
1087 * abbrev.c (syms_of_abbrev): Set buffer_default's abbrev table
1088 to Vfundamental_mode_abbrev_table.
1089
1090 * alloc.c (mark_object) [GC_CHECK_MARKED_OBJECTS]: Check that no
1091 bogus objects are marked. This slows down GC by ~80 percent, but
1092 it might be worth trying when debugging GC-related problems.
1093 This feature requires conservative stack marking to be enabled.
1094
1095 * xterm.c (XTread_socket) <KeyPress>: In case XmbLookupString
1096 returns XLookupChars, reset `modifiers' to zero.
1097
998e9f8c
DL
10982000-06-19 Dave Love <fx@gnu.org>
1099
1100 * mktime.c: Unprotoized.
1101
18e21ce8 11022000-06-19 Richard Stallman <rms@gnu.org>
d1504184
GM
1103
1104 * data.c (set_internal): If variable is frame-local,
1105 store the new value immediately into the frame parameter alist.
1106
140c4ac6
KR
11072000-06-19 Ken Raeburn <raeburn@gnu.org>
1108
14358466
KR
1109 * xfns.c (jpeg_load): Fetch error-handling data first, then fill
1110 in the custom handler pointer.
1111
140c4ac6
KR
1112 * keyboard.c (follow_key, read_key_sequence): Use XUINT on key
1113 value, or checks for CHAR_META can fail when Lisp_Object is a
1114 union type.
1115 * keymap.c (get_keyelt): Likewise.
1116
10d7bf84
KH
11172000-06-19 Kenichi Handa <handa@etl.go.jp>
1118
1119 * ccl.h (struct ccl_program): New member eol_type.
1120 (struct ccl_spec): New member cr_carryover.
1121
1122 * ccl.c (CCL_WRITE_CHAR): Convert NL according to ccl->eol_type.
1123 (setup_ccl_program): Initialize ccl->eol_type to CODING_EOL_LF.
1124
1125 * coding.c (setup_coding_system) <4>: Reset member `cr_carryover'.
1126 (ccl_coding_driver): On encoding, initialize ccl->eol_type.
1127 (decode_eol_post_ccl): New function.
1128 (decode_coding): Don't detect EOL format here for CCL based coding
1129 systems.
1130 (decode_coding) <coding_type_ccl>: Handle carryovered CR. Call
1131 decode_eol_post_ccl after running the CCL program.
1132 (code_convert_region): Don't detect EOL format here for CCL based
1133 coding systems.
1134 (decode_coding_string): Likewise.
1135
52e386c2
KR
11362000-06-18 Ken Raeburn <raeburn@gnu.org>
1137
1138 * charset.c (update_charset_table): Use XINT on "iso_final_char"
1139 when treating it as an integer.
1140
1141 * coding.h (encode_coding_string): Declare.
1142
1143 * keyboard.c (read_key_sequence): Use XINT on "pos" when treating
1144 it as an integer.
1145
1146 * keymap.c (Fwhere_is_internal): Rename argument "keymap" to
1147 "xkeymap" to avoid shadowing the "enum map_type" value that needs
1148 to be passed to get_local_map.
1149
1150 * sound.c (Fplay_sound): Don't call make_number on
1151 Frun_hook_with_args count argument.
1152
1153 * xterm.c (x_send_scroll_bar_event): Fudge lisp object/integer
1154 for lisp objects in X event structure data field, when lisp
1155 objects are represented with unions.
1156 (x_scroll_bar_to_input_event): Ditto.
1157
b357b9d4
KR
11582000-06-16 Ken Raeburn <raeburn@gnu.org>
1159
1160 * xdisp.c (decode_mode_spec): In "no_value" case, do NUL
37d034d3
KR
1161 termination of string. Fix sense of test whether
1162 Vline_number_display_limit is an integer.
b357b9d4 1163
a871441d
GM
11642000-06-16 Gerd Moellmann <gerd@gnu.org>
1165
a9021acd
GM
1166 * xfaces.c (syms_of_xfaces) [DEBUG_X_COLORS]: Defsubr dump_colors
1167 only if HAVE_X_WINDOWS.
1168
6344985d
GM
1169 * keymap.c (describe_buffer_bindings): Add `\f\n' in front
1170 of titles.
1171
427ec082 1172 * dispnew.c (update_frame_1): Handle case that cursor vpos is
a871441d
GM
1173 out of bounds.
1174
228b083e
EZ
11752000-06-15 Eli Zaretskii <eliz@is.elta.co.il>
1176
1177 * unexec.c (toplevel): Fix last change, so as not to deprive MSDOS
1178 of its headers.
1179
c25b53a2
KH
11802000-06-15 Kenichi Handa <handa@etl.go.jp>
1181
1182 * coding.c (decode_coding_emacs_mule): Always set src_base at the
1183 start of the while loop.
1184
a6981b11
GM
11852000-06-15 Gerd Moellmann <gerd@gnu.org>
1186
e9924e52
GM
1187 * atimer.c (alarm_signal_handler): Add forward declaration.
1188
a6981b11
GM
1189 * data.c (set_internal): Remove debug code.
1190
25fa6deb
GM
11912000-06-14 Gerd Moellmann <gerd@gnu.org>
1192
dce6b995
GM
1193 * Makefile.in (bootstrap-temacs): Add `-I../src'.
1194
9f817ea4
GM
1195 * unexec.c (toplevel) [COFF]: Include coff.h.
1196
1197 * s/lynxos.h: New file.
1198
1199 * keymap.c (Fsingle_key_description): Enclose function key and
1200 event symbol names in angle brackets.
1201
8a4e3c0c
GM
1202 * xdisp.c (setup_echo_area_for_printing): Call
1203 message_log_maybe_newline if message_buf_print is not set.
1204
1205 * print.c (printchar, strout): Don't check message_buf_print
427ec082 1206 before calling setup_echo_area_for_printing because that
8a4e3c0c
GM
1207 function does something useful even when message_buf_print is
1208 already set.
1209
25fa6deb
GM
1210 * xdisp.c (message_truncate_lines, Qmessage_truncate_lines): New
1211 variables.
1212 (ensure_echo_area_buffers): Initialize echo buffer's
1213 truncate lines setting to nil.
1214 (with_echo_area_buffer): Don't set the echo buffer's truncate
1215 lines setting here.
8a4e3c0c 1216 (set_message_1): Set it here instead, based on the value
25fa6deb
GM
1217 of message_truncate_lines.
1218 (resize_mini_window): Handle case that lines are truncated.
1219 (syms_of_xdisp): Initialize Qmessage_truncate_lines. DEFVAR_BOOL
1220 message-truncate-lines.
1221
1222 * keyboard.c (read_char): Bind message-truncate-lines to t
1223 while displaying a help-echo.
1224
1225 * lisp.h (Qmessage_truncate_lines): External declaration.
1226
163dcff3
GM
12272000-06-13 Gerd Moellmann <gerd@gnu.org>
1228
1681ead6
GM
1229 * xdisp.c (Vline_number_display_limit): Renamed from
1230 line_number_display_limit.
1231 (syms_of_xdisp): Use DEFVAR_LISP for line-number-display-limit.
1232 Extend documentation string. Initialize
1233 Vline_number_display_limit to nil meaning no limit.
1234 (decode_mode_spec): Use Vline_number_display_limit with its new
1235 meaning.
1236
163dcff3
GM
1237 * xterm.c (x_check_font) [GLYPH_DEBUG]: Add prototype.
1238
18e21ce8 12392000-06-13 Richard Stallman <rms@gnu.org>
163dcff3
GM
1240
1241 * frame.c (Fmodify_frame_parameters): Doc fix.
427ec082 1242
163dcff3
GM
1243 * xfns.c (x_set_frame_parameters): Comment fix.
1244
1245 * frame.c (store_frame_param): Call swap_in_global_binding if the
1246 variable's current binding was chosen based on this frame.
1247
1248 * data.c (swap_in_global_binding): New function.
1249
a704139d
EZ
12502000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
1251
1252 * msdos.c (IT_write_glyphs): Don't use CODING_REQUIRE_ENCODING
1253 macro, instead AND with CODING_REQUIRE_ENCODING_MASK.
1254
9b6610db
EZ
12552000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
1256
1257 * msdos.h (EMACS_MSDOS_H): Renamed from MSDOS_H_.
1258
c68833d2
JR
12592000-06-12 Jason Rumney <jasonr@gnu.org>
1260
1261 * w32bdf.h (EMACS_W32BDF_H): Renamed from __W32BDF_H__
1262
1263 * w32.h (EMACS_W32_H): Renamed from _NT_H_
1264
1265 * w32gui.h (EMACS_W32GUI_H): Renamed from __W32GUI_H__
1266
1267 * w32inevt.h (EMACS_W32INEVT_H): Renamed from __NTINEVT_H__
1268
ed1056b3
GM
12692000-06-12 Gerd Moellmann <gerd@gnu.org>
1270
1271 * xfaces.c (Fdump_colors) [DEBUG_X_COLORS]: New function.
1272 (syms_of_xfaces): Defsubr Sdump_colors.
1273 (x_free_colors): Don't treat b&w specially on default visual.
1274 (x_free_dpy_colors): New function.
1275 (free_face_colors): Don't check visual class; it's done
1276 in x_free_colors.
1277
1278 * xterm.c (x_frame_of_widget): New function.
1279 (x_alloc_nearest_color_for_widget): Use it.
1280 (x_copy_dpy_color): New function.
1281 (x_destroy_window): Free various colors.
1282
5050a2ef
KH
12832000-06-12 Kenichi Handa <handa@etl.go.jp>
1284
1285 * ccl.h (EMACS_CCL_H): Renamed from _CCL_H.
1286
1287 * charset.h (EMACS_CHARSET_H): Renamed from _CHARSET_H.
1288
1289 * coding.h (EMASC_CODING_H): Renamed from _CODING_H.
1290
1291 * composite.h (EMACS_COMPOSITE_H): Renamed from _COMPOSITE_H.
1292
1293 * fontset.h (EMACS_FONTSET_H): Renamed from _FONTSET_H.
1294
fb1b041d
DL
12952000-06-11 Dave Love <fx@gnu.org>
1296
1297 * systime.h (EMACS_SYSTIME_H): Renamed from _SYSTIME_H.
1298
ff96b5f4
EZ
12992000-06-11 Eli Zaretskii <eliz@is.elta.co.il>
1300
1301 * msdos.h: Don't use _MSDOS_H_ as a symbol, use MSDOS_H_ instead.
1302
db8eeecd
GM
13032000-06-11 Gerd Moellmann <gerd@gnu.org>
1304
ed1056b3 1305 * xmenu.c (xmenu_show): Cast second parameter of lw_popup_menu
db8eeecd
GM
1306 to `XEvent *'.
1307
49b71c5f
KH
13082000-06-10 Kenichi Handa <handa@etl.go.jp>
1309
c479bd55
KH
1310 * regex.c (MAKE_CHAR) [!emacs]: Dummy macro for non-Emacs env.
1311 (regex_compile): Fix the code for handling the case of single byte
1312 char and multibyte char being mixed in a range within [...].
1313
ff6a65c2
KH
1314 * fileio.c (Finsert_file_contents): Be sure to setup src_multibyte
1315 and dst_multibyte members of coding.
1316
49b71c5f
KH
1317 * charset.c (update_charset_table): Update the table
1318 bytes_by_char_head.
1319 (init_charset_once): Initialize elements of bytes_by_char_head to
1320 1 except for leading codes for private charases.
1321
1322 * charset.h (CHARSET_8_BIT_GRAPHIC): Define as 0x80.
1323 (UNIBYTE_STR_AS_MULTIBYTE_P): Fix for an invalid multibyte
1324 sequence.
1325
9e80b57d
KR
13262000-06-09 Ken Raeburn <raeburn@gnu.org>
1327
1328 * xterm.c (x_connection_closed): If dpyinfo is NULL, don't try to
1329 access the data it doesn't point to.
1330
f83fe4b4
GM
13312000-06-08 Gerd Moellmann <gerd@gnu.org>
1332
1333 * xterm.c (XTread_socket) <FocusIn>: Queue a FOCUS_IN_EVENT which
db8eeecd 1334 will be translated to a switch-frame event when reading the
f83fe4b4
GM
1335 event queue. This is necessary because Emacs otherwise won't
1336 perform a switch-frame to a new frame until some other event, for
1337 example a keystroke event, forces it to do so. This has various
1338 effects, one visible being that the cursor of a frame created with
1339 C-x 5 2 or switched to with a window manager key binding like
1340 A-TAB stays hollow because selected_window isn't on the newly
1341 focused frame until the switch-frame is performed.
1342
1343 * keyboard.c (kbd_buffer_get_event): Handle FOCUS_IN_EVENT by
1344 generating a switch-frame event if necessary.
1345
1346 * termhooks.h (enum event_kind): Add FOCUS_IN_EVENT.
1347
1348 * xdisp.c (handle_fontified_prop): Don't GCPRO local var `pos';
1349 it's an integer.
1350
0890801b
KH
13512000-06-08 Kenichi Handa <handa@etl.go.jp>
1352
1353 * fontset.c (Fset_fontset_font): The arg CHARACTER may be a
1354 charset.
1355
173cbca8
GM
13562000-06-07 Gerd Moellmann <gerd@gnu.org>
1357
3091c2a6
GM
1358 * window.c (displayed_window_lines): Take empty lines at
1359 the bottom of a window into account.
427ec082 1360
f38952fe
GM
1361 * window.c (displayed_window_lines): New function.
1362 (Fmove_to_window_line): Use displayed_window_lines to determine
1363 the number of lines to move, instead of using the window's height.
1364
1365 * lread.c (readevalloop): If READCHARFUN sets point to ZV, arrange
1366 to stop reading, even if the form read sets point to a different
1367 value when evaluated.
1368
427ec082 1369 * xdisp.c (display_line): Fix code deciding in which line to
173cbca8
GM
1370 put the cursor.
1371
6ba6c818
KH
13722000-06-07 Kenichi Handa <handa@etl.go.jp>
1373
1374 * fileio.c (e_write): Free composition data if stored in
1375 coding->cmp_data.
1376
5f1aea9a
GM
13772000-06-06 Gerd Moellmann <gerd@gnu.org>
1378
666852af
GM
1379 * xdisp.c (display_line): Set row's and iterator's
1380 starts_in_middle_of_char_p and ends_in_middle_of_char_p flags.
1381 Set cursor even if row ends in the middle of a character.
1382 (dump_glyph_row): Print values of new flags.
1383 (redisplay_window) <cursor movement in unchanged window>: When
1384 point has been moved forward, and PT is at the end of the cursor
1385 row, don't place the cursor in the next row if the cursor row ends
1386 in the middle of a character or at ZV.
1387
1388 * dispextern.h (struct it): Add starts_in_middle_of_char_p.
1389 (struct glyph_row): Add starts_in_middle_of_char_p and
1390 ends_in_middle_of_char_p.
1391 (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P): Test row's
1392 ends_in_middle_of_char_p flag.
1393 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Likewise.
1394
d13f3e2e
GM
1395 * term.c (append_glyph): Revert change of 2000-06-06.
1396
1397 * xdisp.c (display_line): Revert change of 2000-06-06. Treat
1398 padding glyph not fitting on line as whole character not
1399 fitting on line.
1400
5f1aea9a
GM
1401 * xterm.c (x_produce_glyphs): Don't xassert `it->descent > 0';
1402 this isn't true for images with `:ascent 100'.
1403
10cda9b0
KH
14042000-06-06 Kenichi Handa <handa@etl.go.jp>
1405
ed00559d
KH
1406 * buffer.c (Fset_buffer_multibyte): Don't make the current buffer
1407 as modified if it is originally unmodified.
1408
10cda9b0
KH
1409 * term.c (encode_terminal_code): Change the way to check if
1410 terminal coding does any conversion.
1411 (append_glyph): Set glyph->pixel_width correctly.
1412
1413 * xdisp.c (display_line): While checking line continuation, pay
1414 attention to a padding glyph.
1415
1969fae2
GM
14162000-06-05 Gerd Moellmann <gerd@gnu.org>
1417
1418 * xdisp.c (redisplay_window): Always use set_buffer_internal_1.
1419
162ccef4
DL
14202000-06-05 Dave Love <fx@gnu.org>
1421
f19f32dd
DL
1422 * xdisp.c: Include fontset.h.
1423
1424 * xfns.c (x_real_positions): Declare tmp_nchildren as unsigned.
1425
1426 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
1427
1428 * dispnew.c: Conditionally include term.h.
1429
1430 * coding.h: Declare code_convert_string_norecord.
1431
1432 * frame.h (struct frame): Use volatile unconditionally.
1433
1434 * buffer.h: Remove Vbefore_change_function, Vafter_change_function.
1435
1436 * xmenu.c (menu_item_selection): Declare volatile unconditionally.
1437
1438 * systime.h: Protect against multiple inclusion.
1439 (timezone) [USG5_4]: Define as time_t.
1440
1441 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
1442 (Foptimize_char_table, make_temp_name): Declare.
1443
1444 * Makefile.in (xdisp.o): Depend on fontset.h.
1445
1446 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
1447
1448 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
1449 (Foptimize_char_table, make_temp_name): Declare.
1450
427ec082 1451 * s/irix4-0.h:
162ccef4
DL
1452 * s/irix5-0.h:
1453 * s/netbsd.h: Don't define autoconfiscated MATHERR.
1454
2082fe81
DL
14552000-06-02 Dave Love <fx@gnu.org>
1456
1457 * lread.c (_XOPEN_SOURCE, __EXTENSIONS__): Don't define.
1458
dcf671d2
GM
14592000-06-02 Gerd Moellmann <gerd@gnu.org>
1460
1461 * xfaces.c (realize_x_face): When copying BASE_FACE bitwise to the
1969fae2 1462 result face, set flags in that face indicating that colors may not
dcf671d2
GM
1463 be freed.
1464
1465 * xterm.c (x_set_mouse_face_gc): If first glyph isn't a character
1466 glyph, use the ASCII NUL character to determine the face.
1467
d42122a3
DL
14682000-06-02 Dave Love <fx@gnu.org>
1469
1470 * sysdep.c: Conditionally include stdlib.h, unistd.h.
1471 (VFORK_RETURN_TYPE): Remove.
427ec082 1472
d42122a3
DL
1473 * config.in: Add NO_MATHERR.
1474
dd432f16
DL
14752000-06-01 Dave Love <fx@gnu.org>
1476
90aa4ea8
DL
1477 * cmds.c (internal_self_insert): Don't check
1478 Vbefore_change_function, Vafter_change_function.
1479
1480 * insdel.c (signal_before_change, signal_after_change): Likewise.
1481
1482 * buffer.c (Vbefore_change_function, Vafter_change_function):
1483 Variables and their initializations deleted.
1484
2330c9d4
DL
1485 * callint.c (Fcall_interactively): Doc fix.
1486
dd432f16
DL
1487 * terminfo.c (ospeed) [HAVE_SPEED_T]: Don't declare extern.
1488
bf9e8804
DL
14892000-05-31 Dave Love <fx@gnu.org>
1490
1491 * textprop.c: Revert last change -- duplicated.
1492
3694b4ab
GM
14932000-05-31 Gerd Moellmann <gerd@gnu.org>
1494
1495 * dispnew.c (find_glyph_row_slice, swap_glyphs_in_rows): Put
1496 in #if 0.
1497
1498 * lisp.h (eassert) [!ENABLE_CHECKING]: Define as `(void) 0'.
1499
f14156cd
JR
15002000-05-31 Jason Rumney <jasonr@gnu.org>
1501
8119aab8
JR
1502 * search.c (Fre_search_forward, Fre_search_backward)
1503 (Fposix_search_backward, Fposix_search_forward): Fix newlines in docs.
1504
f14156cd
JR
1505 * w32select.c (Fw32_set_clipboard_data): Change QNil to Qnil.
1506
4aab9be3
JR
15072000-05-30 Jason Rumney <jasonr@gnu.org>
1508
1509 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: New macros.
1510 [WINDOWSNT]: Add extern for Vw32_system_coding_system.
1511
1512 * dispextern.h (struct glyph) [WINDOWSNT]: Add w32_font_type
1513 member.
1514
1515 * fileio.c (Fread_file_name) [HAVE_NTGUI]: Use file dialog.
1516 (Fread_file_name) [HAVE_NTGUI, USE_MOTIF]: Do not attempt to
1517 expand a nil default_filename.
1518
1519 * keyboard.c (make_lispy_event) [WINDOWS_NT]: Pass a window
1520 pointer to glyph_to_pixel_coords, not a frame.
1521
1522 * makefile.nt (w32fns.obj, w32menu.obj): Add charset.h and
1523 coding.h to dependencies.
1524
1525 * w32bdf.c (w32_load_bdf_font): Initialize font->double_byte_p.
1526
1527 * w32console.c (glyph_to_pixel_coords): Change first parameter to
1528 window pointer to be consistent with w32term.c and xterm.c.
1529
1530 * w32fns.c: Format and doc changes to bring closer to xfns.c.
1531 (VIETNAMESE_CHARSET): Define if not defined in system headers.
1532 (Qline_spacing, Qcenter): New variables.
1533 (Qw32_charset_*, w32_codepage_for_font): Moved from w32term.c.
1534 (x_set_line_spacing): New function.
1535 (x_set_frame_parameters): Use FRAME_NEW_WIDTH, FRAME_NEW_HEIGHT
1536 macros.
1537 (x_specified_cursor_type): New function.
1538 (x_set_cursor_type): Use it.
1539 (x_set_name, x_set_title): Use ENCODE_SYSTEM to encode titlebar
1540 and icon strings.
1541 (validate_x_resource_name, x_get_resource_string): Measure lengths
1542 of external strings in bytes.
1543 (w32_wnd_proc) [WM_MEASURE_ITEM]: Avoid calling
1544 GetTextExtentPoint32 with NULL title.
1545 (Fx_create_frame): Initialize Qline_spacing.
1546 (w32_load_system_font): Initialize font->double_byte_p.
1547 (x_to_w32_charset): Use Vw32_charset_info_alist.
1548 (Image, busy cursor, tooltip functions): Merged changes from
1549 xfns.c. Not yet functional on Windows.
1550
1551 * w32gui.h (W32FontStruct): Add double_byte_p member.
1552
1553 * w32inevt.c (NUM_TRANSLATED_MOUSE_BUTTONS): New constant.
1554 (emacs_button_translation): Use it.
1555 (do_mouse_event): Allow up to 32 mouse buttons by allowing any bit
1556 in `mask' to be set.
1557
1558 * w32menu.c (single_submenu, w32_menu_show): Call ENCODE_SYSTEM on
1559 menu strings.
1560
1561 * w32term.c: Format and doc changes to bring closer to xterm.c.
1562 (w32_char_font_type): New enum.
1563 (Qw32_charset_*, w32_codepage_for_font): Moved to w32fns.c.
1564 (w32_per_char_metric): Use w32_char_font_type instead of unicode_p.
1565 (w32_encode_char): New function.
1566 (x_encode_char): Removed.
1567 (x_get_glyph_and_face_encoding): Use w32_encode_char in place of
1568 x_encode_char and w32_font_is_double_byte.
1569 (x_produce_image_glyph): Use image_ascent.
1570 (x_produce_glyphs): Use new version of w32_per_char_metric and
1571 handle NULL return value. Allow extra line spacing.
1572 (W32_TEXTOUT): Distinguish between Unicode and DBCS text.
1573 (w32_get_glyph_overhangs): Remove unicode_p param. Use
1574 w32_font_type member of glyph instead.
1575 (x_draw_glyph_string): Draw underline and strike-out for BDF fonts.
1576 (fast_find_position): Make sure not to consider rows not visible
1577 in the window.
1578 (w32_read_socket) [WM_MENUSELECT]: Cannot call
1579 w32_menu_display_help with input blocked, as it can abort.
1580 (x_display_and_set_cursor): Choose cursor depending
1581 on buffer-local value of cursor_type.
1582 (x_draw_bar_cursor): Add parameter WIDTH.
1583
1584 * w32term.h (CP_DEFAULT): Define.
1585 (Fx_display_color_p, Fx_display_grayscale_p, image_ascent): Declare.
1586
10fc3187
GM
15872000-05-30 Gerd Moellmann <gerd@gnu.org>
1588
1589 * search.c (Fre_search_forward, Fre_search_backward)
1590 (Fposix_search_backward, Fposix_search_forward): Doc fix.
1591
d0555360
KH
15922000-05-30 Kenichi Handa <handa@etl.go.jp>
1593
1594 * coding.c (detect_coding_iso2022): Fix code for checking
1595 CODING_CATEGORY_MASK_ISO_8_2.
1596
f1ad044f
SM
15972000-05-29 Stefan Monnier <monnier@cs.yale.edu>
1598
1599 * regex.c (PREFETCH_NOLIMIT): New function.
1600 (re_match_2_internal): Use it and adjust the end_match_2 logic.
1601
84ec3b4b
GM
16022000-05-29 Gerd Moellmann <gerd@gnu.org>
1603
66254a13
GM
1604 * syntax.c (find_defun_start): Move test for
1605 open_paren_in_column_0_is_defun_start outside of the loop.
1606
49e70dec
GM
1607 * xdisp.c (redisplay_window): Really switch buffers when
1608 displaying mode lines, and temporarily set selected_frame to the
1609 frame of the window that's redisplayed.
1610
84ec3b4b
GM
1611 * xfaces.c (free_realized_faces): Block/unblock input.
1612 (free_realized_multibyte_face): Ditto.
1613
869a3a14
DL
16142000-05-29 Dave Love <fx@gnu.org>
1615
1616 * textprop.c (Qkeymap): New variable.
1617 (syms_of_textprop): Intern it.
1618
1619 * keymap.c: Include intervals.h.
1620 (Fkey_binding, Fwhere_is_internal): Deal with `keymap' property.
1621
1622 * Makefile.in (keymap.o): Depend on intervals.h.
1623
1624 * keyboard.c (menu_bar_items, tool_bar_items)
1625 (Fexecute_extended_command): Deal with `keymap' property.
1626 (read_key_sequence): Track map from `keymap' property as well as
1627 `local_map'.
1628
1629 * intervals.c (get_local_map): Extra arg to allow looking for
1630 `keymap' too.
1631
1632 * intervals.h (map_property): New enum.
1633 (get_local_map): Extra arg using it.
1634 (Qkeymap): Declare.
1635
84ec3b4b 1636 * lisp.h (get_local_map): Don't declare here.
869a3a14 1637
89d0c844
KH
16382000-05-29 Kenichi Handa <handa@etl.go.jp>
1639
1640 * Makefile.in (callproc.o): Depend on composite.h.
1641
1642 * callproc.c: Include composite.h.
1643 (Fcall_process): Handle composition correctly.
1644
1645 * coding.h (coding_allocate_composition_data): Extern it.
1646 (coding_restore_composition): Likewise.
1647
1648 * coding.c (DECODE_COMPOSITION_START): If coding->cmp_data is not
1649 yet allocated, finish decoding with result
1650 CODING_FINISH_INSUFFICIENT_CMP.
1651 (coding_allocate_composition_data): Make it non-static.
1652 (coding_restore_composition): Likewise.
1653
797a084a
EZ
16542000-05-29 Eli Zaretskii <eliz@is.elta.co.il>
1655
1656 * charset.c (syms_of_charset): Revert last change.
1657
cf872af5
EZ
16582000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
1659
1660 * term.c (produce_glyphs): Treat characters from the eight-bit-*
d7d0dac0
SM
1661 charsets as unibyte, with 1-column screen width. Sent by Kenichi
1662 Handa.
cf872af5 1663
5b1ae051
EZ
16642000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
1665
1666 * charset.c (syms_of_charset): Set width of character sets
1667 eight-bit-control and eight-bit-graphic to 1 column.
1668
34ec9ebe
GM
16692000-05-26 Gerd Moellmann <gerd@gnu.org>
1670
1671 * config.in (HAVE_SPEED_T): New define.
1672
1673 * sysdep.c, terminfo.c (ospeed) [HAVE_SPEED_T]: Declare as
1674 `extern speed_t'.
1675
dd854dc2
DL
16762000-05-26 Dave Love <fx@gnu.org>
1677
1678 * coding.c (shrink_decoding_region): Initialize eol_conversion.
1679
1680 * data.c (Qsubrp, Qmany, Qunevalled): New variables.
1681 (Fsubr_arity): New function.
1682 (syms_of_data): Install them.
1683
ba9f8f95
KH
16842000-05-26 Kenichi Handa <handa@etl.go.jp>
1685
0f3e0672
KH
1686 * charset.c (init_charset_once): Set the table bytes_by_char_head
1687 correctly.
1688
cebefb44
KH
1689 * fontset.c (syms_of_fontset): Adjust the font name for ascii of
1690 the default fontset to what Emacs uses by default.
0f3e0672
KH
1691 (check_registry_encoding): This function deleted.
1692 (Fset_fontset_font): Remove the adhoc condition for the default
1693 fontset. Allow cons in FONTNAME.
cebefb44 1694
0f3e0672
KH
1695 * fns.c (map_char_table): Ignore char-table entries for
1696 charsets eight-bit-control and eight-bit-graphic.
ba9f8f95 1697
7a18af49
KR
16982000-05-25 Ken Raeburn <raeburn@gnu.org>
1699
1700 * emacs.c (main): Initialize keyboard syms before initializing
1701 window code, so face names are available.
1702
d2af47df
SM
17032000-05-25 Stefan Monnier <monnier@cs.yale.edu>
1704
1705 * regex.c (at_begline_loc_p): Also recognize the \\(?:^ case
1706 of an anchor at the beginning of a shy-group.
1707
fc6a6a4e
GM
17082000-05-25 Gerd Moellmann <gerd@gnu.org>
1709
1710 * xdisp.c (handle_invisible_prop): Don't try to skip over
1711 invisible text if end of text is already reached.
1712
005f0d35
DL
17132000-05-25 Dave Love <fx@gnu.org>
1714
02513cdd
DL
1715 * xdisp.c (Fdump_glyph_matrix): Declare the arg.
1716
005f0d35
DL
1717 * coding.c (encode_eol): Add null statement after label.
1718
89f6ca4e
EZ
17192000-05-25 Eli Zaretskii <eliz@is.elta.co.il>
1720
1721 * w16select.c (Fw16_set_clipboard_data): Fix the change from
1722 2000-05-20.
1723
a4e1759e
KH
17242000-05-25 Kenichi Handa <handa@etl.go.jp>
1725
1726 * ccl.c (ccl_driver): Fix previous change.
1727
eacfd7fe
KH
17282000-05-25 Kenichi Handa <handa@etl.go.jp>
1729
46ab33a9
KH
1730 * coding.c (run_pre_post_conversion_on_str): Set point to the
1731 beginning of buffer before calling coding->post_read_conversion.
1732 (decode_coding_string): Give correct args to
1733 run_pre_post_conversion_on_str.
1734 (encode_coding_string): Likewise.
1735
eacfd7fe
KH
1736 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>
1737 <CCL_WriteMultibyteChar2>: Handle charsets eight-bit-control and
1738 eight-bit-graphic correctly.
1739
f8569325
DL
17402000-05-24 Kenichi HANDA <handa@etl.go.jp>
1741
1742 * fileio.c (Finsert_file_contents): Even if a file is not found,
1743 execute codes for setting up coding system. Call
1744 after-insert-file-functions unconditionally.
1745
04545643
GM
17462000-05-24 Gerd Moellmann <gerd@gnu.org>
1747
1748 * callproc.c, emacs.c, sysdep.c (setpgrp): Don't define if USG and
1749 BSD_PGRPS are not defined.
1750
747d90ea
KH
17512000-05-24 Kenichi Handa <handa@etl.go.jp>
1752
1753 * charset.c (update_charset_table): Accept nil in LONG_NAME and
1754 DESCRIPTION.
1755 (syms_of_charset): Avoid building same strings.
1756
716e3b88
GM
17572000-05-23 Gerd Moellmann <gerd@gnu.org>
1758
1759 * lread.c (Fload): Add a comment about the meaning of
1760 Vuser_init_file being t.
1761
1762 * puresize.h (BASE_PURESIZE): Increase to 675000.
1763
1764 * s/gnu-linux.h (setpgrp): Don't define it here because this
1765 prevents compilation on GNU/Linux systems with glib 2.2.
1766
1767 * callproc.c, emacs.c, sysdep.c (setpgrp) [HAVE_SETPGID]: Define
1768 as setpgid.
427ec082 1769
9aeb39fa
EZ
17702000-05-23 Eli Zaretskii <eliz@is.elta.co.il>
1771
1772 * Makefile.in (SOME_MACHINE_LISP): Add disp-table.elc,
1773 dos-vars.elc, ccl.elc, and codepage.elc, all loaded by the MS-DOS
1774 version.
1775 (MSDOS_SUPPORT): Add dos-vars.elc, ccl.elc, and codepage.elc.
1776
29ced61b
KH
17772000-05-23 Kenichi Handa <handa@etl.go.jp>
1778
0574a2ed
KH
1779 * syntax.c (skip_chars): Use FETCH_STRING_CHAR_ADVANCE
1780 unconditionally.
1781
3d80f24d
KH
1782 * msdos.c (IT_write_glyphs): Set coding->src_multibyte to 1.
1783
1784 * term.c (encode_terminal_code): Set coding->src_multibyte
1785 properly.
1786
29ced61b
KH
1787 * coding.c (encode_eol): Fix a bug of DOS style EOL encoding.
1788
d7e00792
KH
17892000-05-22 Kenichi Handa <handa@etl.go.jp>
1790
c9d80d38
KH
1791 * keyboard.c (read_char): Allow character codes 128..255 to be
1792 handled by input-method-function.
1793
d7e00792
KH
1794 * insdel.c (adjust_markers_for_replace): Fix previous change.
1795 (adjust_after_replace): If PREV_TEXT is nil, call
1796 adjust_markers_for_insert, not adjust_markers_for_replace.
1797
087121cc 17982000-05-20 NIIBE Yutaka <gniibe@mri.co.jp>
427ec082 1799
087121cc
GM
1800 * s/gnu-linux.h (UNIX98_PTYS) [HAVE_GRANDPT]: Define.
1801 (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_OPEN, PTY_TTY_NAME_SPRINTF)
1802 [HAVE_GRANDPT]: Define.
1803 (C_SWITCH_SYSTEM): Add -D_XOPEN_SOURCE.
1804
1805 * sysdep.c (setup_pty): Treat case that UNIX98_PTYS is defined
1806 like SYSV_PTYS.
1807
1808 * config.in (HAVE_GRANDPT, HAVE_GETPT): New defines.
1809
1810 * process.c (toplevel) [UNIX98_PTYS]: Include stdlib.h.
1811
c9671f81
KH
18122000-05-20 Kenichi Handa <handa@etl.go.jp>
1813
1814 The following changes are to handle 8-bit characters in a
1815 multibyte buffer/string without facing with byte combining
1816 problem. Two new charsets eight-bit-control (for 0x80..0x9F) and
1817 eight-bit-graphic (for 0xA0..0xFF) are introduced.
1818
1819 * Makefile.in (fns.o): Depend on charset.h.
1820
1821 * alloc.c (Fmake_byte_code): If BYTECODE-STRING is multibyte,
1822 convert it to unibyte.
1823 (make_string): Use parse_str_as_multibyte, not chars_in_text.
1824
1825 * buffer.c (advance_to_char_boundary): Don't use DEC_POS to find a
1826 apparent char boundary.
1827 (Fset_buffer_multibyte): Convert 8-bit characters in the range
1828 0x80..0x9F to/from multibyte form.
1829
1830 * bytecode.c (Fbyte_code): If arg BYTESTR is multibyte, convert it
1831 to unibyte.
1832
1833 * callproc.c (Fcall_process): Always encode an argument string if
1834 it is multibyte. Setup src_multibyte and dst_multibyte members of
1835 process_coding properly.
ce75fd23 1836
c9671f81
KH
1837 * category.c (Fmodify_category_entry): Use SPLIT_CHAR, not
1838 SPLIT_NON_ASCII_CHAR.
1839
1840 * ccl.c (CCL_WRITE_CHAR): Be sure to write single byte characters
1841 as is.
1842 (CCL_MAKE_CHAR): Use MAKE_CHAR, not MAKE_NON_ASCII_CHAR.
1843
1844 * charset.c (Qeight_bit_control, Qeight_bit_graphic): New
1845 variables.
1846 (SPLIT_CHARACTER_SEQ): This macro deleted.
1847 (SPLIT_MULTIBYTE_SEQ): Assume that multibyte sequence at STR is
1848 valid.
1849 (CHAR_COMPONENTS_VALID_P): Handle new charsets; eight-bit-control
1850 and eight-bit-graphic.
1851 (char_to_string): Likewise. Signal an error for too large
1852 character code.
1853 (char_printable_p): Return 0 for 8-bit characters.
1854 (update_charset_table): Update iso_charset_table only when a final
1855 character is non-negative.
1856 (find_charset_in_text): Renamed from find_charset_in_str.
1857 Arguments and return value changed. Callers changed.
1858 (Fdefine_charset): Args ISO-FINAL-CHAR and ISO-GRAPHIC-PLANE can
1859 be -1 if CHARSET is used only internally.
1860 (Fmake_char_internal): Handle new charsets; eight-bit-control and
1861 eight-bit-graphic.
1862 (Fcharset_after): Simplified.
1863 (char_valid_p): Use SPLIT_CHAR, not SPLIT_NON_ASCII_CHAR.
1864 (char_bytes): Return 2 for chars of the range 0xA0..0xFF.
1865 (multibyte_chars_in_text): Simplified by assuming there's no
1866 invalid multibyte sequence.
1867 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte,
1868 str_as_unibyte): New functions.
1869 (Fstring): Simpified by assuming that byte combining never
1870 happens.
1871 (init_charset_once): Initialization for
1872 LEADING_CODE_8_BIT_CONTROL.
1873 (syms_of_charset): Intern and staticpro Qeight_bit_control and
1874 Qeight_bit_graphic. Include them in Vcharset_list. Make charsets
1875 eight-bit-control and eight-bit-graphic.
1876
1877 * charset.h (LEADING_CODE_8_BIT_CONTROL, CHARSET_8_BIT_CONTROL,
1878 CHARSET_8_BIT_GRAPHIC): New macros.
1879 (SINGLE_BYTE_CHAR_P): Make it faster by using casting.
1880 (CHARSET_ISO_GRAPHIC_PLANE): Use XINT instead of XFASTINT.
1881 (CHARSET_REVERSE_CHARSET): Likewise.
1882 (CHARSET_VALID_P): Handle new charsets; eight-bit-control and
1883 eight-bit-graphic.
1884 (BYTES_BY_CHAR_HEAD, WIDTH_BY_CHAR_HEAD): Optimize for ASCII.
1885 (CHAR_CHARSET, MAKE_CHAR, SPLIT_CHAR, CHAR_BYTES): Likewise.
1886 (PARSE_MULTIBYTE_SEQ) [BYTE_COMBINING_DEBUG]: Abort if we
1887 encounter an invalid multibyte sequence.
1888 (PARSE_MULTIBYTE_SEQ) [not BYTE_COMBINING_DEBUG]: Assume multibyte
1889 sequence is always valid.
1890 (MAKE_NON_ASCII_CHAR, SPLIT_NON_ASCII_CHAR): These macros Deleted.
1891 (UNIBYTE_STR_AS_MULTIBYTE_P, MULTIBYTE_STR_AS_UNIBYTE_P): New
1892 macros.
1893 (CHAR_STRING): For 8-bit characters, call char_to_string.
1894 (INC_POS) [not BYTE_COMBINING_DEBUG]: Faster version. Assume
1895 multibyte sequence is always valid.
1896 (BUF_INC_POS) [not BYTE_COMBINING_DEBUG]: Likewise.
1897 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte,
1898 str_as_unibyte): Extern them.
1899 (BCOPY_SHORT): Fix a bug.
1900 (CHAR_LEN): This macro deleted. Callers changed to use
1901 CHAR_BYTES.
1902 (FETCH_STRING_CHAR_ADVANCE): Check multibyteness of STRING.
1903 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): New macro.
1904 (FETCH_CHAR_ADVANCE): Check multibyteness of the current buffer.
1905
bd4bde7f 1906 * coding.c (ONE_MORE_BYTE, TWO_MORE_BYTES): Set coding->result to
c9671f81
KH
1907 CODING_FINISH_INSUFFICIENT_SRC if there's not enough source.
1908 (ONE_MORE_CHAR, EMIT_CHAR, EMIT_ONE_BYTE, EMIT_TWO_BYTE,
1909 EMIT_BYTES): New macros.
1910 (THREE_MORE_BYTES, DECODE_CHARACTER_ASCII,
1911 DECODE_CHARACTER_DIMENSION1, DECODE_CHARACTER_DIMENSION2): These
1912 macros deleted.
1913 (CHECK_CODE_RANGE_A0_FF): This macro deleted.
1914 (detect_coding_emacs_mule): Use UNIBYTE_STR_AS_MULTIBYTE_P to
1915 check the validity of multibyte sequence.
1916 (decode_coding_emacs_mule): New function.
1917 (encode_coding_emacs_mule): New macro.
1918 (detect_coding_iso2022): Use ONE_MORE_BYTE to fetch a byte from
1919 the source.
1920 (DECODE_ISO_CHARACTER): Just return a character code.
1921 (DECODE_COMPOSITION_START): Set coding->result instead of result.
1922 (decode_coding_iso2022, decode_coding_sjis_big5, decode_eol): Use
1923 EMIT_CHAR to produced decoded characters. Exit the loop only by
1924 macros ONE_MORE_BYTE or EMIT_CHAR. Don't handle the case of last
1925 block here.
1926 (ENCODE_ISO_CHARACTER): Don't translate character here. Produce
1927 only position codes for an invalid character.
1928 (encode_designation_at_bol): Return new destination pointer. 5th
1929 arg DSTP is changed to DST.
1930 (encode_coding_iso2022, decode_coding_sjis_big5): Get a character
1931 from the source by ONE_MORE_CHAR. Don't handle the case of last
1932 block here.
1933 (DECODE_SJIS_BIG5_CHARACTER, ENCODE_SJIS_BIG5_CHARACTER): These
1934 macros deleted.
1935 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8,
1936 detect_coding_utf_16, detect_coding_ccl): Use ONE_MORE_BYTE and
1937 TWO_MORE_BYTES to fetch a byte from the source.
1938 (encode_eol): Pay attention to coding->src_multibyte.
1939 (detect_coding, detect_eol): Preserve members src_multibyte and
1940 dst_multibyte.
1941 (DECODING_BUFFER_MAG): Return 2 even for coding_type_raw_text.
1942 (encoding_buffer_size): Set magnification to 3 for all coding
1943 systems that require encoding.
1944 (ccl_coding_driver): For decoding, be sure that the result is
1945 valid multibyte sequence.
1946 (decode_coding): Initialize coding->errors and coding->result.
1947 For emacs-mule, call decode_coding_emacs_mule. For no-conversion
1948 and raw-text, always call decode_eol. Handle the case of last
1949 block here. If not coding->dst_multibyte, convert the resulting
1950 sequence to unibyte.
1951 (encode_coding): Initialize coding->errors and coding->result.
1952 For emacs-mule, call encode_coding_emacs_mule. For no-conversion
1953 and raw-text, always call encode_eol. Handle the case of last
1954 block here.
1955 (shrink_decoding_region, shrink_encoding_region): Detect cases
1956 that we can't skip data more rigidly.
1957 (code_convert_region): Setup src_multibyte and dst_multibyte
1958 members of coding. For decoding, if the buffer is multibyte,
1959 convert the source sequence to unibyte in advance. For encoding,
1960 if the buffer is multibyte, convert the resulting sequence to
1961 multibyte afterward.
1962 (run_pre_post_conversion_on_str): New function.
1963 (code_convert_string): Deleted and divided into the following two.
1964 (decode_coding_string, encode_coding_string): New functions.
1965 (code_convert_string1, code_convert_string_norecord): Call one of
1966 above.
1967 (Fdecode_sjis_char, Fdecode_big5_char): Use MAKE_CHAR instead of
1968 MAKE_NON_ASCII_CHAR.
1969 (Fset_terminal_coding_system_internal,
1970 Fset_safe_terminal_coding_system_internal): Setup src_multibyte
1971 and dst_multibyte members.
1972 (init_coding_once): Initialize iso_code_class with new enum
1973 ISO_control_0 and ISO_control_1.
1974
1975 * coding.h (enum iso_code_class_type): Member ISO_control_code is
1976 devided into ISO_control_0 and ISO_control_1.
1977 (struct coding_system): New members src_multibyte, dst_multibyte,
1978 errors, and result. Delete member fake_multibyte.
1979 (CODING_REQUIRE_DECODING): Return 1 if coding->dst_multibyte is
1980 nonzero.
1981 (CODING_REQUIRE_ENCODING): Return 1 if coding->src_multibyte is
1982 nonzero.
1983
1984 * data.c (Faref): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
1985 (Faset): Likewise.
1986
1987 * editfns.c (Fformat): Be sure to convert 8-bit characters to
1988 multibyte form.
1989 (Ftranspose_region) [BYTE_COMBINING_DEBUG]: Abort if byte
1990 combining occurs.
1991 (Ftranspose_region): Delete codes for handling byte combining.
1992
1993 * fileio.c (Finsert_file_contents): Setup src_multibyte and
1994 dst_multibyte members of coding. On handling REPLACE on unibyte
1995 buffer, convert the result of decode_coding to unibyte. On
1996 inserting into a mutibyte buffer, always call code_convert_region.
bd4bde7f 1997 (e_write): Setup coding->src_multibyte according to the
c9671f81
KH
1998 multibyteness of the source (buffer or string).
1999
2000 * fns.c (concat): Handle 8-bit characters correctly.
2001 (Fstring_as_unibyte): Be sure to make all 8-bit characters in
2002 unibyte in the result.
2003 (Fstring_as_multibyte): Be sure to make all 8-bit characters in
2004 valid multibyte form in the result.
2005 (map_char_table): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
2006 (Fbase64_encode_region, Fbase64_encode_string): If base64_encode_1
2007 return -1, signal an error.
2008 (base64_encode_1): New arg MULTIBYTE. Get each character by
2009 CHAR_STRING_AND_LENGTH if MULTIBYTE is nonzero. If a multibyte
2010 character is found, return -1.
2011 (Fbase64_decode_region): Delete codes for handling byte-combining.
2012 Treat each decoded byte as a unibyte character.
2013 (Fbase64_decode_string): Return unibyte string.
2014 (Fcompare_strings, concat, string_byte_to_char): Use
2015 FETCH_STRING_CHAR_ADVANCE_NO_CHECK instead off
2016 FETCH_STRING_CHAR_ADVANCE.
2017 (Fstring_lessp): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
2018 (mapcar1): If SEQ is string, always use FETCH_STRING_CHAR_ADVANCE.
2019
2020 * fontset.c (fontset_ref): Use SPLIT_CHAR instead of
2021 SPLIT_NON_ASCII_CHAR.
2022 (fontset_ref_via_base, fontset_set): Likewise
2023
2024 * insdel.c (adjust_markers_for_record_delete): Deleted.
2025 (adjust_markers_for_insert): Argument changed. Caller changed.
2026 (adjust_markers_for_replace): Likewise.
2027 (ADJUST_CHAR_POS, combine_bytes, byte_combining_error,
2028 CHECK_BYTE_COMBINING_FOR_INSERT): Deleted.
2029 (copy_text): Delete unused local varialbe c_save. For converting
2030 to multibyte, be sure to make all 8-bit characters in valid
2031 multibyte form.
2032 (count_size_as_multibyte): Handle 8-bit characters correctly.
2033 (insert_1_both, insert_from_string_1, insert_from_buffer_1,
2034 adjust_after_replace, replace_range, del_range_2)
2035 [BYTE_COMBINING_DEBUG]: Abort if byte combining occurs.
2036 (insert_1_both, insert_from_string_1, insert_from_buffer_1,
2037 adjust_after_replace, replace_range, del_range_2) Delete codes for
2038 handling byte combining.
2039 (adjust_before_replace): Deleted.
427ec082 2040
c9671f81
KH
2041 * keymap.c (Fsingle_key_description): Use SPLIT_CHAR instead of
2042 SPLIT_NON_ASCII_CHAR.
2043 (describe_vector): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
2044 (Faccessible_keymaps): Use FETCH_STRING_CHAR_ADVANCE
2045 unconditionally.
2046 (Fkey_description): Likewise.
2047
2048 * lread.c (read1): On reading multibyte string, be sure to make
2049 all 8-bit chararacters in valid multibyte form.
2050 (readchar): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
2051
2052 * print.c (print_object): Use FETCH_STRING_CHAR_ADVANCE
2053 unconditionally.
2054
2055 * process.c (Fstart_process): GCPRO current_dir before calling
2056 Ffind_operation_coding_system. Encode arguments here.
2057 (create_process): Don't encode arguments here. Setup
2058 src_multibyte and dst_multibyte members of struct coding.
2059 (read_process_output): Setup src_multibyte and dst_multibyte
2060 members of struct coding. If the output is to multibyte buffer,
2061 always decode the output of the process. Adjust the
2062 representation of 8-bit characters to the multibyteness of the
2063 output.
2064 (send_process): Setup coding->src_multibyte according to the
2065 multibyteness of the source.
2066
2067 * search.c (wordify): Use FETCH_STRING_CHAR_ADVANCE
2068 unconditionally.
2069 (Freplace_match): Use FETCH_STRING_CHAR_ADVANCE and
2070 FETCH_STRING_CHAR_ADVANCE_NO_CHECK appropriately.
2071
2072 * term.c (produce_special_glyphs): Use CHAR_BYTES instead of
2073 CHAR_LEN.
2074
2075 * w16select.c (Fw16_set_clipboard_data): Setup members
2076 src_multibyte and dst_multibyte of coding. Adjusted for the
2077 change for find_charset_in_str.
2078 (Fw16_get_clipboard_data): Likewise.
2079
2080 * w32fns.c (w32_to_x_font): Setup members src_multibyte and
2081 dst_multibyte of coding.
2082 (x_to_w32_font): Likewise.
2083
2084 * w32select.c (Fw32_set_clipboard_data): Setup members
2085 src_multibyte and dst_multibyte of coding. Adjusted for the
2086 change for find_charset_in_str.
2087 (Fw32_get_clipboard_data): Likewise.
2088
2089 * xdisp.c (get_next_display_element): Handle 8-bit characters
2090 correctly.
2091 (next_element_from_display_vector): Use CHAR_BYTES instead of
2092 CHAR_LEN.
2093 (disp_char_vector): Use SPLIT_CHAR instead of
2094 SPLIT_NON_ASCII_CHAR.
2095
2096 * xselect.c (selection_data_to_lisp_data): Setup members
2097 src_multibyte and dst_multibyte of coding. Adjusted for the
2098 change for find_charset_in_str.
2099 (lisp_data_to_selection_data): Likewise.
2100
5f64c9e0
GM
21012000-05-19 Gerd Moellmann <gerd@gnu.org>
2102
2b63d473
GM
2103 * buffer.c (Fbury_buffer): Avoid trouble from burying a killed
2104 buffer.
2105
5f64c9e0
GM
2106 * dispextern.h (Vimage_types): Add extern declaration.
2107
2108 * xdisp.c (Vimage_types): Moved here from xfns.c.
2109 (syms_of_xdisp): Move `image-types' variable here from xfns.c.
2110
2111 * xfns.c (Vimages_types): Moved to xdisp.c.
2112 (syms_of_xfns): Move `image-types' to xdisp.c.
2113
2114 * w32fns.c (Vimage_types): Removed.
2115 (syms_of_w32fns): Remove `image-types'.
2116
813086ea
KH
21172000-05-18 Kenichi Handa <handa@etl.go.jp>
2118
2119 * fns.c (map_char_table): Pay attention to character number of
2120 charset. Check the validity of charset at the first level. For
2121 leaf nodes that has nil value, call C_FUNCTION or FUNCTION with
2122 the default value.
2123
2124 * fontset.c: Include "buffer.h".
2125 (fs_load_font): If the face has fontset, record the face ID in
2126 that fontset.
2127 (Finternal_char_font): New function.
2128 (accumulate_font_info): New function.
2129 (Ffontset_info): Rewritten for the new fontset implementation.
2130 (syms_of_fontset): Register Vdefault_fontset in the first element
2131 of Vfontset_table. Include Vdefault_fontset in
2132 Vfontset_alias_alist. Declare `internal-char-font' as a Lisp
2133 function.
2134
bdaebbf0
DL
21352000-05-16 Dave Love <fx@gnu.org>
2136
2137 * m/iris5d.h: Deleted -- unused.
2138
cb613bb8
GM
21392000-05-16 Gerd Moellmann <gerd@gnu.org>
2140
b15f3b77
GM
2141 * xdisp.c, w32.c, print.c, msdos.c, emacs.c: Use the term
2142 `invalid' instead of `illegal'.
2143
2144 * indent.c (Fmove_to_column): When ending within a tab, insert
2145 spaces first so that markers at the end of the tab get adjusted.
2146
835c1b36
GM
2147 * frame.c (frames_bury_buffer): Don't add a buffer to the frame's
2148 buffer list that wasn't selected in that frame.
2149
cb613bb8
GM
2150 * filelock.c (get_boot_time): To obtain an 8 char file name, which
2151 is needed on mescaline, use a 2 char prefix, and call
2152 make_temp_name with second arg non-zero.
2153
2154 * fileio.c (make_temp_name): New function, extracted from
2155 Fmake_temp_name.
2156 (Fmake_temp_name): Use it.
2157
f685bea9
EZ
21582000-05-15 Eli Zaretskii <eliz@is.elta.co.il>
2159
2160 * window.c (coordinates_in_window): Subtract 1 when computing
2161 right_x.
2162
a1b8d58b
GM
21632000-05-15 Gerd Moellmann <gerd@gnu.org>
2164
2165 * Makefile.in (lisp): Add env.elc.
2166
2167 * callproc.c (Fgetenv_internal): Renamed from Fgetenv.
2168
a265079f
GM
21692000-05-12 Gerd Moellmann <gerd@gnu.org>
2170
2171 * search.c (Freplace_match): Handle case of `\N' in the
2172 replacement when there's no group N.
2173
da4496b6
GM
21742000-05-11 Gerd Moellmann <gerd@gnu.org>
2175
0ace421a
GM
2176 * xdisp.c (add_to_log): Don't pass the terminating NUL byte
2177 of the message to message_dolog.
2178
1172eb8d
GM
2179 * keyboard.c (read_char): Don't clear current message for help
2180 events; let the code handling help events handle this. Change
2181 code detecting help events that should be ignored.
2182
da4496b6
GM
2183 * xdisp.c (handle_single_display_prop): Don't try to set PT if
2184 we're interating over a string.
2185
0623e40f
DL
21862000-05-09 Dave Love <fx@gnu.org>
2187
2188 * fileio.c (Fwrite_region): If APPEND arg is an integer, seek to
2189 that offset before writing. Move gcpro region past call of
2190 Ffile_regular_p.
2191
bae2503b
DL
21922000-05-04 Dave Love <fx@gnu.org>
2193
2194 * buffer.c (syms_of_buffer) [auto-fill-function]: Doc fix.
2195
ec82fb2f
GM
21962000-05-04 Gerd Moellmann <gerd@gnu.org>
2197
2198 * insdel.c (insert_from_buffer_1): Adjust FROM position by number
2199 of inserted characters when BUF equals the current buffer, and PT
2200 is in front of or equal to FROM.
2201
cbf18892
GM
22022000-05-03 Gerd Moellmann <gerd@gnu.org>
2203
4ff40dd0
GM
2204 * xdisp.c (handle_single_display_prop): If display property value
2205 is invalid, or something not supported on the frame, restore
2206 iterator's position to what it was initially. Make sure to return
2207 0 for invalid and unsupported property values.
2208
cbf18892
GM
2209 * xterm.c (x_produce_glyphs) <composite chars>: Handle case
2210 that x_per_char_metric returns null.
2211
1b0672c3
GM
22122000-05-02 Gerd Moellmann <gerd@gnu.org>
2213
576da55d
GM
2214 * xterm.h (struct face): Add forward declaration.
2215 (struct image): Ditto.
2216 (image_ascent): Add prototype.
2217
2218 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
2219 (x_draw_image_relief, x_draw_image_foreground_1): Call function
2220 image_ascent instead of using IMAGE_ASCENT.
2221
2222 * dispextern.h (DEFAULT_IMAGE_HEIGHT): New macro.
2223 (IMAGE_ASCENT): Removed.
2224
2225 * xfns.c (Qcenter): New variable.
2226 (enum image_value_type): Add IMAGE_ASCENT_VALUE.
2227 (parse_image_spec): Handle IMAGE_ASCENT_VALUE.
2228 (image_ascent): New function.
2229 (lookup_image): Recognize `:ascent center'.
2230 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
2231 (tiff_format, gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
2232 (xbm_load): Don't set image's ascent here.
2233 (xbm_image_p, xpm_image_p, pbm_image_p, png_image_p)
2234 (jpeg_image_p, tiff_image_p, gif_image_p, gs_image_p): Don't
2235 check ascent values here.
2236 (Fimagep, Flookup_image [GLYPH_DEBUG]: Removed.
2237 (syms_of_xfns) [GLYPH_DEBUG]: Don't defsubr removed functions.
2238 (syms_of_xfns): Initialize Qcenter.
2239
1b0672c3
GM
2240 * eval.c (Fsignal): If lisp_eval_depth or spepdl_size are near
2241 to the limits, increase the limits.
2242
0d7811ed
KH
22432000-05-01 Kenichi Handa <handa@etl.go.jp>
2244
2245 * fontset.c (fs_load_font): By default, use 0x00..0x7f for ASCII.
2246 Check Vfont_encoding_alist against the full name of the opened
2247 font.
2248
a943a5ca
GM
22492000-04-28 Gerd Moellmann <gerd@gnu.org>
2250
2251 * xdisp.c (make_cursor_line_fully_visible): Handle case of rows
2252 taller than the window.
2253
5dba1e29
KH
22542000-04-28 Kenichi Handa <handa@etl.go.jp>
2255
2256 * xfaces.c (realize_x_face): Fix the argument of the second
2257 xassert. BASE_FACE may not be a face for ASCII.
2258
353964e3
GM
22592000-04-27 Gerd Moellmann <gerd@gnu.org>
2260
c76e04a8
GM
2261 * print.c (print_object): Treat print-length < 0 as nil.
2262
2263 * Makefile.in (termcapobj): Don't use TERMCAP_OBJ.
2264
2265 * s/freebsd.h (TERMCAP_OBJ): Removed.
2266 (LIBS_TERMCAP): Don't define for __FreeBSD_version >= 400000.
2267
2268 * lread.c (read1): Don't treat period followed by certain
2269 characters as symbol start.
2270
2271 * xfns.c (slurp_file): New function.
2272 (xbm_image_p): Handle case of in-memory XBM files.
2273 (xbm_scan): Rewritten to work on memory buffers instead of files.
2274 (xbm_read_bitmap_data): Renamed from xbm_read_bitmap_file_data.
2275 Work on memory buffers instead of files. If DATA is null test
2276 if buffer looks like an in-memory XBM file.
2277 (xbm_load_image): Renamed from xbm_load_image_file. Work on
2278 memory buffers instead of files.
2279 (xbm_file_p): New function.
2280 (xbm_load): Accept :data DATA where DATA is an in-memory XBM file.
2281
353964e3
GM
2282 * lread.c (end_of_file_error): New function.
2283 (read1): Call it instead of signaling `end-of-file' directly.
2284
427ec082 2285 * print.c (print_error_message): Print data of `end-of-file'
353964e3
GM
2286 with Fprinc instead of Fprin1.
2287
24d744ac
KR
22882000-04-26 Ken Raeburn <raeburn@gnu.org>
2289
2290 * window.c (freeze_window_start): Check that minibuffer scroll
2291 window isn't nil before extracting the window structure pointer
2292 from it.
2293
2294 * undo.c (record_delete): If we hit the end of the undo list, stop
2295 picking elements apart.
2296
7464346d
GM
22972000-04-26 Gerd Moellmann <gerd@gnu.org>
2298
2299 * xdisp.c (display_line): If lines are continued, restore
2300 iterator's ascent/descent information to the values before the
2301 first glyph not fitting on the line.
2302
612839b6
GM
23032000-04-25 Gerd Moellmann <gerd@gnu.org>
2304
2305 * xdisp.c (try_window_id) <all changes above window start>: Adjust
2306 positions in glyph matrix. Don't compute new window end
2307 positions.
2308
2309 * dispnew.c (increment_matrix_positions): Renamed from
2310 increment_glyph_matrix_buffer_positions.
2311 (increment_row_positions): Renamed from
2312 increment_glyph_row_buffer_positions.
2313
2314 * dispextern.h: Change names of renamed functions from dispnew.c
2315 in prototypes.
2316
cc181e95
GM
23172000-04-24 Gerd Moellmann <gerd@gnu.org>
2318
abfcc168
GM
2319 * fileio.c (Fdo_auto_save): Create directories for auto-save
2320 list file if necessary.
2321
cc181e95
GM
2322 * xdisp.c (init_iterator): Set iterator's extra_line_spacing
2323 from buffer or frame.
2324 (automatic_hscrolling_p): New variable.
2325 (hscroll_windows): Scroll windows horizontally only if automatic
2326 hscrolling is allowed.
2327 (syms_of_xdisp): New variable `automatic-hscrolling'.
2328
2329 * frame.h (struct frame): Add member extra_line_spacing.
2330
2331 * xfns.c (x_set_line_spacing): New function.
2332 (Fx_create_frame): Set line spacing from resources.
2333 (Qline_spacing): New variable.
2334 (syms_of_xfns): Initialize Qline_spacing.
427ec082 2335
cc181e95
GM
2336 * emacs.c (USAGE2): Add `--line-spacing' and `-lsp'.
2337
2338 * buffer.c (init_buffer_once): Handle extra_line_spacing.
2339 (syms_of_buffer): Add `default-line-spacing' and `line-spacing'.
abfcc168 2340 (reset_buffer): Don't initialize extra2 and extra3. Initialize
cc181e95
GM
2341 extra_line_spacing from default value.
2342 (init_buffer_once): Initialize default value of extra_line_spacing.
2343
2344 * buffer.h (struct buffer): Add extra_line_spacing, remove extra2
2345 and extra3.
2346
2347 * xterm.c (x_produce_glyphs): Remove reference to struct it's
2348 prompt_width. Add extra line spacing.
2349
2350 * term.c (produce_glyphs): Remove reference to struct it's
2351 prompt_width.
2352
2353 * dispextern.h (struct it): Remove member prompt_width, add
2354 extra_line_spacing.
2355
58827478
GM
23562000-04-22 Gerd Moellmann <gerd@gnu.org>
2357
2358 * dispnew.c (update_frame_line): When writing a whole line, make
2359 sure cursor is in the right row afterwards, otherwise a use of
2360 capability `ch' in cmgoto might leave the cursor in the row below.
2361
25a87f42
GM
23622000-04-21 Gerd Moellmann <gerd@gnu.org>
2363
2364 * lisp.h (struct Lisp_Buffer_Cons): Remove.
2365
2366 * keyboard.c (timer_check): Fix typo in comment.
2367
54edf5c2
KH
23682000-04-21 Kenichi Handa <handa@etl.go.jp>
2369
2370 * fontset.c (Fset_fontset_font): Fix docstring. Local variable
2371 name change: ch -> character.
2372
3a64eef5
GM
23732000-04-20 Gerd Moellmann <gerd@gnu.org>
2374
2375 * keyboard.c (echo_message_buffer): New variable.
2376 (echo_now): Set echo_message_buffer to the echo area buffer used
2377 to display the echo.
2378 (cancel_echoing): Reset echo_message_buffer to nil.
2379 (read_char): Code rewritten that handles canceling an echo or
2380 echoing a dash, respectively.
2381
2382 * fileio.c (Ffile_writable_p) [WINDOWSNT]: Return nil if parent
2383 directory doesn't exist.
2384
6142fdcb
DL
23852000-04-19 Dave Love <fx@gnu.org>
2386
2387 * fns.c (syms_of_fns): Defsubr mapc.
a9cacab7
DL
2388 (concat): Don't allow numeric args.
2389 (Fconcat): Doc change.
6142fdcb 2390
ac6b5352
SM
23912000-04-19 Stefan Monnier <monnier@cs.yale.edu>
2392
2393 * regex.c (re_match_2_internal): Don't shorten the strings anymore,
2394 instead define end_match(1|2) more carefully.
2395 Use GET_CHAR_BEFORE_2 for `begline'.
2396
cb9215e4
GM
23972000-04-19 Gerd Moellmann <gerd@gnu.org>
2398
5e3dac3f
GM
2399 * frame.h (SELECTED_FRAME): Change definition to compile cleanly
2400 on 64-bit systems where NULL is defined as `0'.
2401
2402 * xdisp.c (with_echo_area_buffer): Add more `int' parameters for
2403 the `variable argument list' to make it work on Alpha.
2404
cb9215e4
GM
2405 * m/alpha.h (_LP64) [!_LP64]: Define.
2406 (ORDINARY_LINK): Define for NetBSD.
2407
2408 * m/macppc.h (ORDINARY_LINK): Define for NetBSD.
427ec082 2409
f532dca0
DL
24102000-04-19 Dave Love <fx@gnu.org>
2411
c750667e
DL
2412 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Revert 2000-04-14
2413 change.
2414
2415 * Makefile.in (LIBS): Don't use.
2416 (GETLOADAVG_OBJ): Define again.
2417 (otherobj): Add GETLOADAVG_OBJ.
2418
f532dca0
DL
2419 * buffer.c (Fmake_indirect_buffer): Escape newline in doc.
2420
1c7e22fd
GM
24212000-04-18 Gerd Moellmann <gerd@gnu.org>
2422
f6d3257b
GM
2423 * lread.c (read_filtered_event): Cancel and start busy cursor.
2424
427ec082 2425 * xterm.c (x_produce_glyphs) <ASCII chars>: Take into account
1c7e22fd
GM
2426 that the per-character metrics may be null.
2427
e10f64e7
GM
24282000-04-17 Gerd Moellmann <gerd@gnu.org>
2429
0daee095
GM
2430 * buffer.c (clone_per_buffer_values): New function.
2431 (Fmake_indirect_buffer): Add optional argument CLONE. Call
2432 clone_per_buffer_values if CLONE is not nil.
2433
e10f64e7
GM
2434 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
2435
38687d43
DL
24362000-04-16 Dave Love <fx@gnu.org>
2437
2438 * Makefile.in: Remove obsolete localcpp stuff.
2439 (GETLOADAVG_OBJ): Don't define.
2440 (obj): Move LIBOBJS...
2441 (otherobj): ... to here.
2442 (MSDOS_OBJ): Convert to make variable -- preprocessing zapped
2443 whitespace-only lines after the continuation (Irix).
2444
c21c7262
GM
24452000-04-14 Gerd Moellmann <gerd@gnu.org>
2446
2447 * xfns.c (xpm_load) [DEBUG_X_COLORS]: Register colors.
2448
2449 * s/freebsd.h (LD_SWITCH_SYSTEM): Add `-L /usr/local/lib'.
2450
314767c0
DL
24512000-04-14 Dave Love <fx@gnu.org>
2452
2453 * s/aix3-1.h, s/bsd4-2.h, s/bsd4-3.h, s/cxux.h, s/dgux.h, s/gnu.h:
2454 * s/hpux.h, s/iris3-5.h, s/iris3-6.h, s/irix3-3.h, s/rtu.h:
2455 * s/unipl5-0.h, s/unipl5-2.h, s/usg5-0.h, s/usg5-2-2.h, s/usg5-2.h:
2456 * s/usg5-3.h, s/xenix.h, s/umax.h: Don't define autoconfiscated
2457 NLIST_STRUCT.
2458
2459 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Don't define
2460 autoconfiscated HAVE_GETLOADAVG.
2461
2462 * s/nextstep.h, s/sco4.h, s/sco5.h: Don't define autoconfiscated
2463 BROKEN_MKTIME.
2464
a2522dca
GM
24652000-04-14 Gerd Moellmann <gerd@gnu.org>
2466
2467 * filelock.c (MAKE_LOCK_NAME): Allocate 2 more bytes.
2468 (fill_in_lock_file_name): Avoid existing files that aren't
2469 links.
2470
33744b5d
DL
24712000-04-14 Dave Love <fx@gnu.org>
2472
c21c7262 2473 * Makefile.in (LIBS, LIBOBJS): New variable.
33744b5d
DL
2474 (INTERVAL_SRC): Convert to make variable.
2475 (INTERVAL_OBJ, MKTIME_OBJ, FLOAT_SUPPORT, FACE_SUPPORT)
2476 (HAVE_X_WINDOWS, OBJECTS_SYSTEM): Remove.
2477 (obj): Substitute INTERVAL_OBJ, add MKTIME_OBJ, GETLOADAVG_OBJ and
2478 add LIBOBJS.
2479 (SOME_MACHINE_OBJECTS): Remove interval stuff.
2480 (lisp): Substitute FACE_SUPPORT, FLOAT_SUP.
2481 (shortlisp): Add facemenu, float-sup, frame.
2482 (SOME_MACHINE_LISP): Remove them from here.
2483 (LIBES): Change unused LDLIBS to autoconf LIBS.
2484
2485 * config.in: Add BROKEN_MKTIME, NLIST_STRUCT, NLIST_NAME_UNION.
2486
9d3d5916
KH
24872000-04-14 Kenichi Handa <handa@etl.go.jp>
2488
2489 * composite.c (update_compositions): If FROM and TO are not in a
2490 valid range, do nothing.
2491
198e3c7a
GM
24922000-04-13 Gerd Moellmann <gerd@gnu.org>
2493
2494 * tparam.c (tparam1): Abort when encountering an unknown
2495 `%'-specifier.
2496
2497 * s/freebsd.h (TERMCAP_OBJ) [__FreeBSD__ >= 4]: Define as
2498 terminfo.o.
2499
2500 * Makefile.in (termcapobj) [LIBS_TERMCAP && TERMCAP_OBJ]: Define
2501 as TERMCAP_OBJ.
2502
055a28c9
EZ
25032000-04-13 Eli Zaretskii <eliz@is.elta.co.il>
2504
2505 * fileio.c (a_write): Remove redundant semi-colons.
2506 (e_write): Return -1 if failed to write all the data.
2507 This fixes the changes made at 1999-12-15.
2508
f5c75033
DL
25092000-04-12 Dave Love <fx@gnu.org>
2510
2511 * fns.c (mapcar1): Test for null vals to support mapc.
2512 (Fmapc): New function.
2513
0c3cfc51
EZ
25142000-04-12 Eli Zaretskii <eliz@is.elta.co.il>
2515
2516 * msdos.c (NUM_MOUSE_BUTTONS): Define.
2517 (IT_frame_up_to_date): Support the buffer local value of
2518 cursor-type, if defined.
2519
33465a31
DL
25202000-04-10 Dave Love <fx@gnu.org>
2521
2522 * editfns.c (preceding-char, following-char): Doc fix.
2523
6ed56568
KR
25242000-04-10 Ken Raeburn <raeburn@gnu.org>
2525
2526 * Makefile.in (temacs): Revert 2000-03-12 change.
2527
7cf80d4e
JR
25282000-04-10 Jason Rumney <jasonr@gnu.org>
2529
2530 * xfaces.c (realize_face): Change FRAME_X_P to FRAME_WINDOW_P.
2531
34f3f342
GM
25322000-04-10 Gerd Moellmann <gerd@gnu.org>
2533
1a1b1895
GM
2534 * xdisp.c (setup_echo_area_for_printing): Choose an echo
2535 area buffer, if it's not set up yet.
2536
34f3f342
GM
2537 * indent.c (compute_motion): Set immediate_quit.
2538
be0dbdab
GM
25392000-04-09 Gerd Moellmann <gerd@gnu.org>
2540
c45be9ac
GM
2541 * xfaces.c (tty_suppress_bold_inverse_default_colors_p): New
2542 variable.
2543 (realize_tty_face): Suppress boldness if colors are the inverse of
2544 the default colors, and tty_suppress_bold_inverse_default_colors_p
2545 is set.
2546 (Ftty_suppress_bold_inverse_default_colors): New function.
2547 (syms_of_xfaces): Defsubr it.
2548
be0dbdab
GM
2549 * buffer.c (Frestore_buffer_modified_p): New function.
2550 (syms_of_buffer): Defsubr it.
2551
e8413c3b
KR
25522000-04-08 Ken Raeburn <raeburn@gnu.org>
2553
87f67317
KR
2554 * charset.c (Fmake_char_internal): CHAR_COMPONENTS_VALID_P takes a
2555 charset id (int) argument, not a charset (Lisp_Object).
2556
e8413c3b
KR
2557 * coding.h (code_convert_string): Declare.
2558 * coding.c (code_convert_string_norecord): Pass an int, not a lisp
2559 object, as the fourth argument to code_convert_string.
2560
2561 * fontset.c (make_fontset_for_ascii_face): Use XINT on return
2562 value.
2563 (Fset_fontset_font): Use EQ to compare lisp objects.
2564
7c752c80
KR
25652000-04-05 Ken Raeburn <raeburn@gnu.org>
2566
c0333abc
KR
2567 * intervals.h (SET_INTERVAL_PARENT): Use INT_LISPLIKE to test for
2568 a pointer that looks like a lisp object.
2569 (SET_INTERVAL_OBJECT): Don't explicitly compare the object with
2570 zero, instead see whether it's an integer object, since they can't
2571 have intervals.
2572 (GET_INTERVAL_OBJECT): Simply assign to the destination.
2573
7c752c80
KR
2574 * dispnew.c (allocate_matrices_for_frame_redisplay,
2575 direct_output_forward_char): Use X(U)INT and make_number as needed
2576 to convert between (unsigned) int values and lisp integers.
2577 * keyboard.c (read_key_sequence): Likewise.
2578 * lread.c (substitute_object_recurse): Likewise.
2579 * fns.c (concat, hash_lookup, hash_remove): Likewise.
2580 * minibuf.c (do_completion, Fminibuffer_complete_word,
2581 Fminibuffer_completion_help): Likewise.
2582 * term.c (produce_special_glyphs): Likewise.
2583
2584 * fileio.c (Fwrite_region): Use EQ when comparing lisp objects.
2585 * print.c (print_preprocess, print_object): Likewise.
2586
2587 * search.c (compile_pattern): Use NILP when checking for nil.
2588
74e49b38
KR
2589 * lisp.h (make_number) [!NO_UNION_TYPE && __GNUC__ >= 2 &&
2590 __OPTIMIZE__]: Provide a GNU C macro version that handles
2591 lisp-object unions.
2592 (XSET) [!NO_UNION_TYPE]: Set the value field first, then the type
2593 field, to better cope with ENABLE_CHECKING and calls that modify a
2594 Lisp_Object using its old value.
2595
685e5ed2
GM
25962000-04-04 Gerd Moellmann <gerd@gnu.org>
2597
c407c570
GM
2598 * window.c (compare_window_configurations): Signal an error
2599 if parameters C1 or C2 aren't window configurations.
2600
685e5ed2
GM
2601 * bytecode.c (Fbyte_code): Add a bunch of BEFORE_POTENTIAL_GC/
2602 AFTER_POTENTIAL_GC calls around calls to functions that can
2603 signal an error and thus invoke the debugger.
2604
587a49ab
GM
26052000-04-03 Gerd Moellmann <gerd@gnu.org>
2606
62f20204
GM
2607 * fns.c (Fbase64_decode_region, Fbase64_decode_string): Signal
2608 an error if decoding fails.
2609
587a49ab
GM
2610 * keyboard.c (lispy_mouse_names): Variable removed.
2611 (Vlispy_mouse_stem): New variable.
2612 (syms_of_keyboard): Initialize Vlispy_mouse_stem.
2613 (make_lispy_event) <mouse_click, scroll_bar_click>: Don't abort
2614 for any mouse button number. Increase size of mouse_syms and
2615 button_down_location as needed. Call modify_event_symbol with
2616 different arguments.
2617 (make_lispy_event) <scroll_bar_click> [USE_TOOLKIT_SCROLL_BARS]:
2618 Call modify_event_symbol with different arguments.
2619 (make_lispy_event) <w32_scroll_bar_click> [WINDOWSNT]: Don't abort
2620 for any button number. Call modify_event_symbol with different
2621 arguments.
2622 (modify_event_symbol): Rename NAME_ALIST to NAME_ALIST_OR_STEM.
2623 Accept a string for NAME_ALIST_OR_STEM.
2624
2625 * lisp.h (larger_vector): Add prototype.
2626
2627 * fns.c (larger_vector): Make externally visible.
2628
2629 * termhooks.h (NUM_MOUSE_BUTTONS): Removed.
2630
2d1675e4
SM
26312000-04-02 Stefan Monnier <monnier@cs.yale.edu>
2632
2633 * regex.c (PTR_TO_OFFSET) [!emacs]: Remove.
2634 (RE_MULTIBYTE_P, RE_STRING_CHAR_AND_LENGTH): New macros.
2635 (GET_CHAR_BEFORE_2): Moved from charset.h plus fixed minor bug when
2636 we are between str1 and str2.
2637 (MAX_MULTIBYTE_LENGTH, CHAR_STRING) [!emacs]: Provide trivial default.
2638 (PATFETCH): Use `TRANSLATE'.
2639 (PATFETCH_RAW): Fetch multibyte char if applicable.
2640 (PATUNFETCH): Remove.
2641 (regex_compile): Rely on PATFETCH to do most of the multibyte magic.
2642 When writing a char, write it directly into the pattern buffer rather
2643 than going needlessly through a temp char-array.
2644 (re_match_2_internal): Similarly, rely on RE_STRING_CHAR to do the
2645 multibyte magic and remove the useless `#ifdef emacs'.
2646 (bcmp_translate): Don't compare as multibyte chars when in a unibyte
2647 buffer.
2648
2649 * regex.h (struct re_pattern_buffer): Make field `multibyte'
2650 conditional on `emacs'.
2651
2652 * charset.h (GET_CHAR_BEFORE_2): Moved to regex.c.
2653
cc2d8c6b
KR
26542000-04-01 Ken Raeburn <raeburn@gnu.org>
2655
2656 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P): Expand
2657 non-union-type versions of XMARK and friends here, because XMARK
2658 and friends won't work on an integer field if NO_UNION_TYPE is not
2659 defined.
2660 (make_number): Define as a function if it's not defined as a
2661 macro.
2662
09654086
KR
2663 * composite.c (run_composite_function): Use NILP when checking for
2664 nil.
2665 (syms_of_composite): Delete local var NARGS, pass an int as first
2666 argument to Fmake_hash_table.
2667
2387b382
KR
2668 * editfns.c (text_property_stickiness): Use NILP to test
2669 Lisp_Object boolean value.
2670 (Fmessage_or_box): Don't use NILP to test int variable.
c01fbf95
KR
2671 (Fformat): Use a temporary variable to avoid ENABLE_CHECKING
2672 problems reading from and changing the same lisp value in an
2673 XSETSTRING call.
2674
27660e89
GM
26752000-04-01 Gerd Moellmann <gerd@gnu.org>
2676
2677 * term.c (TN_no_color_video): New variable.
2678 (term_init): Intitialize TN_no_color_video.
2679 (enum no_color_bit): New enumeration.
2680 (MAY_USE_WITH_COLORS_P): New macro.
2681 (turn_on_face): Use it to determine if attributes may be used
2682 combined with colors.
2683
3578db3c
KR
26842000-04-01 Ken Raeburn <raeburn@gnu.org>
2685
2686 * window.c (CURBEG, CURSIZE): Don't overload lisp object lvalues
2687 with int lvalues via casts; instead, just yield lisp object
2688 lvalues.
2689 (enlarge_window): Variable sizep now points to Lisp_Object. Use
2690 proper accessor macros.
2691 (shrink_window_lowest_first): w->top is Lisp_Object; use XINT.
2692 (grow_mini_window): Fix typo getting int value of root->height.
2693
6fc556fd
KR
2694 * xdisp.c (compute_string_pos): Fix order of arguments to
2695 string_pos_nchars_ahead.
2696 (handle_fontified_prop, add_to_log): Pass int, not Lisp_Object, as
2697 count arg to variable-arg routines like Frun_hook_with_args and
2698 Fformat.
587a49ab
GM
2699 (back_to_previous_visible_line_start)
2700 (build_desired_tool_bar_string): Pass Lisp_Object, not int, to
6fc556fd
KR
2701 fixed-arg routines like Fget_char_property and Fmake_string.
2702 (reconsider_clip_changes): Use XINT when comparing integer lisp
2703 objects, or passing them as int arguments.
587a49ab
GM
2704 (mark_window_display_accurate, insert_left_trunc_glyphs)
2705 (append_space, extend_face_to_end_of_line): Use make_number when
6fc556fd
KR
2706 storing or passing integer values as lisp objects.
2707 (set_cursor_from_row, highlight_trailing_whitespace): Use
2708 INTEGERP, not implicit test against zero, for glyph object.
2709 (try_window_id): Don't use make_number when we want an int value.
2710
2711 * xfaces.c (xlfd_symbolic_value): Make last argument a
2712 Lisp_Object, to be consistent with callers.
2713 (Fbitmap_spec_p): Use XINT to get numeric value of height.
2714 (lface_hash): Apply XFASTINT to lisp values before folding in.
2715
2716 * xfns.c (Fx_show_tip): Use make_number to get lisp objects to
2717 fill in window width and height. Pass an int, not a lisp object,
2718 as first arg to Finsert.
2719
6e7b2457
GM
27202000-04-01 Gerd Moellmann <gerd@gnu.org>
2721
610d841e
GM
2722 * xfaces.c (realize_basic_faces): Block input while realizing
2723 the faces.
2724
6e7b2457
GM
2725 * keyboard.c (lispy_mouse_names): Add additional mouse names.
2726
2727 * termhooks.h (NUM_MOUSE_BUTTONS): Increase to 15.
2728
aa110c0c
GM
27292000-03-31 Gerd Moellmann <gerd@gnu.org>
2730
2731 * xterm.c (x_produce_glyphs): When displaying unibyte text
610d841e 2732 or ASCII, handle case that per-char metric is null.
aa110c0c 2733
8801a864
KR
27342000-03-30 Ken Raeburn <raeburn@gnu.org>
2735
c6129d7e
KR
2736 * lisp.h (NO_UNION_TYPE) [ENABLE_CHECKING]: Undef.
2737
8801a864
KR
2738 * lisp.h (XCONS, XSTRING, XSYMBOL, XFLOAT, XPROCESS, XWINDOW,
2739 XSUBR, XBUFFER): Verify correct object type before returning
2740 pointer, using eassert.
2741 * frame.h (XFRAME): Likewise.
2742
2743 * buffer.c (Frename_buffer, Fset_buffer_multibyte,
2744 swap_out_buffer_local_variables, Fmove_overlay): Don't apply
2745 XSYMBOL, XBUFFER, etc, to values that may be nil or of the wrong
2746 type.
2747 * data.c (set_internal): Likewise.
2748 * dispextern.h (WINDOW_WANTS_MODELINE_P,
2749 WINDOW_WANTS_HEADER_LINE_P): Likewise.
2750 * fileio.c (auto_save_1): Likewise.
2751 * insdel.c (check_markers): Likewise.
2752 * marker.c (buf_charpos_to_bytepos, unchain_marker): Likewise.
2753 * undo.c (record_insert): Likewise.
2754 * vmsproc.c (child_sig): Likewise.
2755 * window.c (unshow_buffer, window_loop): Likewise.
2756 * xterm.c (x_erase_phys_cursor): Likewise.
2757
8e7af858
GM
27582000-03-30 Gerd Moellmann <gerd@gnu.org>
2759
2760 * xfns.c (free_image_cache): Free the cache structure itself
2761 last, after all its members have been freed.
2762
2763 * lisp.h (xstrdup): Add prototype.
2764
2765 * alloc.c (xstrdup): Moved here from xfaces.c.
2766 (allocating_for_lisp): Variable removed.
2767 (lisp_malloc): Block input around the calls to malloc and
2768 mem_insert.
2769
2770 * xfaces.c (realize_tty_face): Use find_symbol_value instead
2771 of Fsymbol_value.
2772 (xstrdup): Moved to alloc.c.
2773
e0b8c689
KR
27742000-03-29 Ken Raeburn <raeburn@gnu.org>
2775
b96f9fb7
KR
2776 * scroll.c (CHECK_BOUNDS): Renamed from CHECK.
2777
2778 * emacs.c (main): Fix sense of no-loadup test.
2779
e0b8c689
KR
2780 * config.in (ENABLE_CHECKING): Undef.
2781
2782 * lisp.h (struct interval): Replace "parent" field with a union of
2783 interval pointer and Lisp_Object; add new bitfield to use as
2784 discriminant. Change other flag fields to bitfields.
2785 (CHECK): New macro for consistency checking. If ENABLE_CHECKING
2786 is defined and the supplied test fails, print a message and
2787 abort.
2788 (eassert): New macro. Use CHECK to provide an assert-like
2789 facility.
2790
2791 * intervals.h (NULL_INTERVAL_P): Now applies only to real interval
2792 pointers; abort if the value looks like a lisp object.
2793 (NULL_INTERVAL_P, NULL_PARENT, HAS_PARENT, HAS_OBJECT, SET_PARENT,
2794 SET_OBJECT, INTERVAL_PARENT, GET_INTERVAL_OBJECT, COPY_PARENT):
2795 Modify for new interval parent definition.
2796
2797 * alloc.c (mark_interval_tree, MARK_INTERVAL_TREE,
2798 UNMARK_BALANCE_INTERVALS): Update references that need an
2799 addressable lisp object in the interval structure.
2800 (die): New function.
2801 (suppress_checking): New variable.
2802
2803 * intervals.c (interval_start_pos): Just return 0 if there's no
2804 parent object.
2805
f83c5440
GM
28062000-03-29 Gerd Moellmann <gerd@gnu.org>
2807
2808 * lread.c (read1): Accept `.' (period) as symbol start like in CL
2809 and earlier Emacs versions.
2810
2811 * keyboard.c (Ftop_level): Cancel busy-cursor.
2812
2813 * eval.c (call_debugger): Cancel busy-cursor.
2814
fdce64ff
KH
28152000-03-29 Kenichi Handa <handa@etl.go.jp>
2816
2817 * search.c (Freplace_match): Adjust multibyteness of the current
2818 buffer and NEWTEXT. Free allocated memory before signaling an
2819 error.
2820
f6a3f532
SM
28212000-03-28 Stefan Monnier <monnier@cs.yale.edu>
2822
2823 * regex.c (analyse_first): New function obtained by ripping out most
2824 of re_compile_fastmap and generalizing it a little bit so that it
2825 can also just return whether a given (sub)pattern can match the empty
2826 string or not.
2827 (regex_compile): Use `analyse_first' to decide whether the loop-check
2828 needs to be done or not for *, +, *? and +? (the loop check is costly
2829 for non-greedy repetition).
2830 (re_compile_fastmap): Delegate the actual work to `analyse_first'.
2831
e9b309ac
DL
28322000-03-28 Dave Love <fx@gnu.org>
2833
bb15bd9a
DL
2834 * s/gnu-linux.h (GC_SETJMP_WORKS): Define for i386, sparc, m68k,
2835 alpha.
2836
e9b309ac
DL
2837 * alloc.c: Include stdio.h. Test STDC_HEADERS, not __STDC__.
2838
ed0767d8
SM
28392000-03-27 Stefan Monnier <monnier@cs.yale.edu>
2840
2841 * regex.c (REGEX_FREE_STACK, RESET_FAIL_STACK): Make them usable as
2842 an expression.
2843 (enum re_opcode_t): Update description of succeed_n.
2844 (PATFETCH): Always define.
2845 (regex_compile): Use lookahead rather than PATUNFETCH (for repetition
2846 operators, char classes, shy-groups and intervals).
2847 Optimize special cases of intervals so as to only use succeed_n and
2848 jump_n when really needed.
2849 (re_compile_fastmap): Simplify handling of jump_n and succeed_n now
2850 that we don't have to handle the special cases any more.
2851 Simplify on_failure_jump handling as well.
2852
e11e7e46
JR
28532000-03-28 Jason Rumney <jasonr@gnu.org>
2854
2855 * lread.c (Fload): Move safe_p definition to above #ifdef DOS_NT.
2856
88faab89
GM
28572000-03-27 Gerd Moellmann <gerd@gnu.org>
2858
182ff242
GM
2859 * s/freebsd.h (GC_SETJMP_WORKS): Define.
2860
2861 * s/msdos.h (GC_SETJMP_WORKS): Define.
427ec082 2862
182ff242
GM
2863 * alloc.c (mark_maybe_object): New function.
2864 (mark_memory): Use it.
2865 (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK): New macros.
2866 (setjmp_tested_p, longjmp_done): New variables.
2867 (test_setjmp): New function.
2868 (mark_stack) [!GC_SETJMP_WORKS]: Call test_setjmp.
2869 (init_alloc): Initialize setjmp_tested_p and longjmp_done.
2870
c1005d06
GM
2871 * xdisp.c (face_before_or_after_it_pos): Pass multibyteness
2872 to DEC_TEXT_POS and INC_TEXT_POS.
2873
2874 * dispnew.c (direct_output_for_insert): Use DEC_TEXT_POS
2875 with parameter MULTIBYTE_P.
2876
427ec082 2877 * dispextern.h (INC_TEXT_POS, DEC_TEXT_POS): Add parameter
c1005d06
GM
2878 MULTIBYTE_P.
2879
7439e5b9 2880 * editfns.c (Fsubst_char_in_region): Don't use INC_POS in unibyte
182ff242
GM
2881 buffers because it looks for multibyte character byte sequences
2882 which don't exist in unibyte text.
7439e5b9 2883
d9c545da
GM
2884 * xterm.h (x_specified_cursor_type, x_copy_color): Add prototypes.
2885
11fd416e 2886 * xfaces.c (register_color, unregister_color, unregister_colors)
d9c545da
GM
2887 [DEBUG_X_COLORS]: New functions.
2888 (x_free_colors) [DEBUG_X_COLORS]: Unregister colors.
2889
2890 * xfns.c (x_set_cursor_color): Get color reference counts right.
2891
2892 * xterm.c (x_copy_color): New function.
2893 (x_alloc_nearest_color) [DEBUG_X_COLORS]: Call register_color.
2894
2895 * buffer.h (MAX_PER_BUFFER_VARS): Renamed from MAX_BUFFER_LOCAL_VARS.
2896 (PER_BUFFER_VAR_OFFSET): Renamed from BUFFER_LOCAL_VAR_OFFSET.
2897 (PER_BUFFER_VAR_IDX): Renamed from BUFFER_LOCAL_VAR_IDX.
2898 (PER_BUFFER_VALUE_P): Renamed from BUFFER_HAS_LOCAL_VALUE_P.
2899 (SET_PER_BUFFER_VALUE_P): Renamed from SET_BUFFER_HAS_LOCAL_VALUE_P.
2900 (PER_BUFFER_IDX): Renamed from BUFFER_LOCAL_IDX.
2901 (PER_BUFFER_DEFAULT): Renamed from BUFFER_LOCAL_DEFAULT_VALUE.
2902 (PER_BUFFER_VALUE): Renamed from BUFFER_LOCAL_VALUE.
2903 (PER_BUFFER_SYMBOL): Renamed from BUFFER_LOCAL_SYMBOL.
2904 (PER_BUFFER_TYPE): Renamed from BUFFER_LOCAL_TYPE.
2905
11fd416e
GM
2906 * category.c, data.c, syntax.c, print.c, lread.c: Use new macro
2907 names for handling per-buffer variables.
d9c545da
GM
2908
2909 * buffer.c (buffer_permanent_local_flags): Use MAX_PER_BUFFER_VARS
2910 instead of MAX_BUFFER_LOCAL_VARS.
2911 (last_per_buffer_idx): Renamed from max_buffer_local_idx.
2912
2913 * xfaces.c (lookup_face): Don't assert FACE_SUITABLE_FOR_CHAR_P.
2914
88faab89
GM
2915 * xfns.c (x_specified_cursor_type): New function.
2916 (x_set_cursor_type): Use it.
2917
2918 * buffer.h (struct buffer): Add cursor_type.
2919
d80f42b7
SM
29202000-03-26 Stefan Monnier <monnier@cs.yale.edu>
2921
2922 * regex.c (enum re_opcode_t): New opcode on_failure_jump_nastyloop.
427ec082 2923 (print_partial_compiled_pattern, re_compile_fastmap): Handle new
88faab89 2924 opcode.
d80f42b7
SM
2925 (regex_compile): Use on_failure_jump_nastyloop for non-greedy loops.
2926 (re_match_2_internal): Add code for on_failure_jump_nastyloop when
2927 executing it as well as when popping it off the stack to find infinite
2928 loops in non-greedy repetition operators.
2929
89e80928
GM
29302000-03-26 Gerd Moellmann <gerd@gnu.org>
2931
3d4ff2dd
GM
2932 * doc.c (Qfunction_documentation): New variable.
2933 (syms_of_doc): Initialize Qfunction_documentation.
2934 (Fdocumentation): If FUNCTION is a symbol with non-nil
2935 `function-documentation' property, return a documentation derived
2936 from that.
2937
bd96bd79
GM
2938 * buffer.c (syms_of_buffer): Add default-cursor-type.
2939 (init_buffer_once): Don't let cursor_type have a local value
2940 in every buffer.
2941
19d1bc27
GM
2942 * xterm.c (x_display_and_set_cursor): Choose cursor depending
2943 on buffer-local value of cursor_type.
2944 (x_draw_bar_cursor): Add parameter WIDTH.
2945
2946 * buffer.c (reset_buffer): Initialize buffer's cursor_type.
2947 (init_buffer_once): Set default cursor_type value to t.
2948 Mark cursor_type as local everywhere.
2949 (syms_of_buffer): New per-buffer variable cursor-type.
2950
89e80928
GM
2951 * buffer.h (struct buffer): Remove member local_var_flags,
2952 add local_flags.
2953 (MAX_BUFFER_LOCAL_VARS): New macro.
2954 (BUFFER_LOCAL_VAR_OFFSET, BUFFER_LOCAL_VAR_IDX)
2955 (BUFFER_HAS_LOCAL_VALUE_P, SET_BUFFER_HAS_LOCAL_VALUE_P)
2956 (BUFFER_LOCAL_IDX, BUFFER_LOCAL_DEFAULT_VALUE, BUFFER_LOCAL_VALUE)
2957 (BUFFER_LOCAL_SYMBOL, BUFFER_LOCAL_TYPE): New macros.
2958
2959 * print.c (print_object): Use new macros for per-buffer
2960 variables.
2961
2962 * category.c (Fset_category_table): Use new macros for per-buffer
2963 variables.
2964
2965 * buffer.c (buffer_permanent_local_flags): Make a char array.
2966 (max_buffer_local_idx): New variable.
2967 (reset_buffer_local_variables, Fbuffer_local_variables): Rewritten
2968 for new handling of per-buffer variables.
2969 (buffer_slot_type_mismatch): Use new macros for per-buffer vars.
2970 (init_buffer_once): Initialize per-buffer vars differently.
2971 Set max_buffer_local_idx.
2972
2973 * syntax.c (Fset_syntax_table): Use new macros for per-buffer
2974 variables.
2975
2976 * lread.c (defvar_per_buffer): Use new macros for per-buffer
2977 variables.
2978
2979 * data.c (do_symval_forwarding, store_symval_forwarding)
2980 (find_symbol_value, set_internal, default_value, Fset_default)
2981 (Fkill_local_variable, Flocal_variable_p): Use new macros for
2982 per-buffer variables.
2983
2984 * Makefile.in (bootstrap-emacs): Use `mv -f' instead of `mv'.
2985
9a0dd3dc
GM
29862000-03-24 Gerd Moellmann <gerd@gnu.org>
2987
b68c375f
GM
2988 * xterm.c (x_term_init): Unblock input around call1 of
2989 Qvendor_specific_keysyms.
2990
9a0dd3dc
GM
2991 * syntax.c (open_paren_in_column_0_is_defun_start): New variable.
2992 (find_defun_start): Consider an open parenthesis in column 0
2993 a defun start only if open_paren_in_column_0_is_defun_start is set.
2994 (syms_of_syntax): New variable open-paren-in-column-0-is-defun-start.
2995
7973e637
SM
29962000-03-24 Stefan Monnier <monnier@cs.yale.edu>
2997
2998 * eval.c (Fautoload): Add entry in load-history (if after dump).
2999 * lread.c (load-history): Update docstring.
3000
39210e90
GM
30012000-03-24 Gerd Moellmann <gerd@gnu.org>
3002
3003 * indent.c (Fvertical_motion): Always use the current buffer.
3004 Temporarily change the window's buffer, if necessary.
3005
72db3ab5
GM
30062000-03-23 Gerd Moellmann <gerd@gnu.org>
3007
3008 * xterm.c (fast_find_position): Make sure not to consider rows
3009 not visible in the window.
3010
990b2375
SM
30112000-03-22 Stefan Monnier <monnier@cs.yale.edu>
3012
3013 * regex.c (enum syntaxcode): Provide default for non-Emacs.
3014 (re_compile_fastmap, re_match_2_internal): Undo Dave's previous fix.
3015
ff4df011
JR
30162000-03-22 Jason Rumney <jasonr@gnu.org>
3017
3018 * w32menu.c (single_submenu): Set help string to NULL if none.
3019 (w32_menu_show): Set help string correctly.
3020 (add-menu-item): Set help string in MIIM_DATA for menu item.
3021 Load SetMenuItemInfoA explicitly.
3022 (w32_menu_display_help): New function.
427ec082 3023
ff4df011
JR
3024 * w32fns.c (w32_wnd_proc): Handle WM_MENUSELECT message.
3025 (QCdata): Moved to xdisp.c.
3026
3027 * w32term.c (w32_read_socket): Handle WM_MENUSELECT message.
3028 (Vw32_charset_to_codepage_alist): Removed.
3029 (Vw32_charset_info_alist): New variable.
3030 (Qw32_charset_[ansi, default, symbol, shiftjis, hangul, gb2312,
3031 chinesebig5, oem, easteurope, turkish, baltic, russian, arabic,
3032 greek, hebrew, thai, johab, mac, unicode]): New symbols.
3033 (x_produce_glyphs): Remove out of date #ifdef 0'd section. Replace
3034 with TODO comment.
3035 (w32_codepage_for_font): Use Vw32_charset_info_alist.
3036 (syms_of_w32term): Remove Vw32_charset_to_codepage_alist.
3037 Define Vw32_charset_info_alist and w32_charset symbols.
3038
30392000-03-22 Jason Rumney <jasonr@gnu.org>
3040
3041 * makefile.nt (w32bdf.obj): Update dependencies.
3042
3043 * w32bdf.c: Include frame.h and dispextern.h before fontset.h.
3044
3045 * w32fns.c: Include fontset.h after dispextern.h.
3046 (Fx_create_frame): Do not create fontset.
3047 (w32_load_system_font): Doc fix.
3048 (Fx_close_connection): Free full_name if it is not shared.
3049
3050 * w32term.c: Include fontset.h after dispextern.h.
3051 (x_get_glyph_face_and_encoding): New parameter two_byte_p. Callers
3052 updated.
3053 (w32_per_char_metric): If PCM is invalid, delete and return NULL.
3054 (x_get_char_and_face_encoding): Use FACE_FOR_CHAR to get face_id.
3055 (w32_font_is_double_byte): New function, needs body.
3056 (x_append_glyph): Set glyph->glyph_not_available_p.
3057 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
3058 it->charset. If it->multibyte_p is zero and it->c is a multibyte
3059 character, convert it to a unibyte character.
3060 (struct glyph_string): Delete member `charset'.
3061 (W32_TEXTOUT): Temporarily remove charset_dim until another way of
3062 calculating it is found.
3063 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
3064 the case that per char metric is not available correctly.
3065 (x_fill_glyph_string): Handle the case that the specific glyph is
3066 not available correctly.
3067 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
3068 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
3069 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
3070 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
3071 fontset. Don't call FS_LOAD_FONT.
3072
439d5cb4
KR
30732000-03-22 Ken Raeburn <raeburn@gnu.org>
3074
3075 * intervals.h (NULL_INTERVAL): Cast to INTERVAL type.
3076 (INT_LISPLIKE): New macro.
3077 (NULL_INTERVAL_P): Use it.
3078 (INTERVAL_HAS_PARENT, INTERVAL_HAS_OBJECT, SET_INTERVAL_PARENT,
3079 SET_INTERVAL_OBJECT, INTERVAL_PARENT, COPY_INTERVAL_PARENT,
3080 GET_INTERVAL_OBJECT, INTERVAL_PARENT_OR_NULL): New macros.
3081
3082 * alloc.c (make_interval, gc_sweep): Use new macros; eliminate all
3083 explicit references to "parent" field of struct interval and
3084 associated unclean type conversions.
3085 * intervals.c (create_root_interval, root_interval, rotate_right,
3086 rotate_left, balance_possible_root_interval, split_interval_right,
3087 split_interval_left, interval_start_pos, find_interval,
3088 next_interval, previous_interval, update_interval,
3089 adjust_intervals_for_insertion, delete_node, delete_interval,
3090 adjust_intervals_for_deletion, merge_interval_right,
3091 merge_interval_left, reproduce_tree, graft_intervals_into_buffer,
3092 copy_intervals_to_string): Likewise.
3093 * intervals.h (AM_LEFT_CHILD, AM_RIGHT_CHILD, RESET_INTERVAL):
3094 Likewise.
3095 * syntax.c (update_syntax_table): Likewise.
3096
3097 * intervals.c (reproduce_tree_obj): New function, like
3098 reproduce_tree but takes a Lisp_Object for the parent. Declare
3099 with prototype.
3100 (graft_intervals_into_buffer): Use it when appropriate.
3101 (reproduce_tree): Declare with prototype.
3102 (balance_possible_root_interval): Check that the parent is a lisp
3103 object before trying to examine its type.
3104
ee1c5b21
GM
31052000-03-22 Gerd Moellmann <gerd@gnu.org>
3106
3107 * xfaces.c (lface_same_font_attributes_p): Compare font attributes
3108 as strings only if both are known to be strings.
3109
3110 * s/openbsd.h (LIBS_TERMCAP): Undef.
3111
1fb352e0
SM
31122000-03-21 Stefan Monnier <monnier@cs.yale.edu>
3113
3114 * regex.c (CHAR_CHARSET, CHARSET_LEADING_CODE_BASE): Add default
3115 definitions for non-Emacs compilation.
3116 (enum re_opcode_t): Remove (not)wordchar and move (not)syntaxspec
3117 outside of `#ifdef emacs'.
3118 (print_partial_compiled_pattern): Update.
3119 (regex_compile): Use (not)syntaxspec(Sword) instead of (not)wordchar.
3120 (re_compile_fastmap): Merge handling of charset and charset_not (for
3121 emacs and non-emacs compilation as well).
3122 Similarly for (not)categoryspec and (not)syntaxspec.
3123 Don't use the fastmap when reaching `anychar' since the added
3124 complexity is not justified.
3125 (re_match_2_internal): Merge (not)wordchar (emacs and non-emacs)
3126 and (not)syntaxspec. Merge (not)categoryspec.
3127
fdaa1f77
KH
31282000-03-22 Kenichi Handa <handa@etl.go.jp>
3129
ff1a0d8e
KH
3130 * dispextern.h [!HAVE_WINDOW_SYSTEM] (FACE_SUITABLE_FOR_CHAR_P,
3131 FACE_FOR_CHAR): Define them differently for the configuration of
3132 --without-x.
fdaa1f77 3133
d152fb46
DL
31342000-03-21 Dave Love <fx@gnu.org>
3135
3136 * fontset.c (Fset_fontset_font, Ffontset_font): Fix newlines in
3137 doc string.
3138
d2cafc8c
GM
31392000-03-21 Gerd Moellmann <gerd@gnu.org>
3140
3141 * xfaces.c (check_lface_attrs) [GLYPH_DEBUG]: Fix syntax error.
3142 (lface_fully_specified_p): Don't check contents of
3143 LFACE_FONT_INDEX because that attribute is optional.
3144 (realize_x_face): Remove now unwarranted xassert.
3145
9111d4b5
KH
31462000-03-21 Kenichi HANDA <handa@etl.go.jp>
3147
3148 The following changes are to make font selection based on
3149 characters, not charset. In addition, they recover fontset
3150 facilities while utilizing the new font selection mechanism.
3151
6c4bfdc0
KH
3152 * Makefile.in (fontset.o): Depend on dispextern.h.
3153
3154 * alloc.c (mark_face_cache): Don't mark face->registry.
3155
9111d4b5
KH
3156 * dispextern.h (struct glyph): New member glyph_not_available_p.
3157 Use 22 bits for face_id.
3158 (enum lface_attribute_index): Add LFACE_FONT_INDEX.
3159 (struct face): Delete member registry, new member ascii_face.
3160 (FACE_SUITABLE_FOR_CHAR_P): Renamed from
3161 FACE_SUITABLE_FOR_CHARSET_P. Caller changed.
3162 (FACE_FOR_CHAR): Renamed from FACE_FOR_CHARSET. Caller changed.
3163 (struct it): Delete member charset, new member
3164 glyph_not_available_p.
3165
3166 * fontset.h (FONT_NOT_OPENED, FONT_NOT_FOUND): Macros removed.
3167 (struct fontset_info, struct fontset_data): Structs removed.
3168 (allloc_fontset_data, free_fontset_data, fs_regiser_fontset,
3169 Vglobale_fontset_alist, font_idx_temp): Externs removed.
3170 (fs_load_font, fs_query_fontset): Adjusted for new argument.
3171 (fs_free_face_fontset, fontset_font_pattern,
3172 face_suitable_for_char_p, face_for_char,
3173 make_fontset_for_ascii_face): Extern them.
3174 (FS_LOAD_FONT): Adjusted for the change of fontset implementation.
3175 (FS_LOAD_FACE_FONT): New macro.
3176
3177 * fontset.c: All codes rewritten or adjusted for the change of
3178 fontset implementation. Now fontset is represented by char table.
3179 (Vglobal_fontset_alist, font_idx_temp, my_strcasetbl): Variables
3180 removed.
3181 (my_strcasecmp): Function removed.
3182 (Vfontset_table, next_fontset_id, Vdefault_fontset): New
3183 variables.
3184 (AREF, ASIZE): New macros.
3185 (FONTSET_FROM_ID, FONTSET_ID, FONTSET_NAME, FONTSET_FRAME,
3186 FONTSET_ASCII, FONTSET_BASE, BASE_FONTSET_P, FONTSET_REF,
3187 FONTSET_REF_VIA_BASE, FONTSET_SET): New macros.
3188 (fontset_ref, fontset_ref_via_base, fontset_set, make_fontset,
3189 fontset_id_valid_p, font_family_registry, fontset_name,
3190 fontset_ascii, free_face_fontset, face_suitable_for_char_p,
3191 face_for_char, make_fontset_for_ascii_face, fontset_font_pattern):
3192 New functions.
3193 (fs_load_font): New arg FACE. Caller changed.
3194 (fs_query_fontset): Argument changed. Caller changed.
3195 (Fquery_fontset): call fs_query_fontset.
3196 (fs_register_fontset, alloc_fontset_data, free_fontset_data):
3197 Functions removed.
3198 (clear_fontset_elements, check_registry_encoding,
3199 check_fontset_name): New functions.
3200 (syms_of_fontset): Set char-table-extra-slots property of fontset
3201 to 3. Staticpro and initialize Vfontset_table and
3202 Vdefault_fontset. Defsubr fontset_font and fontset_list.
3203
3204 * frame.h (struct frame): Member `fontset_data' removed.
3205 (FRAME_FONTSET_DATA): Macro removed.
3206
3207 * frame.c (make_frame): Don't allocate f->fontset_data.
3208 (Fdelete_frame): Don't free f->fontset_data.
3209
6c4bfdc0
KH
3210 * msdos.c (XMenuActivate): Args to lookup_derived_face changed.
3211
9111d4b5
KH
3212 * xdisp.c (charset_at_position): Function removed.
3213 (init_iterator): Don't set member charset of struct `it'.
3214 (handle_face_prop, reseat_to_string, set_iterator_to_next,
3215 next_element_from_display_vector, insert_left_trunc_glyphs):
3216 Likewise.
3217 (face_before_or_after_it_pos): Call FACE_FOR_CHAR, not
3218 FACE_FOR_CHARSET.
3219 (get_next_display_element, append_space,
3220 extend_face_to_end_of_line): Likewise.
3221
3222 * xfaces.c (Qx_charset_registry, Vface_default_registry):
3223 Variables removed.
3224 (clear_font_table, frame_update_line_height, load_face_font):
3225 Adjusted for the change of fontset implementation.
3226 (load_face_fontset_font): Function removed.
3227 (pixel_point_size): New function.
3228 (font_list): Argument type changed. Caller changed.
3229 (LFACE_FONT): New macro.
3230 (check_lface_attrs): Check attr[LFACE_FONT_INDEX].
3231 (set_lface_from_font_name): Type of arg FONTNAME is changed to
3232 Lisp_Object. Determine the font name by actually loading a font
3233 by the specified pattern. Set LFACE_FONT (lface) to the specified
3234 pattern. Even if a font is not found, don't try alternatives.
3235 (Finternal_set_lisp_face_attribute): Handle `font' slot in lface.
3236 (set_font_frame_param): If `font' is specified in lface, use it.
3237 (Finternal_get_lisp_face_attribute): Handle `font' slot in lface.
3238 (lface_same_font_attributes_p): Likewise.
3239 (make_realized_face): Arguent changed. Caller changed. Set
3240 face->ascii_face to face itself.
3241 (free_realized_face): Free face->fontset if face is for ASCII.
3242 (face_suitable_for_iso8859_1_p, face_suitable_for_charset_p,
3243 deduce_unibyte_registry, x_charset_registry): Functions removed.
3244 (free_realized_multibyte_face): New function.
3245 (lookup_face, lookup_named_face, lookup_derived_face): Argument
3246 changed. Caller changed.
3247 (try_font_list): Argument type changed.
3248 (face_fontset): Check `font' slot of ATTRS, not `family' slot.
3249 (choose_face_font): Argument changed. Handle fontset properly.
3250 (choose_face_fontset_font): Function removed.
3251 (realize_default_face, realize_named_face): Don't remove the
3252 former face here.
3253 (realize_face): Argument changed. Caller changed. Remove face
3254 with the arg former_face_id in advance. Load font for the new
3255 face.
3256 (realize_x_face): Argument changed. Caller changed. For a
3257 multibyte character, share fontset with base_face. For a single
3258 byte character, make a new realized fontset. Don't load a font
3259 here.
3260 (realize_tty_face): Argument changed. Caller changed.
3261 (compute_char_face): Call FACE_FOR_CHAR, not FACE_FOR_CHARSET.
3262 (face_at_buffer_position): Don't check multibyte_p for returning
3263 DEFAULT_FACE_ID.
3264 (face_at_string_position): Call FACE_SUITABLE_FOR_CHAR_P, not
3265 FACE_SUITABLE_FOR_CHARSET_P.
3266 (syms_of_xfaces): Remove code for Qx_charset_registry and
3267 Vface_default_registry.
3268
6c4bfdc0
KH
3269 * xterm.c: Include fontset.h after dispextern.h. Undo the changes
3270 related to PER_CHAR_METRIC done by Gerd on 2000-03-03.
9111d4b5
KH
3271 (x_per_char_metric): Don't try FONT->default_char. Even if
3272 pcm->width is zero, glyph bits may exist.
3273 (x_encode_char): Always initialize char2b->byte1.
3274 (x_get_char_face_and_encoding): Call FACE_FOR_CHAR to get face_id.
3275 (x_get_glyph_face_and_encoding): New arg two_byte_p. Caller
3276 changed.
3277 (x_append_glyph): Set glyph->glyph_not_available_p.
3278 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
3279 it->charset. Handle the case that per char metric is not
3280 available. If it->multibyte_p is zero and it->c is a multibyte
3281 character, convert it to a unibyte character.
3282 (struct glyph_string): Delete member `charset'.
3283 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
3284 the case that per char metric is not available correctly.
3285 (x_fill_glyph_string): Handle the case that the specific glyph is
3286 not available correctly.
3287 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
3288 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
3289 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
3290 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
3291 fontset. Don't call FS_LOAD_FONT.
3292
3293 * xfns.c (Fx_create_frame): Don't cal fs_register_fontset.
3294 (x_create_tip_frame): Likewise.
3295 (Fx_close_connection): Free full_name of font_info.
3296
3297 * fns.c (optimize_sub_char_table): New function.
3298 (Foptimize_char_table): New function.
3299 (syms_of_fns): Defsubr Soptimize_char_table.
3300
b33dd3b0
GM
33012000-03-20 Gerd Moellmann <gerd@gnu.org>
3302
3303 * buffer.c (Fset_buffer_modified_p): Set update_mode_lines
3304 only if buffer is displayed in some window.
3305
3306 * xdisp.c (handle_single_display_prop): Initialize local `value'.
3307 (try_window_reusing_current_matrix): Don't call scroll run
3308 function if run's current and desired position are the same;
3309 this prevents cursor flickering.
3310
4e8a9132
SM
33112000-03-19 Stefan Monnier <monnier@cs.yale.edu>
3312
3313 * regex.h (RE_TRANSLATE. RE_TRANSLATE_P): Moved to regex.c.
3314
3315 * regex.c (RE_STRING_CHAR): New macro.
3316 (GET_CHAR_AFER_2): Remove.
3317 (RE_TRANSLATE, RE_TRANSLATE_P): New macros moved from regex.h.
3318 (enum re_opcode_t): Remove on_failure_jump_exclusive.
3319 (print_partial_compiled_pattern, re_compile_fastmap)
3320 (re_match_2_internal): Remove on_failure_jump_exclusive.
3321 (regex_compile): Turn optimizable P+ loops into PP*, so that the
3322 optimization only need to work for * (ie. can use of_keep_string_jump).
3323 Remove the special case for .*\n since it is now covered by the general
3324 optimization.
3325 (re_search_2): Don't bother with `room'.
3326 (skip_one_char): New function.
3327 (skip_noops): Simplify since `memory' is not needed any more.
3328 (mutually_exclusive_p): Restructure slightly to use `switch' and
3329 add handling for "all" remaining cases.
3330 (re_match_2_internal): Change on_failure_jump_smart to use
3331 on_failure_keep_string_jump (and redirect the end-of-loop jump)
3332 rather than on_failure_jump_exclusive.
3333
2136fdd4
GM
33342000-03-19 Gerd Moellmann <gerd@gnu.org>
3335
3336 * xfns.c (select_visual): Don't set dpyinfo->n_planes to the
3337 number of bits per RGB because it's everywhere used as the depth
3338 of the visual.
3339
3340 * term.c (calculate_costs): Remove code dealing with X frames.
3341
18e21ce8 33422000-03-19 Richard M. Stallman <rms@gnu.org>
e53ae11c
RS
3343
3344 * lread.c (syms_of_lread): Doc fix for load-convert-to-unibyte.
3345
d7b511c4
GM
33462000-03-18 Gerd Moellmann <gerd@gnu.org>
3347
3348 * lread.c (read_integer): Unread the last char not consumed.
3349
16b5d424
GM
33502000-03-17 Gerd Moellmann <gerd@gnu.org>
3351
3352 * xterm.c (x_update_window_cursor): Don't update in frames
d7b511c4 3353 which are in the process of being deleted.
16b5d424 3354
1fa28578
GM
33552000-03-16 Gerd Moellmann <gerd@gnu.org>
3356
83488cce
GM
3357 * Makefile.in (mostlyclean): Add `*.core'.
3358 (clean): Add `bootstrap-emacs'.
3359
1fa28578
GM
3360 * lread.c (read_integer): New function.
3361 (read1): Support read syntax #o, #x, #b, #r.
3362
99633e97
SM
33632000-03-15 Stefan Monnier <monnier@cs.yale.edu>
3364
1fa28578
GM
3365 * regex.c (re_match_2): Fix string shortening (to fit `stop') to
3366 make sure POINTER_TO_OFFSET gives the same value before and after
3367 PREFETCH. Use `dfail' to guarantee "atomic" matching.
99633e97
SM
3368 (PTR_TO_OFFSET): Use POINTER_TO_OFFSET.
3369 (debug): Now only active if > 0 rather than if != 0.
3370 (DEBUG_*): Update for the new meaning of `debug'.
1fa28578
GM
3371 (print_partial_compiled_pattern): Add missing `succeed' case. Use
3372 CHARSET_* macros in the charset(_not) branch. Fix off-by-two bugs
3373 in `succeed_n', `jump_n' and `set_number_at'.
99633e97
SM
3374 (store_op1, store_op2, insert_op1, insert_op2)
3375 (at_begline_loc_p, at_endline_loc_p): Add prototype.
1fa28578
GM
3376 (group_in_compile_stack): Move to after its arg's types are
3377 declared and add a prototype.
99633e97 3378 (PATFETCH): Define in terms of PATFETCH_RAW.
1fa28578
GM
3379 (GET_UNSIGNED_NUMBER): Add the usual `do { ... } while(0)'
3380 wrapper.
99633e97 3381 (QUIT): Redefine as a nop except for NTemacs.
1fa28578
GM
3382 (regex_compile): Handle intervals {,M} as if it was {0,M}. Fix
3383 indentation of the greedy-op and shy-group code.
99633e97
SM
3384 (at_(beg|end)line_loc_p): Fix argument's types.
3385 (re_compile_fastmap): Ifdef out failure_stack_ptr to shut up gcc.
3386 (re_search_2): Use POS_AS_IN_BUFFER. Simplify `room' computation.
3387 (MATCHING_IN_FIRST_STRING): Remove.
1fa28578
GM
3388 (re_match_2): Use POS_AS_IN_BUFFER. Ifdef out failure_stack_ptr
3389 to shut up gcc. Use FIRST_STRING_P and POINTER_TO_OFFSET. Use
3390 QUIT unconditionally.
99633e97 3391
699238d9
GM
33922000-03-15 Gerd Moellmann <gerd@gnu.org>
3393
3394 * minibuf.c (Fminibuffer_complete): Set point to ZV if finding
3395 a sole completion.
3396
3397 * process.c (send_process): Add a hint that the function
3398 can call Lisp code to its comment.
3399
3400 * lread.c (load_dangerous_libraries): New variable.
3401 (Vbytecomp_version_regexp): New variable.
3402 (safe_to_load_p): New function.
3403 (Fload): Handle files not compiled with Emacs specially.
3404 (syms_of_lread): New Lisp variable load-dangerous-libraries.
3405
34e23e5a
GM
34062000-03-14 Gerd Moellmann <gerd@gnu.org>
3407
9c763cca
GM
3408 * lisp.h (free_frame_xic) [HAVE_X_I18N]: Add missing semicolon.
3409
3410 * xterm.c (xim_close_dpy, xim_initialize): Use X11R6-style XIM
3411 support functions only if HAVE_X11R6_XIM is defined.
3412 (xim_instantiate_callback): Define only if HAVE_X11R6_XIM.
3413
3414 * s/sol2.h (INHIBIT_X11R6_XIM): Define.
3415
3416 * xfns.c (X_I18N_INHIBITED): Don't define.
3417 (create_frame_xic): Remove conditional compilation on
3418 X_I18N_INHIBITED.
3419 (x_kill_gs_process, x_window): Use FRAME_X_VISUAL.
3420
3421 * config.in (HAVE_X_I18N): Moved here from xterm.h.
3422 (HAVE_X11R6_XIM): Define.
3423
3424 * xterm.h (HAVE_X_I18N) [HAVE_X11R6]: Moved to config.in.
3425
34e23e5a
GM
3426 * xterm.c (x_term_init): Add support for X resource `synchronous'.
3427 If set, call XSynchronize.
3428
66f0296e
SM
34292000-03-13 Stefan Monnier <monnier@cs.yale.edu>
3430
34e23e5a
GM
3431 * regex.c: Declare a new type `re_char' used throughout the code
3432 for the string char type. It's `const unsigned char' to match the
3433 rest of Emacs. Consistently make sure all pointers to strings use
3434 it and make sure all pointers into the pattern use `unsigned
3435 char'.
66f0296e 3436 (re_match_2_internal): Use `PREFETCH+STRING_CHAR' instead of
34e23e5a
GM
3437 GET_CHAR_AFTER_2. Also merge wordbound and notwordbound to reduce
3438 code duplication.
66f0296e
SM
3439
3440 * charset.h (GET_CHAR_AFTER_2): Remove.
3441 (GET_CHAR_BEFORE_2): Use unsigned chars, like everywhere else.
3442
854a025c
KR
34432000-03-12 Ken Raeburn <raeburn@gnu.org>
3444
3445 * Makefile.in (temacs): Evaluate ALL_LDFLAGS into a temporary
3446 variable before the invocation of YMF_PASS_LDFLAGS, in case both
3447 of them try to use backquotes.
3448
b9d2c7e2
DL
34492000-03-12 Dave Love <fx@gnu.org>
3450
3451 * unexelf.c: Restore changes of 1999-10-19.
3452 (unexec): Don't adjust bss for sbss type SHT_PROGBITS; otherwise
3453 fix its type and alignment; copy it from current process.
3454
5e5dff44
GM
34552000-03-12 Gerd Moellmann <gerd@gnu.org>
3456
9b2f3c38
GM
3457 * atimer.c (cancel_atimer): Break out of the loop as soon as timer
3458 has been found. Fix bug not computing timer's predecessor.
3459
427ec082 3460 * fileio.c (Fread_file_name): Handle case that DIR contains a
9172b88d
GM
3461 file name.
3462
e1cff360
GM
3463 * window.c (Fsave_window_excursion): Doc fix.
3464
5e5dff44
GM
3465 * xfns.c (x_defined_color): Rewritten to use
3466 x_allocate_nearest_color.
3467
e411ce4b
EZ
34682000-03-12 Eli Zaretskii <eliz@is.elta.co.il>
3469
3470 * msdos.c (vga_installed): New function, code moved from
3471 dos_set_window_size.
3472 (Qbar, Qcursor_type, outside_cursor): New variables.
3473 (syms_of_msdos): Intern and staticpro them.
3474 (dos_ttraw) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Save the cursor
3475 shape used outside Emacs when called for the first time.
3476 (dos_ttcooked) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Restore the
3477 cursor shape used outside Emacs.
3478 (msdos_set_cursor_shape, IT_set_cursor_type): New functions.
3479 (IT_frame_up_to_date): Call IT_set_cursor_type, in case the cursor
3480 type has changed.
3481 (IT_set_frame_parameters): Call IT_set_cursor_type if the frame
3482 parameters specify the cursor. Make qreverse a global
3483 variable (renamed to Qreverse).
3484
80460654
GM
34852000-03-09 Gerd Moellmann <gerd@gnu.org>
3486
3487 * fns.c (Fy_or_n_p): Cancel busy-cursor.
3488
95cd4c40
SM
34892000-03-08 Stefan Monnier <monnier@cs.yale.edu>
3490
3491 This is a big redesign of failure-stack and register handling, prompted
3492 by bugs revealed when trying to add shy-groups. Overall, what happened
3493 is that loops are now structured a little differently, groups can be
3494 shy and the code is a little simpler.
3495
3496 * regex.h: Update the copyright.
3497 (RE_SHY_GROUPS): New value.
3498 (RE_UNMATCHED_RIGHT_PAREN_ORD): Renumber.
3499 (RE_SYNTAX_EMACS): Add RE_SHY_GROUPS.
3500
80460654
GM
3501 * regex.c (enum re_opcode_t): Remove jump_past_alt,
3502 maybe_pop_jump, push_dummy_failure and dumy_failure_jump. Add
3503 on_failure_jump_(exclusive, loop and smart). Also fix the comment
3504 for (start|stop)_memory since they now only take one argument (the
3505 second has becomes unnecessary).
3506 (print_partial_compiled_pattern): Adjust for changes in
3507 re_opcode_t.
3508 (print_compiled_pattern): Use %ld to printf long ints and flush to
3509 make debugging a little easier.
95cd4c40
SM
3510 (union fail_stack_elt): Make the integer unsigned.
3511 (struct fail_stack_type): Add a `frame' element.
3512 (INIT_FAIL_STACK): Init `frame' as well.
3513 (POP_PATTERN_OP): New macro for re_compile_fastmap.
3514 (DEBUG_PUSH, DEBUG_POP): Remove.
3515 (NUM_REG_ITEMS): Remove.
3516 (NUM_NONREG_ITEMS): Adjust.
80460654
GM
3517 (FAILURE_PAT, FAILURE_STR, NEXT_FAILURE_HANDLE)
3518 (TOP_FAILURE_HANDLE): New macros for the cycle detection.
95cd4c40 3519 (ENSURE_FAIL_STACK): New macro for PUSH_FAILURE_(REG|POINT).
80460654
GM
3520 (PUSH_FAILURE_REG, POP_FAILURE_REG, CHECK_INFINITE_LOOP): New
3521 macros.
3522 (PUSH_FAILURE_POINT): Don't push registers any more. The pattern
3523 address pushed is not the destination of the jump but the source
3524 of it instead.
95cd4c40
SM
3525 (NUM_FAILURE_ITEMS): Remove.
3526 (POP_FAILURE_POINT): Adapt to the new stack structure (i.e. pop
80460654
GM
3527 registers before the actual failure point). Don't hardcode any
3528 meaning for str==NULL anymore.
95cd4c40 3529 (union register_info_type, REG_MATCH_NULL_STRING_P, IS_ACTIVE)
80460654
GM
3530 (MATCHED_SOMETHING, EVER_MATCHED_SOMETHING, SET_REGS_MATCHED):
3531 Remove.
95cd4c40
SM
3532 (REG_UNSET_VALUE): Use NULL (why not?).
3533 (compile_range): Remove declaration since it doesn't exist.
3534 (struct compile_stack_elt_t): Remove inner_group_offset.
3535 (old_reg(start|end), reg_info, reg_dummy, reg_info_dummy): Remove.
3536 (regex_grow_registers): Remove dead code.
3537 (FIXUP_ALT_JUMP): New macro.
80460654
GM
3538 (regex_compile): Add shy-groups Change loops to use
3539 on_failure_jump_smart&jump instead of
3540 on_failure_jump&maybe_pop_jump. Change + loops to eliminate the
3541 initial (dummy_failure_)jump. Remove c1_base (looks like unused
3542 variable to me). Use `jump' instead of `jump_past_alt' and don't
3543 bother with push_dummy_failure in alternatives since it is now
3544 unnecessary. Use FIXUP_ALT_JUMP. Eliminate a useless `#ifdef
3545 emacs' for (re)allocating the stack.
3546 (re_compile_fastmap): Remove dead variables i and num_regs. Exit
3547 from loop when bufp->can_be_null rather than jumping to `done'.
3548 Avoid jumping backwards so as to ensure termination. Use
3549 PATTERN_STACK_EMPTY and POP_PATTERN_OP. Improved handling of
3550 backreferences. Remove dead code in handling of `anychar'.
95cd4c40 3551 (skip_noops, mutually_exclusive_p): New functions taken from the
80460654
GM
3552 handling of `maybe_pop_jump' in re_match_2_internal. Slightly
3553 improve mutually_exclusive_p to handle ".+\n".
3554 (lowest_active_reg, highest_active_reg,
3555 NO_(LOWEST|HIGHEST)_ACTIVE_REG) Remove.
3556 (re_match_2_internal): Use %p instead of 0x%x when printf'ing
3557 ptrs. Don't SET_REGS_MATCHED anymore. Remove many dead
3558 variables. Push register (in `start_memory') on the stack rather
3559 than storing it in old_reg(start|end). Remove the cycle detection
3560 from `stop_memory', replaced by the use of on_failure_jump_loop
3561 for greedy loops. Add code for the new on_failure_jump_<foo>.
3562 Remove ad-hoc code in `on_failure_jump' to push more registers in
3563 the case of a loop. Take out code from `maybe_pop_jump' into
3564 separate functions and adapt it to the semantics of
3565 `on_failure_jump_smart'. Remove jump_past_alt, dummy_failure_jump
3566 and push_dummy_failure. Remove dummy_failure handling and
3567 handling of `failures to jump to on_failure_jump' (this last one
3568 was already dead code, it seems).
3569 (group_match_null_string_p, alt_match_null_string_p)
3570 (common_op_match_null_string_p): Remove.
95cd4c40 3571
7397acc4
DL
35722000-03-08 Dave Love <fx@gnu.org>
3573
3574 * config.in: Don't depend on __STDC__ for volatile.
3575 Add POINTER_TYPE, PTR, PROTOTYPES.
3576
3577 * hftctl.c, strftime.c: Use PROTOTYPES.
3578 * eval.c (find_handler_clause): Likewise.
3579
3580 * mem-limits.h: Use POINTER_TYPE.
3581
3582 * lisp.h (P_): Define based on PROTOTYPES, not __STDC__.
3583 (memory_warnings): Declare using POINTER_TYPE.
3584
5e91ff9e
GM
35852000-03-08 Gerd Moellmann <gerd@gnu.org>
3586
feab4fba
GM
3587 * xfns.c (x_set_cursor_type): If ARG is nil, give frame no cursor.
3588
25edb08f
GM
3589 * xdisp.c (display_echo_area): Temporarily inhibit garbage
3590 collection.
3591
5e91ff9e
GM
3592 * xfns.c: Remove obsolete code in #if 0.
3593 (Fx_focus_frame): New function.
3594
a735b7e1
KH
35952000-03-07 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
3596
3597 * coding.c (coding_category_name): Add coding-category-utf-8,
3598 coding-category-utf-16-be, coding-category-utf-16-le.
3599 (UTF_8_1_OCTET_P, UTF_8_EXTRA_OCTET_P, UTF_8_2_OCTET_LEADING_P,
3600 UTF_8_3_OCTET_LEADING_P, UTF_8_4_OCTET_LEADING_P,
3601 UTF_8_5_OCTET_LEADING_P, UTF_8_6_OCTET_LEADING_P): New macros.
3602 (detect_coding_utf_8): New function.
3603 (UTF_16_INVALID_P, UTF_16_HIGH_SURROGATE_P
3604 UTF_16_LOW_SURROGATE_P): New macros.
3605 (detect_coding_utf_16): New function
3606 (detect_coding_mask): When priorities are specified, skip any
3607 categories that have `nil' coding-system. Fix bug of returning
3608 wrong mask when PRIORITIES is specified and detect_coding_XXX()
3609 returns a mask not set in PRIORITIES.
3610 (detect_eol_type_in_2_octet_form): New function.
3611 (detect_eol): selects detect_eol_type_XXX to call according to
3612 cooding->category_idx.
3613 (detect_coding_system): Remove `nil' coding-system in the result.
3614 (Fupdate_coding_systems_internal): Update all coding-categories.
3615
3616 * coding.h (CODING_CATEGORY_IDX_UTF_8,
3617 CODING_CATEGORY_IDX_UTF_16_BE, CODING_CATEGORY_IDX_UTF_16_LE): New
3618 macros.
3619 (CODING_CATEGORY_IDX_RAW_TEXT, CODING_CATEGORY_IDX_BINARY,
3620 CODING_CATEGORY_IDX_MAX): Adjusted for the above macros.
3621 CODING_CATEGORY_IDX_UTF_16_LE.
3622 (CODING_CATEGORY_MASK_UTF_8, CODING_CATEGORY_MASK_UTF_16_BE,
3623 CODING_CATEGORY_MASK_UTF_16_LE): New macros.
3624 (CODING_CATEGORY_MASK_ANY): Include the above macros.
3625 (CODING_CATEGORY_MASK_UTF_16_BE_LE): New macro.
3626
9994cc69
GM
36272000-03-07 Gerd Moellmann <gerd@gnu.org>
3628
e9b4e5ff
GM
3629 * doc.c (Fdocumentation_property): If value is not a string,
3630 and doesn't refer to etc/DOC, evaluate it to obtain a string.
3631
f7daf1e1
GM
3632 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Don't try to
3633 close the display with XtCloseDisplay. This caused a bus error
3634 on OpenWindows.
3635
9994cc69
GM
3636 * minibuf.c (Fminibuffer_complete): Move point to ZV when input is
3637 complete but not unique.
3638
4336c705
GM
36392000-03-06 Gerd Moellmann <gerd@gnu.org>
3640
18bb0684
GM
3641 * process.c (send_process): Remove local variable `procname' that
3642 might become invalid when a GC happens. Instead, access the
3643 process name slot directly.
3644
4336c705
GM
3645 * xfns.c (x_set_menu_bar_lines_1): Adjust window's orig_top and
3646 orig_height if set.
3647
3648 * frame.c (set_menu_bar_lines_1): Adjust window's orig_top and
3649 orig_height if set.
3650
515d0d0e
EZ
36512000-03-06 Eli Zaretskii <eliz@is.elta.co.il>
3652
3653 * msdos.c (IT_note_mouse_highlight): Return immediately if frame's
3654 glyph matrices have been freed.
3655
100b3cbb
GM
36562000-03-05 Gerd Moellmann <gerd@gnu.org>
3657
50df5e5a 3658 * Makefile.in (tags): Include ../lwlib/TAGS in TAGS.
6178bc23 3659 (bootstrap-temacs): Set LC_ALL to C like for temacs.
50df5e5a
GM
3660
3661 * xfns.c (QCdata): Moved to xdisp.c.
3662
3663 * xdisp.c (QCdata): Moved here from xfns.c.
3664 (syms_of_xdisp): Initialize QCdata.
3665
3666 * frame.h (FRAME_INTERNAL_BORDER_WIDTH) [!HAVE_X_WINDOWS]: Define.
3667
3668 * window.c (coordinates_in_window): Use
3669 FRAME_INTERNAL_BORDER_WIDTH_SAFE instead of
3670 FRAME_INTERNAL_BORDER_WIDTH.
3671
100b3cbb 3672 * xdisp.c (try_window_id): Recompute unchanged information if
4336c705 3673 it is obviously invalid.
100b3cbb
GM
3674
3675 * xterm.c (x_term_init): Create a colormap if not using the
3676 default visual.
3677
3678 * xterm.h (select_visual): Change prototype.
3679
3680 * xfns.c (select_visual): Rewritten. Recognize user-specified
3681 visual classes.
3682 (visual_classes): New variable.
3683
64d739c4
GM
36842000-03-04 Gerd Moellmann <gerd@gnu.org>
3685
3686 * xfns.c (x_defined_color, x_set_mouse_color, lookup_rgb_color)
3687 (lookup_pixel_color, x_laplace, x_build_heuristic_mask)
3688 (png_load): Access colormap of frame using FRAME_X_COLORMAP.
3689 (x_decode_color): Don't handle allocation of white and black
3690 specially.
3691 (x_window) [USE_X_TOOLKIT]: Set XtNvisual, XtNdepth, and
3692 XtNcolormap resources.
3693 (x_window) [!USE_X_TOOLKIT]: Pass colormap to XCreateWindow.
3694 (Fx_create_frame): Initialize color members of x_output structure.
3695 (xpm_load): Pass colormap to XPM lib.
3696
3697 * xfaces.c (x_free_colors): Access colormap of frame using
3698 FRAME_X_COLORMAP. Be paranoid about freeing black and white
3699 when default colormap is used.
3700
3701 * xterm.c (x_term_init): Set Colormap member of x_display_info
3702 structure. Copy colormap if resource `privateColormap' is
3703 specified (PseudoColor only).
3704 (x_setup_relief_color): Access colormap of frame using
3705 FRAME_X_COLORMAP.
3706
3707 * xterm.h (struct x_display_info): Add Colormap member `cmap'.
3708 (FRAME_X_COLORMAP, FRAME_X_VISUAL): New macros.
3709
c3cee013
JR
37102000-03-04 Jason Rumney <jasonr@gnu.org>
3711
3712 * xfaces.c Change many FRAME_X... macros to FRAME_WINDOW... or
3713 other non-platform-specific equivalents.
64d739c4 3714 [WINDOWSNT]: Include w32term.h, fontset.h and define X
c3cee013
JR
3715 specific functions and macros as their w32 equivalents where
3716 non-platform-specifics are not available.
3717 [HAVE_X_WINDOWS]: Change most of these to HAVE_WINDOW_SYSTEM.
3718 (x_create_gc, x_free_gc) [WINDOWSNT]: Add W32 versions.
3719 (clear_font_table) [WINDOWSNT]: Call w32_unload_font.
3720 (frame_update_line_height): Use macros to access f->output_data.
3721 (defined_color): Remove FIXME comments; fixed.
3722 (x_face_list_fonts, prepare_face_for_display): Put X specifics
3723 into #ifdef blocks. Add WINDOWSNT blocks.
3724 (Fx_list_fonts): Use macros for accessing font data.
3725 (set_lface_from_font_name): Different default fonts for X and
3726 WINDOWSNT.
3727 (font_scalable_p) [WINDOWSNT]: Treat wildcard XLFD_AVGWIDTH as
3728 scalable for backward compatibility.
64d739c4 3729 (realize_tty_face) [MSDOS]: Do the same for WINDOWSNT.
c3cee013
JR
3730 (syms_of_xfaces) [WINDOWSNT]: Allow scalable fonts by default.
3731
64d739c4 3732 * emacs.c (main) [HAVE_NTGUI]: Call syms_of_xfaces instead of
c3cee013
JR
3733 syms_of_w32faces.
3734
3735 * makefile.nt (w32faces.obj): Remove.
3736 (xfaces.obj): Add.
3737
807cc41c
JR
37382000-03-03 Jason Rumney <jasonr@gnu.org>
3739
3740 * keyboard.c (make_lispy_event): Call buffer_posn_from_coords with
3741 correct parameters.
3742
0007072a
KR
37432000-03-03 Ken Raeburn <raeburn@gnu.org>
3744
3745 * unexelf.c (PT_LOAD, SHT_*, SHN_*) [__NetBSD__]: Only provide
3746 standard ELF definitions here if the system header does not.
3747
71a6ba55
GM
37482000-03-03 Gerd Moellmann <gerd@gnu.org>
3749
3750 * xterm.c (PER_CHAR_METRIC): Removed.
3751 (x_per_char_metric_1, x_default_char): New functions.
3752 (x_per_char_metric): If font's default char is invalid, return
3753 metrics of a suitably chosen usable default char.
3754 (x_draw_glyph_string_foreground): If font has an invalid default
64d739c4
GM
3755 char, replace occurrences of unprintable chars with a suitably
3756 chosen usable default char.
71a6ba55 3757
900fa1f1
GM
37582000-03-02 Gerd Moellmann <gerd@gnu.org>
3759
42f55fe0
GM
3760 * xterm.c (note_mouse_highlight): Return quickly if frame's
3761 glyph matrices have been freed.
3762
3763 * dispnew.c (free_glyphs): Block input while freeing matrices.
3764
900fa1f1
GM
3765 * xfns.c (x_clear_image, x_kill_gs_process): Use x_free_colors.
3766
3767 * xterm.c (x_alloc_lighter_color, x_setup_relief_color): Use
3768 x_free_colors.
3769
3770 * dispextern.h (x_free_colors): Add prototype.
3771
3772 * xfaces.c (x_free_colors): New function.
3773 (unload_color, free_face_colors): Use it.
3774
2f950292
EZ
37752000-03-02 Eli Zaretskii <eliz@is.elta.co.il>
3776
3777 * msdos.h (FRAME_INTERNAL_BORDER_WIDTH): Define to zero.
3778
3779 * window.c [MSDOS]: Include msdos.h.
3780
54d04320
DL
37812000-03-02 Dave Love <fx@gnu.org>
3782
3783 * m/powerpcle.h, m/sparc.h: Don't set C_OPTIMIZE_SWITCH.
3784
3785 * m/mips-siemens.h, m/news-r6.h, m/news-risc.h, m/tekxd88.h: Don't
3786 set C_OPTIMIZE_SWITCH for gcc.
3787
0ba93ac4
KH
37882000-03-02 Kenichi Handa <handa@etl.go.jp>
3789
3790 * coding.c (coding_save_composition): Be sure to allocate
3791 composition data area in coding even if there's no composition in
3792 the current run.
3793
a2bc11d4
JR
37942000-03-01 Jason Rumney <jasonr@gnu.org>
3795
3796 * w32term.c: Equivalent changes to those made to xterm.c on
3797 2000-02-25 and 2000-02-24.
3798
3799 * w32fns.c: Equivalent changes to those made to xfns.c on
3800 2000-02-25 and 2000-02-21.
3801
3802 * sysdep.c: [WINDOWSNT]: Use sys_read and sys_write to ensure
3803 correct line-end convention is followed.
3804
3805 * w32menu.c [HAVE_BOXES]: Remove #undef.
3806 (single_keymap_panes): Remove code for simulating checkmarks.
3807 (single_menu_item): Remove notbuttons_ptr argument. Callers changed.
3808 Remove code for drawing simulated checkmarks.
3809 (w32_menu_show): make unibyte help string correctly.
3810 (add_menu_item): draw standard Windows checkmarks. Draw radio
3811 buttons as radio buttons if possible.
3812
72d19d75
GM
38132000-03-01 Gerd Moellmann <gerd@gnu.org>
3814
2df636f4
GM
3815 * sysdep.c (start_of_text): Don't define this function for NetBSD
3816 with ELF.
3817
427ec082 3818 * m/pmax.h (START_FILES, CANNOT_DUMP) [__NetBSD__ || __OpenBSD__]:
2df636f4
GM
3819 Don't define.
3820 (UNEXEC) [__NetBSD__ || __OpenBSD__]: Define to unexelf.o.
3821 (LINKER): Don't undef if __NetBSD__ is defined.
3822
3823 * m/mips.h (LINKER) [__NetBSD__ || __OpenBSD__]: Don't define.
3824
3825 * fileio.c [__NetBSD__]: Define `unix'.
3826
72d19d75
GM
3827 * xfns.c (start_busy_cursor): Allow floats for busy-cursor-delay.
3828
ed4d0512
GM
38292000-02-29 Gerd Moellmann <gerd@gnu.org>
3830
50b1039f
GM
3831 * atimer.c (start_atimer): Don't abort when timers are stopped.
3832 (append_atimer_lists): New function.
3833 (cancel_atimer, stop_other_atimers, run_all_atimers): Handle
3834 arbitrary lists of stopped and running atimers.
3835
ed4d0512
GM
3836 * atimer.c (cancel_atimer): Handle canceling an atimer when
3837 some timers are stopped.
3838
3839 * xfns.c (cancel_busy_cursor): Set busy_cursor_atimer to null
3840 after canceling it.
3841
3842 * fns.c (maybe_resize_hash_table): Handle case of new size
3843 coming out as being the same as old size.
3844
387023ee
JR
38452000-02-27 Jason Rumney <jasonr@gnu.org>
3846
3847 * makefile.nt: Add atimer.h to dependencies.
3848 * w32.c (init_environment): Set Vw32_num_mouse_buttons here.
3849 * w32console.c: Only disable window system features for dispextern.h
3850 (initialize_w32_display): Build a display info for the console.
3851 * w32faces.c (tty_defined_color): Apply xfaces.c change from 02-17.
3852 * w32fns.c (w32_wnd_proc) [WM_LBUTTON_DOWN, WM_RBUTTON_DOWN,
3853 WM_LBUTTON_UP, WM_RBUTTON_UP]: Do not treat 4 or more button mice
3854 as 2 button mice.
3855 * w32gui.h (struct W32FontStruct): Revert last change after change
3856 to xdisp.c.
3857 * w32menu.c (single_submenu): Set up help string.
3858 [!HAVE_MULTILINGUAL_MENU]: Don't overwrite item_name with descrip.
3859 (w32_dialog_show): Set up help string.
3860 * w32term.c (w32_display_info_for_display): Remove unused function.
3861 (w32_draw_bitmap): Use pre-built bitmaps.
3862 (w32_initialize_display_info): New function to initialize parts of
3863 display info that are common to both GUI and console frames.
3864 (w32_term_init): Use w32_initialize_display_info. Do not set
3865 Vw32_num_mouse_buttons here, as it is not called for console
3866 frames. Build bitmaps for indicating truncated lines etc.
3867 (x_delete_display): Destroy pre-built bitmaps.
3868 * xdisp.c (handle_single_display_prop): Use FONT_HEIGHT macro.
3869 (echo_area_display): Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM.
3870
4516715a
DL
38712000-02-27 Dave Love <fx@gnu.org>
3872
3873 * lisp.h: Add a bunch of prototypes.
3874
171ca836
KH
38752000-02-26 Kenichi Handa <handa@etl.go.jp>
3876
3877 * keyboard.c (read_char): Set `usec' correctly.
3878
4013921d
KH
38792000-02-25 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
3880
3881 * ccl.c (ccl_driver) [CCL_MapMultiple]: When the mapped value is
3882 `lambda', set reg[RRR] to the map index.
3883 (ccl_driver) [CCL_MapSingle]: When the mapped value is found, set
3884 reg[RRR] to 0. Otherwise, set it to -1.
3885
9244a058
GM
38862000-02-25 Gerd Moellmann <gerd@gnu.org>
3887
2df636f4 3888 * emacs.c (main): Remove code snippet commented out with `//'.
9244a058 3889
18e21ce8 38902000-02-25 Richard M. Stallman <rms@gnu.org>
427ec082 3891
f43d79c1
GM
3892 * fileio.c (Ffile_symlink_p): If result starts with a `/'
3893 and contains a `:', prepend `/:'.
3894
3895 * window.c (select_window_1): If selected_window is nil,
3896 don't "swap out" the buffer's point.
3897 (Fset_window_configuration): Set selected_window to nil
3898 before calling Fselect_window.
3899 (unshow_buffer): Don't set point in buffer from window's point
3900 if another more recently selected window also shows the buffer.
3901
bed0c171
GM
39022000-02-25 Gerd Moellmann <gerd@gnu.org>
3903
449c3c52
GM
3904 * keyboard.c (recursive_edit_1): Cancel busy-cursor.
3905
f5b58615
GM
3906 * xfns.c (inhibit_busy_cursor, busy_count): Removed.
3907 (Fx_show_busy_cursor, Fx_hide_busy_cursor): Removed.
3908 (busy_cursor_atimer, busy_cursor_shown_p, Vbusy_cursor_delay): New
3909 variables.
3910 (DEFAULT_BUSY_CURSOR_DELAY): New define.
3911 (start_busy_cursor, cancel_busy_cursor, show_busy_cursor)
3912 (hide_busy_cursor): New functions.
3913 (syms_of_xfns): DEFVAR_LISP Vbusy_cursor_delay.
3914
3915 * minibuf.c (read_minibuf): Cancel busy-cursor.
3916
3917 * keyboard.c (command_loop_1): Call start_busy_cursor before
3918 Fcommand_execute and cancel_busy_cursor after it.
3919 (timer_check): Remove busy-cursor code.
3920 (Fread_key_sequence, Fread_key_sequence_vector): Start/cancel busy
3921 cursor timer.
3922
3923 * process.c (wait_reading_process_input): Remove busy-cursor code.
3924
3925 * eval.c (Fsignal): Call cancel_busy_cursor instead of
3926 Fx_hide_busy_cursor.
3927
3928 * dispextern.h (Fx_show_busy_cursor, Fx_hide_busy_cursor):
3929 Remove prototyoes.
3930 (start_busy_cursor, cancel_busy_cursor): Add prototypes.
3931
3932 * lisp.h (Fx_hide_busy_cursor): Remove prototype.
3933
3934 * xterm.c (XTread_socket): Remove busy-cursor code.
3935
4eb8436f
GM
3936 * dispnew.c (flush_stdout) [GLYPH_DEBUG]: New function.
3937 (build_frame_matrix_from_leaf_window): Put code handling
3938 glyph row's not being a slice of a frame row in #if 0.
3939 (sync_window_with_frame_matrix_rows): New function.
3940 (frame_row_to_window): New function.
3941 (mirror_line_dance): Handle copies between windows.
3942
3cb65b0e
GM
3943 * lread.c (Fload): Use `xfree' instead of `free'.
3944 (init_obarray): Use `xmalloc' instead of `malloc'.
3945
bed0c171
GM
3946 * window.c (Fset_window_buffer): Set WINDOW to the window
3947 after decoding.
2add4349
GM
3948 (coordinates_in_window): Take frame's internal border width
3949 into account.
bed0c171 3950
42088c12
GM
39512000-02-24 Gerd Moellmann <gerd@gnu.org>
3952
3953 * xterm.c (x_display_and_set_cursor): Display cursor of
3954 non-selected windows depending on the setting of
3955 cursor_in_non_selected_windows.
3956
3957 * xdisp.c (cursor_in_non_selected_windows): New variable.
3958 (syms_of_xdisp): DEFVAR_BOOL it.
3959
d1e103b2
GM
39602000-02-23 Gerd Moellmann <gerd@gnu.org>
3961
723e779c
GM
3962 * data.c (Fstring_to_number): If number is greater than what
3963 fits into an integer, return a float.
3964
d1e103b2
GM
3965 * eval.c (specbind): Remove references to
3966 keyword_symbols_constant_flag.
3967
3968 * data.c (keyword_symbols_constant_flag): Removed.
3969 (Fmakunbound, set_internal, syms_of_data): Remove references to
3970 keyword_symbols_constant_flag.
3971
3972 * bytecode.c (Fbyte_code): Remove keyword_symbols_constant_flag.
3973
214f877f
KH
39742000-02-23 Kenichi Handa <handa@etl.go.jp>
3975
3976 * syntax.c (multibyte_syntax_as_symbol): New variable.
3977 (syms_of_syntax): Declare it as a Lisp variable.
3978 (SYNTAX_WITH_MULTIBYTE_CHECK): New macro.
3979 (scan_lists): If both sexpflag and multibyte_syntax_as_symbol are
3980 nonzero, treat all multibyte characters as symbol.
42088c12 3981 (init_syntax_once): Give syntax `word' to all multibyte
214f877f
KH
3982 characters.
3983
130adcb7
EZ
39842000-02-22 Eli Zaretskii <eliz@is.elta.co.il>
3985
3cb65b0e 3986 * frame.c (Fdelete_frame): Don't let echo_area_window remain on
d7d0dac0 3987 a deleted frame.
130adcb7 3988
17cbbf95
GM
39892000-02-21 Gerd Moellmann <gerd@gnu.org>
3990
3991 * frame.c (Fmouse_position): GCPRO retval instead of x and y.
3992
3993 * xfns.c (x_window_to_frame, x_any_window_to_frame)
3994 (x_non_menubar_window_to_frame): Check the busy-cursor window.
3995
beb0bc36
DL
39962000-02-21 Dave Love <fx@gnu.org>
3997
3998 * frame.c (Vmouse_position_function): New variable.
3999 (Fmouse_position): Use it.
4000 (syms_of_frame): Install it.
4001
4002 * charset.c (find_charset_in_str): Fix use of `c' instead of `c1'.
4003
1d92afcd
GM
40042000-02-20 Gerd Moellmann <gerd@gnu.org>
4005
4006 * fileio.c (Finsert_file_contents): Unbind the binding of
4007 standard-output done by temp_output_buffer_setup.
329eed9f
GM
4008
4009 * eval.c (funcall_lambda): Don't bind Qmocklisp_arguments unless
4010 Vmocklisp_arguments is nil. Inline Fcar and Fcdr.
4011 (specbind, unbind_to): Handle most common case of non-constant
4012 symbol with trivial value specially.
4013
4014 * bytecode.c (Fbyte_code) <Bvarset>: Inline most common case.
4015
18e21ce8 40162000-02-20 Richard M. Stallman <rms@gnu.org>
2d06696f
RS
4017
4018 * data.c (Fmake_variable_buffer_local): Doc fix.
4019 Init found_for_buffer to 0.
4020 (Fmake_variable_frame_local): If the variable has already
4021 been buffer-local, set the check_frame field.
4022
1d4311c3
EZ
40232000-02-20 Eli Zaretskii <eliz@is.elta.co.il>
4024
4025 * msdos.c (IT_write_glyphs): Allocate a larger screen_buf as data
4026 produced for CODING_MODE_LAST_BLOCK requires.
4027
2dc95ddd
DL
40282000-02-18 Dave Love <fx@gnu.org>
4029
4030 * keyboard.c (echo_keystrokes): Remove declaration.
4031 (Vecho_keystrokes) New variable.
4032 (read_char, record_menu_key, read_key_sequence): Use it to allow
4033 use of float value.
4034 (syms_of_keyboard): Change Vecho_keystrokes declaration.
4035
4036 * lread.c: Undef feature selection macros before defining.
4037
f0930f35
GM
40382000-02-18 Gerd Moellmann <gerd@gnu.org>
4039
4040 * data.c (let_shadows_buffer_binding_p): Ignore specbindings
4041 for symbols other than the symbol in question.
4042
e3d4de90
DL
40432000-02-17 Dave Love <fx@gnu.org>
4044
4045 * s/sol2.h (C_DEBUG_SWITCH): Define to allow optimization.
4046
0b378936
GM
40472000-02-17 Gerd Moellmann <gerd@gnu.org>
4048
d621caf7
GM
4049 * emacs.c (main): Use #if GC_MARK_STACK instead of #ifdef.
4050
0b378936
GM
4051 * alloc.c (enum mem_type): Compile unconditionally.
4052
3b451f74
EZ
40532000-02-17 Eli Zaretskii <eliz@is.elta.co.il>
4054
4055 * xfaces.c (tty_defined_color): Don't return faulire indication
4056 for unspecified-fg and unspecified-bg pseudo-colors.
4057
10689a01
GM
40582000-02-17 Gerd Moellmann <gerd@gnu.org>
4059
1216f5e4
GM
4060 * alloc.c (mark_object): Don't mark symbol names in pure space.
4061 (gc_sweep): Don't unmark symbol names in pure space.
4062
4063 * lisp.h (GC_USE_GCPROS_AS_BEFORE, GC_MAKE_GCPROS_NOOPS)
4064 (GC_MARK_STACK_CHECK_GCPROS, GC_USE_GCPROS_CHECK_ZOMBIES)
4065 [GC_MARK_STACK]: New defines.
427ec082 4066 (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5, UNGCPRO)
1216f5e4
GM
4067 [GC_MARK_STACK == GC_MAKE_GCPROS_NOOPS]: Define as no-ops.
4068
4069 * emacs.c (main) [GC_MARK_STACK]: Initialize stack_base.
4070
4071 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use
4072 allocate_buffer instead of xmalloc.
4073
4074 * alloc.c (toplevel): Include setjmp.h.
4075 (PURE_POINTER_P): New define.
4076 (enum mem_type) [GC_MARK_STACK]: New enumeration.
4077 (Vdead) [GC_MARK_STACK]: New variable.
4078 (lisp_malloc): Add parameter TYPE, call mem_insert if
4079 GC_MARK_STACK is defined.
4080 (allocate_buffer): New function.
427ec082 4081 (lisp_free) [GC_MARK_STACK]: Call mem_delete.
1216f5e4
GM
4082 (free_float) [GC_MARK_STACK]: Set type to Vdead.
4083 (free_cons) [GC_MARK_STACK]: Set car to Vdead.
4084 (stack_base, mem_root, mem_z) [GC_MARK_STACK]: New variables.
4085 (MEM_NIL) [GC_MARK_STACK]: New define.
4086 (struct mem_node) [GC_MARK_STACK]: New structure.
4087 (mem_init, mem_find, mem_insert, mem_delete, mem_insert_fixup)
4088 (mem_delete_fixup, mem_rotate_left, mem_rotate_right)
4089 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
4090 (live_misc_p, live_vector_p, live_buffer_p, mark_memory)
4091 (mark_stack) [GC_MARK_STACK]: New functions.
4092 (Fgarbage_collect) [GC_MARK_STACK]: Call mark_stack.
4093 (clear_marks): Removed.
4094 (gc_sweep): Set free conses' car, free floats' type, free
4095 symbols' function to Vdead. Use lisp_free to free buffers.
4096 (init_alloc_once): Initialize Vdead.
4097 (survives_gc_p): Return non-zero for pure objects.
4098
4099 * alloc.c: Add comments throughout the file.
4100
2503c8b1
GM
4101 * atimer.c (stop_other_atimers): Don't call cancel_atimer because
4102 that unblocks alarms.
4103
8389e1e2
GM
4104 * alloc.c, bytecode.c, data.c, dispnew.c, ecrt0.c, editfns.c,
4105 emacs.c, floatfns.c, fns.c, lread.c, print.c, config.in, lisp.h,
4106 Makefile.in: Remove `LISP_FLOAT_TYPE' and `standalone'.
4107
10689a01 4108 * frame.c (make_frame): Set frame initiallly to `garbaged'.
427ec082 4109
bfc17d18
KH
41102000-02-17 Kenichi Handa <handa@etl.go.jp>
4111
4a09dee0
KH
4112 * xdisp.c (decode_mode_spec_coding): Delete superfluous code to
4113 avoid infinite error signaling. Allocate sufficient memory for
4114 eol_str in the case that eoltype is Lisp_Int.
bfc17d18 4115
2b927d02
SM
41162000-02-17 Stefan Monnier <monnier@cs.yale.edu>
4117
4118 * syntax.c (Fforward_comment): Undo the previous change, since cc-mode
4119 depends on the previous behavior.
4120
b49cb764
GM
41212000-02-16 Gerd Moellmann <gerd@gnu.org>
4122
4123 * sysdep.c (vfork) [!HAVE_VFORK]: Removed.
4124
99e95407
GM
41252000-02-15 Gerd Moellmann <gerd@gnu.org>
4126
4127 * s/freebsd.h (BROKEN_PTY_READ_AFTER_EAGAIN): Define.
4128
4129 * process.c (send_process) [BROKEN_PTY_READ_AFTER_EAGAIN]:
b49cb764 4130 Workaround for FreeBSD bug. Clear output queue after EAGAIN in
99e95407
GM
4131 write(2).
4132
6ffd3cf7
RS
41332000-02-15 Richard M. Stallman <rms@gnu.org>
4134
4135 * data.c (set_internal): Don't make variable buffer-local
4136 if within a let-binding for the same buffer.
4137 (let_shadows_buffer_binding_p): New function.
4138
4139 * eval.c (specbind): For buffer-local value,
4140 record the current buffer also.
4141 (unbind_to): Cope with that change.
4142
cad53475
GM
41432000-02-15 Gerd Moellmann <gerd@gnu.org>
4144
4145 * window.c (Fsave_window_excursion): Doc fix.
4146
1aa963c8
SM
41472000-02-15 Stefan Monnier <monnier@cs.yale.edu>
4148
4149 * syntax.c (back_comment): Make sure we only consider comment-starters
4150 of the relevant style and return -1 in case of a failure to find the
4151 beginning of the comment.
4152 (Fforward_comment): If back_comment fails, go back to the position just
4153 after the comment-end.
4154 (scan_lists): Add comment describing a very minor bug.
4155
b9b84fd3
SM
41562000-02-14 Stefan Monnier <monnier@cs.yale.edu>
4157
4158 * minibuf.c (Ftry_completion, Fall_completions): Add a reference to
4159 `completion-regexp-list' in the docstring.
4160
3a28db80
DL
41612000-02-14 Dave Love <fx@gnu.org>
4162
4163 * xfaces.c (tty_defined_color): Declare color_idx unsigned long.
4164
fb4a568d
SM
41652000-02-14 Stefan Monnier <monnier@cs.yale.edu>
4166
4167 * regex.h (RE_SYNTAX_EMACS): Add RE_CHAR_CLASSES and RE_INTERVALS
4168 to Emacs' syntax. Also fix the comment about set/not-set meanings
4169 since Emacs syntax is not the value 0 any more.
4170 * search.c (compile_pattern_1): Remove RE_CHAR_CLASSES from the syntax
4171 since it's now part of RE_SYNTAX_EMACS.
4172
1063ebb5
DL
41732000-02-12 Dave Love <fx@gnu.org>
4174
4175 * frame.h (SELECTED_FRAME): Use NULL, not 0 to avoid warnings on
4176 Alpha.
4177
fb07a302
GM
41782000-02-12 Gerd Moellmann <gerd@gnu.org>
4179
4180 * xdisp.c (syms_of_xdisp): Doc fix for scroll-conservatively.
4181
aaf2320c
DL
41822000-02-12 Dave Love <fx@gnu.org>
4183
4184 * s/aix3-2.h, s/osf-1.h: Define C_DEBUG_SWITCH for non-gcc.
4185
4186 * s/ux4800.h, s/umips.h, s/umax.h, s/sol2.h, s/sco5.h, s/rtu.h:
fb07a302
GM
4187 * s/ptx4.h, s/umax.h, s/dgux.h, s/bsd4-2.h, s/bsd4-3.h:
4188 * s/hpux.h: Don't define HAVE_VFORK.
aaf2320c
DL
4189
4190 * s/gnu-linux.h: Don't define HAVE_VFORK or HAVE_SYS_SIGLIST.
4191
4192 * s/nextstep.h: Don't define HAVE_ALLOCA.
4193
4194 * config.in: Add vfork bits.
4195
eedf8bde
GM
41962000-02-12 Gerd Moellmann <gerd@gnu.org>
4197
4198 * process.c (Fopen_network_stream) [POLL_FOR_INPUT]: Register
4199 unwind function to undo the effect of stopping atimers.
4200
4201 * keyboard.c (bind_polling_period): Stop all timers except
4202 poll_timer.
4203
4204 * atimer.c (stopped_atimers): New variable.
4205 (stop_other_atimers, run_all_atimers, unwind_stop_other_atimers):
4206 New functions.
4207
4208 * atimer.h (stop_other_atimers, run_all_atimers)
4209 (unwind_stop_other_atimers): Add function prototypes.
427ec082 4210
eedf8bde
GM
4211 * s/hpux10.h (HAVE_XRMSETDATABASE): Define if not already defined.
4212
8476c2f8
KR
42132000-02-11 Ken Raeburn <raeburn@gnu.org>
4214
4215 * Makefile.in (LIBX): Link in tiff library before jpeg, since tiff
4216 library may depend on jpeg.
4217 (atimer.o): Depends on atimer.c.
4218
0e85e4a3
KH
42192000-02-11 Kenichi Handa <handa@etl.go.jp>
4220
4221 * insdel.c (del_range_1): Call update_compositions.
4222 (del_range_both): Call update_compositions just once..
4223
97fa0cc8
DL
42242000-02-10 Dave Love <fx@gnu.org>
4225
4226 * xfns.c (create_frame_xic): Fix initialization of automatic
4227 aggregates for pcc.
4228
25566a3c
KH
42292000-02-09 Kenichi Handa <handa@etl.go.jp>
4230
4231 * ccl.c (CCL_MAKE_CHAR): New macro.
4232 (ccl_driver) <CCL_TranslateCharacter>: Check the validity of
4233 registers by CCL_MAKE_CHAR before calling translate_char.
4234 <CCL_TranslateCharacterConstTbl> Likewise.
4235
69da54ba
DL
42362000-02-08 Dave Love <fx@gnu.org>
4237
4238 * lread.c (__EXTENSIONS__): Define.
4239
f7136ee8
GM
42402000-02-08 Gerd Moellmann <gerd@gnu.org>
4241
4242 * puresize.h (BASE_PURESIZE): Increase to 650000.
4243
7768790b
EZ
42442000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
4245
4246 * msdos.c (XMenuActivate): Turn off the cursor after displaying
4247 the help message.
4248
38fd211b
EZ
42492000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
4250
4251 * s/msdos.h (INTERNAL_TERMINAL): Add capabilities se, so, us, ue,
4252 md, mh, mb, mr, and me to the fake termcap entry.
4253
66e4690f
KR
42542000-02-06 Ken Raeburn <raeburn@gnu.org>
4255
4256 * sound.c (sound_cleanup): Don't call device close routine if the
4257 function pointer is null.
4258
a75dfea0
AI
42592000-02-06 Andrew Innes <andrewi@gnu.org>
4260
4261 * dispextern.h: Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM,
4262 around image definitions and prototypes.
4263 (gamma_correct) [WINDOWSNT]: New prototype.
4264
4265 * w32term.c (x_make_frame_visible): Replace call to
4266 input_poll_signal with poll_for_input.
4267
4268 * window.c [WINDOWSNT]: Include w32term.h.
4269
4270 * xdisp.c [WINDOWSNT]: Include w32term.h.
4271
4272 * makefile.nt: Add dependencies on w32gui.h.
4273 (OBJ1): Include atimer.obj.
4274 ($(BLD)\atimer.obj): New dependency rule.
4275
4276 * w32.c (sigmask): New function (does nothing).
4277 (sigunblock): Ditto.
4278
4279 * frame.c [WINDOWSNT]: Include w32term.h.
4280
4281 * w32gui.h (struct W32FontStruct): Add ascent and descent slots.
4282
4283 * lread.c (syms_of_lread): Fix literal newlines.
4284
4285 * emacs.c (USAGE): Split into USAGE1 and USAGE2, to work-around
4286 the string constant limit (2048 bytes) in MSVC.
4287 (main): Ditto.
4288
59ddecde
GM
42892000-02-05 INOUE Seiichiro <inoue@ainet.or.jp>
4290
4291 * xterm.c (x_display_and_set_cursor) [HAVE_X_I18N]: Set pre-edit
4292 area.
4293 (x_display_cursor) [HAVE_X_I18N]: Don't set it here.
4294 (XTread_socket) [HAVE_X_I18N]: <KeyPress, KeyRelease>: Don't
4295 dispatch the event.
4296
07590973
DL
42972000-02-04 Dave Love <fx@gnu.org>
4298
4299 * fileio.c: Remove some unused vars.
4300 (_GNU_SOURCE): Define (for euidaccess).
4301
4302 * lread.c (_XOPEN_SOURCE): Declare (for ftello).
4303
4304 * minibuf.c (read_minibuf_noninteractive): Remove undeclared
4305 gcpro1, gcpro2.
4306 (read_minibuf): Deal with allow_props correctly.
4307
649351f9
EZ
43082000-02-03 Eli Zaretskii <eliz@is.elta.co.il>
4309
4310 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Enlarge to 60000.
4311
66e4690f 43122000-02-03 Ken Raeburn <raeburn@gnu.org>
f1b9c7c1
KR
4313
4314 * search.c (compile_pattern): If a cache entry has a nil regexp,
4315 fill in that entry instead of clobbering a previously cached
4316 string regexp.
4317
66e4690f 43182000-02-02 Ken Raeburn <raeburn@gnu.org>
15c9cf81
KR
4319
4320 * puresize.h (BASE_PURESIZE): Increase to 610000.
4321
d240a249
GM
43222000-02-02 Gerd Moellmann <gerd@gnu.org>
4323
4324 * frame.c (Fframe_parameters): Add GCPRO because tty_color_name
4325 can GC.
4326
ca91fb26
KH
43272000-02-02 Kenichi Handa <handa@etl.go.jp>
4328
25660570
KH
4329 * ccl.c (ccl_driver) <CCL_WriteExprRegister>: Set jump_address
4330 instead of incrementing ic directly.
4331 <CCL_WriteExprConst> Likewise.
4332 <ccl_set_expr>: Set ic to jump_address.
4333
ca91fb26
KH
4334 * fileio.c (e_write): Fix the handling of
4335 CODING_FINISH_INSUFFICIENT_SRC.
4336
2ede9689
DL
43372000-02-01 Dave Love <fx@gnu.org>
4338
4339 * editfns.c (Fpropertize): Doc fix.
4340
4341 * process.c (Fstart_process): Doc fix.
4342
4343 * eval.c: Fix various doc strings not to duplicate information
4344 from help-manyarg-func-alist.
4345
4346 * window.c (Fset_window_margins): Don't make interactive. Doc
4347 fix.
4348
4349 * doc.c (Vhelp_manyarg_func_alist): New variable.
4350 (Fdocumentation): Use it.
4351 (syms_of_doc): Define it.
4352
b6680a0e
GM
43532000-01-31 Gerd Moellmann <gerd@gnu.org>
4354
2cb750ba
GM
4355 * xterm.c (xim_open_dpy): Remove unused local variable.
4356
74e9213b
GM
4357 * emacs.c (USAGE): Use term `display options' instead of `X
4358 options'.
4359
4360 * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: New function.
4361 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
4362
b6680a0e
GM
4363 * fns.c (sweep_weak_table): New function.
4364 (sweep_weak_hash_tables): Use it. Keep on marking until there
4365 is no more change.
4366
994c5afe
GM
43672000-01-30 Gerd Moellmann <gerd@gnu.org>
4368
4369 * xterm.c (x_delete_display): Update next_noop_dpyinfo to ensure
4370 that XTread_socket does not crash by trying to call XNoOp on a
4371 closed display.
427ec082 4372
f00276e3
JR
43732000-01-30 Jason Rumney <jasonr@gnu.org>
4374
4375 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
4376 Change selected_frame to SELECTED_FRAME ().
4377 (w32_console_mouse_position): Remove #ifndef MULE from around
4378 `insist' parameter.
4379
4380 * makefile.nt: Remove dosfns.obj.
4381
4382 * term.c (term_init) [WINDOWSNT]: Initialize TN_max_colors.
4383
4384 * w32fns.c (w32_defined_color): Check for valid frame before
4385 applying gamma correction. Eliminate dependency on frame elsewhere.
4386 (w32_load_system_font): Switch FIXED_PITCH and VARIABLE_PITCH.
4387 (w32_to_x_font): Use resx and resy not height_in and width_in.
4388 (x_to_w32_font): Doc fix.
4389 (xlfd_strip_height): New function to strip and return font height.
4390 (w32_font_match): Compare height separately from rest of xlfd
4391 spec, using xlfd_strip_height.
4392
4393 * w32term.c (w32_term_init): Swap resx and height_in, resy and
4394 width_in. Use w32_defined_color in place of defined_color.
4395
4396 * w32faces.c: Merge more of DOS and X specifics in preparation for
4397 merge with xfaces.c.
4398 (defined_color): Remove FIXME comment.
4399 (tty_color_name): Provide w32-specific function.
4400 (realize_tty_face): Handle FACE_TTY_DEFAULT*_COLOR specially.
4401
4402 * w32console.c (turn_on_face, turn_off_face): Removed.
4403 (w32_face_attributes): New function.
4404 (Global_variables): Reduce scope where possible.
4405 (clear_frame, ins_del_lines, scroll_line): Use char_attr_normal as
4406 fill attribute.
4407 (hl_mode): Don't modify text attributes.
4408 (write_glyphs): Don't do anything if len <= 0. Use
4409 w32_face_attributes to get attributes for drawing. Write
4410 terminating codes using char_attr_normal.
4411 (reset_terminal_modes, set_terminal_modes): Turn off highlight.
4412 (update_begin, update_end): Likewise.
4413 (vga_stdcolor_name): New function.
4414 (initialize_w32_display): Remove char_attr_reverse and char_attr.
4415 (Fset_screen_color): Remove char_attr_reverse.
4416
b08e8bb2
GM
44172000-01-29 Gerd Moellmann <gerd@gnu.org>
4418
4419 * xfns.c (xic_set_preeditarea): Take window parameter and
4420 window-relative pixel-positions.
4421
4422 * xterm.c (x_display_cursor): Set XIC pre-edit area only if window
4423 is its frame's selected window.
4424 (xim_instantiate_callback): Likewise.
4425
4426 * xfns.c (x_create_im): Removed.
4427 (DEFAULT_STYLE, DEFAULT_FONT): Removed.
4428 (supported_xim_styles): Renamed from supported_styles.
4429 (best_xim_style): Renamed from best_style.
4430 (create_frame_xic): Renamed from xic_create_frame.
4431 (free_frame_xic): Renamed from xic_destroy_frame.
427ec082 4432
b08e8bb2
GM
44332000-01-29 INOUE Seiichiro <inoue@ainet.or.jp>
4434
4435 * xterm.c (XTread_socket) [HAVE_X_I18N]: If event is for none of
4436 our frames, call XFilterEvent with 2nd parameter `None'.
4437 (XTread_socket) <KeyPress> [HAVE_X_I18N]: Handle XmbLookupString
4438 returning XBufferOverflow.
4439 (XTread_socket) <ConfigureNotify> [HAVE_X_I18N]: Set XIC status
4440 area.
4441 (x_display_cursor) [HAVE_X_I18N]: Set XIC pre-edit area.
4442 (x_new_fontset) [HAVE_X_I18N]: Create XIC status area fontset.
4443 (xim_destroy_callback, xim_open_dpy, xim_instantiate_callback)
4444 (xim_initialize, xim_close)
4445 [HAVE_X_I18N && HAVE_X11R6]: New functions.
4446 (x_destroy_window) [HAVE_X_I18N]: Call xic_destroy_frame.
4447 (x_term_init) [HAVE_X_I18N]: Call xim_initialize.
4448 (x_delete_display) [HAVE_X_I18N]: Call xim_close.
4449
4450 * xterm.h (struct x_display_info) [HAVE_X_I18N]: Add members `xim'
4451 and `xim_styles'.
4452 (struct x_output) [HAVE_X_I18N]: Remove member `xim', add
4453 `xic_style' and `xic_xfs'.
4454 (FRAME_MENUBAR_HEIGHT, FRAME_X_XIM, FRAME_X_XIM_STYLES)
4455 (FRAME_XIC_STYLE, FRAME_XIC_FONTSET): New macros.
4456 (FRAME_XIM): Removed.
4457
4458 * xfns.c (supported_styles): New variable.
4459 (DEFAULT_STYLE, DEFAULT_FONT): New macros
4460 (xic_create_xfontset, best_style, xic_create_frame)
4461 (xic_destroy_frame, xic_set_preeditarea, xic_set_statusarea)
4462 (xic_set_xfontset): New functions.
4463
142e109c
DL
44642000-01-28 Dave Love <fx@gnu.org>
4465
4466 * s/irix6-5.h: Revert last change after change to irix5-0.h.
4467
4468 * m/iris4d.h (C_SWITCH_MACHINE): Don't use -G0.
4469
b02786f9
GM
44702000-01-28 Gerd Moellmann <gerd@gnu.org>
4471
d060bc9f
GM
4472 * buffer.c (Fother_buffer): Don't call Fset_buffer_major_mode
4473 for *scratch* if it already existed.
4474
b02786f9
GM
4475 * emacs.c (USAGE): New macro.
4476 (main): Use it to display usage information.
4477
2c52d7e4
EZ
44782000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
4479
4480 Support for the menu-help feature:
4481
4482 * msdos.h: Change prototypes of XMenuAddSelection and
4483 XMenuActivate.
4484
4485 * msdos.c (IT_clear_end_of_line): Print the extent of the cleared
4486 part of the line to the termscript file.
4487 (IT_clear_to_end): Clear the entire line, not just its beginning.
4488 (menu_help_message, prev_menu_help_message): New variables.
4489 (IT_menu_make_room): Make room for the help_text member.
4490 (IT_menu_display): New argument disp_help; all callers changed.
4491 If disp_help is non-zero, store the help text of the active menu
4492 item in menu_help_message.
4493 (XMenuAddPane): Initialize the help_text member to NULL.
4494 (XMenuAddSelection): New argument help_text. Store it in the
4495 XMenu structure.
4496 (XMenuActivate): New argument help_callback. If the value of
4497 menu_help_message has changed since the last time, display the
4498 menu help message text while waiting for the mouse to move. Clear
4499 the echo area before exiting.
4500 (XMenuDestroy): Free the help_text member.
4501
ffe0bcd1
GM
45022000-01-27 Gerd Moellmann <gerd@gnu.org>
4503
4504 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT]: Pass help to
4505 XMenuAddSelection. Pass help callback to XMenuActivate.
4506 (menu_help_callback) [!USE_X_TOOLKIT]: New function.
4507
50dbd23f
EZ
45082000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
4509
4510 * atimer.c (start_atimer) [!HAVE_SETITIMER]: Use EMACS_SET_SECS
4511 and EMACS_SET_USECS.
4512
f5941bf8
GM
45132000-01-26 Dave Love <fx@gnu.org>
4514
6c67ddee
DL
4515 * editfns.c (Fchar_after, Fchar_before): Doc fix.
4516
f5941bf8
GM
4517 * bytecode.c (Fbyte_code): Use {BEFORE,AFTER}_POTENTIAL_GC where
4518 an error may be signalled.
4519
9e49c990
GM
45202000-01-26 Gerd Moellmann <gerd@gnu.org>
4521
fc3cb460
GM
4522 * s/irix6-5.h [__GNUC__ && __GNUC_MINOR__ >= 95]: Undef
4523 LD_SWITCH_SYSTEM inherited from irix5-0.h.
4524
9e49c990
GM
4525 * bytecode.c (Fbyte_code) [BYTE_CODE_SAFE]: Fix typo.
4526
d0c037d8
GM
45272000-01-25 Gerd Moellmann <gerd@gnu.org>
4528
4529 * charset.c (Fstring): If there is a multibyte char among
4530 the args, always return a multibyte string.
4531
e12489f9
GM
45322000-01-25 Gerd Moellmann <gerd@gnu.org>
4533
4534 * sysdep.c (sys_select): Turn atimers off and on instead of
4535 recording and restoring old alarm handler
4536
4537 * process.c (toplevel): Include atimer.h.
4538 (create_process_1): Rewritten.
4539 (create_process): Use atimers instead of alarm.
4540 (wait_reading_process_input) [hpux]: Turn atimers off instead
4541 of turning off SIGALRM.
4542 (wait_reading_process_input): Turn off atimers instead off
4543 calling stop_polling.
4544
4545 * emacs.c (main): Call init_atimer.
4546
4547 * keyboard.c (toplevel): Include systime.h and atimer.h.
4548 (polling_for_input): Removed because unused.
4549 (input_poll_signal) [POLL_FOR_INPUT]: Removed.
4550 (poll_timer): New variable.
4551 (poll_for_input, poll_for_input_1): New functions.
4552 (start_polling, stop_polling): Rewritten.
4553
4554 * keyboard.h (polling_for_input): Removed.
427ec082 4555
e12489f9
GM
4556 * atimer.h, atimer.c: New files.
4557
4558 * Makefile.in (obj): Add atimer.o.
4559 (atimer.o): New target.
4560
4561 * blockinput.h (pending_atimers): Add extern declaration.
4562 (UNBLOCK_INPUT): Rewritten. Handle pending atimers.
4563
4564 * lisp.h (popup_activated_flag): Add extern declaration.
4565
4566 * xmenu.c (popup_activated_flag): Make externally visible.
4567 (popup_activate_callback) [USE_MOTIF]: Increment
4568 popup_activated_flag.
4569 (popup_deactivate_callback) [USE_MOTIF]: Decrement it.
4570
4571 * xterm.c (toplevel): Include atimer.h.
4572 (toolkit_scroll_bar_interaction): New variable.
4573 (Fxt_process_timeouts): Removed.
4574 (x_process_timeouts): New function.
4575 (xt_action_hook): Clear toolkit_scroll_bar_interaction.
4576 (x_send_scroll_bar_event): Set toolkit_scroll_bar_interaction.
4577 (x_make_frame_visible): Call poll_for_input_1 instead of
4578 input_poll_signal. Don't call alarm.
4579 (x_initialize): Install timer calling x_process_timeouts.
427ec082 4580
1e5279b9
DL
45812000-01-24 Dave Love <fx@gnu.org>
4582
6c67ddee 4583 * s/irix5-0.h: Don't set LD_SWITCH_SYSTEM -- we use unexelf now.
1e5279b9
DL
4584 Don't use -cckr -- apparently not now necessary.
4585
edf6aeb8
EZ
45862000-01-24 Eli Zaretskii <eliz@is.elta.co.il>
4587
4588 * msdos.c (IT_menu_display): Truncate long menu lines at the right
4589 screen boundary.
4590
9badad41
JR
45912000-01-23 Jason Rumney <jasonr@gnu.org>
4592
4593 * w32fns.c (w32_defined_color): Apply gamma correction before
4594 trying to map to the palette.
4595 (w32_wnd_proc) [WM_ERASE_BACKGROUND]: Pass device context of frame
4596 to w32_clear_rect.
4597
4598 * w32term.c (w32_fill_rect): Do not try to deal with NULL hdc
4599 here. Callers changed to always pass real device context.
4600 (w32_draw_bitmap): Likewise.
4601 (w32_get_glyph_overhangs): Likewise.
4602 (w32_draw_box_rect): Make use of s->hdc rather than getting a new
4603 one.
4604 (w32_set_vertical_scroll_bar): Pass correct HWND parameters to
4605 pfnSetScrollInfo and SetScrollRange.
4606 (x_get_char_face_and_encoding): Don't turn iso8859-1 characters
4607 back into MULE characters after decoding them.
4608 (x_get_glyph_face_and_encoding): Likewise.
4609 (w32_per_char_metric): Use GetCharExtentPoint32W as fallback when
4610 GetCharABCWidthsW fails, since this is defined on Windows 9x.
4611 (x_produce_glyphs): Calculate per char metrics for a character
4612 that we know exists in default font when font_not_found_p is true.
4613
63bd786b
JR
46142000-01-22 Jason Rumney <jasonr@gnu.org>
4615
4616 * makefile.nt (intervals.obj, composite.obj): New modules.
4617 (composite.h): Added as dependency where appropriate.
4618
4619 * w32gui.h (XGCValue): New struct for emulating X GCs.
4620
4621 * w32term.h (XCharStruct): New struct for emulating X.
4622
4623 * w32console.c (turn_on_face, turn_off_face): New functions.
4624 (change_line_highlight): New prototype for new redisplay.
4625 (write_glyphs): Support multibyte text. Support faces.
4626
4627 * w32faces.c: Complete rewrite for new redisplay based on new
4628 xfaces.c.
4629
4630 * w32fns.c: Use SELECTED_FRAME macro in place of selected_frame
4631 throughout. struct frame * in place of FRAME_PTR.
4632 Skeleton support for images, toolbars, tooltips from xfns.c.
4633 (Fx_create_frame): Use system default for default scroll bar
4634 width.
4635 (w32_get_arg): Renamed from x_get_arg.
4636 (Fx_file_dialog): New function.
4637 (w32_list_fonts): Check cache before asking system.
4638 (Vw32_enable_synthesized_fonts): New variable.
4639 (Vw32_enable_italics): Obsolete, removed.
4640
4641 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
4642 Use SELECTED_FRAME macro.
4643
4644 * w32menu.c: Add skeleton support for help strings on menus.
4645 (add_menu_item): Native checkbox and radio support added, but not
4646 yet enabled due to bugs.
4647 (push_menu_item): Add parameters type, selection and help.
4648 Callers updated.
4649 Formatting changes to reduce unnecessary diffs with xmenu.c.
4650
4651 * w32select.c (Fw32_set_clipboard_data): Update call to
4652 find_charset_in_str.
4653
4654 * w32term.c: Complete rewrite for new redisplay based on new
4655 xterm.c with necessary sections merged back in from old w32term.c.
4656
6ffd3cf7 46572000-01-21 Richard M. Stallman <rms@gnu.org>
b50c9214
RS
4658
4659 * data.c (set_internal): Further fix in same criterion.
4660
6ffd3cf7 46612000-01-20 Richard M. Stallman <rms@gnu.org>
8cc95642
RS
4662
4663 * data.c (set_internal): Fix the criteria for whether
4664 to swap out the old cached binding.
4665
60af03f1
DL
46662000-01-19 Dave Love <fx@gnu.org>
4667
4668 * lread.c: (syms_of_lread) [user-init-file]: Doc change.
4669
f9be074f
KH
46702000-01-18 Kenichi Handa <handa@etl.go.jp>
4671
4672 * regex.c (re_compile_fastmap): While checking a range table for
4673 `charset', skip flag bits for a character class correctly.
4674
52b8dbf9
GM
46752000-01-17 Gerd Moellmann <gerd@gnu.org>
4676
d36100c9
GM
4677 * m/news-risc.h (LD_SWITCH_MACHINE): Define differently for GCC.
4678
52b8dbf9
GM
4679 * xfns.c (x_window): Call lw_create_widget with new parameter
4680 list.
4681
4682 * widget.c (EmacsFrameSetCharSize): Change size of children first
4683 because of problems with main window geometry management under
4684 Lesstif.
4685
4686 * xmenu.c (enum menu_item_idx): New enumeration replacing defines
4687 MENU_ITEMS_ITEM_.*.
4688 (MENU_ITEMS_ITEM_HELP): New enumerator.
4689 (push_menu_item): Add parameter HELP. Record help in menu_items.
4690 (single_menu_item, single_submenu, list_of_items): Call
4691 push_menu_item with new parameter.
4692 (single_submenu): Set help string in widget value.
4693 (menu_highlight_callback): New function.
4694 (set_frame_menubar): Call lw_create_widget with new
4695 parameter list.
4696 (xmenu_show, xdialog_show): Ditto.
4697
3139018f
GM
46982000-01-13 Gerd Moellmann <gerd@gnu.org>
4699
4700 * sound.c (Fplay_sound): Improve doc string.
4701
83c8f461
RS
47022000-01-11 Richard M. Stallman <rms@gnu.org>
4703
4704 * lisp.h (set_internal): Enter the new arg.
4705
4706 * eval.c (specbind): Record buffer-local variables specially,
4707 indicating which buffer's binding was saved.
4708 (unbind_to): Restore buffer-local variables specially
4709 in the proper buffer.
4710
4711 * data.c (set_internal): New arg BUF.
427ec082 4712
83c8f461
RS
4713 * eval.c (specbind, unbind_to): Pass new arg to set_internal.
4714 * data.c (Fset): Pass new arg to set_internal.
4715 * bytecode.c (Fbyte_code): Pass new arg to set_internal.
427ec082 4716
1fab1775
GM
47172000-01-11 Gerd Moellmann <gerd@gnu.org>
4718
4719 * .gdbinit: Adapt to new strings. Add xbacktrace, xreload,
4720 xprintsym.
4721
83c8f461 47222000-01-11 Richard M. Stallman <rms@gnu.org>
6f59462e
RS
4723
4724 * minibuf.c (Ftry_completion): Doc fix.
4725
7a85e4df
GM
47262000-01-11 Gerd Moellmann <gerd@gnu.org>
4727
4728 * keyboard.c (Fclear_this_command_keys): Clear recent_keys
4729 vector, too.
4730
a970dae4
AS
47312000-01-11 Andreas Schwab <schwab@suse.de>
4732
4733 * coding.c (code_convert_region): Initialize total_skip.
4734
c65d14ee
DL
47352000-01-08 Dave Love <fx@gnu.org>
4736
4737 * eval.c (Fuser_variable_p): Check customizability too.
4738
834938d2
GM
47392000-01-07 Gerd Moellmann <gerd@gnu.org>
4740
4741 * minibuf.c (Fcompleting_read): Doc fix.
4742
e0303cd6
GM
47432000-01-05 Gerd Moellmann <gerd@gnu.org>
4744
8a26744b
GM
4745 * s/freebsd.h (C_SWITCH_SYSTEM): Add -I /usr/local/include and
4746 -L /usr/local/lib.
4747
e0303cd6
GM
4748 * xfns.c (x_create_im): New function to set IM and IC of a frame.
4749 Check that input style is supported before trying to create an
4750 IC for it.
4751 (x_window): Call x_create_im.
427ec082 4752
2e471eb5
GM
47532000-01-04 Gerd Moellmann <gerd@gnu.org>
4754
560a7bd2
GM
4755 * xfns.c (current_gif_memory_src): New variable.
4756 (gif_load): Record the address of the current memory source
4757 in current_gif_memory_src.
4758 (gif_read_from_memory): Use current_gif_memory_src.
4759
f9ee84a3
GM
4760 * systime.h (EMACS_GET_TIME, EMACS_ADD_TIME, EMACS_SUB_TIME): Give
4761 macros statement form.
4762
d1299cde
GM
4763 * sound.c (struct sound): Renamed from struct sound_file.
4764 (struct sound): Add members `data' and `header_size'.
4765 (enum sound_attr): Add SOUND_DATA.
4766 (current_sound, current_sound_device): Variables renamed from
4767 sound_file and sound_device.
4768 (parse_sound): Parse :data.
4769 (parse_sound): Handle sound data in strings.
4770 (find_sound_type): Function renamed from find_sound_file_type.
427ec082 4771 (wav_init, au_init): Fail if sound's header_size is smaller than
d1299cde
GM
4772 needed header size.
4773 (wav_play, au_play): Play sounds from string data.
4774
2e471eb5
GM
4775 * puresize.h (BASE_PURE_SIZE): Increase to 600000.
4776
4777 * lisp.h: Add prototype for allocate_string_data.
4778
4779 * alloc.c (Fgarbage_collect): Return number of live and free
4780 strings.
4781
4782 * alloc.c (mark_buffer): Remove code in #if 0.
4783 (gc_sweep): Ditto.
4784 (UNMARK_BALANCE_INTERVALS): Give the macro statement form.
4785 (strings_consed): New variable.
4786 (allocate_string): Set it.
4787 (syms_of_alloc): Add DEFVAR_INT for strings_consed.
4788 (Fmemory_use_counts): Return strings_consed. Use Flist.
4789
4790 * alloc.c: General cleanup in comments etc. Remove conditional
4791 compilation for `standalone'.
4792
4793 * lisp.h (struct Lisp_String): Make DATA member `unsigned char *'.
4794
4795 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P):
4796 (GC_STRING_BYTES, GC_STRING_CHARS): New macros.
4797 (DONT_COPY_FLAG): Removed.
4798 (SBLOCK_SIZE, LARGE_STRING_BYTES): New macros.
4799 (struct sdata, struct sblock): New
4800 (struct string_block): Rewritten.
4801 (STRINGS_IN_STRING_BLOCK): New macro.
4802 (oldest_sblock, current_sblock, total_strings, total_free_strings)
4803 (large_sblocks, string_blocks, string_free_list): New variables.
4804 (NEXT_FREE_LISP_STRING, SDATA_OF_STRING, SDATA_SIZE): New macros.
4805 (init_strings): Rewritten.
4806 (allocate_string, allocate_string_data, compact_small_strings)
4807 (free_large_strings, sweep_strings): New functions.
4808 (STRING_BLOCK_SIZE, STRING_BLOCK_OUTSIZE)
4809 (struct string_block_head, current_string_block)
4810 (first_string_block, large_string_blocks, STRING_FULLSIZE)
4811 (STRING_PAD): Removed.
4812 (make_uninit_multibyte_string, make_pure_string): Rewritten.
4813 (Fgarbage_collect): Don't set mark bit in large strings.
4814 (mark_object): Mark strings differently. Mark symbol names
4815 differently.
4816 (survives_gc_p): Test marked strings differently.
427ec082 4817 (gc_sweep): Sweep strings differently, unmark strings in
2e471eb5
GM
4818 symbol names.
4819 (compact_strings): Removed.
4820
42608ba8
EZ
48212000-01-04 Eli Zaretskii <eliz@is.elta.co.il>
4822
4823 * xfaces.c (syms_of_xfaces): defsubr Scolor_gray_p and
4824 Scolor_supported_p even if HAVE_X_WINDOWS is not defined.
4825
e0a09e1a
KH
48262000-01-04 Kenichi Handa <handa@etl.go.jp>
4827
dd9f0750 4828 * fileio.c (Finsert_file_contents): Signal error if visiting file
427ec082 4829 in a non-empty buffer.
dd9f0750 4830
3c0f3b15 4831 * term.c (encode_terminal_code): Fix the previous change.
e0a09e1a 4832
44cd3ae5
GM
48332000-01-03 Gerd Moellmann <gerd@gnu.org>
4834
4835 * xfaces.c (syms_of_xfaces): Change Sface_color_gray_p to
4836 Scolor_gray_p, Sface_color_supported_p to Scolor_supported_p.
4837
4838 * s/hpux9.h (NO_EDITRES): Define even if HAVE_LIBXMU.
4839
c182a70f
EZ
48402000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
4841
4842 * xdisp.c (handle_single_display_prop) [HAVE_WINDOW_SYSTEM]: No
4843 need to test for MSDOS frames.
4844
24480d5b
EZ
48452000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
4846
4847 * dosfns.c (unspecified_colors): Remove.
4848 (msdos_stdcolor_idx): Use global variables unspecified_fg and
4849 unspecified_bg.
4850 (msdos_stdcolor_name): Return strings for unspecified fore- and
4851 back-ground colors.
4852
4853 * xfaces.c (Qunspecified_fg, Qunspecified_bg): Remove.
aaf2320c 4854 (syms_of_xfaces): Remove their staticpro's.
24480d5b
EZ
4855 (tty_color_name): Return Lisp strings for unspecified fore- and
4856 back-ground colors.
4857 (Finternal_set_lisp_face_attribute): Remove the special treatment
4858 for Qunspecified_{f,b}g.
4859 (realize_default_face): Replace Qunspecified_{f,b}g with a Lisp
4860 string.
4861
047f434a
GM
48622000-01-03 Gerd Moellmann <gerd@gnu.org>
4863
4864 * xdisp.c (reseat_at_next_visible_line_start): Position before
4865 newline only if ending up on a newline.
4866 (next_element_from_ellipsis): Return success. Handle case of
4867 displaying no ellipsis. Fix case of ellipsis defined in display
4868 table.
4869 (next_element_from_buffer): Return 0 if next_element_from_ellipsis
4870 returns 0.
4871
d684c676
EZ
48722000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
4873
4874 * xfaces.c (Fcolor_gray_p): Renamed from face-color-gray-p.
4875 (Fcolor_supported_p): Renamed from face-color-supported-p.
4876
5fe1d139
EZ
48772000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
4878
4879 * xfaces.c (tty_defined_color): Pass frame to tty-color-desc. The
4880 list of colors renamed to tty-defined-color-alist.
4881 (tty_color_name): Pass the frame to tty-color-by-index.
4882 (realize_tty_face): tty-color-alist is now a function which
4883 accepts the frame as argument.
4884
4885 * term.c (Ftty_display_color_p): Accept an optional argument
4886 FRAME.
4887
816be8b8
EZ
48882000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
4889
4890 * term.c (insert_glyphs): Pass glyph, not &glyph, to
4891 encode_terminal_code.
4892
b635321e
EZ
48932000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
4894
4895 * dispnew.c (mode_line_string): Support termcap frames as well.
4896
9b784e96
GM
48972000-01-01 Gerd Moellmann <gerd@gnu.org>
4898
27189709
GM
4899 * syntax.c (Fforward_word): Undo previous change.
4900
4901 * editfns.c (Fconstrain_to_field): Don't constrain if
4902 inhibit-field-text-motion is non-nil.
4903 (Fline_beginning_position): Undo previous change.
4904 (Fline_end_position): Ditto.
4905
4906 * syntax.c (Fforward_word): Notice field boundaries only if
4907 inhibit-field-text-motion is nil.
4908
4909 * lisp.h: Add extern declaration for Vinhibit_field_text_motion.
4910
4911 * editfns.c (Vinhibit_field_text_motion): New variable.
4912 (inhibit-field-text-motion): New DEFVAR_LISP.
4913 (Fline_beginning_position, Fline_end_position): Notice field
4914 boundaries only if inhibit-field-text-motion is nil.
4915
45158a91
GM
4916 * xfns.c (x_create_x_image_and_pixmap): Remove parameter FILE.
4917 All calls adjusted.
4918 (x_build_heuristic_mask): Likewise.
4919 (xbm_load_image_from_file): Change error output.
4920 (xbm_load, xpm_load, pbm_load, png_load, jpeg_load, tiff_load)
4921 (gif_load, gs_load, x_kill_gs_process): Ditto.
4922
9b784e96
GM
4923 * xfns.c (gif_load): Avoid sign extension and thus out of bounds
4924 color indices when accessing raster pixels.
63cec32f
GM
4925 (gif_image_p, png_image_p, jpeg_image_p, tiff_image_p): Allow only
4926 one of :file or :data.
4927 (enum pbm_keyword_index): Add PBM_DATA.
4928 (pbm_format): Add :data.
4929 (pbm_image_p): Allow either :file or :data.
4930 (pbm_read_file): New function.
4931 (pbm_scan_number): Rewritten to read from string.
4932 (pbm_load): Support :data.
9b784e96 4933
5ad6a5fb
GM
49341999-12-31 Gerd Moellmann <gerd@gnu.org>
4935
4936 * xfns.c: New image functions adapted to Emacs conventions.
4937 (png_load, tiff_load, jpeg_load, gif_load): Always GCPRO local
4938 variable `file'.
4939
63448a4d
WP
49401999-12-31 William M. Perry <wmperry@aventail.com>
4941
4942 * xfns.c (jpeg_format): Added the :data keyword
4943 (jpeg_image_p): JPEG is valid with :file _or_ :data
4944 (jpeg_memory_src): Defined new JPEG image source to read from a
4945 memory buffer.
4946 (jpeg_load): Pay attention to the :data keyword if specified.
4947 Instantiates a jpeg_memory_src instead of jpeg_stdio_src if
4948 found.
4949 (png_format): Added the :data keyword
4950 (png_image_p): PNG is valid with :file _or_ :data
4951 (png_read_from_memory): New PNG read function to read from a
4952 memory buffer.
4953 (png_load): Pay attention to the :data keyword if specified. Uses
4954 png_set_read_fn() instead of png_init_io() if specified.
4955 (tiff_format): Added the :data keyword for TIFF images.
4956 (tiff_image_p): TIFF is valid with :file _or_ :data
4957 (tiff_read_from_memory): Defined new TIFF I/O functions to read
4958 from a memory buffer.
4959 (tiff_load): Pay attention to the :data keyword if specified.
4960 Uses TIFFClientOpen() instead of TIFFOpen() if specified.
4961 (gif_format): Added the :data keyword
4962 (gif_image_p): GIF is valid with :file _or_ :data
4963 (gif_read_from_memory): New GIF input function to read from a
4964 memory buffer.
c65d14ee 4965 (gif_load): Pay attention to the :data keyword. Uses DGifOpen()
63448a4d
WP
4966 instead of DGifOpenFileName() if specified.
4967
c880678e
GM
49681999-12-31 Gerd Moellmann <gerd@gnu.org>
4969
4970 * xdisp.c (next_element_from_buffer): Change assertion at the end
4971 because it doesn't hold when there's an overlay string at the end
4972 from which we deliver an image.
4973
8ccb9a54
EZ
49741999-12-30 Eli Zaretskii <eliz@is.elta.co.il>
4975
4976 * msdos.c (IT_update_begin): Don't dereference members of struct
4977 window for deleted windows.
4978
12ce2351
GM
49791999-12-30 Gerd Moellmann <gerd@gnu.org>
4980
a915c648
GM
4981 * abbrev.c (Fexpand_abbrev): If expanding an abbrev which has only
4982 a hook, and the hook has a non-nil `no-self-insert' property, let
4983 the return value of the hook specify whether an expansion took
4984 place. If it returns nil, no expansion has been performed.
4985
12ce2351
GM
4986 * xterm.c (x_make_frame_visible): Wait for frame becoming visible
4987 differently.
4988
04ee4f45
EZ
49891999-12-30 Eli Zaretskii <eliz@is.elta.co.il>
4990
4991 * msdos.c (IT_write_glyphs): Track last changes to struct glyph.
4992
7f4bc0c3
EZ
49931999-12-29 Eli Zaretskii <eliz@is.elta.co.il>
4994
4995 * dispnew.c (mode_line_string): Support MS-DOS frames.
4996
dac204bc
GM
49971999-12-29 Gerd Moellmann <gerd@gnu.org>
4998
4999 * eval.c (syms_of_eval): Initialize debugger_may_continue.
5000
7b712ad8
KH
50011999-12-29 Kenichi Handa <handa@etl.go.jp>
5002
5003 * process.c (read_process_output): Fix the args CHARPOS and LENINS
5004 to signal_after_change.
5005
adb9900f
EZ
50061999-12-28 Eli Zaretskii <eliz@is.elta.co.il>
5007
41ad069b
EZ
5008 * msdos.c (dos_set_window_size) [__DJGPP__ > 1]: If the frame
5009 dimensions changed, invalidate the mouse highlight info.
5010 (disable_mouse_highlight, help_echo, previous_help_echo): New
5011 variables.
5012 (IT_set_mouse_pointer, show_mouse_face, clear_mouse_face)
5013 (fast_find_position, IT_note_mode_line_highlight)
5014 (IT_note_mouse_highlight): New functions.
5015 (IT_update_begin): If the redisplay affects the window where the
5016 mouse highlight is, clear the highlight. If the frame where the
5017 highlight was displayed was killed, invalidate the highlight
5018 info.
5019 (IT_update_end): Reset the highlight flag. Reset the mouse
5020 highlight-defer flag.
5021 (IT_frame_up_to_date): New function, if mouse highlight was
5022 deferred due to GC, do it now.
5023 (internal_terminal_init): Initialize mouse-highlight related
5024 members of the_only_x_display. Assign IT_frame_up_to_date to
5025 frame_up_to_date_hook.
5026 (dos_rawgetc): If the mouse moved, update mouse highlight. If
5027 help_echo changed value, generate a HELP_EVENT event.
5028 (syms_of_msdos): Staticpro help_echo and previous_help_echo.
5029
adb9900f
EZ
5030 * msdos.h (struct display_info): New.
5031 (struct x_output): Add the display_info member.
5032 (FRAME_X_DISPLAY_INFO): New macro.
5033
481b5054
GM
50341999-12-28 Gerd Moellmann <gerd@gnu.org>
5035
5036 * xdisp.c (try_window_id): Compute BEG_UNCHANGED and END_UNCHANGED
5037 if MODIFF > 1.
6448a6b3 5038 (dump_glyph_row): Adapt to changes in struct glyph.
481b5054
GM
5039
5040 * buffer.c (modify_overlay): Always compute unchanged info.
5041
a2882b0d
KH
50421999-12-27 Kenichi Handa <handa@etl.go.jp>
5043
5044 * dispextern.h (FACE_FROM_ID): Cast the arg ID to `unsigned'.
5045
89ba5b5f
KH
50461999-12-27 Kenichi Handa <handa@etl.go.jp>
5047
5048 The following changes are to use more bits for face IDs.
5049
5050 * lisp.h (GLYPH): Defined as `int', not `unsigned int'. Now the
5051 lowest 8 bits are single byte character code, the bits above are
5052 face ID.
481b5054 5053 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjusted for the change
89ba5b5f 5054 above.
481b5054
GM
5055 (FAST_MAKE_GLYPH, FSST_GLYPH_FACE): Likewise.
5056 (GLYPH_MASK_REV_DIR, GLYPH_MASK_PADDING): Macros deleted.
89ba5b5f
KH
5057
5058 * charset.h (CHAR_BYTES): Use ((1 << CHARACTERBITS) - 1) instead
5059 of GLYPH_MASK_CHAR.
5060
5061 * charset.c (char_bytes): Use ((1 << CHARACTERBITS) - 1) instead
5062 of GLYPH_MASK_CHAR.
5063
5064 * dispextern.h (struct glyph): Make face_id and padding_p the top
5065 level members. Change members in union `u'.
5066 (GLYPH_EQUAL_P): Check also members face_id and padding_p.
5067 (GLYPH_CHAR_AND_FACE_EQUAL_P): New macro.
5068 (SET_CHAR_GLYPH): Adjusted for the change of struct glyph.
5069 (CHAR_GLYPH_PADDING_P): Likewise.
5070 (GLYPH_FROM_CHAR_GLYPH): Likewise. Always return -1 for multibyte
5071 characters.
5072
481b5054 5073 * dispnew.c (line_hash_code, direct_output_for_insert): Adjusted
89ba5b5f
KH
5074 for the change of struct glyph.
5075 (line_draw_cost): Adjusted for the change of
5076 GLYPH_FROM_CHAR_GLYPH.
5077 (count_match): Use macro GLYPH_CHAR_AND_FACE_EQUAL_P.
5078
5079 * term.c (encode_terminal_code): Adjusted for the change of struct
5080 glyph and GLYPH_FROM_CHAR_GLYPH.
481b5054 5081 (write_glyphs, insert_glyphs, append_glyph): Adjusted for the
89ba5b5f
KH
5082 change of struct glyph.
5083
5084 * xdisp.c: All codes adjusted for the change of struct glyph.
5085
5086 * xterm.c: All codes adjusted for the change of struct glyph.
5087
5bcd116c
KH
50881999-12-27 Kenichi Handa <handa@etl.go.jp>
5089
5090 * composite.h (struct composition): Change the order of declaring
5091 members to reduce the byte size of the structure.
5092
f21b06b7
GM
50931999-12-25 Gerd Moellmann <gerd@gnu.org>
5094
5095 * search.c (looking_at_1): Reset immediate_quit before modifying
5096 global data.
5097
e36557c9
KH
50981999-12-24 Kenichi Handa <handa@etl.go.jp>
5099
5100 * process.c (read_process_output): Fix the arg FROM to
5101 update_compositions.
5102
83c8f461 51031999-12-22 Richard M. Stallman <rms@gnu.org>
f7c9e039
RS
5104
5105 * search.c (Freplace_match): For nonliteral replacement in buffer,
5106 construct all the new text first, then insert all at once.
5107
0b863bd9
DL
51081999-12-22 Dave Love <fx@gnu.org>
5109
5110 * xfns.c (Fx_show_tip): Gcpro `timeout' too.
5111
6d8e8ef3
GM
51121999-12-22 Gerd Moellmann <gerd@gnu.org>
5113
28d7281d
GM
5114 * xfns.c (Fx_create_frame): Move x_default_parameter calls that
5115 lead to size changes to after the X window has been created.
5116
e22ef6eb 5117 * xfaces.c (realize_x_face): Don't use uninitialized local
6d8e8ef3
GM
5118 variable in xassert.
5119
8affcced
KH
51201999-12-22 Kenichi Handa <handa@etl.go.jp>
5121
5122 * xfaces.c (face_color_supported_p): Check by tty_defined_color
6d8e8ef3 5123 only when the frame is not for a window system.
8affcced 5124
f2be1146
GM
51251999-12-22 Gerd Moellmann <gerd@gnu.org>
5126
deca1348
GM
5127 * buffer.c (Fset_buffer_multibyte): Arrange for a thorough
5128 redisplay after changing the multibyteness of a buffer.
5129
f2be1146
GM
5130 * xterm.c (XTread_socket): At the beginning of the loop, pass the
5131 frame's X window to XFilterEvent instead of None because that's
5132 the X window for which the IC was created. This makes dead
5133 accents work when the pointer is not in Emacs' frame.
5134 (XTread_socket) <KeyPress>: Don't call XFilterEvent here.
5135
a744a2ec
DL
51361999-12-20 Dave Love <fx@gnu.org>
5137
5138 * xfns.c (Fx_show_tip): Add missing UNGCPRO.
5139
9e6985ed
GM
51401999-12-19 Gerd Moellmann <gerd@gnu.org>
5141
5142 * eval.c (debugger_may_continue): New variable.
5143 (syms_of_eval): Add a DEFVAR_BOOL for it.
5144 (call_debugger): Bind it.
5145
3b620731
EZ
51461999-12-19 Eli Zaretskii <eliz@is.elta.co.il>
5147
5148 * msdos.c (IT_set_face): Don't swap face colors when highlight or
5149 fp->tty_reverse_p is set, unless the computed colors are identical
5150 to frame colors. Print both original and computed colors to
5151 termscript file.
5152 (IT_write_glyphs): Track the changes in handling of composite
5153 characters.
5154 (IT_set_frame_parameters): Don't set frame colors from
5155 unspecified-fg and unspecified-bg pseudo-colors.
5156
0f9a51c4
DL
51571999-12-17 Dave Love <fx@gnu.org>
5158
5159 * data.c (Fkeywordp): New function.
5160 (syms_of_data): Install it.
5161
363e4e42
EZ
51621999-12-16 Eli Zaretskii <eliz@is.elta.co.il>
5163
5164 * xfaces.c (tty_defined_color): Fix last change.
5165
cfad01b4
GM
51661999-12-15 Gerd Moellmann <gerd@gnu.org>
5167
5168 * xdisp.c (redisplay_window) <optional new window start>: Check
5169 that window start is in [BEGV..ZV].
5170
f9d2fdc4
EZ
51711999-12-15 Eli Zaretskii <eliz@is.elta.co.il>
5172
5173 * dispextern.h (FACE_TTY_DEFAULT_FG_COLOR)
5174 (FACE_TTY_DEFAULT_BG_COLOR): New macros.
5175
5176 * xfaces.c (Qunspecified_fg, Qunspecified_bg): New variables.
5177 (syms_of_xfaces): Initialize and staticpro them.
5178 (tty_defined_color): If the color name is unspecified-fg or
5179 unspecified-bg, return FACE_TTY_DEFAULT_FG_COLOR and
5180 FACE_TTY_DEFAULT_BG_COLOR, respectively, as the pixel value.
5181 (tty_color_name): If the color pixel value is either
5182 FACE_TTY_DEFAULT_FG_COLOR or FACE_TTY_DEFAULT_BG_COLOR, return
5183 Qunspecified_fg or Qunspecified_bg, respectively.
5184 (Finternal_set_lisp_face_attribute): Allow values Qunspecified_fg
5185 and Qunspecified_bg for foreground and background colors.
5186 (realize_default_face): If the foreground and background colors
5187 are not specified, default to Qunspecified_fg and Qunspecified_bg.
5188 (realize_tty_face): By default, set the face colors to
5189 FACE_TTY_DEFAULT_FG_COLOR and FACE_TTY_DEFAULT_BG_COLOR.
5190 [MSDOS]: Handle FACE_TTY_DEFAULT_FG_COLOR and
5191 FACE_TTY_DEFAULT_BG_COLOR when face colors are not defined.
5192 Reverse the colors if the default colors were reversed.
5193
5194 * dispnew.c (init_display): Initialize the frame pixels of the
5195 initial frame to FACE_TTY_DEFAULT_FG_COLOR and
5196 FACE_TTY_DEFAULT_BG_COLOR.
5197
5198 * term.c (turn_on_face): If the default fore- and background
5199 colors are reversed, enter inverse video mode. Don't send color
5200 escape sequences for unspecified foreground and background colors.
5201 (turn_off_face): Handle unspecified-fg and unspecified-bg colors.
5202
5203 * dosfns.c (unspecified_colors): New variable.
5204 (msdos_stdcolor_idx): Handle unspecified-fg and unspecified-bg
5205 color names, return FACE_TTY_DEFAULT_FG_COLOR and
5206 FACE_TTY_DEFAULT_BG_COLOR, respectively.
5207 (msdos_stdcolor_name): Handle FACE_TTY_DEFAULT_FG_COLOR and
5208 FACE_TTY_DEFAULT_BG_COLOR, return Qunspecified_fg and
5209 Qunspecified_bg, respectively.
5210
5211 * msdos.c (IT_set_face): Support FACE_TTY_DEFAULT_FG_COLOR and
5212 FACE_TTY_DEFAULT_BG_COLOR as pixel values.
5213
e19539f1
KH
52141999-12-15 Kenichi Handa <handa@etl.go.jp>
5215
5216 * coding.c (code_convert_region): Fix the secoding arg to
5217 update_compositions.
5218
5ec14d3c
KH
52191999-12-15 Kenichi Handa <handa@etl.go.jp>
5220
5221 The following changes are for the new composition mechanism. We
5222 have deleted `composition' charset and composite characters,
5223 instead introduced a special text property `composition'.
5224
5225 * Makefile.in (INTERVAL_SRC): Include composite.h.
5226 (INTERVAL_OBJ): Include composite.o.
5227 (SOME_MACHINE_OBJECTS): Include composite.o.
5228 (casefiddle.o) (dispnew.o) (indent.o) (process.o) (search.o)
5229 (syntax.o) (window.o) (xdisp.o) (xfaces.o) (xterm.o) (print.o):
5230 Depend on composite.h.
5231 (doc.o): Depend on charset.h.
5232 (keyboard.o) (textprop.o) (intervals.o): Depend on INTERVAL_SRC.
5233 (composite.o): New target.
427ec082 5234
5ec14d3c
KH
5235 * alloc.c (Fmake_string): Adjusted for the change of CHAR_STRING.
5236
5237 * callproc.c (Fcall_process): Call code_convert_string to encode
5238 arguments. Use CODING_REQUIRE_DECODING to check if the process
5239 output should be decoded.
5240
5241 * casefiddle.c: Include composite.h.
5242 (casify_object): Use MAX_MULTIBYTE_LENGTH to allocate memory for a
5243 multibyte character. Adjusted for the change of CHAR_STRING.
5244 (casify_region): Likewise. Call update_compositions.
5245
5246 * category.h (CATEGORY_SET): Delete codes for a composite
5247 character.
5248
5249 * category.c (word_boundary_p): Delete codes for a composite
5250 character.
5251 (Fmake_category_table): New function.
5252 (syms_of_category): Defsubr it.
5253
5254 * ccl.c (CCL_WRITE_CHAR): Adjusted for the change of CHAR_STRING.
5255 (ccl_driver): Delete codes for a composite character.
5256
5257 * charset.h: In this entry, just `Modified' means that codes for a
5258 composite character is deleted.
5259 (LEADING_CODE_COMPOSITION) (CHARSET_COMPOSITION)
5260 (charset_composition) (MIN_CHAR_COMPOSITION)
5261 (MAX_CHAR_COMPOSITION) (GENERIC_COMPOSITION_CHAR)
5262 (COMPOSITE_CHAR_P) (MAKE_COMPOSITE_CHAR) (COMPOSITE_CHAR_ID)
5263 (PARSE_COMPOSITE_SEQ) (PARSE_CHARACTER_SEQ): Deleted.
5264 (MAX_CHAR) (CHARSET_VALID_P) (CHARSET_DEFINED_P) (CHARSET_AT)
5265 (FIRST_CHARSET_AT) (SAME_CHARSET_P) (MAKE_NON_ASCII_CHAR)
5266 (PARSE_MULTIBYTE_SEQ) (SPLIT_NON_ASCII_CHAR) (CHAR_PRINTABLE_P):
5267 Modified.
5268 (SPLIT_STRING): Call split_string, not split_non_ascii_string.
5269 (CHAR_STRING): Delete WORKBUF argument. Call char_string, not
5270 non_ascii_char_to_string.
5271 (STRING_CHAR): Call string_to_char, not string_to_non_ascii_char.
5272 (STRING_CHAR_AND_LENGTH): Likewise.
5273 (FETCH_CHAR_ADVANCE): New macro.
5274 (MAX_COMPONENT_COUNT) (struct cmpchar_info): Deleted.
5275 (MAX_MULTIBYTE_LENGTH): New macro.
5276 (MAX_LENGTH_OF_MULTI_BYTE_FORM): Deleted.
5277 (find_charset_in_str): Argument adjusted.
5278 (CHAR_LEN): Modified.
427ec082 5279
5ec14d3c
KH
5280 * charset.c: In this entry, just `Modified' means that codes for a
5281 composite character is deleted.
5282 (Qcomposition) (leading_code_composition)
5283 (charset_composition) (min_composite_char) (cmpchar_table)
5284 (cmpchar_table_size) (n_cmpchars): Deleted.
5285 (SPLIT_COMPOSITE_SEQ): Deleted.
5286 (SPLIT_MULTIBYTE_SEQ): Modified.
5287 (char_to_string): Renamed from non_ascii_char_to_string.
5288 Modified.
5289 (string_to_char): Renamed from string_to_non_ascii_char.
5290 (split_string): Renamed from split_non_ascii_string.
5291 (char_printable_p) (Fsplit_char)
5292 (Ffind_charset_region) (Ffind_charset_string) (char_valid_p)
5293 (char_bytes) (Fchar_width) (strwidth): Modified.
5294 (find_charset_in_str): Argument CMPCHARP deleted. Modified.
5295 (Fstring): Adjusted for the change of CHAR_STRING. Modified.
5296 (hash_string) (CMPCHAR_HASH_TABLE_SIZE) (cmpchar_hash_table)
5297 (CMPCHAR_HASH_SIZE) (CMPCHAR_HASH_USED) (CMPCHAR_HASH_CMPCHAR_ID)
5298 (str_cmpchar_id) (cmpchar_component) (Fcmpcharp)
5299 (Fcmpchar_component) (Fcmpchar_cmp_rule) (Fcmpchar_cmp_rule_p)
5300 (Fcmpchar_cmp_count): Deleted.
5301 (Fcompose_string): Implemented by Emacs Lisp in composite.el.
5302 (init_charset_once): Modified.
5303 (syms_of_charset): Modified.
5304
5305 * cmds.c (internal_self_insert): Adjusted for the change of
5306 CHAR_STRING.
5307
5308 * coding.h (emacs_code_class_type): Delete the member
5309 EMACS_leading_code_composition.
5310 (COMPOSING_NO) (COMPOSING_WITH_RULE_HEAD) (COMPOSING_NO_RULE_HEAD)
5311 (COMPOSING_WITH_RULE_TAIL) (COMPOSING_NO_RULE_TAIL)
5312 (COMPOSING_WITH_RULE_RULE) (COMPOSING_HEAD_P)
5313 (COMPOSING_WITH_RULE_P): Macros deleted.
5314 (COMPOSITION_DATA_SIZE) (COMPOSITION_DATA_MAX_BUNCH_LENGTH): New
5315 macros.
5316 (struct composition_data): New structure.
5317 (CODING_FINISH_INSUFFICIENT_CMP): New macro.
5318 (struct coding_system): New members composition_rule_follows,
5319 cmp_data, cmp_data_start, cmp_data_index.
5320 (coding_save_composition) (coding_free_composition_data)
5321 (coding_adjust_composition_offset): Extern them.
5322
5323 * coding.c: Include composite.h.
5324 (DECODE_CHARACTER_ASCII): Don't handle composition here.
5325 (DECODE_CHARACTER_DIMENSION1): Likewise. Don't check the validity
5326 of multibyte code here.
5327 (DECODE_CHARACTER_DIMENSION2): Likewise.
5328 (detect_coding_emacs_mule): Change the case label from
5329 EMACS_leading_code_composition to 0x80.
5330 (detect_coding_iso2022): Handle new composition sequence.
5331 (DECODE_ISO_CHARACTER): Likewise.
5332 (check_composing_code): Deleted.
5333 (coding_allocate_composition_data): New function.
5334 (CODING_ADD_COMPOSITION_START) (CODING_ADD_COMPOSITION_END)
5335 (CODING_ADD_COMPOSITION_COMPONENT) (DECODE_COMPOSITION_START)
5336 (DECODE_COMPOSITION_END) (DECODE_COMPOSITION_RULE): New macros.
5337 (decode_coding_iso2022): Handle new composition sequence.
5338 (ENCODE_ISO_CHARACTER): Don't check composition here.
5339 (ENCODE_COMPOSITION_RULE) (ENCODE_COMPOSITION_START): New macros.
5340 (ENCODE_COMPOSITION_NO_RULE_START)
5341 (ENCODE_COMPOSITION_WITH_RULE_START): Deleted.
5342 (ENCODE_COMPOSITION_END): Handle new composition sequence.
5343 (ENCODE_COMPOSITION_FAKE_START): New macro.
5344 (encode_coding_iso2022): Handle new composition sequence.
5345 (ENCODE_SJIS_BIG5_CHARACTER): Delete superfluous `;' at the tail.
5346 (encode_coding_sjis_big5): Ignore composition.
5347 (setup_coding_system): Initialize new members of struct
5348 coding_system. Enable composition only when the coding system has
5349 `composition' property t.
5350 (coding_free_composition_data) (coding_adjust_composition_offset)
5351 (coding_save_composition) (coding_restore_composition): New
5352 functions.
5353 (code_convert_region): Call coding_save_composition for encoding
5354 and coding_allocate_composition_data for decoding. Don't skip
5355 ASCII characters if we handle composition on encoding. Call
5356 signal_after_change with Check_BORDER.
5357 (code_convert_string): Call coding_save_composition for encoding
5358 and coding_allocate_composition_data for decoding. Don't skip
5359 ASCII characters if we handle composition on encoding.
5360 (code_convert_string1): Set Vlast_coding_system_used after calling
5361 code_convert_string.
5362 (code_convert_string_norecord): Disable composition.
5363 (Fset_terminal_coding_system_internal): Likewise.
5364 (Fset_safe_terminal_coding_system_internal): Likewise.
5365 (Fset_keyboard_coding_system_internal): Likewise.
5366 (init_coding_once): Set emacs_code_class[0x80] to
5367 EMACS_invalid_code.
5368
5369 * composite.h: New file.
5370
5371 * composite.c: New file.
5372
5373 * data.c (Faref): Delete codes for a composite character..
5374 (Faset): Likewise. Adjusted for the change of CHAR_STRING.
5375
5376 * dispextern.h (enum glyph_type): New member COMPOSITE_GLYPH.
5377 (struct glyph): Add new sub-structure cmp to the union `u'.
5378 (enum display_element_type): New member IT_COMPOSITION.
5379 (enum prop_idx): New member COMPOSITION_PROP_IDX.
5380 (struct it): New members cmp_id, cmp_len.
5381
5382 * dispnew.c (direct_output_forward_char): Check point moving into
5383 or out of a composition. If so, give up direct method.
5384
5385 * doprnt.c (doprnt1): Adjusted for the change of CHAR_STRING.
5386
5387 * editfns.c (Fchar_to_string): Adjusted for the change of
5388 CHAR_STRING.
5389 (general_insert_function): Likewise.
5390 (Finsert_char): Likewise.
5391 (Fsubst_char_in_region): Likewise. Call update_compositions.
5392 (Ftranslate_region): Call update_compositions.
5393 (Ftranspose_regions): Call update_compositions.
5394
5395 * emacs.c (main): Call syms_of_composite.
5396
5397 * fileio.c (Fsubstitute_in_file_name): Adjusted for the change of
5398 CHAR_STRING.
5399 (Finsert_file_contents): Set Vlast_coding_system_used before
5400 calling signal_after_change. Call update_compositions if some
5401 texts are inserted..
5402 (Fwrite_region): Adjusted for the change of a_write and e_write.
5403 (a_write): Argument changed. Work based on character position,
5404 not byte position.
5405 (e_write): Argument changed. Handle new way of composition.
5406
5407 * fns.c (Flength): The length of char-table is MAX_CHAR.
5408 (concat): Adjusted for the change of CHAR_STRING.
5409 (Ffillarray): Adjusted for the change of CHAR_STRING.
5410 (Fset_char_table_default): Delete codes for a composite character.
5411 (hash_put): Return hash index.
5412
5413 * fontset.h (struct font_info): New member vertical_centering.
5414 (Vvertical_centering_font_regexp): Extern it.
5415
5416 * fontset.c (Vvertical_centering_font_regexp): New variable.
5417 (syms_of_fontset): Declare it as a Lisp variable and initialize.
5418 Set Vignore_relative_composition to nil.
5419 (fs_load_font): Initialize `vertical_centering' of struct
5420 font_info.
5421
5422 * indent.c (check_composition): New function.
5423 (MULTIBYTE_BYTES_WIDTH): Call STRING_CHAR_AND_LENGTH with
5424 MAX_MULTIBYTE_LENGTH, not MAX_LENGTH_OF_MULTI_BYTE_FORM.
5425 (current_column_1): Handle new way of composition.
5426 (Fmove_to_column): Likewise.
5427 (compute_motion): Likewise.
5428
5429 * insdel.c (copy_text): Adjusted for the change of CHAR_STRING.
5430 (insert_char): Likewise.
5431 (insert): Call update_compositions.
5432 (insert_and_inherit): Likewise.
5433 (insert_before_markers): Likewise.
5434 (insert_before_markers_and_inherit): Likewise.
5435 (insert_from_string): Likewise.
5436 (insert_from_string_before_markers): Likewise.
5437 (insert_from_buffer): Likewise.
5438 (replace_range): Likewise.
5439 (count_combining_composition): Deleted.
5440 (count_combining_before): Delete codes for a composite character.
5441 (count_combining_after): Likewise.
5442 (del_range_1): Call update_compositions.
5443 (del_range_byte): Likewise.
5444 (del_range_both): Likewise.
5445 (Fcombine_after_change_execute): Likewise.
5446
5447 * intervals.h: Include composite.h.
5448 (get_property_and_range): Extern it.
5449 (Vtext_property_default_nonsticky): Extern it.
427ec082 5450
5ec14d3c
KH
5451 * intervals.c (adjust_intervals_for_insertion): To check stickines
5452 of properties, pay attention to text-property-default-nonsticky.
5453 (merge_properties_sticky): Likewise.
5454 (get_property_and_range): New function.
5455
5456 * keyboard.c (Vdisable_point_adjustment): New variable.
5457 (Vglobal_disable_point_adjustment): New variable.
5458 (syms_of_keyboard): Declare them as Lisp variables.
5459 (command_loop_1): Check them and call adjust_point_for_property if
5460 necessary.
5461 (adjust_point_for_property): New function.
5462
5463 * keymap.c (push_key_description): Adjusted for the change of
5464 CHAR_STRING.
5465 (Ftext_char_description): Likewise.
5466
5467 * lisp.h (QCtest, QCweakness, Qequal): Extern them.
5468 (hash_put): Adjusted for the change of the definition.
5469 (signal_after_change): Likewise.
5470 (check_point_in_composition): Extern it.
5471
5472 * lread.c (readchar): Adjusted for the change of CHAR_STRING.
5473 Delete a code that handles an invalid too-long multibyte sequence
5474 because we are now sure that we never encounter with such a
5475 sequence.
5476 (read_multibyte): Use macro MAX_MULTIBYTE_LENGTH, not
5477 MAX_LENGTH_OF_MULTI_BYTE_FORM.
5478 (init_obarray): Likewise.
5479 (read1): Likewise. Adjusted for the change of CHAR_STRING.
5480
5481 * print.c (printchar): Adjusted for the change of CHAR_STRING.
5482
5483 * process.c: Include composite.h.
5484 (read_process_output): Call update_compositions.
5485
5486 * regex.c (regex_compile): Adjusted for the change of CHAR_STRING.
5487
5488 * search.c (search_buffer): Adjusted for the change of CHAR_STRING.
5489
5490 * syntax.h (SYNTAX_ENTRY_INT): Delete codes for a composite
5491 character.
5492
5493 * term.c (encode_terminal_code): Delete codes for a composite
5494 character. Adjusted for the change of CHAR_STRING.
5495 (produce_glyphs): When called, it->what can be IT_COMPOSITION.
5496 Delete codes for a composite character.
5497
5498 * textprop.c (Vtext_property_default_nonsticky): New variable
5499 (syms_of_textprop): Declare it as a Lisp variable.
5500
5501 * window.c (Frecenter): Clear all caches of compositions.
5502
5503 * xdisp.c (it_props): Add an entry for composition.
5504 (face_before_or_after_it_pos): For composition, check face of a
5505 character after the composition.
5506 (handle_composition_prop): New function.
5507 (get_next_display_element): Adjusted for the change of
5508 CHAR_STRING.
5509 (set_iterator_to_next): Handle the case that it->method ==
5510 next_element_from_composition.
5511 (next_element_from_composition): New function.
5512 (message_dolog): Adjusted for the change of CHAR_STRING.
5513 (set_message_1): Likewise.
5514 (check_point_in_composition): New function.
5515 (reconsider_clip_changes): If point moved into or out of
5516 composition, set b->clip_changed to 1 to force updating of the
5517 screen.
5518 (disp_char_vector): Delete codes for a composite character.
5519 (decode_mode_spec_coding): Adjusted for the change of CHAR_STRING.
5520
5521 * xfaces.c (choose_face_fontset_font): Delete codes for a
5522 composite character.
5523 (realize_x_face): Likewise. Change a place to set local variable
5524 `f' to avoid a bug of GCC 2.8.1 on Solaris.
5525
5526 * xfns.c: Include intervals.h.
5527 (syms_of_xfns): Make `display' property nonsticky by default.
5528
5529 * xselect.c (lisp_data_to_selection_data): Adjusted for the change
5530 for find_charset_in_str.
5531
5532 * xterm.h (struct x_output): Change member font_baseline to
5533 baseline_offset.
5534
5535 * xterm.c (x_append_glyph): Setup members of struct glyph properly
5536 for composition.
5537 (x_append_composite_glyph): New function.
5538 (VCENTER_BASELINE_OFFSET): New macro.
5539 (x_produce_glyphs): If it->what == IT_COMPOSITION, setup members
5540 of struct it for the composition. Cache pixel offsets in the
5541 struct composition. Delete codes for a composite character.
5542 Handle Vignore_relative_composition in composition code.
5543 (struct glyph_string): Delete member cmpcharp, add new member cmp.
5544 (x_set_cursor_gc): Check s->cmp, not s->cmpcharp.
5545 (x_compute_glyph_string_overhangs): Likewise.
5546 (x_get_glyph_overhangs): Delete codes for a composite character.
5547 (x_right_overwritten): Check s->cmp, not s->cmpcharp.
5548 (x_draw_glyph_string_background): Likewise. Delete codes for
5549 checking s->gidx for a composition.
5550 (x_draw_glyph_string_foreground): Delete code for a composite
5551 character.
5552 (x_draw_composite_glyph_string_foreground): New function.
5553 (x_draw_glyph_string_box): Check s->cmp, not s->cmpcharp.
5554 (x_draw_glyph_string): Handle the case of COMPOSITE_GLYPH.
5555 (struct work): Deleted.
5556 (x_fill_composite_glyph_string): Argument changed. Mostly
5557 rewritten for that.
5558 (x_fill_glyph_string): Don't check CHARSET_COMPOSITION.
5559 (BUILD_CHAR_GLYPH_STRINGS): Don't handle composition here.
5560 (BUILD_COMPOSITE_GLYPH_STRING): New macro.
5561 (BUILD_GLYPH_STRINGS): For composition, call
5562 BUILD_COMPOSITE_GLYPH_STRING.
5563 (x_new_font): Initialize f->output_data.x->baseline_offset, not
5564 f->output_data.x->font_baseline.
5565
c3c60f13
GM
55661999-12-14 Gerd Moellmann <gerd@gnu.org>
5567
5568 * xterm.c (show_mouse_face): Don't use updated_area, use
5569 TEXT_AREA.
5570
83c8f461 55711999-12-12 Richard M. Stallman <rms@gnu.org>
c838eb57
RS
5572
5573 * minibuf.c (Fall_completions): Doc fix.
5574
83c8f461 55751999-12-12 Richard M. Stallman <rms@gnu.org>
c838eb57
RS
5576
5577 * macros.c (Fstart_kbd_macro): Handle case where last-kbd-macro
5578 has been changed by the Lisp code.
5579
d8eccf12
GM
55801999-12-12 Gerd Moellmann <gerd@gnu.org>
5581
5582 * xfns.c: Indentation fixes.
5583
ae56feae
SM
55841999-12-10 Stefan Monnier <monnier@cs.yale.edu>
5585
5586 * xterm.c (x_initialize): Only setup xaw3d_* if they've been declared.
5587
dfa1c6ae
GM
55881999-12-10 Gerd Moellmann <gerd@gnu.org>
5589
5590 * frame.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
5591 [!MSDOS && !WINDOWSNT && !macintosh]: Moved here from xterm.h.
5592
5593 * xterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Moved
5594 to frame.h.
5595
ec18280f
SM
55961999-12-09 Stefan Monnier <monnier@cs.yale.edu>
5597
5598 * keyboard.c (Qratio): New symbol.
5599 (scroll_bar_parts): Add `Qratio' to it.
5600 (syms_of_keyboard): Init `Qratio'.
5601 * termhooks.h (scroll_bar_part): Add `scroll_bar_move_ratio'.
5602 * xterm.c (#includes): Allow compilation with only Xaw.
5603 (xaw3d_arrow_scroll, xaw3d_pick_top): New variables.
5604 (xt_action_hook): Replace XAW3D by XAW.
5605 (xaw3d_jump_callback): Renamed to xaw_jump_callback.
5606 (xaw_jump_callback): Renamed from xaw3d_jump_callback.
5607 Determine epsilon dynamically and don't try to be too clever.
5608 (xaw3d_scroll_callback): Renamed to xaw_scroll_callback.
5609 (xaw_scroll_callback): Renamed from xaw3d_scroll_callback.
5610 Handle both Xaw3d with arrow-scrollbars and with Xaw-style
5611 scrollbar (using `ratio').
5612 (x_create_toolkit_scroll_bar): Try to detect which style of Xaw3d
5613 scrollbar we have so as to set it up more optimally and to fix
5614 xaw3d_arrow_scroll and xaw3d_pick_top.
5615 (x_set_toolkit_scroll_bar_thumb): Try to maintain 2 spare pixels at the
5616 bottom of the Xaw3d scrollbar, to work around its tendency to refuse
5617 shrinking the thumb. Also make sure that `XawScrollbarSetThumb'
5618 is not ignored, using a major gross hack.
5619 (x_initialize): Init default values for xaw3d_arrow_scroll and
5620 xaw3d_pick_top.
5621
83b6d970
DL
56221999-12-09 Dave Love <fx@gnu.org>
5623
5624 * frame.h: (PIX_TYPE) [! HAVE_X_WINDOWS]: Define PIX_TYPE.
5625
3648c842
GM
56261999-12-08 Gerd Moellmann <gerd@gnu.org>
5627
5628 * eval.c: Remove conditional compilation on `standalone'.
5629 (call_debugger): When entering the debugger while redisplaying,
5630 reset redisplaying_p, and go back to the top-level if the debugger
5631 returns.
5632
05e71564
GM
56331999-12-07 Gerd Moellmann <gerd@gnu.org>
5634
5635 * xfaces.c (x_set_menu_resources_from_menu_face): Make sure
5636 basic faces are realized before trying to use face `menu'.
5637
5638 * window.c (delete_window): Block input for the time window
5639 matrices are being changed.
5640
b46cd536
DL
56411999-12-07 Dave Love <fx@gnu.org>
5642
5643 * lread.c (Fintern_soft): Fix newlines in doc string.
5644
96acb1f7
GM
56451999-12-07 Alexandre Oliva <oliva@dcc.unicamp.br>
5646
5647 * unexelf.c: Include <syms.h>, not <sym.h> on IRIX. Removed
5648 duplicate definition of ElfW.
5649 (find_section): Copied from unexsgi.c.
5650 (unexec): Use find_section. Adjust whitespace. Initialize
5651 new_data2_offset based on old_data, not sbss (this fixes a bug on
5652 IRIX6). Change #ifdef __mips to __sgi, since it's IRIX-specific.
5653 Adjust test for presence of .mdebug section to the new return
5654 value of find_section.
427ec082 5655
96acb1f7
GM
56561999-12-07 Gerd Moellmann <gerd@gnu.org>
5657
5658 * unexelf.c: Merge changes from 20.5.
5659 (unexec): Handle .lit4 and .lit8 unconditionally.
5660
5661 * m/iris4d.h (UNEXEC) [USG5_4]: Use unexelf.o instead of
5662 unexsgi.o again.
427ec082 5663
96acb1f7
GM
5664 * m/iris5d.h (UNEXEC): Likewise.
5665
7dae4502
SM
56661999-12-06 Stefan Monnier <monnier@cs.yale.edu>
5667
5668 * editfns.c (Fdelete_and_extract_region): New function.
05e71564
GM
5669 (syms_of_editfns): Register it.
5670 * insdel.c (del_range): Update del_range_1 call.
7dae4502
SM
5671 (del_range_1, del_range_2): Add a ret_string argument to
5672 request that the deleted text be returned.
5673 (del_range_byte, del_range_both): Update del_range_2 call.
05e71564 5674 * lisp.h (del_range_1, del_range_2): Change prototype
7dae4502
SM
5675 * casefiddle.c (casify_region): Update del_range_1 call.
5676 * coding.c (code_convert_region): Update del_range_2 call.
5677 * fileio.c (Finsert_file_contents): Update del_range_2 call.
5678
397e4fae
GM
56791999-12-06 Gerd Moellmann <gerd@gnu.org>
5680
5681 * xfaces.c (set_lface_from_font_name): Fix incomplete merge.
5682
3d973f71
GM
56831999-12-04 Hrvoje Niksic <hniksic@iskon.hr>
5684
5685 * lread.c (Fintern_soft): Accept a symbol argument.
427ec082 5686
740e985f
EZ
56871999-12-06 Eli Zaretskii <eliz@is.elta.co.il>
5688
5689 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 40000.
809f3d51
EZ
5690
5691 * insdel.c (adjust_markers_for_delete): Fix last change.
5692
2d764c78
EZ
56931999-12-06 Eli Zaretskii <eliz@is.elta.co.il>
5694
5695 Changes for automatic remapping of X colors on terminal frames:
5696
5697 * xfaces.c (XColor) [!HAVE_X_WINDOWS]: Provide a typedef for non-X
5698 frames.
5699 (Vface_tty_color_alist): Remove.
5700 (tty_defined_color): New function.
5701 (defined_color): Rewrite to support any type of frame.
5702 (tty_color_name): New function.
5703 (face_color_supported_p, Fface_color_gray_p,
5704 Fface_color_supported_p): Support non-X frames.
5705 (load_color): Enclose the color name in quotes, in the log
5706 messages. Remove DOS-specific version of load_color.
5707 (realize_tty_face): Take the supported colors from
5708 tty-color-alist. Support translation of X colors to the closest
5709 tty color, for both MSDOS and tty frames.
5710 [MSDOS]: Don't invert face colors if they were taken from the
5711 frame colors.
5712 (Fface_register_tty_color, Fface_clear_tty_colors): Remove.
5713
5714 * frame.h (struct x_output) [!MSDOS, !WINDOWSNT, !HAVE_X_WINDOWS]:
5715 Define a mostly empty surrogate.
5716 (tty_display): Declare.
5717
5718 * frame.c (make_terminal_frame) [!macintosh]: Don't use
5719 tty_display.
5720 (Fframe_parameters): Don't invert colors of non-FRAME_WINDOW_P
5721 frames when the frame's param_alist includes 'reverse.
5722 (tty_display): Define.
5723 (make_terminal_frame) [!MSDOS]: Assign &tty_display to the
5724 output_data.x member.
5725 (Fframe_parameters): Return foreground and background color names
5726 on tty frames as well, in addition to MSDOS frames.
5727
5728 * msdos.h (DisplayWidth, DisplayHeight): Changes for Lisp_Object
5729 selected_frame.
5730 (struct x_output): Remove unused members; document who uses each
5731 member.
5732 (FRAME_PARAM_FACES, FRAME_N_PARAM_FACES, FRAME_DEFAULT_PARAM_FACE,
5733 FRAME_MODE_LINE_PARAM_FACE, FRAME_COMPUTED_FACES,
5734 FRAME_N_COMPUTED_FACES, FRAME_SIZE_COMPUTED_FACES,
5735 FRAME_DEFAULT_FACE, FRAME_MODE_LINE_FACE, unload_color): Remove
5736 unused macro definintions.
5737
5738 * msdos.c (IT_set_frame_parameters): Don't call
5739 recompute_basic_faces, the next redisplay will, anyway.
5740 (x_current_display): Remove unused variable.
5741 Many functions: changes for Lisp_object selected_frame.
5742 (IT_set_face): If the tty_reverse_p flag is set for the face,
5743 reverse the foreground and background colors.
5744 (Fmsdos_remember_default_colors): New function.
5745 (syms_of_msdos): Defsubr it.
5746 (IT_set_frame_parameters): Use initial_screen_colors[] when
5747 creating a new frame. If the frame parameters include 'reverse,
5748 swap the foreground and background colors.
5749 (internal_terminal_init): Initialize initial_screen_colors to -1.
5750 (syms_of_msdos): Add DEFVAR_BOOL for x-stretch-cursor, to shut up
5751 cus-start.el.
5752
5753 * Makefile.in (lisp, shortlisp): Add lisp/term/tty-colors.elc.
5754
5755 * xfns.c (x_defined_color): Rename from defined_color. All
5756 callers changed.
5757 (Fxw_color_defined_p): Renamed from Fx_color_defined_p;
5758 all callers changed.
5759 (Fxw_color_values): Renamed from Fx_color_values; all callers
5760 changed.
5761 (Fxw_display_color_p): Renamed from Fx_display_color_p; all
5762 callers changed.
5763 (x_window_to_frame, x_any_window_to_frame,
5764 x_non_menubar_window_to_frame, x_menubar_window_to_frame,
5765 x_top_window_to_frame): Use !FRAME_X_P instead of
5766 f->output_data.nothing.
5767 * xterm.h (x_defined_color): Rename from defined_color.
5768
5769 * w32fns.c (x_window_to_frame): Use FRAME_W32_P instead of
5770 f->output_data.nothing.
5771 (Fxw_color_defined_p): Renamed from Fx_color_defined_p;
5772 all callers changed.
5773 (Fxw_color_values): Renamed from Fx_color_values; all callers
5774 changed.
5775 (Fxw_display_color_p): Renamed from Fx_display_color_p; all
5776 callers changed.
5777
5778 * dispextern.h (tty_color_name): Add prototype.
5779
5780 * xmenu.c (menubar_id_to_frame): Use FRAME_WINDOW_P instead of
5781 f->output_data.nothing.
5782 * w32menu.c (menubar_id_to_frame): Likewise.
5783 * w32term.h (w32_output): Declare.
5784
5785 * dosfns.c (Qmsdos_color_translate): Remove.
5786 (msdos_stdcolor_name): Now returns a Lisp_Object.
5787 * dosfns.h (Qmsdos_color_translate): Remove.
5788
5789 * s/msdos.h (INTERNAL_TERMINAL): Add entries for color support.
5790
b3e5232e
KH
57911999-12-06 Kenichi Handa <handa@etl.go.jp>
5792
5793 * fileio.c (decide_coding_unwind): Renamed from
5794 set_auto_coding_unwind.
5795 (Finsert_file_contents): Make single unwind protect to call both
5796 Vset_auto_coding_function and Ffind_operation_coding_system.
5797
5798 * insdel.c (adjust_markers_for_delete): Make it non-static.
5799
db0e466c
SM
58001999-12-04 Stefan Monnier <monnier@cs.yale.edu>
5801
5802 * regex.c (regex_compile): Recognize *?, +? and ?? as non-greedy
5803 operators and handle them properly.
5804 * regex.h (RE_ALL_GREEDY): New option.
5805 (RE_UNMATCHED_RIGHT_PAREN_ORD): Moved to the end where alphabetic
5806 sorting would put it.
5807 (RE_SYNTAX_AWK, RE_SYNTAX_GREP, RE_SYNTAX_EGREP)
5808 (_RE_SYNTAX_POSIX_COMMON): Use the new option to keep old behavior.
5809
22afa6e8
DL
58101999-12-04 Dave Love <d.love@dl.ac.uk>
5811
5812 * m/arm.h: New file.
5813
40afb967
DL
58141999-12-03 Dave Love <fx@gnu.org>
5815
5816 * editfns.c (Fmessage_or_box): Use use_dialog_box.
5817
ddf8eff5
GM
58181999-12-02 Gerd Moellmann <gerd@gnu.org>
5819
5820 * s/usg5-4.h (LIBS_SYSTEM): Add -lgen because that's needed
5821 for building with Motif.
5822
5823 * m/iris4d.h (UNEXEC) [USG5_4]: Use unexsgi.o instead of
5824 unexelf.o.
427ec082 5825
ddf8eff5
GM
5826 * m/iris5d.h (UNEXEC): Use unexsgi.o instead of unexelf.o.
5827
fa09a82d
DL
58281999-12-01 Dave Love <fx@gnu.org>
5829
5830 * emacs.c (main): Set LANG=C iff AX3_2 defined.
5831
ddf8eff5
GM
58321999-11-28 Gerd Moellmann <gerd@gnu.org>
5833
5834 * systime.h (EMACS_TIME_CMP, EMACS_TIME_EQ, EMACS_TIME_NE)
5835 (EMACS_TIME_GT, EMACS_TIME_GE, EMACS_TIME_LT,EMACS_TIME_LE): New
5836 macros.
5837
5838 * config.in (HAVE_SETITIMER, HAVE_UALARM): New.
5839
fa09a82d
DL
58401999-11-28 eliz <eliz@dlpx1>
5841
5842 * emacs.c (synchronize_locale): Avoid compiler warnings about
5843 pointer type mismatch.
5844
f9632fc8
GM
58451999-11-28 Gerd Moellmann <gerd@gnu.org>
5846
717d0121
GM
5847 * window.c (Fwindow_end): Don't call temp_set_pt_both with
5848 out of range position.
5849
427ec082 5850 * xterm.c (XTread_socket) <ClientMessage, Xatom_Scrollbar>:
f9632fc8
GM
5851 Switch off busy-cursor by setting inhibit_busy_cursor to 2.
5852
59c65f1e
EZ
58531999-11-28 Eli Zaretskii <eliz@is.elta.co.il>
5854
613a8346
EZ
5855 * charset.c (Fmake_char_internal): Print the charset ID when
5856 signalling an error.
5857
59c65f1e
EZ
5858 * emacs.c (synchronize_locale): Avoid compiler warnings about
5859 pointer type mismatch.
5860
83c8f461 58611999-11-26 Richard M. Stallman <rms@gnu.org>
d01f3570
RS
5862
5863 * editfns.c (Fdelete_field): Make it noninteractive. Return nil.
5864
18df9369
GM
58651999-11-26 Gerd Moellmann <gerd@gnu.org>
5866
65a3ccf7
GM
5867 * puresize.h (BASE_PURESIZE): Increase to 550000.
5868
b3b98592
GM
5869 * textprop.c (set_text_properties): New function. Like
5870 Fset_text_properties, but with additional parameter
5871 SIGNAL_AFTER_CHANGE_P. If that is nil, don't signal after
5872 changes.
5873 (Fset_text_properties): Use it.
5874
5875 * insdel.c (insert_1_both): Call set_text_properties with last
5876 parameter nil so that no after changes will be signaled.
5877
5878 * lisp.h: Add prototype for set_text_properties.
5879
18df9369
GM
5880 * xfaces.c (set_lface_from_font_name): Fix previous change.
5881 (recompute_basic_faces): Change assert to abort.
5882
71a8e74b
DL
58831999-11-25 Dave Love <fx@gnu.org>
5884
5885 * fns.c (Fnthcdr, Fnreverse): Inline cdr.
5886 (Fmember, Fdelq, Fdelete): Inline car.
5887 (Fy_or_n_p): Doc fix.
5888
bc6a5782
GM
58891999-11-25 Gerd Moellmann <gerd@gnu.org>
5890
3221576b 5891 * xfaces.c (set_lface_from_font_name): New parameter may_fail_p.
18df9369 5892 Callers changed. If specified font name is bogus, and may_fail_p
3221576b
GM
5893 is not set, try to use a reasonable default.
5894
bc6a5782
GM
5895 * dispnew.c (direct_output_for_insert): Set glyph row's
5896 displays_text_p flag. Correct window's window_end_vpos if
5897 necessary.
5898
0c8559bb
PE
58991999-11-25 Paul Eggert <eggert@twinsun.com>
5900
5901 * emacs.c (fixup_locale): Don't bother to record initial locale.
5902 (synchronize_locale): If the desired locale is nil,
5903 treat it as if it were the empty string,
5904 so that we set the locale from the environment.
5905
35737351
KH
59061999-11-25 Kenichi Handa <handa@etl.go.jp>
5907
5908 * fileio.c (Finsert_file_contents): Set buffer-file-coding-system
5909 of the current buffer via Fset.
5910
5562b47f
DL
59111999-11-24 Dave Love <fx@gnu.org>
5912
5562b47f
DL
5913 * xfaces.c: Don't duplicate Qmode_line definition done elsewhere.
5914
5915 * xfns.c: Don't duplicate Qdisplay definition done elsewhere.
5916
00da0e4a
GM
59171999-11-24 Gerd Moellmann <gerd@gnu.org>
5918
5919 * lisp.h (enum pvec_type): Put PVEC_FLAG in #if 0.
5920
5921 * emacs.c (PVEC_FLAG): New variable.
5922
b1775dc1
GM
59231999-11-23 Gerd Moellmann <gerd@gnu.org>
5924
5925 * unexaix.c (unexec): Use unsigned instead of uintptr_t because
5926 that fails on IBM PowerPC, AIX 4.2.
427ec082 5927
08de6200
EZ
59281999-11-22 Eli Zaretskii <eliz@is.elta.co.il>
5929
5930 * buffer.c (syms_of_buffer): Add %z, %Z, %m and %& to the doc
5931 string of mode-line-format. Remove the obsolete %t.
5932
02fda8ff
GM
59331999-11-22 Gerd Moellmann <gerd@gnu.org>
5934
f2fa858f
GM
5935 * dispnew.c (direct_output_for_insert): Increment glyph positions
5936 for glyphs from buffer text only.
5937
02fda8ff
GM
5938 * emacs.c (gdb_valbits, gdb_gctypebits, gdb_emacs_intbits)
5939 (gdb_data_seg_bits): New variables.
427ec082 5940
02fda8ff
GM
5941 * lisp.h (enum gdb_lisp_params): Put in #if 0, since it doesn't
5942 work on systems not allowing enumerators > INT_MAX, and it
5943 won't work if EMACS_INT is long long.
5944
1b0d24e7
PE
59451999-11-22 Paul Eggert <eggert@twinsun.com>
5946
5947 Port to SunOS 4.1.x again. Help out with Alpha port.
5948 Rename messages-locale to system-messages-locale,
5949 and likewise for time-locale.
427ec082 5950
1b0d24e7
PE
5951 * callproc.c (strerror): Remove decl.
5952 * fileio.c (strerror): Likewise.
5953 * process.c (strerror): Likewise.
5954 * emacs.c (strerror): Likewise.
5955 (Vsystem_messages_locale): Renamed from Vmessages_locale.
5956 All uses changed.
5957 (Vprevious_system_messages_locale): Likewise, from
5958 Vprevious_messages_locale.
5959 (Vsystem_time_locale): Likewise, from Vtime_locale.
5960 (Vprevious_system_time_locale): Likewise, from Vprevious_time_locale.
5961 (ABORT_RETURN_TYPE): New macro.
5962 (abort): Return type is now ABORT_RETURN_TYPE.
5963 (main): Always invoke init_signals, even if POSIX_SIGNALS is not
5964 defined.
5965 (syms_of_emacs): messages-locale -> system-messages-locale,
5966 previous-messages-locale -> previous-system-messages-locale,
5967 time-locale -> system-time-locale,
5968 previous-time-locale -> previous-system-time-locale.
5969
5970 * gmalloc.c (PP, __ptr_t): Assume ANSI C if STDC_HEADERS is defined.
5971 (const): Do not define; that's config.h's job.
5972 (<limits.h>): Include if HAVE_LIMITS_H is defined.
5973 (CHAR_BIT): Move test for definedness outside of limits.h condition.
5974 (<stddef.h>): Include if STDC_HEADERS is defined.
5975 (FREE_RETURN_TYPE): New macro.
5976 (free): Return type is now FREE_RETURN_TYPE.
5977
5978 * lisp.h (synchronize_system_time_locale): Renamed from
5979 synchronize_time_locale. All uses changed.
5980 (synchronize_system_messages_locale): Likewise, from
5981 synchronize_messages_locale.
5982
5983 * m/alpha.h (malloc, realloc, calloc): Remove decls;
5984 stdlib.h now does this.
5985
5986 * process.c (sys_siglist): Remove.
5987
5988 * s/sunos4-0.h (ABORT_RETURN_TYPE, FREE_RETURN_TYPE):
5989 New macros.
5990
5991 * syntax.c (scan_sexps_forward): Use abort, not assert.
5992
5993 * sysdep.c (my_sys_siglist): New var.
5994 (sys_siglist): New macro. Remove old initialized vars of same name.
5995 (init_signals): Initialize sys_siglist.
5996
5997 * xfns.c (abort): Remove decl; stdlib.h now does this.
5998
0dcd5b54
DL
59991999-11-18 Dave Love <fx@gnu.org>
6000
946173ad
DL
6001 * filelock.c: Add forward declaration for get_boot_time_1.
6002
0dcd5b54
DL
6003 * dispnew.c (Finternal_show_cursor_p): Fix doc string.
6004
71447e8f
GM
60051999-11-18 Gerd Moellmann <gerd@gnu.org>
6006
6007 * buffer.h (struct buffer_text): Add comment about moving
6008 buffer text if REL_ALLOC is defined.
6009
eeedff63
KH
60101999-11-18 Kenichi Handa <handa@etl.go.jp>
6011
6012 * lisp.h (KEY_DESCRIPTION_SIZE): New macro.
6013
6014 * keyboard.c (echo_char): Use KEY_DESCRIPTION_SIZE to check free
6015 memory for push_key_description.
6016
6017 * keymap.c (Fsingle_key_description): Use KEY_DESCRIPTION_SIZE to
6018 allocate memory for push_key_description.
6019 (describe_buffer_bindings): Likewise.
6020
5d7e4a2c
GM
60211999-11-17 Gerd Moellmann <gerd@gnu.org>
6022
6023 * xfns.c (Fx_show_busy_cursor): Doc-fix.
6024 (Fx_hide_busy_cursor): Ditto.
6025
60261999-11-17 Marco Walther <walther@siemens-pyramid.com>
6027
6028 * unexsni.c (unexec): Handle .rel.dyn section.
6029
b5b41e02
DL
60301999-11-16 Dave Love <fx@gnu.org>
6031
6032 * doc.c (Fdocumentation): Remove gcpro here too.
6033
e35b6123
GM
60341999-11-16 Gerd Moellmann <gerd@gnu.org>
6035
6036 * keyboard.c (command_loop_1): Remove no_redisplay.
6037
83c8f461 60381999-11-16 Richard M. Stallman <rms@gnu.org>
0a14b9bb
GM
6039
6040 * print.c (PRINTPREPARE): Don't call setup_echo_area_for_printing
6041 in noninteractive.
6042
b05d3bee
GM
60431999-11-14 Gerd Moellmann <gerd@gnu.org>
6044
5bcfeb49
GM
6045 * xdisp.c (ensure_echo_area_buffers): New.
6046 (with_echo_area_buffer): Use it.
6047 (setup_echo_area_for_printing): Ditto.
6048
b05d3bee
GM
6049 * buffer.c (indicate-empty-lines): Doc-fix.
6050
9b2e6e4c
GM
60511999-11-12 Gerd Moellmann <gerd@gnu.org>
6052
e7f90eab
GM
6053 * term.c (term_init): If "op" isn't available, don't support color
6054 because we can't switch back to the default foreground and
6055 background.
6056
9b2e6e4c
GM
6057 * doc.c (Fdocumentation_property): Remove GCPRO because
6058 Fsubstitute_command_keys gcpro's the string.
6059
1bf21027
KH
60601999-11-12 Kenichi Handa <handa@etl.go.jp>
6061
6062 * editfns.c (Ftranslate_region): Check the buffer multibyteness.
6063
3bc6df53
GM
60641999-11-11 Gerd Moellmann <gerd@gnu.org>
6065
6066 * print.c, keymap.c, indent.c, insdel.c, keyboard.c, intervals.c,
6067 lread.c, textprop.c, undo.c, emacs.c, lisp.h, intervals.h,
6068 buffer.h, config.in, Makefile.in: Remove USE_TEXT_PROPERTIES.
6069
35a5514b
GM
60701999-11-10 Gerd Moellmann <gerd@gnu.org>
6071
6072 * xfns.c (QCuser_data): Removed.
6073 (syms_of_xfns): Initialization of QCuser_data removed.
6074 (parse_image_spec): Don't handle :user-data specially. Allow
6075 unknown keys. Remove parameter ALLOW_OTHER_KEYS.
6076 (xbm_image_p, xbm_load, xpm_image_p, pbm_image_p, png_image_p)
6077 (tiff_image_p, jpeg_image_p, gif_image_p, gs_image_p): Call
6078 parse_image_spec accordingly.
6079
83c8f461 60801999-11-09 Richard M. Stallman <rms@gnu.org>
4ea68fcc
RS
6081
6082 * cmds.c (Fbeginning_of_line): Doc fix.
6083 (Fend_of_line): Doc fix.
6084
6085 * editfns.c (Fline_beginning_position): If N is not 1,
6086 pass t to Fconstrain_to_field for ESCAPE-FROM-EDGE.
6087
6088 * syntax.c (Fforward_word): Handle fields even if would have hit
6089 an edge of the buffer. Return nil if affected by fields.
6090
83c8f461 60911999-11-09 Richard M. Stallman <rms@gnu.org>
4ea68fcc
RS
6092
6093 * editfns.c (preceding_pos): Function deleted.
6094 (text_property_stickiness): Decrement POS directly.
6095 Fix a confusion that used PT instead of POS.
6096
6097 * editfns.c (find_field): Properly handle the case
6098 of a field boundary where `field' inherits from neither side.
6099
6100 * editfns.c (Ffield_beginning, Ffield_end): Doc fixes.
6101 (Ferase_field, Ffield_string, Ffield_string_no_properties): Doc fixes.
6102
fa9aabf6
GM
61031999-11-08 Gerd Moellmann <gerd@gnu.org>
6104
6105 * bytecode.c (Fbyte_code) <BinsertN, Bcall>: Do the
6106 BEFORE_POTENTIAL_GC before DISCARD.
6107
4015b3c0
GM
61081999-11-07 Gerd Moellmann <gerd@gnu.org>
6109
033a5fa3
GM
6110 * alloc.c (Fgarbage_collect): Call unmark_byte_stack.
6111
6112 * lisp.h: Add prototype for unmark_byte_stack.
6113
6114 * bytecode.c (mark_byte_stack): Use XMARKBIT and XMARK.
6115 (unmark_byte_stack): Renamed from relocate_byte_pcs. Use
6116 XUNMARK.
6117
55b064bd
GM
6118 * xdisp.c (resize_mini_window): Fix computation of needed
6119 mini-window height.
6120
6121 * alloc.c, buffer.c, editfns.c, xdisp.c: Remove conditional
6122 compilation on USE_TEXT_PROPERTIES.
01e9b9df 6123
4015b3c0 6124 * Fbyte_code: Use block statements in cases and declare v1 and v2
60af03f1 6125 locally there. Rearrange case statements so that those most
4015b3c0
GM
6126 frequently executed come first. Avoid goto's in frequently
6127 executed cases.
6128
fe512f27
GM
61291999-11-05 Gerd Moellmann <gerd@gnu.org>
6130
dd59e217
GM
6131 * bytecode.c (Fbyte_code): Use BEFORE_POTENTIAL_GC and
6132 AFTER_POTENTIAL_GC around internal_catch.
6133
bcf28080
GM
6134 * alloc.c (Fgarbage_collect): Call mark_byte_stack and
6135 relocate_byte_pcs.
6136 (init_alloc_once, init_alloc): Set byte_stack_list to null.
6137
6138 * eval.c (struct catchtag): Add member byte_stack.
6139 (internal_catch, Fcondition_case, internal_condition_case)
dd59e217 6140 (internal_condition_case_1): Save value of byte_stack_list in
bcf28080
GM
6141 catchtag.
6142 (unwind_to_catch): Restore byte_stack_list from catchtag.
6143
6144 * lisp.h: Add prototypes for new functions in bytecode.c.
6145 Add extern declaration for byte_stack_list.
6146
6147 * bytecode.c (struct byte_stack): New.
6148 (byte_stack_list, mark_byte_stack, relocate_byte_pcs): New
6149 (BEFORE_POTENTIAL_GC, AFTER_POTENTIAL_GC): New.
6150 (FETCH, PUSH, POP, DISCARD, TOP, MAYBE_GC): Rewritten.
6151 (HANDLE_RELOCATION): Removed.
6152 (Fbyte_code): Use byte_stack structures.
6153
4d59c34c
GM
6154 * filelock.c (Ffile_locked_p): Make FILENAME a required argument.
6155
fe512f27
GM
6156 * buffer.c (syms_of_buffer): Extend documentation of
6157 mode-line-format.
6158
60b64cd6
GM
61591999-11-04 Gerd Moellmann <gerd@gnu.org>
6160
6161 * editfns.c (Fdelete_field): Renamed from Ferase_field.
6162
6163 * minibuf.c (do_completion, Fminibuffer_complete_word): Use
6164 Ferase_field instead of Fdelete_field.
6165
b51b619b
GM
61661999-11-03 Gerd Moellmann <gerd@gnu.org>
6167
6168 * dispnew.c (Finternal_show_cursor): Change it to set the
6169 cursor on/off, not toggle its state.
6170 (Finternal_show_cursor_p): New.
6171 (syms_of_display): Defsubr Sinternal_show_cursor_p.
6172
5865af0d
DL
61731999-11-03 Dave Love <fx@gnu.org>
6174
6175 * charset.c (split_non_ascii_string): Define return value.
6176
82a700f3
GM
61771999-11-03 Gerd Moellmann <gerd@gnu.org>
6178
edfef199
GM
6179 * minibuf.c (string_to_object): New.
6180 (read_minibuf_noninteractive): New.
6181 (read_minibuf): Call read_minibuf_noninteractive if
6182 noninteractive. Use string_to_object.
6183
82a700f3
GM
6184 * doc.c (Fdocumentation_property): Fix bug bypassing UNGCPRO.
6185
b5540f0d
DL
61861999-11-02 Dave Love <fx@gnu.org>
6187
e69dcd60
DL
6188 * gnu-linux.h: Use SIGCHLD, not SIGCLD (not in glibc 2.1).
6189
827a1788
DL
6190 * process.c: Define _GNU_SOURCE before config.h to get strsignal
6191 declared with glibc2.
b5540f0d 6192
a69a6e61
GM
61931999-11-02 Gerd Moellmann <gerd@gnu.org>
6194
6195 * lisp.h (QUIT): Give it statement form.
6196
87e21fbd
DL
61971999-11-02 Dave Love <fx@gnu.org>
6198
6199 * eval.c (init_eval): Conditionalize declaration of gcpro_level.
6200
1b335865
GM
62011999-11-02 Gerd Moellmann <gerd@gnu.org>
6202
9fb5e03d
GM
6203 * xfns.c (QCuser_data): New.
6204 (syms_of_xfns): Initialize QCuser_data.
6205 (parse_image_spec): Ignore :user-data DATA properties.
6206
1b335865
GM
6207 * xdisp.c (display_line): Set charpos of first glyph in blank
6208 lines not corresponding to any text to -1, even if no glyphs are
6209 filled in in that line.
6210
e76f1c44
GM
62111999-11-01 Gerd Moellmann <gerd@gnu.org>
6212
427ec082 6213 * xfns.c (png_load) [PNG_READ_sRGB_SUPPORTED]: Put code using
36fcd3d9
GM
6214 png_get_sRGB in #ifdef.
6215
111259b4
GM
6216 * dispnew.c (Finternal_show_cursor): Renamed from Fshow_cursor.
6217 (syms_of_display): Use the new name.
6218
dd5c96e8
GM
6219 * textprop.c (verify_interval_modification): Signal text-read-only
6220 instead of calling error.
6221
db8878fb
GM
6222 * data.c (Qtext_read_only): New built-in error.
6223 (syms_of_data): Initialize it.
6224
6225 * lisp.h: Add extern declaration for Qtext_read_only.
6226
e76f1c44
GM
6227 * syntax.c: Remove whitespace after open or in front of closing
6228 parentheses.
6229
83c8f461 62301999-11-01 Richard M. Stallman <rms@gnu.org>
cb3a6c48
GM
6231
6232 * Makefile.in (w16select.o, sound.o): Don't depend on lisp.h.
6233
7843e09c
GM
62341999-10-31 Gerd Moellmann <gerd@gnu.org>
6235
575ed805
GM
6236 * xdisp.c (resize_mini_window): Compute needed height differently.
6237
7843e09c
GM
6238 * fns.c (Flength): Unroll loop over lists.
6239
6240 * xdisp.c (append_space): Return non-zero if space was appended.
6241 (display_line): Set charpos of first glyph to -1 only if that
6242 glyph is the space added by append_glyph.
6243
83c8f461 62441999-10-30 Richard M. Stallman <rms@gnu.org>
cb3a6c48
GM
6245
6246 * print.c (strout): Consider `noninteractive' and use stdout
6247 only when PRINTCHARFUN is t.
6248
6249 * lisp.h (struct gcpro) [DEBUG_GCPRO]: New field `level'.
6250 (gcpro_level): Declare it extern.
6251 [DEBUG_GCPRO] (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
6252 Alternate definitions that set `level' and increment `gcpro_level'.
6253 [DEBUG_GCPRO] (UNGCPRO): Alternate definition that checks gcpro_level.
6254
6255 * eval.c [DEBUG_GCPRO] (gcpro_level): New variable.
6256 (init_eval) [DEBUG_GCPRO]: Initialize it.
6257 (unwind_to_catch) [DEBUG_GCPRO]: Set gcpro_level
6258 from remaining gcprolist.
6259
3636f7a3
KH
62601999-10-29 Kenichi Handa <handa@etl.go.jp>
6261
6262 * coding.c (code_convert_region): Update `dst' correctly.
6263
a2ad7096
GM
62641999-10-28 Gerd Moellmann <gerd@gnu.org>
6265
6266 * fns.c (Fmemq, Fassq, Frassq, assq_no_quit, Fassoc)
6267 (Frassoc): Rewritten.
6268
1e3196e8
GM
62691999-10-27 Noah Friedman <friedman@splode.com>
6270
6271 * s/gnu-linux.h [HAVE_DEV_PTMX]: Redefine FIRST_PTY_LETTER to 'z'.
6272 Define PTY_NAME_SPRINTF.
6273 Redefine PTY_TTY_NAME_SPRINTF.
6274 * config.in: Add undef for HAVE_DEV_PTMX.
6275
83c8f461 62761999-10-26 Richard M. Stallman <rms@gnu.org>
4ea68fcc
RS
6277
6278 * regex.c (POP_FAILURE_POINT): Use failure_id.integer
6279 as arg to DEBUG_POP and DEBUG_PRINT.
6280
83c8f461 62811999-10-27 Richard M. Stallman <rms@gnu.org>
17dbfaad
GM
6282
6283 * data.c (Qad_activate_internal): Renamed from Qad_activate.
6284 (Ffset): Call Qad_activate_internal.
6285 (syms_of_data): Initialize Qad_activate_internal.
6286
26922151
GM
62871999-10-27 Gerd Moellmann <gerd@gnu.org>
6288
6289 * xdisp.c (echo_area_display) [HAVE_X_WINDOWS]: Do nothing if
6290 Vterminal_frame is selected and Vwindow_system is non-nil.
6291
67a5596f
GM
62921999-10-26 Gerd Moellmann <gerd@gnu.org>
6293
2bea706b
GM
6294 * xdisp.c (echo_area_display): Put previous change in #if 0.
6295
67a5596f
GM
6296 * emacs.c (standard_args): Add `file' as synonym for `visit',
6297 `execute' as synonym for `eval'.
6298 (main): Add new options to usage message.
6299
81dc5de5
GM
63001999-10-25 Gerd Moellmann <gerd@gnu.org>
6301
6302 * data.c (Qhash_table): New.
6303 (Ftype_of): Return it for hash tables.
6304 (syms_of_data): Initialize Qhash_table.
6305
83c8f461 63061999-10-25 Richard M. Stallman <rms@gnu.org>
bd3c545d
GM
6307
6308 * regex.c (POP_FAILURE_POINT): Extract failure_id as an integer.
6309
66e4690f 63101999-10-24 Ken Raeburn <raeburn@gnu.org>
3a7093d8 6311
7539e11f
KR
6312 * alloc.c: Undef HIDE_LISP_IMPLEMENTATION before including
6313 lisp.h.
6314
6315 * buffer.c (Fbuffer_list, Fget_file_buffer, get_truename_buffer,
6316 Fbuffer_local_variables, Fother_buffer, record_buffer,
6317 set_buffer_internal_1, Fbury_buffer, Fkill_all_local_variables,
6318 swap_out_buffer_local_variables, overlays_at, overlays_in,
6319 overlay_touches_p, overlay_strings, recenter_overlay_lists,
6320 fix_overlays_in_range, fix_overlays_before, Foverlay_get,
6321 Foverlay_put, report_overlay_modification, evaporate_overlays):
6322 Use XCAR, XCDR, and XFLOAT_DATA instead of explicit member
6323 references.
6324 * data.c (Fcar, Fcar_safe, Fcdr, Fcdr_safe, Fsetcar, Fsetcdr,
6325 swap_in_symval_forwarding, set_internal, default_value,
6326 Fset_default, Fmake_variable_buffer_local, Fmake_local_variable,
6327 Fmake_variable_frame_local, Flocal_variable_p,
6328 Flocal_variable_if_set_p, arithcompare, Fzerop, cons_to_long,
6329 Fnumber_to_string, float_arith_driver, Fadd1, Fsub1): Likewise.
6330 * dispnew.c (Fframe_or_buffer_changed_p): Likewise.
6331 * emacs.c (main): Likewise.
6332 * fontset.c (fs_load_font, fs_register_fontset,
6333 CACHED_FONTSET_NAME, CACHED_FONTSET_REGEX, Fquery_fontset,
6334 Fnew_fontset, Fset_fontset_font): Likewise.
6335 * frame.c (do_switch_frame, next_frame, prev_frame,
6336 other_visible_frames, Fdelete_frame, Fvisible_frame_list):
6337 Likewise.
6338 * keyboard.c (read_char, help_char_p, event_to_kboard,
6339 kbd_buffer_get_event, timer_start_idle, timer_check,
6340 make_lispy_event, apply_modifiers, reorder_modifiers,
6341 Fevent_convert_list, lucid_event_type_list_p, menu_bar_items,
6342 menu_bar_one_keymap, menu_item_eval_property_1, parse_menu_item,
6343 tool_bar_items, read_char_x_menu_prompt, read_key_sequence,
6344 Fcommand_execute, Fexecute_extended_command): Likewise.
6345 * minibuf.c (read_minibuf, get_minibuffer, Ftry_completion,
6346 Fall_completions): Likewise.
6347 * window.c (Fset_window_margins): Likewise.
6348
6349 * callint.c (quotify_args): Don't explicitly use struct
6350 Lisp_Cons, use Lisp_Object and XCAR/XCDR instead.
6351
3a7093d8
KR
6352 * s/netbsd.h (HAVE_GETLOADAVG): Define as 1.
6353 (UNEXEC, START_FILES, LIB_STANDARD, LIB_GCC): Define ELF versions,
6354 if __ELF__ is defined.
6355
2a3d7146
GM
63561999-10-24 Gerd Moellmann <gerd@gnu.org>
6357
6358 * window.c (Fnext_window): Add a QUIT in the loop.
6359
8ac52782
GM
63601999-10-23 Gerd Moellmann <gerd@gnu.org>
6361
427ec082 6362 * Makefile.in (bootstrap, bootstrap-emacs, bootstrap-temacs):
8ac52782
GM
6363 New targets.
6364
05f0d15a
DL
63651999-10-22 Dave Love <fx@gnu.org>
6366
6367 * emacs.c (main): Enable profiling conditional on __linux also.
6368
882fb0e6
GM
63691999-10-20 Gerd Moellmann <gerd@gnu.org>
6370
6371 * xrdb.c (x_load_resources): Set default resources for resource
6372 classes instead of for the specific Emacs.
6373
b5f5bc31
GM
63741999-10-19 Gerd Moellmann <gerd@gnu.org>
6375
66f4dd69
GM
6376 * s/freebsd.h (HAVE_GETLOADAVG): Define as 1 because config.h
6377 defines it that way.
427ec082 6378
b5f5bc31
GM
6379 * xdisp.c (echo_area_display) [HAVE_X_WINDOWS]: Do nothing
6380 if selected_frame is equal to Vterminal_frame.
6381
68c45bf0 63821999-10-19 Paul Eggert <eggert@twinsun.com>
427ec082 6383
68c45bf0 6384 Add support for large files, 64-bit Solaris, system locale codings.
427ec082 6385
68c45bf0
PE
6386 * Makefile.in (emacs): Set the LC_ALL environment variable to "C"
6387 when dumping, so that the dumped Emacs doesn't have stray locale info.
6388 (dired.o): Depend on systime.h.
6389 (editfns.o): Depend on coding.h.
6390
6391 * alloc.c, buffer.c, callproc.c, ccl.c, charset.c, coding.c, data.c,
6392 dispnew.c, editfns.c, emacs.c, filelock.c, floatfns.c, hftctl.c,
6393 keyboard.c, process.c, sysdep.c, unexelf.c, unexhp9k800.c,
6394 unexsunos4.c, vmsfns.c, vmsgmalloc.c, w32faces.c, w32menu.c, w32term.c,
6395 w32xfns.c, xfaces.c, xfns.c, xmenu.c, xterm.c:
6396 Include <config.h> before any system include files.
6397
6398 * alloc.c, buffer.c, ccl.c, data.c, editfns.c, emacs.c, eval.c,
6399 fileio.c, filelock.c, frame.c, insdel.c, keymap.c, lread.c,
6400 m/alpha.h, print.c, search.c, sysdep.c, xdisp.c, xfaces.c, xfns.c,
6401 xmenu.c, xterm.c:
6402 Do not include <stdlib.h>, as <config.h> does this now.
6403
6404 * callproc.c (Fcall_process):
6405 Synchronize messages locale before invoking strerror.
6406 Decode resulting string with locale-coding-system.
6407
6408 * coding.c (Vlocale_coding_system): New var.
6409 (syms_of_coding): Adjust to above change.
6410 (emacs_strerror): New function.
6411
6412 * coding.h (emacs_strerror, Vlocale_coding_system): New decls.
427ec082 6413
68c45bf0
PE
6414 * config.in (HAVE_STDIO_EXT_H, HAVE_TM_GMTOFF, HAVE___FPENDING,
6415 HAVE_FTELLO, HAVE_GETLOADAVG, HAVE_MBLEN, HAVE_MBRLEN,
6416 HAVE_STRSIGNAL): New macros.
6417 (BITS_PER_LONG): Default to 64 if _LP64 is defined.
6418 <stdlib.h>: Include if HAVE_STDLIB_H is defined and NOT_C_CODE isn't.
6419
6420 * dired.c: Include "systime.h".
6421 (Ffile_attributes): Do not cast s.st_size to int; this loses
6422 information if int is 32 bits but st_size and EMACS_INT are larger.
6423 Treat large device numbers like large inode numbers.
6424
6425 * dispnew.c (PENDING_OUTPUT_COUNT): Use __fpending if available.
6426
6427 * editfns.c: Include coding.h.
6428 (emacs_strftime): Remove decl.
6429 (emacs_strftimeu): New decl.
6430 (emacs_memftimeu): Renamed from emacs_memftime; new arg UT.
6431 Use emacs_strftimeu instead of emacs_strftime.
6432 (Fformat_time_string): Convert format string using
6433 Vlocale_coding_system, and convert result back. Synchronize time
6434 locale before invoking lower level function. Invoke
6435 emacs_memftimeu, passing ut, instead of emacs_memftime.
427ec082 6436
68c45bf0
PE
6437 * emacs.c: Include <locale.h> if HAVE_SETLOCALE is defined.
6438 (Vmessages_locale, Vprevious_messages_locale, Vtime_locale,
6439 Vprevious_time_locale): New variables.
6440 (main): Invoke setlocale early, so that initial error messages are
6441 localized properly. But skip locale-setting if LC_ALL is "C".
6442 Fix up locale when it's safe to do so.
6443 (fixup_locale): Moved here from xterm.c.
6444 (synchronize_locale, synchronize_time_locale,
6445 synchronize_messages_locale): New functions.
6446 (syms_of_emacs): Accommodate above changes.
6447
6448 * fileio.c (report_file_error): Convert strerror output according
6449 to Vlocale_coding_system.
6450 (Finsert_file_contents): Check for arithmetic overflow in
6451 computations that depend on file size. Report IO errors
6452 with emacs_strerror, not strerror.
6453
6454 * fns.c (Fgethash): Declare dflt parameter.
6455
6456 * gmalloc.c: Do not define const to nothing if HAVE_CONFIG_H
6457 is defined; that's config.h's job.
6458
6459 * lisp.h (EMACS_INT, BITS_PER_EMACS_INT, EMACS_UINT): If _LP64,
6460 default these values to long, BITS_PER_LONG, and unsigned long.
6461 (VALBITS, MARKBIT, XINT): Do not assume 32-bit EMACS_INT.
6462 (PNTR_COMPARISON_TYPE): Default to EMACS_UINT, not to unsigned int.
6463 (code_convert_string_norecord, fixup_locale,
6464 synchronize_messages_locale, synchronize_time_locale,
6465 emacs_open, emacs_close, emacs_read, emacs_write): New decls.
6466 All Emacs callers of open, close, read, write changed to use
6467 emacs_open, emacs_close, emacs_read, emacs_write.
6468
6469 * lread.c (file_offset, file_tell): New macros. All uses of ftell
6470 changed to file_tell.
6471 (saved_doc_string_position, prev_saved_doc_string_position): Now
6472 of type file_offset.
6473 (init_lread): Do not fix locale here; fixup_locale now does this.
6474
6475 * m/amdahl.h, s/usg5-4.h:
6476 (NSIG): Remove.
6477 (NSIG_MINIMUM): New macro.
6478
6479 * m/cydra5.h, m/dpx2.h, m/mips.h, m/pfa50.h, m/sps7.h, m/stride.h,
6480 m/ustation.h, s/gnu-linux.h, s/hpux.h, s/iris3-5.h, s/iris3-6.h,
6481 s/umips.h, s/usg5-4.h:
6482 (SIGIO): Do not undef.
6483 (BROKEN_SIGIO): New macro.
6484
6485 * m/ustation.h:
6486 (SIGTSTP): Do not undef.
6487 (BROKEN_SIGTSTP): New macro.
6488
6489 * s/gnu-linux.h:
6490 (SIGPOLL, SIGURG): Do not undef.
6491 (BROKEN_SIGPOLL, BROKEN_SIGURG): New macros.
6492
6493 * s/ptx4.h:
6494 (SIGINFO): Do not undef.
6495 (BROKEN_SIGINFO): New macros.
427ec082 6496
68c45bf0
PE
6497 * m/delta.h, s/ptx.h, s/template.h: Doc fix.
6498
6499 * mktime.c, strftime.c: Update to glibc 2.1.2 version, with
6500 some Emacs-related changes merged.
6501
6502 * print.c (float_to_string): Prepend "-" to representation of a
6503 NaN if the NaN is negative.
6504
6505 * process.c (sys_siglist): Omit if HAVE_STRSIGNAL.
6506 (wait_reading_process_input): Use emacs_strerror, not strerror.
427ec082 6507
68c45bf0
PE
6508 * process.c (status_message, sigchld_handler): Synchronize locale,
6509 then use strsignal istead of sys_siglist.
6510 * w32proc.c (sys_wait): Likewise.
427ec082 6511
68c45bf0
PE
6512 * s/aix3-1.h, s/bsd4-1.h, s/dgux.h, s/gnu-linux.h, s/hiuxmpp.h,
6513 s/hpux.h, s/iris3-5.h, s/iris3-6.h, s/irix3-3.h, s/osf1.h, s/rtu.h,
6514 s/sunos4-1.h, s/unipl5-0.h, s/unipl5-2.h, s/usg5-0.h, s/usg5-2-2.h,
6515 s/usg5-2.h, s/usg5-3.h, s/xenix.h:
6516 (open, close, read, write, INTERRUPTIBLE_OPEN,
6517 INTERRUPTIBLE_CLOSE, INTERRUPTIBLE_IO): Remove.
6518
6519 * s/sol2-5.h (_LARGEFILE_SOURCE, _FILE_OFFSET_BITS): New macros.
6520
6521 * sysdep.c (sys_read, sys_write, read, write, sys_close, close,
6522 sys_open, open): Remove.
6523 (emacs_open, emacs_close, emacs_read, emacs_write): Always define;
6524 the old INTERRUPTIBLE_OPEN, INTERRUPTIBLE_CLOSE, and INTERRUPTIBLE_IO
6525 macros are no longer used.
6526 (emacs_open): Renamed from sys_open. Merge BSD4_1 version.
6527 (emacs_close): Renamed from sys_close.
6528 (emacs_read): Renamed from sys_read.
6529 (emacs_write): Renamed from sys_write.
6530 (sys_siglist): Do not declare if HAVE_STRSIGNAL.
6531 (dup2): Do not print error on failure; the real dup2 doesn't.
6532 (strsignal): New function, defined if !HAVE_STRSIGNAL.
6533
6534 * syssignal.h (SIGINFO): Undef if defined and if BROKEN_SIGINFO
6535 is defined.
6536 (SIGIO, SIGPOLL, SIGTSTP, SIGURG): Likewise.
6537 (NSIG): If less than NSIG_MINIMUM, define to NSIG_MINIMUM.
6538 (strsignal): Declare if !HAVE_STRSIGNAL.
6539
6540 * unexelf.c (ElfBitsW, ELFSIZE, ElfExpandBitsW): New macros.
6541 (ElfW): Define in terms of ElfExpandBitsW.
6542
6543 * w32proc.c (sys_siglist): Remove decl.
6544
6545 * xdisp.c (decode_mode_spec): 3rd arg is int, not char, to comply
6546 with ANSI C.
6547 (display_string): Declare face_string_pos arg.
6548
6549 * xfns.c (Fx_show_tip): Declare timeout param.
6550
6551 * xterm.c: No need to include locale.h.
6552 (x_alloc_lighter_color, x_setup_relief_color):
6553 Pass arg as double, not float, for compatibility with ANSI C.
6554 (fixup_locale): Move to emacs.c.
6555 (x_term_init): Do not setlocale or fixup locale; the main program
6556 does this now.
6557
2f0b74ea
DL
65581999-10-18 Dave Love <fx@gnu.org>
6559
6560 * doc.c (Fdocumentation_property): Gcpro `tem'.
6561
471aa4a0
KH
65621999-10-18 Kenichi Handa <handa@etl.go.jp>
6563
6564 * lread.c (Fload): Calculate bytes of filename correctly.
6565 (openp): Likewise.
6566
aca2020b
KH
65671999-10-18 Keisuke Nishida <kxn30@po.cwru.edu>
6568
6569 * print.c (print_preprocess): In case print-circle is nil,
6570 add OBJ to Vprint_number_table only when OBJ is a symbol.
6571
1f5fe392 65721999-10-18 Kenichi Handa <handa@etl.go.jp>
b843d1ae
KH
6573
6574 * coding.c (code_convert_string): Add record_unwind_protect to
6575 assure setting inhibit_pre_post_conversion back to zero. Take
6576 care of the multibyteness of the working buffer.
6577
6578 * coding.c (inhibit_pre_post_conversion): New variable.
6579 (setup_coding_system): If inhibit_pre_post_conversion is nonzero,
6580 ignore post-read-conversion and pre-write-conversion property of
6581 the coding system.
6582 (code_convert_region_unwind): New function.
6583 (code_convert_region): Set inhibit_pre_post_conversion to 1 while
6584 running pre-write-conversion and post-read-conversion.
6585 (code_convert_string): Likewise.
6586
cd876a91
GM
65871999-10-17 Miles Bader <miles@gnu.org>
6588
6589 * editfns.c: Doc fix.
6590
65911999-10-17 Miles Bader <miles@gnu.org>
6592
6593 * editfns.c (Fconstrain_to_field): Make sure we don't violate the
6594 argument preconditions of find_before_next_newline in the case
6595 where both ONLY_IN_LINE and ESCAPE_FROM_EDGE are set and OLD_POS
6596 was indeed at the edge.
6597
65981999-10-17 Miles Bader <miles@gnu.org>
6599
6600 * minibuf.c (Fminibuffer_complete_and_exit): Supply value for new
6601 ESCAPE_FROM_EDGE parameter to Ffield_beginning.
6602
6603 * editfns.c (text_property_eq, text_property_stickiness): Don't
6604 use initializers for auto variables of type Lisp_Object.
6605 (find_field): Likewise. Use braces around nested ifs.
6606 (Fline_end_position): Store the raw eol in a variable, so that the
6607 final expression doesn't look so ugly.
6608 (Fconstrain_to_field): Doc fix.
6609 (preceding_pos): Renamed from `preceeding_pos'.
6610 (text_property_stickiness, find_field): Call preceding_pos,
6611 not preceeding_pos.
6612
66131999-10-17 Miles Bader <miles@gnu.org>
6614
6615 * editfns.c (Ffield_string_no_properties): New function.
6616 (text_property_stickiness, preceeding_pos): New functions.
6617 (Ffield_string): Remove PROPS parameter.
6618 (find_field): Add MERGE_AT_BOUNDARY parameter.
6619 Rewrite to use stickiness of `field' property to resolve
6620 ambiguous cases.
6621 (Ffield_beginning, Ffield_end): Add ESCAPE_FROM_EDGE parameter.
6622 (Fconstrain_to_field): Likewise.
6623 (syms_of_editfns): Init Sfield_string_no_properties.
427ec082 6624 (Ffield_string, Ferase_field, Ffield_end):
cd876a91
GM
6625 Supply new MERGE_AT_BOUNDARY argument to find_field.
6626 (Fline_beginning_position, Fline_end_position): Supply new
6627 ESCAPE_FROM_EDGE parameter to Fconstrain_to_field.
6628 Pass a value of Qt for the ONLY_IN_LINE argument to
6629 Fconstrain_to_field (only matters if N != 1).
6630 * syntax.c (Fforward_word): Supply new ESCAPE_FROM_EDGE parameter
6631 to Fconstrain_to_field.
6632
6633 * minibuf.c (Fminibuffer_complete_word): Use
6634 Ffield_beginning to find the prompt end.
6635
66361999-10-17 Miles Bader <miles@gnu.org>
6637
6638 * editfns.c (Fconstrain_to_field): Add get/set-current-point
6639 behavior when NEW_POS is nil.
6640 (find_field): Use XSETFASTINT instead of make_number.
6641 * minibuf.c (Fminibuffer_complete_and_exit): Test for an empty
6642 input string by seeing where the field begins, instead of
6643 looking at text-properties.
6644
66451999-10-17 Miles Bader <miles@gnu.org>
6646
6647 * editfns.c (Qfield): New variable.
6648 (find_field, Ferase_field, Ffield_string,
6649 Ffield_beginning, Ffield_end, Fconstrain_to_field): New functions.
6650 (Fline_beginning_position, Fline_end_position): Constrain to any field.
6651 (make_buffer_string_both): Remove minibuffer-prompt hack.
6652 (syms_of_editfns): Initialize Qfield, and subr entries for
6653 field functions above.
6654 * minibuf.c (read_minibuf): Don't save minibuffer prompt length on
6655 minibuf_save_list.
6656 Don't initialize minibuffer prompt length.
6657 Wrap prompt text-properties around the entire prompt.
6658 Add 'prompt text-property to prompt.
6659 Get final value with Ffield_string instead of make_buffer_string.
6660 (read_minibuf_unwind): Don't restore minibuffer prompt length from
6661 minibuf_save_list.
6662 (do_completion): Get minibuffer input with Ffield_string
6663 instead of Fbuffer_string.
6664 Erase minibuffer input with Ferase_field instead of erase_buffer.
6665 (Fminibuffer_complete_and_exit): Likewise.
6666 Test whether buffer is empty by looking for the 'prompt text
6667 property at the end.
6668 Set prompt length by looking for the end of the prompt text property,
6669 and save prompt length for later use (since there is no longer a
6670 buffer variable to get it from).
6671 (Fminibuffer_prompt_width, Fminibuffer_prompt_end): Functions removed.
6672 (syms_of_minibuf): Remove initializations of
6673 Sminibuffer_prompt_width and Sminibuffer_prompt_end.
6674 * buffer.h (struct buffer): Remove prompt_end_charpos field.
427ec082 6675 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer, Fkill_buffer):
cd876a91
GM
6676 Don't initialize prompt_end_charpos field.
6677 * syntax.c (Fforward_word): Likewise.
6678 Constrain to any field.
6679
3f6f7508
GM
66801999-10-16 Gerd Moellmann <gerd@gnu.org>
6681
6682 * window.c (enum save_restore_action): New.
6683 (save_restore_orig_size): Change parameter list. Add
6684 functionality to check for valid orig_top and orig_height members
6685 in a window tree.
6686 (grow_mini_window): Call save_restore_orig_size with new parameter
6687 list.
6688 (shrink_mini_window): Restore old window sizes only if old
6689 size information is valid in all windows in a window tree.
427ec082 6690
06482119
GM
66911999-10-15 Gerd Moellmann <gerd@gnu.org>
6692
2710454d
GM
6693 * xmenu.c (set_frame_menubar): Don't call
6694 x_set_menu_resources_from_menu_face here.
6695 (update_frame_menubar): Call x_set_menu_resources_from_menu_face.
6696
06482119
GM
6697 * xfns.c (gif_load): Fix handling of interlaced GIFs.
6698
17fa2837
DL
66991999-10-14 Dave Love <fx@gnu.org>
6700
6701 * xdisp.c (handle_fontified_prop): GCPRO `pos'.
6702
45f93416
GM
67031999-10-14 Gerd Moellmann <gerd@gnu.org>
6704
6705 * process.c (Fopen_network_stream): Don't loop if gethostbyname
6706 fails and h_errno is TRY_AGAIN.
6707
c765b723
DL
67081999-10-13 Dave Love <fx@gnu.org>
6709
6710 * filelock.c (lock_file): Move gcpro of `fn'.
6711
dace7f4e
GM
67121999-10-10 Gerd Moellmann <gerd@gnu.org>
6713
6714 * keyboard.c (auto-save-interval): Fix documentation.
427ec082 6715
83c8f461 67161999-10-09 Richard M. Stallman <rms@gnu.org>
73fb36f1
RS
6717
6718 * print.c (print): When removing objects from Vprint_number_table,
6719 only scan the newly added objects.
6720 (print_preprocess): If OBJ is a gensym, and print-continuous-numbering,
6721 unconditionally force it to stay in the table.
6722
85177c86
GM
67231999-10-09 Gerd Moellmann <gerd@gnu.org>
6724
6725 * xfns.c (prepare_image_for_display): Don't try to load image if
6726 loading it failed before.
6727 (lookup_image, prepare_image_for_display): Remember if loading the
6728 image failed.
6729 (xpm_load): Add missing UNBLOCK_INPUT.
6730
6731 * dispextern.h (struct image): New member load_failed_p.
6732
11e4de5d
SM
67331999-10-08 Stefan Monnier <monnier@cs.yale.edu>
6734
f28eba7b 6735 * fileio.c (Fmake_temp_name): Add a reference to `make-temp-file'
11e4de5d
SM
6736 in the docstring.
6737
f1da8f06
GM
67381999-10-08 Gerd Moellmann <gerd@gnu.org>
6739
6740 * xterm.c (XTread_socket) <ClientMessage, WM_TAKE_FOCUS>:
6741 Don't call XSetInputFocus because that can generate additional
6742 FocusIn events.
427ec082 6743
c37bbd4f
GM
67441999-10-07 Jeffrey C Honig <jch@bsdi.com>
6745
6746 * bsdos4.h [HAVE_LIBNCURSES]: Define TERMINFO and LIBS_TERMCAP.
6747
83c8f461 67481999-10-07 Richard M. Stallman <rms@gnu.org>
78cc5c64
GM
6749
6750 * process.c (wait_reading_process_input): When trying to suck
6751 input from one process, for accept-process-output,
6752 exit that loop if we get EAGAIN or EWOULDBLOCK.
6753
577d9e2f
GM
67541999-10-07 Gerd Moellmann <gerd@gnu.org>
6755
6756 * xfaces.c (Qbitmap_spec_p): Replaces Qpixmap_spec_p.
6757 (Fbitmap_spec_p): Replaces Fpixmap_spec_p.
6758 (load_pixmap): Use Fbitmap_spec_p and Qbitmap_spec_p instead of
6759 Fpixmap_spec_p and Qpixmap_spec_p.
6760 (load_face_colors, check_lface_attrs,
6761 merge_face_vector_with_property,
6762 Finternal_set_lisp_face_attribute): Use Fbitmap_spec_p.
6763 (syms_of_xfaces): Initialize Qbitmap_spec_p, defsubr
6764 Fbitmap_spec_p.
6765
f5737ad2
GM
67661999-10-07 Gerd Moellmann <gerd@gnu.org>
6767
6768 * xdisp.c (display_menu_bar): Use MENU_FACE_ID instead of
6769 MODE_LINE_FACE_ID.
6770
6771 * xfaces.c (toplevel) [USE_MOTIF]: Include some Motif headers.
6772 (struct x_resources) [USE_X_TOOLKIT]: New.
6773 (xm_apply_resources, xm_set_menu_resources_from_menu_face)
6774 [USE_MOTIF]: New.
6775 (xl_apply_resources, xl_set_menu_resources_from_menu_face)
6776 [USE_LUCID]: New.
6777 (x_set_menu_resources_from_menu_face) [USE_X_TOOLKIT]: New.
6778 (Qmenu): New.
6779 (syms_of_xfaces): Initialize Qmenu.
6780 (realize_basic_faces): Realize face `menu'.
6781 (resolve_face_name): New.
6782 (lface_from_face_name): Use it.
6783 (Finternal_set_lisp_face_attribute): Ditto.
6784 (Fpixmap_spec_p): Rewritten. Extend doc string.
6785
6786 * xmenu.c (set_frame_menubar, xmenu_show): Call
6787 x_set_menu_resources_from_menu_face.
6788
6789 * dispextern.h (enum face_id): Add MENU_FACE_ID.
6790 (toplevel): Include X11/Intrinsic.h.
6791
6a1aa823
DL
67921999-10-03 Ken'ichi Handa <handa@gnu.org>
6793
6794 * coding.c (DECODE_CHARACTER_ASCII): Decode ASCII invocated to GR
6795 correctly.
6796
26901792
DL
67971999-09-30 Kenichi Handa <handa@etl.go.jp>
6798
6799 * category.c (modify_lower_category_set): Set default value of
6800 TABLE correctly.
6801
6802 * minibuf.c (Fminibuffer_complete_word): Calculate string byte
6803 size correctly.
6804
68051999-09-29 Gerd Moellmann <gerd@gnu.org>
6806
6807 * editfns.c (Fpropertize): Renamed from Fproperties.
6808
68091999-09-29 Gerd Moellmann <gerd@gnu.org>
6810
6811 * xdisp.c (resize_mini_window): Do nothing if frame is an X
6812 frame that hasn't been initialized yet.
6813
83c8f461 68141999-09-28 Richard M. Stallman <rms@gnu.org>
a04f1a93
PR
6815
6816 * keymap.c (Fsingle_key_description): Make tem big enough.
6817 (describe_buffer_bindings): Make buf big enough.
6818
83c8f461 68191999-09-27 Richard M. Stallman <rms@gnu.org>
d177c583
PR
6820
6821 * intervals.c (get_local_map): Use indirect_function,
6822 not Findirect_function.
6823
26901792
DL
68241999-09-27 Dave Love <fx@gnu.org>
6825
6826 * cm.h: Remove unneeded declaration of ospeed.
6827
68281999-09-26 Gerd Moellmann <gerd@gnu.org>
6829
6830 * lisp.h (toplevel): Add prototype for
6831 next_single_char_property_change.
6832
6833 * textprop.c (next_single_char_property_change): New.
6834
6835 * xdisp.c (display_prop_end, invisible_text_between_p): Use
6836 next_single_char_property_change.
6837
68381999-09-25 Gerd Moellmann <gerd@gnu.org>
6839
6840 * editfns.c (Fproperties): New.
6841 (syms_of_editfns): Defsubr it.
6842
6843 * xfns.c (lookup_image): Set image's timestamp because it's
6844 used when we look it up.
6845
68461999-09-23 Gerd Moellmann <gerd@gnu.org>
6847
6848 * window.c (enlarge_window): Add window parameter instead of using
6849 selected_window.
6850 (Fdisplay_buffer): Call it with window parameter instead of
6851 setting selected_window.
6852 (Fenlarge_window, Fshrink_window): Ditto.
6853 (shrink_mini_window): If there is no recorded height and position
6854 info, resize mini-window to height 1.
6855
6856 * xfns.c (image_error): Use add_to_log.
6857
6858 * xfaces.c (load_pixmap): Call add_to_log without frame parameter.
6859 (load_face_font_or_fontset, load_color,
6860 merge_face_vector_with_property): Ditto.
6861
6862 * dispextern.h: Add prototype for add_to_log.
6863
6864 * xfaces.c (add_to_log): Move to xdisp.c.
6865
6866 * xdisp.c (add_to_log): Moved from xfaces.c. Remove frame
6867 parameter.
6868
68691999-09-23 Gerd Moellmann <gerd@gnu.org>
6870
6871 * xterm.c (XTread_socket) <MotionNotify>: Change #ifdef
6872 USE_X_TOOLKIT to #ifdef USE_TOOLKIT_SCROLL_BARS.
6873
6874 * xdisp.c (resize_mini_window): Use grow_mini_window and
6875 shrink_mini_window.
6876
6877 * window.c (window_min_size): Add parameter ignore_fixed_p.
6878 (change_window_height): Call window_min_size with new parameter.
6879 (shrink_window_lowest_first, save_restore_orig_size,
6880 grow_mini_window, shrink_mini_window): New.
6881 (make_window, replace_window): Initialize orig_top and
6882 orig_height.
6883 (enlarge_window): Renamed from change_window_height. Make it
6884 static.
6885 (Fdisplay_buffer, Fenlage_window, Fshrink_window): Call
6886 enlarge_window instead of change_window_height.
6887
6888 * window.h (struct window): New members orig_top, orig_height.
6889 (toplevel): Add prototypes for grow_mini_window and
6890 shrink_mini_window. Remove prototype for change_window_height.
6891
68921999-09-21 Eli Zaretskii <eliz@gnu.org>
6893
6894 * frame.c (frame_name_fnn_p): Fix previous change.
6895
68961999-09-20 Gerd Moellmann <gerd@gnu.org>
6897
6898 * minibuf.c (toplevel): Move include of stdio.h to other includes.
6899
6900 * dispnew.c (direct_output_for_insert): Cast arguments to
6901 safe_bcopy to char *.
6902
6903 * lread.c (readchar): Remove unused variables.
6904 (read_filtered_event, read1, Fmapatoms): Ditto.
6905 (toplevel): Include intervals.h.
6906
6907 * eval.c (Fsignal): Remove unused variables.
6908 (Fcommandp, do_autoload): Ditto.
6909
6910 * lisp.h: Add prototype for safe_bcopy, fatal.
6911
6912 * editfns.c (init_editfns): Remove unused variables.
6913 (Fgoto_char, Fchar_after, Fformat): Ditto.
6914 (message_text, message_length): Put in #ifndef HAVE_MENUS.
6915
6916 * data.c (find_symbol_value): Remove unused variables.
6917 (Faref, Fstring_to_number): Ditto.
6918 (toplevel): Include stdio.h.
6919 (Fnumber_to_string): Cast XINT to long for %ld.
6920
6921 * casefiddle.c (casify_object): Remove unused variables.
6922 (casify_region): Ditto.
6923
427ec082 6924 * filelock.c (get_boot_time): Put local variable used in
26901792
DL
6925 conditinally compiled section in #ifdef.
6926 (toplevel): Include stdio.h.
6927
6928 * keymap.c (Flookup_key, Faccessible_keymaps, describe_vector,
6929 keys_of_keymap, syms_of_keymap): Remove unused variables.
6930
69311999-09-20 Gerd Moellmann <gerd@gnu.org>
6932
6933 * xdisp.c (sync_frame_with_window_matrix_rows): Disable frame rows
6934 whose corresponding window rows have been disabled in
6935 try_window_id.
6936
69371999-09-20 Gerd Moellmann <gerd@gnu.org>
6938
6939 * xdisp.c (compute_window_start_on_continuation_line): Handle case
6940 that window start is out of range.
6941 (handle_display_prop, handle_single_display_prop): Replace
6942 marginal area specifications like `left-margin' with `(margin
6943 left-margin)'.
6944 (Qmargin): New.
6945 (syms_of_xdisp): Initialize Qmargin.
6946
69471999-09-19 Gerd Moellmann <gerd@gnu.org>
6948
6949 * syntax.c (update_syntax_table, find_defun_start, back_comment,
6950 describe_syntax, skip_chars): Remove unused variables.
6951 (back_comment, forw_comment): Add braces to if-statement with
6952 if-else as dependent statement.
6953
6954 * process.c (list_processes_1): Remove unused variables.
6955 (Fopen_network_stream, create_process): Add parentheses to
6956 conditional expressions.
6957 (create_process): Put declaration of sigchld in #if 0.
6958 (Fopen_network_stream): Removed unused variables.
6959 (Fopen_network_stream, wait_reading_process_input,
6960 wait_reading_process_input, send_process, send_process): Ditto.
6961 (toplevel): Add prototypes for set_waiting_for_input and
6962 keyboard_bit_set.
6963
6964 * abbrev.c (Fexpand_abbrev): Remove unused variables.
6965
6966 * textprop.c (Fset_text_properties): Remove unused variables.
6967 (text_property_list, verify_interval_modification,
6968 interval_has_all_properties): Ditto.
6969
6970 * callproc.c (toplevel) [HAVE_UNISTD_H]: Include unistd.h.
6971 (Fcall_process): Remove unused variable.
6972
6973 * keyboard.c (Frecursive_edit): Remove unused variable.
6974 (command_loop_1, safe_run_hooks, kbd_buffer_get_event,
6975 timer_check, make_lispy_event, menu_bar_items,
6976 menu_bar_one_keymap, menu_bar_item, parse_menu_item,
6977 parse_tool_bar_item, read_char_x_menu_prompt, read_key_sequence,
6978 kbd_buffer_get_event, make_lispy_event, read_char_x_menu_prompt,
6979 read_key_sequence): Ditto. Fread_key_sequence,
6980 Fread_key_sequence_vector, Fsuspend_emacs): Ditto.
6981 (read_key_sequence) [GOBBLE_FIRST_EVENT]: Put local variables only
6982 used when GOBBLE_FIRST_EVENT is defined in #ifdef
6983 (Fexecute_extended_command): Cast XINT to long for %ld.
6984 (toplevel) [HAVE_UNISTD_H]: Include unistd.h.
6985 (toplevel): Include sys/types.h.
6986
6987 * lisp.h (RETURN_UNGCPRO): Use do-while (0) idiom.
6988 (toplevel): Add prototypes for stuff_char, and
6989 code_convert_string_norecord.
6990
69911999-09-19 Gerd Moellmann <gerd@gnu.org>
6992
6993 * buffer.h: Add prototype for r_re_alloc.
6994
6995 * insdel.c (copy_text): Removed unused variables.
6996 (count_combining_after, count_combining_after, insert_1_both,
6997 insert_from_string_1, insert_from_buffer_1, check_markers): Ditto.
6998 (adjust_after_replace, replace_range): Add parentheses to logical
6999 expressions. Remove unused variables.
7000 (CHECK_BYTE_COMBINING_FOR_INSERT): Add parentheses to logical
7001 expression.
7002
7003 * alloc.c (Fgarbage_collect): Remove unused variable.
7004 (compact_strings): Add parentheses around assignments in
7005 conditional context.
7006 (toplevel): Put declaration of unused function clear_marks
7007 in #if 0 like its definition.
7008
7009 * lisp.h: Add prototype for shrink_regexp_cache,
7010 sweep_weak_hash_tables.
7011
70121999-09-19 Dave Love <fx@gnu.org>
7013
7014 * process.c (Fopen_network_stream): Use strerror, not gai_strerror.
7015
7016 * doc.c (read_bytecode_char): Declare arg.
7017
7018 * lisp.h: Declare Fcurrent_message, Fmake_temp_name,
7019 read_bytecode_char, Fx_hide_busy_cursor, getloadavg.
7020
70211999-09-18 Richard Stallman <rms@gnu.org>
7022
7023 * xdisp.c (echo_area_display): Turn off code that returned
7024 without doing anything when using a terminal frame.
7025
83c8f461 70261999-09-17 Richard M. Stallman <rms@gnu.org>
27271329
PR
7027
7028 * unexelf.c (unexec): Don't get confused by a short section
7029 just before the bss section.
7030
26901792
DL
70311999-09-16 Gerd Moellmann <gerd@gnu.org>
7032
7033 * emacs.c (main): Remove unused variables.
7034 (sort_args, Fkill_emacs, Fkill_emacs): Ditto.
7035
7036 * lisp.h: Add prototype for uninterrupt_malloc, memory_warnings,
7037 init_fileio_once, syms_of_sound, init_xfns, init_fns
7038 init_sound, check_message_stack.
7039
7040 * emacs.c (toplevel) [HAVE_UNISTD_H]: Include unistd.h.
7041
7042 * intervals.c (rotate_right, rotate_left): Add braces to avoid
7043 ambiguous else warning.
7044 (split_interval_left): Remove unused variables.
7045 (previous_interval, adjust_intervals_for_deletion,
7046 set_point_both, set_point_both, set_intervals_multibyte_1): Ditto.
7047 (icount, idepth, zero_length): Move into #if 0 section below
7048 original position where these are used.
7049
7050 * buffer.h [REL_ALLOC]: Add prototypes for r_alloc and r_alloc_free.
7051
7052 * buffer.c (Fkill_buffer): Remove unused variables.
7053 (Fkill_buffer, overlays_at, overlays_in, recenter_overlay_lists,
7054 fix_overlays_in_range, Fmove_overlay, Fprevious_overlay_change,
7055 init_buffer_once, (syms_of_buffer): Ditto.
7056
7057 * xrdb.c (get_fallback): Remove unused variable.
7058 (x_load_resources): Ditto. Put local variable used for Motif only
7059 in #ifdef USE_MOTIF.
7060
70611999-09-16 Gerd Moellmann <gerd@gnu.org>
7062
7063 * minibuf.c (read_minibuf): Remove unused variables.
7064 (read_minibuf, Fread_buffer, scmp, Fcompleting_read): Ditto.
7065 (do_completion): Move assignment out of conditional context.
7066 (Fdisplay_completion_list): Add parentheses to conditional expression.
7067
7068 * cm.c (toplevel) [HAVE_TERMCAP_H]: Include termcap.h.
7069
7070 * lisp.h: Add prototype for no_switch_window.
7071
7072 * window.c (Fset_window_buffer): Remove unused variables.
7073 (Fset_window_margins): Ditto.
7074
7075 * xdisp.c (resize_mini_window): Temporarily set the selected
7076 window's or Vminibuf_scroll_window's height to "fixed" around
7077 the call the change_window_height.
7078
7079 * window.c (window_fixed_size_p): Check window's height_fixed_p
7080 flag.
7081
7082 * window.h (struct window): New member height_fixed_p.
7083
7084 * dispnew.c (direct_output_forward_char): Don't use this method
7085 if showing a message or a message was just cleared because we
7086 might need to resize the mini-window.
7087
70881999-09-16 Gerd Moellmann <gerd@gnu.org>
7089
7090 * frame.c (Fdelete_frame): Correct local variable pointing to
7091 selected frame after selecting new frame.
7092
70931999-09-15 Richard Stallman <rms@gnu.org>
7094
7095 * puresize.h (BASE_PURESIZE): Increase to 525000.
7096
7097 * filelock.c (Vtemporary_file_directory): New variable.
7098 (syms_of_filelock): Set up Lisp variable.
7099
71001999-09-15 Gerd Moellmann <gerd@gnu.org>
7101
7102 * term.c (OUTPUT_IF, OUTPUT1_IF): Use do-while.
7103 (encode_terminal_code): Remove unused variables.
7104 (turn_off_face): Ditto.
7105 (toplevel): Include termcap.h if HAVE_TERMCAP_H.
7106
7107 * dispnew.c (update_frame_line): If writing whole desired line,
7108 don't clear to end of line if already at the end.
7109
71101999-09-15 Gerd Moellmann <gerd@gnu.org>
7111
7112 * xdisp.c (resize_mini_window): Don't report changed window
7113 height if it actually hasn't changed.
7114
427ec082 7115 * widget.c (set_frame_size, EmacsFrameSetCharSize): Remove
26901792
DL
7116 unused variables.
7117 (mark_shell_size_user_specified): Put in #if 0 because not used.
7118 (create_frame_gcs): Put in #if 0 because currently unused.
7119 (first_frame_p): Ditto.
7120
7121 * xmenu.c (single_menu_item, Fx_popup_menu, Fx_popup_menu,
7122 single_submenu, update_frame_menubar, set_frame_menubar,
7123 free_frame_menubar, xmenu_show, xdialog_show): Remove unused
7124 variables.
7125
7126 * print.c (PRINTFULLP): Removed because it is no longer used and
7127 is misleading.
7128 (Ferror_message_string): Remove unused variables.
7129 (print_object): Cast argument of sprintf to long for `%ld'
7130 specifier. Remove unused variable.
7131
71321999-09-14 Gerd Moellmann <gerd@gnu.org>
7133
7134 * sound.c (Fplay_sound): Remove usused variables.
7135 (be2hs): Put in #if 0 because it's currently not used.
7136
71371999-09-14 Ken Raeburn <raeburn@gnu.org>
7138
7139 * print.c (Ferror_message_string, print_error_message,
7140 print_object): Use XCAR, XCDR and XFLOAT_DATA instead of explicit
7141 member access.
7142
71431999-09-14 Gerd Moellmann <gerd@gnu.org>
7144
7145 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Put code in do-while.
7146
7147 * frame.c (Fnext_frame): Remove unused variable(s).
7148 (Fprevious_frame, Fmouse_pixel_position, frame_name_fnn_p): Ditto.
7149 (store_frame_param): Add parentheses to conditional expression.
7150 (Fmodify_frame_parameters): Remove unused variables.
7151 (Fmodify_frame_parameters, Fset_frame_size, Fset_frame_position):
7152 Ditto.
7153
7154 * xfns.c (x_set_background_color): Remove unused variable(s).
7155 (x_set_border_pixel): Ditto.
7156 (x_set_menu_bar_lines): Put local variable used only for
7157 non-toolkit case in #ifdef/#endif.
7158 (x_figure_window_size): Remove unused variable(s).
427ec082 7159 (x_figure_window_size, x_window, lookup_image,
26901792
DL
7160 xbm_read_bitmap_file_data, x_build_heuristic_mask, pbm_load,
7161 png_load, jpeg_load, gif_load, x_create_tip_frame,
7162 x_create_tip_frame, Fx_show_tip, x_set_border_pixel): Ditto.
7163
7164 * xterm.c (x_scroll_bar_handle_click): Compile only if
7165 not USE_TOOLKIT_SCROLL_BARS.
7166 (x_scroll_bar_set_handle, x_scroll_bar_note_movement): Ditto.
7167
7168 * dispextern.h: Add prototypes for gamma_correct and
7169 x_kill_gs_process.
7170
7171 * xterm.c (x_produce_glyphs): Remove unused variable(s).
7172 (x_alloc_nearest_color_for_widget, note_tool_bar_highlight,
7173 x_set_toolkit_scroll_bar_thumb): Ditto.
7174 (x_scroll_bar_create): Move local variable to the
7175 conditionally compiled section of code where it is used.
7176 (x_scroll_bar_create): Remove unused variable(s).
7177 (x_scroll_bar_remove, XTread_socket): Ditto.
7178 (XTread_socket) <ConfigureNotify>: Move variables used for
7179 non-toolkit case into conditionally compiled section of code.
7180
7181 * window.h (freeze_window_starts): Fix typo in prototype.
7182
7183 * xdisp.c (display_echo_area_1, try_window_id): Remove unused
7184 variable(s).
7185
7186 * lisp.h: Add prototype for debug_print.
7187
7188 * dispextern.h (xassert) [GLYPH_DEBUG]: Change definition
7189 to use do-while.
7190
7191 * fns.c (SXHASH_COMBINE): Add missing parentheses.
7192 (Fchar_table_range, Fset_char_table_default, mapcar1,
7193 Fyes_or_no_p, sweep_weak_hash_tables): Remove unused variable(s).
7194
7195 * lisp.h: Add prototype for getloadavg.
7196
71971999-09-14 Andreas Schwab <schwab@gnu.org>
7198
7199 * process.c (Fopen_network_stream): Avoid socket decriptor leak.
7200
7201 * lisp.h: Declare close_file_unwind.
7202
72031999-09-14 Richard Stallman <rms@gnu.org>
7204
7205 * filelock.c (get_boot_time): Make the temp name in the proper dir.
7206
72071999-09-13 Gerd Moellmann <gerd@gnu.org>
7208
7209 * xdisp.c (redisplay_window): Make sure start_at_line_beg
7210 is always set correctly.
7211
72121999-09-13 Dave Love <fx@gnu.org>
7213
7214 * xdisp.c (move_it_in_display_line_to): Make type consistent with
7215 declaration.
7216
72171999-09-13 Gerd Moellmann <gerd@delysid.gnu.org>
7218
7219 * xdisp.c (QCfile): Move here from xfns.c.
7220 (syms_of_xdisp): Initialize it.
7221 (message2_nolog): Change for Lisp_Object selected_frame.
7222 (message3_nolog, message_with_string, message,
7223 setup_echo_area_for_printing, truncate_echo_area,
7224 prepare_menu_bars, redisplay_internal, Fdump_tool_bar_row): Ditto.
7225
72261999-09-13 Dave Love <fx@gnu.org>
7227
7228 * xterm.c: Don't continue #define args for benefit of old cc.
7229 (xt_action_hook): Indent #error for benefit of K&R cc.
7230
72311999-09-13 Gerd Moellmann <gerd@delysid.gnu.org>
7232
7233 * xterm.c (XTcursor_to): Change for Lisp_Object selected_frame.
7234 (x_clear_frame, XTring_bell, XTmouse_position, XTread_socket): Ditto.
7235 (XRINGBELL): Removed.
7236
72371999-09-13 Dave Love <fx@gnu.org>
7238
7239 * xfns.c (x_put_x_image): Make type consistent with declaration.
7240
7241 * fns.c (Fmake_hash_table): Fix string continuation.
7242
72431999-09-13 Gerd Moellmann <gerd@delysid.gnu.org>
7244
7245 * xfns.c (QCfile): Moved to xdisp.c.
7246 (syms_of_xfns): Don't initialize QCfile.
7247 (check_x_frame): Change for Lisp_Object selected_frame.
7248 (check_x_display_info, x_get_resource_string): Ditto.
7249
72501999-09-13 Gerd Moellmann <gerd@gnu.org>
7251
7252 * minibuf.c (choose_minibuf_frame): Don't try to set the
7253 mini-buffer window's buffer, if the buffer is invalid.
7254
7255 * xfns.c (QCfile): Moved to xdisp.c.
7256 (syms_of_xfns): Don't initialize QCfile.
7257
7258 * xdisp.c (QCfile): Move here from xfns.c.
7259 (syms_of_xdisp): Initialize it.
7260
7261 * lisp.h (selected_frame): Add external declaration.
7262
7263 * xselect.c (x_own_selection): Change for Lisp_Object selected_frame.
7264 (Fx_store_cut_buffer_internal): Ditto.
7265 (Fx_rotate_cut_buffers_internal): Ditto.
7266
7267 * xfaces.c (frame_or_selected_frame): Change for Lisp_Object
7268 selected_frame.
7269 (Finternal_set_lisp_face_attribute): Ditto.
7270 (Finternal_get_lisp_face_attribute): Ditto.
7271 (Finternal_lisp_face_empty_p): Ditto.
7272 (Fdump_face): Ditto.
7273
7274 * term.c (OUTPUT): Change for Lisp_Object selected_frame.
7275 (OUTPUT_IF, ring_bell, set_terminal_modes, reset_terminal_modes,
7276 set_terminal_window, set_scroll_region, reassert_line_highlight,
7277 change_line_highlight, cursor_to, raw_cursor_to, clear_to_end,
7278 clear_end_of_line, clear_end_of_line_raw, clear_end_of_line_raw,
7279 encode_terminal_code, write_glyphs, term_init): Ditto.
7280
7281 * sysdep.c (reset_sys_modes): Change for Lisp_Object selected_frame.
7282 (kbd_input_ast, read_input_waiting): Ditto.
7283
7284 * minibuf.c (choose_minibuf_frame): Change for Lisp_Object
7285 selected_frame.
7286 (read_minibuf): Ditto.
7287
7288 * keyboard.c (command_loop_1): Change for Lisp_Object
7289 selected_frame.
7290 (cmd_error_internal, command_loop_1, read_char,
7291 kbd_buffer_get_event, read_avail_input,
7292 read_char_minibuf_menu_prompt, read_key_sequence, Fsuspend_emacs,
7293 interrupt_signal, quit_throw_to_read_char): Ditto.
7294
7295 * fontset.c (Ffont_info): Change for Lisp_Object selected_frame.
7296 (Ffontset_info): DItto.
7297
7298 * emacs.c (handle_USR1_signal): Change for Lisp_Object selected_frame.
7299
7300 * dispnew.c (selected_frame): Make it a Lisp_Object.
7301 (adjust_frame_glyphs_initially): Change for Lisp_Object selected_frame.
7302 (direct_output_for_insert, direct_output_forward_char,
7303 init_display): Ditto.
7304
7305 * data.c (swap_in_symval_forwarding): Change for Lisp_Object
7306 selected_frame.
7307 (set_internal): Ditto.
7308
7309 * buffer.c (Fother_buffer): Change for Lisp_Object selected_frame.
7310 (record_buffer): Ditto.
7311
7312 * frame.c (Fmake_terminal_frame): Use SELECTED_FRAME.
7313 (do_switch_frame): Change for Lisp_Object selected_frame.
7314 (Fselected_frame): Ditto.
7315 (Fframe_first_window): Use SELECTED_FRAME.
7316 (Fframe_root_window): Change for Lisp_Object selected_frame.
7317 (Fframe_selected_window, Fset_frame_selected_window, Fnext_frame,
7318 Fprevious_frame, other_visible_frames, Fdelete_frame,
7319 Fmouse_position, Fmouse_pixel_position, Fmake_frame_visible,
7320 Fmake_frame_invisible, Ficonify_frame, Fraise_frame, Flower_frame,
7321 Fframe_parameters, Fmodify_frame_parameters, Fframe_char_height,
7322 Fframe_char_width, Fframe_pixel_height, Fframe_pixel_width,
7323 Fset_frame_height, Fset_frame_width): Ditto.
7324
73251999-09-13 Gerd Moellmann <gerd@gnu.org>
7326
7327 * xdisp.c (message2_nolog): Change for Lisp_Object selected_frame.
7328 (message3_nolog, message_with_string, message,
7329 setup_echo_area_for_printing, truncate_echo_area,
7330 prepare_menu_bars, redisplay_internal, Fdump_tool_bar_row): Ditto.
7331
7332 * xmenu.c (Fx_popup_menu): Change for Lisp_Object selected_frame.
7333 (Fx_popup_dialog): Ditto.
7334
7335 * xfns.c (check_x_frame): Change for Lisp_Object selected_frame.
7336 (check_x_display_info, x_get_resource_string): Ditto.
7337
7338 * xterm.c (XTcursor_to): Change for Lisp_Object selected_frame.
7339 (x_clear_frame, XTring_bell, XTmouse_position, XTread_socket): Ditto.
7340 (XRINGBELL): Removed.
7341
7342 * window.c (Fminibuffer_window): Change for Lisp_Object
7343 selected_frame.
7344 (Fwindow_at, Fprevious_window, window_loop, select_window_1,
7345 display_buffer_1, Fdisplay_buffer, temp_output_buffer_show,
7346 Fcurrent_window_configuration, init_window_once): Ditto.
7347
7348 * frame.h (SELECTED_FRAME): New.
7349
73501999-09-12 Ken Raeburn <raeburn@gnu.org>
7351
7352 * category.c (word_boundary_p): Use XCAR and XCDR.
7353 * ccl.c (ccl_driver, resolve_symbol_ccl_program,
7354 Fregister_code_conversion_map): Likewise.
7355 * coding.c (setup_coding_system, detect_coding_system,
7356 Ffind_operation_coding_system, Fset_coding_priority_internal):
7357 Likewise.
7358 * doc.c (get_doc_string, Fdocumentation,
7359 store_function_docstring): Likewise.
7360 * editfns.c (save_restriction_restore): Likewise.
7361 * eval.c (Fcond, Fmacroexpand, Fcondition_case, wants_debugger,
7362 skip_debugger, find_handler_clause, Fautoload, Fapply,
7363 run_hook_with_args, run_hook_list_with_args, Ffetch_bytecode):
7364 Likewise.
7365 * fileio.c (Ffind_file_name_handler, Finsert_file_contents,
7366 Fwrite_region, do_auto_save_unwind, Fdo_auto_save,
7367 Fread_file_name): Likewise.
7368 * filelock.c (unlock_all_files): Likewise.
7369 * insdel.c (Fcombine_after_change_execute): Likewise.
7370 * intervals.c (adjust_intervals_for_insertion): Likewise.
7371 * keymap.c (get_keymap_1, Fkeymap_parent, Fset_keymap_parent,
7372 Fset_keymap_parent, fix_submap_inheritance, access_keymap,
7373 store_in_keymap, Fcopy_keymap, define_as_prefix,
7374 current_minor_maps, Faccessible_keymaps,
7375 accessible_keymaps_char_table, Fkey_description,
7376 Fwhere_is_internal, where_is_internal_2, where_is_internal_1,
7377 describe_buffer_bindings, describe_map_tree, shadow_lookup,
7378 describe_map): Likewise.
7379 * lread.c (Fload, load_unwind, close_load_descs, read_vector,
7380 read_list, init_lread): Likewise.
7381 * search.c (Fmatch_data): Likewise.
7382 * sunfns.c (Fsun_menu_internal): Likewise.
7383 * syntax.c (describe_syntax): Likewise.
7384 * undo.c (record_insert, record_delete, Fundo_boundary,
7385 truncate_undo_list): Likewise.
7386 * vmsproc.c (child_sig): Likewise.
7387
7388 * editfns.c (Fformat): Use XFLOAT_DATA.
7389
73901999-09-12 Gerd Moellmann <gerd@gnu.org>
7391
7392 * keyboard.c (command_loop_1): Resize mini-window to the
7393 exact size of a message displayed, if any.
7394
7395 * xdisp.c (resize_mini_window): Add parameter exact_p. Resize
7396 to exact size if exact_p is non-zero.
7397 (display_echo_area_1): Call resize_mini_window with
7398 new parameter.
7399 (redisplay_internal): Ditto.
7400 (resize_echo_area_axactly): New.
7401
7402 * minibuf.c (read_minibuf_unwind): Call resize_mini_window with
7403 new parameter.
7404
7405 * dispextern.h: Change prototype of resize_mini_window.
7406 Add prototype for resize_echo_area_axactly.
7407
7408 * xfaces.c (Fx_family_fonts): Replaces Fx_font_list.
7409 (syms_of_xfaces): Defsubr accordingly.
7410
7411 * xdisp.c (hscroll_window_tree): Choose cursor row from
7412 desired or current matrix.
7413 (redisplay_internal): Hscroll before updating.
7414
74151999-09-12 Gerd Moellmann <gerd@gnu.org>
7416
7417 * syntax.c (Fforward_word): Use prompt_end_charpos instead
7418 of minibuffer_prompt_length.
7419
7420 * minibuf.c (read_minibuf): Use prompt_end_charpos instead
7421 of minibuffer_prompt_length.
7422 (read_minibuf_unwind): Ditto.
7423 (Fminibuffer_complete_and_exit): Ditto.
7424 (Fminibuffer_complete_word): Ditto.
7425 (Fminibuffer_prompt_end): Ditto.
7426
7427 * editfns.c (Fbuffer_string): Use prompt_end_charpos instead
7428 of minibuffer_prompt_length.
7429 (Fline_beginning_position): Ditto.
7430
7431 * buffer.c (Fget_buffer_create): Use prompt_end_charpos instead
7432 of minibuffer_prompt_length.
7433 (Fmake_indirect_buffer): Ditto.
7434 (Fkill_buffer): Ditto.
7435 (Ferase_buffer): Ditto.
7436
7437 * buffer.h (prompt_end_charpos): Replaces
7438 minibuffer_prompt_length.
7439
427ec082 7440 * minibuf.c (read_minibuf): Return mini-buffer contents
26901792
DL
7441 without the prompt.
7442
7443 * editfns.c (make_buffer_string_both): Take out the code
7444 to handle mini-buffer prompts.
7445 (Fbuffer_string): Handle the prompt here, instead.
7446
7447 * xfaces.c (lface_from_face_name): Resolve face aliases.
7448 (Qmode_line): Replaces Qmodeline.
7449 (realize_basic_faces): Use Qmode_line.
7450 (syms_of_xfaces): Initialize Qmode_line.
7451
74521999-09-12 Gerd Moellmann <gerd@gnu.org>
7453
7454 * minibuf.c (read_minibuf): Set minibuf_prompt_width to the
7455 current column after inserting prompt.
7456 (Fminibuffer_prompt_width): Return minibuf_prompt_width.
7457
7458 * xfaces.c (Qframe_update_face_colors): New.
7459 (syms_of_xfaces): Initialize call.
7460 (update_face_from_frame_parameter): Call that function when
7461 the frame's background changes.
7462
74631999-09-12 Richard Stallman <rms@gnu.org>
7464
7465 * insdel.c (del_range_1): Don't treat minibuffer prompt specially.
7466
74671999-09-12 Ken Raeburn <raeburn@gnu.org>
7468
7469 * alloc.c (Fcons, pure_cons, Fpurecopy, Fgarbage_collect,
7470 mark_object, mark_buffer): Use XCAR and XCDR.
7471 * bytecode.c (Fbyte_code): Likewise.
7472 * callint.c (Fcall_interactively, Fprefix_numeric_value):
7473 Likewise.
7474 * callproc.c (Fcall_process, Fcall_process_region, child_setup,
7475 getenv_internal): Likewise.
7476 * dired.c (file_name_completion): Likewise.
7477 * fns.c (Fsafe_length, concat, Fcopy_alist, Fmember, Fmemq, Fassq,
7478 assq_no_quit, Fassoc, Frassq, Frassoc, Fdelq, Fdelete, Freverse,
7479 Fplist_get, Fplist_put, internal_equal, mapcar1): Likewise.
7480 * indent.c (Fcompute_motion): Likewise.
7481 * process.c (decode_status, Fprocess_status, Fprocess_exit_status,
7482 list_processes_1, Fstart_process, Fopen_network_stream,
7483 wait_reading_process_input, read_process_output_call,
7484 kill_buffer_processes, sigchld_handler, exec_sentinel_unwind,
7485 status_notify, wait_reading_process_input): Likewise.
7486 * textprop.c (PLIST_ELT_P, property_value, set_properties,
7487 extend_property_ranges): Likewise.
7488 * w32faces.c (Fpixmap_spec_p, merge_face_list): Likewise.
7489 * w32fns.c (x_window_to_frame, x_set_frame_parameters,
7490 x_report_frame_params, x_set_cursor_type, x_icon_type,
7491 x_figure_window_size, Fx_create_frame, w32_load_system_font,
7492 w32_load_font, enum_font_cb2, w32_list_bdf_fonts, w32_list_fonts,
7493 w32_list_synthesized_fonts, w32_find_ccl_program, Fx_list_fonts,
7494 Fw32_find_bdf_fonts, w32_find_bdf_fonts_in_dir,
7495 x_display_info_for_name, Fx_display_list): Likewise.
7496 * w32menu.c (menubar_id_to_frame, single_keymap_panes,
7497 Fx_popup_menu, Fx_popup_dialog): Likewise.
7498 * w32proc.c (Fw32_set_keyboard_layout): Likewise.
7499 * w32term.c (x_window_to_scroll_bar, w32_read_socket,
7500 w32_term_init, x_delete_display): Likewise.
7501 * xfns.c (x_window_to_frame, x_any_window_to_frame,
7502 x_non_menubar_window_to_frame, x_menubar_window_to_frame,
7503 x_top_window_to_frame, x_set_frame_parameters,
7504 x_report_frame_params, x_set_cursor_type, x_icon_type,
7505 x_figure_window_size, Fx_create_frame, x_display_info_for_name,
7506 Fx_display_list, x_create_tip_frame): Likewise.
7507 * xmenu.c (menubar_id_to_frame, single_keymap_panes,
7508 Fx_popup_menu, Fx_popup_dialog): Likewise.
7509 * xselect.c (x_own_selection, x_get_local_selection,
7510 x_handle_selection_request, x_handle_selection_clear,
7511 x_clear_frame_selections, wait_for_property_change_unwind,
7512 wait_for_property_change, x_handle_property_notify,
7513 copy_multiple_data, x_get_foreign_selection,
7514 lisp_data_to_selection_data, clean_local_selection_data,
7515 x_handle_selection_notify, Fx_get_selection_internal,
7516 x_disown_buffer_selections): Likewise.
7517 * xterm.c (x_window_to_scroll_bar, XTread_socket, x_list_fonts,
7518 x_load_font, x_find_ccl_program, x_term_init, x_delete_display):
7519 Likewise.
7520
7521 * alloc.c (make_float, make_pure_float, Fpurecopy): Use
7522 XFLOAT_DATA.
7523 * bytecode.c (Fbyte_code): Likewise.
7524 * floatfns.c (extract_float, Fexpt, Fabs, rounding_driver,
7525 fmod_float): Likewise.
7526
75271999-09-11 Richard Stallman <rms@gnu.org>
7528
7529 * xdisp.c (run_window_scroll_functions): If hook functions switch
7530 buffers, switch back after.
7531
75321999-09-11 Ken Raeburn <raeburn@gnu.org>
7533
7534 * charset.h (GET_TRANSLATION_TABLE): Use XCDR.
7535 * frame.h (FOR_EACH_FRAME): Use XCAR and XCDR.
7536 (PIXEL_X_FROM_CANON_X, PIXEL_Y_FROM_CANON_Y): Use XFLOAT_DATA.
7537 * keyboard.h (EVENT_HEAD, EVENT_START, EVENT_END, POSN_WINDOW,
7538 POSN_BUFFER_POSN, POSN_WINDOW_POSN, POSN_TIMESTAMP): Use XCAR and
7539 XCDR.
7540 * syntax.h (SYNTAX, SYNTAX_WITH_FLAGS, SYNTAX_MATCH): Use XCAR and
7541 XCDR.
7542
75431999-09-10 Richard Stallman <rms@gnu.org>
7544
7545 * xterm.c (XTread_socket): In XSetInputFocus, use RevertToParent,
7546 not RevertToPointerRoot.
7547 (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
7548 Fix the code to clear around the scroll bar.
7549
75501999-09-10 Keisuke Nishida <kxn30@po.cwru.edu>
7551
7552 * print.c: Support print-circle and related features.
7553 (Vprint_gensym_alist): Removed.
7554 (Vprint_circle, Vprint_continuous_numbering, print_number_index
7555 Vprint_number_table): New variables.
7556 (PRINT_NUMBER_OBJECT, PRINT_NUMBER_STATUS): New macros.
7557 (PRINTPREPARE, PRINTFINISH): Don't set Vprint_gensym_alist.
7558 (print, print_preprocess, print_preprocess_string, print_object):
7559 New/modified functions with print-circle feature. Use
7560 Vprint_number_table instead of Vprint_gensym_alist for print-gensym.
7561 (syms_of_print): Defined new Lisp variables `print-circle',
7562 `print-continuous-numbering', `print-number-table'.
7563
75641999-09-10 Gerd Moellmann <gerd@gnu.org>
7565
7566 * xfns.c (x_build_heuristic_mask): Accept a list `(R G B)'
7567 as background color specification instead of an integer.
7568 (image-cache-eviction-delay): Replaces image-eviction-seconds.
7569 (Vimage_cache_eviction_delay): Replaces Vimage_eviction_seconds.
7570 (clear_image_cache, syms_of_xfns): Use it.
7571 (Qpostscript): Replaces Qghostscript.
7572 (gs_type): Use it.
7573 (gs_image_p): Ditto.
7574 (syms_of_xfns): Initialize Qpostscript.
7575
75761999-09-10 Richard Stallman <rms@gnu.org>
7577
7578 * buffer.c (Ferase_buffer): Don't erase the minibuffer prompt.
7579
75801999-09-09 Richard Stallman <rms@gnu.org>
7581
7582 * editfns.c (Fline_beginning_position): Handle minibuffer prompt here.
7583
7584 * cmds.c (Fbeginning_of_line): Don't handle minibuffer prompt here.
7585
75861999-09-09 Gerd Moellmann <gerd@gnu.org>
7587
7588 * fns.c (Fmakehash): Accept just one optional argument TEST.
7589
7590 * xfns.c (QCindex): New.
7591 (syms_of_xfns): Initialize QCindex.
7592 (gif_load): Use it instead of `:image'.
7593
75941999-09-09 Richard Stallman <rms@gnu.org>
7595
7596 * fileio.c (Fwrite_region): Finish renaming CONFIRM to MUSTBENEW.
7597 (Fwrite_region) [DOS_NT]: Handle `excl' here too.
7598
75991999-09-08 Gerd Moellmann <gerd@gnu.org>
7600
7601 * xdisp.c (Qwhen): Replaces QCwhen.
7602 (syms_of_xdisp): Initialized it instead of QCwhen.
7603 (handle_single_display_prop): Use it instead of QCwhen.
7604
76051999-09-08 Ken'ichi Handa <handa@gnu.org>
7606
7607 * charset.c (translate_char): Reset MSBs of arguments of
7608 MAKE_CHAR.
7609 (CHAR_COMPONENTS_VALID_P): Fix for ASCII.
7610
76111999-09-08 Lars Magne Ingebrigtsen <larsi@gnus.org>
7612
7613 * editfns.c (Fbufsize): Accept an extra BUFFER parameter.
7614
7615 * fns.c (Fbase64_decode_region): Don't place point outside of the
7616 current accessible portion.
7617
76181999-09-07 Richard Stallman <rms@gnu.org>
7619
7620 * keymap.c (fix_submap_inheritance): Do nothing if the proper
7621 parent is an ancestor of SUBMAP; otherwise, add it as the
7622 ultimate ancestor.
7623
76241999-09-07 Gerd Moellmann <gerd@gnu.org>
7625
7626 * xdisp.c (handle_single_display_prop): Change conditional
7627 display property to `:when FORM . VALUE'.
7628
76291999-09-07 Richard Stallman <rms@gnu.org>
7630
7631 * fileio.c (Fwrite_region): Doc fix.
7632
76331999-09-07 Stefan Monnier <monnier@cs.yale.edu>
7634
7635 * fileio.c (Qexcl): New variable.
7636 (report_file_error): Handle EEXIST specially.
7637 (Fwrite_region): Special handling for CONFIRM = `excl'.
7638 (syms_of_fileio): Initialize Qexcl.
7639
76401999-09-07 Gerd Moellmann <gerd@gnu.org>
7641
7642 * xfns.c (x_set_foreground_color): Call
7643 update_face_from_frame_parameter.
7644 (x_set_background_color): Ditto.
7645 (x_set_mouse_color): Ditto.
7646 (x_set_cursor_color): Ditto.
7647 (x_set_border_color): Ditto.
7648 (x_set_scroll_bar_foreground): Ditto.
7649 (x_set_scroll_bar_background): Ditto.
7650
7651 * xfaces.c (recompute_basic_faces): Clear face cache.
7652 (Finternal_set_lisp_face_attribute): Modify frame parameters
7653 if attributes of certain faces are changed.
7654 (update_face_from_frame_parameter): New.
7655
7656 * xfaces.c (realize_basic_faces): Realize new basic faces.
7657
7658 * dispextern.h (SCROLL_BAR_FACE_ID, BORDER_FACE_ID,
7659 CURSOR_FACE_ID, MOUSE_FACE_ID): New.
7660
7661 * xfaces.c (Qscroll_bar, Qcursor, Qborder, Qmouse): New.
7662 (syms_of_xfaces): Intialize new symbols.
7663
7664 * fns.c (Fmakehash): Take one argument, test, make all the
7665 rest keyword arguments.
7666
7667 * window.c (Fset_window_margins): Make window the first argument.
7668 (set_window_buffer): Call Fset_window_margins with window as first
7669 argument.
7670
76711999-09-07 Gerd Moellmann <gerd@gnu.org>
7672
7673 * xfaces.c (Qfringe): Replaces Qmargin.
7674
76751999-09-07 Kenichi Handa <handa@etl.go.jp>
7676
7677 * charset.h: Lots of comments fixed.
7678 (PARSE_MULTIBYTE_SEQ): Make it work also for ASCII string.
7679 (STRING_CHAR_AND_CHAR_LENGTH): This macro removed.
7680
7681 * charset.c : Lots of comments fixed.
7682 (SPLIT_MULTIBYTE_SEQ): Make it work also for ASCII string.
7683 (CHAR_COMPONENTS_VALID_P): Name changed from
7684 CHAR_COMPONENT_VALID_P. Caller changed.
7685
76861999-09-06 Richard Stallman <rms@gnu.org>
7687
7688 * insdel.c (syms_of_insdel): Define Lisp variable
7689 inhibit-modification-hooks.
7690
76911999-09-06 Michael Sperber [Mr. Preprocessor] <sperber@informatik.uni-tuebingen.de>
7692
7693 * s/aix4-2.h (ALIGN_DATA_RELOC): Undefined to support new
7694 unexaix.c.
7695
7696 * s/aix3-1.h (ALIGN_DATA_RELOC): Defined to support new unexaix.c.
7697
76981999-09-06 Dave Love <fx@gnu.org>
7699
7700 * unexaix.c: New version incorporating Michael Sperber's changes
7701 from XEmacs. Should solve problems on AIX 4.3.
7702
7703 * lread.c (Vbyte_boolean_vars): New variable.
7704 (defvar_bool, syms_of_lread): Use it.
7705
77061999-09-05 Richard Stallman <rms@gnu.org>
7707
7708 * minibuf.c (read_minibuf): Put all three properties on the
7709 same range, the whole prompt.
7710
77111999-09-05 Gerd Moellmann <gerd@gnu.org>
7712
7713 * sound.c (Qplay_sound_functions): Replaces Qplay_sound_hook.
7714 (Fplay_sound, syms_of_sound): Use it.
7715 (parse_sound): Allow float volume values in the range [0, 1].
7716 (Fplay_sound): Ditto.
7717
7718 * window.c (Fset_window_vscroll): Make window the first argument,
7719 amount to scroll the second. Take non-negative vscroll as
7720 argument.
7721 (Fwindow_vscroll): Return non-negative vscroll.
7722
7723 * xfns.c (Fx_show_tip): Improve documentation.
7724
77251999-09-05 Gerd Moellmann <gerd@gnu.org>
7726
7727 * buffer.c, buffer.h, dispextern.h, dispnew.c, keyboard.c,
7728 window.c, xdisp.c, xfaces.c, xterm.c, keyboard.h: Change
7729 `top-line' and `top_line' to `header-line' and `header_line'.
7730 Likewise for similar spellings.
7731
77321999-09-05 Gerd Moellmann <gerd@gnu.org>
7733
7734 * xdisp.c (row_containing_pos): New.
7735 (try_window_id): Use it.
7736
7737 * alloc.c, dispextern.h, dispnew.c, frame.c, frame.h, keyboard.c,
7738 lisp.h, termhooks.h, window.c xdisp.c, xfaces.c, xfns.c, xterm.c:
7739 Change spelling of `toolbar' to `tool_bar' or `tool-bar'.
7740 Likewise for upper-case etc.
7741
77421999-09-05 Gerd Moellmann <gerd@gnu.org>
7743
7744 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
7745 Fix reference to renamed variable.
7746
77471999-09-04 Gerd Moellmann <gerd@gnu.org>
7748
7749 * window.c (Qwindow_size_fixed): Replaces Qfixed_window_size.
427ec082 7750 (window_fixed_size_p): Use Qwindow_size_fixed instead of
26901792
DL
7751 Qfixed_window_size.
7752 (syms_of_window): Ditto.
7753
7754 * fns.c (Fmakehash): Exchange optional test and size arguments.
7755
77561999-09-03 Gerd Moellmann <gerd@gnu.org>
7757
7758 * xterm.c (XTset_vertical_scroll_bar): Block input when clearing
7759 under newly created scroll bar.
7760 (expose_window): If window is not yet fully initialized, do
7761 nothing. This can happen when toolkit scroll bars are used and a
7762 window is split. Reconfiguring the scroll bars will generate an
7763 expose for a newly created window.
7764
7765 * frame.h (struct frame): New member `gamma'.
7766
7767 * xfns.c: Include math.h. Add extern declaration for atof in case
7768 we don't see one.
7769 (Qscreen_gamma): New.
7770 (struct x_frame_parm_table): Add prototypes, add
7771 x_set_screen_gamma.
7772 (gamma_correct): New function.
7773 (defined_color): Call it.
7774 (x_set_screen_gamma): New.
7775 (x_set_title): Add parameter old_value.
7776 (RES_TYPE_FLOAT): New.
7777 (x_get_arg): Handle RES_TYPE_FLOAT.
7778 (Fx_create_frame): Call x_default_parameter for `screen-gamma'.
7779 (lookup_pixel_color): Change call to x_alloc_nearest_color to
7780 new prototype.
7781 (lookup_rgb_color): Ditto.
7782 (syms_of_xfns): Initialize Qscreen_gamma.
7783
7784 * xterm.c (x_alloc_nearest_color_for_widget) [USE_X_TOOLKIT]:
7785 New. Allocate color for lwlib widgets.
7786 (x_alloc_nearest_color): Change parameter list include the
7787 frame on which to allocate colors. Gamma-correct colors.
7788 (x_alloc_lighter_color): Call x_alloc_lighter_color with new
7789 parameter list.
7790
7791 * xterm.h: Change protorype of x_alloc_nearest_color.
7792
77931999-09-03 Richard Stallman <rms@gnu.org>
7794
7795 * callproc.c: Delete the system-independent include of stdlib.h
7796 (leaving only the one in the WINDOWSNT conditional).
7797
77981999-09-03 Andrew Choi <choi@cs.hku.hk>
7799
7800 * callproc.c (call-process) [macintosh]: Call mac_run_command in
7801 sysdep.c. The Mac code is modeled after the DOS code.
427ec082 7802
26901792
DL
7803 * dispextern.h [macintosh]: Include macterm.h to define substitute X
7804 Window types and macros.
7805
7806 * frame.h: Do nothing if included a second time.
7807 (enum output_method): Add mac_output frame type.
7808 (union output_data): Add new alternative `mac'.
7809 (FRAME_MAC_P): New macro.
427ec082 7810
26901792
DL
7811 * frame.c (Fframep) [macintosh]: Handle mac frame type.
7812 (syms_of_frame_1): Initialize Qmac.
7813 (make_terminal_frame) [macintosh]: Initialize output_data.mac fields.
7814 (Fmake_terminal_frame) [macintosh]: Add an alternate error check.
7815 (Fmodify_frame_parameters) [macintosh]: Call
7816 mac_set_frame_parameter in macterm.c.
427ec082 7817
26901792
DL
7818 * keyboard.c [macintosh]: Set KBD_BUFFER_SIZE to a smaller value
7819 (512) because Mac compilers limit local data of a function to 32K.
427ec082 7820
26901792
DL
7821 * make-docfiles.c: Correctly handle input files with Mac-style
7822 eol's.
427ec082 7823
26901792 7824 * sysdep.c: Define numerous routines to emulate Unix system calls.
427ec082 7825
26901792
DL
7826 * xfaces.c: on MacOS, define the set of colors listed in rgb.txt
7827 file of an X Window environment.
427ec082 7828
26901792
DL
7829 * xfaces.c: on MacOS, define the Lisp functions x-display-color-p,
7830 x-display-grayscale, x-color-defined-p, and x-color-values.
427ec082 7831
26901792
DL
7832 * sysdep.c [macintosh] (stat, fstat, mkdir, rmdir, utime, access)
7833 (open, creat, unlink, read, write, rename, fopen, pause, alarm)
7834 (signal, sleep, gmtime, localtime, ctime, time, index, mktemp)
7835 (getpwuid, getpwnam, dup, dup2, isatty, getgid, getegid, getuid)
7836 (geteuid, getpid, getenv, uname, opendir, closedir, readdir, getwd.):
7837 New functions, replacing POSIX features.
427ec082 7838
26901792
DL
7839 * sysdep.c [macintosh] (Mac2UnixPathname, Unix2MacPathname, CheckAlarm)
7840 (InitMyPasswd, GetTempDirName, mystrchr, mystrtok, mystrcpy):
7841 (InitEmacsPasswdDir, run_mac_command): New subroutines.
7842
7843 * sysdep.c [macintosh] (targetTicks, alarm_signal_func, myPasswdName)
7844 (myPasswd, emacsPasswdDir, emacsPasswd, myPasswdInited, mask)
7845 (myPasswdDir, TempDirName, sys_siglist): New variables.
7846
7847 * sysdep.c [macintosh] (execvp, wait, croak, fork, kill, sigsetmask)
7848 (sigblock, request_sigio, unrequest_sigio, setpgrp, pipe, symlink)
7849 (link, lstat, readlink, umask, chmod, sbrk, fsync, ioctl):
7850 Define empty stubs so Emacs will link.
7851
78521999-09-03 Gerd Moellmann <gerd@gnu.org>
7853
7854 * xdisp.c: Use XCAR and XCDR instead of XCONS.
7855
7856 * window.h: New member frozen_window_start_p.
7857
7858 * window.c (foreach_window, foreach_window_1): New.
7859 (freeze_window_start, freeze_window_starts): New.
7860 (make_window): Initialize frozen_window_start_p.
7861 (replace_window): Ditto.
7862 (Fset_window_point): Remove references to deleted variables.
7863 (Fset_window_start): Ditto.
7864
7865 * xdisp.c (Vresize_mini_config, resize_mini_frame,
7866 resize_mini_initial_height): Removed.
7867 (syms_of_xdisp): Remove references to these variables.
7868 (resize_mini_window): Don't save window configuration, freeze
7869 window starts instead. Enlarge window until displaying an empty
7870 buffer, then shrink it. Make the function externally visible.
7871 (redisplay_window): Treat frozen window start like forced start,
7872 but accept point outside of the window.
7873
7874 * dispextern.h: Add function prototype for resize_mini_window.
7875
7876 * minibuf.c (read_minibuf_unwind): Resize mini-window when
7877 reaching minibuf_level 0.
7878
7879 * lisp.h: Remove extern declarations for variables deleted from
7880 xdisp.c.
7881
7882 * dispnew.c (adjust_frame_glyphs): Remove reference to
7883 Vresize_mini_config.
7884
78851999-09-03 Gerd Moellmann <gerd@gnu.org>
7886
7887 * xfns.c (x_set_scroll_bar_width): Change conditional compilation
7888 to USE_TOOLKIT_SCROLL_BARS.
7889
7890 * xterm.c (x_scroll_bar_create): Don't clear under scroll bar
7891 here.
7892 (XTset_vertical_scroll_bar): Clarify position computations. Clear
7893 under newly created scroll bar. Put toolkit scroll bars in the
7894 middle of the area reserved for the scroll bar.
7895
78961999-09-03 Kenichi Handa <handa@etl.go.jp>
7897
7898 The following changes are for the new handling of mulitbyte
7899 sequence. Now, except for a composite character, no multibyte
7900 character in string/buffer has trailing garbage bytes. For
7901 instance, the length of string "\201\300\300" is now 2, the first
7902 character is Latin-1 A-grave, the second is raw \300.
7903
7904 * charset.h (MAKE_NON_ASCII_CHAR): Handle the case that C1 or C2
7905 are negative.
7906 (MAKE_CHAR): Don't set MSBs of C1 and C2 to 0.
7907 (VALID_MULTIBYTE_CHAR_P): This macro deleted.
7908 (PARSE_COMPOSITE_SEQ): New macro.
7909 (PARSE_CHARACTER_SEQ): New macro.
427ec082 7910 (PARSE_MULTIBYTE_SEQ): New macro.
26901792
DL
7911 (CHAR_PRINTABLE_P): New macro.
7912 (STRING_CHAR): Adjusted for the change of string_to_non_ascii_char.
7913 (STRING_CHAR_AND_LENGTH): Likewise.
7914 (STRING_CHAR_AND_CHAR_LENGTH): Define it as STRING_CHAR_AND_LENGTH.
7915 (INC_POS): Use the macro PARSE_MULTIBYTE_SEQ.
7916 (DEC_POS, BUF_INC_POS, BUF_DEC_POS): Likewise,
7917
7918 * charset.c (SPLIT_COMPOSITE_SEQ): New macro.
7919 (SPLIT_CHARACTER_SEQ): New macro.
7920 (SPLIT_MULTIBYTE_SEQ): New macro.
7921 (CHAR_COMPONENT_VALID_P): New macro.
7922 (non_ascii_char_to_string): Generate a multibyte sequence as far
7923 as possible.
7924 (string_to_non_ascii_char): The 4th arg exclude_tail_garbage is
7925 deleted. Caller changed. Use the macro SPLIT_MULTIBYTE_SEQ.
7926 (split_non_ascii_string): Likewise.
7927 (multibyte_form_length): Use the macro PARSE_MULTIBYTE_SEQ.
7928 (char_printable_p): New function.
7929 (translate_char): Check character by NATNUMP instead of INTEGERP.
7930 (unibyte_char_to_multibyte): Call char_valid_p instead of
7931 VALID_MULTIBYTE_CHAR_P.
7932 (Fmake_char_internal): Check the arguments more rigidly.
7933 (Fcharset_after): Use the macro SPLIT_MULTIBYTE_SEQ.
7934 (char_valid_p): Check the validity by CHAR_COMPONENT_VALID_P.
7935 (Fmultibyte_char_to_unibyte): Check the validity of character by
7936 CHAR_VALID_P.
7937 (chars_in_text): Call multibyte_chars_in_text.
7938 (multibyte_chars_in_text): Use the macro PARSE_MULTIBYTE_SEQ.
7939 (Fcompose_string): Use the macro STRING_CHAR_AND_LENGTH instead of
7940 STRING_CHAR_AND_CHAR_LENGTH (which is obsolete now).
7941
7942 * data.c (Faset): Adjust the way to check byte-combining
7943 possibility for the new handling of multibyte sequence.
7944
7945 * editfns.c (Fsubst_char_in_region): Likewise.
7946
7947 * fns.c (count_combining): Use the macro PARSE_MULTIBYTE_SEQ.
7948 (string_char_to_byte): Likewise.
7949 (string_byte_to_char): Likewise.
7950
7951 * indent.c (MULTIBYTE_BYTES_WIDTH): Delete the 2nd arg C. Use the
7952 macro STRING_CHAR_AND_LENGTH. Caller changed.
7953
7954 * insdel.c (count_combining_composition): New function.
7955 (count_combining_before): Adjust the way to check byte-combining
7956 possibility for the new handling of multibyte sequence. Call
7957 count_combining_composition for a composite character.
7958 (count_combining_after): Likewise.
7959
7960 * print.c (print_string): Use the macro STRING_CHAR_AND_LENGTH.
7961 (print): Likewise.
7962
7963 * dispextern.h (struct it): Change the size of the member
7964 `ctl_chars'.
7965
7966 * xdisp.c (get_next_display_element): Display incomplete multibyte
7967 sequence (e.g. \222\300) by octal form.
7968
79691999-09-02 Gerd Moellmann <gerd@gnu.org>
7970
7971 * xterm.h (VERTICAL_SCROLL_BAR_WIDTH_TRIM): Change from 2 to 0.
7972
7973 * fns.c (Fhash_table_weakness): Replaces Fhash_table_weak.
7974 (cmpfn_eql, sxhash): Use XFLOAT_DATA.
7975
79761999-09-02 Gerd Moellmann <gerd@gnu.org>
7977
7978 * buffer.c (set_buffer_internal): Never set
7979 windows_or_buffers_changed.
7980
7981 * xdisp.c (try_window_id): Reset first_unchanged_at_end_row
7982 if we have displayed to the bottom of the window.
7983
7984 * syntax.c (Fforward_word): Stop at a mini-buffer prompt end
7985 in both directions. Extend documentation.
7986
79871999-09-01 Gerd Moellmann <gerd@gnu.org>
7988
7989 * minibuf.c (read_minibuf): Flush display after setting cursor to
7990 column 0.
7991
79921999-08-31 Gerd Moellmann <gerd@gnu.org>
7993
7994 * s/freebsd.h (__FreeBSD_version): Don't define it if it is
7995 already defined. This avoids a warning from buffer.c.
7996
79971999-08-30 Gerd Moellmann <gerd@gnu.org>
7998
7999 * xterm.h (FRAME_X_FLAGS_AREA_COLS): Define it as the total width
8000 of both margins.
8001 (FRAME_X_FLAGS_AREA_WIDTH): Likewise.
8002 (FRAME_X_LEFT_FLAGS_AREA_WIDTH): New.
8003 (FRAME_X_RIGHT_FLAGS_AREA_WIDTH): New.
8004
8005 * frame.h (FRAME_WINDOW_WIDTH_ARG): Add in FRAME_FLAGS_AREA_COLS
8006 once instead of twice.
8007 (FRAME_LEFT_FLAGS_AREA_WIDTH): New.
8008
8009 * xterm.c: Remove unused bitmaps.
8010 (continued_bits, continuation_bits, overlay_bits): Change images.
8011 (x_draw_vertical_border): Use FRAME_X_RIGHT_FLAGS_AREA_WIDTH
8012 instead of FRAME_X_FLAGS_AREA_WIDTH.
8013 (x_after_update_window_line): Ditto.
8014 (x_draw_bitmap): Likewise.
8015 (x_draw_row_bitmaps): Likewise.
8016 (x_draw_glyph_string_box): Likewise.
8017 (x_draw_glyphs): Likewise.
8018 (x_scroll_run): Likewise.
8019 (expose_window_tree): Likewise.
8020 (note_mode_line_highlight): Likewise.
8021 (XTset_vertical_scroll_bar): Likewise.
8022 (x_clip_to_row): Likewise.
8023 (x_set_window_size): Likewise.
8024
8025 * xfns.c (x_figure_window_size): Use FRAME_FLAGS_AREA_COLS instead
8026 of 2 * that value.
8027
8028 * xdisp.c (window_box_width): Use FRAME_FLAGS_AREA_COLS instead of
8029 2 * that value.
8030 (window_box_left): Use FRAME_LEFT_FLAGS_AREA_WIDTH instead of
8031 FRAME_FLAGS_AREA_WIDTH.
8032
8033 * window.c (coordinates_in_window): Use
8034 FRAME_LEFT_FLAGS_AREA_WIDTH instead of FRAME_FLAGS_AREA_WIDTH.
8035 (window_internal_width): Subtract FRAME_FLAGS_AREA_WIDTH once
8036 instead of twice.
8037
427ec082 8038 * widget.c (set_frame_size): Set flags_area_extra to
26901792
DL
8039 FRAME_FLAGS_AREA_WIDTH instead of 2 * that width.
8040 (EmacsFrameSetCharSize): Ditto.
8041
8042 * dispnew.c (mode_line_string): Add FRAME_LEFT_FLAGS_AREA_WIDTH
8043 instead of FRAME_FLAGS_AREA_WIDTH.
8044
8045 * dispextern.h (WINDOW_DISPLAY_PIXEL_WIDTH): Subtract
8046 FRAME_FLAGS_AREA_COLS once.
8047 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X): Add
8048 FRAME_LEFT_FLAGS_AREA_WIDTH instead of FRAME_FLAGS_AREA_WIDTH.
8049
80501999-08-30 Gerd Moellmann <gerd@gnu.org>
8051
8052 * freebsd.h (C_SWITCH_SYSTEM): Added to let configure find headers
8053 in /usr/X11R6/include which are checked for with AC_CHECK_HEADER.
8054
80551999-08-30 Gerd Moellmann <gerd@gnu.org>
8056
8057 * fns.c (QCweakness): Replaces QCweak.
8058 (Fmake_hash_table): Ditto.
8059 (Fmakehash): Ditto.
8060 (syms_of_fns): Ditto.
8061
80621999-08-29 Richard Stallman <rms@gnu.org>
8063
8064 * search.c (compile_pattern_1): Enable RE_CHAR_CLASSES for regexp.
8065
8066 * sysdep.c (read_input_waiting): Pass read_socket_hook just 4 args.
8067
8068 * syntax.h (SYNTAX_COMMENT_NESTED, SYNTAX_FLAGS_COMMENT_NESTED):
8069 Add support for nested comments.
8070
d7d0dac0
SM
8071 * syntax.c (Fforward_comment, scan_lists, scan_sexps_forward):
8072 Consolidate the forward comment code into the new `forw_comment'.
8073 (forw_comment): New subroutine. Added support for nested comments.
8074 (lisp_parse_state, back_comment, Fmodify_syntax_entry)
8075 (Fparse_partial_sexp): Add support for nested comments.
26901792
DL
8076
80771999-08-28 Ken Raeburn <raeburn@gnu.org>
8078
8079 * lisp.h (struct Lisp_Cons, XCAR, XCDR, struct Lisp_Float): Change
8080 names of structure elements if HIDE_LISP_IMPLEMENTATION is
8081 defined, to help detect code that uses knowledge of the Lisp
8082 internals that it shouldn't have.
8083 (XFLOAT_DATA): New macro.
8084
80851999-08-25 Gerd Moellmann <gerd@gnu.org>
8086
8087 * syntax.c (Fforward_word): If in a mini-buffer and moving
8088 backwards, stop in front of the prompt to prevent accidentially
8089 moving into the read-only prompt.
8090
8091 * window.c (Frecenter): Clear frame if called with nil or no arg.
8092
8093 * xdisp.c (resize_mini_window): Don't resize if
8094 Vmax_mini_window_height is nil. Otherwise, use a default if
8095 Vmax_mini_window_height is not ot a number.
8096 (syms_of_xdisp): Extend documentation of Vmax_mini_window_height.
8097
80981999-08-25 Alexandre Oliva <oliva@dcc.unicamp.br>
8099
8100 * unexelf.c: Merge IRIX debugging info patch from unexsgi.c
8101 * m/iris4d.h: Use unexelf for IRIX 5.*.
8102 * m/iris5d.h: Use unexelf for IRIX 6.*.
8103 * unexsgi.c: Deleted.
8104
8105 * unexelf.c: Auto-detect .sbss section.
8106 (round_up): Make it static.
8107 (unexec): Declare alignment as Elf Word. Skip ``Program
8108 segment above .bss'' test on MIPS without .sbss.
8109 Copy sections .got and .sdata1 sections. Adjust offsets in
8110 sections .sdata, .lit4, .lit8, .got and .sdata1.
8111
81121999-08-25 Gerd Moellmann <gerd@gnu.org>
8113
8114 * xdisp.c (try_window_id): Remove typo.
8115
81161999-08-24 Gerd Moellmann <gerd@gnu.org>
8117
8118 * xdisp.c (try_window_id): Recognize case that PT == ZV and in
8119 unchanged text at the bottom when computing the cursor position.
8120 (message3_nolog): Raise frame only if minibuffer_auto_raise is
8121 set.
8122
8123 * lisp.h (PVEC_TYPE_MASK): Add the bit for hash tables.
8124
81251999-08-24 Gerd Moellmann <gerd@gnu.org>
8126
8127 * xfaces.c (Qmargin): Replacement for Qbitmap_area.
8128 (realize_basic_faces): Replace Qmargin for Qbitmap_area.
8129 (syms_of_xfaces): Ditto.
8130
8131 * window.c (Fset_window_point): Reset Vresize_mini_config.
8132 (Fset_window_start): Ditto.
8133 (set_window_buffer): Ditto.
8134
8135 * dispnew.c (adjust_frame_glyphs): Reset Vresize_mini_config.
8136
8137 * xdisp.c (redisplay_window): Don't ever test just_this_one_p
8138 before calling try_window.
8139 (echo_area_display): If height has changed, update other windows.
8140 (resize_mini_frame, resize_mini_initial_height): New.
8141 (resize_mini_window): Save/restore window configuration
8142 differently.
8143
427ec082 8144 * lisp.h (Vresize_mini_config, resize_mini_frame,
26901792
DL
8145 resize_mini_initial_height): Add extern declarations.
8146
8147 * xterm.c (expose_window_tree): Fix typo CANON_Y_UNIT to
8148 CANON_X_UNIT.
8149
8150 * xfns.c [HAVE_JPEG]: Work around a warning about HAVE_STDLIB_H
8151 being redefined in jconfig.h.
8152
81531999-08-23 Ken'ichi Handa <handa@gnu.org>
8154
8155 * coding.h: Include "ccl.h" instead of "../src/ccl.h".
8156
81571999-08-22 Gerd Moellmann <gerd@gnu.org>
8158
8159 * alloc.c (mark_glyph_matrix): Mark strings only.
8160
8161 * xdisp.c (redisplay_internal): Clear garbaged frames after
8162 resizing mini-window.
8163
81641999-08-22 Gerd Moellmann <gerd@gnu.org>
8165
8166 * xdisp.c (unwind_with_echo_area_buffer): Use
8167 set_buffer_internal_1 instead of set_buffer_internal.
8168 (with_echo_area_buffer): Ditto.
8169
8170 * buffer.c (set_buffer_internal): Set windows_or_buffers_changed
8171 only if buffer is displayed somewhere.
8172
8173 * buffer.h (BUF_COMPUTE_UNCHANGED): New.
8174
8175 * insdel.c (gap_left): Use BUF_COMPUTE_UNCHANGED.
8176 (gap_right): Ditto.
8177 (modify_region): Ditto.
8178
8179 * buffer.c (modify_overlay): Use BUF_COMPUTE_UNCHANGED.
8180
8181 * xdisp.c (Vresize_mini_config): New.
8182 (resize_mini_window): Use it to save restore original window
8183 configuration
8184 (syms_of_xdisp): Initialize it.
8185
8186 * buffer.h (struct buffer): Add prevent_redisplay_optimizations_p.
8187
8188 * dispextern.h (struct glyph_matrix): Add buffer, begv, and zv.
8189
8190 * xdisp.c (reconsider_clip_changes): New.
8191 (redisplay_internal, redisplay_window): Call it.
8192 (mark_window_display_accurate, redisplay_internal): Set current
8193 matrix' buffer, begv, zv.
8194
8195 * window.c (Fset_window_hscroll): Set
8196 prevent_redisplay_optimizations_p instead of clip_changed.
8197 (Fset_window_hscroll): Ditto.
8198 (temp_output_buffer_show): Ditto.
8199 (Fset_window_vscroll): Ditto.
8200
8201 * buffer.c (reset_buffer): Set clip_changed to 0 and
8202 prevent_redisplay_optimizations_p to 1.
8203 (Fget_buffer_create): Set prevent_redisplay_optimizations_p to 1.
8204
8205 * buffer.h (BUF_UNCHANGED_MODIFIED, UNCHANGED_MODIFIED,
8206 BUF_OVERLAY_UNCHANGED_MODIFIED, OVERLAY_UNCHANGED_MODIFIED,
8207 BUF_BEG_UNCHANGED, BEG_UNCHANGED, BUF_END_UNCHANGED,
8208 END_UNCHANGED): New.
8209 (struct buffer_text): Add beg_unchanged, end_unchanged,
8210 unchanged_modified, overlay_unchanged_modified.
8211
8212 * window.h (beg_unchanged, end_unchanged, unchanged_modified,
8213 overlay_unchanged_modified): Removed.
8214 (with_echo_area_unwind_data): Don't save beg/end_unchanged.
8215 (unwind_with_echo_area_buffer): Don't restore them.
8216 (debug_beg_unchanged, debug_end_unchanged) [GLYPH_DEBUG]: Removed.
8217 (text_outside_line_unchanged_p, redisplay_internal,
8218 try_scrolling): Use/set buffer-specific beg/end_unchanged.
8219 (redisplay_window): Let try_window_id be called if more than one
8220 window is displayed. Use/set buffer-specific beg/end_unchanged.
8221 (get_last_unchanged_at_beg_row, get_first_unchanged_at_end_row,
8222 try_window_id):
8223 Use buffer-specific beg/end_unchanged.
8224
8225 * window.h (beg_unchanged, end_unchanged, unchanged_modified,
8226 overlay_unchanged_modified): Remove extern declarations.
8227
8228 * keyboard.c (command_loop_1): Set beg/end_unchanged per
8229 buffer.
8230
8231 * insdel.c (gap_left): Compute beg/end_unchanged per buffer.
8232 (gap_right): Ditto.
8233 (adjust_after_replace): Likewise.
8234 (replace_range, del_range_2, modify_region): Likewise.
8235
8236 * dispnew.c (direct_output_for_insert): Set beg_unchanged
8237 and unchanged_modified per buffer.
8238
8239 * coding.c (code_convert_region): Compute beg/end_unchanged per
8240 buffer.
8241
8242 * buffer.c (modify_overlay): Compute beg/end_unchanged
8243 per buffer.
427ec082 8244 (Fget_buffer_create): Initialize new members of the buffer
26901792
DL
8245 structure.
8246
82471999-08-22 Gerd Moellmann <gerd@gnu.org>
8248
8249 * lisp.h: Add prototype for copy_hash_table and Fcopy_hash_table.
8250
8251 * fns.c (Qkey, Qvalue): Renamed from Qkey_weak, and Qvalue_weak.
8252 (Qkey_value_weak): Removed.
8253 (make_hash_table): Use nil, `key', `value', t for weakness.
8254 (Fmake_hash_table): Ditto.
8255 (copy_hash_table): New.
8256 (Fcopy_hash_table): New.
8257
82581999-08-22 Gerd Moellmann <gerd@gnu.org>
8259
8260 * xfns.c: Call change_frame_size and do_pending_window_change with
d7d0dac0 8261 new parameter.
26901792
DL
8262
82631999-08-21 Gerd Moellmann <gerd@gnu.org>
8264
8265 * xdisp.c (resize_mini_window): Do it for truncate-lines t as
8266 well.
427ec082 8267 (redisplay_internal): Resize mini-window only if text might
26901792
DL
8268 have changed.
8269 (display_echo_area): Reset displayed echo_area_buffer to nil
8270 at the end if we're displaying a nil message.
8271
82721999-08-21 Gerd Moellmann <gerd@gnu.org>
427ec082 8273
26901792
DL
8274 * fns.c (hash_lookup): Test with EQ before calling key comparion
8275 function.
8276 (hash_remove): Ditto.
8277 (cmpfn_eq): Removed.
8278 (cmpfn_eql): Don't test with EQ.
8279 (cmpfn_equal): Ditto.
8280 (make_hash_table): Set comparison function for `eq' to null.
8281
8282 * buffer.c, cmds.c, editfns.c, indent.c, insdel.c, buffer.h:
8283 Remove conditional compilation on NO_PROMPT_IN_BUFFER.
8284
8285 * dispextern.h (NO_PROMPT_IN_BUFFER): Removed.
8286
8287 * window.c, widget.c, process.c, keyboard.c, frame.c, xdisp.c,
8288 xterm.c: Call change_frame_size and do_pending_window_change with
8289 new parameter.
8290
8291 * dispnew.c (do_pending_window_change): Add parameter `safe'.
8292 (change_frame_size): Ditto.
8293 (change_frame_size_1): Ditto. Deley size changes if redisplaying
8294 and not called from a safe place.
8295 (window_change_signal): Call change_frame_size with new parameter.
8296
8297 * dispextern.h: Change prototypes for do_pending_window_change
8298 and change_frame_size.
8299
8300 * xfaces.c (face_at_buffer_position): Don't xassert that
427ec082 8301 window's buffers equals current_buffer; this is not the
26901792
DL
8302 case during echo area display.
8303
83041999-08-21 Gerd Moellmann <gerd@gnu.org>
8305
8306 * xdisp.c, minibuf.c: Remove conditional compilation on
8307 NO_PROMPT_IN_BUFFER.
8308
8309 * minibuf.c (Fminibuffer_prompt_end): New.
8310 (syms_of_minibuf): Defsubr it. Remove
8311 minibuffer-prompt-in-buffer.
8312 (Fminibuffer_prompt_width): Return 0 if not in mini-buffer.
8313 Extend documentation.
8314
8315 * xdisp.c (get_next_display_element): Display \r as ^M.
8316
8317 * xterm.c (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]: Clear
8318 under scroll bar widget.
8319
83201999-08-21 Gerd Moellmann <gerd@gnu.org>
8321
8322 * xdisp.c (minibuffer_scroll_overlap): Removed because not used
8323 anywhere.
8324 (unwind_redisplay): Return nil.
8325 (clear_garbaged_frames): New.
8326 (redisplay_internal): Use it.
8327 (echo_area_display): Ditto.
8328 (resize_mini_window): Mew.
8329 (display_echo_area_1): Use it to resize echo area window.
8330 (redisplay_internal): Use it to resize active mini-window.
8331
8332 * dispextern.h, lisp.h: Add function prototypes.
8333
427ec082 8334 * dispnew.c (set_window_cursor_after_update): Do the
26901792
DL
8335 cursor_in_echo_area case only for a mini-window showing
8336 a message. Don't let cursor end up after the end of a row.
8337
8338 * xdisp.c (echo_area_glyphs, echo_area_message,
8339 echo_area_glyphs_length, previous_echo_glyphs,
8340 previous_echo_area_message, previous_echo_area_glyphs_length):
8341 Removed.
8342 (Vmessage_stack, echo_area_buffer, echo_buffer,
8343 display_last_displayed_message_p, Vwith_echo_area_save_vector): New.
8344 (message2_nolog): Use set_message and clear_message.
8345 (message3): Rename parameter len to nbytes to make clear what
8346 it is.
8347 (message3_nolog): Ditto. Use set_message and clear_message.
8348 (update_echo_area): Rewritten.
8349 (with_echo_area_buffer): New.
8350 (with_echo_area_buffer_unwind_data, unwind_with_area_buffer): New.
8351 (setup_echo_area_for_printing): New.
8352 (display_echo_area, display_echo_area_1): New.
8353
8354 (current_message, current_message_1): New.
427ec082 8355 (push_message, restore_message, pop_message,
26901792
DL
8356 check_message_stack): New.
8357 (truncate_echo_area): Rewritten.
8358 (truncate_message_1): New.
8359 (set_message, set_message_1, clear_message): New.
8360 (echo_area_display): Rewritten.
8361 (redisplay_internal): Check for needed echo area update
8362 differently.
8363 (redisplay_preserve_echo_area): Rewritten.
427ec082 8364 (redisplay_window): Check for mini-window displaying echo area
26901792
DL
8365 message differently.
8366 (syms_of_xdisp): Initialize Vmessage_stack and echo area buffers.
8367 Remove initialzation of removed variables.
8368 (init_xdisp): Remove references to removed variables.
8369
8370 * dispnew.c (adjust_frame_message_buffer): Removed references
8371 to echo_area_glyphs and previous_echo_glyphs.
8372 (direct_output_for_insert): Check for mini-window displaying
8373 echo area message differently.
8374 (update_frame): Likewise.
8375 (set_window_cursor_after_update): Likewise. In echo area,
8376 don't try to set cursor on rows that aren't enabled.
8377
8378 * print.c: Remove conditional compilation on `standalone'.
8379 (glyph_len, str_to_glyph_cpy, str_to_glyph_ncpy,
427ec082 8380 glyph_to_str_cpy): Remove that section because GLYPHs are no
26901792
DL
8381 longer used in that way.
8382 (PRINTDECLARE): Add multibyte.
8383 (PRINTPREPARE, PRINTFINISH): Handle printcharfun t differently.
8384 (printbufidx): Removed.
8385 (printchar, strout): Rewritten.
8386
8387 * keyboard.c (ok_to_echo_at_next_pause): Make it a pointer to
8388 a struct kboard.
8389 (echo_kboard): New.
8390 (echo_now): Set echo_kboard to the current kboard.
8391 (cancel_echoing): Set echo_kboard to null.
8392 (cmd_error_internal): Use clear_message, remove references
8393 to echo_area_glyphs and echo_area_message.
8394 (command_loop_1): Check for echo area messages differently.
8395 (read_char): Likewise.
8396 (record_menu_key): Use clear_message.
8397 (Fexecute_extended_command): Check for echo area messages
8398 differently. Use push_message, restore_message, pop_message.
8399
8400 * alloc.c (Fgarbage_collect): Use push_message, restore_message,
8401 pop_message.
8402
8403 * emacs.c (shut_down_emacs): Call check_message_stack.
8404
8405 * lisp.h: Add function prototypes and extern declarations for
8406 new functions and variables.
8407
8408 * fileio.c (Fdo_auto_save): Use push_message, restore_message,
8409 pop_message.
8410
427ec082 8411 * minibuf.c (read_minibuf): Use clear_message instead of
26901792
DL
8412 setting echo_area_glyphs.
8413 (Fminibuffer_completion_help): Ditto.
8414
8415 * editfns.c (Fcurrent_message): Rewritten.
8416
8417 * frame.c, window.h: Remove references to echo_area_glyphs
8418 and previous_echo_glyphs.
8419
84201999-08-21 Dave Love <fx@gnu.org>
8421
8422 * aix3-2-5.h (C_DEBUG_SWITCH): Use -g -O.
8423 * aix4-1.h: Likewise.
8424
8425 * irix6-5.h (C_DEBUG_SWITCH): Set for debug and optimize.
8426
84271999-08-20 Gerd Moellmann <gerd@gnu.org>
8428
8429 * xfns.c: Remove tiff34 prefix from include.
8430
84311999-08-20 Dave Love <fx@gnu.org>
8432
8433 * cm.c: Revert previous change.
8434
84351999-08-19 Gerd Moellmann <gerd@gnu.org>
8436
8437 * xterm.c (XTset_vertical_scroll_bar): Fix previous change. Clear
8438 under scroll bar with width FRAME_SCROLL_BAR_COLS.
8439
84401999-08-18 Dave Love <fx@gnu.org>
8441
8442 * callproc.c, filelock.c, insdel.c, sysdep.c, xmenu.c: Use
8443 stdlib.h.
8444
8445 * doprnt.c: Use stdlib.h, unistd.h.
8446
8447 * config.in: Add HAVE_TERMCAP_H.
8448
8449 * cm.c: Use termcap.h.
8450
84511999-08-18 Gerd Moellmann <gerd@gnu.org>
8452
8453 * xfns.c (x_window) [USE_X_TOOLKIT]: Remove test for
8454 FRAME_X_WINDOW (f) being null at the of the function. If widgets
8455 cannot be created we will already have crashed earlier. Call
8456 lw_set_main_areas with a null menu-bar widget, so that we have
8457 a reasonable default.
8458 (Fx_create_frame): Rearranged so that Lisp errors during frame
8459 initialization cause less damage. Initialize menu bar widget
8460 here.
8461
84621999-08-18 Gerd Moellmann <gerd@gnu.org>
427ec082 8463
26901792
DL
8464 * dispnew.c (update_frame_line): Fix previous change. If writing
8465 whole line clear to end of frame.
8466
84671999-08-17 Gerd Moellmann <gerd@gnu.org>
8468
8469 * window.c (Fcoordinates_in_window_p): Return `left-bitmap-area'
8470 and `right-bitmap-area' if position is in the bitmap areas. This
8471 avoids an error when clicking on the bitmap areas. Instead, they
8472 are currently treated like clicks inside the window.
8473 (coordinates_in_window): Return 5 and 6 for bitmap areas.
8474 (Qleft_bitmap_area, Qright_bitmap_area): New.
8475 (syms_of_window): Initialize new symbols.
8476
8477 * dispnew.c (update_frame_line): If writing whole line,
8478 don't write trailing spaces unless we must.
8479
8480 * xdisp.c (unwind_redisplay): New. Resets flag redisplaying_p.
8481 (redisplay_internal): Register unwind_redisplay with
8482 register_unwind_protect.
8483 (try_window_reusing_current_matrix): If new start > old start,
8484 give up if start pos of first reusable row is not equal to new
8485 start.
8486
8487 * eval.c (Fsignal): Don't reset redisplaying_p here.
8488
8489 * xterm.c (expose_area): If row extends face to end of line,
8490 write the whole line.
8491
84921999-08-16 Gerd Moellmann <gerd@gnu.org>
8493
8494 * dispextern.h (struct it): Remove member
8495 show_trailing_whitespace_p.
8496
8497 * dispnew.c (direct_output_for_insert): Use
8498 Vshow_trailing_whitespace instead of former iterator member
8499 show_trailing_whitespace_p.
8500 (direct_output_forward_char): Don't do it if hightlighting
8501 trailing whitespace.
8502
8503 * xdisp.c (Qshow_trailing_whitespace): Removed.
8504 (Vshow_trailing_whitespace): Added.
8505 (init_iterator): Remove initialization code for
8506 show_trailing_whitespace_p.
8507 (redisplay_internal): Don't try cursor movement in this_line
8508 if showing trailing whitespace.
8509 (redisplay_window): Likewise for cursor movement in current
8510 matrix and try_window_id.
8511 (try_window_reusing_current_matrix): Likewise.
8512 (trailing_whitespace_p): Return 0 if trailing whitespace is
8513 in front of point.
8514 (display_line): Use Vshow_trailing_whitespace instead of
8515 former iterator member show_trailing_whitespace_p.
8516 (syms_of_xdisp): Add DEFVAR_LISP for show-trailing-whitespace.
8517
85181999-08-16 Gerd Moellmann <gerd@gnu.org>
8519
8520 * window.c (Fpos_visible_in_window_p): Rewritten.
8521
8522 * xfaces.c (add_to_log): Renamed from display_message.
8523 Don't display messages in echo area.
8524
8525 * xterm.c (x_draw_glyph_string_box): Use the background width
8526 of the glyph string for the width of the box.
8527
85281999-08-16 Stefan Monnier <monnier@cs.yale.edu>
8529
8530 * syntax.c (Fforward_comment): Set comstyle for Scomment_fence.
8531
85321999-08-16 Geoff Voelker <voelker@cs.washington.edu>
8533
8534 * xfns.c, w32fns.c (x_set_frame_parameters): Set foreground and
8535 background first, and then set other parameters that might
8536 depend upon their new values.
8537
85381999-08-15 Gerd Moellmann <gerd@gnu.org>
8539
8540 * xfaces.c (Vfont_list_limit): New.
8541 (syms_of_xfaces): Make it a user-variable.
8542 (DEFAULT_FONT_LIST_LIMIT): New.
8543 (sorted_font_list): If Vfont_list_limit is an integer > 0, list
8544 maximally that number of fonts, otherwise use
8545 DEFAULT_FONT_LIST_LIMIT.
427ec082 8546 (Fx_font_family_list): Bind `font-list-limit' to higher values
26901792
DL
8547 until we have all fonts.
8548 (Fxfont_list): Additionally return the full names of fonts and
8549 their registry and encoding.
8550
427ec082 8551 * xterm.c (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
26901792
DL
8552 Simplify clearing "under" scroll bar.
8553
8554 * window.c (Qfixed_window_size): New.
8555 (syms_of_window): Initialiaze it.
8556 (check_all_windows): Add return type void.
8557 (window_fixed_size_p): New. Return non-zero if window
8558 is fixed-size.
8559 (window_min_size_1): New.
8560 (window_min_size): Handle fixed-size windows.
8561 (size_window): New. Rewritten combination of set_window_height and
8562 set_window_width that handles fixed-size windows.
8563 (set_window_height): Call it.
8564 (set_window_width): Call it.
8565 (Fsplit_window): Give an error on attempt to split a fixed-size
8566 window.
8567 (change_window_height): Partly rewritten to handle fixed-size
8568 windows.
8569
85701999-08-13 Wolfgang Rupprecht <wolfgang@wsrcc.com>
8571
8572 * process.c (Fopen_network_stream): Fix previous change.
8573
85741999-08-13 Karl Heuer <kwzh@gnu.org>
8575
8576 * xdisp.c (line_number_display_limit_width): New var.
8577 (decode_mode_spec): Use it instead of hardcoded value.
8578 (syms_of_xdisp): Defvar it.
8579
85801999-08-13 Richard M. Stallman <rms@gnu.org>
8581
8582 * eval.c (run_hook_list_with_args): Gcpro `globals'.
8583 (run_hook_with_args): Likewise.
8584
8585 * window.h (struct window): New field too_small_ok.
8586
427ec082 8587 * window.c (set_window_height, set_window_width):
26901792
DL
8588 If window starts out "too small", set its too_small_ok flag.
8589 If window's too_small_ok flag is set, don't delete it
8590 unless it is so small it would cause a crash.
8591
85921999-08-13 Gerd Moellmann <gerd@gnu.org>
8593
8594 * window.c (MINSIZE): Removed.
8595 (window_min_size): New.
8596 (set_window_height): Use window_min_size.
8597 (change_window_height): Ditto.
8598
85991999-08-12 Gerd Moellmann <gerd@gnu.org>
8600
8601 * indent.c (vmotion): Don't add in mini-buffer prompt width
8602 if prompts are inserted into mini-buffer.
8603
86041999-08-12 Wolfgang Rupprecht <wolfgang@wsrcc.com>
8605
8606 * config.in: Add HAVE_GETADDRINFO.
8607 * process.c (Fopen_network_stream): Use getaddrinfo.
8608
86091999-08-11 Gerd Moellmann <gerd@gnu.org>
8610
8611 * xdisp.c (get_overlay_arrow_glyph_row): Set the charpos of
8612 glyphs to -1.
8613
8614 * xdisp.c (face_before_or_after_it_pos): If position after
8615 or before iterator's current position in the buffer is out
8616 of bounds, return the iterator's original face id.
8617
8618 * dispnew.c (mirror_make_current): If desired row isn't enabled,
8619 just swap glyphs pointers between current and desired row.
8620 (build_frame_matrix_from_leaf_window) [GLYPH_DEBUG]: Copy
8621 desired matrix method string to current matrix.
8622
86231999-08-11 Kenichi Handa <handa@etl.go.jp>
8624
8625 * lisp.h (CHAR_MODIFIER_MASK): New macro.
8626
8627 * lread.c (read_escape): For Control modifier, pay attention to
8628 multibyte character.
8629 (read1): Likewise. Singal error or a multibyte character which
8630 has a modifer bit. Check validity of Shift modifer.
8631
8632 * charset.c (non_ascii_char_to_string): Handle modifier bits as
8633 the same as Lisp reader.
8634
86351999-08-10 Richard M. Stallman <rms@gnu.org>
8636
8637 * charset.h (BCOPY_SHORT): Fix typo `unsigined'.
8638
86391999-08-10 Alexandre Oliva <oliva@dcc.unicamp.br>
8640
8641 * unexelf.c [__linux__ && __alpha__] (HAS_SBSS_SECTION): Define.
8642
86431999-08-10 Eli Zaretskii <eliz@gnu.org>
8644
8645 * msdos.c (IT_set_face): Abort if the default face is not realized
8646 and cached.
8647 (IT_write_glyphs): Reset the screen face to the default face
8648 before writing glyphs.
8649
8650 * xfaces.c (realize_default_face) [MSDOS]: Don't take default
8651 colors from the frame here.
8652 (realize_tty_face) [MSDOS]: Do it here. Update the face
8653 attributes with the actual name of the color taken from the
8654 frame.
8655
8656 * dosfns.c (msdos_stdcolor_name): Remove const from return value.
8657 * dosfns.h (msdos_stdcolor_name): Ditto for the prototype.
8658
8659 * frame.c (Fframe_parameters): Swap foreground and background
8660 colors returned in frame parameters if the frame has reverse in
8661 its parameter alist.
8662 (Fmake_terminal_frame): Make a unique copy of face_alist for
8663 each frame.
8664
86651999-08-07 Richard Stallman <rms@gnu.org>
8666
8667 * buffer.c (Fprevious_overlay_change): Just return
8668 the answer obtained from overlays_at.
8669
8670 * xfns.c (xpm_load) [!XpmAllocCloseColors]:
8671 Use XpmCloseness and attrs.closeness instead.
8672
86731999-08-06 Richard Stallman <rms@gnu.org>
8674
8675 * lread.c (Feval_buffer): New arg DO_ALLOW_PRINT.
8676
86771999-08-06 Geoff Voelker <voelker@cs.washington.edu>
8678
427ec082 8679 * dired.c (directory_files_internal, Fdirectory_files_and_attributes,
26901792
DL
8680 Ffile_attributes_lessp): New functions.
8681 (Fdirectory_files): Use directory_files_internal.
8682 (syms_of_dired): Initialize Fdirectory_files_and_attributes,
8683 Ffile_attributes_lessp.
8684
8685 * w32.c (stat): Check for directory ending in separator when
8686 doing readdir fast path.
8687
8688 * w32fns.c (x_set_icon_type): Support setting frame icons.
8689 * w32term.c (x_bitmap_icon): New function.
8690 (x_make_frame_visible, x_iconify_frame): Invoke x_bitmap_icon.
427ec082 8691
26901792
DL
86921999-08-06 Gerd Moellmann <gerd@gnu.org>
8693
8694 * xdisp.c (set_iterator_to_next): After delivering a character
8695 from a display vector, restore face and charset to what they were
8696 before the display vector was processed.
8697
86981999-08-06 Gerd Moellmann <gerd@gnu.org>
8699
8700 * xdisp.c (reseat_at_next_visible_line_start): New parameter
8701 on_newline_p.
8702 (set_iterator_to_next): After delivering last char
427ec082 8703 from display vector, reseat on next visible line start if
26901792
DL
8704 dpvec_char_len < 0.
8705 (next_element_from_buffer): Set dpvec_char_len to -1 for
8706 selective display.
8707
87081999-08-06 Gerd Moellmann <gerd@gnu.org>
8709
8710 * xdisp.c (compute_line_metrics): If first line's physical ascent
8711 is larger than its logical ascent, use the physical ascent, and
8712 make the row taller. Set row's overlapping_p flag.
8713
8714 * dispnew.c (redraw_overlapping_rows): Use flag overlapping_p.
8715 (direct_output_for_insert): Ditto.
8716
8717 * dispextern.h (struct glyph_row): Add overlapping_p.
8718
8719 * xterm.c (x_draw_phys_cursor_glyph): Redraw overlaps.
8720
8721 * dispextern.h (MATRIX_ROW_OVERLAPS_PRED_P): New.
8722 (MATRIX_ROW_OVERLAPS_SUCC_P): New.
8723
8724 * dispnew.c (direct_output_for_insert): Don't use this method if
8725 row is overlapped by others.
8726 (update_text_area): Write full line if current line is overlapped.
8727 (redraw_overlapped_rows): New.
8728 (update_window): Call it.
8729 (redraw_overlapping_rows): New.
8730 (update_window): Call it.
8731 (scrolling_window): Make sure overlapped_p flag in current rows is
8732 unchanged.
8733 (row_equal_p): Take rows overlapped_p flag into account.
8734
8735 * dispextern.h (struct glyph_row): Add flag overlapped_p.
8736
8737 * xterm.c (x_fix_overlapping_area): New.
8738 (x_redisplay_interface): Add x_fix_overlapping_area.
8739
8740 * dispnew.c (adjust_glyphs): Block input while adjusting matrices.
8741
87421999-08-06 Gerd Moellmann <gerd@gnu.org>
8743
8744 * xterm.c (x_draw_glyphs): Add parameter overlaps_p.
8745 (struct glyph_string): Add member for_overlaps_p.
8746 (x_get_glyph_string_clip_rect): If glyph string draws foreground
8747 of overlapping rows, clip to window bottom.
8748 (x_fill_glyph_string): Add parameter overlaps_p.
8749 (x_fill_composite_glyph_string): Ditto.
8750 (BUILD_GLYPH_STRINGS): Ditto.
8751 (BUILD_CHAR_GLYPH_STRINGS): Ditto.
8752 (x_draw_glyph_string): Don't draw anything but the foreground
8753 if glyph string draws row overlaps.
8754
8755 * dispnew.c (direct_output_for_insert): Don't use this
8756 optimization for rows that overlap others.
8757 (update_window_line): Return non-zero if display has changed.
8758 (update_text_area): Ditto.
8759 (update_window): Record if display has been changed.
8760
8761 * dispextern.h (MATRIX_ROW_OVERLAPPING_P): New.
8762
8763 * dispextern.h (struct redisplay_interface): Add
8764 fix_overlapping_area.
8765
8766 * xterm.c (x_append_glyph): Set glyph flag overlaps_vertically_p.
8767
8768 * dispextern.h (struct glyph): Add overlaps_vertically_p.
8769
8770 * xterm.c (x_produce_image_glyph): Compute iterator's physical
8771 ascent and descent.
8772 (x_produce_stretch_glyph): Ditto.
8773 (x_produce_glyphs): Ditto.
8774
8775 * xdisp.c (init_iterator): Reset physical line height info
8776 after producing special glyphs.
8777 (display_toolbar_line): Set physical line height info.
8778 (compute_line_metrics): Ditto.
8779 (display_line): Ditto.
8780 (display_string): Ditto.
8781
8782 * term.c (produce_glyphs): Set iterator's physical height
8783 information.
8784
8785 * dispnew.c (blank_row): Compute glyph row's physical height.
8786 (row_equal_p): Take physical row heights into account.
8787 (direct_output_for_insert): Ditto.
8788 (update_text_area): Ditto.
8789
8790 * dispextern.h (struct glyph_row): Add phys_ascent and
8791 phys_height.
8792 (struct it): Add phys_ascent, phys_descent, max_phys_ascent,
8793 max_phys_descent.
8794
87951999-08-04 Stefan Monnier <monnier@cs.yale.edu>
8796
8797 * buffer.c (switch_to_buffer_1): New subroutine, taken out from
8798 Fswitch_to_buffer.
8799 (no_switch_buffer): New function.
8800 (Fswitch_to_buffer): Call them. Don't get confused
8801 by "same-window" buffers in a dedicated frame.
8802
8803 * window.c (display-buffer): Don't get confused
8804 by "same-window" buffers in a dedicated frame.
8805
88061999-08-04 Andreas Schwab <schwab@gnu.org>
8807
8808 * insdel.c (insert_from_string_1): Check gap size against number
8809 of outgoing bytes, not incoming bytes.
8810
88111999-08-03 Tom Breton <tob@world.std.com>
8812
8813 * lread.c (read1): Added circular reading code to #N=.
8814 (SUBSTITUTE): New macro.
8815 (seen_list): New variable.
8816 (substitute_object_in_subtree): New function.
8817 (substitute_object_recurse): New function.
8818 (substitute_in_interval): New function.
8819
88201999-08-02 Eli Zaretskii <eliz@gnu.org>
8821
8822 * Makefile.in (frame.o, sysdep.o, xfaces.o): Depend on dosfns.h.
8823
8824 * frame.c (make_terminal_frame): Don't call init_frame_faces if
8825 noninteractive, for termcap frames as well.
8826
8827 * sysdep.c (init_sys_modes): Call init_frame_faces for termcap
8828 frames.
8829
88301999-08-01 Richard Stallman <rms@gnu.org>
8831
8832 * fns.c (internal_equal): Correct overlay comparison.
8833
83c8f461 88341999-07-31 Richard M. Stallman <rms@gnu.org>
26901792 8835
427ec082 8836 * xfns.c (x_set_internal_border_width):
26901792
DL
8837 Call do_pending_window_change. Don't block input, don't call XFlush.
8838 (x_set_vertical_scroll_bars): Call do_pending_window_change.
8839 (x_set_scroll_bar_width, x_set_font): Likewise.
8840
8841 * frame.c (Fset_frame_height): Call do_pending_window_change.
8842 (Fset_frame_width, Fset_frame_size): Likewise.
8843
8844 * xterm.c (x_set_window_size): When calling change_frame_size,
8845 specify 1 for DELAY.
8846
8847 * widget.c (EmacsFrameSetCharSize): Don't call
8848 do_pending_window_change here.
8849
88501999-07-30 Dave Love <fx@gnu.org>
8851
8852 * config.in: Add HAVE_STDLIB_H.
8853
88541999-07-30 Richard M. Stallman <rms@gnu.org>
8855
8856 * process.c (create_process): Detect failure of `pipe'.
8857
88581999-07-30 Keisuke Nishida <kei@psn.net>
8859
8860 * alloc.c (allocate_vectorlike): Add missing increment.
8861
8862 * data.c (Fdefalias): Call Ffset instead of duplicating code.
8863
8864 * keymap.c (get_keymap_1, get_keyelt): Check the type of OBJECT
8865 before calling indirect_function.
8866
88671999-07-30 Eli Zaretskii <eliz@gnu.org>
8868
8869 * dispextern.h (load_color, lookup_derived_face): Declare
8870 prototypes.
8871
8872 * dispnew.c (init_display) [MSDOS]: Don't initialize frame faces,
8873 it will be done later.
8874
8875 * frame.c (make_terminal_frame) [MSDOS]: Don't call
8876 init_frame_faces if non-interactive.
8877 (Fframe_parameters) [MSDOS]: Replace indexing into colornames[]
8878 array with a call to msdos_stdcolor_name. The font name is now
8879 "ms-dos", consistent with realize_tty_face.
8880
8881 * keyboard.c (cmd_error_internal): Don't kill Emacs if this is an
8882 MSDOS frame.
8883
8884 * window.c (Fset_window_configuration) [MSDOS]: Don't call
8885 x_set_toolbar_lines.
8886
8887 * xfaces.c (load_color): Remove static from definition and remove
8888 prototype.
8889 [MSDOS]: Add a DOS-specific version of load_color.
8890 (lookup_face): Replace FRAME_TERMCAP_P with !FRAME_WINDOW_P.
8891 (lookup_derived_face): New function.
8892 (realize_default_face): Support MSDOS frames.
8893 [MSDOS]: If fore/background colors are unspecified, inherit them
8894 from the frame.
8895 (realize_face): Support MSDOS frames.
8896 (realize_tty_face): Support MSDOS frames.
8897 [MSDOS]: If the face color is not in Vface_tty_color_alist, call
8898 load_color to try to find a suitable approximation. If the face
8899 is inverse-video, swap the foreground and background colors.
8900
8901 * dosfns.c (msdos_stdcolor_name, msdos_stdcolor_idx): New
8902 functions.
8903
8904 * dosfns.h (msdos_stdcolor_name, msdos_stdcolor_idx): Declare.
8905
8906 * msdos.h: Remove redundant declarations (most of them are now in
8907 dispextern.h).
8908
8909 * msdos.c (IT_set_face): Rewritten for the new redisplay engine.
8910 Use default frame colors if the face doesn't specify them; invert
8911 the colors if highlight is ON.
8912 (IT_write_glyphs): Rewritten for the new redisplay engine.
8913 (IT_change_line_highlight): Add (unused) parameter Y, since that's
8914 how the hook is called by term.c.
8915 (IT_copy_glyphs): New function, copies an area of the display in
8916 video RAM.
8917 (IT_insert_glyphs): Rewritten to DTRT instead of aborting, since
8918 redisplay now calls it even if char_ins_del_ok is zero.
8919 (IT_set_frame_parameters): Prototype changed. Calls the new
8920 load_color. Puts the new fore/background colors into the default
8921 face on current frame.
8922 (IT_menu_display): Rewritten to handle the new struct glyph
8923 instead of a char array.
8924 (XMenuActivate): Call lookup_derived_face to create and use
8925 special faces for the pop-up and drop-down menus.
8926
89271999-07-29 Gerd Moellmann <gerd@gnu.org>
8928
8929 * xterm.c (x_set_toolkit_scroll_bar_thumb): Don't call
8930 XawScrollbarSetThumb if thumb parameters haven't changed because
8931 that function apparently isn't optimized for this case.
8932
89331999-07-29 Eli Zaretskii <eliz@gnu.org>
8934
8935 * msdos.c (getdefdir): Don't return failure indication when
8936 _fixpath sets errno to ENOSYS.
8937
89381999-07-28 Gerd Moellmann <gerd@gnu.org>
8939
8940 * xdisp.c (string_char_and_length): New. Use it everywhere
8941 instead of STRING_CHAR_AND_LENGTH in xdisp.c.
8942
89431999-07-28 Kenichi Handa <handa@etl.go.jp>
8944
8945 * fns.c (count_combining): New function.
8946 (struct textprop_rec): New structure.
8947 (concat): Copy text properties correctly when byte combining
8948 occurs.
8949
89501999-07-28 Gerd Moellmann <gerd@gnu.org>
8951
8952 * xterm.c (x_setup_relief_color): Don't try smart color allocation
8953 if display is mono.
8954 (x_draw_row_bitmaps): If face has stipple, don't switch
8955 to foreground color for clearing areas, and set the fill style.
8956
8957 * xfaces.c (load_face_colors): Load background color if setting
8958 stipple, too.
427ec082 8959 (prepare_face_for_display): Use FillOpaqueStippled instead of
26901792
DL
8960 FillStippled.
8961
89621999-07-26 Ken'ichi Handa <handa@gnu.org>
8963
8964 * xterm.c (x_find_ccl_program): Add casting.
8965
8966 * w32fns.c (w32_find_ccl_program): Add casting.
8967
89681999-07-27 Gerd Moellmann <gerd@gnu.org>
8969
8970 * dispextern.h (struct glyph_row): Flag internal_border_p removed.
8971
8972 * xfns.c (x_create_tip_frame): Don't set bitmapIcon resource
8973 because this will try to access a nonexisting widget.
8974
89751999-07-26 Markus Rost <rost@gnu.org>
8976
427ec082 8977 * fns.c (Fgethash): Fix order of variables (patch by gerd).
26901792
DL
8978 (Fputhash): Ditto.
8979 (Fremhash): Ditto.
8980
89811999-07-26 Gerd Moellmann <gerd@gnu.org>
427ec082 8982
26901792
DL
8983 * widget.c (EmacsFrameSetCharSize): Don't add XtNborderWidth
8984 value to frame width and height.
8985
8986 * xterm.c (x_get_glyph_string_clip_rect): Take internal border
8987 into account for full-width windows. Don't add scroll bar width
8988 to width of clip rect.
8989 (x_draw_glyph_string_box): Add 1 to right x of full width lines.
8990 (x_set_glyph_string_background_width): Add 1 to background width.
8991 (x_draw_glyphs): Take internal border into account for full-width
8992 lines.
8993
89941999-07-26 Richard M. Stallman <rms@gnu.org>
8995
8996 * xfns.c (x_set_mouse_color): Always unload the old color.
8997 Don't allow nil as color value.
427ec082 8998 (x_set_cursor_color, x_set_background_color, x_set_foreground_color):
26901792
DL
8999 Always unload the old color.
9000
9001 * indent.c (Fmove_to_column): Extend end of line only if FORCE is t.
9002
90031999-07-26 Karl Heuer <kwzh@gnu.org>
9004
9005 * fns.c (Fy_or_n_p): Doc fix.
9006
90071999-07-26 Kenichi Handa <handa@etl.go.jp>
9008
9009 * ccl.h (setup_ccl_program): The type is changed to `int'.
9010
9011 * ccl.c (ccl_driver) <CCL_Call>: Now CCL program ID to call may be
9012 stored in the following CCL code. Adjusted for the change of
9013 Vccl_program_table.
9014 (resolve_symbol_ccl_program): Adjusted for the new style of
9015 embedded symbols (SYMBOL . PROP) in CCL compiled code. Return Qt
9016 is resolving failed.
9017 (ccl_get_compiled_code): New function.
9018 (setup_ccl_program): Function type changed from `void' to `int'.
9019 Resolve symbols in CCL_PROG.
9020 (Fccl_program_p): New function.
9021 (Fccl_execute): Get compiled CCL code by just calling
9022 setup_ccl_program.
9023 (Fccl_execute_on_string): Likewise.
9024 (Fregister_ccl_program): Adjusted for the change of
9025 Vccl_program_table.
9026
9027 * coding.c (setup_coding_system): Get compiled CCL code by just
9028 calling setup_ccl_program.
9029
9030 * xterm.c (x_find_ccl_program): Get compiled CCL code by just
9031 calling setup_ccl_program.
9032
9033 * w32fns.c (w32_find_ccl_program): Get compiled CCL code by just
9034 calling setup_ccl_program.
9035
90361999-07-23 Gerd Moellmann <gerd@gnu.org>
9037
9038 * xfaces.c (frame_update_line_height): Just use the height of the
9039 frame's fontset or font, instead of taking face fonts into
9040 account.
9041
9042 * xdisp.c (get_next_display_element): Display DEL as `^?'.
9043
90441999-07-23 Richard M. Stallman <rms@gnu.org>
9045
9046 * window.c (Fsplit_window): For default size, round up for left window.
9047
90481999-07-21 Joe Ramey <ramey@ti.com>
9049
d7d0dac0 9050 * filelock.c (lock_if_free): Return -1 if check_lock_owner
26901792
DL
9051 has returned -1 (lockfile exists but is not a symlink?).
9052
90531999-07-20 Gerd Moellmann <gerd@gnu.org>
9054
9055 * xterm.c (x_draw_bar_cursor): Use scratch_cursor_gc to
9056 because of a change in cursor_gc made in 20.4.
9057
90581999-07-19 Gerd Moellmann <gerd@gnu.org>
9059
9060 * xterm.c (x_calc_absolute_position): Subtract menu bar height
9061 for YNegative, if using X toolkit.
9062
427ec082 9063 * xfns.c (x_real_positions): Don't subtract window borders
26901792
DL
9064 from positions returned.
9065
90661999-07-17 Gerd Moellmann <gerd@gnu.org>
9067
9068 * xrdb.c (x_load_resources): Set double-click time defaults
9069 for Motif list boxes from double-click-time.
9070
9071 * fns.c (Vhash_table_tests): Remvoed.
9072 (Qhash_table_test): New.
9073 (syms_of_fns): Initialize Qhash_table_test.
9074 (Fmake_hash_table): Look up user-defined tests in symbol prop
9075 `hash-table-test'.
9076 (Fdefine_hash_table_test): Store test and hash function as
9077 symbol prop `hash-table-test'.
9078 (make_hash_table): Add parameters user_test and user_hash.
9079
9080 * window.c (set_window_buffer): Set window margins for tty
9081 frames, too.
9082 (Fset_window_margins): Ditto.
9083
9084 * term.c (append_glyph): Use glyph area of iterator instead of
9085 always TEXT_AREA.
9086
9087 * dispnew.c (update_frame_1): Add left margin width to cursor
9088 hpos.
9089 (direct_output_for_insert): Ditto.
9090 (direct_output_forward_char): Ditto.
9091
9092 * dispnew.c (adjust_glyph_matrix): Set glyph matrix' top_line_p.
9093
9094 * dispextern.h (struct glyph_matrix): Add top_line_p.
9095
90961999-07-16 Gerd Moellmann <gerd@gnu.org>
9097
9098 * frame.h (FRAME_WINDOW_REDISPLAY_P): Removed. Use FRAME_WINDOW_P
9099 instead.
9100
9101 * fns.c (cmpfn_eq): Add hash code parameters.
9102 (cmpfn_eql): Ditto.
9103 (cmpfn_equal): Ditto, and compare hash codes before calling Fequal.
9104 (cmpfn_user_defined): Likewise.
9105
91061999-07-15 Gerd Moellmann <gerd@gnu.org>
9107
9108 * lisp.h (DEFAULT_REHASH_THRESHOLD): Changed to 0.8.
9109
9110 * fns.c (maybe_resize_hash_table): Correct computation of
9111 index vector size.
9112 (make_hash_table): Ditto.
9113 (Fmakehash): New.
9114
9115 * xdisp.c (echo_area_display): Don't call redraw_garbaged_frames.
9116
9117 * alloc.c (gc_sweep): Call sweep_weak_hash_tables.
9118 (survives_gc_p): Make it externally visible.
9119 (mark_object): Ditto.
9120
9121 * fns.c (remove_hash_entry): Removed.
9122 (sweep_weak_hash_tables): New.
9123
9124 * print.c (print): Print more information about hash tables.
9125
9126 * xfns.c (image_spec_hash): Removed.
9127 (lookup_image): Use sxhash instead of image_spec_hash.
9128 (image_spec_equal_p): Removed.
9129 (lookup_image): Use Fequal instead of image_spec_equal_p.
9130
91311999-07-14 Gerd Moellmann <gerd@gnu.org>
9132
9133 * lisp.h (P_): Moved to top of file.
9134
9135 * fns.c (make_hash_table): Set new members.
9136
9137 * alloc.c (mark_object): Mark hash table's user_hash_function.
9138 Mark index vector for weak hash tables.
9139
9140 * lisp.h (struct Lisp_Hash_Table): Add user_cmp_function,
9141 user_hash_function, cmpfn, and hashfn.
9142
9143 * fns.c (build_hash): Removed.
9144 (hash_test): Removed.
9145 (cmpfn_eq, cmpfn_eql, cmpfn_equal, cmpfn_user_defined): New.
9146 (hashfn_eq, hashfn_eql, hashfn_equal, hashfn_user_defined): New.
9147
91481999-07-13 Gerd Moellmann <gerd@gnu.org>
9149
9150 * alloc.c (survives_gc_p): New.
9151
9152 * print.c (print): Add hash table handling.
9153
9154 * alloc.c (mark_object): Add code to mark hash tables.
9155
9156 * lisp.h (GC_HASH_TABLE_P): New.
9157
9158 * emacs.c (main): Call init_fns.
9159
9160 * fns.c (init_fns): New.
9161
9162 * fns.c: Add hash table implementation.
9163
9164 * lisp.h (PVEC_HASH_TABLE): New.
9165 (struct Lisp_Hash_Table): New.
9166 (XHASH_TABLE): New.
9167 (XSET_HASH_TABLE): New.
9168 (HASH_TABLE_P): New.
9169 (CHECK_HASH_TABLE): New.
9170 (DEFAULT_HASH_SIZE): New.
9171 (DEFAULT_REHASH_THRESHOLD): New.
9172 (DEFAULT_REHASH_SIZE): New.
9173
9174 * xterm.c (x_draw_glyphs): Add parameters real_start and real_end.
9175 (x_write_glyphs): Compute overwritten cursor using real start
9176 and end positions of display.
9177 (x_insert_glyphs): Ditto.
9178
91791999-07-10 Gerd Moellmann <gerd@gnu.org>
9180
9181 * keyboard.c (read_char): Use message3_nolog to show help-echo.
9182
9183 * dispnew.c (blank_row): Add y-position as parameter. Compute
9184 visible height.
9185
9186 * xdisp.c (next_element_from_string): Give padding spaces
9187 a position of -1.
9188
427ec082 9189 * dispnew.c (adjust_glyph_matrix): Some work to support
26901792
DL
9190 marginals areas on tty frames in a future version.
9191 (allocate_matrices_for_frame_redisplay): Ditto.
9192
9193 * xdisp.c (display_line): At ZV, set glyph row's displays_text_p
9194 to zero if number of glyphs in the row is <= 1.
9195
91961999-07-09 Gerd Moellmann <gerd@gnu.org>
9197
9198 * dispnew.c (buffer_posn_from_coords): Take left marginal area
9199 into account.
9200
9201 * xdisp.c (handle_display_prop): Don't reset area if handing
9202 a property from a string that came from a `display' property.
9203 (handle_single_display_prop): Don't handle recursive `display'
9204 properties.
9205 (handle_single_display_prop): Handle some display property
9206 forms for terminal frames.
9207 (Qimage): Moved here from xfns.c.
9208
9209 * dispextern.h (struct it): New field string_from_display_prop_p.
9210
9211 * xterm.c (x_clip_to_row): Don't let clip_rect include top
9212 line.
9213
92141999-07-08 Gerd Moellmann <gerd@gnu.org>
9215
9216 * xdisp.c (handle_single_display_prop): Handle `:when FORM'.
9217
9218 * window.c (set_window_buffer): Set window's vscroll to zero.
9219
9220 * xdisp.c (QCwhen): New.
9221 (display_prop_end): New.
9222 (handle_single_display_prop): Use it.
9223 (debug_method_add): Print buffer name if tracing.
9224 (try_window_reusing_current_matrix): Compute visible height
9225 of reused rows. Fix cursor position calculation in case of
9226 top-line.
9227
9228 * dispextern.h (struct redisplay_interface): Add parameter
9229 cursor_on_p to update_window_end_hook.
9230
9231 * xterm.c (x_update_window_end): Add parameter cursor_on_p.
9232
92331999-07-07 Gerd Moellmann <gerd@gnu.org>
9234
427ec082 9235 * xdisp.c (redisplay_internal): Ensure that redisplayinp_p
26901792
DL
9236 doesn't become negative when decrementing it.
9237
9238 * eval.c (Fsignal): Reset redisplaying_p to zero.
9239
9240 * xdisp.c (try_window_reusing_current_matrix): Call hooks
9241 for window update.
9242 (try_window_id): Ditto.
9243
9244 * xterm.c (x_clear_end_of_line): Handle top-line correctly.
9245 (x_scroll_run): Ditto.
9246 (any_help_event_p): New.
9247 (x_initialize): Set it to zero.
9248 (XTread_socket): Clear help echo only if any_help_event_p.
9249
9250 * xdisp.c (init_iterator): Set top_line_p.
9251 (start_display): Use correct initial y if top-line is present.
9252 (make_cursor_line_fully_visible): Bug fixes for top-line.
9253 (try_scrolling): Ditto.
9254 (try_window_reusing_current_matrix): Ditto.
9255
9256 * dispextern.h (struct it): Add top_line_p.
9257
9258 * dispnew.c (shift_glyph_matrix): Move some computations out
9259 of the loop.
9260
427ec082 9261 * dispnew.c (margin_glyphs_to_reserve): Use NUMBERP and
26901792
DL
9262 XFLOATINT.
9263
92641999-07-06 Gerd Moellmann <gerd@gnu.org>
9265
9266 * dispnew.c (update_frame_1): When setting cursor in echo area,
9267 skip only over padding spaces at the end.
9268
9269 * xfaces.c (realize_tty_face): Set face's font_name field to
9270 "tty".
9271
9272 * term.c (update_end): Turn cursor on only if selected window's
9273 cursor_off_p flag is not set.
9274
92751999-07-05 Gerd Moellmann <gerd@gnu.org>
9276
9277 * term.c (TS_cursor_visible): Renamed from TS_visual_mode.
9278 (TS_cursor_normal): Renamed from TS_end_visual_mode.
9279 (TS_cursor_invisible): New.
9280 (term_init): Initialize TS_cursor_invisible.
9281 (tty_hide_cursor): New.
9282 (tty_show_cursor): New.
9283 (update_end): Show tty cursor.
9284 (update_begin): Hide tty cursor to prevent cursor flickering
9285 during redisplays triggered by timers (stealth fontification).
9286
9287 * keyboard.c (make_lispy_event) <TOOLBAR_EVENT>: Apply modifiers.
9288
9289 * xterm.c (XTread_socket) [USE_MOTIF] <KeyPress>: Catch events
9290 in scroll bars.
9291 (x_handle_toolbar_click): Set modifier bits.
9292
92931999-07-04 Gerd Moellmann <gerd@gnu.org>
9294
9295 * keyboard.c (kbd_store_ptr): Declare it as a volatile pointer
9296 instead of a pointer to a volatile input_event.
427ec082 9297 (kbd_buffer_store_event): Remove volatile modifier from
26901792
DL
9298 declaration of local variable `sp'.
9299 (Fdiscard_input): Don't cast when assigning kbd_store_ptr
9300 to kbd_fetch_ptr.
9301
93021999-07-03 Gerd Moellmann <gerd@gnu.org>
9303
9304 * xdisp.c (try_window_id): Set beg_unchanged and end_unchanged
9305 only if buffer is modified. Return quickly if changes are
9306 above window start.
9307
93081999-07-02 Gerd Moellmann <gerd@gnu.org>
9309
9310 * dispextern.h (HSCROLL_WINDOWS): Removed.
9311
9312 * xdisp.c (mark_window_display_accurate): Don't set
9313 w->region_showing.
9314 (redisplay_internal): Don't call redraw_garbaged_frames.
9315
93161999-07-01 Gerd Moellmann <gerd@gnu.org>
9317
9318 * xdisp.c (echo_area_display): Don't display truncation marks
9319 for messages because 20.4 doesn't do it either.
9320 (redisplay_window): Case same window start. Instead of giving
9321 up when cursor is partially visible, make it fully visible.
9322 (mark_window_display_accurate): Some cleanup. Record window's
9323 last cursor information.
9324 (debug_method_add): Improved.
9325 (redisplay_internal): Record last cursor info only if not
9326 consider_all_windows_p.
9327
9328 * dispnew.c (update_window): Update top line after scrolling.
9329 (blank_row): Renamed from make_empty_enabled_row.
9330 (increment_glyph_row_buffer_positions): Increment positions
9331 in buffers, only.
9332
9333 * window.c (Fcoordinates_in_window_p): Add top-line to doc
9334 string.
9335
93361999-06-30 Gerd Moellmann <gerd@gnu.org>
9337
9338 * dispnew.c (update_window): Check that updated row is visible.
9339
9340 * xterm.c (x_draw_row_bitmaps): Check for invisible rows at
9341 top of window differently.
9342
9343 * xdisp.c (try_window_reusing_current_matrix): Don't do it
9344 if region is showing.
9345
9346 * dispnew.c (adjust_glyph_matrix): Check w->vscroll when
9347 avoiding matrix reallocation. Set window_vscroll in matrix.
9348
9349 * dispextern.h (struct glyph_matrix): Add member window_vscroll.
9350
26901792
DL
9351 * xdisp.c (debug_method_add): New.
9352 (debug_redisplay_method): Removed.
9353 (try_window_reusing_current_matrix): Handle case where old
9354 window start is the same as new window start.
9355
9356 * dispextern.h (struct glyph_matrix) [GLYPH_DEBUG]: Make `method'
9357 an array instead of a pointer.
9358
26901792
DL
9359 * xfns.c (Fx_show_tip): Undo previous change.
9360
9361 * xterm.c (x_append_glyph): Clear glyph->u.val.
9362
9363 * dispextern.h (struct glyph): Increase size of face_id bit-field
9364 for CHAR_GLYPH to 12.
9365
93661999-06-29 Gerd Moellmann <gerd@gnu.org>
9367
9368 * xfaces.c (x_charset_registry): Make it externally visible.
9369
93701999-06-28 Gerd Moellmann <gerd@gnu.org>
9371
427ec082 9372 * dispnew.c (update_window): Use mode_line_p flag of rows
26901792
DL
9373 instead of WINDOW_WANTS_MODELINE_P.
9374
9375 * xterm.c (clear_mouse_face): Make externally visible.
9376
9377 * xfns.c (Fx_show_tip): Clear mouse face before showing tip.
9378
9379 * xterm.c (expose_line): Handle exposure of top-lines.
9380
9381 * xterm.c (XTframe_up_to_date): Don't call note_mouse_highlight
9382 if mouse_face_mouse_frame is null.
9383
9384 * xdisp.c (redisplay_window): If window is echo_area_window,
9385 and update_mode_line is set, update menubar and toolbar.
9386
9387 * dispnew.c (space_glyph): Set its charpos to -1.
9388 (update_frame_1): Ignore trailing padding spaces.
9389
9390 * xdisp.c (next_element_from_c_string): Set position of padding
9391 glyphs to -1.
9392
93931999-06-27 Gerd Moellmann <gerd@gnu.org>
9394
9395 * xfns.c (x_laplace_read_row): Use XQueryColors instead of
9396 XQueryColor.
9397
9398 * xdisp.c (display_menu_bar): Remove unwarranted assertion.
9399 (set_cursor_from_row): Skip over glyphs having a null object at
9400 the start of rows.
9401 (insert_left_trunc_glyphs): Use charpos < 0 to indicate truncation
9402 glyphs.
9403 (handle_invisible_prop): Compute next change only when needed.
9404 (handle_face_prop): Don't correct DEFAULT_FACE_ID if in the mode
9405 line.
9406
94071999-06-26 Gerd Moellmann <gerd@gnu.org>
9408
9409 * xrdb.c (x_load_resources): Don't set resource for double-click
9410 time.
9411
9412 * xdisp.c (try_window_id): Return quickly if all changes are
9413 below the window's current matrix end.
9414
9415 * dispextern.h (MATRIX_ROW_PARTIALLY_VISIBLE_P): Remove window
9416 parameter.
9417
9418 * xdisp.c (try_window_reusing_current_matrix): Set no_scrolling_p
9419 in desired not in current matrix.
9420 (try_window_reusing_current_matrix): Rotate matrices starting
9421 at start_vpos instead of 0.
9422
9423 * xterm.c (expose_window): Use window_text_bottom_y.
9424 (fast_find_position): Ditto.
9425
9426 * xdisp.c (redisplay_window): Use window_text_bottom_y.
9427 (try_window_reusing_current_matrix): Ditto.
9428 (get_last_unchanged_at_beg_row): Ditto.
9429 (init_iterator): Ditto.
9430
9431 * dispnew.c (allocate_matrices_for_window_redisplay): Allocate one
9432 more row.
9433 (check_matrix_invariants): Use window_text_bottom_y.
9434 (update_window): Ditto.
9435 (scrolling_window): Ditto.
9436
9437 * xdisp.c (window_text_bottom_y): New.
9438
94391999-06-25 Gerd Moellmann <gerd@gnu.org>
9440
9441 * xterm.c (XTread_socket): Set mouse_face_frame to zero after
9442 clearing mouse face.
9443 (XTread_socket) <EnterNotify> [LESSTIF_VERSION]: If
9444 event.xcrossing.focus is not set, and focus is in the menu bar,
9445 set focus frame as if event.xcrossing.focus were set.
9446
94471999-06-24 Gerd Moellmann <gerd@gnu.org>
9448
9449 * keyboard.c (make_lispy_event): Handle mouse on top lines.
9450 * keyboard.c (make_lispy_movement): Ditto.
9451
9452 * window.c (coordinates_in_window): Return 4 if on top line.
9453 (Fcoordinates_in_window_p): Return `top-line' if on top line.
9454
9455 * xdisp.c (window_box_height): Subtract top line height.
9456 (window_box): Add top line height to top y position if top line
9457 exists.
9458 (init_iterator): If base_face_id is TOP_LINE_FACE_ID, set row to
9459 the top line row of the window. Set initial y-position to
9460 window's top line height plus delta.
9461 (start_display): Choose start glyph row depending on whether
9462 window has a top line.
9463 (try_scrolling): Take top line height into account for aggressive
9464 scrolling.
9465 (compute_window_start_on_continuation_line): Take top line into
9466 account.
427ec082 9467 (redisplay_window): Ditto. If top line height has changed,
26901792
DL
9468 trigger a new redisplay.
9469 (try_window_reusing_current_matrix): Take top line into account.
9470 (find_last_row_displaying_text): Ditto.
9471 (get_last_unchanged_at_beg_row): DItto.
9472 (try_window_id): Ditto.
9473 (compute_line_metrics): Ditto.
9474
9475 * dispnew.c (shift_glyph_matrix): Compute visible row height
9476 taking top line of window into account.
9477 (update_window): Update top line. If scrolling_window detects
9478 that all rows are equal, only set cursor.
9479 (update_window_line): Call after_update_window_line_hook if
9480 mode_line_p flag of rows has changed.
9481 (scrolling_window): Add parameter top_line_p. Return -1 if
9482 all rows are equal.
9483 (mode_line_string): Add parameter mode_line_p. Handle strings
9484 in top lines.
9485
9486 * dispextern.h (MATRIX_TOP_LINE_ROW): New.
9487 (MATRIX_FIRST_TEXT_ROW): New.
9488 (MATRIX_ROW_PARTIALLY_VISIBLE_P): Use row's visible_height.
9489 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_TOP_P): New.
9490 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_BOTTOM_P): New.
9491 (MATRIX_TOP_LINE_HEIGHT): New.
9492 (CURRENT_MODE_LINE_HEIGHT): Use estimate_mode_line_height.
9493 (CURRENT_TOP_LINE_HEIGHT): New.
9494 (DESIRED_TOP_LINE_HEIGHT): New.
9495 (WINDOW_DISPLAY_TOP_LINE_HEIGHT): New.
9496 (WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE): Replaces
9497 WINDOW_DISPLAY_TEXT_AREA_PIXEL_HEIGHT.
9498 (WINDOW_DISPLAY_TEXT_HEIGHT): New.
9499
9500 * xterm.c (x_after_update_window_line): Don't draw bitmaps for top
9501 lines.
9502 (x_draw_row_bitmaps): Take top line into account when clearing
9503 bitmap area.
9504 (x_estimate_mode_line_height): Replacement for
9505 x_frame_mode_line_height.
9506 (x_get_glyph_string_clip_rect): Take top line into account.
9507 (x_clear_end_of_line): Ditto.
9508 (note_mode_line_highlight): Add parameter mode_line_p. Handle
9509 top lines.
9510 (note_mouse_highlight): Call note_mode_line_highlight for top lines.
9511 (x_erase_phys_cursor): Take top line into account.
9512
9513 * xdisp.c (window_box_height): Subtract top line height if
9514 window wants a top line.
9515 (display_mode_lines): New.
9516 (redisplay_window): Call it.
9517 (display_mode_line): Add parameters face_id and format.
9518
9519 * dispextern.h (CURRENT_TOP_LINE_HEIGHT): New.
9520 (MATRIX_TOP_LINE_HEIGHT): New.
9521
9522 * xterm.c (x_frame_mode_line_height): Add parameter face_id.
9523
9524 * term.c (estimate_mode_line_height): Renamed from
9525 frame_mode_line_height. Add parameter face_id.
9526 (estimate_mode_line_height_hook): Renamed from
9527 frame_mode_line_height_hook.
9528 (produce_special_glyphs_hook): Removed.
9529 (produce_glyphs_hook): Removed.
9530
95311999-06-23 Gerd Moellmann <gerd@gnu.org>
9532
9533 * dispextern.h (WINDOW_WANTS_TOP_LINE_P): New.
9534 (struct glyph_row): Add mode_line_p.
9535
9536 * xfaces.c (realize_basic_faces): Realize face `top-line'.
9537 (Qtop_line): New.
9538 (syms_of_xfaces): Initialize Qtop_line.
9539
9540 * dispextern.h (TOP_LINE_FACE_ID): New.
9541
9542 * buffer.c (init_buffer_once): Set default for
9543 top_line_format to nil.
9544 (init_buffer_once): Init top_line_format.
9545 (default-top-line-format): New.
9546 (top-line-format): New buffer-local variable.
9547
9548 * buffer.h: Add top_line_format.
9549
9550 * xdisp.c (overlay_arrow_changed_p): Removed because not used.
9551
95521999-06-17 Dave Love <fx@gnu.org>
9553
9554 * xfns.c: Move the PNG section before the JPEG one to avoid
9555 problems surrounding setjmp.h/png.h on GNU/Linux.
427ec082 9556
26901792
DL
95571999-06-17 Gerd Moellmann <gerd@gnu.org>
9558
9559 * xfns.c (x_kill_gs_process): Don't free colors.
9560
95611999-06-17 Dave Love <fx@gnu.org>
9562
9563 * s/gnu-linux.h: Zap spurious ~.
9564
95651999-06-16 Gerd Moellmann <gerd@gnu.org>
9566
9567 * xfns.c (gif_load): Improve multi-image support.
9568
95691999-06-15 Gerd Moellmann <gerd@gnu.org>
9570
9571 * xfns.c (gif_load): Support multi-image files.
9572
9573 * Makefile.in (LIBGIF): Use libungif.
9574
9575 * configure.in (HAVE_GIF): Use libungif instead of libgif
9576 because the former doesn't contain patented compression code.
9577
9578 * xdisp.c (compute_window_start_on_continuation_line): Don't
9579 do it if line start is too far away from window start.
9580
95811999-06-14 Gerd Moellmann <gerd@gnu.org>
9582
9583 * buffer.c (init_buffer_once): Set buffer_local_flags for
9584 scroll_*_aggressively.
9585 (syms_of_buffer): Add DEFVAR_PER_BUFFER for scroll-*-aggressively.
9586 (init_buffer_once): Set defaults for these variables.
9587 (syms_of_buffer): Add default-scroll-*-aggressively.
9588
9589 * buffer.h (scroll_up_aggressively): New.
9590 (scroll_down_aggressively): New.
9591
9592 * Makefile.in (LIBPNG): Add -lz -lm in case we're linking with
9593 a static PNG library.
9594
9595 * configure.in (HAVE_PNG): Add -lz -lm when checking for PNG lib
9596 in case it's a static library.
9597
9598 * Makefile.in (ctagsfiles): Split so that files starting
9599 with an `x' are found before files starting with `w32'.
9600 (ctagsfiles1): New.
9601 (ctagsfiles2): New.
9602 (TAGS): Use ctagsfiles[12] instead of ctagsfiles.
9603
9604 * xdisp.c (compute_window_start_on_continuation_line): New.
9605 (redisplay_window): Use it.
9606 (INFINITY): New.
9607 (reseat_to_string): Use it.
9608 (hscroll_window_tree): Ditto.
9609 (compute_window_start_on_continuation_line): Ditto.
9610 (redisplay_window): Don't force display with a new window start.
9611
96121999-06-06 Gerd Moellmann <gerd@gnu.org>
9613
9614 * xfns.c (x_report_frame_params): Don't report `outer-window-id'
9615 if widget not present.
9616
9617 * xdisp.c (prepare_menu_bars): Ignore tooltip frame.
9618
96191999-06-04 Gerd Moellmann <gerd@gnu.org>
9620
9621 * xfaces.c (recompute_basic_faces)[GLYPH_DEBUG]: Check return
9622 value of realize_basic_faces.
9623 (load_face_font_or_fontset): Store full font name in face.
9624 (realize_default_face): Use full font name.
9625
26901792
DL
9626 * xterm.c (x_produce_glyphs): Set member char_to_display.
9627 (x_append_glyph): Store char_to_display in glyphs.
9628
9629 * dispextern.h (struct it): Add char_to_display.
9630
9631 * xfns.c (x_set_font): Don't call face-set-after-frame-default
9632 if faces haven't been initialized.
9633 (Fx_create_frame): Call face-set-after-frame-default after
9634 faces have been initialized, and widget has been created.
9635
9636 * puresize.h (BASE_PURESIZE): Increased.
9637
96381999-06-01 Gerd Moellmann <gerd@gnu.org>
9639
9640 * xfaces.c (set_lface_from_font_name): Add parameter force_p.
9641 (Finternal_set_lisp_face_attribute): If frame is t when
9642 :font attribute is set, use the selected frame.
9643 (clear_face_cache): Add parameter clear_fonts_p.
9644 (Fclear_face_cache): Add optional parameter thorougly.
9645
9646 * xfaces.c (face_numeric_value): Return -1 if symbol is not
9647 in table.
9648 (Fclear_face_cache): New.
9649 (choose_face_fontset_font): If fontset doesn't contain font
9650 pattern for the given charset, use CHARSET_ASCII.
9651 (Finternal_set_lisp_face_attribute): Fix handling of nil
9652 stipple attribute.
9653 (Finternal_set_lisp_face_attribute): Fix handling of changing
9654 font-related face attributes of the default face.
9655 (set_lface_from_font_name): Set only attributes that aren't
9656 specified.
9657
96581999-05-31 Gerd Moellmann <gerd@gnu.org>
9659
9660 * xfaces.c (SCALABLE_FONTS): Define this to enable scalable
9661 font support.
9662 (Vscalable_fonts_allowed) [SCALABLE_FONTS]: New.
9663 (x_face_list_fonts): Add parameter scalable_fonts_p. Handle
9664 scalable fonts depending on the setting of SCALABLE_FONTS.
9665 (first_font_matching): List more than one font to find the
9666 first non-scalable matching font.
9667 (sorted_font_list): Let x_face_list_fonts return scalable fonts
9668 depending on SCALABLE_FONTS.
9669 (better_font_p): New parameter compare_pt_p. If zero, don't
9670 compare point sizes of fonts.
9671 (exact_face_match_p) [SCALABLE_FONTS]: New.
9672 (build_scalable_font_name) [SCALABLE_FONTS]: New.
9673 (may_use_scalable_font_p) [SCALABLE_FONTS]: New.
9674 (best_matching_font) [SCALABLE_FONTS]: Handle scalable fonts.
9675 (syms_of_xfaces): Add scalable-fonts-allowed.
9676
96771999-05-26 Gerd Moellmann <gerd@gnu.org>
9678
9679 * xfns.c (png_load): Let PNG lib handle gamma. Construct
9680 mask only if image contains simple transparency information.
9681 Otherwise, combine image with frame background color.
9682
9683 * configure.in (--with-png, HAVE_PNG): New.
9684
9685 * config.in (HAVE_PNG): New.
9686
9687 * Makefile.in: Add PNG library.
9688
9689 * xfns.c: Add PNG support.
9690
96911999-05-25 Gerd Moellmann <gerd@gnu.org>
9692
9693 * xdisp.c (init_xdisp): Initialize echo_area_message and
9694 previous_echo_area_message to nil.
9695
9696 * keyboard.c (read_char): Rename local variable echo_area_message
9697 because it shadows the global one.
9698
96991999-05-05 Gerd Moellmann <gerd@gnu.org>
9700
9701 * xterm.c (note_mode_line_highlight): Restructured.
9702
9703 * window.c (coordinates_in_window): Handle windows that don't have
9704 a mode line because their buffer's mode-line-format is nil.
9705 Recognize the mode line under x positions that correspond to
9706 flags areas and left scroll bar.
9707
97081999-05-02 Dave Love <fx@gnu.org>
9709
9710 * xterm.c (note_mouse_highlight): Separate help-echo processing
9711 from check on mouse-face so that it works generally.
9712
97131999-04-21 Gerd Moellmann <gerd@gnu.org>
9714
9715 * sound.c (Fplay_sound): Run hook play-sound-hook.
9716 (Qplay_sound_hook): New.
9717
97181999-04-20 Gerd Moellmann <gerd@gnu.org>
9719
9720 * xdisp.c (update_echo_area): Handle echo_area_message.
9721
97221999-04-19 Gerd Moellmann <gerd@gnu.org>
9723
9724 * editfns.c (Fmessage): Use message3.
9725
9726 * print.c (printchar): Set echo_area_message to nil.
9727 (strout): Ditto.
9728
9729 * minibuf.c (read_minibuf): Reset echo message strings to nil.
9730 (Fminibuffer_completion_help): Ditto.
9731
9732 * keyboard.c (cmd_error_internal): Set echo_areA_message.
9733 (command_loop_1): Test echo_areA_message.
9734 (read_char): Ditto.
9735 (record_menu_key): Set echo_area_message to nil.
9736 (Fexecute_extended_command): Test echo_area_message.
9737 (Fexecute_extended_command): Handle echo_area_message.
9738
9739 * fileio.c (Fdo_auto_save): Handle the case that echo_area_message
9740 is set.
9741
9742 * editfns.c (Fcurrent_message): If echo_area_message is set,
9743 return a substring of that string.
9744
9745 * dispnew.c (direct_output_for_insert): Test echo_area_message
9746 in addition to echo_area_glyphs.
9747 (set_window_cursor_after_update): Ditto.
9748 (update_frame_1): Ditto.
9749
9750 * alloc.c (Fgarbage_collect): Use message3_nolog to display
9751 old Lisp message string.
9752
9753 * xdisp.c (echo_area_message): New.
9754 (previous_echo_area_message): New.
9755 (syms_of_xdisp): Initialize and staticpro new variables.
9756 (echo_area_display): Display echo_area_message if set.
9757 (message2_nolog): Set echo_area_message and
9758 previous_echo_area_message.
9759 (echo_area_display): Set previous_echo_area_message.
9760 (redisplay_internal): Display echo area if echo_area_message
9761 or previous_echo_area_message are set.
9762 (redisplay_preserve_echo_area): Test/set echo_area_message and
9763 previous_echo_area_message.
9764 (redisplay_window): Test echo_area_message.
9765 (message3_nolog): New.
9766 (message3): New.
9767
9768 * editfns.c (Fformat): Add text properties to the result string
9769 from properties of the format string and properties of string
9770 arguments.
9771
9772 * textprop.c (text_property_list): New.
9773 (add_text_properties_from_list): New.
9774 (extend_property_ranges): New.
9775
97761999-03-29 Gerd Moellmann <gerd@gnu.org>
9777
9778 * xfaces.c (Qraised, Qsunken, QCshadow): Removed.
9779 (QCline_width, QCstyle, Qpressed_button, Qreleased_button): New.
9780 Use these symbols for the box face attribute instead of the
9781 removed ones.
9782
97831999-03-12 Gerd Moellmann <gerd@gnu.org>
9784
9785 * xfaces.c (realize_tty_face): Don't set alt_char_p of face.
9786 Correct wrong test for slant.
9787
97881999-03-10 Gerd Moellmann <gerd@gnu.org>
9789
9790 * xfaces.c: Use `unspecified' for unspecified face attributes,
9791 use t and nil for on/off.
9792
97931999-03-06 Gerd Moellmann <gerd@gnu.org>
9794
9795 * buffer.c (syms_of_buffer): Extend doc string of
9796 mode-line-format.
9797
9798 * xfaces.c (x_face_list_fonts): New parameter try_alternatives_p.
9799 (first_font_matching): New.
9800 (set_lface_from_font_name): Use it if font name is a pattern.
9801 (font_field_wildcard_p): Removed.
9802
9803 * dispnew.c (shift_glyph_matrix): Add `window' parameter.
9804 Recompute visible height of rows.
9805
9806 * xterm.c (note_mouse_highlight): Reorder code for help-echo.
9807 Don't accept non-strings for help-echo from overlays.
9808
98091999-03-04 Dave Love <fx@gnu.org>
9810
9811 * xterm.c (note_mouse_highlight): Check overlays for help-text
9812 property.
9813 (XTread_socket): Fix compiler warning.
427ec082 9814
26901792
DL
98151999-03-05 Gerd Moellmann <gerd@gnu.org>
9816
427ec082 9817 * xterm.c (note_mouse_highlight): Don't restrict number of
26901792
DL
9818 overlay to 10. Call overlays_at so that it doesn't try to
9819 extend the vector.
9820
9821 * xdisp.c (compute_line_metrics): Compute glyph row's visible
9822 height.
9823
9824 * dispnew.c (row_equal_p): Compare visible row height, only.
9825 (update_text_area): Draw whole line if visible heights of
9826 rows differ.
9827 (update_window_line): Call after_update_window_line_hook
9828 if visible row height has changed.
9829
9830 * dispextern.h (MATRIX_ROW_VISIBLE_HEIGHT): Removed.
9831 (struct glyph_row): New member visible_height.
9832
9833 * xfaces.c (font_field_wildcard_p): New.
9834 (set_lface_from_font_name): Remove parameter force_p. Accept
9835 font names containing wildcards.
9836
98371999-03-04 Gerd Moellmann <gerd@gnu.org>
9838
9839 * xterm.c (x_after_update_window_line): Clear internal border
9840 when windows_or_buffers_changed.
9841
9842 * dispextern.h (WINDOW_WANTS_MODELINE_P): Return zero if window's
9843 buffer has a nil mode_line_format.
9844
98451999-03-03 Gerd Moellmann <gerd@gnu.org>
9846
9847 * xterm.c (x_setup_relief_colors): Use either background color
9848 or specified color.
9849
9850 * xfaces.c (realize_x_face): Set face->use_box_color_for_shadows_p.
9851
9852 * dispextern.h (struct face): Add use_box_color_for_shadows_p.
9853
9854 * xterm.c (x_draw_box_rect): New.
9855 (x_draw_glyph_string_box): Renamed from
9856 x_draw_glyph_string_relief. Call x_draw_box_rect.
9857
9858 * xfns.c (QCrelief): New.
9859 (syms_of_xfns): Initialize it.
9860
9861 * dispextern.h (struct glyph): Rename left_shadow_p to
9862 left_box_line_p, right_shadow_p to right_box_line_p.
9863 (MAX_RELIEF_THICKNESS): Removed.
9864 (struct it): Rename members having `relief' in their names
9865 to contain `box' instead.
9866
9867 * xfaces.c (realize_x_face): Handle new box attribute values.
9868 (QCrelief, Qbox): Removed.
9869 (QCshadow, QCcolor, Qraised, Qsunken): New.
9870 (syms_of_xfaces): Initialize new symbols.
9871
98721999-03-02 Gerd Moellmann <gerd@gnu.org>
9873
9874 * dispextern.h (LFACE_RELIEF_INDEX): Removed.
9875
9876 * xfaces.c (LFACE_RELIEF): Removed.
9877 (merge_face_vector_with_property): Remove handling of `:relief'.
9878 (Finternal_set_lisp_face_attribute): Ditto.
9879 (Finternal_set_lisp_face_attribute_from_resource): Ditto.
9880 (Finternal_get_lisp_face_attribute): Ditto.
9881 (realize_default_face): Ditto.
9882 (lface_hash): Don't compute hash from relief.
9883
9884 * dispextern.h (struct face): Replace member `relief' by
9885 `box_line_width'. Add member `box'.
9886 (face_box_type): New.
9887
9888 * xterm.c (x_produce_glyphs): If face has overline, add overline
9889 thickness + 1 to ascent.
9890
98911999-03-01 Gerd Moellmann <gerd@gnu.org>
9892
9893 * xterm.c (x_draw_glyph_string): Draw underline, overline,
9894 strike-through, and boxes.
9895 (x_draw_glyph_string_underline): Removed.
9896
9897 * xfaces.c (QCoverline, QCstrike_through, QCbox): New.
9898 (Qoverline, Qstrike_through, Qbox): New.
9899 (syms_of_xfaces): Define these symbols.
9900 (check_lface_attrs): Add checks for overline, strike-through,
9901 and box.
9902 (Finternal_set_lisp_face_attribute): Set new attributes.
9903 (LFACE_OVERLINE, LFACE_STRIKE_THROUGH, LFACE_BOX): New.
9904 (load_color): Handle new attributes.
9905 (realize_x_face): Ditto.
9906 (merge_face_vector_with_property): Ditto.
9907 (free_face_colors): Ditto.
9908 (Finternal_set_lisp_face_attribute_from_resource): Ditto.
9909 (Finternal_get_lisp_face_attribute): Ditto.
9910 (Finternal_lisp_face_attribute_values): Ditto.
9911
9912 * dispextern.h (lface_attribute_index): Add enumerators for
9913 overstrike, strike-through, and box.
9914 (struct face): Add members for overline, strike-through, and
9915 box.
9916
99171999-02-17 Dave Love <fx@gnu.org>
9918
9919 * s/gnu-linux.h s/gnu.h s/irix5-0.h s/netbsd.h s/sco4.h s/sco5.h
9920 s/template.h (NARROWPROTO): Define on the basis of relevant X cf
9921 files.
9922
99231999-02-16 Gerd Moellmann <gerd@gnu.org>
9924
9925 * keyboard.c (toolbar_items): Call access_keymap with third
9926 parameter 1, so that we don't get inherited toolbar item
9927 definitions.
9928
9929 * xdisp.c (redisplay_internal): In optimization 1, don't decrement
9930 the window end vpos when in empty first line of window.
9931
99321999-02-15 Gerd Moellmann <gerd@gnu.org>
9933
9934 * xfaces.c (set_font_frame_param): New.
9935 (Finternal_set_lisp_face_attribute): Call it.
9936
9937Sun Feb 14 10:54:02 1999 Masatake Yamato <masata-y@is.aist-nara.ac.jp>
9938
9939 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
9940 Accept specifications of color for underline.
9941
99421999-02-13 Gerd Moellmann <gerd@gnu.org>
9943
9944 * xfaces.c (Finternal_set_lisp_face_attribute): If parameter
9945 `frame' is t, operate on face defaults for new frames. If it
9946 is nil, operate on the selected frame.
9947
99481999-02-12 Gerd Moellmann <gerd@gnu.org>
9949
9950 * dispnew.c (check_matrix_invariants): Put it in #if 0.
9951 (update_window): Put the call to check_matrix_invariants in #if 0.
9952
9953Sun Feb 7 09:58:49 1999 Masatake Yamato <masata-y@is.aist-nara.ac.jp>
9954
9955 * dispextern.h: Remove all else block of UNDERLINE_COLOR.
9956 Remove definition of UNDERLINE_COLOR.
9957
9958Mon Jan 4 04:43:41 1999 Masatake Yamato <masata-y@is.aist-nara.ac.jp>
9959
9960 * xfaces.c (free_face_colors): Free the color for underline.
9961
9962 * xterm.c (x_draw_glyph_string_underline): Set the color for underline
9963 to the GC.
9964
9965Sun Jan 3 08:41:10 1999 Masatake Yamato <masata-y@is.aist-nara.ac.jp>
9966
9967 * dispextern.h (UNDERLINE_COLOR): Defined.
9968 (struct face): Added two new members.
9969 underline_color, underline_defaulted_p.
9970
427ec082 9971 * xfaces.c (merge_face_vector_with_property):
26901792 9972 (check_lface_attrs): Accept the string value for underline.
427ec082 9973 (Finternal_set_lisp_face_attribute): Likewise.
26901792
DL
9974
9975 * xfaces.c (load_color): Change the last argument type to enum
9976 lface_attribute_index from int. And addec code for underling coloring.
9977 (load_face_colors): Pass LFACE_*_INDEX to load_color.
427ec082 9978
26901792
DL
99791999-02-12 Gerd Moellmann <gerd@gnu.org>
9980
9981 * xfns.c (Fx_image_header): Removed.
9982
99831999-02-07 Gerd Moellmann <gerd@gnu.org>
9984
9985 * xterm.c: Don't include <bitmaps/gray>.
9986 (x_term_init): Use gray_bitmap_width and gray_bitmap_height.
9987
9988 * xfns.c (Fx_image_header): Add missing `\n\'.
9989 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits): New.
9990
99911999-02-01 Gerd Moellmann <gerd@gnu.org>
9992
9993 * xterm.c (x_scroll_bar_create): Set background pixel from
9994 specified scroll bar color.
9995 (x_scroll_bar_set_handle): Use scroll bar foreground color.
9996
9997 * xfns.c (x_set_scroll_bar_foreground): Remove all scroll bars.
9998 (x_set_scroll_bar_background): Ditto.
9999
10000 * xterm.c (x_create_toolkit_scroll_bar): Set scroll bar colors.
10001
10002 * xfns.c (x_default_scroll_bar_color_parameter): New.
10003 (Fx_create_frame): Call it.
10004
100051999-01-31 Gerd Moellmann <gerd@gnu.org>
10006
10007 * xfns.c (Fx_create_frame): Initialize scroll bar pixel color
427ec082 10008 values in x_output structure.
26901792
DL
10009 (Qscroll_bar_foreground, Qscroll_bar_background): New.
10010 (syms_of_xfns): Initialize these symbols.
10011
10012 * xterm.h (struct x_output): Add scroll bar pixel colors.
10013
10014 * xfns.c (x_frame_parms): Add entries for scroll bar colors.
10015 (x_set_scroll_bar_foreground): New.
10016 (x_set_scroll_bar_background): New.
10017
26901792
DL
100181999-01-12 Gerd Moellmann <gerd@gnu.org>
10019
10020 * xdisp.c (handle_single_display_prop): New.
10021 (handle_display_prop): Call it.
10022 (handle_raise_prop): Removed.
10023 (handle_height_prop): Removed.
10024 (handle_space_width_prop): Removed.
10025 (handle_face_prop): Remove handling of raised text.
10026 (handle_display_prop): Do it here.
10027
10028 * dispextern.h (DISPLAY_PROP_IDX): Replaces GLYPH_PROP_IDX.
10029 (RAISE_PROP_IDX): Removed.
10030 (HEIGHT_PROP_IDX): Removed.
10031 (SPACE_WIDTH_PROP_IDX): Removed.
10032
10033 * xdisp.c (Qdisplay): Replaces Qglyph.
10034 (handle_display_prop): Formerly handle_glyph_prop.
10035
100361999-01-11 Gerd Moellmann <gerd@gnu.org>
10037
10038 * xdisp.c (reseat_to_string): Set position in display vector to -1.
10039 (handle_stop): Set position in display vector to -1. Don't
10040 check overlay strings when set up to deliver characters from a
10041 display vector.
10042 (set_iterator_to_next): At the end of a run of characters from a
10043 display vector, check whether the display vector display replaces
10044 the display of a character.
10045
100461999-01-05 Gerd Moellmann <gerd@gnu.org>
10047
10048 * xfaces.c (init_frame_faces): Don't realize faces if frame's
10049 X window hasn't been created yet.
10050
100511998-12-06 Gerd Moellmann <gerd@gnu.org>
10052
10053 * sound.c: New.
10054
100551998-12-04 Gerd Moellmann <gerd@gnu.org>
10056
10057 * config.in (HAVE_SOUND): New.
10058
10059 * emacs.c (main): Call syms_of_sound and init_sound.
10060
10061 * Makefile.in (obj): Add sound.o.
10062
10063 * configure.in: Add checks for machine/soundcard.h and sys/soundcard.h.
10064
10065 * config.in (HAVE_MACHINE_SOUNDCARD_H): New.
10066 (HAVE_SYS_SOUNDCARD_H): New.
10067
100681998-12-03 Gerd Moellmann <gerd@gnu.org>
10069
10070 * buffer.h (struct buffer): indicate_empty_lines renamed from
10071 indicate_zv_lines.
10072
10073 * buffer.c (indicate-empty-lines): Renamed from indicate_zv_lines.
10074 (default-indicate-zv-lines): Likewise.
10075
10076 * dispextern.h (struct glyph_row): Rename indicate_zv_line_p
10077 to indicate_empty_line_p.
10078
10079 * xdisp.c (reseat_at_next_visible_line_start): Reset method
10080 to next_element_from_buffer.
10081
10082 * frame.c (make_frame): Set n_current_toolbar_items to 0.
10083
10084 * xdisp.c (handle_face_prop): Allow symbols of the form `N+'
10085 and `N-'.
10086
10087 * xfns.c (xbm_scan): New.
10088 (xbm_read_hexint): Removed.
10089 (xbm_read_bitmap_file_data): Use xbm_scan.
10090
10091 * fileio.c (Finsert_file_contents): Prevent redisplay optimizations.
10092
100931998-12-02 Gerd Moellmann <gerd@gnu.org>
10094
10095 * xfns.c (xbm_read_hexint): New.
10096 (xbm_read_bitmap_file_data): New.
10097 (xbm_load_image_from_file): Call xbm_read_bitmap_file_data
10098 instead of XReadBitmapFileData.
10099
10100 * xdisp.c (handle_raise_prop): Compute voffset from current font.
10101
10102 * xfaces.c (face_with_height): New.
10103
10104 * xdisp.c (eval_handler): Renamed from eval_mode_handler.
10105 (eval_form): Renamed from eval_mode_element.
10106 (handle_face_prop): Use it.
10107 (Qheight): Replaces Qsmaller.
10108 (handle_height_prop): Replaces handle_smaller_prop.
427ec082 10109 (handle_face_prop): If iterator's font_height is not an
26901792
DL
10110 integer, evaluate it to get the font height to use.
10111
10112 * dispextern.h (HEIGHT_PROP_IDX): Replaces SMALLER_PROP_IDX.
10113 (struct it): Use `font_height' instead of `smaller'.
10114
101151998-12-01 Gerd Moellmann <gerd@gnu.org>
10116
10117 * xdisp.c (reseat_1): New.
10118 (reseat): Call it.
10119 (move_it_vertically_backward): Ditto.
10120 (redisplay_window): Don't abort when cursor not found in recenter.
10121
101221998-11-30 Gerd Moellmann <gerd@gnu.org>
10123
10124 * xdisp.c (reseat_at_next_visible_line_start): When not
10125 currently delivering display elements from the current buffer,
10126 restore buffer position first.
10127 (init_from_display_pos): Don't set IT's position from the
10128 position passed to this function.
10129
101301998-11-28 Gerd Moellmann <gerd@gnu.org>
10131
10132 * config.in (PROTO): Removed.
10133
10134 * xterm.h: Change PROTO to P_.
10135
101361998-11-26 Gerd Moellmann <gerd@gnu.org>
10137
10138 * xterm.c (take_vertical_position_into_account): New.
10139 (x_produce_image_glyph): Call it.
10140 (x_produce_stretch_glyph): Ditto.
10141 (x_produce_glyphs): Ditto.
10142 (x_fill_glyph_string): Adjust base line for glyph's voffset.
10143 (x_fill_composite_glyph_string): Ditto.
10144 (x_fill_image_glyph_string): Ditto.
10145 (x_fill_stretch_glyph_string): Ditto.
10146
10147 * xdisp.c (display_line): Always compute row height from
10148 max_ascent and max_descent.
10149
10150 * dispextern.h (struct glyph): Add voffset.
10151 (struct it): Replace height by descent, max_height by max_descent.
10152
10153 * xterm.c (x_append_glyph): Set voffset
10154 (x_append_stretch_glyph): Ditto.
10155 (x_produce_image_glyph): Ditto.
10156 (x_produce_glyphs): Take voffset into account.
10157 (x_produce_image_glyph): Ditto.
10158 (x_produce_stretch_glyph): Ditto.
10159
10160 * dispextern.h (struct it): Add voffset.
10161 * xdisp.c (push_it): Save voffset.
10162 (pop_it): Restore it.
10163
10164 * xdisp.c (it_props): Add entry for `raise'.
10165 (handle_raise_prop): New.
10166
10167 * dispextern.h (RAISE_PROP_IDX): New.
10168
10169 * xdisp.c (Qraise): New.
10170 (syms_of_xdisp): Define Qraised.
10171
10172 * xterm.c (x_scroll_bar_move): Clear to the left and right
10173 of toolkit scroll bars differently.
10174 (x_scroll_bar_move): Removed.
10175 (XTset_vertical_scroll_bar): Move code from x_scroll_bar_move here.
10176
10177 * dispextern.h: Make it compilable --with-x=no.
10178 * alloc.c: Ditto.
10179 * emacs.c: Ditto.
10180 * dispnew.c: Ditto.
10181 * keyboard.c: Ditto.
10182 * term.c: Ditto.
10183 * xdisp.c: Ditto.
10184 * xfaces.c: Ditto.
10185 * xfns.c: Ditto.
10186 * xmenu.c: Ditto.
10187
101881998-11-25 Gerd Moellmann <gerd@gnu.org>
10189
10190 * xterm.c (XTread_socket): Cancel help-echo when leaving frame.
10191
101921998-11-24 Gerd Moellmann <gerd@gnu.org>
10193
10194 * xterm.c (x_set_toolkit_scroll_bar_thumb): When dragging,
10195 update slider size, only.
10196 (xm_scroll_callback): Set dragging member of the scroll bar.
10197 (xt_action_hook): Reset last_scroll_bar_part.
10198 (XTredeem_scroll_bar): Reset bar->dragging to nil.
10199
26901792
DL
10200 * xfns.c (Fx_hide_busy_cursor): Don't try to hide busy cursor
10201 window on newly created frames that don't have one.
10202
102031998-11-23 Gerd Moellmann <gerd@gnu.org>
10204
10205 * xdisp.c (restore_overlay_strings): Removed.
10206 (restore_dpvec): Removed.
10207 (init_from_display_pos): Inline both functions above.
10208
10209 * xfns.c (IMAGE_NON_NEGATIVE_INTEGER_VALUE): New.
10210 (parse_image_spec): Handle it.
10211 (xbm_format): Use it.
10212 (xpm_format): Ditto.
10213 (pbm_format): Ditto.
10214 (jpeg_format): Ditto.
10215 (tiff_format): Ditto.
10216 (gif_format): Ditto.
10217 (gs_format): Ditto.
10218
10219 * xdisp.c (set_window_cursor): Removed.
10220 (redisplay_internal): Case cursor motion in cursor line of
10221 selected window; use set_cursor_from_row.
10222
102231998-11-22 Gerd Moellmann <gerd@gnu.org>
10224
10225 * widget.c (EmacsFrameSetCharSize): Take widget's border width
10226 into account.
10227
102281998-11-21 Gerd Moellmann <gerd@gnu.org>
10229
10230 * xterm.c (expose_frame): Redraw menu bar window.
10231
10232 * xdisp.c (display_menu_bar): Record hpos instead of x-position
10233 in menu item.
10234
10235 * dispnew.c (change_frame_size_1): Use FRAME_TOP_MARGIN instead
10236 of FRAME_TOOLBAR_LINES. Use `f' instead of `frame'.
10237
10238 * widget.c (set_frame_size): Use FRAME_SCROLL_BAR_COLS
10239 to determine vertical_scroll_bar_extra.
10240 (EmacsFrameSetCharSize): Ditto.
10241 * xfns.c (x_figure_window_size): Ditto.
10242
10243 * xterm.c (x_draw_row_bitmaps): Draw in `bitmap-area' face.
10244 (x_draw_bitmap): Ditto.
10245
10246 * dispextern.h (face_id): New id BITMAP_AREA_FACE_ID.
10247 * xfaces.c (realize_basic_faces): Realize it.
10248
102491998-11-20 Gerd Moellmann <gerd@gnu.org>
10250
10251 * xmenu.c (xmenu_show): Add workaround for remaining button grab
427ec082 10252 under LessTif Use the widget of the frame as parent for the
26901792
DL
10253 menu, again.
10254
102551998-11-19 Gerd Moellmann <gerd@gnu.org>
10256
10257 * xterm.c (XTread_socket): Inhibit busy cursor for EnterNotify.
10258 When EnterNotify, don't generate a mouse movement event if
10259 notification is from a busy-cursor child window.
10260
10261 * xterm.h (struct x_output): Add busy_window, remove cursor.
10262
10263 * xfns.c (Fx_show_busy_cursor): Formerly Fx_display_busy_cursor.
10264 Use a transparent window to display the busy-cursor.
10265 (Fx_hide_busy_cursor): Formerly Fx_undisplay_busy_cursor.
10266
102671998-11-17 Gerd Moellmann <gerd@gnu.org>
10268
10269 * xdisp.c (check_window_end): New, for debugging.
10270 (CHECK_WINDOW_END): New.
10271 (try_window_id): Use it.
10272
10273 * xterm.c (process_expose_from_menu): Return int.
10274
10275 * keyboard.c (kbd_buffer_get_event): Set flag to prevent recording
10276 TOOLBAR_EVENT events in last_nonmenu_event.
10277
102781998-11-16 Gerd Moellmann <gerd@gnu.org>
10279
10280 * xdisp.c (redisplay_window): If windows_or_buffers_changed,
10281 window end isn't reliable, so set window_end_valid to nil.
10282 (redisplay_internal): If overlay arrow has changed, set
10283 windows_or_buffers_changed to redisplay thoroughly.
10284
10285 * dispnew.c (adjust_glyph_matrix): Invalidate window end, if
10286 necessary.
10287
10288 * xfns.c (file_dialog_cb): New.
10289 (Fx_file_dialog): New.
10290 * fileio.c (Fread_file_name): Call it.
10291
427ec082 10292 * xrdb.c (x_load_resources): Add default resoures for file
26901792
DL
10293 selection dialog.
10294
102951998-11-14 Gerd Moellmann <gerd@gnu.org>
10296
10297 * xterm.c (note_mouse_highlight): Don't highlight when popup
10298 is active.
10299
26901792
DL
10300 * keyboard.c (timer_check): Inhibit busy cursor around calls to
10301 timer-event-handler. This busy cursor tends to be anoying if
10302 fontifying stealthily.
10303
10304 * dispnew.c (direct_output_for_insert): Give up if current row
10305 contains trailing whitespace.
10306
103071998-11-13 Gerd Moellmann <gerd@gnu.org>
10308
10309 * dispextern.h (prop_idx): Add FONTIFIED_PROP_IDX.
10310
10311 * xdisp.c (handle_fontified_prop): New.
10312 (Vfontification_functions): New.
10313 (Qfontification_functions): New.
10314 (it_props): Add handle_fontified_prop.
10315
103161998-11-12 Gerd Moellmann <gerd@gnu.org>
10317
10318 * xmenu.c (xmenu_show): Use the frame's edit_widget as parent.
10319 Otherwise, under LessTif, after the popup has gone, all button
10320 press events come in for the frame's widget, and release events
10321 come in for the edit_widget.
10322 * xterm.c (XTread_socket): Remove workaround for that problem.
10323 (x_set_toolkit_scroll_bar_thumb): Add workaround for LessTif
10324 XmScrollBarSetValues.
10325 (SET_SAVED_MENU_EVENT): Give it statement form.
10326
26901792
DL
10327 * xfaces.c (display_message): If waiting_for_input, don't display
10328 the message.
10329
10330 * window.c (scroll_command): If not acting on current_buffer,
10331 make redisplay consider all windows.
10332
10333 * xfns.c (Fx_hide_tip): Return t if tooltip was open.
10334
10335 * xdisp.c (handle_glyph_prop): Set it->object for images to
10336 the object having the glyph property.
10337
10338 * xterm.c (x_draw_row_bitmaps): Don't draw if row is completely
10339 invisible.
10340
103411998-11-11 Gerd Moellmann <gerd@gnu.org>
10342
10343 * xterm.h (struct x_display_info): Add gray pixmap. * xterm.c
10344 (x_term_init): Create the gray pixmap.
10345 (x_setup_relief_color): Use it.
10346 (x_get_glyph_string_clip_rect): Draw a toolbar window over the
10347 internal border at the top of a frame.
10348 (x_init_glyph_string): Likewise.
427ec082 10349 (x_draw_glyph_string_relief): Correct right x by 1 pixel for
26901792
DL
10350 full-width lines.
10351 (XTflash): Don't flash the toolbar window.
10352
10353 * xterm.c (XTread_socket): Workaround for LessTif popup menus
10354 in case of ButtonPress events.
10355
103561998-11-10 Gerd Moellmann <gerd@gnu.org>
10357
10358 * xrdb.c (x_load_resources): Add grey background colors as
10359 defaults for menus, scroll bars, and dialogs.
10360
10361 * insdel.c (prepare_to_modify_buffer): Move setting
10362 windows_or_buffers_changed from modify_region here.
10363
10364 * xfns.c (Fx_show_tip): Inhibit redisplay.
10365 (Fx_hide_tip): Ditto.
10366 (Fx_image_header): New.
10367
103681998-11-09 Gerd Moellmann <gerd@gnu.org>
10369
10370 * dispnew.c (clear_window_matrices): Set window_end_valid to nil
10371 when clearing current window matrices.
10372
103731998-11-08 Gerd Moellmann <gerd@gnu.org>
10374
10375 * xdisp.c (handle_glyph_prop): Don't set an iterator's buffer
10376 position from a string position. Use the right end position
10377 if the property spans a whole overlay string.
10378
103791998-11-07 Gerd Moellmann <gerd@gnu.org>
10380
10381 * xmenu.c (menubar_selection_callback): Remove workaround for
10382 Lesstif not calling XmNpopdownCallback because it doesn't
10383 handle the case where users don't select any menu item.
10384
26901792
DL
10385 * insdel.c (modify_region): Set windows_or_buffers_changed.
10386
10387 * buffer.c (set_buffer_internal): Don't set
10388 windows_or_buffers_changed.
10389
26901792
DL
10390 * xmenu.c (HAVE_BOXES): Define if USE_X_TOOLKIT.
10391
26901792
DL
10392 * xmenu.c (menubar_selection_callback): Add workaround for
10393 Lesstif not calling XmNpopdownCallback.
10394
10395 * xdisp.c (eval_mode_element): New.
10396 (eval_mode_handler): New.
10397 (display_mode_element): Use eval_mode_element.
10398
10399 * xdisp.c (display_mode_element): Allow `(:eval FORM)'.
10400 Remove code looking at text props of default value.
10401
10402 * xmenu.c (HAVE_BOXES): Define if using Lucid menus.
10403
26901792
DL
104041998-11-06 Gerd Moellmann <gerd@gnu.org>
10405
427ec082 10406 * xmenu.c (single_submenu): Set button_type of menu to
26901792
DL
10407 BUTTON_TYPE_NONE.
10408 (single_submenu): Likewise for panes and menu items.
10409 (set_frame_menubar): Set button_type of menu bar to none.
10410 (xmenu_show): Likewise.
10411 (single_submenu): Set widget values selected slot.
10412 (xmenu_show): Likewise.
10413
26901792
DL
10414 * xmenu.c (push_menu_item): Add parameters `type' and
10415 `selected'. Store it in menu_items.
10416 (MENU_ITEMS_ITEM_TYPE): New.
10417 (MENU_ITEMS_ITEM_SELECTED): New.
10418 (MENU_ITEMS_ITEM_LENGTH): Increase by two.
10419
10420 * xfns.c (clear_image_cache): Get the current time, before
10421 doing anything.
10422 (cache_image): Set prev pointer of next image.
10423 (clear_image_cache): Clear current matrices if any image was
10424 freed.
10425
10426 * xterm.c (XTread_socket): Set inhibit_busy_cursor.
10427
10428 * xfns.c (x_set_cursor): New.
10429 (Fx_display_busy_cursor): New.
10430 (Fx_undisplay_busy_cursor): New.
10431
10432 * xterm.h (struct x_output): Add busy_cursor.
10433
10434 * xfns.c (Vx_busy_pointer_shape): New.
10435 (x_set_mouse_color): Create busy cursor.
10436
10437 * process.c (wait_reading_process_input): Show and hide busy
10438 cursor.
10439
10440 * keyboard.c (command_loop_1): Display busy cursor.
10441
10442 * eval.c (Fsignal): Hide busy cursor.
10443
10444 * buffer.c (set_buffer_internal): Don't set
10445 windows_or_buffers_changed.
10446
10447 * xterm.c (redo_mouse_highlight): New.
10448
104491998-11-04 Gerd Moellmann <gerd@gnu.org>
10450
26901792
DL
10451 * xfns.c (x_create_x_image_and_pixmap): Add depth parameter.
10452 (x_build_heuritic_mask): New.
10453 (lookup_image): Call it.
10454
10455 * xterm.c (note_toolbar_highlight): Always set up help_echo.
10456 (previous_help_echo): New.
10457 (XTread_socket): Generate help event with nil message when
10458 leaving a region with help-echo.
10459 (note_mouse_highlight): Handle `help-echo' over text.
10460 (XTread_socket): Dispatch VisibilityNotify, CirculateNotify,
10461 CirculateRequest.
10462 (clear_mouse_face): Don't clear if tooltip is shown.
10463 (XTread_socket): Redo mouse-highlight after tooltip is gone.
10464 Avoid SET_FRAME_GARBAGED when tooltip is mapped.
10465
10466 * keyboard.c (Vshow_help_function): New.
10467 (read_char): Use it.
10468
104691998-11-03 Gerd Moellmann <gerd@gnu.org>
10470
10471 * xfns.c (x_create_tip_frame): New.
10472 (Fx_show_tip): New.
10473 (Fx_hide_tip): New.
10474
427ec082 10475 * xterm.c (x_destroy_window): Handle case that we don't have
26901792
DL
10476 a widget.
10477
10478 * dispextern.h (struct glyph_row): Rename no_marginal_areas_p
10479 to full_width_p. Add internal_border_p.
10480
104811998-11-02 Gerd Moellmann <gerd@gnu.org>
10482
10483 * xterm.c (note_mode_line_highlight): Check the charpos of
10484 the glyph under the mouse pointer before accessing text
10485 properties at that position.
10486
104871998-11-01 Gerd Moellmann <gerd@gnu.org>
10488
10489 * xterm.c (x_draw_image_relief): Handle toolbar_button_relief.
10490
10491 * xdisp.c (auto-raise-toolbar-buttons): New.
10492 (build_desired_toolbar_string): Handle the flag.
10493 (toolbar-button-margin): New.
10494 (toolbar-button-relief): New.
10495 (build_desired_toolbar_string): Use margin and relief.
10496
10497 * xterm.c (x_set_toolkit_scroll_bar_thumb): Remove workaround
10498 for FreeBSD.
10499 (note_mode_line_highlight): New.
10500 (note_mouse_highlight): Call it.
10501
105021998-10-31 Gerd Moellmann <gerd@gnu.org>
10503
10504 * s/freebsd.h (NARROWPROTO): New.
10505
10506 * xdisp.c (display_string): New parameter face_string.
10507 (display_mode_element): When displaying a symbol with a string
10508 value, use text properties from the symbol's default value, maybe.
10509
10510 * xrdb.c (x_load_resources): Add font defaults for menus and
10511 dialogs.
10512
105131998-10-30 Gerd Moellmann <gerd@gnu.org>
10514
10515 * xfns.c (Fx_create_frame): Try 12pt Courier font first.
10516
105171998-10-29 Gerd Moellmann <gerd@gnu.org>
10518
10519 * xterm.c (x_produce_glyphs): Fix bug causing glyphs to be
10520 produced for characters with codes < 32 under certain
10521 circumstances.
10522
10523 * xdisp.c (redisplay_window): Handle values of PT in front
10524 of invisible, intangible text.
427ec082 10525 (try_window_id): Set overlay_arrow_seen to zero before
26901792
DL
10526 displaying lines.
10527 (display_mode_element): Assign to glyphs written for a mode
10528 line spec `%x' as object the Lisp format string, as position
10529 the position of the `%' in that string.
10530 (display_string): If displaying a C string, optionally get
10531 the face to use from a Lisp string.
10532
10533 * xterm.c (expose_window_tree): Include mode line height.
10534
10535 * xfns.c (Fx_create_frame): Add toolbar height to frame height.
10536
105371998-10-27 Gerd Moellmann <gerd@gnu.org>
10538
10539 * xterm.c (note_mouse_highlight): Change mouse pointer shape
10540 over mode line.
10541
105421998-10-26 Gerd Moellmann <gerd@gnu.org>
10543
10544 * window.c (coordinates_in_window): Use CURRENT_MODE_LINE_HEIGHT.
10545
10546 * xdisp.c (redisplay_window): If mode line height has changed,
10547 arrange for a thorough immediate redisplay using the correct mode
10548 line height.
10549 (window_box_height): Use CURRENT_MODE_LINE_HEIGHT.
10550
10551 * dispextern.h (MATRIX_MODE_LINE_HEIGHT): New.
10552 (CURRENT_MODE_LINE_HEIGHT): New.
10553 (DESIRED_MODE_LINE_HEIGHT): New.
10554
10555 * keyboard.c (make_lispy_event): Add string and string position
10556 info to mouse-click events.
10557 (read_key_sequence): Handle `local-map' property of mode line
10558 strings.
10559
10560 * keyboard.h (POSN_STRING): New.
10561
105621998-10-25 Gerd Moellmann <gerd@gnu.org>
10563
10564 * dispnew.c (mode_line_string): Mew.
10565
10566 * xterm.c (xt_action_hook): New.
10567 (x_create_toolkit_scroll_bar): Add action hook.
10568 (xm_scroll_callback): Implement dragging.
10569
10570 * keyboard.c (Qend_scroll): New.
10571 (scroll_bar_parts): Add it.
10572
10573 * termhooks.h (scroll_bar_end_scroll): New.
10574
10575 * xterm.c (XTread_socket): Bug fix.
10576
105771998-10-24 Gerd Moellmann <gerd@gnu.org>
10578
10579 * xdisp.c (redisplay_window): Finish scroll bars after
10580 redisplaying toolbar.
10581
10582 * keyboard.c (scroll_bar_parts): Add Qtop and Qbottom.
10583 (syms_of_keyboard): Add Qbottom.
10584
10585 * termhooks.h (scroll_bar_to_top): New.
10586 (scroll_bar_to_bottom): New.
10587
10588 * xdisp.c (redisplay_window): Always resize toolbar window if
10589 auto_resize_toolbar_p is non-zero.
10590 (auto_resize_toolbar_p): Renamed from auto_resize_toolbar.
10591 (window_box): New.
10592 (window_box_height): New.
10593 (window_box_width): New.
10594 (window_box_left): New.
10595 (window_box_right): New.
10596 (window_box_edges): New.
10597
105981998-10-23 Gerd Moellmann <gerd@gnu.org>
10599
10600 * xterm.c (x_set_toolkit_scroll_bar_thumb): Kluge for call to
10601 XawScrollbarSetThumb in FreeBSD.
10602 (x_create_toolkit_scroll_bar): Set resource "beNiceToColormap"
10603 to true.
10604
10605 * window.c (get_phys_cursor_glyph): Return null if cursor vpos
10606 is out of range.
10607
10608 * xterm.c (x_create_toolkit_scroll_bar): Set scroll_bar_pixel.
10609 (x_term_init): Initialize it.
10610
10611 * xterm.h (struct x_display_info): Add scroll_bar_pixel.
10612
10613 * xterm.c (x_create_toolkit_scroll_bar): Set LessTif scroll bar's
10614 cursor.
10615
106161998-10-22 Gerd Moellmann <gerd@gnu.org>
10617
10618 * keyboard.c (make_lispy_event): Handle scroll_bar_click
10619 differently when using toolkit scroll bars.
10620
10621 * xterm.c (x_send_scroll_bar_event): New.
10622 (x_scroll_bar_to_input_event): New.
10623 (xaw3d_scroll_callback): New.
10624 (xaw3d_jump_callback): New.
10625 (xm_scroll_callback): New.
10626 (x_toolkit_scroll_p): New.
10627 (XTread_socket): Handle scroll bar client message.
10628 (x_term_init): Initialize Xatom_Scrollbar.
10629 (x_scroll_bar_create): Set cursor.
10630 (xm_scroll_callback):
10631 (x_create_toolkit_scroll_bar): New.
10632 (x_set_toolkit_scroll_bar_thumb): New.
10633 (x_scroll_bar_create): Call x_create_toolkit_scroll_bar.
10634 (XTset_vertical_scroll_bar): Call x_set_toolkit_scroll_bar_thumb.
10635
10636 * xterm.h (struct x_display_info): Add Xatom_Scrollbar.
10637
106381998-10-21 Gerd Moellmann <gerd@gnu.org>
10639
10640 * xterm.c (x_scroll_bar_remove): Handle toolkit scroll bars.
10641 (XTread_socket): Don't handle mouse button events for scroll bars
10642 if using toolkit scroll bars.
10643 (XTset_vertical_scroll_bar): Set thumb size and position for
10644 Athena scroll bar.
10645
10646 * xterm.h (scroll_bar): Add x_widget_low and x_widget_high.
10647
10648 * xterm.c (XTread_socket): Dispatch expose event to widget
10649 if using toolkit scroll bars.
10650 (x_scroll_bar_expose): Make no-op for toolkit scroll bars.
427ec082 10651 (x_scroll_bar_create): Create and show a scroll bar widget
26901792
DL
10652 if using toolkit scroll bars.
10653 (x_scroll_bar_move): Handle tookit scroll bars.
10654
10655 * Makefile.in (LIBW): Use Xaw3d if present.
10656
10657 * configure.in (USE_TOOLKIT_SCROLL_BARS): New.
10658 (HAVE_XAW3D): New.
427ec082 10659
26901792
DL
10660 * config.in (USE_TOOLKIT_SCROLL_BARS): New.
10661 (HAVE_XAW3D): New.
10662
427ec082 10663 * xterm.c (XTset_vertical_scroll_bar): Correct position of
26901792
DL
10664 right vertical scroll bar.
10665
106661998-10-20 Gerd Moellmann <gerd@gnu.org>
10667
10668 * xfns.c (xpm_load): Support reading XPM images from string
10669 buffers containing data in the same format as an XPM file.
10670 Support `:color-symbols'.
10671 (xpm_format): Add `:data'.
10672 (xpm_keyword_index): Add XPM_DATA.
10673 (syms_of_xfns): Add `:color-symbols'.
10674 (xpm_keyword_index): Add XPM_COLOR_SYMBOLS.
10675 (xpm_valid_color_symbols_p): New.
10676 (xpm_image_p): Call it.
10677
10678 * xdisp.c (build_desired_toolbar_string): Add `:algorithm'
10679 attribute to the image if item is not enabled.
10680
10681 * xfns.c (x_laplace): New.
10682 (x_laplace_read_row): New.
10683 (x_laplace_write_row): New.
10684 (lookup_image): Handle common image attributes here. New
10685 attribute `:algorithm'.
10686
10687 * xfaces.c (clear_face_cache): Call clear_image_cache.
10688
10689 * xterm.c (x_inverted_image_mask): Removed.
10690 (x_draw_image_foreground_1): New.
10691 (x_draw_image_glyph_string): Draw images with mask to a temporary
10692 pixmap to reduce flickering.
10693
10694 * xdisp.c (redisplay_toolbar): Handle auto-resize-toolbars.
10695 (display_toolbar_line): Remove parameter `margin'.
10696
106971998-10-19 Gerd Moellmann <gerd@gnu.org>
10698
10699 * xdisp.c (toolbar_lines_needed): New.
10700 (auto-resize-toolbars): New.
10701
10702 * xfns.c (cache_image): Correct call to xrealloc.
10703
10704 * dispnew.c (Fset_toolbar_height): Removed.
10705
10706 * xdisp.c (init_xdisp): Use FRAME_TOP_MARGIN instead of
10707 FRAME_MENU_BAR_LINES.
10708
10709 * window.c (Fdelete_other_windows): Use FRAME_TOP_MARGIN
10710 instead of FRAME_MENU_BAR_LINES.
10711 (check_frame_size): Ditto.
10712
10713 * dispnew.c (adjust_frame_glyphs_initially): Use FRAME_TOP_MARGIN
10714 instead of FRAME_MENU_BAR_LINES.
10715 (adjust_frame_glyphs_for_frame_redisplay): Ditto.
10716 (build_frame_matrix): Ditto.
10717 (change_frame_size_1): Ditto.
10718
10719 * frame.h (FRAME_TOOLBAR_LINES): New.
10720 (FRAME_TOP_MARGIN): New.
10721
10722 * window.c (struct save_window_data): Add frame_toolbar_lines.
10723 (Fset_window_configuration): Handle toolbar lines.
10724 (Fcurrent_window_configuration): Save toolbar lines.
10725
10726 * frame.c (syms_of_frame_1): Add Qtoolbar_lines.
10727
10728 * xfns.c (Fx_create_frame): Add default parameter for toolbar.
10729
10730 * frame.h (struct frame): Rename top_margin to toolbar_lines.
10731
10732 * xfns.c (x_frame_parms): Add `toolbar-lines'.
10733 (x_set_toolbar_lines): New.
10734
10735 * keyboard.c (cmd_error_internal): Bug fix.
10736
10737 * xterm.c: Remove double include of syssignal.h.
10738
107391998-10-18 Gerd Moellmann <gerd@gnu.org>
10740
10741 * xterm.c (x_toolbar_item): New.
10742 (x_handle_toolbar_click): Use it.
10743 (note_toolbar_highlight): Use it.
10744
10745 * keyboard.c (syms_of_keyboard): Staticpro toolbar_item_properties
10746 and toolbar_items_vectors.
10747
10748 * xterm.c (help_echo): New.
10749 (draw_glyphs_face): Add DRAW_IMAGE_RAISED and DRAW_IMAGE_SUNKEN.
10750 (x_set_glyph_string_gc): Handle them.
10751 (x_after_update_window_line): Don't do anything in pseudo-windows.
10752 (x_produce_image_glyph): Take image margin and face relief into
10753 account.
10754 (x_get_glyph_string_clip_rect): Handle pseudo-windows.
10755 (x_draw_glyph_string_background): Optimize case when face has
10756 relief.
10757 (x_setup_relief_color): Take frame instead of glyph string
10758 parameter.
10759 (x_draw_relief_rect): New.
10760 (x_draw_glyph_string_relief): Call it.
10761 (x_draw_image_glyph_string_foreground): Handle margin and image
10762 relief.
10763 (x_draw_image_glyph_string_background): Ditto.
10764 (expose_frame): Redraw toolbar window.
10765 (expose_window): Don't draw cursor for pseudo-windows.
10766 (x_y_to_hpos_vpos): Handle pseudo-windows.
10767 (frame_to_window_pixel_xy): New.
10768 (note_mouse_highlight): Call note_toolbar_highlight.
10769 (x_handle_toolbar_click): New.
10770 (note_toolbar_highlight): New.
10771 (show_mouse_face): Change int parameter `hl' to parameter of
10772 type enum draw_glyphs_face. Handle image highlighting.
10773 (XTread_socket): Return a HELP_EVENT input event if help_echo is
10774 non-nil. Use x_handle_toolbar_click.
10775
10776 * termhooks.h (event_kind): Add HELP_EVENT, TOOLBAR_EVENT.
10777
10778 * xfns.c (image_value_type): Add IMAGE_INTEGER_VALUE,
10779 IMAGE_BOOL_VALUE.
10780 (parse_image_spec): Handle them.
10781 (image_spec_value): Additional parameter found.
427ec082 10782 (free_image): Remove image from the vector `images' of the
26901792
DL
10783 image cache.
10784 (clear_image_cache): Additional parameter force_p.
10785 (Fclear_image_cache): New.
10786 (x_find_image_file): New.
10787 (xbm_load): Handle `:margin' and `:relief'. Use
10788 x_find_image_file.
10789 (xpm_load): Likewise.
10790 (pbm_load): Likewise.
10791 (jpeg_load): Likewise.
10792 (tiff_load): Likewise.
10793 (gif_load): Likewise.
10794
10795 * keyboard.c (Qhelp_echo): New symbol.
10796 (read_char): Handle `toolbar' and `help_echo' events.
10797 (kbd_buffer_get_event): Handle HELP_ECHO input event.
10798 (make_lispy_event): Handle TOOLBAR_EVENT.
10799 (toolbar_items): New.
10800 (process_toolbar_item): New.
10801 (PROP): New.
10802 (init_toolbar_items): New.
10803 (append_toolbar_item): New.
10804 (read_char_x_menu_prompt): Handle `toolbar' event.
10805 (read_key_sequence): Ditto.
10806
10807 * xfaces.c (Qtoolbar): New.
10808 (realize_basic_faces): Realize `toolbar' face.
10809 (face_at_string_position): Remove parameter modeline_p, add
10810 base_face_id.
10811
10812 * xfns.c (xbm_load_image_from_file): Don't use Xmu function
10813 to read data.
10814
108151998-10-17 Gerd Moellmann <gerd@gnu.org>
10816
10817 * xdisp.c (init_iterator): Replace parameter modeline_p with
10818 base_face_id.
10819 (next_element_from_string): Call get_next_display_element
10820 recursively after handling text properties.
10821 (prepare_menu_bars): Call update_toolbar.
10822 (update_toolbar): New.
10823 (build_desired_toolbar_string): New.
10824 (display_toolbar_line): New.
10825 (redisplay_toolbar): New.
10826 (toolbar_item_info): New.
10827 (redisplay_window): Call redisplay_toolbar.
10828 (Fdump_toolbar_row): New. Defined if compiled with GLYPH_DEBUG.
10829
10830 * dispnew.c (clear_current_matrices): Clear matrices of toolbar
10831 window.
10832 (clear_desired_matrices): Ditto.
10833 (adjust_frame_glyphs_for_window_redisplay): Make toolbar window.
10834 (free_glyphs): Free matrices of toolbar window.
10835 (update_frame): Update toolbar window.
10836 (change_frame_size_1): Take toolbar into account.
10837 (Fset_toolbar_height): New.
10838
10839 * dispextern.h (struct it): Remove member modeline_p, add
10840 base_face_id.
10841 (struct image): Add members relief and margin.
10842 (IMAGE_ASCENT): Include margin in height.
10843
108441998-10-14 Gerd Moellmann <gerd@gnu.org>
10845
10846 * xfns.c (Fclear_image_cache): New.
10847
10848 * xfaces.c (realize_basic_faces): Realize toolbar face.
10849 (face_at_string_position): Remove parameter modeline_p, add
10850 base_face_id.
10851
10852 * dispextern.h (enum face_id): Add TOOLBAR_FACE_ID.
10853
108541998-10-13 Gerd Moellmann <gerd@gnu.org>
10855
10856 * keyboard.c (syms_of_keyboard): Intern `:help'.
10857
108581998-10-12 Gerd Moellmann <gerd@gnu.org>
10859
10860 * xterm.c (note_toolbar_highlight): New.
10861 (note_mouse_highlight): Call it.
10862
10863 * window.c (window_from_coordinates): Additional parameter toolbar_p.
10864 (coordinates_in_window): Handle toolbar window.
10865
10866 * keyboard.c (toolbar_items): New.
10867 (process_toolbar_item): New.
10868 (parse_toolbar_item): New.
10869 (init_toolbar_items): New.
10870 (append_toolbar_item): New.
10871
10872 * dispextern.h (enum toolbar_item_idx): New.
10873 (enum toolbar_item_image): New.
10874
10875 * frame.h (struct frame): Add toolbar-related members.
10876
10877 * xfaces.c (face_at_string_position): Remove assertion that
10878 current_buffer == window's buffer. This is not the case when
10879 called for the toolbar window.
10880
10881 * frame.c (make_frame): Initialize toolbar members.
10882
10883 * alloc.c (mark_object): Mark toolbar data of frames.
10884
10885 * frame.h (struct frame): Add toolbar-related members
10886 toolbar_window, desired_toolbar_items, current_toolbar_items,
10887 desired_toolbar_string, current_toolbar_string,
10888 n_desired_toolbar_items, n_current_toolbar_items. Add
10889 window_height.
10890
10891 * xterm.c (x_after_update_window_line): Don't draw bitmap
10892 areas for pseudo-windows.
10893 (expose_frame): Handle toolbar window.
10894 (expose_window): Don't do cursor stuff for pseudo-windows.
10895
10896 * xdisp.c (display_menu_bar): Correct calls to init_iterator.
10897
108981998-10-11 Gerd Moellmann <gerd@gnu.org>
10899
10900 * frame.c (make_frame): Initialize toolbar_window.
10901
10902 * alloc.c (mark_object): Make the toolbar window.
10903
10904 * dispnew.c (update_frame): Update frame's toolbar_window.
10905 (clear_current_matrices): Likewise.
10906 (clear_desired_matrices): Likewise.
10907 (adjust_frame_glyphs_for_window_redisplay): Make toolbar_window.
10908 (free_glyphs): Free the toolbar window and its matrices.
10909
10910 * frame.h (struct frame): Add toolbar_window.
10911
10912 * xterm.c (x_draw_glyph_string_relief): Handle mouse-face
10913 with relief.
10914
109151998-10-10 Gerd Moellmann <gerd@gnu.org>
10916
427ec082 10917 * dispnew.c (buffer_posn_from_coords): Don't screw up if
26901792
DL
10918 window start is not in the range BEGV..ZV.
10919
109201998-10-09 Gerd Moellmann <gerd@gnu.org>
10921
10922 * xdisp.c (try_scrolling): Experimentally handle the case
10923 that scroll-preserve-screen-position is set to `always'.
10924
10925 * window.c (Vscroll_preserve_screen_position): Replacement for
10926 scroll_preserve_screen_position.
10927
109281998-10-08 Gerd Moellmann <gerd@gnu.org>
10929
10930 * dispnew.c: Don't initialize auto structs; the HP/UX compiler
10931 doesn't like it.
10932 * xdisp.c: Ditto.
10933
10934 * xdisp.c (make_cursor_line_fully_visible): Adjust this_line_y.
10935
109361998-10-06 Gerd Moellmann <gerd@gnu.org>
10937
427ec082 10938 * minibuf.c (Fminibuffer_complete_word): Fix computation of
26901792
DL
10939 i_byte when prompts are inserted into minibuffers.
10940
10941 * dispextern.h (FRAME_INTERNAL_BORDER_WIDTH_SAFE): New.
10942 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X): Use it.
10943 (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y): Ditto.
10944
109451998-10-04 Gerd Moellmann <gerd@gnu.org>
10946
10947 * xdisp.c (make_cursor_line_fully_visible): New.
10948 (try_scrolling): New.
10949 (redisplay_window): Move scrolling code to try_scrolling.
10950 (make_cursor_line_fully_visible): Handle case of window too small
10951 to show a single line.
10952 (redisplay_window): Case forced window start---use
10953 make_cursor_line_fully_visible.
10954 (redisplay_window): Case cursor movement via current matrix.
10955 If ending up on a partially visible line, make it fully visible
10956 instead of recentering.
10957 (try_scrolling): Additional parameter scroll_smoothly.
10958
10959 * xterm.c (x_draw_bitmap): Don't XClearArea under the pixmap.
10960
109611998-09-28 Gerd Moellmann <gerd@gnu.org>
10962
10963 * window.c (window_scroll_pixel_based): Bug fix: vpos used
10964 instead of y-position for scroll-preserved-screen-position.
10965
109661998-09-07 Gerd Moellmann <gerd@gnu.org>
10967
10968 * dispnew.c (update_frame_line): If current row is not enabled,
10969 write the whole line.
10970
109711998-09-06 Gerd Moellmann <gerd@gnu.org>
10972
10973 * lisp.h (HAVE_FACES): Removed.
10974
10975 * dispextern.h (HAVE_FACES): Removed.
10976
10977 * config.in (HAVE_FACES): Removed.
10978
10979 * dispnew.c (HAVE_FACES): Removed.
10980
10981 * xdisp.c (HAVE_FACES): Removed.
10982
10983 * xfaces.c (HAVE_FACES): Removed.
10984
109851998-09-05 Gerd Moellmann <gerd@gnu.org>
10986
10987 * xdisp.c (init_iterator): If face_change_count is non-zero,
10988 free realized faces.
10989
10990 * xfaces.c (free_all_realized_faces): Make it externally visible.
10991 (Finternal_set_lisp_face_attribute): Increment
10992 windows_or_buffers_changed.
10993
10994 * dispnew.c (direct_output_for_insert): Give up if
10995 face_change_count is non-zero.
10996 (direct_output_forward_char): Ditto.
10997
10998 * xfaces.c (face_change_count): New.
10999
110001998-09-04 Gerd Moellmann <gerd@gnu.org>
11001
11002 * xterm.c (x_draw_bar_cursor): Don't draw if cursor hpos is out
11003 of range.
11004
110051998-09-03 Gerd Moellmann <gerd@gnu.org>
11006
11007 * term.c (Ftty_display_color_p): New.
11008
110091998-09-02 Gerd Moellmann <gerd@gnu.org>
11010
11011 * xfaces.c (Ftty_defined_colors): New.
11012
11013 * xterm.c (x_produce_glyphs): Fix computation of
11014 contains_overlapping_glyphs_p for ASCII.
11015
11016 * dispnew.c (Fshow_cursor): Don't change cursor state while
11017 redisplaying.
11018 (direct_output_for_insert): If a glyph with lbearing or rbearing
11019 is among the new glyphs, set row flag contains_overlapping_glyph_p.
11020
110211998-09-01 Gerd Moellmann <gerd@gnu.org>
11022
11023 * term.c (OUTPUT_IF): Make replacement text have statement form.
11024 (OUTPUT1_IF): Ditto.
11025 (TS_italic_mode, TS_end_italic_mode): Removed.
11026 (TS_bold_mode): Removed.
11027 (TS_underscore_mode, TS_end_underscore_mode): Removed.
11028 (TS_enter_bold_mode, TS_enter_dim_mode, TS_enter_blink_mode): New.
11029 (TS_enter_reverse_mode): New.
11030 (TS_enter_underline_mode, TS_exit_underline_mode): New.
11031 (TN_magic_cookie_glitch_ul): New.
11032 (TS_enter_alt_charset_mode, TS_exit_alt_charset_mode): New.
11033 (TS_exit_attribute_mode): New.
11034 (TN_max_colors, TN_max_pairs, TS_orig_pairs): New.
11035 (TS_set_foreground, TS_set_background): New.
11036 (reset_terminal_modes): Switch colors back to default.
11037 (write_glyphs): Turn face on before writing text, turn it off
11038 afterwards.
11039 (insert_glyphs): Ditto.
11040 (term_init): Initialize new terminal capability variables.
11041 (turn_on_face): Turn a face on.
11042 (turn_off_face): Turn a face off.
11043
11044 * lisp.h (MAKE_GLYPH): Remove test for frame type.
11045 (GLYPH_CHAR): Ditto.
11046 (GLYPH_FACE): Ditto.
11047
11048 * xfaces.c (Vface_tty_color_alist): New.
11049 (face-register-tty-color): New.
11050 (face-clear-tty-colors): New.
11051
11052 * dispextern.h (FACE_TTY_DEFAULT_COLOR): New.
11053 (struct it): Remove member faces_p since we now always have faces.
11054
110551998-08-31 Gerd Moellmann <gerd@gnu.org>
11056
11057 * dispextern.h (struct face): Add tty appearance flags.
11058
11059 * xdisp.c (init_iterator): Always handle faces.
11060 (extend_face_to_end_of_line): Handle tty frames.
11061
11062 * dispnew.c (clear_glyph_matrix): Allow a null matrix to be
11063 passed in.
11064
110651998-08-30 Gerd Moellmann <gerd@gnu.org>
11066
11067 * xfaces.c (realize_default_face): Use empty strings to indicate
11068 that the face should use the default foreground/background
427ec082 11069 color of the terminal. Fill font-related attributes with
26901792
DL
11070 appropriate values for tty frames.
11071
11072 * emacs.c (main): Call syms_of_xfaces before init_window_once.
11073
11074 * xfaces.c (realize_default_face): If face `default' is not
11075 yet known, create it.
11076
11077 * frame.c (make_terminal_frame): Call init_frame_faces
11078 unconditionally.
11079
11080 * xfaces.c (init_frame_faces): Make it work for tty frames.
11081 (free_frame_faces): Ditto.
11082 (clear_face_cache): Ditto.
11083 (recompute_basic_faces): Ditto.
11084 (Fframe_face_alist): Ditto.
11085 (free_realized_face): Ditto.
11086 (prepare_face_for_display): Ditto.
11087 (clear_face_gcs): Ditto.
11088 (lookup_face): Ditto.
11089 (smaller_face): Ditto.
11090 (realize_default_face): Ditto.
11091 (realize_face): Ditto.
11092 (realize_face): Dispatch to functions depending on the frame type.
11093 (realize_x_face): X way of realizing faces.
11094 (realize_tty_face): TTY way of realizing faces.
11095
110961998-08-29 Gerd Moellmann <gerd@gnu.org>
11097
11098 * xfaces.c (realize_face): Remove parameter unibyte_registry,
11099 compute it instead.
11100 (lookup_face): Remove local variable unibyte_registry.
11101
111021998-08-22 Gerd Moellmann <gerd@gnu.org>
11103
11104 * xterm.c (x_draw_glyph_string_relief): Draw top and bottom lines
11105 1 pixel longer.
11106
427ec082 11107 * xdisp.c (face_before_or_after_it_pos): Fix computation
26901792
DL
11108 of face in buffer.
11109
11110 * editfns.c (make_buffer_string_both): If prompt in buffer,
11111 prevent start > end.
11112
11113 * indent.c (Fvertical_motion): Set current_buffer to window's
11114 buffer if it isn't already.
11115
111161998-08-21 Gerd Moellmann <gerd@gnu.org>
11117
11118 * dispextern.h (GLYPH_DEBUG): Use default 0.
11119
11120 * xdisp.c (it_props): New member `smaller'.
11121 (init_iterator): Initialize it.
11122 (Qsmaller): New.
11123 (push_it): Save value of `smaller' value on the stack.
11124 (pop_it): Restore `smaller' from the stack.
11125 (handle_smaller_prop): New.
11126 (handle_face_prop): Use `smaller' text property to select a
11127 suitable face.
11128
11129 * dispextern.h (SMALLER_PROP_IDX): New.
11130 (struct it): Add member `smaller'.
11131
11132 * xfaces.c (smaller_face): New.
11133
11134 * frame.h (FRAME_WINDOW_WIDTH_ARG): Add bitmap area widths.
11135
11136 * dispnew.c (allocate_matrices_for_window_redisplay): Compute
11137 total pixel width of window differently.
11138
11139 * xdisp.c (init_iterator): Compute width of mode line differently.
11140
11141 * dispextern.h (WINDOW_DISPLAY_PIXEL_WIDTH): Subtract width
11142 of bitmap areas.
11143
11144 * window.c (Fsplit_window): Include width of bitmap areas in
11145 window width.
11146 (window_internal_width): Subtract width of bitmap areas from
11147 total width.
11148
111491998-08-18 Gerd Moellmann <gerd@gnu.org>
11150
11151 * xdisp.c: Functions reordered for better readability.
11152
11153 * dispnew.c (update_text_area): Handle glyphs with arbitrary
11154 lbearing.
11155 (update_window_tree): Parameter no_scrolling_p removed.
11156 (update_single_window): Ditto.
11157
11158 * xterm.c (x_get_char_font_and_encoding): Renamed to
11159 x_get_char_face_and_encoding.
11160
11161 * dispnew.c (update_text_area): Don't call get_glyph_overhangs
11162 if end of current row reached.
11163
11164 * xterm.c (x_get_glyph_face_and_encoding): New.
11165 (x_get_glyph_overhangs): Call it.
11166
11167 * xdisp.c (Qshow_trailing_whitespace): New.
11168 (Qtrailing_whitespace): New.
11169 (enum prop_handled): New.
11170 (struct props, it_props): New.
11171 (next_overlay_change): New. Works like Fnext_overlay_change
11172 but doesn't use xmalloc.
11173 (handle_stop): Restructured.
11174 (face_before_or_after_it_pos): Case iteration over a string: fix
11175 handling of face before current position.
11176
111771998-08-16 Gerd Moellmann <gerd@gnu.org>
11178
11179 * dispnew.c (adjust_glyph_matrix): Don't optimize matrix
11180 reallocation matrix if fonts_changed_p.
11181 (update_text_area): Handle glyphs with lbearing.
11182
111831998-08-14 Gerd Moellmann <gerd@gnu.org>
11184
11185 * xdisp.c (struct props): New.
11186 (it_props): New.
11187 (compute_prop_info): New.
11188 (handle_stop): New.
11189
11190 * textprop.c (validate_interval_range): Make it externally
11191 visible.
11192
11193 * dispnew.c (direct_output_for_insert): Remove calls
11194 to compute_stop_pos.
11195
11196 * dispextern.h (struct it): Remove check_charpos,
11197 next_overlay_pos. Add what_changes.
11198
111991998-08-10 Gerd Moellmann <gerd@gnu.org>
11200
11201 * xterm.c (note_mouse_highlight): Set BEGV_BYTE, ZV_BYTE.
11202
11203 * xfaces.c (Vx_unibyte_registry_and_encoding): Removed. Use
11204 face_default_registry instead.
11205
11206 * syntax.c (scan_sexps_forward): Set up syntax table before
11207 jumping to initial state label.
11208
112091998-08-09 Gerd Moellmann <gerd@gnu.org>
11210
11211 * dispnew.c (check_matrix_invariants): Handle case of row end pos
11212 >= ZV specially.
11213
112141998-08-08 Gerd Moellmann <gerd@gnu.org>
11215
11216 * xdisp.c (redisplay_window): Case cursor movement---if cursor
11217 ends up in partially visible row, try to scroll. Case forced
11218 window start---handle windows not tall enough to show a single
11219 line.
11220
11221 * window.h (struct window): Member dy renamed vscroll.
11222
11223 * xterm.c (x_list_fonts): Re-activate suppression of scalable
11224 fonts.
11225 (x_draw_stretch_glyph_string): Set clipping if using GC that
11226 hasn't set it yet.
11227
11228 * xdisp.c (redisplay_window): Case forced window start -
11229 don't let cursor end on partially visible row. Use desired
11230 matrix to find a suitable PT if it doesn't appear.
11231 (decode_mode_spec): Merged with 20.2.97.
11232 (try_window_reusing_current_matrix): Give up if old or
11233 new display is vscrolled.
11234 (redisplay_window): Reset vscrolling if forced window start,
11235 or if recentering.
11236
112371998-08-06 Gerd Moellmann <gerd@gnu.org>
11238
11239 * xfaces.c (realize_default_face): Use the fontset name instead of
11240 the alias for the family attribute of the default face because we
11241 can't easily determine a good alias from fontset-alias-alist.
11242 (face_fontset): Use Fquery_fontset to find the fontset.
11243 (font_list): Additional pattern parameter.
11244 (try_font_list): Ditto.
11245 (set_lface_from_font_name): Set face family from font foundry
11246 and family.
11247 (font_list): If family contains a hyphen, build pattern differently.
11248
112491998-08-05 Gerd Moellmann <gerd@gnu.org>
11250
11251 * xfaces.c (free_realized_faces): Increment windows_or_buffers_-
11252 changed instead of setting the frame garbaged.
11253
11254 * xfaces.c (lface_equal_p): Don't assume equal Lisp types for
11255 all attribute values. This is wrong if values are unspecified,
11256 i.e. nil.
11257
11258 * xdisp.c (try_window_id): Give up if window start changed.
11259
11260 * xfaces.c (make_realized_face): Store registry as Lisp object.
11261 (load_face_font_or_fontset): Compute registry of a face
11262 differently. Make it `eq' to Vx_unibyte_registry_and_encoding if
11263 possible.
11264
11265 * dispextern.h (FACE_SUITABLE_FOR_CHARSET_P): Compare registries
11266 differently.
11267
11268 * alloc.c (mark_face_cache): Mark the registry member of faces.
11269
11270 * dispextern.h (struct face): Make registry a Lisp string.
11271
112721998-08-04 Gerd Moellmann <gerd@gnu.org>
11273
11274 * xterm.c (x_get_char_font_and_encoding): Additional parameter
11275 multibyte_p. Handle unibyte text.
11276 (x_append_glyph): Set the multibyte_p flag of glyphs.
11277 (x_produce_image_glyph): Ditto.
11278 (x_append_stretch_glyph): Ditto.
11279 (x_produce_glyphs): Handle unibyte text like ASCII.
11280
11281 * xdisp.c (push_it): Save the multibyte flag of an iterator on the
11282 stack.
11283 (pop_it): Restore it.
11284 (face_before_or_after_it_pos): Handle the case that the string or
11285 buffer is unibyte.
11286 (get_overlay_strings): Set the multibyte flag of the iterator if
11287 the new overlay string is multibyte.
11288 (get_glyph_property): Likewise.
11289 (get_next_display_element): Don't check for charset changes in
11290 unibyte text.
11291 (append_space): Compute face differently for unibyte text.
11292 (extend_face_to_end_of_line): Don't return quickly if face has
11293 stipple.
11294
11295 * xfaces.c (load_face_font_or_fontset): Store registry and
11296 encoding of the font in the registry member of the face.
11297 (make_realized_face): Additional parameter `registry'.
11298 (free_realized_face): Free the registry of a realized face.
11299 (face_suitable_for_charset_p): Function form of the macro
11300 with the same name in uppercase.
11301 (lookup_face): Use Vx_unibyte_registry_and_encoding if charset < 0.
11302 (choose_face_font): New parameter unibyte_registry.
11303 (choose_face_fontset_font): Ditto.
11304 (realize_default_face): Remember the registry and encoding of
11305 the specified frame font in Vx_unibyte_registry_and_encoding.
11306 (face_at_buffer_position): Handle unibyte.
11307 (face_at_string_position): Likewise.
427ec082 11308 (realize_face): New parameter unibyte_registry.
26901792
DL
11309 (compute_char_face): Handle the unibyte case.
11310
11311 * dispextern.h (struct glyph): Add bit multibyte_p.
11312 (struct face): New member registry holding the registry and
11313 encoding of the X font of the face.
11314 (FACE_UNIBYTE_P): Value is non-zero if face is for unibye text.
11315 (enum face_id): Add BASIC_FACE_ID_SENTINEL.
11316 (FACE_SUITABLE_FOR_CHARSET_P): Handle charset < 0 meansing unibyte
11317 text.
11318 (struct iterator_stack_entry): Add multibyte_p.
11319
11320 * xdisp.c (string_pos): Use string_char_to_byte.
11321 (char_charset): Removed.
11322
113231998-08-03 Gerd Moellmann <gerd@gnu.org>
11324
11325 * xterm.c (x_draw_image_glyph_string_foreground): Draw a
11326 rectangle for a block cursor over an image without a mask.
11327 (x_stretch_block_cursor): Added. Non-zero means don't draw
11328 a block cursor over a stretch as wide as that stretch.
11329 (x_draw_stretch_glyph_string): Use it.
11330 (x_draw_hollow_cursor): Ditto.
11331
11332 * minibuf.c (read_minibuf): Use minibuf_prompt instead of prompt.
11333 (read_minibuf): Add front-sticky text property for prompt.
11334
11335 * xdisp.c (char_charset): Return charset of a character,
11336 depending on whether or not multi-byte characters are enabled.
11337
11338 * xfaces.c (Fset_face_charset_registry): Removed.
11339 (x_charset_registry): Determine registry from charset plist.
11340
113411998-08-02 Gerd Moellmann <gerd@gnu.org>
11342
11343 * xdisp.c (get_next_display_element): Don't check for charset
11344 changes if multi-byte characters are not enabled.
427ec082 11345
26901792 11346 * xdisp.c (echo_area_display): Use the flush function from the
427ec082 11347 redisplay interface.
26901792
DL
11348 * keyboard.c (detect_input_pending_run_timers): Likewise.
11349
11350 * dispextern.h (produce_*glyphs_hook): Removed.
11351 * term.c (produce_*glyphs): Ditto.
11352 (cursor_to): Remove pixel position parameters.
11353
11354 * dispnew.c: Remove hooks for window-based redisplay, introduce
11355 a redisplay interface structure.
11356
11357 * xterm.c (x_per_char_metric): Return default char metrics if per
11358 char metric exists but contains a zero width. Adobe Courier seems
11359 to contain such characters.
11360
11361 * xdisp.c (compute_line_metrics): Compute the width of rows
11362 without stopping at glyphs with zero width.
11363
113641998-08-01 Gerd Moellmann <gerd@gnu.org>
11365
11366 * xdisp.c (display_mode_line): If nothing was displayed at all,
11367 display a space.
11368 (hscroll_window_tree): Don't subtract 1 from target point if equal
11369 to ZV and window is not the selected window.
11370
11371 * dispnew.c (check_matrix_invariants): Remove check for window
11372 start at BEGV or after newline. This happens in rare cases
11373 intentionally.
11374
113751998-07-31 Gerd Moellmann <gerd@gnu.org>
11376
11377 * xfaces.c (x_charset_registry): Use STRING_BYTES.
11378 (syms_of_xfaces): Add Vface_default_registry.
11379 (x_charset_registry): Use it.
11380
11381 * xdisp.c (run_window_scroll_functions): Run window scroll functions.
11382 (redisplay_window): Use it.
11383
11384 * dispnew.c (update_text_area): Handle lbearing of deleted text
11385 by backing up one character.
11386
113871998-07-30 Gerd Moellmann <gerd@gnu.org>
11388
427ec082 11389 * dispnew.c (adjust_glyph_matrix): Use a different check to
26901792
DL
11390 decide to do nothing.
11391
11392 * xfaces.c (face_at_string_position): Additional parameter
11393 mode_line_p. If non-zero, merge with the mode line face
11394 instead of the default face.
11395 * dispextern.h (struct it): Add mode_line_p.
11396 * xdisp.c (init_iterator): Set it.
11397 (compute_face_in_string): Use it.
11398 (face_before_or_after_it_pos): Handle strings.
11399 (get_next_display_element): Don't look for relief end in C strings.
11400 (next_element_from_string): Deliver string position instead of
11401 buffer position.
11402
11403 * xterm.c (x_flush): Flush X output buffer.
11404 (XTflash): Use it.
11405
11406 * xfaces.c (lface_from_face_name): Renamed from lface_from_symbol.
11407 Allow strings as face names.
11408
11409 * xfns.c (forall_images_in_image_cache): Check that frame is
11410 alive.
11411
11412 * widget.c (EmacsFrameDestroy): Remove call to free_frame_faces;
11413 it's also called from x_destroy_window. Since this function is
11414 called from X, freeing stuff allocated with xmalloc is dangerous
11415 here, anyway.
11416
11417 * xfaces.c (free_realized_faces): Don't clear current matrices
11418 of a frame being destroyed.
11419
427ec082 11420 * frame.c (make_frame): Call set_window_buffer instead of
26901792
DL
11421 Fset_window_buffer.
11422
11423 * window.c (set_window_buffer): Extracted from Fset_window_buffer,
11424 with an additional argument specifying whether or not hooks may
11425 be called.
11426 (Fset_window_buffer): Call it.
11427
11428 * dispnew.c (clear_desired_matrices): Check that frame has
11429 a valid root window before clearing matrices in the window tree.
11430 (clear_current_matrices): Ditto.
11431 (clear_window_matrices): If GLYPH_DEBUG, check that hchild and
11432 vchild are valid windows if not nil.
11433
11434 * xfaces.c (merge_face_vector_with_property): Allow :reverse-video
11435 for :inverse-video.
11436 (Finternal_set_lisp_face_attribute): Ditto.
11437 (Finternal_set_lisp_face_attribute_from_resource): Ditto.
11438 (Finternal_get_lisp_face_attribute): Ditto.
11439 (Finternal_lisp_face_attribute_values): Ditto.
11440 (syms_of_xfaces): Define the symbol `:reverse-video'.
11441
11442 * xdisp.c (get_glyph_property): Renamed from
11443 fill_iterator_from_glyph_property.
11444 (next_element_from_buffer): Handle case that no `glyph' property
11445 was found correctly.
11446 (display_line): Extend face to end of line only if we have faces.
11447
114481998-07-29 Gerd Moellmann <gerd@gnu.org>
11449
11450 * dispnew.c (Fshow_cursor): Renamed from blink_cursor. Take
11451 additional window argument.
11452
11453 * xdisp.c (reseat_at_previous_visible_line_start): Renamed from
11454 set_iterator_to_previous_visible_line_start.
11455 (reseat_at_next_visible_line_start): Likewise.
11456 (compute_stop_pos): Renamed from set_iterator_stop_pos.
11457 (face_before_or_after_it_pos): Renamed from get_face_at_it_pos.
11458 (compute_face_in_buffer): Renamed from
11459 compute_face_at_iterator_position.
11460 (compute_face_in_string): Renamed from
11461 compute_face_at_iterator_string_position.
11462 (get_space_width): Renamed from get_iterator_space_width.
11463 (next_overlay_string): Renamed from
11464 set_iterator_to_next_overlay_string.
11465 (get_overlay_strings): Renamed from
11466 get_overlay_strings_at_iterator_position.
11467 (restore_overlay_strings): Renamed from
11468 setup_overlay_strings_from_glyph_pos.
11469 (restore_dpvec): Renamed from setup_iterator_dpvec_from_glyph_pos.
11470 (init_from_display_pos): Renamed from init_iterator_from_glyph_pos.
11471 (init_to_row_start): Renamed from init_iterator_to_row_start.
11472 (init_to_row_end): Formerly init_iterator_to_next_row_start.
11473
11474 * xterm.c: Merge with 20.2.97.
11475 (x_produce_glyphs): Use x_append_stretch_glyph for tabs.
11476
11477 * dispextern.h (struct glyph): Replace text_pos position with
11478 simple charpos.
11479
11480 * xdisp.c (this_line_start_pos): Use struct text_pos.
11481 (this_line_end_pos): Renamed from .*endpos; use struct text_pos.
11482 (enum move_it_result): Renamed from move_iterator_result.
11483 (string_pos_nchars_ahead): Compute text_pos in a string from a
11484 known text_pos plus a character delta.
11485 (string_pos): Compute text_pos in string from charpos.
11486 (c_string_pos): Likewise for a C string.
11487 (number_of_chars): Return number of characters in a possibly
11488 multi-byte C string.
11489 (check_it): Renamed from check_iterator. Check that charpos and
11490 bytepos are in sync.
11491 (push_it): Renamed from save_iterator_settings.
11492 (pop_it): Renamed from restore_iterator_settings.
11493 (move_it_.*): Renamed from move_iterator_.*.
11494 (charset_at_position): Take charpos/bytepos into account.
11495 (back_to_previous_line_start): Set iterator to previous line start.
11496 (forward_to_next_line_start): Set iterator to next line start.
427ec082 11497 (back_to_previous_visible_line_start): Renamed from
26901792
DL
11498 move_iterator_previous_visible_line_start.
11499 (set_iterator_to_next_visible_line_start): Handle charpos/bytepos.
11500 (get_face_at_it_pos): Renamed from get_face_from_cursor_pos.
11501 Handle charpos/bytepos.
11502 (compute_face_at_iterator_position): Handle charpos/bytepos.
11503 (compute_face_at_iterator_string_position): Likewise.
11504 (get_iterator_space_width): Likewise.
11505 (load_overlay_strings): Likewise.
11506 (get_overlay_strings_at_iterator_position): Likewise.
11507 (reseat_iterator): Take a text_pos position argument.
11508 (setup_iterator_overlay_strings_from_glyph_pos): Handle charpos/
11509 bytepos.
11510 (init_iterator): Take additional bytepos parameter.
11511 (reseat_iterator_to_string): Handle charpos/bytepos.
11512 (start_display): Take a text_pos parameter. Handle charpos/bytepos.
11513 (next_element_from_string): Handle charpos/bytepos.
11514 (next_element_from_c_string): Likewise.
11515 (fill_iterator_from_glyph_property): Likewise.
11516 (next_element_from_buffer): Likewise.
11517 (set_iterator_to_next): Increment charpos and bytepos of an iterator.
11518 (move_iterator_in_display_line_to): Handle charpos/bytepos.
11519 (move_it_to): Likewise.
11520 (move_it_vertically_backward): Likewise.
11521 (move_it_vertically): Likewise.
11522 (move_it_by_lines): Likewise.
11523 (hscroll_window_tree): Likewise.
11524 (redisplay_internal): Likewise.
11525 (set_cursor_from_row): Likewise.
11526 (redisplay_window): Likewise.
11527 (try_window): Take a text_pos parameter. Handle charpos/bytepos.
11528 (try_window_reusing_current_matrix): Handle charpos/bytepos.
11529 (get_first_unchanged_at_end_row): Compute and return delta_bytes.
11530 (try_window_id): Handle charpos/bytepos.
11531 (Ftrace_redisplay_toggle): Return Qnil.
11532 (get_overlay_arrow_glyph_row): Handle charpos/bytepos.
11533 (insert_left_trunc_glyphs): Likewise.
11534
11535 * dispnew.c: `Merge' with 20.2.97 (it's really too different to
11536 do a real merge).
11537 (increment_glyph_matrix_buffer_positions): Add parameter delta_bytes.
11538 (increment_glyph_row_buffer_positions): Ditto.
11539 (copy_glyph_row_contents): Ditto.
11540 (check_matrix_invariants): Add additional checks for charpos/
11541 bytepos consistency.
11542 (direct_output_for_insert): Changed for charpos/bytepos.
427ec082 11543 (buffer_posn_from_coords): Likewise. Put code dealing with
26901792
DL
11544 `direction-reversed' in #if 0.
11545
11546 * xterm.h: Merge with 20.2.97.
427ec082 11547
26901792
DL
11548 * frame.h: Merge with 20.2.97.
11549
11550 * window.h: Merge with 20.2.97. Add window_end_bytepos.
11551
11552 * dispextern.h (MATRIX_ROW_START_CHARPOS): Get charpos of a row
11553 start.
11554 (MATRIX_ROW_START_BYTEPOS): Likewise for the byte position.
11555 (MATRIX_ROW_END_CHARPOS): Likewise for the row end.
11556 (MATRIX_ROW_END_BYTEPOS): Likewise for the row end byte position.
11557 (struct it): Various members renamed from .*pos to .*charpos.
11558 (IT_CHARPOS): Access current buffer character position of an
11559 iterator.
11560 (IT_BYTEPOS): Access current buffer byte position of an iterator.
11561 (IT_STRING_CHARPOS): Access current string character position of
11562 an iterator.
11563 (IT_STRING_BYTEPOS): Access current string byte position of
11564 an iterator.
11565 (globally): Add function prototypes from 20.2.97.
11566
11567 * everywhere: Use P_ instead of PROTO for function prototypes
11568 because everyone else seems to use P_.
11569
11570 * dispextern.h (struct text_pos): Structure describing a charpos/
11571 bytepos position in text.
11572 (BYTEPOS): Access the byte position part of a text_pos.
11573 (CHARPOS): Likewise for the character position.
11574 (SET_TEXT_POS): Set a text_pos from a character and byte position.
11575 (INC_TEXT_POS, DEC_TEXT_POS): Increment/decrement a text position.
11576 (SET_TEXT_POS_FROM_MARKER): Set a text_pos from a marker.
11577 (SET_MARKER_FROM_TEXT_POS): Set a marker from a text_pos.
11578 (TEXT_POS_EQUAL_P): Compare two text_pos structures for equality.
11579 (struct display_pos): Renamed from glyph_pos. Use struct text_pos
11580 for buffer and string positions.
11581 (struct glyph): Use text_pos.
11582 (struct it): Renamed from display_iterator. Use text_pos.
11583
115841998-07-23 Gerd Moellmann <gerd@gnu.org>
11585
11586 * xfns.c (x_kill_gs_process): Get image colors from XImage of a
11587 pixmap.
11588
115891998-07-21 Gerd Moellmann <gerd@gnu.org>
11590
11591 * dispextern.h (struct glyph_row): New flag indicate_zv_line_p.
11592 * xterm.c (x_draw_row_bitmaps): Use it.
11593 * dispnew.c (row_equal_p): Ditto.
11594 (update_window_line): Ditto.
11595
11596 * xfns.c (prepare_image_for_display): Don't set loading_failed_p
11597 flag of images.
11598
11599 * dispextern.h (struct image): Removed member loading_failed_p.
11600 It's probably better to have the chance to try to load an image
11601 again.
11602
116031998-07-20 Gerd Moellmann <gerd@gnu.org>
11604
11605 * xterm.c (x_draw_bitmap): Draw bitmap for empty lines ending
11606 at ZV if `indicate-zv-lines' is non-nil.
11607 (x_draw_row_bitmaps): Compute bitmap for `indicate-zv-lines'.
11608
11609 * dispnew.c (row_equal_p): Compare displays_text_p and
11610 ends_at_zv_p flags of rows.
11611 (update_window_line): Ditto.
11612
11613 * buffer.h (struct buffer): New member indicate_zv_lines.
11614
11615 * buffer.c (init_buffer_once): Add default for `indicate-zv-lines'.
11616 (init_buffer_once): New variable `default-indicate-zv-lines'.
11617 (syms_of_buffer): New buffer-local varianle `indicate-zv-lines'.
11618
11619 * xdisp.c (redisplay_window): Don't try moving the cursor
11620 if current glyph row w->last_cursor.vpos isn't enabled.
11621
11622 * xterm.c (bitmap_type): Add ZV_LINE_BITMAP.
11623
11624 * window.c (Fset_window_vscroll): Allow only negative scroll
11625 values. Others don't seem to make sense, and this way it's easy
11626 to restore a vscroll of zero.
11627
11628 * xterm.c (x_inverted_image_mask): Check that pixmap could be
11629 allocated.
11630 (x_draw_image_glyph_string_background): Don't clip if pixmap
11631 could not be created.
11632
11633 * xfns.c (xbm_load_image_from_file): Check that pixmap could
11634 be created.
11635 (xbm_load): Ditto.
11636 (gs_load): Ditto.
11637
11638 * xterm.c (x_get_glyph_overhangs): Take image and stretch
11639 glyphs into account.
11640
11641 * xfaces.c (realize_default_face): Don't set font family of
11642 the default face from the fontset alias name for `fontset-startup'.
11643
11644 * xfns.c (gs_load): Pass frame's pixel foreground and background
11645 color to the Lisp loader.
11646
116471998-07-19 Gerd Moellmann <gerd@gnu.org>
11648
11649 * xfns.c (tiff_image_p, tiff_load): Support TIFF images via
11650 libtiff34.
11651
11652 * configure.in (--with-tiff, HAVE_TIFF): Added.
11653
11654 * config.in (HAVE_TIFF): Added.
11655
11656 * Makefile.in (LIBTIFF): Added.
11657
11658 * xfns.c (jpeg_image_p, jpeg_load): Support JPEG images.
11659
11660 * Makefile.in (LIBJPEG): Added.
11661
11662 * xfns.c (resource_types): Enumerators renamed to RES_TYPE_NUMBER,
11663 RES_TYPE_BOOLEAN etc. because of conflict of `boolean' with
11664 jpeglib.h.
11665
427ec082 11666 * configure.in (HAVE_JPEG, --with-jpeg): Added. On systems
26901792
DL
11667 where the library is installed in /usr/local/lib, e.g. FreeBSD,
11668 configure must be run with `--x-includes=/usr/X11R6/include:
11669 /usr/local/include --x-libraries=/usr/X11R6/lib:/usr/local/lib'.
11670
116711998-07-18 Gerd Moellmann <gerd@gnu.org>
11672
11673 * config.in (HAVE_JPEG): Added.
11674
11675 * xfns.c (ct_init): Initialize color table used to map RGB colors
11676 from images to X pixel colors.
11677 (ct_free): Free color table.
11678 (ct_lookup): Look an RGB color up.
11679 (ct_allocated_colors): Get vector of allocated colors.
427ec082 11680 (pbm_image_p): Test if image specification is a valid PPM
26901792
DL
11681 image specification.
11682 (pbm_scan_number): Scan a decimal ASCII number from a file.
11683 (pbm_load): Load a PPM image.
11684
11685 * window.c (Fset_window_vscroll): Adjust glyph matrix if
11686 necessary. Take canonical character units as parameter.
11687 (Fwindow_vscroll): Return canonical character units.
11688
11689 * dispnew.c (allocate_matrices_for_window_redisplay): Add negative
11690 w->dy to display height for which glyph rows must be allocated.
11691
116921998-07-17 Gerd Moellmann <gerd@gnu.org>
11693
11694 * xfaces.c (face_at_string_position): Merge in region face
11695 so that it won't overwrite the font in the region.
11696 (face_at_buffer_position): Ditto.
11697 (realize_basic_faces): Don't realize region face.
11698
11699 * dispextern.h (enum face_id): REGION_FACE_ID removed.
11700
11701 * xterm.c (x_set_glyph_string_background_width): Don't let
11702 cursor face extend to end of line.
11703
11704 * xdisp.c (append_space): If adding space of default face,
11705 make sure glyph ist produced with right face.
11706
11707 * xterm.c (x_clear_glyph_string_rect): Draw a rectangle in the
11708 background color of a glyph string.
11709 (x_draw_glyph_string_background): Call it.
11710 (x_draw_glyph_string_bg_rect): Ditto.
11711 (x_draw_stretch_glyph_string): Ditto.
11712
117131998-07-15 Gerd Moellmann <gerd@gnu.org>
11714
11715 * xdisp.c (init_iterator): Initialize it->current_y to the
11716 window's vscroll w->dy.
11717
11718 * window.c (Fwindow_vscroll): Return number of pixels window
11719 is vscrolled smoothly.
11720 (Fset_window_vscroll): Set the number.
11721
11722 * xdisp.c (move_iterator_to): Recognize case MOVE_TO_POS and
11723 to_pos in truncated part of a line.
11724
117251998-07-14 Gerd Moellmann <gerd@gnu.org>
11726
11727 * xdisp.c (move_iterator_in_display_line_to): If very first glyph
11728 doesn't fit on the line, truncate it, despite truncate_lines nil.
11729 (display_line): Ditto.
11730
11731 * xfns.c: Experimental support for Ghostscript images.
11732
11733 * xterm.c (x_term_init): Initialize new atoms DONE and PAGE.
11734 (XTread_socket): React on events from Ghostscript.
11735 (expose_frame): If width or height are zero, redraw entire frame.
11736 (XTread_socket): Call expose_frame after receiving event from
11737 Ghostscript.
11738
11739 * xterm.h (struct x_display_info): Add atoms DONE and PAGE
11740 for Ghostscript support.
11741
11742 * xdisp.c (redisplay_internal): Return quickly if called
11743 recursively.
11744
11745 * alloc.c (NSTATICS): Increased to 1024.
11746
117471998-07-08 Gerd Moellmann <gerd@gnu.org>
11748
11749 * xterm.c (x_append_stretch_glyph): Append a stretch glyph to an
11750 iterator's glyph row.
11751 (x_produce_stretch_glyph): Call it.
11752 (x_produce_glyphs): Handle `space-width' property; call
11753 x_append_stretch_glyph.
11754
11755 * xdisp.c (syms_of_xdisp): Add symbol `space-width' used as a text
11756 property.
11757 (get_iterator_space_width): Determine value of `space-width'
11758 property at iterator's position.
11759 (reseat_iterator): Call it.
11760 (next_element_from_string): Ditto.
11761 (next_element_from_buffer): Ditto.
11762 (init_iterator): Initialize space_width of iterator.
11763 (redisplay_internal): Don't goto end_of_redisplay if PT hasn't
11764 moved, but cursor blinks.
11765 (redisplay_internal): Set w->last_cursor_off_p after update.
11766
11767 * dispextern.h (enum iterator_prop_idx): Add SPACE_WIDTH_PROP_IDX.
11768 (struct display_iterator): Add new member space_width.
11769
11770 * window.h (struct window): Add last_cursor_off_p.
11771
117721998-07-07 Gerd Moellmann <gerd@gnu.org>
11773
11774 * Saved.
11775
11776 * window.c (Fpos_visible_in_window_p): Case window not up to
11777 date---return nil if iterator hasn't reached position.
11778
117791998-07-06 Gerd Moellmann <gerd@gnu.org>
11780
11781 * xdisp.c (text_outside_line_unchanged_p): Fix case that
11782 overlays have changed.
11783 (redisplay_window): Case cursor movement. Don't try it if
11784 last_cursor.vpos is out of range.
11785
11786 * xdisp.c (set_cursor_from_row): Set this_line_.* variables. This
11787 way, the display optimization for the line containing the cursor
11788 is used more frequently, esp. when we have a blinking cursor.
11789 (display_line): Don't set this_line_.* variables.
11790
11791 * xterm.c (x_redraw_cursor): Removed.
11792 (x_display_and_set_cursor): Set cursor type depending on
11793 cursor_off_p flag of window.
11794
11795 * dispnew.c (redraw_cursor_hook): Removed.
11796 (Fblink_cursor): Additional parameter on_p to set the cursor_off_p
11797 member of the selected window.
11798
11799 * xfaces.c (Fface_font): Added for compatibility with 20.2.
11800
11801 * xterm.c (x_y_to_hpos_vpos): Return null if not over text.
11802 Return glyph area under x/y.
11803 (note_mouse_highlight): Use x_y_to_hpos_vpos in its new form.
11804
11805 * keyboard.c (detect_input_pending_run_timers): Call gobble_input
11806 after redisplaying.
11807
118081998-07-05 Gerd Moellmann <gerd@gnu.org>
11809
11810 * xdisp.c (text_outside_line_unchanged_p): Test if changes
11811 are all outside of a line of text.
11812 (redisplay_internal): Use it.
11813
118141998-06-30 Gerd Moellmann <gerd@gnu.org>
11815
11816 * xdisp.c (next_element_from_buffer): After skipping over
11817 invisible text, look for the `glyph' property.
11818 (set_iterator_stop_pos): Ignore check positions in front
11819 of an iterator's current position.
11820
11821 * xterm.c (show_mouse_face): Don't act on rows that don't exist
11822 anymore or which are marked as not having valid contents.
11823
11824 * xfaces.c (Finternal_set_lisp_face_attribute): Don't free
11825 realized faces if new attribute value is equal to old value.
11826
118271998-06-29 Gerd Moellmann <gerd@gnu.org>
11828
11829 * xfaces.c (Finternal_make_lisp_face): Increment
11830 lface_id_to_name_size when lface_id_to_name is reallocated.
11831
118321998-06-27 Gerd Moellmann <gerd@gnu.org>
11833
11834 * xdisp.c (set_iterator_stop_pos): Compute initial stop_pos
11835 as minimum of endpos and overlay_pos.
11836 (load_overlay_strings): Set next_overlay_pos of iterator to
11837 -1 if we don't have to check for more overlay strings.
11838
118391998-05-09 Gerd Moellmann <gerd@gnu.org>
11840
11841 * xdisp.c (set_iterator_to_next_visible_line_start): Don't
11842 do anything if iterator is at ZV because scan_buffer doesn't
11843 work otherwise.
11844
11845 * xterm.c (x_encode_char): Inline it.
11846 (x_get_char_font_and_encoding): Simplified.
11847 (x_per_char_metric): Inline it.
11848
11849 * xterm.c (x_draw_glyph_string_relief): Use clipping.
11850
11851 * xdisp.c (get_next_display_element): Check for end of relief
11852 face moved here from next_element_from_buffer.
11853
11854 * xterm.c (x_produce_image_glyph): Add relief thickness.
11855 (x_produce_stretch_glyph): Ditto.
11856
118571998-05-08 Gerd Moellmann <gerd@gnu.org>
11858
11859 * xdisp.c (fill_iterator_from_glyph_property): Handle glyph
11860 property value (space :width WIDTH :height HEIGHT :ascent ASCENT).
11861
11862 * xterm.c (x_produce_stretch_glyph): Produce a stretch glyph
11863 from a glyph property.
11864 (x_produce_glyphs): Use it.
11865
11866 * xdisp.c (set_iterator_to_next): Handle next_element_from_stretch.
11867
427ec082 11868 * xterm.c (x_produce_image_glyph): Add to current_x only if
26901792
DL
11869 in text area.
11870 (x_produce_glyphs): Ditto.
11871
427ec082 11872 * xdisp.c (display_line): Compute row height from glyphs in
26901792
DL
11873 marginal areas.
11874
427ec082 11875 * xterm.c (x_draw_image_glyph_string_background): Draw
26901792 11876 background of an image glyph string.
427ec082 11877 (x_draw_glyph_string_bg_rect): Draw a rectangular region of
26901792
DL
11878 the background of a glyph string.
11879 (x_draw_image_glyph_string_foreground): Draw the foreground of
11880 an image glyph string.
11881 (x_inverted_image_mask): Return the inverted mask of an image.
11882
11883 * xfns.c (x_draw_image): Removed.
11884
11885 * dispextern.h (struct image_type): Remove drawing function.
11886
11887 * xfaces.c (load_face_colors): Swap colors if face is inverse.
11888
11889 * xdisp.c (get_next_display_element): In marginal areas, translate
11890 newlines, tabs, etc. like normal control characters.
11891
11892 * xfaces.c (Fface_color_supported_p): Transpose parameters frame
11893 and color.
11894 (free_realized_faces): Set frame garbaged.
11895
11896 * xfaces.c (syms_of_xfaces): Add defsubr for
11897 internal-lisp-face-attribute-values.
11898
118991998-05-07 Gerd Moellmann <gerd@gnu.org>
11900
11901 * xterm.c (x_produce_image_glyph): Don't add glyph if area is
11902 full.
11903 (x_produce_image_glyph): Set IT->nglyphs to 1.
11904 (x_draw_image_glyph_string): Use inverted mask to draw background.
11905
11906 * dispextern.h (struct image_type): Additional clipping rect
11907 parameters for drawing functions.
11908
427ec082 11909 * xterm.c (x_get_glyph_string_clip_rect): Get clip rect for
26901792
DL
11910 a glyph string.
11911 (x_draw_image_glyph_string): Use it and pass the rect to the
11912 image drawing function.
11913
11914 * xdisp.c (fill_iterator_from_glyph_property): Use position of
11915 first character with `glyph' property as image position. Set
11916 iterator back to that position as long as the image hasn't been
11917 consumed with set_iterator_to_next.
11918 (set_cursor_from_row): Accept when glyph with given position is
11919 not found in the row. Set cursor x to end of line in that case,
11920 so that we can hscroll.
11921 (redisplay_internal): Correct computation of delta by which
11922 positions have changed in redisplay optimization for cursor
11923 row of selected window.
11924
11925 * xdisp.c (display_line): Remove start_pos.
427ec082 11926 (display_line): Fix bug preventing display optimization for
26901792
DL
11927 cursor line of selected window.
11928 (next_element_from_buffer): Avoid XSETBUFFER, use it->w->buffer
11929 instead.
11930
11931 * dispnew.c (update_text_area): Use GLYPH_EQUAL_P.
11932 (update_text_area): Take glyph pixel width into account
11933 when trying to find a resync point.
11934 (row_equal_p): Compare glyphs in all areas.
11935
119361998-05-06 Gerd Moellmann <gerd@gnu.org>
11937
11938 * xterm.c (x_produce_glyphs): Don't add glyph if area is full.
11939
11940 * dispextern.h (struct glyph_row): Use unsigned hash value.
11941
11942 * xdisp.c (display_line): Simplified and made faster by setting
11943 the cursor with set_cursor_from_row.
11944 (set_cursor_from_row): Handle rows of desired matrix.
11945
119461998-05-05 Gerd Moellmann <gerd@gnu.org>
11947
11948 * xdisp.c (set_cursor_from_row): Don't put cursor on glyphs
11949 with type != CHAR_GLYPH.
11950 (fill_iterator_from_glyph_property): Return void. Set
11951 method to next_element_from_image.
11952 (next_element_from_image): Dummy function for delivering a
11953 single image id.
11954 (set_iterator_to_next): Add method next_element_from_image.
11955 (redisplay_window): When recentering, and cursor vpos is -1
11956 after display, assume middle of window is in first line displayed
11957 in window, and display again.
427ec082 11958 (fill_iterator_from_glyph_property): Assign image glyph
26901792
DL
11959 the position of the first character having the glyph property.
11960
11961 * dispextern.h (IMAGE_ASCENT): Compute ascent of image.
11962 * xfns.c (x_draw_image): Use it.
11963 * xterm.c (x_produce_image_glyph): Use it.
11964
11965 * xterm.c (x_produce_image_glyph): Set iterator's pixel_width.
11966
11967 * Makefile.in: Extraneous #define of LIBXPM removed.
11968
11969 * xterm.c (x_produce_glyphs): Produce a STRETCH_GLYPH for tabs.
427ec082 11970 (x_fill_stretch_glyph_string): Fill a glyph string from a
26901792
DL
11971 stretch glyph.
11972 (x_compute_glyph_string_overhangs): Compute overhangs only
11973 for text glyph strings.
11974 (x_draw_stretch_glyph_string): Draw a stretch glyph string.
11975 (x_draw_glyph_string): Call it.
11976
11977 * dispextern.h (glyph_type): Add STRETCH_GLYPH.
11978 (struct glyph): Add sub-structure for stretchable glyphs.
11979 (GLYPH_EQUAL_P): Compare glyph type and u.val.
11980
11981 * xdisp.c (get_overlay_arrow_glyph_row): Put face code into
11982 #ifdef HAVE_FACES.
11983
11984 * xterm.c (x_produce_glyphs): Use ASCII face for spaces of a TAB.
11985
11986 * xdisp.c (fill_iterator_from_glyph_property): Renamed from
11987 setup_iterator_from_glyph_property. Don't do it for terminal
11988 frames.
11989
11990 * xterm.c (x_produce_image_glyph): Produce glyph for image
11991 that can't be loaded.
11992
11993 * xfns.c (lookup_image): If image can't be loaded, set its
11994 width and height so that we can draw a rectangle.
11995 (x_draw_image): Draw a rectangle for images that don't have
11996 a pixmap.
11997 (make_image): Set hash value.
11998 (image_spec_equal_p): Use image_spec_value.
11999
12000 * xterm.c (expose_frame): Don't try to redraw if basic faces
12001 haven't benn realized yet.
427ec082 12002 (x_draw_image_glyph_string): Fill background only if image
26901792
DL
12003 is not as tall as row.
12004
120051998-05-04 Gerd Moellmann <gerd@gnu.org>
12006
12007 * Makefile.in (LIBXPM): If not already defined, define to -lXpm.
12008 (LIBX)[HAVE_X11]: Add LIBXPM.
12009
12010 * xfns.c (xpm_image_p): Implementation of image type functions
12011 for XPM.
12012 (xpm_load): Ditto.
12013
12014 * dispextern.h (struct image): Add mask pixmap for XPM.
12015
12016 * xfns.c (x_draw_image): Handle images with masks.
12017
12018 * configure.in: --with-xpm added. Code detecting -lXpm added.
12019
12020 * config.in: Add HAVE_XPM.
12021
12022 * xfns.c (xbm_draw): Removed.
12023 (x_draw_image): Default implementation for drawing images.
12024 (xbm_keyword_index): Remove XBM_DEPTH.
12025 (xbm_format): Remove `:depth'.
12026 (xbm_image_spec_from_file): Removed to reduce consing.
427ec082 12027 (xbm_load_image_from_file): Added for the same reason.
26901792 12028
427ec082 12029 * xterm.c (x_fill_image_glyph_string): Don't set ybase of
26901792
DL
12030 glyph string.
12031 (x_draw_image_glyph_string): Pass ybase to image draw function.
12032
12033 * xfns.c (make_image): Set default baseline.
12034
12035 * xterm.c (x_produce_image_glyph): Compute ascent of image
12036 from its height and baseline percentage.
12037
12038 * xfns.c (xbm_keyword_index): Add XBM_BASELINE.
12039 (xbm_format): Add description for `:baseline'.
12040 (xbm_image_spec_from_file): Add keywords from original spec to
12041 result.
12042 (xbm_load): Set baseline of image.
12043 (xbm_image_p): Check range for baseline.
12044
12045 * dispextern.h (struct image): Add member baseline.
12046
12047 * xdisp.c (dump_glyph_matrix): Handle image glyphs.
12048
12049 * term.c (produce_glyphs): Change assertion to allow DISP_IMAGE.
12050
12051 * xdisp.c (get_next_display_element): Do character translations
12052 only if delivering characters.
12053
120541998-05-03 Gerd Moellmann <gerd@gnu.org>
12055
427ec082 12056 * dispextern.h (ITERATOR_AT_END_OF_LINE_P): Test for
26901792
DL
12057 DISP_CHARACTER.
12058
12059 * xterm.c (x_produce_image_glyph): Poduce image glyphs.
12060 (x_produce_glyphs): Call x_produce_glyphs for DISP_IMAGE.
12061
120621998-05-02 Gerd Moellmann <gerd@gnu.org>
12063
12064 * xfns.c (prepare_image_for_display): Set image timestamp.
12065 (clear_image_cache): Clear images if image's timestamp +
12066 Vimage_eviction_seconds is > now.
12067 (syms_of_xfns): New variables image-eviction-seconds, and
12068 image-types.
12069 (add_image_format): Add to image-types.
12070 (xbm_load): Support new image spec format.
12071 (x_alloc_image_color): Allocate a color for an image.
12072
12073 * dispextern.h (struct image): Add timestamp.
12074
12075 * xfns.c (xbm_image_p): Allow bool-vectors, vectors of strings and
12076 vectors of bool-vectors.
12077 (xbm_lisp_object_from_file): Build new format image spec.
12078
120791998-05-01 Gerd Moellmann <gerd@gnu.org>
12080
12081 * xfaces.c (init_frame_faces): Initialize image cache.
12082 (free_frame_faces): Free it.
12083
12084 * xterm.c (x_delete_display): Don't free image cache.
12085
12086 * emacs.c (main): Call init_xfns.
12087
120881998-04-30 Gerd Moellmann <gerd@gnu.org>
12089
12090 * alloc.c (mark_object): Mark objects in image cache.
12091
427ec082 12092 * xfns.c (x_set_internal_border_width): Correct call to
26901792
DL
12093 widget_store_internal_border_width.
12094
12095 * widget.c (widget_store_internal_border): Return void.
12096
12097 * xfns.c (x_destroy_bitmap): Use xfree instead of free. Return
12098 void.
12099 (init_x_parm_symbols): Return void.
12100 (x_report_frame_params): Ditto.
12101 (x_set_border_pixel): Ditto.
12102 (syms_of_xfns): Ditto.
12103 (x_destroy_all_bitmaps): Use xfree instead of free.
12104
12105 * xterm.h (FRAME_X_IMAGE_CACHE): Access the image cache of a frame.
12106
12107 * xterm.c (x_term_init): Initialize image_cache of display info.
12108 (x_delete_display): Free image cache.
12109
12110 * xterm.h (struct x_display_info): Add image_cache.
12111
12112 * xfns.c (make_image_cache): Allocate a new image cache.
12113 (free_image_cache): Free an image cache.
12114 (make_image): Allocate an image.
12115 (free_image): Free an image.
12116
12117 * dispextern.h (struct image): Structure describing an image.
12118 (struct image_cache): Structure describing an image cache.
12119
121201998-04-29 Gerd Moellmann <gerd@gnu.org>
12121
12122 * xdisp.c (check_iterator_glyph_property): Return int. Value is
12123 non-zero if iterator is filled with something to return.
12124 (next_element_from_buffer): Immediately return if
12125 setup_iterator_from_glyph_prop has filled iterator with pixmap.
12126 (next_element_from_string): Likewise.
12127
12128 * xfaces.c (load_pixmap): Allow to pass null for W_PTR and H_PTR.
12129
12130 * dispextern.h (struct glyph): Add pixmap_id.
12131 (display_element_type): Add DISP_PIXMAP.
12132
12133 * xmenu.c (popup_get_selection): Use xmalloc/xfree instead of
12134 malloc/free.
12135
12136 * xfaces.c (clear_font_table): Free fonts not used by fontsets.
12137 (clear_face_cache): Call it.
12138
12139 * xterm.c (x_query_font): Don't look at empty font table slots.
12140 (x_compute_min_glyph_bounds): Likewise.
12141 (x_term_init): Initialize font_table to null.
12142 (x_load_font): Change allocation of font_info structures so
12143 that it is possible to free fonts.
12144
427ec082 12145 * xfns.c (Fx_close_connection): Use xfree instead of free.
26901792
DL
12146 Only free fonts from filled font table entries.
12147
12148 * xfaces.c (best_matching_font): Support use of scalable fonts.
12149 (Fface_scalable_fonts_mode): Toggle use of scalable fonts.
12150
12151 * xterm.h (struct x_display_info): Remove screen_dpi, add resx
12152 and resy.
12153 * xterm.c (x_term_init): Compute resx and resy.
12154
12155 * xfaces.c (split_font_name): Don't reject scalable fonts.
12156
427ec082 12157 * xterm.c (x_list_fonts): Set code exclusing scalable fonts
26901792
DL
12158 in #if 0.
12159
12160 * xfaces.c (xlfd_point_size): Return 0 for fonts whose real
12161 point size cannot be determined.
12162
12163 * xterm.h (FRAME_SMALLEST_CHAR_WIDTH): Return smallest character
12164 width over all fonts on a frame.
12165 (FRAME_SMALLEST_FONT_HEIGHT): Likewise for font height.
12166 * dispnew.c (adjust_frame_glyphs_for_window_redisplay): Use these
12167 macros.
12168
12169 * xterm.c (x_font_min_bounds): Moved here from xfaces.c.
12170 (x_compute_min_char_bounds): Formerly min_char_bounds in xfaces.c.
12171 (x_load_font): Use x_compute_min_char_bounds.
12172
12173 * xterm.h (struct x_display_info): New members smallest_char_width
12174 and smallest_font_height.
12175
121761998-04-28 Gerd Moellmann <gerd@gnu.org>
12177
12178 * dispextern.h (PREPARE_FACE_FOR_DISPLAY): Call function with
12179 the same name if GC of face is zero.
12180
12181 * dispextern.h (struct face): Member non_ascii_gc removed.
12182
12183 * xterm.c (x_get_char_font_and_encoding): Return face's font
427ec082 12184 for characters < 0177 in default face. Prepare face for
26901792
DL
12185 display before returning it.
12186 (x_produce_glyphs): Use it->charset.
12187 (x_get_char_font_and_encoding): Simplified.
12188 (x_encode_char): Remove parameter `font'.
12189
12190 * xfaces.c (choose_face_font): If registry from charset symbol
12191 doesn't contain a `-', make it a pattern by appending "*-*".
12192
12193 * xdisp.c (check_iterator_glyph_property): Adjust limit for
12194 glyph_check_pos computation to character boundary.
12195
121961998-04-27 Gerd Moellmann <gerd@gnu.org>
12197
12198 * fontset.h (FONT_INFO_FROM_ID): Return null if ID is invalid.
12199
12200 * xfaces.c (ascii_face_of_lisp_face): Get the id of the realized
12201 ASCII face for a given Lisp face id.
12202
12203 * xdisp.c (set_iterator_stop_pos): Take glyph_check_pos into
12204 account.
427ec082 12205 (reseat_iterator): Set glyph_check_pos. Handle case where
26901792
DL
12206 new position is < original position.
12207 (check_iterator_glyph_property): Handle glyph property in strings.
12208 (next_element_from_string): Call above function.
12209 (next_element_from_display_vector): Handle faces in glyphs.
12210 (get_next_display_element): Set face_id of glyphs for
12211 control chars to zero.
12212
12213 * Makefile.in (term.o): Add dependency on dispextern.h.
12214
12215 * xdisp.c (syms_of_xdisp): Add symbol `glyph'.
12216 (display_line): Handle marginal areas.
12217 (move_iterator_in_display_line_to): Likewise.
12218
12219 * xfaces.c (Finternal_make_lisp_face): Assign Lisp faces an id.
12220
12221 * xfaces.c (face_at_buffer_position): Don't merge with nil
12222 text property.
12223 (face_at_string_position): Ditto.
12224
12225 * dispextern.h (struct display_iterator): Use a stack of saved
12226 values instead of saving check positions etc. individually.
12227
12228 * xdisp.c (set_iterator_to_next): If end of Lisp string reached,
12229 maybe pop the iterator's stack.
12230 (save_iterator_settings): Push a value on iterator's stack.
12231 (get_overlay_strings_at_iterator_position): Use it.
12232 (restore_iterator_settings): Pop the stack.
12233 (set_iterator_to_next_overlay_string): Use it.
12234
12235 * xfaces.c (try_font_list): Use alternative font families.
12236
122371998-04-26 Gerd Moellmann <gerd@gnu.org>
12238
12239 * xfaces.c (Fset_face_font_sort_order): Set the order in which
12240 font selection matches fonts.
12241 (Fface_font_sort_order): Return the font sort order.
12242 (best_matching_font): Find best matching font based on sort order.
12243 (cmp_font_names): Sort by given sort order.
12244
12245 * dispextern.h (struct display_iterator): New member faces_p.
12246 * xdisp.c (init_iterator): Initialize it->faces_p.
12247 (compute_face_at_iterator_string_position): Use it.
12248 (compute_face_at_iterator_position): Use it.
12249 (init_iterator): Use it.
12250 (display_mode_line): Ditto.
12251
12252 * xdisp.c (get_next_display_element): Put code choosing a face
12253 when the charset changes in #ifdef HAVE_FACES.
12254
427ec082 12255 * dispextern.h (FACE_FOR_CHARSET): Replacement for function
26901792
DL
12256 lookup_face_for_charset.
12257
12258 * xfaces.c (free_font_names): Renamed from free_split_font_names.
12259 (free_all_realized_faces): Renamed from remove_all_realized_faces.
12260
122611998-04-25 Gerd Moellmann <gerd@gnu.org>
12262
12263 * xfaces.c (best_matching_font): Return the name of the best
12264 matching font in an array of font_name structures.
12265 (choose_face_font): Use it.
12266 (choose_face_fontset_font): Use it.
12267 (find_best_weight_font): If final font found has same weight as
12268 the font we started with, return the original font because it is a
12269 better match for the resolution of the display.
12270 (find_best_slant_font): Likewise.
12271 (merge_face_vector_with_property): Check more invalid attribute
12272 values.
12273 (lface_suitable_for_charset_p): Replaced by a macro with the same
12274 name in upper-case.
12275
122761998-04-24 Gerd Moellmann <gerd@gnu.org>
12277
12278 * dispextern.h (struct face): Member
12279 fontset_chosen_for_realization_p removed.
12280
12281 * xfaces.c (cache_face): If face->fontset >= 0, add face to the
12282 end of the collision list, so that we find more specific faces
12283 first.
12284 (lookup_face_for_charset): Look up a new face if face->fontset >=
12285 0, and charset != CHARSET_COMPOSITION.
12286
12287 * xfaces.c (split_font_name): Return zero if point size of font
12288 couldn't be computed.
12289 (realize_default_face): Use ASCII font of a fontset to determine
12290 font-related attributes of the default face.
12291 (face_fontset): Return fontset id for face family.
12292 (font_list): Additional parameter font_pattern. If non-nil,
12293 return fonts matching that pattern.
12294
122951998-04-23 Gerd Moellmann <gerd@gnu.org>
12296
12297 * xfaces.c (choose_face_fontset): If new fontset cannot be
12298 constructed, or fontset name cannot be split, return the id of the
12299 standard fontset.
12300
12301 * xterm.c (XTframe_up_to_date): Check that frame is an X frame.
12302 When Emacs starts, it may be called for the initial frame which
12303 isn't an X frame.
12304
12305 * dispextern.h (struct face): New members foreground_defaulted_p,
12306 background_defaulted_p.
12307 (struct face): Members `mask' and `cache' removed.
12308
12309 * xfaces.c (load_color): Set them.
12310 (free_face_colors): Check them.
427ec082 12311 (xlfd_point_size): Return -1 if resolution or point size of
26901792
DL
12312 font unknown.
12313
12314 * xfaces.c (free_font): Removed.
12315 (load_face_font_or_fontset): Renamed from load_font.
12316 (load_face_font_or_fontset): Use message2 instead of signalling.
12317 (load_color): Likewise.
12318 (load_pixmap): Likewise.
12319
12320 * xterm.h (struct x_display_info): Add screen_dpi.
12321 * xterm.c (x_term_init): Initialize it.
12322 * xfaces.c (xlfd_point_size): Use it.
12323 (split_font_name): Compute numeric XLFD_RESY.
427ec082 12324 (cmp_font_names): Make fonts with an y-resolution more
26901792
DL
12325 similar to that of the frame appear first in the result.
12326
12327 * xfaces.c (cache_face): If fontset_chosen_for_realization_p
12328 is set for the face to cache, add it to the end of the collision
12329 list.
12330 (try_font_list): If fonts for given family and registry cannot
12331 be found, first try to keep the registry, and choose a different
12332 family.
12333 (choose_face_font): Allow nfonts == 0.
12334 (try_font_list): Give up if no font matches given registry.
12335
123361998-04-22 Gerd Moellmann <gerd@gnu.org>
12337
12338 * xterm.c (x_get_char_font_and_encoding): Get font_info from
12339 font info id of the face.
12340
12341 * xfaces.c (load_font): Set font_info_id.
12342 (realize_face): Ditto.
12343
12344 * dispextern.h (struct face): Change member font_info to
12345 font_info_id.
12346
12347 * fontset.h (FONT_INFO_ID): Build an ID from a font_info pointer.
12348 (FONT_INFO_FROM_ID): Get a font_info pointer from an ID.
12349
12350 * xdisp.c (extend_face_to_end_of_line): If IT's current charset
12351 isn't ASCII, get the ASCII face before adding a space.
12352 (append_space): Likewise.
12353 (insert_left_trunc_glyphs): Initialize truncate_it's charset
12354 to -1 so that it will compute the right face for the truncation
12355 glyphs.
12356
12357 * xfaces.c (realize_face): Set
12358 face->fontset_chosen_for_realization_p.
12359 (lookup_face_for_charset): If fontset wasn't specified originally
12360 and new charset != CHARSET_COMPOSITION, get a new face for that
12361 charset.
12362
12363 * dispextern.h (struct face): New member
12364 fontset_chosen_for_realization_p_specified_p. Set to 1 when
12365 realize_face has chosen a fontset to display composite characters
12366 for a Lisp face not specifying a fontset.
12367
12368 * xdisp.c (extend_face_to_end_of_line): Move tests for default
12369 face and line already filled here. Don't do anything if current
12370 face hasn't a relief or has a background equal to the frame
12371 background.
12372
12373 * xfaces.c (split_font_name): Additional parameter numeric_p.
12374 Don't compute numeric values if it is non-zero.
12375 (choose_face_fontset): Call split_font_name with numeric_p == 0.
427ec082 12376 (choose_face_fontset): Print a message if fontset contains a
26901792
DL
12377 font whose name cannot be split into fields.
12378
123791998-04-21 Gerd Moellmann <gerd@gnu.org>
12380
427ec082 12381 * xfaces.c (try_font_list): Try to load a list of fonts,
26901792
DL
12382 possibly using less restrictive patterns.
12383 (choose_face_font): Use it.
12384
12385 * xterm.c (x_get_char_font_and_encoding): For charset !=
12386 CHARSET_ASCII use font_info of face if face hasn't a fontset set.
12387
12388 * dispextern.h (struct face): New member font_info.
12389
12390 * xfaces.c (load_font): Use FS_LOAD_FONT to load fonts for faces
12391 specifying a fontset as well as those not having a fontset.
12392 (free_font): Make it empty.
12393 (realize_face): Use changed load_font.
12394
12395 * xterm.c (x_get_char_font_and_encoding): If face doesn't
12396 fit for charset, get the right one.
12397
12398 * xfaces.c (load_font): Take frame and name parameter, return
12399 font.
12400 (free_font): Likewise.
12401 (split_font_name): Compute numeric values for height, swidth etc.
12402 (cmp_font_names): Use them.
12403 (find_best_width_font): Ditto.
12404 (find_best_height_font): Ditto.
12405 (find_best_weight_font): Ditto.
12406 (find_best_slant_font): Ditto.
12407 (lface_hash): Add weight, slant, swidth and relief to hash value.
12408 (lface_equal_p): Make it faster.
12409 (lface_from_symbol): Use assq_no_quit.
12410 (Fnote_default_face_changed): Removed.
12411 (cmp_font_names): Use strcmp instead of xstricmp.
12412 (face_charset_registries): Removed.
12413
124141998-04-20 Gerd Moellmann <gerd@gnu.org>
12415
12416 * frame.h (CHECK_FRAME): Give this macro a statement form.
12417 (CHECK_LIVE_FRAME): Ditto.
12418
12419 * xfaces.c (find_best_width_font): Find the best matching font
12420 for a given width.
12421 (find_best_height_font): Likewise for height.
12422 (find_best_weight_font): Likewise for weight.
12423 (find_best_slant_font): Likewise for slant.
12424 (choose_face_font): Use them.
12425 (get_lface_attributes): Always return frame-local face attrs.
427ec082 12426 (Finternal_merge_in_global_face): Merge local face with
26901792
DL
12427 global face attributes.
12428
12429 * xfaces.c (check_lface_attrs, check_lface): Check consistency of
12430 Lisp face attributes.
12431
124321998-04-19 Gerd Moellmann <gerd@gnu.org>
12433
12434 * xfaces.c (Finternal_set_lisp_face_attribute): Add :bold
12435 and :italic for compatibility.
12436 (Finternal_set_lisp_face_attribute_from_resource): Handle
427ec082 12437 :bold and :italic. Handle boolean resource values for
26901792
DL
12438 :underline and :italic.
12439
12440 * xfns.c (display_x_get_resource): Make it externally visible.
12441
12442 * xfaces.c (lface_from_symbol): Take a frame as parameter.
12443 If that frame is non-null, return the frame-local face.
12444 (Finternal_make_lisp_face): Additional frame argument.
12445 (lface_attributes): Get face attributes from global and frame-local
12446 definitions.
12447 (Finternal_lisp_face_equal_p): Additional frame argument.
12448 (merge_lisp_face_vector_with_property): Ditto.
12449 (Frealize_basic_faces): Removed.
12450 (Finternal_get_lisp_face_attribute): Additional frame argument.
12451 (Finternal_lisp_face_p): Ditto.
12452 (load_color) [MSDOS]: Removed because it isn't clear how
12453 to do this for MS-DOS.
12454
12455 * xfaces.c (lface_from_symbol): Get global face definition
12456 from face-global-alist.
12457
12458 * xfaces.c (Finternal_set_lisp_face_attribute): Allow `t'
12459 as values for :underline and :inverse-video.
12460 (Finternal_set_lisp_face_attribute): Allow nil values.
12461
124621998-04-17 Gerd Moellmann <gerd@gnu.org>
12463
12464 * xfaces.c (Finternal_make_lisp_face): Return Lisp face vector.
12465
12466 * xfaces.c (syms_of_xfaces): Add Vall_faces.
12467 (Finternal_make_lisp_face): Add new face to Vall_faces.
12468
12469 * xdisp.c (echo_area_display): Remove code recomputing faces.
12470 (redisplay_internal): Ditto.
12471 (init_iterator): Do it here.
12472
12473 * xfaces.c (choose_face_font): Check that swidth doesn't change
12474 for subusequent attributes.
12475 (xlfd_point_size): Return int.
12476
12477 * xdisp.c (redisplay_internal, echo_area-display): If realized
12478 faces have been cleared, call recompute_basic_faces.
12479
12480 * xfaces.c (recompute_basic_faces): Free realized faces. Reset
12481 face_attributes_changed_p.
427ec082 12482 (remove_all_realized_faces): Remove all realized faces on
26901792
DL
12483 all frames.
12484 (Finternal_set_lisp_face_attribute): Call remove_all_realized_faces.
12485
12486 * xdisp.c (redisplay_internal): If face attributes have been
12487 changed since the last redisplay, recompute basic faces.
12488 (echo_area_display): Ditto.
12489
12490 * xfaces.c (clear_face_gcs): Renamed from clear_realized_face_cache.
12491
12492 * xfaces.c (min_char_bounds): If face cache not yet present,
12493 don't try to get font dimensions from faces.
12494
12495 * xterm.c (x_frame_mode_line_height): If face cache not present
12496 set, return default height.
12497
12498 * alloc.c (mark_face_cache): Check for null faces. Correct
12499 index bug.
12500
12501 * dispextern.h (struct face): Renamed from struct rface. Member
12502 underline renamed underline_p. Make it a bit-field.
12503
12504 * xfaces.c (init_frame_faces): Allocate face cache.
12505 (free_frame_faces): Free face cache.
12506 (recompute_basic_faces): Realize basic faces only if face cache is
12507 allocated, i.e. after init_frame_faces has been called.
12508
12509 * frame.c (make_frame): Initialze face cache with null.
12510
12511 * xfaces.c (same_size_fonts): Removed.
12512
427ec082 12513 * xterm.c (x_set_glyph_string_gc): Add post-condition
26901792
DL
12514 s->gc != 0.
12515 (x_set_mouse_face_gc): Ditto.
12516 (x_set_mode_line_face_gc): Ditto.
12517
427ec082
SS
12518 * xfaces.c (realize_default_face): Return int. Value is
12519 zero if frame params don't contain enough information to
26901792
DL
12520 realize the default face.
12521 (realize_basic_faces): Ditto.
12522 (init_frame_faces): Realize basic faces.
12523
12524 * xfns.c (x_set_font): First store real font name in frame
12525 parameters, then call recompute_basic_faces.
12526
12527 * xfaces.c (recompute_basic_faces): Call realize_basic_faces.
12528
125291998-04-16 Gerd Moellmann <gerd@gnu.org>
12530
12531 * xfaces.c (syms_of_xfaces): Correct calls to defsubr.
12532
12533 * xfns.c (Fx_face_fixed_p): Removed.
12534 (Fx_list_fonts): Moved to xfaces.c.
12535
12536 * xfaces.c (compute_face_at_buffer_pos): Renamed to
12537 face_at_buffer_position. Parameter charset removed; always
12538 compute face for CHARSET_ASCII.
12539 (face_at_string_position): Renamed from
12540 compute_face_at_string_pos. Parameter charset removed; always
12541 compute for CHARSET_ASCII.
427ec082 12542 (lookup_face_for_charset): Take frame parameter instead of
26901792
DL
12543 face_cache.
12544 (lookup_face): Ditto.
12545 (compute_char_face): Renamed from compute_glyph_face.
12546
12547 * xdisp.c (init_iterator): Initialize charset member.
12548 (reseat_iterator_to_string): Ditto.
12549 (get_charset_at_buffer_position): Determine charset at
12550 buffer position in current_buffer.
12551 (reseat_iterator): Call above function.
12552 (compute_face_at_iterator_position): Call
12553 compute_face_at_buffer_pos.
12554 (compute_face_at_iterator_string_position): Call
12555 compute_face_at_string_pos.
12556 (get_face_from_id): Removed.
12557 (get_face_from_cursor_pos): Call compute_face_at_buffer_pos.
12558 Call get_charset_at_buffer_position.
12559 (reseat_iterator): Determine face if charset at pos differs
12560 from iterator's charset.
12561 (reseat_iterator_to_glyph_pos): Removed.
12562
12563 * xfaces.c (compute_face_at_bufpos): Remove parameter charset.
12564 Determine charset from buffer position.
12565 (compute_string_char_face): Renamed to compute_face_at_string_pos.
12566 (compute_face_at_bufpos): Renamed to compute_face_at_buffer_pos.
12567
12568 * dispextern.h (struct display_iterator): Add member charset.
12569
125701998-04-15 Gerd Moellmann <gerd@gnu.org>
12571
12572 * xfaces.c (compute_char_face): Removed.
12573
12574 * xdisp.c (get_overlay_arrow_glyph_row): Use compute_glyph_face
12575 with new parameter list.
12576
12577 * xfaces.c (region_face): Removed.
12578 (allocate_face): Removed.
12579 (copy_face): Ditto.
12580 (face_eql): Removed.
12581 (intern_face): Removed.
12582 (clear_face_cache): Removed.
12583 (load_font): Ditto.
12584 (unload_font): Ditto.
12585 (load_color): Ditto.
12586 (unload_color): Ditto.
12587 (new_computed_face): Ditto.
12588 (intern_computed_face): Ditto.
12589 (ensure_face_ready): Ditto.
12590 (merge_faces): Ditto.
12591 (compute_base_face): Ditto.
12592 (merge_face_list): Ditto.
12593 (Fmake_face_internal): Removed.
12594 (Fset_face_attribute_internal): Ditto.
12595 (face_name_id_number): Removed.
12596 (Fframe_face_alist): Ditto.
12597 (Fset_frame_face_alist): Ditto.
12598 (Finternal_next_face_id): Ditto.
12599
12600 * xterm.h (struct x_output): Remove computed_faces, and
12601 param_faces. Remove macros accessing them.
12602
12603 * xfaces.c: Entirely new face implementation added.
12604
126051998-04-11 Gerd Moellmann <gerd@gnu.org>
12606
12607 * dispextern.h (struct glyph_pos): Member `bufpos' renamed
12608 `charpos'.
12609
126101998-04-10 Gerd Moellmann <gerd@gnu.org>
12611
12612 * xterm.c (x_scroll_bar_move): Clear only regions not covered by
12613 scroll bar window to reduce flickering. Clear entire height.
12614
12615 * xdisp.c (move_iterator_vertically_backward): Set iterator's
12616 current_x and hpos to zero after moving to previous line
12617 start.
12618
126191998-04-03 Gerd Moellmann <gerd@gnu.org>
12620
12621 * frame.h (FRAME_FACE_CACHE): Access to a frame's face cache.
12622
12623 * xfaces.c (xlfd_point_size): Compute relative point size of
12624 fonts from font and frame resolution.
12625 (sort_fonts): New function to sort fonts, temporarily setting
12626 font_frame to the frame in effect.
12627 (xlfd_point_size): Take additional frame parameter to be able
12628 to get at the display's resolution.
12629
12630 * xterm.c (x_setup_relief_colors): Use WHITE_PIX_DEFAULT and
12631 BLACK_PIX_DEFAULT.
12632 (x_setup_relief_color): Use FRAME_X_SCREEN instead of default
12633 screen of display.
12634
126351998-03-31 Gerd Moellmann <gerd@gnu.org>
12636
12637 * xfaces.c (choose_face_fontset): Instantiate fontsets.
12638
12639 * fontset.h: Add external declarations for Vfontset_alias_alist
12640 and Vglobal_fontset_alist.
12641
12642 * xfaces.c (merge_lisp_face_vector_with_property): Simplified.
12643 (realize_default_face): If frame parameters contain an artificial
12644 font name naming a fontset, set the family of the default face to
12645 the fontset name given by the registry.
12646
12647 * Makefile.in (alloc.o): Add dependency to dispextern.h.
12648
126491998-03-22 Gerd Moellmann <gerd@gnu.org>
12650
12651 * alloc.c (mark_object): Add function prototype. Add cast to
12652 Lisp_Object pointer in call to mark_object for symbol names
12653 because this otherwise gives a warning from gcc 2.8.1.
12654 (mark_face_cache): Mark Lisp objects in realized faces.
12655
126561998-03-19 Gerd Moellmann <gerd@gnu.org>
12657
12658 * frame.h (struct frame): Add member face_cache.
12659
12660 * alloc.c (mark_object): Mark face cache.
12661 (mark_face_cache): Mark Lisp faces in face cache of frame.
12662
12663 * frame.c (make_frame): Initialize face_cache.
12664 (Fdelete_frame): Free it.
12665
126661998-03-18 Gerd Moellmann <gerd@gnu.org>
12667
12668 * xfaces.c: Very first skeleton of functions for face realization,
12669 face merging, face cache etc.
12670
12671 * dispextern.h (struct rface): Realized faces. Will replace
12672 struct face when tested.
12673 (struct face_cache): Realized face caches.
12674
12675 * xdisp.c (init_iterator): Initialize area member of display
12676 iterator.
12677
126781998-03-17 Gerd Moellmann <gerd@gnu.org>
12679
12680 * xterm.c (x_append_glyph): Use it->area to store glyphs.
12681
12682 * dispextern.h (struct display_iterator): New member area.
12683
12684 * xterm.c (note_overwritten_text_cursor): Note when the text
12685 cursor of a window is overwritten.
12686
12687 * xdisp.c (set_cursor_from_row): If PT is not found in the
12688 row, display the cursor at the start of the row.
12689
12690 * dispnew.c (direct_output_forward_char): Call
12691 set_cursor_from_row.
12692
12693 * xdisp.c (setup_iterator_overlay_strings_from_glyph_pos): If
12694 position is not in an overlay string, set iterator's position and
12695 method explicitly so.
427ec082 12696 (set_cursor_from_row): Correct cursor position calculation.
26901792
DL
12697 Make it externally visible.
12698 (redisplay_window): Call set_cursor_from_row so that there is only
12699 one place where the cursor position is calculated from a current
12700 row.
12701
12702 * dispextern.h (struct display_iterator): New member
12703 overlay_strings_at_end_processed_p.
12704
12705 * xdisp.c (check_iterator): Perform sanity checks on
12706 display_iterators.
12707 (next_element_from_buffer): Check for overlay strings at ZV.
12708
127091998-03-16 Gerd Moellmann <gerd@gnu.org>
12710
12711 * buffer.c (init_buffer_once): Add left_margin_width and
12712 right_margin_width to buffer_local_flags.
12713
12714 * dispnew.c (margin_glyphs_to_reserve): Function computing
12715 number of glyphs to reserve for a marginal area.
12716 (adjust_glyph_matrix): Call it.
12717 (adjust_frame_glyphs_for_frame_redisplay): Return if frame
12718 is not alive.
12719
12720 * window.c (Fset_window_margins): Allow floats.
12721
12722 * buffer.c (syms_of_buffer): Add buffer-local variables
12723 left-margin-width and right-margin-width. Add defaults
12724 default-left-margin-width and default-right-margin-width.
12725
12726 * buffer.h (struct buffer): New members left_margin_width
12727 and right_margin_width.
12728
12729 * window.c (Fset_window_margins): Make window the last and
12730 optional argument.
12731
12732 * xterm.c (x_draw_glyphs): Compute x-positions for rows with
12733 flag no_marginal_areas_p differently.
12734 (x_clear_end_of_line): Ditto.
12735 (x_draw_glyph_string_relief): Compute width of relief differently
12736 for rows with flag no_marginal_areas_p.
12737
12738 * dispnew.c (update_window_line): Update marginal areas only
12739 for rows that don't have no_marginal_areas_p set.
12740
12741 * xdisp.c (display_mode_line): Set row's flag no_marginal_areas_p.
12742 (display_menu_bar): Ditto.
12743
12744 * dispextern.h (struct glyph_row): New member no_marginal_areas_p.
12745
12746 * dispnew.c (adjust_glyph_matrix): Compute glyph pointers for
12747 marginal areas in window-based redisplay.
12748
12749 * dispextern.h (struct glyph_matrix): New members
12750 left_margin_glyphs and right_margin_glyphs.
12751
127521998-03-15 Gerd Moellmann <gerd@gnu.org>
12753
12754 * minibuf.c (read_minibuf_unwind): Return Lisp_Object.
12755
12756 * charset.c (non_ascii_char_to_string): Use char type parameters
12757 because the function is used that way from outside. Use unsigned
12758 char internally.
12759
12760 * window.c (change_window_height): Return void.
12761 (make_dummy_parent): Return void.
12762 (init_window_once): Return void.
12763 (syms_of_window): Ditto.
12764 (keys_of_window): Ditto.
12765 (delete_window): Correct return with and without value.
12766
12767 * buffer.c (record_buffer): Return void.
12768
12769 * marker.c (unchain_marker): Return void.
12770
12771 * window.c (unshow_buffer): Return void.
12772 (replace_window): Ditto.
12773 (delete_window): Ditto.
12774
12775 * term.c (delete_glyphs_hook): Void return type.
12776 (ring_bell_hook): Ditto.
12777 (set_terminal_window_hook): Ditto.
12778
12779 * sysdep.c (init_sigio): Return void.
12780
12781 * xterm.c (x_set_window_size): Return void.
12782 (x_calc_absolute_position): Ditto.
12783 (x_set_offset): Ditto.
12784 (x_focus_on_frame): Ditto.
12785 (x_unfocus_frame): Ditto.
12786 (x_make_frame_visible): Ditto.
12787 (x_make_frame_invisible): Ditto.
12788 (x_iconify_frame): Ditto.
12789 (x_destroy_window): Ditto.
12790 (x_wm_set_window_state): Ditto.
12791 (x_wm_set_icon_pixmap): Ditto.
12792 (x_wm_set_icon_position): Ditto.
12793 (x_initialize): Ditto.
12794 (x_error_quitter): Ditto.
12795 (x_destroy_window): Use xfree instead of free.
12796
12797 * keyboard.c (clear_waiting_for_input): Return void.
12798
12799 * xterm.c (x_wm_set_size_hint): Return void.
12800 (x_raise_frame): Ditto.
12801 (refreshicon): Ditto.
12802 (x_error_catcher): Ditto.
12803 (x_clear_errors): Ditto.
12804
12805 * keyboard.c (record_asynch_buffer_change): Return void.
12806
bb6677a8
GM
12807 The first line of the following paragraph was garbled for an
12808 unknown reason. It couldn't be fully reconstructed.
178c5d9c 12809
bb6677a8 12810 * xterm.c (XTread_socket, XTset_terminal_window): Ditto.
26901792
DL
12811 (x_lower_frame): Ditto.
12812 (x_scroll_bar_clear): Ditto.
12813 (XTflash): Add default case in switch for -Wall.
12814 (construct_mouse_click): Return Qnil.
12815 (cancel_mouse_face): Return void.
12816 (x_queue_event): Use xmalloc instead of malloc.
12817 (x_unqueue_events): Use xfree instead of free.
12818
12819 * ccl.c (ccl_driver): Return int.
12820
12821 * keyboard.c (stop_polling): Return void.
12822 (start_polling): Ditto.
12823
12824 * term.c (keys): Add braces in initializer list for -Wall.
12825
12826 * sysdep.c (tabs_safe_p): Return int.
12827 (init_baud_rate): Return void.
12828
12829 * xterm.c (x_draw_bitmap): Add default case.
12830 (x_setup_relief_colors): Use DefaultScreen instead of
12831 DefaultScreenOfDisplay.
12832 (x_delete_glyphs): Return void.
12833 (construct_menu_click): Put in #if 0 because it isn't called.
12834
12835 * xdisp.c (load_overlay_strings): Remove extraneous argument
12836 in call to qsort.
12837 (get_overlay_arrow_glyph_row): Add missing return value.
12838
12839 * window.c (set_window_height): Return void.
12840 (set_window_width): Ditto.
12841
12842 * sysdep.c (request_sigio): Return void.
12843 (unrequest_sigio): Ditto.
12844 (get_frame_size): Ditto.
12845
12846 * scroll.c (scroll_cost): Return int.
12847 (do_line_insertion_deletion_costs): Return void.
12848
12849 * frame.c (Fdelete_frame): Use xfree instead of free.
12850
12851 * fileio.c (report_file_error): Return void.
12852
12853 * dispnew.c: Make compilable with -Wall.
12854 * term.c: Ditto.
12855
12856 * charset.h (CHAR_LEN): Moved here from dispextern.h.
12857
128581998-03-14 Gerd Moellmann <gerd@gnu.org>
12859
12860 * xterm.c (x_scroll_bar_move): Clear under scroll bar if height is
12861 increased.
12862 (x_setup_relief_color): Free color only for appropriate visual
12863 classes.
12864
12865 * xterm.c (expose_window): Fix calculation of intersection of mode
12866 line rectangle with exposed rectangle.
12867
12868 * xdisp.c (redisplay_window): Don't do cursor movement based
12869 on current matrix if w->last_point is not valid.
12870
128711998-03-09 Gerd Moellmann <gerd@gnu.org>
12872
12873 * xterm.c (expose_line): Redraw mode line and menu lines
12874 differently because they reach into the scroll bar area.
12875
12876 * xdisp.c (redisplay_window): If redisplaying with same window
12877 start, don't accept cursor on partially visible line.
12878
128791998-03-08 Gerd Moellmann <gerd@gnu.org>
12880
12881 * xterm.c (x_set_glyph_string_clipping): Set clip rectangle
12882 for wider mode lines.
12883 (x_draw_glyph_string_relief): Use larger rectangle for mode lines.
12884
12885 * xdisp.c (init_iterator): Increase last_visible_x by vertical
12886 scroll bar width for mode lines.
12887
12888 * dispnew.c (allocate_matrices_for_window_redisplay): Include
12889 vertical scroll bar width in width calculation so that we can
12890 display mode lines wider.
12891
12892 * xdisp.c (redisplay_window): Restore buffers before returning
12893 when fonts have changed.
12894
12895 * dispnew.c (update_window): Mark invisible rows in the current
12896 matrix invalid.
12897
12898 * xdisp.c (try_window_id): Force update of first row displayed
12899 at window end.
12900 (dump_glyph_matrix): Extracted from Fdump_glyph_matrix.
12901
129021998-03-05 Gerd Moellmann <gerd@gnu.org>
12903
12904 * dispextern.h (struct glyph_row): Member max_ascent renamed
12905 ascent. Member max_descent replaced by height.
12906 (struct display_iterator): Member max_descent replaced by height.
12907 (MATRIX_ROW_PIXEL_HEIGHT): Removed.
12908
12909 * xterm.c (x_alloc_lighter_color): Don't free colors if visual
12910 class makes it unnecessary or dangerous.
12911
12912 * xdisp.c (redisplay_window): Case only point has changed, and
12913 point has moved forward. Move forward over overlay strings.
12914 (display_line): Don't set cursor if first glyph from PT is part of
12915 a continuation line.
12916
129171998-02-21 Gerd Moellmann <gerd@gnu.org>
12918
12919 * xdisp.c (start_display): When computing continuation lines
12920 width, add current_x to the continuation lines width because
12921 move_iterator_to will stop in front of the buffer position moved
12922 to.
12923
129241998-02-20 Gerd Moellmann <gerd@gnu.org>
12925
12926 * xdisp.c (redisplay_window): Don't try try_window_id if
12927 windows_or_buffers_changed.
12928
12929 * xterm.c (x_alloc_lighter_color): Try both factor and delta to
12930 determine a color.
12931 (x_setup_relief_color): Allocate/ change one relief.
12932 (x_setup_relief_colors): Call above function.
12933
12934 * xterm.h (struct relief): New structure type holding relief info:
12935 GCs, colors, and whether colors are allocated.
12936
427ec082 12937 * xterm.c (x_alloc_lighter_color): If multiplying by factor
26901792
DL
12938 produces the same color, try adding a delta to RGB values.
12939 (x_setup_relief_colors): Free color cells.
12940
427ec082 12941 * xterm.h (struct x_output): New members white_relief_pixel,
26901792
DL
12942 black_relief_pixel holding the foreground colors allocated for
12943 relief GCs. New members white_allocated_p, black_allocated_p.
12944
12945 * xterm.c (x_scroll_run): Don't set updated_window to null.
12946 This resets updated_window when called from scrolling_window.
12947
12948 * dispextern.h (scroll_run_hook): Renamed from line_dance_hook.
427ec082 12949
26901792
DL
12950 * xterm.c (x_scroll_run): Additional window parameter. Set
12951 and reset updated_window.
12952
12953 * dispnew.c (line_dance_hook): Additional window parameter.
12954
12955 * xdisp.c (try_window_reusing_current_matrix): Don't call
12956 update_window_begin/end here. The end function would display the
12957 cursor on a wrong position and the additional functionality of
12958 update_window_begin is not needed anyway. Just set
12959 updated_window.
12960 (try_window_id): Ditto.
12961
12962 * dispnew.c (Fblink_cursor): Remove call to detect_input_pending.
12963 Don't redraw cursor during redisplay.
12964
12965 * xterm.c (x_scroll_run): Renamed from do_line_dance.
12966
12967 * xdisp.c (redisplay_window): For window-based redisplay, alway
12968 try try_window_id.
12969
12970 * xterm.c (struct glyph_string): New member two_byte_p that is
12971 non-zero if 16-bit drawing functions must be used.
12972 (x_fill_composite_glyph_string): Set it.
12973 (x_fill_glyph_string): Set it.
12974 (x_draw_glyph_string_foreground): Use it.
12975 (x_draw_vertical_border): Make line 1 pixel less tall.
12976 (x_draw_row_bitmaps): Decrease width of area cleared on the left
12977 side by 1 pixel if window is not right-most hasn't vertical scroll
12978 bars.
12979 (x_draw_phys_cursor_glyph): Do nothing if phys_cursor.hpos is
12980 out of bounds.
12981 (x_draw_glyph_string_foreground): Use XDrawImageStringX if
12982 hl == DRAW_CURSOR.
12983
12984 * xdisp.c (start_display): Check that window start is at line
12985 start if GLYPH_DEBUG != 0.
12986
12987 * window.c (window_scroll_pixel_based): Move assertion to
12988 start_display.
12989
129901998-02-19 Gerd Moellmann <gerd@gnu.org>
12991
427ec082 12992 * xterm.c (x_redraw_cursor): Don't redraw the cursor if the
26901792
DL
12993 frame hasn't the focus.
12994
12995 * window.c (make_window): Initialize dy.
12996 (replace_window): Ditto.
12997
12998 * window.h (window): New member dy specifying the amount by which
12999 a window is scrolled "smoothly".
13000
13001 * xterm.c (x_set_glyph_string_clipping): Don't use glyph string's
427ec082 13002 y-position because it can be negative.
26901792
DL
13003 (x_draw_row_bitmaps): Don't clear with negative y-position like
13004 above.
13005 (x_clear_end_of_line): Same theme as above.
13006
13007 * xterm.c (x_alloc_nearest_color): Allocate a color or, if no
13008 exact match exists, the nearest existing color. Patterned after
13009 defined_color.
13010 (x_alloc_lighter_color): Allocate a color that is lighter or
13011 darker than a given color by a specified factor.
427ec082 13012 (x_setup_relief_colors): Set up relief line colors based on
26901792
DL
13013 the background color of a glyph string face.
13014 (x_draw_glyph_string_relief): Call x_setup_relief_colors.
13015
13016 * xfns.c (x_make_gc): Don't allocate relief GCs.
13017 * widget.c (create_frame_gcs): Don't allocate relief GCs.
13018 (setup_frame_gcs): Don't change relief GCs.
13019
13020 * xterm.h (struct x_output): New member relief_background giving
13021 the background pixel color for which relief GCs can be used.
13022 Set by x_setup_relief_colors.
13023
13024 * xterm.c (x_draw_glyph_string_relief): Draw relief differently
13025 for mode and menu lines.
13026
13027 * xdisp.c (set_next_iterator_stop_pos): No longer static.
13028
13029 * dispnew.c (direct_output_for_insert): Call
13030 set_next_iterator_stop_pos after having changed it2.endpos.
13031
130321998-02-17 Gerd Moellmann <gerd@gnu.org>
13033
13034 * dispnew.c (update_window): Work on selected_window, only.
13035
13036 * xterm.c (x_erase_phys_cursor): Return quickly if physical cursor
13037 hpos is >= number of glyphs in the cursor row.
13038
13039 * xdisp.c (try_window_id): Bug fix; update_window_end was not
13040 called.
13041
130421998-02-16 Gerd Moellmann <gerd@gnu.org>
13043
13044 * xdisp.c (init_iterator): Increase last_visible_x for mode lines
13045 and menu lines.
13046
13047 * dispnew.c (allocate_matrices_for_window_redisplay): Allocate
13048 enough glyphs to display a mode line or menu line which draws over
13049 flags areas.
13050
13051 * xterm.c (XTset_vertical_scroll_bar): Use
13052 WINDOW_DISPLAY_TEXT_AREA_PIXEL_HEIGHT instead of
13053 VERTICAL_SCROLL_BAR_PIXEL_HEIGHT.
427ec082 13054 (x_draw_glyphs): Draw over flags areas when drawing a mode line
26901792
DL
13055 or menu.
13056 (x_set_glyph_string_clipping): Set clipping differently if drawing
13057 a mode line or menu line.
13058
13059 * xterm.h (VERTICAL_SCROLL_BAR_PIXEL_HEIGHT): Removed.
13060
13061 * xterm.c (expose_line): Don't draw bitmaps for mode lines and
13062 menu lines.
13063 (x_scroll_bar_create): Don't clear flags areas.
13064 (x_draw_row_bitmaps): Clear visible row height, only.
13065
13066 * dispnew.c (Fblink_cursor): Moved here from xdisp.c.
13067
130681998-02-15 Gerd Moellmann <gerd@gnu.org>
13069
13070 * dispnew.c (direct_output_for_insert): When checking for tabs in
13071 the line, set it2.endpos to ZV.
427ec082 13072
26901792
DL
13073 * window.h (struct window): New member cursor_off_p.
13074 * xterm.c (x_redraw_cursor): Implementation of redraw_cursor_hook
13075 for X.
13076 * dispnew.c (redraw_cursor_hook): If non-null, function that can
13077 be called to display or erase the cursor.
13078 * xdisp.c (Fblink_cursor): Blink the cursor of a specified window
13079 or selected_window.
13080
13081 * xterm.h (text_cursor_kinds): Enumerators changed to uppercase.
13082
13083 * dispnew.c (update_window_line): Special handling of inverse
13084 lines in #if 0 removed.
13085
13086 * xterm.c (x_write_glyphs): Renamed from XTwrite_glyphs.
13087 (x_insert_glyphs): Renamed from XTinsert_glyphs.
13088 (x_clear_frame): Renamed from XTclear_frame.
13089 (x_clear_end_of_line): Renamed from XTclear_end_of_line.
13090 (x_ins_del_lines): Renamed from XTins_del_lines.
13091 (x_change_line_height): Renamed from XTchange_line_height.
13092 (x_delete_glyphs): Renamed from XTdelete_glyphs.
13093 (x_clear_cursor): Renamed from clear_cursor.
13094 (x_update_begin): Renamed from XTupdate_begin.
13095 (x_update_end): Renamed from XTupdate_end.
13096 (x_update_window_begin): Renamed from XTupdate_window_begin.
13097 (x_update_window_end): Renamed from XTupdate_window_end.
13098 (x_frame_mode_line_height): Renamed from XTframe_mode_line_height.
13099 (x_produce_glyphs): Renamed from XTproduce_glyphs.
13100 (x_produce_special_glyphs): Renamed from XTproduce_special_glyphs.
13101 (x_produce_special_glyphs): Implementation in #if 0 removed.
13102
13103 * xdisp.c (Fdump_redisplay_state): Display row's fill_line_p
13104 flag in the dump.
13105
13106 * dispnew.c (update_text_area): Handling of glyphs with pixel
13107 width zero removed. Decrement desired stop pos if desired row
13108 fills its line.
13109
13110 * xterm.c (x_fill_glyph_string): Handling of glyphs with pixel
13111 width zero removed.
13112 (BUILD_GLYPH_STRINGS): Set glyph string flag
13113 extends_to_end_of_line_p based on row's flag fill_line_p and face
13114 background and stipple. Make sure it works for composite characters.
13115
13116 * xdisp.c (extend_face_to_end_of_line): Set the glyph row flag
13117 fill_line_p. For window-based redisplay, add a space only if
13118 the row is empty so that we know the face to draw.
13119
13120 * dispextern.h (struct glyph_row): New flag fill_line_p. Non-zero
13121 means draw the face of the last glyph in the text area to the
13122 right end of the text area.
13123
13124 * xdisp.c (init_iterator): Show region in window mini-buffer
13125 window refers to.
13126
427ec082 13127 * dispextern.h (struct display_iterator): Redundant member
26901792
DL
13128 region_showing_p removed. Test for region_beg > 0 instead.
13129
13130 * dispnew.c (update_text_area): Clear to end of line if cursor is
13131 beyond the end of the desired line. Necessary because we don't
13132 have a phys_cursor_glyph with which to erase the cursor. We don't
13133 have one because this method of drawing a cursor doesn't work with
13134 lbearing/rbearing.
13135
13136 * xterm.c (XTinsert_glyphs): Block input.
13137
131381998-02-14 Gerd Moellmann <gerd@gnu.org>
13139
13140 * xterm.c (x_set_cursor_gc): Don't use cursor_gc for composite
13141 glyph strings.
13142 (x_draw_glyph_string_background): Fill background with background
13143 pixel for the first glyph of a composite character.
13144
13145 * xdisp.c (try_window): Change return type to int. Value is zero
13146 if fonts were loaded during redisplay.
13147 (redisplay_window): Return if fonts have been loaded during
13148 redisplay.
13149 (append_space): New parameter default_face_p.
13150
131511998-02-13 Gerd Moellmann <gerd@gnu.org>
13152
13153 * dispnew.c (adjust_glyph_matrix): In case of optimizing C-x 2,
13154 don't let a partially visible line in a current matrix stay
13155 enabled.
13156
131571998-02-09 Gerd Moellmann <gerd@gnu.org>
13158
13159 * minibuf.c (read_minibuf): Put access to minibuffer_prompt_length
13160 in #if PROMPT_IN_BUFFER.
13161
13162 * xdisp.c (display_line): If row ends in ZV, make the space
13163 that is added to place the cursor on it appear in default face.
13164
427ec082 13165 * xterm.c (expose_area): New function redrawing a single
26901792
DL
13166 glyph row area.
13167 (expose_line): Use it to redraw all areas of a row.
13168
13169 * dispextern.h (move_operation_enum): New enum
13170 move_operation_enum.
13171
13172 * window.c (window_scroll_pixel_based): Remove now unnecessary
13173 code that made sure that it->current_y doesn't become negative.
13174
13175 * xdisp.c (move_iterator_in_display_line_to): New parameter
13176 op. Special meaning of to_pos <= 0 and to_x < 0 removed.
13177 (move_iterator_to): Ditto.
13178
13179 * dispextern.h (struct glyph_matrix): New member window_width.
13180
13181 * dispnew.c (adjust_glyph_matrix): Set window_width. Optimize
13182 case of changing window height.
13183
13184 * xterm.c (x_draw_row_bitmaps): Don't clear vertical window
427ec082 13185 border to the left.
26901792
DL
13186
13187 * dispextern.h (struct glyph_row): Remove right_to_left_p. RMS
13188 says this aspect of Emacs is currently redesigned.
13189
13190 * xterm.c (x_clip_to_row): Subtract 1 from clip width if we
13191 have to draw a vertical border.
13192
13193 * window.c (window_scroll_pixel_based): When scrolling down by
13194 screen-fulls, make sure it.current_y doesn't get negative because
13195 this would confuse move_iterator_vertically.
13196
13197 * xdisp.c (move_iterator_vertically_backward): Bug fix for
13198 the case continuation lines are involved.
13199 (try_window_id): Don't set the cursor into scroll margins.
13200
132011998-02-08 Gerd Moellmann <gerd@gnu.org>
13202
13203 * xterm.c (x_append_glyph): Don't compute left_overhang and
13204 right_overhang.
13205 (XTproduce_glyphs): left_overhang and right_overhang removed.
13206 Set it->glyph_row->contains_overlapping_glyphs_p.
13207
13208 * xdisp.c (Fdump_redisplay_state): Output of glyph->left_overhang
13209 and right_overhang removed.
13210
13211 * dispextern.h (struct glyph_row): New member
13212 contains_overlapping_glyphs_p used to optimize glyph drawing.
13213 (struct display_iterator): left_overhang and right_overhang
13214 removed.
13215 (struct glyph): Ditto.
13216
13217 * xterm.c (x_draw_relief): Removed.
13218 (x_draw_bitmap): Renamed from draw_bitmap.
13219 (x_draw_glyphs): Completely new implementation of draw_glyphs
13220 capable of handling arbitrary lbearing and rbearing values.
13221 Several sub-functions not mentioned here.
13222
132231998-01-30 Gerd Moellmann <gerd@gnu.org>
13224
13225 * xterm.c (x_erase_phys_cursor): Clear area under the cursor only
427ec082 13226 if displaying hollow box cursor. draw_glyphs should handle
26901792
DL
13227 other cases.
13228 (draw_glyphs): Move start to the left and end to the right if they
427ec082 13229 overlap with previous or following characters.
26901792 13230 (draw_glyphs): If background is cleared for hl == DRAW_CURSOR,
427ec082 13231 make sure XDrawString uses function GXset. Otherwise the
26901792
DL
13232 character under the cursor would be invisible.
13233 (x_draw_bar_cursor): Don't draw over previous character if it
13234 has right_overhang.
13235
13236 * window.c (get_phys_cursor_glyph): Return the glyph under a
13237 window's physical cursor.
427ec082 13238
26901792
DL
13239 * xterm.c (x_draw_hollow_cursor): Use get_phys_cursor_glyph.
13240 (x_draw_bar_cursor): Ditto.
13241 (x_erase_phys_cursor): Ditto.
13242 (x_phys_cursor_in_rect_p): Ditto.
13243 (x_display_and_set_cursor): Remove reference to w->phys_cursor_glyph.
13244
13245 * window.c (make_window): Remove reference to phys_cursor_glyph.
13246 (replace_window): Ditto.
13247
13248 * window.h (struct window): Remove phys_cursor_glyph. There is
427ec082 13249 now always a glyph present for placing the cursor on it in
26901792
DL
13250 each glyph row, even at the end of a line.
13251
13252 * xdisp.c (append_space): Function to add a space to an iterators
13253 glyph row.
13254 (display_line): Add spaces at the end of lines that are used to
13255 place the cursor on them.
13256 (compute_line_metrics): If row consists of a space only that was
427ec082 13257 added to place the cursor on it, use that space's height as the
26901792
DL
13258 line height.
13259
132601998-01-29 Gerd Moellmann <gerd@gnu.org>
13261
13262 * xdisp.c (Fdump_redisplay_state): Dump left and right overhang of
13263 glyphs.
13264
132651998-01-28 Gerd Moellmann <gerd@gnu.org>
13266
13267 * xterm.c (x_append_glyph): Set overhang of glyph from iterator.
13268 (XTproduce_glyphs): Set it->left_overhang and it->right_overhang.
13269
13270 * dispextern.h (struct glyph): Add left_overhang and
427ec082 13271 right_overhang.
26901792
DL
13272 (struct display_iterator): Ditto.
13273
13274 * dispnew.c (direct_output_for_insert): Give up if newly inserted
13275 glyphs have different ascent or descent than original row.
13276
13277 * xdisp.c (compute_line_metrics): Compute row->max_ascent and
13278 row->max_descent only if unknown.
13279 (display_line): Compute row->max_ascent and row->max_descent.
13280 (display_string): Ditto.
13281
13282 * window.h (struct window): New members phys_cursor_ascent and
427ec082 13283 phys_cursor_descent.
26901792
DL
13284
13285 * xterm.c (x_phys_cursor_in_rect_p): Use them.
13286 (x_draw_hollow_cursor): Ditto.
13287 (x_erase_phys_cursor): Ditto.
13288 (x_display_and_set_cursor): Set them.
13289 (x_append_glyph): Don't set glyph members that were removed.
13290
13291 * dispextern.h (struct glyph): Members ascent, descent,
13292 contributes_to_line_height_p removed.
13293
132941998-01-25 Gerd Moellmann <gerd@gnu.org>
13295
13296 * dispextern.h (DEFAULT_FACE_ID, MODE_LINE_FACE_ID): Symbolic
13297 names for face ids of frame default face and mode line face.
13298
13299 * xdisp.c (compute_face_at_iterator_string_position): If
13300 displaying a mode line use MODE_LINE_FACE_ID instead of
13301 DEFAULT_FACE_ID.
13302
13303 * xdisp.c (reseat_iterator_to_string): Additional parameter start.
13304 (display_string): Ditto, additional parameter lisp_string.
13305 (display_line): Call display_string with Lisp mini-buffer prompt
13306 string.
13307 (display_menu_bar): Call display_string with Lisp string.
13308 (display_mode_element): Ditto.
13309 (next_element_from_string): Make it work for non-overlay Lisp
13310 strings with field width and precision.
13311
13312 * minibuf.c (minibuffer-prompt-in-buffer): Bound if
13313 PROMPT_IN_BUFFER.
13314
13315 * xfaces.c (compute_string_char_face): Fix face computation
13316 for overlay strings.
13317
13318 * xdisp.c (struct overlay_entry): Add member after_string_p.
13319 (load_overlay_strings): Simplify.
13320
13321 * window.c (delete_window): Defer glyph matrix adjustment.
13322 (Fsplit_window): Ditto.
13323 (change_window_height): Ditto.
13324 (Fset_window_configuration): Ditto.
13325 (Fset_window_margins): Ditto.
13326 * frame.c (set_menu_bar_lines): Ditto.
13327 (Fmake_terminal_frame): Ditto.
13328 * dispnew.c (change_frame_size_1): Ditto.
13329
133301998-01-24 Gerd Moellmann <gerd@gnu.org>
13331
13332 * xdisp.c (move_iterator_vertically_backward): Change algorithm.
13333
427ec082 13334 * dispnew.c (direct_output_for_insert): Give up if start
26901792
DL
13335 position has overlay strings.
13336
13337 * xdisp.c (display_line): Don't set cursor if row ends in middle
13338 of overlay string.
13339 (Fdump_redisplay_state): Print complete row start and end
13340 position.
13341 (redisplay_window): Cursor movement when matrix hasn't changed---
13342 if PT < last_point, maybe move forward if row ends at PT and
13343 in middle of char.
13344
13345 * minibuf.c (read_minibuf): Save the value of
13346 minibuffer_prompt_length in minibuf_save_list.
13347 (read_minibuf_unwind): Restore minibuffer_prompt_length.
13348
13349 * xdisp.c (redisplay_window): Add assertion for cursor movement
13350 case, PT < last_point.
13351 (move_iterator_in_display_line_to): If to_pos specified, move
13352 over before-strings.
13353
13354 * dispextern.h (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Test
13355 start.string_index > 0.
13356
13357 * xdisp.c (redisplay_internal): Adjust glyphs if fonts_changed_p
13358 is set. Retry redisplay if fonts_changed_p is set before update.
13359
13360 * xterm.c (x_load_font): Set fonts_changed_p.
13361
13362 * xfaces.c (Fset_face_attribute_internal): Set fonts_changed_p.
13363
13364 * dispnew.c (adjust_glyphs_for_font_change): Removed.
13365
13366 * xdisp.c (try_window): Check fonts_changed_p.
13367 (try_window_reusing_current_matrix): Ditto.
13368 (try_window_id): Ditto.
13369
13370 * dispnew.c (adjust_glyphs_for_font_change): Set fonts_changed_p.
13371 (fonts_changed_p): Flag indicating a font change since the last
13372 glyph matrix adjustment.
13373
13374 * xterm.c (x_per_char_metric): Use font->max_bounds as
13375 char metric of the font's default char if the default char
13376 hasn't per char metric itself.
13377
13378 * xfaces.c (Fset_face_attribute_internal): Adjust glyphs
13379 for font change.
13380 (min_char_bounds): Check face->font != NULL.
427ec082 13381 (font_min_bounds): Return minimum font metrics. Capture the
26901792
DL
13382 case of invalid min_bounds contents.
13383 (min_char_bounds): Call font_min_bounds.
13384
133851998-01-22 Gerd Moellmann <gerd@gnu.org>
13386
13387 * xdisp.c (start_display): Don't set it->prompt_width if
13388 PROMPT_IN_BUFFER.
13389 (move_iterator_in_display_line_to): Ditto.
13390 (display_line): Don't display prompt via display_string if
13391 PROMPT_IN_BUFFER.
13392
13393 * minibuf.c (Fminibuffer_prompt_width): Return value from
13394 current_buffer if PROMPT_IN_BUFFER.
427ec082 13395 (read_minibuf): If PROMPT_IN_BUFFER, insert prompt into
26901792
DL
13396 mini-buffer and make it read-only.
13397 (Fminibuffer_complete_and_exit): If PROMPT_IN_BUFFER, use
13398 minibuffer_prompt_length instead of BEGV.
13399 (Fminibuffer_complete_word): Ditto.
13400 (Fminibuffer_complete_word): Ditto.
13401
13402 * insdel.c (del_range_1): If PROMPT_IN_BUFFER, and start position
13403 is less than mini-buffer prompt width, use prompt width as start.
13404
13405 * editfns.c (make_buffer_string): If PROMPT_IN_BUFFER, and start
13406 position is less than mini-buffer prompt width, use the prompt
13407 width as start.
13408
13409 * cmds.c (Fbeginning_of_line): If PROMPT_IN_BUFFER, set point to
13410 end of prompt if applied to a mini-buffer and BEG reached.
13411
134121998-01-21 Gerd Moellmann <gerd@gnu.org>
13413
13414 * editfns.c (make_buffer_string): If PROMPT_IN_BUFFER, add prompt
13415 length to start position.
13416
13417 * buffer.c (Fget_buffer_create): Initialize
13418 minibuffer_prompt_length.
13419 (Fmake_indirect_buffer): Ditto.
13420 (Fkill_buffer): Ditto.
13421
13422 * buffer.h (struct buffer): Add member minibuffer_prompt_length
13423 if PROMPT_IN_BUFFER.
13424
134251998-01-19 Gerd Moellmann <gerd@gnu.org>
13426
13427 * xdisp.c (next_element_from_string): Make it work for arbitrary
13428 Lisp strings.
13429 (set_iterator_to_next): Advance to next overlay string only
13430 if it->string is an overlay string.
13431
13432 * dispextern.h (struct display_iterator):
13433 next_ovstr_face_check_pos renamed next_string_face_check_pos.
13434
427ec082 13435 * xfaces.c (compute_string_char_face): Compute face for
26901792
DL
13436 arbitrary Lisp string. Renamed from compute_overlay_string_char_face.
13437
13438 * xdisp.c (next_element_from_string): Renamed from
13439 next_element_from_overlay_string.
427ec082 13440 (compute_face_at_iterator_string_position): Renamed from
26901792
DL
13441 compute_face_at_iterator_overlay_string_position.
13442
13443 * dispextern.h (struct display_iterator): Member overlay_string
13444 renamed string.
13445
13446 * xdisp.c (next_element_from_c_string): Renamed from
13447 next_element_from_string.
13448
13449 * dispextern.h (struct glyph_pos): Reversed meaning of
13450 overlay_string_index and string_index.
13451
13452 * xdisp.c (next_element_from_overlay_string): Fix bug that made
13453 this function always return the first character of an overlay
13454 string.
13455
134561998-01-18 Gerd Moellmann <gerd@gnu.org>
13457
13458 * xdisp.c (reseat_iterator): Set next_invisible_check_pos only if
13459 forced or new pos > next_invisible_check_pos.
13460 (redisplay_window): Don't try same window start if PT < window
13461 start.
13462 (move_iterator_vertically): Bug fix satisfying post-condition
13463 when ZV is reached and no newline in front.
13464 (move_iterator_vertically_backward): New implementation.
13465 (move_iterator_vertically_backward): Bug fixes.
13466
13467 * xterm.c (XTmouse_position): Change call to min_char_bounds.
13468 * dispnew.c (adjust_frame_glyphs_for_window_redisplay): Ditto.
13469 (adjust_glyphs_for_font_change): Always adjust.
13470
13471 * dispnew.c (struct dim): Use int.
13472
13473 * xfaces.c (Fset_face_attribute_internal): Set face->font_name;
13474 (allocate_face): Initialize it.
13475 (load_font): Use XLoadQueryFont again instead of x_load_font.
13476 (unload_font): Use XFreeFont again.
13477 (min_char_bounds): Iterate over fonts of faces. Use frame's
13478 font sizes as default. Remove parameter except_last_font_p.
13479
13480 * dispextern.h (struct face): Add font_name.
13481
134821998-01-17 Gerd Moellmann <gerd@gnu.org>
13483
13484 * xdisp.c (move_iterator_vertically): Check post-condition. Move
13485 to start of line if ending at ZV and no newline in front.
13486 (move_iterator_to): If to_y specified, always first move to x = 0,
13487 so that move stops at line start instead of line end. This is
13488 probably what callers would expect to happen.
13489
13490 * window.c (window_scroll_pixel_based): Pixel-based scrolling that
13491 can handle different line heights.
13492 (window_scroll_line_based): Formerly window_scroll.
13493 (window_scroll): Call both.
13494
13495 * xdisp.c (start_display): Exclude code if PROMPT_IN_BUFFER.
13496 (move_iterator_in_display_line_to): Ditto.
13497 (display_line): Ditto.
13498
13499 * minibuf.c (read_minibuf): Conditionally insert prompt into
13500 buffer instead of handling prompts specially. Change other
13501 functions accordingly. All such code is in #if PROMPT_IN_BUFFER.
13502
13503 * dispnew.c (adjust_glyph_matrix): Optimize the handling of C-x 2,
13504 upper window. Optimize calls to xrealloc if same width.
13505
13506 * xdisp.c (redisplay_window): Don't use
13507 try_window_reusing_current_matrix if window scroll functions
13508 exist.
13509
13510 * dispextern.h (struct display_iterator): Member
13511 redisplay_end_trigger_p removed.
13512
13513 * dispextern.h (WINDOW_DISPLAY_PIXEL_HEIGHT_WITHOUT_MODE_LINE):
13514 Renamed to WINDOW_DISPLAY_TEXT_AREA_PIXEL_HEIGHT.
13515
135161998-01-16 Gerd Moellmann <gerd@gnu.org>
13517
13518 * xdisp.c (move_iterator_by_lines): Optimize for truncate-lines
13519 nil. Optimize truncate-lines t and moving backward.
13520 (move_iterator_to_previous_visible_line_start): Contains the heart
13521 of the previous set_iterator_to_previous_visible_line_end. Don't
13522 reseat the iterator. Used by move_iterator_by_lines.
13523 (set_iterator_to_previous_visible_line_start): Call function
13524 above.
13525 (move_iterator_in_display_line_to): Check TO_POS before doing
13526 anything else. Otherwise to_pos == PT would move to x of PT+1.
13527
13528 * indent.c (Fvertical_motion): Use display_iterator.
13529
13530 * xdisp.c (move_iterator_by_lines): New function moving by screen
13531 lines.
13532 (redisplay_window): Use it.
13533 (move_iterator_to): Correct branch of to_vpos specified.
13534 (move_iterator_vertically_backward): Increment nlines after having
13535 backed up over some lines because the last line was not backed up
13536 over.
13537 (move_iterator_via_matrix): Look for it->pos in the matrix, and
13538 calculate it->vpos and it->current_y relative to this row.
427ec082 13539 (move_iterator_via_matrix): Set in #if 0. It doesn't seem to
26901792
DL
13540 have a big effect and it is complex.
13541 (move_iterator_to): Call to move_iterator_via_matrix in #if 0.
13542
135431998-01-15 Gerd Moellmann <gerd@gnu.org>
13544
13545 * xterm.c (x_draw_relief): Simplify drawing and draw so that lines
13546 join nicely. Lines with widths > 2 don't join nicely under X.
13547 * xterm.h (struct x_output): Remove member relief_gc_line_width.
13548 * widget.c (setup_frame_gcs): Initialize relief GC's to line
13549 width 1; remove references to relief_gc_line_width.
13550 * xfns.c (x_make_gc): Ditto.
13551
13552 * xfaces.c (Fset_face_attribute_internal): Set frame garbaged
13553 if relief changes.
13554 (Fset_face_attribute_internal): Use XINT instead of XFASTINT
13555 to get a relief because they can be negative.
13556
13557 * xterm.c (x_draw_relief): Correct line drawing positions. Pixel
13558 positions are for the middle of lines under X.
13559
13560 * xdisp.c (try_window_id): Always search for the cursor by setting
13561 w->cursor.vpos = -1. Search in unchanged rows at the top and
13562 bottom if cursor not found in displayed lines.
427ec082 13563 (display_mode_line): First extend face, then set right shadow
26901792
DL
13564 flag. Otherwise the wrong glyph gets the right shadow.
13565
13566 * dispnew.c (direct_output_for_insert): Give up if line contains
13567 a tab. The number of spaces inserted for a tab changes if we
13568 insert glyphs in front of it.
13569
13570 * xterm.c (x_list_fonts): Changes undone because the Lisp
13571 implementation for make-face-smaller, make-face-larger, and
13572 make-face-fixed can do without them.
13573
13574 * xfns.c (Fx_list_fonts): Original x-list-fonts from x-list-font.c
13575 inserted.
13576
13577 * xdisp.c (try_window_id): First compute beg_unchanged, then
13578 compare with window start pos.
13579
13580 * xfns.c (Fx_face_fixed_p): Determine whether a face has a
13581 fixed-width font.
13582 (syms_of_xfns): defsubr for x-face-fixed-p.
13583
13584 * xterm.c (x_erase_phys_cursor): If row containing cursor is not
13585 enabled, don't do anything because this row will be newly drawn
13586 anyway and because we can additionally no longer determine the row
13587 height.
13588
13589 * xdisp.c (display_line): Bug fix cursor positioning.
13590
13591 * xfns.c (x-list-fonts): Copied from x-list-fonts.c; #include
13592 removed. x-list-fonts.c is now obsolete.
13593 (Qfixed, Qvariable): Moved here from xfaces.c.
13594
135951998-01-14 Gerd Moellmann <gerd@gnu.org>
13596
13597 * xdisp.c (display_line): Set row->ends_at_zv_p based on
13598 FETCH_BYTE for truncated lines.
13599 (display_line): Set cursor differently.
13600 (display_line): Fixed bug setting last_pos_on_this_line wrong
13601 for truncated lines.
13602
13603 * dispnew.c (adjust_glyph_matrix): Always adjust for frame-based
13604 redisplay.
13605
13606 * window.c (Fsplit_window): Adjust glyphs before setting buffer.
13607
13608 * dispnew.c (adjust_frame_glyphs_for_window_redisplay): Add
13609 assertion that character dimensions are not zero.
13610
13611 * xterm.c (x_load_font): adjust_glyphs_for_font_change while
13612 input is blocked.
13613
13614 * xdisp.c (decode_mode_spec): Faster implementation of line number
13615 display.
13616
13617 * xterm.c (x_draw_row_bitmaps): Clear flags area before drawing
13618 bitmaps if bitmaps don't fill the entire area.
13619 (draw_bitmap): Draw bitmaps horizontally centered in flags area.
13620
427ec082 13621 * xterm.h (FRAME_FLAGS_BITMAP_HEIGHT): Macro giving the
26901792
DL
13622 pixel height of flags bitmaps.
13623
13624 * frame.h (FRAME_FLAGS_AREA_COLS): Use FRAME_X_FLAGS_AREA_COLS.
13625 (FRAME_FLAGS_AREA_WIDTH): Ditto.
13626
13627 * xterm.h (FRAME_FLAGS_BITMAP_WIDTH): Macro giving the width
13628 in pixels of a flags area of a frame.
13629 (FRAME_X_FLAGS_AREA_WIDTH): Removed.
13630 (FRAME_X_FLAGS_AREA_COLS): Macro giving the number of columns
13631 occupied by a flags area.
13632
136331998-01-13 Gerd Moellmann <gerd@gnu.org>
13634
13635 * xdisp.c (hscroll_window_tree): Remove test for non-nil
13636 window_end_valid.
13637
13638 * dispnew.c (adjust_glyph_matrix): Check redisplay_p if
13639 GLYPH_DEBUG != 0.
13640
13641 * xdisp.c (display_line): Correct wrong calculation of row->x for
13642 the case of nglyphs == 1.
13643 (hscroll_window_tree): Renamed from hscroll_windows.
13644 (hscroll_windows): New function calling hscroll_window_tree that
13645 clears desired matrices on a frame when hscroll has been changed.
13646 (redisplay_p): Global flag set during redisplay.
13647 (redisplay_internal): Set and clear redisplay_p.
13648
13649 * xfaces.c (min_char_bounds): Add assertion that width and height
13650 are not zero at the end. Initialize *height and *width to -1,
13651 instead of using BITS_PER_SHORT. If font has min_bounds.width
13652 zero, use its max_bounds.width.
13653
13654 * x-list-font.c (Fx_list_fonts): Check INTEGERP or FLOATP for
13655 width and height.
13656
136571998-01-12 Gerd Moellmann <gerd@acm.org>
13658
13659 * dispnew.c (adjust_glyph_matrix): Do nothing if sizes haven't
13660 changed. Don't clear desired matrices.
13661
13662 * xdisp.c (hscroll_windows): Compute pt after setting
13663 current_buffer.
13664 (redisplay_window): Don't do cursor movement based on current
13665 matrix if just_this_one_p is zero.
13666
13667 * x-list-font.c (Fx_list_fonts): Additional parameter fixed.
427ec082 13668 specifying that fixed-width, variable-width fonts or both
26901792
DL
13669 should be returned.
13670
13671 * xfaces.c (Qfixed, Qvariable): Symbols for use by x-list-fonts.
13672 (syms_of_xfaces): Initialize them.
13673
13674 * xterm.c (x_list_fonts): Include auto-scaled fonts. Extend
13675 cached information.
13676
136771998-01-11 Gerd Moellmann <gerd@acm.org>
13678
13679 * xdisp.c (display_mode_line): Extend face to end of line.
13680
13681 * xdisp.c (echo_area_display): Don't call display_string with
13682 echo_area_glyphs_length == 0 which would mean infinite precision.
13683 (redisplay_internal): Adjust window_end_vpos if necessary.
13684
136851998-01-07 Gerd Moellmann <gerd@acm.org>
13686
13687 * xdisp.c (display_line): Set it->ends_at_zv_p differently.
13688
136891998-01-05 Gerd Moellmann <gerd@acm.org>
13690
13691 * xdisp.c (get_row_start_continuation_line_width): Removed.
13692 (init_iterator_to_row_start): Set it.current_x from row.
13693 (try_window_id): Set it.continuation_lines_width directly from
13694 row.
13695
13696 * xdisp.c (hscroll_windows): Use w->pointm if window is not
13697 selected_window.
13698 (hscroll_windows): Center cursor in window.
13699 (hscroll_windows): Call move_iterator_in_display_line_to.
13700
137011998-01-04 Gerd Moellmann <gerd@acm.org>
13702
13703 * xdisp.c (hscroll_windows): Check hscroll < 0.
13704 (redisplay_window): Allow quick cursor movement if overlay arrow
13705 but frame uses window-based redisplay.
13706 (display_line): Take special case for nglyphs == 1 out of #if 0.
13707 (display_line): Set row->ends_at_zv_p after the loop displaying
13708 glyphs because ZV can be in truncated text.
13709 (hscroll_windows): Use init_iterator_to_row_start.
13710
13711 * dispnew.c (scrolling_window): Calculation of overlapping
13712 runs fixed.
13713 (row_equal_p): Compare continued_p and continuation_line_p.
13714
137151998-01-02 Gerd Moellmann <gerd@acm.org>
13716
13717 * xterm.c (x_get_mode_line_face_gc): Renamed from
13718 x_get_modeline_face_gc.
13719
13720 * xdisp.c (TEXT_PROP_DISTANCE_LIMIT): Max. distance from current
13721 buffer position to look for text properties.
13722 (get_face_from_cursor_pos): Use it.
13723 (compute_face_at_iterator_position): Use it.
13724 (next_element_from_buffer): Use it.
13725
13726 * dispnew.c (scrolling_window): Decrement run's y-position
13727 when extending it backwards.
13728
13729 * xterm.c (do_line_dance): Don't ever copy more than window height.
13730
137311998-01-01 Gerd Moellmann <gerd@acm.org>
13732
13733 * xdisp.c (redisplay_window): Cursor motion in unchanged
13734 matrix---use MATRIX_ROW_.*_IN_MIDDLE_OF_CHAR_P.
13735 (init_iterator_to_next_row_start): Special handling of lines
13736 ending in middle of char removed.
13737 (hscroll_windows): Hscroll windows only if window_end_valid is not
13738 nil.
13739 (try_window_reusing_current_matrix): Call hscroll_windows.
13740 (init_iterator_to_row_start): Initialize iterator for display
13741 starting at a position given by a glyph_row->start.
13742 (redisplay_window): Don't use vmotion because it gives wrong
13743 results if lines are continued and variable width fonts are used.
13744
427ec082 13745 * dispextern.h (struct glyph_pos): New member dpvec_index.
26901792
DL
13746 (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P): Test if row ends in the
13747 the middle of a character.
427ec082 13748 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Test if row starts in
26901792
DL
13749 the middle of a character.
13750
13751 * xdisp.c (set_iterator_to_next): Increment it->dpvec_index, reset
13752 it.
13753 (next_element_from_display_vector): Use it->dpvec_index.
13754 (reseat_iterator): Reset it.
13755 (init_iterator): Reset it.
13756 (setup_iterator_dpvec_from_glyph_pos): Set up it->dpvec and
13757 it->pos.dpvec_index from a glyph_pos structure.
13758 (init_iterator_from_glyph_pos): Call the function above.
13759 (reseat_iterator_to_glyph_pos): Ditto.
13760
13761 * dispnew.c (direct_output_forward_char): Don't use this method at
13762 overlay boundaries or near invisible text.
13763 (direct_output_forward_char): Step through glyph row to find
13764 cursor position.
13765
427ec082 13766 * xterm.c (x_get_cursor_gc): Don't return cursor_gc for font ==
26901792
DL
13767 frame font if line height differs from font height.
13768
13769 * xdisp.c (set_iterator_to_next): Renamed from
13770 move_iterator_forward to avoid confusion with other move_.*
13771 functions.
13772
13773 * dispextern.h (FACE_RELIEF_P): Renamed from FACE_3D_P.
13774
137751997-12-31 Gerd Moellmann <gerd@acm.org>
13776
13777 * xterm.c (x_get_cursor_gc): Renamed from x_cursor_gc to use the
13778 same naming convention as for other GC functions.
13779 (draw_glyphs): Don't fill background when drawing a cursor and
13780 font height is less than line height.
13781
137821997-12-30 Gerd Moellmann <gerd@acm.org>
13783
13784 * xdisp.c (init_display_iterator.*): Renamed to shorter names
13785 init_iterator_.*.
13786
13787 * xdisp.c (move_iterator_forward): Restore it->len from
13788 it->dpvec_char_len if dpend reached.
13789 (get_next_display_element): Don't consume translated char
13790 prematurely.
13791 (display_line): Don't set this_.* variables if row is continued.
13792 (start_display): Move to start of continuation line if ending
13793 up at end of continued line.
13794
13795 * dispextern.h (struct display_iterator): New member dpvec_char_len.
13796
13797 * xdisp.c (move_iterator_in_display_line_to): Check TO_POS after
13798 checking TO_X and continuation lines.
13799 (get_last_unchanged_at_beg_row): If first_changed_pos is the end
13800 of a continued line, don't consider this line as unchanged because
13801 it may no longer be continued.
13802
138031997-12-29 Gerd Moellmann <gerd@acm.org>
13804
13805 * xdisp.c (try_window_id): Catch the case that moving over
13806 continuation lines moves first_unchanged_at_end_row to a row not
13807 displaying text.
13808
13809 * dispextern.h (struct glyph_row): New member
13810 continuation_lines_width. Member continuation_line_p removed.
427ec082 13811 (MATRIX_ROW_CONTINUATION_LINE_P): Non-zero if row displays a
26901792
DL
13812 continuation line.
13813 * xdisp.c (display_line): Set row->continuation_lines_width.
13814 (get_row_start_continuation_line_width): Set continuation lines
13815 width of iterator from continuation lines width of glyph row.
13816 (get_row_start_continuation_line_width): Make it inline.
13817 (set_window_cursor): Make it inline.
13818 (try_window_id): Use MATRIX_ROW_CONTINUATION_LINE_P.
13819 (Fdump_redisplay_state): Ditto.
427ec082 13820
26901792
DL
13821 * dispnew.c (update_window_line): Use MATRIX_ROW_CONTINUATION_LINE_P.
13822 * xterm.c (x_draw_row_bitmaps): Use MATRIX_ROW_CONTINUATION_LINE_P.
13823
13824 * xdisp.c (try_window_id): Set it.hpos and it.current_x to zero
13825 after determining the continuation lines width for
13826 last_unchanged_at_beg_row.
13827
13828 * xterm.c (x_draw_row_bitmaps): Let overlay arrow have precedence.
13829
13830 * xdisp.c (display_mode_line): Handle 3D faces only on frames
13831 which support faces.
13832 (init_display_iterator): Ditto.
13833 (move_iterator_via_matrix): Skip over truncation glyph at the row
13834 start on terminal frames.
13835 (hscroll_windows): Choose hscroll margin differently for window
13836 system and terminal frames.
13837
138381997-12-28 Gerd Moellmann <gerd@acm.org>
13839
13840 * xdisp.c (hscroll_windows): Change hscroll of windows.
13841 (redisplay_internal): Call it.
13842
427ec082 13843 * dispnew.c (direct_output_for_insert): Give up if a glyph
26901792
DL
13844 doesn't fit completely on the line.
13845 (direct_output_forward_char): Give up for non-ASCII chars.
13846 (direct_output_forward_char): Set redisplay_performed_directly_p.
13847
13848 * dispextern.h (struct display_iterator): Make first_visible_x
13849 and last_visible_x ints; this is for very long truncated lines.
13850
13851 * xdisp.c (move_iterator_in_display_line_to): Separate check for
13852 MOVE_X_REACHED only if it->nglyphs == 0. This fixes cursor
13853 positioning problems with the mouse.
13854 (move_iterator_in_display_line_to): Truncate lines if it->current_x
13855 >= it->last_visible_x instead of >.
13856 (display_line): Ditto.
13857
13858 * xterm.c (draw_glyphs): Draw rectangles if font could not be
13859 loaded.
13860 (XTproduce_glyphs): Calculate pixel_width for composite chars and
13861 non-ASCII chars differently. Always produce 1 glyph for composite
13862 chars. If font not found, use CHARSET_WIDTH to calculate width of
13863 non-ASCII chars.
13864 (x_get_char_font_and_encoding): Return null if font could not be
13865 loaded. Reset font to null if fontset could not be loaded.
13866 (draw_glyphs): Fill background if font not found.
13867 (draw_glyphs): Unused parameter just_foreground_p removed. New
13868 parameter composite_glyph.
13869 (draw_glyphs): Use enumeration for parameter hl.
427ec082 13870 (draw_glyphs): Pass a display area relative x-position to
26901792
DL
13871 draw_glyphs when calling it recursively for composite chars.
13872
138731997-12-27 Gerd Moellmann <gerd@acm.org>
13874
13875 * xterm.c: Patches from handa.etl.go.jp integrated.
13876 (draw_glyphs): Don't rely on x_get_char_font_and_encoding to
13877 find a font_info.
13878
13879 * xdisp.c (move_iterator_in_display_line_to): Check to_x
13880 for nglyphs == 1.
13881
13882 * xterm.c (x_draw_relief): Draw relief lines.
13883 (draw_glyphs): Call x_draw_relief.
13884
138851997-12-26 Gerd Moellmann <gerd@acm.org>
13886
13887 * xfns.c (x_make_gc): Create relief GC's.
13888
13889 * widget.c (create_frame_gcs): Create GC's for relief drawing.
13890 (setup_frame_gcs): Initialize them.
13891 (EmacsFrameDestroy): Free them.
13892
427ec082 13893 * xdisp.c (try_window_id): Get continuation lines width if
26901792
DL
13894 last_unchanged_at_beg_row is continued or a continuation line.
13895 (move_iterator_via_matrix): Don't do it for mini-buffer windows.
427ec082 13896 (redisplay_window): Case point has changed, and it has not
26901792
DL
13897 moved off the frame. Don't increment row if PT equals the row
13898 end if the row ends in ZV.
13899
13900 * xterm.c (x_draw_row_bitmaps): New function to draw bitmaps.
13901 (expose_line): Call it.
13902 (x_after_update_window_line): Call it.
13903
13904 * xdisp.c (display_line): Reset continuation_lines_width when ZV
13905 reached.
13906
13907 * xterm.c (x_after_update_window_line): Draw continuation line
13908 bitmap.
13909
13910 * dispnew.c (update_window_line): Call
13911 after_update_window_line_hook when row's continuation_line_p
13912 changes.
13913
13914 * xterm.c (draw_bitmap): Draw new bitmap CONTINUATION_LINE_BITMAP.
13915
13916 * xdisp.c (display_line): Handle continued lines on window system
13917 frames differently since continuation glyphs are not displayed.
13918 (move_iterator_in_display_line_to): Ditto.
13919 (move_iterator_in_display_line_to): Take the mini-buffer prompt
13920 into account.
13921 (move_iterator_vertically_backward): Handle dy == 0 specially.
13922 (redisplay_window): Catch the case of small windows when
13923 recentering where moving back window_height/2 moves us beyond the
13924 top of the display area of the window.
13925
139261997-12-18 Gerd Moellmann <gerd@acm.org>
13927
13928 * xdisp.c (move_iterator_vertically_backward): Unused parameter
13929 dvpos removed.
13930
139311997-12-17 Gerd Moellmann <gerd@acm.org>
13932
13933 * dispnew.c (direct_output_forward_char): Correct new cursor
13934 x-position.
13935
139361997-12-16 Gerd Moellmann <gerd@acm.org>
13937
13938 * xterm.c (x_after_update_window_line): Remove unused parameters.
13939 (XTclear_end_of_line): Clear to display_height instead of
13940 display_height - 1.
13941
13942 * dispnew.c (set_frame_matrix_frame): Make it INLINE.
427ec082 13943 (update_window_line): Call after_update_window_line_hook if
26901792
DL
13944 rows have different y-positions, or different height.
13945
139461997-12-14 Gerd Moellmann <gerd@acm.org>
13947
13948 * frame.h (FRAME_MODE_LINE_PIXEL_HEIGHT): Removed.
13949
13950 * window.c (coordinates_in_window): Call frame_mode_line_height.
13951
13952 * xterm.c (x_draw_3d_border): Removed.
13953 (x_draw_row_borders): Removed.
13954
13955 * dispnew.c (update_window): References to
13956 FRAME_MODE_LINE_BORDER_WIDTH removed.
13957
13958 * xterm.h (FRAME_MODE_LINE_BORDER_WIDTH): Removed.
13959 (FRAME_MODE_LINE_HEIGHT): Removed.
13960
13961 * xterm.c (draw_3d_borders_p): Removed.
13962 (draw_glyphs): Ditto.
13963 (XTwrite_glyphs): Ditto.
13964 (expose_line): Ditto.
13965 (x_initialize): Ditto.
13966
13967 * dispextern.h (WINDOW_DISPLAY_MODE_LINE_HEIGHT): Call
13968 frame_mode_line_height.
13969
13970 * term.c (frame_mode_line_height): Get the pixel height of a
13971 frame's mode line.
13972 (frame_mode_line_height_hook): Hook to implement system dependent
427ec082
SS
13973 versions.
13974
26901792
DL
13975 * xterm.c (x_initialize): Set the hook.
13976 (XTframe_mode_line_height): X version of frame_mode_line_height.
13977
13978 * xdisp.c (echo_area_display): Call gobble_input to flush the X
13979 output buffer.
13980 (display_string): Don't add right truncation mark if line ends in
13981 padding space.
13982 (init_display_iterator): If called with modeline_p non-zero, set
13983 face_id to 1, which is the id of the mode line face.
13984
13985 * keyboard.c (cmd_error_internal): Write to stderr if selected
13986 frame is Vterminal_frame under X. This is the case when a font
13987 cannot be loaded when Emacs starts. Replace test for
13988 FRAME_MESSAGE_BUF with test for glyphs_initialized_p.
13989
13990 * xfaces.c (compute_overlay_string_char_face): Compute the
13991 face of a character in an overlay string.
13992 * xterm.h (compute_overlay_string_char_face): Prototype.
427ec082 13993 * xdisp.c (compute_face_at_iterator_overlay_string_position):
26901792
DL
13994 Use it.
13995
13996 * xdisp.c (set_iterator_to_next_overlay_string): Formerly
13997 set_iterator_to_next_overlay.
13998 (struct overlay_entry): Structure used to sort overlay strings.
13999 (compare_overlay_entries): Compare overlay strings.
14000 (load_iterator_with_overlay_strings): Load a chunk of overlay
14001 strings.
14002 (get_overlay_strings_at_iterator_position): Call it.
14003 (next_element_from_overlay_string): Set it->object to the overlay
14004 string. Prepare for setting it->position to a string position.
14005 (get_overlay_strings_at_iterator_position): Renamed from
14006 get_overlays_at_iterator_position.
14007 (setup_iterator_overlay_strings_from_glyph_pos): Changed to load
14008 chunks of overlay strings.
14009 (load_overlay_strings): Renamed from load_iterator_overlay_strings.
14010
14011 * dispextern.h (struct display_iterator): New vector
14012 overlay_strings and new member n_overlay_strings---formerly
427ec082
SS
14013 overlays and n_overlays.
14014 (struct glyph_pos): Remove after_string_p; overlay_index
26901792
DL
14015 renamed to string_index.
14016
140171997-12-13 Gerd Moellmann <gerd@acm.org>
14018
14019 * xdisp.c (copy_iterator): Increment n_iterator_overlay_vectors
14020 when allocating a vector.
14021 (release_iterator): Removed.
14022 (restore_iterator): Removed.
14023 (copy_iterator): Removed.
14024
140251997-12-08 Gerd Moellmann <gerd@acm.org>
14026
14027 * xdisp.c (redisplay_window): Use make_empty_enabled_row for
14028 clearing a mini-buffer window that is not active.
14029 (redisplay_window): Do not scroll one line too early when last
14030 window line is completely visible.
14031 (init_display_iterator): Leave some room to display the cursor
14032 after the last glyph on a continued line.
14033
14034 * xterm.h (struct x_output): trunc_area_extra renamed
14035 flags_areas_extra.
14036 (FRAME_X_FLAGS_AREA_WIDTH): Renamed from FRAME_X_TRUNC_WIDTH.
14037
14038 * dispnew.c (update_window_line): Call
14039 after_update_window_line_hook when current row is not enabled
14040 which is the case after a frame has been cleared.
14041
14042 * xdisp.c (display_mode_line): Reset row flags for truncation
14043 on right side for the mode line.
14044
14045 * xterm.c (bitmap_type): Type of bitmap to display in flags
14046 area of frame.
14047 (x_after_update_window_line): Use the enum.
14048 (draw_bitmap): Ditto.
14049
140501997-12-07 Gerd Moellmann <gerd@acm.org>
14051
14052 * xterm.c (x_clip_to_row): Include width of both flag areas.
14053 (do_line_dance): Ditto.
14054 (expose_window_tree): Ditto.
14055 * dispnew.c (update_window_line): Call
14056 after_update_window_line_hook for right truncation and continuation.
14057 * xdisp.c (init_display_iterator): Don't subtract width of
14058 continuation glyphs for window-based redisplay.
14059 * xterm.c (draw_bitmap): Draw continuation bitmap.
14060 * widget.c (set_frame_size): Double trunc_area_extra.
14061 (EmacsFrameSetCharSize): Ditto.
14062 * xfns.c (x_figure_window_size): Ditto.
14063 * xterm.c (x_set_window_size): Ditto.
14064 (x_after_update_window_line): Draw right truncation mark.
14065
14066 * xterm.c (draw_glyphs): Bug fix buffer overrun.
14067
14068 * window.h: Include blocker around dispextern.h removed.
14069
14070 * eval.c (Feval): Check interrupt_input_block == 0.
427ec082 14071
26901792
DL
14072 * dispextern.h (struct display_iterator): Former ovstr made a
14073 Lisp_Object overlay_string. New next_ovstr_face_check_pos and
14074 next_ovstr_invisble_check_pos; check at these positions for
14075 face changes and changes in invisible text property.
14076 (struct glyph_pos): Former ovlen now overlay_string_index.
14077
14078 * xdisp.c (setup_iterator_overlays_from_glyph_pos): Set
14079 overlay_string.
14080 (set_iterator_to_next_overlay_string): Set overlay_string and
14081 pos.overlay_string_index.
14082 (get_overlays_at_iterator_position): Use overlay_string and
14083 overlay_string_index.
14084 (next_element_from_overlay_string): Use overlay_string and
14085 overlay_string_index.
14086 (move_iterator_forward): Increment overlay_string_index.
14087 (try_window_id): Use overlay_string and overlay_string_index.
14088 (move_iterator_forward): At end of dpvec, maybe use method
14089 next_element_from_overlay_string for the case a character from an
14090 overlay string was translated via a display table.
14091 (reseat_iterator_to_string): Take a Lisp string.
14092 (display_string): Pass a Lisp string to reseat_iterator_to_string.
14093 (compute_face_at_iterator_overlay_string_position): Compute face
14094 based on text properties for an overlay string.
14095 (next_element_from_overlay_string): Check invisible and face text
14096 properties.
178c5d9c 14097
26901792
DL
14098 (set_iterator_to_next_overlay_string): Restore face id before
14099 overlay strings when no more overlay strings are found to return.
14100 Initialize next_ovstr_.*check_pos for each new overlay string
178c5d9c 14101
bb6677a8
GM
14102 A line in the following paragraph was garbled for an unknown
14103 reason. It couldn't be fully reconstructed.
178c5d9c 14104
bb6677a8 14105 (compute_base_face): Made public.
26901792
DL
14106 (merge_face_list): Ditto.
14107 (intern_computed_face): Ditto.
14108
427ec082 14109 * xdisp.c (redisplay_window): Cursor movement in unchanged
26901792
DL
14110 window if PT > w->last_point. Goto try_to_scroll if bottom Y
14111 of row is > instead of >= last_y.
14112
14113 * buffer.h (overlays_at): Function prototype.
14114
14115 * xdisp.c (reseat_iterator_to_string): Clear iterator position.
14116 * dispextern.h (GET_NEXT_DISPLAY_ELEMENT): Removed.
14117
427ec082 14118 * xdisp.c (release_iterator): Release dynamically allocated
26901792
DL
14119 memory of a display_iterator.
14120 (copy_iterator): Copy an iterator.
14121 (restore_iterator): Restore an iterator from a backup copy.
14122 (global): Use the functions above.
14123 * window.c (Fpos_visible_in_window_p): Call release_iterator.
14124 * dispnew.c (direct_output_for_insert): Call release_iterator.
14125
14126 * dispextern.h (struct display_iterator): Allocate overlays
14127 vector dynamically.
14128
141291997-12-06 Gerd Moellmann <gerd@acm.org>
14130
14131 * Makefile.in (window.o): Depends on dispextern.h.
14132
14133 * buffer.c (overlays_at): Make it work when extending vectors
14134 and an initial vector of zero size.
14135
14136 * xdisp.c (set_iterator_to_previous_visible_line_end): Renamed
14137 from set_cursor_to_previous_visible_line_end.
14138 (set_iterator_to_next_visible_line_start): Renamed from
14139 set_cursor_to_next_visible_line_end.
14140 (set_next_iterator_stop_pos): Renamed from set_next_stop_pos.
14141 (compute_face_at_iterator_position): Renamed from
14142 compute_cursor_face.
14143 (set_iterator_to_next_overlay_string): Renamed from
14144 cursor_to_next_overlay_string.
14145 (get_overlays_at_iterator_position): Renamed from
14146 get_overlays_for_cursor.
14147 (reseat_iterator): Renamed from reseat_cursor.
14148 (setup_iterator_overlays_from_glyph_pos): Renamed from
14149 setup_overlays_from_pos.
14150 (init_string_iterator): Renamed from init_string_cursor.
14151 (get_next_display_element): Renamed from next_display_element.
14152 (move_iterator_forward): Renamed from advance_display_cursor.
427ec082 14153 (get_overlays_at_iterator_position): Allocate overlays vector
26901792
DL
14154 dynamically.
14155
14156 * xdisp.c: display_cursor renamed display_iterator.
14157 * dispextern.h: Ditto.
14158 * dispnew.c: Ditto.
14159
141601997-12-01 Gerd Moellmann <gerd@acm.org>
14161
14162 * window.c (mark_window_cursors_off): Function comment added.
14163 (window_topmost_p, window_rightmost_p): Removed because not used.
14164
141651997-11-30 Gerd Moellmann <gerd@acm.org>
14166
14167 * emacs.c (main): Function prototypes removed in profiling code.
14168 Use safe_bcopy as start of text.
14169
14170 * dispnew.c (update_frame_line): update_line -> update_frame_line;
14171 mirrored_make_current -> make_current.
14172
14173 * xdisp.c: (store_frame_title_char): New function to store a
14174 single character for the frame title with re-allocation of
14175 frame_title_buf.
14176 (init_xdisp): Intialize frame_title_.* variables to null.
14177
14178 * dispnew.c (quit_error_check): Removed.
14179
14180 * eval.c (Fsignal): Call to quit_error_check removed.
14181 * keyboard.c (quit_throw_to_read_char): Ditto.
14182
141831997-11-23 Gerd Moellmann <gerd@acm.org>
14184
14185 * xfaces.c (Fset_face_attribute_internal): Allow nil relief
14186 to mean a zero relief.
14187
26901792
DL
141881997-11-19 Gerd Moellmann <gerd@acm.org>
14189
14190 * dispnew.c (new_glyph_matrix): Increment glyph_matrix_count
14191 unconditionally.
14192 (glyph_matrix_count, glyph_pool_count): Define unconditionally.
14193 (free_glyph_matrix): Decrement glyph_matrix_count unconditionally.
14194 (check_glyph_memory): Define function body unconditionally.
14195
141961997-11-17 Gerd Moellmann <gerd@acm.org>
14197
14198 * dispnew.c (scrolling_window): Alternative version of this
14199 function removed.
14200
142011997-11-16 Gerd Moellmann <gerd@acm.org>
14202
14203 * dispnew.c (make_empty_enabled_row): Make an empty, enabled row
14204 of height CANON_Y_UNIT.
14205 * dispextern.h: Prototype for that function.
427ec082 14206 * xdisp.c (echo_area_display): Don't use display_string to
26901792
DL
14207 produce empty rows. Use make_empty_enabled_row instead.
14208
14209 * dispnew.c (scrolling_window): New version using diff-like
14210 algorithm activated.
427ec082 14211
26901792
DL
142121997-11-15 Gerd Moellmann <gerd@acm.org>
14213
14214 * dispnew.c (clear_current_matrices): Clear matrix of menu_bar_window
14215 (clear_desired_matrices): Ditto.
14216 (adjust_frame_glyphs_for_window_redisplay): Use FRAME_WINDOW_WIDTH
14217 for menu_bar_window.
14218
14219 * alloc.c (mark_object): Mark menu_bar_window of frames.
14220
14221 * xterm.c (XTupdate_window_end): Don't display cursor if
14222 pseudo_window_p.
14223
14224 * dispnew.c (adjust_frame_glyphs_for_window_redisplay): Don't
14225 set mini_p.
14226 (update_window): Don't set cursor if pseudo_window_p.
14227
14228 * dispextern.h (WINDOW_WANTS_MODELINE_P): Test pseudo_window_p.
14229
14230 * window.h (struct window): New flag pseudo_window_p set to
14231 1 for windows that aren't really part of the window tree, like
14232 menu_bar_window's of frames.
14233 * window.c (make_window): Initialize it.
14234 (replace_window): Ditto.
14235 * dispnew.c (adjust_frame_glyphs_for_window_redisplay): Ditto.
14236
14237 * frame.c (make_frame): Initialize menu_bar_window to nil.
14238
14239 * xterm.c (XTget_display_info): FACE_SHADOW_THICKNESS renamed
14240 FACE_RELIEF
14241
14242 * xfaces.c (copy_face): shadow_thickness -> relief.
14243 (face_eql): Ditto.
14244 (merge_faces): Ditto.
14245 (compute_base_face): Ditto.
14246 (Fset_face_attribute_internal): Ditto.
14247 * dispextern.h (struct face): Ditto.
14248
14249 * dispnew.c (update_frame): Update menu_bar_window of the frame if
14250 it is non-nil.
14251
14252 * xdisp.c (display_menu_bar): Display the menu bar in
14253 f->menu_bar_window if appropriate.
14254 (display_mode_line): Use MATRIX_MODE_LINE_ROW.
14255
14256 * dispnew.c (adjust_frame_glyphs_for_window_redisplay): Allocate
14257 dummy window and window matrices for f->menu_bar_window.
14258 (free_glyphs): Free the dummy window and its glyph matrices.
14259
14260 * frame.h (struct frame): New member menu_bar_window.
14261
142621997-11-09 Gerd Moellmann <gerd@acm.org>
14263
14264 * dispnew.c (scrolling_window): New version with diff-like
14265 algorithm.
14266
14267 * xdisp.c (try_window_reusing_current_matrix): If new_start >
14268 old_start always start displaying at start of
14269 first_row_to_display. The previous scheme failed if the last row
14270 was fully visible.
14271
14272 * dispnew.c (update_window): Remove cost calculations. Remove
14273 redundant preempt_count calculations.
14274
14275 * xterm.c (x_clip_to_row): Set clipping for non-text rows
14276 differently.
14277
14278 * dispnew.c (update_window): Use WINDOW_WANTS_MODELINE_P.
14279
427ec082 14280 * window.c (syms_of_window): Functions for marginal areas if
26901792
DL
14281 WITH_MARGINAL_AREAS is defined.
14282
427ec082 14283 * xdisp.c (try_window_reusing_current_matrix): Trace fprintf
26901792
DL
14284 removed.
14285
14286 * dispnew.c (scrolling): Call line_hash_code because hash values
14287 are not set in the frame matrix.
14288
14289 * xdisp.c (try_window_id): Fix scrolling for terminal frames.
14290 (redisplay_window): Check line_ins_del_ok before calling
14291 try_window_id.
14292 (try_window_reusing_current_matrix): Give up for terminal frames
14293 if window is not full width or we cannot insert/delete lines.
14294 (try_window_reusing_current_matrix): Fixed scrolling for terminal
14295 frames.
14296
14297 * alloc.c (mark_glyph_matrix): Bug fix - pass pointer to
14298 Lisp_Object to mark_object.
14299
14300 * xdisp.c (sync_frame_with_window_matrix_rows): Make frame and
14301 window rows have the same glyph pointers.
14302 (try_window_id): Call it.
14303
14304 * alloc.c (mark_glyph_matrix): Function to mark Lisp objects in
14305 a glyph matrix.
14306 (mark_object): Call it.
14307
14308 * xdisp.c (insert_left_trunc_glyphs): Use 0 object in glyphs for
14309 truncations.
14310 (display_line): Ditto.
14311 (display_line): Ditto for DISP_CONTINUATION.
14312 (display_line): Truncation on right: test current_x >
14313 last_visible_x.
14314 (skip_in_display_line_to): Ditto.
14315 (skip_via_matrix): Stop skipping in glyph row at face extending
14316 glyphs or at padding spaces.
14317
14318 * dispnew.c (fill_up_glyph_row_with_spaces): Comment extended.
14319
14320 * xdisp.c (display_line): Use glyph->object == 0 for padding
14321 glyphs.
14322 (redisplay_window): Don't let cursor move over padding
14323 spaces.
14324
14325 * dispextern.h (struct glyph): Fix comment for object.
14326
143271997-11-08 Gerd Moellmann <gerd@acm.org>
14328
14329 * dispextern.h (WINDOW_WANTS_MODELINE_P): Non-zero if a window
14330 has a mode line.
14331 * xdisp.c (redisplay_window): Use it.
14332 (display_mode_line): Check that window wants mode line.
14333
143341997-11-03 Gerd Moellmann <gerd@acm.org>
14335
14336 * xdisp.c (display_menu_bar): Enable menu bar rows.
14337
14338 * xterm.c (x_draw_hollow_cursor): X positions based on text area.
14339 (x_erase_phys_cursor): Ditto.
14340 (x_draw_bar_cursor): Ditto.
14341
143421997-11-02 Gerd Moellmann <gerd@acm.org>
14343
14344 * dispnew.c (update_marginal_area): Update a marginal area.
14345 (update_text_area): Update text area.
14346 (update_window_line): Call both.
14347
14348 * xterm.c (XTclear_end_of_line): Translate coordinates area
14349 dependent.
14350
14351 * dispnew.c (updated_area): Row area being updated in
14352 update_window_line.
14353 (update_window_line): Set it.
14354 (update_marginal_area): Clear to end of line if not in text area.
14355
14356 * window.c (Fset_window_margins): Increment
14357 windows_or_buffer_changed. Adjust glyphs.
14358
14359 * dispextern.h (WINDOW_TEXT_TO_FRAME_PIXEL_X): Convert text
14360 area X coordinates to frame coordinates.
427ec082 14361 (WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH): Width of left marginal area.
26901792
DL
14362 (WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH): Same for right area.
14363 (WINDOW_DISPLAY_TEXT_AREA_PIXEL_WIDTH): Same for text area.
14364
14365 * xterm.c (draw_glyphs): Use text area width as display width.
14366
14367 * xdisp.c (init_display_info): Subtract widths of marginal areas
14368 from last_visible_x.
14369
14370 * alloc.c (mark_object): Mark objects in glyphs only if they are
14371 overlays. Mark only if current_matrix != 0. Activate the code.
14372
14373 * window.c (Fset_window_margins): Set margins.
14374 (Fwindow_margins): Return margin area widths.
14375 (syms_of_window): Add defsubr's.
14376
14377 * window.h (struct window): left_margin_width, right_margin_width.
14378
14379 * xfns.c (x_set_trunc_area_width): Set truncation pixel width
14380 and cols.
14381
14382 * frame.h (FRAME_TRUNC_COLS): Number of columns occupied by
14383 truncation/overlay arrow area.
14384 (struct frame): trunc_area_pixel_width, and _cols.
14385
14386 * window.c (Fsplit_window): Use it.
14387
14388 * window.c (Fsplit_window): Set cursor vpos to -1 after
14389 splitting.
14390 (Fsplit_window): SUbtract/add FRAME_TRUNC_WIDTH for horizontally
14391 split windows.
14392
14393 * dispnew.c (set_window_cursor_after_update): Accept out
427ec082 14394 of bounds cursor positions.
26901792
DL
14395
14396 * xdisp.c (redisplay_internal): Check that after cursor motion
14397 within line, PT is on same line.
14398
14399 * dispextern.h (WINDOW_DISPLAY_PIXEL_WIDTH): Don't subtract
14400 FRAME_TRUNC_WIDTH.
14401
14402 * xterm.h (struct x_output): trunc_area_extra.
14403 (CHAR_TO_PIXEL_WIDTH): Add in trunc_area_extra.
14404 (PIXEL_TO_CHAR_WIDTH): Subtract it.
14405 * widget.c (set_frame_size): Set it.
14406 (EmacsFrameSetCharSize): Ditto.
14407 * xfns.c (x_figure_window_size): Ditto.
14408 * xterm.c (x_set_window_size): Ditto.
14409
14410 * dispnew.c (check_matrix_invariants): First try to check window
14411 ends (in #if 0).
14412
14413 * xdisp.c (try_window_reusing_current_matrix): Try window
14414 redisplay with different window start.
14415
144161997-11-01 Gerd Moellmann <gerd@acm.org>
14417
14418 * window.c (make_window): Set window_end_pos/vpos.
14419 (Fsplit_window): Zero last_cursor, window_end_valid.
14420 (Fset_window_buffer): Set window_end_vpos, zero last_cursor.
14421
14422 * dispnew.c (check_matrix_invariants): Check window_end_pos/vpos.
14423
144241997-10-31 Gerd Moellmann <gerd@acm.org>
14425
14426 * window.c (make_window): Initialize last_cursor.
14427 (replace_window): Ditto.
14428
144291997-10-29 Gerd Moellmann <gerd@acm.org>
14430
14431 * window.h: New member last_cursor.
14432 * dispnew.c (direct_output_for_insert): Set it.
14433 (direct_output_forward_char): Ditto.
14434 * xdisp.c (redisplay_internal): Ditto.
14435
144361997-10-28 Gerd Moellmann <gerd@acm.org>
14437
14438 * xdisp.c (redisplay_internal): Optimization 1 change partially
14439 reverted. Check this again later.
14440 (skip_via_matrix): Remove redundent test for
427ec082 14441 MATRIX_ROW_DISPLAYS_TEXT_P.
26901792
DL
14442
144431997-10-27 Gerd Moellmann <gerd@acm.org>
14444
14445 * dispnew.c (update_window_line): Call
14446 after_update_window_line_hook only for interesting constellations.
14447 (free_glyph_matrix): Fix memory leak.
14448
14449 * window.h: Include blocker WINDOW_H_INCLUDED, include
14450 dispextern.h.
14451 (struct window): phys_cursor_glyph as struct glyph. * window.c
14452 (make_window): Initialize it.
427ec082 14453 (replace_window): Ditto.
26901792
DL
14454 * dispnew.c (free_window_matrices): Remove freeing of
14455 phys_cursor_glyph.
14456 (check_matrix_invariants): Renamed from check_current_matrix_...
14457 * xterm.c: All references to phys_cursor_glyph changed.
14458
14459 * dispextern.h (DISPEXTERN_H_INCLUDED: New include blocker.
14460
14461 * xfaces.c: Comment update.
14462
14463 * window.h (struct window): Make phys_cursor_glyph a struct glyph
14464 pointer. Remove phys_cursor_ascent, descent, etc.
14465 * dispnew.c (free_window_matrices): Free it.
14466 * window.c (make_window): Allocate it.
14467 (replace_window): Ditto.
14468 * xterm.c (x_draw_phys_cursor_glyph): Draw it.
14469 (x_display_and_set_cursor): Fill it.
14470 (x_phys_cursor_in_rect_p): Use it.
14471 (x_draw_hollow_cursor): Ditto.
14472 (x_draw_bar_cursor): Ditto.
14473 (x_erase_phys_cursor): Ditto.
14474
14475 * xdisp.c (skip_in_display_line_to): Use SET_INFO_FROM_CURSOR.
14476
14477 * xterm.c (XTget_display_info): Handle 3D facess.
14478 (draw_glyphs): Ditto.
14479
14480 * xdisp.c (Fdump_redisplay_state): Change interactive spec to "p".
14481
14482 * xfaces.c (Fset_face_attribute_internal): New face attribute
14483 shadow-thickness.
14484 (copy_face): Handle shadow_thickness.
14485 (face_eql): Ditto.
14486 (merge_faces): Ditto.
14487 (compute_base_face): Ditto.
14488
14489 * dispextern.h (struct display_cursor): New member start_of_3d_run_p.
14490 (struct display_info): Ditto.
14491 (SET_INFO_FROM_CURSOR): Transfer it to display_info.
14492 * xdisp.c (compute_cursor_face): Set it.
14493 (advance_display_cursor): Clear it.
14494
14495 * xdisp.c (init_string_cursor): Initialize face_id to -1.
14496 (init_string_cursor): Init face_id to zero.
14497
14498 * dispextern.h (struct face): New member shadow_thickness.
14499
427ec082 14500 * xdisp.c (compute_cursor_face): Set limit for text property
26901792
DL
14501 search to 100.
14502
14503 * dispnew.c (update_window_line): Try to resynch with current line
14504 to prevent mode line flickering.
14505
145061997-10-26 Gerd Moellmann <gerd@acm.org>
14507
427ec082 14508 * dispnew.c (set_window_cursor_after_update): React again
26901792
DL
14509 on cursor_in_echo_area >= 0.
14510
14511 * xdisp.c (echo_area_display): Clear desired matrix before
14512 displaying into it.
14513 (display_menu_bar): Clear glyph row instead of hoping it is not
14514 enabled. This is safer.
14515
14516 * dispnew.c (check_current_matrix_invariants): Check only
14517 visible rows.
14518
14519 * xdisp.c (try_window_id): Handle window end setting in case of
14520 display to end of window, but only non-text lines displayed.
14521
14522 * dispnew.c (check_current_matrix_invariants): Check nrows for zero.
14523 (check_current_matrix_invariants): Check used counts.
14524
14525 * Revisiob v114.
14526
14527 * dispnew.c (scrolling): Use hash codes from rows.
14528
14529 * xdisp.c (Fdump_redisplay_state): Dump current matrix.
14530
14531 * dispnew.c (scrolling_window): Invalidate conflicting runs.
14532
145331997-10-25 Gerd Moellmann <gerd@acm.org>
14534
14535 * dispextern.h (struct glyph_matrix): Flag no_scrolling_p.
14536 * dispnew.c (update_window): Use it.
14537 (clear_glyph_matrix): Clear it.
14538 * xdisp.c (try_window_id): Set it.
14539
14540 * dispextern.h (struct glyph_row): New flag ends_at_zv_p.
14541
14542 * xdisp.c (redisplay_internal): Increment glyph positions differently.
14543
14544 * dispextern.h: More comments etc.
14545
145461997-10-24 Gerd Moellmann <gerd@acm.org>
14547
14548 * dispnew.c (set_window_cursor_after_update): Set cursor
14549 for cursor_in_echo_area == 0 to (0, 0).
14550
14551 * dispextern.h (struct glyph_row): New flags continuation_line_p
14552 and displays_text_p.
14553 (MATRIX_ROW_DISPLAYS_TEXT_P): Use displays_text_p.
14554 * xdisp.c (display_line): Set them.
14555 (try_window_id): Move to start of continuation line to find out
14556 continuation_line_width.
14557 (first_unchanged_current_row): Don't retract row if continued,
14558 truncated etc.
14559
14560 * xterm.c: Map X coordinates.
14561
145621997-10-23 Gerd Moellmann <gerd@acm.org>
14563
14564 * dispnew.c (buffer_posn_from_coords): Translate X for right to
14565 left text.
14566
14567 * xdisp.c (display_line): Set right_to_left_p after clearing the row.
14568
14569 * xterm.c (XTclear_end_of_line): Respect right_to_left_p.
14570
f28eba7b 14571 * xdisp.c (try_window_id): Clear desired matrix if not successul.
26901792
DL
14572
14573 * xdisp.c (try_window_id): Call update_window_begin_hook/end_hook.
14574
14575 * dispnew.c (update_window_begin_hook, update_winodw_end_hook):
14576 Set this to functions to be called before/after window updates.
14577 (direct_output_for_insert): Call them.
14578 (update_window): Ditto.
14579 (update_frame): Call update_begin/ update_end for windows.
14580
14581 * xterm.c (XTupdate_window_begin): Called before window updates.
14582 (XTupdate_end): Called after window updates.
14583 (x_initialize): Set hooks to above.
14584
14585 * xdisp.c (init_display_info): Initialize c and len of
14586 display_info.
14587
14588 * xterm.c (x_get_char_font_and_encoding): Bug fix. Don't load
14589 fonts more than once.
14590
145911997-10-22 Gerd Moellmann <gerd@acm.org>
14592
14593 * xdisp.c (display_line): Handle most common case of current_x <
14594 last_visible_x separately.
14595
14596 * dispextern.h (display_element_type): DISP_ELLIPSIS removed.
14597
14598 * dispnew.c (update_window_line): Compare pixel widths of glyphs
14599 so that face extending space doesn't compare equal to normal space
14600 with same face.
14601
14602 * xdisp.c (display_line): Make sure we have a position for
14603 a line end in an otherwise blank line if face is extended.
14604
14605 * dispnew.c (direct_output_for_insert): Increment row end position.
14606
427ec082 14607 * window.c (Fpos_visible_in_window_p): Use old meaning of
26901792
DL
14608 window_end_pos.
14609
14610 * xdisp.c (init_display_cursor_from_glyph_pos): New.
14611
14612 * dispextern.h (MATRIX_ROW_FIRST_POS): Use row start.
14613
14614 * dispnew.c (increment_glyph_row_buffer_positions): Adjust
14615 start and end positions in rows.
14616 (increment_glyph_row_buffer_positions): Stop adjusting at
14617 glyphs with positions <= 0.
14618
14619 * dispextern.h (struct glyph_pos): Structure desribing a text
427ec082 14620 position including position in overlay.
26901792
DL
14621 (struct glyph_row): Use it for start and end positions.
14622 (struct display_cursor): Use it.
14623 * xdisp.c: Use it.
14624 (display_line): Set row start and end positions.
14625
14626 * dispnew.c (copy_row_except_pointers): Use bcopy and struct
14627 assignment.
14628
146291997-10-21 Gerd Moellmann <gerd@acm.org>
14630
14631 * dispnew.c (update_window): Add scrolling_window again. It's
14632 necessary for scroll_step != 0.
14633
14634 * xdisp.c (redisplay_window): Use vmotion for scroll_step
14635 scrolling.
14636
14637 * xdisp.c (last_unchanged_current_row): Use window_end_vpos.
14638
14639 * xterm.c (XTupdate_end): Flush only for messages.
14640
14641 * xdisp.c (try_window_id): Assert last_unchanged_row >=
14642 first_unchanged_row.
14643
14644 * xterm.c (XTupdate_end): Flush if miniwindow.
14645
14646 * dispnew.c (matrix_row_last_pos): New function.
14647 * dispextern.h (MATRIX_ROW_LAST_POS): Call it.
427ec082 14648 Large comment moved to xdisp.c.
26901792
DL
14649
14650 * xdisp.c (redisplay_window): Bug fix: PT set to value > Z.
14651 (skip_via_matrix): Check window_end_valid instead of
14652 display_completed.
14653
14654 * dispnew.c (scroll_glyph_matrix_range): Bug fix.
14655 (update_window): scrolling_window commented out. It has negative
14656 effect most of the time.
14657
14658 * xdisp.c (try_window_id): Correct parameters to
14659 scroll_glyph_matrix_range.
14660
427ec082 14661 * xterm.c (XTupdate_end): XFlush commented out.
26901792
DL
14662
14663 * window.h: Comments for window_end_pos/vpos.
14664
f28eba7b 14665 * xdisp.c (skip_to): Assert current_buffer is the buffer
26901792
DL
14666 of the window in which we are skipping.
14667
14668 * dispnew.c (update_window_line): Optimized clear_end_of_line.
14669
14670 * xterm.c (draw_glyphs): Bug fix. Return window relative X
14671 reached.
14672
146731997-10-20 Gerd Moellmann <gerd@acm.org>
14674
14675 * dispextern.h (MATRIX_ROW_LAST_POS): Go back one glyph if this is
14676 a face extending glyph.
14677
427ec082 14678 * xdisp.c (try_window_id): Check if point will appear.
26901792
DL
14679 (set_cursor_from_row): Set cursor position from a glyph row.
14680
14681 * dispnew.c (update_window_line): Write entire line if hash
14682 codes of lines differ.
14683
14684 * dispextern.h (MATRIX_ROW_EXTENDS_FACE_P): Value is non-zero
14685 if glyph row has an infinite width glyph at its end.
14686
14687 * xdisp.c (last_unchanged_current_row): Respect partially visible
14688 lines when looking for the last row displaying text.
14689 (try_window_id): Handle partially visible lines better.
14690
146911997-10-19 Gerd Moellmann <gerd@acm.org>
14692
14693 * dispnew.c (update_window): Remove unused variable.
14694 (update_window_line): Simplified.
14695
14696 * xterm.c (x_get_char_font_and_encoding): Handle most common
14697 case at the beginning.
14698
14699 * xdisp.c (advance_display_cursor): Dispatch on method and
14700 order if statements by expected call frequency. Fixed unclosed
14701 comment.
14702
14703 * xdisp.c (try_window_id): New implementation.
14704
14705 * dispnew.c (increment_glyph_row_buffer_positions): Capture
14706 rows displaying a line end, only.
14707
147081997-10-18 Gerd Moellmann <gerd@acm.org>
14709
14710 * window.c (Fpos_visible_in_window_p): Remove use of window_end_vpos.
14711
147121997-10-14 Gerd Moellmann <gerd@acm.org>
14713
14714 * xdisp.c (display_line): Mark empty lines not corresponding to
14715 text with position -1.
14716
14717 * xterm.c (x_erase_phys_cursor): Don't bother to erase cursor if
14718 not within window matrix bounds.
14719
14720 * dispextern.h (struct display_cursor): New member REGION_SHOWING_P.
14721 (struct display_info): NGLYPHS_TO_IGNORE removed.
14722 * xdisp.c: References to NGLYPHS_TO_IGNORE removed.
14723 * term.c: Ditto.
14724 * xterm.c: Ditto.
14725
14726 * xdisp.c (init_display_cursor): Set it.
14727 (display_line): Use it to set W->REGION_SHOWING.
14728
14729 * xdisp.c (skip_via_matrix): Check for overlay arrow.
14730
14731 * region-cache.h: functino prototypes with PROTO.
14732
14733 * dispnew.c (buffer_posn_from_coords): Use -1 as skip position.
14734
14735 * xdisp.c (skip_via_matrix): Check for rows that don't contain
14736 a position.
14737
427ec082 14738 * xterm.c (XTmouse_position): Calculate LAST_MOUSE_GLYPH
26901792
DL
14739 rectangle based on minimum character bounds.
14740
f28eba7b 14741 * keyboard.c (make_lispy_event): Mouse clicks; don't do frame
26901792
DL
14742 glyph position calculations.
14743 (make_lispy_movement): Use buffer_posn_from_coords and window
14744 relative coordinates.
14745
14746 * xterm.c (construct_mouse_click): Remove #if 0 case.
14747
14748 * dispextern.h (MATRIX_ROW_BOTTOM_Y): Return bottom pixel y of
14749 given row.
14750
427ec082
SS
14751 * xdisp.c (skip_via_matrix): Skip using current matrix if up to
14752 date.
26901792
DL
14753 (skip_to): Use it.
14754 (redisplay_window): Remove code skipping using current matrix.
14755
147561997-10-13 Gerd Moellmann <gerd@acm.org>
14757
14758 * xdisp.c (redisplay_window): Use available current matrix to
14759 skip faster when only point is moved withing the window.
14760
427ec082 14761 * intervals.c: Include stdio.h.
26901792
DL
14762 (find_interval): Trace to stderr to catch some nasty error
14763 that did not yet occur again with tracing.
14764 (set_point): Ditto.
14765
14766 * dispnew.c (shift_glyph_matrix): Experimental code for handling
14767 cursor positioning on partially visible lines.
14768 (set_window_cursor_after_update): Ditto.
14769
f28eba7b 14770 * dispextern.h (MATRIX_ROW_PARTIALLY_VISIBLE_P): Bug fix.
26901792
DL
14771
14772 * window.h (struct window): start_y removed.
14773
14774 * window.c (make_window): start_y removed.
14775 (replace_window): Ditto.
14776
427ec082 14777 * xdisp.c (last_max_ascent, last_max_descent): Ascent and
26901792
DL
14778 descent values of the last line processed by skip_to.
14779 (redisplay_window): Use them.
14780 (skip_to): Set them.
14781
14782 * dispextern.h (struct display_cursor): New member METHOD.
14783
14784 * xdisp.c: Use function member METHOD.
14785
14786 * xdisp.c (set_next_stop_pos): Determine next position at which to
14787 check for face properties, invisible text properties, and overlays.
14788 (compute_cursor_face): Use it.
14789 (get_overlays_for_cursor): Ditto.
14790 (reseat_cursor): Ditto.
14791 (next_display_element): Ditto.
14792
14793Sun Aug 24 08:50:52 1997 Gerd Moellmann <gerd@acm.org>
14794
14795 * termhooks.h: Some hooks with prototypes.
14796
14797 * term.c: Some hooks with function prototypes.
427ec082 14798
26901792
DL
14799 * xdisp.c (reseat_cursor): Additional argument force_p. Avoid
14800 computing face if possible.
14801
14802 * xdisp.c (next_display_element): Use face from glyph from display
14803 table only if != 0.
14804
14805 * emacs.c: FreeBSD headers for profiling removed.
14806
427ec082
SS
14807 * dispnew.c (direct_output_for_insert): Don't use PT-1 for
14808 display cursor, use DEC_POS instread.
26901792
DL
14809
14810 * xfaces.c (load_font): Use x_load_font to load fonts so that
427ec082 14811 all fonts are in the font table.
26901792
DL
14812 (unload_font): Don't XFreeFont.
14813
14814 * dispnew.c (row_equal_p): Compare ascent, descent and visible
14815 row height.
14816
14817 * xterm.c (draw_glyphs): Use 8-bit functions if possible.
14818 (x_erase_phys_cursor): Clear only visible part of row.
14819 (x_draw_bar_cursor): Set clipping.
14820 (x_draw_hollow_cursor): Ditto.
14821 (x_display_and_set_cursor): Remove clipping.
14822 (expose_window_tree): Take trunc border into account.
14823 (x_phys_cursor_in_rect_p): Test if phys_cursor intersects a rect.
14824 (expose_window): Use it.
14825
14826 * xdisp.c (display_string): Catch case that we are called with
d7d0dac0 14827 current_x already beyond max_x.
26901792
DL
14828 (global): Fix usage of FRAME_WINDOW_P <-> FRAME_WINDOW_REDISPLAY_P.
14829 (init_display_info): Subtract vertical border glyph from
d7d0dac0 14830 last_visible_x.
26901792
DL
14831
14832 * scroll.c (scrolling_window_1): Removed.
14833
14834 * dispnew.c (adjust_frame_glyphs): Split into two functions,
14835 based on redisplay method used.
14836 (adjust_frame_glyphs_for_frame_redisplay): Part for frame
14837 based redisplay.
14838 (adjust_frame_glyphs_for_window_redisplay): Part for purely
14839 window based redisplay.
14840
14841 * frame.h (FRAME_WINDOW_REDISPLAY_P): Changed to not depend
14842 on data structures.
14843
14844 * dispnew.c (adjust_glyph_matrix): Additional parameter W.
14845 Handle own storage for purely window based redisplay.
14846 (allocate_matrices_for_frame_redisplay): Formerly part of
427ec082 14847 allocate_matrices.
26901792
DL
14848 (allocate_matrices_for_window_redisplay): Ditto.
14849
14850 * dispextern.h (struct glyph_matrix): window_top_y,
14851 window_height.
14852
14853 * dispnew.c (allocate_matrices_for_window_redisplay): Detect
14854 and optimize some common cases of window changes.
14855
14856 * emacs.c (main): Remove own profiling code because 0.95 now
14857 has it in.
14858
14859Fri Aug 22 18:46:43 1997 Gerd Moellmann <gerd@acm.org>
14860
d7d0dac0 14861 * xterm.c (XTupdate_end): Draw horizontal border at right position.
26901792
DL
14862 (expose_window): Draw vertical border.
14863 (XTclear_end_of_line): Accept width <= 0 and height <= 0 but
14864 don't do anything.
14865
14866 * xdisp.c (redisplay_internal): Set update_mode_line if paused
14867 for non full width windows only if not window redisplay.
14868
14869 * dispnew.c (update_window_tree): Or paused_p return of called
14870 functions.
14871
14872 * xterm.c (x_display_and_set_cursor): Return if hpos/vpos outside
14873 of window.
14874
14875 * window.c (Fset_window_configuration): adjust_glyphs being
14876 called twice.
14877 (Fset_window_configuration): Set frame garbaged if not all
14878 leaf windows reused.
14879
148801997-08-21 Gerd Moellmann <gerd@acm.org>
14881
14882 * dispnew.c (clear_glyph_matrix): Additional argument specifiying
14883 that rows should really be cleared. Used for current matrices.
14884
d7d0dac0
SM
14885 * dispnew.c (scrolling_window): Bug fix.
14886 (line_dance_hook): Formerly line_dance_fn, take only one parameter.
26901792
DL
14887
14888 * dispextern.h (struct run): Remove current_vpos.
14889
14890 * xterm.c (do_line_dance): Only one parameter.
14891
f28eba7b 14892 * xdisp.c (display_line): Set continued_p.
26901792
DL
14893
14894 * dispextern.h (struct glyph_row): New flag continued_p.
14895 Fix truncated_on_left_p and truncated_on_right_p to be bits.
427ec082 14896 (struct glyph_row):
26901792
DL
14897
14898Thu Aug 21 14:37:34 1997 Gerd Moellmann <gerd@acm.org>
14899
14900 * xdisp.c (skip_vertically_backward): Avoid negative vpos values
14901 when calling skip_to for continued lines.
14902
14903 * dispnew.c (change_frame_size_1): Set frame garbaged.
14904
14905 * xterm.c (expose_window): Check enabled_p of rows.
14906
14907 * xdisp.c (redisplay_internal): Compare line heights before and
14908 now for redisplay optimization 2 (hit).
14909 (display_line): Set this_line_pixel_height.
14910
14911 * xterm.c (x_draw_row_borders): Use FRAME_MODE_LINE_HEIGHT height
14912 value.
14913 (x_clip_to_row): Use MATRIX_ROW_VISIBLE_HEIGHT. Simplified.
14914 (do_line_dance): Simplified and pixel corrected.
14915
14916 * dispnew.c (scrolling_window): Simplified.
14917
14918 * xterm.c (x_draw_3d_border): Inset rectangle by line width.
14919
14920 * dispnew.c (update_window): Add FRAME_MODE_LINE_BORDER_WIDTH
14921 to mode line row->x.
14922
14923Wed Aug 20 11:23:28 1997 Gerd Moellmann <gerd@acm.org>
14924
14925 * xterm.c (x_get_char_font_and_encoding): Don't let fontset
14926 override font of face.
14927 (draw_glyphs): Correct return value.
14928 (XTclear_end_of_line): Compare differently with output cursor
14929 position.
14930 (x_draw_hollow_cursor): 2 parameters, window and row.
14931
14932 * dispnew.c (update_window_line): If rows have different height
14933 or y, write entire line.
14934
f28eba7b 14935 * xdisp.c (compute_line_metrics): Reset max_ascent and max_descent
26901792
DL
14936 of info struct.
14937
427ec082 14938 * xfaces.c (Fset_face_attribute_internal): Don't call
26901792
DL
14939 frame_update_line_height.
14940 (merge_faces): Don't use default font if new font has different
14941 size.
14942
14943Tue Aug 19 14:38:05 1997 Gerd Moellmann <gerd@acm.org>
14944
14945 * xterm.c (x_display_and_set_cursor): Use FONT_WIDTH if width
d7d0dac0 14946 unknown. Some fonts have min_width zero.
26901792 14947 (draw_glyphs): Don't draw underlines to the end of the display
d7d0dac0 14948 line if face is merely extended to that point.
26901792 14949 (draw_glyphs): Don't assume background is filled if
d7d0dac0 14950 just_foreground_p but extending to end of line.
26901792
DL
14951
14952 * xterm.c (XTclear_end_of_line): Clip only to display_height - 1
14953 for partially visible last lines.
14954 (x_clip_to_row): Ditto.
14955 (x_clip_to_row): Clip to display_height-1 if y + line_height >
14956 display_height since line_height is really a line distance.
14957 (x_display_and_set_cursor): If cursor on padding glyph, use
14958 min_bounds pixel width.
14959
14960Mon Aug 18 09:39:18 1997 Gerd Moellmann <gerd@acm.org>
14961
14962 * xterm.c (x_clip_to_row): Height value was 1 too large.
14963 (XTclear_end_of_line): Clip to display area.
14964
14965 * xfns.c (x_figure_window_sizes): Add trunc border width
14966 to frame pixel width.
14967
14968 * xdisp.c (next_display_element): Don't display overlay strings
14969 within invisible text.
427ec082 14970 (skip_vertically_backward): Skip display lines.
26901792
DL
14971
14972Sat Aug 16 13:13:32 1997 Gerd Moellmann <gerd@acm.org>
14973
14974 * xdisp.c (x_consider_frame_titie): Don't pad with blanks.
14975
14976 * xdisp.c (next_display_element): Next invisible
14977 text check position computed differently.
14978
14979 * dispextern.h (struct display_cursor): last_invisible_text_pos
14980 and display_ellipsis_for_invisible_p removed.
14981
14982 * xdisp.c (next_display_element): Set last_invisible_text_pos
14983 to the last position at which invisible text was found. Don't
14984 decrement cursor.pos for newlines and cr with ellipsis. Set
427ec082 14985 dpvec for `...' due to invisible text directly.
26901792
DL
14986 (redisplay_internal): Don't assert that cursor is at PT after
14987 skip_to. It may be in invisible text.
14988
427ec082 14989 * keyboard.c (make_lispy_event): For mouse clicks, use
26901792
DL
14990 x_y_to_hpos_vpos.
14991
427ec082 14992 * xdisp.c (next_display_element): Call get_overlays_for_cursor when
26901792
DL
14993 next_overlay_pos is reached. Use limit cursor.pos + 100 when
14994 checking for invisible text.
14995
14996 * xterm.h (WINDOW_COL_PIXEL_X etc.) Removed.
14997
14998 * dispextern.h (WINDOW_TO_FRAME_HPOS/VPOS): Moved to dispnew.c
14999
d7d0dac0 15000 * xfns.c (x_contour_region): Use pixel coordinates from window
26901792
DL
15001 cursor instead of WINDOW_TO_FRAME_H/VPOS.
15002
15003 * dispextern.h (FRAME_TO_WINDOW_HPOS, FRAME_TO_WINDOW_VPOS):
15004 Removed.
15005
15006 * dispnew.c (frame_to_window_hpos, frame_to_window_vpos): Removed.
15007
15008 * xterm.c (x_y_to_hpos_vpos): Get hpos/vpos from window relative
15009 pixel coordinates.
15010 (note_mouse_highlight): Use it.
15011
15012 * xdisp.c (echo_area_display): Ignore calls for terminal frames
15013 under a window system.
15014
427ec082 15015 * dispnew.c (adjust_frame_glyphs): Call redraw_frame if
26901792 15016 necessary.
427ec082 15017 (update_window_line): Add width of face padding glyph to
26901792
DL
15018 displayed widths of rows.
15019
15020 * xterm.c (x_display_and_set_cursor): Set clipping after
15021 erasing cursor.
427ec082
SS
15022
15023 * window.c (Fset_window_configuration): Free only those
26901792
DL
15024 window matrices not reused.
15025 (get_leaf_windows): Build vector of leaf windows.
15026 Corrupted archive restored from v77.
15027
f28eba7b 15028 * xdisp.c (display_string): Stop at >= last_visible_x if truncating
26901792
DL
15029 like display_line does.
15030
15031 * xdisp.c (display_mode_line): Don't hscroll mode line.
15032
15033 * xterm.c (draw_glyphs): Wrong run_width computed for horiz. split
15034 windows.
15035 (x_scroll_bar_create): #3039 Clear area below scroll bar to remove
15036 garbage between mode lines when splitting windows horiz.
15037
15038 * dispnew.c (direct_output_for_insert): Bug fix.
15039
15040 * dispextern.h (struct display_cursor): New member string_length.
15041
15042 * xdisp.c (next_display_element): Return padding spaces.
f28eba7b 15043 (init_string_cursor): Take precision and field_width
26901792
DL
15044 (display_string): Use string cursor, skip over invisible text.
15045
15046Thu Aug 14 10:41:41 1997 Gerd Moellmann <gerd@acm.org>
15047
15048 * xterm.c (x_clip_to_row): Clip to partially visible lines.
15049 (x_display_and_set_cursor): Call it.
15050 (draw_glyphs): Call it
15051 (draw_bitmap): Call it.
15052
427ec082 15053 * dispnew.c (adjust_frame_glyphs): Optimize frame garbaging.
26901792
DL
15054 (allocate_leaf_matrix): Return flags.
15055 (row_equal_p): Compare enabled_p.
15056
15057 * xterm.c (x_erase_phys_cursor): Set phys_cursor_on_p to 0
15058 for type == -1.
15059
15060 * xterm.c (x_display_and_set_cursor): Bar cursor 1 pixel taller.
427ec082 15061 (draw_glyphs): Clip height one pixel taller.
26901792 15062
427ec082 15063 * dispnew.c (direct_output_for_insert): Give up for hscrolled
26901792
DL
15064 mini window.
15065
f28eba7b 15066 * xdisp.c (display_line): Don't scroll mini prompt.
26901792 15067
427ec082
SS
15068 * xdisp.c (echo_area_display): Call update_single_window if
15069 possible.
26901792
DL
15070
15071 * dispnew.c (update_window_line): Call scrolling_window.
f28eba7b 15072 (scrolling_window): Work on enabled desired lines only.
26901792
DL
15073 (update_single_window): Update a single window like update_frame
15074 does for all windows.
427ec082 15075 (update_window, update_window_tree): Additional argument
26901792
DL
15076 no_scrolling_p.
15077 (update_frame): Pass no_scrolling_p to update_window_tree.
15078 (update_window): Don't call scrolling_window if no_scrolling_p.
15079
15080 * xterm.c (x_erase_phys_cursor): Do nothing if type == -1.
427ec082
SS
15081 Erase under hollow cursor.
15082 (x_display_and_set_cursor): Do nothing if cursor glyph row
26901792
DL
15083 not enabled. Draw bar cursor 1 pixel smaller.
15084
f28eba7b 15085 * dispnew.c (adjust_frame_glyphs): Don't set frame garbaged
26901792
DL
15086 since update will follow soon.
15087
15088 * xdisp.c (echo_area_display): Unitialized variable.
15089
f28eba7b 15090 * xterm.c (draw_bitmap): Previously draw_truncation; draw
26901792
DL
15091 overlay arrow bitmap.
15092
f28eba7b 15093 * xdisp.c (display_line): For truncated lines, consider everything
427ec082 15094 up to the final \n as part of the line for cursor positioning.
26901792 15095
f28eba7b
SM
15096 * xterm.c (draw_truncation): Take FRAME_X_TRUNC_WIDTH into account.
15097 (x_after_update_window_line): Clear trunc marks.
26901792
DL
15098
15099 * xterm.h (FRAME_X_TRUNC_WIDTH).
15100
f28eba7b 15101 * frame.h (FRAME_TRUNC_WIDTH): Width of area at the left margin
26901792
DL
15102 of a window reserved for truncation mark.
15103
427ec082 15104 * dispextern.h: Take FRAME_TRUNC_WIDTH into account.
26901792
DL
15105
15106 * dispnew.c (update_window_line): Call after_update_windwo_line-
427ec082 15107 hook.
26901792
DL
15108
15109 * xdisp.c (display_line): Set overlay_arrow_p in row.
15110
15111 * dispextern.h (struct glyph_row): New flag overlay_arrow_p.
15112
15113 * xterm.c (x_after_update_window_line): Draw truncation marks.
15114
15115 * xdisp.c (display_line): Insert truncation for lines with
15116 current_x > 0.
15117
15118 * xterm.c (x_draw_row_borders): Convert y to frame coords.
15119 Correct y by 1.
15120 (x_display_cursor): Use default font width if width not
427ec082 15121 known.
26901792 15122
f28eba7b 15123 * xdisp.c (echo_area_display): Set row->y.
26901792
DL
15124
15125 * dispnew.c (set_window_cursor_after_update): Don't assume
15126 all rows are enabled.
15127
15128 * xdisp.c (skip_in_display_line_to): Test cursor.position instead
15129 of cursor.pos.
15130 (skip_in_display_line_to): Check cursor.position after call to
15131 next_display_element.
15132
427ec082 15133 * dispextern.h (CURSOR_AT_P): Test if cursor has reached
26901792
DL
15134 buffer position.
15135
15136 * xdisp.c (display_line): Set row->y here.
15137 (skip_in_display_line_to): Test for to_pos after all glyphs
15138 have been added to hpos so that hpos is at the end of all
15139 glyphs for to_pos.
15140 (start_display): Remove assertion.
15141
d7d0dac0 15142 * dispnew.c (direct_output_forward_char): Bug fix, = instead of ==.
26901792
DL
15143 (update_window): Don't set row->y here.
15144
15145 * xdisp.c (next_display_element): Don't translate control chars
15146 from display table entries.
15147
427ec082 15148 * dispnew.c (direct_output_for_insert): Set cursor before
26901792
DL
15149 update end to prevent cursor flickering. Revert changes to
15150 setting cursor.endpos.
15151
15152Wed Aug 13 10:46:12 1997 Gerd Moellmann <gerd@acm.org>
15153
15154 * dispnew.c (direct_output_for_insert): Don't set cursor.endpos
15155 to PT because this prevents multi-byte characters from being
15156 recognized.
15157
427ec082
SS
15158 * xdisp.c (skip_to, display_line): Advance cursor at end of
15159 truncated line.
26901792
DL
15160
15161 * xterm.c (x_draw_3d_borders): Use CapRound. Struct rect
15162 replaced by XRectangle.
15163
d7d0dac0 15164 * dispnew.c (scrolling_window): New method.
26901792
DL
15165
15166 * xterm.c (do_line_dance): New implementation, new method.
427ec082 15167
26901792
DL
15168 * xdisp.c (draw_glyphs): Draw truncation bitmaps. Clip to
15169 visible part of line.
15170
15171 * dispnew.c (update_window_line): Fill inverse video lines
15172 with infinite width space.
15173 (update_window): Handle completely empty matrices.
15174 (set_window_cursor_after_update): Bug fix.
15175
427ec082 15176 * xterm.c (draw_glyphs): Stop drawing at right window end.
26901792
DL
15177
15178 * dispnew.c (update_window_line): Don't ignore spaces, don't
15179 fill with spaces.
15180
15181 * xdisp.c (compute_line_metrics): Stop adding glyph widths with
15182 the first glyph having width 0.
15183
15184 * xterm.c (draw_glyphs): Let a glyph pixel with of 0 denote
427ec082 15185 a glyph that extends to the end of the line.
26901792
DL
15186
15187 * xdisp.c (display_line): Insert one padding glyph
15188
15189 * xdisp.c (skip_in_display_line_to): Don't subtract shift left
15190 amount from info.current_x.
15191 (display_line): Ditto.
15192
15193 * dispnew.c (direct_output_for_insert): Correct use of cursor.x.
15194 (change_frame_size_1): Correct cursor.x if frame gets too small.
15195 (update_window_line): Start at row->x.
15196
15197 * xdisp.c (redisplay_internal): Correct cursor.x (everwhere
15198 in xdisp.c).
15199
15200 * xterm.c (set_output_cursor): Use window relative X/Y.
15201 (global): Use window relative output cursor x/y.
15202 (draw_glyphs): Remove y param. Pass window relative x/y.
15203
15204 * dispnew.c (update_window): Start rows at start_y.
15205 (update_window): Don't try scrolling because it wouldn't work
15206 with variable height lines, anyway.
15207
15208 * dispextern.h (struct glyph_row): Remove shift_left_by,
15209 add x.
15210
15211 * window.h: (struct window): New member start_y.
15212
15213 * window.c (replace_window): Initialize start_y.
15214 (make_window): Ditto.
15215
15216Tue Aug 12 14:53:04 1997 Gerd Moellmann <gerd@acm.org>
15217
15218 * xterm.c (draw_glyphs): Clip rows that would paint over
427ec082 15219 the mode line.
26901792 15220
427ec082
SS
15221 * dispnew.c (update_window): Take mode line border into
15222 account.
26901792
DL
15223
15224 * xterm.h (FRAME_MODE_LINE_BORDER_WIDTH): Number of pixels
427ec082 15225 of border around mode line.
26901792
DL
15226
15227 * xterm.c (x_draw_row_borders): Bug fix.
15228 (x_erase_phys_cursor): Set pyhs_cursor.x/y before calling
15229 drawing functions.
15230
15231 * xterm.c (x_draw_row_border): Experimental; draw 3d borders
427ec082 15232 around modeline instead of inverting it.
26901792 15233
427ec082 15234 * xterm.c (glyph_to_pixel_coords): Use current matrix.
26901792
DL
15235
15236 * dispnew.c (buffer_posn_from_coords): Use SKIP_TO. Now takes
15237 window relative pixel coordinates as arguments.
15238
15239 * keyboard.c (make_lispy_event): Use BUFFER_POSN_FROM_COORDS
15240 with window relative pixel coordinates. Use GLYPH_TO_PIXEL_-
15241 COORDS mit new arguments.
15242
15243Mon Aug 11 12:32:34 1997 Gerd Moellmann <gerd@acm.org>
15244
15245 * xdisp.c (start_display): Use SKIP_TO instead of SKIP_IN-
427ec082 15246 DISPLAY_LINE.
26901792
DL
15247
15248 * keyboard.c (make_lispy_event): WINDOW_FROM_COORDINATES with
15249 pixel coords.
15250 (make_lispy_movement): Same.
15251
15252 * xterm.c (note_mouse_highlight): Use WINDOW_FROM_COORDINATES
15253 with new parameter meaning.
15254
15255 * window.c (Fcoordinates_in_window_p): Convert Lisp params
15256 from canon units to pixels.
15257 (coordinates_in_window): Pixel based.
15258 (Fcoordinates_in_window_p): Convert result pixel values back
15259 to canonical units.
15260
15261 * window.h: phys_cursor_ascent + descent instead of height.
15262
15263 * xterm.c (XTget_char_info): Use per char metrics for multi-byte
d7d0dac0 15264 chars with charset width 1.
26901792
DL
15265
15266 * dispnew.c (direct_output_for_insert): Set updated_row.
15267
15268Sat Aug 9 12:11:44 1997 Gerd Moellmann <gerd@acm.org>
15269
15270 * dispextern.h (struct glyph): Padding flag removed.
15271
15272Tue Aug 5 09:59:08 1997 Gerd Moellmann <gerd@acm.org>
15273
15274 * sysdep.c (reset_sys_modes): cursor_to with 4 params.
15275
15276 * keyboard.c (interrupt_signal): Cursor_to with 4 params.
15277
15278 * dispnew.c (update_window_line): Use pixels.
15279
15280 * xdisp.c (compute_line_metrics): Correct pixel_width by
15281 shift_left_by.
15282
15283 * dispextern.h (struct glyph_row): FIRST_SHIFTED_LEFT_GLYPH
427ec082 15284 removed. Remove references to it everywhere. Reverse_p in
26901792
DL
15285 glyph_row -> right_to_left_p. Change references to it.
15286
15287Mon Aug 4 18:09:27 1997 Gerd Moellmann <gerd@acm.org>
15288
15289 * dispnew.c (direct_output_for_insert): Use INSERT_GLYPHS.
15290
15291 * xterm.c (XTinsert_glyphs): Implement it.
15292
15293 * term.c (insert_glyphs): UPDATING_FRAME may be NULL in case
15294 of a call from DIRECT_OUTPUT_FOR_INSERT.
15295
15296 * window.h (struct cursor_pos): Keeps both matrix positions
15297 and pixel positions.
15298 (struct window): Use it.
15299
15300 * dispnew.c (direct_output_for_insert): New version.
15301
15302 * xdisp.c (redisplay_internal): Don't do anything if it has
15303 already be done directly.
15304
15305 * keyboard.c (command_loop_1): Call DIRECT_OUTPUT_FOR_INSERT
15306 for any character.
15307
15308Thu Jul 31 15:39:10 1997 Gerd Moellmann <gerd@acm.org>
15309
15310 * xdisp.c (echo_area_display): Use new DISPLAY_STRING.
15311
15312Wed Jul 30 12:18:03 1997 Gerd Moellmann <gerd@acm.org>
15313
15314 * dispextern.h (struct glyph_row): MAX_ASCENT, MAX_DESCENT.
15315 (struct glyph): ASCENT, DESCENT.
15316 (MATRIX_ROW_PIXEL_HEIGHT): Pixel height of row.
15317 (GLYPH_PIXEL_HEIGHT): Pixel height of glyph.
15318
15319 * xterm.c (XTget_display_info): Correct tab computation.
15320
15321 * term.c (get_display_info): Correct tab computation.
15322
15323 * dispextern.h (struct display_cursor): WHAT_FOUND, SOURCE_OBJECT.
15324 Renamed from CHAR_CURSOR.
15325
15326Tue Jul 29 12:52:40 1997 Gerd Moellmann <gerd@acm.org>
15327
15328 * xdisp.c (display_text_line): Mostly pixel oriented.
15329
15330 * dispextern.h (struct glyph): BOX_WIDTH -> PIXEL_WIDTH.
15331
15332 * term.c (append_intermediate_glyph): Generate padding glyphs.
15333
15334 * xdisp.c (display_text_line): More into final direction.
15335
15336 * xterm.c (XTget_char_info): Use WHAT field of CHAR_INFO.
15337 (XTget_char_info): Use tabs as multiples of spaces.
15338
15339 * term.c (get_char_info): Use WHAT field of CHAR_INFO.
15340 Use tabs as multiples of spaces.
15341
15342 * dispextern.h (struct char_info ): WHAT field.
15343
15344 * term.c (encode_terminal_code): Don't use GLYPH_CHAR, use
d7d0dac0 15345 FAST_GLYPH_CHAR instead because GLYPH_CHAR won't remove faces.
26901792
DL
15346
15347Mon Jul 28 14:23:06 1997 Gerd Moellmann <gerd@acm.org>
15348
15349 * dispnew.c (init_char_info): Correct TAB_WIDTH to a reasonable
15350 value.
15351 (init_char_info): Initialize with glyph row.
15352
15353 * term.c (get_char_info): Check WANT_ELLIPSIS_P.
15354
15355 * xterm.c (XTget_char_info): Check WANT_ELLIPSIS_P.
15356
15357 * dispextern.h (struct char_info ): GLYPH_ROW for intermediate
15358 glyphs.
15359
15360 * dispnew.c (init_char_info): Init GLYPH_ROW to NULL. CHAR_CURSOR
15361 moved to xdisp.c.
15362
15363 * xdisp.c (display_text_line): Use CHAR_CURSOR.
15364
15365 * xterm.c (x_append_intermediate_glyph): Intermediate glyph
15366 generation.
15367 (XTget_char_info): Ditto.
15368
15369 * term.c (get_char_info): Intermediate glyph generation.
15370 (append_intermediate_glyph): Ditto.
15371
15372Sun Jul 27 18:57:24 1997 Gerd Moellmann <gerd@acm.org>
15373
427ec082 15374 * dispnew.c (compute_char_cursor_face): Compute the face for a
26901792
DL
15375 CHAR_CURSOR.
15376 (init_char_cursor): Initialize a CHAR_CURSOR.
15377 (get_char_and_advance): Get next character to display.
15378
15379 * dispextern.h (struct char_cursor): Cursor for iterating over
15380 display text of CURRENT_BUFFER.
15381
15382Sat Jul 26 13:33:03 1997 Gerd Moellmann <gerd@acm.org>
15383
15384 * term.c (get_char_info): Set MAX_PIXEL_WIDTH in CHAR_INFO.
15385
15386 * dispextern.h (struct char_info ): Use LISP_CHAR_TABLE for DP.
15387 New member MAX_PIXEL_HEIGHT.
15388
15389 * xterm.c (x_per_char_metric): Get per character metrics.
15390 (XTget_char_info): More cases covered.
15391
15392 * term.c (get_char_and_info): Get next character and character
15393 display information.
15394 (get_char_info): Get character display information.
15395
15396 * dispextern.h: Character display information.
15397
427ec082 15398 * xterm.c (x_get_char_font_and_encoding): Get font and
26901792
DL
15399 encode character.
15400 (XTget_char_info): Get display information about a character.
15401
15402Wed Jul 23 16:50:18 1997 Gerd Moellmann <gerd@acm.org>
15403
15404 * dispextern.h (WINDOW_DISPLAY_MODE_LINE_HEIGHT): Height is
15405 zero if window is mini-window.
15406
15407 * xdisp.c: Include xterm.h or w32term.h for FRAME_LINE_HEIGHT.
15408 (try_window): DISPLAY_TEXT_LINE as long as Y < DISPLAY_HEIGHT.
15409
427ec082 15410 * dispnew.c (assign_row): Assign row pixel height.
26901792
DL
15411 (clear_glyph_row): Clear pixel height.
15412 (update_window): Use PIXEL_HEIGHT.
15413
15414 * xdisp.c (display_string): Set row pixel height temporarily.
15415 (display_text_line): Ditto.
15416
427ec082 15417 * dispextern.h (GLYPH_PIXEL_WIDTH):
26901792
DL
15418 (GLYPH_PIXEL_HEIGHT): Get glyph pixel dimension.
15419
427ec082 15420 * frame.h (FRAME_DEFAULT_PIXEL_LINE_HEIGHT): Get height of
26901792
DL
15421 line in default font.
15422 (FRAME_DEFAULT_GLYPH_PIXEL_WIDTH): Get width of character
15423 in default font.
15424 (FRAME_MODE_LINE_PIXEL_HEIGHT): Get height of mode line.
15425
15426 * xterm.h (FRAME_MODE_LINE_HEIGHT): Return height of mode line
15427 in pixels.
15428
15429 * dispnew.c (allocate_leaf_matrix): Use window pixel macros.
15430
15431 * dispextern.h (WINDOW_DISPLAY_PIXEL_WIDTH):
427ec082
SS
15432 (WINDOW_DISPLAY_PIXEL_HEIGHT):
15433 (WINDOW_DISPLAY_MODE_LINE_HEIGHT):
15434 (WINDOW_DISPLAY_PIXEL_HEIGHT_WITHOUT_MODE_LINE):
15435 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X):
15436 (WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X):
15437 (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y):
26901792
DL
15438 (WINDOW_DISPLAY_BOTTOM_EDGE_PIXEL_Y): Macros to get various
15439 pixel values related to windows.
15440
15441Mon Jul 21 12:22:02 1997 Gerd Moellmann <gerd@acm.org>
15442
15443 * xterm.c (XTflash): Flash last line of frame.
15444
15445 * dispextern.h (cursor_in_echo_area): Extern declaration.
15446
15447 * xterm.c (dumpglyphs): 8-bit version to test if my Xserver
d7d0dac0 15448 freezes stem from 16-bit functions.
26901792
DL
15449
15450 * xterm.c (x_display_and_set_cursor): Don't display hollow
15451 cursor in mini windows.
15452
15453 * window.c (replace_window): Initialize PHYS_CURSOR_TYPE.
15454 (make_window): Ditto.
15455
15456 * xterm.c (x_erase_phys_cursor): Erase cursor image.
15457 (x_display_and_set_cursor): Merged version of X_DISPLAY_BOX_CURSOR
15458 and X_DISPLAY_BAR_CURSOR.
15459 (x_display_cursor): Use it.
15460 (x_update_window_cursor): Use it.
15461
15462 * xdisp.c (display_text_line): Set cursor for window even if not
d7d0dac0 15463 selected.
26901792
DL
15464
15465 * xterm.c (x_display_bar_cursor): Use HPOS and VPOS instead
15466 of X and Y to denote matrix positions.
15467 (x_display_cursor): Ditto.
15468
15469 * dispnew.c (scrolling_window): Scrolling for windows.
15470
15471Wed Jul 16 13:37:51 1997 Gerd Moellmann <gerd@acm.org>
15472
15473 * dispnew.c (build_frame_matrix): Work on windows with update
15474 flag set.
15475 (build_frame_matrix_from_window_tree): Ditto.
15476 (build_frame_matrix_from_leaf_window): Ditto.
15477
15478 * xdisp.c (echo_area_display): Set MUST_BE_UPDATED_P instead of
15479 building frame matrix.
427ec082 15480 (redisplay_internal): Set window update flags instead of
26901792
DL
15481 building frame matrix.
15482
15483 * minibuf.c (read_minibuf): Set MUST_BE_UPDATED_P instead of
15484 building frame matrix.
15485
15486 * window.c (make_window): Initialize new members.
15487 (replace_window): Ditto.
15488
15489 * xfns.c (Fx_create_frame): Don't set PHYS_CURSOR_X to -1.
15490 I don't believe this is really necessary.
15491
15492 * dispnew.c (build_frame_matrix_from_leaf_window): Determine
427ec082 15493 border glyph once.
26901792
DL
15494
15495Tue Jul 15 13:58:33 1997 Gerd Moellmann <gerd@acm.org>
15496
427ec082 15497 * window.c (mark_window_cursors_off): Mark all cursors in
26901792
DL
15498 window tree off.
15499
427ec082 15500 * xterm.c (x_display_box_cursor): Window paraemter. Use
26901792
DL
15501 window matrix.
15502 (glyph_to_pixel_pos): Convert matrix pos -> pixels.
15503 (pixel_to_glyph_pos): Convert pixel pos -> matrix pos.
15504 (x_update_cursor): Work on windows.
15505 (x_display_bar_cursor): Ditto.
15506 (x_draw_single_glyph): Ditto.
15507
15508 * xterm.h: Prototype for X_DISPLAY_CURSOR.
15509
15510 * xterm.c (XTcursor_to): Void return type. Test for
d7d0dac0 15511 UPDATED_WINDOW. Call x_display_cursor with window.
26901792 15512 (x_display_cursor): Void return type. Window instead of frame
d7d0dac0 15513 parameter.
26901792 15514
d7d0dac0 15515 * window.h (WINDOW_RIGHTMOST_P, WINDOW_TOPMOST_P): Use functions below.
26901792
DL
15516
15517 * window.c (window_rightmost_p, window_topmost_p): Based on
15518 window tree.
15519
15520 * dispnew.c (adjust_frame_message_buffer): Allocate with
d7d0dac0 15521 FRAME_MESSAGE_BUF_SIZE.
26901792
DL
15522
15523 * window.h: PHYS_CURSOR_.* added.
15524
15525 * frame.h (struct frame): Cursor information removed.
15526
15527 * frame.h (FRAME_SCROLL_BAR_WIDTH): Removed because unused.
15528 (FRAME_WINDOW_WIDTH_ARG): Don't add scroll bar width.
15529
15530 * window.h (WINDOW_LEFT_MARGIN): Remove FRAME_LEFT_SCROLL_BAR.
15531
15532 * window.c (window_internal_width): Scroll bars no longer
15533 part of window.
15534
d7d0dac0 15535 * xterm.c (XTclear_end_of_line): FRAME_LEFT_SCROLL_BAR_WIDTH removed.
26901792 15536
d7d0dac0 15537 * xfns.c (x_set_scroll_bar_width): FRAME_LEFT_SCROLL_BAR_WIDTH removed.
26901792
DL
15538
15539 * xdisp.c (echo_area_display): FRAME_LEFT_SCROLL_BAR_WIDTH removed.
15540 (redisplay_internal): Ditto.
15541 (redisplay_window): Ditto.
15542 (redisplay_window): Ditto.
15543 (display_text_line): Ditto.
15544 (display_mode_line): Ditto.
15545
15546 * minibuf.c (read_minibuf): FRAME_LEFT_SCROLL_BAR_WIDTH removed.
15547
15548 * dispnew.c (set_cursor_to): FRAME_LEFT_SCROLL_BAR_WIDTH removed.
15549 (direct_output_for_insert): Ditto.
15550 (direct_output_forward_char): Ditto.
15551 (update_frame_1): Ditto.
15552
15553Mon Jul 14 12:30:03 1997 Gerd Moellmann <gerd@acm.org>
15554
15555 * dispnew.c (updated_window): Set by UPDATE_WINDOW to the window
d7d0dac0 15556 being updated.
26901792
DL
15557 (update_window): Set and clear it.
15558
15559 * dispnew.c (update_window_line, update_window, scrolling_window):
15560 First versions.
15561
15562 * dispnew.c (build_frame_matrix_from_leaf_window): Add vertical
15563 bar for window borders.
15564 (fill_up_glyph_row_area_with_spaces): Fill an area of a row
15565 with spaces.
15566 (fill_up_glyph_row_with_spaces): Call above function.
15567
15568 * xdisp.c (display_text_line): Don't add vertical bar for
15569 window borders.
15570 (display_string): Ditto.
15571
15572 * window.c (make_window): Init CURSOR_VPOS/HPOS.
15573 (replace_window): Ditto.
15574
15575 * xterm.c (XTwrite_glyphs): Use selected window cursor position.
15576
15577 * xfns.c (Fx_contour_region): Use selected window cursor position.
15578 (Fx_uncontour_region): Ditto.
15579 (Fx_select_region): Ditto.
15580
15581 * frame.c (make_frame): Remove CURSOR_X/Y.
15582
15583 * xdisp.c (redisplay_internal): Use window cursor position.
15584
15585 * dispnew.c (update_frame_1): Use cursor position of selected
15586 window.
15587 (change_frame_size_1): Ditto.
15588
15589 * xterm.c (XTupdate_begin): Set CURS_X/Y from selected window.
15590 (XTwrite_glyphs): Use cursor position of selected window.
15591
d7d0dac0 15592 * xfns.c (x_set_scroll_bar_width): Set cursor pos of selected window.
26901792
DL
15593
15594 * dispnew.c (set_cursor_to): Set window cursor position.
15595 (direct_output_for_insert): Use window cursor position.
15596 (init_display): Don't use frame cursor position.
15597
15598 * window.h: CURSOR_VPOS/HPOS added.
15599
15600 * frame.h (struct frame): CURSOR_X/Y removed.
15601 (FRAME_CURSOR_X): Removed.
15602 (FRAME_CURSOR_Y): Ditto.
15603
15604 * dispnew.c (direct_output_for_insert): LAST_POINT_X removed.
15605 (direct_output_forward_char): Ditto.
15606
d7d0dac0 15607 * xdisp.c (redisplay_internal): LAST_POINT_X and LAST_POINT_Y removed.
26901792
DL
15608
15609 * window.c (make_window): LAST_POINT_X and LAST_POINT_Y removed.
15610
15611 * window.h: LAST_POINT_X and LAST_POINT_Y removed.
15612
15613Sun Jul 13 14:18:24 1997 Gerd Moellmann <gerd@acm.org>
15614
15615 * xdisp.c: Bug fixes using SET_CURSOR with HPOS 0 instead
15616 of FRAME_LEFT_SCROLL_BAR_WIDTH.
15617
15618 * dispextern.h: Changed function names.
15619
15620 * dispnew.c (scrolling): Don't call SCROLLING_1 if WINDOW_SIZE
15621 < 2.
15622 (clear_window_matrices): Formerly two functions for desired
15623 and current matrix.
15624 (update_frame_1): Call CLEAR_DESIRED_MATRICES.
15625 (update_frame): Return return value from UPDATE_FRAME_1.
15626
15627Sat Jul 12 12:58:48 1997 Gerd Moellmann <gerd@acm.org>
15628
15629 * xdisp.c (try_window): Set WINDOW_END_VPOS with window relative
15630 LAST_TEXT_VPOS.
15631
15632 * frame.c (set_menu_bar_lines): Adjust matrices.
15633
15634 * dispnew.c (set_cursor_to): Set cursor position.
15635
15636 * minibuf.c (read_minibuf): Build frame matrix.
15637
15638 * xdisp.c (this_line_start_hpos): Renamed to
d7d0dac0
SM
15639 THIS_LINE_START_WINDOW_HPOS to make it clear that this is window
15640 relative.
26901792
DL
15641 (this_line_vpos): Renamed to THIS_LINE_WINDOW_VPOS for the same
15642 reason.
15643
427ec082 15644 * dispnew.c (build_frame_matrix): Don't clear rows of the
26901792
DL
15645 menu bar.
15646 (clear_window_records): Clear window rows.
15647 (clear_frame_records): Clear window and frame rows.
15648 (clear_glyph_matrix): Set all rows of a matrix to empty.
15649
d7d0dac0
SM
15650 * xdisp.c (echo_area_display): Parameter UPDATE_FRAME_P.
15651 Update frame if set.
26901792
DL
15652 (message2_nolog): Pass 1 to ECHO_AREA_DISPLAY. UPDATE_FRAME
15653 removed.
15654 (redisplay_internal): Pass 0 to ECHO_AREA_DISPLAY.
15655 (redisplay_internal): Build frame matrix before UPDATE_FRAME.
15656
15657 * dispnew.c (assign_row): Assign one glyph row to another.
15658 (mirrored_make_current): Use it.
15659 (mirror_make_current): Use it.
15660 (update_line): Rely on MIRRORED_MAKE_CURRENT to set flags and
15661 used counters for the current glyph row.
427ec082 15662
26901792
DL
15663
15664Fri Jul 11 13:16:50 1997 Gerd Moellmann <gerd@acm.org>
15665
15666 * lisp.h: Prototype for SCAN_BUFFER.
15667
15668 * xdisp.c (redisplay_windows): Simplified.
15669
15670 * dispnew.c (window_to_frame_vpos): Convert window to frame vpos
15671 with debug checks.
15672 (window_to_frame_hpos): Convert window to frame hpos with checks.
15673 (frame_to_window_vpos): Convert frame to window vpos with checks.
15674 (frame_to_window_hpos): Convert frame to window hpos with checks.
15675
15676 * dispextern.h: PRESERVE_OTHER_COLUMNS removed.
15677
15678 * dispnew.c: PRESERVE_OTHER_COLUMNS removed.
15679
15680 * xdisp.c (redisplay_internal): Another instance of
15681 DISPLAY_TEXT_LINE with window relative VPOS.
15682 (redisplay_internal): Remove PRESERVE_OTHER_COLUMNS.
15683
15684 * dispnew.c (init_desired_glyphs): Do it on window matrices,
15685 only.
15686
15687 * xdisp.c (try_window_id): Use CANCEL_WINDOW_LINE.
15688 (redisplay_internal): Ditto.
15689
15690 * dispnew.c (cancel_window_line): Use window matrix. Changed
15691 name to CANCEL_WINDOW_LINE.
15692
15693 * xdisp.c (try_window_id): Use DISPLAY_TEXT_LINE with window
15694 relative VPOS.
15695
427ec082
SS
15696 * dispextern.h (WINDOW_TO_FRAME_VPOS): Convert window vpos
15697 to frame vpos.
26901792
DL
15698 (WINDOW_TO_FRAME_HPOS): Convert window hpos to frame hpos.
15699 (FRAME_TO_WINDOW_VPOS): Convert frame vpos to window vpos.
15700 (FRAME_TO_WINDOW_HPOS): Convert frame hpos to window hpos.
15701
15702 * xdisp.c (try_window_id): Use ADJUST_WINDOW_CHARSTARTS with
15703 window relative VPOS.
15704 (redisplay_internal): Use ADJUST_WINDOW_CHARSTARTS with window
15705 relative VPOS.
15706
15707 * dispnew.c (adjust_window_charstarts): Use INCREMENT_GLYPH_-
15708 MATRIX_BUFFER_POSITIONS.
15709
15710 * xdisp.c (try_window_id): Use SCROLL_FULL_WIDTH_WINDOW.
15711
15712 * dispextern.h: Prototype for SCROLL_FULL_WIDTH_WINDOW.
15713
427ec082 15714 * dispnew.c (scroll_frame_lines): Make it work on window
26901792
DL
15715 matrix. Change name to scroll_full_width_window.
15716
15717 * xdisp.c (message2_nolog): Don't fwrite NULL message If
d7d0dac0 15718 NONINTERACTIVE.
26901792
DL
15719
15720Mon Jul 7 14:44:38 1997 Gerd Moellmann <gerd@acm.org>
15721
15722 * dispnew.c (init_desired_glyphs): Clear both frame matrix
427ec082 15723 and window matrices.
26901792
DL
15724 (adjust_window_charstarts): Use window matrix.
15725 (cancel_my_columns): Use window matrix.
15726 (direct_output_for_insert): Use window matrix, only.
15727
15728 * xdisp.c (display_glyphs): Extracted code from DISPLAY_STRING.
15729 (display_string): Call display_glyphs.
15730 (display_menu_bar_string): Display a string in a menu bar line.
15731 (display_menu_bar): Use DISPLAY_MENU_BAR_STRING.
15732 (display_text_line): Use window matrix.
15733 (try_window): Use window relative positions.
15734
15735Sun Jul 6 17:02:26 1997 Gerd Moellmann <gerd@acm.org>
15736
15737 * dispnew.c (adjust_frame_glyphs): Allocate window matrices from
d7d0dac0 15738 (0, 0).
26901792 15739 (allocate_leaf_matrix): Add FRAME_MENU_BAR_LINES to the height of
d7d0dac0 15740 top-most windows.
26901792
DL
15741
15742 * window.h (WINDOW_TOPMOST_P): Added.
15743
15744 * xdisp.c (echo_area_display): Use PREPARE_DESIRED_ROW.
15745 (redisplay_window): Ditto.
15746 (display_text_line): Ditto.
15747 (display_menu_bar): Ditto.
15748 (display_mode_line): Ditto.
15749 (display_mode_line): Use window matrix.
15750 (display_string): Use window matrix.
15751 (display_mode_element): Ditto.
15752 (echo_area_display): Don't display if frame has no pools yet.
15753 (echo_area_display): Work with window matrix for mini window.
15754 (redisplay_window): Use window marix for mini window.
15755 (display_text_line): Assume HPOS and VPOS are window relative and
d7d0dac0 15756 use that for DISPLAY_STRING.
26901792
DL
15757
15758 * dispextern.h: Prototype for prepare_desired_row.
15759
d7d0dac0 15760 * dispnew.c (prepare_desired_row): Replacement for GET_DISPLAY_LINE.
26901792
DL
15761
15762 * dispnew.c (adjust_window_charstarts): Always allocate window
15763 matrices.
15764 (clear_glyph_row): Only reset used counters and flags.
15765
15766Sat Jul 5 14:55:44 1997 Gerd Moellmann <gerd@acm.org>
15767
15768 * dispnew.c (scroll_frame_lines): Don't assume first scolled
427ec082 15769 line is non-empty.
26901792
DL
15770 (realloc_glyph_pool): Don't add 1 to the pool size.
15771 (adjust_glyph_matrix): Don't add 1 to pointers to glyph areas.
15772
15773 * dispnew.c (line_hash_code): Don't use null-glyph end marker.
15774 (line_draw_cost): Ditto.
15775 (update_line): Ditto.
15776 (update_line): Use SPACE_GLYPH.
15777 (count_blanks): Additional parameter LEN.
15778
15779 * xdisp.c (display_text_line): Use SPACE_GLYPH.
15780 (display_text_line): Don't add null-glyph end marker.
15781 (display_string): Use SPACE_GLYPH.
15782 (display_string): Don't use null-glyph end marker.
15783
15784 * term.c (clear_end_of_line): Use SPACE_GLYPH.
15785
15786 * dispnew.c (clear_glyph_row): Don't use null-glyph end markers.
15787 (fill_up_glyph_row_with_spaces): Ditto.
15788 (preserve_other_columns): Add SPACE_GLYPH at then end of desired
15789 rows, instead of null-glyphs.
15790 (direct_output_for_insert): Don't add null-glyph end marker.
15791
15792 * scroll.c (do_direct_scrolling): Change algorithm to construct
d7d0dac0 15793 vector of lines assigned. Call MIRRORED_LINE_DANCE:
26901792
DL
15794 (do_scrolling): Ditto.
15795
15796 * dispnew.c (mirror_line_dance): Mirror line assignments in a
d7d0dac0 15797 frame matrix in window matrices.
26901792 15798 (mirrored_line_dance): Do line assignments during scrolling.
d7d0dac0 15799 Maybe do corresponding assignments in window matrices.
26901792 15800 (check_window_matrix_pointers): Check that window rows and frame
d7d0dac0 15801 rows agree about glyph pointers.
26901792
DL
15802 (check_matrix_pointers): Ditto.
15803 (mirrored_make_current): Make a row of a desired matrix current;
d7d0dac0 15804 maybe mirror the operation in window matrices.
26901792 15805 (mirror_make_current): Make window desired matrix row current when
d7d0dac0 15806 frame matrix row was made current.
26901792
DL
15807
15808Fri Jul 4 13:27:46 1997 Gerd Moellmann <gerd@acm.org>
15809
15810 * dispnew.c (check_matrix_pointer_lossage): Check against
15811 pointer lossage in matrices.
15812 (get_glyph_matrix_row): Removed.
15813
15814 * scroll.c (do_scrolling): Simplified.
15815 (do_direct_scrolling): Simplified.
15816 (scrolling_1): Pass CURRENT_MATRIX instead of FRAME to
d7d0dac0 15817 DO_.*SCROLLING.
427ec082 15818
26901792
DL
15819
15820 * dispnew.c (ins_del_glyph_rows): Insert/delete rows in a matrix.
15821 (rotate_vector): Removed.
15822 (rotate_pointers): Removed.
15823 (scroll_frame_lines): Simplified.
15824
15825Thu Jul 3 13:54:21 1997 Gerd Moellmann <gerd@acm.org>
15826
15827 * dispextern.h (MATRIX_ROW_SWAP_CONTENTS): Removed.
15828
15829 * dispnew.c (increment_glyph_matrix_buffer_positions): Does
15830 what the name says.
15831 (clear_glyph_row): Make a glyph row structure empty.
15832 (make_matrix_row_current): Make a glyph row current.
15833 (make_window_matrix_row_current): Perform analogous row swaps
15834 for window matrices.
15835 (update_line): Call make_matrix_row_current.
15836
15837Wed Jul 2 13:43:35 1997 Gerd Moellmann <gerd@acm.org>
15838
15839 * dispextern.h (SET_MATRIX_ROW_ENABLED_P): Better macro name.
15840 (SET_MATRIX_ROW_INVERSE_P): Better name and HIGHLIGHT_P ->
15841 INVERSE_P.
15842 (MATRIX_ROW_INVERSE_P): Former MATRIX_ROW_HIGHLIGHT_P.
15843 (struct glyph_row): HIGHLIGHT_P -> INVERSE_P
15844
15845 * all files: use above new names.
15846
15847 * dispnew.c (scroll_frame_lines): Simplified. Use
d7d0dac0 15848 SCROLL_GLYPH_MATRIX.
26901792 15849 (make_glyph_row_empty): Mark a glyph row empty.
427ec082 15850 (increment_glyph_row_buffer_positions): Increment
26901792
DL
15851 buffer positions in a glyph row.
15852 (increment_glyph_matrix_buffer_positions): Increment buffer
15853 positions in a range of rows.
15854 (scroll_glyph_matrix): Scroll a glyph matrix.
15855 (swap_glyphs_in_rows): Swap glyphs between rows.
15856 (swap_glyph_pointers): Swap pointers between rows.
15857 (glyph_row_slice_p): Return 1 if one row is a slice of another.
15858 (init_display): Initialize SPACE_GLYPH.
15859 (fill_up_glyph_row_areas_with_spaces): Fill up areas with
427ec082 15860 spaces.
26901792
DL
15861
15862Tue Jul 1 13:49:55 1997 Gerd Moellmann <gerd@acm.org>
15863
15864 * xterm.c (dumprectangle): Use vectors in glyph rows.
15865
15866 * xdisp.c (display_text_line): Use vectors in glyph rows.
15867 (display_string): Ditto.
15868
15869 * scroll.c (do_scrolling): Use vectors in glyph rows.
15870 (do_direct_scrolling): Ditto.
15871
15872 * alloc.c (mark_object): Use vectors in glyph rows.
15873 Mark for all frame types.
15874
15875 * dispnew.c (adjust_glyph_matrix): Use vectors to glyphs in
15876 glyph rows.
15877 (get_glyph_matrix_row): Ditto.
15878 (matrix_row): Ditto.
15879 (rotate_pointers): Ditto.
15880 (scroll_frame_lines): Ditto.
15881 (preserve_other_columns): Ditto.
15882 (cancel_my_columns): Ditto.
15883 (update_line): Ditto.
15884 (direct_output_for_insert): Ditto.
15885
15886 * dispextern.h (struct glyph_row): Use a vector of pointers
d7d0dac0 15887 instead of individual members. Use a vector of used counters.
26901792
DL
15888 (MATRIX_ROW_SWAP_CONTENTS): Use vectors.
15889 (MATRIX_ROW_GLYPH_START): Ditto.
15890 (MATRIX_ROW_GLYPH_END): Ditto.
15891 (MATRIX_ROW_USED): Ditto.
15892 (MATRIX_ROW_SET_USED): Ditto.
15893
15894 * dispnew.c (line_hash_code): Simplified.
15895
15896Mon Jun 30 20:39:38 1997 Gerd Moellmann <gerd@acm.org>
15897
15898 * dispnew.c: Prototype for ROTATE_VECTOR, ROTATE_POINTERS,
15899 CHANGE_FRAME_SIZE_1
15900 (preserve_other_columns): Void return.
15901 (cancel_my_columns): Void return type.
15902 (scrolling): Int return type.
15903 (do_pending_window_change): Void return type.
15904 (change_frame_size): Ditto.
15905 (bitch_at_user): Ditto.
15906 (init_display): Ditto.
15907 (syms_of_display): Ditto.
15908
15909 * dispextern.h: add prototypes for REDRAW_FRAME,
d7d0dac0
SM
15910 REDRAW_GARBAGED_FRAMES, CANCEL_LINE, CLEAR_FRAME_RECORDS,
15911 INIT_DESIRED_GLYPHS, SCROLL_FRAME_LINES, PRESERVE_OTHER_COLUMNS,
15912 ADJUST_WINDOW_CHARSTARTS, CANCEL_MY_COLUMNS,
15913 DIRECT_OUTPUT_FOR_INSERT, DIRECT_OUTPUT_FORWARD_CHAR,
15914 UPDATE_FRAME, SCROLLING, BUFFER_POSN_FROM_COORDS,
15915 DO_PENDING_WINDOW_CHANGE, CHANGE_FRAME_SIZE, BITCH_AT_USER,
26901792 15916 SIT_FOR, INIT_DISPLAY, SYMS_OF_DISPLAY,
427ec082 15917
26901792 15918 * dispnew.c (redraw_frame): FRAME_PTR -> struct frame. Return
d7d0dac0 15919 void.
26901792
DL
15920 (cancel_line): Return void.
15921 (clear_frame_records): Return void.
427ec082 15922
26901792
DL
15923 * dispextern.h (struct glyph): Remove GLYPH, add bit-fields.
15924 (SET_CHAR_GLYPH): Fill a character glyph.
15925 (SET_CHAR_GLYPH_FROM_GLYPH): Set a character glyph from a GLYPH.
15926 (GLYPH_FROM_CHAR_GLYPH): Construct a GLYPH from a character
427ec082 15927 glyph.
26901792
DL
15928 (CHAR_GLYPH_CHAR_CODE): Return character code of a glyph.
15929 (SET_CHAR_GLYPH_CHAR_CODE): Set character code of a glyph.
15930 (CHAR_GLYPH_FACE_ID): Return face id of a glyph.
15931 (SET_CHAR_GLYPH_FACE_ID): Set face id of a glyph.
15932 (CHAR_GLYPH_PADDING_P): Return padding flag of a glyph.
15933 (SET_CHAR_GLYPH_PADDING_P): Set padding flag.
15934 (CHAR_GLYPH_REVERSE_P): Return reversed flag.
15935 (SET_CHAR_GLYPH_REVERSE_P): Set reversed flag.
15936 (MATRIX_ROW_SWAP_CONTENTS): Swap pointers between rows.
15937
15938 * term.c (reassert_line_highlight): Check CHARS_WASTED == 0.
15939
15940 * window.h (struct window): Add comment that no Lisp data may
d7d0dac0 15941 come below CURRENT_MATRIX.
26901792
DL
15942
15943 * alloc.c (mark_object): Change window mark code to stop with
d7d0dac0 15944 member CURRENT_MATRIX.
26901792
DL
15945
15946Sat Jun 28 13:54:55 1997 Gerd Moellmann <gerd@acm.org>
15947
15948 * scroll.c (do_scrolling): Change algorithm to use pointers.
15949 (do_direct_scrolling): Ditto.
15950
15951 * dispnew.c (get_glyph_matrix_row): Use pointers stored in rows.
15952 (new_glyph_pool): Formerly new_FRAME_GLYPH_MATRIX.
15953 (free_glyph_pool): Formerly FREE_FRAME_GLYPH_MATRIX
15954 (realloc_glyph_pool): Formerly REALLOC_FRAME_GLYPH_MATRIX.
d7d0dac0 15955 Returns 1 if pool changed.
26901792
DL
15956 (matrix_row): Additional check for lost pointers to glyph rows.
15957 (compute_matrices): Additional parameter DIM_P set means that no
d7d0dac0
SM
15958 allocation should take place. Addtional parameter
15959 ANY_WINDOWS_CHANGED_P set if any windows matrix has changed.
26901792 15960 (compute_leaf_matrix): Additional parameter CHANGED_P set to 1
d7d0dac0
SM
15961 when window matrix changes. Additional parameter DIM_ONLY_P set
15962 to 1 to indicate that no allocation should take place.
26901792 15963 (adjust_frame_glyphs): Construct new glyph pools and glyph
d7d0dac0 15964 matrices. Optimize frame redraws.
26901792
DL
15965 (free_glyphs): Free pools.
15966 (check_glyph_memory): Check pools not freed.
15967 (rotate_pointers): Rotate pointers in a vector of glyph rows.
15968 (scroll_frame_lines): Change algorithm to use pointers.
15969 (update_line): Ditto.
15970
15971 * dispextern.h (struct glyph_row): Use pointers to areas in a row.
15972 (global): All macro names changed from prefix FRAME_MATRIX to
d7d0dac0 15973 MATRIX.
26901792
DL
15974
15975Fri Jun 27 14:51:15 1997 Gerd Moellmann <gerd@acm.org>
15976
15977 * dispextern.h (struct glyph_pool): Replacement for former
15978 FRAME_GLYPH_MATRIX.
15979 (struct glyph_matrix): No longer contains sizes of allocated
15980 areas.
15981
15982 * xdisp.c (redisplay_internal): Don't redisplay if frame has
15983 no glyph pools.
15984
15985 * frame.c (make_frame): Initialize pools.
15986
15987Thu Jun 26 00:00:55 1997 Gerd Moellmann <gerd@acm.org>
15988
427ec082 15989 * scroll.c (do_direct_scrolling): Don't assume that the
26901792
DL
15990 line moving algorithm has no intermediate steps.
15991 (do_scrolling): Ditto.
15992
15993 * Makefile.in (alloc.o): Add dependency dispextern.h.
15994
15995 * alloc.c: Include dispextern.h for glyph definitions.
15996
15997 * dispnew.c (get_glyph_matrix_row): Return 1 if ROW_INDEX
15998 is legal, return 0 otherwise.
15999
16000 * window.h: Add comment that windows are marked specially.
16001
16002 * alloc.c (mark_object): Mark windows specially.
16003
16004
16005Wed Jun 25 15:22:58 1997 Gerd Moellmann <gerd@acm.org>
16006
16007 * dispextern.h (struct glyph): Add member OBJECT
16008 referencing a Lisp object from which a glyph was drawn.
16009 Member TEXT_POSITION renamed POSITION.
16010 * xterm.c, xdisp.c, dispnew.c: Rename TEXT_POSITION -> POSITION.
16011
16012 * alloc.c: Include dispextern.h
16013 (mark_object): Mark objects referenced from glyphs.
16014
f28eba7b 16015 * frame.c (make_frame): Initialize DECODE_MODE_SPEC_BUFFER.
26901792
DL
16016
16017 * scroll.c (do_direct_scrolling): Remove TEMP_MATRIX.
16018 (do_scrolling): Ditto.
16019
427ec082 16020 * frame.h (struct frame): TEMP_MATRIX removed.
26901792
DL
16021 DECODE_MODE_SPEC_BUFFER added.
16022
16023 * window.h: TEMP_MATRIX removed.
16024
16025 * scroll.c: OPHYS_LINES removed.
16026
16027 * dispnew.c: OPHYS_LINES and OPHYS_LINES_LENGTH removed.
16028 FRAME_PTR -> struct frame *.
16029
16030 * termhooks.h: Prototypes for INSERT_GLYPHS_HOOK,
16031 WRITE_GLYPHS_HOOK, DELETE_GLYPHS_HOOK,
16032
16033 * term.c: Prototypes for INSERT_GLYPHS_HOOK,
16034 WRITE_GLYPHS_HOOK, DELETE_GLYPHS_HOOK,
16035
16036 * xdisp.c (redisplay_internal): Remove call to VERIFY_CHARSTARTS.
16037 (do_verify_charstarts): Removed.
16038
16039 * frame.c (Fmake_terminal_frame): Adjust glyphs.
16040 (Fdelete_frame): Free glyphs.
16041 (make_frame): Initialize matrix fields in frame.
16042
f28eba7b 16043 * config.in (PROTO): Added.
26901792 16044
f28eba7b 16045 * emacs.c (shut_down_emacs): Check glyph memory.
26901792
DL
16046
16047 * window.c (Fdelete_window): Free window matrices.
16048 (Fset_window_configuration): Ditto.
16049 (Fdelete_window): Adjust glyphs.
16050 (Fsplit_window): Ditto.
16051 (change_window_height): Ditto.
16052 (Fset_window_configuration): Ditto.
16053 (make_window): Initialize DESIRED_MATRIX and CURRENT_MATRIX.
16054 (replace_window): Reset DESIRED_MATRIX and CURRENT_MATRIX
16055
16056 * Makefile.in (window.o): Add dependency window.c -> dispextern.h
16057
16058 * window.c: Include dispextern.h
16059
16060 * scroll.c (do_scrolling): Use new glyphs.
16061 (do_direct_scrolling): Ditto.
16062
16063 * xdisp.c: Some function prototypes.
16064 (redisplay_internal): Don't do anything if matrices not yet set.
16065 (redisplay_internal): Use new glyphs.
16066 (try_window_id): Ditto.
16067 (copy_part_of_rope): Ditto.
16068 (display_text_line): Ditto.
16069 (display_menu_bar): Ditto.
16070 (display_mode_line): Ditto.
16071 (display_string): Ditto.
16072
16073 * xterm.c: Prototypes for some local functions.
16074 (dumpglyphs): Use new glyphs.
16075 (XTwrite_glyphs): Ditto.
16076 (dumprectangle): Ditto.
16077 (note_mouse_highlight): Ditto.
16078 (fast_find_position): Ditto.
16079 (show_mouse_face): Ditto.
16080 (x_draw_single_glyph): Ditto.
16081 (x_display_bar_cursor): Ditto.
16082 (x_display_box_cursor): Ditto.
16083 (x_new_font): Adjust glyphs when font change.
16084
16085 * term.c (clear_end_of_line): Use new glyphs.
16086 (write_glyphs): Ditto.
16087 (insert_glyphs): Ditto.
16088
16089 * Makefile.in (term.o): term.c depends on dispextern.h
16090
16091 * term.c: Include dispextern.h
16092
16093 * dispnew.c (direct_output_forward_char): Old glyph functions
427ec082 16094 removed, new inserted.
26901792
DL
16095 (line_hash_code): Use new glyphs.
16096 (line_draw_cost): Ditto
16097 (cancel_line): Ditto
16098 (clear_frame_records): Ditto.
16099 (init_desired_glyphs): Ditto.
16100 (get_display_line): Ditto
16101 (scroll_frame_lines): Ditto.
16102 (preserve_other_columns): Ditto.
16103 (adjust_window_charstarts): Ditto.
16104 (cancel_my_columns): Ditto.
16105 (direct_output_for_insert): Ditto.
16106 (update_frame): Ditto.
16107 (quit_error_check): Made empty.
16108 (scrolling): Use new glyphs.
16109 (count_blanks): Ditto.
16110 (count_match): Ditto.
16111 (update_line): Ditto.
16112 (init_display): Adjust glyphs initially.
16113 (change_frame_size_1): Adjust glyphs.
16114
16115 * dispextern.h: Old glyphs removed, new added.
16116
16117 * xfaces.c (min_char_bounds): Get smallest char in loaded fonts.
16118
16119 * xterm.h: Prototype for min_char_bounds.
16120
16121 * window.h (struct window): Remove old glyphs, add new.
16122
16123 * frame.h (struct frame): Remove old glyphs, add new.
427ec082 16124
26901792
DL
161251999-07-20 Dave Love <fx@gnu.org>
16126
16127 * buffer.c (syms_of_buffer): Make
16128 default-enable-multibyte-characters a user variable.
16129
161301999-07-14 Richard Stallman <rms@gnu.org>
16131
16132 * Version 20.4 released.
16133
161341999-07-14 Richard Stallman <rms@gnu.org>
16135
16136 * filelock.c (lock_file): Do nothing if purifying.
16137
161381999-07-10 Richard Stallman <rms@gnu.org>
16139
16140 * xterm.c (x_display_bar_cursor): Use the cursor-color
16141 to display the bar, not the cursor foreground pixel.
16142
161431999-07-09 Andrew Innes <andrewi@gnu.org>
16144
16145 * w32console.c (w32_use_full_screen_buffer): New variable.
16146 (syms_of_ntterm): Register it.
16147 (initialize_w32_display): Set initial frame size accordingly,
16148 respecting the LINES and COLUMNS environment variables if set.
16149
16150 * w32inevt.c (w32_console_read_socket): Use it.
16151
161521999-07-07 Kenichi Handa <handa@etl.go.jp>
16153
16154 * callproc.c (Fcall_process): Decide coding system for decoding
16155 after we set to the target buffer. If the output goes to a
16156 unibyte buffer, suppress character code conversion.
16157
16158 * fileio.c (Finsert_file_contents): If reading into a unibyte
16159 buffer, suppress character code conversion.
16160
16161 * process.c (create_process): If the output goes to a unibyte
16162 buffer, suppress character code conversion.p
16163
161641999-07-07 Andreas Schwab <schwab@gnu.org>
16165
16166 * xdisp.c (line-number-display-limit): Doc fix.
16167
161681999-07-05 Richard Stallman <rms@gnu.org>
16169
16170 * callproc.c (Fcall_process): Don't use initializer on coding_systems.
16171 (Fcall_process_region): Likewise.
16172
161731999-07-01 Markus Rost <markus.rost@mathematik.uni-regensburg.de>
16174
16175 * callproc.c (init_callproc): Set exec_directory if
16176 installation_directory is non-nil, without a test of exec_path.
16177
161781999-07-01 Andrew Innes <andrewi@gnu.org>
16179
16180 * w32xfns.c (drain_message_queue): New function.
16181
16182 * w32term.h (drain_message_queue): Add extern.
16183
16184 * w32proc.c (sys_select): Call MsgWaitForMultipleObjects instead
16185 of WaitForMultipleObjects when user input is allowed, so we can
16186 handle incoming window messages. Call drain_message_queue when
16187 there are messages waiting; this ensures that windows created
16188 indirectly from the lisp thread get processed properly, and don't
16189 hang other applications by failing to respond to broadcasts.
16190
161911999-07-01 Andreas Schwab <schwab@gnu.org>
16192
16193 * callint.c (Fcall_interactively): Ignore first element of
16194 event-symbol-elements property.
16195
161961999-07-01 Richard Stallman <rms@gnu.org>
16197
16198 * fileio.c (Fread_file_name): Check type of DEFAULT_FILENAME.
16199
162001999-07-01 Kenichi Handa <handa@etl.go.jp>
16201
16202 * minibuf.c (read_minibuf): Set the multibyteness of the
16203 minibuffer before inserting `initial' string.
16204
162051999-06-30 Richard Stallman <rms@gnu.org>
16206
16207 * xfns.c (x_make_gc): Turn off GCStipple when setting up cursor_gc.
16208
162091999-06-29 Richard M. Stallman <rms@gnu.org>
16210
16211 * emacs.c [DOUG_LEA_MALLOC] (malloc_initialize_hook):
16212 Move the handling of MALLOC_CHECK_ envvar here.
16213 (main): Moved from here.
16214
162151999-06-29 Wolfram Gloger <wmglo@dent.med.uni-muenchen.de>
16216
16217 * emacs.c [DOUG_LEA_MALLOC] (malloc_initialize_hook): New
16218 function, assigned to the global __malloc_initialize_hook pointer.
16219 (main): Move malloc_set_state call into malloc_initialize_hook
16220 so that it happens as early as possible.
16221
162221999-06-27 Richard M. Stallman <rms@gnu.org>
16223
16224 * keyboard.c (read_key_sequence): Properly reinitialize
16225 fkey_map after translating thru Vkey_translation_map.
16226 After translating thru Vfunction_key_map, don't reset
16227 keytrans-start to 0.
16228
162291999-06-24 Geoff Voelker <voelker@cs.washington.edu>
16230
16231 * w32.c (get_emacs_configuration): Use GetVersionEx to
16232 handle NT5.0 correctly. Include build number in configuration.
16233 w32heap.c (osinfo_cache): New variable.
16234 (cache_system_info): Initialize osinfo_cache.
16235 w32heap.h (osinfo_cache): Declare.
16236
162371999-06-24 Richard M. Stallman <rms@gnu.org>
16238
16239 * casefiddle.c (casify_object): Use make_multibyte_string
16240 if we casify a multibyte string.
16241
162421999-06-22 Ken'ichi Handa <handa@gnu.org>
16243
16244 * fileio.c: (Finsert_file_contents): In the case of REPLACE, call
16245 del_range_byte instead of del_range_1, set `inserted' to the
16246 number of characters actually inserted.
16247
162481999-06-17 Dave Love <fx@gnu.org>
16249
16250 * coding.c (decode_coding_sjis_big5): Avoid compiler warning.
16251
162521999-06-18 Paul Eggert <eggert@twinsun.com>
16253
16254 * filelock.c (BOOT_TIME_FILE): New macro.
16255 (get_boot_time): Use it instead of hardwiring the file name.
16256 Check BOOT_TIME_FILE only after inspecting the kernel directly.
16257
162581999-06-17 Dave Love <fx@gnu.org>
16259
16260 * xdisp.c (invalid_eol_type): Make it unsigned.
16261
162621999-06-17 Karl Heuer <kwzh@gnu.org>
16263
16264 * process.c (send_process): Delete unsafe/redundant assignment.
16265
162661999-06-17 Jason Rumney <jasonr@gnu.org>
16267
16268 * w32term.c (dumprectangle): Handle wide characters properly.
16269
162701999-06-16 Andrew Innes <andrewi@gnu.org>
16271
16272 * s/ms-w32.h (strerror): Override the default implementation of
16273 strerror, so we can map winsock error codes.
16274
16275 * w32.c (sys_strerror): New function.
16276
16277 * w32fns.c (w32_to_x_weight): Return "demibold" instead of "semibold".
16278
162791999-06-15 Ken'ichi Handa <handa@gnu.org>
16280
16281 * buffer.c (syms_of_buffer): Don't make
16282 enable-multibyte-characters customizable.
16283
162841999-06-15 Richard M. Stallman <rms@gnu.org>
16285
16286 * editfns.c (Fuser_full_name): Doc fix.
16287
162881999-06-14 Tak Ota <ota@atc.sel.sony.com>
16289
16290 * w32bdf.c: (clear_cached_bitmap_slots): Remove.
16291 (get_bitmap_with_cache): Check if CreateBitmap failed.
16292 Adjust cache size dynamically so cache is never larger than the
16293 system limit of GDI resources.
16294 Do cache clearing inline. Move global variables to local scope.
16295
16296
162971999-06-13 Wolfgang Glas <Wolfgang.Glas@hfm.tu-graz.ac.at>
16298
16299 * unexsgi.c (unexec): Dump the .rodata section from memory
16300 under IRIX6.5 in order to be able to unexec with gcc.
16301
163021999-06-11 Greg Hudson <ghudson@MIT.EDU>
16303
16304 * indent.c (compute_motion): Fix boundary case.
16305
163061999-06-11 Jason Rumney <jasonr@altavista.net>
16307
16308 * w32term.c (cancel_mouse_face): New function. See equiv
16309 changes to xterm.c on 1996-10-31.
16310 (x_set_window_size): Use cancel_mouse_face.
d7d0dac0
SM
16311 (w32_read_socket): Use cancel_mouse_face.
16312 Update frame position when size is restored.
26901792
DL
16313
163141999-06-04 Richard M. Stallman <rms@gnu.org>
16315
16316 * lread.c (Vuser_init_file): New variable.
16317 (syms_of_lread): Set up Lisp variable.
16318 (Fload): Store the file name there, if var was t before.
16319
163201999-06-04 Paul Eggert <eggert@twinsun.com>
16321
16322 * filelock.c (get_boot_time): Don't look at /proc/uptime; it
16323 doesn't work if the system date is changed, or if the system
16324 is suspended. Look at the last-modified time of
16325 /var/run/random-seed instead.
16326
163271999-06-03 Ken'ichi Handa <handa@gnu.org>
16328
16329 * coding.c (ENCODE_SJIS_BIG5_CHARACTER): Encode charset
16330 japanese-jisx0208-1978 correctly.
16331
163321999-06-03 Andrew Innes <andrewi@gnu.org>
16333
16334 * unexw32.c (get_section_info) [_ALPHA_]: Force as much bss data
16335 as possible to be dumped, for safety.
16336
163371999-06-02 Ken'ichi Handa <handa@gnu.org>
16338
16339 * coding.c (ENCODE_SJIS_BIG5_CHARACTER): Encode charset
16340 latin-jisx0201 correctly.
16341
163421999-05-26 Ken'ichi Handa <handa@gnu.org>
16343
16344 * charset.h (Vcharset_table): Comment fixed.
16345
163461999-05-24 Richard Stallman <rms@gnu.org>
16347
16348 * coding.c (syms_of_coding): Doc fix.
16349
16350 * buffer.c (syms_of_buffer): Doc fix.
16351
16352 * filelock.c (lock_if_free): After deleting a stale lock,
16353 try again to lock the file.
16354
163551999-05-22 Andrew Innes <andrewi@gnu.org>
16356
16357 * w32inevt.c (maybe_generate_resize_event): Detect changes in the
16358 console window size.
16359 (w32_console_read_socket): Call maybe_generate_resize_event
16360 whenever input events are received, since we don't get told when
16361 the window size changes (as opposed to the buffer size, which we
16362 don't care about).
16363
16364 * w32console.c (clear_frame): Remember that the window width might
16365 be smaller than the screen buffer width.
16366 (write_glyphs): Remove redundant variable attrs. Use
16367 FillConsoleOutputAttribute instead of WriteConsoleOutputAttribute.
16368
163691999-05-20 Andrew Innes <andrewi@gnu.org>
16370
16371 * w32term.c (w32_read_socket): Reset the grabbed flag when a frame gains or
16372 loses focus.
16373
16374 * w32fns.c (w32_wnd_proc): Ensure mouse capture is released if
16375 frame loses focus, and that mouse button state is reset. Ditto
16376 when the menu bar is activated.
16377
163781999-05-18 Richard Stallman <rms@gnu.org>
16379
16380 * abbrev.c (Fdefine_abbrev): Doc fix.
16381
163821999-05-13 Paul Eggert <eggert@twinsun.com>
16383
16384 * filelock.c: Fix performance bug on hosts with large
16385 /var/adm/wtmp files with no boot records.
16386
16387 (boot_time_initialized): New var.
16388 (init_filelock): Initialize it.
16389 (get_boot_time): Use it, instead of nonzero boot_time,
16390 to test whether boot_time is initialized.
16391 Don't invoke utmp routines when dumping.
16392
16393 (get_boot_time): First, try to get the boot time from the
16394 current utmp file, as this can be much faster. Don't try to
16395 get the boot time from utmp and/or wtmp more than once.
16396
16397 (get_boot_time_1): When passed null pointer, don't invoke utmpname.
16398 New arg LATEST. All uses changed.
16399
164001999-05-15 Andrew Innes <andrewi@gnu.org>
16401
16402 * w32term.c (dumpglyphs): Use correct colours for drawing
16403 rectangles in place of missing fonts, and make them the right
16404 size.
16405
164061999-05-14 Dave Love <fx@gnu.org>
16407
16408 * syntax.c (Fparse_partial_sexp): Correct test for element 8 to be
16409 non-nil.
16410
164111999-05-11 Andrew Innes <andrewi@gnu.org>
16412
16413 * w32fns.c (x_to_w32_charset): Reinstall VIETNAMESE_CHARSET
16414 definition.
16415 (w32_wnd_proc): Reinstall debugging output.
16416 (w32_wnd_proc): Reinstall SetForegroundWindow change.
16417 (syms_of_w32fns): Reinstall new initializer for
16418 Vw32_phantom_key_code.
16419
16420 * w32fns.c (x_to_w32_charset): Do partial matching of charset
16421 names for most non-European charsets, to cope with wildcards or
16422 missing spec dates.
16423 (Fw32_send_sys_command): Post WM_SYSCOMMAND rather than sending it
16424 to avoid deadlock when activating the menu bar.
16425
164261999-05-10 Ken'ichi Handa <handa@gnu.org>
16427
16428 * search.c (boyer_moore): Get charset base value of `untranslated'
16429 by masking by ~CHAR_FIELD3_MASK (instead of ~0xff).
16430
164311999-05-10 Andreas Schwab <schwab@gnu.org>
16432
16433 * fileio.c (Fread_file_name): Correct handling of dollars in file
16434 names. Protect dollars in strings put on the file-name-history.
16435 Substitute homedir by `~' also in default_filename.
16436
16437 * xdisp.c (try_window_id): Fix computation of tab_offset when
16438 backing up over a character that is splitted across lines.
16439
164401999-05-08 Kenichi HANDA <handa@etl.go.jp>
16441
16442 * coding.c (code_convert_region): If eol format is inconsistent,
16443 change coding->symbol to the sibling coding system of Unix like
16444 eol format.
16445
164461999-05-09 Richard M. Stallman <rms@gnu.org>
16447
16448 * s/irix5-2.h (NO_WTMP_FILE): Define it.
16449
16450 * filelock.c (get_boot_time): Handle NO_WTMP_FILE.
16451
164521999-05-05 Andrew Innes <andrewi@gnu.org>
16453
16454 * w32fns.c (w32_strict_painting): New variable.
16455 (w32_wnd_proc): Use it to select repaint rules.
16456 (syms_of_w32fns): Defvar it.
16457
164581999-05-04 Andrew Innes <andrewi@gnu.org>
16459
16460 * w32fns.c (x_to_w32_charset): Fix typo: want to map all Japanese
16461 charsets to the standard Windows charset for Japanese.
16462
164631999-05-04 Ken'ichi Handa <handa@gnu.org>
16464
16465 * xterm.c (x_load_font): Fix typo (`>' -> `=').
16466
16467 * ccl.h (struct ccl_program): New member stack_idx.
16468
16469 * ccl.c (ccl_prog_stack_struct): Declare it as static.
16470 (ccl_driver): Setup stack_idx and ccl_prog correctly. Update them
16471 before returing.
16472 (setup_ccl_program): Initialize ccl->stack_idx to 0.
16473
164741999-05-03 Jason Rumney <jasonr@altavista.net>
16475
16476 * w32term.c (dumpglyphs): Always fill background for italic fonts.
16477
164781999-05-03 Eli Zaretskii <eliz@is.elta.co.il>
16479
16480 * dired.c (make_time): Make argument type be time_t.
16481
164821999-05-02 Eli Zaretskii <eliz@is.elta.co.il>
16483
16484 * msdos.c (unibyte_display_via_language_environment): Add extern.
16485
83c8f461 164861999-05-02 Richard M. Stallman <rms@gnu.org>
26901792
DL
16487
16488 * xdisp.c (display_text_line): Convert unibyte char to multibyte
16489 if unibyte_display_via_language_environment is set.
16490 (unibyte_display_via_language_environment):
16491 Variable moved from xfns.c and elsewhere.
16492 (syms_of_xfns): Set up Lisp var.
16493
16494 * xfns.c (unibyte_display_via_language_environment):
16495 Variable moved to xdisp.c.
16496 (syms_of_xfns): Don't set up Lisp var here.
16497
16498 * msdos.c (unibyte_display_via_language_environment):
16499 Variable moved to xdisp.c.
16500 (syms_of_msdos): Don't set up Lisp var here.
16501
16502 * w32fns.c (unibyte_display_via_language_environment):
16503 Variable moved to xdisp.c.
16504 (syms_of_w32fns): Don't set up Lisp var here.
16505
165061999-05-02 Andrew Innes <andrewi@gnu.org>
16507
16508 * s/ms-w32.h (HAVE_FSYNC): New macro.
16509 (fsync): Map to _commit.
16510 (ftruncate): Map to _chsize.
16511
16512 * w32term.c (dumpglyphs): On Windows NT, do output in Unicode even
16513 for ASCII, if enabled, to avoid memory allocation overhead for
16514 implicit Unicode conversion. Also, recognize that ASCII and
16515 Latin-1 have a trivial conversion to Unicode, so x_2byte_buffer
16516 already contains the Unicode characters in that case.
16517 (construct_drag_n_drop): Remove old code that was
16518 trashing the drop location.
16519
16520 * w32select.c (Fw32_set_clipboard_data): Undo last change to add
16521 nlines to encoding_buffer_size (real bug was in a ccl program in
16522 lisp/international/coding.el).
16523
16524 * w32reg.c (w32_get_string_resource): Check for name in current
16525 user area, and if not found look in the local machine area.
16526
16527 * w32fns.c (w32_list_bdf_fonts): Initialize n_fonts.
16528 (Fw32_shell_execute): New function; used to support browse-url.
16529 (syms_of_w32fns): Register it.
16530 (w32_load_system_font): Force max width to be average
16531 char width for fixed-pitch fonts, to avoid unnecessary redisplay
16532 slowdown.
16533 (x_to_w32_charset): Define VIETNAMESE_CHARSET if not
16534 already defined.
16535 (syms_of_w32fns): Set Vw32_phantom_key_code to 255.
16536
16537 * unexw32.c (get_section_info): Dump back the entire EMDATA
16538 section if we can put Emacs' initialized data in a separate
16539 section, otherwise use the my_begdata/my_edata method.
16540
16541 * makefile.nt ($(BLD)\w32term.obj): Add dependency on w32heap.h.
16542
16543 * coding.c (decode_eol): Set produced/consumed values to zero if
16544 src_bytes is <= 0 on entry.
16545
165461999-05-02 Jason Rumney <jasonr@altavista.net>
16547
16548 * w32term.c (w32_write_glyphs, w32_clear_end_of_line,
16549 w32_clear_frame, clear_cursor, x_display_bar_cursor,
16550 x_display_box_cursor, x_set_window_size): Use phys_cursor_on
16551 field in frame.
16552 (do_line_dance): Updated WRT xterm.c. Use macros where possible.
16553 (dumprectangle): Take into account the width of a left-side
16554 scroll bar.
16555
16556 * w32proc.c (sys_kill): Attach to current foreground thread
16557 when grabbing focus; necessary on NT 5.0.
16558
16559 * w32fns.c (w32_wnd_proc) [WM_PAINT]: Use rectangle from
16560 GetUpdateRect rather than BeginPaint.
16561 (w32_wnd_proc): Attach to current foreground thread
16562 when grabbing focus; necessary on NT 5.0.
16563 (w32_wnd_proc) [W32_DEBUG_DISPLAY]: Add output for
16564 debugging display messages.
16565 (w32_to_x_charset): Put wildcard last in unknown charsets to avoid
16566 false matching.
16567
165681999-05-02 Kenichi HANDA <handa@etl.go.jp>
16569
16570 * coding.c (setup_raw_text_coding_system): Call
16571 setup_coding_system to initialize the fields of struct
16572 coding_system correctly.
427ec082 16573
26901792
DL
165741999-04-26 Kenichi HANDA <handa@etl.go.jp>
16575
16576 * xterm.c (x_list_fonts): Fix previous change.
16577
165781999-04-26 Richard Stallman <rms@gnu.org>
16579
16580 * config.in (HAVE_LIBXP): Add #undef.
16581 * Makefile.in (LIB_MOTIF_EXTRA): Check HAVE_LIBXP.
16582
165831999-04-12 Ken'ichi Handa <handa@gnu.org>
16584
16585 * xterm.c (x_list_fonts): Trap X errors so that Emacs doesn't die
16586 by them.
16587
165881999-04-12 Karl Heuer <kwzh@gnu.org>
16589
16590 * s/freebsd.h (BSD_SYSTEM): Define for FreeBSD 4 as with FreeBSD 3.
16591
165921999-04-11 Ken'ichi Handa <handa@gnu.org>
16593
16594 * fontset.c (Fset_fontset_font): Fix previous change.
16595
165961999-04-09 Ken'ichi Handa <handa@gnu.org>
16597
16598 * fontset.c (Fquery_fontset): Check for fontset aliases here.
16599 (Fnew_fontset, Fset_fontset_font): Don't check for them here.
16600
166011999-04-08 Richard Stallman <rms@gnu.org>
16602
16603 * process.c (Faccept_process_output): Check validity of PROCESS.
16604
166051999-04-08 Eli Zaretskii <eliz@gnu.org>
16606
16607 * msdos.c (jp_kbd_translate_table): Fix the other \ key.
16608
166091999-04-07 Richard Stallman <rms@gnu.org>
16610
16611 * xfns.c (x_set_font): Fix error message.
16612
16613 * fontset.c (Fquery_fontset): Don't check for fontset aliases here.
16614 (Fnew_fontset, Fset_fontset_font): Check for them here.
16615 (Ffontset_info, Fnew_fontset, Fset_fontset_font):
16616 Fix error message syntax.
16617
16618 * buffer.c (Fmake_indirect_buffer): Copy multibyte status
16619 from the base buffer.
16620 (Fset_buffer_multibyte): Copy new multibyte status
16621 into the buffer's indirect buffers.
16622
166231999-04-07 Ken'ichi Handa <handa@gnu.org>
16624
16625 * fns.c (base64_encode_1): Don't add unnecessary newline at the
16626 tail.
16627
166281999-04-06 Richard Stallman <rms@gnu.org>
16629
16630 * dired.c (Ffile_attributes): Doc fix.
16631
16632 * keymap.c (Faccessible_keymaps): Really initialize i_byte.
16633 Convert 0200 to meta only in a unibyte string.
16634 (Fkey_description): Likewise.
16635
16636 * eval.c (do_autoload): Preserve match data.
16637
166381999-04-06 Kenichi HANDA <handa@etl.go.jp>
16639
16640 * w32fns.c (x_to_w32_font): Provide sufficient buffer to
16641 encode_coding to avoid carryover.
16642
16643 * coding.c: Add comments for decode_coding and encode_coding.
16644
16645 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>: Fix bug of handling
16646 a composite character by skipping its leading code.
16647 <CCL_WriteMultibyteChar2>: Handle non-ascii single byte character
16648 correctly.
16649
16650 * coding.c: Add comments for decode_coding and encode_coding.
16651
16652 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>: Fix bug of handling
16653 a composite character by skipping its leading code.
16654 <CCL_WriteMultibyteChar2>: Handle non-ascii single byte character
16655 correctly.
16656
166571999-04-06 Eli Zaretskii <eliz@gnu.org>
16658
16659 * msdos.c (dos_rawgetc): Don't zero out c if private translation
16660 table was used.
16661 (jp_kbd_translate_table): Support C-\.
16662 (it_kbd_translate_table): Map `>' correctly.
16663 (it_keyboard): Add `>'.
16664
166651999-04-06 Richard Stallman <rms@gnu.org>
16666
16667 * intervals.c (graft_intervals_into_buffer): Turn off
16668 inhibit_modification_hooks around calling Fset_text_properties.
16669
166701999-04-05 Kenichi HANDA <handa@etl.go.jp>
16671
16672 * xterm.c (dumpglyphs): Be sure to fill the whole background of
16673 glyphs.
16674
166751999-04-05 Eli Zaretskii <eliz@gnu.org>
16676
16677 * msdos.c (jp_kbd_translate_table): Fix last change.
16678
166791999-04-04 Eli Zaretskii <eliz@gnu.org>
16680
16681 * msdos.c (struct kbd_translate): New struct, for key translation
16682 tables private to certain national keyboard layouts.
16683 (struct dos_keyboard_map): Add a pointer to a private translation
16684 table.
16685 (jp_kbd_translate_table): Private table for the Japanese
16686 keyboard.
16687 (jp_keyboard): Japanese keyboard layout.
16688 (it_kbd_translate_table): Private table for the Italian keyboard.
16689 (it_keyboard): Use it_kbd_translate_table.
16690 (keyboard_layout_list): Add the Japanese keyboard.
16691 (dos_rawgetc): Use the keyboard-private translation table, if
16692 available.
16693 (abort) [__DJGPP_MINOR__ >= 2]: Raise SIGABRT.
16694
166951999-04-02 Kenichi HANDA <handa@etl.go.jp>
16696
16697 * xdisp.c (redisplay_window): When we call compute_motion with
16698 HPOS got from w->last_point_x, call it with DID_MOTION 1.
16699 (display_text_line): Stop the loop for processing overlay strings
16700 when we reach the right edge of the window.
16701
83c8f461 167021999-03-31 Richard M. Stallman <rms@gnu.org>
26901792
DL
16703
16704 * doc.c (get_doc_string): When UNIBYTE and DEFINITION are 0,
16705 let the data control whether string is unibyte.
16706
167071999-03-30 Richard M. Stallman <rms@gnu.org>
16708
16709 * macros.c (Fexecute_kbd_macro): Save real_this_command.
16710 (pop_kbd_macro): Restore the saved real_this_command.
16711 (Fcall_last_kbd_macro): Set real_this_command to the macro.
16712
167131999-03-26 Richard M. Stallman <rms@gnu.org>
16714
16715 * buffer.c (Fset_buffer_modified_p): Don't lock or unlock
16716 if buffer-file-name is nil.
16717
167181999-03-25 Jason Rumney <jasonr@altavista.net>
16719
16720 * w32select.c (Fw32_set_clipboard_data): Take into account line
16721 ends when calculating clipboard storage needed for non-ASCII text.
16722
167231999-03-25 Andrew Innes <andrewi@gnu.org>
16724
16725 * makefile.nt (PREPARED_HEADERS): Change name of paths.h to epaths.h.
16726 (epaths.h): Renamed from paths.h.
427ec082
SS
16727 (clean):
16728 ($(BLD)\filelock.obj):
16729 ($(BLD)\lread.obj):
26901792
DL
16730 ($(BLD)\w32fns.obj): Renamed paths.h to epaths.h.
16731
167321999-03-23 Ken'ichi Handa <handa@gnu.org>
16733
16734 * coding.c (encode_coding_iso2022): Initialize dummy arguments to
16735 ENCODE_ISO_CHARACTER for the previous change on this macro.
16736
167371999-03-23 Kenichi Handa <handa@etl.go.jp>
16738
16739 * xdisp.c (decode_mode_spec_coding): Handle integer value in
16740 eoltype correctly for backward compatibility.
16741
167421999-03-20 Kenichi HANDA <handa@etl.go.jp>
16743
16744 * coding.c (ENCODE_ISO_CHARACTER): Check validity of CHARSET. If
16745 invalid, produce the buffer internal byte sequence without encoding.
16746
167471999-03-19 Karl Heuer <kwzh@gnu.org>
16748
16749 * editfns.c (Fformat): Accept %i format.
16750
167511999-03-17 Karl Heuer <kwzh@gnu.org>
16752
16753 * filelock.c (get_boot_time): Test tempname, not filename.
16754
167551999-03-17 Jason Rumney <jasonr@altavista.net>
16756
e5619f6b
JR
16757 * w32bdf.h: Merged patches from Meadow; introduce bitmap cache to
16758 speed display.
16759
16760 * w32bdf.c: Merged patches from Meadow; introduce bitmap cache to
16761 speed display.
16762 (get_cached_font_char, cache_char_offset, get_bitmap_with_cache)
16763 New functions.
16764 (w32_free_bdf_font, seek_char, w32_get_bdf_glyph, w32_BDF_TextOut)
16765 Use bitmap cache.
26901792
DL
16766
16767 * w32fns.c (enum_font_cb2): Set the font height to be the
16768 character height, not the cell height.
16769 (Fw32_select_font): Initialize font dialog with current default font.
16770 (Vw32_system_coding_system): New variable.
16771 (w32_strict_filenames): Add comment.
16772 (w32_to_x_font): Decode font name using Vw32_system_coding_system.
427ec082 16773 (x_to_w32_font): Encode font name using Vw32_system_coding_system.
26901792
DL
16774 (syms_of_w32fns): Add w32-system-coding-system.
16775
167761999-03-15 Richard M. Stallman <rms@gnu.org>
16777
16778 * xterm.c (XTread_socket) <ConfigureNotify>:
16779 If cursor pos is outside the new frame size, mark cursor as off.
16780
167811999-03-14 Ken'ichi Handa <handa@gnu.org>
16782
16783 * xdisp.c (try_window_id): Initialize val.ovstring_chars_done to 0.
16784
16785 * xterm.c (x_load_font): Trap X errors so that Emacs doesn't die
16786 by them.
16787
167881999-03-14 Richard M. Stallman <rms@gnu.org>
16789
16790 * macros.c (Fexecute_kbd_macro): Initialize executing_macro_iterations
16791 at beginning.
16792
167931999-03-14 Jason Rumney <jasonr@altavista.net>
16794
16795 * w32fns.c (w32_strict_fontnames): New variable.
16796 (Fx_create_frame): Formatting fix.
16797 (w32_load_system_font): Keep trying to load non-existant font
16798 if w32_strict_fontnames is nil. Formatting fix.
16799 (syms_of_w32fns): Add w32-strict-fontnames.
16800
16801 * w32term.c (W32_TEXTOUT): Do not multiply nchars by charset_dim.
16802 (dumpglyphs): Formatting fixes.
16803
168041999-03-14 Geoff Voelker <voelker@cs.washington.edu>
16805
16806 * w32fns.c (w32_wnd_proc): Handle WM_GETMINMAXINFO message.
16807
168081999-03-10 Karl Heuer <kwzh@gnu.org>
16809
16810 * puresize.h (BASE_PURESIZE): Increase to 505000.
16811
168121999-03-09 Richard M. Stallman <rms@gnu.org>
16813
16814 * emacs.c (main) [CLASH_DETECTION]: Call init_filelock.
16815
16816 * filelock.c (init_filelock): New function.
16817
168181999-03-09 Dave Love <fx@gnu.org>
16819
16820 * fileio.c (Ffile_directory_p): Doc fix.
16821
83c8f461 168221999-03-05 Richard M. Stallman <rms@gnu.org>
26901792
DL
16823
16824 * coding.c (setup_coding_system): Check for CODING_SYSTEM = nil.
16825
168261999-03-08 Richard M. Stallman <rms@gnu.org>
16827
16828 * filelock.c (get_boot_time): Reduce scope of #ifdef BOOT_TIME
16829 to only the part that uses get_boot_time_1.
16830
168311999-03-07 Dave Love <fx@gnu.org>
16832
16833 * fileio.c (Finsert_file_contents): Use xfree.
16834
168351999-03-06 Kenichi Handa <handa@etl.go.jp>
16836
16837 * Makefile.in (callproc.o, coding.o, fileio.o, msdos.o, process.o,
16838 term.o, xselect.o): Depend on ccl.h.
16839
168401999-03-05 Geoff Voelker <voelker@cs.washington.edu>
16841
16842 * makefile.nt: Remove common multiple file compilation commands.
16843
168441999-03-04 Takeshi YAMADA <yamada@cslab.kecl.ntt.co.jp>
16845
16846 * fns.c (Fbase64_encode_string): Allocate sufficient memory for
16847 newlines added when the arg NO-LINE-BREAK is nil.
16848
168491999-03-04 Karl Heuer <kwzh@gnu.org>
16850
16851 * search.c (Fstring_match, Fposix_string_match): Doc fix.
16852
16853 * buffer.c (syms_of_buffer): Doc fix for case-fold-search.
16854
168551999-03-04 Dave Love <fx@gnu.org>
16856
16857 * term.c (term_init): Use xmalloc, not malloc.
16858
16859 * callproc.c (Fcall_process): Use xmalloc, xfree.
16860
168611999-03-03 Andreas Schwab <schwab@gnu.org>
16862
16863 * eval.c (Fdefconst): Doc fix.
16864
168651999-03-01 Kenichi Handa <handa@etl.go.jp>
16866
16867 * coding.c: Comment for ISO 2022 encoding mechanism modified.
16868
168691999-03-01 Eli Zaretskii <eliz@gnu.org>
16870
16871 * w16select.c (get_clipboard_data): Always stop at the first null byte.
16872
168731999-02-28 Richard M. Stallman <rms@gnu.org>
16874
16875 * filelock.c (get_boot_time): Support FreeBSD way to read boot-time.
16876
16877 * cmds.c (internal_self_insert): Calculate column properly
16878 in overwrite-of-tab case.
16879
168801999-02-27 Andreas Schwab <schwab@gnu.org>
16881
16882 * emacs.c (main) [DOUG_LEA_MALLOC]: Don't use unsetenv, it calls
16883 malloc in glibc 2.1.
16884
168851999-02-26 Richard Stallman <rms@gnu.org>
16886
16887 * Makefile.in: paths.h and paths.in renamed to epaths.h and epaths.in.
16888
16889 * epaths.in: Renamed from paths.in.
16890 This avoids a conflict with a system header file paths.h on GNU/Linux.
16891
16892 * callproc.c, lread.c, w32fns.c, xfns.c, xrdb.c:
16893 Use epaths.h istead of paths.h.
16894
168951999-02-26 Andreas Schwab <schwab@gnu.org>
16896
16897 * emacs.c (main) [DOUG_LEA_MALLOC]: Work around a bug in glibc's
16898 malloc.
16899
169001999-02-25 Dave Love <fx@gnu.org>
16901
16902 * buffer.c (syms_of_buffer): Doc fix for enable-multibyte-characters.
16903
169041999-02-25 Richard Stallman <rms@gnu.org>
16905
16906 * filelock.c (get_boot_time): Use WTMP_FILE for file name.
16907 (WTMP_FILE): Default definition in case not defined.
16908 (get_boot_time_1): Test that file exists before trying to read it.
427ec082 16909
26901792
DL
169101999-02-25 Ken'ichi Handa <handa@gnu.org>
16911
16912 * keymap.c (push_key_description): If enable-multibyte-characters
16913 is nil and C is single byte, push C as is.
16914
169151999-02-24 Kenichi Handa <handa@etl.go.jp>
16916
16917 * keymap.c (push_key_description): If enable-multibyte-characters
16918 is non-nil, try to convert unibyte character to multibyte. For
16919 invalid multibyte character, show all bits by octal form.
16920 (Fsingle_key_description): Check the validity of charset for a
16921 generic character.
16922
169231999-02-23 Richard M. Stallman <rms@gnu.org>
16924
16925 * fileio.c (Ffile_regular_p): Undo previous change.
16926
16927 * eval.c (Fdefconst): Doc fix.
16928
16929 * filelock.c (get_boot_time): Don't use BUFSIZ.
16930
169311999-02-22 Andrew Innes <andrewi@gnu.org>
16932
16933 * makefile.nt ($(BLD)\w32bdf.obj): Add missing continuation character.
16934 (EXTRA_LINK): Do version test with strings.
16935
169361999-02-22 Andreas Schwab <schwab@gnu.org>
16937
16938 * fns.c (Fbase64_encode_string): Fix last change.
16939
16940 * termhooks.h (event_kind): Add user_signal.
16941
16942 * keyboard.c (Qusr1_signal, Qusr2_signal): New variables.
16943 (syms_of_keyboard): Initialize them.
16944 (lispy_user_signals): New variable.
16945 (make_lispy_event): Handle user_signal event type.
16946
16947 * emacs.c: Don't define Qusr1_signal and Qusr2_signal.
16948 (syms_of_emacs): Don't initialize them.
16949 (handle_USR1_signal, handle_USR2_signal): Set event type to
16950 user_signal instead of non_ascii_keystroke, and use plain integers
16951 as code instead of Lisp symbols.
16952
169531999-02-21 Eli Zaretskii <eliz@delysid.gnu.org>
16954
16955 * fileio.c: (lstat) [!S_ISLNK]: Use stat instead of lstat.
16956
169571999-02-21 Richard Stallman <rms@gnu.org>
16958
16959 * filelock.c (get_boot_time_1): Put this in #ifdef BOOT_TIME.
16960
16961 * print.c (print_error_message): Don't crash if (cdr data)
16962 is not a list.
16963
169641999-02-21 Eli Zaretskii <eliz@gnu.org>
16965
16966 * fileio.c (lstat) [!S_ISLNK]: Use stat instead of lstat.
16967
169681999-02-20 Andrew Innes <andrewi@gnu.org>
16969
16970 * vm-limit.c (memory_warnings) [WINDOWSNT]: Reset lim_data on each
16971 run, since size can vary from run to run.
16972
16973 * makefile.nt (EXTRA_LINK, LINK_FLAGS): Ensure base relocation
16974 data is included, to enable profiling.
16975 ($(EMACS)): Map file not needed for emacs.exe.
16976
16977 * emacs.c (main): [!SYSTEM_MALLOC]: Call realloc and free as well
16978 as malloc before calling uninterrupt_malloc, for consistency.
16979 This also enables profiling to work on WINDOWSNT.
16980
169811999-02-18 Richard Stallman <rms@gnu.org>
16982
16983 * Makefile.in (emacs.o): Depend on termhooks.h.
16984 (filelock.o): Depend on systime.h.
16985
169861999-02-18 Ken'ichi Handa <handa@gnu.org>
16987
16988 * coding.c (Fdecode_sjis_char): Use %x for formatting error message.
16989 (Fdecode_big5_char): Likewise.
16990
169911999-02-17 Richard Stallman <rms@gnu.org>
16992
16993 * insdel.c (adjust_markers_for_replace): When doing an insertion
16994 (replacing a region of zero length), handle markers at the
16995 insertion point properly.
16996
169971999-02-17 Andrew Innes <andrewi@gnu.org>
16998
16999 * w32fns.c (Vw32_quit_key): New variable.
17000 (post_character_message): Use it.
17001 (syms_of_w32fns): DEFVAR it.
17002
170031999-02-16 MORIOKA Tomohiko <morioka@jaist.ac.jp>
17004
17005 * fns.c (Fbase64_encode_string): New optional argument `NO_LINE_BREAK'.
17006
170071999-02-16 Richard Stallman <rms@gnu.org>
17008
17009 * filelock.c (within_one_second): New function.
17010 (current_lock_owner): Use that.
17011 (get_boot_time): Use /proc/uptime if available.
17012 Otherwise, if nothing found in wtmp, try wtmp.1.gz and so on.
17013 (get_boot_time_1): New subroutine taken from get_boot_time.
427ec082 17014
26901792
DL
170151999-02-16 Richard Stallman <rms@gnu.org>
17016
17017 * emacs.c (Qusr1_signal, Qusr2_signal): New variables.
17018 (syms_of_emacs): Init and staticpro them.
17019 (handle_USR1_signal): Don't run any code, just queue up an event.
17020 (handle_USR2_signal): Likewise.
17021
170221999-02-16 Eli Zaretskii <eliz@gnu.org>
17023
17024 * dired.c (Ffile_attributes): If the file's size doesn't fit in
17025 an integer, return it as a float. Doc string fixed.
17026
170271999-02-16 Richard Stallman <rms@gnu.org>
17028
17029 * emacs.c (Qusr1_signal, Qusr2_signal): New variables.
17030 (syms_of_emacs): Init and staticpro them.
17031 (handle_USR1_signal): Don't run any code, just queue up an event.
17032 (handle_USR2_signal): Likewise.
17033
170341999-02-15 Kenichi Handa <handa@etl.go.jp>
17035
17036 * coding.c (Fdecode_sjis_char, Fencode_sjis_char): Handle
17037 ASCII correctly. Signal error on invalid characters.
17038 (Fdecode_big5_char, Fencode_big5_char): Likewise.
17039
170401999-02-15 Eli Zaretskii <eliz@gnu.org>
17041
17042 * w16select.c (get_clipboard_data): Work around a bug in Windows95
17043 DOS box which doubles the reported size of text in the clipboard.
17044
170451999-02-15 Kenichi Handa <handa@etl.go.jp>
17046
17047 * coding.c (decode_coding_iso2022): Don't set
17048 coding->composed_chars to 0 here.
17049 (setup_coding_system): Set coding->composed_chars to 0 here.
17050
170511999-02-10 Richard Stallman <rms@gnu.org>
17052
17053 * fileio.c (Ffile_regular_p): Use lstat.
17054
170551999-02-09 Richard Stallman <rms@gnu.org>
17056
17057 * unexelf.c (HAS_SBSS_SECTION): Define this in some cases.
17058 (unexec): Test this instead of specific systems.
17059
17060 * m/macppc.h: New file.
17061
170621999-02-08 Dave Love <fx@gnu.org>
17063
17064 * fns.c (Fyes_or_no_p, Fy_or_n_p): Doc fix.
17065
170661999-02-08 Ken'ichi Handa <handa@gnu.org>
17067
17068 * coding.c (ccl_coding_driver): On encoding, coding->produced_char
17069 should be set to coding->produced.
17070
170711999-02-07 Paul Fisher <rao@gnu.org>
17072
17073 * fns.c (IS_BASE64_IGNORABLE, READ_QUADRUPLET_BYTE): New macros.
17074 (base64_decode_1): Use READ_QUADRUPLET_BYTE.
17075
170761999-02-07 Markus Rost <markus.rost@mathematik.uni-regensburg.de>
17077
17078 * editfns.c (Fformat): Doc fix.
17079
170801999-02-06 Richard Stallman <rms@gnu.org>
17081
17082 * process.c (syms_of_process): defsubr it.
17083 (Fprocess_running_child_p): New function.
17084
170851999-02-05 Andrew Innes <andrewi@gnu.org>
17086
17087 * w32term.c (construct_drag_n_drop): Call DraqQueryPoint before
17088 recording drop position.
17089
170901999-02-05 Ken'ichi Handa <handa@gnu.org>
17091
17092 * coding.c (encode_coding_iso2022): Before writing out an invalid
17093 code, reset graphic planes and registers if necessary.
17094
17095 * term.c (encode_terminal_code): Fix previous change.
17096
170971999-02-04 Eli Zaretskii <eliz@gnu.org>
17098
17099 * w16select.c (last_clipboard_text, clipboard_storage_size): New
17100 static variables.
17101 (set_clipboard_data): Save a copy of the text we put into
17102 clipboard in last_clipboard_text.
17103 (get_clipboard_data): If the clipboard text is identical to what
17104 last_clipboard_text holds, pretend there's no data in the clipboard.
17105
171061999-02-03 Richard Stallman <rms@gnu.org>
17107
17108 * s/gnu.h (NLIST_STRUCT): Add #undef.
17109
171101999-02-03 Eli Zaretskii <eliz@gnu.org>
17111
17112 * w16select.c (Fw16_set_clipboard_data): When the text needs to be
17113 encoded, set its pointer and size as returned by encode_coding.
17114
171151999-02-02 Ken'ichi Handa <handa@gnu.org>
17116
17117 * fns.c (Fset_char_table_default): To handle the case that CH is
17118 an ASCII char, use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
17119
171201999-02-02 Andrew Innes <andrewi@gnu.org>
17121
17122 * w32fns.c (syms_of_w32fns): Change default value of
17123 w32-mouse-move-interval to 0, so that the mouse wheel/rocker on
17124 some mice works properly.
17125
171261999-02-02 Eli Zaretskii <eliz@gnu.org>
17127
17128 * w16select.c (set_clipboard_data): Correctly null-terminate the
17129 string to be put into the Windows clipboard. Use xbuf_addr.
17130
171311999-02-01 Richard Stallman <rms@gnu.org>
17132
17133 * buffer.c (Fset_buffer_multibyte): Error if buffer is indirect.
17134
171351999-01-31 Richard Stallman <rms@gnu.org>
17136
17137 * process.c (process_send_signal): If CURRENT_GROUP is `lambda'
17138 then don't send the signal if the shell owns the terminal.
17139 (Finterrupt_process): Doc change.
427ec082 17140
26901792
DL
171411999-01-31 Andrew Innes <andrewi@gnu.org>
17142
17143 * unexw32.c: (ROUND_UP_DST_AND_ZERO): New macro.
17144 (copy_executable_and_dump_data): Use it to ensure alignment slop
17145 is zeroed.
17146
171471999-01-30 Andrew Innes <andrewi@gnu.org>
17148
17149 * w32.c (init_environment): Change argv[0] to contain the full
17150 path to Emacs.
17151
17152 * emacs.c (main) [WINDOWSNT]: Pass argv to init_environment.
17153
171541999-01-29 Ken'ichi Handa <handa@gnu.org>
17155
17156 * xterm.c (x_new_fontset): For ASCII font, don't use the font name
17157 returned by x_new_font (the resolved one) but use the font name
17158 set in the fontset specification.
17159 (x_load_font): For the height of font, if normarl ascent and
17160 descent value are larger than those in max_bounds field, use the
17161 former.
17162
171631999-01-28 Eli Zaretskii <eliz@gnu.org>
17164
17165 * xdisp.c (decode_mode_spec_coding): Fix previous change.
17166
171671999-01-27 Geoff Voelker <voelker@cs.washington.edu>
17168
17169 * makefile.nt: Use full path to temacs.exe when dumping.
17170
171711999-01-27 Jason Rumney <jasonr@altavista.net>
17172
17173 * w32fns.c (w32_load_system_font): Do not load unlisted fonts if
17174 list was reliable.
17175 (enum_fontex_cb1, enum_fontex_cb2): New functions.
17176 (w32_list_bdf_fonts): New parameter; max_names. Callers updated.
17177 (w32_list_synthesized_fonts): New function.
17178 (w32_list_fonts): Use maxnames. Use EnumFontFamiliesEx when
17179 available instead of EnumFontFamilies. List synthesized fonts if
17180 Vw32_enable_italics is non-nil.
427ec082 17181
26901792
DL
171821999-01-27 Richard Stallman <rms@gnu.org>
17183
17184 * s/ptx4.h (SETUP_SLAVE_PTY): Use the ptem module if it exists.
17185 Don't complain if ttcompat does not exist.
17186
17187 * w32fns.c (x_set_frame_parameters): gcpro as needed.
17188
171891999-01-27 Andrew Innes <andrewi@gnu.org>
17190
17191 * w32fns.c (w32_wnd_proc): Fix bug introduced by previous change;
17192 the lwindow, rwindow and apps keys could not be used as function
17193 keys, because they were being passed to TranslateMessage which
17194 ignores them. Also, key was being changed to SPC.
17195
17196 * makefile.nt: Do make version comparison as strings.
17197
171981999-01-27 Eli Zaretskii <eliz@gnu.org>
17199
17200 * coding.c (syms_of_coding): eol-mnemonic-* variables are now
17201 strings, not characters.
17202
17203 * coding.h: Likewise.
17204
17205 * xdisp.c (decode_mode_spec_coding): Display the EOL type as a
17206 string.
17207
172081999-01-26 Dave Love <fx@gnu.org>
17209
17210 * emacs.c (main): Up-date copyright.
17211
172121999-01-25 Dave Love <fx@gnu.org>
17213
17214 * coding.c (syms_of_coding): Doc fix for inhibit-eol-conversion.
17215
172161999-01-25 Andreas Schwab <schwab@gnu.org>
17217
17218 * eval.c (Fsignal): Move comment to avoid confusing make-docfile.
17219
172201999-01-23 Richard M. Stallman <rms@borg.ai.mit.edu>
17221
17222 * xfns.c (x_set_frame_parameters): gcpro as needed.
17223
17224 * window.c (Fset_window_point): If WINDOW is selected but the
17225 current buffer is not its buffer, don't use Fgoto_char.
17226
172271999-01-22 Richard M. Stallman <rms@gnu.org>
17228
17229 * syntax.c (scan_sexps_forward): Delete duplicate code
17230 to set prev_from_syntax, above start of main loop.
17231 At startinstring, check syntax when checking for a match.
17232
172331999-01-22 Jason Rumney <jasonr@altavista.net>
17234
17235 * w32bdf.c: New file.
17236 * w32bdf.h: New file.
17237 * makefile.nt: Add w32bdf.c and w32bdf.h.
17238
17239 * w32gui.h: Include w32bdf.h.
17240 (W32FontStruct) Add bdf element.
17241
17242 * w32term.h (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_MAX_WIDTH):
17243 Support BDF fonts.
17244
17245 * w32term.c (W32_TEXTOUT): New macro.
17246 (dumpglyphs): Support BDF fonts. Use W32_TEXTOUT macro.
17247 Simplify baseline calculation. Detect SJIS by font, not glyph.
17248 Call SetTextAlign.
17249 (syms_of_w32term): Remove "jisx0212-sjis" from
17250 w32-charset-to-codepage-alist.
17251 Replace "ksc5601" with "ksc5601.1987" in w32-charset-to-codepage-alist.
17252 Add "ksc5601.1992' to w32-charset-to-codepage-alist.
427ec082 17253
26901792
DL
17254 * w32fns.c (Vw32_bdf_filename_alist): New variable.
17255 (x_destroy_bitmap): Returns void not int.
17256 (x_set_border_pixel): Returns void.
17257 (w32_load_bdf_font): New function.
17258 (w32_load_system_font): New function, was w32_load_font. List
17259 fonts before loading. Explicitly set encoding for SJIS fonts.
17260 Set default_ascent to 0 as comment indicates.
17261 (w32_load_font): Call w32_load_system_font and w32_load_bdf_font.
17262 (w32_unload_font): Support BDF fonts.
17263 (w32_to_x_charset): Fix mappings to avoid wildcard mismatches.
17264 Autodetect whether to use koi8-r instead of iso8859-5.
17265 Associate "ksc5601.1987" with HANGUEL_CHARSET.
17266 Associate "ksc5601.1992" with JOHAB_CHARSET.
17267 (x_to_w32_charset): Make consistent with w32_to_x_charset.
17268 (w32_to_x_font): Add resolution.
17269 (x_to_w32_font): Use font resolution to calculate height if supplied.
17270 (w32_font_match): Handle wildcards anywhere within field.
17271 (enumfont_t): Remove unused head pointer.
17272 (enum_font_cb2): Dereference elfLogFont.
17273 (w32_list_bdf_fonts): New function.
17274 (w32_list_fonts): Use one_w32_dispay_info instead of insisting on
17275 valid frame. Remove MessageBox. Support BDF fonts.
17276 (Fw32_find_bdf_fonts): New function.
17277 (syms_of_w32fns): Add Vw32_bdf_filename_alist and
17278 Sw32_find_bdf_fonts.
17279
172801999-01-21 Andrew Innes <andrewi@gnu.org>
17281
17282 * makefile.nt (temacs): Use del to delete file, not rm.
17283
172841999-01-19 Richard Stallman <rms@psilocin.ai.mit.edu>
17285
17286 * keyboard.c (read_key_sequence): Fix previous change.
17287
17288 * xterm.c (same_x_server): Detect treat ":0" and "unix:0"
17289 as the same. Treat "myname:0" as the same as those two.
17290
172911999-01-19 Jason Rumney <jasonr@altavista.net>
17292
17293 * w32fns.c (x_to_w32_charset): Add iso8859-9.
17294 (w32_to_x_charset): Fix charset mappings.
17295
17296 * w32term.c: Remove codepage macros. Remove redundant BIG5 macros.
17297 (dumpglyphs): Move definitions out of block containing goto.
17298 Remove redundant code for BIG5.
17299 Use w32_codepage_for_font instead of
17300 w32_codepage_for_charset. Add cast to int where float
17301 operation is assigned to int.
17302 (Vw32_charset_to_codepage_alist): New variable.
17303 (w32_codepage_for_charset): Removed.
427ec082
SS
17304 (w32_codepage_for_font): New function, replacing
17305 w32_codepage_for_charset.
26901792
DL
17306 (syms_of_w32term): Add and initialize
17307 w32-charset-to-codepage-alist.
17308
173091999-01-17 Richard Stallman <rms@psilocin.ai.mit.edu>
17310
17311 * xselect.c (x_handle_selection_clear): Don't clear the
17312 selection if Emacs still owns it through a different display.
17313
173141999-01-17 Andrew Innes <andrewi@gnu.org>
17315
17316 * w32proc.c: (w32_executable_type): Relax the check to identify
17317 cygwin-compiled applications, because the exact dll name varies
17318 with release. Now only require the name to start "cygwin".
17319
17320 * w32heap.h: (ROUND_UP):
17321 (ROUND_DOWN): New macros.
17322 (need_to_recreate_heap): Renamed to using_dynamic_heap.
17323 (init_heap): New extern.
17324 (data_region_size):
17325 (recreate_heap):
17326 (read_in_bss):
17327 (map_in_heap):
17328 (round_to_next):
17329 (w32_fatal_reload_error):
17330 (get_section_size): Obsolete externs removed.
17331
17332 * w32heap.c: (RVA_TO_PTR): Redefine to convert RVA to address in
17333 current process.
17334 (round_to_next): Obsolete function removed.
17335 (preload_heap_section): New variable.
17336 (data_region_size): Obsolete variable removed.
17337 (allocate_heap): Modified to determine end of static heap section
17338 used during preload, and use that as initial base address for
17339 dynamic heap instead of hard-coded value.
17340 (sbrk): Remove call to allocate_heap; handled by init_heap. Skip
17341 calls to commit or decommit pages when allocating from static heap
17342 section during preload.
17343 (recreate_heap): Obsolete function removed.
17344 (init_heap): New function to initialize internal sbrk heap
17345 variables. Uses static heap section during preload, otherwise
17346 calls allocate_heap to reserve a heap region dynamically.
17347 (round_heap): Use ROUND_UP macro instead of round_to_next.
17348
17349 * unexw32.c: Major rewrite to support cleaner method of dumping; a
17350 static "bss" section is used for heap space during preload, and
17351 bss data is now written to the proper section area when dumping.
17352 (need_to_recreate_heap): Renamed to using_dynamic_heap.
17353 (heap_index_in_executable): Obsolete variable removed.
17354 (data_section): New variable.
17355 (data_start_va): Renamed to data_start.
17356 (data_start_file): Obsolete variable removed.
17357 (bss_section):
17358 (extra_bss_size):
17359 (bss_section_static):
17360 (bss_start_static):
17361 (bss_size_static):
17362 (extra_bss_size_static):
17363 (heap_section): New variables.
17364 (_start): Remove code based on old unexec method. Call init_heap
17365 to initialize sbrk heap.
17366 (close_file_data): Update size of file when closing, so that
17367 unexec doesn't have to work out exact size in advance.
17368 (get_bss_info_from_map_file):
17369 (get_section_size): Obsolete functions removed.
17370 (rva_to_section): Fix minor bug, and add a work-around for a bug
17371 in very old linkers.
17372 (offset_to_section):
17373 (relocate_offset): New functions.
17374 (OFFSET_TO_RVA):
17375 (RVA_TO_OFFSET):
17376 (RVA_TO_SECTION_OFFSET):
17377 (PTR_TO_RVA):
17378 (PTR_TO_OFFSET):
17379 (OFFSET_TO_PTR): New macros.
17380 (get_section_info): Modify to support new unexec method;
17381 determines address ranges in process that need dumping, and COFF
17382 sections where data will be dumped. Allows for static and global
17383 bss data to be in separate ranges. No longer relies on knowledge
17384 of section names.
17385 (copy_executable_and_dump_data_section): Renamed
17386 copy_executable_and_dump_data. Completely rewritten to copy
17387 executable section by section, so that raw data areas can be
17388 expanded to hold dumped data as necessary. Allows for bss data to
17389 be in same section as initialized data. Reduces size of static
17390 heap section to that used during preload.
17391 (dump_bss_and_heap):
17392 (w32_fatal_reload_error):
17393 (read_in_bss):
17394 (map_in_heap): Obsolete functions removed.
17395 (unexec): Rounds off preload heap to nearest page rather than
17396 virtual allocation unit. Modified to match other changes.
17397
17398 * mem-limits.h: (get_lim_data): Use reserved_heap_size instead of
17399 data_region_size.
17400
17401 * makefile.nt: (TEMACS_TMP): New macro.
17402 ($(TEMACS)): Output to TEMACS_TMP from link, use post-link
17403 processor to add static heap section in support of new unexec.
17404
17405 * lastfile.c: Include config.h to pick up data layout pragmas.
17406 [WINDOWSNT]: Remove explicit pragma.
17407
174081999-01-12 Kenichi Handa <handa@etl.go.jp>
17409
17410 * coding.c (Fdecode_sjis_char): Decode Japanese Katakana character
17411 correctly.
17412 (Fencode_sjis_char): Encode Japanese Katakana character correctly.
17413
174141999-01-11 Dave Love <fx@gnu.org>
17415
17416 * coding.c (syms_of_coding): Doc fix for inhibit-eol-conversion.
17417
174181999-01-11 Richard Stallman <rms@psilocin.ai.mit.edu>
17419
17420 * keyboard.c (read_key_sequence): In key-translation-map and
17421 function-key-map, handle symbol with array as fn def.
17422 In function-key-map, handle symbol with keymap as fn def,
17423 and autoloaded definitions.
427ec082 17424
26901792
DL
17425 * puresize.h (BASE_PURESIZE): Increment to 500000.
17426
17427 * print.c (Qtemp_buffer_setup_hook): New variable.
17428 (syms_of_print): Init and staticpro that.
17429 (temp_output_buffer_setup): Run Qtemp_buffer_setup_hook.
17430
174311999-01-11 Kenichi Handa <handa@etl.go.jp>
17432
17433 * insdel.c (del_range_1): Call signal_after_change.
17434 (del_range_byte): Likewise.
17435 (del_range_both): Likewise.
17436 (del_range_2): Don't call signal_after_change.
17437
17438 * xdisp.c (message_dolog): Use insert_1_both to avoid running any
17439 Lisp code here.
17440
174411999-01-07 Richard Stallman <rms@psilocin.ai.mit.edu>
17442
17443 * eval.c (find_handler_clause): If SIG is nil (memory full error),
17444 never run the debugger, and don't bother checking the args
17445 to see whether the debugger should be run.
17446
174471999-01-06 Richard Stallman <rms@psilocin.ai.mit.edu>
17448
17449 * keyboard.c (read_key_sequence):
17450 Tell get_keyelt to look handle autoloads.
17451 Handle symbols defined as keymaps, and autoloaded keymaps.
17452
174531999-01-06 Kenichi Handa <handa@etl.go.jp>
17454
17455 * search.c (search_buffer): Fix previous change.
17456
174571999-01-06 Eli Zaretskii <eliz@gnu.org>
17458
17459 * w16select.c (set_clipboard_data): Terminate the text with a null
17460 character. Don't allow to put binary data into the clipboard.
17461 Return zero in case of success, 1 or 2 otherwise.
17462 (get_clipboard_data): Only bail out if the null character is in
17463 the last 32-byte chunk of clipboard data
17464 (Fw16_set_clipboard_data): Make ok and put_status be unsigned. If
17465 they save binary data, print a message in the echo area saying the
17466 text was not put into the clipboard.
17467
17468 * msdos.c (IT_write_glyphs): Move constant expression out of the loop.
17469
174701999-01-06 Andreas Schwab <schwab@gnu.org>
17471
17472 * systty.h [__GLIBC__ >= 2]: Check __FAVOR_BSD instead of
17473 _BSD_SOURCE, the latter is always defined.
17474
174751999-01-05 Richard Stallman <rms@psilocin.ai.mit.edu>
17476
17477 * fns.c (Frequire): Don't fail to unbind bindings.
17478
174791999-01-02 Richard Stallman <rms@psilocin.ai.mit.edu>
17480
17481 * emacs.c (main) [DOUG_LEA_MALLOC]: Don't call r_alloc_reinit.
17482
17483 * charset.c (Ffind_charset_region): Fix doc typo.
17484
174851998-12-31 Eli Zaretskii <eliz@mescaline.gnu.org>
17486
17487 * msdos.c (IT_write_glyphs): Convert unibyte characters to
17488 multibyte in unibyte buffers only.
17489
17490 * keymap.c (Fdefine_prefix_command): Accept a third argument NAME
17491 and pass it to Fmake_sparse_keymap.
17492
174931998-12-29 Richard Stallman <rms@psilocin.ai.mit.edu>
17494
17495 * alloc.c (MMAP_MAX_AREAS): New macro.
17496 (allocate_vectorlike, make_uninit_multibyte_string): Use that.
17497 (init_alloc_once): Use that.
17498
17499 * s/gnu-linux.h [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it.
17500
17501 * alloc.c (lisp_malloc, lisp_free): New functions.
17502 Use them instead of malloc, xmalloc, and xfree, for Lisp objects.
17503 Don't set allocating_for_lisp in the callers; let lisp_malloc do it.
17504 (n_interval_blocks, n_float_blocks): New variable.
17505 (n_cons_blocks, n_vectors, n_symbol_blocks): New variable.
17506 (n_marker_blocks, n_string_blocks): New variable.
17507 (init_intervals, make_interval): Set a count variable.
17508 Use lisp_malloc instead of setting allocating_for_lisp.
17509 (init_float, make_float, init_cons, Fcons): Likewise.
17510 (allocate_vectorlike, init_symbol, Fmake_symbol): Likewise
17511 (init_marker, allocate_misc, init_strings): Likewise.
17512 (make_uninit_multibyte_string): Likewise.
17513 (gc_sweep, compact_strings): Decrement the count variables.
17514
17515 * alloc.c (uninterrupt_malloc): Don't store Emacs's hooks
17516 into the old_..._hook variables.
17517
175181998-12-28 Richard Stallman <rms@psilocin.ai.mit.edu>
17519
17520 * keyboard.c: In each active map, for each menu bar item, use only
17521 the first submap.
17522 (menu_bar_one_keymap): Initialize menu_bar_one_keymap_changed_items.
17523 (menu_bar_item): Update and test menu_bar_one_keymap_changed_items.
17524 (syms_of_keyboard): Staticpro and init it.
17525
427ec082 17526 * xmenu.c (single_keymap_panes):
26901792
DL
17527
175281998-12-28 Andrew Innes <andrewi@delysid.gnu.org>
17529
17530 * w32fns.c (w32_msg_pump): Ignore WM_NULL message posted to thread
17531 by complete_deferred_msg.
17532 (post_character_message): Cancel all deferred messages when
17533 quit_char is typed, in order to break out of potential deadlocks.
17534 (cancel_all_deferred_msgs): New function.
17535 (complete_deferred_msg): Don't abort if msg not found; may have
17536 been cancelled.
17537 (Fw32_reconstruct_hot_key): Use pre-interned symbols.
17538 (Fw32_send_sys_command): Wait for system command to
17539 complete before returning.
427ec082 17540
26901792
DL
17541 * w32term.c (x_iconify_frame): Wait for frame to be iconified; do
17542 not set async_iconified flag though.
17543
17544 * w32proc.c: (Vw32_start_process_inherit_error_mode): New variable.
17545 (create_child): Use it.
17546 (syms_of_ntproc): Defvar it. Also fix docstrings for
17547 w32-start-process-share-console and w32-start-process-show-window.
17548
17549 * unexw32.c (_start): Force system calls accessing unmounted
17550 devices to fail without prompting.
17551
175521998-12-26 Richard Stallman <rms@psilocin.ai.mit.edu>
17553
17554 * emacs.c (main): Call memory_warnings and uninterrupt_malloc
17555 even when starting the dumped Emacs.
17556
17557 * keymap.c (Fsingle_key_description): Handle (control ?x) etc.
17558 (Fkey_description): Handle lists like vectors.
17559
175601998-12-21 Kenichi Handa <handa@etl.go.jp>
17561
17562 * callint.c (Fcall_interactively) <'C'>: Give Fread_char Qnil
17563 because of the change of the second argument of Fread_char.
17564
17565 * charset.c (Fcharset_after): Check range. If POS is out of
17566 range, return nil.
17567
17568 * keyboard.c (read_char): Don't bind input-method-exit-on-first-char.
17569
17570 * lread.c (Fread_char): Change the meaning of the second argument.
17571 (Fread_event): Likewise.
17572 (Fread_char_exclusive): Likewise.
17573
17574 * print.c (printchar): Fix previous change.
17575
17576 * process.c (read_process_output): Decide the multibyteness of
17577 string given to a process filter by a coding system used for
17578 decoding the process output.
17579
175801998-12-21 Eli Zaretskii <eliz@mescaline.gnu.org>
17581
17582 * xterm.c (dumpglyphs): Don't convert 7-bit ASCII characters via
17583 nonascii-translation-table.
17584 * msdos.c (IT_write_glyphs): Likewise.
17585 * fns.c (concat): Likewise.
17586 * charset.c (unibyte_char_to_multibyte): Likewise.
17587 * insdel.c (copy_text, count_size_as_multibyte): Likewise.
17588
175891998-12-21 Andreas Schwab <schwab@delysid.gnu.org>
17590
17591 * doc.c (Fdocumentation): Change the doc string for prefix
17592 commands to make it a complete sentence in one line.
17593
175941998-12-16 Petri Kaurinkoski <Petri.Kaurinkoski@hut.fi>
17595
17596 * s/irix6-5.h: New file.
17597 * s/irix6-0.h (IRIX6): Define this symbol.
17598 * s/usg5-4.h (TIOCSIGSEND): Don't define this if irix6.
17599 (bcopy, bcmp, bzero): Likewise.
17600 * m/iris4d.h (LIBS_MACHINE): Leave this blank if irix6.5.
17601 (C_SWITCH_MACHINE): New value for irix6.5.
17602
176031998-12-15 Richard Stallman <rms@gnu.org>
17604
17605 * fns.c (Fbase64_decode_region, Fbase64_decode_string):
17606 Do free malloc'd memory even in case of failure. Use xfree, not free.
17607 (Fbase64_encode_region, Fbase64_encode_string): Use xfree, not free.
17608 (base64_decode_1): Don't fail for short lines.
17609
17610 * print.c (printchar): Outputting multibyte characters
17611 to echo area always makes it multibyte.
17612
17613 * search.c (search_buffer): Don't use Boyer-Moore
17614 to search for an invalid multibyte code.
17615 In unibyte case, no need to check whether there are translations
17616 in more than one charset; just set charset_base to 0.
17617
176181998-12-15 Ken'ichi Handa <handa@delysid.gnu.org>
17619
17620 * print.c (printchar): Cancel previous change.
17621
176221998-12-15 Kenichi Handa <handa@etl.go.jp>
17623
17624 * callproc.c: Include "ccl.h".
17625 (Fcall_process): Doc-string modified. Set CODING_MODE_LAST_BLOCK
17626 bit in argument_coding.mode to tell encoding procedure to flush
17627 data. While encoding arguments, if argument_coding uses CCL
17628 program, initialize it again after encoding.
17629 (Fcall_process_region): Doc-string modified. Handle the case that
17630 NARGS is 3.
17631
17632 * ccl.c (CCL_SUCCESS): Don't set ccl->ic.
17633 (ccl_driver) <CCL_End>: Pretend that all source text is consumed.
17634 Set `ic' to the head of this command.
17635 (ccl_driver) <CCL_ReadMultibyteChar2>: Return a single byte 8-bit
17636 code for an invalid code.
17637 (setup_ccl_program): If the arg VEC is nil, skip setting ups
17638 based on VEC.
17639
17640 * charset.c (Qunknown): New variable.
17641 (init_charset_once): Intern and staticpro Qunknown. Initialize
17642 all elements of Vcharset_symbol_table to Qunknown.
17643 (find_charset_in_str): New arg MULTIBYTE. If it is zero, check
17644 unibyte characters only. For an invalid composition sequence, set
17645 CHARSETS[1] to 1.
17646 (Ffind_charset_region): Call find_charset_in_str with an
17647 appropriate MULTIBYTE arg. If undefined charsets are found,
17648 include `unknown' is the return value.
17649 (Ffind_charset_string): Likewise.
17650 (Fsplit_char): If CHAR is invalid, return `(unknown CHAR)'.
17651 (str_cmpchar_id): Max composite character code should be less than
17652 GENERIC_COMPOSITION_CHAR.
17653
17654 * charset.h (find_charset_in_str): Update declaration.
17655
17656 * coding.c (DECODE_DESIGNATION): Jump to label_invalid_code if
17657 final_char is invalid.
17658 (decode_coding): If coding->type is coding_type_ccl, call
17659 ccl_coding_driver even if SRC_BYTES is zero.
17660 (code_convert_region): Update `inserted' correctly after calling
17661 coding->post_read_conversion. Even after the code converter
17662 consumed all source text, call it once more if it is
17663 coding_type_ccl to flush out data.
17664
17665 * fileio.c (Finsert_file_contents): Even if INSERTED is zero, if
17666 CODING is handled by CCL program, call code_convert_region.
17667
17668 * fns.c (string_char_to_byte): Handle invalid multibyte sequence
17669 correctly.
17670 (string_byte_to_char): Likesize.
17671
17672 * print.c (printchar): When outputting a multibyte character to
17673 echo area, always set message_enable_multibyte to 1.
17674
17675 * process.c (read_process_output): If NBYTES is zero and
17676 CODING_MODE_LAST_BLOCK bit is not yet set in coding->mode, set it
17677 and try decoding again.
17678 (Fprocess_send_eof): If the coding system of PROCESS
17679 requires flushing, call send_process with null-string at first.
17680
17681 * w16select.c (Fw16_set_clipboard_data): Call find_charset_in_str
17682 with MULTIBYTE arg 0.
17683 * w32select.c (Fw32_set_clipboard_data): Likewise.
17684 * xselect.c (lisp_data_to_selection_data): Likewise.
17685
176861998-11-30 Richard Stallman <rms@psilocin.ai.mit.edu>
17687
17688 * search.c (Freplace_match): Set OPOINT clearly for the case
17689 where point is in the middle of the text to be replaced.
17690
17691 * xdisp.c (display_text_line): When handling HPOS < 0 after loop,
17692 if compute_motion fails to advance at all, don't back it up.
17693
176941998-12-10 Geoff Voelker <voelker@cs.washington.edu>
17695
17696 * w32.c (w32_get_long_filename): Handle root dirs correctly.
17697
427ec082 17698 * s/ms-w32.h (LOCALTIME_CACHE): Define.
26901792
DL
17699
177001998-12-09 Richard Stallman <rms@gnu.org>
17701
17702 * insdel.c (insert_from_buffer_1): Properly count the size
17703 of output from conversion to multibyte even when input
17704 is split across the gap.
17705
177061998-12-09 Karl Heuer <kwzh@gnu.org>
17707
17708 * keyboard.c: Doc fixes.
17709
17710 * s/irix4-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Increase space.
17711
177121998-12-08 Andrew Innes <andrewi@harlequin.co.uk>
17713
17714 * w32select.c (Fw32_get_clipboard_data): Do not delete isolated CR
17715 characters, only convert CRLF to LF.
17716
177171998-12-08 Geoff Voelker <voelker@cs.washington.edu>
17718
17719 * makefile.nt: Do string comparision of _NMAKE_VER.
17720
177211998-12-06 Eli Zaretskii <eliz@mescaline.gnu.org>
17722
17723 * Makefile.in (msdos.o): Depend on termchar.h, charset.h,
17724 coding.h, and disptab.h
17725
17726 * msdos.c (Vdos_unsupported_char_glyph): New variable.
17727 (syms_of_msdos): DEFVAR_LISP it.
17728 (IT_insert_glyphs, IT_delete_glyphs): New functions which abort Emacs.
17729 (internal_terminal_init): Set up insert_glyphs_hook and
17730 delete_glyphs_hook to call them. Explicitly set char_ins_del_ok to 0.
17731 (unibyte_display_via_language_environment): New variable.
17732 (syms_of_msdos): Devfar it.
17733 (IT_write_glyphs): Honor glyph aliasing via Vglyph_table.
17734 Encode the character codes of the glyphs according to the
17735 terminal_coding in effect.
17736
177371998-12-04 Andreas Schwab <schwab@delysid.gnu.org>
17738
17739 * fns.c (Fstring_as_unibyte): Doc fix.
17740
177411998-12-03 Andreas Schwab <schwab@delysid.gnu.org>
17742
17743 * charset.h: Declare char_valid_p.
17744
177451998-12-03 Eli Zaretskii <eliz@mescaline.gnu.org>
17746
17747 * dosfns.c (dos_cleanup): Flush and fsync the termscript stream.
17748
17749 * msdos.c (init_environment): Record the time we started up.
17750 (IT_reset_terminal_modes): Don't restore the screen if we exit too
17751 fast after startup (aka crash).
17752
177531998-12-02 Geoff Voelker <voelker@cs.washington.edu>
17754
17755 * w32.c (check_windows_init_file): Use decode_env_path when
17756 using EMACSLOADPATH.
17757
177581998-12-02 Jason Rumney <jasonr@altavista.net>
17759
17760 * w32term.c (dumpglyphs): Use unsigned char arrays.
17761 Use FONT_MAX_WIDTH to detect and fudge proportional fonts
17762 for various languages.
17763 Compensate for fonts that have underhangs (e.g., Thai).
17764
17765 * w32term.h (FONT_MAX_WIDTH): New macro.
17766
177671998-12-02 Andrew Innes <andrewi@harlequin.co.uk>
17768
17769 * keyboard.c (Qlanguage_change): New variable.
17770 (syms_of_keyboard): Init it.
17771 (kbd_buffer_get_event) [WINDOWSNT]: Generate language-change events.
17772 (lispy_function_keys) [HAVE_NTGUI]: Remove names for modifier
17773 keys; add name for Escape key; extend to 256 elements.
17774 (parse_modifiers): Make non-static.
17775
17776 * keyboard.h (parse_modifiers): Declare prototype.
17777
17778 * termhooks.h (event_kind) [WINDOWSNT]: Define language_change_event.
17779
17780 * w32fns.c (w32_last_error): Fix cut+paste error.
17781 (Vw32_phantom_key_code): New variable.
17782 (Qhyper, Qsuper, Qmeta, Qalt, Qctrl, Qcontrol, Qshift): New variables.
17783 (syms_of_w32fns): Init and register them.
17784 (reset_modifiers): Use a more precise test for whether Emacs has
17785 keyboard focus. Synchronize state of all keys that can be used as
17786 modifiers, to overcome problems arising from hot-keys.
17787 (w32_key_to_modifier): Be careful not to call intern() to avoid
17788 requiring thread synchronization.
17789 (w32_msg_pump): Handle new WM_EMACS_TOGGLE_LOCK_KEY message.
17790 (w32_wnd_proc): Ensure lock key indicator lights are updated
17791 promptly on Windows 9x, by passing key events on to the system.
17792 (w32_wnd_proc): Use Vw32_phantom_key_code to stop system
17793 responding to Windows key events when not wanted.
17794 (w32_wnd_proc): Undo the mapping of Ctrl-Pause into cancel and
17795 Ctrl-NumLock into pause by the system.
17796 (w32_wnd_proc): Don't translate key combinations containing any
17797 modifiers other than shift (and capslock).
17798 (w32_wnd_proc): Reset modifier key states when receiving focus (we
17799 can't determine the key states until we have keyboard focus).
17800 (Fw32_toggle_lock_key): New function.
17801 (syms_of_w32fns): Defsubr it.
17802
17803 * w32inevt.c (key_event): Use Vw32_phantom_key_code. Undo the
17804 mapping of Ctrl-Pause into cancel, and Ctrl-NumLock into pause.
17805 (w32_console_toggle_lock_key): New function.
17806
17807 * w32term.h (WM_EMACS_TOGGLE_LOCK_KEY): New define.
17808
178091998-11-30 Richard Stallman <rms@psilocin.ai.mit.edu>
17810
17811 * search.c (Freplace_match): Set OPOINT clearly for the case
17812 where point is in the middle of the text to be replaced.
17813
17814 * xdisp.c (display_text_line): When handling HPOS < 0 after loop,
17815 if compute_motion fails to advance at all, don't back it up.
17816
178171998-11-28 Richard Stallman <rms@psilocin.ai.mit.edu>
17818
17819 * xfns.c (Qouter_window_id): New variable.
17820 (syms_of_xfns): Initialize it.
17821 (x_report_frame_params): Set up outer-window-id parameter.
17822
17823 * keymap.c (Fsingle_key_description): Fix previous change.
17824
178251998-11-26 Ken'ichi Handa <handa@delysid.gnu.org>
17826
17827 * lisp.h (Frequire): Update declaration.
17828
178291998-11-26 Kenichi Handa <handa@etl.go.jp>
17830
17831 * ccl.c (ccl_driver) <CCL_TranslateCharacter>: Don't suppress MSB
17832 if the charset is ascii.
17833 (ccl_driver) <CCL_TranslateCharacterConstTbl>: Likewise.
17834
17835 * charset.c (non_ascii_char_to_string): If C has modifier bits,
17836 make an appropriate one byte string.
17837 (char_bytes): Handle the case that C is a single byte char or has
17838 modifier bits.
17839
17840 * charset.h (CHAR_BYTES): If C has modifier bits, return 1.
17841
17842 * cmds.c (internal_self_insert): If C has modifier bits, insert
17843 appropriate one byte char.
17844
178451998-11-25 Richard Stallman <rms@psilocin.ai.mit.edu>
17846
17847 * fns.c (Fstring_as_unibyte, Fstring_as_multibyte):
17848 Clear text properties in the new string.
17849
178501998-11-24 Felix Lee <flee@cygnus.com>
17851
17852 * process.c (read_process_output): Call signal_after_change.
17853
178541998-11-24 Richard Stallman <rms@psilocin.ai.mit.edu>
17855
17856 * buffer.c (syms_of_buffer): Doc fix.
17857
17858 * keyboard.c (syms_of_keyboard): Doc fix.
17859
178601998-11-22 Richard Stallman <rms@psilocin.ai.mit.edu>
17861
17862 * frame.c (Fset_mouse_position): Doc fix.
17863
178641998-11-20 Richard Stallman <rms@psilocin.ai.mit.edu>
17865
17866 * keymap.c (Fmake_keymap): Doc fix.
17867
178681998-11-17 Kenichi Handa <handa@etl.go.jp>
17869
17870 * category.c (word_boundary_p): If C1 or C2 are composite
17871 characters, test their first components.
17872
178731998-11-16 Richard Stallman <rms@sucrose.ai.mit.edu>
17874
17875 * window.c (temp_output_buffer_show): Around temp-buffer-show-hook,
17876 don't do save-excursion, just restore selected window.
17877
17878 * window.c (window_loop): For UNSHOW_BUFFER,
17879 always do consider minibuffer windows.
427ec082 17880
26901792
DL
178811998-11-16 Kenichi Handa <handa@etl.go.jp>
17882
17883 * charset.h (SINGLE_BYTE_CHAR_P): Check if C is negative or not.
17884
17885 * charset.c (non_ascii_char_to_string): If C is negative, signal error.
17886
17887 * lisp.h (CHAR_TABLE_REF): Check if IDX is negative or not.
17888
17889 * s/bsdos4.h: New file.
17890
178911998-11-16 Kenichi Handa <handa@etl.go.jp>
17892
17893 * Makefile.in (abbrev.o): Depend on charset.h
17894 (bytecode.o): Depend on charset.h.
17895
17896 * bytecode.c: Include charset.h.
17897
17898 * abbrev.c: Include charset.h.
17899
17900 * syntax.h (SYNTAX_ENTRY_INT): For a composite character, check
17901 the first component.
17902
179031998-11-13 Ehud Karni <ehud@unix.simonwiesel.co.il>
17904
17905 * m/aviion-intel.h (LIBS_MACHINE): Delete redundant definition.
17906
179071998-11-11 Richard Stallman <rms@gnu.org>
17908
17909 * xterm.c (XTread_socket): Fix previous change in case F == 0.
17910
17911 * s/dgux5-4-3.h (BSD_PGRPS): Add #undef.
17912
17913 * s/dgux4.h (BROKEN_FIONREAD): #undef commented out.
17914 (INTERRUPT_INPUT): #define commented out.
17915
17916 * m/aviion-intel.h: New file.
17917
179181998-11-11 Eli Zaretskii <eliz@delysid.gnu.org>
17919
17920 * fns.c (MAX_ALLOCA): New macro.
17921 (Fbase64_encode_region, Fbase64_encode_string,
17922 Fbase64_decode_region, Fbase64_decode_string): Don't allocate
17923 more than MAX_ALLOCA bytes with alloca; otherwise use xmalloc.
17924
179251998-11-11 Ken'ichi Handa <handa@delysid.gnu.org>
17926
17927 * insdel.c (byte_combining_error): Error message improved.
17928
17929 * charset.c (char_valid_p): Handle a composite character correctly.
17930
179311998-11-11 Kenichi Handa <handa@etl.go.jp>
17932
17933 * charset.c (str_cmpchar_id): Check the byte sequence for
17934 composition more rigidly.
17935 (Fcompose_string): Allow DEL to be composed. Signal error if STR
17936 contains an invalid multibyte sequence.
17937
17938 * xterm.c (x_list_fonts): Don't change the value of maxnames.
17939
179401998-11-10 Andrew Innes <andrewi@harlequin.co.uk>
17941
17942 * w32term.h (struct w32_display_info): New element faked_key.
427ec082
SS
17943 (WM_EMACS_SETKEYBOARDLAYOUT):
17944 (WM_EMACS_REGISTER_HOT_KEY):
26901792 17945 (WM_EMACS_UNREGISTER_HOT_KEY): New message definitions.
427ec082
SS
17946 (LEFT_WIN_PRESSED):
17947 (RIGHT_WIN_PRESSED):
26901792
DL
17948 (APPS_PRESSED): New console keyboard modifier flags.
17949
17950 * w32term.c (convert_to_key_event): Removed.
17951 (is_dead_key): Copied to w32fns.c.
17952 (w32_read_socket): Generate language_change_event. Modify to work
17953 with keyboard handling changes in w32_wnd_proc.
17954
17955 * w32proc.c (sys_kill): Set extended key flag when faking
17956 Ctrl-Break keystrokes.
17957 (Fw32_get_locale_info): Allow LONGFORM parameter to specify an
17958 arbitrary locale property using a numerical index.
17959 (Vw32_valid_codepages): New variable.
427ec082
SS
17960 (enum_codepage_fn):
17961 (Fw32_get_valid_codepages):
17962 (Fw32_get_console_codepage):
17963 (Fw32_set_console_codepage):
17964 (Fw32_get_console_output_codepage):
17965 (Fw32_set_console_output_codepage):
17966 (Fw32_get_codepage_charset):
17967 (Fw32_get_valid_keyboard_layouts):
17968 (Fw32_get_keyboard_layout):
26901792
DL
17969 (Fw32_set_keyboard_layout): New functions, exposing Windows locale
17970 handling functions.
17971 (syms_of_ntproc): Register them.
17972
17973 * w32inevt.c: Include w32term.h and w32heap.h.
17974 (map_keypad_keys):
17975 (Vw32_enable_caps_lock):
17976 (Vw32_enable_num_lock):
17977 (Vw32_pass_lwindow_to_system):
17978 (Vw32_pass_rwindow_to_system):
17979 (Vw32_lwindow_modifier):
17980 (Vw32_rwindow_modifier):
17981 (Vw32_apps_modifier):
17982 (Vw32_scroll_lock_modifier):
17983 (w32_key_to_modifier): Add externs.
17984 (w32_kbd_mods_to_emacs): Recognize Windows keys, Apps key, and
17985 Scroll Lock as potential modifiers; exclude numpad keys from
17986 effect by CapsLock; act on Vw32_enable_caps_lock; remove obsolete
17987 code.
17988 (is_dead_key): Copy from w32fns.c.
17989 (w32_kbd_patch_key): Comment attempt to improve handling of
17990 dead-keys, and system bug relating to same on Windows NT. Work
17991 around the bug by calling ToUnicode and then converting to the
17992 correct codepage.
17993 (map_virt_key): Removed obsolete variable.
17994 (lispy_function_keys): Add extern.
17995 (key_event): Major rework of keyboard input handling: optionally
17996 recognize Windows keys and Apps key as modifiers; optionally treat
17997 NumLock, CapsLock and ScrollLock as function keys; let system
17998 translate keystrokes to characters to avoid system bugs relating
17999 to dead-key handling; preserve shift distinction for control
18000 characters. Remove some obsolete code.
18001
18002 * makefile.nt ($(BLD)\w32inevt.obj): Add dependencies on w32term.h
18003 and w32heap.h.
18004
18005 * w32fns.c (Vw32_pass_optional_keys_to_system): Variable removed.
18006 (Vw32_pass_lwindow_to_system):
18007 (Vw32_pass_rwindow_to_system):
18008 (Vw32_lwindow_modifier):
18009 (Vw32_rwindow_modifier):
18010 (Vw32_apps_modifier):
18011 (Vw32_enable_num_lock):
18012 (Vw32_enable_caps_lock):
18013 (Vw32_scroll_lock_modifier): New variables.
18014 (modifier_set): Return toggle state for Scroll Lock.
18015 (w32_key_to_modifier): New function. Returns chosen modifier bit
18016 for given key.
18017 (w32_get_modifiers): Returns modifier flags for
18018 non-keyboard input events.
18019 (construct_console_modifiers): Renamed from construct_modifiers;
18020 recognize Windows and Apps keys as modifiers.
18021 (w32_get_key_modifiers): New function. Returns modifier flags for
18022 keyboard input events.
18023 (map_keypad_keys): Make non-static. Use second arg as extended
18024 flag.
18025 (w32_grabbed_keys): New variable.
18026 (HOTKEY, HOTKEY_ID, HOTKEY_VK_CODE, HOTKEY_MODIFIERS): New macros.
18027 (register_hot_keys):
18028 (unregister_hot_keys):
18029 (lookup_vk_code):
18030 (w32_parse_hot_key):
18031 (Fw32_register_hot_key):
18032 (Fw32_unregister_hot_key):
18033 (Fw32_registered_hot_keys):
18034 (Fw32_reconstruct_hot_key): New functions to support hotkeys.
18035 (post_character_message): New function.
18036 (w32_msg_pump): Handle new messages for using hotkeys and changing
18037 keyboard layout/language.
18038 (w32_wnd_proc): Major rework of keyboard input handling:
18039 optionally recognize Windows keys and Apps key as modifiers;
18040 optionally treat NumLock, CapsLock and ScrollLock as function
18041 keys; let system translate keystrokes to characters to avoid
18042 system bugs relating to dead-key handling; preserve shift
18043 distinction for control characters; forward keyboard
18044 layout/language changes to lisp; detect and convert hot-key events
18045 to normal keystrokes.
18046 (syms_of_w32fns): Register new functions and variables.
18047 (w32_last_error): New function for use in debugging.
18048
180491998-11-10 Kenichi Handa <handa@etl.go.jp>
18050
18051 * category.h (CATEGORY_SET): Adjusted for the change of
18052 cmpchar_component.
18053 (CATEGORY_SET): Likewise.
18054
18055 * charset.c (cmpchar_component): New arg NOERROR. Check
18056 composition char ID more strictly.
18057 (Fcmpchar_component): Call cmpchar_component with NOERROR arg zero.
18058 (Fcmpchar_cmp_rule): If CHARACTER should be composed relatively,
18059 return 255.
18060 (Fcompose_string): Signal error if STR contains a rule-based
18061 composition character.
18062
18063 * charset.h (cmpchar_component): Proto-type adjusted.
18064
180651998-11-09 Kenichi Handa <handa@etl.go.jp>
18066
18067 * charset.c (string_to_non_ascii_char): Return correct length for
18068 a charset of dimension 2 and composition character.
18069
180701998-11-08 Richard Stallman <rms@sucrose.ai.mit.edu>
18071
18072 * keymap.c (Fsingle_key_description): Handle generic characters.
18073
18074 * process.c (Fprocess_status): Doc fix.
18075
180761998-11-06 Ken'ichi Handa <handa@delysid.gnu.org>
18077
18078 * charset.c (init_charset_once): Fix previous change.
18079
180801998-11-06 Kenichi Handa <handa@etl.go.jp>
18081
18082 * charset.c (string_to_non_ascii_char): Fix previous change.
18083 (char_valid_p): Check the validity of CHARSET by CHARSET_DEFINED_P.
18084
18085 * charset.h (SPLIT_NON_ASCII_CHAR): Check dimension of an invalid
18086 character correctly.
18087 (STRING_CHAR): Handle an invalid charater correctly.
18088
180891998-11-05 Kenichi Handa <handa@etl.go.jp>
18090
18091 * charset.c (string_to_non_ascii_char): Fix previous change.
18092
18093 * charset.h (MAKE_NON_ASCII_CHAR): Check validity of CHARSET.
18094
18095 * editfns.c (Fstring_to_char): Don't return a multibyte character
18096 if STRING is a unibyte string.
18097
18098 * indent.c (MULTIBYTE_BYTES_WIDTH): Check validity of a multibyte
18099 character.
18100
18101 * xdisp.c (display_text_line): Check validity of a multibyte character.
18102 (display_string): Likewise. Handle an invalid character correctly.
18103
181041998-11-05 Karl Heuer <kwzh@gnu.org>
18105
18106 * insdel.c (Fcombine_after_change_execute): Return nil, not junk.
18107 If nothing to do, return immediately.
18108 (syms_of_insdel): Initialize combine_after_change_buffer.
18109
181101998-11-05 Richard Stallman <rms@gnu.org>
18111
18112 * xterm.c (XTread_socket): ButtonPress clears f->mouse_moved.
18113
181141998-11-04 Geoff Voelker <voelker@cs.washington.edu>
18115
18116 * w32term.c (w32_enable_unicode_output): Rename from
18117 w32_no_unicode_output.
18118 (w32_use_unicode_for_codepage, syms_of_w32term): Use new name
18119 and new semantics.
18120
181211998-11-04 Jason Rumney <jasonr@altavista.net>
18122
18123 * w32fns.c (w32_list_fonts): Report an error if a frame has not
18124 been created yet.
18125
18126 * w32term.c (dumpglyphs): Use FRAME_FONT for w32_fill_area.
18127
181281998-11-04 Kenichi Handa <handa@etl.go.jp>
18129
18130 * charset.c (string_to_non_ascii_char): Change the check for the
18131 varidity of multibyte form.
18132 (update_charset_table): Check validity of BYTES. Don't set
18133 bytes_by_char_head here.
18134 (init_charset_once): Set bytes_by_char_head completely.
18135
18136 * frame.c (do_switch_frame): Cancel previous change.
18137
18138 * print.c (print_string): Check validity of a character.
18139 (print): Likewise.
18140
18141 * sysdep.c [nec_ews_svr4]: Extern *_sobuf.
18142
18143 * m/ews4800.h, s/ux4800.h: New files.
18144
181451998-11-03 Theodore Jump <tjump@tertius.com>
18146
18147 * makefile.nt: Compile multiple source files when possible.
18148
18149 * w32faces.c (Qmouse_face): Replace definition with extern decl.
427ec082 18150
26901792
DL
181511998-11-03 Andrew Innes <andrewi@delysid.gnu.org>
18152
18153 * w32.c (stat): GetFileInformationByHandle can legitimately fail,
18154 so don't rely on it succeeding.
18155
18156 * w32fns.c (x_to_w32_font): Specify DEFAULT_CHARSET in the w32
18157 LOGFONT struct if x font doesn't specify the charset.
18158 (x_to_w32_charset): Change >= to == when testing results of
18159 stricmp.
18160
181611998-11-02 Richard Stallman <rms@sucrose.ai.mit.edu>
18162
18163 * fns.c (Frequire): New arg NOERROR.
18164
181651998-11-02 Andrew Innes <andrewi@harlequin.co.uk>
18166
18167 * fileio.c (Fsubstitute_in_file_name) [DOS_NT]: Fix typo.
18168
181691998-10-31 Richard Stallman <rms@psilocin.ai.mit.edu>
18170
18171 * xfaces.c (Qmouse_face): Replace definition with extern decl.
18172 (syms_of_xfaces): Initialization deleted.
18173
18174 * textprop.c (Qmouse_face): Variable definition moved here.
18175 (syms_of_textprop): Initialize it.
18176
18177 * data.c (set_internal): For built-in maybe-local vars,
18178 when BINDFLAG is set, do not mark them as local.
18179
181801998-10-31 Ken'ichi Handa <handa@delysid.gnu.org>
18181
18182 * insdel.c (replace_range): Fix previous change.
18183
181841998-10-31 Kenichi Handa <handa@etl.go.jp>
18185
18186 * editfns.c (Fsubst_char_in_region): Fix previous change.
18187 (Ftranslate_region): Fix previous change.
18188
18189 * fns.c (Fbase64_decode_region): Fix previous change.
18190
18191 * frame.c (do_switch_frame): Update minibuf_window if necessary.
18192
18193 * insdel.c (byte_combining_error): New function.
18194 (CHECK_BYTE_COMBINING_FOR_INSERT): Call byte_combining_error.
18195 (insert_from_string_1): Set *(GPT_ADDR) to 0 before calling
18196 CHECK_BYTE_COMBINING_FOR_INSERT.
18197 (insert_from_buffer_1): Likewise.
18198 (adjust_after_replace): Check the posibility of inhibitted byte
18199 combining correctly.
18200 (replace_range): Before signaling an error for inhibitted byte
18201 combining, recover the buffer in a safe state.
18202 (del_range_2): Check the posibility of inhibitted byte combining
18203 correctly.
18204
182051998-10-30 Andreas Schwab <schwab@delysid.gnu.org>
18206
18207 * xselect.c (Vselection_coding_system): Doc fix.
18208
18209 * fns.c (Fbase64_encode_region): Use SET_PT_BOTH instead of SET_PT
18210 when we have both char and byte position. Fix type clashes.
18211
18212 * eval.c (Fsignal): Use a separate format string when passing
18213 error message string to fatal, in case it contains %'s.
18214
18215 * editfns.c (Fchar_after): Fix type clashes.
18216
18217 * charset.c (Fchar_bytes): Doc fix.
18218 (char_bytes): Fix returned value to match returned type.
18219 (syms_of_charset): Fix type clash in initialisation of
18220 Vauto_fill_chars.
18221
182221998-10-29 Geoff Voelker <voelker@cs.washington.edu>
18223
18224 * w32console.c (initialize_w32_display): Use buffer coords
18225 instead of buffer size (which may be larger than the window).
18226
18227 * fileio.c (init_fileio_once): New function.
18228
18229 * emacs.c (main): Invoke init_fileio_once.
18230
182311998-10-28 Paul Eggert <eggert@twinsun.com>
18232
18233 * xterm.c (XTread_socket): Check the returned value of
18234 XmbLookupString more carefully.
18235
182361998-10-28 Kenichi Handa <handa@etl.go.jp>
18237
18238 * coding.c (DECODE_CHARACTER_ASCII): Check validity of inserted code.
18239 (DECODE_CHARACTER_DIMENSION1): Likewise.
18240 (DECODE_CHARACTER_DIMENSION2): Likewise.
18241 (decode_coding_sjis_big5): Check the 2nd byte of SJIS correctly.
18242
18243 * editfns.c (Fsubst_char_in_region): Fix previous change.
18244 (Ftranslate_region): Fix previous change.
18245
18246 * insdel.c (check_markers): Check if markers are at character boundry.
18247 (adjust_markers_for_insert): Fix previous change.
18248 (count_combining_before): Don't limit the check at BEGV.
18249 (count_combining_after): Don't limit the check at ZV.
18250 (CHECK_BYTE_COMBINING_FOR_INSERT): New macro.
18251 (insert_1_both): Call CHECK_BYTE_COMBINING_FOR_INSERT.
18252 (insert_from_string_1): Likewise.
18253 (insert_from_buffer_1): Likewise.
18254 (adjust_after_replace): Inhibit bytes combined across region
18255 boundary. Update end_unchanged correctly.
18256 (replace_range): Call CHECK_BYTE_COMBINING_FOR_INSERT. Update
18257 end_unchanged correctly.
18258 (del_range_2): Inhibit bytes combined across region boundary.
18259 Update end_unchanged correctly.
18260
182611998-10-27 Geoff Voelker <voelker@cs.washington.edu>
18262
18263 * w32.c (check_windows_init_file): Also look in load path specified
18264 in environment.
18265
18266 * w32console.c (Fset_message_beep): Recognize 'silent.
18267 (w32_sys_ring_bell): Do nothing for the 'silent sound.
427ec082 18268
26901792
DL
18269 * w32fns.c (w32_color_map_lookup): Remove duplicate definition.
18270
18271 * w32select.c (Vnext_selection_coding_system): New variable.
18272 (syms_of_w32select): DEFVAR_LISP it.
18273 (Fw32_set_clipboard_data): Use Vnext_selection_coding_system if
18274 non-nil. Always convert multibyte strings.
18275 (Fw32_get_clipboard_data): Use Vnext_selection_coding_system if
18276 non-nil. Always convert a string that includes non-ASCII characters.
427ec082 18277
26901792
DL
182781998-10-27 Richard Stallman <rms@psilocin.ai.mit.edu>
18279
18280 * fns.c (Fbase64_decode_string): Doc fix.
18281 (Fbase64_decode_region, Fbase64_encode_string Fbase64_encode_region):
18282 Likewise.
18283
182841998-10-27 Dave Love <fx@gnu.org>
18285
18286 * fns.c (Fbase64_decode_region, Fbase64_encode_region): Fix
18287 newline in doc string.
18288
182891998-10-27 Kenichi Handa <handa@etl.go.jp>
18290
18291 * editfns.c (Fsubst_char_in_region): Correctly handle the case
18292 that byte combining before happens.
18293 (Ftranslate_region): Likewise.
18294
18295 * insdel.c (adjust_after_replace): Correctly handle the case that
18296 both byte combining before and byte combining after happen.
18297 (replace_range): Likewise.
18298
182991998-10-26 Kenichi Handa <handa@etl.go.jp>
18300
18301 * category.c (syms_of_category): Doc-string modified.
18302
18303 * coding.c (code_convert_region): Kill the work buffer created by
18304 pre-write-conversion.
18305
183061998-10-25 Jason Rumney <jasonr@altavista.net>
18307
18308 * emacs.c (main) [HAVE_NTGUI]: Invoke syms_of_fontset().
18309
183101998-10-23 Kenichi Handa <handa@etl.go.jp>
18311
18312 * coding.c (code_convert_region): While preserving the orignal
18313 point, pay attention to the byte combining problem.
18314
18315 * fns.c (Fbase64_decode_region): Pay attention to the byte
18316 combining problem.
18317
18318 * insdel.c (adjust_markers_for_insert): Adjust markers by taking
18319 combined_before_bytes and combined_after_bytes into account.
18320 (count_combining_after): Handle the case that LENGTH is zero.
18321 (adjust_after_replace): Record deletion at correct buffer
18322 position. Handle the case that LEN is zero.
18323 (replace_range): Record deletion at correct buffer position.
18324 (del_range_2): Call adjust_makers_for_replace to adjust makers for
18325 combined bytes.
18326
183271998-10-21 Richard Stallman <rms@psilocin.ai.mit.edu>
18328
18329 * alloc.c (Fgarbage_collect): Block input around most of the function.
427ec082 18330
26901792
DL
183311998-10-21 Kenichi Handa <handa@etl.go.jp>
18332
18333 * coding.c (setup_coding_system): Fix setting up
18334 coding->spec.ccl.valid_codes for CCL based coding system.
18335 (code_convert_region): Set point to FROM before inserting the
18336 result of pre-write-funciton. Preserve original point.
18337 (code_convert_string): If coding->type is coding_type_ccl, do
18338 conversion even if the length of conversion region is zero.
18339
18340 * fontset.c: Include frame.h before fontset.h.
427ec082 18341 (list_fonts_func): Fix prototype.
26901792
DL
18342
18343 * frame.c: Include frame.h before fontset.h.
18344
18345 * xterm.c: Likewise.
18346
183471998-10-21 Jason Rumney <jasonr@altavista.net>
18348
18349 * x-list-font.c (Fx_list_fonts): Access frame parameters throught
18350 general macros. Don't call x_list_font directory, instead call a
18351 function set in list_fonts_func.
18352
18353 * fontset.h (list_fonts_func): Fix prototype.
18354
183551998-10-20 Jason Rumney <jasonr@altavista.net>
18356
18357 * makefile.nt (w32fns.c): Add x-list-font.c to dependancies.
18358
18359 * w32faces.c: Update comments referring to obsolete structs.
18360 (allocate_face, copy_face, face_eql, load_font,
18361 Fpixmap_spec_p, free_frame_faces, new_computed_face,
18362 frame_update_line_height, merge_faces, compute_base_face,
18363 Fset_face_attribute_internal): Use fontset support based on xfaces.c.
18364
18365 * w32fns.c: (Vx_pixel_size_width): New global variable.
18366 (unibyte_display_via_language_environment): New global variable.
18367 (x_set_font): Add support for setting fontsets.
18368 (Fx_create_frame): Add check_w32(). Initialize fontsets. Fix
18369 font names to match xlfd-tight-regexp.
18370 (w32_load_font): Rewrite based on x_load_font.
18371 (x_to_w32_charset, w32_to_x_charset): Add character sets. Use
18372 `iso8859-1' rather than `ansi'.
18373 (w32_to_x_font): Remove `-' from font name. Remove the `-' off the
18374 end. Move charset into `charset registry' field.
18375 (enum_font_cb2): Check charsets match. Include width in font list.
18376 (w32_list_fonts): Rewrite based on x_list_fonts.
18377 Moved from w32term.c to have access to enumfont_t struct.
18378 (Fx_list_fonts): w32 specific version eliminated. Include
18379 `x-list-fonts.c'.
18380 (w32_get_font_info, w32_query_font, w32_find_ccl_program): New
18381 functions for fontset support - adapted from x_ equivalents.
18382 (syms_of_w32fns): New lisp variables initialised. Function
18383 pointers for fontset.c set up.
18384
427ec082 18385 * w32term.c: Include fontset.h. Define codepage macros.
26901792
DL
18386 Add ENCODE_BIG5 macro from coding.c.
18387 (w32_no_unicode_output): New variable.
18388 (w32_codepage_for_charset, w32_use_unicode_for_codepage): New
18389 functions.
18390 (BUILD_WCHAR_T, BYTE1, BYTE2): New macros.
18391 (dumpglyphs): Rewrite based on xterm.c equivalent.
18392 (x_new_font): Use functionality provided in fontset.c.
18393 (x_new_fontset): New function based on the one in xterm.c.
18394 (syms_of_w32term): Add w32-no-unicode-output flag.
18395
427ec082 18396 * w32term.h: Remove redundant font_info struct definition.
26901792
DL
18397 (Vx_pixel_size_width_font_regexp,
18398 unibyte_display_via_language_environment): Declare variables.
427ec082 18399 (w32_list_fonts, w32_get_font_info, w32_query_font, w32_load_font):
26901792
DL
18400 Declare functions.
18401 (w32_output): New fields font_baseline and fontset.
18402 (FRAME_FONTSET, FRAME_W32_FONT_TABLE): New macros.
18403
18404 * w32xfns.c: Include charset.h and fontset.h.
18405
184061998-10-20 Richard Stallman <rms@psilocin.ai.mit.edu>
18407
18408 * syntax.c (syms_of_syntax): Fix the setup of Qscan_error.
18409
184101998-10-20 Eli Zaretskii <eliz@mescaline.gnu.org>
18411
18412 * msdos.c (mouse_init): Reset the button press/release info of the
18413 mouse driver.
18414 (mouse_preempted): New variable.
18415 (dos_rawgetc): Don't generate mouse events if mouse is preempted.
18416 (XMenuActivate): Preempt the mouse during menu-handling loop.
18417 Release the current time slice while idling in the menu-handling
18418 loop. Leave the loop only if the user pressed, then released the
18419 same button. Discard all mouse events that are pending in the
18420 event queue before exiting.
18421
184221998-10-19 Richard Stallman <rms@psilocin.ai.mit.edu>
18423
18424 * editfns.c (Fformat): Increase buffer size for floating format.
18425
184261998-10-17 Kenichi Handa <handa@etl.go.jp>
18427
18428 * charset.c (Vauto_fill_chars, Qauto_fill_chars): New variables.
18429 (syms_of_charset): Staticpro and initialize Qauto_fill_chars.
18430 Declare auto-fill-chars as a Lisp variable and initialize it.
18431
18432 * charset.h (Vauto_fill_chars): Extern it.
18433
18434 * cmds.c (internal_self_insert): Check Vauto_fill_chars.
18435
184361998-10-16 Kenichi Handa <handa@etl.go.jp>
18437
18438 * casefiddle.c (casify_object): Use make_string instead of
18439 make_specified_string to cope with byte-combining situation.
18440
18441 * coding.c (decode_coding_iso2022): Set coding->fake_multibyte to
18442 1 when encountered with a code of the range 0x80..0x9F.
18443
184441998-10-14 Eli Zaretskii <eliz@mescaline.gnu.org>
18445
18446 * callproc.c (Fcall_process) [MSDOS]: Use $TMPDIR instead of
18447 trying $TMP and $TEMP, since the former is always set in msdos.c.
18448 (Fcall_process_region) [DOS_NT]: When looking for a place to put
18449 the temporary files, check $TMPDIR as well.
18450
184511998-10-14 Richard Stallman <rms@psilocin.ai.mit.edu>
18452
427ec082 18453 * process.c (exec_sentinel, read_process_output):
26901792
DL
18454 Restore waiting_for_user_input_p after running Lisp code.
18455
18456 * keyboard.c (parse_menu_item): Avoid initialization for Lisp_Object.
18457 (command_loop): Likewise.
18458
184591998-10-14 Kenichi HANDA <handa@etl.go.jp>
18460
18461 * data.c (Faset): Fix previous change.
18462
18463 * fns.c (Ffillarray): Fix previous change.
18464
18465 * insdel.c (adjust_markers_for_combining): This function deleted.
18466 (adjust_markers_for_replace): Correctly adjust marker positions.
18467 Don't record these adjustment because they were recorded already.
18468 (combine_bytes): Don't adjust markers here.
18469
184701998-10-13 Richard Stallman <rms@psilocin.ai.mit.edu>
18471
18472 * minibuf.c (Fdisplay_completion_list): Put on mouse-face properties.
18473
184741998-10-12 Richard Stallman <rms@psilocin.ai.mit.edu>
18475
18476 * keyboard.c (Fclear_this_command_keys): New function.
18477 (syms_of_keyboard): defsubr it.
18478
18479 * macros.c (Fexecute_kbd_macro): Set real_this_command.
18480
184811998-10-12 Kenichi Handa <handa@etl.go.jp>
18482
18483 * ccl.c (CCL_DECODE_SJIS, CCL_ENCODE_SJIS): Swap the definitions.
18484
18485 * charset.c (Fstring): Call make_string instead of
18486 make_string_from_bytes.
18487 (Ffind_charset_region): Include `composition' in the returned list
18488 if the region contains any composite characters.
18489 (Ffind_charset_string): Include `composition' in the returned list
18490 if the string contains any composite characters.
18491 (find_charset_in_str): Handle CMPCHARP arg correctly.
18492
18493 * coding.c (shrink_decoding_region): If a charset other than ascii
18494 is initially designated to G0, don't shrink the region.
18495 (shrink_encoding_region): Likewise.
18496
18497 * data.c (Faset): If ARRAY is a multibyte string, pay attention to
18498 byte-combining situation.
18499
18500 * fns.c (clear_string_char_byte_cache): New function.
18501 (Ffillarray): Handle multibyte string correctly.
18502
18503 * lisp.h (clear_string_char_byte_cache): Extern it.
18504
18505 * xselect.c (lisp_data_to_selection_data): Call
18506 find_charset_in_str with CMPCHARP arg 0.
18507 * w16select.c (Fw16_set_clipboard_data): Likewise.
18508 * w32select.c (Fw32_set_clipboard_data): Likewise.
18509
185101998-10-11 Richard Stallman <rms@psilocin.ai.mit.edu>
18511
18512 * keyboard.c (parse_menu_item): For top level of menu bar,
18513 accept ordinary commands, and treat them just like a keymap.
18514
185151998-10-11 Richard Stallman <rms@sucrose.ai.mit.edu>
18516
18517 * xdisp.c (redisplay_window): Clear w->window_end_valid
18518 before running the window-scroll-functions hook, if appropriate.
18519
185201998-10-10 Richard Stallman <rms@psilocin.ai.mit.edu>
18521
18522 * data.c (Fstring_to_number): Don't recognize floating point
18523 if base is not 10.
18524
18525 * window.c (window_loop): New alternative CHECK_ALL_WINDOWS.
18526 (check_all_windows): New function for debugging tests.
18527 (syms_of_window): Initialize it.
18528
18529 * window.c (Qwindow_configuration_p): New variable.
18530 (Fwindow_configuration_frame): New function.
18531 (syms_of_window): defsubr it.
18532 (Fset_window_configuration): Return t if frame is live.
18533 Use Qwindow_configuration_p.
18534
18535 * xfns.c (check_x_display_info): Don't use selected_frame
18536 if it is dead.
18537
185381998-10-09 Geoff Voelker <voelker@cs.washington.edu>
18539
18540 * w32fns.c (x_create_bitmap_from_file): Skip special files.
18541
185421998-10-08 Kenichi Handa <handa@etl.go.jp>
18543
18544 * buffer.h (inhibit_modification_hooks): Extern it.
18545
18546 * buffer.c (inhibit_modification_hooks): New variable.
18547 (init_buffer_once): Initialize inhibit_modification_hooks to 0.
18548
18549 * charset.c (invalid_character): Prepend `0' to octal
18550 representation. Give error sufficient args.
18551
18552 * coding.c (code_convert_region): Set inhibit_modification_hooks
18553 to 1 before calling Fset_text_properties.
18554
18555 * insdel.c (signal_before_change): If inhibit_modification_hooks
18556 is nonzero, do nothing.
18557 (signal_after_change): Likewise.
18558
185591998-10-08 Emilio Lopes <Emilio.Lopes@Physik.TU-Muenchen.DE>
18560
18561 * process.c: Doc fixes.
18562
185631998-10-08 Richard Stallman <rms@sucrose.ai.mit.edu>
18564
18565 * syntax.c (scan_lists): Bring FROM back into range BEGV...ZV.
18566
185671998-10-07 Geoff Voelker <voelker@cs.washington.edu>
18568
18569 * w32.c (init_ntproc): Check for Windows init file.
18570 (term_ntproc): Do not check for it here.
18571
185721998-09-28 Kenichi Handa <handa@etl.go.jp>
18573
18574 * coding.c (check_composing_code): Fix previous change. Now it
18575 alwasy returns 0 or -1.
18576 (decode_coding_iso2022): Adjusted for the above change.
18577 (encode_coding_iso2022): When encoding the last block, flush out
18578 tailing garbage bytes.
18579 (setup_coding_system): Delete unnecessary code.
18580 (shrink_decoding_region): Check translation table. If ASCII
18581 should be translated, give up shrinking.
18582 (shrink_encoding_region): Likewise.
18583 (SHRINK_CONVERSION_REGION_THRESHHOLD): New macro.
18584 (SHRINK_CONVERSION_REGION): New macro.
18585 (code_convert_region): Call SHRINK_CONVERSION_REGION. Delete text
18586 properties here.
18587 (code_convert_region): In the case of encoding, always calulate
18588 correct character number.
18589 (code_convert_string): Call SHRINK_CONVERSION_REGION.
18590 (code_convert_region1): Don't delete text properties here.
18591
18592 * insdel.c (adjust_after_replace): Don't delete text properties here.
18593
18594 * term.c (encode_terminal_code): Handle raw 8-bit codes correctly.
18595
185961998-09-27 Richard Stallman <rms@psilocin.ai.mit.edu>
18597
18598 * emacs.c (sort_args): Fill extra space with NULL ptrs.
18599
186001998-09-26 Kenichi Handa <handa@etl.go.jp>
18601
18602 * coding.h (struct coding_system): New member composed_chars.
18603
18604 * coding.c (check_composing_code): If the current composing
18605 sequence doesn't end properly, return -1.
18606 (DECODE_CHARACTER_ASCII): Update coding->composed_chars.
18607 (DECODE_CHARACTER_DIMENSION1): Likewise.
18608 (decode_coding_iso2022): Check validity of a composing sequence.
18609 (code_convert_string): If the length of text to be converted is
18610 shrunk to zero, don't perform code conversion.
18611 (shrink_decoding_region): Fix previous change.
18612
18613 * editfns.c (Fformat): Check format control characters.
18614
186151998-09-25 Kenichi Handa <handa@etl.go.jp>
18616
18617 * coding.c (decode_eol): While decoding DOS-like eol, handle a
18618 single CR code correctly.
18619 (shrink_decoding_region) <CODING_CATEGORY_IDX_ISO_7 or
18620 CODING_CATEGORY_IDX_ISO_7_TIGHT>: Skip also 8-bit codes.
18621
186221998-09-23 Geoff Voelker <voelker@cs.washington.edu>
18623
18624 * w32fns.c (w32_color_map_lookup): New function.
18625 (x_to_w32_color): Approximate colors ending in numbers if necessary.
18626
186271998-09-22 Kenichi Handa <handa@etl.go.jp>
18628
18629 * ccl.c (ccl_driver): Report correct CCL program counter on error.
18630
18631 * xmenu.c (single_submenu) [! HAVE_MULTILINGUAL_MENU]: Make
18632 strings unibyte.
18633 (xmenu_show) [! HAVE_MULTILINGUAL_MENU]: Likewise.
18634
186351998-09-22 Kenichi Handa <handa@etl.go.jp>
18636
18637 * callint.c (Fcall_interactively): Don't use input method when
18638 reading a character in the case of `c' code letter.
18639
186401998-09-21 Dave Love <fx@gnu.org>
18641
18642 * editfns.c (Fsave_restriction): Doc fix.
18643
186441998-09-21 Richard Stallman <rms@gnu.org>
18645
18646 * lread.c (build_load_history): Do add to Vload_history
18647 even when dumping Emacs.
18648
186491998-09-18 Kenichi Handa <handa@etl.go.jp>
18650
18651 * ccl.c (CCL_WRITE_CHAR): Don't use bcopy.
18652 (ccl_driver): If BUFFER-MAGNIFICATION of the CCL program is 0,
18653 cause error if the program is going to output some bytes. When
18654 outputing a string to notify an error, check the case that
18655 DST_BYTES is zero.
18656
427ec082 18657 * coding.h (CODING_FINISH_INTERRUPT): New macro.
26901792
DL
18658
18659 * coding.c (ccl_coding_driver): If ccl_driver is interrupted by a
18660 user or the CCL program executed an invalid command, return
18661 CODING_FINISH_INTERRUPT.
18662 (code_convert_region): Pay attention to the converters return
18663 value CODING_FINISH_NORMAL and CODING_FINISH_INTERRUPT.
18664
186651998-09-16 Kenichi Handa <handa@etl.go.jp>
18666
18667 * coding.c (code_convert_region): Update beg_unchanged and
18668 end_unchanged after we delete the source text.
18669
18670 * insdel.c (adjust_markers_for_replace): Don't adjust a byte
18671 position if it is FROM.
18672 (adjust_markers_for_combining): New function.
18673 (combine_bytes): Call adjust_markers_for_combining instead of
18674 adjust_markers_for_replace.
18675 (adjust_after_replace): Record deletion of combining after bytes
18676 with the correct position.
18677 (replace_range): Likewise. Record the actual deletion after
18678 recoding deletions of combining bytes.
18679
18680 * xdisp.c (message_log_check_duplicate): Count byte length of the
18681 latest message correctly.
18682
186831998-09-12 Richard Stallman <rms@gnu.org>
18684
18685 * xdisp.c (redisplay_internal): Use TEMP_SET_PT_BOTH
18686 instead of SET_PT_BOTH.
18687 (try_window_id, display_text_line): Likewise.
18688
186891998-09-12 Karl Heuer <kwzh@gnu.org>
18690
18691 * data.c (Fmake_local_variable): Doc fix.
18692
186931998-09-10 Dave Love <fx@gnu.org>
18694
18695 * print.c (Fwith_output_to_temp_buffer): Doc fix.
18696
186971998-09-10 Richard Stallman <rms@gnu.org>
18698
18699 * s/irix6-0.h (TIOCSIGSEND): Add #undef.
18700 (bcopy, bcmp, bzero): Add #undef.
18701
18702 * keyboard.c (command_loop_1): When switching to selected window's bfr,
18703 first exit if selected frame is dead (no live frames remain).
18704 (read_key_sequence): Likewise.
18705
187061998-09-10 Karl Heuer <kwzh@gnu.org>
18707
18708 * emacs.c (main): Mention --display and --eval in help.
18709
187101998-09-07 Paul Eggert <eggert@twinsun.com>
18711
18712 * editfns.c (emacs_memftime): New function.
18713 (Fformat_time_string): Use it to handle null bytes in formats
18714 correctly.
18715
187161998-09-08 Kenichi Handa <handa@etl.go.jp>
18717
18718 * charset.c (Ffind_charset_region): Optimization for unibyte buffer.
18719 (Ffind_charset_string): For unibyte string, return (ascii).
18720
18721 * editfns.c (Fsubst_char_in_region): Call replace_range with the
18722 arg MARKERS 1.
18723
18724 * insdel.c (adjust_after_replace): Don't add combining bytes to
18725 the args given to adjust_point. Handle correctly the case that
18726 there are both before and after combining bytes.
18727 (replace_range): Likewise.
18728
187291998-09-07 Lars Magne Ingebrigtsen <larsi@gnus.org>
18730
18731 * fns.c (base64_decode_1, base64_encode_1): New functions.
18732 (Fbase64_decode_string, Fbase64_encode_string): New functions.
18733 (Fbase64_decode_region, Fbase64_encode_region): New functions.
18734
187351998-09-07 Karl Heuer <kwzh@gnu.org>
18736
18737 * eval.c (error): After enlarging buffer, write to it, not to buf.
18738
18739 * fns.c (Fwidget_put): Return VALUE instead of garbage.
18740
187411998-09-07 Kenichi Handa <handa@etl.go.jp>
18742
18743 * charset.h (STRING_CHAR_AND_LENGTH): Return correct value in
18744 ACTUAL_LEN even if LEN is too short to have a valid multibyte form.
18745 (STRING_CHAR_AND_CHAR_LENGTH): Likewise.
18746
18747 * coding.c (ccl_coding_driver): Always calculate correct mulibyte
18748 chars in produced byte sequence.
18749 (Ffind_operation_coding_system): Doc-string fixed.
18750
18751 * insdel.c (count_combining_after): Check also preceding bytes at
18752 POS if all characters in STRING are not character head.
18753
187541998-09-06 Paul Eggert <eggert@twinsun.com>
18755
18756 * editfns.c (Fformat_time_string, Fdecode_time, Fcurrent_time_zone):
18757 Don't assume that localtime and gmtime return non-NULL.
18758
187591998-09-06 Lars Magne Ingebrigtsen <larsi@gnus.org>
18760
18761 * fns.c (Fbase64_decode_string, Fbase64_encode_string,
18762 base64_decode_1, Fbase64_decode_region, Fbase64_encode_region):
18763 New functions.
18764
187651998-09-06 Richard Stallman <rms@gnu.org>
18766
18767 * editfns.c (Fformat): Detect incomplete format spec at string's end.
18768
18769 * lread.c (Fload): Handle case where openp finds a magic file
18770 but it has no `load' handler or that handler calls `load'.
18771 If FOUND != FILE, find FOUND's handler even if inhibited for FILE.
18772
187731998-09-04 Dave Love <fx@gnu.org>
18774
18775 * buffer.c (enable-multibyte-characters): Doc fix.
18776
187771998-09-02 Geoff Voelker <voelker@cs.washington.edu>
18778
18779 * w32heap.c (allocate_heap): Define NTHEAP_PROBE_BASE by default.
18780
187811998-09-01 Kenichi Handa <handa@etl.go.jp>
18782
18783 * editfns.c (Ftranspose_regions): Use BYTE_POS_ADDR to get an
18784 address in buffer from byte-position.
18785
187861998-09-01 Eli Zaretskii <eliz@delysid.gnu.org>
18787
18788 * w16select.c (Vnext_selection_coding_system): New variable.
18789 (syms_of_win16select): DEFVAR_LISP it. No need to staticpro
18790 Vselection_coding_system.
18791 (Fw16_set_clipboard_data): Always convert multibyte strings. Use
18792 Vnext_selection_coding_system if non-nil.
18793 (Fw16_get_clipboard_data): Always convert a string that includes
18794 non-ASCII characters. Use Vnext_selection_coding_system if
18795 non-nil.
18796
187971998-08-31 Andrew Innes <andrewi@harlequin.co.uk>
18798
18799 * w32fns.c (w32_wnd_proc): Always zero button_state when releasing
18800 mouse capture.
18801
188021998-08-31 Kenichi Handa <handa@etl.go.jp>
18803
18804 * xterm.c (x_load_font): If SIZE is 0, don't use a name
18805 x_list_font returns.
18806
188071998-08-31 Paul Eggert <eggert@twinsun.com>
18808
18809 * lread.c (read1): Don't assume that atof ("-0.0") yields +0.0.
18810 Handle leading '-' uniformly for zeros, infinities, and NaNs.
18811
188121998-08-31 Eli Zaretskii <eliz@delysid.gnu.org>
18813
18814 * msdos.c (IT_cmgoto): When tracking echo area messages with the
18815 cursor, save and restore previous cursor position in the
18816 minibuffer.
18817
188181998-08-31 Kenichi Handa <handa@etl.go.jp>
18819
18820 * charset.c (unibyte_char_to_multibyte):
18821 Vnonacii_translation_table will convert a 7-bit charcater.
18822 (multibyte_char_to_unibyte): Handle the case that
18823 Vnonacii_translation_table converts a multibyte charcater to a
18824 unibyte charcter of less than 128.
18825 (init_charset_once): Initialize nonascii_insert_offset and
18826 Vnonacii_translation_table.
18827
18828 * coding.c (decode_coding): Even if SRC_BYTES is zero, try
18829 processing if CODING requires flushing.
18830 (encode_coding): Likewise.
18831 (code_convert_region): Likewise.
18832 (code_convert_string): Likewise.
18833
18834 * fns.c (concat): If Vnonascii_translation_table is non-nil, try
18835 to convert a character less than 160 to multibyte.
18836 * insdel.c (copy_text): Likewise.
18837 (count_size_as_multibyte): Likewise.
18838 * xterm.c (dumpglyphs): Likewise.
18839
188401998-08-29 Paul Eggert <eggert@twinsun.com>
18841
18842 * data.c (arith_driver, float_arith_driver): Compute (- x) by
18843 using negation, not subtraction; this makes a difference with
18844 IEEE floating point arithmetic (and also if integer arithmetic
18845 is ones' complement or signed-magnitude!).
18846
188471998-08-29 Karl Heuer <kwzh@gnu.org>
18848
18849 * xfns.c (x_create_bitmap_from_file): Fail immediately if magic.
18850
188511998-08-28 Ken'ichi Handa <handa@delysid.gnu.org>
18852
18853 * charset.c (Fchar_bytes): Add \n\ in doc-string.
18854
188551998-08-28 Paul Eggert <eggert@twinsun.com>
18856
18857 * s/sol2-4.h (NOT_USING_MOTIF): New macro.
18858 (LD_SWITCH_SYSTEM_TEMACS): Put /usr/dt/lib in the link library
18859 path only if we're not building with Motif.
18860
188611998-08-28 Kenichi Handa <handa@etl.go.jp>
18862
18863 * insdel.c (adjust_after_replace): Fix the code to record undo
18864 information for the case that `before combining' happens. Remove
18865 text properties which are added to the new text by
18866 offset_intervals.
18867
18868 * coding.c (code_convert_region1): Remove all text properties of
18869 the region.
18870
188711998-08-28 Kenichi Handa <handa@etl.go.jp>
18872
18873 * charset.h (CHAR_BYTES): New macro.
18874
18875 * charset.c (Fchar_bytes): Now always return 1.
18876 (char_bytes): New function.
18877
18878 * editfns.c (Fposition_bytes): If the arg POSITION is out of
18879 range, return nil.
18880 (Fbyte_to_position): If the arg BYTEPOS is out of range, return
18881 nil.
18882
18883 * data.c (Faset): Use macro CHAR_BYTES instead of Fchar_bytes.
18884 * fns.c (concat): Likewise.
18885 * insdel.c (count_size_as_multibyte): Likewise.
18886 * xdisp.c (message_dolog): Likewise.
18887
188881998-08-27 Kenichi Handa <handa@etl.go.jp>
18889
18890 * coding.c (detect_coding_iso2022): Handle ESC N and ESC O
18891 correctly. They are for SS2 and SS3 respectively.
18892 (ccl_coding_driver): Fix previous change.
18893
188941998-08-26 Paul Eggert <eggert@twinsun.com>
18895
18896 * xterm.c (fixup_locale): New function. For now, it resets
18897 LC_TIME to "C" (reverting the 1998-08-07 change), and also
18898 resets LC_MESSAGES to "C".
18899 (x_term_init): Use it to fix up the locale after setlocale
18900 (LC_ALL, "").
18901
189021998-08-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18903
18904 * xterm.c (x_calc_absolute_position): Cast argument to XFree, in
18905 case it was prototyped the old way.
18906
189071998-08-25 Kenichi Handa <handa@etl.go.jp>
18908
18909 * xterm.c (x_list_fonts): Work-around for the case XGetAtomName
18910 returns a null string. This happens when dxpc 3.7 is being used.
18911
189121998-08-24 Andreas Schwab <schwab@delysid.gnu.org>
18913
18914 * keyboard.c (input-method-previous-message): Doc fix.
18915
18916 * coding.c (file-coding-system-alist,
18917 select-safe-coding-system-function): Doc fix.
18918
189191998-08-23 Kenichi HANDA <handa@etl.go.jp>
18920
18921 * coding.c (detect_coding_iso2022): Don't check the byte length of
18922 succeeding codes (0xa0..0xFF) if the codes follows single shift
18923 code (SS2 or SS3).
18924
189251998-08-21 Ken'ichi Handa <handa@delysid.gnu.org>
18926
18927 * coding.c (detect_coding_system): If detect_eol_type returns
18928 CODING_EOL_INCONSISTENT, set eol_type to CODING_EOL_UNDECIDED
18929 correctly.
18930
18931See ChangeLog.7 for earlier changes.