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