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