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