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