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