* search.c (compile_pattern): If a cache entry has a nil regexp, fill in that
[bpt/emacs.git] / src / ChangeLog
CommitLineData
f1b9c7c1
KR
12000-02-03 Ken Raeburn <raeburn@raeburn.org>
2
3 * search.c (compile_pattern): If a cache entry has a nil regexp,
4 fill in that entry instead of clobbering a previously cached
5 string regexp.
6
15c9cf81
KR
72000-02-02 Ken Raeburn <raeburn@raeburn.org>
8
9 * puresize.h (BASE_PURESIZE): Increase to 610000.
10
d240a249
GM
112000-02-02 Gerd Moellmann <gerd@gnu.org>
12
13 * frame.c (Fframe_parameters): Add GCPRO because tty_color_name
14 can GC.
15
ca91fb26
KH
162000-02-02 Kenichi Handa <handa@etl.go.jp>
17
25660570
KH
18 * ccl.c (ccl_driver) <CCL_WriteExprRegister>: Set jump_address
19 instead of incrementing ic directly.
20 <CCL_WriteExprConst> Likewise.
21 <ccl_set_expr>: Set ic to jump_address.
22
ca91fb26
KH
23 * fileio.c (e_write): Fix the handling of
24 CODING_FINISH_INSUFFICIENT_SRC.
25
2ede9689
DL
262000-02-01 Dave Love <fx@gnu.org>
27
28 * editfns.c (Fpropertize): Doc fix.
29
30 * process.c (Fstart_process): Doc fix.
31
32 * eval.c: Fix various doc strings not to duplicate information
33 from help-manyarg-func-alist.
34
35 * window.c (Fset_window_margins): Don't make interactive. Doc
36 fix.
37
38 * doc.c (Vhelp_manyarg_func_alist): New variable.
39 (Fdocumentation): Use it.
40 (syms_of_doc): Define it.
41
b6680a0e
GM
422000-01-31 Gerd Moellmann <gerd@gnu.org>
43
2cb750ba
GM
44 * xterm.c (xim_open_dpy): Remove unused local variable.
45
74e9213b
GM
46 * emacs.c (USAGE): Use term `display options' instead of `X
47 options'.
48
49 * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: New function.
50 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
51
b6680a0e
GM
52 * fns.c (sweep_weak_table): New function.
53 (sweep_weak_hash_tables): Use it. Keep on marking until there
54 is no more change.
55
994c5afe
GM
562000-01-30 Gerd Moellmann <gerd@gnu.org>
57
58 * xterm.c (x_delete_display): Update next_noop_dpyinfo to ensure
59 that XTread_socket does not crash by trying to call XNoOp on a
60 closed display.
61
f00276e3
JR
622000-01-30 Jason Rumney <jasonr@gnu.org>
63
64 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
65 Change selected_frame to SELECTED_FRAME ().
66 (w32_console_mouse_position): Remove #ifndef MULE from around
67 `insist' parameter.
68
69 * makefile.nt: Remove dosfns.obj.
70
71 * term.c (term_init) [WINDOWSNT]: Initialize TN_max_colors.
72
73 * w32fns.c (w32_defined_color): Check for valid frame before
74 applying gamma correction. Eliminate dependency on frame elsewhere.
75 (w32_load_system_font): Switch FIXED_PITCH and VARIABLE_PITCH.
76 (w32_to_x_font): Use resx and resy not height_in and width_in.
77 (x_to_w32_font): Doc fix.
78 (xlfd_strip_height): New function to strip and return font height.
79 (w32_font_match): Compare height separately from rest of xlfd
80 spec, using xlfd_strip_height.
81
82 * w32term.c (w32_term_init): Swap resx and height_in, resy and
83 width_in. Use w32_defined_color in place of defined_color.
84
85 * w32faces.c: Merge more of DOS and X specifics in preparation for
86 merge with xfaces.c.
87 (defined_color): Remove FIXME comment.
88 (tty_color_name): Provide w32-specific function.
89 (realize_tty_face): Handle FACE_TTY_DEFAULT*_COLOR specially.
90
91 * w32console.c (turn_on_face, turn_off_face): Removed.
92 (w32_face_attributes): New function.
93 (Global_variables): Reduce scope where possible.
94 (clear_frame, ins_del_lines, scroll_line): Use char_attr_normal as
95 fill attribute.
96 (hl_mode): Don't modify text attributes.
97 (write_glyphs): Don't do anything if len <= 0. Use
98 w32_face_attributes to get attributes for drawing. Write
99 terminating codes using char_attr_normal.
100 (reset_terminal_modes, set_terminal_modes): Turn off highlight.
101 (update_begin, update_end): Likewise.
102 (vga_stdcolor_name): New function.
103 (initialize_w32_display): Remove char_attr_reverse and char_attr.
104 (Fset_screen_color): Remove char_attr_reverse.
105
b08e8bb2
GM
1062000-01-29 Gerd Moellmann <gerd@gnu.org>
107
108 * xfns.c (xic_set_preeditarea): Take window parameter and
109 window-relative pixel-positions.
110
111 * xterm.c (x_display_cursor): Set XIC pre-edit area only if window
112 is its frame's selected window.
113 (xim_instantiate_callback): Likewise.
114
115 * xfns.c (x_create_im): Removed.
116 (DEFAULT_STYLE, DEFAULT_FONT): Removed.
117 (supported_xim_styles): Renamed from supported_styles.
118 (best_xim_style): Renamed from best_style.
119 (create_frame_xic): Renamed from xic_create_frame.
120 (free_frame_xic): Renamed from xic_destroy_frame.
121
1222000-01-29 INOUE Seiichiro <inoue@ainet.or.jp>
123
124 * xterm.c (XTread_socket) [HAVE_X_I18N]: If event is for none of
125 our frames, call XFilterEvent with 2nd parameter `None'.
126 (XTread_socket) <KeyPress> [HAVE_X_I18N]: Handle XmbLookupString
127 returning XBufferOverflow.
128 (XTread_socket) <ConfigureNotify> [HAVE_X_I18N]: Set XIC status
129 area.
130 (x_display_cursor) [HAVE_X_I18N]: Set XIC pre-edit area.
131 (x_new_fontset) [HAVE_X_I18N]: Create XIC status area fontset.
132 (xim_destroy_callback, xim_open_dpy, xim_instantiate_callback)
133 (xim_initialize, xim_close)
134 [HAVE_X_I18N && HAVE_X11R6]: New functions.
135 (x_destroy_window) [HAVE_X_I18N]: Call xic_destroy_frame.
136 (x_term_init) [HAVE_X_I18N]: Call xim_initialize.
137 (x_delete_display) [HAVE_X_I18N]: Call xim_close.
138
139 * xterm.h (struct x_display_info) [HAVE_X_I18N]: Add members `xim'
140 and `xim_styles'.
141 (struct x_output) [HAVE_X_I18N]: Remove member `xim', add
142 `xic_style' and `xic_xfs'.
143 (FRAME_MENUBAR_HEIGHT, FRAME_X_XIM, FRAME_X_XIM_STYLES)
144 (FRAME_XIC_STYLE, FRAME_XIC_FONTSET): New macros.
145 (FRAME_XIM): Removed.
146
147 * xfns.c (supported_styles): New variable.
148 (DEFAULT_STYLE, DEFAULT_FONT): New macros
149 (xic_create_xfontset, best_style, xic_create_frame)
150 (xic_destroy_frame, xic_set_preeditarea, xic_set_statusarea)
151 (xic_set_xfontset): New functions.
152
142e109c
DL
1532000-01-28 Dave Love <fx@gnu.org>
154
155 * s/irix6-5.h: Revert last change after change to irix5-0.h.
156
157 * m/iris4d.h (C_SWITCH_MACHINE): Don't use -G0.
158
b02786f9
GM
1592000-01-28 Gerd Moellmann <gerd@gnu.org>
160
d060bc9f
GM
161 * buffer.c (Fother_buffer): Don't call Fset_buffer_major_mode
162 for *scratch* if it already existed.
163
b02786f9
GM
164 * emacs.c (USAGE): New macro.
165 (main): Use it to display usage information.
166
2c52d7e4
EZ
1672000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
168
169 Support for the menu-help feature:
170
171 * msdos.h: Change prototypes of XMenuAddSelection and
172 XMenuActivate.
173
174 * msdos.c (IT_clear_end_of_line): Print the extent of the cleared
175 part of the line to the termscript file.
176 (IT_clear_to_end): Clear the entire line, not just its beginning.
177 (menu_help_message, prev_menu_help_message): New variables.
178 (IT_menu_make_room): Make room for the help_text member.
179 (IT_menu_display): New argument disp_help; all callers changed.
180 If disp_help is non-zero, store the help text of the active menu
181 item in menu_help_message.
182 (XMenuAddPane): Initialize the help_text member to NULL.
183 (XMenuAddSelection): New argument help_text. Store it in the
184 XMenu structure.
185 (XMenuActivate): New argument help_callback. If the value of
186 menu_help_message has changed since the last time, display the
187 menu help message text while waiting for the mouse to move. Clear
188 the echo area before exiting.
189 (XMenuDestroy): Free the help_text member.
190
ffe0bcd1
GM
1912000-01-27 Gerd Moellmann <gerd@gnu.org>
192
193 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT]: Pass help to
194 XMenuAddSelection. Pass help callback to XMenuActivate.
195 (menu_help_callback) [!USE_X_TOOLKIT]: New function.
196
50dbd23f
EZ
1972000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
198
199 * atimer.c (start_atimer) [!HAVE_SETITIMER]: Use EMACS_SET_SECS
200 and EMACS_SET_USECS.
201
f5941bf8
GM
2022000-01-26 Dave Love <fx@gnu.org>
203
6c67ddee
DL
204 * editfns.c (Fchar_after, Fchar_before): Doc fix.
205
f5941bf8
GM
206 * bytecode.c (Fbyte_code): Use {BEFORE,AFTER}_POTENTIAL_GC where
207 an error may be signalled.
208
9e49c990
GM
2092000-01-26 Gerd Moellmann <gerd@gnu.org>
210
fc3cb460
GM
211 * s/irix6-5.h [__GNUC__ && __GNUC_MINOR__ >= 95]: Undef
212 LD_SWITCH_SYSTEM inherited from irix5-0.h.
213
9e49c990
GM
214 * bytecode.c (Fbyte_code) [BYTE_CODE_SAFE]: Fix typo.
215
d0c037d8
GM
2162000-01-25 Gerd Moellmann <gerd@gnu.org>
217
218 * charset.c (Fstring): If there is a multibyte char among
219 the args, always return a multibyte string.
220
e12489f9
GM
2212000-01-25 Gerd Moellmann <gerd@gnu.org>
222
223 * sysdep.c (sys_select): Turn atimers off and on instead of
224 recording and restoring old alarm handler
225
226 * process.c (toplevel): Include atimer.h.
227 (create_process_1): Rewritten.
228 (create_process): Use atimers instead of alarm.
229 (wait_reading_process_input) [hpux]: Turn atimers off instead
230 of turning off SIGALRM.
231 (wait_reading_process_input): Turn off atimers instead off
232 calling stop_polling.
233
234 * emacs.c (main): Call init_atimer.
235
236 * keyboard.c (toplevel): Include systime.h and atimer.h.
237 (polling_for_input): Removed because unused.
238 (input_poll_signal) [POLL_FOR_INPUT]: Removed.
239 (poll_timer): New variable.
240 (poll_for_input, poll_for_input_1): New functions.
241 (start_polling, stop_polling): Rewritten.
242
243 * keyboard.h (polling_for_input): Removed.
244
245 * atimer.h, atimer.c: New files.
246
247 * Makefile.in (obj): Add atimer.o.
248 (atimer.o): New target.
249
250 * blockinput.h (pending_atimers): Add extern declaration.
251 (UNBLOCK_INPUT): Rewritten. Handle pending atimers.
252
253 * lisp.h (popup_activated_flag): Add extern declaration.
254
255 * xmenu.c (popup_activated_flag): Make externally visible.
256 (popup_activate_callback) [USE_MOTIF]: Increment
257 popup_activated_flag.
258 (popup_deactivate_callback) [USE_MOTIF]: Decrement it.
259
260 * xterm.c (toplevel): Include atimer.h.
261 (toolkit_scroll_bar_interaction): New variable.
262 (Fxt_process_timeouts): Removed.
263 (x_process_timeouts): New function.
264 (xt_action_hook): Clear toolkit_scroll_bar_interaction.
265 (x_send_scroll_bar_event): Set toolkit_scroll_bar_interaction.
266 (x_make_frame_visible): Call poll_for_input_1 instead of
267 input_poll_signal. Don't call alarm.
268 (x_initialize): Install timer calling x_process_timeouts.
269
1e5279b9
DL
2702000-01-24 Dave Love <fx@gnu.org>
271
6c67ddee 272 * s/irix5-0.h: Don't set LD_SWITCH_SYSTEM -- we use unexelf now.
1e5279b9
DL
273 Don't use -cckr -- apparently not now necessary.
274
edf6aeb8
EZ
2752000-01-24 Eli Zaretskii <eliz@is.elta.co.il>
276
277 * msdos.c (IT_menu_display): Truncate long menu lines at the right
278 screen boundary.
279
9badad41
JR
2802000-01-23 Jason Rumney <jasonr@gnu.org>
281
282 * w32fns.c (w32_defined_color): Apply gamma correction before
283 trying to map to the palette.
284 (w32_wnd_proc) [WM_ERASE_BACKGROUND]: Pass device context of frame
285 to w32_clear_rect.
286
287 * w32term.c (w32_fill_rect): Do not try to deal with NULL hdc
288 here. Callers changed to always pass real device context.
289 (w32_draw_bitmap): Likewise.
290 (w32_get_glyph_overhangs): Likewise.
291 (w32_draw_box_rect): Make use of s->hdc rather than getting a new
292 one.
293 (w32_set_vertical_scroll_bar): Pass correct HWND parameters to
294 pfnSetScrollInfo and SetScrollRange.
295 (x_get_char_face_and_encoding): Don't turn iso8859-1 characters
296 back into MULE characters after decoding them.
297 (x_get_glyph_face_and_encoding): Likewise.
298 (w32_per_char_metric): Use GetCharExtentPoint32W as fallback when
299 GetCharABCWidthsW fails, since this is defined on Windows 9x.
300 (x_produce_glyphs): Calculate per char metrics for a character
301 that we know exists in default font when font_not_found_p is true.
302
63bd786b
JR
3032000-01-22 Jason Rumney <jasonr@gnu.org>
304
305 * makefile.nt (intervals.obj, composite.obj): New modules.
306 (composite.h): Added as dependency where appropriate.
307
308 * w32gui.h (XGCValue): New struct for emulating X GCs.
309
310 * w32term.h (XCharStruct): New struct for emulating X.
311
312 * w32console.c (turn_on_face, turn_off_face): New functions.
313 (change_line_highlight): New prototype for new redisplay.
314 (write_glyphs): Support multibyte text. Support faces.
315
316 * w32faces.c: Complete rewrite for new redisplay based on new
317 xfaces.c.
318
319 * w32fns.c: Use SELECTED_FRAME macro in place of selected_frame
320 throughout. struct frame * in place of FRAME_PTR.
321 Skeleton support for images, toolbars, tooltips from xfns.c.
322 (Fx_create_frame): Use system default for default scroll bar
323 width.
324 (w32_get_arg): Renamed from x_get_arg.
325 (Fx_file_dialog): New function.
326 (w32_list_fonts): Check cache before asking system.
327 (Vw32_enable_synthesized_fonts): New variable.
328 (Vw32_enable_italics): Obsolete, removed.
329
330 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
331 Use SELECTED_FRAME macro.
332
333 * w32menu.c: Add skeleton support for help strings on menus.
334 (add_menu_item): Native checkbox and radio support added, but not
335 yet enabled due to bugs.
336 (push_menu_item): Add parameters type, selection and help.
337 Callers updated.
338 Formatting changes to reduce unnecessary diffs with xmenu.c.
339
340 * w32select.c (Fw32_set_clipboard_data): Update call to
341 find_charset_in_str.
342
343 * w32term.c: Complete rewrite for new redisplay based on new
344 xterm.c with necessary sections merged back in from old w32term.c.
345
b50c9214
RS
3462000-01-21 Richard M. Stallman <rms@caffeine.ai.mit.edu>
347
348 * data.c (set_internal): Further fix in same criterion.
349
8cc95642
RS
3502000-01-20 Richard M. Stallman <rms@caffeine.ai.mit.edu>
351
352 * data.c (set_internal): Fix the criteria for whether
353 to swap out the old cached binding.
354
60af03f1
DL
3552000-01-19 Dave Love <fx@gnu.org>
356
357 * lread.c: (syms_of_lread) [user-init-file]: Doc change.
358
f9be074f
KH
3592000-01-18 Kenichi Handa <handa@etl.go.jp>
360
361 * regex.c (re_compile_fastmap): While checking a range table for
362 `charset', skip flag bits for a character class correctly.
363
52b8dbf9
GM
3642000-01-17 Gerd Moellmann <gerd@gnu.org>
365
d36100c9
GM
366 * m/news-risc.h (LD_SWITCH_MACHINE): Define differently for GCC.
367
52b8dbf9
GM
368 * xfns.c (x_window): Call lw_create_widget with new parameter
369 list.
370
371 * widget.c (EmacsFrameSetCharSize): Change size of children first
372 because of problems with main window geometry management under
373 Lesstif.
374
375 * xmenu.c (enum menu_item_idx): New enumeration replacing defines
376 MENU_ITEMS_ITEM_.*.
377 (MENU_ITEMS_ITEM_HELP): New enumerator.
378 (push_menu_item): Add parameter HELP. Record help in menu_items.
379 (single_menu_item, single_submenu, list_of_items): Call
380 push_menu_item with new parameter.
381 (single_submenu): Set help string in widget value.
382 (menu_highlight_callback): New function.
383 (set_frame_menubar): Call lw_create_widget with new
384 parameter list.
385 (xmenu_show, xdialog_show): Ditto.
386
3139018f
GM
3872000-01-13 Gerd Moellmann <gerd@gnu.org>
388
389 * sound.c (Fplay_sound): Improve doc string.
390
83c8f461
RS
3912000-01-11 Richard M. Stallman <rms@gnu.org>
392
393 * lisp.h (set_internal): Enter the new arg.
394
395 * eval.c (specbind): Record buffer-local variables specially,
396 indicating which buffer's binding was saved.
397 (unbind_to): Restore buffer-local variables specially
398 in the proper buffer.
399
400 * data.c (set_internal): New arg BUF.
401
402 * eval.c (specbind, unbind_to): Pass new arg to set_internal.
403 * data.c (Fset): Pass new arg to set_internal.
404 * bytecode.c (Fbyte_code): Pass new arg to set_internal.
405
1fab1775
GM
4062000-01-11 Gerd Moellmann <gerd@gnu.org>
407
408 * .gdbinit: Adapt to new strings. Add xbacktrace, xreload,
409 xprintsym.
410
83c8f461 4112000-01-11 Richard M. Stallman <rms@gnu.org>
6f59462e
RS
412
413 * minibuf.c (Ftry_completion): Doc fix.
414
7a85e4df
GM
4152000-01-11 Gerd Moellmann <gerd@gnu.org>
416
417 * keyboard.c (Fclear_this_command_keys): Clear recent_keys
418 vector, too.
419
a970dae4
AS
4202000-01-11 Andreas Schwab <schwab@suse.de>
421
422 * coding.c (code_convert_region): Initialize total_skip.
423
c65d14ee
DL
4242000-01-08 Dave Love <fx@gnu.org>
425
426 * eval.c (Fuser_variable_p): Check customizability too.
427
834938d2
GM
4282000-01-07 Gerd Moellmann <gerd@gnu.org>
429
430 * minibuf.c (Fcompleting_read): Doc fix.
431
e0303cd6
GM
4322000-01-05 Gerd Moellmann <gerd@gnu.org>
433
8a26744b
GM
434 * s/freebsd.h (C_SWITCH_SYSTEM): Add -I /usr/local/include and
435 -L /usr/local/lib.
436
e0303cd6
GM
437 * xfns.c (x_create_im): New function to set IM and IC of a frame.
438 Check that input style is supported before trying to create an
439 IC for it.
440 (x_window): Call x_create_im.
441
2e471eb5
GM
4422000-01-04 Gerd Moellmann <gerd@gnu.org>
443
560a7bd2
GM
444 * xfns.c (current_gif_memory_src): New variable.
445 (gif_load): Record the address of the current memory source
446 in current_gif_memory_src.
447 (gif_read_from_memory): Use current_gif_memory_src.
448
f9ee84a3
GM
449 * systime.h (EMACS_GET_TIME, EMACS_ADD_TIME, EMACS_SUB_TIME): Give
450 macros statement form.
451
d1299cde
GM
452 * sound.c (struct sound): Renamed from struct sound_file.
453 (struct sound): Add members `data' and `header_size'.
454 (enum sound_attr): Add SOUND_DATA.
455 (current_sound, current_sound_device): Variables renamed from
456 sound_file and sound_device.
457 (parse_sound): Parse :data.
458 (parse_sound): Handle sound data in strings.
459 (find_sound_type): Function renamed from find_sound_file_type.
460 (wav_init, au_init): Fail if sound's header_size is smaller than
461 needed header size.
462 (wav_play, au_play): Play sounds from string data.
463
2e471eb5
GM
464 * puresize.h (BASE_PURE_SIZE): Increase to 600000.
465
466 * lisp.h: Add prototype for allocate_string_data.
467
468 * alloc.c (Fgarbage_collect): Return number of live and free
469 strings.
470
471 * alloc.c (mark_buffer): Remove code in #if 0.
472 (gc_sweep): Ditto.
473 (UNMARK_BALANCE_INTERVALS): Give the macro statement form.
474 (strings_consed): New variable.
475 (allocate_string): Set it.
476 (syms_of_alloc): Add DEFVAR_INT for strings_consed.
477 (Fmemory_use_counts): Return strings_consed. Use Flist.
478
479 * alloc.c: General cleanup in comments etc. Remove conditional
480 compilation for `standalone'.
481
482 * lisp.h (struct Lisp_String): Make DATA member `unsigned char *'.
483
484 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P):
485 (GC_STRING_BYTES, GC_STRING_CHARS): New macros.
486 (DONT_COPY_FLAG): Removed.
487 (SBLOCK_SIZE, LARGE_STRING_BYTES): New macros.
488 (struct sdata, struct sblock): New
489 (struct string_block): Rewritten.
490 (STRINGS_IN_STRING_BLOCK): New macro.
491 (oldest_sblock, current_sblock, total_strings, total_free_strings)
492 (large_sblocks, string_blocks, string_free_list): New variables.
493 (NEXT_FREE_LISP_STRING, SDATA_OF_STRING, SDATA_SIZE): New macros.
494 (init_strings): Rewritten.
495 (allocate_string, allocate_string_data, compact_small_strings)
496 (free_large_strings, sweep_strings): New functions.
497 (STRING_BLOCK_SIZE, STRING_BLOCK_OUTSIZE)
498 (struct string_block_head, current_string_block)
499 (first_string_block, large_string_blocks, STRING_FULLSIZE)
500 (STRING_PAD): Removed.
501 (make_uninit_multibyte_string, make_pure_string): Rewritten.
502 (Fgarbage_collect): Don't set mark bit in large strings.
503 (mark_object): Mark strings differently. Mark symbol names
504 differently.
505 (survives_gc_p): Test marked strings differently.
506 (gc_sweep): Sweep strings differently, unmark strings in
507 symbol names.
508 (compact_strings): Removed.
509
42608ba8
EZ
5102000-01-04 Eli Zaretskii <eliz@is.elta.co.il>
511
512 * xfaces.c (syms_of_xfaces): defsubr Scolor_gray_p and
513 Scolor_supported_p even if HAVE_X_WINDOWS is not defined.
514
e0a09e1a
KH
5152000-01-04 Kenichi Handa <handa@etl.go.jp>
516
dd9f0750
KH
517 * fileio.c (Finsert_file_contents): Signal error if visiting file
518 in a non-empty buffer.
519
3c0f3b15 520 * term.c (encode_terminal_code): Fix the previous change.
e0a09e1a 521
44cd3ae5
GM
5222000-01-03 Gerd Moellmann <gerd@gnu.org>
523
524 * xfaces.c (syms_of_xfaces): Change Sface_color_gray_p to
525 Scolor_gray_p, Sface_color_supported_p to Scolor_supported_p.
526
527 * s/hpux9.h (NO_EDITRES): Define even if HAVE_LIBXMU.
528
c182a70f
EZ
5292000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
530
531 * xdisp.c (handle_single_display_prop) [HAVE_WINDOW_SYSTEM]: No
532 need to test for MSDOS frames.
533
24480d5b
EZ
5342000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
535
536 * dosfns.c (unspecified_colors): Remove.
537 (msdos_stdcolor_idx): Use global variables unspecified_fg and
538 unspecified_bg.
539 (msdos_stdcolor_name): Return strings for unspecified fore- and
540 back-ground colors.
541
542 * xfaces.c (Qunspecified_fg, Qunspecified_bg): Remove.
543 (syms_of_xfaces): Remove theit staticpro's.
544 (tty_color_name): Return Lisp strings for unspecified fore- and
545 back-ground colors.
546 (Finternal_set_lisp_face_attribute): Remove the special treatment
547 for Qunspecified_{f,b}g.
548 (realize_default_face): Replace Qunspecified_{f,b}g with a Lisp
549 string.
550
047f434a
GM
5512000-01-03 Gerd Moellmann <gerd@gnu.org>
552
553 * xdisp.c (reseat_at_next_visible_line_start): Position before
554 newline only if ending up on a newline.
555 (next_element_from_ellipsis): Return success. Handle case of
556 displaying no ellipsis. Fix case of ellipsis defined in display
557 table.
558 (next_element_from_buffer): Return 0 if next_element_from_ellipsis
559 returns 0.
560
d684c676
EZ
5612000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
562
563 * xfaces.c (Fcolor_gray_p): Renamed from face-color-gray-p.
564 (Fcolor_supported_p): Renamed from face-color-supported-p.
565
5fe1d139
EZ
5662000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
567
568 * xfaces.c (tty_defined_color): Pass frame to tty-color-desc. The
569 list of colors renamed to tty-defined-color-alist.
570 (tty_color_name): Pass the frame to tty-color-by-index.
571 (realize_tty_face): tty-color-alist is now a function which
572 accepts the frame as argument.
573
574 * term.c (Ftty_display_color_p): Accept an optional argument
575 FRAME.
576
816be8b8
EZ
5772000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
578
579 * term.c (insert_glyphs): Pass glyph, not &glyph, to
580 encode_terminal_code.
581
b635321e
EZ
5822000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
583
584 * dispnew.c (mode_line_string): Support termcap frames as well.
585
9b784e96
GM
5862000-01-01 Gerd Moellmann <gerd@gnu.org>
587
27189709
GM
588 * syntax.c (Fforward_word): Undo previous change.
589
590 * editfns.c (Fconstrain_to_field): Don't constrain if
591 inhibit-field-text-motion is non-nil.
592 (Fline_beginning_position): Undo previous change.
593 (Fline_end_position): Ditto.
594
595 * syntax.c (Fforward_word): Notice field boundaries only if
596 inhibit-field-text-motion is nil.
597
598 * lisp.h: Add extern declaration for Vinhibit_field_text_motion.
599
600 * editfns.c (Vinhibit_field_text_motion): New variable.
601 (inhibit-field-text-motion): New DEFVAR_LISP.
602 (Fline_beginning_position, Fline_end_position): Notice field
603 boundaries only if inhibit-field-text-motion is nil.
604
45158a91
GM
605 * xfns.c (x_create_x_image_and_pixmap): Remove parameter FILE.
606 All calls adjusted.
607 (x_build_heuristic_mask): Likewise.
608 (xbm_load_image_from_file): Change error output.
609 (xbm_load, xpm_load, pbm_load, png_load, jpeg_load, tiff_load)
610 (gif_load, gs_load, x_kill_gs_process): Ditto.
611
9b784e96
GM
612 * xfns.c (gif_load): Avoid sign extension and thus out of bounds
613 color indices when accessing raster pixels.
63cec32f
GM
614 (gif_image_p, png_image_p, jpeg_image_p, tiff_image_p): Allow only
615 one of :file or :data.
616 (enum pbm_keyword_index): Add PBM_DATA.
617 (pbm_format): Add :data.
618 (pbm_image_p): Allow either :file or :data.
619 (pbm_read_file): New function.
620 (pbm_scan_number): Rewritten to read from string.
621 (pbm_load): Support :data.
9b784e96 622
5ad6a5fb
GM
6231999-12-31 Gerd Moellmann <gerd@gnu.org>
624
625 * xfns.c: New image functions adapted to Emacs conventions.
626 (png_load, tiff_load, jpeg_load, gif_load): Always GCPRO local
627 variable `file'.
628
63448a4d
WP
6291999-12-31 William M. Perry <wmperry@aventail.com>
630
631 * xfns.c (jpeg_format): Added the :data keyword
632 (jpeg_image_p): JPEG is valid with :file _or_ :data
633 (jpeg_memory_src): Defined new JPEG image source to read from a
634 memory buffer.
635 (jpeg_load): Pay attention to the :data keyword if specified.
636 Instantiates a jpeg_memory_src instead of jpeg_stdio_src if
637 found.
638 (png_format): Added the :data keyword
639 (png_image_p): PNG is valid with :file _or_ :data
640 (png_read_from_memory): New PNG read function to read from a
641 memory buffer.
642 (png_load): Pay attention to the :data keyword if specified. Uses
643 png_set_read_fn() instead of png_init_io() if specified.
644 (tiff_format): Added the :data keyword for TIFF images.
645 (tiff_image_p): TIFF is valid with :file _or_ :data
646 (tiff_read_from_memory): Defined new TIFF I/O functions to read
647 from a memory buffer.
648 (tiff_load): Pay attention to the :data keyword if specified.
649 Uses TIFFClientOpen() instead of TIFFOpen() if specified.
650 (gif_format): Added the :data keyword
651 (gif_image_p): GIF is valid with :file _or_ :data
652 (gif_read_from_memory): New GIF input function to read from a
653 memory buffer.
c65d14ee 654 (gif_load): Pay attention to the :data keyword. Uses DGifOpen()
63448a4d
WP
655 instead of DGifOpenFileName() if specified.
656
c880678e
GM
6571999-12-31 Gerd Moellmann <gerd@gnu.org>
658
659 * xdisp.c (next_element_from_buffer): Change assertion at the end
660 because it doesn't hold when there's an overlay string at the end
661 from which we deliver an image.
662
8ccb9a54
EZ
6631999-12-30 Eli Zaretskii <eliz@is.elta.co.il>
664
665 * msdos.c (IT_update_begin): Don't dereference members of struct
666 window for deleted windows.
667
12ce2351
GM
6681999-12-30 Gerd Moellmann <gerd@gnu.org>
669
a915c648
GM
670 * abbrev.c (Fexpand_abbrev): If expanding an abbrev which has only
671 a hook, and the hook has a non-nil `no-self-insert' property, let
672 the return value of the hook specify whether an expansion took
673 place. If it returns nil, no expansion has been performed.
674
12ce2351
GM
675 * xterm.c (x_make_frame_visible): Wait for frame becoming visible
676 differently.
677
04ee4f45
EZ
6781999-12-30 Eli Zaretskii <eliz@is.elta.co.il>
679
680 * msdos.c (IT_write_glyphs): Track last changes to struct glyph.
681
7f4bc0c3
EZ
6821999-12-29 Eli Zaretskii <eliz@is.elta.co.il>
683
684 * dispnew.c (mode_line_string): Support MS-DOS frames.
685
dac204bc
GM
6861999-12-29 Gerd Moellmann <gerd@gnu.org>
687
688 * eval.c (syms_of_eval): Initialize debugger_may_continue.
689
7b712ad8
KH
6901999-12-29 Kenichi Handa <handa@etl.go.jp>
691
692 * process.c (read_process_output): Fix the args CHARPOS and LENINS
693 to signal_after_change.
694
adb9900f
EZ
6951999-12-28 Eli Zaretskii <eliz@is.elta.co.il>
696
41ad069b
EZ
697 * msdos.c (dos_set_window_size) [__DJGPP__ > 1]: If the frame
698 dimensions changed, invalidate the mouse highlight info.
699 (disable_mouse_highlight, help_echo, previous_help_echo): New
700 variables.
701 (IT_set_mouse_pointer, show_mouse_face, clear_mouse_face)
702 (fast_find_position, IT_note_mode_line_highlight)
703 (IT_note_mouse_highlight): New functions.
704 (IT_update_begin): If the redisplay affects the window where the
705 mouse highlight is, clear the highlight. If the frame where the
706 highlight was displayed was killed, invalidate the highlight
707 info.
708 (IT_update_end): Reset the highlight flag. Reset the mouse
709 highlight-defer flag.
710 (IT_frame_up_to_date): New function, if mouse highlight was
711 deferred due to GC, do it now.
712 (internal_terminal_init): Initialize mouse-highlight related
713 members of the_only_x_display. Assign IT_frame_up_to_date to
714 frame_up_to_date_hook.
715 (dos_rawgetc): If the mouse moved, update mouse highlight. If
716 help_echo changed value, generate a HELP_EVENT event.
717 (syms_of_msdos): Staticpro help_echo and previous_help_echo.
718
adb9900f
EZ
719 * msdos.h (struct display_info): New.
720 (struct x_output): Add the display_info member.
721 (FRAME_X_DISPLAY_INFO): New macro.
722
481b5054
GM
7231999-12-28 Gerd Moellmann <gerd@gnu.org>
724
725 * xdisp.c (try_window_id): Compute BEG_UNCHANGED and END_UNCHANGED
726 if MODIFF > 1.
6448a6b3 727 (dump_glyph_row): Adapt to changes in struct glyph.
481b5054
GM
728
729 * buffer.c (modify_overlay): Always compute unchanged info.
730
a2882b0d
KH
7311999-12-27 Kenichi Handa <handa@etl.go.jp>
732
733 * dispextern.h (FACE_FROM_ID): Cast the arg ID to `unsigned'.
734
89ba5b5f
KH
7351999-12-27 Kenichi Handa <handa@etl.go.jp>
736
737 The following changes are to use more bits for face IDs.
738
739 * lisp.h (GLYPH): Defined as `int', not `unsigned int'. Now the
740 lowest 8 bits are single byte character code, the bits above are
741 face ID.
481b5054 742 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjusted for the change
89ba5b5f 743 above.
481b5054
GM
744 (FAST_MAKE_GLYPH, FSST_GLYPH_FACE): Likewise.
745 (GLYPH_MASK_REV_DIR, GLYPH_MASK_PADDING): Macros deleted.
89ba5b5f
KH
746
747 * charset.h (CHAR_BYTES): Use ((1 << CHARACTERBITS) - 1) instead
748 of GLYPH_MASK_CHAR.
749
750 * charset.c (char_bytes): Use ((1 << CHARACTERBITS) - 1) instead
751 of GLYPH_MASK_CHAR.
752
753 * dispextern.h (struct glyph): Make face_id and padding_p the top
754 level members. Change members in union `u'.
755 (GLYPH_EQUAL_P): Check also members face_id and padding_p.
756 (GLYPH_CHAR_AND_FACE_EQUAL_P): New macro.
757 (SET_CHAR_GLYPH): Adjusted for the change of struct glyph.
758 (CHAR_GLYPH_PADDING_P): Likewise.
759 (GLYPH_FROM_CHAR_GLYPH): Likewise. Always return -1 for multibyte
760 characters.
761
481b5054 762 * dispnew.c (line_hash_code, direct_output_for_insert): Adjusted
89ba5b5f
KH
763 for the change of struct glyph.
764 (line_draw_cost): Adjusted for the change of
765 GLYPH_FROM_CHAR_GLYPH.
766 (count_match): Use macro GLYPH_CHAR_AND_FACE_EQUAL_P.
767
768 * term.c (encode_terminal_code): Adjusted for the change of struct
769 glyph and GLYPH_FROM_CHAR_GLYPH.
481b5054 770 (write_glyphs, insert_glyphs, append_glyph): Adjusted for the
89ba5b5f
KH
771 change of struct glyph.
772
773 * xdisp.c: All codes adjusted for the change of struct glyph.
774
775 * xterm.c: All codes adjusted for the change of struct glyph.
776
5bcd116c
KH
7771999-12-27 Kenichi Handa <handa@etl.go.jp>
778
779 * composite.h (struct composition): Change the order of declaring
780 members to reduce the byte size of the structure.
781
f21b06b7
GM
7821999-12-25 Gerd Moellmann <gerd@gnu.org>
783
784 * search.c (looking_at_1): Reset immediate_quit before modifying
785 global data.
786
e36557c9
KH
7871999-12-24 Kenichi Handa <handa@etl.go.jp>
788
789 * process.c (read_process_output): Fix the arg FROM to
790 update_compositions.
791
83c8f461 7921999-12-22 Richard M. Stallman <rms@gnu.org>
f7c9e039
RS
793
794 * search.c (Freplace_match): For nonliteral replacement in buffer,
795 construct all the new text first, then insert all at once.
796
0b863bd9
DL
7971999-12-22 Dave Love <fx@gnu.org>
798
799 * xfns.c (Fx_show_tip): Gcpro `timeout' too.
800
6d8e8ef3
GM
8011999-12-22 Gerd Moellmann <gerd@gnu.org>
802
28d7281d
GM
803 * xfns.c (Fx_create_frame): Move x_default_parameter calls that
804 lead to size changes to after the X window has been created.
805
e22ef6eb 806 * xfaces.c (realize_x_face): Don't use uninitialized local
6d8e8ef3
GM
807 variable in xassert.
808
8affcced
KH
8091999-12-22 Kenichi Handa <handa@etl.go.jp>
810
811 * xfaces.c (face_color_supported_p): Check by tty_defined_color
6d8e8ef3 812 only when the frame is not for a window system.
8affcced 813
f2be1146
GM
8141999-12-22 Gerd Moellmann <gerd@gnu.org>
815
deca1348
GM
816 * buffer.c (Fset_buffer_multibyte): Arrange for a thorough
817 redisplay after changing the multibyteness of a buffer.
818
f2be1146
GM
819 * xterm.c (XTread_socket): At the beginning of the loop, pass the
820 frame's X window to XFilterEvent instead of None because that's
821 the X window for which the IC was created. This makes dead
822 accents work when the pointer is not in Emacs' frame.
823 (XTread_socket) <KeyPress>: Don't call XFilterEvent here.
824
a744a2ec
DL
8251999-12-20 Dave Love <fx@gnu.org>
826
827 * xfns.c (Fx_show_tip): Add missing UNGCPRO.
828
9e6985ed
GM
8291999-12-19 Gerd Moellmann <gerd@gnu.org>
830
831 * eval.c (debugger_may_continue): New variable.
832 (syms_of_eval): Add a DEFVAR_BOOL for it.
833 (call_debugger): Bind it.
834
3b620731
EZ
8351999-12-19 Eli Zaretskii <eliz@is.elta.co.il>
836
837 * msdos.c (IT_set_face): Don't swap face colors when highlight or
838 fp->tty_reverse_p is set, unless the computed colors are identical
839 to frame colors. Print both original and computed colors to
840 termscript file.
841 (IT_write_glyphs): Track the changes in handling of composite
842 characters.
843 (IT_set_frame_parameters): Don't set frame colors from
844 unspecified-fg and unspecified-bg pseudo-colors.
845
0f9a51c4
DL
8461999-12-17 Dave Love <fx@gnu.org>
847
848 * data.c (Fkeywordp): New function.
849 (syms_of_data): Install it.
850
363e4e42
EZ
8511999-12-16 Eli Zaretskii <eliz@is.elta.co.il>
852
853 * xfaces.c (tty_defined_color): Fix last change.
854
cfad01b4
GM
8551999-12-15 Gerd Moellmann <gerd@gnu.org>
856
857 * xdisp.c (redisplay_window) <optional new window start>: Check
858 that window start is in [BEGV..ZV].
859
f9d2fdc4
EZ
8601999-12-15 Eli Zaretskii <eliz@is.elta.co.il>
861
862 * dispextern.h (FACE_TTY_DEFAULT_FG_COLOR)
863 (FACE_TTY_DEFAULT_BG_COLOR): New macros.
864
865 * xfaces.c (Qunspecified_fg, Qunspecified_bg): New variables.
866 (syms_of_xfaces): Initialize and staticpro them.
867 (tty_defined_color): If the color name is unspecified-fg or
868 unspecified-bg, return FACE_TTY_DEFAULT_FG_COLOR and
869 FACE_TTY_DEFAULT_BG_COLOR, respectively, as the pixel value.
870 (tty_color_name): If the color pixel value is either
871 FACE_TTY_DEFAULT_FG_COLOR or FACE_TTY_DEFAULT_BG_COLOR, return
872 Qunspecified_fg or Qunspecified_bg, respectively.
873 (Finternal_set_lisp_face_attribute): Allow values Qunspecified_fg
874 and Qunspecified_bg for foreground and background colors.
875 (realize_default_face): If the foreground and background colors
876 are not specified, default to Qunspecified_fg and Qunspecified_bg.
877 (realize_tty_face): By default, set the face colors to
878 FACE_TTY_DEFAULT_FG_COLOR and FACE_TTY_DEFAULT_BG_COLOR.
879 [MSDOS]: Handle FACE_TTY_DEFAULT_FG_COLOR and
880 FACE_TTY_DEFAULT_BG_COLOR when face colors are not defined.
881 Reverse the colors if the default colors were reversed.
882
883 * dispnew.c (init_display): Initialize the frame pixels of the
884 initial frame to FACE_TTY_DEFAULT_FG_COLOR and
885 FACE_TTY_DEFAULT_BG_COLOR.
886
887 * term.c (turn_on_face): If the default fore- and background
888 colors are reversed, enter inverse video mode. Don't send color
889 escape sequences for unspecified foreground and background colors.
890 (turn_off_face): Handle unspecified-fg and unspecified-bg colors.
891
892 * dosfns.c (unspecified_colors): New variable.
893 (msdos_stdcolor_idx): Handle unspecified-fg and unspecified-bg
894 color names, return FACE_TTY_DEFAULT_FG_COLOR and
895 FACE_TTY_DEFAULT_BG_COLOR, respectively.
896 (msdos_stdcolor_name): Handle FACE_TTY_DEFAULT_FG_COLOR and
897 FACE_TTY_DEFAULT_BG_COLOR, return Qunspecified_fg and
898 Qunspecified_bg, respectively.
899
900 * msdos.c (IT_set_face): Support FACE_TTY_DEFAULT_FG_COLOR and
901 FACE_TTY_DEFAULT_BG_COLOR as pixel values.
902
e19539f1
KH
9031999-12-15 Kenichi Handa <handa@etl.go.jp>
904
905 * coding.c (code_convert_region): Fix the secoding arg to
906 update_compositions.
907
5ec14d3c
KH
9081999-12-15 Kenichi Handa <handa@etl.go.jp>
909
910 The following changes are for the new composition mechanism. We
911 have deleted `composition' charset and composite characters,
912 instead introduced a special text property `composition'.
913
914 * Makefile.in (INTERVAL_SRC): Include composite.h.
915 (INTERVAL_OBJ): Include composite.o.
916 (SOME_MACHINE_OBJECTS): Include composite.o.
917 (casefiddle.o) (dispnew.o) (indent.o) (process.o) (search.o)
918 (syntax.o) (window.o) (xdisp.o) (xfaces.o) (xterm.o) (print.o):
919 Depend on composite.h.
920 (doc.o): Depend on charset.h.
921 (keyboard.o) (textprop.o) (intervals.o): Depend on INTERVAL_SRC.
922 (composite.o): New target.
923
924 * alloc.c (Fmake_string): Adjusted for the change of CHAR_STRING.
925
926 * callproc.c (Fcall_process): Call code_convert_string to encode
927 arguments. Use CODING_REQUIRE_DECODING to check if the process
928 output should be decoded.
929
930 * casefiddle.c: Include composite.h.
931 (casify_object): Use MAX_MULTIBYTE_LENGTH to allocate memory for a
932 multibyte character. Adjusted for the change of CHAR_STRING.
933 (casify_region): Likewise. Call update_compositions.
934
935 * category.h (CATEGORY_SET): Delete codes for a composite
936 character.
937
938 * category.c (word_boundary_p): Delete codes for a composite
939 character.
940 (Fmake_category_table): New function.
941 (syms_of_category): Defsubr it.
942
943 * ccl.c (CCL_WRITE_CHAR): Adjusted for the change of CHAR_STRING.
944 (ccl_driver): Delete codes for a composite character.
945
946 * charset.h: In this entry, just `Modified' means that codes for a
947 composite character is deleted.
948 (LEADING_CODE_COMPOSITION) (CHARSET_COMPOSITION)
949 (charset_composition) (MIN_CHAR_COMPOSITION)
950 (MAX_CHAR_COMPOSITION) (GENERIC_COMPOSITION_CHAR)
951 (COMPOSITE_CHAR_P) (MAKE_COMPOSITE_CHAR) (COMPOSITE_CHAR_ID)
952 (PARSE_COMPOSITE_SEQ) (PARSE_CHARACTER_SEQ): Deleted.
953 (MAX_CHAR) (CHARSET_VALID_P) (CHARSET_DEFINED_P) (CHARSET_AT)
954 (FIRST_CHARSET_AT) (SAME_CHARSET_P) (MAKE_NON_ASCII_CHAR)
955 (PARSE_MULTIBYTE_SEQ) (SPLIT_NON_ASCII_CHAR) (CHAR_PRINTABLE_P):
956 Modified.
957 (SPLIT_STRING): Call split_string, not split_non_ascii_string.
958 (CHAR_STRING): Delete WORKBUF argument. Call char_string, not
959 non_ascii_char_to_string.
960 (STRING_CHAR): Call string_to_char, not string_to_non_ascii_char.
961 (STRING_CHAR_AND_LENGTH): Likewise.
962 (FETCH_CHAR_ADVANCE): New macro.
963 (MAX_COMPONENT_COUNT) (struct cmpchar_info): Deleted.
964 (MAX_MULTIBYTE_LENGTH): New macro.
965 (MAX_LENGTH_OF_MULTI_BYTE_FORM): Deleted.
966 (find_charset_in_str): Argument adjusted.
967 (CHAR_LEN): Modified.
968
969 * charset.c: In this entry, just `Modified' means that codes for a
970 composite character is deleted.
971 (Qcomposition) (leading_code_composition)
972 (charset_composition) (min_composite_char) (cmpchar_table)
973 (cmpchar_table_size) (n_cmpchars): Deleted.
974 (SPLIT_COMPOSITE_SEQ): Deleted.
975 (SPLIT_MULTIBYTE_SEQ): Modified.
976 (char_to_string): Renamed from non_ascii_char_to_string.
977 Modified.
978 (string_to_char): Renamed from string_to_non_ascii_char.
979 (split_string): Renamed from split_non_ascii_string.
980 (char_printable_p) (Fsplit_char)
981 (Ffind_charset_region) (Ffind_charset_string) (char_valid_p)
982 (char_bytes) (Fchar_width) (strwidth): Modified.
983 (find_charset_in_str): Argument CMPCHARP deleted. Modified.
984 (Fstring): Adjusted for the change of CHAR_STRING. Modified.
985 (hash_string) (CMPCHAR_HASH_TABLE_SIZE) (cmpchar_hash_table)
986 (CMPCHAR_HASH_SIZE) (CMPCHAR_HASH_USED) (CMPCHAR_HASH_CMPCHAR_ID)
987 (str_cmpchar_id) (cmpchar_component) (Fcmpcharp)
988 (Fcmpchar_component) (Fcmpchar_cmp_rule) (Fcmpchar_cmp_rule_p)
989 (Fcmpchar_cmp_count): Deleted.
990 (Fcompose_string): Implemented by Emacs Lisp in composite.el.
991 (init_charset_once): Modified.
992 (syms_of_charset): Modified.
993
994 * cmds.c (internal_self_insert): Adjusted for the change of
995 CHAR_STRING.
996
997 * coding.h (emacs_code_class_type): Delete the member
998 EMACS_leading_code_composition.
999 (COMPOSING_NO) (COMPOSING_WITH_RULE_HEAD) (COMPOSING_NO_RULE_HEAD)
1000 (COMPOSING_WITH_RULE_TAIL) (COMPOSING_NO_RULE_TAIL)
1001 (COMPOSING_WITH_RULE_RULE) (COMPOSING_HEAD_P)
1002 (COMPOSING_WITH_RULE_P): Macros deleted.
1003 (COMPOSITION_DATA_SIZE) (COMPOSITION_DATA_MAX_BUNCH_LENGTH): New
1004 macros.
1005 (struct composition_data): New structure.
1006 (CODING_FINISH_INSUFFICIENT_CMP): New macro.
1007 (struct coding_system): New members composition_rule_follows,
1008 cmp_data, cmp_data_start, cmp_data_index.
1009 (coding_save_composition) (coding_free_composition_data)
1010 (coding_adjust_composition_offset): Extern them.
1011
1012 * coding.c: Include composite.h.
1013 (DECODE_CHARACTER_ASCII): Don't handle composition here.
1014 (DECODE_CHARACTER_DIMENSION1): Likewise. Don't check the validity
1015 of multibyte code here.
1016 (DECODE_CHARACTER_DIMENSION2): Likewise.
1017 (detect_coding_emacs_mule): Change the case label from
1018 EMACS_leading_code_composition to 0x80.
1019 (detect_coding_iso2022): Handle new composition sequence.
1020 (DECODE_ISO_CHARACTER): Likewise.
1021 (check_composing_code): Deleted.
1022 (coding_allocate_composition_data): New function.
1023 (CODING_ADD_COMPOSITION_START) (CODING_ADD_COMPOSITION_END)
1024 (CODING_ADD_COMPOSITION_COMPONENT) (DECODE_COMPOSITION_START)
1025 (DECODE_COMPOSITION_END) (DECODE_COMPOSITION_RULE): New macros.
1026 (decode_coding_iso2022): Handle new composition sequence.
1027 (ENCODE_ISO_CHARACTER): Don't check composition here.
1028 (ENCODE_COMPOSITION_RULE) (ENCODE_COMPOSITION_START): New macros.
1029 (ENCODE_COMPOSITION_NO_RULE_START)
1030 (ENCODE_COMPOSITION_WITH_RULE_START): Deleted.
1031 (ENCODE_COMPOSITION_END): Handle new composition sequence.
1032 (ENCODE_COMPOSITION_FAKE_START): New macro.
1033 (encode_coding_iso2022): Handle new composition sequence.
1034 (ENCODE_SJIS_BIG5_CHARACTER): Delete superfluous `;' at the tail.
1035 (encode_coding_sjis_big5): Ignore composition.
1036 (setup_coding_system): Initialize new members of struct
1037 coding_system. Enable composition only when the coding system has
1038 `composition' property t.
1039 (coding_free_composition_data) (coding_adjust_composition_offset)
1040 (coding_save_composition) (coding_restore_composition): New
1041 functions.
1042 (code_convert_region): Call coding_save_composition for encoding
1043 and coding_allocate_composition_data for decoding. Don't skip
1044 ASCII characters if we handle composition on encoding. Call
1045 signal_after_change with Check_BORDER.
1046 (code_convert_string): Call coding_save_composition for encoding
1047 and coding_allocate_composition_data for decoding. Don't skip
1048 ASCII characters if we handle composition on encoding.
1049 (code_convert_string1): Set Vlast_coding_system_used after calling
1050 code_convert_string.
1051 (code_convert_string_norecord): Disable composition.
1052 (Fset_terminal_coding_system_internal): Likewise.
1053 (Fset_safe_terminal_coding_system_internal): Likewise.
1054 (Fset_keyboard_coding_system_internal): Likewise.
1055 (init_coding_once): Set emacs_code_class[0x80] to
1056 EMACS_invalid_code.
1057
1058 * composite.h: New file.
1059
1060 * composite.c: New file.
1061
1062 * data.c (Faref): Delete codes for a composite character..
1063 (Faset): Likewise. Adjusted for the change of CHAR_STRING.
1064
1065 * dispextern.h (enum glyph_type): New member COMPOSITE_GLYPH.
1066 (struct glyph): Add new sub-structure cmp to the union `u'.
1067 (enum display_element_type): New member IT_COMPOSITION.
1068 (enum prop_idx): New member COMPOSITION_PROP_IDX.
1069 (struct it): New members cmp_id, cmp_len.
1070
1071 * dispnew.c (direct_output_forward_char): Check point moving into
1072 or out of a composition. If so, give up direct method.
1073
1074 * doprnt.c (doprnt1): Adjusted for the change of CHAR_STRING.
1075
1076 * editfns.c (Fchar_to_string): Adjusted for the change of
1077 CHAR_STRING.
1078 (general_insert_function): Likewise.
1079 (Finsert_char): Likewise.
1080 (Fsubst_char_in_region): Likewise. Call update_compositions.
1081 (Ftranslate_region): Call update_compositions.
1082 (Ftranspose_regions): Call update_compositions.
1083
1084 * emacs.c (main): Call syms_of_composite.
1085
1086 * fileio.c (Fsubstitute_in_file_name): Adjusted for the change of
1087 CHAR_STRING.
1088 (Finsert_file_contents): Set Vlast_coding_system_used before
1089 calling signal_after_change. Call update_compositions if some
1090 texts are inserted..
1091 (Fwrite_region): Adjusted for the change of a_write and e_write.
1092 (a_write): Argument changed. Work based on character position,
1093 not byte position.
1094 (e_write): Argument changed. Handle new way of composition.
1095
1096 * fns.c (Flength): The length of char-table is MAX_CHAR.
1097 (concat): Adjusted for the change of CHAR_STRING.
1098 (Ffillarray): Adjusted for the change of CHAR_STRING.
1099 (Fset_char_table_default): Delete codes for a composite character.
1100 (hash_put): Return hash index.
1101
1102 * fontset.h (struct font_info): New member vertical_centering.
1103 (Vvertical_centering_font_regexp): Extern it.
1104
1105 * fontset.c (Vvertical_centering_font_regexp): New variable.
1106 (syms_of_fontset): Declare it as a Lisp variable and initialize.
1107 Set Vignore_relative_composition to nil.
1108 (fs_load_font): Initialize `vertical_centering' of struct
1109 font_info.
1110
1111 * indent.c (check_composition): New function.
1112 (MULTIBYTE_BYTES_WIDTH): Call STRING_CHAR_AND_LENGTH with
1113 MAX_MULTIBYTE_LENGTH, not MAX_LENGTH_OF_MULTI_BYTE_FORM.
1114 (current_column_1): Handle new way of composition.
1115 (Fmove_to_column): Likewise.
1116 (compute_motion): Likewise.
1117
1118 * insdel.c (copy_text): Adjusted for the change of CHAR_STRING.
1119 (insert_char): Likewise.
1120 (insert): Call update_compositions.
1121 (insert_and_inherit): Likewise.
1122 (insert_before_markers): Likewise.
1123 (insert_before_markers_and_inherit): Likewise.
1124 (insert_from_string): Likewise.
1125 (insert_from_string_before_markers): Likewise.
1126 (insert_from_buffer): Likewise.
1127 (replace_range): Likewise.
1128 (count_combining_composition): Deleted.
1129 (count_combining_before): Delete codes for a composite character.
1130 (count_combining_after): Likewise.
1131 (del_range_1): Call update_compositions.
1132 (del_range_byte): Likewise.
1133 (del_range_both): Likewise.
1134 (Fcombine_after_change_execute): Likewise.
1135
1136 * intervals.h: Include composite.h.
1137 (get_property_and_range): Extern it.
1138 (Vtext_property_default_nonsticky): Extern it.
1139
1140 * intervals.c (adjust_intervals_for_insertion): To check stickines
1141 of properties, pay attention to text-property-default-nonsticky.
1142 (merge_properties_sticky): Likewise.
1143 (get_property_and_range): New function.
1144
1145 * keyboard.c (Vdisable_point_adjustment): New variable.
1146 (Vglobal_disable_point_adjustment): New variable.
1147 (syms_of_keyboard): Declare them as Lisp variables.
1148 (command_loop_1): Check them and call adjust_point_for_property if
1149 necessary.
1150 (adjust_point_for_property): New function.
1151
1152 * keymap.c (push_key_description): Adjusted for the change of
1153 CHAR_STRING.
1154 (Ftext_char_description): Likewise.
1155
1156 * lisp.h (QCtest, QCweakness, Qequal): Extern them.
1157 (hash_put): Adjusted for the change of the definition.
1158 (signal_after_change): Likewise.
1159 (check_point_in_composition): Extern it.
1160
1161 * lread.c (readchar): Adjusted for the change of CHAR_STRING.
1162 Delete a code that handles an invalid too-long multibyte sequence
1163 because we are now sure that we never encounter with such a
1164 sequence.
1165 (read_multibyte): Use macro MAX_MULTIBYTE_LENGTH, not
1166 MAX_LENGTH_OF_MULTI_BYTE_FORM.
1167 (init_obarray): Likewise.
1168 (read1): Likewise. Adjusted for the change of CHAR_STRING.
1169
1170 * print.c (printchar): Adjusted for the change of CHAR_STRING.
1171
1172 * process.c: Include composite.h.
1173 (read_process_output): Call update_compositions.
1174
1175 * regex.c (regex_compile): Adjusted for the change of CHAR_STRING.
1176
1177 * search.c (search_buffer): Adjusted for the change of CHAR_STRING.
1178
1179 * syntax.h (SYNTAX_ENTRY_INT): Delete codes for a composite
1180 character.
1181
1182 * term.c (encode_terminal_code): Delete codes for a composite
1183 character. Adjusted for the change of CHAR_STRING.
1184 (produce_glyphs): When called, it->what can be IT_COMPOSITION.
1185 Delete codes for a composite character.
1186
1187 * textprop.c (Vtext_property_default_nonsticky): New variable
1188 (syms_of_textprop): Declare it as a Lisp variable.
1189
1190 * window.c (Frecenter): Clear all caches of compositions.
1191
1192 * xdisp.c (it_props): Add an entry for composition.
1193 (face_before_or_after_it_pos): For composition, check face of a
1194 character after the composition.
1195 (handle_composition_prop): New function.
1196 (get_next_display_element): Adjusted for the change of
1197 CHAR_STRING.
1198 (set_iterator_to_next): Handle the case that it->method ==
1199 next_element_from_composition.
1200 (next_element_from_composition): New function.
1201 (message_dolog): Adjusted for the change of CHAR_STRING.
1202 (set_message_1): Likewise.
1203 (check_point_in_composition): New function.
1204 (reconsider_clip_changes): If point moved into or out of
1205 composition, set b->clip_changed to 1 to force updating of the
1206 screen.
1207 (disp_char_vector): Delete codes for a composite character.
1208 (decode_mode_spec_coding): Adjusted for the change of CHAR_STRING.
1209
1210 * xfaces.c (choose_face_fontset_font): Delete codes for a
1211 composite character.
1212 (realize_x_face): Likewise. Change a place to set local variable
1213 `f' to avoid a bug of GCC 2.8.1 on Solaris.
1214
1215 * xfns.c: Include intervals.h.
1216 (syms_of_xfns): Make `display' property nonsticky by default.
1217
1218 * xselect.c (lisp_data_to_selection_data): Adjusted for the change
1219 for find_charset_in_str.
1220
1221 * xterm.h (struct x_output): Change member font_baseline to
1222 baseline_offset.
1223
1224 * xterm.c (x_append_glyph): Setup members of struct glyph properly
1225 for composition.
1226 (x_append_composite_glyph): New function.
1227 (VCENTER_BASELINE_OFFSET): New macro.
1228 (x_produce_glyphs): If it->what == IT_COMPOSITION, setup members
1229 of struct it for the composition. Cache pixel offsets in the
1230 struct composition. Delete codes for a composite character.
1231 Handle Vignore_relative_composition in composition code.
1232 (struct glyph_string): Delete member cmpcharp, add new member cmp.
1233 (x_set_cursor_gc): Check s->cmp, not s->cmpcharp.
1234 (x_compute_glyph_string_overhangs): Likewise.
1235 (x_get_glyph_overhangs): Delete codes for a composite character.
1236 (x_right_overwritten): Check s->cmp, not s->cmpcharp.
1237 (x_draw_glyph_string_background): Likewise. Delete codes for
1238 checking s->gidx for a composition.
1239 (x_draw_glyph_string_foreground): Delete code for a composite
1240 character.
1241 (x_draw_composite_glyph_string_foreground): New function.
1242 (x_draw_glyph_string_box): Check s->cmp, not s->cmpcharp.
1243 (x_draw_glyph_string): Handle the case of COMPOSITE_GLYPH.
1244 (struct work): Deleted.
1245 (x_fill_composite_glyph_string): Argument changed. Mostly
1246 rewritten for that.
1247 (x_fill_glyph_string): Don't check CHARSET_COMPOSITION.
1248 (BUILD_CHAR_GLYPH_STRINGS): Don't handle composition here.
1249 (BUILD_COMPOSITE_GLYPH_STRING): New macro.
1250 (BUILD_GLYPH_STRINGS): For composition, call
1251 BUILD_COMPOSITE_GLYPH_STRING.
1252 (x_new_font): Initialize f->output_data.x->baseline_offset, not
1253 f->output_data.x->font_baseline.
1254
c3c60f13
GM
12551999-12-14 Gerd Moellmann <gerd@gnu.org>
1256
1257 * xterm.c (show_mouse_face): Don't use updated_area, use
1258 TEXT_AREA.
1259
83c8f461 12601999-12-12 Richard M. Stallman <rms@gnu.org>
c838eb57
RS
1261
1262 * minibuf.c (Fall_completions): Doc fix.
1263
83c8f461 12641999-12-12 Richard M. Stallman <rms@gnu.org>
c838eb57
RS
1265
1266 * macros.c (Fstart_kbd_macro): Handle case where last-kbd-macro
1267 has been changed by the Lisp code.
1268
d8eccf12
GM
12691999-12-12 Gerd Moellmann <gerd@gnu.org>
1270
1271 * xfns.c: Indentation fixes.
1272
ae56feae
SM
12731999-12-10 Stefan Monnier <monnier@cs.yale.edu>
1274
1275 * xterm.c (x_initialize): Only setup xaw3d_* if they've been declared.
1276
dfa1c6ae
GM
12771999-12-10 Gerd Moellmann <gerd@gnu.org>
1278
1279 * frame.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
1280 [!MSDOS && !WINDOWSNT && !macintosh]: Moved here from xterm.h.
1281
1282 * xterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Moved
1283 to frame.h.
1284
ec18280f
SM
12851999-12-09 Stefan Monnier <monnier@cs.yale.edu>
1286
1287 * keyboard.c (Qratio): New symbol.
1288 (scroll_bar_parts): Add `Qratio' to it.
1289 (syms_of_keyboard): Init `Qratio'.
1290 * termhooks.h (scroll_bar_part): Add `scroll_bar_move_ratio'.
1291 * xterm.c (#includes): Allow compilation with only Xaw.
1292 (xaw3d_arrow_scroll, xaw3d_pick_top): New variables.
1293 (xt_action_hook): Replace XAW3D by XAW.
1294 (xaw3d_jump_callback): Renamed to xaw_jump_callback.
1295 (xaw_jump_callback): Renamed from xaw3d_jump_callback.
1296 Determine epsilon dynamically and don't try to be too clever.
1297 (xaw3d_scroll_callback): Renamed to xaw_scroll_callback.
1298 (xaw_scroll_callback): Renamed from xaw3d_scroll_callback.
1299 Handle both Xaw3d with arrow-scrollbars and with Xaw-style
1300 scrollbar (using `ratio').
1301 (x_create_toolkit_scroll_bar): Try to detect which style of Xaw3d
1302 scrollbar we have so as to set it up more optimally and to fix
1303 xaw3d_arrow_scroll and xaw3d_pick_top.
1304 (x_set_toolkit_scroll_bar_thumb): Try to maintain 2 spare pixels at the
1305 bottom of the Xaw3d scrollbar, to work around its tendency to refuse
1306 shrinking the thumb. Also make sure that `XawScrollbarSetThumb'
1307 is not ignored, using a major gross hack.
1308 (x_initialize): Init default values for xaw3d_arrow_scroll and
1309 xaw3d_pick_top.
1310
83b6d970
DL
13111999-12-09 Dave Love <fx@gnu.org>
1312
1313 * frame.h: (PIX_TYPE) [! HAVE_X_WINDOWS]: Define PIX_TYPE.
1314
3648c842
GM
13151999-12-08 Gerd Moellmann <gerd@gnu.org>
1316
1317 * eval.c: Remove conditional compilation on `standalone'.
1318 (call_debugger): When entering the debugger while redisplaying,
1319 reset redisplaying_p, and go back to the top-level if the debugger
1320 returns.
1321
05e71564
GM
13221999-12-07 Gerd Moellmann <gerd@gnu.org>
1323
1324 * xfaces.c (x_set_menu_resources_from_menu_face): Make sure
1325 basic faces are realized before trying to use face `menu'.
1326
1327 * window.c (delete_window): Block input for the time window
1328 matrices are being changed.
1329
b46cd536
DL
13301999-12-07 Dave Love <fx@gnu.org>
1331
1332 * lread.c (Fintern_soft): Fix newlines in doc string.
1333
96acb1f7
GM
13341999-12-07 Alexandre Oliva <oliva@dcc.unicamp.br>
1335
1336 * unexelf.c: Include <syms.h>, not <sym.h> on IRIX. Removed
1337 duplicate definition of ElfW.
1338 (find_section): Copied from unexsgi.c.
1339 (unexec): Use find_section. Adjust whitespace. Initialize
1340 new_data2_offset based on old_data, not sbss (this fixes a bug on
1341 IRIX6). Change #ifdef __mips to __sgi, since it's IRIX-specific.
1342 Adjust test for presence of .mdebug section to the new return
1343 value of find_section.
1344
13451999-12-07 Gerd Moellmann <gerd@gnu.org>
1346
1347 * unexelf.c: Merge changes from 20.5.
1348 (unexec): Handle .lit4 and .lit8 unconditionally.
1349
1350 * m/iris4d.h (UNEXEC) [USG5_4]: Use unexelf.o instead of
1351 unexsgi.o again.
1352
1353 * m/iris5d.h (UNEXEC): Likewise.
1354
7dae4502
SM
13551999-12-06 Stefan Monnier <monnier@cs.yale.edu>
1356
1357 * editfns.c (Fdelete_and_extract_region): New function.
05e71564
GM
1358 (syms_of_editfns): Register it.
1359 * insdel.c (del_range): Update del_range_1 call.
7dae4502
SM
1360 (del_range_1, del_range_2): Add a ret_string argument to
1361 request that the deleted text be returned.
1362 (del_range_byte, del_range_both): Update del_range_2 call.
05e71564 1363 * lisp.h (del_range_1, del_range_2): Change prototype
7dae4502
SM
1364 * casefiddle.c (casify_region): Update del_range_1 call.
1365 * coding.c (code_convert_region): Update del_range_2 call.
1366 * fileio.c (Finsert_file_contents): Update del_range_2 call.
1367
397e4fae
GM
13681999-12-06 Gerd Moellmann <gerd@gnu.org>
1369
1370 * xfaces.c (set_lface_from_font_name): Fix incomplete merge.
1371
3d973f71
GM
13721999-12-04 Hrvoje Niksic <hniksic@iskon.hr>
1373
1374 * lread.c (Fintern_soft): Accept a symbol argument.
1375
740e985f
EZ
13761999-12-06 Eli Zaretskii <eliz@is.elta.co.il>
1377
1378 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 40000.
809f3d51
EZ
1379
1380 * insdel.c (adjust_markers_for_delete): Fix last change.
1381
2d764c78
EZ
13821999-12-06 Eli Zaretskii <eliz@is.elta.co.il>
1383
1384 Changes for automatic remapping of X colors on terminal frames:
1385
1386 * xfaces.c (XColor) [!HAVE_X_WINDOWS]: Provide a typedef for non-X
1387 frames.
1388 (Vface_tty_color_alist): Remove.
1389 (tty_defined_color): New function.
1390 (defined_color): Rewrite to support any type of frame.
1391 (tty_color_name): New function.
1392 (face_color_supported_p, Fface_color_gray_p,
1393 Fface_color_supported_p): Support non-X frames.
1394 (load_color): Enclose the color name in quotes, in the log
1395 messages. Remove DOS-specific version of load_color.
1396 (realize_tty_face): Take the supported colors from
1397 tty-color-alist. Support translation of X colors to the closest
1398 tty color, for both MSDOS and tty frames.
1399 [MSDOS]: Don't invert face colors if they were taken from the
1400 frame colors.
1401 (Fface_register_tty_color, Fface_clear_tty_colors): Remove.
1402
1403 * frame.h (struct x_output) [!MSDOS, !WINDOWSNT, !HAVE_X_WINDOWS]:
1404 Define a mostly empty surrogate.
1405 (tty_display): Declare.
1406
1407 * frame.c (make_terminal_frame) [!macintosh]: Don't use
1408 tty_display.
1409 (Fframe_parameters): Don't invert colors of non-FRAME_WINDOW_P
1410 frames when the frame's param_alist includes 'reverse.
1411 (tty_display): Define.
1412 (make_terminal_frame) [!MSDOS]: Assign &tty_display to the
1413 output_data.x member.
1414 (Fframe_parameters): Return foreground and background color names
1415 on tty frames as well, in addition to MSDOS frames.
1416
1417 * msdos.h (DisplayWidth, DisplayHeight): Changes for Lisp_Object
1418 selected_frame.
1419 (struct x_output): Remove unused members; document who uses each
1420 member.
1421 (FRAME_PARAM_FACES, FRAME_N_PARAM_FACES, FRAME_DEFAULT_PARAM_FACE,
1422 FRAME_MODE_LINE_PARAM_FACE, FRAME_COMPUTED_FACES,
1423 FRAME_N_COMPUTED_FACES, FRAME_SIZE_COMPUTED_FACES,
1424 FRAME_DEFAULT_FACE, FRAME_MODE_LINE_FACE, unload_color): Remove
1425 unused macro definintions.
1426
1427 * msdos.c (IT_set_frame_parameters): Don't call
1428 recompute_basic_faces, the next redisplay will, anyway.
1429 (x_current_display): Remove unused variable.
1430 Many functions: changes for Lisp_object selected_frame.
1431 (IT_set_face): If the tty_reverse_p flag is set for the face,
1432 reverse the foreground and background colors.
1433 (Fmsdos_remember_default_colors): New function.
1434 (syms_of_msdos): Defsubr it.
1435 (IT_set_frame_parameters): Use initial_screen_colors[] when
1436 creating a new frame. If the frame parameters include 'reverse,
1437 swap the foreground and background colors.
1438 (internal_terminal_init): Initialize initial_screen_colors to -1.
1439 (syms_of_msdos): Add DEFVAR_BOOL for x-stretch-cursor, to shut up
1440 cus-start.el.
1441
1442 * Makefile.in (lisp, shortlisp): Add lisp/term/tty-colors.elc.
1443
1444 * xfns.c (x_defined_color): Rename from defined_color. All
1445 callers changed.
1446 (Fxw_color_defined_p): Renamed from Fx_color_defined_p;
1447 all callers changed.
1448 (Fxw_color_values): Renamed from Fx_color_values; all callers
1449 changed.
1450 (Fxw_display_color_p): Renamed from Fx_display_color_p; all
1451 callers changed.
1452 (x_window_to_frame, x_any_window_to_frame,
1453 x_non_menubar_window_to_frame, x_menubar_window_to_frame,
1454 x_top_window_to_frame): Use !FRAME_X_P instead of
1455 f->output_data.nothing.
1456 * xterm.h (x_defined_color): Rename from defined_color.
1457
1458 * w32fns.c (x_window_to_frame): Use FRAME_W32_P instead of
1459 f->output_data.nothing.
1460 (Fxw_color_defined_p): Renamed from Fx_color_defined_p;
1461 all callers changed.
1462 (Fxw_color_values): Renamed from Fx_color_values; all callers
1463 changed.
1464 (Fxw_display_color_p): Renamed from Fx_display_color_p; all
1465 callers changed.
1466
1467 * dispextern.h (tty_color_name): Add prototype.
1468
1469 * xmenu.c (menubar_id_to_frame): Use FRAME_WINDOW_P instead of
1470 f->output_data.nothing.
1471 * w32menu.c (menubar_id_to_frame): Likewise.
1472 * w32term.h (w32_output): Declare.
1473
1474 * dosfns.c (Qmsdos_color_translate): Remove.
1475 (msdos_stdcolor_name): Now returns a Lisp_Object.
1476 * dosfns.h (Qmsdos_color_translate): Remove.
1477
1478 * s/msdos.h (INTERNAL_TERMINAL): Add entries for color support.
1479
b3e5232e
KH
14801999-12-06 Kenichi Handa <handa@etl.go.jp>
1481
1482 * fileio.c (decide_coding_unwind): Renamed from
1483 set_auto_coding_unwind.
1484 (Finsert_file_contents): Make single unwind protect to call both
1485 Vset_auto_coding_function and Ffind_operation_coding_system.
1486
1487 * insdel.c (adjust_markers_for_delete): Make it non-static.
1488
db0e466c
SM
14891999-12-04 Stefan Monnier <monnier@cs.yale.edu>
1490
1491 * regex.c (regex_compile): Recognize *?, +? and ?? as non-greedy
1492 operators and handle them properly.
1493 * regex.h (RE_ALL_GREEDY): New option.
1494 (RE_UNMATCHED_RIGHT_PAREN_ORD): Moved to the end where alphabetic
1495 sorting would put it.
1496 (RE_SYNTAX_AWK, RE_SYNTAX_GREP, RE_SYNTAX_EGREP)
1497 (_RE_SYNTAX_POSIX_COMMON): Use the new option to keep old behavior.
1498
22afa6e8
DL
14991999-12-04 Dave Love <d.love@dl.ac.uk>
1500
1501 * m/arm.h: New file.
1502
40afb967
DL
15031999-12-03 Dave Love <fx@gnu.org>
1504
1505 * editfns.c (Fmessage_or_box): Use use_dialog_box.
1506
ddf8eff5
GM
15071999-12-02 Gerd Moellmann <gerd@gnu.org>
1508
1509 * s/usg5-4.h (LIBS_SYSTEM): Add -lgen because that's needed
1510 for building with Motif.
1511
1512 * m/iris4d.h (UNEXEC) [USG5_4]: Use unexsgi.o instead of
1513 unexelf.o.
1514
1515 * m/iris5d.h (UNEXEC): Use unexsgi.o instead of unexelf.o.
1516
fa09a82d
DL
15171999-12-01 Dave Love <fx@gnu.org>
1518
1519 * emacs.c (main): Set LANG=C iff AX3_2 defined.
1520
ddf8eff5
GM
15211999-11-28 Gerd Moellmann <gerd@gnu.org>
1522
1523 * systime.h (EMACS_TIME_CMP, EMACS_TIME_EQ, EMACS_TIME_NE)
1524 (EMACS_TIME_GT, EMACS_TIME_GE, EMACS_TIME_LT,EMACS_TIME_LE): New
1525 macros.
1526
1527 * config.in (HAVE_SETITIMER, HAVE_UALARM): New.
1528
fa09a82d
DL
15291999-11-28 eliz <eliz@dlpx1>
1530
1531 * emacs.c (synchronize_locale): Avoid compiler warnings about
1532 pointer type mismatch.
1533
f9632fc8
GM
15341999-11-28 Gerd Moellmann <gerd@gnu.org>
1535
717d0121
GM
1536 * window.c (Fwindow_end): Don't call temp_set_pt_both with
1537 out of range position.
1538
f9632fc8
GM
1539 * xterm.c (XTread_socket) <ClientMessage, Xatom_Scrollbar>:
1540 Switch off busy-cursor by setting inhibit_busy_cursor to 2.
1541
59c65f1e
EZ
15421999-11-28 Eli Zaretskii <eliz@is.elta.co.il>
1543
613a8346
EZ
1544 * charset.c (Fmake_char_internal): Print the charset ID when
1545 signalling an error.
1546
59c65f1e
EZ
1547 * emacs.c (synchronize_locale): Avoid compiler warnings about
1548 pointer type mismatch.
1549
83c8f461 15501999-11-26 Richard M. Stallman <rms@gnu.org>
d01f3570
RS
1551
1552 * editfns.c (Fdelete_field): Make it noninteractive. Return nil.
1553
18df9369
GM
15541999-11-26 Gerd Moellmann <gerd@gnu.org>
1555
65a3ccf7
GM
1556 * puresize.h (BASE_PURESIZE): Increase to 550000.
1557
b3b98592
GM
1558 * textprop.c (set_text_properties): New function. Like
1559 Fset_text_properties, but with additional parameter
1560 SIGNAL_AFTER_CHANGE_P. If that is nil, don't signal after
1561 changes.
1562 (Fset_text_properties): Use it.
1563
1564 * insdel.c (insert_1_both): Call set_text_properties with last
1565 parameter nil so that no after changes will be signaled.
1566
1567 * lisp.h: Add prototype for set_text_properties.
1568
18df9369
GM
1569 * xfaces.c (set_lface_from_font_name): Fix previous change.
1570 (recompute_basic_faces): Change assert to abort.
1571
71a8e74b
DL
15721999-11-25 Dave Love <fx@gnu.org>
1573
1574 * fns.c (Fnthcdr, Fnreverse): Inline cdr.
1575 (Fmember, Fdelq, Fdelete): Inline car.
1576 (Fy_or_n_p): Doc fix.
1577
bc6a5782
GM
15781999-11-25 Gerd Moellmann <gerd@gnu.org>
1579
3221576b 1580 * xfaces.c (set_lface_from_font_name): New parameter may_fail_p.
18df9369 1581 Callers changed. If specified font name is bogus, and may_fail_p
3221576b
GM
1582 is not set, try to use a reasonable default.
1583
bc6a5782
GM
1584 * dispnew.c (direct_output_for_insert): Set glyph row's
1585 displays_text_p flag. Correct window's window_end_vpos if
1586 necessary.
1587
0c8559bb
PE
15881999-11-25 Paul Eggert <eggert@twinsun.com>
1589
1590 * emacs.c (fixup_locale): Don't bother to record initial locale.
1591 (synchronize_locale): If the desired locale is nil,
1592 treat it as if it were the empty string,
1593 so that we set the locale from the environment.
1594
35737351
KH
15951999-11-25 Kenichi Handa <handa@etl.go.jp>
1596
1597 * fileio.c (Finsert_file_contents): Set buffer-file-coding-system
1598 of the current buffer via Fset.
1599
5562b47f
DL
16001999-11-24 Dave Love <fx@gnu.org>
1601
1602 * xfns.c: Don't duplicate Qdisplay definition done elsewhere.
1603
1604 * xfaces.c: Don't duplicate Qmode_line definition done elsewhere.
1605
1606 * xfns.c: Don't duplicate Qdisplay definition done elsewhere.
1607
00da0e4a
GM
16081999-11-24 Gerd Moellmann <gerd@gnu.org>
1609
1610 * lisp.h (enum pvec_type): Put PVEC_FLAG in #if 0.
1611
1612 * emacs.c (PVEC_FLAG): New variable.
1613
b1775dc1
GM
16141999-11-23 Gerd Moellmann <gerd@gnu.org>
1615
1616 * unexaix.c (unexec): Use unsigned instead of uintptr_t because
1617 that fails on IBM PowerPC, AIX 4.2.
1618
08de6200
EZ
16191999-11-22 Eli Zaretskii <eliz@is.elta.co.il>
1620
1621 * buffer.c (syms_of_buffer): Add %z, %Z, %m and %& to the doc
1622 string of mode-line-format. Remove the obsolete %t.
1623
02fda8ff
GM
16241999-11-22 Gerd Moellmann <gerd@gnu.org>
1625
f2fa858f
GM
1626 * dispnew.c (direct_output_for_insert): Increment glyph positions
1627 for glyphs from buffer text only.
1628
02fda8ff
GM
1629 * emacs.c (gdb_valbits, gdb_gctypebits, gdb_emacs_intbits)
1630 (gdb_data_seg_bits): New variables.
1631
1632 * lisp.h (enum gdb_lisp_params): Put in #if 0, since it doesn't
1633 work on systems not allowing enumerators > INT_MAX, and it
1634 won't work if EMACS_INT is long long.
1635
1b0d24e7
PE
16361999-11-22 Paul Eggert <eggert@twinsun.com>
1637
1638 Port to SunOS 4.1.x again. Help out with Alpha port.
1639 Rename messages-locale to system-messages-locale,
1640 and likewise for time-locale.
1641
1642 * callproc.c (strerror): Remove decl.
1643 * fileio.c (strerror): Likewise.
1644 * process.c (strerror): Likewise.
1645 * emacs.c (strerror): Likewise.
1646 (Vsystem_messages_locale): Renamed from Vmessages_locale.
1647 All uses changed.
1648 (Vprevious_system_messages_locale): Likewise, from
1649 Vprevious_messages_locale.
1650 (Vsystem_time_locale): Likewise, from Vtime_locale.
1651 (Vprevious_system_time_locale): Likewise, from Vprevious_time_locale.
1652 (ABORT_RETURN_TYPE): New macro.
1653 (abort): Return type is now ABORT_RETURN_TYPE.
1654 (main): Always invoke init_signals, even if POSIX_SIGNALS is not
1655 defined.
1656 (syms_of_emacs): messages-locale -> system-messages-locale,
1657 previous-messages-locale -> previous-system-messages-locale,
1658 time-locale -> system-time-locale,
1659 previous-time-locale -> previous-system-time-locale.
1660
1661 * gmalloc.c (PP, __ptr_t): Assume ANSI C if STDC_HEADERS is defined.
1662 (const): Do not define; that's config.h's job.
1663 (<limits.h>): Include if HAVE_LIMITS_H is defined.
1664 (CHAR_BIT): Move test for definedness outside of limits.h condition.
1665 (<stddef.h>): Include if STDC_HEADERS is defined.
1666 (FREE_RETURN_TYPE): New macro.
1667 (free): Return type is now FREE_RETURN_TYPE.
1668
1669 * lisp.h (synchronize_system_time_locale): Renamed from
1670 synchronize_time_locale. All uses changed.
1671 (synchronize_system_messages_locale): Likewise, from
1672 synchronize_messages_locale.
1673
1674 * m/alpha.h (malloc, realloc, calloc): Remove decls;
1675 stdlib.h now does this.
1676
1677 * process.c (sys_siglist): Remove.
1678
1679 * s/sunos4-0.h (ABORT_RETURN_TYPE, FREE_RETURN_TYPE):
1680 New macros.
1681
1682 * syntax.c (scan_sexps_forward): Use abort, not assert.
1683
1684 * sysdep.c (my_sys_siglist): New var.
1685 (sys_siglist): New macro. Remove old initialized vars of same name.
1686 (init_signals): Initialize sys_siglist.
1687
1688 * xfns.c (abort): Remove decl; stdlib.h now does this.
1689
0dcd5b54
DL
16901999-11-18 Dave Love <fx@gnu.org>
1691
946173ad
DL
1692 * filelock.c: Add forward declaration for get_boot_time_1.
1693
0dcd5b54
DL
1694 * dispnew.c (Finternal_show_cursor_p): Fix doc string.
1695
71447e8f
GM
16961999-11-18 Gerd Moellmann <gerd@gnu.org>
1697
1698 * buffer.h (struct buffer_text): Add comment about moving
1699 buffer text if REL_ALLOC is defined.
1700
eeedff63
KH
17011999-11-18 Kenichi Handa <handa@etl.go.jp>
1702
1703 * lisp.h (KEY_DESCRIPTION_SIZE): New macro.
1704
1705 * keyboard.c (echo_char): Use KEY_DESCRIPTION_SIZE to check free
1706 memory for push_key_description.
1707
1708 * keymap.c (Fsingle_key_description): Use KEY_DESCRIPTION_SIZE to
1709 allocate memory for push_key_description.
1710 (describe_buffer_bindings): Likewise.
1711
5d7e4a2c
GM
17121999-11-17 Gerd Moellmann <gerd@gnu.org>
1713
1714 * xfns.c (Fx_show_busy_cursor): Doc-fix.
1715 (Fx_hide_busy_cursor): Ditto.
1716
17171999-11-17 Marco Walther <walther@siemens-pyramid.com>
1718
1719 * unexsni.c (unexec): Handle .rel.dyn section.
1720
b5b41e02
DL
17211999-11-16 Dave Love <fx@gnu.org>
1722
1723 * doc.c (Fdocumentation): Remove gcpro here too.
1724
e35b6123
GM
17251999-11-16 Gerd Moellmann <gerd@gnu.org>
1726
1727 * keyboard.c (command_loop_1): Remove no_redisplay.
1728
83c8f461 17291999-11-16 Richard M. Stallman <rms@gnu.org>
0a14b9bb
GM
1730
1731 * print.c (PRINTPREPARE): Don't call setup_echo_area_for_printing
1732 in noninteractive.
1733
b05d3bee
GM
17341999-11-14 Gerd Moellmann <gerd@gnu.org>
1735
5bcfeb49
GM
1736 * xdisp.c (ensure_echo_area_buffers): New.
1737 (with_echo_area_buffer): Use it.
1738 (setup_echo_area_for_printing): Ditto.
1739
b05d3bee
GM
1740 * buffer.c (indicate-empty-lines): Doc-fix.
1741
9b2e6e4c
GM
17421999-11-12 Gerd Moellmann <gerd@gnu.org>
1743
e7f90eab
GM
1744 * term.c (term_init): If "op" isn't available, don't support color
1745 because we can't switch back to the default foreground and
1746 background.
1747
9b2e6e4c
GM
1748 * doc.c (Fdocumentation_property): Remove GCPRO because
1749 Fsubstitute_command_keys gcpro's the string.
1750
1bf21027
KH
17511999-11-12 Kenichi Handa <handa@etl.go.jp>
1752
1753 * editfns.c (Ftranslate_region): Check the buffer multibyteness.
1754
3bc6df53
GM
17551999-11-11 Gerd Moellmann <gerd@gnu.org>
1756
1757 * print.c, keymap.c, indent.c, insdel.c, keyboard.c, intervals.c,
1758 lread.c, textprop.c, undo.c, emacs.c, lisp.h, intervals.h,
1759 buffer.h, config.in, Makefile.in: Remove USE_TEXT_PROPERTIES.
1760
35a5514b
GM
17611999-11-10 Gerd Moellmann <gerd@gnu.org>
1762
1763 * xfns.c (QCuser_data): Removed.
1764 (syms_of_xfns): Initialization of QCuser_data removed.
1765 (parse_image_spec): Don't handle :user-data specially. Allow
1766 unknown keys. Remove parameter ALLOW_OTHER_KEYS.
1767 (xbm_image_p, xbm_load, xpm_image_p, pbm_image_p, png_image_p)
1768 (tiff_image_p, jpeg_image_p, gif_image_p, gs_image_p): Call
1769 parse_image_spec accordingly.
1770
83c8f461 17711999-11-09 Richard M. Stallman <rms@gnu.org>
4ea68fcc
RS
1772
1773 * cmds.c (Fbeginning_of_line): Doc fix.
1774 (Fend_of_line): Doc fix.
1775
1776 * editfns.c (Fline_beginning_position): If N is not 1,
1777 pass t to Fconstrain_to_field for ESCAPE-FROM-EDGE.
1778
1779 * syntax.c (Fforward_word): Handle fields even if would have hit
1780 an edge of the buffer. Return nil if affected by fields.
1781
83c8f461 17821999-11-09 Richard M. Stallman <rms@gnu.org>
4ea68fcc
RS
1783
1784 * editfns.c (preceding_pos): Function deleted.
1785 (text_property_stickiness): Decrement POS directly.
1786 Fix a confusion that used PT instead of POS.
1787
1788 * editfns.c (find_field): Properly handle the case
1789 of a field boundary where `field' inherits from neither side.
1790
1791 * editfns.c (Ffield_beginning, Ffield_end): Doc fixes.
1792 (Ferase_field, Ffield_string, Ffield_string_no_properties): Doc fixes.
1793
fa9aabf6
GM
17941999-11-08 Gerd Moellmann <gerd@gnu.org>
1795
1796 * bytecode.c (Fbyte_code) <BinsertN, Bcall>: Do the
1797 BEFORE_POTENTIAL_GC before DISCARD.
1798
4015b3c0
GM
17991999-11-07 Gerd Moellmann <gerd@gnu.org>
1800
033a5fa3
GM
1801 * alloc.c (Fgarbage_collect): Call unmark_byte_stack.
1802
1803 * lisp.h: Add prototype for unmark_byte_stack.
1804
1805 * bytecode.c (mark_byte_stack): Use XMARKBIT and XMARK.
1806 (unmark_byte_stack): Renamed from relocate_byte_pcs. Use
1807 XUNMARK.
1808
55b064bd
GM
1809 * xdisp.c (resize_mini_window): Fix computation of needed
1810 mini-window height.
1811
1812 * alloc.c, buffer.c, editfns.c, xdisp.c: Remove conditional
1813 compilation on USE_TEXT_PROPERTIES.
01e9b9df 1814
4015b3c0 1815 * Fbyte_code: Use block statements in cases and declare v1 and v2
60af03f1 1816 locally there. Rearrange case statements so that those most
4015b3c0
GM
1817 frequently executed come first. Avoid goto's in frequently
1818 executed cases.
1819
fe512f27
GM
18201999-11-05 Gerd Moellmann <gerd@gnu.org>
1821
dd59e217
GM
1822 * bytecode.c (Fbyte_code): Use BEFORE_POTENTIAL_GC and
1823 AFTER_POTENTIAL_GC around internal_catch.
1824
bcf28080
GM
1825 * alloc.c (Fgarbage_collect): Call mark_byte_stack and
1826 relocate_byte_pcs.
1827 (init_alloc_once, init_alloc): Set byte_stack_list to null.
1828
1829 * eval.c (struct catchtag): Add member byte_stack.
1830 (internal_catch, Fcondition_case, internal_condition_case)
dd59e217 1831 (internal_condition_case_1): Save value of byte_stack_list in
bcf28080
GM
1832 catchtag.
1833 (unwind_to_catch): Restore byte_stack_list from catchtag.
1834
1835 * lisp.h: Add prototypes for new functions in bytecode.c.
1836 Add extern declaration for byte_stack_list.
1837
1838 * bytecode.c (struct byte_stack): New.
1839 (byte_stack_list, mark_byte_stack, relocate_byte_pcs): New
1840 (BEFORE_POTENTIAL_GC, AFTER_POTENTIAL_GC): New.
1841 (FETCH, PUSH, POP, DISCARD, TOP, MAYBE_GC): Rewritten.
1842 (HANDLE_RELOCATION): Removed.
1843 (Fbyte_code): Use byte_stack structures.
1844
4d59c34c
GM
1845 * filelock.c (Ffile_locked_p): Make FILENAME a required argument.
1846
fe512f27
GM
1847 * buffer.c (syms_of_buffer): Extend documentation of
1848 mode-line-format.
1849
60b64cd6
GM
18501999-11-04 Gerd Moellmann <gerd@gnu.org>
1851
1852 * editfns.c (Fdelete_field): Renamed from Ferase_field.
1853
1854 * minibuf.c (do_completion, Fminibuffer_complete_word): Use
1855 Ferase_field instead of Fdelete_field.
1856
b51b619b
GM
18571999-11-03 Gerd Moellmann <gerd@gnu.org>
1858
1859 * dispnew.c (Finternal_show_cursor): Change it to set the
1860 cursor on/off, not toggle its state.
1861 (Finternal_show_cursor_p): New.
1862 (syms_of_display): Defsubr Sinternal_show_cursor_p.
1863
5865af0d
DL
18641999-11-03 Dave Love <fx@gnu.org>
1865
1866 * charset.c (split_non_ascii_string): Define return value.
1867
82a700f3
GM
18681999-11-03 Gerd Moellmann <gerd@gnu.org>
1869
edfef199
GM
1870 * minibuf.c (string_to_object): New.
1871 (read_minibuf_noninteractive): New.
1872 (read_minibuf): Call read_minibuf_noninteractive if
1873 noninteractive. Use string_to_object.
1874
82a700f3
GM
1875 * doc.c (Fdocumentation_property): Fix bug bypassing UNGCPRO.
1876
b5540f0d
DL
18771999-11-02 Dave Love <fx@gnu.org>
1878
e69dcd60
DL
1879 * gnu-linux.h: Use SIGCHLD, not SIGCLD (not in glibc 2.1).
1880
827a1788
DL
1881 * process.c: Define _GNU_SOURCE before config.h to get strsignal
1882 declared with glibc2.
b5540f0d 1883
a69a6e61
GM
18841999-11-02 Gerd Moellmann <gerd@gnu.org>
1885
1886 * lisp.h (QUIT): Give it statement form.
1887
87e21fbd
DL
18881999-11-02 Dave Love <fx@gnu.org>
1889
1890 * eval.c (init_eval): Conditionalize declaration of gcpro_level.
1891
1b335865
GM
18921999-11-02 Gerd Moellmann <gerd@gnu.org>
1893
9fb5e03d
GM
1894 * xfns.c (QCuser_data): New.
1895 (syms_of_xfns): Initialize QCuser_data.
1896 (parse_image_spec): Ignore :user-data DATA properties.
1897
1b335865
GM
1898 * xdisp.c (display_line): Set charpos of first glyph in blank
1899 lines not corresponding to any text to -1, even if no glyphs are
1900 filled in in that line.
1901
e76f1c44
GM
19021999-11-01 Gerd Moellmann <gerd@gnu.org>
1903
36fcd3d9
GM
1904 * xfns.c (png_load) [PNG_READ_sRGB_SUPPORTED]: Put code using
1905 png_get_sRGB in #ifdef.
1906
111259b4
GM
1907 * dispnew.c (Finternal_show_cursor): Renamed from Fshow_cursor.
1908 (syms_of_display): Use the new name.
1909
dd5c96e8
GM
1910 * textprop.c (verify_interval_modification): Signal text-read-only
1911 instead of calling error.
1912
db8878fb
GM
1913 * data.c (Qtext_read_only): New built-in error.
1914 (syms_of_data): Initialize it.
1915
1916 * lisp.h: Add extern declaration for Qtext_read_only.
1917
e76f1c44
GM
1918 * syntax.c: Remove whitespace after open or in front of closing
1919 parentheses.
1920
83c8f461 19211999-11-01 Richard M. Stallman <rms@gnu.org>
cb3a6c48
GM
1922
1923 * Makefile.in (w16select.o, sound.o): Don't depend on lisp.h.
1924
7843e09c
GM
19251999-10-31 Gerd Moellmann <gerd@gnu.org>
1926
575ed805
GM
1927 * xdisp.c (resize_mini_window): Compute needed height differently.
1928
7843e09c
GM
1929 * fns.c (Flength): Unroll loop over lists.
1930
1931 * xdisp.c (append_space): Return non-zero if space was appended.
1932 (display_line): Set charpos of first glyph to -1 only if that
1933 glyph is the space added by append_glyph.
1934
83c8f461 19351999-10-30 Richard M. Stallman <rms@gnu.org>
cb3a6c48
GM
1936
1937 * print.c (strout): Consider `noninteractive' and use stdout
1938 only when PRINTCHARFUN is t.
1939
1940 * lisp.h (struct gcpro) [DEBUG_GCPRO]: New field `level'.
1941 (gcpro_level): Declare it extern.
1942 [DEBUG_GCPRO] (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
1943 Alternate definitions that set `level' and increment `gcpro_level'.
1944 [DEBUG_GCPRO] (UNGCPRO): Alternate definition that checks gcpro_level.
1945
1946 * eval.c [DEBUG_GCPRO] (gcpro_level): New variable.
1947 (init_eval) [DEBUG_GCPRO]: Initialize it.
1948 (unwind_to_catch) [DEBUG_GCPRO]: Set gcpro_level
1949 from remaining gcprolist.
1950
3636f7a3
KH
19511999-10-29 Kenichi Handa <handa@etl.go.jp>
1952
1953 * coding.c (code_convert_region): Update `dst' correctly.
1954
a2ad7096
GM
19551999-10-28 Gerd Moellmann <gerd@gnu.org>
1956
1957 * fns.c (Fmemq, Fassq, Frassq, assq_no_quit, Fassoc)
1958 (Frassoc): Rewritten.
1959
1e3196e8
GM
19601999-10-27 Noah Friedman <friedman@splode.com>
1961
1962 * s/gnu-linux.h [HAVE_DEV_PTMX]: Redefine FIRST_PTY_LETTER to 'z'.
1963 Define PTY_NAME_SPRINTF.
1964 Redefine PTY_TTY_NAME_SPRINTF.
1965 * config.in: Add undef for HAVE_DEV_PTMX.
1966
83c8f461 19671999-10-26 Richard M. Stallman <rms@gnu.org>
4ea68fcc
RS
1968
1969 * regex.c (POP_FAILURE_POINT): Use failure_id.integer
1970 as arg to DEBUG_POP and DEBUG_PRINT.
1971
83c8f461 19721999-10-27 Richard M. Stallman <rms@gnu.org>
17dbfaad
GM
1973
1974 * data.c (Qad_activate_internal): Renamed from Qad_activate.
1975 (Ffset): Call Qad_activate_internal.
1976 (syms_of_data): Initialize Qad_activate_internal.
1977
26922151
GM
19781999-10-27 Gerd Moellmann <gerd@gnu.org>
1979
1980 * xdisp.c (echo_area_display) [HAVE_X_WINDOWS]: Do nothing if
1981 Vterminal_frame is selected and Vwindow_system is non-nil.
1982
67a5596f
GM
19831999-10-26 Gerd Moellmann <gerd@gnu.org>
1984
2bea706b
GM
1985 * xdisp.c (echo_area_display): Put previous change in #if 0.
1986
67a5596f
GM
1987 * emacs.c (standard_args): Add `file' as synonym for `visit',
1988 `execute' as synonym for `eval'.
1989 (main): Add new options to usage message.
1990
81dc5de5
GM
19911999-10-25 Gerd Moellmann <gerd@gnu.org>
1992
1993 * data.c (Qhash_table): New.
1994 (Ftype_of): Return it for hash tables.
1995 (syms_of_data): Initialize Qhash_table.
1996
83c8f461 19971999-10-25 Richard M. Stallman <rms@gnu.org>
bd3c545d
GM
1998
1999 * regex.c (POP_FAILURE_POINT): Extract failure_id as an integer.
2000
3a7093d8
KR
20011999-10-24 Ken Raeburn <raeburn@raeburn.org>
2002
7539e11f
KR
2003 * alloc.c: Undef HIDE_LISP_IMPLEMENTATION before including
2004 lisp.h.
2005
2006 * buffer.c (Fbuffer_list, Fget_file_buffer, get_truename_buffer,
2007 Fbuffer_local_variables, Fother_buffer, record_buffer,
2008 set_buffer_internal_1, Fbury_buffer, Fkill_all_local_variables,
2009 swap_out_buffer_local_variables, overlays_at, overlays_in,
2010 overlay_touches_p, overlay_strings, recenter_overlay_lists,
2011 fix_overlays_in_range, fix_overlays_before, Foverlay_get,
2012 Foverlay_put, report_overlay_modification, evaporate_overlays):
2013 Use XCAR, XCDR, and XFLOAT_DATA instead of explicit member
2014 references.
2015 * data.c (Fcar, Fcar_safe, Fcdr, Fcdr_safe, Fsetcar, Fsetcdr,
2016 swap_in_symval_forwarding, set_internal, default_value,
2017 Fset_default, Fmake_variable_buffer_local, Fmake_local_variable,
2018 Fmake_variable_frame_local, Flocal_variable_p,
2019 Flocal_variable_if_set_p, arithcompare, Fzerop, cons_to_long,
2020 Fnumber_to_string, float_arith_driver, Fadd1, Fsub1): Likewise.
2021 * dispnew.c (Fframe_or_buffer_changed_p): Likewise.
2022 * emacs.c (main): Likewise.
2023 * fontset.c (fs_load_font, fs_register_fontset,
2024 CACHED_FONTSET_NAME, CACHED_FONTSET_REGEX, Fquery_fontset,
2025 Fnew_fontset, Fset_fontset_font): Likewise.
2026 * frame.c (do_switch_frame, next_frame, prev_frame,
2027 other_visible_frames, Fdelete_frame, Fvisible_frame_list):
2028 Likewise.
2029 * keyboard.c (read_char, help_char_p, event_to_kboard,
2030 kbd_buffer_get_event, timer_start_idle, timer_check,
2031 make_lispy_event, apply_modifiers, reorder_modifiers,
2032 Fevent_convert_list, lucid_event_type_list_p, menu_bar_items,
2033 menu_bar_one_keymap, menu_item_eval_property_1, parse_menu_item,
2034 tool_bar_items, read_char_x_menu_prompt, read_key_sequence,
2035 Fcommand_execute, Fexecute_extended_command): Likewise.
2036 * minibuf.c (read_minibuf, get_minibuffer, Ftry_completion,
2037 Fall_completions): Likewise.
2038 * window.c (Fset_window_margins): Likewise.
2039
2040 * callint.c (quotify_args): Don't explicitly use struct
2041 Lisp_Cons, use Lisp_Object and XCAR/XCDR instead.
2042
3a7093d8
KR
2043 * s/netbsd.h (HAVE_GETLOADAVG): Define as 1.
2044 (UNEXEC, START_FILES, LIB_STANDARD, LIB_GCC): Define ELF versions,
2045 if __ELF__ is defined.
2046
2a3d7146
GM
20471999-10-24 Gerd Moellmann <gerd@gnu.org>
2048
2049 * window.c (Fnext_window): Add a QUIT in the loop.
2050
8ac52782
GM
20511999-10-23 Gerd Moellmann <gerd@gnu.org>
2052
2053 * Makefile.in (bootstrap, bootstrap-emacs, bootstrap-temacs):
2054 New targets.
2055
05f0d15a
DL
20561999-10-22 Dave Love <fx@gnu.org>
2057
2058 * emacs.c (main): Enable profiling conditional on __linux also.
2059
882fb0e6
GM
20601999-10-20 Gerd Moellmann <gerd@gnu.org>
2061
2062 * xrdb.c (x_load_resources): Set default resources for resource
2063 classes instead of for the specific Emacs.
2064
b5f5bc31
GM
20651999-10-19 Gerd Moellmann <gerd@gnu.org>
2066
66f4dd69
GM
2067 * s/freebsd.h (HAVE_GETLOADAVG): Define as 1 because config.h
2068 defines it that way.
2069
b5f5bc31
GM
2070 * xdisp.c (echo_area_display) [HAVE_X_WINDOWS]: Do nothing
2071 if selected_frame is equal to Vterminal_frame.
2072
68c45bf0
PE
20731999-10-19 Paul Eggert <eggert@twinsun.com>
2074
2075 Add support for large files, 64-bit Solaris, system locale codings.
2076
2077 * Makefile.in (emacs): Set the LC_ALL environment variable to "C"
2078 when dumping, so that the dumped Emacs doesn't have stray locale info.
2079 (dired.o): Depend on systime.h.
2080 (editfns.o): Depend on coding.h.
2081
2082 * alloc.c, buffer.c, callproc.c, ccl.c, charset.c, coding.c, data.c,
2083 dispnew.c, editfns.c, emacs.c, filelock.c, floatfns.c, hftctl.c,
2084 keyboard.c, process.c, sysdep.c, unexelf.c, unexhp9k800.c,
2085 unexsunos4.c, vmsfns.c, vmsgmalloc.c, w32faces.c, w32menu.c, w32term.c,
2086 w32xfns.c, xfaces.c, xfns.c, xmenu.c, xterm.c:
2087 Include <config.h> before any system include files.
2088
2089 * alloc.c, buffer.c, ccl.c, data.c, editfns.c, emacs.c, eval.c,
2090 fileio.c, filelock.c, frame.c, insdel.c, keymap.c, lread.c,
2091 m/alpha.h, print.c, search.c, sysdep.c, xdisp.c, xfaces.c, xfns.c,
2092 xmenu.c, xterm.c:
2093 Do not include <stdlib.h>, as <config.h> does this now.
2094
2095 * callproc.c (Fcall_process):
2096 Synchronize messages locale before invoking strerror.
2097 Decode resulting string with locale-coding-system.
2098
2099 * coding.c (Vlocale_coding_system): New var.
2100 (syms_of_coding): Adjust to above change.
2101 (emacs_strerror): New function.
2102
2103 * coding.h (emacs_strerror, Vlocale_coding_system): New decls.
2104
2105 * config.in (HAVE_STDIO_EXT_H, HAVE_TM_GMTOFF, HAVE___FPENDING,
2106 HAVE_FTELLO, HAVE_GETLOADAVG, HAVE_MBLEN, HAVE_MBRLEN,
2107 HAVE_STRSIGNAL): New macros.
2108 (BITS_PER_LONG): Default to 64 if _LP64 is defined.
2109 <stdlib.h>: Include if HAVE_STDLIB_H is defined and NOT_C_CODE isn't.
2110
2111 * dired.c: Include "systime.h".
2112 (Ffile_attributes): Do not cast s.st_size to int; this loses
2113 information if int is 32 bits but st_size and EMACS_INT are larger.
2114 Treat large device numbers like large inode numbers.
2115
2116 * dispnew.c (PENDING_OUTPUT_COUNT): Use __fpending if available.
2117
2118 * editfns.c: Include coding.h.
2119 (emacs_strftime): Remove decl.
2120 (emacs_strftimeu): New decl.
2121 (emacs_memftimeu): Renamed from emacs_memftime; new arg UT.
2122 Use emacs_strftimeu instead of emacs_strftime.
2123 (Fformat_time_string): Convert format string using
2124 Vlocale_coding_system, and convert result back. Synchronize time
2125 locale before invoking lower level function. Invoke
2126 emacs_memftimeu, passing ut, instead of emacs_memftime.
2127
2128 * emacs.c: Include <locale.h> if HAVE_SETLOCALE is defined.
2129 (Vmessages_locale, Vprevious_messages_locale, Vtime_locale,
2130 Vprevious_time_locale): New variables.
2131 (main): Invoke setlocale early, so that initial error messages are
2132 localized properly. But skip locale-setting if LC_ALL is "C".
2133 Fix up locale when it's safe to do so.
2134 (fixup_locale): Moved here from xterm.c.
2135 (synchronize_locale, synchronize_time_locale,
2136 synchronize_messages_locale): New functions.
2137 (syms_of_emacs): Accommodate above changes.
2138
2139 * fileio.c (report_file_error): Convert strerror output according
2140 to Vlocale_coding_system.
2141 (Finsert_file_contents): Check for arithmetic overflow in
2142 computations that depend on file size. Report IO errors
2143 with emacs_strerror, not strerror.
2144
2145 * fns.c (Fgethash): Declare dflt parameter.
2146
2147 * gmalloc.c: Do not define const to nothing if HAVE_CONFIG_H
2148 is defined; that's config.h's job.
2149
2150 * lisp.h (EMACS_INT, BITS_PER_EMACS_INT, EMACS_UINT): If _LP64,
2151 default these values to long, BITS_PER_LONG, and unsigned long.
2152 (VALBITS, MARKBIT, XINT): Do not assume 32-bit EMACS_INT.
2153 (PNTR_COMPARISON_TYPE): Default to EMACS_UINT, not to unsigned int.
2154 (code_convert_string_norecord, fixup_locale,
2155 synchronize_messages_locale, synchronize_time_locale,
2156 emacs_open, emacs_close, emacs_read, emacs_write): New decls.
2157 All Emacs callers of open, close, read, write changed to use
2158 emacs_open, emacs_close, emacs_read, emacs_write.
2159
2160 * lread.c (file_offset, file_tell): New macros. All uses of ftell
2161 changed to file_tell.
2162 (saved_doc_string_position, prev_saved_doc_string_position): Now
2163 of type file_offset.
2164 (init_lread): Do not fix locale here; fixup_locale now does this.
2165
2166 * m/amdahl.h, s/usg5-4.h:
2167 (NSIG): Remove.
2168 (NSIG_MINIMUM): New macro.
2169
2170 * m/cydra5.h, m/dpx2.h, m/mips.h, m/pfa50.h, m/sps7.h, m/stride.h,
2171 m/ustation.h, s/gnu-linux.h, s/hpux.h, s/iris3-5.h, s/iris3-6.h,
2172 s/umips.h, s/usg5-4.h:
2173 (SIGIO): Do not undef.
2174 (BROKEN_SIGIO): New macro.
2175
2176 * m/ustation.h:
2177 (SIGTSTP): Do not undef.
2178 (BROKEN_SIGTSTP): New macro.
2179
2180 * s/gnu-linux.h:
2181 (SIGPOLL, SIGURG): Do not undef.
2182 (BROKEN_SIGPOLL, BROKEN_SIGURG): New macros.
2183
2184 * s/ptx4.h:
2185 (SIGINFO): Do not undef.
2186 (BROKEN_SIGINFO): New macros.
2187
2188 * m/delta.h, s/ptx.h, s/template.h: Doc fix.
2189
2190 * mktime.c, strftime.c: Update to glibc 2.1.2 version, with
2191 some Emacs-related changes merged.
2192
2193 * print.c (float_to_string): Prepend "-" to representation of a
2194 NaN if the NaN is negative.
2195
2196 * process.c (sys_siglist): Omit if HAVE_STRSIGNAL.
2197 (wait_reading_process_input): Use emacs_strerror, not strerror.
2198
2199 * process.c (status_message, sigchld_handler): Synchronize locale,
2200 then use strsignal istead of sys_siglist.
2201 * w32proc.c (sys_wait): Likewise.
2202
2203 * s/aix3-1.h, s/bsd4-1.h, s/dgux.h, s/gnu-linux.h, s/hiuxmpp.h,
2204 s/hpux.h, s/iris3-5.h, s/iris3-6.h, s/irix3-3.h, s/osf1.h, s/rtu.h,
2205 s/sunos4-1.h, s/unipl5-0.h, s/unipl5-2.h, s/usg5-0.h, s/usg5-2-2.h,
2206 s/usg5-2.h, s/usg5-3.h, s/xenix.h:
2207 (open, close, read, write, INTERRUPTIBLE_OPEN,
2208 INTERRUPTIBLE_CLOSE, INTERRUPTIBLE_IO): Remove.
2209
2210 * s/sol2-5.h (_LARGEFILE_SOURCE, _FILE_OFFSET_BITS): New macros.
2211
2212 * sysdep.c (sys_read, sys_write, read, write, sys_close, close,
2213 sys_open, open): Remove.
2214 (emacs_open, emacs_close, emacs_read, emacs_write): Always define;
2215 the old INTERRUPTIBLE_OPEN, INTERRUPTIBLE_CLOSE, and INTERRUPTIBLE_IO
2216 macros are no longer used.
2217 (emacs_open): Renamed from sys_open. Merge BSD4_1 version.
2218 (emacs_close): Renamed from sys_close.
2219 (emacs_read): Renamed from sys_read.
2220 (emacs_write): Renamed from sys_write.
2221 (sys_siglist): Do not declare if HAVE_STRSIGNAL.
2222 (dup2): Do not print error on failure; the real dup2 doesn't.
2223 (strsignal): New function, defined if !HAVE_STRSIGNAL.
2224
2225 * syssignal.h (SIGINFO): Undef if defined and if BROKEN_SIGINFO
2226 is defined.
2227 (SIGIO, SIGPOLL, SIGTSTP, SIGURG): Likewise.
2228 (NSIG): If less than NSIG_MINIMUM, define to NSIG_MINIMUM.
2229 (strsignal): Declare if !HAVE_STRSIGNAL.
2230
2231 * unexelf.c (ElfBitsW, ELFSIZE, ElfExpandBitsW): New macros.
2232 (ElfW): Define in terms of ElfExpandBitsW.
2233
2234 * w32proc.c (sys_siglist): Remove decl.
2235
2236 * xdisp.c (decode_mode_spec): 3rd arg is int, not char, to comply
2237 with ANSI C.
2238 (display_string): Declare face_string_pos arg.
2239
2240 * xfns.c (Fx_show_tip): Declare timeout param.
2241
2242 * xterm.c: No need to include locale.h.
2243 (x_alloc_lighter_color, x_setup_relief_color):
2244 Pass arg as double, not float, for compatibility with ANSI C.
2245 (fixup_locale): Move to emacs.c.
2246 (x_term_init): Do not setlocale or fixup locale; the main program
2247 does this now.
2248
2f0b74ea
DL
22491999-10-18 Dave Love <fx@gnu.org>
2250
2251 * doc.c (Fdocumentation_property): Gcpro `tem'.
2252
471aa4a0
KH
22531999-10-18 Kenichi Handa <handa@etl.go.jp>
2254
2255 * lread.c (Fload): Calculate bytes of filename correctly.
2256 (openp): Likewise.
2257
aca2020b
KH
22581999-10-18 Keisuke Nishida <kxn30@po.cwru.edu>
2259
2260 * print.c (print_preprocess): In case print-circle is nil,
2261 add OBJ to Vprint_number_table only when OBJ is a symbol.
2262
1f5fe392 22631999-10-18 Kenichi Handa <handa@etl.go.jp>
b843d1ae
KH
2264
2265 * coding.c (code_convert_string): Add record_unwind_protect to
2266 assure setting inhibit_pre_post_conversion back to zero. Take
2267 care of the multibyteness of the working buffer.
2268
2269 * coding.c (inhibit_pre_post_conversion): New variable.
2270 (setup_coding_system): If inhibit_pre_post_conversion is nonzero,
2271 ignore post-read-conversion and pre-write-conversion property of
2272 the coding system.
2273 (code_convert_region_unwind): New function.
2274 (code_convert_region): Set inhibit_pre_post_conversion to 1 while
2275 running pre-write-conversion and post-read-conversion.
2276 (code_convert_string): Likewise.
2277
cd876a91
GM
22781999-10-17 Miles Bader <miles@gnu.org>
2279
2280 * editfns.c: Doc fix.
2281
22821999-10-17 Miles Bader <miles@gnu.org>
2283
2284 * editfns.c (Fconstrain_to_field): Make sure we don't violate the
2285 argument preconditions of find_before_next_newline in the case
2286 where both ONLY_IN_LINE and ESCAPE_FROM_EDGE are set and OLD_POS
2287 was indeed at the edge.
2288
22891999-10-17 Miles Bader <miles@gnu.org>
2290
2291 * minibuf.c (Fminibuffer_complete_and_exit): Supply value for new
2292 ESCAPE_FROM_EDGE parameter to Ffield_beginning.
2293
2294 * editfns.c (text_property_eq, text_property_stickiness): Don't
2295 use initializers for auto variables of type Lisp_Object.
2296 (find_field): Likewise. Use braces around nested ifs.
2297 (Fline_end_position): Store the raw eol in a variable, so that the
2298 final expression doesn't look so ugly.
2299 (Fconstrain_to_field): Doc fix.
2300 (preceding_pos): Renamed from `preceeding_pos'.
2301 (text_property_stickiness, find_field): Call preceding_pos,
2302 not preceeding_pos.
2303
23041999-10-17 Miles Bader <miles@gnu.org>
2305
2306 * editfns.c (Ffield_string_no_properties): New function.
2307 (text_property_stickiness, preceeding_pos): New functions.
2308 (Ffield_string): Remove PROPS parameter.
2309 (find_field): Add MERGE_AT_BOUNDARY parameter.
2310 Rewrite to use stickiness of `field' property to resolve
2311 ambiguous cases.
2312 (Ffield_beginning, Ffield_end): Add ESCAPE_FROM_EDGE parameter.
2313 (Fconstrain_to_field): Likewise.
2314 (syms_of_editfns): Init Sfield_string_no_properties.
2315 (Ffield_string, Ferase_field, Ffield_end):
2316 Supply new MERGE_AT_BOUNDARY argument to find_field.
2317 (Fline_beginning_position, Fline_end_position): Supply new
2318 ESCAPE_FROM_EDGE parameter to Fconstrain_to_field.
2319 Pass a value of Qt for the ONLY_IN_LINE argument to
2320 Fconstrain_to_field (only matters if N != 1).
2321 * syntax.c (Fforward_word): Supply new ESCAPE_FROM_EDGE parameter
2322 to Fconstrain_to_field.
2323
2324 * minibuf.c (Fminibuffer_complete_word): Use
2325 Ffield_beginning to find the prompt end.
2326
23271999-10-17 Miles Bader <miles@gnu.org>
2328
2329 * editfns.c (Fconstrain_to_field): Add get/set-current-point
2330 behavior when NEW_POS is nil.
2331 (find_field): Use XSETFASTINT instead of make_number.
2332 * minibuf.c (Fminibuffer_complete_and_exit): Test for an empty
2333 input string by seeing where the field begins, instead of
2334 looking at text-properties.
2335
23361999-10-17 Miles Bader <miles@gnu.org>
2337
2338 * editfns.c (Qfield): New variable.
2339 (find_field, Ferase_field, Ffield_string,
2340 Ffield_beginning, Ffield_end, Fconstrain_to_field): New functions.
2341 (Fline_beginning_position, Fline_end_position): Constrain to any field.
2342 (make_buffer_string_both): Remove minibuffer-prompt hack.
2343 (syms_of_editfns): Initialize Qfield, and subr entries for
2344 field functions above.
2345 * minibuf.c (read_minibuf): Don't save minibuffer prompt length on
2346 minibuf_save_list.
2347 Don't initialize minibuffer prompt length.
2348 Wrap prompt text-properties around the entire prompt.
2349 Add 'prompt text-property to prompt.
2350 Get final value with Ffield_string instead of make_buffer_string.
2351 (read_minibuf_unwind): Don't restore minibuffer prompt length from
2352 minibuf_save_list.
2353 (do_completion): Get minibuffer input with Ffield_string
2354 instead of Fbuffer_string.
2355 Erase minibuffer input with Ferase_field instead of erase_buffer.
2356 (Fminibuffer_complete_and_exit): Likewise.
2357 Test whether buffer is empty by looking for the 'prompt text
2358 property at the end.
2359 Set prompt length by looking for the end of the prompt text property,
2360 and save prompt length for later use (since there is no longer a
2361 buffer variable to get it from).
2362 (Fminibuffer_prompt_width, Fminibuffer_prompt_end): Functions removed.
2363 (syms_of_minibuf): Remove initializations of
2364 Sminibuffer_prompt_width and Sminibuffer_prompt_end.
2365 * buffer.h (struct buffer): Remove prompt_end_charpos field.
2366 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer, Fkill_buffer):
2367 Don't initialize prompt_end_charpos field.
2368 * syntax.c (Fforward_word): Likewise.
2369 Constrain to any field.
2370
3f6f7508
GM
23711999-10-16 Gerd Moellmann <gerd@gnu.org>
2372
2373 * window.c (enum save_restore_action): New.
2374 (save_restore_orig_size): Change parameter list. Add
2375 functionality to check for valid orig_top and orig_height members
2376 in a window tree.
2377 (grow_mini_window): Call save_restore_orig_size with new parameter
2378 list.
2379 (shrink_mini_window): Restore old window sizes only if old
2380 size information is valid in all windows in a window tree.
2381
06482119
GM
23821999-10-15 Gerd Moellmann <gerd@gnu.org>
2383
2710454d
GM
2384 * xmenu.c (set_frame_menubar): Don't call
2385 x_set_menu_resources_from_menu_face here.
2386 (update_frame_menubar): Call x_set_menu_resources_from_menu_face.
2387
06482119
GM
2388 * xfns.c (gif_load): Fix handling of interlaced GIFs.
2389
17fa2837
DL
23901999-10-14 Dave Love <fx@gnu.org>
2391
2392 * xdisp.c (handle_fontified_prop): GCPRO `pos'.
2393
45f93416
GM
23941999-10-14 Gerd Moellmann <gerd@gnu.org>
2395
2396 * process.c (Fopen_network_stream): Don't loop if gethostbyname
2397 fails and h_errno is TRY_AGAIN.
2398
c765b723
DL
23991999-10-13 Dave Love <fx@gnu.org>
2400
2401 * filelock.c (lock_file): Move gcpro of `fn'.
2402
dace7f4e
GM
24031999-10-10 Gerd Moellmann <gerd@gnu.org>
2404
2405 * keyboard.c (auto-save-interval): Fix documentation.
2406
83c8f461 24071999-10-09 Richard M. Stallman <rms@gnu.org>
73fb36f1
RS
2408
2409 * print.c (print): When removing objects from Vprint_number_table,
2410 only scan the newly added objects.
2411 (print_preprocess): If OBJ is a gensym, and print-continuous-numbering,
2412 unconditionally force it to stay in the table.
2413
85177c86
GM
24141999-10-09 Gerd Moellmann <gerd@gnu.org>
2415
2416 * xfns.c (prepare_image_for_display): Don't try to load image if
2417 loading it failed before.
2418 (lookup_image, prepare_image_for_display): Remember if loading the
2419 image failed.
2420 (xpm_load): Add missing UNBLOCK_INPUT.
2421
2422 * dispextern.h (struct image): New member load_failed_p.
2423
11e4de5d
SM
24241999-10-08 Stefan Monnier <monnier@cs.yale.edu>
2425
f28eba7b 2426 * fileio.c (Fmake_temp_name): Add a reference to `make-temp-file'
11e4de5d
SM
2427 in the docstring.
2428
f1da8f06
GM
24291999-10-08 Gerd Moellmann <gerd@gnu.org>
2430
2431 * xterm.c (XTread_socket) <ClientMessage, WM_TAKE_FOCUS>:
2432 Don't call XSetInputFocus because that can generate additional
2433 FocusIn events.
2434
c37bbd4f
GM
24351999-10-07 Jeffrey C Honig <jch@bsdi.com>
2436
2437 * bsdos4.h [HAVE_LIBNCURSES]: Define TERMINFO and LIBS_TERMCAP.
2438
83c8f461 24391999-10-07 Richard M. Stallman <rms@gnu.org>
78cc5c64
GM
2440
2441 * process.c (wait_reading_process_input): When trying to suck
2442 input from one process, for accept-process-output,
2443 exit that loop if we get EAGAIN or EWOULDBLOCK.
2444
577d9e2f
GM
24451999-10-07 Gerd Moellmann <gerd@gnu.org>
2446
2447 * xfaces.c (Qbitmap_spec_p): Replaces Qpixmap_spec_p.
2448 (Fbitmap_spec_p): Replaces Fpixmap_spec_p.
2449 (load_pixmap): Use Fbitmap_spec_p and Qbitmap_spec_p instead of
2450 Fpixmap_spec_p and Qpixmap_spec_p.
2451 (load_face_colors, check_lface_attrs,
2452 merge_face_vector_with_property,
2453 Finternal_set_lisp_face_attribute): Use Fbitmap_spec_p.
2454 (syms_of_xfaces): Initialize Qbitmap_spec_p, defsubr
2455 Fbitmap_spec_p.
2456
f5737ad2
GM
24571999-10-07 Gerd Moellmann <gerd@gnu.org>
2458
2459 * xdisp.c (display_menu_bar): Use MENU_FACE_ID instead of
2460 MODE_LINE_FACE_ID.
2461
2462 * xfaces.c (toplevel) [USE_MOTIF]: Include some Motif headers.
2463 (struct x_resources) [USE_X_TOOLKIT]: New.
2464 (xm_apply_resources, xm_set_menu_resources_from_menu_face)
2465 [USE_MOTIF]: New.
2466 (xl_apply_resources, xl_set_menu_resources_from_menu_face)
2467 [USE_LUCID]: New.
2468 (x_set_menu_resources_from_menu_face) [USE_X_TOOLKIT]: New.
2469 (Qmenu): New.
2470 (syms_of_xfaces): Initialize Qmenu.
2471 (realize_basic_faces): Realize face `menu'.
2472 (resolve_face_name): New.
2473 (lface_from_face_name): Use it.
2474 (Finternal_set_lisp_face_attribute): Ditto.
2475 (Fpixmap_spec_p): Rewritten. Extend doc string.
2476
2477 * xmenu.c (set_frame_menubar, xmenu_show): Call
2478 x_set_menu_resources_from_menu_face.
2479
2480 * dispextern.h (enum face_id): Add MENU_FACE_ID.
2481 (toplevel): Include X11/Intrinsic.h.
2482
6a1aa823
DL
24831999-10-03 Ken'ichi Handa <handa@gnu.org>
2484
2485 * coding.c (DECODE_CHARACTER_ASCII): Decode ASCII invocated to GR
2486 correctly.
2487
26901792
DL
24881999-09-30 Kenichi Handa <handa@etl.go.jp>
2489
2490 * category.c (modify_lower_category_set): Set default value of
2491 TABLE correctly.
2492
2493 * minibuf.c (Fminibuffer_complete_word): Calculate string byte
2494 size correctly.
2495
24961999-09-29 Gerd Moellmann <gerd@gnu.org>
2497
2498 * editfns.c (Fpropertize): Renamed from Fproperties.
2499
25001999-09-29 Gerd Moellmann <gerd@gnu.org>
2501
2502 * xdisp.c (resize_mini_window): Do nothing if frame is an X
2503 frame that hasn't been initialized yet.
2504
83c8f461 25051999-09-28 Richard M. Stallman <rms@gnu.org>
a04f1a93
PR
2506
2507 * keymap.c (Fsingle_key_description): Make tem big enough.
2508 (describe_buffer_bindings): Make buf big enough.
2509
83c8f461 25101999-09-27 Richard M. Stallman <rms@gnu.org>
d177c583
PR
2511
2512 * intervals.c (get_local_map): Use indirect_function,
2513 not Findirect_function.
2514
26901792
DL
25151999-09-27 Dave Love <fx@gnu.org>
2516
2517 * cm.h: Remove unneeded declaration of ospeed.
2518
25191999-09-26 Gerd Moellmann <gerd@gnu.org>
2520
2521 * lisp.h (toplevel): Add prototype for
2522 next_single_char_property_change.
2523
2524 * textprop.c (next_single_char_property_change): New.
2525
2526 * xdisp.c (display_prop_end, invisible_text_between_p): Use
2527 next_single_char_property_change.
2528
25291999-09-25 Gerd Moellmann <gerd@gnu.org>
2530
2531 * editfns.c (Fproperties): New.
2532 (syms_of_editfns): Defsubr it.
2533
2534 * xfns.c (lookup_image): Set image's timestamp because it's
2535 used when we look it up.
2536
25371999-09-23 Gerd Moellmann <gerd@gnu.org>
2538
2539 * window.c (enlarge_window): Add window parameter instead of using
2540 selected_window.
2541 (Fdisplay_buffer): Call it with window parameter instead of
2542 setting selected_window.
2543 (Fenlarge_window, Fshrink_window): Ditto.
2544 (shrink_mini_window): If there is no recorded height and position
2545 info, resize mini-window to height 1.
2546
2547 * xfns.c (image_error): Use add_to_log.
2548
2549 * xfaces.c (load_pixmap): Call add_to_log without frame parameter.
2550 (load_face_font_or_fontset, load_color,
2551 merge_face_vector_with_property): Ditto.
2552
2553 * dispextern.h: Add prototype for add_to_log.
2554
2555 * xfaces.c (add_to_log): Move to xdisp.c.
2556
2557 * xdisp.c (add_to_log): Moved from xfaces.c. Remove frame
2558 parameter.
2559
25601999-09-23 Gerd Moellmann <gerd@gnu.org>
2561
2562 * xterm.c (XTread_socket) <MotionNotify>: Change #ifdef
2563 USE_X_TOOLKIT to #ifdef USE_TOOLKIT_SCROLL_BARS.
2564
2565 * xdisp.c (resize_mini_window): Use grow_mini_window and
2566 shrink_mini_window.
2567
2568 * window.c (window_min_size): Add parameter ignore_fixed_p.
2569 (change_window_height): Call window_min_size with new parameter.
2570 (shrink_window_lowest_first, save_restore_orig_size,
2571 grow_mini_window, shrink_mini_window): New.
2572 (make_window, replace_window): Initialize orig_top and
2573 orig_height.
2574 (enlarge_window): Renamed from change_window_height. Make it
2575 static.
2576 (Fdisplay_buffer, Fenlage_window, Fshrink_window): Call
2577 enlarge_window instead of change_window_height.
2578
2579 * window.h (struct window): New members orig_top, orig_height.
2580 (toplevel): Add prototypes for grow_mini_window and
2581 shrink_mini_window. Remove prototype for change_window_height.
2582
25831999-09-21 Eli Zaretskii <eliz@gnu.org>
2584
2585 * frame.c (frame_name_fnn_p): Fix previous change.
2586
25871999-09-20 Gerd Moellmann <gerd@gnu.org>
2588
2589 * minibuf.c (toplevel): Move include of stdio.h to other includes.
2590
2591 * dispnew.c (direct_output_for_insert): Cast arguments to
2592 safe_bcopy to char *.
2593
2594 * lread.c (readchar): Remove unused variables.
2595 (read_filtered_event, read1, Fmapatoms): Ditto.
2596 (toplevel): Include intervals.h.
2597
2598 * eval.c (Fsignal): Remove unused variables.
2599 (Fcommandp, do_autoload): Ditto.
2600
2601 * lisp.h: Add prototype for safe_bcopy, fatal.
2602
2603 * editfns.c (init_editfns): Remove unused variables.
2604 (Fgoto_char, Fchar_after, Fformat): Ditto.
2605 (message_text, message_length): Put in #ifndef HAVE_MENUS.
2606
2607 * data.c (find_symbol_value): Remove unused variables.
2608 (Faref, Fstring_to_number): Ditto.
2609 (toplevel): Include stdio.h.
2610 (Fnumber_to_string): Cast XINT to long for %ld.
2611
2612 * casefiddle.c (casify_object): Remove unused variables.
2613 (casify_region): Ditto.
2614
2615 * filelock.c (get_boot_time): Put local variable used in
2616 conditinally compiled section in #ifdef.
2617 (toplevel): Include stdio.h.
2618
2619 * keymap.c (Flookup_key, Faccessible_keymaps, describe_vector,
2620 keys_of_keymap, syms_of_keymap): Remove unused variables.
2621
26221999-09-20 Gerd Moellmann <gerd@gnu.org>
2623
2624 * xdisp.c (sync_frame_with_window_matrix_rows): Disable frame rows
2625 whose corresponding window rows have been disabled in
2626 try_window_id.
2627
26281999-09-20 Gerd Moellmann <gerd@gnu.org>
2629
2630 * xdisp.c (compute_window_start_on_continuation_line): Handle case
2631 that window start is out of range.
2632 (handle_display_prop, handle_single_display_prop): Replace
2633 marginal area specifications like `left-margin' with `(margin
2634 left-margin)'.
2635 (Qmargin): New.
2636 (syms_of_xdisp): Initialize Qmargin.
2637
26381999-09-19 Gerd Moellmann <gerd@gnu.org>
2639
2640 * syntax.c (update_syntax_table, find_defun_start, back_comment,
2641 describe_syntax, skip_chars): Remove unused variables.
2642 (back_comment, forw_comment): Add braces to if-statement with
2643 if-else as dependent statement.
2644
2645 * process.c (list_processes_1): Remove unused variables.
2646 (Fopen_network_stream, create_process): Add parentheses to
2647 conditional expressions.
2648 (create_process): Put declaration of sigchld in #if 0.
2649 (Fopen_network_stream): Removed unused variables.
2650 (Fopen_network_stream, wait_reading_process_input,
2651 wait_reading_process_input, send_process, send_process): Ditto.
2652 (toplevel): Add prototypes for set_waiting_for_input and
2653 keyboard_bit_set.
2654
2655 * abbrev.c (Fexpand_abbrev): Remove unused variables.
2656
2657 * textprop.c (Fset_text_properties): Remove unused variables.
2658 (text_property_list, verify_interval_modification,
2659 interval_has_all_properties): Ditto.
2660
2661 * callproc.c (toplevel) [HAVE_UNISTD_H]: Include unistd.h.
2662 (Fcall_process): Remove unused variable.
2663
2664 * keyboard.c (Frecursive_edit): Remove unused variable.
2665 (command_loop_1, safe_run_hooks, kbd_buffer_get_event,
2666 timer_check, make_lispy_event, menu_bar_items,
2667 menu_bar_one_keymap, menu_bar_item, parse_menu_item,
2668 parse_tool_bar_item, read_char_x_menu_prompt, read_key_sequence,
2669 kbd_buffer_get_event, make_lispy_event, read_char_x_menu_prompt,
2670 read_key_sequence): Ditto. Fread_key_sequence,
2671 Fread_key_sequence_vector, Fsuspend_emacs): Ditto.
2672 (read_key_sequence) [GOBBLE_FIRST_EVENT]: Put local variables only
2673 used when GOBBLE_FIRST_EVENT is defined in #ifdef
2674 (Fexecute_extended_command): Cast XINT to long for %ld.
2675 (toplevel) [HAVE_UNISTD_H]: Include unistd.h.
2676 (toplevel): Include sys/types.h.
2677
2678 * lisp.h (RETURN_UNGCPRO): Use do-while (0) idiom.
2679 (toplevel): Add prototypes for stuff_char, and
2680 code_convert_string_norecord.
2681
26821999-09-19 Gerd Moellmann <gerd@gnu.org>
2683
2684 * buffer.h: Add prototype for r_re_alloc.
2685
2686 * insdel.c (copy_text): Removed unused variables.
2687 (count_combining_after, count_combining_after, insert_1_both,
2688 insert_from_string_1, insert_from_buffer_1, check_markers): Ditto.
2689 (adjust_after_replace, replace_range): Add parentheses to logical
2690 expressions. Remove unused variables.
2691 (CHECK_BYTE_COMBINING_FOR_INSERT): Add parentheses to logical
2692 expression.
2693
2694 * alloc.c (Fgarbage_collect): Remove unused variable.
2695 (compact_strings): Add parentheses around assignments in
2696 conditional context.
2697 (toplevel): Put declaration of unused function clear_marks
2698 in #if 0 like its definition.
2699
2700 * lisp.h: Add prototype for shrink_regexp_cache,
2701 sweep_weak_hash_tables.
2702
27031999-09-19 Dave Love <fx@gnu.org>
2704
2705 * process.c (Fopen_network_stream): Use strerror, not gai_strerror.
2706
2707 * doc.c (read_bytecode_char): Declare arg.
2708
2709 * lisp.h: Declare Fcurrent_message, Fmake_temp_name,
2710 read_bytecode_char, Fx_hide_busy_cursor, getloadavg.
2711
27121999-09-18 Richard Stallman <rms@gnu.org>
2713
2714 * xdisp.c (echo_area_display): Turn off code that returned
2715 without doing anything when using a terminal frame.
2716
83c8f461 27171999-09-17 Richard M. Stallman <rms@gnu.org>
27271329
PR
2718
2719 * unexelf.c (unexec): Don't get confused by a short section
2720 just before the bss section.
2721
26901792
DL
27221999-09-16 Gerd Moellmann <gerd@gnu.org>
2723
2724 * emacs.c (main): Remove unused variables.
2725 (sort_args, Fkill_emacs, Fkill_emacs): Ditto.
2726
2727 * lisp.h: Add prototype for uninterrupt_malloc, memory_warnings,
2728 init_fileio_once, syms_of_sound, init_xfns, init_fns
2729 init_sound, check_message_stack.
2730
2731 * emacs.c (toplevel) [HAVE_UNISTD_H]: Include unistd.h.
2732
2733 * intervals.c (rotate_right, rotate_left): Add braces to avoid
2734 ambiguous else warning.
2735 (split_interval_left): Remove unused variables.
2736 (previous_interval, adjust_intervals_for_deletion,
2737 set_point_both, set_point_both, set_intervals_multibyte_1): Ditto.
2738 (icount, idepth, zero_length): Move into #if 0 section below
2739 original position where these are used.
2740
2741 * buffer.h [REL_ALLOC]: Add prototypes for r_alloc and r_alloc_free.
2742
2743 * buffer.c (Fkill_buffer): Remove unused variables.
2744 (Fkill_buffer, overlays_at, overlays_in, recenter_overlay_lists,
2745 fix_overlays_in_range, Fmove_overlay, Fprevious_overlay_change,
2746 init_buffer_once, (syms_of_buffer): Ditto.
2747
2748 * xrdb.c (get_fallback): Remove unused variable.
2749 (x_load_resources): Ditto. Put local variable used for Motif only
2750 in #ifdef USE_MOTIF.
2751
27521999-09-16 Gerd Moellmann <gerd@gnu.org>
2753
2754 * minibuf.c (read_minibuf): Remove unused variables.
2755 (read_minibuf, Fread_buffer, scmp, Fcompleting_read): Ditto.
2756 (do_completion): Move assignment out of conditional context.
2757 (Fdisplay_completion_list): Add parentheses to conditional expression.
2758
2759 * cm.c (toplevel) [HAVE_TERMCAP_H]: Include termcap.h.
2760
2761 * lisp.h: Add prototype for no_switch_window.
2762
2763 * window.c (Fset_window_buffer): Remove unused variables.
2764 (Fset_window_margins): Ditto.
2765
2766 * xdisp.c (resize_mini_window): Temporarily set the selected
2767 window's or Vminibuf_scroll_window's height to "fixed" around
2768 the call the change_window_height.
2769
2770 * window.c (window_fixed_size_p): Check window's height_fixed_p
2771 flag.
2772
2773 * window.h (struct window): New member height_fixed_p.
2774
2775 * dispnew.c (direct_output_forward_char): Don't use this method
2776 if showing a message or a message was just cleared because we
2777 might need to resize the mini-window.
2778
27791999-09-16 Gerd Moellmann <gerd@gnu.org>
2780
2781 * frame.c (Fdelete_frame): Correct local variable pointing to
2782 selected frame after selecting new frame.
2783
27841999-09-15 Richard Stallman <rms@gnu.org>
2785
2786 * puresize.h (BASE_PURESIZE): Increase to 525000.
2787
2788 * filelock.c (Vtemporary_file_directory): New variable.
2789 (syms_of_filelock): Set up Lisp variable.
2790
27911999-09-15 Gerd Moellmann <gerd@gnu.org>
2792
2793 * term.c (OUTPUT_IF, OUTPUT1_IF): Use do-while.
2794 (encode_terminal_code): Remove unused variables.
2795 (turn_off_face): Ditto.
2796 (toplevel): Include termcap.h if HAVE_TERMCAP_H.
2797
2798 * dispnew.c (update_frame_line): If writing whole desired line,
2799 don't clear to end of line if already at the end.
2800
28011999-09-15 Gerd Moellmann <gerd@gnu.org>
2802
2803 * xdisp.c (resize_mini_window): Don't report changed window
2804 height if it actually hasn't changed.
2805
2806 * widget.c (set_frame_size, EmacsFrameSetCharSize): Remove
2807 unused variables.
2808 (mark_shell_size_user_specified): Put in #if 0 because not used.
2809 (create_frame_gcs): Put in #if 0 because currently unused.
2810 (first_frame_p): Ditto.
2811
2812 * xmenu.c (single_menu_item, Fx_popup_menu, Fx_popup_menu,
2813 single_submenu, update_frame_menubar, set_frame_menubar,
2814 free_frame_menubar, xmenu_show, xdialog_show): Remove unused
2815 variables.
2816
2817 * print.c (PRINTFULLP): Removed because it is no longer used and
2818 is misleading.
2819 (Ferror_message_string): Remove unused variables.
2820 (print_object): Cast argument of sprintf to long for `%ld'
2821 specifier. Remove unused variable.
2822
28231999-09-14 Gerd Moellmann <gerd@gnu.org>
2824
2825 * sound.c (Fplay_sound): Remove usused variables.
2826 (be2hs): Put in #if 0 because it's currently not used.
2827
28281999-09-14 Ken Raeburn <raeburn@gnu.org>
2829
2830 * print.c (Ferror_message_string, print_error_message,
2831 print_object): Use XCAR, XCDR and XFLOAT_DATA instead of explicit
2832 member access.
2833
28341999-09-14 Gerd Moellmann <gerd@gnu.org>
2835
2836 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Put code in do-while.
2837
2838 * frame.c (Fnext_frame): Remove unused variable(s).
2839 (Fprevious_frame, Fmouse_pixel_position, frame_name_fnn_p): Ditto.
2840 (store_frame_param): Add parentheses to conditional expression.
2841 (Fmodify_frame_parameters): Remove unused variables.
2842 (Fmodify_frame_parameters, Fset_frame_size, Fset_frame_position):
2843 Ditto.
2844
2845 * xfns.c (x_set_background_color): Remove unused variable(s).
2846 (x_set_border_pixel): Ditto.
2847 (x_set_menu_bar_lines): Put local variable used only for
2848 non-toolkit case in #ifdef/#endif.
2849 (x_figure_window_size): Remove unused variable(s).
2850 (x_figure_window_size, x_window, lookup_image,
2851 xbm_read_bitmap_file_data, x_build_heuristic_mask, pbm_load,
2852 png_load, jpeg_load, gif_load, x_create_tip_frame,
2853 x_create_tip_frame, Fx_show_tip, x_set_border_pixel): Ditto.
2854
2855 * xterm.c (x_scroll_bar_handle_click): Compile only if
2856 not USE_TOOLKIT_SCROLL_BARS.
2857 (x_scroll_bar_set_handle, x_scroll_bar_note_movement): Ditto.
2858
2859 * dispextern.h: Add prototypes for gamma_correct and
2860 x_kill_gs_process.
2861
2862 * xterm.c (x_produce_glyphs): Remove unused variable(s).
2863 (x_alloc_nearest_color_for_widget, note_tool_bar_highlight,
2864 x_set_toolkit_scroll_bar_thumb): Ditto.
2865 (x_scroll_bar_create): Move local variable to the
2866 conditionally compiled section of code where it is used.
2867 (x_scroll_bar_create): Remove unused variable(s).
2868 (x_scroll_bar_remove, XTread_socket): Ditto.
2869 (XTread_socket) <ConfigureNotify>: Move variables used for
2870 non-toolkit case into conditionally compiled section of code.
2871
2872 * window.h (freeze_window_starts): Fix typo in prototype.
2873
2874 * xdisp.c (display_echo_area_1, try_window_id): Remove unused
2875 variable(s).
2876
2877 * lisp.h: Add prototype for debug_print.
2878
2879 * dispextern.h (xassert) [GLYPH_DEBUG]: Change definition
2880 to use do-while.
2881
2882 * fns.c (SXHASH_COMBINE): Add missing parentheses.
2883 (Fchar_table_range, Fset_char_table_default, mapcar1,
2884 Fyes_or_no_p, sweep_weak_hash_tables): Remove unused variable(s).
2885
2886 * lisp.h: Add prototype for getloadavg.
2887
28881999-09-14 Andreas Schwab <schwab@gnu.org>
2889
2890 * process.c (Fopen_network_stream): Avoid socket decriptor leak.
2891
2892 * lisp.h: Declare close_file_unwind.
2893
28941999-09-14 Richard Stallman <rms@gnu.org>
2895
2896 * filelock.c (get_boot_time): Make the temp name in the proper dir.
2897
28981999-09-13 Gerd Moellmann <gerd@gnu.org>
2899
2900 * xdisp.c (redisplay_window): Make sure start_at_line_beg
2901 is always set correctly.
2902
29031999-09-13 Dave Love <fx@gnu.org>
2904
2905 * xdisp.c (move_it_in_display_line_to): Make type consistent with
2906 declaration.
2907
29081999-09-13 Gerd Moellmann <gerd@delysid.gnu.org>
2909
2910 * xdisp.c (QCfile): Move here from xfns.c.
2911 (syms_of_xdisp): Initialize it.
2912 (message2_nolog): Change for Lisp_Object selected_frame.
2913 (message3_nolog, message_with_string, message,
2914 setup_echo_area_for_printing, truncate_echo_area,
2915 prepare_menu_bars, redisplay_internal, Fdump_tool_bar_row): Ditto.
2916
29171999-09-13 Dave Love <fx@gnu.org>
2918
2919 * xterm.c: Don't continue #define args for benefit of old cc.
2920 (xt_action_hook): Indent #error for benefit of K&R cc.
2921
29221999-09-13 Gerd Moellmann <gerd@delysid.gnu.org>
2923
2924 * xterm.c (XTcursor_to): Change for Lisp_Object selected_frame.
2925 (x_clear_frame, XTring_bell, XTmouse_position, XTread_socket): Ditto.
2926 (XRINGBELL): Removed.
2927
29281999-09-13 Dave Love <fx@gnu.org>
2929
2930 * xfns.c (x_put_x_image): Make type consistent with declaration.
2931
2932 * fns.c (Fmake_hash_table): Fix string continuation.
2933
29341999-09-13 Gerd Moellmann <gerd@delysid.gnu.org>
2935
2936 * xfns.c (QCfile): Moved to xdisp.c.
2937 (syms_of_xfns): Don't initialize QCfile.
2938 (check_x_frame): Change for Lisp_Object selected_frame.
2939 (check_x_display_info, x_get_resource_string): Ditto.
2940
29411999-09-13 Gerd Moellmann <gerd@gnu.org>
2942
2943 * minibuf.c (choose_minibuf_frame): Don't try to set the
2944 mini-buffer window's buffer, if the buffer is invalid.
2945
2946 * xfns.c (QCfile): Moved to xdisp.c.
2947 (syms_of_xfns): Don't initialize QCfile.
2948
2949 * xdisp.c (QCfile): Move here from xfns.c.
2950 (syms_of_xdisp): Initialize it.
2951
2952 * lisp.h (selected_frame): Add external declaration.
2953
2954 * xselect.c (x_own_selection): Change for Lisp_Object selected_frame.
2955 (Fx_store_cut_buffer_internal): Ditto.
2956 (Fx_rotate_cut_buffers_internal): Ditto.
2957
2958 * xfaces.c (frame_or_selected_frame): Change for Lisp_Object
2959 selected_frame.
2960 (Finternal_set_lisp_face_attribute): Ditto.
2961 (Finternal_get_lisp_face_attribute): Ditto.
2962 (Finternal_lisp_face_empty_p): Ditto.
2963 (Fdump_face): Ditto.
2964
2965 * term.c (OUTPUT): Change for Lisp_Object selected_frame.
2966 (OUTPUT_IF, ring_bell, set_terminal_modes, reset_terminal_modes,
2967 set_terminal_window, set_scroll_region, reassert_line_highlight,
2968 change_line_highlight, cursor_to, raw_cursor_to, clear_to_end,
2969 clear_end_of_line, clear_end_of_line_raw, clear_end_of_line_raw,
2970 encode_terminal_code, write_glyphs, term_init): Ditto.
2971
2972 * sysdep.c (reset_sys_modes): Change for Lisp_Object selected_frame.
2973 (kbd_input_ast, read_input_waiting): Ditto.
2974
2975 * minibuf.c (choose_minibuf_frame): Change for Lisp_Object
2976 selected_frame.
2977 (read_minibuf): Ditto.
2978
2979 * keyboard.c (command_loop_1): Change for Lisp_Object
2980 selected_frame.
2981 (cmd_error_internal, command_loop_1, read_char,
2982 kbd_buffer_get_event, read_avail_input,
2983 read_char_minibuf_menu_prompt, read_key_sequence, Fsuspend_emacs,
2984 interrupt_signal, quit_throw_to_read_char): Ditto.
2985
2986 * fontset.c (Ffont_info): Change for Lisp_Object selected_frame.
2987 (Ffontset_info): DItto.
2988
2989 * emacs.c (handle_USR1_signal): Change for Lisp_Object selected_frame.
2990
2991 * dispnew.c (selected_frame): Make it a Lisp_Object.
2992 (adjust_frame_glyphs_initially): Change for Lisp_Object selected_frame.
2993 (direct_output_for_insert, direct_output_forward_char,
2994 init_display): Ditto.
2995
2996 * data.c (swap_in_symval_forwarding): Change for Lisp_Object
2997 selected_frame.
2998 (set_internal): Ditto.
2999
3000 * buffer.c (Fother_buffer): Change for Lisp_Object selected_frame.
3001 (record_buffer): Ditto.
3002
3003 * frame.c (Fmake_terminal_frame): Use SELECTED_FRAME.
3004 (do_switch_frame): Change for Lisp_Object selected_frame.
3005 (Fselected_frame): Ditto.
3006 (Fframe_first_window): Use SELECTED_FRAME.
3007 (Fframe_root_window): Change for Lisp_Object selected_frame.
3008 (Fframe_selected_window, Fset_frame_selected_window, Fnext_frame,
3009 Fprevious_frame, other_visible_frames, Fdelete_frame,
3010 Fmouse_position, Fmouse_pixel_position, Fmake_frame_visible,
3011 Fmake_frame_invisible, Ficonify_frame, Fraise_frame, Flower_frame,
3012 Fframe_parameters, Fmodify_frame_parameters, Fframe_char_height,
3013 Fframe_char_width, Fframe_pixel_height, Fframe_pixel_width,
3014 Fset_frame_height, Fset_frame_width): Ditto.
3015
30161999-09-13 Gerd Moellmann <gerd@gnu.org>
3017
3018 * xdisp.c (message2_nolog): Change for Lisp_Object selected_frame.
3019 (message3_nolog, message_with_string, message,
3020 setup_echo_area_for_printing, truncate_echo_area,
3021 prepare_menu_bars, redisplay_internal, Fdump_tool_bar_row): Ditto.
3022
3023 * xmenu.c (Fx_popup_menu): Change for Lisp_Object selected_frame.
3024 (Fx_popup_dialog): Ditto.
3025
3026 * xfns.c (check_x_frame): Change for Lisp_Object selected_frame.
3027 (check_x_display_info, x_get_resource_string): Ditto.
3028
3029 * xterm.c (XTcursor_to): Change for Lisp_Object selected_frame.
3030 (x_clear_frame, XTring_bell, XTmouse_position, XTread_socket): Ditto.
3031 (XRINGBELL): Removed.
3032
3033 * window.c (Fminibuffer_window): Change for Lisp_Object
3034 selected_frame.
3035 (Fwindow_at, Fprevious_window, window_loop, select_window_1,
3036 display_buffer_1, Fdisplay_buffer, temp_output_buffer_show,
3037 Fcurrent_window_configuration, init_window_once): Ditto.
3038
3039 * frame.h (SELECTED_FRAME): New.
3040
30411999-09-12 Ken Raeburn <raeburn@gnu.org>
3042
3043 * category.c (word_boundary_p): Use XCAR and XCDR.
3044 * ccl.c (ccl_driver, resolve_symbol_ccl_program,
3045 Fregister_code_conversion_map): Likewise.
3046 * coding.c (setup_coding_system, detect_coding_system,
3047 Ffind_operation_coding_system, Fset_coding_priority_internal):
3048 Likewise.
3049 * doc.c (get_doc_string, Fdocumentation,
3050 store_function_docstring): Likewise.
3051 * editfns.c (save_restriction_restore): Likewise.
3052 * eval.c (Fcond, Fmacroexpand, Fcondition_case, wants_debugger,
3053 skip_debugger, find_handler_clause, Fautoload, Fapply,
3054 run_hook_with_args, run_hook_list_with_args, Ffetch_bytecode):
3055 Likewise.
3056 * fileio.c (Ffind_file_name_handler, Finsert_file_contents,
3057 Fwrite_region, do_auto_save_unwind, Fdo_auto_save,
3058 Fread_file_name): Likewise.
3059 * filelock.c (unlock_all_files): Likewise.
3060 * insdel.c (Fcombine_after_change_execute): Likewise.
3061 * intervals.c (adjust_intervals_for_insertion): Likewise.
3062 * keymap.c (get_keymap_1, Fkeymap_parent, Fset_keymap_parent,
3063 Fset_keymap_parent, fix_submap_inheritance, access_keymap,
3064 store_in_keymap, Fcopy_keymap, define_as_prefix,
3065 current_minor_maps, Faccessible_keymaps,
3066 accessible_keymaps_char_table, Fkey_description,
3067 Fwhere_is_internal, where_is_internal_2, where_is_internal_1,
3068 describe_buffer_bindings, describe_map_tree, shadow_lookup,
3069 describe_map): Likewise.
3070 * lread.c (Fload, load_unwind, close_load_descs, read_vector,
3071 read_list, init_lread): Likewise.
3072 * search.c (Fmatch_data): Likewise.
3073 * sunfns.c (Fsun_menu_internal): Likewise.
3074 * syntax.c (describe_syntax): Likewise.
3075 * undo.c (record_insert, record_delete, Fundo_boundary,
3076 truncate_undo_list): Likewise.
3077 * vmsproc.c (child_sig): Likewise.
3078
3079 * editfns.c (Fformat): Use XFLOAT_DATA.
3080
30811999-09-12 Gerd Moellmann <gerd@gnu.org>
3082
3083 * keyboard.c (command_loop_1): Resize mini-window to the
3084 exact size of a message displayed, if any.
3085
3086 * xdisp.c (resize_mini_window): Add parameter exact_p. Resize
3087 to exact size if exact_p is non-zero.
3088 (display_echo_area_1): Call resize_mini_window with
3089 new parameter.
3090 (redisplay_internal): Ditto.
3091 (resize_echo_area_axactly): New.
3092
3093 * minibuf.c (read_minibuf_unwind): Call resize_mini_window with
3094 new parameter.
3095
3096 * dispextern.h: Change prototype of resize_mini_window.
3097 Add prototype for resize_echo_area_axactly.
3098
3099 * xfaces.c (Fx_family_fonts): Replaces Fx_font_list.
3100 (syms_of_xfaces): Defsubr accordingly.
3101
3102 * xdisp.c (hscroll_window_tree): Choose cursor row from
3103 desired or current matrix.
3104 (redisplay_internal): Hscroll before updating.
3105
31061999-09-12 Gerd Moellmann <gerd@gnu.org>
3107
3108 * syntax.c (Fforward_word): Use prompt_end_charpos instead
3109 of minibuffer_prompt_length.
3110
3111 * minibuf.c (read_minibuf): Use prompt_end_charpos instead
3112 of minibuffer_prompt_length.
3113 (read_minibuf_unwind): Ditto.
3114 (Fminibuffer_complete_and_exit): Ditto.
3115 (Fminibuffer_complete_word): Ditto.
3116 (Fminibuffer_prompt_end): Ditto.
3117
3118 * editfns.c (Fbuffer_string): Use prompt_end_charpos instead
3119 of minibuffer_prompt_length.
3120 (Fline_beginning_position): Ditto.
3121
3122 * buffer.c (Fget_buffer_create): Use prompt_end_charpos instead
3123 of minibuffer_prompt_length.
3124 (Fmake_indirect_buffer): Ditto.
3125 (Fkill_buffer): Ditto.
3126 (Ferase_buffer): Ditto.
3127
3128 * buffer.h (prompt_end_charpos): Replaces
3129 minibuffer_prompt_length.
3130
3131 * minibuf.c (read_minibuf): Return mini-buffer contents
3132 without the prompt.
3133
3134 * editfns.c (make_buffer_string_both): Take out the code
3135 to handle mini-buffer prompts.
3136 (Fbuffer_string): Handle the prompt here, instead.
3137
3138 * xfaces.c (lface_from_face_name): Resolve face aliases.
3139 (Qmode_line): Replaces Qmodeline.
3140 (realize_basic_faces): Use Qmode_line.
3141 (syms_of_xfaces): Initialize Qmode_line.
3142
31431999-09-12 Gerd Moellmann <gerd@gnu.org>
3144
3145 * minibuf.c (read_minibuf): Set minibuf_prompt_width to the
3146 current column after inserting prompt.
3147 (Fminibuffer_prompt_width): Return minibuf_prompt_width.
3148
3149 * xfaces.c (Qframe_update_face_colors): New.
3150 (syms_of_xfaces): Initialize call.
3151 (update_face_from_frame_parameter): Call that function when
3152 the frame's background changes.
3153
31541999-09-12 Richard Stallman <rms@gnu.org>
3155
3156 * insdel.c (del_range_1): Don't treat minibuffer prompt specially.
3157
31581999-09-12 Ken Raeburn <raeburn@gnu.org>
3159
3160 * alloc.c (Fcons, pure_cons, Fpurecopy, Fgarbage_collect,
3161 mark_object, mark_buffer): Use XCAR and XCDR.
3162 * bytecode.c (Fbyte_code): Likewise.
3163 * callint.c (Fcall_interactively, Fprefix_numeric_value):
3164 Likewise.
3165 * callproc.c (Fcall_process, Fcall_process_region, child_setup,
3166 getenv_internal): Likewise.
3167 * dired.c (file_name_completion): Likewise.
3168 * fns.c (Fsafe_length, concat, Fcopy_alist, Fmember, Fmemq, Fassq,
3169 assq_no_quit, Fassoc, Frassq, Frassoc, Fdelq, Fdelete, Freverse,
3170 Fplist_get, Fplist_put, internal_equal, mapcar1): Likewise.
3171 * indent.c (Fcompute_motion): Likewise.
3172 * process.c (decode_status, Fprocess_status, Fprocess_exit_status,
3173 list_processes_1, Fstart_process, Fopen_network_stream,
3174 wait_reading_process_input, read_process_output_call,
3175 kill_buffer_processes, sigchld_handler, exec_sentinel_unwind,
3176 status_notify, wait_reading_process_input): Likewise.
3177 * textprop.c (PLIST_ELT_P, property_value, set_properties,
3178 extend_property_ranges): Likewise.
3179 * w32faces.c (Fpixmap_spec_p, merge_face_list): Likewise.
3180 * w32fns.c (x_window_to_frame, x_set_frame_parameters,
3181 x_report_frame_params, x_set_cursor_type, x_icon_type,
3182 x_figure_window_size, Fx_create_frame, w32_load_system_font,
3183 w32_load_font, enum_font_cb2, w32_list_bdf_fonts, w32_list_fonts,
3184 w32_list_synthesized_fonts, w32_find_ccl_program, Fx_list_fonts,
3185 Fw32_find_bdf_fonts, w32_find_bdf_fonts_in_dir,
3186 x_display_info_for_name, Fx_display_list): Likewise.
3187 * w32menu.c (menubar_id_to_frame, single_keymap_panes,
3188 Fx_popup_menu, Fx_popup_dialog): Likewise.
3189 * w32proc.c (Fw32_set_keyboard_layout): Likewise.
3190 * w32term.c (x_window_to_scroll_bar, w32_read_socket,
3191 w32_term_init, x_delete_display): Likewise.
3192 * xfns.c (x_window_to_frame, x_any_window_to_frame,
3193 x_non_menubar_window_to_frame, x_menubar_window_to_frame,
3194 x_top_window_to_frame, x_set_frame_parameters,
3195 x_report_frame_params, x_set_cursor_type, x_icon_type,
3196 x_figure_window_size, Fx_create_frame, x_display_info_for_name,
3197 Fx_display_list, x_create_tip_frame): Likewise.
3198 * xmenu.c (menubar_id_to_frame, single_keymap_panes,
3199 Fx_popup_menu, Fx_popup_dialog): Likewise.
3200 * xselect.c (x_own_selection, x_get_local_selection,
3201 x_handle_selection_request, x_handle_selection_clear,
3202 x_clear_frame_selections, wait_for_property_change_unwind,
3203 wait_for_property_change, x_handle_property_notify,
3204 copy_multiple_data, x_get_foreign_selection,
3205 lisp_data_to_selection_data, clean_local_selection_data,
3206 x_handle_selection_notify, Fx_get_selection_internal,
3207 x_disown_buffer_selections): Likewise.
3208 * xterm.c (x_window_to_scroll_bar, XTread_socket, x_list_fonts,
3209 x_load_font, x_find_ccl_program, x_term_init, x_delete_display):
3210 Likewise.
3211
3212 * alloc.c (make_float, make_pure_float, Fpurecopy): Use
3213 XFLOAT_DATA.
3214 * bytecode.c (Fbyte_code): Likewise.
3215 * floatfns.c (extract_float, Fexpt, Fabs, rounding_driver,
3216 fmod_float): Likewise.
3217
32181999-09-11 Richard Stallman <rms@gnu.org>
3219
3220 * xdisp.c (run_window_scroll_functions): If hook functions switch
3221 buffers, switch back after.
3222
32231999-09-11 Ken Raeburn <raeburn@gnu.org>
3224
3225 * charset.h (GET_TRANSLATION_TABLE): Use XCDR.
3226 * frame.h (FOR_EACH_FRAME): Use XCAR and XCDR.
3227 (PIXEL_X_FROM_CANON_X, PIXEL_Y_FROM_CANON_Y): Use XFLOAT_DATA.
3228 * keyboard.h (EVENT_HEAD, EVENT_START, EVENT_END, POSN_WINDOW,
3229 POSN_BUFFER_POSN, POSN_WINDOW_POSN, POSN_TIMESTAMP): Use XCAR and
3230 XCDR.
3231 * syntax.h (SYNTAX, SYNTAX_WITH_FLAGS, SYNTAX_MATCH): Use XCAR and
3232 XCDR.
3233
32341999-09-10 Richard Stallman <rms@gnu.org>
3235
3236 * xterm.c (XTread_socket): In XSetInputFocus, use RevertToParent,
3237 not RevertToPointerRoot.
3238 (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
3239 Fix the code to clear around the scroll bar.
3240
32411999-09-10 Keisuke Nishida <kxn30@po.cwru.edu>
3242
3243 * print.c: Support print-circle and related features.
3244 (Vprint_gensym_alist): Removed.
3245 (Vprint_circle, Vprint_continuous_numbering, print_number_index
3246 Vprint_number_table): New variables.
3247 (PRINT_NUMBER_OBJECT, PRINT_NUMBER_STATUS): New macros.
3248 (PRINTPREPARE, PRINTFINISH): Don't set Vprint_gensym_alist.
3249 (print, print_preprocess, print_preprocess_string, print_object):
3250 New/modified functions with print-circle feature. Use
3251 Vprint_number_table instead of Vprint_gensym_alist for print-gensym.
3252 (syms_of_print): Defined new Lisp variables `print-circle',
3253 `print-continuous-numbering', `print-number-table'.
3254
32551999-09-10 Gerd Moellmann <gerd@gnu.org>
3256
3257 * xfns.c (x_build_heuristic_mask): Accept a list `(R G B)'
3258 as background color specification instead of an integer.
3259 (image-cache-eviction-delay): Replaces image-eviction-seconds.
3260 (Vimage_cache_eviction_delay): Replaces Vimage_eviction_seconds.
3261 (clear_image_cache, syms_of_xfns): Use it.
3262 (Qpostscript): Replaces Qghostscript.
3263 (gs_type): Use it.
3264 (gs_image_p): Ditto.
3265 (syms_of_xfns): Initialize Qpostscript.
3266
32671999-09-10 Richard Stallman <rms@gnu.org>
3268
3269 * buffer.c (Ferase_buffer): Don't erase the minibuffer prompt.
3270
32711999-09-09 Richard Stallman <rms@gnu.org>
3272
3273 * editfns.c (Fline_beginning_position): Handle minibuffer prompt here.
3274
3275 * cmds.c (Fbeginning_of_line): Don't handle minibuffer prompt here.
3276
32771999-09-09 Gerd Moellmann <gerd@gnu.org>
3278
3279 * fns.c (Fmakehash): Accept just one optional argument TEST.
3280
3281 * xfns.c (QCindex): New.
3282 (syms_of_xfns): Initialize QCindex.
3283 (gif_load): Use it instead of `:image'.
3284
32851999-09-09 Richard Stallman <rms@gnu.org>
3286
3287 * fileio.c (Fwrite_region): Finish renaming CONFIRM to MUSTBENEW.
3288 (Fwrite_region) [DOS_NT]: Handle `excl' here too.
3289
32901999-09-08 Gerd Moellmann <gerd@gnu.org>
3291
3292 * xdisp.c (Qwhen): Replaces QCwhen.
3293 (syms_of_xdisp): Initialized it instead of QCwhen.
3294 (handle_single_display_prop): Use it instead of QCwhen.
3295
32961999-09-08 Ken'ichi Handa <handa@gnu.org>
3297
3298 * charset.c (translate_char): Reset MSBs of arguments of
3299 MAKE_CHAR.
3300 (CHAR_COMPONENTS_VALID_P): Fix for ASCII.
3301
33021999-09-08 Lars Magne Ingebrigtsen <larsi@gnus.org>
3303
3304 * editfns.c (Fbufsize): Accept an extra BUFFER parameter.
3305
3306 * fns.c (Fbase64_decode_region): Don't place point outside of the
3307 current accessible portion.
3308
33091999-09-07 Richard Stallman <rms@gnu.org>
3310
3311 * keymap.c (fix_submap_inheritance): Do nothing if the proper
3312 parent is an ancestor of SUBMAP; otherwise, add it as the
3313 ultimate ancestor.
3314
33151999-09-07 Gerd Moellmann <gerd@gnu.org>
3316
3317 * xdisp.c (handle_single_display_prop): Change conditional
3318 display property to `:when FORM . VALUE'.
3319
33201999-09-07 Richard Stallman <rms@gnu.org>
3321
3322 * fileio.c (Fwrite_region): Doc fix.
3323
33241999-09-07 Stefan Monnier <monnier@cs.yale.edu>
3325
3326 * fileio.c (Qexcl): New variable.
3327 (report_file_error): Handle EEXIST specially.
3328 (Fwrite_region): Special handling for CONFIRM = `excl'.
3329 (syms_of_fileio): Initialize Qexcl.
3330
33311999-09-07 Gerd Moellmann <gerd@gnu.org>
3332
3333 * xfns.c (x_set_foreground_color): Call
3334 update_face_from_frame_parameter.
3335 (x_set_background_color): Ditto.
3336 (x_set_mouse_color): Ditto.
3337 (x_set_cursor_color): Ditto.
3338 (x_set_border_color): Ditto.
3339 (x_set_scroll_bar_foreground): Ditto.
3340 (x_set_scroll_bar_background): Ditto.
3341
3342 * xfaces.c (recompute_basic_faces): Clear face cache.
3343 (Finternal_set_lisp_face_attribute): Modify frame parameters
3344 if attributes of certain faces are changed.
3345 (update_face_from_frame_parameter): New.
3346
3347 * xfaces.c (realize_basic_faces): Realize new basic faces.
3348
3349 * dispextern.h (SCROLL_BAR_FACE_ID, BORDER_FACE_ID,
3350 CURSOR_FACE_ID, MOUSE_FACE_ID): New.
3351
3352 * xfaces.c (Qscroll_bar, Qcursor, Qborder, Qmouse): New.
3353 (syms_of_xfaces): Intialize new symbols.
3354
3355 * fns.c (Fmakehash): Take one argument, test, make all the
3356 rest keyword arguments.
3357
3358 * window.c (Fset_window_margins): Make window the first argument.
3359 (set_window_buffer): Call Fset_window_margins with window as first
3360 argument.
3361
33621999-09-07 Gerd Moellmann <gerd@gnu.org>
3363
3364 * xfaces.c (Qfringe): Replaces Qmargin.
3365
33661999-09-07 Kenichi Handa <handa@etl.go.jp>
3367
3368 * charset.h: Lots of comments fixed.
3369 (PARSE_MULTIBYTE_SEQ): Make it work also for ASCII string.
3370 (STRING_CHAR_AND_CHAR_LENGTH): This macro removed.
3371
3372 * charset.c : Lots of comments fixed.
3373 (SPLIT_MULTIBYTE_SEQ): Make it work also for ASCII string.
3374 (CHAR_COMPONENTS_VALID_P): Name changed from
3375 CHAR_COMPONENT_VALID_P. Caller changed.
3376
33771999-09-06 Richard Stallman <rms@gnu.org>
3378
3379 * insdel.c (syms_of_insdel): Define Lisp variable
3380 inhibit-modification-hooks.
3381
33821999-09-06 Michael Sperber [Mr. Preprocessor] <sperber@informatik.uni-tuebingen.de>
3383
3384 * s/aix4-2.h (ALIGN_DATA_RELOC): Undefined to support new
3385 unexaix.c.
3386
3387 * s/aix3-1.h (ALIGN_DATA_RELOC): Defined to support new unexaix.c.
3388
33891999-09-06 Dave Love <fx@gnu.org>
3390
3391 * unexaix.c: New version incorporating Michael Sperber's changes
3392 from XEmacs. Should solve problems on AIX 4.3.
3393
3394 * lread.c (Vbyte_boolean_vars): New variable.
3395 (defvar_bool, syms_of_lread): Use it.
3396
33971999-09-05 Richard Stallman <rms@gnu.org>
3398
3399 * minibuf.c (read_minibuf): Put all three properties on the
3400 same range, the whole prompt.
3401
34021999-09-05 Gerd Moellmann <gerd@gnu.org>
3403
3404 * sound.c (Qplay_sound_functions): Replaces Qplay_sound_hook.
3405 (Fplay_sound, syms_of_sound): Use it.
3406 (parse_sound): Allow float volume values in the range [0, 1].
3407 (Fplay_sound): Ditto.
3408
3409 * window.c (Fset_window_vscroll): Make window the first argument,
3410 amount to scroll the second. Take non-negative vscroll as
3411 argument.
3412 (Fwindow_vscroll): Return non-negative vscroll.
3413
3414 * xfns.c (Fx_show_tip): Improve documentation.
3415
34161999-09-05 Gerd Moellmann <gerd@gnu.org>
3417
3418 * buffer.c, buffer.h, dispextern.h, dispnew.c, keyboard.c,
3419 window.c, xdisp.c, xfaces.c, xterm.c, keyboard.h: Change
3420 `top-line' and `top_line' to `header-line' and `header_line'.
3421 Likewise for similar spellings.
3422
34231999-09-05 Gerd Moellmann <gerd@gnu.org>
3424
3425 * xdisp.c (row_containing_pos): New.
3426 (try_window_id): Use it.
3427
3428 * alloc.c, dispextern.h, dispnew.c, frame.c, frame.h, keyboard.c,
3429 lisp.h, termhooks.h, window.c xdisp.c, xfaces.c, xfns.c, xterm.c:
3430 Change spelling of `toolbar' to `tool_bar' or `tool-bar'.
3431 Likewise for upper-case etc.
3432
34331999-09-05 Gerd Moellmann <gerd@gnu.org>
3434
3435 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
3436 Fix reference to renamed variable.
3437
34381999-09-04 Gerd Moellmann <gerd@gnu.org>
3439
3440 * window.c (Qwindow_size_fixed): Replaces Qfixed_window_size.
3441 (window_fixed_size_p): Use Qwindow_size_fixed instead of
3442 Qfixed_window_size.
3443 (syms_of_window): Ditto.
3444
3445 * fns.c (Fmakehash): Exchange optional test and size arguments.
3446
34471999-09-03 Gerd Moellmann <gerd@gnu.org>
3448
3449 * xterm.c (XTset_vertical_scroll_bar): Block input when clearing
3450 under newly created scroll bar.
3451 (expose_window): If window is not yet fully initialized, do
3452 nothing. This can happen when toolkit scroll bars are used and a
3453 window is split. Reconfiguring the scroll bars will generate an
3454 expose for a newly created window.
3455
3456 * frame.h (struct frame): New member `gamma'.
3457
3458 * xfns.c: Include math.h. Add extern declaration for atof in case
3459 we don't see one.
3460 (Qscreen_gamma): New.
3461 (struct x_frame_parm_table): Add prototypes, add
3462 x_set_screen_gamma.
3463 (gamma_correct): New function.
3464 (defined_color): Call it.
3465 (x_set_screen_gamma): New.
3466 (x_set_title): Add parameter old_value.
3467 (RES_TYPE_FLOAT): New.
3468 (x_get_arg): Handle RES_TYPE_FLOAT.
3469 (Fx_create_frame): Call x_default_parameter for `screen-gamma'.
3470 (lookup_pixel_color): Change call to x_alloc_nearest_color to
3471 new prototype.
3472 (lookup_rgb_color): Ditto.
3473 (syms_of_xfns): Initialize Qscreen_gamma.
3474
3475 * xterm.c (x_alloc_nearest_color_for_widget) [USE_X_TOOLKIT]:
3476 New. Allocate color for lwlib widgets.
3477 (x_alloc_nearest_color): Change parameter list include the
3478 frame on which to allocate colors. Gamma-correct colors.
3479 (x_alloc_lighter_color): Call x_alloc_lighter_color with new
3480 parameter list.
3481
3482 * xterm.h: Change protorype of x_alloc_nearest_color.
3483
34841999-09-03 Richard Stallman <rms@gnu.org>
3485
3486 * callproc.c: Delete the system-independent include of stdlib.h
3487 (leaving only the one in the WINDOWSNT conditional).
3488
34891999-09-03 Andrew Choi <choi@cs.hku.hk>
3490
3491 * callproc.c (call-process) [macintosh]: Call mac_run_command in
3492 sysdep.c. The Mac code is modeled after the DOS code.
3493
3494 * dispextern.h [macintosh]: Include macterm.h to define substitute X
3495 Window types and macros.
3496
3497 * frame.h: Do nothing if included a second time.
3498 (enum output_method): Add mac_output frame type.
3499 (union output_data): Add new alternative `mac'.
3500 (FRAME_MAC_P): New macro.
3501
3502 * frame.c (Fframep) [macintosh]: Handle mac frame type.
3503 (syms_of_frame_1): Initialize Qmac.
3504 (make_terminal_frame) [macintosh]: Initialize output_data.mac fields.
3505 (Fmake_terminal_frame) [macintosh]: Add an alternate error check.
3506 (Fmodify_frame_parameters) [macintosh]: Call
3507 mac_set_frame_parameter in macterm.c.
3508
3509 * keyboard.c [macintosh]: Set KBD_BUFFER_SIZE to a smaller value
3510 (512) because Mac compilers limit local data of a function to 32K.
3511
3512 * make-docfiles.c: Correctly handle input files with Mac-style
3513 eol's.
3514
3515 * sysdep.c: Define numerous routines to emulate Unix system calls.
3516
3517 * xfaces.c: on MacOS, define the set of colors listed in rgb.txt
3518 file of an X Window environment.
3519
3520 * xfaces.c: on MacOS, define the Lisp functions x-display-color-p,
3521 x-display-grayscale, x-color-defined-p, and x-color-values.
3522
3523 * sysdep.c [macintosh] (stat, fstat, mkdir, rmdir, utime, access)
3524 (open, creat, unlink, read, write, rename, fopen, pause, alarm)
3525 (signal, sleep, gmtime, localtime, ctime, time, index, mktemp)
3526 (getpwuid, getpwnam, dup, dup2, isatty, getgid, getegid, getuid)
3527 (geteuid, getpid, getenv, uname, opendir, closedir, readdir, getwd.):
3528 New functions, replacing POSIX features.
3529
3530 * sysdep.c [macintosh] (Mac2UnixPathname, Unix2MacPathname, CheckAlarm)
3531 (InitMyPasswd, GetTempDirName, mystrchr, mystrtok, mystrcpy):
3532 (InitEmacsPasswdDir, run_mac_command): New subroutines.
3533
3534 * sysdep.c [macintosh] (targetTicks, alarm_signal_func, myPasswdName)
3535 (myPasswd, emacsPasswdDir, emacsPasswd, myPasswdInited, mask)
3536 (myPasswdDir, TempDirName, sys_siglist): New variables.
3537
3538 * sysdep.c [macintosh] (execvp, wait, croak, fork, kill, sigsetmask)
3539 (sigblock, request_sigio, unrequest_sigio, setpgrp, pipe, symlink)
3540 (link, lstat, readlink, umask, chmod, sbrk, fsync, ioctl):
3541 Define empty stubs so Emacs will link.
3542
35431999-09-03 Gerd Moellmann <gerd@gnu.org>
3544
3545 * xdisp.c: Use XCAR and XCDR instead of XCONS.
3546
3547 * window.h: New member frozen_window_start_p.
3548
3549 * window.c (foreach_window, foreach_window_1): New.
3550 (freeze_window_start, freeze_window_starts): New.
3551 (make_window): Initialize frozen_window_start_p.
3552 (replace_window): Ditto.
3553 (Fset_window_point): Remove references to deleted variables.
3554 (Fset_window_start): Ditto.
3555
3556 * xdisp.c (Vresize_mini_config, resize_mini_frame,
3557 resize_mini_initial_height): Removed.
3558 (syms_of_xdisp): Remove references to these variables.
3559 (resize_mini_window): Don't save window configuration, freeze
3560 window starts instead. Enlarge window until displaying an empty
3561 buffer, then shrink it. Make the function externally visible.
3562 (redisplay_window): Treat frozen window start like forced start,
3563 but accept point outside of the window.
3564
3565 * dispextern.h: Add function prototype for resize_mini_window.
3566
3567 * minibuf.c (read_minibuf_unwind): Resize mini-window when
3568 reaching minibuf_level 0.
3569
3570 * lisp.h: Remove extern declarations for variables deleted from
3571 xdisp.c.
3572
3573 * dispnew.c (adjust_frame_glyphs): Remove reference to
3574 Vresize_mini_config.
3575
35761999-09-03 Gerd Moellmann <gerd@gnu.org>
3577
3578 * xfns.c (x_set_scroll_bar_width): Change conditional compilation
3579 to USE_TOOLKIT_SCROLL_BARS.
3580
3581 * xterm.c (x_scroll_bar_create): Don't clear under scroll bar
3582 here.
3583 (XTset_vertical_scroll_bar): Clarify position computations. Clear
3584 under newly created scroll bar. Put toolkit scroll bars in the
3585 middle of the area reserved for the scroll bar.
3586
35871999-09-03 Kenichi Handa <handa@etl.go.jp>
3588
3589 The following changes are for the new handling of mulitbyte
3590 sequence. Now, except for a composite character, no multibyte
3591 character in string/buffer has trailing garbage bytes. For
3592 instance, the length of string "\201\300\300" is now 2, the first
3593 character is Latin-1 A-grave, the second is raw \300.
3594
3595 * charset.h (MAKE_NON_ASCII_CHAR): Handle the case that C1 or C2
3596 are negative.
3597 (MAKE_CHAR): Don't set MSBs of C1 and C2 to 0.
3598 (VALID_MULTIBYTE_CHAR_P): This macro deleted.
3599 (PARSE_COMPOSITE_SEQ): New macro.
3600 (PARSE_CHARACTER_SEQ): New macro.
3601 (PARSE_MULTIBYTE_SEQ): New macro.
3602 (CHAR_PRINTABLE_P): New macro.
3603 (STRING_CHAR): Adjusted for the change of string_to_non_ascii_char.
3604 (STRING_CHAR_AND_LENGTH): Likewise.
3605 (STRING_CHAR_AND_CHAR_LENGTH): Define it as STRING_CHAR_AND_LENGTH.
3606 (INC_POS): Use the macro PARSE_MULTIBYTE_SEQ.
3607 (DEC_POS, BUF_INC_POS, BUF_DEC_POS): Likewise,
3608
3609 * charset.c (SPLIT_COMPOSITE_SEQ): New macro.
3610 (SPLIT_CHARACTER_SEQ): New macro.
3611 (SPLIT_MULTIBYTE_SEQ): New macro.
3612 (CHAR_COMPONENT_VALID_P): New macro.
3613 (non_ascii_char_to_string): Generate a multibyte sequence as far
3614 as possible.
3615 (string_to_non_ascii_char): The 4th arg exclude_tail_garbage is
3616 deleted. Caller changed. Use the macro SPLIT_MULTIBYTE_SEQ.
3617 (split_non_ascii_string): Likewise.
3618 (multibyte_form_length): Use the macro PARSE_MULTIBYTE_SEQ.
3619 (char_printable_p): New function.
3620 (translate_char): Check character by NATNUMP instead of INTEGERP.
3621 (unibyte_char_to_multibyte): Call char_valid_p instead of
3622 VALID_MULTIBYTE_CHAR_P.
3623 (Fmake_char_internal): Check the arguments more rigidly.
3624 (Fcharset_after): Use the macro SPLIT_MULTIBYTE_SEQ.
3625 (char_valid_p): Check the validity by CHAR_COMPONENT_VALID_P.
3626 (Fmultibyte_char_to_unibyte): Check the validity of character by
3627 CHAR_VALID_P.
3628 (chars_in_text): Call multibyte_chars_in_text.
3629 (multibyte_chars_in_text): Use the macro PARSE_MULTIBYTE_SEQ.
3630 (Fcompose_string): Use the macro STRING_CHAR_AND_LENGTH instead of
3631 STRING_CHAR_AND_CHAR_LENGTH (which is obsolete now).
3632
3633 * data.c (Faset): Adjust the way to check byte-combining
3634 possibility for the new handling of multibyte sequence.
3635
3636 * editfns.c (Fsubst_char_in_region): Likewise.
3637
3638 * fns.c (count_combining): Use the macro PARSE_MULTIBYTE_SEQ.
3639 (string_char_to_byte): Likewise.
3640 (string_byte_to_char): Likewise.
3641
3642 * indent.c (MULTIBYTE_BYTES_WIDTH): Delete the 2nd arg C. Use the
3643 macro STRING_CHAR_AND_LENGTH. Caller changed.
3644
3645 * insdel.c (count_combining_composition): New function.
3646 (count_combining_before): Adjust the way to check byte-combining
3647 possibility for the new handling of multibyte sequence. Call
3648 count_combining_composition for a composite character.
3649 (count_combining_after): Likewise.
3650
3651 * print.c (print_string): Use the macro STRING_CHAR_AND_LENGTH.
3652 (print): Likewise.
3653
3654 * dispextern.h (struct it): Change the size of the member
3655 `ctl_chars'.
3656
3657 * xdisp.c (get_next_display_element): Display incomplete multibyte
3658 sequence (e.g. \222\300) by octal form.
3659
36601999-09-02 Gerd Moellmann <gerd@gnu.org>
3661
3662 * xterm.h (VERTICAL_SCROLL_BAR_WIDTH_TRIM): Change from 2 to 0.
3663
3664 * fns.c (Fhash_table_weakness): Replaces Fhash_table_weak.
3665 (cmpfn_eql, sxhash): Use XFLOAT_DATA.
3666
36671999-09-02 Gerd Moellmann <gerd@gnu.org>
3668
3669 * buffer.c (set_buffer_internal): Never set
3670 windows_or_buffers_changed.
3671
3672 * xdisp.c (try_window_id): Reset first_unchanged_at_end_row
3673 if we have displayed to the bottom of the window.
3674
3675 * syntax.c (Fforward_word): Stop at a mini-buffer prompt end
3676 in both directions. Extend documentation.
3677
36781999-09-01 Gerd Moellmann <gerd@gnu.org>
3679
3680 * minibuf.c (read_minibuf): Flush display after setting cursor to
3681 column 0.
3682
36831999-08-31 Gerd Moellmann <gerd@gnu.org>
3684
3685 * s/freebsd.h (__FreeBSD_version): Don't define it if it is
3686 already defined. This avoids a warning from buffer.c.
3687
36881999-08-30 Gerd Moellmann <gerd@gnu.org>
3689
3690 * xterm.h (FRAME_X_FLAGS_AREA_COLS): Define it as the total width
3691 of both margins.
3692 (FRAME_X_FLAGS_AREA_WIDTH): Likewise.
3693 (FRAME_X_LEFT_FLAGS_AREA_WIDTH): New.
3694 (FRAME_X_RIGHT_FLAGS_AREA_WIDTH): New.
3695
3696 * frame.h (FRAME_WINDOW_WIDTH_ARG): Add in FRAME_FLAGS_AREA_COLS
3697 once instead of twice.
3698 (FRAME_LEFT_FLAGS_AREA_WIDTH): New.
3699
3700 * xterm.c: Remove unused bitmaps.
3701 (continued_bits, continuation_bits, overlay_bits): Change images.
3702 (x_draw_vertical_border): Use FRAME_X_RIGHT_FLAGS_AREA_WIDTH
3703 instead of FRAME_X_FLAGS_AREA_WIDTH.
3704 (x_after_update_window_line): Ditto.
3705 (x_draw_bitmap): Likewise.
3706 (x_draw_row_bitmaps): Likewise.
3707 (x_draw_glyph_string_box): Likewise.
3708 (x_draw_glyphs): Likewise.
3709 (x_scroll_run): Likewise.
3710 (expose_window_tree): Likewise.
3711 (note_mode_line_highlight): Likewise.
3712 (XTset_vertical_scroll_bar): Likewise.
3713 (x_clip_to_row): Likewise.
3714 (x_set_window_size): Likewise.
3715
3716 * xfns.c (x_figure_window_size): Use FRAME_FLAGS_AREA_COLS instead
3717 of 2 * that value.
3718
3719 * xdisp.c (window_box_width): Use FRAME_FLAGS_AREA_COLS instead of
3720 2 * that value.
3721 (window_box_left): Use FRAME_LEFT_FLAGS_AREA_WIDTH instead of
3722 FRAME_FLAGS_AREA_WIDTH.
3723
3724 * window.c (coordinates_in_window): Use
3725 FRAME_LEFT_FLAGS_AREA_WIDTH instead of FRAME_FLAGS_AREA_WIDTH.
3726 (window_internal_width): Subtract FRAME_FLAGS_AREA_WIDTH once
3727 instead of twice.
3728
3729 * widget.c (set_frame_size): Set flags_area_extra to
3730 FRAME_FLAGS_AREA_WIDTH instead of 2 * that width.
3731 (EmacsFrameSetCharSize): Ditto.
3732
3733 * dispnew.c (mode_line_string): Add FRAME_LEFT_FLAGS_AREA_WIDTH
3734 instead of FRAME_FLAGS_AREA_WIDTH.
3735
3736 * dispextern.h (WINDOW_DISPLAY_PIXEL_WIDTH): Subtract
3737 FRAME_FLAGS_AREA_COLS once.
3738 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X): Add
3739 FRAME_LEFT_FLAGS_AREA_WIDTH instead of FRAME_FLAGS_AREA_WIDTH.
3740
37411999-08-30 Gerd Moellmann <gerd@gnu.org>
3742
3743 * freebsd.h (C_SWITCH_SYSTEM): Added to let configure find headers
3744 in /usr/X11R6/include which are checked for with AC_CHECK_HEADER.
3745
37461999-08-30 Gerd Moellmann <gerd@gnu.org>
3747
3748 * fns.c (QCweakness): Replaces QCweak.
3749 (Fmake_hash_table): Ditto.
3750 (Fmakehash): Ditto.
3751 (syms_of_fns): Ditto.
3752
37531999-08-29 Richard Stallman <rms@gnu.org>
3754
3755 * search.c (compile_pattern_1): Enable RE_CHAR_CLASSES for regexp.
3756
3757 * sysdep.c (read_input_waiting): Pass read_socket_hook just 4 args.
3758
3759 * syntax.h (SYNTAX_COMMENT_NESTED, SYNTAX_FLAGS_COMMENT_NESTED):
3760 Add support for nested comments.
3761
863476d1
SM
3762 * syntax.c (Fforward_comment, scan_lists, scan_sexps_forward):
3763 Consolidate the forward comment code into the new `forw_comment'.
3764 (forw_comment): New subroutine. Added support for nested comments.
3765 (lisp_parse_state, back_comment, Fmodify_syntax_entry)
3766 (Fparse_partial_sexp): Add support for nested comments.
26901792
DL
3767
37681999-08-28 Ken Raeburn <raeburn@gnu.org>
3769
3770 * lisp.h (struct Lisp_Cons, XCAR, XCDR, struct Lisp_Float): Change
3771 names of structure elements if HIDE_LISP_IMPLEMENTATION is
3772 defined, to help detect code that uses knowledge of the Lisp
3773 internals that it shouldn't have.
3774 (XFLOAT_DATA): New macro.
3775
37761999-08-25 Gerd Moellmann <gerd@gnu.org>
3777
3778 * syntax.c (Fforward_word): If in a mini-buffer and moving
3779 backwards, stop in front of the prompt to prevent accidentially
3780 moving into the read-only prompt.
3781
3782 * window.c (Frecenter): Clear frame if called with nil or no arg.
3783
3784 * xdisp.c (resize_mini_window): Don't resize if
3785 Vmax_mini_window_height is nil. Otherwise, use a default if
3786 Vmax_mini_window_height is not ot a number.
3787 (syms_of_xdisp): Extend documentation of Vmax_mini_window_height.
3788
37891999-08-25 Alexandre Oliva <oliva@dcc.unicamp.br>
3790
3791 * unexelf.c: Merge IRIX debugging info patch from unexsgi.c
3792 * m/iris4d.h: Use unexelf for IRIX 5.*.
3793 * m/iris5d.h: Use unexelf for IRIX 6.*.
3794 * unexsgi.c: Deleted.
3795
3796 * unexelf.c: Auto-detect .sbss section.
3797 (round_up): Make it static.
3798 (unexec): Declare alignment as Elf Word. Skip ``Program
3799 segment above .bss'' test on MIPS without .sbss.
3800 Copy sections .got and .sdata1 sections. Adjust offsets in
3801 sections .sdata, .lit4, .lit8, .got and .sdata1.
3802
38031999-08-25 Gerd Moellmann <gerd@gnu.org>
3804
3805 * xdisp.c (try_window_id): Remove typo.
3806
38071999-08-24 Gerd Moellmann <gerd@gnu.org>
3808
3809 * xdisp.c (try_window_id): Recognize case that PT == ZV and in
3810 unchanged text at the bottom when computing the cursor position.
3811 (message3_nolog): Raise frame only if minibuffer_auto_raise is
3812 set.
3813
3814 * lisp.h (PVEC_TYPE_MASK): Add the bit for hash tables.
3815
38161999-08-24 Gerd Moellmann <gerd@gnu.org>
3817
3818 * xfaces.c (Qmargin): Replacement for Qbitmap_area.
3819 (realize_basic_faces): Replace Qmargin for Qbitmap_area.
3820 (syms_of_xfaces): Ditto.
3821
3822 * window.c (Fset_window_point): Reset Vresize_mini_config.
3823 (Fset_window_start): Ditto.
3824 (set_window_buffer): Ditto.
3825
3826 * dispnew.c (adjust_frame_glyphs): Reset Vresize_mini_config.
3827
3828 * xdisp.c (redisplay_window): Don't ever test just_this_one_p
3829 before calling try_window.
3830 (echo_area_display): If height has changed, update other windows.
3831 (resize_mini_frame, resize_mini_initial_height): New.
3832 (resize_mini_window): Save/restore window configuration
3833 differently.
3834
3835 * lisp.h (Vresize_mini_config, resize_mini_frame,
3836 resize_mini_initial_height): Add extern declarations.
3837
3838 * xterm.c (expose_window_tree): Fix typo CANON_Y_UNIT to
3839 CANON_X_UNIT.
3840
3841 * xfns.c [HAVE_JPEG]: Work around a warning about HAVE_STDLIB_H
3842 being redefined in jconfig.h.
3843
38441999-08-23 Ken'ichi Handa <handa@gnu.org>
3845
3846 * coding.h: Include "ccl.h" instead of "../src/ccl.h".
3847
38481999-08-22 Gerd Moellmann <gerd@gnu.org>
3849
3850 * alloc.c (mark_glyph_matrix): Mark strings only.
3851
3852 * xdisp.c (redisplay_internal): Clear garbaged frames after
3853 resizing mini-window.
3854
38551999-08-22 Gerd Moellmann <gerd@gnu.org>
3856
3857 * xdisp.c (unwind_with_echo_area_buffer): Use
3858 set_buffer_internal_1 instead of set_buffer_internal.
3859 (with_echo_area_buffer): Ditto.
3860
3861 * buffer.c (set_buffer_internal): Set windows_or_buffers_changed
3862 only if buffer is displayed somewhere.
3863
3864 * buffer.h (BUF_COMPUTE_UNCHANGED): New.
3865
3866 * insdel.c (gap_left): Use BUF_COMPUTE_UNCHANGED.
3867 (gap_right): Ditto.
3868 (modify_region): Ditto.
3869
3870 * buffer.c (modify_overlay): Use BUF_COMPUTE_UNCHANGED.
3871
3872 * xdisp.c (Vresize_mini_config): New.
3873 (resize_mini_window): Use it to save restore original window
3874 configuration
3875 (syms_of_xdisp): Initialize it.
3876
3877 * buffer.h (struct buffer): Add prevent_redisplay_optimizations_p.
3878
3879 * dispextern.h (struct glyph_matrix): Add buffer, begv, and zv.
3880
3881 * xdisp.c (reconsider_clip_changes): New.
3882 (redisplay_internal, redisplay_window): Call it.
3883 (mark_window_display_accurate, redisplay_internal): Set current
3884 matrix' buffer, begv, zv.
3885
3886 * window.c (Fset_window_hscroll): Set
3887 prevent_redisplay_optimizations_p instead of clip_changed.
3888 (Fset_window_hscroll): Ditto.
3889 (temp_output_buffer_show): Ditto.
3890 (Fset_window_vscroll): Ditto.
3891
3892 * buffer.c (reset_buffer): Set clip_changed to 0 and
3893 prevent_redisplay_optimizations_p to 1.
3894 (Fget_buffer_create): Set prevent_redisplay_optimizations_p to 1.
3895
3896 * buffer.h (BUF_UNCHANGED_MODIFIED, UNCHANGED_MODIFIED,
3897 BUF_OVERLAY_UNCHANGED_MODIFIED, OVERLAY_UNCHANGED_MODIFIED,
3898 BUF_BEG_UNCHANGED, BEG_UNCHANGED, BUF_END_UNCHANGED,
3899 END_UNCHANGED): New.
3900 (struct buffer_text): Add beg_unchanged, end_unchanged,
3901 unchanged_modified, overlay_unchanged_modified.
3902
3903 * window.h (beg_unchanged, end_unchanged, unchanged_modified,
3904 overlay_unchanged_modified): Removed.
3905 (with_echo_area_unwind_data): Don't save beg/end_unchanged.
3906 (unwind_with_echo_area_buffer): Don't restore them.
3907 (debug_beg_unchanged, debug_end_unchanged) [GLYPH_DEBUG]: Removed.
3908 (text_outside_line_unchanged_p, redisplay_internal,
3909 try_scrolling): Use/set buffer-specific beg/end_unchanged.
3910 (redisplay_window): Let try_window_id be called if more than one
3911 window is displayed. Use/set buffer-specific beg/end_unchanged.
3912 (get_last_unchanged_at_beg_row, get_first_unchanged_at_end_row,
3913 try_window_id):
3914 Use buffer-specific beg/end_unchanged.
3915
3916 * window.h (beg_unchanged, end_unchanged, unchanged_modified,
3917 overlay_unchanged_modified): Remove extern declarations.
3918
3919 * keyboard.c (command_loop_1): Set beg/end_unchanged per
3920 buffer.
3921
3922 * insdel.c (gap_left): Compute beg/end_unchanged per buffer.
3923 (gap_right): Ditto.
3924 (adjust_after_replace): Likewise.
3925 (replace_range, del_range_2, modify_region): Likewise.
3926
3927 * dispnew.c (direct_output_for_insert): Set beg_unchanged
3928 and unchanged_modified per buffer.
3929
3930 * coding.c (code_convert_region): Compute beg/end_unchanged per
3931 buffer.
3932
3933 * buffer.c (modify_overlay): Compute beg/end_unchanged
3934 per buffer.
3935 (Fget_buffer_create): Initialize new members of the buffer
3936 structure.
3937
39381999-08-22 Gerd Moellmann <gerd@gnu.org>
3939
3940 * lisp.h: Add prototype for copy_hash_table and Fcopy_hash_table.
3941
3942 * fns.c (Qkey, Qvalue): Renamed from Qkey_weak, and Qvalue_weak.
3943 (Qkey_value_weak): Removed.
3944 (make_hash_table): Use nil, `key', `value', t for weakness.
3945 (Fmake_hash_table): Ditto.
3946 (copy_hash_table): New.
3947 (Fcopy_hash_table): New.
3948
39491999-08-22 Gerd Moellmann <gerd@gnu.org>
3950
3951 * xfns.c: Call change_frame_size and do_pending_window_change with
3952 new parameter.
3953
39541999-08-21 Gerd Moellmann <gerd@gnu.org>
3955
3956 * xdisp.c (resize_mini_window): Do it for truncate-lines t as
3957 well.
3958 (redisplay_internal): Resize mini-window only if text might
3959 have changed.
3960 (display_echo_area): Reset displayed echo_area_buffer to nil
3961 at the end if we're displaying a nil message.
3962
39631999-08-21 Gerd Moellmann <gerd@gnu.org>
3964
3965 * fns.c (hash_lookup): Test with EQ before calling key comparion
3966 function.
3967 (hash_remove): Ditto.
3968 (cmpfn_eq): Removed.
3969 (cmpfn_eql): Don't test with EQ.
3970 (cmpfn_equal): Ditto.
3971 (make_hash_table): Set comparison function for `eq' to null.
3972
3973 * buffer.c, cmds.c, editfns.c, indent.c, insdel.c, buffer.h:
3974 Remove conditional compilation on NO_PROMPT_IN_BUFFER.
3975
3976 * dispextern.h (NO_PROMPT_IN_BUFFER): Removed.
3977
3978 * window.c, widget.c, process.c, keyboard.c, frame.c, xdisp.c,
3979 xterm.c: Call change_frame_size and do_pending_window_change with
3980 new parameter.
3981
3982 * dispnew.c (do_pending_window_change): Add parameter `safe'.
3983 (change_frame_size): Ditto.
3984 (change_frame_size_1): Ditto. Deley size changes if redisplaying
3985 and not called from a safe place.
3986 (window_change_signal): Call change_frame_size with new parameter.
3987
3988 * dispextern.h: Change prototypes for do_pending_window_change
3989 and change_frame_size.
3990
3991 * xfaces.c (face_at_buffer_position): Don't xassert that
3992 window's buffers equals current_buffer; this is not the
3993 case during echo area display.
3994
39951999-08-21 Gerd Moellmann <gerd@gnu.org>
3996
3997 * xdisp.c, minibuf.c: Remove conditional compilation on
3998 NO_PROMPT_IN_BUFFER.
3999
4000 * minibuf.c (Fminibuffer_prompt_end): New.
4001 (syms_of_minibuf): Defsubr it. Remove
4002 minibuffer-prompt-in-buffer.
4003 (Fminibuffer_prompt_width): Return 0 if not in mini-buffer.
4004 Extend documentation.
4005
4006 * xdisp.c (get_next_display_element): Display \r as ^M.
4007
4008 * xterm.c (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]: Clear
4009 under scroll bar widget.
4010
40111999-08-21 Gerd Moellmann <gerd@gnu.org>
4012
4013 * xdisp.c (minibuffer_scroll_overlap): Removed because not used
4014 anywhere.
4015 (unwind_redisplay): Return nil.
4016 (clear_garbaged_frames): New.
4017 (redisplay_internal): Use it.
4018 (echo_area_display): Ditto.
4019 (resize_mini_window): Mew.
4020 (display_echo_area_1): Use it to resize echo area window.
4021 (redisplay_internal): Use it to resize active mini-window.
4022
4023 * dispextern.h, lisp.h: Add function prototypes.
4024
4025 * dispnew.c (set_window_cursor_after_update): Do the
4026 cursor_in_echo_area case only for a mini-window showing
4027 a message. Don't let cursor end up after the end of a row.
4028
4029 * xdisp.c (echo_area_glyphs, echo_area_message,
4030 echo_area_glyphs_length, previous_echo_glyphs,
4031 previous_echo_area_message, previous_echo_area_glyphs_length):
4032 Removed.
4033 (Vmessage_stack, echo_area_buffer, echo_buffer,
4034 display_last_displayed_message_p, Vwith_echo_area_save_vector): New.
4035 (message2_nolog): Use set_message and clear_message.
4036 (message3): Rename parameter len to nbytes to make clear what
4037 it is.
4038 (message3_nolog): Ditto. Use set_message and clear_message.
4039 (update_echo_area): Rewritten.
4040 (with_echo_area_buffer): New.
4041 (with_echo_area_buffer_unwind_data, unwind_with_area_buffer): New.
4042 (setup_echo_area_for_printing): New.
4043 (display_echo_area, display_echo_area_1): New.
4044
4045 (current_message, current_message_1): New.
4046 (push_message, restore_message, pop_message,
4047 check_message_stack): New.
4048 (truncate_echo_area): Rewritten.
4049 (truncate_message_1): New.
4050 (set_message, set_message_1, clear_message): New.
4051 (echo_area_display): Rewritten.
4052 (redisplay_internal): Check for needed echo area update
4053 differently.
4054 (redisplay_preserve_echo_area): Rewritten.
4055 (redisplay_window): Check for mini-window displaying echo area
4056 message differently.
4057 (syms_of_xdisp): Initialize Vmessage_stack and echo area buffers.
4058 Remove initialzation of removed variables.
4059 (init_xdisp): Remove references to removed variables.
4060
4061 * dispnew.c (adjust_frame_message_buffer): Removed references
4062 to echo_area_glyphs and previous_echo_glyphs.
4063 (direct_output_for_insert): Check for mini-window displaying
4064 echo area message differently.
4065 (update_frame): Likewise.
4066 (set_window_cursor_after_update): Likewise. In echo area,
4067 don't try to set cursor on rows that aren't enabled.
4068
4069 * print.c: Remove conditional compilation on `standalone'.
4070 (glyph_len, str_to_glyph_cpy, str_to_glyph_ncpy,
4071 glyph_to_str_cpy): Remove that section because GLYPHs are no
4072 longer used in that way.
4073 (PRINTDECLARE): Add multibyte.
4074 (PRINTPREPARE, PRINTFINISH): Handle printcharfun t differently.
4075 (printbufidx): Removed.
4076 (printchar, strout): Rewritten.
4077
4078 * keyboard.c (ok_to_echo_at_next_pause): Make it a pointer to
4079 a struct kboard.
4080 (echo_kboard): New.
4081 (echo_now): Set echo_kboard to the current kboard.
4082 (cancel_echoing): Set echo_kboard to null.
4083 (cmd_error_internal): Use clear_message, remove references
4084 to echo_area_glyphs and echo_area_message.
4085 (command_loop_1): Check for echo area messages differently.
4086 (read_char): Likewise.
4087 (record_menu_key): Use clear_message.
4088 (Fexecute_extended_command): Check for echo area messages
4089 differently. Use push_message, restore_message, pop_message.
4090
4091 * alloc.c (Fgarbage_collect): Use push_message, restore_message,
4092 pop_message.
4093
4094 * emacs.c (shut_down_emacs): Call check_message_stack.
4095
4096 * lisp.h: Add function prototypes and extern declarations for
4097 new functions and variables.
4098
4099 * fileio.c (Fdo_auto_save): Use push_message, restore_message,
4100 pop_message.
4101
4102 * minibuf.c (read_minibuf): Use clear_message instead of
4103 setting echo_area_glyphs.
4104 (Fminibuffer_completion_help): Ditto.
4105
4106 * editfns.c (Fcurrent_message): Rewritten.
4107
4108 * frame.c, window.h: Remove references to echo_area_glyphs
4109 and previous_echo_glyphs.
4110
41111999-08-21 Dave Love <fx@gnu.org>
4112
4113 * aix3-2-5.h (C_DEBUG_SWITCH): Use -g -O.
4114 * aix4-1.h: Likewise.
4115
4116 * irix6-5.h (C_DEBUG_SWITCH): Set for debug and optimize.
4117
41181999-08-20 Gerd Moellmann <gerd@gnu.org>
4119
4120 * xfns.c: Remove tiff34 prefix from include.
4121
41221999-08-20 Dave Love <fx@gnu.org>
4123
4124 * cm.c: Revert previous change.
4125
41261999-08-19 Gerd Moellmann <gerd@gnu.org>
4127
4128 * xterm.c (XTset_vertical_scroll_bar): Fix previous change. Clear
4129 under scroll bar with width FRAME_SCROLL_BAR_COLS.
4130
41311999-08-18 Dave Love <fx@gnu.org>
4132
4133 * callproc.c, filelock.c, insdel.c, sysdep.c, xmenu.c: Use
4134 stdlib.h.
4135
4136 * doprnt.c: Use stdlib.h, unistd.h.
4137
4138 * config.in: Add HAVE_TERMCAP_H.
4139
4140 * cm.c: Use termcap.h.
4141
41421999-08-18 Gerd Moellmann <gerd@gnu.org>
4143
4144 * xfns.c (x_window) [USE_X_TOOLKIT]: Remove test for
4145 FRAME_X_WINDOW (f) being null at the of the function. If widgets
4146 cannot be created we will already have crashed earlier. Call
4147 lw_set_main_areas with a null menu-bar widget, so that we have
4148 a reasonable default.
4149 (Fx_create_frame): Rearranged so that Lisp errors during frame
4150 initialization cause less damage. Initialize menu bar widget
4151 here.
4152
41531999-08-18 Gerd Moellmann <gerd@gnu.org>
4154
4155 * dispnew.c (update_frame_line): Fix previous change. If writing
4156 whole line clear to end of frame.
4157
41581999-08-17 Gerd Moellmann <gerd@gnu.org>
4159
4160 * window.c (Fcoordinates_in_window_p): Return `left-bitmap-area'
4161 and `right-bitmap-area' if position is in the bitmap areas. This
4162 avoids an error when clicking on the bitmap areas. Instead, they
4163 are currently treated like clicks inside the window.
4164 (coordinates_in_window): Return 5 and 6 for bitmap areas.
4165 (Qleft_bitmap_area, Qright_bitmap_area): New.
4166 (syms_of_window): Initialize new symbols.
4167
4168 * dispnew.c (update_frame_line): If writing whole line,
4169 don't write trailing spaces unless we must.
4170
4171 * xdisp.c (unwind_redisplay): New. Resets flag redisplaying_p.
4172 (redisplay_internal): Register unwind_redisplay with
4173 register_unwind_protect.
4174 (try_window_reusing_current_matrix): If new start > old start,
4175 give up if start pos of first reusable row is not equal to new
4176 start.
4177
4178 * eval.c (Fsignal): Don't reset redisplaying_p here.
4179
4180 * xterm.c (expose_area): If row extends face to end of line,
4181 write the whole line.
4182
41831999-08-16 Gerd Moellmann <gerd@gnu.org>
4184
4185 * dispextern.h (struct it): Remove member
4186 show_trailing_whitespace_p.
4187
4188 * dispnew.c (direct_output_for_insert): Use
4189 Vshow_trailing_whitespace instead of former iterator member
4190 show_trailing_whitespace_p.
4191 (direct_output_forward_char): Don't do it if hightlighting
4192 trailing whitespace.
4193
4194 * xdisp.c (Qshow_trailing_whitespace): Removed.
4195 (Vshow_trailing_whitespace): Added.
4196 (init_iterator): Remove initialization code for
4197 show_trailing_whitespace_p.
4198 (redisplay_internal): Don't try cursor movement in this_line
4199 if showing trailing whitespace.
4200 (redisplay_window): Likewise for cursor movement in current
4201 matrix and try_window_id.
4202 (try_window_reusing_current_matrix): Likewise.
4203 (trailing_whitespace_p): Return 0 if trailing whitespace is
4204 in front of point.
4205 (display_line): Use Vshow_trailing_whitespace instead of
4206 former iterator member show_trailing_whitespace_p.
4207 (syms_of_xdisp): Add DEFVAR_LISP for show-trailing-whitespace.
4208
42091999-08-16 Gerd Moellmann <gerd@gnu.org>
4210
4211 * window.c (Fpos_visible_in_window_p): Rewritten.
4212
4213 * xfaces.c (add_to_log): Renamed from display_message.
4214 Don't display messages in echo area.
4215
4216 * xterm.c (x_draw_glyph_string_box): Use the background width
4217 of the glyph string for the width of the box.
4218
42191999-08-16 Stefan Monnier <monnier@cs.yale.edu>
4220
4221 * syntax.c (Fforward_comment): Set comstyle for Scomment_fence.
4222
42231999-08-16 Geoff Voelker <voelker@cs.washington.edu>
4224
4225 * xfns.c, w32fns.c (x_set_frame_parameters): Set foreground and
4226 background first, and then set other parameters that might
4227 depend upon their new values.
4228
42291999-08-15 Gerd Moellmann <gerd@gnu.org>
4230
4231 * xfaces.c (Vfont_list_limit): New.
4232 (syms_of_xfaces): Make it a user-variable.
4233 (DEFAULT_FONT_LIST_LIMIT): New.
4234 (sorted_font_list): If Vfont_list_limit is an integer > 0, list
4235 maximally that number of fonts, otherwise use
4236 DEFAULT_FONT_LIST_LIMIT.
4237 (Fx_font_family_list): Bind `font-list-limit' to higher values
4238 until we have all fonts.
4239 (Fxfont_list): Additionally return the full names of fonts and
4240 their registry and encoding.
4241
4242 * xterm.c (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
4243 Simplify clearing "under" scroll bar.
4244
4245 * window.c (Qfixed_window_size): New.
4246 (syms_of_window): Initialiaze it.
4247 (check_all_windows): Add return type void.
4248 (window_fixed_size_p): New. Return non-zero if window
4249 is fixed-size.
4250 (window_min_size_1): New.
4251 (window_min_size): Handle fixed-size windows.
4252 (size_window): New. Rewritten combination of set_window_height and
4253 set_window_width that handles fixed-size windows.
4254 (set_window_height): Call it.
4255 (set_window_width): Call it.
4256 (Fsplit_window): Give an error on attempt to split a fixed-size
4257 window.
4258 (change_window_height): Partly rewritten to handle fixed-size
4259 windows.
4260
42611999-08-13 Wolfgang Rupprecht <wolfgang@wsrcc.com>
4262
4263 * process.c (Fopen_network_stream): Fix previous change.
4264
42651999-08-13 Karl Heuer <kwzh@gnu.org>
4266
4267 * xdisp.c (line_number_display_limit_width): New var.
4268 (decode_mode_spec): Use it instead of hardcoded value.
4269 (syms_of_xdisp): Defvar it.
4270
42711999-08-13 Richard M. Stallman <rms@gnu.org>
4272
4273 * eval.c (run_hook_list_with_args): Gcpro `globals'.
4274 (run_hook_with_args): Likewise.
4275
4276 * window.h (struct window): New field too_small_ok.
4277
4278 * window.c (set_window_height, set_window_width):
4279 If window starts out "too small", set its too_small_ok flag.
4280 If window's too_small_ok flag is set, don't delete it
4281 unless it is so small it would cause a crash.
4282
42831999-08-13 Gerd Moellmann <gerd@gnu.org>
4284
4285 * window.c (MINSIZE): Removed.
4286 (window_min_size): New.
4287 (set_window_height): Use window_min_size.
4288 (change_window_height): Ditto.
4289
42901999-08-12 Gerd Moellmann <gerd@gnu.org>
4291
4292 * indent.c (vmotion): Don't add in mini-buffer prompt width
4293 if prompts are inserted into mini-buffer.
4294
42951999-08-12 Wolfgang Rupprecht <wolfgang@wsrcc.com>
4296
4297 * config.in: Add HAVE_GETADDRINFO.
4298 * process.c (Fopen_network_stream): Use getaddrinfo.
4299
43001999-08-11 Gerd Moellmann <gerd@gnu.org>
4301
4302 * xdisp.c (get_overlay_arrow_glyph_row): Set the charpos of
4303 glyphs to -1.
4304
4305 * xdisp.c (face_before_or_after_it_pos): If position after
4306 or before iterator's current position in the buffer is out
4307 of bounds, return the iterator's original face id.
4308
4309 * dispnew.c (mirror_make_current): If desired row isn't enabled,
4310 just swap glyphs pointers between current and desired row.
4311 (build_frame_matrix_from_leaf_window) [GLYPH_DEBUG]: Copy
4312 desired matrix method string to current matrix.
4313
43141999-08-11 Kenichi Handa <handa@etl.go.jp>
4315
4316 * lisp.h (CHAR_MODIFIER_MASK): New macro.
4317
4318 * lread.c (read_escape): For Control modifier, pay attention to
4319 multibyte character.
4320 (read1): Likewise. Singal error or a multibyte character which
4321 has a modifer bit. Check validity of Shift modifer.
4322
4323 * charset.c (non_ascii_char_to_string): Handle modifier bits as
4324 the same as Lisp reader.
4325
43261999-08-10 Richard M. Stallman <rms@gnu.org>
4327
4328 * charset.h (BCOPY_SHORT): Fix typo `unsigined'.
4329
43301999-08-10 Alexandre Oliva <oliva@dcc.unicamp.br>
4331
4332 * unexelf.c [__linux__ && __alpha__] (HAS_SBSS_SECTION): Define.
4333
43341999-08-10 Eli Zaretskii <eliz@gnu.org>
4335
4336 * msdos.c (IT_set_face): Abort if the default face is not realized
4337 and cached.
4338 (IT_write_glyphs): Reset the screen face to the default face
4339 before writing glyphs.
4340
4341 * xfaces.c (realize_default_face) [MSDOS]: Don't take default
4342 colors from the frame here.
4343 (realize_tty_face) [MSDOS]: Do it here. Update the face
4344 attributes with the actual name of the color taken from the
4345 frame.
4346
4347 * dosfns.c (msdos_stdcolor_name): Remove const from return value.
4348 * dosfns.h (msdos_stdcolor_name): Ditto for the prototype.
4349
4350 * frame.c (Fframe_parameters): Swap foreground and background
4351 colors returned in frame parameters if the frame has reverse in
4352 its parameter alist.
4353 (Fmake_terminal_frame): Make a unique copy of face_alist for
4354 each frame.
4355
43561999-08-07 Richard Stallman <rms@gnu.org>
4357
4358 * buffer.c (Fprevious_overlay_change): Just return
4359 the answer obtained from overlays_at.
4360
4361 * xfns.c (xpm_load) [!XpmAllocCloseColors]:
4362 Use XpmCloseness and attrs.closeness instead.
4363
43641999-08-06 Richard Stallman <rms@gnu.org>
4365
4366 * lread.c (Feval_buffer): New arg DO_ALLOW_PRINT.
4367
43681999-08-06 Geoff Voelker <voelker@cs.washington.edu>
4369
4370 * dired.c (directory_files_internal, Fdirectory_files_and_attributes,
4371 Ffile_attributes_lessp): New functions.
4372 (Fdirectory_files): Use directory_files_internal.
4373 (syms_of_dired): Initialize Fdirectory_files_and_attributes,
4374 Ffile_attributes_lessp.
4375
4376 * w32.c (stat): Check for directory ending in separator when
4377 doing readdir fast path.
4378
4379 * w32fns.c (x_set_icon_type): Support setting frame icons.
4380 * w32term.c (x_bitmap_icon): New function.
4381 (x_make_frame_visible, x_iconify_frame): Invoke x_bitmap_icon.
4382
43831999-08-06 Gerd Moellmann <gerd@gnu.org>
4384
4385 * xdisp.c (set_iterator_to_next): After delivering a character
4386 from a display vector, restore face and charset to what they were
4387 before the display vector was processed.
4388
43891999-08-06 Gerd Moellmann <gerd@gnu.org>
4390
4391 * xdisp.c (reseat_at_next_visible_line_start): New parameter
4392 on_newline_p.
4393 (set_iterator_to_next): After delivering last char
4394 from display vector, reseat on next visible line start if
4395 dpvec_char_len < 0.
4396 (next_element_from_buffer): Set dpvec_char_len to -1 for
4397 selective display.
4398
43991999-08-06 Gerd Moellmann <gerd@gnu.org>
4400
4401 * xdisp.c (compute_line_metrics): If first line's physical ascent
4402 is larger than its logical ascent, use the physical ascent, and
4403 make the row taller. Set row's overlapping_p flag.
4404
4405 * dispnew.c (redraw_overlapping_rows): Use flag overlapping_p.
4406 (direct_output_for_insert): Ditto.
4407
4408 * dispextern.h (struct glyph_row): Add overlapping_p.
4409
4410 * xterm.c (x_draw_phys_cursor_glyph): Redraw overlaps.
4411
4412 * dispextern.h (MATRIX_ROW_OVERLAPS_PRED_P): New.
4413 (MATRIX_ROW_OVERLAPS_SUCC_P): New.
4414
4415 * dispnew.c (direct_output_for_insert): Don't use this method if
4416 row is overlapped by others.
4417 (update_text_area): Write full line if current line is overlapped.
4418 (redraw_overlapped_rows): New.
4419 (update_window): Call it.
4420 (redraw_overlapping_rows): New.
4421 (update_window): Call it.
4422 (scrolling_window): Make sure overlapped_p flag in current rows is
4423 unchanged.
4424 (row_equal_p): Take rows overlapped_p flag into account.
4425
4426 * dispextern.h (struct glyph_row): Add flag overlapped_p.
4427
4428 * xterm.c (x_fix_overlapping_area): New.
4429 (x_redisplay_interface): Add x_fix_overlapping_area.
4430
4431 * dispnew.c (adjust_glyphs): Block input while adjusting matrices.
4432
44331999-08-06 Gerd Moellmann <gerd@gnu.org>
4434
4435 * xterm.c (x_draw_glyphs): Add parameter overlaps_p.
4436 (struct glyph_string): Add member for_overlaps_p.
4437 (x_get_glyph_string_clip_rect): If glyph string draws foreground
4438 of overlapping rows, clip to window bottom.
4439 (x_fill_glyph_string): Add parameter overlaps_p.
4440 (x_fill_composite_glyph_string): Ditto.
4441 (BUILD_GLYPH_STRINGS): Ditto.
4442 (BUILD_CHAR_GLYPH_STRINGS): Ditto.
4443 (x_draw_glyph_string): Don't draw anything but the foreground
4444 if glyph string draws row overlaps.
4445
4446 * dispnew.c (direct_output_for_insert): Don't use this
4447 optimization for rows that overlap others.
4448 (update_window_line): Return non-zero if display has changed.
4449 (update_text_area): Ditto.
4450 (update_window): Record if display has been changed.
4451
4452 * dispextern.h (MATRIX_ROW_OVERLAPPING_P): New.
4453
4454 * dispextern.h (struct redisplay_interface): Add
4455 fix_overlapping_area.
4456
4457 * xterm.c (x_append_glyph): Set glyph flag overlaps_vertically_p.
4458
4459 * dispextern.h (struct glyph): Add overlaps_vertically_p.
4460
4461 * xterm.c (x_produce_image_glyph): Compute iterator's physical
4462 ascent and descent.
4463 (x_produce_stretch_glyph): Ditto.
4464 (x_produce_glyphs): Ditto.
4465
4466 * xdisp.c (init_iterator): Reset physical line height info
4467 after producing special glyphs.
4468 (display_toolbar_line): Set physical line height info.
4469 (compute_line_metrics): Ditto.
4470 (display_line): Ditto.
4471 (display_string): Ditto.
4472
4473 * term.c (produce_glyphs): Set iterator's physical height
4474 information.
4475
4476 * dispnew.c (blank_row): Compute glyph row's physical height.
4477 (row_equal_p): Take physical row heights into account.
4478 (direct_output_for_insert): Ditto.
4479 (update_text_area): Ditto.
4480
4481 * dispextern.h (struct glyph_row): Add phys_ascent and
4482 phys_height.
4483 (struct it): Add phys_ascent, phys_descent, max_phys_ascent,
4484 max_phys_descent.
4485
44861999-08-04 Stefan Monnier <monnier@cs.yale.edu>
4487
4488 * buffer.c (switch_to_buffer_1): New subroutine, taken out from
4489 Fswitch_to_buffer.
4490 (no_switch_buffer): New function.
4491 (Fswitch_to_buffer): Call them. Don't get confused
4492 by "same-window" buffers in a dedicated frame.
4493
4494 * window.c (display-buffer): Don't get confused
4495 by "same-window" buffers in a dedicated frame.
4496
44971999-08-04 Andreas Schwab <schwab@gnu.org>
4498
4499 * insdel.c (insert_from_string_1): Check gap size against number
4500 of outgoing bytes, not incoming bytes.
4501
45021999-08-03 Tom Breton <tob@world.std.com>
4503
4504 * lread.c (read1): Added circular reading code to #N=.
4505 (SUBSTITUTE): New macro.
4506 (seen_list): New variable.
4507 (substitute_object_in_subtree): New function.
4508 (substitute_object_recurse): New function.
4509 (substitute_in_interval): New function.
4510
45111999-08-02 Eli Zaretskii <eliz@gnu.org>
4512
4513 * Makefile.in (frame.o, sysdep.o, xfaces.o): Depend on dosfns.h.
4514
4515 * frame.c (make_terminal_frame): Don't call init_frame_faces if
4516 noninteractive, for termcap frames as well.
4517
4518 * sysdep.c (init_sys_modes): Call init_frame_faces for termcap
4519 frames.
4520
45211999-08-01 Richard Stallman <rms@gnu.org>
4522
4523 * fns.c (internal_equal): Correct overlay comparison.
4524
83c8f461 45251999-07-31 Richard M. Stallman <rms@gnu.org>
26901792
DL
4526
4527 * xfns.c (x_set_internal_border_width):
4528 Call do_pending_window_change. Don't block input, don't call XFlush.
4529 (x_set_vertical_scroll_bars): Call do_pending_window_change.
4530 (x_set_scroll_bar_width, x_set_font): Likewise.
4531
4532 * frame.c (Fset_frame_height): Call do_pending_window_change.
4533 (Fset_frame_width, Fset_frame_size): Likewise.
4534
4535 * xterm.c (x_set_window_size): When calling change_frame_size,
4536 specify 1 for DELAY.
4537
4538 * widget.c (EmacsFrameSetCharSize): Don't call
4539 do_pending_window_change here.
4540
45411999-07-30 Dave Love <fx@gnu.org>
4542
4543 * config.in: Add HAVE_STDLIB_H.
4544
45451999-07-30 Richard M. Stallman <rms@gnu.org>
4546
4547 * process.c (create_process): Detect failure of `pipe'.
4548
45491999-07-30 Keisuke Nishida <kei@psn.net>
4550
4551 * alloc.c (allocate_vectorlike): Add missing increment.
4552
4553 * data.c (Fdefalias): Call Ffset instead of duplicating code.
4554
4555 * keymap.c (get_keymap_1, get_keyelt): Check the type of OBJECT
4556 before calling indirect_function.
4557
45581999-07-30 Eli Zaretskii <eliz@gnu.org>
4559
4560 * dispextern.h (load_color, lookup_derived_face): Declare
4561 prototypes.
4562
4563 * dispnew.c (init_display) [MSDOS]: Don't initialize frame faces,
4564 it will be done later.
4565
4566 * frame.c (make_terminal_frame) [MSDOS]: Don't call
4567 init_frame_faces if non-interactive.
4568 (Fframe_parameters) [MSDOS]: Replace indexing into colornames[]
4569 array with a call to msdos_stdcolor_name. The font name is now
4570 "ms-dos", consistent with realize_tty_face.
4571
4572 * keyboard.c (cmd_error_internal): Don't kill Emacs if this is an
4573 MSDOS frame.
4574
4575 * window.c (Fset_window_configuration) [MSDOS]: Don't call
4576 x_set_toolbar_lines.
4577
4578 * xfaces.c (load_color): Remove static from definition and remove
4579 prototype.
4580 [MSDOS]: Add a DOS-specific version of load_color.
4581 (lookup_face): Replace FRAME_TERMCAP_P with !FRAME_WINDOW_P.
4582 (lookup_derived_face): New function.
4583 (realize_default_face): Support MSDOS frames.
4584 [MSDOS]: If fore/background colors are unspecified, inherit them
4585 from the frame.
4586 (realize_face): Support MSDOS frames.
4587 (realize_tty_face): Support MSDOS frames.
4588 [MSDOS]: If the face color is not in Vface_tty_color_alist, call
4589 load_color to try to find a suitable approximation. If the face
4590 is inverse-video, swap the foreground and background colors.
4591
4592 * dosfns.c (msdos_stdcolor_name, msdos_stdcolor_idx): New
4593 functions.
4594
4595 * dosfns.h (msdos_stdcolor_name, msdos_stdcolor_idx): Declare.
4596
4597 * msdos.h: Remove redundant declarations (most of them are now in
4598 dispextern.h).
4599
4600 * msdos.c (IT_set_face): Rewritten for the new redisplay engine.
4601 Use default frame colors if the face doesn't specify them; invert
4602 the colors if highlight is ON.
4603 (IT_write_glyphs): Rewritten for the new redisplay engine.
4604 (IT_change_line_highlight): Add (unused) parameter Y, since that's
4605 how the hook is called by term.c.
4606 (IT_copy_glyphs): New function, copies an area of the display in
4607 video RAM.
4608 (IT_insert_glyphs): Rewritten to DTRT instead of aborting, since
4609 redisplay now calls it even if char_ins_del_ok is zero.
4610 (IT_set_frame_parameters): Prototype changed. Calls the new
4611 load_color. Puts the new fore/background colors into the default
4612 face on current frame.
4613 (IT_menu_display): Rewritten to handle the new struct glyph
4614 instead of a char array.
4615 (XMenuActivate): Call lookup_derived_face to create and use
4616 special faces for the pop-up and drop-down menus.
4617
46181999-07-29 Gerd Moellmann <gerd@gnu.org>
4619
4620 * xterm.c (x_set_toolkit_scroll_bar_thumb): Don't call
4621 XawScrollbarSetThumb if thumb parameters haven't changed because
4622 that function apparently isn't optimized for this case.
4623
46241999-07-29 Eli Zaretskii <eliz@gnu.org>
4625
4626 * msdos.c (getdefdir): Don't return failure indication when
4627 _fixpath sets errno to ENOSYS.
4628
46291999-07-28 Gerd Moellmann <gerd@gnu.org>
4630
4631 * xdisp.c (string_char_and_length): New. Use it everywhere
4632 instead of STRING_CHAR_AND_LENGTH in xdisp.c.
4633
46341999-07-28 Kenichi Handa <handa@etl.go.jp>
4635
4636 * fns.c (count_combining): New function.
4637 (struct textprop_rec): New structure.
4638 (concat): Copy text properties correctly when byte combining
4639 occurs.
4640
46411999-07-28 Gerd Moellmann <gerd@gnu.org>
4642
4643 * xterm.c (x_setup_relief_color): Don't try smart color allocation
4644 if display is mono.
4645 (x_draw_row_bitmaps): If face has stipple, don't switch
4646 to foreground color for clearing areas, and set the fill style.
4647
4648 * xfaces.c (load_face_colors): Load background color if setting
4649 stipple, too.
4650 (prepare_face_for_display): Use FillOpaqueStippled instead of
4651 FillStippled.
4652
46531999-07-26 Ken'ichi Handa <handa@gnu.org>
4654
4655 * xterm.c (x_find_ccl_program): Add casting.
4656
4657 * w32fns.c (w32_find_ccl_program): Add casting.
4658
46591999-07-27 Gerd Moellmann <gerd@gnu.org>
4660
4661 * dispextern.h (struct glyph_row): Flag internal_border_p removed.
4662
4663 * xfns.c (x_create_tip_frame): Don't set bitmapIcon resource
4664 because this will try to access a nonexisting widget.
4665
46661999-07-26 Markus Rost <rost@gnu.org>
4667
4668 * fns.c (Fgethash): Fix order of variables (patch by gerd).
4669 (Fputhash): Ditto.
4670 (Fremhash): Ditto.
4671
46721999-07-26 Gerd Moellmann <gerd@gnu.org>
4673
4674 * widget.c (EmacsFrameSetCharSize): Don't add XtNborderWidth
4675 value to frame width and height.
4676
4677 * xterm.c (x_get_glyph_string_clip_rect): Take internal border
4678 into account for full-width windows. Don't add scroll bar width
4679 to width of clip rect.
4680 (x_draw_glyph_string_box): Add 1 to right x of full width lines.
4681 (x_set_glyph_string_background_width): Add 1 to background width.
4682 (x_draw_glyphs): Take internal border into account for full-width
4683 lines.
4684
46851999-07-26 Richard M. Stallman <rms@gnu.org>
4686
4687 * xfns.c (x_set_mouse_color): Always unload the old color.
4688 Don't allow nil as color value.
4689 (x_set_cursor_color, x_set_background_color, x_set_foreground_color):
4690 Always unload the old color.
4691
4692 * indent.c (Fmove_to_column): Extend end of line only if FORCE is t.
4693
46941999-07-26 Karl Heuer <kwzh@gnu.org>
4695
4696 * fns.c (Fy_or_n_p): Doc fix.
4697
46981999-07-26 Kenichi Handa <handa@etl.go.jp>
4699
4700 * ccl.h (setup_ccl_program): The type is changed to `int'.
4701
4702 * ccl.c (ccl_driver) <CCL_Call>: Now CCL program ID to call may be
4703 stored in the following CCL code. Adjusted for the change of
4704 Vccl_program_table.
4705 (resolve_symbol_ccl_program): Adjusted for the new style of
4706 embedded symbols (SYMBOL . PROP) in CCL compiled code. Return Qt
4707 is resolving failed.
4708 (ccl_get_compiled_code): New function.
4709 (setup_ccl_program): Function type changed from `void' to `int'.
4710 Resolve symbols in CCL_PROG.
4711 (Fccl_program_p): New function.
4712 (Fccl_execute): Get compiled CCL code by just calling
4713 setup_ccl_program.
4714 (Fccl_execute_on_string): Likewise.
4715 (Fregister_ccl_program): Adjusted for the change of
4716 Vccl_program_table.
4717
4718 * coding.c (setup_coding_system): Get compiled CCL code by just
4719 calling setup_ccl_program.
4720
4721 * xterm.c (x_find_ccl_program): Get compiled CCL code by just
4722 calling setup_ccl_program.
4723
4724 * w32fns.c (w32_find_ccl_program): Get compiled CCL code by just
4725 calling setup_ccl_program.
4726
47271999-07-23 Gerd Moellmann <gerd@gnu.org>
4728
4729 * xfaces.c (frame_update_line_height): Just use the height of the
4730 frame's fontset or font, instead of taking face fonts into
4731 account.
4732
4733 * xdisp.c (get_next_display_element): Display DEL as `^?'.
4734
47351999-07-23 Richard M. Stallman <rms@gnu.org>
4736
4737 * window.c (Fsplit_window): For default size, round up for left window.
4738
47391999-07-21 Joe Ramey <ramey@ti.com>
4740
4741 * filelock.c (lock_if_free): Return -1 if check_lock_owner
4742 has returned -1 (lockfile exists but is not a symlink?).
4743
47441999-07-20 Gerd Moellmann <gerd@gnu.org>
4745
4746 * xterm.c (x_draw_bar_cursor): Use scratch_cursor_gc to
4747 because of a change in cursor_gc made in 20.4.
4748
47491999-07-19 Gerd Moellmann <gerd@gnu.org>
4750
4751 * xterm.c (x_calc_absolute_position): Subtract menu bar height
4752 for YNegative, if using X toolkit.
4753
4754 * xfns.c (x_real_positions): Don't subtract window borders
4755 from positions returned.
4756
47571999-07-17 Gerd Moellmann <gerd@gnu.org>
4758
4759 * xrdb.c (x_load_resources): Set double-click time defaults
4760 for Motif list boxes from double-click-time.
4761
4762 * fns.c (Vhash_table_tests): Remvoed.
4763 (Qhash_table_test): New.
4764 (syms_of_fns): Initialize Qhash_table_test.
4765 (Fmake_hash_table): Look up user-defined tests in symbol prop
4766 `hash-table-test'.
4767 (Fdefine_hash_table_test): Store test and hash function as
4768 symbol prop `hash-table-test'.
4769 (make_hash_table): Add parameters user_test and user_hash.
4770
4771 * window.c (set_window_buffer): Set window margins for tty
4772 frames, too.
4773 (Fset_window_margins): Ditto.
4774
4775 * term.c (append_glyph): Use glyph area of iterator instead of
4776 always TEXT_AREA.
4777
4778 * dispnew.c (update_frame_1): Add left margin width to cursor
4779 hpos.
4780 (direct_output_for_insert): Ditto.
4781 (direct_output_forward_char): Ditto.
4782
4783 * dispnew.c (adjust_glyph_matrix): Set glyph matrix' top_line_p.
4784
4785 * dispextern.h (struct glyph_matrix): Add top_line_p.
4786
47871999-07-16 Gerd Moellmann <gerd@gnu.org>
4788
4789 * frame.h (FRAME_WINDOW_REDISPLAY_P): Removed. Use FRAME_WINDOW_P
4790 instead.
4791
4792 * fns.c (cmpfn_eq): Add hash code parameters.
4793 (cmpfn_eql): Ditto.
4794 (cmpfn_equal): Ditto, and compare hash codes before calling Fequal.
4795 (cmpfn_user_defined): Likewise.
4796
47971999-07-15 Gerd Moellmann <gerd@gnu.org>
4798
4799 * lisp.h (DEFAULT_REHASH_THRESHOLD): Changed to 0.8.
4800
4801 * fns.c (maybe_resize_hash_table): Correct computation of
4802 index vector size.
4803 (make_hash_table): Ditto.
4804 (Fmakehash): New.
4805
4806 * xdisp.c (echo_area_display): Don't call redraw_garbaged_frames.
4807
4808 * alloc.c (gc_sweep): Call sweep_weak_hash_tables.
4809 (survives_gc_p): Make it externally visible.
4810 (mark_object): Ditto.
4811
4812 * fns.c (remove_hash_entry): Removed.
4813 (sweep_weak_hash_tables): New.
4814
4815 * print.c (print): Print more information about hash tables.
4816
4817 * xfns.c (image_spec_hash): Removed.
4818 (lookup_image): Use sxhash instead of image_spec_hash.
4819 (image_spec_equal_p): Removed.
4820 (lookup_image): Use Fequal instead of image_spec_equal_p.
4821
48221999-07-14 Gerd Moellmann <gerd@gnu.org>
4823
4824 * lisp.h (P_): Moved to top of file.
4825
4826 * fns.c (make_hash_table): Set new members.
4827
4828 * alloc.c (mark_object): Mark hash table's user_hash_function.
4829 Mark index vector for weak hash tables.
4830
4831 * lisp.h (struct Lisp_Hash_Table): Add user_cmp_function,
4832 user_hash_function, cmpfn, and hashfn.
4833
4834 * fns.c (build_hash): Removed.
4835 (hash_test): Removed.
4836 (cmpfn_eq, cmpfn_eql, cmpfn_equal, cmpfn_user_defined): New.
4837 (hashfn_eq, hashfn_eql, hashfn_equal, hashfn_user_defined): New.
4838
48391999-07-13 Gerd Moellmann <gerd@gnu.org>
4840
4841 * alloc.c (survives_gc_p): New.
4842
4843 * print.c (print): Add hash table handling.
4844
4845 * alloc.c (mark_object): Add code to mark hash tables.
4846
4847 * lisp.h (GC_HASH_TABLE_P): New.
4848
4849 * emacs.c (main): Call init_fns.
4850
4851 * fns.c (init_fns): New.
4852
4853 * fns.c: Add hash table implementation.
4854
4855 * lisp.h (PVEC_HASH_TABLE): New.
4856 (struct Lisp_Hash_Table): New.
4857 (XHASH_TABLE): New.
4858 (XSET_HASH_TABLE): New.
4859 (HASH_TABLE_P): New.
4860 (CHECK_HASH_TABLE): New.
4861 (DEFAULT_HASH_SIZE): New.
4862 (DEFAULT_REHASH_THRESHOLD): New.
4863 (DEFAULT_REHASH_SIZE): New.
4864
4865 * xterm.c (x_draw_glyphs): Add parameters real_start and real_end.
4866 (x_write_glyphs): Compute overwritten cursor using real start
4867 and end positions of display.
4868 (x_insert_glyphs): Ditto.
4869
48701999-07-10 Gerd Moellmann <gerd@gnu.org>
4871
4872 * keyboard.c (read_char): Use message3_nolog to show help-echo.
4873
4874 * dispnew.c (blank_row): Add y-position as parameter. Compute
4875 visible height.
4876
4877 * xdisp.c (next_element_from_string): Give padding spaces
4878 a position of -1.
4879
4880 * dispnew.c (adjust_glyph_matrix): Some work to support
4881 marginals areas on tty frames in a future version.
4882 (allocate_matrices_for_frame_redisplay): Ditto.
4883
4884 * xdisp.c (display_line): At ZV, set glyph row's displays_text_p
4885 to zero if number of glyphs in the row is <= 1.
4886
48871999-07-09 Gerd Moellmann <gerd@gnu.org>
4888
4889 * dispnew.c (buffer_posn_from_coords): Take left marginal area
4890 into account.
4891
4892 * xdisp.c (handle_display_prop): Don't reset area if handing
4893 a property from a string that came from a `display' property.
4894 (handle_single_display_prop): Don't handle recursive `display'
4895 properties.
4896 (handle_single_display_prop): Handle some display property
4897 forms for terminal frames.
4898 (Qimage): Moved here from xfns.c.
4899
4900 * dispextern.h (struct it): New field string_from_display_prop_p.
4901
4902 * xterm.c (x_clip_to_row): Don't let clip_rect include top
4903 line.
4904
49051999-07-08 Gerd Moellmann <gerd@gnu.org>
4906
4907 * xdisp.c (handle_single_display_prop): Handle `:when FORM'.
4908
4909 * window.c (set_window_buffer): Set window's vscroll to zero.
4910
4911 * xdisp.c (QCwhen): New.
4912 (display_prop_end): New.
4913 (handle_single_display_prop): Use it.
4914 (debug_method_add): Print buffer name if tracing.
4915 (try_window_reusing_current_matrix): Compute visible height
4916 of reused rows. Fix cursor position calculation in case of
4917 top-line.
4918
4919 * dispextern.h (struct redisplay_interface): Add parameter
4920 cursor_on_p to update_window_end_hook.
4921
4922 * xterm.c (x_update_window_end): Add parameter cursor_on_p.
4923
49241999-07-07 Gerd Moellmann <gerd@gnu.org>
4925
4926 * xdisp.c (redisplay_internal): Ensure that redisplayinp_p
4927 doesn't become negative when decrementing it.
4928
4929 * eval.c (Fsignal): Reset redisplaying_p to zero.
4930
4931 * xdisp.c (try_window_reusing_current_matrix): Call hooks
4932 for window update.
4933 (try_window_id): Ditto.
4934
4935 * xterm.c (x_clear_end_of_line): Handle top-line correctly.
4936 (x_scroll_run): Ditto.
4937 (any_help_event_p): New.
4938 (x_initialize): Set it to zero.
4939 (XTread_socket): Clear help echo only if any_help_event_p.
4940
4941 * xdisp.c (init_iterator): Set top_line_p.
4942 (start_display): Use correct initial y if top-line is present.
4943 (make_cursor_line_fully_visible): Bug fixes for top-line.
4944 (try_scrolling): Ditto.
4945 (try_window_reusing_current_matrix): Ditto.
4946
4947 * dispextern.h (struct it): Add top_line_p.
4948
4949 * dispnew.c (shift_glyph_matrix): Move some computations out
4950 of the loop.
4951
4952 * dispnew.c (margin_glyphs_to_reserve): Use NUMBERP and
4953 XFLOATINT.
4954
49551999-07-06 Gerd Moellmann <gerd@gnu.org>
4956
4957 * dispnew.c (update_frame_1): When setting cursor in echo area,
4958 skip only over padding spaces at the end.
4959
4960 * xfaces.c (realize_tty_face): Set face's font_name field to
4961 "tty".
4962
4963 * term.c (update_end): Turn cursor on only if selected window's
4964 cursor_off_p flag is not set.
4965
49661999-07-05 Gerd Moellmann <gerd@gnu.org>
4967
4968 * term.c (TS_cursor_visible): Renamed from TS_visual_mode.
4969 (TS_cursor_normal): Renamed from TS_end_visual_mode.
4970 (TS_cursor_invisible): New.
4971 (term_init): Initialize TS_cursor_invisible.
4972 (tty_hide_cursor): New.
4973 (tty_show_cursor): New.
4974 (update_end): Show tty cursor.
4975 (update_begin): Hide tty cursor to prevent cursor flickering
4976 during redisplays triggered by timers (stealth fontification).
4977
4978 * keyboard.c (make_lispy_event) <TOOLBAR_EVENT>: Apply modifiers.
4979
4980 * xterm.c (XTread_socket) [USE_MOTIF] <KeyPress>: Catch events
4981 in scroll bars.
4982 (x_handle_toolbar_click): Set modifier bits.
4983
49841999-07-04 Gerd Moellmann <gerd@gnu.org>
4985
4986 * keyboard.c (kbd_store_ptr): Declare it as a volatile pointer
4987 instead of a pointer to a volatile input_event.
4988 (kbd_buffer_store_event): Remove volatile modifier from
4989 declaration of local variable `sp'.
4990 (Fdiscard_input): Don't cast when assigning kbd_store_ptr
4991 to kbd_fetch_ptr.
4992
49931999-07-03 Gerd Moellmann <gerd@gnu.org>
4994
4995 * xdisp.c (try_window_id): Set beg_unchanged and end_unchanged
4996 only if buffer is modified. Return quickly if changes are
4997 above window start.
4998
49991999-07-02 Gerd Moellmann <gerd@gnu.org>
5000
5001 * dispextern.h (HSCROLL_WINDOWS): Removed.
5002
5003 * xdisp.c (mark_window_display_accurate): Don't set
5004 w->region_showing.
5005 (redisplay_internal): Don't call redraw_garbaged_frames.
5006
50071999-07-01 Gerd Moellmann <gerd@gnu.org>
5008
5009 * xdisp.c (echo_area_display): Don't display truncation marks
5010 for messages because 20.4 doesn't do it either.
5011 (redisplay_window): Case same window start. Instead of giving
5012 up when cursor is partially visible, make it fully visible.
5013 (mark_window_display_accurate): Some cleanup. Record window's
5014 last cursor information.
5015 (debug_method_add): Improved.
5016 (redisplay_internal): Record last cursor info only if not
5017 consider_all_windows_p.
5018
5019 * dispnew.c (update_window): Update top line after scrolling.
5020 (blank_row): Renamed from make_empty_enabled_row.
5021 (increment_glyph_row_buffer_positions): Increment positions
5022 in buffers, only.
5023
5024 * window.c (Fcoordinates_in_window_p): Add top-line to doc
5025 string.
5026
50271999-06-30 Gerd Moellmann <gerd@gnu.org>
5028
5029 * dispnew.c (update_window): Check that updated row is visible.
5030
5031 * xterm.c (x_draw_row_bitmaps): Check for invisible rows at
5032 top of window differently.
5033
5034 * xdisp.c (try_window_reusing_current_matrix): Don't do it
5035 if region is showing.
5036
5037 * dispnew.c (adjust_glyph_matrix): Check w->vscroll when
5038 avoiding matrix reallocation. Set window_vscroll in matrix.
5039
5040 * dispextern.h (struct glyph_matrix): Add member window_vscroll.
5041
26901792
DL
5042 * xdisp.c (debug_method_add): New.
5043 (debug_redisplay_method): Removed.
5044 (try_window_reusing_current_matrix): Handle case where old
5045 window start is the same as new window start.
5046
5047 * dispextern.h (struct glyph_matrix) [GLYPH_DEBUG]: Make `method'
5048 an array instead of a pointer.
5049
26901792
DL
5050 * xfns.c (Fx_show_tip): Undo previous change.
5051
5052 * xterm.c (x_append_glyph): Clear glyph->u.val.
5053
5054 * dispextern.h (struct glyph): Increase size of face_id bit-field
5055 for CHAR_GLYPH to 12.
5056
50571999-06-29 Gerd Moellmann <gerd@gnu.org>
5058
5059 * xfaces.c (x_charset_registry): Make it externally visible.
5060
50611999-06-28 Gerd Moellmann <gerd@gnu.org>
5062
5063 * dispnew.c (update_window): Use mode_line_p flag of rows
5064 instead of WINDOW_WANTS_MODELINE_P.
5065
5066 * xterm.c (clear_mouse_face): Make externally visible.
5067
5068 * xfns.c (Fx_show_tip): Clear mouse face before showing tip.
5069
5070 * xterm.c (expose_line): Handle exposure of top-lines.
5071
5072 * xterm.c (XTframe_up_to_date): Don't call note_mouse_highlight
5073 if mouse_face_mouse_frame is null.
5074
5075 * xdisp.c (redisplay_window): If window is echo_area_window,
5076 and update_mode_line is set, update menubar and toolbar.
5077
5078 * dispnew.c (space_glyph): Set its charpos to -1.
5079 (update_frame_1): Ignore trailing padding spaces.
5080
5081 * xdisp.c (next_element_from_c_string): Set position of padding
5082 glyphs to -1.
5083
50841999-06-27 Gerd Moellmann <gerd@gnu.org>
5085
5086 * xfns.c (x_laplace_read_row): Use XQueryColors instead of
5087 XQueryColor.
5088
5089 * xdisp.c (display_menu_bar): Remove unwarranted assertion.
5090 (set_cursor_from_row): Skip over glyphs having a null object at
5091 the start of rows.
5092 (insert_left_trunc_glyphs): Use charpos < 0 to indicate truncation
5093 glyphs.
5094 (handle_invisible_prop): Compute next change only when needed.
5095 (handle_face_prop): Don't correct DEFAULT_FACE_ID if in the mode
5096 line.
5097
50981999-06-26 Gerd Moellmann <gerd@gnu.org>
5099
5100 * xrdb.c (x_load_resources): Don't set resource for double-click
5101 time.
5102
5103 * xdisp.c (try_window_id): Return quickly if all changes are
5104 below the window's current matrix end.
5105
5106 * dispextern.h (MATRIX_ROW_PARTIALLY_VISIBLE_P): Remove window
5107 parameter.
5108
5109 * xdisp.c (try_window_reusing_current_matrix): Set no_scrolling_p
5110 in desired not in current matrix.
5111 (try_window_reusing_current_matrix): Rotate matrices starting
5112 at start_vpos instead of 0.
5113
5114 * xterm.c (expose_window): Use window_text_bottom_y.
5115 (fast_find_position): Ditto.
5116
5117 * xdisp.c (redisplay_window): Use window_text_bottom_y.
5118 (try_window_reusing_current_matrix): Ditto.
5119 (get_last_unchanged_at_beg_row): Ditto.
5120 (init_iterator): Ditto.
5121
5122 * dispnew.c (allocate_matrices_for_window_redisplay): Allocate one
5123 more row.
5124 (check_matrix_invariants): Use window_text_bottom_y.
5125 (update_window): Ditto.
5126 (scrolling_window): Ditto.
5127
5128 * xdisp.c (window_text_bottom_y): New.
5129
51301999-06-25 Gerd Moellmann <gerd@gnu.org>
5131
5132 * xterm.c (XTread_socket): Set mouse_face_frame to zero after
5133 clearing mouse face.
5134 (XTread_socket) <EnterNotify> [LESSTIF_VERSION]: If
5135 event.xcrossing.focus is not set, and focus is in the menu bar,
5136 set focus frame as if event.xcrossing.focus were set.
5137
51381999-06-24 Gerd Moellmann <gerd@gnu.org>
5139
5140 * keyboard.c (make_lispy_event): Handle mouse on top lines.
5141 * keyboard.c (make_lispy_movement): Ditto.
5142
5143 * window.c (coordinates_in_window): Return 4 if on top line.
5144 (Fcoordinates_in_window_p): Return `top-line' if on top line.
5145
5146 * xdisp.c (window_box_height): Subtract top line height.
5147 (window_box): Add top line height to top y position if top line
5148 exists.
5149 (init_iterator): If base_face_id is TOP_LINE_FACE_ID, set row to
5150 the top line row of the window. Set initial y-position to
5151 window's top line height plus delta.
5152 (start_display): Choose start glyph row depending on whether
5153 window has a top line.
5154 (try_scrolling): Take top line height into account for aggressive
5155 scrolling.
5156 (compute_window_start_on_continuation_line): Take top line into
5157 account.
5158 (redisplay_window): Ditto. If top line height has changed,
5159 trigger a new redisplay.
5160 (try_window_reusing_current_matrix): Take top line into account.
5161 (find_last_row_displaying_text): Ditto.
5162 (get_last_unchanged_at_beg_row): DItto.
5163 (try_window_id): Ditto.
5164 (compute_line_metrics): Ditto.
5165
5166 * dispnew.c (shift_glyph_matrix): Compute visible row height
5167 taking top line of window into account.
5168 (update_window): Update top line. If scrolling_window detects
5169 that all rows are equal, only set cursor.
5170 (update_window_line): Call after_update_window_line_hook if
5171 mode_line_p flag of rows has changed.
5172 (scrolling_window): Add parameter top_line_p. Return -1 if
5173 all rows are equal.
5174 (mode_line_string): Add parameter mode_line_p. Handle strings
5175 in top lines.
5176
5177 * dispextern.h (MATRIX_TOP_LINE_ROW): New.
5178 (MATRIX_FIRST_TEXT_ROW): New.
5179 (MATRIX_ROW_PARTIALLY_VISIBLE_P): Use row's visible_height.
5180 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_TOP_P): New.
5181 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_BOTTOM_P): New.
5182 (MATRIX_TOP_LINE_HEIGHT): New.
5183 (CURRENT_MODE_LINE_HEIGHT): Use estimate_mode_line_height.
5184 (CURRENT_TOP_LINE_HEIGHT): New.
5185 (DESIRED_TOP_LINE_HEIGHT): New.
5186 (WINDOW_DISPLAY_TOP_LINE_HEIGHT): New.
5187 (WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE): Replaces
5188 WINDOW_DISPLAY_TEXT_AREA_PIXEL_HEIGHT.
5189 (WINDOW_DISPLAY_TEXT_HEIGHT): New.
5190
5191 * xterm.c (x_after_update_window_line): Don't draw bitmaps for top
5192 lines.
5193 (x_draw_row_bitmaps): Take top line into account when clearing
5194 bitmap area.
5195 (x_estimate_mode_line_height): Replacement for
5196 x_frame_mode_line_height.
5197 (x_get_glyph_string_clip_rect): Take top line into account.
5198 (x_clear_end_of_line): Ditto.
5199 (note_mode_line_highlight): Add parameter mode_line_p. Handle
5200 top lines.
5201 (note_mouse_highlight): Call note_mode_line_highlight for top lines.
5202 (x_erase_phys_cursor): Take top line into account.
5203
5204 * xdisp.c (window_box_height): Subtract top line height if
5205 window wants a top line.
5206 (display_mode_lines): New.
5207 (redisplay_window): Call it.
5208 (display_mode_line): Add parameters face_id and format.
5209
5210 * dispextern.h (CURRENT_TOP_LINE_HEIGHT): New.
5211 (MATRIX_TOP_LINE_HEIGHT): New.
5212
5213 * xterm.c (x_frame_mode_line_height): Add parameter face_id.
5214
5215 * term.c (estimate_mode_line_height): Renamed from
5216 frame_mode_line_height. Add parameter face_id.
5217 (estimate_mode_line_height_hook): Renamed from
5218 frame_mode_line_height_hook.
5219 (produce_special_glyphs_hook): Removed.
5220 (produce_glyphs_hook): Removed.
5221
52221999-06-23 Gerd Moellmann <gerd@gnu.org>
5223
5224 * dispextern.h (WINDOW_WANTS_TOP_LINE_P): New.
5225 (struct glyph_row): Add mode_line_p.
5226
5227 * xfaces.c (realize_basic_faces): Realize face `top-line'.
5228 (Qtop_line): New.
5229 (syms_of_xfaces): Initialize Qtop_line.
5230
5231 * dispextern.h (TOP_LINE_FACE_ID): New.
5232
5233 * buffer.c (init_buffer_once): Set default for
5234 top_line_format to nil.
5235 (init_buffer_once): Init top_line_format.
5236 (default-top-line-format): New.
5237 (top-line-format): New buffer-local variable.
5238
5239 * buffer.h: Add top_line_format.
5240
5241 * xdisp.c (overlay_arrow_changed_p): Removed because not used.
5242
52431999-06-17 Dave Love <fx@gnu.org>
5244
5245 * xfns.c: Move the PNG section before the JPEG one to avoid
5246 problems surrounding setjmp.h/png.h on GNU/Linux.
5247
52481999-06-17 Gerd Moellmann <gerd@gnu.org>
5249
5250 * xfns.c (x_kill_gs_process): Don't free colors.
5251
52521999-06-17 Dave Love <fx@gnu.org>
5253
5254 * s/gnu-linux.h: Zap spurious ~.
5255
52561999-06-16 Gerd Moellmann <gerd@gnu.org>
5257
5258 * xfns.c (gif_load): Improve multi-image support.
5259
52601999-06-15 Gerd Moellmann <gerd@gnu.org>
5261
5262 * xfns.c (gif_load): Support multi-image files.
5263
5264 * Makefile.in (LIBGIF): Use libungif.
5265
5266 * configure.in (HAVE_GIF): Use libungif instead of libgif
5267 because the former doesn't contain patented compression code.
5268
5269 * xdisp.c (compute_window_start_on_continuation_line): Don't
5270 do it if line start is too far away from window start.
5271
52721999-06-14 Gerd Moellmann <gerd@gnu.org>
5273
5274 * buffer.c (init_buffer_once): Set buffer_local_flags for
5275 scroll_*_aggressively.
5276 (syms_of_buffer): Add DEFVAR_PER_BUFFER for scroll-*-aggressively.
5277 (init_buffer_once): Set defaults for these variables.
5278 (syms_of_buffer): Add default-scroll-*-aggressively.
5279
5280 * buffer.h (scroll_up_aggressively): New.
5281 (scroll_down_aggressively): New.
5282
5283 * Makefile.in (LIBPNG): Add -lz -lm in case we're linking with
5284 a static PNG library.
5285
5286 * configure.in (HAVE_PNG): Add -lz -lm when checking for PNG lib
5287 in case it's a static library.
5288
5289 * Makefile.in (ctagsfiles): Split so that files starting
5290 with an `x' are found before files starting with `w32'.
5291 (ctagsfiles1): New.
5292 (ctagsfiles2): New.
5293 (TAGS): Use ctagsfiles[12] instead of ctagsfiles.
5294
5295 * xdisp.c (compute_window_start_on_continuation_line): New.
5296 (redisplay_window): Use it.
5297 (INFINITY): New.
5298 (reseat_to_string): Use it.
5299 (hscroll_window_tree): Ditto.
5300 (compute_window_start_on_continuation_line): Ditto.
5301 (redisplay_window): Don't force display with a new window start.
5302
53031999-06-06 Gerd Moellmann <gerd@gnu.org>
5304
5305 * xfns.c (x_report_frame_params): Don't report `outer-window-id'
5306 if widget not present.
5307
5308 * xdisp.c (prepare_menu_bars): Ignore tooltip frame.
5309
53101999-06-04 Gerd Moellmann <gerd@gnu.org>
5311
5312 * xfaces.c (recompute_basic_faces)[GLYPH_DEBUG]: Check return
5313 value of realize_basic_faces.
5314 (load_face_font_or_fontset): Store full font name in face.
5315 (realize_default_face): Use full font name.
5316
26901792
DL
5317 * xterm.c (x_produce_glyphs): Set member char_to_display.
5318 (x_append_glyph): Store char_to_display in glyphs.
5319
5320 * dispextern.h (struct it): Add char_to_display.
5321
5322 * xfns.c (x_set_font): Don't call face-set-after-frame-default
5323 if faces haven't been initialized.
5324 (Fx_create_frame): Call face-set-after-frame-default after
5325 faces have been initialized, and widget has been created.
5326
5327 * puresize.h (BASE_PURESIZE): Increased.
5328
53291999-06-01 Gerd Moellmann <gerd@gnu.org>
5330
5331 * xfaces.c (set_lface_from_font_name): Add parameter force_p.
5332 (Finternal_set_lisp_face_attribute): If frame is t when
5333 :font attribute is set, use the selected frame.
5334 (clear_face_cache): Add parameter clear_fonts_p.
5335 (Fclear_face_cache): Add optional parameter thorougly.
5336
5337 * xfaces.c (face_numeric_value): Return -1 if symbol is not
5338 in table.
5339 (Fclear_face_cache): New.
5340 (choose_face_fontset_font): If fontset doesn't contain font
5341 pattern for the given charset, use CHARSET_ASCII.
5342 (Finternal_set_lisp_face_attribute): Fix handling of nil
5343 stipple attribute.
5344 (Finternal_set_lisp_face_attribute): Fix handling of changing
5345 font-related face attributes of the default face.
5346 (set_lface_from_font_name): Set only attributes that aren't
5347 specified.
5348
53491999-05-31 Gerd Moellmann <gerd@gnu.org>
5350
5351 * xfaces.c (SCALABLE_FONTS): Define this to enable scalable
5352 font support.
5353 (Vscalable_fonts_allowed) [SCALABLE_FONTS]: New.
5354 (x_face_list_fonts): Add parameter scalable_fonts_p. Handle
5355 scalable fonts depending on the setting of SCALABLE_FONTS.
5356 (first_font_matching): List more than one font to find the
5357 first non-scalable matching font.
5358 (sorted_font_list): Let x_face_list_fonts return scalable fonts
5359 depending on SCALABLE_FONTS.
5360 (better_font_p): New parameter compare_pt_p. If zero, don't
5361 compare point sizes of fonts.
5362 (exact_face_match_p) [SCALABLE_FONTS]: New.
5363 (build_scalable_font_name) [SCALABLE_FONTS]: New.
5364 (may_use_scalable_font_p) [SCALABLE_FONTS]: New.
5365 (best_matching_font) [SCALABLE_FONTS]: Handle scalable fonts.
5366 (syms_of_xfaces): Add scalable-fonts-allowed.
5367
53681999-05-26 Gerd Moellmann <gerd@gnu.org>
5369
5370 * xfns.c (png_load): Let PNG lib handle gamma. Construct
5371 mask only if image contains simple transparency information.
5372 Otherwise, combine image with frame background color.
5373
5374 * configure.in (--with-png, HAVE_PNG): New.
5375
5376 * config.in (HAVE_PNG): New.
5377
5378 * Makefile.in: Add PNG library.
5379
5380 * xfns.c: Add PNG support.
5381
53821999-05-25 Gerd Moellmann <gerd@gnu.org>
5383
5384 * xdisp.c (init_xdisp): Initialize echo_area_message and
5385 previous_echo_area_message to nil.
5386
5387 * keyboard.c (read_char): Rename local variable echo_area_message
5388 because it shadows the global one.
5389
53901999-05-05 Gerd Moellmann <gerd@gnu.org>
5391
5392 * xterm.c (note_mode_line_highlight): Restructured.
5393
5394 * window.c (coordinates_in_window): Handle windows that don't have
5395 a mode line because their buffer's mode-line-format is nil.
5396 Recognize the mode line under x positions that correspond to
5397 flags areas and left scroll bar.
5398
53991999-05-02 Dave Love <fx@gnu.org>
5400
5401 * xterm.c (note_mouse_highlight): Separate help-echo processing
5402 from check on mouse-face so that it works generally.
5403
54041999-04-21 Gerd Moellmann <gerd@gnu.org>
5405
5406 * sound.c (Fplay_sound): Run hook play-sound-hook.
5407 (Qplay_sound_hook): New.
5408
54091999-04-20 Gerd Moellmann <gerd@gnu.org>
5410
5411 * xdisp.c (update_echo_area): Handle echo_area_message.
5412
54131999-04-19 Gerd Moellmann <gerd@gnu.org>
5414
5415 * editfns.c (Fmessage): Use message3.
5416
5417 * print.c (printchar): Set echo_area_message to nil.
5418 (strout): Ditto.
5419
5420 * minibuf.c (read_minibuf): Reset echo message strings to nil.
5421 (Fminibuffer_completion_help): Ditto.
5422
5423 * keyboard.c (cmd_error_internal): Set echo_areA_message.
5424 (command_loop_1): Test echo_areA_message.
5425 (read_char): Ditto.
5426 (record_menu_key): Set echo_area_message to nil.
5427 (Fexecute_extended_command): Test echo_area_message.
5428 (Fexecute_extended_command): Handle echo_area_message.
5429
5430 * fileio.c (Fdo_auto_save): Handle the case that echo_area_message
5431 is set.
5432
5433 * editfns.c (Fcurrent_message): If echo_area_message is set,
5434 return a substring of that string.
5435
5436 * dispnew.c (direct_output_for_insert): Test echo_area_message
5437 in addition to echo_area_glyphs.
5438 (set_window_cursor_after_update): Ditto.
5439 (update_frame_1): Ditto.
5440
5441 * alloc.c (Fgarbage_collect): Use message3_nolog to display
5442 old Lisp message string.
5443
5444 * xdisp.c (echo_area_message): New.
5445 (previous_echo_area_message): New.
5446 (syms_of_xdisp): Initialize and staticpro new variables.
5447 (echo_area_display): Display echo_area_message if set.
5448 (message2_nolog): Set echo_area_message and
5449 previous_echo_area_message.
5450 (echo_area_display): Set previous_echo_area_message.
5451 (redisplay_internal): Display echo area if echo_area_message
5452 or previous_echo_area_message are set.
5453 (redisplay_preserve_echo_area): Test/set echo_area_message and
5454 previous_echo_area_message.
5455 (redisplay_window): Test echo_area_message.
5456 (message3_nolog): New.
5457 (message3): New.
5458
5459 * editfns.c (Fformat): Add text properties to the result string
5460 from properties of the format string and properties of string
5461 arguments.
5462
5463 * textprop.c (text_property_list): New.
5464 (add_text_properties_from_list): New.
5465 (extend_property_ranges): New.
5466
54671999-03-29 Gerd Moellmann <gerd@gnu.org>
5468
5469 * xfaces.c (Qraised, Qsunken, QCshadow): Removed.
5470 (QCline_width, QCstyle, Qpressed_button, Qreleased_button): New.
5471 Use these symbols for the box face attribute instead of the
5472 removed ones.
5473
54741999-03-12 Gerd Moellmann <gerd@gnu.org>
5475
5476 * xfaces.c (realize_tty_face): Don't set alt_char_p of face.
5477 Correct wrong test for slant.
5478
54791999-03-10 Gerd Moellmann <gerd@gnu.org>
5480
5481 * xfaces.c: Use `unspecified' for unspecified face attributes,
5482 use t and nil for on/off.
5483
54841999-03-06 Gerd Moellmann <gerd@gnu.org>
5485
5486 * buffer.c (syms_of_buffer): Extend doc string of
5487 mode-line-format.
5488
5489 * xfaces.c (x_face_list_fonts): New parameter try_alternatives_p.
5490 (first_font_matching): New.
5491 (set_lface_from_font_name): Use it if font name is a pattern.
5492 (font_field_wildcard_p): Removed.
5493
5494 * dispnew.c (shift_glyph_matrix): Add `window' parameter.
5495 Recompute visible height of rows.
5496
5497 * xterm.c (note_mouse_highlight): Reorder code for help-echo.
5498 Don't accept non-strings for help-echo from overlays.
5499
55001999-03-04 Dave Love <fx@gnu.org>
5501
5502 * xterm.c (note_mouse_highlight): Check overlays for help-text
5503 property.
5504 (XTread_socket): Fix compiler warning.
5505
55061999-03-05 Gerd Moellmann <gerd@gnu.org>
5507
5508 * xterm.c (note_mouse_highlight): Don't restrict number of
5509 overlay to 10. Call overlays_at so that it doesn't try to
5510 extend the vector.
5511
5512 * xdisp.c (compute_line_metrics): Compute glyph row's visible
5513 height.
5514
5515 * dispnew.c (row_equal_p): Compare visible row height, only.
5516 (update_text_area): Draw whole line if visible heights of
5517 rows differ.
5518 (update_window_line): Call after_update_window_line_hook
5519 if visible row height has changed.
5520
5521 * dispextern.h (MATRIX_ROW_VISIBLE_HEIGHT): Removed.
5522 (struct glyph_row): New member visible_height.
5523
5524 * xfaces.c (font_field_wildcard_p): New.
5525 (set_lface_from_font_name): Remove parameter force_p. Accept
5526 font names containing wildcards.
5527
55281999-03-04 Gerd Moellmann <gerd@gnu.org>
5529
5530 * xterm.c (x_after_update_window_line): Clear internal border
5531 when windows_or_buffers_changed.
5532
5533 * dispextern.h (WINDOW_WANTS_MODELINE_P): Return zero if window's
5534 buffer has a nil mode_line_format.
5535
55361999-03-03 Gerd Moellmann <gerd@gnu.org>
5537
5538 * xterm.c (x_setup_relief_colors): Use either background color
5539 or specified color.
5540
5541 * xfaces.c (realize_x_face): Set face->use_box_color_for_shadows_p.
5542
5543 * dispextern.h (struct face): Add use_box_color_for_shadows_p.
5544
5545 * xterm.c (x_draw_box_rect): New.
5546 (x_draw_glyph_string_box): Renamed from
5547 x_draw_glyph_string_relief. Call x_draw_box_rect.
5548
5549 * xfns.c (QCrelief): New.
5550 (syms_of_xfns): Initialize it.
5551
5552 * dispextern.h (struct glyph): Rename left_shadow_p to
5553 left_box_line_p, right_shadow_p to right_box_line_p.
5554 (MAX_RELIEF_THICKNESS): Removed.
5555 (struct it): Rename members having `relief' in their names
5556 to contain `box' instead.
5557
5558 * xfaces.c (realize_x_face): Handle new box attribute values.
5559 (QCrelief, Qbox): Removed.
5560 (QCshadow, QCcolor, Qraised, Qsunken): New.
5561 (syms_of_xfaces): Initialize new symbols.
5562
55631999-03-02 Gerd Moellmann <gerd@gnu.org>
5564
5565 * dispextern.h (LFACE_RELIEF_INDEX): Removed.
5566
5567 * xfaces.c (LFACE_RELIEF): Removed.
5568 (merge_face_vector_with_property): Remove handling of `:relief'.
5569 (Finternal_set_lisp_face_attribute): Ditto.
5570 (Finternal_set_lisp_face_attribute_from_resource): Ditto.
5571 (Finternal_get_lisp_face_attribute): Ditto.
5572 (realize_default_face): Ditto.
5573 (lface_hash): Don't compute hash from relief.
5574
5575 * dispextern.h (struct face): Replace member `relief' by
5576 `box_line_width'. Add member `box'.
5577 (face_box_type): New.
5578
5579 * xterm.c (x_produce_glyphs): If face has overline, add overline
5580 thickness + 1 to ascent.
5581
55821999-03-01 Gerd Moellmann <gerd@gnu.org>
5583
5584 * xterm.c (x_draw_glyph_string): Draw underline, overline,
5585 strike-through, and boxes.
5586 (x_draw_glyph_string_underline): Removed.
5587
5588 * xfaces.c (QCoverline, QCstrike_through, QCbox): New.
5589 (Qoverline, Qstrike_through, Qbox): New.
5590 (syms_of_xfaces): Define these symbols.
5591 (check_lface_attrs): Add checks for overline, strike-through,
5592 and box.
5593 (Finternal_set_lisp_face_attribute): Set new attributes.
5594 (LFACE_OVERLINE, LFACE_STRIKE_THROUGH, LFACE_BOX): New.
5595 (load_color): Handle new attributes.
5596 (realize_x_face): Ditto.
5597 (merge_face_vector_with_property): Ditto.
5598 (free_face_colors): Ditto.
5599 (Finternal_set_lisp_face_attribute_from_resource): Ditto.
5600 (Finternal_get_lisp_face_attribute): Ditto.
5601 (Finternal_lisp_face_attribute_values): Ditto.
5602
5603 * dispextern.h (lface_attribute_index): Add enumerators for
5604 overstrike, strike-through, and box.
5605 (struct face): Add members for overline, strike-through, and
5606 box.
5607
56081999-02-17 Dave Love <fx@gnu.org>
5609
5610 * s/gnu-linux.h s/gnu.h s/irix5-0.h s/netbsd.h s/sco4.h s/sco5.h
5611 s/template.h (NARROWPROTO): Define on the basis of relevant X cf
5612 files.
5613
56141999-02-16 Gerd Moellmann <gerd@gnu.org>
5615
5616 * keyboard.c (toolbar_items): Call access_keymap with third
5617 parameter 1, so that we don't get inherited toolbar item
5618 definitions.
5619
5620 * xdisp.c (redisplay_internal): In optimization 1, don't decrement
5621 the window end vpos when in empty first line of window.
5622
56231999-02-15 Gerd Moellmann <gerd@gnu.org>
5624
5625 * xfaces.c (set_font_frame_param): New.
5626 (Finternal_set_lisp_face_attribute): Call it.
5627
5628Sun Feb 14 10:54:02 1999 Masatake Yamato <masata-y@is.aist-nara.ac.jp>
5629
5630 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
5631 Accept specifications of color for underline.
5632
56331999-02-13 Gerd Moellmann <gerd@gnu.org>
5634
5635 * xfaces.c (Finternal_set_lisp_face_attribute): If parameter
5636 `frame' is t, operate on face defaults for new frames. If it
5637 is nil, operate on the selected frame.
5638
56391999-02-12 Gerd Moellmann <gerd@gnu.org>
5640
5641 * dispnew.c (check_matrix_invariants): Put it in #if 0.
5642 (update_window): Put the call to check_matrix_invariants in #if 0.
5643
5644Sun Feb 7 09:58:49 1999 Masatake Yamato <masata-y@is.aist-nara.ac.jp>
5645
5646 * dispextern.h: Remove all else block of UNDERLINE_COLOR.
5647 Remove definition of UNDERLINE_COLOR.
5648
5649Mon Jan 4 04:43:41 1999 Masatake Yamato <masata-y@is.aist-nara.ac.jp>
5650
5651 * xfaces.c (free_face_colors): Free the color for underline.
5652
5653 * xterm.c (x_draw_glyph_string_underline): Set the color for underline
5654 to the GC.
5655
5656Sun Jan 3 08:41:10 1999 Masatake Yamato <masata-y@is.aist-nara.ac.jp>
5657
5658 * dispextern.h (UNDERLINE_COLOR): Defined.
5659 (struct face): Added two new members.
5660 underline_color, underline_defaulted_p.
5661
5662 * xfaces.c (merge_face_vector_with_property):
5663 (check_lface_attrs): Accept the string value for underline.
5664 (Finternal_set_lisp_face_attribute): Likewise.
5665
5666 * xfaces.c (load_color): Change the last argument type to enum
5667 lface_attribute_index from int. And addec code for underling coloring.
5668 (load_face_colors): Pass LFACE_*_INDEX to load_color.
5669
56701999-02-12 Gerd Moellmann <gerd@gnu.org>
5671
5672 * xfns.c (Fx_image_header): Removed.
5673
56741999-02-07 Gerd Moellmann <gerd@gnu.org>
5675
5676 * xterm.c: Don't include <bitmaps/gray>.
5677 (x_term_init): Use gray_bitmap_width and gray_bitmap_height.
5678
5679 * xfns.c (Fx_image_header): Add missing `\n\'.
5680 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits): New.
5681
56821999-02-01 Gerd Moellmann <gerd@gnu.org>
5683
5684 * xterm.c (x_scroll_bar_create): Set background pixel from
5685 specified scroll bar color.
5686 (x_scroll_bar_set_handle): Use scroll bar foreground color.
5687
5688 * xfns.c (x_set_scroll_bar_foreground): Remove all scroll bars.
5689 (x_set_scroll_bar_background): Ditto.
5690
5691 * xterm.c (x_create_toolkit_scroll_bar): Set scroll bar colors.
5692
5693 * xfns.c (x_default_scroll_bar_color_parameter): New.
5694 (Fx_create_frame): Call it.
5695
56961999-01-31 Gerd Moellmann <gerd@gnu.org>
5697
5698 * xfns.c (Fx_create_frame): Initialize scroll bar pixel color
5699 values in x_output structure.
5700 (Qscroll_bar_foreground, Qscroll_bar_background): New.
5701 (syms_of_xfns): Initialize these symbols.
5702
5703 * xterm.h (struct x_output): Add scroll bar pixel colors.
5704
5705 * xfns.c (x_frame_parms): Add entries for scroll bar colors.
5706 (x_set_scroll_bar_foreground): New.
5707 (x_set_scroll_bar_background): New.
5708
26901792
DL
57091999-01-12 Gerd Moellmann <gerd@gnu.org>
5710
5711 * xdisp.c (handle_single_display_prop): New.
5712 (handle_display_prop): Call it.
5713 (handle_raise_prop): Removed.
5714 (handle_height_prop): Removed.
5715 (handle_space_width_prop): Removed.
5716 (handle_face_prop): Remove handling of raised text.
5717 (handle_display_prop): Do it here.
5718
5719 * dispextern.h (DISPLAY_PROP_IDX): Replaces GLYPH_PROP_IDX.
5720 (RAISE_PROP_IDX): Removed.
5721 (HEIGHT_PROP_IDX): Removed.
5722 (SPACE_WIDTH_PROP_IDX): Removed.
5723
5724 * xdisp.c (Qdisplay): Replaces Qglyph.
5725 (handle_display_prop): Formerly handle_glyph_prop.
5726
57271999-01-11 Gerd Moellmann <gerd@gnu.org>
5728
5729 * xdisp.c (reseat_to_string): Set position in display vector to -1.
5730 (handle_stop): Set position in display vector to -1. Don't
5731 check overlay strings when set up to deliver characters from a
5732 display vector.
5733 (set_iterator_to_next): At the end of a run of characters from a
5734 display vector, check whether the display vector display replaces
5735 the display of a character.
5736
57371999-01-05 Gerd Moellmann <gerd@gnu.org>
5738
5739 * xfaces.c (init_frame_faces): Don't realize faces if frame's
5740 X window hasn't been created yet.
5741
57421998-12-06 Gerd Moellmann <gerd@gnu.org>
5743
5744 * sound.c: New.
5745
57461998-12-04 Gerd Moellmann <gerd@gnu.org>
5747
5748 * config.in (HAVE_SOUND): New.
5749
5750 * emacs.c (main): Call syms_of_sound and init_sound.
5751
5752 * Makefile.in (obj): Add sound.o.
5753
5754 * configure.in: Add checks for machine/soundcard.h and sys/soundcard.h.
5755
5756 * config.in (HAVE_MACHINE_SOUNDCARD_H): New.
5757 (HAVE_SYS_SOUNDCARD_H): New.
5758
57591998-12-03 Gerd Moellmann <gerd@gnu.org>
5760
5761 * buffer.h (struct buffer): indicate_empty_lines renamed from
5762 indicate_zv_lines.
5763
5764 * buffer.c (indicate-empty-lines): Renamed from indicate_zv_lines.
5765 (default-indicate-zv-lines): Likewise.
5766
5767 * dispextern.h (struct glyph_row): Rename indicate_zv_line_p
5768 to indicate_empty_line_p.
5769
5770 * xdisp.c (reseat_at_next_visible_line_start): Reset method
5771 to next_element_from_buffer.
5772
5773 * frame.c (make_frame): Set n_current_toolbar_items to 0.
5774
5775 * xdisp.c (handle_face_prop): Allow symbols of the form `N+'
5776 and `N-'.
5777
5778 * xfns.c (xbm_scan): New.
5779 (xbm_read_hexint): Removed.
5780 (xbm_read_bitmap_file_data): Use xbm_scan.
5781
5782 * fileio.c (Finsert_file_contents): Prevent redisplay optimizations.
5783
57841998-12-02 Gerd Moellmann <gerd@gnu.org>
5785
5786 * xfns.c (xbm_read_hexint): New.
5787 (xbm_read_bitmap_file_data): New.
5788 (xbm_load_image_from_file): Call xbm_read_bitmap_file_data
5789 instead of XReadBitmapFileData.
5790
5791 * xdisp.c (handle_raise_prop): Compute voffset from current font.
5792
5793 * xfaces.c (face_with_height): New.
5794
5795 * xdisp.c (eval_handler): Renamed from eval_mode_handler.
5796 (eval_form): Renamed from eval_mode_element.
5797 (handle_face_prop): Use it.
5798 (Qheight): Replaces Qsmaller.
5799 (handle_height_prop): Replaces handle_smaller_prop.
5800 (handle_face_prop): If iterator's font_height is not an
5801 integer, evaluate it to get the font height to use.
5802
5803 * dispextern.h (HEIGHT_PROP_IDX): Replaces SMALLER_PROP_IDX.
5804 (struct it): Use `font_height' instead of `smaller'.
5805
58061998-12-01 Gerd Moellmann <gerd@gnu.org>
5807
5808 * xdisp.c (reseat_1): New.
5809 (reseat): Call it.
5810 (move_it_vertically_backward): Ditto.
5811 (redisplay_window): Don't abort when cursor not found in recenter.
5812
58131998-11-30 Gerd Moellmann <gerd@gnu.org>
5814
5815 * xdisp.c (reseat_at_next_visible_line_start): When not
5816 currently delivering display elements from the current buffer,
5817 restore buffer position first.
5818 (init_from_display_pos): Don't set IT's position from the
5819 position passed to this function.
5820
58211998-11-28 Gerd Moellmann <gerd@gnu.org>
5822
5823 * config.in (PROTO): Removed.
5824
5825 * xterm.h: Change PROTO to P_.
5826
58271998-11-26 Gerd Moellmann <gerd@gnu.org>
5828
5829 * xterm.c (take_vertical_position_into_account): New.
5830 (x_produce_image_glyph): Call it.
5831 (x_produce_stretch_glyph): Ditto.
5832 (x_produce_glyphs): Ditto.
5833 (x_fill_glyph_string): Adjust base line for glyph's voffset.
5834 (x_fill_composite_glyph_string): Ditto.
5835 (x_fill_image_glyph_string): Ditto.
5836 (x_fill_stretch_glyph_string): Ditto.
5837
5838 * xdisp.c (display_line): Always compute row height from
5839 max_ascent and max_descent.
5840
5841 * dispextern.h (struct glyph): Add voffset.
5842 (struct it): Replace height by descent, max_height by max_descent.
5843
5844 * xterm.c (x_append_glyph): Set voffset
5845 (x_append_stretch_glyph): Ditto.
5846 (x_produce_image_glyph): Ditto.
5847 (x_produce_glyphs): Take voffset into account.
5848 (x_produce_image_glyph): Ditto.
5849 (x_produce_stretch_glyph): Ditto.
5850
5851 * dispextern.h (struct it): Add voffset.
5852 * xdisp.c (push_it): Save voffset.
5853 (pop_it): Restore it.
5854
5855 * xdisp.c (it_props): Add entry for `raise'.
5856 (handle_raise_prop): New.
5857
5858 * dispextern.h (RAISE_PROP_IDX): New.
5859
5860 * xdisp.c (Qraise): New.
5861 (syms_of_xdisp): Define Qraised.
5862
5863 * xterm.c (x_scroll_bar_move): Clear to the left and right
5864 of toolkit scroll bars differently.
5865 (x_scroll_bar_move): Removed.
5866 (XTset_vertical_scroll_bar): Move code from x_scroll_bar_move here.
5867
5868 * dispextern.h: Make it compilable --with-x=no.
5869 * alloc.c: Ditto.
5870 * emacs.c: Ditto.
5871 * dispnew.c: Ditto.
5872 * keyboard.c: Ditto.
5873 * term.c: Ditto.
5874 * xdisp.c: Ditto.
5875 * xfaces.c: Ditto.
5876 * xfns.c: Ditto.
5877 * xmenu.c: Ditto.
5878
58791998-11-25 Gerd Moellmann <gerd@gnu.org>
5880
5881 * xterm.c (XTread_socket): Cancel help-echo when leaving frame.
5882
58831998-11-24 Gerd Moellmann <gerd@gnu.org>
5884
5885 * xterm.c (x_set_toolkit_scroll_bar_thumb): When dragging,
5886 update slider size, only.
5887 (xm_scroll_callback): Set dragging member of the scroll bar.
5888 (xt_action_hook): Reset last_scroll_bar_part.
5889 (XTredeem_scroll_bar): Reset bar->dragging to nil.
5890
26901792
DL
5891 * xfns.c (Fx_hide_busy_cursor): Don't try to hide busy cursor
5892 window on newly created frames that don't have one.
5893
58941998-11-23 Gerd Moellmann <gerd@gnu.org>
5895
5896 * xdisp.c (restore_overlay_strings): Removed.
5897 (restore_dpvec): Removed.
5898 (init_from_display_pos): Inline both functions above.
5899
5900 * xfns.c (IMAGE_NON_NEGATIVE_INTEGER_VALUE): New.
5901 (parse_image_spec): Handle it.
5902 (xbm_format): Use it.
5903 (xpm_format): Ditto.
5904 (pbm_format): Ditto.
5905 (jpeg_format): Ditto.
5906 (tiff_format): Ditto.
5907 (gif_format): Ditto.
5908 (gs_format): Ditto.
5909
5910 * xdisp.c (set_window_cursor): Removed.
5911 (redisplay_internal): Case cursor motion in cursor line of
5912 selected window; use set_cursor_from_row.
5913
59141998-11-22 Gerd Moellmann <gerd@gnu.org>
5915
5916 * widget.c (EmacsFrameSetCharSize): Take widget's border width
5917 into account.
5918
59191998-11-21 Gerd Moellmann <gerd@gnu.org>
5920
5921 * xterm.c (expose_frame): Redraw menu bar window.
5922
5923 * xdisp.c (display_menu_bar): Record hpos instead of x-position
5924 in menu item.
5925
5926 * dispnew.c (change_frame_size_1): Use FRAME_TOP_MARGIN instead
5927 of FRAME_TOOLBAR_LINES. Use `f' instead of `frame'.
5928
5929 * widget.c (set_frame_size): Use FRAME_SCROLL_BAR_COLS
5930 to determine vertical_scroll_bar_extra.
5931 (EmacsFrameSetCharSize): Ditto.
5932 * xfns.c (x_figure_window_size): Ditto.
5933
5934 * xterm.c (x_draw_row_bitmaps): Draw in `bitmap-area' face.
5935 (x_draw_bitmap): Ditto.
5936
5937 * dispextern.h (face_id): New id BITMAP_AREA_FACE_ID.
5938 * xfaces.c (realize_basic_faces): Realize it.
5939
59401998-11-20 Gerd Moellmann <gerd@gnu.org>
5941
5942 * xmenu.c (xmenu_show): Add workaround for remaining button grab
5943 under LessTif Use the widget of the frame as parent for the
5944 menu, again.
5945
59461998-11-19 Gerd Moellmann <gerd@gnu.org>
5947
5948 * xterm.c (XTread_socket): Inhibit busy cursor for EnterNotify.
5949 When EnterNotify, don't generate a mouse movement event if
5950 notification is from a busy-cursor child window.
5951
5952 * xterm.h (struct x_output): Add busy_window, remove cursor.
5953
5954 * xfns.c (Fx_show_busy_cursor): Formerly Fx_display_busy_cursor.
5955 Use a transparent window to display the busy-cursor.
5956 (Fx_hide_busy_cursor): Formerly Fx_undisplay_busy_cursor.
5957
59581998-11-17 Gerd Moellmann <gerd@gnu.org>
5959
5960 * xdisp.c (check_window_end): New, for debugging.
5961 (CHECK_WINDOW_END): New.
5962 (try_window_id): Use it.
5963
5964 * xterm.c (process_expose_from_menu): Return int.
5965
5966 * keyboard.c (kbd_buffer_get_event): Set flag to prevent recording
5967 TOOLBAR_EVENT events in last_nonmenu_event.
5968
59691998-11-16 Gerd Moellmann <gerd@gnu.org>
5970
5971 * xdisp.c (redisplay_window): If windows_or_buffers_changed,
5972 window end isn't reliable, so set window_end_valid to nil.
5973 (redisplay_internal): If overlay arrow has changed, set
5974 windows_or_buffers_changed to redisplay thoroughly.
5975
5976 * dispnew.c (adjust_glyph_matrix): Invalidate window end, if
5977 necessary.
5978
5979 * xfns.c (file_dialog_cb): New.
5980 (Fx_file_dialog): New.
5981 * fileio.c (Fread_file_name): Call it.
5982
5983 * xrdb.c (x_load_resources): Add default resoures for file
5984 selection dialog.
5985
59861998-11-14 Gerd Moellmann <gerd@gnu.org>
5987
5988 * xterm.c (note_mouse_highlight): Don't highlight when popup
5989 is active.
5990
26901792
DL
5991 * keyboard.c (timer_check): Inhibit busy cursor around calls to
5992 timer-event-handler. This busy cursor tends to be anoying if
5993 fontifying stealthily.
5994
5995 * dispnew.c (direct_output_for_insert): Give up if current row
5996 contains trailing whitespace.
5997
59981998-11-13 Gerd Moellmann <gerd@gnu.org>
5999
6000 * dispextern.h (prop_idx): Add FONTIFIED_PROP_IDX.
6001
6002 * xdisp.c (handle_fontified_prop): New.
6003 (Vfontification_functions): New.
6004 (Qfontification_functions): New.
6005 (it_props): Add handle_fontified_prop.
6006
60071998-11-12 Gerd Moellmann <gerd@gnu.org>
6008
6009 * xmenu.c (xmenu_show): Use the frame's edit_widget as parent.
6010 Otherwise, under LessTif, after the popup has gone, all button
6011 press events come in for the frame's widget, and release events
6012 come in for the edit_widget.
6013 * xterm.c (XTread_socket): Remove workaround for that problem.
6014 (x_set_toolkit_scroll_bar_thumb): Add workaround for LessTif
6015 XmScrollBarSetValues.
6016 (SET_SAVED_MENU_EVENT): Give it statement form.
6017
26901792
DL
6018 * xfaces.c (display_message): If waiting_for_input, don't display
6019 the message.
6020
6021 * window.c (scroll_command): If not acting on current_buffer,
6022 make redisplay consider all windows.
6023
6024 * xfns.c (Fx_hide_tip): Return t if tooltip was open.
6025
6026 * xdisp.c (handle_glyph_prop): Set it->object for images to
6027 the object having the glyph property.
6028
6029 * xterm.c (x_draw_row_bitmaps): Don't draw if row is completely
6030 invisible.
6031
60321998-11-11 Gerd Moellmann <gerd@gnu.org>
6033
6034 * xterm.h (struct x_display_info): Add gray pixmap. * xterm.c
6035 (x_term_init): Create the gray pixmap.
6036 (x_setup_relief_color): Use it.
6037 (x_get_glyph_string_clip_rect): Draw a toolbar window over the
6038 internal border at the top of a frame.
6039 (x_init_glyph_string): Likewise.
6040 (x_draw_glyph_string_relief): Correct right x by 1 pixel for
6041 full-width lines.
6042 (XTflash): Don't flash the toolbar window.
6043
6044 * xterm.c (XTread_socket): Workaround for LessTif popup menus
6045 in case of ButtonPress events.
6046
60471998-11-10 Gerd Moellmann <gerd@gnu.org>
6048
6049 * xrdb.c (x_load_resources): Add grey background colors as
6050 defaults for menus, scroll bars, and dialogs.
6051
6052 * insdel.c (prepare_to_modify_buffer): Move setting
6053 windows_or_buffers_changed from modify_region here.
6054
6055 * xfns.c (Fx_show_tip): Inhibit redisplay.
6056 (Fx_hide_tip): Ditto.
6057 (Fx_image_header): New.
6058
60591998-11-09 Gerd Moellmann <gerd@gnu.org>
6060
6061 * dispnew.c (clear_window_matrices): Set window_end_valid to nil
6062 when clearing current window matrices.
6063
60641998-11-08 Gerd Moellmann <gerd@gnu.org>
6065
6066 * xdisp.c (handle_glyph_prop): Don't set an iterator's buffer
6067 position from a string position. Use the right end position
6068 if the property spans a whole overlay string.
6069
60701998-11-07 Gerd Moellmann <gerd@gnu.org>
6071
6072 * xmenu.c (menubar_selection_callback): Remove workaround for
6073 Lesstif not calling XmNpopdownCallback because it doesn't
6074 handle the case where users don't select any menu item.
6075
26901792
DL
6076 * insdel.c (modify_region): Set windows_or_buffers_changed.
6077
6078 * buffer.c (set_buffer_internal): Don't set
6079 windows_or_buffers_changed.
6080
26901792
DL
6081 * xmenu.c (HAVE_BOXES): Define if USE_X_TOOLKIT.
6082
26901792
DL
6083 * xmenu.c (menubar_selection_callback): Add workaround for
6084 Lesstif not calling XmNpopdownCallback.
6085
6086 * xdisp.c (eval_mode_element): New.
6087 (eval_mode_handler): New.
6088 (display_mode_element): Use eval_mode_element.
6089
6090 * xdisp.c (display_mode_element): Allow `(:eval FORM)'.
6091 Remove code looking at text props of default value.
6092
6093 * xmenu.c (HAVE_BOXES): Define if using Lucid menus.
6094
26901792
DL
60951998-11-06 Gerd Moellmann <gerd@gnu.org>
6096
6097 * xmenu.c (single_submenu): Set button_type of menu to
6098 BUTTON_TYPE_NONE.
6099 (single_submenu): Likewise for panes and menu items.
6100 (set_frame_menubar): Set button_type of menu bar to none.
6101 (xmenu_show): Likewise.
6102 (single_submenu): Set widget values selected slot.
6103 (xmenu_show): Likewise.
6104
26901792
DL
6105 * xmenu.c (push_menu_item): Add parameters `type' and
6106 `selected'. Store it in menu_items.
6107 (MENU_ITEMS_ITEM_TYPE): New.
6108 (MENU_ITEMS_ITEM_SELECTED): New.
6109 (MENU_ITEMS_ITEM_LENGTH): Increase by two.
6110
6111 * xfns.c (clear_image_cache): Get the current time, before
6112 doing anything.
6113 (cache_image): Set prev pointer of next image.
6114 (clear_image_cache): Clear current matrices if any image was
6115 freed.
6116
6117 * xterm.c (XTread_socket): Set inhibit_busy_cursor.
6118
6119 * xfns.c (x_set_cursor): New.
6120 (Fx_display_busy_cursor): New.
6121 (Fx_undisplay_busy_cursor): New.
6122
6123 * xterm.h (struct x_output): Add busy_cursor.
6124
6125 * xfns.c (Vx_busy_pointer_shape): New.
6126 (x_set_mouse_color): Create busy cursor.
6127
6128 * process.c (wait_reading_process_input): Show and hide busy
6129 cursor.
6130
6131 * keyboard.c (command_loop_1): Display busy cursor.
6132
6133 * eval.c (Fsignal): Hide busy cursor.
6134
6135 * buffer.c (set_buffer_internal): Don't set
6136 windows_or_buffers_changed.
6137
6138 * xterm.c (redo_mouse_highlight): New.
6139
61401998-11-04 Gerd Moellmann <gerd@gnu.org>
6141
26901792
DL
6142 * xfns.c (x_create_x_image_and_pixmap): Add depth parameter.
6143 (x_build_heuritic_mask): New.
6144 (lookup_image): Call it.
6145
6146 * xterm.c (note_toolbar_highlight): Always set up help_echo.
6147 (previous_help_echo): New.
6148 (XTread_socket): Generate help event with nil message when
6149 leaving a region with help-echo.
6150 (note_mouse_highlight): Handle `help-echo' over text.
6151 (XTread_socket): Dispatch VisibilityNotify, CirculateNotify,
6152 CirculateRequest.
6153 (clear_mouse_face): Don't clear if tooltip is shown.
6154 (XTread_socket): Redo mouse-highlight after tooltip is gone.
6155 Avoid SET_FRAME_GARBAGED when tooltip is mapped.
6156
6157 * keyboard.c (Vshow_help_function): New.
6158 (read_char): Use it.
6159
61601998-11-03 Gerd Moellmann <gerd@gnu.org>
6161
6162 * xfns.c (x_create_tip_frame): New.
6163 (Fx_show_tip): New.
6164 (Fx_hide_tip): New.
6165
6166 * xterm.c (x_destroy_window): Handle case that we don't have
6167 a widget.
6168
6169 * dispextern.h (struct glyph_row): Rename no_marginal_areas_p
6170 to full_width_p. Add internal_border_p.
6171
61721998-11-02 Gerd Moellmann <gerd@gnu.org>
6173
6174 * xterm.c (note_mode_line_highlight): Check the charpos of
6175 the glyph under the mouse pointer before accessing text
6176 properties at that position.
6177
61781998-11-01 Gerd Moellmann <gerd@gnu.org>
6179
6180 * xterm.c (x_draw_image_relief): Handle toolbar_button_relief.
6181
6182 * xdisp.c (auto-raise-toolbar-buttons): New.
6183 (build_desired_toolbar_string): Handle the flag.
6184 (toolbar-button-margin): New.
6185 (toolbar-button-relief): New.
6186 (build_desired_toolbar_string): Use margin and relief.
6187
6188 * xterm.c (x_set_toolkit_scroll_bar_thumb): Remove workaround
6189 for FreeBSD.
6190 (note_mode_line_highlight): New.
6191 (note_mouse_highlight): Call it.
6192
61931998-10-31 Gerd Moellmann <gerd@gnu.org>
6194
6195 * s/freebsd.h (NARROWPROTO): New.
6196
6197 * xdisp.c (display_string): New parameter face_string.
6198 (display_mode_element): When displaying a symbol with a string
6199 value, use text properties from the symbol's default value, maybe.
6200
6201 * xrdb.c (x_load_resources): Add font defaults for menus and
6202 dialogs.
6203
62041998-10-30 Gerd Moellmann <gerd@gnu.org>
6205
6206 * xfns.c (Fx_create_frame): Try 12pt Courier font first.
6207
62081998-10-29 Gerd Moellmann <gerd@gnu.org>
6209
6210 * xterm.c (x_produce_glyphs): Fix bug causing glyphs to be
6211 produced for characters with codes < 32 under certain
6212 circumstances.
6213
6214 * xdisp.c (redisplay_window): Handle values of PT in front
6215 of invisible, intangible text.
6216 (try_window_id): Set overlay_arrow_seen to zero before
6217 displaying lines.
6218 (display_mode_element): Assign to glyphs written for a mode
6219 line spec `%x' as object the Lisp format string, as position
6220 the position of the `%' in that string.
6221 (display_string): If displaying a C string, optionally get
6222 the face to use from a Lisp string.
6223
6224 * xterm.c (expose_window_tree): Include mode line height.
6225
6226 * xfns.c (Fx_create_frame): Add toolbar height to frame height.
6227
62281998-10-27 Gerd Moellmann <gerd@gnu.org>
6229
6230 * xterm.c (note_mouse_highlight): Change mouse pointer shape
6231 over mode line.
6232
62331998-10-26 Gerd Moellmann <gerd@gnu.org>
6234
6235 * window.c (coordinates_in_window): Use CURRENT_MODE_LINE_HEIGHT.
6236
6237 * xdisp.c (redisplay_window): If mode line height has changed,
6238 arrange for a thorough immediate redisplay using the correct mode
6239 line height.
6240 (window_box_height): Use CURRENT_MODE_LINE_HEIGHT.
6241
6242 * dispextern.h (MATRIX_MODE_LINE_HEIGHT): New.
6243 (CURRENT_MODE_LINE_HEIGHT): New.
6244 (DESIRED_MODE_LINE_HEIGHT): New.
6245
6246 * keyboard.c (make_lispy_event): Add string and string position
6247 info to mouse-click events.
6248 (read_key_sequence): Handle `local-map' property of mode line
6249 strings.
6250
6251 * keyboard.h (POSN_STRING): New.
6252
62531998-10-25 Gerd Moellmann <gerd@gnu.org>
6254
6255 * dispnew.c (mode_line_string): Mew.
6256
6257 * xterm.c (xt_action_hook): New.
6258 (x_create_toolkit_scroll_bar): Add action hook.
6259 (xm_scroll_callback): Implement dragging.
6260
6261 * keyboard.c (Qend_scroll): New.
6262 (scroll_bar_parts): Add it.
6263
6264 * termhooks.h (scroll_bar_end_scroll): New.
6265
6266 * xterm.c (XTread_socket): Bug fix.
6267
62681998-10-24 Gerd Moellmann <gerd@gnu.org>
6269
6270 * xdisp.c (redisplay_window): Finish scroll bars after
6271 redisplaying toolbar.
6272
6273 * keyboard.c (scroll_bar_parts): Add Qtop and Qbottom.
6274 (syms_of_keyboard): Add Qbottom.
6275
6276 * termhooks.h (scroll_bar_to_top): New.
6277 (scroll_bar_to_bottom): New.
6278
6279 * xdisp.c (redisplay_window): Always resize toolbar window if
6280 auto_resize_toolbar_p is non-zero.
6281 (auto_resize_toolbar_p): Renamed from auto_resize_toolbar.
6282 (window_box): New.
6283 (window_box_height): New.
6284 (window_box_width): New.
6285 (window_box_left): New.
6286 (window_box_right): New.
6287 (window_box_edges): New.
6288
62891998-10-23 Gerd Moellmann <gerd@gnu.org>
6290
6291 * xterm.c (x_set_toolkit_scroll_bar_thumb): Kluge for call to
6292 XawScrollbarSetThumb in FreeBSD.
6293 (x_create_toolkit_scroll_bar): Set resource "beNiceToColormap"
6294 to true.
6295
6296 * window.c (get_phys_cursor_glyph): Return null if cursor vpos
6297 is out of range.
6298
6299 * xterm.c (x_create_toolkit_scroll_bar): Set scroll_bar_pixel.
6300 (x_term_init): Initialize it.
6301
6302 * xterm.h (struct x_display_info): Add scroll_bar_pixel.
6303
6304 * xterm.c (x_create_toolkit_scroll_bar): Set LessTif scroll bar's
6305 cursor.
6306
63071998-10-22 Gerd Moellmann <gerd@gnu.org>
6308
6309 * keyboard.c (make_lispy_event): Handle scroll_bar_click
6310 differently when using toolkit scroll bars.
6311
6312 * xterm.c (x_send_scroll_bar_event): New.
6313 (x_scroll_bar_to_input_event): New.
6314 (xaw3d_scroll_callback): New.
6315 (xaw3d_jump_callback): New.
6316 (xm_scroll_callback): New.
6317 (x_toolkit_scroll_p): New.
6318 (XTread_socket): Handle scroll bar client message.
6319 (x_term_init): Initialize Xatom_Scrollbar.
6320 (x_scroll_bar_create): Set cursor.
6321 (xm_scroll_callback):
6322 (x_create_toolkit_scroll_bar): New.
6323 (x_set_toolkit_scroll_bar_thumb): New.
6324 (x_scroll_bar_create): Call x_create_toolkit_scroll_bar.
6325 (XTset_vertical_scroll_bar): Call x_set_toolkit_scroll_bar_thumb.
6326
6327 * xterm.h (struct x_display_info): Add Xatom_Scrollbar.
6328
63291998-10-21 Gerd Moellmann <gerd@gnu.org>
6330
6331 * xterm.c (x_scroll_bar_remove): Handle toolkit scroll bars.
6332 (XTread_socket): Don't handle mouse button events for scroll bars
6333 if using toolkit scroll bars.
6334 (XTset_vertical_scroll_bar): Set thumb size and position for
6335 Athena scroll bar.
6336
6337 * xterm.h (scroll_bar): Add x_widget_low and x_widget_high.
6338
6339 * xterm.c (XTread_socket): Dispatch expose event to widget
6340 if using toolkit scroll bars.
6341 (x_scroll_bar_expose): Make no-op for toolkit scroll bars.
6342 (x_scroll_bar_create): Create and show a scroll bar widget
6343 if using toolkit scroll bars.
6344 (x_scroll_bar_move): Handle tookit scroll bars.
6345
6346 * Makefile.in (LIBW): Use Xaw3d if present.
6347
6348 * configure.in (USE_TOOLKIT_SCROLL_BARS): New.
6349 (HAVE_XAW3D): New.
6350
6351 * config.in (USE_TOOLKIT_SCROLL_BARS): New.
6352 (HAVE_XAW3D): New.
6353
6354 * xterm.c (XTset_vertical_scroll_bar): Correct position of
6355 right vertical scroll bar.
6356
63571998-10-20 Gerd Moellmann <gerd@gnu.org>
6358
6359 * xfns.c (xpm_load): Support reading XPM images from string
6360 buffers containing data in the same format as an XPM file.
6361 Support `:color-symbols'.
6362 (xpm_format): Add `:data'.
6363 (xpm_keyword_index): Add XPM_DATA.
6364 (syms_of_xfns): Add `:color-symbols'.
6365 (xpm_keyword_index): Add XPM_COLOR_SYMBOLS.
6366 (xpm_valid_color_symbols_p): New.
6367 (xpm_image_p): Call it.
6368
6369 * xdisp.c (build_desired_toolbar_string): Add `:algorithm'
6370 attribute to the image if item is not enabled.
6371
6372 * xfns.c (x_laplace): New.
6373 (x_laplace_read_row): New.
6374 (x_laplace_write_row): New.
6375 (lookup_image): Handle common image attributes here. New
6376 attribute `:algorithm'.
6377
6378 * xfaces.c (clear_face_cache): Call clear_image_cache.
6379
6380 * xterm.c (x_inverted_image_mask): Removed.
6381 (x_draw_image_foreground_1): New.
6382 (x_draw_image_glyph_string): Draw images with mask to a temporary
6383 pixmap to reduce flickering.
6384
6385 * xdisp.c (redisplay_toolbar): Handle auto-resize-toolbars.
6386 (display_toolbar_line): Remove parameter `margin'.
6387
63881998-10-19 Gerd Moellmann <gerd@gnu.org>
6389
6390 * xdisp.c (toolbar_lines_needed): New.
6391 (auto-resize-toolbars): New.
6392
6393 * xfns.c (cache_image): Correct call to xrealloc.
6394
6395 * dispnew.c (Fset_toolbar_height): Removed.
6396
6397 * xdisp.c (init_xdisp): Use FRAME_TOP_MARGIN instead of
6398 FRAME_MENU_BAR_LINES.
6399
6400 * window.c (Fdelete_other_windows): Use FRAME_TOP_MARGIN
6401 instead of FRAME_MENU_BAR_LINES.
6402 (check_frame_size): Ditto.
6403
6404 * dispnew.c (adjust_frame_glyphs_initially): Use FRAME_TOP_MARGIN
6405 instead of FRAME_MENU_BAR_LINES.
6406 (adjust_frame_glyphs_for_frame_redisplay): Ditto.
6407 (build_frame_matrix): Ditto.
6408 (change_frame_size_1): Ditto.
6409
6410 * frame.h (FRAME_TOOLBAR_LINES): New.
6411 (FRAME_TOP_MARGIN): New.
6412
6413 * window.c (struct save_window_data): Add frame_toolbar_lines.
6414 (Fset_window_configuration): Handle toolbar lines.
6415 (Fcurrent_window_configuration): Save toolbar lines.
6416
6417 * frame.c (syms_of_frame_1): Add Qtoolbar_lines.
6418
6419 * xfns.c (Fx_create_frame): Add default parameter for toolbar.
6420
6421 * frame.h (struct frame): Rename top_margin to toolbar_lines.
6422
6423 * xfns.c (x_frame_parms): Add `toolbar-lines'.
6424 (x_set_toolbar_lines): New.
6425
6426 * keyboard.c (cmd_error_internal): Bug fix.
6427
6428 * xterm.c: Remove double include of syssignal.h.
6429
64301998-10-18 Gerd Moellmann <gerd@gnu.org>
6431
6432 * xterm.c (x_toolbar_item): New.
6433 (x_handle_toolbar_click): Use it.
6434 (note_toolbar_highlight): Use it.
6435
6436 * keyboard.c (syms_of_keyboard): Staticpro toolbar_item_properties
6437 and toolbar_items_vectors.
6438
6439 * xterm.c (help_echo): New.
6440 (draw_glyphs_face): Add DRAW_IMAGE_RAISED and DRAW_IMAGE_SUNKEN.
6441 (x_set_glyph_string_gc): Handle them.
6442 (x_after_update_window_line): Don't do anything in pseudo-windows.
6443 (x_produce_image_glyph): Take image margin and face relief into
6444 account.
6445 (x_get_glyph_string_clip_rect): Handle pseudo-windows.
6446 (x_draw_glyph_string_background): Optimize case when face has
6447 relief.
6448 (x_setup_relief_color): Take frame instead of glyph string
6449 parameter.
6450 (x_draw_relief_rect): New.
6451 (x_draw_glyph_string_relief): Call it.
6452 (x_draw_image_glyph_string_foreground): Handle margin and image
6453 relief.
6454 (x_draw_image_glyph_string_background): Ditto.
6455 (expose_frame): Redraw toolbar window.
6456 (expose_window): Don't draw cursor for pseudo-windows.
6457 (x_y_to_hpos_vpos): Handle pseudo-windows.
6458 (frame_to_window_pixel_xy): New.
6459 (note_mouse_highlight): Call note_toolbar_highlight.
6460 (x_handle_toolbar_click): New.
6461 (note_toolbar_highlight): New.
6462 (show_mouse_face): Change int parameter `hl' to parameter of
6463 type enum draw_glyphs_face. Handle image highlighting.
6464 (XTread_socket): Return a HELP_EVENT input event if help_echo is
6465 non-nil. Use x_handle_toolbar_click.
6466
6467 * termhooks.h (event_kind): Add HELP_EVENT, TOOLBAR_EVENT.
6468
6469 * xfns.c (image_value_type): Add IMAGE_INTEGER_VALUE,
6470 IMAGE_BOOL_VALUE.
6471 (parse_image_spec): Handle them.
6472 (image_spec_value): Additional parameter found.
6473 (free_image): Remove image from the vector `images' of the
6474 image cache.
6475 (clear_image_cache): Additional parameter force_p.
6476 (Fclear_image_cache): New.
6477 (x_find_image_file): New.
6478 (xbm_load): Handle `:margin' and `:relief'. Use
6479 x_find_image_file.
6480 (xpm_load): Likewise.
6481 (pbm_load): Likewise.
6482 (jpeg_load): Likewise.
6483 (tiff_load): Likewise.
6484 (gif_load): Likewise.
6485
6486 * keyboard.c (Qhelp_echo): New symbol.
6487 (read_char): Handle `toolbar' and `help_echo' events.
6488 (kbd_buffer_get_event): Handle HELP_ECHO input event.
6489 (make_lispy_event): Handle TOOLBAR_EVENT.
6490 (toolbar_items): New.
6491 (process_toolbar_item): New.
6492 (PROP): New.
6493 (init_toolbar_items): New.
6494 (append_toolbar_item): New.
6495 (read_char_x_menu_prompt): Handle `toolbar' event.
6496 (read_key_sequence): Ditto.
6497
6498 * xfaces.c (Qtoolbar): New.
6499 (realize_basic_faces): Realize `toolbar' face.
6500 (face_at_string_position): Remove parameter modeline_p, add
6501 base_face_id.
6502
6503 * xfns.c (xbm_load_image_from_file): Don't use Xmu function
6504 to read data.
6505
65061998-10-17 Gerd Moellmann <gerd@gnu.org>
6507
6508 * xdisp.c (init_iterator): Replace parameter modeline_p with
6509 base_face_id.
6510 (next_element_from_string): Call get_next_display_element
6511 recursively after handling text properties.
6512 (prepare_menu_bars): Call update_toolbar.
6513 (update_toolbar): New.
6514 (build_desired_toolbar_string): New.
6515 (display_toolbar_line): New.
6516 (redisplay_toolbar): New.
6517 (toolbar_item_info): New.
6518 (redisplay_window): Call redisplay_toolbar.
6519 (Fdump_toolbar_row): New. Defined if compiled with GLYPH_DEBUG.
6520
6521 * dispnew.c (clear_current_matrices): Clear matrices of toolbar
6522 window.
6523 (clear_desired_matrices): Ditto.
6524 (adjust_frame_glyphs_for_window_redisplay): Make toolbar window.
6525 (free_glyphs): Free matrices of toolbar window.
6526 (update_frame): Update toolbar window.
6527 (change_frame_size_1): Take toolbar into account.
6528 (Fset_toolbar_height): New.
6529
6530 * dispextern.h (struct it): Remove member modeline_p, add
6531 base_face_id.
6532 (struct image): Add members relief and margin.
6533 (IMAGE_ASCENT): Include margin in height.
6534
65351998-10-14 Gerd Moellmann <gerd@gnu.org>
6536
6537 * xfns.c (Fclear_image_cache): New.
6538
6539 * xfaces.c (realize_basic_faces): Realize toolbar face.
6540 (face_at_string_position): Remove parameter modeline_p, add
6541 base_face_id.
6542
6543 * dispextern.h (enum face_id): Add TOOLBAR_FACE_ID.
6544
65451998-10-13 Gerd Moellmann <gerd@gnu.org>
6546
6547 * keyboard.c (syms_of_keyboard): Intern `:help'.
6548
65491998-10-12 Gerd Moellmann <gerd@gnu.org>
6550
6551 * xterm.c (note_toolbar_highlight): New.
6552 (note_mouse_highlight): Call it.
6553
6554 * window.c (window_from_coordinates): Additional parameter toolbar_p.
6555 (coordinates_in_window): Handle toolbar window.
6556
6557 * keyboard.c (toolbar_items): New.
6558 (process_toolbar_item): New.
6559 (parse_toolbar_item): New.
6560 (init_toolbar_items): New.
6561 (append_toolbar_item): New.
6562
6563 * dispextern.h (enum toolbar_item_idx): New.
6564 (enum toolbar_item_image): New.
6565
6566 * frame.h (struct frame): Add toolbar-related members.
6567
6568 * xfaces.c (face_at_string_position): Remove assertion that
6569 current_buffer == window's buffer. This is not the case when
6570 called for the toolbar window.
6571
6572 * frame.c (make_frame): Initialize toolbar members.
6573
6574 * alloc.c (mark_object): Mark toolbar data of frames.
6575
6576 * frame.h (struct frame): Add toolbar-related members
6577 toolbar_window, desired_toolbar_items, current_toolbar_items,
6578 desired_toolbar_string, current_toolbar_string,
6579 n_desired_toolbar_items, n_current_toolbar_items. Add
6580 window_height.
6581
6582 * xterm.c (x_after_update_window_line): Don't draw bitmap
6583 areas for pseudo-windows.
6584 (expose_frame): Handle toolbar window.
6585 (expose_window): Don't do cursor stuff for pseudo-windows.
6586
6587 * xdisp.c (display_menu_bar): Correct calls to init_iterator.
6588
65891998-10-11 Gerd Moellmann <gerd@gnu.org>
6590
6591 * frame.c (make_frame): Initialize toolbar_window.
6592
6593 * alloc.c (mark_object): Make the toolbar window.
6594
6595 * dispnew.c (update_frame): Update frame's toolbar_window.
6596 (clear_current_matrices): Likewise.
6597 (clear_desired_matrices): Likewise.
6598 (adjust_frame_glyphs_for_window_redisplay): Make toolbar_window.
6599 (free_glyphs): Free the toolbar window and its matrices.
6600
6601 * frame.h (struct frame): Add toolbar_window.
6602
6603 * xterm.c (x_draw_glyph_string_relief): Handle mouse-face
6604 with relief.
6605
66061998-10-10 Gerd Moellmann <gerd@gnu.org>
6607
6608 * dispnew.c (buffer_posn_from_coords): Don't screw up if
6609 window start is not in the range BEGV..ZV.
6610
66111998-10-09 Gerd Moellmann <gerd@gnu.org>
6612
6613 * xdisp.c (try_scrolling): Experimentally handle the case
6614 that scroll-preserve-screen-position is set to `always'.
6615
6616 * window.c (Vscroll_preserve_screen_position): Replacement for
6617 scroll_preserve_screen_position.
6618
66191998-10-08 Gerd Moellmann <gerd@gnu.org>
6620
6621 * dispnew.c: Don't initialize auto structs; the HP/UX compiler
6622 doesn't like it.
6623 * xdisp.c: Ditto.
6624
6625 * xdisp.c (make_cursor_line_fully_visible): Adjust this_line_y.
6626
66271998-10-06 Gerd Moellmann <gerd@gnu.org>
6628
6629 * minibuf.c (Fminibuffer_complete_word): Fix computation of
6630 i_byte when prompts are inserted into minibuffers.
6631
6632 * dispextern.h (FRAME_INTERNAL_BORDER_WIDTH_SAFE): New.
6633 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X): Use it.
6634 (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y): Ditto.
6635
66361998-10-04 Gerd Moellmann <gerd@gnu.org>
6637
6638 * xdisp.c (make_cursor_line_fully_visible): New.
6639 (try_scrolling): New.
6640 (redisplay_window): Move scrolling code to try_scrolling.
6641 (make_cursor_line_fully_visible): Handle case of window too small
6642 to show a single line.
6643 (redisplay_window): Case forced window start---use
6644 make_cursor_line_fully_visible.
6645 (redisplay_window): Case cursor movement via current matrix.
6646 If ending up on a partially visible line, make it fully visible
6647 instead of recentering.
6648 (try_scrolling): Additional parameter scroll_smoothly.
6649
6650 * xterm.c (x_draw_bitmap): Don't XClearArea under the pixmap.
6651
66521998-09-28 Gerd Moellmann <gerd@gnu.org>
6653
6654 * window.c (window_scroll_pixel_based): Bug fix: vpos used
6655 instead of y-position for scroll-preserved-screen-position.
6656
66571998-09-07 Gerd Moellmann <gerd@gnu.org>
6658
6659 * dispnew.c (update_frame_line): If current row is not enabled,
6660 write the whole line.
6661
66621998-09-06 Gerd Moellmann <gerd@gnu.org>
6663
6664 * lisp.h (HAVE_FACES): Removed.
6665
6666 * dispextern.h (HAVE_FACES): Removed.
6667
6668 * config.in (HAVE_FACES): Removed.
6669
6670 * dispnew.c (HAVE_FACES): Removed.
6671
6672 * xdisp.c (HAVE_FACES): Removed.
6673
6674 * xfaces.c (HAVE_FACES): Removed.
6675
66761998-09-05 Gerd Moellmann <gerd@gnu.org>
6677
6678 * xdisp.c (init_iterator): If face_change_count is non-zero,
6679 free realized faces.
6680
6681 * xfaces.c (free_all_realized_faces): Make it externally visible.
6682 (Finternal_set_lisp_face_attribute): Increment
6683 windows_or_buffers_changed.
6684
6685 * dispnew.c (direct_output_for_insert): Give up if
6686 face_change_count is non-zero.
6687 (direct_output_forward_char): Ditto.
6688
6689 * xfaces.c (face_change_count): New.
6690
66911998-09-04 Gerd Moellmann <gerd@gnu.org>
6692
6693 * xterm.c (x_draw_bar_cursor): Don't draw if cursor hpos is out
6694 of range.
6695
66961998-09-03 Gerd Moellmann <gerd@gnu.org>
6697
6698 * term.c (Ftty_display_color_p): New.
6699
67001998-09-02 Gerd Moellmann <gerd@gnu.org>
6701
6702 * xfaces.c (Ftty_defined_colors): New.
6703
6704 * xterm.c (x_produce_glyphs): Fix computation of
6705 contains_overlapping_glyphs_p for ASCII.
6706
6707 * dispnew.c (Fshow_cursor): Don't change cursor state while
6708 redisplaying.
6709 (direct_output_for_insert): If a glyph with lbearing or rbearing
6710 is among the new glyphs, set row flag contains_overlapping_glyph_p.
6711
67121998-09-01 Gerd Moellmann <gerd@gnu.org>
6713
6714 * term.c (OUTPUT_IF): Make replacement text have statement form.
6715 (OUTPUT1_IF): Ditto.
6716 (TS_italic_mode, TS_end_italic_mode): Removed.
6717 (TS_bold_mode): Removed.
6718 (TS_underscore_mode, TS_end_underscore_mode): Removed.
6719 (TS_enter_bold_mode, TS_enter_dim_mode, TS_enter_blink_mode): New.
6720 (TS_enter_reverse_mode): New.
6721 (TS_enter_underline_mode, TS_exit_underline_mode): New.
6722 (TN_magic_cookie_glitch_ul): New.
6723 (TS_enter_alt_charset_mode, TS_exit_alt_charset_mode): New.
6724 (TS_exit_attribute_mode): New.
6725 (TN_max_colors, TN_max_pairs, TS_orig_pairs): New.
6726 (TS_set_foreground, TS_set_background): New.
6727 (reset_terminal_modes): Switch colors back to default.
6728 (write_glyphs): Turn face on before writing text, turn it off
6729 afterwards.
6730 (insert_glyphs): Ditto.
6731 (term_init): Initialize new terminal capability variables.
6732 (turn_on_face): Turn a face on.
6733 (turn_off_face): Turn a face off.
6734
6735 * lisp.h (MAKE_GLYPH): Remove test for frame type.
6736 (GLYPH_CHAR): Ditto.
6737 (GLYPH_FACE): Ditto.
6738
6739 * xfaces.c (Vface_tty_color_alist): New.
6740 (face-register-tty-color): New.
6741 (face-clear-tty-colors): New.
6742
6743 * dispextern.h (FACE_TTY_DEFAULT_COLOR): New.
6744 (struct it): Remove member faces_p since we now always have faces.
6745
67461998-08-31 Gerd Moellmann <gerd@gnu.org>
6747
6748 * dispextern.h (struct face): Add tty appearance flags.
6749
6750 * xdisp.c (init_iterator): Always handle faces.
6751 (extend_face_to_end_of_line): Handle tty frames.
6752
6753 * dispnew.c (clear_glyph_matrix): Allow a null matrix to be
6754 passed in.
6755
67561998-08-30 Gerd Moellmann <gerd@gnu.org>
6757
6758 * xfaces.c (realize_default_face): Use empty strings to indicate
6759 that the face should use the default foreground/background
6760 color of the terminal. Fill font-related attributes with
6761 appropriate values for tty frames.
6762
6763 * emacs.c (main): Call syms_of_xfaces before init_window_once.
6764
6765 * xfaces.c (realize_default_face): If face `default' is not
6766 yet known, create it.
6767
6768 * frame.c (make_terminal_frame): Call init_frame_faces
6769 unconditionally.
6770
6771 * xfaces.c (init_frame_faces): Make it work for tty frames.
6772 (free_frame_faces): Ditto.
6773 (clear_face_cache): Ditto.
6774 (recompute_basic_faces): Ditto.
6775 (Fframe_face_alist): Ditto.
6776 (free_realized_face): Ditto.
6777 (prepare_face_for_display): Ditto.
6778 (clear_face_gcs): Ditto.
6779 (lookup_face): Ditto.
6780 (smaller_face): Ditto.
6781 (realize_default_face): Ditto.
6782 (realize_face): Ditto.
6783 (realize_face): Dispatch to functions depending on the frame type.
6784 (realize_x_face): X way of realizing faces.
6785 (realize_tty_face): TTY way of realizing faces.
6786
67871998-08-29 Gerd Moellmann <gerd@gnu.org>
6788
6789 * xfaces.c (realize_face): Remove parameter unibyte_registry,
6790 compute it instead.
6791 (lookup_face): Remove local variable unibyte_registry.
6792
67931998-08-22 Gerd Moellmann <gerd@gnu.org>
6794
6795 * xterm.c (x_draw_glyph_string_relief): Draw top and bottom lines
6796 1 pixel longer.
6797
6798 * xdisp.c (face_before_or_after_it_pos): Fix computation
6799 of face in buffer.
6800
6801 * editfns.c (make_buffer_string_both): If prompt in buffer,
6802 prevent start > end.
6803
6804 * indent.c (Fvertical_motion): Set current_buffer to window's
6805 buffer if it isn't already.
6806
68071998-08-21 Gerd Moellmann <gerd@gnu.org>
6808
6809 * dispextern.h (GLYPH_DEBUG): Use default 0.
6810
6811 * xdisp.c (it_props): New member `smaller'.
6812 (init_iterator): Initialize it.
6813 (Qsmaller): New.
6814 (push_it): Save value of `smaller' value on the stack.
6815 (pop_it): Restore `smaller' from the stack.
6816 (handle_smaller_prop): New.
6817 (handle_face_prop): Use `smaller' text property to select a
6818 suitable face.
6819
6820 * dispextern.h (SMALLER_PROP_IDX): New.
6821 (struct it): Add member `smaller'.
6822
6823 * xfaces.c (smaller_face): New.
6824
6825 * frame.h (FRAME_WINDOW_WIDTH_ARG): Add bitmap area widths.
6826
6827 * dispnew.c (allocate_matrices_for_window_redisplay): Compute
6828 total pixel width of window differently.
6829
6830 * xdisp.c (init_iterator): Compute width of mode line differently.
6831
6832 * dispextern.h (WINDOW_DISPLAY_PIXEL_WIDTH): Subtract width
6833 of bitmap areas.
6834
6835 * window.c (Fsplit_window): Include width of bitmap areas in
6836 window width.
6837 (window_internal_width): Subtract width of bitmap areas from
6838 total width.
6839
68401998-08-18 Gerd Moellmann <gerd@gnu.org>
6841
6842 * xdisp.c: Functions reordered for better readability.
6843
6844 * dispnew.c (update_text_area): Handle glyphs with arbitrary
6845 lbearing.
6846 (update_window_tree): Parameter no_scrolling_p removed.
6847 (update_single_window): Ditto.
6848
6849 * xterm.c (x_get_char_font_and_encoding): Renamed to
6850 x_get_char_face_and_encoding.
6851
6852 * dispnew.c (update_text_area): Don't call get_glyph_overhangs
6853 if end of current row reached.
6854
6855 * xterm.c (x_get_glyph_face_and_encoding): New.
6856 (x_get_glyph_overhangs): Call it.
6857
6858 * xdisp.c (Qshow_trailing_whitespace): New.
6859 (Qtrailing_whitespace): New.
6860 (enum prop_handled): New.
6861 (struct props, it_props): New.
6862 (next_overlay_change): New. Works like Fnext_overlay_change
6863 but doesn't use xmalloc.
6864 (handle_stop): Restructured.
6865 (face_before_or_after_it_pos): Case iteration over a string: fix
6866 handling of face before current position.
6867
68681998-08-16 Gerd Moellmann <gerd@gnu.org>
6869
6870 * dispnew.c (adjust_glyph_matrix): Don't optimize matrix
6871 reallocation matrix if fonts_changed_p.
6872 (update_text_area): Handle glyphs with lbearing.
6873
68741998-08-14 Gerd Moellmann <gerd@gnu.org>
6875
6876 * xdisp.c (struct props): New.
6877 (it_props): New.
6878 (compute_prop_info): New.
6879 (handle_stop): New.
6880
6881 * textprop.c (validate_interval_range): Make it externally
6882 visible.
6883
6884 * dispnew.c (direct_output_for_insert): Remove calls
6885 to compute_stop_pos.
6886
6887 * dispextern.h (struct it): Remove check_charpos,
6888 next_overlay_pos. Add what_changes.
6889
68901998-08-10 Gerd Moellmann <gerd@gnu.org>
6891
6892 * xterm.c (note_mouse_highlight): Set BEGV_BYTE, ZV_BYTE.
6893
6894 * xfaces.c (Vx_unibyte_registry_and_encoding): Removed. Use
6895 face_default_registry instead.
6896
6897 * syntax.c (scan_sexps_forward): Set up syntax table before
6898 jumping to initial state label.
6899
69001998-08-09 Gerd Moellmann <gerd@gnu.org>
6901
6902 * dispnew.c (check_matrix_invariants): Handle case of row end pos
6903 >= ZV specially.
6904
69051998-08-08 Gerd Moellmann <gerd@gnu.org>
6906
6907 * xdisp.c (redisplay_window): Case cursor movement---if cursor
6908 ends up in partially visible row, try to scroll. Case forced
6909 window start---handle windows not tall enough to show a single
6910 line.
6911
6912 * window.h (struct window): Member dy renamed vscroll.
6913
6914 * xterm.c (x_list_fonts): Re-activate suppression of scalable
6915 fonts.
6916 (x_draw_stretch_glyph_string): Set clipping if using GC that
6917 hasn't set it yet.
6918
6919 * xdisp.c (redisplay_window): Case forced window start -
6920 don't let cursor end on partially visible row. Use desired
6921 matrix to find a suitable PT if it doesn't appear.
6922 (decode_mode_spec): Merged with 20.2.97.
6923 (try_window_reusing_current_matrix): Give up if old or
6924 new display is vscrolled.
6925 (redisplay_window): Reset vscrolling if forced window start,
6926 or if recentering.
6927
69281998-08-06 Gerd Moellmann <gerd@gnu.org>
6929
6930 * xfaces.c (realize_default_face): Use the fontset name instead of
6931 the alias for the family attribute of the default face because we
6932 can't easily determine a good alias from fontset-alias-alist.
6933 (face_fontset): Use Fquery_fontset to find the fontset.
6934 (font_list): Additional pattern parameter.
6935 (try_font_list): Ditto.
6936 (set_lface_from_font_name): Set face family from font foundry
6937 and family.
6938 (font_list): If family contains a hyphen, build pattern differently.
6939
69401998-08-05 Gerd Moellmann <gerd@gnu.org>
6941
6942 * xfaces.c (free_realized_faces): Increment windows_or_buffers_-
6943 changed instead of setting the frame garbaged.
6944
6945 * xfaces.c (lface_equal_p): Don't assume equal Lisp types for
6946 all attribute values. This is wrong if values are unspecified,
6947 i.e. nil.
6948
6949 * xdisp.c (try_window_id): Give up if window start changed.
6950
6951 * xfaces.c (make_realized_face): Store registry as Lisp object.
6952 (load_face_font_or_fontset): Compute registry of a face
6953 differently. Make it `eq' to Vx_unibyte_registry_and_encoding if
6954 possible.
6955
6956 * dispextern.h (FACE_SUITABLE_FOR_CHARSET_P): Compare registries
6957 differently.
6958
6959 * alloc.c (mark_face_cache): Mark the registry member of faces.
6960
6961 * dispextern.h (struct face): Make registry a Lisp string.
6962
69631998-08-04 Gerd Moellmann <gerd@gnu.org>
6964
6965 * xterm.c (x_get_char_font_and_encoding): Additional parameter
6966 multibyte_p. Handle unibyte text.
6967 (x_append_glyph): Set the multibyte_p flag of glyphs.
6968 (x_produce_image_glyph): Ditto.
6969 (x_append_stretch_glyph): Ditto.
6970 (x_produce_glyphs): Handle unibyte text like ASCII.
6971
6972 * xdisp.c (push_it): Save the multibyte flag of an iterator on the
6973 stack.
6974 (pop_it): Restore it.
6975 (face_before_or_after_it_pos): Handle the case that the string or
6976 buffer is unibyte.
6977 (get_overlay_strings): Set the multibyte flag of the iterator if
6978 the new overlay string is multibyte.
6979 (get_glyph_property): Likewise.
6980 (get_next_display_element): Don't check for charset changes in
6981 unibyte text.
6982 (append_space): Compute face differently for unibyte text.
6983 (extend_face_to_end_of_line): Don't return quickly if face has
6984 stipple.
6985
6986 * xfaces.c (load_face_font_or_fontset): Store registry and
6987 encoding of the font in the registry member of the face.
6988 (make_realized_face): Additional parameter `registry'.
6989 (free_realized_face): Free the registry of a realized face.
6990 (face_suitable_for_charset_p): Function form of the macro
6991 with the same name in uppercase.
6992 (lookup_face): Use Vx_unibyte_registry_and_encoding if charset < 0.
6993 (choose_face_font): New parameter unibyte_registry.
6994 (choose_face_fontset_font): Ditto.
6995 (realize_default_face): Remember the registry and encoding of
6996 the specified frame font in Vx_unibyte_registry_and_encoding.
6997 (face_at_buffer_position): Handle unibyte.
6998 (face_at_string_position): Likewise.
6999 (realize_face): New parameter unibyte_registry.
7000 (compute_char_face): Handle the unibyte case.
7001
7002 * dispextern.h (struct glyph): Add bit multibyte_p.
7003 (struct face): New member registry holding the registry and
7004 encoding of the X font of the face.
7005 (FACE_UNIBYTE_P): Value is non-zero if face is for unibye text.
7006 (enum face_id): Add BASIC_FACE_ID_SENTINEL.
7007 (FACE_SUITABLE_FOR_CHARSET_P): Handle charset < 0 meansing unibyte
7008 text.
7009 (struct iterator_stack_entry): Add multibyte_p.
7010
7011 * xdisp.c (string_pos): Use string_char_to_byte.
7012 (char_charset): Removed.
7013
70141998-08-03 Gerd Moellmann <gerd@gnu.org>
7015
7016 * xterm.c (x_draw_image_glyph_string_foreground): Draw a
7017 rectangle for a block cursor over an image without a mask.
7018 (x_stretch_block_cursor): Added. Non-zero means don't draw
7019 a block cursor over a stretch as wide as that stretch.
7020 (x_draw_stretch_glyph_string): Use it.
7021 (x_draw_hollow_cursor): Ditto.
7022
7023 * minibuf.c (read_minibuf): Use minibuf_prompt instead of prompt.
7024 (read_minibuf): Add front-sticky text property for prompt.
7025
7026 * xdisp.c (char_charset): Return charset of a character,
7027 depending on whether or not multi-byte characters are enabled.
7028
7029 * xfaces.c (Fset_face_charset_registry): Removed.
7030 (x_charset_registry): Determine registry from charset plist.
7031
70321998-08-02 Gerd Moellmann <gerd@gnu.org>
7033
7034 * xdisp.c (get_next_display_element): Don't check for charset
7035 changes if multi-byte characters are not enabled.
7036
7037 * xdisp.c (echo_area_display): Use the flush function from the
7038 redisplay interface.
7039 * keyboard.c (detect_input_pending_run_timers): Likewise.
7040
7041 * dispextern.h (produce_*glyphs_hook): Removed.
7042 * term.c (produce_*glyphs): Ditto.
7043 (cursor_to): Remove pixel position parameters.
7044
7045 * dispnew.c: Remove hooks for window-based redisplay, introduce
7046 a redisplay interface structure.
7047
7048 * xterm.c (x_per_char_metric): Return default char metrics if per
7049 char metric exists but contains a zero width. Adobe Courier seems
7050 to contain such characters.
7051
7052 * xdisp.c (compute_line_metrics): Compute the width of rows
7053 without stopping at glyphs with zero width.
7054
70551998-08-01 Gerd Moellmann <gerd@gnu.org>
7056
7057 * xdisp.c (display_mode_line): If nothing was displayed at all,
7058 display a space.
7059 (hscroll_window_tree): Don't subtract 1 from target point if equal
7060 to ZV and window is not the selected window.
7061
7062 * dispnew.c (check_matrix_invariants): Remove check for window
7063 start at BEGV or after newline. This happens in rare cases
7064 intentionally.
7065
70661998-07-31 Gerd Moellmann <gerd@gnu.org>
7067
7068 * xfaces.c (x_charset_registry): Use STRING_BYTES.
7069 (syms_of_xfaces): Add Vface_default_registry.
7070 (x_charset_registry): Use it.
7071
7072 * xdisp.c (run_window_scroll_functions): Run window scroll functions.
7073 (redisplay_window): Use it.
7074
7075 * dispnew.c (update_text_area): Handle lbearing of deleted text
7076 by backing up one character.
7077
70781998-07-30 Gerd Moellmann <gerd@gnu.org>
7079
7080 * dispnew.c (adjust_glyph_matrix): Use a different check to
7081 decide to do nothing.
7082
7083 * xfaces.c (face_at_string_position): Additional parameter
7084 mode_line_p. If non-zero, merge with the mode line face
7085 instead of the default face.
7086 * dispextern.h (struct it): Add mode_line_p.
7087 * xdisp.c (init_iterator): Set it.
7088 (compute_face_in_string): Use it.
7089 (face_before_or_after_it_pos): Handle strings.
7090 (get_next_display_element): Don't look for relief end in C strings.
7091 (next_element_from_string): Deliver string position instead of
7092 buffer position.
7093
7094 * xterm.c (x_flush): Flush X output buffer.
7095 (XTflash): Use it.
7096
7097 * xfaces.c (lface_from_face_name): Renamed from lface_from_symbol.
7098 Allow strings as face names.
7099
7100 * xfns.c (forall_images_in_image_cache): Check that frame is
7101 alive.
7102
7103 * widget.c (EmacsFrameDestroy): Remove call to free_frame_faces;
7104 it's also called from x_destroy_window. Since this function is
7105 called from X, freeing stuff allocated with xmalloc is dangerous
7106 here, anyway.
7107
7108 * xfaces.c (free_realized_faces): Don't clear current matrices
7109 of a frame being destroyed.
7110
7111 * frame.c (make_frame): Call set_window_buffer instead of
7112 Fset_window_buffer.
7113
7114 * window.c (set_window_buffer): Extracted from Fset_window_buffer,
7115 with an additional argument specifying whether or not hooks may
7116 be called.
7117 (Fset_window_buffer): Call it.
7118
7119 * dispnew.c (clear_desired_matrices): Check that frame has
7120 a valid root window before clearing matrices in the window tree.
7121 (clear_current_matrices): Ditto.
7122 (clear_window_matrices): If GLYPH_DEBUG, check that hchild and
7123 vchild are valid windows if not nil.
7124
7125 * xfaces.c (merge_face_vector_with_property): Allow :reverse-video
7126 for :inverse-video.
7127 (Finternal_set_lisp_face_attribute): Ditto.
7128 (Finternal_set_lisp_face_attribute_from_resource): Ditto.
7129 (Finternal_get_lisp_face_attribute): Ditto.
7130 (Finternal_lisp_face_attribute_values): Ditto.
7131 (syms_of_xfaces): Define the symbol `:reverse-video'.
7132
7133 * xdisp.c (get_glyph_property): Renamed from
7134 fill_iterator_from_glyph_property.
7135 (next_element_from_buffer): Handle case that no `glyph' property
7136 was found correctly.
7137 (display_line): Extend face to end of line only if we have faces.
7138
71391998-07-29 Gerd Moellmann <gerd@gnu.org>
7140
7141 * dispnew.c (Fshow_cursor): Renamed from blink_cursor. Take
7142 additional window argument.
7143
7144 * xdisp.c (reseat_at_previous_visible_line_start): Renamed from
7145 set_iterator_to_previous_visible_line_start.
7146 (reseat_at_next_visible_line_start): Likewise.
7147 (compute_stop_pos): Renamed from set_iterator_stop_pos.
7148 (face_before_or_after_it_pos): Renamed from get_face_at_it_pos.
7149 (compute_face_in_buffer): Renamed from
7150 compute_face_at_iterator_position.
7151 (compute_face_in_string): Renamed from
7152 compute_face_at_iterator_string_position.
7153 (get_space_width): Renamed from get_iterator_space_width.
7154 (next_overlay_string): Renamed from
7155 set_iterator_to_next_overlay_string.
7156 (get_overlay_strings): Renamed from
7157 get_overlay_strings_at_iterator_position.
7158 (restore_overlay_strings): Renamed from
7159 setup_overlay_strings_from_glyph_pos.
7160 (restore_dpvec): Renamed from setup_iterator_dpvec_from_glyph_pos.
7161 (init_from_display_pos): Renamed from init_iterator_from_glyph_pos.
7162 (init_to_row_start): Renamed from init_iterator_to_row_start.
7163 (init_to_row_end): Formerly init_iterator_to_next_row_start.
7164
7165 * xterm.c: Merge with 20.2.97.
7166 (x_produce_glyphs): Use x_append_stretch_glyph for tabs.
7167
7168 * dispextern.h (struct glyph): Replace text_pos position with
7169 simple charpos.
7170
7171 * xdisp.c (this_line_start_pos): Use struct text_pos.
7172 (this_line_end_pos): Renamed from .*endpos; use struct text_pos.
7173 (enum move_it_result): Renamed from move_iterator_result.
7174 (string_pos_nchars_ahead): Compute text_pos in a string from a
7175 known text_pos plus a character delta.
7176 (string_pos): Compute text_pos in string from charpos.
7177 (c_string_pos): Likewise for a C string.
7178 (number_of_chars): Return number of characters in a possibly
7179 multi-byte C string.
7180 (check_it): Renamed from check_iterator. Check that charpos and
7181 bytepos are in sync.
7182 (push_it): Renamed from save_iterator_settings.
7183 (pop_it): Renamed from restore_iterator_settings.
7184 (move_it_.*): Renamed from move_iterator_.*.
7185 (charset_at_position): Take charpos/bytepos into account.
7186 (back_to_previous_line_start): Set iterator to previous line start.
7187 (forward_to_next_line_start): Set iterator to next line start.
7188 (back_to_previous_visible_line_start): Renamed from
7189 move_iterator_previous_visible_line_start.
7190 (set_iterator_to_next_visible_line_start): Handle charpos/bytepos.
7191 (get_face_at_it_pos): Renamed from get_face_from_cursor_pos.
7192 Handle charpos/bytepos.
7193 (compute_face_at_iterator_position): Handle charpos/bytepos.
7194 (compute_face_at_iterator_string_position): Likewise.
7195 (get_iterator_space_width): Likewise.
7196 (load_overlay_strings): Likewise.
7197 (get_overlay_strings_at_iterator_position): Likewise.
7198 (reseat_iterator): Take a text_pos position argument.
7199 (setup_iterator_overlay_strings_from_glyph_pos): Handle charpos/
7200 bytepos.
7201 (init_iterator): Take additional bytepos parameter.
7202 (reseat_iterator_to_string): Handle charpos/bytepos.
7203 (start_display): Take a text_pos parameter. Handle charpos/bytepos.
7204 (next_element_from_string): Handle charpos/bytepos.
7205 (next_element_from_c_string): Likewise.
7206 (fill_iterator_from_glyph_property): Likewise.
7207 (next_element_from_buffer): Likewise.
7208 (set_iterator_to_next): Increment charpos and bytepos of an iterator.
7209 (move_iterator_in_display_line_to): Handle charpos/bytepos.
7210 (move_it_to): Likewise.
7211 (move_it_vertically_backward): Likewise.
7212 (move_it_vertically): Likewise.
7213 (move_it_by_lines): Likewise.
7214 (hscroll_window_tree): Likewise.
7215 (redisplay_internal): Likewise.
7216 (set_cursor_from_row): Likewise.
7217 (redisplay_window): Likewise.
7218 (try_window): Take a text_pos parameter. Handle charpos/bytepos.
7219 (try_window_reusing_current_matrix): Handle charpos/bytepos.
7220 (get_first_unchanged_at_end_row): Compute and return delta_bytes.
7221 (try_window_id): Handle charpos/bytepos.
7222 (Ftrace_redisplay_toggle): Return Qnil.
7223 (get_overlay_arrow_glyph_row): Handle charpos/bytepos.
7224 (insert_left_trunc_glyphs): Likewise.
7225
7226 * dispnew.c: `Merge' with 20.2.97 (it's really too different to
7227 do a real merge).
7228 (increment_glyph_matrix_buffer_positions): Add parameter delta_bytes.
7229 (increment_glyph_row_buffer_positions): Ditto.
7230 (copy_glyph_row_contents): Ditto.
7231 (check_matrix_invariants): Add additional checks for charpos/
7232 bytepos consistency.
7233 (direct_output_for_insert): Changed for charpos/bytepos.
7234 (buffer_posn_from_coords): Likewise. Put code dealing with
7235 `direction-reversed' in #if 0.
7236
7237 * xterm.h: Merge with 20.2.97.
7238
7239 * frame.h: Merge with 20.2.97.
7240
7241 * window.h: Merge with 20.2.97. Add window_end_bytepos.
7242
7243 * dispextern.h (MATRIX_ROW_START_CHARPOS): Get charpos of a row
7244 start.
7245 (MATRIX_ROW_START_BYTEPOS): Likewise for the byte position.
7246 (MATRIX_ROW_END_CHARPOS): Likewise for the row end.
7247 (MATRIX_ROW_END_BYTEPOS): Likewise for the row end byte position.
7248 (struct it): Various members renamed from .*pos to .*charpos.
7249 (IT_CHARPOS): Access current buffer character position of an
7250 iterator.
7251 (IT_BYTEPOS): Access current buffer byte position of an iterator.
7252 (IT_STRING_CHARPOS): Access current string character position of
7253 an iterator.
7254 (IT_STRING_BYTEPOS): Access current string byte position of
7255 an iterator.
7256 (globally): Add function prototypes from 20.2.97.
7257
7258 * everywhere: Use P_ instead of PROTO for function prototypes
7259 because everyone else seems to use P_.
7260
7261 * dispextern.h (struct text_pos): Structure describing a charpos/
7262 bytepos position in text.
7263 (BYTEPOS): Access the byte position part of a text_pos.
7264 (CHARPOS): Likewise for the character position.
7265 (SET_TEXT_POS): Set a text_pos from a character and byte position.
7266 (INC_TEXT_POS, DEC_TEXT_POS): Increment/decrement a text position.
7267 (SET_TEXT_POS_FROM_MARKER): Set a text_pos from a marker.
7268 (SET_MARKER_FROM_TEXT_POS): Set a marker from a text_pos.
7269 (TEXT_POS_EQUAL_P): Compare two text_pos structures for equality.
7270 (struct display_pos): Renamed from glyph_pos. Use struct text_pos
7271 for buffer and string positions.
7272 (struct glyph): Use text_pos.
7273 (struct it): Renamed from display_iterator. Use text_pos.
7274
72751998-07-23 Gerd Moellmann <gerd@gnu.org>
7276
7277 * xfns.c (x_kill_gs_process): Get image colors from XImage of a
7278 pixmap.
7279
72801998-07-21 Gerd Moellmann <gerd@gnu.org>
7281
7282 * dispextern.h (struct glyph_row): New flag indicate_zv_line_p.
7283 * xterm.c (x_draw_row_bitmaps): Use it.
7284 * dispnew.c (row_equal_p): Ditto.
7285 (update_window_line): Ditto.
7286
7287 * xfns.c (prepare_image_for_display): Don't set loading_failed_p
7288 flag of images.
7289
7290 * dispextern.h (struct image): Removed member loading_failed_p.
7291 It's probably better to have the chance to try to load an image
7292 again.
7293
72941998-07-20 Gerd Moellmann <gerd@gnu.org>
7295
7296 * xterm.c (x_draw_bitmap): Draw bitmap for empty lines ending
7297 at ZV if `indicate-zv-lines' is non-nil.
7298 (x_draw_row_bitmaps): Compute bitmap for `indicate-zv-lines'.
7299
7300 * dispnew.c (row_equal_p): Compare displays_text_p and
7301 ends_at_zv_p flags of rows.
7302 (update_window_line): Ditto.
7303
7304 * buffer.h (struct buffer): New member indicate_zv_lines.
7305
7306 * buffer.c (init_buffer_once): Add default for `indicate-zv-lines'.
7307 (init_buffer_once): New variable `default-indicate-zv-lines'.
7308 (syms_of_buffer): New buffer-local varianle `indicate-zv-lines'.
7309
7310 * xdisp.c (redisplay_window): Don't try moving the cursor
7311 if current glyph row w->last_cursor.vpos isn't enabled.
7312
7313 * xterm.c (bitmap_type): Add ZV_LINE_BITMAP.
7314
7315 * window.c (Fset_window_vscroll): Allow only negative scroll
7316 values. Others don't seem to make sense, and this way it's easy
7317 to restore a vscroll of zero.
7318
7319 * xterm.c (x_inverted_image_mask): Check that pixmap could be
7320 allocated.
7321 (x_draw_image_glyph_string_background): Don't clip if pixmap
7322 could not be created.
7323
7324 * xfns.c (xbm_load_image_from_file): Check that pixmap could
7325 be created.
7326 (xbm_load): Ditto.
7327 (gs_load): Ditto.
7328
7329 * xterm.c (x_get_glyph_overhangs): Take image and stretch
7330 glyphs into account.
7331
7332 * xfaces.c (realize_default_face): Don't set font family of
7333 the default face from the fontset alias name for `fontset-startup'.
7334
7335 * xfns.c (gs_load): Pass frame's pixel foreground and background
7336 color to the Lisp loader.
7337
73381998-07-19 Gerd Moellmann <gerd@gnu.org>
7339
7340 * xfns.c (tiff_image_p, tiff_load): Support TIFF images via
7341 libtiff34.
7342
7343 * configure.in (--with-tiff, HAVE_TIFF): Added.
7344
7345 * config.in (HAVE_TIFF): Added.
7346
7347 * Makefile.in (LIBTIFF): Added.
7348
7349 * xfns.c (jpeg_image_p, jpeg_load): Support JPEG images.
7350
7351 * Makefile.in (LIBJPEG): Added.
7352
7353 * xfns.c (resource_types): Enumerators renamed to RES_TYPE_NUMBER,
7354 RES_TYPE_BOOLEAN etc. because of conflict of `boolean' with
7355 jpeglib.h.
7356
7357 * configure.in (HAVE_JPEG, --with-jpeg): Added. On systems
7358 where the library is installed in /usr/local/lib, e.g. FreeBSD,
7359 configure must be run with `--x-includes=/usr/X11R6/include:
7360 /usr/local/include --x-libraries=/usr/X11R6/lib:/usr/local/lib'.
7361
73621998-07-18 Gerd Moellmann <gerd@gnu.org>
7363
7364 * config.in (HAVE_JPEG): Added.
7365
7366 * xfns.c (ct_init): Initialize color table used to map RGB colors
7367 from images to X pixel colors.
7368 (ct_free): Free color table.
7369 (ct_lookup): Look an RGB color up.
7370 (ct_allocated_colors): Get vector of allocated colors.
7371 (pbm_image_p): Test if image specification is a valid PPM
7372 image specification.
7373 (pbm_scan_number): Scan a decimal ASCII number from a file.
7374 (pbm_load): Load a PPM image.
7375
7376 * window.c (Fset_window_vscroll): Adjust glyph matrix if
7377 necessary. Take canonical character units as parameter.
7378 (Fwindow_vscroll): Return canonical character units.
7379
7380 * dispnew.c (allocate_matrices_for_window_redisplay): Add negative
7381 w->dy to display height for which glyph rows must be allocated.
7382
73831998-07-17 Gerd Moellmann <gerd@gnu.org>
7384
7385 * xfaces.c (face_at_string_position): Merge in region face
7386 so that it won't overwrite the font in the region.
7387 (face_at_buffer_position): Ditto.
7388 (realize_basic_faces): Don't realize region face.
7389
7390 * dispextern.h (enum face_id): REGION_FACE_ID removed.
7391
7392 * xterm.c (x_set_glyph_string_background_width): Don't let
7393 cursor face extend to end of line.
7394
7395 * xdisp.c (append_space): If adding space of default face,
7396 make sure glyph ist produced with right face.
7397
7398 * xterm.c (x_clear_glyph_string_rect): Draw a rectangle in the
7399 background color of a glyph string.
7400 (x_draw_glyph_string_background): Call it.
7401 (x_draw_glyph_string_bg_rect): Ditto.
7402 (x_draw_stretch_glyph_string): Ditto.
7403
74041998-07-15 Gerd Moellmann <gerd@gnu.org>
7405
7406 * xdisp.c (init_iterator): Initialize it->current_y to the
7407 window's vscroll w->dy.
7408
7409 * window.c (Fwindow_vscroll): Return number of pixels window
7410 is vscrolled smoothly.
7411 (Fset_window_vscroll): Set the number.
7412
7413 * xdisp.c (move_iterator_to): Recognize case MOVE_TO_POS and
7414 to_pos in truncated part of a line.
7415
74161998-07-14 Gerd Moellmann <gerd@gnu.org>
7417
7418 * xdisp.c (move_iterator_in_display_line_to): If very first glyph
7419 doesn't fit on the line, truncate it, despite truncate_lines nil.
7420 (display_line): Ditto.
7421
7422 * xfns.c: Experimental support for Ghostscript images.
7423
7424 * xterm.c (x_term_init): Initialize new atoms DONE and PAGE.
7425 (XTread_socket): React on events from Ghostscript.
7426 (expose_frame): If width or height are zero, redraw entire frame.
7427 (XTread_socket): Call expose_frame after receiving event from
7428 Ghostscript.
7429
7430 * xterm.h (struct x_display_info): Add atoms DONE and PAGE
7431 for Ghostscript support.
7432
7433 * xdisp.c (redisplay_internal): Return quickly if called
7434 recursively.
7435
7436 * alloc.c (NSTATICS): Increased to 1024.
7437
74381998-07-08 Gerd Moellmann <gerd@gnu.org>
7439
7440 * xterm.c (x_append_stretch_glyph): Append a stretch glyph to an
7441 iterator's glyph row.
7442 (x_produce_stretch_glyph): Call it.
7443 (x_produce_glyphs): Handle `space-width' property; call
7444 x_append_stretch_glyph.
7445
7446 * xdisp.c (syms_of_xdisp): Add symbol `space-width' used as a text
7447 property.
7448 (get_iterator_space_width): Determine value of `space-width'
7449 property at iterator's position.
7450 (reseat_iterator): Call it.
7451 (next_element_from_string): Ditto.
7452 (next_element_from_buffer): Ditto.
7453 (init_iterator): Initialize space_width of iterator.
7454 (redisplay_internal): Don't goto end_of_redisplay if PT hasn't
7455 moved, but cursor blinks.
7456 (redisplay_internal): Set w->last_cursor_off_p after update.
7457
7458 * dispextern.h (enum iterator_prop_idx): Add SPACE_WIDTH_PROP_IDX.
7459 (struct display_iterator): Add new member space_width.
7460
7461 * window.h (struct window): Add last_cursor_off_p.
7462
74631998-07-07 Gerd Moellmann <gerd@gnu.org>
7464
7465 * Saved.
7466
7467 * window.c (Fpos_visible_in_window_p): Case window not up to
7468 date---return nil if iterator hasn't reached position.
7469
74701998-07-06 Gerd Moellmann <gerd@gnu.org>
7471
7472 * xdisp.c (text_outside_line_unchanged_p): Fix case that
7473 overlays have changed.
7474 (redisplay_window): Case cursor movement. Don't try it if
7475 last_cursor.vpos is out of range.
7476
7477 * xdisp.c (set_cursor_from_row): Set this_line_.* variables. This
7478 way, the display optimization for the line containing the cursor
7479 is used more frequently, esp. when we have a blinking cursor.
7480 (display_line): Don't set this_line_.* variables.
7481
7482 * xterm.c (x_redraw_cursor): Removed.
7483 (x_display_and_set_cursor): Set cursor type depending on
7484 cursor_off_p flag of window.
7485
7486 * dispnew.c (redraw_cursor_hook): Removed.
7487 (Fblink_cursor): Additional parameter on_p to set the cursor_off_p
7488 member of the selected window.
7489
7490 * xfaces.c (Fface_font): Added for compatibility with 20.2.
7491
7492 * xterm.c (x_y_to_hpos_vpos): Return null if not over text.
7493 Return glyph area under x/y.
7494 (note_mouse_highlight): Use x_y_to_hpos_vpos in its new form.
7495
7496 * keyboard.c (detect_input_pending_run_timers): Call gobble_input
7497 after redisplaying.
7498
74991998-07-05 Gerd Moellmann <gerd@gnu.org>
7500
7501 * xdisp.c (text_outside_line_unchanged_p): Test if changes
7502 are all outside of a line of text.
7503 (redisplay_internal): Use it.
7504
75051998-06-30 Gerd Moellmann <gerd@gnu.org>
7506
7507 * xdisp.c (next_element_from_buffer): After skipping over
7508 invisible text, look for the `glyph' property.
7509 (set_iterator_stop_pos): Ignore check positions in front
7510 of an iterator's current position.
7511
7512 * xterm.c (show_mouse_face): Don't act on rows that don't exist
7513 anymore or which are marked as not having valid contents.
7514
7515 * xfaces.c (Finternal_set_lisp_face_attribute): Don't free
7516 realized faces if new attribute value is equal to old value.
7517
75181998-06-29 Gerd Moellmann <gerd@gnu.org>
7519
7520 * xfaces.c (Finternal_make_lisp_face): Increment
7521 lface_id_to_name_size when lface_id_to_name is reallocated.
7522
75231998-06-27 Gerd Moellmann <gerd@gnu.org>
7524
7525 * xdisp.c (set_iterator_stop_pos): Compute initial stop_pos
7526 as minimum of endpos and overlay_pos.
7527 (load_overlay_strings): Set next_overlay_pos of iterator to
7528 -1 if we don't have to check for more overlay strings.
7529
75301998-05-09 Gerd Moellmann <gerd@gnu.org>
7531
7532 * xdisp.c (set_iterator_to_next_visible_line_start): Don't
7533 do anything if iterator is at ZV because scan_buffer doesn't
7534 work otherwise.
7535
7536 * xterm.c (x_encode_char): Inline it.
7537 (x_get_char_font_and_encoding): Simplified.
7538 (x_per_char_metric): Inline it.
7539
7540 * xterm.c (x_draw_glyph_string_relief): Use clipping.
7541
7542 * xdisp.c (get_next_display_element): Check for end of relief
7543 face moved here from next_element_from_buffer.
7544
7545 * xterm.c (x_produce_image_glyph): Add relief thickness.
7546 (x_produce_stretch_glyph): Ditto.
7547
75481998-05-08 Gerd Moellmann <gerd@gnu.org>
7549
7550 * xdisp.c (fill_iterator_from_glyph_property): Handle glyph
7551 property value (space :width WIDTH :height HEIGHT :ascent ASCENT).
7552
7553 * xterm.c (x_produce_stretch_glyph): Produce a stretch glyph
7554 from a glyph property.
7555 (x_produce_glyphs): Use it.
7556
7557 * xdisp.c (set_iterator_to_next): Handle next_element_from_stretch.
7558
7559 * xterm.c (x_produce_image_glyph): Add to current_x only if
7560 in text area.
7561 (x_produce_glyphs): Ditto.
7562
7563 * xdisp.c (display_line): Compute row height from glyphs in
7564 marginal areas.
7565
7566 * xterm.c (x_draw_image_glyph_string_background): Draw
7567 background of an image glyph string.
7568 (x_draw_glyph_string_bg_rect): Draw a rectangular region of
7569 the background of a glyph string.
7570 (x_draw_image_glyph_string_foreground): Draw the foreground of
7571 an image glyph string.
7572 (x_inverted_image_mask): Return the inverted mask of an image.
7573
7574 * xfns.c (x_draw_image): Removed.
7575
7576 * dispextern.h (struct image_type): Remove drawing function.
7577
7578 * xfaces.c (load_face_colors): Swap colors if face is inverse.
7579
7580 * xdisp.c (get_next_display_element): In marginal areas, translate
7581 newlines, tabs, etc. like normal control characters.
7582
7583 * xfaces.c (Fface_color_supported_p): Transpose parameters frame
7584 and color.
7585 (free_realized_faces): Set frame garbaged.
7586
7587 * xfaces.c (syms_of_xfaces): Add defsubr for
7588 internal-lisp-face-attribute-values.
7589
75901998-05-07 Gerd Moellmann <gerd@gnu.org>
7591
7592 * xterm.c (x_produce_image_glyph): Don't add glyph if area is
7593 full.
7594 (x_produce_image_glyph): Set IT->nglyphs to 1.
7595 (x_draw_image_glyph_string): Use inverted mask to draw background.
7596
7597 * dispextern.h (struct image_type): Additional clipping rect
7598 parameters for drawing functions.
7599
7600 * xterm.c (x_get_glyph_string_clip_rect): Get clip rect for
7601 a glyph string.
7602 (x_draw_image_glyph_string): Use it and pass the rect to the
7603 image drawing function.
7604
7605 * xdisp.c (fill_iterator_from_glyph_property): Use position of
7606 first character with `glyph' property as image position. Set
7607 iterator back to that position as long as the image hasn't been
7608 consumed with set_iterator_to_next.
7609 (set_cursor_from_row): Accept when glyph with given position is
7610 not found in the row. Set cursor x to end of line in that case,
7611 so that we can hscroll.
7612 (redisplay_internal): Correct computation of delta by which
7613 positions have changed in redisplay optimization for cursor
7614 row of selected window.
7615
7616 * xdisp.c (display_line): Remove start_pos.
7617 (display_line): Fix bug preventing display optimization for
7618 cursor line of selected window.
7619 (next_element_from_buffer): Avoid XSETBUFFER, use it->w->buffer
7620 instead.
7621
7622 * dispnew.c (update_text_area): Use GLYPH_EQUAL_P.
7623 (update_text_area): Take glyph pixel width into account
7624 when trying to find a resync point.
7625 (row_equal_p): Compare glyphs in all areas.
7626
76271998-05-06 Gerd Moellmann <gerd@gnu.org>
7628
7629 * xterm.c (x_produce_glyphs): Don't add glyph if area is full.
7630
7631 * dispextern.h (struct glyph_row): Use unsigned hash value.
7632
7633 * xdisp.c (display_line): Simplified and made faster by setting
7634 the cursor with set_cursor_from_row.
7635 (set_cursor_from_row): Handle rows of desired matrix.
7636
76371998-05-05 Gerd Moellmann <gerd@gnu.org>
7638
7639 * xdisp.c (set_cursor_from_row): Don't put cursor on glyphs
7640 with type != CHAR_GLYPH.
7641 (fill_iterator_from_glyph_property): Return void. Set
7642 method to next_element_from_image.
7643 (next_element_from_image): Dummy function for delivering a
7644 single image id.
7645 (set_iterator_to_next): Add method next_element_from_image.
7646 (redisplay_window): When recentering, and cursor vpos is -1
7647 after display, assume middle of window is in first line displayed
7648 in window, and display again.
7649 (fill_iterator_from_glyph_property): Assign image glyph
7650 the position of the first character having the glyph property.
7651
7652 * dispextern.h (IMAGE_ASCENT): Compute ascent of image.
7653 * xfns.c (x_draw_image): Use it.
7654 * xterm.c (x_produce_image_glyph): Use it.
7655
7656 * xterm.c (x_produce_image_glyph): Set iterator's pixel_width.
7657
7658 * Makefile.in: Extraneous #define of LIBXPM removed.
7659
7660 * xterm.c (x_produce_glyphs): Produce a STRETCH_GLYPH for tabs.
7661 (x_fill_stretch_glyph_string): Fill a glyph string from a
7662 stretch glyph.
7663 (x_compute_glyph_string_overhangs): Compute overhangs only
7664 for text glyph strings.
7665 (x_draw_stretch_glyph_string): Draw a stretch glyph string.
7666 (x_draw_glyph_string): Call it.
7667
7668 * dispextern.h (glyph_type): Add STRETCH_GLYPH.
7669 (struct glyph): Add sub-structure for stretchable glyphs.
7670 (GLYPH_EQUAL_P): Compare glyph type and u.val.
7671
7672 * xdisp.c (get_overlay_arrow_glyph_row): Put face code into
7673 #ifdef HAVE_FACES.
7674
7675 * xterm.c (x_produce_glyphs): Use ASCII face for spaces of a TAB.
7676
7677 * xdisp.c (fill_iterator_from_glyph_property): Renamed from
7678 setup_iterator_from_glyph_property. Don't do it for terminal
7679 frames.
7680
7681 * xterm.c (x_produce_image_glyph): Produce glyph for image
7682 that can't be loaded.
7683
7684 * xfns.c (lookup_image): If image can't be loaded, set its
7685 width and height so that we can draw a rectangle.
7686 (x_draw_image): Draw a rectangle for images that don't have
7687 a pixmap.
7688 (make_image): Set hash value.
7689 (image_spec_equal_p): Use image_spec_value.
7690
7691 * xterm.c (expose_frame): Don't try to redraw if basic faces
7692 haven't benn realized yet.
7693 (x_draw_image_glyph_string): Fill background only if image
7694 is not as tall as row.
7695
76961998-05-04 Gerd Moellmann <gerd@gnu.org>
7697
7698 * Makefile.in (LIBXPM): If not already defined, define to -lXpm.
7699 (LIBX)[HAVE_X11]: Add LIBXPM.
7700
7701 * xfns.c (xpm_image_p): Implementation of image type functions
7702 for XPM.
7703 (xpm_load): Ditto.
7704
7705 * dispextern.h (struct image): Add mask pixmap for XPM.
7706
7707 * xfns.c (x_draw_image): Handle images with masks.
7708
7709 * configure.in: --with-xpm added. Code detecting -lXpm added.
7710
7711 * config.in: Add HAVE_XPM.
7712
7713 * xfns.c (xbm_draw): Removed.
7714 (x_draw_image): Default implementation for drawing images.
7715 (xbm_keyword_index): Remove XBM_DEPTH.
7716 (xbm_format): Remove `:depth'.
7717 (xbm_image_spec_from_file): Removed to reduce consing.
7718 (xbm_load_image_from_file): Added for the same reason.
7719
7720 * xterm.c (x_fill_image_glyph_string): Don't set ybase of
7721 glyph string.
7722 (x_draw_image_glyph_string): Pass ybase to image draw function.
7723
7724 * xfns.c (make_image): Set default baseline.
7725
7726 * xterm.c (x_produce_image_glyph): Compute ascent of image
7727 from its height and baseline percentage.
7728
7729 * xfns.c (xbm_keyword_index): Add XBM_BASELINE.
7730 (xbm_format): Add description for `:baseline'.
7731 (xbm_image_spec_from_file): Add keywords from original spec to
7732 result.
7733 (xbm_load): Set baseline of image.
7734 (xbm_image_p): Check range for baseline.
7735
7736 * dispextern.h (struct image): Add member baseline.
7737
7738 * xdisp.c (dump_glyph_matrix): Handle image glyphs.
7739
7740 * term.c (produce_glyphs): Change assertion to allow DISP_IMAGE.
7741
7742 * xdisp.c (get_next_display_element): Do character translations
7743 only if delivering characters.
7744
77451998-05-03 Gerd Moellmann <gerd@gnu.org>
7746
7747 * dispextern.h (ITERATOR_AT_END_OF_LINE_P): Test for
7748 DISP_CHARACTER.
7749
7750 * xterm.c (x_produce_image_glyph): Poduce image glyphs.
7751 (x_produce_glyphs): Call x_produce_glyphs for DISP_IMAGE.
7752
77531998-05-02 Gerd Moellmann <gerd@gnu.org>
7754
7755 * xfns.c (prepare_image_for_display): Set image timestamp.
7756 (clear_image_cache): Clear images if image's timestamp +
7757 Vimage_eviction_seconds is > now.
7758 (syms_of_xfns): New variables image-eviction-seconds, and
7759 image-types.
7760 (add_image_format): Add to image-types.
7761 (xbm_load): Support new image spec format.
7762 (x_alloc_image_color): Allocate a color for an image.
7763
7764 * dispextern.h (struct image): Add timestamp.
7765
7766 * xfns.c (xbm_image_p): Allow bool-vectors, vectors of strings and
7767 vectors of bool-vectors.
7768 (xbm_lisp_object_from_file): Build new format image spec.
7769
77701998-05-01 Gerd Moellmann <gerd@gnu.org>
7771
7772 * xfaces.c (init_frame_faces): Initialize image cache.
7773 (free_frame_faces): Free it.
7774
7775 * xterm.c (x_delete_display): Don't free image cache.
7776
7777 * emacs.c (main): Call init_xfns.
7778
77791998-04-30 Gerd Moellmann <gerd@gnu.org>
7780
7781 * alloc.c (mark_object): Mark objects in image cache.
7782
7783 * xfns.c (x_set_internal_border_width): Correct call to
7784 widget_store_internal_border_width.
7785
7786 * widget.c (widget_store_internal_border): Return void.
7787
7788 * xfns.c (x_destroy_bitmap): Use xfree instead of free. Return
7789 void.
7790 (init_x_parm_symbols): Return void.
7791 (x_report_frame_params): Ditto.
7792 (x_set_border_pixel): Ditto.
7793 (syms_of_xfns): Ditto.
7794 (x_destroy_all_bitmaps): Use xfree instead of free.
7795
7796 * xterm.h (FRAME_X_IMAGE_CACHE): Access the image cache of a frame.
7797
7798 * xterm.c (x_term_init): Initialize image_cache of display info.
7799 (x_delete_display): Free image cache.
7800
7801 * xterm.h (struct x_display_info): Add image_cache.
7802
7803 * xfns.c (make_image_cache): Allocate a new image cache.
7804 (free_image_cache): Free an image cache.
7805 (make_image): Allocate an image.
7806 (free_image): Free an image.
7807
7808 * dispextern.h (struct image): Structure describing an image.
7809 (struct image_cache): Structure describing an image cache.
7810
78111998-04-29 Gerd Moellmann <gerd@gnu.org>
7812
7813 * xdisp.c (check_iterator_glyph_property): Return int. Value is
7814 non-zero if iterator is filled with something to return.
7815 (next_element_from_buffer): Immediately return if
7816 setup_iterator_from_glyph_prop has filled iterator with pixmap.
7817 (next_element_from_string): Likewise.
7818
7819 * xfaces.c (load_pixmap): Allow to pass null for W_PTR and H_PTR.
7820
7821 * dispextern.h (struct glyph): Add pixmap_id.
7822 (display_element_type): Add DISP_PIXMAP.
7823
7824 * xmenu.c (popup_get_selection): Use xmalloc/xfree instead of
7825 malloc/free.
7826
7827 * xfaces.c (clear_font_table): Free fonts not used by fontsets.
7828 (clear_face_cache): Call it.
7829
7830 * xterm.c (x_query_font): Don't look at empty font table slots.
7831 (x_compute_min_glyph_bounds): Likewise.
7832 (x_term_init): Initialize font_table to null.
7833 (x_load_font): Change allocation of font_info structures so
7834 that it is possible to free fonts.
7835
7836 * xfns.c (Fx_close_connection): Use xfree instead of free.
7837 Only free fonts from filled font table entries.
7838
7839 * xfaces.c (best_matching_font): Support use of scalable fonts.
7840 (Fface_scalable_fonts_mode): Toggle use of scalable fonts.
7841
7842 * xterm.h (struct x_display_info): Remove screen_dpi, add resx
7843 and resy.
7844 * xterm.c (x_term_init): Compute resx and resy.
7845
7846 * xfaces.c (split_font_name): Don't reject scalable fonts.
7847
7848 * xterm.c (x_list_fonts): Set code exclusing scalable fonts
7849 in #if 0.
7850
7851 * xfaces.c (xlfd_point_size): Return 0 for fonts whose real
7852 point size cannot be determined.
7853
7854 * xterm.h (FRAME_SMALLEST_CHAR_WIDTH): Return smallest character
7855 width over all fonts on a frame.
7856 (FRAME_SMALLEST_FONT_HEIGHT): Likewise for font height.
7857 * dispnew.c (adjust_frame_glyphs_for_window_redisplay): Use these
7858 macros.
7859
7860 * xterm.c (x_font_min_bounds): Moved here from xfaces.c.
7861 (x_compute_min_char_bounds): Formerly min_char_bounds in xfaces.c.
7862 (x_load_font): Use x_compute_min_char_bounds.
7863
7864 * xterm.h (struct x_display_info): New members smallest_char_width
7865 and smallest_font_height.
7866
78671998-04-28 Gerd Moellmann <gerd@gnu.org>
7868
7869 * dispextern.h (PREPARE_FACE_FOR_DISPLAY): Call function with
7870 the same name if GC of face is zero.
7871
7872 * dispextern.h (struct face): Member non_ascii_gc removed.
7873
7874 * xterm.c (x_get_char_font_and_encoding): Return face's font
7875 for characters < 0177 in default face. Prepare face for
7876 display before returning it.
7877 (x_produce_glyphs): Use it->charset.
7878 (x_get_char_font_and_encoding): Simplified.
7879 (x_encode_char): Remove parameter `font'.
7880
7881 * xfaces.c (choose_face_font): If registry from charset symbol
7882 doesn't contain a `-', make it a pattern by appending "*-*".
7883
7884 * xdisp.c (check_iterator_glyph_property): Adjust limit for
7885 glyph_check_pos computation to character boundary.
7886
78871998-04-27 Gerd Moellmann <gerd@gnu.org>
7888
7889 * fontset.h (FONT_INFO_FROM_ID): Return null if ID is invalid.
7890
7891 * xfaces.c (ascii_face_of_lisp_face): Get the id of the realized
7892 ASCII face for a given Lisp face id.
7893
7894 * xdisp.c (set_iterator_stop_pos): Take glyph_check_pos into
7895 account.
7896 (reseat_iterator): Set glyph_check_pos. Handle case where
7897 new position is < original position.
7898 (check_iterator_glyph_property): Handle glyph property in strings.
7899 (next_element_from_string): Call above function.
7900 (next_element_from_display_vector): Handle faces in glyphs.
7901 (get_next_display_element): Set face_id of glyphs for
7902 control chars to zero.
7903
7904 * Makefile.in (term.o): Add dependency on dispextern.h.
7905
7906 * xdisp.c (syms_of_xdisp): Add symbol `glyph'.
7907 (display_line): Handle marginal areas.
7908 (move_iterator_in_display_line_to): Likewise.
7909
7910 * xfaces.c (Finternal_make_lisp_face): Assign Lisp faces an id.
7911
7912 * xfaces.c (face_at_buffer_position): Don't merge with nil
7913 text property.
7914 (face_at_string_position): Ditto.
7915
7916 * dispextern.h (struct display_iterator): Use a stack of saved
7917 values instead of saving check positions etc. individually.
7918
7919 * xdisp.c (set_iterator_to_next): If end of Lisp string reached,
7920 maybe pop the iterator's stack.
7921 (save_iterator_settings): Push a value on iterator's stack.
7922 (get_overlay_strings_at_iterator_position): Use it.
7923 (restore_iterator_settings): Pop the stack.
7924 (set_iterator_to_next_overlay_string): Use it.
7925
7926 * xfaces.c (try_font_list): Use alternative font families.
7927
79281998-04-26 Gerd Moellmann <gerd@gnu.org>
7929
7930 * xfaces.c (Fset_face_font_sort_order): Set the order in which
7931 font selection matches fonts.
7932 (Fface_font_sort_order): Return the font sort order.
7933 (best_matching_font): Find best matching font based on sort order.
7934 (cmp_font_names): Sort by given sort order.
7935
7936 * dispextern.h (struct display_iterator): New member faces_p.
7937 * xdisp.c (init_iterator): Initialize it->faces_p.
7938 (compute_face_at_iterator_string_position): Use it.
7939 (compute_face_at_iterator_position): Use it.
7940 (init_iterator): Use it.
7941 (display_mode_line): Ditto.
7942
7943 * xdisp.c (get_next_display_element): Put code choosing a face
7944 when the charset changes in #ifdef HAVE_FACES.
7945
7946 * dispextern.h (FACE_FOR_CHARSET): Replacement for function
7947 lookup_face_for_charset.
7948
7949 * xfaces.c (free_font_names): Renamed from free_split_font_names.
7950 (free_all_realized_faces): Renamed from remove_all_realized_faces.
7951
79521998-04-25 Gerd Moellmann <gerd@gnu.org>
7953
7954 * xfaces.c (best_matching_font): Return the name of the best
7955 matching font in an array of font_name structures.
7956 (choose_face_font): Use it.
7957 (choose_face_fontset_font): Use it.
7958 (find_best_weight_font): If final font found has same weight as
7959 the font we started with, return the original font because it is a
7960 better match for the resolution of the display.
7961 (find_best_slant_font): Likewise.
7962 (merge_face_vector_with_property): Check more invalid attribute
7963 values.
7964 (lface_suitable_for_charset_p): Replaced by a macro with the same
7965 name in upper-case.
7966
79671998-04-24 Gerd Moellmann <gerd@gnu.org>
7968
7969 * dispextern.h (struct face): Member
7970 fontset_chosen_for_realization_p removed.
7971
7972 * xfaces.c (cache_face): If face->fontset >= 0, add face to the
7973 end of the collision list, so that we find more specific faces
7974 first.
7975 (lookup_face_for_charset): Look up a new face if face->fontset >=
7976 0, and charset != CHARSET_COMPOSITION.
7977
7978 * xfaces.c (split_font_name): Return zero if point size of font
7979 couldn't be computed.
7980 (realize_default_face): Use ASCII font of a fontset to determine
7981 font-related attributes of the default face.
7982 (face_fontset): Return fontset id for face family.
7983 (font_list): Additional parameter font_pattern. If non-nil,
7984 return fonts matching that pattern.
7985
79861998-04-23 Gerd Moellmann <gerd@gnu.org>
7987
7988 * xfaces.c (choose_face_fontset): If new fontset cannot be
7989 constructed, or fontset name cannot be split, return the id of the
7990 standard fontset.
7991
7992 * xterm.c (XTframe_up_to_date): Check that frame is an X frame.
7993 When Emacs starts, it may be called for the initial frame which
7994 isn't an X frame.
7995
7996 * dispextern.h (struct face): New members foreground_defaulted_p,
7997 background_defaulted_p.
7998 (struct face): Members `mask' and `cache' removed.
7999
8000 * xfaces.c (load_color): Set them.
8001 (free_face_colors): Check them.
8002 (xlfd_point_size): Return -1 if resolution or point size of
8003 font unknown.
8004
8005 * xfaces.c (free_font): Removed.
8006 (load_face_font_or_fontset): Renamed from load_font.
8007 (load_face_font_or_fontset): Use message2 instead of signalling.
8008 (load_color): Likewise.
8009 (load_pixmap): Likewise.
8010
8011 * xterm.h (struct x_display_info): Add screen_dpi.
8012 * xterm.c (x_term_init): Initialize it.
8013 * xfaces.c (xlfd_point_size): Use it.
8014 (split_font_name): Compute numeric XLFD_RESY.
8015 (cmp_font_names): Make fonts with an y-resolution more
8016 similar to that of the frame appear first in the result.
8017
8018 * xfaces.c (cache_face): If fontset_chosen_for_realization_p
8019 is set for the face to cache, add it to the end of the collision
8020 list.
8021 (try_font_list): If fonts for given family and registry cannot
8022 be found, first try to keep the registry, and choose a different
8023 family.
8024 (choose_face_font): Allow nfonts == 0.
8025 (try_font_list): Give up if no font matches given registry.
8026
80271998-04-22 Gerd Moellmann <gerd@gnu.org>
8028
8029 * xterm.c (x_get_char_font_and_encoding): Get font_info from
8030 font info id of the face.
8031
8032 * xfaces.c (load_font): Set font_info_id.
8033 (realize_face): Ditto.
8034
8035 * dispextern.h (struct face): Change member font_info to
8036 font_info_id.
8037
8038 * fontset.h (FONT_INFO_ID): Build an ID from a font_info pointer.
8039 (FONT_INFO_FROM_ID): Get a font_info pointer from an ID.
8040
8041 * xdisp.c (extend_face_to_end_of_line): If IT's current charset
8042 isn't ASCII, get the ASCII face before adding a space.
8043 (append_space): Likewise.
8044 (insert_left_trunc_glyphs): Initialize truncate_it's charset
8045 to -1 so that it will compute the right face for the truncation
8046 glyphs.
8047
8048 * xfaces.c (realize_face): Set
8049 face->fontset_chosen_for_realization_p.
8050 (lookup_face_for_charset): If fontset wasn't specified originally
8051 and new charset != CHARSET_COMPOSITION, get a new face for that
8052 charset.
8053
8054 * dispextern.h (struct face): New member
8055 fontset_chosen_for_realization_p_specified_p. Set to 1 when
8056 realize_face has chosen a fontset to display composite characters
8057 for a Lisp face not specifying a fontset.
8058
8059 * xdisp.c (extend_face_to_end_of_line): Move tests for default
8060 face and line already filled here. Don't do anything if current
8061 face hasn't a relief or has a background equal to the frame
8062 background.
8063
8064 * xfaces.c (split_font_name): Additional parameter numeric_p.
8065 Don't compute numeric values if it is non-zero.
8066 (choose_face_fontset): Call split_font_name with numeric_p == 0.
8067 (choose_face_fontset): Print a message if fontset contains a
8068 font whose name cannot be split into fields.
8069
80701998-04-21 Gerd Moellmann <gerd@gnu.org>
8071
8072 * xfaces.c (try_font_list): Try to load a list of fonts,
8073 possibly using less restrictive patterns.
8074 (choose_face_font): Use it.
8075
8076 * xterm.c (x_get_char_font_and_encoding): For charset !=
8077 CHARSET_ASCII use font_info of face if face hasn't a fontset set.
8078
8079 * dispextern.h (struct face): New member font_info.
8080
8081 * xfaces.c (load_font): Use FS_LOAD_FONT to load fonts for faces
8082 specifying a fontset as well as those not having a fontset.
8083 (free_font): Make it empty.
8084 (realize_face): Use changed load_font.
8085
8086 * xterm.c (x_get_char_font_and_encoding): If face doesn't
8087 fit for charset, get the right one.
8088
8089 * xfaces.c (load_font): Take frame and name parameter, return
8090 font.
8091 (free_font): Likewise.
8092 (split_font_name): Compute numeric values for height, swidth etc.
8093 (cmp_font_names): Use them.
8094 (find_best_width_font): Ditto.
8095 (find_best_height_font): Ditto.
8096 (find_best_weight_font): Ditto.
8097 (find_best_slant_font): Ditto.
8098 (lface_hash): Add weight, slant, swidth and relief to hash value.
8099 (lface_equal_p): Make it faster.
8100 (lface_from_symbol): Use assq_no_quit.
8101 (Fnote_default_face_changed): Removed.
8102 (cmp_font_names): Use strcmp instead of xstricmp.
8103 (face_charset_registries): Removed.
8104
81051998-04-20 Gerd Moellmann <gerd@gnu.org>
8106
8107 * frame.h (CHECK_FRAME): Give this macro a statement form.
8108 (CHECK_LIVE_FRAME): Ditto.
8109
8110 * xfaces.c (find_best_width_font): Find the best matching font
8111 for a given width.
8112 (find_best_height_font): Likewise for height.
8113 (find_best_weight_font): Likewise for weight.
8114 (find_best_slant_font): Likewise for slant.
8115 (choose_face_font): Use them.
8116 (get_lface_attributes): Always return frame-local face attrs.
8117 (Finternal_merge_in_global_face): Merge local face with
8118 global face attributes.
8119
8120 * xfaces.c (check_lface_attrs, check_lface): Check consistency of
8121 Lisp face attributes.
8122
81231998-04-19 Gerd Moellmann <gerd@gnu.org>
8124
8125 * xfaces.c (Finternal_set_lisp_face_attribute): Add :bold
8126 and :italic for compatibility.
8127 (Finternal_set_lisp_face_attribute_from_resource): Handle
8128 :bold and :italic. Handle boolean resource values for
8129 :underline and :italic.
8130
8131 * xfns.c (display_x_get_resource): Make it externally visible.
8132
8133 * xfaces.c (lface_from_symbol): Take a frame as parameter.
8134 If that frame is non-null, return the frame-local face.
8135 (Finternal_make_lisp_face): Additional frame argument.
8136 (lface_attributes): Get face attributes from global and frame-local
8137 definitions.
8138 (Finternal_lisp_face_equal_p): Additional frame argument.
8139 (merge_lisp_face_vector_with_property): Ditto.
8140 (Frealize_basic_faces): Removed.
8141 (Finternal_get_lisp_face_attribute): Additional frame argument.
8142 (Finternal_lisp_face_p): Ditto.
8143 (load_color) [MSDOS]: Removed because it isn't clear how
8144 to do this for MS-DOS.
8145
8146 * xfaces.c (lface_from_symbol): Get global face definition
8147 from face-global-alist.
8148
8149 * xfaces.c (Finternal_set_lisp_face_attribute): Allow `t'
8150 as values for :underline and :inverse-video.
8151 (Finternal_set_lisp_face_attribute): Allow nil values.
8152
81531998-04-17 Gerd Moellmann <gerd@gnu.org>
8154
8155 * xfaces.c (Finternal_make_lisp_face): Return Lisp face vector.
8156
8157 * xfaces.c (syms_of_xfaces): Add Vall_faces.
8158 (Finternal_make_lisp_face): Add new face to Vall_faces.
8159
8160 * xdisp.c (echo_area_display): Remove code recomputing faces.
8161 (redisplay_internal): Ditto.
8162 (init_iterator): Do it here.
8163
8164 * xfaces.c (choose_face_font): Check that swidth doesn't change
8165 for subusequent attributes.
8166 (xlfd_point_size): Return int.
8167
8168 * xdisp.c (redisplay_internal, echo_area-display): If realized
8169 faces have been cleared, call recompute_basic_faces.
8170
8171 * xfaces.c (recompute_basic_faces): Free realized faces. Reset
8172 face_attributes_changed_p.
8173 (remove_all_realized_faces): Remove all realized faces on
8174 all frames.
8175 (Finternal_set_lisp_face_attribute): Call remove_all_realized_faces.
8176
8177 * xdisp.c (redisplay_internal): If face attributes have been
8178 changed since the last redisplay, recompute basic faces.
8179 (echo_area_display): Ditto.
8180
8181 * xfaces.c (clear_face_gcs): Renamed from clear_realized_face_cache.
8182
8183 * xfaces.c (min_char_bounds): If face cache not yet present,
8184 don't try to get font dimensions from faces.
8185
8186 * xterm.c (x_frame_mode_line_height): If face cache not present
8187 set, return default height.
8188
8189 * alloc.c (mark_face_cache): Check for null faces. Correct
8190 index bug.
8191
8192 * dispextern.h (struct face): Renamed from struct rface. Member
8193 underline renamed underline_p. Make it a bit-field.
8194
8195 * xfaces.c (init_frame_faces): Allocate face cache.
8196 (free_frame_faces): Free face cache.
8197 (recompute_basic_faces): Realize basic faces only if face cache is
8198 allocated, i.e. after init_frame_faces has been called.
8199
8200 * frame.c (make_frame): Initialze face cache with null.
8201
8202 * xfaces.c (same_size_fonts): Removed.
8203
8204 * xterm.c (x_set_glyph_string_gc): Add post-condition
8205 s->gc != 0.
8206 (x_set_mouse_face_gc): Ditto.
8207 (x_set_mode_line_face_gc): Ditto.
8208
8209 * xfaces.c (realize_default_face): Return int. Value is
8210 zero if frame params don't contain enough information to
8211 realize the default face.
8212 (realize_basic_faces): Ditto.
8213 (init_frame_faces): Realize basic faces.
8214
8215 * xfns.c (x_set_font): First store real font name in frame
8216 parameters, then call recompute_basic_faces.
8217
8218 * xfaces.c (recompute_basic_faces): Call realize_basic_faces.
8219
82201998-04-16 Gerd Moellmann <gerd@gnu.org>
8221
8222 * xfaces.c (syms_of_xfaces): Correct calls to defsubr.
8223
8224 * xfns.c (Fx_face_fixed_p): Removed.
8225 (Fx_list_fonts): Moved to xfaces.c.
8226
8227 * xfaces.c (compute_face_at_buffer_pos): Renamed to
8228 face_at_buffer_position. Parameter charset removed; always
8229 compute face for CHARSET_ASCII.
8230 (face_at_string_position): Renamed from
8231 compute_face_at_string_pos. Parameter charset removed; always
8232 compute for CHARSET_ASCII.
8233 (lookup_face_for_charset): Take frame parameter instead of
8234 face_cache.
8235 (lookup_face): Ditto.
8236 (compute_char_face): Renamed from compute_glyph_face.
8237
8238 * xdisp.c (init_iterator): Initialize charset member.
8239 (reseat_iterator_to_string): Ditto.
8240 (get_charset_at_buffer_position): Determine charset at
8241 buffer position in current_buffer.
8242 (reseat_iterator): Call above function.
8243 (compute_face_at_iterator_position): Call
8244 compute_face_at_buffer_pos.
8245 (compute_face_at_iterator_string_position): Call
8246 compute_face_at_string_pos.
8247 (get_face_from_id): Removed.
8248 (get_face_from_cursor_pos): Call compute_face_at_buffer_pos.
8249 Call get_charset_at_buffer_position.
8250 (reseat_iterator): Determine face if charset at pos differs
8251 from iterator's charset.
8252 (reseat_iterator_to_glyph_pos): Removed.
8253
8254 * xfaces.c (compute_face_at_bufpos): Remove parameter charset.
8255 Determine charset from buffer position.
8256 (compute_string_char_face): Renamed to compute_face_at_string_pos.
8257 (compute_face_at_bufpos): Renamed to compute_face_at_buffer_pos.
8258
8259 * dispextern.h (struct display_iterator): Add member charset.
8260
82611998-04-15 Gerd Moellmann <gerd@gnu.org>
8262
8263 * xfaces.c (compute_char_face): Removed.
8264
8265 * xdisp.c (get_overlay_arrow_glyph_row): Use compute_glyph_face
8266 with new parameter list.
8267
8268 * xfaces.c (region_face): Removed.
8269 (allocate_face): Removed.
8270 (copy_face): Ditto.
8271 (face_eql): Removed.
8272 (intern_face): Removed.
8273 (clear_face_cache): Removed.
8274 (load_font): Ditto.
8275 (unload_font): Ditto.
8276 (load_color): Ditto.
8277 (unload_color): Ditto.
8278 (new_computed_face): Ditto.
8279 (intern_computed_face): Ditto.
8280 (ensure_face_ready): Ditto.
8281 (merge_faces): Ditto.
8282 (compute_base_face): Ditto.
8283 (merge_face_list): Ditto.
8284 (Fmake_face_internal): Removed.
8285 (Fset_face_attribute_internal): Ditto.
8286 (face_name_id_number): Removed.
8287 (Fframe_face_alist): Ditto.
8288 (Fset_frame_face_alist): Ditto.
8289 (Finternal_next_face_id): Ditto.
8290
8291 * xterm.h (struct x_output): Remove computed_faces, and
8292 param_faces. Remove macros accessing them.
8293
8294 * xfaces.c: Entirely new face implementation added.
8295
82961998-04-11 Gerd Moellmann <gerd@gnu.org>
8297
8298 * dispextern.h (struct glyph_pos): Member `bufpos' renamed
8299 `charpos'.
8300
83011998-04-10 Gerd Moellmann <gerd@gnu.org>
8302
8303 * xterm.c (x_scroll_bar_move): Clear only regions not covered by
8304 scroll bar window to reduce flickering. Clear entire height.
8305
8306 * xdisp.c (move_iterator_vertically_backward): Set iterator's
8307 current_x and hpos to zero after moving to previous line
8308 start.
8309
83101998-04-03 Gerd Moellmann <gerd@gnu.org>
8311
8312 * frame.h (FRAME_FACE_CACHE): Access to a frame's face cache.
8313
8314 * xfaces.c (xlfd_point_size): Compute relative point size of
8315 fonts from font and frame resolution.
8316 (sort_fonts): New function to sort fonts, temporarily setting
8317 font_frame to the frame in effect.
8318 (xlfd_point_size): Take additional frame parameter to be able
8319 to get at the display's resolution.
8320
8321 * xterm.c (x_setup_relief_colors): Use WHITE_PIX_DEFAULT and
8322 BLACK_PIX_DEFAULT.
8323 (x_setup_relief_color): Use FRAME_X_SCREEN instead of default
8324 screen of display.
8325
83261998-03-31 Gerd Moellmann <gerd@gnu.org>
8327
8328 * xfaces.c (choose_face_fontset): Instantiate fontsets.
8329
8330 * fontset.h: Add external declarations for Vfontset_alias_alist
8331 and Vglobal_fontset_alist.
8332
8333 * xfaces.c (merge_lisp_face_vector_with_property): Simplified.
8334 (realize_default_face): If frame parameters contain an artificial
8335 font name naming a fontset, set the family of the default face to
8336 the fontset name given by the registry.
8337
8338 * Makefile.in (alloc.o): Add dependency to dispextern.h.
8339
83401998-03-22 Gerd Moellmann <gerd@gnu.org>
8341
8342 * alloc.c (mark_object): Add function prototype. Add cast to
8343 Lisp_Object pointer in call to mark_object for symbol names
8344 because this otherwise gives a warning from gcc 2.8.1.
8345 (mark_face_cache): Mark Lisp objects in realized faces.
8346
83471998-03-19 Gerd Moellmann <gerd@gnu.org>
8348
8349 * frame.h (struct frame): Add member face_cache.
8350
8351 * alloc.c (mark_object): Mark face cache.
8352 (mark_face_cache): Mark Lisp faces in face cache of frame.
8353
8354 * frame.c (make_frame): Initialize face_cache.
8355 (Fdelete_frame): Free it.
8356
83571998-03-18 Gerd Moellmann <gerd@gnu.org>
8358
8359 * xfaces.c: Very first skeleton of functions for face realization,
8360 face merging, face cache etc.
8361
8362 * dispextern.h (struct rface): Realized faces. Will replace
8363 struct face when tested.
8364 (struct face_cache): Realized face caches.
8365
8366 * xdisp.c (init_iterator): Initialize area member of display
8367 iterator.
8368
83691998-03-17 Gerd Moellmann <gerd@gnu.org>
8370
8371 * xterm.c (x_append_glyph): Use it->area to store glyphs.
8372
8373 * dispextern.h (struct display_iterator): New member area.
8374
8375 * xterm.c (note_overwritten_text_cursor): Note when the text
8376 cursor of a window is overwritten.
8377
8378 * xdisp.c (set_cursor_from_row): If PT is not found in the
8379 row, display the cursor at the start of the row.
8380
8381 * dispnew.c (direct_output_forward_char): Call
8382 set_cursor_from_row.
8383
8384 * xdisp.c (setup_iterator_overlay_strings_from_glyph_pos): If
8385 position is not in an overlay string, set iterator's position and
8386 method explicitly so.
8387 (set_cursor_from_row): Correct cursor position calculation.
8388 Make it externally visible.
8389 (redisplay_window): Call set_cursor_from_row so that there is only
8390 one place where the cursor position is calculated from a current
8391 row.
8392
8393 * dispextern.h (struct display_iterator): New member
8394 overlay_strings_at_end_processed_p.
8395
8396 * xdisp.c (check_iterator): Perform sanity checks on
8397 display_iterators.
8398 (next_element_from_buffer): Check for overlay strings at ZV.
8399
84001998-03-16 Gerd Moellmann <gerd@gnu.org>
8401
8402 * buffer.c (init_buffer_once): Add left_margin_width and
8403 right_margin_width to buffer_local_flags.
8404
8405 * dispnew.c (margin_glyphs_to_reserve): Function computing
8406 number of glyphs to reserve for a marginal area.
8407 (adjust_glyph_matrix): Call it.
8408 (adjust_frame_glyphs_for_frame_redisplay): Return if frame
8409 is not alive.
8410
8411 * window.c (Fset_window_margins): Allow floats.
8412
8413 * buffer.c (syms_of_buffer): Add buffer-local variables
8414 left-margin-width and right-margin-width. Add defaults
8415 default-left-margin-width and default-right-margin-width.
8416
8417 * buffer.h (struct buffer): New members left_margin_width
8418 and right_margin_width.
8419
8420 * window.c (Fset_window_margins): Make window the last and
8421 optional argument.
8422
8423 * xterm.c (x_draw_glyphs): Compute x-positions for rows with
8424 flag no_marginal_areas_p differently.
8425 (x_clear_end_of_line): Ditto.
8426 (x_draw_glyph_string_relief): Compute width of relief differently
8427 for rows with flag no_marginal_areas_p.
8428
8429 * dispnew.c (update_window_line): Update marginal areas only
8430 for rows that don't have no_marginal_areas_p set.
8431
8432 * xdisp.c (display_mode_line): Set row's flag no_marginal_areas_p.
8433 (display_menu_bar): Ditto.
8434
8435 * dispextern.h (struct glyph_row): New member no_marginal_areas_p.
8436
8437 * dispnew.c (adjust_glyph_matrix): Compute glyph pointers for
8438 marginal areas in window-based redisplay.
8439
8440 * dispextern.h (struct glyph_matrix): New members
8441 left_margin_glyphs and right_margin_glyphs.
8442
84431998-03-15 Gerd Moellmann <gerd@gnu.org>
8444
8445 * minibuf.c (read_minibuf_unwind): Return Lisp_Object.
8446
8447 * charset.c (non_ascii_char_to_string): Use char type parameters
8448 because the function is used that way from outside. Use unsigned
8449 char internally.
8450
8451 * window.c (change_window_height): Return void.
8452 (make_dummy_parent): Return void.
8453 (init_window_once): Return void.
8454 (syms_of_window): Ditto.
8455 (keys_of_window): Ditto.
8456 (delete_window): Correct return with and without value.
8457
8458 * buffer.c (record_buffer): Return void.
8459
8460 * marker.c (unchain_marker): Return void.
8461
8462 * window.c (unshow_buffer): Return void.
8463 (replace_window): Ditto.
8464 (delete_window): Ditto.
8465
8466 * term.c (delete_glyphs_hook): Void return type.
8467 (ring_bell_hook): Ditto.
8468 (set_terminal_window_hook): Ditto.
8469
8470 * sysdep.c (init_sigio): Return void.
8471
8472 * xterm.c (x_set_window_size): Return void.
8473 (x_calc_absolute_position): Ditto.
8474 (x_set_offset): Ditto.
8475 (x_focus_on_frame): Ditto.
8476 (x_unfocus_frame): Ditto.
8477 (x_make_frame_visible): Ditto.
8478 (x_make_frame_invisible): Ditto.
8479 (x_iconify_frame): Ditto.
8480 (x_destroy_window): Ditto.
8481 (x_wm_set_window_state): Ditto.
8482 (x_wm_set_icon_pixmap): Ditto.
8483 (x_wm_set_icon_position): Ditto.
8484 (x_initialize): Ditto.
8485 (x_error_quitter): Ditto.
8486 (x_destroy_window): Use xfree instead of free.
8487
8488 * keyboard.c (clear_waiting_for_input): Return void.
8489
8490 * xterm.c (x_wm_set_size_hint): Return void.
8491 (x_raise_frame): Ditto.
8492 (refreshicon): Ditto.
8493 (x_error_catcher): Ditto.
8494 (x_clear_errors): Ditto.
8495
8496 * keyboard.c (record_asynch_buffer_change): Return void.
8497
8498