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