(menu-bar-help-menu): Add menu item for non-English
[bpt/emacs.git] / src / ChangeLog
CommitLineData
228b083e
EZ
12000-06-15 Eli Zaretskii <eliz@is.elta.co.il>
2
3 * unexec.c (toplevel): Fix last change, so as not to deprive MSDOS
4 of its headers.
5
c25b53a2
KH
62000-06-15 Kenichi Handa <handa@etl.go.jp>
7
8 * coding.c (decode_coding_emacs_mule): Always set src_base at the
9 start of the while loop.
10
a6981b11
GM
112000-06-15 Gerd Moellmann <gerd@gnu.org>
12
e9924e52
GM
13 * atimer.c (alarm_signal_handler): Add forward declaration.
14
a6981b11
GM
15 * data.c (set_internal): Remove debug code.
16
25fa6deb
GM
172000-06-14 Gerd Moellmann <gerd@gnu.org>
18
dce6b995
GM
19 * Makefile.in (bootstrap-temacs): Add `-I../src'.
20
9f817ea4
GM
21 * unexec.c (toplevel) [COFF]: Include coff.h.
22
23 * s/lynxos.h: New file.
24
25 * keymap.c (Fsingle_key_description): Enclose function key and
26 event symbol names in angle brackets.
27
8a4e3c0c
GM
28 * xdisp.c (setup_echo_area_for_printing): Call
29 message_log_maybe_newline if message_buf_print is not set.
30
31 * print.c (printchar, strout): Don't check message_buf_print
32 before calling setup_echo_area_for_printing because that
33 function does something useful even when message_buf_print is
34 already set.
35
25fa6deb
GM
36 * xdisp.c (message_truncate_lines, Qmessage_truncate_lines): New
37 variables.
38 (ensure_echo_area_buffers): Initialize echo buffer's
39 truncate lines setting to nil.
40 (with_echo_area_buffer): Don't set the echo buffer's truncate
41 lines setting here.
8a4e3c0c 42 (set_message_1): Set it here instead, based on the value
25fa6deb
GM
43 of message_truncate_lines.
44 (resize_mini_window): Handle case that lines are truncated.
45 (syms_of_xdisp): Initialize Qmessage_truncate_lines. DEFVAR_BOOL
46 message-truncate-lines.
47
48 * keyboard.c (read_char): Bind message-truncate-lines to t
49 while displaying a help-echo.
50
51 * lisp.h (Qmessage_truncate_lines): External declaration.
52
163dcff3
GM
532000-06-13 Gerd Moellmann <gerd@gnu.org>
54
1681ead6
GM
55 * xdisp.c (Vline_number_display_limit): Renamed from
56 line_number_display_limit.
57 (syms_of_xdisp): Use DEFVAR_LISP for line-number-display-limit.
58 Extend documentation string. Initialize
59 Vline_number_display_limit to nil meaning no limit.
60 (decode_mode_spec): Use Vline_number_display_limit with its new
61 meaning.
62
163dcff3
GM
63 * xterm.c (x_check_font) [GLYPH_DEBUG]: Add prototype.
64
652000-06-13 Richard Stallman <rms@caffeine.ai.mit.edu>
66
67 * frame.c (Fmodify_frame_parameters): Doc fix.
68
69 * xfns.c (x_set_frame_parameters): Comment fix.
70
71 * frame.c (store_frame_param): Call swap_in_global_binding if the
72 variable's current binding was chosen based on this frame.
73
74 * data.c (swap_in_global_binding): New function.
75
a704139d
EZ
762000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
77
78 * msdos.c (IT_write_glyphs): Don't use CODING_REQUIRE_ENCODING
79 macro, instead AND with CODING_REQUIRE_ENCODING_MASK.
80
9b6610db
EZ
812000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
82
83 * msdos.h (EMACS_MSDOS_H): Renamed from MSDOS_H_.
84
c68833d2
JR
852000-06-12 Jason Rumney <jasonr@gnu.org>
86
87 * w32bdf.h (EMACS_W32BDF_H): Renamed from __W32BDF_H__
88
89 * w32.h (EMACS_W32_H): Renamed from _NT_H_
90
91 * w32gui.h (EMACS_W32GUI_H): Renamed from __W32GUI_H__
92
93 * w32inevt.h (EMACS_W32INEVT_H): Renamed from __NTINEVT_H__
94
ed1056b3
GM
952000-06-12 Gerd Moellmann <gerd@gnu.org>
96
97 * xfaces.c (Fdump_colors) [DEBUG_X_COLORS]: New function.
98 (syms_of_xfaces): Defsubr Sdump_colors.
99 (x_free_colors): Don't treat b&w specially on default visual.
100 (x_free_dpy_colors): New function.
101 (free_face_colors): Don't check visual class; it's done
102 in x_free_colors.
103
104 * xterm.c (x_frame_of_widget): New function.
105 (x_alloc_nearest_color_for_widget): Use it.
106 (x_copy_dpy_color): New function.
107 (x_destroy_window): Free various colors.
108
5050a2ef
KH
1092000-06-12 Kenichi Handa <handa@etl.go.jp>
110
111 * ccl.h (EMACS_CCL_H): Renamed from _CCL_H.
112
113 * charset.h (EMACS_CHARSET_H): Renamed from _CHARSET_H.
114
115 * coding.h (EMASC_CODING_H): Renamed from _CODING_H.
116
117 * composite.h (EMACS_COMPOSITE_H): Renamed from _COMPOSITE_H.
118
119 * fontset.h (EMACS_FONTSET_H): Renamed from _FONTSET_H.
120
fb1b041d
DL
1212000-06-11 Dave Love <fx@gnu.org>
122
123 * systime.h (EMACS_SYSTIME_H): Renamed from _SYSTIME_H.
124
ff96b5f4
EZ
1252000-06-11 Eli Zaretskii <eliz@is.elta.co.il>
126
127 * msdos.h: Don't use _MSDOS_H_ as a symbol, use MSDOS_H_ instead.
128
db8eeecd
GM
1292000-06-11 Gerd Moellmann <gerd@gnu.org>
130
ed1056b3 131 * xmenu.c (xmenu_show): Cast second parameter of lw_popup_menu
db8eeecd
GM
132 to `XEvent *'.
133
49b71c5f
KH
1342000-06-10 Kenichi Handa <handa@etl.go.jp>
135
c479bd55
KH
136 * regex.c (MAKE_CHAR) [!emacs]: Dummy macro for non-Emacs env.
137 (regex_compile): Fix the code for handling the case of single byte
138 char and multibyte char being mixed in a range within [...].
139
ff6a65c2
KH
140 * fileio.c (Finsert_file_contents): Be sure to setup src_multibyte
141 and dst_multibyte members of coding.
142
49b71c5f
KH
143 * charset.c (update_charset_table): Update the table
144 bytes_by_char_head.
145 (init_charset_once): Initialize elements of bytes_by_char_head to
146 1 except for leading codes for private charases.
147
148 * charset.h (CHARSET_8_BIT_GRAPHIC): Define as 0x80.
149 (UNIBYTE_STR_AS_MULTIBYTE_P): Fix for an invalid multibyte
150 sequence.
151
9e80b57d
KR
1522000-06-09 Ken Raeburn <raeburn@gnu.org>
153
154 * xterm.c (x_connection_closed): If dpyinfo is NULL, don't try to
155 access the data it doesn't point to.
156
f83fe4b4
GM
1572000-06-08 Gerd Moellmann <gerd@gnu.org>
158
159 * xterm.c (XTread_socket) <FocusIn>: Queue a FOCUS_IN_EVENT which
db8eeecd 160 will be translated to a switch-frame event when reading the
f83fe4b4
GM
161 event queue. This is necessary because Emacs otherwise won't
162 perform a switch-frame to a new frame until some other event, for
163 example a keystroke event, forces it to do so. This has various
164 effects, one visible being that the cursor of a frame created with
165 C-x 5 2 or switched to with a window manager key binding like
166 A-TAB stays hollow because selected_window isn't on the newly
167 focused frame until the switch-frame is performed.
168
169 * keyboard.c (kbd_buffer_get_event): Handle FOCUS_IN_EVENT by
170 generating a switch-frame event if necessary.
171
172 * termhooks.h (enum event_kind): Add FOCUS_IN_EVENT.
173
174 * xdisp.c (handle_fontified_prop): Don't GCPRO local var `pos';
175 it's an integer.
176
0890801b
KH
1772000-06-08 Kenichi Handa <handa@etl.go.jp>
178
179 * fontset.c (Fset_fontset_font): The arg CHARACTER may be a
180 charset.
181
173cbca8
GM
1822000-06-07 Gerd Moellmann <gerd@gnu.org>
183
3091c2a6
GM
184 * window.c (displayed_window_lines): Take empty lines at
185 the bottom of a window into account.
186
f38952fe
GM
187 * window.c (displayed_window_lines): New function.
188 (Fmove_to_window_line): Use displayed_window_lines to determine
189 the number of lines to move, instead of using the window's height.
190
191 * lread.c (readevalloop): If READCHARFUN sets point to ZV, arrange
192 to stop reading, even if the form read sets point to a different
193 value when evaluated.
194
173cbca8
GM
195 * xdisp.c (display_line): Fix code deciding in which line to
196 put the cursor.
197
6ba6c818
KH
1982000-06-07 Kenichi Handa <handa@etl.go.jp>
199
200 * fileio.c (e_write): Free composition data if stored in
201 coding->cmp_data.
202
5f1aea9a
GM
2032000-06-06 Gerd Moellmann <gerd@gnu.org>
204
666852af
GM
205 * xdisp.c (display_line): Set row's and iterator's
206 starts_in_middle_of_char_p and ends_in_middle_of_char_p flags.
207 Set cursor even if row ends in the middle of a character.
208 (dump_glyph_row): Print values of new flags.
209 (redisplay_window) <cursor movement in unchanged window>: When
210 point has been moved forward, and PT is at the end of the cursor
211 row, don't place the cursor in the next row if the cursor row ends
212 in the middle of a character or at ZV.
213
214 * dispextern.h (struct it): Add starts_in_middle_of_char_p.
215 (struct glyph_row): Add starts_in_middle_of_char_p and
216 ends_in_middle_of_char_p.
217 (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P): Test row's
218 ends_in_middle_of_char_p flag.
219 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Likewise.
220
d13f3e2e
GM
221 * term.c (append_glyph): Revert change of 2000-06-06.
222
223 * xdisp.c (display_line): Revert change of 2000-06-06. Treat
224 padding glyph not fitting on line as whole character not
225 fitting on line.
226
5f1aea9a
GM
227 * xterm.c (x_produce_glyphs): Don't xassert `it->descent > 0';
228 this isn't true for images with `:ascent 100'.
229
10cda9b0
KH
2302000-06-06 Kenichi Handa <handa@etl.go.jp>
231
ed00559d
KH
232 * buffer.c (Fset_buffer_multibyte): Don't make the current buffer
233 as modified if it is originally unmodified.
234
10cda9b0
KH
235 * term.c (encode_terminal_code): Change the way to check if
236 terminal coding does any conversion.
237 (append_glyph): Set glyph->pixel_width correctly.
238
239 * xdisp.c (display_line): While checking line continuation, pay
240 attention to a padding glyph.
241
1969fae2
GM
2422000-06-05 Gerd Moellmann <gerd@gnu.org>
243
244 * xdisp.c (redisplay_window): Always use set_buffer_internal_1.
245
162ccef4
DL
2462000-06-05 Dave Love <fx@gnu.org>
247
f19f32dd
DL
248 * xdisp.c: Include fontset.h.
249
250 * xfns.c (x_real_positions): Declare tmp_nchildren as unsigned.
251
252 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
253
254 * dispnew.c: Conditionally include term.h.
255
256 * coding.h: Declare code_convert_string_norecord.
257
258 * frame.h (struct frame): Use volatile unconditionally.
259
260 * buffer.h: Remove Vbefore_change_function, Vafter_change_function.
261
262 * xmenu.c (menu_item_selection): Declare volatile unconditionally.
263
264 * systime.h: Protect against multiple inclusion.
265 (timezone) [USG5_4]: Define as time_t.
266
267 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
268 (Foptimize_char_table, make_temp_name): Declare.
269
270 * Makefile.in (xdisp.o): Depend on fontset.h.
271
272 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
273
274 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
275 (Foptimize_char_table, make_temp_name): Declare.
276
162ccef4
DL
277 * s/irix4-0.h:
278 * s/irix5-0.h:
279 * s/netbsd.h: Don't define autoconfiscated MATHERR.
280
2082fe81
DL
2812000-06-02 Dave Love <fx@gnu.org>
282
283 * lread.c (_XOPEN_SOURCE, __EXTENSIONS__): Don't define.
284
dcf671d2
GM
2852000-06-02 Gerd Moellmann <gerd@gnu.org>
286
287 * xfaces.c (realize_x_face): When copying BASE_FACE bitwise to the
1969fae2 288 result face, set flags in that face indicating that colors may not
dcf671d2
GM
289 be freed.
290
291 * xterm.c (x_set_mouse_face_gc): If first glyph isn't a character
292 glyph, use the ASCII NUL character to determine the face.
293
d42122a3
DL
2942000-06-02 Dave Love <fx@gnu.org>
295
296 * sysdep.c: Conditionally include stdlib.h, unistd.h.
297 (VFORK_RETURN_TYPE): Remove.
298
299 * config.in: Add NO_MATHERR.
300
dd432f16
DL
3012000-06-01 Dave Love <fx@gnu.org>
302
90aa4ea8
DL
303 * cmds.c (internal_self_insert): Don't check
304 Vbefore_change_function, Vafter_change_function.
305
306 * insdel.c (signal_before_change, signal_after_change): Likewise.
307
308 * buffer.c (Vbefore_change_function, Vafter_change_function):
309 Variables and their initializations deleted.
310
2330c9d4
DL
311 * callint.c (Fcall_interactively): Doc fix.
312
dd432f16
DL
313 * terminfo.c (ospeed) [HAVE_SPEED_T]: Don't declare extern.
314
bf9e8804
DL
3152000-05-31 Dave Love <fx@gnu.org>
316
317 * textprop.c: Revert last change -- duplicated.
318
3694b4ab
GM
3192000-05-31 Gerd Moellmann <gerd@gnu.org>
320
321 * dispnew.c (find_glyph_row_slice, swap_glyphs_in_rows): Put
322 in #if 0.
323
324 * lisp.h (eassert) [!ENABLE_CHECKING]: Define as `(void) 0'.
325
f14156cd
JR
3262000-05-31 Jason Rumney <jasonr@gnu.org>
327
8119aab8
JR
328 * search.c (Fre_search_forward, Fre_search_backward)
329 (Fposix_search_backward, Fposix_search_forward): Fix newlines in docs.
330
f14156cd
JR
331 * w32select.c (Fw32_set_clipboard_data): Change QNil to Qnil.
332
4aab9be3
JR
3332000-05-30 Jason Rumney <jasonr@gnu.org>
334
335 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: New macros.
336 [WINDOWSNT]: Add extern for Vw32_system_coding_system.
337
338 * dispextern.h (struct glyph) [WINDOWSNT]: Add w32_font_type
339 member.
340
341 * fileio.c (Fread_file_name) [HAVE_NTGUI]: Use file dialog.
342 (Fread_file_name) [HAVE_NTGUI, USE_MOTIF]: Do not attempt to
343 expand a nil default_filename.
344
345 * keyboard.c (make_lispy_event) [WINDOWS_NT]: Pass a window
346 pointer to glyph_to_pixel_coords, not a frame.
347
348 * makefile.nt (w32fns.obj, w32menu.obj): Add charset.h and
349 coding.h to dependencies.
350
351 * w32bdf.c (w32_load_bdf_font): Initialize font->double_byte_p.
352
353 * w32console.c (glyph_to_pixel_coords): Change first parameter to
354 window pointer to be consistent with w32term.c and xterm.c.
355
356 * w32fns.c: Format and doc changes to bring closer to xfns.c.
357 (VIETNAMESE_CHARSET): Define if not defined in system headers.
358 (Qline_spacing, Qcenter): New variables.
359 (Qw32_charset_*, w32_codepage_for_font): Moved from w32term.c.
360 (x_set_line_spacing): New function.
361 (x_set_frame_parameters): Use FRAME_NEW_WIDTH, FRAME_NEW_HEIGHT
362 macros.
363 (x_specified_cursor_type): New function.
364 (x_set_cursor_type): Use it.
365 (x_set_name, x_set_title): Use ENCODE_SYSTEM to encode titlebar
366 and icon strings.
367 (validate_x_resource_name, x_get_resource_string): Measure lengths
368 of external strings in bytes.
369 (w32_wnd_proc) [WM_MEASURE_ITEM]: Avoid calling
370 GetTextExtentPoint32 with NULL title.
371 (Fx_create_frame): Initialize Qline_spacing.
372 (w32_load_system_font): Initialize font->double_byte_p.
373 (x_to_w32_charset): Use Vw32_charset_info_alist.
374 (Image, busy cursor, tooltip functions): Merged changes from
375 xfns.c. Not yet functional on Windows.
376
377 * w32gui.h (W32FontStruct): Add double_byte_p member.
378
379 * w32inevt.c (NUM_TRANSLATED_MOUSE_BUTTONS): New constant.
380 (emacs_button_translation): Use it.
381 (do_mouse_event): Allow up to 32 mouse buttons by allowing any bit
382 in `mask' to be set.
383
384 * w32menu.c (single_submenu, w32_menu_show): Call ENCODE_SYSTEM on
385 menu strings.
386
387 * w32term.c: Format and doc changes to bring closer to xterm.c.
388 (w32_char_font_type): New enum.
389 (Qw32_charset_*, w32_codepage_for_font): Moved to w32fns.c.
390 (w32_per_char_metric): Use w32_char_font_type instead of unicode_p.
391 (w32_encode_char): New function.
392 (x_encode_char): Removed.
393 (x_get_glyph_and_face_encoding): Use w32_encode_char in place of
394 x_encode_char and w32_font_is_double_byte.
395 (x_produce_image_glyph): Use image_ascent.
396 (x_produce_glyphs): Use new version of w32_per_char_metric and
397 handle NULL return value. Allow extra line spacing.
398 (W32_TEXTOUT): Distinguish between Unicode and DBCS text.
399 (w32_get_glyph_overhangs): Remove unicode_p param. Use
400 w32_font_type member of glyph instead.
401 (x_draw_glyph_string): Draw underline and strike-out for BDF fonts.
402 (fast_find_position): Make sure not to consider rows not visible
403 in the window.
404 (w32_read_socket) [WM_MENUSELECT]: Cannot call
405 w32_menu_display_help with input blocked, as it can abort.
406 (x_display_and_set_cursor): Choose cursor depending
407 on buffer-local value of cursor_type.
408 (x_draw_bar_cursor): Add parameter WIDTH.
409
410 * w32term.h (CP_DEFAULT): Define.
411 (Fx_display_color_p, Fx_display_grayscale_p, image_ascent): Declare.
412
10fc3187
GM
4132000-05-30 Gerd Moellmann <gerd@gnu.org>
414
415 * search.c (Fre_search_forward, Fre_search_backward)
416 (Fposix_search_backward, Fposix_search_forward): Doc fix.
417
d0555360
KH
4182000-05-30 Kenichi Handa <handa@etl.go.jp>
419
420 * coding.c (detect_coding_iso2022): Fix code for checking
421 CODING_CATEGORY_MASK_ISO_8_2.
422
f1ad044f
SM
4232000-05-29 Stefan Monnier <monnier@cs.yale.edu>
424
425 * regex.c (PREFETCH_NOLIMIT): New function.
426 (re_match_2_internal): Use it and adjust the end_match_2 logic.
427
84ec3b4b
GM
4282000-05-29 Gerd Moellmann <gerd@gnu.org>
429
66254a13
GM
430 * syntax.c (find_defun_start): Move test for
431 open_paren_in_column_0_is_defun_start outside of the loop.
432
49e70dec
GM
433 * xdisp.c (redisplay_window): Really switch buffers when
434 displaying mode lines, and temporarily set selected_frame to the
435 frame of the window that's redisplayed.
436
84ec3b4b
GM
437 * xfaces.c (free_realized_faces): Block/unblock input.
438 (free_realized_multibyte_face): Ditto.
439
869a3a14
DL
4402000-05-29 Dave Love <fx@gnu.org>
441
442 * textprop.c (Qkeymap): New variable.
443 (syms_of_textprop): Intern it.
444
445 * keymap.c: Include intervals.h.
446 (Fkey_binding, Fwhere_is_internal): Deal with `keymap' property.
447
448 * Makefile.in (keymap.o): Depend on intervals.h.
449
450 * keyboard.c (menu_bar_items, tool_bar_items)
451 (Fexecute_extended_command): Deal with `keymap' property.
452 (read_key_sequence): Track map from `keymap' property as well as
453 `local_map'.
454
455 * intervals.c (get_local_map): Extra arg to allow looking for
456 `keymap' too.
457
458 * intervals.h (map_property): New enum.
459 (get_local_map): Extra arg using it.
460 (Qkeymap): Declare.
461
84ec3b4b 462 * lisp.h (get_local_map): Don't declare here.
869a3a14 463
89d0c844
KH
4642000-05-29 Kenichi Handa <handa@etl.go.jp>
465
466 * Makefile.in (callproc.o): Depend on composite.h.
467
468 * callproc.c: Include composite.h.
469 (Fcall_process): Handle composition correctly.
470
471 * coding.h (coding_allocate_composition_data): Extern it.
472 (coding_restore_composition): Likewise.
473
474 * coding.c (DECODE_COMPOSITION_START): If coding->cmp_data is not
475 yet allocated, finish decoding with result
476 CODING_FINISH_INSUFFICIENT_CMP.
477 (coding_allocate_composition_data): Make it non-static.
478 (coding_restore_composition): Likewise.
479
797a084a
EZ
4802000-05-29 Eli Zaretskii <eliz@is.elta.co.il>
481
482 * charset.c (syms_of_charset): Revert last change.
483
cf872af5
EZ
4842000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
485
486 * term.c (produce_glyphs): Treat characters from the eight-bit-*
487 charsets as unibyte, with 1-column screen width. Sent by Kenichi
488 Handa.
489
5b1ae051
EZ
4902000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
491
492 * charset.c (syms_of_charset): Set width of character sets
493 eight-bit-control and eight-bit-graphic to 1 column.
494
34ec9ebe
GM
4952000-05-26 Gerd Moellmann <gerd@gnu.org>
496
497 * config.in (HAVE_SPEED_T): New define.
498
499 * sysdep.c, terminfo.c (ospeed) [HAVE_SPEED_T]: Declare as
500 `extern speed_t'.
501
dd854dc2
DL
5022000-05-26 Dave Love <fx@gnu.org>
503
504 * coding.c (shrink_decoding_region): Initialize eol_conversion.
505
506 * data.c (Qsubrp, Qmany, Qunevalled): New variables.
507 (Fsubr_arity): New function.
508 (syms_of_data): Install them.
509
ba9f8f95
KH
5102000-05-26 Kenichi Handa <handa@etl.go.jp>
511
0f3e0672
KH
512 * charset.c (init_charset_once): Set the table bytes_by_char_head
513 correctly.
514
cebefb44
KH
515 * fontset.c (syms_of_fontset): Adjust the font name for ascii of
516 the default fontset to what Emacs uses by default.
0f3e0672
KH
517 (check_registry_encoding): This function deleted.
518 (Fset_fontset_font): Remove the adhoc condition for the default
519 fontset. Allow cons in FONTNAME.
cebefb44 520
0f3e0672
KH
521 * fns.c (map_char_table): Ignore char-table entries for
522 charsets eight-bit-control and eight-bit-graphic.
ba9f8f95 523
7a18af49
KR
5242000-05-25 Ken Raeburn <raeburn@gnu.org>
525
526 * emacs.c (main): Initialize keyboard syms before initializing
527 window code, so face names are available.
528
d2af47df
SM
5292000-05-25 Stefan Monnier <monnier@cs.yale.edu>
530
531 * regex.c (at_begline_loc_p): Also recognize the \\(?:^ case
532 of an anchor at the beginning of a shy-group.
533
fc6a6a4e
GM
5342000-05-25 Gerd Moellmann <gerd@gnu.org>
535
536 * xdisp.c (handle_invisible_prop): Don't try to skip over
537 invisible text if end of text is already reached.
538
005f0d35
DL
5392000-05-25 Dave Love <fx@gnu.org>
540
02513cdd
DL
541 * xdisp.c (Fdump_glyph_matrix): Declare the arg.
542
005f0d35
DL
543 * coding.c (encode_eol): Add null statement after label.
544
89f6ca4e
EZ
5452000-05-25 Eli Zaretskii <eliz@is.elta.co.il>
546
547 * w16select.c (Fw16_set_clipboard_data): Fix the change from
548 2000-05-20.
549
a4e1759e
KH
5502000-05-25 Kenichi Handa <handa@etl.go.jp>
551
552 * ccl.c (ccl_driver): Fix previous change.
553
eacfd7fe
KH
5542000-05-25 Kenichi Handa <handa@etl.go.jp>
555
46ab33a9
KH
556 * coding.c (run_pre_post_conversion_on_str): Set point to the
557 beginning of buffer before calling coding->post_read_conversion.
558 (decode_coding_string): Give correct args to
559 run_pre_post_conversion_on_str.
560 (encode_coding_string): Likewise.
561
eacfd7fe
KH
562 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>
563 <CCL_WriteMultibyteChar2>: Handle charsets eight-bit-control and
564 eight-bit-graphic correctly.
565
f8569325
DL
5662000-05-24 Kenichi HANDA <handa@etl.go.jp>
567
568 * fileio.c (Finsert_file_contents): Even if a file is not found,
569 execute codes for setting up coding system. Call
570 after-insert-file-functions unconditionally.
571
04545643
GM
5722000-05-24 Gerd Moellmann <gerd@gnu.org>
573
574 * callproc.c, emacs.c, sysdep.c (setpgrp): Don't define if USG and
575 BSD_PGRPS are not defined.
576
747d90ea
KH
5772000-05-24 Kenichi Handa <handa@etl.go.jp>
578
579 * charset.c (update_charset_table): Accept nil in LONG_NAME and
580 DESCRIPTION.
581 (syms_of_charset): Avoid building same strings.
582
716e3b88
GM
5832000-05-23 Gerd Moellmann <gerd@gnu.org>
584
585 * lread.c (Fload): Add a comment about the meaning of
586 Vuser_init_file being t.
587
588 * puresize.h (BASE_PURESIZE): Increase to 675000.
589
590 * s/gnu-linux.h (setpgrp): Don't define it here because this
591 prevents compilation on GNU/Linux systems with glib 2.2.
592
593 * callproc.c, emacs.c, sysdep.c (setpgrp) [HAVE_SETPGID]: Define
594 as setpgid.
595
9aeb39fa
EZ
5962000-05-23 Eli Zaretskii <eliz@is.elta.co.il>
597
598 * Makefile.in (SOME_MACHINE_LISP): Add disp-table.elc,
599 dos-vars.elc, ccl.elc, and codepage.elc, all loaded by the MS-DOS
600 version.
601 (MSDOS_SUPPORT): Add dos-vars.elc, ccl.elc, and codepage.elc.
602
29ced61b
KH
6032000-05-23 Kenichi Handa <handa@etl.go.jp>
604
0574a2ed
KH
605 * syntax.c (skip_chars): Use FETCH_STRING_CHAR_ADVANCE
606 unconditionally.
607
3d80f24d
KH
608 * msdos.c (IT_write_glyphs): Set coding->src_multibyte to 1.
609
610 * term.c (encode_terminal_code): Set coding->src_multibyte
611 properly.
612
29ced61b
KH
613 * coding.c (encode_eol): Fix a bug of DOS style EOL encoding.
614
d7e00792
KH
6152000-05-22 Kenichi Handa <handa@etl.go.jp>
616
c9d80d38
KH
617 * keyboard.c (read_char): Allow character codes 128..255 to be
618 handled by input-method-function.
619
d7e00792
KH
620 * insdel.c (adjust_markers_for_replace): Fix previous change.
621 (adjust_after_replace): If PREV_TEXT is nil, call
622 adjust_markers_for_insert, not adjust_markers_for_replace.
623
087121cc
GM
6242000-05-20 NIIBE Yutaka <gniibe@mri.co.jp>
625
626 * s/gnu-linux.h (UNIX98_PTYS) [HAVE_GRANDPT]: Define.
627 (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_OPEN, PTY_TTY_NAME_SPRINTF)
628 [HAVE_GRANDPT]: Define.
629 (C_SWITCH_SYSTEM): Add -D_XOPEN_SOURCE.
630
631 * sysdep.c (setup_pty): Treat case that UNIX98_PTYS is defined
632 like SYSV_PTYS.
633
634 * config.in (HAVE_GRANDPT, HAVE_GETPT): New defines.
635
636 * process.c (toplevel) [UNIX98_PTYS]: Include stdlib.h.
637
c9671f81
KH
6382000-05-20 Kenichi Handa <handa@etl.go.jp>
639
640 The following changes are to handle 8-bit characters in a
641 multibyte buffer/string without facing with byte combining
642 problem. Two new charsets eight-bit-control (for 0x80..0x9F) and
643 eight-bit-graphic (for 0xA0..0xFF) are introduced.
644
645 * Makefile.in (fns.o): Depend on charset.h.
646
647 * alloc.c (Fmake_byte_code): If BYTECODE-STRING is multibyte,
648 convert it to unibyte.
649 (make_string): Use parse_str_as_multibyte, not chars_in_text.
650
651 * buffer.c (advance_to_char_boundary): Don't use DEC_POS to find a
652 apparent char boundary.
653 (Fset_buffer_multibyte): Convert 8-bit characters in the range
654 0x80..0x9F to/from multibyte form.
655
656 * bytecode.c (Fbyte_code): If arg BYTESTR is multibyte, convert it
657 to unibyte.
658
659 * callproc.c (Fcall_process): Always encode an argument string if
660 it is multibyte. Setup src_multibyte and dst_multibyte members of
661 process_coding properly.
ce75fd23 662
c9671f81
KH
663 * category.c (Fmodify_category_entry): Use SPLIT_CHAR, not
664 SPLIT_NON_ASCII_CHAR.
665
666 * ccl.c (CCL_WRITE_CHAR): Be sure to write single byte characters
667 as is.
668 (CCL_MAKE_CHAR): Use MAKE_CHAR, not MAKE_NON_ASCII_CHAR.
669
670 * charset.c (Qeight_bit_control, Qeight_bit_graphic): New
671 variables.
672 (SPLIT_CHARACTER_SEQ): This macro deleted.
673 (SPLIT_MULTIBYTE_SEQ): Assume that multibyte sequence at STR is
674 valid.
675 (CHAR_COMPONENTS_VALID_P): Handle new charsets; eight-bit-control
676 and eight-bit-graphic.
677 (char_to_string): Likewise. Signal an error for too large
678 character code.
679 (char_printable_p): Return 0 for 8-bit characters.
680 (update_charset_table): Update iso_charset_table only when a final
681 character is non-negative.
682 (find_charset_in_text): Renamed from find_charset_in_str.
683 Arguments and return value changed. Callers changed.
684 (Fdefine_charset): Args ISO-FINAL-CHAR and ISO-GRAPHIC-PLANE can
685 be -1 if CHARSET is used only internally.
686 (Fmake_char_internal): Handle new charsets; eight-bit-control and
687 eight-bit-graphic.
688 (Fcharset_after): Simplified.
689 (char_valid_p): Use SPLIT_CHAR, not SPLIT_NON_ASCII_CHAR.
690 (char_bytes): Return 2 for chars of the range 0xA0..0xFF.
691 (multibyte_chars_in_text): Simplified by assuming there's no
692 invalid multibyte sequence.
693 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte,
694 str_as_unibyte): New functions.
695 (Fstring): Simpified by assuming that byte combining never
696 happens.
697 (init_charset_once): Initialization for
698 LEADING_CODE_8_BIT_CONTROL.
699 (syms_of_charset): Intern and staticpro Qeight_bit_control and
700 Qeight_bit_graphic. Include them in Vcharset_list. Make charsets
701 eight-bit-control and eight-bit-graphic.
702
703 * charset.h (LEADING_CODE_8_BIT_CONTROL, CHARSET_8_BIT_CONTROL,
704 CHARSET_8_BIT_GRAPHIC): New macros.
705 (SINGLE_BYTE_CHAR_P): Make it faster by using casting.
706 (CHARSET_ISO_GRAPHIC_PLANE): Use XINT instead of XFASTINT.
707 (CHARSET_REVERSE_CHARSET): Likewise.
708 (CHARSET_VALID_P): Handle new charsets; eight-bit-control and
709 eight-bit-graphic.
710 (BYTES_BY_CHAR_HEAD, WIDTH_BY_CHAR_HEAD): Optimize for ASCII.
711 (CHAR_CHARSET, MAKE_CHAR, SPLIT_CHAR, CHAR_BYTES): Likewise.
712 (PARSE_MULTIBYTE_SEQ) [BYTE_COMBINING_DEBUG]: Abort if we
713 encounter an invalid multibyte sequence.
714 (PARSE_MULTIBYTE_SEQ) [not BYTE_COMBINING_DEBUG]: Assume multibyte
715 sequence is always valid.
716 (MAKE_NON_ASCII_CHAR, SPLIT_NON_ASCII_CHAR): These macros Deleted.
717 (UNIBYTE_STR_AS_MULTIBYTE_P, MULTIBYTE_STR_AS_UNIBYTE_P): New
718 macros.
719 (CHAR_STRING): For 8-bit characters, call char_to_string.
720 (INC_POS) [not BYTE_COMBINING_DEBUG]: Faster version. Assume
721 multibyte sequence is always valid.
722 (BUF_INC_POS) [not BYTE_COMBINING_DEBUG]: Likewise.
723 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte,
724 str_as_unibyte): Extern them.
725 (BCOPY_SHORT): Fix a bug.
726 (CHAR_LEN): This macro deleted. Callers changed to use
727 CHAR_BYTES.
728 (FETCH_STRING_CHAR_ADVANCE): Check multibyteness of STRING.
729 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): New macro.
730 (FETCH_CHAR_ADVANCE): Check multibyteness of the current buffer.
731
bd4bde7f 732 * coding.c (ONE_MORE_BYTE, TWO_MORE_BYTES): Set coding->result to
c9671f81
KH
733 CODING_FINISH_INSUFFICIENT_SRC if there's not enough source.
734 (ONE_MORE_CHAR, EMIT_CHAR, EMIT_ONE_BYTE, EMIT_TWO_BYTE,
735 EMIT_BYTES): New macros.
736 (THREE_MORE_BYTES, DECODE_CHARACTER_ASCII,
737 DECODE_CHARACTER_DIMENSION1, DECODE_CHARACTER_DIMENSION2): These
738 macros deleted.
739 (CHECK_CODE_RANGE_A0_FF): This macro deleted.
740 (detect_coding_emacs_mule): Use UNIBYTE_STR_AS_MULTIBYTE_P to
741 check the validity of multibyte sequence.
742 (decode_coding_emacs_mule): New function.
743 (encode_coding_emacs_mule): New macro.
744 (detect_coding_iso2022): Use ONE_MORE_BYTE to fetch a byte from
745 the source.
746 (DECODE_ISO_CHARACTER): Just return a character code.
747 (DECODE_COMPOSITION_START): Set coding->result instead of result.
748 (decode_coding_iso2022, decode_coding_sjis_big5, decode_eol): Use
749 EMIT_CHAR to produced decoded characters. Exit the loop only by
750 macros ONE_MORE_BYTE or EMIT_CHAR. Don't handle the case of last
751 block here.
752 (ENCODE_ISO_CHARACTER): Don't translate character here. Produce
753 only position codes for an invalid character.
754 (encode_designation_at_bol): Return new destination pointer. 5th
755 arg DSTP is changed to DST.
756 (encode_coding_iso2022, decode_coding_sjis_big5): Get a character
757 from the source by ONE_MORE_CHAR. Don't handle the case of last
758 block here.
759 (DECODE_SJIS_BIG5_CHARACTER, ENCODE_SJIS_BIG5_CHARACTER): These
760 macros deleted.
761 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8,
762 detect_coding_utf_16, detect_coding_ccl): Use ONE_MORE_BYTE and
763 TWO_MORE_BYTES to fetch a byte from the source.
764 (encode_eol): Pay attention to coding->src_multibyte.
765 (detect_coding, detect_eol): Preserve members src_multibyte and
766 dst_multibyte.
767 (DECODING_BUFFER_MAG): Return 2 even for coding_type_raw_text.
768 (encoding_buffer_size): Set magnification to 3 for all coding
769 systems that require encoding.
770 (ccl_coding_driver): For decoding, be sure that the result is
771 valid multibyte sequence.
772 (decode_coding): Initialize coding->errors and coding->result.
773 For emacs-mule, call decode_coding_emacs_mule. For no-conversion
774 and raw-text, always call decode_eol. Handle the case of last
775 block here. If not coding->dst_multibyte, convert the resulting
776 sequence to unibyte.
777 (encode_coding): Initialize coding->errors and coding->result.
778 For emacs-mule, call encode_coding_emacs_mule. For no-conversion
779 and raw-text, always call encode_eol. Handle the case of last
780 block here.
781 (shrink_decoding_region, shrink_encoding_region): Detect cases
782 that we can't skip data more rigidly.
783 (code_convert_region): Setup src_multibyte and dst_multibyte
784 members of coding. For decoding, if the buffer is multibyte,
785 convert the source sequence to unibyte in advance. For encoding,
786 if the buffer is multibyte, convert the resulting sequence to
787 multibyte afterward.
788 (run_pre_post_conversion_on_str): New function.
789 (code_convert_string): Deleted and divided into the following two.
790 (decode_coding_string, encode_coding_string): New functions.
791 (code_convert_string1, code_convert_string_norecord): Call one of
792 above.
793 (Fdecode_sjis_char, Fdecode_big5_char): Use MAKE_CHAR instead of
794 MAKE_NON_ASCII_CHAR.
795 (Fset_terminal_coding_system_internal,
796 Fset_safe_terminal_coding_system_internal): Setup src_multibyte
797 and dst_multibyte members.
798 (init_coding_once): Initialize iso_code_class with new enum
799 ISO_control_0 and ISO_control_1.
800
801 * coding.h (enum iso_code_class_type): Member ISO_control_code is
802 devided into ISO_control_0 and ISO_control_1.
803 (struct coding_system): New members src_multibyte, dst_multibyte,
804 errors, and result. Delete member fake_multibyte.
805 (CODING_REQUIRE_DECODING): Return 1 if coding->dst_multibyte is
806 nonzero.
807 (CODING_REQUIRE_ENCODING): Return 1 if coding->src_multibyte is
808 nonzero.
809
810 * data.c (Faref): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
811 (Faset): Likewise.
812
813 * editfns.c (Fformat): Be sure to convert 8-bit characters to
814 multibyte form.
815 (Ftranspose_region) [BYTE_COMBINING_DEBUG]: Abort if byte
816 combining occurs.
817 (Ftranspose_region): Delete codes for handling byte combining.
818
819 * fileio.c (Finsert_file_contents): Setup src_multibyte and
820 dst_multibyte members of coding. On handling REPLACE on unibyte
821 buffer, convert the result of decode_coding to unibyte. On
822 inserting into a mutibyte buffer, always call code_convert_region.
bd4bde7f 823 (e_write): Setup coding->src_multibyte according to the
c9671f81
KH
824 multibyteness of the source (buffer or string).
825
826 * fns.c (concat): Handle 8-bit characters correctly.
827 (Fstring_as_unibyte): Be sure to make all 8-bit characters in
828 unibyte in the result.
829 (Fstring_as_multibyte): Be sure to make all 8-bit characters in
830 valid multibyte form in the result.
831 (map_char_table): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
832 (Fbase64_encode_region, Fbase64_encode_string): If base64_encode_1
833 return -1, signal an error.
834 (base64_encode_1): New arg MULTIBYTE. Get each character by
835 CHAR_STRING_AND_LENGTH if MULTIBYTE is nonzero. If a multibyte
836 character is found, return -1.
837 (Fbase64_decode_region): Delete codes for handling byte-combining.
838 Treat each decoded byte as a unibyte character.
839 (Fbase64_decode_string): Return unibyte string.
840 (Fcompare_strings, concat, string_byte_to_char): Use
841 FETCH_STRING_CHAR_ADVANCE_NO_CHECK instead off
842 FETCH_STRING_CHAR_ADVANCE.
843 (Fstring_lessp): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
844 (mapcar1): If SEQ is string, always use FETCH_STRING_CHAR_ADVANCE.
845
846 * fontset.c (fontset_ref): Use SPLIT_CHAR instead of
847 SPLIT_NON_ASCII_CHAR.
848 (fontset_ref_via_base, fontset_set): Likewise
849
850 * insdel.c (adjust_markers_for_record_delete): Deleted.
851 (adjust_markers_for_insert): Argument changed. Caller changed.
852 (adjust_markers_for_replace): Likewise.
853 (ADJUST_CHAR_POS, combine_bytes, byte_combining_error,
854 CHECK_BYTE_COMBINING_FOR_INSERT): Deleted.
855 (copy_text): Delete unused local varialbe c_save. For converting
856 to multibyte, be sure to make all 8-bit characters in valid
857 multibyte form.
858 (count_size_as_multibyte): Handle 8-bit characters correctly.
859 (insert_1_both, insert_from_string_1, insert_from_buffer_1,
860 adjust_after_replace, replace_range, del_range_2)
861 [BYTE_COMBINING_DEBUG]: Abort if byte combining occurs.
862 (insert_1_both, insert_from_string_1, insert_from_buffer_1,
863 adjust_after_replace, replace_range, del_range_2) Delete codes for
864 handling byte combining.
865 (adjust_before_replace): Deleted.
866
867 * keymap.c (Fsingle_key_description): Use SPLIT_CHAR instead of
868 SPLIT_NON_ASCII_CHAR.
869 (describe_vector): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
870 (Faccessible_keymaps): Use FETCH_STRING_CHAR_ADVANCE
871 unconditionally.
872 (Fkey_description): Likewise.
873
874 * lread.c (read1): On reading multibyte string, be sure to make
875 all 8-bit chararacters in valid multibyte form.
876 (readchar): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
877
878 * print.c (print_object): Use FETCH_STRING_CHAR_ADVANCE
879 unconditionally.
880
881 * process.c (Fstart_process): GCPRO current_dir before calling
882 Ffind_operation_coding_system. Encode arguments here.
883 (create_process): Don't encode arguments here. Setup
884 src_multibyte and dst_multibyte members of struct coding.
885 (read_process_output): Setup src_multibyte and dst_multibyte
886 members of struct coding. If the output is to multibyte buffer,
887 always decode the output of the process. Adjust the
888 representation of 8-bit characters to the multibyteness of the
889 output.
890 (send_process): Setup coding->src_multibyte according to the
891 multibyteness of the source.
892
893 * search.c (wordify): Use FETCH_STRING_CHAR_ADVANCE
894 unconditionally.
895 (Freplace_match): Use FETCH_STRING_CHAR_ADVANCE and
896 FETCH_STRING_CHAR_ADVANCE_NO_CHECK appropriately.
897
898 * term.c (produce_special_glyphs): Use CHAR_BYTES instead of
899 CHAR_LEN.
900
901 * w16select.c (Fw16_set_clipboard_data): Setup members
902 src_multibyte and dst_multibyte of coding. Adjusted for the
903 change for find_charset_in_str.
904 (Fw16_get_clipboard_data): Likewise.
905
906 * w32fns.c (w32_to_x_font): Setup members src_multibyte and
907 dst_multibyte of coding.
908 (x_to_w32_font): Likewise.
909
910 * w32select.c (Fw32_set_clipboard_data): Setup members
911 src_multibyte and dst_multibyte of coding. Adjusted for the
912 change for find_charset_in_str.
913 (Fw32_get_clipboard_data): Likewise.
914
915 * xdisp.c (get_next_display_element): Handle 8-bit characters
916 correctly.
917 (next_element_from_display_vector): Use CHAR_BYTES instead of
918 CHAR_LEN.
919 (disp_char_vector): Use SPLIT_CHAR instead of
920 SPLIT_NON_ASCII_CHAR.
921
922 * xselect.c (selection_data_to_lisp_data): Setup members
923 src_multibyte and dst_multibyte of coding. Adjusted for the
924 change for find_charset_in_str.
925 (lisp_data_to_selection_data): Likewise.
926
5f64c9e0
GM
9272000-05-19 Gerd Moellmann <gerd@gnu.org>
928
2b63d473
GM
929 * buffer.c (Fbury_buffer): Avoid trouble from burying a killed
930 buffer.
931
5f64c9e0
GM
932 * dispextern.h (Vimage_types): Add extern declaration.
933
934 * xdisp.c (Vimage_types): Moved here from xfns.c.
935 (syms_of_xdisp): Move `image-types' variable here from xfns.c.
936
937 * xfns.c (Vimages_types): Moved to xdisp.c.
938 (syms_of_xfns): Move `image-types' to xdisp.c.
939
940 * w32fns.c (Vimage_types): Removed.
941 (syms_of_w32fns): Remove `image-types'.
942
813086ea
KH
9432000-05-18 Kenichi Handa <handa@etl.go.jp>
944
945 * fns.c (map_char_table): Pay attention to character number of
946 charset. Check the validity of charset at the first level. For
947 leaf nodes that has nil value, call C_FUNCTION or FUNCTION with
948 the default value.
949
950 * fontset.c: Include "buffer.h".
951 (fs_load_font): If the face has fontset, record the face ID in
952 that fontset.
953 (Finternal_char_font): New function.
954 (accumulate_font_info): New function.
955 (Ffontset_info): Rewritten for the new fontset implementation.
956 (syms_of_fontset): Register Vdefault_fontset in the first element
957 of Vfontset_table. Include Vdefault_fontset in
958 Vfontset_alias_alist. Declare `internal-char-font' as a Lisp
959 function.
960
bdaebbf0
DL
9612000-05-16 Dave Love <fx@gnu.org>
962
963 * m/iris5d.h: Deleted -- unused.
964
cb613bb8
GM
9652000-05-16 Gerd Moellmann <gerd@gnu.org>
966
b15f3b77
GM
967 * xdisp.c, w32.c, print.c, msdos.c, emacs.c: Use the term
968 `invalid' instead of `illegal'.
969
970 * indent.c (Fmove_to_column): When ending within a tab, insert
971 spaces first so that markers at the end of the tab get adjusted.
972
835c1b36
GM
973 * frame.c (frames_bury_buffer): Don't add a buffer to the frame's
974 buffer list that wasn't selected in that frame.
975
cb613bb8
GM
976 * filelock.c (get_boot_time): To obtain an 8 char file name, which
977 is needed on mescaline, use a 2 char prefix, and call
978 make_temp_name with second arg non-zero.
979
980 * fileio.c (make_temp_name): New function, extracted from
981 Fmake_temp_name.
982 (Fmake_temp_name): Use it.
983
f685bea9
EZ
9842000-05-15 Eli Zaretskii <eliz@is.elta.co.il>
985
986 * window.c (coordinates_in_window): Subtract 1 when computing
987 right_x.
988
a1b8d58b
GM
9892000-05-15 Gerd Moellmann <gerd@gnu.org>
990
991 * Makefile.in (lisp): Add env.elc.
992
993 * callproc.c (Fgetenv_internal): Renamed from Fgetenv.
994
a265079f
GM
9952000-05-12 Gerd Moellmann <gerd@gnu.org>
996
997 * search.c (Freplace_match): Handle case of `\N' in the
998 replacement when there's no group N.
999
da4496b6
GM
10002000-05-11 Gerd Moellmann <gerd@gnu.org>
1001
0ace421a
GM
1002 * xdisp.c (add_to_log): Don't pass the terminating NUL byte
1003 of the message to message_dolog.
1004
1172eb8d
GM
1005 * keyboard.c (read_char): Don't clear current message for help
1006 events; let the code handling help events handle this. Change
1007 code detecting help events that should be ignored.
1008
da4496b6
GM
1009 * xdisp.c (handle_single_display_prop): Don't try to set PT if
1010 we're interating over a string.
1011
0623e40f
DL
10122000-05-09 Dave Love <fx@gnu.org>
1013
1014 * fileio.c (Fwrite_region): If APPEND arg is an integer, seek to
1015 that offset before writing. Move gcpro region past call of
1016 Ffile_regular_p.
1017
bae2503b
DL
10182000-05-04 Dave Love <fx@gnu.org>
1019
1020 * buffer.c (syms_of_buffer) [auto-fill-function]: Doc fix.
1021
ec82fb2f
GM
10222000-05-04 Gerd Moellmann <gerd@gnu.org>
1023
1024 * insdel.c (insert_from_buffer_1): Adjust FROM position by number
1025 of inserted characters when BUF equals the current buffer, and PT
1026 is in front of or equal to FROM.
1027
cbf18892
GM
10282000-05-03 Gerd Moellmann <gerd@gnu.org>
1029
4ff40dd0
GM
1030 * xdisp.c (handle_single_display_prop): If display property value
1031 is invalid, or something not supported on the frame, restore
1032 iterator's position to what it was initially. Make sure to return
1033 0 for invalid and unsupported property values.
1034
cbf18892
GM
1035 * xterm.c (x_produce_glyphs) <composite chars>: Handle case
1036 that x_per_char_metric returns null.
1037
1b0672c3
GM
10382000-05-02 Gerd Moellmann <gerd@gnu.org>
1039
576da55d
GM
1040 * xterm.h (struct face): Add forward declaration.
1041 (struct image): Ditto.
1042 (image_ascent): Add prototype.
1043
1044 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
1045 (x_draw_image_relief, x_draw_image_foreground_1): Call function
1046 image_ascent instead of using IMAGE_ASCENT.
1047
1048 * dispextern.h (DEFAULT_IMAGE_HEIGHT): New macro.
1049 (IMAGE_ASCENT): Removed.
1050
1051 * xfns.c (Qcenter): New variable.
1052 (enum image_value_type): Add IMAGE_ASCENT_VALUE.
1053 (parse_image_spec): Handle IMAGE_ASCENT_VALUE.
1054 (image_ascent): New function.
1055 (lookup_image): Recognize `:ascent center'.
1056 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
1057 (tiff_format, gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
1058 (xbm_load): Don't set image's ascent here.
1059 (xbm_image_p, xpm_image_p, pbm_image_p, png_image_p)
1060 (jpeg_image_p, tiff_image_p, gif_image_p, gs_image_p): Don't
1061 check ascent values here.
1062 (Fimagep, Flookup_image [GLYPH_DEBUG]: Removed.
1063 (syms_of_xfns) [GLYPH_DEBUG]: Don't defsubr removed functions.
1064 (syms_of_xfns): Initialize Qcenter.
1065
1b0672c3
GM
1066 * eval.c (Fsignal): If lisp_eval_depth or spepdl_size are near
1067 to the limits, increase the limits.
1068
0d7811ed
KH
10692000-05-01 Kenichi Handa <handa@etl.go.jp>
1070
1071 * fontset.c (fs_load_font): By default, use 0x00..0x7f for ASCII.
1072 Check Vfont_encoding_alist against the full name of the opened
1073 font.
1074
a943a5ca
GM
10752000-04-28 Gerd Moellmann <gerd@gnu.org>
1076
1077 * xdisp.c (make_cursor_line_fully_visible): Handle case of rows
1078 taller than the window.
1079
5dba1e29
KH
10802000-04-28 Kenichi Handa <handa@etl.go.jp>
1081
1082 * xfaces.c (realize_x_face): Fix the argument of the second
1083 xassert. BASE_FACE may not be a face for ASCII.
1084
353964e3
GM
10852000-04-27 Gerd Moellmann <gerd@gnu.org>
1086
c76e04a8
GM
1087 * print.c (print_object): Treat print-length < 0 as nil.
1088
1089 * Makefile.in (termcapobj): Don't use TERMCAP_OBJ.
1090
1091 * s/freebsd.h (TERMCAP_OBJ): Removed.
1092 (LIBS_TERMCAP): Don't define for __FreeBSD_version >= 400000.
1093
1094 * lread.c (read1): Don't treat period followed by certain
1095 characters as symbol start.
1096
1097 * xfns.c (slurp_file): New function.
1098 (xbm_image_p): Handle case of in-memory XBM files.
1099 (xbm_scan): Rewritten to work on memory buffers instead of files.
1100 (xbm_read_bitmap_data): Renamed from xbm_read_bitmap_file_data.
1101 Work on memory buffers instead of files. If DATA is null test
1102 if buffer looks like an in-memory XBM file.
1103 (xbm_load_image): Renamed from xbm_load_image_file. Work on
1104 memory buffers instead of files.
1105 (xbm_file_p): New function.
1106 (xbm_load): Accept :data DATA where DATA is an in-memory XBM file.
1107
353964e3
GM
1108 * lread.c (end_of_file_error): New function.
1109 (read1): Call it instead of signaling `end-of-file' directly.
1110
1111 * print.c (print_error_message): Print data of `end-of-file'
1112 with Fprinc instead of Fprin1.
1113
24d744ac
KR
11142000-04-26 Ken Raeburn <raeburn@gnu.org>
1115
1116 * window.c (freeze_window_start): Check that minibuffer scroll
1117 window isn't nil before extracting the window structure pointer
1118 from it.
1119
1120 * undo.c (record_delete): If we hit the end of the undo list, stop
1121 picking elements apart.
1122
7464346d
GM
11232000-04-26 Gerd Moellmann <gerd@gnu.org>
1124
1125 * xdisp.c (display_line): If lines are continued, restore
1126 iterator's ascent/descent information to the values before the
1127 first glyph not fitting on the line.
1128
612839b6
GM
11292000-04-25 Gerd Moellmann <gerd@gnu.org>
1130
1131 * xdisp.c (try_window_id) <all changes above window start>: Adjust
1132 positions in glyph matrix. Don't compute new window end
1133 positions.
1134
1135 * dispnew.c (increment_matrix_positions): Renamed from
1136 increment_glyph_matrix_buffer_positions.
1137 (increment_row_positions): Renamed from
1138 increment_glyph_row_buffer_positions.
1139
1140 * dispextern.h: Change names of renamed functions from dispnew.c
1141 in prototypes.
1142
cc181e95
GM
11432000-04-24 Gerd Moellmann <gerd@gnu.org>
1144
abfcc168
GM
1145 * fileio.c (Fdo_auto_save): Create directories for auto-save
1146 list file if necessary.
1147
cc181e95
GM
1148 * xdisp.c (init_iterator): Set iterator's extra_line_spacing
1149 from buffer or frame.
1150 (automatic_hscrolling_p): New variable.
1151 (hscroll_windows): Scroll windows horizontally only if automatic
1152 hscrolling is allowed.
1153 (syms_of_xdisp): New variable `automatic-hscrolling'.
1154
1155 * frame.h (struct frame): Add member extra_line_spacing.
1156
1157 * xfns.c (x_set_line_spacing): New function.
1158 (Fx_create_frame): Set line spacing from resources.
1159 (Qline_spacing): New variable.
1160 (syms_of_xfns): Initialize Qline_spacing.
1161
1162 * emacs.c (USAGE2): Add `--line-spacing' and `-lsp'.
1163
1164 * buffer.c (init_buffer_once): Handle extra_line_spacing.
1165 (syms_of_buffer): Add `default-line-spacing' and `line-spacing'.
abfcc168 1166 (reset_buffer): Don't initialize extra2 and extra3. Initialize
cc181e95
GM
1167 extra_line_spacing from default value.
1168 (init_buffer_once): Initialize default value of extra_line_spacing.
1169
1170 * buffer.h (struct buffer): Add extra_line_spacing, remove extra2
1171 and extra3.
1172
1173 * xterm.c (x_produce_glyphs): Remove reference to struct it's
1174 prompt_width. Add extra line spacing.
1175
1176 * term.c (produce_glyphs): Remove reference to struct it's
1177 prompt_width.
1178
1179 * dispextern.h (struct it): Remove member prompt_width, add
1180 extra_line_spacing.
1181
58827478
GM
11822000-04-22 Gerd Moellmann <gerd@gnu.org>
1183
1184 * dispnew.c (update_frame_line): When writing a whole line, make
1185 sure cursor is in the right row afterwards, otherwise a use of
1186 capability `ch' in cmgoto might leave the cursor in the row below.
1187
25a87f42
GM
11882000-04-21 Gerd Moellmann <gerd@gnu.org>
1189
1190 * lisp.h (struct Lisp_Buffer_Cons): Remove.
1191
1192 * keyboard.c (timer_check): Fix typo in comment.
1193
54edf5c2
KH
11942000-04-21 Kenichi Handa <handa@etl.go.jp>
1195
1196 * fontset.c (Fset_fontset_font): Fix docstring. Local variable
1197 name change: ch -> character.
1198
3a64eef5
GM
11992000-04-20 Gerd Moellmann <gerd@gnu.org>
1200
1201 * keyboard.c (echo_message_buffer): New variable.
1202 (echo_now): Set echo_message_buffer to the echo area buffer used
1203 to display the echo.
1204 (cancel_echoing): Reset echo_message_buffer to nil.
1205 (read_char): Code rewritten that handles canceling an echo or
1206 echoing a dash, respectively.
1207
1208 * fileio.c (Ffile_writable_p) [WINDOWSNT]: Return nil if parent
1209 directory doesn't exist.
1210
6142fdcb
DL
12112000-04-19 Dave Love <fx@gnu.org>
1212
1213 * fns.c (syms_of_fns): Defsubr mapc.
a9cacab7
DL
1214 (concat): Don't allow numeric args.
1215 (Fconcat): Doc change.
6142fdcb 1216
ac6b5352
SM
12172000-04-19 Stefan Monnier <monnier@cs.yale.edu>
1218
1219 * regex.c (re_match_2_internal): Don't shorten the strings anymore,
1220 instead define end_match(1|2) more carefully.
1221 Use GET_CHAR_BEFORE_2 for `begline'.
1222
cb9215e4
GM
12232000-04-19 Gerd Moellmann <gerd@gnu.org>
1224
5e3dac3f
GM
1225 * frame.h (SELECTED_FRAME): Change definition to compile cleanly
1226 on 64-bit systems where NULL is defined as `0'.
1227
1228 * xdisp.c (with_echo_area_buffer): Add more `int' parameters for
1229 the `variable argument list' to make it work on Alpha.
1230
cb9215e4
GM
1231 * m/alpha.h (_LP64) [!_LP64]: Define.
1232 (ORDINARY_LINK): Define for NetBSD.
1233
1234 * m/macppc.h (ORDINARY_LINK): Define for NetBSD.
1235
f532dca0
DL
12362000-04-19 Dave Love <fx@gnu.org>
1237
c750667e
DL
1238 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Revert 2000-04-14
1239 change.
1240
1241 * Makefile.in (LIBS): Don't use.
1242 (GETLOADAVG_OBJ): Define again.
1243 (otherobj): Add GETLOADAVG_OBJ.
1244
f532dca0
DL
1245 * buffer.c (Fmake_indirect_buffer): Escape newline in doc.
1246
1c7e22fd
GM
12472000-04-18 Gerd Moellmann <gerd@gnu.org>
1248
f6d3257b
GM
1249 * lread.c (read_filtered_event): Cancel and start busy cursor.
1250
1c7e22fd
GM
1251 * xterm.c (x_produce_glyphs) <ASCII chars>: Take into account
1252 that the per-character metrics may be null.
1253
e10f64e7
GM
12542000-04-17 Gerd Moellmann <gerd@gnu.org>
1255
0daee095
GM
1256 * buffer.c (clone_per_buffer_values): New function.
1257 (Fmake_indirect_buffer): Add optional argument CLONE. Call
1258 clone_per_buffer_values if CLONE is not nil.
1259
e10f64e7
GM
1260 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
1261
38687d43
DL
12622000-04-16 Dave Love <fx@gnu.org>
1263
1264 * Makefile.in: Remove obsolete localcpp stuff.
1265 (GETLOADAVG_OBJ): Don't define.
1266 (obj): Move LIBOBJS...
1267 (otherobj): ... to here.
1268 (MSDOS_OBJ): Convert to make variable -- preprocessing zapped
1269 whitespace-only lines after the continuation (Irix).
1270
c21c7262
GM
12712000-04-14 Gerd Moellmann <gerd@gnu.org>
1272
1273 * xfns.c (xpm_load) [DEBUG_X_COLORS]: Register colors.
1274
1275 * s/freebsd.h (LD_SWITCH_SYSTEM): Add `-L /usr/local/lib'.
1276
314767c0
DL
12772000-04-14 Dave Love <fx@gnu.org>
1278
1279 * s/aix3-1.h, s/bsd4-2.h, s/bsd4-3.h, s/cxux.h, s/dgux.h, s/gnu.h:
1280 * s/hpux.h, s/iris3-5.h, s/iris3-6.h, s/irix3-3.h, s/rtu.h:
1281 * s/unipl5-0.h, s/unipl5-2.h, s/usg5-0.h, s/usg5-2-2.h, s/usg5-2.h:
1282 * s/usg5-3.h, s/xenix.h, s/umax.h: Don't define autoconfiscated
1283 NLIST_STRUCT.
1284
1285 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Don't define
1286 autoconfiscated HAVE_GETLOADAVG.
1287
1288 * s/nextstep.h, s/sco4.h, s/sco5.h: Don't define autoconfiscated
1289 BROKEN_MKTIME.
1290
a2522dca
GM
12912000-04-14 Gerd Moellmann <gerd@gnu.org>
1292
1293 * filelock.c (MAKE_LOCK_NAME): Allocate 2 more bytes.
1294 (fill_in_lock_file_name): Avoid existing files that aren't
1295 links.
1296
33744b5d
DL
12972000-04-14 Dave Love <fx@gnu.org>
1298
c21c7262 1299 * Makefile.in (LIBS, LIBOBJS): New variable.
33744b5d
DL
1300 (INTERVAL_SRC): Convert to make variable.
1301 (INTERVAL_OBJ, MKTIME_OBJ, FLOAT_SUPPORT, FACE_SUPPORT)
1302 (HAVE_X_WINDOWS, OBJECTS_SYSTEM): Remove.
1303 (obj): Substitute INTERVAL_OBJ, add MKTIME_OBJ, GETLOADAVG_OBJ and
1304 add LIBOBJS.
1305 (SOME_MACHINE_OBJECTS): Remove interval stuff.
1306 (lisp): Substitute FACE_SUPPORT, FLOAT_SUP.
1307 (shortlisp): Add facemenu, float-sup, frame.
1308 (SOME_MACHINE_LISP): Remove them from here.
1309 (LIBES): Change unused LDLIBS to autoconf LIBS.
1310
1311 * config.in: Add BROKEN_MKTIME, NLIST_STRUCT, NLIST_NAME_UNION.
1312
9d3d5916
KH
13132000-04-14 Kenichi Handa <handa@etl.go.jp>
1314
1315 * composite.c (update_compositions): If FROM and TO are not in a
1316 valid range, do nothing.
1317
198e3c7a
GM
13182000-04-13 Gerd Moellmann <gerd@gnu.org>
1319
1320 * tparam.c (tparam1): Abort when encountering an unknown
1321 `%'-specifier.
1322
1323 * s/freebsd.h (TERMCAP_OBJ) [__FreeBSD__ >= 4]: Define as
1324 terminfo.o.
1325
1326 * Makefile.in (termcapobj) [LIBS_TERMCAP && TERMCAP_OBJ]: Define
1327 as TERMCAP_OBJ.
1328
055a28c9
EZ
13292000-04-13 Eli Zaretskii <eliz@is.elta.co.il>
1330
1331 * fileio.c (a_write): Remove redundant semi-colons.
1332 (e_write): Return -1 if failed to write all the data.
1333 This fixes the changes made at 1999-12-15.
1334
f5c75033
DL
13352000-04-12 Dave Love <fx@gnu.org>
1336
1337 * fns.c (mapcar1): Test for null vals to support mapc.
1338 (Fmapc): New function.
1339
0c3cfc51
EZ
13402000-04-12 Eli Zaretskii <eliz@is.elta.co.il>
1341
1342 * msdos.c (NUM_MOUSE_BUTTONS): Define.
1343 (IT_frame_up_to_date): Support the buffer local value of
1344 cursor-type, if defined.
1345
33465a31
DL
13462000-04-10 Dave Love <fx@gnu.org>
1347
1348 * editfns.c (preceding-char, following-char): Doc fix.
1349
6ed56568
KR
13502000-04-10 Ken Raeburn <raeburn@gnu.org>
1351
1352 * Makefile.in (temacs): Revert 2000-03-12 change.
1353
7cf80d4e
JR
13542000-04-10 Jason Rumney <jasonr@gnu.org>
1355
1356 * xfaces.c (realize_face): Change FRAME_X_P to FRAME_WINDOW_P.
1357
34f3f342
GM
13582000-04-10 Gerd Moellmann <gerd@gnu.org>
1359
1a1b1895
GM
1360 * xdisp.c (setup_echo_area_for_printing): Choose an echo
1361 area buffer, if it's not set up yet.
1362
34f3f342
GM
1363 * indent.c (compute_motion): Set immediate_quit.
1364
be0dbdab
GM
13652000-04-09 Gerd Moellmann <gerd@gnu.org>
1366
c45be9ac
GM
1367 * xfaces.c (tty_suppress_bold_inverse_default_colors_p): New
1368 variable.
1369 (realize_tty_face): Suppress boldness if colors are the inverse of
1370 the default colors, and tty_suppress_bold_inverse_default_colors_p
1371 is set.
1372 (Ftty_suppress_bold_inverse_default_colors): New function.
1373 (syms_of_xfaces): Defsubr it.
1374
be0dbdab
GM
1375 * buffer.c (Frestore_buffer_modified_p): New function.
1376 (syms_of_buffer): Defsubr it.
1377
e8413c3b
KR
13782000-04-08 Ken Raeburn <raeburn@gnu.org>
1379
87f67317
KR
1380 * charset.c (Fmake_char_internal): CHAR_COMPONENTS_VALID_P takes a
1381 charset id (int) argument, not a charset (Lisp_Object).
1382
e8413c3b
KR
1383 * coding.h (code_convert_string): Declare.
1384 * coding.c (code_convert_string_norecord): Pass an int, not a lisp
1385 object, as the fourth argument to code_convert_string.
1386
1387 * fontset.c (make_fontset_for_ascii_face): Use XINT on return
1388 value.
1389 (Fset_fontset_font): Use EQ to compare lisp objects.
1390
7c752c80
KR
13912000-04-05 Ken Raeburn <raeburn@gnu.org>
1392
c0333abc
KR
1393 * intervals.h (SET_INTERVAL_PARENT): Use INT_LISPLIKE to test for
1394 a pointer that looks like a lisp object.
1395 (SET_INTERVAL_OBJECT): Don't explicitly compare the object with
1396 zero, instead see whether it's an integer object, since they can't
1397 have intervals.
1398 (GET_INTERVAL_OBJECT): Simply assign to the destination.
1399
7c752c80
KR
1400 * dispnew.c (allocate_matrices_for_frame_redisplay,
1401 direct_output_forward_char): Use X(U)INT and make_number as needed
1402 to convert between (unsigned) int values and lisp integers.
1403 * keyboard.c (read_key_sequence): Likewise.
1404 * lread.c (substitute_object_recurse): Likewise.
1405 * fns.c (concat, hash_lookup, hash_remove): Likewise.
1406 * minibuf.c (do_completion, Fminibuffer_complete_word,
1407 Fminibuffer_completion_help): Likewise.
1408 * term.c (produce_special_glyphs): Likewise.
1409
1410 * fileio.c (Fwrite_region): Use EQ when comparing lisp objects.
1411 * print.c (print_preprocess, print_object): Likewise.
1412
1413 * search.c (compile_pattern): Use NILP when checking for nil.
1414
74e49b38
KR
1415 * lisp.h (make_number) [!NO_UNION_TYPE && __GNUC__ >= 2 &&
1416 __OPTIMIZE__]: Provide a GNU C macro version that handles
1417 lisp-object unions.
1418 (XSET) [!NO_UNION_TYPE]: Set the value field first, then the type
1419 field, to better cope with ENABLE_CHECKING and calls that modify a
1420 Lisp_Object using its old value.
1421
685e5ed2
GM
14222000-04-04 Gerd Moellmann <gerd@gnu.org>
1423
c407c570
GM
1424 * window.c (compare_window_configurations): Signal an error
1425 if parameters C1 or C2 aren't window configurations.
1426
685e5ed2
GM
1427 * bytecode.c (Fbyte_code): Add a bunch of BEFORE_POTENTIAL_GC/
1428 AFTER_POTENTIAL_GC calls around calls to functions that can
1429 signal an error and thus invoke the debugger.
1430
587a49ab
GM
14312000-04-03 Gerd Moellmann <gerd@gnu.org>
1432
62f20204
GM
1433 * fns.c (Fbase64_decode_region, Fbase64_decode_string): Signal
1434 an error if decoding fails.
1435
587a49ab
GM
1436 * keyboard.c (lispy_mouse_names): Variable removed.
1437 (Vlispy_mouse_stem): New variable.
1438 (syms_of_keyboard): Initialize Vlispy_mouse_stem.
1439 (make_lispy_event) <mouse_click, scroll_bar_click>: Don't abort
1440 for any mouse button number. Increase size of mouse_syms and
1441 button_down_location as needed. Call modify_event_symbol with
1442 different arguments.
1443 (make_lispy_event) <scroll_bar_click> [USE_TOOLKIT_SCROLL_BARS]:
1444 Call modify_event_symbol with different arguments.
1445 (make_lispy_event) <w32_scroll_bar_click> [WINDOWSNT]: Don't abort
1446 for any button number. Call modify_event_symbol with different
1447 arguments.
1448 (modify_event_symbol): Rename NAME_ALIST to NAME_ALIST_OR_STEM.
1449 Accept a string for NAME_ALIST_OR_STEM.
1450
1451 * lisp.h (larger_vector): Add prototype.
1452
1453 * fns.c (larger_vector): Make externally visible.
1454
1455 * termhooks.h (NUM_MOUSE_BUTTONS): Removed.
1456
2d1675e4
SM
14572000-04-02 Stefan Monnier <monnier@cs.yale.edu>
1458
1459 * regex.c (PTR_TO_OFFSET) [!emacs]: Remove.
1460 (RE_MULTIBYTE_P, RE_STRING_CHAR_AND_LENGTH): New macros.
1461 (GET_CHAR_BEFORE_2): Moved from charset.h plus fixed minor bug when
1462 we are between str1 and str2.
1463 (MAX_MULTIBYTE_LENGTH, CHAR_STRING) [!emacs]: Provide trivial default.
1464 (PATFETCH): Use `TRANSLATE'.
1465 (PATFETCH_RAW): Fetch multibyte char if applicable.
1466 (PATUNFETCH): Remove.
1467 (regex_compile): Rely on PATFETCH to do most of the multibyte magic.
1468 When writing a char, write it directly into the pattern buffer rather
1469 than going needlessly through a temp char-array.
1470 (re_match_2_internal): Similarly, rely on RE_STRING_CHAR to do the
1471 multibyte magic and remove the useless `#ifdef emacs'.
1472 (bcmp_translate): Don't compare as multibyte chars when in a unibyte
1473 buffer.
1474
1475 * regex.h (struct re_pattern_buffer): Make field `multibyte'
1476 conditional on `emacs'.
1477
1478 * charset.h (GET_CHAR_BEFORE_2): Moved to regex.c.
1479
cc2d8c6b
KR
14802000-04-01 Ken Raeburn <raeburn@gnu.org>
1481
1482 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P): Expand
1483 non-union-type versions of XMARK and friends here, because XMARK
1484 and friends won't work on an integer field if NO_UNION_TYPE is not
1485 defined.
1486 (make_number): Define as a function if it's not defined as a
1487 macro.
1488
09654086
KR
1489 * composite.c (run_composite_function): Use NILP when checking for
1490 nil.
1491 (syms_of_composite): Delete local var NARGS, pass an int as first
1492 argument to Fmake_hash_table.
1493
2387b382
KR
1494 * editfns.c (text_property_stickiness): Use NILP to test
1495 Lisp_Object boolean value.
1496 (Fmessage_or_box): Don't use NILP to test int variable.
c01fbf95
KR
1497 (Fformat): Use a temporary variable to avoid ENABLE_CHECKING
1498 problems reading from and changing the same lisp value in an
1499 XSETSTRING call.
1500
27660e89
GM
15012000-04-01 Gerd Moellmann <gerd@gnu.org>
1502
1503 * term.c (TN_no_color_video): New variable.
1504 (term_init): Intitialize TN_no_color_video.
1505 (enum no_color_bit): New enumeration.
1506 (MAY_USE_WITH_COLORS_P): New macro.
1507 (turn_on_face): Use it to determine if attributes may be used
1508 combined with colors.
1509
3578db3c
KR
15102000-04-01 Ken Raeburn <raeburn@gnu.org>
1511
1512 * window.c (CURBEG, CURSIZE): Don't overload lisp object lvalues
1513 with int lvalues via casts; instead, just yield lisp object
1514 lvalues.
1515 (enlarge_window): Variable sizep now points to Lisp_Object. Use
1516 proper accessor macros.
1517 (shrink_window_lowest_first): w->top is Lisp_Object; use XINT.
1518 (grow_mini_window): Fix typo getting int value of root->height.
1519
6fc556fd
KR
1520 * xdisp.c (compute_string_pos): Fix order of arguments to
1521 string_pos_nchars_ahead.
1522 (handle_fontified_prop, add_to_log): Pass int, not Lisp_Object, as
1523 count arg to variable-arg routines like Frun_hook_with_args and
1524 Fformat.
587a49ab
GM
1525 (back_to_previous_visible_line_start)
1526 (build_desired_tool_bar_string): Pass Lisp_Object, not int, to
6fc556fd
KR
1527 fixed-arg routines like Fget_char_property and Fmake_string.
1528 (reconsider_clip_changes): Use XINT when comparing integer lisp
1529 objects, or passing them as int arguments.
587a49ab
GM
1530 (mark_window_display_accurate, insert_left_trunc_glyphs)
1531 (append_space, extend_face_to_end_of_line): Use make_number when
6fc556fd
KR
1532 storing or passing integer values as lisp objects.
1533 (set_cursor_from_row, highlight_trailing_whitespace): Use
1534 INTEGERP, not implicit test against zero, for glyph object.
1535 (try_window_id): Don't use make_number when we want an int value.
1536
1537 * xfaces.c (xlfd_symbolic_value): Make last argument a
1538 Lisp_Object, to be consistent with callers.
1539 (Fbitmap_spec_p): Use XINT to get numeric value of height.
1540 (lface_hash): Apply XFASTINT to lisp values before folding in.
1541
1542 * xfns.c (Fx_show_tip): Use make_number to get lisp objects to
1543 fill in window width and height. Pass an int, not a lisp object,
1544 as first arg to Finsert.
1545
6e7b2457
GM
15462000-04-01 Gerd Moellmann <gerd@gnu.org>
1547
610d841e
GM
1548 * xfaces.c (realize_basic_faces): Block input while realizing
1549 the faces.
1550
6e7b2457
GM
1551 * keyboard.c (lispy_mouse_names): Add additional mouse names.
1552
1553 * termhooks.h (NUM_MOUSE_BUTTONS): Increase to 15.
1554
aa110c0c
GM
15552000-03-31 Gerd Moellmann <gerd@gnu.org>
1556
1557 * xterm.c (x_produce_glyphs): When displaying unibyte text
610d841e 1558 or ASCII, handle case that per-char metric is null.
aa110c0c 1559
8801a864
KR
15602000-03-30 Ken Raeburn <raeburn@gnu.org>
1561
c6129d7e
KR
1562 * lisp.h (NO_UNION_TYPE) [ENABLE_CHECKING]: Undef.
1563
8801a864
KR
1564 * lisp.h (XCONS, XSTRING, XSYMBOL, XFLOAT, XPROCESS, XWINDOW,
1565 XSUBR, XBUFFER): Verify correct object type before returning
1566 pointer, using eassert.
1567 * frame.h (XFRAME): Likewise.
1568
1569 * buffer.c (Frename_buffer, Fset_buffer_multibyte,
1570 swap_out_buffer_local_variables, Fmove_overlay): Don't apply
1571 XSYMBOL, XBUFFER, etc, to values that may be nil or of the wrong
1572 type.
1573 * data.c (set_internal): Likewise.
1574 * dispextern.h (WINDOW_WANTS_MODELINE_P,
1575 WINDOW_WANTS_HEADER_LINE_P): Likewise.
1576 * fileio.c (auto_save_1): Likewise.
1577 * insdel.c (check_markers): Likewise.
1578 * marker.c (buf_charpos_to_bytepos, unchain_marker): Likewise.
1579 * undo.c (record_insert): Likewise.
1580 * vmsproc.c (child_sig): Likewise.
1581 * window.c (unshow_buffer, window_loop): Likewise.
1582 * xterm.c (x_erase_phys_cursor): Likewise.
1583
8e7af858
GM
15842000-03-30 Gerd Moellmann <gerd@gnu.org>
1585
1586 * xfns.c (free_image_cache): Free the cache structure itself
1587 last, after all its members have been freed.
1588
1589 * lisp.h (xstrdup): Add prototype.
1590
1591 * alloc.c (xstrdup): Moved here from xfaces.c.
1592 (allocating_for_lisp): Variable removed.
1593 (lisp_malloc): Block input around the calls to malloc and
1594 mem_insert.
1595
1596 * xfaces.c (realize_tty_face): Use find_symbol_value instead
1597 of Fsymbol_value.
1598 (xstrdup): Moved to alloc.c.
1599
e0b8c689
KR
16002000-03-29 Ken Raeburn <raeburn@gnu.org>
1601
b96f9fb7
KR
1602 * scroll.c (CHECK_BOUNDS): Renamed from CHECK.
1603
1604 * emacs.c (main): Fix sense of no-loadup test.
1605
e0b8c689
KR
1606 * config.in (ENABLE_CHECKING): Undef.
1607
1608 * lisp.h (struct interval): Replace "parent" field with a union of
1609 interval pointer and Lisp_Object; add new bitfield to use as
1610 discriminant. Change other flag fields to bitfields.
1611 (CHECK): New macro for consistency checking. If ENABLE_CHECKING
1612 is defined and the supplied test fails, print a message and
1613 abort.
1614 (eassert): New macro. Use CHECK to provide an assert-like
1615 facility.
1616
1617 * intervals.h (NULL_INTERVAL_P): Now applies only to real interval
1618 pointers; abort if the value looks like a lisp object.
1619 (NULL_INTERVAL_P, NULL_PARENT, HAS_PARENT, HAS_OBJECT, SET_PARENT,
1620 SET_OBJECT, INTERVAL_PARENT, GET_INTERVAL_OBJECT, COPY_PARENT):
1621 Modify for new interval parent definition.
1622
1623 * alloc.c (mark_interval_tree, MARK_INTERVAL_TREE,
1624 UNMARK_BALANCE_INTERVALS): Update references that need an
1625 addressable lisp object in the interval structure.
1626 (die): New function.
1627 (suppress_checking): New variable.
1628
1629 * intervals.c (interval_start_pos): Just return 0 if there's no
1630 parent object.
1631
f83c5440
GM
16322000-03-29 Gerd Moellmann <gerd@gnu.org>
1633
1634 * lread.c (read1): Accept `.' (period) as symbol start like in CL
1635 and earlier Emacs versions.
1636
1637 * keyboard.c (Ftop_level): Cancel busy-cursor.
1638
1639 * eval.c (call_debugger): Cancel busy-cursor.
1640
fdce64ff
KH
16412000-03-29 Kenichi Handa <handa@etl.go.jp>
1642
1643 * search.c (Freplace_match): Adjust multibyteness of the current
1644 buffer and NEWTEXT. Free allocated memory before signaling an
1645 error.
1646
f6a3f532
SM
16472000-03-28 Stefan Monnier <monnier@cs.yale.edu>
1648
1649 * regex.c (analyse_first): New function obtained by ripping out most
1650 of re_compile_fastmap and generalizing it a little bit so that it
1651 can also just return whether a given (sub)pattern can match the empty
1652 string or not.
1653 (regex_compile): Use `analyse_first' to decide whether the loop-check
1654 needs to be done or not for *, +, *? and +? (the loop check is costly
1655 for non-greedy repetition).
1656 (re_compile_fastmap): Delegate the actual work to `analyse_first'.
1657
e9b309ac
DL
16582000-03-28 Dave Love <fx@gnu.org>
1659
bb15bd9a
DL
1660 * s/gnu-linux.h (GC_SETJMP_WORKS): Define for i386, sparc, m68k,
1661 alpha.
1662
e9b309ac
DL
1663 * alloc.c: Include stdio.h. Test STDC_HEADERS, not __STDC__.
1664
ed0767d8
SM
16652000-03-27 Stefan Monnier <monnier@cs.yale.edu>
1666
1667 * regex.c (REGEX_FREE_STACK, RESET_FAIL_STACK): Make them usable as
1668 an expression.
1669 (enum re_opcode_t): Update description of succeed_n.
1670 (PATFETCH): Always define.
1671 (regex_compile): Use lookahead rather than PATUNFETCH (for repetition
1672 operators, char classes, shy-groups and intervals).
1673 Optimize special cases of intervals so as to only use succeed_n and
1674 jump_n when really needed.
1675 (re_compile_fastmap): Simplify handling of jump_n and succeed_n now
1676 that we don't have to handle the special cases any more.
1677 Simplify on_failure_jump handling as well.
1678
e11e7e46
JR
16792000-03-28 Jason Rumney <jasonr@gnu.org>
1680
1681 * lread.c (Fload): Move safe_p definition to above #ifdef DOS_NT.
1682
88faab89
GM
16832000-03-27 Gerd Moellmann <gerd@gnu.org>
1684
182ff242
GM
1685 * s/freebsd.h (GC_SETJMP_WORKS): Define.
1686
1687 * s/msdos.h (GC_SETJMP_WORKS): Define.
1688
1689 * alloc.c (mark_maybe_object): New function.
1690 (mark_memory): Use it.
1691 (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK): New macros.
1692 (setjmp_tested_p, longjmp_done): New variables.
1693 (test_setjmp): New function.
1694 (mark_stack) [!GC_SETJMP_WORKS]: Call test_setjmp.
1695 (init_alloc): Initialize setjmp_tested_p and longjmp_done.
1696
c1005d06
GM
1697 * xdisp.c (face_before_or_after_it_pos): Pass multibyteness
1698 to DEC_TEXT_POS and INC_TEXT_POS.
1699
1700 * dispnew.c (direct_output_for_insert): Use DEC_TEXT_POS
1701 with parameter MULTIBYTE_P.
1702
1703 * dispextern.h (INC_TEXT_POS, DEC_TEXT_POS): Add parameter
1704 MULTIBYTE_P.
1705
7439e5b9 1706 * editfns.c (Fsubst_char_in_region): Don't use INC_POS in unibyte
182ff242
GM
1707 buffers because it looks for multibyte character byte sequences
1708 which don't exist in unibyte text.
7439e5b9 1709
d9c545da
GM
1710 * xterm.h (x_specified_cursor_type, x_copy_color): Add prototypes.
1711
11fd416e 1712 * xfaces.c (register_color, unregister_color, unregister_colors)
d9c545da
GM
1713 [DEBUG_X_COLORS]: New functions.
1714 (x_free_colors) [DEBUG_X_COLORS]: Unregister colors.
1715
1716 * xfns.c (x_set_cursor_color): Get color reference counts right.
1717
1718 * xterm.c (x_copy_color): New function.
1719 (x_alloc_nearest_color) [DEBUG_X_COLORS]: Call register_color.
1720
1721 * buffer.h (MAX_PER_BUFFER_VARS): Renamed from MAX_BUFFER_LOCAL_VARS.
1722 (PER_BUFFER_VAR_OFFSET): Renamed from BUFFER_LOCAL_VAR_OFFSET.
1723 (PER_BUFFER_VAR_IDX): Renamed from BUFFER_LOCAL_VAR_IDX.
1724 (PER_BUFFER_VALUE_P): Renamed from BUFFER_HAS_LOCAL_VALUE_P.
1725 (SET_PER_BUFFER_VALUE_P): Renamed from SET_BUFFER_HAS_LOCAL_VALUE_P.
1726 (PER_BUFFER_IDX): Renamed from BUFFER_LOCAL_IDX.
1727 (PER_BUFFER_DEFAULT): Renamed from BUFFER_LOCAL_DEFAULT_VALUE.
1728 (PER_BUFFER_VALUE): Renamed from BUFFER_LOCAL_VALUE.
1729 (PER_BUFFER_SYMBOL): Renamed from BUFFER_LOCAL_SYMBOL.
1730 (PER_BUFFER_TYPE): Renamed from BUFFER_LOCAL_TYPE.
1731
11fd416e
GM
1732 * category.c, data.c, syntax.c, print.c, lread.c: Use new macro
1733 names for handling per-buffer variables.
d9c545da
GM
1734
1735 * buffer.c (buffer_permanent_local_flags): Use MAX_PER_BUFFER_VARS
1736 instead of MAX_BUFFER_LOCAL_VARS.
1737 (last_per_buffer_idx): Renamed from max_buffer_local_idx.
1738
1739 * xfaces.c (lookup_face): Don't assert FACE_SUITABLE_FOR_CHAR_P.
1740
88faab89
GM
1741 * xfns.c (x_specified_cursor_type): New function.
1742 (x_set_cursor_type): Use it.
1743
1744 * buffer.h (struct buffer): Add cursor_type.
1745
d80f42b7
SM
17462000-03-26 Stefan Monnier <monnier@cs.yale.edu>
1747
1748 * regex.c (enum re_opcode_t): New opcode on_failure_jump_nastyloop.
88faab89
GM
1749 (print_partial_compiled_pattern, re_compile_fastmap): Handle new
1750 opcode.
d80f42b7
SM
1751 (regex_compile): Use on_failure_jump_nastyloop for non-greedy loops.
1752 (re_match_2_internal): Add code for on_failure_jump_nastyloop when
1753 executing it as well as when popping it off the stack to find infinite
1754 loops in non-greedy repetition operators.
1755
89e80928
GM
17562000-03-26 Gerd Moellmann <gerd@gnu.org>
1757
3d4ff2dd
GM
1758 * doc.c (Qfunction_documentation): New variable.
1759 (syms_of_doc): Initialize Qfunction_documentation.
1760 (Fdocumentation): If FUNCTION is a symbol with non-nil
1761 `function-documentation' property, return a documentation derived
1762 from that.
1763
bd96bd79
GM
1764 * buffer.c (syms_of_buffer): Add default-cursor-type.
1765 (init_buffer_once): Don't let cursor_type have a local value
1766 in every buffer.
1767
19d1bc27
GM
1768 * xterm.c (x_display_and_set_cursor): Choose cursor depending
1769 on buffer-local value of cursor_type.
1770 (x_draw_bar_cursor): Add parameter WIDTH.
1771
1772 * buffer.c (reset_buffer): Initialize buffer's cursor_type.
1773 (init_buffer_once): Set default cursor_type value to t.
1774 Mark cursor_type as local everywhere.
1775 (syms_of_buffer): New per-buffer variable cursor-type.
1776
89e80928
GM
1777 * buffer.h (struct buffer): Remove member local_var_flags,
1778 add local_flags.
1779 (MAX_BUFFER_LOCAL_VARS): New macro.
1780 (BUFFER_LOCAL_VAR_OFFSET, BUFFER_LOCAL_VAR_IDX)
1781 (BUFFER_HAS_LOCAL_VALUE_P, SET_BUFFER_HAS_LOCAL_VALUE_P)
1782 (BUFFER_LOCAL_IDX, BUFFER_LOCAL_DEFAULT_VALUE, BUFFER_LOCAL_VALUE)
1783 (BUFFER_LOCAL_SYMBOL, BUFFER_LOCAL_TYPE): New macros.
1784
1785 * print.c (print_object): Use new macros for per-buffer
1786 variables.
1787
1788 * category.c (Fset_category_table): Use new macros for per-buffer
1789 variables.
1790
1791 * buffer.c (buffer_permanent_local_flags): Make a char array.
1792 (max_buffer_local_idx): New variable.
1793 (reset_buffer_local_variables, Fbuffer_local_variables): Rewritten
1794 for new handling of per-buffer variables.
1795 (buffer_slot_type_mismatch): Use new macros for per-buffer vars.
1796 (init_buffer_once): Initialize per-buffer vars differently.
1797 Set max_buffer_local_idx.
1798
1799 * syntax.c (Fset_syntax_table): Use new macros for per-buffer
1800 variables.
1801
1802 * lread.c (defvar_per_buffer): Use new macros for per-buffer
1803 variables.
1804
1805 * data.c (do_symval_forwarding, store_symval_forwarding)
1806 (find_symbol_value, set_internal, default_value, Fset_default)
1807 (Fkill_local_variable, Flocal_variable_p): Use new macros for
1808 per-buffer variables.
1809
1810 * Makefile.in (bootstrap-emacs): Use `mv -f' instead of `mv'.
1811
9a0dd3dc
GM
18122000-03-24 Gerd Moellmann <gerd@gnu.org>
1813
b68c375f
GM
1814 * xterm.c (x_term_init): Unblock input around call1 of
1815 Qvendor_specific_keysyms.
1816
9a0dd3dc
GM
1817 * syntax.c (open_paren_in_column_0_is_defun_start): New variable.
1818 (find_defun_start): Consider an open parenthesis in column 0
1819 a defun start only if open_paren_in_column_0_is_defun_start is set.
1820 (syms_of_syntax): New variable open-paren-in-column-0-is-defun-start.
1821
7973e637
SM
18222000-03-24 Stefan Monnier <monnier@cs.yale.edu>
1823
1824 * eval.c (Fautoload): Add entry in load-history (if after dump).
1825 * lread.c (load-history): Update docstring.
1826
39210e90
GM
18272000-03-24 Gerd Moellmann <gerd@gnu.org>
1828
1829 * indent.c (Fvertical_motion): Always use the current buffer.
1830 Temporarily change the window's buffer, if necessary.
1831
72db3ab5
GM
18322000-03-23 Gerd Moellmann <gerd@gnu.org>
1833
1834 * xterm.c (fast_find_position): Make sure not to consider rows
1835 not visible in the window.
1836
990b2375
SM
18372000-03-22 Stefan Monnier <monnier@cs.yale.edu>
1838
1839 * regex.c (enum syntaxcode): Provide default for non-Emacs.
1840 (re_compile_fastmap, re_match_2_internal): Undo Dave's previous fix.
1841
ff4df011
JR
18422000-03-22 Jason Rumney <jasonr@gnu.org>
1843
1844 * w32menu.c (single_submenu): Set help string to NULL if none.
1845 (w32_menu_show): Set help string correctly.
1846 (add-menu-item): Set help string in MIIM_DATA for menu item.
1847 Load SetMenuItemInfoA explicitly.
1848 (w32_menu_display_help): New function.
1849
1850 * w32fns.c (w32_wnd_proc): Handle WM_MENUSELECT message.
1851 (QCdata): Moved to xdisp.c.
1852
1853 * w32term.c (w32_read_socket): Handle WM_MENUSELECT message.
1854 (Vw32_charset_to_codepage_alist): Removed.
1855 (Vw32_charset_info_alist): New variable.
1856 (Qw32_charset_[ansi, default, symbol, shiftjis, hangul, gb2312,
1857 chinesebig5, oem, easteurope, turkish, baltic, russian, arabic,
1858 greek, hebrew, thai, johab, mac, unicode]): New symbols.
1859 (x_produce_glyphs): Remove out of date #ifdef 0'd section. Replace
1860 with TODO comment.
1861 (w32_codepage_for_font): Use Vw32_charset_info_alist.
1862 (syms_of_w32term): Remove Vw32_charset_to_codepage_alist.
1863 Define Vw32_charset_info_alist and w32_charset symbols.
1864
18652000-03-22 Jason Rumney <jasonr@gnu.org>
1866
1867 * makefile.nt (w32bdf.obj): Update dependencies.
1868
1869 * w32bdf.c: Include frame.h and dispextern.h before fontset.h.
1870
1871 * w32fns.c: Include fontset.h after dispextern.h.
1872 (Fx_create_frame): Do not create fontset.
1873 (w32_load_system_font): Doc fix.
1874 (Fx_close_connection): Free full_name if it is not shared.
1875
1876 * w32term.c: Include fontset.h after dispextern.h.
1877 (x_get_glyph_face_and_encoding): New parameter two_byte_p. Callers
1878 updated.
1879 (w32_per_char_metric): If PCM is invalid, delete and return NULL.
1880 (x_get_char_and_face_encoding): Use FACE_FOR_CHAR to get face_id.
1881 (w32_font_is_double_byte): New function, needs body.
1882 (x_append_glyph): Set glyph->glyph_not_available_p.
1883 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
1884 it->charset. If it->multibyte_p is zero and it->c is a multibyte
1885 character, convert it to a unibyte character.
1886 (struct glyph_string): Delete member `charset'.
1887 (W32_TEXTOUT): Temporarily remove charset_dim until another way of
1888 calculating it is found.
1889 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
1890 the case that per char metric is not available correctly.
1891 (x_fill_glyph_string): Handle the case that the specific glyph is
1892 not available correctly.
1893 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
1894 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
1895 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
1896 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
1897 fontset. Don't call FS_LOAD_FONT.
1898
439d5cb4
KR
18992000-03-22 Ken Raeburn <raeburn@gnu.org>
1900
1901 * intervals.h (NULL_INTERVAL): Cast to INTERVAL type.
1902 (INT_LISPLIKE): New macro.
1903 (NULL_INTERVAL_P): Use it.
1904 (INTERVAL_HAS_PARENT, INTERVAL_HAS_OBJECT, SET_INTERVAL_PARENT,
1905 SET_INTERVAL_OBJECT, INTERVAL_PARENT, COPY_INTERVAL_PARENT,
1906 GET_INTERVAL_OBJECT, INTERVAL_PARENT_OR_NULL): New macros.
1907
1908 * alloc.c (make_interval, gc_sweep): Use new macros; eliminate all
1909 explicit references to "parent" field of struct interval and
1910 associated unclean type conversions.
1911 * intervals.c (create_root_interval, root_interval, rotate_right,
1912 rotate_left, balance_possible_root_interval, split_interval_right,
1913 split_interval_left, interval_start_pos, find_interval,
1914 next_interval, previous_interval, update_interval,
1915 adjust_intervals_for_insertion, delete_node, delete_interval,
1916 adjust_intervals_for_deletion, merge_interval_right,
1917 merge_interval_left, reproduce_tree, graft_intervals_into_buffer,
1918 copy_intervals_to_string): Likewise.
1919 * intervals.h (AM_LEFT_CHILD, AM_RIGHT_CHILD, RESET_INTERVAL):
1920 Likewise.
1921 * syntax.c (update_syntax_table): Likewise.
1922
1923 * intervals.c (reproduce_tree_obj): New function, like
1924 reproduce_tree but takes a Lisp_Object for the parent. Declare
1925 with prototype.
1926 (graft_intervals_into_buffer): Use it when appropriate.
1927 (reproduce_tree): Declare with prototype.
1928 (balance_possible_root_interval): Check that the parent is a lisp
1929 object before trying to examine its type.
1930
ee1c5b21
GM
19312000-03-22 Gerd Moellmann <gerd@gnu.org>
1932
1933 * xfaces.c (lface_same_font_attributes_p): Compare font attributes
1934 as strings only if both are known to be strings.
1935
1936 * s/openbsd.h (LIBS_TERMCAP): Undef.
1937
1fb352e0
SM
19382000-03-21 Stefan Monnier <monnier@cs.yale.edu>
1939
1940 * regex.c (CHAR_CHARSET, CHARSET_LEADING_CODE_BASE): Add default
1941 definitions for non-Emacs compilation.
1942 (enum re_opcode_t): Remove (not)wordchar and move (not)syntaxspec
1943 outside of `#ifdef emacs'.
1944 (print_partial_compiled_pattern): Update.
1945 (regex_compile): Use (not)syntaxspec(Sword) instead of (not)wordchar.
1946 (re_compile_fastmap): Merge handling of charset and charset_not (for
1947 emacs and non-emacs compilation as well).
1948 Similarly for (not)categoryspec and (not)syntaxspec.
1949 Don't use the fastmap when reaching `anychar' since the added
1950 complexity is not justified.
1951 (re_match_2_internal): Merge (not)wordchar (emacs and non-emacs)
1952 and (not)syntaxspec. Merge (not)categoryspec.
1953
fdaa1f77
KH
19542000-03-22 Kenichi Handa <handa@etl.go.jp>
1955
ff1a0d8e
KH
1956 * dispextern.h [!HAVE_WINDOW_SYSTEM] (FACE_SUITABLE_FOR_CHAR_P,
1957 FACE_FOR_CHAR): Define them differently for the configuration of
1958 --without-x.
fdaa1f77 1959
d152fb46
DL
19602000-03-21 Dave Love <fx@gnu.org>
1961
1962 * fontset.c (Fset_fontset_font, Ffontset_font): Fix newlines in
1963 doc string.
1964
d2cafc8c
GM
19652000-03-21 Gerd Moellmann <gerd@gnu.org>
1966
1967 * xfaces.c (check_lface_attrs) [GLYPH_DEBUG]: Fix syntax error.
1968 (lface_fully_specified_p): Don't check contents of
1969 LFACE_FONT_INDEX because that attribute is optional.
1970 (realize_x_face): Remove now unwarranted xassert.
1971
9111d4b5
KH
19722000-03-21 Kenichi HANDA <handa@etl.go.jp>
1973
1974 The following changes are to make font selection based on
1975 characters, not charset. In addition, they recover fontset
1976 facilities while utilizing the new font selection mechanism.
1977
6c4bfdc0
KH
1978 * Makefile.in (fontset.o): Depend on dispextern.h.
1979
1980 * alloc.c (mark_face_cache): Don't mark face->registry.
1981
9111d4b5
KH
1982 * dispextern.h (struct glyph): New member glyph_not_available_p.
1983 Use 22 bits for face_id.
1984 (enum lface_attribute_index): Add LFACE_FONT_INDEX.
1985 (struct face): Delete member registry, new member ascii_face.
1986 (FACE_SUITABLE_FOR_CHAR_P): Renamed from
1987 FACE_SUITABLE_FOR_CHARSET_P. Caller changed.
1988 (FACE_FOR_CHAR): Renamed from FACE_FOR_CHARSET. Caller changed.
1989 (struct it): Delete member charset, new member
1990 glyph_not_available_p.
1991
1992 * fontset.h (FONT_NOT_OPENED, FONT_NOT_FOUND): Macros removed.
1993 (struct fontset_info, struct fontset_data): Structs removed.
1994 (allloc_fontset_data, free_fontset_data, fs_regiser_fontset,
1995 Vglobale_fontset_alist, font_idx_temp): Externs removed.
1996 (fs_load_font, fs_query_fontset): Adjusted for new argument.
1997 (fs_free_face_fontset, fontset_font_pattern,
1998 face_suitable_for_char_p, face_for_char,
1999 make_fontset_for_ascii_face): Extern them.
2000 (FS_LOAD_FONT): Adjusted for the change of fontset implementation.
2001 (FS_LOAD_FACE_FONT): New macro.
2002
2003 * fontset.c: All codes rewritten or adjusted for the change of
2004 fontset implementation. Now fontset is represented by char table.
2005 (Vglobal_fontset_alist, font_idx_temp, my_strcasetbl): Variables
2006 removed.
2007 (my_strcasecmp): Function removed.
2008 (Vfontset_table, next_fontset_id, Vdefault_fontset): New
2009 variables.
2010 (AREF, ASIZE): New macros.
2011 (FONTSET_FROM_ID, FONTSET_ID, FONTSET_NAME, FONTSET_FRAME,
2012 FONTSET_ASCII, FONTSET_BASE, BASE_FONTSET_P, FONTSET_REF,
2013 FONTSET_REF_VIA_BASE, FONTSET_SET): New macros.
2014 (fontset_ref, fontset_ref_via_base, fontset_set, make_fontset,
2015 fontset_id_valid_p, font_family_registry, fontset_name,
2016 fontset_ascii, free_face_fontset, face_suitable_for_char_p,
2017 face_for_char, make_fontset_for_ascii_face, fontset_font_pattern):
2018 New functions.
2019 (fs_load_font): New arg FACE. Caller changed.
2020 (fs_query_fontset): Argument changed. Caller changed.
2021 (Fquery_fontset): call fs_query_fontset.
2022 (fs_register_fontset, alloc_fontset_data, free_fontset_data):
2023 Functions removed.
2024 (clear_fontset_elements, check_registry_encoding,
2025 check_fontset_name): New functions.
2026 (syms_of_fontset): Set char-table-extra-slots property of fontset
2027 to 3. Staticpro and initialize Vfontset_table and
2028 Vdefault_fontset. Defsubr fontset_font and fontset_list.
2029
2030 * frame.h (struct frame): Member `fontset_data' removed.
2031 (FRAME_FONTSET_DATA): Macro removed.
2032
2033 * frame.c (make_frame): Don't allocate f->fontset_data.
2034 (Fdelete_frame): Don't free f->fontset_data.
2035
6c4bfdc0
KH
2036 * msdos.c (XMenuActivate): Args to lookup_derived_face changed.
2037
9111d4b5
KH
2038 * xdisp.c (charset_at_position): Function removed.
2039 (init_iterator): Don't set member charset of struct `it'.
2040 (handle_face_prop, reseat_to_string, set_iterator_to_next,
2041 next_element_from_display_vector, insert_left_trunc_glyphs):
2042 Likewise.
2043 (face_before_or_after_it_pos): Call FACE_FOR_CHAR, not
2044 FACE_FOR_CHARSET.
2045 (get_next_display_element, append_space,
2046 extend_face_to_end_of_line): Likewise.
2047
2048 * xfaces.c (Qx_charset_registry, Vface_default_registry):
2049 Variables removed.
2050 (clear_font_table, frame_update_line_height, load_face_font):
2051 Adjusted for the change of fontset implementation.
2052 (load_face_fontset_font): Function removed.
2053 (pixel_point_size): New function.
2054 (font_list): Argument type changed. Caller changed.
2055 (LFACE_FONT): New macro.
2056 (check_lface_attrs): Check attr[LFACE_FONT_INDEX].
2057 (set_lface_from_font_name): Type of arg FONTNAME is changed to
2058 Lisp_Object. Determine the font name by actually loading a font
2059 by the specified pattern. Set LFACE_FONT (lface) to the specified
2060 pattern. Even if a font is not found, don't try alternatives.
2061 (Finternal_set_lisp_face_attribute): Handle `font' slot in lface.
2062 (set_font_frame_param): If `font' is specified in lface, use it.
2063 (Finternal_get_lisp_face_attribute): Handle `font' slot in lface.
2064 (lface_same_font_attributes_p): Likewise.
2065 (make_realized_face): Arguent changed. Caller changed. Set
2066 face->ascii_face to face itself.
2067 (free_realized_face): Free face->fontset if face is for ASCII.
2068 (face_suitable_for_iso8859_1_p, face_suitable_for_charset_p,
2069 deduce_unibyte_registry, x_charset_registry): Functions removed.
2070 (free_realized_multibyte_face): New function.
2071 (lookup_face, lookup_named_face, lookup_derived_face): Argument
2072 changed. Caller changed.
2073 (try_font_list): Argument type changed.
2074 (face_fontset): Check `font' slot of ATTRS, not `family' slot.
2075 (choose_face_font): Argument changed. Handle fontset properly.
2076 (choose_face_fontset_font): Function removed.
2077 (realize_default_face, realize_named_face): Don't remove the
2078 former face here.
2079 (realize_face): Argument changed. Caller changed. Remove face
2080 with the arg former_face_id in advance. Load font for the new
2081 face.
2082 (realize_x_face): Argument changed. Caller changed. For a
2083 multibyte character, share fontset with base_face. For a single
2084 byte character, make a new realized fontset. Don't load a font
2085 here.
2086 (realize_tty_face): Argument changed. Caller changed.
2087 (compute_char_face): Call FACE_FOR_CHAR, not FACE_FOR_CHARSET.
2088 (face_at_buffer_position): Don't check multibyte_p for returning
2089 DEFAULT_FACE_ID.
2090 (face_at_string_position): Call FACE_SUITABLE_FOR_CHAR_P, not
2091 FACE_SUITABLE_FOR_CHARSET_P.
2092 (syms_of_xfaces): Remove code for Qx_charset_registry and
2093 Vface_default_registry.
2094
6c4bfdc0
KH
2095 * xterm.c: Include fontset.h after dispextern.h. Undo the changes
2096 related to PER_CHAR_METRIC done by Gerd on 2000-03-03.
9111d4b5
KH
2097 (x_per_char_metric): Don't try FONT->default_char. Even if
2098 pcm->width is zero, glyph bits may exist.
2099 (x_encode_char): Always initialize char2b->byte1.
2100 (x_get_char_face_and_encoding): Call FACE_FOR_CHAR to get face_id.
2101 (x_get_glyph_face_and_encoding): New arg two_byte_p. Caller
2102 changed.
2103 (x_append_glyph): Set glyph->glyph_not_available_p.
2104 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
2105 it->charset. Handle the case that per char metric is not
2106 available. If it->multibyte_p is zero and it->c is a multibyte
2107 character, convert it to a unibyte character.
2108 (struct glyph_string): Delete member `charset'.
2109 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
2110 the case that per char metric is not available correctly.
2111 (x_fill_glyph_string): Handle the case that the specific glyph is
2112 not available correctly.
2113 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
2114 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
2115 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
2116 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
2117 fontset. Don't call FS_LOAD_FONT.
2118
2119 * xfns.c (Fx_create_frame): Don't cal fs_register_fontset.
2120 (x_create_tip_frame): Likewise.
2121 (Fx_close_connection): Free full_name of font_info.
2122
2123 * fns.c (optimize_sub_char_table): New function.
2124 (Foptimize_char_table): New function.
2125 (syms_of_fns): Defsubr Soptimize_char_table.
2126
b33dd3b0
GM
21272000-03-20 Gerd Moellmann <gerd@gnu.org>
2128
2129 * buffer.c (Fset_buffer_modified_p): Set update_mode_lines
2130 only if buffer is displayed in some window.
2131
2132 * xdisp.c (handle_single_display_prop): Initialize local `value'.
2133 (try_window_reusing_current_matrix): Don't call scroll run
2134 function if run's current and desired position are the same;
2135 this prevents cursor flickering.
2136
4e8a9132
SM
21372000-03-19 Stefan Monnier <monnier@cs.yale.edu>
2138
2139 * regex.h (RE_TRANSLATE. RE_TRANSLATE_P): Moved to regex.c.
2140
2141 * regex.c (RE_STRING_CHAR): New macro.
2142 (GET_CHAR_AFER_2): Remove.
2143 (RE_TRANSLATE, RE_TRANSLATE_P): New macros moved from regex.h.
2144 (enum re_opcode_t): Remove on_failure_jump_exclusive.
2145 (print_partial_compiled_pattern, re_compile_fastmap)
2146 (re_match_2_internal): Remove on_failure_jump_exclusive.
2147 (regex_compile): Turn optimizable P+ loops into PP*, so that the
2148 optimization only need to work for * (ie. can use of_keep_string_jump).
2149 Remove the special case for .*\n since it is now covered by the general
2150 optimization.
2151 (re_search_2): Don't bother with `room'.
2152 (skip_one_char): New function.
2153 (skip_noops): Simplify since `memory' is not needed any more.
2154 (mutually_exclusive_p): Restructure slightly to use `switch' and
2155 add handling for "all" remaining cases.
2156 (re_match_2_internal): Change on_failure_jump_smart to use
2157 on_failure_keep_string_jump (and redirect the end-of-loop jump)
2158 rather than on_failure_jump_exclusive.
2159
2136fdd4
GM
21602000-03-19 Gerd Moellmann <gerd@gnu.org>
2161
2162 * xfns.c (select_visual): Don't set dpyinfo->n_planes to the
2163 number of bits per RGB because it's everywhere used as the depth
2164 of the visual.
2165
2166 * term.c (calculate_costs): Remove code dealing with X frames.
2167
e53ae11c
RS
21682000-03-19 Richard M. Stallman <rms@caffeine.ai.mit.edu>
2169
2170 * lread.c (syms_of_lread): Doc fix for load-convert-to-unibyte.
2171
d7b511c4
GM
21722000-03-18 Gerd Moellmann <gerd@gnu.org>
2173
2174 * lread.c (read_integer): Unread the last char not consumed.
2175
16b5d424
GM
21762000-03-17 Gerd Moellmann <gerd@gnu.org>
2177
2178 * xterm.c (x_update_window_cursor): Don't update in frames
d7b511c4 2179 which are in the process of being deleted.
16b5d424 2180
1fa28578
GM
21812000-03-16 Gerd Moellmann <gerd@gnu.org>
2182
83488cce
GM
2183 * Makefile.in (mostlyclean): Add `*.core'.
2184 (clean): Add `bootstrap-emacs'.
2185
1fa28578
GM
2186 * lread.c (read_integer): New function.
2187 (read1): Support read syntax #o, #x, #b, #r.
2188
99633e97
SM
21892000-03-15 Stefan Monnier <monnier@cs.yale.edu>
2190
1fa28578
GM
2191 * regex.c (re_match_2): Fix string shortening (to fit `stop') to
2192 make sure POINTER_TO_OFFSET gives the same value before and after
2193 PREFETCH. Use `dfail' to guarantee "atomic" matching.
99633e97
SM
2194 (PTR_TO_OFFSET): Use POINTER_TO_OFFSET.
2195 (debug): Now only active if > 0 rather than if != 0.
2196 (DEBUG_*): Update for the new meaning of `debug'.
1fa28578
GM
2197 (print_partial_compiled_pattern): Add missing `succeed' case. Use
2198 CHARSET_* macros in the charset(_not) branch. Fix off-by-two bugs
2199 in `succeed_n', `jump_n' and `set_number_at'.
99633e97
SM
2200 (store_op1, store_op2, insert_op1, insert_op2)
2201 (at_begline_loc_p, at_endline_loc_p): Add prototype.
1fa28578
GM
2202 (group_in_compile_stack): Move to after its arg's types are
2203 declared and add a prototype.
99633e97 2204 (PATFETCH): Define in terms of PATFETCH_RAW.
1fa28578
GM
2205 (GET_UNSIGNED_NUMBER): Add the usual `do { ... } while(0)'
2206 wrapper.
99633e97 2207 (QUIT): Redefine as a nop except for NTemacs.
1fa28578
GM
2208 (regex_compile): Handle intervals {,M} as if it was {0,M}. Fix
2209 indentation of the greedy-op and shy-group code.
99633e97
SM
2210 (at_(beg|end)line_loc_p): Fix argument's types.
2211 (re_compile_fastmap): Ifdef out failure_stack_ptr to shut up gcc.
2212 (re_search_2): Use POS_AS_IN_BUFFER. Simplify `room' computation.
2213 (MATCHING_IN_FIRST_STRING): Remove.
1fa28578
GM
2214 (re_match_2): Use POS_AS_IN_BUFFER. Ifdef out failure_stack_ptr
2215 to shut up gcc. Use FIRST_STRING_P and POINTER_TO_OFFSET. Use
2216 QUIT unconditionally.
99633e97 2217
699238d9
GM
22182000-03-15 Gerd Moellmann <gerd@gnu.org>
2219
2220 * minibuf.c (Fminibuffer_complete): Set point to ZV if finding
2221 a sole completion.
2222
2223 * process.c (send_process): Add a hint that the function
2224 can call Lisp code to its comment.
2225
2226 * lread.c (load_dangerous_libraries): New variable.
2227 (Vbytecomp_version_regexp): New variable.
2228 (safe_to_load_p): New function.
2229 (Fload): Handle files not compiled with Emacs specially.
2230 (syms_of_lread): New Lisp variable load-dangerous-libraries.
2231
34e23e5a
GM
22322000-03-14 Gerd Moellmann <gerd@gnu.org>
2233
9c763cca
GM
2234 * lisp.h (free_frame_xic) [HAVE_X_I18N]: Add missing semicolon.
2235
2236 * xterm.c (xim_close_dpy, xim_initialize): Use X11R6-style XIM
2237 support functions only if HAVE_X11R6_XIM is defined.
2238 (xim_instantiate_callback): Define only if HAVE_X11R6_XIM.
2239
2240 * s/sol2.h (INHIBIT_X11R6_XIM): Define.
2241
2242 * xfns.c (X_I18N_INHIBITED): Don't define.
2243 (create_frame_xic): Remove conditional compilation on
2244 X_I18N_INHIBITED.
2245 (x_kill_gs_process, x_window): Use FRAME_X_VISUAL.
2246
2247 * config.in (HAVE_X_I18N): Moved here from xterm.h.
2248 (HAVE_X11R6_XIM): Define.
2249
2250 * xterm.h (HAVE_X_I18N) [HAVE_X11R6]: Moved to config.in.
2251
34e23e5a
GM
2252 * xterm.c (x_term_init): Add support for X resource `synchronous'.
2253 If set, call XSynchronize.
2254
66f0296e
SM
22552000-03-13 Stefan Monnier <monnier@cs.yale.edu>
2256
34e23e5a
GM
2257 * regex.c: Declare a new type `re_char' used throughout the code
2258 for the string char type. It's `const unsigned char' to match the
2259 rest of Emacs. Consistently make sure all pointers to strings use
2260 it and make sure all pointers into the pattern use `unsigned
2261 char'.
66f0296e 2262 (re_match_2_internal): Use `PREFETCH+STRING_CHAR' instead of
34e23e5a
GM
2263 GET_CHAR_AFTER_2. Also merge wordbound and notwordbound to reduce
2264 code duplication.
66f0296e
SM
2265
2266 * charset.h (GET_CHAR_AFTER_2): Remove.
2267 (GET_CHAR_BEFORE_2): Use unsigned chars, like everywhere else.
2268
854a025c
KR
22692000-03-12 Ken Raeburn <raeburn@gnu.org>
2270
2271 * Makefile.in (temacs): Evaluate ALL_LDFLAGS into a temporary
2272 variable before the invocation of YMF_PASS_LDFLAGS, in case both
2273 of them try to use backquotes.
2274
b9d2c7e2
DL
22752000-03-12 Dave Love <fx@gnu.org>
2276
2277 * unexelf.c: Restore changes of 1999-10-19.
2278 (unexec): Don't adjust bss for sbss type SHT_PROGBITS; otherwise
2279 fix its type and alignment; copy it from current process.
2280
5e5dff44
GM
22812000-03-12 Gerd Moellmann <gerd@gnu.org>
2282
9b2f3c38
GM
2283 * atimer.c (cancel_atimer): Break out of the loop as soon as timer
2284 has been found. Fix bug not computing timer's predecessor.
2285
9172b88d
GM
2286 * fileio.c (Fread_file_name): Handle case that DIR contains a
2287 file name.
2288
e1cff360
GM
2289 * window.c (Fsave_window_excursion): Doc fix.
2290
5e5dff44
GM
2291 * xfns.c (x_defined_color): Rewritten to use
2292 x_allocate_nearest_color.
2293
e411ce4b
EZ
22942000-03-12 Eli Zaretskii <eliz@is.elta.co.il>
2295
2296 * msdos.c (vga_installed): New function, code moved from
2297 dos_set_window_size.
2298 (Qbar, Qcursor_type, outside_cursor): New variables.
2299 (syms_of_msdos): Intern and staticpro them.
2300 (dos_ttraw) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Save the cursor
2301 shape used outside Emacs when called for the first time.
2302 (dos_ttcooked) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Restore the
2303 cursor shape used outside Emacs.
2304 (msdos_set_cursor_shape, IT_set_cursor_type): New functions.
2305 (IT_frame_up_to_date): Call IT_set_cursor_type, in case the cursor
2306 type has changed.
2307 (IT_set_frame_parameters): Call IT_set_cursor_type if the frame
2308 parameters specify the cursor. Make qreverse a global
2309 variable (renamed to Qreverse).
2310
80460654
GM
23112000-03-09 Gerd Moellmann <gerd@gnu.org>
2312
2313 * fns.c (Fy_or_n_p): Cancel busy-cursor.
2314
95cd4c40
SM
23152000-03-08 Stefan Monnier <monnier@cs.yale.edu>
2316
2317 This is a big redesign of failure-stack and register handling, prompted
2318 by bugs revealed when trying to add shy-groups. Overall, what happened
2319 is that loops are now structured a little differently, groups can be
2320 shy and the code is a little simpler.
2321
2322 * regex.h: Update the copyright.
2323 (RE_SHY_GROUPS): New value.
2324 (RE_UNMATCHED_RIGHT_PAREN_ORD): Renumber.
2325 (RE_SYNTAX_EMACS): Add RE_SHY_GROUPS.
2326
80460654
GM
2327 * regex.c (enum re_opcode_t): Remove jump_past_alt,
2328 maybe_pop_jump, push_dummy_failure and dumy_failure_jump. Add
2329 on_failure_jump_(exclusive, loop and smart). Also fix the comment
2330 for (start|stop)_memory since they now only take one argument (the
2331 second has becomes unnecessary).
2332 (print_partial_compiled_pattern): Adjust for changes in
2333 re_opcode_t.
2334 (print_compiled_pattern): Use %ld to printf long ints and flush to
2335 make debugging a little easier.
95cd4c40
SM
2336 (union fail_stack_elt): Make the integer unsigned.
2337 (struct fail_stack_type): Add a `frame' element.
2338 (INIT_FAIL_STACK): Init `frame' as well.
2339 (POP_PATTERN_OP): New macro for re_compile_fastmap.
2340 (DEBUG_PUSH, DEBUG_POP): Remove.
2341 (NUM_REG_ITEMS): Remove.
2342 (NUM_NONREG_ITEMS): Adjust.
80460654
GM
2343 (FAILURE_PAT, FAILURE_STR, NEXT_FAILURE_HANDLE)
2344 (TOP_FAILURE_HANDLE): New macros for the cycle detection.
95cd4c40 2345 (ENSURE_FAIL_STACK): New macro for PUSH_FAILURE_(REG|POINT).
80460654
GM
2346 (PUSH_FAILURE_REG, POP_FAILURE_REG, CHECK_INFINITE_LOOP): New
2347 macros.
2348 (PUSH_FAILURE_POINT): Don't push registers any more. The pattern
2349 address pushed is not the destination of the jump but the source
2350 of it instead.
95cd4c40
SM
2351 (NUM_FAILURE_ITEMS): Remove.
2352 (POP_FAILURE_POINT): Adapt to the new stack structure (i.e. pop
80460654
GM
2353 registers before the actual failure point). Don't hardcode any
2354 meaning for str==NULL anymore.
95cd4c40 2355 (union register_info_type, REG_MATCH_NULL_STRING_P, IS_ACTIVE)
80460654
GM
2356 (MATCHED_SOMETHING, EVER_MATCHED_SOMETHING, SET_REGS_MATCHED):
2357 Remove.
95cd4c40
SM
2358 (REG_UNSET_VALUE): Use NULL (why not?).
2359 (compile_range): Remove declaration since it doesn't exist.
2360 (struct compile_stack_elt_t): Remove inner_group_offset.
2361 (old_reg(start|end), reg_info, reg_dummy, reg_info_dummy): Remove.
2362 (regex_grow_registers): Remove dead code.
2363 (FIXUP_ALT_JUMP): New macro.
80460654
GM
2364 (regex_compile): Add shy-groups Change loops to use
2365 on_failure_jump_smart&jump instead of
2366 on_failure_jump&maybe_pop_jump. Change + loops to eliminate the
2367 initial (dummy_failure_)jump. Remove c1_base (looks like unused
2368 variable to me). Use `jump' instead of `jump_past_alt' and don't
2369 bother with push_dummy_failure in alternatives since it is now
2370 unnecessary. Use FIXUP_ALT_JUMP. Eliminate a useless `#ifdef
2371 emacs' for (re)allocating the stack.
2372 (re_compile_fastmap): Remove dead variables i and num_regs. Exit
2373 from loop when bufp->can_be_null rather than jumping to `done'.
2374 Avoid jumping backwards so as to ensure termination. Use
2375 PATTERN_STACK_EMPTY and POP_PATTERN_OP. Improved handling of
2376 backreferences. Remove dead code in handling of `anychar'.
95cd4c40 2377 (skip_noops, mutually_exclusive_p): New functions taken from the
80460654
GM
2378 handling of `maybe_pop_jump' in re_match_2_internal. Slightly
2379 improve mutually_exclusive_p to handle ".+\n".
2380 (lowest_active_reg, highest_active_reg,
2381 NO_(LOWEST|HIGHEST)_ACTIVE_REG) Remove.
2382 (re_match_2_internal): Use %p instead of 0x%x when printf'ing
2383 ptrs. Don't SET_REGS_MATCHED anymore. Remove many dead
2384 variables. Push register (in `start_memory') on the stack rather
2385 than storing it in old_reg(start|end). Remove the cycle detection
2386 from `stop_memory', replaced by the use of on_failure_jump_loop
2387 for greedy loops. Add code for the new on_failure_jump_<foo>.
2388 Remove ad-hoc code in `on_failure_jump' to push more registers in
2389 the case of a loop. Take out code from `maybe_pop_jump' into
2390 separate functions and adapt it to the semantics of
2391 `on_failure_jump_smart'. Remove jump_past_alt, dummy_failure_jump
2392 and push_dummy_failure. Remove dummy_failure handling and
2393 handling of `failures to jump to on_failure_jump' (this last one
2394 was already dead code, it seems).
2395 (group_match_null_string_p, alt_match_null_string_p)
2396 (common_op_match_null_string_p): Remove.
95cd4c40 2397
7397acc4
DL
23982000-03-08 Dave Love <fx@gnu.org>
2399
2400 * config.in: Don't depend on __STDC__ for volatile.
2401 Add POINTER_TYPE, PTR, PROTOTYPES.
2402
2403 * hftctl.c, strftime.c: Use PROTOTYPES.
2404 * eval.c (find_handler_clause): Likewise.
2405
2406 * mem-limits.h: Use POINTER_TYPE.
2407
2408 * lisp.h (P_): Define based on PROTOTYPES, not __STDC__.
2409 (memory_warnings): Declare using POINTER_TYPE.
2410
5e91ff9e
GM
24112000-03-08 Gerd Moellmann <gerd@gnu.org>
2412
feab4fba
GM
2413 * xfns.c (x_set_cursor_type): If ARG is nil, give frame no cursor.
2414
25edb08f
GM
2415 * xdisp.c (display_echo_area): Temporarily inhibit garbage
2416 collection.
2417
5e91ff9e
GM
2418 * xfns.c: Remove obsolete code in #if 0.
2419 (Fx_focus_frame): New function.
2420
a735b7e1
KH
24212000-03-07 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
2422
2423 * coding.c (coding_category_name): Add coding-category-utf-8,
2424 coding-category-utf-16-be, coding-category-utf-16-le.
2425 (UTF_8_1_OCTET_P, UTF_8_EXTRA_OCTET_P, UTF_8_2_OCTET_LEADING_P,
2426 UTF_8_3_OCTET_LEADING_P, UTF_8_4_OCTET_LEADING_P,
2427 UTF_8_5_OCTET_LEADING_P, UTF_8_6_OCTET_LEADING_P): New macros.
2428 (detect_coding_utf_8): New function.
2429 (UTF_16_INVALID_P, UTF_16_HIGH_SURROGATE_P
2430 UTF_16_LOW_SURROGATE_P): New macros.
2431 (detect_coding_utf_16): New function
2432 (detect_coding_mask): When priorities are specified, skip any
2433 categories that have `nil' coding-system. Fix bug of returning
2434 wrong mask when PRIORITIES is specified and detect_coding_XXX()
2435 returns a mask not set in PRIORITIES.
2436 (detect_eol_type_in_2_octet_form): New function.
2437 (detect_eol): selects detect_eol_type_XXX to call according to
2438 cooding->category_idx.
2439 (detect_coding_system): Remove `nil' coding-system in the result.
2440 (Fupdate_coding_systems_internal): Update all coding-categories.
2441
2442 * coding.h (CODING_CATEGORY_IDX_UTF_8,
2443 CODING_CATEGORY_IDX_UTF_16_BE, CODING_CATEGORY_IDX_UTF_16_LE): New
2444 macros.
2445 (CODING_CATEGORY_IDX_RAW_TEXT, CODING_CATEGORY_IDX_BINARY,
2446 CODING_CATEGORY_IDX_MAX): Adjusted for the above macros.
2447 CODING_CATEGORY_IDX_UTF_16_LE.
2448 (CODING_CATEGORY_MASK_UTF_8, CODING_CATEGORY_MASK_UTF_16_BE,
2449 CODING_CATEGORY_MASK_UTF_16_LE): New macros.
2450 (CODING_CATEGORY_MASK_ANY): Include the above macros.
2451 (CODING_CATEGORY_MASK_UTF_16_BE_LE): New macro.
2452
9994cc69
GM
24532000-03-07 Gerd Moellmann <gerd@gnu.org>
2454
e9b4e5ff
GM
2455 * doc.c (Fdocumentation_property): If value is not a string,
2456 and doesn't refer to etc/DOC, evaluate it to obtain a string.
2457
f7daf1e1
GM
2458 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Don't try to
2459 close the display with XtCloseDisplay. This caused a bus error
2460 on OpenWindows.
2461
9994cc69
GM
2462 * minibuf.c (Fminibuffer_complete): Move point to ZV when input is
2463 complete but not unique.
2464
4336c705
GM
24652000-03-06 Gerd Moellmann <gerd@gnu.org>
2466
18bb0684
GM
2467 * process.c (send_process): Remove local variable `procname' that
2468 might become invalid when a GC happens. Instead, access the
2469 process name slot directly.
2470
4336c705
GM
2471 * xfns.c (x_set_menu_bar_lines_1): Adjust window's orig_top and
2472 orig_height if set.
2473
2474 * frame.c (set_menu_bar_lines_1): Adjust window's orig_top and
2475 orig_height if set.
2476
515d0d0e
EZ
24772000-03-06 Eli Zaretskii <eliz@is.elta.co.il>
2478
2479 * msdos.c (IT_note_mouse_highlight): Return immediately if frame's
2480 glyph matrices have been freed.
2481
100b3cbb
GM
24822000-03-05 Gerd Moellmann <gerd@gnu.org>
2483
50df5e5a 2484 * Makefile.in (tags): Include ../lwlib/TAGS in TAGS.
6178bc23 2485 (bootstrap-temacs): Set LC_ALL to C like for temacs.
50df5e5a
GM
2486
2487 * xfns.c (QCdata): Moved to xdisp.c.
2488
2489 * xdisp.c (QCdata): Moved here from xfns.c.
2490 (syms_of_xdisp): Initialize QCdata.
2491
2492 * frame.h (FRAME_INTERNAL_BORDER_WIDTH) [!HAVE_X_WINDOWS]: Define.
2493
2494 * window.c (coordinates_in_window): Use
2495 FRAME_INTERNAL_BORDER_WIDTH_SAFE instead of
2496 FRAME_INTERNAL_BORDER_WIDTH.
2497
100b3cbb 2498 * xdisp.c (try_window_id): Recompute unchanged information if
4336c705 2499 it is obviously invalid.
100b3cbb
GM
2500
2501 * xterm.c (x_term_init): Create a colormap if not using the
2502 default visual.
2503
2504 * xterm.h (select_visual): Change prototype.
2505
2506 * xfns.c (select_visual): Rewritten. Recognize user-specified
2507 visual classes.
2508 (visual_classes): New variable.
2509
64d739c4
GM
25102000-03-04 Gerd Moellmann <gerd@gnu.org>
2511
2512 * xfns.c (x_defined_color, x_set_mouse_color, lookup_rgb_color)
2513 (lookup_pixel_color, x_laplace, x_build_heuristic_mask)
2514 (png_load): Access colormap of frame using FRAME_X_COLORMAP.
2515 (x_decode_color): Don't handle allocation of white and black
2516 specially.
2517 (x_window) [USE_X_TOOLKIT]: Set XtNvisual, XtNdepth, and
2518 XtNcolormap resources.
2519 (x_window) [!USE_X_TOOLKIT]: Pass colormap to XCreateWindow.
2520 (Fx_create_frame): Initialize color members of x_output structure.
2521 (xpm_load): Pass colormap to XPM lib.
2522
2523 * xfaces.c (x_free_colors): Access colormap of frame using
2524 FRAME_X_COLORMAP. Be paranoid about freeing black and white
2525 when default colormap is used.
2526
2527 * xterm.c (x_term_init): Set Colormap member of x_display_info
2528 structure. Copy colormap if resource `privateColormap' is
2529 specified (PseudoColor only).
2530 (x_setup_relief_color): Access colormap of frame using
2531 FRAME_X_COLORMAP.
2532
2533 * xterm.h (struct x_display_info): Add Colormap member `cmap'.
2534 (FRAME_X_COLORMAP, FRAME_X_VISUAL): New macros.
2535
c3cee013
JR
25362000-03-04 Jason Rumney <jasonr@gnu.org>
2537
2538 * xfaces.c Change many FRAME_X... macros to FRAME_WINDOW... or
2539 other non-platform-specific equivalents.
64d739c4 2540 [WINDOWSNT]: Include w32term.h, fontset.h and define X
c3cee013
JR
2541 specific functions and macros as their w32 equivalents where
2542 non-platform-specifics are not available.
2543 [HAVE_X_WINDOWS]: Change most of these to HAVE_WINDOW_SYSTEM.
2544 (x_create_gc, x_free_gc) [WINDOWSNT]: Add W32 versions.
2545 (clear_font_table) [WINDOWSNT]: Call w32_unload_font.
2546 (frame_update_line_height): Use macros to access f->output_data.
2547 (defined_color): Remove FIXME comments; fixed.
2548 (x_face_list_fonts, prepare_face_for_display): Put X specifics
2549 into #ifdef blocks. Add WINDOWSNT blocks.
2550 (Fx_list_fonts): Use macros for accessing font data.
2551 (set_lface_from_font_name): Different default fonts for X and
2552 WINDOWSNT.
2553 (font_scalable_p) [WINDOWSNT]: Treat wildcard XLFD_AVGWIDTH as
2554 scalable for backward compatibility.
64d739c4 2555 (realize_tty_face) [MSDOS]: Do the same for WINDOWSNT.
c3cee013
JR
2556 (syms_of_xfaces) [WINDOWSNT]: Allow scalable fonts by default.
2557
64d739c4 2558 * emacs.c (main) [HAVE_NTGUI]: Call syms_of_xfaces instead of
c3cee013
JR
2559 syms_of_w32faces.
2560
2561 * makefile.nt (w32faces.obj): Remove.
2562 (xfaces.obj): Add.
2563
807cc41c
JR
25642000-03-03 Jason Rumney <jasonr@gnu.org>
2565
2566 * keyboard.c (make_lispy_event): Call buffer_posn_from_coords with
2567 correct parameters.
2568
0007072a
KR
25692000-03-03 Ken Raeburn <raeburn@gnu.org>
2570
2571 * unexelf.c (PT_LOAD, SHT_*, SHN_*) [__NetBSD__]: Only provide
2572 standard ELF definitions here if the system header does not.
2573
71a6ba55
GM
25742000-03-03 Gerd Moellmann <gerd@gnu.org>
2575
2576 * xterm.c (PER_CHAR_METRIC): Removed.
2577 (x_per_char_metric_1, x_default_char): New functions.
2578 (x_per_char_metric): If font's default char is invalid, return
2579 metrics of a suitably chosen usable default char.
2580 (x_draw_glyph_string_foreground): If font has an invalid default
64d739c4
GM
2581 char, replace occurrences of unprintable chars with a suitably
2582 chosen usable default char.
71a6ba55 2583
900fa1f1
GM
25842000-03-02 Gerd Moellmann <gerd@gnu.org>
2585
42f55fe0
GM
2586 * xterm.c (note_mouse_highlight): Return quickly if frame's
2587 glyph matrices have been freed.
2588
2589 * dispnew.c (free_glyphs): Block input while freeing matrices.
2590
900fa1f1
GM
2591 * xfns.c (x_clear_image, x_kill_gs_process): Use x_free_colors.
2592
2593 * xterm.c (x_alloc_lighter_color, x_setup_relief_color): Use
2594 x_free_colors.
2595
2596 * dispextern.h (x_free_colors): Add prototype.
2597
2598 * xfaces.c (x_free_colors): New function.
2599 (unload_color, free_face_colors): Use it.
2600
2f950292
EZ
26012000-03-02 Eli Zaretskii <eliz@is.elta.co.il>
2602
2603 * msdos.h (FRAME_INTERNAL_BORDER_WIDTH): Define to zero.
2604
2605 * window.c [MSDOS]: Include msdos.h.
2606
54d04320
DL
26072000-03-02 Dave Love <fx@gnu.org>
2608
2609 * m/powerpcle.h, m/sparc.h: Don't set C_OPTIMIZE_SWITCH.
2610
2611 * m/mips-siemens.h, m/news-r6.h, m/news-risc.h, m/tekxd88.h: Don't
2612 set C_OPTIMIZE_SWITCH for gcc.
2613
0ba93ac4
KH
26142000-03-02 Kenichi Handa <handa@etl.go.jp>
2615
2616 * coding.c (coding_save_composition): Be sure to allocate
2617 composition data area in coding even if there's no composition in
2618 the current run.
2619
a2bc11d4
JR
26202000-03-01 Jason Rumney <jasonr@gnu.org>
2621
2622 * w32term.c: Equivalent changes to those made to xterm.c on
2623 2000-02-25 and 2000-02-24.
2624
2625 * w32fns.c: Equivalent changes to those made to xfns.c on
2626 2000-02-25 and 2000-02-21.
2627
2628 * sysdep.c: [WINDOWSNT]: Use sys_read and sys_write to ensure
2629 correct line-end convention is followed.
2630
2631 * w32menu.c [HAVE_BOXES]: Remove #undef.
2632 (single_keymap_panes): Remove code for simulating checkmarks.
2633 (single_menu_item): Remove notbuttons_ptr argument. Callers changed.
2634 Remove code for drawing simulated checkmarks.
2635 (w32_menu_show): make unibyte help string correctly.
2636 (add_menu_item): draw standard Windows checkmarks. Draw radio
2637 buttons as radio buttons if possible.
2638
72d19d75
GM
26392000-03-01 Gerd Moellmann <gerd@gnu.org>
2640
2df636f4
GM
2641 * sysdep.c (start_of_text): Don't define this function for NetBSD
2642 with ELF.
2643
2644 * m/pmax.h (START_FILES, CANNOT_DUMP) [__NetBSD__ || __OpenBSD__]:
2645 Don't define.
2646 (UNEXEC) [__NetBSD__ || __OpenBSD__]: Define to unexelf.o.
2647 (LINKER): Don't undef if __NetBSD__ is defined.
2648
2649 * m/mips.h (LINKER) [__NetBSD__ || __OpenBSD__]: Don't define.
2650
2651 * fileio.c [__NetBSD__]: Define `unix'.
2652
72d19d75
GM
2653 * xfns.c (start_busy_cursor): Allow floats for busy-cursor-delay.
2654
ed4d0512
GM
26552000-02-29 Gerd Moellmann <gerd@gnu.org>
2656
50b1039f
GM
2657 * atimer.c (start_atimer): Don't abort when timers are stopped.
2658 (append_atimer_lists): New function.
2659 (cancel_atimer, stop_other_atimers, run_all_atimers): Handle
2660 arbitrary lists of stopped and running atimers.
2661
ed4d0512
GM
2662 * atimer.c (cancel_atimer): Handle canceling an atimer when
2663 some timers are stopped.
2664
2665 * xfns.c (cancel_busy_cursor): Set busy_cursor_atimer to null
2666 after canceling it.
2667
2668 * fns.c (maybe_resize_hash_table): Handle case of new size
2669 coming out as being the same as old size.
2670
387023ee
JR
26712000-02-27 Jason Rumney <jasonr@gnu.org>
2672
2673 * makefile.nt: Add atimer.h to dependencies.
2674 * w32.c (init_environment): Set Vw32_num_mouse_buttons here.
2675 * w32console.c: Only disable window system features for dispextern.h
2676 (initialize_w32_display): Build a display info for the console.
2677 * w32faces.c (tty_defined_color): Apply xfaces.c change from 02-17.
2678 * w32fns.c (w32_wnd_proc) [WM_LBUTTON_DOWN, WM_RBUTTON_DOWN,
2679 WM_LBUTTON_UP, WM_RBUTTON_UP]: Do not treat 4 or more button mice
2680 as 2 button mice.
2681 * w32gui.h (struct W32FontStruct): Revert last change after change
2682 to xdisp.c.
2683 * w32menu.c (single_submenu): Set up help string.
2684 [!HAVE_MULTILINGUAL_MENU]: Don't overwrite item_name with descrip.
2685 (w32_dialog_show): Set up help string.
2686 * w32term.c (w32_display_info_for_display): Remove unused function.
2687 (w32_draw_bitmap): Use pre-built bitmaps.
2688 (w32_initialize_display_info): New function to initialize parts of
2689 display info that are common to both GUI and console frames.
2690 (w32_term_init): Use w32_initialize_display_info. Do not set
2691 Vw32_num_mouse_buttons here, as it is not called for console
2692 frames. Build bitmaps for indicating truncated lines etc.
2693 (x_delete_display): Destroy pre-built bitmaps.
2694 * xdisp.c (handle_single_display_prop): Use FONT_HEIGHT macro.
2695 (echo_area_display): Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM.
2696
4516715a
DL
26972000-02-27 Dave Love <fx@gnu.org>
2698
2699 * lisp.h: Add a bunch of prototypes.
2700
171ca836
KH
27012000-02-26 Kenichi Handa <handa@etl.go.jp>
2702
2703 * keyboard.c (read_char): Set `usec' correctly.
2704
4013921d
KH
27052000-02-25 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
2706
2707 * ccl.c (ccl_driver) [CCL_MapMultiple]: When the mapped value is
2708 `lambda', set reg[RRR] to the map index.
2709 (ccl_driver) [CCL_MapSingle]: When the mapped value is found, set
2710 reg[RRR] to 0. Otherwise, set it to -1.
2711
9244a058
GM
27122000-02-25 Gerd Moellmann <gerd@gnu.org>
2713
2df636f4 2714 * emacs.c (main): Remove code snippet commented out with `//'.
9244a058 2715
f43d79c1
GM
27162000-02-25 Richard M. Stallman <rms@caffeine.ai.mit.edu>
2717
2718 * fileio.c (Ffile_symlink_p): If result starts with a `/'
2719 and contains a `:', prepend `/:'.
2720
2721 * window.c (select_window_1): If selected_window is nil,
2722 don't "swap out" the buffer's point.
2723 (Fset_window_configuration): Set selected_window to nil
2724 before calling Fselect_window.
2725 (unshow_buffer): Don't set point in buffer from window's point
2726 if another more recently selected window also shows the buffer.
2727
bed0c171
GM
27282000-02-25 Gerd Moellmann <gerd@gnu.org>
2729
449c3c52
GM
2730 * keyboard.c (recursive_edit_1): Cancel busy-cursor.
2731
f5b58615
GM
2732 * xfns.c (inhibit_busy_cursor, busy_count): Removed.
2733 (Fx_show_busy_cursor, Fx_hide_busy_cursor): Removed.
2734 (busy_cursor_atimer, busy_cursor_shown_p, Vbusy_cursor_delay): New
2735 variables.
2736 (DEFAULT_BUSY_CURSOR_DELAY): New define.
2737 (start_busy_cursor, cancel_busy_cursor, show_busy_cursor)
2738 (hide_busy_cursor): New functions.
2739 (syms_of_xfns): DEFVAR_LISP Vbusy_cursor_delay.
2740
2741 * minibuf.c (read_minibuf): Cancel busy-cursor.
2742
2743 * keyboard.c (command_loop_1): Call start_busy_cursor before
2744 Fcommand_execute and cancel_busy_cursor after it.
2745 (timer_check): Remove busy-cursor code.
2746 (Fread_key_sequence, Fread_key_sequence_vector): Start/cancel busy
2747 cursor timer.
2748
2749 * process.c (wait_reading_process_input): Remove busy-cursor code.
2750
2751 * eval.c (Fsignal): Call cancel_busy_cursor instead of
2752 Fx_hide_busy_cursor.
2753
2754 * dispextern.h (Fx_show_busy_cursor, Fx_hide_busy_cursor):
2755 Remove prototyoes.
2756 (start_busy_cursor, cancel_busy_cursor): Add prototypes.
2757
2758 * lisp.h (Fx_hide_busy_cursor): Remove prototype.
2759
2760 * xterm.c (XTread_socket): Remove busy-cursor code.
2761
4eb8436f
GM
2762 * dispnew.c (flush_stdout) [GLYPH_DEBUG]: New function.
2763 (build_frame_matrix_from_leaf_window): Put code handling
2764 glyph row's not being a slice of a frame row in #if 0.
2765 (sync_window_with_frame_matrix_rows): New function.
2766 (frame_row_to_window): New function.
2767 (mirror_line_dance): Handle copies between windows.
2768
3cb65b0e
GM
2769 * lread.c (Fload): Use `xfree' instead of `free'.
2770 (init_obarray): Use `xmalloc' instead of `malloc'.
2771
bed0c171
GM
2772 * window.c (Fset_window_buffer): Set WINDOW to the window
2773 after decoding.
2add4349
GM
2774 (coordinates_in_window): Take frame's internal border width
2775 into account.
bed0c171 2776
42088c12
GM
27772000-02-24 Gerd Moellmann <gerd@gnu.org>
2778
2779 * xterm.c (x_display_and_set_cursor): Display cursor of
2780 non-selected windows depending on the setting of
2781 cursor_in_non_selected_windows.
2782
2783 * xdisp.c (cursor_in_non_selected_windows): New variable.
2784 (syms_of_xdisp): DEFVAR_BOOL it.
2785
d1e103b2
GM
27862000-02-23 Gerd Moellmann <gerd@gnu.org>
2787
723e779c
GM
2788 * data.c (Fstring_to_number): If number is greater than what
2789 fits into an integer, return a float.
2790
d1e103b2
GM
2791 * eval.c (specbind): Remove references to
2792 keyword_symbols_constant_flag.
2793
2794 * data.c (keyword_symbols_constant_flag): Removed.
2795 (Fmakunbound, set_internal, syms_of_data): Remove references to
2796 keyword_symbols_constant_flag.
2797
2798 * bytecode.c (Fbyte_code): Remove keyword_symbols_constant_flag.
2799
214f877f
KH
28002000-02-23 Kenichi Handa <handa@etl.go.jp>
2801
2802 * syntax.c (multibyte_syntax_as_symbol): New variable.
2803 (syms_of_syntax): Declare it as a Lisp variable.
2804 (SYNTAX_WITH_MULTIBYTE_CHECK): New macro.
2805 (scan_lists): If both sexpflag and multibyte_syntax_as_symbol are
2806 nonzero, treat all multibyte characters as symbol.
42088c12 2807 (init_syntax_once): Give syntax `word' to all multibyte
214f877f
KH
2808 characters.
2809
130adcb7
EZ
28102000-02-22 Eli Zaretskii <eliz@is.elta.co.il>
2811
3cb65b0e 2812 * frame.c (Fdelete_frame): Don't let echo_area_window remain on
130adcb7
EZ
2813 a deleted frame.
2814
17cbbf95
GM
28152000-02-21 Gerd Moellmann <gerd@gnu.org>
2816
2817 * frame.c (Fmouse_position): GCPRO retval instead of x and y.
2818
2819 * xfns.c (x_window_to_frame, x_any_window_to_frame)
2820 (x_non_menubar_window_to_frame): Check the busy-cursor window.
2821
beb0bc36
DL
28222000-02-21 Dave Love <fx@gnu.org>
2823
2824 * frame.c (Vmouse_position_function): New variable.
2825 (Fmouse_position): Use it.
2826 (syms_of_frame): Install it.
2827
2828 * charset.c (find_charset_in_str): Fix use of `c' instead of `c1'.
2829
1d92afcd
GM
28302000-02-20 Gerd Moellmann <gerd@gnu.org>
2831
2832 * fileio.c (Finsert_file_contents): Unbind the binding of
2833 standard-output done by temp_output_buffer_setup.
329eed9f
GM
2834
2835 * eval.c (funcall_lambda): Don't bind Qmocklisp_arguments unless
2836 Vmocklisp_arguments is nil. Inline Fcar and Fcdr.
2837 (specbind, unbind_to): Handle most common case of non-constant
2838 symbol with trivial value specially.
2839
2840 * bytecode.c (Fbyte_code) <Bvarset>: Inline most common case.
2841
2d06696f
RS
28422000-02-20 Richard M. Stallman <rms@caffeine.ai.mit.edu>
2843
2844 * data.c (Fmake_variable_buffer_local): Doc fix.
2845 Init found_for_buffer to 0.
2846 (Fmake_variable_frame_local): If the variable has already
2847 been buffer-local, set the check_frame field.
2848
1d4311c3
EZ
28492000-02-20 Eli Zaretskii <eliz@is.elta.co.il>
2850
2851 * msdos.c (IT_write_glyphs): Allocate a larger screen_buf as data
2852 produced for CODING_MODE_LAST_BLOCK requires.
2853
2dc95ddd
DL
28542000-02-18 Dave Love <fx@gnu.org>
2855
2856 * keyboard.c (echo_keystrokes): Remove declaration.
2857 (Vecho_keystrokes) New variable.
2858 (read_char, record_menu_key, read_key_sequence): Use it to allow
2859 use of float value.
2860 (syms_of_keyboard): Change Vecho_keystrokes declaration.
2861
2862 * lread.c: Undef feature selection macros before defining.
2863
f0930f35
GM
28642000-02-18 Gerd Moellmann <gerd@gnu.org>
2865
2866 * data.c (let_shadows_buffer_binding_p): Ignore specbindings
2867 for symbols other than the symbol in question.
2868
e3d4de90
DL
28692000-02-17 Dave Love <fx@gnu.org>
2870
2871 * s/sol2.h (C_DEBUG_SWITCH): Define to allow optimization.
2872
0b378936
GM
28732000-02-17 Gerd Moellmann <gerd@gnu.org>
2874
d621caf7
GM
2875 * emacs.c (main): Use #if GC_MARK_STACK instead of #ifdef.
2876
0b378936
GM
2877 * alloc.c (enum mem_type): Compile unconditionally.
2878
3b451f74
EZ
28792000-02-17 Eli Zaretskii <eliz@is.elta.co.il>
2880
2881 * xfaces.c (tty_defined_color): Don't return faulire indication
2882 for unspecified-fg and unspecified-bg pseudo-colors.
2883
10689a01
GM
28842000-02-17 Gerd Moellmann <gerd@gnu.org>
2885
1216f5e4
GM
2886 * alloc.c (mark_object): Don't mark symbol names in pure space.
2887 (gc_sweep): Don't unmark symbol names in pure space.
2888
2889 * lisp.h (GC_USE_GCPROS_AS_BEFORE, GC_MAKE_GCPROS_NOOPS)
2890 (GC_MARK_STACK_CHECK_GCPROS, GC_USE_GCPROS_CHECK_ZOMBIES)
2891 [GC_MARK_STACK]: New defines.
2892 (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5, UNGCPRO)
2893 [GC_MARK_STACK == GC_MAKE_GCPROS_NOOPS]: Define as no-ops.
2894
2895 * emacs.c (main) [GC_MARK_STACK]: Initialize stack_base.
2896
2897 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use
2898 allocate_buffer instead of xmalloc.
2899
2900 * alloc.c (toplevel): Include setjmp.h.
2901 (PURE_POINTER_P): New define.
2902 (enum mem_type) [GC_MARK_STACK]: New enumeration.
2903 (Vdead) [GC_MARK_STACK]: New variable.
2904 (lisp_malloc): Add parameter TYPE, call mem_insert if
2905 GC_MARK_STACK is defined.
2906 (allocate_buffer): New function.
2907 (lisp_free) [GC_MARK_STACK]: Call mem_delete.
2908 (free_float) [GC_MARK_STACK]: Set type to Vdead.
2909 (free_cons) [GC_MARK_STACK]: Set car to Vdead.
2910 (stack_base, mem_root, mem_z) [GC_MARK_STACK]: New variables.
2911 (MEM_NIL) [GC_MARK_STACK]: New define.
2912 (struct mem_node) [GC_MARK_STACK]: New structure.
2913 (mem_init, mem_find, mem_insert, mem_delete, mem_insert_fixup)
2914 (mem_delete_fixup, mem_rotate_left, mem_rotate_right)
2915 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
2916 (live_misc_p, live_vector_p, live_buffer_p, mark_memory)
2917 (mark_stack) [GC_MARK_STACK]: New functions.
2918 (Fgarbage_collect) [GC_MARK_STACK]: Call mark_stack.
2919 (clear_marks): Removed.
2920 (gc_sweep): Set free conses' car, free floats' type, free
2921 symbols' function to Vdead. Use lisp_free to free buffers.
2922 (init_alloc_once): Initialize Vdead.
2923 (survives_gc_p): Return non-zero for pure objects.
2924
2925 * alloc.c: Add comments throughout the file.
2926
2503c8b1
GM
2927 * atimer.c (stop_other_atimers): Don't call cancel_atimer because
2928 that unblocks alarms.
2929
8389e1e2
GM
2930 * alloc.c, bytecode.c, data.c, dispnew.c, ecrt0.c, editfns.c,
2931 emacs.c, floatfns.c, fns.c, lread.c, print.c, config.in, lisp.h,
2932 Makefile.in: Remove `LISP_FLOAT_TYPE' and `standalone'.
2933
10689a01
GM
2934 * frame.c (make_frame): Set frame initiallly to `garbaged'.
2935
bfc17d18
KH
29362000-02-17 Kenichi Handa <handa@etl.go.jp>
2937
4a09dee0
KH
2938 * xdisp.c (decode_mode_spec_coding): Delete superfluous code to
2939 avoid infinite error signaling. Allocate sufficient memory for
2940 eol_str in the case that eoltype is Lisp_Int.
bfc17d18 2941
2b927d02
SM
29422000-02-17 Stefan Monnier <monnier@cs.yale.edu>
2943
2944 * syntax.c (Fforward_comment): Undo the previous change, since cc-mode
2945 depends on the previous behavior.
2946
b49cb764
GM
29472000-02-16 Gerd Moellmann <gerd@gnu.org>
2948
2949 * sysdep.c (vfork) [!HAVE_VFORK]: Removed.
2950
99e95407
GM
29512000-02-15 Gerd Moellmann <gerd@gnu.org>
2952
2953 * s/freebsd.h (BROKEN_PTY_READ_AFTER_EAGAIN): Define.
2954
2955 * process.c (send_process) [BROKEN_PTY_READ_AFTER_EAGAIN]:
b49cb764 2956 Workaround for FreeBSD bug. Clear output queue after EAGAIN in
99e95407
GM
2957 write(2).
2958
6ffd3cf7
RS
29592000-02-15 Richard M. Stallman <rms@gnu.org>
2960
2961 * data.c (set_internal): Don't make variable buffer-local
2962 if within a let-binding for the same buffer.
2963 (let_shadows_buffer_binding_p): New function.
2964
2965 * eval.c (specbind): For buffer-local value,
2966 record the current buffer also.
2967 (unbind_to): Cope with that change.
2968
cad53475
GM
29692000-02-15 Gerd Moellmann <gerd@gnu.org>
2970
2971 * window.c (Fsave_window_excursion): Doc fix.
2972
1aa963c8
SM
29732000-02-15 Stefan Monnier <monnier@cs.yale.edu>
2974
2975 * syntax.c (back_comment): Make sure we only consider comment-starters
2976 of the relevant style and return -1 in case of a failure to find the
2977 beginning of the comment.
2978 (Fforward_comment): If back_comment fails, go back to the position just
2979 after the comment-end.
2980 (scan_lists): Add comment describing a very minor bug.
2981
b9b84fd3
SM
29822000-02-14 Stefan Monnier <monnier@cs.yale.edu>
2983
2984 * minibuf.c (Ftry_completion, Fall_completions): Add a reference to
2985 `completion-regexp-list' in the docstring.
2986
3a28db80
DL
29872000-02-14 Dave Love <fx@gnu.org>
2988
2989 * xfaces.c (tty_defined_color): Declare color_idx unsigned long.
2990
fb4a568d
SM
29912000-02-14 Stefan Monnier <monnier@cs.yale.edu>
2992
2993 * regex.h (RE_SYNTAX_EMACS): Add RE_CHAR_CLASSES and RE_INTERVALS
2994 to Emacs' syntax. Also fix the comment about set/not-set meanings
2995 since Emacs syntax is not the value 0 any more.
2996 * search.c (compile_pattern_1): Remove RE_CHAR_CLASSES from the syntax
2997 since it's now part of RE_SYNTAX_EMACS.
2998
1063ebb5
DL
29992000-02-12 Dave Love <fx@gnu.org>
3000
3001 * frame.h (SELECTED_FRAME): Use NULL, not 0 to avoid warnings on
3002 Alpha.
3003
fb07a302
GM
30042000-02-12 Gerd Moellmann <gerd@gnu.org>
3005
3006 * xdisp.c (syms_of_xdisp): Doc fix for scroll-conservatively.
3007
aaf2320c
DL
30082000-02-12 Dave Love <fx@gnu.org>
3009
3010 * s/aix3-2.h, s/osf-1.h: Define C_DEBUG_SWITCH for non-gcc.
3011
3012 * s/ux4800.h, s/umips.h, s/umax.h, s/sol2.h, s/sco5.h, s/rtu.h:
fb07a302
GM
3013 * s/ptx4.h, s/umax.h, s/dgux.h, s/bsd4-2.h, s/bsd4-3.h:
3014 * s/hpux.h: Don't define HAVE_VFORK.
aaf2320c
DL
3015
3016 * s/gnu-linux.h: Don't define HAVE_VFORK or HAVE_SYS_SIGLIST.
3017
3018 * s/nextstep.h: Don't define HAVE_ALLOCA.
3019
3020 * config.in: Add vfork bits.
3021
eedf8bde
GM
30222000-02-12 Gerd Moellmann <gerd@gnu.org>
3023
3024 * process.c (Fopen_network_stream) [POLL_FOR_INPUT]: Register
3025 unwind function to undo the effect of stopping atimers.
3026
3027 * keyboard.c (bind_polling_period): Stop all timers except
3028 poll_timer.
3029
3030 * atimer.c (stopped_atimers): New variable.
3031 (stop_other_atimers, run_all_atimers, unwind_stop_other_atimers):
3032 New functions.
3033
3034 * atimer.h (stop_other_atimers, run_all_atimers)
3035 (unwind_stop_other_atimers): Add function prototypes.
3036
3037 * s/hpux10.h (HAVE_XRMSETDATABASE): Define if not already defined.
3038
8476c2f8
KR
30392000-02-11 Ken Raeburn <raeburn@gnu.org>
3040
3041 * Makefile.in (LIBX): Link in tiff library before jpeg, since tiff
3042 library may depend on jpeg.
3043 (atimer.o): Depends on atimer.c.
3044
0e85e4a3
KH
30452000-02-11 Kenichi Handa <handa@etl.go.jp>
3046
3047 * insdel.c (del_range_1): Call update_compositions.
3048 (del_range_both): Call update_compositions just once..
3049
97fa0cc8
DL
30502000-02-10 Dave Love <fx@gnu.org>
3051
3052 * xfns.c (create_frame_xic): Fix initialization of automatic
3053 aggregates for pcc.
3054
25566a3c
KH
30552000-02-09 Kenichi Handa <handa@etl.go.jp>
3056
3057 * ccl.c (CCL_MAKE_CHAR): New macro.
3058 (ccl_driver) <CCL_TranslateCharacter>: Check the validity of
3059 registers by CCL_MAKE_CHAR before calling translate_char.
3060 <CCL_TranslateCharacterConstTbl> Likewise.
3061
69da54ba
DL
30622000-02-08 Dave Love <fx@gnu.org>
3063
3064 * lread.c (__EXTENSIONS__): Define.
3065
f7136ee8
GM
30662000-02-08 Gerd Moellmann <gerd@gnu.org>
3067
3068 * puresize.h (BASE_PURESIZE): Increase to 650000.
3069
7768790b
EZ
30702000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
3071
3072 * msdos.c (XMenuActivate): Turn off the cursor after displaying
3073 the help message.
3074
38fd211b
EZ
30752000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
3076
3077 * s/msdos.h (INTERNAL_TERMINAL): Add capabilities se, so, us, ue,
3078 md, mh, mb, mr, and me to the fake termcap entry.
3079
66e4690f
KR
30802000-02-06 Ken Raeburn <raeburn@gnu.org>
3081
3082 * sound.c (sound_cleanup): Don't call device close routine if the
3083 function pointer is null.
3084
a75dfea0
AI
30852000-02-06 Andrew Innes <andrewi@gnu.org>
3086
3087 * dispextern.h: Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM,
3088 around image definitions and prototypes.
3089 (gamma_correct) [WINDOWSNT]: New prototype.
3090
3091 * w32term.c (x_make_frame_visible): Replace call to
3092 input_poll_signal with poll_for_input.
3093
3094 * window.c [WINDOWSNT]: Include w32term.h.
3095
3096 * xdisp.c [WINDOWSNT]: Include w32term.h.
3097
3098 * makefile.nt: Add dependencies on w32gui.h.
3099 (OBJ1): Include atimer.obj.
3100 ($(BLD)\atimer.obj): New dependency rule.
3101
3102 * w32.c (sigmask): New function (does nothing).
3103 (sigunblock): Ditto.
3104
3105 * frame.c [WINDOWSNT]: Include w32term.h.
3106
3107 * w32gui.h (struct W32FontStruct): Add ascent and descent slots.
3108
3109 * lread.c (syms_of_lread): Fix literal newlines.
3110
3111 * emacs.c (USAGE): Split into USAGE1 and USAGE2, to work-around
3112 the string constant limit (2048 bytes) in MSVC.
3113 (main): Ditto.
3114
59ddecde
GM
31152000-02-05 INOUE Seiichiro <inoue@ainet.or.jp>
3116
3117 * xterm.c (x_display_and_set_cursor) [HAVE_X_I18N]: Set pre-edit
3118 area.
3119 (x_display_cursor) [HAVE_X_I18N]: Don't set it here.
3120 (XTread_socket) [HAVE_X_I18N]: <KeyPress, KeyRelease>: Don't
3121 dispatch the event.
3122
07590973
DL
31232000-02-04 Dave Love <fx@gnu.org>
3124
3125 * fileio.c: Remove some unused vars.
3126 (_GNU_SOURCE): Define (for euidaccess).
3127
3128 * lread.c (_XOPEN_SOURCE): Declare (for ftello).
3129
3130 * minibuf.c (read_minibuf_noninteractive): Remove undeclared
3131 gcpro1, gcpro2.
3132 (read_minibuf): Deal with allow_props correctly.
3133
649351f9
EZ
31342000-02-03 Eli Zaretskii <eliz@is.elta.co.il>
3135
3136 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Enlarge to 60000.
3137
66e4690f 31382000-02-03 Ken Raeburn <raeburn@gnu.org>
f1b9c7c1
KR
3139
3140 * search.c (compile_pattern): If a cache entry has a nil regexp,
3141 fill in that entry instead of clobbering a previously cached
3142 string regexp.
3143
66e4690f 31442000-02-02 Ken Raeburn <raeburn@gnu.org>
15c9cf81
KR
3145
3146 * puresize.h (BASE_PURESIZE): Increase to 610000.
3147
d240a249
GM
31482000-02-02 Gerd Moellmann <gerd@gnu.org>
3149
3150 * frame.c (Fframe_parameters): Add GCPRO because tty_color_name
3151 can GC.
3152
ca91fb26
KH
31532000-02-02 Kenichi Handa <handa@etl.go.jp>
3154
25660570
KH
3155 * ccl.c (ccl_driver) <CCL_WriteExprRegister>: Set jump_address
3156 instead of incrementing ic directly.
3157 <CCL_WriteExprConst> Likewise.
3158 <ccl_set_expr>: Set ic to jump_address.
3159
ca91fb26
KH
3160 * fileio.c (e_write): Fix the handling of
3161 CODING_FINISH_INSUFFICIENT_SRC.
3162
2ede9689
DL
31632000-02-01 Dave Love <fx@gnu.org>
3164
3165 * editfns.c (Fpropertize): Doc fix.
3166
3167 * process.c (Fstart_process): Doc fix.
3168
3169 * eval.c: Fix various doc strings not to duplicate information
3170 from help-manyarg-func-alist.
3171
3172 * window.c (Fset_window_margins): Don't make interactive. Doc
3173 fix.
3174
3175 * doc.c (Vhelp_manyarg_func_alist): New variable.
3176 (Fdocumentation): Use it.
3177 (syms_of_doc): Define it.
3178
b6680a0e
GM
31792000-01-31 Gerd Moellmann <gerd@gnu.org>
3180
2cb750ba
GM
3181 * xterm.c (xim_open_dpy): Remove unused local variable.
3182
74e9213b
GM
3183 * emacs.c (USAGE): Use term `display options' instead of `X
3184 options'.
3185
3186 * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: New function.
3187 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
3188
b6680a0e
GM
3189 * fns.c (sweep_weak_table): New function.
3190 (sweep_weak_hash_tables): Use it. Keep on marking until there
3191 is no more change.
3192
994c5afe
GM
31932000-01-30 Gerd Moellmann <gerd@gnu.org>
3194
3195 * xterm.c (x_delete_display): Update next_noop_dpyinfo to ensure
3196 that XTread_socket does not crash by trying to call XNoOp on a
3197 closed display.
3198
f00276e3
JR
31992000-01-30 Jason Rumney <jasonr@gnu.org>
3200
3201 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
3202 Change selected_frame to SELECTED_FRAME ().
3203 (w32_console_mouse_position): Remove #ifndef MULE from around
3204 `insist' parameter.
3205
3206 * makefile.nt: Remove dosfns.obj.
3207
3208 * term.c (term_init) [WINDOWSNT]: Initialize TN_max_colors.
3209
3210 * w32fns.c (w32_defined_color): Check for valid frame before
3211 applying gamma correction. Eliminate dependency on frame elsewhere.
3212 (w32_load_system_font): Switch FIXED_PITCH and VARIABLE_PITCH.
3213 (w32_to_x_font): Use resx and resy not height_in and width_in.
3214 (x_to_w32_font): Doc fix.
3215 (xlfd_strip_height): New function to strip and return font height.
3216 (w32_font_match): Compare height separately from rest of xlfd
3217 spec, using xlfd_strip_height.
3218
3219 * w32term.c (w32_term_init): Swap resx and height_in, resy and
3220 width_in. Use w32_defined_color in place of defined_color.
3221
3222 * w32faces.c: Merge more of DOS and X specifics in preparation for
3223 merge with xfaces.c.
3224 (defined_color): Remove FIXME comment.
3225 (tty_color_name): Provide w32-specific function.
3226 (realize_tty_face): Handle FACE_TTY_DEFAULT*_COLOR specially.
3227
3228 * w32console.c (turn_on_face, turn_off_face): Removed.
3229 (w32_face_attributes): New function.
3230 (Global_variables): Reduce scope where possible.
3231 (clear_frame, ins_del_lines, scroll_line): Use char_attr_normal as
3232 fill attribute.
3233 (hl_mode): Don't modify text attributes.
3234 (write_glyphs): Don't do anything if len <= 0. Use
3235 w32_face_attributes to get attributes for drawing. Write
3236 terminating codes using char_attr_normal.
3237 (reset_terminal_modes, set_terminal_modes): Turn off highlight.
3238 (update_begin, update_end): Likewise.
3239 (vga_stdcolor_name): New function.
3240 (initialize_w32_display): Remove char_attr_reverse and char_attr.
3241 (Fset_screen_color): Remove char_attr_reverse.
3242
b08e8bb2
GM
32432000-01-29 Gerd Moellmann <gerd@gnu.org>
3244
3245 * xfns.c (xic_set_preeditarea): Take window parameter and
3246 window-relative pixel-positions.
3247
3248 * xterm.c (x_display_cursor): Set XIC pre-edit area only if window
3249 is its frame's selected window.
3250 (xim_instantiate_callback): Likewise.
3251
3252 * xfns.c (x_create_im): Removed.
3253 (DEFAULT_STYLE, DEFAULT_FONT): Removed.
3254 (supported_xim_styles): Renamed from supported_styles.
3255 (best_xim_style): Renamed from best_style.
3256 (create_frame_xic): Renamed from xic_create_frame.
3257 (free_frame_xic): Renamed from xic_destroy_frame.
3258
32592000-01-29 INOUE Seiichiro <inoue@ainet.or.jp>
3260
3261 * xterm.c (XTread_socket) [HAVE_X_I18N]: If event is for none of
3262 our frames, call XFilterEvent with 2nd parameter `None'.
3263 (XTread_socket) <KeyPress> [HAVE_X_I18N]: Handle XmbLookupString
3264 returning XBufferOverflow.
3265 (XTread_socket) <ConfigureNotify> [HAVE_X_I18N]: Set XIC status
3266 area.
3267 (x_display_cursor) [HAVE_X_I18N]: Set XIC pre-edit area.
3268 (x_new_fontset) [HAVE_X_I18N]: Create XIC status area fontset.
3269 (xim_destroy_callback, xim_open_dpy, xim_instantiate_callback)
3270 (xim_initialize, xim_close)
3271 [HAVE_X_I18N && HAVE_X11R6]: New functions.
3272 (x_destroy_window) [HAVE_X_I18N]: Call xic_destroy_frame.
3273 (x_term_init) [HAVE_X_I18N]: Call xim_initialize.
3274 (x_delete_display) [HAVE_X_I18N]: Call xim_close.
3275
3276 * xterm.h (struct x_display_info) [HAVE_X_I18N]: Add members `xim'
3277 and `xim_styles'.
3278 (struct x_output) [HAVE_X_I18N]: Remove member `xim', add
3279 `xic_style' and `xic_xfs'.
3280 (FRAME_MENUBAR_HEIGHT, FRAME_X_XIM, FRAME_X_XIM_STYLES)
3281 (FRAME_XIC_STYLE, FRAME_XIC_FONTSET): New macros.
3282 (FRAME_XIM): Removed.
3283
3284 * xfns.c (supported_styles): New variable.
3285 (DEFAULT_STYLE, DEFAULT_FONT): New macros
3286 (xic_create_xfontset, best_style, xic_create_frame)
3287 (xic_destroy_frame, xic_set_preeditarea, xic_set_statusarea)
3288 (xic_set_xfontset): New functions.
3289
142e109c
DL
32902000-01-28 Dave Love <fx@gnu.org>
3291
3292 * s/irix6-5.h: Revert last change after change to irix5-0.h.
3293
3294 * m/iris4d.h (C_SWITCH_MACHINE): Don't use -G0.
3295
b02786f9
GM
32962000-01-28 Gerd Moellmann <gerd@gnu.org>
3297
d060bc9f
GM
3298 * buffer.c (Fother_buffer): Don't call Fset_buffer_major_mode
3299 for *scratch* if it already existed.
3300
b02786f9
GM
3301 * emacs.c (USAGE): New macro.
3302 (main): Use it to display usage information.
3303
2c52d7e4
EZ
33042000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
3305
3306 Support for the menu-help feature:
3307
3308 * msdos.h: Change prototypes of XMenuAddSelection and
3309 XMenuActivate.
3310
3311 * msdos.c (IT_clear_end_of_line): Print the extent of the cleared
3312 part of the line to the termscript file.
3313 (IT_clear_to_end): Clear the entire line, not just its beginning.
3314 (menu_help_message, prev_menu_help_message): New variables.
3315 (IT_menu_make_room): Make room for the help_text member.
3316 (IT_menu_display): New argument disp_help; all callers changed.
3317 If disp_help is non-zero, store the help text of the active menu
3318 item in menu_help_message.
3319 (XMenuAddPane): Initialize the help_text member to NULL.
3320 (XMenuAddSelection): New argument help_text. Store it in the
3321 XMenu structure.
3322 (XMenuActivate): New argument help_callback. If the value of
3323 menu_help_message has changed since the last time, display the
3324 menu help message text while waiting for the mouse to move. Clear
3325 the echo area before exiting.
3326 (XMenuDestroy): Free the help_text member.
3327
ffe0bcd1
GM
33282000-01-27 Gerd Moellmann <gerd@gnu.org>
3329
3330 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT]: Pass help to
3331 XMenuAddSelection. Pass help callback to XMenuActivate.
3332 (menu_help_callback) [!USE_X_TOOLKIT]: New function.
3333
50dbd23f
EZ
33342000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
3335
3336 * atimer.c (start_atimer) [!HAVE_SETITIMER]: Use EMACS_SET_SECS
3337 and EMACS_SET_USECS.
3338
f5941bf8
GM
33392000-01-26 Dave Love <fx@gnu.org>
3340
6c67ddee
DL
3341 * editfns.c (Fchar_after, Fchar_before): Doc fix.
3342
f5941bf8
GM
3343 * bytecode.c (Fbyte_code): Use {BEFORE,AFTER}_POTENTIAL_GC where
3344 an error may be signalled.
3345
9e49c990
GM
33462000-01-26 Gerd Moellmann <gerd@gnu.org>
3347
fc3cb460
GM
3348 * s/irix6-5.h [__GNUC__ && __GNUC_MINOR__ >= 95]: Undef
3349 LD_SWITCH_SYSTEM inherited from irix5-0.h.
3350
9e49c990
GM
3351 * bytecode.c (Fbyte_code) [BYTE_CODE_SAFE]: Fix typo.
3352
d0c037d8
GM
33532000-01-25 Gerd Moellmann <gerd@gnu.org>
3354
3355 * charset.c (Fstring): If there is a multibyte char among
3356 the args, always return a multibyte string.
3357
e12489f9
GM
33582000-01-25 Gerd Moellmann <gerd@gnu.org>
3359
3360 * sysdep.c (sys_select): Turn atimers off and on instead of
3361 recording and restoring old alarm handler
3362
3363 * process.c (toplevel): Include atimer.h.
3364 (create_process_1): Rewritten.
3365 (create_process): Use atimers instead of alarm.
3366 (wait_reading_process_input) [hpux]: Turn atimers off instead
3367 of turning off SIGALRM.
3368 (wait_reading_process_input): Turn off atimers instead off
3369 calling stop_polling.
3370
3371 * emacs.c (main): Call init_atimer.
3372
3373 * keyboard.c (toplevel): Include systime.h and atimer.h.
3374 (polling_for_input): Removed because unused.
3375 (input_poll_signal) [POLL_FOR_INPUT]: Removed.
3376 (poll_timer): New variable.
3377 (poll_for_input, poll_for_input_1): New functions.
3378 (start_polling, stop_polling): Rewritten.
3379
3380 * keyboard.h (polling_for_input): Removed.
3381
3382 * atimer.h, atimer.c: New files.
3383
3384 * Makefile.in (obj): Add atimer.o.
3385 (atimer.o): New target.
3386
3387 * blockinput.h (pending_atimers): Add extern declaration.
3388 (UNBLOCK_INPUT): Rewritten. Handle pending atimers.
3389
3390 * lisp.h (popup_activated_flag): Add extern declaration.
3391
3392 * xmenu.c (popup_activated_flag): Make externally visible.
3393 (popup_activate_callback) [USE_MOTIF]: Increment
3394 popup_activated_flag.
3395 (popup_deactivate_callback) [USE_MOTIF]: Decrement it.
3396
3397 * xterm.c (toplevel): Include atimer.h.
3398 (toolkit_scroll_bar_interaction): New variable.
3399 (Fxt_process_timeouts): Removed.
3400 (x_process_timeouts): New function.
3401 (xt_action_hook): Clear toolkit_scroll_bar_interaction.
3402 (x_send_scroll_bar_event): Set toolkit_scroll_bar_interaction.
3403 (x_make_frame_visible): Call poll_for_input_1 instead of
3404 input_poll_signal. Don't call alarm.
3405 (x_initialize): Install timer calling x_process_timeouts.
3406
1e5279b9
DL
34072000-01-24 Dave Love <fx@gnu.org>
3408
6c67ddee 3409 * s/irix5-0.h: Don't set LD_SWITCH_SYSTEM -- we use unexelf now.
1e5279b9
DL
3410 Don't use -cckr -- apparently not now necessary.
3411
edf6aeb8
EZ
34122000-01-24 Eli Zaretskii <eliz@is.elta.co.il>
3413
3414 * msdos.c (IT_menu_display): Truncate long menu lines at the right
3415 screen boundary.
3416
9badad41
JR
34172000-01-23 Jason Rumney <jasonr@gnu.org>
3418
3419 * w32fns.c (w32_defined_color): Apply gamma correction before
3420 trying to map to the palette.
3421 (w32_wnd_proc) [WM_ERASE_BACKGROUND]: Pass device context of frame
3422 to w32_clear_rect.
3423
3424 * w32term.c (w32_fill_rect): Do not try to deal with NULL hdc
3425 here. Callers changed to always pass real device context.
3426 (w32_draw_bitmap): Likewise.
3427 (w32_get_glyph_overhangs): Likewise.
3428 (w32_draw_box_rect): Make use of s->hdc rather than getting a new
3429 one.
3430 (w32_set_vertical_scroll_bar): Pass correct HWND parameters to
3431 pfnSetScrollInfo and SetScrollRange.
3432 (x_get_char_face_and_encoding): Don't turn iso8859-1 characters
3433 back into MULE characters after decoding them.
3434 (x_get_glyph_face_and_encoding): Likewise.
3435 (w32_per_char_metric): Use GetCharExtentPoint32W as fallback when
3436 GetCharABCWidthsW fails, since this is defined on Windows 9x.
3437 (x_produce_glyphs): Calculate per char metrics for a character
3438 that we know exists in default font when font_not_found_p is true.
3439
63bd786b
JR
34402000-01-22 Jason Rumney <jasonr@gnu.org>
3441
3442 * makefile.nt (intervals.obj, composite.obj): New modules.
3443 (composite.h): Added as dependency where appropriate.
3444
3445 * w32gui.h (XGCValue): New struct for emulating X GCs.
3446
3447 * w32term.h (XCharStruct): New struct for emulating X.
3448
3449 * w32console.c (turn_on_face, turn_off_face): New functions.
3450 (change_line_highlight): New prototype for new redisplay.
3451 (write_glyphs): Support multibyte text. Support faces.
3452
3453 * w32faces.c: Complete rewrite for new redisplay based on new
3454 xfaces.c.
3455
3456 * w32fns.c: Use SELECTED_FRAME macro in place of selected_frame
3457 throughout. struct frame * in place of FRAME_PTR.
3458 Skeleton support for images, toolbars, tooltips from xfns.c.
3459 (Fx_create_frame): Use system default for default scroll bar
3460 width.
3461 (w32_get_arg): Renamed from x_get_arg.
3462 (Fx_file_dialog): New function.
3463 (w32_list_fonts): Check cache before asking system.
3464 (Vw32_enable_synthesized_fonts): New variable.
3465 (Vw32_enable_italics): Obsolete, removed.
3466
3467 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
3468 Use SELECTED_FRAME macro.
3469
3470 * w32menu.c: Add skeleton support for help strings on menus.
3471 (add_menu_item): Native checkbox and radio support added, but not
3472 yet enabled due to bugs.
3473 (push_menu_item): Add parameters type, selection and help.
3474 Callers updated.
3475 Formatting changes to reduce unnecessary diffs with xmenu.c.
3476
3477 * w32select.c (Fw32_set_clipboard_data): Update call to
3478 find_charset_in_str.
3479
3480 * w32term.c: Complete rewrite for new redisplay based on new
3481 xterm.c with necessary sections merged back in from old w32term.c.
3482
6ffd3cf7 34832000-01-21 Richard M. Stallman <rms@gnu.org>
b50c9214
RS
3484
3485 * data.c (set_internal): Further fix in same criterion.
3486
6ffd3cf7 34872000-01-20 Richard M. Stallman <rms@gnu.org>
8cc95642
RS
3488
3489 * data.c (set_internal): Fix the criteria for whether
3490 to swap out the old cached binding.
3491
60af03f1
DL
34922000-01-19 Dave Love <fx@gnu.org>
3493
3494 * lread.c: (syms_of_lread) [user-init-file]: Doc change.
3495
f9be074f
KH
34962000-01-18 Kenichi Handa <handa@etl.go.jp>
3497
3498 * regex.c (re_compile_fastmap): While checking a range table for
3499 `charset', skip flag bits for a character class correctly.
3500
52b8dbf9
GM
35012000-01-17 Gerd Moellmann <gerd@gnu.org>
3502
d36100c9
GM
3503 * m/news-risc.h (LD_SWITCH_MACHINE): Define differently for GCC.
3504
52b8dbf9
GM
3505 * xfns.c (x_window): Call lw_create_widget with new parameter
3506 list.
3507
3508 * widget.c (EmacsFrameSetCharSize): Change size of children first
3509 because of problems with main window geometry management under
3510 Lesstif.
3511
3512 * xmenu.c (enum menu_item_idx): New enumeration replacing defines
3513 MENU_ITEMS_ITEM_.*.
3514 (MENU_ITEMS_ITEM_HELP): New enumerator.
3515 (push_menu_item): Add parameter HELP. Record help in menu_items.
3516 (single_menu_item, single_submenu, list_of_items): Call
3517 push_menu_item with new parameter.
3518 (single_submenu): Set help string in widget value.
3519 (menu_highlight_callback): New function.
3520 (set_frame_menubar): Call lw_create_widget with new
3521 parameter list.
3522 (xmenu_show, xdialog_show): Ditto.
3523
3139018f
GM
35242000-01-13 Gerd Moellmann <gerd@gnu.org>
3525
3526 * sound.c (Fplay_sound): Improve doc string.
3527
83c8f461
RS
35282000-01-11 Richard M. Stallman <rms@gnu.org>
3529
3530 * lisp.h (set_internal): Enter the new arg.
3531
3532 * eval.c (specbind): Record buffer-local variables specially,
3533 indicating which buffer's binding was saved.
3534 (unbind_to): Restore buffer-local variables specially
3535 in the proper buffer.
3536
3537 * data.c (set_internal): New arg BUF.
3538
3539 * eval.c (specbind, unbind_to): Pass new arg to set_internal.
3540 * data.c (Fset): Pass new arg to set_internal.
3541 * bytecode.c (Fbyte_code): Pass new arg to set_internal.
3542
1fab1775
GM
35432000-01-11 Gerd Moellmann <gerd@gnu.org>
3544
3545 * .gdbinit: Adapt to new strings. Add xbacktrace, xreload,
3546 xprintsym.
3547
83c8f461 35482000-01-11 Richard M. Stallman <rms@gnu.org>
6f59462e
RS
3549
3550 * minibuf.c (Ftry_completion): Doc fix.
3551
7a85e4df
GM
35522000-01-11 Gerd Moellmann <gerd@gnu.org>
3553
3554 * keyboard.c (Fclear_this_command_keys): Clear recent_keys
3555 vector, too.
3556
a970dae4
AS
35572000-01-11 Andreas Schwab <schwab@suse.de>
3558
3559 * coding.c (code_convert_region): Initialize total_skip.
3560
c65d14ee
DL
35612000-01-08 Dave Love <fx@gnu.org>
3562
3563 * eval.c (Fuser_variable_p): Check customizability too.
3564
834938d2
GM
35652000-01-07 Gerd Moellmann <gerd@gnu.org>
3566
3567 * minibuf.c (Fcompleting_read): Doc fix.
3568
e0303cd6
GM
35692000-01-05 Gerd Moellmann <gerd@gnu.org>
3570
8a26744b
GM
3571 * s/freebsd.h (C_SWITCH_SYSTEM): Add -I /usr/local/include and
3572 -L /usr/local/lib.
3573
e0303cd6
GM
3574 * xfns.c (x_create_im): New function to set IM and IC of a frame.
3575 Check that input style is supported before trying to create an
3576 IC for it.
3577 (x_window): Call x_create_im.
3578
2e471eb5
GM
35792000-01-04 Gerd Moellmann <gerd@gnu.org>
3580
560a7bd2
GM
3581 * xfns.c (current_gif_memory_src): New variable.
3582 (gif_load): Record the address of the current memory source
3583 in current_gif_memory_src.
3584 (gif_read_from_memory): Use current_gif_memory_src.
3585
f9ee84a3
GM
3586 * systime.h (EMACS_GET_TIME, EMACS_ADD_TIME, EMACS_SUB_TIME): Give
3587 macros statement form.
3588
d1299cde
GM
3589 * sound.c (struct sound): Renamed from struct sound_file.
3590 (struct sound): Add members `data' and `header_size'.
3591 (enum sound_attr): Add SOUND_DATA.
3592 (current_sound, current_sound_device): Variables renamed from
3593 sound_file and sound_device.
3594 (parse_sound): Parse :data.
3595 (parse_sound): Handle sound data in strings.
3596 (find_sound_type): Function renamed from find_sound_file_type.
3597 (wav_init, au_init): Fail if sound's header_size is smaller than
3598 needed header size.
3599 (wav_play, au_play): Play sounds from string data.
3600
2e471eb5
GM
3601 * puresize.h (BASE_PURE_SIZE): Increase to 600000.
3602
3603 * lisp.h: Add prototype for allocate_string_data.
3604
3605 * alloc.c (Fgarbage_collect): Return number of live and free
3606 strings.
3607
3608 * alloc.c (mark_buffer): Remove code in #if 0.
3609 (gc_sweep): Ditto.
3610 (UNMARK_BALANCE_INTERVALS): Give the macro statement form.
3611 (strings_consed): New variable.
3612 (allocate_string): Set it.
3613 (syms_of_alloc): Add DEFVAR_INT for strings_consed.
3614 (Fmemory_use_counts): Return strings_consed. Use Flist.
3615
3616 * alloc.c: General cleanup in comments etc. Remove conditional
3617 compilation for `standalone'.
3618
3619 * lisp.h (struct Lisp_String): Make DATA member `unsigned char *'.
3620
3621 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P):
3622 (GC_STRING_BYTES, GC_STRING_CHARS): New macros.
3623 (DONT_COPY_FLAG): Removed.
3624 (SBLOCK_SIZE, LARGE_STRING_BYTES): New macros.
3625 (struct sdata, struct sblock): New
3626 (struct string_block): Rewritten.
3627 (STRINGS_IN_STRING_BLOCK): New macro.
3628 (oldest_sblock, current_sblock, total_strings, total_free_strings)
3629 (large_sblocks, string_blocks, string_free_list): New variables.
3630 (NEXT_FREE_LISP_STRING, SDATA_OF_STRING, SDATA_SIZE): New macros.
3631 (init_strings): Rewritten.
3632 (allocate_string, allocate_string_data, compact_small_strings)
3633 (free_large_strings, sweep_strings): New functions.
3634 (STRING_BLOCK_SIZE, STRING_BLOCK_OUTSIZE)
3635 (struct string_block_head, current_string_block)
3636 (first_string_block, large_string_blocks, STRING_FULLSIZE)
3637 (STRING_PAD): Removed.
3638 (make_uninit_multibyte_string, make_pure_string): Rewritten.
3639 (Fgarbage_collect): Don't set mark bit in large strings.
3640 (mark_object): Mark strings differently. Mark symbol names
3641 differently.
3642 (survives_gc_p): Test marked strings differently.
3643 (gc_sweep): Sweep strings differently, unmark strings in
3644 symbol names.
3645 (compact_strings): Removed.
3646
42608ba8
EZ
36472000-01-04 Eli Zaretskii <eliz@is.elta.co.il>
3648
3649 * xfaces.c (syms_of_xfaces): defsubr Scolor_gray_p and
3650 Scolor_supported_p even if HAVE_X_WINDOWS is not defined.
3651
e0a09e1a
KH
36522000-01-04 Kenichi Handa <handa@etl.go.jp>
3653
dd9f0750
KH
3654 * fileio.c (Finsert_file_contents): Signal error if visiting file
3655 in a non-empty buffer.
3656
3c0f3b15 3657 * term.c (encode_terminal_code): Fix the previous change.
e0a09e1a 3658
44cd3ae5
GM
36592000-01-03 Gerd Moellmann <gerd@gnu.org>
3660
3661 * xfaces.c (syms_of_xfaces): Change Sface_color_gray_p to
3662 Scolor_gray_p, Sface_color_supported_p to Scolor_supported_p.
3663
3664 * s/hpux9.h (NO_EDITRES): Define even if HAVE_LIBXMU.
3665
c182a70f
EZ
36662000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
3667
3668 * xdisp.c (handle_single_display_prop) [HAVE_WINDOW_SYSTEM]: No
3669 need to test for MSDOS frames.
3670
24480d5b
EZ
36712000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
3672
3673 * dosfns.c (unspecified_colors): Remove.
3674 (msdos_stdcolor_idx): Use global variables unspecified_fg and
3675 unspecified_bg.
3676 (msdos_stdcolor_name): Return strings for unspecified fore- and
3677 back-ground colors.
3678
3679 * xfaces.c (Qunspecified_fg, Qunspecified_bg): Remove.
aaf2320c 3680 (syms_of_xfaces): Remove their staticpro's.
24480d5b
EZ
3681 (tty_color_name): Return Lisp strings for unspecified fore- and
3682 back-ground colors.
3683 (Finternal_set_lisp_face_attribute): Remove the special treatment
3684 for Qunspecified_{f,b}g.
3685 (realize_default_face): Replace Qunspecified_{f,b}g with a Lisp
3686 string.
3687
047f434a
GM
36882000-01-03 Gerd Moellmann <gerd@gnu.org>
3689
3690 * xdisp.c (reseat_at_next_visible_line_start): Position before
3691 newline only if ending up on a newline.
3692 (next_element_from_ellipsis): Return success. Handle case of
3693 displaying no ellipsis. Fix case of ellipsis defined in display
3694 table.
3695 (next_element_from_buffer): Return 0 if next_element_from_ellipsis
3696 returns 0.
3697
d684c676
EZ
36982000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
3699
3700 * xfaces.c (Fcolor_gray_p): Renamed from face-color-gray-p.
3701 (Fcolor_supported_p): Renamed from face-color-supported-p.
3702
5fe1d139
EZ
37032000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
3704
3705 * xfaces.c (tty_defined_color): Pass frame to tty-color-desc. The
3706 list of colors renamed to tty-defined-color-alist.
3707 (tty_color_name): Pass the frame to tty-color-by-index.
3708 (realize_tty_face): tty-color-alist is now a function which
3709 accepts the frame as argument.
3710
3711 * term.c (Ftty_display_color_p): Accept an optional argument
3712 FRAME.
3713
816be8b8
EZ
37142000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
3715
3716 * term.c (insert_glyphs): Pass glyph, not &glyph, to
3717 encode_terminal_code.
3718
b635321e
EZ
37192000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
3720
3721 * dispnew.c (mode_line_string): Support termcap frames as well.
3722
9b784e96
GM
37232000-01-01 Gerd Moellmann <gerd@gnu.org>
3724
27189709
GM
3725 * syntax.c (Fforward_word): Undo previous change.
3726
3727 * editfns.c (Fconstrain_to_field): Don't constrain if
3728 inhibit-field-text-motion is non-nil.
3729 (Fline_beginning_position): Undo previous change.
3730 (Fline_end_position): Ditto.
3731
3732 * syntax.c (Fforward_word): Notice field boundaries only if
3733 inhibit-field-text-motion is nil.
3734
3735 * lisp.h: Add extern declaration for Vinhibit_field_text_motion.
3736
3737 * editfns.c (Vinhibit_field_text_motion): New variable.
3738 (inhibit-field-text-motion): New DEFVAR_LISP.
3739 (Fline_beginning_position, Fline_end_position): Notice field
3740 boundaries only if inhibit-field-text-motion is nil.
3741
45158a91
GM
3742 * xfns.c (x_create_x_image_and_pixmap): Remove parameter FILE.
3743 All calls adjusted.
3744 (x_build_heuristic_mask): Likewise.
3745 (xbm_load_image_from_file): Change error output.
3746 (xbm_load, xpm_load, pbm_load, png_load, jpeg_load, tiff_load)
3747 (gif_load, gs_load, x_kill_gs_process): Ditto.
3748
9b784e96
GM
3749 * xfns.c (gif_load): Avoid sign extension and thus out of bounds
3750 color indices when accessing raster pixels.
63cec32f
GM
3751 (gif_image_p, png_image_p, jpeg_image_p, tiff_image_p): Allow only
3752 one of :file or :data.
3753 (enum pbm_keyword_index): Add PBM_DATA.
3754 (pbm_format): Add :data.
3755 (pbm_image_p): Allow either :file or :data.
3756 (pbm_read_file): New function.
3757 (pbm_scan_number): Rewritten to read from string.
3758 (pbm_load): Support :data.
9b784e96 3759
5ad6a5fb
GM
37601999-12-31 Gerd Moellmann <gerd@gnu.org>
3761
3762 * xfns.c: New image functions adapted to Emacs conventions.
3763 (png_load, tiff_load, jpeg_load, gif_load): Always GCPRO local
3764 variable `file'.
3765
63448a4d
WP
37661999-12-31 William M. Perry <wmperry@aventail.com>
3767
3768 * xfns.c (jpeg_format): Added the :data keyword
3769 (jpeg_image_p): JPEG is valid with :file _or_ :data
3770 (jpeg_memory_src): Defined new JPEG image source to read from a
3771 memory buffer.
3772 (jpeg_load): Pay attention to the :data keyword if specified.
3773 Instantiates a jpeg_memory_src instead of jpeg_stdio_src if
3774 found.
3775 (png_format): Added the :data keyword
3776 (png_image_p): PNG is valid with :file _or_ :data
3777 (png_read_from_memory): New PNG read function to read from a
3778 memory buffer.
3779 (png_load): Pay attention to the :data keyword if specified. Uses
3780 png_set_read_fn() instead of png_init_io() if specified.
3781 (tiff_format): Added the :data keyword for TIFF images.
3782 (tiff_image_p): TIFF is valid with :file _or_ :data
3783 (tiff_read_from_memory): Defined new TIFF I/O functions to read
3784 from a memory buffer.
3785 (tiff_load): Pay attention to the :data keyword if specified.
3786 Uses TIFFClientOpen() instead of TIFFOpen() if specified.
3787 (gif_format): Added the :data keyword
3788 (gif_image_p): GIF is valid with :file _or_ :data
3789 (gif_read_from_memory): New GIF input function to read from a
3790 memory buffer.
c65d14ee 3791 (gif_load): Pay attention to the :data keyword. Uses DGifOpen()
63448a4d
WP
3792 instead of DGifOpenFileName() if specified.
3793
c880678e
GM
37941999-12-31 Gerd Moellmann <gerd@gnu.org>
3795
3796 * xdisp.c (next_element_from_buffer): Change assertion at the end
3797 because it doesn't hold when there's an overlay string at the end
3798 from which we deliver an image.
3799
8ccb9a54
EZ
38001999-12-30 Eli Zaretskii <eliz@is.elta.co.il>
3801
3802 * msdos.c (IT_update_begin): Don't dereference members of struct
3803 window for deleted windows.
3804
12ce2351
GM
38051999-12-30 Gerd Moellmann <gerd@gnu.org>
3806
a915c648
GM
3807 * abbrev.c (Fexpand_abbrev): If expanding an abbrev which has only
3808 a hook, and the hook has a non-nil `no-self-insert' property, let
3809 the return value of the hook specify whether an expansion took
3810 place. If it returns nil, no expansion has been performed.
3811
12ce2351
GM
3812 * xterm.c (x_make_frame_visible): Wait for frame becoming visible
3813 differently.
3814
04ee4f45
EZ
38151999-12-30 Eli Zaretskii <eliz@is.elta.co.il>
3816
3817 * msdos.c (IT_write_glyphs): Track last changes to struct glyph.
3818
7f4bc0c3
EZ
38191999-12-29 Eli Zaretskii <eliz@is.elta.co.il>
3820
3821 * dispnew.c (mode_line_string): Support MS-DOS frames.
3822
dac204bc
GM
38231999-12-29 Gerd Moellmann <gerd@gnu.org>
3824
3825 * eval.c (syms_of_eval): Initialize debugger_may_continue.
3826
7b712ad8
KH
38271999-12-29 Kenichi Handa <handa@etl.go.jp>
3828
3829 * process.c (read_process_output): Fix the args CHARPOS and LENINS
3830 to signal_after_change.
3831
adb9900f
EZ
38321999-12-28 Eli Zaretskii <eliz@is.elta.co.il>
3833
41ad069b
EZ
3834 * msdos.c (dos_set_window_size) [__DJGPP__ > 1]: If the frame
3835 dimensions changed, invalidate the mouse highlight info.
3836 (disable_mouse_highlight, help_echo, previous_help_echo): New
3837 variables.
3838 (IT_set_mouse_pointer, show_mouse_face, clear_mouse_face)
3839 (fast_find_position, IT_note_mode_line_highlight)
3840 (IT_note_mouse_highlight): New functions.
3841 (IT_update_begin): If the redisplay affects the window where the
3842 mouse highlight is, clear the highlight. If the frame where the
3843 highlight was displayed was killed, invalidate the highlight
3844 info.
3845 (IT_update_end): Reset the highlight flag. Reset the mouse
3846 highlight-defer flag.
3847 (IT_frame_up_to_date): New function, if mouse highlight was
3848 deferred due to GC, do it now.
3849 (internal_terminal_init): Initialize mouse-highlight related
3850 members of the_only_x_display. Assign IT_frame_up_to_date to
3851 frame_up_to_date_hook.
3852 (dos_rawgetc): If the mouse moved, update mouse highlight. If
3853 help_echo changed value, generate a HELP_EVENT event.
3854 (syms_of_msdos): Staticpro help_echo and previous_help_echo.
3855
adb9900f
EZ
3856 * msdos.h (struct display_info): New.
3857 (struct x_output): Add the display_info member.
3858 (FRAME_X_DISPLAY_INFO): New macro.
3859
481b5054
GM
38601999-12-28 Gerd Moellmann <gerd@gnu.org>
3861
3862 * xdisp.c (try_window_id): Compute BEG_UNCHANGED and END_UNCHANGED
3863 if MODIFF > 1.
6448a6b3 3864 (dump_glyph_row): Adapt to changes in struct glyph.
481b5054
GM
3865
3866 * buffer.c (modify_overlay): Always compute unchanged info.
3867
a2882b0d
KH
38681999-12-27 Kenichi Handa <handa@etl.go.jp>
3869
3870 * dispextern.h (FACE_FROM_ID): Cast the arg ID to `unsigned'.
3871
89ba5b5f
KH
38721999-12-27 Kenichi Handa <handa@etl.go.jp>
3873
3874 The following changes are to use more bits for face IDs.
3875
3876 * lisp.h (GLYPH): Defined as `int', not `unsigned int'. Now the
3877 lowest 8 bits are single byte character code, the bits above are
3878 face ID.
481b5054 3879 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjusted for the change
89ba5b5f 3880 above.
481b5054
GM
3881 (FAST_MAKE_GLYPH, FSST_GLYPH_FACE): Likewise.
3882 (GLYPH_MASK_REV_DIR, GLYPH_MASK_PADDING): Macros deleted.
89ba5b5f
KH
3883
3884 * charset.h (CHAR_BYTES): Use ((1 << CHARACTERBITS) - 1) instead
3885 of GLYPH_MASK_CHAR.
3886
3887 * charset.c (char_bytes): Use ((1 << CHARACTERBITS) - 1) instead
3888 of GLYPH_MASK_CHAR.
3889
3890 * dispextern.h (struct glyph): Make face_id and padding_p the top
3891 level members. Change members in union `u'.
3892 (GLYPH_EQUAL_P): Check also members face_id and padding_p.
3893 (GLYPH_CHAR_AND_FACE_EQUAL_P): New macro.
3894 (SET_CHAR_GLYPH): Adjusted for the change of struct glyph.
3895 (CHAR_GLYPH_PADDING_P): Likewise.
3896 (GLYPH_FROM_CHAR_GLYPH): Likewise. Always return -1 for multibyte
3897 characters.
3898
481b5054 3899 * dispnew.c (line_hash_code, direct_output_for_insert): Adjusted
89ba5b5f
KH
3900 for the change of struct glyph.
3901 (line_draw_cost): Adjusted for the change of
3902 GLYPH_FROM_CHAR_GLYPH.
3903 (count_match): Use macro GLYPH_CHAR_AND_FACE_EQUAL_P.
3904
3905 * term.c (encode_terminal_code): Adjusted for the change of struct
3906 glyph and GLYPH_FROM_CHAR_GLYPH.
481b5054 3907 (write_glyphs, insert_glyphs, append_glyph): Adjusted for the
89ba5b5f
KH
3908 change of struct glyph.
3909
3910 * xdisp.c: All codes adjusted for the change of struct glyph.
3911
3912 * xterm.c: All codes adjusted for the change of struct glyph.
3913
5bcd116c
KH
39141999-12-27 Kenichi Handa <handa@etl.go.jp>
3915
3916 * composite.h (struct composition): Change the order of declaring
3917 members to reduce the byte size of the structure.
3918
f21b06b7
GM
39191999-12-25 Gerd Moellmann <gerd@gnu.org>
3920
3921 * search.c (looking_at_1): Reset immediate_quit before modifying
3922 global data.
3923
e36557c9
KH
39241999-12-24 Kenichi Handa <handa@etl.go.jp>
3925
3926 * process.c (read_process_output): Fix the arg FROM to
3927 update_compositions.
3928
83c8f461 39291999-12-22 Richard M. Stallman <rms@gnu.org>
f7c9e039
RS
3930
3931 * search.c (Freplace_match): For nonliteral replacement in buffer,
3932 construct all the new text first, then insert all at once.
3933
0b863bd9
DL
39341999-12-22 Dave Love <fx@gnu.org>
3935
3936 * xfns.c (Fx_show_tip): Gcpro `timeout' too.
3937
6d8e8ef3
GM
39381999-12-22 Gerd Moellmann <gerd@gnu.org>
3939
28d7281d
GM
3940 * xfns.c (Fx_create_frame): Move x_default_parameter calls that
3941 lead to size changes to after the X window has been created.
3942
e22ef6eb 3943 * xfaces.c (realize_x_face): Don't use uninitialized local
6d8e8ef3
GM
3944 variable in xassert.
3945
8affcced
KH
39461999-12-22 Kenichi Handa <handa@etl.go.jp>
3947
3948 * xfaces.c (face_color_supported_p): Check by tty_defined_color
6d8e8ef3 3949 only when the frame is not for a window system.
8affcced 3950
f2be1146
GM
39511999-12-22 Gerd Moellmann <gerd@gnu.org>
3952
deca1348
GM
3953 * buffer.c (Fset_buffer_multibyte): Arrange for a thorough
3954 redisplay after changing the multibyteness of a buffer.
3955
f2be1146
GM
3956 * xterm.c (XTread_socket): At the beginning of the loop, pass the
3957 frame's X window to XFilterEvent instead of None because that's
3958 the X window for which the IC was created. This makes dead
3959 accents work when the pointer is not in Emacs' frame.
3960 (XTread_socket) <KeyPress>: Don't call XFilterEvent here.
3961
a744a2ec
DL
39621999-12-20 Dave Love <fx@gnu.org>
3963
3964 * xfns.c (Fx_show_tip): Add missing UNGCPRO.
3965
9e6985ed
GM
39661999-12-19 Gerd Moellmann <gerd@gnu.org>
3967
3968 * eval.c (debugger_may_continue): New variable.
3969 (syms_of_eval): Add a DEFVAR_BOOL for it.
3970 (call_debugger): Bind it.
3971
3b620731
EZ
39721999-12-19 Eli Zaretskii <eliz@is.elta.co.il>
3973
3974 * msdos.c (IT_set_face): Don't swap face colors when highlight or
3975 fp->tty_reverse_p is set, unless the computed colors are identical
3976 to frame colors. Print both original and computed colors to
3977 termscript file.
3978 (IT_write_glyphs): Track the changes in handling of composite
3979 characters.
3980 (IT_set_frame_parameters): Don't set frame colors from
3981 unspecified-fg and unspecified-bg pseudo-colors.
3982
0f9a51c4
DL
39831999-12-17 Dave Love <fx@gnu.org>
3984
3985 * data.c (Fkeywordp): New function.
3986 (syms_of_data): Install it.
3987
363e4e42
EZ
39881999-12-16 Eli Zaretskii <eliz@is.elta.co.il>
3989
3990 * xfaces.c (tty_defined_color): Fix last change.
3991
cfad01b4
GM
39921999-12-15 Gerd Moellmann <gerd@gnu.org>
3993
3994 * xdisp.c (redisplay_window) <optional new window start>: Check
3995 that window start is in [BEGV..ZV].
3996
f9d2fdc4
EZ
39971999-12-15 Eli Zaretskii <eliz@is.elta.co.il>
3998
3999 * dispextern.h (FACE_TTY_DEFAULT_FG_COLOR)
4000 (FACE_TTY_DEFAULT_BG_COLOR): New macros.
4001
4002 * xfaces.c (Qunspecified_fg, Qunspecified_bg): New variables.
4003 (syms_of_xfaces): Initialize and staticpro them.
4004 (tty_defined_color): If the color name is unspecified-fg or
4005 unspecified-bg, return FACE_TTY_DEFAULT_FG_COLOR and
4006 FACE_TTY_DEFAULT_BG_COLOR, respectively, as the pixel value.
4007 (tty_color_name): If the color pixel value is either
4008 FACE_TTY_DEFAULT_FG_COLOR or FACE_TTY_DEFAULT_BG_COLOR, return
4009 Qunspecified_fg or Qunspecified_bg, respectively.
4010 (Finternal_set_lisp_face_attribute): Allow values Qunspecified_fg
4011 and Qunspecified_bg for foreground and background colors.
4012 (realize_default_face): If the foreground and background colors
4013 are not specified, default to Qunspecified_fg and Qunspecified_bg.
4014 (realize_tty_face): By default, set the face colors to
4015 FACE_TTY_DEFAULT_FG_COLOR and FACE_TTY_DEFAULT_BG_COLOR.
4016 [MSDOS]: Handle FACE_TTY_DEFAULT_FG_COLOR and
4017 FACE_TTY_DEFAULT_BG_COLOR when face colors are not defined.
4018 Reverse the colors if the default colors were reversed.
4019
4020 * dispnew.c (init_display): Initialize the frame pixels of the
4021 initial frame to FACE_TTY_DEFAULT_FG_COLOR and
4022 FACE_TTY_DEFAULT_BG_COLOR.
4023
4024 * term.c (turn_on_face): If the default fore- and background
4025 colors are reversed, enter inverse video mode. Don't send color
4026 escape sequences for unspecified foreground and background colors.
4027 (turn_off_face): Handle unspecified-fg and unspecified-bg colors.
4028
4029 * dosfns.c (unspecified_colors): New variable.
4030 (msdos_stdcolor_idx): Handle unspecified-fg and unspecified-bg
4031 color names, return FACE_TTY_DEFAULT_FG_COLOR and
4032 FACE_TTY_DEFAULT_BG_COLOR, respectively.
4033 (msdos_stdcolor_name): Handle FACE_TTY_DEFAULT_FG_COLOR and
4034 FACE_TTY_DEFAULT_BG_COLOR, return Qunspecified_fg and
4035 Qunspecified_bg, respectively.
4036
4037 * msdos.c (IT_set_face): Support FACE_TTY_DEFAULT_FG_COLOR and
4038 FACE_TTY_DEFAULT_BG_COLOR as pixel values.
4039
e19539f1
KH
40401999-12-15 Kenichi Handa <handa@etl.go.jp>
4041
4042 * coding.c (code_convert_region): Fix the secoding arg to
4043 update_compositions.
4044
5ec14d3c
KH
40451999-12-15 Kenichi Handa <handa@etl.go.jp>
4046
4047 The following changes are for the new composition mechanism. We
4048 have deleted `composition' charset and composite characters,
4049 instead introduced a special text property `composition'.
4050
4051 * Makefile.in (INTERVAL_SRC): Include composite.h.
4052 (INTERVAL_OBJ): Include composite.o.
4053 (SOME_MACHINE_OBJECTS): Include composite.o.
4054 (casefiddle.o) (dispnew.o) (indent.o) (process.o) (search.o)
4055 (syntax.o) (window.o) (xdisp.o) (xfaces.o) (xterm.o) (print.o):
4056 Depend on composite.h.
4057 (doc.o): Depend on charset.h.
4058 (keyboard.o) (textprop.o) (intervals.o): Depend on INTERVAL_SRC.
4059 (composite.o): New target.
4060
4061 * alloc.c (Fmake_string): Adjusted for the change of CHAR_STRING.
4062
4063 * callproc.c (Fcall_process): Call code_convert_string to encode
4064 arguments. Use CODING_REQUIRE_DECODING to check if the process
4065 output should be decoded.
4066
4067 * casefiddle.c: Include composite.h.
4068 (casify_object): Use MAX_MULTIBYTE_LENGTH to allocate memory for a
4069 multibyte character. Adjusted for the change of CHAR_STRING.
4070 (casify_region): Likewise. Call update_compositions.
4071
4072 * category.h (CATEGORY_SET): Delete codes for a composite
4073 character.
4074
4075 * category.c (word_boundary_p): Delete codes for a composite
4076 character.
4077 (Fmake_category_table): New function.
4078 (syms_of_category): Defsubr it.
4079
4080 * ccl.c (CCL_WRITE_CHAR): Adjusted for the change of CHAR_STRING.
4081 (ccl_driver): Delete codes for a composite character.
4082
4083 * charset.h: In this entry, just `Modified' means that codes for a
4084 composite character is deleted.
4085 (LEADING_CODE_COMPOSITION) (CHARSET_COMPOSITION)
4086 (charset_composition) (MIN_CHAR_COMPOSITION)
4087 (MAX_CHAR_COMPOSITION) (GENERIC_COMPOSITION_CHAR)
4088 (COMPOSITE_CHAR_P) (MAKE_COMPOSITE_CHAR) (COMPOSITE_CHAR_ID)
4089 (PARSE_COMPOSITE_SEQ) (PARSE_CHARACTER_SEQ): Deleted.
4090 (MAX_CHAR) (CHARSET_VALID_P) (CHARSET_DEFINED_P) (CHARSET_AT)
4091 (FIRST_CHARSET_AT) (SAME_CHARSET_P) (MAKE_NON_ASCII_CHAR)
4092 (PARSE_MULTIBYTE_SEQ) (SPLIT_NON_ASCII_CHAR) (CHAR_PRINTABLE_P):
4093 Modified.
4094 (SPLIT_STRING): Call split_string, not split_non_ascii_string.
4095 (CHAR_STRING): Delete WORKBUF argument. Call char_string, not
4096 non_ascii_char_to_string.
4097 (STRING_CHAR): Call string_to_char, not string_to_non_ascii_char.
4098 (STRING_CHAR_AND_LENGTH): Likewise.
4099 (FETCH_CHAR_ADVANCE): New macro.
4100 (MAX_COMPONENT_COUNT) (struct cmpchar_info): Deleted.
4101 (MAX_MULTIBYTE_LENGTH): New macro.
4102 (MAX_LENGTH_OF_MULTI_BYTE_FORM): Deleted.
4103 (find_charset_in_str): Argument adjusted.
4104 (CHAR_LEN): Modified.
4105
4106 * charset.c: In this entry, just `Modified' means that codes for a
4107 composite character is deleted.
4108 (Qcomposition) (leading_code_composition)
4109 (charset_composition) (min_composite_char) (cmpchar_table)
4110 (cmpchar_table_size) (n_cmpchars): Deleted.
4111 (SPLIT_COMPOSITE_SEQ): Deleted.
4112 (SPLIT_MULTIBYTE_SEQ): Modified.
4113 (char_to_string): Renamed from non_ascii_char_to_string.
4114 Modified.
4115 (string_to_char): Renamed from string_to_non_ascii_char.
4116 (split_string): Renamed from split_non_ascii_string.
4117 (char_printable_p) (Fsplit_char)
4118 (Ffind_charset_region) (Ffind_charset_string) (char_valid_p)
4119 (char_bytes) (Fchar_width) (strwidth): Modified.
4120 (find_charset_in_str): Argument CMPCHARP deleted. Modified.
4121 (Fstring): Adjusted for the change of CHAR_STRING. Modified.
4122 (hash_string) (CMPCHAR_HASH_TABLE_SIZE) (cmpchar_hash_table)
4123 (CMPCHAR_HASH_SIZE) (CMPCHAR_HASH_USED) (CMPCHAR_HASH_CMPCHAR_ID)
4124 (str_cmpchar_id) (cmpchar_component) (Fcmpcharp)
4125 (Fcmpchar_component) (Fcmpchar_cmp_rule) (Fcmpchar_cmp_rule_p)
4126 (Fcmpchar_cmp_count): Deleted.
4127 (Fcompose_string): Implemented by Emacs Lisp in composite.el.
4128 (init_charset_once): Modified.
4129 (syms_of_charset): Modified.
4130
4131 * cmds.c (internal_self_insert): Adjusted for the change of
4132 CHAR_STRING.
4133
4134 * coding.h (emacs_code_class_type): Delete the member
4135 EMACS_leading_code_composition.
4136 (COMPOSING_NO) (COMPOSING_WITH_RULE_HEAD) (COMPOSING_NO_RULE_HEAD)
4137 (COMPOSING_WITH_RULE_TAIL) (COMPOSING_NO_RULE_TAIL)
4138 (COMPOSING_WITH_RULE_RULE) (COMPOSING_HEAD_P)
4139 (COMPOSING_WITH_RULE_P): Macros deleted.
4140 (COMPOSITION_DATA_SIZE) (COMPOSITION_DATA_MAX_BUNCH_LENGTH): New
4141 macros.
4142 (struct composition_data): New structure.
4143 (CODING_FINISH_INSUFFICIENT_CMP): New macro.
4144 (struct coding_system): New members composition_rule_follows,
4145 cmp_data, cmp_data_start, cmp_data_index.
4146 (coding_save_composition) (coding_free_composition_data)
4147 (coding_adjust_composition_offset): Extern them.
4148
4149 * coding.c: Include composite.h.
4150 (DECODE_CHARACTER_ASCII): Don't handle composition here.
4151 (DECODE_CHARACTER_DIMENSION1): Likewise. Don't check the validity
4152 of multibyte code here.
4153 (DECODE_CHARACTER_DIMENSION2): Likewise.
4154 (detect_coding_emacs_mule): Change the case label from
4155 EMACS_leading_code_composition to 0x80.
4156 (detect_coding_iso2022): Handle new composition sequence.
4157 (DECODE_ISO_CHARACTER): Likewise.
4158 (check_composing_code): Deleted.
4159 (coding_allocate_composition_data): New function.
4160 (CODING_ADD_COMPOSITION_START) (CODING_ADD_COMPOSITION_END)
4161 (CODING_ADD_COMPOSITION_COMPONENT) (DECODE_COMPOSITION_START)
4162 (DECODE_COMPOSITION_END) (DECODE_COMPOSITION_RULE): New macros.
4163 (decode_coding_iso2022): Handle new composition sequence.
4164 (ENCODE_ISO_CHARACTER): Don't check composition here.
4165 (ENCODE_COMPOSITION_RULE) (ENCODE_COMPOSITION_START): New macros.
4166 (ENCODE_COMPOSITION_NO_RULE_START)
4167 (ENCODE_COMPOSITION_WITH_RULE_START): Deleted.
4168 (ENCODE_COMPOSITION_END): Handle new composition sequence.
4169 (ENCODE_COMPOSITION_FAKE_START): New macro.
4170 (encode_coding_iso2022): Handle new composition sequence.
4171 (ENCODE_SJIS_BIG5_CHARACTER): Delete superfluous `;' at the tail.
4172 (encode_coding_sjis_big5): Ignore composition.
4173 (setup_coding_system): Initialize new members of struct
4174 coding_system. Enable composition only when the coding system has
4175 `composition' property t.
4176 (coding_free_composition_data) (coding_adjust_composition_offset)
4177 (coding_save_composition) (coding_restore_composition): New
4178 functions.
4179 (code_convert_region): Call coding_save_composition for encoding
4180 and coding_allocate_composition_data for decoding. Don't skip
4181 ASCII characters if we handle composition on encoding. Call
4182 signal_after_change with Check_BORDER.
4183 (code_convert_string): Call coding_save_composition for encoding
4184 and coding_allocate_composition_data for decoding. Don't skip
4185 ASCII characters if we handle composition on encoding.
4186 (code_convert_string1): Set Vlast_coding_system_used after calling
4187 code_convert_string.
4188 (code_convert_string_norecord): Disable composition.
4189 (Fset_terminal_coding_system_internal): Likewise.
4190 (Fset_safe_terminal_coding_system_internal): Likewise.
4191 (Fset_keyboard_coding_system_internal): Likewise.
4192 (init_coding_once): Set emacs_code_class[0x80] to
4193 EMACS_invalid_code.
4194
4195 * composite.h: New file.
4196
4197 * composite.c: New file.
4198
4199 * data.c (Faref): Delete codes for a composite character..
4200 (Faset): Likewise. Adjusted for the change of CHAR_STRING.
4201
4202 * dispextern.h (enum glyph_type): New member COMPOSITE_GLYPH.
4203 (struct glyph): Add new sub-structure cmp to the union `u'.
4204 (enum display_element_type): New member IT_COMPOSITION.
4205 (enum prop_idx): New member COMPOSITION_PROP_IDX.
4206 (struct it): New members cmp_id, cmp_len.
4207
4208 * dispnew.c (direct_output_forward_char): Check point moving into
4209 or out of a composition. If so, give up direct method.
4210
4211 * doprnt.c (doprnt1): Adjusted for the change of CHAR_STRING.
4212
4213 * editfns.c (Fchar_to_string): Adjusted for the change of
4214 CHAR_STRING.
4215 (general_insert_function): Likewise.
4216 (Finsert_char): Likewise.
4217 (Fsubst_char_in_region): Likewise. Call update_compositions.
4218 (Ftranslate_region): Call update_compositions.
4219 (Ftranspose_regions): Call update_compositions.
4220
4221 * emacs.c (main): Call syms_of_composite.
4222
4223 * fileio.c (Fsubstitute_in_file_name): Adjusted for the change of
4224 CHAR_STRING.
4225 (Finsert_file_contents): Set Vlast_coding_system_used before
4226 calling signal_after_change. Call update_compositions if some
4227 texts are inserted..
4228 (Fwrite_region): Adjusted for the change of a_write and e_write.
4229 (a_write): Argument changed. Work based on character position,
4230 not byte position.
4231 (e_write): Argument changed. Handle new way of composition.
4232
4233 * fns.c (Flength): The length of char-table is MAX_CHAR.
4234 (concat): Adjusted for the change of CHAR_STRING.
4235 (Ffillarray): Adjusted for the change of CHAR_STRING.
4236 (Fset_char_table_default): Delete codes for a composite character.
4237 (hash_put): Return hash index.
4238
4239 * fontset.h (struct font_info): New member vertical_centering.
4240 (Vvertical_centering_font_regexp): Extern it.
4241
4242 * fontset.c (Vvertical_centering_font_regexp): New variable.
4243 (syms_of_fontset): Declare it as a Lisp variable and initialize.
4244 Set Vignore_relative_composition to nil.
4245 (fs_load_font): Initialize `vertical_centering' of struct
4246 font_info.
4247
4248 * indent.c (check_composition): New function.
4249 (MULTIBYTE_BYTES_WIDTH): Call STRING_CHAR_AND_LENGTH with
4250 MAX_MULTIBYTE_LENGTH, not MAX_LENGTH_OF_MULTI_BYTE_FORM.
4251 (current_column_1): Handle new way of composition.
4252 (Fmove_to_column): Likewise.
4253 (compute_motion): Likewise.
4254
4255 * insdel.c (copy_text): Adjusted for the change of CHAR_STRING.
4256 (insert_char): Likewise.
4257 (insert): Call update_compositions.
4258 (insert_and_inherit): Likewise.
4259 (insert_before_markers): Likewise.
4260 (insert_before_markers_and_inherit): Likewise.
4261 (insert_from_string): Likewise.
4262 (insert_from_string_before_markers): Likewise.
4263 (insert_from_buffer): Likewise.
4264 (replace_range): Likewise.
4265 (count_combining_composition): Deleted.
4266 (count_combining_before): Delete codes for a composite character.
4267 (count_combining_after): Likewise.
4268 (del_range_1): Call update_compositions.
4269 (del_range_byte): Likewise.
4270 (del_range_both): Likewise.
4271 (Fcombine_after_change_execute): Likewise.
4272
4273 * intervals.h: Include composite.h.
4274 (get_property_and_range): Extern it.
4275 (Vtext_property_default_nonsticky): Extern it.
4276
4277 * intervals.c (adjust_intervals_for_insertion): To check stickines
4278 of properties, pay attention to text-property-default-nonsticky.
4279 (merge_properties_sticky): Likewise.
4280 (get_property_and_range): New function.
4281
4282 * keyboard.c (Vdisable_point_adjustment): New variable.
4283 (Vglobal_disable_point_adjustment): New variable.
4284 (syms_of_keyboard): Declare them as Lisp variables.
4285 (command_loop_1): Check them and call adjust_point_for_property if
4286 necessary.
4287 (adjust_point_for_property): New function.
4288
4289 * keymap.c (push_key_description): Adjusted for the change of
4290 CHAR_STRING.
4291 (Ftext_char_description): Likewise.
4292
4293 * lisp.h (QCtest, QCweakness, Qequal): Extern them.
4294 (hash_put): Adjusted for the change of the definition.
4295 (signal_after_change): Likewise.
4296 (check_point_in_composition): Extern it.
4297
4298 * lread.c (readchar): Adjusted for the change of CHAR_STRING.
4299 Delete a code that handles an invalid too-long multibyte sequence
4300 because we are now sure that we never encounter with such a
4301 sequence.
4302 (read_multibyte): Use macro MAX_MULTIBYTE_LENGTH, not
4303 MAX_LENGTH_OF_MULTI_BYTE_FORM.
4304 (init_obarray): Likewise.
4305 (read1): Likewise. Adjusted for the change of CHAR_STRING.
4306
4307 * print.c (printchar): Adjusted for the change of CHAR_STRING.
4308
4309 * process.c: Include composite.h.
4310 (read_process_output): Call update_compositions.
4311
4312 * regex.c (regex_compile): Adjusted for the change of CHAR_STRING.
4313
4314 * search.c (search_buffer): Adjusted for the change of CHAR_STRING.
4315
4316 * syntax.h (SYNTAX_ENTRY_INT): Delete codes for a composite
4317 character.
4318
4319 * term.c (encode_terminal_code): Delete codes for a composite
4320 character. Adjusted for the change of CHAR_STRING.
4321 (produce_glyphs): When called, it->what can be IT_COMPOSITION.
4322 Delete codes for a composite character.
4323
4324 * textprop.c (Vtext_property_default_nonsticky): New variable
4325 (syms_of_textprop): Declare it as a Lisp variable.
4326
4327 * window.c (Frecenter): Clear all caches of compositions.
4328
4329 * xdisp.c (it_props): Add an entry for composition.
4330 (face_before_or_after_it_pos): For composition, check face of a
4331 character after the composition.
4332 (handle_composition_prop): New function.
4333 (get_next_display_element): Adjusted for the change of
4334 CHAR_STRING.
4335 (set_iterator_to_next): Handle the case that it->method ==
4336 next_element_from_composition.
4337 (next_element_from_composition): New function.
4338 (message_dolog): Adjusted for the change of CHAR_STRING.
4339 (set_message_1): Likewise.
4340 (check_point_in_composition): New function.
4341 (reconsider_clip_changes): If point moved into or out of
4342 composition, set b->clip_changed to 1 to force updating of the
4343 screen.
4344 (disp_char_vector): Delete codes for a composite character.
4345 (decode_mode_spec_coding): Adjusted for the change of CHAR_STRING.
4346
4347 * xfaces.c (choose_face_fontset_font): Delete codes for a
4348 composite character.
4349 (realize_x_face): Likewise. Change a place to set local variable
4350 `f' to avoid a bug of GCC 2.8.1 on Solaris.
4351
4352 * xfns.c: Include intervals.h.
4353 (syms_of_xfns): Make `display' property nonsticky by default.
4354
4355 * xselect.c (lisp_data_to_selection_data): Adjusted for the change
4356 for find_charset_in_str.
4357
4358 * xterm.h (struct x_output): Change member font_baseline to
4359 baseline_offset.
4360
4361 * xterm.c (x_append_glyph): Setup members of struct glyph properly
4362 for composition.
4363 (x_append_composite_glyph): New function.
4364 (VCENTER_BASELINE_OFFSET): New macro.
4365 (x_produce_glyphs): If it->what == IT_COMPOSITION, setup members
4366 of struct it for the composition. Cache pixel offsets in the
4367 struct composition. Delete codes for a composite character.
4368 Handle Vignore_relative_composition in composition code.
4369 (struct glyph_string): Delete member cmpcharp, add new member cmp.
4370 (x_set_cursor_gc): Check s->cmp, not s->cmpcharp.
4371 (x_compute_glyph_string_overhangs): Likewise.
4372 (x_get_glyph_overhangs): Delete codes for a composite character.
4373 (x_right_overwritten): Check s->cmp, not s->cmpcharp.
4374 (x_draw_glyph_string_background): Likewise. Delete codes for
4375 checking s->gidx for a composition.
4376 (x_draw_glyph_string_foreground): Delete code for a composite
4377 character.
4378 (x_draw_composite_glyph_string_foreground): New function.
4379 (x_draw_glyph_string_box): Check s->cmp, not s->cmpcharp.
4380 (x_draw_glyph_string): Handle the case of COMPOSITE_GLYPH.
4381 (struct work): Deleted.
4382 (x_fill_composite_glyph_string): Argument changed. Mostly
4383 rewritten for that.
4384 (x_fill_glyph_string): Don't check CHARSET_COMPOSITION.
4385 (BUILD_CHAR_GLYPH_STRINGS): Don't handle composition here.
4386 (BUILD_COMPOSITE_GLYPH_STRING): New macro.
4387 (BUILD_GLYPH_STRINGS): For composition, call
4388 BUILD_COMPOSITE_GLYPH_STRING.
4389 (x_new_font): Initialize f->output_data.x->baseline_offset, not
4390 f->output_data.x->font_baseline.
4391
c3c60f13
GM
43921999-12-14 Gerd Moellmann <gerd@gnu.org>
4393
4394 * xterm.c (show_mouse_face): Don't use updated_area, use
4395 TEXT_AREA.
4396
83c8f461 43971999-12-12 Richard M. Stallman <rms@gnu.org>
c838eb57
RS
4398
4399 * minibuf.c (Fall_completions): Doc fix.
4400
83c8f461 44011999-12-12 Richard M. Stallman <rms@gnu.org>
c838eb57
RS
4402
4403 * macros.c (Fstart_kbd_macro): Handle case where last-kbd-macro
4404 has been changed by the Lisp code.
4405
d8eccf12
GM
44061999-12-12 Gerd Moellmann <gerd@gnu.org>
4407
4408 * xfns.c: Indentation fixes.
4409
ae56feae
SM
44101999-12-10 Stefan Monnier <monnier@cs.yale.edu>
4411
4412 * xterm.c (x_initialize): Only setup xaw3d_* if they've been declared.
4413
dfa1c6ae
GM
44141999-12-10 Gerd Moellmann <gerd@gnu.org>
4415
4416 * frame.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
4417 [!MSDOS && !WINDOWSNT && !macintosh]: Moved here from xterm.h.
4418
4419 * xterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Moved
4420 to frame.h.
4421
ec18280f
SM
44221999-12-09 Stefan Monnier <monnier@cs.yale.edu>
4423
4424 * keyboard.c (Qratio): New symbol.
4425 (scroll_bar_parts): Add `Qratio' to it.
4426 (syms_of_keyboard): Init `Qratio'.
4427 * termhooks.h (scroll_bar_part): Add `scroll_bar_move_ratio'.
4428 * xterm.c (#includes): Allow compilation with only Xaw.
4429 (xaw3d_arrow_scroll, xaw3d_pick_top): New variables.
4430 (xt_action_hook): Replace XAW3D by XAW.
4431 (xaw3d_jump_callback): Renamed to xaw_jump_callback.
4432 (xaw_jump_callback): Renamed from xaw3d_jump_callback.
4433 Determine epsilon dynamically and don't try to be too clever.
4434 (xaw3d_scroll_callback): Renamed to xaw_scroll_callback.
4435 (xaw_scroll_callback): Renamed from xaw3d_scroll_callback.
4436 Handle both Xaw3d with arrow-scrollbars and with Xaw-style
4437 scrollbar (using `ratio').
4438 (x_create_toolkit_scroll_bar): Try to detect which style of Xaw3d
4439 scrollbar we have so as to set it up more optimally and to fix
4440 xaw3d_arrow_scroll and xaw3d_pick_top.
4441 (x_set_toolkit_scroll_bar_thumb): Try to maintain 2 spare pixels at the
4442 bottom of the Xaw3d scrollbar, to work around its tendency to refuse
4443 shrinking the thumb. Also make sure that `XawScrollbarSetThumb'
4444 is not ignored, using a major gross hack.
4445 (x_initialize): Init default values for xaw3d_arrow_scroll and
4446 xaw3d_pick_top.
4447
83b6d970
DL
44481999-12-09 Dave Love <fx@gnu.org>
4449
4450 * frame.h: (PIX_TYPE) [! HAVE_X_WINDOWS]: Define PIX_TYPE.
4451
3648c842
GM
44521999-12-08 Gerd Moellmann <gerd@gnu.org>
4453
4454 * eval.c: Remove conditional compilation on `standalone'.
4455 (call_debugger): When entering the debugger while redisplaying,
4456 reset redisplaying_p, and go back to the top-level if the debugger
4457 returns.
4458
05e71564
GM
44591999-12-07 Gerd Moellmann <gerd@gnu.org>
4460
4461 * xfaces.c (x_set_menu_resources_from_menu_face): Make sure
4462 basic faces are realized before trying to use face `menu'.
4463
4464 * window.c (delete_window): Block input for the time window
4465 matrices are being changed.
4466
b46cd536
DL
44671999-12-07 Dave Love <fx@gnu.org>
4468
4469 * lread.c (Fintern_soft): Fix newlines in doc string.
4470
96acb1f7
GM
44711999-12-07 Alexandre Oliva <oliva@dcc.unicamp.br>
4472
4473 * unexelf.c: Include <syms.h>, not <sym.h> on IRIX. Removed
4474 duplicate definition of ElfW.
4475 (find_section): Copied from unexsgi.c.
4476 (unexec): Use find_section. Adjust whitespace. Initialize
4477 new_data2_offset based on old_data, not sbss (this fixes a bug on
4478 IRIX6). Change #ifdef __mips to __sgi, since it's IRIX-specific.
4479 Adjust test for presence of .mdebug section to the new return
4480 value of find_section.
4481
44821999-12-07 Gerd Moellmann <gerd@gnu.org>
4483
4484 * unexelf.c: Merge changes from 20.5.
4485 (unexec): Handle .lit4 and .lit8 unconditionally.
4486
4487 * m/iris4d.h (UNEXEC) [USG5_4]: Use unexelf.o instead of
4488 unexsgi.o again.
4489
4490 * m/iris5d.h (UNEXEC): Likewise.
4491
7dae4502
SM
44921999-12-06 Stefan Monnier <monnier@cs.yale.edu>
4493
4494 * editfns.c (Fdelete_and_extract_region): New function.
05e71564
GM
4495 (syms_of_editfns): Register it.
4496 * insdel.c (del_range): Update del_range_1 call.
7dae4502
SM
4497 (del_range_1, del_range_2): Add a ret_string argument to
4498 request that the deleted text be returned.
4499 (del_range_byte, del_range_both): Update del_range_2 call.
05e71564 4500 * lisp.h (del_range_1, del_range_2): Change prototype
7dae4502
SM
4501 * casefiddle.c (casify_region): Update del_range_1 call.
4502 * coding.c (code_convert_region): Update del_range_2 call.
4503 * fileio.c (Finsert_file_contents): Update del_range_2 call.
4504
397e4fae
GM
45051999-12-06 Gerd Moellmann <gerd@gnu.org>
4506
4507 * xfaces.c (set_lface_from_font_name): Fix incomplete merge.
4508
3d973f71
GM
45091999-12-04 Hrvoje Niksic <hniksic@iskon.hr>
4510
4511 * lread.c (Fintern_soft): Accept a symbol argument.
4512
740e985f
EZ
45131999-12-06 Eli Zaretskii <eliz@is.elta.co.il>
4514
4515 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 40000.
809f3d51
EZ
4516
4517 * insdel.c (adjust_markers_for_delete): Fix last change.
4518
2d764c78
EZ
45191999-12-06 Eli Zaretskii <eliz@is.elta.co.il>
4520
4521 Changes for automatic remapping of X colors on terminal frames:
4522
4523 * xfaces.c (XColor) [!HAVE_X_WINDOWS]: Provide a typedef for non-X
4524 frames.
4525 (Vface_tty_color_alist): Remove.
4526 (tty_defined_color): New function.
4527 (defined_color): Rewrite to support any type of frame.
4528 (tty_color_name): New function.
4529 (face_color_supported_p, Fface_color_gray_p,
4530 Fface_color_supported_p): Support non-X frames.
4531 (load_color): Enclose the color name in quotes, in the log
4532 messages. Remove DOS-specific version of load_color.
4533 (realize_tty_face): Take the supported colors from
4534 tty-color-alist. Support translation of X colors to the closest
4535 tty color, for both MSDOS and tty frames.
4536 [MSDOS]: Don't invert face colors if they were taken from the
4537 frame colors.
4538 (Fface_register_tty_color, Fface_clear_tty_colors): Remove.
4539
4540 * frame.h (struct x_output) [!MSDOS, !WINDOWSNT, !HAVE_X_WINDOWS]:
4541 Define a mostly empty surrogate.
4542 (tty_display): Declare.
4543
4544 * frame.c (make_terminal_frame) [!macintosh]: Don't use
4545 tty_display.
4546 (Fframe_parameters): Don't invert colors of non-FRAME_WINDOW_P
4547 frames when the frame's param_alist includes 'reverse.
4548 (tty_display): Define.
4549 (make_terminal_frame) [!MSDOS]: Assign &tty_display to the
4550 output_data.x member.
4551 (Fframe_parameters): Return foreground and background color names
4552 on tty frames as well, in addition to MSDOS frames.
4553
4554 * msdos.h (DisplayWidth, DisplayHeight): Changes for Lisp_Object
4555 selected_frame.
4556 (struct x_output): Remove unused members; document who uses each
4557 member.
4558 (FRAME_PARAM_FACES, FRAME_N_PARAM_FACES, FRAME_DEFAULT_PARAM_FACE,
4559 FRAME_MODE_LINE_PARAM_FACE, FRAME_COMPUTED_FACES,
4560 FRAME_N_COMPUTED_FACES, FRAME_SIZE_COMPUTED_FACES,
4561 FRAME_DEFAULT_FACE, FRAME_MODE_LINE_FACE, unload_color): Remove
4562 unused macro definintions.
4563
4564 * msdos.c (IT_set_frame_parameters): Don't call
4565 recompute_basic_faces, the next redisplay will, anyway.
4566 (x_current_display): Remove unused variable.
4567 Many functions: changes for Lisp_object selected_frame.
4568 (IT_set_face): If the tty_reverse_p flag is set for the face,
4569 reverse the foreground and background colors.
4570 (Fmsdos_remember_default_colors): New function.
4571 (syms_of_msdos): Defsubr it.
4572 (IT_set_frame_parameters): Use initial_screen_colors[] when
4573 creating a new frame. If the frame parameters include 'reverse,
4574 swap the foreground and background colors.
4575 (internal_terminal_init): Initialize initial_screen_colors to -1.
4576 (syms_of_msdos): Add DEFVAR_BOOL for x-stretch-cursor, to shut up
4577 cus-start.el.
4578
4579 * Makefile.in (lisp, shortlisp): Add lisp/term/tty-colors.elc.
4580
4581 * xfns.c (x_defined_color): Rename from defined_color. All
4582 callers changed.
4583 (Fxw_color_defined_p): Renamed from Fx_color_defined_p;
4584 all callers changed.
4585 (Fxw_color_values): Renamed from Fx_color_values; all callers
4586 changed.
4587 (Fxw_display_color_p): Renamed from Fx_display_color_p; all
4588 callers changed.
4589 (x_window_to_frame, x_any_window_to_frame,
4590 x_non_menubar_window_to_frame, x_menubar_window_to_frame,
4591 x_top_window_to_frame): Use !FRAME_X_P instead of
4592 f->output_data.nothing.
4593 * xterm.h (x_defined_color): Rename from defined_color.
4594
4595 * w32fns.c (x_window_to_frame): Use FRAME_W32_P instead of
4596 f->output_data.nothing.
4597 (Fxw_color_defined_p): Renamed from Fx_color_defined_p;
4598 all callers changed.
4599 (Fxw_color_values): Renamed from Fx_color_values; all callers
4600 changed.
4601 (Fxw_display_color_p): Renamed from Fx_display_color_p; all
4602 callers changed.
4603
4604 * dispextern.h (tty_color_name): Add prototype.
4605
4606 * xmenu.c (menubar_id_to_frame): Use FRAME_WINDOW_P instead of
4607 f->output_data.nothing.
4608 * w32menu.c (menubar_id_to_frame): Likewise.
4609 * w32term.h (w32_output): Declare.
4610
4611 * dosfns.c (Qmsdos_color_translate): Remove.
4612 (msdos_stdcolor_name): Now returns a Lisp_Object.
4613 * dosfns.h (Qmsdos_color_translate): Remove.
4614
4615 * s/msdos.h (INTERNAL_TERMINAL): Add entries for color support.
4616
b3e5232e
KH
46171999-12-06 Kenichi Handa <handa@etl.go.jp>
4618
4619 * fileio.c (decide_coding_unwind): Renamed from
4620 set_auto_coding_unwind.
4621 (Finsert_file_contents): Make single unwind protect to call both
4622 Vset_auto_coding_function and Ffind_operation_coding_system.
4623
4624 * insdel.c (adjust_markers_for_delete): Make it non-static.
4625
db0e466c
SM
46261999-12-04 Stefan Monnier <monnier@cs.yale.edu>
4627
4628 * regex.c (regex_compile): Recognize *?, +? and ?? as non-greedy
4629 operators and handle them properly.
4630 * regex.h (RE_ALL_GREEDY): New option.
4631 (RE_UNMATCHED_RIGHT_PAREN_ORD): Moved to the end where alphabetic
4632 sorting would put it.
4633 (RE_SYNTAX_AWK, RE_SYNTAX_GREP, RE_SYNTAX_EGREP)
4634 (_RE_SYNTAX_POSIX_COMMON): Use the new option to keep old behavior.
4635
22afa6e8
DL
46361999-12-04 Dave Love <d.love@dl.ac.uk>
4637
4638 * m/arm.h: New file.
4639
40afb967
DL
46401999-12-03 Dave Love <fx@gnu.org>
4641
4642 * editfns.c (Fmessage_or_box): Use use_dialog_box.
4643
ddf8eff5
GM
46441999-12-02 Gerd Moellmann <gerd@gnu.org>
4645
4646 * s/usg5-4.h (LIBS_SYSTEM): Add -lgen because that's needed
4647 for building with Motif.
4648
4649 * m/iris4d.h (UNEXEC) [USG5_4]: Use unexsgi.o instead of
4650 unexelf.o.
4651
4652 * m/iris5d.h (UNEXEC): Use unexsgi.o instead of unexelf.o.
4653
fa09a82d
DL
46541999-12-01 Dave Love <fx@gnu.org>
4655
4656 * emacs.c (main): Set LANG=C iff AX3_2 defined.
4657
ddf8eff5
GM
46581999-11-28 Gerd Moellmann <gerd@gnu.org>
4659
4660 * systime.h (EMACS_TIME_CMP, EMACS_TIME_EQ, EMACS_TIME_NE)
4661 (EMACS_TIME_GT, EMACS_TIME_GE, EMACS_TIME_LT,EMACS_TIME_LE): New
4662 macros.
4663
4664 * config.in (HAVE_SETITIMER, HAVE_UALARM): New.
4665
fa09a82d
DL
46661999-11-28 eliz <eliz@dlpx1>
4667
4668 * emacs.c (synchronize_locale): Avoid compiler warnings about
4669 pointer type mismatch.
4670
f9632fc8
GM
46711999-11-28 Gerd Moellmann <gerd@gnu.org>
4672
717d0121
GM
4673 * window.c (Fwindow_end): Don't call temp_set_pt_both with
4674 out of range position.
4675
f9632fc8
GM
4676 * xterm.c (XTread_socket) <ClientMessage, Xatom_Scrollbar>:
4677 Switch off busy-cursor by setting inhibit_busy_cursor to 2.
4678
59c65f1e
EZ
46791999-11-28 Eli Zaretskii <eliz@is.elta.co.il>
4680
613a8346
EZ
4681 * charset.c (Fmake_char_internal): Print the charset ID when
4682 signalling an error.
4683
59c65f1e
EZ
4684 * emacs.c (synchronize_locale): Avoid compiler warnings about
4685 pointer type mismatch.
4686
83c8f461 46871999-11-26 Richard M. Stallman <rms@gnu.org>
d01f3570
RS
4688
4689 * editfns.c (Fdelete_field): Make it noninteractive. Return nil.
4690
18df9369
GM
46911999-11-26 Gerd Moellmann <gerd@gnu.org>
4692
65a3ccf7
GM
4693 * puresize.h (BASE_PURESIZE): Increase to 550000.
4694
b3b98592
GM
4695 * textprop.c (set_text_properties): New function. Like
4696 Fset_text_properties, but with additional parameter
4697 SIGNAL_AFTER_CHANGE_P. If that is nil, don't signal after
4698 changes.
4699 (Fset_text_properties): Use it.
4700
4701 * insdel.c (insert_1_both): Call set_text_properties with last
4702 parameter nil so that no after changes will be signaled.
4703
4704 * lisp.h: Add prototype for set_text_properties.
4705
18df9369
GM
4706 * xfaces.c (set_lface_from_font_name): Fix previous change.
4707 (recompute_basic_faces): Change assert to abort.
4708
71a8e74b
DL
47091999-11-25 Dave Love <fx@gnu.org>
4710
4711 * fns.c (Fnthcdr, Fnreverse): Inline cdr.
4712 (Fmember, Fdelq, Fdelete): Inline car.
4713 (Fy_or_n_p): Doc fix.
4714
bc6a5782
GM
47151999-11-25 Gerd Moellmann <gerd@gnu.org>
4716
3221576b 4717 * xfaces.c (set_lface_from_font_name): New parameter may_fail_p.
18df9369 4718 Callers changed. If specified font name is bogus, and may_fail_p
3221576b
GM
4719 is not set, try to use a reasonable default.
4720
bc6a5782
GM
4721 * dispnew.c (direct_output_for_insert): Set glyph row's
4722 displays_text_p flag. Correct window's window_end_vpos if
4723 necessary.
4724
0c8559bb
PE
47251999-11-25 Paul Eggert <eggert@twinsun.com>
4726
4727 * emacs.c (fixup_locale): Don't bother to record initial locale.
4728 (synchronize_locale): If the desired locale is nil,
4729 treat it as if it were the empty string,
4730 so that we set the locale from the environment.
4731
35737351
KH
47321999-11-25 Kenichi Handa <handa@etl.go.jp>
4733
4734 * fileio.c (Finsert_file_contents): Set buffer-file-coding-system
4735 of the current buffer via Fset.
4736
5562b47f
DL
47371999-11-24 Dave Love <fx@gnu.org>
4738
5562b47f
DL
4739 * xfaces.c: Don't duplicate Qmode_line definition done elsewhere.
4740
4741 * xfns.c: Don't duplicate Qdisplay definition done elsewhere.
4742
00da0e4a
GM
47431999-11-24 Gerd Moellmann <gerd@gnu.org>
4744
4745 * lisp.h (enum pvec_type): Put PVEC_FLAG in #if 0.
4746
4747 * emacs.c (PVEC_FLAG): New variable.
4748
b1775dc1
GM
47491999-11-23 Gerd Moellmann <gerd@gnu.org>
4750
4751 * unexaix.c (unexec): Use unsigned instead of uintptr_t because
4752 that fails on IBM PowerPC, AIX 4.2.
4753
08de6200
EZ
47541999-11-22 Eli Zaretskii <eliz@is.elta.co.il>
4755
4756 * buffer.c (syms_of_buffer): Add %z, %Z, %m and %& to the doc
4757 string of mode-line-format. Remove the obsolete %t.
4758
02fda8ff
GM
47591999-11-22 Gerd Moellmann <gerd@gnu.org>
4760
f2fa858f
GM
4761 * dispnew.c (direct_output_for_insert): Increment glyph positions
4762 for glyphs from buffer text only.
4763
02fda8ff
GM
4764 * emacs.c (gdb_valbits, gdb_gctypebits, gdb_emacs_intbits)
4765 (gdb_data_seg_bits): New variables.
4766
4767 * lisp.h (enum gdb_lisp_params): Put in #if 0, since it doesn't
4768 work on systems not allowing enumerators > INT_MAX, and it
4769 won't work if EMACS_INT is long long.
4770
1b0d24e7
PE
47711999-11-22 Paul Eggert <eggert@twinsun.com>
4772
4773 Port to SunOS 4.1.x again. Help out with Alpha port.
4774 Rename messages-locale to system-messages-locale,
4775 and likewise for time-locale.
4776
4777 * callproc.c (strerror): Remove decl.
4778 * fileio.c (strerror): Likewise.
4779 * process.c (strerror): Likewise.
4780 * emacs.c (strerror): Likewise.
4781 (Vsystem_messages_locale): Renamed from Vmessages_locale.
4782 All uses changed.
4783 (Vprevious_system_messages_locale): Likewise, from
4784 Vprevious_messages_locale.
4785 (Vsystem_time_locale): Likewise, from Vtime_locale.
4786 (Vprevious_system_time_locale): Likewise, from Vprevious_time_locale.
4787 (ABORT_RETURN_TYPE): New macro.
4788 (abort): Return type is now ABORT_RETURN_TYPE.
4789 (main): Always invoke init_signals, even if POSIX_SIGNALS is not
4790 defined.
4791 (syms_of_emacs): messages-locale -> system-messages-locale,
4792 previous-messages-locale -> previous-system-messages-locale,
4793 time-locale -> system-time-locale,
4794 previous-time-locale -> previous-system-time-locale.
4795
4796 * gmalloc.c (PP, __ptr_t): Assume ANSI C if STDC_HEADERS is defined.
4797 (const): Do not define; that's config.h's job.
4798 (<limits.h>): Include if HAVE_LIMITS_H is defined.
4799 (CHAR_BIT): Move test for definedness outside of limits.h condition.
4800 (<stddef.h>): Include if STDC_HEADERS is defined.
4801 (FREE_RETURN_TYPE): New macro.
4802 (free): Return type is now FREE_RETURN_TYPE.
4803
4804 * lisp.h (synchronize_system_time_locale): Renamed from
4805 synchronize_time_locale. All uses changed.
4806 (synchronize_system_messages_locale): Likewise, from
4807 synchronize_messages_locale.
4808
4809 * m/alpha.h (malloc, realloc, calloc): Remove decls;
4810 stdlib.h now does this.
4811
4812 * process.c (sys_siglist): Remove.
4813
4814 * s/sunos4-0.h (ABORT_RETURN_TYPE, FREE_RETURN_TYPE):
4815 New macros.
4816
4817 * syntax.c (scan_sexps_forward): Use abort, not assert.
4818
4819 * sysdep.c (my_sys_siglist): New var.
4820 (sys_siglist): New macro. Remove old initialized vars of same name.
4821 (init_signals): Initialize sys_siglist.
4822
4823 * xfns.c (abort): Remove decl; stdlib.h now does this.
4824
0dcd5b54
DL
48251999-11-18 Dave Love <fx@gnu.org>
4826
946173ad
DL
4827 * filelock.c: Add forward declaration for get_boot_time_1.
4828
0dcd5b54
DL
4829 * dispnew.c (Finternal_show_cursor_p): Fix doc string.
4830
71447e8f
GM
48311999-11-18 Gerd Moellmann <gerd@gnu.org>
4832
4833 * buffer.h (struct buffer_text): Add comment about moving
4834 buffer text if REL_ALLOC is defined.
4835
eeedff63
KH
48361999-11-18 Kenichi Handa <handa@etl.go.jp>
4837
4838 * lisp.h (KEY_DESCRIPTION_SIZE): New macro.
4839
4840 * keyboard.c (echo_char): Use KEY_DESCRIPTION_SIZE to check free
4841 memory for push_key_description.
4842
4843 * keymap.c (Fsingle_key_description): Use KEY_DESCRIPTION_SIZE to
4844 allocate memory for push_key_description.
4845 (describe_buffer_bindings): Likewise.
4846
5d7e4a2c
GM
48471999-11-17 Gerd Moellmann <gerd@gnu.org>
4848
4849 * xfns.c (Fx_show_busy_cursor): Doc-fix.
4850 (Fx_hide_busy_cursor): Ditto.
4851
48521999-11-17 Marco Walther <walther@siemens-pyramid.com>
4853
4854 * unexsni.c (unexec): Handle .rel.dyn section.
4855
b5b41e02
DL
48561999-11-16 Dave Love <fx@gnu.org>
4857
4858 * doc.c (Fdocumentation): Remove gcpro here too.
4859
e35b6123
GM
48601999-11-16 Gerd Moellmann <gerd@gnu.org>
4861
4862 * keyboard.c (command_loop_1): Remove no_redisplay.
4863
83c8f461 48641999-11-16 Richard M. Stallman <rms@gnu.org>
0a14b9bb
GM
4865
4866 * print.c (PRINTPREPARE): Don't call setup_echo_area_for_printing
4867 in noninteractive.
4868
b05d3bee
GM
48691999-11-14 Gerd Moellmann <gerd@gnu.org>
4870
5bcfeb49
GM
4871 * xdisp.c (ensure_echo_area_buffers): New.
4872 (with_echo_area_buffer): Use it.
4873 (setup_echo_area_for_printing): Ditto.
4874
b05d3bee
GM
4875 * buffer.c (indicate-empty-lines): Doc-fix.
4876
9b2e6e4c
GM
48771999-11-12 Gerd Moellmann <gerd@gnu.org>
4878
e7f90eab
GM
4879 * term.c (term_init): If "op" isn't available, don't support color
4880 because we can't switch back to the default foreground and
4881 background.
4882
9b2e6e4c
GM
4883 * doc.c (Fdocumentation_property): Remove GCPRO because
4884 Fsubstitute_command_keys gcpro's the string.
4885
1bf21027
KH
48861999-11-12 Kenichi Handa <handa@etl.go.jp>
4887
4888 * editfns.c (Ftranslate_region): Check the buffer multibyteness.
4889
3bc6df53
GM
48901999-11-11 Gerd Moellmann <gerd@gnu.org>
4891
4892 * print.c, keymap.c, indent.c, insdel.c, keyboard.c, intervals.c,
4893 lread.c, textprop.c, undo.c, emacs.c, lisp.h, intervals.h,
4894 buffer.h, config.in, Makefile.in: Remove USE_TEXT_PROPERTIES.
4895
35a5514b
GM
48961999-11-10 Gerd Moellmann <gerd@gnu.org>
4897
4898 * xfns.c (QCuser_data): Removed.
4899 (syms_of_xfns): Initialization of QCuser_data removed.
4900 (parse_image_spec): Don't handle :user-data specially. Allow
4901 unknown keys. Remove parameter ALLOW_OTHER_KEYS.
4902 (xbm_image_p, xbm_load, xpm_image_p, pbm_image_p, png_image_p)
4903 (tiff_image_p, jpeg_image_p, gif_image_p, gs_image_p): Call
4904 parse_image_spec accordingly.
4905
83c8f461 49061999-11-09 Richard M. Stallman <rms@gnu.org>
4ea68fcc
RS
4907
4908 * cmds.c (Fbeginning_of_line): Doc fix.
4909 (Fend_of_line): Doc fix.
4910
4911 * editfns.c (Fline_beginning_position): If N is not 1,
4912 pass t to Fconstrain_to_field for ESCAPE-FROM-EDGE.
4913
4914 * syntax.c (Fforward_word): Handle fields even if would have hit
4915 an edge of the buffer. Return nil if affected by fields.
4916
83c8f461 49171999-11-09 Richard M. Stallman <rms@gnu.org>
4ea68fcc
RS
4918
4919 * editfns.c (preceding_pos): Function deleted.
4920 (text_property_stickiness): Decrement POS directly.
4921 Fix a confusion that used PT instead of POS.
4922
4923 * editfns.c (find_field): Properly handle the case
4924 of a field boundary where `field' inherits from neither side.
4925
4926 * editfns.c (Ffield_beginning, Ffield_end): Doc fixes.
4927 (Ferase_field, Ffield_string, Ffield_string_no_properties): Doc fixes.
4928
fa9aabf6
GM
49291999-11-08 Gerd Moellmann <gerd@gnu.org>
4930
4931 * bytecode.c (Fbyte_code) <BinsertN, Bcall>: Do the
4932 BEFORE_POTENTIAL_GC before DISCARD.
4933
4015b3c0
GM
49341999-11-07 Gerd Moellmann <gerd@gnu.org>
4935
033a5fa3
GM
4936 * alloc.c (Fgarbage_collect): Call unmark_byte_stack.
4937
4938 * lisp.h: Add prototype for unmark_byte_stack.
4939
4940 * bytecode.c (mark_byte_stack): Use XMARKBIT and XMARK.
4941 (unmark_byte_stack): Renamed from relocate_byte_pcs. Use
4942 XUNMARK.
4943
55b064bd
GM
4944 * xdisp.c (resize_mini_window): Fix computation of needed
4945 mini-window height.
4946
4947 * alloc.c, buffer.c, editfns.c, xdisp.c: Remove conditional
4948 compilation on USE_TEXT_PROPERTIES.
01e9b9df 4949
4015b3c0 4950 * Fbyte_code: Use block statements in cases and declare v1 and v2
60af03f1 4951 locally there. Rearrange case statements so that those most
4015b3c0
GM
4952 frequently executed come first. Avoid goto's in frequently
4953 executed cases.
4954
fe512f27
GM
49551999-11-05 Gerd Moellmann <gerd@gnu.org>
4956
dd59e217
GM
4957 * bytecode.c (Fbyte_code): Use BEFORE_POTENTIAL_GC and
4958 AFTER_POTENTIAL_GC around internal_catch.
4959
bcf28080
GM
4960 * alloc.c (Fgarbage_collect): Call mark_byte_stack and
4961 relocate_byte_pcs.
4962 (init_alloc_once, init_alloc): Set byte_stack_list to null.
4963
4964 * eval.c (struct catchtag): Add member byte_stack.
4965 (internal_catch, Fcondition_case, internal_condition_case)
dd59e217 4966 (internal_condition_case_1): Save value of byte_stack_list in
bcf28080
GM
4967 catchtag.
4968 (unwind_to_catch): Restore byte_stack_list from catchtag.
4969
4970 * lisp.h: Add prototypes for new functions in bytecode.c.
4971 Add extern declaration for byte_stack_list.
4972
4973 * bytecode.c (struct byte_stack): New.
4974 (byte_stack_list, mark_byte_stack, relocate_byte_pcs): New
4975 (BEFORE_POTENTIAL_GC, AFTER_POTENTIAL_GC): New.
4976 (FETCH, PUSH, POP, DISCARD, TOP, MAYBE_GC): Rewritten.
4977 (HANDLE_RELOCATION): Removed.
4978 (Fbyte_code): Use byte_stack structures.
4979
4d59c34c
GM
4980 * filelock.c (Ffile_locked_p): Make FILENAME a required argument.
4981
fe512f27
GM
4982 * buffer.c (syms_of_buffer): Extend documentation of
4983 mode-line-format.
4984
60b64cd6
GM
49851999-11-04 Gerd Moellmann <gerd@gnu.org>
4986
4987 * editfns.c (Fdelete_field): Renamed from Ferase_field.
4988
4989 * minibuf.c (do_completion, Fminibuffer_complete_word): Use
4990 Ferase_field instead of Fdelete_field.
4991
b51b619b
GM
49921999-11-03 Gerd Moellmann <gerd@gnu.org>
4993
4994 * dispnew.c (Finternal_show_cursor): Change it to set the
4995 cursor on/off, not toggle its state.
4996 (Finternal_show_cursor_p): New.
4997 (syms_of_display): Defsubr Sinternal_show_cursor_p.
4998
5865af0d
DL
49991999-11-03 Dave Love <fx@gnu.org>
5000
5001 * charset.c (split_non_ascii_string): Define return value.
5002
82a700f3
GM
50031999-11-03 Gerd Moellmann <gerd@gnu.org>
5004
edfef199
GM
5005 * minibuf.c (string_to_object): New.
5006 (read_minibuf_noninteractive): New.
5007 (read_minibuf): Call read_minibuf_noninteractive if
5008 noninteractive. Use string_to_object.
5009
82a700f3
GM
5010 * doc.c (Fdocumentation_property): Fix bug bypassing UNGCPRO.
5011
b5540f0d
DL
50121999-11-02 Dave Love <fx@gnu.org>
5013
e69dcd60
DL
5014 * gnu-linux.h: Use SIGCHLD, not SIGCLD (not in glibc 2.1).
5015
827a1788
DL
5016 * process.c: Define _GNU_SOURCE before config.h to get strsignal
5017 declared with glibc2.
b5540f0d 5018
a69a6e61
GM
50191999-11-02 Gerd Moellmann <gerd@gnu.org>
5020
5021 * lisp.h (QUIT): Give it statement form.
5022
87e21fbd
DL
50231999-11-02 Dave Love <fx@gnu.org>
5024
5025 * eval.c (init_eval): Conditionalize declaration of gcpro_level.
5026
1b335865
GM
50271999-11-02 Gerd Moellmann <gerd@gnu.org>
5028
9fb5e03d
GM
5029 * xfns.c (QCuser_data): New.
5030 (syms_of_xfns): Initialize QCuser_data.
5031 (parse_image_spec): Ignore :user-data DATA properties.
5032
1b335865
GM
5033 * xdisp.c (display_line): Set charpos of first glyph in blank
5034 lines not corresponding to any text to -1, even if no glyphs are
5035 filled in in that line.
5036
e76f1c44
GM
50371999-11-01 Gerd Moellmann <gerd@gnu.org>
5038
36fcd3d9
GM
5039 * xfns.c (png_load) [PNG_READ_sRGB_SUPPORTED]: Put code using
5040 png_get_sRGB in #ifdef.
5041
111259b4
GM
5042 * dispnew.c (Finternal_show_cursor): Renamed from Fshow_cursor.
5043 (syms_of_display): Use the new name.
5044
dd5c96e8
GM
5045 * textprop.c (verify_interval_modification): Signal text-read-only
5046 instead of calling error.
5047
db8878fb
GM
5048 * data.c (Qtext_read_only): New built-in error.
5049 (syms_of_data): Initialize it.
5050
5051 * lisp.h: Add extern declaration for Qtext_read_only.
5052
e76f1c44
GM
5053 * syntax.c: Remove whitespace after open or in front of closing
5054 parentheses.
5055
83c8f461 50561999-11-01 Richard M. Stallman <rms@gnu.org>
cb3a6c48
GM
5057
5058 * Makefile.in (w16select.o, sound.o): Don't depend on lisp.h.
5059
7843e09c
GM
50601999-10-31 Gerd Moellmann <gerd@gnu.org>
5061
575ed805
GM
5062 * xdisp.c (resize_mini_window): Compute needed height differently.
5063
7843e09c
GM
5064 * fns.c (Flength): Unroll loop over lists.
5065
5066 * xdisp.c (append_space): Return non-zero if space was appended.
5067 (display_line): Set charpos of first glyph to -1 only if that
5068 glyph is the space added by append_glyph.
5069
83c8f461 50701999-10-30 Richard M. Stallman <rms@gnu.org>
cb3a6c48
GM
5071
5072 * print.c (strout): Consider `noninteractive' and use stdout
5073 only when PRINTCHARFUN is t.
5074
5075 * lisp.h (struct gcpro) [DEBUG_GCPRO]: New field `level'.
5076 (gcpro_level): Declare it extern.
5077 [DEBUG_GCPRO] (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
5078 Alternate definitions that set `level' and increment `gcpro_level'.
5079 [DEBUG_GCPRO] (UNGCPRO): Alternate definition that checks gcpro_level.
5080
5081 * eval.c [DEBUG_GCPRO] (gcpro_level): New variable.
5082 (init_eval) [DEBUG_GCPRO]: Initialize it.
5083 (unwind_to_catch) [DEBUG_GCPRO]: Set gcpro_level
5084 from remaining gcprolist.
5085
3636f7a3
KH
50861999-10-29 Kenichi Handa <handa@etl.go.jp>
5087
5088 * coding.c (code_convert_region): Update `dst' correctly.
5089
a2ad7096
GM
50901999-10-28 Gerd Moellmann <gerd@gnu.org>
5091
5092 * fns.c (Fmemq, Fassq, Frassq, assq_no_quit, Fassoc)
5093 (Frassoc): Rewritten.
5094
1e3196e8
GM
50951999-10-27 Noah Friedman <friedman@splode.com>
5096
5097 * s/gnu-linux.h [HAVE_DEV_PTMX]: Redefine FIRST_PTY_LETTER to 'z'.
5098 Define PTY_NAME_SPRINTF.
5099 Redefine PTY_TTY_NAME_SPRINTF.
5100 * config.in: Add undef for HAVE_DEV_PTMX.
5101
83c8f461 51021999-10-26 Richard M. Stallman <rms@gnu.org>
4ea68fcc
RS
5103
5104 * regex.c (POP_FAILURE_POINT): Use failure_id.integer
5105 as arg to DEBUG_POP and DEBUG_PRINT.
5106
83c8f461 51071999-10-27 Richard M. Stallman <rms@gnu.org>
17dbfaad
GM
5108
5109 * data.c (Qad_activate_internal): Renamed from Qad_activate.
5110 (Ffset): Call Qad_activate_internal.
5111 (syms_of_data): Initialize Qad_activate_internal.
5112
26922151
GM
51131999-10-27 Gerd Moellmann <gerd@gnu.org>
5114
5115 * xdisp.c (echo_area_display) [HAVE_X_WINDOWS]: Do nothing if
5116 Vterminal_frame is selected and Vwindow_system is non-nil.
5117
67a5596f
GM
51181999-10-26 Gerd Moellmann <gerd@gnu.org>
5119
2bea706b
GM
5120 * xdisp.c (echo_area_display): Put previous change in #if 0.
5121
67a5596f
GM
5122 * emacs.c (standard_args): Add `file' as synonym for `visit',
5123 `execute' as synonym for `eval'.
5124 (main): Add new options to usage message.
5125
81dc5de5
GM
51261999-10-25 Gerd Moellmann <gerd@gnu.org>
5127
5128 * data.c (Qhash_table): New.
5129 (Ftype_of): Return it for hash tables.
5130 (syms_of_data): Initialize Qhash_table.
5131
83c8f461 51321999-10-25 Richard M. Stallman <rms@gnu.org>
bd3c545d
GM
5133
5134 * regex.c (POP_FAILURE_POINT): Extract failure_id as an integer.
5135
66e4690f 51361999-10-24 Ken Raeburn <raeburn@gnu.org>
3a7093d8 5137
7539e11f
KR
5138 * alloc.c: Undef HIDE_LISP_IMPLEMENTATION before including
5139 lisp.h.
5140
5141 * buffer.c (Fbuffer_list, Fget_file_buffer, get_truename_buffer,
5142 Fbuffer_local_variables, Fother_buffer, record_buffer,
5143 set_buffer_internal_1, Fbury_buffer, Fkill_all_local_variables,
5144 swap_out_buffer_local_variables, overlays_at, overlays_in,
5145 overlay_touches_p, overlay_strings, recenter_overlay_lists,
5146 fix_overlays_in_range, fix_overlays_before, Foverlay_get,
5147 Foverlay_put, report_overlay_modification, evaporate_overlays):
5148 Use XCAR, XCDR, and XFLOAT_DATA instead of explicit member
5149 references.
5150 * data.c (Fcar, Fcar_safe, Fcdr, Fcdr_safe, Fsetcar, Fsetcdr,
5151 swap_in_symval_forwarding, set_internal, default_value,
5152 Fset_default, Fmake_variable_buffer_local, Fmake_local_variable,
5153 Fmake_variable_frame_local, Flocal_variable_p,
5154 Flocal_variable_if_set_p, arithcompare, Fzerop, cons_to_long,
5155 Fnumber_to_string, float_arith_driver, Fadd1, Fsub1): Likewise.
5156 * dispnew.c (Fframe_or_buffer_changed_p): Likewise.
5157 * emacs.c (main): Likewise.
5158 * fontset.c (fs_load_font, fs_register_fontset,
5159 CACHED_FONTSET_NAME, CACHED_FONTSET_REGEX, Fquery_fontset,
5160 Fnew_fontset, Fset_fontset_font): Likewise.
5161 * frame.c (do_switch_frame, next_frame, prev_frame,
5162 other_visible_frames, Fdelete_frame, Fvisible_frame_list):
5163 Likewise.
5164 * keyboard.c (read_char, help_char_p, event_to_kboard,
5165 kbd_buffer_get_event, timer_start_idle, timer_check,
5166 make_lispy_event, apply_modifiers, reorder_modifiers,
5167 Fevent_convert_list, lucid_event_type_list_p, menu_bar_items,
5168 menu_bar_one_keymap, menu_item_eval_property_1, parse_menu_item,
5169 tool_bar_items, read_char_x_menu_prompt, read_key_sequence,
5170 Fcommand_execute, Fexecute_extended_command): Likewise.
5171 * minibuf.c (read_minibuf, get_minibuffer, Ftry_completion,
5172 Fall_completions): Likewise.
5173 * window.c (Fset_window_margins): Likewise.
5174
5175 * callint.c (quotify_args): Don't explicitly use struct
5176 Lisp_Cons, use Lisp_Object and XCAR/XCDR instead.
5177
3a7093d8
KR
5178 * s/netbsd.h (HAVE_GETLOADAVG): Define as 1.
5179 (UNEXEC, START_FILES, LIB_STANDARD, LIB_GCC): Define ELF versions,
5180 if __ELF__ is defined.
5181
2a3d7146
GM
51821999-10-24 Gerd Moellmann <gerd@gnu.org>
5183
5184 * window.c (Fnext_window): Add a QUIT in the loop.
5185
8ac52782
GM
51861999-10-23 Gerd Moellmann <gerd@gnu.org>
5187
5188 * Makefile.in (bootstrap, bootstrap-emacs, bootstrap-temacs):
5189 New targets.
5190
05f0d15a
DL
51911999-10-22 Dave Love <fx@gnu.org>
5192
5193 * emacs.c (main): Enable profiling conditional on __linux also.
5194
882fb0e6
GM
51951999-10-20 Gerd Moellmann <gerd@gnu.org>
5196
5197 * xrdb.c (x_load_resources): Set default resources for resource
5198 classes instead of for the specific Emacs.
5199
b5f5bc31
GM
52001999-10-19 Gerd Moellmann <gerd@gnu.org>
5201
66f4dd69
GM
5202 * s/freebsd.h (HAVE_GETLOADAVG): Define as 1 because config.h
5203 defines it that way.
5204
b5f5bc31
GM
5205 * xdisp.c (echo_area_display) [HAVE_X_WINDOWS]: Do nothing
5206 if selected_frame is equal to Vterminal_frame.
5207
68c45bf0
PE
52081999-10-19 Paul Eggert <eggert@twinsun.com>
5209
5210 Add support for large files, 64-bit Solaris, system locale codings.
5211
5212 * Makefile.in (emacs): Set the LC_ALL environment variable to "C"
5213 when dumping, so that the dumped Emacs doesn't have stray locale info.
5214 (dired.o): Depend on systime.h.
5215 (editfns.o): Depend on coding.h.
5216
5217 * alloc.c, buffer.c, callproc.c, ccl.c, charset.c, coding.c, data.c,
5218 dispnew.c, editfns.c, emacs.c, filelock.c, floatfns.c, hftctl.c,
5219 keyboard.c, process.c, sysdep.c, unexelf.c, unexhp9k800.c,
5220 unexsunos4.c, vmsfns.c, vmsgmalloc.c, w32faces.c, w32menu.c, w32term.c,
5221 w32xfns.c, xfaces.c, xfns.c, xmenu.c, xterm.c:
5222 Include <config.h> before any system include files.
5223
5224 * alloc.c, buffer.c, ccl.c, data.c, editfns.c, emacs.c, eval.c,
5225 fileio.c, filelock.c, frame.c, insdel.c, keymap.c, lread.c,
5226 m/alpha.h, print.c, search.c, sysdep.c, xdisp.c, xfaces.c, xfns.c,
5227 xmenu.c, xterm.c:
5228 Do not include <stdlib.h>, as <config.h> does this now.
5229
5230 * callproc.c (Fcall_process):
5231 Synchronize messages locale before invoking strerror.
5232 Decode resulting string with locale-coding-system.
5233
5234 * coding.c (Vlocale_coding_system): New var.
5235 (syms_of_coding): Adjust to above change.
5236 (emacs_strerror): New function.
5237
5238 * coding.h (emacs_strerror, Vlocale_coding_system): New decls.
5239
5240 * config.in (HAVE_STDIO_EXT_H, HAVE_TM_GMTOFF, HAVE___FPENDING,
5241 HAVE_FTELLO, HAVE_GETLOADAVG, HAVE_MBLEN, HAVE_MBRLEN,
5242 HAVE_STRSIGNAL): New macros.
5243 (BITS_PER_LONG): Default to 64 if _LP64 is defined.
5244 <stdlib.h>: Include if HAVE_STDLIB_H is defined and NOT_C_CODE isn't.
5245
5246 * dired.c: Include "systime.h".
5247 (Ffile_attributes): Do not cast s.st_size to int; this loses
5248 information if int is 32 bits but st_size and EMACS_INT are larger.
5249 Treat large device numbers like large inode numbers.
5250
5251 * dispnew.c (PENDING_OUTPUT_COUNT): Use __fpending if available.
5252
5253 * editfns.c: Include coding.h.
5254 (emacs_strftime): Remove decl.
5255 (emacs_strftimeu): New decl.
5256 (emacs_memftimeu): Renamed from emacs_memftime; new arg UT.
5257 Use emacs_strftimeu instead of emacs_strftime.
5258 (Fformat_time_string): Convert format string using
5259 Vlocale_coding_system, and convert result back. Synchronize time
5260 locale before invoking lower level function. Invoke
5261 emacs_memftimeu, passing ut, instead of emacs_memftime.
5262
5263 * emacs.c: Include <locale.h> if HAVE_SETLOCALE is defined.
5264 (Vmessages_locale, Vprevious_messages_locale, Vtime_locale,
5265 Vprevious_time_locale): New variables.
5266 (main): Invoke setlocale early, so that initial error messages are
5267 localized properly. But skip locale-setting if LC_ALL is "C".
5268 Fix up locale when it's safe to do so.
5269 (fixup_locale): Moved here from xterm.c.
5270 (synchronize_locale, synchronize_time_locale,
5271 synchronize_messages_locale): New functions.
5272 (syms_of_emacs): Accommodate above changes.
5273
5274 * fileio.c (report_file_error): Convert strerror output according
5275 to Vlocale_coding_system.
5276 (Finsert_file_contents): Check for arithmetic overflow in
5277 computations that depend on file size. Report IO errors
5278 with emacs_strerror, not strerror.
5279
5280 * fns.c (Fgethash): Declare dflt parameter.
5281
5282 * gmalloc.c: Do not define const to nothing if HAVE_CONFIG_H
5283 is defined; that's config.h's job.
5284
5285 * lisp.h (EMACS_INT, BITS_PER_EMACS_INT, EMACS_UINT): If _LP64,
5286 default these values to long, BITS_PER_LONG, and unsigned long.
5287 (VALBITS, MARKBIT, XINT): Do not assume 32-bit EMACS_INT.
5288 (PNTR_COMPARISON_TYPE): Default to EMACS_UINT, not to unsigned int.
5289 (code_convert_string_norecord, fixup_locale,
5290 synchronize_messages_locale, synchronize_time_locale,
5291 emacs_open, emacs_close, emacs_read, emacs_write): New decls.
5292 All Emacs callers of open, close, read, write changed to use
5293 emacs_open, emacs_close, emacs_read, emacs_write.
5294
5295 * lread.c (file_offset, file_tell): New macros. All uses of ftell
5296 changed to file_tell.
5297 (saved_doc_string_position, prev_saved_doc_string_position): Now
5298 of type file_offset.
5299 (init_lread): Do not fix locale here; fixup_locale now does this.
5300
5301 * m/amdahl.h, s/usg5-4.h:
5302 (NSIG): Remove.
5303 (NSIG_MINIMUM): New macro.
5304
5305 * m/cydra5.h, m/dpx2.h, m/mips.h, m/pfa50.h, m/sps7.h, m/stride.h,
5306 m/ustation.h, s/gnu-linux.h, s/hpux.h, s/iris3-5.h, s/iris3-6.h,
5307 s/umips.h, s/usg5-4.h:
5308 (SIGIO): Do not undef.
5309 (BROKEN_SIGIO): New macro.
5310
5311 * m/ustation.h:
5312 (SIGTSTP): Do not undef.
5313 (BROKEN_SIGTSTP): New macro.
5314
5315 * s/gnu-linux.h:
5316 (SIGPOLL, SIGURG): Do not undef.
5317 (BROKEN_SIGPOLL, BROKEN_SIGURG): New macros.
5318
5319 * s/ptx4.h:
5320 (SIGINFO): Do not undef.
5321 (BROKEN_SIGINFO): New macros.
5322
5323 * m/delta.h, s/ptx.h, s/template.h: Doc fix.
5324
5325 * mktime.c, strftime.c: Update to glibc 2.1.2 version, with
5326 some Emacs-related changes merged.
5327
5328 * print.c (float_to_string): Prepend "-" to representation of a
5329 NaN if the NaN is negative.
5330
5331 * process.c (sys_siglist): Omit if HAVE_STRSIGNAL.
5332 (wait_reading_process_input): Use emacs_strerror, not strerror.
5333
5334 * process.c (status_message, sigchld_handler): Synchronize locale,
5335 then use strsignal istead of sys_siglist.
5336 * w32proc.c (sys_wait): Likewise.
5337
5338 * s/aix3-1.h, s/bsd4-1.h, s/dgux.h, s/gnu-linux.h, s/hiuxmpp.h,
5339 s/hpux.h, s/iris3-5.h, s/iris3-6.h, s/irix3-3.h, s/osf1.h, s/rtu.h,
5340 s/sunos4-1.h, s/unipl5-0.h, s/unipl5-2.h, s/usg5-0.h, s/usg5-2-2.h,
5341 s/usg5-2.h, s/usg5-3.h, s/xenix.h:
5342 (open, close, read, write, INTERRUPTIBLE_OPEN,
5343 INTERRUPTIBLE_CLOSE, INTERRUPTIBLE_IO): Remove.
5344
5345 * s/sol2-5.h (_LARGEFILE_SOURCE, _FILE_OFFSET_BITS): New macros.
5346
5347 * sysdep.c (sys_read, sys_write, read, write, sys_close, close,
5348 sys_open, open): Remove.
5349 (emacs_open, emacs_close, emacs_read, emacs_write): Always define;
5350 the old INTERRUPTIBLE_OPEN, INTERRUPTIBLE_CLOSE, and INTERRUPTIBLE_IO
5351 macros are no longer used.
5352 (emacs_open): Renamed from sys_open. Merge BSD4_1 version.
5353 (emacs_close): Renamed from sys_close.
5354 (emacs_read): Renamed from sys_read.
5355 (emacs_write): Renamed from sys_write.
5356 (sys_siglist): Do not declare if HAVE_STRSIGNAL.
5357 (dup2): Do not print error on failure; the real dup2 doesn't.
5358 (strsignal): New function, defined if !HAVE_STRSIGNAL.
5359
5360 * syssignal.h (SIGINFO): Undef if defined and if BROKEN_SIGINFO
5361 is defined.
5362 (SIGIO, SIGPOLL, SIGTSTP, SIGURG): Likewise.
5363 (NSIG): If less than NSIG_MINIMUM, define to NSIG_MINIMUM.
5364 (strsignal): Declare if !HAVE_STRSIGNAL.
5365
5366 * unexelf.c (ElfBitsW, ELFSIZE, ElfExpandBitsW): New macros.
5367 (ElfW): Define in terms of ElfExpandBitsW.
5368
5369 * w32proc.c (sys_siglist): Remove decl.
5370
5371 * xdisp.c (decode_mode_spec): 3rd arg is int, not char, to comply
5372 with ANSI C.
5373 (display_string): Declare face_string_pos arg.
5374
5375 * xfns.c (Fx_show_tip): Declare timeout param.
5376
5377 * xterm.c: No need to include locale.h.
5378 (x_alloc_lighter_color, x_setup_relief_color):
5379 Pass arg as double, not float, for compatibility with ANSI C.
5380 (fixup_locale): Move to emacs.c.
5381 (x_term_init): Do not setlocale or fixup locale; the main program
5382 does this now.
5383
2f0b74ea
DL
53841999-10-18 Dave Love <fx@gnu.org>
5385
5386 * doc.c (Fdocumentation_property): Gcpro `tem'.
5387
471aa4a0
KH
53881999-10-18 Kenichi Handa <handa@etl.go.jp>
5389
5390 * lread.c (Fload): Calculate bytes of filename correctly.
5391 (openp): Likewise.
5392
aca2020b
KH
53931999-10-18 Keisuke Nishida <kxn30@po.cwru.edu>
5394
5395 * print.c (print_preprocess): In case print-circle is nil,
5396 add OBJ to Vprint_number_table only when OBJ is a symbol.
5397
1f5fe392 53981999-10-18 Kenichi Handa <handa@etl.go.jp>
b843d1ae
KH
5399
5400 * coding.c (code_convert_string): Add record_unwind_protect to
5401 assure setting inhibit_pre_post_conversion back to zero. Take
5402 care of the multibyteness of the working buffer.
5403
5404 * coding.c (inhibit_pre_post_conversion): New variable.
5405 (setup_coding_system): If inhibit_pre_post_conversion is nonzero,
5406 ignore post-read-conversion and pre-write-conversion property of
5407 the coding system.
5408 (code_convert_region_unwind): New function.
5409 (code_convert_region): Set inhibit_pre_post_conversion to 1 while
5410 running pre-write-conversion and post-read-conversion.
5411 (code_convert_string): Likewise.
5412
cd876a91
GM
54131999-10-17 Miles Bader <miles@gnu.org>
5414
5415 * editfns.c: Doc fix.
5416
54171999-10-17 Miles Bader <miles@gnu.org>
5418
5419 * editfns.c (Fconstrain_to_field): Make sure we don't violate the
5420 argument preconditions of find_before_next_newline in the case
5421 where both ONLY_IN_LINE and ESCAPE_FROM_EDGE are set and OLD_POS
5422 was indeed at the edge.
5423
54241999-10-17 Miles Bader <miles@gnu.org>
5425
5426 * minibuf.c (Fminibuffer_complete_and_exit): Supply value for new
5427 ESCAPE_FROM_EDGE parameter to Ffield_beginning.
5428
5429 * editfns.c (text_property_eq, text_property_stickiness): Don't
5430 use initializers for auto variables of type Lisp_Object.
5431 (find_field): Likewise. Use braces around nested ifs.
5432 (Fline_end_position): Store the raw eol in a variable, so that the
5433 final expression doesn't look so ugly.
5434 (Fconstrain_to_field): Doc fix.
5435 (preceding_pos): Renamed from `preceeding_pos'.
5436 (text_property_stickiness, find_field): Call preceding_pos,
5437 not preceeding_pos.
5438
54391999-10-17 Miles Bader <miles@gnu.org>
5440
5441 * editfns.c (Ffield_string_no_properties): New function.
5442 (text_property_stickiness, preceeding_pos): New functions.
5443 (Ffield_string): Remove PROPS parameter.
5444 (find_field): Add MERGE_AT_BOUNDARY parameter.
5445 Rewrite to use stickiness of `field' property to resolve
5446 ambiguous cases.
5447 (Ffield_beginning, Ffield_end): Add ESCAPE_FROM_EDGE parameter.
5448 (Fconstrain_to_field): Likewise.
5449 (syms_of_editfns): Init Sfield_string_no_properties.
5450 (Ffield_string, Ferase_field, Ffield_end):
5451 Supply new MERGE_AT_BOUNDARY argument to find_field.
5452 (Fline_beginning_position, Fline_end_position): Supply new
5453 ESCAPE_FROM_EDGE parameter to Fconstrain_to_field.
5454 Pass a value of Qt for the ONLY_IN_LINE argument to
5455 Fconstrain_to_field (only matters if N != 1).
5456 * syntax.c (Fforward_word): Supply new ESCAPE_FROM_EDGE parameter
5457 to Fconstrain_to_field.
5458
5459 * minibuf.c (Fminibuffer_complete_word): Use
5460 Ffield_beginning to find the prompt end.
5461
54621999-10-17 Miles Bader <miles@gnu.org>
5463
5464 * editfns.c (Fconstrain_to_field): Add get/set-current-point
5465 behavior when NEW_POS is nil.
5466 (find_field): Use XSETFASTINT instead of make_number.
5467 * minibuf.c (Fminibuffer_complete_and_exit): Test for an empty
5468 input string by seeing where the field begins, instead of
5469 looking at text-properties.
5470
54711999-10-17 Miles Bader <miles@gnu.org>
5472
5473 * editfns.c (Qfield): New variable.
5474 (find_field, Ferase_field, Ffield_string,
5475 Ffield_beginning, Ffield_end, Fconstrain_to_field): New functions.
5476 (Fline_beginning_position, Fline_end_position): Constrain to any field.
5477 (make_buffer_string_both): Remove minibuffer-prompt hack.
5478 (syms_of_editfns): Initialize Qfield, and subr entries for
5479 field functions above.
5480 * minibuf.c (read_minibuf): Don't save minibuffer prompt length on
5481 minibuf_save_list.
5482 Don't initialize minibuffer prompt length.
5483 Wrap prompt text-properties around the entire prompt.
5484 Add 'prompt text-property to prompt.
5485 Get final value with Ffield_string instead of make_buffer_string.
5486 (read_minibuf_unwind): Don't restore minibuffer prompt length from
5487 minibuf_save_list.
5488 (do_completion): Get minibuffer input with Ffield_string
5489 instead of Fbuffer_string.
5490 Erase minibuffer input with Ferase_field instead of erase_buffer.
5491 (Fminibuffer_complete_and_exit): Likewise.
5492 Test whether buffer is empty by looking for the 'prompt text
5493 property at the end.
5494 Set prompt length by looking for the end of the prompt text property,
5495 and save prompt length for later use (since there is no longer a
5496 buffer variable to get it from).
5497 (Fminibuffer_prompt_width, Fminibuffer_prompt_end): Functions removed.
5498 (syms_of_minibuf): Remove initializations of
5499 Sminibuffer_prompt_width and Sminibuffer_prompt_end.
5500 * buffer.h (struct buffer): Remove prompt_end_charpos field.
5501 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer, Fkill_buffer):
5502 Don't initialize prompt_end_charpos field.
5503 * syntax.c (Fforward_word): Likewise.
5504 Constrain to any field.
5505
3f6f7508
GM
55061999-10-16 Gerd Moellmann <gerd@gnu.org>
5507
5508 * window.c (enum save_restore_action): New.
5509 (save_restore_orig_size): Change parameter list. Add
5510 functionality to check for valid orig_top and orig_height members
5511 in a window tree.
5512 (grow_mini_window): Call save_restore_orig_size with new parameter
5513 list.
5514 (shrink_mini_window): Restore old window sizes only if old
5515 size information is valid in all windows in a window tree.
5516
06482119
GM
55171999-10-15 Gerd Moellmann <gerd@gnu.org>
5518
2710454d
GM
5519 * xmenu.c (set_frame_menubar): Don't call
5520 x_set_menu_resources_from_menu_face here.
5521 (update_frame_menubar): Call x_set_menu_resources_from_menu_face.
5522
06482119
GM
5523 * xfns.c (gif_load): Fix handling of interlaced GIFs.
5524
17fa2837
DL
55251999-10-14 Dave Love <fx@gnu.org>
5526
5527 * xdisp.c (handle_fontified_prop): GCPRO `pos'.
5528
45f93416
GM
55291999-10-14 Gerd Moellmann <gerd@gnu.org>
5530
5531 * process.c (Fopen_network_stream): Don't loop if gethostbyname
5532 fails and h_errno is TRY_AGAIN.
5533
c765b723
DL
55341999-10-13 Dave Love <fx@gnu.org>
5535
5536 * filelock.c (lock_file): Move gcpro of `fn'.
5537
dace7f4e
GM
55381999-10-10 Gerd Moellmann <gerd@gnu.org>
5539
5540 * keyboard.c (auto-save-interval): Fix documentation.
5541
83c8f461 55421999-10-09 Richard M. Stallman <rms@gnu.org>
73fb36f1
RS
5543
5544 * print.c (print): When removing objects from Vprint_number_table,
5545 only scan the newly added objects.
5546 (print_preprocess): If OBJ is a gensym, and print-continuous-numbering,
5547 unconditionally force it to stay in the table.
5548
85177c86
GM
55491999-10-09 Gerd Moellmann <gerd@gnu.org>
5550
5551 * xfns.c (prepare_image_for_display): Don't try to load image if
5552 loading it failed before.
5553 (lookup_image, prepare_image_for_display): Remember if loading the
5554 image failed.
5555 (xpm_load): Add missing UNBLOCK_INPUT.
5556
5557 * dispextern.h (struct image): New member load_failed_p.
5558
11e4de5d
SM
55591999-10-08 Stefan Monnier <monnier@cs.yale.edu>
5560
f28eba7b 5561 * fileio.c (Fmake_temp_name): Add a reference to `make-temp-file'
11e4de5d
SM
5562 in the docstring.
5563
f1da8f06
GM
55641999-10-08 Gerd Moellmann <gerd@gnu.org>
5565
5566 * xterm.c (XTread_socket) <ClientMessage, WM_TAKE_FOCUS>:
5567 Don't call XSetInputFocus because that can generate additional
5568 FocusIn events.
5569
c37bbd4f
GM
55701999-10-07 Jeffrey C Honig <jch@bsdi.com>
5571
5572 * bsdos4.h [HAVE_LIBNCURSES]: Define TERMINFO and LIBS_TERMCAP.
5573
83c8f461 55741999-10-07 Richard M. Stallman <rms@gnu.org>
78cc5c64
GM
5575
5576 * process.c (wait_reading_process_input): When trying to suck
5577 input from one process, for accept-process-output,
5578 exit that loop if we get EAGAIN or EWOULDBLOCK.
5579
577d9e2f
GM
55801999-10-07 Gerd Moellmann <gerd@gnu.org>
5581
5582 * xfaces.c (Qbitmap_spec_p): Replaces Qpixmap_spec_p.
5583 (Fbitmap_spec_p): Replaces Fpixmap_spec_p.
5584 (load_pixmap): Use Fbitmap_spec_p and Qbitmap_spec_p instead of
5585 Fpixmap_spec_p and Qpixmap_spec_p.
5586 (load_face_colors, check_lface_attrs,
5587 merge_face_vector_with_property,
5588 Finternal_set_lisp_face_attribute): Use Fbitmap_spec_p.
5589 (syms_of_xfaces): Initialize Qbitmap_spec_p, defsubr
5590 Fbitmap_spec_p.
5591
f5737ad2
GM
55921999-10-07 Gerd Moellmann <gerd@gnu.org>
5593
5594 * xdisp.c (display_menu_bar): Use MENU_FACE_ID instead of
5595 MODE_LINE_FACE_ID.
5596
5597 * xfaces.c (toplevel) [USE_MOTIF]: Include some Motif headers.
5598 (struct x_resources) [USE_X_TOOLKIT]: New.
5599 (xm_apply_resources, xm_set_menu_resources_from_menu_face)
5600 [USE_MOTIF]: New.
5601 (xl_apply_resources, xl_set_menu_resources_from_menu_face)
5602 [USE_LUCID]: New.
5603 (x_set_menu_resources_from_menu_face) [USE_X_TOOLKIT]: New.
5604 (Qmenu): New.
5605 (syms_of_xfaces): Initialize Qmenu.
5606 (realize_basic_faces): Realize face `menu'.
5607 (resolve_face_name): New.
5608 (lface_from_face_name): Use it.
5609 (Finternal_set_lisp_face_attribute): Ditto.
5610 (Fpixmap_spec_p): Rewritten. Extend doc string.
5611
5612 * xmenu.c (set_frame_menubar, xmenu_show): Call
5613 x_set_menu_resources_from_menu_face.
5614
5615 * dispextern.h (enum face_id): Add MENU_FACE_ID.
5616 (toplevel): Include X11/Intrinsic.h.
5617
6a1aa823
DL
56181999-10-03 Ken'ichi Handa <handa@gnu.org>
5619
5620 * coding.c (DECODE_CHARACTER_ASCII): Decode ASCII invocated to GR
5621 correctly.
5622
26901792
DL
56231999-09-30 Kenichi Handa <handa@etl.go.jp>
5624
5625 * category.c (modify_lower_category_set): Set default value of
5626 TABLE correctly.
5627
5628 * minibuf.c (Fminibuffer_complete_word): Calculate string byte
5629 size correctly.
5630
56311999-09-29 Gerd Moellmann <gerd@gnu.org>
5632
5633 * editfns.c (Fpropertize): Renamed from Fproperties.
5634
56351999-09-29 Gerd Moellmann <gerd@gnu.org>
5636
5637 * xdisp.c (resize_mini_window): Do nothing if frame is an X
5638 frame that hasn't been initialized yet.
5639
83c8f461 56401999-09-28 Richard M. Stallman <rms@gnu.org>
a04f1a93
PR
5641
5642 * keymap.c (Fsingle_key_description): Make tem big enough.
5643 (describe_buffer_bindings): Make buf big enough.
5644
83c8f461 56451999-09-27 Richard M. Stallman <rms@gnu.org>
d177c583
PR
5646
5647 * intervals.c (get_local_map): Use indirect_function,
5648 not Findirect_function.
5649
26901792
DL
56501999-09-27 Dave Love <fx@gnu.org>
5651
5652 * cm.h: Remove unneeded declaration of ospeed.
5653
56541999-09-26 Gerd Moellmann <gerd@gnu.org>
5655
5656 * lisp.h (toplevel): Add prototype for
5657 next_single_char_property_change.
5658
5659 * textprop.c (next_single_char_property_change): New.
5660
5661 * xdisp.c (display_prop_end, invisible_text_between_p): Use
5662 next_single_char_property_change.
5663
56641999-09-25 Gerd Moellmann <gerd@gnu.org>
5665
5666 * editfns.c (Fproperties): New.
5667 (syms_of_editfns): Defsubr it.
5668
5669 * xfns.c (lookup_image): Set image's timestamp because it's
5670 used when we look it up.
5671
56721999-09-23 Gerd Moellmann <gerd@gnu.org>
5673
5674 * window.c (enlarge_window): Add window parameter instead of using
5675 selected_window.
5676 (Fdisplay_buffer): Call it with window parameter instead of
5677 setting selected_window.
5678 (Fenlarge_window, Fshrink_window): Ditto.
5679 (shrink_mini_window): If there is no recorded height and position
5680 info, resize mini-window to height 1.
5681
5682 * xfns.c (image_error): Use add_to_log.
5683
5684 * xfaces.c (load_pixmap): Call add_to_log without frame parameter.
5685 (load_face_font_or_fontset, load_color,
5686 merge_face_vector_with_property): Ditto.
5687
5688 * dispextern.h: Add prototype for add_to_log.
5689
5690 * xfaces.c (add_to_log): Move to xdisp.c.
5691
5692 * xdisp.c (add_to_log): Moved from xfaces.c. Remove frame
5693 parameter.
5694
56951999-09-23 Gerd Moellmann <gerd@gnu.org>
5696
5697 * xterm.c (XTread_socket) <MotionNotify>: Change #ifdef
5698 USE_X_TOOLKIT to #ifdef USE_TOOLKIT_SCROLL_BARS.
5699
5700 * xdisp.c (resize_mini_window): Use grow_mini_window and
5701 shrink_mini_window.
5702
5703 * window.c (window_min_size): Add parameter ignore_fixed_p.
5704 (change_window_height): Call window_min_size with new parameter.
5705 (shrink_window_lowest_first, save_restore_orig_size,
5706 grow_mini_window, shrink_mini_window): New.
5707 (make_window, replace_window): Initialize orig_top and
5708 orig_height.
5709 (enlarge_window): Renamed from change_window_height. Make it
5710 static.
5711 (Fdisplay_buffer, Fenlage_window, Fshrink_window): Call
5712 enlarge_window instead of change_window_height.
5713
5714 * window.h (struct window): New members orig_top, orig_height.
5715 (toplevel): Add prototypes for grow_mini_window and
5716 shrink_mini_window. Remove prototype for change_window_height.
5717
57181999-09-21 Eli Zaretskii <eliz@gnu.org>
5719
5720 * frame.c (frame_name_fnn_p): Fix previous change.
5721
57221999-09-20 Gerd Moellmann <gerd@gnu.org>
5723
5724 * minibuf.c (toplevel): Move include of stdio.h to other includes.
5725
5726 * dispnew.c (direct_output_for_insert): Cast arguments to
5727 safe_bcopy to char *.
5728
5729 * lread.c (readchar): Remove unused variables.
5730 (read_filtered_event, read1, Fmapatoms): Ditto.
5731 (toplevel): Include intervals.h.
5732
5733 * eval.c (Fsignal): Remove unused variables.
5734 (Fcommandp, do_autoload): Ditto.
5735
5736 * lisp.h: Add prototype for safe_bcopy, fatal.
5737
5738 * editfns.c (init_editfns): Remove unused variables.
5739 (Fgoto_char, Fchar_after, Fformat): Ditto.
5740 (message_text, message_length): Put in #ifndef HAVE_MENUS.
5741
5742 * data.c (find_symbol_value): Remove unused variables.
5743 (Faref, Fstring_to_number): Ditto.
5744 (toplevel): Include stdio.h.
5745 (Fnumber_to_string): Cast XINT to long for %ld.
5746
5747 * casefiddle.c (casify_object): Remove unused variables.
5748 (casify_region): Ditto.
5749
5750 * filelock.c (get_boot_time): Put local variable used in
5751 conditinally compiled section in #ifdef.
5752 (toplevel): Include stdio.h.
5753
5754 * keymap.c (Flookup_key, Faccessible_keymaps, describe_vector,
5755 keys_of_keymap, syms_of_keymap): Remove unused variables.
5756
57571999-09-20 Gerd Moellmann <gerd@gnu.org>
5758
5759 * xdisp.c (sync_frame_with_window_matrix_rows): Disable frame rows
5760 whose corresponding window rows have been disabled in
5761 try_window_id.
5762
57631999-09-20 Gerd Moellmann <gerd@gnu.org>
5764
5765 * xdisp.c (compute_window_start_on_continuation_line): Handle case
5766 that window start is out of range.
5767 (handle_display_prop, handle_single_display_prop): Replace
5768 marginal area specifications like `left-margin' with `(margin
5769 left-margin)'.
5770 (Qmargin): New.
5771 (syms_of_xdisp): Initialize Qmargin.
5772
57731999-09-19 Gerd Moellmann <gerd@gnu.org>
5774
5775 * syntax.c (update_syntax_table, find_defun_start, back_comment,
5776 describe_syntax, skip_chars): Remove unused variables.
5777 (back_comment, forw_comment): Add braces to if-statement with
5778 if-else as dependent statement.
5779
5780 * process.c (list_processes_1): Remove unused variables.
5781 (Fopen_network_stream, create_process): Add parentheses to
5782 conditional expressions.
5783 (create_process): Put declaration of sigchld in #if 0.
5784 (Fopen_network_stream): Removed unused variables.
5785 (Fopen_network_stream, wait_reading_process_input,
5786 wait_reading_process_input, send_process, send_process): Ditto.
5787 (toplevel): Add prototypes for set_waiting_for_input and
5788 keyboard_bit_set.
5789
5790 * abbrev.c (Fexpand_abbrev): Remove unused variables.
5791
5792 * textprop.c (Fset_text_properties): Remove unused variables.
5793 (text_property_list, verify_interval_modification,
5794 interval_has_all_properties): Ditto.
5795
5796 * callproc.c (toplevel) [HAVE_UNISTD_H]: Include unistd.h.
5797 (Fcall_process): Remove unused variable.
5798
5799 * keyboard.c (Frecursive_edit): Remove unused variable.
5800 (command_loop_1, safe_run_hooks, kbd_buffer_get_event,
5801 timer_check, make_lispy_event, menu_bar_items,
5802 menu_bar_one_keymap, menu_bar_item, parse_menu_item,
5803 parse_tool_bar_item, read_char_x_menu_prompt, read_key_sequence,
5804 kbd_buffer_get_event, make_lispy_event, read_char_x_menu_prompt,
5805 read_key_sequence): Ditto. Fread_key_sequence,
5806 Fread_key_sequence_vector, Fsuspend_emacs): Ditto.
5807 (read_key_sequence) [GOBBLE_FIRST_EVENT]: Put local variables only
5808 used when GOBBLE_FIRST_EVENT is defined in #ifdef
5809 (Fexecute_extended_command): Cast XINT to long for %ld.
5810 (toplevel) [HAVE_UNISTD_H]: Include unistd.h.
5811 (toplevel): Include sys/types.h.
5812
5813 * lisp.h (RETURN_UNGCPRO): Use do-while (0) idiom.
5814 (toplevel): Add prototypes for stuff_char, and
5815 code_convert_string_norecord.
5816
58171999-09-19 Gerd Moellmann <gerd@gnu.org>
5818
5819 * buffer.h: Add prototype for r_re_alloc.
5820
5821 * insdel.c (copy_text): Removed unused variables.
5822 (count_combining_after, count_combining_after, insert_1_both,
5823 insert_from_string_1, insert_from_buffer_1, check_markers): Ditto.
5824 (adjust_after_replace, replace_range): Add parentheses to logical
5825 expressions. Remove unused variables.
5826 (CHECK_BYTE_COMBINING_FOR_INSERT): Add parentheses to logical
5827 expression.
5828
5829 * alloc.c (Fgarbage_collect): Remove unused variable.
5830 (compact_strings): Add parentheses around assignments in
5831 conditional context.
5832 (toplevel): Put declaration of unused function clear_marks
5833 in #if 0 like its definition.
5834
5835 * lisp.h: Add prototype for shrink_regexp_cache,
5836 sweep_weak_hash_tables.
5837
58381999-09-19 Dave Love <fx@gnu.org>
5839
5840 * process.c (Fopen_network_stream): Use strerror, not gai_strerror.
5841
5842 * doc.c (read_bytecode_char): Declare arg.
5843
5844 * lisp.h: Declare Fcurrent_message, Fmake_temp_name,
5845 read_bytecode_char, Fx_hide_busy_cursor, getloadavg.
5846
58471999-09-18 Richard Stallman <rms@gnu.org>
5848
5849 * xdisp.c (echo_area_display): Turn off code that returned
5850 without doing anything when using a terminal frame.
5851
83c8f461 58521999-09-17 Richard M. Stallman <rms@gnu.org>
27271329
PR
5853
5854 * unexelf.c (unexec): Don't get confused by a short section
5855 just before the bss section.
5856
26901792
DL
58571999-09-16 Gerd Moellmann <gerd@gnu.org>
5858
5859 * emacs.c (main): Remove unused variables.
5860 (sort_args, Fkill_emacs, Fkill_emacs): Ditto.
5861
5862 * lisp.h: Add prototype for uninterrupt_malloc, memory_warnings,
5863 init_fileio_once, syms_of_sound, init_xfns, init_fns
5864 init_sound, check_message_stack.
5865
5866 * emacs.c (toplevel) [HAVE_UNISTD_H]: Include unistd.h.
5867
5868 * intervals.c (rotate_right, rotate_left): Add braces to avoid
5869 ambiguous else warning.
5870 (split_interval_left): Remove unused variables.
5871 (previous_interval, adjust_intervals_for_deletion,
5872 set_point_both, set_point_both, set_intervals_multibyte_1): Ditto.
5873 (icount, idepth, zero_length): Move into #if 0 section below
5874 original position where these are used.
5875
5876 * buffer.h [REL_ALLOC]: Add prototypes for r_alloc and r_alloc_free.
5877
5878 * buffer.c (Fkill_buffer): Remove unused variables.
5879 (Fkill_buffer, overlays_at, overlays_in, recenter_overlay_lists,
5880 fix_overlays_in_range, Fmove_overlay, Fprevious_overlay_change,
5881 init_buffer_once, (syms_of_buffer): Ditto.
5882
5883 * xrdb.c (get_fallback): Remove unused variable.
5884 (x_load_resources): Ditto. Put local variable used for Motif only
5885 in #ifdef USE_MOTIF.
5886
58871999-09-16 Gerd Moellmann <gerd@gnu.org>
5888
5889 * minibuf.c (read_minibuf): Remove unused variables.
5890 (read_minibuf, Fread_buffer, scmp, Fcompleting_read): Ditto.
5891 (do_completion): Move assignment out of conditional context.
5892 (Fdisplay_completion_list): Add parentheses to conditional expression.
5893
5894 * cm.c (toplevel) [HAVE_TERMCAP_H]: Include termcap.h.
5895
5896 * lisp.h: Add prototype for no_switch_window.
5897
5898 * window.c (Fset_window_buffer): Remove unused variables.
5899 (Fset_window_margins): Ditto.
5900
5901 * xdisp.c (resize_mini_window): Temporarily set the selected
5902 window's or Vminibuf_scroll_window's height to "fixed" around
5903 the call the change_window_height.
5904
5905 * window.c (window_fixed_size_p): Check window's height_fixed_p
5906 flag.
5907
5908 * window.h (struct window): New member height_fixed_p.
5909
5910 * dispnew.c (direct_output_forward_char): Don't use this method
5911 if showing a message or a message was just cleared because we
5912 might need to resize the mini-window.
5913
59141999-09-16 Gerd Moellmann <gerd@gnu.org>
5915
5916 * frame.c (Fdelete_frame): Correct local variable pointing to
5917 selected frame after selecting new frame.
5918
59191999-09-15 Richard Stallman <rms@gnu.org>
5920
5921 * puresize.h (BASE_PURESIZE): Increase to 525000.
5922
5923 * filelock.c (Vtemporary_file_directory): New variable.
5924 (syms_of_filelock): Set up Lisp variable.
5925
59261999-09-15 Gerd Moellmann <gerd@gnu.org>
5927
5928 * term.c (OUTPUT_IF, OUTPUT1_IF): Use do-while.
5929 (encode_terminal_code): Remove unused variables.
5930 (turn_off_face): Ditto.
5931 (toplevel): Include termcap.h if HAVE_TERMCAP_H.
5932
5933 * dispnew.c (update_frame_line): If writing whole desired line,
5934 don't clear to end of line if already at the end.
5935
59361999-09-15 Gerd Moellmann <gerd@gnu.org>
5937
5938 * xdisp.c (resize_mini_window): Don't report changed window
5939 height if it actually hasn't changed.
5940
5941 * widget.c (set_frame_size, EmacsFrameSetCharSize): Remove
5942 unused variables.
5943 (mark_shell_size_user_specified): Put in #if 0 because not used.
5944 (create_frame_gcs): Put in #if 0 because currently unused.
5945 (first_frame_p): Ditto.
5946
5947 * xmenu.c (single_menu_item, Fx_popup_menu, Fx_popup_menu,
5948 single_submenu, update_frame_menubar, set_frame_menubar,
5949 free_frame_menubar, xmenu_show, xdialog_show): Remove unused
5950 variables.
5951
5952 * print.c (PRINTFULLP): Removed because it is no longer used and
5953 is misleading.
5954 (Ferror_message_string): Remove unused variables.
5955 (print_object): Cast argument of sprintf to long for `%ld'
5956 specifier. Remove unused variable.
5957
59581999-09-14 Gerd Moellmann <gerd@gnu.org>
5959
5960 * sound.c (Fplay_sound): Remove usused variables.
5961 (be2hs): Put in #if 0 because it's currently not used.
5962
59631999-09-14 Ken Raeburn <raeburn@gnu.org>
5964
5965 * print.c (Ferror_message_string, print_error_message,
5966 print_object): Use XCAR, XCDR and XFLOAT_DATA instead of explicit
5967 member access.
5968
59691999-09-14 Gerd Moellmann <gerd@gnu.org>
5970
5971 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Put code in do-while.
5972
5973 * frame.c (Fnext_frame): Remove unused variable(s).
5974 (Fprevious_frame, Fmouse_pixel_position, frame_name_fnn_p): Ditto.
5975 (store_frame_param): Add parentheses to conditional expression.
5976 (Fmodify_frame_parameters): Remove unused variables.
5977 (Fmodify_frame_parameters, Fset_frame_size, Fset_frame_position):
5978 Ditto.
5979
5980 * xfns.c (x_set_background_color): Remove unused variable(s).
5981 (x_set_border_pixel): Ditto.
5982 (x_set_menu_bar_lines): Put local variable used only for
5983 non-toolkit case in #ifdef/#endif.
5984 (x_figure_window_size): Remove unused variable(s).
5985 (x_figure_window_size, x_window, lookup_image,
5986 xbm_read_bitmap_file_data, x_build_heuristic_mask, pbm_load,
5987 png_load, jpeg_load, gif_load, x_create_tip_frame,
5988 x_create_tip_frame, Fx_show_tip, x_set_border_pixel): Ditto.
5989
5990 * xterm.c (x_scroll_bar_handle_click): Compile only if
5991 not USE_TOOLKIT_SCROLL_BARS.
5992 (x_scroll_bar_set_handle, x_scroll_bar_note_movement): Ditto.
5993
5994 * dispextern.h: Add prototypes for gamma_correct and
5995 x_kill_gs_process.
5996
5997 * xterm.c (x_produce_glyphs): Remove unused variable(s).
5998 (x_alloc_nearest_color_for_widget, note_tool_bar_highlight,
5999 x_set_toolkit_scroll_bar_thumb): Ditto.
6000 (x_scroll_bar_create): Move local variable to the
6001 conditionally compiled section of code where it is used.
6002 (x_scroll_bar_create): Remove unused variable(s).
6003 (x_scroll_bar_remove, XTread_socket): Ditto.
6004 (XTread_socket) <ConfigureNotify>: Move variables used for
6005 non-toolkit case into conditionally compiled section of code.
6006
6007 * window.h (freeze_window_starts): Fix typo in prototype.
6008
6009 * xdisp.c (display_echo_area_1, try_window_id): Remove unused
6010 variable(s).
6011
6012 * lisp.h: Add prototype for debug_print.
6013
6014 * dispextern.h (xassert) [GLYPH_DEBUG]: Change definition
6015 to use do-while.
6016
6017 * fns.c (SXHASH_COMBINE): Add missing parentheses.
6018 (Fchar_table_range, Fset_char_table_default, mapcar1,
6019 Fyes_or_no_p, sweep_weak_hash_tables): Remove unused variable(s).
6020
6021 * lisp.h: Add prototype for getloadavg.
6022
60231999-09-14 Andreas Schwab <schwab@gnu.org>
6024
6025 * process.c (Fopen_network_stream): Avoid socket decriptor leak.
6026
6027 * lisp.h: Declare close_file_unwind.
6028
60291999-09-14 Richard Stallman <rms@gnu.org>
6030
6031 * filelock.c (get_boot_time): Make the temp name in the proper dir.
6032
60331999-09-13 Gerd Moellmann <gerd@gnu.org>
6034
6035 * xdisp.c (redisplay_window): Make sure start_at_line_beg
6036 is always set correctly.
6037
60381999-09-13 Dave Love <fx@gnu.org>
6039
6040 * xdisp.c (move_it_in_display_line_to): Make type consistent with
6041 declaration.
6042
60431999-09-13 Gerd Moellmann <gerd@delysid.gnu.org>
6044
6045 * xdisp.c (QCfile): Move here from xfns.c.
6046 (syms_of_xdisp): Initialize it.
6047 (message2_nolog): Change for Lisp_Object selected_frame.
6048 (message3_nolog, message_with_string, message,
6049 setup_echo_area_for_printing, truncate_echo_area,
6050 prepare_menu_bars, redisplay_internal, Fdump_tool_bar_row): Ditto.
6051
60521999-09-13 Dave Love <fx@gnu.org>
6053
6054 * xterm.c: Don't continue #define args for benefit of old cc.
6055 (xt_action_hook): Indent #error for benefit of K&R cc.
6056
60571999-09-13 Gerd Moellmann <gerd@delysid.gnu.org>
6058
6059 * xterm.c (XTcursor_to): Change for Lisp_Object selected_frame.
6060 (x_clear_frame, XTring_bell, XTmouse_position, XTread_socket): Ditto.
6061 (XRINGBELL): Removed.
6062
60631999-09-13 Dave Love <fx@gnu.org>
6064
6065 * xfns.c (x_put_x_image): Make type consistent with declaration.
6066
6067 * fns.c (Fmake_hash_table): Fix string continuation.
6068
60691999-09-13 Gerd Moellmann <gerd@delysid.gnu.org>
6070
6071 * xfns.c (QCfile): Moved to xdisp.c.
6072 (syms_of_xfns): Don't initialize QCfile.
6073 (check_x_frame): Change for Lisp_Object selected_frame.
6074 (check_x_display_info, x_get_resource_string): Ditto.
6075
60761999-09-13 Gerd Moellmann <gerd@gnu.org>
6077
6078 * minibuf.c (choose_minibuf_frame): Don't try to set the
6079 mini-buffer window's buffer, if the buffer is invalid.
6080
6081 * xfns.c (QCfile): Moved to xdisp.c.
6082 (syms_of_xfns): Don't initialize QCfile.
6083
6084 * xdisp.c (QCfile): Move here from xfns.c.
6085 (syms_of_xdisp): Initialize it.
6086
6087 * lisp.h (selected_frame): Add external declaration.
6088
6089 * xselect.c (x_own_selection): Change for Lisp_Object selected_frame.
6090 (Fx_store_cut_buffer_internal): Ditto.
6091 (Fx_rotate_cut_buffers_internal): Ditto.
6092
6093 * xfaces.c (frame_or_selected_frame): Change for Lisp_Object
6094 selected_frame.
6095 (Finternal_set_lisp_face_attribute): Ditto.
6096 (Finternal_get_lisp_face_attribute): Ditto.
6097 (Finternal_lisp_face_empty_p): Ditto.
6098 (Fdump_face): Ditto.
6099
6100 * term.c (OUTPUT): Change for Lisp_Object selected_frame.
6101 (OUTPUT_IF, ring_bell, set_terminal_modes, reset_terminal_modes,
6102 set_terminal_window, set_scroll_region, reassert_line_highlight,
6103 change_line_highlight, cursor_to, raw_cursor_to, clear_to_end,
6104 clear_end_of_line, clear_end_of_line_raw, clear_end_of_line_raw,
6105 encode_terminal_code, write_glyphs, term_init): Ditto.
6106
6107 * sysdep.c (reset_sys_modes): Change for Lisp_Object selected_frame.
6108 (kbd_input_ast, read_input_waiting): Ditto.
6109
6110 * minibuf.c (choose_minibuf_frame): Change for Lisp_Object
6111 selected_frame.
6112 (read_minibuf): Ditto.
6113
6114 * keyboard.c (command_loop_1): Change for Lisp_Object
6115 selected_frame.
6116 (cmd_error_internal, command_loop_1, read_char,
6117 kbd_buffer_get_event, read_avail_input,
6118 read_char_minibuf_menu_prompt, read_key_sequence, Fsuspend_emacs,
6119 interrupt_signal, quit_throw_to_read_char): Ditto.
6120
6121 * fontset.c (Ffont_info): Change for Lisp_Object selected_frame.
6122 (Ffontset_info): DItto.
6123
6124 * emacs.c (handle_USR1_signal): Change for Lisp_Object selected_frame.
6125
6126 * dispnew.c (selected_frame): Make it a Lisp_Object.
6127 (adjust_frame_glyphs_initially): Change for Lisp_Object selected_frame.
6128 (direct_output_for_insert, direct_output_forward_char,
6129 init_display): Ditto.
6130
6131 * data.c (swap_in_symval_forwarding): Change for Lisp_Object
6132 selected_frame.
6133 (set_internal): Ditto.
6134
6135 * buffer.c (Fother_buffer): Change for Lisp_Object selected_frame.
6136 (record_buffer): Ditto.
6137
6138 * frame.c (Fmake_terminal_frame): Use SELECTED_FRAME.
6139 (do_switch_frame): Change for Lisp_Object selected_frame.
6140 (Fselected_frame): Ditto.
6141 (Fframe_first_window): Use SELECTED_FRAME.
6142 (Fframe_root_window): Change for Lisp_Object selected_frame.
6143 (Fframe_selected_window, Fset_frame_selected_window, Fnext_frame,
6144 Fprevious_frame, other_visible_frames, Fdelete_frame,
6145 Fmouse_position, Fmouse_pixel_position, Fmake_frame_visible,
6146 Fmake_frame_invisible, Ficonify_frame, Fraise_frame, Flower_frame,
6147 Fframe_parameters, Fmodify_frame_parameters, Fframe_char_height,
6148 Fframe_char_width, Fframe_pixel_height, Fframe_pixel_width,
6149 Fset_frame_height, Fset_frame_width): Ditto.
6150
61511999-09-13 Gerd Moellmann <gerd@gnu.org>
6152
6153 * xdisp.c (message2_nolog): Change for Lisp_Object selected_frame.
6154 (message3_nolog, message_with_string, message,
6155 setup_echo_area_for_printing, truncate_echo_area,
6156 prepare_menu_bars, redisplay_internal, Fdump_tool_bar_row): Ditto.
6157
6158 * xmenu.c (Fx_popup_menu): Change for Lisp_Object selected_frame.
6159 (Fx_popup_dialog): Ditto.
6160
6161 * xfns.c (check_x_frame): Change for Lisp_Object selected_frame.
6162 (check_x_display_info, x_get_resource_string): Ditto.
6163
6164 * xterm.c (XTcursor_to): Change for Lisp_Object selected_frame.
6165 (x_clear_frame, XTring_bell, XTmouse_position, XTread_socket): Ditto.
6166 (XRINGBELL): Removed.
6167
6168 * window.c (Fminibuffer_window): Change for Lisp_Object
6169 selected_frame.
6170 (Fwindow_at, Fprevious_window, window_loop, select_window_1,
6171 display_buffer_1, Fdisplay_buffer, temp_output_buffer_show,
6172 Fcurrent_window_configuration, init_window_once): Ditto.
6173
6174 * frame.h (SELECTED_FRAME): New.
6175
61761999-09-12 Ken Raeburn <raeburn@gnu.org>
6177
6178 * category.c (word_boundary_p): Use XCAR and XCDR.
6179 * ccl.c (ccl_driver, resolve_symbol_ccl_program,
6180 Fregister_code_conversion_map): Likewise.
6181 * coding.c (setup_coding_system, detect_coding_system,
6182 Ffind_operation_coding_system, Fset_coding_priority_internal):
6183 Likewise.
6184 * doc.c (get_doc_string, Fdocumentation,
6185 store_function_docstring): Likewise.
6186 * editfns.c (save_restriction_restore): Likewise.
6187 * eval.c (Fcond, Fmacroexpand, Fcondition_case, wants_debugger,
6188 skip_debugger, find_handler_clause, Fautoload, Fapply,
6189 run_hook_with_args, run_hook_list_with_args, Ffetch_bytecode):
6190 Likewise.
6191 * fileio.c (Ffind_file_name_handler, Finsert_file_contents,
6192 Fwrite_region, do_auto_save_unwind, Fdo_auto_save,
6193 Fread_file_name): Likewise.
6194 * filelock.c (unlock_all_files): Likewise.
6195 * insdel.c (Fcombine_after_change_execute): Likewise.
6196 * intervals.c (adjust_intervals_for_insertion): Likewise.
6197 * keymap.c (get_keymap_1, Fkeymap_parent, Fset_keymap_parent,
6198 Fset_keymap_parent, fix_submap_inheritance, access_keymap,
6199 store_in_keymap, Fcopy_keymap, define_as_prefix,
6200 current_minor_maps, Faccessible_keymaps,
6201 accessible_keymaps_char_table, Fkey_description,
6202 Fwhere_is_internal, where_is_internal_2, where_is_internal_1,
6203 describe_buffer_bindings, describe_map_tree, shadow_lookup,
6204 describe_map): Likewise.
6205 * lread.c (Fload, load_unwind, close_load_descs, read_vector,
6206 read_list, init_lread): Likewise.
6207 * search.c (Fmatch_data): Likewise.
6208 * sunfns.c (Fsun_menu_internal): Likewise.
6209 * syntax.c (describe_syntax): Likewise.
6210 * undo.c (record_insert, record_delete, Fundo_boundary,
6211 truncate_undo_list): Likewise.
6212 * vmsproc.c (child_sig): Likewise.
6213
6214 * editfns.c (Fformat): Use XFLOAT_DATA.
6215
62161999-09-12 Gerd Moellmann <gerd@gnu.org>
6217
6218 * keyboard.c (command_loop_1): Resize mini-window to the
6219 exact size of a message displayed, if any.
6220
6221 * xdisp.c (resize_mini_window): Add parameter exact_p. Resize
6222 to exact size if exact_p is non-zero.
6223 (display_echo_area_1): Call resize_mini_window with
6224 new parameter.
6225 (redisplay_internal): Ditto.
6226 (resize_echo_area_axactly): New.
6227
6228 * minibuf.c (read_minibuf_unwind): Call resize_mini_window with
6229 new parameter.
6230
6231 * dispextern.h: Change prototype of resize_mini_window.
6232 Add prototype for resize_echo_area_axactly.
6233
6234 * xfaces.c (Fx_family_fonts): Replaces Fx_font_list.
6235 (syms_of_xfaces): Defsubr accordingly.
6236
6237 * xdisp.c (hscroll_window_tree): Choose cursor row from
6238 desired or current matrix.
6239 (redisplay_internal): Hscroll before updating.
6240
62411999-09-12 Gerd Moellmann <gerd@gnu.org>
6242
6243 * syntax.c (Fforward_word): Use prompt_end_charpos instead
6244 of minibuffer_prompt_length.
6245
6246 * minibuf.c (read_minibuf): Use prompt_end_charpos instead
6247 of minibuffer_prompt_length.
6248 (read_minibuf_unwind): Ditto.
6249 (Fminibuffer_complete_and_exit): Ditto.
6250 (Fminibuffer_complete_word): Ditto.
6251 (Fminibuffer_prompt_end): Ditto.
6252
6253 * editfns.c (Fbuffer_string): Use prompt_end_charpos instead
6254 of minibuffer_prompt_length.
6255 (Fline_beginning_position): Ditto.
6256
6257 * buffer.c (Fget_buffer_create): Use prompt_end_charpos instead
6258 of minibuffer_prompt_length.
6259 (Fmake_indirect_buffer): Ditto.
6260 (Fkill_buffer): Ditto.
6261 (Ferase_buffer): Ditto.
6262
6263 * buffer.h (prompt_end_charpos): Replaces
6264 minibuffer_prompt_length.
6265
6266 * minibuf.c (read_minibuf): Return mini-buffer contents
6267 without the prompt.
6268
6269 * editfns.c (make_buffer_string_both): Take out the code
6270 to handle mini-buffer prompts.
6271 (Fbuffer_string): Handle the prompt here, instead.
6272
6273 * xfaces.c (lface_from_face_name): Resolve face aliases.
6274 (Qmode_line): Replaces Qmodeline.
6275 (realize_basic_faces): Use Qmode_line.
6276 (syms_of_xfaces): Initialize Qmode_line.
6277
62781999-09-12 Gerd Moellmann <gerd@gnu.org>
6279
6280 * minibuf.c (read_minibuf): Set minibuf_prompt_width to the
6281 current column after inserting prompt.
6282 (Fminibuffer_prompt_width): Return minibuf_prompt_width.
6283
6284 * xfaces.c (Qframe_update_face_colors): New.
6285 (syms_of_xfaces): Initialize call.
6286 (update_face_from_frame_parameter): Call that function when
6287 the frame's background changes.
6288
62891999-09-12 Richard Stallman <rms@gnu.org>
6290
6291 * insdel.c (del_range_1): Don't treat minibuffer prompt specially.
6292
62931999-09-12 Ken Raeburn <raeburn@gnu.org>
6294
6295 * alloc.c (Fcons, pure_cons, Fpurecopy, Fgarbage_collect,
6296 mark_object, mark_buffer): Use XCAR and XCDR.
6297 * bytecode.c (Fbyte_code): Likewise.
6298 * callint.c (Fcall_interactively, Fprefix_numeric_value):
6299 Likewise.
6300 * callproc.c (Fcall_process, Fcall_process_region, child_setup,
6301 getenv_internal): Likewise.
6302 * dired.c (file_name_completion): Likewise.
6303 * fns.c (Fsafe_length, concat, Fcopy_alist, Fmember, Fmemq, Fassq,
6304 assq_no_quit, Fassoc, Frassq, Frassoc, Fdelq, Fdelete, Freverse,
6305 Fplist_get, Fplist_put, internal_equal, mapcar1): Likewise.
6306 * indent.c (Fcompute_motion): Likewise.
6307 * process.c (decode_status, Fprocess_status, Fprocess_exit_status,
6308 list_processes_1, Fstart_process, Fopen_network_stream,
6309 wait_reading_process_input, read_process_output_call,
6310 kill_buffer_processes, sigchld_handler, exec_sentinel_unwind,
6311 status_notify, wait_reading_process_input): Likewise.
6312 * textprop.c (PLIST_ELT_P, property_value, set_properties,
6313 extend_property_ranges): Likewise.
6314 * w32faces.c (Fpixmap_spec_p, merge_face_list): Likewise.
6315 * w32fns.c (x_window_to_frame, x_set_frame_parameters,
6316 x_report_frame_params, x_set_cursor_type, x_icon_type,
6317 x_figure_window_size, Fx_create_frame, w32_load_system_font,
6318 w32_load_font, enum_font_cb2, w32_list_bdf_fonts, w32_list_fonts,
6319 w32_list_synthesized_fonts, w32_find_ccl_program, Fx_list_fonts,
6320 Fw32_find_bdf_fonts, w32_find_bdf_fonts_in_dir,
6321 x_display_info_for_name, Fx_display_list): Likewise.
6322 * w32menu.c (menubar_id_to_frame, single_keymap_panes,
6323 Fx_popup_menu, Fx_popup_dialog): Likewise.
6324 * w32proc.c (Fw32_set_keyboard_layout): Likewise.
6325 * w32term.c (x_window_to_scroll_bar, w32_read_socket,
6326 w32_term_init, x_delete_display): Likewise.
6327 * xfns.c (x_window_to_frame, x_any_window_to_frame,
6328 x_non_menubar_window_to_frame, x_menubar_window_to_frame,
6329 x_top_window_to_frame, x_set_frame_parameters,
6330 x_report_frame_params, x_set_cursor_type, x_icon_type,
6331 x_figure_window_size, Fx_create_frame, x_display_info_for_name,
6332 Fx_display_list, x_create_tip_frame): Likewise.
6333 * xmenu.c (menubar_id_to_frame, single_keymap_panes,
6334 Fx_popup_menu, Fx_popup_dialog): Likewise.
6335 * xselect.c (x_own_selection, x_get_local_selection,
6336 x_handle_selection_request, x_handle_selection_clear,
6337 x_clear_frame_selections, wait_for_property_change_unwind,
6338 wait_for_property_change, x_handle_property_notify,
6339 copy_multiple_data, x_get_foreign_selection,
6340 lisp_data_to_selection_data, clean_local_selection_data,
6341 x_handle_selection_notify, Fx_get_selection_internal,
6342 x_disown_buffer_selections): Likewise.
6343 * xterm.c (x_window_to_scroll_bar, XTread_socket, x_list_fonts,
6344 x_load_font, x_find_ccl_program, x_term_init, x_delete_display):
6345 Likewise.
6346
6347 * alloc.c (make_float, make_pure_float, Fpurecopy): Use
6348 XFLOAT_DATA.
6349 * bytecode.c (Fbyte_code): Likewise.
6350 * floatfns.c (extract_float, Fexpt, Fabs, rounding_driver,
6351 fmod_float): Likewise.
6352
63531999-09-11 Richard Stallman <rms@gnu.org>
6354
6355 * xdisp.c (run_window_scroll_functions): If hook functions switch
6356 buffers, switch back after.
6357
63581999-09-11 Ken Raeburn <raeburn@gnu.org>
6359
6360 * charset.h (GET_TRANSLATION_TABLE): Use XCDR.
6361 * frame.h (FOR_EACH_FRAME): Use XCAR and XCDR.
6362 (PIXEL_X_FROM_CANON_X, PIXEL_Y_FROM_CANON_Y): Use XFLOAT_DATA.
6363 * keyboard.h (EVENT_HEAD, EVENT_START, EVENT_END, POSN_WINDOW,
6364 POSN_BUFFER_POSN, POSN_WINDOW_POSN, POSN_TIMESTAMP): Use XCAR and
6365 XCDR.
6366 * syntax.h (SYNTAX, SYNTAX_WITH_FLAGS, SYNTAX_MATCH): Use XCAR and
6367 XCDR.
6368
63691999-09-10 Richard Stallman <rms@gnu.org>
6370
6371 * xterm.c (XTread_socket): In XSetInputFocus, use RevertToParent,
6372 not RevertToPointerRoot.
6373 (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
6374 Fix the code to clear around the scroll bar.
6375
63761999-09-10 Keisuke Nishida <kxn30@po.cwru.edu>
6377
6378 * print.c: Support print-circle and related features.
6379 (Vprint_gensym_alist): Removed.
6380 (Vprint_circle, Vprint_continuous_numbering, print_number_index
6381 Vprint_number_table): New variables.
6382 (PRINT_NUMBER_OBJECT, PRINT_NUMBER_STATUS): New macros.
6383 (PRINTPREPARE, PRINTFINISH): Don't set Vprint_gensym_alist.
6384 (print, print_preprocess, print_preprocess_string, print_object):
6385 New/modified functions with print-circle feature. Use
6386 Vprint_number_table instead of Vprint_gensym_alist for print-gensym.
6387 (syms_of_print): Defined new Lisp variables `print-circle',
6388 `print-continuous-numbering', `print-number-table'.
6389
63901999-09-10 Gerd Moellmann <gerd@gnu.org>
6391
6392 * xfns.c (x_build_heuristic_mask): Accept a list `(R G B)'
6393 as background color specification instead of an integer.
6394 (image-cache-eviction-delay): Replaces image-eviction-seconds.
6395 (Vimage_cache_eviction_delay): Replaces Vimage_eviction_seconds.
6396 (clear_image_cache, syms_of_xfns): Use it.
6397 (Qpostscript): Replaces Qghostscript.
6398 (gs_type): Use it.
6399 (gs_image_p): Ditto.
6400 (syms_of_xfns): Initialize Qpostscript.
6401
64021999-09-10 Richard Stallman <rms@gnu.org>
6403
6404 * buffer.c (Ferase_buffer): Don't erase the minibuffer prompt.
6405
64061999-09-09 Richard Stallman <rms@gnu.org>
6407
6408 * editfns.c (Fline_beginning_position): Handle minibuffer prompt here.
6409
6410 * cmds.c (Fbeginning_of_line): Don't handle minibuffer prompt here.
6411
64121999-09-09 Gerd Moellmann <gerd@gnu.org>
6413
6414 * fns.c (Fmakehash): Accept just one optional argument TEST.
6415
6416 * xfns.c (QCindex): New.
6417 (syms_of_xfns): Initialize QCindex.
6418 (gif_load): Use it instead of `:image'.
6419
64201999-09-09 Richard Stallman <rms@gnu.org>
6421
6422 * fileio.c (Fwrite_region): Finish renaming CONFIRM to MUSTBENEW.
6423 (Fwrite_region) [DOS_NT]: Handle `excl' here too.
6424
64251999-09-08 Gerd Moellmann <gerd@gnu.org>
6426
6427 * xdisp.c (Qwhen): Replaces QCwhen.
6428 (syms_of_xdisp): Initialized it instead of QCwhen.
6429 (handle_single_display_prop): Use it instead of QCwhen.
6430
64311999-09-08 Ken'ichi Handa <handa@gnu.org>
6432
6433 * charset.c (translate_char): Reset MSBs of arguments of
6434 MAKE_CHAR.
6435 (CHAR_COMPONENTS_VALID_P): Fix for ASCII.
6436
64371999-09-08 Lars Magne Ingebrigtsen <larsi@gnus.org>
6438
6439 * editfns.c (Fbufsize): Accept an extra BUFFER parameter.
6440
6441 * fns.c (Fbase64_decode_region): Don't place point outside of the
6442 current accessible portion.
6443
64441999-09-07 Richard Stallman <rms@gnu.org>
6445
6446 * keymap.c (fix_submap_inheritance): Do nothing if the proper
6447 parent is an ancestor of SUBMAP; otherwise, add it as the
6448 ultimate ancestor.
6449
64501999-09-07 Gerd Moellmann <gerd@gnu.org>
6451
6452 * xdisp.c (handle_single_display_prop): Change conditional
6453 display property to `:when FORM . VALUE'.
6454
64551999-09-07 Richard Stallman <rms@gnu.org>
6456
6457 * fileio.c (Fwrite_region): Doc fix.
6458
64591999-09-07 Stefan Monnier <monnier@cs.yale.edu>
6460
6461 * fileio.c (Qexcl): New variable.
6462 (report_file_error): Handle EEXIST specially.
6463 (Fwrite_region): Special handling for CONFIRM = `excl'.
6464 (syms_of_fileio): Initialize Qexcl.
6465
64661999-09-07 Gerd Moellmann <gerd@gnu.org>
6467
6468 * xfns.c (x_set_foreground_color): Call
6469 update_face_from_frame_parameter.
6470 (x_set_background_color): Ditto.
6471 (x_set_mouse_color): Ditto.
6472 (x_set_cursor_color): Ditto.
6473 (x_set_border_color): Ditto.
6474 (x_set_scroll_bar_foreground): Ditto.
6475 (x_set_scroll_bar_background): Ditto.
6476
6477 * xfaces.c (recompute_basic_faces): Clear face cache.
6478 (Finternal_set_lisp_face_attribute): Modify frame parameters
6479 if attributes of certain faces are changed.
6480 (update_face_from_frame_parameter): New.
6481
6482 * xfaces.c (realize_basic_faces): Realize new basic faces.
6483
6484 * dispextern.h (SCROLL_BAR_FACE_ID, BORDER_FACE_ID,
6485 CURSOR_FACE_ID, MOUSE_FACE_ID): New.
6486
6487 * xfaces.c (Qscroll_bar, Qcursor, Qborder, Qmouse): New.
6488 (syms_of_xfaces): Intialize new symbols.
6489
6490 * fns.c (Fmakehash): Take one argument, test, make all the
6491 rest keyword arguments.
6492
6493 * window.c (Fset_window_margins): Make window the first argument.
6494 (set_window_buffer): Call Fset_window_margins with window as first
6495 argument.
6496
64971999-09-07 Gerd Moellmann <gerd@gnu.org>
6498
6499 * xfaces.c (Qfringe): Replaces Qmargin.
6500
65011999-09-07 Kenichi Handa <handa@etl.go.jp>
6502
6503 * charset.h: Lots of comments fixed.
6504 (PARSE_MULTIBYTE_SEQ): Make it work also for ASCII string.
6505 (STRING_CHAR_AND_CHAR_LENGTH): This macro removed.
6506
6507 * charset.c : Lots of comments fixed.
6508 (SPLIT_MULTIBYTE_SEQ): Make it work also for ASCII string.
6509 (CHAR_COMPONENTS_VALID_P): Name changed from
6510 CHAR_COMPONENT_VALID_P. Caller changed.
6511
65121999-09-06 Richard Stallman <rms@gnu.org>
6513
6514 * insdel.c (syms_of_insdel): Define Lisp variable
6515 inhibit-modification-hooks.
6516
65171999-09-06 Michael Sperber [Mr. Preprocessor] <sperber@informatik.uni-tuebingen.de>
6518
6519 * s/aix4-2.h (ALIGN_DATA_RELOC): Undefined to support new
6520 unexaix.c.
6521
6522 * s/aix3-1.h (ALIGN_DATA_RELOC): Defined to support new unexaix.c.
6523
65241999-09-06 Dave Love <fx@gnu.org>
6525
6526 * unexaix.c: New version incorporating Michael Sperber's changes
6527 from XEmacs. Should solve problems on AIX 4.3.
6528
6529 * lread.c (Vbyte_boolean_vars): New variable.
6530 (defvar_bool, syms_of_lread): Use it.
6531
65321999-09-05 Richard Stallman <rms@gnu.org>
6533
6534 * minibuf.c (read_minibuf): Put all three properties on the
6535 same range, the whole prompt.
6536
65371999-09-05 Gerd Moellmann <gerd@gnu.org>
6538
6539 * sound.c (Qplay_sound_functions): Replaces Qplay_sound_hook.
6540 (Fplay_sound, syms_of_sound): Use it.
6541 (parse_sound): Allow float volume values in the range [0, 1].
6542 (Fplay_sound): Ditto.
6543
6544 * window.c (Fset_window_vscroll): Make window the first argument,
6545 amount to scroll the second. Take non-negative vscroll as
6546 argument.
6547 (Fwindow_vscroll): Return non-negative vscroll.
6548
6549 * xfns.c (Fx_show_tip): Improve documentation.
6550
65511999-09-05 Gerd Moellmann <gerd@gnu.org>
6552
6553 * buffer.c, buffer.h, dispextern.h, dispnew.c, keyboard.c,
6554 window.c, xdisp.c, xfaces.c, xterm.c, keyboard.h: Change
6555 `top-line' and `top_line' to `header-line' and `header_line'.
6556 Likewise for similar spellings.
6557
65581999-09-05 Gerd Moellmann <gerd@gnu.org>
6559
6560 * xdisp.c (row_containing_pos): New.
6561 (try_window_id): Use it.
6562
6563 * alloc.c, dispextern.h, dispnew.c, frame.c, frame.h, keyboard.c,
6564 lisp.h, termhooks.h, window.c xdisp.c, xfaces.c, xfns.c, xterm.c:
6565 Change spelling of `toolbar' to `tool_bar' or `tool-bar'.
6566 Likewise for upper-case etc.
6567
65681999-09-05 Gerd Moellmann <gerd@gnu.org>
6569
6570 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
6571 Fix reference to renamed variable.
6572
65731999-09-04 Gerd Moellmann <gerd@gnu.org>
6574
6575 * window.c (Qwindow_size_fixed): Replaces Qfixed_window_size.
6576 (window_fixed_size_p): Use Qwindow_size_fixed instead of
6577 Qfixed_window_size.
6578 (syms_of_window): Ditto.
6579
6580 * fns.c (Fmakehash): Exchange optional test and size arguments.
6581
65821999-09-03 Gerd Moellmann <gerd@gnu.org>
6583
6584 * xterm.c (XTset_vertical_scroll_bar): Block input when clearing
6585 under newly created scroll bar.
6586 (expose_window): If window is not yet fully initialized, do
6587 nothing. This can happen when toolkit scroll bars are used and a
6588 window is split. Reconfiguring the scroll bars will generate an
6589 expose for a newly created window.
6590
6591 * frame.h (struct frame): New member `gamma'.
6592
6593 * xfns.c: Include math.h. Add extern declaration for atof in case
6594 we don't see one.
6595 (Qscreen_gamma): New.
6596 (struct x_frame_parm_table): Add prototypes, add
6597 x_set_screen_gamma.
6598 (gamma_correct): New function.
6599 (defined_color): Call it.
6600 (x_set_screen_gamma): New.
6601 (x_set_title): Add parameter old_value.
6602 (RES_TYPE_FLOAT): New.
6603 (x_get_arg): Handle RES_TYPE_FLOAT.
6604 (Fx_create_frame): Call x_default_parameter for `screen-gamma'.
6605 (lookup_pixel_color): Change call to x_alloc_nearest_color to
6606 new prototype.
6607 (lookup_rgb_color): Ditto.
6608 (syms_of_xfns): Initialize Qscreen_gamma.
6609
6610 * xterm.c (x_alloc_nearest_color_for_widget) [USE_X_TOOLKIT]:
6611 New. Allocate color for lwlib widgets.
6612 (x_alloc_nearest_color): Change parameter list include the
6613 frame on which to allocate colors. Gamma-correct colors.
6614 (x_alloc_lighter_color): Call x_alloc_lighter_color with new
6615 parameter list.
6616
6617 * xterm.h: Change protorype of x_alloc_nearest_color.
6618
66191999-09-03 Richard Stallman <rms@gnu.org>
6620
6621 * callproc.c: Delete the system-independent include of stdlib.h
6622 (leaving only the one in the WINDOWSNT conditional).
6623
66241999-09-03 Andrew Choi <choi@cs.hku.hk>
6625
6626 * callproc.c (call-process) [macintosh]: Call mac_run_command in
6627 sysdep.c. The Mac code is modeled after the DOS code.
6628
6629 * dispextern.h [macintosh]: Include macterm.h to define substitute X
6630 Window types and macros.
6631
6632 * frame.h: Do nothing if included a second time.
6633 (enum output_method): Add mac_output frame type.
6634 (union output_data): Add new alternative `mac'.
6635 (FRAME_MAC_P): New macro.
6636
6637 * frame.c (Fframep) [macintosh]: Handle mac frame type.
6638 (syms_of_frame_1): Initialize Qmac.
6639 (make_terminal_frame) [macintosh]: Initialize output_data.mac fields.
6640 (Fmake_terminal_frame) [macintosh]: Add an alternate error check.
6641 (Fmodify_frame_parameters) [macintosh]: Call
6642 mac_set_frame_parameter in macterm.c.
6643
6644 * keyboard.c [macintosh]: Set KBD_BUFFER_SIZE to a smaller value
6645 (512) because Mac compilers limit local data of a function to 32K.
6646
6647 * make-docfiles.c: Correctly handle input files with Mac-style
6648 eol's.
6649
6650 * sysdep.c: Define numerous routines to emulate Unix system calls.
6651
6652 * xfaces.c: on MacOS, define the set of colors listed in rgb.txt
6653 file of an X Window environment.
6654
6655 * xfaces.c: on MacOS, define the Lisp functions x-display-color-p,
6656 x-display-grayscale, x-color-defined-p, and x-color-values.
6657
6658 * sysdep.c [macintosh] (stat, fstat, mkdir, rmdir, utime, access)
6659 (open, creat, unlink, read, write, rename, fopen, pause, alarm)
6660 (signal, sleep, gmtime, localtime, ctime, time, index, mktemp)
6661 (getpwuid, getpwnam, dup, dup2, isatty, getgid, getegid, getuid)
6662 (geteuid, getpid, getenv, uname, opendir, closedir, readdir, getwd.):
6663 New functions, replacing POSIX features.
6664
6665 * sysdep.c [macintosh] (Mac2UnixPathname, Unix2MacPathname, CheckAlarm)
6666 (InitMyPasswd, GetTempDirName, mystrchr, mystrtok, mystrcpy):
6667 (InitEmacsPasswdDir, run_mac_command): New subroutines.
6668
6669 * sysdep.c [macintosh] (targetTicks, alarm_signal_func, myPasswdName)
6670 (myPasswd, emacsPasswdDir, emacsPasswd, myPasswdInited, mask)
6671 (myPasswdDir, TempDirName, sys_siglist): New variables.
6672
6673 * sysdep.c [macintosh] (execvp, wait, croak, fork, kill, sigsetmask)
6674 (sigblock, request_sigio, unrequest_sigio, setpgrp, pipe, symlink)
6675 (link, lstat, readlink, umask, chmod, sbrk, fsync, ioctl):
6676 Define empty stubs so Emacs will link.
6677
66781999-09-03 Gerd Moellmann <gerd@gnu.org>
6679
6680 * xdisp.c: Use XCAR and XCDR instead of XCONS.
6681
6682 * window.h: New member frozen_window_start_p.
6683
6684 * window.c (foreach_window, foreach_window_1): New.
6685 (freeze_window_start, freeze_window_starts): New.
6686 (make_window): Initialize frozen_window_start_p.
6687 (replace_window): Ditto.
6688 (Fset_window_point): Remove references to deleted variables.
6689 (Fset_window_start): Ditto.
6690
6691 * xdisp.c (Vresize_mini_config, resize_mini_frame,
6692 resize_mini_initial_height): Removed.
6693 (syms_of_xdisp): Remove references to these variables.
6694 (resize_mini_window): Don't save window configuration, freeze
6695 window starts instead. Enlarge window until displaying an empty
6696 buffer, then shrink it. Make the function externally visible.
6697 (redisplay_window): Treat frozen window start like forced start,
6698 but accept point outside of the window.
6699
6700 * dispextern.h: Add function prototype for resize_mini_window.
6701
6702 * minibuf.c (read_minibuf_unwind): Resize mini-window when
6703 reaching minibuf_level 0.
6704
6705 * lisp.h: Remove extern declarations for variables deleted from
6706 xdisp.c.
6707
6708 * dispnew.c (adjust_frame_glyphs): Remove reference to
6709 Vresize_mini_config.
6710
67111999-09-03 Gerd Moellmann <gerd@gnu.org>
6712
6713 * xfns.c (x_set_scroll_bar_width): Change conditional compilation
6714 to USE_TOOLKIT_SCROLL_BARS.
6715
6716 * xterm.c (x_scroll_bar_create): Don't clear under scroll bar
6717 here.
6718 (XTset_vertical_scroll_bar): Clarify position computations. Clear
6719 under newly created scroll bar. Put toolkit scroll bars in the
6720 middle of the area reserved for the scroll bar.
6721
67221999-09-03 Kenichi Handa <handa@etl.go.jp>
6723
6724 The following changes are for the new handling of mulitbyte
6725 sequence. Now, except for a composite character, no multibyte
6726 character in string/buffer has trailing garbage bytes. For
6727 instance, the length of string "\201\300\300" is now 2, the first
6728 character is Latin-1 A-grave, the second is raw \300.
6729
6730 * charset.h (MAKE_NON_ASCII_CHAR): Handle the case that C1 or C2
6731 are negative.
6732 (MAKE_CHAR): Don't set MSBs of C1 and C2 to 0.
6733 (VALID_MULTIBYTE_CHAR_P): This macro deleted.
6734 (PARSE_COMPOSITE_SEQ): New macro.
6735 (PARSE_CHARACTER_SEQ): New macro.
6736 (PARSE_MULTIBYTE_SEQ): New macro.
6737 (CHAR_PRINTABLE_P): New macro.
6738 (STRING_CHAR): Adjusted for the change of string_to_non_ascii_char.
6739 (STRING_CHAR_AND_LENGTH): Likewise.
6740 (STRING_CHAR_AND_CHAR_LENGTH): Define it as STRING_CHAR_AND_LENGTH.
6741 (INC_POS): Use the macro PARSE_MULTIBYTE_SEQ.
6742 (DEC_POS, BUF_INC_POS, BUF_DEC_POS): Likewise,
6743
6744 * charset.c (SPLIT_COMPOSITE_SEQ): New macro.
6745 (SPLIT_CHARACTER_SEQ): New macro.
6746 (SPLIT_MULTIBYTE_SEQ): New macro.
6747 (CHAR_COMPONENT_VALID_P): New macro.
6748 (non_ascii_char_to_string): Generate a multibyte sequence as far
6749 as possible.
6750 (string_to_non_ascii_char): The 4th arg exclude_tail_garbage is
6751 deleted. Caller changed. Use the macro SPLIT_MULTIBYTE_SEQ.
6752 (split_non_ascii_string): Likewise.
6753 (multibyte_form_length): Use the macro PARSE_MULTIBYTE_SEQ.
6754 (char_printable_p): New function.
6755 (translate_char): Check character by NATNUMP instead of INTEGERP.
6756 (unibyte_char_to_multibyte): Call char_valid_p instead of
6757 VALID_MULTIBYTE_CHAR_P.
6758 (Fmake_char_internal): Check the arguments more rigidly.
6759 (Fcharset_after): Use the macro SPLIT_MULTIBYTE_SEQ.
6760 (char_valid_p): Check the validity by CHAR_COMPONENT_VALID_P.
6761 (Fmultibyte_char_to_unibyte): Check the validity of character by
6762 CHAR_VALID_P.
6763 (chars_in_text): Call multibyte_chars_in_text.
6764 (multibyte_chars_in_text): Use the macro PARSE_MULTIBYTE_SEQ.
6765 (Fcompose_string): Use the macro STRING_CHAR_AND_LENGTH instead of
6766 STRING_CHAR_AND_CHAR_LENGTH (which is obsolete now).
6767
6768 * data.c (Faset): Adjust the way to check byte-combining
6769 possibility for the new handling of multibyte sequence.
6770
6771 * editfns.c (Fsubst_char_in_region): Likewise.
6772
6773 * fns.c (count_combining): Use the macro PARSE_MULTIBYTE_SEQ.
6774 (string_char_to_byte): Likewise.
6775 (string_byte_to_char): Likewise.
6776
6777 * indent.c (MULTIBYTE_BYTES_WIDTH): Delete the 2nd arg C. Use the
6778 macro STRING_CHAR_AND_LENGTH. Caller changed.
6779
6780 * insdel.c (count_combining_composition): New function.
6781 (count_combining_before): Adjust the way to check byte-combining
6782 possibility for the new handling of multibyte sequence. Call
6783 count_combining_composition for a composite character.
6784 (count_combining_after): Likewise.
6785
6786 * print.c (print_string): Use the macro STRING_CHAR_AND_LENGTH.
6787 (print): Likewise.
6788
6789 * dispextern.h (struct it): Change the size of the member
6790 `ctl_chars'.
6791
6792 * xdisp.c (get_next_display_element): Display incomplete multibyte
6793 sequence (e.g. \222\300) by octal form.
6794
67951999-09-02 Gerd Moellmann <gerd@gnu.org>
6796
6797 * xterm.h (VERTICAL_SCROLL_BAR_WIDTH_TRIM): Change from 2 to 0.
6798
6799 * fns.c (Fhash_table_weakness): Replaces Fhash_table_weak.
6800 (cmpfn_eql, sxhash): Use XFLOAT_DATA.
6801
68021999-09-02 Gerd Moellmann <gerd@gnu.org>
6803
6804 * buffer.c (set_buffer_internal): Never set
6805 windows_or_buffers_changed.
6806
6807 * xdisp.c (try_window_id): Reset first_unchanged_at_end_row
6808 if we have displayed to the bottom of the window.
6809
6810 * syntax.c (Fforward_word): Stop at a mini-buffer prompt end
6811 in both directions. Extend documentation.
6812
68131999-09-01 Gerd Moellmann <gerd@gnu.org>
6814
6815 * minibuf.c (read_minibuf): Flush display after setting cursor to
6816 column 0.
6817
68181999-08-31 Gerd Moellmann <gerd@gnu.org>
6819
6820 * s/freebsd.h (__FreeBSD_version): Don't define it if it is
6821 already defined. This avoids a warning from buffer.c.
6822
68231999-08-30 Gerd Moellmann <gerd@gnu.org>
6824
6825 * xterm.h (FRAME_X_FLAGS_AREA_COLS): Define it as the total width
6826 of both margins.
6827 (FRAME_X_FLAGS_AREA_WIDTH): Likewise.
6828 (FRAME_X_LEFT_FLAGS_AREA_WIDTH): New.
6829 (FRAME_X_RIGHT_FLAGS_AREA_WIDTH): New.
6830
6831 * frame.h (FRAME_WINDOW_WIDTH_ARG): Add in FRAME_FLAGS_AREA_COLS
6832 once instead of twice.
6833 (FRAME_LEFT_FLAGS_AREA_WIDTH): New.
6834
6835 * xterm.c: Remove unused bitmaps.
6836 (continued_bits, continuation_bits, overlay_bits): Change images.
6837 (x_draw_vertical_border): Use FRAME_X_RIGHT_FLAGS_AREA_WIDTH
6838 instead of FRAME_X_FLAGS_AREA_WIDTH.
6839 (x_after_update_window_line): Ditto.
6840 (x_draw_bitmap): Likewise.
6841 (x_draw_row_bitmaps): Likewise.
6842 (x_draw_glyph_string_box): Likewise.
6843 (x_draw_glyphs): Likewise.
6844 (x_scroll_run): Likewise.
6845 (expose_window_tree): Likewise.
6846 (note_mode_line_highlight): Likewise.
6847 (XTset_vertical_scroll_bar): Likewise.
6848 (x_clip_to_row): Likewise.
6849 (x_set_window_size): Likewise.
6850
6851 * xfns.c (x_figure_window_size): Use FRAME_FLAGS_AREA_COLS instead
6852 of 2 * that value.
6853
6854 * xdisp.c (window_box_width): Use FRAME_FLAGS_AREA_COLS instead of
6855 2 * that value.
6856 (window_box_left): Use FRAME_LEFT_FLAGS_AREA_WIDTH instead of
6857 FRAME_FLAGS_AREA_WIDTH.
6858
6859 * window.c (coordinates_in_window): Use
6860 FRAME_LEFT_FLAGS_AREA_WIDTH instead of FRAME_FLAGS_AREA_WIDTH.
6861 (window_internal_width): Subtract FRAME_FLAGS_AREA_WIDTH once
6862 instead of twice.
6863
6864 * widget.c (set_frame_size): Set flags_area_extra to
6865 FRAME_FLAGS_AREA_WIDTH instead of 2 * that width.
6866 (EmacsFrameSetCharSize): Ditto.
6867
6868 * dispnew.c (mode_line_string): Add FRAME_LEFT_FLAGS_AREA_WIDTH
6869 instead of FRAME_FLAGS_AREA_WIDTH.
6870
6871 * dispextern.h (WINDOW_DISPLAY_PIXEL_WIDTH): Subtract
6872 FRAME_FLAGS_AREA_COLS once.
6873 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X): Add
6874 FRAME_LEFT_FLAGS_AREA_WIDTH instead of FRAME_FLAGS_AREA_WIDTH.
6875
68761999-08-30 Gerd Moellmann <gerd@gnu.org>
6877
6878 * freebsd.h (C_SWITCH_SYSTEM): Added to let configure find headers
6879 in /usr/X11R6/include which are checked for with AC_CHECK_HEADER.
6880
68811999-08-30 Gerd Moellmann <gerd@gnu.org>
6882
6883 * fns.c (QCweakness): Replaces QCweak.
6884 (Fmake_hash_table): Ditto.
6885 (Fmakehash): Ditto.
6886 (syms_of_fns): Ditto.
6887
68881999-08-29 Richard Stallman <rms@gnu.org>
6889
6890 * search.c (compile_pattern_1): Enable RE_CHAR_CLASSES for regexp.
6891
6892 * sysdep.c (read_input_waiting): Pass read_socket_hook just 4 args.
6893
6894 * syntax.h (SYNTAX_COMMENT_NESTED, SYNTAX_FLAGS_COMMENT_NESTED):
6895 Add support for nested comments.
6896
863476d1
SM
6897 * syntax.c (Fforward_comment, scan_lists, scan_sexps_forward):
6898 Consolidate the forward comment code into the new `forw_comment'.
6899 (forw_comment): New subroutine. Added support for nested comments.
6900 (lisp_parse_state, back_comment, Fmodify_syntax_entry)
6901 (Fparse_partial_sexp): Add support for nested comments.
26901792
DL
6902
69031999-08-28 Ken Raeburn <raeburn@gnu.org>
6904
6905 * lisp.h (struct Lisp_Cons, XCAR, XCDR, struct Lisp_Float): Change
6906 names of structure elements if HIDE_LISP_IMPLEMENTATION is
6907 defined, to help detect code that uses knowledge of the Lisp
6908 internals that it shouldn't have.
6909 (XFLOAT_DATA): New macro.
6910
69111999-08-25 Gerd Moellmann <gerd@gnu.org>
6912
6913 * syntax.c (Fforward_word): If in a mini-buffer and moving
6914 backwards, stop in front of the prompt to prevent accidentially
6915 moving into the read-only prompt.
6916
6917 * window.c (Frecenter): Clear frame if called with nil or no arg.
6918
6919 * xdisp.c (resize_mini_window): Don't resize if
6920 Vmax_mini_window_height is nil. Otherwise, use a default if
6921 Vmax_mini_window_height is not ot a number.
6922 (syms_of_xdisp): Extend documentation of Vmax_mini_window_height.
6923
69241999-08-25 Alexandre Oliva <oliva@dcc.unicamp.br>
6925
6926 * unexelf.c: Merge IRIX debugging info patch from unexsgi.c
6927 * m/iris4d.h: Use unexelf for IRIX 5.*.
6928 * m/iris5d.h: Use unexelf for IRIX 6.*.
6929 * unexsgi.c: Deleted.
6930
6931 * unexelf.c: Auto-detect .sbss section.
6932 (round_up): Make it static.
6933 (unexec): Declare alignment as Elf Word. Skip ``Program
6934 segment above .bss'' test on MIPS without .sbss.
6935 Copy sections .got and .sdata1 sections. Adjust offsets in
6936 sections .sdata, .lit4, .lit8, .got and .sdata1.
6937
69381999-08-25 Gerd Moellmann <gerd@gnu.org>
6939
6940 * xdisp.c (try_window_id): Remove typo.
6941
69421999-08-24 Gerd Moellmann <gerd@gnu.org>
6943
6944 * xdisp.c (try_window_id): Recognize case that PT == ZV and in
6945 unchanged text at the bottom when computing the cursor position.
6946 (message3_nolog): Raise frame only if minibuffer_auto_raise is
6947 set.
6948
6949 * lisp.h (PVEC_TYPE_MASK): Add the bit for hash tables.
6950
69511999-08-24 Gerd Moellmann <gerd@gnu.org>
6952
6953 * xfaces.c (Qmargin): Replacement for Qbitmap_area.
6954 (realize_basic_faces): Replace Qmargin for Qbitmap_area.
6955 (syms_of_xfaces): Ditto.
6956
6957 * window.c (Fset_window_point): Reset Vresize_mini_config.
6958 (Fset_window_start): Ditto.
6959 (set_window_buffer): Ditto.
6960
6961 * dispnew.c (adjust_frame_glyphs): Reset Vresize_mini_config.
6962
6963 * xdisp.c (redisplay_window): Don't ever test just_this_one_p
6964 before calling try_window.
6965 (echo_area_display): If height has changed, update other windows.
6966 (resize_mini_frame, resize_mini_initial_height): New.
6967 (resize_mini_window): Save/restore window configuration
6968 differently.
6969
6970 * lisp.h (Vresize_mini_config, resize_mini_frame,
6971 resize_mini_initial_height): Add extern declarations.
6972
6973 * xterm.c (expose_window_tree): Fix typo CANON_Y_UNIT to
6974 CANON_X_UNIT.
6975
6976 * xfns.c [HAVE_JPEG]: Work around a warning about HAVE_STDLIB_H
6977 being redefined in jconfig.h.
6978
69791999-08-23 Ken'ichi Handa <handa@gnu.org>
6980
6981 * coding.h: Include "ccl.h" instead of "../src/ccl.h".
6982
69831999-08-22 Gerd Moellmann <gerd@gnu.org>
6984
6985 * alloc.c (mark_glyph_matrix): Mark strings only.
6986
6987 * xdisp.c (redisplay_internal): Clear garbaged frames after
6988 resizing mini-window.
6989
69901999-08-22 Gerd Moellmann <gerd@gnu.org>
6991
6992 * xdisp.c (unwind_with_echo_area_buffer): Use
6993 set_buffer_internal_1 instead of set_buffer_internal.
6994 (with_echo_area_buffer): Ditto.
6995
6996 * buffer.c (set_buffer_internal): Set windows_or_buffers_changed
6997 only if buffer is displayed somewhere.
6998
6999 * buffer.h (BUF_COMPUTE_UNCHANGED): New.
7000
7001 * insdel.c (gap_left): Use BUF_COMPUTE_UNCHANGED.
7002 (gap_right): Ditto.
7003 (modify_region): Ditto.
7004
7005 * buffer.c (modify_overlay): Use BUF_COMPUTE_UNCHANGED.
7006
7007 * xdisp.c (Vresize_mini_config): New.
7008 (resize_mini_window): Use it to save restore original window
7009 configuration
7010 (syms_of_xdisp): Initialize it.
7011
7012 * buffer.h (struct buffer): Add prevent_redisplay_optimizations_p.
7013
7014 * dispextern.h (struct glyph_matrix): Add buffer, begv, and zv.
7015
7016 * xdisp.c (reconsider_clip_changes): New.
7017 (redisplay_internal, redisplay_window): Call it.
7018 (mark_window_display_accurate, redisplay_internal): Set current
7019 matrix' buffer, begv, zv.
7020
7021 * window.c (Fset_window_hscroll): Set
7022 prevent_redisplay_optimizations_p instead of clip_changed.
7023 (Fset_window_hscroll): Ditto.
7024 (temp_output_buffer_show): Ditto.
7025 (Fset_window_vscroll): Ditto.
7026
7027 * buffer.c (reset_buffer): Set clip_changed to 0 and
7028 prevent_redisplay_optimizations_p to 1.
7029 (Fget_buffer_create): Set prevent_redisplay_optimizations_p to 1.
7030
7031 * buffer.h (BUF_UNCHANGED_MODIFIED, UNCHANGED_MODIFIED,
7032 BUF_OVERLAY_UNCHANGED_MODIFIED, OVERLAY_UNCHANGED_MODIFIED,
7033 BUF_BEG_UNCHANGED, BEG_UNCHANGED, BUF_END_UNCHANGED,
7034 END_UNCHANGED): New.
7035 (struct buffer_text): Add beg_unchanged, end_unchanged,
7036 unchanged_modified, overlay_unchanged_modified.
7037
7038 * window.h (beg_unchanged, end_unchanged, unchanged_modified,
7039 overlay_unchanged_modified): Removed.
7040 (with_echo_area_unwind_data): Don't save beg/end_unchanged.
7041 (unwind_with_echo_area_buffer): Don't restore them.
7042 (debug_beg_unchanged, debug_end_unchanged) [GLYPH_DEBUG]: Removed.
7043 (text_outside_line_unchanged_p, redisplay_internal,
7044 try_scrolling): Use/set buffer-specific beg/end_unchanged.
7045 (redisplay_window): Let try_window_id be called if more than one
7046 window is displayed. Use/set buffer-specific beg/end_unchanged.
7047 (get_last_unchanged_at_beg_row, get_first_unchanged_at_end_row,
7048 try_window_id):
7049 Use buffer-specific beg/end_unchanged.
7050
7051 * window.h (beg_unchanged, end_unchanged, unchanged_modified,
7052 overlay_unchanged_modified): Remove extern declarations.
7053
7054 * keyboard.c (command_loop_1): Set beg/end_unchanged per
7055 buffer.
7056
7057 * insdel.c (gap_left): Compute beg/end_unchanged per buffer.
7058 (gap_right): Ditto.
7059 (adjust_after_replace): Likewise.
7060 (replace_range, del_range_2, modify_region): Likewise.
7061
7062 * dispnew.c (direct_output_for_insert): Set beg_unchanged
7063 and unchanged_modified per buffer.
7064
7065 * coding.c (code_convert_region): Compute beg/end_unchanged per
7066 buffer.
7067
7068 * buffer.c (modify_overlay): Compute beg/end_unchanged
7069 per buffer.
7070 (Fget_buffer_create): Initialize new members of the buffer
7071 structure.
7072
70731999-08-22 Gerd Moellmann <gerd@gnu.org>
7074
7075 * lisp.h: Add prototype for copy_hash_table and Fcopy_hash_table.
7076
7077 * fns.c (Qkey, Qvalue): Renamed from Qkey_weak, and Qvalue_weak.
7078 (Qkey_value_weak): Removed.
7079 (make_hash_table): Use nil, `key', `value', t for weakness.
7080 (Fmake_hash_table): Ditto.
7081 (copy_hash_table): New.
7082 (Fcopy_hash_table): New.
7083
70841999-08-22 Gerd Moellmann <gerd@gnu.org>
7085
7086 * xfns.c: Call change_frame_size and do_pending_window_change with
7087 new parameter.
7088
70891999-08-21 Gerd Moellmann <gerd@gnu.org>
7090
7091 * xdisp.c (resize_mini_window): Do it for truncate-lines t as
7092 well.
7093 (redisplay_internal): Resize mini-window only if text might
7094 have changed.
7095 (display_echo_area): Reset displayed echo_area_buffer to nil
7096 at the end if we're displaying a nil message.
7097
70981999-08-21 Gerd Moellmann <gerd@gnu.org>
7099
7100 * fns.c (hash_lookup): Test with EQ before calling key comparion
7101 function.
7102 (hash_remove): Ditto.
7103 (cmpfn_eq): Removed.
7104 (cmpfn_eql): Don't test with EQ.
7105 (cmpfn_equal): Ditto.
7106 (make_hash_table): Set comparison function for `eq' to null.
7107
7108 * buffer.c, cmds.c, editfns.c, indent.c, insdel.c, buffer.h:
7109 Remove conditional compilation on NO_PROMPT_IN_BUFFER.
7110
7111 * dispextern.h (NO_PROMPT_IN_BUFFER): Removed.
7112
7113 * window.c, widget.c, process.c, keyboard.c, frame.c, xdisp.c,
7114 xterm.c: Call change_frame_size and do_pending_window_change with
7115 new parameter.
7116
7117 * dispnew.c (do_pending_window_change): Add parameter `safe'.
7118 (change_frame_size): Ditto.
7119 (change_frame_size_1): Ditto. Deley size changes if redisplaying
7120 and not called from a safe place.
7121 (window_change_signal): Call change_frame_size with new parameter.
7122
7123 * dispextern.h: Change prototypes for do_pending_window_change
7124 and change_frame_size.
7125
7126 * xfaces.c (face_at_buffer_position): Don't xassert that
7127 window's buffers equals current_buffer; this is not the
7128 case during echo area display.
7129
71301999-08-21 Gerd Moellmann <gerd@gnu.org>
7131
7132 * xdisp.c, minibuf.c: Remove conditional compilation on
7133 NO_PROMPT_IN_BUFFER.
7134
7135 * minibuf.c (Fminibuffer_prompt_end): New.
7136 (syms_of_minibuf): Defsubr it. Remove
7137 minibuffer-prompt-in-buffer.
7138 (Fminibuffer_prompt_width): Return 0 if not in mini-buffer.
7139 Extend documentation.
7140
7141 * xdisp.c (get_next_display_element): Display \r as ^M.
7142
7143 * xterm.c (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]: Clear
7144 under scroll bar widget.
7145
71461999-08-21 Gerd Moellmann <gerd@gnu.org>
7147
7148 * xdisp.c (minibuffer_scroll_overlap): Removed because not used
7149 anywhere.
7150 (unwind_redisplay): Return nil.
7151 (clear_garbaged_frames): New.
7152 (redisplay_internal): Use it.
7153 (echo_area_display): Ditto.
7154 (resize_mini_window): Mew.
7155 (display_echo_area_1): Use it to resize echo area window.
7156 (redisplay_internal): Use it to resize active mini-window.
7157
7158 * dispextern.h, lisp.h: Add function prototypes.
7159
7160 * dispnew.c (set_window_cursor_after_update): Do the
7161 cursor_in_echo_area case only for a mini-window showing
7162 a message. Don't let cursor end up after the end of a row.
7163
7164 * xdisp.c (echo_area_glyphs, echo_area_message,
7165 echo_area_glyphs_length, previous_echo_glyphs,
7166 previous_echo_area_message, previous_echo_area_glyphs_length):
7167 Removed.
7168 (Vmessage_stack, echo_area_buffer, echo_buffer,
7169 display_last_displayed_message_p, Vwith_echo_area_save_vector): New.
7170 (message2_nolog): Use set_message and clear_message.
7171 (message3): Rename parameter len to nbytes to make clear what
7172 it is.
7173 (message3_nolog): Ditto. Use set_message and clear_message.
7174 (update_echo_area): Rewritten.
7175 (with_echo_area_buffer): New.
7176 (with_echo_area_buffer_unwind_data, unwind_with_area_buffer): New.
7177 (setup_echo_area_for_printing): New.
7178 (display_echo_area, display_echo_area_1): New.
7179
7180 (current_message, current_message_1): New.
7181 (push_message, restore_message, pop_message,
7182 check_message_stack): New.
7183 (truncate_echo_area): Rewritten.
7184 (truncate_message_1): New.
7185 (set_message, set_message_1, clear_message): New.
7186 (echo_area_display): Rewritten.
7187 (redisplay_internal): Check for needed echo area update
7188 differently.
7189 (redisplay_preserve_echo_area): Rewritten.
7190 (redisplay_window): Check for mini-window displaying echo area
7191 message differently.
7192 (syms_of_xdisp): Initialize Vmessage_stack and echo area buffers.
7193 Remove initialzation of removed variables.
7194 (init_xdisp): Remove references to removed variables.
7195
7196 * dispnew.c (adjust_frame_message_buffer): Removed references
7197 to echo_area_glyphs and previous_echo_glyphs.
7198 (direct_output_for_insert): Check for mini-window displaying
7199 echo area message differently.
7200 (update_frame): Likewise.
7201 (set_window_cursor_after_update): Likewise. In echo area,
7202 don't try to set cursor on rows that aren't enabled.
7203
7204 * print.c: Remove conditional compilation on `standalone'.
7205 (glyph_len, str_to_glyph_cpy, str_to_glyph_ncpy,
7206 glyph_to_str_cpy): Remove that section because GLYPHs are no
7207 longer used in that way.
7208 (PRINTDECLARE): Add multibyte.
7209 (PRINTPREPARE, PRINTFINISH): Handle printcharfun t differently.
7210 (printbufidx): Removed.
7211 (printchar, strout): Rewritten.
7212
7213 * keyboard.c (ok_to_echo_at_next_pause): Make it a pointer to
7214 a struct kboard.
7215 (echo_kboard): New.
7216 (echo_now): Set echo_kboard to the current kboard.
7217 (cancel_echoing): Set echo_kboard to null.
7218 (cmd_error_internal): Use clear_message, remove references
7219 to echo_area_glyphs and echo_area_message.
7220 (command_loop_1): Check for echo area messages differently.
7221 (read_char): Likewise.
7222 (record_menu_key): Use clear_message.
7223 (Fexecute_extended_command): Check for echo area messages
7224 differently. Use push_message, restore_message, pop_message.
7225
7226 * alloc.c (Fgarbage_collect): Use push_message, restore_message,
7227 pop_message.
7228
7229 * emacs.c (shut_down_emacs): Call check_message_stack.
7230
7231 * lisp.h: Add function prototypes and extern declarations for
7232 new functions and variables.
7233
7234 * fileio.c (Fdo_auto_save): Use push_message, restore_message,
7235 pop_message.
7236
7237 * minibuf.c (read_minibuf): Use clear_message instead of
7238 setting echo_area_glyphs.
7239 (Fminibuffer_completion_help): Ditto.
7240
7241 * editfns.c (Fcurrent_message): Rewritten.
7242
7243 * frame.c, window.h: Remove references to echo_area_glyphs
7244 and previous_echo_glyphs.
7245
72461999-08-21 Dave Love <fx@gnu.org>
7247
7248 * aix3-2-5.h (C_DEBUG_SWITCH): Use -g -O.
7249 * aix4-1.h: Likewise.
7250
7251 * irix6-5.h (C_DEBUG_SWITCH): Set for debug and optimize.
7252
72531999-08-20 Gerd Moellmann <gerd@gnu.org>
7254
7255 * xfns.c: Remove tiff34 prefix from include.
7256
72571999-08-20 Dave Love <fx@gnu.org>
7258
7259 * cm.c: Revert previous change.
7260
72611999-08-19 Gerd Moellmann <gerd@gnu.org>
7262
7263 * xterm.c (XTset_vertical_scroll_bar): Fix previous change. Clear
7264 under scroll bar with width FRAME_SCROLL_BAR_COLS.
7265
72661999-08-18 Dave Love <fx@gnu.org>
7267
7268 * callproc.c, filelock.c, insdel.c, sysdep.c, xmenu.c: Use
7269 stdlib.h.
7270
7271 * doprnt.c: Use stdlib.h, unistd.h.
7272
7273 * config.in: Add HAVE_TERMCAP_H.
7274
7275 * cm.c: Use termcap.h.
7276
72771999-08-18 Gerd Moellmann <gerd@gnu.org>
7278
7279 * xfns.c (x_window) [USE_X_TOOLKIT]: Remove test for
7280 FRAME_X_WINDOW (f) being null at the of the function. If widgets
7281 cannot be created we will already have crashed earlier. Call
7282 lw_set_main_areas with a null menu-bar widget, so that we have
7283 a reasonable default.
7284 (Fx_create_frame): Rearranged so that Lisp errors during frame
7285 initialization cause less damage. Initialize menu bar widget
7286 here.
7287
72881999-08-18 Gerd Moellmann <gerd@gnu.org>
7289
7290 * dispnew.c (update_frame_line): Fix previous change. If writing
7291 whole line clear to end of frame.
7292
72931999-08-17 Gerd Moellmann <gerd@gnu.org>
7294
7295 * window.c (Fcoordinates_in_window_p): Return `left-bitmap-area'
7296 and `right-bitmap-area' if position is in the bitmap areas. This
7297 avoids an error when clicking on the bitmap areas. Instead, they
7298 are currently treated like clicks inside the window.
7299 (coordinates_in_window): Return 5 and 6 for bitmap areas.
7300 (Qleft_bitmap_area, Qright_bitmap_area): New.
7301 (syms_of_window): Initialize new symbols.
7302
7303 * dispnew.c (update_frame_line): If writing whole line,
7304 don't write trailing spaces unless we must.
7305
7306 * xdisp.c (unwind_redisplay): New. Resets flag redisplaying_p.
7307 (redisplay_internal): Register unwind_redisplay with
7308 register_unwind_protect.
7309 (try_window_reusing_current_matrix): If new start > old start,
7310 give up if start pos of first reusable row is not equal to new
7311 start.
7312
7313 * eval.c (Fsignal): Don't reset redisplaying_p here.
7314
7315 * xterm.c (expose_area): If row extends face to end of line,
7316 write the whole line.
7317
73181999-08-16 Gerd Moellmann <gerd@gnu.org>
7319
7320 * dispextern.h (struct it): Remove member
7321 show_trailing_whitespace_p.
7322
7323 * dispnew.c (direct_output_for_insert): Use
7324 Vshow_trailing_whitespace instead of former iterator member
7325 show_trailing_whitespace_p.
7326 (direct_output_forward_char): Don't do it if hightlighting
7327 trailing whitespace.
7328
7329 * xdisp.c (Qshow_trailing_whitespace): Removed.
7330 (Vshow_trailing_whitespace): Added.
7331 (init_iterator): Remove initialization code for
7332 show_trailing_whitespace_p.
7333 (redisplay_internal): Don't try cursor movement in this_line
7334 if showing trailing whitespace.
7335 (redisplay_window): Likewise for cursor movement in current
7336 matrix and try_window_id.
7337 (try_window_reusing_current_matrix): Likewise.
7338 (trailing_whitespace_p): Return 0 if trailing whitespace is
7339 in front of point.
7340 (display_line): Use Vshow_trailing_whitespace instead of
7341 former iterator member show_trailing_whitespace_p.
7342 (syms_of_xdisp): Add DEFVAR_LISP for show-trailing-whitespace.
7343
73441999-08-16 Gerd Moellmann <gerd@gnu.org>
7345
7346 * window.c (Fpos_visible_in_window_p): Rewritten.
7347
7348 * xfaces.c (add_to_log): Renamed from display_message.
7349 Don't display messages in echo area.
7350
7351 * xterm.c (x_draw_glyph_string_box): Use the background width
7352 of the glyph string for the width of the box.
7353
73541999-08-16 Stefan Monnier <monnier@cs.yale.edu>
7355
7356 * syntax.c (Fforward_comment): Set comstyle for Scomment_fence.
7357
73581999-08-16 Geoff Voelker <voelker@cs.washington.edu>
7359
7360 * xfns.c, w32fns.c (x_set_frame_parameters): Set foreground and
7361 background first, and then set other parameters that might
7362 depend upon their new values.
7363
73641999-08-15 Gerd Moellmann <gerd@gnu.org>
7365
7366 * xfaces.c (Vfont_list_limit): New.
7367 (syms_of_xfaces): Make it a user-variable.
7368 (DEFAULT_FONT_LIST_LIMIT): New.
7369 (sorted_font_list): If Vfont_list_limit is an integer > 0, list
7370 maximally that number of fonts, otherwise use
7371 DEFAULT_FONT_LIST_LIMIT.
7372 (Fx_font_family_list): Bind `font-list-limit' to higher values
7373 until we have all fonts.
7374 (Fxfont_list): Additionally return the full names of fonts and
7375 their registry and encoding.
7376
7377 * xterm.c (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
7378 Simplify clearing "under" scroll bar.
7379
7380 * window.c (Qfixed_window_size): New.
7381 (syms_of_window): Initialiaze it.
7382 (check_all_windows): Add return type void.
7383 (window_fixed_size_p): New. Return non-zero if window
7384 is fixed-size.
7385 (window_min_size_1): New.
7386 (window_min_size): Handle fixed-size windows.
7387 (size_window): New. Rewritten combination of set_window_height and
7388 set_window_width that handles fixed-size windows.
7389 (set_window_height): Call it.
7390 (set_window_width): Call it.
7391 (Fsplit_window): Give an error on attempt to split a fixed-size
7392 window.
7393 (change_window_height): Partly rewritten to handle fixed-size
7394 windows.
7395
73961999-08-13 Wolfgang Rupprecht <wolfgang@wsrcc.com>
7397
7398 * process.c (Fopen_network_stream): Fix previous change.
7399
74001999-08-13 Karl Heuer <kwzh@gnu.org>
7401
7402 * xdisp.c (line_number_display_limit_width): New var.
7403 (decode_mode_spec): Use it instead of hardcoded value.
7404 (syms_of_xdisp): Defvar it.
7405
74061999-08-13 Richard M. Stallman <rms@gnu.org>
7407
7408 * eval.c (run_hook_list_with_args): Gcpro `globals'.
7409 (run_hook_with_args): Likewise.
7410
7411 * window.h (struct window): New field too_small_ok.
7412
7413 * window.c (set_window_height, set_window_width):
7414 If window starts out "too small", set its too_small_ok flag.
7415 If window's too_small_ok flag is set, don't delete it
7416 unless it is so small it would cause a crash.
7417
74181999-08-13 Gerd Moellmann <gerd@gnu.org>
7419
7420 * window.c (MINSIZE): Removed.
7421 (window_min_size): New.
7422 (set_window_height): Use window_min_size.
7423 (change_window_height): Ditto.
7424
74251999-08-12 Gerd Moellmann <gerd@gnu.org>
7426
7427 * indent.c (vmotion): Don't add in mini-buffer prompt width
7428 if prompts are inserted into mini-buffer.
7429
74301999-08-12 Wolfgang Rupprecht <wolfgang@wsrcc.com>
7431
7432 * config.in: Add HAVE_GETADDRINFO.
7433 * process.c (Fopen_network_stream): Use getaddrinfo.
7434
74351999-08-11 Gerd Moellmann <gerd@gnu.org>
7436
7437 * xdisp.c (get_overlay_arrow_glyph_row): Set the charpos of
7438 glyphs to -1.
7439
7440 * xdisp.c (face_before_or_after_it_pos): If position after
7441 or before iterator's current position in the buffer is out
7442 of bounds, return the iterator's original face id.
7443
7444 * dispnew.c (mirror_make_current): If desired row isn't enabled,
7445 just swap glyphs pointers between current and desired row.
7446 (build_frame_matrix_from_leaf_window) [GLYPH_DEBUG]: Copy
7447 desired matrix method string to current matrix.
7448
74491999-08-11 Kenichi Handa <handa@etl.go.jp>
7450
7451 * lisp.h (CHAR_MODIFIER_MASK): New macro.
7452
7453 * lread.c (read_escape): For Control modifier, pay attention to
7454 multibyte character.
7455 (read1): Likewise. Singal error or a multibyte character which
7456 has a modifer bit. Check validity of Shift modifer.
7457
7458 * charset.c (non_ascii_char_to_string): Handle modifier bits as
7459 the same as Lisp reader.
7460
74611999-08-10 Richard M. Stallman <rms@gnu.org>
7462
7463 * charset.h (BCOPY_SHORT): Fix typo `unsigined'.
7464
74651999-08-10 Alexandre Oliva <oliva@dcc.unicamp.br>
7466
7467 * unexelf.c [__linux__ && __alpha__] (HAS_SBSS_SECTION): Define.
7468
74691999-08-10 Eli Zaretskii <eliz@gnu.org>
7470
7471 * msdos.c (IT_set_face): Abort if the default face is not realized
7472 and cached.
7473 (IT_write_glyphs): Reset the screen face to the default face
7474 before writing glyphs.
7475
7476 * xfaces.c (realize_default_face) [MSDOS]: Don't take default
7477 colors from the frame here.
7478 (realize_tty_face) [MSDOS]: Do it here. Update the face
7479 attributes with the actual name of the color taken from the
7480 frame.
7481
7482 * dosfns.c (msdos_stdcolor_name): Remove const from return value.
7483 * dosfns.h (msdos_stdcolor_name): Ditto for the prototype.
7484
7485 * frame.c (Fframe_parameters): Swap foreground and background
7486 colors returned in frame parameters if the frame has reverse in
7487 its parameter alist.
7488 (Fmake_terminal_frame): Make a unique copy of face_alist for
7489 each frame.
7490
74911999-08-07 Richard Stallman <rms@gnu.org>
7492
7493 * buffer.c (Fprevious_overlay_change): Just return
7494 the answer obtained from overlays_at.
7495
7496 * xfns.c (xpm_load) [!XpmAllocCloseColors]:
7497 Use XpmCloseness and attrs.closeness instead.
7498
74991999-08-06 Richard Stallman <rms@gnu.org>
7500
7501 * lread.c (Feval_buffer): New arg DO_ALLOW_PRINT.
7502
75031999-08-06 Geoff Voelker <voelker@cs.washington.edu>
7504
7505 * dired.c (directory_files_internal, Fdirectory_files_and_attributes,
7506 Ffile_attributes_lessp): New functions.
7507 (Fdirectory_files): Use directory_files_internal.
7508 (syms_of_dired): Initialize Fdirectory_files_and_attributes,
7509 Ffile_attributes_lessp.
7510
7511 * w32.c (stat): Check for directory ending in separator when
7512 doing readdir fast path.
7513
7514 * w32fns.c (x_set_icon_type): Support setting frame icons.
7515 * w32term.c (x_bitmap_icon): New function.
7516 (x_make_frame_visible, x_iconify_frame): Invoke x_bitmap_icon.
7517
75181999-08-06 Gerd Moellmann <gerd@gnu.org>
7519
7520 * xdisp.c (set_iterator_to_next): After delivering a character
7521 from a display vector, restore face and charset to what they were
7522 before the display vector was processed.
7523
75241999-08-06 Gerd Moellmann <gerd@gnu.org>
7525
7526 * xdisp.c (reseat_at_next_visible_line_start): New parameter
7527 on_newline_p.
7528 (set_iterator_to_next): After delivering last char
7529 from display vector, reseat on next visible line start if
7530 dpvec_char_len < 0.
7531 (next_element_from_buffer): Set dpvec_char_len to -1 for
7532 selective display.
7533
75341999-08-06 Gerd Moellmann <gerd@gnu.org>
7535
7536 * xdisp.c (compute_line_metrics): If first line's physical ascent
7537 is larger than its logical ascent, use the physical ascent, and
7538 make the row taller. Set row's overlapping_p flag.
7539
7540 * dispnew.c (redraw_overlapping_rows): Use flag overlapping_p.
7541 (direct_output_for_insert): Ditto.
7542
7543 * dispextern.h (struct glyph_row): Add overlapping_p.
7544
7545 * xterm.c (x_draw_phys_cursor_glyph): Redraw overlaps.
7546
7547 * dispextern.h (MATRIX_ROW_OVERLAPS_PRED_P): New.
7548 (MATRIX_ROW_OVERLAPS_SUCC_P): New.
7549
7550 * dispnew.c (direct_output_for_insert): Don't use this method if
7551 row is overlapped by others.
7552 (update_text_area): Write full line if current line is overlapped.
7553 (redraw_overlapped_rows): New.
7554 (update_window): Call it.
7555 (redraw_overlapping_rows): New.
7556 (update_window): Call it.
7557 (scrolling_window): Make sure overlapped_p flag in current rows is
7558 unchanged.
7559 (row_equal_p): Take rows overlapped_p flag into account.
7560
7561 * dispextern.h (struct glyph_row): Add flag overlapped_p.
7562
7563 * xterm.c (x_fix_overlapping_area): New.
7564 (x_redisplay_interface): Add x_fix_overlapping_area.
7565
7566 * dispnew.c (adjust_glyphs): Block input while adjusting matrices.
7567
75681999-08-06 Gerd Moellmann <gerd@gnu.org>
7569
7570 * xterm.c (x_draw_glyphs): Add parameter overlaps_p.
7571 (struct glyph_string): Add member for_overlaps_p.
7572 (x_get_glyph_string_clip_rect): If glyph string draws foreground
7573 of overlapping rows, clip to window bottom.
7574 (x_fill_glyph_string): Add parameter overlaps_p.
7575 (x_fill_composite_glyph_string): Ditto.
7576 (BUILD_GLYPH_STRINGS): Ditto.
7577 (BUILD_CHAR_GLYPH_STRINGS): Ditto.
7578 (x_draw_glyph_string): Don't draw anything but the foreground
7579 if glyph string draws row overlaps.
7580
7581 * dispnew.c (direct_output_for_insert): Don't use this
7582 optimization for rows that overlap others.
7583 (update_window_line): Return non-zero if display has changed.
7584 (update_text_area): Ditto.
7585 (update_window): Record if display has been changed.
7586
7587 * dispextern.h (MATRIX_ROW_OVERLAPPING_P): New.
7588
7589 * dispextern.h (struct redisplay_interface): Add
7590 fix_overlapping_area.
7591
7592 * xterm.c (x_append_glyph): Set glyph flag overlaps_vertically_p.
7593
7594 * dispextern.h (struct glyph): Add overlaps_vertically_p.
7595
7596 * xterm.c (x_produce_image_glyph): Compute iterator's physical
7597 ascent and descent.
7598 (x_produce_stretch_glyph): Ditto.
7599 (x_produce_glyphs): Ditto.
7600
7601 * xdisp.c (init_iterator): Reset physical line height info
7602 after producing special glyphs.
7603 (display_toolbar_line): Set physical line height info.
7604 (compute_line_metrics): Ditto.
7605 (display_line): Ditto.
7606 (display_string): Ditto.
7607
7608 * term.c (produce_glyphs): Set iterator's physical height
7609 information.
7610
7611 * dispnew.c (blank_row): Compute glyph row's physical height.
7612 (row_equal_p): Take physical row heights into account.
7613 (direct_output_for_insert): Ditto.
7614 (update_text_area): Ditto.
7615
7616 * dispextern.h (struct glyph_row): Add phys_ascent and
7617 phys_height.
7618 (struct it): Add phys_ascent, phys_descent, max_phys_ascent,
7619 max_phys_descent.
7620
76211999-08-04 Stefan Monnier <monnier@cs.yale.edu>
7622
7623 * buffer.c (switch_to_buffer_1): New subroutine, taken out from
7624 Fswitch_to_buffer.
7625 (no_switch_buffer): New function.
7626 (Fswitch_to_buffer): Call them. Don't get confused
7627 by "same-window" buffers in a dedicated frame.
7628
7629 * window.c (display-buffer): Don't get confused
7630 by "same-window" buffers in a dedicated frame.
7631
76321999-08-04 Andreas Schwab <schwab@gnu.org>
7633
7634 * insdel.c (insert_from_string_1): Check gap size against number
7635 of outgoing bytes, not incoming bytes.
7636
76371999-08-03 Tom Breton <tob@world.std.com>
7638
7639 * lread.c (read1): Added circular reading code to #N=.
7640 (SUBSTITUTE): New macro.
7641 (seen_list): New variable.
7642 (substitute_object_in_subtree): New function.
7643 (substitute_object_recurse): New function.
7644 (substitute_in_interval): New function.
7645
76461999-08-02 Eli Zaretskii <eliz@gnu.org>
7647
7648 * Makefile.in (frame.o, sysdep.o, xfaces.o): Depend on dosfns.h.
7649
7650 * frame.c (make_terminal_frame): Don't call init_frame_faces if
7651 noninteractive, for termcap frames as well.
7652
7653 * sysdep.c (init_sys_modes): Call init_frame_faces for termcap
7654 frames.
7655
76561999-08-01 Richard Stallman <rms@gnu.org>
7657
7658 * fns.c (internal_equal): Correct overlay comparison.
7659
83c8f461 76601999-07-31 Richard M. Stallman <rms@gnu.org>
26901792
DL
7661
7662 * xfns.c (x_set_internal_border_width):
7663 Call do_pending_window_change. Don't block input, don't call XFlush.
7664 (x_set_vertical_scroll_bars): Call do_pending_window_change.
7665 (x_set_scroll_bar_width, x_set_font): Likewise.
7666
7667 * frame.c (Fset_frame_height): Call do_pending_window_change.
7668 (Fset_frame_width, Fset_frame_size): Likewise.
7669
7670 * xterm.c (x_set_window_size): When calling change_frame_size,
7671 specify 1 for DELAY.
7672
7673 * widget.c (EmacsFrameSetCharSize): Don't call
7674 do_pending_window_change here.
7675
76761999-07-30 Dave Love <fx@gnu.org>
7677
7678 * config.in: Add HAVE_STDLIB_H.
7679
76801999-07-30 Richard M. Stallman <rms@gnu.org>
7681
7682 * process.c (create_process): Detect failure of `pipe'.
7683
76841999-07-30 Keisuke Nishida <kei@psn.net>
7685
7686 * alloc.c (allocate_vectorlike): Add missing increment.
7687
7688 * data.c (Fdefalias): Call Ffset instead of duplicating code.
7689
7690 * keymap.c (get_keymap_1, get_keyelt): Check the type of OBJECT
7691 before calling indirect_function.
7692
76931999-07-30 Eli Zaretskii <eliz@gnu.org>
7694
7695 * dispextern.h (load_color, lookup_derived_face): Declare
7696 prototypes.
7697
7698 * dispnew.c (init_display) [MSDOS]: Don't initialize frame faces,
7699 it will be done later.
7700
7701 * frame.c (make_terminal_frame) [MSDOS]: Don't call
7702 init_frame_faces if non-interactive.
7703 (Fframe_parameters) [MSDOS]: Replace indexing into colornames[]
7704 array with a call to msdos_stdcolor_name. The font name is now
7705 "ms-dos", consistent with realize_tty_face.
7706
7707 * keyboard.c (cmd_error_internal): Don't kill Emacs if this is an
7708 MSDOS frame.
7709
7710 * window.c (Fset_window_configuration) [MSDOS]: Don't call
7711 x_set_toolbar_lines.
7712
7713 * xfaces.c (load_color): Remove static from definition and remove
7714 prototype.
7715 [MSDOS]: Add a DOS-specific version of load_color.
7716 (lookup_face): Replace FRAME_TERMCAP_P with !FRAME_WINDOW_P.
7717 (lookup_derived_face): New function.
7718 (realize_default_face): Support MSDOS frames.
7719 [MSDOS]: If fore/background colors are unspecified, inherit them
7720 from the frame.
7721 (realize_face): Support MSDOS frames.
7722 (realize_tty_face): Support MSDOS frames.
7723 [MSDOS]: If the face color is not in Vface_tty_color_alist, call
7724 load_color to try to find a suitable approximation. If the face
7725 is inverse-video, swap the foreground and background colors.
7726
7727 * dosfns.c (msdos_stdcolor_name, msdos_stdcolor_idx): New
7728 functions.
7729
7730 * dosfns.h (msdos_stdcolor_name, msdos_stdcolor_idx): Declare.
7731
7732 * msdos.h: Remove redundant declarations (most of them are now in
7733 dispextern.h).
7734
7735 * msdos.c (IT_set_face): Rewritten for the new redisplay engine.
7736 Use default frame colors if the face doesn't specify them; invert
7737 the colors if highlight is ON.
7738 (IT_write_glyphs): Rewritten for the new redisplay engine.
7739 (IT_change_line_highlight): Add (unused) parameter Y, since that's
7740 how the hook is called by term.c.
7741 (IT_copy_glyphs): New function, copies an area of the display in
7742 video RAM.
7743 (IT_insert_glyphs): Rewritten to DTRT instead of aborting, since
7744 redisplay now calls it even if char_ins_del_ok is zero.
7745 (IT_set_frame_parameters): Prototype changed. Calls the new
7746 load_color. Puts the new fore/background colors into the default
7747 face on current frame.
7748 (IT_menu_display): Rewritten to handle the new struct glyph
7749 instead of a char array.
7750 (XMenuActivate): Call lookup_derived_face to create and use
7751 special faces for the pop-up and drop-down menus.
7752
77531999-07-29 Gerd Moellmann <gerd@gnu.org>
7754
7755 * xterm.c (x_set_toolkit_scroll_bar_thumb): Don't call
7756 XawScrollbarSetThumb if thumb parameters haven't changed because
7757 that function apparently isn't optimized for this case.
7758
77591999-07-29 Eli Zaretskii <eliz@gnu.org>
7760
7761 * msdos.c (getdefdir): Don't return failure indication when
7762 _fixpath sets errno to ENOSYS.
7763
77641999-07-28 Gerd Moellmann <gerd@gnu.org>
7765
7766 * xdisp.c (string_char_and_length): New. Use it everywhere
7767 instead of STRING_CHAR_AND_LENGTH in xdisp.c.
7768
77691999-07-28 Kenichi Handa <handa@etl.go.jp>
7770
7771 * fns.c (count_combining): New function.
7772 (struct textprop_rec): New structure.
7773 (concat): Copy text properties correctly when byte combining
7774 occurs.
7775
77761999-07-28 Gerd Moellmann <gerd@gnu.org>
7777
7778 * xterm.c (x_setup_relief_color): Don't try smart color allocation
7779 if display is mono.
7780 (x_draw_row_bitmaps): If face has stipple, don't switch
7781 to foreground color for clearing areas, and set the fill style.
7782
7783 * xfaces.c (load_face_colors): Load background color if setting
7784 stipple, too.
7785 (prepare_face_for_display): Use FillOpaqueStippled instead of
7786 FillStippled.
7787
77881999-07-26 Ken'ichi Handa <handa@gnu.org>
7789
7790 * xterm.c (x_find_ccl_program): Add casting.
7791
7792 * w32fns.c (w32_find_ccl_program): Add casting.
7793
77941999-07-27 Gerd Moellmann <gerd@gnu.org>
7795
7796 * dispextern.h (struct glyph_row): Flag internal_border_p removed.
7797
7798 * xfns.c (x_create_tip_frame): Don't set bitmapIcon resource
7799 because this will try to access a nonexisting widget.
7800
78011999-07-26 Markus Rost <rost@gnu.org>
7802
7803 * fns.c (Fgethash): Fix order of variables (patch by gerd).
7804 (Fputhash): Ditto.
7805 (Fremhash): Ditto.
7806
78071999-07-26 Gerd Moellmann <gerd@gnu.org>
7808
7809 * widget.c (EmacsFrameSetCharSize): Don't add XtNborderWidth
7810 value to frame width and height.
7811
7812 * xterm.c (x_get_glyph_string_clip_rect): Take internal border
7813 into account for full-width windows. Don't add scroll bar width
7814 to width of clip rect.
7815 (x_draw_glyph_string_box): Add 1 to right x of full width lines.
7816 (x_set_glyph_string_background_width): Add 1 to background width.
7817 (x_draw_glyphs): Take internal border into account for full-width
7818 lines.
7819
78201999-07-26 Richard M. Stallman <rms@gnu.org>
7821
7822 * xfns.c (x_set_mouse_color): Always unload the old color.
7823 Don't allow nil as color value.
7824 (x_set_cursor_color, x_set_background_color, x_set_foreground_color):
7825 Always unload the old color.
7826
7827 * indent.c (Fmove_to_column): Extend end of line only if FORCE is t.
7828
78291999-07-26 Karl Heuer <kwzh@gnu.org>
7830
7831 * fns.c (Fy_or_n_p): Doc fix.
7832
78331999-07-26 Kenichi Handa <handa@etl.go.jp>
7834
7835 * ccl.h (setup_ccl_program): The type is changed to `int'.
7836
7837 * ccl.c (ccl_driver) <CCL_Call>: Now CCL program ID to call may be
7838 stored in the following CCL code. Adjusted for the change of
7839 Vccl_program_table.
7840 (resolve_symbol_ccl_program): Adjusted for the new style of
7841 embedded symbols (SYMBOL . PROP) in CCL compiled code. Return Qt
7842 is resolving failed.
7843 (ccl_get_compiled_code): New function.
7844 (setup_ccl_program): Function type changed from `void' to `int'.
7845 Resolve symbols in CCL_PROG.
7846 (Fccl_program_p): New function.
7847 (Fccl_execute): Get compiled CCL code by just calling
7848 setup_ccl_program.
7849 (Fccl_execute_on_string): Likewise.
7850 (Fregister_ccl_program): Adjusted for the change of
7851 Vccl_program_table.
7852
7853 * coding.c (setup_coding_system): Get compiled CCL code by just
7854 calling setup_ccl_program.
7855
7856 * xterm.c (x_find_ccl_program): Get compiled CCL code by just
7857 calling setup_ccl_program.
7858
7859 * w32fns.c (w32_find_ccl_program): Get compiled CCL code by just
7860 calling setup_ccl_program.
7861
78621999-07-23 Gerd Moellmann <gerd@gnu.org>
7863
7864 * xfaces.c (frame_update_line_height): Just use the height of the
7865 frame's fontset or font, instead of taking face fonts into
7866 account.
7867
7868 * xdisp.c (get_next_display_element): Display DEL as `^?'.
7869
78701999-07-23 Richard M. Stallman <rms@gnu.org>
7871
7872 * window.c (Fsplit_window): For default size, round up for left window.
7873
78741999-07-21 Joe Ramey <ramey@ti.com>
7875
7876 * filelock.c (lock_if_free): Return -1 if check_lock_owner
7877 has returned -1 (lockfile exists but is not a symlink?).
7878
78791999-07-20 Gerd Moellmann <gerd@gnu.org>
7880
7881 * xterm.c (x_draw_bar_cursor): Use scratch_cursor_gc to
7882 because of a change in cursor_gc made in 20.4.
7883
78841999-07-19 Gerd Moellmann <gerd@gnu.org>
7885
7886 * xterm.c (x_calc_absolute_position): Subtract menu bar height
7887 for YNegative, if using X toolkit.
7888
7889 * xfns.c (x_real_positions): Don't subtract window borders
7890 from positions returned.
7891
78921999-07-17 Gerd Moellmann <gerd@gnu.org>
7893
7894 * xrdb.c (x_load_resources): Set double-click time defaults
7895 for Motif list boxes from double-click-time.
7896
7897 * fns.c (Vhash_table_tests): Remvoed.
7898 (Qhash_table_test): New.
7899 (syms_of_fns): Initialize Qhash_table_test.
7900 (Fmake_hash_table): Look up user-defined tests in symbol prop
7901 `hash-table-test'.
7902 (Fdefine_hash_table_test): Store test and hash function as
7903 symbol prop `hash-table-test'.
7904 (make_hash_table): Add parameters user_test and user_hash.
7905
7906 * window.c (set_window_buffer): Set window margins for tty
7907 frames, too.
7908 (Fset_window_margins): Ditto.
7909
7910 * term.c (append_glyph): Use glyph area of iterator instead of
7911 always TEXT_AREA.
7912
7913 * dispnew.c (update_frame_1): Add left margin width to cursor
7914 hpos.
7915 (direct_output_for_insert): Ditto.
7916 (direct_output_forward_char): Ditto.
7917
7918 * dispnew.c (adjust_glyph_matrix): Set glyph matrix' top_line_p.
7919
7920 * dispextern.h (struct glyph_matrix): Add top_line_p.
7921
79221999-07-16 Gerd Moellmann <gerd@gnu.org>
7923
7924 * frame.h (FRAME_WINDOW_REDISPLAY_P): Removed. Use FRAME_WINDOW_P
7925 instead.
7926
7927 * fns.c (cmpfn_eq): Add hash code parameters.
7928 (cmpfn_eql): Ditto.
7929 (cmpfn_equal): Ditto, and compare hash codes before calling Fequal.
7930 (cmpfn_user_defined): Likewise.
7931
79321999-07-15 Gerd Moellmann <gerd@gnu.org>
7933
7934 * lisp.h (DEFAULT_REHASH_THRESHOLD): Changed to 0.8.
7935
7936 * fns.c (maybe_resize_hash_table): Correct computation of
7937 index vector size.
7938 (make_hash_table): Ditto.
7939 (Fmakehash): New.
7940
7941 * xdisp.c (echo_area_display): Don't call redraw_garbaged_frames.
7942
7943 * alloc.c (gc_sweep): Call sweep_weak_hash_tables.
7944 (survives_gc_p): Make it externally visible.
7945 (mark_object): Ditto.
7946
7947 * fns.c (remove_hash_entry): Removed.
7948 (sweep_weak_hash_tables): New.
7949
7950 * print.c (print): Print more information about hash tables.
7951
7952 * xfns.c (image_spec_hash): Removed.
7953 (lookup_image): Use sxhash instead of image_spec_hash.
7954 (image_spec_equal_p): Removed.
7955 (lookup_image): Use Fequal instead of image_spec_equal_p.
7956
79571999-07-14 Gerd Moellmann <gerd@gnu.org>
7958
7959 * lisp.h (P_): Moved to top of file.
7960
7961 * fns.c (make_hash_table): Set new members.
7962
7963 * alloc.c (mark_object): Mark hash table's user_hash_function.
7964 Mark index vector for weak hash tables.
7965
7966 * lisp.h (struct Lisp_Hash_Table): Add user_cmp_function,
7967 user_hash_function, cmpfn, and hashfn.
7968
7969 * fns.c (build_hash): Removed.
7970 (hash_test): Removed.
7971 (cmpfn_eq, cmpfn_eql, cmpfn_equal, cmpfn_user_defined): New.
7972 (hashfn_eq, hashfn_eql, hashfn_equal, hashfn_user_defined): New.
7973
79741999-07-13 Gerd Moellmann <gerd@gnu.org>
7975
7976 * alloc.c (survives_gc_p): New.
7977
7978 * print.c (print): Add hash table handling.
7979
7980 * alloc.c (mark_object): Add code to mark hash tables.
7981
7982 * lisp.h (GC_HASH_TABLE_P): New.
7983
7984 * emacs.c (main): Call init_fns.
7985
7986 * fns.c (init_fns): New.
7987
7988 * fns.c: Add hash table implementation.
7989
7990 * lisp.h (PVEC_HASH_TABLE): New.
7991 (struct Lisp_Hash_Table): New.
7992 (XHASH_TABLE): New.
7993 (XSET_HASH_TABLE): New.
7994 (HASH_TABLE_P): New.
7995 (CHECK_HASH_TABLE): New.
7996 (DEFAULT_HASH_SIZE): New.
7997 (DEFAULT_REHASH_THRESHOLD): New.
7998 (DEFAULT_REHASH_SIZE): New.
7999
8000 * xterm.c (x_draw_glyphs): Add parameters real_start and real_end.
8001 (x_write_glyphs): Compute overwritten cursor using real start
8002 and end positions of display.
8003 (x_insert_glyphs): Ditto.
8004
80051999-07-10 Gerd Moellmann <gerd@gnu.org>
8006
8007 * keyboard.c (read_char): Use message3_nolog to show help-echo.
8008
8009 * dispnew.c (blank_row): Add y-position as parameter. Compute
8010 visible height.
8011
8012 * xdisp.c (next_element_from_string): Give padding spaces
8013 a position of -1.
8014
8015 * dispnew.c (adjust_glyph_matrix): Some work to support
8016 marginals areas on tty frames in a future version.
8017 (allocate_matrices_for_frame_redisplay): Ditto.
8018
8019 * xdisp.c (display_line): At ZV, set glyph row's displays_text_p
8020 to zero if number of glyphs in the row is <= 1.
8021
80221999-07-09 Gerd Moellmann <gerd@gnu.org>
8023
8024 * dispnew.c (buffer_posn_from_coords): Take left marginal area
8025 into account.
8026
8027 * xdisp.c (handle_display_prop): Don't reset area if handing
8028 a property from a string that came from a `display' property.
8029 (handle_single_display_prop): Don't handle recursive `display'
8030 properties.
8031 (handle_single_display_prop): Handle some display property
8032 forms for terminal frames.
8033 (Qimage): Moved here from xfns.c.
8034
8035 * dispextern.h (struct it): New field string_from_display_prop_p.
8036
8037 * xterm.c (x_clip_to_row): Don't let clip_rect include top
8038 line.
8039
80401999-07-08 Gerd Moellmann <gerd@gnu.org>
8041
8042 * xdisp.c (handle_single_display_prop): Handle `:when FORM'.
8043
8044 * window.c (set_window_buffer): Set window's vscroll to zero.
8045
8046 * xdisp.c (QCwhen): New.
8047 (display_prop_end): New.
8048 (handle_single_display_prop): Use it.
8049 (debug_method_add): Print buffer name if tracing.
8050 (try_window_reusing_current_matrix): Compute visible height
8051 of reused rows. Fix cursor position calculation in case of
8052 top-line.
8053
8054 * dispextern.h (struct redisplay_interface): Add parameter
8055 cursor_on_p to update_window_end_hook.
8056
8057 * xterm.c (x_update_window_end): Add parameter cursor_on_p.
8058
80591999-07-07 Gerd Moellmann <gerd@gnu.org>
8060
8061 * xdisp.c (redisplay_internal): Ensure that redisplayinp_p
8062 doesn't become negative when decrementing it.
8063
8064 * eval.c (Fsignal): Reset redisplaying_p to zero.
8065
8066 * xdisp.c (try_window_reusing_current_matrix): Call hooks
8067 for window update.
8068 (try_window_id): Ditto.
8069
8070 * xterm.c (x_clear_end_of_line): Handle top-line correctly.
8071 (x_scroll_run): Ditto.
8072 (any_help_event_p): New.
8073 (x_initialize): Set it to zero.
8074 (XTread_socket): Clear help echo only if any_help_event_p.
8075
8076 * xdisp.c (init_iterator): Set top_line_p.
8077 (start_display): Use correct initial y if top-line is present.
8078 (make_cursor_line_fully_visible): Bug fixes for top-line.
8079 (try_scrolling): Ditto.
8080 (try_window_reusing_current_matrix): Ditto.
8081
8082 * dispextern.h (struct it): Add top_line_p.
8083
8084 * dispnew.c (shift_glyph_matrix): Move some computations out
8085 of the loop.
8086
8087 * dispnew.c (margin_glyphs_to_reserve): Use NUMBERP and
8088 XFLOATINT.
8089
80901999-07-06 Gerd Moellmann <gerd@gnu.org>
8091
8092 * dispnew.c (update_frame_1): When setting cursor in echo area,
8093 skip only over padding spaces at the end.
8094
8095 * xfaces.c (realize_tty_face): Set face's font_name field to
8096 "tty".
8097
8098 * term.c (update_end): Turn cursor on only if selected window's
8099 cursor_off_p flag is not set.
8100
81011999-07-05 Gerd Moellmann <gerd@gnu.org>
8102
8103 * term.c (TS_cursor_visible): Renamed from TS_visual_mode.
8104 (TS_cursor_normal): Renamed from TS_end_visual_mode.
8105 (TS_cursor_invisible): New.
8106 (term_init): Initialize TS_cursor_invisible.
8107 (tty_hide_cursor): New.
8108 (tty_show_cursor): New.
8109 (update_end): Show tty cursor.
8110 (update_begin): Hide tty cursor to prevent cursor flickering
8111 during redisplays triggered by timers (stealth fontification).
8112
8113 * keyboard.c (make_lispy_event) <TOOLBAR_EVENT>: Apply modifiers.
8114
8115 * xterm.c (XTread_socket) [USE_MOTIF] <KeyPress>: Catch events
8116 in scroll bars.
8117 (x_handle_toolbar_click): Set modifier bits.
8118
81191999-07-04 Gerd Moellmann <gerd@gnu.org>
8120
8121 * keyboard.c (kbd_store_ptr): Declare it as a volatile pointer
8122 instead of a pointer to a volatile input_event.
8123 (kbd_buffer_store_event): Remove volatile modifier from
8124 declaration of local variable `sp'.
8125 (Fdiscard_input): Don't cast when assigning kbd_store_ptr
8126 to kbd_fetch_ptr.
8127
81281999-07-03 Gerd Moellmann <gerd@gnu.org>
8129
8130 * xdisp.c (try_window_id): Set beg_unchanged and end_unchanged
8131 only if buffer is modified. Return quickly if changes are
8132 above window start.
8133
81341999-07-02 Gerd Moellmann <gerd@gnu.org>
8135
8136 * dispextern.h (HSCROLL_WINDOWS): Removed.
8137
8138 * xdisp.c (mark_window_display_accurate): Don't set
8139 w->region_showing.
8140 (redisplay_internal): Don't call redraw_garbaged_frames.
8141
81421999-07-01 Gerd Moellmann <gerd@gnu.org>
8143
8144 * xdisp.c (echo_area_display): Don't display truncation marks
8145 for messages because 20.4 doesn't do it either.
8146 (redisplay_window): Case same window start. Instead of giving
8147 up when cursor is partially visible, make it fully visible.
8148 (mark_window_display_accurate): Some cleanup. Record window's
8149 last cursor information.
8150 (debug_method_add): Improved.
8151 (redisplay_internal): Record last cursor info only if not
8152 consider_all_windows_p.
8153
8154 * dispnew.c (update_window): Update top line after scrolling.
8155 (blank_row): Renamed from make_empty_enabled_row.
8156 (increment_glyph_row_buffer_positions): Increment positions
8157 in buffers, only.
8158
8159 * window.c (Fcoordinates_in_window_p): Add top-line to doc
8160 string.
8161
81621999-06-30 Gerd Moellmann <gerd@gnu.org>
8163
8164 * dispnew.c (update_window): Check that updated row is visible.
8165
8166 * xterm.c (x_draw_row_bitmaps): Check for invisible rows at
8167 top of window differently.
8168
8169 * xdisp.c (try_window_reusing_current_matrix): Don't do it
8170 if region is showing.
8171
8172 * dispnew.c (adjust_glyph_matrix): Check w->vscroll when
8173 avoiding matrix reallocation. Set window_vscroll in matrix.
8174
8175 * dispextern.h (struct glyph_matrix): Add member window_vscroll.
8176
26901792
DL
8177 * xdisp.c (debug_method_add): New.
8178 (debug_redisplay_method): Removed.
8179 (try_window_reusing_current_matrix): Handle case where old
8180 window start is the same as new window start.
8181
8182 * dispextern.h (struct glyph_matrix) [GLYPH_DEBUG]: Make `method'
8183 an array instead of a pointer.
8184
26901792
DL
8185 * xfns.c (Fx_show_tip): Undo previous change.
8186
8187 * xterm.c (x_append_glyph): Clear glyph->u.val.
8188
8189 * dispextern.h (struct glyph): Increase size of face_id bit-field
8190 for CHAR_GLYPH to 12.
8191
81921999-06-29 Gerd Moellmann <gerd@gnu.org>
8193
8194 * xfaces.c (x_charset_registry): Make it externally visible.
8195
81961999-06-28 Gerd Moellmann <gerd@gnu.org>
8197
8198 * dispnew.c (update_window): Use mode_line_p flag of rows
8199 instead of WINDOW_WANTS_MODELINE_P.
8200
8201 * xterm.c (clear_mouse_face): Make externally visible.
8202
8203 * xfns.c (Fx_show_tip): Clear mouse face before showing tip.
8204
8205 * xterm.c (expose_line): Handle exposure of top-lines.
8206
8207 * xterm.c (XTframe_up_to_date): Don't call note_mouse_highlight
8208 if mouse_face_mouse_frame is null.
8209
8210 * xdisp.c (redisplay_window): If window is echo_area_window,
8211 and update_mode_line is set, update menubar and toolbar.
8212
8213 * dispnew.c (space_glyph): Set its charpos to -1.
8214 (update_frame_1): Ignore trailing padding spaces.
8215
8216 * xdisp.c (next_element_from_c_string): Set position of padding
8217 glyphs to -1.
8218
82191999-06-27 Gerd Moellmann <gerd@gnu.org>
8220
8221 * xfns.c (x_laplace_read_row): Use XQueryColors instead of
8222 XQueryColor.
8223
8224 * xdisp.c (display_menu_bar): Remove unwarranted assertion.
8225 (set_cursor_from_row): Skip over glyphs having a null object at
8226 the start of rows.
8227 (insert_left_trunc_glyphs): Use charpos < 0 to indicate truncation
8228 glyphs.
8229 (handle_invisible_prop): Compute next change only when needed.
8230 (handle_face_prop): Don't correct DEFAULT_FACE_ID if in the mode
8231 line.
8232
82331999-06-26 Gerd Moellmann <gerd@gnu.org>
8234
8235 * xrdb.c (x_load_resources): Don't set resource for double-click
8236 time.
8237
8238 * xdisp.c (try_window_id): Return quickly if all changes are
8239 below the window's current matrix end.
8240
8241 * dispextern.h (MATRIX_ROW_PARTIALLY_VISIBLE_P): Remove window
8242 parameter.
8243
8244 * xdisp.c (try_window_reusing_current_matrix): Set no_scrolling_p
8245 in desired not in current matrix.
8246 (try_window_reusing_current_matrix): Rotate matrices starting
8247 at start_vpos instead of 0.
8248
8249 * xterm.c (expose_window): Use window_text_bottom_y.
8250 (fast_find_position): Ditto.
8251
8252 * xdisp.c (redisplay_window): Use window_text_bottom_y.
8253 (try_window_reusing_current_matrix): Ditto.
8254 (get_last_unchanged_at_beg_row): Ditto.
8255 (init_iterator): Ditto.
8256
8257 * dispnew.c (allocate_matrices_for_window_redisplay): Allocate one
8258 more row.
8259 (check_matrix_invariants): Use window_text_bottom_y.
8260 (update_window): Ditto.
8261 (scrolling_window): Ditto.
8262
8263 * xdisp.c (window_text_bottom_y): New.
8264
82651999-06-25 Gerd Moellmann <gerd@gnu.org>
8266
8267 * xterm.c (XTread_socket): Set mouse_face_frame to zero after
8268 clearing mouse face.
8269 (XTread_socket) <EnterNotify> [LESSTIF_VERSION]: If
8270 event.xcrossing.focus is not set, and focus is in the menu bar,
8271 set focus frame as if event.xcrossing.focus were set.
8272
82731999-06-24 Gerd Moellmann <gerd@gnu.org>
8274
8275 * keyboard.c (make_lispy_event): Handle mouse on top lines.
8276 * keyboard.c (make_lispy_movement): Ditto.
8277
8278 * window.c (coordinates_in_window): Return 4 if on top line.
8279 (Fcoordinates_in_window_p): Return `top-line' if on top line.
8280
8281 * xdisp.c (window_box_height): Subtract top line height.
8282 (window_box): Add top line height to top y position if top line
8283 exists.
8284 (init_iterator): If base_face_id is TOP_LINE_FACE_ID, set row to
8285 the top line row of the window. Set initial y-position to
8286 window's top line height plus delta.
8287 (start_display): Choose start glyph row depending on whether
8288 window has a top line.
8289 (try_scrolling): Take top line height into account for aggressive
8290 scrolling.
8291 (compute_window_start_on_continuation_line): Take top line into
8292 account.
8293 (redisplay_window): Ditto. If top line height has changed,
8294 trigger a new redisplay.
8295 (try_window_reusing_current_matrix): Take top line into account.
8296 (find_last_row_displaying_text): Ditto.
8297 (get_last_unchanged_at_beg_row): DItto.
8298 (try_window_id): Ditto.
8299 (compute_line_metrics): Ditto.
8300
8301 * dispnew.c (shift_glyph_matrix): Compute visible row height
8302 taking top line of window into account.
8303 (update_window): Update top line. If scrolling_window detects
8304 that all rows are equal, only set cursor.
8305 (update_window_line): Call after_update_window_line_hook if
8306 mode_line_p flag of rows has changed.
8307 (scrolling_window): Add parameter top_line_p. Return -1 if
8308 all rows are equal.
8309 (mode_line_string): Add parameter mode_line_p. Handle strings
8310 in top lines.
8311
8312 * dispextern.h (MATRIX_TOP_LINE_ROW): New.
8313 (MATRIX_FIRST_TEXT_ROW): New.
8314 (MATRIX_ROW_PARTIALLY_VISIBLE_P): Use row's visible_height.
8315 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_TOP_P): New.
8316 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_BOTTOM_P): New.
8317 (MATRIX_TOP_LINE_HEIGHT): New.
8318 (CURRENT_MODE_LINE_HEIGHT): Use estimate_mode_line_height.
8319 (CURRENT_TOP_LINE_HEIGHT): New.
8320 (DESIRED_TOP_LINE_HEIGHT): New.
8321 (WINDOW_DISPLAY_TOP_LINE_HEIGHT): New.
8322 (WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE): Replaces
8323 WINDOW_DISPLAY_TEXT_AREA_PIXEL_HEIGHT.
8324 (WINDOW_DISPLAY_TEXT_HEIGHT): New.
8325
8326 * xterm.c (x_after_update_window_line): Don't draw bitmaps for top
8327 lines.
8328 (x_draw_row_bitmaps): Take top line into account when clearing
8329 bitmap area.
8330 (x_estimate_mode_line_height): Replacement for
8331 x_frame_mode_line_height.
8332 (x_get_glyph_string_clip_rect): Take top line into account.
8333 (x_clear_end_of_line): Ditto.
8334 (note_mode_line_highlight): Add parameter mode_line_p. Handle
8335 top lines.
8336 (note_mouse_highlight): Call note_mode_line_highlight for top lines.
8337 (x_erase_phys_cursor): Take top line into account.
8338
8339 * xdisp.c (window_box_height): Subtract top line height if
8340 window wants a top line.
8341 (display_mode_lines): New.
8342 (redisplay_window): Call it.
8343 (display_mode_line): Add parameters face_id and format.
8344
8345 * dispextern.h (CURRENT_TOP_LINE_HEIGHT): New.
8346 (MATRIX_TOP_LINE_HEIGHT): New.
8347
8348 * xterm.c (x_frame_mode_line_height): Add parameter face_id.
8349
8350 * term.c (estimate_mode_line_height): Renamed from
8351 frame_mode_line_height. Add parameter face_id.
8352 (estimate_mode_line_height_hook): Renamed from
8353 frame_mode_line_height_hook.
8354 (produce_special_glyphs_hook): Removed.
8355 (produce_glyphs_hook): Removed.
8356
83571999-06-23 Gerd Moellmann <gerd@gnu.org>
8358
8359 * dispextern.h (WINDOW_WANTS_TOP_LINE_P): New.
8360 (struct glyph_row): Add mode_line_p.
8361
8362 * xfaces.c (realize_basic_faces): Realize face `top-line'.
8363 (Qtop_line): New.
8364 (syms_of_xfaces): Initialize Qtop_line.
8365
8366 * dispextern.h (TOP_LINE_FACE_ID): New.
8367
8368 * buffer.c (init_buffer_once): Set default for
8369 top_line_format to nil.
8370 (init_buffer_once): Init top_line_format.
8371 (default-top-line-format): New.
8372 (top-line-format): New buffer-local variable.
8373
8374 * buffer.h: Add top_line_format.
8375
8376 * xdisp.c (overlay_arrow_changed_p): Removed because not used.
8377
83781999-06-17 Dave Love <fx@gnu.org>
8379
8380 * xfns.c: Move the PNG section before the JPEG one to avoid
8381 problems surrounding setjmp.h/png.h on GNU/Linux.
8382
83831999-06-17 Gerd Moellmann <gerd@gnu.org>
8384
8385 * xfns.c (x_kill_gs_process): Don't free colors.
8386
83871999-06-17 Dave Love <fx@gnu.org>
8388
8389 * s/gnu-linux.h: Zap spurious ~.
8390
83911999-06-16 Gerd Moellmann <gerd@gnu.org>
8392
8393 * xfns.c (gif_load): Improve multi-image support.
8394
83951999-06-15 Gerd Moellmann <gerd@gnu.org>
8396
8397 * xfns.c (gif_load): Support multi-image files.
8398
8399 * Makefile.in (LIBGIF): Use libungif.
8400
8401 * configure.in (HAVE_GIF): Use libungif instead of libgif
8402 because the former doesn't contain patented compression code.
8403
8404 * xdisp.c (compute_window_start_on_continuation_line): Don't
8405 do it if line start is too far away from window start.
8406
84071999-06-14 Gerd Moellmann <gerd@gnu.org>
8408
8409 * buffer.c (init_buffer_once): Set buffer_local_flags for
8410 scroll_*_aggressively.
8411 (syms_of_buffer): Add DEFVAR_PER_BUFFER for scroll-*-aggressively.
8412 (init_buffer_once): Set defaults for these variables.
8413 (syms_of_buffer): Add default-scroll-*-aggressively.
8414
8415 * buffer.h (scroll_up_aggressively): New.
8416 (scroll_down_aggressively): New.
8417
8418 * Makefile.in (LIBPNG): Add -lz -lm in case we're linking with
8419 a static PNG library.
8420
8421 * configure.in (HAVE_PNG): Add -lz -lm when checking for PNG lib
8422 in case it's a static library.
8423
8424 * Makefile.in (ctagsfiles): Split so that files starting
8425 with an `x' are found before files starting with `w32'.
8426 (ctagsfiles1): New.
8427 (ctagsfiles2): New.
8428 (TAGS): Use ctagsfiles[12] instead of ctagsfiles.
8429
8430 * xdisp.c (compute_window_start_on_continuation_line): New.
8431 (redisplay_window): Use it.
8432 (INFINITY): New.
8433 (reseat_to_string): Use it.
8434 (hscroll_window_tree): Ditto.
8435 (compute_window_start_on_continuation_line): Ditto.
8436 (redisplay_window): Don't force display with a new window start.
8437
84381999-06-06 Gerd Moellmann <gerd@gnu.org>
8439
8440 * xfns.c (x_report_frame_params): Don't report `outer-window-id'
8441 if widget not present.
8442
8443 * xdisp.c (prepare_menu_bars): Ignore tooltip frame.
8444
84451999-06-04 Gerd Moellmann <gerd@gnu.org>
8446
8447 * xfaces.c (recompute_basic_faces)[GLYPH_DEBUG]: Check return
8448 value of realize_basic_faces.
8449 (load_face_font_or_fontset): Store full font name in face.
8450 (realize_default_face): Use full font name.
8451
26901792
DL
8452 * xterm.c (x_produce_glyphs): Set member char_to_display.
8453 (x_append_glyph): Store char_to_display in glyphs.
8454
8455 * dispextern.h (struct it): Add char_to_display.
8456
8457 * xfns.c (x_set_font): Don't call face-set-after-frame-default
8458 if faces haven't been initialized.
8459 (Fx_create_frame): Call face-set-after-frame-default after
8460 faces have been initialized, and widget has been created.
8461
8462 * puresize.h (BASE_PURESIZE): Increased.
8463
84641999-06-01 Gerd Moellmann <gerd@gnu.org>
8465
8466 * xfaces.c (set_lface_from_font_name): Add parameter force_p.
8467 (Finternal_set_lisp_face_attribute): If frame is t when
8468 :font attribute is set, use the selected frame.
8469 (clear_face_cache): Add parameter clear_fonts_p.
8470 (Fclear_face_cache): Add optional parameter thorougly.
8471
8472 * xfaces.c (face_numeric_value): Return -1 if symbol is not
8473 in table.
8474 (Fclear_face_cache): New.
8475 (choose_face_fontset_font): If fontset doesn't contain font
8476 pattern for the given charset, use CHARSET_ASCII.
8477 (Finternal_set_lisp_face_attribute): Fix handling of nil
8478 stipple attribute.
8479 (Finternal_set_lisp_face_attribute): Fix handling of changing
8480 font-related face attributes of the default face.
8481 (set_lface_from_font_name): Set only attributes that aren't
8482 specified.
8483
84841999-05-31 Gerd Moellmann <gerd@gnu.org>
8485
8486 * xfaces.c (SCALABLE_FONTS): Define this to enable scalable
8487 font support.
8488 (Vscalable_fonts_allowed) [SCALABLE_FONTS]: New.
8489 (x_face_list_fonts): Add parameter scalable_fonts_p. Handle
8490 scalable fonts depending on the setting of SCALABLE_FONTS.
8491 (first_font_matching): List more than one font to find the
8492 first non-scalable matching font.
8493 (sorted_font_list): Let x_face_list_fonts return scalable fonts
8494 depending on SCALABLE_FONTS.
8495 (better_font_p): New parameter compare_pt_p. If zero, don't
8496 compare point sizes of fonts.
8497 (exact_face_match_p) [SCALABLE_FONTS]: New.
8498 (build_scalable_font_name) [SCALABLE_FONTS]: New.
8499 (may_use_scalable_font_p) [SCALABLE_FONTS]: New.
8500 (best_matching_font) [SCALABLE_FONTS]: Handle scalable fonts.
8501 (syms_of_xfaces): Add scalable-fonts-allowed.
8502
85031999-05-26 Gerd Moellmann <gerd@gnu.org>
8504
8505 * xfns.c (png_load): Let PNG lib handle gamma. Construct
8506 mask only if image contains simple transparency information.
8507 Otherwise, combine image with frame background color.
8508
8509 * configure.in (--with-png, HAVE_PNG): New.
8510
8511 * config.in (HAVE_PNG): New.
8512
8513 * Makefile.in: Add PNG library.
8514
8515 * xfns.c: Add PNG support.
8516
85171999-05-25 Gerd Moellmann <gerd@gnu.org>
8518
8519 * xdisp.c (init_xdisp): Initialize echo_area_message and
8520 previous_echo_area_message to nil.
8521
8522 * keyboard.c (read_char): Rename local variable echo_area_message
8523 because it shadows the global one.
8524
85251999-05-05 Gerd Moellmann <gerd@gnu.org>
8526
8527 * xterm.c (note_mode_line_highlight): Restructured.
8528
8529 * window.c (coordinates_in_window): Handle windows that don't have
8530 a mode line because their buffer's mode-line-format is nil.
8531 Recognize the mode line under x positions that correspond to
8532 flags areas and left scroll bar.
8533
85341999-05-02 Dave Love <fx@gnu.org>
8535
8536 * xterm.c (note_mouse_highlight): Separate help-echo processing
8537 from check on mouse-face so that it works generally.
8538
85391999-04-21 Gerd Moellmann <gerd@gnu.org>
8540
8541 * sound.c (Fplay_sound): Run hook play-sound-hook.
8542 (Qplay_sound_hook): New.
8543
85441999-04-20 Gerd Moellmann <gerd@gnu.org>
8545
8546 * xdisp.c (update_echo_area): Handle echo_area_message.
8547
85481999-04-19 Gerd Moellmann <gerd@gnu.org>
8549
8550 * editfns.c (Fmessage): Use message3.
8551
8552 * print.c (printchar): Set echo_area_message to nil.
8553 (strout): Ditto.
8554
8555 * minibuf.c (read_minibuf): Reset echo message strings to nil.
8556 (Fminibuffer_completion_help): Ditto.
8557
8558 * keyboard.c (cmd_error_internal): Set echo_areA_message.
8559 (command_loop_1): Test echo_areA_message.
8560 (read_char): Ditto.
8561 (record_menu_key): Set echo_area_message to nil.
8562 (Fexecute_extended_command): Test echo_area_message.
8563 (Fexecute_extended_command): Handle echo_area_message.
8564
8565 * fileio.c (Fdo_auto_save): Handle the case that echo_area_message
8566 is set.
8567
8568 * editfns.c (Fcurrent_message): If echo_area_message is set,
8569 return a substring of that string.
8570
8571 * dispnew.c (direct_output_for_insert): Test echo_area_message
8572 in addition to echo_area_glyphs.
8573 (set_window_cursor_after_update): Ditto.
8574 (update_frame_1): Ditto.
8575
8576 * alloc.c (Fgarbage_collect): Use message3_nolog to display
8577 old Lisp message string.
8578
8579 * xdisp.c (echo_area_message): New.
8580 (previous_echo_area_message): New.
8581 (syms_of_xdisp): Initialize and staticpro new variables.
8582 (echo_area_display): Display echo_area_message if set.
8583 (message2_nolog): Set echo_area_message and
8584 previous_echo_area_message.
8585 (echo_area_display): Set previous_echo_area_message.
8586 (redisplay_internal): Display echo area if echo_area_message
8587 or previous_echo_area_message are set.
8588 (redisplay_preserve_echo_area): Test/set echo_area_message and
8589 previous_echo_area_message.
8590 (redisplay_window): Test echo_area_message.
8591 (message3_nolog): New.
8592 (message3): New.
8593
8594 * editfns.c (Fformat): Add text properties to the result string
8595 from properties of the format string and properties of string
8596 arguments.
8597
8598 * textprop.c (text_property_list): New.
8599 (add_text_properties_from_list): New.
8600 (extend_property_ranges): New.
8601
86021999-03-29 Gerd Moellmann <gerd@gnu.org>
8603
8604 * xfaces.c (Qraised, Qsunken, QCshadow): Removed.
8605 (QCline_width, QCstyle, Qpressed_button, Qreleased_button): New.
8606 Use these symbols for the box face attribute instead of the
8607 removed ones.
8608
86091999-03-12 Gerd Moellmann <gerd@gnu.org>
8610
8611 * xfaces.c (realize_tty_face): Don't set alt_char_p of face.
8612 Correct wrong test for slant.
8613
86141999-03-10 Gerd Moellmann <gerd@gnu.org>
8615
8616 * xfaces.c: Use `unspecified' for unspecified face attributes,
8617 use t and nil for on/off.
8618
86191999-03-06 Gerd Moellmann <gerd@gnu.org>
8620
8621 * buffer.c (syms_of_buffer): Extend doc string of
8622 mode-line-format.
8623
8624 * xfaces.c (x_face_list_fonts): New parameter try_alternatives_p.
8625 (first_font_matching): New.
8626 (set_lface_from_font_name): Use it if font name is a pattern.
8627 (font_field_wildcard_p): Removed.
8628
8629 * dispnew.c (shift_glyph_matrix): Add `window' parameter.
8630 Recompute visible height of rows.
8631
8632 * xterm.c (note_mouse_highlight): Reorder code for help-echo.
8633 Don't accept non-strings for help-echo from overlays.
8634
86351999-03-04 Dave Love <fx@gnu.org>
8636
8637 * xterm.c (note_mouse_highlight): Check overlays for help-text
8638 property.
8639 (XTread_socket): Fix compiler warning.
8640
86411999-03-05 Gerd Moellmann <gerd@gnu.org>
8642
8643 * xterm.c (note_mouse_highlight): Don't restrict number of
8644 overlay to 10. Call overlays_at so that it doesn't try to
8645 extend the vector.
8646
8647 * xdisp.c (compute_line_metrics): Compute glyph row's visible
8648 height.
8649
8650 * dispnew.c (row_equal_p): Compare visible row height, only.
8651 (update_text_area): Draw whole line if visible heights of
8652 rows differ.
8653 (update_window_line): Call after_update_window_line_hook
8654 if visible row height has changed.
8655
8656 * dispextern.h (MATRIX_ROW_VISIBLE_HEIGHT): Removed.
8657 (struct glyph_row): New member visible_height.
8658
8659 * xfaces.c (font_field_wildcard_p): New.
8660 (set_lface_from_font_name): Remove parameter force_p. Accept
8661 font names containing wildcards.
8662
86631999-03-04 Gerd Moellmann <gerd@gnu.org>
8664
8665 * xterm.c (x_after_update_window_line): Clear internal border
8666 when windows_or_buffers_changed.
8667
8668 * dispextern.h (WINDOW_WANTS_MODELINE_P): Return zero if window's
8669 buffer has a nil mode_line_format.
8670
86711999-03-03 Gerd Moellmann <gerd@gnu.org>
8672
8673 * xterm.c (x_setup_relief_colors): Use either background color
8674 or specified color.
8675
8676 * xfaces.c (realize_x_face): Set face->use_box_color_for_shadows_p.
8677
8678 * dispextern.h (struct face): Add use_box_color_for_shadows_p.
8679
8680 * xterm.c (x_draw_box_rect): New.
8681 (x_draw_glyph_string_box): Renamed from
8682 x_draw_glyph_string_relief. Call x_draw_box_rect.
8683
8684 * xfns.c (QCrelief): New.
8685 (syms_of_xfns): Initialize it.
8686
8687 * dispextern.h (struct glyph): Rename left_shadow_p to
8688 left_box_line_p, right_shadow_p to right_box_line_p.
8689 (MAX_RELIEF_THICKNESS): Removed.
8690 (struct it): Rename members having `relief' in their names
8691 to contain `box' instead.
8692
8693 * xfaces.c (realize_x_face): Handle new box attribute values.
8694 (QCrelief, Qbox): Removed.
8695 (QCshadow, QCcolor, Qraised, Qsunken): New.
8696 (syms_of_xfaces): Initialize new symbols.
8697
86981999-03-02 Gerd Moellmann <gerd@gnu.org>
8699
8700 * dispextern.h (LFACE_RELIEF_INDEX): Removed.
8701
8702 * xfaces.c (LFACE_RELIEF): Removed.
8703 (merge_face_vector_with_property): Remove handling of `:relief'.
8704 (Finternal_set_lisp_face_attribute): Ditto.
8705 (Finternal_set_lisp_face_attribute_from_resource): Ditto.
8706 (Finternal_get_lisp_face_attribute): Ditto.
8707 (realize_default_face): Ditto.
8708 (lface_hash): Don't compute hash from relief.
8709
8710 * dispextern.h (struct face): Replace member `relief' by
8711 `box_line_width'. Add member `box'.
8712 (face_box_type): New.
8713
8714 * xterm.c (x_produce_glyphs): If face has overline, add overline
8715 thickness + 1 to ascent.
8716
87171999-03-01 Gerd Moellmann <gerd@gnu.org>
8718
8719 * xterm.c (x_draw_glyph_string): Draw underline, overline,
8720 strike-through, and boxes.
8721 (x_draw_glyph_string_underline): Removed.
8722
8723 * xfaces.c (QCoverline, QCstrike_through, QCbox): New.
8724 (Qoverline, Qstrike_through, Qbox): New.
8725 (syms_of_xfaces): Define these symbols.
8726 (check_lface_attrs): Add checks for overline, strike-through,
8727 and box.
8728 (Finternal_set_lisp_face_attribute): Set new attributes.
8729 (LFACE_OVERLINE, LFACE_STRIKE_THROUGH, LFACE_BOX): New.
8730 (load_color): Handle new attributes.
8731 (realize_x_face): Ditto.
8732 (merge_face_vector_with_property): Ditto.
8733 (free_face_colors): Ditto.
8734 (Finternal_set_lisp_face_attribute_from_resource): Ditto.
8735 (Finternal_get_lisp_face_attribute): Ditto.
8736 (Finternal_lisp_face_attribute_values): Ditto.
8737
8738 * dispextern.h (lface_attribute_index): Add enumerators for
8739 overstrike, strike-through, and box.
8740 (struct face): Add members for overline, strike-through, and
8741 box.
8742
87431999-02-17 Dave Love <fx@gnu.org>
8744
8745 * s/gnu-linux.h s/gnu.h s/irix5-0.h s/netbsd.h s/sco4.h s/sco5.h
8746 s/template.h (NARROWPROTO): Define on the basis of relevant X cf
8747 files.
8748
87491999-02-16 Gerd Moellmann <gerd@gnu.org>
8750
8751 * keyboard.c (toolbar_items): Call access_keymap with third
8752 parameter 1, so that we don't get inherited toolbar item
8753 definitions.
8754
8755 * xdisp.c (redisplay_internal): In optimization 1, don't decrement
8756 the window end vpos when in empty first line of window.
8757
87581999-02-15 Gerd Moellmann <gerd@gnu.org>
8759
8760 * xfaces.c (set_font_frame_param): New.
8761 (Finternal_set_lisp_face_attribute): Call it.
8762
8763Sun Feb 14 10:54:02 1999 Masatake Yamato <masata-y@is.aist-nara.ac.jp>
8764
8765 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
8766 Accept specifications of color for underline.
8767
87681999-02-13 Gerd Moellmann <gerd@gnu.org>
8769
8770 * xfaces.c (Finternal_set_lisp_face_attribute): If parameter
8771 `frame' is t, operate on face defaults for new frames. If it
8772 is nil, operate on the selected frame.
8773
87741999-02-12 Gerd Moellmann <gerd@gnu.org>
8775
8776 * dispnew.c (check_matrix_invariants): Put it in #if 0.
8777 (update_window): Put the call to check_matrix_invariants in #if 0.
8778
8779Sun Feb 7 09:58:49 1999 Masatake Yamato <masata-y@is.aist-nara.ac.jp>
8780
8781 * dispextern.h: Remove all else block of UNDERLINE_COLOR.
8782 Remove definition of UNDERLINE_COLOR.
8783
8784Mon Jan 4 04:43:41 1999 Masatake Yamato <masata-y@is.aist-nara.ac.jp>
8785
8786 * xfaces.c (free_face_colors): Free the color for underline.
8787
8788 * xterm.c (x_draw_glyph_string_underline): Set the color for underline
8789 to the GC.
8790
8791Sun Jan 3 08:41:10 1999 Masatake Yamato <masata-y@is.aist-nara.ac.jp>
8792
8793 * dispextern.h (UNDERLINE_COLOR): Defined.
8794 (struct face): Added two new members.
8795 underline_color, underline_defaulted_p.
8796
8797 * xfaces.c (merge_face_vector_with_property):
8798 (check_lface_attrs): Accept the string value for underline.
8799 (Finternal_set_lisp_face_attribute): Likewise.
8800
8801 * xfaces.c (load_color): Change the last argument type to enum
8802 lface_attribute_index from int. And addec code for underling coloring.
8803 (load_face_colors): Pass LFACE_*_INDEX to load_color.
8804
88051999-02-12 Gerd Moellmann <gerd@gnu.org>
8806
8807 * xfns.c (Fx_image_header): Removed.
8808
88091999-02-07 Gerd Moellmann <gerd@gnu.org>
8810
8811 * xterm.c: Don't include <bitmaps/gray>.
8812 (x_term_init): Use gray_bitmap_width and gray_bitmap_height.
8813
8814 * xfns.c (Fx_image_header): Add missing `\n\'.
8815 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits): New.
8816
88171999-02-01 Gerd Moellmann <gerd@gnu.org>
8818
8819 * xterm.c (x_scroll_bar_create): Set background pixel from
8820 specified scroll bar color.
8821 (x_scroll_bar_set_handle): Use scroll bar foreground color.
8822
8823 * xfns.c (x_set_scroll_bar_foreground): Remove all scroll bars.
8824 (x_set_scroll_bar_background): Ditto.
8825
8826 * xterm.c (x_create_toolkit_scroll_bar): Set scroll bar colors.
8827
8828 * xfns.c (x_default_scroll_bar_color_parameter): New.
8829 (Fx_create_frame): Call it.
8830
88311999-01-31 Gerd Moellmann <gerd@gnu.org>
8832
8833 * xfns.c (Fx_create_frame): Initialize scroll bar pixel color
8834 values in x_output structure.
8835 (Qscroll_bar_foreground, Qscroll_bar_background): New.
8836 (syms_of_xfns): Initialize these symbols.
8837
8838 * xterm.h (struct x_output): Add scroll bar pixel colors.
8839
8840 * xfns.c (x_frame_parms): Add entries for scroll bar colors.
8841 (x_set_scroll_bar_foreground): New.
8842 (x_set_scroll_bar_background): New.
8843
26901792
DL
88441999-01-12 Gerd Moellmann <gerd@gnu.org>
8845
8846 * xdisp.c (handle_single_display_prop): New.
8847 (handle_display_prop): Call it.
8848 (handle_raise_prop): Removed.
8849 (handle_height_prop): Removed.
8850 (handle_space_width_prop): Removed.
8851 (handle_face_prop): Remove handling of raised text.
8852 (handle_display_prop): Do it here.
8853
8854 * dispextern.h (DISPLAY_PROP_IDX): Replaces GLYPH_PROP_IDX.
8855 (RAISE_PROP_IDX): Removed.
8856 (HEIGHT_PROP_IDX): Removed.
8857 (SPACE_WIDTH_PROP_IDX): Removed.
8858
8859 * xdisp.c (Qdisplay): Replaces Qglyph.
8860 (handle_display_prop): Formerly handle_glyph_prop.
8861
88621999-01-11 Gerd Moellmann <gerd@gnu.org>
8863
8864 * xdisp.c (reseat_to_string): Set position in display vector to -1.
8865 (handle_stop): Set position in display vector to -1. Don't
8866 check overlay strings when set up to deliver characters from a
8867 display vector.
8868 (set_iterator_to_next): At the end of a run of characters from a
8869 display vector, check whether the display vector display replaces
8870 the display of a character.
8871
88721999-01-05 Gerd Moellmann <gerd@gnu.org>
8873
8874 * xfaces.c (init_frame_faces): Don't realize faces if frame's
8875 X window hasn't been created yet.
8876
88771998-12-06 Gerd Moellmann <gerd@gnu.org>
8878
8879 * sound.c: New.
8880
88811998-12-04 Gerd Moellmann <gerd@gnu.org>
8882
8883 * config.in (HAVE_SOUND): New.
8884
8885 * emacs.c (main): Call syms_of_sound and init_sound.
8886
8887 * Makefile.in (obj): Add sound.o.
8888
8889 * configure.in: Add checks for machine/soundcard.h and sys/soundcard.h.
8890
8891 * config.in (HAVE_MACHINE_SOUNDCARD_H): New.
8892 (HAVE_SYS_SOUNDCARD_H): New.
8893
88941998-12-03 Gerd Moellmann <gerd@gnu.org>
8895
8896 * buffer.h (struct buffer): indicate_empty_lines renamed from
8897 indicate_zv_lines.
8898
8899 * buffer.c (indicate-empty-lines): Renamed from indicate_zv_lines.
8900 (default-indicate-zv-lines): Likewise.
8901
8902 * dispextern.h (struct glyph_row): Rename indicate_zv_line_p
8903 to indicate_empty_line_p.
8904
8905 * xdisp.c (reseat_at_next_visible_line_start): Reset method
8906 to next_element_from_buffer.
8907
8908 * frame.c (make_frame): Set n_current_toolbar_items to 0.
8909
8910 * xdisp.c (handle_face_prop): Allow symbols of the form `N+'
8911 and `N-'.
8912
8913 * xfns.c (xbm_scan): New.
8914 (xbm_read_hexint): Removed.
8915 (xbm_read_bitmap_file_data): Use xbm_scan.
8916
8917 * fileio.c (Finsert_file_contents): Prevent redisplay optimizations.
8918
89191998-12-02 Gerd Moellmann <gerd@gnu.org>
8920
8921 * xfns.c (xbm_read_hexint): New.
8922 (xbm_read_bitmap_file_data): New.
8923 (xbm_load_image_from_file): Call xbm_read_bitmap_file_data
8924 instead of XReadBitmapFileData.
8925
8926 * xdisp.c (handle_raise_prop): Compute voffset from current font.
8927
8928 * xfaces.c (face_with_height): New.
8929
8930 * xdisp.c (eval_handler): Renamed from eval_mode_handler.
8931 (eval_form): Renamed from eval_mode_element.
8932 (handle_face_prop): Use it.
8933 (Qheight): Replaces Qsmaller.
8934 (handle_height_prop): Replaces handle_smaller_prop.
8935 (handle_face_prop): If iterator's font_height is not an
8936 integer, evaluate it to get the font height to use.
8937
8938 * dispextern.h (HEIGHT_PROP_IDX): Replaces SMALLER_PROP_IDX.
8939 (struct it): Use `font_height' instead of `smaller'.
8940
89411998-12-01 Gerd Moellmann <gerd@gnu.org>
8942
8943 * xdisp.c (reseat_1): New.
8944 (reseat): Call it.
8945 (move_it_vertically_backward): Ditto.
8946 (redisplay_window): Don't abort when cursor not found in recenter.
8947
89481998-11-30 Gerd Moellmann <gerd@gnu.org>
8949
8950 * xdisp.c (reseat_at_next_visible_line_start): When not
8951 currently delivering display elements from the current buffer,
8952 restore buffer position first.
8953 (init_from_display_pos): Don't set IT's position from the
8954 position passed to this function.
8955
89561998-11-28 Gerd Moellmann <gerd@gnu.org>
8957
8958 * config.in (PROTO): Removed.
8959
8960 * xterm.h: Change PROTO to P_.
8961
89621998-11-26 Gerd Moellmann <gerd@gnu.org>
8963
8964 * xterm.c (take_vertical_position_into_account): New.
8965 (x_produce_image_glyph): Call it.
8966 (x_produce_stretch_glyph): Ditto.
8967 (x_produce_glyphs): Ditto.
8968 (x_fill_glyph_string): Adjust base line for glyph's voffset.
8969 (x_fill_composite_glyph_string): Ditto.
8970 (x_fill_image_glyph_string): Ditto.
8971 (x_fill_stretch_glyph_string): Ditto.
8972
8973 * xdisp.c (display_line): Always compute row height from
8974 max_ascent and max_descent.
8975
8976 * dispextern.h (struct glyph): Add voffset.
8977 (struct it): Replace height by descent, max_height by max_descent.
8978
8979 * xterm.c (x_append_glyph): Set voffset
8980 (x_append_stretch_glyph): Ditto.
8981 (x_produce_image_glyph): Ditto.
8982 (x_produce_glyphs): Take voffset into account.
8983 (x_produce_image_glyph): Ditto.
8984 (x_produce_stretch_glyph): Ditto.
8985
8986 * dispextern.h (struct it): Add voffset.
8987 * xdisp.c (push_it): Save voffset.
8988 (pop_it): Restore it.
8989
8990 * xdisp.c (it_props): Add entry for `raise'.
8991 (handle_raise_prop): New.
8992
8993 * dispextern.h (RAISE_PROP_IDX): New.
8994
8995 * xdisp.c (Qraise): New.
8996 (syms_of_xdisp): Define Qraised.
8997
8998 * xterm.c (x_scroll_bar_move): Clear to the left and right
8999 of toolkit scroll bars differently.
9000 (x_scroll_bar_move): Removed.
9001 (XTset_vertical_scroll_bar): Move code from x_scroll_bar_move here.
9002
9003 * dispextern.h: Make it compilable --with-x=no.
9004 * alloc.c: Ditto.
9005 * emacs.c: Ditto.
9006 * dispnew.c: Ditto.
9007 * keyboard.c: Ditto.
9008 * term.c: Ditto.
9009 * xdisp.c: Ditto.
9010 * xfaces.c: Ditto.
9011 * xfns.c: Ditto.
9012 * xmenu.c: Ditto.
9013
90141998-11-25 Gerd Moellmann <gerd@gnu.org>
9015
9016 * xterm.c (XTread_socket): Cancel help-echo when leaving frame.
9017
90181998-11-24 Gerd Moellmann <gerd@gnu.org>
9019
9020 * xterm.c (x_set_toolkit_scroll_bar_thumb): When dragging,
9021 update slider size, only.
9022 (xm_scroll_callback): Set dragging member of the scroll bar.
9023 (xt_action_hook): Reset last_scroll_bar_part.
9024 (XTredeem_scroll_bar): Reset bar->dragging to nil.
9025
26901792
DL
9026 * xfns.c (Fx_hide_busy_cursor): Don't try to hide busy cursor
9027 window on newly created frames that don't have one.
9028
90291998-11-23 Gerd Moellmann <gerd@gnu.org>
9030
9031 * xdisp.c (restore_overlay_strings): Removed.
9032 (restore_dpvec): Removed.
9033 (init_from_display_pos): Inline both functions above.
9034
9035 * xfns.c (IMAGE_NON_NEGATIVE_INTEGER_VALUE): New.
9036 (parse_image_spec): Handle it.
9037 (xbm_format): Use it.
9038 (xpm_format): Ditto.
9039 (pbm_format): Ditto.
9040 (jpeg_format): Ditto.
9041 (tiff_format): Ditto.
9042 (gif_format): Ditto.
9043 (gs_format): Ditto.
9044
9045 * xdisp.c (set_window_cursor): Removed.
9046 (redisplay_internal): Case cursor motion in cursor line of
9047 selected window; use set_cursor_from_row.
9048
90491998-11-22 Gerd Moellmann <gerd@gnu.org>
9050
9051 * widget.c (EmacsFrameSetCharSize): Take widget's border width
9052 into account.
9053
90541998-11-21 Gerd Moellmann <gerd@gnu.org>
9055
9056 * xterm.c (expose_frame): Redraw menu bar window.
9057
9058 * xdisp.c (display_menu_bar): Record hpos instead of x-position
9059 in menu item.
9060
9061 * dispnew.c (change_frame_size_1): Use FRAME_TOP_MARGIN instead
9062 of FRAME_TOOLBAR_LINES. Use `f' instead of `frame'.
9063
9064 * widget.c (set_frame_size): Use FRAME_SCROLL_BAR_COLS
9065 to determine vertical_scroll_bar_extra.
9066 (EmacsFrameSetCharSize): Ditto.
9067 * xfns.c (x_figure_window_size): Ditto.
9068
9069 * xterm.c (x_draw_row_bitmaps): Draw in `bitmap-area' face.
9070 (x_draw_bitmap): Ditto.
9071
9072 * dispextern.h (face_id): New id BITMAP_AREA_FACE_ID.
9073 * xfaces.c (realize_basic_faces): Realize it.
9074
90751998-11-20 Gerd Moellmann <gerd@gnu.org>
9076
9077 * xmenu.c (xmenu_show): Add workaround for remaining button grab
9078 under LessTif Use the widget of the frame as parent for the
9079 menu, again.
9080
90811998-11-19 Gerd Moellmann <gerd@gnu.org>
9082
9083 * xterm.c (XTread_socket): Inhibit busy cursor for EnterNotify.
9084 When EnterNotify, don't generate a mouse movement event if
9085 notification is from a busy-cursor child window.
9086
9087 * xterm.h (struct x_output): Add busy_window, remove cursor.
9088
9089 * xfns.c (Fx_show_busy_cursor): Formerly Fx_display_busy_cursor.
9090 Use a transparent window to display the busy-cursor.
9091 (Fx_hide_busy_cursor): Formerly Fx_undisplay_busy_cursor.
9092
90931998-11-17 Gerd Moellmann <gerd@gnu.org>
9094
9095 * xdisp.c (check_window_end): New, for debugging.
9096 (CHECK_WINDOW_END): New.
9097 (try_window_id): Use it.
9098
9099 * xterm.c (process_expose_from_menu): Return int.
9100
9101 * keyboard.c (kbd_buffer_get_event): Set flag to prevent recording
9102 TOOLBAR_EVENT events in last_nonmenu_event.
9103
91041998-11-16 Gerd Moellmann <gerd@gnu.org>
9105
9106 * xdisp.c (redisplay_window): If windows_or_buffers_changed,
9107 window end isn't reliable, so set window_end_valid to nil.
9108 (redisplay_internal): If overlay arrow has changed, set
9109 windows_or_buffers_changed to redisplay thoroughly.
9110
9111 * dispnew.c (adjust_glyph_matrix): Invalidate window end, if
9112 necessary.
9113
9114 * xfns.c (file_dialog_cb): New.
9115 (Fx_file_dialog): New.
9116 * fileio.c (Fread_file_name): Call it.
9117
9118 * xrdb.c (x_load_resources): Add default resoures for file
9119 selection dialog.
9120
91211998-11-14 Gerd Moellmann <gerd@gnu.org>
9122
9123 * xterm.c (note_mouse_highlight): Don't highlight when popup
9124 is active.
9125
26901792
DL
9126 * keyboard.c (timer_check): Inhibit busy cursor around calls to
9127 timer-event-handler. This busy cursor tends to be anoying if
9128 fontifying stealthily.
9129
9130 * dispnew.c (direct_output_for_insert): Give up if current row
9131 contains trailing whitespace.
9132
91331998-11-13 Gerd Moellmann <gerd@gnu.org>
9134
9135 * dispextern.h (prop_idx): Add FONTIFIED_PROP_IDX.
9136
9137 * xdisp.c (handle_fontified_prop): New.
9138 (Vfontification_functions): New.
9139 (Qfontification_functions): New.
9140 (it_props): Add handle_fontified_prop.
9141
91421998-11-12 Gerd Moellmann <gerd@gnu.org>
9143
9144 * xmenu.c (xmenu_show): Use the frame's edit_widget as parent.
9145 Otherwise, under LessTif, after the popup has gone, all button
9146 press events come in for the frame's widget, and release events
9147 come in for the edit_widget.
9148 * xterm.c (XTread_socket): Remove workaround for that problem.
9149 (x_set_toolkit_scroll_bar_thumb): Add workaround for LessTif
9150 XmScrollBarSetValues.
9151 (SET_SAVED_MENU_EVENT): Give it statement form.
9152
26901792
DL
9153 * xfaces.c (display_message): If waiting_for_input, don't display
9154 the message.
9155
9156 * window.c (scroll_command): If not acting on current_buffer,
9157 make redisplay consider all windows.
9158
9159 * xfns.c (Fx_hide_tip): Return t if tooltip was open.
9160
9161 * xdisp.c (handle_glyph_prop): Set it->object for images to
9162 the object having the glyph property.
9163
9164 * xterm.c (x_draw_row_bitmaps): Don't draw if row is completely
9165 invisible.
9166
91671998-11-11 Gerd Moellmann <gerd@gnu.org>
9168
9169 * xterm.h (struct x_display_info): Add gray pixmap. * xterm.c
9170 (x_term_init): Create the gray pixmap.
9171 (x_setup_relief_color): Use it.
9172 (x_get_glyph_string_clip_rect): Draw a toolbar window over the
9173 internal border at the top of a frame.
9174 (x_init_glyph_string): Likewise.
9175 (x_draw_glyph_string_relief): Correct right x by 1 pixel for
9176 full-width lines.
9177 (XTflash): Don't flash the toolbar window.
9178
9179 * xterm.c (XTread_socket): Workaround for LessTif popup menus
9180 in case of ButtonPress events.
9181
91821998-11-10 Gerd Moellmann <gerd@gnu.org>
9183
9184 * xrdb.c (x_load_resources): Add grey background colors as
9185 defaults for menus, scroll bars, and dialogs.
9186
9187 * insdel.c (prepare_to_modify_buffer): Move setting
9188 windows_or_buffers_changed from modify_region here.
9189
9190 * xfns.c (Fx_show_tip): Inhibit redisplay.
9191 (Fx_hide_tip): Ditto.
9192 (Fx_image_header): New.
9193
91941998-11-09 Gerd Moellmann <gerd@gnu.org>
9195
9196 * dispnew.c (clear_window_matrices): Set window_end_valid to nil
9197 when clearing current window matrices.
9198
91991998-11-08 Gerd Moellmann <gerd@gnu.org>
9200
9201 * xdisp.c (handle_glyph_prop): Don't set an iterator's buffer
9202 position from a string position. Use the right end position
9203 if the property spans a whole overlay string.
9204
92051998-11-07 Gerd Moellmann <gerd@gnu.org>
9206
9207 * xmenu.c (menubar_selection_callback): Remove workaround for
9208 Lesstif not calling XmNpopdownCallback because it doesn't
9209 handle the case where users don't select any menu item.
9210
26901792
DL
9211 * insdel.c (modify_region): Set windows_or_buffers_changed.
9212
9213 * buffer.c (set_buffer_internal): Don't set
9214 windows_or_buffers_changed.
9215
26901792
DL
9216 * xmenu.c (HAVE_BOXES): Define if USE_X_TOOLKIT.
9217
26901792
DL
9218 * xmenu.c (menubar_selection_callback): Add workaround for
9219 Lesstif not calling XmNpopdownCallback.
9220
9221 * xdisp.c (eval_mode_element): New.
9222 (eval_mode_handler): New.
9223 (display_mode_element): Use eval_mode_element.
9224
9225 * xdisp.c (display_mode_element): Allow `(:eval FORM)'.
9226 Remove code looking at text props of default value.
9227
9228 * xmenu.c (HAVE_BOXES): Define if using Lucid menus.
9229
26901792
DL
92301998-11-06 Gerd Moellmann <gerd@gnu.org>
9231
9232 * xmenu.c (single_submenu): Set button_type of menu to
9233 BUTTON_TYPE_NONE.
9234 (single_submenu): Likewise for panes and menu items.
9235 (set_frame_menubar): Set button_type of menu bar to none.
9236 (xmenu_show): Likewise.
9237 (single_submenu): Set widget values selected slot.
9238 (xmenu_show): Likewise.
9239
26901792
DL
9240 * xmenu.c (push_menu_item): Add parameters `type' and
9241 `selected'. Store it in menu_items.
9242 (MENU_ITEMS_ITEM_TYPE): New.
9243 (MENU_ITEMS_ITEM_SELECTED): New.
9244 (MENU_ITEMS_ITEM_LENGTH): Increase by two.
9245
9246 * xfns.c (clear_image_cache): Get the current time, before
9247 doing anything.
9248 (cache_image): Set prev pointer of next image.
9249 (clear_image_cache): Clear current matrices if any image was
9250 freed.
9251
9252 * xterm.c (XTread_socket): Set inhibit_busy_cursor.
9253
9254 * xfns.c (x_set_cursor): New.
9255 (Fx_display_busy_cursor): New.
9256 (Fx_undisplay_busy_cursor): New.
9257
9258 * xterm.h (struct x_output): Add busy_cursor.
9259
9260 * xfns.c (Vx_busy_pointer_shape): New.
9261 (x_set_mouse_color): Create busy cursor.
9262
9263 * process.c (wait_reading_process_input): Show and hide busy
9264 cursor.
9265
9266 * keyboard.c (command_loop_1): Display busy cursor.
9267
9268 * eval.c (Fsignal): Hide busy cursor.
9269
9270 * buffer.c (set_buffer_internal): Don't set
9271 windows_or_buffers_changed.
9272
9273 * xterm.c (redo_mouse_highlight): New.
9274
92751998-11-04 Gerd Moellmann <gerd@gnu.org>
9276
26901792
DL
9277 * xfns.c (x_create_x_image_and_pixmap): Add depth parameter.
9278 (x_build_heuritic_mask): New.
9279 (lookup_image): Call it.
9280
9281 * xterm.c (note_toolbar_highlight): Always set up help_echo.
9282 (previous_help_echo): New.
9283 (XTread_socket): Generate help event with nil message when
9284 leaving a region with help-echo.
9285 (note_mouse_highlight): Handle `help-echo' over text.
9286 (XTread_socket): Dispatch VisibilityNotify, CirculateNotify,
9287 CirculateRequest.
9288 (clear_mouse_face): Don't clear if tooltip is shown.
9289 (XTread_socket): Redo mouse-highlight after tooltip is gone.
9290 Avoid SET_FRAME_GARBAGED when tooltip is mapped.
9291
9292 * keyboard.c (Vshow_help_function): New.
9293 (read_char): Use it.
9294
92951998-11-03 Gerd Moellmann <gerd@gnu.org>
9296
9297 * xfns.c (x_create_tip_frame): New.
9298 (Fx_show_tip): New.
9299 (Fx_hide_tip): New.
9300
9301 * xterm.c (x_destroy_window): Handle case that we don't have
9302 a widget.
9303
9304 * dispextern.h (struct glyph_row): Rename no_marginal_areas_p
9305 to full_width_p. Add internal_border_p.
9306
93071998-11-02 Gerd Moellmann <gerd@gnu.org>
9308
9309 * xterm.c (note_mode_line_highlight): Check the charpos of
9310 the glyph under the mouse pointer before accessing text
9311 properties at that position.
9312
93131998-11-01 Gerd Moellmann <gerd@gnu.org>
9314
9315 * xterm.c (x_draw_image_relief): Handle toolbar_button_relief.
9316
9317 * xdisp.c (auto-raise-toolbar-buttons): New.
9318 (build_desired_toolbar_string): Handle the flag.
9319 (toolbar-button-margin): New.
9320 (toolbar-button-relief): New.
9321 (build_desired_toolbar_string): Use margin and relief.
9322
9323 * xterm.c (x_set_toolkit_scroll_bar_thumb): Remove workaround
9324 for FreeBSD.
9325 (note_mode_line_highlight): New.
9326 (note_mouse_highlight): Call it.
9327
93281998-10-31 Gerd Moellmann <gerd@gnu.org>
9329
9330 * s/freebsd.h (NARROWPROTO): New.
9331
9332 * xdisp.c (display_string): New parameter face_string.
9333 (display_mode_element): When displaying a symbol with a string
9334 value, use text properties from the symbol's default value, maybe.
9335
9336 * xrdb.c (x_load_resources): Add font defaults for menus and
9337 dialogs.
9338
93391998-10-30 Gerd Moellmann <gerd@gnu.org>
9340
9341 * xfns.c (Fx_create_frame): Try 12pt Courier font first.
9342
93431998-10-29 Gerd Moellmann <gerd@gnu.org>
9344
9345 * xterm.c (x_produce_glyphs): Fix bug causing glyphs to be
9346 produced for characters with codes < 32 under certain
9347 circumstances.
9348
9349 * xdisp.c (redisplay_window): Handle values of PT in front
9350 of invisible, intangible text.
9351 (try_window_id): Set overlay_arrow_seen to zero before
9352 displaying lines.
9353 (display_mode_element): Assign to glyphs written for a mode
9354 line spec `%x' as object the Lisp format string, as position
9355 the position of the `%' in that string.
9356 (display_string): If displaying a C string, optionally get
9357 the face to use from a Lisp string.
9358
9359 * xterm.c (expose_window_tree): Include mode line height.
9360
9361 * xfns.c (Fx_create_frame): Add toolbar height to frame height.
9362
93631998-10-27 Gerd Moellmann <gerd@gnu.org>
9364
9365 * xterm.c (note_mouse_highlight): Change mouse pointer shape
9366 over mode line.
9367
93681998-10-26 Gerd Moellmann <gerd@gnu.org>
9369
9370 * window.c (coordinates_in_window): Use CURRENT_MODE_LINE_HEIGHT.
9371
9372 * xdisp.c (redisplay_window): If mode line height has changed,
9373 arrange for a thorough immediate redisplay using the correct mode
9374 line height.
9375 (window_box_height): Use CURRENT_MODE_LINE_HEIGHT.
9376
9377 * dispextern.h (MATRIX_MODE_LINE_HEIGHT): New.
9378 (CURRENT_MODE_LINE_HEIGHT): New.
9379 (DESIRED_MODE_LINE_HEIGHT): New.
9380
9381 * keyboard.c (make_lispy_event): Add string and string position
9382 info to mouse-click events.
9383 (read_key_sequence): Handle `local-map' property of mode line
9384 strings.
9385
9386 * keyboard.h (POSN_STRING): New.
9387
93881998-10-25 Gerd Moellmann <gerd@gnu.org>
9389
9390 * dispnew.c (mode_line_string): Mew.
9391
9392 * xterm.c (xt_action_hook): New.
9393 (x_create_toolkit_scroll_bar): Add action hook.
9394 (xm_scroll_callback): Implement dragging.
9395
9396 * keyboard.c (Qend_scroll): New.
9397 (scroll_bar_parts): Add it.
9398
9399 * termhooks.h (scroll_bar_end_scroll): New.
9400
9401 * xterm.c (XTread_socket): Bug fix.
9402
94031998-10-24 Gerd Moellmann <gerd@gnu.org>
9404
9405 * xdisp.c (redisplay_window): Finish scroll bars after
9406 redisplaying toolbar.
9407
9408 * keyboard.c (scroll_bar_parts): Add Qtop and Qbottom.
9409 (syms_of_keyboard): Add Qbottom.
9410
9411 * termhooks.h (scroll_bar_to_top): New.
9412 (scroll_bar_to_bottom): New.
9413
9414 * xdisp.c (redisplay_window): Always resize toolbar window if
9415 auto_resize_toolbar_p is non-zero.
9416 (auto_resize_toolbar_p): Renamed from auto_resize_toolbar.
9417 (window_box): New.
9418 (window_box_height): New.
9419 (window_box_width): New.
9420 (window_box_left): New.
9421 (window_box_right): New.
9422 (window_box_edges): New.
9423
94241998-10-23 Gerd Moellmann <gerd@gnu.org>
9425
9426 * xterm.c (x_set_toolkit_scroll_bar_thumb): Kluge for call to
9427 XawScrollbarSetThumb in FreeBSD.
9428 (x_create_toolkit_scroll_bar): Set resource "beNiceToColormap"
9429 to true.
9430
9431 * window.c (get_phys_cursor_glyph): Return null if cursor vpos
9432 is out of range.
9433
9434 * xterm.c (x_create_toolkit_scroll_bar): Set scroll_bar_pixel.
9435 (x_term_init): Initialize it.
9436
9437 * xterm.h (struct x_display_info): Add scroll_bar_pixel.
9438
9439 * xterm.c (x_create_toolkit_scroll_bar): Set LessTif scroll bar's
9440 cursor.
9441
94421998-10-22 Gerd Moellmann <gerd@gnu.org>
9443
9444 * keyboard.c (make_lispy_event): Handle scroll_bar_click
9445 differently when using toolkit scroll bars.
9446
9447 * xterm.c (x_send_scroll_bar_event): New.
9448 (x_scroll_bar_to_input_event): New.
9449 (xaw3d_scroll_callback): New.
9450 (xaw3d_jump_callback): New.
9451 (xm_scroll_callback): New.
9452 (x_toolkit_scroll_p): New.
9453 (XTread_socket): Handle scroll bar client message.
9454 (x_term_init): Initialize Xatom_Scrollbar.
9455 (x_scroll_bar_create): Set cursor.
9456 (xm_scroll_callback):
9457 (x_create_toolkit_scroll_bar): New.
9458 (x_set_toolkit_scroll_bar_thumb): New.
9459 (x_scroll_bar_create): Call x_create_toolkit_scroll_bar.
9460 (XTset_vertical_scroll_bar): Call x_set_toolkit_scroll_bar_thumb.
9461
9462 * xterm.h (struct x_display_info): Add Xatom_Scrollbar.
9463
94641998-10-21 Gerd Moellmann <gerd@gnu.org>
9465
9466 * xterm.c (x_scroll_bar_remove): Handle toolkit scroll bars.
9467 (XTread_socket): Don't handle mouse button events for scroll bars
9468 if using toolkit scroll bars.
9469 (XTset_vertical_scroll_bar): Set thumb size and position for
9470 Athena scroll bar.
9471
9472 * xterm.h (scroll_bar): Add x_widget_low and x_widget_high.
9473
9474 * xterm.c (XTread_socket): Dispatch expose event to widget
9475 if using toolkit scroll bars.
9476 (x_scroll_bar_expose): Make no-op for toolkit scroll bars.
9477 (x_scroll_bar_create): Create and show a scroll bar widget
9478 if using toolkit scroll bars.
9479 (x_scroll_bar_move): Handle tookit scroll bars.
9480
9481 * Makefile.in (LIBW): Use Xaw3d if present.
9482
9483 * configure.in (USE_TOOLKIT_SCROLL_BARS): New.
9484 (HAVE_XAW3D): New.
9485
9486 * config.in (USE_TOOLKIT_SCROLL_BARS): New.
9487 (HAVE_XAW3D): New.
9488
9489 * xterm.c (XTset_vertical_scroll_bar): Correct position of
9490 right vertical scroll bar.
9491
94921998-10-20 Gerd Moellmann <gerd@gnu.org>
9493
9494 * xfns.c (xpm_load): Support reading XPM images from string
9495 buffers containing data in the same format as an XPM file.
9496 Support `:color-symbols'.
9497 (xpm_format): Add `:data'.
9498 (xpm_keyword_index): Add XPM_DATA.
9499 (syms_of_xfns): Add `:color-symbols'.
9500 (xpm_keyword_index): Add XPM_COLOR_SYMBOLS.
9501 (xpm_valid_color_symbols_p): New.
9502 (xpm_image_p): Call it.
9503
9504 * xdisp.c (build_desired_toolbar_string): Add `:algorithm'
9505 attribute to the image if item is not enabled.
9506
9507 * xfns.c (x_laplace): New.
9508 (x_laplace_read_row): New.
9509 (x_laplace_write_row): New.
9510 (lookup_image): Handle common image attributes here. New
9511 attribute `:algorithm'.
9512
9513 * xfaces.c (clear_face_cache): Call clear_image_cache.
9514
9515 * xterm.c (x_inverted_image_mask): Removed.
9516 (x_draw_image_foreground_1): New.
9517 (x_draw_image_glyph_string): Draw images with mask to a temporary
9518 pixmap to reduce flickering.
9519
9520 * xdisp.c (redisplay_toolbar): Handle auto-resize-toolbars.
9521 (display_toolbar_line): Remove parameter `margin'.
9522
95231998-10-19 Gerd Moellmann <gerd@gnu.org>
9524
9525 * xdisp.c (toolbar_lines_needed): New.
9526 (auto-resize-toolbars): New.
9527
9528 * xfns.c (cache_image): Correct call to xrealloc.
9529
9530 * dispnew.c (Fset_toolbar_height): Removed.
9531
9532 * xdisp.c (init_xdisp): Use FRAME_TOP_MARGIN instead of
9533 FRAME_MENU_BAR_LINES.
9534
9535 * window.c (Fdelete_other_windows): Use FRAME_TOP_MARGIN
9536 instead of FRAME_MENU_BAR_LINES.
9537 (check_frame_size): Ditto.
9538
9539 * dispnew.c (adjust_frame_glyphs_initially): Use FRAME_TOP_MARGIN
9540 instead of FRAME_MENU_BAR_LINES.
9541 (adjust_frame_glyphs_for_frame_redisplay): Ditto.
9542 (build_frame_matrix): Ditto.
9543 (change_frame_size_1): Ditto.
9544
9545 * frame.h (FRAME_TOOLBAR_LINES): New.
9546 (FRAME_TOP_MARGIN): New.
9547
9548 * window.c (struct save_window_data): Add frame_toolbar_lines.
9549 (Fset_window_configuration): Handle toolbar lines.
9550 (Fcurrent_window_configuration): Save toolbar lines.
9551
9552 * frame.c (syms_of_frame_1): Add Qtoolbar_lines.
9553
9554 * xfns.c (Fx_create_frame): Add default parameter for toolbar.
9555
9556 * frame.h (struct frame): Rename top_margin to toolbar_lines.
9557
9558 * xfns.c (x_frame_parms): Add `toolbar-lines'.
9559 (x_set_toolbar_lines): New.
9560
9561 * keyboard.c (cmd_error_internal): Bug fix.
9562
9563 * xterm.c: Remove double include of syssignal.h.
9564
95651998-10-18 Gerd Moellmann <gerd@gnu.org>
9566
9567 * xterm.c (x_toolbar_item): New.
9568 (x_handle_toolbar_click): Use it.
9569 (note_toolbar_highlight): Use it.
9570
9571 * keyboard.c (syms_of_keyboard): Staticpro toolbar_item_properties
9572 and toolbar_items_vectors.
9573
9574 * xterm.c (help_echo): New.
9575 (draw_glyphs_face): Add DRAW_IMAGE_RAISED and DRAW_IMAGE_SUNKEN.
9576 (x_set_glyph_string_gc): Handle them.
9577 (x_after_update_window_line): Don't do anything in pseudo-windows.
9578 (x_produce_image_glyph): Take image margin and face relief into
9579 account.
9580 (x_get_glyph_string_clip_rect): Handle pseudo-windows.
9581 (x_draw_glyph_string_background): Optimize case when face has
9582 relief.
9583 (x_setup_relief_color): Take frame instead of glyph string
9584 parameter.
9585 (x_draw_relief_rect): New.
9586 (x_draw_glyph_string_relief): Call it.
9587 (x_draw_image_glyph_string_foreground): Handle margin and image
9588 relief.
9589 (x_draw_image_glyph_string_background): Ditto.
9590 (expose_frame): Redraw toolbar window.
9591 (expose_window): Don't draw cursor for pseudo-windows.
9592 (x_y_to_hpos_vpos): Handle pseudo-windows.
9593 (frame_to_window_pixel_xy): New.
9594 (note_mouse_highlight): Call note_toolbar_highlight.
9595 (x_handle_toolbar_click): New.
9596 (note_toolbar_highlight): New.
9597 (show_mouse_face): Change int parameter `hl' to parameter of
9598 type enum draw_glyphs_face. Handle image highlighting.
9599 (XTread_socket): Return a HELP_EVENT input event if help_echo is
9600 non-nil. Use x_handle_toolbar_click.
9601
9602 * termhooks.h (event_kind): Add HELP_EVENT, TOOLBAR_EVENT.
9603
9604 * xfns.c (image_value_type): Add IMAGE_INTEGER_VALUE,
9605 IMAGE_BOOL_VALUE.
9606 (parse_image_spec): Handle them.
9607 (image_spec_value): Additional parameter found.
9608 (free_image): Remove image from the vector `images' of the
9609 image cache.
9610 (clear_image_cache): Additional parameter force_p.
9611 (Fclear_image_cache): New.
9612 (x_find_image_file): New.
9613 (xbm_load): Handle `:margin' and `:relief'. Use
9614 x_find_image_file.
9615 (xpm_load): Likewise.
9616 (pbm_load): Likewise.
9617 (jpeg_load): Likewise.
9618 (tiff_load): Likewise.
9619 (gif_load): Likewise.
9620
9621 * keyboard.c (Qhelp_echo): New symbol.
9622 (read_char): Handle `toolbar' and `help_echo' events.
9623 (kbd_buffer_get_event): Handle HELP_ECHO input event.
9624 (make_lispy_event): Handle TOOLBAR_EVENT.
9625 (toolbar_items): New.
9626 (process_toolbar_item): New.
9627 (PROP): New.
9628 (init_toolbar_items): New.
9629 (append_toolbar_item): New.
9630 (read_char_x_menu_prompt): Handle `toolbar' event.
9631 (read_key_sequence): Ditto.
9632
9633 * xfaces.c (Qtoolbar): New.
9634 (realize_basic_faces): Realize `toolbar' face.
9635 (face_at_string_position): Remove parameter modeline_p, add
9636 base_face_id.
9637
9638 * xfns.c (xbm_load_image_from_file): Don't use Xmu function
9639 to read data.
9640
96411998-10-17 Gerd Moellmann <gerd@gnu.org>
9642
9643 * xdisp.c (init_iterator): Replace parameter modeline_p with
9644 base_face_id.
9645 (next_element_from_string): Call get_next_display_element
9646 recursively after handling text properties.
9647 (prepare_menu_bars): Call update_toolbar.
9648 (update_toolbar): New.
9649 (build_desired_toolbar_string): New.
9650 (display_toolbar_line): New.
9651 (redisplay_toolbar): New.
9652 (toolbar_item_info): New.
9653 (redisplay_window): Call redisplay_toolbar.
9654 (Fdump_toolbar_row): New. Defined if compiled with GLYPH_DEBUG.
9655
9656 * dispnew.c (clear_current_matrices): Clear matrices of toolbar
9657 window.
9658 (clear_desired_matrices): Ditto.
9659 (adjust_frame_glyphs_for_window_redisplay): Make toolbar window.
9660 (free_glyphs): Free matrices of toolbar window.
9661 (update_frame): Update toolbar window.
9662 (change_frame_size_1): Take toolbar into account.
9663 (Fset_toolbar_height): New.
9664
9665 * dispextern.h (struct it): Remove member modeline_p, add
9666 base_face_id.
9667 (struct image): Add members relief and margin.
9668 (IMAGE_ASCENT): Include margin in height.
9669
96701998-10-14 Gerd Moellmann <gerd@gnu.org>
9671
9672 * xfns.c (Fclear_image_cache): New.
9673
9674 * xfaces.c (realize_basic_faces): Realize toolbar face.
9675 (face_at_string_position): Remove parameter modeline_p, add
9676 base_face_id.
9677
9678 * dispextern.h (enum face_id): Add TOOLBAR_FACE_ID.
9679
96801998-10-13 Gerd Moellmann <gerd@gnu.org>
9681
9682 * keyboard.c (syms_of_keyboard): Intern `:help'.
9683
96841998-10-12 Gerd Moellmann <gerd@gnu.org>
9685
9686 * xterm.c (note_toolbar_highlight): New.
9687 (note_mouse_highlight): Call it.
9688
9689 * window.c (window_from_coordinates): Additional parameter toolbar_p.
9690 (coordinates_in_window): Handle toolbar window.
9691
9692 * keyboard.c (toolbar_items): New.
9693 (process_toolbar_item): New.
9694 (parse_toolbar_item): New.
9695 (init_toolbar_items): New.
9696 (append_toolbar_item): New.
9697
9698 * dispextern.h (enum toolbar_item_idx): New.
9699 (enum toolbar_item_image): New.
9700
9701 * frame.h (struct frame): Add toolbar-related members.
9702
9703 * xfaces.c (face_at_string_position): Remove assertion that
9704 current_buffer == window's buffer. This is not the case when
9705 called for the toolbar window.
9706
9707 * frame.c (make_frame): Initialize toolbar members.
9708
9709 * alloc.c (mark_object): Mark toolbar data of frames.
9710
9711 * frame.h (struct frame): Add toolbar-related members
9712 toolbar_window, desired_toolbar_items, current_toolbar_items,
9713 desired_toolbar_string, current_toolbar_string,
9714 n_desired_toolbar_items, n_current_toolbar_items. Add
9715 window_height.
9716
9717 * xterm.c (x_after_update_window_line): Don't draw bitmap
9718 areas for pseudo-windows.
9719 (expose_frame): Handle toolbar window.
9720 (expose_window): Don't do cursor stuff for pseudo-windows.
9721
9722 * xdisp.c (display_menu_bar): Correct calls to init_iterator.
9723
97241998-10-11 Gerd Moellmann <gerd@gnu.org>
9725
9726 * frame.c (make_frame): Initialize toolbar_window.
9727
9728 * alloc.c (mark_object): Make the toolbar window.
9729
9730 * dispnew.c (update_frame): Update frame's toolbar_window.
9731 (clear_current_matrices): Likewise.
9732 (clear_desired_matrices): Likewise.
9733 (adjust_frame_glyphs_for_window_redisplay): Make toolbar_window.
9734 (free_glyphs): Free the toolbar window and its matrices.
9735
9736 * frame.h (struct frame): Add toolbar_window.
9737
9738 * xterm.c (x_draw_glyph_string_relief): Handle mouse-face
9739 with relief.
9740
97411998-10-10 Gerd Moellmann <gerd@gnu.org>
9742
9743 * dispnew.c (buffer_posn_from_coords): Don't screw up if
9744 window start is not in the range BEGV..ZV.
9745
97461998-10-09 Gerd Moellmann <gerd@gnu.org>
9747
9748 * xdisp.c (try_scrolling): Experimentally handle the case
9749 that scroll-preserve-screen-position is set to `always'.
9750
9751 * window.c (Vscroll_preserve_screen_position): Replacement for
9752 scroll_preserve_screen_position.
9753
97541998-10-08 Gerd Moellmann <gerd@gnu.org>
9755
9756 * dispnew.c: Don't initialize auto structs; the HP/UX compiler
9757 doesn't like it.
9758 * xdisp.c: Ditto.
9759
9760 * xdisp.c (make_cursor_line_fully_visible): Adjust this_line_y.
9761
97621998-10-06 Gerd Moellmann <gerd@gnu.org>
9763
9764 * minibuf.c (Fminibuffer_complete_word): Fix computation of
9765 i_byte when prompts are inserted into minibuffers.
9766
9767 * dispextern.h (FRAME_INTERNAL_BORDER_WIDTH_SAFE): New.
9768 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X): Use it.
9769 (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y): Ditto.
9770
97711998-10-04 Gerd Moellmann <gerd@gnu.org>
9772
9773 * xdisp.c (make_cursor_line_fully_visible): New.
9774 (try_scrolling): New.
9775 (redisplay_window): Move scrolling code to try_scrolling.
9776 (make_cursor_line_fully_visible): Handle case of window too small
9777 to show a single line.
9778 (redisplay_window): Case forced window start---use
9779 make_cursor_line_fully_visible.
9780 (redisplay_window): Case cursor movement via current matrix.
9781 If ending up on a partially visible line, make it fully visible
9782 instead of recentering.
9783 (try_scrolling): Additional parameter scroll_smoothly.
9784
9785 * xterm.c (x_draw_bitmap): Don't XClearArea under the pixmap.
9786
97871998-09-28 Gerd Moellmann <gerd@gnu.org>
9788
9789 * window.c (window_scroll_pixel_based): Bug fix: vpos used
9790 instead of y-position for scroll-preserved-screen-position.
9791
97921998-09-07 Gerd Moellmann <gerd@gnu.org>
9793
9794 * dispnew.c (update_frame_line): If current row is not enabled,
9795 write the whole line.
9796
97971998-09-06 Gerd Moellmann <gerd@gnu.org>
9798
9799 * lisp.h (HAVE_FACES): Removed.
9800
9801 * dispextern.h (HAVE_FACES): Removed.
9802
9803 * config.in (HAVE_FACES): Removed.
9804
9805 * dispnew.c (HAVE_FACES): Removed.
9806
9807 * xdisp.c (HAVE_FACES): Removed.
9808
9809 * xfaces.c (HAVE_FACES): Removed.
9810
98111998-09-05 Gerd Moellmann <gerd@gnu.org>
9812
9813 * xdisp.c (init_iterator): If face_change_count is non-zero,
9814 free realized faces.
9815
9816 * xfaces.c (free_all_realized_faces): Make it externally visible.
9817 (Finternal_set_lisp_face_attribute): Increment
9818 windows_or_buffers_changed.
9819
9820 * dispnew.c (direct_output_for_insert): Give up if
9821 face_change_count is non-zero.
9822 (direct_output_forward_char): Ditto.
9823
9824 * xfaces.c (face_change_count): New.
9825
98261998-09-04 Gerd Moellmann <gerd@gnu.org>
9827
9828 * xterm.c (x_draw_bar_cursor): Don't draw if cursor hpos is out
9829 of range.
9830
98311998-09-03 Gerd Moellmann <gerd@gnu.org>
9832
9833 * term.c (Ftty_display_color_p): New.
9834
98351998-09-02 Gerd Moellmann <gerd@gnu.org>
9836
9837 * xfaces.c (Ftty_defined_colors): New.
9838
9839 * xterm.c (x_produce_glyphs): Fix computation of
9840 contains_overlapping_glyphs_p for ASCII.
9841
9842 * dispnew.c (Fshow_cursor): Don't change cursor state while
9843 redisplaying.
9844 (direct_output_for_insert): If a glyph with lbearing or rbearing
9845 is among the new glyphs, set row flag contains_overlapping_glyph_p.
9846
98471998-09-01 Gerd Moellmann <gerd@gnu.org>
9848
9849 * term.c (OUTPUT_IF): Make replacement text have statement form.
9850 (OUTPUT1_IF): Ditto.
9851 (TS_italic_mode, TS_end_italic_mode): Removed.
9852 (TS_bold_mode): Removed.
9853 (TS_underscore_mode, TS_end_underscore_mode): Removed.
9854 (TS_enter_bold_mode, TS_enter_dim_mode, TS_enter_blink_mode): New.
9855 (TS_enter_reverse_mode): New.
9856 (TS_enter_underline_mode, TS_exit_underline_mode): New.
9857 (TN_magic_cookie_glitch_ul): New.
9858 (TS_enter_alt_charset_mode, TS_exit_alt_charset_mode): New.
9859 (TS_exit_attribute_mode): New.
9860 (TN_max_colors, TN_max_pairs, TS_orig_pairs): New.
9861 (TS_set_foreground, TS_set_background): New.
9862 (reset_terminal_modes): Switch colors back to default.
9863 (write_glyphs): Turn face on before writing text, turn it off
9864 afterwards.
9865 (insert_glyphs): Ditto.
9866 (term_init): Initialize new terminal capability variables.
9867 (turn_on_face): Turn a face on.
9868 (turn_off_face): Turn a face off.
9869
9870 * lisp.h (MAKE_GLYPH): Remove test for frame type.
9871 (GLYPH_CHAR): Ditto.
9872 (GLYPH_FACE): Ditto.
9873
9874 * xfaces.c (Vface_tty_color_alist): New.
9875 (face-register-tty-color): New.
9876 (face-clear-tty-colors): New.
9877
9878 * dispextern.h (FACE_TTY_DEFAULT_COLOR): New.
9879 (struct it): Remove member faces_p since we now always have faces.
9880
98811998-08-31 Gerd Moellmann <gerd@gnu.org>
9882
9883 * dispextern.h (struct face): Add tty appearance flags.
9884
9885 * xdisp.c (init_iterator): Always handle faces.
9886 (extend_face_to_end_of_line): Handle tty frames.
9887
9888 * dispnew.c (clear_glyph_matrix): Allow a null matrix to be
9889 passed in.
9890
98911998-08-30 Gerd Moellmann <gerd@gnu.org>
9892
9893 * xfaces.c (realize_default_face): Use empty strings to indicate
9894 that the face should use the default foreground/background
9895 color of the terminal. Fill font-related attributes with
9896 appropriate values for tty frames.
9897
9898 * emacs.c (main): Call syms_of_xfaces before init_window_once.
9899
9900 * xfaces.c (realize_default_face): If face `default' is not
9901 yet known, create it.
9902
9903 * frame.c (make_terminal_frame): Call init_frame_faces
9904 unconditionally.
9905
9906 * xfaces.c (init_frame_faces): Make it work for tty frames.
9907 (free_frame_faces): Ditto.
9908 (clear_face_cache): Ditto.
9909 (recompute_basic_faces): Ditto.
9910 (Fframe_face_alist): Ditto.
9911 (free_realized_face): Ditto.
9912 (prepare_face_for_display): Ditto.
9913 (clear_face_gcs): Ditto.
9914 (lookup_face): Ditto.
9915 (smaller_face): Ditto.
9916 (realize_default_face): Ditto.
9917 (realize_face): Ditto.
9918 (realize_face): Dispatch to functions depending on the frame type.
9919 (realize_x_face): X way of realizing faces.
9920 (realize_tty_face): TTY way of realizing faces.
9921
99221998-08-29 Gerd Moellmann <gerd@gnu.org>
9923
9924 * xfaces.c (realize_face): Remove parameter unibyte_registry,
9925 compute it instead.
9926 (lookup_face): Remove local variable unibyte_registry.
9927
99281998-08-22 Gerd Moellmann <gerd@gnu.org>
9929
9930 * xterm.c (x_draw_glyph_string_relief): Draw top and bottom lines
9931 1 pixel longer.
9932
9933 * xdisp.c (face_before_or_after_it_pos): Fix computation
9934 of face in buffer.
9935
9936 * editfns.c (make_buffer_string_both): If prompt in buffer,
9937 prevent start > end.
9938
9939 * indent.c (Fvertical_motion): Set current_buffer to window's
9940 buffer if it isn't already.
9941
99421998-08-21 Gerd Moellmann <gerd@gnu.org>
9943
9944 * dispextern.h (GLYPH_DEBUG): Use default 0.
9945
9946 * xdisp.c (it_props): New member `smaller'.
9947 (init_iterator): Initialize it.
9948 (Qsmaller): New.
9949 (push_it): Save value of `smaller' value on the stack.
9950 (pop_it): Restore `smaller' from the stack.
9951 (handle_smaller_prop): New.
9952 (handle_face_prop): Use `smaller' text property to select a
9953 suitable face.
9954
9955 * dispextern.h (SMALLER_PROP_IDX): New.
9956 (struct it): Add member `smaller'.
9957
9958 * xfaces.c (smaller_face): New.
9959
9960 * frame.h (FRAME_WINDOW_WIDTH_ARG): Add bitmap area widths.
9961
9962 * dispnew.c (allocate_matrices_for_window_redisplay): Compute
9963 total pixel width of window differently.
9964
9965 * xdisp.c (init_iterator): Compute width of mode line differently.
9966
9967 * dispextern.h (WINDOW_DISPLAY_PIXEL_WIDTH): Subtract width
9968 of bitmap areas.
9969
9970 * window.c (Fsplit_window): Include width of bitmap areas in
9971 window width.
9972 (window_internal_width): Subtract width of bitmap areas from
9973 total width.
9974
99751998-08-18 Gerd Moellmann <gerd@gnu.org>
9976
9977 * xdisp.c: Functions reordered for better readability.
9978
9979 * dispnew.c (update_text_area): Handle glyphs with arbitrary
9980 lbearing.
9981 (update_window_tree): Parameter no_scrolling_p removed.
9982 (update_single_window): Ditto.
9983
9984 * xterm.c (x_get_char_font_and_encoding): Renamed to
9985 x_get_char_face_and_encoding.
9986
9987 * dispnew.c (update_text_area): Don't call get_glyph_overhangs
9988 if end of current row reached.
9989
9990 * xterm.c (x_get_glyph_face_and_encoding): New.
9991 (x_get_glyph_overhangs): Call it.
9992
9993 * xdisp.c (Qshow_trailing_whitespace): New.
9994 (Qtrailing_whitespace): New.
9995 (enum prop_handled): New.
9996 (struct props, it_props): New.
9997 (next_overlay_change): New. Works like Fnext_overlay_change
9998 but doesn't use xmalloc.
9999 (handle_stop): Restructured.
10000 (face_before_or_after_it_pos): Case iteration over a string: fix
10001 handling of face before current position.
10002
100031998-08-16 Gerd Moellmann <gerd@gnu.org>
10004
10005 * dispnew.c (adjust_glyph_matrix): Don't optimize matrix
10006 reallocation matrix if fonts_changed_p.
10007 (update_text_area): Handle glyphs with lbearing.
10008
100091998-08-14 Gerd Moellmann <gerd@gnu.org>
10010
10011 * xdisp.c (struct props): New.
10012 (it_props): New.
10013 (compute_prop_info): New.
10014 (handle_stop): New.
10015
10016 * textprop.c (validate_interval_range): Make it externally
10017 visible.
10018
10019 * dispnew.c (direct_output_for_insert): Remove calls
10020 to compute_stop_pos.
10021
10022 * dispextern.h (struct it): Remove check_charpos,
10023 next_overlay_pos. Add what_changes.
10024
100251998-08-10 Gerd Moellmann <gerd@gnu.org>
10026
10027 * xterm.c (note_mouse_highlight): Set BEGV_BYTE, ZV_BYTE.
10028
10029 * xfaces.c (Vx_unibyte_registry_and_encoding): Removed. Use
10030 face_default_registry instead.
10031
10032 * syntax.c (scan_sexps_forward): Set up syntax table before
10033 jumping to initial state label.
10034
100351998-08-09 Gerd Moellmann <gerd@gnu.org>
10036
10037 * dispnew.c (check_matrix_invariants): Handle case of row end pos
10038 >= ZV specially.
10039
100401998-08-08 Gerd Moellmann <gerd@gnu.org>
10041
10042 * xdisp.c (redisplay_window): Case cursor movement---if cursor
10043 ends up in partially visible row, try to scroll. Case forced
10044 window start---handle windows not tall enough to show a single
10045 line.
10046
10047 * window.h (struct window): Member dy renamed vscroll.
10048
10049 * xterm.c (x_list_fonts): Re-activate suppression of scalable
10050 fonts.
10051 (x_draw_stretch_glyph_string): Set clipping if using GC that
10052 hasn't set it yet.
10053
10054 * xdisp.c (redisplay_window): Case forced window start -
10055 don't let cursor end on partially visible row. Use desired
10056 matrix to find a suitable PT if it doesn't appear.
10057 (decode_mode_spec): Merged with 20.2.97.
10058 (try_window_reusing_current_matrix): Give up if old or
10059 new display is vscrolled.
10060 (redisplay_window): Reset vscrolling if forced window start,
10061 or if recentering.
10062
100631998-08-06 Gerd Moellmann <gerd@gnu.org>
10064
10065 * xfaces.c (realize_default_face): Use the fontset name instead of
10066 the alias for the family attribute of the default face because we
10067 can't easily determine a good alias from fontset-alias-alist.
10068 (face_fontset): Use Fquery_fontset to find the fontset.
10069 (font_list): Additional pattern parameter.
10070 (try_font_list): Ditto.
10071 (set_lface_from_font_name): Set face family from font foundry
10072 and family.
10073 (font_list): If family contains a hyphen, build pattern differently.
10074
100751998-08-05 Gerd Moellmann <gerd@gnu.org>
10076
10077 * xfaces.c (free_realized_faces): Increment windows_or_buffers_-
10078 changed instead of setting the frame garbaged.
10079
10080 * xfaces.c (lface_equal_p): Don't assume equal Lisp types for
10081 all attribute values. This is wrong if values are unspecified,
10082 i.e. nil.
10083
10084 * xdisp.c (try_window_id): Give up if window start changed.
10085
10086 * xfaces.c (make_realized_face): Store registry as Lisp object.
10087 (load_face_font_or_fontset): Compute registry of a face
10088 differently. Make it `eq' to Vx_unibyte_registry_and_encoding if
10089 possible.
10090
10091 * dispextern.h (FACE_SUITABLE_FOR_CHARSET_P): Compare registries
10092 differently.
10093
10094 * alloc.c (mark_face_cache): Mark the registry member of faces.
10095
10096 * dispextern.h (struct face): Make registry a Lisp string.
10097
100981998-08-04 Gerd Moellmann <gerd@gnu.org>
10099
10100 * xterm.c (x_get_char_font_and_encoding): Additional parameter
10101 multibyte_p. Handle unibyte text.
10102 (x_append_glyph): Set the multibyte_p flag of glyphs.
10103 (x_produce_image_glyph): Ditto.
10104 (x_append_stretch_glyph): Ditto.
10105 (x_produce_glyphs): Handle unibyte text like ASCII.
10106
10107 * xdisp.c (push_it): Save the multibyte flag of an iterator on the
10108 stack.
10109 (pop_it): Restore it.
10110 (face_before_or_after_it_pos): Handle the case that the string or
10111 buffer is unibyte.
10112 (get_overlay_strings): Set the multibyte flag of the iterator if
10113 the new overlay string is multibyte.
10114 (get_glyph_property): Likewise.
10115 (get_next_display_element): Don't check for charset changes in
10116 unibyte text.
10117 (append_space): Compute face differently for unibyte text.
10118 (extend_face_to_end_of_line): Don't return quickly if face has
10119 stipple.
10120
10121 * xfaces.c (load_face_font_or_fontset): Store registry and
10122 encoding of the font in the registry member of the face.
10123 (make_realized_face): Additional parameter `registry'.
10124 (free_realized_face): Free the registry of a realized face.
10125 (face_suitable_for_charset_p): Function form of the macro
10126 with the same name in uppercase.
10127 (lookup_face): Use Vx_unibyte_registry_and_encoding if charset < 0.
10128 (choose_face_font): New parameter unibyte_registry.
10129 (choose_face_fontset_font): Ditto.
10130 (realize_default_face): Remember the registry and encoding of
10131 the specified frame font in Vx_unibyte_registry_and_encoding.
10132 (face_at_buffer_position): Handle unibyte.
10133 (face_at_string_position): Likewise.
10134 (realize_face): New parameter unibyte_registry.
10135 (compute_char_face): Handle the unibyte case.
10136
10137 * dispextern.h (struct glyph): Add bit multibyte_p.
10138 (struct face): New member registry holding the registry and
10139 encoding of the X font of the face.
10140 (FACE_UNIBYTE_P): Value is non-zero if face is for unibye text.
10141 (enum face_id): Add BASIC_FACE_ID_SENTINEL.
10142 (FACE_SUITABLE_FOR_CHARSET_P): Handle charset < 0 meansing unibyte
10143 text.
10144 (struct iterator_stack_entry): Add multibyte_p.
10145
10146 * xdisp.c (string_pos): Use string_char_to_byte.
10147 (char_charset): Removed.
10148
101491998-08-03 Gerd Moellmann <gerd@gnu.org>
10150
10151 * xterm.c (x_draw_image_glyph_string_foreground): Draw a
10152 rectangle for a block cursor over an image without a mask.
10153 (x_stretch_block_cursor): Added. Non-zero means don't draw
10154 a block cursor over a stretch as wide as that stretch.
10155 (x_draw_stretch_glyph_string): Use it.
10156 (x_draw_hollow_cursor): Ditto.
10157
10158 * minibuf.c (read_minibuf): Use minibuf_prompt instead of prompt.
10159 (read_minibuf): Add front-sticky text property for prompt.
10160
10161 * xdisp.c (char_charset): Return charset of a character,
10162 depending on whether or not multi-byte characters are enabled.
10163
10164 * xfaces.c (Fset_face_charset_registry): Removed.
10165 (x_charset_registry): Determine registry from charset plist.
10166
101671998-08-02 Gerd Moellmann <gerd@gnu.org>
10168
10169 * xdisp.c (get_next_display_element): Don't check for charset
10170 changes if multi-byte characters are not enabled.
10171
10172 * xdisp.c (echo_area_display): Use the flush function from the
10173 redisplay interface.
10174 * keyboard.c (detect_input_pending_run_timers): Likewise.
10175
10176 * dispextern.h (produce_*glyphs_hook): Removed.
10177 * term.c (produce_*glyphs): Ditto.
10178 (cursor_to): Remove pixel position parameters.
10179
10180 * dispnew.c: Remove hooks for window-based redisplay, introduce
10181 a redisplay interface structure.
10182
10183 * xterm.c (x_per_char_metric): Return default char metrics if per
10184 char metric exists but contains a zero width. Adobe Courier seems
10185 to contain such characters.
10186
10187 * xdisp.c (compute_line_metrics): Compute the width of rows
10188 without stopping at glyphs with zero width.
10189
101901998-08-01 Gerd Moellmann <gerd@gnu.org>
10191
10192 * xdisp.c (display_mode_line): If nothing was displayed at all,
10193 display a space.
10194 (hscroll_window_tree): Don't subtract 1 from target point if equal
10195 to ZV and window is not the selected window.
10196
10197 * dispnew.c (check_matrix_invariants): Remove check for window
10198 start at BEGV or after newline. This happens in rare cases
10199 intentionally.
10200
102011998-07-31 Gerd Moellmann <gerd@gnu.org>
10202
10203 * xfaces.c (x_charset_registry): Use STRING_BYTES.
10204 (syms_of_xfaces): Add Vface_default_registry.
10205 (x_charset_registry): Use it.
10206
10207 * xdisp.c (run_window_scroll_functions): Run window scroll functions.
10208 (redisplay_window): Use it.
10209
10210 * dispnew.c (update_text_area): Handle lbearing of deleted text
10211 by backing up one character.
10212
102131998-07-30 Gerd Moellmann <gerd@gnu.org>
10214
10215 * dispnew.c (adjust_glyph_matrix): Use a different check to
10216 decide to do nothing.
10217
10218 * xfaces.c (face_at_string_position): Additional parameter
10219 mode_line_p. If non-zero, merge with the mode line face
10220 instead of the default face.
10221 * dispextern.h (struct it): Add mode_line_p.
10222 * xdisp.c (init_iterator): Set it.
10223 (compute_face_in_string): Use it.
10224 (face_before_or_after_it_pos): Handle strings.
10225 (get_next_display_element): Don't look for relief end in C strings.
10226 (next_element_from_string): Deliver string position instead of
10227 buffer position.
10228
10229 * xterm.c (x_flush): Flush X output buffer.
10230 (XTflash): Use it.
10231
10232 * xfaces.c (lface_from_face_name): Renamed from lface_from_symbol.
10233 Allow strings as face names.
10234
10235 * xfns.c (forall_images_in_image_cache): Check that frame is
10236 alive.
10237
10238 * widget.c (EmacsFrameDestroy): Remove call to free_frame_faces;
10239 it's also called from x_destroy_window. Since this function is
10240 called from X, freeing stuff allocated with xmalloc is dangerous
10241 here, anyway.
10242
10243 * xfaces.c (free_realized_faces): Don't clear current matrices
10244 of a frame being destroyed.
10245
10246 * frame.c (make_frame): Call set_window_buffer instead of
10247 Fset_window_buffer.
10248
10249 * window.c (set_window_buffer): Extracted from Fset_window_buffer,
10250 with an additional argument specifying whether or not hooks may
10251 be called.
10252 (Fset_window_buffer): Call it.
10253
10254 * dispnew.c (clear_desired_matrices): Check that frame has
10255 a valid root window before clearing matrices in the window tree.
10256 (clear_current_matrices): Ditto.
10257 (clear_window_matrices): If GLYPH_DEBUG, check that hchild and
10258 vchild are valid windows if not nil.
10259
10260 * xfaces.c (merge_face_vector_with_property): Allow :reverse-video
10261 for :inverse-video.
10262 (Finternal_set_lisp_face_attribute): Ditto.
10263 (Finternal_set_lisp_face_attribute_from_resource): Ditto.
10264 (Finternal_get_lisp_face_attribute): Ditto.
10265 (Finternal_lisp_face_attribute_values): Ditto.
10266 (syms_of_xfaces): Define the symbol `:reverse-video'.
10267
10268 * xdisp.c (get_glyph_property): Renamed from
10269 fill_iterator_from_glyph_property.
10270 (next_element_from_buffer): Handle case that no `glyph' property
10271 was found correctly.
10272 (display_line): Extend face to end of line only if we have faces.
10273
102741998-07-29 Gerd Moellmann <gerd@gnu.org>
10275
10276 * dispnew.c (Fshow_cursor): Renamed from blink_cursor. Take
10277 additional window argument.
10278
10279 * xdisp.c (reseat_at_previous_visible_line_start): Renamed from
10280 set_iterator_to_previous_visible_line_start.
10281 (reseat_at_next_visible_line_start): Likewise.
10282 (compute_stop_pos): Renamed from set_iterator_stop_pos.
10283 (face_before_or_after_it_pos): Renamed from get_face_at_it_pos.
10284 (compute_face_in_buffer): Renamed from
10285 compute_face_at_iterator_position.
10286 (compute_face_in_string): Renamed from
10287 compute_face_at_iterator_string_position.
10288 (get_space_width): Renamed from get_iterator_space_width.
10289 (next_overlay_string): Renamed from
10290 set_iterator_to_next_overlay_string.
10291 (get_overlay_strings): Renamed from
10292 get_overlay_strings_at_iterator_position.
10293 (restore_overlay_strings): Renamed from
10294 setup_overlay_strings_from_glyph_pos.
10295 (restore_dpvec): Renamed from setup_iterator_dpvec_from_glyph_pos.
10296 (init_from_display_pos): Renamed from init_iterator_from_glyph_pos.
10297 (init_to_row_start): Renamed from init_iterator_to_row_start.
10298 (init_to_row_end): Formerly init_iterator_to_next_row_start.
10299
10300 * xterm.c: Merge with 20.2.97.
10301 (x_produce_glyphs): Use x_append_stretch_glyph for tabs.
10302
10303 * dispextern.h (struct glyph): Replace text_pos position with
10304 simple charpos.
10305
10306 * xdisp.c (this_line_start_pos): Use struct text_pos.
10307 (this_line_end_pos): Renamed from .*endpos; use struct text_pos.
10308 (enum move_it_result): Renamed from move_iterator_result.
10309 (string_pos_nchars_ahead): Compute text_pos in a string from a
10310 known text_pos plus a character delta.
10311 (string_pos): Compute text_pos in string from charpos.
10312 (c_string_pos): Likewise for a C string.
10313 (number_of_chars): Return number of characters in a possibly
10314 multi-byte C string.
10315 (check_it): Renamed from check_iterator. Check that charpos and
10316 bytepos are in sync.
10317 (push_it): Renamed from save_iterator_settings.
10318 (pop_it): Renamed from restore_iterator_settings.
10319 (move_it_.*): Renamed from move_iterator_.*.
10320 (charset_at_position): Take charpos/bytepos into account.
10321 (back_to_previous_line_start): Set iterator to previous line start.
10322 (forward_to_next_line_start): Set iterator to next line start.
10323 (back_to_previous_visible_line_start): Renamed from
10324 move_iterator_previous_visible_line_start.
10325 (set_iterator_to_next_visible_line_start): Handle charpos/bytepos.
10326 (get_face_at_it_pos): Renamed from get_face_from_cursor_pos.
10327 Handle charpos/bytepos.
10328 (compute_face_at_iterator_position): Handle charpos/bytepos.
10329 (compute_face_at_iterator_string_position): Likewise.
10330 (get_iterator_space_width): Likewise.
10331 (load_overlay_strings): Likewise.
10332 (get_overlay_strings_at_iterator_position): Likewise.
10333 (reseat_iterator): Take a text_pos position argument.
10334 (setup_iterator_overlay_strings_from_glyph_pos): Handle charpos/
10335 bytepos.
10336 (init_iterator): Take additional bytepos parameter.
10337 (reseat_iterator_to_string): Handle charpos/bytepos.
10338 (start_display): Take a text_pos parameter. Handle charpos/bytepos.
10339 (next_element_from_string): Handle charpos/bytepos.
10340 (next_element_from_c_string): Likewise.
10341 (fill_iterator_from_glyph_property): Likewise.
10342 (next_element_from_buffer): Likewise.
10343 (set_iterator_to_next): Increment charpos and bytepos of an iterator.
10344 (move_iterator_in_display_line_to): Handle charpos/bytepos.
10345 (move_it_to): Likewise.
10346 (move_it_vertically_backward): Likewise.
10347 (move_it_vertically): Likewise.
10348 (move_it_by_lines): Likewise.
10349 (hscroll_window_tree): Likewise.
10350 (redisplay_internal): Likewise.
10351 (set_cursor_from_row): Likewise.
10352 (redisplay_window): Likewise.
10353 (try_window): Take a text_pos parameter. Handle charpos/bytepos.
10354 (try_window_reusing_current_matrix): Handle charpos/bytepos.
10355 (get_first_unchanged_at_end_row): Compute and return delta_bytes.
10356 (try_window_id): Handle charpos/bytepos.
10357 (Ftrace_redisplay_toggle): Return Qnil.
10358 (get_overlay_arrow_glyph_row): Handle charpos/bytepos.
10359 (insert_left_trunc_glyphs): Likewise.
10360
10361 * dispnew.c: `Merge' with 20.2.97 (it's really too different to
10362 do a real merge).
10363 (increment_glyph_matrix_buffer_positions): Add parameter delta_bytes.
10364 (increment_glyph_row_buffer_positions): Ditto.
10365 (copy_glyph_row_contents): Ditto.
10366 (check_matrix_invariants): Add additional checks for charpos/
10367 bytepos consistency.
10368 (direct_output_for_insert): Changed for charpos/bytepos.
10369 (buffer_posn_from_coords): Likewise. Put code dealing with
10370 `direction-reversed' in #if 0.
10371
10372 * xterm.h: Merge with 20.2.97.
10373
10374 * frame.h: Merge with 20.2.97.
10375
10376 * window.h: Merge with 20.2.97. Add window_end_bytepos.
10377
10378 * dispextern.h (MATRIX_ROW_START_CHARPOS): Get charpos of a row
10379 start.
10380 (MATRIX_ROW_START_BYTEPOS): Likewise for the byte position.
10381 (MATRIX_ROW_END_CHARPOS): Likewise for the row end.
10382 (MATRIX_ROW_END_BYTEPOS): Likewise for the row end byte position.
10383 (struct it): Various members renamed from .*pos to .*charpos.
10384 (IT_CHARPOS): Access current buffer character position of an
10385 iterator.
10386 (IT_BYTEPOS): Access current buffer byte position of an iterator.
10387 (IT_STRING_CHARPOS): Access current string character position of
10388 an iterator.
10389 (IT_STRING_BYTEPOS): Access current string byte position of
10390 an iterator.
10391 (globally): Add function prototypes from 20.2.97.
10392
10393 * everywhere: Use P_ instead of PROTO for function prototypes
10394 because everyone else seems to use P_.
10395
10396 * dispextern.h (struct text_pos): Structure describing a charpos/
10397 bytepos position in text.
10398 (BYTEPOS): Access the byte position part of a text_pos.
10399 (CHARPOS): Likewise for the character position.
10400 (SET_TEXT_POS): Set a text_pos from a character and byte position.
10401 (INC_TEXT_POS, DEC_TEXT_POS): Increment/decrement a text position.
10402 (SET_TEXT_POS_FROM_MARKER): Set a text_pos from a marker.
10403 (SET_MARKER_FROM_TEXT_POS): Set a marker from a text_pos.
10404 (TEXT_POS_EQUAL_P): Compare two text_pos structures for equality.
10405 (struct display_pos): Renamed from glyph_pos. Use struct text_pos
10406 for buffer and string positions.
10407 (struct glyph): Use text_pos.
10408 (struct it): Renamed from display_iterator. Use text_pos.
10409
104101998-07-23 Gerd Moellmann <gerd@gnu.org>
10411
10412 * xfns.c (x_kill_gs_process): Get image colors from XImage of a
10413 pixmap.
10414
104151998-07-21 Gerd Moellmann <gerd@gnu.org>
10416
10417 * dispextern.h (struct glyph_row): New flag indicate_zv_line_p.
10418 * xterm.c (x_draw_row_bitmaps): Use it.
10419 * dispnew.c (row_equal_p): Ditto.
10420 (update_window_line): Ditto.
10421
10422 * xfns.c (prepare_image_for_display): Don't set loading_failed_p
10423 flag of images.
10424
10425 * dispextern.h (struct image): Removed member loading_failed_p.
10426 It's probably better to have the chance to try to load an image
10427 again.
10428
104291998-07-20 Gerd Moellmann <gerd@gnu.org>
10430
10431 * xterm.c (x_draw_bitmap): Draw bitmap for empty lines ending
10432 at ZV if `indicate-zv-lines' is non-nil.
10433 (x_draw_row_bitmaps): Compute bitmap for `indicate-zv-lines'.
10434
10435 * dispnew.c (row_equal_p): Compare displays_text_p and
10436 ends_at_zv_p flags of rows.
10437 (update_window_line): Ditto.
10438
10439 * buffer.h (struct buffer): New member indicate_zv_lines.
10440
10441 * buffer.c (init_buffer_once): Add default for `indicate-zv-lines'.
10442 (init_buffer_once): New variable `default-indicate-zv-lines'.
10443 (syms_of_buffer): New buffer-local varianle `indicate-zv-lines'.
10444
10445 * xdisp.c (redisplay_window): Don't try moving the cursor
10446 if current glyph row w->last_cursor.vpos isn't enabled.
10447
10448 * xterm.c (bitmap_type): Add ZV_LINE_BITMAP.
10449
10450 * window.c (Fset_window_vscroll): Allow only negative scroll
10451 values. Others don't seem to make sense, and this way it's easy
10452 to restore a vscroll of zero.
10453
10454 * xterm.c (x_inverted_image_mask): Check that pixmap could be
10455 allocated.
10456 (x_draw_image_glyph_string_background): Don't clip if pixmap
10457 could not be created.
10458
10459 * xfns.c (xbm_load_image_from_file): Check that pixmap could
10460 be created.
10461 (xbm_load): Ditto.
10462 (gs_load): Ditto.
10463
10464 * xterm.c (x_get_glyph_overhangs): Take image and stretch
10465 glyphs into account.
10466
10467 * xfaces.c (realize_default_face): Don't set font family of
10468 the default face from the fontset alias name for `fontset-startup'.
10469
10470 * xfns.c (gs_load): Pass frame's pixel foreground and background
10471 color to the Lisp loader.
10472
104731998-07-19 Gerd Moellmann <gerd@gnu.org>
10474
10475 * xfns.c (tiff_image_p, tiff_load): Support TIFF images via
10476 libtiff34.
10477
10478 * configure.in (--with-tiff, HAVE_TIFF): Added.
10479
10480 * config.in (HAVE_TIFF): Added.
10481
10482 * Makefile.in (LIBTIFF): Added.
10483
10484 * xfns.c (jpeg_image_p, jpeg_load): Support JPEG images.
10485
10486 * Makefile.in (LIBJPEG): Added.
10487
10488 * xfns.c (resource_types): Enumerators renamed to RES_TYPE_NUMBER,
10489 RES_TYPE_BOOLEAN etc. because of conflict of `boolean' with
10490 jpeglib.h.
10491
10492 * configure.in (HAVE_JPEG, --with-jpeg): Added. On systems
10493 where the library is installed in /usr/local/lib, e.g. FreeBSD,
10494 configure must be run with `--x-includes=/usr/X11R6/include:
10495 /usr/local/include --x-libraries=/usr/X11R6/lib:/usr/local/lib'.
10496
104971998-07-18 Gerd Moellmann <gerd@gnu.org>
10498
10499 * config.in (HAVE_JPEG): Added.
10500
10501 * xfns.c (ct_init): Initialize color table used to map RGB colors
10502 from images to X pixel colors.
10503 (ct_free): Free color table.
10504 (ct_lookup): Look an RGB color up.
10505 (ct_allocated_colors): Get vector of allocated colors.
10506 (pbm_image_p): Test if image specification is a valid PPM
10507 image specification.
10508 (pbm_scan_number): Scan a decimal ASCII number from a file.
10509 (pbm_load): Load a PPM image.
10510
10511 * window.c (Fset_window_vscroll): Adjust glyph matrix if
10512 necessary. Take canonical character units as parameter.
10513 (Fwindow_vscroll): Return canonical character units.
10514
10515 * dispnew.c (allocate_matrices_for_window_redisplay): Add negative
10516 w->dy to display height for which glyph rows must be allocated.
10517
105181998-07-17 Gerd Moellmann <gerd@gnu.org>
10519
10520 * xfaces.c (face_at_string_position): Merge in region face
10521 so that it won't overwrite the font in the region.
10522 (face_at_buffer_position): Ditto.
10523 (realize_basic_faces): Don't realize region face.
10524
10525 * dispextern.h (enum face_id): REGION_FACE_ID removed.
10526
10527 * xterm.c (x_set_glyph_string_background_width): Don't let
10528 cursor face extend to end of line.
10529
10530 * xdisp.c (append_space): If adding space of default face,
10531 make sure glyph ist produced with right face.
10532
10533 * xterm.c (x_clear_glyph_string_rect): Draw a rectangle in the
10534 background color of a glyph string.
10535 (x_draw_glyph_string_background): Call it.
10536 (x_draw_glyph_string_bg_rect): Ditto.
10537 (x_draw_stretch_glyph_string): Ditto.
10538
105391998-07-15 Gerd Moellmann <gerd@gnu.org>
10540
10541 * xdisp.c (init_iterator): Initialize it->current_y to the
10542 window's vscroll w->dy.
10543
10544 * window.c (Fwindow_vscroll): Return number of pixels window
10545 is vscrolled smoothly.
10546 (Fset_window_vscroll): Set the number.
10547
10548 * xdisp.c (move_iterator_to): Recognize case MOVE_TO_POS and
10549 to_pos in truncated part of a line.
10550
105511998-07-14 Gerd Moellmann <gerd@gnu.org>
10552
10553 * xdisp.c (move_iterator_in_display_line_to): If very first glyph
10554 doesn't fit on the line, truncate it, despite truncate_lines nil.
10555 (display_line): Ditto.
10556
10557 * xfns.c: Experimental support for Ghostscript images.
10558
10559 * xterm.c (x_term_init): Initialize new atoms DONE and PAGE.
10560 (XTread_socket): React on events from Ghostscript.
10561 (expose_frame): If width or height are zero, redraw entire frame.
10562 (XTread_socket): Call expose_frame after receiving event from
10563 Ghostscript.
10564
10565 * xterm.h (struct x_display_info): Add atoms DONE and PAGE
10566 for Ghostscript support.
10567
10568 * xdisp.c (redisplay_internal): Return quickly if called
10569 recursively.
10570
10571 * alloc.c (NSTATICS): Increased to 1024.
10572
105731998-07-08 Gerd Moellmann <gerd@gnu.org>
10574
10575 * xterm.c (x_append_stretch_glyph): Append a stretch glyph to an
10576 iterator's glyph row.
10577 (x_produce_stretch_glyph): Call it.
10578 (x_produce_glyphs): Handle `space-width' property; call
10579 x_append_stretch_glyph.
10580
10581 * xdisp.c (syms_of_xdisp): Add symbol `space-width' used as a text
10582 property.
10583 (get_iterator_space_width): Determine value of `space-width'
10584 property at iterator's position.
10585 (reseat_iterator): Call it.
10586 (next_element_from_string): Ditto.
10587 (next_element_from_buffer): Ditto.
10588 (init_iterator): Initialize space_width of iterator.
10589 (redisplay_internal): Don't goto end_of_redisplay if PT hasn't
10590 moved, but cursor blinks.
10591 (redisplay_internal): Set w->last_cursor_off_p after update.
10592
10593 * dispextern.h (enum iterator_prop_idx): Add SPACE_WIDTH_PROP_IDX.
10594 (struct display_iterator): Add new member space_width.
10595
10596 * window.h (struct window): Add last_cursor_off_p.
10597
105981998-07-07 Gerd Moellmann <gerd@gnu.org>
10599
10600 * Saved.
10601
10602 * window.c (Fpos_visible_in_window_p): Case window not up to
10603 date---return nil if iterator hasn't reached position.
10604
106051998-07-06 Gerd Moellmann <gerd@gnu.org>
10606
10607 * xdisp.c (text_outside_line_unchanged_p): Fix case that
10608 overlays have changed.
10609 (redisplay_window): Case cursor movement. Don't try it if
10610 last_cursor.vpos is out of range.
10611
10612 * xdisp.c (set_cursor_from_row): Set this_line_.* variables. This
10613 way, the display optimization for the line containing the cursor
10614 is used more frequently, esp. when we have a blinking cursor.
10615 (display_line): Don't set this_line_.* variables.
10616
10617 * xterm.c (x_redraw_cursor): Removed.
10618 (x_display_and_set_cursor): Set cursor type depending on
10619 cursor_off_p flag of window.
10620
10621 * dispnew.c (redraw_cursor_hook): Removed.
10622 (Fblink_cursor): Additional parameter on_p to set the cursor_off_p
10623 member of the selected window.
10624
10625 * xfaces.c (Fface_font): Added for compatibility with 20.2.
10626
10627 * xterm.c (x_y_to_hpos_vpos): Return null if not over text.
10628 Return glyph area under x/y.
10629 (note_mouse_highlight): Use x_y_to_hpos_vpos in its new form.
10630
10631 * keyboard.c (detect_input_pending_run_timers): Call gobble_input
10632 after redisplaying.
10633
106341998-07-05 Gerd Moellmann <gerd@gnu.org>
10635
10636 * xdisp.c (text_outside_line_unchanged_p): Test if changes
10637 are all outside of a line of text.
10638 (redisplay_internal): Use it.
10639
106401998-06-30 Gerd Moellmann <gerd@gnu.org>
10641
10642 * xdisp.c (next_element_from_buffer): After skipping over
10643 invisible text, look for the `glyph' property.
10644 (set_iterator_stop_pos): Ignore check positions in front
10645 of an iterator's current position.
10646
10647 * xterm.c (show_mouse_face): Don't act on rows that don't exist
10648 anymore or which are marked as not having valid contents.
10649
10650 * xfaces.c (Finternal_set_lisp_face_attribute): Don't free
10651 realized faces if new attribute value is equal to old value.
10652
106531998-06-29 Gerd Moellmann <gerd@gnu.org>
10654
10655 * xfaces.c (Finternal_make_lisp_face): Increment
10656 lface_id_to_name_size when lface_id_to_name is reallocated.
10657
106581998-06-27 Gerd Moellmann <gerd@gnu.org>
10659
10660 * xdisp.c (set_iterator_stop_pos): Compute initial stop_pos
10661 as minimum of endpos and overlay_pos.
10662 (load_overlay_strings): Set next_overlay_pos of iterator to
10663 -1 if we don't have to check for more overlay strings.
10664
106651998-05-09 Gerd Moellmann <gerd@gnu.org>
10666
10667 * xdisp.c (set_iterator_to_next_visible_line_start): Don't
10668 do anything if iterator is at ZV because scan_buffer doesn't
10669 work otherwise.
10670
10671 * xterm.c (x_encode_char): Inline it.
10672 (x_get_char_font_and_encoding): Simplified.
10673 (x_per_char_metric): Inline it.
10674
10675 * xterm.c (x_draw_glyph_string_relief): Use clipping.
10676
10677 * xdisp.c (get_next_display_element): Check for end of relief
10678 face moved here from next_element_from_buffer.
10679
10680 * xterm.c (x_produce_image_glyph): Add relief thickness.
10681 (x_produce_stretch_glyph): Ditto.
10682
106831998-05-08 Gerd Moellmann <gerd@gnu.org>
10684
10685 * xdisp.c (fill_iterator_from_glyph_property): Handle glyph
10686 property value (space :width WIDTH :height HEIGHT :ascent ASCENT).
10687
10688 * xterm.c (x_produce_stretch_glyph): Produce a stretch glyph
10689 from a glyph property.
10690 (x_produce_glyphs): Use it.
10691
10692 * xdisp.c (set_iterator_to_next): Handle next_element_from_stretch.
10693
10694 * xterm.c (x_produce_image_glyph): Add to current_x only if
10695 in text area.
10696 (x_produce_glyphs): Ditto.
10697
10698 * xdisp.c (display_line): Compute row height from glyphs in
10699 marginal areas.
10700
10701 * xterm.c (x_draw_image_glyph_string_background): Draw
10702 background of an image glyph string.
10703 (x_draw_glyph_string_bg_rect): Draw a rectangular region of
10704 the background of a glyph string.
10705 (x_draw_image_glyph_string_foreground): Draw the foreground of
10706 an image glyph string.
10707 (x_inverted_image_mask): Return the inverted mask of an image.
10708
10709 * xfns.c (x_draw_image): Removed.
10710
10711 * dispextern.h (struct image_type): Remove drawing function.
10712
10713 * xfaces.c (load_face_colors): Swap colors if face is inverse.
10714
10715 * xdisp.c (get_next_display_element): In marginal areas, translate
10716 newlines, tabs, etc. like normal control characters.
10717
10718 * xfaces.c (Fface_color_supported_p): Transpose parameters frame
10719 and color.
10720 (free_realized_faces): Set frame garbaged.
10721
10722 * xfaces.c (syms_of_xfaces): Add defsubr for
10723 internal-lisp-face-attribute-values.
10724
107251998-05-07 Gerd Moellmann <gerd@gnu.org>
10726
10727 * xterm.c (x_produce_image_glyph): Don't add glyph if area is
10728 full.
10729 (x_produce_image_glyph): Set IT->nglyphs to 1.
10730 (x_draw_image_glyph_string): Use inverted mask to draw background.
10731
10732 * dispextern.h (struct image_type): Additional clipping rect
10733 parameters for drawing functions.
10734
10735 * xterm.c (x_get_glyph_string_clip_rect): Get clip rect for
10736 a glyph string.
10737 (x_draw_image_glyph_string): Use it and pass the rect to the
10738 image drawing function.
10739
10740 * xdisp.c (fill_iterator_from_glyph_property): Use position of
10741 first character with `glyph' property as image position. Set
10742 iterator back to that position as long as the image hasn't been
10743 consumed with set_iterator_to_next.
10744 (set_cursor_from_row): Accept when glyph with given position is
10745 not found in the row. Set cursor x to end of line in that case,
10746 so that we can hscroll.
10747 (redisplay_internal): Correct computation of delta by which
10748 positions have changed in redisplay optimization for cursor
10749 row of selected window.
10750
10751 * xdisp.c (display_line): Remove start_pos.
10752 (display_line): Fix bug preventing display optimization for
10753 cursor line of selected window.
10754 (next_element_from_buffer): Avoid XSETBUFFER, use it->w->buffer
10755 instead.
10756
10757 * dispnew.c (update_text_area): Use GLYPH_EQUAL_P.
10758 (update_text_area): Take glyph pixel width into account
10759 when trying to find a resync point.
10760 (row_equal_p): Compare glyphs in all areas.
10761
107621998-05-06 Gerd Moellmann <gerd@gnu.org>
10763
10764 * xterm.c (x_produce_glyphs): Don't add glyph if area is full.
10765
10766 * dispextern.h (struct glyph_row): Use unsigned hash value.
10767
10768 * xdisp.c (display_line): Simplified and made faster by setting
10769 the cursor with set_cursor_from_row.
10770 (set_cursor_from_row): Handle rows of desired matrix.
10771
107721998-05-05 Gerd Moellmann <gerd@gnu.org>
10773
10774 * xdisp.c (set_cursor_from_row): Don't put cursor on glyphs
10775 with type != CHAR_GLYPH.
10776 (fill_iterator_from_glyph_property): Return void. Set
10777 method to next_element_from_image.
10778 (next_element_from_image): Dummy function for delivering a
10779 single image id.
10780 (set_iterator_to_next): Add method next_element_from_image.
10781 (redisplay_window): When recentering, and cursor vpos is -1
10782 after display, assume middle of window is in first line displayed
10783 in window, and display again.
10784 (fill_iterator_from_glyph_property): Assign image glyph
10785 the position of the first character having the glyph property.
10786
10787 * dispextern.h (IMAGE_ASCENT): Compute ascent of image.
10788 * xfns.c (x_draw_image): Use it.
10789 * xterm.c (x_produce_image_glyph): Use it.
10790
10791 * xterm.c (x_produce_image_glyph): Set iterator's pixel_width.
10792
10793 * Makefile.in: Extraneous #define of LIBXPM removed.
10794
10795 * xterm.c (x_produce_glyphs): Produce a STRETCH_GLYPH for tabs.
10796 (x_fill_stretch_glyph_string): Fill a glyph string from a
10797 stretch glyph.
10798 (x_compute_glyph_string_overhangs): Compute overhangs only
10799 for text glyph strings.
10800 (x_draw_stretch_glyph_string): Draw a stretch glyph string.
10801 (x_draw_glyph_string): Call it.
10802
10803 * dispextern.h (glyph_type): Add STRETCH_GLYPH.
10804 (struct glyph): Add sub-structure for stretchable glyphs.
10805 (GLYPH_EQUAL_P): Compare glyph type and u.val.
10806
10807 * xdisp.c (get_overlay_arrow_glyph_row): Put face code into
10808 #ifdef HAVE_FACES.
10809
10810 * xterm.c (x_produce_glyphs): Use ASCII face for spaces of a TAB.
10811
10812 * xdisp.c (fill_iterator_from_glyph_property): Renamed from
10813 setup_iterator_from_glyph_property. Don't do it for terminal
10814 frames.
10815
10816 * xterm.c (x_produce_image_glyph): Produce glyph for image
10817 that can't be loaded.
10818
10819 * xfns.c (lookup_image): If image can't be loaded, set its
10820 width and height so that we can draw a rectangle.
10821 (x_draw_image): Draw a rectangle for images that don't have
10822 a pixmap.
10823 (make_image): Set hash value.
10824 (image_spec_equal_p): Use image_spec_value.
10825
10826 * xterm.c (expose_frame): Don't try to redraw if basic faces
10827 haven't benn realized yet.
10828 (x_draw_image_glyph_string): Fill background only if image
10829 is not as tall as row.
10830
108311998-05-04 Gerd Moellmann <gerd@gnu.org>
10832
10833 * Makefile.in (LIBXPM): If not already defined, define to -lXpm.
10834 (LIBX)[HAVE_X11]: Add LIBXPM.
10835
10836 * xfns.c (xpm_image_p): Implementation of image type functions
10837 for XPM.
10838 (xpm_load): Ditto.
10839
10840 * dispextern.h (struct image): Add mask pixmap for XPM.
10841
10842 * xfns.c (x_draw_image): Handle images with masks.
10843
10844 * configure.in: --with-xpm added. Code detecting -lXpm added.
10845
10846 * config.in: Add HAVE_XPM.
10847
10848 * xfns.c (xbm_draw): Removed.
10849 (x_draw_image): Default implementation for drawing images.
10850 (xbm_keyword_index): Remove XBM_DEPTH.
10851 (xbm_format): Remove `:depth'.
10852 (xbm_image_spec_from_file): Removed to reduce consing.
10853 (xbm_load_image_from_file): Added for the same reason.
10854
10855 * xterm.c (x_fill_image_glyph_string): Don't set ybase of
10856 glyph string.
10857 (x_draw_image_glyph_string): Pass ybase to image draw function.
10858
10859 * xfns.c (make_image): Set default baseline.
10860
10861 * xterm.c (x_produce_image_glyph): Compute ascent of image
10862 from its height and baseline percentage.
10863
10864 * xfns.c (xbm_keyword_index): Add XBM_BASELINE.
10865 (xbm_format): Add description for `:baseline'.
10866 (xbm_image_spec_from_file): Add keywords from original spec to
10867 result.
10868 (xbm_load): Set baseline of image.
10869 (xbm_image_p): Check range for baseline.
10870
10871 * dispextern.h (struct image): Add member baseline.
10872
10873 * xdisp.c (dump_glyph_matrix): Handle image glyphs.
10874
10875 * term.c (produce_glyphs): Change assertion to allow DISP_IMAGE.
10876
10877 * xdisp.c (get_next_display_element): Do character translations
10878 only if delivering characters.
10879
108801998-05-03 Gerd Moellmann <gerd@gnu.org>
10881
10882 * dispextern.h (ITERATOR_AT_END_OF_LINE_P): Test for
10883 DISP_CHARACTER.
10884
10885 * xterm.c (x_produce_image_glyph): Poduce image glyphs.
10886 (x_produce_glyphs): Call x_produce_glyphs for DISP_IMAGE.
10887
108881998-05-02 Gerd Moellmann <gerd@gnu.org>
10889
10890 * xfns.c (prepare_image_for_display): Set image timestamp.
10891 (clear_image_cache): Clear images if image's timestamp +
10892 Vimage_eviction_seconds is > now.
10893 (syms_of_xfns): New variables image-eviction-seconds, and
10894 image-types.
10895 (add_image_format): Add to image-types.
10896 (xbm_load): Support new image spec format.
10897 (x_alloc_image_color): Allocate a color for an image.
10898
10899 * dispextern.h (struct image): Add timestamp.
10900
10901 * xfns.c (xbm_image_p): Allow bool-vectors, vectors of strings and
10902 vectors of bool-vectors.
10903 (xbm_lisp_object_from_file): Build new format image spec.
10904
109051998-05-01 Gerd Moellmann <gerd@gnu.org>
10906
10907 * xfaces.c (init_frame_faces): Initialize image cache.
10908 (free_frame_faces): Free it.
10909
10910 * xterm.c (x_delete_display): Don't free image cache.
10911
10912 * emacs.c (main): Call init_xfns.
10913
109141998-04-30 Gerd Moellmann <gerd@gnu.org>
10915
10916 * alloc.c (mark_object): Mark objects in image cache.
10917
10918 * xfns.c (x_set_internal_border_width): Correct call to
10919 widget_store_internal_border_width.
10920
10921 * widget.c (widget_store_internal_border): Return void.
10922
10923 * xfns.c (x_destroy_bitmap): Use xfree instead of free. Return
10924 void.
10925 (init_x_parm_symbols): Return void.
10926 (x_report_frame_params): Ditto.
10927 (x_set_border_pixel): Ditto.
10928 (syms_of_xfns): Ditto.
10929 (x_destroy_all_bitmaps): Use xfree instead of free.
10930
10931 * xterm.h (FRAME_X_IMAGE_CACHE): Access the image cache of a frame.
10932
10933 * xterm.c (x_term_init): Initialize image_cache of display info.
10934 (x_delete_display): Free image cache.
10935
10936 * xterm.h (struct x_display_info): Add image_cache.
10937
10938 * xfns.c (make_image_cache): Allocate a new image cache.
10939 (free_image_cache): Free an image cache.
10940 (make_image): Allocate an image.
10941 (free_image): Free an image.
10942
10943 * dispextern.h (struct image): Structure describing an image.
10944 (struct image_cache): Structure describing an image cache.
10945
109461998-04-29 Gerd Moellmann <gerd@gnu.org>
10947
10948 * xdisp.c (check_iterator_glyph_property): Return int. Value is
10949 non-zero if iterator is filled with something to return.
10950 (next_element_from_buffer): Immediately return if
10951 setup_iterator_from_glyph_prop has filled iterator with pixmap.
10952 (next_element_from_string): Likewise.
10953
10954 * xfaces.c (load_pixmap): Allow to pass null for W_PTR and H_PTR.
10955
10956 * dispextern.h (struct glyph): Add pixmap_id.
10957 (display_element_type): Add DISP_PIXMAP.
10958
10959 * xmenu.c (popup_get_selection): Use xmalloc/xfree instead of
10960 malloc/free.
10961
10962 * xfaces.c (clear_font_table): Free fonts not used by fontsets.
10963 (clear_face_cache): Call it.
10964
10965 * xterm.c (x_query_font): Don't look at empty font table slots.
10966 (x_compute_min_glyph_bounds): Likewise.
10967 (x_term_init): Initialize font_table to null.
10968 (x_load_font): Change allocation of font_info structures so
10969 that it is possible to free fonts.
10970
10971 * xfns.c (Fx_close_connection): Use xfree instead of free.
10972 Only free fonts from filled font table entries.
10973
10974 * xfaces.c (best_matching_font): Support use of scalable fonts.
10975 (Fface_scalable_fonts_mode): Toggle use of scalable fonts.
10976
10977 * xterm.h (struct x_display_info): Remove screen_dpi, add resx
10978 and resy.
10979 * xterm.c (x_term_init): Compute resx and resy.
10980
10981 * xfaces.c (split_font_name): Don't reject scalable fonts.
10982
10983 * xterm.c (x_list_fonts): Set code exclusing scalable fonts
10984 in #if 0.
10985
10986 * xfaces.c (xlfd_point_size): Return 0 for fonts whose real
10987 point size cannot be determined.
10988
10989 * xterm.h (FRAME_SMALLEST_CHAR_WIDTH): Return smallest character
10990 width over all fonts on a frame.
10991 (FRAME_SMALLEST_FONT_HEIGHT): Likewise for font height.
10992 * dispnew.c (adjust_frame_glyphs_for_window_redisplay): Use these
10993 macros.
10994
10995 * xterm.c (x_font_min_bounds): Moved here from xfaces.c.
10996 (x_compute_min_char_bounds): Formerly min_char_bounds in xfaces.c.
10997 (x_load_font): Use x_compute_min_char_bounds.
10998
10999 * xterm.h (struct x_display_info): New members smallest_char_width
11000 and smallest_font_height.
11001
110021998-04-28 Gerd Moellmann <gerd@gnu.org>
11003
11004 * dispextern.h (PREPARE_FACE_FOR_DISPLAY): Call function with
11005 the same name if GC of face is zero.
11006
11007 * dispextern.h (struct face): Member non_ascii_gc removed.
11008
11009 * xterm.c (x_get_char_font_and_encoding): Return face's font
11010 for characters < 0177 in default face. Prepare face for
11011 display before returning it.
11012 (x_produce_glyphs): Use it->charset.
11013 (x_get_char_font_and_encoding): Simplified.
11014 (x_encode_char): Remove parameter `font'.
11015
11016 * xfaces.c (choose_face_font): If registry from charset symbol
11017 doesn't contain a `-', make it a pattern by appending "*-*".
11018
11019 * xdisp.c (check_iterator_glyph_property): Adjust limit for
11020 glyph_check_pos computation to character boundary.
11021
110221998-04-27 Gerd Moellmann <gerd@gnu.org>
11023
11024 * fontset.h (FONT_INFO_FROM_ID): Return null if ID is invalid.
11025
11026 * xfaces.c (ascii_face_of_lisp_face): Get the id of the realized
11027 ASCII face for a given Lisp face id.
11028
11029 * xdisp.c (set_iterator_stop_pos): Take glyph_check_pos into
11030 account.
11031 (reseat_iterator): Set glyph_check_pos. Handle case where
11032 new position is < original position.
11033 (check_iterator_glyph_property): Handle glyph property in strings.
11034 (next_element_from_string): Call above function.
11035 (next_element_from_display_vector): Handle faces in glyphs.
11036 (get_next_display_element): Set face_id of glyphs for
11037 control chars to zero.
11038
11039 * Makefile.in (term.o): Add dependency on dispextern.h.
11040
11041 * xdisp.c (syms_of_xdisp): Add symbol `glyph'.
11042 (display_line): Handle marginal areas.
11043 (move_iterator_in_display_line_to): Likewise.
11044
11045 * xfaces.c (Finternal_make_lisp_face): Assign Lisp faces an id.
11046
11047 * xfaces.c (face_at_buffer_position): Don't merge with nil
11048 text property.
11049 (face_at_string_position): Ditto.
11050
11051 * dispextern.h (struct display_iterator): Use a stack of saved
11052 values instead of saving check positions etc. individually.
11053
11054 * xdisp.c (set_iterator_to_next): If end of Lisp string reached,
11055 maybe pop the iterator's stack.
11056 (save_iterator_settings): Push a value on iterator's stack.
11057 (get_overlay_strings_at_iterator_position): Use it.
11058 (restore_iterator_settings): Pop the stack.
11059 (set_iterator_to_next_overlay_string): Use it.
11060
11061 * xfaces.c (try_font_list): Use alternative font families.
11062
110631998-04-26 Gerd Moellmann <gerd@gnu.org>
11064
11065 * xfaces.c (Fset_face_font_sort_order): Set the order in which
11066 font selection matches fonts.
11067 (Fface_font_sort_order): Return the font sort order.
11068 (best_matching_font): Find best matching font based on sort order.
11069 (cmp_font_names): Sort by given sort order.
11070
11071 * dispextern.h (struct display_iterator): New member faces_p.
11072 * xdisp.c (init_iterator): Initialize it->faces_p.
11073 (compute_face_at_iterator_string_position): Use it.
11074 (compute_face_at_iterator_position): Use it.
11075 (init_iterator): Use it.
11076 (display_mode_line): Ditto.
11077
11078 * xdisp.c (get_next_display_element): Put code choosing a face
11079 when the charset changes in #ifdef HAVE_FACES.
11080
11081 * dispextern.h (FACE_FOR_CHARSET): Replacement for function
11082 lookup_face_for_charset.
11083
11084 * xfaces.c (free_font_names): Renamed from free_split_font_names.
11085 (free_all_realized_faces): Renamed from remove_all_realized_faces.
11086
110871998-04-25 Gerd Moellmann <gerd@gnu.org>
11088
11089 * xfaces.c (best_matching_font): Return the name of the best
11090 matching font in an array of font_name structures.
11091 (choose_face_font): Use it.
11092 (choose_face_fontset_font): Use it.
11093 (find_best_weight_font): If final font found has same weight as
11094 the font we started with, return the original font because it is a
11095 better match for the resolution of the display.
11096 (find_best_slant_font): Likewise.
11097 (merge_face_vector_with_property): Check more invalid attribute
11098 values.
11099 (lface_suitable_for_charset_p): Replaced by a macro with the same
11100 name in upper-case.
11101
111021998-04-24 Gerd Moellmann <gerd@gnu.org>
11103
11104 * dispextern.h (struct face): Member
11105 fontset_chosen_for_realization_p removed.
11106
11107 * xfaces.c (cache_face): If face->fontset >= 0, add face to the
11108 end of the collision list, so that we find more specific faces
11109 first.
11110 (lookup_face_for_charset): Look up a new face if face->fontset >=
11111 0, and charset != CHARSET_COMPOSITION.
11112
11113 * xfaces.c (split_font_name): Return zero if point size of font
11114 couldn't be computed.
11115 (realize_default_face): Use ASCII font of a fontset to determine
11116 font-related attributes of the default face.
11117 (face_fontset): Return fontset id for face family.
11118 (font_list): Additional parameter font_pattern. If non-nil,
11119 return fonts matching that pattern.
11120
111211998-04-23 Gerd Moellmann <gerd@gnu.org>
11122
11123 * xfaces.c (choose_face_fontset): If new fontset cannot be
11124 constructed, or fontset name cannot be split, return the id of the
11125 standard fontset.
11126
11127 * xterm.c (XTframe_up_to_date): Check that frame is an X frame.
11128 When Emacs starts, it may be called for the initial frame which
11129 isn't an X frame.
11130
11131 * dispextern.h (struct face): New members foreground_defaulted_p,
11132 background_defaulted_p.
11133 (struct face): Members `mask' and `cache' removed.
11134
11135 * xfaces.c (load_color): Set them.
11136 (free_face_colors): Check them.
11137 (xlfd_point_size): Return -1 if resolution or point size of
11138 font unknown.
11139
11140 * xfaces.c (free_font): Removed.
11141 (load_face_font_or_fontset): Renamed from load_font.
11142 (load_face_font_or_fontset): Use message2 instead of signalling.
11143 (load_color): Likewise.
11144 (load_pixmap): Likewise.
11145
11146 * xterm.h (struct x_display_info): Add screen_dpi.
11147 * xterm.c (x_term_init): Initialize it.
11148 * xfaces.c (xlfd_point_size): Use it.
11149 (split_font_name): Compute numeric XLFD_RESY.
11150 (cmp_font_names): Make fonts with an y-resolution more
11151 similar to that of the frame appear first in the result.
11152
11153 * xfaces.c (cache_face): If fontset_chosen_for_realization_p
11154 is set for the face to cache, add it to the end of the collision
11155 list.
11156 (try_font_list): If fonts for given family and registry cannot
11157 be found, first try to keep the registry, and choose a different
11158 family.
11159 (choose_face_font): Allow nfonts == 0.
11160 (try_font_list): Give up if no font matches given registry.
11161
111621998-04-22 Gerd Moellmann <gerd@gnu.org>
11163
11164 * xterm.c (x_get_char_font_and_encoding): Get font_info from
11165 font info id of the face.
11166
11167 * xfaces.c (load_font): Set font_info_id.
11168 (realize_face): Ditto.
11169
11170 * dispextern.h (struct face): Change member font_info to
11171 font_info_id.
11172
11173 * fontset.h (FONT_INFO_ID): Build an ID from a font_info pointer.
11174 (FONT_INFO_FROM_ID): Get a font_info pointer from an ID.
11175
11176 * xdisp.c (extend_face_to_end_of_line): If IT's current charset
11177 isn't ASCII, get the ASCII face before adding a space.
11178 (append_space): Likewise.
11179 (insert_left_trunc_glyphs): Initialize truncate_it's charset
11180 to -1 so that it will compute the right face for the truncation
11181 glyphs.
11182
11183 * xfaces.c (realize_face): Set
11184 face->fontset_chosen_for_realization_p.
11185 (lookup_face_for_charset): If fontset wasn't specified originally
11186 and new charset != CHARSET_COMPOSITION, get a new face for that
11187 charset.
11188
11189 * dispextern.h (struct face): New member
11190 fontset_chosen_for_realization_p_specified_p. Set to 1 when
11191 realize_face has chosen a fontset to display composite characters
11192 for a Lisp face not specifying a fontset.
11193
11194 * xdisp.c (extend_face_to_end_of_line): Move tests for default
11195 face and line already filled here. Don't do anything if current
11196 face hasn't a relief or has a background equal to the frame
11197 background.
11198
11199 * xfaces.c (split_font_name): Additional parameter numeric_p.
11200 Don't compute numeric values if it is non-zero.
11201 (choose_face_fontset): Call split_font_name with numeric_p == 0.
11202 (choose_face_fontset): Print a message if fontset contains a
11203 font whose name cannot be split into fields.
11204
112051998-04-21 Gerd Moellmann <gerd@gnu.org>
11206
11207 * xfaces.c (try_font_list): Try to load a list of fonts,
11208 possibly using less restrictive patterns.
11209 (choose_face_font): Use it.
11210
11211 * xterm.c (x_get_char_font_and_encoding): For charset !=
11212 CHARSET_ASCII use font_info of face if face hasn't a fontset set.
11213
11214 * dispextern.h (struct face): New member font_info.
11215
11216 * xfaces.c (load_font): Use FS_LOAD_FONT to load fonts for faces
11217 specifying a fontset as well as those not having a fontset.
11218 (free_font): Make it empty.
11219 (realize_face): Use changed load_font.
11220
11221 * xterm.c (x_get_char_font_and_encoding): If face doesn't
11222 fit for charset, get the right one.
11223
11224 * xfaces.c (load_font): Take frame and name parameter, return
11225 font.
11226 (free_font): Likewise.
11227 (split_font_name): Compute numeric values for height, swidth etc.
11228 (cmp_font_names): Use them.
11229 (find_best_width_font): Ditto.
11230 (find_best_height_font): Ditto.
11231 (find_best_weight_font): Ditto.
11232 (find_best_slant_font): Ditto.
11233 (lface_hash): Add weight, slant, swidth and relief to hash value.
11234 (lface_equal_p): Make it faster.
11235 (lface_from_symbol): Use assq_no_quit.
11236 (Fnote_default_face_changed): Removed.
11237 (cmp_font_names): Use strcmp instead of xstricmp.
11238 (face_charset_registries): Removed.
11239
112401998-04-20 Gerd Moellmann <gerd@gnu.org>
11241
11242 * frame.h (CHECK_FRAME): Give this macro a statement form.
11243 (CHECK_LIVE_FRAME): Ditto.
11244
11245 * xfaces.c (find_best_width_font): Find the best matching font
11246 for a given width.
11247 (find_best_height_font): Likewise for height.
11248 (find_best_weight_font): Likewise for weight.
11249 (find_best_slant_font): Likewise for slant.
11250 (choose_face_font): Use them.
11251 (get_lface_attributes): Always return frame-local face attrs.
11252 (Finternal_merge_in_global_face): Merge local face with
11253 global face attributes.
11254
11255 * xfaces.c (check_lface_attrs, check_lface): Check consistency of
11256 Lisp face attributes.
11257
112581998-04-19 Gerd Moellmann <gerd@gnu.org>
11259
11260 * xfaces.c (Finternal_set_lisp_face_attribute): Add :bold
11261 and :italic for compatibility.
11262 (Finternal_set_lisp_face_attribute_from_resource): Handle
11263 :bold and :italic. Handle boolean resource values for
11264 :underline and :italic.
11265
11266 * xfns.c (display_x_get_resource): Make it externally visible.
11267
11268 * xfaces.c (lface_from_symbol): Take a frame as parameter.
11269 If that frame is non-null, return the frame-local face.
11270 (Finternal_make_lisp_face): Additional frame argument.
11271 (lface_attributes): Get face attributes from global and frame-local
11272 definitions.
11273 (Finternal_lisp_face_equal_p): Additional frame argument.
11274 (merge_lisp_face_vector_with_property): Ditto.
11275 (Frealize_basic_faces): Removed.
11276 (Finternal_get_lisp_face_attribute): Additional frame argument.
11277 (Finternal_lisp_face_p): Ditto.
11278 (load_color) [MSDOS]: Removed because it isn't clear how
11279 to do this for MS-DOS.
11280
11281 * xfaces.c (lface_from_symbol): Get global face definition
11282 from face-global-alist.
11283
11284 * xfaces.c (Finternal_set_lisp_face_attribute): Allow `t'
11285 as values for :underline and :inverse-video.
11286 (Finternal_set_lisp_face_attribute): Allow nil values.
11287
112881998-04-17 Gerd Moellmann <gerd@gnu.org>
11289
11290 * xfaces.c (Finternal_make_lisp_face): Return Lisp face vector.
11291
11292 * xfaces.c (syms_of_xfaces): Add Vall_faces.
11293 (Finternal_make_lisp_face): Add new face to Vall_faces.
11294
11295 * xdisp.c (echo_area_display): Remove code recomputing faces.
11296 (redisplay_internal): Ditto.
11297 (init_iterator): Do it here.
11298
11299 * xfaces.c (choose_face_font): Check that swidth doesn't change
11300 for subusequent attributes.
11301 (xlfd_point_size): Return int.
11302
11303 * xdisp.c (redisplay_internal, echo_area-display): If realized
11304 faces have been cleared, call recompute_basic_faces.
11305
11306 * xfaces.c (recompute_basic_faces): Free realized faces. Reset
11307 face_attributes_changed_p.
11308 (remove_all_realized_faces): Remove all realized faces on
11309 all frames.
11310 (Finternal_set_lisp_face_attribute): Call remove_all_realized_faces.
11311
11312 * xdisp.c (redisplay_internal): If face attributes have been
11313 changed since the last redisplay, recompute basic faces.
11314 (echo_area_display): Ditto.
11315
11316 * xfaces.c (clear_face_gcs): Renamed from clear_realized_face_cache.
11317
11318 * xfaces.c (min_char_bounds): If face cache not yet present,
11319 don't try to get font dimensions from faces.
11320
11321 * xterm.c (x_frame_mode_line_height): If face cache not present
11322 set, return default height.
11323
11324 * alloc.c (mark_face_cache): Check for null faces. Correct
11325 index bug.
11326
11327 * dispextern.h (struct face): Renamed from struct rface. Member
11328 underline renamed underline_p. Make it a bit-field.
11329
11330 * xfaces.c (init_frame_faces): Allocate face cache.
11331 (free_frame_faces): Free face cache.
11332 (recompute_basic_faces): Realize basic faces only if face cache is
11333 allocated, i.e. after init_frame_faces has been called.
11334
11335 * frame.c (make_frame): Initialze face cache with null.
11336
11337 * xfaces.c (same_size_fonts): Removed.
11338
11339 * xterm.c (x_set_glyph_string_gc): Add post-condition
11340 s->gc != 0.
11341 (x_set_mouse_face_gc): Ditto.
11342 (x_set_mode_line_face_gc): Ditto.
11343
11344 * xfaces.c (realize_default_face): Return int. Value is
11345 zero if frame params don't contain enough information to
11346 realize the default face.
11347 (realize_basic_faces): Ditto.
11348 (init_frame_faces): Realize basic faces.
11349
11350 * xfns.c (x_set_font): First store real font name in frame
11351 parameters, then call recompute_basic_faces.
11352
11353 * xfaces.c (recompute_basic_faces): Call realize_basic_faces.
11354
113551998-04-16 Gerd Moellmann <gerd@gnu.org>
11356
11357 * xfaces.c (syms_of_xfaces): Correct calls to defsubr.
11358
11359 * xfns.c (Fx_face_fixed_p): Removed.
11360 (Fx_list_fonts): Moved to xfaces.c.
11361
11362 * xfaces.c (compute_face_at_buffer_pos): Renamed to
11363 face_at_buffer_position. Parameter charset removed; always
11364 compute face for CHARSET_ASCII.
11365 (face_at_string_position): Renamed from
11366 compute_face_at_string_pos. Parameter charset removed; always
11367 compute for CHARSET_ASCII.
11368 (lookup_face_for_charset): Take frame parameter instead of
11369 face_cache.
11370 (lookup_face): Ditto.
11371 (compute_char_face): Renamed from compute_glyph_face.
11372
11373 * xdisp.c (init_iterator): Initialize charset member.
11374 (reseat_iterator_to_string): Ditto.
11375 (get_charset_at_buffer_position): Determine charset at
11376 buffer position in current_buffer.
11377 (reseat_iterator): Call above function.
11378 (compute_face_at_iterator_position): Call
11379 compute_face_at_buffer_pos.
11380 (compute_face_at_iterator_string_position): Call
11381 compute_face_at_string_pos.
11382 (get_face_from_id): Removed.
11383 (get_face_from_cursor_pos): Call compute_face_at_buffer_pos.
11384 Call get_charset_at_buffer_position.
11385 (reseat_iterator): Determine face if charset at pos differs
11386 from iterator's charset.
11387 (reseat_iterator_to_glyph_pos): Removed.
11388
11389 * xfaces.c (compute_face_at_bufpos): Remove parameter charset.
11390 Determine charset from buffer position.
11391 (compute_string_char_face): Renamed to compute_face_at_string_pos.
11392 (compute_face_at_bufpos): Renamed to compute_face_at_buffer_pos.
11393
11394 * dispextern.h (struct display_iterator): Add member charset.
11395
113961998-04-15 Gerd Moellmann <gerd@gnu.org>
11397
11398 * xfaces.c (compute_char_face): Removed.
11399
11400 * xdisp.c (get_overlay_arrow_glyph_row): Use compute_glyph_face
11401 with new parameter list.
11402
11403 * xfaces.c (region_face): Removed.
11404 (allocate_face): Removed.
11405 (copy_face): Ditto.
11406 (face_eql): Removed.
11407 (intern_face): Removed.
11408 (clear_face_cache): Removed.
11409 (load_font): Ditto.
11410 (unload_font): Ditto.
11411 (load_color): Ditto.
11412 (unload_color): Ditto.
11413 (new_computed_face): Ditto.
11414 (intern_computed_face): Ditto.
11415 (ensure_face_ready): Ditto.
11416 (merge_faces): Ditto.
11417 (compute_base_face): Ditto.
11418 (merge_face_list): Ditto.
11419 (Fmake_face_internal): Removed.
11420 (Fset_face_attribute_internal): Ditto.
11421 (face_name_id_number): Removed.
11422 (Fframe_face_alist): Ditto.
11423 (Fset_frame_face_alist): Ditto.
11424 (Finternal_next_face_id): Ditto.
11425
11426 * xterm.h (struct x_output): Remove computed_faces, and
11427 param_faces. Remove macros accessing them.
11428
11429 * xfaces.c: Entirely new face implementation added.
11430
114311998-04-11 Gerd Moellmann <gerd@gnu.org>
11432
11433 * dispextern.h (struct glyph_pos): Member `bufpos' renamed
11434 `charpos'.
11435
114361998-04-10 Gerd Moellmann <gerd@gnu.org>
11437
11438 * xterm.c (x_scroll_bar_move): Clear only regions not covered by
11439 scroll bar window to reduce flickering. Clear entire height.
11440
11441 * xdisp.c (move_iterator_vertically_backward): Set iterator's
11442 current_x and hpos to zero after moving to previous line
11443 start.
11444
114451998-04-03 Gerd Moellmann <gerd@gnu.org>
11446
11447 * frame.h (FRAME_FACE_CACHE): Access to a frame's face cache.
11448
11449 * xfaces.c (xlfd_point_size): Compute relative point size of
11450 fonts from font and frame resolution.
11451 (sort_fonts): New function to sort fonts, temporarily setting
11452 font_frame to the frame in effect.
11453 (xlfd_point_size): Take additional frame parameter to be able
11454 to get at the display's resolution.
11455
11456 * xterm.c (x_setup_relief_colors): Use WHITE_PIX_DEFAULT and
11457 BLACK_PIX_DEFAULT.
11458 (x_setup_relief_color): Use FRAME_X_SCREEN instead of default
11459 screen of display.
11460
114611998-03-31 Gerd Moellmann <gerd@gnu.org>
11462
11463 * xfaces.c (choose_face_fontset): Instantiate fontsets.
11464
11465 * fontset.h: Add external declarations for Vfontset_alias_alist
11466 and Vglobal_fontset_alist.
11467
11468 * xfaces.c (merge_lisp_face_vector_with_property): Simplified.
11469 (realize_default_face): If frame parameters contain an artificial
11470 font name naming a fontset, set the family of the default face to
11471 the fontset name given by the registry.
11472
11473 * Makefile.in (alloc.o): Add dependency to dispextern.h.
11474
114751998-03-22 Gerd Moellmann <gerd@gnu.org>
11476
11477 * alloc.c (mark_object): Add function prototype. Add cast to
11478 Lisp_Object pointer in call to mark_object for symbol names
11479 because this otherwise gives a warning from gcc 2.8.1.
11480 (mark_face_cache): Mark Lisp objects in realized faces.
11481
114821998-03-19 Gerd Moellmann <gerd@gnu.org>
11483
11484 * frame.h (struct frame): Add member face_cache.
11485
11486 * alloc.c (mark_object): Mark face cache.
11487 (mark_face_cache): Mark Lisp faces in face cache of frame.
11488
11489 * frame.c (make_frame): Initialize face_cache.
11490 (Fdelete_frame): Free it.
11491
114921998-03-18 Gerd Moellmann <gerd@gnu.org>
11493
11494 * xfaces.c: Very first skeleton of functions for face realization,
11495 face merging, face cache etc.
11496
11497 * dispextern.h (struct rface): Realized faces. Will replace
11498 struct face when tested.
11499 (struct face_cache): Realized face caches.
11500
11501 * xdisp.c (init_iterator): Initialize area member of display
11502 iterator.
11503
115041998-03-17 Gerd Moellmann <gerd@gnu.org>
11505
11506 * xterm.c (x_append_glyph): Use it->area to store glyphs.
11507
11508 * dispextern.h (struct display_iterator): New member area.
11509
11510 * xterm.c (note_overwritten_text_cursor): Note when the text
11511 cursor of a window is overwritten.
11512
11513 * xdisp.c (set_cursor_from_row): If PT is not found in the
11514 row, display the cursor at the start of the row.
11515
11516 * dispnew.c (direct_output_forward_char): Call
11517 set_cursor_from_row.
11518
11519 * xdisp.c (setup_iterator_overlay_strings_from_glyph_pos): If
11520 position is not in an overlay string, set iterator's position and
11521 method explicitly so.
11522 (set_cursor_from_row): Correct cursor position calculation.
11523 Make it externally visible.
11524 (redisplay_window): Call set_cursor_from_row so that there is only
11525 one place where the cursor position is calculated from a current
11526 row.
11527
11528 * dispextern.h (struct display_iterator): New member
11529 overlay_strings_at_end_processed_p.
11530
11531 * xdisp.c (check_iterator): Perform sanity checks on
11532 display_iterators.
11533 (next_element_from_buffer): Check for overlay strings at ZV.
11534
115351998-03-16 Gerd Moellmann <gerd@gnu.org>
11536
11537 * buffer.c (init_buffer_once): Add left_margin_width and
11538 right_margin_width to buffer_local_flags.
11539
11540 * dispnew.c (margin_glyphs_to_reserve): Function computing
11541 number of glyphs to reserve for a marginal area.
11542 (adjust_glyph_matrix): Call it.
11543 (adjust_frame_glyphs_for_frame_redisplay): Return if frame
11544 is not alive.
11545
11546 * window.c (Fset_window_margins): Allow floats.
11547
11548 * buffer.c (syms_of_buffer): Add buffer-local variables
11549 left-margin-width and right-margin-width. Add defaults
11550 default-left-margin-width and default-right-margin-width.
11551
11552 * buffer.h (struct buffer): New members left_margin_width
11553 and right_margin_width.
11554
11555 * window.c (Fset_window_margins): Make window the last and
11556 optional argument.
11557
11558 * xterm.c (x_draw_glyphs): Compute x-positions for rows with
11559 flag no_marginal_areas_p differently.
11560 (x_clear_end_of_line): Ditto.
11561 (x_draw_glyph_string_relief): Compute width of relief differently
11562 for rows with flag no_marginal_areas_p.
11563
11564 * dispnew.c (update_window_line): Update marginal areas only
11565 for rows that don't have no_marginal_areas_p set.
11566
11567 * xdisp.c (display_mode_line): Set row's flag no_marginal_areas_p.
11568 (display_menu_bar): Ditto.
11569
11570 * dispextern.h (struct glyph_row): New member no_marginal_areas_p.
11571
11572 * dispnew.c (adjust_glyph_matrix): Compute glyph pointers for
11573 marginal areas in window-based redisplay.
11574
11575 * dispextern.h (struct glyph_matrix): New members
11576 left_margin_glyphs and right_margin_glyphs.
11577
115781998-03-15 Gerd Moellmann <gerd@gnu.org>
11579
11580 * minibuf.c (read_minibuf_unwind): Return Lisp_Object.
11581
11582 * charset.c (non_ascii_char_to_string): Use char type parameters
11583 because the function is used that way from outside. Use unsigned
11584 char internally.
11585
11586 * window.c (change_window_height): Return void.
11587 (make_dummy_parent): Return void.
11588 (init_window_once): Return void.
11589 (syms_of_window): Ditto.
11590 (keys_of_window): Ditto.
11591 (delete_window): Correct return with and without value.
11592
11593 * buffer.c (record_buffer): Return void.
11594
11595 * marker.c (unchain_marker): Return void.
11596
11597 * window.c (unshow_buffer): Return void.
11598 (replace_window): Ditto.
11599 (delete_window): Ditto.
11600
11601 * term.c (delete_glyphs_hook): Void return type.
11602 (ring_bell_hook): Ditto.
11603 (set_terminal_window_hook): Ditto.
11604
11605 * sysdep.c (init_sigio): Return void.
11606
11607 * xterm.c (x_set_window_size): Return void.
11608 (x_calc_absolute_position): Ditto.
11609 (x_set_offset): Ditto.
11610 (x_focus_on_frame): Ditto.
11611 (x_unfocus_frame): Ditto.
11612 (x_make_frame_visible): Ditto.
11613 (x_make_frame_invisible): Ditto.
11614 (x_iconify_frame): Ditto.
11615 (x_destroy_window): Ditto.
11616 (x_wm_set_window_state): Ditto.
11617 (x_wm_set_icon_pixmap): Ditto.
11618 (x_wm_set_icon_position): Ditto.
11619 (x_initialize): Ditto.
11620 (x_error_quitter): Ditto.
11621 (x_destroy_window): Use xfree instead of free.
11622
11623 * keyboard.c (clear_waiting_for_input): Return void.
11624
11625 * xterm.c (x_wm_set_size_hint): Return void.
11626 (x_raise_frame): Ditto.
11627 (refreshicon): Ditto.
11628 (x_error_catcher): Ditto.
11629 (x_clear_errors): Ditto.
11630
11631 * keyboard.c (record_asynch_buffer_change): Return void.
11632
11633