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