Add author's email address.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
088831a6
GM
12000-07-18 Gerd Moellmann <gerd@gnu.org>
2
3 * alloca.c (free) [emacs && EMACS_FREE]: Define as EMACS_FREE.
4
5 * Makefile.in: Add dependencies on dispextern.h.
6 (alloca.o): Don't define malloc and define EMACS_FREE instead of
7 `free'; both can conflict with system header files.
8
bc8a8d55
KH
92000-07-18 Kenichi Handa <handa@etl.go.jp>
10
11 * charset.h (MAKE_CHAR): Return reasonable code even if CHARSET is
12 undefined.
13
069f5950
DL
142000-07-18 Dave Love <fx@gnu.org>
15
16 * window.c (Fwindow_list): Declare arg `window'.
17
aa96c820
KH
182000-07-18 Kenichi Handa <handa@etl.go.jp>
19
20 * coding.c (setup_coding_system): Don't override the explicitly
21 specified designations.
22
06be8d32
MB
232000-07-15 Miles Bader <miles@gnu.org>
24
25 * editfns.c (char_property_eq, char_property_stickiness): Renamed
26 from `text_property_eq' and `text_property_stickiness', respectively.
27 (find_field, Fconstrain_to_field, char_property_eq)
28 (char_property_stickiness): Changed to call char-property functions
29 instead of text-property-only ones.
30
31 * textprop.c (Fnext_single_char_property_change): Made a subr (was
32 `next_single_char_property_change'). Do more error checking, and
33 cleanup limit behavior.
34 (Fprevious_single_char_property_change): New function.
35 (syms_of_textprop): Initialize new subrs.
36
37 * xdisp.c (display_prop_end, invisible_text_between_p):
38 Call Fnext_single_char_property_change instead of
39 next_single_char_property_change.
40
3fddcdc3
JR
412000-07-15 Jason Rumney <jasonr@gnu.org>
42
43 * w32menu.c (w32_menu_show): Call free_menubar_widget_value_tree
44 after menu is finished with.
45 (add_menu_item): Only consider wv->title as a menu title.
46 (w32_menu_display_help): Add OBJECT and POS to show_help_echo.
47
48 * w32fns.c (w32_wnd_proc) [WM_DRAW_ITEM]: Do not try to draw a
49 null title.
50 (FONT_REGEXP): Remove unused macro, and its sub-components.
51 (syms_of_w32fns): Replace underscore in w32-enable-synthesized-fonts.
52
53 * w32term.c (help_echo_object, help_echo_pos): New variables.
54 (note_mode_line_highlight): Store additional information about the
55 help-echo in help_echo_object and help_echo_pos. Check both
56 `local-map' and `keymap' properties for changing the cursor
57 (note_mouse_highlight): Store additional information about the
58 help-echo in help_echo_object and help_echo_pos.
59 (note_tool_bar_highlight): Set help_echo_object to nil and
60 help_echo_pos to -1.
61 (w32_read_socket): Use gen_help_event instead of filling
62 input_events manually.
63 (syms_of_w32term): Staticpro help_echo_object.
64 (x_update_window_end): Add parameter MOUSE_FACE_OVERWRITTEN_P. If
65 set, arrange for a mouse-highlight redisplay in
66 XTframe_up_to_date.
67 (x_clear_mouse_face): New function.
68 (w32_redisplay_interface): Add pointer to x_clear_mouse_face.
69 (x_update_window_begin): No need to turn off the mouse
70 highlight here.
71 (show_mouse_face): Set the mouse_face_p flag of glyph rows
72 depending on whether they contain glyphs highlighted in
73 mouse-face.
74 (x_fill_stretch_glyph_string): Consume runs of stretch
75 glyphs instead of a single one.
76 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
77 with new argument list.
78 (x_set_glyph_string_gc): Make sure the face's GC is valid.
79 (x_append_glyph, x_append_composite_glyph)
80 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
81 changes in struct glyph starting 1999-12-27. See comments for
82 xterm.c on 2000-07-05.
83
178c5d9c
SS
842000-07-14 Sam Steingold <sds@gnu.org>
85
86 * xfaces.c (realize_x_face): Fix the last patch:
87 check `default_face' before dereferencing.
88
6fe533f6
DL
892000-07-14 Dave Love <fx@gnu.org>
90
069f5950 91 * syntax.c (back_comment): Add null default in switch (for pcc).
6fe533f6 92
dd7b81cf
KH
932000-07-14 Kenichi Handa <handa@etl.go.jp>
94
0693904a 95 * xfaces.c (realize_x_face): Make fontset using the base of the
178c5d9c 96 default_face's fontset, not using the default fontset.
0693904a 97
dd7b81cf
KH
98 * coding.c (inhibit_iso_escape_detection): New variable.
99 (syms_of_coding): Make it a Lisp variable.
100 (detect_coding_iso2022): If inhibit_iso_escape_detection is
101 nonzero, ignore ISO2022's escape sequence.
102
d5aa31d8
GM
1032000-07-14 Gerd Moellmann <gerd@gnu.org>
104
e5acf0ca
GM
105 * alloca.c (malloc) [emacs]: Define as xmalloc.
106
bd23a692
GM
107 * xfns.c (Fx_show_tip): If frame parameters contain a position,
108 use that instead of the mouse position. Add parameters DX and DY.
109
110 * dispextern.h (Fx_show_tip): Adjust number of parameters
111 in prototype.
112
9662da0b
GM
113 * keyboard.c (show_help_echo): Add parameters OBJECT and POS.
114 if HELP is a function, call it with OBJECT and POS as parameters
115 to get the help to display.
116 (gen_help_event, kbd_buffer_store_help_event): New functions.
117 (kbd_buffer_get_event): Construct the Lisp help-event differently.
118 (read_char): Call show_help_echo with new parameters.
119
178c5d9c 120 * keyboard.h (gen_help_event, kbd_buffer_store_help_event):
9662da0b
GM
121 Add prototypes.
122
123 * xterm.c (help_echo_object, help_echo_pos): New variables.
124 (note_mode_line_highlight): Store additional information about the
125 help-echo in help_echo_object and help_echo_pos. Check both
126 `local-map' and `keymap' properties for changing the cursor
127 (note_mouse_highlight): Store additional information about the
128 help-echo in help_echo_object and help_echo_pos.
129 (note_tool_bar_highlight): Set help_echo_object to nil and
130 help_echo_pos to -1.
131 (XTread_socket): Use gen_help_event instead of filling
132 input_events manually.
133 (syms_of_xterm): Staticpro help_echo_object.
134
135 * xmenu.c (menu_highlight_callback): Use
136 kbd_buffer_store_help_event instead of setting up and input_event
137 structure manually.
138
139 * xdisp.c (eval_form): GCPRO argument sexpr.
140 (call_function): New function.
141 (handle_single_display_prop): Use call_function and FUNCTIONP
142 instead of checking whether if font_height is a symbol and
143 using eval_form.
144
145 * eval.c (internal_condition_case_2): New function.
146
147 * lisp.h (FUNCTIONP): New macro.
148 (internal_condition_case_2, call_function): Add prototypes.
149
d5aa31d8
GM
150 * xterm.c (construct_mouse_click, x_scroll_bar_to_input_event)
151 (x_scroll_bar_handle_click, SET_SAVED_MENU_EVENT, XTread_socket):
152 Always set `arg' member of input_events.
153 (construct_menu_click): Unused function removed.
154
155 * msdos.c (dos_rawgetc): Always set `arg' member of input_events.
156
157 * w32term.c (construct_mouse_click, construct_mouse_wheel)
158 (construct_drag_n_drop, x_scroll_bar_handle_click)
159 (w32_read_socket): Always set `arg' member of input_events.
160
161 * keyboard.c (show_help_echo): Use eval_form. Add comment.
162
163 * lisp.h (eval_form): Add prototype.
164
165 * xdisp.c (eval_form): Make it externally visible.
166
0f1a9b23
GM
1672000-07-13 Gerd Moellmann <gerd@gnu.org>
168
169 * xterm.c (x_handle_tool_bar_click): Store the frame in the
170 frame_or_window slot of TOOL_BAR_EVENT input events instead of
171 consing. For prefix events, store the frame in the `arg' slot of
172 the event, otherwise store the key there.
173 (XTread_socket): Instead of consing, use the frame_or_window slot
174 of HELP_EVENTs for the frame, and the `arg' slot for the help
175 string.
176
177 * xmenu.c (menu_highlight_callback): Store help string in the
178 `arg' member of the input event; don't cons.
179 (menubar_selection_callback): Use the `arg' slot of input events
180 to queue additional information, instead of consing.
181
182 * msdos.c (dos_rawgetc): Adapt to change of HELP_EVENTs.
183
184 * w32term.c (w32_handle_tool_bar_click): Adapt to changes in
185 TOOL_BAR_EVENTs.
186 (w32_read_socket): Adapt to changes in HELP_EVENTs.
187
188 * w32menu.c (menubar_selection_callback): Use the `arg' slot of
189 input events to queue additional information, instead of consing.
190
191 * keyboard.c (kbd_buffer_gcpro): Renamed from
192 kbd_buffer_frame_or_window. Now used for all Lisp objects
193 referenced from the input queue.
194 (kbd_buffer_store_event): Always use structure assignment for
195 copying input events. Record all Lisp objects referenced from
196 events in kbd_buffer_gcpro.
197 (kbd_buffer_get_event): Construct Lisp `help-echo' events
198 differently from input events. Test for prefix menu_bar_events
199 and TOOL_BAR_EVENTs differently. Reset all slots used by an input
200 event in kbd_buffer_gcpro to nil.
201 (make_lispy_event) <TOOL_BAR_EVENT>: Treat an input event whose
202 frame_or_window is equal to its arg member as prefix events.
203 (stuff_buffered_input): Reset all slots in kbd_buffer_gcpro
204 used by an input event to nil.
205 (init_keyboard): Use two times the size of the input queue
206 for kbd_buffer_gcpro.
207 (syms_of_keyboard): Likewise.
208
209 * emacs.c (handle_USR2_signal, handle_USR1_signal): Use
210 USER_SIGNAL_EVENT.
211
212 * termhooks.h (struct input_event): Add member `arg'.
213 (MENU_BAR_EVENT): Renamed from menu_bar_event.
214 (USER_SIGNAL_EVENT): Renamed from user_signal.
215
216 * xfaces.c (ASET): Remove definition.
217
218 * lisp.h (AREF, ASET, ASIZE): New macros.
219
220 * fontset.c (AREF, ASIZE): Remove definitions.
221
222 * fns.c (AREF): Remove definition.
178c5d9c 223
0f1a9b23
GM
224 * composite.c (AREF): Remove definition.
225
712eaef2
GM
2262000-07-12 Gerd Moellmann <gerd@gnu.org>
227
d8ee7803
GM
228 * dispnew.c (redraw_overlapped_rows): Add missing local.
229 (scrolling_window): Remove debug code.
230
712eaef2
GM
231 * xdisp.c (try_window_reusing_current_matrix, try_window_id):
232 Before scrolling, turn off a mouse-highlight in the window
233 being scrolled.
234
235 * xterm.c (x_update_window_end): Add parameter
236 MOUSE_FACE_OVERWRITTEN_P. If set, arrange for a mouse-highlight
237 redisplay in XTframe_up_to_date.
238 (x_clear_mouse_face): New function.
239 (x_redisplay_interface): Add pointer to x_clear_mouse_face.
240
241 * dispnew.c (make_current): Preserve the mouse_face_p flag of the
242 current glyph row.
243 (update_window_line): Add parameter MOUSE_FACE_OVERWRITTEN_P. Set
244 it when any row is written to that contains glyphs highlighted in
245 mouse-face.
246 (update_window): Call the window update end hook with new
247 parameter MOUSE_FACE_OVERWRITTEN_P.
248 (direct_output_for_insert): Give up if row contains mouse-face.
249
250 * dispextern.h (struct redisplay_interface): Add parameter
251 MOUSE_FACE_OVERWRITTEN_P to update_window_end_hook function.
252 (clear_mouse_face): New function pointer member.
253
02010917
SM
2542000-07-11 Stefan Monnier <monnier@cs.yale.edu>
255
256 * syntax.c (back_comment): Use one switch rather than a few `if's.
257 Obey open_paren_in_column_0_is_defun_start.
258 When reverting to the `slow' method, try to nicely handle the case
259 of nested comments by checking that the comment-starter we found
260 does indeed match the comment-ender.
261 (scan_sexps_forward, scan_sexps_forward):
262 Ignore excessive opening parenthesis rather than throwing an error.
263
d76c03ea
GM
2642000-07-11 Gerd Moellmann <gerd@gnu.org>
265
266 * doc.c (Fsubstitute_command_keys): Handle case that a GC
267 in Fwhere_is_internal or get_keymap_1 relocates string contents.
268
269 * dispnew.c (direct_output_forward_char): Give up if currently
270 displaying a message instead of the minibuffer contents.
271
272 * xterm.c (x_update_window_begin): No need to turn off the mouse
273 highlight here.
274 (show_mouse_face): Set the mouse_face_p flag of glyph rows
275 depending on whether they contain glyphs highlighted in
276 mouse-face.
277
278 * dispnew.c (row_equal_p): Add parameter MOUSE_FACE_P. If set,
279 compare the mouse_face_p flags of both rows.
280
281 * dispextern.h (struct glyph_row): Add flag mouse_face_p.
282
d55ead18
EZ
2832000-07-11 Eli Zaretskii <eliz@is.elta.co.il>
284
285 * keyboard.c (show_help_echo): Accept additional parameter
286 ok_to_overwrite_keystroke_echo.
287 (read_char): Call show_help_echo with a zero
288 ok_to_overwrite_keystroke_echo argument.
289 * keyboard.h (show_help_echo): Update prototype of
290 show_help_echo.
291 * xmenu.c (menu_help_callback): Call show_help_echo with non-zero
292 ok_to_overwrite_keystroke_echo argument.
293 * w32menu.c (w32_menu_display_help): Call show_help_echo with
294 non-zero ok_to_overwrite_keystroke_echo argument.
295
df75b1a3
GM
2962000-07-10 Gerd Moellmann <gerd@gnu.org>
297
4b92c49a
GM
298 * xdisp.c (try_window_id): If changes are all below what is
299 displayed in the window, and point is in the window, we still
300 might have to find point on the display.
301
302 * xterm.c (x_fill_stretch_glyph_string): Consume runs of stretch
303 glyphs instead of a single one.
304 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
305 with new argument list.
306 (x_set_glyph_string_gc): Make sure the face's GC is valid.
307
df75b1a3
GM
308 * keymap.c (get_keymap_1): Add comment that this function can GC.
309 (where_is_internal_2, where_is_internal_1): Add GCPROs, add
310 comment that functions can GC.
311 (Fset_keymap_parent): GCPRO arg KEYMAP.
312
4314cf3e
EZ
3132000-07-10 Eli Zaretskii <eliz@is.elta.co.il>
314
315 * msdos.c (XMenuActivate): After exiting the menu, restore the
316 echo area message and erase it.
317
ab49ce15
KH
3182000-07-10 Kenichi Handa <handa@etl.go.jp>
319
320 * fontset.c (Ffontset_info): Make the return value more compatible
321 with that of Emacs 20.
322
090a072f
GM
3232000-07-07 Gerd Moellmann <gerd@gnu.org>
324
325 * eval.c (Fsignal): Handle case that backtrace_list is null.
326
f92de4a6
KH
3272000-07-07 Kenichi Handa <handa@etl.go.jp>
328
329 * ccl.c (Fccl_execute): Typo fixed.
330
dd8888a1
GM
3312000-07-06 Gerd Moellmann <gerd@gnu.org>
332
e5c81191 333 * window.c (window_loop): Add missing gcpro1 local variable.
178c5d9c 334
dd8888a1
GM
335 * window.c (Fwindow_list): Reverse list at the end.
336 (candidate_window_p): Add parameter OWINDOW. ALL_FRAMES nil
337 means allow windows on OWINDOW's frame, only.
338 (window_loop): Simplified; use Fwindow_list.
339
340 * Makefile.in (TAGS-LISP): Don't pass `$(lispsource)' to make.
341
485266d0
GM
3422000-07-05 Gerd Moellmann <gerd@gnu.org>
343
344 * xterm.c (XTread_socket): Increment handling_signal at the start,
345 decrement it at the end.
346
347 * eval.c (handling_signal): New variable.
348 (Fsignal): Abort if handling_signal is non-zero.
349
350 * lisp.h (handling_signal): External declaration.
178c5d9c 351
485266d0
GM
352 * s/freebsd.h (WAITTYPE, WRETCODE): Put in #if 0.
353
80fcd514
KR
3542000-07-05 Ken Raeburn <raeburn@gnu.org>
355
356 Sound support for NetBSD through "Linux emulation" support:
357 * config.in (HAVE_SOUNDCARD_H): Undef.
358 (HAVE_SOUND): Define if HAVE_SOUNDCARD_H.
359 * Makefile.in (LIBSOUND): New variable.
360 (LIBES): Include it.
361 * sound.c [HAVE_SOUNDCARD_H]: Include <sys/ioctl.h> and
362 <soundcard.h>.
363 (DEFAULT_SOUND_DEVICE): Define to "/dev/dsp" if not defined
364 elsewhere.
365 (vox_open): Use DEFAULT_SOUND_DEVICE.
366 * s/netbsd.h (DEFAULT_SOUND_DEVICE): Define to /dev/audio.
367
d5c5cddd
GM
3682000-07-05 Gerd Moellmann <gerd@gnu.org>
369
370 * print.c (print_error_message): If Vsignaling_function is set,
371 show it in *Messages*.
372
373 * lisp.h (Vsignaling_function): External declaration.
374
375 * eval.c (Vsignaling_function): New variable.
376 (Fsignal): Compute it.
377 (syms_of_eval): Staticpro it.
378
65171e3a
DL
3792000-07-05 Dave Love <fx@gnu.org>
380
381 * syswait.h: Use the autoconf recommended approach. Old code
382 #if'd out in case we need to revert.
383
178c5d9c 384 * config.in (HAVE_SYS_WAIT_H): Added.
65171e3a 385
e2c46326
AI
3862000-07-05 Andrew Innes <andrewi@gnu.org>
387
388 * vm-limit.c (check_memory_limits) [REL_ALLOC]: Use real_morecore
389 when non-NULL instead of __morecore, to take account of buffer
390 memory. This also solves a problem with spurious memory warnings
391 on Windows.
392
393 * ralloc.c: Make real_morecore non-static.
394
395 * eval.c (internal_condition_case): Comment out abort if
396 interrupt_input_blocked is not zero.
397
398 * makefile.nt: Add support for `bootstrap' and related targets.
399 Include minimal debug info in emacs.exe in release build.
400 Remove all dependencies on lisp.h, and fixup some others.
401
402 * w32.c (init_environment): Install code from 20.7 for providing
403 default values for environment variables, based on the
404 executable's own location.
405 (map_w32_filename): Handle filenames that are longer than
406 MAX_PATH.
407 (sys_socket): Install socket inheritance bug fix from 20.7.
408
409 * alloca.c [emacs]: Include lisp.h (needed by atimer.h included
410 here via blockinput.h).
411
a027a91b
SM
4122000-07-05 Stefan Monnier <monnier@cs.yale.edu>
413
e4b31601
SM
414 * w32menu.c (w32_menu_display_help):
415 * xmenu.c (menu_help_callback): Use show_help_echo.
a027a91b
SM
416
417 * keyboard.h (show_help_echo): Declare.
418
419 * keyboard.c (show_help_echo): New function, extracted from read_char.
420 Feval its `msg' argument if it's a cons cell.
421 (read_char): Use it.
4cf8d9d5 422 (follow_key): Pass `autoload' to get_keyelt.
a027a91b 423
178c5d9c 424 * xterm.c (note_mode_line_highlight, note_mouse_highlight)
a027a91b 425 (note_tool_bar_highlight, XTread_socket):
178c5d9c 426 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight)
a027a91b
SM
427 (dos_rawgetc):
428 * w32term.c (note_mode_line_highlight, note_mouse_highlight)
429 (note_tool_bar_highlight, w32_read_socket):
430 Do not gratuitously ignore non-string `help-echo' properties.
431
88d75730
GM
4322000-07-05 Gerd Moellmann <gerd@gnu.org>
433
969f7e79
GM
434 * eval.c (Feval): Put check for interrupt_input_block in #if 0.
435
71201b00
GM
436 * window.c (delete_all_subwindows): Reset Vwindow_list.
437
88d75730
GM
438 * xterm.c (x_append_glyph, x_append_composite_glyph)
439 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
440 changes in struct glyph starting 1999-12-27. Some bit-fields of
441 struct glyph were not set, which made glyphs unequal when compared
442 with GLYPH_EQUAL_P. Redisplay outputs such glyphs, and flickering
443 effects were the result. This also depended on the contents of
444 memory returned by xmalloc. If flickering happens again, activate
445 the code in clear_glyph_row that's in #if 0. If the flickering is
446 gone with that, chances are that it is caused by something
447 similar.
448
449 * dispnew.c (clear_glyph_row): Add debug code in #if 0.
178c5d9c 450
88d75730
GM
451 * dispextern.h: Add some comments.
452
453 * window.c (add_window_to_list): Add parameter LIST.
454 (window_list): Order list so that, for each frame, windows are
455 in canonical order, and so that frames appear in the list in
456 the order given by Vframe_list.
457 (next_window): Reverse the handling of NEXT_P.
458
53654733
GM
4592000-07-04 Gerd Moellmann <gerd@gnu.org>
460
87efd256
GM
461 * window.c (Vwindow_list): New variable.
462 (make_window, delete_window): Set Vwindow_list to nil.
463 (check_window_containing): New function.
464 (window_from_coordinates): Rewritten.
465 (add_window_to_list, window_list, candidate_window_p)
466 (decode_next_window_args, next_window): New functions.
467 (Fnext_window, Fprevious_window): Rewritten in terms of
468 next_window.
469 (Fwindow_list): New function.
470 (Fother_window): Cleaned up.
471 (foreach_window): Add a longer "variable argument list". Let
472 callback function return 0 to indicate that cycling over windows
473 should stop.
474 (foreach_window_1): Likewise.
475 (freeze_window_start): Return int.
476 (init_window): New function.
477 (syms_of_window): Staticpro Vwindow_list and defsubr Swindow_list.
478
479 * emacs.c (handle_USR1_signal, handle_USR2_signal) Clear
480 input_event with bzero.
481 (main): Call init_window.
482
53654733
GM
483 * keymap.c (get_keyelt): Temporarily inhibit GC while evaluating
484 a menu filter.
485
4a8c194f
KH
4862000-07-04 Kenichi Handa <handa@etl.go.jp>
487
488 * composite.h (make_composition_value_copy): Extern it.
489
490 * composite.c (make_composition_value_copy): New function.
491
492 * editfns.c (Fformat): While copying text properties, make each
493 composition property value a copy.
494
495 * fns.c (concat): While copying text properties, make each
496 composition property value a copy.
497
831a6cb0
GM
4982000-07-03 Gerd Moellmann <gerd@gnu.org>
499
2f516940
GM
500 * m/macppc.h (LINKER, LD_SWITCH_MACHINE) [LINUX]: Define.
501
178c5d9c 502 * fns.c (sweep_weak_table): Mark only objects that are not
aee625fa
GM
503 marked already.
504
831a6cb0
GM
505 * frame.c (next_frame, prev_frame): If MINIBUF is a window,
506 include those frames as candidates which have their focus
507 redirected to the minibuffer frame.
508
d9c4f922
SM
5092000-07-03 Stefan Monnier <monnier@cs.yale.edu>
510
511 * fns.c (Fputhash): Return `value' rather than nil.
512
3780bc22
GM
5132000-06-30 Gerd Moellmann <gerd@gnu.org>
514
97d176db
GM
515 * frame.c (next_frame): Don't check focus redirection in case
516 MINIBUF is a window. Doing so excludes frames using MINIBUF
3780bc22
GM
517 unless their focus is redirected, which contradicts the
518 specification of next-frame, and leads to infinite loops in
519 certain situations when cycling through windows with next-window.
520
dca9961d
KH
5212000-06-30 Kenichi Handa <handa@etl.go.jp>
522
523 * coding.c (code_convert_region): Even if the length of text is
524 zero, try to convert it if coding->type is coding_type_ccl.
525 (decode_coding_string, encode_coding_string): Likewise.
526
d5483ab1
GM
5272000-06-28 Gerd Moellmann <gerd@gnu.org>
528
af5c25e1 529 * xdisp.c (try_window_reusing_current_matrix): Don't try to reuse
97d176db 530 the display if windows_or_buffers_changed.
af5c25e1
GM
531
532 * dispnew.c (struct row_entry): New structure.
533 (row_entry_pool, row_entry_pool_size, row_entry_idx, row_table)
534 (row_table_size, old_lines, new_lines, old_lines_size)
535 (new_lines_size, run_pool, runs_size, runs): New variables.
536 (add_row_entry): New function.
537 (scrolling_window): Use data structures allocated with xmalloc and
97d176db 538 held in global variables, instead of allocating them with alloca and
af5c25e1
GM
539 holding them in local variables. Use a larger hash table whose
540 size depends on glyph matrix sizes. Don't use bzero to clear the
541 hash table; instead, clear used slots only.
542
543 * fns.c (next_almost_prime): Make it externally visible.
544
545 * lisp.h (next_almost_prime): Add prototype.
546
d5483ab1
GM
547 * s/isc4-0.h (sigunblock): Define.
548
549 * s/sco5.h (sigunblock): Define.
550
93e40f40
DL
5512000-06-27 Dave Love <fx@gnu.org>
552
553 * s/osf1.h (C_SWITCH_SYSTEM, LIBS_SYSTEM): Revert last change
554 (moved to osf5-0.h).
555 [!NOT_C_CODE]: Protect string.h stuff.
556
557 * s/osf5-0.h (C_SWITCH_SYSTEM, WAIT_USE_INT, SYS_SIGLIST_DECLARED)
558 (sys_siglist, NSIG): Definitions moved here from osf1.h.
559
3c4b7685
GM
5602000-06-27 Gerd Moellmann <gerd@gnu.org>
561
97d176db 562 * xdisp.c (resize_mini_window): Subtract the extra line spacing
3c4b7685
GM
563 below the last line from the needed window height.
564
32cad0aa
SM
5652000-06-26 Stefan Monnier <monnier@cs.yale.edu>
566
567 * fns.c (Fplist_member): Renamed from Fwidget_plist_member.
568 (Fwidget_get): Use it.
569 (syms_of_fns): Defsubr it.
570
2c69ced2
GM
5712000-06-26 Gerd Moellmann <gerd@gnu.org>
572
178c5d9c 573 * xterm.c (xim_initialize) [!USE_XIM]: Don't set up the
1d36487c
GM
574 display info for XIM.
575 (xim_open_dpy): Likewise.
576 (xim_close_dpy): Don't free the display info's XIM.
577
578 * xfns.c (x_window) [!USE_XIM]: Don't call create_frame_ic.
579
580 * config.in (USE_XIM): New define.
581
3fc720e4
GM
582 * keymap.c (get_keyelt): For menu-items containing a `:filter
583 FILTER', apply FILTER to the menu-item's definition to get the
584 real definition to use.
585
586 * lisp.h (QCfilter): External declaration.
587
2c69ced2
GM
588 * xfns.c (Fimage_size): New function.
589 (syms_of_xfns): Defsubr it.
590
f978b2a2
AS
5912000-06-26 Andreas Schwab <schwab@suse.de>
592
593 * coding.c (decode_coding_string): Re-fetch STRING_BYTES after
594 Fstring_as_unibyte.
595
94cc7892
DL
5962000-06-25 Dave Love <fx@gnu.org>
597
598 * term.c [!HAVE_TERMCAP_H]: Declare tputs, tgetent, tgetflag,
599 tgetnum.
600
601 * Makefile.in (blockinput.h): Depend on atimer.h.
602 (atimer.h): Depend on systime.h.
603
604 * blockinput.h: Protect against multiple inclusion. Include
605 atimer.h.
606
607 * atimer.h: Protect against multiple inclusion. Include
608 systime.h.
609
610 * lisp.h (swap_in_global_binding): Declare.
611
b8c24556
KR
6122000-06-24 Ken Raeburn <raeburn@gnu.org>
613
614 * process.c (Fopen_network_stream): Turn off atimers for duration
615 of call to connect. (Patch from Gerd.)
616
8cf8560b
DL
6172000-06-23 Dave Love <fx@gnu.org>
618
511c7541
DL
619 * ralloc.c: Maybe include unistd.h
620
8cf8560b
DL
621 * emacs.c (setgrp): Undefine before defining.
622 (malloc_warning, set_time_zone_rule, index): Prototype.
623
624 * systime.h (EMACS_GET_TIME) [!GETTIMEOFDAY_ONE_ARGUMENT]: Use
625 HAVE_STRUCT_TIMEZONE.
626
627 * s/osf1.h: Move string.h hack here from alpha.h and make it
628 conditional.
629 (C_SWITCH_SYSTEM): Use _OSF_SOURCE, not -BSD, which clashes with
630 _XOPEN_SOURCE.
631 (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist, NSIG): Define.
632 (SOCKLEN_TYPE): Don't define.
633
634 * m/alpha.h: Remove string.h hack.
635
636 * s/osf5-0.h: New file.
637
638 * filelock.c: Use feature tests for fcntl.h, string.h. Don't
639 include time.h, done by systime.h.
640 [__FreeBSD__]: Remove redundant includes.
641
3fc720e4 642 * callproc.c (setpgrp): Undefine before defining.
8cf8560b
DL
643 (delete_temp_file): Return Qnil to avoid warning.
644
645 * config.in (HAVE_TERM_H, HAVE_STRUCT_TIMEZONE): Add.
646
647 * xfaces.c: Include fontset.h dependent on HAVE_WINDOW_SYSTEM, not
648 HAVE_X_WINDOWS.
649
650 * fontset.h (free_face_fontset): Renamed from fs_free_face_fontset.
651
652 * composite.h (compose_text): Declare.
653
654 * xterm.c: Don't include sys/types.h unconditionally. Don't
655 protect its inclusion with !USG (following xmenu.c).
656
ea055732
GM
6572000-06-23 Gerd Moellmann <gerd@gnu.org>
658
659 * xfns.c (x_create_tip_frame): Initialize frame's colors like
660 in x_create_frame.
661
74b01b80
EZ
6622000-06-23 Eli Zaretskii <eliz@is.elta.co.il>
663
664 * coding.c (decode_eol_post_ccl): Special handling for undecided
665 and inconsistent EOL types.
666
64f3a166
GM
6672000-06-22 Gerd Moellmann <gerd@gnu.org>
668
16cf31f7
GM
669 * xrdb.c (x_load_resources): Add default resource for scroll bar's
670 trough color and main window's background color.
671
178c5d9c 672 * xfns.c (Fx_file_dialog) [HAVE_MOTIF_2_1]: Handle events
16cf31f7
GM
673 differently.
674
675 * xterm.h (Xt_app_con): External declaration.
676
677 * widget.c (EmacsFrameRealize): Fix typo.
178c5d9c 678
486a103d
GM
679 * widget.c (EmacsFrameRealize): Remove SubstructureRedirectMask.
680
64f3a166
GM
681 * xdisp.c (handle_stop): Initialize it->add_overlay_start to zero.
682 (handle_invisible_prop): Record the start of invisible text in
683 it->add_overlay_start.
684 (struct overlay_entry): Add member `overlay'.
685 (handle_overlay_change): Simplify.
686 (next_overlay_string): After having processed overlay strings at the
687 end of the buffer, record that fact in
688 it->overlay_strings_at_end_processed_p.
689 (compare_overlay_entries): If before- and after-strings come
690 from the same overlay, let before-strings come first.
691 (RECORD_OVERLAY_STRING): Record the overlay that strings come from.
692 (load_overlay_strings): Take it->add_overlay_start into account
693 when adding overlay strings.
694
695 * dispextern.h (struct it): Add member add_overlay_start.
696
bb746ea6
DL
6972000-06-22 Dave Love <fx@gnu.org>
698
699 * s/isc3-0.h (C_SWITCH_SYSTEM): Define _XOPEN_SOURCE=500.
700
701 * s/gnu-linux.h (C_SWITCH_SYSTEM): Don't define _XOPEN_SOURCE here.
702
a8f573f3
KH
7032000-06-22 Kenichi Handa <handa@etl.go.jp>
704
705 * ccl.c (ccl_driver) <CCL_End>: Decrement stack_idx only when it
706 is greater than 0.
707
9f2bbc92
DL
7082000-06-21 Dave Love <fx@gnu.org>
709
178c5d9c 710 * Makefile.in (GETLOADAVG_OBJ): Removed -- LIBOBJS does it.
9f2bbc92 711
3ee5041c
SM
7122000-06-21 Stefan Monnier <monnier@cs.yale.edu>
713
714 * syntax.c (back_comment): Simplify string-parity counting (with
715 the added benefit of handling multiple string-styles as long as
716 they are not intertwined).
717 Jump to the slow code as soon as a comment starter is found in
718 a "string_lossage" position. Fixes the case: " /* " /* " */.
719
4c343001
DL
7202000-06-21 Dave Love <fx@gnu.org>
721
722 * Makefile.in: Use GETLOADAVG_LIBS.
723
724 * config.in: Add HAVE_FCNTL_H, _FILE_OFFSET_BITS,
725 _LARGEFILE_SOURCE, _LARGE_FILES, _XOPEN_SOURCE.
726
e6365855
SM
7272000-06-20 Stefan Monnier <monnier@cs.yale.edu>
728
729 * syntax.c (describe_syntax): Recognize the `n'estable bit.
730 (Fforward_comment, scan_lists):
731 Check the comstyle of single-char comment-starters.
732 (scan_sexps_forward): Don't try to recognize `half comment-enders' if
733 we're just at the beginning of the comment (f.ex with (*) ... (*)).
d355bd8a
SM
734 Check the comstyle of single-char comment-starters.
735 Clarify control-flow around the Scomment case.
e6365855 736
5700d2cc
DL
7372000-06-20 Dave Love <fx@gnu.org>
738
d355bd8a
SM
739 * fns.c (make_hash_table, maybe_resize_hash_table):
740 Cast arg of next_almost_prime.
5700d2cc 741
178c5d9c 742 * tparam.c [emacs]: Include lisp.h.
5700d2cc
DL
743
744 * termcap.c [emacs]: Test HAVE_FCNTL_H, not USG5. Include lisp.h
745 and unistd.h.
746
4a27bdfb
GM
7472000-06-20 Gerd Moellmann <gerd@gnu.org>
748
a61d762c
GM
749 * keyboard.c (adjust_point_for_property): Check if display
750 property should be treated as intangible by looking at its
751 value.
752
178c5d9c 753 * xdisp.c (single_display_prop_intangible_p)
a61d762c
GM
754 (display_prop_intangible_p): New functions.
755
756 * dispextern.h (display_prop_intangible_p): Add prototype.
757
758 * xdisp.c (dump_glyph_row): Show type of glyph->object.
178c5d9c 759
4a27bdfb
GM
760 * s/isc4-0.h (sigblock): Redefined to pass a pointer as second
761 argument to sigprocmask.
762
763 * s/sco5.h (sigblock): Redefined to pass a pointer as second
764 argument to sigprocmask.
765
766 * syssignal.h (sigblock, sigunblock) [USG5_4]: Set
767 sigprocmask_set, and pass a pointer to it to sigprocmask.
768
769 * sysdep.c (sigprocmask_set): New variable.
770
771 * fileio.c (make_temp_name): Don't use `%s' in string passed to
772 report_file_error.
773
427ec082
SS
7742000-06-20 Sam Steingold <sds@gnu.org>
775
776 * xrdb.c: Don't declare xmalloc, xrealloc.
777
8972fe79 7782000-06-20 Stefan Monnier <monnier@cs.yale.edu>
8972fe79
SM
779
780 * regex.c (re_match, re_match_2): Protect calls to alloca (0).
781 (re_comp): Cast gettext return value to avoid complaints when
782 !HAVE_LIBINTL.
783
074b6efe
DL
7842000-06-20 Dave Love <fx@gnu.org>
785
f85c008a
DL
786 * m/stride.h, m/mips.h: Don't define HAVE_GETWD,
787 HAVE_GETTIMEOFDAY.
788
5700d2cc 789 * m/ibmrt-aix.h: Don't declare HAVE_GETTIMEOFDAY, HAVE_VFORK.
f85c008a 790
d355bd8a 791 * m/ibmrs6000.h, m/ibmps2-aix.h, m/dpx2.h: Don't declare HAVE_GETWD.
f85c008a
DL
792
793 * m/alpha.h: Don't declare xmalloc, xrealloc.
794
0af4f205
DL
795 * s/ux4800.h: Don't declare GETTIMEOFDAY_ONE_ARGUMENT.
796
797 * s/usg5-4-2.h: Don't declare HAVE_GETWD, VFORK_RETURN_TYPE.
798
799 * s/umips.h: Don't declare HAVE_GETWD, HAVE_GETTIMEOFDAY.
800
801 * s/cxux.h, s/gnu-linux.h, s/iris3-6.h, s/irix3-3.h: Don't declare
802 HAVE_GETWD.
803
074b6efe
DL
804 * keyboard.h (poll_for_input_1): Declare.
805
806 * getloadavg.c: Don't define NLIST_STRUCT (handled by configure).
807
808 * alloc.c (xmalloc, xrealloc, xfree): Define using POINTER_TYPE.
809
810 * doprnt.c: Don't declare xmalloc, xrealloc.
811
812 * lisp.h (x_set_tool_bar_lines, free_frame_xic, compose_text)
813 (getenv, ctime, getwd): Removed.
814 (xmalloc, xrealloc, xfree): Declare using POINTER_TYPE.
815
816 * xterm.h: Remove duplicate prototypes. Declare free_frame_xic,
817 x_set_tool_bar_lines.
818
819 * config.in: Add HAVE_GETWD. Move some definitions above
820 machine/system includes.
821
68a5e97b
KH
8222000-06-20 Kenichi Handa <handa@etl.go.jp>
823
95417e1e
KH
824 * s/bsd386.h (HAVE_GETLOADAVG): Define it as 1.
825
68a5e97b
KH
826 * xfaces.c (font_list): Handle the case that REGISTRY doesn't
827 contain information about ENCODING.
828
829 * fontset.c (FONTSET_ASCII): Use the first element of char table
830 for an ASCII font, not defalt slot.
831 (fontset_ref_via_base): If FONTSET doesn't contain information for
832 C, try the default fontset.
833 (make_fontset): Don't copy the default fontset.
834 (fontset_font_pattern): Likewise.
835 (accumulate_font_info): If ELT is nil, use the corresponding
836 element in the default fontset.
837
3b4fa1b2
DL
8382000-06-19 Dave Love <fx@gnu.org>
839
943e731c
DL
840 * syntax.c (Fparse_partial_sexp): Doc fix.
841
842 * regex.h: Test PROTOTYPES as well as __STDC__.
843
3b4fa1b2
DL
844 * unexalpha.c: Include errno.h, string.h, unistd.h. Don't declare
845 errno, strerror. Put text after #endif in comment.
846
847 * xdisp.c (dump_glyph_matrix): Add `static' to declaration (for
848 pcc).
849
850 * xterm.c (x_frame_of_widget): Likewise.
851
cdf0357b
GM
8522000-06-19 Gerd Moellmann <gerd@gnu.org>
853
854 * abbrev.c (syms_of_abbrev): Set buffer_default's abbrev table
855 to Vfundamental_mode_abbrev_table.
856
857 * alloc.c (mark_object) [GC_CHECK_MARKED_OBJECTS]: Check that no
858 bogus objects are marked. This slows down GC by ~80 percent, but
859 it might be worth trying when debugging GC-related problems.
860 This feature requires conservative stack marking to be enabled.
861
862 * xterm.c (XTread_socket) <KeyPress>: In case XmbLookupString
863 returns XLookupChars, reset `modifiers' to zero.
864
998e9f8c
DL
8652000-06-19 Dave Love <fx@gnu.org>
866
867 * mktime.c: Unprotoized.
868
d1504184
GM
8692000-06-19 Richard Stallman <rms@caffeine.ai.mit.edu>
870
871 * data.c (set_internal): If variable is frame-local,
872 store the new value immediately into the frame parameter alist.
873
140c4ac6
KR
8742000-06-19 Ken Raeburn <raeburn@gnu.org>
875
14358466
KR
876 * xfns.c (jpeg_load): Fetch error-handling data first, then fill
877 in the custom handler pointer.
878
140c4ac6
KR
879 * keyboard.c (follow_key, read_key_sequence): Use XUINT on key
880 value, or checks for CHAR_META can fail when Lisp_Object is a
881 union type.
882 * keymap.c (get_keyelt): Likewise.
883
10d7bf84
KH
8842000-06-19 Kenichi Handa <handa@etl.go.jp>
885
886 * ccl.h (struct ccl_program): New member eol_type.
887 (struct ccl_spec): New member cr_carryover.
888
889 * ccl.c (CCL_WRITE_CHAR): Convert NL according to ccl->eol_type.
890 (setup_ccl_program): Initialize ccl->eol_type to CODING_EOL_LF.
891
892 * coding.c (setup_coding_system) <4>: Reset member `cr_carryover'.
893 (ccl_coding_driver): On encoding, initialize ccl->eol_type.
894 (decode_eol_post_ccl): New function.
895 (decode_coding): Don't detect EOL format here for CCL based coding
896 systems.
897 (decode_coding) <coding_type_ccl>: Handle carryovered CR. Call
898 decode_eol_post_ccl after running the CCL program.
899 (code_convert_region): Don't detect EOL format here for CCL based
900 coding systems.
901 (decode_coding_string): Likewise.
902
52e386c2
KR
9032000-06-18 Ken Raeburn <raeburn@gnu.org>
904
905 * charset.c (update_charset_table): Use XINT on "iso_final_char"
906 when treating it as an integer.
907
908 * coding.h (encode_coding_string): Declare.
909
910 * keyboard.c (read_key_sequence): Use XINT on "pos" when treating
911 it as an integer.
912
913 * keymap.c (Fwhere_is_internal): Rename argument "keymap" to
914 "xkeymap" to avoid shadowing the "enum map_type" value that needs
915 to be passed to get_local_map.
916
917 * sound.c (Fplay_sound): Don't call make_number on
918 Frun_hook_with_args count argument.
919
920 * xterm.c (x_send_scroll_bar_event): Fudge lisp object/integer
921 for lisp objects in X event structure data field, when lisp
922 objects are represented with unions.
923 (x_scroll_bar_to_input_event): Ditto.
924
b357b9d4
KR
9252000-06-16 Ken Raeburn <raeburn@gnu.org>
926
927 * xdisp.c (decode_mode_spec): In "no_value" case, do NUL
37d034d3
KR
928 termination of string. Fix sense of test whether
929 Vline_number_display_limit is an integer.
b357b9d4 930
a871441d
GM
9312000-06-16 Gerd Moellmann <gerd@gnu.org>
932
a9021acd
GM
933 * xfaces.c (syms_of_xfaces) [DEBUG_X_COLORS]: Defsubr dump_colors
934 only if HAVE_X_WINDOWS.
935
6344985d
GM
936 * keymap.c (describe_buffer_bindings): Add `\f\n' in front
937 of titles.
938
427ec082 939 * dispnew.c (update_frame_1): Handle case that cursor vpos is
a871441d
GM
940 out of bounds.
941
228b083e
EZ
9422000-06-15 Eli Zaretskii <eliz@is.elta.co.il>
943
944 * unexec.c (toplevel): Fix last change, so as not to deprive MSDOS
945 of its headers.
946
c25b53a2
KH
9472000-06-15 Kenichi Handa <handa@etl.go.jp>
948
949 * coding.c (decode_coding_emacs_mule): Always set src_base at the
950 start of the while loop.
951
a6981b11
GM
9522000-06-15 Gerd Moellmann <gerd@gnu.org>
953
e9924e52
GM
954 * atimer.c (alarm_signal_handler): Add forward declaration.
955
a6981b11
GM
956 * data.c (set_internal): Remove debug code.
957
25fa6deb
GM
9582000-06-14 Gerd Moellmann <gerd@gnu.org>
959
dce6b995
GM
960 * Makefile.in (bootstrap-temacs): Add `-I../src'.
961
9f817ea4
GM
962 * unexec.c (toplevel) [COFF]: Include coff.h.
963
964 * s/lynxos.h: New file.
965
966 * keymap.c (Fsingle_key_description): Enclose function key and
967 event symbol names in angle brackets.
968
8a4e3c0c
GM
969 * xdisp.c (setup_echo_area_for_printing): Call
970 message_log_maybe_newline if message_buf_print is not set.
971
972 * print.c (printchar, strout): Don't check message_buf_print
427ec082 973 before calling setup_echo_area_for_printing because that
8a4e3c0c
GM
974 function does something useful even when message_buf_print is
975 already set.
976
25fa6deb
GM
977 * xdisp.c (message_truncate_lines, Qmessage_truncate_lines): New
978 variables.
979 (ensure_echo_area_buffers): Initialize echo buffer's
980 truncate lines setting to nil.
981 (with_echo_area_buffer): Don't set the echo buffer's truncate
982 lines setting here.
8a4e3c0c 983 (set_message_1): Set it here instead, based on the value
25fa6deb
GM
984 of message_truncate_lines.
985 (resize_mini_window): Handle case that lines are truncated.
986 (syms_of_xdisp): Initialize Qmessage_truncate_lines. DEFVAR_BOOL
987 message-truncate-lines.
988
989 * keyboard.c (read_char): Bind message-truncate-lines to t
990 while displaying a help-echo.
991
992 * lisp.h (Qmessage_truncate_lines): External declaration.
993
163dcff3
GM
9942000-06-13 Gerd Moellmann <gerd@gnu.org>
995
1681ead6
GM
996 * xdisp.c (Vline_number_display_limit): Renamed from
997 line_number_display_limit.
998 (syms_of_xdisp): Use DEFVAR_LISP for line-number-display-limit.
999 Extend documentation string. Initialize
1000 Vline_number_display_limit to nil meaning no limit.
1001 (decode_mode_spec): Use Vline_number_display_limit with its new
1002 meaning.
1003
163dcff3
GM
1004 * xterm.c (x_check_font) [GLYPH_DEBUG]: Add prototype.
1005
10062000-06-13 Richard Stallman <rms@caffeine.ai.mit.edu>
1007
1008 * frame.c (Fmodify_frame_parameters): Doc fix.
427ec082 1009
163dcff3
GM
1010 * xfns.c (x_set_frame_parameters): Comment fix.
1011
1012 * frame.c (store_frame_param): Call swap_in_global_binding if the
1013 variable's current binding was chosen based on this frame.
1014
1015 * data.c (swap_in_global_binding): New function.
1016
a704139d
EZ
10172000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
1018
1019 * msdos.c (IT_write_glyphs): Don't use CODING_REQUIRE_ENCODING
1020 macro, instead AND with CODING_REQUIRE_ENCODING_MASK.
1021
9b6610db
EZ
10222000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
1023
1024 * msdos.h (EMACS_MSDOS_H): Renamed from MSDOS_H_.
1025
c68833d2
JR
10262000-06-12 Jason Rumney <jasonr@gnu.org>
1027
1028 * w32bdf.h (EMACS_W32BDF_H): Renamed from __W32BDF_H__
1029
1030 * w32.h (EMACS_W32_H): Renamed from _NT_H_
1031
1032 * w32gui.h (EMACS_W32GUI_H): Renamed from __W32GUI_H__
1033
1034 * w32inevt.h (EMACS_W32INEVT_H): Renamed from __NTINEVT_H__
1035
ed1056b3
GM
10362000-06-12 Gerd Moellmann <gerd@gnu.org>
1037
1038 * xfaces.c (Fdump_colors) [DEBUG_X_COLORS]: New function.
1039 (syms_of_xfaces): Defsubr Sdump_colors.
1040 (x_free_colors): Don't treat b&w specially on default visual.
1041 (x_free_dpy_colors): New function.
1042 (free_face_colors): Don't check visual class; it's done
1043 in x_free_colors.
1044
1045 * xterm.c (x_frame_of_widget): New function.
1046 (x_alloc_nearest_color_for_widget): Use it.
1047 (x_copy_dpy_color): New function.
1048 (x_destroy_window): Free various colors.
1049
5050a2ef
KH
10502000-06-12 Kenichi Handa <handa@etl.go.jp>
1051
1052 * ccl.h (EMACS_CCL_H): Renamed from _CCL_H.
1053
1054 * charset.h (EMACS_CHARSET_H): Renamed from _CHARSET_H.
1055
1056 * coding.h (EMASC_CODING_H): Renamed from _CODING_H.
1057
1058 * composite.h (EMACS_COMPOSITE_H): Renamed from _COMPOSITE_H.
1059
1060 * fontset.h (EMACS_FONTSET_H): Renamed from _FONTSET_H.
1061
fb1b041d
DL
10622000-06-11 Dave Love <fx@gnu.org>
1063
1064 * systime.h (EMACS_SYSTIME_H): Renamed from _SYSTIME_H.
1065
ff96b5f4
EZ
10662000-06-11 Eli Zaretskii <eliz@is.elta.co.il>
1067
1068 * msdos.h: Don't use _MSDOS_H_ as a symbol, use MSDOS_H_ instead.
1069
db8eeecd
GM
10702000-06-11 Gerd Moellmann <gerd@gnu.org>
1071
ed1056b3 1072 * xmenu.c (xmenu_show): Cast second parameter of lw_popup_menu
db8eeecd
GM
1073 to `XEvent *'.
1074
49b71c5f
KH
10752000-06-10 Kenichi Handa <handa@etl.go.jp>
1076
c479bd55
KH
1077 * regex.c (MAKE_CHAR) [!emacs]: Dummy macro for non-Emacs env.
1078 (regex_compile): Fix the code for handling the case of single byte
1079 char and multibyte char being mixed in a range within [...].
1080
ff6a65c2
KH
1081 * fileio.c (Finsert_file_contents): Be sure to setup src_multibyte
1082 and dst_multibyte members of coding.
1083
49b71c5f
KH
1084 * charset.c (update_charset_table): Update the table
1085 bytes_by_char_head.
1086 (init_charset_once): Initialize elements of bytes_by_char_head to
1087 1 except for leading codes for private charases.
1088
1089 * charset.h (CHARSET_8_BIT_GRAPHIC): Define as 0x80.
1090 (UNIBYTE_STR_AS_MULTIBYTE_P): Fix for an invalid multibyte
1091 sequence.
1092
9e80b57d
KR
10932000-06-09 Ken Raeburn <raeburn@gnu.org>
1094
1095 * xterm.c (x_connection_closed): If dpyinfo is NULL, don't try to
1096 access the data it doesn't point to.
1097
f83fe4b4
GM
10982000-06-08 Gerd Moellmann <gerd@gnu.org>
1099
1100 * xterm.c (XTread_socket) <FocusIn>: Queue a FOCUS_IN_EVENT which
db8eeecd 1101 will be translated to a switch-frame event when reading the
f83fe4b4
GM
1102 event queue. This is necessary because Emacs otherwise won't
1103 perform a switch-frame to a new frame until some other event, for
1104 example a keystroke event, forces it to do so. This has various
1105 effects, one visible being that the cursor of a frame created with
1106 C-x 5 2 or switched to with a window manager key binding like
1107 A-TAB stays hollow because selected_window isn't on the newly
1108 focused frame until the switch-frame is performed.
1109
1110 * keyboard.c (kbd_buffer_get_event): Handle FOCUS_IN_EVENT by
1111 generating a switch-frame event if necessary.
1112
1113 * termhooks.h (enum event_kind): Add FOCUS_IN_EVENT.
1114
1115 * xdisp.c (handle_fontified_prop): Don't GCPRO local var `pos';
1116 it's an integer.
1117
0890801b
KH
11182000-06-08 Kenichi Handa <handa@etl.go.jp>
1119
1120 * fontset.c (Fset_fontset_font): The arg CHARACTER may be a
1121 charset.
1122
173cbca8
GM
11232000-06-07 Gerd Moellmann <gerd@gnu.org>
1124
3091c2a6
GM
1125 * window.c (displayed_window_lines): Take empty lines at
1126 the bottom of a window into account.
427ec082 1127
f38952fe
GM
1128 * window.c (displayed_window_lines): New function.
1129 (Fmove_to_window_line): Use displayed_window_lines to determine
1130 the number of lines to move, instead of using the window's height.
1131
1132 * lread.c (readevalloop): If READCHARFUN sets point to ZV, arrange
1133 to stop reading, even if the form read sets point to a different
1134 value when evaluated.
1135
427ec082 1136 * xdisp.c (display_line): Fix code deciding in which line to
173cbca8
GM
1137 put the cursor.
1138
6ba6c818
KH
11392000-06-07 Kenichi Handa <handa@etl.go.jp>
1140
1141 * fileio.c (e_write): Free composition data if stored in
1142 coding->cmp_data.
1143
5f1aea9a
GM
11442000-06-06 Gerd Moellmann <gerd@gnu.org>
1145
666852af
GM
1146 * xdisp.c (display_line): Set row's and iterator's
1147 starts_in_middle_of_char_p and ends_in_middle_of_char_p flags.
1148 Set cursor even if row ends in the middle of a character.
1149 (dump_glyph_row): Print values of new flags.
1150 (redisplay_window) <cursor movement in unchanged window>: When
1151 point has been moved forward, and PT is at the end of the cursor
1152 row, don't place the cursor in the next row if the cursor row ends
1153 in the middle of a character or at ZV.
1154
1155 * dispextern.h (struct it): Add starts_in_middle_of_char_p.
1156 (struct glyph_row): Add starts_in_middle_of_char_p and
1157 ends_in_middle_of_char_p.
1158 (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P): Test row's
1159 ends_in_middle_of_char_p flag.
1160 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Likewise.
1161
d13f3e2e
GM
1162 * term.c (append_glyph): Revert change of 2000-06-06.
1163
1164 * xdisp.c (display_line): Revert change of 2000-06-06. Treat
1165 padding glyph not fitting on line as whole character not
1166 fitting on line.
1167
5f1aea9a
GM
1168 * xterm.c (x_produce_glyphs): Don't xassert `it->descent > 0';
1169 this isn't true for images with `:ascent 100'.
1170
10cda9b0
KH
11712000-06-06 Kenichi Handa <handa@etl.go.jp>
1172
ed00559d
KH
1173 * buffer.c (Fset_buffer_multibyte): Don't make the current buffer
1174 as modified if it is originally unmodified.
1175
10cda9b0
KH
1176 * term.c (encode_terminal_code): Change the way to check if
1177 terminal coding does any conversion.
1178 (append_glyph): Set glyph->pixel_width correctly.
1179
1180 * xdisp.c (display_line): While checking line continuation, pay
1181 attention to a padding glyph.
1182
1969fae2
GM
11832000-06-05 Gerd Moellmann <gerd@gnu.org>
1184
1185 * xdisp.c (redisplay_window): Always use set_buffer_internal_1.
1186
162ccef4
DL
11872000-06-05 Dave Love <fx@gnu.org>
1188
f19f32dd
DL
1189 * xdisp.c: Include fontset.h.
1190
1191 * xfns.c (x_real_positions): Declare tmp_nchildren as unsigned.
1192
1193 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
1194
1195 * dispnew.c: Conditionally include term.h.
1196
1197 * coding.h: Declare code_convert_string_norecord.
1198
1199 * frame.h (struct frame): Use volatile unconditionally.
1200
1201 * buffer.h: Remove Vbefore_change_function, Vafter_change_function.
1202
1203 * xmenu.c (menu_item_selection): Declare volatile unconditionally.
1204
1205 * systime.h: Protect against multiple inclusion.
1206 (timezone) [USG5_4]: Define as time_t.
1207
1208 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
1209 (Foptimize_char_table, make_temp_name): Declare.
1210
1211 * Makefile.in (xdisp.o): Depend on fontset.h.
1212
1213 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
1214
1215 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
1216 (Foptimize_char_table, make_temp_name): Declare.
1217
427ec082 1218 * s/irix4-0.h:
162ccef4
DL
1219 * s/irix5-0.h:
1220 * s/netbsd.h: Don't define autoconfiscated MATHERR.
1221
2082fe81
DL
12222000-06-02 Dave Love <fx@gnu.org>
1223
1224 * lread.c (_XOPEN_SOURCE, __EXTENSIONS__): Don't define.
1225
dcf671d2
GM
12262000-06-02 Gerd Moellmann <gerd@gnu.org>
1227
1228 * xfaces.c (realize_x_face): When copying BASE_FACE bitwise to the
1969fae2 1229 result face, set flags in that face indicating that colors may not
dcf671d2
GM
1230 be freed.
1231
1232 * xterm.c (x_set_mouse_face_gc): If first glyph isn't a character
1233 glyph, use the ASCII NUL character to determine the face.
1234
d42122a3
DL
12352000-06-02 Dave Love <fx@gnu.org>
1236
1237 * sysdep.c: Conditionally include stdlib.h, unistd.h.
1238 (VFORK_RETURN_TYPE): Remove.
427ec082 1239
d42122a3
DL
1240 * config.in: Add NO_MATHERR.
1241
dd432f16
DL
12422000-06-01 Dave Love <fx@gnu.org>
1243
90aa4ea8
DL
1244 * cmds.c (internal_self_insert): Don't check
1245 Vbefore_change_function, Vafter_change_function.
1246
1247 * insdel.c (signal_before_change, signal_after_change): Likewise.
1248
1249 * buffer.c (Vbefore_change_function, Vafter_change_function):
1250 Variables and their initializations deleted.
1251
2330c9d4
DL
1252 * callint.c (Fcall_interactively): Doc fix.
1253
dd432f16
DL
1254 * terminfo.c (ospeed) [HAVE_SPEED_T]: Don't declare extern.
1255
bf9e8804
DL
12562000-05-31 Dave Love <fx@gnu.org>
1257
1258 * textprop.c: Revert last change -- duplicated.
1259
3694b4ab
GM
12602000-05-31 Gerd Moellmann <gerd@gnu.org>
1261
1262 * dispnew.c (find_glyph_row_slice, swap_glyphs_in_rows): Put
1263 in #if 0.
1264
1265 * lisp.h (eassert) [!ENABLE_CHECKING]: Define as `(void) 0'.
1266
f14156cd
JR
12672000-05-31 Jason Rumney <jasonr@gnu.org>
1268
8119aab8
JR
1269 * search.c (Fre_search_forward, Fre_search_backward)
1270 (Fposix_search_backward, Fposix_search_forward): Fix newlines in docs.
1271
f14156cd
JR
1272 * w32select.c (Fw32_set_clipboard_data): Change QNil to Qnil.
1273
4aab9be3
JR
12742000-05-30 Jason Rumney <jasonr@gnu.org>
1275
1276 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: New macros.
1277 [WINDOWSNT]: Add extern for Vw32_system_coding_system.
1278
1279 * dispextern.h (struct glyph) [WINDOWSNT]: Add w32_font_type
1280 member.
1281
1282 * fileio.c (Fread_file_name) [HAVE_NTGUI]: Use file dialog.
1283 (Fread_file_name) [HAVE_NTGUI, USE_MOTIF]: Do not attempt to
1284 expand a nil default_filename.
1285
1286 * keyboard.c (make_lispy_event) [WINDOWS_NT]: Pass a window
1287 pointer to glyph_to_pixel_coords, not a frame.
1288
1289 * makefile.nt (w32fns.obj, w32menu.obj): Add charset.h and
1290 coding.h to dependencies.
1291
1292 * w32bdf.c (w32_load_bdf_font): Initialize font->double_byte_p.
1293
1294 * w32console.c (glyph_to_pixel_coords): Change first parameter to
1295 window pointer to be consistent with w32term.c and xterm.c.
1296
1297 * w32fns.c: Format and doc changes to bring closer to xfns.c.
1298 (VIETNAMESE_CHARSET): Define if not defined in system headers.
1299 (Qline_spacing, Qcenter): New variables.
1300 (Qw32_charset_*, w32_codepage_for_font): Moved from w32term.c.
1301 (x_set_line_spacing): New function.
1302 (x_set_frame_parameters): Use FRAME_NEW_WIDTH, FRAME_NEW_HEIGHT
1303 macros.
1304 (x_specified_cursor_type): New function.
1305 (x_set_cursor_type): Use it.
1306 (x_set_name, x_set_title): Use ENCODE_SYSTEM to encode titlebar
1307 and icon strings.
1308 (validate_x_resource_name, x_get_resource_string): Measure lengths
1309 of external strings in bytes.
1310 (w32_wnd_proc) [WM_MEASURE_ITEM]: Avoid calling
1311 GetTextExtentPoint32 with NULL title.
1312 (Fx_create_frame): Initialize Qline_spacing.
1313 (w32_load_system_font): Initialize font->double_byte_p.
1314 (x_to_w32_charset): Use Vw32_charset_info_alist.
1315 (Image, busy cursor, tooltip functions): Merged changes from
1316 xfns.c. Not yet functional on Windows.
1317
1318 * w32gui.h (W32FontStruct): Add double_byte_p member.
1319
1320 * w32inevt.c (NUM_TRANSLATED_MOUSE_BUTTONS): New constant.
1321 (emacs_button_translation): Use it.
1322 (do_mouse_event): Allow up to 32 mouse buttons by allowing any bit
1323 in `mask' to be set.
1324
1325 * w32menu.c (single_submenu, w32_menu_show): Call ENCODE_SYSTEM on
1326 menu strings.
1327
1328 * w32term.c: Format and doc changes to bring closer to xterm.c.
1329 (w32_char_font_type): New enum.
1330 (Qw32_charset_*, w32_codepage_for_font): Moved to w32fns.c.
1331 (w32_per_char_metric): Use w32_char_font_type instead of unicode_p.
1332 (w32_encode_char): New function.
1333 (x_encode_char): Removed.
1334 (x_get_glyph_and_face_encoding): Use w32_encode_char in place of
1335 x_encode_char and w32_font_is_double_byte.
1336 (x_produce_image_glyph): Use image_ascent.
1337 (x_produce_glyphs): Use new version of w32_per_char_metric and
1338 handle NULL return value. Allow extra line spacing.
1339 (W32_TEXTOUT): Distinguish between Unicode and DBCS text.
1340 (w32_get_glyph_overhangs): Remove unicode_p param. Use
1341 w32_font_type member of glyph instead.
1342 (x_draw_glyph_string): Draw underline and strike-out for BDF fonts.
1343 (fast_find_position): Make sure not to consider rows not visible
1344 in the window.
1345 (w32_read_socket) [WM_MENUSELECT]: Cannot call
1346 w32_menu_display_help with input blocked, as it can abort.
1347 (x_display_and_set_cursor): Choose cursor depending
1348 on buffer-local value of cursor_type.
1349 (x_draw_bar_cursor): Add parameter WIDTH.
1350
1351 * w32term.h (CP_DEFAULT): Define.
1352 (Fx_display_color_p, Fx_display_grayscale_p, image_ascent): Declare.
1353
10fc3187
GM
13542000-05-30 Gerd Moellmann <gerd@gnu.org>
1355
1356 * search.c (Fre_search_forward, Fre_search_backward)
1357 (Fposix_search_backward, Fposix_search_forward): Doc fix.
1358
d0555360
KH
13592000-05-30 Kenichi Handa <handa@etl.go.jp>
1360
1361 * coding.c (detect_coding_iso2022): Fix code for checking
1362 CODING_CATEGORY_MASK_ISO_8_2.
1363
f1ad044f
SM
13642000-05-29 Stefan Monnier <monnier@cs.yale.edu>
1365
1366 * regex.c (PREFETCH_NOLIMIT): New function.
1367 (re_match_2_internal): Use it and adjust the end_match_2 logic.
1368
84ec3b4b
GM
13692000-05-29 Gerd Moellmann <gerd@gnu.org>
1370
66254a13
GM
1371 * syntax.c (find_defun_start): Move test for
1372 open_paren_in_column_0_is_defun_start outside of the loop.
1373
49e70dec
GM
1374 * xdisp.c (redisplay_window): Really switch buffers when
1375 displaying mode lines, and temporarily set selected_frame to the
1376 frame of the window that's redisplayed.
1377
84ec3b4b
GM
1378 * xfaces.c (free_realized_faces): Block/unblock input.
1379 (free_realized_multibyte_face): Ditto.
1380
869a3a14
DL
13812000-05-29 Dave Love <fx@gnu.org>
1382
1383 * textprop.c (Qkeymap): New variable.
1384 (syms_of_textprop): Intern it.
1385
1386 * keymap.c: Include intervals.h.
1387 (Fkey_binding, Fwhere_is_internal): Deal with `keymap' property.
1388
1389 * Makefile.in (keymap.o): Depend on intervals.h.
1390
1391 * keyboard.c (menu_bar_items, tool_bar_items)
1392 (Fexecute_extended_command): Deal with `keymap' property.
1393 (read_key_sequence): Track map from `keymap' property as well as
1394 `local_map'.
1395
1396 * intervals.c (get_local_map): Extra arg to allow looking for
1397 `keymap' too.
1398
1399 * intervals.h (map_property): New enum.
1400 (get_local_map): Extra arg using it.
1401 (Qkeymap): Declare.
1402
84ec3b4b 1403 * lisp.h (get_local_map): Don't declare here.
869a3a14 1404
89d0c844
KH
14052000-05-29 Kenichi Handa <handa@etl.go.jp>
1406
1407 * Makefile.in (callproc.o): Depend on composite.h.
1408
1409 * callproc.c: Include composite.h.
1410 (Fcall_process): Handle composition correctly.
1411
1412 * coding.h (coding_allocate_composition_data): Extern it.
1413 (coding_restore_composition): Likewise.
1414
1415 * coding.c (DECODE_COMPOSITION_START): If coding->cmp_data is not
1416 yet allocated, finish decoding with result
1417 CODING_FINISH_INSUFFICIENT_CMP.
1418 (coding_allocate_composition_data): Make it non-static.
1419 (coding_restore_composition): Likewise.
1420
797a084a
EZ
14212000-05-29 Eli Zaretskii <eliz@is.elta.co.il>
1422
1423 * charset.c (syms_of_charset): Revert last change.
1424
cf872af5
EZ
14252000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
1426
1427 * term.c (produce_glyphs): Treat characters from the eight-bit-*
d7d0dac0
SM
1428 charsets as unibyte, with 1-column screen width. Sent by Kenichi
1429 Handa.
cf872af5 1430
5b1ae051
EZ
14312000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
1432
1433 * charset.c (syms_of_charset): Set width of character sets
1434 eight-bit-control and eight-bit-graphic to 1 column.
1435
34ec9ebe
GM
14362000-05-26 Gerd Moellmann <gerd@gnu.org>
1437
1438 * config.in (HAVE_SPEED_T): New define.
1439
1440 * sysdep.c, terminfo.c (ospeed) [HAVE_SPEED_T]: Declare as
1441 `extern speed_t'.
1442
dd854dc2
DL
14432000-05-26 Dave Love <fx@gnu.org>
1444
1445 * coding.c (shrink_decoding_region): Initialize eol_conversion.
1446
1447 * data.c (Qsubrp, Qmany, Qunevalled): New variables.
1448 (Fsubr_arity): New function.
1449 (syms_of_data): Install them.
1450
ba9f8f95
KH
14512000-05-26 Kenichi Handa <handa@etl.go.jp>
1452
0f3e0672
KH
1453 * charset.c (init_charset_once): Set the table bytes_by_char_head
1454 correctly.
1455
cebefb44
KH
1456 * fontset.c (syms_of_fontset): Adjust the font name for ascii of
1457 the default fontset to what Emacs uses by default.
0f3e0672
KH
1458 (check_registry_encoding): This function deleted.
1459 (Fset_fontset_font): Remove the adhoc condition for the default
1460 fontset. Allow cons in FONTNAME.
cebefb44 1461
0f3e0672
KH
1462 * fns.c (map_char_table): Ignore char-table entries for
1463 charsets eight-bit-control and eight-bit-graphic.
ba9f8f95 1464
7a18af49
KR
14652000-05-25 Ken Raeburn <raeburn@gnu.org>
1466
1467 * emacs.c (main): Initialize keyboard syms before initializing
1468 window code, so face names are available.
1469
d2af47df
SM
14702000-05-25 Stefan Monnier <monnier@cs.yale.edu>
1471
1472 * regex.c (at_begline_loc_p): Also recognize the \\(?:^ case
1473 of an anchor at the beginning of a shy-group.
1474
fc6a6a4e
GM
14752000-05-25 Gerd Moellmann <gerd@gnu.org>
1476
1477 * xdisp.c (handle_invisible_prop): Don't try to skip over
1478 invisible text if end of text is already reached.
1479
005f0d35
DL
14802000-05-25 Dave Love <fx@gnu.org>
1481
02513cdd
DL
1482 * xdisp.c (Fdump_glyph_matrix): Declare the arg.
1483
005f0d35
DL
1484 * coding.c (encode_eol): Add null statement after label.
1485
89f6ca4e
EZ
14862000-05-25 Eli Zaretskii <eliz@is.elta.co.il>
1487
1488 * w16select.c (Fw16_set_clipboard_data): Fix the change from
1489 2000-05-20.
1490
a4e1759e
KH
14912000-05-25 Kenichi Handa <handa@etl.go.jp>
1492
1493 * ccl.c (ccl_driver): Fix previous change.
1494
eacfd7fe
KH
14952000-05-25 Kenichi Handa <handa@etl.go.jp>
1496
46ab33a9
KH
1497 * coding.c (run_pre_post_conversion_on_str): Set point to the
1498 beginning of buffer before calling coding->post_read_conversion.
1499 (decode_coding_string): Give correct args to
1500 run_pre_post_conversion_on_str.
1501 (encode_coding_string): Likewise.
1502
eacfd7fe
KH
1503 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>
1504 <CCL_WriteMultibyteChar2>: Handle charsets eight-bit-control and
1505 eight-bit-graphic correctly.
1506
f8569325
DL
15072000-05-24 Kenichi HANDA <handa@etl.go.jp>
1508
1509 * fileio.c (Finsert_file_contents): Even if a file is not found,
1510 execute codes for setting up coding system. Call
1511 after-insert-file-functions unconditionally.
1512
04545643
GM
15132000-05-24 Gerd Moellmann <gerd@gnu.org>
1514
1515 * callproc.c, emacs.c, sysdep.c (setpgrp): Don't define if USG and
1516 BSD_PGRPS are not defined.
1517
747d90ea
KH
15182000-05-24 Kenichi Handa <handa@etl.go.jp>
1519
1520 * charset.c (update_charset_table): Accept nil in LONG_NAME and
1521 DESCRIPTION.
1522 (syms_of_charset): Avoid building same strings.
1523
716e3b88
GM
15242000-05-23 Gerd Moellmann <gerd@gnu.org>
1525
1526 * lread.c (Fload): Add a comment about the meaning of
1527 Vuser_init_file being t.
1528
1529 * puresize.h (BASE_PURESIZE): Increase to 675000.
1530
1531 * s/gnu-linux.h (setpgrp): Don't define it here because this
1532 prevents compilation on GNU/Linux systems with glib 2.2.
1533
1534 * callproc.c, emacs.c, sysdep.c (setpgrp) [HAVE_SETPGID]: Define
1535 as setpgid.
427ec082 1536
9aeb39fa
EZ
15372000-05-23 Eli Zaretskii <eliz@is.elta.co.il>
1538
1539 * Makefile.in (SOME_MACHINE_LISP): Add disp-table.elc,
1540 dos-vars.elc, ccl.elc, and codepage.elc, all loaded by the MS-DOS
1541 version.
1542 (MSDOS_SUPPORT): Add dos-vars.elc, ccl.elc, and codepage.elc.
1543
29ced61b
KH
15442000-05-23 Kenichi Handa <handa@etl.go.jp>
1545
0574a2ed
KH
1546 * syntax.c (skip_chars): Use FETCH_STRING_CHAR_ADVANCE
1547 unconditionally.
1548
3d80f24d
KH
1549 * msdos.c (IT_write_glyphs): Set coding->src_multibyte to 1.
1550
1551 * term.c (encode_terminal_code): Set coding->src_multibyte
1552 properly.
1553
29ced61b
KH
1554 * coding.c (encode_eol): Fix a bug of DOS style EOL encoding.
1555
d7e00792
KH
15562000-05-22 Kenichi Handa <handa@etl.go.jp>
1557
c9d80d38
KH
1558 * keyboard.c (read_char): Allow character codes 128..255 to be
1559 handled by input-method-function.
1560
d7e00792
KH
1561 * insdel.c (adjust_markers_for_replace): Fix previous change.
1562 (adjust_after_replace): If PREV_TEXT is nil, call
1563 adjust_markers_for_insert, not adjust_markers_for_replace.
1564
087121cc 15652000-05-20 NIIBE Yutaka <gniibe@mri.co.jp>
427ec082 1566
087121cc
GM
1567 * s/gnu-linux.h (UNIX98_PTYS) [HAVE_GRANDPT]: Define.
1568 (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_OPEN, PTY_TTY_NAME_SPRINTF)
1569 [HAVE_GRANDPT]: Define.
1570 (C_SWITCH_SYSTEM): Add -D_XOPEN_SOURCE.
1571
1572 * sysdep.c (setup_pty): Treat case that UNIX98_PTYS is defined
1573 like SYSV_PTYS.
1574
1575 * config.in (HAVE_GRANDPT, HAVE_GETPT): New defines.
1576
1577 * process.c (toplevel) [UNIX98_PTYS]: Include stdlib.h.
1578
c9671f81
KH
15792000-05-20 Kenichi Handa <handa@etl.go.jp>
1580
1581 The following changes are to handle 8-bit characters in a
1582 multibyte buffer/string without facing with byte combining
1583 problem. Two new charsets eight-bit-control (for 0x80..0x9F) and
1584 eight-bit-graphic (for 0xA0..0xFF) are introduced.
1585
1586 * Makefile.in (fns.o): Depend on charset.h.
1587
1588 * alloc.c (Fmake_byte_code): If BYTECODE-STRING is multibyte,
1589 convert it to unibyte.
1590 (make_string): Use parse_str_as_multibyte, not chars_in_text.
1591
1592 * buffer.c (advance_to_char_boundary): Don't use DEC_POS to find a
1593 apparent char boundary.
1594 (Fset_buffer_multibyte): Convert 8-bit characters in the range
1595 0x80..0x9F to/from multibyte form.
1596
1597 * bytecode.c (Fbyte_code): If arg BYTESTR is multibyte, convert it
1598 to unibyte.
1599
1600 * callproc.c (Fcall_process): Always encode an argument string if
1601 it is multibyte. Setup src_multibyte and dst_multibyte members of
1602 process_coding properly.
ce75fd23 1603
c9671f81
KH
1604 * category.c (Fmodify_category_entry): Use SPLIT_CHAR, not
1605 SPLIT_NON_ASCII_CHAR.
1606
1607 * ccl.c (CCL_WRITE_CHAR): Be sure to write single byte characters
1608 as is.
1609 (CCL_MAKE_CHAR): Use MAKE_CHAR, not MAKE_NON_ASCII_CHAR.
1610
1611 * charset.c (Qeight_bit_control, Qeight_bit_graphic): New
1612 variables.
1613 (SPLIT_CHARACTER_SEQ): This macro deleted.
1614 (SPLIT_MULTIBYTE_SEQ): Assume that multibyte sequence at STR is
1615 valid.
1616 (CHAR_COMPONENTS_VALID_P): Handle new charsets; eight-bit-control
1617 and eight-bit-graphic.
1618 (char_to_string): Likewise. Signal an error for too large
1619 character code.
1620 (char_printable_p): Return 0 for 8-bit characters.
1621 (update_charset_table): Update iso_charset_table only when a final
1622 character is non-negative.
1623 (find_charset_in_text): Renamed from find_charset_in_str.
1624 Arguments and return value changed. Callers changed.
1625 (Fdefine_charset): Args ISO-FINAL-CHAR and ISO-GRAPHIC-PLANE can
1626 be -1 if CHARSET is used only internally.
1627 (Fmake_char_internal): Handle new charsets; eight-bit-control and
1628 eight-bit-graphic.
1629 (Fcharset_after): Simplified.
1630 (char_valid_p): Use SPLIT_CHAR, not SPLIT_NON_ASCII_CHAR.
1631 (char_bytes): Return 2 for chars of the range 0xA0..0xFF.
1632 (multibyte_chars_in_text): Simplified by assuming there's no
1633 invalid multibyte sequence.
1634 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte,
1635 str_as_unibyte): New functions.
1636 (Fstring): Simpified by assuming that byte combining never
1637 happens.
1638 (init_charset_once): Initialization for
1639 LEADING_CODE_8_BIT_CONTROL.
1640 (syms_of_charset): Intern and staticpro Qeight_bit_control and
1641 Qeight_bit_graphic. Include them in Vcharset_list. Make charsets
1642 eight-bit-control and eight-bit-graphic.
1643
1644 * charset.h (LEADING_CODE_8_BIT_CONTROL, CHARSET_8_BIT_CONTROL,
1645 CHARSET_8_BIT_GRAPHIC): New macros.
1646 (SINGLE_BYTE_CHAR_P): Make it faster by using casting.
1647 (CHARSET_ISO_GRAPHIC_PLANE): Use XINT instead of XFASTINT.
1648 (CHARSET_REVERSE_CHARSET): Likewise.
1649 (CHARSET_VALID_P): Handle new charsets; eight-bit-control and
1650 eight-bit-graphic.
1651 (BYTES_BY_CHAR_HEAD, WIDTH_BY_CHAR_HEAD): Optimize for ASCII.
1652 (CHAR_CHARSET, MAKE_CHAR, SPLIT_CHAR, CHAR_BYTES): Likewise.
1653 (PARSE_MULTIBYTE_SEQ) [BYTE_COMBINING_DEBUG]: Abort if we
1654 encounter an invalid multibyte sequence.
1655 (PARSE_MULTIBYTE_SEQ) [not BYTE_COMBINING_DEBUG]: Assume multibyte
1656 sequence is always valid.
1657 (MAKE_NON_ASCII_CHAR, SPLIT_NON_ASCII_CHAR): These macros Deleted.
1658 (UNIBYTE_STR_AS_MULTIBYTE_P, MULTIBYTE_STR_AS_UNIBYTE_P): New
1659 macros.
1660 (CHAR_STRING): For 8-bit characters, call char_to_string.
1661 (INC_POS) [not BYTE_COMBINING_DEBUG]: Faster version. Assume
1662 multibyte sequence is always valid.
1663 (BUF_INC_POS) [not BYTE_COMBINING_DEBUG]: Likewise.
1664 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte,
1665 str_as_unibyte): Extern them.
1666 (BCOPY_SHORT): Fix a bug.
1667 (CHAR_LEN): This macro deleted. Callers changed to use
1668 CHAR_BYTES.
1669 (FETCH_STRING_CHAR_ADVANCE): Check multibyteness of STRING.
1670 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): New macro.
1671 (FETCH_CHAR_ADVANCE): Check multibyteness of the current buffer.
1672
bd4bde7f 1673 * coding.c (ONE_MORE_BYTE, TWO_MORE_BYTES): Set coding->result to
c9671f81
KH
1674 CODING_FINISH_INSUFFICIENT_SRC if there's not enough source.
1675 (ONE_MORE_CHAR, EMIT_CHAR, EMIT_ONE_BYTE, EMIT_TWO_BYTE,
1676 EMIT_BYTES): New macros.
1677 (THREE_MORE_BYTES, DECODE_CHARACTER_ASCII,
1678 DECODE_CHARACTER_DIMENSION1, DECODE_CHARACTER_DIMENSION2): These
1679 macros deleted.
1680 (CHECK_CODE_RANGE_A0_FF): This macro deleted.
1681 (detect_coding_emacs_mule): Use UNIBYTE_STR_AS_MULTIBYTE_P to
1682 check the validity of multibyte sequence.
1683 (decode_coding_emacs_mule): New function.
1684 (encode_coding_emacs_mule): New macro.
1685 (detect_coding_iso2022): Use ONE_MORE_BYTE to fetch a byte from
1686 the source.
1687 (DECODE_ISO_CHARACTER): Just return a character code.
1688 (DECODE_COMPOSITION_START): Set coding->result instead of result.
1689 (decode_coding_iso2022, decode_coding_sjis_big5, decode_eol): Use
1690 EMIT_CHAR to produced decoded characters. Exit the loop only by
1691 macros ONE_MORE_BYTE or EMIT_CHAR. Don't handle the case of last
1692 block here.
1693 (ENCODE_ISO_CHARACTER): Don't translate character here. Produce
1694 only position codes for an invalid character.
1695 (encode_designation_at_bol): Return new destination pointer. 5th
1696 arg DSTP is changed to DST.
1697 (encode_coding_iso2022, decode_coding_sjis_big5): Get a character
1698 from the source by ONE_MORE_CHAR. Don't handle the case of last
1699 block here.
1700 (DECODE_SJIS_BIG5_CHARACTER, ENCODE_SJIS_BIG5_CHARACTER): These
1701 macros deleted.
1702 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8,
1703 detect_coding_utf_16, detect_coding_ccl): Use ONE_MORE_BYTE and
1704 TWO_MORE_BYTES to fetch a byte from the source.
1705 (encode_eol): Pay attention to coding->src_multibyte.
1706 (detect_coding, detect_eol): Preserve members src_multibyte and
1707 dst_multibyte.
1708 (DECODING_BUFFER_MAG): Return 2 even for coding_type_raw_text.
1709 (encoding_buffer_size): Set magnification to 3 for all coding
1710 systems that require encoding.
1711 (ccl_coding_driver): For decoding, be sure that the result is
1712 valid multibyte sequence.
1713 (decode_coding): Initialize coding->errors and coding->result.
1714 For emacs-mule, call decode_coding_emacs_mule. For no-conversion
1715 and raw-text, always call decode_eol. Handle the case of last
1716 block here. If not coding->dst_multibyte, convert the resulting
1717 sequence to unibyte.
1718 (encode_coding): Initialize coding->errors and coding->result.
1719 For emacs-mule, call encode_coding_emacs_mule. For no-conversion
1720 and raw-text, always call encode_eol. Handle the case of last
1721 block here.
1722 (shrink_decoding_region, shrink_encoding_region): Detect cases
1723 that we can't skip data more rigidly.
1724 (code_convert_region): Setup src_multibyte and dst_multibyte
1725 members of coding. For decoding, if the buffer is multibyte,
1726 convert the source sequence to unibyte in advance. For encoding,
1727 if the buffer is multibyte, convert the resulting sequence to
1728 multibyte afterward.
1729 (run_pre_post_conversion_on_str): New function.
1730 (code_convert_string): Deleted and divided into the following two.
1731 (decode_coding_string, encode_coding_string): New functions.
1732 (code_convert_string1, code_convert_string_norecord): Call one of
1733 above.
1734 (Fdecode_sjis_char, Fdecode_big5_char): Use MAKE_CHAR instead of
1735 MAKE_NON_ASCII_CHAR.
1736 (Fset_terminal_coding_system_internal,
1737 Fset_safe_terminal_coding_system_internal): Setup src_multibyte
1738 and dst_multibyte members.
1739 (init_coding_once): Initialize iso_code_class with new enum
1740 ISO_control_0 and ISO_control_1.
1741
1742 * coding.h (enum iso_code_class_type): Member ISO_control_code is
1743 devided into ISO_control_0 and ISO_control_1.
1744 (struct coding_system): New members src_multibyte, dst_multibyte,
1745 errors, and result. Delete member fake_multibyte.
1746 (CODING_REQUIRE_DECODING): Return 1 if coding->dst_multibyte is
1747 nonzero.
1748 (CODING_REQUIRE_ENCODING): Return 1 if coding->src_multibyte is
1749 nonzero.
1750
1751 * data.c (Faref): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
1752 (Faset): Likewise.
1753
1754 * editfns.c (Fformat): Be sure to convert 8-bit characters to
1755 multibyte form.
1756 (Ftranspose_region) [BYTE_COMBINING_DEBUG]: Abort if byte
1757 combining occurs.
1758 (Ftranspose_region): Delete codes for handling byte combining.
1759
1760 * fileio.c (Finsert_file_contents): Setup src_multibyte and
1761 dst_multibyte members of coding. On handling REPLACE on unibyte
1762 buffer, convert the result of decode_coding to unibyte. On
1763 inserting into a mutibyte buffer, always call code_convert_region.
bd4bde7f 1764 (e_write): Setup coding->src_multibyte according to the
c9671f81
KH
1765 multibyteness of the source (buffer or string).
1766
1767 * fns.c (concat): Handle 8-bit characters correctly.
1768 (Fstring_as_unibyte): Be sure to make all 8-bit characters in
1769 unibyte in the result.
1770 (Fstring_as_multibyte): Be sure to make all 8-bit characters in
1771 valid multibyte form in the result.
1772 (map_char_table): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
1773 (Fbase64_encode_region, Fbase64_encode_string): If base64_encode_1
1774 return -1, signal an error.
1775 (base64_encode_1): New arg MULTIBYTE. Get each character by
1776 CHAR_STRING_AND_LENGTH if MULTIBYTE is nonzero. If a multibyte
1777 character is found, return -1.
1778 (Fbase64_decode_region): Delete codes for handling byte-combining.
1779 Treat each decoded byte as a unibyte character.
1780 (Fbase64_decode_string): Return unibyte string.
1781 (Fcompare_strings, concat, string_byte_to_char): Use
1782 FETCH_STRING_CHAR_ADVANCE_NO_CHECK instead off
1783 FETCH_STRING_CHAR_ADVANCE.
1784 (Fstring_lessp): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
1785 (mapcar1): If SEQ is string, always use FETCH_STRING_CHAR_ADVANCE.
1786
1787 * fontset.c (fontset_ref): Use SPLIT_CHAR instead of
1788 SPLIT_NON_ASCII_CHAR.
1789 (fontset_ref_via_base, fontset_set): Likewise
1790
1791 * insdel.c (adjust_markers_for_record_delete): Deleted.
1792 (adjust_markers_for_insert): Argument changed. Caller changed.
1793 (adjust_markers_for_replace): Likewise.
1794 (ADJUST_CHAR_POS, combine_bytes, byte_combining_error,
1795 CHECK_BYTE_COMBINING_FOR_INSERT): Deleted.
1796 (copy_text): Delete unused local varialbe c_save. For converting
1797 to multibyte, be sure to make all 8-bit characters in valid
1798 multibyte form.
1799 (count_size_as_multibyte): Handle 8-bit characters correctly.
1800 (insert_1_both, insert_from_string_1, insert_from_buffer_1,
1801 adjust_after_replace, replace_range, del_range_2)
1802 [BYTE_COMBINING_DEBUG]: Abort if byte combining occurs.
1803 (insert_1_both, insert_from_string_1, insert_from_buffer_1,
1804 adjust_after_replace, replace_range, del_range_2) Delete codes for
1805 handling byte combining.
1806 (adjust_before_replace): Deleted.
427ec082 1807
c9671f81
KH
1808 * keymap.c (Fsingle_key_description): Use SPLIT_CHAR instead of
1809 SPLIT_NON_ASCII_CHAR.
1810 (describe_vector): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
1811 (Faccessible_keymaps): Use FETCH_STRING_CHAR_ADVANCE
1812 unconditionally.
1813 (Fkey_description): Likewise.
1814
1815 * lread.c (read1): On reading multibyte string, be sure to make
1816 all 8-bit chararacters in valid multibyte form.
1817 (readchar): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
1818
1819 * print.c (print_object): Use FETCH_STRING_CHAR_ADVANCE
1820 unconditionally.
1821
1822 * process.c (Fstart_process): GCPRO current_dir before calling
1823 Ffind_operation_coding_system. Encode arguments here.
1824 (create_process): Don't encode arguments here. Setup
1825 src_multibyte and dst_multibyte members of struct coding.
1826 (read_process_output): Setup src_multibyte and dst_multibyte
1827 members of struct coding. If the output is to multibyte buffer,
1828 always decode the output of the process. Adjust the
1829 representation of 8-bit characters to the multibyteness of the
1830 output.
1831 (send_process): Setup coding->src_multibyte according to the
1832 multibyteness of the source.
1833
1834 * search.c (wordify): Use FETCH_STRING_CHAR_ADVANCE
1835 unconditionally.
1836 (Freplace_match): Use FETCH_STRING_CHAR_ADVANCE and
1837 FETCH_STRING_CHAR_ADVANCE_NO_CHECK appropriately.
1838
1839 * term.c (produce_special_glyphs): Use CHAR_BYTES instead of
1840 CHAR_LEN.
1841
1842 * w16select.c (Fw16_set_clipboard_data): Setup members
1843 src_multibyte and dst_multibyte of coding. Adjusted for the
1844 change for find_charset_in_str.
1845 (Fw16_get_clipboard_data): Likewise.
1846
1847 * w32fns.c (w32_to_x_font): Setup members src_multibyte and
1848 dst_multibyte of coding.
1849 (x_to_w32_font): Likewise.
1850
1851 * w32select.c (Fw32_set_clipboard_data): Setup members
1852 src_multibyte and dst_multibyte of coding. Adjusted for the
1853 change for find_charset_in_str.
1854 (Fw32_get_clipboard_data): Likewise.
1855
1856 * xdisp.c (get_next_display_element): Handle 8-bit characters
1857 correctly.
1858 (next_element_from_display_vector): Use CHAR_BYTES instead of
1859 CHAR_LEN.
1860 (disp_char_vector): Use SPLIT_CHAR instead of
1861 SPLIT_NON_ASCII_CHAR.
1862
1863 * xselect.c (selection_data_to_lisp_data): Setup members
1864 src_multibyte and dst_multibyte of coding. Adjusted for the
1865 change for find_charset_in_str.
1866 (lisp_data_to_selection_data): Likewise.
1867
5f64c9e0
GM
18682000-05-19 Gerd Moellmann <gerd@gnu.org>
1869
2b63d473
GM
1870 * buffer.c (Fbury_buffer): Avoid trouble from burying a killed
1871 buffer.
1872
5f64c9e0
GM
1873 * dispextern.h (Vimage_types): Add extern declaration.
1874
1875 * xdisp.c (Vimage_types): Moved here from xfns.c.
1876 (syms_of_xdisp): Move `image-types' variable here from xfns.c.
1877
1878 * xfns.c (Vimages_types): Moved to xdisp.c.
1879 (syms_of_xfns): Move `image-types' to xdisp.c.
1880
1881 * w32fns.c (Vimage_types): Removed.
1882 (syms_of_w32fns): Remove `image-types'.
1883
813086ea
KH
18842000-05-18 Kenichi Handa <handa@etl.go.jp>
1885
1886 * fns.c (map_char_table): Pay attention to character number of
1887 charset. Check the validity of charset at the first level. For
1888 leaf nodes that has nil value, call C_FUNCTION or FUNCTION with
1889 the default value.
1890
1891 * fontset.c: Include "buffer.h".
1892 (fs_load_font): If the face has fontset, record the face ID in
1893 that fontset.
1894 (Finternal_char_font): New function.
1895 (accumulate_font_info): New function.
1896 (Ffontset_info): Rewritten for the new fontset implementation.
1897 (syms_of_fontset): Register Vdefault_fontset in the first element
1898 of Vfontset_table. Include Vdefault_fontset in
1899 Vfontset_alias_alist. Declare `internal-char-font' as a Lisp
1900 function.
1901
bdaebbf0
DL
19022000-05-16 Dave Love <fx@gnu.org>
1903
1904 * m/iris5d.h: Deleted -- unused.
1905
cb613bb8
GM
19062000-05-16 Gerd Moellmann <gerd@gnu.org>
1907
b15f3b77
GM
1908 * xdisp.c, w32.c, print.c, msdos.c, emacs.c: Use the term
1909 `invalid' instead of `illegal'.
1910
1911 * indent.c (Fmove_to_column): When ending within a tab, insert
1912 spaces first so that markers at the end of the tab get adjusted.
1913
835c1b36
GM
1914 * frame.c (frames_bury_buffer): Don't add a buffer to the frame's
1915 buffer list that wasn't selected in that frame.
1916
cb613bb8
GM
1917 * filelock.c (get_boot_time): To obtain an 8 char file name, which
1918 is needed on mescaline, use a 2 char prefix, and call
1919 make_temp_name with second arg non-zero.
1920
1921 * fileio.c (make_temp_name): New function, extracted from
1922 Fmake_temp_name.
1923 (Fmake_temp_name): Use it.
1924
f685bea9
EZ
19252000-05-15 Eli Zaretskii <eliz@is.elta.co.il>
1926
1927 * window.c (coordinates_in_window): Subtract 1 when computing
1928 right_x.
1929
a1b8d58b
GM
19302000-05-15 Gerd Moellmann <gerd@gnu.org>
1931
1932 * Makefile.in (lisp): Add env.elc.
1933
1934 * callproc.c (Fgetenv_internal): Renamed from Fgetenv.
1935
a265079f
GM
19362000-05-12 Gerd Moellmann <gerd@gnu.org>
1937
1938 * search.c (Freplace_match): Handle case of `\N' in the
1939 replacement when there's no group N.
1940
da4496b6
GM
19412000-05-11 Gerd Moellmann <gerd@gnu.org>
1942
0ace421a
GM
1943 * xdisp.c (add_to_log): Don't pass the terminating NUL byte
1944 of the message to message_dolog.
1945
1172eb8d
GM
1946 * keyboard.c (read_char): Don't clear current message for help
1947 events; let the code handling help events handle this. Change
1948 code detecting help events that should be ignored.
1949
da4496b6
GM
1950 * xdisp.c (handle_single_display_prop): Don't try to set PT if
1951 we're interating over a string.
1952
0623e40f
DL
19532000-05-09 Dave Love <fx@gnu.org>
1954
1955 * fileio.c (Fwrite_region): If APPEND arg is an integer, seek to
1956 that offset before writing. Move gcpro region past call of
1957 Ffile_regular_p.
1958
bae2503b
DL
19592000-05-04 Dave Love <fx@gnu.org>
1960
1961 * buffer.c (syms_of_buffer) [auto-fill-function]: Doc fix.
1962
ec82fb2f
GM
19632000-05-04 Gerd Moellmann <gerd@gnu.org>
1964
1965 * insdel.c (insert_from_buffer_1): Adjust FROM position by number
1966 of inserted characters when BUF equals the current buffer, and PT
1967 is in front of or equal to FROM.
1968
cbf18892
GM
19692000-05-03 Gerd Moellmann <gerd@gnu.org>
1970
4ff40dd0
GM
1971 * xdisp.c (handle_single_display_prop): If display property value
1972 is invalid, or something not supported on the frame, restore
1973 iterator's position to what it was initially. Make sure to return
1974 0 for invalid and unsupported property values.
1975
cbf18892
GM
1976 * xterm.c (x_produce_glyphs) <composite chars>: Handle case
1977 that x_per_char_metric returns null.
1978
1b0672c3
GM
19792000-05-02 Gerd Moellmann <gerd@gnu.org>
1980
576da55d
GM
1981 * xterm.h (struct face): Add forward declaration.
1982 (struct image): Ditto.
1983 (image_ascent): Add prototype.
1984
1985 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
1986 (x_draw_image_relief, x_draw_image_foreground_1): Call function
1987 image_ascent instead of using IMAGE_ASCENT.
1988
1989 * dispextern.h (DEFAULT_IMAGE_HEIGHT): New macro.
1990 (IMAGE_ASCENT): Removed.
1991
1992 * xfns.c (Qcenter): New variable.
1993 (enum image_value_type): Add IMAGE_ASCENT_VALUE.
1994 (parse_image_spec): Handle IMAGE_ASCENT_VALUE.
1995 (image_ascent): New function.
1996 (lookup_image): Recognize `:ascent center'.
1997 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
1998 (tiff_format, gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
1999 (xbm_load): Don't set image's ascent here.
2000 (xbm_image_p, xpm_image_p, pbm_image_p, png_image_p)
2001 (jpeg_image_p, tiff_image_p, gif_image_p, gs_image_p): Don't
2002 check ascent values here.
2003 (Fimagep, Flookup_image [GLYPH_DEBUG]: Removed.
2004 (syms_of_xfns) [GLYPH_DEBUG]: Don't defsubr removed functions.
2005 (syms_of_xfns): Initialize Qcenter.
2006
1b0672c3
GM
2007 * eval.c (Fsignal): If lisp_eval_depth or spepdl_size are near
2008 to the limits, increase the limits.
2009
0d7811ed
KH
20102000-05-01 Kenichi Handa <handa@etl.go.jp>
2011
2012 * fontset.c (fs_load_font): By default, use 0x00..0x7f for ASCII.
2013 Check Vfont_encoding_alist against the full name of the opened
2014 font.
2015
a943a5ca
GM
20162000-04-28 Gerd Moellmann <gerd@gnu.org>
2017
2018 * xdisp.c (make_cursor_line_fully_visible): Handle case of rows
2019 taller than the window.
2020
5dba1e29
KH
20212000-04-28 Kenichi Handa <handa@etl.go.jp>
2022
2023 * xfaces.c (realize_x_face): Fix the argument of the second
2024 xassert. BASE_FACE may not be a face for ASCII.
2025
353964e3
GM
20262000-04-27 Gerd Moellmann <gerd@gnu.org>
2027
c76e04a8
GM
2028 * print.c (print_object): Treat print-length < 0 as nil.
2029
2030 * Makefile.in (termcapobj): Don't use TERMCAP_OBJ.
2031
2032 * s/freebsd.h (TERMCAP_OBJ): Removed.
2033 (LIBS_TERMCAP): Don't define for __FreeBSD_version >= 400000.
2034
2035 * lread.c (read1): Don't treat period followed by certain
2036 characters as symbol start.
2037
2038 * xfns.c (slurp_file): New function.
2039 (xbm_image_p): Handle case of in-memory XBM files.
2040 (xbm_scan): Rewritten to work on memory buffers instead of files.
2041 (xbm_read_bitmap_data): Renamed from xbm_read_bitmap_file_data.
2042 Work on memory buffers instead of files. If DATA is null test
2043 if buffer looks like an in-memory XBM file.
2044 (xbm_load_image): Renamed from xbm_load_image_file. Work on
2045 memory buffers instead of files.
2046 (xbm_file_p): New function.
2047 (xbm_load): Accept :data DATA where DATA is an in-memory XBM file.
2048
353964e3
GM
2049 * lread.c (end_of_file_error): New function.
2050 (read1): Call it instead of signaling `end-of-file' directly.
2051
427ec082 2052 * print.c (print_error_message): Print data of `end-of-file'
353964e3
GM
2053 with Fprinc instead of Fprin1.
2054
24d744ac
KR
20552000-04-26 Ken Raeburn <raeburn@gnu.org>
2056
2057 * window.c (freeze_window_start): Check that minibuffer scroll
2058 window isn't nil before extracting the window structure pointer
2059 from it.
2060
2061 * undo.c (record_delete): If we hit the end of the undo list, stop
2062 picking elements apart.
2063
7464346d
GM
20642000-04-26 Gerd Moellmann <gerd@gnu.org>
2065
2066 * xdisp.c (display_line): If lines are continued, restore
2067 iterator's ascent/descent information to the values before the
2068 first glyph not fitting on the line.
2069
612839b6
GM
20702000-04-25 Gerd Moellmann <gerd@gnu.org>
2071
2072 * xdisp.c (try_window_id) <all changes above window start>: Adjust
2073 positions in glyph matrix. Don't compute new window end
2074 positions.
2075
2076 * dispnew.c (increment_matrix_positions): Renamed from
2077 increment_glyph_matrix_buffer_positions.
2078 (increment_row_positions): Renamed from
2079 increment_glyph_row_buffer_positions.
2080
2081 * dispextern.h: Change names of renamed functions from dispnew.c
2082 in prototypes.
2083
cc181e95
GM
20842000-04-24 Gerd Moellmann <gerd@gnu.org>
2085
abfcc168
GM
2086 * fileio.c (Fdo_auto_save): Create directories for auto-save
2087 list file if necessary.
2088
cc181e95
GM
2089 * xdisp.c (init_iterator): Set iterator's extra_line_spacing
2090 from buffer or frame.
2091 (automatic_hscrolling_p): New variable.
2092 (hscroll_windows): Scroll windows horizontally only if automatic
2093 hscrolling is allowed.
2094 (syms_of_xdisp): New variable `automatic-hscrolling'.
2095
2096 * frame.h (struct frame): Add member extra_line_spacing.
2097
2098 * xfns.c (x_set_line_spacing): New function.
2099 (Fx_create_frame): Set line spacing from resources.
2100 (Qline_spacing): New variable.
2101 (syms_of_xfns): Initialize Qline_spacing.
427ec082 2102
cc181e95
GM
2103 * emacs.c (USAGE2): Add `--line-spacing' and `-lsp'.
2104
2105 * buffer.c (init_buffer_once): Handle extra_line_spacing.
2106 (syms_of_buffer): Add `default-line-spacing' and `line-spacing'.
abfcc168 2107 (reset_buffer): Don't initialize extra2 and extra3. Initialize
cc181e95
GM
2108 extra_line_spacing from default value.
2109 (init_buffer_once): Initialize default value of extra_line_spacing.
2110
2111 * buffer.h (struct buffer): Add extra_line_spacing, remove extra2
2112 and extra3.
2113
2114 * xterm.c (x_produce_glyphs): Remove reference to struct it's
2115 prompt_width. Add extra line spacing.
2116
2117 * term.c (produce_glyphs): Remove reference to struct it's
2118 prompt_width.
2119
2120 * dispextern.h (struct it): Remove member prompt_width, add
2121 extra_line_spacing.
2122
58827478
GM
21232000-04-22 Gerd Moellmann <gerd@gnu.org>
2124
2125 * dispnew.c (update_frame_line): When writing a whole line, make
2126 sure cursor is in the right row afterwards, otherwise a use of
2127 capability `ch' in cmgoto might leave the cursor in the row below.
2128
25a87f42
GM
21292000-04-21 Gerd Moellmann <gerd@gnu.org>
2130
2131 * lisp.h (struct Lisp_Buffer_Cons): Remove.
2132
2133 * keyboard.c (timer_check): Fix typo in comment.
2134
54edf5c2
KH
21352000-04-21 Kenichi Handa <handa@etl.go.jp>
2136
2137 * fontset.c (Fset_fontset_font): Fix docstring. Local variable
2138 name change: ch -> character.
2139
3a64eef5
GM
21402000-04-20 Gerd Moellmann <gerd@gnu.org>
2141
2142 * keyboard.c (echo_message_buffer): New variable.
2143 (echo_now): Set echo_message_buffer to the echo area buffer used
2144 to display the echo.
2145 (cancel_echoing): Reset echo_message_buffer to nil.
2146 (read_char): Code rewritten that handles canceling an echo or
2147 echoing a dash, respectively.
2148
2149 * fileio.c (Ffile_writable_p) [WINDOWSNT]: Return nil if parent
2150 directory doesn't exist.
2151
6142fdcb
DL
21522000-04-19 Dave Love <fx@gnu.org>
2153
2154 * fns.c (syms_of_fns): Defsubr mapc.
a9cacab7
DL
2155 (concat): Don't allow numeric args.
2156 (Fconcat): Doc change.
6142fdcb 2157
ac6b5352
SM
21582000-04-19 Stefan Monnier <monnier@cs.yale.edu>
2159
2160 * regex.c (re_match_2_internal): Don't shorten the strings anymore,
2161 instead define end_match(1|2) more carefully.
2162 Use GET_CHAR_BEFORE_2 for `begline'.
2163
cb9215e4
GM
21642000-04-19 Gerd Moellmann <gerd@gnu.org>
2165
5e3dac3f
GM
2166 * frame.h (SELECTED_FRAME): Change definition to compile cleanly
2167 on 64-bit systems where NULL is defined as `0'.
2168
2169 * xdisp.c (with_echo_area_buffer): Add more `int' parameters for
2170 the `variable argument list' to make it work on Alpha.
2171
cb9215e4
GM
2172 * m/alpha.h (_LP64) [!_LP64]: Define.
2173 (ORDINARY_LINK): Define for NetBSD.
2174
2175 * m/macppc.h (ORDINARY_LINK): Define for NetBSD.
427ec082 2176
f532dca0
DL
21772000-04-19 Dave Love <fx@gnu.org>
2178
c750667e
DL
2179 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Revert 2000-04-14
2180 change.
2181
2182 * Makefile.in (LIBS): Don't use.
2183 (GETLOADAVG_OBJ): Define again.
2184 (otherobj): Add GETLOADAVG_OBJ.
2185
f532dca0
DL
2186 * buffer.c (Fmake_indirect_buffer): Escape newline in doc.
2187
1c7e22fd
GM
21882000-04-18 Gerd Moellmann <gerd@gnu.org>
2189
f6d3257b
GM
2190 * lread.c (read_filtered_event): Cancel and start busy cursor.
2191
427ec082 2192 * xterm.c (x_produce_glyphs) <ASCII chars>: Take into account
1c7e22fd
GM
2193 that the per-character metrics may be null.
2194
e10f64e7
GM
21952000-04-17 Gerd Moellmann <gerd@gnu.org>
2196
0daee095
GM
2197 * buffer.c (clone_per_buffer_values): New function.
2198 (Fmake_indirect_buffer): Add optional argument CLONE. Call
2199 clone_per_buffer_values if CLONE is not nil.
2200
e10f64e7
GM
2201 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
2202
38687d43
DL
22032000-04-16 Dave Love <fx@gnu.org>
2204
2205 * Makefile.in: Remove obsolete localcpp stuff.
2206 (GETLOADAVG_OBJ): Don't define.
2207 (obj): Move LIBOBJS...
2208 (otherobj): ... to here.
2209 (MSDOS_OBJ): Convert to make variable -- preprocessing zapped
2210 whitespace-only lines after the continuation (Irix).
2211
c21c7262
GM
22122000-04-14 Gerd Moellmann <gerd@gnu.org>
2213
2214 * xfns.c (xpm_load) [DEBUG_X_COLORS]: Register colors.
2215
2216 * s/freebsd.h (LD_SWITCH_SYSTEM): Add `-L /usr/local/lib'.
2217
314767c0
DL
22182000-04-14 Dave Love <fx@gnu.org>
2219
2220 * s/aix3-1.h, s/bsd4-2.h, s/bsd4-3.h, s/cxux.h, s/dgux.h, s/gnu.h:
2221 * s/hpux.h, s/iris3-5.h, s/iris3-6.h, s/irix3-3.h, s/rtu.h:
2222 * s/unipl5-0.h, s/unipl5-2.h, s/usg5-0.h, s/usg5-2-2.h, s/usg5-2.h:
2223 * s/usg5-3.h, s/xenix.h, s/umax.h: Don't define autoconfiscated
2224 NLIST_STRUCT.
2225
2226 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Don't define
2227 autoconfiscated HAVE_GETLOADAVG.
2228
2229 * s/nextstep.h, s/sco4.h, s/sco5.h: Don't define autoconfiscated
2230 BROKEN_MKTIME.
2231
a2522dca
GM
22322000-04-14 Gerd Moellmann <gerd@gnu.org>
2233
2234 * filelock.c (MAKE_LOCK_NAME): Allocate 2 more bytes.
2235 (fill_in_lock_file_name): Avoid existing files that aren't
2236 links.
2237
33744b5d
DL
22382000-04-14 Dave Love <fx@gnu.org>
2239
c21c7262 2240 * Makefile.in (LIBS, LIBOBJS): New variable.
33744b5d
DL
2241 (INTERVAL_SRC): Convert to make variable.
2242 (INTERVAL_OBJ, MKTIME_OBJ, FLOAT_SUPPORT, FACE_SUPPORT)
2243 (HAVE_X_WINDOWS, OBJECTS_SYSTEM): Remove.
2244 (obj): Substitute INTERVAL_OBJ, add MKTIME_OBJ, GETLOADAVG_OBJ and
2245 add LIBOBJS.
2246 (SOME_MACHINE_OBJECTS): Remove interval stuff.
2247 (lisp): Substitute FACE_SUPPORT, FLOAT_SUP.
2248 (shortlisp): Add facemenu, float-sup, frame.
2249 (SOME_MACHINE_LISP): Remove them from here.
2250 (LIBES): Change unused LDLIBS to autoconf LIBS.
2251
2252 * config.in: Add BROKEN_MKTIME, NLIST_STRUCT, NLIST_NAME_UNION.
2253
9d3d5916
KH
22542000-04-14 Kenichi Handa <handa@etl.go.jp>
2255
2256 * composite.c (update_compositions): If FROM and TO are not in a
2257 valid range, do nothing.
2258
198e3c7a
GM
22592000-04-13 Gerd Moellmann <gerd@gnu.org>
2260
2261 * tparam.c (tparam1): Abort when encountering an unknown
2262 `%'-specifier.
2263
2264 * s/freebsd.h (TERMCAP_OBJ) [__FreeBSD__ >= 4]: Define as
2265 terminfo.o.
2266
2267 * Makefile.in (termcapobj) [LIBS_TERMCAP && TERMCAP_OBJ]: Define
2268 as TERMCAP_OBJ.
2269
055a28c9
EZ
22702000-04-13 Eli Zaretskii <eliz@is.elta.co.il>
2271
2272 * fileio.c (a_write): Remove redundant semi-colons.
2273 (e_write): Return -1 if failed to write all the data.
2274 This fixes the changes made at 1999-12-15.
2275
f5c75033
DL
22762000-04-12 Dave Love <fx@gnu.org>
2277
2278 * fns.c (mapcar1): Test for null vals to support mapc.
2279 (Fmapc): New function.
2280
0c3cfc51
EZ
22812000-04-12 Eli Zaretskii <eliz@is.elta.co.il>
2282
2283 * msdos.c (NUM_MOUSE_BUTTONS): Define.
2284 (IT_frame_up_to_date): Support the buffer local value of
2285 cursor-type, if defined.
2286
33465a31
DL
22872000-04-10 Dave Love <fx@gnu.org>
2288
2289 * editfns.c (preceding-char, following-char): Doc fix.
2290
6ed56568
KR
22912000-04-10 Ken Raeburn <raeburn@gnu.org>
2292
2293 * Makefile.in (temacs): Revert 2000-03-12 change.
2294
7cf80d4e
JR
22952000-04-10 Jason Rumney <jasonr@gnu.org>
2296
2297 * xfaces.c (realize_face): Change FRAME_X_P to FRAME_WINDOW_P.
2298
34f3f342
GM
22992000-04-10 Gerd Moellmann <gerd@gnu.org>
2300
1a1b1895
GM
2301 * xdisp.c (setup_echo_area_for_printing): Choose an echo
2302 area buffer, if it's not set up yet.
2303
34f3f342
GM
2304 * indent.c (compute_motion): Set immediate_quit.
2305
be0dbdab
GM
23062000-04-09 Gerd Moellmann <gerd@gnu.org>
2307
c45be9ac
GM
2308 * xfaces.c (tty_suppress_bold_inverse_default_colors_p): New
2309 variable.
2310 (realize_tty_face): Suppress boldness if colors are the inverse of
2311 the default colors, and tty_suppress_bold_inverse_default_colors_p
2312 is set.
2313 (Ftty_suppress_bold_inverse_default_colors): New function.
2314 (syms_of_xfaces): Defsubr it.
2315
be0dbdab
GM
2316 * buffer.c (Frestore_buffer_modified_p): New function.
2317 (syms_of_buffer): Defsubr it.
2318
e8413c3b
KR
23192000-04-08 Ken Raeburn <raeburn@gnu.org>
2320
87f67317
KR
2321 * charset.c (Fmake_char_internal): CHAR_COMPONENTS_VALID_P takes a
2322 charset id (int) argument, not a charset (Lisp_Object).
2323
e8413c3b
KR
2324 * coding.h (code_convert_string): Declare.
2325 * coding.c (code_convert_string_norecord): Pass an int, not a lisp
2326 object, as the fourth argument to code_convert_string.
2327
2328 * fontset.c (make_fontset_for_ascii_face): Use XINT on return
2329 value.
2330 (Fset_fontset_font): Use EQ to compare lisp objects.
2331
7c752c80
KR
23322000-04-05 Ken Raeburn <raeburn@gnu.org>
2333
c0333abc
KR
2334 * intervals.h (SET_INTERVAL_PARENT): Use INT_LISPLIKE to test for
2335 a pointer that looks like a lisp object.
2336 (SET_INTERVAL_OBJECT): Don't explicitly compare the object with
2337 zero, instead see whether it's an integer object, since they can't
2338 have intervals.
2339 (GET_INTERVAL_OBJECT): Simply assign to the destination.
2340
7c752c80
KR
2341 * dispnew.c (allocate_matrices_for_frame_redisplay,
2342 direct_output_forward_char): Use X(U)INT and make_number as needed
2343 to convert between (unsigned) int values and lisp integers.
2344 * keyboard.c (read_key_sequence): Likewise.
2345 * lread.c (substitute_object_recurse): Likewise.
2346 * fns.c (concat, hash_lookup, hash_remove): Likewise.
2347 * minibuf.c (do_completion, Fminibuffer_complete_word,
2348 Fminibuffer_completion_help): Likewise.
2349 * term.c (produce_special_glyphs): Likewise.
2350
2351 * fileio.c (Fwrite_region): Use EQ when comparing lisp objects.
2352 * print.c (print_preprocess, print_object): Likewise.
2353
2354 * search.c (compile_pattern): Use NILP when checking for nil.
2355
74e49b38
KR
2356 * lisp.h (make_number) [!NO_UNION_TYPE && __GNUC__ >= 2 &&
2357 __OPTIMIZE__]: Provide a GNU C macro version that handles
2358 lisp-object unions.
2359 (XSET) [!NO_UNION_TYPE]: Set the value field first, then the type
2360 field, to better cope with ENABLE_CHECKING and calls that modify a
2361 Lisp_Object using its old value.
2362
685e5ed2
GM
23632000-04-04 Gerd Moellmann <gerd@gnu.org>
2364
c407c570
GM
2365 * window.c (compare_window_configurations): Signal an error
2366 if parameters C1 or C2 aren't window configurations.
2367
685e5ed2
GM
2368 * bytecode.c (Fbyte_code): Add a bunch of BEFORE_POTENTIAL_GC/
2369 AFTER_POTENTIAL_GC calls around calls to functions that can
2370 signal an error and thus invoke the debugger.
2371
587a49ab
GM
23722000-04-03 Gerd Moellmann <gerd@gnu.org>
2373
62f20204
GM
2374 * fns.c (Fbase64_decode_region, Fbase64_decode_string): Signal
2375 an error if decoding fails.
2376
587a49ab
GM
2377 * keyboard.c (lispy_mouse_names): Variable removed.
2378 (Vlispy_mouse_stem): New variable.
2379 (syms_of_keyboard): Initialize Vlispy_mouse_stem.
2380 (make_lispy_event) <mouse_click, scroll_bar_click>: Don't abort
2381 for any mouse button number. Increase size of mouse_syms and
2382 button_down_location as needed. Call modify_event_symbol with
2383 different arguments.
2384 (make_lispy_event) <scroll_bar_click> [USE_TOOLKIT_SCROLL_BARS]:
2385 Call modify_event_symbol with different arguments.
2386 (make_lispy_event) <w32_scroll_bar_click> [WINDOWSNT]: Don't abort
2387 for any button number. Call modify_event_symbol with different
2388 arguments.
2389 (modify_event_symbol): Rename NAME_ALIST to NAME_ALIST_OR_STEM.
2390 Accept a string for NAME_ALIST_OR_STEM.
2391
2392 * lisp.h (larger_vector): Add prototype.
2393
2394 * fns.c (larger_vector): Make externally visible.
2395
2396 * termhooks.h (NUM_MOUSE_BUTTONS): Removed.
2397
2d1675e4
SM
23982000-04-02 Stefan Monnier <monnier@cs.yale.edu>
2399
2400 * regex.c (PTR_TO_OFFSET) [!emacs]: Remove.
2401 (RE_MULTIBYTE_P, RE_STRING_CHAR_AND_LENGTH): New macros.
2402 (GET_CHAR_BEFORE_2): Moved from charset.h plus fixed minor bug when
2403 we are between str1 and str2.
2404 (MAX_MULTIBYTE_LENGTH, CHAR_STRING) [!emacs]: Provide trivial default.
2405 (PATFETCH): Use `TRANSLATE'.
2406 (PATFETCH_RAW): Fetch multibyte char if applicable.
2407 (PATUNFETCH): Remove.
2408 (regex_compile): Rely on PATFETCH to do most of the multibyte magic.
2409 When writing a char, write it directly into the pattern buffer rather
2410 than going needlessly through a temp char-array.
2411 (re_match_2_internal): Similarly, rely on RE_STRING_CHAR to do the
2412 multibyte magic and remove the useless `#ifdef emacs'.
2413 (bcmp_translate): Don't compare as multibyte chars when in a unibyte
2414 buffer.
2415
2416 * regex.h (struct re_pattern_buffer): Make field `multibyte'
2417 conditional on `emacs'.
2418
2419 * charset.h (GET_CHAR_BEFORE_2): Moved to regex.c.
2420
cc2d8c6b
KR
24212000-04-01 Ken Raeburn <raeburn@gnu.org>
2422
2423 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P): Expand
2424 non-union-type versions of XMARK and friends here, because XMARK
2425 and friends won't work on an integer field if NO_UNION_TYPE is not
2426 defined.
2427 (make_number): Define as a function if it's not defined as a
2428 macro.
2429
09654086
KR
2430 * composite.c (run_composite_function): Use NILP when checking for
2431 nil.
2432 (syms_of_composite): Delete local var NARGS, pass an int as first
2433 argument to Fmake_hash_table.
2434
2387b382
KR
2435 * editfns.c (text_property_stickiness): Use NILP to test
2436 Lisp_Object boolean value.
2437 (Fmessage_or_box): Don't use NILP to test int variable.
c01fbf95
KR
2438 (Fformat): Use a temporary variable to avoid ENABLE_CHECKING
2439 problems reading from and changing the same lisp value in an
2440 XSETSTRING call.
2441
27660e89
GM
24422000-04-01 Gerd Moellmann <gerd@gnu.org>
2443
2444 * term.c (TN_no_color_video): New variable.
2445 (term_init): Intitialize TN_no_color_video.
2446 (enum no_color_bit): New enumeration.
2447 (MAY_USE_WITH_COLORS_P): New macro.
2448 (turn_on_face): Use it to determine if attributes may be used
2449 combined with colors.
2450
3578db3c
KR
24512000-04-01 Ken Raeburn <raeburn@gnu.org>
2452
2453 * window.c (CURBEG, CURSIZE): Don't overload lisp object lvalues
2454 with int lvalues via casts; instead, just yield lisp object
2455 lvalues.
2456 (enlarge_window): Variable sizep now points to Lisp_Object. Use
2457 proper accessor macros.
2458 (shrink_window_lowest_first): w->top is Lisp_Object; use XINT.
2459 (grow_mini_window): Fix typo getting int value of root->height.
2460
6fc556fd
KR
2461 * xdisp.c (compute_string_pos): Fix order of arguments to
2462 string_pos_nchars_ahead.
2463 (handle_fontified_prop, add_to_log): Pass int, not Lisp_Object, as
2464 count arg to variable-arg routines like Frun_hook_with_args and
2465 Fformat.
587a49ab
GM
2466 (back_to_previous_visible_line_start)
2467 (build_desired_tool_bar_string): Pass Lisp_Object, not int, to
6fc556fd
KR
2468 fixed-arg routines like Fget_char_property and Fmake_string.
2469 (reconsider_clip_changes): Use XINT when comparing integer lisp
2470 objects, or passing them as int arguments.
587a49ab
GM
2471 (mark_window_display_accurate, insert_left_trunc_glyphs)
2472 (append_space, extend_face_to_end_of_line): Use make_number when
6fc556fd
KR
2473 storing or passing integer values as lisp objects.
2474 (set_cursor_from_row, highlight_trailing_whitespace): Use
2475 INTEGERP, not implicit test against zero, for glyph object.
2476 (try_window_id): Don't use make_number when we want an int value.
2477
2478 * xfaces.c (xlfd_symbolic_value): Make last argument a
2479 Lisp_Object, to be consistent with callers.
2480 (Fbitmap_spec_p): Use XINT to get numeric value of height.
2481 (lface_hash): Apply XFASTINT to lisp values before folding in.
2482
2483 * xfns.c (Fx_show_tip): Use make_number to get lisp objects to
2484 fill in window width and height. Pass an int, not a lisp object,
2485 as first arg to Finsert.
2486
6e7b2457
GM
24872000-04-01 Gerd Moellmann <gerd@gnu.org>
2488
610d841e
GM
2489 * xfaces.c (realize_basic_faces): Block input while realizing
2490 the faces.
2491
6e7b2457
GM
2492 * keyboard.c (lispy_mouse_names): Add additional mouse names.
2493
2494 * termhooks.h (NUM_MOUSE_BUTTONS): Increase to 15.
2495
aa110c0c
GM
24962000-03-31 Gerd Moellmann <gerd@gnu.org>
2497
2498 * xterm.c (x_produce_glyphs): When displaying unibyte text
610d841e 2499 or ASCII, handle case that per-char metric is null.
aa110c0c 2500
8801a864
KR
25012000-03-30 Ken Raeburn <raeburn@gnu.org>
2502
c6129d7e
KR
2503 * lisp.h (NO_UNION_TYPE) [ENABLE_CHECKING]: Undef.
2504
8801a864
KR
2505 * lisp.h (XCONS, XSTRING, XSYMBOL, XFLOAT, XPROCESS, XWINDOW,
2506 XSUBR, XBUFFER): Verify correct object type before returning
2507 pointer, using eassert.
2508 * frame.h (XFRAME): Likewise.
2509
2510 * buffer.c (Frename_buffer, Fset_buffer_multibyte,
2511 swap_out_buffer_local_variables, Fmove_overlay): Don't apply
2512 XSYMBOL, XBUFFER, etc, to values that may be nil or of the wrong
2513 type.
2514 * data.c (set_internal): Likewise.
2515 * dispextern.h (WINDOW_WANTS_MODELINE_P,
2516 WINDOW_WANTS_HEADER_LINE_P): Likewise.
2517 * fileio.c (auto_save_1): Likewise.
2518 * insdel.c (check_markers): Likewise.
2519 * marker.c (buf_charpos_to_bytepos, unchain_marker): Likewise.
2520 * undo.c (record_insert): Likewise.
2521 * vmsproc.c (child_sig): Likewise.
2522 * window.c (unshow_buffer, window_loop): Likewise.
2523 * xterm.c (x_erase_phys_cursor): Likewise.
2524
8e7af858
GM
25252000-03-30 Gerd Moellmann <gerd@gnu.org>
2526
2527 * xfns.c (free_image_cache): Free the cache structure itself
2528 last, after all its members have been freed.
2529
2530 * lisp.h (xstrdup): Add prototype.
2531
2532 * alloc.c (xstrdup): Moved here from xfaces.c.
2533 (allocating_for_lisp): Variable removed.
2534 (lisp_malloc): Block input around the calls to malloc and
2535 mem_insert.
2536
2537 * xfaces.c (realize_tty_face): Use find_symbol_value instead
2538 of Fsymbol_value.
2539 (xstrdup): Moved to alloc.c.
2540
e0b8c689
KR
25412000-03-29 Ken Raeburn <raeburn@gnu.org>
2542
b96f9fb7
KR
2543 * scroll.c (CHECK_BOUNDS): Renamed from CHECK.
2544
2545 * emacs.c (main): Fix sense of no-loadup test.
2546
e0b8c689
KR
2547 * config.in (ENABLE_CHECKING): Undef.
2548
2549 * lisp.h (struct interval): Replace "parent" field with a union of
2550 interval pointer and Lisp_Object; add new bitfield to use as
2551 discriminant. Change other flag fields to bitfields.
2552 (CHECK): New macro for consistency checking. If ENABLE_CHECKING
2553 is defined and the supplied test fails, print a message and
2554 abort.
2555 (eassert): New macro. Use CHECK to provide an assert-like
2556 facility.
2557
2558 * intervals.h (NULL_INTERVAL_P): Now applies only to real interval
2559 pointers; abort if the value looks like a lisp object.
2560 (NULL_INTERVAL_P, NULL_PARENT, HAS_PARENT, HAS_OBJECT, SET_PARENT,
2561 SET_OBJECT, INTERVAL_PARENT, GET_INTERVAL_OBJECT, COPY_PARENT):
2562 Modify for new interval parent definition.
2563
2564 * alloc.c (mark_interval_tree, MARK_INTERVAL_TREE,
2565 UNMARK_BALANCE_INTERVALS): Update references that need an
2566 addressable lisp object in the interval structure.
2567 (die): New function.
2568 (suppress_checking): New variable.
2569
2570 * intervals.c (interval_start_pos): Just return 0 if there's no
2571 parent object.
2572
f83c5440
GM
25732000-03-29 Gerd Moellmann <gerd@gnu.org>
2574
2575 * lread.c (read1): Accept `.' (period) as symbol start like in CL
2576 and earlier Emacs versions.
2577
2578 * keyboard.c (Ftop_level): Cancel busy-cursor.
2579
2580 * eval.c (call_debugger): Cancel busy-cursor.
2581
fdce64ff
KH
25822000-03-29 Kenichi Handa <handa@etl.go.jp>
2583
2584 * search.c (Freplace_match): Adjust multibyteness of the current
2585 buffer and NEWTEXT. Free allocated memory before signaling an
2586 error.
2587
f6a3f532
SM
25882000-03-28 Stefan Monnier <monnier@cs.yale.edu>
2589
2590 * regex.c (analyse_first): New function obtained by ripping out most
2591 of re_compile_fastmap and generalizing it a little bit so that it
2592 can also just return whether a given (sub)pattern can match the empty
2593 string or not.
2594 (regex_compile): Use `analyse_first' to decide whether the loop-check
2595 needs to be done or not for *, +, *? and +? (the loop check is costly
2596 for non-greedy repetition).
2597 (re_compile_fastmap): Delegate the actual work to `analyse_first'.
2598
e9b309ac
DL
25992000-03-28 Dave Love <fx@gnu.org>
2600
bb15bd9a
DL
2601 * s/gnu-linux.h (GC_SETJMP_WORKS): Define for i386, sparc, m68k,
2602 alpha.
2603
e9b309ac
DL
2604 * alloc.c: Include stdio.h. Test STDC_HEADERS, not __STDC__.
2605
ed0767d8
SM
26062000-03-27 Stefan Monnier <monnier@cs.yale.edu>
2607
2608 * regex.c (REGEX_FREE_STACK, RESET_FAIL_STACK): Make them usable as
2609 an expression.
2610 (enum re_opcode_t): Update description of succeed_n.
2611 (PATFETCH): Always define.
2612 (regex_compile): Use lookahead rather than PATUNFETCH (for repetition
2613 operators, char classes, shy-groups and intervals).
2614 Optimize special cases of intervals so as to only use succeed_n and
2615 jump_n when really needed.
2616 (re_compile_fastmap): Simplify handling of jump_n and succeed_n now
2617 that we don't have to handle the special cases any more.
2618 Simplify on_failure_jump handling as well.
2619
e11e7e46
JR
26202000-03-28 Jason Rumney <jasonr@gnu.org>
2621
2622 * lread.c (Fload): Move safe_p definition to above #ifdef DOS_NT.
2623
88faab89
GM
26242000-03-27 Gerd Moellmann <gerd@gnu.org>
2625
182ff242
GM
2626 * s/freebsd.h (GC_SETJMP_WORKS): Define.
2627
2628 * s/msdos.h (GC_SETJMP_WORKS): Define.
427ec082 2629
182ff242
GM
2630 * alloc.c (mark_maybe_object): New function.
2631 (mark_memory): Use it.
2632 (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK): New macros.
2633 (setjmp_tested_p, longjmp_done): New variables.
2634 (test_setjmp): New function.
2635 (mark_stack) [!GC_SETJMP_WORKS]: Call test_setjmp.
2636 (init_alloc): Initialize setjmp_tested_p and longjmp_done.
2637
c1005d06
GM
2638 * xdisp.c (face_before_or_after_it_pos): Pass multibyteness
2639 to DEC_TEXT_POS and INC_TEXT_POS.
2640
2641 * dispnew.c (direct_output_for_insert): Use DEC_TEXT_POS
2642 with parameter MULTIBYTE_P.
2643
427ec082 2644 * dispextern.h (INC_TEXT_POS, DEC_TEXT_POS): Add parameter
c1005d06
GM
2645 MULTIBYTE_P.
2646
7439e5b9 2647 * editfns.c (Fsubst_char_in_region): Don't use INC_POS in unibyte
182ff242
GM
2648 buffers because it looks for multibyte character byte sequences
2649 which don't exist in unibyte text.
7439e5b9 2650
d9c545da
GM
2651 * xterm.h (x_specified_cursor_type, x_copy_color): Add prototypes.
2652
11fd416e 2653 * xfaces.c (register_color, unregister_color, unregister_colors)
d9c545da
GM
2654 [DEBUG_X_COLORS]: New functions.
2655 (x_free_colors) [DEBUG_X_COLORS]: Unregister colors.
2656
2657 * xfns.c (x_set_cursor_color): Get color reference counts right.
2658
2659 * xterm.c (x_copy_color): New function.
2660 (x_alloc_nearest_color) [DEBUG_X_COLORS]: Call register_color.
2661
2662 * buffer.h (MAX_PER_BUFFER_VARS): Renamed from MAX_BUFFER_LOCAL_VARS.
2663 (PER_BUFFER_VAR_OFFSET): Renamed from BUFFER_LOCAL_VAR_OFFSET.
2664 (PER_BUFFER_VAR_IDX): Renamed from BUFFER_LOCAL_VAR_IDX.
2665 (PER_BUFFER_VALUE_P): Renamed from BUFFER_HAS_LOCAL_VALUE_P.
2666 (SET_PER_BUFFER_VALUE_P): Renamed from SET_BUFFER_HAS_LOCAL_VALUE_P.
2667 (PER_BUFFER_IDX): Renamed from BUFFER_LOCAL_IDX.
2668 (PER_BUFFER_DEFAULT): Renamed from BUFFER_LOCAL_DEFAULT_VALUE.
2669 (PER_BUFFER_VALUE): Renamed from BUFFER_LOCAL_VALUE.
2670 (PER_BUFFER_SYMBOL): Renamed from BUFFER_LOCAL_SYMBOL.
2671 (PER_BUFFER_TYPE): Renamed from BUFFER_LOCAL_TYPE.
2672
11fd416e
GM
2673 * category.c, data.c, syntax.c, print.c, lread.c: Use new macro
2674 names for handling per-buffer variables.
d9c545da
GM
2675
2676 * buffer.c (buffer_permanent_local_flags): Use MAX_PER_BUFFER_VARS
2677 instead of MAX_BUFFER_LOCAL_VARS.
2678 (last_per_buffer_idx): Renamed from max_buffer_local_idx.
2679
2680 * xfaces.c (lookup_face): Don't assert FACE_SUITABLE_FOR_CHAR_P.
2681
88faab89
GM
2682 * xfns.c (x_specified_cursor_type): New function.
2683 (x_set_cursor_type): Use it.
2684
2685 * buffer.h (struct buffer): Add cursor_type.
2686
d80f42b7
SM
26872000-03-26 Stefan Monnier <monnier@cs.yale.edu>
2688
2689 * regex.c (enum re_opcode_t): New opcode on_failure_jump_nastyloop.
427ec082 2690 (print_partial_compiled_pattern, re_compile_fastmap): Handle new
88faab89 2691 opcode.
d80f42b7
SM
2692 (regex_compile): Use on_failure_jump_nastyloop for non-greedy loops.
2693 (re_match_2_internal): Add code for on_failure_jump_nastyloop when
2694 executing it as well as when popping it off the stack to find infinite
2695 loops in non-greedy repetition operators.
2696
89e80928
GM
26972000-03-26 Gerd Moellmann <gerd@gnu.org>
2698
3d4ff2dd
GM
2699 * doc.c (Qfunction_documentation): New variable.
2700 (syms_of_doc): Initialize Qfunction_documentation.
2701 (Fdocumentation): If FUNCTION is a symbol with non-nil
2702 `function-documentation' property, return a documentation derived
2703 from that.
2704
bd96bd79
GM
2705 * buffer.c (syms_of_buffer): Add default-cursor-type.
2706 (init_buffer_once): Don't let cursor_type have a local value
2707 in every buffer.
2708
19d1bc27
GM
2709 * xterm.c (x_display_and_set_cursor): Choose cursor depending
2710 on buffer-local value of cursor_type.
2711 (x_draw_bar_cursor): Add parameter WIDTH.
2712
2713 * buffer.c (reset_buffer): Initialize buffer's cursor_type.
2714 (init_buffer_once): Set default cursor_type value to t.
2715 Mark cursor_type as local everywhere.
2716 (syms_of_buffer): New per-buffer variable cursor-type.
2717
89e80928
GM
2718 * buffer.h (struct buffer): Remove member local_var_flags,
2719 add local_flags.
2720 (MAX_BUFFER_LOCAL_VARS): New macro.
2721 (BUFFER_LOCAL_VAR_OFFSET, BUFFER_LOCAL_VAR_IDX)
2722 (BUFFER_HAS_LOCAL_VALUE_P, SET_BUFFER_HAS_LOCAL_VALUE_P)
2723 (BUFFER_LOCAL_IDX, BUFFER_LOCAL_DEFAULT_VALUE, BUFFER_LOCAL_VALUE)
2724 (BUFFER_LOCAL_SYMBOL, BUFFER_LOCAL_TYPE): New macros.
2725
2726 * print.c (print_object): Use new macros for per-buffer
2727 variables.
2728
2729 * category.c (Fset_category_table): Use new macros for per-buffer
2730 variables.
2731
2732 * buffer.c (buffer_permanent_local_flags): Make a char array.
2733 (max_buffer_local_idx): New variable.
2734 (reset_buffer_local_variables, Fbuffer_local_variables): Rewritten
2735 for new handling of per-buffer variables.
2736 (buffer_slot_type_mismatch): Use new macros for per-buffer vars.
2737 (init_buffer_once): Initialize per-buffer vars differently.
2738 Set max_buffer_local_idx.
2739
2740 * syntax.c (Fset_syntax_table): Use new macros for per-buffer
2741 variables.
2742
2743 * lread.c (defvar_per_buffer): Use new macros for per-buffer
2744 variables.
2745
2746 * data.c (do_symval_forwarding, store_symval_forwarding)
2747 (find_symbol_value, set_internal, default_value, Fset_default)
2748 (Fkill_local_variable, Flocal_variable_p): Use new macros for
2749 per-buffer variables.
2750
2751 * Makefile.in (bootstrap-emacs): Use `mv -f' instead of `mv'.
2752
9a0dd3dc
GM
27532000-03-24 Gerd Moellmann <gerd@gnu.org>
2754
b68c375f
GM
2755 * xterm.c (x_term_init): Unblock input around call1 of
2756 Qvendor_specific_keysyms.
2757
9a0dd3dc
GM
2758 * syntax.c (open_paren_in_column_0_is_defun_start): New variable.
2759 (find_defun_start): Consider an open parenthesis in column 0
2760 a defun start only if open_paren_in_column_0_is_defun_start is set.
2761 (syms_of_syntax): New variable open-paren-in-column-0-is-defun-start.
2762
7973e637
SM
27632000-03-24 Stefan Monnier <monnier@cs.yale.edu>
2764
2765 * eval.c (Fautoload): Add entry in load-history (if after dump).
2766 * lread.c (load-history): Update docstring.
2767
39210e90
GM
27682000-03-24 Gerd Moellmann <gerd@gnu.org>
2769
2770 * indent.c (Fvertical_motion): Always use the current buffer.
2771 Temporarily change the window's buffer, if necessary.
2772
72db3ab5
GM
27732000-03-23 Gerd Moellmann <gerd@gnu.org>
2774
2775 * xterm.c (fast_find_position): Make sure not to consider rows
2776 not visible in the window.
2777
990b2375
SM
27782000-03-22 Stefan Monnier <monnier@cs.yale.edu>
2779
2780 * regex.c (enum syntaxcode): Provide default for non-Emacs.
2781 (re_compile_fastmap, re_match_2_internal): Undo Dave's previous fix.
2782
ff4df011
JR
27832000-03-22 Jason Rumney <jasonr@gnu.org>
2784
2785 * w32menu.c (single_submenu): Set help string to NULL if none.
2786 (w32_menu_show): Set help string correctly.
2787 (add-menu-item): Set help string in MIIM_DATA for menu item.
2788 Load SetMenuItemInfoA explicitly.
2789 (w32_menu_display_help): New function.
427ec082 2790
ff4df011
JR
2791 * w32fns.c (w32_wnd_proc): Handle WM_MENUSELECT message.
2792 (QCdata): Moved to xdisp.c.
2793
2794 * w32term.c (w32_read_socket): Handle WM_MENUSELECT message.
2795 (Vw32_charset_to_codepage_alist): Removed.
2796 (Vw32_charset_info_alist): New variable.
2797 (Qw32_charset_[ansi, default, symbol, shiftjis, hangul, gb2312,
2798 chinesebig5, oem, easteurope, turkish, baltic, russian, arabic,
2799 greek, hebrew, thai, johab, mac, unicode]): New symbols.
2800 (x_produce_glyphs): Remove out of date #ifdef 0'd section. Replace
2801 with TODO comment.
2802 (w32_codepage_for_font): Use Vw32_charset_info_alist.
2803 (syms_of_w32term): Remove Vw32_charset_to_codepage_alist.
2804 Define Vw32_charset_info_alist and w32_charset symbols.
2805
28062000-03-22 Jason Rumney <jasonr@gnu.org>
2807
2808 * makefile.nt (w32bdf.obj): Update dependencies.
2809
2810 * w32bdf.c: Include frame.h and dispextern.h before fontset.h.
2811
2812 * w32fns.c: Include fontset.h after dispextern.h.
2813 (Fx_create_frame): Do not create fontset.
2814 (w32_load_system_font): Doc fix.
2815 (Fx_close_connection): Free full_name if it is not shared.
2816
2817 * w32term.c: Include fontset.h after dispextern.h.
2818 (x_get_glyph_face_and_encoding): New parameter two_byte_p. Callers
2819 updated.
2820 (w32_per_char_metric): If PCM is invalid, delete and return NULL.
2821 (x_get_char_and_face_encoding): Use FACE_FOR_CHAR to get face_id.
2822 (w32_font_is_double_byte): New function, needs body.
2823 (x_append_glyph): Set glyph->glyph_not_available_p.
2824 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
2825 it->charset. If it->multibyte_p is zero and it->c is a multibyte
2826 character, convert it to a unibyte character.
2827 (struct glyph_string): Delete member `charset'.
2828 (W32_TEXTOUT): Temporarily remove charset_dim until another way of
2829 calculating it is found.
2830 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
2831 the case that per char metric is not available correctly.
2832 (x_fill_glyph_string): Handle the case that the specific glyph is
2833 not available correctly.
2834 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
2835 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
2836 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
2837 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
2838 fontset. Don't call FS_LOAD_FONT.
2839
439d5cb4
KR
28402000-03-22 Ken Raeburn <raeburn@gnu.org>
2841
2842 * intervals.h (NULL_INTERVAL): Cast to INTERVAL type.
2843 (INT_LISPLIKE): New macro.
2844 (NULL_INTERVAL_P): Use it.
2845 (INTERVAL_HAS_PARENT, INTERVAL_HAS_OBJECT, SET_INTERVAL_PARENT,
2846 SET_INTERVAL_OBJECT, INTERVAL_PARENT, COPY_INTERVAL_PARENT,
2847 GET_INTERVAL_OBJECT, INTERVAL_PARENT_OR_NULL): New macros.
2848
2849 * alloc.c (make_interval, gc_sweep): Use new macros; eliminate all
2850 explicit references to "parent" field of struct interval and
2851 associated unclean type conversions.
2852 * intervals.c (create_root_interval, root_interval, rotate_right,
2853 rotate_left, balance_possible_root_interval, split_interval_right,
2854 split_interval_left, interval_start_pos, find_interval,
2855 next_interval, previous_interval, update_interval,
2856 adjust_intervals_for_insertion, delete_node, delete_interval,
2857 adjust_intervals_for_deletion, merge_interval_right,
2858 merge_interval_left, reproduce_tree, graft_intervals_into_buffer,
2859 copy_intervals_to_string): Likewise.
2860 * intervals.h (AM_LEFT_CHILD, AM_RIGHT_CHILD, RESET_INTERVAL):
2861 Likewise.
2862 * syntax.c (update_syntax_table): Likewise.
2863
2864 * intervals.c (reproduce_tree_obj): New function, like
2865 reproduce_tree but takes a Lisp_Object for the parent. Declare
2866 with prototype.
2867 (graft_intervals_into_buffer): Use it when appropriate.
2868 (reproduce_tree): Declare with prototype.
2869 (balance_possible_root_interval): Check that the parent is a lisp
2870 object before trying to examine its type.
2871
ee1c5b21
GM
28722000-03-22 Gerd Moellmann <gerd@gnu.org>
2873
2874 * xfaces.c (lface_same_font_attributes_p): Compare font attributes
2875 as strings only if both are known to be strings.
2876
2877 * s/openbsd.h (LIBS_TERMCAP): Undef.
2878
1fb352e0
SM
28792000-03-21 Stefan Monnier <monnier@cs.yale.edu>
2880
2881 * regex.c (CHAR_CHARSET, CHARSET_LEADING_CODE_BASE): Add default
2882 definitions for non-Emacs compilation.
2883 (enum re_opcode_t): Remove (not)wordchar and move (not)syntaxspec
2884 outside of `#ifdef emacs'.
2885 (print_partial_compiled_pattern): Update.
2886 (regex_compile): Use (not)syntaxspec(Sword) instead of (not)wordchar.
2887 (re_compile_fastmap): Merge handling of charset and charset_not (for
2888 emacs and non-emacs compilation as well).
2889 Similarly for (not)categoryspec and (not)syntaxspec.
2890 Don't use the fastmap when reaching `anychar' since the added
2891 complexity is not justified.
2892 (re_match_2_internal): Merge (not)wordchar (emacs and non-emacs)
2893 and (not)syntaxspec. Merge (not)categoryspec.
2894
fdaa1f77
KH
28952000-03-22 Kenichi Handa <handa@etl.go.jp>
2896
ff1a0d8e
KH
2897 * dispextern.h [!HAVE_WINDOW_SYSTEM] (FACE_SUITABLE_FOR_CHAR_P,
2898 FACE_FOR_CHAR): Define them differently for the configuration of
2899 --without-x.
fdaa1f77 2900
d152fb46
DL
29012000-03-21 Dave Love <fx@gnu.org>
2902
2903 * fontset.c (Fset_fontset_font, Ffontset_font): Fix newlines in
2904 doc string.
2905
d2cafc8c
GM
29062000-03-21 Gerd Moellmann <gerd@gnu.org>
2907
2908 * xfaces.c (check_lface_attrs) [GLYPH_DEBUG]: Fix syntax error.
2909 (lface_fully_specified_p): Don't check contents of
2910 LFACE_FONT_INDEX because that attribute is optional.
2911 (realize_x_face): Remove now unwarranted xassert.
2912
9111d4b5
KH
29132000-03-21 Kenichi HANDA <handa@etl.go.jp>
2914
2915 The following changes are to make font selection based on
2916 characters, not charset. In addition, they recover fontset
2917 facilities while utilizing the new font selection mechanism.
2918
6c4bfdc0
KH
2919 * Makefile.in (fontset.o): Depend on dispextern.h.
2920
2921 * alloc.c (mark_face_cache): Don't mark face->registry.
2922
9111d4b5
KH
2923 * dispextern.h (struct glyph): New member glyph_not_available_p.
2924 Use 22 bits for face_id.
2925 (enum lface_attribute_index): Add LFACE_FONT_INDEX.
2926 (struct face): Delete member registry, new member ascii_face.
2927 (FACE_SUITABLE_FOR_CHAR_P): Renamed from
2928 FACE_SUITABLE_FOR_CHARSET_P. Caller changed.
2929 (FACE_FOR_CHAR): Renamed from FACE_FOR_CHARSET. Caller changed.
2930 (struct it): Delete member charset, new member
2931 glyph_not_available_p.
2932
2933 * fontset.h (FONT_NOT_OPENED, FONT_NOT_FOUND): Macros removed.
2934 (struct fontset_info, struct fontset_data): Structs removed.
2935 (allloc_fontset_data, free_fontset_data, fs_regiser_fontset,
2936 Vglobale_fontset_alist, font_idx_temp): Externs removed.
2937 (fs_load_font, fs_query_fontset): Adjusted for new argument.
2938 (fs_free_face_fontset, fontset_font_pattern,
2939 face_suitable_for_char_p, face_for_char,
2940 make_fontset_for_ascii_face): Extern them.
2941 (FS_LOAD_FONT): Adjusted for the change of fontset implementation.
2942 (FS_LOAD_FACE_FONT): New macro.
2943
2944 * fontset.c: All codes rewritten or adjusted for the change of
2945 fontset implementation. Now fontset is represented by char table.
2946 (Vglobal_fontset_alist, font_idx_temp, my_strcasetbl): Variables
2947 removed.
2948 (my_strcasecmp): Function removed.
2949 (Vfontset_table, next_fontset_id, Vdefault_fontset): New
2950 variables.
2951 (AREF, ASIZE): New macros.
2952 (FONTSET_FROM_ID, FONTSET_ID, FONTSET_NAME, FONTSET_FRAME,
2953 FONTSET_ASCII, FONTSET_BASE, BASE_FONTSET_P, FONTSET_REF,
2954 FONTSET_REF_VIA_BASE, FONTSET_SET): New macros.
2955 (fontset_ref, fontset_ref_via_base, fontset_set, make_fontset,
2956 fontset_id_valid_p, font_family_registry, fontset_name,
2957 fontset_ascii, free_face_fontset, face_suitable_for_char_p,
2958 face_for_char, make_fontset_for_ascii_face, fontset_font_pattern):
2959 New functions.
2960 (fs_load_font): New arg FACE. Caller changed.
2961 (fs_query_fontset): Argument changed. Caller changed.
2962 (Fquery_fontset): call fs_query_fontset.
2963 (fs_register_fontset, alloc_fontset_data, free_fontset_data):
2964 Functions removed.
2965 (clear_fontset_elements, check_registry_encoding,
2966 check_fontset_name): New functions.
2967 (syms_of_fontset): Set char-table-extra-slots property of fontset
2968 to 3. Staticpro and initialize Vfontset_table and
2969 Vdefault_fontset. Defsubr fontset_font and fontset_list.
2970
2971 * frame.h (struct frame): Member `fontset_data' removed.
2972 (FRAME_FONTSET_DATA): Macro removed.
2973
2974 * frame.c (make_frame): Don't allocate f->fontset_data.
2975 (Fdelete_frame): Don't free f->fontset_data.
2976
6c4bfdc0
KH
2977 * msdos.c (XMenuActivate): Args to lookup_derived_face changed.
2978
9111d4b5
KH
2979 * xdisp.c (charset_at_position): Function removed.
2980 (init_iterator): Don't set member charset of struct `it'.
2981 (handle_face_prop, reseat_to_string, set_iterator_to_next,
2982 next_element_from_display_vector, insert_left_trunc_glyphs):
2983 Likewise.
2984 (face_before_or_after_it_pos): Call FACE_FOR_CHAR, not
2985 FACE_FOR_CHARSET.
2986 (get_next_display_element, append_space,
2987 extend_face_to_end_of_line): Likewise.
2988
2989 * xfaces.c (Qx_charset_registry, Vface_default_registry):
2990 Variables removed.
2991 (clear_font_table, frame_update_line_height, load_face_font):
2992 Adjusted for the change of fontset implementation.
2993 (load_face_fontset_font): Function removed.
2994 (pixel_point_size): New function.
2995 (font_list): Argument type changed. Caller changed.
2996 (LFACE_FONT): New macro.
2997 (check_lface_attrs): Check attr[LFACE_FONT_INDEX].
2998 (set_lface_from_font_name): Type of arg FONTNAME is changed to
2999 Lisp_Object. Determine the font name by actually loading a font
3000 by the specified pattern. Set LFACE_FONT (lface) to the specified
3001 pattern. Even if a font is not found, don't try alternatives.
3002 (Finternal_set_lisp_face_attribute): Handle `font' slot in lface.
3003 (set_font_frame_param): If `font' is specified in lface, use it.
3004 (Finternal_get_lisp_face_attribute): Handle `font' slot in lface.
3005 (lface_same_font_attributes_p): Likewise.
3006 (make_realized_face): Arguent changed. Caller changed. Set
3007 face->ascii_face to face itself.
3008 (free_realized_face): Free face->fontset if face is for ASCII.
3009 (face_suitable_for_iso8859_1_p, face_suitable_for_charset_p,
3010 deduce_unibyte_registry, x_charset_registry): Functions removed.
3011 (free_realized_multibyte_face): New function.
3012 (lookup_face, lookup_named_face, lookup_derived_face): Argument
3013 changed. Caller changed.
3014 (try_font_list): Argument type changed.
3015 (face_fontset): Check `font' slot of ATTRS, not `family' slot.
3016 (choose_face_font): Argument changed. Handle fontset properly.
3017 (choose_face_fontset_font): Function removed.
3018 (realize_default_face, realize_named_face): Don't remove the
3019 former face here.
3020 (realize_face): Argument changed. Caller changed. Remove face
3021 with the arg former_face_id in advance. Load font for the new
3022 face.
3023 (realize_x_face): Argument changed. Caller changed. For a
3024 multibyte character, share fontset with base_face. For a single
3025 byte character, make a new realized fontset. Don't load a font
3026 here.
3027 (realize_tty_face): Argument changed. Caller changed.
3028 (compute_char_face): Call FACE_FOR_CHAR, not FACE_FOR_CHARSET.
3029 (face_at_buffer_position): Don't check multibyte_p for returning
3030 DEFAULT_FACE_ID.
3031 (face_at_string_position): Call FACE_SUITABLE_FOR_CHAR_P, not
3032 FACE_SUITABLE_FOR_CHARSET_P.
3033 (syms_of_xfaces): Remove code for Qx_charset_registry and
3034 Vface_default_registry.
3035
6c4bfdc0
KH
3036 * xterm.c: Include fontset.h after dispextern.h. Undo the changes
3037 related to PER_CHAR_METRIC done by Gerd on 2000-03-03.
9111d4b5
KH
3038 (x_per_char_metric): Don't try FONT->default_char. Even if
3039 pcm->width is zero, glyph bits may exist.
3040 (x_encode_char): Always initialize char2b->byte1.
3041 (x_get_char_face_and_encoding): Call FACE_FOR_CHAR to get face_id.
3042 (x_get_glyph_face_and_encoding): New arg two_byte_p. Caller
3043 changed.
3044 (x_append_glyph): Set glyph->glyph_not_available_p.
3045 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
3046 it->charset. Handle the case that per char metric is not
3047 available. If it->multibyte_p is zero and it->c is a multibyte
3048 character, convert it to a unibyte character.
3049 (struct glyph_string): Delete member `charset'.
3050 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
3051 the case that per char metric is not available correctly.
3052 (x_fill_glyph_string): Handle the case that the specific glyph is
3053 not available correctly.
3054 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
3055 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
3056 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
3057 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
3058 fontset. Don't call FS_LOAD_FONT.
3059
3060 * xfns.c (Fx_create_frame): Don't cal fs_register_fontset.
3061 (x_create_tip_frame): Likewise.
3062 (Fx_close_connection): Free full_name of font_info.
3063
3064 * fns.c (optimize_sub_char_table): New function.
3065 (Foptimize_char_table): New function.
3066 (syms_of_fns): Defsubr Soptimize_char_table.
3067
b33dd3b0
GM
30682000-03-20 Gerd Moellmann <gerd@gnu.org>
3069
3070 * buffer.c (Fset_buffer_modified_p): Set update_mode_lines
3071 only if buffer is displayed in some window.
3072
3073 * xdisp.c (handle_single_display_prop): Initialize local `value'.
3074 (try_window_reusing_current_matrix): Don't call scroll run
3075 function if run's current and desired position are the same;
3076 this prevents cursor flickering.
3077
4e8a9132
SM
30782000-03-19 Stefan Monnier <monnier@cs.yale.edu>
3079
3080 * regex.h (RE_TRANSLATE. RE_TRANSLATE_P): Moved to regex.c.
3081
3082 * regex.c (RE_STRING_CHAR): New macro.
3083 (GET_CHAR_AFER_2): Remove.
3084 (RE_TRANSLATE, RE_TRANSLATE_P): New macros moved from regex.h.
3085 (enum re_opcode_t): Remove on_failure_jump_exclusive.
3086 (print_partial_compiled_pattern, re_compile_fastmap)
3087 (re_match_2_internal): Remove on_failure_jump_exclusive.
3088 (regex_compile): Turn optimizable P+ loops into PP*, so that the
3089 optimization only need to work for * (ie. can use of_keep_string_jump).
3090 Remove the special case for .*\n since it is now covered by the general
3091 optimization.
3092 (re_search_2): Don't bother with `room'.
3093 (skip_one_char): New function.
3094 (skip_noops): Simplify since `memory' is not needed any more.
3095 (mutually_exclusive_p): Restructure slightly to use `switch' and
3096 add handling for "all" remaining cases.
3097 (re_match_2_internal): Change on_failure_jump_smart to use
3098 on_failure_keep_string_jump (and redirect the end-of-loop jump)
3099 rather than on_failure_jump_exclusive.
3100
2136fdd4
GM
31012000-03-19 Gerd Moellmann <gerd@gnu.org>
3102
3103 * xfns.c (select_visual): Don't set dpyinfo->n_planes to the
3104 number of bits per RGB because it's everywhere used as the depth
3105 of the visual.
3106
3107 * term.c (calculate_costs): Remove code dealing with X frames.
3108
e53ae11c
RS
31092000-03-19 Richard M. Stallman <rms@caffeine.ai.mit.edu>
3110
3111 * lread.c (syms_of_lread): Doc fix for load-convert-to-unibyte.
3112
d7b511c4
GM
31132000-03-18 Gerd Moellmann <gerd@gnu.org>
3114
3115 * lread.c (read_integer): Unread the last char not consumed.
3116
16b5d424
GM
31172000-03-17 Gerd Moellmann <gerd@gnu.org>
3118
3119 * xterm.c (x_update_window_cursor): Don't update in frames
d7b511c4 3120 which are in the process of being deleted.
16b5d424 3121
1fa28578
GM
31222000-03-16 Gerd Moellmann <gerd@gnu.org>
3123
83488cce
GM
3124 * Makefile.in (mostlyclean): Add `*.core'.
3125 (clean): Add `bootstrap-emacs'.
3126
1fa28578
GM
3127 * lread.c (read_integer): New function.
3128 (read1): Support read syntax #o, #x, #b, #r.
3129
99633e97
SM
31302000-03-15 Stefan Monnier <monnier@cs.yale.edu>
3131
1fa28578
GM
3132 * regex.c (re_match_2): Fix string shortening (to fit `stop') to
3133 make sure POINTER_TO_OFFSET gives the same value before and after
3134 PREFETCH. Use `dfail' to guarantee "atomic" matching.
99633e97
SM
3135 (PTR_TO_OFFSET): Use POINTER_TO_OFFSET.
3136 (debug): Now only active if > 0 rather than if != 0.
3137 (DEBUG_*): Update for the new meaning of `debug'.
1fa28578
GM
3138 (print_partial_compiled_pattern): Add missing `succeed' case. Use
3139 CHARSET_* macros in the charset(_not) branch. Fix off-by-two bugs
3140 in `succeed_n', `jump_n' and `set_number_at'.
99633e97
SM
3141 (store_op1, store_op2, insert_op1, insert_op2)
3142 (at_begline_loc_p, at_endline_loc_p): Add prototype.
1fa28578
GM
3143 (group_in_compile_stack): Move to after its arg's types are
3144 declared and add a prototype.
99633e97 3145 (PATFETCH): Define in terms of PATFETCH_RAW.
1fa28578
GM
3146 (GET_UNSIGNED_NUMBER): Add the usual `do { ... } while(0)'
3147 wrapper.
99633e97 3148 (QUIT): Redefine as a nop except for NTemacs.
1fa28578
GM
3149 (regex_compile): Handle intervals {,M} as if it was {0,M}. Fix
3150 indentation of the greedy-op and shy-group code.
99633e97
SM
3151 (at_(beg|end)line_loc_p): Fix argument's types.
3152 (re_compile_fastmap): Ifdef out failure_stack_ptr to shut up gcc.
3153 (re_search_2): Use POS_AS_IN_BUFFER. Simplify `room' computation.
3154 (MATCHING_IN_FIRST_STRING): Remove.
1fa28578
GM
3155 (re_match_2): Use POS_AS_IN_BUFFER. Ifdef out failure_stack_ptr
3156 to shut up gcc. Use FIRST_STRING_P and POINTER_TO_OFFSET. Use
3157 QUIT unconditionally.
99633e97 3158
699238d9
GM
31592000-03-15 Gerd Moellmann <gerd@gnu.org>
3160
3161 * minibuf.c (Fminibuffer_complete): Set point to ZV if finding
3162 a sole completion.
3163
3164 * process.c (send_process): Add a hint that the function
3165 can call Lisp code to its comment.
3166
3167 * lread.c (load_dangerous_libraries): New variable.
3168 (Vbytecomp_version_regexp): New variable.
3169 (safe_to_load_p): New function.
3170 (Fload): Handle files not compiled with Emacs specially.
3171 (syms_of_lread): New Lisp variable load-dangerous-libraries.
3172
34e23e5a
GM
31732000-03-14 Gerd Moellmann <gerd@gnu.org>
3174
9c763cca
GM
3175 * lisp.h (free_frame_xic) [HAVE_X_I18N]: Add missing semicolon.
3176
3177 * xterm.c (xim_close_dpy, xim_initialize): Use X11R6-style XIM
3178 support functions only if HAVE_X11R6_XIM is defined.
3179 (xim_instantiate_callback): Define only if HAVE_X11R6_XIM.
3180
3181 * s/sol2.h (INHIBIT_X11R6_XIM): Define.
3182
3183 * xfns.c (X_I18N_INHIBITED): Don't define.
3184 (create_frame_xic): Remove conditional compilation on
3185 X_I18N_INHIBITED.
3186 (x_kill_gs_process, x_window): Use FRAME_X_VISUAL.
3187
3188 * config.in (HAVE_X_I18N): Moved here from xterm.h.
3189 (HAVE_X11R6_XIM): Define.
3190
3191 * xterm.h (HAVE_X_I18N) [HAVE_X11R6]: Moved to config.in.
3192
34e23e5a
GM
3193 * xterm.c (x_term_init): Add support for X resource `synchronous'.
3194 If set, call XSynchronize.
3195
66f0296e
SM
31962000-03-13 Stefan Monnier <monnier@cs.yale.edu>
3197
34e23e5a
GM
3198 * regex.c: Declare a new type `re_char' used throughout the code
3199 for the string char type. It's `const unsigned char' to match the
3200 rest of Emacs. Consistently make sure all pointers to strings use
3201 it and make sure all pointers into the pattern use `unsigned
3202 char'.
66f0296e 3203 (re_match_2_internal): Use `PREFETCH+STRING_CHAR' instead of
34e23e5a
GM
3204 GET_CHAR_AFTER_2. Also merge wordbound and notwordbound to reduce
3205 code duplication.
66f0296e
SM
3206
3207 * charset.h (GET_CHAR_AFTER_2): Remove.
3208 (GET_CHAR_BEFORE_2): Use unsigned chars, like everywhere else.
3209
854a025c
KR
32102000-03-12 Ken Raeburn <raeburn@gnu.org>
3211
3212 * Makefile.in (temacs): Evaluate ALL_LDFLAGS into a temporary
3213 variable before the invocation of YMF_PASS_LDFLAGS, in case both
3214 of them try to use backquotes.
3215
b9d2c7e2
DL
32162000-03-12 Dave Love <fx@gnu.org>
3217
3218 * unexelf.c: Restore changes of 1999-10-19.
3219 (unexec): Don't adjust bss for sbss type SHT_PROGBITS; otherwise
3220 fix its type and alignment; copy it from current process.
3221
5e5dff44
GM
32222000-03-12 Gerd Moellmann <gerd@gnu.org>
3223
9b2f3c38
GM
3224 * atimer.c (cancel_atimer): Break out of the loop as soon as timer
3225 has been found. Fix bug not computing timer's predecessor.
3226
427ec082 3227 * fileio.c (Fread_file_name): Handle case that DIR contains a
9172b88d
GM
3228 file name.
3229
e1cff360
GM
3230 * window.c (Fsave_window_excursion): Doc fix.
3231
5e5dff44
GM
3232 * xfns.c (x_defined_color): Rewritten to use
3233 x_allocate_nearest_color.
3234
e411ce4b
EZ
32352000-03-12 Eli Zaretskii <eliz@is.elta.co.il>
3236
3237 * msdos.c (vga_installed): New function, code moved from
3238 dos_set_window_size.
3239 (Qbar, Qcursor_type, outside_cursor): New variables.
3240 (syms_of_msdos): Intern and staticpro them.
3241 (dos_ttraw) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Save the cursor
3242 shape used outside Emacs when called for the first time.
3243 (dos_ttcooked) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Restore the
3244 cursor shape used outside Emacs.
3245 (msdos_set_cursor_shape, IT_set_cursor_type): New functions.
3246 (IT_frame_up_to_date): Call IT_set_cursor_type, in case the cursor
3247 type has changed.
3248 (IT_set_frame_parameters): Call IT_set_cursor_type if the frame
3249 parameters specify the cursor. Make qreverse a global
3250 variable (renamed to Qreverse).
3251
80460654
GM
32522000-03-09 Gerd Moellmann <gerd@gnu.org>
3253
3254 * fns.c (Fy_or_n_p): Cancel busy-cursor.
3255
95cd4c40
SM
32562000-03-08 Stefan Monnier <monnier@cs.yale.edu>
3257
3258 This is a big redesign of failure-stack and register handling, prompted
3259 by bugs revealed when trying to add shy-groups. Overall, what happened
3260 is that loops are now structured a little differently, groups can be
3261 shy and the code is a little simpler.
3262
3263 * regex.h: Update the copyright.
3264 (RE_SHY_GROUPS): New value.
3265 (RE_UNMATCHED_RIGHT_PAREN_ORD): Renumber.
3266 (RE_SYNTAX_EMACS): Add RE_SHY_GROUPS.
3267
80460654
GM
3268 * regex.c (enum re_opcode_t): Remove jump_past_alt,
3269 maybe_pop_jump, push_dummy_failure and dumy_failure_jump. Add
3270 on_failure_jump_(exclusive, loop and smart). Also fix the comment
3271 for (start|stop)_memory since they now only take one argument (the
3272 second has becomes unnecessary).
3273 (print_partial_compiled_pattern): Adjust for changes in
3274 re_opcode_t.
3275 (print_compiled_pattern): Use %ld to printf long ints and flush to
3276 make debugging a little easier.
95cd4c40
SM
3277 (union fail_stack_elt): Make the integer unsigned.
3278 (struct fail_stack_type): Add a `frame' element.
3279 (INIT_FAIL_STACK): Init `frame' as well.
3280 (POP_PATTERN_OP): New macro for re_compile_fastmap.
3281 (DEBUG_PUSH, DEBUG_POP): Remove.
3282 (NUM_REG_ITEMS): Remove.
3283 (NUM_NONREG_ITEMS): Adjust.
80460654
GM
3284 (FAILURE_PAT, FAILURE_STR, NEXT_FAILURE_HANDLE)
3285 (TOP_FAILURE_HANDLE): New macros for the cycle detection.
95cd4c40 3286 (ENSURE_FAIL_STACK): New macro for PUSH_FAILURE_(REG|POINT).
80460654
GM
3287 (PUSH_FAILURE_REG, POP_FAILURE_REG, CHECK_INFINITE_LOOP): New
3288 macros.
3289 (PUSH_FAILURE_POINT): Don't push registers any more. The pattern
3290 address pushed is not the destination of the jump but the source
3291 of it instead.
95cd4c40
SM
3292 (NUM_FAILURE_ITEMS): Remove.
3293 (POP_FAILURE_POINT): Adapt to the new stack structure (i.e. pop
80460654
GM
3294 registers before the actual failure point). Don't hardcode any
3295 meaning for str==NULL anymore.
95cd4c40 3296 (union register_info_type, REG_MATCH_NULL_STRING_P, IS_ACTIVE)
80460654
GM
3297 (MATCHED_SOMETHING, EVER_MATCHED_SOMETHING, SET_REGS_MATCHED):
3298 Remove.
95cd4c40
SM
3299 (REG_UNSET_VALUE): Use NULL (why not?).
3300 (compile_range): Remove declaration since it doesn't exist.
3301 (struct compile_stack_elt_t): Remove inner_group_offset.
3302 (old_reg(start|end), reg_info, reg_dummy, reg_info_dummy): Remove.
3303 (regex_grow_registers): Remove dead code.
3304 (FIXUP_ALT_JUMP): New macro.
80460654
GM
3305 (regex_compile): Add shy-groups Change loops to use
3306 on_failure_jump_smart&jump instead of
3307 on_failure_jump&maybe_pop_jump. Change + loops to eliminate the
3308 initial (dummy_failure_)jump. Remove c1_base (looks like unused
3309 variable to me). Use `jump' instead of `jump_past_alt' and don't
3310 bother with push_dummy_failure in alternatives since it is now
3311 unnecessary. Use FIXUP_ALT_JUMP. Eliminate a useless `#ifdef
3312 emacs' for (re)allocating the stack.
3313 (re_compile_fastmap): Remove dead variables i and num_regs. Exit
3314 from loop when bufp->can_be_null rather than jumping to `done'.
3315 Avoid jumping backwards so as to ensure termination. Use
3316 PATTERN_STACK_EMPTY and POP_PATTERN_OP. Improved handling of
3317 backreferences. Remove dead code in handling of `anychar'.
95cd4c40 3318 (skip_noops, mutually_exclusive_p): New functions taken from the
80460654
GM
3319 handling of `maybe_pop_jump' in re_match_2_internal. Slightly
3320 improve mutually_exclusive_p to handle ".+\n".
3321 (lowest_active_reg, highest_active_reg,
3322 NO_(LOWEST|HIGHEST)_ACTIVE_REG) Remove.
3323 (re_match_2_internal): Use %p instead of 0x%x when printf'ing
3324 ptrs. Don't SET_REGS_MATCHED anymore. Remove many dead
3325 variables. Push register (in `start_memory') on the stack rather
3326 than storing it in old_reg(start|end). Remove the cycle detection
3327 from `stop_memory', replaced by the use of on_failure_jump_loop
3328 for greedy loops. Add code for the new on_failure_jump_<foo>.
3329 Remove ad-hoc code in `on_failure_jump' to push more registers in
3330 the case of a loop. Take out code from `maybe_pop_jump' into
3331 separate functions and adapt it to the semantics of
3332 `on_failure_jump_smart'. Remove jump_past_alt, dummy_failure_jump
3333 and push_dummy_failure. Remove dummy_failure handling and
3334 handling of `failures to jump to on_failure_jump' (this last one
3335 was already dead code, it seems).
3336 (group_match_null_string_p, alt_match_null_string_p)
3337 (common_op_match_null_string_p): Remove.
95cd4c40 3338
7397acc4
DL
33392000-03-08 Dave Love <fx@gnu.org>
3340
3341 * config.in: Don't depend on __STDC__ for volatile.
3342 Add POINTER_TYPE, PTR, PROTOTYPES.
3343
3344 * hftctl.c, strftime.c: Use PROTOTYPES.
3345 * eval.c (find_handler_clause): Likewise.
3346
3347 * mem-limits.h: Use POINTER_TYPE.
3348
3349 * lisp.h (P_): Define based on PROTOTYPES, not __STDC__.
3350 (memory_warnings): Declare using POINTER_TYPE.
3351
5e91ff9e
GM
33522000-03-08 Gerd Moellmann <gerd@gnu.org>
3353
feab4fba
GM
3354 * xfns.c (x_set_cursor_type): If ARG is nil, give frame no cursor.
3355
25edb08f
GM
3356 * xdisp.c (display_echo_area): Temporarily inhibit garbage
3357 collection.
3358
5e91ff9e
GM
3359 * xfns.c: Remove obsolete code in #if 0.
3360 (Fx_focus_frame): New function.
3361
a735b7e1
KH
33622000-03-07 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
3363
3364 * coding.c (coding_category_name): Add coding-category-utf-8,
3365 coding-category-utf-16-be, coding-category-utf-16-le.
3366 (UTF_8_1_OCTET_P, UTF_8_EXTRA_OCTET_P, UTF_8_2_OCTET_LEADING_P,
3367 UTF_8_3_OCTET_LEADING_P, UTF_8_4_OCTET_LEADING_P,
3368 UTF_8_5_OCTET_LEADING_P, UTF_8_6_OCTET_LEADING_P): New macros.
3369 (detect_coding_utf_8): New function.
3370 (UTF_16_INVALID_P, UTF_16_HIGH_SURROGATE_P
3371 UTF_16_LOW_SURROGATE_P): New macros.
3372 (detect_coding_utf_16): New function
3373 (detect_coding_mask): When priorities are specified, skip any
3374 categories that have `nil' coding-system. Fix bug of returning
3375 wrong mask when PRIORITIES is specified and detect_coding_XXX()
3376 returns a mask not set in PRIORITIES.
3377 (detect_eol_type_in_2_octet_form): New function.
3378 (detect_eol): selects detect_eol_type_XXX to call according to
3379 cooding->category_idx.
3380 (detect_coding_system): Remove `nil' coding-system in the result.
3381 (Fupdate_coding_systems_internal): Update all coding-categories.
3382
3383 * coding.h (CODING_CATEGORY_IDX_UTF_8,
3384 CODING_CATEGORY_IDX_UTF_16_BE, CODING_CATEGORY_IDX_UTF_16_LE): New
3385 macros.
3386 (CODING_CATEGORY_IDX_RAW_TEXT, CODING_CATEGORY_IDX_BINARY,
3387 CODING_CATEGORY_IDX_MAX): Adjusted for the above macros.
3388 CODING_CATEGORY_IDX_UTF_16_LE.
3389 (CODING_CATEGORY_MASK_UTF_8, CODING_CATEGORY_MASK_UTF_16_BE,
3390 CODING_CATEGORY_MASK_UTF_16_LE): New macros.
3391 (CODING_CATEGORY_MASK_ANY): Include the above macros.
3392 (CODING_CATEGORY_MASK_UTF_16_BE_LE): New macro.
3393
9994cc69
GM
33942000-03-07 Gerd Moellmann <gerd@gnu.org>
3395
e9b4e5ff
GM
3396 * doc.c (Fdocumentation_property): If value is not a string,
3397 and doesn't refer to etc/DOC, evaluate it to obtain a string.
3398
f7daf1e1
GM
3399 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Don't try to
3400 close the display with XtCloseDisplay. This caused a bus error
3401 on OpenWindows.
3402
9994cc69
GM
3403 * minibuf.c (Fminibuffer_complete): Move point to ZV when input is
3404 complete but not unique.
3405
4336c705
GM
34062000-03-06 Gerd Moellmann <gerd@gnu.org>
3407
18bb0684
GM
3408 * process.c (send_process): Remove local variable `procname' that
3409 might become invalid when a GC happens. Instead, access the
3410 process name slot directly.
3411
4336c705
GM
3412 * xfns.c (x_set_menu_bar_lines_1): Adjust window's orig_top and
3413 orig_height if set.
3414
3415 * frame.c (set_menu_bar_lines_1): Adjust window's orig_top and
3416 orig_height if set.
3417
515d0d0e
EZ
34182000-03-06 Eli Zaretskii <eliz@is.elta.co.il>
3419
3420 * msdos.c (IT_note_mouse_highlight): Return immediately if frame's
3421 glyph matrices have been freed.
3422
100b3cbb
GM
34232000-03-05 Gerd Moellmann <gerd@gnu.org>
3424
50df5e5a 3425 * Makefile.in (tags): Include ../lwlib/TAGS in TAGS.
6178bc23 3426 (bootstrap-temacs): Set LC_ALL to C like for temacs.
50df5e5a
GM
3427
3428 * xfns.c (QCdata): Moved to xdisp.c.
3429
3430 * xdisp.c (QCdata): Moved here from xfns.c.
3431 (syms_of_xdisp): Initialize QCdata.
3432
3433 * frame.h (FRAME_INTERNAL_BORDER_WIDTH) [!HAVE_X_WINDOWS]: Define.
3434
3435 * window.c (coordinates_in_window): Use
3436 FRAME_INTERNAL_BORDER_WIDTH_SAFE instead of
3437 FRAME_INTERNAL_BORDER_WIDTH.
3438
100b3cbb 3439 * xdisp.c (try_window_id): Recompute unchanged information if
4336c705 3440 it is obviously invalid.
100b3cbb
GM
3441
3442 * xterm.c (x_term_init): Create a colormap if not using the
3443 default visual.
3444
3445 * xterm.h (select_visual): Change prototype.
3446
3447 * xfns.c (select_visual): Rewritten. Recognize user-specified
3448 visual classes.
3449 (visual_classes): New variable.
3450
64d739c4
GM
34512000-03-04 Gerd Moellmann <gerd@gnu.org>
3452
3453 * xfns.c (x_defined_color, x_set_mouse_color, lookup_rgb_color)
3454 (lookup_pixel_color, x_laplace, x_build_heuristic_mask)
3455 (png_load): Access colormap of frame using FRAME_X_COLORMAP.
3456 (x_decode_color): Don't handle allocation of white and black
3457 specially.
3458 (x_window) [USE_X_TOOLKIT]: Set XtNvisual, XtNdepth, and
3459 XtNcolormap resources.
3460 (x_window) [!USE_X_TOOLKIT]: Pass colormap to XCreateWindow.
3461 (Fx_create_frame): Initialize color members of x_output structure.
3462 (xpm_load): Pass colormap to XPM lib.
3463
3464 * xfaces.c (x_free_colors): Access colormap of frame using
3465 FRAME_X_COLORMAP. Be paranoid about freeing black and white
3466 when default colormap is used.
3467
3468 * xterm.c (x_term_init): Set Colormap member of x_display_info
3469 structure. Copy colormap if resource `privateColormap' is
3470 specified (PseudoColor only).
3471 (x_setup_relief_color): Access colormap of frame using
3472 FRAME_X_COLORMAP.
3473
3474 * xterm.h (struct x_display_info): Add Colormap member `cmap'.
3475 (FRAME_X_COLORMAP, FRAME_X_VISUAL): New macros.
3476
c3cee013
JR
34772000-03-04 Jason Rumney <jasonr@gnu.org>
3478
3479 * xfaces.c Change many FRAME_X... macros to FRAME_WINDOW... or
3480 other non-platform-specific equivalents.
64d739c4 3481 [WINDOWSNT]: Include w32term.h, fontset.h and define X
c3cee013
JR
3482 specific functions and macros as their w32 equivalents where
3483 non-platform-specifics are not available.
3484 [HAVE_X_WINDOWS]: Change most of these to HAVE_WINDOW_SYSTEM.
3485 (x_create_gc, x_free_gc) [WINDOWSNT]: Add W32 versions.
3486 (clear_font_table) [WINDOWSNT]: Call w32_unload_font.
3487 (frame_update_line_height): Use macros to access f->output_data.
3488 (defined_color): Remove FIXME comments; fixed.
3489 (x_face_list_fonts, prepare_face_for_display): Put X specifics
3490 into #ifdef blocks. Add WINDOWSNT blocks.
3491 (Fx_list_fonts): Use macros for accessing font data.
3492 (set_lface_from_font_name): Different default fonts for X and
3493 WINDOWSNT.
3494 (font_scalable_p) [WINDOWSNT]: Treat wildcard XLFD_AVGWIDTH as
3495 scalable for backward compatibility.
64d739c4 3496 (realize_tty_face) [MSDOS]: Do the same for WINDOWSNT.
c3cee013
JR
3497 (syms_of_xfaces) [WINDOWSNT]: Allow scalable fonts by default.
3498
64d739c4 3499 * emacs.c (main) [HAVE_NTGUI]: Call syms_of_xfaces instead of
c3cee013
JR
3500 syms_of_w32faces.
3501
3502 * makefile.nt (w32faces.obj): Remove.
3503 (xfaces.obj): Add.
3504
807cc41c
JR
35052000-03-03 Jason Rumney <jasonr@gnu.org>
3506
3507 * keyboard.c (make_lispy_event): Call buffer_posn_from_coords with
3508 correct parameters.
3509
0007072a
KR
35102000-03-03 Ken Raeburn <raeburn@gnu.org>
3511
3512 * unexelf.c (PT_LOAD, SHT_*, SHN_*) [__NetBSD__]: Only provide
3513 standard ELF definitions here if the system header does not.
3514
71a6ba55
GM
35152000-03-03 Gerd Moellmann <gerd@gnu.org>
3516
3517 * xterm.c (PER_CHAR_METRIC): Removed.
3518 (x_per_char_metric_1, x_default_char): New functions.
3519 (x_per_char_metric): If font's default char is invalid, return
3520 metrics of a suitably chosen usable default char.
3521 (x_draw_glyph_string_foreground): If font has an invalid default
64d739c4
GM
3522 char, replace occurrences of unprintable chars with a suitably
3523 chosen usable default char.
71a6ba55 3524
900fa1f1
GM
35252000-03-02 Gerd Moellmann <gerd@gnu.org>
3526
42f55fe0
GM
3527 * xterm.c (note_mouse_highlight): Return quickly if frame's
3528 glyph matrices have been freed.
3529
3530 * dispnew.c (free_glyphs): Block input while freeing matrices.
3531
900fa1f1
GM
3532 * xfns.c (x_clear_image, x_kill_gs_process): Use x_free_colors.
3533
3534 * xterm.c (x_alloc_lighter_color, x_setup_relief_color): Use
3535 x_free_colors.
3536
3537 * dispextern.h (x_free_colors): Add prototype.
3538
3539 * xfaces.c (x_free_colors): New function.
3540 (unload_color, free_face_colors): Use it.
3541
2f950292
EZ
35422000-03-02 Eli Zaretskii <eliz@is.elta.co.il>
3543
3544 * msdos.h (FRAME_INTERNAL_BORDER_WIDTH): Define to zero.
3545
3546 * window.c [MSDOS]: Include msdos.h.
3547
54d04320
DL
35482000-03-02 Dave Love <fx@gnu.org>
3549
3550 * m/powerpcle.h, m/sparc.h: Don't set C_OPTIMIZE_SWITCH.
3551
3552 * m/mips-siemens.h, m/news-r6.h, m/news-risc.h, m/tekxd88.h: Don't
3553 set C_OPTIMIZE_SWITCH for gcc.
3554
0ba93ac4
KH
35552000-03-02 Kenichi Handa <handa@etl.go.jp>
3556
3557 * coding.c (coding_save_composition): Be sure to allocate
3558 composition data area in coding even if there's no composition in
3559 the current run.
3560
a2bc11d4
JR
35612000-03-01 Jason Rumney <jasonr@gnu.org>
3562
3563 * w32term.c: Equivalent changes to those made to xterm.c on
3564 2000-02-25 and 2000-02-24.
3565
3566 * w32fns.c: Equivalent changes to those made to xfns.c on
3567 2000-02-25 and 2000-02-21.
3568
3569 * sysdep.c: [WINDOWSNT]: Use sys_read and sys_write to ensure
3570 correct line-end convention is followed.
3571
3572 * w32menu.c [HAVE_BOXES]: Remove #undef.
3573 (single_keymap_panes): Remove code for simulating checkmarks.
3574 (single_menu_item): Remove notbuttons_ptr argument. Callers changed.
3575 Remove code for drawing simulated checkmarks.
3576 (w32_menu_show): make unibyte help string correctly.
3577 (add_menu_item): draw standard Windows checkmarks. Draw radio
3578 buttons as radio buttons if possible.
3579
72d19d75
GM
35802000-03-01 Gerd Moellmann <gerd@gnu.org>
3581
2df636f4
GM
3582 * sysdep.c (start_of_text): Don't define this function for NetBSD
3583 with ELF.
3584
427ec082 3585 * m/pmax.h (START_FILES, CANNOT_DUMP) [__NetBSD__ || __OpenBSD__]:
2df636f4
GM
3586 Don't define.
3587 (UNEXEC) [__NetBSD__ || __OpenBSD__]: Define to unexelf.o.
3588 (LINKER): Don't undef if __NetBSD__ is defined.
3589
3590 * m/mips.h (LINKER) [__NetBSD__ || __OpenBSD__]: Don't define.
3591
3592 * fileio.c [__NetBSD__]: Define `unix'.
3593
72d19d75
GM
3594 * xfns.c (start_busy_cursor): Allow floats for busy-cursor-delay.
3595
ed4d0512
GM
35962000-02-29 Gerd Moellmann <gerd@gnu.org>
3597
50b1039f
GM
3598 * atimer.c (start_atimer): Don't abort when timers are stopped.
3599 (append_atimer_lists): New function.
3600 (cancel_atimer, stop_other_atimers, run_all_atimers): Handle
3601 arbitrary lists of stopped and running atimers.
3602
ed4d0512
GM
3603 * atimer.c (cancel_atimer): Handle canceling an atimer when
3604 some timers are stopped.
3605
3606 * xfns.c (cancel_busy_cursor): Set busy_cursor_atimer to null
3607 after canceling it.
3608
3609 * fns.c (maybe_resize_hash_table): Handle case of new size
3610 coming out as being the same as old size.
3611
387023ee
JR
36122000-02-27 Jason Rumney <jasonr@gnu.org>
3613
3614 * makefile.nt: Add atimer.h to dependencies.
3615 * w32.c (init_environment): Set Vw32_num_mouse_buttons here.
3616 * w32console.c: Only disable window system features for dispextern.h
3617 (initialize_w32_display): Build a display info for the console.
3618 * w32faces.c (tty_defined_color): Apply xfaces.c change from 02-17.
3619 * w32fns.c (w32_wnd_proc) [WM_LBUTTON_DOWN, WM_RBUTTON_DOWN,
3620 WM_LBUTTON_UP, WM_RBUTTON_UP]: Do not treat 4 or more button mice
3621 as 2 button mice.
3622 * w32gui.h (struct W32FontStruct): Revert last change after change
3623 to xdisp.c.
3624 * w32menu.c (single_submenu): Set up help string.
3625 [!HAVE_MULTILINGUAL_MENU]: Don't overwrite item_name with descrip.
3626 (w32_dialog_show): Set up help string.
3627 * w32term.c (w32_display_info_for_display): Remove unused function.
3628 (w32_draw_bitmap): Use pre-built bitmaps.
3629 (w32_initialize_display_info): New function to initialize parts of
3630 display info that are common to both GUI and console frames.
3631 (w32_term_init): Use w32_initialize_display_info. Do not set
3632 Vw32_num_mouse_buttons here, as it is not called for console
3633 frames. Build bitmaps for indicating truncated lines etc.
3634 (x_delete_display): Destroy pre-built bitmaps.
3635 * xdisp.c (handle_single_display_prop): Use FONT_HEIGHT macro.
3636 (echo_area_display): Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM.
3637
4516715a
DL
36382000-02-27 Dave Love <fx@gnu.org>
3639
3640 * lisp.h: Add a bunch of prototypes.
3641
171ca836
KH
36422000-02-26 Kenichi Handa <handa@etl.go.jp>
3643
3644 * keyboard.c (read_char): Set `usec' correctly.
3645
4013921d
KH
36462000-02-25 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
3647
3648 * ccl.c (ccl_driver) [CCL_MapMultiple]: When the mapped value is
3649 `lambda', set reg[RRR] to the map index.
3650 (ccl_driver) [CCL_MapSingle]: When the mapped value is found, set
3651 reg[RRR] to 0. Otherwise, set it to -1.
3652
9244a058
GM
36532000-02-25 Gerd Moellmann <gerd@gnu.org>
3654
2df636f4 3655 * emacs.c (main): Remove code snippet commented out with `//'.
9244a058 3656
f43d79c1 36572000-02-25 Richard M. Stallman <rms@caffeine.ai.mit.edu>
427ec082 3658
f43d79c1
GM
3659 * fileio.c (Ffile_symlink_p): If result starts with a `/'
3660 and contains a `:', prepend `/:'.
3661
3662 * window.c (select_window_1): If selected_window is nil,
3663 don't "swap out" the buffer's point.
3664 (Fset_window_configuration): Set selected_window to nil
3665 before calling Fselect_window.
3666 (unshow_buffer): Don't set point in buffer from window's point
3667 if another more recently selected window also shows the buffer.
3668
bed0c171
GM
36692000-02-25 Gerd Moellmann <gerd@gnu.org>
3670
449c3c52
GM
3671 * keyboard.c (recursive_edit_1): Cancel busy-cursor.
3672
f5b58615
GM
3673 * xfns.c (inhibit_busy_cursor, busy_count): Removed.
3674 (Fx_show_busy_cursor, Fx_hide_busy_cursor): Removed.
3675 (busy_cursor_atimer, busy_cursor_shown_p, Vbusy_cursor_delay): New
3676 variables.
3677 (DEFAULT_BUSY_CURSOR_DELAY): New define.
3678 (start_busy_cursor, cancel_busy_cursor, show_busy_cursor)
3679 (hide_busy_cursor): New functions.
3680 (syms_of_xfns): DEFVAR_LISP Vbusy_cursor_delay.
3681
3682 * minibuf.c (read_minibuf): Cancel busy-cursor.
3683
3684 * keyboard.c (command_loop_1): Call start_busy_cursor before
3685 Fcommand_execute and cancel_busy_cursor after it.
3686 (timer_check): Remove busy-cursor code.
3687 (Fread_key_sequence, Fread_key_sequence_vector): Start/cancel busy
3688 cursor timer.
3689
3690 * process.c (wait_reading_process_input): Remove busy-cursor code.
3691
3692 * eval.c (Fsignal): Call cancel_busy_cursor instead of
3693 Fx_hide_busy_cursor.
3694
3695 * dispextern.h (Fx_show_busy_cursor, Fx_hide_busy_cursor):
3696 Remove prototyoes.
3697 (start_busy_cursor, cancel_busy_cursor): Add prototypes.
3698
3699 * lisp.h (Fx_hide_busy_cursor): Remove prototype.
3700
3701 * xterm.c (XTread_socket): Remove busy-cursor code.
3702
4eb8436f
GM
3703 * dispnew.c (flush_stdout) [GLYPH_DEBUG]: New function.
3704 (build_frame_matrix_from_leaf_window): Put code handling
3705 glyph row's not being a slice of a frame row in #if 0.
3706 (sync_window_with_frame_matrix_rows): New function.
3707 (frame_row_to_window): New function.
3708 (mirror_line_dance): Handle copies between windows.
3709
3cb65b0e
GM
3710 * lread.c (Fload): Use `xfree' instead of `free'.
3711 (init_obarray): Use `xmalloc' instead of `malloc'.
3712
bed0c171
GM
3713 * window.c (Fset_window_buffer): Set WINDOW to the window
3714 after decoding.
2add4349
GM
3715 (coordinates_in_window): Take frame's internal border width
3716 into account.
bed0c171 3717
42088c12
GM
37182000-02-24 Gerd Moellmann <gerd@gnu.org>
3719
3720 * xterm.c (x_display_and_set_cursor): Display cursor of
3721 non-selected windows depending on the setting of
3722 cursor_in_non_selected_windows.
3723
3724 * xdisp.c (cursor_in_non_selected_windows): New variable.
3725 (syms_of_xdisp): DEFVAR_BOOL it.
3726
d1e103b2
GM
37272000-02-23 Gerd Moellmann <gerd@gnu.org>
3728
723e779c
GM
3729 * data.c (Fstring_to_number): If number is greater than what
3730 fits into an integer, return a float.
3731
d1e103b2
GM
3732 * eval.c (specbind): Remove references to
3733 keyword_symbols_constant_flag.
3734
3735 * data.c (keyword_symbols_constant_flag): Removed.
3736 (Fmakunbound, set_internal, syms_of_data): Remove references to
3737 keyword_symbols_constant_flag.
3738
3739 * bytecode.c (Fbyte_code): Remove keyword_symbols_constant_flag.
3740
214f877f
KH
37412000-02-23 Kenichi Handa <handa@etl.go.jp>
3742
3743 * syntax.c (multibyte_syntax_as_symbol): New variable.
3744 (syms_of_syntax): Declare it as a Lisp variable.
3745 (SYNTAX_WITH_MULTIBYTE_CHECK): New macro.
3746 (scan_lists): If both sexpflag and multibyte_syntax_as_symbol are
3747 nonzero, treat all multibyte characters as symbol.
42088c12 3748 (init_syntax_once): Give syntax `word' to all multibyte
214f877f
KH
3749 characters.
3750
130adcb7
EZ
37512000-02-22 Eli Zaretskii <eliz@is.elta.co.il>
3752
3cb65b0e 3753 * frame.c (Fdelete_frame): Don't let echo_area_window remain on
d7d0dac0 3754 a deleted frame.
130adcb7 3755
17cbbf95
GM
37562000-02-21 Gerd Moellmann <gerd@gnu.org>
3757
3758 * frame.c (Fmouse_position): GCPRO retval instead of x and y.
3759
3760 * xfns.c (x_window_to_frame, x_any_window_to_frame)
3761 (x_non_menubar_window_to_frame): Check the busy-cursor window.
3762
beb0bc36
DL
37632000-02-21 Dave Love <fx@gnu.org>
3764
3765 * frame.c (Vmouse_position_function): New variable.
3766 (Fmouse_position): Use it.
3767 (syms_of_frame): Install it.
3768
3769 * charset.c (find_charset_in_str): Fix use of `c' instead of `c1'.
3770
1d92afcd
GM
37712000-02-20 Gerd Moellmann <gerd@gnu.org>
3772
3773 * fileio.c (Finsert_file_contents): Unbind the binding of
3774 standard-output done by temp_output_buffer_setup.
329eed9f
GM
3775
3776 * eval.c (funcall_lambda): Don't bind Qmocklisp_arguments unless
3777 Vmocklisp_arguments is nil. Inline Fcar and Fcdr.
3778 (specbind, unbind_to): Handle most common case of non-constant
3779 symbol with trivial value specially.
3780
3781 * bytecode.c (Fbyte_code) <Bvarset>: Inline most common case.
3782
2d06696f
RS
37832000-02-20 Richard M. Stallman <rms@caffeine.ai.mit.edu>
3784
3785 * data.c (Fmake_variable_buffer_local): Doc fix.
3786 Init found_for_buffer to 0.
3787 (Fmake_variable_frame_local): If the variable has already
3788 been buffer-local, set the check_frame field.
3789
1d4311c3
EZ
37902000-02-20 Eli Zaretskii <eliz@is.elta.co.il>
3791
3792 * msdos.c (IT_write_glyphs): Allocate a larger screen_buf as data
3793 produced for CODING_MODE_LAST_BLOCK requires.
3794
2dc95ddd
DL
37952000-02-18 Dave Love <fx@gnu.org>
3796
3797 * keyboard.c (echo_keystrokes): Remove declaration.
3798 (Vecho_keystrokes) New variable.
3799 (read_char, record_menu_key, read_key_sequence): Use it to allow
3800 use of float value.
3801 (syms_of_keyboard): Change Vecho_keystrokes declaration.
3802
3803 * lread.c: Undef feature selection macros before defining.
3804
f0930f35
GM
38052000-02-18 Gerd Moellmann <gerd@gnu.org>
3806
3807 * data.c (let_shadows_buffer_binding_p): Ignore specbindings
3808 for symbols other than the symbol in question.
3809
e3d4de90
DL
38102000-02-17 Dave Love <fx@gnu.org>
3811
3812 * s/sol2.h (C_DEBUG_SWITCH): Define to allow optimization.
3813
0b378936
GM
38142000-02-17 Gerd Moellmann <gerd@gnu.org>
3815
d621caf7
GM
3816 * emacs.c (main): Use #if GC_MARK_STACK instead of #ifdef.
3817
0b378936
GM
3818 * alloc.c (enum mem_type): Compile unconditionally.
3819
3b451f74
EZ
38202000-02-17 Eli Zaretskii <eliz@is.elta.co.il>
3821
3822 * xfaces.c (tty_defined_color): Don't return faulire indication
3823 for unspecified-fg and unspecified-bg pseudo-colors.
3824
10689a01
GM
38252000-02-17 Gerd Moellmann <gerd@gnu.org>
3826
1216f5e4
GM
3827 * alloc.c (mark_object): Don't mark symbol names in pure space.
3828 (gc_sweep): Don't unmark symbol names in pure space.
3829
3830 * lisp.h (GC_USE_GCPROS_AS_BEFORE, GC_MAKE_GCPROS_NOOPS)
3831 (GC_MARK_STACK_CHECK_GCPROS, GC_USE_GCPROS_CHECK_ZOMBIES)
3832 [GC_MARK_STACK]: New defines.
427ec082 3833 (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5, UNGCPRO)
1216f5e4
GM
3834 [GC_MARK_STACK == GC_MAKE_GCPROS_NOOPS]: Define as no-ops.
3835
3836 * emacs.c (main) [GC_MARK_STACK]: Initialize stack_base.
3837
3838 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use
3839 allocate_buffer instead of xmalloc.
3840
3841 * alloc.c (toplevel): Include setjmp.h.
3842 (PURE_POINTER_P): New define.
3843 (enum mem_type) [GC_MARK_STACK]: New enumeration.
3844 (Vdead) [GC_MARK_STACK]: New variable.
3845 (lisp_malloc): Add parameter TYPE, call mem_insert if
3846 GC_MARK_STACK is defined.
3847 (allocate_buffer): New function.
427ec082 3848 (lisp_free) [GC_MARK_STACK]: Call mem_delete.
1216f5e4
GM
3849 (free_float) [GC_MARK_STACK]: Set type to Vdead.
3850 (free_cons) [GC_MARK_STACK]: Set car to Vdead.
3851 (stack_base, mem_root, mem_z) [GC_MARK_STACK]: New variables.
3852 (MEM_NIL) [GC_MARK_STACK]: New define.
3853 (struct mem_node) [GC_MARK_STACK]: New structure.
3854 (mem_init, mem_find, mem_insert, mem_delete, mem_insert_fixup)
3855 (mem_delete_fixup, mem_rotate_left, mem_rotate_right)
3856 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
3857 (live_misc_p, live_vector_p, live_buffer_p, mark_memory)
3858 (mark_stack) [GC_MARK_STACK]: New functions.
3859 (Fgarbage_collect) [GC_MARK_STACK]: Call mark_stack.
3860 (clear_marks): Removed.
3861 (gc_sweep): Set free conses' car, free floats' type, free
3862 symbols' function to Vdead. Use lisp_free to free buffers.
3863 (init_alloc_once): Initialize Vdead.
3864 (survives_gc_p): Return non-zero for pure objects.
3865
3866 * alloc.c: Add comments throughout the file.
3867
2503c8b1
GM
3868 * atimer.c (stop_other_atimers): Don't call cancel_atimer because
3869 that unblocks alarms.
3870
8389e1e2
GM
3871 * alloc.c, bytecode.c, data.c, dispnew.c, ecrt0.c, editfns.c,
3872 emacs.c, floatfns.c, fns.c, lread.c, print.c, config.in, lisp.h,
3873 Makefile.in: Remove `LISP_FLOAT_TYPE' and `standalone'.
3874
10689a01 3875 * frame.c (make_frame): Set frame initiallly to `garbaged'.
427ec082 3876
bfc17d18
KH
38772000-02-17 Kenichi Handa <handa@etl.go.jp>
3878
4a09dee0
KH
3879 * xdisp.c (decode_mode_spec_coding): Delete superfluous code to
3880 avoid infinite error signaling. Allocate sufficient memory for
3881 eol_str in the case that eoltype is Lisp_Int.
bfc17d18 3882
2b927d02
SM
38832000-02-17 Stefan Monnier <monnier@cs.yale.edu>
3884
3885 * syntax.c (Fforward_comment): Undo the previous change, since cc-mode
3886 depends on the previous behavior.
3887
b49cb764
GM
38882000-02-16 Gerd Moellmann <gerd@gnu.org>
3889
3890 * sysdep.c (vfork) [!HAVE_VFORK]: Removed.
3891
99e95407
GM
38922000-02-15 Gerd Moellmann <gerd@gnu.org>
3893
3894 * s/freebsd.h (BROKEN_PTY_READ_AFTER_EAGAIN): Define.
3895
3896 * process.c (send_process) [BROKEN_PTY_READ_AFTER_EAGAIN]:
b49cb764 3897 Workaround for FreeBSD bug. Clear output queue after EAGAIN in
99e95407
GM
3898 write(2).
3899
6ffd3cf7
RS
39002000-02-15 Richard M. Stallman <rms@gnu.org>
3901
3902 * data.c (set_internal): Don't make variable buffer-local
3903 if within a let-binding for the same buffer.
3904 (let_shadows_buffer_binding_p): New function.
3905
3906 * eval.c (specbind): For buffer-local value,
3907 record the current buffer also.
3908 (unbind_to): Cope with that change.
3909
cad53475
GM
39102000-02-15 Gerd Moellmann <gerd@gnu.org>
3911
3912 * window.c (Fsave_window_excursion): Doc fix.
3913
1aa963c8
SM
39142000-02-15 Stefan Monnier <monnier@cs.yale.edu>
3915
3916 * syntax.c (back_comment): Make sure we only consider comment-starters
3917 of the relevant style and return -1 in case of a failure to find the
3918 beginning of the comment.
3919 (Fforward_comment): If back_comment fails, go back to the position just
3920 after the comment-end.
3921 (scan_lists): Add comment describing a very minor bug.
3922
b9b84fd3
SM
39232000-02-14 Stefan Monnier <monnier@cs.yale.edu>
3924
3925 * minibuf.c (Ftry_completion, Fall_completions): Add a reference to
3926 `completion-regexp-list' in the docstring.
3927
3a28db80
DL
39282000-02-14 Dave Love <fx@gnu.org>
3929
3930 * xfaces.c (tty_defined_color): Declare color_idx unsigned long.
3931
fb4a568d
SM
39322000-02-14 Stefan Monnier <monnier@cs.yale.edu>
3933
3934 * regex.h (RE_SYNTAX_EMACS): Add RE_CHAR_CLASSES and RE_INTERVALS
3935 to Emacs' syntax. Also fix the comment about set/not-set meanings
3936 since Emacs syntax is not the value 0 any more.
3937 * search.c (compile_pattern_1): Remove RE_CHAR_CLASSES from the syntax
3938 since it's now part of RE_SYNTAX_EMACS.
3939
1063ebb5
DL
39402000-02-12 Dave Love <fx@gnu.org>
3941
3942 * frame.h (SELECTED_FRAME): Use NULL, not 0 to avoid warnings on
3943 Alpha.
3944
fb07a302
GM
39452000-02-12 Gerd Moellmann <gerd@gnu.org>
3946
3947 * xdisp.c (syms_of_xdisp): Doc fix for scroll-conservatively.
3948
aaf2320c
DL
39492000-02-12 Dave Love <fx@gnu.org>
3950
3951 * s/aix3-2.h, s/osf-1.h: Define C_DEBUG_SWITCH for non-gcc.
3952
3953 * s/ux4800.h, s/umips.h, s/umax.h, s/sol2.h, s/sco5.h, s/rtu.h:
fb07a302
GM
3954 * s/ptx4.h, s/umax.h, s/dgux.h, s/bsd4-2.h, s/bsd4-3.h:
3955 * s/hpux.h: Don't define HAVE_VFORK.
aaf2320c
DL
3956
3957 * s/gnu-linux.h: Don't define HAVE_VFORK or HAVE_SYS_SIGLIST.
3958
3959 * s/nextstep.h: Don't define HAVE_ALLOCA.
3960
3961 * config.in: Add vfork bits.
3962
eedf8bde
GM
39632000-02-12 Gerd Moellmann <gerd@gnu.org>
3964
3965 * process.c (Fopen_network_stream) [POLL_FOR_INPUT]: Register
3966 unwind function to undo the effect of stopping atimers.
3967
3968 * keyboard.c (bind_polling_period): Stop all timers except
3969 poll_timer.
3970
3971 * atimer.c (stopped_atimers): New variable.
3972 (stop_other_atimers, run_all_atimers, unwind_stop_other_atimers):
3973 New functions.
3974
3975 * atimer.h (stop_other_atimers, run_all_atimers)
3976 (unwind_stop_other_atimers): Add function prototypes.
427ec082 3977
eedf8bde
GM
3978 * s/hpux10.h (HAVE_XRMSETDATABASE): Define if not already defined.
3979
8476c2f8
KR
39802000-02-11 Ken Raeburn <raeburn@gnu.org>
3981
3982 * Makefile.in (LIBX): Link in tiff library before jpeg, since tiff
3983 library may depend on jpeg.
3984 (atimer.o): Depends on atimer.c.
3985
0e85e4a3
KH
39862000-02-11 Kenichi Handa <handa@etl.go.jp>
3987
3988 * insdel.c (del_range_1): Call update_compositions.
3989 (del_range_both): Call update_compositions just once..
3990
97fa0cc8
DL
39912000-02-10 Dave Love <fx@gnu.org>
3992
3993 * xfns.c (create_frame_xic): Fix initialization of automatic
3994 aggregates for pcc.
3995
25566a3c
KH
39962000-02-09 Kenichi Handa <handa@etl.go.jp>
3997
3998 * ccl.c (CCL_MAKE_CHAR): New macro.
3999 (ccl_driver) <CCL_TranslateCharacter>: Check the validity of
4000 registers by CCL_MAKE_CHAR before calling translate_char.
4001 <CCL_TranslateCharacterConstTbl> Likewise.
4002
69da54ba
DL
40032000-02-08 Dave Love <fx@gnu.org>
4004
4005 * lread.c (__EXTENSIONS__): Define.
4006
f7136ee8
GM
40072000-02-08 Gerd Moellmann <gerd@gnu.org>
4008
4009 * puresize.h (BASE_PURESIZE): Increase to 650000.
4010
7768790b
EZ
40112000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
4012
4013 * msdos.c (XMenuActivate): Turn off the cursor after displaying
4014 the help message.
4015
38fd211b
EZ
40162000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
4017
4018 * s/msdos.h (INTERNAL_TERMINAL): Add capabilities se, so, us, ue,
4019 md, mh, mb, mr, and me to the fake termcap entry.
4020
66e4690f
KR
40212000-02-06 Ken Raeburn <raeburn@gnu.org>
4022
4023 * sound.c (sound_cleanup): Don't call device close routine if the
4024 function pointer is null.
4025
a75dfea0
AI
40262000-02-06 Andrew Innes <andrewi@gnu.org>
4027
4028 * dispextern.h: Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM,
4029 around image definitions and prototypes.
4030 (gamma_correct) [WINDOWSNT]: New prototype.
4031
4032 * w32term.c (x_make_frame_visible): Replace call to
4033 input_poll_signal with poll_for_input.
4034
4035 * window.c [WINDOWSNT]: Include w32term.h.
4036
4037 * xdisp.c [WINDOWSNT]: Include w32term.h.
4038
4039 * makefile.nt: Add dependencies on w32gui.h.
4040 (OBJ1): Include atimer.obj.
4041 ($(BLD)\atimer.obj): New dependency rule.
4042
4043 * w32.c (sigmask): New function (does nothing).
4044 (sigunblock): Ditto.
4045
4046 * frame.c [WINDOWSNT]: Include w32term.h.
4047
4048 * w32gui.h (struct W32FontStruct): Add ascent and descent slots.
4049
4050 * lread.c (syms_of_lread): Fix literal newlines.
4051
4052 * emacs.c (USAGE): Split into USAGE1 and USAGE2, to work-around
4053 the string constant limit (2048 bytes) in MSVC.
4054 (main): Ditto.
4055
59ddecde
GM
40562000-02-05 INOUE Seiichiro <inoue@ainet.or.jp>
4057
4058 * xterm.c (x_display_and_set_cursor) [HAVE_X_I18N]: Set pre-edit
4059 area.
4060 (x_display_cursor) [HAVE_X_I18N]: Don't set it here.
4061 (XTread_socket) [HAVE_X_I18N]: <KeyPress, KeyRelease>: Don't
4062 dispatch the event.
4063
07590973
DL
40642000-02-04 Dave Love <fx@gnu.org>
4065
4066 * fileio.c: Remove some unused vars.
4067 (_GNU_SOURCE): Define (for euidaccess).
4068
4069 * lread.c (_XOPEN_SOURCE): Declare (for ftello).
4070
4071 * minibuf.c (read_minibuf_noninteractive): Remove undeclared
4072 gcpro1, gcpro2.
4073 (read_minibuf): Deal with allow_props correctly.
4074
649351f9
EZ
40752000-02-03 Eli Zaretskii <eliz@is.elta.co.il>
4076
4077 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Enlarge to 60000.
4078
66e4690f 40792000-02-03 Ken Raeburn <raeburn@gnu.org>
f1b9c7c1
KR
4080
4081 * search.c (compile_pattern): If a cache entry has a nil regexp,
4082 fill in that entry instead of clobbering a previously cached
4083 string regexp.
4084
66e4690f 40852000-02-02 Ken Raeburn <raeburn@gnu.org>
15c9cf81
KR
4086
4087 * puresize.h (BASE_PURESIZE): Increase to 610000.
4088
d240a249
GM
40892000-02-02 Gerd Moellmann <gerd@gnu.org>
4090
4091 * frame.c (Fframe_parameters): Add GCPRO because tty_color_name
4092 can GC.
4093
ca91fb26
KH
40942000-02-02 Kenichi Handa <handa@etl.go.jp>
4095
25660570
KH
4096 * ccl.c (ccl_driver) <CCL_WriteExprRegister>: Set jump_address
4097 instead of incrementing ic directly.
4098 <CCL_WriteExprConst> Likewise.
4099 <ccl_set_expr>: Set ic to jump_address.
4100
ca91fb26
KH
4101 * fileio.c (e_write): Fix the handling of
4102 CODING_FINISH_INSUFFICIENT_SRC.
4103
2ede9689
DL
41042000-02-01 Dave Love <fx@gnu.org>
4105
4106 * editfns.c (Fpropertize): Doc fix.
4107
4108 * process.c (Fstart_process): Doc fix.
4109
4110 * eval.c: Fix various doc strings not to duplicate information
4111 from help-manyarg-func-alist.
4112
4113 * window.c (Fset_window_margins): Don't make interactive. Doc
4114 fix.
4115
4116 * doc.c (Vhelp_manyarg_func_alist): New variable.
4117 (Fdocumentation): Use it.
4118 (syms_of_doc): Define it.
4119
b6680a0e
GM
41202000-01-31 Gerd Moellmann <gerd@gnu.org>
4121
2cb750ba
GM
4122 * xterm.c (xim_open_dpy): Remove unused local variable.
4123
74e9213b
GM
4124 * emacs.c (USAGE): Use term `display options' instead of `X
4125 options'.
4126
4127 * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: New function.
4128 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
4129
b6680a0e
GM
4130 * fns.c (sweep_weak_table): New function.
4131 (sweep_weak_hash_tables): Use it. Keep on marking until there
4132 is no more change.
4133
994c5afe
GM
41342000-01-30 Gerd Moellmann <gerd@gnu.org>
4135
4136 * xterm.c (x_delete_display): Update next_noop_dpyinfo to ensure
4137 that XTread_socket does not crash by trying to call XNoOp on a
4138 closed display.
427ec082 4139
f00276e3
JR
41402000-01-30 Jason Rumney <jasonr@gnu.org>
4141
4142 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
4143 Change selected_frame to SELECTED_FRAME ().
4144 (w32_console_mouse_position): Remove #ifndef MULE from around
4145 `insist' parameter.
4146
4147 * makefile.nt: Remove dosfns.obj.
4148
4149 * term.c (term_init) [WINDOWSNT]: Initialize TN_max_colors.
4150
4151 * w32fns.c (w32_defined_color): Check for valid frame before
4152 applying gamma correction. Eliminate dependency on frame elsewhere.
4153 (w32_load_system_font): Switch FIXED_PITCH and VARIABLE_PITCH.
4154 (w32_to_x_font): Use resx and resy not height_in and width_in.
4155 (x_to_w32_font): Doc fix.
4156 (xlfd_strip_height): New function to strip and return font height.
4157 (w32_font_match): Compare height separately from rest of xlfd
4158 spec, using xlfd_strip_height.
4159
4160 * w32term.c (w32_term_init): Swap resx and height_in, resy and
4161 width_in. Use w32_defined_color in place of defined_color.
4162
4163 * w32faces.c: Merge more of DOS and X specifics in preparation for
4164 merge with xfaces.c.
4165 (defined_color): Remove FIXME comment.
4166 (tty_color_name): Provide w32-specific function.
4167 (realize_tty_face): Handle FACE_TTY_DEFAULT*_COLOR specially.
4168
4169 * w32console.c (turn_on_face, turn_off_face): Removed.
4170 (w32_face_attributes): New function.
4171 (Global_variables): Reduce scope where possible.
4172 (clear_frame, ins_del_lines, scroll_line): Use char_attr_normal as
4173 fill attribute.
4174 (hl_mode): Don't modify text attributes.
4175 (write_glyphs): Don't do anything if len <= 0. Use
4176 w32_face_attributes to get attributes for drawing. Write
4177 terminating codes using char_attr_normal.
4178 (reset_terminal_modes, set_terminal_modes): Turn off highlight.
4179 (update_begin, update_end): Likewise.
4180 (vga_stdcolor_name): New function.
4181 (initialize_w32_display): Remove char_attr_reverse and char_attr.
4182 (Fset_screen_color): Remove char_attr_reverse.
4183
b08e8bb2
GM
41842000-01-29 Gerd Moellmann <gerd@gnu.org>
4185
4186 * xfns.c (xic_set_preeditarea): Take window parameter and
4187 window-relative pixel-positions.
4188
4189 * xterm.c (x_display_cursor): Set XIC pre-edit area only if window
4190 is its frame's selected window.
4191 (xim_instantiate_callback): Likewise.
4192
4193 * xfns.c (x_create_im): Removed.
4194 (DEFAULT_STYLE, DEFAULT_FONT): Removed.
4195 (supported_xim_styles): Renamed from supported_styles.
4196 (best_xim_style): Renamed from best_style.
4197 (create_frame_xic): Renamed from xic_create_frame.
4198 (free_frame_xic): Renamed from xic_destroy_frame.
427ec082 4199
b08e8bb2
GM
42002000-01-29 INOUE Seiichiro <inoue@ainet.or.jp>
4201
4202 * xterm.c (XTread_socket) [HAVE_X_I18N]: If event is for none of
4203 our frames, call XFilterEvent with 2nd parameter `None'.
4204 (XTread_socket) <KeyPress> [HAVE_X_I18N]: Handle XmbLookupString
4205 returning XBufferOverflow.
4206 (XTread_socket) <ConfigureNotify> [HAVE_X_I18N]: Set XIC status
4207 area.
4208 (x_display_cursor) [HAVE_X_I18N]: Set XIC pre-edit area.
4209 (x_new_fontset) [HAVE_X_I18N]: Create XIC status area fontset.
4210 (xim_destroy_callback, xim_open_dpy, xim_instantiate_callback)
4211 (xim_initialize, xim_close)
4212 [HAVE_X_I18N && HAVE_X11R6]: New functions.
4213 (x_destroy_window) [HAVE_X_I18N]: Call xic_destroy_frame.
4214 (x_term_init) [HAVE_X_I18N]: Call xim_initialize.
4215 (x_delete_display) [HAVE_X_I18N]: Call xim_close.
4216
4217 * xterm.h (struct x_display_info) [HAVE_X_I18N]: Add members `xim'
4218 and `xim_styles'.
4219 (struct x_output) [HAVE_X_I18N]: Remove member `xim', add
4220 `xic_style' and `xic_xfs'.
4221 (FRAME_MENUBAR_HEIGHT, FRAME_X_XIM, FRAME_X_XIM_STYLES)
4222 (FRAME_XIC_STYLE, FRAME_XIC_FONTSET): New macros.
4223 (FRAME_XIM): Removed.
4224
4225 * xfns.c (supported_styles): New variable.
4226 (DEFAULT_STYLE, DEFAULT_FONT): New macros
4227 (xic_create_xfontset, best_style, xic_create_frame)
4228 (xic_destroy_frame, xic_set_preeditarea, xic_set_statusarea)
4229 (xic_set_xfontset): New functions.
4230
142e109c
DL
42312000-01-28 Dave Love <fx@gnu.org>
4232
4233 * s/irix6-5.h: Revert last change after change to irix5-0.h.
4234
4235 * m/iris4d.h (C_SWITCH_MACHINE): Don't use -G0.
4236
b02786f9
GM
42372000-01-28 Gerd Moellmann <gerd@gnu.org>
4238
d060bc9f
GM
4239 * buffer.c (Fother_buffer): Don't call Fset_buffer_major_mode
4240 for *scratch* if it already existed.
4241
b02786f9
GM
4242 * emacs.c (USAGE): New macro.
4243 (main): Use it to display usage information.
4244
2c52d7e4
EZ
42452000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
4246
4247 Support for the menu-help feature:
4248
4249 * msdos.h: Change prototypes of XMenuAddSelection and
4250 XMenuActivate.
4251
4252 * msdos.c (IT_clear_end_of_line): Print the extent of the cleared
4253 part of the line to the termscript file.
4254 (IT_clear_to_end): Clear the entire line, not just its beginning.
4255 (menu_help_message, prev_menu_help_message): New variables.
4256 (IT_menu_make_room): Make room for the help_text member.
4257 (IT_menu_display): New argument disp_help; all callers changed.
4258 If disp_help is non-zero, store the help text of the active menu
4259 item in menu_help_message.
4260 (XMenuAddPane): Initialize the help_text member to NULL.
4261 (XMenuAddSelection): New argument help_text. Store it in the
4262 XMenu structure.
4263 (XMenuActivate): New argument help_callback. If the value of
4264 menu_help_message has changed since the last time, display the
4265 menu help message text while waiting for the mouse to move. Clear
4266 the echo area before exiting.
4267 (XMenuDestroy): Free the help_text member.
4268
ffe0bcd1
GM
42692000-01-27 Gerd Moellmann <gerd@gnu.org>
4270
4271 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT]: Pass help to
4272 XMenuAddSelection. Pass help callback to XMenuActivate.
4273 (menu_help_callback) [!USE_X_TOOLKIT]: New function.
4274
50dbd23f
EZ
42752000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
4276
4277 * atimer.c (start_atimer) [!HAVE_SETITIMER]: Use EMACS_SET_SECS
4278 and EMACS_SET_USECS.
4279
f5941bf8
GM
42802000-01-26 Dave Love <fx@gnu.org>
4281
6c67ddee
DL
4282 * editfns.c (Fchar_after, Fchar_before): Doc fix.
4283
f5941bf8
GM
4284 * bytecode.c (Fbyte_code): Use {BEFORE,AFTER}_POTENTIAL_GC where
4285 an error may be signalled.
4286
9e49c990
GM
42872000-01-26 Gerd Moellmann <gerd@gnu.org>
4288
fc3cb460
GM
4289 * s/irix6-5.h [__GNUC__ && __GNUC_MINOR__ >= 95]: Undef
4290 LD_SWITCH_SYSTEM inherited from irix5-0.h.
4291
9e49c990
GM
4292 * bytecode.c (Fbyte_code) [BYTE_CODE_SAFE]: Fix typo.
4293
d0c037d8
GM
42942000-01-25 Gerd Moellmann <gerd@gnu.org>
4295
4296 * charset.c (Fstring): If there is a multibyte char among
4297 the args, always return a multibyte string.
4298
e12489f9
GM
42992000-01-25 Gerd Moellmann <gerd@gnu.org>
4300
4301 * sysdep.c (sys_select): Turn atimers off and on instead of
4302 recording and restoring old alarm handler
4303
4304 * process.c (toplevel): Include atimer.h.
4305 (create_process_1): Rewritten.
4306 (create_process): Use atimers instead of alarm.
4307 (wait_reading_process_input) [hpux]: Turn atimers off instead
4308 of turning off SIGALRM.
4309 (wait_reading_process_input): Turn off atimers instead off
4310 calling stop_polling.
4311
4312 * emacs.c (main): Call init_atimer.
4313
4314 * keyboard.c (toplevel): Include systime.h and atimer.h.
4315 (polling_for_input): Removed because unused.
4316 (input_poll_signal) [POLL_FOR_INPUT]: Removed.
4317 (poll_timer): New variable.
4318 (poll_for_input, poll_for_input_1): New functions.
4319 (start_polling, stop_polling): Rewritten.
4320
4321 * keyboard.h (polling_for_input): Removed.
427ec082 4322
e12489f9
GM
4323 * atimer.h, atimer.c: New files.
4324
4325 * Makefile.in (obj): Add atimer.o.
4326 (atimer.o): New target.
4327
4328 * blockinput.h (pending_atimers): Add extern declaration.
4329 (UNBLOCK_INPUT): Rewritten. Handle pending atimers.
4330
4331 * lisp.h (popup_activated_flag): Add extern declaration.
4332
4333 * xmenu.c (popup_activated_flag): Make externally visible.
4334 (popup_activate_callback) [USE_MOTIF]: Increment
4335 popup_activated_flag.
4336 (popup_deactivate_callback) [USE_MOTIF]: Decrement it.
4337
4338 * xterm.c (toplevel): Include atimer.h.
4339 (toolkit_scroll_bar_interaction): New variable.
4340 (Fxt_process_timeouts): Removed.
4341 (x_process_timeouts): New function.
4342 (xt_action_hook): Clear toolkit_scroll_bar_interaction.
4343 (x_send_scroll_bar_event): Set toolkit_scroll_bar_interaction.
4344 (x_make_frame_visible): Call poll_for_input_1 instead of
4345 input_poll_signal. Don't call alarm.
4346 (x_initialize): Install timer calling x_process_timeouts.
427ec082 4347
1e5279b9
DL
43482000-01-24 Dave Love <fx@gnu.org>
4349
6c67ddee 4350 * s/irix5-0.h: Don't set LD_SWITCH_SYSTEM -- we use unexelf now.
1e5279b9
DL
4351 Don't use -cckr -- apparently not now necessary.
4352
edf6aeb8
EZ
43532000-01-24 Eli Zaretskii <eliz@is.elta.co.il>
4354
4355 * msdos.c (IT_menu_display): Truncate long menu lines at the right
4356 screen boundary.
4357
9badad41
JR
43582000-01-23 Jason Rumney <jasonr@gnu.org>
4359
4360 * w32fns.c (w32_defined_color): Apply gamma correction before
4361 trying to map to the palette.
4362 (w32_wnd_proc) [WM_ERASE_BACKGROUND]: Pass device context of frame
4363 to w32_clear_rect.
4364
4365 * w32term.c (w32_fill_rect): Do not try to deal with NULL hdc
4366 here. Callers changed to always pass real device context.
4367 (w32_draw_bitmap): Likewise.
4368 (w32_get_glyph_overhangs): Likewise.
4369 (w32_draw_box_rect): Make use of s->hdc rather than getting a new
4370 one.
4371 (w32_set_vertical_scroll_bar): Pass correct HWND parameters to
4372 pfnSetScrollInfo and SetScrollRange.
4373 (x_get_char_face_and_encoding): Don't turn iso8859-1 characters
4374 back into MULE characters after decoding them.
4375 (x_get_glyph_face_and_encoding): Likewise.
4376 (w32_per_char_metric): Use GetCharExtentPoint32W as fallback when
4377 GetCharABCWidthsW fails, since this is defined on Windows 9x.
4378 (x_produce_glyphs): Calculate per char metrics for a character
4379 that we know exists in default font when font_not_found_p is true.
4380
63bd786b
JR
43812000-01-22 Jason Rumney <jasonr@gnu.org>
4382
4383 * makefile.nt (intervals.obj, composite.obj): New modules.
4384 (composite.h): Added as dependency where appropriate.
4385
4386 * w32gui.h (XGCValue): New struct for emulating X GCs.
4387
4388 * w32term.h (XCharStruct): New struct for emulating X.
4389
4390 * w32console.c (turn_on_face, turn_off_face): New functions.
4391 (change_line_highlight): New prototype for new redisplay.
4392 (write_glyphs): Support multibyte text. Support faces.
4393
4394 * w32faces.c: Complete rewrite for new redisplay based on new
4395 xfaces.c.
4396
4397 * w32fns.c: Use SELECTED_FRAME macro in place of selected_frame
4398 throughout. struct frame * in place of FRAME_PTR.
4399 Skeleton support for images, toolbars, tooltips from xfns.c.
4400 (Fx_create_frame): Use system default for default scroll bar
4401 width.
4402 (w32_get_arg): Renamed from x_get_arg.
4403 (Fx_file_dialog): New function.
4404 (w32_list_fonts): Check cache before asking system.
4405 (Vw32_enable_synthesized_fonts): New variable.
4406 (Vw32_enable_italics): Obsolete, removed.
4407
4408 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
4409 Use SELECTED_FRAME macro.
4410
4411 * w32menu.c: Add skeleton support for help strings on menus.
4412 (add_menu_item): Native checkbox and radio support added, but not
4413 yet enabled due to bugs.
4414 (push_menu_item): Add parameters type, selection and help.
4415 Callers updated.
4416 Formatting changes to reduce unnecessary diffs with xmenu.c.
4417
4418 * w32select.c (Fw32_set_clipboard_data): Update call to
4419 find_charset_in_str.
4420
4421 * w32term.c: Complete rewrite for new redisplay based on new
4422 xterm.c with necessary sections merged back in from old w32term.c.
4423
6ffd3cf7 44242000-01-21 Richard M. Stallman <rms@gnu.org>
b50c9214
RS
4425
4426 * data.c (set_internal): Further fix in same criterion.
4427
6ffd3cf7 44282000-01-20 Richard M. Stallman <rms@gnu.org>
8cc95642
RS
4429
4430 * data.c (set_internal): Fix the criteria for whether
4431 to swap out the old cached binding.
4432
60af03f1
DL
44332000-01-19 Dave Love <fx@gnu.org>
4434
4435 * lread.c: (syms_of_lread) [user-init-file]: Doc change.
4436
f9be074f
KH
44372000-01-18 Kenichi Handa <handa@etl.go.jp>
4438
4439 * regex.c (re_compile_fastmap): While checking a range table for
4440 `charset', skip flag bits for a character class correctly.
4441
52b8dbf9
GM
44422000-01-17 Gerd Moellmann <gerd@gnu.org>
4443
d36100c9
GM
4444 * m/news-risc.h (LD_SWITCH_MACHINE): Define differently for GCC.
4445
52b8dbf9
GM
4446 * xfns.c (x_window): Call lw_create_widget with new parameter
4447 list.
4448
4449 * widget.c (EmacsFrameSetCharSize): Change size of children first
4450 because of problems with main window geometry management under
4451 Lesstif.
4452
4453 * xmenu.c (enum menu_item_idx): New enumeration replacing defines
4454 MENU_ITEMS_ITEM_.*.
4455 (MENU_ITEMS_ITEM_HELP): New enumerator.
4456 (push_menu_item): Add parameter HELP. Record help in menu_items.
4457 (single_menu_item, single_submenu, list_of_items): Call
4458 push_menu_item with new parameter.
4459 (single_submenu): Set help string in widget value.
4460 (menu_highlight_callback): New function.
4461 (set_frame_menubar): Call lw_create_widget with new
4462 parameter list.
4463 (xmenu_show, xdialog_show): Ditto.
4464
3139018f
GM
44652000-01-13 Gerd Moellmann <gerd@gnu.org>
4466
4467 * sound.c (Fplay_sound): Improve doc string.
4468
83c8f461
RS
44692000-01-11 Richard M. Stallman <rms@gnu.org>
4470
4471 * lisp.h (set_internal): Enter the new arg.
4472
4473 * eval.c (specbind): Record buffer-local variables specially,
4474 indicating which buffer's binding was saved.
4475 (unbind_to): Restore buffer-local variables specially
4476 in the proper buffer.
4477
4478 * data.c (set_internal): New arg BUF.
427ec082 4479
83c8f461
RS
4480 * eval.c (specbind, unbind_to): Pass new arg to set_internal.
4481 * data.c (Fset): Pass new arg to set_internal.
4482 * bytecode.c (Fbyte_code): Pass new arg to set_internal.
427ec082 4483
1fab1775
GM
44842000-01-11 Gerd Moellmann <gerd@gnu.org>
4485
4486 * .gdbinit: Adapt to new strings. Add xbacktrace, xreload,
4487 xprintsym.
4488
83c8f461 44892000-01-11 Richard M. Stallman <rms@gnu.org>
6f59462e
RS
4490
4491 * minibuf.c (Ftry_completion): Doc fix.
4492
7a85e4df
GM
44932000-01-11 Gerd Moellmann <gerd@gnu.org>
4494
4495 * keyboard.c (Fclear_this_command_keys): Clear recent_keys
4496 vector, too.
4497
a970dae4
AS
44982000-01-11 Andreas Schwab <schwab@suse.de>
4499
4500 * coding.c (code_convert_region): Initialize total_skip.
4501
c65d14ee
DL
45022000-01-08 Dave Love <fx@gnu.org>
4503
4504 * eval.c (Fuser_variable_p): Check customizability too.
4505
834938d2
GM
45062000-01-07 Gerd Moellmann <gerd@gnu.org>
4507
4508 * minibuf.c (Fcompleting_read): Doc fix.
4509
e0303cd6
GM
45102000-01-05 Gerd Moellmann <gerd@gnu.org>
4511
8a26744b
GM
4512 * s/freebsd.h (C_SWITCH_SYSTEM): Add -I /usr/local/include and
4513 -L /usr/local/lib.
4514
e0303cd6
GM
4515 * xfns.c (x_create_im): New function to set IM and IC of a frame.
4516 Check that input style is supported before trying to create an
4517 IC for it.
4518 (x_window): Call x_create_im.
427ec082 4519
2e471eb5
GM
45202000-01-04 Gerd Moellmann <gerd@gnu.org>
4521
560a7bd2
GM
4522 * xfns.c (current_gif_memory_src): New variable.
4523 (gif_load): Record the address of the current memory source
4524 in current_gif_memory_src.
4525 (gif_read_from_memory): Use current_gif_memory_src.
4526
f9ee84a3
GM
4527 * systime.h (EMACS_GET_TIME, EMACS_ADD_TIME, EMACS_SUB_TIME): Give
4528 macros statement form.
4529
d1299cde
GM
4530 * sound.c (struct sound): Renamed from struct sound_file.
4531 (struct sound): Add members `data' and `header_size'.
4532 (enum sound_attr): Add SOUND_DATA.
4533 (current_sound, current_sound_device): Variables renamed from
4534 sound_file and sound_device.
4535 (parse_sound): Parse :data.
4536 (parse_sound): Handle sound data in strings.
4537 (find_sound_type): Function renamed from find_sound_file_type.
427ec082 4538 (wav_init, au_init): Fail if sound's header_size is smaller than
d1299cde
GM
4539 needed header size.
4540 (wav_play, au_play): Play sounds from string data.
4541
2e471eb5
GM
4542 * puresize.h (BASE_PURE_SIZE): Increase to 600000.
4543
4544 * lisp.h: Add prototype for allocate_string_data.
4545
4546 * alloc.c (Fgarbage_collect): Return number of live and free
4547 strings.
4548
4549 * alloc.c (mark_buffer): Remove code in #if 0.
4550 (gc_sweep): Ditto.
4551 (UNMARK_BALANCE_INTERVALS): Give the macro statement form.
4552 (strings_consed): New variable.
4553 (allocate_string): Set it.
4554 (syms_of_alloc): Add DEFVAR_INT for strings_consed.
4555 (Fmemory_use_counts): Return strings_consed. Use Flist.
4556
4557 * alloc.c: General cleanup in comments etc. Remove conditional
4558 compilation for `standalone'.
4559
4560 * lisp.h (struct Lisp_String): Make DATA member `unsigned char *'.
4561
4562 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P):
4563 (GC_STRING_BYTES, GC_STRING_CHARS): New macros.
4564 (DONT_COPY_FLAG): Removed.
4565 (SBLOCK_SIZE, LARGE_STRING_BYTES): New macros.
4566 (struct sdata, struct sblock): New
4567 (struct string_block): Rewritten.
4568 (STRINGS_IN_STRING_BLOCK): New macro.
4569 (oldest_sblock, current_sblock, total_strings, total_free_strings)
4570 (large_sblocks, string_blocks, string_free_list): New variables.
4571 (NEXT_FREE_LISP_STRING, SDATA_OF_STRING, SDATA_SIZE): New macros.
4572 (init_strings): Rewritten.
4573 (allocate_string, allocate_string_data, compact_small_strings)
4574 (free_large_strings, sweep_strings): New functions.
4575 (STRING_BLOCK_SIZE, STRING_BLOCK_OUTSIZE)
4576 (struct string_block_head, current_string_block)
4577 (first_string_block, large_string_blocks, STRING_FULLSIZE)
4578 (STRING_PAD): Removed.
4579 (make_uninit_multibyte_string, make_pure_string): Rewritten.
4580 (Fgarbage_collect): Don't set mark bit in large strings.
4581 (mark_object): Mark strings differently. Mark symbol names
4582 differently.
4583 (survives_gc_p): Test marked strings differently.
427ec082 4584 (gc_sweep): Sweep strings differently, unmark strings in
2e471eb5
GM
4585 symbol names.
4586 (compact_strings): Removed.
4587
42608ba8
EZ
45882000-01-04 Eli Zaretskii <eliz@is.elta.co.il>
4589
4590 * xfaces.c (syms_of_xfaces): defsubr Scolor_gray_p and
4591 Scolor_supported_p even if HAVE_X_WINDOWS is not defined.
4592
e0a09e1a
KH
45932000-01-04 Kenichi Handa <handa@etl.go.jp>
4594
dd9f0750 4595 * fileio.c (Finsert_file_contents): Signal error if visiting file
427ec082 4596 in a non-empty buffer.
dd9f0750 4597
3c0f3b15 4598 * term.c (encode_terminal_code): Fix the previous change.
e0a09e1a 4599
44cd3ae5
GM
46002000-01-03 Gerd Moellmann <gerd@gnu.org>
4601
4602 * xfaces.c (syms_of_xfaces): Change Sface_color_gray_p to
4603 Scolor_gray_p, Sface_color_supported_p to Scolor_supported_p.
4604
4605 * s/hpux9.h (NO_EDITRES): Define even if HAVE_LIBXMU.
4606
c182a70f
EZ
46072000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
4608
4609 * xdisp.c (handle_single_display_prop) [HAVE_WINDOW_SYSTEM]: No
4610 need to test for MSDOS frames.
4611
24480d5b
EZ
46122000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
4613
4614 * dosfns.c (unspecified_colors): Remove.
4615 (msdos_stdcolor_idx): Use global variables unspecified_fg and
4616 unspecified_bg.
4617 (msdos_stdcolor_name): Return strings for unspecified fore- and
4618 back-ground colors.
4619
4620 * xfaces.c (Qunspecified_fg, Qunspecified_bg): Remove.
aaf2320c 4621 (syms_of_xfaces): Remove their staticpro's.
24480d5b
EZ
4622 (tty_color_name): Return Lisp strings for unspecified fore- and
4623 back-ground colors.
4624 (Finternal_set_lisp_face_attribute): Remove the special treatment
4625 for Qunspecified_{f,b}g.
4626 (realize_default_face): Replace Qunspecified_{f,b}g with a Lisp
4627 string.
4628
047f434a
GM
46292000-01-03 Gerd Moellmann <gerd@gnu.org>
4630
4631 * xdisp.c (reseat_at_next_visible_line_start): Position before
4632 newline only if ending up on a newline.
4633 (next_element_from_ellipsis): Return success. Handle case of
4634 displaying no ellipsis. Fix case of ellipsis defined in display
4635 table.
4636 (next_element_from_buffer): Return 0 if next_element_from_ellipsis
4637 returns 0.
4638
d684c676
EZ
46392000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
4640
4641 * xfaces.c (Fcolor_gray_p): Renamed from face-color-gray-p.
4642 (Fcolor_supported_p): Renamed from face-color-supported-p.
4643
5fe1d139
EZ
46442000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
4645
4646 * xfaces.c (tty_defined_color): Pass frame to tty-color-desc. The
4647 list of colors renamed to tty-defined-color-alist.
4648 (tty_color_name): Pass the frame to tty-color-by-index.
4649 (realize_tty_face): tty-color-alist is now a function which
4650 accepts the frame as argument.
4651
4652 * term.c (Ftty_display_color_p): Accept an optional argument
4653 FRAME.
4654
816be8b8
EZ
46552000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
4656
4657 * term.c (insert_glyphs): Pass glyph, not &glyph, to
4658 encode_terminal_code.
4659
b635321e
EZ
46602000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
4661
4662 * dispnew.c (mode_line_string): Support termcap frames as well.
4663
9b784e96
GM
46642000-01-01 Gerd Moellmann <gerd@gnu.org>
4665
27189709
GM
4666 * syntax.c (Fforward_word): Undo previous change.
4667
4668 * editfns.c (Fconstrain_to_field): Don't constrain if
4669 inhibit-field-text-motion is non-nil.
4670 (Fline_beginning_position): Undo previous change.
4671 (Fline_end_position): Ditto.
4672
4673 * syntax.c (Fforward_word): Notice field boundaries only if
4674 inhibit-field-text-motion is nil.
4675
4676 * lisp.h: Add extern declaration for Vinhibit_field_text_motion.
4677
4678 * editfns.c (Vinhibit_field_text_motion): New variable.
4679 (inhibit-field-text-motion): New DEFVAR_LISP.
4680 (Fline_beginning_position, Fline_end_position): Notice field
4681 boundaries only if inhibit-field-text-motion is nil.
4682
45158a91
GM
4683 * xfns.c (x_create_x_image_and_pixmap): Remove parameter FILE.
4684 All calls adjusted.
4685 (x_build_heuristic_mask): Likewise.
4686 (xbm_load_image_from_file): Change error output.
4687 (xbm_load, xpm_load, pbm_load, png_load, jpeg_load, tiff_load)
4688 (gif_load, gs_load, x_kill_gs_process): Ditto.
4689
9b784e96
GM
4690 * xfns.c (gif_load): Avoid sign extension and thus out of bounds
4691 color indices when accessing raster pixels.
63cec32f
GM
4692 (gif_image_p, png_image_p, jpeg_image_p, tiff_image_p): Allow only
4693 one of :file or :data.
4694 (enum pbm_keyword_index): Add PBM_DATA.
4695 (pbm_format): Add :data.
4696 (pbm_image_p): Allow either :file or :data.
4697 (pbm_read_file): New function.
4698 (pbm_scan_number): Rewritten to read from string.
4699 (pbm_load): Support :data.
9b784e96 4700
5ad6a5fb
GM
47011999-12-31 Gerd Moellmann <gerd@gnu.org>
4702
4703 * xfns.c: New image functions adapted to Emacs conventions.
4704 (png_load, tiff_load, jpeg_load, gif_load): Always GCPRO local
4705 variable `file'.
4706
63448a4d
WP
47071999-12-31 William M. Perry <wmperry@aventail.com>
4708
4709 * xfns.c (jpeg_format): Added the :data keyword
4710 (jpeg_image_p): JPEG is valid with :file _or_ :data
4711 (jpeg_memory_src): Defined new JPEG image source to read from a
4712 memory buffer.
4713 (jpeg_load): Pay attention to the :data keyword if specified.
4714 Instantiates a jpeg_memory_src instead of jpeg_stdio_src if
4715 found.
4716 (png_format): Added the :data keyword
4717 (png_image_p): PNG is valid with :file _or_ :data
4718 (png_read_from_memory): New PNG read function to read from a
4719 memory buffer.
4720 (png_load): Pay attention to the :data keyword if specified. Uses
4721 png_set_read_fn() instead of png_init_io() if specified.
4722 (tiff_format): Added the :data keyword for TIFF images.
4723 (tiff_image_p): TIFF is valid with :file _or_ :data
4724 (tiff_read_from_memory): Defined new TIFF I/O functions to read
4725 from a memory buffer.
4726 (tiff_load): Pay attention to the :data keyword if specified.
4727 Uses TIFFClientOpen() instead of TIFFOpen() if specified.
4728 (gif_format): Added the :data keyword
4729 (gif_image_p): GIF is valid with :file _or_ :data
4730 (gif_read_from_memory): New GIF input function to read from a
4731 memory buffer.
c65d14ee 4732 (gif_load): Pay attention to the :data keyword. Uses DGifOpen()
63448a4d
WP
4733 instead of DGifOpenFileName() if specified.
4734
c880678e
GM
47351999-12-31 Gerd Moellmann <gerd@gnu.org>
4736
4737 * xdisp.c (next_element_from_buffer): Change assertion at the end
4738 because it doesn't hold when there's an overlay string at the end
4739 from which we deliver an image.
4740
8ccb9a54
EZ
47411999-12-30 Eli Zaretskii <eliz@is.elta.co.il>
4742
4743 * msdos.c (IT_update_begin): Don't dereference members of struct
4744 window for deleted windows.
4745
12ce2351
GM
47461999-12-30 Gerd Moellmann <gerd@gnu.org>
4747
a915c648
GM
4748 * abbrev.c (Fexpand_abbrev): If expanding an abbrev which has only
4749 a hook, and the hook has a non-nil `no-self-insert' property, let
4750 the return value of the hook specify whether an expansion took
4751 place. If it returns nil, no expansion has been performed.
4752
12ce2351
GM
4753 * xterm.c (x_make_frame_visible): Wait for frame becoming visible
4754 differently.
4755
04ee4f45
EZ
47561999-12-30 Eli Zaretskii <eliz@is.elta.co.il>
4757
4758 * msdos.c (IT_write_glyphs): Track last changes to struct glyph.
4759
7f4bc0c3
EZ
47601999-12-29 Eli Zaretskii <eliz@is.elta.co.il>
4761
4762 * dispnew.c (mode_line_string): Support MS-DOS frames.
4763
dac204bc
GM
47641999-12-29 Gerd Moellmann <gerd@gnu.org>
4765
4766 * eval.c (syms_of_eval): Initialize debugger_may_continue.
4767
7b712ad8
KH
47681999-12-29 Kenichi Handa <handa@etl.go.jp>
4769
4770 * process.c (read_process_output): Fix the args CHARPOS and LENINS
4771 to signal_after_change.
4772
adb9900f
EZ
47731999-12-28 Eli Zaretskii <eliz@is.elta.co.il>
4774
41ad069b
EZ
4775 * msdos.c (dos_set_window_size) [__DJGPP__ > 1]: If the frame
4776 dimensions changed, invalidate the mouse highlight info.
4777 (disable_mouse_highlight, help_echo, previous_help_echo): New
4778 variables.
4779 (IT_set_mouse_pointer, show_mouse_face, clear_mouse_face)
4780 (fast_find_position, IT_note_mode_line_highlight)
4781 (IT_note_mouse_highlight): New functions.
4782 (IT_update_begin): If the redisplay affects the window where the
4783 mouse highlight is, clear the highlight. If the frame where the
4784 highlight was displayed was killed, invalidate the highlight
4785 info.
4786 (IT_update_end): Reset the highlight flag. Reset the mouse
4787 highlight-defer flag.
4788 (IT_frame_up_to_date): New function, if mouse highlight was
4789 deferred due to GC, do it now.
4790 (internal_terminal_init): Initialize mouse-highlight related
4791 members of the_only_x_display. Assign IT_frame_up_to_date to
4792 frame_up_to_date_hook.
4793 (dos_rawgetc): If the mouse moved, update mouse highlight. If
4794 help_echo changed value, generate a HELP_EVENT event.
4795 (syms_of_msdos): Staticpro help_echo and previous_help_echo.
4796
adb9900f
EZ
4797 * msdos.h (struct display_info): New.
4798 (struct x_output): Add the display_info member.
4799 (FRAME_X_DISPLAY_INFO): New macro.
4800
481b5054
GM
48011999-12-28 Gerd Moellmann <gerd@gnu.org>
4802
4803 * xdisp.c (try_window_id): Compute BEG_UNCHANGED and END_UNCHANGED
4804 if MODIFF > 1.
6448a6b3 4805 (dump_glyph_row): Adapt to changes in struct glyph.
481b5054
GM
4806
4807 * buffer.c (modify_overlay): Always compute unchanged info.
4808
a2882b0d
KH
48091999-12-27 Kenichi Handa <handa@etl.go.jp>
4810
4811 * dispextern.h (FACE_FROM_ID): Cast the arg ID to `unsigned'.
4812
89ba5b5f
KH
48131999-12-27 Kenichi Handa <handa@etl.go.jp>
4814
4815 The following changes are to use more bits for face IDs.
4816
4817 * lisp.h (GLYPH): Defined as `int', not `unsigned int'. Now the
4818 lowest 8 bits are single byte character code, the bits above are
4819 face ID.
481b5054 4820 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjusted for the change
89ba5b5f 4821 above.
481b5054
GM
4822 (FAST_MAKE_GLYPH, FSST_GLYPH_FACE): Likewise.
4823 (GLYPH_MASK_REV_DIR, GLYPH_MASK_PADDING): Macros deleted.
89ba5b5f
KH
4824
4825 * charset.h (CHAR_BYTES): Use ((1 << CHARACTERBITS) - 1) instead
4826 of GLYPH_MASK_CHAR.
4827
4828 * charset.c (char_bytes): Use ((1 << CHARACTERBITS) - 1) instead
4829 of GLYPH_MASK_CHAR.
4830
4831 * dispextern.h (struct glyph): Make face_id and padding_p the top
4832 level members. Change members in union `u'.
4833 (GLYPH_EQUAL_P): Check also members face_id and padding_p.
4834 (GLYPH_CHAR_AND_FACE_EQUAL_P): New macro.
4835 (SET_CHAR_GLYPH): Adjusted for the change of struct glyph.
4836 (CHAR_GLYPH_PADDING_P): Likewise.
4837 (GLYPH_FROM_CHAR_GLYPH): Likewise. Always return -1 for multibyte
4838 characters.
4839
481b5054 4840 * dispnew.c (line_hash_code, direct_output_for_insert): Adjusted
89ba5b5f
KH
4841 for the change of struct glyph.
4842 (line_draw_cost): Adjusted for the change of
4843 GLYPH_FROM_CHAR_GLYPH.
4844 (count_match): Use macro GLYPH_CHAR_AND_FACE_EQUAL_P.
4845
4846 * term.c (encode_terminal_code): Adjusted for the change of struct
4847 glyph and GLYPH_FROM_CHAR_GLYPH.
481b5054 4848 (write_glyphs, insert_glyphs, append_glyph): Adjusted for the
89ba5b5f
KH
4849 change of struct glyph.
4850
4851 * xdisp.c: All codes adjusted for the change of struct glyph.
4852
4853 * xterm.c: All codes adjusted for the change of struct glyph.
4854
5bcd116c
KH
48551999-12-27 Kenichi Handa <handa@etl.go.jp>
4856
4857 * composite.h (struct composition): Change the order of declaring
4858 members to reduce the byte size of the structure.
4859
f21b06b7
GM
48601999-12-25 Gerd Moellmann <gerd@gnu.org>
4861
4862 * search.c (looking_at_1): Reset immediate_quit before modifying
4863 global data.
4864
e36557c9
KH
48651999-12-24 Kenichi Handa <handa@etl.go.jp>
4866
4867 * process.c (read_process_output): Fix the arg FROM to
4868 update_compositions.
4869
83c8f461 48701999-12-22 Richard M. Stallman <rms@gnu.org>
f7c9e039
RS
4871
4872 * search.c (Freplace_match): For nonliteral replacement in buffer,
4873 construct all the new text first, then insert all at once.
4874
0b863bd9
DL
48751999-12-22 Dave Love <fx@gnu.org>
4876
4877 * xfns.c (Fx_show_tip): Gcpro `timeout' too.
4878
6d8e8ef3
GM
48791999-12-22 Gerd Moellmann <gerd@gnu.org>
4880
28d7281d
GM
4881 * xfns.c (Fx_create_frame): Move x_default_parameter calls that
4882 lead to size changes to after the X window has been created.
4883
e22ef6eb 4884 * xfaces.c (realize_x_face): Don't use uninitialized local
6d8e8ef3
GM
4885 variable in xassert.
4886
8affcced
KH
48871999-12-22 Kenichi Handa <handa@etl.go.jp>
4888
4889 * xfaces.c (face_color_supported_p): Check by tty_defined_color
6d8e8ef3 4890 only when the frame is not for a window system.
8affcced 4891
f2be1146
GM
48921999-12-22 Gerd Moellmann <gerd@gnu.org>
4893
deca1348
GM
4894 * buffer.c (Fset_buffer_multibyte): Arrange for a thorough
4895 redisplay after changing the multibyteness of a buffer.
4896
f2be1146
GM
4897 * xterm.c (XTread_socket): At the beginning of the loop, pass the
4898 frame's X window to XFilterEvent instead of None because that's
4899 the X window for which the IC was created. This makes dead
4900 accents work when the pointer is not in Emacs' frame.
4901 (XTread_socket) <KeyPress>: Don't call XFilterEvent here.
4902
a744a2ec
DL
49031999-12-20 Dave Love <fx@gnu.org>
4904
4905 * xfns.c (Fx_show_tip): Add missing UNGCPRO.
4906
9e6985ed
GM
49071999-12-19 Gerd Moellmann <gerd@gnu.org>
4908
4909 * eval.c (debugger_may_continue): New variable.
4910 (syms_of_eval): Add a DEFVAR_BOOL for it.
4911 (call_debugger): Bind it.
4912
3b620731
EZ
49131999-12-19 Eli Zaretskii <eliz@is.elta.co.il>
4914
4915 * msdos.c (IT_set_face): Don't swap face colors when highlight or
4916 fp->tty_reverse_p is set, unless the computed colors are identical
4917 to frame colors. Print both original and computed colors to
4918 termscript file.
4919 (IT_write_glyphs): Track the changes in handling of composite
4920 characters.
4921 (IT_set_frame_parameters): Don't set frame colors from
4922 unspecified-fg and unspecified-bg pseudo-colors.
4923
0f9a51c4
DL
49241999-12-17 Dave Love <fx@gnu.org>
4925
4926 * data.c (Fkeywordp): New function.
4927 (syms_of_data): Install it.
4928
363e4e42
EZ
49291999-12-16 Eli Zaretskii <eliz@is.elta.co.il>
4930
4931 * xfaces.c (tty_defined_color): Fix last change.
4932
cfad01b4
GM
49331999-12-15 Gerd Moellmann <gerd@gnu.org>
4934
4935 * xdisp.c (redisplay_window) <optional new window start>: Check
4936 that window start is in [BEGV..ZV].
4937
f9d2fdc4
EZ
49381999-12-15 Eli Zaretskii <eliz@is.elta.co.il>
4939
4940 * dispextern.h (FACE_TTY_DEFAULT_FG_COLOR)
4941 (FACE_TTY_DEFAULT_BG_COLOR): New macros.
4942
4943 * xfaces.c (Qunspecified_fg, Qunspecified_bg): New variables.
4944 (syms_of_xfaces): Initialize and staticpro them.
4945 (tty_defined_color): If the color name is unspecified-fg or
4946 unspecified-bg, return FACE_TTY_DEFAULT_FG_COLOR and
4947 FACE_TTY_DEFAULT_BG_COLOR, respectively, as the pixel value.
4948 (tty_color_name): If the color pixel value is either
4949 FACE_TTY_DEFAULT_FG_COLOR or FACE_TTY_DEFAULT_BG_COLOR, return
4950 Qunspecified_fg or Qunspecified_bg, respectively.
4951 (Finternal_set_lisp_face_attribute): Allow values Qunspecified_fg
4952 and Qunspecified_bg for foreground and background colors.
4953 (realize_default_face): If the foreground and background colors
4954 are not specified, default to Qunspecified_fg and Qunspecified_bg.
4955 (realize_tty_face): By default, set the face colors to
4956 FACE_TTY_DEFAULT_FG_COLOR and FACE_TTY_DEFAULT_BG_COLOR.
4957 [MSDOS]: Handle FACE_TTY_DEFAULT_FG_COLOR and
4958 FACE_TTY_DEFAULT_BG_COLOR when face colors are not defined.
4959 Reverse the colors if the default colors were reversed.
4960
4961 * dispnew.c (init_display): Initialize the frame pixels of the
4962 initial frame to FACE_TTY_DEFAULT_FG_COLOR and
4963 FACE_TTY_DEFAULT_BG_COLOR.
4964
4965 * term.c (turn_on_face): If the default fore- and background
4966 colors are reversed, enter inverse video mode. Don't send color
4967 escape sequences for unspecified foreground and background colors.
4968 (turn_off_face): Handle unspecified-fg and unspecified-bg colors.
4969
4970 * dosfns.c (unspecified_colors): New variable.
4971 (msdos_stdcolor_idx): Handle unspecified-fg and unspecified-bg
4972 color names, return FACE_TTY_DEFAULT_FG_COLOR and
4973 FACE_TTY_DEFAULT_BG_COLOR, respectively.
4974 (msdos_stdcolor_name): Handle FACE_TTY_DEFAULT_FG_COLOR and
4975 FACE_TTY_DEFAULT_BG_COLOR, return Qunspecified_fg and
4976 Qunspecified_bg, respectively.
4977
4978 * msdos.c (IT_set_face): Support FACE_TTY_DEFAULT_FG_COLOR and
4979 FACE_TTY_DEFAULT_BG_COLOR as pixel values.
4980
e19539f1
KH
49811999-12-15 Kenichi Handa <handa@etl.go.jp>
4982
4983 * coding.c (code_convert_region): Fix the secoding arg to
4984 update_compositions.
4985
5ec14d3c
KH
49861999-12-15 Kenichi Handa <handa@etl.go.jp>
4987
4988 The following changes are for the new composition mechanism. We
4989 have deleted `composition' charset and composite characters,
4990 instead introduced a special text property `composition'.
4991
4992 * Makefile.in (INTERVAL_SRC): Include composite.h.
4993 (INTERVAL_OBJ): Include composite.o.
4994 (SOME_MACHINE_OBJECTS): Include composite.o.
4995 (casefiddle.o) (dispnew.o) (indent.o) (process.o) (search.o)
4996 (syntax.o) (window.o) (xdisp.o) (xfaces.o) (xterm.o) (print.o):
4997 Depend on composite.h.
4998 (doc.o): Depend on charset.h.
4999 (keyboard.o) (textprop.o) (intervals.o): Depend on INTERVAL_SRC.
5000 (composite.o): New target.
427ec082 5001
5ec14d3c
KH
5002 * alloc.c (Fmake_string): Adjusted for the change of CHAR_STRING.
5003
5004 * callproc.c (Fcall_process): Call code_convert_string to encode
5005 arguments. Use CODING_REQUIRE_DECODING to check if the process
5006 output should be decoded.
5007
5008 * casefiddle.c: Include composite.h.
5009 (casify_object): Use MAX_MULTIBYTE_LENGTH to allocate memory for a
5010 multibyte character. Adjusted for the change of CHAR_STRING.
5011 (casify_region): Likewise. Call update_compositions.
5012
5013 * category.h (CATEGORY_SET): Delete codes for a composite
5014 character.
5015
5016 * category.c (word_boundary_p): Delete codes for a composite
5017 character.
5018 (Fmake_category_table): New function.
5019 (syms_of_category): Defsubr it.
5020
5021 * ccl.c (CCL_WRITE_CHAR): Adjusted for the change of CHAR_STRING.
5022 (ccl_driver): Delete codes for a composite character.
5023
5024 * charset.h: In this entry, just `Modified' means that codes for a
5025 composite character is deleted.
5026 (LEADING_CODE_COMPOSITION) (CHARSET_COMPOSITION)
5027 (charset_composition) (MIN_CHAR_COMPOSITION)
5028 (MAX_CHAR_COMPOSITION) (GENERIC_COMPOSITION_CHAR)
5029 (COMPOSITE_CHAR_P) (MAKE_COMPOSITE_CHAR) (COMPOSITE_CHAR_ID)
5030 (PARSE_COMPOSITE_SEQ) (PARSE_CHARACTER_SEQ): Deleted.
5031 (MAX_CHAR) (CHARSET_VALID_P) (CHARSET_DEFINED_P) (CHARSET_AT)
5032 (FIRST_CHARSET_AT) (SAME_CHARSET_P) (MAKE_NON_ASCII_CHAR)
5033 (PARSE_MULTIBYTE_SEQ) (SPLIT_NON_ASCII_CHAR) (CHAR_PRINTABLE_P):
5034 Modified.
5035 (SPLIT_STRING): Call split_string, not split_non_ascii_string.
5036 (CHAR_STRING): Delete WORKBUF argument. Call char_string, not
5037 non_ascii_char_to_string.
5038 (STRING_CHAR): Call string_to_char, not string_to_non_ascii_char.
5039 (STRING_CHAR_AND_LENGTH): Likewise.
5040 (FETCH_CHAR_ADVANCE): New macro.
5041 (MAX_COMPONENT_COUNT) (struct cmpchar_info): Deleted.
5042 (MAX_MULTIBYTE_LENGTH): New macro.
5043 (MAX_LENGTH_OF_MULTI_BYTE_FORM): Deleted.
5044 (find_charset_in_str): Argument adjusted.
5045 (CHAR_LEN): Modified.
427ec082 5046
5ec14d3c
KH
5047 * charset.c: In this entry, just `Modified' means that codes for a
5048 composite character is deleted.
5049 (Qcomposition) (leading_code_composition)
5050 (charset_composition) (min_composite_char) (cmpchar_table)
5051 (cmpchar_table_size) (n_cmpchars): Deleted.
5052 (SPLIT_COMPOSITE_SEQ): Deleted.
5053 (SPLIT_MULTIBYTE_SEQ): Modified.
5054 (char_to_string): Renamed from non_ascii_char_to_string.
5055 Modified.
5056 (string_to_char): Renamed from string_to_non_ascii_char.
5057 (split_string): Renamed from split_non_ascii_string.
5058 (char_printable_p) (Fsplit_char)
5059 (Ffind_charset_region) (Ffind_charset_string) (char_valid_p)
5060 (char_bytes) (Fchar_width) (strwidth): Modified.
5061 (find_charset_in_str): Argument CMPCHARP deleted. Modified.
5062 (Fstring): Adjusted for the change of CHAR_STRING. Modified.
5063 (hash_string) (CMPCHAR_HASH_TABLE_SIZE) (cmpchar_hash_table)
5064 (CMPCHAR_HASH_SIZE) (CMPCHAR_HASH_USED) (CMPCHAR_HASH_CMPCHAR_ID)
5065 (str_cmpchar_id) (cmpchar_component) (Fcmpcharp)
5066 (Fcmpchar_component) (Fcmpchar_cmp_rule) (Fcmpchar_cmp_rule_p)
5067 (Fcmpchar_cmp_count): Deleted.
5068 (Fcompose_string): Implemented by Emacs Lisp in composite.el.
5069 (init_charset_once): Modified.
5070 (syms_of_charset): Modified.
5071
5072 * cmds.c (internal_self_insert): Adjusted for the change of
5073 CHAR_STRING.
5074
5075 * coding.h (emacs_code_class_type): Delete the member
5076 EMACS_leading_code_composition.
5077 (COMPOSING_NO) (COMPOSING_WITH_RULE_HEAD) (COMPOSING_NO_RULE_HEAD)
5078 (COMPOSING_WITH_RULE_TAIL) (COMPOSING_NO_RULE_TAIL)
5079 (COMPOSING_WITH_RULE_RULE) (COMPOSING_HEAD_P)
5080 (COMPOSING_WITH_RULE_P): Macros deleted.
5081 (COMPOSITION_DATA_SIZE) (COMPOSITION_DATA_MAX_BUNCH_LENGTH): New
5082 macros.
5083 (struct composition_data): New structure.
5084 (CODING_FINISH_INSUFFICIENT_CMP): New macro.
5085 (struct coding_system): New members composition_rule_follows,
5086 cmp_data, cmp_data_start, cmp_data_index.
5087 (coding_save_composition) (coding_free_composition_data)
5088 (coding_adjust_composition_offset): Extern them.
5089
5090 * coding.c: Include composite.h.
5091 (DECODE_CHARACTER_ASCII): Don't handle composition here.
5092 (DECODE_CHARACTER_DIMENSION1): Likewise. Don't check the validity
5093 of multibyte code here.
5094 (DECODE_CHARACTER_DIMENSION2): Likewise.
5095 (detect_coding_emacs_mule): Change the case label from
5096 EMACS_leading_code_composition to 0x80.
5097 (detect_coding_iso2022): Handle new composition sequence.
5098 (DECODE_ISO_CHARACTER): Likewise.
5099 (check_composing_code): Deleted.
5100 (coding_allocate_composition_data): New function.
5101 (CODING_ADD_COMPOSITION_START) (CODING_ADD_COMPOSITION_END)
5102 (CODING_ADD_COMPOSITION_COMPONENT) (DECODE_COMPOSITION_START)
5103 (DECODE_COMPOSITION_END) (DECODE_COMPOSITION_RULE): New macros.
5104 (decode_coding_iso2022): Handle new composition sequence.
5105 (ENCODE_ISO_CHARACTER): Don't check composition here.
5106 (ENCODE_COMPOSITION_RULE) (ENCODE_COMPOSITION_START): New macros.
5107 (ENCODE_COMPOSITION_NO_RULE_START)
5108 (ENCODE_COMPOSITION_WITH_RULE_START): Deleted.
5109 (ENCODE_COMPOSITION_END): Handle new composition sequence.
5110 (ENCODE_COMPOSITION_FAKE_START): New macro.
5111 (encode_coding_iso2022): Handle new composition sequence.
5112 (ENCODE_SJIS_BIG5_CHARACTER): Delete superfluous `;' at the tail.
5113 (encode_coding_sjis_big5): Ignore composition.
5114 (setup_coding_system): Initialize new members of struct
5115 coding_system. Enable composition only when the coding system has
5116 `composition' property t.
5117 (coding_free_composition_data) (coding_adjust_composition_offset)
5118 (coding_save_composition) (coding_restore_composition): New
5119 functions.
5120 (code_convert_region): Call coding_save_composition for encoding
5121 and coding_allocate_composition_data for decoding. Don't skip
5122 ASCII characters if we handle composition on encoding. Call
5123 signal_after_change with Check_BORDER.
5124 (code_convert_string): Call coding_save_composition for encoding
5125 and coding_allocate_composition_data for decoding. Don't skip
5126 ASCII characters if we handle composition on encoding.
5127 (code_convert_string1): Set Vlast_coding_system_used after calling
5128 code_convert_string.
5129 (code_convert_string_norecord): Disable composition.
5130 (Fset_terminal_coding_system_internal): Likewise.
5131 (Fset_safe_terminal_coding_system_internal): Likewise.
5132 (Fset_keyboard_coding_system_internal): Likewise.
5133 (init_coding_once): Set emacs_code_class[0x80] to
5134 EMACS_invalid_code.
5135
5136 * composite.h: New file.
5137
5138 * composite.c: New file.
5139
5140 * data.c (Faref): Delete codes for a composite character..
5141 (Faset): Likewise. Adjusted for the change of CHAR_STRING.
5142
5143 * dispextern.h (enum glyph_type): New member COMPOSITE_GLYPH.
5144 (struct glyph): Add new sub-structure cmp to the union `u'.
5145 (enum display_element_type): New member IT_COMPOSITION.
5146 (enum prop_idx): New member COMPOSITION_PROP_IDX.
5147 (struct it): New members cmp_id, cmp_len.
5148
5149 * dispnew.c (direct_output_forward_char): Check point moving into
5150 or out of a composition. If so, give up direct method.
5151
5152 * doprnt.c (doprnt1): Adjusted for the change of CHAR_STRING.
5153
5154 * editfns.c (Fchar_to_string): Adjusted for the change of
5155 CHAR_STRING.
5156 (general_insert_function): Likewise.
5157 (Finsert_char): Likewise.
5158 (Fsubst_char_in_region): Likewise. Call update_compositions.
5159 (Ftranslate_region): Call update_compositions.
5160 (Ftranspose_regions): Call update_compositions.
5161
5162 * emacs.c (main): Call syms_of_composite.
5163
5164 * fileio.c (Fsubstitute_in_file_name): Adjusted for the change of
5165 CHAR_STRING.
5166 (Finsert_file_contents): Set Vlast_coding_system_used before
5167 calling signal_after_change. Call update_compositions if some
5168 texts are inserted..
5169 (Fwrite_region): Adjusted for the change of a_write and e_write.
5170 (a_write): Argument changed. Work based on character position,
5171 not byte position.
5172 (e_write): Argument changed. Handle new way of composition.
5173
5174 * fns.c (Flength): The length of char-table is MAX_CHAR.
5175 (concat): Adjusted for the change of CHAR_STRING.
5176 (Ffillarray): Adjusted for the change of CHAR_STRING.
5177 (Fset_char_table_default): Delete codes for a composite character.
5178 (hash_put): Return hash index.
5179
5180 * fontset.h (struct font_info): New member vertical_centering.
5181 (Vvertical_centering_font_regexp): Extern it.
5182
5183 * fontset.c (Vvertical_centering_font_regexp): New variable.
5184 (syms_of_fontset): Declare it as a Lisp variable and initialize.
5185 Set Vignore_relative_composition to nil.
5186 (fs_load_font): Initialize `vertical_centering' of struct
5187 font_info.
5188
5189 * indent.c (check_composition): New function.
5190 (MULTIBYTE_BYTES_WIDTH): Call STRING_CHAR_AND_LENGTH with
5191 MAX_MULTIBYTE_LENGTH, not MAX_LENGTH_OF_MULTI_BYTE_FORM.
5192 (current_column_1): Handle new way of composition.
5193 (Fmove_to_column): Likewise.
5194 (compute_motion): Likewise.
5195
5196 * insdel.c (copy_text): Adjusted for the change of CHAR_STRING.
5197 (insert_char): Likewise.
5198 (insert): Call update_compositions.
5199 (insert_and_inherit): Likewise.
5200 (insert_before_markers): Likewise.
5201 (insert_before_markers_and_inherit): Likewise.
5202 (insert_from_string): Likewise.
5203 (insert_from_string_before_markers): Likewise.
5204 (insert_from_buffer): Likewise.
5205 (replace_range): Likewise.
5206 (count_combining_composition): Deleted.
5207 (count_combining_before): Delete codes for a composite character.
5208 (count_combining_after): Likewise.
5209 (del_range_1): Call update_compositions.
5210 (del_range_byte): Likewise.
5211 (del_range_both): Likewise.
5212 (Fcombine_after_change_execute): Likewise.
5213
5214 * intervals.h: Include composite.h.
5215 (get_property_and_range): Extern it.
5216 (Vtext_property_default_nonsticky): Extern it.
427ec082 5217
5ec14d3c
KH
5218 * intervals.c (adjust_intervals_for_insertion): To check stickines
5219 of properties, pay attention to text-property-default-nonsticky.
5220 (merge_properties_sticky): Likewise.
5221 (get_property_and_range): New function.
5222
5223 * keyboard.c (Vdisable_point_adjustment): New variable.
5224 (Vglobal_disable_point_adjustment): New variable.
5225 (syms_of_keyboard): Declare them as Lisp variables.
5226 (command_loop_1): Check them and call adjust_point_for_property if
5227 necessary.
5228 (adjust_point_for_property): New function.
5229
5230 * keymap.c (push_key_description): Adjusted for the change of
5231 CHAR_STRING.
5232 (Ftext_char_description): Likewise.
5233
5234 * lisp.h (QCtest, QCweakness, Qequal): Extern them.
5235 (hash_put): Adjusted for the change of the definition.
5236 (signal_after_change): Likewise.
5237 (check_point_in_composition): Extern it.
5238
5239 * lread.c (readchar): Adjusted for the change of CHAR_STRING.
5240 Delete a code that handles an invalid too-long multibyte sequence
5241 because we are now sure that we never encounter with such a
5242 sequence.
5243 (read_multibyte): Use macro MAX_MULTIBYTE_LENGTH, not
5244 MAX_LENGTH_OF_MULTI_BYTE_FORM.
5245 (init_obarray): Likewise.
5246 (read1): Likewise. Adjusted for the change of CHAR_STRING.
5247
5248 * print.c (printchar): Adjusted for the change of CHAR_STRING.
5249
5250 * process.c: Include composite.h.
5251 (read_process_output): Call update_compositions.
5252
5253 * regex.c (regex_compile): Adjusted for the change of CHAR_STRING.
5254
5255 * search.c (search_buffer): Adjusted for the change of CHAR_STRING.
5256
5257 * syntax.h (SYNTAX_ENTRY_INT): Delete codes for a composite
5258 character.
5259
5260 * term.c (encode_terminal_code): Delete codes for a composite
5261 character. Adjusted for the change of CHAR_STRING.
5262 (produce_glyphs): When called, it->what can be IT_COMPOSITION.
5263 Delete codes for a composite character.
5264
5265 * textprop.c (Vtext_property_default_nonsticky): New variable
5266 (syms_of_textprop): Declare it as a Lisp variable.
5267
5268 * window.c (Frecenter): Clear all caches of compositions.
5269
5270 * xdisp.c (it_props): Add an entry for composition.
5271 (face_before_or_after_it_pos): For composition, check face of a
5272 character after the composition.
5273 (handle_composition_prop): New function.
5274 (get_next_display_element): Adjusted for the change of
5275 CHAR_STRING.
5276 (set_iterator_to_next): Handle the case that it->method ==
5277 next_element_from_composition.
5278 (next_element_from_composition): New function.
5279 (message_dolog): Adjusted for the change of CHAR_STRING.
5280 (set_message_1): Likewise.
5281 (check_point_in_composition): New function.
5282 (reconsider_clip_changes): If point moved into or out of
5283 composition, set b->clip_changed to 1 to force updating of the
5284 screen.
5285 (disp_char_vector): Delete codes for a composite character.
5286 (decode_mode_spec_coding): Adjusted for the change of CHAR_STRING.
5287
5288 * xfaces.c (choose_face_fontset_font): Delete codes for a
5289 composite character.
5290 (realize_x_face): Likewise. Change a place to set local variable
5291 `f' to avoid a bug of GCC 2.8.1 on Solaris.
5292
5293 * xfns.c: Include intervals.h.
5294 (syms_of_xfns): Make `display' property nonsticky by default.
5295
5296 * xselect.c (lisp_data_to_selection_data): Adjusted for the change
5297 for find_charset_in_str.
5298
5299 * xterm.h (struct x_output): Change member font_baseline to
5300 baseline_offset.
5301
5302 * xterm.c (x_append_glyph): Setup members of struct glyph properly
5303 for composition.
5304 (x_append_composite_glyph): New function.
5305 (VCENTER_BASELINE_OFFSET): New macro.
5306 (x_produce_glyphs): If it->what == IT_COMPOSITION, setup members
5307 of struct it for the composition. Cache pixel offsets in the
5308 struct composition. Delete codes for a composite character.
5309 Handle Vignore_relative_composition in composition code.
5310 (struct glyph_string): Delete member cmpcharp, add new member cmp.
5311 (x_set_cursor_gc): Check s->cmp, not s->cmpcharp.
5312 (x_compute_glyph_string_overhangs): Likewise.
5313 (x_get_glyph_overhangs): Delete codes for a composite character.
5314 (x_right_overwritten): Check s->cmp, not s->cmpcharp.
5315 (x_draw_glyph_string_background): Likewise. Delete codes for
5316 checking s->gidx for a composition.
5317 (x_draw_glyph_string_foreground): Delete code for a composite
5318 character.
5319 (x_draw_composite_glyph_string_foreground): New function.
5320 (x_draw_glyph_string_box): Check s->cmp, not s->cmpcharp.
5321 (x_draw_glyph_string): Handle the case of COMPOSITE_GLYPH.
5322 (struct work): Deleted.
5323 (x_fill_composite_glyph_string): Argument changed. Mostly
5324 rewritten for that.
5325 (x_fill_glyph_string): Don't check CHARSET_COMPOSITION.
5326 (BUILD_CHAR_GLYPH_STRINGS): Don't handle composition here.
5327 (BUILD_COMPOSITE_GLYPH_STRING): New macro.
5328 (BUILD_GLYPH_STRINGS): For composition, call
5329 BUILD_COMPOSITE_GLYPH_STRING.
5330 (x_new_font): Initialize f->output_data.x->baseline_offset, not
5331 f->output_data.x->font_baseline.
5332
c3c60f13
GM
53331999-12-14 Gerd Moellmann <gerd@gnu.org>
5334
5335 * xterm.c (show_mouse_face): Don't use updated_area, use
5336 TEXT_AREA.
5337
83c8f461 53381999-12-12 Richard M. Stallman <rms@gnu.org>
c838eb57
RS
5339
5340 * minibuf.c (Fall_completions): Doc fix.
5341
83c8f461 53421999-12-12 Richard M. Stallman <rms@gnu.org>
c838eb57
RS
5343
5344 * macros.c (Fstart_kbd_macro): Handle case where last-kbd-macro
5345 has been changed by the Lisp code.
5346
d8eccf12
GM
53471999-12-12 Gerd Moellmann <gerd@gnu.org>
5348
5349 * xfns.c: Indentation fixes.
5350
ae56feae
SM
53511999-12-10 Stefan Monnier <monnier@cs.yale.edu>
5352
5353 * xterm.c (x_initialize): Only setup xaw3d_* if they've been declared.
5354
dfa1c6ae
GM
53551999-12-10 Gerd Moellmann <gerd@gnu.org>
5356
5357 * frame.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
5358 [!MSDOS && !WINDOWSNT && !macintosh]: Moved here from xterm.h.
5359
5360 * xterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Moved
5361 to frame.h.
5362
ec18280f
SM
53631999-12-09 Stefan Monnier <monnier@cs.yale.edu>
5364
5365 * keyboard.c (Qratio): New symbol.
5366 (scroll_bar_parts): Add `Qratio' to it.
5367 (syms_of_keyboard): Init `Qratio'.
5368 * termhooks.h (scroll_bar_part): Add `scroll_bar_move_ratio'.
5369 * xterm.c (#includes): Allow compilation with only Xaw.
5370 (xaw3d_arrow_scroll, xaw3d_pick_top): New variables.
5371 (xt_action_hook): Replace XAW3D by XAW.
5372 (xaw3d_jump_callback): Renamed to xaw_jump_callback.
5373 (xaw_jump_callback): Renamed from xaw3d_jump_callback.
5374 Determine epsilon dynamically and don't try to be too clever.
5375 (xaw3d_scroll_callback): Renamed to xaw_scroll_callback.
5376 (xaw_scroll_callback): Renamed from xaw3d_scroll_callback.
5377 Handle both Xaw3d with arrow-scrollbars and with Xaw-style
5378 scrollbar (using `ratio').
5379 (x_create_toolkit_scroll_bar): Try to detect which style of Xaw3d
5380 scrollbar we have so as to set it up more optimally and to fix
5381 xaw3d_arrow_scroll and xaw3d_pick_top.
5382 (x_set_toolkit_scroll_bar_thumb): Try to maintain 2 spare pixels at the
5383 bottom of the Xaw3d scrollbar, to work around its tendency to refuse
5384 shrinking the thumb. Also make sure that `XawScrollbarSetThumb'
5385 is not ignored, using a major gross hack.
5386 (x_initialize): Init default values for xaw3d_arrow_scroll and
5387 xaw3d_pick_top.
5388
83b6d970
DL
53891999-12-09 Dave Love <fx@gnu.org>
5390
5391 * frame.h: (PIX_TYPE) [! HAVE_X_WINDOWS]: Define PIX_TYPE.
5392
3648c842
GM
53931999-12-08 Gerd Moellmann <gerd@gnu.org>
5394
5395 * eval.c: Remove conditional compilation on `standalone'.
5396 (call_debugger): When entering the debugger while redisplaying,
5397 reset redisplaying_p, and go back to the top-level if the debugger
5398 returns.
5399
05e71564
GM
54001999-12-07 Gerd Moellmann <gerd@gnu.org>
5401
5402 * xfaces.c (x_set_menu_resources_from_menu_face): Make sure
5403 basic faces are realized before trying to use face `menu'.
5404
5405 * window.c (delete_window): Block input for the time window
5406 matrices are being changed.
5407
b46cd536
DL
54081999-12-07 Dave Love <fx@gnu.org>
5409
5410 * lread.c (Fintern_soft): Fix newlines in doc string.
5411
96acb1f7
GM
54121999-12-07 Alexandre Oliva <oliva@dcc.unicamp.br>
5413
5414 * unexelf.c: Include <syms.h>, not <sym.h> on IRIX. Removed
5415 duplicate definition of ElfW.
5416 (find_section): Copied from unexsgi.c.
5417 (unexec): Use find_section. Adjust whitespace. Initialize
5418 new_data2_offset based on old_data, not sbss (this fixes a bug on
5419 IRIX6). Change #ifdef __mips to __sgi, since it's IRIX-specific.
5420 Adjust test for presence of .mdebug section to the new return
5421 value of find_section.
427ec082 5422
96acb1f7
GM
54231999-12-07 Gerd Moellmann <gerd@gnu.org>
5424
5425 * unexelf.c: Merge changes from 20.5.
5426 (unexec): Handle .lit4 and .lit8 unconditionally.
5427
5428 * m/iris4d.h (UNEXEC) [USG5_4]: Use unexelf.o instead of
5429 unexsgi.o again.
427ec082 5430
96acb1f7
GM
5431 * m/iris5d.h (UNEXEC): Likewise.
5432
7dae4502
SM
54331999-12-06 Stefan Monnier <monnier@cs.yale.edu>
5434
5435 * editfns.c (Fdelete_and_extract_region): New function.
05e71564
GM
5436 (syms_of_editfns): Register it.
5437 * insdel.c (del_range): Update del_range_1 call.
7dae4502
SM
5438 (del_range_1, del_range_2): Add a ret_string argument to
5439 request that the deleted text be returned.
5440 (del_range_byte, del_range_both): Update del_range_2 call.
05e71564 5441 * lisp.h (del_range_1, del_range_2): Change prototype
7dae4502
SM
5442 * casefiddle.c (casify_region): Update del_range_1 call.
5443 * coding.c (code_convert_region): Update del_range_2 call.
5444 * fileio.c (Finsert_file_contents): Update del_range_2 call.
5445
397e4fae
GM
54461999-12-06 Gerd Moellmann <gerd@gnu.org>
5447
5448 * xfaces.c (set_lface_from_font_name): Fix incomplete merge.
5449
3d973f71
GM
54501999-12-04 Hrvoje Niksic <hniksic@iskon.hr>
5451
5452 * lread.c (Fintern_soft): Accept a symbol argument.
427ec082 5453
740e985f
EZ
54541999-12-06 Eli Zaretskii <eliz@is.elta.co.il>
5455
5456 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 40000.
809f3d51
EZ
5457
5458 * insdel.c (adjust_markers_for_delete): Fix last change.
5459
2d764c78
EZ
54601999-12-06 Eli Zaretskii <eliz@is.elta.co.il>
5461
5462 Changes for automatic remapping of X colors on terminal frames:
5463
5464 * xfaces.c (XColor) [!HAVE_X_WINDOWS]: Provide a typedef for non-X
5465 frames.
5466 (Vface_tty_color_alist): Remove.
5467 (tty_defined_color): New function.
5468 (defined_color): Rewrite to support any type of frame.
5469 (tty_color_name): New function.
5470 (face_color_supported_p, Fface_color_gray_p,
5471 Fface_color_supported_p): Support non-X frames.
5472 (load_color): Enclose the color name in quotes, in the log
5473 messages. Remove DOS-specific version of load_color.
5474 (realize_tty_face): Take the supported colors from
5475 tty-color-alist. Support translation of X colors to the closest
5476 tty color, for both MSDOS and tty frames.
5477 [MSDOS]: Don't invert face colors if they were taken from the
5478 frame colors.
5479 (Fface_register_tty_color, Fface_clear_tty_colors): Remove.
5480
5481 * frame.h (struct x_output) [!MSDOS, !WINDOWSNT, !HAVE_X_WINDOWS]:
5482 Define a mostly empty surrogate.
5483 (tty_display): Declare.
5484
5485 * frame.c (make_terminal_frame) [!macintosh]: Don't use
5486 tty_display.
5487 (Fframe_parameters): Don't invert colors of non-FRAME_WINDOW_P
5488 frames when the frame's param_alist includes 'reverse.
5489 (tty_display): Define.
5490 (make_terminal_frame) [!MSDOS]: Assign &tty_display to the
5491 output_data.x member.
5492 (Fframe_parameters): Return foreground and background color names
5493 on tty frames as well, in addition to MSDOS frames.
5494
5495 * msdos.h (DisplayWidth, DisplayHeight): Changes for Lisp_Object
5496 selected_frame.
5497 (struct x_output): Remove unused members; document who uses each
5498 member.
5499 (FRAME_PARAM_FACES, FRAME_N_PARAM_FACES, FRAME_DEFAULT_PARAM_FACE,
5500 FRAME_MODE_LINE_PARAM_FACE, FRAME_COMPUTED_FACES,
5501 FRAME_N_COMPUTED_FACES, FRAME_SIZE_COMPUTED_FACES,
5502 FRAME_DEFAULT_FACE, FRAME_MODE_LINE_FACE, unload_color): Remove
5503 unused macro definintions.
5504
5505 * msdos.c (IT_set_frame_parameters): Don't call
5506 recompute_basic_faces, the next redisplay will, anyway.
5507 (x_current_display): Remove unused variable.
5508 Many functions: changes for Lisp_object selected_frame.
5509 (IT_set_face): If the tty_reverse_p flag is set for the face,
5510 reverse the foreground and background colors.
5511 (Fmsdos_remember_default_colors): New function.
5512 (syms_of_msdos): Defsubr it.
5513 (IT_set_frame_parameters): Use initial_screen_colors[] when
5514 creating a new frame. If the frame parameters include 'reverse,
5515 swap the foreground and background colors.
5516 (internal_terminal_init): Initialize initial_screen_colors to -1.
5517 (syms_of_msdos): Add DEFVAR_BOOL for x-stretch-cursor, to shut up
5518 cus-start.el.
5519
5520 * Makefile.in (lisp, shortlisp): Add lisp/term/tty-colors.elc.
5521
5522 * xfns.c (x_defined_color): Rename from defined_color. All
5523 callers changed.
5524 (Fxw_color_defined_p): Renamed from Fx_color_defined_p;
5525 all callers changed.
5526 (Fxw_color_values): Renamed from Fx_color_values; all callers
5527 changed.
5528 (Fxw_display_color_p): Renamed from Fx_display_color_p; all
5529 callers changed.
5530 (x_window_to_frame, x_any_window_to_frame,
5531 x_non_menubar_window_to_frame, x_menubar_window_to_frame,
5532 x_top_window_to_frame): Use !FRAME_X_P instead of
5533 f->output_data.nothing.
5534 * xterm.h (x_defined_color): Rename from defined_color.
5535
5536 * w32fns.c (x_window_to_frame): Use FRAME_W32_P instead of
5537 f->output_data.nothing.
5538 (Fxw_color_defined_p): Renamed from Fx_color_defined_p;
5539 all callers changed.
5540 (Fxw_color_values): Renamed from Fx_color_values; all callers
5541 changed.
5542 (Fxw_display_color_p): Renamed from Fx_display_color_p; all
5543 callers changed.
5544
5545 * dispextern.h (tty_color_name): Add prototype.
5546
5547 * xmenu.c (menubar_id_to_frame): Use FRAME_WINDOW_P instead of
5548 f->output_data.nothing.
5549 * w32menu.c (menubar_id_to_frame): Likewise.
5550 * w32term.h (w32_output): Declare.
5551
5552 * dosfns.c (Qmsdos_color_translate): Remove.
5553 (msdos_stdcolor_name): Now returns a Lisp_Object.
5554 * dosfns.h (Qmsdos_color_translate): Remove.
5555
5556 * s/msdos.h (INTERNAL_TERMINAL): Add entries for color support.
5557
b3e5232e
KH
55581999-12-06 Kenichi Handa <handa@etl.go.jp>
5559
5560 * fileio.c (decide_coding_unwind): Renamed from
5561 set_auto_coding_unwind.
5562 (Finsert_file_contents): Make single unwind protect to call both
5563 Vset_auto_coding_function and Ffind_operation_coding_system.
5564
5565 * insdel.c (adjust_markers_for_delete): Make it non-static.
5566
db0e466c
SM
55671999-12-04 Stefan Monnier <monnier@cs.yale.edu>
5568
5569 * regex.c (regex_compile): Recognize *?, +? and ?? as non-greedy
5570 operators and handle them properly.
5571 * regex.h (RE_ALL_GREEDY): New option.
5572 (RE_UNMATCHED_RIGHT_PAREN_ORD): Moved to the end where alphabetic
5573 sorting would put it.
5574 (RE_SYNTAX_AWK, RE_SYNTAX_GREP, RE_SYNTAX_EGREP)
5575 (_RE_SYNTAX_POSIX_COMMON): Use the new option to keep old behavior.
5576
22afa6e8
DL
55771999-12-04 Dave Love <d.love@dl.ac.uk>
5578
5579 * m/arm.h: New file.
5580
40afb967
DL
55811999-12-03 Dave Love <fx@gnu.org>
5582
5583 * editfns.c (Fmessage_or_box): Use use_dialog_box.
5584
ddf8eff5
GM
55851999-12-02 Gerd Moellmann <gerd@gnu.org>
5586
5587 * s/usg5-4.h (LIBS_SYSTEM): Add -lgen because that's needed
5588 for building with Motif.
5589
5590 * m/iris4d.h (UNEXEC) [USG5_4]: Use unexsgi.o instead of
5591 unexelf.o.
427ec082 5592
ddf8eff5
GM
5593 * m/iris5d.h (UNEXEC): Use unexsgi.o instead of unexelf.o.
5594
fa09a82d
DL
55951999-12-01 Dave Love <fx@gnu.org>
5596
5597 * emacs.c (main): Set LANG=C iff AX3_2 defined.
5598
ddf8eff5
GM
55991999-11-28 Gerd Moellmann <gerd@gnu.org>
5600
5601 * systime.h (EMACS_TIME_CMP, EMACS_TIME_EQ, EMACS_TIME_NE)
5602 (EMACS_TIME_GT, EMACS_TIME_GE, EMACS_TIME_LT,EMACS_TIME_LE): New
5603 macros.
5604
5605 * config.in (HAVE_SETITIMER, HAVE_UALARM): New.
5606
fa09a82d
DL
56071999-11-28 eliz <eliz@dlpx1>
5608
5609 * emacs.c (synchronize_locale): Avoid compiler warnings about
5610 pointer type mismatch.
5611
f9632fc8
GM
56121999-11-28 Gerd Moellmann <gerd@gnu.org>
5613
717d0121
GM
5614 * window.c (Fwindow_end): Don't call temp_set_pt_both with
5615 out of range position.
5616
427ec082 5617 * xterm.c (XTread_socket) <ClientMessage, Xatom_Scrollbar>:
f9632fc8
GM
5618 Switch off busy-cursor by setting inhibit_busy_cursor to 2.
5619
59c65f1e
EZ
56201999-11-28 Eli Zaretskii <eliz@is.elta.co.il>
5621
613a8346
EZ
5622 * charset.c (Fmake_char_internal): Print the charset ID when
5623 signalling an error.
5624
59c65f1e
EZ
5625 * emacs.c (synchronize_locale): Avoid compiler warnings about
5626 pointer type mismatch.
5627
83c8f461 56281999-11-26 Richard M. Stallman <rms@gnu.org>
d01f3570
RS
5629
5630 * editfns.c (Fdelete_field): Make it noninteractive. Return nil.
5631
18df9369
GM
56321999-11-26 Gerd Moellmann <gerd@gnu.org>
5633
65a3ccf7
GM
5634 * puresize.h (BASE_PURESIZE): Increase to 550000.
5635
b3b98592
GM
5636 * textprop.c (set_text_properties): New function. Like
5637 Fset_text_properties, but with additional parameter
5638 SIGNAL_AFTER_CHANGE_P. If that is nil, don't signal after
5639 changes.
5640 (Fset_text_properties): Use it.
5641
5642 * insdel.c (insert_1_both): Call set_text_properties with last
5643 parameter nil so that no after changes will be signaled.
5644
5645 * lisp.h: Add prototype for set_text_properties.
5646
18df9369
GM
5647 * xfaces.c (set_lface_from_font_name): Fix previous change.
5648 (recompute_basic_faces): Change assert to abort.
5649
71a8e74b
DL
56501999-11-25 Dave Love <fx@gnu.org>
5651
5652 * fns.c (Fnthcdr, Fnreverse): Inline cdr.
5653 (Fmember, Fdelq, Fdelete): Inline car.
5654 (Fy_or_n_p): Doc fix.
5655
bc6a5782
GM
56561999-11-25 Gerd Moellmann <gerd@gnu.org>
5657
3221576b 5658 * xfaces.c (set_lface_from_font_name): New parameter may_fail_p.
18df9369 5659 Callers changed. If specified font name is bogus, and may_fail_p
3221576b
GM
5660 is not set, try to use a reasonable default.
5661
bc6a5782
GM
5662 * dispnew.c (direct_output_for_insert): Set glyph row's
5663 displays_text_p flag. Correct window's window_end_vpos if
5664 necessary.
5665
0c8559bb
PE
56661999-11-25 Paul Eggert <eggert@twinsun.com>
5667
5668 * emacs.c (fixup_locale): Don't bother to record initial locale.
5669 (synchronize_locale): If the desired locale is nil,
5670 treat it as if it were the empty string,
5671 so that we set the locale from the environment.
5672
35737351
KH
56731999-11-25 Kenichi Handa <handa@etl.go.jp>
5674
5675 * fileio.c (Finsert_file_contents): Set buffer-file-coding-system
5676 of the current buffer via Fset.
5677
5562b47f
DL
56781999-11-24 Dave Love <fx@gnu.org>
5679
5562b47f
DL
5680 * xfaces.c: Don't duplicate Qmode_line definition done elsewhere.
5681
5682 * xfns.c: Don't duplicate Qdisplay definition done elsewhere.
5683
00da0e4a
GM
56841999-11-24 Gerd Moellmann <gerd@gnu.org>
5685
5686 * lisp.h (enum pvec_type): Put PVEC_FLAG in #if 0.
5687
5688 * emacs.c (PVEC_FLAG): New variable.
5689
b1775dc1
GM
56901999-11-23 Gerd Moellmann <gerd@gnu.org>
5691
5692 * unexaix.c (unexec): Use unsigned instead of uintptr_t because
5693 that fails on IBM PowerPC, AIX 4.2.
427ec082 5694
08de6200
EZ
56951999-11-22 Eli Zaretskii <eliz@is.elta.co.il>
5696
5697 * buffer.c (syms_of_buffer): Add %z, %Z, %m and %& to the doc
5698 string of mode-line-format. Remove the obsolete %t.
5699
02fda8ff
GM
57001999-11-22 Gerd Moellmann <gerd@gnu.org>
5701
f2fa858f
GM
5702 * dispnew.c (direct_output_for_insert): Increment glyph positions
5703 for glyphs from buffer text only.
5704
02fda8ff
GM
5705 * emacs.c (gdb_valbits, gdb_gctypebits, gdb_emacs_intbits)
5706 (gdb_data_seg_bits): New variables.
427ec082 5707
02fda8ff
GM
5708 * lisp.h (enum gdb_lisp_params): Put in #if 0, since it doesn't
5709 work on systems not allowing enumerators > INT_MAX, and it
5710 won't work if EMACS_INT is long long.
5711
1b0d24e7
PE
57121999-11-22 Paul Eggert <eggert@twinsun.com>
5713
5714 Port to SunOS 4.1.x again. Help out with Alpha port.
5715 Rename messages-locale to system-messages-locale,
5716 and likewise for time-locale.
427ec082 5717
1b0d24e7
PE
5718 * callproc.c (strerror): Remove decl.
5719 * fileio.c (strerror): Likewise.
5720 * process.c (strerror): Likewise.
5721 * emacs.c (strerror): Likewise.
5722 (Vsystem_messages_locale): Renamed from Vmessages_locale.
5723 All uses changed.
5724 (Vprevious_system_messages_locale): Likewise, from
5725 Vprevious_messages_locale.
5726 (Vsystem_time_locale): Likewise, from Vtime_locale.
5727 (Vprevious_system_time_locale): Likewise, from Vprevious_time_locale.
5728 (ABORT_RETURN_TYPE): New macro.
5729 (abort): Return type is now ABORT_RETURN_TYPE.
5730 (main): Always invoke init_signals, even if POSIX_SIGNALS is not
5731 defined.
5732 (syms_of_emacs): messages-locale -> system-messages-locale,
5733 previous-messages-locale -> previous-system-messages-locale,
5734 time-locale -> system-time-locale,
5735 previous-time-locale -> previous-system-time-locale.
5736
5737 * gmalloc.c (PP, __ptr_t): Assume ANSI C if STDC_HEADERS is defined.
5738 (const): Do not define; that's config.h's job.
5739 (<limits.h>): Include if HAVE_LIMITS_H is defined.
5740 (CHAR_BIT): Move test for definedness outside of limits.h condition.
5741 (<stddef.h>): Include if STDC_HEADERS is defined.
5742 (FREE_RETURN_TYPE): New macro.
5743 (free): Return type is now FREE_RETURN_TYPE.
5744
5745 * lisp.h (synchronize_system_time_locale): Renamed from
5746 synchronize_time_locale. All uses changed.
5747 (synchronize_system_messages_locale): Likewise, from
5748 synchronize_messages_locale.
5749
5750 * m/alpha.h (malloc, realloc, calloc): Remove decls;
5751 stdlib.h now does this.
5752
5753 * process.c (sys_siglist): Remove.
5754
5755 * s/sunos4-0.h (ABORT_RETURN_TYPE, FREE_RETURN_TYPE):
5756 New macros.
5757
5758 * syntax.c (scan_sexps_forward): Use abort, not assert.
5759
5760 * sysdep.c (my_sys_siglist): New var.
5761 (sys_siglist): New macro. Remove old initialized vars of same name.
5762 (init_signals): Initialize sys_siglist.
5763
5764 * xfns.c (abort): Remove decl; stdlib.h now does this.
5765
0dcd5b54
DL
57661999-11-18 Dave Love <fx@gnu.org>
5767
946173ad
DL
5768 * filelock.c: Add forward declaration for get_boot_time_1.
5769
0dcd5b54
DL
5770 * dispnew.c (Finternal_show_cursor_p): Fix doc string.
5771
71447e8f
GM
57721999-11-18 Gerd Moellmann <gerd@gnu.org>
5773
5774 * buffer.h (struct buffer_text): Add comment about moving
5775 buffer text if REL_ALLOC is defined.
5776
eeedff63
KH
57771999-11-18 Kenichi Handa <handa@etl.go.jp>
5778
5779 * lisp.h (KEY_DESCRIPTION_SIZE): New macro.
5780
5781 * keyboard.c (echo_char): Use KEY_DESCRIPTION_SIZE to check free
5782 memory for push_key_description.
5783
5784 * keymap.c (Fsingle_key_description): Use KEY_DESCRIPTION_SIZE to
5785 allocate memory for push_key_description.
5786 (describe_buffer_bindings): Likewise.
5787
5d7e4a2c
GM
57881999-11-17 Gerd Moellmann <gerd@gnu.org>
5789
5790 * xfns.c (Fx_show_busy_cursor): Doc-fix.
5791 (Fx_hide_busy_cursor): Ditto.
5792
57931999-11-17 Marco Walther <walther@siemens-pyramid.com>
5794
5795 * unexsni.c (unexec): Handle .rel.dyn section.
5796
b5b41e02
DL
57971999-11-16 Dave Love <fx@gnu.org>
5798
5799 * doc.c (Fdocumentation): Remove gcpro here too.
5800
e35b6123
GM
58011999-11-16 Gerd Moellmann <gerd@gnu.org>
5802
5803 * keyboard.c (command_loop_1): Remove no_redisplay.
5804
83c8f461 58051999-11-16 Richard M. Stallman <rms@gnu.org>
0a14b9bb
GM
5806
5807 * print.c (PRINTPREPARE): Don't call setup_echo_area_for_printing
5808 in noninteractive.
5809
b05d3bee
GM
58101999-11-14 Gerd Moellmann <gerd@gnu.org>
5811
5bcfeb49
GM
5812 * xdisp.c (ensure_echo_area_buffers): New.
5813 (with_echo_area_buffer): Use it.
5814 (setup_echo_area_for_printing): Ditto.
5815
b05d3bee
GM
5816 * buffer.c (indicate-empty-lines): Doc-fix.
5817
9b2e6e4c
GM
58181999-11-12 Gerd Moellmann <gerd@gnu.org>
5819
e7f90eab
GM
5820 * term.c (term_init): If "op" isn't available, don't support color
5821 because we can't switch back to the default foreground and
5822 background.
5823
9b2e6e4c
GM
5824 * doc.c (Fdocumentation_property): Remove GCPRO because
5825 Fsubstitute_command_keys gcpro's the string.
5826
1bf21027
KH
58271999-11-12 Kenichi Handa <handa@etl.go.jp>
5828
5829 * editfns.c (Ftranslate_region): Check the buffer multibyteness.
5830
3bc6df53
GM
58311999-11-11 Gerd Moellmann <gerd@gnu.org>
5832
5833 * print.c, keymap.c, indent.c, insdel.c, keyboard.c, intervals.c,
5834 lread.c, textprop.c, undo.c, emacs.c, lisp.h, intervals.h,
5835 buffer.h, config.in, Makefile.in: Remove USE_TEXT_PROPERTIES.
5836
35a5514b
GM
58371999-11-10 Gerd Moellmann <gerd@gnu.org>
5838
5839 * xfns.c (QCuser_data): Removed.
5840 (syms_of_xfns): Initialization of QCuser_data removed.
5841 (parse_image_spec): Don't handle :user-data specially. Allow
5842 unknown keys. Remove parameter ALLOW_OTHER_KEYS.
5843 (xbm_image_p, xbm_load, xpm_image_p, pbm_image_p, png_image_p)
5844 (tiff_image_p, jpeg_image_p, gif_image_p, gs_image_p): Call
5845 parse_image_spec accordingly.
5846
83c8f461 58471999-11-09 Richard M. Stallman <rms@gnu.org>
4ea68fcc
RS
5848
5849 * cmds.c (Fbeginning_of_line): Doc fix.
5850 (Fend_of_line): Doc fix.
5851
5852 * editfns.c (Fline_beginning_position): If N is not 1,
5853 pass t to Fconstrain_to_field for ESCAPE-FROM-EDGE.
5854
5855 * syntax.c (Fforward_word): Handle fields even if would have hit
5856 an edge of the buffer. Return nil if affected by fields.
5857
83c8f461 58581999-11-09 Richard M. Stallman <rms@gnu.org>
4ea68fcc
RS
5859
5860 * editfns.c (preceding_pos): Function deleted.
5861 (text_property_stickiness): Decrement POS directly.
5862 Fix a confusion that used PT instead of POS.
5863
5864 * editfns.c (find_field): Properly handle the case
5865 of a field boundary where `field' inherits from neither side.
5866
5867 * editfns.c (Ffield_beginning, Ffield_end): Doc fixes.
5868 (Ferase_field, Ffield_string, Ffield_string_no_properties): Doc fixes.
5869
fa9aabf6
GM
58701999-11-08 Gerd Moellmann <gerd@gnu.org>
5871
5872 * bytecode.c (Fbyte_code) <BinsertN, Bcall>: Do the
5873 BEFORE_POTENTIAL_GC before DISCARD.
5874
4015b3c0
GM
58751999-11-07 Gerd Moellmann <gerd@gnu.org>
5876
033a5fa3
GM
5877 * alloc.c (Fgarbage_collect): Call unmark_byte_stack.
5878
5879 * lisp.h: Add prototype for unmark_byte_stack.
5880
5881 * bytecode.c (mark_byte_stack): Use XMARKBIT and XMARK.
5882 (unmark_byte_stack): Renamed from relocate_byte_pcs. Use
5883 XUNMARK.
5884
55b064bd
GM
5885 * xdisp.c (resize_mini_window): Fix computation of needed
5886 mini-window height.
5887
5888 * alloc.c, buffer.c, editfns.c, xdisp.c: Remove conditional
5889 compilation on USE_TEXT_PROPERTIES.
01e9b9df 5890
4015b3c0 5891 * Fbyte_code: Use block statements in cases and declare v1 and v2
60af03f1 5892 locally there. Rearrange case statements so that those most
4015b3c0
GM
5893 frequently executed come first. Avoid goto's in frequently
5894 executed cases.
5895
fe512f27
GM
58961999-11-05 Gerd Moellmann <gerd@gnu.org>
5897
dd59e217
GM
5898 * bytecode.c (Fbyte_code): Use BEFORE_POTENTIAL_GC and
5899 AFTER_POTENTIAL_GC around internal_catch.
5900
bcf28080
GM
5901 * alloc.c (Fgarbage_collect): Call mark_byte_stack and
5902 relocate_byte_pcs.
5903 (init_alloc_once, init_alloc): Set byte_stack_list to null.
5904
5905 * eval.c (struct catchtag): Add member byte_stack.
5906 (internal_catch, Fcondition_case, internal_condition_case)
dd59e217 5907 (internal_condition_case_1): Save value of byte_stack_list in
bcf28080
GM
5908 catchtag.
5909 (unwind_to_catch): Restore byte_stack_list from catchtag.
5910
5911 * lisp.h: Add prototypes for new functions in bytecode.c.
5912 Add extern declaration for byte_stack_list.
5913
5914 * bytecode.c (struct byte_stack): New.
5915 (byte_stack_list, mark_byte_stack, relocate_byte_pcs): New
5916 (BEFORE_POTENTIAL_GC, AFTER_POTENTIAL_GC): New.
5917 (FETCH, PUSH, POP, DISCARD, TOP, MAYBE_GC): Rewritten.
5918 (HANDLE_RELOCATION): Removed.
5919 (Fbyte_code): Use byte_stack structures.
5920
4d59c34c
GM
5921 * filelock.c (Ffile_locked_p): Make FILENAME a required argument.
5922
fe512f27
GM
5923 * buffer.c (syms_of_buffer): Extend documentation of
5924 mode-line-format.
5925
60b64cd6
GM
59261999-11-04 Gerd Moellmann <gerd@gnu.org>
5927
5928 * editfns.c (Fdelete_field): Renamed from Ferase_field.
5929
5930 * minibuf.c (do_completion, Fminibuffer_complete_word): Use
5931 Ferase_field instead of Fdelete_field.
5932
b51b619b
GM
59331999-11-03 Gerd Moellmann <gerd@gnu.org>
5934
5935 * dispnew.c (Finternal_show_cursor): Change it to set the
5936 cursor on/off, not toggle its state.
5937 (Finternal_show_cursor_p): New.
5938 (syms_of_display): Defsubr Sinternal_show_cursor_p.
5939
5865af0d
DL
59401999-11-03 Dave Love <fx@gnu.org>
5941
5942 * charset.c (split_non_ascii_string): Define return value.
5943
82a700f3
GM
59441999-11-03 Gerd Moellmann <gerd@gnu.org>
5945
edfef199
GM
5946 * minibuf.c (string_to_object): New.
5947 (read_minibuf_noninteractive): New.
5948 (read_minibuf): Call read_minibuf_noninteractive if
5949 noninteractive. Use string_to_object.
5950
82a700f3
GM
5951 * doc.c (Fdocumentation_property): Fix bug bypassing UNGCPRO.
5952
b5540f0d
DL
59531999-11-02 Dave Love <fx@gnu.org>
5954
e69dcd60
DL
5955 * gnu-linux.h: Use SIGCHLD, not SIGCLD (not in glibc 2.1).
5956
827a1788
DL
5957 * process.c: Define _GNU_SOURCE before config.h to get strsignal
5958 declared with glibc2.
b5540f0d 5959
a69a6e61
GM
59601999-11-02 Gerd Moellmann <gerd@gnu.org>
5961
5962 * lisp.h (QUIT): Give it statement form.
5963
87e21fbd
DL
59641999-11-02 Dave Love <fx@gnu.org>
5965
5966 * eval.c (init_eval): Conditionalize declaration of gcpro_level.
5967
1b335865
GM
59681999-11-02 Gerd Moellmann <gerd@gnu.org>
5969
9fb5e03d
GM
5970 * xfns.c (QCuser_data): New.
5971 (syms_of_xfns): Initialize QCuser_data.
5972 (parse_image_spec): Ignore :user-data DATA properties.
5973
1b335865
GM
5974 * xdisp.c (display_line): Set charpos of first glyph in blank
5975 lines not corresponding to any text to -1, even if no glyphs are
5976 filled in in that line.
5977
e76f1c44
GM
59781999-11-01 Gerd Moellmann <gerd@gnu.org>
5979
427ec082 5980 * xfns.c (png_load) [PNG_READ_sRGB_SUPPORTED]: Put code using
36fcd3d9
GM
5981 png_get_sRGB in #ifdef.
5982
111259b4
GM
5983 * dispnew.c (Finternal_show_cursor): Renamed from Fshow_cursor.
5984 (syms_of_display): Use the new name.
5985
dd5c96e8
GM
5986 * textprop.c (verify_interval_modification): Signal text-read-only
5987 instead of calling error.
5988
db8878fb
GM
5989 * data.c (Qtext_read_only): New built-in error.
5990 (syms_of_data): Initialize it.
5991
5992 * lisp.h: Add extern declaration for Qtext_read_only.
5993
e76f1c44
GM
5994 * syntax.c: Remove whitespace after open or in front of closing
5995 parentheses.
5996
83c8f461 59971999-11-01 Richard M. Stallman <rms@gnu.org>
cb3a6c48
GM
5998
5999 * Makefile.in (w16select.o, sound.o): Don't depend on lisp.h.
6000
7843e09c
GM
60011999-10-31 Gerd Moellmann <gerd@gnu.org>
6002
575ed805
GM
6003 * xdisp.c (resize_mini_window): Compute needed height differently.
6004
7843e09c
GM
6005 * fns.c (Flength): Unroll loop over lists.
6006
6007 * xdisp.c (append_space): Return non-zero if space was appended.
6008 (display_line): Set charpos of first glyph to -1 only if that
6009 glyph is the space added by append_glyph.
6010
83c8f461 60111999-10-30 Richard M. Stallman <rms@gnu.org>
cb3a6c48
GM
6012
6013 * print.c (strout): Consider `noninteractive' and use stdout
6014 only when PRINTCHARFUN is t.
6015
6016 * lisp.h (struct gcpro) [DEBUG_GCPRO]: New field `level'.
6017 (gcpro_level): Declare it extern.
6018 [DEBUG_GCPRO] (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
6019 Alternate definitions that set `level' and increment `gcpro_level'.
6020 [DEBUG_GCPRO] (UNGCPRO): Alternate definition that checks gcpro_level.
6021
6022 * eval.c [DEBUG_GCPRO] (gcpro_level): New variable.
6023 (init_eval) [DEBUG_GCPRO]: Initialize it.
6024 (unwind_to_catch) [DEBUG_GCPRO]: Set gcpro_level
6025 from remaining gcprolist.
6026
3636f7a3
KH
60271999-10-29 Kenichi Handa <handa@etl.go.jp>
6028
6029 * coding.c (code_convert_region): Update `dst' correctly.
6030
a2ad7096
GM
60311999-10-28 Gerd Moellmann <gerd@gnu.org>
6032
6033 * fns.c (Fmemq, Fassq, Frassq, assq_no_quit, Fassoc)
6034 (Frassoc): Rewritten.
6035
1e3196e8
GM
60361999-10-27 Noah Friedman <friedman@splode.com>
6037
6038 * s/gnu-linux.h [HAVE_DEV_PTMX]: Redefine FIRST_PTY_LETTER to 'z'.
6039 Define PTY_NAME_SPRINTF.
6040 Redefine PTY_TTY_NAME_SPRINTF.
6041 * config.in: Add undef for HAVE_DEV_PTMX.
6042
83c8f461 60431999-10-26 Richard M. Stallman <rms@gnu.org>
4ea68fcc
RS
6044
6045 * regex.c (POP_FAILURE_POINT): Use failure_id.integer
6046 as arg to DEBUG_POP and DEBUG_PRINT.
6047
83c8f461 60481999-10-27 Richard M. Stallman <rms@gnu.org>
17dbfaad
GM
6049
6050 * data.c (Qad_activate_internal): Renamed from Qad_activate.
6051 (Ffset): Call Qad_activate_internal.
6052 (syms_of_data): Initialize Qad_activate_internal.
6053
26922151
GM
60541999-10-27 Gerd Moellmann <gerd@gnu.org>
6055
6056 * xdisp.c (echo_area_display) [HAVE_X_WINDOWS]: Do nothing if
6057 Vterminal_frame is selected and Vwindow_system is non-nil.
6058
67a5596f
GM
60591999-10-26 Gerd Moellmann <gerd@gnu.org>
6060
2bea706b
GM
6061 * xdisp.c (echo_area_display): Put previous change in #if 0.
6062
67a5596f
GM
6063 * emacs.c (standard_args): Add `file' as synonym for `visit',
6064 `execute' as synonym for `eval'.
6065 (main): Add new options to usage message.
6066
81dc5de5
GM
60671999-10-25 Gerd Moellmann <gerd@gnu.org>
6068
6069 * data.c (Qhash_table): New.
6070 (Ftype_of): Return it for hash tables.
6071 (syms_of_data): Initialize Qhash_table.
6072
83c8f461 60731999-10-25 Richard M. Stallman <rms@gnu.org>
bd3c545d
GM
6074
6075 * regex.c (POP_FAILURE_POINT): Extract failure_id as an integer.
6076
66e4690f 60771999-10-24 Ken Raeburn <raeburn@gnu.org>
3a7093d8 6078
7539e11f
KR
6079 * alloc.c: Undef HIDE_LISP_IMPLEMENTATION before including
6080 lisp.h.
6081
6082 * buffer.c (Fbuffer_list, Fget_file_buffer, get_truename_buffer,
6083 Fbuffer_local_variables, Fother_buffer, record_buffer,
6084 set_buffer_internal_1, Fbury_buffer, Fkill_all_local_variables,
6085 swap_out_buffer_local_variables, overlays_at, overlays_in,
6086 overlay_touches_p, overlay_strings, recenter_overlay_lists,
6087 fix_overlays_in_range, fix_overlays_before, Foverlay_get,
6088 Foverlay_put, report_overlay_modification, evaporate_overlays):
6089 Use XCAR, XCDR, and XFLOAT_DATA instead of explicit member
6090 references.
6091 * data.c (Fcar, Fcar_safe, Fcdr, Fcdr_safe, Fsetcar, Fsetcdr,
6092 swap_in_symval_forwarding, set_internal, default_value,
6093 Fset_default, Fmake_variable_buffer_local, Fmake_local_variable,
6094 Fmake_variable_frame_local, Flocal_variable_p,
6095 Flocal_variable_if_set_p, arithcompare, Fzerop, cons_to_long,
6096 Fnumber_to_string, float_arith_driver, Fadd1, Fsub1): Likewise.
6097 * dispnew.c (Fframe_or_buffer_changed_p): Likewise.
6098 * emacs.c (main): Likewise.
6099 * fontset.c (fs_load_font, fs_register_fontset,
6100 CACHED_FONTSET_NAME, CACHED_FONTSET_REGEX, Fquery_fontset,
6101 Fnew_fontset, Fset_fontset_font): Likewise.
6102 * frame.c (do_switch_frame, next_frame, prev_frame,
6103 other_visible_frames, Fdelete_frame, Fvisible_frame_list):
6104 Likewise.
6105 * keyboard.c (read_char, help_char_p, event_to_kboard,
6106 kbd_buffer_get_event, timer_start_idle, timer_check,
6107 make_lispy_event, apply_modifiers, reorder_modifiers,
6108 Fevent_convert_list, lucid_event_type_list_p, menu_bar_items,
6109 menu_bar_one_keymap, menu_item_eval_property_1, parse_menu_item,
6110 tool_bar_items, read_char_x_menu_prompt, read_key_sequence,
6111 Fcommand_execute, Fexecute_extended_command): Likewise.
6112 * minibuf.c (read_minibuf, get_minibuffer, Ftry_completion,
6113 Fall_completions): Likewise.
6114 * window.c (Fset_window_margins): Likewise.
6115
6116 * callint.c (quotify_args): Don't explicitly use struct
6117 Lisp_Cons, use Lisp_Object and XCAR/XCDR instead.
6118
3a7093d8
KR
6119 * s/netbsd.h (HAVE_GETLOADAVG): Define as 1.
6120 (UNEXEC, START_FILES, LIB_STANDARD, LIB_GCC): Define ELF versions,
6121 if __ELF__ is defined.
6122
2a3d7146
GM
61231999-10-24 Gerd Moellmann <gerd@gnu.org>
6124
6125 * window.c (Fnext_window): Add a QUIT in the loop.
6126
8ac52782
GM
61271999-10-23 Gerd Moellmann <gerd@gnu.org>
6128
427ec082 6129 * Makefile.in (bootstrap, bootstrap-emacs, bootstrap-temacs):
8ac52782
GM
6130 New targets.
6131
05f0d15a
DL
61321999-10-22 Dave Love <fx@gnu.org>
6133
6134 * emacs.c (main): Enable profiling conditional on __linux also.
6135
882fb0e6
GM
61361999-10-20 Gerd Moellmann <gerd@gnu.org>
6137
6138 * xrdb.c (x_load_resources): Set default resources for resource
6139 classes instead of for the specific Emacs.
6140
b5f5bc31
GM
61411999-10-19 Gerd Moellmann <gerd@gnu.org>
6142
66f4dd69
GM
6143 * s/freebsd.h (HAVE_GETLOADAVG): Define as 1 because config.h
6144 defines it that way.
427ec082 6145
b5f5bc31
GM
6146 * xdisp.c (echo_area_display) [HAVE_X_WINDOWS]: Do nothing
6147 if selected_frame is equal to Vterminal_frame.
6148
68c45bf0 61491999-10-19 Paul Eggert <eggert@twinsun.com>
427ec082 6150
68c45bf0 6151 Add support for large files, 64-bit Solaris, system locale codings.
427ec082 6152
68c45bf0
PE
6153 * Makefile.in (emacs): Set the LC_ALL environment variable to "C"
6154 when dumping, so that the dumped Emacs doesn't have stray locale info.
6155 (dired.o): Depend on systime.h.
6156 (editfns.o): Depend on coding.h.
6157
6158 * alloc.c, buffer.c, callproc.c, ccl.c, charset.c, coding.c, data.c,
6159 dispnew.c, editfns.c, emacs.c, filelock.c, floatfns.c, hftctl.c,
6160 keyboard.c, process.c, sysdep.c, unexelf.c, unexhp9k800.c,
6161 unexsunos4.c, vmsfns.c, vmsgmalloc.c, w32faces.c, w32menu.c, w32term.c,
6162 w32xfns.c, xfaces.c, xfns.c, xmenu.c, xterm.c:
6163 Include <config.h> before any system include files.
6164
6165 * alloc.c, buffer.c, ccl.c, data.c, editfns.c, emacs.c, eval.c,
6166 fileio.c, filelock.c, frame.c, insdel.c, keymap.c, lread.c,
6167 m/alpha.h, print.c, search.c, sysdep.c, xdisp.c, xfaces.c, xfns.c,
6168 xmenu.c, xterm.c:
6169 Do not include <stdlib.h>, as <config.h> does this now.
6170
6171 * callproc.c (Fcall_process):
6172 Synchronize messages locale before invoking strerror.
6173 Decode resulting string with locale-coding-system.
6174
6175 * coding.c (Vlocale_coding_system): New var.
6176 (syms_of_coding): Adjust to above change.
6177 (emacs_strerror): New function.
6178
6179 * coding.h (emacs_strerror, Vlocale_coding_system): New decls.
427ec082 6180
68c45bf0
PE
6181 * config.in (HAVE_STDIO_EXT_H, HAVE_TM_GMTOFF, HAVE___FPENDING,
6182 HAVE_FTELLO, HAVE_GETLOADAVG, HAVE_MBLEN, HAVE_MBRLEN,
6183 HAVE_STRSIGNAL): New macros.
6184 (BITS_PER_LONG): Default to 64 if _LP64 is defined.
6185 <stdlib.h>: Include if HAVE_STDLIB_H is defined and NOT_C_CODE isn't.
6186
6187 * dired.c: Include "systime.h".
6188 (Ffile_attributes): Do not cast s.st_size to int; this loses
6189 information if int is 32 bits but st_size and EMACS_INT are larger.
6190 Treat large device numbers like large inode numbers.
6191
6192 * dispnew.c (PENDING_OUTPUT_COUNT): Use __fpending if available.
6193
6194 * editfns.c: Include coding.h.
6195 (emacs_strftime): Remove decl.
6196 (emacs_strftimeu): New decl.
6197 (emacs_memftimeu): Renamed from emacs_memftime; new arg UT.
6198 Use emacs_strftimeu instead of emacs_strftime.
6199 (Fformat_time_string): Convert format string using
6200 Vlocale_coding_system, and convert result back. Synchronize time
6201 locale before invoking lower level function. Invoke
6202 emacs_memftimeu, passing ut, instead of emacs_memftime.
427ec082 6203
68c45bf0
PE
6204 * emacs.c: Include <locale.h> if HAVE_SETLOCALE is defined.
6205 (Vmessages_locale, Vprevious_messages_locale, Vtime_locale,
6206 Vprevious_time_locale): New variables.
6207 (main): Invoke setlocale early, so that initial error messages are
6208 localized properly. But skip locale-setting if LC_ALL is "C".
6209 Fix up locale when it's safe to do so.
6210 (fixup_locale): Moved here from xterm.c.
6211 (synchronize_locale, synchronize_time_locale,
6212 synchronize_messages_locale): New functions.
6213 (syms_of_emacs): Accommodate above changes.
6214
6215 * fileio.c (report_file_error): Convert strerror output according
6216 to Vlocale_coding_system.
6217 (Finsert_file_contents): Check for arithmetic overflow in
6218 computations that depend on file size. Report IO errors
6219 with emacs_strerror, not strerror.
6220
6221 * fns.c (Fgethash): Declare dflt parameter.
6222
6223 * gmalloc.c: Do not define const to nothing if HAVE_CONFIG_H
6224 is defined; that's config.h's job.
6225
6226 * lisp.h (EMACS_INT, BITS_PER_EMACS_INT, EMACS_UINT): If _LP64,
6227 default these values to long, BITS_PER_LONG, and unsigned long.
6228 (VALBITS, MARKBIT, XINT): Do not assume 32-bit EMACS_INT.
6229 (PNTR_COMPARISON_TYPE): Default to EMACS_UINT, not to unsigned int.
6230 (code_convert_string_norecord, fixup_locale,
6231 synchronize_messages_locale, synchronize_time_locale,
6232 emacs_open, emacs_close, emacs_read, emacs_write): New decls.
6233 All Emacs callers of open, close, read, write changed to use
6234 emacs_open, emacs_close, emacs_read, emacs_write.
6235
6236 * lread.c (file_offset, file_tell): New macros. All uses of ftell
6237 changed to file_tell.
6238 (saved_doc_string_position, prev_saved_doc_string_position): Now
6239 of type file_offset.
6240 (init_lread): Do not fix locale here; fixup_locale now does this.
6241
6242 * m/amdahl.h, s/usg5-4.h:
6243 (NSIG): Remove.
6244 (NSIG_MINIMUM): New macro.
6245
6246 * m/cydra5.h, m/dpx2.h, m/mips.h, m/pfa50.h, m/sps7.h, m/stride.h,
6247 m/ustation.h, s/gnu-linux.h, s/hpux.h, s/iris3-5.h, s/iris3-6.h,
6248 s/umips.h, s/usg5-4.h:
6249 (SIGIO): Do not undef.
6250 (BROKEN_SIGIO): New macro.
6251
6252 * m/ustation.h:
6253 (SIGTSTP): Do not undef.
6254 (BROKEN_SIGTSTP): New macro.
6255
6256 * s/gnu-linux.h:
6257 (SIGPOLL, SIGURG): Do not undef.
6258 (BROKEN_SIGPOLL, BROKEN_SIGURG): New macros.
6259
6260 * s/ptx4.h:
6261 (SIGINFO): Do not undef.
6262 (BROKEN_SIGINFO): New macros.
427ec082 6263
68c45bf0
PE
6264 * m/delta.h, s/ptx.h, s/template.h: Doc fix.
6265
6266 * mktime.c, strftime.c: Update to glibc 2.1.2 version, with
6267 some Emacs-related changes merged.
6268
6269 * print.c (float_to_string): Prepend "-" to representation of a
6270 NaN if the NaN is negative.
6271
6272 * process.c (sys_siglist): Omit if HAVE_STRSIGNAL.
6273 (wait_reading_process_input): Use emacs_strerror, not strerror.
427ec082 6274
68c45bf0
PE
6275 * process.c (status_message, sigchld_handler): Synchronize locale,
6276 then use strsignal istead of sys_siglist.
6277 * w32proc.c (sys_wait): Likewise.
427ec082 6278
68c45bf0
PE
6279 * s/aix3-1.h, s/bsd4-1.h, s/dgux.h, s/gnu-linux.h, s/hiuxmpp.h,
6280 s/hpux.h, s/iris3-5.h, s/iris3-6.h, s/irix3-3.h, s/osf1.h, s/rtu.h,
6281 s/sunos4-1.h, s/unipl5-0.h, s/unipl5-2.h, s/usg5-0.h, s/usg5-2-2.h,
6282 s/usg5-2.h, s/usg5-3.h, s/xenix.h:
6283 (open, close, read, write, INTERRUPTIBLE_OPEN,
6284 INTERRUPTIBLE_CLOSE, INTERRUPTIBLE_IO): Remove.
6285
6286 * s/sol2-5.h (_LARGEFILE_SOURCE, _FILE_OFFSET_BITS): New macros.
6287
6288 * sysdep.c (sys_read, sys_write, read, write, sys_close, close,
6289 sys_open, open): Remove.
6290 (emacs_open, emacs_close, emacs_read, emacs_write): Always define;
6291 the old INTERRUPTIBLE_OPEN, INTERRUPTIBLE_CLOSE, and INTERRUPTIBLE_IO
6292 macros are no longer used.
6293 (emacs_open): Renamed from sys_open. Merge BSD4_1 version.
6294 (emacs_close): Renamed from sys_close.
6295 (emacs_read): Renamed from sys_read.
6296 (emacs_write): Renamed from sys_write.
6297 (sys_siglist): Do not declare if HAVE_STRSIGNAL.
6298 (dup2): Do not print error on failure; the real dup2 doesn't.
6299 (strsignal): New function, defined if !HAVE_STRSIGNAL.
6300
6301 * syssignal.h (SIGINFO): Undef if defined and if BROKEN_SIGINFO
6302 is defined.
6303 (SIGIO, SIGPOLL, SIGTSTP, SIGURG): Likewise.
6304 (NSIG): If less than NSIG_MINIMUM, define to NSIG_MINIMUM.
6305 (strsignal): Declare if !HAVE_STRSIGNAL.
6306
6307 * unexelf.c (ElfBitsW, ELFSIZE, ElfExpandBitsW): New macros.
6308 (ElfW): Define in terms of ElfExpandBitsW.
6309
6310 * w32proc.c (sys_siglist): Remove decl.
6311
6312 * xdisp.c (decode_mode_spec): 3rd arg is int, not char, to comply
6313 with ANSI C.
6314 (display_string): Declare face_string_pos arg.
6315
6316 * xfns.c (Fx_show_tip): Declare timeout param.
6317
6318 * xterm.c: No need to include locale.h.
6319 (x_alloc_lighter_color, x_setup_relief_color):
6320 Pass arg as double, not float, for compatibility with ANSI C.
6321 (fixup_locale): Move to emacs.c.
6322 (x_term_init): Do not setlocale or fixup locale; the main program
6323 does this now.
6324
2f0b74ea
DL
63251999-10-18 Dave Love <fx@gnu.org>
6326
6327 * doc.c (Fdocumentation_property): Gcpro `tem'.
6328
471aa4a0
KH
63291999-10-18 Kenichi Handa <handa@etl.go.jp>
6330
6331 * lread.c (Fload): Calculate bytes of filename correctly.
6332 (openp): Likewise.
6333
aca2020b
KH
63341999-10-18 Keisuke Nishida <kxn30@po.cwru.edu>
6335
6336 * print.c (print_preprocess): In case print-circle is nil,
6337 add OBJ to Vprint_number_table only when OBJ is a symbol.
6338
1f5fe392 63391999-10-18 Kenichi Handa <handa@etl.go.jp>
b843d1ae
KH
6340
6341 * coding.c (code_convert_string): Add record_unwind_protect to
6342 assure setting inhibit_pre_post_conversion back to zero. Take
6343 care of the multibyteness of the working buffer.
6344
6345 * coding.c (inhibit_pre_post_conversion): New variable.
6346 (setup_coding_system): If inhibit_pre_post_conversion is nonzero,
6347 ignore post-read-conversion and pre-write-conversion property of
6348 the coding system.
6349 (code_convert_region_unwind): New function.
6350 (code_convert_region): Set inhibit_pre_post_conversion to 1 while
6351 running pre-write-conversion and post-read-conversion.
6352 (code_convert_string): Likewise.
6353
cd876a91
GM
63541999-10-17 Miles Bader <miles@gnu.org>
6355
6356 * editfns.c: Doc fix.
6357
63581999-10-17 Miles Bader <miles@gnu.org>
6359
6360 * editfns.c (Fconstrain_to_field): Make sure we don't violate the
6361 argument preconditions of find_before_next_newline in the case
6362 where both ONLY_IN_LINE and ESCAPE_FROM_EDGE are set and OLD_POS
6363 was indeed at the edge.
6364
63651999-10-17 Miles Bader <miles@gnu.org>
6366
6367 * minibuf.c (Fminibuffer_complete_and_exit): Supply value for new
6368 ESCAPE_FROM_EDGE parameter to Ffield_beginning.
6369
6370 * editfns.c (text_property_eq, text_property_stickiness): Don't
6371 use initializers for auto variables of type Lisp_Object.
6372 (find_field): Likewise. Use braces around nested ifs.
6373 (Fline_end_position): Store the raw eol in a variable, so that the
6374 final expression doesn't look so ugly.
6375 (Fconstrain_to_field): Doc fix.
6376 (preceding_pos): Renamed from `preceeding_pos'.
6377 (text_property_stickiness, find_field): Call preceding_pos,
6378 not preceeding_pos.
6379
63801999-10-17 Miles Bader <miles@gnu.org>
6381
6382 * editfns.c (Ffield_string_no_properties): New function.
6383 (text_property_stickiness, preceeding_pos): New functions.
6384 (Ffield_string): Remove PROPS parameter.
6385 (find_field): Add MERGE_AT_BOUNDARY parameter.
6386 Rewrite to use stickiness of `field' property to resolve
6387 ambiguous cases.
6388 (Ffield_beginning, Ffield_end): Add ESCAPE_FROM_EDGE parameter.
6389 (Fconstrain_to_field): Likewise.
6390 (syms_of_editfns): Init Sfield_string_no_properties.
427ec082 6391 (Ffield_string, Ferase_field, Ffield_end):
cd876a91
GM
6392 Supply new MERGE_AT_BOUNDARY argument to find_field.
6393 (Fline_beginning_position, Fline_end_position): Supply new
6394 ESCAPE_FROM_EDGE parameter to Fconstrain_to_field.
6395 Pass a value of Qt for the ONLY_IN_LINE argument to
6396 Fconstrain_to_field (only matters if N != 1).
6397 * syntax.c (Fforward_word): Supply new ESCAPE_FROM_EDGE parameter
6398 to Fconstrain_to_field.
6399
6400 * minibuf.c (Fminibuffer_complete_word): Use
6401 Ffield_beginning to find the prompt end.
6402
64031999-10-17 Miles Bader <miles@gnu.org>
6404
6405 * editfns.c (Fconstrain_to_field): Add get/set-current-point
6406 behavior when NEW_POS is nil.
6407 (find_field): Use XSETFASTINT instead of make_number.
6408 * minibuf.c (Fminibuffer_complete_and_exit): Test for an empty
6409 input string by seeing where the field begins, instead of
6410 looking at text-properties.
6411
64121999-10-17 Miles Bader <miles@gnu.org>
6413
6414 * editfns.c (Qfield): New variable.
6415 (find_field, Ferase_field, Ffield_string,
6416 Ffield_beginning, Ffield_end, Fconstrain_to_field): New functions.
6417 (Fline_beginning_position, Fline_end_position): Constrain to any field.
6418 (make_buffer_string_both): Remove minibuffer-prompt hack.
6419 (syms_of_editfns): Initialize Qfield, and subr entries for
6420 field functions above.
6421 * minibuf.c (read_minibuf): Don't save minibuffer prompt length on
6422 minibuf_save_list.
6423 Don't initialize minibuffer prompt length.
6424 Wrap prompt text-properties around the entire prompt.
6425 Add 'prompt text-property to prompt.
6426 Get final value with Ffield_string instead of make_buffer_string.
6427 (read_minibuf_unwind): Don't restore minibuffer prompt length from
6428 minibuf_save_list.
6429 (do_completion): Get minibuffer input with Ffield_string
6430 instead of Fbuffer_string.
6431 Erase minibuffer input with Ferase_field instead of erase_buffer.
6432 (Fminibuffer_complete_and_exit): Likewise.
6433 Test whether buffer is empty by looking for the 'prompt text
6434 property at the end.
6435 Set prompt length by looking for the end of the prompt text property,
6436 and save prompt length for later use (since there is no longer a
6437 buffer variable to get it from).
6438 (Fminibuffer_prompt_width, Fminibuffer_prompt_end): Functions removed.
6439 (syms_of_minibuf): Remove initializations of
6440 Sminibuffer_prompt_width and Sminibuffer_prompt_end.
6441 * buffer.h (struct buffer): Remove prompt_end_charpos field.
427ec082 6442 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer, Fkill_buffer):
cd876a91
GM
6443 Don't initialize prompt_end_charpos field.
6444 * syntax.c (Fforward_word): Likewise.
6445 Constrain to any field.
6446
3f6f7508
GM
64471999-10-16 Gerd Moellmann <gerd@gnu.org>
6448
6449 * window.c (enum save_restore_action): New.
6450 (save_restore_orig_size): Change parameter list. Add
6451 functionality to check for valid orig_top and orig_height members
6452 in a window tree.
6453 (grow_mini_window): Call save_restore_orig_size with new parameter
6454 list.
6455 (shrink_mini_window): Restore old window sizes only if old
6456 size information is valid in all windows in a window tree.
427ec082 6457
06482119
GM
64581999-10-15 Gerd Moellmann <gerd@gnu.org>
6459
2710454d
GM
6460 * xmenu.c (set_frame_menubar): Don't call
6461 x_set_menu_resources_from_menu_face here.
6462 (update_frame_menubar): Call x_set_menu_resources_from_menu_face.
6463
06482119
GM
6464 * xfns.c (gif_load): Fix handling of interlaced GIFs.
6465
17fa2837
DL
64661999-10-14 Dave Love <fx@gnu.org>
6467
6468 * xdisp.c (handle_fontified_prop): GCPRO `pos'.
6469
45f93416
GM
64701999-10-14 Gerd Moellmann <gerd@gnu.org>
6471
6472 * process.c (Fopen_network_stream): Don't loop if gethostbyname
6473 fails and h_errno is TRY_AGAIN.
6474
c765b723
DL
64751999-10-13 Dave Love <fx@gnu.org>
6476
6477 * filelock.c (lock_file): Move gcpro of `fn'.
6478
dace7f4e
GM
64791999-10-10 Gerd Moellmann <gerd@gnu.org>
6480
6481 * keyboard.c (auto-save-interval): Fix documentation.
427ec082 6482
83c8f461 64831999-10-09 Richard M. Stallman <rms@gnu.org>
73fb36f1
RS
6484
6485 * print.c (print): When removing objects from Vprint_number_table,
6486 only scan the newly added objects.
6487 (print_preprocess): If OBJ is a gensym, and print-continuous-numbering,
6488 unconditionally force it to stay in the table.
6489
85177c86
GM
64901999-10-09 Gerd Moellmann <gerd@gnu.org>
6491
6492 * xfns.c (prepare_image_for_display): Don't try to load image if
6493 loading it failed before.
6494 (lookup_image, prepare_image_for_display): Remember if loading the
6495 image failed.
6496 (xpm_load): Add missing UNBLOCK_INPUT.
6497
6498 * dispextern.h (struct image): New member load_failed_p.
6499
11e4de5d
SM
65001999-10-08 Stefan Monnier <monnier@cs.yale.edu>
6501
f28eba7b 6502 * fileio.c (Fmake_temp_name): Add a reference to `make-temp-file'
11e4de5d
SM
6503 in the docstring.
6504
f1da8f06
GM
65051999-10-08 Gerd Moellmann <gerd@gnu.org>
6506
6507 * xterm.c (XTread_socket) <ClientMessage, WM_TAKE_FOCUS>:
6508 Don't call XSetInputFocus because that can generate additional
6509 FocusIn events.
427ec082 6510
c37bbd4f
GM
65111999-10-07 Jeffrey C Honig <jch@bsdi.com>
6512
6513 * bsdos4.h [HAVE_LIBNCURSES]: Define TERMINFO and LIBS_TERMCAP.
6514
83c8f461 65151999-10-07 Richard M. Stallman <rms@gnu.org>
78cc5c64
GM
6516
6517 * process.c (wait_reading_process_input): When trying to suck
6518 input from one process, for accept-process-output,
6519 exit that loop if we get EAGAIN or EWOULDBLOCK.
6520
577d9e2f
GM
65211999-10-07 Gerd Moellmann <gerd@gnu.org>
6522
6523 * xfaces.c (Qbitmap_spec_p): Replaces Qpixmap_spec_p.
6524 (Fbitmap_spec_p): Replaces Fpixmap_spec_p.
6525 (load_pixmap): Use Fbitmap_spec_p and Qbitmap_spec_p instead of
6526 Fpixmap_spec_p and Qpixmap_spec_p.
6527 (load_face_colors, check_lface_attrs,
6528 merge_face_vector_with_property,
6529 Finternal_set_lisp_face_attribute): Use Fbitmap_spec_p.
6530 (syms_of_xfaces): Initialize Qbitmap_spec_p, defsubr
6531 Fbitmap_spec_p.
6532
f5737ad2
GM
65331999-10-07 Gerd Moellmann <gerd@gnu.org>
6534
6535 * xdisp.c (display_menu_bar): Use MENU_FACE_ID instead of
6536 MODE_LINE_FACE_ID.
6537
6538 * xfaces.c (toplevel) [USE_MOTIF]: Include some Motif headers.
6539 (struct x_resources) [USE_X_TOOLKIT]: New.
6540 (xm_apply_resources, xm_set_menu_resources_from_menu_face)
6541 [USE_MOTIF]: New.
6542 (xl_apply_resources, xl_set_menu_resources_from_menu_face)
6543 [USE_LUCID]: New.
6544 (x_set_menu_resources_from_menu_face) [USE_X_TOOLKIT]: New.
6545 (Qmenu): New.
6546 (syms_of_xfaces): Initialize Qmenu.
6547 (realize_basic_faces): Realize face `menu'.
6548 (resolve_face_name): New.
6549 (lface_from_face_name): Use it.
6550 (Finternal_set_lisp_face_attribute): Ditto.
6551 (Fpixmap_spec_p): Rewritten. Extend doc string.
6552
6553 * xmenu.c (set_frame_menubar, xmenu_show): Call
6554 x_set_menu_resources_from_menu_face.
6555
6556 * dispextern.h (enum face_id): Add MENU_FACE_ID.
6557 (toplevel): Include X11/Intrinsic.h.
6558
6a1aa823
DL
65591999-10-03 Ken'ichi Handa <handa@gnu.org>
6560
6561 * coding.c (DECODE_CHARACTER_ASCII): Decode ASCII invocated to GR
6562 correctly.
6563
26901792
DL
65641999-09-30 Kenichi Handa <handa@etl.go.jp>
6565
6566 * category.c (modify_lower_category_set): Set default value of
6567 TABLE correctly.
6568
6569 * minibuf.c (Fminibuffer_complete_word): Calculate string byte
6570 size correctly.
6571
65721999-09-29 Gerd Moellmann <gerd@gnu.org>
6573
6574 * editfns.c (Fpropertize): Renamed from Fproperties.
6575
65761999-09-29 Gerd Moellmann <gerd@gnu.org>
6577
6578 * xdisp.c (resize_mini_window): Do nothing if frame is an X
6579 frame that hasn't been initialized yet.
6580
83c8f461 65811999-09-28 Richard M. Stallman <rms@gnu.org>
a04f1a93
PR
6582
6583 * keymap.c (Fsingle_key_description): Make tem big enough.
6584 (describe_buffer_bindings): Make buf big enough.
6585
83c8f461 65861999-09-27 Richard M. Stallman <rms@gnu.org>
d177c583
PR
6587
6588 * intervals.c (get_local_map): Use indirect_function,
6589 not Findirect_function.
6590
26901792
DL
65911999-09-27 Dave Love <fx@gnu.org>
6592
6593 * cm.h: Remove unneeded declaration of ospeed.
6594
65951999-09-26 Gerd Moellmann <gerd@gnu.org>
6596
6597 * lisp.h (toplevel): Add prototype for
6598 next_single_char_property_change.
6599
6600 * textprop.c (next_single_char_property_change): New.
6601
6602 * xdisp.c (display_prop_end, invisible_text_between_p): Use
6603 next_single_char_property_change.
6604
66051999-09-25 Gerd Moellmann <gerd@gnu.org>
6606
6607 * editfns.c (Fproperties): New.
6608 (syms_of_editfns): Defsubr it.
6609
6610 * xfns.c (lookup_image): Set image's timestamp because it's
6611 used when we look it up.
6612
66131999-09-23 Gerd Moellmann <gerd@gnu.org>
6614
6615 * window.c (enlarge_window): Add window parameter instead of using
6616 selected_window.
6617 (Fdisplay_buffer): Call it with window parameter instead of
6618 setting selected_window.
6619 (Fenlarge_window, Fshrink_window): Ditto.
6620 (shrink_mini_window): If there is no recorded height and position
6621 info, resize mini-window to height 1.
6622
6623 * xfns.c (image_error): Use add_to_log.
6624
6625 * xfaces.c (load_pixmap): Call add_to_log without frame parameter.
6626 (load_face_font_or_fontset, load_color,
6627 merge_face_vector_with_property): Ditto.
6628
6629 * dispextern.h: Add prototype for add_to_log.
6630
6631 * xfaces.c (add_to_log): Move to xdisp.c.
6632
6633 * xdisp.c (add_to_log): Moved from xfaces.c. Remove frame
6634 parameter.
6635
66361999-09-23 Gerd Moellmann <gerd@gnu.org>
6637
6638 * xterm.c (XTread_socket) <MotionNotify>: Change #ifdef
6639 USE_X_TOOLKIT to #ifdef USE_TOOLKIT_SCROLL_BARS.
6640
6641 * xdisp.c (resize_mini_window): Use grow_mini_window and
6642 shrink_mini_window.
6643
6644 * window.c (window_min_size): Add parameter ignore_fixed_p.
6645 (change_window_height): Call window_min_size with new parameter.
6646 (shrink_window_lowest_first, save_restore_orig_size,
6647 grow_mini_window, shrink_mini_window): New.
6648 (make_window, replace_window): Initialize orig_top and
6649 orig_height.
6650 (enlarge_window): Renamed from change_window_height. Make it
6651 static.
6652 (Fdisplay_buffer, Fenlage_window, Fshrink_window): Call
6653 enlarge_window instead of change_window_height.
6654
6655 * window.h (struct window): New members orig_top, orig_height.
6656 (toplevel): Add prototypes for grow_mini_window and
6657 shrink_mini_window. Remove prototype for change_window_height.
6658
66591999-09-21 Eli Zaretskii <eliz@gnu.org>
6660
6661 * frame.c (frame_name_fnn_p): Fix previous change.
6662
66631999-09-20 Gerd Moellmann <gerd@gnu.org>
6664
6665 * minibuf.c (toplevel): Move include of stdio.h to other includes.
6666
6667 * dispnew.c (direct_output_for_insert): Cast arguments to
6668 safe_bcopy to char *.
6669
6670 * lread.c (readchar): Remove unused variables.
6671 (read_filtered_event, read1, Fmapatoms): Ditto.
6672 (toplevel): Include intervals.h.
6673
6674 * eval.c (Fsignal): Remove unused variables.
6675 (Fcommandp, do_autoload): Ditto.
6676
6677 * lisp.h: Add prototype for safe_bcopy, fatal.
6678
6679 * editfns.c (init_editfns): Remove unused variables.
6680 (Fgoto_char, Fchar_after, Fformat): Ditto.
6681 (message_text, message_length): Put in #ifndef HAVE_MENUS.
6682
6683 * data.c (find_symbol_value): Remove unused variables.
6684 (Faref, Fstring_to_number): Ditto.
6685 (toplevel): Include stdio.h.
6686 (Fnumber_to_string): Cast XINT to long for %ld.
6687
6688 * casefiddle.c (casify_object): Remove unused variables.
6689 (casify_region): Ditto.
6690
427ec082 6691 * filelock.c (get_boot_time): Put local variable used in
26901792
DL
6692 conditinally compiled section in #ifdef.
6693 (toplevel): Include stdio.h.
6694
6695 * keymap.c (Flookup_key, Faccessible_keymaps, describe_vector,
6696 keys_of_keymap, syms_of_keymap): Remove unused variables.
6697
66981999-09-20 Gerd Moellmann <gerd@gnu.org>
6699
6700 * xdisp.c (sync_frame_with_window_matrix_rows): Disable frame rows
6701 whose corresponding window rows have been disabled in
6702 try_window_id.
6703
67041999-09-20 Gerd Moellmann <gerd@gnu.org>
6705
6706 * xdisp.c (compute_window_start_on_continuation_line): Handle case
6707 that window start is out of range.
6708 (handle_display_prop, handle_single_display_prop): Replace
6709 marginal area specifications like `left-margin' with `(margin
6710 left-margin)'.
6711 (Qmargin): New.
6712 (syms_of_xdisp): Initialize Qmargin.
6713
67141999-09-19 Gerd Moellmann <gerd@gnu.org>
6715
6716 * syntax.c (update_syntax_table, find_defun_start, back_comment,
6717 describe_syntax, skip_chars): Remove unused variables.
6718 (back_comment, forw_comment): Add braces to if-statement with
6719 if-else as dependent statement.
6720
6721 * process.c (list_processes_1): Remove unused variables.
6722 (Fopen_network_stream, create_process): Add parentheses to
6723 conditional expressions.
6724 (create_process): Put declaration of sigchld in #if 0.
6725 (Fopen_network_stream): Removed unused variables.
6726 (Fopen_network_stream, wait_reading_process_input,
6727 wait_reading_process_input, send_process, send_process): Ditto.
6728 (toplevel): Add prototypes for set_waiting_for_input and
6729 keyboard_bit_set.
6730
6731 * abbrev.c (Fexpand_abbrev): Remove unused variables.
6732
6733 * textprop.c (Fset_text_properties): Remove unused variables.
6734 (text_property_list, verify_interval_modification,
6735 interval_has_all_properties): Ditto.
6736
6737 * callproc.c (toplevel) [HAVE_UNISTD_H]: Include unistd.h.
6738 (Fcall_process): Remove unused variable.
6739
6740 * keyboard.c (Frecursive_edit): Remove unused variable.
6741 (command_loop_1, safe_run_hooks, kbd_buffer_get_event,
6742 timer_check, make_lispy_event, menu_bar_items,
6743 menu_bar_one_keymap, menu_bar_item, parse_menu_item,
6744 parse_tool_bar_item, read_char_x_menu_prompt, read_key_sequence,
6745 kbd_buffer_get_event, make_lispy_event, read_char_x_menu_prompt,
6746 read_key_sequence): Ditto. Fread_key_sequence,
6747 Fread_key_sequence_vector, Fsuspend_emacs): Ditto.
6748 (read_key_sequence) [GOBBLE_FIRST_EVENT]: Put local variables only
6749 used when GOBBLE_FIRST_EVENT is defined in #ifdef
6750 (Fexecute_extended_command): Cast XINT to long for %ld.
6751 (toplevel) [HAVE_UNISTD_H]: Include unistd.h.
6752 (toplevel): Include sys/types.h.
6753
6754 * lisp.h (RETURN_UNGCPRO): Use do-while (0) idiom.
6755 (toplevel): Add prototypes for stuff_char, and
6756 code_convert_string_norecord.
6757
67581999-09-19 Gerd Moellmann <gerd@gnu.org>
6759
6760 * buffer.h: Add prototype for r_re_alloc.
6761
6762 * insdel.c (copy_text): Removed unused variables.
6763 (count_combining_after, count_combining_after, insert_1_both,
6764 insert_from_string_1, insert_from_buffer_1, check_markers): Ditto.
6765 (adjust_after_replace, replace_range): Add parentheses to logical
6766 expressions. Remove unused variables.
6767 (CHECK_BYTE_COMBINING_FOR_INSERT): Add parentheses to logical
6768 expression.
6769
6770 * alloc.c (Fgarbage_collect): Remove unused variable.
6771 (compact_strings): Add parentheses around assignments in
6772 conditional context.
6773 (toplevel): Put declaration of unused function clear_marks
6774 in #if 0 like its definition.
6775
6776 * lisp.h: Add prototype for shrink_regexp_cache,
6777 sweep_weak_hash_tables.
6778
67791999-09-19 Dave Love <fx@gnu.org>
6780
6781 * process.c (Fopen_network_stream): Use strerror, not gai_strerror.
6782
6783 * doc.c (read_bytecode_char): Declare arg.
6784
6785 * lisp.h: Declare Fcurrent_message, Fmake_temp_name,
6786 read_bytecode_char, Fx_hide_busy_cursor, getloadavg.
6787
67881999-09-18 Richard Stallman <rms@gnu.org>
6789
6790 * xdisp.c (echo_area_display): Turn off code that returned
6791 without doing anything when using a terminal frame.
6792
83c8f461 67931999-09-17 Richard M. Stallman <rms@gnu.org>
27271329
PR
6794
6795 * unexelf.c (unexec): Don't get confused by a short section
6796 just before the bss section.
6797
26901792
DL
67981999-09-16 Gerd Moellmann <gerd@gnu.org>
6799
6800 * emacs.c (main): Remove unused variables.
6801 (sort_args, Fkill_emacs, Fkill_emacs): Ditto.
6802
6803 * lisp.h: Add prototype for uninterrupt_malloc, memory_warnings,
6804 init_fileio_once, syms_of_sound, init_xfns, init_fns
6805 init_sound, check_message_stack.
6806
6807 * emacs.c (toplevel) [HAVE_UNISTD_H]: Include unistd.h.
6808
6809 * intervals.c (rotate_right, rotate_left): Add braces to avoid
6810 ambiguous else warning.
6811 (split_interval_left): Remove unused variables.
6812 (previous_interval, adjust_intervals_for_deletion,
6813 set_point_both, set_point_both, set_intervals_multibyte_1): Ditto.
6814 (icount, idepth, zero_length): Move into #if 0 section below
6815 original position where these are used.
6816
6817 * buffer.h [REL_ALLOC]: Add prototypes for r_alloc and r_alloc_free.
6818
6819 * buffer.c (Fkill_buffer): Remove unused variables.
6820 (Fkill_buffer, overlays_at, overlays_in, recenter_overlay_lists,
6821 fix_overlays_in_range, Fmove_overlay, Fprevious_overlay_change,
6822 init_buffer_once, (syms_of_buffer): Ditto.
6823
6824 * xrdb.c (get_fallback): Remove unused variable.
6825 (x_load_resources): Ditto. Put local variable used for Motif only
6826 in #ifdef USE_MOTIF.
6827
68281999-09-16 Gerd Moellmann <gerd@gnu.org>
6829
6830 * minibuf.c (read_minibuf): Remove unused variables.
6831 (read_minibuf, Fread_buffer, scmp, Fcompleting_read): Ditto.
6832 (do_completion): Move assignment out of conditional context.
6833 (Fdisplay_completion_list): Add parentheses to conditional expression.
6834
6835 * cm.c (toplevel) [HAVE_TERMCAP_H]: Include termcap.h.
6836
6837 * lisp.h: Add prototype for no_switch_window.
6838
6839 * window.c (Fset_window_buffer): Remove unused variables.
6840 (Fset_window_margins): Ditto.
6841
6842 * xdisp.c (resize_mini_window): Temporarily set the selected
6843 window's or Vminibuf_scroll_window's height to "fixed" around
6844 the call the change_window_height.
6845
6846 * window.c (window_fixed_size_p): Check window's height_fixed_p
6847 flag.
6848
6849 * window.h (struct window): New member height_fixed_p.
6850
6851 * dispnew.c (direct_output_forward_char): Don't use this method
6852 if showing a message or a message was just cleared because we
6853 might need to resize the mini-window.
6854
68551999-09-16 Gerd Moellmann <gerd@gnu.org>
6856
6857 * frame.c (Fdelete_frame): Correct local variable pointing to
6858 selected frame after selecting new frame.
6859
68601999-09-15 Richard Stallman <rms@gnu.org>
6861
6862 * puresize.h (BASE_PURESIZE): Increase to 525000.
6863
6864 * filelock.c (Vtemporary_file_directory): New variable.
6865 (syms_of_filelock): Set up Lisp variable.
6866
68671999-09-15 Gerd Moellmann <gerd@gnu.org>
6868
6869 * term.c (OUTPUT_IF, OUTPUT1_IF): Use do-while.
6870 (encode_terminal_code): Remove unused variables.
6871 (turn_off_face): Ditto.
6872 (toplevel): Include termcap.h if HAVE_TERMCAP_H.
6873
6874 * dispnew.c (update_frame_line): If writing whole desired line,
6875 don't clear to end of line if already at the end.
6876
68771999-09-15 Gerd Moellmann <gerd@gnu.org>
6878
6879 * xdisp.c (resize_mini_window): Don't report changed window
6880 height if it actually hasn't changed.
6881
427ec082 6882 * widget.c (set_frame_size, EmacsFrameSetCharSize): Remove
26901792
DL
6883 unused variables.
6884 (mark_shell_size_user_specified): Put in #if 0 because not used.
6885 (create_frame_gcs): Put in #if 0 because currently unused.
6886 (first_frame_p): Ditto.
6887
6888 * xmenu.c (single_menu_item, Fx_popup_menu, Fx_popup_menu,
6889 single_submenu, update_frame_menubar, set_frame_menubar,
6890 free_frame_menubar, xmenu_show, xdialog_show): Remove unused
6891 variables.
6892
6893 * print.c (PRINTFULLP): Removed because it is no longer used and
6894 is misleading.
6895 (Ferror_message_string): Remove unused variables.
6896 (print_object): Cast argument of sprintf to long for `%ld'
6897 specifier. Remove unused variable.
6898
68991999-09-14 Gerd Moellmann <gerd@gnu.org>
6900
6901 * sound.c (Fplay_sound): Remove usused variables.
6902 (be2hs): Put in #if 0 because it's currently not used.
6903
69041999-09-14 Ken Raeburn <raeburn@gnu.org>
6905
6906 * print.c (Ferror_message_string, print_error_message,
6907 print_object): Use XCAR, XCDR and XFLOAT_DATA instead of explicit
6908 member access.
6909
69101999-09-14 Gerd Moellmann <gerd@gnu.org>
6911
6912 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Put code in do-while.
6913
6914 * frame.c (Fnext_frame): Remove unused variable(s).
6915 (Fprevious_frame, Fmouse_pixel_position, frame_name_fnn_p): Ditto.
6916 (store_frame_param): Add parentheses to conditional expression.
6917 (Fmodify_frame_parameters): Remove unused variables.
6918 (Fmodify_frame_parameters, Fset_frame_size, Fset_frame_position):
6919 Ditto.
6920
6921 * xfns.c (x_set_background_color): Remove unused variable(s).
6922 (x_set_border_pixel): Ditto.
6923 (x_set_menu_bar_lines): Put local variable used only for
6924 non-toolkit case in #ifdef/#endif.
6925 (x_figure_window_size): Remove unused variable(s).
427ec082 6926 (x_figure_window_size, x_window, lookup_image,
26901792
DL
6927 xbm_read_bitmap_file_data, x_build_heuristic_mask, pbm_load,
6928 png_load, jpeg_load, gif_load, x_create_tip_frame,
6929 x_create_tip_frame, Fx_show_tip, x_set_border_pixel): Ditto.
6930
6931 * xterm.c (x_scroll_bar_handle_click): Compile only if
6932 not USE_TOOLKIT_SCROLL_BARS.
6933 (x_scroll_bar_set_handle, x_scroll_bar_note_movement): Ditto.
6934
6935 * dispextern.h: Add prototypes for gamma_correct and
6936 x_kill_gs_process.
6937
6938 * xterm.c (x_produce_glyphs): Remove unused variable(s).
6939 (x_alloc_nearest_color_for_widget, note_tool_bar_highlight,
6940 x_set_toolkit_scroll_bar_thumb): Ditto.
6941 (x_scroll_bar_create): Move local variable to the
6942 conditionally compiled section of code where it is used.
6943 (x_scroll_bar_create): Remove unused variable(s).
6944 (x_scroll_bar_remove, XTread_socket): Ditto.
6945 (XTread_socket) <ConfigureNotify>: Move variables used for
6946 non-toolkit case into conditionally compiled section of code.
6947
6948 * window.h (freeze_window_starts): Fix typo in prototype.
6949
6950 * xdisp.c (display_echo_area_1, try_window_id): Remove unused
6951 variable(s).
6952
6953 * lisp.h: Add prototype for debug_print.
6954
6955 * dispextern.h (xassert) [GLYPH_DEBUG]: Change definition
6956 to use do-while.
6957
6958 * fns.c (SXHASH_COMBINE): Add missing parentheses.
6959 (Fchar_table_range, Fset_char_table_default, mapcar1,
6960 Fyes_or_no_p, sweep_weak_hash_tables): Remove unused variable(s).
6961
6962 * lisp.h: Add prototype for getloadavg.
6963
69641999-09-14 Andreas Schwab <schwab@gnu.org>
6965
6966 * process.c (Fopen_network_stream): Avoid socket decriptor leak.
6967
6968 * lisp.h: Declare close_file_unwind.
6969
69701999-09-14 Richard Stallman <rms@gnu.org>
6971
6972 * filelock.c (get_boot_time): Make the temp name in the proper dir.
6973
69741999-09-13 Gerd Moellmann <gerd@gnu.org>
6975
6976 * xdisp.c (redisplay_window): Make sure start_at_line_beg
6977 is always set correctly.
6978
69791999-09-13 Dave Love <fx@gnu.org>
6980
6981 * xdisp.c (move_it_in_display_line_to): Make type consistent with
6982 declaration.
6983
69841999-09-13 Gerd Moellmann <gerd@delysid.gnu.org>
6985
6986 * xdisp.c (QCfile): Move here from xfns.c.
6987 (syms_of_xdisp): Initialize it.
6988 (message2_nolog): Change for Lisp_Object selected_frame.
6989 (message3_nolog, message_with_string, message,
6990 setup_echo_area_for_printing, truncate_echo_area,
6991 prepare_menu_bars, redisplay_internal, Fdump_tool_bar_row): Ditto.
6992
69931999-09-13 Dave Love <fx@gnu.org>
6994
6995 * xterm.c: Don't continue #define args for benefit of old cc.
6996 (xt_action_hook): Indent #error for benefit of K&R cc.
6997
69981999-09-13 Gerd Moellmann <gerd@delysid.gnu.org>
6999
7000 * xterm.c (XTcursor_to): Change for Lisp_Object selected_frame.
7001 (x_clear_frame, XTring_bell, XTmouse_position, XTread_socket): Ditto.
7002 (XRINGBELL): Removed.
7003
70041999-09-13 Dave Love <fx@gnu.org>
7005
7006 * xfns.c (x_put_x_image): Make type consistent with declaration.
7007
7008 * fns.c (Fmake_hash_table): Fix string continuation.
7009
70101999-09-13 Gerd Moellmann <gerd@delysid.gnu.org>
7011
7012 * xfns.c (QCfile): Moved to xdisp.c.
7013 (syms_of_xfns): Don't initialize QCfile.
7014 (check_x_frame): Change for Lisp_Object selected_frame.
7015 (check_x_display_info, x_get_resource_string): Ditto.
7016
70171999-09-13 Gerd Moellmann <gerd@gnu.org>
7018
7019 * minibuf.c (choose_minibuf_frame): Don't try to set the
7020 mini-buffer window's buffer, if the buffer is invalid.
7021
7022 * xfns.c (QCfile): Moved to xdisp.c.
7023 (syms_of_xfns): Don't initialize QCfile.
7024
7025 * xdisp.c (QCfile): Move here from xfns.c.
7026 (syms_of_xdisp): Initialize it.
7027
7028 * lisp.h (selected_frame): Add external declaration.
7029
7030 * xselect.c (x_own_selection): Change for Lisp_Object selected_frame.
7031 (Fx_store_cut_buffer_internal): Ditto.
7032 (Fx_rotate_cut_buffers_internal): Ditto.
7033
7034 * xfaces.c (frame_or_selected_frame): Change for Lisp_Object
7035 selected_frame.
7036 (Finternal_set_lisp_face_attribute): Ditto.
7037 (Finternal_get_lisp_face_attribute): Ditto.
7038 (Finternal_lisp_face_empty_p): Ditto.
7039 (Fdump_face): Ditto.
7040
7041 * term.c (OUTPUT): Change for Lisp_Object selected_frame.
7042 (OUTPUT_IF, ring_bell, set_terminal_modes, reset_terminal_modes,
7043 set_terminal_window, set_scroll_region, reassert_line_highlight,
7044 change_line_highlight, cursor_to, raw_cursor_to, clear_to_end,
7045 clear_end_of_line, clear_end_of_line_raw, clear_end_of_line_raw,
7046 encode_terminal_code, write_glyphs, term_init): Ditto.
7047
7048 * sysdep.c (reset_sys_modes): Change for Lisp_Object selected_frame.
7049 (kbd_input_ast, read_input_waiting): Ditto.
7050
7051 * minibuf.c (choose_minibuf_frame): Change for Lisp_Object
7052 selected_frame.
7053 (read_minibuf): Ditto.
7054
7055 * keyboard.c (command_loop_1): Change for Lisp_Object
7056 selected_frame.
7057 (cmd_error_internal, command_loop_1, read_char,
7058 kbd_buffer_get_event, read_avail_input,
7059 read_char_minibuf_menu_prompt, read_key_sequence, Fsuspend_emacs,
7060 interrupt_signal, quit_throw_to_read_char): Ditto.
7061
7062 * fontset.c (Ffont_info): Change for Lisp_Object selected_frame.
7063 (Ffontset_info): DItto.
7064
7065 * emacs.c (handle_USR1_signal): Change for Lisp_Object selected_frame.
7066
7067 * dispnew.c (selected_frame): Make it a Lisp_Object.
7068 (adjust_frame_glyphs_initially): Change for Lisp_Object selected_frame.
7069 (direct_output_for_insert, direct_output_forward_char,
7070 init_display): Ditto.
7071
7072 * data.c (swap_in_symval_forwarding): Change for Lisp_Object
7073 selected_frame.
7074 (set_internal): Ditto.
7075
7076 * buffer.c (Fother_buffer): Change for Lisp_Object selected_frame.
7077 (record_buffer): Ditto.
7078
7079 * frame.c (Fmake_terminal_frame): Use SELECTED_FRAME.
7080 (do_switch_frame): Change for Lisp_Object selected_frame.
7081 (Fselected_frame): Ditto.
7082 (Fframe_first_window): Use SELECTED_FRAME.
7083 (Fframe_root_window): Change for Lisp_Object selected_frame.
7084 (Fframe_selected_window, Fset_frame_selected_window, Fnext_frame,
7085 Fprevious_frame, other_visible_frames, Fdelete_frame,
7086 Fmouse_position, Fmouse_pixel_position, Fmake_frame_visible,
7087 Fmake_frame_invisible, Ficonify_frame, Fraise_frame, Flower_frame,
7088 Fframe_parameters, Fmodify_frame_parameters, Fframe_char_height,
7089 Fframe_char_width, Fframe_pixel_height, Fframe_pixel_width,
7090 Fset_frame_height, Fset_frame_width): Ditto.
7091
70921999-09-13 Gerd Moellmann <gerd@gnu.org>
7093
7094 * xdisp.c (message2_nolog): Change for Lisp_Object selected_frame.
7095 (message3_nolog, message_with_string, message,
7096 setup_echo_area_for_printing, truncate_echo_area,
7097 prepare_menu_bars, redisplay_internal, Fdump_tool_bar_row): Ditto.
7098
7099 * xmenu.c (Fx_popup_menu): Change for Lisp_Object selected_frame.
7100 (Fx_popup_dialog): Ditto.
7101
7102 * xfns.c (check_x_frame): Change for Lisp_Object selected_frame.
7103 (check_x_display_info, x_get_resource_string): Ditto.
7104
7105 * xterm.c (XTcursor_to): Change for Lisp_Object selected_frame.
7106 (x_clear_frame, XTring_bell, XTmouse_position, XTread_socket): Ditto.
7107 (XRINGBELL): Removed.
7108
7109 * window.c (Fminibuffer_window): Change for Lisp_Object
7110 selected_frame.
7111 (Fwindow_at, Fprevious_window, window_loop, select_window_1,
7112 display_buffer_1, Fdisplay_buffer, temp_output_buffer_show,
7113 Fcurrent_window_configuration, init_window_once): Ditto.
7114
7115 * frame.h (SELECTED_FRAME): New.
7116
71171999-09-12 Ken Raeburn <raeburn@gnu.org>
7118
7119 * category.c (word_boundary_p): Use XCAR and XCDR.
7120 * ccl.c (ccl_driver, resolve_symbol_ccl_program,
7121 Fregister_code_conversion_map): Likewise.
7122 * coding.c (setup_coding_system, detect_coding_system,
7123 Ffind_operation_coding_system, Fset_coding_priority_internal):
7124 Likewise.
7125 * doc.c (get_doc_string, Fdocumentation,
7126 store_function_docstring): Likewise.
7127 * editfns.c (save_restriction_restore): Likewise.
7128 * eval.c (Fcond, Fmacroexpand, Fcondition_case, wants_debugger,
7129 skip_debugger, find_handler_clause, Fautoload, Fapply,
7130 run_hook_with_args, run_hook_list_with_args, Ffetch_bytecode):
7131 Likewise.
7132 * fileio.c (Ffind_file_name_handler, Finsert_file_contents,
7133 Fwrite_region, do_auto_save_unwind, Fdo_auto_save,
7134 Fread_file_name): Likewise.
7135 * filelock.c (unlock_all_files): Likewise.
7136 * insdel.c (Fcombine_after_change_execute): Likewise.
7137 * intervals.c (adjust_intervals_for_insertion): Likewise.
7138 * keymap.c (get_keymap_1, Fkeymap_parent, Fset_keymap_parent,
7139 Fset_keymap_parent, fix_submap_inheritance, access_keymap,
7140 store_in_keymap, Fcopy_keymap, define_as_prefix,
7141 current_minor_maps, Faccessible_keymaps,
7142 accessible_keymaps_char_table, Fkey_description,
7143 Fwhere_is_internal, where_is_internal_2, where_is_internal_1,
7144 describe_buffer_bindings, describe_map_tree, shadow_lookup,
7145 describe_map): Likewise.
7146 * lread.c (Fload, load_unwind, close_load_descs, read_vector,
7147 read_list, init_lread): Likewise.
7148 * search.c (Fmatch_data): Likewise.
7149 * sunfns.c (Fsun_menu_internal): Likewise.
7150 * syntax.c (describe_syntax): Likewise.
7151 * undo.c (record_insert, record_delete, Fundo_boundary,
7152 truncate_undo_list): Likewise.
7153 * vmsproc.c (child_sig): Likewise.
7154
7155 * editfns.c (Fformat): Use XFLOAT_DATA.
7156
71571999-09-12 Gerd Moellmann <gerd@gnu.org>
7158
7159 * keyboard.c (command_loop_1): Resize mini-window to the
7160 exact size of a message displayed, if any.
7161
7162 * xdisp.c (resize_mini_window): Add parameter exact_p. Resize
7163 to exact size if exact_p is non-zero.
7164 (display_echo_area_1): Call resize_mini_window with
7165 new parameter.
7166 (redisplay_internal): Ditto.
7167 (resize_echo_area_axactly): New.
7168
7169 * minibuf.c (read_minibuf_unwind): Call resize_mini_window with
7170 new parameter.
7171
7172 * dispextern.h: Change prototype of resize_mini_window.
7173 Add prototype for resize_echo_area_axactly.
7174
7175 * xfaces.c (Fx_family_fonts): Replaces Fx_font_list.
7176 (syms_of_xfaces): Defsubr accordingly.
7177
7178 * xdisp.c (hscroll_window_tree): Choose cursor row from
7179 desired or current matrix.
7180 (redisplay_internal): Hscroll before updating.
7181
71821999-09-12 Gerd Moellmann <gerd@gnu.org>
7183
7184 * syntax.c (Fforward_word): Use prompt_end_charpos instead
7185 of minibuffer_prompt_length.
7186
7187 * minibuf.c (read_minibuf): Use prompt_end_charpos instead
7188 of minibuffer_prompt_length.
7189 (read_minibuf_unwind): Ditto.
7190 (Fminibuffer_complete_and_exit): Ditto.
7191 (Fminibuffer_complete_word): Ditto.
7192 (Fminibuffer_prompt_end): Ditto.
7193
7194 * editfns.c (Fbuffer_string): Use prompt_end_charpos instead
7195 of minibuffer_prompt_length.
7196 (Fline_beginning_position): Ditto.
7197
7198 * buffer.c (Fget_buffer_create): Use prompt_end_charpos instead
7199 of minibuffer_prompt_length.
7200 (Fmake_indirect_buffer): Ditto.
7201 (Fkill_buffer): Ditto.
7202 (Ferase_buffer): Ditto.
7203
7204 * buffer.h (prompt_end_charpos): Replaces
7205 minibuffer_prompt_length.
7206
427ec082 7207 * minibuf.c (read_minibuf): Return mini-buffer contents
26901792
DL
7208 without the prompt.
7209
7210 * editfns.c (make_buffer_string_both): Take out the code
7211 to handle mini-buffer prompts.
7212 (Fbuffer_string): Handle the prompt here, instead.
7213
7214 * xfaces.c (lface_from_face_name): Resolve face aliases.
7215 (Qmode_line): Replaces Qmodeline.
7216 (realize_basic_faces): Use Qmode_line.
7217 (syms_of_xfaces): Initialize Qmode_line.
7218
72191999-09-12 Gerd Moellmann <gerd@gnu.org>
7220
7221 * minibuf.c (read_minibuf): Set minibuf_prompt_width to the
7222 current column after inserting prompt.
7223 (Fminibuffer_prompt_width): Return minibuf_prompt_width.
7224
7225 * xfaces.c (Qframe_update_face_colors): New.
7226 (syms_of_xfaces): Initialize call.
7227 (update_face_from_frame_parameter): Call that function when
7228 the frame's background changes.
7229
72301999-09-12 Richard Stallman <rms@gnu.org>
7231
7232 * insdel.c (del_range_1): Don't treat minibuffer prompt specially.
7233
72341999-09-12 Ken Raeburn <raeburn@gnu.org>
7235
7236 * alloc.c (Fcons, pure_cons, Fpurecopy, Fgarbage_collect,
7237 mark_object, mark_buffer): Use XCAR and XCDR.
7238 * bytecode.c (Fbyte_code): Likewise.
7239 * callint.c (Fcall_interactively, Fprefix_numeric_value):
7240 Likewise.
7241 * callproc.c (Fcall_process, Fcall_process_region, child_setup,
7242 getenv_internal): Likewise.
7243 * dired.c (file_name_completion): Likewise.
7244 * fns.c (Fsafe_length, concat, Fcopy_alist, Fmember, Fmemq, Fassq,
7245 assq_no_quit, Fassoc, Frassq, Frassoc, Fdelq, Fdelete, Freverse,
7246 Fplist_get, Fplist_put, internal_equal, mapcar1): Likewise.
7247 * indent.c (Fcompute_motion): Likewise.
7248 * process.c (decode_status, Fprocess_status, Fprocess_exit_status,
7249 list_processes_1, Fstart_process, Fopen_network_stream,
7250 wait_reading_process_input, read_process_output_call,
7251 kill_buffer_processes, sigchld_handler, exec_sentinel_unwind,
7252 status_notify, wait_reading_process_input): Likewise.
7253 * textprop.c (PLIST_ELT_P, property_value, set_properties,
7254 extend_property_ranges): Likewise.
7255 * w32faces.c (Fpixmap_spec_p, merge_face_list): Likewise.
7256 * w32fns.c (x_window_to_frame, x_set_frame_parameters,
7257 x_report_frame_params, x_set_cursor_type, x_icon_type,
7258 x_figure_window_size, Fx_create_frame, w32_load_system_font,
7259 w32_load_font, enum_font_cb2, w32_list_bdf_fonts, w32_list_fonts,
7260 w32_list_synthesized_fonts, w32_find_ccl_program, Fx_list_fonts,
7261 Fw32_find_bdf_fonts, w32_find_bdf_fonts_in_dir,
7262 x_display_info_for_name, Fx_display_list): Likewise.
7263 * w32menu.c (menubar_id_to_frame, single_keymap_panes,
7264 Fx_popup_menu, Fx_popup_dialog): Likewise.
7265 * w32proc.c (Fw32_set_keyboard_layout): Likewise.
7266 * w32term.c (x_window_to_scroll_bar, w32_read_socket,
7267 w32_term_init, x_delete_display): Likewise.
7268 * xfns.c (x_window_to_frame, x_any_window_to_frame,
7269 x_non_menubar_window_to_frame, x_menubar_window_to_frame,
7270 x_top_window_to_frame, x_set_frame_parameters,
7271 x_report_frame_params, x_set_cursor_type, x_icon_type,
7272 x_figure_window_size, Fx_create_frame, x_display_info_for_name,
7273 Fx_display_list, x_create_tip_frame): Likewise.
7274 * xmenu.c (menubar_id_to_frame, single_keymap_panes,
7275 Fx_popup_menu, Fx_popup_dialog): Likewise.
7276 * xselect.c (x_own_selection, x_get_local_selection,
7277 x_handle_selection_request, x_handle_selection_clear,
7278 x_clear_frame_selections, wait_for_property_change_unwind,
7279 wait_for_property_change, x_handle_property_notify,
7280 copy_multiple_data, x_get_foreign_selection,
7281 lisp_data_to_selection_data, clean_local_selection_data,
7282 x_handle_selection_notify, Fx_get_selection_internal,
7283 x_disown_buffer_selections): Likewise.
7284 * xterm.c (x_window_to_scroll_bar, XTread_socket, x_list_fonts,
7285 x_load_font, x_find_ccl_program, x_term_init, x_delete_display):
7286 Likewise.
7287
7288 * alloc.c (make_float, make_pure_float, Fpurecopy): Use
7289 XFLOAT_DATA.
7290 * bytecode.c (Fbyte_code): Likewise.
7291 * floatfns.c (extract_float, Fexpt, Fabs, rounding_driver,
7292 fmod_float): Likewise.
7293
72941999-09-11 Richard Stallman <rms@gnu.org>
7295
7296 * xdisp.c (run_window_scroll_functions): If hook functions switch
7297 buffers, switch back after.
7298
72991999-09-11 Ken Raeburn <raeburn@gnu.org>
7300
7301 * charset.h (GET_TRANSLATION_TABLE): Use XCDR.
7302 * frame.h (FOR_EACH_FRAME): Use XCAR and XCDR.
7303 (PIXEL_X_FROM_CANON_X, PIXEL_Y_FROM_CANON_Y): Use XFLOAT_DATA.
7304 * keyboard.h (EVENT_HEAD, EVENT_START, EVENT_END, POSN_WINDOW,
7305 POSN_BUFFER_POSN, POSN_WINDOW_POSN, POSN_TIMESTAMP): Use XCAR and
7306 XCDR.
7307 * syntax.h (SYNTAX, SYNTAX_WITH_FLAGS, SYNTAX_MATCH): Use XCAR and
7308 XCDR.
7309
73101999-09-10 Richard Stallman <rms@gnu.org>
7311
7312 * xterm.c (XTread_socket): In XSetInputFocus, use RevertToParent,
7313 not RevertToPointerRoot.
7314 (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
7315 Fix the code to clear around the scroll bar.
7316
73171999-09-10 Keisuke Nishida <kxn30@po.cwru.edu>
7318
7319 * print.c: Support print-circle and related features.
7320 (Vprint_gensym_alist): Removed.
7321 (Vprint_circle, Vprint_continuous_numbering, print_number_index
7322 Vprint_number_table): New variables.
7323 (PRINT_NUMBER_OBJECT, PRINT_NUMBER_STATUS): New macros.
7324 (PRINTPREPARE, PRINTFINISH): Don't set Vprint_gensym_alist.
7325 (print, print_preprocess, print_preprocess_string, print_object):
7326 New/modified functions with print-circle feature. Use
7327 Vprint_number_table instead of Vprint_gensym_alist for print-gensym.
7328 (syms_of_print): Defined new Lisp variables `print-circle',
7329 `print-continuous-numbering', `print-number-table'.
7330
73311999-09-10 Gerd Moellmann <gerd@gnu.org>
7332
7333 * xfns.c (x_build_heuristic_mask): Accept a list `(R G B)'
7334 as background color specification instead of an integer.
7335 (image-cache-eviction-delay): Replaces image-eviction-seconds.
7336 (Vimage_cache_eviction_delay): Replaces Vimage_eviction_seconds.
7337 (clear_image_cache, syms_of_xfns): Use it.
7338 (Qpostscript): Replaces Qghostscript.
7339 (gs_type): Use it.
7340 (gs_image_p): Ditto.
7341 (syms_of_xfns): Initialize Qpostscript.
7342
73431999-09-10 Richard Stallman <rms@gnu.org>
7344
7345 * buffer.c (Ferase_buffer): Don't erase the minibuffer prompt.
7346
73471999-09-09 Richard Stallman <rms@gnu.org>
7348
7349 * editfns.c (Fline_beginning_position): Handle minibuffer prompt here.
7350
7351 * cmds.c (Fbeginning_of_line): Don't handle minibuffer prompt here.
7352
73531999-09-09 Gerd Moellmann <gerd@gnu.org>
7354
7355 * fns.c (Fmakehash): Accept just one optional argument TEST.
7356
7357 * xfns.c (QCindex): New.
7358 (syms_of_xfns): Initialize QCindex.
7359 (gif_load): Use it instead of `:image'.
7360
73611999-09-09 Richard Stallman <rms@gnu.org>
7362
7363 * fileio.c (Fwrite_region): Finish renaming CONFIRM to MUSTBENEW.
7364 (Fwrite_region) [DOS_NT]: Handle `excl' here too.
7365
73661999-09-08 Gerd Moellmann <gerd@gnu.org>
7367
7368 * xdisp.c (Qwhen): Replaces QCwhen.
7369 (syms_of_xdisp): Initialized it instead of QCwhen.
7370 (handle_single_display_prop): Use it instead of QCwhen.
7371
73721999-09-08 Ken'ichi Handa <handa@gnu.org>
7373
7374 * charset.c (translate_char): Reset MSBs of arguments of
7375 MAKE_CHAR.
7376 (CHAR_COMPONENTS_VALID_P): Fix for ASCII.
7377
73781999-09-08 Lars Magne Ingebrigtsen <larsi@gnus.org>
7379
7380 * editfns.c (Fbufsize): Accept an extra BUFFER parameter.
7381
7382 * fns.c (Fbase64_decode_region): Don't place point outside of the
7383 current accessible portion.
7384
73851999-09-07 Richard Stallman <rms@gnu.org>
7386
7387 * keymap.c (fix_submap_inheritance): Do nothing if the proper
7388 parent is an ancestor of SUBMAP; otherwise, add it as the
7389 ultimate ancestor.
7390
73911999-09-07 Gerd Moellmann <gerd@gnu.org>
7392
7393 * xdisp.c (handle_single_display_prop): Change conditional
7394 display property to `:when FORM . VALUE'.
7395
73961999-09-07 Richard Stallman <rms@gnu.org>
7397
7398 * fileio.c (Fwrite_region): Doc fix.
7399
74001999-09-07 Stefan Monnier <monnier@cs.yale.edu>
7401
7402 * fileio.c (Qexcl): New variable.
7403 (report_file_error): Handle EEXIST specially.
7404 (Fwrite_region): Special handling for CONFIRM = `excl'.
7405 (syms_of_fileio): Initialize Qexcl.
7406
74071999-09-07 Gerd Moellmann <gerd@gnu.org>
7408
7409 * xfns.c (x_set_foreground_color): Call
7410 update_face_from_frame_parameter.
7411 (x_set_background_color): Ditto.
7412 (x_set_mouse_color): Ditto.
7413 (x_set_cursor_color): Ditto.
7414 (x_set_border_color): Ditto.
7415 (x_set_scroll_bar_foreground): Ditto.
7416 (x_set_scroll_bar_background): Ditto.
7417
7418 * xfaces.c (recompute_basic_faces): Clear face cache.
7419 (Finternal_set_lisp_face_attribute): Modify frame parameters
7420 if attributes of certain faces are changed.
7421 (update_face_from_frame_parameter): New.
7422
7423 * xfaces.c (realize_basic_faces): Realize new basic faces.
7424
7425 * dispextern.h (SCROLL_BAR_FACE_ID, BORDER_FACE_ID,
7426 CURSOR_FACE_ID, MOUSE_FACE_ID): New.
7427
7428 * xfaces.c (Qscroll_bar, Qcursor, Qborder, Qmouse): New.
7429 (syms_of_xfaces): Intialize new symbols.
7430
7431 * fns.c (Fmakehash): Take one argument, test, make all the
7432 rest keyword arguments.
7433
7434 * window.c (Fset_window_margins): Make window the first argument.
7435 (set_window_buffer): Call Fset_window_margins with window as first
7436 argument.
7437
74381999-09-07 Gerd Moellmann <gerd@gnu.org>
7439
7440 * xfaces.c (Qfringe): Replaces Qmargin.
7441
74421999-09-07 Kenichi Handa <handa@etl.go.jp>
7443
7444 * charset.h: Lots of comments fixed.
7445 (PARSE_MULTIBYTE_SEQ): Make it work also for ASCII string.
7446 (STRING_CHAR_AND_CHAR_LENGTH): This macro removed.
7447
7448 * charset.c : Lots of comments fixed.
7449 (SPLIT_MULTIBYTE_SEQ): Make it work also for ASCII string.
7450 (CHAR_COMPONENTS_VALID_P): Name changed from
7451 CHAR_COMPONENT_VALID_P. Caller changed.
7452
74531999-09-06 Richard Stallman <rms@gnu.org>
7454
7455 * insdel.c (syms_of_insdel): Define Lisp variable
7456 inhibit-modification-hooks.
7457
74581999-09-06 Michael Sperber [Mr. Preprocessor] <sperber@informatik.uni-tuebingen.de>
7459
7460 * s/aix4-2.h (ALIGN_DATA_RELOC): Undefined to support new
7461 unexaix.c.
7462
7463 * s/aix3-1.h (ALIGN_DATA_RELOC): Defined to support new unexaix.c.
7464
74651999-09-06 Dave Love <fx@gnu.org>
7466
7467 * unexaix.c: New version incorporating Michael Sperber's changes
7468 from XEmacs. Should solve problems on AIX 4.3.
7469
7470 * lread.c (Vbyte_boolean_vars): New variable.
7471 (defvar_bool, syms_of_lread): Use it.
7472
74731999-09-05 Richard Stallman <rms@gnu.org>
7474
7475 * minibuf.c (read_minibuf): Put all three properties on the
7476 same range, the whole prompt.
7477
74781999-09-05 Gerd Moellmann <gerd@gnu.org>
7479
7480 * sound.c (Qplay_sound_functions): Replaces Qplay_sound_hook.
7481 (Fplay_sound, syms_of_sound): Use it.
7482 (parse_sound): Allow float volume values in the range [0, 1].
7483 (Fplay_sound): Ditto.
7484
7485 * window.c (Fset_window_vscroll): Make window the first argument,
7486 amount to scroll the second. Take non-negative vscroll as
7487 argument.
7488 (Fwindow_vscroll): Return non-negative vscroll.
7489
7490 * xfns.c (Fx_show_tip): Improve documentation.
7491
74921999-09-05 Gerd Moellmann <gerd@gnu.org>
7493
7494 * buffer.c, buffer.h, dispextern.h, dispnew.c, keyboard.c,
7495 window.c, xdisp.c, xfaces.c, xterm.c, keyboard.h: Change
7496 `top-line' and `top_line' to `header-line' and `header_line'.
7497 Likewise for similar spellings.
7498
74991999-09-05 Gerd Moellmann <gerd@gnu.org>
7500
7501 * xdisp.c (row_containing_pos): New.
7502 (try_window_id): Use it.
7503
7504 * alloc.c, dispextern.h, dispnew.c, frame.c, frame.h, keyboard.c,
7505 lisp.h, termhooks.h, window.c xdisp.c, xfaces.c, xfns.c, xterm.c:
7506 Change spelling of `toolbar' to `tool_bar' or `tool-bar'.
7507 Likewise for upper-case etc.
7508
75091999-09-05 Gerd Moellmann <gerd@gnu.org>
7510
7511 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
7512 Fix reference to renamed variable.
7513
75141999-09-04 Gerd Moellmann <gerd@gnu.org>
7515
7516 * window.c (Qwindow_size_fixed): Replaces Qfixed_window_size.
427ec082 7517 (window_fixed_size_p): Use Qwindow_size_fixed instead of
26901792
DL
7518 Qfixed_window_size.
7519 (syms_of_window): Ditto.
7520
7521 * fns.c (Fmakehash): Exchange optional test and size arguments.
7522
75231999-09-03 Gerd Moellmann <gerd@gnu.org>
7524
7525 * xterm.c (XTset_vertical_scroll_bar): Block input when clearing
7526 under newly created scroll bar.
7527 (expose_window): If window is not yet fully initialized, do
7528 nothing. This can happen when toolkit scroll bars are used and a
7529 window is split. Reconfiguring the scroll bars will generate an
7530 expose for a newly created window.
7531
7532 * frame.h (struct frame): New member `gamma'.
7533
7534 * xfns.c: Include math.h. Add extern declaration for atof in case
7535 we don't see one.
7536 (Qscreen_gamma): New.
7537 (struct x_frame_parm_table): Add prototypes, add
7538 x_set_screen_gamma.
7539 (gamma_correct): New function.
7540 (defined_color): Call it.
7541 (x_set_screen_gamma): New.
7542 (x_set_title): Add parameter old_value.
7543 (RES_TYPE_FLOAT): New.
7544 (x_get_arg): Handle RES_TYPE_FLOAT.
7545 (Fx_create_frame): Call x_default_parameter for `screen-gamma'.
7546 (lookup_pixel_color): Change call to x_alloc_nearest_color to
7547 new prototype.
7548 (lookup_rgb_color): Ditto.
7549 (syms_of_xfns): Initialize Qscreen_gamma.
7550
7551 * xterm.c (x_alloc_nearest_color_for_widget) [USE_X_TOOLKIT]:
7552 New. Allocate color for lwlib widgets.
7553 (x_alloc_nearest_color): Change parameter list include the
7554 frame on which to allocate colors. Gamma-correct colors.
7555 (x_alloc_lighter_color): Call x_alloc_lighter_color with new
7556 parameter list.
7557
7558 * xterm.h: Change protorype of x_alloc_nearest_color.
7559
75601999-09-03 Richard Stallman <rms@gnu.org>
7561
7562 * callproc.c: Delete the system-independent include of stdlib.h
7563 (leaving only the one in the WINDOWSNT conditional).
7564
75651999-09-03 Andrew Choi <choi@cs.hku.hk>
7566
7567 * callproc.c (call-process) [macintosh]: Call mac_run_command in
7568 sysdep.c. The Mac code is modeled after the DOS code.
427ec082 7569
26901792
DL
7570 * dispextern.h [macintosh]: Include macterm.h to define substitute X
7571 Window types and macros.
7572
7573 * frame.h: Do nothing if included a second time.
7574 (enum output_method): Add mac_output frame type.
7575 (union output_data): Add new alternative `mac'.
7576 (FRAME_MAC_P): New macro.
427ec082 7577
26901792
DL
7578 * frame.c (Fframep) [macintosh]: Handle mac frame type.
7579 (syms_of_frame_1): Initialize Qmac.
7580 (make_terminal_frame) [macintosh]: Initialize output_data.mac fields.
7581 (Fmake_terminal_frame) [macintosh]: Add an alternate error check.
7582 (Fmodify_frame_parameters) [macintosh]: Call
7583 mac_set_frame_parameter in macterm.c.
427ec082 7584
26901792
DL
7585 * keyboard.c [macintosh]: Set KBD_BUFFER_SIZE to a smaller value
7586 (512) because Mac compilers limit local data of a function to 32K.
427ec082 7587
26901792
DL
7588 * make-docfiles.c: Correctly handle input files with Mac-style
7589 eol's.
427ec082 7590
26901792 7591 * sysdep.c: Define numerous routines to emulate Unix system calls.
427ec082 7592
26901792
DL
7593 * xfaces.c: on MacOS, define the set of colors listed in rgb.txt
7594 file of an X Window environment.
427ec082 7595
26901792
DL
7596 * xfaces.c: on MacOS, define the Lisp functions x-display-color-p,
7597 x-display-grayscale, x-color-defined-p, and x-color-values.
427ec082 7598
26901792
DL
7599 * sysdep.c [macintosh] (stat, fstat, mkdir, rmdir, utime, access)
7600 (open, creat, unlink, read, write, rename, fopen, pause, alarm)
7601 (signal, sleep, gmtime, localtime, ctime, time, index, mktemp)
7602 (getpwuid, getpwnam, dup, dup2, isatty, getgid, getegid, getuid)
7603 (geteuid, getpid, getenv, uname, opendir, closedir, readdir, getwd.):
7604 New functions, replacing POSIX features.
427ec082 7605
26901792
DL
7606 * sysdep.c [macintosh] (Mac2UnixPathname, Unix2MacPathname, CheckAlarm)
7607 (InitMyPasswd, GetTempDirName, mystrchr, mystrtok, mystrcpy):
7608 (InitEmacsPasswdDir, run_mac_command): New subroutines.
7609
7610 * sysdep.c [macintosh] (targetTicks, alarm_signal_func, myPasswdName)
7611 (myPasswd, emacsPasswdDir, emacsPasswd, myPasswdInited, mask)
7612 (myPasswdDir, TempDirName, sys_siglist): New variables.
7613
7614 * sysdep.c [macintosh] (execvp, wait, croak, fork, kill, sigsetmask)
7615 (sigblock, request_sigio, unrequest_sigio, setpgrp, pipe, symlink)
7616 (link, lstat, readlink, umask, chmod, sbrk, fsync, ioctl):
7617 Define empty stubs so Emacs will link.
7618
76191999-09-03 Gerd Moellmann <gerd@gnu.org>
7620
7621 * xdisp.c: Use XCAR and XCDR instead of XCONS.
7622
7623 * window.h: New member frozen_window_start_p.
7624
7625 * window.c (foreach_window, foreach_window_1): New.
7626 (freeze_window_start, freeze_window_starts): New.
7627 (make_window): Initialize frozen_window_start_p.
7628 (replace_window): Ditto.
7629 (Fset_window_point): Remove references to deleted variables.
7630 (Fset_window_start): Ditto.
7631
7632 * xdisp.c (Vresize_mini_config, resize_mini_frame,
7633 resize_mini_initial_height): Removed.
7634 (syms_of_xdisp): Remove references to these variables.
7635 (resize_mini_window): Don't save window configuration, freeze
7636 window starts instead. Enlarge window until displaying an empty
7637 buffer, then shrink it. Make the function externally visible.
7638 (redisplay_window): Treat frozen window start like forced start,
7639 but accept point outside of the window.
7640
7641 * dispextern.h: Add function prototype for resize_mini_window.
7642
7643 * minibuf.c (read_minibuf_unwind): Resize mini-window when
7644 reaching minibuf_level 0.
7645
7646 * lisp.h: Remove extern declarations for variables deleted from
7647 xdisp.c.
7648
7649 * dispnew.c (adjust_frame_glyphs): Remove reference to
7650 Vresize_mini_config.
7651
76521999-09-03 Gerd Moellmann <gerd@gnu.org>
7653
7654 * xfns.c (x_set_scroll_bar_width): Change conditional compilation
7655 to USE_TOOLKIT_SCROLL_BARS.
7656
7657 * xterm.c (x_scroll_bar_create): Don't clear under scroll bar
7658 here.
7659 (XTset_vertical_scroll_bar): Clarify position computations. Clear
7660 under newly created scroll bar. Put toolkit scroll bars in the
7661 middle of the area reserved for the scroll bar.
7662
76631999-09-03 Kenichi Handa <handa@etl.go.jp>
7664
7665 The following changes are for the new handling of mulitbyte
7666 sequence. Now, except for a composite character, no multibyte
7667 character in string/buffer has trailing garbage bytes. For
7668 instance, the length of string "\201\300\300" is now 2, the first
7669 character is Latin-1 A-grave, the second is raw \300.
7670
7671 * charset.h (MAKE_NON_ASCII_CHAR): Handle the case that C1 or C2
7672 are negative.
7673 (MAKE_CHAR): Don't set MSBs of C1 and C2 to 0.
7674 (VALID_MULTIBYTE_CHAR_P): This macro deleted.
7675 (PARSE_COMPOSITE_SEQ): New macro.
7676 (PARSE_CHARACTER_SEQ): New macro.
427ec082 7677 (PARSE_MULTIBYTE_SEQ): New macro.
26901792
DL
7678 (CHAR_PRINTABLE_P): New macro.
7679 (STRING_CHAR): Adjusted for the change of string_to_non_ascii_char.
7680 (STRING_CHAR_AND_LENGTH): Likewise.
7681 (STRING_CHAR_AND_CHAR_LENGTH): Define it as STRING_CHAR_AND_LENGTH.
7682 (INC_POS): Use the macro PARSE_MULTIBYTE_SEQ.
7683 (DEC_POS, BUF_INC_POS, BUF_DEC_POS): Likewise,
7684
7685 * charset.c (SPLIT_COMPOSITE_SEQ): New macro.
7686 (SPLIT_CHARACTER_SEQ): New macro.
7687 (SPLIT_MULTIBYTE_SEQ): New macro.
7688 (CHAR_COMPONENT_VALID_P): New macro.
7689 (non_ascii_char_to_string): Generate a multibyte sequence as far
7690 as possible.
7691 (string_to_non_ascii_char): The 4th arg exclude_tail_garbage is
7692 deleted. Caller changed. Use the macro SPLIT_MULTIBYTE_SEQ.
7693 (split_non_ascii_string): Likewise.
7694 (multibyte_form_length): Use the macro PARSE_MULTIBYTE_SEQ.
7695 (char_printable_p): New function.
7696 (translate_char): Check character by NATNUMP instead of INTEGERP.
7697 (unibyte_char_to_multibyte): Call char_valid_p instead of
7698 VALID_MULTIBYTE_CHAR_P.
7699 (Fmake_char_internal): Check the arguments more rigidly.
7700 (Fcharset_after): Use the macro SPLIT_MULTIBYTE_SEQ.
7701 (char_valid_p): Check the validity by CHAR_COMPONENT_VALID_P.
7702 (Fmultibyte_char_to_unibyte): Check the validity of character by
7703 CHAR_VALID_P.
7704 (chars_in_text): Call multibyte_chars_in_text.
7705 (multibyte_chars_in_text): Use the macro PARSE_MULTIBYTE_SEQ.
7706 (Fcompose_string): Use the macro STRING_CHAR_AND_LENGTH instead of
7707 STRING_CHAR_AND_CHAR_LENGTH (which is obsolete now).
7708
7709 * data.c (Faset): Adjust the way to check byte-combining
7710 possibility for the new handling of multibyte sequence.
7711
7712 * editfns.c (Fsubst_char_in_region): Likewise.
7713
7714 * fns.c (count_combining): Use the macro PARSE_MULTIBYTE_SEQ.
7715 (string_char_to_byte): Likewise.
7716 (string_byte_to_char): Likewise.
7717
7718 * indent.c (MULTIBYTE_BYTES_WIDTH): Delete the 2nd arg C. Use the
7719 macro STRING_CHAR_AND_LENGTH. Caller changed.
7720
7721 * insdel.c (count_combining_composition): New function.
7722 (count_combining_before): Adjust the way to check byte-combining
7723 possibility for the new handling of multibyte sequence. Call
7724 count_combining_composition for a composite character.
7725 (count_combining_after): Likewise.
7726
7727 * print.c (print_string): Use the macro STRING_CHAR_AND_LENGTH.
7728 (print): Likewise.
7729
7730 * dispextern.h (struct it): Change the size of the member
7731 `ctl_chars'.
7732
7733 * xdisp.c (get_next_display_element): Display incomplete multibyte
7734 sequence (e.g. \222\300) by octal form.
7735
77361999-09-02 Gerd Moellmann <gerd@gnu.org>
7737
7738 * xterm.h (VERTICAL_SCROLL_BAR_WIDTH_TRIM): Change from 2 to 0.
7739
7740 * fns.c (Fhash_table_weakness): Replaces Fhash_table_weak.
7741 (cmpfn_eql, sxhash): Use XFLOAT_DATA.
7742
77431999-09-02 Gerd Moellmann <gerd@gnu.org>
7744
7745 * buffer.c (set_buffer_internal): Never set
7746 windows_or_buffers_changed.
7747
7748 * xdisp.c (try_window_id): Reset first_unchanged_at_end_row
7749 if we have displayed to the bottom of the window.
7750
7751 * syntax.c (Fforward_word): Stop at a mini-buffer prompt end
7752 in both directions. Extend documentation.
7753
77541999-09-01 Gerd Moellmann <gerd@gnu.org>
7755
7756 * minibuf.c (read_minibuf): Flush display after setting cursor to
7757 column 0.
7758
77591999-08-31 Gerd Moellmann <gerd@gnu.org>
7760
7761 * s/freebsd.h (__FreeBSD_version): Don't define it if it is
7762 already defined. This avoids a warning from buffer.c.
7763
77641999-08-30 Gerd Moellmann <gerd@gnu.org>
7765
7766 * xterm.h (FRAME_X_FLAGS_AREA_COLS): Define it as the total width
7767 of both margins.
7768 (FRAME_X_FLAGS_AREA_WIDTH): Likewise.
7769 (FRAME_X_LEFT_FLAGS_AREA_WIDTH): New.
7770 (FRAME_X_RIGHT_FLAGS_AREA_WIDTH): New.
7771
7772 * frame.h (FRAME_WINDOW_WIDTH_ARG): Add in FRAME_FLAGS_AREA_COLS
7773 once instead of twice.
7774 (FRAME_LEFT_FLAGS_AREA_WIDTH): New.
7775
7776 * xterm.c: Remove unused bitmaps.
7777 (continued_bits, continuation_bits, overlay_bits): Change images.
7778 (x_draw_vertical_border): Use FRAME_X_RIGHT_FLAGS_AREA_WIDTH
7779 instead of FRAME_X_FLAGS_AREA_WIDTH.
7780 (x_after_update_window_line): Ditto.
7781 (x_draw_bitmap): Likewise.
7782 (x_draw_row_bitmaps): Likewise.
7783 (x_draw_glyph_string_box): Likewise.
7784 (x_draw_glyphs): Likewise.
7785 (x_scroll_run): Likewise.
7786 (expose_window_tree): Likewise.
7787 (note_mode_line_highlight): Likewise.
7788 (XTset_vertical_scroll_bar): Likewise.
7789 (x_clip_to_row): Likewise.
7790 (x_set_window_size): Likewise.
7791
7792 * xfns.c (x_figure_window_size): Use FRAME_FLAGS_AREA_COLS instead
7793 of 2 * that value.
7794
7795 * xdisp.c (window_box_width): Use FRAME_FLAGS_AREA_COLS instead of
7796 2 * that value.
7797 (window_box_left): Use FRAME_LEFT_FLAGS_AREA_WIDTH instead of
7798 FRAME_FLAGS_AREA_WIDTH.
7799
7800 * window.c (coordinates_in_window): Use
7801 FRAME_LEFT_FLAGS_AREA_WIDTH instead of FRAME_FLAGS_AREA_WIDTH.
7802 (window_internal_width): Subtract FRAME_FLAGS_AREA_WIDTH once
7803 instead of twice.
7804
427ec082 7805 * widget.c (set_frame_size): Set flags_area_extra to
26901792
DL
7806 FRAME_FLAGS_AREA_WIDTH instead of 2 * that width.
7807 (EmacsFrameSetCharSize): Ditto.
7808
7809 * dispnew.c (mode_line_string): Add FRAME_LEFT_FLAGS_AREA_WIDTH
7810 instead of FRAME_FLAGS_AREA_WIDTH.
7811
7812 * dispextern.h (WINDOW_DISPLAY_PIXEL_WIDTH): Subtract
7813 FRAME_FLAGS_AREA_COLS once.
7814 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X): Add
7815 FRAME_LEFT_FLAGS_AREA_WIDTH instead of FRAME_FLAGS_AREA_WIDTH.
7816
78171999-08-30 Gerd Moellmann <gerd@gnu.org>
7818
7819 * freebsd.h (C_SWITCH_SYSTEM): Added to let configure find headers
7820 in /usr/X11R6/include which are checked for with AC_CHECK_HEADER.
7821
78221999-08-30 Gerd Moellmann <gerd@gnu.org>
7823
7824 * fns.c (QCweakness): Replaces QCweak.
7825 (Fmake_hash_table): Ditto.
7826 (Fmakehash): Ditto.
7827 (syms_of_fns): Ditto.
7828
78291999-08-29 Richard Stallman <rms@gnu.org>
7830
7831 * search.c (compile_pattern_1): Enable RE_CHAR_CLASSES for regexp.
7832
7833 * sysdep.c (read_input_waiting): Pass read_socket_hook just 4 args.
7834
7835 * syntax.h (SYNTAX_COMMENT_NESTED, SYNTAX_FLAGS_COMMENT_NESTED):
7836 Add support for nested comments.
7837
d7d0dac0
SM
7838 * syntax.c (Fforward_comment, scan_lists, scan_sexps_forward):
7839 Consolidate the forward comment code into the new `forw_comment'.
7840 (forw_comment): New subroutine. Added support for nested comments.
7841 (lisp_parse_state, back_comment, Fmodify_syntax_entry)
7842 (Fparse_partial_sexp): Add support for nested comments.
26901792
DL
7843
78441999-08-28 Ken Raeburn <raeburn@gnu.org>
7845
7846 * lisp.h (struct Lisp_Cons, XCAR, XCDR, struct Lisp_Float): Change
7847 names of structure elements if HIDE_LISP_IMPLEMENTATION is
7848 defined, to help detect code that uses knowledge of the Lisp
7849 internals that it shouldn't have.
7850 (XFLOAT_DATA): New macro.
7851
78521999-08-25 Gerd Moellmann <gerd@gnu.org>
7853
7854 * syntax.c (Fforward_word): If in a mini-buffer and moving
7855 backwards, stop in front of the prompt to prevent accidentially
7856 moving into the read-only prompt.
7857
7858 * window.c (Frecenter): Clear frame if called with nil or no arg.
7859
7860 * xdisp.c (resize_mini_window): Don't resize if
7861 Vmax_mini_window_height is nil. Otherwise, use a default if
7862 Vmax_mini_window_height is not ot a number.
7863 (syms_of_xdisp): Extend documentation of Vmax_mini_window_height.
7864
78651999-08-25 Alexandre Oliva <oliva@dcc.unicamp.br>
7866
7867 * unexelf.c: Merge IRIX debugging info patch from unexsgi.c
7868 * m/iris4d.h: Use unexelf for IRIX 5.*.
7869 * m/iris5d.h: Use unexelf for IRIX 6.*.
7870 * unexsgi.c: Deleted.
7871
7872 * unexelf.c: Auto-detect .sbss section.
7873 (round_up): Make it static.
7874 (unexec): Declare alignment as Elf Word. Skip ``Program
7875 segment above .bss'' test on MIPS without .sbss.
7876 Copy sections .got and .sdata1 sections. Adjust offsets in
7877 sections .sdata, .lit4, .lit8, .got and .sdata1.
7878
78791999-08-25 Gerd Moellmann <gerd@gnu.org>
7880
7881 * xdisp.c (try_window_id): Remove typo.
7882
78831999-08-24 Gerd Moellmann <gerd@gnu.org>
7884
7885 * xdisp.c (try_window_id): Recognize case that PT == ZV and in
7886 unchanged text at the bottom when computing the cursor position.
7887 (message3_nolog): Raise frame only if minibuffer_auto_raise is
7888 set.
7889
7890 * lisp.h (PVEC_TYPE_MASK): Add the bit for hash tables.
7891
78921999-08-24 Gerd Moellmann <gerd@gnu.org>
7893
7894 * xfaces.c (Qmargin): Replacement for Qbitmap_area.
7895 (realize_basic_faces): Replace Qmargin for Qbitmap_area.
7896 (syms_of_xfaces): Ditto.
7897
7898 * window.c (Fset_window_point): Reset Vresize_mini_config.
7899 (Fset_window_start): Ditto.
7900 (set_window_buffer): Ditto.
7901
7902 * dispnew.c (adjust_frame_glyphs): Reset Vresize_mini_config.
7903
7904 * xdisp.c (redisplay_window): Don't ever test just_this_one_p
7905 before calling try_window.
7906 (echo_area_display): If height has changed, update other windows.
7907 (resize_mini_frame, resize_mini_initial_height): New.
7908 (resize_mini_window): Save/restore window configuration
7909 differently.
7910
427ec082 7911 * lisp.h (Vresize_mini_config, resize_mini_frame,
26901792
DL
7912 resize_mini_initial_height): Add extern declarations.
7913
7914 * xterm.c (expose_window_tree): Fix typo CANON_Y_UNIT to
7915 CANON_X_UNIT.
7916
7917 * xfns.c [HAVE_JPEG]: Work around a warning about HAVE_STDLIB_H
7918 being redefined in jconfig.h.
7919
79201999-08-23 Ken'ichi Handa <handa@gnu.org>
7921
7922 * coding.h: Include "ccl.h" instead of "../src/ccl.h".
7923
79241999-08-22 Gerd Moellmann <gerd@gnu.org>
7925
7926 * alloc.c (mark_glyph_matrix): Mark strings only.
7927
7928 * xdisp.c (redisplay_internal): Clear garbaged frames after
7929 resizing mini-window.
7930
79311999-08-22 Gerd Moellmann <gerd@gnu.org>
7932
7933 * xdisp.c (unwind_with_echo_area_buffer): Use
7934 set_buffer_internal_1 instead of set_buffer_internal.
7935 (with_echo_area_buffer): Ditto.
7936
7937 * buffer.c (set_buffer_internal): Set windows_or_buffers_changed
7938 only if buffer is displayed somewhere.
7939
7940 * buffer.h (BUF_COMPUTE_UNCHANGED): New.
7941
7942 * insdel.c (gap_left): Use BUF_COMPUTE_UNCHANGED.
7943 (gap_right): Ditto.
7944 (modify_region): Ditto.
7945
7946 * buffer.c (modify_overlay): Use BUF_COMPUTE_UNCHANGED.
7947
7948 * xdisp.c (Vresize_mini_config): New.
7949 (resize_mini_window): Use it to save restore original window
7950 configuration
7951 (syms_of_xdisp): Initialize it.
7952
7953 * buffer.h (struct buffer): Add prevent_redisplay_optimizations_p.
7954
7955 * dispextern.h (struct glyph_matrix): Add buffer, begv, and zv.
7956
7957 * xdisp.c (reconsider_clip_changes): New.
7958 (redisplay_internal, redisplay_window): Call it.
7959 (mark_window_display_accurate, redisplay_internal): Set current
7960 matrix' buffer, begv, zv.
7961
7962 * window.c (Fset_window_hscroll): Set
7963 prevent_redisplay_optimizations_p instead of clip_changed.
7964 (Fset_window_hscroll): Ditto.
7965 (temp_output_buffer_show): Ditto.
7966 (Fset_window_vscroll): Ditto.
7967
7968 * buffer.c (reset_buffer): Set clip_changed to 0 and
7969 prevent_redisplay_optimizations_p to 1.
7970 (Fget_buffer_create): Set prevent_redisplay_optimizations_p to 1.
7971
7972 * buffer.h (BUF_UNCHANGED_MODIFIED, UNCHANGED_MODIFIED,
7973 BUF_OVERLAY_UNCHANGED_MODIFIED, OVERLAY_UNCHANGED_MODIFIED,
7974 BUF_BEG_UNCHANGED, BEG_UNCHANGED, BUF_END_UNCHANGED,
7975 END_UNCHANGED): New.
7976 (struct buffer_text): Add beg_unchanged, end_unchanged,
7977 unchanged_modified, overlay_unchanged_modified.
7978
7979 * window.h (beg_unchanged, end_unchanged, unchanged_modified,
7980 overlay_unchanged_modified): Removed.
7981 (with_echo_area_unwind_data): Don't save beg/end_unchanged.
7982 (unwind_with_echo_area_buffer): Don't restore them.
7983 (debug_beg_unchanged, debug_end_unchanged) [GLYPH_DEBUG]: Removed.
7984 (text_outside_line_unchanged_p, redisplay_internal,
7985 try_scrolling): Use/set buffer-specific beg/end_unchanged.
7986 (redisplay_window): Let try_window_id be called if more than one
7987 window is displayed. Use/set buffer-specific beg/end_unchanged.
7988 (get_last_unchanged_at_beg_row, get_first_unchanged_at_end_row,
7989 try_window_id):
7990 Use buffer-specific beg/end_unchanged.
7991
7992 * window.h (beg_unchanged, end_unchanged, unchanged_modified,
7993 overlay_unchanged_modified): Remove extern declarations.
7994
7995 * keyboard.c (command_loop_1): Set beg/end_unchanged per
7996 buffer.
7997
7998 * insdel.c (gap_left): Compute beg/end_unchanged per buffer.
7999 (gap_right): Ditto.
8000 (adjust_after_replace): Likewise.
8001 (replace_range, del_range_2, modify_region): Likewise.
8002
8003 * dispnew.c (direct_output_for_insert): Set beg_unchanged
8004 and unchanged_modified per buffer.
8005
8006 * coding.c (code_convert_region): Compute beg/end_unchanged per
8007 buffer.
8008
8009 * buffer.c (modify_overlay): Compute beg/end_unchanged
8010 per buffer.
427ec082 8011 (Fget_buffer_create): Initialize new members of the buffer
26901792
DL
8012 structure.
8013
80141999-08-22 Gerd Moellmann <gerd@gnu.org>
8015
8016 * lisp.h: Add prototype for copy_hash_table and Fcopy_hash_table.
8017
8018 * fns.c (Qkey, Qvalue): Renamed from Qkey_weak, and Qvalue_weak.
8019 (Qkey_value_weak): Removed.
8020 (make_hash_table): Use nil, `key', `value', t for weakness.
8021 (Fmake_hash_table): Ditto.
8022 (copy_hash_table): New.
8023 (Fcopy_hash_table): New.
8024
80251999-08-22 Gerd Moellmann <gerd@gnu.org>
8026
8027 * xfns.c: Call change_frame_size and do_pending_window_change with
d7d0dac0 8028 new parameter.
26901792
DL
8029
80301999-08-21 Gerd Moellmann <gerd@gnu.org>
8031
8032 * xdisp.c (resize_mini_window): Do it for truncate-lines t as
8033 well.
427ec082 8034 (redisplay_internal): Resize mini-window only if text might
26901792
DL
8035 have changed.
8036 (display_echo_area): Reset displayed echo_area_buffer to nil
8037 at the end if we're displaying a nil message.
8038
80391999-08-21 Gerd Moellmann <gerd@gnu.org>
427ec082 8040
26901792
DL
8041 * fns.c (hash_lookup): Test with EQ before calling key comparion
8042 function.
8043 (hash_remove): Ditto.
8044 (cmpfn_eq): Removed.
8045 (cmpfn_eql): Don't test with EQ.
8046 (cmpfn_equal): Ditto.
8047 (make_hash_table): Set comparison function for `eq' to null.
8048
8049 * buffer.c, cmds.c, editfns.c, indent.c, insdel.c, buffer.h:
8050 Remove conditional compilation on NO_PROMPT_IN_BUFFER.
8051
8052 * dispextern.h (NO_PROMPT_IN_BUFFER): Removed.
8053
8054 * window.c, widget.c, process.c, keyboard.c, frame.c, xdisp.c,
8055 xterm.c: Call change_frame_size and do_pending_window_change with
8056 new parameter.
8057
8058 * dispnew.c (do_pending_window_change): Add parameter `safe'.
8059 (change_frame_size): Ditto.
8060 (change_frame_size_1): Ditto. Deley size changes if redisplaying
8061 and not called from a safe place.
8062 (window_change_signal): Call change_frame_size with new parameter.
8063
8064 * dispextern.h: Change prototypes for do_pending_window_change
8065 and change_frame_size.
8066
8067 * xfaces.c (face_at_buffer_position): Don't xassert that
427ec082 8068 window's buffers equals current_buffer; this is not the
26901792
DL
8069 case during echo area display.
8070
80711999-08-21 Gerd Moellmann <gerd@gnu.org>
8072
8073 * xdisp.c, minibuf.c: Remove conditional compilation on
8074 NO_PROMPT_IN_BUFFER.
8075
8076 * minibuf.c (Fminibuffer_prompt_end): New.
8077 (syms_of_minibuf): Defsubr it. Remove
8078 minibuffer-prompt-in-buffer.
8079 (Fminibuffer_prompt_width): Return 0 if not in mini-buffer.
8080 Extend documentation.
8081
8082 * xdisp.c (get_next_display_element): Display \r as ^M.
8083
8084 * xterm.c (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]: Clear
8085 under scroll bar widget.
8086
80871999-08-21 Gerd Moellmann <gerd@gnu.org>
8088
8089 * xdisp.c (minibuffer_scroll_overlap): Removed because not used
8090 anywhere.
8091 (unwind_redisplay): Return nil.
8092 (clear_garbaged_frames): New.
8093 (redisplay_internal): Use it.
8094 (echo_area_display): Ditto.
8095 (resize_mini_window): Mew.
8096 (display_echo_area_1): Use it to resize echo area window.
8097 (redisplay_internal): Use it to resize active mini-window.
8098
8099 * dispextern.h, lisp.h: Add function prototypes.
8100
427ec082 8101 * dispnew.c (set_window_cursor_after_update): Do the
26901792
DL
8102 cursor_in_echo_area case only for a mini-window showing
8103 a message. Don't let cursor end up after the end of a row.
8104
8105 * xdisp.c (echo_area_glyphs, echo_area_message,
8106 echo_area_glyphs_length, previous_echo_glyphs,
8107 previous_echo_area_message, previous_echo_area_glyphs_length):
8108 Removed.
8109 (Vmessage_stack, echo_area_buffer, echo_buffer,
8110 display_last_displayed_message_p, Vwith_echo_area_save_vector): New.
8111 (message2_nolog): Use set_message and clear_message.
8112 (message3): Rename parameter len to nbytes to make clear what
8113 it is.
8114 (message3_nolog): Ditto. Use set_message and clear_message.
8115 (update_echo_area): Rewritten.
8116 (with_echo_area_buffer): New.
8117 (with_echo_area_buffer_unwind_data, unwind_with_area_buffer): New.
8118 (setup_echo_area_for_printing): New.
8119 (display_echo_area, display_echo_area_1): New.
8120
8121 (current_message, current_message_1): New.
427ec082 8122 (push_message, restore_message, pop_message,
26901792
DL
8123 check_message_stack): New.
8124 (truncate_echo_area): Rewritten.
8125 (truncate_message_1): New.
8126 (set_message, set_message_1, clear_message): New.
8127 (echo_area_display): Rewritten.
8128 (redisplay_internal): Check for needed echo area update
8129 differently.
8130 (redisplay_preserve_echo_area): Rewritten.
427ec082 8131 (redisplay_window): Check for mini-window displaying echo area
26901792
DL
8132 message differently.
8133 (syms_of_xdisp): Initialize Vmessage_stack and echo area buffers.
8134 Remove initialzation of removed variables.
8135 (init_xdisp): Remove references to removed variables.
8136
8137 * dispnew.c (adjust_frame_message_buffer): Removed references
8138 to echo_area_glyphs and previous_echo_glyphs.
8139 (direct_output_for_insert): Check for mini-window displaying
8140 echo area message differently.
8141 (update_frame): Likewise.
8142 (set_window_cursor_after_update): Likewise. In echo area,
8143 don't try to set cursor on rows that aren't enabled.
8144
8145 * print.c: Remove conditional compilation on `standalone'.
8146 (glyph_len, str_to_glyph_cpy, str_to_glyph_ncpy,
427ec082 8147 glyph_to_str_cpy): Remove that section because GLYPHs are no
26901792
DL
8148 longer used in that way.
8149 (PRINTDECLARE): Add multibyte.
8150 (PRINTPREPARE, PRINTFINISH): Handle printcharfun t differently.
8151 (printbufidx): Removed.
8152 (printchar, strout): Rewritten.
8153
8154 * keyboard.c (ok_to_echo_at_next_pause): Make it a pointer to
8155 a struct kboard.
8156 (echo_kboard): New.
8157 (echo_now): Set echo_kboard to the current kboard.
8158 (cancel_echoing): Set echo_kboard to null.
8159 (cmd_error_internal): Use clear_message, remove references
8160 to echo_area_glyphs and echo_area_message.
8161 (command_loop_1): Check for echo area messages differently.
8162 (read_char): Likewise.
8163 (record_menu_key): Use clear_message.
8164 (Fexecute_extended_command): Check for echo area messages
8165 differently. Use push_message, restore_message, pop_message.
8166
8167 * alloc.c (Fgarbage_collect): Use push_message, restore_message,
8168 pop_message.
8169
8170 * emacs.c (shut_down_emacs): Call check_message_stack.
8171
8172 * lisp.h: Add function prototypes and extern declarations for
8173 new functions and variables.
8174
8175 * fileio.c (Fdo_auto_save): Use push_message, restore_message,
8176 pop_message.
8177
427ec082 8178 * minibuf.c (read_minibuf): Use clear_message instead of
26901792
DL
8179 setting echo_area_glyphs.
8180 (Fminibuffer_completion_help): Ditto.
8181
8182 * editfns.c (Fcurrent_message): Rewritten.
8183
8184 * frame.c, window.h: Remove references to echo_area_glyphs
8185 and previous_echo_glyphs.
8186
81871999-08-21 Dave Love <fx@gnu.org>
8188
8189 * aix3-2-5.h (C_DEBUG_SWITCH): Use -g -O.
8190 * aix4-1.h: Likewise.
8191
8192 * irix6-5.h (C_DEBUG_SWITCH): Set for debug and optimize.
8193
81941999-08-20 Gerd Moellmann <gerd@gnu.org>
8195
8196 * xfns.c: Remove tiff34 prefix from include.
8197
81981999-08-20 Dave Love <fx@gnu.org>
8199
8200 * cm.c: Revert previous change.
8201
82021999-08-19 Gerd Moellmann <gerd@gnu.org>
8203
8204 * xterm.c (XTset_vertical_scroll_bar): Fix previous change. Clear
8205 under scroll bar with width FRAME_SCROLL_BAR_COLS.
8206
82071999-08-18 Dave Love <fx@gnu.org>
8208
8209 * callproc.c, filelock.c, insdel.c, sysdep.c, xmenu.c: Use
8210 stdlib.h.
8211
8212 * doprnt.c: Use stdlib.h, unistd.h.
8213
8214 * config.in: Add HAVE_TERMCAP_H.
8215
8216 * cm.c: Use termcap.h.
8217
82181999-08-18 Gerd Moellmann <gerd@gnu.org>
8219
8220 * xfns.c (x_window) [USE_X_TOOLKIT]: Remove test for
8221 FRAME_X_WINDOW (f) being null at the of the function. If widgets
8222 cannot be created we will already have crashed earlier. Call
8223 lw_set_main_areas with a null menu-bar widget, so that we have
8224 a reasonable default.
8225 (Fx_create_frame): Rearranged so that Lisp errors during frame
8226 initialization cause less damage. Initialize menu bar widget
8227 here.
8228
82291999-08-18 Gerd Moellmann <gerd@gnu.org>
427ec082 8230
26901792
DL
8231 * dispnew.c (update_frame_line): Fix previous change. If writing
8232 whole line clear to end of frame.
8233
82341999-08-17 Gerd Moellmann <gerd@gnu.org>
8235
8236 * window.c (Fcoordinates_in_window_p): Return `left-bitmap-area'
8237 and `right-bitmap-area' if position is in the bitmap areas. This
8238 avoids an error when clicking on the bitmap areas. Instead, they
8239 are currently treated like clicks inside the window.
8240 (coordinates_in_window): Return 5 and 6 for bitmap areas.
8241 (Qleft_bitmap_area, Qright_bitmap_area): New.
8242 (syms_of_window): Initialize new symbols.
8243
8244 * dispnew.c (update_frame_line): If writing whole line,
8245 don't write trailing spaces unless we must.
8246
8247 * xdisp.c (unwind_redisplay): New. Resets flag redisplaying_p.
8248 (redisplay_internal): Register unwind_redisplay with
8249 register_unwind_protect.
8250 (try_window_reusing_current_matrix): If new start > old start,
8251 give up if start pos of first reusable row is not equal to new
8252 start.
8253
8254 * eval.c (Fsignal): Don't reset redisplaying_p here.
8255
8256 * xterm.c (expose_area): If row extends face to end of line,
8257 write the whole line.
8258
82591999-08-16 Gerd Moellmann <gerd@gnu.org>
8260
8261 * dispextern.h (struct it): Remove member
8262 show_trailing_whitespace_p.
8263
8264 * dispnew.c (direct_output_for_insert): Use
8265 Vshow_trailing_whitespace instead of former iterator member
8266 show_trailing_whitespace_p.
8267 (direct_output_forward_char): Don't do it if hightlighting
8268 trailing whitespace.
8269
8270 * xdisp.c (Qshow_trailing_whitespace): Removed.
8271 (Vshow_trailing_whitespace): Added.
8272 (init_iterator): Remove initialization code for
8273 show_trailing_whitespace_p.
8274 (redisplay_internal): Don't try cursor movement in this_line
8275 if showing trailing whitespace.
8276 (redisplay_window): Likewise for cursor movement in current
8277 matrix and try_window_id.
8278 (try_window_reusing_current_matrix): Likewise.
8279 (trailing_whitespace_p): Return 0 if trailing whitespace is
8280 in front of point.
8281 (display_line): Use Vshow_trailing_whitespace instead of
8282 former iterator member show_trailing_whitespace_p.
8283 (syms_of_xdisp): Add DEFVAR_LISP for show-trailing-whitespace.
8284
82851999-08-16 Gerd Moellmann <gerd@gnu.org>
8286
8287 * window.c (Fpos_visible_in_window_p): Rewritten.
8288
8289 * xfaces.c (add_to_log): Renamed from display_message.
8290 Don't display messages in echo area.
8291
8292 * xterm.c (x_draw_glyph_string_box): Use the background width
8293 of the glyph string for the width of the box.
8294
82951999-08-16 Stefan Monnier <monnier@cs.yale.edu>
8296
8297 * syntax.c (Fforward_comment): Set comstyle for Scomment_fence.
8298
82991999-08-16 Geoff Voelker <voelker@cs.washington.edu>
8300
8301 * xfns.c, w32fns.c (x_set_frame_parameters): Set foreground and
8302 background first, and then set other parameters that might
8303 depend upon their new values.
8304
83051999-08-15 Gerd Moellmann <gerd@gnu.org>
8306
8307 * xfaces.c (Vfont_list_limit): New.
8308 (syms_of_xfaces): Make it a user-variable.
8309 (DEFAULT_FONT_LIST_LIMIT): New.
8310 (sorted_font_list): If Vfont_list_limit is an integer > 0, list
8311 maximally that number of fonts, otherwise use
8312 DEFAULT_FONT_LIST_LIMIT.
427ec082 8313 (Fx_font_family_list): Bind `font-list-limit' to higher values
26901792
DL
8314 until we have all fonts.
8315 (Fxfont_list): Additionally return the full names of fonts and
8316 their registry and encoding.
8317
427ec082 8318 * xterm.c (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
26901792
DL
8319 Simplify clearing "under" scroll bar.
8320
8321 * window.c (Qfixed_window_size): New.
8322 (syms_of_window): Initialiaze it.
8323 (check_all_windows): Add return type void.
8324 (window_fixed_size_p): New. Return non-zero if window
8325 is fixed-size.
8326 (window_min_size_1): New.
8327 (window_min_size): Handle fixed-size windows.
8328 (size_window): New. Rewritten combination of set_window_height and
8329 set_window_width that handles fixed-size windows.
8330 (set_window_height): Call it.
8331 (set_window_width): Call it.
8332 (Fsplit_window): Give an error on attempt to split a fixed-size
8333 window.
8334 (change_window_height): Partly rewritten to handle fixed-size
8335 windows.
8336
83371999-08-13 Wolfgang Rupprecht <wolfgang@wsrcc.com>
8338
8339 * process.c (Fopen_network_stream): Fix previous change.
8340
83411999-08-13 Karl Heuer <kwzh@gnu.org>
8342
8343 * xdisp.c (line_number_display_limit_width): New var.
8344 (decode_mode_spec): Use it instead of hardcoded value.
8345 (syms_of_xdisp): Defvar it.
8346
83471999-08-13 Richard M. Stallman <rms@gnu.org>
8348
8349 * eval.c (run_hook_list_with_args): Gcpro `globals'.
8350 (run_hook_with_args): Likewise.
8351
8352 * window.h (struct window): New field too_small_ok.
8353
427ec082 8354 * window.c (set_window_height, set_window_width):
26901792
DL
8355 If window starts out "too small", set its too_small_ok flag.
8356 If window's too_small_ok flag is set, don't delete it
8357 unless it is so small it would cause a crash.
8358
83591999-08-13 Gerd Moellmann <gerd@gnu.org>
8360
8361 * window.c (MINSIZE): Removed.
8362 (window_min_size): New.
8363 (set_window_height): Use window_min_size.
8364 (change_window_height): Ditto.
8365
83661999-08-12 Gerd Moellmann <gerd@gnu.org>
8367
8368 * indent.c (vmotion): Don't add in mini-buffer prompt width
8369 if prompts are inserted into mini-buffer.
8370
83711999-08-12 Wolfgang Rupprecht <wolfgang@wsrcc.com>
8372
8373 * config.in: Add HAVE_GETADDRINFO.
8374 * process.c (Fopen_network_stream): Use getaddrinfo.
8375
83761999-08-11 Gerd Moellmann <gerd@gnu.org>
8377
8378 * xdisp.c (get_overlay_arrow_glyph_row): Set the charpos of
8379 glyphs to -1.
8380
8381 * xdisp.c (face_before_or_after_it_pos): If position after
8382 or before iterator's current position in the buffer is out
8383 of bounds, return the iterator's original face id.
8384
8385 * dispnew.c (mirror_make_current): If desired row isn't enabled,
8386 just swap glyphs pointers between current and desired row.
8387 (build_frame_matrix_from_leaf_window) [GLYPH_DEBUG]: Copy
8388 desired matrix method string to current matrix.
8389
83901999-08-11 Kenichi Handa <handa@etl.go.jp>
8391
8392 * lisp.h (CHAR_MODIFIER_MASK): New macro.
8393
8394 * lread.c (read_escape): For Control modifier, pay attention to
8395 multibyte character.
8396 (read1): Likewise. Singal error or a multibyte character which
8397 has a modifer bit. Check validity of Shift modifer.
8398
8399 * charset.c (non_ascii_char_to_string): Handle modifier bits as
8400 the same as Lisp reader.
8401
84021999-08-10 Richard M. Stallman <rms@gnu.org>
8403
8404 * charset.h (BCOPY_SHORT): Fix typo `unsigined'.
8405
84061999-08-10 Alexandre Oliva <oliva@dcc.unicamp.br>
8407
8408 * unexelf.c [__linux__ && __alpha__] (HAS_SBSS_SECTION): Define.
8409
84101999-08-10 Eli Zaretskii <eliz@gnu.org>
8411
8412 * msdos.c (IT_set_face): Abort if the default face is not realized
8413 and cached.
8414 (IT_write_glyphs): Reset the screen face to the default face
8415 before writing glyphs.
8416
8417 * xfaces.c (realize_default_face) [MSDOS]: Don't take default
8418 colors from the frame here.
8419 (realize_tty_face) [MSDOS]: Do it here. Update the face
8420 attributes with the actual name of the color taken from the
8421 frame.
8422
8423 * dosfns.c (msdos_stdcolor_name): Remove const from return value.
8424 * dosfns.h (msdos_stdcolor_name): Ditto for the prototype.
8425
8426 * frame.c (Fframe_parameters): Swap foreground and background
8427 colors returned in frame parameters if the frame has reverse in
8428 its parameter alist.
8429 (Fmake_terminal_frame): Make a unique copy of face_alist for
8430 each frame.
8431
84321999-08-07 Richard Stallman <rms@gnu.org>
8433
8434 * buffer.c (Fprevious_overlay_change): Just return
8435 the answer obtained from overlays_at.
8436
8437 * xfns.c (xpm_load) [!XpmAllocCloseColors]:
8438 Use XpmCloseness and attrs.closeness instead.
8439
84401999-08-06 Richard Stallman <rms@gnu.org>
8441
8442 * lread.c (Feval_buffer): New arg DO_ALLOW_PRINT.
8443
84441999-08-06 Geoff Voelker <voelker@cs.washington.edu>
8445
427ec082 8446 * dired.c (directory_files_internal, Fdirectory_files_and_attributes,
26901792
DL
8447 Ffile_attributes_lessp): New functions.
8448 (Fdirectory_files): Use directory_files_internal.
8449 (syms_of_dired): Initialize Fdirectory_files_and_attributes,
8450 Ffile_attributes_lessp.
8451
8452 * w32.c (stat): Check for directory ending in separator when
8453 doing readdir fast path.
8454
8455 * w32fns.c (x_set_icon_type): Support setting frame icons.
8456 * w32term.c (x_bitmap_icon): New function.
8457 (x_make_frame_visible, x_iconify_frame): Invoke x_bitmap_icon.
427ec082 8458
26901792
DL
84591999-08-06 Gerd Moellmann <gerd@gnu.org>
8460
8461 * xdisp.c (set_iterator_to_next): After delivering a character
8462 from a display vector, restore face and charset to what they were
8463 before the display vector was processed.
8464
84651999-08-06 Gerd Moellmann <gerd@gnu.org>
8466
8467 * xdisp.c (reseat_at_next_visible_line_start): New parameter
8468 on_newline_p.
8469 (set_iterator_to_next): After delivering last char
427ec082 8470 from display vector, reseat on next visible line start if
26901792
DL
8471 dpvec_char_len < 0.
8472 (next_element_from_buffer): Set dpvec_char_len to -1 for
8473 selective display.
8474
84751999-08-06 Gerd Moellmann <gerd@gnu.org>
8476
8477 * xdisp.c (compute_line_metrics): If first line's physical ascent
8478 is larger than its logical ascent, use the physical ascent, and
8479 make the row taller. Set row's overlapping_p flag.
8480
8481 * dispnew.c (redraw_overlapping_rows): Use flag overlapping_p.
8482 (direct_output_for_insert): Ditto.
8483
8484 * dispextern.h (struct glyph_row): Add overlapping_p.
8485
8486 * xterm.c (x_draw_phys_cursor_glyph): Redraw overlaps.
8487
8488 * dispextern.h (MATRIX_ROW_OVERLAPS_PRED_P): New.
8489 (MATRIX_ROW_OVERLAPS_SUCC_P): New.
8490
8491 * dispnew.c (direct_output_for_insert): Don't use this method if
8492 row is overlapped by others.
8493 (update_text_area): Write full line if current line is overlapped.
8494 (redraw_overlapped_rows): New.
8495 (update_window): Call it.
8496 (redraw_overlapping_rows): New.
8497 (update_window): Call it.
8498 (scrolling_window): Make sure overlapped_p flag in current rows is
8499 unchanged.
8500 (row_equal_p): Take rows overlapped_p flag into account.
8501
8502 * dispextern.h (struct glyph_row): Add flag overlapped_p.
8503
8504 * xterm.c (x_fix_overlapping_area): New.
8505 (x_redisplay_interface): Add x_fix_overlapping_area.
8506
8507 * dispnew.c (adjust_glyphs): Block input while adjusting matrices.
8508
85091999-08-06 Gerd Moellmann <gerd@gnu.org>
8510
8511 * xterm.c (x_draw_glyphs): Add parameter overlaps_p.
8512 (struct glyph_string): Add member for_overlaps_p.
8513 (x_get_glyph_string_clip_rect): If glyph string draws foreground
8514 of overlapping rows, clip to window bottom.
8515 (x_fill_glyph_string): Add parameter overlaps_p.
8516 (x_fill_composite_glyph_string): Ditto.
8517 (BUILD_GLYPH_STRINGS): Ditto.
8518 (BUILD_CHAR_GLYPH_STRINGS): Ditto.
8519 (x_draw_glyph_string): Don't draw anything but the foreground
8520 if glyph string draws row overlaps.
8521
8522 * dispnew.c (direct_output_for_insert): Don't use this
8523 optimization for rows that overlap others.
8524 (update_window_line): Return non-zero if display has changed.
8525 (update_text_area): Ditto.
8526 (update_window): Record if display has been changed.
8527
8528 * dispextern.h (MATRIX_ROW_OVERLAPPING_P): New.
8529
8530 * dispextern.h (struct redisplay_interface): Add
8531 fix_overlapping_area.
8532
8533 * xterm.c (x_append_glyph): Set glyph flag overlaps_vertically_p.
8534
8535 * dispextern.h (struct glyph): Add overlaps_vertically_p.
8536
8537 * xterm.c (x_produce_image_glyph): Compute iterator's physical
8538 ascent and descent.
8539 (x_produce_stretch_glyph): Ditto.
8540 (x_produce_glyphs): Ditto.
8541
8542 * xdisp.c (init_iterator): Reset physical line height info
8543 after producing special glyphs.
8544 (display_toolbar_line): Set physical line height info.
8545 (compute_line_metrics): Ditto.
8546 (display_line): Ditto.
8547 (display_string): Ditto.
8548
8549 * term.c (produce_glyphs): Set iterator's physical height
8550 information.
8551
8552 * dispnew.c (blank_row): Compute glyph row's physical height.
8553 (row_equal_p): Take physical row heights into account.
8554 (direct_output_for_insert): Ditto.
8555 (update_text_area): Ditto.
8556
8557 * dispextern.h (struct glyph_row): Add phys_ascent and
8558 phys_height.
8559 (struct it): Add phys_ascent, phys_descent, max_phys_ascent,
8560 max_phys_descent.
8561
85621999-08-04 Stefan Monnier <monnier@cs.yale.edu>
8563
8564 * buffer.c (switch_to_buffer_1): New subroutine, taken out from
8565 Fswitch_to_buffer.
8566 (no_switch_buffer): New function.
8567 (Fswitch_to_buffer): Call them. Don't get confused
8568 by "same-window" buffers in a dedicated frame.
8569
8570 * window.c (display-buffer): Don't get confused
8571 by "same-window" buffers in a dedicated frame.
8572
85731999-08-04 Andreas Schwab <schwab@gnu.org>
8574
8575 * insdel.c (insert_from_string_1): Check gap size against number
8576 of outgoing bytes, not incoming bytes.
8577
85781999-08-03 Tom Breton <tob@world.std.com>
8579
8580 * lread.c (read1): Added circular reading code to #N=.
8581 (SUBSTITUTE): New macro.
8582 (seen_list): New variable.
8583 (substitute_object_in_subtree): New function.
8584 (substitute_object_recurse): New function.
8585 (substitute_in_interval): New function.
8586
85871999-08-02 Eli Zaretskii <eliz@gnu.org>
8588
8589 * Makefile.in (frame.o, sysdep.o, xfaces.o): Depend on dosfns.h.
8590
8591 * frame.c (make_terminal_frame): Don't call init_frame_faces if
8592 noninteractive, for termcap frames as well.
8593
8594 * sysdep.c (init_sys_modes): Call init_frame_faces for termcap
8595 frames.
8596
85971999-08-01 Richard Stallman <rms@gnu.org>
8598
8599 * fns.c (internal_equal): Correct overlay comparison.
8600
83c8f461 86011999-07-31 Richard M. Stallman <rms@gnu.org>
26901792 8602
427ec082 8603 * xfns.c (x_set_internal_border_width):
26901792
DL
8604 Call do_pending_window_change. Don't block input, don't call XFlush.
8605 (x_set_vertical_scroll_bars): Call do_pending_window_change.
8606 (x_set_scroll_bar_width, x_set_font): Likewise.
8607
8608 * frame.c (Fset_frame_height): Call do_pending_window_change.
8609 (Fset_frame_width, Fset_frame_size): Likewise.
8610
8611 * xterm.c (x_set_window_size): When calling change_frame_size,
8612 specify 1 for DELAY.
8613
8614 * widget.c (EmacsFrameSetCharSize): Don't call
8615 do_pending_window_change here.
8616
86171999-07-30 Dave Love <fx@gnu.org>
8618
8619 * config.in: Add HAVE_STDLIB_H.
8620
86211999-07-30 Richard M. Stallman <rms@gnu.org>
8622
8623 * process.c (create_process): Detect failure of `pipe'.
8624
86251999-07-30 Keisuke Nishida <kei@psn.net>
8626
8627 * alloc.c (allocate_vectorlike): Add missing increment.
8628
8629 * data.c (Fdefalias): Call Ffset instead of duplicating code.
8630
8631 * keymap.c (get_keymap_1, get_keyelt): Check the type of OBJECT
8632 before calling indirect_function.
8633
86341999-07-30 Eli Zaretskii <eliz@gnu.org>
8635
8636 * dispextern.h (load_color, lookup_derived_face): Declare
8637 prototypes.
8638
8639 * dispnew.c (init_display) [MSDOS]: Don't initialize frame faces,
8640 it will be done later.
8641
8642 * frame.c (make_terminal_frame) [MSDOS]: Don't call
8643 init_frame_faces if non-interactive.
8644 (Fframe_parameters) [MSDOS]: Replace indexing into colornames[]
8645 array with a call to msdos_stdcolor_name. The font name is now
8646 "ms-dos", consistent with realize_tty_face.
8647
8648 * keyboard.c (cmd_error_internal): Don't kill Emacs if this is an
8649 MSDOS frame.
8650
8651 * window.c (Fset_window_configuration) [MSDOS]: Don't call
8652 x_set_toolbar_lines.
8653
8654 * xfaces.c (load_color): Remove static from definition and remove
8655 prototype.
8656 [MSDOS]: Add a DOS-specific version of load_color.
8657 (lookup_face): Replace FRAME_TERMCAP_P with !FRAME_WINDOW_P.
8658 (lookup_derived_face): New function.
8659 (realize_default_face): Support MSDOS frames.
8660 [MSDOS]: If fore/background colors are unspecified, inherit them
8661 from the frame.
8662 (realize_face): Support MSDOS frames.
8663 (realize_tty_face): Support MSDOS frames.
8664 [MSDOS]: If the face color is not in Vface_tty_color_alist, call
8665 load_color to try to find a suitable approximation. If the face
8666 is inverse-video, swap the foreground and background colors.
8667
8668 * dosfns.c (msdos_stdcolor_name, msdos_stdcolor_idx): New
8669 functions.
8670
8671 * dosfns.h (msdos_stdcolor_name, msdos_stdcolor_idx): Declare.
8672
8673 * msdos.h: Remove redundant declarations (most of them are now in
8674 dispextern.h).
8675
8676 * msdos.c (IT_set_face): Rewritten for the new redisplay engine.
8677 Use default frame colors if the face doesn't specify them; invert
8678 the colors if highlight is ON.
8679 (IT_write_glyphs): Rewritten for the new redisplay engine.
8680 (IT_change_line_highlight): Add (unused) parameter Y, since that's
8681 how the hook is called by term.c.
8682 (IT_copy_glyphs): New function, copies an area of the display in
8683 video RAM.
8684 (IT_insert_glyphs): Rewritten to DTRT instead of aborting, since
8685 redisplay now calls it even if char_ins_del_ok is zero.
8686 (IT_set_frame_parameters): Prototype changed. Calls the new
8687 load_color. Puts the new fore/background colors into the default
8688 face on current frame.
8689 (IT_menu_display): Rewritten to handle the new struct glyph
8690 instead of a char array.
8691 (XMenuActivate): Call lookup_derived_face to create and use
8692 special faces for the pop-up and drop-down menus.
8693
86941999-07-29 Gerd Moellmann <gerd@gnu.org>
8695
8696 * xterm.c (x_set_toolkit_scroll_bar_thumb): Don't call
8697 XawScrollbarSetThumb if thumb parameters haven't changed because
8698 that function apparently isn't optimized for this case.
8699
87001999-07-29 Eli Zaretskii <eliz@gnu.org>
8701
8702 * msdos.c (getdefdir): Don't return failure indication when
8703 _fixpath sets errno to ENOSYS.
8704
87051999-07-28 Gerd Moellmann <gerd@gnu.org>
8706
8707 * xdisp.c (string_char_and_length): New. Use it everywhere
8708 instead of STRING_CHAR_AND_LENGTH in xdisp.c.
8709
87101999-07-28 Kenichi Handa <handa@etl.go.jp>
8711
8712 * fns.c (count_combining): New function.
8713 (struct textprop_rec): New structure.
8714 (concat): Copy text properties correctly when byte combining
8715 occurs.
8716
87171999-07-28 Gerd Moellmann <gerd@gnu.org>
8718
8719 * xterm.c (x_setup_relief_color): Don't try smart color allocation
8720 if display is mono.
8721 (x_draw_row_bitmaps): If face has stipple, don't switch
8722 to foreground color for clearing areas, and set the fill style.
8723
8724 * xfaces.c (load_face_colors): Load background color if setting
8725 stipple, too.
427ec082 8726 (prepare_face_for_display): Use FillOpaqueStippled instead of
26901792
DL
8727 FillStippled.
8728
87291999-07-26 Ken'ichi Handa <handa@gnu.org>
8730
8731 * xterm.c (x_find_ccl_program): Add casting.
8732
8733 * w32fns.c (w32_find_ccl_program): Add casting.
8734
87351999-07-27 Gerd Moellmann <gerd@gnu.org>
8736
8737 * dispextern.h (struct glyph_row): Flag internal_border_p removed.
8738
8739 * xfns.c (x_create_tip_frame): Don't set bitmapIcon resource
8740 because this will try to access a nonexisting widget.
8741
87421999-07-26 Markus Rost <rost@gnu.org>
8743
427ec082 8744 * fns.c (Fgethash): Fix order of variables (patch by gerd).
26901792
DL
8745 (Fputhash): Ditto.
8746 (Fremhash): Ditto.
8747
87481999-07-26 Gerd Moellmann <gerd@gnu.org>
427ec082 8749
26901792
DL
8750 * widget.c (EmacsFrameSetCharSize): Don't add XtNborderWidth
8751 value to frame width and height.
8752
8753 * xterm.c (x_get_glyph_string_clip_rect): Take internal border
8754 into account for full-width windows. Don't add scroll bar width
8755 to width of clip rect.
8756 (x_draw_glyph_string_box): Add 1 to right x of full width lines.
8757 (x_set_glyph_string_background_width): Add 1 to background width.
8758 (x_draw_glyphs): Take internal border into account for full-width
8759 lines.
8760
87611999-07-26 Richard M. Stallman <rms@gnu.org>
8762
8763 * xfns.c (x_set_mouse_color): Always unload the old color.
8764 Don't allow nil as color value.
427ec082 8765 (x_set_cursor_color, x_set_background_color, x_set_foreground_color):
26901792
DL
8766 Always unload the old color.
8767
8768 * indent.c (Fmove_to_column): Extend end of line only if FORCE is t.
8769
87701999-07-26 Karl Heuer <kwzh@gnu.org>
8771
8772 * fns.c (Fy_or_n_p): Doc fix.
8773
87741999-07-26 Kenichi Handa <handa@etl.go.jp>
8775
8776 * ccl.h (setup_ccl_program): The type is changed to `int'.
8777
8778 * ccl.c (ccl_driver) <CCL_Call>: Now CCL program ID to call may be
8779 stored in the following CCL code. Adjusted for the change of
8780 Vccl_program_table.
8781 (resolve_symbol_ccl_program): Adjusted for the new style of
8782 embedded symbols (SYMBOL . PROP) in CCL compiled code. Return Qt
8783 is resolving failed.
8784 (ccl_get_compiled_code): New function.
8785 (setup_ccl_program): Function type changed from `void' to `int'.
8786 Resolve symbols in CCL_PROG.
8787 (Fccl_program_p): New function.
8788 (Fccl_execute): Get compiled CCL code by just calling
8789 setup_ccl_program.
8790 (Fccl_execute_on_string): Likewise.
8791 (Fregister_ccl_program): Adjusted for the change of
8792 Vccl_program_table.
8793
8794 * coding.c (setup_coding_system): Get compiled CCL code by just
8795 calling setup_ccl_program.
8796
8797 * xterm.c (x_find_ccl_program): Get compiled CCL code by just
8798 calling setup_ccl_program.
8799
8800 * w32fns.c (w32_find_ccl_program): Get compiled CCL code by just
8801 calling setup_ccl_program.
8802
88031999-07-23 Gerd Moellmann <gerd@gnu.org>
8804
8805 * xfaces.c (frame_update_line_height): Just use the height of the
8806 frame's fontset or font, instead of taking face fonts into
8807 account.
8808
8809 * xdisp.c (get_next_display_element): Display DEL as `^?'.
8810
88111999-07-23 Richard M. Stallman <rms@gnu.org>
8812
8813 * window.c (Fsplit_window): For default size, round up for left window.
8814
88151999-07-21 Joe Ramey <ramey@ti.com>
8816
d7d0dac0 8817 * filelock.c (lock_if_free): Return -1 if check_lock_owner
26901792
DL
8818 has returned -1 (lockfile exists but is not a symlink?).
8819
88201999-07-20 Gerd Moellmann <gerd@gnu.org>
8821
8822 * xterm.c (x_draw_bar_cursor): Use scratch_cursor_gc to
8823 because of a change in cursor_gc made in 20.4.
8824
88251999-07-19 Gerd Moellmann <gerd@gnu.org>
8826
8827 * xterm.c (x_calc_absolute_position): Subtract menu bar height
8828 for YNegative, if using X toolkit.
8829
427ec082 8830 * xfns.c (x_real_positions): Don't subtract window borders
26901792
DL
8831 from positions returned.
8832
88331999-07-17 Gerd Moellmann <gerd@gnu.org>
8834
8835 * xrdb.c (x_load_resources): Set double-click time defaults
8836 for Motif list boxes from double-click-time.
8837
8838 * fns.c (Vhash_table_tests): Remvoed.
8839 (Qhash_table_test): New.
8840 (syms_of_fns): Initialize Qhash_table_test.
8841 (Fmake_hash_table): Look up user-defined tests in symbol prop
8842 `hash-table-test'.
8843 (Fdefine_hash_table_test): Store test and hash function as
8844 symbol prop `hash-table-test'.
8845 (make_hash_table): Add parameters user_test and user_hash.
8846
8847 * window.c (set_window_buffer): Set window margins for tty
8848 frames, too.
8849 (Fset_window_margins): Ditto.
8850
8851 * term.c (append_glyph): Use glyph area of iterator instead of
8852 always TEXT_AREA.
8853
8854 * dispnew.c (update_frame_1): Add left margin width to cursor
8855 hpos.
8856 (direct_output_for_insert): Ditto.
8857 (direct_output_forward_char): Ditto.
8858
8859 * dispnew.c (adjust_glyph_matrix): Set glyph matrix' top_line_p.
8860
8861 * dispextern.h (struct glyph_matrix): Add top_line_p.
8862
88631999-07-16 Gerd Moellmann <gerd@gnu.org>
8864
8865 * frame.h (FRAME_WINDOW_REDISPLAY_P): Removed. Use FRAME_WINDOW_P
8866 instead.
8867
8868 * fns.c (cmpfn_eq): Add hash code parameters.
8869 (cmpfn_eql): Ditto.
8870 (cmpfn_equal): Ditto, and compare hash codes before calling Fequal.
8871 (cmpfn_user_defined): Likewise.
8872
88731999-07-15 Gerd Moellmann <gerd@gnu.org>
8874
8875 * lisp.h (DEFAULT_REHASH_THRESHOLD): Changed to 0.8.
8876
8877 * fns.c (maybe_resize_hash_table): Correct computation of
8878 index vector size.
8879 (make_hash_table): Ditto.
8880 (Fmakehash): New.
8881
8882 * xdisp.c (echo_area_display): Don't call redraw_garbaged_frames.
8883
8884 * alloc.c (gc_sweep): Call sweep_weak_hash_tables.
8885 (survives_gc_p): Make it externally visible.
8886 (mark_object): Ditto.
8887
8888 * fns.c (remove_hash_entry): Removed.
8889 (sweep_weak_hash_tables): New.
8890
8891 * print.c (print): Print more information about hash tables.
8892
8893 * xfns.c (image_spec_hash): Removed.
8894 (lookup_image): Use sxhash instead of image_spec_hash.
8895 (image_spec_equal_p): Removed.
8896 (lookup_image): Use Fequal instead of image_spec_equal_p.
8897
88981999-07-14 Gerd Moellmann <gerd@gnu.org>
8899
8900 * lisp.h (P_): Moved to top of file.
8901
8902 * fns.c (make_hash_table): Set new members.
8903
8904 * alloc.c (mark_object): Mark hash table's user_hash_function.
8905 Mark index vector for weak hash tables.
8906
8907 * lisp.h (struct Lisp_Hash_Table): Add user_cmp_function,
8908 user_hash_function, cmpfn, and hashfn.
8909
8910 * fns.c (build_hash): Removed.
8911 (hash_test): Removed.
8912 (cmpfn_eq, cmpfn_eql, cmpfn_equal, cmpfn_user_defined): New.
8913 (hashfn_eq, hashfn_eql, hashfn_equal, hashfn_user_defined): New.
8914
89151999-07-13 Gerd Moellmann <gerd@gnu.org>
8916
8917 * alloc.c (survives_gc_p): New.
8918
8919 * print.c (print): Add hash table handling.
8920
8921 * alloc.c (mark_object): Add code to mark hash tables.
8922
8923 * lisp.h (GC_HASH_TABLE_P): New.
8924
8925 * emacs.c (main): Call init_fns.
8926
8927 * fns.c (init_fns): New.
8928
8929 * fns.c: Add hash table implementation.
8930
8931 * lisp.h (PVEC_HASH_TABLE): New.
8932 (struct Lisp_Hash_Table): New.
8933 (XHASH_TABLE): New.
8934 (XSET_HASH_TABLE): New.
8935 (HASH_TABLE_P): New.
8936 (CHECK_HASH_TABLE): New.
8937 (DEFAULT_HASH_SIZE): New.
8938 (DEFAULT_REHASH_THRESHOLD): New.
8939 (DEFAULT_REHASH_SIZE): New.
8940
8941 * xterm.c (x_draw_glyphs): Add parameters real_start and real_end.
8942 (x_write_glyphs): Compute overwritten cursor using real start
8943 and end positions of display.
8944 (x_insert_glyphs): Ditto.
8945
89461999-07-10 Gerd Moellmann <gerd@gnu.org>
8947
8948 * keyboard.c (read_char): Use message3_nolog to show help-echo.
8949
8950 * dispnew.c (blank_row): Add y-position as parameter. Compute
8951 visible height.
8952
8953 * xdisp.c (next_element_from_string): Give padding spaces
8954 a position of -1.
8955
427ec082 8956 * dispnew.c (adjust_glyph_matrix): Some work to support
26901792
DL
8957 marginals areas on tty frames in a future version.
8958 (allocate_matrices_for_frame_redisplay): Ditto.
8959
8960 * xdisp.c (display_line): At ZV, set glyph row's displays_text_p
8961 to zero if number of glyphs in the row is <= 1.
8962
89631999-07-09 Gerd Moellmann <gerd@gnu.org>
8964
8965 * dispnew.c (buffer_posn_from_coords): Take left marginal area
8966 into account.
8967
8968 * xdisp.c (handle_display_prop): Don't reset area if handing
8969 a property from a string that came from a `display' property.
8970 (handle_single_display_prop): Don't handle recursive `display'
8971 properties.
8972 (handle_single_display_prop): Handle some display property
8973 forms for terminal frames.
8974 (Qimage): Moved here from xfns.c.
8975
8976 * dispextern.h (struct it): New field string_from_display_prop_p.
8977
8978 * xterm.c (x_clip_to_row): Don't let clip_rect include top
8979 line.
8980
89811999-07-08 Gerd Moellmann <gerd@gnu.org>
8982
8983 * xdisp.c (handle_single_display_prop): Handle `:when FORM'.
8984
8985 * window.c (set_window_buffer): Set window's vscroll to zero.
8986
8987 * xdisp.c (QCwhen): New.
8988 (display_prop_end): New.
8989 (handle_single_display_prop): Use it.
8990 (debug_method_add): Print buffer name if tracing.
8991 (try_window_reusing_current_matrix): Compute visible height
8992 of reused rows. Fix cursor position calculation in case of
8993 top-line.
8994
8995 * dispextern.h (struct redisplay_interface): Add parameter
8996 cursor_on_p to update_window_end_hook.
8997
8998 * xterm.c (x_update_window_end): Add parameter cursor_on_p.
8999
90001999-07-07 Gerd Moellmann <gerd@gnu.org>
9001
427ec082 9002 * xdisp.c (redisplay_internal): Ensure that redisplayinp_p
26901792
DL
9003 doesn't become negative when decrementing it.
9004
9005 * eval.c (Fsignal): Reset redisplaying_p to zero.
9006
9007 * xdisp.c (try_window_reusing_current_matrix): Call hooks
9008 for window update.
9009 (try_window_id): Ditto.
9010
9011 * xterm.c (x_clear_end_of_line): Handle top-line correctly.
9012 (x_scroll_run): Ditto.
9013 (any_help_event_p): New.
9014 (x_initialize): Set it to zero.
9015 (XTread_socket): Clear help echo only if any_help_event_p.
9016
9017 * xdisp.c (init_iterator): Set top_line_p.
9018 (start_display): Use correct initial y if top-line is present.
9019 (make_cursor_line_fully_visible): Bug fixes for top-line.
9020 (try_scrolling): Ditto.
9021 (try_window_reusing_current_matrix): Ditto.
9022
9023 * dispextern.h (struct it): Add top_line_p.
9024
9025 * dispnew.c (shift_glyph_matrix): Move some computations out
9026 of the loop.
9027
427ec082 9028 * dispnew.c (margin_glyphs_to_reserve): Use NUMBERP and
26901792
DL
9029 XFLOATINT.
9030
90311999-07-06 Gerd Moellmann <gerd@gnu.org>
9032
9033 * dispnew.c (update_frame_1): When setting cursor in echo area,
9034 skip only over padding spaces at the end.
9035
9036 * xfaces.c (realize_tty_face): Set face's font_name field to
9037 "tty".
9038
9039 * term.c (update_end): Turn cursor on only if selected window's
9040 cursor_off_p flag is not set.
9041
90421999-07-05 Gerd Moellmann <gerd@gnu.org>
9043
9044 * term.c (TS_cursor_visible): Renamed from TS_visual_mode.
9045 (TS_cursor_normal): Renamed from TS_end_visual_mode.
9046 (TS_cursor_invisible): New.
9047 (term_init): Initialize TS_cursor_invisible.
9048 (tty_hide_cursor): New.
9049 (tty_show_cursor): New.
9050 (update_end): Show tty cursor.
9051 (update_begin): Hide tty cursor to prevent cursor flickering
9052 during redisplays triggered by timers (stealth fontification).
9053
9054 * keyboard.c (make_lispy_event) <TOOLBAR_EVENT>: Apply modifiers.
9055
9056 * xterm.c (XTread_socket) [USE_MOTIF] <KeyPress>: Catch events
9057 in scroll bars.
9058 (x_handle_toolbar_click): Set modifier bits.
9059
90601999-07-04 Gerd Moellmann <gerd@gnu.org>
9061
9062 * keyboard.c (kbd_store_ptr): Declare it as a volatile pointer
9063 instead of a pointer to a volatile input_event.
427ec082 9064 (kbd_buffer_store_event): Remove volatile modifier from
26901792
DL
9065 declaration of local variable `sp'.
9066 (Fdiscard_input): Don't cast when assigning kbd_store_ptr
9067 to kbd_fetch_ptr.
9068
90691999-07-03 Gerd Moellmann <gerd@gnu.org>
9070
9071 * xdisp.c (try_window_id): Set beg_unchanged and end_unchanged
9072 only if buffer is modified. Return quickly if changes are
9073 above window start.
9074
90751999-07-02 Gerd Moellmann <gerd@gnu.org>
9076
9077 * dispextern.h (HSCROLL_WINDOWS): Removed.
9078
9079 * xdisp.c (mark_window_display_accurate): Don't set
9080 w->region_showing.
9081 (redisplay_internal): Don't call redraw_garbaged_frames.
9082
90831999-07-01 Gerd Moellmann <gerd@gnu.org>
9084
9085 * xdisp.c (echo_area_display): Don't display truncation marks
9086 for messages because 20.4 doesn't do it either.
9087 (redisplay_window): Case same window start. Instead of giving
9088 up when cursor is partially visible, make it fully visible.
9089 (mark_window_display_accurate): Some cleanup. Record window's
9090 last cursor information.
9091 (debug_method_add): Improved.
9092 (redisplay_internal): Record last cursor info only if not
9093 consider_all_windows_p.
9094
9095 * dispnew.c (update_window): Update top line after scrolling.
9096 (blank_row): Renamed from make_empty_enabled_row.
9097 (increment_glyph_row_buffer_positions): Increment positions
9098 in buffers, only.
9099
9100 * window.c (Fcoordinates_in_window_p): Add top-line to doc
9101 string.
9102
91031999-06-30 Gerd Moellmann <gerd@gnu.org>
9104
9105 * dispnew.c (update_window): Check that updated row is visible.
9106
9107 * xterm.c (x_draw_row_bitmaps): Check for invisible rows at
9108 top of window differently.
9109
9110 * xdisp.c (try_window_reusing_current_matrix): Don't do it
9111 if region is showing.
9112
9113 * dispnew.c (adjust_glyph_matrix): Check w->vscroll when
9114 avoiding matrix reallocation. Set window_vscroll in matrix.
9115
9116 * dispextern.h (struct glyph_matrix): Add member window_vscroll.
9117
26901792
DL
9118 * xdisp.c (debug_method_add): New.
9119 (debug_redisplay_method): Removed.
9120 (try_window_reusing_current_matrix): Handle case where old
9121 window start is the same as new window start.
9122
9123 * dispextern.h (struct glyph_matrix) [GLYPH_DEBUG]: Make `method'
9124 an array instead of a pointer.
9125
26901792
DL
9126 * xfns.c (Fx_show_tip): Undo previous change.
9127
9128 * xterm.c (x_append_glyph): Clear glyph->u.val.
9129
9130 * dispextern.h (struct glyph): Increase size of face_id bit-field
9131 for CHAR_GLYPH to 12.
9132
91331999-06-29 Gerd Moellmann <gerd@gnu.org>
9134
9135 * xfaces.c (x_charset_registry): Make it externally visible.
9136
91371999-06-28 Gerd Moellmann <gerd@gnu.org>
9138
427ec082 9139 * dispnew.c (update_window): Use mode_line_p flag of rows
26901792
DL
9140 instead of WINDOW_WANTS_MODELINE_P.
9141
9142 * xterm.c (clear_mouse_face): Make externally visible.
9143
9144 * xfns.c (Fx_show_tip): Clear mouse face before showing tip.
9145
9146 * xterm.c (expose_line): Handle exposure of top-lines.
9147
9148 * xterm.c (XTframe_up_to_date): Don't call note_mouse_highlight
9149 if mouse_face_mouse_frame is null.
9150
9151 * xdisp.c (redisplay_window): If window is echo_area_window,
9152 and update_mode_line is set, update menubar and toolbar.
9153
9154 * dispnew.c (space_glyph): Set its charpos to -1.
9155 (update_frame_1): Ignore trailing padding spaces.
9156
9157 * xdisp.c (next_element_from_c_string): Set position of padding
9158 glyphs to -1.
9159
91601999-06-27 Gerd Moellmann <gerd@gnu.org>
9161
9162 * xfns.c (x_laplace_read_row): Use XQueryColors instead of
9163 XQueryColor.
9164
9165 * xdisp.c (display_menu_bar): Remove unwarranted assertion.
9166 (set_cursor_from_row): Skip over glyphs having a null object at
9167 the start of rows.
9168 (insert_left_trunc_glyphs): Use charpos < 0 to indicate truncation
9169 glyphs.
9170 (handle_invisible_prop): Compute next change only when needed.
9171 (handle_face_prop): Don't correct DEFAULT_FACE_ID if in the mode
9172 line.
9173
91741999-06-26 Gerd Moellmann <gerd@gnu.org>
9175
9176 * xrdb.c (x_load_resources): Don't set resource for double-click
9177 time.
9178
9179 * xdisp.c (try_window_id): Return quickly if all changes are
9180 below the window's current matrix end.
9181
9182 * dispextern.h (MATRIX_ROW_PARTIALLY_VISIBLE_P): Remove window
9183 parameter.
9184
9185 * xdisp.c (try_window_reusing_current_matrix): Set no_scrolling_p
9186 in desired not in current matrix.
9187 (try_window_reusing_current_matrix): Rotate matrices starting
9188 at start_vpos instead of 0.
9189
9190 * xterm.c (expose_window): Use window_text_bottom_y.
9191 (fast_find_position): Ditto.
9192
9193 * xdisp.c (redisplay_window): Use window_text_bottom_y.
9194 (try_window_reusing_current_matrix): Ditto.
9195 (get_last_unchanged_at_beg_row): Ditto.
9196 (init_iterator): Ditto.
9197
9198 * dispnew.c (allocate_matrices_for_window_redisplay): Allocate one
9199 more row.
9200 (check_matrix_invariants): Use window_text_bottom_y.
9201 (update_window): Ditto.
9202 (scrolling_window): Ditto.
9203
9204 * xdisp.c (window_text_bottom_y): New.
9205
92061999-06-25 Gerd Moellmann <gerd@gnu.org>
9207
9208 * xterm.c (XTread_socket): Set mouse_face_frame to zero after
9209 clearing mouse face.
9210 (XTread_socket) <EnterNotify> [LESSTIF_VERSION]: If
9211 event.xcrossing.focus is not set, and focus is in the menu bar,
9212 set focus frame as if event.xcrossing.focus were set.
9213
92141999-06-24 Gerd Moellmann <gerd@gnu.org>
9215
9216 * keyboard.c (make_lispy_event): Handle mouse on top lines.
9217 * keyboard.c (make_lispy_movement): Ditto.
9218
9219 * window.c (coordinates_in_window): Return 4 if on top line.
9220 (Fcoordinates_in_window_p): Return `top-line' if on top line.
9221
9222 * xdisp.c (window_box_height): Subtract top line height.
9223 (window_box): Add top line height to top y position if top line
9224 exists.
9225 (init_iterator): If base_face_id is TOP_LINE_FACE_ID, set row to
9226 the top line row of the window. Set initial y-position to
9227 window's top line height plus delta.
9228 (start_display): Choose start glyph row depending on whether
9229 window has a top line.
9230 (try_scrolling): Take top line height into account for aggressive
9231 scrolling.
9232 (compute_window_start_on_continuation_line): Take top line into
9233 account.
427ec082 9234 (redisplay_window): Ditto. If top line height has changed,
26901792
DL
9235 trigger a new redisplay.
9236 (try_window_reusing_current_matrix): Take top line into account.
9237 (find_last_row_displaying_text): Ditto.
9238 (get_last_unchanged_at_beg_row): DItto.
9239 (try_window_id): Ditto.
9240 (compute_line_metrics): Ditto.
9241
9242 * dispnew.c (shift_glyph_matrix): Compute visible row height
9243 taking top line of window into account.
9244 (update_window): Update top line. If scrolling_window detects
9245 that all rows are equal, only set cursor.
9246 (update_window_line): Call after_update_window_line_hook if
9247 mode_line_p flag of rows has changed.
9248 (scrolling_window): Add parameter top_line_p. Return -1 if
9249 all rows are equal.
9250 (mode_line_string): Add parameter mode_line_p. Handle strings
9251 in top lines.
9252
9253 * dispextern.h (MATRIX_TOP_LINE_ROW): New.
9254 (MATRIX_FIRST_TEXT_ROW): New.
9255 (MATRIX_ROW_PARTIALLY_VISIBLE_P): Use row's visible_height.
9256 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_TOP_P): New.
9257 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_BOTTOM_P): New.
9258 (MATRIX_TOP_LINE_HEIGHT): New.
9259 (CURRENT_MODE_LINE_HEIGHT): Use estimate_mode_line_height.
9260 (CURRENT_TOP_LINE_HEIGHT): New.
9261 (DESIRED_TOP_LINE_HEIGHT): New.
9262 (WINDOW_DISPLAY_TOP_LINE_HEIGHT): New.
9263 (WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE): Replaces
9264 WINDOW_DISPLAY_TEXT_AREA_PIXEL_HEIGHT.
9265 (WINDOW_DISPLAY_TEXT_HEIGHT): New.
9266
9267 * xterm.c (x_after_update_window_line): Don't draw bitmaps for top
9268 lines.
9269 (x_draw_row_bitmaps): Take top line into account when clearing
9270 bitmap area.
9271 (x_estimate_mode_line_height): Replacement for
9272 x_frame_mode_line_height.
9273 (x_get_glyph_string_clip_rect): Take top line into account.
9274 (x_clear_end_of_line): Ditto.
9275 (note_mode_line_highlight): Add parameter mode_line_p. Handle
9276 top lines.
9277 (note_mouse_highlight): Call note_mode_line_highlight for top lines.
9278 (x_erase_phys_cursor): Take top line into account.
9279
9280 * xdisp.c (window_box_height): Subtract top line height if
9281 window wants a top line.
9282 (display_mode_lines): New.
9283 (redisplay_window): Call it.
9284 (display_mode_line): Add parameters face_id and format.
9285
9286 * dispextern.h (CURRENT_TOP_LINE_HEIGHT): New.
9287 (MATRIX_TOP_LINE_HEIGHT): New.
9288
9289 * xterm.c (x_frame_mode_line_height): Add parameter face_id.
9290
9291 * term.c (estimate_mode_line_height): Renamed from
9292 frame_mode_line_height. Add parameter face_id.
9293 (estimate_mode_line_height_hook): Renamed from
9294 frame_mode_line_height_hook.
9295 (produce_special_glyphs_hook): Removed.
9296 (produce_glyphs_hook): Removed.
9297
92981999-06-23 Gerd Moellmann <gerd@gnu.org>
9299
9300 * dispextern.h (WINDOW_WANTS_TOP_LINE_P): New.
9301 (struct glyph_row): Add mode_line_p.
9302
9303 * xfaces.c (realize_basic_faces): Realize face `top-line'.
9304 (Qtop_line): New.
9305 (syms_of_xfaces): Initialize Qtop_line.
9306
9307 * dispextern.h (TOP_LINE_FACE_ID): New.
9308
9309 * buffer.c (init_buffer_once): Set default for
9310 top_line_format to nil.
9311 (init_buffer_once): Init top_line_format.
9312 (default-top-line-format): New.
9313 (top-line-format): New buffer-local variable.
9314
9315 * buffer.h: Add top_line_format.
9316
9317 * xdisp.c (overlay_arrow_changed_p): Removed because not used.
9318
93191999-06-17 Dave Love <fx@gnu.org>
9320
9321 * xfns.c: Move the PNG section before the JPEG one to avoid
9322 problems surrounding setjmp.h/png.h on GNU/Linux.
427ec082 9323
26901792
DL
93241999-06-17 Gerd Moellmann <gerd@gnu.org>
9325
9326 * xfns.c (x_kill_gs_process): Don't free colors.
9327
93281999-06-17 Dave Love <fx@gnu.org>
9329
9330 * s/gnu-linux.h: Zap spurious ~.
9331
93321999-06-16 Gerd Moellmann <gerd@gnu.org>
9333
9334 * xfns.c (gif_load): Improve multi-image support.
9335
93361999-06-15 Gerd Moellmann <gerd@gnu.org>
9337
9338 * xfns.c (gif_load): Support multi-image files.
9339
9340 * Makefile.in (LIBGIF): Use libungif.
9341
9342 * configure.in (HAVE_GIF): Use libungif instead of libgif
9343 because the former doesn't contain patented compression code.
9344
9345 * xdisp.c (compute_window_start_on_continuation_line): Don't
9346 do it if line start is too far away from window start.
9347
93481999-06-14 Gerd Moellmann <gerd@gnu.org>
9349
9350 * buffer.c (init_buffer_once): Set buffer_local_flags for
9351 scroll_*_aggressively.
9352 (syms_of_buffer): Add DEFVAR_PER_BUFFER for scroll-*-aggressively.
9353 (init_buffer_once): Set defaults for these variables.
9354 (syms_of_buffer): Add default-scroll-*-aggressively.
9355
9356 * buffer.h (scroll_up_aggressively): New.
9357 (scroll_down_aggressively): New.
9358
9359 * Makefile.in (LIBPNG): Add -lz -lm in case we're linking with
9360 a static PNG library.
9361
9362 * configure.in (HAVE_PNG): Add -lz -lm when checking for PNG lib
9363 in case it's a static library.
9364
9365 * Makefile.in (ctagsfiles): Split so that files starting
9366 with an `x' are found before files starting with `w32'.
9367 (ctagsfiles1): New.
9368 (ctagsfiles2): New.
9369 (TAGS): Use ctagsfiles[12] instead of ctagsfiles.
9370
9371 * xdisp.c (compute_window_start_on_continuation_line): New.
9372 (redisplay_window): Use it.
9373 (INFINITY): New.
9374 (reseat_to_string): Use it.
9375 (hscroll_window_tree): Ditto.
9376 (compute_window_start_on_continuation_line): Ditto.
9377 (redisplay_window): Don't force display with a new window start.
9378
93791999-06-06 Gerd Moellmann <gerd@gnu.org>
9380
9381 * xfns.c (x_report_frame_params): Don't report `outer-window-id'
9382 if widget not present.
9383
9384 * xdisp.c (prepare_menu_bars): Ignore tooltip frame.
9385
93861999-06-04 Gerd Moellmann <gerd@gnu.org>
9387
9388 * xfaces.c (recompute_basic_faces)[GLYPH_DEBUG]: Check return
9389 value of realize_basic_faces.
9390 (load_face_font_or_fontset): Store full font name in face.
9391 (realize_default_face): Use full font name.
9392
26901792
DL
9393 * xterm.c (x_produce_glyphs): Set member char_to_display.
9394 (x_append_glyph): Store char_to_display in glyphs.
9395
9396 * dispextern.h (struct it): Add char_to_display.
9397
9398 * xfns.c (x_set_font): Don't call face-set-after-frame-default
9399 if faces haven't been initialized.
9400 (Fx_create_frame): Call face-set-after-frame-default after
9401 faces have been initialized, and widget has been created.
9402
9403 * puresize.h (BASE_PURESIZE): Increased.
9404
94051999-06-01 Gerd Moellmann <gerd@gnu.org>
9406
9407 * xfaces.c (set_lface_from_font_name): Add parameter force_p.
9408 (Finternal_set_lisp_face_attribute): If frame is t when
9409 :font attribute is set, use the selected frame.
9410 (clear_face_cache): Add parameter clear_fonts_p.
9411 (Fclear_face_cache): Add optional parameter thorougly.
9412
9413 * xfaces.c (face_numeric_value): Return -1 if symbol is not
9414 in table.
9415 (Fclear_face_cache): New.
9416 (choose_face_fontset_font): If fontset doesn't contain font
9417 pattern for the given charset, use CHARSET_ASCII.
9418 (Finternal_set_lisp_face_attribute): Fix handling of nil
9419 stipple attribute.
9420 (Finternal_set_lisp_face_attribute): Fix handling of changing
9421 font-related face attributes of the default face.
9422 (set_lface_from_font_name): Set only attributes that aren't
9423 specified.
9424
94251999-05-31 Gerd Moellmann <gerd@gnu.org>
9426
9427 * xfaces.c (SCALABLE_FONTS): Define this to enable scalable
9428 font support.
9429 (Vscalable_fonts_allowed) [SCALABLE_FONTS]: New.
9430 (x_face_list_fonts): Add parameter scalable_fonts_p. Handle
9431 scalable fonts depending on the setting of SCALABLE_FONTS.
9432 (first_font_matching): List more than one font to find the
9433 first non-scalable matching font.
9434 (sorted_font_list): Let x_face_list_fonts return scalable fonts
9435 depending on SCALABLE_FONTS.
9436 (better_font_p): New parameter compare_pt_p. If zero, don't
9437 compare point sizes of fonts.
9438 (exact_face_match_p) [SCALABLE_FONTS]: New.
9439 (build_scalable_font_name) [SCALABLE_FONTS]: New.
9440 (may_use_scalable_font_p) [SCALABLE_FONTS]: New.
9441 (best_matching_font) [SCALABLE_FONTS]: Handle scalable fonts.
9442 (syms_of_xfaces): Add scalable-fonts-allowed.
9443
94441999-05-26 Gerd Moellmann <gerd@gnu.org>
9445
9446 * xfns.c (png_load): Let PNG lib handle gamma. Construct
9447 mask only if image contains simple transparency information.
9448 Otherwise, combine image with frame background color.
9449
9450 * configure.in (--with-png, HAVE_PNG): New.
9451
9452 * config.in (HAVE_PNG): New.
9453
9454 * Makefile.in: Add PNG library.
9455
9456 * xfns.c: Add PNG support.
9457
94581999-05-25 Gerd Moellmann <gerd@gnu.org>
9459
9460 * xdisp.c (init_xdisp): Initialize echo_area_message and
9461 previous_echo_area_message to nil.
9462
9463 * keyboard.c (read_char): Rename local variable echo_area_message
9464 because it shadows the global one.
9465
94661999-05-05 Gerd Moellmann <gerd@gnu.org>
9467
9468 * xterm.c (note_mode_line_highlight): Restructured.
9469
9470 * window.c (coordinates_in_window): Handle windows that don't have
9471 a mode line because their buffer's mode-line-format is nil.
9472 Recognize the mode line under x positions that correspond to
9473 flags areas and left scroll bar.
9474
94751999-05-02 Dave Love <fx@gnu.org>
9476
9477 * xterm.c (note_mouse_highlight): Separate help-echo processing
9478 from check on mouse-face so that it works generally.
9479
94801999-04-21 Gerd Moellmann <gerd@gnu.org>
9481
9482 * sound.c (Fplay_sound): Run hook play-sound-hook.
9483 (Qplay_sound_hook): New.
9484
94851999-04-20 Gerd Moellmann <gerd@gnu.org>
9486
9487 * xdisp.c (update_echo_area): Handle echo_area_message.
9488
94891999-04-19 Gerd Moellmann <gerd@gnu.org>
9490
9491 * editfns.c (Fmessage): Use message3.
9492
9493 * print.c (printchar): Set echo_area_message to nil.
9494 (strout): Ditto.
9495
9496 * minibuf.c (read_minibuf): Reset echo message strings to nil.
9497 (Fminibuffer_completion_help): Ditto.
9498
9499 * keyboard.c (cmd_error_internal): Set echo_areA_message.
9500 (command_loop_1): Test echo_areA_message.
9501 (read_char): Ditto.
9502 (record_menu_key): Set echo_area_message to nil.
9503 (Fexecute_extended_command): Test echo_area_message.
9504 (Fexecute_extended_command): Handle echo_area_message.
9505
9506 * fileio.c (Fdo_auto_save): Handle the case that echo_area_message
9507 is set.
9508
9509 * editfns.c (Fcurrent_message): If echo_area_message is set,
9510 return a substring of that string.
9511
9512 * dispnew.c (direct_output_for_insert): Test echo_area_message
9513 in addition to echo_area_glyphs.
9514 (set_window_cursor_after_update): Ditto.
9515 (update_frame_1): Ditto.
9516
9517 * alloc.c (Fgarbage_collect): Use message3_nolog to display
9518 old Lisp message string.
9519
9520 * xdisp.c (echo_area_message): New.
9521 (previous_echo_area_message): New.
9522 (syms_of_xdisp): Initialize and staticpro new variables.
9523 (echo_area_display): Display echo_area_message if set.
9524 (message2_nolog): Set echo_area_message and
9525 previous_echo_area_message.
9526 (echo_area_display): Set previous_echo_area_message.
9527 (redisplay_internal): Display echo area if echo_area_message
9528 or previous_echo_area_message are set.
9529 (redisplay_preserve_echo_area): Test/set echo_area_message and
9530 previous_echo_area_message.
9531 (redisplay_window): Test echo_area_message.
9532 (message3_nolog): New.
9533 (message3): New.
9534
9535 * editfns.c (Fformat): Add text properties to the result string
9536 from properties of the format string and properties of string
9537 arguments.
9538
9539 * textprop.c (text_property_list): New.
9540 (add_text_properties_from_list): New.
9541 (extend_property_ranges): New.
9542
95431999-03-29 Gerd Moellmann <gerd@gnu.org>
9544
9545 * xfaces.c (Qraised, Qsunken, QCshadow): Removed.
9546 (QCline_width, QCstyle, Qpressed_button, Qreleased_button): New.
9547 Use these symbols for the box face attribute instead of the
9548 removed ones.
9549
95501999-03-12 Gerd Moellmann <gerd@gnu.org>
9551
9552 * xfaces.c (realize_tty_face): Don't set alt_char_p of face.
9553 Correct wrong test for slant.
9554
95551999-03-10 Gerd Moellmann <gerd@gnu.org>
9556
9557 * xfaces.c: Use `unspecified' for unspecified face attributes,
9558 use t and nil for on/off.
9559
95601999-03-06 Gerd Moellmann <gerd@gnu.org>
9561
9562 * buffer.c (syms_of_buffer): Extend doc string of
9563 mode-line-format.
9564
9565 * xfaces.c (x_face_list_fonts): New parameter try_alternatives_p.
9566 (first_font_matching): New.
9567 (set_lface_from_font_name): Use it if font name is a pattern.
9568 (font_field_wildcard_p): Removed.
9569
9570 * dispnew.c (shift_glyph_matrix): Add `window' parameter.
9571 Recompute visible height of rows.
9572
9573 * xterm.c (note_mouse_highlight): Reorder code for help-echo.
9574 Don't accept non-strings for help-echo from overlays.
9575
95761999-03-04 Dave Love <fx@gnu.org>
9577
9578 * xterm.c (note_mouse_highlight): Check overlays for help-text
9579 property.
9580 (XTread_socket): Fix compiler warning.
427ec082 9581
26901792
DL
95821999-03-05 Gerd Moellmann <gerd@gnu.org>
9583
427ec082 9584 * xterm.c (note_mouse_highlight): Don't restrict number of
26901792
DL
9585 overlay to 10. Call overlays_at so that it doesn't try to
9586 extend the vector.
9587
9588 * xdisp.c (compute_line_metrics): Compute glyph row's visible
9589 height.
9590
9591 * dispnew.c (row_equal_p): Compare visible row height, only.
9592 (update_text_area): Draw whole line if visible heights of
9593 rows differ.
9594 (update_window_line): Call after_update_window_line_hook
9595 if visible row height has changed.
9596
9597 * dispextern.h (MATRIX_ROW_VISIBLE_HEIGHT): Removed.
9598 (struct glyph_row): New member visible_height.
9599
9600 * xfaces.c (font_field_wildcard_p): New.
9601 (set_lface_from_font_name): Remove parameter force_p. Accept
9602 font names containing wildcards.
9603
96041999-03-04 Gerd Moellmann <gerd@gnu.org>
9605
9606 * xterm.c (x_after_update_window_line): Clear internal border
9607 when windows_or_buffers_changed.
9608
9609 * dispextern.h (WINDOW_WANTS_MODELINE_P): Return zero if window's
9610 buffer has a nil mode_line_format.
9611
96121999-03-03 Gerd Moellmann <gerd@gnu.org>
9613
9614 * xterm.c (x_setup_relief_colors): Use either background color
9615 or specified color.
9616
9617 * xfaces.c (realize_x_face): Set face->use_box_color_for_shadows_p.
9618
9619 * dispextern.h (struct face): Add use_box_color_for_shadows_p.
9620
9621 * xterm.c (x_draw_box_rect): New.
9622 (x_draw_glyph_string_box): Renamed from
9623 x_draw_glyph_string_relief. Call x_draw_box_rect.
9624
9625 * xfns.c (QCrelief): New.
9626 (syms_of_xfns): Initialize it.
9627
9628 * dispextern.h (struct glyph): Rename left_shadow_p to
9629 left_box_line_p, right_shadow_p to right_box_line_p.
9630 (MAX_RELIEF_THICKNESS): Removed.
9631 (struct it): Rename members having `relief' in their names
9632 to contain `box' instead.
9633
9634 * xfaces.c (realize_x_face): Handle new box attribute values.
9635 (QCrelief, Qbox): Removed.
9636 (QCshadow, QCcolor, Qraised, Qsunken): New.
9637 (syms_of_xfaces): Initialize new symbols.
9638
96391999-03-02 Gerd Moellmann <gerd@gnu.org>
9640
9641 * dispextern.h (LFACE_RELIEF_INDEX): Removed.
9642
9643 * xfaces.c (LFACE_RELIEF): Removed.
9644 (merge_face_vector_with_property): Remove handling of `:relief'.
9645 (Finternal_set_lisp_face_attribute): Ditto.
9646 (Finternal_set_lisp_face_attribute_from_resource): Ditto.
9647 (Finternal_get_lisp_face_attribute): Ditto.
9648 (realize_default_face): Ditto.
9649 (lface_hash): Don't compute hash from relief.
9650
9651 * dispextern.h (struct face): Replace member `relief' by
9652 `box_line_width'. Add member `box'.
9653 (face_box_type): New.
9654
9655 * xterm.c (x_produce_glyphs): If face has overline, add overline
9656 thickness + 1 to ascent.
9657
96581999-03-01 Gerd Moellmann <gerd@gnu.org>
9659
9660 * xterm.c (x_draw_glyph_string): Draw underline, overline,
9661 strike-through, and boxes.
9662 (x_draw_glyph_string_underline): Removed.
9663
9664 * xfaces.c (QCoverline, QCstrike_through, QCbox): New.
9665 (Qoverline, Qstrike_through, Qbox): New.
9666 (syms_of_xfaces): Define these symbols.
9667 (check_lface_attrs): Add checks for overline, strike-through,
9668 and box.
9669 (Finternal_set_lisp_face_attribute): Set new attributes.
9670 (LFACE_OVERLINE, LFACE_STRIKE_THROUGH, LFACE_BOX): New.
9671 (load_color): Handle new attributes.
9672 (realize_x_face): Ditto.
9673 (merge_face_vector_with_property): Ditto.
9674 (free_face_colors): Ditto.
9675 (Finternal_set_lisp_face_attribute_from_resource): Ditto.
9676 (Finternal_get_lisp_face_attribute): Ditto.
9677 (Finternal_lisp_face_attribute_values): Ditto.
9678
9679 * dispextern.h (lface_attribute_index): Add enumerators for
9680 overstrike, strike-through, and box.
9681 (struct face): Add members for overline, strike-through, and
9682 box.
9683
96841999-02-17 Dave Love <fx@gnu.org>
9685
9686 * s/gnu-linux.h s/gnu.h s/irix5-0.h s/netbsd.h s/sco4.h s/sco5.h
9687 s/template.h (NARROWPROTO): Define on the basis of relevant X cf
9688 files.
9689
96901999-02-16 Gerd Moellmann <gerd@gnu.org>
9691
9692 * keyboard.c (toolbar_items): Call access_keymap with third
9693 parameter 1, so that we don't get inherited toolbar item
9694 definitions.
9695
9696 * xdisp.c (redisplay_internal): In optimization 1, don't decrement
9697 the window end vpos when in empty first line of window.
9698
96991999-02-15 Gerd Moellmann <gerd@gnu.org>
9700
9701 * xfaces.c (set_font_frame_param): New.
9702 (Finternal_set_lisp_face_attribute): Call it.
9703
9704Sun Feb 14 10:54:02 1999 Masatake Yamato <masata-y@is.aist-nara.ac.jp>
9705
9706 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
9707 Accept specifications of color for underline.
9708
97091999-02-13 Gerd Moellmann <gerd@gnu.org>
9710
9711 * xfaces.c (Finternal_set_lisp_face_attribute): If parameter
9712 `frame' is t, operate on face defaults for new frames. If it
9713 is nil, operate on the selected frame.
9714
97151999-02-12 Gerd Moellmann <gerd@gnu.org>
9716
9717 * dispnew.c (check_matrix_invariants): Put it in #if 0.
9718 (update_window): Put the call to check_matrix_invariants in #if 0.
9719
9720Sun Feb 7 09:58:49 1999 Masatake Yamato <masata-y@is.aist-nara.ac.jp>
9721
9722 * dispextern.h: Remove all else block of UNDERLINE_COLOR.
9723 Remove definition of UNDERLINE_COLOR.
9724
9725Mon Jan 4 04:43:41 1999 Masatake Yamato <masata-y@is.aist-nara.ac.jp>
9726
9727 * xfaces.c (free_face_colors): Free the color for underline.
9728
9729 * xterm.c (x_draw_glyph_string_underline): Set the color for underline
9730 to the GC.
9731
9732Sun Jan 3 08:41:10 1999 Masatake Yamato <masata-y@is.aist-nara.ac.jp>
9733
9734 * dispextern.h (UNDERLINE_COLOR): Defined.
9735 (struct face): Added two new members.
9736 underline_color, underline_defaulted_p.
9737
427ec082 9738 * xfaces.c (merge_face_vector_with_property):
26901792 9739 (check_lface_attrs): Accept the string value for underline.
427ec082 9740 (Finternal_set_lisp_face_attribute): Likewise.
26901792
DL
9741
9742 * xfaces.c (load_color): Change the last argument type to enum
9743 lface_attribute_index from int. And addec code for underling coloring.
9744 (load_face_colors): Pass LFACE_*_INDEX to load_color.
427ec082 9745
26901792
DL
97461999-02-12 Gerd Moellmann <gerd@gnu.org>
9747
9748 * xfns.c (Fx_image_header): Removed.
9749
97501999-02-07 Gerd Moellmann <gerd@gnu.org>
9751
9752 * xterm.c: Don't include <bitmaps/gray>.
9753 (x_term_init): Use gray_bitmap_width and gray_bitmap_height.
9754
9755 * xfns.c (Fx_image_header): Add missing `\n\'.
9756 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits): New.
9757
97581999-02-01 Gerd Moellmann <gerd@gnu.org>
9759
9760 * xterm.c (x_scroll_bar_create): Set background pixel from
9761 specified scroll bar color.
9762 (x_scroll_bar_set_handle): Use scroll bar foreground color.
9763
9764 * xfns.c (x_set_scroll_bar_foreground): Remove all scroll bars.
9765 (x_set_scroll_bar_background): Ditto.
9766
9767 * xterm.c (x_create_toolkit_scroll_bar): Set scroll bar colors.
9768
9769 * xfns.c (x_default_scroll_bar_color_parameter): New.
9770 (Fx_create_frame): Call it.
9771
97721999-01-31 Gerd Moellmann <gerd@gnu.org>
9773
9774 * xfns.c (Fx_create_frame): Initialize scroll bar pixel color
427ec082 9775 values in x_output structure.
26901792
DL
9776 (Qscroll_bar_foreground, Qscroll_bar_background): New.
9777 (syms_of_xfns): Initialize these symbols.
9778
9779 * xterm.h (struct x_output): Add scroll bar pixel colors.
9780
9781 * xfns.c (x_frame_parms): Add entries for scroll bar colors.
9782 (x_set_scroll_bar_foreground): New.
9783 (x_set_scroll_bar_background): New.
9784
26901792
DL
97851999-01-12 Gerd Moellmann <gerd@gnu.org>
9786
9787 * xdisp.c (handle_single_display_prop): New.
9788 (handle_display_prop): Call it.
9789 (handle_raise_prop): Removed.
9790 (handle_height_prop): Removed.
9791 (handle_space_width_prop): Removed.
9792 (handle_face_prop): Remove handling of raised text.
9793 (handle_display_prop): Do it here.
9794
9795 * dispextern.h (DISPLAY_PROP_IDX): Replaces GLYPH_PROP_IDX.
9796 (RAISE_PROP_IDX): Removed.
9797 (HEIGHT_PROP_IDX): Removed.
9798 (SPACE_WIDTH_PROP_IDX): Removed.
9799
9800 * xdisp.c (Qdisplay): Replaces Qglyph.
9801 (handle_display_prop): Formerly handle_glyph_prop.
9802
98031999-01-11 Gerd Moellmann <gerd@gnu.org>
9804
9805 * xdisp.c (reseat_to_string): Set position in display vector to -1.
9806 (handle_stop): Set position in display vector to -1. Don't
9807 check overlay strings when set up to deliver characters from a
9808 display vector.
9809 (set_iterator_to_next): At the end of a run of characters from a
9810 display vector, check whether the display vector display replaces
9811 the display of a character.
9812
98131999-01-05 Gerd Moellmann <gerd@gnu.org>
9814
9815 * xfaces.c (init_frame_faces): Don't realize faces if frame's
9816 X window hasn't been created yet.
9817
98181998-12-06 Gerd Moellmann <gerd@gnu.org>
9819
9820 * sound.c: New.
9821
98221998-12-04 Gerd Moellmann <gerd@gnu.org>
9823
9824 * config.in (HAVE_SOUND): New.
9825
9826 * emacs.c (main): Call syms_of_sound and init_sound.
9827
9828 * Makefile.in (obj): Add sound.o.
9829
9830 * configure.in: Add checks for machine/soundcard.h and sys/soundcard.h.
9831
9832 * config.in (HAVE_MACHINE_SOUNDCARD_H): New.
9833 (HAVE_SYS_SOUNDCARD_H): New.
9834
98351998-12-03 Gerd Moellmann <gerd@gnu.org>
9836
9837 * buffer.h (struct buffer): indicate_empty_lines renamed from
9838 indicate_zv_lines.
9839
9840 * buffer.c (indicate-empty-lines): Renamed from indicate_zv_lines.
9841 (default-indicate-zv-lines): Likewise.
9842
9843 * dispextern.h (struct glyph_row): Rename indicate_zv_line_p
9844 to indicate_empty_line_p.
9845
9846 * xdisp.c (reseat_at_next_visible_line_start): Reset method
9847 to next_element_from_buffer.
9848
9849 * frame.c (make_frame): Set n_current_toolbar_items to 0.
9850
9851 * xdisp.c (handle_face_prop): Allow symbols of the form `N+'
9852 and `N-'.
9853
9854 * xfns.c (xbm_scan): New.
9855 (xbm_read_hexint): Removed.
9856 (xbm_read_bitmap_file_data): Use xbm_scan.
9857
9858 * fileio.c (Finsert_file_contents): Prevent redisplay optimizations.
9859
98601998-12-02 Gerd Moellmann <gerd@gnu.org>
9861
9862 * xfns.c (xbm_read_hexint): New.
9863 (xbm_read_bitmap_file_data): New.
9864 (xbm_load_image_from_file): Call xbm_read_bitmap_file_data
9865 instead of XReadBitmapFileData.
9866
9867 * xdisp.c (handle_raise_prop): Compute voffset from current font.
9868
9869 * xfaces.c (face_with_height): New.
9870
9871 * xdisp.c (eval_handler): Renamed from eval_mode_handler.
9872 (eval_form): Renamed from eval_mode_element.
9873 (handle_face_prop): Use it.
9874 (Qheight): Replaces Qsmaller.
9875 (handle_height_prop): Replaces handle_smaller_prop.
427ec082 9876 (handle_face_prop): If iterator's font_height is not an
26901792
DL
9877 integer, evaluate it to get the font height to use.
9878
9879 * dispextern.h (HEIGHT_PROP_IDX): Replaces SMALLER_PROP_IDX.
9880 (struct it): Use `font_height' instead of `smaller'.
9881
98821998-12-01 Gerd Moellmann <gerd@gnu.org>
9883
9884 * xdisp.c (reseat_1): New.
9885 (reseat): Call it.
9886 (move_it_vertically_backward): Ditto.
9887 (redisplay_window): Don't abort when cursor not found in recenter.
9888
98891998-11-30 Gerd Moellmann <gerd@gnu.org>
9890
9891 * xdisp.c (reseat_at_next_visible_line_start): When not
9892 currently delivering display elements from the current buffer,
9893 restore buffer position first.
9894 (init_from_display_pos): Don't set IT's position from the
9895 position passed to this function.
9896
98971998-11-28 Gerd Moellmann <gerd@gnu.org>
9898
9899 * config.in (PROTO): Removed.
9900
9901 * xterm.h: Change PROTO to P_.
9902
99031998-11-26 Gerd Moellmann <gerd@gnu.org>
9904
9905 * xterm.c (take_vertical_position_into_account): New.
9906 (x_produce_image_glyph): Call it.
9907 (x_produce_stretch_glyph): Ditto.
9908 (x_produce_glyphs): Ditto.
9909 (x_fill_glyph_string): Adjust base line for glyph's voffset.
9910 (x_fill_composite_glyph_string): Ditto.
9911 (x_fill_image_glyph_string): Ditto.
9912 (x_fill_stretch_glyph_string): Ditto.
9913
9914 * xdisp.c (display_line): Always compute row height from
9915 max_ascent and max_descent.
9916
9917 * dispextern.h (struct glyph): Add voffset.
9918 (struct it): Replace height by descent, max_height by max_descent.
9919
9920 * xterm.c (x_append_glyph): Set voffset
9921 (x_append_stretch_glyph): Ditto.
9922 (x_produce_image_glyph): Ditto.
9923 (x_produce_glyphs): Take voffset into account.
9924 (x_produce_image_glyph): Ditto.
9925 (x_produce_stretch_glyph): Ditto.
9926
9927 * dispextern.h (struct it): Add voffset.
9928 * xdisp.c (push_it): Save voffset.
9929 (pop_it): Restore it.
9930
9931 * xdisp.c (it_props): Add entry for `raise'.
9932 (handle_raise_prop): New.
9933
9934 * dispextern.h (RAISE_PROP_IDX): New.
9935
9936 * xdisp.c (Qraise): New.
9937 (syms_of_xdisp): Define Qraised.
9938
9939 * xterm.c (x_scroll_bar_move): Clear to the left and right
9940 of toolkit scroll bars differently.
9941 (x_scroll_bar_move): Removed.
9942 (XTset_vertical_scroll_bar): Move code from x_scroll_bar_move here.
9943
9944 * dispextern.h: Make it compilable --with-x=no.
9945 * alloc.c: Ditto.
9946 * emacs.c: Ditto.
9947 * dispnew.c: Ditto.
9948 * keyboard.c: Ditto.
9949 * term.c: Ditto.
9950 * xdisp.c: Ditto.
9951 * xfaces.c: Ditto.
9952 * xfns.c: Ditto.
9953 * xmenu.c: Ditto.
9954
99551998-11-25 Gerd Moellmann <gerd@gnu.org>
9956
9957 * xterm.c (XTread_socket): Cancel help-echo when leaving frame.
9958
99591998-11-24 Gerd Moellmann <gerd@gnu.org>
9960
9961 * xterm.c (x_set_toolkit_scroll_bar_thumb): When dragging,
9962 update slider size, only.
9963 (xm_scroll_callback): Set dragging member of the scroll bar.
9964 (xt_action_hook): Reset last_scroll_bar_part.
9965 (XTredeem_scroll_bar): Reset bar->dragging to nil.
9966
26901792
DL
9967 * xfns.c (Fx_hide_busy_cursor): Don't try to hide busy cursor
9968 window on newly created frames that don't have one.
9969
99701998-11-23 Gerd Moellmann <gerd@gnu.org>
9971
9972 * xdisp.c (restore_overlay_strings): Removed.
9973 (restore_dpvec): Removed.
9974 (init_from_display_pos): Inline both functions above.
9975
9976 * xfns.c (IMAGE_NON_NEGATIVE_INTEGER_VALUE): New.
9977 (parse_image_spec): Handle it.
9978 (xbm_format): Use it.
9979 (xpm_format): Ditto.
9980 (pbm_format): Ditto.
9981 (jpeg_format): Ditto.
9982 (tiff_format): Ditto.
9983 (gif_format): Ditto.
9984 (gs_format): Ditto.
9985
9986 * xdisp.c (set_window_cursor): Removed.
9987 (redisplay_internal): Case cursor motion in cursor line of
9988 selected window; use set_cursor_from_row.
9989
99901998-11-22 Gerd Moellmann <gerd@gnu.org>
9991
9992 * widget.c (EmacsFrameSetCharSize): Take widget's border width
9993 into account.
9994
99951998-11-21 Gerd Moellmann <gerd@gnu.org>
9996
9997 * xterm.c (expose_frame): Redraw menu bar window.
9998
9999 * xdisp.c (display_menu_bar): Record hpos instead of x-position
10000 in menu item.
10001
10002 * dispnew.c (change_frame_size_1): Use FRAME_TOP_MARGIN instead
10003 of FRAME_TOOLBAR_LINES. Use `f' instead of `frame'.
10004
10005 * widget.c (set_frame_size): Use FRAME_SCROLL_BAR_COLS
10006 to determine vertical_scroll_bar_extra.
10007 (EmacsFrameSetCharSize): Ditto.
10008 * xfns.c (x_figure_window_size): Ditto.
10009
10010 * xterm.c (x_draw_row_bitmaps): Draw in `bitmap-area' face.
10011 (x_draw_bitmap): Ditto.
10012
10013 * dispextern.h (face_id): New id BITMAP_AREA_FACE_ID.
10014 * xfaces.c (realize_basic_faces): Realize it.
10015
100161998-11-20 Gerd Moellmann <gerd@gnu.org>
10017
10018 * xmenu.c (xmenu_show): Add workaround for remaining button grab
427ec082 10019 under LessTif Use the widget of the frame as parent for the
26901792
DL
10020 menu, again.
10021
100221998-11-19 Gerd Moellmann <gerd@gnu.org>
10023
10024 * xterm.c (XTread_socket): Inhibit busy cursor for EnterNotify.
10025 When EnterNotify, don't generate a mouse movement event if
10026 notification is from a busy-cursor child window.
10027
10028 * xterm.h (struct x_output): Add busy_window, remove cursor.
10029
10030 * xfns.c (Fx_show_busy_cursor): Formerly Fx_display_busy_cursor.
10031 Use a transparent window to display the busy-cursor.
10032 (Fx_hide_busy_cursor): Formerly Fx_undisplay_busy_cursor.
10033
100341998-11-17 Gerd Moellmann <gerd@gnu.org>
10035
10036 * xdisp.c (check_window_end): New, for debugging.
10037 (CHECK_WINDOW_END): New.
10038 (try_window_id): Use it.
10039
10040 * xterm.c (process_expose_from_menu): Return int.
10041
10042 * keyboard.c (kbd_buffer_get_event): Set flag to prevent recording
10043 TOOLBAR_EVENT events in last_nonmenu_event.
10044
100451998-11-16 Gerd Moellmann <gerd@gnu.org>
10046
10047 * xdisp.c (redisplay_window): If windows_or_buffers_changed,
10048 window end isn't reliable, so set window_end_valid to nil.
10049 (redisplay_internal): If overlay arrow has changed, set
10050 windows_or_buffers_changed to redisplay thoroughly.
10051
10052 * dispnew.c (adjust_glyph_matrix): Invalidate window end, if
10053 necessary.
10054
10055 * xfns.c (file_dialog_cb): New.
10056 (Fx_file_dialog): New.
10057 * fileio.c (Fread_file_name): Call it.
10058
427ec082 10059 * xrdb.c (x_load_resources): Add default resoures for file
26901792
DL
10060 selection dialog.
10061
100621998-11-14 Gerd Moellmann <gerd@gnu.org>
10063
10064 * xterm.c (note_mouse_highlight): Don't highlight when popup
10065 is active.
10066
26901792
DL
10067 * keyboard.c (timer_check): Inhibit busy cursor around calls to
10068 timer-event-handler. This busy cursor tends to be anoying if
10069 fontifying stealthily.
10070
10071 * dispnew.c (direct_output_for_insert): Give up if current row
10072 contains trailing whitespace.
10073
100741998-11-13 Gerd Moellmann <gerd@gnu.org>
10075
10076 * dispextern.h (prop_idx): Add FONTIFIED_PROP_IDX.
10077
10078 * xdisp.c (handle_fontified_prop): New.
10079 (Vfontification_functions): New.
10080 (Qfontification_functions): New.
10081 (it_props): Add handle_fontified_prop.
10082
100831998-11-12 Gerd Moellmann <gerd@gnu.org>
10084
10085 * xmenu.c (xmenu_show): Use the frame's edit_widget as parent.
10086 Otherwise, under LessTif, after the popup has gone, all button
10087 press events come in for the frame's widget, and release events
10088 come in for the edit_widget.
10089 * xterm.c (XTread_socket): Remove workaround for that problem.
10090 (x_set_toolkit_scroll_bar_thumb): Add workaround for LessTif
10091 XmScrollBarSetValues.
10092 (SET_SAVED_MENU_EVENT): Give it statement form.
10093
26901792
DL
10094 * xfaces.c (display_message): If waiting_for_input, don't display
10095 the message.
10096
10097 * window.c (scroll_command): If not acting on current_buffer,
10098 make redisplay consider all windows.
10099
10100 * xfns.c (Fx_hide_tip): Return t if tooltip was open.
10101
10102 * xdisp.c (handle_glyph_prop): Set it->object for images to
10103 the object having the glyph property.
10104
10105 * xterm.c (x_draw_row_bitmaps): Don't draw if row is completely
10106 invisible.
10107
101081998-11-11 Gerd Moellmann <gerd@gnu.org>
10109
10110 * xterm.h (struct x_display_info): Add gray pixmap. * xterm.c
10111 (x_term_init): Create the gray pixmap.
10112 (x_setup_relief_color): Use it.
10113 (x_get_glyph_string_clip_rect): Draw a toolbar window over the
10114 internal border at the top of a frame.
10115 (x_init_glyph_string): Likewise.
427ec082 10116 (x_draw_glyph_string_relief): Correct right x by 1 pixel for
26901792
DL
10117 full-width lines.
10118 (XTflash): Don't flash the toolbar window.
10119
10120 * xterm.c (XTread_socket): Workaround for LessTif popup menus
10121 in case of ButtonPress events.
10122
101231998-11-10 Gerd Moellmann <gerd@gnu.org>
10124
10125 * xrdb.c (x_load_resources): Add grey background colors as
10126 defaults for menus, scroll bars, and dialogs.
10127
10128 * insdel.c (prepare_to_modify_buffer): Move setting
10129 windows_or_buffers_changed from modify_region here.
10130
10131 * xfns.c (Fx_show_tip): Inhibit redisplay.
10132 (Fx_hide_tip): Ditto.
10133 (Fx_image_header): New.
10134
101351998-11-09 Gerd Moellmann <gerd@gnu.org>
10136
10137 * dispnew.c (clear_window_matrices): Set window_end_valid to nil
10138 when clearing current window matrices.
10139
101401998-11-08 Gerd Moellmann <gerd@gnu.org>
10141
10142 * xdisp.c (handle_glyph_prop): Don't set an iterator's buffer
10143 position from a string position. Use the right end position
10144 if the property spans a whole overlay string.
10145
101461998-11-07 Gerd Moellmann <gerd@gnu.org>
10147
10148 * xmenu.c (menubar_selection_callback): Remove workaround for
10149 Lesstif not calling XmNpopdownCallback because it doesn't
10150 handle the case where users don't select any menu item.
10151
26901792
DL
10152 * insdel.c (modify_region): Set windows_or_buffers_changed.
10153
10154 * buffer.c (set_buffer_internal): Don't set
10155 windows_or_buffers_changed.
10156
26901792
DL
10157 * xmenu.c (HAVE_BOXES): Define if USE_X_TOOLKIT.
10158
26901792
DL
10159 * xmenu.c (menubar_selection_callback): Add workaround for
10160 Lesstif not calling XmNpopdownCallback.
10161
10162 * xdisp.c (eval_mode_element): New.
10163 (eval_mode_handler): New.
10164 (display_mode_element): Use eval_mode_element.
10165
10166 * xdisp.c (display_mode_element): Allow `(:eval FORM)'.
10167 Remove code looking at text props of default value.
10168
10169 * xmenu.c (HAVE_BOXES): Define if using Lucid menus.
10170
26901792
DL
101711998-11-06 Gerd Moellmann <gerd@gnu.org>
10172
427ec082 10173 * xmenu.c (single_submenu): Set button_type of menu to
26901792
DL
10174 BUTTON_TYPE_NONE.
10175 (single_submenu): Likewise for panes and menu items.
10176 (set_frame_menubar): Set button_type of menu bar to none.
10177 (xmenu_show): Likewise.
10178 (single_submenu): Set widget values selected slot.
10179 (xmenu_show): Likewise.
10180
26901792
DL
10181 * xmenu.c (push_menu_item): Add parameters `type' and
10182 `selected'. Store it in menu_items.
10183 (MENU_ITEMS_ITEM_TYPE): New.
10184 (MENU_ITEMS_ITEM_SELECTED): New.
10185 (MENU_ITEMS_ITEM_LENGTH): Increase by two.
10186
10187 * xfns.c (clear_image_cache): Get the current time, before
10188 doing anything.
10189 (cache_image): Set prev pointer of next image.
10190 (clear_image_cache): Clear current matrices if any image was
10191 freed.
10192
10193 * xterm.c (XTread_socket): Set inhibit_busy_cursor.
10194
10195 * xfns.c (x_set_cursor): New.
10196 (Fx_display_busy_cursor): New.
10197 (Fx_undisplay_busy_cursor): New.
10198
10199 * xterm.h (struct x_output): Add busy_cursor.
10200
10201 * xfns.c (Vx_busy_pointer_shape): New.
10202 (x_set_mouse_color): Create busy cursor.
10203
10204 * process.c (wait_reading_process_input): Show and hide busy
10205 cursor.
10206
10207 * keyboard.c (command_loop_1): Display busy cursor.
10208
10209 * eval.c (Fsignal): Hide busy cursor.
10210
10211 * buffer.c (set_buffer_internal): Don't set
10212 windows_or_buffers_changed.
10213
10214 * xterm.c (redo_mouse_highlight): New.
10215
102161998-11-04 Gerd Moellmann <gerd@gnu.org>
10217
26901792
DL
10218 * xfns.c (x_create_x_image_and_pixmap): Add depth parameter.
10219 (x_build_heuritic_mask): New.
10220 (lookup_image): Call it.
10221
10222 * xterm.c (note_toolbar_highlight): Always set up help_echo.
10223 (previous_help_echo): New.
10224 (XTread_socket): Generate help event with nil message when
10225 leaving a region with help-echo.
10226 (note_mouse_highlight): Handle `help-echo' over text.
10227 (XTread_socket): Dispatch VisibilityNotify, CirculateNotify,
10228 CirculateRequest.
10229 (clear_mouse_face): Don't clear if tooltip is shown.
10230 (XTread_socket): Redo mouse-highlight after tooltip is gone.
10231 Avoid SET_FRAME_GARBAGED when tooltip is mapped.
10232
10233 * keyboard.c (Vshow_help_function): New.
10234 (read_char): Use it.
10235
102361998-11-03 Gerd Moellmann <gerd@gnu.org>
10237
10238 * xfns.c (x_create_tip_frame): New.
10239 (Fx_show_tip): New.
10240 (Fx_hide_tip): New.
10241
427ec082 10242 * xterm.c (x_destroy_window): Handle case that we don't have
26901792
DL
10243 a widget.
10244
10245 * dispextern.h (struct glyph_row): Rename no_marginal_areas_p
10246 to full_width_p. Add internal_border_p.
10247
102481998-11-02 Gerd Moellmann <gerd@gnu.org>
10249
10250 * xterm.c (note_mode_line_highlight): Check the charpos of
10251 the glyph under the mouse pointer before accessing text
10252 properties at that position.
10253
102541998-11-01 Gerd Moellmann <gerd@gnu.org>
10255
10256 * xterm.c (x_draw_image_relief): Handle toolbar_button_relief.
10257
10258 * xdisp.c (auto-raise-toolbar-buttons): New.
10259 (build_desired_toolbar_string): Handle the flag.
10260 (toolbar-button-margin): New.
10261 (toolbar-button-relief): New.
10262 (build_desired_toolbar_string): Use margin and relief.
10263
10264 * xterm.c (x_set_toolkit_scroll_bar_thumb): Remove workaround
10265 for FreeBSD.
10266 (note_mode_line_highlight): New.
10267 (note_mouse_highlight): Call it.
10268
102691998-10-31 Gerd Moellmann <gerd@gnu.org>
10270
10271 * s/freebsd.h (NARROWPROTO): New.
10272
10273 * xdisp.c (display_string): New parameter face_string.
10274 (display_mode_element): When displaying a symbol with a string
10275 value, use text properties from the symbol's default value, maybe.
10276
10277 * xrdb.c (x_load_resources): Add font defaults for menus and
10278 dialogs.
10279
102801998-10-30 Gerd Moellmann <gerd@gnu.org>
10281
10282 * xfns.c (Fx_create_frame): Try 12pt Courier font first.
10283
102841998-10-29 Gerd Moellmann <gerd@gnu.org>
10285
10286 * xterm.c (x_produce_glyphs): Fix bug causing glyphs to be
10287 produced for characters with codes < 32 under certain
10288 circumstances.
10289
10290 * xdisp.c (redisplay_window): Handle values of PT in front
10291 of invisible, intangible text.
427ec082 10292 (try_window_id): Set overlay_arrow_seen to zero before
26901792
DL
10293 displaying lines.
10294 (display_mode_element): Assign to glyphs written for a mode
10295 line spec `%x' as object the Lisp format string, as position
10296 the position of the `%' in that string.
10297 (display_string): If displaying a C string, optionally get
10298 the face to use from a Lisp string.
10299
10300 * xterm.c (expose_window_tree): Include mode line height.
10301
10302 * xfns.c (Fx_create_frame): Add toolbar height to frame height.
10303
103041998-10-27 Gerd Moellmann <gerd@gnu.org>
10305
10306 * xterm.c (note_mouse_highlight): Change mouse pointer shape
10307 over mode line.
10308
103091998-10-26 Gerd Moellmann <gerd@gnu.org>
10310
10311 * window.c (coordinates_in_window): Use CURRENT_MODE_LINE_HEIGHT.
10312
10313 * xdisp.c (redisplay_window): If mode line height has changed,
10314 arrange for a thorough immediate redisplay using the correct mode
10315 line height.
10316 (window_box_height): Use CURRENT_MODE_LINE_HEIGHT.
10317
10318 * dispextern.h (MATRIX_MODE_LINE_HEIGHT): New.
10319 (CURRENT_MODE_LINE_HEIGHT): New.
10320 (DESIRED_MODE_LINE_HEIGHT): New.
10321
10322 * keyboard.c (make_lispy_event): Add string and string position
10323 info to mouse-click events.
10324 (read_key_sequence): Handle `local-map' property of mode line
10325 strings.
10326
10327 * keyboard.h (POSN_STRING): New.
10328
103291998-10-25 Gerd Moellmann <gerd@gnu.org>
10330
10331 * dispnew.c (mode_line_string): Mew.
10332
10333 * xterm.c (xt_action_hook): New.
10334 (x_create_toolkit_scroll_bar): Add action hook.
10335 (xm_scroll_callback): Implement dragging.
10336
10337 * keyboard.c (Qend_scroll): New.
10338 (scroll_bar_parts): Add it.
10339
10340 * termhooks.h (scroll_bar_end_scroll): New.
10341
10342 * xterm.c (XTread_socket): Bug fix.
10343
103441998-10-24 Gerd Moellmann <gerd@gnu.org>
10345
10346 * xdisp.c (redisplay_window): Finish scroll bars after
10347 redisplaying toolbar.
10348
10349 * keyboard.c (scroll_bar_parts): Add Qtop and Qbottom.
10350 (syms_of_keyboard): Add Qbottom.
10351
10352 * termhooks.h (scroll_bar_to_top): New.
10353 (scroll_bar_to_bottom): New.
10354
10355 * xdisp.c (redisplay_window): Always resize toolbar window if
10356 auto_resize_toolbar_p is non-zero.
10357 (auto_resize_toolbar_p): Renamed from auto_resize_toolbar.
10358 (window_box): New.
10359 (window_box_height): New.
10360 (window_box_width): New.
10361 (window_box_left): New.
10362 (window_box_right): New.
10363 (window_box_edges): New.
10364
103651998-10-23 Gerd Moellmann <gerd@gnu.org>
10366
10367 * xterm.c (x_set_toolkit_scroll_bar_thumb): Kluge for call to
10368 XawScrollbarSetThumb in FreeBSD.
10369 (x_create_toolkit_scroll_bar): Set resource "beNiceToColormap"
10370 to true.
10371
10372 * window.c (get_phys_cursor_glyph): Return null if cursor vpos
10373 is out of range.
10374
10375 * xterm.c (x_create_toolkit_scroll_bar): Set scroll_bar_pixel.
10376 (x_term_init): Initialize it.
10377
10378 * xterm.h (struct x_display_info): Add scroll_bar_pixel.
10379
10380 * xterm.c (x_create_toolkit_scroll_bar): Set LessTif scroll bar's
10381 cursor.
10382
103831998-10-22 Gerd Moellmann <gerd@gnu.org>
10384
10385 * keyboard.c (make_lispy_event): Handle scroll_bar_click
10386 differently when using toolkit scroll bars.
10387
10388 * xterm.c (x_send_scroll_bar_event): New.
10389 (x_scroll_bar_to_input_event): New.
10390 (xaw3d_scroll_callback): New.
10391 (xaw3d_jump_callback): New.
10392 (xm_scroll_callback): New.
10393 (x_toolkit_scroll_p): New.
10394 (XTread_socket): Handle scroll bar client message.
10395 (x_term_init): Initialize Xatom_Scrollbar.
10396 (x_scroll_bar_create): Set cursor.
10397 (xm_scroll_callback):
10398 (x_create_toolkit_scroll_bar): New.
10399 (x_set_toolkit_scroll_bar_thumb): New.
10400 (x_scroll_bar_create): Call x_create_toolkit_scroll_bar.
10401 (XTset_vertical_scroll_bar): Call x_set_toolkit_scroll_bar_thumb.
10402
10403 * xterm.h (struct x_display_info): Add Xatom_Scrollbar.
10404
104051998-10-21 Gerd Moellmann <gerd@gnu.org>
10406
10407 * xterm.c (x_scroll_bar_remove): Handle toolkit scroll bars.
10408 (XTread_socket): Don't handle mouse button events for scroll bars
10409 if using toolkit scroll bars.
10410 (XTset_vertical_scroll_bar): Set thumb size and position for
10411 Athena scroll bar.
10412
10413 * xterm.h (scroll_bar): Add x_widget_low and x_widget_high.
10414
10415 * xterm.c (XTread_socket): Dispatch expose event to widget
10416 if using toolkit scroll bars.
10417 (x_scroll_bar_expose): Make no-op for toolkit scroll bars.
427ec082 10418 (x_scroll_bar_create): Create and show a scroll bar widget
26901792
DL
10419 if using toolkit scroll bars.
10420 (x_scroll_bar_move): Handle tookit scroll bars.
10421
10422 * Makefile.in (LIBW): Use Xaw3d if present.
10423
10424 * configure.in (USE_TOOLKIT_SCROLL_BARS): New.
10425 (HAVE_XAW3D): New.
427ec082 10426
26901792
DL
10427 * config.in (USE_TOOLKIT_SCROLL_BARS): New.
10428 (HAVE_XAW3D): New.
10429
427ec082 10430 * xterm.c (XTset_vertical_scroll_bar): Correct position of
26901792
DL
10431 right vertical scroll bar.
10432
104331998-10-20 Gerd Moellmann <gerd@gnu.org>
10434
10435 * xfns.c (xpm_load): Support reading XPM images from string
10436 buffers containing data in the same format as an XPM file.
10437 Support `:color-symbols'.
10438 (xpm_format): Add `:data'.
10439 (xpm_keyword_index): Add XPM_DATA.
10440 (syms_of_xfns): Add `:color-symbols'.
10441 (xpm_keyword_index): Add XPM_COLOR_SYMBOLS.
10442 (xpm_valid_color_symbols_p): New.
10443 (xpm_image_p): Call it.
10444
10445 * xdisp.c (build_desired_toolbar_string): Add `:algorithm'
10446 attribute to the image if item is not enabled.
10447
10448 * xfns.c (x_laplace): New.
10449 (x_laplace_read_row): New.
10450 (x_laplace_write_row): New.
10451 (lookup_image): Handle common image attributes here. New
10452 attribute `:algorithm'.
10453
10454 * xfaces.c (clear_face_cache): Call clear_image_cache.
10455
10456 * xterm.c (x_inverted_image_mask): Removed.
10457 (x_draw_image_foreground_1): New.
10458 (x_draw_image_glyph_string): Draw images with mask to a temporary
10459 pixmap to reduce flickering.
10460
10461 * xdisp.c (redisplay_toolbar): Handle auto-resize-toolbars.
10462 (display_toolbar_line): Remove parameter `margin'.
10463
104641998-10-19 Gerd Moellmann <gerd@gnu.org>
10465
10466 * xdisp.c (toolbar_lines_needed): New.
10467 (auto-resize-toolbars): New.
10468
10469 * xfns.c (cache_image): Correct call to xrealloc.
10470
10471 * dispnew.c (Fset_toolbar_height): Removed.
10472
10473 * xdisp.c (init_xdisp): Use FRAME_TOP_MARGIN instead of
10474 FRAME_MENU_BAR_LINES.
10475
10476 * window.c (Fdelete_other_windows): Use FRAME_TOP_MARGIN
10477 instead of FRAME_MENU_BAR_LINES.
10478 (check_frame_size): Ditto.
10479
10480 * dispnew.c (adjust_frame_glyphs_initially): Use FRAME_TOP_MARGIN
10481 instead of FRAME_MENU_BAR_LINES.
10482 (adjust_frame_glyphs_for_frame_redisplay): Ditto.
10483 (build_frame_matrix): Ditto.
10484 (change_frame_size_1): Ditto.
10485
10486 * frame.h (FRAME_TOOLBAR_LINES): New.
10487 (FRAME_TOP_MARGIN): New.
10488
10489 * window.c (struct save_window_data): Add frame_toolbar_lines.
10490 (Fset_window_configuration): Handle toolbar lines.
10491 (Fcurrent_window_configuration): Save toolbar lines.
10492
10493 * frame.c (syms_of_frame_1): Add Qtoolbar_lines.
10494
10495 * xfns.c (Fx_create_frame): Add default parameter for toolbar.
10496
10497 * frame.h (struct frame): Rename top_margin to toolbar_lines.
10498
10499 * xfns.c (x_frame_parms): Add `toolbar-lines'.
10500 (x_set_toolbar_lines): New.
10501
10502 * keyboard.c (cmd_error_internal): Bug fix.
10503
10504 * xterm.c: Remove double include of syssignal.h.
10505
105061998-10-18 Gerd Moellmann <gerd@gnu.org>
10507
10508 * xterm.c (x_toolbar_item): New.
10509 (x_handle_toolbar_click): Use it.
10510 (note_toolbar_highlight): Use it.
10511
10512 * keyboard.c (syms_of_keyboard): Staticpro toolbar_item_properties
10513 and toolbar_items_vectors.
10514
10515 * xterm.c (help_echo): New.
10516 (draw_glyphs_face): Add DRAW_IMAGE_RAISED and DRAW_IMAGE_SUNKEN.
10517 (x_set_glyph_string_gc): Handle them.
10518 (x_after_update_window_line): Don't do anything in pseudo-windows.
10519 (x_produce_image_glyph): Take image margin and face relief into
10520 account.
10521 (x_get_glyph_string_clip_rect): Handle pseudo-windows.
10522 (x_draw_glyph_string_background): Optimize case when face has
10523 relief.
10524 (x_setup_relief_color): Take frame instead of glyph string
10525 parameter.
10526 (x_draw_relief_rect): New.
10527 (x_draw_glyph_string_relief): Call it.
10528 (x_draw_image_glyph_string_foreground): Handle margin and image
10529 relief.
10530 (x_draw_image_glyph_string_background): Ditto.
10531 (expose_frame): Redraw toolbar window.
10532 (expose_window): Don't draw cursor for pseudo-windows.
10533 (x_y_to_hpos_vpos): Handle pseudo-windows.
10534 (frame_to_window_pixel_xy): New.
10535 (note_mouse_highlight): Call note_toolbar_highlight.
10536 (x_handle_toolbar_click): New.
10537 (note_toolbar_highlight): New.
10538 (show_mouse_face): Change int parameter `hl' to parameter of
10539 type enum draw_glyphs_face. Handle image highlighting.
10540 (XTread_socket): Return a HELP_EVENT input event if help_echo is
10541 non-nil. Use x_handle_toolbar_click.
10542
10543 * termhooks.h (event_kind): Add HELP_EVENT, TOOLBAR_EVENT.
10544
10545 * xfns.c (image_value_type): Add IMAGE_INTEGER_VALUE,
10546 IMAGE_BOOL_VALUE.
10547 (parse_image_spec): Handle them.
10548 (image_spec_value): Additional parameter found.
427ec082 10549 (free_image): Remove image from the vector `images' of the
26901792
DL
10550 image cache.
10551 (clear_image_cache): Additional parameter force_p.
10552 (Fclear_image_cache): New.
10553 (x_find_image_file): New.
10554 (xbm_load): Handle `:margin' and `:relief'. Use
10555 x_find_image_file.
10556 (xpm_load): Likewise.
10557 (pbm_load): Likewise.
10558 (jpeg_load): Likewise.
10559 (tiff_load): Likewise.
10560 (gif_load): Likewise.
10561
10562 * keyboard.c (Qhelp_echo): New symbol.
10563 (read_char): Handle `toolbar' and `help_echo' events.
10564 (kbd_buffer_get_event): Handle HELP_ECHO input event.
10565 (make_lispy_event): Handle TOOLBAR_EVENT.
10566 (toolbar_items): New.
10567 (process_toolbar_item): New.
10568 (PROP): New.
10569 (init_toolbar_items): New.
10570 (append_toolbar_item): New.
10571 (read_char_x_menu_prompt): Handle `toolbar' event.
10572 (read_key_sequence): Ditto.
10573
10574 * xfaces.c (Qtoolbar): New.
10575 (realize_basic_faces): Realize `toolbar' face.
10576 (face_at_string_position): Remove parameter modeline_p, add
10577 base_face_id.
10578
10579 * xfns.c (xbm_load_image_from_file): Don't use Xmu function
10580 to read data.
10581
105821998-10-17 Gerd Moellmann <gerd@gnu.org>
10583
10584 * xdisp.c (init_iterator): Replace parameter modeline_p with
10585 base_face_id.
10586 (next_element_from_string): Call get_next_display_element
10587 recursively after handling text properties.
10588 (prepare_menu_bars): Call update_toolbar.
10589 (update_toolbar): New.
10590 (build_desired_toolbar_string): New.
10591 (display_toolbar_line): New.
10592 (redisplay_toolbar): New.
10593 (toolbar_item_info): New.
10594 (redisplay_window): Call redisplay_toolbar.
10595 (Fdump_toolbar_row): New. Defined if compiled with GLYPH_DEBUG.
10596
10597 * dispnew.c (clear_current_matrices): Clear matrices of toolbar
10598 window.
10599 (clear_desired_matrices): Ditto.
10600 (adjust_frame_glyphs_for_window_redisplay): Make toolbar window.
10601 (free_glyphs): Free matrices of toolbar window.
10602 (update_frame): Update toolbar window.
10603 (change_frame_size_1): Take toolbar into account.
10604 (Fset_toolbar_height): New.
10605
10606 * dispextern.h (struct it): Remove member modeline_p, add
10607 base_face_id.
10608 (struct image): Add members relief and margin.
10609 (IMAGE_ASCENT): Include margin in height.
10610
106111998-10-14 Gerd Moellmann <gerd@gnu.org>
10612
10613 * xfns.c (Fclear_image_cache): New.
10614
10615 * xfaces.c (realize_basic_faces): Realize toolbar face.
10616 (face_at_string_position): Remove parameter modeline_p, add
10617 base_face_id.
10618
10619 * dispextern.h (enum face_id): Add TOOLBAR_FACE_ID.
10620
106211998-10-13 Gerd Moellmann <gerd@gnu.org>
10622
10623 * keyboard.c (syms_of_keyboard): Intern `:help'.
10624
106251998-10-12 Gerd Moellmann <gerd@gnu.org>
10626
10627 * xterm.c (note_toolbar_highlight): New.
10628 (note_mouse_highlight): Call it.
10629
10630 * window.c (window_from_coordinates): Additional parameter toolbar_p.
10631 (coordinates_in_window): Handle toolbar window.
10632
10633 * keyboard.c (toolbar_items): New.
10634 (process_toolbar_item): New.
10635 (parse_toolbar_item): New.
10636 (init_toolbar_items): New.
10637 (append_toolbar_item): New.
10638
10639 * dispextern.h (enum toolbar_item_idx): New.
10640 (enum toolbar_item_image): New.
10641
10642 * frame.h (struct frame): Add toolbar-related members.
10643
10644 * xfaces.c (face_at_string_position): Remove assertion that
10645 current_buffer == window's buffer. This is not the case when
10646 called for the toolbar window.
10647
10648 * frame.c (make_frame): Initialize toolbar members.
10649
10650 * alloc.c (mark_object): Mark toolbar data of frames.
10651
10652 * frame.h (struct frame): Add toolbar-related members
10653 toolbar_window, desired_toolbar_items, current_toolbar_items,
10654 desired_toolbar_string, current_toolbar_string,
10655 n_desired_toolbar_items, n_current_toolbar_items. Add
10656 window_height.
10657
10658 * xterm.c (x_after_update_window_line): Don't draw bitmap
10659 areas for pseudo-windows.
10660 (expose_frame): Handle toolbar window.
10661 (expose_window): Don't do cursor stuff for pseudo-windows.
10662
10663 * xdisp.c (display_menu_bar): Correct calls to init_iterator.
10664
106651998-10-11 Gerd Moellmann <gerd@gnu.org>
10666
10667 * frame.c (make_frame): Initialize toolbar_window.
10668
10669 * alloc.c (mark_object): Make the toolbar window.
10670
10671 * dispnew.c (update_frame): Update frame's toolbar_window.
10672 (clear_current_matrices): Likewise.
10673 (clear_desired_matrices): Likewise.
10674 (adjust_frame_glyphs_for_window_redisplay): Make toolbar_window.
10675 (free_glyphs): Free the toolbar window and its matrices.
10676
10677 * frame.h (struct frame): Add toolbar_window.
10678
10679 * xterm.c (x_draw_glyph_string_relief): Handle mouse-face
10680 with relief.
10681
106821998-10-10 Gerd Moellmann <gerd@gnu.org>
10683
427ec082 10684 * dispnew.c (buffer_posn_from_coords): Don't screw up if
26901792
DL
10685 window start is not in the range BEGV..ZV.
10686
106871998-10-09 Gerd Moellmann <gerd@gnu.org>
10688
10689 * xdisp.c (try_scrolling): Experimentally handle the case
10690 that scroll-preserve-screen-position is set to `always'.
10691
10692 * window.c (Vscroll_preserve_screen_position): Replacement for
10693 scroll_preserve_screen_position.
10694
106951998-10-08 Gerd Moellmann <gerd@gnu.org>
10696
10697 * dispnew.c: Don't initialize auto structs; the HP/UX compiler
10698 doesn't like it.
10699 * xdisp.c: Ditto.
10700
10701 * xdisp.c (make_cursor_line_fully_visible): Adjust this_line_y.
10702
107031998-10-06 Gerd Moellmann <gerd@gnu.org>
10704
427ec082 10705 * minibuf.c (Fminibuffer_complete_word): Fix computation of
26901792
DL
10706 i_byte when prompts are inserted into minibuffers.
10707
10708 * dispextern.h (FRAME_INTERNAL_BORDER_WIDTH_SAFE): New.
10709 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X): Use it.
10710 (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y): Ditto.
10711
107121998-10-04 Gerd Moellmann <gerd@gnu.org>
10713
10714 * xdisp.c (make_cursor_line_fully_visible): New.
10715 (try_scrolling): New.
10716 (redisplay_window): Move scrolling code to try_scrolling.
10717 (make_cursor_line_fully_visible): Handle case of window too small
10718 to show a single line.
10719 (redisplay_window): Case forced window start---use
10720 make_cursor_line_fully_visible.
10721 (redisplay_window): Case cursor movement via current matrix.
10722 If ending up on a partially visible line, make it fully visible
10723 instead of recentering.
10724 (try_scrolling): Additional parameter scroll_smoothly.
10725
10726 * xterm.c (x_draw_bitmap): Don't XClearArea under the pixmap.
10727
107281998-09-28 Gerd Moellmann <gerd@gnu.org>
10729
10730 * window.c (window_scroll_pixel_based): Bug fix: vpos used
10731 instead of y-position for scroll-preserved-screen-position.
10732
107331998-09-07 Gerd Moellmann <gerd@gnu.org>
10734
10735 * dispnew.c (update_frame_line): If current row is not enabled,
10736 write the whole line.
10737
107381998-09-06 Gerd Moellmann <gerd@gnu.org>
10739
10740 * lisp.h (HAVE_FACES): Removed.
10741
10742 * dispextern.h (HAVE_FACES): Removed.
10743
10744 * config.in (HAVE_FACES): Removed.
10745
10746 * dispnew.c (HAVE_FACES): Removed.
10747
10748 * xdisp.c (HAVE_FACES): Removed.
10749
10750 * xfaces.c (HAVE_FACES): Removed.
10751
107521998-09-05 Gerd Moellmann <gerd@gnu.org>
10753
10754 * xdisp.c (init_iterator): If face_change_count is non-zero,
10755 free realized faces.
10756
10757 * xfaces.c (free_all_realized_faces): Make it externally visible.
10758 (Finternal_set_lisp_face_attribute): Increment
10759 windows_or_buffers_changed.
10760
10761 * dispnew.c (direct_output_for_insert): Give up if
10762 face_change_count is non-zero.
10763 (direct_output_forward_char): Ditto.
10764
10765 * xfaces.c (face_change_count): New.
10766
107671998-09-04 Gerd Moellmann <gerd@gnu.org>
10768
10769 * xterm.c (x_draw_bar_cursor): Don't draw if cursor hpos is out
10770 of range.
10771
107721998-09-03 Gerd Moellmann <gerd@gnu.org>
10773
10774 * term.c (Ftty_display_color_p): New.
10775
107761998-09-02 Gerd Moellmann <gerd@gnu.org>
10777
10778 * xfaces.c (Ftty_defined_colors): New.
10779
10780 * xterm.c (x_produce_glyphs): Fix computation of
10781 contains_overlapping_glyphs_p for ASCII.
10782
10783 * dispnew.c (Fshow_cursor): Don't change cursor state while
10784 redisplaying.
10785 (direct_output_for_insert): If a glyph with lbearing or rbearing
10786 is among the new glyphs, set row flag contains_overlapping_glyph_p.
10787
107881998-09-01 Gerd Moellmann <gerd@gnu.org>
10789
10790 * term.c (OUTPUT_IF): Make replacement text have statement form.
10791 (OUTPUT1_IF): Ditto.
10792 (TS_italic_mode, TS_end_italic_mode): Removed.
10793 (TS_bold_mode): Removed.
10794 (TS_underscore_mode, TS_end_underscore_mode): Removed.
10795 (TS_enter_bold_mode, TS_enter_dim_mode, TS_enter_blink_mode): New.
10796 (TS_enter_reverse_mode): New.
10797 (TS_enter_underline_mode, TS_exit_underline_mode): New.
10798 (TN_magic_cookie_glitch_ul): New.
10799 (TS_enter_alt_charset_mode, TS_exit_alt_charset_mode): New.
10800 (TS_exit_attribute_mode): New.
10801 (TN_max_colors, TN_max_pairs, TS_orig_pairs): New.
10802 (TS_set_foreground, TS_set_background): New.
10803 (reset_terminal_modes): Switch colors back to default.
10804 (write_glyphs): Turn face on before writing text, turn it off
10805 afterwards.
10806 (insert_glyphs): Ditto.
10807 (term_init): Initialize new terminal capability variables.
10808 (turn_on_face): Turn a face on.
10809 (turn_off_face): Turn a face off.
10810
10811 * lisp.h (MAKE_GLYPH): Remove test for frame type.
10812 (GLYPH_CHAR): Ditto.
10813 (GLYPH_FACE): Ditto.
10814
10815 * xfaces.c (Vface_tty_color_alist): New.
10816 (face-register-tty-color): New.
10817 (face-clear-tty-colors): New.
10818
10819 * dispextern.h (FACE_TTY_DEFAULT_COLOR): New.
10820 (struct it): Remove member faces_p since we now always have faces.
10821
108221998-08-31 Gerd Moellmann <gerd@gnu.org>
10823
10824 * dispextern.h (struct face): Add tty appearance flags.
10825
10826 * xdisp.c (init_iterator): Always handle faces.
10827 (extend_face_to_end_of_line): Handle tty frames.
10828
10829 * dispnew.c (clear_glyph_matrix): Allow a null matrix to be
10830 passed in.
10831
108321998-08-30 Gerd Moellmann <gerd@gnu.org>
10833
10834 * xfaces.c (realize_default_face): Use empty strings to indicate
10835 that the face should use the default foreground/background
427ec082 10836 color of the terminal. Fill font-related attributes with
26901792
DL
10837 appropriate values for tty frames.
10838
10839 * emacs.c (main): Call syms_of_xfaces before init_window_once.
10840
10841 * xfaces.c (realize_default_face): If face `default' is not
10842 yet known, create it.
10843
10844 * frame.c (make_terminal_frame): Call init_frame_faces
10845 unconditionally.
10846
10847 * xfaces.c (init_frame_faces): Make it work for tty frames.
10848 (free_frame_faces): Ditto.
10849 (clear_face_cache): Ditto.
10850 (recompute_basic_faces): Ditto.
10851 (Fframe_face_alist): Ditto.
10852 (free_realized_face): Ditto.
10853 (prepare_face_for_display): Ditto.
10854 (clear_face_gcs): Ditto.
10855 (lookup_face): Ditto.
10856 (smaller_face): Ditto.
10857 (realize_default_face): Ditto.
10858 (realize_face): Ditto.
10859 (realize_face): Dispatch to functions depending on the frame type.
10860 (realize_x_face): X way of realizing faces.
10861 (realize_tty_face): TTY way of realizing faces.
10862
108631998-08-29 Gerd Moellmann <gerd@gnu.org>
10864
10865 * xfaces.c (realize_face): Remove parameter unibyte_registry,
10866 compute it instead.
10867 (lookup_face): Remove local variable unibyte_registry.
10868
108691998-08-22 Gerd Moellmann <gerd@gnu.org>
10870
10871 * xterm.c (x_draw_glyph_string_relief): Draw top and bottom lines
10872 1 pixel longer.
10873
427ec082 10874 * xdisp.c (face_before_or_after_it_pos): Fix computation
26901792
DL
10875 of face in buffer.
10876
10877 * editfns.c (make_buffer_string_both): If prompt in buffer,
10878 prevent start > end.
10879
10880 * indent.c (Fvertical_motion): Set current_buffer to window's
10881 buffer if it isn't already.
10882
108831998-08-21 Gerd Moellmann <gerd@gnu.org>
10884
10885 * dispextern.h (GLYPH_DEBUG): Use default 0.
10886
10887 * xdisp.c (it_props): New member `smaller'.
10888 (init_iterator): Initialize it.
10889 (Qsmaller): New.
10890 (push_it): Save value of `smaller' value on the stack.
10891 (pop_it): Restore `smaller' from the stack.
10892 (handle_smaller_prop): New.
10893 (handle_face_prop): Use `smaller' text property to select a
10894 suitable face.
10895
10896 * dispextern.h (SMALLER_PROP_IDX): New.
10897 (struct it): Add member `smaller'.
10898
10899 * xfaces.c (smaller_face): New.
10900
10901 * frame.h (FRAME_WINDOW_WIDTH_ARG): Add bitmap area widths.
10902
10903 * dispnew.c (allocate_matrices_for_window_redisplay): Compute
10904 total pixel width of window differently.
10905
10906 * xdisp.c (init_iterator): Compute width of mode line differently.
10907
10908 * dispextern.h (WINDOW_DISPLAY_PIXEL_WIDTH): Subtract width
10909 of bitmap areas.
10910
10911 * window.c (Fsplit_window): Include width of bitmap areas in
10912 window width.
10913 (window_internal_width): Subtract width of bitmap areas from
10914 total width.
10915
109161998-08-18 Gerd Moellmann <gerd@gnu.org>
10917
10918 * xdisp.c: Functions reordered for better readability.
10919
10920 * dispnew.c (update_text_area): Handle glyphs with arbitrary
10921 lbearing.
10922 (update_window_tree): Parameter no_scrolling_p removed.
10923 (update_single_window): Ditto.
10924
10925 * xterm.c (x_get_char_font_and_encoding): Renamed to
10926 x_get_char_face_and_encoding.
10927
10928 * dispnew.c (update_text_area): Don't call get_glyph_overhangs
10929 if end of current row reached.
10930
10931 * xterm.c (x_get_glyph_face_and_encoding): New.
10932 (x_get_glyph_overhangs): Call it.
10933
10934 * xdisp.c (Qshow_trailing_whitespace): New.
10935 (Qtrailing_whitespace): New.
10936 (enum prop_handled): New.
10937 (struct props, it_props): New.
10938 (next_overlay_change): New. Works like Fnext_overlay_change
10939 but doesn't use xmalloc.
10940 (handle_stop): Restructured.
10941 (face_before_or_after_it_pos): Case iteration over a string: fix
10942 handling of face before current position.
10943
109441998-08-16 Gerd Moellmann <gerd@gnu.org>
10945
10946 * dispnew.c (adjust_glyph_matrix): Don't optimize matrix
10947 reallocation matrix if fonts_changed_p.
10948 (update_text_area): Handle glyphs with lbearing.
10949
109501998-08-14 Gerd Moellmann <gerd@gnu.org>
10951
10952 * xdisp.c (struct props): New.
10953 (it_props): New.
10954 (compute_prop_info): New.
10955 (handle_stop): New.
10956
10957 * textprop.c (validate_interval_range): Make it externally
10958 visible.
10959
10960 * dispnew.c (direct_output_for_insert): Remove calls
10961 to compute_stop_pos.
10962
10963 * dispextern.h (struct it): Remove check_charpos,
10964 next_overlay_pos. Add what_changes.
10965
109661998-08-10 Gerd Moellmann <gerd@gnu.org>
10967
10968 * xterm.c (note_mouse_highlight): Set BEGV_BYTE, ZV_BYTE.
10969
10970 * xfaces.c (Vx_unibyte_registry_and_encoding): Removed. Use
10971 face_default_registry instead.
10972
10973 * syntax.c (scan_sexps_forward): Set up syntax table before
10974 jumping to initial state label.
10975
109761998-08-09 Gerd Moellmann <gerd@gnu.org>
10977
10978 * dispnew.c (check_matrix_invariants): Handle case of row end pos
10979 >= ZV specially.
10980
109811998-08-08 Gerd Moellmann <gerd@gnu.org>
10982
10983 * xdisp.c (redisplay_window): Case cursor movement---if cursor
10984 ends up in partially visible row, try to scroll. Case forced
10985 window start---handle windows not tall enough to show a single
10986 line.
10987
10988 * window.h (struct window): Member dy renamed vscroll.
10989
10990 * xterm.c (x_list_fonts): Re-activate suppression of scalable
10991 fonts.
10992 (x_draw_stretch_glyph_string): Set clipping if using GC that
10993 hasn't set it yet.
10994
10995 * xdisp.c (redisplay_window): Case forced window start -
10996 don't let cursor end on partially visible row. Use desired
10997 matrix to find a suitable PT if it doesn't appear.
10998 (decode_mode_spec): Merged with 20.2.97.
10999 (try_window_reusing_current_matrix): Give up if old or
11000 new display is vscrolled.
11001 (redisplay_window): Reset vscrolling if forced window start,
11002 or if recentering.
11003
110041998-08-06 Gerd Moellmann <gerd@gnu.org>
11005
11006 * xfaces.c (realize_default_face): Use the fontset name instead of
11007 the alias for the family attribute of the default face because we
11008 can't easily determine a good alias from fontset-alias-alist.
11009 (face_fontset): Use Fquery_fontset to find the fontset.
11010 (font_list): Additional pattern parameter.
11011 (try_font_list): Ditto.
11012 (set_lface_from_font_name): Set face family from font foundry
11013 and family.
11014 (font_list): If family contains a hyphen, build pattern differently.
11015
110161998-08-05 Gerd Moellmann <gerd@gnu.org>
11017
11018 * xfaces.c (free_realized_faces): Increment windows_or_buffers_-
11019 changed instead of setting the frame garbaged.
11020
11021 * xfaces.c (lface_equal_p): Don't assume equal Lisp types for
11022 all attribute values. This is wrong if values are unspecified,
11023 i.e. nil.
11024
11025 * xdisp.c (try_window_id): Give up if window start changed.
11026
11027 * xfaces.c (make_realized_face): Store registry as Lisp object.
11028 (load_face_font_or_fontset): Compute registry of a face
11029 differently. Make it `eq' to Vx_unibyte_registry_and_encoding if
11030 possible.
11031
11032 * dispextern.h (FACE_SUITABLE_FOR_CHARSET_P): Compare registries
11033 differently.
11034
11035 * alloc.c (mark_face_cache): Mark the registry member of faces.
11036
11037 * dispextern.h (struct face): Make registry a Lisp string.
11038
110391998-08-04 Gerd Moellmann <gerd@gnu.org>
11040
11041 * xterm.c (x_get_char_font_and_encoding): Additional parameter
11042 multibyte_p. Handle unibyte text.
11043 (x_append_glyph): Set the multibyte_p flag of glyphs.
11044 (x_produce_image_glyph): Ditto.
11045 (x_append_stretch_glyph): Ditto.
11046 (x_produce_glyphs): Handle unibyte text like ASCII.
11047
11048 * xdisp.c (push_it): Save the multibyte flag of an iterator on the
11049 stack.
11050 (pop_it): Restore it.
11051 (face_before_or_after_it_pos): Handle the case that the string or
11052 buffer is unibyte.
11053 (get_overlay_strings): Set the multibyte flag of the iterator if
11054 the new overlay string is multibyte.
11055 (get_glyph_property): Likewise.
11056 (get_next_display_element): Don't check for charset changes in
11057 unibyte text.
11058 (append_space): Compute face differently for unibyte text.
11059 (extend_face_to_end_of_line): Don't return quickly if face has
11060 stipple.
11061
11062 * xfaces.c (load_face_font_or_fontset): Store registry and
11063 encoding of the font in the registry member of the face.
11064 (make_realized_face): Additional parameter `registry'.
11065 (free_realized_face): Free the registry of a realized face.
11066 (face_suitable_for_charset_p): Function form of the macro
11067 with the same name in uppercase.
11068 (lookup_face): Use Vx_unibyte_registry_and_encoding if charset < 0.
11069 (choose_face_font): New parameter unibyte_registry.
11070 (choose_face_fontset_font): Ditto.
11071 (realize_default_face): Remember the registry and encoding of
11072 the specified frame font in Vx_unibyte_registry_and_encoding.
11073 (face_at_buffer_position): Handle unibyte.
11074 (face_at_string_position): Likewise.
427ec082 11075 (realize_face): New parameter unibyte_registry.
26901792
DL
11076 (compute_char_face): Handle the unibyte case.
11077
11078 * dispextern.h (struct glyph): Add bit multibyte_p.
11079 (struct face): New member registry holding the registry and
11080 encoding of the X font of the face.
11081 (FACE_UNIBYTE_P): Value is non-zero if face is for unibye text.
11082 (enum face_id): Add BASIC_FACE_ID_SENTINEL.
11083 (FACE_SUITABLE_FOR_CHARSET_P): Handle charset < 0 meansing unibyte
11084 text.
11085 (struct iterator_stack_entry): Add multibyte_p.
11086
11087 * xdisp.c (string_pos): Use string_char_to_byte.
11088 (char_charset): Removed.
11089
110901998-08-03 Gerd Moellmann <gerd@gnu.org>
11091
11092 * xterm.c (x_draw_image_glyph_string_foreground): Draw a
11093 rectangle for a block cursor over an image without a mask.
11094 (x_stretch_block_cursor): Added. Non-zero means don't draw
11095 a block cursor over a stretch as wide as that stretch.
11096 (x_draw_stretch_glyph_string): Use it.
11097 (x_draw_hollow_cursor): Ditto.
11098
11099 * minibuf.c (read_minibuf): Use minibuf_prompt instead of prompt.
11100 (read_minibuf): Add front-sticky text property for prompt.
11101
11102 * xdisp.c (char_charset): Return charset of a character,
11103 depending on whether or not multi-byte characters are enabled.
11104
11105 * xfaces.c (Fset_face_charset_registry): Removed.
11106 (x_charset_registry): Determine registry from charset plist.
11107
111081998-08-02 Gerd Moellmann <gerd@gnu.org>
11109
11110 * xdisp.c (get_next_display_element): Don't check for charset
11111 changes if multi-byte characters are not enabled.
427ec082 11112
26901792 11113 * xdisp.c (echo_area_display): Use the flush function from the
427ec082 11114 redisplay interface.
26901792
DL
11115 * keyboard.c (detect_input_pending_run_timers): Likewise.
11116
11117 * dispextern.h (produce_*glyphs_hook): Removed.
11118 * term.c (produce_*glyphs): Ditto.
11119 (cursor_to): Remove pixel position parameters.
11120
11121 * dispnew.c: Remove hooks for window-based redisplay, introduce
11122 a redisplay interface structure.
11123
11124 * xterm.c (x_per_char_metric): Return default char metrics if per
11125 char metric exists but contains a zero width. Adobe Courier seems
11126 to contain such characters.
11127
11128 * xdisp.c (compute_line_metrics): Compute the width of rows
11129 without stopping at glyphs with zero width.
11130
111311998-08-01 Gerd Moellmann <gerd@gnu.org>
11132
11133 * xdisp.c (display_mode_line): If nothing was displayed at all,
11134 display a space.
11135 (hscroll_window_tree): Don't subtract 1 from target point if equal
11136 to ZV and window is not the selected window.
11137
11138 * dispnew.c (check_matrix_invariants): Remove check for window
11139 start at BEGV or after newline. This happens in rare cases
11140 intentionally.
11141
111421998-07-31 Gerd Moellmann <gerd@gnu.org>
11143
11144 * xfaces.c (x_charset_registry): Use STRING_BYTES.
11145 (syms_of_xfaces): Add Vface_default_registry.
11146 (x_charset_registry): Use it.
11147
11148 * xdisp.c (run_window_scroll_functions): Run window scroll functions.
11149 (redisplay_window): Use it.
11150
11151 * dispnew.c (update_text_area): Handle lbearing of deleted text
11152 by backing up one character.
11153
111541998-07-30 Gerd Moellmann <gerd@gnu.org>
11155
427ec082 11156 * dispnew.c (adjust_glyph_matrix): Use a different check to
26901792
DL
11157 decide to do nothing.
11158
11159 * xfaces.c (face_at_string_position): Additional parameter
11160 mode_line_p. If non-zero, merge with the mode line face
11161 instead of the default face.
11162 * dispextern.h (struct it): Add mode_line_p.
11163 * xdisp.c (init_iterator): Set it.
11164 (compute_face_in_string): Use it.
11165 (face_before_or_after_it_pos): Handle strings.
11166 (get_next_display_element): Don't look for relief end in C strings.
11167 (next_element_from_string): Deliver string position instead of
11168 buffer position.
11169
11170 * xterm.c (x_flush): Flush X output buffer.
11171 (XTflash): Use it.
11172
11173 * xfaces.c (lface_from_face_name): Renamed from lface_from_symbol.
11174 Allow strings as face names.
11175
11176 * xfns.c (forall_images_in_image_cache): Check that frame is
11177 alive.
11178
11179 * widget.c (EmacsFrameDestroy): Remove call to free_frame_faces;
11180 it's also called from x_destroy_window. Since this function is
11181 called from X, freeing stuff allocated with xmalloc is dangerous
11182 here, anyway.
11183
11184 * xfaces.c (free_realized_faces): Don't clear current matrices
11185 of a frame being destroyed.
11186
427ec082 11187 * frame.c (make_frame): Call set_window_buffer instead of
26901792
DL
11188 Fset_window_buffer.
11189
11190 * window.c (set_window_buffer): Extracted from Fset_window_buffer,
11191 with an additional argument specifying whether or not hooks may
11192 be called.
11193 (Fset_window_buffer): Call it.
11194
11195 * dispnew.c (clear_desired_matrices): Check that frame has
11196 a valid root window before clearing matrices in the window tree.
11197 (clear_current_matrices): Ditto.
11198 (clear_window_matrices): If GLYPH_DEBUG, check that hchild and
11199 vchild are valid windows if not nil.
11200
11201 * xfaces.c (merge_face_vector_with_property): Allow :reverse-video
11202 for :inverse-video.
11203 (Finternal_set_lisp_face_attribute): Ditto.
11204 (Finternal_set_lisp_face_attribute_from_resource): Ditto.
11205 (Finternal_get_lisp_face_attribute): Ditto.
11206 (Finternal_lisp_face_attribute_values): Ditto.
11207 (syms_of_xfaces): Define the symbol `:reverse-video'.
11208
11209 * xdisp.c (get_glyph_property): Renamed from
11210 fill_iterator_from_glyph_property.
11211 (next_element_from_buffer): Handle case that no `glyph' property
11212 was found correctly.
11213 (display_line): Extend face to end of line only if we have faces.
11214
112151998-07-29 Gerd Moellmann <gerd@gnu.org>
11216
11217 * dispnew.c (Fshow_cursor): Renamed from blink_cursor. Take
11218 additional window argument.
11219
11220 * xdisp.c (reseat_at_previous_visible_line_start): Renamed from
11221 set_iterator_to_previous_visible_line_start.
11222 (reseat_at_next_visible_line_start): Likewise.
11223 (compute_stop_pos): Renamed from set_iterator_stop_pos.
11224 (face_before_or_after_it_pos): Renamed from get_face_at_it_pos.
11225 (compute_face_in_buffer): Renamed from
11226 compute_face_at_iterator_position.
11227 (compute_face_in_string): Renamed from
11228 compute_face_at_iterator_string_position.
11229 (get_space_width): Renamed from get_iterator_space_width.
11230 (next_overlay_string): Renamed from
11231 set_iterator_to_next_overlay_string.
11232 (get_overlay_strings): Renamed from
11233 get_overlay_strings_at_iterator_position.
11234 (restore_overlay_strings): Renamed from
11235 setup_overlay_strings_from_glyph_pos.
11236 (restore_dpvec): Renamed from setup_iterator_dpvec_from_glyph_pos.
11237 (init_from_display_pos): Renamed from init_iterator_from_glyph_pos.
11238 (init_to_row_start): Renamed from init_iterator_to_row_start.
11239 (init_to_row_end): Formerly init_iterator_to_next_row_start.
11240
11241 * xterm.c: Merge with 20.2.97.
11242 (x_produce_glyphs): Use x_append_stretch_glyph for tabs.
11243
11244 * dispextern.h (struct glyph): Replace text_pos position with
11245 simple charpos.
11246
11247 * xdisp.c (this_line_start_pos): Use struct text_pos.
11248 (this_line_end_pos): Renamed from .*endpos; use struct text_pos.
11249 (enum move_it_result): Renamed from move_iterator_result.
11250 (string_pos_nchars_ahead): Compute text_pos in a string from a
11251 known text_pos plus a character delta.
11252 (string_pos): Compute text_pos in string from charpos.
11253 (c_string_pos): Likewise for a C string.
11254 (number_of_chars): Return number of characters in a possibly
11255 multi-byte C string.
11256 (check_it): Renamed from check_iterator. Check that charpos and
11257 bytepos are in sync.
11258 (push_it): Renamed from save_iterator_settings.
11259 (pop_it): Renamed from restore_iterator_settings.
11260 (move_it_.*): Renamed from move_iterator_.*.
11261 (charset_at_position): Take charpos/bytepos into account.
11262 (back_to_previous_line_start): Set iterator to previous line start.
11263 (forward_to_next_line_start): Set iterator to next line start.
427ec082 11264 (back_to_previous_visible_line_start): Renamed from
26901792
DL
11265 move_iterator_previous_visible_line_start.
11266 (set_iterator_to_next_visible_line_start): Handle charpos/bytepos.
11267 (get_face_at_it_pos): Renamed from get_face_from_cursor_pos.
11268 Handle charpos/bytepos.
11269 (compute_face_at_iterator_position): Handle charpos/bytepos.
11270 (compute_face_at_iterator_string_position): Likewise.
11271 (get_iterator_space_width): Likewise.
11272 (load_overlay_strings): Likewise.
11273 (get_overlay_strings_at_iterator_position): Likewise.
11274 (reseat_iterator): Take a text_pos position argument.
11275 (setup_iterator_overlay_strings_from_glyph_pos): Handle charpos/
11276 bytepos.
11277 (init_iterator): Take additional bytepos parameter.
11278 (reseat_iterator_to_string): Handle charpos/bytepos.
11279 (start_display): Take a text_pos parameter. Handle charpos/bytepos.
11280 (next_element_from_string): Handle charpos/bytepos.
11281 (next_element_from_c_string): Likewise.
11282 (fill_iterator_from_glyph_property): Likewise.
11283 (next_element_from_buffer): Likewise.
11284 (set_iterator_to_next): Increment charpos and bytepos of an iterator.
11285 (move_iterator_in_display_line_to): Handle charpos/bytepos.
11286 (move_it_to): Likewise.
11287 (move_it_vertically_backward): Likewise.
11288 (move_it_vertically): Likewise.
11289 (move_it_by_lines): Likewise.
11290 (hscroll_window_tree): Likewise.
11291 (redisplay_internal): Likewise.
11292 (set_cursor_from_row): Likewise.
11293 (redisplay_window): Likewise.
11294 (try_window): Take a text_pos parameter. Handle charpos/bytepos.
11295 (try_window_reusing_current_matrix): Handle charpos/bytepos.
11296 (get_first_unchanged_at_end_row): Compute and return delta_bytes.
11297 (try_window_id): Handle charpos/bytepos.
11298 (Ftrace_redisplay_toggle): Return Qnil.
11299 (get_overlay_arrow_glyph_row): Handle charpos/bytepos.
11300 (insert_left_trunc_glyphs): Likewise.
11301
11302 * dispnew.c: `Merge' with 20.2.97 (it's really too different to
11303 do a real merge).
11304 (increment_glyph_matrix_buffer_positions): Add parameter delta_bytes.
11305 (increment_glyph_row_buffer_positions): Ditto.
11306 (copy_glyph_row_contents): Ditto.
11307 (check_matrix_invariants): Add additional checks for charpos/
11308 bytepos consistency.
11309 (direct_output_for_insert): Changed for charpos/bytepos.
427ec082 11310 (buffer_posn_from_coords): Likewise. Put code dealing with
26901792
DL
11311 `direction-reversed' in #if 0.
11312
11313 * xterm.h: Merge with 20.2.97.
427ec082 11314
26901792
DL
11315 * frame.h: Merge with 20.2.97.
11316
11317 * window.h: Merge with 20.2.97. Add window_end_bytepos.
11318
11319 * dispextern.h (MATRIX_ROW_START_CHARPOS): Get charpos of a row
11320 start.
11321 (MATRIX_ROW_START_BYTEPOS): Likewise for the byte position.
11322 (MATRIX_ROW_END_CHARPOS): Likewise for the row end.
11323 (MATRIX_ROW_END_BYTEPOS): Likewise for the row end byte position.
11324 (struct it): Various members renamed from .*pos to .*charpos.
11325 (IT_CHARPOS): Access current buffer character position of an
11326 iterator.
11327 (IT_BYTEPOS): Access current buffer byte position of an iterator.
11328 (IT_STRING_CHARPOS): Access current string character position of
11329 an iterator.
11330 (IT_STRING_BYTEPOS): Access current string byte position of
11331 an iterator.
11332 (globally): Add function prototypes from 20.2.97.
11333
11334 * everywhere: Use P_ instead of PROTO for function prototypes
11335 because everyone else seems to use P_.
11336
11337 * dispextern.h (struct text_pos): Structure describing a charpos/
11338 bytepos position in text.
11339 (BYTEPOS): Access the byte position part of a text_pos.
11340 (CHARPOS): Likewise for the character position.
11341 (SET_TEXT_POS): Set a text_pos from a character and byte position.
11342 (INC_TEXT_POS, DEC_TEXT_POS): Increment/decrement a text position.
11343 (SET_TEXT_POS_FROM_MARKER): Set a text_pos from a marker.
11344 (SET_MARKER_FROM_TEXT_POS): Set a marker from a text_pos.
11345 (TEXT_POS_EQUAL_P): Compare two text_pos structures for equality.
11346 (struct display_pos): Renamed from glyph_pos. Use struct text_pos
11347 for buffer and string positions.
11348 (struct glyph): Use text_pos.
11349 (struct it): Renamed from display_iterator. Use text_pos.
11350
113511998-07-23 Gerd Moellmann <gerd@gnu.org>
11352
11353 * xfns.c (x_kill_gs_process): Get image colors from XImage of a
11354 pixmap.
11355
113561998-07-21 Gerd Moellmann <gerd@gnu.org>
11357
11358 * dispextern.h (struct glyph_row): New flag indicate_zv_line_p.
11359 * xterm.c (x_draw_row_bitmaps): Use it.
11360 * dispnew.c (row_equal_p): Ditto.
11361 (update_window_line): Ditto.
11362
11363 * xfns.c (prepare_image_for_display): Don't set loading_failed_p
11364 flag of images.
11365
11366 * dispextern.h (struct image): Removed member loading_failed_p.
11367 It's probably better to have the chance to try to load an image
11368 again.
11369
113701998-07-20 Gerd Moellmann <gerd@gnu.org>
11371
11372 * xterm.c (x_draw_bitmap): Draw bitmap for empty lines ending
11373 at ZV if `indicate-zv-lines' is non-nil.
11374 (x_draw_row_bitmaps): Compute bitmap for `indicate-zv-lines'.
11375
11376 * dispnew.c (row_equal_p): Compare displays_text_p and
11377 ends_at_zv_p flags of rows.
11378 (update_window_line): Ditto.
11379
11380 * buffer.h (struct buffer): New member indicate_zv_lines.
11381
11382 * buffer.c (init_buffer_once): Add default for `indicate-zv-lines'.
11383 (init_buffer_once): New variable `default-indicate-zv-lines'.
11384 (syms_of_buffer): New buffer-local varianle `indicate-zv-lines'.
11385
11386 * xdisp.c (redisplay_window): Don't try moving the cursor
11387 if current glyph row w->last_cursor.vpos isn't enabled.
11388
11389 * xterm.c (bitmap_type): Add ZV_LINE_BITMAP.
11390
11391 * window.c (Fset_window_vscroll): Allow only negative scroll
11392 values. Others don't seem to make sense, and this way it's easy
11393 to restore a vscroll of zero.
11394
11395 * xterm.c (x_inverted_image_mask): Check that pixmap could be
11396 allocated.
11397 (x_draw_image_glyph_string_background): Don't clip if pixmap
11398 could not be created.
11399
11400 * xfns.c (xbm_load_image_from_file): Check that pixmap could
11401 be created.
11402 (xbm_load): Ditto.
11403 (gs_load): Ditto.
11404
11405 * xterm.c (x_get_glyph_overhangs): Take image and stretch
11406 glyphs into account.
11407
11408 * xfaces.c (realize_default_face): Don't set font family of
11409 the default face from the fontset alias name for `fontset-startup'.
11410
11411 * xfns.c (gs_load): Pass frame's pixel foreground and background
11412 color to the Lisp loader.
11413
114141998-07-19 Gerd Moellmann <gerd@gnu.org>
11415
11416 * xfns.c (tiff_image_p, tiff_load): Support TIFF images via
11417 libtiff34.
11418
11419 * configure.in (--with-tiff, HAVE_TIFF): Added.
11420
11421 * config.in (HAVE_TIFF): Added.
11422
11423 * Makefile.in (LIBTIFF): Added.
11424
11425 * xfns.c (jpeg_image_p, jpeg_load): Support JPEG images.
11426
11427 * Makefile.in (LIBJPEG): Added.
11428
11429 * xfns.c (resource_types): Enumerators renamed to RES_TYPE_NUMBER,
11430 RES_TYPE_BOOLEAN etc. because of conflict of `boolean' with
11431 jpeglib.h.
11432
427ec082 11433 * configure.in (HAVE_JPEG, --with-jpeg): Added. On systems
26901792
DL
11434 where the library is installed in /usr/local/lib, e.g. FreeBSD,
11435 configure must be run with `--x-includes=/usr/X11R6/include:
11436 /usr/local/include --x-libraries=/usr/X11R6/lib:/usr/local/lib'.
11437
114381998-07-18 Gerd Moellmann <gerd@gnu.org>
11439
11440 * config.in (HAVE_JPEG): Added.
11441
11442 * xfns.c (ct_init): Initialize color table used to map RGB colors
11443 from images to X pixel colors.
11444 (ct_free): Free color table.
11445 (ct_lookup): Look an RGB color up.
11446 (ct_allocated_colors): Get vector of allocated colors.
427ec082 11447 (pbm_image_p): Test if image specification is a valid PPM
26901792
DL
11448 image specification.
11449 (pbm_scan_number): Scan a decimal ASCII number from a file.
11450 (pbm_load): Load a PPM image.
11451
11452 * window.c (Fset_window_vscroll): Adjust glyph matrix if
11453 necessary. Take canonical character units as parameter.
11454 (Fwindow_vscroll): Return canonical character units.
11455
11456 * dispnew.c (allocate_matrices_for_window_redisplay): Add negative
11457 w->dy to display height for which glyph rows must be allocated.
11458
114591998-07-17 Gerd Moellmann <gerd@gnu.org>
11460
11461 * xfaces.c (face_at_string_position): Merge in region face
11462 so that it won't overwrite the font in the region.
11463 (face_at_buffer_position): Ditto.
11464 (realize_basic_faces): Don't realize region face.
11465
11466 * dispextern.h (enum face_id): REGION_FACE_ID removed.
11467
11468 * xterm.c (x_set_glyph_string_background_width): Don't let
11469 cursor face extend to end of line.
11470
11471 * xdisp.c (append_space): If adding space of default face,
11472 make sure glyph ist produced with right face.
11473
11474 * xterm.c (x_clear_glyph_string_rect): Draw a rectangle in the
11475 background color of a glyph string.
11476 (x_draw_glyph_string_background): Call it.
11477 (x_draw_glyph_string_bg_rect): Ditto.
11478 (x_draw_stretch_glyph_string): Ditto.
11479
114801998-07-15 Gerd Moellmann <gerd@gnu.org>
11481
11482 * xdisp.c (init_iterator): Initialize it->current_y to the
11483 window's vscroll w->dy.
11484
11485 * window.c (Fwindow_vscroll): Return number of pixels window
11486 is vscrolled smoothly.
11487 (Fset_window_vscroll): Set the number.
11488
11489 * xdisp.c (move_iterator_to): Recognize case MOVE_TO_POS and
11490 to_pos in truncated part of a line.
11491
114921998-07-14 Gerd Moellmann <gerd@gnu.org>
11493
11494 * xdisp.c (move_iterator_in_display_line_to): If very first glyph
11495 doesn't fit on the line, truncate it, despite truncate_lines nil.
11496 (display_line): Ditto.
11497
11498 * xfns.c: Experimental support for Ghostscript images.
11499
11500 * xterm.c (x_term_init): Initialize new atoms DONE and PAGE.
11501 (XTread_socket): React on events from Ghostscript.
11502 (expose_frame): If width or height are zero, redraw entire frame.
11503 (XTread_socket): Call expose_frame after receiving event from
11504 Ghostscript.
11505
11506 * xterm.h (struct x_display_info): Add atoms DONE and PAGE
11507 for Ghostscript support.
11508
11509 * xdisp.c (redisplay_internal): Return quickly if called
11510 recursively.
11511
11512 * alloc.c (NSTATICS): Increased to 1024.
11513
115141998-07-08 Gerd Moellmann <gerd@gnu.org>
11515
11516 * xterm.c (x_append_stretch_glyph): Append a stretch glyph to an
11517 iterator's glyph row.
11518 (x_produce_stretch_glyph): Call it.
11519 (x_produce_glyphs): Handle `space-width' property; call
11520 x_append_stretch_glyph.
11521
11522 * xdisp.c (syms_of_xdisp): Add symbol `space-width' used as a text
11523 property.
11524 (get_iterator_space_width): Determine value of `space-width'
11525 property at iterator's position.
11526 (reseat_iterator): Call it.
11527 (next_element_from_string): Ditto.
11528 (next_element_from_buffer): Ditto.
11529 (init_iterator): Initialize space_width of iterator.
11530 (redisplay_internal): Don't goto end_of_redisplay if PT hasn't
11531 moved, but cursor blinks.
11532 (redisplay_internal): Set w->last_cursor_off_p after update.
11533
11534 * dispextern.h (enum iterator_prop_idx): Add SPACE_WIDTH_PROP_IDX.
11535 (struct display_iterator): Add new member space_width.
11536
11537 * window.h (struct window): Add last_cursor_off_p.
11538
115391998-07-07 Gerd Moellmann <gerd@gnu.org>
11540
11541 * Saved.
11542
11543 * window.c (Fpos_visible_in_window_p): Case window not up to
11544 date---return nil if iterator hasn't reached position.
11545
115461998-07-06 Gerd Moellmann <gerd@gnu.org>
11547
11548 * xdisp.c (text_outside_line_unchanged_p): Fix case that
11549 overlays have changed.
11550 (redisplay_window): Case cursor movement. Don't try it if
11551 last_cursor.vpos is out of range.
11552
11553 * xdisp.c (set_cursor_from_row): Set this_line_.* variables. This
11554 way, the display optimization for the line containing the cursor
11555 is used more frequently, esp. when we have a blinking cursor.
11556 (display_line): Don't set this_line_.* variables.
11557
11558 * xterm.c (x_redraw_cursor): Removed.
11559 (x_display_and_set_cursor): Set cursor type depending on
11560 cursor_off_p flag of window.
11561
11562 * dispnew.c (redraw_cursor_hook): Removed.
11563 (Fblink_cursor): Additional parameter on_p to set the cursor_off_p
11564 member of the selected window.
11565
11566 * xfaces.c (Fface_font): Added for compatibility with 20.2.
11567
11568 * xterm.c (x_y_to_hpos_vpos): Return null if not over text.
11569 Return glyph area under x/y.
11570 (note_mouse_highlight): Use x_y_to_hpos_vpos in its new form.
11571
11572 * keyboard.c (detect_input_pending_run_timers): Call gobble_input
11573 after redisplaying.
11574
115751998-07-05 Gerd Moellmann <gerd@gnu.org>
11576
11577 * xdisp.c (text_outside_line_unchanged_p): Test if changes
11578 are all outside of a line of text.
11579 (redisplay_internal): Use it.
11580
115811998-06-30 Gerd Moellmann <gerd@gnu.org>
11582
11583 * xdisp.c (next_element_from_buffer): After skipping over
11584 invisible text, look for the `glyph' property.
11585 (set_iterator_stop_pos): Ignore check positions in front
11586 of an iterator's current position.
11587
11588 * xterm.c (show_mouse_face): Don't act on rows that don't exist
11589 anymore or which are marked as not having valid contents.
11590
11591 * xfaces.c (Finternal_set_lisp_face_attribute): Don't free
11592 realized faces if new attribute value is equal to old value.
11593
115941998-06-29 Gerd Moellmann <gerd@gnu.org>
11595
11596 * xfaces.c (Finternal_make_lisp_face): Increment
11597 lface_id_to_name_size when lface_id_to_name is reallocated.
11598
115991998-06-27 Gerd Moellmann <gerd@gnu.org>
11600
11601 * xdisp.c (set_iterator_stop_pos): Compute initial stop_pos
11602 as minimum of endpos and overlay_pos.
11603 (load_overlay_strings): Set next_overlay_pos of iterator to
11604 -1 if we don't have to check for more overlay strings.
11605
116061998-05-09 Gerd Moellmann <gerd@gnu.org>
11607
11608 * xdisp.c (set_iterator_to_next_visible_line_start): Don't
11609 do anything if iterator is at ZV because scan_buffer doesn't
11610 work otherwise.
11611
11612 * xterm.c (x_encode_char): Inline it.
11613 (x_get_char_font_and_encoding): Simplified.
11614 (x_per_char_metric): Inline it.
11615
11616 * xterm.c (x_draw_glyph_string_relief): Use clipping.
11617
11618 * xdisp.c (get_next_display_element): Check for end of relief
11619 face moved here from next_element_from_buffer.
11620
11621 * xterm.c (x_produce_image_glyph): Add relief thickness.
11622 (x_produce_stretch_glyph): Ditto.
11623
116241998-05-08 Gerd Moellmann <gerd@gnu.org>
11625
11626 * xdisp.c (fill_iterator_from_glyph_property): Handle glyph
11627 property value (space :width WIDTH :height HEIGHT :ascent ASCENT).
11628
11629 * xterm.c (x_produce_stretch_glyph): Produce a stretch glyph
11630 from a glyph property.
11631 (x_produce_glyphs): Use it.
11632
11633 * xdisp.c (set_iterator_to_next): Handle next_element_from_stretch.
11634
427ec082 11635 * xterm.c (x_produce_image_glyph): Add to current_x only if
26901792
DL
11636 in text area.
11637 (x_produce_glyphs): Ditto.
11638
427ec082 11639 * xdisp.c (display_line): Compute row height from glyphs in
26901792
DL
11640 marginal areas.
11641
427ec082 11642 * xterm.c (x_draw_image_glyph_string_background): Draw
26901792 11643 background of an image glyph string.
427ec082 11644 (x_draw_glyph_string_bg_rect): Draw a rectangular region of
26901792
DL
11645 the background of a glyph string.
11646 (x_draw_image_glyph_string_foreground): Draw the foreground of
11647 an image glyph string.
11648 (x_inverted_image_mask): Return the inverted mask of an image.
11649
11650 * xfns.c (x_draw_image): Removed.
11651
11652 * dispextern.h (struct image_type): Remove drawing function.
11653
11654 * xfaces.c (load_face_colors): Swap colors if face is inverse.
11655
11656 * xdisp.c (get_next_display_element): In marginal areas, translate
11657 newlines, tabs, etc. like normal control characters.
11658
11659 * xfaces.c (Fface_color_supported_p): Transpose parameters frame
11660 and color.
11661 (free_realized_faces): Set frame garbaged.
11662
11663 * xfaces.c (syms_of_xfaces): Add defsubr for
11664 internal-lisp-face-attribute-values.
11665
116661998-05-07 Gerd Moellmann <gerd@gnu.org>
11667
11668 * xterm.c (x_produce_image_glyph): Don't add glyph if area is
11669 full.
11670 (x_produce_image_glyph): Set IT->nglyphs to 1.
11671 (x_draw_image_glyph_string): Use inverted mask to draw background.
11672
11673 * dispextern.h (struct image_type): Additional clipping rect
11674 parameters for drawing functions.
11675
427ec082 11676 * xterm.c (x_get_glyph_string_clip_rect): Get clip rect for
26901792
DL
11677 a glyph string.
11678 (x_draw_image_glyph_string): Use it and pass the rect to the
11679 image drawing function.
11680
11681 * xdisp.c (fill_iterator_from_glyph_property): Use position of
11682 first character with `glyph' property as image position. Set
11683 iterator back to that position as long as the image hasn't been
11684 consumed with set_iterator_to_next.
11685 (set_cursor_from_row): Accept when glyph with given position is
11686 not found in the row. Set cursor x to end of line in that case,
11687 so that we can hscroll.
11688 (redisplay_internal): Correct computation of delta by which
11689 positions have changed in redisplay optimization for cursor
11690 row of selected window.
11691
11692 * xdisp.c (display_line): Remove start_pos.
427ec082 11693 (display_line): Fix bug preventing display optimization for
26901792
DL
11694 cursor line of selected window.
11695 (next_element_from_buffer): Avoid XSETBUFFER, use it->w->buffer
11696 instead.
11697
11698 * dispnew.c (update_text_area): Use GLYPH_EQUAL_P.
11699 (update_text_area): Take glyph pixel width into account
11700 when trying to find a resync point.
11701 (row_equal_p): Compare glyphs in all areas.
11702
117031998-05-06 Gerd Moellmann <gerd@gnu.org>
11704
11705 * xterm.c (x_produce_glyphs): Don't add glyph if area is full.
11706
11707 * dispextern.h (struct glyph_row): Use unsigned hash value.
11708
11709 * xdisp.c (display_line): Simplified and made faster by setting
11710 the cursor with set_cursor_from_row.
11711 (set_cursor_from_row): Handle rows of desired matrix.
11712
117131998-05-05 Gerd Moellmann <gerd@gnu.org>
11714
11715 * xdisp.c (set_cursor_from_row): Don't put cursor on glyphs
11716 with type != CHAR_GLYPH.
11717 (fill_iterator_from_glyph_property): Return void. Set
11718 method to next_element_from_image.
11719 (next_element_from_image): Dummy function for delivering a
11720 single image id.
11721 (set_iterator_to_next): Add method next_element_from_image.
11722 (redisplay_window): When recentering, and cursor vpos is -1
11723 after display, assume middle of window is in first line displayed
11724 in window, and display again.
427ec082 11725 (fill_iterator_from_glyph_property): Assign image glyph
26901792
DL
11726 the position of the first character having the glyph property.
11727
11728 * dispextern.h (IMAGE_ASCENT): Compute ascent of image.
11729 * xfns.c (x_draw_image): Use it.
11730 * xterm.c (x_produce_image_glyph): Use it.
11731
11732 * xterm.c (x_produce_image_glyph): Set iterator's pixel_width.
11733
11734 * Makefile.in: Extraneous #define of LIBXPM removed.
11735
11736 * xterm.c (x_produce_glyphs): Produce a STRETCH_GLYPH for tabs.
427ec082 11737 (x_fill_stretch_glyph_string): Fill a glyph string from a
26901792
DL
11738 stretch glyph.
11739 (x_compute_glyph_string_overhangs): Compute overhangs only
11740 for text glyph strings.
11741 (x_draw_stretch_glyph_string): Draw a stretch glyph string.
11742 (x_draw_glyph_string): Call it.
11743
11744 * dispextern.h (glyph_type): Add STRETCH_GLYPH.
11745 (struct glyph): Add sub-structure for stretchable glyphs.
11746 (GLYPH_EQUAL_P): Compare glyph type and u.val.
11747
11748 * xdisp.c (get_overlay_arrow_glyph_row): Put face code into
11749 #ifdef HAVE_FACES.
11750
11751 * xterm.c (x_produce_glyphs): Use ASCII face for spaces of a TAB.
11752
11753 * xdisp.c (fill_iterator_from_glyph_property): Renamed from
11754 setup_iterator_from_glyph_property. Don't do it for terminal
11755 frames.
11756
11757 * xterm.c (x_produce_image_glyph): Produce glyph for image
11758 that can't be loaded.
11759
11760 * xfns.c (lookup_image): If image can't be loaded, set its
11761 width and height so that we can draw a rectangle.
11762 (x_draw_image): Draw a rectangle for images that don't have
11763 a pixmap.
11764 (make_image): Set hash value.
11765 (image_spec_equal_p): Use image_spec_value.
11766
11767 * xterm.c (expose_frame): Don't try to redraw if basic faces
11768 haven't benn realized yet.
427ec082 11769 (x_draw_image_glyph_string): Fill background only if image
26901792
DL
11770 is not as tall as row.
11771
117721998-05-04 Gerd Moellmann <gerd@gnu.org>
11773
11774 * Makefile.in (LIBXPM): If not already defined, define to -lXpm.
11775 (LIBX)[HAVE_X11]: Add LIBXPM.
11776
11777 * xfns.c (xpm_image_p): Implementation of image type functions
11778 for XPM.
11779 (xpm_load): Ditto.
11780
11781 * dispextern.h (struct image): Add mask pixmap for XPM.
11782
11783 * xfns.c (x_draw_image): Handle images with masks.
11784
11785 * configure.in: --with-xpm added. Code detecting -lXpm added.
11786
11787 * config.in: Add HAVE_XPM.
11788
11789 * xfns.c (xbm_draw): Removed.
11790 (x_draw_image): Default implementation for drawing images.
11791 (xbm_keyword_index): Remove XBM_DEPTH.
11792 (xbm_format): Remove `:depth'.
11793 (xbm_image_spec_from_file): Removed to reduce consing.
427ec082 11794 (xbm_load_image_from_file): Added for the same reason.
26901792 11795
427ec082 11796 * xterm.c (x_fill_image_glyph_string): Don't set ybase of
26901792
DL
11797 glyph string.
11798 (x_draw_image_glyph_string): Pass ybase to image draw function.
11799
11800 * xfns.c (make_image): Set default baseline.
11801
11802 * xterm.c (x_produce_image_glyph): Compute ascent of image
11803 from its height and baseline percentage.
11804
11805 * xfns.c (xbm_keyword_index): Add XBM_BASELINE.
11806 (xbm_format): Add description for `:baseline'.
11807 (xbm_image_spec_from_file): Add keywords from original spec to
11808 result.
11809 (xbm_load): Set baseline of image.
11810 (xbm_image_p): Check range for baseline.
11811
11812 * dispextern.h (struct image): Add member baseline.
11813
11814 * xdisp.c (dump_glyph_matrix): Handle image glyphs.
11815
11816 * term.c (produce_glyphs): Change assertion to allow DISP_IMAGE.
11817
11818 * xdisp.c (get_next_display_element): Do character translations
11819 only if delivering characters.
11820
118211998-05-03 Gerd Moellmann <gerd@gnu.org>
11822
427ec082 11823 * dispextern.h (ITERATOR_AT_END_OF_LINE_P): Test for
26901792
DL
11824 DISP_CHARACTER.
11825
11826 * xterm.c (x_produce_image_glyph): Poduce image glyphs.
11827 (x_produce_glyphs): Call x_produce_glyphs for DISP_IMAGE.
11828
118291998-05-02 Gerd Moellmann <gerd@gnu.org>
11830
11831 * xfns.c (prepare_image_for_display): Set image timestamp.
11832 (clear_image_cache): Clear images if image's timestamp +
11833 Vimage_eviction_seconds is > now.
11834 (syms_of_xfns): New variables image-eviction-seconds, and
11835 image-types.
11836 (add_image_format): Add to image-types.
11837 (xbm_load): Support new image spec format.
11838 (x_alloc_image_color): Allocate a color for an image.
11839
11840 * dispextern.h (struct image): Add timestamp.
11841
11842 * xfns.c (xbm_image_p): Allow bool-vectors, vectors of strings and
11843 vectors of bool-vectors.
11844 (xbm_lisp_object_from_file): Build new format image spec.
11845
118461998-05-01 Gerd Moellmann <gerd@gnu.org>
11847
11848 * xfaces.c (init_frame_faces): Initialize image cache.
11849 (free_frame_faces): Free it.
11850
11851 * xterm.c (x_delete_display): Don't free image cache.
11852
11853 * emacs.c (main): Call init_xfns.
11854
118551998-04-30 Gerd Moellmann <gerd@gnu.org>
11856
11857 * alloc.c (mark_object): Mark objects in image cache.
11858
427ec082 11859 * xfns.c (x_set_internal_border_width): Correct call to
26901792
DL
11860 widget_store_internal_border_width.
11861
11862 * widget.c (widget_store_internal_border): Return void.
11863
11864 * xfns.c (x_destroy_bitmap): Use xfree instead of free. Return
11865 void.
11866 (init_x_parm_symbols): Return void.
11867 (x_report_frame_params): Ditto.
11868 (x_set_border_pixel): Ditto.
11869 (syms_of_xfns): Ditto.
11870 (x_destroy_all_bitmaps): Use xfree instead of free.
11871
11872 * xterm.h (FRAME_X_IMAGE_CACHE): Access the image cache of a frame.
11873
11874 * xterm.c (x_term_init): Initialize image_cache of display info.
11875 (x_delete_display): Free image cache.
11876
11877 * xterm.h (struct x_display_info): Add image_cache.
11878
11879 * xfns.c (make_image_cache): Allocate a new image cache.
11880 (free_image_cache): Free an image cache.
11881 (make_image): Allocate an image.
11882 (free_image): Free an image.
11883
11884 * dispextern.h (struct image): Structure describing an image.
11885 (struct image_cache): Structure describing an image cache.
11886
118871998-04-29 Gerd Moellmann <gerd@gnu.org>
11888
11889 * xdisp.c (check_iterator_glyph_property): Return int. Value is
11890 non-zero if iterator is filled with something to return.
11891 (next_element_from_buffer): Immediately return if
11892 setup_iterator_from_glyph_prop has filled iterator with pixmap.
11893 (next_element_from_string): Likewise.
11894
11895 * xfaces.c (load_pixmap): Allow to pass null for W_PTR and H_PTR.
11896
11897 * dispextern.h (struct glyph): Add pixmap_id.
11898 (display_element_type): Add DISP_PIXMAP.
11899
11900 * xmenu.c (popup_get_selection): Use xmalloc/xfree instead of
11901 malloc/free.
11902
11903 * xfaces.c (clear_font_table): Free fonts not used by fontsets.
11904 (clear_face_cache): Call it.
11905
11906 * xterm.c (x_query_font): Don't look at empty font table slots.
11907 (x_compute_min_glyph_bounds): Likewise.
11908 (x_term_init): Initialize font_table to null.
11909 (x_load_font): Change allocation of font_info structures so
11910 that it is possible to free fonts.
11911
427ec082 11912 * xfns.c (Fx_close_connection): Use xfree instead of free.
26901792
DL
11913 Only free fonts from filled font table entries.
11914
11915 * xfaces.c (best_matching_font): Support use of scalable fonts.
11916 (Fface_scalable_fonts_mode): Toggle use of scalable fonts.
11917
11918 * xterm.h (struct x_display_info): Remove screen_dpi, add resx
11919 and resy.
11920 * xterm.c (x_term_init): Compute resx and resy.
11921
11922 * xfaces.c (split_font_name): Don't reject scalable fonts.
11923
427ec082 11924 * xterm.c (x_list_fonts): Set code exclusing scalable fonts
26901792
DL
11925 in #if 0.
11926
11927 * xfaces.c (xlfd_point_size): Return 0 for fonts whose real
11928 point size cannot be determined.
11929
11930 * xterm.h (FRAME_SMALLEST_CHAR_WIDTH): Return smallest character
11931 width over all fonts on a frame.
11932 (FRAME_SMALLEST_FONT_HEIGHT): Likewise for font height.
11933 * dispnew.c (adjust_frame_glyphs_for_window_redisplay): Use these
11934 macros.
11935
11936 * xterm.c (x_font_min_bounds): Moved here from xfaces.c.
11937 (x_compute_min_char_bounds): Formerly min_char_bounds in xfaces.c.
11938 (x_load_font): Use x_compute_min_char_bounds.
11939
11940 * xterm.h (struct x_display_info): New members smallest_char_width
11941 and smallest_font_height.
11942
119431998-04-28 Gerd Moellmann <gerd@gnu.org>
11944
11945 * dispextern.h (PREPARE_FACE_FOR_DISPLAY): Call function with
11946 the same name if GC of face is zero.
11947
11948 * dispextern.h (struct face): Member non_ascii_gc removed.
11949
11950 * xterm.c (x_get_char_font_and_encoding): Return face's font
427ec082 11951 for characters < 0177 in default face. Prepare face for
26901792
DL
11952 display before returning it.
11953 (x_produce_glyphs): Use it->charset.
11954 (x_get_char_font_and_encoding): Simplified.
11955 (x_encode_char): Remove parameter `font'.
11956
11957 * xfaces.c (choose_face_font): If registry from charset symbol
11958 doesn't contain a `-', make it a pattern by appending "*-*".
11959
11960 * xdisp.c (check_iterator_glyph_property): Adjust limit for
11961 glyph_check_pos computation to character boundary.
11962
119631998-04-27 Gerd Moellmann <gerd@gnu.org>
11964
11965 * fontset.h (FONT_INFO_FROM_ID): Return null if ID is invalid.
11966
11967 * xfaces.c (ascii_face_of_lisp_face): Get the id of the realized
11968 ASCII face for a given Lisp face id.
11969
11970 * xdisp.c (set_iterator_stop_pos): Take glyph_check_pos into
11971 account.
427ec082 11972 (reseat_iterator): Set glyph_check_pos. Handle case where
26901792
DL
11973 new position is < original position.
11974 (check_iterator_glyph_property): Handle glyph property in strings.
11975 (next_element_from_string): Call above function.
11976 (next_element_from_display_vector): Handle faces in glyphs.
11977 (get_next_display_element): Set face_id of glyphs for
11978 control chars to zero.
11979
11980 * Makefile.in (term.o): Add dependency on dispextern.h.
11981
11982 * xdisp.c (syms_of_xdisp): Add symbol `glyph'.
11983 (display_line): Handle marginal areas.
11984 (move_iterator_in_display_line_to): Likewise.
11985
11986 * xfaces.c (Finternal_make_lisp_face): Assign Lisp faces an id.
11987
11988 * xfaces.c (face_at_buffer_position): Don't merge with nil
11989 text property.
11990 (face_at_string_position): Ditto.
11991
11992 * dispextern.h (struct display_iterator): Use a stack of saved
11993 values instead of saving check positions etc. individually.
11994
11995 * xdisp.c (set_iterator_to_next): If end of Lisp string reached,
11996 maybe pop the iterator's stack.
11997 (save_iterator_settings): Push a value on iterator's stack.
11998 (get_overlay_strings_at_iterator_position): Use it.
11999 (restore_iterator_settings): Pop the stack.
12000 (set_iterator_to_next_overlay_string): Use it.
12001
12002 * xfaces.c (try_font_list): Use alternative font families.
12003
120041998-04-26 Gerd Moellmann <gerd@gnu.org>
12005
12006 * xfaces.c (Fset_face_font_sort_order): Set the order in which
12007 font selection matches fonts.
12008 (Fface_font_sort_order): Return the font sort order.
12009 (best_matching_font): Find best matching font based on sort order.
12010 (cmp_font_names): Sort by given sort order.
12011
12012 * dispextern.h (struct display_iterator): New member faces_p.
12013 * xdisp.c (init_iterator): Initialize it->faces_p.
12014 (compute_face_at_iterator_string_position): Use it.
12015 (compute_face_at_iterator_position): Use it.
12016 (init_iterator): Use it.
12017 (display_mode_line): Ditto.
12018
12019 * xdisp.c (get_next_display_element): Put code choosing a face
12020 when the charset changes in #ifdef HAVE_FACES.
12021
427ec082 12022 * dispextern.h (FACE_FOR_CHARSET): Replacement for function
26901792
DL
12023 lookup_face_for_charset.
12024
12025 * xfaces.c (free_font_names): Renamed from free_split_font_names.
12026 (free_all_realized_faces): Renamed from remove_all_realized_faces.
12027
120281998-04-25 Gerd Moellmann <gerd@gnu.org>
12029
12030 * xfaces.c (best_matching_font): Return the name of the best
12031 matching font in an array of font_name structures.
12032 (choose_face_font): Use it.
12033 (choose_face_fontset_font): Use it.
12034 (find_best_weight_font): If final font found has same weight as
12035 the font we started with, return the original font because it is a
12036 better match for the resolution of the display.
12037 (find_best_slant_font): Likewise.
12038 (merge_face_vector_with_property): Check more invalid attribute
12039 values.
12040 (lface_suitable_for_charset_p): Replaced by a macro with the same
12041 name in upper-case.
12042
120431998-04-24 Gerd Moellmann <gerd@gnu.org>
12044
12045 * dispextern.h (struct face): Member
12046 fontset_chosen_for_realization_p removed.
12047
12048 * xfaces.c (cache_face): If face->fontset >= 0, add face to the
12049 end of the collision list, so that we find more specific faces
12050 first.
12051 (lookup_face_for_charset): Look up a new face if face->fontset >=
12052 0, and charset != CHARSET_COMPOSITION.
12053
12054 * xfaces.c (split_font_name): Return zero if point size of font
12055 couldn't be computed.
12056 (realize_default_face): Use ASCII font of a fontset to determine
12057 font-related attributes of the default face.
12058 (face_fontset): Return fontset id for face family.
12059 (font_list): Additional parameter font_pattern. If non-nil,
12060 return fonts matching that pattern.
12061
120621998-04-23 Gerd Moellmann <gerd@gnu.org>
12063
12064 * xfaces.c (choose_face_fontset): If new fontset cannot be
12065 constructed, or fontset name cannot be split, return the id of the
12066 standard fontset.
12067
12068 * xterm.c (XTframe_up_to_date): Check that frame is an X frame.
12069 When Emacs starts, it may be called for the initial frame which
12070 isn't an X frame.
12071
12072 * dispextern.h (struct face): New members foreground_defaulted_p,
12073 background_defaulted_p.
12074 (struct face): Members `mask' and `cache' removed.
12075
12076 * xfaces.c (load_color): Set them.
12077 (free_face_colors): Check them.
427ec082 12078 (xlfd_point_size): Return -1 if resolution or point size of
26901792
DL
12079 font unknown.
12080
12081 * xfaces.c (free_font): Removed.
12082 (load_face_font_or_fontset): Renamed from load_font.
12083 (load_face_font_or_fontset): Use message2 instead of signalling.
12084 (load_color): Likewise.
12085 (load_pixmap): Likewise.
12086
12087 * xterm.h (struct x_display_info): Add screen_dpi.
12088 * xterm.c (x_term_init): Initialize it.
12089 * xfaces.c (xlfd_point_size): Use it.
12090 (split_font_name): Compute numeric XLFD_RESY.
427ec082 12091 (cmp_font_names): Make fonts with an y-resolution more
26901792
DL
12092 similar to that of the frame appear first in the result.
12093
12094 * xfaces.c (cache_face): If fontset_chosen_for_realization_p
12095 is set for the face to cache, add it to the end of the collision
12096 list.
12097 (try_font_list): If fonts for given family and registry cannot
12098 be found, first try to keep the registry, and choose a different
12099 family.
12100 (choose_face_font): Allow nfonts == 0.
12101 (try_font_list): Give up if no font matches given registry.
12102
121031998-04-22 Gerd Moellmann <gerd@gnu.org>
12104
12105 * xterm.c (x_get_char_font_and_encoding): Get font_info from
12106 font info id of the face.
12107
12108 * xfaces.c (load_font): Set font_info_id.
12109 (realize_face): Ditto.
12110
12111 * dispextern.h (struct face): Change member font_info to
12112 font_info_id.
12113
12114 * fontset.h (FONT_INFO_ID): Build an ID from a font_info pointer.
12115 (FONT_INFO_FROM_ID): Get a font_info pointer from an ID.
12116
12117 * xdisp.c (extend_face_to_end_of_line): If IT's current charset
12118 isn't ASCII, get the ASCII face before adding a space.
12119 (append_space): Likewise.
12120 (insert_left_trunc_glyphs): Initialize truncate_it's charset
12121 to -1 so that it will compute the right face for the truncation
12122 glyphs.
12123
12124 * xfaces.c (realize_face): Set
12125 face->fontset_chosen_for_realization_p.
12126 (lookup_face_for_charset): If fontset wasn't specified originally
12127 and new charset != CHARSET_COMPOSITION, get a new face for that
12128 charset.
12129
12130 * dispextern.h (struct face): New member
12131 fontset_chosen_for_realization_p_specified_p. Set to 1 when
12132 realize_face has chosen a fontset to display composite characters
12133 for a Lisp face not specifying a fontset.
12134
12135 * xdisp.c (extend_face_to_end_of_line): Move tests for default
12136 face and line already filled here. Don't do anything if current
12137 face hasn't a relief or has a background equal to the frame
12138 background.
12139
12140 * xfaces.c (split_font_name): Additional parameter numeric_p.
12141 Don't compute numeric values if it is non-zero.
12142 (choose_face_fontset): Call split_font_name with numeric_p == 0.
427ec082 12143 (choose_face_fontset): Print a message if fontset contains a
26901792
DL
12144 font whose name cannot be split into fields.
12145
121461998-04-21 Gerd Moellmann <gerd@gnu.org>
12147
427ec082 12148 * xfaces.c (try_font_list): Try to load a list of fonts,
26901792
DL
12149 possibly using less restrictive patterns.
12150 (choose_face_font): Use it.
12151
12152 * xterm.c (x_get_char_font_and_encoding): For charset !=
12153 CHARSET_ASCII use font_info of face if face hasn't a fontset set.
12154
12155 * dispextern.h (struct face): New member font_info.
12156
12157 * xfaces.c (load_font): Use FS_LOAD_FONT to load fonts for faces
12158 specifying a fontset as well as those not having a fontset.
12159 (free_font): Make it empty.
12160 (realize_face): Use changed load_font.
12161
12162 * xterm.c (x_get_char_font_and_encoding): If face doesn't
12163 fit for charset, get the right one.
12164
12165 * xfaces.c (load_font): Take frame and name parameter, return
12166 font.
12167 (free_font): Likewise.
12168 (split_font_name): Compute numeric values for height, swidth etc.
12169 (cmp_font_names): Use them.
12170 (find_best_width_font): Ditto.
12171 (find_best_height_font): Ditto.
12172 (find_best_weight_font): Ditto.
12173 (find_best_slant_font): Ditto.
12174 (lface_hash): Add weight, slant, swidth and relief to hash value.
12175 (lface_equal_p): Make it faster.
12176 (lface_from_symbol): Use assq_no_quit.
12177 (Fnote_default_face_changed): Removed.
12178 (cmp_font_names): Use strcmp instead of xstricmp.
12179 (face_charset_registries): Removed.
12180
121811998-04-20 Gerd Moellmann <gerd@gnu.org>
12182
12183 * frame.h (CHECK_FRAME): Give this macro a statement form.
12184 (CHECK_LIVE_FRAME): Ditto.
12185
12186 * xfaces.c (find_best_width_font): Find the best matching font
12187 for a given width.
12188 (find_best_height_font): Likewise for height.
12189 (find_best_weight_font): Likewise for weight.
12190 (find_best_slant_font): Likewise for slant.
12191 (choose_face_font): Use them.
12192 (get_lface_attributes): Always return frame-local face attrs.
427ec082 12193 (Finternal_merge_in_global_face): Merge local face with
26901792
DL
12194 global face attributes.
12195
12196 * xfaces.c (check_lface_attrs, check_lface): Check consistency of
12197 Lisp face attributes.
12198
121991998-04-19 Gerd Moellmann <gerd@gnu.org>
12200
12201 * xfaces.c (Finternal_set_lisp_face_attribute): Add :bold
12202 and :italic for compatibility.
12203 (Finternal_set_lisp_face_attribute_from_resource): Handle
427ec082 12204 :bold and :italic. Handle boolean resource values for
26901792
DL
12205 :underline and :italic.
12206
12207 * xfns.c (display_x_get_resource): Make it externally visible.
12208
12209 * xfaces.c (lface_from_symbol): Take a frame as parameter.
12210 If that frame is non-null, return the frame-local face.
12211 (Finternal_make_lisp_face): Additional frame argument.
12212 (lface_attributes): Get face attributes from global and frame-local
12213 definitions.
12214 (Finternal_lisp_face_equal_p): Additional frame argument.
12215 (merge_lisp_face_vector_with_property): Ditto.
12216 (Frealize_basic_faces): Removed.
12217 (Finternal_get_lisp_face_attribute): Additional frame argument.
12218 (Finternal_lisp_face_p): Ditto.
12219 (load_color) [MSDOS]: Removed because it isn't clear how
12220 to do this for MS-DOS.
12221
12222 * xfaces.c (lface_from_symbol): Get global face definition
12223 from face-global-alist.
12224
12225 * xfaces.c (Finternal_set_lisp_face_attribute): Allow `t'
12226 as values for :underline and :inverse-video.
12227 (Finternal_set_lisp_face_attribute): Allow nil values.
12228
122291998-04-17 Gerd Moellmann <gerd@gnu.org>
12230
12231 * xfaces.c (Finternal_make_lisp_face): Return Lisp face vector.
12232
12233 * xfaces.c (syms_of_xfaces): Add Vall_faces.
12234 (Finternal_make_lisp_face): Add new face to Vall_faces.
12235
12236 * xdisp.c (echo_area_display): Remove code recomputing faces.
12237 (redisplay_internal): Ditto.
12238 (init_iterator): Do it here.
12239
12240 * xfaces.c (choose_face_font): Check that swidth doesn't change
12241 for subusequent attributes.
12242 (xlfd_point_size): Return int.
12243
12244 * xdisp.c (redisplay_internal, echo_area-display): If realized
12245 faces have been cleared, call recompute_basic_faces.
12246
12247 * xfaces.c (recompute_basic_faces): Free realized faces. Reset
12248 face_attributes_changed_p.
427ec082 12249 (remove_all_realized_faces): Remove all realized faces on
26901792
DL
12250 all frames.
12251 (Finternal_set_lisp_face_attribute): Call remove_all_realized_faces.
12252
12253 * xdisp.c (redisplay_internal): If face attributes have been
12254 changed since the last redisplay, recompute basic faces.
12255 (echo_area_display): Ditto.
12256
12257 * xfaces.c (clear_face_gcs): Renamed from clear_realized_face_cache.
12258
12259 * xfaces.c (min_char_bounds): If face cache not yet present,
12260 don't try to get font dimensions from faces.
12261
12262 * xterm.c (x_frame_mode_line_height): If face cache not present
12263 set, return default height.
12264
12265 * alloc.c (mark_face_cache): Check for null faces. Correct
12266 index bug.
12267
12268 * dispextern.h (struct face): Renamed from struct rface. Member
12269 underline renamed underline_p. Make it a bit-field.
12270
12271 * xfaces.c (init_frame_faces): Allocate face cache.
12272 (free_frame_faces): Free face cache.
12273 (recompute_basic_faces): Realize basic faces only if face cache is
12274 allocated, i.e. after init_frame_faces has been called.
12275
12276 * frame.c (make_frame): Initialze face cache with null.
12277
12278 * xfaces.c (same_size_fonts): Removed.
12279
427ec082 12280 * xterm.c (x_set_glyph_string_gc): Add post-condition
26901792
DL
12281 s->gc != 0.
12282 (x_set_mouse_face_gc): Ditto.
12283 (x_set_mode_line_face_gc): Ditto.
12284
427ec082
SS
12285 * xfaces.c (realize_default_face): Return int. Value is
12286 zero if frame params don't contain enough information to
26901792
DL
12287 realize the default face.
12288 (realize_basic_faces): Ditto.
12289 (init_frame_faces): Realize basic faces.
12290
12291 * xfns.c (x_set_font): First store real font name in frame
12292 parameters, then call recompute_basic_faces.
12293
12294 * xfaces.c (recompute_basic_faces): Call realize_basic_faces.
12295
122961998-04-16 Gerd Moellmann <gerd@gnu.org>
12297
12298 * xfaces.c (syms_of_xfaces): Correct calls to defsubr.
12299
12300 * xfns.c (Fx_face_fixed_p): Removed.
12301 (Fx_list_fonts): Moved to xfaces.c.
12302
12303 * xfaces.c (compute_face_at_buffer_pos): Renamed to
12304 face_at_buffer_position. Parameter charset removed; always
12305 compute face for CHARSET_ASCII.
12306 (face_at_string_position): Renamed from
12307 compute_face_at_string_pos. Parameter charset removed; always
12308 compute for CHARSET_ASCII.
427ec082 12309 (lookup_face_for_charset): Take frame parameter instead of
26901792
DL
12310 face_cache.
12311 (lookup_face): Ditto.
12312 (compute_char_face): Renamed from compute_glyph_face.
12313
12314 * xdisp.c (init_iterator): Initialize charset member.
12315 (reseat_iterator_to_string): Ditto.
12316 (get_charset_at_buffer_position): Determine charset at
12317 buffer position in current_buffer.
12318 (reseat_iterator): Call above function.
12319 (compute_face_at_iterator_position): Call
12320 compute_face_at_buffer_pos.
12321 (compute_face_at_iterator_string_position): Call
12322 compute_face_at_string_pos.
12323 (get_face_from_id): Removed.
12324 (get_face_from_cursor_pos): Call compute_face_at_buffer_pos.
12325 Call get_charset_at_buffer_position.
12326 (reseat_iterator): Determine face if charset at pos differs
12327 from iterator's charset.
12328 (reseat_iterator_to_glyph_pos): Removed.
12329
12330 * xfaces.c (compute_face_at_bufpos): Remove parameter charset.
12331 Determine charset from buffer position.
12332 (compute_string_char_face): Renamed to compute_face_at_string_pos.
12333 (compute_face_at_bufpos): Renamed to compute_face_at_buffer_pos.
12334
12335 * dispextern.h (struct display_iterator): Add member charset.
12336
123371998-04-15 Gerd Moellmann <gerd@gnu.org>
12338
12339 * xfaces.c (compute_char_face): Removed.
12340
12341 * xdisp.c (get_overlay_arrow_glyph_row): Use compute_glyph_face
12342 with new parameter list.
12343
12344 * xfaces.c (region_face): Removed.
12345 (allocate_face): Removed.
12346 (copy_face): Ditto.
12347 (face_eql): Removed.
12348 (intern_face): Removed.
12349 (clear_face_cache): Removed.
12350 (load_font): Ditto.
12351 (unload_font): Ditto.
12352 (load_color): Ditto.
12353 (unload_color): Ditto.
12354 (new_computed_face): Ditto.
12355 (intern_computed_face): Ditto.
12356 (ensure_face_ready): Ditto.
12357 (merge_faces): Ditto.
12358 (compute_base_face): Ditto.
12359 (merge_face_list): Ditto.
12360 (Fmake_face_internal): Removed.
12361 (Fset_face_attribute_internal): Ditto.
12362 (face_name_id_number): Removed.
12363 (Fframe_face_alist): Ditto.
12364 (Fset_frame_face_alist): Ditto.
12365 (Finternal_next_face_id): Ditto.
12366
12367 * xterm.h (struct x_output): Remove computed_faces, and
12368 param_faces. Remove macros accessing them.
12369
12370 * xfaces.c: Entirely new face implementation added.
12371
123721998-04-11 Gerd Moellmann <gerd@gnu.org>
12373
12374 * dispextern.h (struct glyph_pos): Member `bufpos' renamed
12375 `charpos'.
12376
123771998-04-10 Gerd Moellmann <gerd@gnu.org>
12378
12379 * xterm.c (x_scroll_bar_move): Clear only regions not covered by
12380 scroll bar window to reduce flickering. Clear entire height.
12381
12382 * xdisp.c (move_iterator_vertically_backward): Set iterator's
12383 current_x and hpos to zero after moving to previous line
12384 start.
12385
123861998-04-03 Gerd Moellmann <gerd@gnu.org>
12387
12388 * frame.h (FRAME_FACE_CACHE): Access to a frame's face cache.
12389
12390 * xfaces.c (xlfd_point_size): Compute relative point size of
12391 fonts from font and frame resolution.
12392 (sort_fonts): New function to sort fonts, temporarily setting
12393 font_frame to the frame in effect.
12394 (xlfd_point_size): Take additional frame parameter to be able
12395 to get at the display's resolution.
12396
12397 * xterm.c (x_setup_relief_colors): Use WHITE_PIX_DEFAULT and
12398 BLACK_PIX_DEFAULT.
12399 (x_setup_relief_color): Use FRAME_X_SCREEN instead of default
12400 screen of display.
12401
124021998-03-31 Gerd Moellmann <gerd@gnu.org>
12403
12404 * xfaces.c (choose_face_fontset): Instantiate fontsets.
12405
12406 * fontset.h: Add external declarations for Vfontset_alias_alist
12407 and Vglobal_fontset_alist.
12408
12409 * xfaces.c (merge_lisp_face_vector_with_property): Simplified.
12410 (realize_default_face): If frame parameters contain an artificial
12411 font name naming a fontset, set the family of the default face to
12412 the fontset name given by the registry.
12413
12414 * Makefile.in (alloc.o): Add dependency to dispextern.h.
12415
124161998-03-22 Gerd Moellmann <gerd@gnu.org>
12417
12418 * alloc.c (mark_object): Add function prototype. Add cast to
12419 Lisp_Object pointer in call to mark_object for symbol names
12420 because this otherwise gives a warning from gcc 2.8.1.
12421 (mark_face_cache): Mark Lisp objects in realized faces.
12422
124231998-03-19 Gerd Moellmann <gerd@gnu.org>
12424
12425 * frame.h (struct frame): Add member face_cache.
12426
12427 * alloc.c (mark_object): Mark face cache.
12428 (mark_face_cache): Mark Lisp faces in face cache of frame.
12429
12430 * frame.c (make_frame): Initialize face_cache.
12431 (Fdelete_frame): Free it.
12432
124331998-03-18 Gerd Moellmann <gerd@gnu.org>
12434
12435 * xfaces.c: Very first skeleton of functions for face realization,
12436 face merging, face cache etc.
12437
12438 * dispextern.h (struct rface): Realized faces. Will replace
12439 struct face when tested.
12440 (struct face_cache): Realized face caches.
12441
12442 * xdisp.c (init_iterator): Initialize area member of display
12443 iterator.
12444
124451998-03-17 Gerd Moellmann <gerd@gnu.org>
12446
12447 * xterm.c (x_append_glyph): Use it->area to store glyphs.
12448
12449 * dispextern.h (struct display_iterator): New member area.
12450
12451 * xterm.c (note_overwritten_text_cursor): Note when the text
12452 cursor of a window is overwritten.
12453
12454 * xdisp.c (set_cursor_from_row): If PT is not found in the
12455 row, display the cursor at the start of the row.
12456
12457 * dispnew.c (direct_output_forward_char): Call
12458 set_cursor_from_row.
12459
12460 * xdisp.c (setup_iterator_overlay_strings_from_glyph_pos): If
12461 position is not in an overlay string, set iterator's position and
12462 method explicitly so.
427ec082 12463 (set_cursor_from_row): Correct cursor position calculation.
26901792
DL
12464 Make it externally visible.
12465 (redisplay_window): Call set_cursor_from_row so that there is only
12466 one place where the cursor position is calculated from a current
12467 row.
12468
12469 * dispextern.h (struct display_iterator): New member
12470 overlay_strings_at_end_processed_p.
12471
12472 * xdisp.c (check_iterator): Perform sanity checks on
12473 display_iterators.
12474 (next_element_from_buffer): Check for overlay strings at ZV.
12475
124761998-03-16 Gerd Moellmann <gerd@gnu.org>
12477
12478 * buffer.c (init_buffer_once): Add left_margin_width and
12479 right_margin_width to buffer_local_flags.
12480
12481 * dispnew.c (margin_glyphs_to_reserve): Function computing
12482 number of glyphs to reserve for a marginal area.
12483 (adjust_glyph_matrix): Call it.
12484 (adjust_frame_glyphs_for_frame_redisplay): Return if frame
12485 is not alive.
12486
12487 * window.c (Fset_window_margins): Allow floats.
12488
12489 * buffer.c (syms_of_buffer): Add buffer-local variables
12490 left-margin-width and right-margin-width. Add defaults
12491 default-left-margin-width and default-right-margin-width.
12492
12493 * buffer.h (struct buffer): New members left_margin_width
12494 and right_margin_width.
12495
12496 * window.c (Fset_window_margins): Make window the last and
12497 optional argument.
12498
12499 * xterm.c (x_draw_glyphs): Compute x-positions for rows with
12500 flag no_marginal_areas_p differently.
12501 (x_clear_end_of_line): Ditto.
12502 (x_draw_glyph_string_relief): Compute width of relief differently
12503 for rows with flag no_marginal_areas_p.
12504
12505 * dispnew.c (update_window_line): Update marginal areas only
12506 for rows that don't have no_marginal_areas_p set.
12507
12508 * xdisp.c (display_mode_line): Set row's flag no_marginal_areas_p.
12509 (display_menu_bar): Ditto.
12510
12511 * dispextern.h (struct glyph_row): New member no_marginal_areas_p.
12512
12513 * dispnew.c (adjust_glyph_matrix): Compute glyph pointers for
12514 marginal areas in window-based redisplay.
12515
12516 * dispextern.h (struct glyph_matrix): New members
12517 left_margin_glyphs and right_margin_glyphs.
12518
125191998-03-15 Gerd Moellmann <gerd@gnu.org>
12520
12521 * minibuf.c (read_minibuf_unwind): Return Lisp_Object.
12522
12523 * charset.c (non_ascii_char_to_string): Use char type parameters
12524 because the function is used that way from outside. Use unsigned
12525 char internally.
12526
12527 * window.c (change_window_height): Return void.
12528 (make_dummy_parent): Return void.
12529 (init_window_once): Return void.
12530 (syms_of_window): Ditto.
12531 (keys_of_window): Ditto.
12532 (delete_window): Correct return with and without value.
12533
12534 * buffer.c (record_buffer): Return void.
12535
12536 * marker.c (unchain_marker): Return void.
12537
12538 * window.c (unshow_buffer): Return void.
12539 (replace_window): Ditto.
12540 (delete_window): Ditto.
12541
12542 * term.c (delete_glyphs_hook): Void return type.
12543 (ring_bell_hook): Ditto.
12544 (set_terminal_window_hook): Ditto.
12545
12546 * sysdep.c (init_sigio): Return void.
12547
12548 * xterm.c (x_set_window_size): Return void.
12549 (x_calc_absolute_position): Ditto.
12550 (x_set_offset): Ditto.
12551 (x_focus_on_frame): Ditto.
12552 (x_unfocus_frame): Ditto.
12553 (x_make_frame_visible): Ditto.
12554 (x_make_frame_invisible): Ditto.
12555 (x_iconify_frame): Ditto.
12556 (x_destroy_window): Ditto.
12557 (x_wm_set_window_state): Ditto.
12558 (x_wm_set_icon_pixmap): Ditto.
12559 (x_wm_set_icon_position): Ditto.
12560 (x_initialize): Ditto.
12561 (x_error_quitter): Ditto.
12562 (x_destroy_window): Use xfree instead of free.
12563
12564 * keyboard.c (clear_waiting_for_input): Return void.
12565
12566 * xterm.c (x_wm_set_size_hint): Return void.
12567 (x_raise_frame): Ditto.
12568 (refreshicon): Ditto.
12569 (x_error_catcher): Ditto.
12570 (x_clear_errors): Ditto.
12571
12572 * keyboard.c (record_asynch_buffer_change): Return void.
12573
bb6677a8
GM
12574 The first line of the following paragraph was garbled for an
12575 unknown reason. It couldn't be fully reconstructed.
178c5d9c 12576
bb6677a8 12577 * xterm.c (XTread_socket, XTset_terminal_window): Ditto.
26901792
DL
12578 (x_lower_frame): Ditto.
12579 (x_scroll_bar_clear): Ditto.
12580 (XTflash): Add default case in switch for -Wall.
12581 (construct_mouse_click): Return Qnil.
12582 (cancel_mouse_face): Return void.
12583 (x_queue_event): Use xmalloc instead of malloc.
12584 (x_unqueue_events): Use xfree instead of free.
12585
12586 * ccl.c (ccl_driver): Return int.
12587
12588 * keyboard.c (stop_polling): Return void.
12589 (start_polling): Ditto.
12590
12591 * term.c (keys): Add braces in initializer list for -Wall.
12592
12593 * sysdep.c (tabs_safe_p): Return int.
12594 (init_baud_rate): Return void.
12595
12596 * xterm.c (x_draw_bitmap): Add default case.
12597 (x_setup_relief_colors): Use DefaultScreen instead of
12598 DefaultScreenOfDisplay.
12599 (x_delete_glyphs): Return void.
12600 (construct_menu_click): Put in #if 0 because it isn't called.
12601
12602 * xdisp.c (load_overlay_strings): Remove extraneous argument
12603 in call to qsort.
12604 (get_overlay_arrow_glyph_row): Add missing return value.
12605
12606 * window.c (set_window_height): Return void.
12607 (set_window_width): Ditto.
12608
12609 * sysdep.c (request_sigio): Return void.
12610 (unrequest_sigio): Ditto.
12611 (get_frame_size): Ditto.
12612
12613 * scroll.c (scroll_cost): Return int.
12614 (do_line_insertion_deletion_costs): Return void.
12615
12616 * frame.c (Fdelete_frame): Use xfree instead of free.
12617
12618 * fileio.c (report_file_error): Return void.
12619
12620 * dispnew.c: Make compilable with -Wall.
12621 * term.c: Ditto.
12622
12623 * charset.h (CHAR_LEN): Moved here from dispextern.h.
12624
126251998-03-14 Gerd Moellmann <gerd@gnu.org>
12626
12627 * xterm.c (x_scroll_bar_move): Clear under scroll bar if height is
12628 increased.
12629 (x_setup_relief_color): Free color only for appropriate visual
12630 classes.
12631
12632 * xterm.c (expose_window): Fix calculation of intersection of mode
12633 line rectangle with exposed rectangle.
12634
12635 * xdisp.c (redisplay_window): Don't do cursor movement based
12636 on current matrix if w->last_point is not valid.
12637
126381998-03-09 Gerd Moellmann <gerd@gnu.org>
12639
12640 * xterm.c (expose_line): Redraw mode line and menu lines
12641 differently because they reach into the scroll bar area.
12642
12643 * xdisp.c (redisplay_window): If redisplaying with same window
12644 start, don't accept cursor on partially visible line.
12645
126461998-03-08 Gerd Moellmann <gerd@gnu.org>
12647
12648 * xterm.c (x_set_glyph_string_clipping): Set clip rectangle
12649 for wider mode lines.
12650 (x_draw_glyph_string_relief): Use larger rectangle for mode lines.
12651
12652 * xdisp.c (init_iterator): Increase last_visible_x by vertical
12653 scroll bar width for mode lines.
12654
12655 * dispnew.c (allocate_matrices_for_window_redisplay): Include
12656 vertical scroll bar width in width calculation so that we can
12657 display mode lines wider.
12658
12659 * xdisp.c (redisplay_window): Restore buffers before returning
12660 when fonts have changed.
12661
12662 * dispnew.c (update_window): Mark invisible rows in the current
12663 matrix invalid.
12664
12665 * xdisp.c (try_window_id): Force update of first row displayed
12666 at window end.
12667 (dump_glyph_matrix): Extracted from Fdump_glyph_matrix.
12668
126691998-03-05 Gerd Moellmann <gerd@gnu.org>
12670
12671 * dispextern.h (struct glyph_row): Member max_ascent renamed
12672 ascent. Member max_descent replaced by height.
12673 (struct display_iterator): Member max_descent replaced by height.
12674 (MATRIX_ROW_PIXEL_HEIGHT): Removed.
12675
12676 * xterm.c (x_alloc_lighter_color): Don't free colors if visual
12677 class makes it unnecessary or dangerous.
12678
12679 * xdisp.c (redisplay_window): Case only point has changed, and
12680 point has moved forward. Move forward over overlay strings.
12681 (display_line): Don't set cursor if first glyph from PT is part of
12682 a continuation line.
12683
126841998-02-21 Gerd Moellmann <gerd@gnu.org>
12685
12686 * xdisp.c (start_display): When computing continuation lines
12687 width, add current_x to the continuation lines width because
12688 move_iterator_to will stop in front of the buffer position moved
12689 to.
12690
126911998-02-20 Gerd Moellmann <gerd@gnu.org>
12692
12693 * xdisp.c (redisplay_window): Don't try try_window_id if
12694 windows_or_buffers_changed.
12695
12696 * xterm.c (x_alloc_lighter_color): Try both factor and delta to
12697 determine a color.
12698 (x_setup_relief_color): Allocate/ change one relief.
12699 (x_setup_relief_colors): Call above function.
12700
12701 * xterm.h (struct relief): New structure type holding relief info:
12702 GCs, colors, and whether colors are allocated.
12703
427ec082 12704 * xterm.c (x_alloc_lighter_color): If multiplying by factor
26901792
DL
12705 produces the same color, try adding a delta to RGB values.
12706 (x_setup_relief_colors): Free color cells.
12707
427ec082 12708 * xterm.h (struct x_output): New members white_relief_pixel,
26901792
DL
12709 black_relief_pixel holding the foreground colors allocated for
12710 relief GCs. New members white_allocated_p, black_allocated_p.
12711
12712 * xterm.c (x_scroll_run): Don't set updated_window to null.
12713 This resets updated_window when called from scrolling_window.
12714
12715 * dispextern.h (scroll_run_hook): Renamed from line_dance_hook.
427ec082 12716
26901792
DL
12717 * xterm.c (x_scroll_run): Additional window parameter. Set
12718 and reset updated_window.
12719
12720 * dispnew.c (line_dance_hook): Additional window parameter.
12721
12722 * xdisp.c (try_window_reusing_current_matrix): Don't call
12723 update_window_begin/end here. The end function would display the
12724 cursor on a wrong position and the additional functionality of
12725 update_window_begin is not needed anyway. Just set
12726 updated_window.
12727 (try_window_id): Ditto.
12728
12729 * dispnew.c (Fblink_cursor): Remove call to detect_input_pending.
12730 Don't redraw cursor during redisplay.
12731
12732 * xterm.c (x_scroll_run): Renamed from do_line_dance.
12733
12734 * xdisp.c (redisplay_window): For window-based redisplay, alway
12735 try try_window_id.
12736
12737 * xterm.c (struct glyph_string): New member two_byte_p that is
12738 non-zero if 16-bit drawing functions must be used.
12739 (x_fill_composite_glyph_string): Set it.
12740 (x_fill_glyph_string): Set it.
12741 (x_draw_glyph_string_foreground): Use it.
12742 (x_draw_vertical_border): Make line 1 pixel less tall.
12743 (x_draw_row_bitmaps): Decrease width of area cleared on the left
12744 side by 1 pixel if window is not right-most hasn't vertical scroll
12745 bars.
12746 (x_draw_phys_cursor_glyph): Do nothing if phys_cursor.hpos is
12747 out of bounds.
12748 (x_draw_glyph_string_foreground): Use XDrawImageStringX if
12749 hl == DRAW_CURSOR.
12750
12751 * xdisp.c (start_display): Check that window start is at line
12752 start if GLYPH_DEBUG != 0.
12753
12754 * window.c (window_scroll_pixel_based): Move assertion to
12755 start_display.
12756
127571998-02-19 Gerd Moellmann <gerd@gnu.org>
12758
427ec082 12759 * xterm.c (x_redraw_cursor): Don't redraw the cursor if the
26901792
DL
12760 frame hasn't the focus.
12761
12762 * window.c (make_window): Initialize dy.
12763 (replace_window): Ditto.
12764
12765 * window.h (window): New member dy specifying the amount by which
12766 a window is scrolled "smoothly".
12767
12768 * xterm.c (x_set_glyph_string_clipping): Don't use glyph string's
427ec082 12769 y-position because it can be negative.
26901792
DL
12770 (x_draw_row_bitmaps): Don't clear with negative y-position like
12771 above.
12772 (x_clear_end_of_line): Same theme as above.
12773
12774 * xterm.c (x_alloc_nearest_color): Allocate a color or, if no
12775 exact match exists, the nearest existing color. Patterned after
12776 defined_color.
12777 (x_alloc_lighter_color): Allocate a color that is lighter or
12778 darker than a given color by a specified factor.
427ec082 12779 (x_setup_relief_colors): Set up relief line colors based on
26901792
DL
12780 the background color of a glyph string face.
12781 (x_draw_glyph_string_relief): Call x_setup_relief_colors.
12782
12783 * xfns.c (x_make_gc): Don't allocate relief GCs.
12784 * widget.c (create_frame_gcs): Don't allocate relief GCs.
12785 (setup_frame_gcs): Don't change relief GCs.
12786
12787 * xterm.h (struct x_output): New member relief_background giving
12788 the background pixel color for which relief GCs can be used.
12789 Set by x_setup_relief_colors.
12790
12791 * xterm.c (x_draw_glyph_string_relief): Draw relief differently
12792 for mode and menu lines.
12793
12794 * xdisp.c (set_next_iterator_stop_pos): No longer static.
12795
12796 * dispnew.c (direct_output_for_insert): Call
12797 set_next_iterator_stop_pos after having changed it2.endpos.
12798
127991998-02-17 Gerd Moellmann <gerd@gnu.org>
12800
12801 * dispnew.c (update_window): Work on selected_window, only.
12802
12803 * xterm.c (x_erase_phys_cursor): Return quickly if physical cursor
12804 hpos is >= number of glyphs in the cursor row.
12805
12806 * xdisp.c (try_window_id): Bug fix; update_window_end was not
12807 called.
12808
128091998-02-16 Gerd Moellmann <gerd@gnu.org>
12810
12811 * xdisp.c (init_iterator): Increase last_visible_x for mode lines
12812 and menu lines.
12813
12814 * dispnew.c (allocate_matrices_for_window_redisplay): Allocate
12815 enough glyphs to display a mode line or menu line which draws over
12816 flags areas.
12817
12818 * xterm.c (XTset_vertical_scroll_bar): Use
12819 WINDOW_DISPLAY_TEXT_AREA_PIXEL_HEIGHT instead of
12820 VERTICAL_SCROLL_BAR_PIXEL_HEIGHT.
427ec082 12821 (x_draw_glyphs): Draw over flags areas when drawing a mode line
26901792
DL
12822 or menu.
12823 (x_set_glyph_string_clipping): Set clipping differently if drawing
12824 a mode line or menu line.
12825
12826 * xterm.h (VERTICAL_SCROLL_BAR_PIXEL_HEIGHT): Removed.
12827
12828 * xterm.c (expose_line): Don't draw bitmaps for mode lines and
12829 menu lines.
12830 (x_scroll_bar_create): Don't clear flags areas.
12831 (x_draw_row_bitmaps): Clear visible row height, only.
12832
12833 * dispnew.c (Fblink_cursor): Moved here from xdisp.c.
12834
128351998-02-15 Gerd Moellmann <gerd@gnu.org>
12836
12837 * dispnew.c (direct_output_for_insert): When checking for tabs in
12838 the line, set it2.endpos to ZV.
427ec082 12839
26901792
DL
12840 * window.h (struct window): New member cursor_off_p.
12841 * xterm.c (x_redraw_cursor): Implementation of redraw_cursor_hook
12842 for X.
12843 * dispnew.c (redraw_cursor_hook): If non-null, function that can
12844 be called to display or erase the cursor.
12845 * xdisp.c (Fblink_cursor): Blink the cursor of a specified window
12846 or selected_window.
12847
12848 * xterm.h (text_cursor_kinds): Enumerators changed to uppercase.
12849
12850 * dispnew.c (update_window_line): Special handling of inverse
12851 lines in #if 0 removed.
12852
12853 * xterm.c (x_write_glyphs): Renamed from XTwrite_glyphs.
12854 (x_insert_glyphs): Renamed from XTinsert_glyphs.
12855 (x_clear_frame): Renamed from XTclear_frame.
12856 (x_clear_end_of_line): Renamed from XTclear_end_of_line.
12857 (x_ins_del_lines): Renamed from XTins_del_lines.
12858 (x_change_line_height): Renamed from XTchange_line_height.
12859 (x_delete_glyphs): Renamed from XTdelete_glyphs.
12860 (x_clear_cursor): Renamed from clear_cursor.
12861 (x_update_begin): Renamed from XTupdate_begin.
12862 (x_update_end): Renamed from XTupdate_end.
12863 (x_update_window_begin): Renamed from XTupdate_window_begin.
12864 (x_update_window_end): Renamed from XTupdate_window_end.
12865 (x_frame_mode_line_height): Renamed from XTframe_mode_line_height.
12866 (x_produce_glyphs): Renamed from XTproduce_glyphs.
12867 (x_produce_special_glyphs): Renamed from XTproduce_special_glyphs.
12868 (x_produce_special_glyphs): Implementation in #if 0 removed.
12869
12870 * xdisp.c (Fdump_redisplay_state): Display row's fill_line_p
12871 flag in the dump.
12872
12873 * dispnew.c (update_text_area): Handling of glyphs with pixel
12874 width zero removed. Decrement desired stop pos if desired row
12875 fills its line.
12876
12877 * xterm.c (x_fill_glyph_string): Handling of glyphs with pixel
12878 width zero removed.
12879 (BUILD_GLYPH_STRINGS): Set glyph string flag
12880 extends_to_end_of_line_p based on row's flag fill_line_p and face
12881 background and stipple. Make sure it works for composite characters.
12882
12883 * xdisp.c (extend_face_to_end_of_line): Set the glyph row flag
12884 fill_line_p. For window-based redisplay, add a space only if
12885 the row is empty so that we know the face to draw.
12886
12887 * dispextern.h (struct glyph_row): New flag fill_line_p. Non-zero
12888 means draw the face of the last glyph in the text area to the
12889 right end of the text area.
12890
12891 * xdisp.c (init_iterator): Show region in window mini-buffer
12892 window refers to.
12893
427ec082 12894 * dispextern.h (struct display_iterator): Redundant member
26901792
DL
12895 region_showing_p removed. Test for region_beg > 0 instead.
12896
12897 * dispnew.c (update_text_area): Clear to end of line if cursor is
12898 beyond the end of the desired line. Necessary because we don't
12899 have a phys_cursor_glyph with which to erase the cursor. We don't
12900 have one because this method of drawing a cursor doesn't work with
12901 lbearing/rbearing.
12902
12903 * xterm.c (XTinsert_glyphs): Block input.
12904
129051998-02-14 Gerd Moellmann <gerd@gnu.org>
12906
12907 * xterm.c (x_set_cursor_gc): Don't use cursor_gc for composite
12908 glyph strings.
12909 (x_draw_glyph_string_background): Fill background with background
12910 pixel for the first glyph of a composite character.
12911
12912 * xdisp.c (try_window): Change return type to int. Value is zero
12913 if fonts were loaded during redisplay.
12914 (redisplay_window): Return if fonts have been loaded during
12915 redisplay.
12916 (append_space): New parameter default_face_p.
12917
129181998-02-13 Gerd Moellmann <gerd@gnu.org>
12919
12920 * dispnew.c (adjust_glyph_matrix): In case of optimizing C-x 2,
12921 don't let a partially visible line in a current matrix stay
12922 enabled.
12923
129241998-02-09 Gerd Moellmann <gerd@gnu.org>
12925
12926 * minibuf.c (read_minibuf): Put access to minibuffer_prompt_length
12927 in #if PROMPT_IN_BUFFER.
12928
12929 * xdisp.c (display_line): If row ends in ZV, make the space
12930 that is added to place the cursor on it appear in default face.
12931
427ec082 12932 * xterm.c (expose_area): New function redrawing a single
26901792
DL
12933 glyph row area.
12934 (expose_line): Use it to redraw all areas of a row.
12935
12936 * dispextern.h (move_operation_enum): New enum
12937 move_operation_enum.
12938
12939 * window.c (window_scroll_pixel_based): Remove now unnecessary
12940 code that made sure that it->current_y doesn't become negative.
12941
12942 * xdisp.c (move_iterator_in_display_line_to): New parameter
12943 op. Special meaning of to_pos <= 0 and to_x < 0 removed.
12944 (move_iterator_to): Ditto.
12945
12946 * dispextern.h (struct glyph_matrix): New member window_width.
12947
12948 * dispnew.c (adjust_glyph_matrix): Set window_width. Optimize
12949 case of changing window height.
12950
12951 * xterm.c (x_draw_row_bitmaps): Don't clear vertical window
427ec082 12952 border to the left.
26901792
DL
12953
12954 * dispextern.h (struct glyph_row): Remove right_to_left_p. RMS
12955 says this aspect of Emacs is currently redesigned.
12956
12957 * xterm.c (x_clip_to_row): Subtract 1 from clip width if we
12958 have to draw a vertical border.
12959
12960 * window.c (window_scroll_pixel_based): When scrolling down by
12961 screen-fulls, make sure it.current_y doesn't get negative because
12962 this would confuse move_iterator_vertically.
12963
12964 * xdisp.c (move_iterator_vertically_backward): Bug fix for
12965 the case continuation lines are involved.
12966 (try_window_id): Don't set the cursor into scroll margins.
12967
129681998-02-08 Gerd Moellmann <gerd@gnu.org>
12969
12970 * xterm.c (x_append_glyph): Don't compute left_overhang and
12971 right_overhang.
12972 (XTproduce_glyphs): left_overhang and right_overhang removed.
12973 Set it->glyph_row->contains_overlapping_glyphs_p.
12974
12975 * xdisp.c (Fdump_redisplay_state): Output of glyph->left_overhang
12976 and right_overhang removed.
12977
12978 * dispextern.h (struct glyph_row): New member
12979 contains_overlapping_glyphs_p used to optimize glyph drawing.
12980 (struct display_iterator): left_overhang and right_overhang
12981 removed.
12982 (struct glyph): Ditto.
12983
12984 * xterm.c (x_draw_relief): Removed.
12985 (x_draw_bitmap): Renamed from draw_bitmap.
12986 (x_draw_glyphs): Completely new implementation of draw_glyphs
12987 capable of handling arbitrary lbearing and rbearing values.
12988 Several sub-functions not mentioned here.
12989
129901998-01-30 Gerd Moellmann <gerd@gnu.org>
12991
12992 * xterm.c (x_erase_phys_cursor): Clear area under the cursor only
427ec082 12993 if displaying hollow box cursor. draw_glyphs should handle
26901792
DL
12994 other cases.
12995 (draw_glyphs): Move start to the left and end to the right if they
427ec082 12996 overlap with previous or following characters.
26901792 12997 (draw_glyphs): If background is cleared for hl == DRAW_CURSOR,
427ec082 12998 make sure XDrawString uses function GXset. Otherwise the
26901792
DL
12999 character under the cursor would be invisible.
13000 (x_draw_bar_cursor): Don't draw over previous character if it
13001 has right_overhang.
13002
13003 * window.c (get_phys_cursor_glyph): Return the glyph under a
13004 window's physical cursor.
427ec082 13005
26901792
DL
13006 * xterm.c (x_draw_hollow_cursor): Use get_phys_cursor_glyph.
13007 (x_draw_bar_cursor): Ditto.
13008 (x_erase_phys_cursor): Ditto.
13009 (x_phys_cursor_in_rect_p): Ditto.
13010 (x_display_and_set_cursor): Remove reference to w->phys_cursor_glyph.
13011
13012 * window.c (make_window): Remove reference to phys_cursor_glyph.
13013 (replace_window): Ditto.
13014
13015 * window.h (struct window): Remove phys_cursor_glyph. There is
427ec082 13016 now always a glyph present for placing the cursor on it in
26901792
DL
13017 each glyph row, even at the end of a line.
13018
13019 * xdisp.c (append_space): Function to add a space to an iterators
13020 glyph row.
13021 (display_line): Add spaces at the end of lines that are used to
13022 place the cursor on them.
13023 (compute_line_metrics): If row consists of a space only that was
427ec082 13024 added to place the cursor on it, use that space's height as the
26901792
DL
13025 line height.
13026
130271998-01-29 Gerd Moellmann <gerd@gnu.org>
13028
13029 * xdisp.c (Fdump_redisplay_state): Dump left and right overhang of
13030 glyphs.
13031
130321998-01-28 Gerd Moellmann <gerd@gnu.org>
13033
13034 * xterm.c (x_append_glyph): Set overhang of glyph from iterator.
13035 (XTproduce_glyphs): Set it->left_overhang and it->right_overhang.
13036
13037 * dispextern.h (struct glyph): Add left_overhang and
427ec082 13038 right_overhang.
26901792
DL
13039 (struct display_iterator): Ditto.
13040
13041 * dispnew.c (direct_output_for_insert): Give up if newly inserted
13042 glyphs have different ascent or descent than original row.
13043
13044 * xdisp.c (compute_line_metrics): Compute row->max_ascent and
13045 row->max_descent only if unknown.
13046 (display_line): Compute row->max_ascent and row->max_descent.
13047 (display_string): Ditto.
13048
13049 * window.h (struct window): New members phys_cursor_ascent and
427ec082 13050 phys_cursor_descent.
26901792
DL
13051
13052 * xterm.c (x_phys_cursor_in_rect_p): Use them.
13053 (x_draw_hollow_cursor): Ditto.
13054 (x_erase_phys_cursor): Ditto.
13055 (x_display_and_set_cursor): Set them.
13056 (x_append_glyph): Don't set glyph members that were removed.
13057
13058 * dispextern.h (struct glyph): Members ascent, descent,
13059 contributes_to_line_height_p removed.
13060
130611998-01-25 Gerd Moellmann <gerd@gnu.org>
13062
13063 * dispextern.h (DEFAULT_FACE_ID, MODE_LINE_FACE_ID): Symbolic
13064 names for face ids of frame default face and mode line face.
13065
13066 * xdisp.c (compute_face_at_iterator_string_position): If
13067 displaying a mode line use MODE_LINE_FACE_ID instead of
13068 DEFAULT_FACE_ID.
13069
13070 * xdisp.c (reseat_iterator_to_string): Additional parameter start.
13071 (display_string): Ditto, additional parameter lisp_string.
13072 (display_line): Call display_string with Lisp mini-buffer prompt
13073 string.
13074 (display_menu_bar): Call display_string with Lisp string.
13075 (display_mode_element): Ditto.
13076 (next_element_from_string): Make it work for non-overlay Lisp
13077 strings with field width and precision.
13078
13079 * minibuf.c (minibuffer-prompt-in-buffer): Bound if
13080 PROMPT_IN_BUFFER.
13081
13082 * xfaces.c (compute_string_char_face): Fix face computation
13083 for overlay strings.
13084
13085 * xdisp.c (struct overlay_entry): Add member after_string_p.
13086 (load_overlay_strings): Simplify.
13087
13088 * window.c (delete_window): Defer glyph matrix adjustment.
13089 (Fsplit_window): Ditto.
13090 (change_window_height): Ditto.
13091 (Fset_window_configuration): Ditto.
13092 (Fset_window_margins): Ditto.
13093 * frame.c (set_menu_bar_lines): Ditto.
13094 (Fmake_terminal_frame): Ditto.
13095 * dispnew.c (change_frame_size_1): Ditto.
13096
130971998-01-24 Gerd Moellmann <gerd@gnu.org>
13098
13099 * xdisp.c (move_iterator_vertically_backward): Change algorithm.
13100
427ec082 13101 * dispnew.c (direct_output_for_insert): Give up if start
26901792
DL
13102 position has overlay strings.
13103
13104 * xdisp.c (display_line): Don't set cursor if row ends in middle
13105 of overlay string.
13106 (Fdump_redisplay_state): Print complete row start and end
13107 position.
13108 (redisplay_window): Cursor movement when matrix hasn't changed---
13109 if PT < last_point, maybe move forward if row ends at PT and
13110 in middle of char.
13111
13112 * minibuf.c (read_minibuf): Save the value of
13113 minibuffer_prompt_length in minibuf_save_list.
13114 (read_minibuf_unwind): Restore minibuffer_prompt_length.
13115
13116 * xdisp.c (redisplay_window): Add assertion for cursor movement
13117 case, PT < last_point.
13118 (move_iterator_in_display_line_to): If to_pos specified, move
13119 over before-strings.
13120
13121 * dispextern.h (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Test
13122 start.string_index > 0.
13123
13124 * xdisp.c (redisplay_internal): Adjust glyphs if fonts_changed_p
13125 is set. Retry redisplay if fonts_changed_p is set before update.
13126
13127 * xterm.c (x_load_font): Set fonts_changed_p.
13128
13129 * xfaces.c (Fset_face_attribute_internal): Set fonts_changed_p.
13130
13131 * dispnew.c (adjust_glyphs_for_font_change): Removed.
13132
13133 * xdisp.c (try_window): Check fonts_changed_p.
13134 (try_window_reusing_current_matrix): Ditto.
13135 (try_window_id): Ditto.
13136
13137 * dispnew.c (adjust_glyphs_for_font_change): Set fonts_changed_p.
13138 (fonts_changed_p): Flag indicating a font change since the last
13139 glyph matrix adjustment.
13140
13141 * xterm.c (x_per_char_metric): Use font->max_bounds as
13142 char metric of the font's default char if the default char
13143 hasn't per char metric itself.
13144
13145 * xfaces.c (Fset_face_attribute_internal): Adjust glyphs
13146 for font change.
13147 (min_char_bounds): Check face->font != NULL.
427ec082 13148 (font_min_bounds): Return minimum font metrics. Capture the
26901792
DL
13149 case of invalid min_bounds contents.
13150 (min_char_bounds): Call font_min_bounds.
13151
131521998-01-22 Gerd Moellmann <gerd@gnu.org>
13153
13154 * xdisp.c (start_display): Don't set it->prompt_width if
13155 PROMPT_IN_BUFFER.
13156 (move_iterator_in_display_line_to): Ditto.
13157 (display_line): Don't display prompt via display_string if
13158 PROMPT_IN_BUFFER.
13159
13160 * minibuf.c (Fminibuffer_prompt_width): Return value from
13161 current_buffer if PROMPT_IN_BUFFER.
427ec082 13162 (read_minibuf): If PROMPT_IN_BUFFER, insert prompt into
26901792
DL
13163 mini-buffer and make it read-only.
13164 (Fminibuffer_complete_and_exit): If PROMPT_IN_BUFFER, use
13165 minibuffer_prompt_length instead of BEGV.
13166 (Fminibuffer_complete_word): Ditto.
13167 (Fminibuffer_complete_word): Ditto.
13168
13169 * insdel.c (del_range_1): If PROMPT_IN_BUFFER, and start position
13170 is less than mini-buffer prompt width, use prompt width as start.
13171
13172 * editfns.c (make_buffer_string): If PROMPT_IN_BUFFER, and start
13173 position is less than mini-buffer prompt width, use the prompt
13174 width as start.
13175
13176 * cmds.c (Fbeginning_of_line): If PROMPT_IN_BUFFER, set point to
13177 end of prompt if applied to a mini-buffer and BEG reached.
13178
131791998-01-21 Gerd Moellmann <gerd@gnu.org>
13180
13181 * editfns.c (make_buffer_string): If PROMPT_IN_BUFFER, add prompt
13182 length to start position.
13183
13184 * buffer.c (Fget_buffer_create): Initialize
13185 minibuffer_prompt_length.
13186 (Fmake_indirect_buffer): Ditto.
13187 (Fkill_buffer): Ditto.
13188
13189 * buffer.h (struct buffer): Add member minibuffer_prompt_length
13190 if PROMPT_IN_BUFFER.
13191
131921998-01-19 Gerd Moellmann <gerd@gnu.org>
13193
13194 * xdisp.c (next_element_from_string): Make it work for arbitrary
13195 Lisp strings.
13196 (set_iterator_to_next): Advance to next overlay string only
13197 if it->string is an overlay string.
13198
13199 * dispextern.h (struct display_iterator):
13200 next_ovstr_face_check_pos renamed next_string_face_check_pos.
13201
427ec082 13202 * xfaces.c (compute_string_char_face): Compute face for
26901792
DL
13203 arbitrary Lisp string. Renamed from compute_overlay_string_char_face.
13204
13205 * xdisp.c (next_element_from_string): Renamed from
13206 next_element_from_overlay_string.
427ec082 13207 (compute_face_at_iterator_string_position): Renamed from
26901792
DL
13208 compute_face_at_iterator_overlay_string_position.
13209
13210 * dispextern.h (struct display_iterator): Member overlay_string
13211 renamed string.
13212
13213 * xdisp.c (next_element_from_c_string): Renamed from
13214 next_element_from_string.
13215
13216 * dispextern.h (struct glyph_pos): Reversed meaning of
13217 overlay_string_index and string_index.
13218
13219 * xdisp.c (next_element_from_overlay_string): Fix bug that made
13220 this function always return the first character of an overlay
13221 string.
13222
132231998-01-18 Gerd Moellmann <gerd@gnu.org>
13224
13225 * xdisp.c (reseat_iterator): Set next_invisible_check_pos only if
13226 forced or new pos > next_invisible_check_pos.
13227 (redisplay_window): Don't try same window start if PT < window
13228 start.
13229 (move_iterator_vertically): Bug fix satisfying post-condition
13230 when ZV is reached and no newline in front.
13231 (move_iterator_vertically_backward): New implementation.
13232 (move_iterator_vertically_backward): Bug fixes.
13233
13234 * xterm.c (XTmouse_position): Change call to min_char_bounds.
13235 * dispnew.c (adjust_frame_glyphs_for_window_redisplay): Ditto.
13236 (adjust_glyphs_for_font_change): Always adjust.
13237
13238 * dispnew.c (struct dim): Use int.
13239
13240 * xfaces.c (Fset_face_attribute_internal): Set face->font_name;
13241 (allocate_face): Initialize it.
13242 (load_font): Use XLoadQueryFont again instead of x_load_font.
13243 (unload_font): Use XFreeFont again.
13244 (min_char_bounds): Iterate over fonts of faces. Use frame's
13245 font sizes as default. Remove parameter except_last_font_p.
13246
13247 * dispextern.h (struct face): Add font_name.
13248
132491998-01-17 Gerd Moellmann <gerd@gnu.org>
13250
13251 * xdisp.c (move_iterator_vertically): Check post-condition. Move
13252 to start of line if ending at ZV and no newline in front.
13253 (move_iterator_to): If to_y specified, always first move to x = 0,
13254 so that move stops at line start instead of line end. This is
13255 probably what callers would expect to happen.
13256
13257 * window.c (window_scroll_pixel_based): Pixel-based scrolling that
13258 can handle different line heights.
13259 (window_scroll_line_based): Formerly window_scroll.
13260 (window_scroll): Call both.
13261
13262 * xdisp.c (start_display): Exclude code if PROMPT_IN_BUFFER.
13263 (move_iterator_in_display_line_to): Ditto.
13264 (display_line): Ditto.
13265
13266 * minibuf.c (read_minibuf): Conditionally insert prompt into
13267 buffer instead of handling prompts specially. Change other
13268 functions accordingly. All such code is in #if PROMPT_IN_BUFFER.
13269
13270 * dispnew.c (adjust_glyph_matrix): Optimize the handling of C-x 2,
13271 upper window. Optimize calls to xrealloc if same width.
13272
13273 * xdisp.c (redisplay_window): Don't use
13274 try_window_reusing_current_matrix if window scroll functions
13275 exist.
13276
13277 * dispextern.h (struct display_iterator): Member
13278 redisplay_end_trigger_p removed.
13279
13280 * dispextern.h (WINDOW_DISPLAY_PIXEL_HEIGHT_WITHOUT_MODE_LINE):
13281 Renamed to WINDOW_DISPLAY_TEXT_AREA_PIXEL_HEIGHT.
13282
132831998-01-16 Gerd Moellmann <gerd@gnu.org>
13284
13285 * xdisp.c (move_iterator_by_lines): Optimize for truncate-lines
13286 nil. Optimize truncate-lines t and moving backward.
13287 (move_iterator_to_previous_visible_line_start): Contains the heart
13288 of the previous set_iterator_to_previous_visible_line_end. Don't
13289 reseat the iterator. Used by move_iterator_by_lines.
13290 (set_iterator_to_previous_visible_line_start): Call function
13291 above.
13292 (move_iterator_in_display_line_to): Check TO_POS before doing
13293 anything else. Otherwise to_pos == PT would move to x of PT+1.
13294
13295 * indent.c (Fvertical_motion): Use display_iterator.
13296
13297 * xdisp.c (move_iterator_by_lines): New function moving by screen
13298 lines.
13299 (redisplay_window): Use it.
13300 (move_iterator_to): Correct branch of to_vpos specified.
13301 (move_iterator_vertically_backward): Increment nlines after having
13302 backed up over some lines because the last line was not backed up
13303 over.
13304 (move_iterator_via_matrix): Look for it->pos in the matrix, and
13305 calculate it->vpos and it->current_y relative to this row.
427ec082 13306 (move_iterator_via_matrix): Set in #if 0. It doesn't seem to
26901792
DL
13307 have a big effect and it is complex.
13308 (move_iterator_to): Call to move_iterator_via_matrix in #if 0.
13309
133101998-01-15 Gerd Moellmann <gerd@gnu.org>
13311
13312 * xterm.c (x_draw_relief): Simplify drawing and draw so that lines
13313 join nicely. Lines with widths > 2 don't join nicely under X.
13314 * xterm.h (struct x_output): Remove member relief_gc_line_width.
13315 * widget.c (setup_frame_gcs): Initialize relief GC's to line
13316 width 1; remove references to relief_gc_line_width.
13317 * xfns.c (x_make_gc): Ditto.
13318
13319 * xfaces.c (Fset_face_attribute_internal): Set frame garbaged
13320 if relief changes.
13321 (Fset_face_attribute_internal): Use XINT instead of XFASTINT
13322 to get a relief because they can be negative.
13323
13324 * xterm.c (x_draw_relief): Correct line drawing positions. Pixel
13325 positions are for the middle of lines under X.
13326
13327 * xdisp.c (try_window_id): Always search for the cursor by setting
13328 w->cursor.vpos = -1. Search in unchanged rows at the top and
13329 bottom if cursor not found in displayed lines.
427ec082 13330 (display_mode_line): First extend face, then set right shadow
26901792
DL
13331 flag. Otherwise the wrong glyph gets the right shadow.
13332
13333 * dispnew.c (direct_output_for_insert): Give up if line contains
13334 a tab. The number of spaces inserted for a tab changes if we
13335 insert glyphs in front of it.
13336
13337 * xterm.c (x_list_fonts): Changes undone because the Lisp
13338 implementation for make-face-smaller, make-face-larger, and
13339 make-face-fixed can do without them.
13340
13341 * xfns.c (Fx_list_fonts): Original x-list-fonts from x-list-font.c
13342 inserted.
13343
13344 * xdisp.c (try_window_id): First compute beg_unchanged, then
13345 compare with window start pos.
13346
13347 * xfns.c (Fx_face_fixed_p): Determine whether a face has a
13348 fixed-width font.
13349 (syms_of_xfns): defsubr for x-face-fixed-p.
13350
13351 * xterm.c (x_erase_phys_cursor): If row containing cursor is not
13352 enabled, don't do anything because this row will be newly drawn
13353 anyway and because we can additionally no longer determine the row
13354 height.
13355
13356 * xdisp.c (display_line): Bug fix cursor positioning.
13357
13358 * xfns.c (x-list-fonts): Copied from x-list-fonts.c; #include
13359 removed. x-list-fonts.c is now obsolete.
13360 (Qfixed, Qvariable): Moved here from xfaces.c.
13361
133621998-01-14 Gerd Moellmann <gerd@gnu.org>
13363
13364 * xdisp.c (display_line): Set row->ends_at_zv_p based on
13365 FETCH_BYTE for truncated lines.
13366 (display_line): Set cursor differently.
13367 (display_line): Fixed bug setting last_pos_on_this_line wrong
13368 for truncated lines.
13369
13370 * dispnew.c (adjust_glyph_matrix): Always adjust for frame-based
13371 redisplay.
13372
13373 * window.c (Fsplit_window): Adjust glyphs before setting buffer.
13374
13375 * dispnew.c (adjust_frame_glyphs_for_window_redisplay): Add
13376 assertion that character dimensions are not zero.
13377
13378 * xterm.c (x_load_font): adjust_glyphs_for_font_change while
13379 input is blocked.
13380
13381 * xdisp.c (decode_mode_spec): Faster implementation of line number
13382 display.
13383
13384 * xterm.c (x_draw_row_bitmaps): Clear flags area before drawing
13385 bitmaps if bitmaps don't fill the entire area.
13386 (draw_bitmap): Draw bitmaps horizontally centered in flags area.
13387
427ec082 13388 * xterm.h (FRAME_FLAGS_BITMAP_HEIGHT): Macro giving the
26901792
DL
13389 pixel height of flags bitmaps.
13390
13391 * frame.h (FRAME_FLAGS_AREA_COLS): Use FRAME_X_FLAGS_AREA_COLS.
13392 (FRAME_FLAGS_AREA_WIDTH): Ditto.
13393
13394 * xterm.h (FRAME_FLAGS_BITMAP_WIDTH): Macro giving the width
13395 in pixels of a flags area of a frame.
13396 (FRAME_X_FLAGS_AREA_WIDTH): Removed.
13397 (FRAME_X_FLAGS_AREA_COLS): Macro giving the number of columns
13398 occupied by a flags area.
13399
134001998-01-13 Gerd Moellmann <gerd@gnu.org>
13401
13402 * xdisp.c (hscroll_window_tree): Remove test for non-nil
13403 window_end_valid.
13404
13405 * dispnew.c (adjust_glyph_matrix): Check redisplay_p if
13406 GLYPH_DEBUG != 0.
13407
13408 * xdisp.c (display_line): Correct wrong calculation of row->x for
13409 the case of nglyphs == 1.
13410 (hscroll_window_tree): Renamed from hscroll_windows.
13411 (hscroll_windows): New function calling hscroll_window_tree that
13412 clears desired matrices on a frame when hscroll has been changed.
13413 (redisplay_p): Global flag set during redisplay.
13414 (redisplay_internal): Set and clear redisplay_p.
13415
13416 * xfaces.c (min_char_bounds): Add assertion that width and height
13417 are not zero at the end. Initialize *height and *width to -1,
13418 instead of using BITS_PER_SHORT. If font has min_bounds.width
13419 zero, use its max_bounds.width.
13420
13421 * x-list-font.c (Fx_list_fonts): Check INTEGERP or FLOATP for
13422 width and height.
13423
134241998-01-12 Gerd Moellmann <gerd@acm.org>
13425
13426 * dispnew.c (adjust_glyph_matrix): Do nothing if sizes haven't
13427 changed. Don't clear desired matrices.
13428
13429 * xdisp.c (hscroll_windows): Compute pt after setting
13430 current_buffer.
13431 (redisplay_window): Don't do cursor movement based on current
13432 matrix if just_this_one_p is zero.
13433
13434 * x-list-font.c (Fx_list_fonts): Additional parameter fixed.
427ec082 13435 specifying that fixed-width, variable-width fonts or both
26901792
DL
13436 should be returned.
13437
13438 * xfaces.c (Qfixed, Qvariable): Symbols for use by x-list-fonts.
13439 (syms_of_xfaces): Initialize them.
13440
13441 * xterm.c (x_list_fonts): Include auto-scaled fonts. Extend
13442 cached information.
13443
134441998-01-11 Gerd Moellmann <gerd@acm.org>
13445
13446 * xdisp.c (display_mode_line): Extend face to end of line.
13447
13448 * xdisp.c (echo_area_display): Don't call display_string with
13449 echo_area_glyphs_length == 0 which would mean infinite precision.
13450 (redisplay_internal): Adjust window_end_vpos if necessary.
13451
134521998-01-07 Gerd Moellmann <gerd@acm.org>
13453
13454 * xdisp.c (display_line): Set it->ends_at_zv_p differently.
13455
134561998-01-05 Gerd Moellmann <gerd@acm.org>
13457
13458 * xdisp.c (get_row_start_continuation_line_width): Removed.
13459 (init_iterator_to_row_start): Set it.current_x from row.
13460 (try_window_id): Set it.continuation_lines_width directly from
13461 row.
13462
13463 * xdisp.c (hscroll_windows): Use w->pointm if window is not
13464 selected_window.
13465 (hscroll_windows): Center cursor in window.
13466 (hscroll_windows): Call move_iterator_in_display_line_to.
13467
134681998-01-04 Gerd Moellmann <gerd@acm.org>
13469
13470 * xdisp.c (hscroll_windows): Check hscroll < 0.
13471 (redisplay_window): Allow quick cursor movement if overlay arrow
13472 but frame uses window-based redisplay.
13473 (display_line): Take special case for nglyphs == 1 out of #if 0.
13474 (display_line): Set row->ends_at_zv_p after the loop displaying
13475 glyphs because ZV can be in truncated text.
13476 (hscroll_windows): Use init_iterator_to_row_start.
13477
13478 * dispnew.c (scrolling_window): Calculation of overlapping
13479 runs fixed.
13480 (row_equal_p): Compare continued_p and continuation_line_p.
13481
134821998-01-02 Gerd Moellmann <gerd@acm.org>
13483
13484 * xterm.c (x_get_mode_line_face_gc): Renamed from
13485 x_get_modeline_face_gc.
13486
13487 * xdisp.c (TEXT_PROP_DISTANCE_LIMIT): Max. distance from current
13488 buffer position to look for text properties.
13489 (get_face_from_cursor_pos): Use it.
13490 (compute_face_at_iterator_position): Use it.
13491 (next_element_from_buffer): Use it.
13492
13493 * dispnew.c (scrolling_window): Decrement run's y-position
13494 when extending it backwards.
13495
13496 * xterm.c (do_line_dance): Don't ever copy more than window height.
13497
134981998-01-01 Gerd Moellmann <gerd@acm.org>
13499
13500 * xdisp.c (redisplay_window): Cursor motion in unchanged
13501 matrix---use MATRIX_ROW_.*_IN_MIDDLE_OF_CHAR_P.
13502 (init_iterator_to_next_row_start): Special handling of lines
13503 ending in middle of char removed.
13504 (hscroll_windows): Hscroll windows only if window_end_valid is not
13505 nil.
13506 (try_window_reusing_current_matrix): Call hscroll_windows.
13507 (init_iterator_to_row_start): Initialize iterator for display
13508 starting at a position given by a glyph_row->start.
13509 (redisplay_window): Don't use vmotion because it gives wrong
13510 results if lines are continued and variable width fonts are used.
13511
427ec082 13512 * dispextern.h (struct glyph_pos): New member dpvec_index.
26901792
DL
13513 (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P): Test if row ends in the
13514 the middle of a character.
427ec082 13515 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Test if row starts in
26901792
DL
13516 the middle of a character.
13517
13518 * xdisp.c (set_iterator_to_next): Increment it->dpvec_index, reset
13519 it.
13520 (next_element_from_display_vector): Use it->dpvec_index.
13521 (reseat_iterator): Reset it.
13522 (init_iterator): Reset it.
13523 (setup_iterator_dpvec_from_glyph_pos): Set up it->dpvec and
13524 it->pos.dpvec_index from a glyph_pos structure.
13525 (init_iterator_from_glyph_pos): Call the function above.
13526 (reseat_iterator_to_glyph_pos): Ditto.
13527
13528 * dispnew.c (direct_output_forward_char): Don't use this method at
13529 overlay boundaries or near invisible text.
13530 (direct_output_forward_char): Step through glyph row to find
13531 cursor position.
13532
427ec082 13533 * xterm.c (x_get_cursor_gc): Don't return cursor_gc for font ==
26901792
DL
13534 frame font if line height differs from font height.
13535
13536 * xdisp.c (set_iterator_to_next): Renamed from
13537 move_iterator_forward to avoid confusion with other move_.*
13538 functions.
13539
13540 * dispextern.h (FACE_RELIEF_P): Renamed from FACE_3D_P.
13541
135421997-12-31 Gerd Moellmann <gerd@acm.org>
13543
13544 * xterm.c (x_get_cursor_gc): Renamed from x_cursor_gc to use the
13545 same naming convention as for other GC functions.
13546 (draw_glyphs): Don't fill background when drawing a cursor and
13547 font height is less than line height.
13548
135491997-12-30 Gerd Moellmann <gerd@acm.org>
13550
13551 * xdisp.c (init_display_iterator.*): Renamed to shorter names
13552 init_iterator_.*.
13553
13554 * xdisp.c (move_iterator_forward): Restore it->len from
13555 it->dpvec_char_len if dpend reached.
13556 (get_next_display_element): Don't consume translated char
13557 prematurely.
13558 (display_line): Don't set this_.* variables if row is continued.
13559 (start_display): Move to start of continuation line if ending
13560 up at end of continued line.
13561
13562 * dispextern.h (struct display_iterator): New member dpvec_char_len.
13563
13564 * xdisp.c (move_iterator_in_display_line_to): Check TO_POS after
13565 checking TO_X and continuation lines.
13566 (get_last_unchanged_at_beg_row): If first_changed_pos is the end
13567 of a continued line, don't consider this line as unchanged because
13568 it may no longer be continued.
13569
135701997-12-29 Gerd Moellmann <gerd@acm.org>
13571
13572 * xdisp.c (try_window_id): Catch the case that moving over
13573 continuation lines moves first_unchanged_at_end_row to a row not
13574 displaying text.
13575
13576 * dispextern.h (struct glyph_row): New member
13577 continuation_lines_width. Member continuation_line_p removed.
427ec082 13578 (MATRIX_ROW_CONTINUATION_LINE_P): Non-zero if row displays a
26901792
DL
13579 continuation line.
13580 * xdisp.c (display_line): Set row->continuation_lines_width.
13581 (get_row_start_continuation_line_width): Set continuation lines
13582 width of iterator from continuation lines width of glyph row.
13583 (get_row_start_continuation_line_width): Make it inline.
13584 (set_window_cursor): Make it inline.
13585 (try_window_id): Use MATRIX_ROW_CONTINUATION_LINE_P.
13586 (Fdump_redisplay_state): Ditto.
427ec082 13587
26901792
DL
13588 * dispnew.c (update_window_line): Use MATRIX_ROW_CONTINUATION_LINE_P.
13589 * xterm.c (x_draw_row_bitmaps): Use MATRIX_ROW_CONTINUATION_LINE_P.
13590
13591 * xdisp.c (try_window_id): Set it.hpos and it.current_x to zero
13592 after determining the continuation lines width for
13593 last_unchanged_at_beg_row.
13594
13595 * xterm.c (x_draw_row_bitmaps): Let overlay arrow have precedence.
13596
13597 * xdisp.c (display_mode_line): Handle 3D faces only on frames
13598 which support faces.
13599 (init_display_iterator): Ditto.
13600 (move_iterator_via_matrix): Skip over truncation glyph at the row
13601 start on terminal frames.
13602 (hscroll_windows): Choose hscroll margin differently for window
13603 system and terminal frames.
13604
136051997-12-28 Gerd Moellmann <gerd@acm.org>
13606
13607 * xdisp.c (hscroll_windows): Change hscroll of windows.
13608 (redisplay_internal): Call it.
13609
427ec082 13610 * dispnew.c (direct_output_for_insert): Give up if a glyph
26901792
DL
13611 doesn't fit completely on the line.
13612 (direct_output_forward_char): Give up for non-ASCII chars.
13613 (direct_output_forward_char): Set redisplay_performed_directly_p.
13614
13615 * dispextern.h (struct display_iterator): Make first_visible_x
13616 and last_visible_x ints; this is for very long truncated lines.
13617
13618 * xdisp.c (move_iterator_in_display_line_to): Separate check for
13619 MOVE_X_REACHED only if it->nglyphs == 0. This fixes cursor
13620 positioning problems with the mouse.
13621 (move_iterator_in_display_line_to): Truncate lines if it->current_x
13622 >= it->last_visible_x instead of >.
13623 (display_line): Ditto.
13624
13625 * xterm.c (draw_glyphs): Draw rectangles if font could not be
13626 loaded.
13627 (XTproduce_glyphs): Calculate pixel_width for composite chars and
13628 non-ASCII chars differently. Always produce 1 glyph for composite
13629 chars. If font not found, use CHARSET_WIDTH to calculate width of
13630 non-ASCII chars.
13631 (x_get_char_font_and_encoding): Return null if font could not be
13632 loaded. Reset font to null if fontset could not be loaded.
13633 (draw_glyphs): Fill background if font not found.
13634 (draw_glyphs): Unused parameter just_foreground_p removed. New
13635 parameter composite_glyph.
13636 (draw_glyphs): Use enumeration for parameter hl.
427ec082 13637 (draw_glyphs): Pass a display area relative x-position to
26901792
DL
13638 draw_glyphs when calling it recursively for composite chars.
13639
136401997-12-27 Gerd Moellmann <gerd@acm.org>
13641
13642 * xterm.c: Patches from handa.etl.go.jp integrated.
13643 (draw_glyphs): Don't rely on x_get_char_font_and_encoding to
13644 find a font_info.
13645
13646 * xdisp.c (move_iterator_in_display_line_to): Check to_x
13647 for nglyphs == 1.
13648
13649 * xterm.c (x_draw_relief): Draw relief lines.
13650 (draw_glyphs): Call x_draw_relief.
13651
136521997-12-26 Gerd Moellmann <gerd@acm.org>
13653
13654 * xfns.c (x_make_gc): Create relief GC's.
13655
13656 * widget.c (create_frame_gcs): Create GC's for relief drawing.
13657 (setup_frame_gcs): Initialize them.
13658 (EmacsFrameDestroy): Free them.
13659
427ec082 13660 * xdisp.c (try_window_id): Get continuation lines width if
26901792
DL
13661 last_unchanged_at_beg_row is continued or a continuation line.
13662 (move_iterator_via_matrix): Don't do it for mini-buffer windows.
427ec082 13663 (redisplay_window): Case point has changed, and it has not
26901792
DL
13664 moved off the frame. Don't increment row if PT equals the row
13665 end if the row ends in ZV.
13666
13667 * xterm.c (x_draw_row_bitmaps): New function to draw bitmaps.
13668 (expose_line): Call it.
13669 (x_after_update_window_line): Call it.
13670
13671 * xdisp.c (display_line): Reset continuation_lines_width when ZV
13672 reached.
13673
13674 * xterm.c (x_after_update_window_line): Draw continuation line
13675 bitmap.
13676
13677 * dispnew.c (update_window_line): Call
13678 after_update_window_line_hook when row's continuation_line_p
13679 changes.
13680
13681 * xterm.c (draw_bitmap): Draw new bitmap CONTINUATION_LINE_BITMAP.
13682
13683 * xdisp.c (display_line): Handle continued lines on window system
13684 frames differently since continuation glyphs are not displayed.
13685 (move_iterator_in_display_line_to): Ditto.
13686 (move_iterator_in_display_line_to): Take the mini-buffer prompt
13687 into account.
13688 (move_iterator_vertically_backward): Handle dy == 0 specially.
13689 (redisplay_window): Catch the case of small windows when
13690 recentering where moving back window_height/2 moves us beyond the
13691 top of the display area of the window.
13692
136931997-12-18 Gerd Moellmann <gerd@acm.org>
13694
13695 * xdisp.c (move_iterator_vertically_backward): Unused parameter
13696 dvpos removed.
13697
136981997-12-17 Gerd Moellmann <gerd@acm.org>
13699
13700 * dispnew.c (direct_output_forward_char): Correct new cursor
13701 x-position.
13702
137031997-12-16 Gerd Moellmann <gerd@acm.org>
13704
13705 * xterm.c (x_after_update_window_line): Remove unused parameters.
13706 (XTclear_end_of_line): Clear to display_height instead of
13707 display_height - 1.
13708
13709 * dispnew.c (set_frame_matrix_frame): Make it INLINE.
427ec082 13710 (update_window_line): Call after_update_window_line_hook if
26901792
DL
13711 rows have different y-positions, or different height.
13712
137131997-12-14 Gerd Moellmann <gerd@acm.org>
13714
13715 * frame.h (FRAME_MODE_LINE_PIXEL_HEIGHT): Removed.
13716
13717 * window.c (coordinates_in_window): Call frame_mode_line_height.
13718
13719 * xterm.c (x_draw_3d_border): Removed.
13720 (x_draw_row_borders): Removed.
13721
13722 * dispnew.c (update_window): References to
13723 FRAME_MODE_LINE_BORDER_WIDTH removed.
13724
13725 * xterm.h (FRAME_MODE_LINE_BORDER_WIDTH): Removed.
13726 (FRAME_MODE_LINE_HEIGHT): Removed.
13727
13728 * xterm.c (draw_3d_borders_p): Removed.
13729 (draw_glyphs): Ditto.
13730 (XTwrite_glyphs): Ditto.
13731 (expose_line): Ditto.
13732 (x_initialize): Ditto.
13733
13734 * dispextern.h (WINDOW_DISPLAY_MODE_LINE_HEIGHT): Call
13735 frame_mode_line_height.
13736
13737 * term.c (frame_mode_line_height): Get the pixel height of a
13738 frame's mode line.
13739 (frame_mode_line_height_hook): Hook to implement system dependent
427ec082
SS
13740 versions.
13741
26901792
DL
13742 * xterm.c (x_initialize): Set the hook.
13743 (XTframe_mode_line_height): X version of frame_mode_line_height.
13744
13745 * xdisp.c (echo_area_display): Call gobble_input to flush the X
13746 output buffer.
13747 (display_string): Don't add right truncation mark if line ends in
13748 padding space.
13749 (init_display_iterator): If called with modeline_p non-zero, set
13750 face_id to 1, which is the id of the mode line face.
13751
13752 * keyboard.c (cmd_error_internal): Write to stderr if selected
13753 frame is Vterminal_frame under X. This is the case when a font
13754 cannot be loaded when Emacs starts. Replace test for
13755 FRAME_MESSAGE_BUF with test for glyphs_initialized_p.
13756
13757 * xfaces.c (compute_overlay_string_char_face): Compute the
13758 face of a character in an overlay string.
13759 * xterm.h (compute_overlay_string_char_face): Prototype.
427ec082 13760 * xdisp.c (compute_face_at_iterator_overlay_string_position):
26901792
DL
13761 Use it.
13762
13763 * xdisp.c (set_iterator_to_next_overlay_string): Formerly
13764 set_iterator_to_next_overlay.
13765 (struct overlay_entry): Structure used to sort overlay strings.
13766 (compare_overlay_entries): Compare overlay strings.
13767 (load_iterator_with_overlay_strings): Load a chunk of overlay
13768 strings.
13769 (get_overlay_strings_at_iterator_position): Call it.
13770 (next_element_from_overlay_string): Set it->object to the overlay
13771 string. Prepare for setting it->position to a string position.
13772 (get_overlay_strings_at_iterator_position): Renamed from
13773 get_overlays_at_iterator_position.
13774 (setup_iterator_overlay_strings_from_glyph_pos): Changed to load
13775 chunks of overlay strings.
13776 (load_overlay_strings): Renamed from load_iterator_overlay_strings.
13777
13778 * dispextern.h (struct display_iterator): New vector
13779 overlay_strings and new member n_overlay_strings---formerly
427ec082
SS
13780 overlays and n_overlays.
13781 (struct glyph_pos): Remove after_string_p; overlay_index
26901792
DL
13782 renamed to string_index.
13783
137841997-12-13 Gerd Moellmann <gerd@acm.org>
13785
13786 * xdisp.c (copy_iterator): Increment n_iterator_overlay_vectors
13787 when allocating a vector.
13788 (release_iterator): Removed.
13789 (restore_iterator): Removed.
13790 (copy_iterator): Removed.
13791
137921997-12-08 Gerd Moellmann <gerd@acm.org>
13793
13794 * xdisp.c (redisplay_window): Use make_empty_enabled_row for
13795 clearing a mini-buffer window that is not active.
13796 (redisplay_window): Do not scroll one line too early when last
13797 window line is completely visible.
13798 (init_display_iterator): Leave some room to display the cursor
13799 after the last glyph on a continued line.
13800
13801 * xterm.h (struct x_output): trunc_area_extra renamed
13802 flags_areas_extra.
13803 (FRAME_X_FLAGS_AREA_WIDTH): Renamed from FRAME_X_TRUNC_WIDTH.
13804
13805 * dispnew.c (update_window_line): Call
13806 after_update_window_line_hook when current row is not enabled
13807 which is the case after a frame has been cleared.
13808
13809 * xdisp.c (display_mode_line): Reset row flags for truncation
13810 on right side for the mode line.
13811
13812 * xterm.c (bitmap_type): Type of bitmap to display in flags
13813 area of frame.
13814 (x_after_update_window_line): Use the enum.
13815 (draw_bitmap): Ditto.
13816
138171997-12-07 Gerd Moellmann <gerd@acm.org>
13818
13819 * xterm.c (x_clip_to_row): Include width of both flag areas.
13820 (do_line_dance): Ditto.
13821 (expose_window_tree): Ditto.
13822 * dispnew.c (update_window_line): Call
13823 after_update_window_line_hook for right truncation and continuation.
13824 * xdisp.c (init_display_iterator): Don't subtract width of
13825 continuation glyphs for window-based redisplay.
13826 * xterm.c (draw_bitmap): Draw continuation bitmap.
13827 * widget.c (set_frame_size): Double trunc_area_extra.
13828 (EmacsFrameSetCharSize): Ditto.
13829 * xfns.c (x_figure_window_size): Ditto.
13830 * xterm.c (x_set_window_size): Ditto.
13831 (x_after_update_window_line): Draw right truncation mark.
13832
13833 * xterm.c (draw_glyphs): Bug fix buffer overrun.
13834
13835 * window.h: Include blocker around dispextern.h removed.
13836
13837 * eval.c (Feval): Check interrupt_input_block == 0.
427ec082 13838
26901792
DL
13839 * dispextern.h (struct display_iterator): Former ovstr made a
13840 Lisp_Object overlay_string. New next_ovstr_face_check_pos and
13841 next_ovstr_invisble_check_pos; check at these positions for
13842 face changes and changes in invisible text property.
13843 (struct glyph_pos): Former ovlen now overlay_string_index.
13844
13845 * xdisp.c (setup_iterator_overlays_from_glyph_pos): Set
13846 overlay_string.
13847 (set_iterator_to_next_overlay_string): Set overlay_string and
13848 pos.overlay_string_index.
13849 (get_overlays_at_iterator_position): Use overlay_string and
13850 overlay_string_index.
13851 (next_element_from_overlay_string): Use overlay_string and
13852 overlay_string_index.
13853 (move_iterator_forward): Increment overlay_string_index.
13854 (try_window_id): Use overlay_string and overlay_string_index.
13855 (move_iterator_forward): At end of dpvec, maybe use method
13856 next_element_from_overlay_string for the case a character from an
13857 overlay string was translated via a display table.
13858 (reseat_iterator_to_string): Take a Lisp string.
13859 (display_string): Pass a Lisp string to reseat_iterator_to_string.
13860 (compute_face_at_iterator_overlay_string_position): Compute face
13861 based on text properties for an overlay string.
13862 (next_element_from_overlay_string): Check invisible and face text
13863 properties.
178c5d9c 13864
26901792
DL
13865 (set_iterator_to_next_overlay_string): Restore face id before
13866 overlay strings when no more overlay strings are found to return.
13867 Initialize next_ovstr_.*check_pos for each new overlay string
178c5d9c 13868
bb6677a8
GM
13869 A line in the following paragraph was garbled for an unknown
13870 reason. It couldn't be fully reconstructed.
178c5d9c 13871
bb6677a8 13872 (compute_base_face): Made public.
26901792
DL
13873 (merge_face_list): Ditto.
13874 (intern_computed_face): Ditto.
13875
427ec082 13876 * xdisp.c (redisplay_window): Cursor movement in unchanged
26901792
DL
13877 window if PT > w->last_point. Goto try_to_scroll if bottom Y
13878 of row is > instead of >= last_y.
13879
13880 * buffer.h (overlays_at): Function prototype.
13881
13882 * xdisp.c (reseat_iterator_to_string): Clear iterator position.
13883 * dispextern.h (GET_NEXT_DISPLAY_ELEMENT): Removed.
13884
427ec082 13885 * xdisp.c (release_iterator): Release dynamically allocated
26901792
DL
13886 memory of a display_iterator.
13887 (copy_iterator): Copy an iterator.
13888 (restore_iterator): Restore an iterator from a backup copy.
13889 (global): Use the functions above.
13890 * window.c (Fpos_visible_in_window_p): Call release_iterator.
13891 * dispnew.c (direct_output_for_insert): Call release_iterator.
13892
13893 * dispextern.h (struct display_iterator): Allocate overlays
13894 vector dynamically.
13895
138961997-12-06 Gerd Moellmann <gerd@acm.org>
13897
13898 * Makefile.in (window.o): Depends on dispextern.h.
13899
13900 * buffer.c (overlays_at): Make it work when extending vectors
13901 and an initial vector of zero size.
13902
13903 * xdisp.c (set_iterator_to_previous_visible_line_end): Renamed
13904 from set_cursor_to_previous_visible_line_end.
13905 (set_iterator_to_next_visible_line_start): Renamed from
13906 set_cursor_to_next_visible_line_end.
13907 (set_next_iterator_stop_pos): Renamed from set_next_stop_pos.
13908 (compute_face_at_iterator_position): Renamed from
13909 compute_cursor_face.
13910 (set_iterator_to_next_overlay_string): Renamed from
13911 cursor_to_next_overlay_string.
13912 (get_overlays_at_iterator_position): Renamed from
13913 get_overlays_for_cursor.
13914 (reseat_iterator): Renamed from reseat_cursor.
13915 (setup_iterator_overlays_from_glyph_pos): Renamed from
13916 setup_overlays_from_pos.
13917 (init_string_iterator): Renamed from init_string_cursor.
13918 (get_next_display_element): Renamed from next_display_element.
13919 (move_iterator_forward): Renamed from advance_display_cursor.
427ec082 13920 (get_overlays_at_iterator_position): Allocate overlays vector
26901792
DL
13921 dynamically.
13922
13923 * xdisp.c: display_cursor renamed display_iterator.
13924 * dispextern.h: Ditto.
13925 * dispnew.c: Ditto.
13926
139271997-12-01 Gerd Moellmann <gerd@acm.org>
13928
13929 * window.c (mark_window_cursors_off): Function comment added.
13930 (window_topmost_p, window_rightmost_p): Removed because not used.
13931
139321997-11-30 Gerd Moellmann <gerd@acm.org>
13933
13934 * emacs.c (main): Function prototypes removed in profiling code.
13935 Use safe_bcopy as start of text.
13936
13937 * dispnew.c (update_frame_line): update_line -> update_frame_line;
13938 mirrored_make_current -> make_current.
13939
13940 * xdisp.c: (store_frame_title_char): New function to store a
13941 single character for the frame title with re-allocation of
13942 frame_title_buf.
13943 (init_xdisp): Intialize frame_title_.* variables to null.
13944
13945 * dispnew.c (quit_error_check): Removed.
13946
13947 * eval.c (Fsignal): Call to quit_error_check removed.
13948 * keyboard.c (quit_throw_to_read_char): Ditto.
13949
139501997-11-23 Gerd Moellmann <gerd@acm.org>
13951
13952 * xfaces.c (Fset_face_attribute_internal): Allow nil relief
13953 to mean a zero relief.
13954
26901792
DL
139551997-11-19 Gerd Moellmann <gerd@acm.org>
13956
13957 * dispnew.c (new_glyph_matrix): Increment glyph_matrix_count
13958 unconditionally.
13959 (glyph_matrix_count, glyph_pool_count): Define unconditionally.
13960 (free_glyph_matrix): Decrement glyph_matrix_count unconditionally.
13961 (check_glyph_memory): Define function body unconditionally.
13962
139631997-11-17 Gerd Moellmann <gerd@acm.org>
13964
13965 * dispnew.c (scrolling_window): Alternative version of this
13966 function removed.
13967
139681997-11-16 Gerd Moellmann <gerd@acm.org>
13969
13970 * dispnew.c (make_empty_enabled_row): Make an empty, enabled row
13971 of height CANON_Y_UNIT.
13972 * dispextern.h: Prototype for that function.
427ec082 13973 * xdisp.c (echo_area_display): Don't use display_string to
26901792
DL
13974 produce empty rows. Use make_empty_enabled_row instead.
13975
13976 * dispnew.c (scrolling_window): New version using diff-like
13977 algorithm activated.
427ec082 13978
26901792
DL
139791997-11-15 Gerd Moellmann <gerd@acm.org>
13980
13981 * dispnew.c (clear_current_matrices): Clear matrix of menu_bar_window
13982 (clear_desired_matrices): Ditto.
13983 (adjust_frame_glyphs_for_window_redisplay): Use FRAME_WINDOW_WIDTH
13984 for menu_bar_window.
13985
13986 * alloc.c (mark_object): Mark menu_bar_window of frames.
13987
13988 * xterm.c (XTupdate_window_end): Don't display cursor if
13989 pseudo_window_p.
13990
13991 * dispnew.c (adjust_frame_glyphs_for_window_redisplay): Don't
13992 set mini_p.
13993 (update_window): Don't set cursor if pseudo_window_p.
13994
13995 * dispextern.h (WINDOW_WANTS_MODELINE_P): Test pseudo_window_p.
13996
13997 * window.h (struct window): New flag pseudo_window_p set to
13998 1 for windows that aren't really part of the window tree, like
13999 menu_bar_window's of frames.
14000 * window.c (make_window): Initialize it.
14001 (replace_window): Ditto.
14002 * dispnew.c (adjust_frame_glyphs_for_window_redisplay): Ditto.
14003
14004 * frame.c (make_frame): Initialize menu_bar_window to nil.
14005
14006 * xterm.c (XTget_display_info): FACE_SHADOW_THICKNESS renamed
14007 FACE_RELIEF
14008
14009 * xfaces.c (copy_face): shadow_thickness -> relief.
14010 (face_eql): Ditto.
14011 (merge_faces): Ditto.
14012 (compute_base_face): Ditto.
14013 (Fset_face_attribute_internal): Ditto.
14014 * dispextern.h (struct face): Ditto.
14015
14016 * dispnew.c (update_frame): Update menu_bar_window of the frame if
14017 it is non-nil.
14018
14019 * xdisp.c (display_menu_bar): Display the menu bar in
14020 f->menu_bar_window if appropriate.
14021 (display_mode_line): Use MATRIX_MODE_LINE_ROW.
14022
14023 * dispnew.c (adjust_frame_glyphs_for_window_redisplay): Allocate
14024 dummy window and window matrices for f->menu_bar_window.
14025 (free_glyphs): Free the dummy window and its glyph matrices.
14026
14027 * frame.h (struct frame): New member menu_bar_window.
14028
140291997-11-09 Gerd Moellmann <gerd@acm.org>
14030
14031 * dispnew.c (scrolling_window): New version with diff-like
14032 algorithm.
14033
14034 * xdisp.c (try_window_reusing_current_matrix): If new_start >
14035 old_start always start displaying at start of
14036 first_row_to_display. The previous scheme failed if the last row
14037 was fully visible.
14038
14039 * dispnew.c (update_window): Remove cost calculations. Remove
14040 redundant preempt_count calculations.
14041
14042 * xterm.c (x_clip_to_row): Set clipping for non-text rows
14043 differently.
14044
14045 * dispnew.c (update_window): Use WINDOW_WANTS_MODELINE_P.
14046
427ec082 14047 * window.c (syms_of_window): Functions for marginal areas if
26901792
DL
14048 WITH_MARGINAL_AREAS is defined.
14049
427ec082 14050 * xdisp.c (try_window_reusing_current_matrix): Trace fprintf
26901792
DL
14051 removed.
14052
14053 * dispnew.c (scrolling): Call line_hash_code because hash values
14054 are not set in the frame matrix.
14055
14056 * xdisp.c (try_window_id): Fix scrolling for terminal frames.
14057 (redisplay_window): Check line_ins_del_ok before calling
14058 try_window_id.
14059 (try_window_reusing_current_matrix): Give up for terminal frames
14060 if window is not full width or we cannot insert/delete lines.
14061 (try_window_reusing_current_matrix): Fixed scrolling for terminal
14062 frames.
14063
14064 * alloc.c (mark_glyph_matrix): Bug fix - pass pointer to
14065 Lisp_Object to mark_object.
14066
14067 * xdisp.c (sync_frame_with_window_matrix_rows): Make frame and
14068 window rows have the same glyph pointers.
14069 (try_window_id): Call it.
14070
14071 * alloc.c (mark_glyph_matrix): Function to mark Lisp objects in
14072 a glyph matrix.
14073 (mark_object): Call it.
14074
14075 * xdisp.c (insert_left_trunc_glyphs): Use 0 object in glyphs for
14076 truncations.
14077 (display_line): Ditto.
14078 (display_line): Ditto for DISP_CONTINUATION.
14079 (display_line): Truncation on right: test current_x >
14080 last_visible_x.
14081 (skip_in_display_line_to): Ditto.
14082 (skip_via_matrix): Stop skipping in glyph row at face extending
14083 glyphs or at padding spaces.
14084
14085 * dispnew.c (fill_up_glyph_row_with_spaces): Comment extended.
14086
14087 * xdisp.c (display_line): Use glyph->object == 0 for padding
14088 glyphs.
14089 (redisplay_window): Don't let cursor move over padding
14090 spaces.
14091
14092 * dispextern.h (struct glyph): Fix comment for object.
14093
140941997-11-08 Gerd Moellmann <gerd@acm.org>
14095
14096 * dispextern.h (WINDOW_WANTS_MODELINE_P): Non-zero if a window
14097 has a mode line.
14098 * xdisp.c (redisplay_window): Use it.
14099 (display_mode_line): Check that window wants mode line.
14100
141011997-11-03 Gerd Moellmann <gerd@acm.org>
14102
14103 * xdisp.c (display_menu_bar): Enable menu bar rows.
14104
14105 * xterm.c (x_draw_hollow_cursor): X positions based on text area.
14106 (x_erase_phys_cursor): Ditto.
14107 (x_draw_bar_cursor): Ditto.
14108
141091997-11-02 Gerd Moellmann <gerd@acm.org>
14110
14111 * dispnew.c (update_marginal_area): Update a marginal area.
14112 (update_text_area): Update text area.
14113 (update_window_line): Call both.
14114
14115 * xterm.c (XTclear_end_of_line): Translate coordinates area
14116 dependent.
14117
14118 * dispnew.c (updated_area): Row area being updated in
14119 update_window_line.
14120 (update_window_line): Set it.
14121 (update_marginal_area): Clear to end of line if not in text area.
14122
14123 * window.c (Fset_window_margins): Increment
14124 windows_or_buffer_changed. Adjust glyphs.
14125
14126 * dispextern.h (WINDOW_TEXT_TO_FRAME_PIXEL_X): Convert text
14127 area X coordinates to frame coordinates.
427ec082 14128 (WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH): Width of left marginal area.
26901792
DL
14129 (WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH): Same for right area.
14130 (WINDOW_DISPLAY_TEXT_AREA_PIXEL_WIDTH): Same for text area.
14131
14132 * xterm.c (draw_glyphs): Use text area width as display width.
14133
14134 * xdisp.c (init_display_info): Subtract widths of marginal areas
14135 from last_visible_x.
14136
14137 * alloc.c (mark_object): Mark objects in glyphs only if they are
14138 overlays. Mark only if current_matrix != 0. Activate the code.
14139
14140 * window.c (Fset_window_margins): Set margins.
14141 (Fwindow_margins): Return margin area widths.
14142 (syms_of_window): Add defsubr's.
14143
14144 * window.h (struct window): left_margin_width, right_margin_width.
14145
14146 * xfns.c (x_set_trunc_area_width): Set truncation pixel width
14147 and cols.
14148
14149 * frame.h (FRAME_TRUNC_COLS): Number of columns occupied by
14150 truncation/overlay arrow area.
14151 (struct frame): trunc_area_pixel_width, and _cols.
14152
14153 * window.c (Fsplit_window): Use it.
14154
14155 * window.c (Fsplit_window): Set cursor vpos to -1 after
14156 splitting.
14157 (Fsplit_window): SUbtract/add FRAME_TRUNC_WIDTH for horizontally
14158 split windows.
14159
14160 * dispnew.c (set_window_cursor_after_update): Accept out
427ec082 14161 of bounds cursor positions.
26901792
DL
14162
14163 * xdisp.c (redisplay_internal): Check that after cursor motion
14164 within line, PT is on same line.
14165
14166 * dispextern.h (WINDOW_DISPLAY_PIXEL_WIDTH): Don't subtract
14167 FRAME_TRUNC_WIDTH.
14168
14169 * xterm.h (struct x_output): trunc_area_extra.
14170 (CHAR_TO_PIXEL_WIDTH): Add in trunc_area_extra.
14171 (PIXEL_TO_CHAR_WIDTH): Subtract it.
14172 * widget.c (set_frame_size): Set it.
14173 (EmacsFrameSetCharSize): Ditto.
14174 * xfns.c (x_figure_window_size): Ditto.
14175 * xterm.c (x_set_window_size): Ditto.
14176
14177 * dispnew.c (check_matrix_invariants): First try to check window
14178 ends (in #if 0).
14179
14180 * xdisp.c (try_window_reusing_current_matrix): Try window
14181 redisplay with different window start.
14182
141831997-11-01 Gerd Moellmann <gerd@acm.org>
14184
14185 * window.c (make_window): Set window_end_pos/vpos.
14186 (Fsplit_window): Zero last_cursor, window_end_valid.
14187 (Fset_window_buffer): Set window_end_vpos, zero last_cursor.
14188
14189 * dispnew.c (check_matrix_invariants): Check window_end_pos/vpos.
14190
141911997-10-31 Gerd Moellmann <gerd@acm.org>
14192
14193 * window.c (make_window): Initialize last_cursor.
14194 (replace_window): Ditto.
14195
141961997-10-29 Gerd Moellmann <gerd@acm.org>
14197
14198 * window.h: New member last_cursor.
14199 * dispnew.c (direct_output_for_insert): Set it.
14200 (direct_output_forward_char): Ditto.
14201 * xdisp.c (redisplay_internal): Ditto.
14202
142031997-10-28 Gerd Moellmann <gerd@acm.org>
14204
14205 * xdisp.c (redisplay_internal): Optimization 1 change partially
14206 reverted. Check this again later.
14207 (skip_via_matrix): Remove redundent test for
427ec082 14208 MATRIX_ROW_DISPLAYS_TEXT_P.
26901792
DL
14209
142101997-10-27 Gerd Moellmann <gerd@acm.org>
14211
14212 * dispnew.c (update_window_line): Call
14213 after_update_window_line_hook only for interesting constellations.
14214 (free_glyph_matrix): Fix memory leak.
14215
14216 * window.h: Include blocker WINDOW_H_INCLUDED, include
14217 dispextern.h.
14218 (struct window): phys_cursor_glyph as struct glyph. * window.c
14219 (make_window): Initialize it.
427ec082 14220 (replace_window): Ditto.
26901792
DL
14221 * dispnew.c (free_window_matrices): Remove freeing of
14222 phys_cursor_glyph.
14223 (check_matrix_invariants): Renamed from check_current_matrix_...
14224 * xterm.c: All references to phys_cursor_glyph changed.
14225
14226 * dispextern.h (DISPEXTERN_H_INCLUDED: New include blocker.
14227
14228 * xfaces.c: Comment update.
14229
14230 * window.h (struct window): Make phys_cursor_glyph a struct glyph
14231 pointer. Remove phys_cursor_ascent, descent, etc.
14232 * dispnew.c (free_window_matrices): Free it.
14233 * window.c (make_window): Allocate it.
14234 (replace_window): Ditto.
14235 * xterm.c (x_draw_phys_cursor_glyph): Draw it.
14236 (x_display_and_set_cursor): Fill it.
14237 (x_phys_cursor_in_rect_p): Use it.
14238 (x_draw_hollow_cursor): Ditto.
14239 (x_draw_bar_cursor): Ditto.
14240 (x_erase_phys_cursor): Ditto.
14241
14242 * xdisp.c (skip_in_display_line_to): Use SET_INFO_FROM_CURSOR.
14243
14244 * xterm.c (XTget_display_info): Handle 3D facess.
14245 (draw_glyphs): Ditto.
14246
14247 * xdisp.c (Fdump_redisplay_state): Change interactive spec to "p".
14248
14249 * xfaces.c (Fset_face_attribute_internal): New face attribute
14250 shadow-thickness.
14251 (copy_face): Handle shadow_thickness.
14252 (face_eql): Ditto.
14253 (merge_faces): Ditto.
14254 (compute_base_face): Ditto.
14255
14256 * dispextern.h (struct display_cursor): New member start_of_3d_run_p.
14257 (struct display_info): Ditto.
14258 (SET_INFO_FROM_CURSOR): Transfer it to display_info.
14259 * xdisp.c (compute_cursor_face): Set it.
14260 (advance_display_cursor): Clear it.
14261
14262 * xdisp.c (init_string_cursor): Initialize face_id to -1.
14263 (init_string_cursor): Init face_id to zero.
14264
14265 * dispextern.h (struct face): New member shadow_thickness.
14266
427ec082 14267 * xdisp.c (compute_cursor_face): Set limit for text property
26901792
DL
14268 search to 100.
14269
14270 * dispnew.c (update_window_line): Try to resynch with current line
14271 to prevent mode line flickering.
14272
142731997-10-26 Gerd Moellmann <gerd@acm.org>
14274
427ec082 14275 * dispnew.c (set_window_cursor_after_update): React again
26901792
DL
14276 on cursor_in_echo_area >= 0.
14277
14278 * xdisp.c (echo_area_display): Clear desired matrix before
14279 displaying into it.
14280 (display_menu_bar): Clear glyph row instead of hoping it is not
14281 enabled. This is safer.
14282
14283 * dispnew.c (check_current_matrix_invariants): Check only
14284 visible rows.
14285
14286 * xdisp.c (try_window_id): Handle window end setting in case of
14287 display to end of window, but only non-text lines displayed.
14288
14289 * dispnew.c (check_current_matrix_invariants): Check nrows for zero.
14290 (check_current_matrix_invariants): Check used counts.
14291
14292 * Revisiob v114.
14293
14294 * dispnew.c (scrolling): Use hash codes from rows.
14295
14296 * xdisp.c (Fdump_redisplay_state): Dump current matrix.
14297
14298 * dispnew.c (scrolling_window): Invalidate conflicting runs.
14299
143001997-10-25 Gerd Moellmann <gerd@acm.org>
14301
14302 * dispextern.h (struct glyph_matrix): Flag no_scrolling_p.
14303 * dispnew.c (update_window): Use it.
14304 (clear_glyph_matrix): Clear it.
14305 * xdisp.c (try_window_id): Set it.
14306
14307 * dispextern.h (struct glyph_row): New flag ends_at_zv_p.
14308
14309 * xdisp.c (redisplay_internal): Increment glyph positions differently.
14310
14311 * dispextern.h: More comments etc.
14312
143131997-10-24 Gerd Moellmann <gerd@acm.org>
14314
14315 * dispnew.c (set_window_cursor_after_update): Set cursor
14316 for cursor_in_echo_area == 0 to (0, 0).
14317
14318 * dispextern.h (struct glyph_row): New flags continuation_line_p
14319 and displays_text_p.
14320 (MATRIX_ROW_DISPLAYS_TEXT_P): Use displays_text_p.
14321 * xdisp.c (display_line): Set them.
14322 (try_window_id): Move to start of continuation line to find out
14323 continuation_line_width.
14324 (first_unchanged_current_row): Don't retract row if continued,
14325 truncated etc.
14326
14327 * xterm.c: Map X coordinates.
14328
143291997-10-23 Gerd Moellmann <gerd@acm.org>
14330
14331 * dispnew.c (buffer_posn_from_coords): Translate X for right to
14332 left text.
14333
14334 * xdisp.c (display_line): Set right_to_left_p after clearing the row.
14335
14336 * xterm.c (XTclear_end_of_line): Respect right_to_left_p.
14337
f28eba7b 14338 * xdisp.c (try_window_id): Clear desired matrix if not successul.
26901792
DL
14339
14340 * xdisp.c (try_window_id): Call update_window_begin_hook/end_hook.
14341
14342 * dispnew.c (update_window_begin_hook, update_winodw_end_hook):
14343 Set this to functions to be called before/after window updates.
14344 (direct_output_for_insert): Call them.
14345 (update_window): Ditto.
14346 (update_frame): Call update_begin/ update_end for windows.
14347
14348 * xterm.c (XTupdate_window_begin): Called before window updates.
14349 (XTupdate_end): Called after window updates.
14350 (x_initialize): Set hooks to above.
14351
14352 * xdisp.c (init_display_info): Initialize c and len of
14353 display_info.
14354
14355 * xterm.c (x_get_char_font_and_encoding): Bug fix. Don't load
14356 fonts more than once.
14357
143581997-10-22 Gerd Moellmann <gerd@acm.org>
14359
14360 * xdisp.c (display_line): Handle most common case of current_x <
14361 last_visible_x separately.
14362
14363 * dispextern.h (display_element_type): DISP_ELLIPSIS removed.
14364
14365 * dispnew.c (update_window_line): Compare pixel widths of glyphs
14366 so that face extending space doesn't compare equal to normal space
14367 with same face.
14368
14369 * xdisp.c (display_line): Make sure we have a position for
14370 a line end in an otherwise blank line if face is extended.
14371
14372 * dispnew.c (direct_output_for_insert): Increment row end position.
14373
427ec082 14374 * window.c (Fpos_visible_in_window_p): Use old meaning of
26901792
DL
14375 window_end_pos.
14376
14377 * xdisp.c (init_display_cursor_from_glyph_pos): New.
14378
14379 * dispextern.h (MATRIX_ROW_FIRST_POS): Use row start.
14380
14381 * dispnew.c (increment_glyph_row_buffer_positions): Adjust
14382 start and end positions in rows.
14383 (increment_glyph_row_buffer_positions): Stop adjusting at
14384 glyphs with positions <= 0.
14385
14386 * dispextern.h (struct glyph_pos): Structure desribing a text
427ec082 14387 position including position in overlay.
26901792
DL
14388 (struct glyph_row): Use it for start and end positions.
14389 (struct display_cursor): Use it.
14390 * xdisp.c: Use it.
14391 (display_line): Set row start and end positions.
14392
14393 * dispnew.c (copy_row_except_pointers): Use bcopy and struct
14394 assignment.
14395
143961997-10-21 Gerd Moellmann <gerd@acm.org>
14397
14398 * dispnew.c (update_window): Add scrolling_window again. It's
14399 necessary for scroll_step != 0.
14400
14401 * xdisp.c (redisplay_window): Use vmotion for scroll_step
14402 scrolling.
14403
14404 * xdisp.c (last_unchanged_current_row): Use window_end_vpos.
14405
14406 * xterm.c (XTupdate_end): Flush only for messages.
14407
14408 * xdisp.c (try_window_id): Assert last_unchanged_row >=
14409 first_unchanged_row.
14410
14411 * xterm.c (XTupdate_end): Flush if miniwindow.
14412
14413 * dispnew.c (matrix_row_last_pos): New function.
14414 * dispextern.h (MATRIX_ROW_LAST_POS): Call it.
427ec082 14415 Large comment moved to xdisp.c.
26901792
DL
14416
14417 * xdisp.c (redisplay_window): Bug fix: PT set to value > Z.
14418 (skip_via_matrix): Check window_end_valid instead of
14419 display_completed.
14420
14421 * dispnew.c (scroll_glyph_matrix_range): Bug fix.
14422 (update_window): scrolling_window commented out. It has negative
14423 effect most of the time.
14424
14425 * xdisp.c (try_window_id): Correct parameters to
14426 scroll_glyph_matrix_range.
14427
427ec082 14428 * xterm.c (XTupdate_end): XFlush commented out.
26901792
DL
14429
14430 * window.h: Comments for window_end_pos/vpos.
14431
f28eba7b 14432 * xdisp.c (skip_to): Assert current_buffer is the buffer
26901792
DL
14433 of the window in which we are skipping.
14434
14435 * dispnew.c (update_window_line): Optimized clear_end_of_line.
14436
14437 * xterm.c (draw_glyphs): Bug fix. Return window relative X
14438 reached.
14439
144401997-10-20 Gerd Moellmann <gerd@acm.org>
14441
14442 * dispextern.h (MATRIX_ROW_LAST_POS): Go back one glyph if this is
14443 a face extending glyph.
14444
427ec082 14445 * xdisp.c (try_window_id): Check if point will appear.
26901792
DL
14446 (set_cursor_from_row): Set cursor position from a glyph row.
14447
14448 * dispnew.c (update_window_line): Write entire line if hash
14449 codes of lines differ.
14450
14451 * dispextern.h (MATRIX_ROW_EXTENDS_FACE_P): Value is non-zero
14452 if glyph row has an infinite width glyph at its end.
14453
14454 * xdisp.c (last_unchanged_current_row): Respect partially visible
14455 lines when looking for the last row displaying text.
14456 (try_window_id): Handle partially visible lines better.
14457
144581997-10-19 Gerd Moellmann <gerd@acm.org>
14459
14460 * dispnew.c (update_window): Remove unused variable.
14461 (update_window_line): Simplified.
14462
14463 * xterm.c (x_get_char_font_and_encoding): Handle most common
14464 case at the beginning.
14465
14466 * xdisp.c (advance_display_cursor): Dispatch on method and
14467 order if statements by expected call frequency. Fixed unclosed
14468 comment.
14469
14470 * xdisp.c (try_window_id): New implementation.
14471
14472 * dispnew.c (increment_glyph_row_buffer_positions): Capture
14473 rows displaying a line end, only.
14474
144751997-10-18 Gerd Moellmann <gerd@acm.org>
14476
14477 * window.c (Fpos_visible_in_window_p): Remove use of window_end_vpos.
14478
144791997-10-14 Gerd Moellmann <gerd@acm.org>
14480
14481 * xdisp.c (display_line): Mark empty lines not corresponding to
14482 text with position -1.
14483
14484 * xterm.c (x_erase_phys_cursor): Don't bother to erase cursor if
14485 not within window matrix bounds.
14486
14487 * dispextern.h (struct display_cursor): New member REGION_SHOWING_P.
14488 (struct display_info): NGLYPHS_TO_IGNORE removed.
14489 * xdisp.c: References to NGLYPHS_TO_IGNORE removed.
14490 * term.c: Ditto.
14491 * xterm.c: Ditto.
14492
14493 * xdisp.c (init_display_cursor): Set it.
14494 (display_line): Use it to set W->REGION_SHOWING.
14495
14496 * xdisp.c (skip_via_matrix): Check for overlay arrow.
14497
14498 * region-cache.h: functino prototypes with PROTO.
14499
14500 * dispnew.c (buffer_posn_from_coords): Use -1 as skip position.
14501
14502 * xdisp.c (skip_via_matrix): Check for rows that don't contain
14503 a position.
14504
427ec082 14505 * xterm.c (XTmouse_position): Calculate LAST_MOUSE_GLYPH
26901792
DL
14506 rectangle based on minimum character bounds.
14507
f28eba7b 14508 * keyboard.c (make_lispy_event): Mouse clicks; don't do frame
26901792
DL
14509 glyph position calculations.
14510 (make_lispy_movement): Use buffer_posn_from_coords and window
14511 relative coordinates.
14512
14513 * xterm.c (construct_mouse_click): Remove #if 0 case.
14514
14515 * dispextern.h (MATRIX_ROW_BOTTOM_Y): Return bottom pixel y of
14516 given row.
14517
427ec082
SS
14518 * xdisp.c (skip_via_matrix): Skip using current matrix if up to
14519 date.
26901792
DL
14520 (skip_to): Use it.
14521 (redisplay_window): Remove code skipping using current matrix.
14522
145231997-10-13 Gerd Moellmann <gerd@acm.org>
14524
14525 * xdisp.c (redisplay_window): Use available current matrix to
14526 skip faster when only point is moved withing the window.
14527
427ec082 14528 * intervals.c: Include stdio.h.
26901792
DL
14529 (find_interval): Trace to stderr to catch some nasty error
14530 that did not yet occur again with tracing.
14531 (set_point): Ditto.
14532
14533 * dispnew.c (shift_glyph_matrix): Experimental code for handling
14534 cursor positioning on partially visible lines.
14535 (set_window_cursor_after_update): Ditto.
14536
f28eba7b 14537 * dispextern.h (MATRIX_ROW_PARTIALLY_VISIBLE_P): Bug fix.
26901792
DL
14538
14539 * window.h (struct window): start_y removed.
14540
14541 * window.c (make_window): start_y removed.
14542 (replace_window): Ditto.
14543
427ec082 14544 * xdisp.c (last_max_ascent, last_max_descent): Ascent and
26901792
DL
14545 descent values of the last line processed by skip_to.
14546 (redisplay_window): Use them.
14547 (skip_to): Set them.
14548
14549 * dispextern.h (struct display_cursor): New member METHOD.
14550
14551 * xdisp.c: Use function member METHOD.
14552
14553 * xdisp.c (set_next_stop_pos): Determine next position at which to
14554 check for face properties, invisible text properties, and overlays.
14555 (compute_cursor_face): Use it.
14556 (get_overlays_for_cursor): Ditto.
14557 (reseat_cursor): Ditto.
14558 (next_display_element): Ditto.
14559
14560Sun Aug 24 08:50:52 1997 Gerd Moellmann <gerd@acm.org>
14561
14562 * termhooks.h: Some hooks with prototypes.
14563
14564 * term.c: Some hooks with function prototypes.
427ec082 14565
26901792
DL
14566 * xdisp.c (reseat_cursor): Additional argument force_p. Avoid
14567 computing face if possible.
14568
14569 * xdisp.c (next_display_element): Use face from glyph from display
14570 table only if != 0.
14571
14572 * emacs.c: FreeBSD headers for profiling removed.
14573
427ec082
SS
14574 * dispnew.c (direct_output_for_insert): Don't use PT-1 for
14575 display cursor, use DEC_POS instread.
26901792
DL
14576
14577 * xfaces.c (load_font): Use x_load_font to load fonts so that
427ec082 14578 all fonts are in the font table.
26901792
DL
14579 (unload_font): Don't XFreeFont.
14580
14581 * dispnew.c (row_equal_p): Compare ascent, descent and visible
14582 row height.
14583
14584 * xterm.c (draw_glyphs): Use 8-bit functions if possible.
14585 (x_erase_phys_cursor): Clear only visible part of row.
14586 (x_draw_bar_cursor): Set clipping.
14587 (x_draw_hollow_cursor): Ditto.
14588 (x_display_and_set_cursor): Remove clipping.
14589 (expose_window_tree): Take trunc border into account.
14590 (x_phys_cursor_in_rect_p): Test if phys_cursor intersects a rect.
14591 (expose_window): Use it.
14592
14593 * xdisp.c (display_string): Catch case that we are called with
d7d0dac0 14594 current_x already beyond max_x.
26901792
DL
14595 (global): Fix usage of FRAME_WINDOW_P <-> FRAME_WINDOW_REDISPLAY_P.
14596 (init_display_info): Subtract vertical border glyph from
d7d0dac0 14597 last_visible_x.
26901792
DL
14598
14599 * scroll.c (scrolling_window_1): Removed.
14600
14601 * dispnew.c (adjust_frame_glyphs): Split into two functions,
14602 based on redisplay method used.
14603 (adjust_frame_glyphs_for_frame_redisplay): Part for frame
14604 based redisplay.
14605 (adjust_frame_glyphs_for_window_redisplay): Part for purely
14606 window based redisplay.
14607
14608 * frame.h (FRAME_WINDOW_REDISPLAY_P): Changed to not depend
14609 on data structures.
14610
14611 * dispnew.c (adjust_glyph_matrix): Additional parameter W.
14612 Handle own storage for purely window based redisplay.
14613 (allocate_matrices_for_frame_redisplay): Formerly part of
427ec082 14614 allocate_matrices.
26901792
DL
14615 (allocate_matrices_for_window_redisplay): Ditto.
14616
14617 * dispextern.h (struct glyph_matrix): window_top_y,
14618 window_height.
14619
14620 * dispnew.c (allocate_matrices_for_window_redisplay): Detect
14621 and optimize some common cases of window changes.
14622
14623 * emacs.c (main): Remove own profiling code because 0.95 now
14624 has it in.
14625
14626Fri Aug 22 18:46:43 1997 Gerd Moellmann <gerd@acm.org>
14627
d7d0dac0 14628 * xterm.c (XTupdate_end): Draw horizontal border at right position.
26901792
DL
14629 (expose_window): Draw vertical border.
14630 (XTclear_end_of_line): Accept width <= 0 and height <= 0 but
14631 don't do anything.
14632
14633 * xdisp.c (redisplay_internal): Set update_mode_line if paused
14634 for non full width windows only if not window redisplay.
14635
14636 * dispnew.c (update_window_tree): Or paused_p return of called
14637 functions.
14638
14639 * xterm.c (x_display_and_set_cursor): Return if hpos/vpos outside
14640 of window.
14641
14642 * window.c (Fset_window_configuration): adjust_glyphs being
14643 called twice.
14644 (Fset_window_configuration): Set frame garbaged if not all
14645 leaf windows reused.
14646
146471997-08-21 Gerd Moellmann <gerd@acm.org>
14648
14649 * dispnew.c (clear_glyph_matrix): Additional argument specifiying
14650 that rows should really be cleared. Used for current matrices.
14651
d7d0dac0
SM
14652 * dispnew.c (scrolling_window): Bug fix.
14653 (line_dance_hook): Formerly line_dance_fn, take only one parameter.
26901792
DL
14654
14655 * dispextern.h (struct run): Remove current_vpos.
14656
14657 * xterm.c (do_line_dance): Only one parameter.
14658
f28eba7b 14659 * xdisp.c (display_line): Set continued_p.
26901792
DL
14660
14661 * dispextern.h (struct glyph_row): New flag continued_p.
14662 Fix truncated_on_left_p and truncated_on_right_p to be bits.
427ec082 14663 (struct glyph_row):
26901792
DL
14664
14665Thu Aug 21 14:37:34 1997 Gerd Moellmann <gerd@acm.org>
14666
14667 * xdisp.c (skip_vertically_backward): Avoid negative vpos values
14668 when calling skip_to for continued lines.
14669
14670 * dispnew.c (change_frame_size_1): Set frame garbaged.
14671
14672 * xterm.c (expose_window): Check enabled_p of rows.
14673
14674 * xdisp.c (redisplay_internal): Compare line heights before and
14675 now for redisplay optimization 2 (hit).
14676 (display_line): Set this_line_pixel_height.
14677
14678 * xterm.c (x_draw_row_borders): Use FRAME_MODE_LINE_HEIGHT height
14679 value.
14680 (x_clip_to_row): Use MATRIX_ROW_VISIBLE_HEIGHT. Simplified.
14681 (do_line_dance): Simplified and pixel corrected.
14682
14683 * dispnew.c (scrolling_window): Simplified.
14684
14685 * xterm.c (x_draw_3d_border): Inset rectangle by line width.
14686
14687 * dispnew.c (update_window): Add FRAME_MODE_LINE_BORDER_WIDTH
14688 to mode line row->x.
14689
14690Wed Aug 20 11:23:28 1997 Gerd Moellmann <gerd@acm.org>
14691
14692 * xterm.c (x_get_char_font_and_encoding): Don't let fontset
14693 override font of face.
14694 (draw_glyphs): Correct return value.
14695 (XTclear_end_of_line): Compare differently with output cursor
14696 position.
14697 (x_draw_hollow_cursor): 2 parameters, window and row.
14698
14699 * dispnew.c (update_window_line): If rows have different height
14700 or y, write entire line.
14701
f28eba7b 14702 * xdisp.c (compute_line_metrics): Reset max_ascent and max_descent
26901792
DL
14703 of info struct.
14704
427ec082 14705 * xfaces.c (Fset_face_attribute_internal): Don't call
26901792
DL
14706 frame_update_line_height.
14707 (merge_faces): Don't use default font if new font has different
14708 size.
14709
14710Tue Aug 19 14:38:05 1997 Gerd Moellmann <gerd@acm.org>
14711
14712 * xterm.c (x_display_and_set_cursor): Use FONT_WIDTH if width
d7d0dac0 14713 unknown. Some fonts have min_width zero.
26901792 14714 (draw_glyphs): Don't draw underlines to the end of the display
d7d0dac0 14715 line if face is merely extended to that point.
26901792 14716 (draw_glyphs): Don't assume background is filled if
d7d0dac0 14717 just_foreground_p but extending to end of line.
26901792
DL
14718
14719 * xterm.c (XTclear_end_of_line): Clip only to display_height - 1
14720 for partially visible last lines.
14721 (x_clip_to_row): Ditto.
14722 (x_clip_to_row): Clip to display_height-1 if y + line_height >
14723 display_height since line_height is really a line distance.
14724 (x_display_and_set_cursor): If cursor on padding glyph, use
14725 min_bounds pixel width.
14726
14727Mon Aug 18 09:39:18 1997 Gerd Moellmann <gerd@acm.org>
14728
14729 * xterm.c (x_clip_to_row): Height value was 1 too large.
14730 (XTclear_end_of_line): Clip to display area.
14731
14732 * xfns.c (x_figure_window_sizes): Add trunc border width
14733 to frame pixel width.
14734
14735 * xdisp.c (next_display_element): Don't display overlay strings
14736 within invisible text.
427ec082 14737 (skip_vertically_backward): Skip display lines.
26901792
DL
14738
14739Sat Aug 16 13:13:32 1997 Gerd Moellmann <gerd@acm.org>
14740
14741 * xdisp.c (x_consider_frame_titie): Don't pad with blanks.
14742
14743 * xdisp.c (next_display_element): Next invisible
14744 text check position computed differently.
14745
14746 * dispextern.h (struct display_cursor): last_invisible_text_pos
14747 and display_ellipsis_for_invisible_p removed.
14748
14749 * xdisp.c (next_display_element): Set last_invisible_text_pos
14750 to the last position at which invisible text was found. Don't
14751 decrement cursor.pos for newlines and cr with ellipsis. Set
427ec082 14752 dpvec for `...' due to invisible text directly.
26901792
DL
14753 (redisplay_internal): Don't assert that cursor is at PT after
14754 skip_to. It may be in invisible text.
14755
427ec082 14756 * keyboard.c (make_lispy_event): For mouse clicks, use
26901792
DL
14757 x_y_to_hpos_vpos.
14758
427ec082 14759 * xdisp.c (next_display_element): Call get_overlays_for_cursor when
26901792
DL
14760 next_overlay_pos is reached. Use limit cursor.pos + 100 when
14761 checking for invisible text.
14762
14763 * xterm.h (WINDOW_COL_PIXEL_X etc.) Removed.
14764
14765 * dispextern.h (WINDOW_TO_FRAME_HPOS/VPOS): Moved to dispnew.c
14766
d7d0dac0 14767 * xfns.c (x_contour_region): Use pixel coordinates from window
26901792
DL
14768 cursor instead of WINDOW_TO_FRAME_H/VPOS.
14769
14770 * dispextern.h (FRAME_TO_WINDOW_HPOS, FRAME_TO_WINDOW_VPOS):
14771 Removed.
14772
14773 * dispnew.c (frame_to_window_hpos, frame_to_window_vpos): Removed.
14774
14775 * xterm.c (x_y_to_hpos_vpos): Get hpos/vpos from window relative
14776 pixel coordinates.
14777 (note_mouse_highlight): Use it.
14778
14779 * xdisp.c (echo_area_display): Ignore calls for terminal frames
14780 under a window system.
14781
427ec082 14782 * dispnew.c (adjust_frame_glyphs): Call redraw_frame if
26901792 14783 necessary.
427ec082 14784 (update_window_line): Add width of face padding glyph to
26901792
DL
14785 displayed widths of rows.
14786
14787 * xterm.c (x_display_and_set_cursor): Set clipping after
14788 erasing cursor.
427ec082
SS
14789
14790 * window.c (Fset_window_configuration): Free only those
26901792
DL
14791 window matrices not reused.
14792 (get_leaf_windows): Build vector of leaf windows.
14793 Corrupted archive restored from v77.
14794
f28eba7b 14795 * xdisp.c (display_string): Stop at >= last_visible_x if truncating
26901792
DL
14796 like display_line does.
14797
14798 * xdisp.c (display_mode_line): Don't hscroll mode line.
14799
14800 * xterm.c (draw_glyphs): Wrong run_width computed for horiz. split
14801 windows.
14802 (x_scroll_bar_create): #3039 Clear area below scroll bar to remove
14803 garbage between mode lines when splitting windows horiz.
14804
14805 * dispnew.c (direct_output_for_insert): Bug fix.
14806
14807 * dispextern.h (struct display_cursor): New member string_length.
14808
14809 * xdisp.c (next_display_element): Return padding spaces.
f28eba7b 14810 (init_string_cursor): Take precision and field_width
26901792
DL
14811 (display_string): Use string cursor, skip over invisible text.
14812
14813Thu Aug 14 10:41:41 1997 Gerd Moellmann <gerd@acm.org>
14814
14815 * xterm.c (x_clip_to_row): Clip to partially visible lines.
14816 (x_display_and_set_cursor): Call it.
14817 (draw_glyphs): Call it
14818 (draw_bitmap): Call it.
14819
427ec082 14820 * dispnew.c (adjust_frame_glyphs): Optimize frame garbaging.
26901792
DL
14821 (allocate_leaf_matrix): Return flags.
14822 (row_equal_p): Compare enabled_p.
14823
14824 * xterm.c (x_erase_phys_cursor): Set phys_cursor_on_p to 0
14825 for type == -1.
14826
14827 * xterm.c (x_display_and_set_cursor): Bar cursor 1 pixel taller.
427ec082 14828 (draw_glyphs): Clip height one pixel taller.
26901792 14829
427ec082 14830 * dispnew.c (direct_output_for_insert): Give up for hscrolled
26901792
DL
14831 mini window.
14832
f28eba7b 14833 * xdisp.c (display_line): Don't scroll mini prompt.
26901792 14834
427ec082
SS
14835 * xdisp.c (echo_area_display): Call update_single_window if
14836 possible.
26901792
DL
14837
14838 * dispnew.c (update_window_line): Call scrolling_window.
f28eba7b 14839 (scrolling_window): Work on enabled desired lines only.
26901792
DL
14840 (update_single_window): Update a single window like update_frame
14841 does for all windows.
427ec082 14842 (update_window, update_window_tree): Additional argument
26901792
DL
14843 no_scrolling_p.
14844 (update_frame): Pass no_scrolling_p to update_window_tree.
14845 (update_window): Don't call scrolling_window if no_scrolling_p.
14846
14847 * xterm.c (x_erase_phys_cursor): Do nothing if type == -1.
427ec082
SS
14848 Erase under hollow cursor.
14849 (x_display_and_set_cursor): Do nothing if cursor glyph row
26901792
DL
14850 not enabled. Draw bar cursor 1 pixel smaller.
14851
f28eba7b 14852 * dispnew.c (adjust_frame_glyphs): Don't set frame garbaged
26901792
DL
14853 since update will follow soon.
14854
14855 * xdisp.c (echo_area_display): Unitialized variable.
14856
f28eba7b 14857 * xterm.c (draw_bitmap): Previously draw_truncation; draw
26901792
DL
14858 overlay arrow bitmap.
14859
f28eba7b 14860 * xdisp.c (display_line): For truncated lines, consider everything
427ec082 14861 up to the final \n as part of the line for cursor positioning.
26901792 14862
f28eba7b
SM
14863 * xterm.c (draw_truncation): Take FRAME_X_TRUNC_WIDTH into account.
14864 (x_after_update_window_line): Clear trunc marks.
26901792
DL
14865
14866 * xterm.h (FRAME_X_TRUNC_WIDTH).
14867
f28eba7b 14868 * frame.h (FRAME_TRUNC_WIDTH): Width of area at the left margin
26901792
DL
14869 of a window reserved for truncation mark.
14870
427ec082 14871 * dispextern.h: Take FRAME_TRUNC_WIDTH into account.
26901792
DL
14872
14873 * dispnew.c (update_window_line): Call after_update_windwo_line-
427ec082 14874 hook.
26901792
DL
14875
14876 * xdisp.c (display_line): Set overlay_arrow_p in row.
14877
14878 * dispextern.h (struct glyph_row): New flag overlay_arrow_p.
14879
14880 * xterm.c (x_after_update_window_line): Draw truncation marks.
14881
14882 * xdisp.c (display_line): Insert truncation for lines with
14883 current_x > 0.
14884
14885 * xterm.c (x_draw_row_borders): Convert y to frame coords.
14886 Correct y by 1.
14887 (x_display_cursor): Use default font width if width not
427ec082 14888 known.
26901792 14889
f28eba7b 14890 * xdisp.c (echo_area_display): Set row->y.
26901792
DL
14891
14892 * dispnew.c (set_window_cursor_after_update): Don't assume
14893 all rows are enabled.
14894
14895 * xdisp.c (skip_in_display_line_to): Test cursor.position instead
14896 of cursor.pos.
14897 (skip_in_display_line_to): Check cursor.position after call to
14898 next_display_element.
14899
427ec082 14900 * dispextern.h (CURSOR_AT_P): Test if cursor has reached
26901792
DL
14901 buffer position.
14902
14903 * xdisp.c (display_line): Set row->y here.
14904 (skip_in_display_line_to): Test for to_pos after all glyphs
14905 have been added to hpos so that hpos is at the end of all
14906 glyphs for to_pos.
14907 (start_display): Remove assertion.
14908
d7d0dac0 14909 * dispnew.c (direct_output_forward_char): Bug fix, = instead of ==.
26901792
DL
14910 (update_window): Don't set row->y here.
14911
14912 * xdisp.c (next_display_element): Don't translate control chars
14913 from display table entries.
14914
427ec082 14915 * dispnew.c (direct_output_for_insert): Set cursor before
26901792
DL
14916 update end to prevent cursor flickering. Revert changes to
14917 setting cursor.endpos.
14918
14919Wed Aug 13 10:46:12 1997 Gerd Moellmann <gerd@acm.org>
14920
14921 * dispnew.c (direct_output_for_insert): Don't set cursor.endpos
14922 to PT because this prevents multi-byte characters from being
14923 recognized.
14924
427ec082
SS
14925 * xdisp.c (skip_to, display_line): Advance cursor at end of
14926 truncated line.
26901792
DL
14927
14928 * xterm.c (x_draw_3d_borders): Use CapRound. Struct rect
14929 replaced by XRectangle.
14930
d7d0dac0 14931 * dispnew.c (scrolling_window): New method.
26901792
DL
14932
14933 * xterm.c (do_line_dance): New implementation, new method.
427ec082 14934
26901792
DL
14935 * xdisp.c (draw_glyphs): Draw truncation bitmaps. Clip to
14936 visible part of line.
14937
14938 * dispnew.c (update_window_line): Fill inverse video lines
14939 with infinite width space.
14940 (update_window): Handle completely empty matrices.
14941 (set_window_cursor_after_update): Bug fix.
14942
427ec082 14943 * xterm.c (draw_glyphs): Stop drawing at right window end.
26901792
DL
14944
14945 * dispnew.c (update_window_line): Don't ignore spaces, don't
14946 fill with spaces.
14947
14948 * xdisp.c (compute_line_metrics): Stop adding glyph widths with
14949 the first glyph having width 0.
14950
14951 * xterm.c (draw_glyphs): Let a glyph pixel with of 0 denote
427ec082 14952 a glyph that extends to the end of the line.
26901792
DL
14953
14954 * xdisp.c (display_line): Insert one padding glyph
14955
14956 * xdisp.c (skip_in_display_line_to): Don't subtract shift left
14957 amount from info.current_x.
14958 (display_line): Ditto.
14959
14960 * dispnew.c (direct_output_for_insert): Correct use of cursor.x.
14961 (change_frame_size_1): Correct cursor.x if frame gets too small.
14962 (update_window_line): Start at row->x.
14963
14964 * xdisp.c (redisplay_internal): Correct cursor.x (everwhere
14965 in xdisp.c).
14966
14967 * xterm.c (set_output_cursor): Use window relative X/Y.
14968 (global): Use window relative output cursor x/y.
14969 (draw_glyphs): Remove y param. Pass window relative x/y.
14970
14971 * dispnew.c (update_window): Start rows at start_y.
14972 (update_window): Don't try scrolling because it wouldn't work
14973 with variable height lines, anyway.
14974
14975 * dispextern.h (struct glyph_row): Remove shift_left_by,
14976 add x.
14977
14978 * window.h: (struct window): New member start_y.
14979
14980 * window.c (replace_window): Initialize start_y.
14981 (make_window): Ditto.
14982
14983Tue Aug 12 14:53:04 1997 Gerd Moellmann <gerd@acm.org>
14984
14985 * xterm.c (draw_glyphs): Clip rows that would paint over
427ec082 14986 the mode line.
26901792 14987
427ec082
SS
14988 * dispnew.c (update_window): Take mode line border into
14989 account.
26901792
DL
14990
14991 * xterm.h (FRAME_MODE_LINE_BORDER_WIDTH): Number of pixels
427ec082 14992 of border around mode line.
26901792
DL
14993
14994 * xterm.c (x_draw_row_borders): Bug fix.
14995 (x_erase_phys_cursor): Set pyhs_cursor.x/y before calling
14996 drawing functions.
14997
14998 * xterm.c (x_draw_row_border): Experimental; draw 3d borders
427ec082 14999 around modeline instead of inverting it.
26901792 15000
427ec082 15001 * xterm.c (glyph_to_pixel_coords): Use current matrix.
26901792
DL
15002
15003 * dispnew.c (buffer_posn_from_coords): Use SKIP_TO. Now takes
15004 window relative pixel coordinates as arguments.
15005
15006 * keyboard.c (make_lispy_event): Use BUFFER_POSN_FROM_COORDS
15007 with window relative pixel coordinates. Use GLYPH_TO_PIXEL_-
15008 COORDS mit new arguments.
15009
15010Mon Aug 11 12:32:34 1997 Gerd Moellmann <gerd@acm.org>
15011
15012 * xdisp.c (start_display): Use SKIP_TO instead of SKIP_IN-
427ec082 15013 DISPLAY_LINE.
26901792
DL
15014
15015 * keyboard.c (make_lispy_event): WINDOW_FROM_COORDINATES with
15016 pixel coords.
15017 (make_lispy_movement): Same.
15018
15019 * xterm.c (note_mouse_highlight): Use WINDOW_FROM_COORDINATES
15020 with new parameter meaning.
15021
15022 * window.c (Fcoordinates_in_window_p): Convert Lisp params
15023 from canon units to pixels.
15024 (coordinates_in_window): Pixel based.
15025 (Fcoordinates_in_window_p): Convert result pixel values back
15026 to canonical units.
15027
15028 * window.h: phys_cursor_ascent + descent instead of height.
15029
15030 * xterm.c (XTget_char_info): Use per char metrics for multi-byte
d7d0dac0 15031 chars with charset width 1.
26901792
DL
15032
15033 * dispnew.c (direct_output_for_insert): Set updated_row.
15034
15035Sat Aug 9 12:11:44 1997 Gerd Moellmann <gerd@acm.org>
15036
15037 * dispextern.h (struct glyph): Padding flag removed.
15038
15039Tue Aug 5 09:59:08 1997 Gerd Moellmann <gerd@acm.org>
15040
15041 * sysdep.c (reset_sys_modes): cursor_to with 4 params.
15042
15043 * keyboard.c (interrupt_signal): Cursor_to with 4 params.
15044
15045 * dispnew.c (update_window_line): Use pixels.
15046
15047 * xdisp.c (compute_line_metrics): Correct pixel_width by
15048 shift_left_by.
15049
15050 * dispextern.h (struct glyph_row): FIRST_SHIFTED_LEFT_GLYPH
427ec082 15051 removed. Remove references to it everywhere. Reverse_p in
26901792
DL
15052 glyph_row -> right_to_left_p. Change references to it.
15053
15054Mon Aug 4 18:09:27 1997 Gerd Moellmann <gerd@acm.org>
15055
15056 * dispnew.c (direct_output_for_insert): Use INSERT_GLYPHS.
15057
15058 * xterm.c (XTinsert_glyphs): Implement it.
15059
15060 * term.c (insert_glyphs): UPDATING_FRAME may be NULL in case
15061 of a call from DIRECT_OUTPUT_FOR_INSERT.
15062
15063 * window.h (struct cursor_pos): Keeps both matrix positions
15064 and pixel positions.
15065 (struct window): Use it.
15066
15067 * dispnew.c (direct_output_for_insert): New version.
15068
15069 * xdisp.c (redisplay_internal): Don't do anything if it has
15070 already be done directly.
15071
15072 * keyboard.c (command_loop_1): Call DIRECT_OUTPUT_FOR_INSERT
15073 for any character.
15074
15075Thu Jul 31 15:39:10 1997 Gerd Moellmann <gerd@acm.org>
15076
15077 * xdisp.c (echo_area_display): Use new DISPLAY_STRING.
15078
15079Wed Jul 30 12:18:03 1997 Gerd Moellmann <gerd@acm.org>
15080
15081 * dispextern.h (struct glyph_row): MAX_ASCENT, MAX_DESCENT.
15082 (struct glyph): ASCENT, DESCENT.
15083 (MATRIX_ROW_PIXEL_HEIGHT): Pixel height of row.
15084 (GLYPH_PIXEL_HEIGHT): Pixel height of glyph.
15085
15086 * xterm.c (XTget_display_info): Correct tab computation.
15087
15088 * term.c (get_display_info): Correct tab computation.
15089
15090 * dispextern.h (struct display_cursor): WHAT_FOUND, SOURCE_OBJECT.
15091 Renamed from CHAR_CURSOR.
15092
15093Tue Jul 29 12:52:40 1997 Gerd Moellmann <gerd@acm.org>
15094
15095 * xdisp.c (display_text_line): Mostly pixel oriented.
15096
15097 * dispextern.h (struct glyph): BOX_WIDTH -> PIXEL_WIDTH.
15098
15099 * term.c (append_intermediate_glyph): Generate padding glyphs.
15100
15101 * xdisp.c (display_text_line): More into final direction.
15102
15103 * xterm.c (XTget_char_info): Use WHAT field of CHAR_INFO.
15104 (XTget_char_info): Use tabs as multiples of spaces.
15105
15106 * term.c (get_char_info): Use WHAT field of CHAR_INFO.
15107 Use tabs as multiples of spaces.
15108
15109 * dispextern.h (struct char_info ): WHAT field.
15110
15111 * term.c (encode_terminal_code): Don't use GLYPH_CHAR, use
d7d0dac0 15112 FAST_GLYPH_CHAR instead because GLYPH_CHAR won't remove faces.
26901792
DL
15113
15114Mon Jul 28 14:23:06 1997 Gerd Moellmann <gerd@acm.org>
15115
15116 * dispnew.c (init_char_info): Correct TAB_WIDTH to a reasonable
15117 value.
15118 (init_char_info): Initialize with glyph row.
15119
15120 * term.c (get_char_info): Check WANT_ELLIPSIS_P.
15121
15122 * xterm.c (XTget_char_info): Check WANT_ELLIPSIS_P.
15123
15124 * dispextern.h (struct char_info ): GLYPH_ROW for intermediate
15125 glyphs.
15126
15127 * dispnew.c (init_char_info): Init GLYPH_ROW to NULL. CHAR_CURSOR
15128 moved to xdisp.c.
15129
15130 * xdisp.c (display_text_line): Use CHAR_CURSOR.
15131
15132 * xterm.c (x_append_intermediate_glyph): Intermediate glyph
15133 generation.
15134 (XTget_char_info): Ditto.
15135
15136 * term.c (get_char_info): Intermediate glyph generation.
15137 (append_intermediate_glyph): Ditto.
15138
15139Sun Jul 27 18:57:24 1997 Gerd Moellmann <gerd@acm.org>
15140
427ec082 15141 * dispnew.c (compute_char_cursor_face): Compute the face for a
26901792
DL
15142 CHAR_CURSOR.
15143 (init_char_cursor): Initialize a CHAR_CURSOR.
15144 (get_char_and_advance): Get next character to display.
15145
15146 * dispextern.h (struct char_cursor): Cursor for iterating over
15147 display text of CURRENT_BUFFER.
15148
15149Sat Jul 26 13:33:03 1997 Gerd Moellmann <gerd@acm.org>
15150
15151 * term.c (get_char_info): Set MAX_PIXEL_WIDTH in CHAR_INFO.
15152
15153 * dispextern.h (struct char_info ): Use LISP_CHAR_TABLE for DP.
15154 New member MAX_PIXEL_HEIGHT.
15155
15156 * xterm.c (x_per_char_metric): Get per character metrics.
15157 (XTget_char_info): More cases covered.
15158
15159 * term.c (get_char_and_info): Get next character and character
15160 display information.
15161 (get_char_info): Get character display information.
15162
15163 * dispextern.h: Character display information.
15164
427ec082 15165 * xterm.c (x_get_char_font_and_encoding): Get font and
26901792
DL
15166 encode character.
15167 (XTget_char_info): Get display information about a character.
15168
15169Wed Jul 23 16:50:18 1997 Gerd Moellmann <gerd@acm.org>
15170
15171 * dispextern.h (WINDOW_DISPLAY_MODE_LINE_HEIGHT): Height is
15172 zero if window is mini-window.
15173
15174 * xdisp.c: Include xterm.h or w32term.h for FRAME_LINE_HEIGHT.
15175 (try_window): DISPLAY_TEXT_LINE as long as Y < DISPLAY_HEIGHT.
15176
427ec082 15177 * dispnew.c (assign_row): Assign row pixel height.
26901792
DL
15178 (clear_glyph_row): Clear pixel height.
15179 (update_window): Use PIXEL_HEIGHT.
15180
15181 * xdisp.c (display_string): Set row pixel height temporarily.
15182 (display_text_line): Ditto.
15183
427ec082 15184 * dispextern.h (GLYPH_PIXEL_WIDTH):
26901792
DL
15185 (GLYPH_PIXEL_HEIGHT): Get glyph pixel dimension.
15186
427ec082 15187 * frame.h (FRAME_DEFAULT_PIXEL_LINE_HEIGHT): Get height of
26901792
DL
15188 line in default font.
15189 (FRAME_DEFAULT_GLYPH_PIXEL_WIDTH): Get width of character
15190 in default font.
15191 (FRAME_MODE_LINE_PIXEL_HEIGHT): Get height of mode line.
15192
15193 * xterm.h (FRAME_MODE_LINE_HEIGHT): Return height of mode line
15194 in pixels.
15195
15196 * dispnew.c (allocate_leaf_matrix): Use window pixel macros.
15197
15198 * dispextern.h (WINDOW_DISPLAY_PIXEL_WIDTH):
427ec082
SS
15199 (WINDOW_DISPLAY_PIXEL_HEIGHT):
15200 (WINDOW_DISPLAY_MODE_LINE_HEIGHT):
15201 (WINDOW_DISPLAY_PIXEL_HEIGHT_WITHOUT_MODE_LINE):
15202 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X):
15203 (WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X):
15204 (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y):
26901792
DL
15205 (WINDOW_DISPLAY_BOTTOM_EDGE_PIXEL_Y): Macros to get various
15206 pixel values related to windows.
15207
15208Mon Jul 21 12:22:02 1997 Gerd Moellmann <gerd@acm.org>
15209
15210 * xterm.c (XTflash): Flash last line of frame.
15211
15212 * dispextern.h (cursor_in_echo_area): Extern declaration.
15213
15214 * xterm.c (dumpglyphs): 8-bit version to test if my Xserver
d7d0dac0 15215 freezes stem from 16-bit functions.
26901792
DL
15216
15217 * xterm.c (x_display_and_set_cursor): Don't display hollow
15218 cursor in mini windows.
15219
15220 * window.c (replace_window): Initialize PHYS_CURSOR_TYPE.
15221 (make_window): Ditto.
15222
15223 * xterm.c (x_erase_phys_cursor): Erase cursor image.
15224 (x_display_and_set_cursor): Merged version of X_DISPLAY_BOX_CURSOR
15225 and X_DISPLAY_BAR_CURSOR.
15226 (x_display_cursor): Use it.
15227 (x_update_window_cursor): Use it.
15228
15229 * xdisp.c (display_text_line): Set cursor for window even if not
d7d0dac0 15230 selected.
26901792
DL
15231
15232 * xterm.c (x_display_bar_cursor): Use HPOS and VPOS instead
15233 of X and Y to denote matrix positions.
15234 (x_display_cursor): Ditto.
15235
15236 * dispnew.c (scrolling_window): Scrolling for windows.
15237
15238Wed Jul 16 13:37:51 1997 Gerd Moellmann <gerd@acm.org>
15239
15240 * dispnew.c (build_frame_matrix): Work on windows with update
15241 flag set.
15242 (build_frame_matrix_from_window_tree): Ditto.
15243 (build_frame_matrix_from_leaf_window): Ditto.
15244
15245 * xdisp.c (echo_area_display): Set MUST_BE_UPDATED_P instead of
15246 building frame matrix.
427ec082 15247 (redisplay_internal): Set window update flags instead of
26901792
DL
15248 building frame matrix.
15249
15250 * minibuf.c (read_minibuf): Set MUST_BE_UPDATED_P instead of
15251 building frame matrix.
15252
15253 * window.c (make_window): Initialize new members.
15254 (replace_window): Ditto.
15255
15256 * xfns.c (Fx_create_frame): Don't set PHYS_CURSOR_X to -1.
15257 I don't believe this is really necessary.
15258
15259 * dispnew.c (build_frame_matrix_from_leaf_window): Determine
427ec082 15260 border glyph once.
26901792
DL
15261
15262Tue Jul 15 13:58:33 1997 Gerd Moellmann <gerd@acm.org>
15263
427ec082 15264 * window.c (mark_window_cursors_off): Mark all cursors in
26901792
DL
15265 window tree off.
15266
427ec082 15267 * xterm.c (x_display_box_cursor): Window paraemter. Use
26901792
DL
15268 window matrix.
15269 (glyph_to_pixel_pos): Convert matrix pos -> pixels.
15270 (pixel_to_glyph_pos): Convert pixel pos -> matrix pos.
15271 (x_update_cursor): Work on windows.
15272 (x_display_bar_cursor): Ditto.
15273 (x_draw_single_glyph): Ditto.
15274
15275 * xterm.h: Prototype for X_DISPLAY_CURSOR.
15276
15277 * xterm.c (XTcursor_to): Void return type. Test for
d7d0dac0 15278 UPDATED_WINDOW. Call x_display_cursor with window.
26901792 15279 (x_display_cursor): Void return type. Window instead of frame
d7d0dac0 15280 parameter.
26901792 15281
d7d0dac0 15282 * window.h (WINDOW_RIGHTMOST_P, WINDOW_TOPMOST_P): Use functions below.
26901792
DL
15283
15284 * window.c (window_rightmost_p, window_topmost_p): Based on
15285 window tree.
15286
15287 * dispnew.c (adjust_frame_message_buffer): Allocate with
d7d0dac0 15288 FRAME_MESSAGE_BUF_SIZE.
26901792
DL
15289
15290 * window.h: PHYS_CURSOR_.* added.
15291
15292 * frame.h (struct frame): Cursor information removed.
15293
15294 * frame.h (FRAME_SCROLL_BAR_WIDTH): Removed because unused.
15295 (FRAME_WINDOW_WIDTH_ARG): Don't add scroll bar width.
15296
15297 * window.h (WINDOW_LEFT_MARGIN): Remove FRAME_LEFT_SCROLL_BAR.
15298
15299 * window.c (window_internal_width): Scroll bars no longer
15300 part of window.
15301
d7d0dac0 15302 * xterm.c (XTclear_end_of_line): FRAME_LEFT_SCROLL_BAR_WIDTH removed.
26901792 15303
d7d0dac0 15304 * xfns.c (x_set_scroll_bar_width): FRAME_LEFT_SCROLL_BAR_WIDTH removed.
26901792
DL
15305
15306 * xdisp.c (echo_area_display): FRAME_LEFT_SCROLL_BAR_WIDTH removed.
15307 (redisplay_internal): Ditto.
15308 (redisplay_window): Ditto.
15309 (redisplay_window): Ditto.
15310 (display_text_line): Ditto.
15311 (display_mode_line): Ditto.
15312
15313 * minibuf.c (read_minibuf): FRAME_LEFT_SCROLL_BAR_WIDTH removed.
15314
15315 * dispnew.c (set_cursor_to): FRAME_LEFT_SCROLL_BAR_WIDTH removed.
15316 (direct_output_for_insert): Ditto.
15317 (direct_output_forward_char): Ditto.
15318 (update_frame_1): Ditto.
15319
15320Mon Jul 14 12:30:03 1997 Gerd Moellmann <gerd@acm.org>
15321
15322 * dispnew.c (updated_window): Set by UPDATE_WINDOW to the window
d7d0dac0 15323 being updated.
26901792
DL
15324 (update_window): Set and clear it.
15325
15326 * dispnew.c (update_window_line, update_window, scrolling_window):
15327 First versions.
15328
15329 * dispnew.c (build_frame_matrix_from_leaf_window): Add vertical
15330 bar for window borders.
15331 (fill_up_glyph_row_area_with_spaces): Fill an area of a row
15332 with spaces.
15333 (fill_up_glyph_row_with_spaces): Call above function.
15334
15335 * xdisp.c (display_text_line): Don't add vertical bar for
15336 window borders.
15337 (display_string): Ditto.
15338
15339 * window.c (make_window): Init CURSOR_VPOS/HPOS.
15340 (replace_window): Ditto.
15341
15342 * xterm.c (XTwrite_glyphs): Use selected window cursor position.
15343
15344 * xfns.c (Fx_contour_region): Use selected window cursor position.
15345 (Fx_uncontour_region): Ditto.
15346 (Fx_select_region): Ditto.
15347
15348 * frame.c (make_frame): Remove CURSOR_X/Y.
15349
15350 * xdisp.c (redisplay_internal): Use window cursor position.
15351
15352 * dispnew.c (update_frame_1): Use cursor position of selected
15353 window.
15354 (change_frame_size_1): Ditto.
15355
15356 * xterm.c (XTupdate_begin): Set CURS_X/Y from selected window.
15357 (XTwrite_glyphs): Use cursor position of selected window.
15358
d7d0dac0 15359 * xfns.c (x_set_scroll_bar_width): Set cursor pos of selected window.
26901792
DL
15360
15361 * dispnew.c (set_cursor_to): Set window cursor position.
15362 (direct_output_for_insert): Use window cursor position.
15363 (init_display): Don't use frame cursor position.
15364
15365 * window.h: CURSOR_VPOS/HPOS added.
15366
15367 * frame.h (struct frame): CURSOR_X/Y removed.
15368 (FRAME_CURSOR_X): Removed.
15369 (FRAME_CURSOR_Y): Ditto.
15370
15371 * dispnew.c (direct_output_for_insert): LAST_POINT_X removed.
15372 (direct_output_forward_char): Ditto.
15373
d7d0dac0 15374 * xdisp.c (redisplay_internal): LAST_POINT_X and LAST_POINT_Y removed.
26901792
DL
15375
15376 * window.c (make_window): LAST_POINT_X and LAST_POINT_Y removed.
15377
15378 * window.h: LAST_POINT_X and LAST_POINT_Y removed.
15379
15380Sun Jul 13 14:18:24 1997 Gerd Moellmann <gerd@acm.org>
15381
15382 * xdisp.c: Bug fixes using SET_CURSOR with HPOS 0 instead
15383 of FRAME_LEFT_SCROLL_BAR_WIDTH.
15384
15385 * dispextern.h: Changed function names.
15386
15387 * dispnew.c (scrolling): Don't call SCROLLING_1 if WINDOW_SIZE
15388 < 2.
15389 (clear_window_matrices): Formerly two functions for desired
15390 and current matrix.
15391 (update_frame_1): Call CLEAR_DESIRED_MATRICES.
15392 (update_frame): Return return value from UPDATE_FRAME_1.
15393
15394Sat Jul 12 12:58:48 1997 Gerd Moellmann <gerd@acm.org>
15395
15396 * xdisp.c (try_window): Set WINDOW_END_VPOS with window relative
15397 LAST_TEXT_VPOS.
15398
15399 * frame.c (set_menu_bar_lines): Adjust matrices.
15400
15401 * dispnew.c (set_cursor_to): Set cursor position.
15402
15403 * minibuf.c (read_minibuf): Build frame matrix.
15404
15405 * xdisp.c (this_line_start_hpos): Renamed to
d7d0dac0
SM
15406 THIS_LINE_START_WINDOW_HPOS to make it clear that this is window
15407 relative.
26901792
DL
15408 (this_line_vpos): Renamed to THIS_LINE_WINDOW_VPOS for the same
15409 reason.
15410
427ec082 15411 * dispnew.c (build_frame_matrix): Don't clear rows of the
26901792
DL
15412 menu bar.
15413 (clear_window_records): Clear window rows.
15414 (clear_frame_records): Clear window and frame rows.
15415 (clear_glyph_matrix): Set all rows of a matrix to empty.
15416
d7d0dac0
SM
15417 * xdisp.c (echo_area_display): Parameter UPDATE_FRAME_P.
15418 Update frame if set.
26901792
DL
15419 (message2_nolog): Pass 1 to ECHO_AREA_DISPLAY. UPDATE_FRAME
15420 removed.
15421 (redisplay_internal): Pass 0 to ECHO_AREA_DISPLAY.
15422 (redisplay_internal): Build frame matrix before UPDATE_FRAME.
15423
15424 * dispnew.c (assign_row): Assign one glyph row to another.
15425 (mirrored_make_current): Use it.
15426 (mirror_make_current): Use it.
15427 (update_line): Rely on MIRRORED_MAKE_CURRENT to set flags and
15428 used counters for the current glyph row.
427ec082 15429
26901792
DL
15430
15431Fri Jul 11 13:16:50 1997 Gerd Moellmann <gerd@acm.org>
15432
15433 * lisp.h: Prototype for SCAN_BUFFER.
15434
15435 * xdisp.c (redisplay_windows): Simplified.
15436
15437 * dispnew.c (window_to_frame_vpos): Convert window to frame vpos
15438 with debug checks.
15439 (window_to_frame_hpos): Convert window to frame hpos with checks.
15440 (frame_to_window_vpos): Convert frame to window vpos with checks.
15441 (frame_to_window_hpos): Convert frame to window hpos with checks.
15442
15443 * dispextern.h: PRESERVE_OTHER_COLUMNS removed.
15444
15445 * dispnew.c: PRESERVE_OTHER_COLUMNS removed.
15446
15447 * xdisp.c (redisplay_internal): Another instance of
15448 DISPLAY_TEXT_LINE with window relative VPOS.
15449 (redisplay_internal): Remove PRESERVE_OTHER_COLUMNS.
15450
15451 * dispnew.c (init_desired_glyphs): Do it on window matrices,
15452 only.
15453
15454 * xdisp.c (try_window_id): Use CANCEL_WINDOW_LINE.
15455 (redisplay_internal): Ditto.
15456
15457 * dispnew.c (cancel_window_line): Use window matrix. Changed
15458 name to CANCEL_WINDOW_LINE.
15459
15460 * xdisp.c (try_window_id): Use DISPLAY_TEXT_LINE with window
15461 relative VPOS.
15462
427ec082
SS
15463 * dispextern.h (WINDOW_TO_FRAME_VPOS): Convert window vpos
15464 to frame vpos.
26901792
DL
15465 (WINDOW_TO_FRAME_HPOS): Convert window hpos to frame hpos.
15466 (FRAME_TO_WINDOW_VPOS): Convert frame vpos to window vpos.
15467 (FRAME_TO_WINDOW_HPOS): Convert frame hpos to window hpos.
15468
15469 * xdisp.c (try_window_id): Use ADJUST_WINDOW_CHARSTARTS with
15470 window relative VPOS.
15471 (redisplay_internal): Use ADJUST_WINDOW_CHARSTARTS with window
15472 relative VPOS.
15473
15474 * dispnew.c (adjust_window_charstarts): Use INCREMENT_GLYPH_-
15475 MATRIX_BUFFER_POSITIONS.
15476
15477 * xdisp.c (try_window_id): Use SCROLL_FULL_WIDTH_WINDOW.
15478
15479 * dispextern.h: Prototype for SCROLL_FULL_WIDTH_WINDOW.
15480
427ec082 15481 * dispnew.c (scroll_frame_lines): Make it work on window
26901792
DL
15482 matrix. Change name to scroll_full_width_window.
15483
15484 * xdisp.c (message2_nolog): Don't fwrite NULL message If
d7d0dac0 15485 NONINTERACTIVE.
26901792
DL
15486
15487Mon Jul 7 14:44:38 1997 Gerd Moellmann <gerd@acm.org>
15488
15489 * dispnew.c (init_desired_glyphs): Clear both frame matrix
427ec082 15490 and window matrices.
26901792
DL
15491 (adjust_window_charstarts): Use window matrix.
15492 (cancel_my_columns): Use window matrix.
15493 (direct_output_for_insert): Use window matrix, only.
15494
15495 * xdisp.c (display_glyphs): Extracted code from DISPLAY_STRING.
15496 (display_string): Call display_glyphs.
15497 (display_menu_bar_string): Display a string in a menu bar line.
15498 (display_menu_bar): Use DISPLAY_MENU_BAR_STRING.
15499 (display_text_line): Use window matrix.
15500 (try_window): Use window relative positions.
15501
15502Sun Jul 6 17:02:26 1997 Gerd Moellmann <gerd@acm.org>
15503
15504 * dispnew.c (adjust_frame_glyphs): Allocate window matrices from
d7d0dac0 15505 (0, 0).
26901792 15506 (allocate_leaf_matrix): Add FRAME_MENU_BAR_LINES to the height of
d7d0dac0 15507 top-most windows.
26901792
DL
15508
15509 * window.h (WINDOW_TOPMOST_P): Added.
15510
15511 * xdisp.c (echo_area_display): Use PREPARE_DESIRED_ROW.
15512 (redisplay_window): Ditto.
15513 (display_text_line): Ditto.
15514 (display_menu_bar): Ditto.
15515 (display_mode_line): Ditto.
15516 (display_mode_line): Use window matrix.
15517 (display_string): Use window matrix.
15518 (display_mode_element): Ditto.
15519 (echo_area_display): Don't display if frame has no pools yet.
15520 (echo_area_display): Work with window matrix for mini window.
15521 (redisplay_window): Use window marix for mini window.
15522 (display_text_line): Assume HPOS and VPOS are window relative and
d7d0dac0 15523 use that for DISPLAY_STRING.
26901792
DL
15524
15525 * dispextern.h: Prototype for prepare_desired_row.
15526
d7d0dac0 15527 * dispnew.c (prepare_desired_row): Replacement for GET_DISPLAY_LINE.
26901792
DL
15528
15529 * dispnew.c (adjust_window_charstarts): Always allocate window
15530 matrices.
15531 (clear_glyph_row): Only reset used counters and flags.
15532
15533Sat Jul 5 14:55:44 1997 Gerd Moellmann <gerd@acm.org>
15534
15535 * dispnew.c (scroll_frame_lines): Don't assume first scolled
427ec082 15536 line is non-empty.
26901792
DL
15537 (realloc_glyph_pool): Don't add 1 to the pool size.
15538 (adjust_glyph_matrix): Don't add 1 to pointers to glyph areas.
15539
15540 * dispnew.c (line_hash_code): Don't use null-glyph end marker.
15541 (line_draw_cost): Ditto.
15542 (update_line): Ditto.
15543 (update_line): Use SPACE_GLYPH.
15544 (count_blanks): Additional parameter LEN.
15545
15546 * xdisp.c (display_text_line): Use SPACE_GLYPH.
15547 (display_text_line): Don't add null-glyph end marker.
15548 (display_string): Use SPACE_GLYPH.
15549 (display_string): Don't use null-glyph end marker.
15550
15551 * term.c (clear_end_of_line): Use SPACE_GLYPH.
15552
15553 * dispnew.c (clear_glyph_row): Don't use null-glyph end markers.
15554 (fill_up_glyph_row_with_spaces): Ditto.
15555 (preserve_other_columns): Add SPACE_GLYPH at then end of desired
15556 rows, instead of null-glyphs.
15557 (direct_output_for_insert): Don't add null-glyph end marker.
15558
15559 * scroll.c (do_direct_scrolling): Change algorithm to construct
d7d0dac0 15560 vector of lines assigned. Call MIRRORED_LINE_DANCE:
26901792
DL
15561 (do_scrolling): Ditto.
15562
15563 * dispnew.c (mirror_line_dance): Mirror line assignments in a
d7d0dac0 15564 frame matrix in window matrices.
26901792 15565 (mirrored_line_dance): Do line assignments during scrolling.
d7d0dac0 15566 Maybe do corresponding assignments in window matrices.
26901792 15567 (check_window_matrix_pointers): Check that window rows and frame
d7d0dac0 15568 rows agree about glyph pointers.
26901792
DL
15569 (check_matrix_pointers): Ditto.
15570 (mirrored_make_current): Make a row of a desired matrix current;
d7d0dac0 15571 maybe mirror the operation in window matrices.
26901792 15572 (mirror_make_current): Make window desired matrix row current when
d7d0dac0 15573 frame matrix row was made current.
26901792
DL
15574
15575Fri Jul 4 13:27:46 1997 Gerd Moellmann <gerd@acm.org>
15576
15577 * dispnew.c (check_matrix_pointer_lossage): Check against
15578 pointer lossage in matrices.
15579 (get_glyph_matrix_row): Removed.
15580
15581 * scroll.c (do_scrolling): Simplified.
15582 (do_direct_scrolling): Simplified.
15583 (scrolling_1): Pass CURRENT_MATRIX instead of FRAME to
d7d0dac0 15584 DO_.*SCROLLING.
427ec082 15585
26901792
DL
15586
15587 * dispnew.c (ins_del_glyph_rows): Insert/delete rows in a matrix.
15588 (rotate_vector): Removed.
15589 (rotate_pointers): Removed.
15590 (scroll_frame_lines): Simplified.
15591
15592Thu Jul 3 13:54:21 1997 Gerd Moellmann <gerd@acm.org>
15593
15594 * dispextern.h (MATRIX_ROW_SWAP_CONTENTS): Removed.
15595
15596 * dispnew.c (increment_glyph_matrix_buffer_positions): Does
15597 what the name says.
15598 (clear_glyph_row): Make a glyph row structure empty.
15599 (make_matrix_row_current): Make a glyph row current.
15600 (make_window_matrix_row_current): Perform analogous row swaps
15601 for window matrices.
15602 (update_line): Call make_matrix_row_current.
15603
15604Wed Jul 2 13:43:35 1997 Gerd Moellmann <gerd@acm.org>
15605
15606 * dispextern.h (SET_MATRIX_ROW_ENABLED_P): Better macro name.
15607 (SET_MATRIX_ROW_INVERSE_P): Better name and HIGHLIGHT_P ->
15608 INVERSE_P.
15609 (MATRIX_ROW_INVERSE_P): Former MATRIX_ROW_HIGHLIGHT_P.
15610 (struct glyph_row): HIGHLIGHT_P -> INVERSE_P
15611
15612 * all files: use above new names.
15613
15614 * dispnew.c (scroll_frame_lines): Simplified. Use
d7d0dac0 15615 SCROLL_GLYPH_MATRIX.
26901792 15616 (make_glyph_row_empty): Mark a glyph row empty.
427ec082 15617 (increment_glyph_row_buffer_positions): Increment
26901792
DL
15618 buffer positions in a glyph row.
15619 (increment_glyph_matrix_buffer_positions): Increment buffer
15620 positions in a range of rows.
15621 (scroll_glyph_matrix): Scroll a glyph matrix.
15622 (swap_glyphs_in_rows): Swap glyphs between rows.
15623 (swap_glyph_pointers): Swap pointers between rows.
15624 (glyph_row_slice_p): Return 1 if one row is a slice of another.
15625 (init_display): Initialize SPACE_GLYPH.
15626 (fill_up_glyph_row_areas_with_spaces): Fill up areas with
427ec082 15627 spaces.
26901792
DL
15628
15629Tue Jul 1 13:49:55 1997 Gerd Moellmann <gerd@acm.org>
15630
15631 * xterm.c (dumprectangle): Use vectors in glyph rows.
15632
15633 * xdisp.c (display_text_line): Use vectors in glyph rows.
15634 (display_string): Ditto.
15635
15636 * scroll.c (do_scrolling): Use vectors in glyph rows.
15637 (do_direct_scrolling): Ditto.
15638
15639 * alloc.c (mark_object): Use vectors in glyph rows.
15640 Mark for all frame types.
15641
15642 * dispnew.c (adjust_glyph_matrix): Use vectors to glyphs in
15643 glyph rows.
15644 (get_glyph_matrix_row): Ditto.
15645 (matrix_row): Ditto.
15646 (rotate_pointers): Ditto.
15647 (scroll_frame_lines): Ditto.
15648 (preserve_other_columns): Ditto.
15649 (cancel_my_columns): Ditto.
15650 (update_line): Ditto.
15651 (direct_output_for_insert): Ditto.
15652
15653 * dispextern.h (struct glyph_row): Use a vector of pointers
d7d0dac0 15654 instead of individual members. Use a vector of used counters.
26901792
DL
15655 (MATRIX_ROW_SWAP_CONTENTS): Use vectors.
15656 (MATRIX_ROW_GLYPH_START): Ditto.
15657 (MATRIX_ROW_GLYPH_END): Ditto.
15658 (MATRIX_ROW_USED): Ditto.
15659 (MATRIX_ROW_SET_USED): Ditto.
15660
15661 * dispnew.c (line_hash_code): Simplified.
15662
15663Mon Jun 30 20:39:38 1997 Gerd Moellmann <gerd@acm.org>
15664
15665 * dispnew.c: Prototype for ROTATE_VECTOR, ROTATE_POINTERS,
15666 CHANGE_FRAME_SIZE_1
15667 (preserve_other_columns): Void return.
15668 (cancel_my_columns): Void return type.
15669 (scrolling): Int return type.
15670 (do_pending_window_change): Void return type.
15671 (change_frame_size): Ditto.
15672 (bitch_at_user): Ditto.
15673 (init_display): Ditto.
15674 (syms_of_display): Ditto.
15675
15676 * dispextern.h: add prototypes for REDRAW_FRAME,
d7d0dac0
SM
15677 REDRAW_GARBAGED_FRAMES, CANCEL_LINE, CLEAR_FRAME_RECORDS,
15678 INIT_DESIRED_GLYPHS, SCROLL_FRAME_LINES, PRESERVE_OTHER_COLUMNS,
15679 ADJUST_WINDOW_CHARSTARTS, CANCEL_MY_COLUMNS,
15680 DIRECT_OUTPUT_FOR_INSERT, DIRECT_OUTPUT_FORWARD_CHAR,
15681 UPDATE_FRAME, SCROLLING, BUFFER_POSN_FROM_COORDS,
15682 DO_PENDING_WINDOW_CHANGE, CHANGE_FRAME_SIZE, BITCH_AT_USER,
26901792 15683 SIT_FOR, INIT_DISPLAY, SYMS_OF_DISPLAY,
427ec082 15684
26901792 15685 * dispnew.c (redraw_frame): FRAME_PTR -> struct frame. Return
d7d0dac0 15686 void.
26901792
DL
15687 (cancel_line): Return void.
15688 (clear_frame_records): Return void.
427ec082 15689
26901792
DL
15690 * dispextern.h (struct glyph): Remove GLYPH, add bit-fields.
15691 (SET_CHAR_GLYPH): Fill a character glyph.
15692 (SET_CHAR_GLYPH_FROM_GLYPH): Set a character glyph from a GLYPH.
15693 (GLYPH_FROM_CHAR_GLYPH): Construct a GLYPH from a character
427ec082 15694 glyph.
26901792
DL
15695 (CHAR_GLYPH_CHAR_CODE): Return character code of a glyph.
15696 (SET_CHAR_GLYPH_CHAR_CODE): Set character code of a glyph.
15697 (CHAR_GLYPH_FACE_ID): Return face id of a glyph.
15698 (SET_CHAR_GLYPH_FACE_ID): Set face id of a glyph.
15699 (CHAR_GLYPH_PADDING_P): Return padding flag of a glyph.
15700 (SET_CHAR_GLYPH_PADDING_P): Set padding flag.
15701 (CHAR_GLYPH_REVERSE_P): Return reversed flag.
15702 (SET_CHAR_GLYPH_REVERSE_P): Set reversed flag.
15703 (MATRIX_ROW_SWAP_CONTENTS): Swap pointers between rows.
15704
15705 * term.c (reassert_line_highlight): Check CHARS_WASTED == 0.
15706
15707 * window.h (struct window): Add comment that no Lisp data may
d7d0dac0 15708 come below CURRENT_MATRIX.
26901792
DL
15709
15710 * alloc.c (mark_object): Change window mark code to stop with
d7d0dac0 15711 member CURRENT_MATRIX.
26901792
DL
15712
15713Sat Jun 28 13:54:55 1997 Gerd Moellmann <gerd@acm.org>
15714
15715 * scroll.c (do_scrolling): Change algorithm to use pointers.
15716 (do_direct_scrolling): Ditto.
15717
15718 * dispnew.c (get_glyph_matrix_row): Use pointers stored in rows.
15719 (new_glyph_pool): Formerly new_FRAME_GLYPH_MATRIX.
15720 (free_glyph_pool): Formerly FREE_FRAME_GLYPH_MATRIX
15721 (realloc_glyph_pool): Formerly REALLOC_FRAME_GLYPH_MATRIX.
d7d0dac0 15722 Returns 1 if pool changed.
26901792
DL
15723 (matrix_row): Additional check for lost pointers to glyph rows.
15724 (compute_matrices): Additional parameter DIM_P set means that no
d7d0dac0
SM
15725 allocation should take place. Addtional parameter
15726 ANY_WINDOWS_CHANGED_P set if any windows matrix has changed.
26901792 15727 (compute_leaf_matrix): Additional parameter CHANGED_P set to 1
d7d0dac0
SM
15728 when window matrix changes. Additional parameter DIM_ONLY_P set
15729 to 1 to indicate that no allocation should take place.
26901792 15730 (adjust_frame_glyphs): Construct new glyph pools and glyph
d7d0dac0 15731 matrices. Optimize frame redraws.
26901792
DL
15732 (free_glyphs): Free pools.
15733 (check_glyph_memory): Check pools not freed.
15734 (rotate_pointers): Rotate pointers in a vector of glyph rows.
15735 (scroll_frame_lines): Change algorithm to use pointers.
15736 (update_line): Ditto.
15737
15738 * dispextern.h (struct glyph_row): Use pointers to areas in a row.
15739 (global): All macro names changed from prefix FRAME_MATRIX to
d7d0dac0 15740 MATRIX.
26901792
DL
15741
15742Fri Jun 27 14:51:15 1997 Gerd Moellmann <gerd@acm.org>
15743
15744 * dispextern.h (struct glyph_pool): Replacement for former
15745 FRAME_GLYPH_MATRIX.
15746 (struct glyph_matrix): No longer contains sizes of allocated
15747 areas.
15748
15749 * xdisp.c (redisplay_internal): Don't redisplay if frame has
15750 no glyph pools.
15751
15752 * frame.c (make_frame): Initialize pools.
15753
15754Thu Jun 26 00:00:55 1997 Gerd Moellmann <gerd@acm.org>
15755
427ec082 15756 * scroll.c (do_direct_scrolling): Don't assume that the
26901792
DL
15757 line moving algorithm has no intermediate steps.
15758 (do_scrolling): Ditto.
15759
15760 * Makefile.in (alloc.o): Add dependency dispextern.h.
15761
15762 * alloc.c: Include dispextern.h for glyph definitions.
15763
15764 * dispnew.c (get_glyph_matrix_row): Return 1 if ROW_INDEX
15765 is legal, return 0 otherwise.
15766
15767 * window.h: Add comment that windows are marked specially.
15768
15769 * alloc.c (mark_object): Mark windows specially.
15770
15771
15772Wed Jun 25 15:22:58 1997 Gerd Moellmann <gerd@acm.org>
15773
15774 * dispextern.h (struct glyph): Add member OBJECT
15775 referencing a Lisp object from which a glyph was drawn.
15776 Member TEXT_POSITION renamed POSITION.
15777 * xterm.c, xdisp.c, dispnew.c: Rename TEXT_POSITION -> POSITION.
15778
15779 * alloc.c: Include dispextern.h
15780 (mark_object): Mark objects referenced from glyphs.
15781
f28eba7b 15782 * frame.c (make_frame): Initialize DECODE_MODE_SPEC_BUFFER.
26901792
DL
15783
15784 * scroll.c (do_direct_scrolling): Remove TEMP_MATRIX.
15785 (do_scrolling): Ditto.
15786
427ec082 15787 * frame.h (struct frame): TEMP_MATRIX removed.
26901792
DL
15788 DECODE_MODE_SPEC_BUFFER added.
15789
15790 * window.h: TEMP_MATRIX removed.
15791
15792 * scroll.c: OPHYS_LINES removed.
15793
15794 * dispnew.c: OPHYS_LINES and OPHYS_LINES_LENGTH removed.
15795 FRAME_PTR -> struct frame *.
15796
15797 * termhooks.h: Prototypes for INSERT_GLYPHS_HOOK,
15798 WRITE_GLYPHS_HOOK, DELETE_GLYPHS_HOOK,
15799
15800 * term.c: Prototypes for INSERT_GLYPHS_HOOK,
15801 WRITE_GLYPHS_HOOK, DELETE_GLYPHS_HOOK,
15802
15803 * xdisp.c (redisplay_internal): Remove call to VERIFY_CHARSTARTS.
15804 (do_verify_charstarts): Removed.
15805
15806 * frame.c (Fmake_terminal_frame): Adjust glyphs.
15807 (Fdelete_frame): Free glyphs.
15808 (make_frame): Initialize matrix fields in frame.
15809
f28eba7b 15810 * config.in (PROTO): Added.
26901792 15811
f28eba7b 15812 * emacs.c (shut_down_emacs): Check glyph memory.
26901792
DL
15813
15814 * window.c (Fdelete_window): Free window matrices.
15815 (Fset_window_configuration): Ditto.
15816 (Fdelete_window): Adjust glyphs.
15817 (Fsplit_window): Ditto.
15818 (change_window_height): Ditto.
15819 (Fset_window_configuration): Ditto.
15820 (make_window): Initialize DESIRED_MATRIX and CURRENT_MATRIX.
15821 (replace_window): Reset DESIRED_MATRIX and CURRENT_MATRIX
15822
15823 * Makefile.in (window.o): Add dependency window.c -> dispextern.h
15824
15825 * window.c: Include dispextern.h
15826
15827 * scroll.c (do_scrolling): Use new glyphs.
15828 (do_direct_scrolling): Ditto.
15829
15830 * xdisp.c: Some function prototypes.
15831 (redisplay_internal): Don't do anything if matrices not yet set.
15832 (redisplay_internal): Use new glyphs.
15833 (try_window_id): Ditto.
15834 (copy_part_of_rope): Ditto.
15835 (display_text_line): Ditto.
15836 (display_menu_bar): Ditto.
15837 (display_mode_line): Ditto.
15838 (display_string): Ditto.
15839
15840 * xterm.c: Prototypes for some local functions.
15841 (dumpglyphs): Use new glyphs.
15842 (XTwrite_glyphs): Ditto.
15843 (dumprectangle): Ditto.
15844 (note_mouse_highlight): Ditto.
15845 (fast_find_position): Ditto.
15846 (show_mouse_face): Ditto.
15847 (x_draw_single_glyph): Ditto.
15848 (x_display_bar_cursor): Ditto.
15849 (x_display_box_cursor): Ditto.
15850 (x_new_font): Adjust glyphs when font change.
15851
15852 * term.c (clear_end_of_line): Use new glyphs.
15853 (write_glyphs): Ditto.
15854 (insert_glyphs): Ditto.
15855
15856 * Makefile.in (term.o): term.c depends on dispextern.h
15857
15858 * term.c: Include dispextern.h
15859
15860 * dispnew.c (direct_output_forward_char): Old glyph functions
427ec082 15861 removed, new inserted.
26901792
DL
15862 (line_hash_code): Use new glyphs.
15863 (line_draw_cost): Ditto
15864 (cancel_line): Ditto
15865 (clear_frame_records): Ditto.
15866 (init_desired_glyphs): Ditto.
15867 (get_display_line): Ditto
15868 (scroll_frame_lines): Ditto.
15869 (preserve_other_columns): Ditto.
15870 (adjust_window_charstarts): Ditto.
15871 (cancel_my_columns): Ditto.
15872 (direct_output_for_insert): Ditto.
15873 (update_frame): Ditto.
15874 (quit_error_check): Made empty.
15875 (scrolling): Use new glyphs.
15876 (count_blanks): Ditto.
15877 (count_match): Ditto.
15878 (update_line): Ditto.
15879 (init_display): Adjust glyphs initially.
15880 (change_frame_size_1): Adjust glyphs.
15881
15882 * dispextern.h: Old glyphs removed, new added.
15883
15884 * xfaces.c (min_char_bounds): Get smallest char in loaded fonts.
15885
15886 * xterm.h: Prototype for min_char_bounds.
15887
15888 * window.h (struct window): Remove old glyphs, add new.
15889
15890 * frame.h (struct frame): Remove old glyphs, add new.
427ec082 15891
26901792
DL
158921999-07-20 Dave Love <fx@gnu.org>
15893
15894 * buffer.c (syms_of_buffer): Make
15895 default-enable-multibyte-characters a user variable.
15896
158971999-07-14 Richard Stallman <rms@gnu.org>
15898
15899 * Version 20.4 released.
15900
159011999-07-14 Richard Stallman <rms@gnu.org>
15902
15903 * filelock.c (lock_file): Do nothing if purifying.
15904
159051999-07-10 Richard Stallman <rms@gnu.org>
15906
15907 * xterm.c (x_display_bar_cursor): Use the cursor-color
15908 to display the bar, not the cursor foreground pixel.
15909
159101999-07-09 Andrew Innes <andrewi@gnu.org>
15911
15912 * w32console.c (w32_use_full_screen_buffer): New variable.
15913 (syms_of_ntterm): Register it.
15914 (initialize_w32_display): Set initial frame size accordingly,
15915 respecting the LINES and COLUMNS environment variables if set.
15916
15917 * w32inevt.c (w32_console_read_socket): Use it.
15918
159191999-07-07 Kenichi Handa <handa@etl.go.jp>
15920
15921 * callproc.c (Fcall_process): Decide coding system for decoding
15922 after we set to the target buffer. If the output goes to a
15923 unibyte buffer, suppress character code conversion.
15924
15925 * fileio.c (Finsert_file_contents): If reading into a unibyte
15926 buffer, suppress character code conversion.
15927
15928 * process.c (create_process): If the output goes to a unibyte
15929 buffer, suppress character code conversion.p
15930
159311999-07-07 Andreas Schwab <schwab@gnu.org>
15932
15933 * xdisp.c (line-number-display-limit): Doc fix.
15934
159351999-07-05 Richard Stallman <rms@gnu.org>
15936
15937 * callproc.c (Fcall_process): Don't use initializer on coding_systems.
15938 (Fcall_process_region): Likewise.
15939
159401999-07-01 Markus Rost <markus.rost@mathematik.uni-regensburg.de>
15941
15942 * callproc.c (init_callproc): Set exec_directory if
15943 installation_directory is non-nil, without a test of exec_path.
15944
159451999-07-01 Andrew Innes <andrewi@gnu.org>
15946
15947 * w32xfns.c (drain_message_queue): New function.
15948
15949 * w32term.h (drain_message_queue): Add extern.
15950
15951 * w32proc.c (sys_select): Call MsgWaitForMultipleObjects instead
15952 of WaitForMultipleObjects when user input is allowed, so we can
15953 handle incoming window messages. Call drain_message_queue when
15954 there are messages waiting; this ensures that windows created
15955 indirectly from the lisp thread get processed properly, and don't
15956 hang other applications by failing to respond to broadcasts.
15957
159581999-07-01 Andreas Schwab <schwab@gnu.org>
15959
15960 * callint.c (Fcall_interactively): Ignore first element of
15961 event-symbol-elements property.
15962
159631999-07-01 Richard Stallman <rms@gnu.org>
15964
15965 * fileio.c (Fread_file_name): Check type of DEFAULT_FILENAME.
15966
159671999-07-01 Kenichi Handa <handa@etl.go.jp>
15968
15969 * minibuf.c (read_minibuf): Set the multibyteness of the
15970 minibuffer before inserting `initial' string.
15971
159721999-06-30 Richard Stallman <rms@gnu.org>
15973
15974 * xfns.c (x_make_gc): Turn off GCStipple when setting up cursor_gc.
15975
159761999-06-29 Richard M. Stallman <rms@gnu.org>
15977
15978 * emacs.c [DOUG_LEA_MALLOC] (malloc_initialize_hook):
15979 Move the handling of MALLOC_CHECK_ envvar here.
15980 (main): Moved from here.
15981
159821999-06-29 Wolfram Gloger <wmglo@dent.med.uni-muenchen.de>
15983
15984 * emacs.c [DOUG_LEA_MALLOC] (malloc_initialize_hook): New
15985 function, assigned to the global __malloc_initialize_hook pointer.
15986 (main): Move malloc_set_state call into malloc_initialize_hook
15987 so that it happens as early as possible.
15988
159891999-06-27 Richard M. Stallman <rms@gnu.org>
15990
15991 * keyboard.c (read_key_sequence): Properly reinitialize
15992 fkey_map after translating thru Vkey_translation_map.
15993 After translating thru Vfunction_key_map, don't reset
15994 keytrans-start to 0.
15995
159961999-06-24 Geoff Voelker <voelker@cs.washington.edu>
15997
15998 * w32.c (get_emacs_configuration): Use GetVersionEx to
15999 handle NT5.0 correctly. Include build number in configuration.
16000 w32heap.c (osinfo_cache): New variable.
16001 (cache_system_info): Initialize osinfo_cache.
16002 w32heap.h (osinfo_cache): Declare.
16003
160041999-06-24 Richard M. Stallman <rms@gnu.org>
16005
16006 * casefiddle.c (casify_object): Use make_multibyte_string
16007 if we casify a multibyte string.
16008
160091999-06-22 Ken'ichi Handa <handa@gnu.org>
16010
16011 * fileio.c: (Finsert_file_contents): In the case of REPLACE, call
16012 del_range_byte instead of del_range_1, set `inserted' to the
16013 number of characters actually inserted.
16014
160151999-06-17 Dave Love <fx@gnu.org>
16016
16017 * coding.c (decode_coding_sjis_big5): Avoid compiler warning.
16018
160191999-06-18 Paul Eggert <eggert@twinsun.com>
16020
16021 * filelock.c (BOOT_TIME_FILE): New macro.
16022 (get_boot_time): Use it instead of hardwiring the file name.
16023 Check BOOT_TIME_FILE only after inspecting the kernel directly.
16024
160251999-06-17 Dave Love <fx@gnu.org>
16026
16027 * xdisp.c (invalid_eol_type): Make it unsigned.
16028
160291999-06-17 Karl Heuer <kwzh@gnu.org>
16030
16031 * process.c (send_process): Delete unsafe/redundant assignment.
16032
160331999-06-17 Jason Rumney <jasonr@gnu.org>
16034
16035 * w32term.c (dumprectangle): Handle wide characters properly.
16036
160371999-06-16 Andrew Innes <andrewi@gnu.org>
16038
16039 * s/ms-w32.h (strerror): Override the default implementation of
16040 strerror, so we can map winsock error codes.
16041
16042 * w32.c (sys_strerror): New function.
16043
16044 * w32fns.c (w32_to_x_weight): Return "demibold" instead of "semibold".
16045
160461999-06-15 Ken'ichi Handa <handa@gnu.org>
16047
16048 * buffer.c (syms_of_buffer): Don't make
16049 enable-multibyte-characters customizable.
16050
160511999-06-15 Richard M. Stallman <rms@gnu.org>
16052
16053 * editfns.c (Fuser_full_name): Doc fix.
16054
160551999-06-14 Tak Ota <ota@atc.sel.sony.com>
16056
16057 * w32bdf.c: (clear_cached_bitmap_slots): Remove.
16058 (get_bitmap_with_cache): Check if CreateBitmap failed.
16059 Adjust cache size dynamically so cache is never larger than the
16060 system limit of GDI resources.
16061 Do cache clearing inline. Move global variables to local scope.
16062
16063
160641999-06-13 Wolfgang Glas <Wolfgang.Glas@hfm.tu-graz.ac.at>
16065
16066 * unexsgi.c (unexec): Dump the .rodata section from memory
16067 under IRIX6.5 in order to be able to unexec with gcc.
16068
160691999-06-11 Greg Hudson <ghudson@MIT.EDU>
16070
16071 * indent.c (compute_motion): Fix boundary case.
16072
160731999-06-11 Jason Rumney <jasonr@altavista.net>
16074
16075 * w32term.c (cancel_mouse_face): New function. See equiv
16076 changes to xterm.c on 1996-10-31.
16077 (x_set_window_size): Use cancel_mouse_face.
d7d0dac0
SM
16078 (w32_read_socket): Use cancel_mouse_face.
16079 Update frame position when size is restored.
26901792
DL
16080
160811999-06-04 Richard M. Stallman <rms@gnu.org>
16082
16083 * lread.c (Vuser_init_file): New variable.
16084 (syms_of_lread): Set up Lisp variable.
16085 (Fload): Store the file name there, if var was t before.
16086
160871999-06-04 Paul Eggert <eggert@twinsun.com>
16088
16089 * filelock.c (get_boot_time): Don't look at /proc/uptime; it
16090 doesn't work if the system date is changed, or if the system
16091 is suspended. Look at the last-modified time of
16092 /var/run/random-seed instead.
16093
160941999-06-03 Ken'ichi Handa <handa@gnu.org>
16095
16096 * coding.c (ENCODE_SJIS_BIG5_CHARACTER): Encode charset
16097 japanese-jisx0208-1978 correctly.
16098
160991999-06-03 Andrew Innes <andrewi@gnu.org>
16100
16101 * unexw32.c (get_section_info) [_ALPHA_]: Force as much bss data
16102 as possible to be dumped, for safety.
16103
161041999-06-02 Ken'ichi Handa <handa@gnu.org>
16105
16106 * coding.c (ENCODE_SJIS_BIG5_CHARACTER): Encode charset
16107 latin-jisx0201 correctly.
16108
161091999-05-26 Ken'ichi Handa <handa@gnu.org>
16110
16111 * charset.h (Vcharset_table): Comment fixed.
16112
161131999-05-24 Richard Stallman <rms@gnu.org>
16114
16115 * coding.c (syms_of_coding): Doc fix.
16116
16117 * buffer.c (syms_of_buffer): Doc fix.
16118
16119 * filelock.c (lock_if_free): After deleting a stale lock,
16120 try again to lock the file.
16121
161221999-05-22 Andrew Innes <andrewi@gnu.org>
16123
16124 * w32inevt.c (maybe_generate_resize_event): Detect changes in the
16125 console window size.
16126 (w32_console_read_socket): Call maybe_generate_resize_event
16127 whenever input events are received, since we don't get told when
16128 the window size changes (as opposed to the buffer size, which we
16129 don't care about).
16130
16131 * w32console.c (clear_frame): Remember that the window width might
16132 be smaller than the screen buffer width.
16133 (write_glyphs): Remove redundant variable attrs. Use
16134 FillConsoleOutputAttribute instead of WriteConsoleOutputAttribute.
16135
161361999-05-20 Andrew Innes <andrewi@gnu.org>
16137
16138 * w32term.c (w32_read_socket): Reset the grabbed flag when a frame gains or
16139 loses focus.
16140
16141 * w32fns.c (w32_wnd_proc): Ensure mouse capture is released if
16142 frame loses focus, and that mouse button state is reset. Ditto
16143 when the menu bar is activated.
16144
161451999-05-18 Richard Stallman <rms@gnu.org>
16146
16147 * abbrev.c (Fdefine_abbrev): Doc fix.
16148
161491999-05-13 Paul Eggert <eggert@twinsun.com>
16150
16151 * filelock.c: Fix performance bug on hosts with large
16152 /var/adm/wtmp files with no boot records.
16153
16154 (boot_time_initialized): New var.
16155 (init_filelock): Initialize it.
16156 (get_boot_time): Use it, instead of nonzero boot_time,
16157 to test whether boot_time is initialized.
16158 Don't invoke utmp routines when dumping.
16159
16160 (get_boot_time): First, try to get the boot time from the
16161 current utmp file, as this can be much faster. Don't try to
16162 get the boot time from utmp and/or wtmp more than once.
16163
16164 (get_boot_time_1): When passed null pointer, don't invoke utmpname.
16165 New arg LATEST. All uses changed.
16166
161671999-05-15 Andrew Innes <andrewi@gnu.org>
16168
16169 * w32term.c (dumpglyphs): Use correct colours for drawing
16170 rectangles in place of missing fonts, and make them the right
16171 size.
16172
161731999-05-14 Dave Love <fx@gnu.org>
16174
16175 * syntax.c (Fparse_partial_sexp): Correct test for element 8 to be
16176 non-nil.
16177
161781999-05-11 Andrew Innes <andrewi@gnu.org>
16179
16180 * w32fns.c (x_to_w32_charset): Reinstall VIETNAMESE_CHARSET
16181 definition.
16182 (w32_wnd_proc): Reinstall debugging output.
16183 (w32_wnd_proc): Reinstall SetForegroundWindow change.
16184 (syms_of_w32fns): Reinstall new initializer for
16185 Vw32_phantom_key_code.
16186
16187 * w32fns.c (x_to_w32_charset): Do partial matching of charset
16188 names for most non-European charsets, to cope with wildcards or
16189 missing spec dates.
16190 (Fw32_send_sys_command): Post WM_SYSCOMMAND rather than sending it
16191 to avoid deadlock when activating the menu bar.
16192
161931999-05-10 Ken'ichi Handa <handa@gnu.org>
16194
16195 * search.c (boyer_moore): Get charset base value of `untranslated'
16196 by masking by ~CHAR_FIELD3_MASK (instead of ~0xff).
16197
161981999-05-10 Andreas Schwab <schwab@gnu.org>
16199
16200 * fileio.c (Fread_file_name): Correct handling of dollars in file
16201 names. Protect dollars in strings put on the file-name-history.
16202 Substitute homedir by `~' also in default_filename.
16203
16204 * xdisp.c (try_window_id): Fix computation of tab_offset when
16205 backing up over a character that is splitted across lines.
16206
162071999-05-08 Kenichi HANDA <handa@etl.go.jp>
16208
16209 * coding.c (code_convert_region): If eol format is inconsistent,
16210 change coding->symbol to the sibling coding system of Unix like
16211 eol format.
16212
162131999-05-09 Richard M. Stallman <rms@gnu.org>
16214
16215 * s/irix5-2.h (NO_WTMP_FILE): Define it.
16216
16217 * filelock.c (get_boot_time): Handle NO_WTMP_FILE.
16218
162191999-05-05 Andrew Innes <andrewi@gnu.org>
16220
16221 * w32fns.c (w32_strict_painting): New variable.
16222 (w32_wnd_proc): Use it to select repaint rules.
16223 (syms_of_w32fns): Defvar it.
16224
162251999-05-04 Andrew Innes <andrewi@gnu.org>
16226
16227 * w32fns.c (x_to_w32_charset): Fix typo: want to map all Japanese
16228 charsets to the standard Windows charset for Japanese.
16229
162301999-05-04 Ken'ichi Handa <handa@gnu.org>
16231
16232 * xterm.c (x_load_font): Fix typo (`>' -> `=').
16233
16234 * ccl.h (struct ccl_program): New member stack_idx.
16235
16236 * ccl.c (ccl_prog_stack_struct): Declare it as static.
16237 (ccl_driver): Setup stack_idx and ccl_prog correctly. Update them
16238 before returing.
16239 (setup_ccl_program): Initialize ccl->stack_idx to 0.
16240
162411999-05-03 Jason Rumney <jasonr@altavista.net>
16242
16243 * w32term.c (dumpglyphs): Always fill background for italic fonts.
16244
162451999-05-03 Eli Zaretskii <eliz@is.elta.co.il>
16246
16247 * dired.c (make_time): Make argument type be time_t.
16248
162491999-05-02 Eli Zaretskii <eliz@is.elta.co.il>
16250
16251 * msdos.c (unibyte_display_via_language_environment): Add extern.
16252
83c8f461 162531999-05-02 Richard M. Stallman <rms@gnu.org>
26901792
DL
16254
16255 * xdisp.c (display_text_line): Convert unibyte char to multibyte
16256 if unibyte_display_via_language_environment is set.
16257 (unibyte_display_via_language_environment):
16258 Variable moved from xfns.c and elsewhere.
16259 (syms_of_xfns): Set up Lisp var.
16260
16261 * xfns.c (unibyte_display_via_language_environment):
16262 Variable moved to xdisp.c.
16263 (syms_of_xfns): Don't set up Lisp var here.
16264
16265 * msdos.c (unibyte_display_via_language_environment):
16266 Variable moved to xdisp.c.
16267 (syms_of_msdos): Don't set up Lisp var here.
16268
16269 * w32fns.c (unibyte_display_via_language_environment):
16270 Variable moved to xdisp.c.
16271 (syms_of_w32fns): Don't set up Lisp var here.
16272
162731999-05-02 Andrew Innes <andrewi@gnu.org>
16274
16275 * s/ms-w32.h (HAVE_FSYNC): New macro.
16276 (fsync): Map to _commit.
16277 (ftruncate): Map to _chsize.
16278
16279 * w32term.c (dumpglyphs): On Windows NT, do output in Unicode even
16280 for ASCII, if enabled, to avoid memory allocation overhead for
16281 implicit Unicode conversion. Also, recognize that ASCII and
16282 Latin-1 have a trivial conversion to Unicode, so x_2byte_buffer
16283 already contains the Unicode characters in that case.
16284 (construct_drag_n_drop): Remove old code that was
16285 trashing the drop location.
16286
16287 * w32select.c (Fw32_set_clipboard_data): Undo last change to add
16288 nlines to encoding_buffer_size (real bug was in a ccl program in
16289 lisp/international/coding.el).
16290
16291 * w32reg.c (w32_get_string_resource): Check for name in current
16292 user area, and if not found look in the local machine area.
16293
16294 * w32fns.c (w32_list_bdf_fonts): Initialize n_fonts.
16295 (Fw32_shell_execute): New function; used to support browse-url.
16296 (syms_of_w32fns): Register it.
16297 (w32_load_system_font): Force max width to be average
16298 char width for fixed-pitch fonts, to avoid unnecessary redisplay
16299 slowdown.
16300 (x_to_w32_charset): Define VIETNAMESE_CHARSET if not
16301 already defined.
16302 (syms_of_w32fns): Set Vw32_phantom_key_code to 255.
16303
16304 * unexw32.c (get_section_info): Dump back the entire EMDATA
16305 section if we can put Emacs' initialized data in a separate
16306 section, otherwise use the my_begdata/my_edata method.
16307
16308 * makefile.nt ($(BLD)\w32term.obj): Add dependency on w32heap.h.
16309
16310 * coding.c (decode_eol): Set produced/consumed values to zero if
16311 src_bytes is <= 0 on entry.
16312
163131999-05-02 Jason Rumney <jasonr@altavista.net>
16314
16315 * w32term.c (w32_write_glyphs, w32_clear_end_of_line,
16316 w32_clear_frame, clear_cursor, x_display_bar_cursor,
16317 x_display_box_cursor, x_set_window_size): Use phys_cursor_on
16318 field in frame.
16319 (do_line_dance): Updated WRT xterm.c. Use macros where possible.
16320 (dumprectangle): Take into account the width of a left-side
16321 scroll bar.
16322
16323 * w32proc.c (sys_kill): Attach to current foreground thread
16324 when grabbing focus; necessary on NT 5.0.
16325
16326 * w32fns.c (w32_wnd_proc) [WM_PAINT]: Use rectangle from
16327 GetUpdateRect rather than BeginPaint.
16328 (w32_wnd_proc): Attach to current foreground thread
16329 when grabbing focus; necessary on NT 5.0.
16330 (w32_wnd_proc) [W32_DEBUG_DISPLAY]: Add output for
16331 debugging display messages.
16332 (w32_to_x_charset): Put wildcard last in unknown charsets to avoid
16333 false matching.
16334
163351999-05-02 Kenichi HANDA <handa@etl.go.jp>
16336
16337 * coding.c (setup_raw_text_coding_system): Call
16338 setup_coding_system to initialize the fields of struct
16339 coding_system correctly.
427ec082 16340
26901792
DL
163411999-04-26 Kenichi HANDA <handa@etl.go.jp>
16342
16343 * xterm.c (x_list_fonts): Fix previous change.
16344
163451999-04-26 Richard Stallman <rms@gnu.org>
16346
16347 * config.in (HAVE_LIBXP): Add #undef.
16348 * Makefile.in (LIB_MOTIF_EXTRA): Check HAVE_LIBXP.
16349
163501999-04-12 Ken'ichi Handa <handa@gnu.org>
16351
16352 * xterm.c (x_list_fonts): Trap X errors so that Emacs doesn't die
16353 by them.
16354
163551999-04-12 Karl Heuer <kwzh@gnu.org>
16356
16357 * s/freebsd.h (BSD_SYSTEM): Define for FreeBSD 4 as with FreeBSD 3.
16358
163591999-04-11 Ken'ichi Handa <handa@gnu.org>
16360
16361 * fontset.c (Fset_fontset_font): Fix previous change.
16362
163631999-04-09 Ken'ichi Handa <handa@gnu.org>
16364
16365 * fontset.c (Fquery_fontset): Check for fontset aliases here.
16366 (Fnew_fontset, Fset_fontset_font): Don't check for them here.
16367
163681999-04-08 Richard Stallman <rms@gnu.org>
16369
16370 * process.c (Faccept_process_output): Check validity of PROCESS.
16371
163721999-04-08 Eli Zaretskii <eliz@gnu.org>
16373
16374 * msdos.c (jp_kbd_translate_table): Fix the other \ key.
16375
163761999-04-07 Richard Stallman <rms@gnu.org>
16377
16378 * xfns.c (x_set_font): Fix error message.
16379
16380 * fontset.c (Fquery_fontset): Don't check for fontset aliases here.
16381 (Fnew_fontset, Fset_fontset_font): Check for them here.
16382 (Ffontset_info, Fnew_fontset, Fset_fontset_font):
16383 Fix error message syntax.
16384
16385 * buffer.c (Fmake_indirect_buffer): Copy multibyte status
16386 from the base buffer.
16387 (Fset_buffer_multibyte): Copy new multibyte status
16388 into the buffer's indirect buffers.
16389
163901999-04-07 Ken'ichi Handa <handa@gnu.org>
16391
16392 * fns.c (base64_encode_1): Don't add unnecessary newline at the
16393 tail.
16394
163951999-04-06 Richard Stallman <rms@gnu.org>
16396
16397 * dired.c (Ffile_attributes): Doc fix.
16398
16399 * keymap.c (Faccessible_keymaps): Really initialize i_byte.
16400 Convert 0200 to meta only in a unibyte string.
16401 (Fkey_description): Likewise.
16402
16403 * eval.c (do_autoload): Preserve match data.
16404
164051999-04-06 Kenichi HANDA <handa@etl.go.jp>
16406
16407 * w32fns.c (x_to_w32_font): Provide sufficient buffer to
16408 encode_coding to avoid carryover.
16409
16410 * coding.c: Add comments for decode_coding and encode_coding.
16411
16412 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>: Fix bug of handling
16413 a composite character by skipping its leading code.
16414 <CCL_WriteMultibyteChar2>: Handle non-ascii single byte character
16415 correctly.
16416
16417 * coding.c: Add comments for decode_coding and encode_coding.
16418
16419 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>: Fix bug of handling
16420 a composite character by skipping its leading code.
16421 <CCL_WriteMultibyteChar2>: Handle non-ascii single byte character
16422 correctly.
16423
164241999-04-06 Eli Zaretskii <eliz@gnu.org>
16425
16426 * msdos.c (dos_rawgetc): Don't zero out c if private translation
16427 table was used.
16428 (jp_kbd_translate_table): Support C-\.
16429 (it_kbd_translate_table): Map `>' correctly.
16430 (it_keyboard): Add `>'.
16431
164321999-04-06 Richard Stallman <rms@gnu.org>
16433
16434 * intervals.c (graft_intervals_into_buffer): Turn off
16435 inhibit_modification_hooks around calling Fset_text_properties.
16436
164371999-04-05 Kenichi HANDA <handa@etl.go.jp>
16438
16439 * xterm.c (dumpglyphs): Be sure to fill the whole background of
16440 glyphs.
16441
164421999-04-05 Eli Zaretskii <eliz@gnu.org>
16443
16444 * msdos.c (jp_kbd_translate_table): Fix last change.
16445
164461999-04-04 Eli Zaretskii <eliz@gnu.org>
16447
16448 * msdos.c (struct kbd_translate): New struct, for key translation
16449 tables private to certain national keyboard layouts.
16450 (struct dos_keyboard_map): Add a pointer to a private translation
16451 table.
16452 (jp_kbd_translate_table): Private table for the Japanese
16453 keyboard.
16454 (jp_keyboard): Japanese keyboard layout.
16455 (it_kbd_translate_table): Private table for the Italian keyboard.
16456 (it_keyboard): Use it_kbd_translate_table.
16457 (keyboard_layout_list): Add the Japanese keyboard.
16458 (dos_rawgetc): Use the keyboard-private translation table, if
16459 available.
16460 (abort) [__DJGPP_MINOR__ >= 2]: Raise SIGABRT.
16461
164621999-04-02 Kenichi HANDA <handa@etl.go.jp>
16463
16464 * xdisp.c (redisplay_window): When we call compute_motion with
16465 HPOS got from w->last_point_x, call it with DID_MOTION 1.
16466 (display_text_line): Stop the loop for processing overlay strings
16467 when we reach the right edge of the window.
16468
83c8f461 164691999-03-31 Richard M. Stallman <rms@gnu.org>
26901792
DL
16470
16471 * doc.c (get_doc_string): When UNIBYTE and DEFINITION are 0,
16472 let the data control whether string is unibyte.
16473
164741999-03-30 Richard M. Stallman <rms@gnu.org>
16475
16476 * macros.c (Fexecute_kbd_macro): Save real_this_command.
16477 (pop_kbd_macro): Restore the saved real_this_command.
16478 (Fcall_last_kbd_macro): Set real_this_command to the macro.
16479
164801999-03-26 Richard M. Stallman <rms@gnu.org>
16481
16482 * buffer.c (Fset_buffer_modified_p): Don't lock or unlock
16483 if buffer-file-name is nil.
16484
164851999-03-25 Jason Rumney <jasonr@altavista.net>
16486
16487 * w32select.c (Fw32_set_clipboard_data): Take into account line
16488 ends when calculating clipboard storage needed for non-ASCII text.
16489
164901999-03-25 Andrew Innes <andrewi@gnu.org>
16491
16492 * makefile.nt (PREPARED_HEADERS): Change name of paths.h to epaths.h.
16493 (epaths.h): Renamed from paths.h.
427ec082
SS
16494 (clean):
16495 ($(BLD)\filelock.obj):
16496 ($(BLD)\lread.obj):
26901792
DL
16497 ($(BLD)\w32fns.obj): Renamed paths.h to epaths.h.
16498
164991999-03-23 Ken'ichi Handa <handa@gnu.org>
16500
16501 * coding.c (encode_coding_iso2022): Initialize dummy arguments to
16502 ENCODE_ISO_CHARACTER for the previous change on this macro.
16503
165041999-03-23 Kenichi Handa <handa@etl.go.jp>
16505
16506 * xdisp.c (decode_mode_spec_coding): Handle integer value in
16507 eoltype correctly for backward compatibility.
16508
165091999-03-20 Kenichi HANDA <handa@etl.go.jp>
16510
16511 * coding.c (ENCODE_ISO_CHARACTER): Check validity of CHARSET. If
16512 invalid, produce the buffer internal byte sequence without encoding.
16513
165141999-03-19 Karl Heuer <kwzh@gnu.org>
16515
16516 * editfns.c (Fformat): Accept %i format.
16517
165181999-03-17 Karl Heuer <kwzh@gnu.org>
16519
16520 * filelock.c (get_boot_time): Test tempname, not filename.
16521
165221999-03-17 Jason Rumney <jasonr@altavista.net>
16523
e5619f6b
JR
16524 * w32bdf.h: Merged patches from Meadow; introduce bitmap cache to
16525 speed display.
16526
16527 * w32bdf.c: Merged patches from Meadow; introduce bitmap cache to
16528 speed display.
16529 (get_cached_font_char, cache_char_offset, get_bitmap_with_cache)
16530 New functions.
16531 (w32_free_bdf_font, seek_char, w32_get_bdf_glyph, w32_BDF_TextOut)
16532 Use bitmap cache.
26901792
DL
16533
16534 * w32fns.c (enum_font_cb2): Set the font height to be the
16535 character height, not the cell height.
16536 (Fw32_select_font): Initialize font dialog with current default font.
16537 (Vw32_system_coding_system): New variable.
16538 (w32_strict_filenames): Add comment.
16539 (w32_to_x_font): Decode font name using Vw32_system_coding_system.
427ec082 16540 (x_to_w32_font): Encode font name using Vw32_system_coding_system.
26901792
DL
16541 (syms_of_w32fns): Add w32-system-coding-system.
16542
165431999-03-15 Richard M. Stallman <rms@gnu.org>
16544
16545 * xterm.c (XTread_socket) <ConfigureNotify>:
16546 If cursor pos is outside the new frame size, mark cursor as off.
16547
165481999-03-14 Ken'ichi Handa <handa@gnu.org>
16549
16550 * xdisp.c (try_window_id): Initialize val.ovstring_chars_done to 0.
16551
16552 * xterm.c (x_load_font): Trap X errors so that Emacs doesn't die
16553 by them.
16554
165551999-03-14 Richard M. Stallman <rms@gnu.org>
16556
16557 * macros.c (Fexecute_kbd_macro): Initialize executing_macro_iterations
16558 at beginning.
16559
165601999-03-14 Jason Rumney <jasonr@altavista.net>
16561
16562 * w32fns.c (w32_strict_fontnames): New variable.
16563 (Fx_create_frame): Formatting fix.
16564 (w32_load_system_font): Keep trying to load non-existant font
16565 if w32_strict_fontnames is nil. Formatting fix.
16566 (syms_of_w32fns): Add w32-strict-fontnames.
16567
16568 * w32term.c (W32_TEXTOUT): Do not multiply nchars by charset_dim.
16569 (dumpglyphs): Formatting fixes.
16570
165711999-03-14 Geoff Voelker <voelker@cs.washington.edu>
16572
16573 * w32fns.c (w32_wnd_proc): Handle WM_GETMINMAXINFO message.
16574
165751999-03-10 Karl Heuer <kwzh@gnu.org>
16576
16577 * puresize.h (BASE_PURESIZE): Increase to 505000.
16578
165791999-03-09 Richard M. Stallman <rms@gnu.org>
16580
16581 * emacs.c (main) [CLASH_DETECTION]: Call init_filelock.
16582
16583 * filelock.c (init_filelock): New function.
16584
165851999-03-09 Dave Love <fx@gnu.org>
16586
16587 * fileio.c (Ffile_directory_p): Doc fix.
16588
83c8f461 165891999-03-05 Richard M. Stallman <rms@gnu.org>
26901792
DL
16590
16591 * coding.c (setup_coding_system): Check for CODING_SYSTEM = nil.
16592
165931999-03-08 Richard M. Stallman <rms@gnu.org>
16594
16595 * filelock.c (get_boot_time): Reduce scope of #ifdef BOOT_TIME
16596 to only the part that uses get_boot_time_1.
16597
165981999-03-07 Dave Love <fx@gnu.org>
16599
16600 * fileio.c (Finsert_file_contents): Use xfree.
16601
166021999-03-06 Kenichi Handa <handa@etl.go.jp>
16603
16604 * Makefile.in (callproc.o, coding.o, fileio.o, msdos.o, process.o,
16605 term.o, xselect.o): Depend on ccl.h.
16606
166071999-03-05 Geoff Voelker <voelker@cs.washington.edu>
16608
16609 * makefile.nt: Remove common multiple file compilation commands.
16610
166111999-03-04 Takeshi YAMADA <yamada@cslab.kecl.ntt.co.jp>
16612
16613 * fns.c (Fbase64_encode_string): Allocate sufficient memory for
16614 newlines added when the arg NO-LINE-BREAK is nil.
16615
166161999-03-04 Karl Heuer <kwzh@gnu.org>
16617
16618 * search.c (Fstring_match, Fposix_string_match): Doc fix.
16619
16620 * buffer.c (syms_of_buffer): Doc fix for case-fold-search.
16621
166221999-03-04 Dave Love <fx@gnu.org>
16623
16624 * term.c (term_init): Use xmalloc, not malloc.
16625
16626 * callproc.c (Fcall_process): Use xmalloc, xfree.
16627
166281999-03-03 Andreas Schwab <schwab@gnu.org>
16629
16630 * eval.c (Fdefconst): Doc fix.
16631
166321999-03-01 Kenichi Handa <handa@etl.go.jp>
16633
16634 * coding.c: Comment for ISO 2022 encoding mechanism modified.
16635
166361999-03-01 Eli Zaretskii <eliz@gnu.org>
16637
16638 * w16select.c (get_clipboard_data): Always stop at the first null byte.
16639
166401999-02-28 Richard M. Stallman <rms@gnu.org>
16641
16642 * filelock.c (get_boot_time): Support FreeBSD way to read boot-time.
16643
16644 * cmds.c (internal_self_insert): Calculate column properly
16645 in overwrite-of-tab case.
16646
166471999-02-27 Andreas Schwab <schwab@gnu.org>
16648
16649 * emacs.c (main) [DOUG_LEA_MALLOC]: Don't use unsetenv, it calls
16650 malloc in glibc 2.1.
16651
166521999-02-26 Richard Stallman <rms@gnu.org>
16653
16654 * Makefile.in: paths.h and paths.in renamed to epaths.h and epaths.in.
16655
16656 * epaths.in: Renamed from paths.in.
16657 This avoids a conflict with a system header file paths.h on GNU/Linux.
16658
16659 * callproc.c, lread.c, w32fns.c, xfns.c, xrdb.c:
16660 Use epaths.h istead of paths.h.
16661
166621999-02-26 Andreas Schwab <schwab@gnu.org>
16663
16664 * emacs.c (main) [DOUG_LEA_MALLOC]: Work around a bug in glibc's
16665 malloc.
16666
166671999-02-25 Dave Love <fx@gnu.org>
16668
16669 * buffer.c (syms_of_buffer): Doc fix for enable-multibyte-characters.
16670
166711999-02-25 Richard Stallman <rms@gnu.org>
16672
16673 * filelock.c (get_boot_time): Use WTMP_FILE for file name.
16674 (WTMP_FILE): Default definition in case not defined.
16675 (get_boot_time_1): Test that file exists before trying to read it.
427ec082 16676
26901792
DL
166771999-02-25 Ken'ichi Handa <handa@gnu.org>
16678
16679 * keymap.c (push_key_description): If enable-multibyte-characters
16680 is nil and C is single byte, push C as is.
16681
166821999-02-24 Kenichi Handa <handa@etl.go.jp>
16683
16684 * keymap.c (push_key_description): If enable-multibyte-characters
16685 is non-nil, try to convert unibyte character to multibyte. For
16686 invalid multibyte character, show all bits by octal form.
16687 (Fsingle_key_description): Check the validity of charset for a
16688 generic character.
16689
166901999-02-23 Richard M. Stallman <rms@gnu.org>
16691
16692 * fileio.c (Ffile_regular_p): Undo previous change.
16693
16694 * eval.c (Fdefconst): Doc fix.
16695
16696 * filelock.c (get_boot_time): Don't use BUFSIZ.
16697
166981999-02-22 Andrew Innes <andrewi@gnu.org>
16699
16700 * makefile.nt ($(BLD)\w32bdf.obj): Add missing continuation character.
16701 (EXTRA_LINK): Do version test with strings.
16702
167031999-02-22 Andreas Schwab <schwab@gnu.org>
16704
16705 * fns.c (Fbase64_encode_string): Fix last change.
16706
16707 * termhooks.h (event_kind): Add user_signal.
16708
16709 * keyboard.c (Qusr1_signal, Qusr2_signal): New variables.
16710 (syms_of_keyboard): Initialize them.
16711 (lispy_user_signals): New variable.
16712 (make_lispy_event): Handle user_signal event type.
16713
16714 * emacs.c: Don't define Qusr1_signal and Qusr2_signal.
16715 (syms_of_emacs): Don't initialize them.
16716 (handle_USR1_signal, handle_USR2_signal): Set event type to
16717 user_signal instead of non_ascii_keystroke, and use plain integers
16718 as code instead of Lisp symbols.
16719
167201999-02-21 Eli Zaretskii <eliz@delysid.gnu.org>
16721
16722 * fileio.c: (lstat) [!S_ISLNK]: Use stat instead of lstat.
16723
167241999-02-21 Richard Stallman <rms@gnu.org>
16725
16726 * filelock.c (get_boot_time_1): Put this in #ifdef BOOT_TIME.
16727
16728 * print.c (print_error_message): Don't crash if (cdr data)
16729 is not a list.
16730
167311999-02-21 Eli Zaretskii <eliz@gnu.org>
16732
16733 * fileio.c (lstat) [!S_ISLNK]: Use stat instead of lstat.
16734
167351999-02-20 Andrew Innes <andrewi@gnu.org>
16736
16737 * vm-limit.c (memory_warnings) [WINDOWSNT]: Reset lim_data on each
16738 run, since size can vary from run to run.
16739
16740 * makefile.nt (EXTRA_LINK, LINK_FLAGS): Ensure base relocation
16741 data is included, to enable profiling.
16742 ($(EMACS)): Map file not needed for emacs.exe.
16743
16744 * emacs.c (main): [!SYSTEM_MALLOC]: Call realloc and free as well
16745 as malloc before calling uninterrupt_malloc, for consistency.
16746 This also enables profiling to work on WINDOWSNT.
16747
167481999-02-18 Richard Stallman <rms@gnu.org>
16749
16750 * Makefile.in (emacs.o): Depend on termhooks.h.
16751 (filelock.o): Depend on systime.h.
16752
167531999-02-18 Ken'ichi Handa <handa@gnu.org>
16754
16755 * coding.c (Fdecode_sjis_char): Use %x for formatting error message.
16756 (Fdecode_big5_char): Likewise.
16757
167581999-02-17 Richard Stallman <rms@gnu.org>
16759
16760 * insdel.c (adjust_markers_for_replace): When doing an insertion
16761 (replacing a region of zero length), handle markers at the
16762 insertion point properly.
16763
167641999-02-17 Andrew Innes <andrewi@gnu.org>
16765
16766 * w32fns.c (Vw32_quit_key): New variable.
16767 (post_character_message): Use it.
16768 (syms_of_w32fns): DEFVAR it.
16769
167701999-02-16 MORIOKA Tomohiko <morioka@jaist.ac.jp>
16771
16772 * fns.c (Fbase64_encode_string): New optional argument `NO_LINE_BREAK'.
16773
167741999-02-16 Richard Stallman <rms@gnu.org>
16775
16776 * filelock.c (within_one_second): New function.
16777 (current_lock_owner): Use that.
16778 (get_boot_time): Use /proc/uptime if available.
16779 Otherwise, if nothing found in wtmp, try wtmp.1.gz and so on.
16780 (get_boot_time_1): New subroutine taken from get_boot_time.
427ec082 16781
26901792
DL
167821999-02-16 Richard Stallman <rms@gnu.org>
16783
16784 * emacs.c (Qusr1_signal, Qusr2_signal): New variables.
16785 (syms_of_emacs): Init and staticpro them.
16786 (handle_USR1_signal): Don't run any code, just queue up an event.
16787 (handle_USR2_signal): Likewise.
16788
167891999-02-16 Eli Zaretskii <eliz@gnu.org>
16790
16791 * dired.c (Ffile_attributes): If the file's size doesn't fit in
16792 an integer, return it as a float. Doc string fixed.
16793
167941999-02-16 Richard Stallman <rms@gnu.org>
16795
16796 * emacs.c (Qusr1_signal, Qusr2_signal): New variables.
16797 (syms_of_emacs): Init and staticpro them.
16798 (handle_USR1_signal): Don't run any code, just queue up an event.
16799 (handle_USR2_signal): Likewise.
16800
168011999-02-15 Kenichi Handa <handa@etl.go.jp>
16802
16803 * coding.c (Fdecode_sjis_char, Fencode_sjis_char): Handle
16804 ASCII correctly. Signal error on invalid characters.
16805 (Fdecode_big5_char, Fencode_big5_char): Likewise.
16806
168071999-02-15 Eli Zaretskii <eliz@gnu.org>
16808
16809 * w16select.c (get_clipboard_data): Work around a bug in Windows95
16810 DOS box which doubles the reported size of text in the clipboard.
16811
168121999-02-15 Kenichi Handa <handa@etl.go.jp>
16813
16814 * coding.c (decode_coding_iso2022): Don't set
16815 coding->composed_chars to 0 here.
16816 (setup_coding_system): Set coding->composed_chars to 0 here.
16817
168181999-02-10 Richard Stallman <rms@gnu.org>
16819
16820 * fileio.c (Ffile_regular_p): Use lstat.
16821
168221999-02-09 Richard Stallman <rms@gnu.org>
16823
16824 * unexelf.c (HAS_SBSS_SECTION): Define this in some cases.
16825 (unexec): Test this instead of specific systems.
16826
16827 * m/macppc.h: New file.
16828
168291999-02-08 Dave Love <fx@gnu.org>
16830
16831 * fns.c (Fyes_or_no_p, Fy_or_n_p): Doc fix.
16832
168331999-02-08 Ken'ichi Handa <handa@gnu.org>
16834
16835 * coding.c (ccl_coding_driver): On encoding, coding->produced_char
16836 should be set to coding->produced.
16837
168381999-02-07 Paul Fisher <rao@gnu.org>
16839
16840 * fns.c (IS_BASE64_IGNORABLE, READ_QUADRUPLET_BYTE): New macros.
16841 (base64_decode_1): Use READ_QUADRUPLET_BYTE.
16842
168431999-02-07 Markus Rost <markus.rost@mathematik.uni-regensburg.de>
16844
16845 * editfns.c (Fformat): Doc fix.
16846
168471999-02-06 Richard Stallman <rms@gnu.org>
16848
16849 * process.c (syms_of_process): defsubr it.
16850 (Fprocess_running_child_p): New function.
16851
168521999-02-05 Andrew Innes <andrewi@gnu.org>
16853
16854 * w32term.c (construct_drag_n_drop): Call DraqQueryPoint before
16855 recording drop position.
16856
168571999-02-05 Ken'ichi Handa <handa@gnu.org>
16858
16859 * coding.c (encode_coding_iso2022): Before writing out an invalid
16860 code, reset graphic planes and registers if necessary.
16861
16862 * term.c (encode_terminal_code): Fix previous change.
16863
168641999-02-04 Eli Zaretskii <eliz@gnu.org>
16865
16866 * w16select.c (last_clipboard_text, clipboard_storage_size): New
16867 static variables.
16868 (set_clipboard_data): Save a copy of the text we put into
16869 clipboard in last_clipboard_text.
16870 (get_clipboard_data): If the clipboard text is identical to what
16871 last_clipboard_text holds, pretend there's no data in the clipboard.
16872
168731999-02-03 Richard Stallman <rms@gnu.org>
16874
16875 * s/gnu.h (NLIST_STRUCT): Add #undef.
16876
168771999-02-03 Eli Zaretskii <eliz@gnu.org>
16878
16879 * w16select.c (Fw16_set_clipboard_data): When the text needs to be
16880 encoded, set its pointer and size as returned by encode_coding.
16881
168821999-02-02 Ken'ichi Handa <handa@gnu.org>
16883
16884 * fns.c (Fset_char_table_default): To handle the case that CH is
16885 an ASCII char, use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
16886
168871999-02-02 Andrew Innes <andrewi@gnu.org>
16888
16889 * w32fns.c (syms_of_w32fns): Change default value of
16890 w32-mouse-move-interval to 0, so that the mouse wheel/rocker on
16891 some mice works properly.
16892
168931999-02-02 Eli Zaretskii <eliz@gnu.org>
16894
16895 * w16select.c (set_clipboard_data): Correctly null-terminate the
16896 string to be put into the Windows clipboard. Use xbuf_addr.
16897
168981999-02-01 Richard Stallman <rms@gnu.org>
16899
16900 * buffer.c (Fset_buffer_multibyte): Error if buffer is indirect.
16901
169021999-01-31 Richard Stallman <rms@gnu.org>
16903
16904 * process.c (process_send_signal): If CURRENT_GROUP is `lambda'
16905 then don't send the signal if the shell owns the terminal.
16906 (Finterrupt_process): Doc change.
427ec082 16907
26901792
DL
169081999-01-31 Andrew Innes <andrewi@gnu.org>
16909
16910 * unexw32.c: (ROUND_UP_DST_AND_ZERO): New macro.
16911 (copy_executable_and_dump_data): Use it to ensure alignment slop
16912 is zeroed.
16913
169141999-01-30 Andrew Innes <andrewi@gnu.org>
16915
16916 * w32.c (init_environment): Change argv[0] to contain the full
16917 path to Emacs.
16918
16919 * emacs.c (main) [WINDOWSNT]: Pass argv to init_environment.
16920
169211999-01-29 Ken'ichi Handa <handa@gnu.org>
16922
16923 * xterm.c (x_new_fontset): For ASCII font, don't use the font name
16924 returned by x_new_font (the resolved one) but use the font name
16925 set in the fontset specification.
16926 (x_load_font): For the height of font, if normarl ascent and
16927 descent value are larger than those in max_bounds field, use the
16928 former.
16929
169301999-01-28 Eli Zaretskii <eliz@gnu.org>
16931
16932 * xdisp.c (decode_mode_spec_coding): Fix previous change.
16933
169341999-01-27 Geoff Voelker <voelker@cs.washington.edu>
16935
16936 * makefile.nt: Use full path to temacs.exe when dumping.
16937
169381999-01-27 Jason Rumney <jasonr@altavista.net>
16939
16940 * w32fns.c (w32_load_system_font): Do not load unlisted fonts if
16941 list was reliable.
16942 (enum_fontex_cb1, enum_fontex_cb2): New functions.
16943 (w32_list_bdf_fonts): New parameter; max_names. Callers updated.
16944 (w32_list_synthesized_fonts): New function.
16945 (w32_list_fonts): Use maxnames. Use EnumFontFamiliesEx when
16946 available instead of EnumFontFamilies. List synthesized fonts if
16947 Vw32_enable_italics is non-nil.
427ec082 16948
26901792
DL
169491999-01-27 Richard Stallman <rms@gnu.org>
16950
16951 * s/ptx4.h (SETUP_SLAVE_PTY): Use the ptem module if it exists.
16952 Don't complain if ttcompat does not exist.
16953
16954 * w32fns.c (x_set_frame_parameters): gcpro as needed.
16955
169561999-01-27 Andrew Innes <andrewi@gnu.org>
16957
16958 * w32fns.c (w32_wnd_proc): Fix bug introduced by previous change;
16959 the lwindow, rwindow and apps keys could not be used as function
16960 keys, because they were being passed to TranslateMessage which
16961 ignores them. Also, key was being changed to SPC.
16962
16963 * makefile.nt: Do make version comparison as strings.
16964
169651999-01-27 Eli Zaretskii <eliz@gnu.org>
16966
16967 * coding.c (syms_of_coding): eol-mnemonic-* variables are now
16968 strings, not characters.
16969
16970 * coding.h: Likewise.
16971
16972 * xdisp.c (decode_mode_spec_coding): Display the EOL type as a
16973 string.
16974
169751999-01-26 Dave Love <fx@gnu.org>
16976
16977 * emacs.c (main): Up-date copyright.
16978
169791999-01-25 Dave Love <fx@gnu.org>
16980
16981 * coding.c (syms_of_coding): Doc fix for inhibit-eol-conversion.
16982
169831999-01-25 Andreas Schwab <schwab@gnu.org>
16984
16985 * eval.c (Fsignal): Move comment to avoid confusing make-docfile.
16986
169871999-01-23 Richard M. Stallman <rms@borg.ai.mit.edu>
16988
16989 * xfns.c (x_set_frame_parameters): gcpro as needed.
16990
16991 * window.c (Fset_window_point): If WINDOW is selected but the
16992 current buffer is not its buffer, don't use Fgoto_char.
16993
169941999-01-22 Richard M. Stallman <rms@gnu.org>
16995
16996 * syntax.c (scan_sexps_forward): Delete duplicate code
16997 to set prev_from_syntax, above start of main loop.
16998 At startinstring, check syntax when checking for a match.
16999
170001999-01-22 Jason Rumney <jasonr@altavista.net>
17001
17002 * w32bdf.c: New file.
17003 * w32bdf.h: New file.
17004 * makefile.nt: Add w32bdf.c and w32bdf.h.
17005
17006 * w32gui.h: Include w32bdf.h.
17007 (W32FontStruct) Add bdf element.
17008
17009 * w32term.h (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_MAX_WIDTH):
17010 Support BDF fonts.
17011
17012 * w32term.c (W32_TEXTOUT): New macro.
17013 (dumpglyphs): Support BDF fonts. Use W32_TEXTOUT macro.
17014 Simplify baseline calculation. Detect SJIS by font, not glyph.
17015 Call SetTextAlign.
17016 (syms_of_w32term): Remove "jisx0212-sjis" from
17017 w32-charset-to-codepage-alist.
17018 Replace "ksc5601" with "ksc5601.1987" in w32-charset-to-codepage-alist.
17019 Add "ksc5601.1992' to w32-charset-to-codepage-alist.
427ec082 17020
26901792
DL
17021 * w32fns.c (Vw32_bdf_filename_alist): New variable.
17022 (x_destroy_bitmap): Returns void not int.
17023 (x_set_border_pixel): Returns void.
17024 (w32_load_bdf_font): New function.
17025 (w32_load_system_font): New function, was w32_load_font. List
17026 fonts before loading. Explicitly set encoding for SJIS fonts.
17027 Set default_ascent to 0 as comment indicates.
17028 (w32_load_font): Call w32_load_system_font and w32_load_bdf_font.
17029 (w32_unload_font): Support BDF fonts.
17030 (w32_to_x_charset): Fix mappings to avoid wildcard mismatches.
17031 Autodetect whether to use koi8-r instead of iso8859-5.
17032 Associate "ksc5601.1987" with HANGUEL_CHARSET.
17033 Associate "ksc5601.1992" with JOHAB_CHARSET.
17034 (x_to_w32_charset): Make consistent with w32_to_x_charset.
17035 (w32_to_x_font): Add resolution.
17036 (x_to_w32_font): Use font resolution to calculate height if supplied.
17037 (w32_font_match): Handle wildcards anywhere within field.
17038 (enumfont_t): Remove unused head pointer.
17039 (enum_font_cb2): Dereference elfLogFont.
17040 (w32_list_bdf_fonts): New function.
17041 (w32_list_fonts): Use one_w32_dispay_info instead of insisting on
17042 valid frame. Remove MessageBox. Support BDF fonts.
17043 (Fw32_find_bdf_fonts): New function.
17044 (syms_of_w32fns): Add Vw32_bdf_filename_alist and
17045 Sw32_find_bdf_fonts.
17046
170471999-01-21 Andrew Innes <andrewi@gnu.org>
17048
17049 * makefile.nt (temacs): Use del to delete file, not rm.
17050
170511999-01-19 Richard Stallman <rms@psilocin.ai.mit.edu>
17052
17053 * keyboard.c (read_key_sequence): Fix previous change.
17054
17055 * xterm.c (same_x_server): Detect treat ":0" and "unix:0"
17056 as the same. Treat "myname:0" as the same as those two.
17057
170581999-01-19 Jason Rumney <jasonr@altavista.net>
17059
17060 * w32fns.c (x_to_w32_charset): Add iso8859-9.
17061 (w32_to_x_charset): Fix charset mappings.
17062
17063 * w32term.c: Remove codepage macros. Remove redundant BIG5 macros.
17064 (dumpglyphs): Move definitions out of block containing goto.
17065 Remove redundant code for BIG5.
17066 Use w32_codepage_for_font instead of
17067 w32_codepage_for_charset. Add cast to int where float
17068 operation is assigned to int.
17069 (Vw32_charset_to_codepage_alist): New variable.
17070 (w32_codepage_for_charset): Removed.
427ec082
SS
17071 (w32_codepage_for_font): New function, replacing
17072 w32_codepage_for_charset.
26901792
DL
17073 (syms_of_w32term): Add and initialize
17074 w32-charset-to-codepage-alist.
17075
170761999-01-17 Richard Stallman <rms@psilocin.ai.mit.edu>
17077
17078 * xselect.c (x_handle_selection_clear): Don't clear the
17079 selection if Emacs still owns it through a different display.
17080
170811999-01-17 Andrew Innes <andrewi@gnu.org>
17082
17083 * w32proc.c: (w32_executable_type): Relax the check to identify
17084 cygwin-compiled applications, because the exact dll name varies
17085 with release. Now only require the name to start "cygwin".
17086
17087 * w32heap.h: (ROUND_UP):
17088 (ROUND_DOWN): New macros.
17089 (need_to_recreate_heap): Renamed to using_dynamic_heap.
17090 (init_heap): New extern.
17091 (data_region_size):
17092 (recreate_heap):
17093 (read_in_bss):
17094 (map_in_heap):
17095 (round_to_next):
17096 (w32_fatal_reload_error):
17097 (get_section_size): Obsolete externs removed.
17098
17099 * w32heap.c: (RVA_TO_PTR): Redefine to convert RVA to address in
17100 current process.
17101 (round_to_next): Obsolete function removed.
17102 (preload_heap_section): New variable.
17103 (data_region_size): Obsolete variable removed.
17104 (allocate_heap): Modified to determine end of static heap section
17105 used during preload, and use that as initial base address for
17106 dynamic heap instead of hard-coded value.
17107 (sbrk): Remove call to allocate_heap; handled by init_heap. Skip
17108 calls to commit or decommit pages when allocating from static heap
17109 section during preload.
17110 (recreate_heap): Obsolete function removed.
17111 (init_heap): New function to initialize internal sbrk heap
17112 variables. Uses static heap section during preload, otherwise
17113 calls allocate_heap to reserve a heap region dynamically.
17114 (round_heap): Use ROUND_UP macro instead of round_to_next.
17115
17116 * unexw32.c: Major rewrite to support cleaner method of dumping; a
17117 static "bss" section is used for heap space during preload, and
17118 bss data is now written to the proper section area when dumping.
17119 (need_to_recreate_heap): Renamed to using_dynamic_heap.
17120 (heap_index_in_executable): Obsolete variable removed.
17121 (data_section): New variable.
17122 (data_start_va): Renamed to data_start.
17123 (data_start_file): Obsolete variable removed.
17124 (bss_section):
17125 (extra_bss_size):
17126 (bss_section_static):
17127 (bss_start_static):
17128 (bss_size_static):
17129 (extra_bss_size_static):
17130 (heap_section): New variables.
17131 (_start): Remove code based on old unexec method. Call init_heap
17132 to initialize sbrk heap.
17133 (close_file_data): Update size of file when closing, so that
17134 unexec doesn't have to work out exact size in advance.
17135 (get_bss_info_from_map_file):
17136 (get_section_size): Obsolete functions removed.
17137 (rva_to_section): Fix minor bug, and add a work-around for a bug
17138 in very old linkers.
17139 (offset_to_section):
17140 (relocate_offset): New functions.
17141 (OFFSET_TO_RVA):
17142 (RVA_TO_OFFSET):
17143 (RVA_TO_SECTION_OFFSET):
17144 (PTR_TO_RVA):
17145 (PTR_TO_OFFSET):
17146 (OFFSET_TO_PTR): New macros.
17147 (get_section_info): Modify to support new unexec method;
17148 determines address ranges in process that need dumping, and COFF
17149 sections where data will be dumped. Allows for static and global
17150 bss data to be in separate ranges. No longer relies on knowledge
17151 of section names.
17152 (copy_executable_and_dump_data_section): Renamed
17153 copy_executable_and_dump_data. Completely rewritten to copy
17154 executable section by section, so that raw data areas can be
17155 expanded to hold dumped data as necessary. Allows for bss data to
17156 be in same section as initialized data. Reduces size of static
17157 heap section to that used during preload.
17158 (dump_bss_and_heap):
17159 (w32_fatal_reload_error):
17160 (read_in_bss):
17161 (map_in_heap): Obsolete functions removed.
17162 (unexec): Rounds off preload heap to nearest page rather than
17163 virtual allocation unit. Modified to match other changes.
17164
17165 * mem-limits.h: (get_lim_data): Use reserved_heap_size instead of
17166 data_region_size.
17167
17168 * makefile.nt: (TEMACS_TMP): New macro.
17169 ($(TEMACS)): Output to TEMACS_TMP from link, use post-link
17170 processor to add static heap section in support of new unexec.
17171
17172 * lastfile.c: Include config.h to pick up data layout pragmas.
17173 [WINDOWSNT]: Remove explicit pragma.
17174
171751999-01-12 Kenichi Handa <handa@etl.go.jp>
17176
17177 * coding.c (Fdecode_sjis_char): Decode Japanese Katakana character
17178 correctly.
17179 (Fencode_sjis_char): Encode Japanese Katakana character correctly.
17180
171811999-01-11 Dave Love <fx@gnu.org>
17182
17183 * coding.c (syms_of_coding): Doc fix for inhibit-eol-conversion.
17184
171851999-01-11 Richard Stallman <rms@psilocin.ai.mit.edu>
17186
17187 * keyboard.c (read_key_sequence): In key-translation-map and
17188 function-key-map, handle symbol with array as fn def.
17189 In function-key-map, handle symbol with keymap as fn def,
17190 and autoloaded definitions.
427ec082 17191
26901792
DL
17192 * puresize.h (BASE_PURESIZE): Increment to 500000.
17193
17194 * print.c (Qtemp_buffer_setup_hook): New variable.
17195 (syms_of_print): Init and staticpro that.
17196 (temp_output_buffer_setup): Run Qtemp_buffer_setup_hook.
17197
171981999-01-11 Kenichi Handa <handa@etl.go.jp>
17199
17200 * insdel.c (del_range_1): Call signal_after_change.
17201 (del_range_byte): Likewise.
17202 (del_range_both): Likewise.
17203 (del_range_2): Don't call signal_after_change.
17204
17205 * xdisp.c (message_dolog): Use insert_1_both to avoid running any
17206 Lisp code here.
17207
172081999-01-07 Richard Stallman <rms@psilocin.ai.mit.edu>
17209
17210 * eval.c (find_handler_clause): If SIG is nil (memory full error),
17211 never run the debugger, and don't bother checking the args
17212 to see whether the debugger should be run.
17213
172141999-01-06 Richard Stallman <rms@psilocin.ai.mit.edu>
17215
17216 * keyboard.c (read_key_sequence):
17217 Tell get_keyelt to look handle autoloads.
17218 Handle symbols defined as keymaps, and autoloaded keymaps.
17219
172201999-01-06 Kenichi Handa <handa@etl.go.jp>
17221
17222 * search.c (search_buffer): Fix previous change.
17223
172241999-01-06 Eli Zaretskii <eliz@gnu.org>
17225
17226 * w16select.c (set_clipboard_data): Terminate the text with a null
17227 character. Don't allow to put binary data into the clipboard.
17228 Return zero in case of success, 1 or 2 otherwise.
17229 (get_clipboard_data): Only bail out if the null character is in
17230 the last 32-byte chunk of clipboard data
17231 (Fw16_set_clipboard_data): Make ok and put_status be unsigned. If
17232 they save binary data, print a message in the echo area saying the
17233 text was not put into the clipboard.
17234
17235 * msdos.c (IT_write_glyphs): Move constant expression out of the loop.
17236
172371999-01-06 Andreas Schwab <schwab@gnu.org>
17238
17239 * systty.h [__GLIBC__ >= 2]: Check __FAVOR_BSD instead of
17240 _BSD_SOURCE, the latter is always defined.
17241
172421999-01-05 Richard Stallman <rms@psilocin.ai.mit.edu>
17243
17244 * fns.c (Frequire): Don't fail to unbind bindings.
17245
172461999-01-02 Richard Stallman <rms@psilocin.ai.mit.edu>
17247
17248 * emacs.c (main) [DOUG_LEA_MALLOC]: Don't call r_alloc_reinit.
17249
17250 * charset.c (Ffind_charset_region): Fix doc typo.
17251
172521998-12-31 Eli Zaretskii <eliz@mescaline.gnu.org>
17253
17254 * msdos.c (IT_write_glyphs): Convert unibyte characters to
17255 multibyte in unibyte buffers only.
17256
17257 * keymap.c (Fdefine_prefix_command): Accept a third argument NAME
17258 and pass it to Fmake_sparse_keymap.
17259
172601998-12-29 Richard Stallman <rms@psilocin.ai.mit.edu>
17261
17262 * alloc.c (MMAP_MAX_AREAS): New macro.
17263 (allocate_vectorlike, make_uninit_multibyte_string): Use that.
17264 (init_alloc_once): Use that.
17265
17266 * s/gnu-linux.h [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it.
17267
17268 * alloc.c (lisp_malloc, lisp_free): New functions.
17269 Use them instead of malloc, xmalloc, and xfree, for Lisp objects.
17270 Don't set allocating_for_lisp in the callers; let lisp_malloc do it.
17271 (n_interval_blocks, n_float_blocks): New variable.
17272 (n_cons_blocks, n_vectors, n_symbol_blocks): New variable.
17273 (n_marker_blocks, n_string_blocks): New variable.
17274 (init_intervals, make_interval): Set a count variable.
17275 Use lisp_malloc instead of setting allocating_for_lisp.
17276 (init_float, make_float, init_cons, Fcons): Likewise.
17277 (allocate_vectorlike, init_symbol, Fmake_symbol): Likewise
17278 (init_marker, allocate_misc, init_strings): Likewise.
17279 (make_uninit_multibyte_string): Likewise.
17280 (gc_sweep, compact_strings): Decrement the count variables.
17281
17282 * alloc.c (uninterrupt_malloc): Don't store Emacs's hooks
17283 into the old_..._hook variables.
17284
172851998-12-28 Richard Stallman <rms@psilocin.ai.mit.edu>
17286
17287 * keyboard.c: In each active map, for each menu bar item, use only
17288 the first submap.
17289 (menu_bar_one_keymap): Initialize menu_bar_one_keymap_changed_items.
17290 (menu_bar_item): Update and test menu_bar_one_keymap_changed_items.
17291 (syms_of_keyboard): Staticpro and init it.
17292
427ec082 17293 * xmenu.c (single_keymap_panes):
26901792
DL
17294
172951998-12-28 Andrew Innes <andrewi@delysid.gnu.org>
17296
17297 * w32fns.c (w32_msg_pump): Ignore WM_NULL message posted to thread
17298 by complete_deferred_msg.
17299 (post_character_message): Cancel all deferred messages when
17300 quit_char is typed, in order to break out of potential deadlocks.
17301 (cancel_all_deferred_msgs): New function.
17302 (complete_deferred_msg): Don't abort if msg not found; may have
17303 been cancelled.
17304 (Fw32_reconstruct_hot_key): Use pre-interned symbols.
17305 (Fw32_send_sys_command): Wait for system command to
17306 complete before returning.
427ec082 17307
26901792
DL
17308 * w32term.c (x_iconify_frame): Wait for frame to be iconified; do
17309 not set async_iconified flag though.
17310
17311 * w32proc.c: (Vw32_start_process_inherit_error_mode): New variable.
17312 (create_child): Use it.
17313 (syms_of_ntproc): Defvar it. Also fix docstrings for
17314 w32-start-process-share-console and w32-start-process-show-window.
17315
17316 * unexw32.c (_start): Force system calls accessing unmounted
17317 devices to fail without prompting.
17318
173191998-12-26 Richard Stallman <rms@psilocin.ai.mit.edu>
17320
17321 * emacs.c (main): Call memory_warnings and uninterrupt_malloc
17322 even when starting the dumped Emacs.
17323
17324 * keymap.c (Fsingle_key_description): Handle (control ?x) etc.
17325 (Fkey_description): Handle lists like vectors.
17326
173271998-12-21 Kenichi Handa <handa@etl.go.jp>
17328
17329 * callint.c (Fcall_interactively) <'C'>: Give Fread_char Qnil
17330 because of the change of the second argument of Fread_char.
17331
17332 * charset.c (Fcharset_after): Check range. If POS is out of
17333 range, return nil.
17334
17335 * keyboard.c (read_char): Don't bind input-method-exit-on-first-char.
17336
17337 * lread.c (Fread_char): Change the meaning of the second argument.
17338 (Fread_event): Likewise.
17339 (Fread_char_exclusive): Likewise.
17340
17341 * print.c (printchar): Fix previous change.
17342
17343 * process.c (read_process_output): Decide the multibyteness of
17344 string given to a process filter by a coding system used for
17345 decoding the process output.
17346
173471998-12-21 Eli Zaretskii <eliz@mescaline.gnu.org>
17348
17349 * xterm.c (dumpglyphs): Don't convert 7-bit ASCII characters via
17350 nonascii-translation-table.
17351 * msdos.c (IT_write_glyphs): Likewise.
17352 * fns.c (concat): Likewise.
17353 * charset.c (unibyte_char_to_multibyte): Likewise.
17354 * insdel.c (copy_text, count_size_as_multibyte): Likewise.
17355
173561998-12-21 Andreas Schwab <schwab@delysid.gnu.org>
17357
17358 * doc.c (Fdocumentation): Change the doc string for prefix
17359 commands to make it a complete sentence in one line.
17360
173611998-12-16 Petri Kaurinkoski <Petri.Kaurinkoski@hut.fi>
17362
17363 * s/irix6-5.h: New file.
17364 * s/irix6-0.h (IRIX6): Define this symbol.
17365 * s/usg5-4.h (TIOCSIGSEND): Don't define this if irix6.
17366 (bcopy, bcmp, bzero): Likewise.
17367 * m/iris4d.h (LIBS_MACHINE): Leave this blank if irix6.5.
17368 (C_SWITCH_MACHINE): New value for irix6.5.
17369
173701998-12-15 Richard Stallman <rms@gnu.org>
17371
17372 * fns.c (Fbase64_decode_region, Fbase64_decode_string):
17373 Do free malloc'd memory even in case of failure. Use xfree, not free.
17374 (Fbase64_encode_region, Fbase64_encode_string): Use xfree, not free.
17375 (base64_decode_1): Don't fail for short lines.
17376
17377 * print.c (printchar): Outputting multibyte characters
17378 to echo area always makes it multibyte.
17379
17380 * search.c (search_buffer): Don't use Boyer-Moore
17381 to search for an invalid multibyte code.
17382 In unibyte case, no need to check whether there are translations
17383 in more than one charset; just set charset_base to 0.
17384
173851998-12-15 Ken'ichi Handa <handa@delysid.gnu.org>
17386
17387 * print.c (printchar): Cancel previous change.
17388
173891998-12-15 Kenichi Handa <handa@etl.go.jp>
17390
17391 * callproc.c: Include "ccl.h".
17392 (Fcall_process): Doc-string modified. Set CODING_MODE_LAST_BLOCK
17393 bit in argument_coding.mode to tell encoding procedure to flush
17394 data. While encoding arguments, if argument_coding uses CCL
17395 program, initialize it again after encoding.
17396 (Fcall_process_region): Doc-string modified. Handle the case that
17397 NARGS is 3.
17398
17399 * ccl.c (CCL_SUCCESS): Don't set ccl->ic.
17400 (ccl_driver) <CCL_End>: Pretend that all source text is consumed.
17401 Set `ic' to the head of this command.
17402 (ccl_driver) <CCL_ReadMultibyteChar2>: Return a single byte 8-bit
17403 code for an invalid code.
17404 (setup_ccl_program): If the arg VEC is nil, skip setting ups
17405 based on VEC.
17406
17407 * charset.c (Qunknown): New variable.
17408 (init_charset_once): Intern and staticpro Qunknown. Initialize
17409 all elements of Vcharset_symbol_table to Qunknown.
17410 (find_charset_in_str): New arg MULTIBYTE. If it is zero, check
17411 unibyte characters only. For an invalid composition sequence, set
17412 CHARSETS[1] to 1.
17413 (Ffind_charset_region): Call find_charset_in_str with an
17414 appropriate MULTIBYTE arg. If undefined charsets are found,
17415 include `unknown' is the return value.
17416 (Ffind_charset_string): Likewise.
17417 (Fsplit_char): If CHAR is invalid, return `(unknown CHAR)'.
17418 (str_cmpchar_id): Max composite character code should be less than
17419 GENERIC_COMPOSITION_CHAR.
17420
17421 * charset.h (find_charset_in_str): Update declaration.
17422
17423 * coding.c (DECODE_DESIGNATION): Jump to label_invalid_code if
17424 final_char is invalid.
17425 (decode_coding): If coding->type is coding_type_ccl, call
17426 ccl_coding_driver even if SRC_BYTES is zero.
17427 (code_convert_region): Update `inserted' correctly after calling
17428 coding->post_read_conversion. Even after the code converter
17429 consumed all source text, call it once more if it is
17430 coding_type_ccl to flush out data.
17431
17432 * fileio.c (Finsert_file_contents): Even if INSERTED is zero, if
17433 CODING is handled by CCL program, call code_convert_region.
17434
17435 * fns.c (string_char_to_byte): Handle invalid multibyte sequence
17436 correctly.
17437 (string_byte_to_char): Likesize.
17438
17439 * print.c (printchar): When outputting a multibyte character to
17440 echo area, always set message_enable_multibyte to 1.
17441
17442 * process.c (read_process_output): If NBYTES is zero and
17443 CODING_MODE_LAST_BLOCK bit is not yet set in coding->mode, set it
17444 and try decoding again.
17445 (Fprocess_send_eof): If the coding system of PROCESS
17446 requires flushing, call send_process with null-string at first.
17447
17448 * w16select.c (Fw16_set_clipboard_data): Call find_charset_in_str
17449 with MULTIBYTE arg 0.
17450 * w32select.c (Fw32_set_clipboard_data): Likewise.
17451 * xselect.c (lisp_data_to_selection_data): Likewise.
17452
174531998-11-30 Richard Stallman <rms@psilocin.ai.mit.edu>
17454
17455 * search.c (Freplace_match): Set OPOINT clearly for the case
17456 where point is in the middle of the text to be replaced.
17457
17458 * xdisp.c (display_text_line): When handling HPOS < 0 after loop,
17459 if compute_motion fails to advance at all, don't back it up.
17460
174611998-12-10 Geoff Voelker <voelker@cs.washington.edu>
17462
17463 * w32.c (w32_get_long_filename): Handle root dirs correctly.
17464
427ec082 17465 * s/ms-w32.h (LOCALTIME_CACHE): Define.
26901792
DL
17466
174671998-12-09 Richard Stallman <rms@gnu.org>
17468
17469 * insdel.c (insert_from_buffer_1): Properly count the size
17470 of output from conversion to multibyte even when input
17471 is split across the gap.
17472
174731998-12-09 Karl Heuer <kwzh@gnu.org>
17474
17475 * keyboard.c: Doc fixes.
17476
17477 * s/irix4-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Increase space.
17478
174791998-12-08 Andrew Innes <andrewi@harlequin.co.uk>
17480
17481 * w32select.c (Fw32_get_clipboard_data): Do not delete isolated CR
17482 characters, only convert CRLF to LF.
17483
174841998-12-08 Geoff Voelker <voelker@cs.washington.edu>
17485
17486 * makefile.nt: Do string comparision of _NMAKE_VER.
17487
174881998-12-06 Eli Zaretskii <eliz@mescaline.gnu.org>
17489
17490 * Makefile.in (msdos.o): Depend on termchar.h, charset.h,
17491 coding.h, and disptab.h
17492
17493 * msdos.c (Vdos_unsupported_char_glyph): New variable.
17494 (syms_of_msdos): DEFVAR_LISP it.
17495 (IT_insert_glyphs, IT_delete_glyphs): New functions which abort Emacs.
17496 (internal_terminal_init): Set up insert_glyphs_hook and
17497 delete_glyphs_hook to call them. Explicitly set char_ins_del_ok to 0.
17498 (unibyte_display_via_language_environment): New variable.
17499 (syms_of_msdos): Devfar it.
17500 (IT_write_glyphs): Honor glyph aliasing via Vglyph_table.
17501 Encode the character codes of the glyphs according to the
17502 terminal_coding in effect.
17503
175041998-12-04 Andreas Schwab <schwab@delysid.gnu.org>
17505
17506 * fns.c (Fstring_as_unibyte): Doc fix.
17507
175081998-12-03 Andreas Schwab <schwab@delysid.gnu.org>
17509
17510 * charset.h: Declare char_valid_p.
17511
175121998-12-03 Eli Zaretskii <eliz@mescaline.gnu.org>
17513
17514 * dosfns.c (dos_cleanup): Flush and fsync the termscript stream.
17515
17516 * msdos.c (init_environment): Record the time we started up.
17517 (IT_reset_terminal_modes): Don't restore the screen if we exit too
17518 fast after startup (aka crash).
17519
175201998-12-02 Geoff Voelker <voelker@cs.washington.edu>
17521
17522 * w32.c (check_windows_init_file): Use decode_env_path when
17523 using EMACSLOADPATH.
17524
175251998-12-02 Jason Rumney <jasonr@altavista.net>
17526
17527 * w32term.c (dumpglyphs): Use unsigned char arrays.
17528 Use FONT_MAX_WIDTH to detect and fudge proportional fonts
17529 for various languages.
17530 Compensate for fonts that have underhangs (e.g., Thai).
17531
17532 * w32term.h (FONT_MAX_WIDTH): New macro.
17533
175341998-12-02 Andrew Innes <andrewi@harlequin.co.uk>
17535
17536 * keyboard.c (Qlanguage_change): New variable.
17537 (syms_of_keyboard): Init it.
17538 (kbd_buffer_get_event) [WINDOWSNT]: Generate language-change events.
17539 (lispy_function_keys) [HAVE_NTGUI]: Remove names for modifier
17540 keys; add name for Escape key; extend to 256 elements.
17541 (parse_modifiers): Make non-static.
17542
17543 * keyboard.h (parse_modifiers): Declare prototype.
17544
17545 * termhooks.h (event_kind) [WINDOWSNT]: Define language_change_event.
17546
17547 * w32fns.c (w32_last_error): Fix cut+paste error.
17548 (Vw32_phantom_key_code): New variable.
17549 (Qhyper, Qsuper, Qmeta, Qalt, Qctrl, Qcontrol, Qshift): New variables.
17550 (syms_of_w32fns): Init and register them.
17551 (reset_modifiers): Use a more precise test for whether Emacs has
17552 keyboard focus. Synchronize state of all keys that can be used as
17553 modifiers, to overcome problems arising from hot-keys.
17554 (w32_key_to_modifier): Be careful not to call intern() to avoid
17555 requiring thread synchronization.
17556 (w32_msg_pump): Handle new WM_EMACS_TOGGLE_LOCK_KEY message.
17557 (w32_wnd_proc): Ensure lock key indicator lights are updated
17558 promptly on Windows 9x, by passing key events on to the system.
17559 (w32_wnd_proc): Use Vw32_phantom_key_code to stop system
17560 responding to Windows key events when not wanted.
17561 (w32_wnd_proc): Undo the mapping of Ctrl-Pause into cancel and
17562 Ctrl-NumLock into pause by the system.
17563 (w32_wnd_proc): Don't translate key combinations containing any
17564 modifiers other than shift (and capslock).
17565 (w32_wnd_proc): Reset modifier key states when receiving focus (we
17566 can't determine the key states until we have keyboard focus).
17567 (Fw32_toggle_lock_key): New function.
17568 (syms_of_w32fns): Defsubr it.
17569
17570 * w32inevt.c (key_event): Use Vw32_phantom_key_code. Undo the
17571 mapping of Ctrl-Pause into cancel, and Ctrl-NumLock into pause.
17572 (w32_console_toggle_lock_key): New function.
17573
17574 * w32term.h (WM_EMACS_TOGGLE_LOCK_KEY): New define.
17575
175761998-11-30 Richard Stallman <rms@psilocin.ai.mit.edu>
17577
17578 * search.c (Freplace_match): Set OPOINT clearly for the case
17579 where point is in the middle of the text to be replaced.
17580
17581 * xdisp.c (display_text_line): When handling HPOS < 0 after loop,
17582 if compute_motion fails to advance at all, don't back it up.
17583
175841998-11-28 Richard Stallman <rms@psilocin.ai.mit.edu>
17585
17586 * xfns.c (Qouter_window_id): New variable.
17587 (syms_of_xfns): Initialize it.
17588 (x_report_frame_params): Set up outer-window-id parameter.
17589
17590 * keymap.c (Fsingle_key_description): Fix previous change.
17591
175921998-11-26 Ken'ichi Handa <handa@delysid.gnu.org>
17593
17594 * lisp.h (Frequire): Update declaration.
17595
175961998-11-26 Kenichi Handa <handa@etl.go.jp>
17597
17598 * ccl.c (ccl_driver) <CCL_TranslateCharacter>: Don't suppress MSB
17599 if the charset is ascii.
17600 (ccl_driver) <CCL_TranslateCharacterConstTbl>: Likewise.
17601
17602 * charset.c (non_ascii_char_to_string): If C has modifier bits,
17603 make an appropriate one byte string.
17604 (char_bytes): Handle the case that C is a single byte char or has
17605 modifier bits.
17606
17607 * charset.h (CHAR_BYTES): If C has modifier bits, return 1.
17608
17609 * cmds.c (internal_self_insert): If C has modifier bits, insert
17610 appropriate one byte char.
17611
176121998-11-25 Richard Stallman <rms@psilocin.ai.mit.edu>
17613
17614 * fns.c (Fstring_as_unibyte, Fstring_as_multibyte):
17615 Clear text properties in the new string.
17616
176171998-11-24 Felix Lee <flee@cygnus.com>
17618
17619 * process.c (read_process_output): Call signal_after_change.
17620
176211998-11-24 Richard Stallman <rms@psilocin.ai.mit.edu>
17622
17623 * buffer.c (syms_of_buffer): Doc fix.
17624
17625 * keyboard.c (syms_of_keyboard): Doc fix.
17626
176271998-11-22 Richard Stallman <rms@psilocin.ai.mit.edu>
17628
17629 * frame.c (Fset_mouse_position): Doc fix.
17630
176311998-11-20 Richard Stallman <rms@psilocin.ai.mit.edu>
17632
17633 * keymap.c (Fmake_keymap): Doc fix.
17634
176351998-11-17 Kenichi Handa <handa@etl.go.jp>
17636
17637 * category.c (word_boundary_p): If C1 or C2 are composite
17638 characters, test their first components.
17639
176401998-11-16 Richard Stallman <rms@sucrose.ai.mit.edu>
17641
17642 * window.c (temp_output_buffer_show): Around temp-buffer-show-hook,
17643 don't do save-excursion, just restore selected window.
17644
17645 * window.c (window_loop): For UNSHOW_BUFFER,
17646 always do consider minibuffer windows.
427ec082 17647
26901792
DL
176481998-11-16 Kenichi Handa <handa@etl.go.jp>
17649
17650 * charset.h (SINGLE_BYTE_CHAR_P): Check if C is negative or not.
17651
17652 * charset.c (non_ascii_char_to_string): If C is negative, signal error.
17653
17654 * lisp.h (CHAR_TABLE_REF): Check if IDX is negative or not.
17655
17656 * s/bsdos4.h: New file.
17657
176581998-11-16 Kenichi Handa <handa@etl.go.jp>
17659
17660 * Makefile.in (abbrev.o): Depend on charset.h
17661 (bytecode.o): Depend on charset.h.
17662
17663 * bytecode.c: Include charset.h.
17664
17665 * abbrev.c: Include charset.h.
17666
17667 * syntax.h (SYNTAX_ENTRY_INT): For a composite character, check
17668 the first component.
17669
176701998-11-13 Ehud Karni <ehud@unix.simonwiesel.co.il>
17671
17672 * m/aviion-intel.h (LIBS_MACHINE): Delete redundant definition.
17673
176741998-11-11 Richard Stallman <rms@gnu.org>
17675
17676 * xterm.c (XTread_socket): Fix previous change in case F == 0.
17677
17678 * s/dgux5-4-3.h (BSD_PGRPS): Add #undef.
17679
17680 * s/dgux4.h (BROKEN_FIONREAD): #undef commented out.
17681 (INTERRUPT_INPUT): #define commented out.
17682
17683 * m/aviion-intel.h: New file.
17684
176851998-11-11 Eli Zaretskii <eliz@delysid.gnu.org>
17686
17687 * fns.c (MAX_ALLOCA): New macro.
17688 (Fbase64_encode_region, Fbase64_encode_string,
17689 Fbase64_decode_region, Fbase64_decode_string): Don't allocate
17690 more than MAX_ALLOCA bytes with alloca; otherwise use xmalloc.
17691
176921998-11-11 Ken'ichi Handa <handa@delysid.gnu.org>
17693
17694 * insdel.c (byte_combining_error): Error message improved.
17695
17696 * charset.c (char_valid_p): Handle a composite character correctly.
17697
176981998-11-11 Kenichi Handa <handa@etl.go.jp>
17699
17700 * charset.c (str_cmpchar_id): Check the byte sequence for
17701 composition more rigidly.
17702 (Fcompose_string): Allow DEL to be composed. Signal error if STR
17703 contains an invalid multibyte sequence.
17704
17705 * xterm.c (x_list_fonts): Don't change the value of maxnames.
17706
177071998-11-10 Andrew Innes <andrewi@harlequin.co.uk>
17708
17709 * w32term.h (struct w32_display_info): New element faked_key.
427ec082
SS
17710 (WM_EMACS_SETKEYBOARDLAYOUT):
17711 (WM_EMACS_REGISTER_HOT_KEY):
26901792 17712 (WM_EMACS_UNREGISTER_HOT_KEY): New message definitions.
427ec082
SS
17713 (LEFT_WIN_PRESSED):
17714 (RIGHT_WIN_PRESSED):
26901792
DL
17715 (APPS_PRESSED): New console keyboard modifier flags.
17716
17717 * w32term.c (convert_to_key_event): Removed.
17718 (is_dead_key): Copied to w32fns.c.
17719 (w32_read_socket): Generate language_change_event. Modify to work
17720 with keyboard handling changes in w32_wnd_proc.
17721
17722 * w32proc.c (sys_kill): Set extended key flag when faking
17723 Ctrl-Break keystrokes.
17724 (Fw32_get_locale_info): Allow LONGFORM parameter to specify an
17725 arbitrary locale property using a numerical index.
17726 (Vw32_valid_codepages): New variable.
427ec082
SS
17727 (enum_codepage_fn):
17728 (Fw32_get_valid_codepages):
17729 (Fw32_get_console_codepage):
17730 (Fw32_set_console_codepage):
17731 (Fw32_get_console_output_codepage):
17732 (Fw32_set_console_output_codepage):
17733 (Fw32_get_codepage_charset):
17734 (Fw32_get_valid_keyboard_layouts):
17735 (Fw32_get_keyboard_layout):
26901792
DL
17736 (Fw32_set_keyboard_layout): New functions, exposing Windows locale
17737 handling functions.
17738 (syms_of_ntproc): Register them.
17739
17740 * w32inevt.c: Include w32term.h and w32heap.h.
17741 (map_keypad_keys):
17742 (Vw32_enable_caps_lock):
17743 (Vw32_enable_num_lock):
17744 (Vw32_pass_lwindow_to_system):
17745 (Vw32_pass_rwindow_to_system):
17746 (Vw32_lwindow_modifier):
17747 (Vw32_rwindow_modifier):
17748 (Vw32_apps_modifier):
17749 (Vw32_scroll_lock_modifier):
17750 (w32_key_to_modifier): Add externs.
17751 (w32_kbd_mods_to_emacs): Recognize Windows keys, Apps key, and
17752 Scroll Lock as potential modifiers; exclude numpad keys from
17753 effect by CapsLock; act on Vw32_enable_caps_lock; remove obsolete
17754 code.
17755 (is_dead_key): Copy from w32fns.c.
17756 (w32_kbd_patch_key): Comment attempt to improve handling of
17757 dead-keys, and system bug relating to same on Windows NT. Work
17758 around the bug by calling ToUnicode and then converting to the
17759 correct codepage.
17760 (map_virt_key): Removed obsolete variable.
17761 (lispy_function_keys): Add extern.
17762 (key_event): Major rework of keyboard input handling: optionally
17763 recognize Windows keys and Apps key as modifiers; optionally treat
17764 NumLock, CapsLock and ScrollLock as function keys; let system
17765 translate keystrokes to characters to avoid system bugs relating
17766 to dead-key handling; preserve shift distinction for control
17767 characters. Remove some obsolete code.
17768
17769 * makefile.nt ($(BLD)\w32inevt.obj): Add dependencies on w32term.h
17770 and w32heap.h.
17771
17772 * w32fns.c (Vw32_pass_optional_keys_to_system): Variable removed.
17773 (Vw32_pass_lwindow_to_system):
17774 (Vw32_pass_rwindow_to_system):
17775 (Vw32_lwindow_modifier):
17776 (Vw32_rwindow_modifier):
17777 (Vw32_apps_modifier):
17778 (Vw32_enable_num_lock):
17779 (Vw32_enable_caps_lock):
17780 (Vw32_scroll_lock_modifier): New variables.
17781 (modifier_set): Return toggle state for Scroll Lock.
17782 (w32_key_to_modifier): New function. Returns chosen modifier bit
17783 for given key.
17784 (w32_get_modifiers): Returns modifier flags for
17785 non-keyboard input events.
17786 (construct_console_modifiers): Renamed from construct_modifiers;
17787 recognize Windows and Apps keys as modifiers.
17788 (w32_get_key_modifiers): New function. Returns modifier flags for
17789 keyboard input events.
17790 (map_keypad_keys): Make non-static. Use second arg as extended
17791 flag.
17792 (w32_grabbed_keys): New variable.
17793 (HOTKEY, HOTKEY_ID, HOTKEY_VK_CODE, HOTKEY_MODIFIERS): New macros.
17794 (register_hot_keys):
17795 (unregister_hot_keys):
17796 (lookup_vk_code):
17797 (w32_parse_hot_key):
17798 (Fw32_register_hot_key):
17799 (Fw32_unregister_hot_key):
17800 (Fw32_registered_hot_keys):
17801 (Fw32_reconstruct_hot_key): New functions to support hotkeys.
17802 (post_character_message): New function.
17803 (w32_msg_pump): Handle new messages for using hotkeys and changing
17804 keyboard layout/language.
17805 (w32_wnd_proc): Major rework of keyboard input handling:
17806 optionally recognize Windows keys and Apps key as modifiers;
17807 optionally treat NumLock, CapsLock and ScrollLock as function
17808 keys; let system translate keystrokes to characters to avoid
17809 system bugs relating to dead-key handling; preserve shift
17810 distinction for control characters; forward keyboard
17811 layout/language changes to lisp; detect and convert hot-key events
17812 to normal keystrokes.
17813 (syms_of_w32fns): Register new functions and variables.
17814 (w32_last_error): New function for use in debugging.
17815
178161998-11-10 Kenichi Handa <handa@etl.go.jp>
17817
17818 * category.h (CATEGORY_SET): Adjusted for the change of
17819 cmpchar_component.
17820 (CATEGORY_SET): Likewise.
17821
17822 * charset.c (cmpchar_component): New arg NOERROR. Check
17823 composition char ID more strictly.
17824 (Fcmpchar_component): Call cmpchar_component with NOERROR arg zero.
17825 (Fcmpchar_cmp_rule): If CHARACTER should be composed relatively,
17826 return 255.
17827 (Fcompose_string): Signal error if STR contains a rule-based
17828 composition character.
17829
17830 * charset.h (cmpchar_component): Proto-type adjusted.
17831
178321998-11-09 Kenichi Handa <handa@etl.go.jp>
17833
17834 * charset.c (string_to_non_ascii_char): Return correct length for
17835 a charset of dimension 2 and composition character.
17836
178371998-11-08 Richard Stallman <rms@sucrose.ai.mit.edu>
17838
17839 * keymap.c (Fsingle_key_description): Handle generic characters.
17840
17841 * process.c (Fprocess_status): Doc fix.
17842
178431998-11-06 Ken'ichi Handa <handa@delysid.gnu.org>
17844
17845 * charset.c (init_charset_once): Fix previous change.
17846
178471998-11-06 Kenichi Handa <handa@etl.go.jp>
17848
17849 * charset.c (string_to_non_ascii_char): Fix previous change.
17850 (char_valid_p): Check the validity of CHARSET by CHARSET_DEFINED_P.
17851
17852 * charset.h (SPLIT_NON_ASCII_CHAR): Check dimension of an invalid
17853 character correctly.
17854 (STRING_CHAR): Handle an invalid charater correctly.
17855
178561998-11-05 Kenichi Handa <handa@etl.go.jp>
17857
17858 * charset.c (string_to_non_ascii_char): Fix previous change.
17859
17860 * charset.h (MAKE_NON_ASCII_CHAR): Check validity of CHARSET.
17861
17862 * editfns.c (Fstring_to_char): Don't return a multibyte character
17863 if STRING is a unibyte string.
17864
17865 * indent.c (MULTIBYTE_BYTES_WIDTH): Check validity of a multibyte
17866 character.
17867
17868 * xdisp.c (display_text_line): Check validity of a multibyte character.
17869 (display_string): Likewise. Handle an invalid character correctly.
17870
178711998-11-05 Karl Heuer <kwzh@gnu.org>
17872
17873 * insdel.c (Fcombine_after_change_execute): Return nil, not junk.
17874 If nothing to do, return immediately.
17875 (syms_of_insdel): Initialize combine_after_change_buffer.
17876
178771998-11-05 Richard Stallman <rms@gnu.org>
17878
17879 * xterm.c (XTread_socket): ButtonPress clears f->mouse_moved.
17880
178811998-11-04 Geoff Voelker <voelker@cs.washington.edu>
17882
17883 * w32term.c (w32_enable_unicode_output): Rename from
17884 w32_no_unicode_output.
17885 (w32_use_unicode_for_codepage, syms_of_w32term): Use new name
17886 and new semantics.
17887
178881998-11-04 Jason Rumney <jasonr@altavista.net>
17889
17890 * w32fns.c (w32_list_fonts): Report an error if a frame has not
17891 been created yet.
17892
17893 * w32term.c (dumpglyphs): Use FRAME_FONT for w32_fill_area.
17894
178951998-11-04 Kenichi Handa <handa@etl.go.jp>
17896
17897 * charset.c (string_to_non_ascii_char): Change the check for the
17898 varidity of multibyte form.
17899 (update_charset_table): Check validity of BYTES. Don't set
17900 bytes_by_char_head here.
17901 (init_charset_once): Set bytes_by_char_head completely.
17902
17903 * frame.c (do_switch_frame): Cancel previous change.
17904
17905 * print.c (print_string): Check validity of a character.
17906 (print): Likewise.
17907
17908 * sysdep.c [nec_ews_svr4]: Extern *_sobuf.
17909
17910 * m/ews4800.h, s/ux4800.h: New files.
17911
179121998-11-03 Theodore Jump <tjump@tertius.com>
17913
17914 * makefile.nt: Compile multiple source files when possible.
17915
17916 * w32faces.c (Qmouse_face): Replace definition with extern decl.
427ec082 17917
26901792
DL
179181998-11-03 Andrew Innes <andrewi@delysid.gnu.org>
17919
17920 * w32.c (stat): GetFileInformationByHandle can legitimately fail,
17921 so don't rely on it succeeding.
17922
17923 * w32fns.c (x_to_w32_font): Specify DEFAULT_CHARSET in the w32
17924 LOGFONT struct if x font doesn't specify the charset.
17925 (x_to_w32_charset): Change >= to == when testing results of
17926 stricmp.
17927
179281998-11-02 Richard Stallman <rms@sucrose.ai.mit.edu>
17929
17930 * fns.c (Frequire): New arg NOERROR.
17931
179321998-11-02 Andrew Innes <andrewi@harlequin.co.uk>
17933
17934 * fileio.c (Fsubstitute_in_file_name) [DOS_NT]: Fix typo.
17935
179361998-10-31 Richard Stallman <rms@psilocin.ai.mit.edu>
17937
17938 * xfaces.c (Qmouse_face): Replace definition with extern decl.
17939 (syms_of_xfaces): Initialization deleted.
17940
17941 * textprop.c (Qmouse_face): Variable definition moved here.
17942 (syms_of_textprop): Initialize it.
17943
17944 * data.c (set_internal): For built-in maybe-local vars,
17945 when BINDFLAG is set, do not mark them as local.
17946
179471998-10-31 Ken'ichi Handa <handa@delysid.gnu.org>
17948
17949 * insdel.c (replace_range): Fix previous change.
17950
179511998-10-31 Kenichi Handa <handa@etl.go.jp>
17952
17953 * editfns.c (Fsubst_char_in_region): Fix previous change.
17954 (Ftranslate_region): Fix previous change.
17955
17956 * fns.c (Fbase64_decode_region): Fix previous change.
17957
17958 * frame.c (do_switch_frame): Update minibuf_window if necessary.
17959
17960 * insdel.c (byte_combining_error): New function.
17961 (CHECK_BYTE_COMBINING_FOR_INSERT): Call byte_combining_error.
17962 (insert_from_string_1): Set *(GPT_ADDR) to 0 before calling
17963 CHECK_BYTE_COMBINING_FOR_INSERT.
17964 (insert_from_buffer_1): Likewise.
17965 (adjust_after_replace): Check the posibility of inhibitted byte
17966 combining correctly.
17967 (replace_range): Before signaling an error for inhibitted byte
17968 combining, recover the buffer in a safe state.
17969 (del_range_2): Check the posibility of inhibitted byte combining
17970 correctly.
17971
179721998-10-30 Andreas Schwab <schwab@delysid.gnu.org>
17973
17974 * xselect.c (Vselection_coding_system): Doc fix.
17975
17976 * fns.c (Fbase64_encode_region): Use SET_PT_BOTH instead of SET_PT
17977 when we have both char and byte position. Fix type clashes.
17978
17979 * eval.c (Fsignal): Use a separate format string when passing
17980 error message string to fatal, in case it contains %'s.
17981
17982 * editfns.c (Fchar_after): Fix type clashes.
17983
17984 * charset.c (Fchar_bytes): Doc fix.
17985 (char_bytes): Fix returned value to match returned type.
17986 (syms_of_charset): Fix type clash in initialisation of
17987 Vauto_fill_chars.
17988
179891998-10-29 Geoff Voelker <voelker@cs.washington.edu>
17990
17991 * w32console.c (initialize_w32_display): Use buffer coords
17992 instead of buffer size (which may be larger than the window).
17993
17994 * fileio.c (init_fileio_once): New function.
17995
17996 * emacs.c (main): Invoke init_fileio_once.
17997
179981998-10-28 Paul Eggert <eggert@twinsun.com>
17999
18000 * xterm.c (XTread_socket): Check the returned value of
18001 XmbLookupString more carefully.
18002
180031998-10-28 Kenichi Handa <handa@etl.go.jp>
18004
18005 * coding.c (DECODE_CHARACTER_ASCII): Check validity of inserted code.
18006 (DECODE_CHARACTER_DIMENSION1): Likewise.
18007 (DECODE_CHARACTER_DIMENSION2): Likewise.
18008 (decode_coding_sjis_big5): Check the 2nd byte of SJIS correctly.
18009
18010 * editfns.c (Fsubst_char_in_region): Fix previous change.
18011 (Ftranslate_region): Fix previous change.
18012
18013 * insdel.c (check_markers): Check if markers are at character boundry.
18014 (adjust_markers_for_insert): Fix previous change.
18015 (count_combining_before): Don't limit the check at BEGV.
18016 (count_combining_after): Don't limit the check at ZV.
18017 (CHECK_BYTE_COMBINING_FOR_INSERT): New macro.
18018 (insert_1_both): Call CHECK_BYTE_COMBINING_FOR_INSERT.
18019 (insert_from_string_1): Likewise.
18020 (insert_from_buffer_1): Likewise.
18021 (adjust_after_replace): Inhibit bytes combined across region
18022 boundary. Update end_unchanged correctly.
18023 (replace_range): Call CHECK_BYTE_COMBINING_FOR_INSERT. Update
18024 end_unchanged correctly.
18025 (del_range_2): Inhibit bytes combined across region boundary.
18026 Update end_unchanged correctly.
18027
180281998-10-27 Geoff Voelker <voelker@cs.washington.edu>
18029
18030 * w32.c (check_windows_init_file): Also look in load path specified
18031 in environment.
18032
18033 * w32console.c (Fset_message_beep): Recognize 'silent.
18034 (w32_sys_ring_bell): Do nothing for the 'silent sound.
427ec082 18035
26901792
DL
18036 * w32fns.c (w32_color_map_lookup): Remove duplicate definition.
18037
18038 * w32select.c (Vnext_selection_coding_system): New variable.
18039 (syms_of_w32select): DEFVAR_LISP it.
18040 (Fw32_set_clipboard_data): Use Vnext_selection_coding_system if
18041 non-nil. Always convert multibyte strings.
18042 (Fw32_get_clipboard_data): Use Vnext_selection_coding_system if
18043 non-nil. Always convert a string that includes non-ASCII characters.
427ec082 18044
26901792
DL
180451998-10-27 Richard Stallman <rms@psilocin.ai.mit.edu>
18046
18047 * fns.c (Fbase64_decode_string): Doc fix.
18048 (Fbase64_decode_region, Fbase64_encode_string Fbase64_encode_region):
18049 Likewise.
18050
180511998-10-27 Dave Love <fx@gnu.org>
18052
18053 * fns.c (Fbase64_decode_region, Fbase64_encode_region): Fix
18054 newline in doc string.
18055
180561998-10-27 Kenichi Handa <handa@etl.go.jp>
18057
18058 * editfns.c (Fsubst_char_in_region): Correctly handle the case
18059 that byte combining before happens.
18060 (Ftranslate_region): Likewise.
18061
18062 * insdel.c (adjust_after_replace): Correctly handle the case that
18063 both byte combining before and byte combining after happen.
18064 (replace_range): Likewise.
18065
180661998-10-26 Kenichi Handa <handa@etl.go.jp>
18067
18068 * category.c (syms_of_category): Doc-string modified.
18069
18070 * coding.c (code_convert_region): Kill the work buffer created by
18071 pre-write-conversion.
18072
180731998-10-25 Jason Rumney <jasonr@altavista.net>
18074
18075 * emacs.c (main) [HAVE_NTGUI]: Invoke syms_of_fontset().
18076
180771998-10-23 Kenichi Handa <handa@etl.go.jp>
18078
18079 * coding.c (code_convert_region): While preserving the orignal
18080 point, pay attention to the byte combining problem.
18081
18082 * fns.c (Fbase64_decode_region): Pay attention to the byte
18083 combining problem.
18084
18085 * insdel.c (adjust_markers_for_insert): Adjust markers by taking
18086 combined_before_bytes and combined_after_bytes into account.
18087 (count_combining_after): Handle the case that LENGTH is zero.
18088 (adjust_after_replace): Record deletion at correct buffer
18089 position. Handle the case that LEN is zero.
18090 (replace_range): Record deletion at correct buffer position.
18091 (del_range_2): Call adjust_makers_for_replace to adjust makers for
18092 combined bytes.
18093
180941998-10-21 Richard Stallman <rms@psilocin.ai.mit.edu>
18095
18096 * alloc.c (Fgarbage_collect): Block input around most of the function.
427ec082 18097
26901792
DL
180981998-10-21 Kenichi Handa <handa@etl.go.jp>
18099
18100 * coding.c (setup_coding_system): Fix setting up
18101 coding->spec.ccl.valid_codes for CCL based coding system.
18102 (code_convert_region): Set point to FROM before inserting the
18103 result of pre-write-funciton. Preserve original point.
18104 (code_convert_string): If coding->type is coding_type_ccl, do
18105 conversion even if the length of conversion region is zero.
18106
18107 * fontset.c: Include frame.h before fontset.h.
427ec082 18108 (list_fonts_func): Fix prototype.
26901792
DL
18109
18110 * frame.c: Include frame.h before fontset.h.
18111
18112 * xterm.c: Likewise.
18113
181141998-10-21 Jason Rumney <jasonr@altavista.net>
18115
18116 * x-list-font.c (Fx_list_fonts): Access frame parameters throught
18117 general macros. Don't call x_list_font directory, instead call a
18118 function set in list_fonts_func.
18119
18120 * fontset.h (list_fonts_func): Fix prototype.
18121
181221998-10-20 Jason Rumney <jasonr@altavista.net>
18123
18124 * makefile.nt (w32fns.c): Add x-list-font.c to dependancies.
18125
18126 * w32faces.c: Update comments referring to obsolete structs.
18127 (allocate_face, copy_face, face_eql, load_font,
18128 Fpixmap_spec_p, free_frame_faces, new_computed_face,
18129 frame_update_line_height, merge_faces, compute_base_face,
18130 Fset_face_attribute_internal): Use fontset support based on xfaces.c.
18131
18132 * w32fns.c: (Vx_pixel_size_width): New global variable.
18133 (unibyte_display_via_language_environment): New global variable.
18134 (x_set_font): Add support for setting fontsets.
18135 (Fx_create_frame): Add check_w32(). Initialize fontsets. Fix
18136 font names to match xlfd-tight-regexp.
18137 (w32_load_font): Rewrite based on x_load_font.
18138 (x_to_w32_charset, w32_to_x_charset): Add character sets. Use
18139 `iso8859-1' rather than `ansi'.
18140 (w32_to_x_font): Remove `-' from font name. Remove the `-' off the
18141 end. Move charset into `charset registry' field.
18142 (enum_font_cb2): Check charsets match. Include width in font list.
18143 (w32_list_fonts): Rewrite based on x_list_fonts.
18144 Moved from w32term.c to have access to enumfont_t struct.
18145 (Fx_list_fonts): w32 specific version eliminated. Include
18146 `x-list-fonts.c'.
18147 (w32_get_font_info, w32_query_font, w32_find_ccl_program): New
18148 functions for fontset support - adapted from x_ equivalents.
18149 (syms_of_w32fns): New lisp variables initialised. Function
18150 pointers for fontset.c set up.
18151
427ec082 18152 * w32term.c: Include fontset.h. Define codepage macros.
26901792
DL
18153 Add ENCODE_BIG5 macro from coding.c.
18154 (w32_no_unicode_output): New variable.
18155 (w32_codepage_for_charset, w32_use_unicode_for_codepage): New
18156 functions.
18157 (BUILD_WCHAR_T, BYTE1, BYTE2): New macros.
18158 (dumpglyphs): Rewrite based on xterm.c equivalent.
18159 (x_new_font): Use functionality provided in fontset.c.
18160 (x_new_fontset): New function based on the one in xterm.c.
18161 (syms_of_w32term): Add w32-no-unicode-output flag.
18162
427ec082 18163 * w32term.h: Remove redundant font_info struct definition.
26901792
DL
18164 (Vx_pixel_size_width_font_regexp,
18165 unibyte_display_via_language_environment): Declare variables.
427ec082 18166 (w32_list_fonts, w32_get_font_info, w32_query_font, w32_load_font):
26901792
DL
18167 Declare functions.
18168 (w32_output): New fields font_baseline and fontset.
18169 (FRAME_FONTSET, FRAME_W32_FONT_TABLE): New macros.
18170
18171 * w32xfns.c: Include charset.h and fontset.h.
18172
181731998-10-20 Richard Stallman <rms@psilocin.ai.mit.edu>
18174
18175 * syntax.c (syms_of_syntax): Fix the setup of Qscan_error.
18176
181771998-10-20 Eli Zaretskii <eliz@mescaline.gnu.org>
18178
18179 * msdos.c (mouse_init): Reset the button press/release info of the
18180 mouse driver.
18181 (mouse_preempted): New variable.
18182 (dos_rawgetc): Don't generate mouse events if mouse is preempted.
18183 (XMenuActivate): Preempt the mouse during menu-handling loop.
18184 Release the current time slice while idling in the menu-handling
18185 loop. Leave the loop only if the user pressed, then released the
18186 same button. Discard all mouse events that are pending in the
18187 event queue before exiting.
18188
181891998-10-19 Richard Stallman <rms@psilocin.ai.mit.edu>
18190
18191 * editfns.c (Fformat): Increase buffer size for floating format.
18192
181931998-10-17 Kenichi Handa <handa@etl.go.jp>
18194
18195 * charset.c (Vauto_fill_chars, Qauto_fill_chars): New variables.
18196 (syms_of_charset): Staticpro and initialize Qauto_fill_chars.
18197 Declare auto-fill-chars as a Lisp variable and initialize it.
18198
18199 * charset.h (Vauto_fill_chars): Extern it.
18200
18201 * cmds.c (internal_self_insert): Check Vauto_fill_chars.
18202
182031998-10-16 Kenichi Handa <handa@etl.go.jp>
18204
18205 * casefiddle.c (casify_object): Use make_string instead of
18206 make_specified_string to cope with byte-combining situation.
18207
18208 * coding.c (decode_coding_iso2022): Set coding->fake_multibyte to
18209 1 when encountered with a code of the range 0x80..0x9F.
18210
182111998-10-14 Eli Zaretskii <eliz@mescaline.gnu.org>
18212
18213 * callproc.c (Fcall_process) [MSDOS]: Use $TMPDIR instead of
18214 trying $TMP and $TEMP, since the former is always set in msdos.c.
18215 (Fcall_process_region) [DOS_NT]: When looking for a place to put
18216 the temporary files, check $TMPDIR as well.
18217
182181998-10-14 Richard Stallman <rms@psilocin.ai.mit.edu>
18219
427ec082 18220 * process.c (exec_sentinel, read_process_output):
26901792
DL
18221 Restore waiting_for_user_input_p after running Lisp code.
18222
18223 * keyboard.c (parse_menu_item): Avoid initialization for Lisp_Object.
18224 (command_loop): Likewise.
18225
182261998-10-14 Kenichi HANDA <handa@etl.go.jp>
18227
18228 * data.c (Faset): Fix previous change.
18229
18230 * fns.c (Ffillarray): Fix previous change.
18231
18232 * insdel.c (adjust_markers_for_combining): This function deleted.
18233 (adjust_markers_for_replace): Correctly adjust marker positions.
18234 Don't record these adjustment because they were recorded already.
18235 (combine_bytes): Don't adjust markers here.
18236
182371998-10-13 Richard Stallman <rms@psilocin.ai.mit.edu>
18238
18239 * minibuf.c (Fdisplay_completion_list): Put on mouse-face properties.
18240
182411998-10-12 Richard Stallman <rms@psilocin.ai.mit.edu>
18242
18243 * keyboard.c (Fclear_this_command_keys): New function.
18244 (syms_of_keyboard): defsubr it.
18245
18246 * macros.c (Fexecute_kbd_macro): Set real_this_command.
18247
182481998-10-12 Kenichi Handa <handa@etl.go.jp>
18249
18250 * ccl.c (CCL_DECODE_SJIS, CCL_ENCODE_SJIS): Swap the definitions.
18251
18252 * charset.c (Fstring): Call make_string instead of
18253 make_string_from_bytes.
18254 (Ffind_charset_region): Include `composition' in the returned list
18255 if the region contains any composite characters.
18256 (Ffind_charset_string): Include `composition' in the returned list
18257 if the string contains any composite characters.
18258 (find_charset_in_str): Handle CMPCHARP arg correctly.
18259
18260 * coding.c (shrink_decoding_region): If a charset other than ascii
18261 is initially designated to G0, don't shrink the region.
18262 (shrink_encoding_region): Likewise.
18263
18264 * data.c (Faset): If ARRAY is a multibyte string, pay attention to
18265 byte-combining situation.
18266
18267 * fns.c (clear_string_char_byte_cache): New function.
18268 (Ffillarray): Handle multibyte string correctly.
18269
18270 * lisp.h (clear_string_char_byte_cache): Extern it.
18271
18272 * xselect.c (lisp_data_to_selection_data): Call
18273 find_charset_in_str with CMPCHARP arg 0.
18274 * w16select.c (Fw16_set_clipboard_data): Likewise.
18275 * w32select.c (Fw32_set_clipboard_data): Likewise.
18276
182771998-10-11 Richard Stallman <rms@psilocin.ai.mit.edu>
18278
18279 * keyboard.c (parse_menu_item): For top level of menu bar,
18280 accept ordinary commands, and treat them just like a keymap.
18281
182821998-10-11 Richard Stallman <rms@sucrose.ai.mit.edu>
18283
18284 * xdisp.c (redisplay_window): Clear w->window_end_valid
18285 before running the window-scroll-functions hook, if appropriate.
18286
182871998-10-10 Richard Stallman <rms@psilocin.ai.mit.edu>
18288
18289 * data.c (Fstring_to_number): Don't recognize floating point
18290 if base is not 10.
18291
18292 * window.c (window_loop): New alternative CHECK_ALL_WINDOWS.
18293 (check_all_windows): New function for debugging tests.
18294 (syms_of_window): Initialize it.
18295
18296 * window.c (Qwindow_configuration_p): New variable.
18297 (Fwindow_configuration_frame): New function.
18298 (syms_of_window): defsubr it.
18299 (Fset_window_configuration): Return t if frame is live.
18300 Use Qwindow_configuration_p.
18301
18302 * xfns.c (check_x_display_info): Don't use selected_frame
18303 if it is dead.
18304
183051998-10-09 Geoff Voelker <voelker@cs.washington.edu>
18306
18307 * w32fns.c (x_create_bitmap_from_file): Skip special files.
18308
183091998-10-08 Kenichi Handa <handa@etl.go.jp>
18310
18311 * buffer.h (inhibit_modification_hooks): Extern it.
18312
18313 * buffer.c (inhibit_modification_hooks): New variable.
18314 (init_buffer_once): Initialize inhibit_modification_hooks to 0.
18315
18316 * charset.c (invalid_character): Prepend `0' to octal
18317 representation. Give error sufficient args.
18318
18319 * coding.c (code_convert_region): Set inhibit_modification_hooks
18320 to 1 before calling Fset_text_properties.
18321
18322 * insdel.c (signal_before_change): If inhibit_modification_hooks
18323 is nonzero, do nothing.
18324 (signal_after_change): Likewise.
18325
183261998-10-08 Emilio Lopes <Emilio.Lopes@Physik.TU-Muenchen.DE>
18327
18328 * process.c: Doc fixes.
18329
183301998-10-08 Richard Stallman <rms@sucrose.ai.mit.edu>
18331
18332 * syntax.c (scan_lists): Bring FROM back into range BEGV...ZV.
18333
183341998-10-07 Geoff Voelker <voelker@cs.washington.edu>
18335
18336 * w32.c (init_ntproc): Check for Windows init file.
18337 (term_ntproc): Do not check for it here.
18338
183391998-09-28 Kenichi Handa <handa@etl.go.jp>
18340
18341 * coding.c (check_composing_code): Fix previous change. Now it
18342 alwasy returns 0 or -1.
18343 (decode_coding_iso2022): Adjusted for the above change.
18344 (encode_coding_iso2022): When encoding the last block, flush out
18345 tailing garbage bytes.
18346 (setup_coding_system): Delete unnecessary code.
18347 (shrink_decoding_region): Check translation table. If ASCII
18348 should be translated, give up shrinking.
18349 (shrink_encoding_region): Likewise.
18350 (SHRINK_CONVERSION_REGION_THRESHHOLD): New macro.
18351 (SHRINK_CONVERSION_REGION): New macro.
18352 (code_convert_region): Call SHRINK_CONVERSION_REGION. Delete text
18353 properties here.
18354 (code_convert_region): In the case of encoding, always calulate
18355 correct character number.
18356 (code_convert_string): Call SHRINK_CONVERSION_REGION.
18357 (code_convert_region1): Don't delete text properties here.
18358
18359 * insdel.c (adjust_after_replace): Don't delete text properties here.
18360
18361 * term.c (encode_terminal_code): Handle raw 8-bit codes correctly.
18362
183631998-09-27 Richard Stallman <rms@psilocin.ai.mit.edu>
18364
18365 * emacs.c (sort_args): Fill extra space with NULL ptrs.
18366
183671998-09-26 Kenichi Handa <handa@etl.go.jp>
18368
18369 * coding.h (struct coding_system): New member composed_chars.
18370
18371 * coding.c (check_composing_code): If the current composing
18372 sequence doesn't end properly, return -1.
18373 (DECODE_CHARACTER_ASCII): Update coding->composed_chars.
18374 (DECODE_CHARACTER_DIMENSION1): Likewise.
18375 (decode_coding_iso2022): Check validity of a composing sequence.
18376 (code_convert_string): If the length of text to be converted is
18377 shrunk to zero, don't perform code conversion.
18378 (shrink_decoding_region): Fix previous change.
18379
18380 * editfns.c (Fformat): Check format control characters.
18381
183821998-09-25 Kenichi Handa <handa@etl.go.jp>
18383
18384 * coding.c (decode_eol): While decoding DOS-like eol, handle a
18385 single CR code correctly.
18386 (shrink_decoding_region) <CODING_CATEGORY_IDX_ISO_7 or
18387 CODING_CATEGORY_IDX_ISO_7_TIGHT>: Skip also 8-bit codes.
18388
183891998-09-23 Geoff Voelker <voelker@cs.washington.edu>
18390
18391 * w32fns.c (w32_color_map_lookup): New function.
18392 (x_to_w32_color): Approximate colors ending in numbers if necessary.
18393
183941998-09-22 Kenichi Handa <handa@etl.go.jp>
18395
18396 * ccl.c (ccl_driver): Report correct CCL program counter on error.
18397
18398 * xmenu.c (single_submenu) [! HAVE_MULTILINGUAL_MENU]: Make
18399 strings unibyte.
18400 (xmenu_show) [! HAVE_MULTILINGUAL_MENU]: Likewise.
18401
184021998-09-22 Kenichi Handa <handa@etl.go.jp>
18403
18404 * callint.c (Fcall_interactively): Don't use input method when
18405 reading a character in the case of `c' code letter.
18406
184071998-09-21 Dave Love <fx@gnu.org>
18408
18409 * editfns.c (Fsave_restriction): Doc fix.
18410
184111998-09-21 Richard Stallman <rms@gnu.org>
18412
18413 * lread.c (build_load_history): Do add to Vload_history
18414 even when dumping Emacs.
18415
184161998-09-18 Kenichi Handa <handa@etl.go.jp>
18417
18418 * ccl.c (CCL_WRITE_CHAR): Don't use bcopy.
18419 (ccl_driver): If BUFFER-MAGNIFICATION of the CCL program is 0,
18420 cause error if the program is going to output some bytes. When
18421 outputing a string to notify an error, check the case that
18422 DST_BYTES is zero.
18423
427ec082 18424 * coding.h (CODING_FINISH_INTERRUPT): New macro.
26901792
DL
18425
18426 * coding.c (ccl_coding_driver): If ccl_driver is interrupted by a
18427 user or the CCL program executed an invalid command, return
18428 CODING_FINISH_INTERRUPT.
18429 (code_convert_region): Pay attention to the converters return
18430 value CODING_FINISH_NORMAL and CODING_FINISH_INTERRUPT.
18431
184321998-09-16 Kenichi Handa <handa@etl.go.jp>
18433
18434 * coding.c (code_convert_region): Update beg_unchanged and
18435 end_unchanged after we delete the source text.
18436
18437 * insdel.c (adjust_markers_for_replace): Don't adjust a byte
18438 position if it is FROM.
18439 (adjust_markers_for_combining): New function.
18440 (combine_bytes): Call adjust_markers_for_combining instead of
18441 adjust_markers_for_replace.
18442 (adjust_after_replace): Record deletion of combining after bytes
18443 with the correct position.
18444 (replace_range): Likewise. Record the actual deletion after
18445 recoding deletions of combining bytes.
18446
18447 * xdisp.c (message_log_check_duplicate): Count byte length of the
18448 latest message correctly.
18449
184501998-09-12 Richard Stallman <rms@gnu.org>
18451
18452 * xdisp.c (redisplay_internal): Use TEMP_SET_PT_BOTH
18453 instead of SET_PT_BOTH.
18454 (try_window_id, display_text_line): Likewise.
18455
184561998-09-12 Karl Heuer <kwzh@gnu.org>
18457
18458 * data.c (Fmake_local_variable): Doc fix.
18459
184601998-09-10 Dave Love <fx@gnu.org>
18461
18462 * print.c (Fwith_output_to_temp_buffer): Doc fix.
18463
184641998-09-10 Richard Stallman <rms@gnu.org>
18465
18466 * s/irix6-0.h (TIOCSIGSEND): Add #undef.
18467 (bcopy, bcmp, bzero): Add #undef.
18468
18469 * keyboard.c (command_loop_1): When switching to selected window's bfr,
18470 first exit if selected frame is dead (no live frames remain).
18471 (read_key_sequence): Likewise.
18472
184731998-09-10 Karl Heuer <kwzh@gnu.org>
18474
18475 * emacs.c (main): Mention --display and --eval in help.
18476
184771998-09-07 Paul Eggert <eggert@twinsun.com>
18478
18479 * editfns.c (emacs_memftime): New function.
18480 (Fformat_time_string): Use it to handle null bytes in formats
18481 correctly.
18482
184831998-09-08 Kenichi Handa <handa@etl.go.jp>
18484
18485 * charset.c (Ffind_charset_region): Optimization for unibyte buffer.
18486 (Ffind_charset_string): For unibyte string, return (ascii).
18487
18488 * editfns.c (Fsubst_char_in_region): Call replace_range with the
18489 arg MARKERS 1.
18490
18491 * insdel.c (adjust_after_replace): Don't add combining bytes to
18492 the args given to adjust_point. Handle correctly the case that
18493 there are both before and after combining bytes.
18494 (replace_range): Likewise.
18495
184961998-09-07 Lars Magne Ingebrigtsen <larsi@gnus.org>
18497
18498 * fns.c (base64_decode_1, base64_encode_1): New functions.
18499 (Fbase64_decode_string, Fbase64_encode_string): New functions.
18500 (Fbase64_decode_region, Fbase64_encode_region): New functions.
18501
185021998-09-07 Karl Heuer <kwzh@gnu.org>
18503
18504 * eval.c (error): After enlarging buffer, write to it, not to buf.
18505
18506 * fns.c (Fwidget_put): Return VALUE instead of garbage.
18507
185081998-09-07 Kenichi Handa <handa@etl.go.jp>
18509
18510 * charset.h (STRING_CHAR_AND_LENGTH): Return correct value in
18511 ACTUAL_LEN even if LEN is too short to have a valid multibyte form.
18512 (STRING_CHAR_AND_CHAR_LENGTH): Likewise.
18513
18514 * coding.c (ccl_coding_driver): Always calculate correct mulibyte
18515 chars in produced byte sequence.
18516 (Ffind_operation_coding_system): Doc-string fixed.
18517
18518 * insdel.c (count_combining_after): Check also preceding bytes at
18519 POS if all characters in STRING are not character head.
18520
185211998-09-06 Paul Eggert <eggert@twinsun.com>
18522
18523 * editfns.c (Fformat_time_string, Fdecode_time, Fcurrent_time_zone):
18524 Don't assume that localtime and gmtime return non-NULL.
18525
185261998-09-06 Lars Magne Ingebrigtsen <larsi@gnus.org>
18527
18528 * fns.c (Fbase64_decode_string, Fbase64_encode_string,
18529 base64_decode_1, Fbase64_decode_region, Fbase64_encode_region):
18530 New functions.
18531
185321998-09-06 Richard Stallman <rms@gnu.org>
18533
18534 * editfns.c (Fformat): Detect incomplete format spec at string's end.
18535
18536 * lread.c (Fload): Handle case where openp finds a magic file
18537 but it has no `load' handler or that handler calls `load'.
18538 If FOUND != FILE, find FOUND's handler even if inhibited for FILE.
18539
185401998-09-04 Dave Love <fx@gnu.org>
18541
18542 * buffer.c (enable-multibyte-characters): Doc fix.
18543
185441998-09-02 Geoff Voelker <voelker@cs.washington.edu>
18545
18546 * w32heap.c (allocate_heap): Define NTHEAP_PROBE_BASE by default.
18547
185481998-09-01 Kenichi Handa <handa@etl.go.jp>
18549
18550 * editfns.c (Ftranspose_regions): Use BYTE_POS_ADDR to get an
18551 address in buffer from byte-position.
18552
185531998-09-01 Eli Zaretskii <eliz@delysid.gnu.org>
18554
18555 * w16select.c (Vnext_selection_coding_system): New variable.
18556 (syms_of_win16select): DEFVAR_LISP it. No need to staticpro
18557 Vselection_coding_system.
18558 (Fw16_set_clipboard_data): Always convert multibyte strings. Use
18559 Vnext_selection_coding_system if non-nil.
18560 (Fw16_get_clipboard_data): Always convert a string that includes
18561 non-ASCII characters. Use Vnext_selection_coding_system if
18562 non-nil.
18563
185641998-08-31 Andrew Innes <andrewi@harlequin.co.uk>
18565
18566 * w32fns.c (w32_wnd_proc): Always zero button_state when releasing
18567 mouse capture.
18568
185691998-08-31 Kenichi Handa <handa@etl.go.jp>
18570
18571 * xterm.c (x_load_font): If SIZE is 0, don't use a name
18572 x_list_font returns.
18573
185741998-08-31 Paul Eggert <eggert@twinsun.com>
18575
18576 * lread.c (read1): Don't assume that atof ("-0.0") yields +0.0.
18577 Handle leading '-' uniformly for zeros, infinities, and NaNs.
18578
185791998-08-31 Eli Zaretskii <eliz@delysid.gnu.org>
18580
18581 * msdos.c (IT_cmgoto): When tracking echo area messages with the
18582 cursor, save and restore previous cursor position in the
18583 minibuffer.
18584
185851998-08-31 Kenichi Handa <handa@etl.go.jp>
18586
18587 * charset.c (unibyte_char_to_multibyte):
18588 Vnonacii_translation_table will convert a 7-bit charcater.
18589 (multibyte_char_to_unibyte): Handle the case that
18590 Vnonacii_translation_table converts a multibyte charcater to a
18591 unibyte charcter of less than 128.
18592 (init_charset_once): Initialize nonascii_insert_offset and
18593 Vnonacii_translation_table.
18594
18595 * coding.c (decode_coding): Even if SRC_BYTES is zero, try
18596 processing if CODING requires flushing.
18597 (encode_coding): Likewise.
18598 (code_convert_region): Likewise.
18599 (code_convert_string): Likewise.
18600
18601 * fns.c (concat): If Vnonascii_translation_table is non-nil, try
18602 to convert a character less than 160 to multibyte.
18603 * insdel.c (copy_text): Likewise.
18604 (count_size_as_multibyte): Likewise.
18605 * xterm.c (dumpglyphs): Likewise.
18606
186071998-08-29 Paul Eggert <eggert@twinsun.com>
18608
18609 * data.c (arith_driver, float_arith_driver): Compute (- x) by
18610 using negation, not subtraction; this makes a difference with
18611 IEEE floating point arithmetic (and also if integer arithmetic
18612 is ones' complement or signed-magnitude!).
18613
186141998-08-29 Karl Heuer <kwzh@gnu.org>
18615
18616 * xfns.c (x_create_bitmap_from_file): Fail immediately if magic.
18617
186181998-08-28 Ken'ichi Handa <handa@delysid.gnu.org>
18619
18620 * charset.c (Fchar_bytes): Add \n\ in doc-string.
18621
186221998-08-28 Paul Eggert <eggert@twinsun.com>
18623
18624 * s/sol2-4.h (NOT_USING_MOTIF): New macro.
18625 (LD_SWITCH_SYSTEM_TEMACS): Put /usr/dt/lib in the link library
18626 path only if we're not building with Motif.
18627
186281998-08-28 Kenichi Handa <handa@etl.go.jp>
18629
18630 * insdel.c (adjust_after_replace): Fix the code to record undo
18631 information for the case that `before combining' happens. Remove
18632 text properties which are added to the new text by
18633 offset_intervals.
18634
18635 * coding.c (code_convert_region1): Remove all text properties of
18636 the region.
18637
186381998-08-28 Kenichi Handa <handa@etl.go.jp>
18639
18640 * charset.h (CHAR_BYTES): New macro.
18641
18642 * charset.c (Fchar_bytes): Now always return 1.
18643 (char_bytes): New function.
18644
18645 * editfns.c (Fposition_bytes): If the arg POSITION is out of
18646 range, return nil.
18647 (Fbyte_to_position): If the arg BYTEPOS is out of range, return
18648 nil.
18649
18650 * data.c (Faset): Use macro CHAR_BYTES instead of Fchar_bytes.
18651 * fns.c (concat): Likewise.
18652 * insdel.c (count_size_as_multibyte): Likewise.
18653 * xdisp.c (message_dolog): Likewise.
18654
186551998-08-27 Kenichi Handa <handa@etl.go.jp>
18656
18657 * coding.c (detect_coding_iso2022): Handle ESC N and ESC O
18658 correctly. They are for SS2 and SS3 respectively.
18659 (ccl_coding_driver): Fix previous change.
18660
186611998-08-26 Paul Eggert <eggert@twinsun.com>
18662
18663 * xterm.c (fixup_locale): New function. For now, it resets
18664 LC_TIME to "C" (reverting the 1998-08-07 change), and also
18665 resets LC_MESSAGES to "C".
18666 (x_term_init): Use it to fix up the locale after setlocale
18667 (LC_ALL, "").
18668
186691998-08-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18670
18671 * xterm.c (x_calc_absolute_position): Cast argument to XFree, in
18672 case it was prototyped the old way.
18673
186741998-08-25 Kenichi Handa <handa@etl.go.jp>
18675
18676 * xterm.c (x_list_fonts): Work-around for the case XGetAtomName
18677 returns a null string. This happens when dxpc 3.7 is being used.
18678
186791998-08-24 Andreas Schwab <schwab@delysid.gnu.org>
18680
18681 * keyboard.c (input-method-previous-message): Doc fix.
18682
18683 * coding.c (file-coding-system-alist,
18684 select-safe-coding-system-function): Doc fix.
18685
186861998-08-23 Kenichi HANDA <handa@etl.go.jp>
18687
18688 * coding.c (detect_coding_iso2022): Don't check the byte length of
18689 succeeding codes (0xa0..0xFF) if the codes follows single shift
18690 code (SS2 or SS3).
18691
186921998-08-21 Ken'ichi Handa <handa@delysid.gnu.org>
18693
18694 * coding.c (detect_coding_system): If detect_eol_type returns
18695 CODING_EOL_INCONSISTENT, set eol_type to CODING_EOL_UNDECIDED
18696 correctly.
18697
18698See ChangeLog.7 for earlier changes.