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