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