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