Remove redundant unistd.h inclusion.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
3b4fa1b2
DL
12000-06-19 Dave Love <fx@gnu.org>
2
3 * unexalpha.c: Include errno.h, string.h, unistd.h. Don't declare
4 errno, strerror. Put text after #endif in comment.
5
6 * xdisp.c (dump_glyph_matrix): Add `static' to declaration (for
7 pcc).
8
9 * xterm.c (x_frame_of_widget): Likewise.
10
cdf0357b
GM
112000-06-19 Gerd Moellmann <gerd@gnu.org>
12
13 * abbrev.c (syms_of_abbrev): Set buffer_default's abbrev table
14 to Vfundamental_mode_abbrev_table.
15
16 * alloc.c (mark_object) [GC_CHECK_MARKED_OBJECTS]: Check that no
17 bogus objects are marked. This slows down GC by ~80 percent, but
18 it might be worth trying when debugging GC-related problems.
19 This feature requires conservative stack marking to be enabled.
20
21 * xterm.c (XTread_socket) <KeyPress>: In case XmbLookupString
22 returns XLookupChars, reset `modifiers' to zero.
23
998e9f8c
DL
242000-06-19 Dave Love <fx@gnu.org>
25
26 * mktime.c: Unprotoized.
27
d1504184
GM
282000-06-19 Richard Stallman <rms@caffeine.ai.mit.edu>
29
30 * data.c (set_internal): If variable is frame-local,
31 store the new value immediately into the frame parameter alist.
32
140c4ac6
KR
332000-06-19 Ken Raeburn <raeburn@gnu.org>
34
14358466
KR
35 * xfns.c (jpeg_load): Fetch error-handling data first, then fill
36 in the custom handler pointer.
37
140c4ac6
KR
38 * keyboard.c (follow_key, read_key_sequence): Use XUINT on key
39 value, or checks for CHAR_META can fail when Lisp_Object is a
40 union type.
41 * keymap.c (get_keyelt): Likewise.
42
10d7bf84
KH
432000-06-19 Kenichi Handa <handa@etl.go.jp>
44
45 * ccl.h (struct ccl_program): New member eol_type.
46 (struct ccl_spec): New member cr_carryover.
47
48 * ccl.c (CCL_WRITE_CHAR): Convert NL according to ccl->eol_type.
49 (setup_ccl_program): Initialize ccl->eol_type to CODING_EOL_LF.
50
51 * coding.c (setup_coding_system) <4>: Reset member `cr_carryover'.
52 (ccl_coding_driver): On encoding, initialize ccl->eol_type.
53 (decode_eol_post_ccl): New function.
54 (decode_coding): Don't detect EOL format here for CCL based coding
55 systems.
56 (decode_coding) <coding_type_ccl>: Handle carryovered CR. Call
57 decode_eol_post_ccl after running the CCL program.
58 (code_convert_region): Don't detect EOL format here for CCL based
59 coding systems.
60 (decode_coding_string): Likewise.
61
52e386c2
KR
622000-06-18 Ken Raeburn <raeburn@gnu.org>
63
64 * charset.c (update_charset_table): Use XINT on "iso_final_char"
65 when treating it as an integer.
66
67 * coding.h (encode_coding_string): Declare.
68
69 * keyboard.c (read_key_sequence): Use XINT on "pos" when treating
70 it as an integer.
71
72 * keymap.c (Fwhere_is_internal): Rename argument "keymap" to
73 "xkeymap" to avoid shadowing the "enum map_type" value that needs
74 to be passed to get_local_map.
75
76 * sound.c (Fplay_sound): Don't call make_number on
77 Frun_hook_with_args count argument.
78
79 * xterm.c (x_send_scroll_bar_event): Fudge lisp object/integer
80 for lisp objects in X event structure data field, when lisp
81 objects are represented with unions.
82 (x_scroll_bar_to_input_event): Ditto.
83
b357b9d4
KR
842000-06-16 Ken Raeburn <raeburn@gnu.org>
85
86 * xdisp.c (decode_mode_spec): In "no_value" case, do NUL
37d034d3
KR
87 termination of string. Fix sense of test whether
88 Vline_number_display_limit is an integer.
b357b9d4 89
a871441d
GM
902000-06-16 Gerd Moellmann <gerd@gnu.org>
91
a9021acd
GM
92 * xfaces.c (syms_of_xfaces) [DEBUG_X_COLORS]: Defsubr dump_colors
93 only if HAVE_X_WINDOWS.
94
6344985d
GM
95 * keymap.c (describe_buffer_bindings): Add `\f\n' in front
96 of titles.
97
a871441d
GM
98 * dispnew.c (update_frame_1): Handle case that cursor vpos is
99 out of bounds.
100
228b083e
EZ
1012000-06-15 Eli Zaretskii <eliz@is.elta.co.il>
102
103 * unexec.c (toplevel): Fix last change, so as not to deprive MSDOS
104 of its headers.
105
c25b53a2
KH
1062000-06-15 Kenichi Handa <handa@etl.go.jp>
107
108 * coding.c (decode_coding_emacs_mule): Always set src_base at the
109 start of the while loop.
110
a6981b11
GM
1112000-06-15 Gerd Moellmann <gerd@gnu.org>
112
e9924e52
GM
113 * atimer.c (alarm_signal_handler): Add forward declaration.
114
a6981b11
GM
115 * data.c (set_internal): Remove debug code.
116
25fa6deb
GM
1172000-06-14 Gerd Moellmann <gerd@gnu.org>
118
dce6b995
GM
119 * Makefile.in (bootstrap-temacs): Add `-I../src'.
120
9f817ea4
GM
121 * unexec.c (toplevel) [COFF]: Include coff.h.
122
123 * s/lynxos.h: New file.
124
125 * keymap.c (Fsingle_key_description): Enclose function key and
126 event symbol names in angle brackets.
127
8a4e3c0c
GM
128 * xdisp.c (setup_echo_area_for_printing): Call
129 message_log_maybe_newline if message_buf_print is not set.
130
131 * print.c (printchar, strout): Don't check message_buf_print
132 before calling setup_echo_area_for_printing because that
133 function does something useful even when message_buf_print is
134 already set.
135
25fa6deb
GM
136 * xdisp.c (message_truncate_lines, Qmessage_truncate_lines): New
137 variables.
138 (ensure_echo_area_buffers): Initialize echo buffer's
139 truncate lines setting to nil.
140 (with_echo_area_buffer): Don't set the echo buffer's truncate
141 lines setting here.
8a4e3c0c 142 (set_message_1): Set it here instead, based on the value
25fa6deb
GM
143 of message_truncate_lines.
144 (resize_mini_window): Handle case that lines are truncated.
145 (syms_of_xdisp): Initialize Qmessage_truncate_lines. DEFVAR_BOOL
146 message-truncate-lines.
147
148 * keyboard.c (read_char): Bind message-truncate-lines to t
149 while displaying a help-echo.
150
151 * lisp.h (Qmessage_truncate_lines): External declaration.
152
163dcff3
GM
1532000-06-13 Gerd Moellmann <gerd@gnu.org>
154
1681ead6
GM
155 * xdisp.c (Vline_number_display_limit): Renamed from
156 line_number_display_limit.
157 (syms_of_xdisp): Use DEFVAR_LISP for line-number-display-limit.
158 Extend documentation string. Initialize
159 Vline_number_display_limit to nil meaning no limit.
160 (decode_mode_spec): Use Vline_number_display_limit with its new
161 meaning.
162
163dcff3
GM
163 * xterm.c (x_check_font) [GLYPH_DEBUG]: Add prototype.
164
1652000-06-13 Richard Stallman <rms@caffeine.ai.mit.edu>
166
167 * frame.c (Fmodify_frame_parameters): Doc fix.
168
169 * xfns.c (x_set_frame_parameters): Comment fix.
170
171 * frame.c (store_frame_param): Call swap_in_global_binding if the
172 variable's current binding was chosen based on this frame.
173
174 * data.c (swap_in_global_binding): New function.
175
a704139d
EZ
1762000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
177
178 * msdos.c (IT_write_glyphs): Don't use CODING_REQUIRE_ENCODING
179 macro, instead AND with CODING_REQUIRE_ENCODING_MASK.
180
9b6610db
EZ
1812000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
182
183 * msdos.h (EMACS_MSDOS_H): Renamed from MSDOS_H_.
184
c68833d2
JR
1852000-06-12 Jason Rumney <jasonr@gnu.org>
186
187 * w32bdf.h (EMACS_W32BDF_H): Renamed from __W32BDF_H__
188
189 * w32.h (EMACS_W32_H): Renamed from _NT_H_
190
191 * w32gui.h (EMACS_W32GUI_H): Renamed from __W32GUI_H__
192
193 * w32inevt.h (EMACS_W32INEVT_H): Renamed from __NTINEVT_H__
194
ed1056b3
GM
1952000-06-12 Gerd Moellmann <gerd@gnu.org>
196
197 * xfaces.c (Fdump_colors) [DEBUG_X_COLORS]: New function.
198 (syms_of_xfaces): Defsubr Sdump_colors.
199 (x_free_colors): Don't treat b&w specially on default visual.
200 (x_free_dpy_colors): New function.
201 (free_face_colors): Don't check visual class; it's done
202 in x_free_colors.
203
204 * xterm.c (x_frame_of_widget): New function.
205 (x_alloc_nearest_color_for_widget): Use it.
206 (x_copy_dpy_color): New function.
207 (x_destroy_window): Free various colors.
208
5050a2ef
KH
2092000-06-12 Kenichi Handa <handa@etl.go.jp>
210
211 * ccl.h (EMACS_CCL_H): Renamed from _CCL_H.
212
213 * charset.h (EMACS_CHARSET_H): Renamed from _CHARSET_H.
214
215 * coding.h (EMASC_CODING_H): Renamed from _CODING_H.
216
217 * composite.h (EMACS_COMPOSITE_H): Renamed from _COMPOSITE_H.
218
219 * fontset.h (EMACS_FONTSET_H): Renamed from _FONTSET_H.
220
fb1b041d
DL
2212000-06-11 Dave Love <fx@gnu.org>
222
223 * systime.h (EMACS_SYSTIME_H): Renamed from _SYSTIME_H.
224
ff96b5f4
EZ
2252000-06-11 Eli Zaretskii <eliz@is.elta.co.il>
226
227 * msdos.h: Don't use _MSDOS_H_ as a symbol, use MSDOS_H_ instead.
228
db8eeecd
GM
2292000-06-11 Gerd Moellmann <gerd@gnu.org>
230
ed1056b3 231 * xmenu.c (xmenu_show): Cast second parameter of lw_popup_menu
db8eeecd
GM
232 to `XEvent *'.
233
49b71c5f
KH
2342000-06-10 Kenichi Handa <handa@etl.go.jp>
235
c479bd55
KH
236 * regex.c (MAKE_CHAR) [!emacs]: Dummy macro for non-Emacs env.
237 (regex_compile): Fix the code for handling the case of single byte
238 char and multibyte char being mixed in a range within [...].
239
ff6a65c2
KH
240 * fileio.c (Finsert_file_contents): Be sure to setup src_multibyte
241 and dst_multibyte members of coding.
242
49b71c5f
KH
243 * charset.c (update_charset_table): Update the table
244 bytes_by_char_head.
245 (init_charset_once): Initialize elements of bytes_by_char_head to
246 1 except for leading codes for private charases.
247
248 * charset.h (CHARSET_8_BIT_GRAPHIC): Define as 0x80.
249 (UNIBYTE_STR_AS_MULTIBYTE_P): Fix for an invalid multibyte
250 sequence.
251
9e80b57d
KR
2522000-06-09 Ken Raeburn <raeburn@gnu.org>
253
254 * xterm.c (x_connection_closed): If dpyinfo is NULL, don't try to
255 access the data it doesn't point to.
256
f83fe4b4
GM
2572000-06-08 Gerd Moellmann <gerd@gnu.org>
258
259 * xterm.c (XTread_socket) <FocusIn>: Queue a FOCUS_IN_EVENT which
db8eeecd 260 will be translated to a switch-frame event when reading the
f83fe4b4
GM
261 event queue. This is necessary because Emacs otherwise won't
262 perform a switch-frame to a new frame until some other event, for
263 example a keystroke event, forces it to do so. This has various
264 effects, one visible being that the cursor of a frame created with
265 C-x 5 2 or switched to with a window manager key binding like
266 A-TAB stays hollow because selected_window isn't on the newly
267 focused frame until the switch-frame is performed.
268
269 * keyboard.c (kbd_buffer_get_event): Handle FOCUS_IN_EVENT by
270 generating a switch-frame event if necessary.
271
272 * termhooks.h (enum event_kind): Add FOCUS_IN_EVENT.
273
274 * xdisp.c (handle_fontified_prop): Don't GCPRO local var `pos';
275 it's an integer.
276
0890801b
KH
2772000-06-08 Kenichi Handa <handa@etl.go.jp>
278
279 * fontset.c (Fset_fontset_font): The arg CHARACTER may be a
280 charset.
281
173cbca8
GM
2822000-06-07 Gerd Moellmann <gerd@gnu.org>
283
3091c2a6
GM
284 * window.c (displayed_window_lines): Take empty lines at
285 the bottom of a window into account.
286
f38952fe
GM
287 * window.c (displayed_window_lines): New function.
288 (Fmove_to_window_line): Use displayed_window_lines to determine
289 the number of lines to move, instead of using the window's height.
290
291 * lread.c (readevalloop): If READCHARFUN sets point to ZV, arrange
292 to stop reading, even if the form read sets point to a different
293 value when evaluated.
294
173cbca8
GM
295 * xdisp.c (display_line): Fix code deciding in which line to
296 put the cursor.
297
6ba6c818
KH
2982000-06-07 Kenichi Handa <handa@etl.go.jp>
299
300 * fileio.c (e_write): Free composition data if stored in
301 coding->cmp_data.
302
5f1aea9a
GM
3032000-06-06 Gerd Moellmann <gerd@gnu.org>
304
666852af
GM
305 * xdisp.c (display_line): Set row's and iterator's
306 starts_in_middle_of_char_p and ends_in_middle_of_char_p flags.
307 Set cursor even if row ends in the middle of a character.
308 (dump_glyph_row): Print values of new flags.
309 (redisplay_window) <cursor movement in unchanged window>: When
310 point has been moved forward, and PT is at the end of the cursor
311 row, don't place the cursor in the next row if the cursor row ends
312 in the middle of a character or at ZV.
313
314 * dispextern.h (struct it): Add starts_in_middle_of_char_p.
315 (struct glyph_row): Add starts_in_middle_of_char_p and
316 ends_in_middle_of_char_p.
317 (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P): Test row's
318 ends_in_middle_of_char_p flag.
319 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Likewise.
320
d13f3e2e
GM
321 * term.c (append_glyph): Revert change of 2000-06-06.
322
323 * xdisp.c (display_line): Revert change of 2000-06-06. Treat
324 padding glyph not fitting on line as whole character not
325 fitting on line.
326
5f1aea9a
GM
327 * xterm.c (x_produce_glyphs): Don't xassert `it->descent > 0';
328 this isn't true for images with `:ascent 100'.
329
10cda9b0
KH
3302000-06-06 Kenichi Handa <handa@etl.go.jp>
331
ed00559d
KH
332 * buffer.c (Fset_buffer_multibyte): Don't make the current buffer
333 as modified if it is originally unmodified.
334
10cda9b0
KH
335 * term.c (encode_terminal_code): Change the way to check if
336 terminal coding does any conversion.
337 (append_glyph): Set glyph->pixel_width correctly.
338
339 * xdisp.c (display_line): While checking line continuation, pay
340 attention to a padding glyph.
341
1969fae2
GM
3422000-06-05 Gerd Moellmann <gerd@gnu.org>
343
344 * xdisp.c (redisplay_window): Always use set_buffer_internal_1.
345
162ccef4
DL
3462000-06-05 Dave Love <fx@gnu.org>
347
f19f32dd
DL
348 * xdisp.c: Include fontset.h.
349
350 * xfns.c (x_real_positions): Declare tmp_nchildren as unsigned.
351
352 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
353
354 * dispnew.c: Conditionally include term.h.
355
356 * coding.h: Declare code_convert_string_norecord.
357
358 * frame.h (struct frame): Use volatile unconditionally.
359
360 * buffer.h: Remove Vbefore_change_function, Vafter_change_function.
361
362 * xmenu.c (menu_item_selection): Declare volatile unconditionally.
363
364 * systime.h: Protect against multiple inclusion.
365 (timezone) [USG5_4]: Define as time_t.
366
367 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
368 (Foptimize_char_table, make_temp_name): Declare.
369
370 * Makefile.in (xdisp.o): Depend on fontset.h.
371
372 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
373
374 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
375 (Foptimize_char_table, make_temp_name): Declare.
376
162ccef4
DL
377 * s/irix4-0.h:
378 * s/irix5-0.h:
379 * s/netbsd.h: Don't define autoconfiscated MATHERR.
380
2082fe81
DL
3812000-06-02 Dave Love <fx@gnu.org>
382
383 * lread.c (_XOPEN_SOURCE, __EXTENSIONS__): Don't define.
384
dcf671d2
GM
3852000-06-02 Gerd Moellmann <gerd@gnu.org>
386
387 * xfaces.c (realize_x_face): When copying BASE_FACE bitwise to the
1969fae2 388 result face, set flags in that face indicating that colors may not
dcf671d2
GM
389 be freed.
390
391 * xterm.c (x_set_mouse_face_gc): If first glyph isn't a character
392 glyph, use the ASCII NUL character to determine the face.
393
d42122a3
DL
3942000-06-02 Dave Love <fx@gnu.org>
395
396 * sysdep.c: Conditionally include stdlib.h, unistd.h.
397 (VFORK_RETURN_TYPE): Remove.
398
399 * config.in: Add NO_MATHERR.
400
dd432f16
DL
4012000-06-01 Dave Love <fx@gnu.org>
402
90aa4ea8
DL
403 * cmds.c (internal_self_insert): Don't check
404 Vbefore_change_function, Vafter_change_function.
405
406 * insdel.c (signal_before_change, signal_after_change): Likewise.
407
408 * buffer.c (Vbefore_change_function, Vafter_change_function):
409 Variables and their initializations deleted.
410
2330c9d4
DL
411 * callint.c (Fcall_interactively): Doc fix.
412
dd432f16
DL
413 * terminfo.c (ospeed) [HAVE_SPEED_T]: Don't declare extern.
414
bf9e8804
DL
4152000-05-31 Dave Love <fx@gnu.org>
416
417 * textprop.c: Revert last change -- duplicated.
418
3694b4ab
GM
4192000-05-31 Gerd Moellmann <gerd@gnu.org>
420
421 * dispnew.c (find_glyph_row_slice, swap_glyphs_in_rows): Put
422 in #if 0.
423
424 * lisp.h (eassert) [!ENABLE_CHECKING]: Define as `(void) 0'.
425
f14156cd
JR
4262000-05-31 Jason Rumney <jasonr@gnu.org>
427
8119aab8
JR
428 * search.c (Fre_search_forward, Fre_search_backward)
429 (Fposix_search_backward, Fposix_search_forward): Fix newlines in docs.
430
f14156cd
JR
431 * w32select.c (Fw32_set_clipboard_data): Change QNil to Qnil.
432
4aab9be3
JR
4332000-05-30 Jason Rumney <jasonr@gnu.org>
434
435 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: New macros.
436 [WINDOWSNT]: Add extern for Vw32_system_coding_system.
437
438 * dispextern.h (struct glyph) [WINDOWSNT]: Add w32_font_type
439 member.
440
441 * fileio.c (Fread_file_name) [HAVE_NTGUI]: Use file dialog.
442 (Fread_file_name) [HAVE_NTGUI, USE_MOTIF]: Do not attempt to
443 expand a nil default_filename.
444
445 * keyboard.c (make_lispy_event) [WINDOWS_NT]: Pass a window
446 pointer to glyph_to_pixel_coords, not a frame.
447
448 * makefile.nt (w32fns.obj, w32menu.obj): Add charset.h and
449 coding.h to dependencies.
450
451 * w32bdf.c (w32_load_bdf_font): Initialize font->double_byte_p.
452
453 * w32console.c (glyph_to_pixel_coords): Change first parameter to
454 window pointer to be consistent with w32term.c and xterm.c.
455
456 * w32fns.c: Format and doc changes to bring closer to xfns.c.
457 (VIETNAMESE_CHARSET): Define if not defined in system headers.
458 (Qline_spacing, Qcenter): New variables.
459 (Qw32_charset_*, w32_codepage_for_font): Moved from w32term.c.
460 (x_set_line_spacing): New function.
461 (x_set_frame_parameters): Use FRAME_NEW_WIDTH, FRAME_NEW_HEIGHT
462 macros.
463 (x_specified_cursor_type): New function.
464 (x_set_cursor_type): Use it.
465 (x_set_name, x_set_title): Use ENCODE_SYSTEM to encode titlebar
466 and icon strings.
467 (validate_x_resource_name, x_get_resource_string): Measure lengths
468 of external strings in bytes.
469 (w32_wnd_proc) [WM_MEASURE_ITEM]: Avoid calling
470 GetTextExtentPoint32 with NULL title.
471 (Fx_create_frame): Initialize Qline_spacing.
472 (w32_load_system_font): Initialize font->double_byte_p.
473 (x_to_w32_charset): Use Vw32_charset_info_alist.
474 (Image, busy cursor, tooltip functions): Merged changes from
475 xfns.c. Not yet functional on Windows.
476
477 * w32gui.h (W32FontStruct): Add double_byte_p member.
478
479 * w32inevt.c (NUM_TRANSLATED_MOUSE_BUTTONS): New constant.
480 (emacs_button_translation): Use it.
481 (do_mouse_event): Allow up to 32 mouse buttons by allowing any bit
482 in `mask' to be set.
483
484 * w32menu.c (single_submenu, w32_menu_show): Call ENCODE_SYSTEM on
485 menu strings.
486
487 * w32term.c: Format and doc changes to bring closer to xterm.c.
488 (w32_char_font_type): New enum.
489 (Qw32_charset_*, w32_codepage_for_font): Moved to w32fns.c.
490 (w32_per_char_metric): Use w32_char_font_type instead of unicode_p.
491 (w32_encode_char): New function.
492 (x_encode_char): Removed.
493 (x_get_glyph_and_face_encoding): Use w32_encode_char in place of
494 x_encode_char and w32_font_is_double_byte.
495 (x_produce_image_glyph): Use image_ascent.
496 (x_produce_glyphs): Use new version of w32_per_char_metric and
497 handle NULL return value. Allow extra line spacing.
498 (W32_TEXTOUT): Distinguish between Unicode and DBCS text.
499 (w32_get_glyph_overhangs): Remove unicode_p param. Use
500 w32_font_type member of glyph instead.
501 (x_draw_glyph_string): Draw underline and strike-out for BDF fonts.
502 (fast_find_position): Make sure not to consider rows not visible
503 in the window.
504 (w32_read_socket) [WM_MENUSELECT]: Cannot call
505 w32_menu_display_help with input blocked, as it can abort.
506 (x_display_and_set_cursor): Choose cursor depending
507 on buffer-local value of cursor_type.
508 (x_draw_bar_cursor): Add parameter WIDTH.
509
510 * w32term.h (CP_DEFAULT): Define.
511 (Fx_display_color_p, Fx_display_grayscale_p, image_ascent): Declare.
512
10fc3187
GM
5132000-05-30 Gerd Moellmann <gerd@gnu.org>
514
515 * search.c (Fre_search_forward, Fre_search_backward)
516 (Fposix_search_backward, Fposix_search_forward): Doc fix.
517
d0555360
KH
5182000-05-30 Kenichi Handa <handa@etl.go.jp>
519
520 * coding.c (detect_coding_iso2022): Fix code for checking
521 CODING_CATEGORY_MASK_ISO_8_2.
522
f1ad044f
SM
5232000-05-29 Stefan Monnier <monnier@cs.yale.edu>
524
525 * regex.c (PREFETCH_NOLIMIT): New function.
526 (re_match_2_internal): Use it and adjust the end_match_2 logic.
527
84ec3b4b
GM
5282000-05-29 Gerd Moellmann <gerd@gnu.org>
529
66254a13
GM
530 * syntax.c (find_defun_start): Move test for
531 open_paren_in_column_0_is_defun_start outside of the loop.
532
49e70dec
GM
533 * xdisp.c (redisplay_window): Really switch buffers when
534 displaying mode lines, and temporarily set selected_frame to the
535 frame of the window that's redisplayed.
536
84ec3b4b
GM
537 * xfaces.c (free_realized_faces): Block/unblock input.
538 (free_realized_multibyte_face): Ditto.
539
869a3a14
DL
5402000-05-29 Dave Love <fx@gnu.org>
541
542 * textprop.c (Qkeymap): New variable.
543 (syms_of_textprop): Intern it.
544
545 * keymap.c: Include intervals.h.
546 (Fkey_binding, Fwhere_is_internal): Deal with `keymap' property.
547
548 * Makefile.in (keymap.o): Depend on intervals.h.
549
550 * keyboard.c (menu_bar_items, tool_bar_items)
551 (Fexecute_extended_command): Deal with `keymap' property.
552 (read_key_sequence): Track map from `keymap' property as well as
553 `local_map'.
554
555 * intervals.c (get_local_map): Extra arg to allow looking for
556 `keymap' too.
557
558 * intervals.h (map_property): New enum.
559 (get_local_map): Extra arg using it.
560 (Qkeymap): Declare.
561
84ec3b4b 562 * lisp.h (get_local_map): Don't declare here.
869a3a14 563
89d0c844
KH
5642000-05-29 Kenichi Handa <handa@etl.go.jp>
565
566 * Makefile.in (callproc.o): Depend on composite.h.
567
568 * callproc.c: Include composite.h.
569 (Fcall_process): Handle composition correctly.
570
571 * coding.h (coding_allocate_composition_data): Extern it.
572 (coding_restore_composition): Likewise.
573
574 * coding.c (DECODE_COMPOSITION_START): If coding->cmp_data is not
575 yet allocated, finish decoding with result
576 CODING_FINISH_INSUFFICIENT_CMP.
577 (coding_allocate_composition_data): Make it non-static.
578 (coding_restore_composition): Likewise.
579
797a084a
EZ
5802000-05-29 Eli Zaretskii <eliz@is.elta.co.il>
581
582 * charset.c (syms_of_charset): Revert last change.
583
cf872af5
EZ
5842000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
585
586 * term.c (produce_glyphs): Treat characters from the eight-bit-*
587 charsets as unibyte, with 1-column screen width. Sent by Kenichi
588 Handa.
589
5b1ae051
EZ
5902000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
591
592 * charset.c (syms_of_charset): Set width of character sets
593 eight-bit-control and eight-bit-graphic to 1 column.
594
34ec9ebe
GM
5952000-05-26 Gerd Moellmann <gerd@gnu.org>
596
597 * config.in (HAVE_SPEED_T): New define.
598
599 * sysdep.c, terminfo.c (ospeed) [HAVE_SPEED_T]: Declare as
600 `extern speed_t'.
601
dd854dc2
DL
6022000-05-26 Dave Love <fx@gnu.org>
603
604 * coding.c (shrink_decoding_region): Initialize eol_conversion.
605
606 * data.c (Qsubrp, Qmany, Qunevalled): New variables.
607 (Fsubr_arity): New function.
608 (syms_of_data): Install them.
609
ba9f8f95
KH
6102000-05-26 Kenichi Handa <handa@etl.go.jp>
611
0f3e0672
KH
612 * charset.c (init_charset_once): Set the table bytes_by_char_head
613 correctly.
614
cebefb44
KH
615 * fontset.c (syms_of_fontset): Adjust the font name for ascii of
616 the default fontset to what Emacs uses by default.
0f3e0672
KH
617 (check_registry_encoding): This function deleted.
618 (Fset_fontset_font): Remove the adhoc condition for the default
619 fontset. Allow cons in FONTNAME.
cebefb44 620
0f3e0672
KH
621 * fns.c (map_char_table): Ignore char-table entries for
622 charsets eight-bit-control and eight-bit-graphic.
ba9f8f95 623
7a18af49
KR
6242000-05-25 Ken Raeburn <raeburn@gnu.org>
625
626 * emacs.c (main): Initialize keyboard syms before initializing
627 window code, so face names are available.
628
d2af47df
SM
6292000-05-25 Stefan Monnier <monnier@cs.yale.edu>
630
631 * regex.c (at_begline_loc_p): Also recognize the \\(?:^ case
632 of an anchor at the beginning of a shy-group.
633
fc6a6a4e
GM
6342000-05-25 Gerd Moellmann <gerd@gnu.org>
635
636 * xdisp.c (handle_invisible_prop): Don't try to skip over
637 invisible text if end of text is already reached.
638
005f0d35
DL
6392000-05-25 Dave Love <fx@gnu.org>
640
02513cdd
DL
641 * xdisp.c (Fdump_glyph_matrix): Declare the arg.
642
005f0d35
DL
643 * coding.c (encode_eol): Add null statement after label.
644
89f6ca4e
EZ
6452000-05-25 Eli Zaretskii <eliz@is.elta.co.il>
646
647 * w16select.c (Fw16_set_clipboard_data): Fix the change from
648 2000-05-20.
649
a4e1759e
KH
6502000-05-25 Kenichi Handa <handa@etl.go.jp>
651
652 * ccl.c (ccl_driver): Fix previous change.
653
eacfd7fe
KH
6542000-05-25 Kenichi Handa <handa@etl.go.jp>
655
46ab33a9
KH
656 * coding.c (run_pre_post_conversion_on_str): Set point to the
657 beginning of buffer before calling coding->post_read_conversion.
658 (decode_coding_string): Give correct args to
659 run_pre_post_conversion_on_str.
660 (encode_coding_string): Likewise.
661
eacfd7fe
KH
662 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>
663 <CCL_WriteMultibyteChar2>: Handle charsets eight-bit-control and
664 eight-bit-graphic correctly.
665
f8569325
DL
6662000-05-24 Kenichi HANDA <handa@etl.go.jp>
667
668 * fileio.c (Finsert_file_contents): Even if a file is not found,
669 execute codes for setting up coding system. Call
670 after-insert-file-functions unconditionally.
671
04545643
GM
6722000-05-24 Gerd Moellmann <gerd@gnu.org>
673
674 * callproc.c, emacs.c, sysdep.c (setpgrp): Don't define if USG and
675 BSD_PGRPS are not defined.
676
747d90ea
KH
6772000-05-24 Kenichi Handa <handa@etl.go.jp>
678
679 * charset.c (update_charset_table): Accept nil in LONG_NAME and
680 DESCRIPTION.
681 (syms_of_charset): Avoid building same strings.
682
716e3b88
GM
6832000-05-23 Gerd Moellmann <gerd@gnu.org>
684
685 * lread.c (Fload): Add a comment about the meaning of
686 Vuser_init_file being t.
687
688 * puresize.h (BASE_PURESIZE): Increase to 675000.
689
690 * s/gnu-linux.h (setpgrp): Don't define it here because this
691 prevents compilation on GNU/Linux systems with glib 2.2.
692
693 * callproc.c, emacs.c, sysdep.c (setpgrp) [HAVE_SETPGID]: Define
694 as setpgid.
695
9aeb39fa
EZ
6962000-05-23 Eli Zaretskii <eliz@is.elta.co.il>
697
698 * Makefile.in (SOME_MACHINE_LISP): Add disp-table.elc,
699 dos-vars.elc, ccl.elc, and codepage.elc, all loaded by the MS-DOS
700 version.
701 (MSDOS_SUPPORT): Add dos-vars.elc, ccl.elc, and codepage.elc.
702
29ced61b
KH
7032000-05-23 Kenichi Handa <handa@etl.go.jp>
704
0574a2ed
KH
705 * syntax.c (skip_chars): Use FETCH_STRING_CHAR_ADVANCE
706 unconditionally.
707
3d80f24d
KH
708 * msdos.c (IT_write_glyphs): Set coding->src_multibyte to 1.
709
710 * term.c (encode_terminal_code): Set coding->src_multibyte
711 properly.
712
29ced61b
KH
713 * coding.c (encode_eol): Fix a bug of DOS style EOL encoding.
714
d7e00792
KH
7152000-05-22 Kenichi Handa <handa@etl.go.jp>
716
c9d80d38
KH
717 * keyboard.c (read_char): Allow character codes 128..255 to be
718 handled by input-method-function.
719
d7e00792
KH
720 * insdel.c (adjust_markers_for_replace): Fix previous change.
721 (adjust_after_replace): If PREV_TEXT is nil, call
722 adjust_markers_for_insert, not adjust_markers_for_replace.
723
087121cc
GM
7242000-05-20 NIIBE Yutaka <gniibe@mri.co.jp>
725
726 * s/gnu-linux.h (UNIX98_PTYS) [HAVE_GRANDPT]: Define.
727 (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_OPEN, PTY_TTY_NAME_SPRINTF)
728 [HAVE_GRANDPT]: Define.
729 (C_SWITCH_SYSTEM): Add -D_XOPEN_SOURCE.
730
731 * sysdep.c (setup_pty): Treat case that UNIX98_PTYS is defined
732 like SYSV_PTYS.
733
734 * config.in (HAVE_GRANDPT, HAVE_GETPT): New defines.
735
736 * process.c (toplevel) [UNIX98_PTYS]: Include stdlib.h.
737
c9671f81
KH
7382000-05-20 Kenichi Handa <handa@etl.go.jp>
739
740 The following changes are to handle 8-bit characters in a
741 multibyte buffer/string without facing with byte combining
742 problem. Two new charsets eight-bit-control (for 0x80..0x9F) and
743 eight-bit-graphic (for 0xA0..0xFF) are introduced.
744
745 * Makefile.in (fns.o): Depend on charset.h.
746
747 * alloc.c (Fmake_byte_code): If BYTECODE-STRING is multibyte,
748 convert it to unibyte.
749 (make_string): Use parse_str_as_multibyte, not chars_in_text.
750
751 * buffer.c (advance_to_char_boundary): Don't use DEC_POS to find a
752 apparent char boundary.
753 (Fset_buffer_multibyte): Convert 8-bit characters in the range
754 0x80..0x9F to/from multibyte form.
755
756 * bytecode.c (Fbyte_code): If arg BYTESTR is multibyte, convert it
757 to unibyte.
758
759 * callproc.c (Fcall_process): Always encode an argument string if
760 it is multibyte. Setup src_multibyte and dst_multibyte members of
761 process_coding properly.
ce75fd23 762
c9671f81
KH
763 * category.c (Fmodify_category_entry): Use SPLIT_CHAR, not
764 SPLIT_NON_ASCII_CHAR.
765
766 * ccl.c (CCL_WRITE_CHAR): Be sure to write single byte characters
767 as is.
768 (CCL_MAKE_CHAR): Use MAKE_CHAR, not MAKE_NON_ASCII_CHAR.
769
770 * charset.c (Qeight_bit_control, Qeight_bit_graphic): New
771 variables.
772 (SPLIT_CHARACTER_SEQ): This macro deleted.
773 (SPLIT_MULTIBYTE_SEQ): Assume that multibyte sequence at STR is
774 valid.
775 (CHAR_COMPONENTS_VALID_P): Handle new charsets; eight-bit-control
776 and eight-bit-graphic.
777 (char_to_string): Likewise. Signal an error for too large
778 character code.
779 (char_printable_p): Return 0 for 8-bit characters.
780 (update_charset_table): Update iso_charset_table only when a final
781 character is non-negative.
782 (find_charset_in_text): Renamed from find_charset_in_str.
783 Arguments and return value changed. Callers changed.
784 (Fdefine_charset): Args ISO-FINAL-CHAR and ISO-GRAPHIC-PLANE can
785 be -1 if CHARSET is used only internally.
786 (Fmake_char_internal): Handle new charsets; eight-bit-control and
787 eight-bit-graphic.
788 (Fcharset_after): Simplified.
789 (char_valid_p): Use SPLIT_CHAR, not SPLIT_NON_ASCII_CHAR.
790 (char_bytes): Return 2 for chars of the range 0xA0..0xFF.
791 (multibyte_chars_in_text): Simplified by assuming there's no
792 invalid multibyte sequence.
793 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte,
794 str_as_unibyte): New functions.
795 (Fstring): Simpified by assuming that byte combining never
796 happens.
797 (init_charset_once): Initialization for
798 LEADING_CODE_8_BIT_CONTROL.
799 (syms_of_charset): Intern and staticpro Qeight_bit_control and
800 Qeight_bit_graphic. Include them in Vcharset_list. Make charsets
801 eight-bit-control and eight-bit-graphic.
802
803 * charset.h (LEADING_CODE_8_BIT_CONTROL, CHARSET_8_BIT_CONTROL,
804 CHARSET_8_BIT_GRAPHIC): New macros.
805 (SINGLE_BYTE_CHAR_P): Make it faster by using casting.
806 (CHARSET_ISO_GRAPHIC_PLANE): Use XINT instead of XFASTINT.
807 (CHARSET_REVERSE_CHARSET): Likewise.
808 (CHARSET_VALID_P): Handle new charsets; eight-bit-control and
809 eight-bit-graphic.
810 (BYTES_BY_CHAR_HEAD, WIDTH_BY_CHAR_HEAD): Optimize for ASCII.
811 (CHAR_CHARSET, MAKE_CHAR, SPLIT_CHAR, CHAR_BYTES): Likewise.
812 (PARSE_MULTIBYTE_SEQ) [BYTE_COMBINING_DEBUG]: Abort if we
813 encounter an invalid multibyte sequence.
814 (PARSE_MULTIBYTE_SEQ) [not BYTE_COMBINING_DEBUG]: Assume multibyte
815 sequence is always valid.
816 (MAKE_NON_ASCII_CHAR, SPLIT_NON_ASCII_CHAR): These macros Deleted.
817 (UNIBYTE_STR_AS_MULTIBYTE_P, MULTIBYTE_STR_AS_UNIBYTE_P): New
818 macros.
819 (CHAR_STRING): For 8-bit characters, call char_to_string.
820 (INC_POS) [not BYTE_COMBINING_DEBUG]: Faster version. Assume
821 multibyte sequence is always valid.
822 (BUF_INC_POS) [not BYTE_COMBINING_DEBUG]: Likewise.
823 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte,
824 str_as_unibyte): Extern them.
825 (BCOPY_SHORT): Fix a bug.
826 (CHAR_LEN): This macro deleted. Callers changed to use
827 CHAR_BYTES.
828 (FETCH_STRING_CHAR_ADVANCE): Check multibyteness of STRING.
829 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): New macro.
830 (FETCH_CHAR_ADVANCE): Check multibyteness of the current buffer.
831
bd4bde7f 832 * coding.c (ONE_MORE_BYTE, TWO_MORE_BYTES): Set coding->result to
c9671f81
KH
833 CODING_FINISH_INSUFFICIENT_SRC if there's not enough source.
834 (ONE_MORE_CHAR, EMIT_CHAR, EMIT_ONE_BYTE, EMIT_TWO_BYTE,
835 EMIT_BYTES): New macros.
836 (THREE_MORE_BYTES, DECODE_CHARACTER_ASCII,
837 DECODE_CHARACTER_DIMENSION1, DECODE_CHARACTER_DIMENSION2): These
838 macros deleted.
839 (CHECK_CODE_RANGE_A0_FF): This macro deleted.
840 (detect_coding_emacs_mule): Use UNIBYTE_STR_AS_MULTIBYTE_P to
841 check the validity of multibyte sequence.
842 (decode_coding_emacs_mule): New function.
843 (encode_coding_emacs_mule): New macro.
844 (detect_coding_iso2022): Use ONE_MORE_BYTE to fetch a byte from
845 the source.
846 (DECODE_ISO_CHARACTER): Just return a character code.
847 (DECODE_COMPOSITION_START): Set coding->result instead of result.
848 (decode_coding_iso2022, decode_coding_sjis_big5, decode_eol): Use
849 EMIT_CHAR to produced decoded characters. Exit the loop only by
850 macros ONE_MORE_BYTE or EMIT_CHAR. Don't handle the case of last
851 block here.
852 (ENCODE_ISO_CHARACTER): Don't translate character here. Produce
853 only position codes for an invalid character.
854 (encode_designation_at_bol): Return new destination pointer. 5th
855 arg DSTP is changed to DST.
856 (encode_coding_iso2022, decode_coding_sjis_big5): Get a character
857 from the source by ONE_MORE_CHAR. Don't handle the case of last
858 block here.
859 (DECODE_SJIS_BIG5_CHARACTER, ENCODE_SJIS_BIG5_CHARACTER): These
860 macros deleted.
861 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8,
862 detect_coding_utf_16, detect_coding_ccl): Use ONE_MORE_BYTE and
863 TWO_MORE_BYTES to fetch a byte from the source.
864 (encode_eol): Pay attention to coding->src_multibyte.
865 (detect_coding, detect_eol): Preserve members src_multibyte and
866 dst_multibyte.
867 (DECODING_BUFFER_MAG): Return 2 even for coding_type_raw_text.
868 (encoding_buffer_size): Set magnification to 3 for all coding
869 systems that require encoding.
870 (ccl_coding_driver): For decoding, be sure that the result is
871 valid multibyte sequence.
872 (decode_coding): Initialize coding->errors and coding->result.
873 For emacs-mule, call decode_coding_emacs_mule. For no-conversion
874 and raw-text, always call decode_eol. Handle the case of last
875 block here. If not coding->dst_multibyte, convert the resulting
876 sequence to unibyte.
877 (encode_coding): Initialize coding->errors and coding->result.
878 For emacs-mule, call encode_coding_emacs_mule. For no-conversion
879 and raw-text, always call encode_eol. Handle the case of last
880 block here.
881 (shrink_decoding_region, shrink_encoding_region): Detect cases
882 that we can't skip data more rigidly.
883 (code_convert_region): Setup src_multibyte and dst_multibyte
884 members of coding. For decoding, if the buffer is multibyte,
885 convert the source sequence to unibyte in advance. For encoding,
886 if the buffer is multibyte, convert the resulting sequence to
887 multibyte afterward.
888 (run_pre_post_conversion_on_str): New function.
889 (code_convert_string): Deleted and divided into the following two.
890 (decode_coding_string, encode_coding_string): New functions.
891 (code_convert_string1, code_convert_string_norecord): Call one of
892 above.
893 (Fdecode_sjis_char, Fdecode_big5_char): Use MAKE_CHAR instead of
894 MAKE_NON_ASCII_CHAR.
895 (Fset_terminal_coding_system_internal,
896 Fset_safe_terminal_coding_system_internal): Setup src_multibyte
897 and dst_multibyte members.
898 (init_coding_once): Initialize iso_code_class with new enum
899 ISO_control_0 and ISO_control_1.
900
901 * coding.h (enum iso_code_class_type): Member ISO_control_code is
902 devided into ISO_control_0 and ISO_control_1.
903 (struct coding_system): New members src_multibyte, dst_multibyte,
904 errors, and result. Delete member fake_multibyte.
905 (CODING_REQUIRE_DECODING): Return 1 if coding->dst_multibyte is
906 nonzero.
907 (CODING_REQUIRE_ENCODING): Return 1 if coding->src_multibyte is
908 nonzero.
909
910 * data.c (Faref): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
911 (Faset): Likewise.
912
913 * editfns.c (Fformat): Be sure to convert 8-bit characters to
914 multibyte form.
915 (Ftranspose_region) [BYTE_COMBINING_DEBUG]: Abort if byte
916 combining occurs.
917 (Ftranspose_region): Delete codes for handling byte combining.
918
919 * fileio.c (Finsert_file_contents): Setup src_multibyte and
920 dst_multibyte members of coding. On handling REPLACE on unibyte
921 buffer, convert the result of decode_coding to unibyte. On
922 inserting into a mutibyte buffer, always call code_convert_region.
bd4bde7f 923 (e_write): Setup coding->src_multibyte according to the
c9671f81
KH
924 multibyteness of the source (buffer or string).
925
926 * fns.c (concat): Handle 8-bit characters correctly.
927 (Fstring_as_unibyte): Be sure to make all 8-bit characters in
928 unibyte in the result.
929 (Fstring_as_multibyte): Be sure to make all 8-bit characters in
930 valid multibyte form in the result.
931 (map_char_table): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
932 (Fbase64_encode_region, Fbase64_encode_string): If base64_encode_1
933 return -1, signal an error.
934 (base64_encode_1): New arg MULTIBYTE. Get each character by
935 CHAR_STRING_AND_LENGTH if MULTIBYTE is nonzero. If a multibyte
936 character is found, return -1.
937 (Fbase64_decode_region): Delete codes for handling byte-combining.
938 Treat each decoded byte as a unibyte character.
939 (Fbase64_decode_string): Return unibyte string.
940 (Fcompare_strings, concat, string_byte_to_char): Use
941 FETCH_STRING_CHAR_ADVANCE_NO_CHECK instead off
942 FETCH_STRING_CHAR_ADVANCE.
943 (Fstring_lessp): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
944 (mapcar1): If SEQ is string, always use FETCH_STRING_CHAR_ADVANCE.
945
946 * fontset.c (fontset_ref): Use SPLIT_CHAR instead of
947 SPLIT_NON_ASCII_CHAR.
948 (fontset_ref_via_base, fontset_set): Likewise
949
950 * insdel.c (adjust_markers_for_record_delete): Deleted.
951 (adjust_markers_for_insert): Argument changed. Caller changed.
952 (adjust_markers_for_replace): Likewise.
953 (ADJUST_CHAR_POS, combine_bytes, byte_combining_error,
954 CHECK_BYTE_COMBINING_FOR_INSERT): Deleted.
955 (copy_text): Delete unused local varialbe c_save. For converting
956 to multibyte, be sure to make all 8-bit characters in valid
957 multibyte form.
958 (count_size_as_multibyte): Handle 8-bit characters correctly.
959 (insert_1_both, insert_from_string_1, insert_from_buffer_1,
960 adjust_after_replace, replace_range, del_range_2)
961 [BYTE_COMBINING_DEBUG]: Abort if byte combining occurs.
962 (insert_1_both, insert_from_string_1, insert_from_buffer_1,
963 adjust_after_replace, replace_range, del_range_2) Delete codes for
964 handling byte combining.
965 (adjust_before_replace): Deleted.
966
967 * keymap.c (Fsingle_key_description): Use SPLIT_CHAR instead of
968 SPLIT_NON_ASCII_CHAR.
969 (describe_vector): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
970 (Faccessible_keymaps): Use FETCH_STRING_CHAR_ADVANCE
971 unconditionally.
972 (Fkey_description): Likewise.
973
974 * lread.c (read1): On reading multibyte string, be sure to make
975 all 8-bit chararacters in valid multibyte form.
976 (readchar): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
977
978 * print.c (print_object): Use FETCH_STRING_CHAR_ADVANCE
979 unconditionally.
980
981 * process.c (Fstart_process): GCPRO current_dir before calling
982 Ffind_operation_coding_system. Encode arguments here.
983 (create_process): Don't encode arguments here. Setup
984 src_multibyte and dst_multibyte members of struct coding.
985 (read_process_output): Setup src_multibyte and dst_multibyte
986 members of struct coding. If the output is to multibyte buffer,
987 always decode the output of the process. Adjust the
988 representation of 8-bit characters to the multibyteness of the
989 output.
990 (send_process): Setup coding->src_multibyte according to the
991 multibyteness of the source.
992
993 * search.c (wordify): Use FETCH_STRING_CHAR_ADVANCE
994 unconditionally.
995 (Freplace_match): Use FETCH_STRING_CHAR_ADVANCE and
996 FETCH_STRING_CHAR_ADVANCE_NO_CHECK appropriately.
997
998 * term.c (produce_special_glyphs): Use CHAR_BYTES instead of
999 CHAR_LEN.
1000
1001 * w16select.c (Fw16_set_clipboard_data): Setup members
1002 src_multibyte and dst_multibyte of coding. Adjusted for the
1003 change for find_charset_in_str.
1004 (Fw16_get_clipboard_data): Likewise.
1005
1006 * w32fns.c (w32_to_x_font): Setup members src_multibyte and
1007 dst_multibyte of coding.
1008 (x_to_w32_font): Likewise.
1009
1010 * w32select.c (Fw32_set_clipboard_data): Setup members
1011 src_multibyte and dst_multibyte of coding. Adjusted for the
1012 change for find_charset_in_str.
1013 (Fw32_get_clipboard_data): Likewise.
1014
1015 * xdisp.c (get_next_display_element): Handle 8-bit characters
1016 correctly.
1017 (next_element_from_display_vector): Use CHAR_BYTES instead of
1018 CHAR_LEN.
1019 (disp_char_vector): Use SPLIT_CHAR instead of
1020 SPLIT_NON_ASCII_CHAR.
1021
1022 * xselect.c (selection_data_to_lisp_data): Setup members
1023 src_multibyte and dst_multibyte of coding. Adjusted for the
1024 change for find_charset_in_str.
1025 (lisp_data_to_selection_data): Likewise.
1026
5f64c9e0
GM
10272000-05-19 Gerd Moellmann <gerd@gnu.org>
1028
2b63d473
GM
1029 * buffer.c (Fbury_buffer): Avoid trouble from burying a killed
1030 buffer.
1031
5f64c9e0
GM
1032 * dispextern.h (Vimage_types): Add extern declaration.
1033
1034 * xdisp.c (Vimage_types): Moved here from xfns.c.
1035 (syms_of_xdisp): Move `image-types' variable here from xfns.c.
1036
1037 * xfns.c (Vimages_types): Moved to xdisp.c.
1038 (syms_of_xfns): Move `image-types' to xdisp.c.
1039
1040 * w32fns.c (Vimage_types): Removed.
1041 (syms_of_w32fns): Remove `image-types'.
1042
813086ea
KH
10432000-05-18 Kenichi Handa <handa@etl.go.jp>
1044
1045 * fns.c (map_char_table): Pay attention to character number of
1046 charset. Check the validity of charset at the first level. For
1047 leaf nodes that has nil value, call C_FUNCTION or FUNCTION with
1048 the default value.
1049
1050 * fontset.c: Include "buffer.h".
1051 (fs_load_font): If the face has fontset, record the face ID in
1052 that fontset.
1053 (Finternal_char_font): New function.
1054 (accumulate_font_info): New function.
1055 (Ffontset_info): Rewritten for the new fontset implementation.
1056 (syms_of_fontset): Register Vdefault_fontset in the first element
1057 of Vfontset_table. Include Vdefault_fontset in
1058 Vfontset_alias_alist. Declare `internal-char-font' as a Lisp
1059 function.
1060
bdaebbf0
DL
10612000-05-16 Dave Love <fx@gnu.org>
1062
1063 * m/iris5d.h: Deleted -- unused.
1064
cb613bb8
GM
10652000-05-16 Gerd Moellmann <gerd@gnu.org>
1066
b15f3b77
GM
1067 * xdisp.c, w32.c, print.c, msdos.c, emacs.c: Use the term
1068 `invalid' instead of `illegal'.
1069
1070 * indent.c (Fmove_to_column): When ending within a tab, insert
1071 spaces first so that markers at the end of the tab get adjusted.
1072
835c1b36
GM
1073 * frame.c (frames_bury_buffer): Don't add a buffer to the frame's
1074 buffer list that wasn't selected in that frame.
1075
cb613bb8
GM
1076 * filelock.c (get_boot_time): To obtain an 8 char file name, which
1077 is needed on mescaline, use a 2 char prefix, and call
1078 make_temp_name with second arg non-zero.
1079
1080 * fileio.c (make_temp_name): New function, extracted from
1081 Fmake_temp_name.
1082 (Fmake_temp_name): Use it.
1083
f685bea9
EZ
10842000-05-15 Eli Zaretskii <eliz@is.elta.co.il>
1085
1086 * window.c (coordinates_in_window): Subtract 1 when computing
1087 right_x.
1088
a1b8d58b
GM
10892000-05-15 Gerd Moellmann <gerd@gnu.org>
1090
1091 * Makefile.in (lisp): Add env.elc.
1092
1093 * callproc.c (Fgetenv_internal): Renamed from Fgetenv.
1094
a265079f
GM
10952000-05-12 Gerd Moellmann <gerd@gnu.org>
1096
1097 * search.c (Freplace_match): Handle case of `\N' in the
1098 replacement when there's no group N.
1099
da4496b6
GM
11002000-05-11 Gerd Moellmann <gerd@gnu.org>
1101
0ace421a
GM
1102 * xdisp.c (add_to_log): Don't pass the terminating NUL byte
1103 of the message to message_dolog.
1104
1172eb8d
GM
1105 * keyboard.c (read_char): Don't clear current message for help
1106 events; let the code handling help events handle this. Change
1107 code detecting help events that should be ignored.
1108
da4496b6
GM
1109 * xdisp.c (handle_single_display_prop): Don't try to set PT if
1110 we're interating over a string.
1111
0623e40f
DL
11122000-05-09 Dave Love <fx@gnu.org>
1113
1114 * fileio.c (Fwrite_region): If APPEND arg is an integer, seek to
1115 that offset before writing. Move gcpro region past call of
1116 Ffile_regular_p.
1117
bae2503b
DL
11182000-05-04 Dave Love <fx@gnu.org>
1119
1120 * buffer.c (syms_of_buffer) [auto-fill-function]: Doc fix.
1121
ec82fb2f
GM
11222000-05-04 Gerd Moellmann <gerd@gnu.org>
1123
1124 * insdel.c (insert_from_buffer_1): Adjust FROM position by number
1125 of inserted characters when BUF equals the current buffer, and PT
1126 is in front of or equal to FROM.
1127
cbf18892
GM
11282000-05-03 Gerd Moellmann <gerd@gnu.org>
1129
4ff40dd0
GM
1130 * xdisp.c (handle_single_display_prop): If display property value
1131 is invalid, or something not supported on the frame, restore
1132 iterator's position to what it was initially. Make sure to return
1133 0 for invalid and unsupported property values.
1134
cbf18892
GM
1135 * xterm.c (x_produce_glyphs) <composite chars>: Handle case
1136 that x_per_char_metric returns null.
1137
1b0672c3
GM
11382000-05-02 Gerd Moellmann <gerd@gnu.org>
1139
576da55d
GM
1140 * xterm.h (struct face): Add forward declaration.
1141 (struct image): Ditto.
1142 (image_ascent): Add prototype.
1143
1144 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
1145 (x_draw_image_relief, x_draw_image_foreground_1): Call function
1146 image_ascent instead of using IMAGE_ASCENT.
1147
1148 * dispextern.h (DEFAULT_IMAGE_HEIGHT): New macro.
1149 (IMAGE_ASCENT): Removed.
1150
1151 * xfns.c (Qcenter): New variable.
1152 (enum image_value_type): Add IMAGE_ASCENT_VALUE.
1153 (parse_image_spec): Handle IMAGE_ASCENT_VALUE.
1154 (image_ascent): New function.
1155 (lookup_image): Recognize `:ascent center'.
1156 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
1157 (tiff_format, gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
1158 (xbm_load): Don't set image's ascent here.
1159 (xbm_image_p, xpm_image_p, pbm_image_p, png_image_p)
1160 (jpeg_image_p, tiff_image_p, gif_image_p, gs_image_p): Don't
1161 check ascent values here.
1162 (Fimagep, Flookup_image [GLYPH_DEBUG]: Removed.
1163 (syms_of_xfns) [GLYPH_DEBUG]: Don't defsubr removed functions.
1164 (syms_of_xfns): Initialize Qcenter.
1165
1b0672c3
GM
1166 * eval.c (Fsignal): If lisp_eval_depth or spepdl_size are near
1167 to the limits, increase the limits.
1168
0d7811ed
KH
11692000-05-01 Kenichi Handa <handa@etl.go.jp>
1170
1171 * fontset.c (fs_load_font): By default, use 0x00..0x7f for ASCII.
1172 Check Vfont_encoding_alist against the full name of the opened
1173 font.
1174
a943a5ca
GM
11752000-04-28 Gerd Moellmann <gerd@gnu.org>
1176
1177 * xdisp.c (make_cursor_line_fully_visible): Handle case of rows
1178 taller than the window.
1179
5dba1e29
KH
11802000-04-28 Kenichi Handa <handa@etl.go.jp>
1181
1182 * xfaces.c (realize_x_face): Fix the argument of the second
1183 xassert. BASE_FACE may not be a face for ASCII.
1184
353964e3
GM
11852000-04-27 Gerd Moellmann <gerd@gnu.org>
1186
c76e04a8
GM
1187 * print.c (print_object): Treat print-length < 0 as nil.
1188
1189 * Makefile.in (termcapobj): Don't use TERMCAP_OBJ.
1190
1191 * s/freebsd.h (TERMCAP_OBJ): Removed.
1192 (LIBS_TERMCAP): Don't define for __FreeBSD_version >= 400000.
1193
1194 * lread.c (read1): Don't treat period followed by certain
1195 characters as symbol start.
1196
1197 * xfns.c (slurp_file): New function.
1198 (xbm_image_p): Handle case of in-memory XBM files.
1199 (xbm_scan): Rewritten to work on memory buffers instead of files.
1200 (xbm_read_bitmap_data): Renamed from xbm_read_bitmap_file_data.
1201 Work on memory buffers instead of files. If DATA is null test
1202 if buffer looks like an in-memory XBM file.
1203 (xbm_load_image): Renamed from xbm_load_image_file. Work on
1204 memory buffers instead of files.
1205 (xbm_file_p): New function.
1206 (xbm_load): Accept :data DATA where DATA is an in-memory XBM file.
1207
353964e3
GM
1208 * lread.c (end_of_file_error): New function.
1209 (read1): Call it instead of signaling `end-of-file' directly.
1210
1211 * print.c (print_error_message): Print data of `end-of-file'
1212 with Fprinc instead of Fprin1.
1213
24d744ac
KR
12142000-04-26 Ken Raeburn <raeburn@gnu.org>
1215
1216 * window.c (freeze_window_start): Check that minibuffer scroll
1217 window isn't nil before extracting the window structure pointer
1218 from it.
1219
1220 * undo.c (record_delete): If we hit the end of the undo list, stop
1221 picking elements apart.
1222
7464346d
GM
12232000-04-26 Gerd Moellmann <gerd@gnu.org>
1224
1225 * xdisp.c (display_line): If lines are continued, restore
1226 iterator's ascent/descent information to the values before the
1227 first glyph not fitting on the line.
1228
612839b6
GM
12292000-04-25 Gerd Moellmann <gerd@gnu.org>
1230
1231 * xdisp.c (try_window_id) <all changes above window start>: Adjust
1232 positions in glyph matrix. Don't compute new window end
1233 positions.
1234
1235 * dispnew.c (increment_matrix_positions): Renamed from
1236 increment_glyph_matrix_buffer_positions.
1237 (increment_row_positions): Renamed from
1238 increment_glyph_row_buffer_positions.
1239
1240 * dispextern.h: Change names of renamed functions from dispnew.c
1241 in prototypes.
1242
cc181e95
GM
12432000-04-24 Gerd Moellmann <gerd@gnu.org>
1244
abfcc168
GM
1245 * fileio.c (Fdo_auto_save): Create directories for auto-save
1246 list file if necessary.
1247
cc181e95
GM
1248 * xdisp.c (init_iterator): Set iterator's extra_line_spacing
1249 from buffer or frame.
1250 (automatic_hscrolling_p): New variable.
1251 (hscroll_windows): Scroll windows horizontally only if automatic
1252 hscrolling is allowed.
1253 (syms_of_xdisp): New variable `automatic-hscrolling'.
1254
1255 * frame.h (struct frame): Add member extra_line_spacing.
1256
1257 * xfns.c (x_set_line_spacing): New function.
1258 (Fx_create_frame): Set line spacing from resources.
1259 (Qline_spacing): New variable.
1260 (syms_of_xfns): Initialize Qline_spacing.
1261
1262 * emacs.c (USAGE2): Add `--line-spacing' and `-lsp'.
1263
1264 * buffer.c (init_buffer_once): Handle extra_line_spacing.
1265 (syms_of_buffer): Add `default-line-spacing' and `line-spacing'.
abfcc168 1266 (reset_buffer): Don't initialize extra2 and extra3. Initialize
cc181e95
GM
1267 extra_line_spacing from default value.
1268 (init_buffer_once): Initialize default value of extra_line_spacing.
1269
1270 * buffer.h (struct buffer): Add extra_line_spacing, remove extra2
1271 and extra3.
1272
1273 * xterm.c (x_produce_glyphs): Remove reference to struct it's
1274 prompt_width. Add extra line spacing.
1275
1276 * term.c (produce_glyphs): Remove reference to struct it's
1277 prompt_width.
1278
1279 * dispextern.h (struct it): Remove member prompt_width, add
1280 extra_line_spacing.
1281
58827478
GM
12822000-04-22 Gerd Moellmann <gerd@gnu.org>
1283
1284 * dispnew.c (update_frame_line): When writing a whole line, make
1285 sure cursor is in the right row afterwards, otherwise a use of
1286 capability `ch' in cmgoto might leave the cursor in the row below.
1287
25a87f42
GM
12882000-04-21 Gerd Moellmann <gerd@gnu.org>
1289
1290 * lisp.h (struct Lisp_Buffer_Cons): Remove.
1291
1292 * keyboard.c (timer_check): Fix typo in comment.
1293
54edf5c2
KH
12942000-04-21 Kenichi Handa <handa@etl.go.jp>
1295
1296 * fontset.c (Fset_fontset_font): Fix docstring. Local variable
1297 name change: ch -> character.
1298
3a64eef5
GM
12992000-04-20 Gerd Moellmann <gerd@gnu.org>
1300
1301 * keyboard.c (echo_message_buffer): New variable.
1302 (echo_now): Set echo_message_buffer to the echo area buffer used
1303 to display the echo.
1304 (cancel_echoing): Reset echo_message_buffer to nil.
1305 (read_char): Code rewritten that handles canceling an echo or
1306 echoing a dash, respectively.
1307
1308 * fileio.c (Ffile_writable_p) [WINDOWSNT]: Return nil if parent
1309 directory doesn't exist.
1310
6142fdcb
DL
13112000-04-19 Dave Love <fx@gnu.org>
1312
1313 * fns.c (syms_of_fns): Defsubr mapc.
a9cacab7
DL
1314 (concat): Don't allow numeric args.
1315 (Fconcat): Doc change.
6142fdcb 1316
ac6b5352
SM
13172000-04-19 Stefan Monnier <monnier@cs.yale.edu>
1318
1319 * regex.c (re_match_2_internal): Don't shorten the strings anymore,
1320 instead define end_match(1|2) more carefully.
1321 Use GET_CHAR_BEFORE_2 for `begline'.
1322
cb9215e4
GM
13232000-04-19 Gerd Moellmann <gerd@gnu.org>
1324
5e3dac3f
GM
1325 * frame.h (SELECTED_FRAME): Change definition to compile cleanly
1326 on 64-bit systems where NULL is defined as `0'.
1327
1328 * xdisp.c (with_echo_area_buffer): Add more `int' parameters for
1329 the `variable argument list' to make it work on Alpha.
1330
cb9215e4
GM
1331 * m/alpha.h (_LP64) [!_LP64]: Define.
1332 (ORDINARY_LINK): Define for NetBSD.
1333
1334 * m/macppc.h (ORDINARY_LINK): Define for NetBSD.
1335
f532dca0
DL
13362000-04-19 Dave Love <fx@gnu.org>
1337
c750667e
DL
1338 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Revert 2000-04-14
1339 change.
1340
1341 * Makefile.in (LIBS): Don't use.
1342 (GETLOADAVG_OBJ): Define again.
1343 (otherobj): Add GETLOADAVG_OBJ.
1344
f532dca0
DL
1345 * buffer.c (Fmake_indirect_buffer): Escape newline in doc.
1346
1c7e22fd
GM
13472000-04-18 Gerd Moellmann <gerd@gnu.org>
1348
f6d3257b
GM
1349 * lread.c (read_filtered_event): Cancel and start busy cursor.
1350
1c7e22fd
GM
1351 * xterm.c (x_produce_glyphs) <ASCII chars>: Take into account
1352 that the per-character metrics may be null.
1353
e10f64e7
GM
13542000-04-17 Gerd Moellmann <gerd@gnu.org>
1355
0daee095
GM
1356 * buffer.c (clone_per_buffer_values): New function.
1357 (Fmake_indirect_buffer): Add optional argument CLONE. Call
1358 clone_per_buffer_values if CLONE is not nil.
1359
e10f64e7
GM
1360 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
1361
38687d43
DL
13622000-04-16 Dave Love <fx@gnu.org>
1363
1364 * Makefile.in: Remove obsolete localcpp stuff.
1365 (GETLOADAVG_OBJ): Don't define.
1366 (obj): Move LIBOBJS...
1367 (otherobj): ... to here.
1368 (MSDOS_OBJ): Convert to make variable -- preprocessing zapped
1369 whitespace-only lines after the continuation (Irix).
1370
c21c7262
GM
13712000-04-14 Gerd Moellmann <gerd@gnu.org>
1372
1373 * xfns.c (xpm_load) [DEBUG_X_COLORS]: Register colors.
1374
1375 * s/freebsd.h (LD_SWITCH_SYSTEM): Add `-L /usr/local/lib'.
1376
314767c0
DL
13772000-04-14 Dave Love <fx@gnu.org>
1378
1379 * s/aix3-1.h, s/bsd4-2.h, s/bsd4-3.h, s/cxux.h, s/dgux.h, s/gnu.h:
1380 * s/hpux.h, s/iris3-5.h, s/iris3-6.h, s/irix3-3.h, s/rtu.h:
1381 * s/unipl5-0.h, s/unipl5-2.h, s/usg5-0.h, s/usg5-2-2.h, s/usg5-2.h:
1382 * s/usg5-3.h, s/xenix.h, s/umax.h: Don't define autoconfiscated
1383 NLIST_STRUCT.
1384
1385 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Don't define
1386 autoconfiscated HAVE_GETLOADAVG.
1387
1388 * s/nextstep.h, s/sco4.h, s/sco5.h: Don't define autoconfiscated
1389 BROKEN_MKTIME.
1390
a2522dca
GM
13912000-04-14 Gerd Moellmann <gerd@gnu.org>
1392
1393 * filelock.c (MAKE_LOCK_NAME): Allocate 2 more bytes.
1394 (fill_in_lock_file_name): Avoid existing files that aren't
1395 links.
1396
33744b5d
DL
13972000-04-14 Dave Love <fx@gnu.org>
1398
c21c7262 1399 * Makefile.in (LIBS, LIBOBJS): New variable.
33744b5d
DL
1400 (INTERVAL_SRC): Convert to make variable.
1401 (INTERVAL_OBJ, MKTIME_OBJ, FLOAT_SUPPORT, FACE_SUPPORT)
1402 (HAVE_X_WINDOWS, OBJECTS_SYSTEM): Remove.
1403 (obj): Substitute INTERVAL_OBJ, add MKTIME_OBJ, GETLOADAVG_OBJ and
1404 add LIBOBJS.
1405 (SOME_MACHINE_OBJECTS): Remove interval stuff.
1406 (lisp): Substitute FACE_SUPPORT, FLOAT_SUP.
1407 (shortlisp): Add facemenu, float-sup, frame.
1408 (SOME_MACHINE_LISP): Remove them from here.
1409 (LIBES): Change unused LDLIBS to autoconf LIBS.
1410
1411 * config.in: Add BROKEN_MKTIME, NLIST_STRUCT, NLIST_NAME_UNION.
1412
9d3d5916
KH
14132000-04-14 Kenichi Handa <handa@etl.go.jp>
1414
1415 * composite.c (update_compositions): If FROM and TO are not in a
1416 valid range, do nothing.
1417
198e3c7a
GM
14182000-04-13 Gerd Moellmann <gerd@gnu.org>
1419
1420 * tparam.c (tparam1): Abort when encountering an unknown
1421 `%'-specifier.
1422
1423 * s/freebsd.h (TERMCAP_OBJ) [__FreeBSD__ >= 4]: Define as
1424 terminfo.o.
1425
1426 * Makefile.in (termcapobj) [LIBS_TERMCAP && TERMCAP_OBJ]: Define
1427 as TERMCAP_OBJ.
1428
055a28c9
EZ
14292000-04-13 Eli Zaretskii <eliz@is.elta.co.il>
1430
1431 * fileio.c (a_write): Remove redundant semi-colons.
1432 (e_write): Return -1 if failed to write all the data.
1433 This fixes the changes made at 1999-12-15.
1434
f5c75033
DL
14352000-04-12 Dave Love <fx@gnu.org>
1436
1437 * fns.c (mapcar1): Test for null vals to support mapc.
1438 (Fmapc): New function.
1439
0c3cfc51
EZ
14402000-04-12 Eli Zaretskii <eliz@is.elta.co.il>
1441
1442 * msdos.c (NUM_MOUSE_BUTTONS): Define.
1443 (IT_frame_up_to_date): Support the buffer local value of
1444 cursor-type, if defined.
1445
33465a31
DL
14462000-04-10 Dave Love <fx@gnu.org>
1447
1448 * editfns.c (preceding-char, following-char): Doc fix.
1449
6ed56568
KR
14502000-04-10 Ken Raeburn <raeburn@gnu.org>
1451
1452 * Makefile.in (temacs): Revert 2000-03-12 change.
1453
7cf80d4e
JR
14542000-04-10 Jason Rumney <jasonr@gnu.org>
1455
1456 * xfaces.c (realize_face): Change FRAME_X_P to FRAME_WINDOW_P.
1457
34f3f342
GM
14582000-04-10 Gerd Moellmann <gerd@gnu.org>
1459
1a1b1895
GM
1460 * xdisp.c (setup_echo_area_for_printing): Choose an echo
1461 area buffer, if it's not set up yet.
1462
34f3f342
GM
1463 * indent.c (compute_motion): Set immediate_quit.
1464
be0dbdab
GM
14652000-04-09 Gerd Moellmann <gerd@gnu.org>
1466
c45be9ac
GM
1467 * xfaces.c (tty_suppress_bold_inverse_default_colors_p): New
1468 variable.
1469 (realize_tty_face): Suppress boldness if colors are the inverse of
1470 the default colors, and tty_suppress_bold_inverse_default_colors_p
1471 is set.
1472 (Ftty_suppress_bold_inverse_default_colors): New function.
1473 (syms_of_xfaces): Defsubr it.
1474
be0dbdab
GM
1475 * buffer.c (Frestore_buffer_modified_p): New function.
1476 (syms_of_buffer): Defsubr it.
1477
e8413c3b
KR
14782000-04-08 Ken Raeburn <raeburn@gnu.org>
1479
87f67317
KR
1480 * charset.c (Fmake_char_internal): CHAR_COMPONENTS_VALID_P takes a
1481 charset id (int) argument, not a charset (Lisp_Object).
1482
e8413c3b
KR
1483 * coding.h (code_convert_string): Declare.
1484 * coding.c (code_convert_string_norecord): Pass an int, not a lisp
1485 object, as the fourth argument to code_convert_string.
1486
1487 * fontset.c (make_fontset_for_ascii_face): Use XINT on return
1488 value.
1489 (Fset_fontset_font): Use EQ to compare lisp objects.
1490
7c752c80
KR
14912000-04-05 Ken Raeburn <raeburn@gnu.org>
1492
c0333abc
KR
1493 * intervals.h (SET_INTERVAL_PARENT): Use INT_LISPLIKE to test for
1494 a pointer that looks like a lisp object.
1495 (SET_INTERVAL_OBJECT): Don't explicitly compare the object with
1496 zero, instead see whether it's an integer object, since they can't
1497 have intervals.
1498 (GET_INTERVAL_OBJECT): Simply assign to the destination.
1499
7c752c80
KR
1500 * dispnew.c (allocate_matrices_for_frame_redisplay,
1501 direct_output_forward_char): Use X(U)INT and make_number as needed
1502 to convert between (unsigned) int values and lisp integers.
1503 * keyboard.c (read_key_sequence): Likewise.
1504 * lread.c (substitute_object_recurse): Likewise.
1505 * fns.c (concat, hash_lookup, hash_remove): Likewise.
1506 * minibuf.c (do_completion, Fminibuffer_complete_word,
1507 Fminibuffer_completion_help): Likewise.
1508 * term.c (produce_special_glyphs): Likewise.
1509
1510 * fileio.c (Fwrite_region): Use EQ when comparing lisp objects.
1511 * print.c (print_preprocess, print_object): Likewise.
1512
1513 * search.c (compile_pattern): Use NILP when checking for nil.
1514
74e49b38
KR
1515 * lisp.h (make_number) [!NO_UNION_TYPE && __GNUC__ >= 2 &&
1516 __OPTIMIZE__]: Provide a GNU C macro version that handles
1517 lisp-object unions.
1518 (XSET) [!NO_UNION_TYPE]: Set the value field first, then the type
1519 field, to better cope with ENABLE_CHECKING and calls that modify a
1520 Lisp_Object using its old value.
1521
685e5ed2
GM
15222000-04-04 Gerd Moellmann <gerd@gnu.org>
1523
c407c570
GM
1524 * window.c (compare_window_configurations): Signal an error
1525 if parameters C1 or C2 aren't window configurations.
1526
685e5ed2
GM
1527 * bytecode.c (Fbyte_code): Add a bunch of BEFORE_POTENTIAL_GC/
1528 AFTER_POTENTIAL_GC calls around calls to functions that can
1529 signal an error and thus invoke the debugger.
1530
587a49ab
GM
15312000-04-03 Gerd Moellmann <gerd@gnu.org>
1532
62f20204
GM
1533 * fns.c (Fbase64_decode_region, Fbase64_decode_string): Signal
1534 an error if decoding fails.
1535
587a49ab
GM
1536 * keyboard.c (lispy_mouse_names): Variable removed.
1537 (Vlispy_mouse_stem): New variable.
1538 (syms_of_keyboard): Initialize Vlispy_mouse_stem.
1539 (make_lispy_event) <mouse_click, scroll_bar_click>: Don't abort
1540 for any mouse button number. Increase size of mouse_syms and
1541 button_down_location as needed. Call modify_event_symbol with
1542 different arguments.
1543 (make_lispy_event) <scroll_bar_click> [USE_TOOLKIT_SCROLL_BARS]:
1544 Call modify_event_symbol with different arguments.
1545 (make_lispy_event) <w32_scroll_bar_click> [WINDOWSNT]: Don't abort
1546 for any button number. Call modify_event_symbol with different
1547 arguments.
1548 (modify_event_symbol): Rename NAME_ALIST to NAME_ALIST_OR_STEM.
1549 Accept a string for NAME_ALIST_OR_STEM.
1550
1551 * lisp.h (larger_vector): Add prototype.
1552
1553 * fns.c (larger_vector): Make externally visible.
1554
1555 * termhooks.h (NUM_MOUSE_BUTTONS): Removed.
1556
2d1675e4
SM
15572000-04-02 Stefan Monnier <monnier@cs.yale.edu>
1558
1559 * regex.c (PTR_TO_OFFSET) [!emacs]: Remove.
1560 (RE_MULTIBYTE_P, RE_STRING_CHAR_AND_LENGTH): New macros.
1561 (GET_CHAR_BEFORE_2): Moved from charset.h plus fixed minor bug when
1562 we are between str1 and str2.
1563 (MAX_MULTIBYTE_LENGTH, CHAR_STRING) [!emacs]: Provide trivial default.
1564 (PATFETCH): Use `TRANSLATE'.
1565 (PATFETCH_RAW): Fetch multibyte char if applicable.
1566 (PATUNFETCH): Remove.
1567 (regex_compile): Rely on PATFETCH to do most of the multibyte magic.
1568 When writing a char, write it directly into the pattern buffer rather
1569 than going needlessly through a temp char-array.
1570 (re_match_2_internal): Similarly, rely on RE_STRING_CHAR to do the
1571 multibyte magic and remove the useless `#ifdef emacs'.
1572 (bcmp_translate): Don't compare as multibyte chars when in a unibyte
1573 buffer.
1574
1575 * regex.h (struct re_pattern_buffer): Make field `multibyte'
1576 conditional on `emacs'.
1577
1578 * charset.h (GET_CHAR_BEFORE_2): Moved to regex.c.
1579
cc2d8c6b
KR
15802000-04-01 Ken Raeburn <raeburn@gnu.org>
1581
1582 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P): Expand
1583 non-union-type versions of XMARK and friends here, because XMARK
1584 and friends won't work on an integer field if NO_UNION_TYPE is not
1585 defined.
1586 (make_number): Define as a function if it's not defined as a
1587 macro.
1588
09654086
KR
1589 * composite.c (run_composite_function): Use NILP when checking for
1590 nil.
1591 (syms_of_composite): Delete local var NARGS, pass an int as first
1592 argument to Fmake_hash_table.
1593
2387b382
KR
1594 * editfns.c (text_property_stickiness): Use NILP to test
1595 Lisp_Object boolean value.
1596 (Fmessage_or_box): Don't use NILP to test int variable.
c01fbf95
KR
1597 (Fformat): Use a temporary variable to avoid ENABLE_CHECKING
1598 problems reading from and changing the same lisp value in an
1599 XSETSTRING call.
1600
27660e89
GM
16012000-04-01 Gerd Moellmann <gerd@gnu.org>
1602
1603 * term.c (TN_no_color_video): New variable.
1604 (term_init): Intitialize TN_no_color_video.
1605 (enum no_color_bit): New enumeration.
1606 (MAY_USE_WITH_COLORS_P): New macro.
1607 (turn_on_face): Use it to determine if attributes may be used
1608 combined with colors.
1609
3578db3c
KR
16102000-04-01 Ken Raeburn <raeburn@gnu.org>
1611
1612 * window.c (CURBEG, CURSIZE): Don't overload lisp object lvalues
1613 with int lvalues via casts; instead, just yield lisp object
1614 lvalues.
1615 (enlarge_window): Variable sizep now points to Lisp_Object. Use
1616 proper accessor macros.
1617 (shrink_window_lowest_first): w->top is Lisp_Object; use XINT.
1618 (grow_mini_window): Fix typo getting int value of root->height.
1619
6fc556fd
KR
1620 * xdisp.c (compute_string_pos): Fix order of arguments to
1621 string_pos_nchars_ahead.
1622 (handle_fontified_prop, add_to_log): Pass int, not Lisp_Object, as
1623 count arg to variable-arg routines like Frun_hook_with_args and
1624 Fformat.
587a49ab
GM
1625 (back_to_previous_visible_line_start)
1626 (build_desired_tool_bar_string): Pass Lisp_Object, not int, to
6fc556fd
KR
1627 fixed-arg routines like Fget_char_property and Fmake_string.
1628 (reconsider_clip_changes): Use XINT when comparing integer lisp
1629 objects, or passing them as int arguments.
587a49ab
GM
1630 (mark_window_display_accurate, insert_left_trunc_glyphs)
1631 (append_space, extend_face_to_end_of_line): Use make_number when
6fc556fd
KR
1632 storing or passing integer values as lisp objects.
1633 (set_cursor_from_row, highlight_trailing_whitespace): Use
1634 INTEGERP, not implicit test against zero, for glyph object.
1635 (try_window_id): Don't use make_number when we want an int value.
1636
1637 * xfaces.c (xlfd_symbolic_value): Make last argument a
1638 Lisp_Object, to be consistent with callers.
1639 (Fbitmap_spec_p): Use XINT to get numeric value of height.
1640 (lface_hash): Apply XFASTINT to lisp values before folding in.
1641
1642 * xfns.c (Fx_show_tip): Use make_number to get lisp objects to
1643 fill in window width and height. Pass an int, not a lisp object,
1644 as first arg to Finsert.
1645
6e7b2457
GM
16462000-04-01 Gerd Moellmann <gerd@gnu.org>
1647
610d841e
GM
1648 * xfaces.c (realize_basic_faces): Block input while realizing
1649 the faces.
1650
6e7b2457
GM
1651 * keyboard.c (lispy_mouse_names): Add additional mouse names.
1652
1653 * termhooks.h (NUM_MOUSE_BUTTONS): Increase to 15.
1654
aa110c0c
GM
16552000-03-31 Gerd Moellmann <gerd@gnu.org>
1656
1657 * xterm.c (x_produce_glyphs): When displaying unibyte text
610d841e 1658 or ASCII, handle case that per-char metric is null.
aa110c0c 1659
8801a864
KR
16602000-03-30 Ken Raeburn <raeburn@gnu.org>
1661
c6129d7e
KR
1662 * lisp.h (NO_UNION_TYPE) [ENABLE_CHECKING]: Undef.
1663
8801a864
KR
1664 * lisp.h (XCONS, XSTRING, XSYMBOL, XFLOAT, XPROCESS, XWINDOW,
1665 XSUBR, XBUFFER): Verify correct object type before returning
1666 pointer, using eassert.
1667 * frame.h (XFRAME): Likewise.
1668
1669 * buffer.c (Frename_buffer, Fset_buffer_multibyte,
1670 swap_out_buffer_local_variables, Fmove_overlay): Don't apply
1671 XSYMBOL, XBUFFER, etc, to values that may be nil or of the wrong
1672 type.
1673 * data.c (set_internal): Likewise.
1674 * dispextern.h (WINDOW_WANTS_MODELINE_P,
1675 WINDOW_WANTS_HEADER_LINE_P): Likewise.
1676 * fileio.c (auto_save_1): Likewise.
1677 * insdel.c (check_markers): Likewise.
1678 * marker.c (buf_charpos_to_bytepos, unchain_marker): Likewise.
1679 * undo.c (record_insert): Likewise.
1680 * vmsproc.c (child_sig): Likewise.
1681 * window.c (unshow_buffer, window_loop): Likewise.
1682 * xterm.c (x_erase_phys_cursor): Likewise.
1683
8e7af858
GM
16842000-03-30 Gerd Moellmann <gerd@gnu.org>
1685
1686 * xfns.c (free_image_cache): Free the cache structure itself
1687 last, after all its members have been freed.
1688
1689 * lisp.h (xstrdup): Add prototype.
1690
1691 * alloc.c (xstrdup): Moved here from xfaces.c.
1692 (allocating_for_lisp): Variable removed.
1693 (lisp_malloc): Block input around the calls to malloc and
1694 mem_insert.
1695
1696 * xfaces.c (realize_tty_face): Use find_symbol_value instead
1697 of Fsymbol_value.
1698 (xstrdup): Moved to alloc.c.
1699
e0b8c689
KR
17002000-03-29 Ken Raeburn <raeburn@gnu.org>
1701
b96f9fb7
KR
1702 * scroll.c (CHECK_BOUNDS): Renamed from CHECK.
1703
1704 * emacs.c (main): Fix sense of no-loadup test.
1705
e0b8c689
KR
1706 * config.in (ENABLE_CHECKING): Undef.
1707
1708 * lisp.h (struct interval): Replace "parent" field with a union of
1709 interval pointer and Lisp_Object; add new bitfield to use as
1710 discriminant. Change other flag fields to bitfields.
1711 (CHECK): New macro for consistency checking. If ENABLE_CHECKING
1712 is defined and the supplied test fails, print a message and
1713 abort.
1714 (eassert): New macro. Use CHECK to provide an assert-like
1715 facility.
1716
1717 * intervals.h (NULL_INTERVAL_P): Now applies only to real interval
1718 pointers; abort if the value looks like a lisp object.
1719 (NULL_INTERVAL_P, NULL_PARENT, HAS_PARENT, HAS_OBJECT, SET_PARENT,
1720 SET_OBJECT, INTERVAL_PARENT, GET_INTERVAL_OBJECT, COPY_PARENT):
1721 Modify for new interval parent definition.
1722
1723 * alloc.c (mark_interval_tree, MARK_INTERVAL_TREE,
1724 UNMARK_BALANCE_INTERVALS): Update references that need an
1725 addressable lisp object in the interval structure.
1726 (die): New function.
1727 (suppress_checking): New variable.
1728
1729 * intervals.c (interval_start_pos): Just return 0 if there's no
1730 parent object.
1731
f83c5440
GM
17322000-03-29 Gerd Moellmann <gerd@gnu.org>
1733
1734 * lread.c (read1): Accept `.' (period) as symbol start like in CL
1735 and earlier Emacs versions.
1736
1737 * keyboard.c (Ftop_level): Cancel busy-cursor.
1738
1739 * eval.c (call_debugger): Cancel busy-cursor.
1740
fdce64ff
KH
17412000-03-29 Kenichi Handa <handa@etl.go.jp>
1742
1743 * search.c (Freplace_match): Adjust multibyteness of the current
1744 buffer and NEWTEXT. Free allocated memory before signaling an
1745 error.
1746
f6a3f532
SM
17472000-03-28 Stefan Monnier <monnier@cs.yale.edu>
1748
1749 * regex.c (analyse_first): New function obtained by ripping out most
1750 of re_compile_fastmap and generalizing it a little bit so that it
1751 can also just return whether a given (sub)pattern can match the empty
1752 string or not.
1753 (regex_compile): Use `analyse_first' to decide whether the loop-check
1754 needs to be done or not for *, +, *? and +? (the loop check is costly
1755 for non-greedy repetition).
1756 (re_compile_fastmap): Delegate the actual work to `analyse_first'.
1757
e9b309ac
DL
17582000-03-28 Dave Love <fx@gnu.org>
1759
bb15bd9a
DL
1760 * s/gnu-linux.h (GC_SETJMP_WORKS): Define for i386, sparc, m68k,
1761 alpha.
1762
e9b309ac
DL
1763 * alloc.c: Include stdio.h. Test STDC_HEADERS, not __STDC__.
1764
ed0767d8
SM
17652000-03-27 Stefan Monnier <monnier@cs.yale.edu>
1766
1767 * regex.c (REGEX_FREE_STACK, RESET_FAIL_STACK): Make them usable as
1768 an expression.
1769 (enum re_opcode_t): Update description of succeed_n.
1770 (PATFETCH): Always define.
1771 (regex_compile): Use lookahead rather than PATUNFETCH (for repetition
1772 operators, char classes, shy-groups and intervals).
1773 Optimize special cases of intervals so as to only use succeed_n and
1774 jump_n when really needed.
1775 (re_compile_fastmap): Simplify handling of jump_n and succeed_n now
1776 that we don't have to handle the special cases any more.
1777 Simplify on_failure_jump handling as well.
1778
e11e7e46
JR
17792000-03-28 Jason Rumney <jasonr@gnu.org>
1780
1781 * lread.c (Fload): Move safe_p definition to above #ifdef DOS_NT.
1782
88faab89
GM
17832000-03-27 Gerd Moellmann <gerd@gnu.org>
1784
182ff242
GM
1785 * s/freebsd.h (GC_SETJMP_WORKS): Define.
1786
1787 * s/msdos.h (GC_SETJMP_WORKS): Define.
1788
1789 * alloc.c (mark_maybe_object): New function.
1790 (mark_memory): Use it.
1791 (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK): New macros.
1792 (setjmp_tested_p, longjmp_done): New variables.
1793 (test_setjmp): New function.
1794 (mark_stack) [!GC_SETJMP_WORKS]: Call test_setjmp.
1795 (init_alloc): Initialize setjmp_tested_p and longjmp_done.
1796
c1005d06
GM
1797 * xdisp.c (face_before_or_after_it_pos): Pass multibyteness
1798 to DEC_TEXT_POS and INC_TEXT_POS.
1799
1800 * dispnew.c (direct_output_for_insert): Use DEC_TEXT_POS
1801 with parameter MULTIBYTE_P.
1802
1803 * dispextern.h (INC_TEXT_POS, DEC_TEXT_POS): Add parameter
1804 MULTIBYTE_P.
1805
7439e5b9 1806 * editfns.c (Fsubst_char_in_region): Don't use INC_POS in unibyte
182ff242
GM
1807 buffers because it looks for multibyte character byte sequences
1808 which don't exist in unibyte text.
7439e5b9 1809
d9c545da
GM
1810 * xterm.h (x_specified_cursor_type, x_copy_color): Add prototypes.
1811
11fd416e 1812 * xfaces.c (register_color, unregister_color, unregister_colors)
d9c545da
GM
1813 [DEBUG_X_COLORS]: New functions.
1814 (x_free_colors) [DEBUG_X_COLORS]: Unregister colors.
1815
1816 * xfns.c (x_set_cursor_color): Get color reference counts right.
1817
1818 * xterm.c (x_copy_color): New function.
1819 (x_alloc_nearest_color) [DEBUG_X_COLORS]: Call register_color.
1820
1821 * buffer.h (MAX_PER_BUFFER_VARS): Renamed from MAX_BUFFER_LOCAL_VARS.
1822 (PER_BUFFER_VAR_OFFSET): Renamed from BUFFER_LOCAL_VAR_OFFSET.
1823 (PER_BUFFER_VAR_IDX): Renamed from BUFFER_LOCAL_VAR_IDX.
1824 (PER_BUFFER_VALUE_P): Renamed from BUFFER_HAS_LOCAL_VALUE_P.
1825 (SET_PER_BUFFER_VALUE_P): Renamed from SET_BUFFER_HAS_LOCAL_VALUE_P.
1826 (PER_BUFFER_IDX): Renamed from BUFFER_LOCAL_IDX.
1827 (PER_BUFFER_DEFAULT): Renamed from BUFFER_LOCAL_DEFAULT_VALUE.
1828 (PER_BUFFER_VALUE): Renamed from BUFFER_LOCAL_VALUE.
1829 (PER_BUFFER_SYMBOL): Renamed from BUFFER_LOCAL_SYMBOL.
1830 (PER_BUFFER_TYPE): Renamed from BUFFER_LOCAL_TYPE.
1831
11fd416e
GM
1832 * category.c, data.c, syntax.c, print.c, lread.c: Use new macro
1833 names for handling per-buffer variables.
d9c545da
GM
1834
1835 * buffer.c (buffer_permanent_local_flags): Use MAX_PER_BUFFER_VARS
1836 instead of MAX_BUFFER_LOCAL_VARS.
1837 (last_per_buffer_idx): Renamed from max_buffer_local_idx.
1838
1839 * xfaces.c (lookup_face): Don't assert FACE_SUITABLE_FOR_CHAR_P.
1840
88faab89
GM
1841 * xfns.c (x_specified_cursor_type): New function.
1842 (x_set_cursor_type): Use it.
1843
1844 * buffer.h (struct buffer): Add cursor_type.
1845
d80f42b7
SM
18462000-03-26 Stefan Monnier <monnier@cs.yale.edu>
1847
1848 * regex.c (enum re_opcode_t): New opcode on_failure_jump_nastyloop.
88faab89
GM
1849 (print_partial_compiled_pattern, re_compile_fastmap): Handle new
1850 opcode.
d80f42b7
SM
1851 (regex_compile): Use on_failure_jump_nastyloop for non-greedy loops.
1852 (re_match_2_internal): Add code for on_failure_jump_nastyloop when
1853 executing it as well as when popping it off the stack to find infinite
1854 loops in non-greedy repetition operators.
1855
89e80928
GM
18562000-03-26 Gerd Moellmann <gerd@gnu.org>
1857
3d4ff2dd
GM
1858 * doc.c (Qfunction_documentation): New variable.
1859 (syms_of_doc): Initialize Qfunction_documentation.
1860 (Fdocumentation): If FUNCTION is a symbol with non-nil
1861 `function-documentation' property, return a documentation derived
1862 from that.
1863
bd96bd79
GM
1864 * buffer.c (syms_of_buffer): Add default-cursor-type.
1865 (init_buffer_once): Don't let cursor_type have a local value
1866 in every buffer.
1867
19d1bc27
GM
1868 * xterm.c (x_display_and_set_cursor): Choose cursor depending
1869 on buffer-local value of cursor_type.
1870 (x_draw_bar_cursor): Add parameter WIDTH.
1871
1872 * buffer.c (reset_buffer): Initialize buffer's cursor_type.
1873 (init_buffer_once): Set default cursor_type value to t.
1874 Mark cursor_type as local everywhere.
1875 (syms_of_buffer): New per-buffer variable cursor-type.
1876
89e80928
GM
1877 * buffer.h (struct buffer): Remove member local_var_flags,
1878 add local_flags.
1879 (MAX_BUFFER_LOCAL_VARS): New macro.
1880 (BUFFER_LOCAL_VAR_OFFSET, BUFFER_LOCAL_VAR_IDX)
1881 (BUFFER_HAS_LOCAL_VALUE_P, SET_BUFFER_HAS_LOCAL_VALUE_P)
1882 (BUFFER_LOCAL_IDX, BUFFER_LOCAL_DEFAULT_VALUE, BUFFER_LOCAL_VALUE)
1883 (BUFFER_LOCAL_SYMBOL, BUFFER_LOCAL_TYPE): New macros.
1884
1885 * print.c (print_object): Use new macros for per-buffer
1886 variables.
1887
1888 * category.c (Fset_category_table): Use new macros for per-buffer
1889 variables.
1890
1891 * buffer.c (buffer_permanent_local_flags): Make a char array.
1892 (max_buffer_local_idx): New variable.
1893 (reset_buffer_local_variables, Fbuffer_local_variables): Rewritten
1894 for new handling of per-buffer variables.
1895 (buffer_slot_type_mismatch): Use new macros for per-buffer vars.
1896 (init_buffer_once): Initialize per-buffer vars differently.
1897 Set max_buffer_local_idx.
1898
1899 * syntax.c (Fset_syntax_table): Use new macros for per-buffer
1900 variables.
1901
1902 * lread.c (defvar_per_buffer): Use new macros for per-buffer
1903 variables.
1904
1905 * data.c (do_symval_forwarding, store_symval_forwarding)
1906 (find_symbol_value, set_internal, default_value, Fset_default)
1907 (Fkill_local_variable, Flocal_variable_p): Use new macros for
1908 per-buffer variables.
1909
1910 * Makefile.in (bootstrap-emacs): Use `mv -f' instead of `mv'.
1911
9a0dd3dc
GM
19122000-03-24 Gerd Moellmann <gerd@gnu.org>
1913
b68c375f
GM
1914 * xterm.c (x_term_init): Unblock input around call1 of
1915 Qvendor_specific_keysyms.
1916
9a0dd3dc
GM
1917 * syntax.c (open_paren_in_column_0_is_defun_start): New variable.
1918 (find_defun_start): Consider an open parenthesis in column 0
1919 a defun start only if open_paren_in_column_0_is_defun_start is set.
1920 (syms_of_syntax): New variable open-paren-in-column-0-is-defun-start.
1921
7973e637
SM
19222000-03-24 Stefan Monnier <monnier@cs.yale.edu>
1923
1924 * eval.c (Fautoload): Add entry in load-history (if after dump).
1925 * lread.c (load-history): Update docstring.
1926
39210e90
GM
19272000-03-24 Gerd Moellmann <gerd@gnu.org>
1928
1929 * indent.c (Fvertical_motion): Always use the current buffer.
1930 Temporarily change the window's buffer, if necessary.
1931
72db3ab5
GM
19322000-03-23 Gerd Moellmann <gerd@gnu.org>
1933
1934 * xterm.c (fast_find_position): Make sure not to consider rows
1935 not visible in the window.
1936
990b2375
SM
19372000-03-22 Stefan Monnier <monnier@cs.yale.edu>
1938
1939 * regex.c (enum syntaxcode): Provide default for non-Emacs.
1940 (re_compile_fastmap, re_match_2_internal): Undo Dave's previous fix.
1941
ff4df011
JR
19422000-03-22 Jason Rumney <jasonr@gnu.org>
1943
1944 * w32menu.c (single_submenu): Set help string to NULL if none.
1945 (w32_menu_show): Set help string correctly.
1946 (add-menu-item): Set help string in MIIM_DATA for menu item.
1947 Load SetMenuItemInfoA explicitly.
1948 (w32_menu_display_help): New function.
1949
1950 * w32fns.c (w32_wnd_proc): Handle WM_MENUSELECT message.
1951 (QCdata): Moved to xdisp.c.
1952
1953 * w32term.c (w32_read_socket): Handle WM_MENUSELECT message.
1954 (Vw32_charset_to_codepage_alist): Removed.
1955 (Vw32_charset_info_alist): New variable.
1956 (Qw32_charset_[ansi, default, symbol, shiftjis, hangul, gb2312,
1957 chinesebig5, oem, easteurope, turkish, baltic, russian, arabic,
1958 greek, hebrew, thai, johab, mac, unicode]): New symbols.
1959 (x_produce_glyphs): Remove out of date #ifdef 0'd section. Replace
1960 with TODO comment.
1961 (w32_codepage_for_font): Use Vw32_charset_info_alist.
1962 (syms_of_w32term): Remove Vw32_charset_to_codepage_alist.
1963 Define Vw32_charset_info_alist and w32_charset symbols.
1964
19652000-03-22 Jason Rumney <jasonr@gnu.org>
1966
1967 * makefile.nt (w32bdf.obj): Update dependencies.
1968
1969 * w32bdf.c: Include frame.h and dispextern.h before fontset.h.
1970
1971 * w32fns.c: Include fontset.h after dispextern.h.
1972 (Fx_create_frame): Do not create fontset.
1973 (w32_load_system_font): Doc fix.
1974 (Fx_close_connection): Free full_name if it is not shared.
1975
1976 * w32term.c: Include fontset.h after dispextern.h.
1977 (x_get_glyph_face_and_encoding): New parameter two_byte_p. Callers
1978 updated.
1979 (w32_per_char_metric): If PCM is invalid, delete and return NULL.
1980 (x_get_char_and_face_encoding): Use FACE_FOR_CHAR to get face_id.
1981 (w32_font_is_double_byte): New function, needs body.
1982 (x_append_glyph): Set glyph->glyph_not_available_p.
1983 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
1984 it->charset. If it->multibyte_p is zero and it->c is a multibyte
1985 character, convert it to a unibyte character.
1986 (struct glyph_string): Delete member `charset'.
1987 (W32_TEXTOUT): Temporarily remove charset_dim until another way of
1988 calculating it is found.
1989 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
1990 the case that per char metric is not available correctly.
1991 (x_fill_glyph_string): Handle the case that the specific glyph is
1992 not available correctly.
1993 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
1994 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
1995 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
1996 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
1997 fontset. Don't call FS_LOAD_FONT.
1998
439d5cb4
KR
19992000-03-22 Ken Raeburn <raeburn@gnu.org>
2000
2001 * intervals.h (NULL_INTERVAL): Cast to INTERVAL type.
2002 (INT_LISPLIKE): New macro.
2003 (NULL_INTERVAL_P): Use it.
2004 (INTERVAL_HAS_PARENT, INTERVAL_HAS_OBJECT, SET_INTERVAL_PARENT,
2005 SET_INTERVAL_OBJECT, INTERVAL_PARENT, COPY_INTERVAL_PARENT,
2006 GET_INTERVAL_OBJECT, INTERVAL_PARENT_OR_NULL): New macros.
2007
2008 * alloc.c (make_interval, gc_sweep): Use new macros; eliminate all
2009 explicit references to "parent" field of struct interval and
2010 associated unclean type conversions.
2011 * intervals.c (create_root_interval, root_interval, rotate_right,
2012 rotate_left, balance_possible_root_interval, split_interval_right,
2013 split_interval_left, interval_start_pos, find_interval,
2014 next_interval, previous_interval, update_interval,
2015 adjust_intervals_for_insertion, delete_node, delete_interval,
2016 adjust_intervals_for_deletion, merge_interval_right,
2017 merge_interval_left, reproduce_tree, graft_intervals_into_buffer,
2018 copy_intervals_to_string): Likewise.
2019 * intervals.h (AM_LEFT_CHILD, AM_RIGHT_CHILD, RESET_INTERVAL):
2020 Likewise.
2021 * syntax.c (update_syntax_table): Likewise.
2022
2023 * intervals.c (reproduce_tree_obj): New function, like
2024 reproduce_tree but takes a Lisp_Object for the parent. Declare
2025 with prototype.
2026 (graft_intervals_into_buffer): Use it when appropriate.
2027 (reproduce_tree): Declare with prototype.
2028 (balance_possible_root_interval): Check that the parent is a lisp
2029 object before trying to examine its type.
2030
ee1c5b21
GM
20312000-03-22 Gerd Moellmann <gerd@gnu.org>
2032
2033 * xfaces.c (lface_same_font_attributes_p): Compare font attributes
2034 as strings only if both are known to be strings.
2035
2036 * s/openbsd.h (LIBS_TERMCAP): Undef.
2037
1fb352e0
SM
20382000-03-21 Stefan Monnier <monnier@cs.yale.edu>
2039
2040 * regex.c (CHAR_CHARSET, CHARSET_LEADING_CODE_BASE): Add default
2041 definitions for non-Emacs compilation.
2042 (enum re_opcode_t): Remove (not)wordchar and move (not)syntaxspec
2043 outside of `#ifdef emacs'.
2044 (print_partial_compiled_pattern): Update.
2045 (regex_compile): Use (not)syntaxspec(Sword) instead of (not)wordchar.
2046 (re_compile_fastmap): Merge handling of charset and charset_not (for
2047 emacs and non-emacs compilation as well).
2048 Similarly for (not)categoryspec and (not)syntaxspec.
2049 Don't use the fastmap when reaching `anychar' since the added
2050 complexity is not justified.
2051 (re_match_2_internal): Merge (not)wordchar (emacs and non-emacs)
2052 and (not)syntaxspec. Merge (not)categoryspec.
2053
fdaa1f77
KH
20542000-03-22 Kenichi Handa <handa@etl.go.jp>
2055
ff1a0d8e
KH
2056 * dispextern.h [!HAVE_WINDOW_SYSTEM] (FACE_SUITABLE_FOR_CHAR_P,
2057 FACE_FOR_CHAR): Define them differently for the configuration of
2058 --without-x.
fdaa1f77 2059
d152fb46
DL
20602000-03-21 Dave Love <fx@gnu.org>
2061
2062 * fontset.c (Fset_fontset_font, Ffontset_font): Fix newlines in
2063 doc string.
2064
d2cafc8c
GM
20652000-03-21 Gerd Moellmann <gerd@gnu.org>
2066
2067 * xfaces.c (check_lface_attrs) [GLYPH_DEBUG]: Fix syntax error.
2068 (lface_fully_specified_p): Don't check contents of
2069 LFACE_FONT_INDEX because that attribute is optional.
2070 (realize_x_face): Remove now unwarranted xassert.
2071
9111d4b5
KH
20722000-03-21 Kenichi HANDA <handa@etl.go.jp>
2073
2074 The following changes are to make font selection based on
2075 characters, not charset. In addition, they recover fontset
2076 facilities while utilizing the new font selection mechanism.
2077
6c4bfdc0
KH
2078 * Makefile.in (fontset.o): Depend on dispextern.h.
2079
2080 * alloc.c (mark_face_cache): Don't mark face->registry.
2081
9111d4b5
KH
2082 * dispextern.h (struct glyph): New member glyph_not_available_p.
2083 Use 22 bits for face_id.
2084 (enum lface_attribute_index): Add LFACE_FONT_INDEX.
2085 (struct face): Delete member registry, new member ascii_face.
2086 (FACE_SUITABLE_FOR_CHAR_P): Renamed from
2087 FACE_SUITABLE_FOR_CHARSET_P. Caller changed.
2088 (FACE_FOR_CHAR): Renamed from FACE_FOR_CHARSET. Caller changed.
2089 (struct it): Delete member charset, new member
2090 glyph_not_available_p.
2091
2092 * fontset.h (FONT_NOT_OPENED, FONT_NOT_FOUND): Macros removed.
2093 (struct fontset_info, struct fontset_data): Structs removed.
2094 (allloc_fontset_data, free_fontset_data, fs_regiser_fontset,
2095 Vglobale_fontset_alist, font_idx_temp): Externs removed.
2096 (fs_load_font, fs_query_fontset): Adjusted for new argument.
2097 (fs_free_face_fontset, fontset_font_pattern,
2098 face_suitable_for_char_p, face_for_char,
2099 make_fontset_for_ascii_face): Extern them.
2100 (FS_LOAD_FONT): Adjusted for the change of fontset implementation.
2101 (FS_LOAD_FACE_FONT): New macro.
2102
2103 * fontset.c: All codes rewritten or adjusted for the change of
2104 fontset implementation. Now fontset is represented by char table.
2105 (Vglobal_fontset_alist, font_idx_temp, my_strcasetbl): Variables
2106 removed.
2107 (my_strcasecmp): Function removed.
2108 (Vfontset_table, next_fontset_id, Vdefault_fontset): New
2109 variables.
2110 (AREF, ASIZE): New macros.
2111 (FONTSET_FROM_ID, FONTSET_ID, FONTSET_NAME, FONTSET_FRAME,
2112 FONTSET_ASCII, FONTSET_BASE, BASE_FONTSET_P, FONTSET_REF,
2113 FONTSET_REF_VIA_BASE, FONTSET_SET): New macros.
2114 (fontset_ref, fontset_ref_via_base, fontset_set, make_fontset,
2115 fontset_id_valid_p, font_family_registry, fontset_name,
2116 fontset_ascii, free_face_fontset, face_suitable_for_char_p,
2117 face_for_char, make_fontset_for_ascii_face, fontset_font_pattern):
2118 New functions.
2119 (fs_load_font): New arg FACE. Caller changed.
2120 (fs_query_fontset): Argument changed. Caller changed.
2121 (Fquery_fontset): call fs_query_fontset.
2122 (fs_register_fontset, alloc_fontset_data, free_fontset_data):
2123 Functions removed.
2124 (clear_fontset_elements, check_registry_encoding,
2125 check_fontset_name): New functions.
2126 (syms_of_fontset): Set char-table-extra-slots property of fontset
2127 to 3. Staticpro and initialize Vfontset_table and
2128 Vdefault_fontset. Defsubr fontset_font and fontset_list.
2129
2130 * frame.h (struct frame): Member `fontset_data' removed.
2131 (FRAME_FONTSET_DATA): Macro removed.
2132
2133 * frame.c (make_frame): Don't allocate f->fontset_data.
2134 (Fdelete_frame): Don't free f->fontset_data.
2135
6c4bfdc0
KH
2136 * msdos.c (XMenuActivate): Args to lookup_derived_face changed.
2137
9111d4b5
KH
2138 * xdisp.c (charset_at_position): Function removed.
2139 (init_iterator): Don't set member charset of struct `it'.
2140 (handle_face_prop, reseat_to_string, set_iterator_to_next,
2141 next_element_from_display_vector, insert_left_trunc_glyphs):
2142 Likewise.
2143 (face_before_or_after_it_pos): Call FACE_FOR_CHAR, not
2144 FACE_FOR_CHARSET.
2145 (get_next_display_element, append_space,
2146 extend_face_to_end_of_line): Likewise.
2147
2148 * xfaces.c (Qx_charset_registry, Vface_default_registry):
2149 Variables removed.
2150 (clear_font_table, frame_update_line_height, load_face_font):
2151 Adjusted for the change of fontset implementation.
2152 (load_face_fontset_font): Function removed.
2153 (pixel_point_size): New function.
2154 (font_list): Argument type changed. Caller changed.
2155 (LFACE_FONT): New macro.
2156 (check_lface_attrs): Check attr[LFACE_FONT_INDEX].
2157 (set_lface_from_font_name): Type of arg FONTNAME is changed to
2158 Lisp_Object. Determine the font name by actually loading a font
2159 by the specified pattern. Set LFACE_FONT (lface) to the specified
2160 pattern. Even if a font is not found, don't try alternatives.
2161 (Finternal_set_lisp_face_attribute): Handle `font' slot in lface.
2162 (set_font_frame_param): If `font' is specified in lface, use it.
2163 (Finternal_get_lisp_face_attribute): Handle `font' slot in lface.
2164 (lface_same_font_attributes_p): Likewise.
2165 (make_realized_face): Arguent changed. Caller changed. Set
2166 face->ascii_face to face itself.
2167 (free_realized_face): Free face->fontset if face is for ASCII.
2168 (face_suitable_for_iso8859_1_p, face_suitable_for_charset_p,
2169 deduce_unibyte_registry, x_charset_registry): Functions removed.
2170 (free_realized_multibyte_face): New function.
2171 (lookup_face, lookup_named_face, lookup_derived_face): Argument
2172 changed. Caller changed.
2173 (try_font_list): Argument type changed.
2174 (face_fontset): Check `font' slot of ATTRS, not `family' slot.
2175 (choose_face_font): Argument changed. Handle fontset properly.
2176 (choose_face_fontset_font): Function removed.
2177 (realize_default_face, realize_named_face): Don't remove the
2178 former face here.
2179 (realize_face): Argument changed. Caller changed. Remove face
2180 with the arg former_face_id in advance. Load font for the new
2181 face.
2182 (realize_x_face): Argument changed. Caller changed. For a
2183 multibyte character, share fontset with base_face. For a single
2184 byte character, make a new realized fontset. Don't load a font
2185 here.
2186 (realize_tty_face): Argument changed. Caller changed.
2187 (compute_char_face): Call FACE_FOR_CHAR, not FACE_FOR_CHARSET.
2188 (face_at_buffer_position): Don't check multibyte_p for returning
2189 DEFAULT_FACE_ID.
2190 (face_at_string_position): Call FACE_SUITABLE_FOR_CHAR_P, not
2191 FACE_SUITABLE_FOR_CHARSET_P.
2192 (syms_of_xfaces): Remove code for Qx_charset_registry and
2193 Vface_default_registry.
2194
6c4bfdc0
KH
2195 * xterm.c: Include fontset.h after dispextern.h. Undo the changes
2196 related to PER_CHAR_METRIC done by Gerd on 2000-03-03.
9111d4b5
KH
2197 (x_per_char_metric): Don't try FONT->default_char. Even if
2198 pcm->width is zero, glyph bits may exist.
2199 (x_encode_char): Always initialize char2b->byte1.
2200 (x_get_char_face_and_encoding): Call FACE_FOR_CHAR to get face_id.
2201 (x_get_glyph_face_and_encoding): New arg two_byte_p. Caller
2202 changed.
2203 (x_append_glyph): Set glyph->glyph_not_available_p.
2204 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
2205 it->charset. Handle the case that per char metric is not
2206 available. If it->multibyte_p is zero and it->c is a multibyte
2207 character, convert it to a unibyte character.
2208 (struct glyph_string): Delete member `charset'.
2209 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
2210 the case that per char metric is not available correctly.
2211 (x_fill_glyph_string): Handle the case that the specific glyph is
2212 not available correctly.
2213 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
2214 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
2215 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
2216 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
2217 fontset. Don't call FS_LOAD_FONT.
2218
2219 * xfns.c (Fx_create_frame): Don't cal fs_register_fontset.
2220 (x_create_tip_frame): Likewise.
2221 (Fx_close_connection): Free full_name of font_info.
2222
2223 * fns.c (optimize_sub_char_table): New function.
2224 (Foptimize_char_table): New function.
2225 (syms_of_fns): Defsubr Soptimize_char_table.
2226
b33dd3b0
GM
22272000-03-20 Gerd Moellmann <gerd@gnu.org>
2228
2229 * buffer.c (Fset_buffer_modified_p): Set update_mode_lines
2230 only if buffer is displayed in some window.
2231
2232 * xdisp.c (handle_single_display_prop): Initialize local `value'.
2233 (try_window_reusing_current_matrix): Don't call scroll run
2234 function if run's current and desired position are the same;
2235 this prevents cursor flickering.
2236
4e8a9132
SM
22372000-03-19 Stefan Monnier <monnier@cs.yale.edu>
2238
2239 * regex.h (RE_TRANSLATE. RE_TRANSLATE_P): Moved to regex.c.
2240
2241 * regex.c (RE_STRING_CHAR): New macro.
2242 (GET_CHAR_AFER_2): Remove.
2243 (RE_TRANSLATE, RE_TRANSLATE_P): New macros moved from regex.h.
2244 (enum re_opcode_t): Remove on_failure_jump_exclusive.
2245 (print_partial_compiled_pattern, re_compile_fastmap)
2246 (re_match_2_internal): Remove on_failure_jump_exclusive.
2247 (regex_compile): Turn optimizable P+ loops into PP*, so that the
2248 optimization only need to work for * (ie. can use of_keep_string_jump).
2249 Remove the special case for .*\n since it is now covered by the general
2250 optimization.
2251 (re_search_2): Don't bother with `room'.
2252 (skip_one_char): New function.
2253 (skip_noops): Simplify since `memory' is not needed any more.
2254 (mutually_exclusive_p): Restructure slightly to use `switch' and
2255 add handling for "all" remaining cases.
2256 (re_match_2_internal): Change on_failure_jump_smart to use
2257 on_failure_keep_string_jump (and redirect the end-of-loop jump)
2258 rather than on_failure_jump_exclusive.
2259
2136fdd4
GM
22602000-03-19 Gerd Moellmann <gerd@gnu.org>
2261
2262 * xfns.c (select_visual): Don't set dpyinfo->n_planes to the
2263 number of bits per RGB because it's everywhere used as the depth
2264 of the visual.
2265
2266 * term.c (calculate_costs): Remove code dealing with X frames.
2267
e53ae11c
RS
22682000-03-19 Richard M. Stallman <rms@caffeine.ai.mit.edu>
2269
2270 * lread.c (syms_of_lread): Doc fix for load-convert-to-unibyte.
2271
d7b511c4
GM
22722000-03-18 Gerd Moellmann <gerd@gnu.org>
2273
2274 * lread.c (read_integer): Unread the last char not consumed.
2275
16b5d424
GM
22762000-03-17 Gerd Moellmann <gerd@gnu.org>
2277
2278 * xterm.c (x_update_window_cursor): Don't update in frames
d7b511c4 2279 which are in the process of being deleted.
16b5d424 2280
1fa28578
GM
22812000-03-16 Gerd Moellmann <gerd@gnu.org>
2282
83488cce
GM
2283 * Makefile.in (mostlyclean): Add `*.core'.
2284 (clean): Add `bootstrap-emacs'.
2285
1fa28578
GM
2286 * lread.c (read_integer): New function.
2287 (read1): Support read syntax #o, #x, #b, #r.
2288
99633e97
SM
22892000-03-15 Stefan Monnier <monnier@cs.yale.edu>
2290
1fa28578
GM
2291 * regex.c (re_match_2): Fix string shortening (to fit `stop') to
2292 make sure POINTER_TO_OFFSET gives the same value before and after
2293 PREFETCH. Use `dfail' to guarantee "atomic" matching.
99633e97
SM
2294 (PTR_TO_OFFSET): Use POINTER_TO_OFFSET.
2295 (debug): Now only active if > 0 rather than if != 0.
2296 (DEBUG_*): Update for the new meaning of `debug'.
1fa28578
GM
2297 (print_partial_compiled_pattern): Add missing `succeed' case. Use
2298 CHARSET_* macros in the charset(_not) branch. Fix off-by-two bugs
2299 in `succeed_n', `jump_n' and `set_number_at'.
99633e97
SM
2300 (store_op1, store_op2, insert_op1, insert_op2)
2301 (at_begline_loc_p, at_endline_loc_p): Add prototype.
1fa28578
GM
2302 (group_in_compile_stack): Move to after its arg's types are
2303 declared and add a prototype.
99633e97 2304 (PATFETCH): Define in terms of PATFETCH_RAW.
1fa28578
GM
2305 (GET_UNSIGNED_NUMBER): Add the usual `do { ... } while(0)'
2306 wrapper.
99633e97 2307 (QUIT): Redefine as a nop except for NTemacs.
1fa28578
GM
2308 (regex_compile): Handle intervals {,M} as if it was {0,M}. Fix
2309 indentation of the greedy-op and shy-group code.
99633e97
SM
2310 (at_(beg|end)line_loc_p): Fix argument's types.
2311 (re_compile_fastmap): Ifdef out failure_stack_ptr to shut up gcc.
2312 (re_search_2): Use POS_AS_IN_BUFFER. Simplify `room' computation.
2313 (MATCHING_IN_FIRST_STRING): Remove.
1fa28578
GM
2314 (re_match_2): Use POS_AS_IN_BUFFER. Ifdef out failure_stack_ptr
2315 to shut up gcc. Use FIRST_STRING_P and POINTER_TO_OFFSET. Use
2316 QUIT unconditionally.
99633e97 2317
699238d9
GM
23182000-03-15 Gerd Moellmann <gerd@gnu.org>
2319
2320 * minibuf.c (Fminibuffer_complete): Set point to ZV if finding
2321 a sole completion.
2322
2323 * process.c (send_process): Add a hint that the function
2324 can call Lisp code to its comment.
2325
2326 * lread.c (load_dangerous_libraries): New variable.
2327 (Vbytecomp_version_regexp): New variable.
2328 (safe_to_load_p): New function.
2329 (Fload): Handle files not compiled with Emacs specially.
2330 (syms_of_lread): New Lisp variable load-dangerous-libraries.
2331
34e23e5a
GM
23322000-03-14 Gerd Moellmann <gerd@gnu.org>
2333
9c763cca
GM
2334 * lisp.h (free_frame_xic) [HAVE_X_I18N]: Add missing semicolon.
2335
2336 * xterm.c (xim_close_dpy, xim_initialize): Use X11R6-style XIM
2337 support functions only if HAVE_X11R6_XIM is defined.
2338 (xim_instantiate_callback): Define only if HAVE_X11R6_XIM.
2339
2340 * s/sol2.h (INHIBIT_X11R6_XIM): Define.
2341
2342 * xfns.c (X_I18N_INHIBITED): Don't define.
2343 (create_frame_xic): Remove conditional compilation on
2344 X_I18N_INHIBITED.
2345 (x_kill_gs_process, x_window): Use FRAME_X_VISUAL.
2346
2347 * config.in (HAVE_X_I18N): Moved here from xterm.h.
2348 (HAVE_X11R6_XIM): Define.
2349
2350 * xterm.h (HAVE_X_I18N) [HAVE_X11R6]: Moved to config.in.
2351
34e23e5a
GM
2352 * xterm.c (x_term_init): Add support for X resource `synchronous'.
2353 If set, call XSynchronize.
2354
66f0296e
SM
23552000-03-13 Stefan Monnier <monnier@cs.yale.edu>
2356
34e23e5a
GM
2357 * regex.c: Declare a new type `re_char' used throughout the code
2358 for the string char type. It's `const unsigned char' to match the
2359 rest of Emacs. Consistently make sure all pointers to strings use
2360 it and make sure all pointers into the pattern use `unsigned
2361 char'.
66f0296e 2362 (re_match_2_internal): Use `PREFETCH+STRING_CHAR' instead of
34e23e5a
GM
2363 GET_CHAR_AFTER_2. Also merge wordbound and notwordbound to reduce
2364 code duplication.
66f0296e
SM
2365
2366 * charset.h (GET_CHAR_AFTER_2): Remove.
2367 (GET_CHAR_BEFORE_2): Use unsigned chars, like everywhere else.
2368
854a025c
KR
23692000-03-12 Ken Raeburn <raeburn@gnu.org>
2370
2371 * Makefile.in (temacs): Evaluate ALL_LDFLAGS into a temporary
2372 variable before the invocation of YMF_PASS_LDFLAGS, in case both
2373 of them try to use backquotes.
2374
b9d2c7e2
DL
23752000-03-12 Dave Love <fx@gnu.org>
2376
2377 * unexelf.c: Restore changes of 1999-10-19.
2378 (unexec): Don't adjust bss for sbss type SHT_PROGBITS; otherwise
2379 fix its type and alignment; copy it from current process.
2380
5e5dff44
GM
23812000-03-12 Gerd Moellmann <gerd@gnu.org>
2382
9b2f3c38
GM
2383 * atimer.c (cancel_atimer): Break out of the loop as soon as timer
2384 has been found. Fix bug not computing timer's predecessor.
2385
9172b88d
GM
2386 * fileio.c (Fread_file_name): Handle case that DIR contains a
2387 file name.
2388
e1cff360
GM
2389 * window.c (Fsave_window_excursion): Doc fix.
2390
5e5dff44
GM
2391 * xfns.c (x_defined_color): Rewritten to use
2392 x_allocate_nearest_color.
2393
e411ce4b
EZ
23942000-03-12 Eli Zaretskii <eliz@is.elta.co.il>
2395
2396 * msdos.c (vga_installed): New function, code moved from
2397 dos_set_window_size.
2398 (Qbar, Qcursor_type, outside_cursor): New variables.
2399 (syms_of_msdos): Intern and staticpro them.
2400 (dos_ttraw) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Save the cursor
2401 shape used outside Emacs when called for the first time.
2402 (dos_ttcooked) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Restore the
2403 cursor shape used outside Emacs.
2404 (msdos_set_cursor_shape, IT_set_cursor_type): New functions.
2405 (IT_frame_up_to_date): Call IT_set_cursor_type, in case the cursor
2406 type has changed.
2407 (IT_set_frame_parameters): Call IT_set_cursor_type if the frame
2408 parameters specify the cursor. Make qreverse a global
2409 variable (renamed to Qreverse).
2410
80460654
GM
24112000-03-09 Gerd Moellmann <gerd@gnu.org>
2412
2413 * fns.c (Fy_or_n_p): Cancel busy-cursor.
2414
95cd4c40
SM
24152000-03-08 Stefan Monnier <monnier@cs.yale.edu>
2416
2417 This is a big redesign of failure-stack and register handling, prompted
2418 by bugs revealed when trying to add shy-groups. Overall, what happened
2419 is that loops are now structured a little differently, groups can be
2420 shy and the code is a little simpler.
2421
2422 * regex.h: Update the copyright.
2423 (RE_SHY_GROUPS): New value.
2424 (RE_UNMATCHED_RIGHT_PAREN_ORD): Renumber.
2425 (RE_SYNTAX_EMACS): Add RE_SHY_GROUPS.
2426
80460654
GM
2427 * regex.c (enum re_opcode_t): Remove jump_past_alt,
2428 maybe_pop_jump, push_dummy_failure and dumy_failure_jump. Add
2429 on_failure_jump_(exclusive, loop and smart). Also fix the comment
2430 for (start|stop)_memory since they now only take one argument (the
2431 second has becomes unnecessary).
2432 (print_partial_compiled_pattern): Adjust for changes in
2433 re_opcode_t.
2434 (print_compiled_pattern): Use %ld to printf long ints and flush to
2435 make debugging a little easier.
95cd4c40
SM
2436 (union fail_stack_elt): Make the integer unsigned.
2437 (struct fail_stack_type): Add a `frame' element.
2438 (INIT_FAIL_STACK): Init `frame' as well.
2439 (POP_PATTERN_OP): New macro for re_compile_fastmap.
2440 (DEBUG_PUSH, DEBUG_POP): Remove.
2441 (NUM_REG_ITEMS): Remove.
2442 (NUM_NONREG_ITEMS): Adjust.
80460654
GM
2443 (FAILURE_PAT, FAILURE_STR, NEXT_FAILURE_HANDLE)
2444 (TOP_FAILURE_HANDLE): New macros for the cycle detection.
95cd4c40 2445 (ENSURE_FAIL_STACK): New macro for PUSH_FAILURE_(REG|POINT).
80460654
GM
2446 (PUSH_FAILURE_REG, POP_FAILURE_REG, CHECK_INFINITE_LOOP): New
2447 macros.
2448 (PUSH_FAILURE_POINT): Don't push registers any more. The pattern
2449 address pushed is not the destination of the jump but the source
2450 of it instead.
95cd4c40
SM
2451 (NUM_FAILURE_ITEMS): Remove.
2452 (POP_FAILURE_POINT): Adapt to the new stack structure (i.e. pop
80460654
GM
2453 registers before the actual failure point). Don't hardcode any
2454 meaning for str==NULL anymore.
95cd4c40 2455 (union register_info_type, REG_MATCH_NULL_STRING_P, IS_ACTIVE)
80460654
GM
2456 (MATCHED_SOMETHING, EVER_MATCHED_SOMETHING, SET_REGS_MATCHED):
2457 Remove.
95cd4c40
SM
2458 (REG_UNSET_VALUE): Use NULL (why not?).
2459 (compile_range): Remove declaration since it doesn't exist.
2460 (struct compile_stack_elt_t): Remove inner_group_offset.
2461 (old_reg(start|end), reg_info, reg_dummy, reg_info_dummy): Remove.
2462 (regex_grow_registers): Remove dead code.
2463 (FIXUP_ALT_JUMP): New macro.
80460654
GM
2464 (regex_compile): Add shy-groups Change loops to use
2465 on_failure_jump_smart&jump instead of
2466 on_failure_jump&maybe_pop_jump. Change + loops to eliminate the
2467 initial (dummy_failure_)jump. Remove c1_base (looks like unused
2468 variable to me). Use `jump' instead of `jump_past_alt' and don't
2469 bother with push_dummy_failure in alternatives since it is now
2470 unnecessary. Use FIXUP_ALT_JUMP. Eliminate a useless `#ifdef
2471 emacs' for (re)allocating the stack.
2472 (re_compile_fastmap): Remove dead variables i and num_regs. Exit
2473 from loop when bufp->can_be_null rather than jumping to `done'.
2474 Avoid jumping backwards so as to ensure termination. Use
2475 PATTERN_STACK_EMPTY and POP_PATTERN_OP. Improved handling of
2476 backreferences. Remove dead code in handling of `anychar'.
95cd4c40 2477 (skip_noops, mutually_exclusive_p): New functions taken from the
80460654
GM
2478 handling of `maybe_pop_jump' in re_match_2_internal. Slightly
2479 improve mutually_exclusive_p to handle ".+\n".
2480 (lowest_active_reg, highest_active_reg,
2481 NO_(LOWEST|HIGHEST)_ACTIVE_REG) Remove.
2482 (re_match_2_internal): Use %p instead of 0x%x when printf'ing
2483 ptrs. Don't SET_REGS_MATCHED anymore. Remove many dead
2484 variables. Push register (in `start_memory') on the stack rather
2485 than storing it in old_reg(start|end). Remove the cycle detection
2486 from `stop_memory', replaced by the use of on_failure_jump_loop
2487 for greedy loops. Add code for the new on_failure_jump_<foo>.
2488 Remove ad-hoc code in `on_failure_jump' to push more registers in
2489 the case of a loop. Take out code from `maybe_pop_jump' into
2490 separate functions and adapt it to the semantics of
2491 `on_failure_jump_smart'. Remove jump_past_alt, dummy_failure_jump
2492 and push_dummy_failure. Remove dummy_failure handling and
2493 handling of `failures to jump to on_failure_jump' (this last one
2494 was already dead code, it seems).
2495 (group_match_null_string_p, alt_match_null_string_p)
2496 (common_op_match_null_string_p): Remove.
95cd4c40 2497
7397acc4
DL
24982000-03-08 Dave Love <fx@gnu.org>
2499
2500 * config.in: Don't depend on __STDC__ for volatile.
2501 Add POINTER_TYPE, PTR, PROTOTYPES.
2502
2503 * hftctl.c, strftime.c: Use PROTOTYPES.
2504 * eval.c (find_handler_clause): Likewise.
2505
2506 * mem-limits.h: Use POINTER_TYPE.
2507
2508 * lisp.h (P_): Define based on PROTOTYPES, not __STDC__.
2509 (memory_warnings): Declare using POINTER_TYPE.
2510
5e91ff9e
GM
25112000-03-08 Gerd Moellmann <gerd@gnu.org>
2512
feab4fba
GM
2513 * xfns.c (x_set_cursor_type): If ARG is nil, give frame no cursor.
2514
25edb08f
GM
2515 * xdisp.c (display_echo_area): Temporarily inhibit garbage
2516 collection.
2517
5e91ff9e
GM
2518 * xfns.c: Remove obsolete code in #if 0.
2519 (Fx_focus_frame): New function.
2520
a735b7e1
KH
25212000-03-07 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
2522
2523 * coding.c (coding_category_name): Add coding-category-utf-8,
2524 coding-category-utf-16-be, coding-category-utf-16-le.
2525 (UTF_8_1_OCTET_P, UTF_8_EXTRA_OCTET_P, UTF_8_2_OCTET_LEADING_P,
2526 UTF_8_3_OCTET_LEADING_P, UTF_8_4_OCTET_LEADING_P,
2527 UTF_8_5_OCTET_LEADING_P, UTF_8_6_OCTET_LEADING_P): New macros.
2528 (detect_coding_utf_8): New function.
2529 (UTF_16_INVALID_P, UTF_16_HIGH_SURROGATE_P
2530 UTF_16_LOW_SURROGATE_P): New macros.
2531 (detect_coding_utf_16): New function
2532 (detect_coding_mask): When priorities are specified, skip any
2533 categories that have `nil' coding-system. Fix bug of returning
2534 wrong mask when PRIORITIES is specified and detect_coding_XXX()
2535 returns a mask not set in PRIORITIES.
2536 (detect_eol_type_in_2_octet_form): New function.
2537 (detect_eol): selects detect_eol_type_XXX to call according to
2538 cooding->category_idx.
2539 (detect_coding_system): Remove `nil' coding-system in the result.
2540 (Fupdate_coding_systems_internal): Update all coding-categories.
2541
2542 * coding.h (CODING_CATEGORY_IDX_UTF_8,
2543 CODING_CATEGORY_IDX_UTF_16_BE, CODING_CATEGORY_IDX_UTF_16_LE): New
2544 macros.
2545 (CODING_CATEGORY_IDX_RAW_TEXT, CODING_CATEGORY_IDX_BINARY,
2546 CODING_CATEGORY_IDX_MAX): Adjusted for the above macros.
2547 CODING_CATEGORY_IDX_UTF_16_LE.
2548 (CODING_CATEGORY_MASK_UTF_8, CODING_CATEGORY_MASK_UTF_16_BE,
2549 CODING_CATEGORY_MASK_UTF_16_LE): New macros.
2550 (CODING_CATEGORY_MASK_ANY): Include the above macros.
2551 (CODING_CATEGORY_MASK_UTF_16_BE_LE): New macro.
2552
9994cc69
GM
25532000-03-07 Gerd Moellmann <gerd@gnu.org>
2554
e9b4e5ff
GM
2555 * doc.c (Fdocumentation_property): If value is not a string,
2556 and doesn't refer to etc/DOC, evaluate it to obtain a string.
2557
f7daf1e1
GM
2558 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Don't try to
2559 close the display with XtCloseDisplay. This caused a bus error
2560 on OpenWindows.
2561
9994cc69
GM
2562 * minibuf.c (Fminibuffer_complete): Move point to ZV when input is
2563 complete but not unique.
2564
4336c705
GM
25652000-03-06 Gerd Moellmann <gerd@gnu.org>
2566
18bb0684
GM
2567 * process.c (send_process): Remove local variable `procname' that
2568 might become invalid when a GC happens. Instead, access the
2569 process name slot directly.
2570
4336c705
GM
2571 * xfns.c (x_set_menu_bar_lines_1): Adjust window's orig_top and
2572 orig_height if set.
2573
2574 * frame.c (set_menu_bar_lines_1): Adjust window's orig_top and
2575 orig_height if set.
2576
515d0d0e
EZ
25772000-03-06 Eli Zaretskii <eliz@is.elta.co.il>
2578
2579 * msdos.c (IT_note_mouse_highlight): Return immediately if frame's
2580 glyph matrices have been freed.
2581
100b3cbb
GM
25822000-03-05 Gerd Moellmann <gerd@gnu.org>
2583
50df5e5a 2584 * Makefile.in (tags): Include ../lwlib/TAGS in TAGS.
6178bc23 2585 (bootstrap-temacs): Set LC_ALL to C like for temacs.
50df5e5a
GM
2586
2587 * xfns.c (QCdata): Moved to xdisp.c.
2588
2589 * xdisp.c (QCdata): Moved here from xfns.c.
2590 (syms_of_xdisp): Initialize QCdata.
2591
2592 * frame.h (FRAME_INTERNAL_BORDER_WIDTH) [!HAVE_X_WINDOWS]: Define.
2593
2594 * window.c (coordinates_in_window): Use
2595 FRAME_INTERNAL_BORDER_WIDTH_SAFE instead of
2596 FRAME_INTERNAL_BORDER_WIDTH.
2597
100b3cbb 2598 * xdisp.c (try_window_id): Recompute unchanged information if
4336c705 2599 it is obviously invalid.
100b3cbb
GM
2600
2601 * xterm.c (x_term_init): Create a colormap if not using the
2602 default visual.
2603
2604 * xterm.h (select_visual): Change prototype.
2605
2606 * xfns.c (select_visual): Rewritten. Recognize user-specified
2607 visual classes.
2608 (visual_classes): New variable.
2609
64d739c4
GM
26102000-03-04 Gerd Moellmann <gerd@gnu.org>
2611
2612 * xfns.c (x_defined_color, x_set_mouse_color, lookup_rgb_color)
2613 (lookup_pixel_color, x_laplace, x_build_heuristic_mask)
2614 (png_load): Access colormap of frame using FRAME_X_COLORMAP.
2615 (x_decode_color): Don't handle allocation of white and black
2616 specially.
2617 (x_window) [USE_X_TOOLKIT]: Set XtNvisual, XtNdepth, and
2618 XtNcolormap resources.
2619 (x_window) [!USE_X_TOOLKIT]: Pass colormap to XCreateWindow.
2620 (Fx_create_frame): Initialize color members of x_output structure.
2621 (xpm_load): Pass colormap to XPM lib.
2622
2623 * xfaces.c (x_free_colors): Access colormap of frame using
2624 FRAME_X_COLORMAP. Be paranoid about freeing black and white
2625 when default colormap is used.
2626
2627 * xterm.c (x_term_init): Set Colormap member of x_display_info
2628 structure. Copy colormap if resource `privateColormap' is
2629 specified (PseudoColor only).
2630 (x_setup_relief_color): Access colormap of frame using
2631 FRAME_X_COLORMAP.
2632
2633 * xterm.h (struct x_display_info): Add Colormap member `cmap'.
2634 (FRAME_X_COLORMAP, FRAME_X_VISUAL): New macros.
2635
c3cee013
JR
26362000-03-04 Jason Rumney <jasonr@gnu.org>
2637
2638 * xfaces.c Change many FRAME_X... macros to FRAME_WINDOW... or
2639 other non-platform-specific equivalents.
64d739c4 2640 [WINDOWSNT]: Include w32term.h, fontset.h and define X
c3cee013
JR
2641 specific functions and macros as their w32 equivalents where
2642 non-platform-specifics are not available.
2643 [HAVE_X_WINDOWS]: Change most of these to HAVE_WINDOW_SYSTEM.
2644 (x_create_gc, x_free_gc) [WINDOWSNT]: Add W32 versions.
2645 (clear_font_table) [WINDOWSNT]: Call w32_unload_font.
2646 (frame_update_line_height): Use macros to access f->output_data.
2647 (defined_color): Remove FIXME comments; fixed.
2648 (x_face_list_fonts, prepare_face_for_display): Put X specifics
2649 into #ifdef blocks. Add WINDOWSNT blocks.
2650 (Fx_list_fonts): Use macros for accessing font data.
2651 (set_lface_from_font_name): Different default fonts for X and
2652 WINDOWSNT.
2653 (font_scalable_p) [WINDOWSNT]: Treat wildcard XLFD_AVGWIDTH as
2654 scalable for backward compatibility.
64d739c4 2655 (realize_tty_face) [MSDOS]: Do the same for WINDOWSNT.
c3cee013
JR
2656 (syms_of_xfaces) [WINDOWSNT]: Allow scalable fonts by default.
2657
64d739c4 2658 * emacs.c (main) [HAVE_NTGUI]: Call syms_of_xfaces instead of
c3cee013
JR
2659 syms_of_w32faces.
2660
2661 * makefile.nt (w32faces.obj): Remove.
2662 (xfaces.obj): Add.
2663
807cc41c
JR
26642000-03-03 Jason Rumney <jasonr@gnu.org>
2665
2666 * keyboard.c (make_lispy_event): Call buffer_posn_from_coords with
2667 correct parameters.
2668
0007072a
KR
26692000-03-03 Ken Raeburn <raeburn@gnu.org>
2670
2671 * unexelf.c (PT_LOAD, SHT_*, SHN_*) [__NetBSD__]: Only provide
2672 standard ELF definitions here if the system header does not.
2673
71a6ba55
GM
26742000-03-03 Gerd Moellmann <gerd@gnu.org>
2675
2676 * xterm.c (PER_CHAR_METRIC): Removed.
2677 (x_per_char_metric_1, x_default_char): New functions.
2678 (x_per_char_metric): If font's default char is invalid, return
2679 metrics of a suitably chosen usable default char.
2680 (x_draw_glyph_string_foreground): If font has an invalid default
64d739c4
GM
2681 char, replace occurrences of unprintable chars with a suitably
2682 chosen usable default char.
71a6ba55 2683
900fa1f1
GM
26842000-03-02 Gerd Moellmann <gerd@gnu.org>
2685
42f55fe0
GM
2686 * xterm.c (note_mouse_highlight): Return quickly if frame's
2687 glyph matrices have been freed.
2688
2689 * dispnew.c (free_glyphs): Block input while freeing matrices.
2690
900fa1f1
GM
2691 * xfns.c (x_clear_image, x_kill_gs_process): Use x_free_colors.
2692
2693 * xterm.c (x_alloc_lighter_color, x_setup_relief_color): Use
2694 x_free_colors.
2695
2696 * dispextern.h (x_free_colors): Add prototype.
2697
2698 * xfaces.c (x_free_colors): New function.
2699 (unload_color, free_face_colors): Use it.
2700
2f950292
EZ
27012000-03-02 Eli Zaretskii <eliz@is.elta.co.il>
2702
2703 * msdos.h (FRAME_INTERNAL_BORDER_WIDTH): Define to zero.
2704
2705 * window.c [MSDOS]: Include msdos.h.
2706
54d04320
DL
27072000-03-02 Dave Love <fx@gnu.org>
2708
2709 * m/powerpcle.h, m/sparc.h: Don't set C_OPTIMIZE_SWITCH.
2710
2711 * m/mips-siemens.h, m/news-r6.h, m/news-risc.h, m/tekxd88.h: Don't
2712 set C_OPTIMIZE_SWITCH for gcc.
2713
0ba93ac4
KH
27142000-03-02 Kenichi Handa <handa@etl.go.jp>
2715
2716 * coding.c (coding_save_composition): Be sure to allocate
2717 composition data area in coding even if there's no composition in
2718 the current run.
2719
a2bc11d4
JR
27202000-03-01 Jason Rumney <jasonr@gnu.org>
2721
2722 * w32term.c: Equivalent changes to those made to xterm.c on
2723 2000-02-25 and 2000-02-24.
2724
2725 * w32fns.c: Equivalent changes to those made to xfns.c on
2726 2000-02-25 and 2000-02-21.
2727
2728 * sysdep.c: [WINDOWSNT]: Use sys_read and sys_write to ensure
2729 correct line-end convention is followed.
2730
2731 * w32menu.c [HAVE_BOXES]: Remove #undef.
2732 (single_keymap_panes): Remove code for simulating checkmarks.
2733 (single_menu_item): Remove notbuttons_ptr argument. Callers changed.
2734 Remove code for drawing simulated checkmarks.
2735 (w32_menu_show): make unibyte help string correctly.
2736 (add_menu_item): draw standard Windows checkmarks. Draw radio
2737 buttons as radio buttons if possible.
2738
72d19d75
GM
27392000-03-01 Gerd Moellmann <gerd@gnu.org>
2740
2df636f4
GM
2741 * sysdep.c (start_of_text): Don't define this function for NetBSD
2742 with ELF.
2743
2744 * m/pmax.h (START_FILES, CANNOT_DUMP) [__NetBSD__ || __OpenBSD__]:
2745 Don't define.
2746 (UNEXEC) [__NetBSD__ || __OpenBSD__]: Define to unexelf.o.
2747 (LINKER): Don't undef if __NetBSD__ is defined.
2748
2749 * m/mips.h (LINKER) [__NetBSD__ || __OpenBSD__]: Don't define.
2750
2751 * fileio.c [__NetBSD__]: Define `unix'.
2752
72d19d75
GM
2753 * xfns.c (start_busy_cursor): Allow floats for busy-cursor-delay.
2754
ed4d0512
GM
27552000-02-29 Gerd Moellmann <gerd@gnu.org>
2756
50b1039f
GM
2757 * atimer.c (start_atimer): Don't abort when timers are stopped.
2758 (append_atimer_lists): New function.
2759 (cancel_atimer, stop_other_atimers, run_all_atimers): Handle
2760 arbitrary lists of stopped and running atimers.
2761
ed4d0512
GM
2762 * atimer.c (cancel_atimer): Handle canceling an atimer when
2763 some timers are stopped.
2764
2765 * xfns.c (cancel_busy_cursor): Set busy_cursor_atimer to null
2766 after canceling it.
2767
2768 * fns.c (maybe_resize_hash_table): Handle case of new size
2769 coming out as being the same as old size.
2770
387023ee
JR
27712000-02-27 Jason Rumney <jasonr@gnu.org>
2772
2773 * makefile.nt: Add atimer.h to dependencies.
2774 * w32.c (init_environment): Set Vw32_num_mouse_buttons here.
2775 * w32console.c: Only disable window system features for dispextern.h
2776 (initialize_w32_display): Build a display info for the console.
2777 * w32faces.c (tty_defined_color): Apply xfaces.c change from 02-17.
2778 * w32fns.c (w32_wnd_proc) [WM_LBUTTON_DOWN, WM_RBUTTON_DOWN,
2779 WM_LBUTTON_UP, WM_RBUTTON_UP]: Do not treat 4 or more button mice
2780 as 2 button mice.
2781 * w32gui.h (struct W32FontStruct): Revert last change after change
2782 to xdisp.c.
2783 * w32menu.c (single_submenu): Set up help string.
2784 [!HAVE_MULTILINGUAL_MENU]: Don't overwrite item_name with descrip.
2785 (w32_dialog_show): Set up help string.
2786 * w32term.c (w32_display_info_for_display): Remove unused function.
2787 (w32_draw_bitmap): Use pre-built bitmaps.
2788 (w32_initialize_display_info): New function to initialize parts of
2789 display info that are common to both GUI and console frames.
2790 (w32_term_init): Use w32_initialize_display_info. Do not set
2791 Vw32_num_mouse_buttons here, as it is not called for console
2792 frames. Build bitmaps for indicating truncated lines etc.
2793 (x_delete_display): Destroy pre-built bitmaps.
2794 * xdisp.c (handle_single_display_prop): Use FONT_HEIGHT macro.
2795 (echo_area_display): Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM.
2796
4516715a
DL
27972000-02-27 Dave Love <fx@gnu.org>
2798
2799 * lisp.h: Add a bunch of prototypes.
2800
171ca836
KH
28012000-02-26 Kenichi Handa <handa@etl.go.jp>
2802
2803 * keyboard.c (read_char): Set `usec' correctly.
2804
4013921d
KH
28052000-02-25 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
2806
2807 * ccl.c (ccl_driver) [CCL_MapMultiple]: When the mapped value is
2808 `lambda', set reg[RRR] to the map index.
2809 (ccl_driver) [CCL_MapSingle]: When the mapped value is found, set
2810 reg[RRR] to 0. Otherwise, set it to -1.
2811
9244a058
GM
28122000-02-25 Gerd Moellmann <gerd@gnu.org>
2813
2df636f4 2814 * emacs.c (main): Remove code snippet commented out with `//'.
9244a058 2815
f43d79c1
GM
28162000-02-25 Richard M. Stallman <rms@caffeine.ai.mit.edu>
2817
2818 * fileio.c (Ffile_symlink_p): If result starts with a `/'
2819 and contains a `:', prepend `/:'.
2820
2821 * window.c (select_window_1): If selected_window is nil,
2822 don't "swap out" the buffer's point.
2823 (Fset_window_configuration): Set selected_window to nil
2824 before calling Fselect_window.
2825 (unshow_buffer): Don't set point in buffer from window's point
2826 if another more recently selected window also shows the buffer.
2827
bed0c171
GM
28282000-02-25 Gerd Moellmann <gerd@gnu.org>
2829
449c3c52
GM
2830 * keyboard.c (recursive_edit_1): Cancel busy-cursor.
2831
f5b58615
GM
2832 * xfns.c (inhibit_busy_cursor, busy_count): Removed.
2833 (Fx_show_busy_cursor, Fx_hide_busy_cursor): Removed.
2834 (busy_cursor_atimer, busy_cursor_shown_p, Vbusy_cursor_delay): New
2835 variables.
2836 (DEFAULT_BUSY_CURSOR_DELAY): New define.
2837 (start_busy_cursor, cancel_busy_cursor, show_busy_cursor)
2838 (hide_busy_cursor): New functions.
2839 (syms_of_xfns): DEFVAR_LISP Vbusy_cursor_delay.
2840
2841 * minibuf.c (read_minibuf): Cancel busy-cursor.
2842
2843 * keyboard.c (command_loop_1): Call start_busy_cursor before
2844 Fcommand_execute and cancel_busy_cursor after it.
2845 (timer_check): Remove busy-cursor code.
2846 (Fread_key_sequence, Fread_key_sequence_vector): Start/cancel busy
2847 cursor timer.
2848
2849 * process.c (wait_reading_process_input): Remove busy-cursor code.
2850
2851 * eval.c (Fsignal): Call cancel_busy_cursor instead of
2852 Fx_hide_busy_cursor.
2853
2854 * dispextern.h (Fx_show_busy_cursor, Fx_hide_busy_cursor):
2855 Remove prototyoes.
2856 (start_busy_cursor, cancel_busy_cursor): Add prototypes.
2857
2858 * lisp.h (Fx_hide_busy_cursor): Remove prototype.
2859
2860 * xterm.c (XTread_socket): Remove busy-cursor code.
2861
4eb8436f
GM
2862 * dispnew.c (flush_stdout) [GLYPH_DEBUG]: New function.
2863 (build_frame_matrix_from_leaf_window): Put code handling
2864 glyph row's not being a slice of a frame row in #if 0.
2865 (sync_window_with_frame_matrix_rows): New function.
2866 (frame_row_to_window): New function.
2867 (mirror_line_dance): Handle copies between windows.
2868
3cb65b0e
GM
2869 * lread.c (Fload): Use `xfree' instead of `free'.
2870 (init_obarray): Use `xmalloc' instead of `malloc'.
2871
bed0c171
GM
2872 * window.c (Fset_window_buffer): Set WINDOW to the window
2873 after decoding.
2add4349
GM
2874 (coordinates_in_window): Take frame's internal border width
2875 into account.
bed0c171 2876
42088c12
GM
28772000-02-24 Gerd Moellmann <gerd@gnu.org>
2878
2879 * xterm.c (x_display_and_set_cursor): Display cursor of
2880 non-selected windows depending on the setting of
2881 cursor_in_non_selected_windows.
2882
2883 * xdisp.c (cursor_in_non_selected_windows): New variable.
2884 (syms_of_xdisp): DEFVAR_BOOL it.
2885
d1e103b2
GM
28862000-02-23 Gerd Moellmann <gerd@gnu.org>
2887
723e779c
GM
2888 * data.c (Fstring_to_number): If number is greater than what
2889 fits into an integer, return a float.
2890
d1e103b2
GM
2891 * eval.c (specbind): Remove references to
2892 keyword_symbols_constant_flag.
2893
2894 * data.c (keyword_symbols_constant_flag): Removed.
2895 (Fmakunbound, set_internal, syms_of_data): Remove references to
2896 keyword_symbols_constant_flag.
2897
2898 * bytecode.c (Fbyte_code): Remove keyword_symbols_constant_flag.
2899
214f877f
KH
29002000-02-23 Kenichi Handa <handa@etl.go.jp>
2901
2902 * syntax.c (multibyte_syntax_as_symbol): New variable.
2903 (syms_of_syntax): Declare it as a Lisp variable.
2904 (SYNTAX_WITH_MULTIBYTE_CHECK): New macro.
2905 (scan_lists): If both sexpflag and multibyte_syntax_as_symbol are
2906 nonzero, treat all multibyte characters as symbol.
42088c12 2907 (init_syntax_once): Give syntax `word' to all multibyte
214f877f
KH
2908 characters.
2909
130adcb7
EZ
29102000-02-22 Eli Zaretskii <eliz@is.elta.co.il>
2911
3cb65b0e 2912 * frame.c (Fdelete_frame): Don't let echo_area_window remain on
130adcb7
EZ
2913 a deleted frame.
2914
17cbbf95
GM
29152000-02-21 Gerd Moellmann <gerd@gnu.org>
2916
2917 * frame.c (Fmouse_position): GCPRO retval instead of x and y.
2918
2919 * xfns.c (x_window_to_frame, x_any_window_to_frame)
2920 (x_non_menubar_window_to_frame): Check the busy-cursor window.
2921
beb0bc36
DL
29222000-02-21 Dave Love <fx@gnu.org>
2923
2924 * frame.c (Vmouse_position_function): New variable.
2925 (Fmouse_position): Use it.
2926 (syms_of_frame): Install it.
2927
2928 * charset.c (find_charset_in_str): Fix use of `c' instead of `c1'.
2929
1d92afcd
GM
29302000-02-20 Gerd Moellmann <gerd@gnu.org>
2931
2932 * fileio.c (Finsert_file_contents): Unbind the binding of
2933 standard-output done by temp_output_buffer_setup.
329eed9f
GM
2934
2935 * eval.c (funcall_lambda): Don't bind Qmocklisp_arguments unless
2936 Vmocklisp_arguments is nil. Inline Fcar and Fcdr.
2937 (specbind, unbind_to): Handle most common case of non-constant
2938 symbol with trivial value specially.
2939
2940 * bytecode.c (Fbyte_code) <Bvarset>: Inline most common case.
2941
2d06696f
RS
29422000-02-20 Richard M. Stallman <rms@caffeine.ai.mit.edu>
2943
2944 * data.c (Fmake_variable_buffer_local): Doc fix.
2945 Init found_for_buffer to 0.
2946 (Fmake_variable_frame_local): If the variable has already
2947 been buffer-local, set the check_frame field.
2948
1d4311c3
EZ
29492000-02-20 Eli Zaretskii <eliz@is.elta.co.il>
2950
2951 * msdos.c (IT_write_glyphs): Allocate a larger screen_buf as data
2952 produced for CODING_MODE_LAST_BLOCK requires.
2953
2dc95ddd
DL
29542000-02-18 Dave Love <fx@gnu.org>
2955
2956 * keyboard.c (echo_keystrokes): Remove declaration.
2957 (Vecho_keystrokes) New variable.
2958 (read_char, record_menu_key, read_key_sequence): Use it to allow
2959 use of float value.
2960 (syms_of_keyboard): Change Vecho_keystrokes declaration.
2961
2962 * lread.c: Undef feature selection macros before defining.
2963
f0930f35
GM
29642000-02-18 Gerd Moellmann <gerd@gnu.org>
2965
2966 * data.c (let_shadows_buffer_binding_p): Ignore specbindings
2967 for symbols other than the symbol in question.
2968
e3d4de90
DL
29692000-02-17 Dave Love <fx@gnu.org>
2970
2971 * s/sol2.h (C_DEBUG_SWITCH): Define to allow optimization.
2972
0b378936
GM
29732000-02-17 Gerd Moellmann <gerd@gnu.org>
2974
d621caf7
GM
2975 * emacs.c (main): Use #if GC_MARK_STACK instead of #ifdef.
2976
0b378936
GM
2977 * alloc.c (enum mem_type): Compile unconditionally.
2978
3b451f74
EZ
29792000-02-17 Eli Zaretskii <eliz@is.elta.co.il>
2980
2981 * xfaces.c (tty_defined_color): Don't return faulire indication
2982 for unspecified-fg and unspecified-bg pseudo-colors.
2983
10689a01
GM
29842000-02-17 Gerd Moellmann <gerd@gnu.org>
2985
1216f5e4
GM
2986 * alloc.c (mark_object): Don't mark symbol names in pure space.
2987 (gc_sweep): Don't unmark symbol names in pure space.
2988
2989 * lisp.h (GC_USE_GCPROS_AS_BEFORE, GC_MAKE_GCPROS_NOOPS)
2990 (GC_MARK_STACK_CHECK_GCPROS, GC_USE_GCPROS_CHECK_ZOMBIES)
2991 [GC_MARK_STACK]: New defines.
2992 (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5, UNGCPRO)
2993 [GC_MARK_STACK == GC_MAKE_GCPROS_NOOPS]: Define as no-ops.
2994
2995 * emacs.c (main) [GC_MARK_STACK]: Initialize stack_base.
2996
2997 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use
2998 allocate_buffer instead of xmalloc.
2999
3000 * alloc.c (toplevel): Include setjmp.h.
3001 (PURE_POINTER_P): New define.
3002 (enum mem_type) [GC_MARK_STACK]: New enumeration.
3003 (Vdead) [GC_MARK_STACK]: New variable.
3004 (lisp_malloc): Add parameter TYPE, call mem_insert if
3005 GC_MARK_STACK is defined.
3006 (allocate_buffer): New function.
3007 (lisp_free) [GC_MARK_STACK]: Call mem_delete.
3008 (free_float) [GC_MARK_STACK]: Set type to Vdead.
3009 (free_cons) [GC_MARK_STACK]: Set car to Vdead.
3010 (stack_base, mem_root, mem_z) [GC_MARK_STACK]: New variables.
3011 (MEM_NIL) [GC_MARK_STACK]: New define.
3012 (struct mem_node) [GC_MARK_STACK]: New structure.
3013 (mem_init, mem_find, mem_insert, mem_delete, mem_insert_fixup)
3014 (mem_delete_fixup, mem_rotate_left, mem_rotate_right)
3015 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
3016 (live_misc_p, live_vector_p, live_buffer_p, mark_memory)
3017 (mark_stack) [GC_MARK_STACK]: New functions.
3018 (Fgarbage_collect) [GC_MARK_STACK]: Call mark_stack.
3019 (clear_marks): Removed.
3020 (gc_sweep): Set free conses' car, free floats' type, free
3021 symbols' function to Vdead. Use lisp_free to free buffers.
3022 (init_alloc_once): Initialize Vdead.
3023 (survives_gc_p): Return non-zero for pure objects.
3024
3025 * alloc.c: Add comments throughout the file.
3026
2503c8b1
GM
3027 * atimer.c (stop_other_atimers): Don't call cancel_atimer because
3028 that unblocks alarms.
3029
8389e1e2
GM
3030 * alloc.c, bytecode.c, data.c, dispnew.c, ecrt0.c, editfns.c,
3031 emacs.c, floatfns.c, fns.c, lread.c, print.c, config.in, lisp.h,
3032 Makefile.in: Remove `LISP_FLOAT_TYPE' and `standalone'.
3033
10689a01
GM
3034 * frame.c (make_frame): Set frame initiallly to `garbaged'.
3035
bfc17d18
KH
30362000-02-17 Kenichi Handa <handa@etl.go.jp>
3037
4a09dee0
KH
3038 * xdisp.c (decode_mode_spec_coding): Delete superfluous code to
3039 avoid infinite error signaling. Allocate sufficient memory for
3040 eol_str in the case that eoltype is Lisp_Int.
bfc17d18 3041
2b927d02
SM
30422000-02-17 Stefan Monnier <monnier@cs.yale.edu>
3043
3044 * syntax.c (Fforward_comment): Undo the previous change, since cc-mode
3045 depends on the previous behavior.
3046
b49cb764
GM
30472000-02-16 Gerd Moellmann <gerd@gnu.org>
3048
3049 * sysdep.c (vfork) [!HAVE_VFORK]: Removed.
3050
99e95407
GM
30512000-02-15 Gerd Moellmann <gerd@gnu.org>
3052
3053 * s/freebsd.h (BROKEN_PTY_READ_AFTER_EAGAIN): Define.
3054
3055 * process.c (send_process) [BROKEN_PTY_READ_AFTER_EAGAIN]:
b49cb764 3056 Workaround for FreeBSD bug. Clear output queue after EAGAIN in
99e95407
GM
3057 write(2).
3058
6ffd3cf7
RS
30592000-02-15 Richard M. Stallman <rms@gnu.org>
3060
3061 * data.c (set_internal): Don't make variable buffer-local
3062 if within a let-binding for the same buffer.
3063 (let_shadows_buffer_binding_p): New function.
3064
3065 * eval.c (specbind): For buffer-local value,
3066 record the current buffer also.
3067 (unbind_to): Cope with that change.
3068
cad53475
GM
30692000-02-15 Gerd Moellmann <gerd@gnu.org>
3070
3071 * window.c (Fsave_window_excursion): Doc fix.
3072
1aa963c8
SM
30732000-02-15 Stefan Monnier <monnier@cs.yale.edu>
3074
3075 * syntax.c (back_comment): Make sure we only consider comment-starters
3076 of the relevant style and return -1 in case of a failure to find the
3077 beginning of the comment.
3078 (Fforward_comment): If back_comment fails, go back to the position just
3079 after the comment-end.
3080 (scan_lists): Add comment describing a very minor bug.
3081
b9b84fd3
SM
30822000-02-14 Stefan Monnier <monnier@cs.yale.edu>
3083
3084 * minibuf.c (Ftry_completion, Fall_completions): Add a reference to
3085 `completion-regexp-list' in the docstring.
3086
3a28db80
DL
30872000-02-14 Dave Love <fx@gnu.org>
3088
3089 * xfaces.c (tty_defined_color): Declare color_idx unsigned long.
3090
fb4a568d
SM
30912000-02-14 Stefan Monnier <monnier@cs.yale.edu>
3092
3093 * regex.h (RE_SYNTAX_EMACS): Add RE_CHAR_CLASSES and RE_INTERVALS
3094 to Emacs' syntax. Also fix the comment about set/not-set meanings
3095 since Emacs syntax is not the value 0 any more.
3096 * search.c (compile_pattern_1): Remove RE_CHAR_CLASSES from the syntax
3097 since it's now part of RE_SYNTAX_EMACS.
3098
1063ebb5
DL
30992000-02-12 Dave Love <fx@gnu.org>
3100
3101 * frame.h (SELECTED_FRAME): Use NULL, not 0 to avoid warnings on
3102 Alpha.
3103
fb07a302
GM
31042000-02-12 Gerd Moellmann <gerd@gnu.org>
3105
3106 * xdisp.c (syms_of_xdisp): Doc fix for scroll-conservatively.
3107
aaf2320c
DL
31082000-02-12 Dave Love <fx@gnu.org>
3109
3110 * s/aix3-2.h, s/osf-1.h: Define C_DEBUG_SWITCH for non-gcc.
3111
3112 * s/ux4800.h, s/umips.h, s/umax.h, s/sol2.h, s/sco5.h, s/rtu.h:
fb07a302
GM
3113 * s/ptx4.h, s/umax.h, s/dgux.h, s/bsd4-2.h, s/bsd4-3.h:
3114 * s/hpux.h: Don't define HAVE_VFORK.
aaf2320c
DL
3115
3116 * s/gnu-linux.h: Don't define HAVE_VFORK or HAVE_SYS_SIGLIST.
3117
3118 * s/nextstep.h: Don't define HAVE_ALLOCA.
3119
3120 * config.in: Add vfork bits.
3121
eedf8bde
GM
31222000-02-12 Gerd Moellmann <gerd@gnu.org>
3123
3124 * process.c (Fopen_network_stream) [POLL_FOR_INPUT]: Register
3125 unwind function to undo the effect of stopping atimers.
3126
3127 * keyboard.c (bind_polling_period): Stop all timers except
3128 poll_timer.
3129
3130 * atimer.c (stopped_atimers): New variable.
3131 (stop_other_atimers, run_all_atimers, unwind_stop_other_atimers):
3132 New functions.
3133
3134 * atimer.h (stop_other_atimers, run_all_atimers)
3135 (unwind_stop_other_atimers): Add function prototypes.
3136
3137 * s/hpux10.h (HAVE_XRMSETDATABASE): Define if not already defined.
3138
8476c2f8
KR
31392000-02-11 Ken Raeburn <raeburn@gnu.org>
3140
3141 * Makefile.in (LIBX): Link in tiff library before jpeg, since tiff
3142 library may depend on jpeg.
3143 (atimer.o): Depends on atimer.c.
3144
0e85e4a3
KH
31452000-02-11 Kenichi Handa <handa@etl.go.jp>
3146
3147 * insdel.c (del_range_1): Call update_compositions.
3148 (del_range_both): Call update_compositions just once..
3149
97fa0cc8
DL
31502000-02-10 Dave Love <fx@gnu.org>
3151
3152 * xfns.c (create_frame_xic): Fix initialization of automatic
3153 aggregates for pcc.
3154
25566a3c
KH
31552000-02-09 Kenichi Handa <handa@etl.go.jp>
3156
3157 * ccl.c (CCL_MAKE_CHAR): New macro.
3158 (ccl_driver) <CCL_TranslateCharacter>: Check the validity of
3159 registers by CCL_MAKE_CHAR before calling translate_char.
3160 <CCL_TranslateCharacterConstTbl> Likewise.
3161
69da54ba
DL
31622000-02-08 Dave Love <fx@gnu.org>
3163
3164 * lread.c (__EXTENSIONS__): Define.
3165
f7136ee8
GM
31662000-02-08 Gerd Moellmann <gerd@gnu.org>
3167
3168 * puresize.h (BASE_PURESIZE): Increase to 650000.
3169
7768790b
EZ
31702000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
3171
3172 * msdos.c (XMenuActivate): Turn off the cursor after displaying
3173 the help message.
3174
38fd211b
EZ
31752000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
3176
3177 * s/msdos.h (INTERNAL_TERMINAL): Add capabilities se, so, us, ue,
3178 md, mh, mb, mr, and me to the fake termcap entry.
3179
66e4690f
KR
31802000-02-06 Ken Raeburn <raeburn@gnu.org>
3181
3182 * sound.c (sound_cleanup): Don't call device close routine if the
3183 function pointer is null.
3184
a75dfea0
AI
31852000-02-06 Andrew Innes <andrewi@gnu.org>
3186
3187 * dispextern.h: Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM,
3188 around image definitions and prototypes.
3189 (gamma_correct) [WINDOWSNT]: New prototype.
3190
3191 * w32term.c (x_make_frame_visible): Replace call to
3192 input_poll_signal with poll_for_input.
3193
3194 * window.c [WINDOWSNT]: Include w32term.h.
3195
3196 * xdisp.c [WINDOWSNT]: Include w32term.h.
3197
3198 * makefile.nt: Add dependencies on w32gui.h.
3199 (OBJ1): Include atimer.obj.
3200 ($(BLD)\atimer.obj): New dependency rule.
3201
3202 * w32.c (sigmask): New function (does nothing).
3203 (sigunblock): Ditto.
3204
3205 * frame.c [WINDOWSNT]: Include w32term.h.
3206
3207 * w32gui.h (struct W32FontStruct): Add ascent and descent slots.
3208
3209 * lread.c (syms_of_lread): Fix literal newlines.
3210
3211 * emacs.c (USAGE): Split into USAGE1 and USAGE2, to work-around
3212 the string constant limit (2048 bytes) in MSVC.
3213 (main): Ditto.
3214
59ddecde
GM
32152000-02-05 INOUE Seiichiro <inoue@ainet.or.jp>
3216
3217 * xterm.c (x_display_and_set_cursor) [HAVE_X_I18N]: Set pre-edit
3218 area.
3219 (x_display_cursor) [HAVE_X_I18N]: Don't set it here.
3220 (XTread_socket) [HAVE_X_I18N]: <KeyPress, KeyRelease>: Don't
3221 dispatch the event.
3222
07590973
DL
32232000-02-04 Dave Love <fx@gnu.org>
3224
3225 * fileio.c: Remove some unused vars.
3226 (_GNU_SOURCE): Define (for euidaccess).
3227
3228 * lread.c (_XOPEN_SOURCE): Declare (for ftello).
3229
3230 * minibuf.c (read_minibuf_noninteractive): Remove undeclared
3231 gcpro1, gcpro2.
3232 (read_minibuf): Deal with allow_props correctly.
3233
649351f9
EZ
32342000-02-03 Eli Zaretskii <eliz@is.elta.co.il>
3235
3236 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Enlarge to 60000.
3237
66e4690f 32382000-02-03 Ken Raeburn <raeburn@gnu.org>
f1b9c7c1
KR
3239
3240 * search.c (compile_pattern): If a cache entry has a nil regexp,
3241 fill in that entry instead of clobbering a previously cached
3242 string regexp.
3243
66e4690f 32442000-02-02 Ken Raeburn <raeburn@gnu.org>
15c9cf81
KR
3245
3246 * puresize.h (BASE_PURESIZE): Increase to 610000.
3247
d240a249
GM
32482000-02-02 Gerd Moellmann <gerd@gnu.org>
3249
3250 * frame.c (Fframe_parameters): Add GCPRO because tty_color_name
3251 can GC.
3252
ca91fb26
KH
32532000-02-02 Kenichi Handa <handa@etl.go.jp>
3254
25660570
KH
3255 * ccl.c (ccl_driver) <CCL_WriteExprRegister>: Set jump_address
3256 instead of incrementing ic directly.
3257 <CCL_WriteExprConst> Likewise.
3258 <ccl_set_expr>: Set ic to jump_address.
3259
ca91fb26
KH
3260 * fileio.c (e_write): Fix the handling of
3261 CODING_FINISH_INSUFFICIENT_SRC.
3262
2ede9689
DL
32632000-02-01 Dave Love <fx@gnu.org>
3264
3265 * editfns.c (Fpropertize): Doc fix.
3266
3267 * process.c (Fstart_process): Doc fix.
3268
3269 * eval.c: Fix various doc strings not to duplicate information
3270 from help-manyarg-func-alist.
3271
3272 * window.c (Fset_window_margins): Don't make interactive. Doc
3273 fix.
3274
3275 * doc.c (Vhelp_manyarg_func_alist): New variable.
3276 (Fdocumentation): Use it.
3277 (syms_of_doc): Define it.
3278
b6680a0e
GM
32792000-01-31 Gerd Moellmann <gerd@gnu.org>
3280
2cb750ba
GM
3281 * xterm.c (xim_open_dpy): Remove unused local variable.
3282
74e9213b
GM
3283 * emacs.c (USAGE): Use term `display options' instead of `X
3284 options'.
3285
3286 * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: New function.
3287 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
3288
b6680a0e
GM
3289 * fns.c (sweep_weak_table): New function.
3290 (sweep_weak_hash_tables): Use it. Keep on marking until there
3291 is no more change.
3292
994c5afe
GM
32932000-01-30 Gerd Moellmann <gerd@gnu.org>
3294
3295 * xterm.c (x_delete_display): Update next_noop_dpyinfo to ensure
3296 that XTread_socket does not crash by trying to call XNoOp on a
3297 closed display.
3298
f00276e3
JR
32992000-01-30 Jason Rumney <jasonr@gnu.org>
3300
3301 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
3302 Change selected_frame to SELECTED_FRAME ().
3303 (w32_console_mouse_position): Remove #ifndef MULE from around
3304 `insist' parameter.
3305
3306 * makefile.nt: Remove dosfns.obj.
3307
3308 * term.c (term_init) [WINDOWSNT]: Initialize TN_max_colors.
3309
3310 * w32fns.c (w32_defined_color): Check for valid frame before
3311 applying gamma correction. Eliminate dependency on frame elsewhere.
3312 (w32_load_system_font): Switch FIXED_PITCH and VARIABLE_PITCH.
3313 (w32_to_x_font): Use resx and resy not height_in and width_in.
3314 (x_to_w32_font): Doc fix.
3315 (xlfd_strip_height): New function to strip and return font height.
3316 (w32_font_match): Compare height separately from rest of xlfd
3317 spec, using xlfd_strip_height.
3318
3319 * w32term.c (w32_term_init): Swap resx and height_in, resy and
3320 width_in. Use w32_defined_color in place of defined_color.
3321
3322 * w32faces.c: Merge more of DOS and X specifics in preparation for
3323 merge with xfaces.c.
3324 (defined_color): Remove FIXME comment.
3325 (tty_color_name): Provide w32-specific function.
3326 (realize_tty_face): Handle FACE_TTY_DEFAULT*_COLOR specially.
3327
3328 * w32console.c (turn_on_face, turn_off_face): Removed.
3329 (w32_face_attributes): New function.
3330 (Global_variables): Reduce scope where possible.
3331 (clear_frame, ins_del_lines, scroll_line): Use char_attr_normal as
3332 fill attribute.
3333 (hl_mode): Don't modify text attributes.
3334 (write_glyphs): Don't do anything if len <= 0. Use
3335 w32_face_attributes to get attributes for drawing. Write
3336 terminating codes using char_attr_normal.
3337 (reset_terminal_modes, set_terminal_modes): Turn off highlight.
3338 (update_begin, update_end): Likewise.
3339 (vga_stdcolor_name): New function.
3340 (initialize_w32_display): Remove char_attr_reverse and char_attr.
3341 (Fset_screen_color): Remove char_attr_reverse.
3342
b08e8bb2
GM
33432000-01-29 Gerd Moellmann <gerd@gnu.org>
3344
3345 * xfns.c (xic_set_preeditarea): Take window parameter and
3346 window-relative pixel-positions.
3347
3348 * xterm.c (x_display_cursor): Set XIC pre-edit area only if window
3349 is its frame's selected window.
3350 (xim_instantiate_callback): Likewise.
3351
3352 * xfns.c (x_create_im): Removed.
3353 (DEFAULT_STYLE, DEFAULT_FONT): Removed.
3354 (supported_xim_styles): Renamed from supported_styles.
3355 (best_xim_style): Renamed from best_style.
3356 (create_frame_xic): Renamed from xic_create_frame.
3357 (free_frame_xic): Renamed from xic_destroy_frame.
3358
33592000-01-29 INOUE Seiichiro <inoue@ainet.or.jp>
3360
3361 * xterm.c (XTread_socket) [HAVE_X_I18N]: If event is for none of
3362 our frames, call XFilterEvent with 2nd parameter `None'.
3363 (XTread_socket) <KeyPress> [HAVE_X_I18N]: Handle XmbLookupString
3364 returning XBufferOverflow.
3365 (XTread_socket) <ConfigureNotify> [HAVE_X_I18N]: Set XIC status
3366 area.
3367 (x_display_cursor) [HAVE_X_I18N]: Set XIC pre-edit area.
3368 (x_new_fontset) [HAVE_X_I18N]: Create XIC status area fontset.
3369 (xim_destroy_callback, xim_open_dpy, xim_instantiate_callback)
3370 (xim_initialize, xim_close)
3371 [HAVE_X_I18N && HAVE_X11R6]: New functions.
3372 (x_destroy_window) [HAVE_X_I18N]: Call xic_destroy_frame.
3373 (x_term_init) [HAVE_X_I18N]: Call xim_initialize.
3374 (x_delete_display) [HAVE_X_I18N]: Call xim_close.
3375
3376 * xterm.h (struct x_display_info) [HAVE_X_I18N]: Add members `xim'
3377 and `xim_styles'.
3378 (struct x_output) [HAVE_X_I18N]: Remove member `xim', add
3379 `xic_style' and `xic_xfs'.
3380 (FRAME_MENUBAR_HEIGHT, FRAME_X_XIM, FRAME_X_XIM_STYLES)
3381 (FRAME_XIC_STYLE, FRAME_XIC_FONTSET): New macros.
3382 (FRAME_XIM): Removed.
3383
3384 * xfns.c (supported_styles): New variable.
3385 (DEFAULT_STYLE, DEFAULT_FONT): New macros
3386 (xic_create_xfontset, best_style, xic_create_frame)
3387 (xic_destroy_frame, xic_set_preeditarea, xic_set_statusarea)
3388 (xic_set_xfontset): New functions.
3389
142e109c
DL
33902000-01-28 Dave Love <fx@gnu.org>
3391
3392 * s/irix6-5.h: Revert last change after change to irix5-0.h.
3393
3394 * m/iris4d.h (C_SWITCH_MACHINE): Don't use -G0.
3395
b02786f9
GM
33962000-01-28 Gerd Moellmann <gerd@gnu.org>
3397
d060bc9f
GM
3398 * buffer.c (Fother_buffer): Don't call Fset_buffer_major_mode
3399 for *scratch* if it already existed.
3400
b02786f9
GM
3401 * emacs.c (USAGE): New macro.
3402 (main): Use it to display usage information.
3403
2c52d7e4
EZ
34042000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
3405
3406 Support for the menu-help feature:
3407
3408 * msdos.h: Change prototypes of XMenuAddSelection and
3409 XMenuActivate.
3410
3411 * msdos.c (IT_clear_end_of_line): Print the extent of the cleared
3412 part of the line to the termscript file.
3413 (IT_clear_to_end): Clear the entire line, not just its beginning.
3414 (menu_help_message, prev_menu_help_message): New variables.
3415 (IT_menu_make_room): Make room for the help_text member.
3416 (IT_menu_display): New argument disp_help; all callers changed.
3417 If disp_help is non-zero, store the help text of the active menu
3418 item in menu_help_message.
3419 (XMenuAddPane): Initialize the help_text member to NULL.
3420 (XMenuAddSelection): New argument help_text. Store it in the
3421 XMenu structure.
3422 (XMenuActivate): New argument help_callback. If the value of
3423 menu_help_message has changed since the last time, display the
3424 menu help message text while waiting for the mouse to move. Clear
3425 the echo area before exiting.
3426 (XMenuDestroy): Free the help_text member.
3427
ffe0bcd1
GM
34282000-01-27 Gerd Moellmann <gerd@gnu.org>
3429
3430 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT]: Pass help to
3431 XMenuAddSelection. Pass help callback to XMenuActivate.
3432 (menu_help_callback) [!USE_X_TOOLKIT]: New function.
3433
50dbd23f
EZ
34342000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
3435
3436 * atimer.c (start_atimer) [!HAVE_SETITIMER]: Use EMACS_SET_SECS
3437 and EMACS_SET_USECS.
3438
f5941bf8
GM
34392000-01-26 Dave Love <fx@gnu.org>
3440
6c67ddee
DL
3441 * editfns.c (Fchar_after, Fchar_before): Doc fix.
3442
f5941bf8
GM
3443 * bytecode.c (Fbyte_code): Use {BEFORE,AFTER}_POTENTIAL_GC where
3444 an error may be signalled.
3445
9e49c990
GM
34462000-01-26 Gerd Moellmann <gerd@gnu.org>
3447
fc3cb460
GM
3448 * s/irix6-5.h [__GNUC__ && __GNUC_MINOR__ >= 95]: Undef
3449 LD_SWITCH_SYSTEM inherited from irix5-0.h.
3450
9e49c990
GM
3451 * bytecode.c (Fbyte_code) [BYTE_CODE_SAFE]: Fix typo.
3452
d0c037d8
GM
34532000-01-25 Gerd Moellmann <gerd@gnu.org>
3454
3455 * charset.c (Fstring): If there is a multibyte char among
3456 the args, always return a multibyte string.
3457
e12489f9
GM
34582000-01-25 Gerd Moellmann <gerd@gnu.org>
3459
3460 * sysdep.c (sys_select): Turn atimers off and on instead of
3461 recording and restoring old alarm handler
3462
3463 * process.c (toplevel): Include atimer.h.
3464 (create_process_1): Rewritten.
3465 (create_process): Use atimers instead of alarm.
3466 (wait_reading_process_input) [hpux]: Turn atimers off instead
3467 of turning off SIGALRM.
3468 (wait_reading_process_input): Turn off atimers instead off
3469 calling stop_polling.
3470
3471 * emacs.c (main): Call init_atimer.
3472
3473 * keyboard.c (toplevel): Include systime.h and atimer.h.
3474 (polling_for_input): Removed because unused.
3475 (input_poll_signal) [POLL_FOR_INPUT]: Removed.
3476 (poll_timer): New variable.
3477 (poll_for_input, poll_for_input_1): New functions.
3478 (start_polling, stop_polling): Rewritten.
3479
3480 * keyboard.h (polling_for_input): Removed.
3481
3482 * atimer.h, atimer.c: New files.
3483
3484 * Makefile.in (obj): Add atimer.o.
3485 (atimer.o): New target.
3486
3487 * blockinput.h (pending_atimers): Add extern declaration.
3488 (UNBLOCK_INPUT): Rewritten. Handle pending atimers.
3489
3490 * lisp.h (popup_activated_flag): Add extern declaration.
3491
3492 * xmenu.c (popup_activated_flag): Make externally visible.
3493 (popup_activate_callback) [USE_MOTIF]: Increment
3494 popup_activated_flag.
3495 (popup_deactivate_callback) [USE_MOTIF]: Decrement it.
3496
3497 * xterm.c (toplevel): Include atimer.h.
3498 (toolkit_scroll_bar_interaction): New variable.
3499 (Fxt_process_timeouts): Removed.
3500 (x_process_timeouts): New function.
3501 (xt_action_hook): Clear toolkit_scroll_bar_interaction.
3502 (x_send_scroll_bar_event): Set toolkit_scroll_bar_interaction.
3503 (x_make_frame_visible): Call poll_for_input_1 instead of
3504 input_poll_signal. Don't call alarm.
3505 (x_initialize): Install timer calling x_process_timeouts.
3506
1e5279b9
DL
35072000-01-24 Dave Love <fx@gnu.org>
3508
6c67ddee 3509 * s/irix5-0.h: Don't set LD_SWITCH_SYSTEM -- we use unexelf now.
1e5279b9
DL
3510 Don't use -cckr -- apparently not now necessary.
3511
edf6aeb8
EZ
35122000-01-24 Eli Zaretskii <eliz@is.elta.co.il>
3513
3514 * msdos.c (IT_menu_display): Truncate long menu lines at the right
3515 screen boundary.
3516
9badad41
JR
35172000-01-23 Jason Rumney <jasonr@gnu.org>
3518
3519 * w32fns.c (w32_defined_color): Apply gamma correction before
3520 trying to map to the palette.
3521 (w32_wnd_proc) [WM_ERASE_BACKGROUND]: Pass device context of frame
3522 to w32_clear_rect.
3523
3524 * w32term.c (w32_fill_rect): Do not try to deal with NULL hdc
3525 here. Callers changed to always pass real device context.
3526 (w32_draw_bitmap): Likewise.
3527 (w32_get_glyph_overhangs): Likewise.
3528 (w32_draw_box_rect): Make use of s->hdc rather than getting a new
3529 one.
3530 (w32_set_vertical_scroll_bar): Pass correct HWND parameters to
3531 pfnSetScrollInfo and SetScrollRange.
3532 (x_get_char_face_and_encoding): Don't turn iso8859-1 characters
3533 back into MULE characters after decoding them.
3534 (x_get_glyph_face_and_encoding): Likewise.
3535 (w32_per_char_metric): Use GetCharExtentPoint32W as fallback when
3536 GetCharABCWidthsW fails, since this is defined on Windows 9x.
3537 (x_produce_glyphs): Calculate per char metrics for a character
3538 that we know exists in default font when font_not_found_p is true.
3539
63bd786b
JR
35402000-01-22 Jason Rumney <jasonr@gnu.org>
3541
3542 * makefile.nt (intervals.obj, composite.obj): New modules.
3543 (composite.h): Added as dependency where appropriate.
3544
3545 * w32gui.h (XGCValue): New struct for emulating X GCs.
3546
3547 * w32term.h (XCharStruct): New struct for emulating X.
3548
3549 * w32console.c (turn_on_face, turn_off_face): New functions.
3550 (change_line_highlight): New prototype for new redisplay.
3551 (write_glyphs): Support multibyte text. Support faces.
3552
3553 * w32faces.c: Complete rewrite for new redisplay based on new
3554 xfaces.c.
3555
3556 * w32fns.c: Use SELECTED_FRAME macro in place of selected_frame
3557 throughout. struct frame * in place of FRAME_PTR.
3558 Skeleton support for images, toolbars, tooltips from xfns.c.
3559 (Fx_create_frame): Use system default for default scroll bar
3560 width.
3561 (w32_get_arg): Renamed from x_get_arg.
3562 (Fx_file_dialog): New function.
3563 (w32_list_fonts): Check cache before asking system.
3564 (Vw32_enable_synthesized_fonts): New variable.
3565 (Vw32_enable_italics): Obsolete, removed.
3566
3567 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
3568 Use SELECTED_FRAME macro.
3569
3570 * w32menu.c: Add skeleton support for help strings on menus.
3571 (add_menu_item): Native checkbox and radio support added, but not
3572 yet enabled due to bugs.
3573 (push_menu_item): Add parameters type, selection and help.
3574 Callers updated.
3575 Formatting changes to reduce unnecessary diffs with xmenu.c.
3576
3577 * w32select.c (Fw32_set_clipboard_data): Update call to
3578 find_charset_in_str.
3579
3580 * w32term.c: Complete rewrite for new redisplay based on new
3581 xterm.c with necessary sections merged back in from old w32term.c.
3582
6ffd3cf7 35832000-01-21 Richard M. Stallman <rms@gnu.org>
b50c9214
RS
3584
3585 * data.c (set_internal): Further fix in same criterion.
3586
6ffd3cf7 35872000-01-20 Richard M. Stallman <rms@gnu.org>
8cc95642
RS
3588
3589 * data.c (set_internal): Fix the criteria for whether
3590 to swap out the old cached binding.
3591
60af03f1
DL
35922000-01-19 Dave Love <fx@gnu.org>
3593
3594 * lread.c: (syms_of_lread) [user-init-file]: Doc change.
3595
f9be074f
KH
35962000-01-18 Kenichi Handa <handa@etl.go.jp>
3597
3598 * regex.c (re_compile_fastmap): While checking a range table for
3599 `charset', skip flag bits for a character class correctly.
3600
52b8dbf9
GM
36012000-01-17 Gerd Moellmann <gerd@gnu.org>
3602
d36100c9
GM
3603 * m/news-risc.h (LD_SWITCH_MACHINE): Define differently for GCC.
3604
52b8dbf9
GM
3605 * xfns.c (x_window): Call lw_create_widget with new parameter
3606 list.
3607
3608 * widget.c (EmacsFrameSetCharSize): Change size of children first
3609 because of problems with main window geometry management under
3610 Lesstif.
3611
3612 * xmenu.c (enum menu_item_idx): New enumeration replacing defines
3613 MENU_ITEMS_ITEM_.*.
3614 (MENU_ITEMS_ITEM_HELP): New enumerator.
3615 (push_menu_item): Add parameter HELP. Record help in menu_items.
3616 (single_menu_item, single_submenu, list_of_items): Call
3617 push_menu_item with new parameter.
3618 (single_submenu): Set help string in widget value.
3619 (menu_highlight_callback): New function.
3620 (set_frame_menubar): Call lw_create_widget with new
3621 parameter list.
3622 (xmenu_show, xdialog_show): Ditto.
3623
3139018f
GM
36242000-01-13 Gerd Moellmann <gerd@gnu.org>
3625
3626 * sound.c (Fplay_sound): Improve doc string.
3627
83c8f461
RS
36282000-01-11 Richard M. Stallman <rms@gnu.org>
3629
3630 * lisp.h (set_internal): Enter the new arg.
3631
3632 * eval.c (specbind): Record buffer-local variables specially,
3633 indicating which buffer's binding was saved.
3634 (unbind_to): Restore buffer-local variables specially
3635 in the proper buffer.
3636
3637 * data.c (set_internal): New arg BUF.
3638
3639 * eval.c (specbind, unbind_to): Pass new arg to set_internal.
3640 * data.c (Fset): Pass new arg to set_internal.
3641 * bytecode.c (Fbyte_code): Pass new arg to set_internal.
3642
1fab1775
GM
36432000-01-11 Gerd Moellmann <gerd@gnu.org>
3644
3645 * .gdbinit: Adapt to new strings. Add xbacktrace, xreload,
3646 xprintsym.
3647
83c8f461 36482000-01-11 Richard M. Stallman <rms@gnu.org>
6f59462e
RS
3649
3650 * minibuf.c (Ftry_completion): Doc fix.
3651
7a85e4df
GM
36522000-01-11 Gerd Moellmann <gerd@gnu.org>
3653
3654 * keyboard.c (Fclear_this_command_keys): Clear recent_keys
3655 vector, too.
3656
a970dae4
AS
36572000-01-11 Andreas Schwab <schwab@suse.de>
3658
3659 * coding.c (code_convert_region): Initialize total_skip.
3660
c65d14ee
DL
36612000-01-08 Dave Love <fx@gnu.org>
3662
3663 * eval.c (Fuser_variable_p): Check customizability too.
3664
834938d2
GM
36652000-01-07 Gerd Moellmann <gerd@gnu.org>
3666
3667 * minibuf.c (Fcompleting_read): Doc fix.
3668
e0303cd6
GM
36692000-01-05 Gerd Moellmann <gerd@gnu.org>
3670
8a26744b
GM
3671 * s/freebsd.h (C_SWITCH_SYSTEM): Add -I /usr/local/include and
3672 -L /usr/local/lib.
3673
e0303cd6
GM
3674 * xfns.c (x_create_im): New function to set IM and IC of a frame.
3675 Check that input style is supported before trying to create an
3676 IC for it.
3677 (x_window): Call x_create_im.
3678
2e471eb5
GM
36792000-01-04 Gerd Moellmann <gerd@gnu.org>
3680
560a7bd2
GM
3681 * xfns.c (current_gif_memory_src): New variable.
3682 (gif_load): Record the address of the current memory source
3683 in current_gif_memory_src.
3684 (gif_read_from_memory): Use current_gif_memory_src.
3685
f9ee84a3
GM
3686 * systime.h (EMACS_GET_TIME, EMACS_ADD_TIME, EMACS_SUB_TIME): Give
3687 macros statement form.
3688
d1299cde
GM
3689 * sound.c (struct sound): Renamed from struct sound_file.
3690 (struct sound): Add members `data' and `header_size'.
3691 (enum sound_attr): Add SOUND_DATA.
3692 (current_sound, current_sound_device): Variables renamed from
3693 sound_file and sound_device.
3694 (parse_sound): Parse :data.
3695 (parse_sound): Handle sound data in strings.
3696 (find_sound_type): Function renamed from find_sound_file_type.
3697 (wav_init, au_init): Fail if sound's header_size is smaller than
3698 needed header size.
3699 (wav_play, au_play): Play sounds from string data.
3700
2e471eb5
GM
3701 * puresize.h (BASE_PURE_SIZE): Increase to 600000.
3702
3703 * lisp.h: Add prototype for allocate_string_data.
3704
3705 * alloc.c (Fgarbage_collect): Return number of live and free
3706 strings.
3707
3708 * alloc.c (mark_buffer): Remove code in #if 0.
3709 (gc_sweep): Ditto.
3710 (UNMARK_BALANCE_INTERVALS): Give the macro statement form.
3711 (strings_consed): New variable.
3712 (allocate_string): Set it.
3713 (syms_of_alloc): Add DEFVAR_INT for strings_consed.
3714 (Fmemory_use_counts): Return strings_consed. Use Flist.
3715
3716 * alloc.c: General cleanup in comments etc. Remove conditional
3717 compilation for `standalone'.
3718
3719 * lisp.h (struct Lisp_String): Make DATA member `unsigned char *'.
3720
3721 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P):
3722 (GC_STRING_BYTES, GC_STRING_CHARS): New macros.
3723 (DONT_COPY_FLAG): Removed.
3724 (SBLOCK_SIZE, LARGE_STRING_BYTES): New macros.
3725 (struct sdata, struct sblock): New
3726 (struct string_block): Rewritten.
3727 (STRINGS_IN_STRING_BLOCK): New macro.
3728 (oldest_sblock, current_sblock, total_strings, total_free_strings)
3729 (large_sblocks, string_blocks, string_free_list): New variables.
3730 (NEXT_FREE_LISP_STRING, SDATA_OF_STRING, SDATA_SIZE): New macros.
3731 (init_strings): Rewritten.
3732 (allocate_string, allocate_string_data, compact_small_strings)
3733 (free_large_strings, sweep_strings): New functions.
3734 (STRING_BLOCK_SIZE, STRING_BLOCK_OUTSIZE)
3735 (struct string_block_head, current_string_block)
3736 (first_string_block, large_string_blocks, STRING_FULLSIZE)
3737 (STRING_PAD): Removed.
3738 (make_uninit_multibyte_string, make_pure_string): Rewritten.
3739 (Fgarbage_collect): Don't set mark bit in large strings.
3740 (mark_object): Mark strings differently. Mark symbol names
3741 differently.
3742 (survives_gc_p): Test marked strings differently.
3743 (gc_sweep): Sweep strings differently, unmark strings in
3744 symbol names.
3745 (compact_strings): Removed.
3746
42608ba8
EZ
37472000-01-04 Eli Zaretskii <eliz@is.elta.co.il>
3748
3749 * xfaces.c (syms_of_xfaces): defsubr Scolor_gray_p and
3750 Scolor_supported_p even if HAVE_X_WINDOWS is not defined.
3751
e0a09e1a
KH
37522000-01-04 Kenichi Handa <handa@etl.go.jp>
3753
dd9f0750
KH
3754 * fileio.c (Finsert_file_contents): Signal error if visiting file
3755 in a non-empty buffer.
3756
3c0f3b15 3757 * term.c (encode_terminal_code): Fix the previous change.
e0a09e1a 3758
44cd3ae5
GM
37592000-01-03 Gerd Moellmann <gerd@gnu.org>
3760
3761 * xfaces.c (syms_of_xfaces): Change Sface_color_gray_p to
3762 Scolor_gray_p, Sface_color_supported_p to Scolor_supported_p.
3763
3764 * s/hpux9.h (NO_EDITRES): Define even if HAVE_LIBXMU.
3765
c182a70f
EZ
37662000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
3767
3768 * xdisp.c (handle_single_display_prop) [HAVE_WINDOW_SYSTEM]: No
3769 need to test for MSDOS frames.
3770
24480d5b
EZ
37712000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
3772
3773 * dosfns.c (unspecified_colors): Remove.
3774 (msdos_stdcolor_idx): Use global variables unspecified_fg and
3775 unspecified_bg.
3776 (msdos_stdcolor_name): Return strings for unspecified fore- and
3777 back-ground colors.
3778
3779 * xfaces.c (Qunspecified_fg, Qunspecified_bg): Remove.
aaf2320c 3780 (syms_of_xfaces): Remove their staticpro's.
24480d5b
EZ
3781 (tty_color_name): Return Lisp strings for unspecified fore- and
3782 back-ground colors.
3783 (Finternal_set_lisp_face_attribute): Remove the special treatment
3784 for Qunspecified_{f,b}g.
3785 (realize_default_face): Replace Qunspecified_{f,b}g with a Lisp
3786 string.
3787
047f434a
GM
37882000-01-03 Gerd Moellmann <gerd@gnu.org>
3789
3790 * xdisp.c (reseat_at_next_visible_line_start): Position before
3791 newline only if ending up on a newline.
3792 (next_element_from_ellipsis): Return success. Handle case of
3793 displaying no ellipsis. Fix case of ellipsis defined in display
3794 table.
3795 (next_element_from_buffer): Return 0 if next_element_from_ellipsis
3796 returns 0.
3797
d684c676
EZ
37982000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
3799
3800 * xfaces.c (Fcolor_gray_p): Renamed from face-color-gray-p.
3801 (Fcolor_supported_p): Renamed from face-color-supported-p.
3802
5fe1d139
EZ
38032000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
3804
3805 * xfaces.c (tty_defined_color): Pass frame to tty-color-desc. The
3806 list of colors renamed to tty-defined-color-alist.
3807 (tty_color_name): Pass the frame to tty-color-by-index.
3808 (realize_tty_face): tty-color-alist is now a function which
3809 accepts the frame as argument.
3810
3811 * term.c (Ftty_display_color_p): Accept an optional argument
3812 FRAME.
3813
816be8b8
EZ
38142000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
3815
3816 * term.c (insert_glyphs): Pass glyph, not &glyph, to
3817 encode_terminal_code.
3818
b635321e
EZ
38192000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
3820
3821 * dispnew.c (mode_line_string): Support termcap frames as well.
3822
9b784e96
GM
38232000-01-01 Gerd Moellmann <gerd@gnu.org>
3824
27189709
GM
3825 * syntax.c (Fforward_word): Undo previous change.
3826
3827 * editfns.c (Fconstrain_to_field): Don't constrain if
3828 inhibit-field-text-motion is non-nil.
3829 (Fline_beginning_position): Undo previous change.
3830 (Fline_end_position): Ditto.
3831
3832 * syntax.c (Fforward_word): Notice field boundaries only if
3833 inhibit-field-text-motion is nil.
3834
3835 * lisp.h: Add extern declaration for Vinhibit_field_text_motion.
3836
3837 * editfns.c (Vinhibit_field_text_motion): New variable.
3838 (inhibit-field-text-motion): New DEFVAR_LISP.
3839 (Fline_beginning_position, Fline_end_position): Notice field
3840 boundaries only if inhibit-field-text-motion is nil.
3841
45158a91
GM
3842 * xfns.c (x_create_x_image_and_pixmap): Remove parameter FILE.
3843 All calls adjusted.
3844 (x_build_heuristic_mask): Likewise.
3845 (xbm_load_image_from_file): Change error output.
3846 (xbm_load, xpm_load, pbm_load, png_load, jpeg_load, tiff_load)
3847 (gif_load, gs_load, x_kill_gs_process): Ditto.
3848
9b784e96
GM
3849 * xfns.c (gif_load): Avoid sign extension and thus out of bounds
3850 color indices when accessing raster pixels.
63cec32f
GM
3851 (gif_image_p, png_image_p, jpeg_image_p, tiff_image_p): Allow only
3852 one of :file or :data.
3853 (enum pbm_keyword_index): Add PBM_DATA.
3854 (pbm_format): Add :data.
3855 (pbm_image_p): Allow either :file or :data.
3856 (pbm_read_file): New function.
3857 (pbm_scan_number): Rewritten to read from string.
3858 (pbm_load): Support :data.
9b784e96 3859
5ad6a5fb
GM
38601999-12-31 Gerd Moellmann <gerd@gnu.org>
3861
3862 * xfns.c: New image functions adapted to Emacs conventions.
3863 (png_load, tiff_load, jpeg_load, gif_load): Always GCPRO local
3864 variable `file'.
3865
63448a4d
WP
38661999-12-31 William M. Perry <wmperry@aventail.com>
3867
3868 * xfns.c (jpeg_format): Added the :data keyword
3869 (jpeg_image_p): JPEG is valid with :file _or_ :data
3870 (jpeg_memory_src): Defined new JPEG image source to read from a
3871 memory buffer.
3872 (jpeg_load): Pay attention to the :data keyword if specified.
3873 Instantiates a jpeg_memory_src instead of jpeg_stdio_src if
3874 found.
3875 (png_format): Added the :data keyword
3876 (png_image_p): PNG is valid with :file _or_ :data
3877 (png_read_from_memory): New PNG read function to read from a
3878 memory buffer.
3879 (png_load): Pay attention to the :data keyword if specified. Uses
3880 png_set_read_fn() instead of png_init_io() if specified.
3881 (tiff_format): Added the :data keyword for TIFF images.
3882 (tiff_image_p): TIFF is valid with :file _or_ :data
3883 (tiff_read_from_memory): Defined new TIFF I/O functions to read
3884 from a memory buffer.
3885 (tiff_load): Pay attention to the :data keyword if specified.
3886 Uses TIFFClientOpen() instead of TIFFOpen() if specified.
3887 (gif_format): Added the :data keyword
3888 (gif_image_p): GIF is valid with :file _or_ :data
3889 (gif_read_from_memory): New GIF input function to read from a
3890 memory buffer.
c65d14ee 3891 (gif_load): Pay attention to the :data keyword. Uses DGifOpen()
63448a4d
WP
3892 instead of DGifOpenFileName() if specified.
3893
c880678e
GM
38941999-12-31 Gerd Moellmann <gerd@gnu.org>
3895
3896 * xdisp.c (next_element_from_buffer): Change assertion at the end
3897 because it doesn't hold when there's an overlay string at the end
3898 from which we deliver an image.
3899
8ccb9a54
EZ
39001999-12-30 Eli Zaretskii <eliz@is.elta.co.il>
3901
3902 * msdos.c (IT_update_begin): Don't dereference members of struct
3903 window for deleted windows.
3904
12ce2351
GM
39051999-12-30 Gerd Moellmann <gerd@gnu.org>
3906
a915c648
GM
3907 * abbrev.c (Fexpand_abbrev): If expanding an abbrev which has only
3908 a hook, and the hook has a non-nil `no-self-insert' property, let
3909 the return value of the hook specify whether an expansion took
3910 place. If it returns nil, no expansion has been performed.
3911
12ce2351
GM
3912 * xterm.c (x_make_frame_visible): Wait for frame becoming visible
3913 differently.
3914
04ee4f45
EZ
39151999-12-30 Eli Zaretskii <eliz@is.elta.co.il>
3916
3917 * msdos.c (IT_write_glyphs): Track last changes to struct glyph.
3918
7f4bc0c3
EZ
39191999-12-29 Eli Zaretskii <eliz@is.elta.co.il>
3920
3921 * dispnew.c (mode_line_string): Support MS-DOS frames.
3922
dac204bc
GM
39231999-12-29 Gerd Moellmann <gerd@gnu.org>
3924
3925 * eval.c (syms_of_eval): Initialize debugger_may_continue.
3926
7b712ad8
KH
39271999-12-29 Kenichi Handa <handa@etl.go.jp>
3928
3929 * process.c (read_process_output): Fix the args CHARPOS and LENINS
3930 to signal_after_change.
3931
adb9900f
EZ
39321999-12-28 Eli Zaretskii <eliz@is.elta.co.il>
3933
41ad069b
EZ
3934 * msdos.c (dos_set_window_size) [__DJGPP__ > 1]: If the frame
3935 dimensions changed, invalidate the mouse highlight info.
3936 (disable_mouse_highlight, help_echo, previous_help_echo): New
3937 variables.
3938 (IT_set_mouse_pointer, show_mouse_face, clear_mouse_face)
3939 (fast_find_position, IT_note_mode_line_highlight)
3940 (IT_note_mouse_highlight): New functions.
3941 (IT_update_begin): If the redisplay affects the window where the
3942 mouse highlight is, clear the highlight. If the frame where the
3943 highlight was displayed was killed, invalidate the highlight
3944 info.
3945 (IT_update_end): Reset the highlight flag. Reset the mouse
3946 highlight-defer flag.
3947 (IT_frame_up_to_date): New function, if mouse highlight was
3948 deferred due to GC, do it now.
3949 (internal_terminal_init): Initialize mouse-highlight related
3950 members of the_only_x_display. Assign IT_frame_up_to_date to
3951 frame_up_to_date_hook.
3952 (dos_rawgetc): If the mouse moved, update mouse highlight. If
3953 help_echo changed value, generate a HELP_EVENT event.
3954 (syms_of_msdos): Staticpro help_echo and previous_help_echo.
3955
adb9900f
EZ
3956 * msdos.h (struct display_info): New.
3957 (struct x_output): Add the display_info member.
3958 (FRAME_X_DISPLAY_INFO): New macro.
3959
481b5054
GM
39601999-12-28 Gerd Moellmann <gerd@gnu.org>
3961
3962 * xdisp.c (try_window_id): Compute BEG_UNCHANGED and END_UNCHANGED
3963 if MODIFF > 1.
6448a6b3 3964 (dump_glyph_row): Adapt to changes in struct glyph.
481b5054
GM
3965
3966 * buffer.c (modify_overlay): Always compute unchanged info.
3967
a2882b0d
KH
39681999-12-27 Kenichi Handa <handa@etl.go.jp>
3969
3970 * dispextern.h (FACE_FROM_ID): Cast the arg ID to `unsigned'.
3971
89ba5b5f
KH
39721999-12-27 Kenichi Handa <handa@etl.go.jp>
3973
3974 The following changes are to use more bits for face IDs.
3975
3976 * lisp.h (GLYPH): Defined as `int', not `unsigned int'. Now the
3977 lowest 8 bits are single byte character code, the bits above are
3978 face ID.
481b5054 3979 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjusted for the change
89ba5b5f 3980 above.
481b5054
GM
3981 (FAST_MAKE_GLYPH, FSST_GLYPH_FACE): Likewise.
3982 (GLYPH_MASK_REV_DIR, GLYPH_MASK_PADDING): Macros deleted.
89ba5b5f
KH
3983
3984 * charset.h (CHAR_BYTES): Use ((1 << CHARACTERBITS) - 1) instead
3985 of GLYPH_MASK_CHAR.
3986
3987 * charset.c (char_bytes): Use ((1 << CHARACTERBITS) - 1) instead
3988 of GLYPH_MASK_CHAR.
3989
3990 * dispextern.h (struct glyph): Make face_id and padding_p the top
3991 level members. Change members in union `u'.
3992 (GLYPH_EQUAL_P): Check also members face_id and padding_p.
3993 (GLYPH_CHAR_AND_FACE_EQUAL_P): New macro.
3994 (SET_CHAR_GLYPH): Adjusted for the change of struct glyph.
3995 (CHAR_GLYPH_PADDING_P): Likewise.
3996 (GLYPH_FROM_CHAR_GLYPH): Likewise. Always return -1 for multibyte
3997 characters.
3998
481b5054 3999 * dispnew.c (line_hash_code, direct_output_for_insert): Adjusted
89ba5b5f
KH
4000 for the change of struct glyph.
4001 (line_draw_cost): Adjusted for the change of
4002 GLYPH_FROM_CHAR_GLYPH.
4003 (count_match): Use macro GLYPH_CHAR_AND_FACE_EQUAL_P.
4004
4005 * term.c (encode_terminal_code): Adjusted for the change of struct
4006 glyph and GLYPH_FROM_CHAR_GLYPH.
481b5054 4007 (write_glyphs, insert_glyphs, append_glyph): Adjusted for the
89ba5b5f
KH
4008 change of struct glyph.
4009
4010 * xdisp.c: All codes adjusted for the change of struct glyph.
4011
4012 * xterm.c: All codes adjusted for the change of struct glyph.
4013
5bcd116c
KH
40141999-12-27 Kenichi Handa <handa@etl.go.jp>
4015
4016 * composite.h (struct composition): Change the order of declaring
4017 members to reduce the byte size of the structure.
4018
f21b06b7
GM
40191999-12-25 Gerd Moellmann <gerd@gnu.org>
4020
4021 * search.c (looking_at_1): Reset immediate_quit before modifying
4022 global data.
4023
e36557c9
KH
40241999-12-24 Kenichi Handa <handa@etl.go.jp>
4025
4026 * process.c (read_process_output): Fix the arg FROM to
4027 update_compositions.
4028
83c8f461 40291999-12-22 Richard M. Stallman <rms@gnu.org>
f7c9e039
RS
4030
4031 * search.c (Freplace_match): For nonliteral replacement in buffer,
4032 construct all the new text first, then insert all at once.
4033
0b863bd9
DL
40341999-12-22 Dave Love <fx@gnu.org>
4035
4036 * xfns.c (Fx_show_tip): Gcpro `timeout' too.
4037
6d8e8ef3
GM
40381999-12-22 Gerd Moellmann <gerd@gnu.org>
4039
28d7281d
GM
4040 * xfns.c (Fx_create_frame): Move x_default_parameter calls that
4041 lead to size changes to after the X window has been created.
4042
e22ef6eb 4043 * xfaces.c (realize_x_face): Don't use uninitialized local
6d8e8ef3
GM
4044 variable in xassert.
4045
8affcced
KH
40461999-12-22 Kenichi Handa <handa@etl.go.jp>
4047
4048 * xfaces.c (face_color_supported_p): Check by tty_defined_color
6d8e8ef3 4049 only when the frame is not for a window system.
8affcced 4050
f2be1146
GM
40511999-12-22 Gerd Moellmann <gerd@gnu.org>
4052
deca1348
GM
4053 * buffer.c (Fset_buffer_multibyte): Arrange for a thorough
4054 redisplay after changing the multibyteness of a buffer.
4055
f2be1146
GM
4056 * xterm.c (XTread_socket): At the beginning of the loop, pass the
4057 frame's X window to XFilterEvent instead of None because that's
4058 the X window for which the IC was created. This makes dead
4059 accents work when the pointer is not in Emacs' frame.
4060 (XTread_socket) <KeyPress>: Don't call XFilterEvent here.
4061
a744a2ec
DL
40621999-12-20 Dave Love <fx@gnu.org>
4063
4064 * xfns.c (Fx_show_tip): Add missing UNGCPRO.
4065
9e6985ed
GM
40661999-12-19 Gerd Moellmann <gerd@gnu.org>
4067
4068 * eval.c (debugger_may_continue): New variable.
4069 (syms_of_eval): Add a DEFVAR_BOOL for it.
4070 (call_debugger): Bind it.
4071
3b620731
EZ
40721999-12-19 Eli Zaretskii <eliz@is.elta.co.il>
4073
4074 * msdos.c (IT_set_face): Don't swap face colors when highlight or
4075 fp->tty_reverse_p is set, unless the computed colors are identical
4076 to frame colors. Print both original and computed colors to
4077 termscript file.
4078 (IT_write_glyphs): Track the changes in handling of composite
4079 characters.
4080 (IT_set_frame_parameters): Don't set frame colors from
4081 unspecified-fg and unspecified-bg pseudo-colors.
4082
0f9a51c4
DL
40831999-12-17 Dave Love <fx@gnu.org>
4084
4085 * data.c (Fkeywordp): New function.
4086 (syms_of_data): Install it.
4087
363e4e42
EZ
40881999-12-16 Eli Zaretskii <eliz@is.elta.co.il>
4089
4090 * xfaces.c (tty_defined_color): Fix last change.
4091
cfad01b4
GM
40921999-12-15 Gerd Moellmann <gerd@gnu.org>
4093
4094 * xdisp.c (redisplay_window) <optional new window start>: Check
4095 that window start is in [BEGV..ZV].
4096
f9d2fdc4
EZ
40971999-12-15 Eli Zaretskii <eliz@is.elta.co.il>
4098
4099 * dispextern.h (FACE_TTY_DEFAULT_FG_COLOR)
4100 (FACE_TTY_DEFAULT_BG_COLOR): New macros.
4101
4102 * xfaces.c (Qunspecified_fg, Qunspecified_bg): New variables.
4103 (syms_of_xfaces): Initialize and staticpro them.
4104 (tty_defined_color): If the color name is unspecified-fg or
4105 unspecified-bg, return FACE_TTY_DEFAULT_FG_COLOR and
4106 FACE_TTY_DEFAULT_BG_COLOR, respectively, as the pixel value.
4107 (tty_color_name): If the color pixel value is either
4108 FACE_TTY_DEFAULT_FG_COLOR or FACE_TTY_DEFAULT_BG_COLOR, return
4109 Qunspecified_fg or Qunspecified_bg, respectively.
4110 (Finternal_set_lisp_face_attribute): Allow values Qunspecified_fg
4111 and Qunspecified_bg for foreground and background colors.
4112 (realize_default_face): If the foreground and background colors
4113 are not specified, default to Qunspecified_fg and Qunspecified_bg.
4114 (realize_tty_face): By default, set the face colors to
4115 FACE_TTY_DEFAULT_FG_COLOR and FACE_TTY_DEFAULT_BG_COLOR.
4116 [MSDOS]: Handle FACE_TTY_DEFAULT_FG_COLOR and
4117 FACE_TTY_DEFAULT_BG_COLOR when face colors are not defined.
4118 Reverse the colors if the default colors were reversed.
4119
4120 * dispnew.c (init_display): Initialize the frame pixels of the
4121 initial frame to FACE_TTY_DEFAULT_FG_COLOR and
4122 FACE_TTY_DEFAULT_BG_COLOR.
4123
4124 * term.c (turn_on_face): If the default fore- and background
4125 colors are reversed, enter inverse video mode. Don't send color
4126 escape sequences for unspecified foreground and background colors.
4127 (turn_off_face): Handle unspecified-fg and unspecified-bg colors.
4128
4129 * dosfns.c (unspecified_colors): New variable.
4130 (msdos_stdcolor_idx): Handle unspecified-fg and unspecified-bg
4131 color names, return FACE_TTY_DEFAULT_FG_COLOR and
4132 FACE_TTY_DEFAULT_BG_COLOR, respectively.
4133 (msdos_stdcolor_name): Handle FACE_TTY_DEFAULT_FG_COLOR and
4134 FACE_TTY_DEFAULT_BG_COLOR, return Qunspecified_fg and
4135 Qunspecified_bg, respectively.
4136
4137 * msdos.c (IT_set_face): Support FACE_TTY_DEFAULT_FG_COLOR and
4138 FACE_TTY_DEFAULT_BG_COLOR as pixel values.
4139
e19539f1
KH
41401999-12-15 Kenichi Handa <handa@etl.go.jp>
4141
4142 * coding.c (code_convert_region): Fix the secoding arg to
4143 update_compositions.
4144
5ec14d3c
KH
41451999-12-15 Kenichi Handa <handa@etl.go.jp>
4146
4147 The following changes are for the new composition mechanism. We
4148 have deleted `composition' charset and composite characters,
4149 instead introduced a special text property `composition'.
4150
4151 * Makefile.in (INTERVAL_SRC): Include composite.h.
4152 (INTERVAL_OBJ): Include composite.o.
4153 (SOME_MACHINE_OBJECTS): Include composite.o.
4154 (casefiddle.o) (dispnew.o) (indent.o) (process.o) (search.o)
4155 (syntax.o) (window.o) (xdisp.o) (xfaces.o) (xterm.o) (print.o):
4156 Depend on composite.h.
4157 (doc.o): Depend on charset.h.
4158 (keyboard.o) (textprop.o) (intervals.o): Depend on INTERVAL_SRC.
4159 (composite.o): New target.
4160
4161 * alloc.c (Fmake_string): Adjusted for the change of CHAR_STRING.
4162
4163 * callproc.c (Fcall_process): Call code_convert_string to encode
4164 arguments. Use CODING_REQUIRE_DECODING to check if the process
4165 output should be decoded.
4166
4167 * casefiddle.c: Include composite.h.
4168 (casify_object): Use MAX_MULTIBYTE_LENGTH to allocate memory for a
4169 multibyte character. Adjusted for the change of CHAR_STRING.
4170 (casify_region): Likewise. Call update_compositions.
4171
4172 * category.h (CATEGORY_SET): Delete codes for a composite
4173 character.
4174
4175 * category.c (word_boundary_p): Delete codes for a composite
4176 character.
4177 (Fmake_category_table): New function.
4178 (syms_of_category): Defsubr it.
4179
4180 * ccl.c (CCL_WRITE_CHAR): Adjusted for the change of CHAR_STRING.
4181 (ccl_driver): Delete codes for a composite character.
4182
4183 * charset.h: In this entry, just `Modified' means that codes for a
4184 composite character is deleted.
4185 (LEADING_CODE_COMPOSITION) (CHARSET_COMPOSITION)
4186 (charset_composition) (MIN_CHAR_COMPOSITION)
4187 (MAX_CHAR_COMPOSITION) (GENERIC_COMPOSITION_CHAR)
4188 (COMPOSITE_CHAR_P) (MAKE_COMPOSITE_CHAR) (COMPOSITE_CHAR_ID)
4189 (PARSE_COMPOSITE_SEQ) (PARSE_CHARACTER_SEQ): Deleted.
4190 (MAX_CHAR) (CHARSET_VALID_P) (CHARSET_DEFINED_P) (CHARSET_AT)
4191 (FIRST_CHARSET_AT) (SAME_CHARSET_P) (MAKE_NON_ASCII_CHAR)
4192 (PARSE_MULTIBYTE_SEQ) (SPLIT_NON_ASCII_CHAR) (CHAR_PRINTABLE_P):
4193 Modified.
4194 (SPLIT_STRING): Call split_string, not split_non_ascii_string.
4195 (CHAR_STRING): Delete WORKBUF argument. Call char_string, not
4196 non_ascii_char_to_string.
4197 (STRING_CHAR): Call string_to_char, not string_to_non_ascii_char.
4198 (STRING_CHAR_AND_LENGTH): Likewise.
4199 (FETCH_CHAR_ADVANCE): New macro.
4200 (MAX_COMPONENT_COUNT) (struct cmpchar_info): Deleted.
4201 (MAX_MULTIBYTE_LENGTH): New macro.
4202 (MAX_LENGTH_OF_MULTI_BYTE_FORM): Deleted.
4203 (find_charset_in_str): Argument adjusted.
4204 (CHAR_LEN): Modified.
4205
4206 * charset.c: In this entry, just `Modified' means that codes for a
4207 composite character is deleted.
4208 (Qcomposition) (leading_code_composition)
4209 (charset_composition) (min_composite_char) (cmpchar_table)
4210 (cmpchar_table_size) (n_cmpchars): Deleted.
4211 (SPLIT_COMPOSITE_SEQ): Deleted.
4212 (SPLIT_MULTIBYTE_SEQ): Modified.
4213 (char_to_string): Renamed from non_ascii_char_to_string.
4214 Modified.
4215 (string_to_char): Renamed from string_to_non_ascii_char.
4216 (split_string): Renamed from split_non_ascii_string.
4217 (char_printable_p) (Fsplit_char)
4218 (Ffind_charset_region) (Ffind_charset_string) (char_valid_p)
4219 (char_bytes) (Fchar_width) (strwidth): Modified.
4220 (find_charset_in_str): Argument CMPCHARP deleted. Modified.
4221 (Fstring): Adjusted for the change of CHAR_STRING. Modified.
4222 (hash_string) (CMPCHAR_HASH_TABLE_SIZE) (cmpchar_hash_table)
4223 (CMPCHAR_HASH_SIZE) (CMPCHAR_HASH_USED) (CMPCHAR_HASH_CMPCHAR_ID)
4224 (str_cmpchar_id) (cmpchar_component) (Fcmpcharp)
4225 (Fcmpchar_component) (Fcmpchar_cmp_rule) (Fcmpchar_cmp_rule_p)
4226 (Fcmpchar_cmp_count): Deleted.
4227 (Fcompose_string): Implemented by Emacs Lisp in composite.el.
4228 (init_charset_once): Modified.
4229 (syms_of_charset): Modified.
4230
4231 * cmds.c (internal_self_insert): Adjusted for the change of
4232 CHAR_STRING.
4233
4234 * coding.h (emacs_code_class_type): Delete the member
4235 EMACS_leading_code_composition.
4236 (COMPOSING_NO) (COMPOSING_WITH_RULE_HEAD) (COMPOSING_NO_RULE_HEAD)
4237 (COMPOSING_WITH_RULE_TAIL) (COMPOSING_NO_RULE_TAIL)
4238 (COMPOSING_WITH_RULE_RULE) (COMPOSING_HEAD_P)
4239 (COMPOSING_WITH_RULE_P): Macros deleted.
4240 (COMPOSITION_DATA_SIZE) (COMPOSITION_DATA_MAX_BUNCH_LENGTH): New
4241 macros.
4242 (struct composition_data): New structure.
4243 (CODING_FINISH_INSUFFICIENT_CMP): New macro.
4244 (struct coding_system): New members composition_rule_follows,
4245 cmp_data, cmp_data_start, cmp_data_index.
4246 (coding_save_composition) (coding_free_composition_data)
4247 (coding_adjust_composition_offset): Extern them.
4248
4249 * coding.c: Include composite.h.
4250 (DECODE_CHARACTER_ASCII): Don't handle composition here.
4251 (DECODE_CHARACTER_DIMENSION1): Likewise. Don't check the validity
4252 of multibyte code here.
4253 (DECODE_CHARACTER_DIMENSION2): Likewise.
4254 (detect_coding_emacs_mule): Change the case label from
4255 EMACS_leading_code_composition to 0x80.
4256 (detect_coding_iso2022): Handle new composition sequence.
4257 (DECODE_ISO_CHARACTER): Likewise.
4258 (check_composing_code): Deleted.
4259 (coding_allocate_composition_data): New function.
4260 (CODING_ADD_COMPOSITION_START) (CODING_ADD_COMPOSITION_END)
4261 (CODING_ADD_COMPOSITION_COMPONENT) (DECODE_COMPOSITION_START)
4262 (DECODE_COMPOSITION_END) (DECODE_COMPOSITION_RULE): New macros.
4263 (decode_coding_iso2022): Handle new composition sequence.
4264 (ENCODE_ISO_CHARACTER): Don't check composition here.
4265 (ENCODE_COMPOSITION_RULE) (ENCODE_COMPOSITION_START): New macros.
4266 (ENCODE_COMPOSITION_NO_RULE_START)
4267 (ENCODE_COMPOSITION_WITH_RULE_START): Deleted.
4268 (ENCODE_COMPOSITION_END): Handle new composition sequence.
4269 (ENCODE_COMPOSITION_FAKE_START): New macro.
4270 (encode_coding_iso2022): Handle new composition sequence.
4271 (ENCODE_SJIS_BIG5_CHARACTER): Delete superfluous `;' at the tail.
4272 (encode_coding_sjis_big5): Ignore composition.
4273 (setup_coding_system): Initialize new members of struct
4274 coding_system. Enable composition only when the coding system has
4275 `composition' property t.
4276 (coding_free_composition_data) (coding_adjust_composition_offset)
4277 (coding_save_composition) (coding_restore_composition): New
4278 functions.
4279 (code_convert_region): Call coding_save_composition for encoding
4280 and coding_allocate_composition_data for decoding. Don't skip
4281 ASCII characters if we handle composition on encoding. Call
4282 signal_after_change with Check_BORDER.
4283 (code_convert_string): Call coding_save_composition for encoding
4284 and coding_allocate_composition_data for decoding. Don't skip
4285 ASCII characters if we handle composition on encoding.
4286 (code_convert_string1): Set Vlast_coding_system_used after calling
4287 code_convert_string.
4288 (code_convert_string_norecord): Disable composition.
4289 (Fset_terminal_coding_system_internal): Likewise.
4290 (Fset_safe_terminal_coding_system_internal): Likewise.
4291 (Fset_keyboard_coding_system_internal): Likewise.
4292 (init_coding_once): Set emacs_code_class[0x80] to
4293 EMACS_invalid_code.
4294
4295 * composite.h: New file.
4296
4297 * composite.c: New file.
4298
4299 * data.c (Faref): Delete codes for a composite character..
4300 (Faset): Likewise. Adjusted for the change of CHAR_STRING.
4301
4302 * dispextern.h (enum glyph_type): New member COMPOSITE_GLYPH.
4303 (struct glyph): Add new sub-structure cmp to the union `u'.
4304 (enum display_element_type): New member IT_COMPOSITION.
4305 (enum prop_idx): New member COMPOSITION_PROP_IDX.
4306 (struct it): New members cmp_id, cmp_len.
4307
4308 * dispnew.c (direct_output_forward_char): Check point moving into
4309 or out of a composition. If so, give up direct method.
4310
4311 * doprnt.c (doprnt1): Adjusted for the change of CHAR_STRING.
4312
4313 * editfns.c (Fchar_to_string): Adjusted for the change of
4314 CHAR_STRING.
4315 (general_insert_function): Likewise.
4316 (Finsert_char): Likewise.
4317 (Fsubst_char_in_region): Likewise. Call update_compositions.
4318 (Ftranslate_region): Call update_compositions.
4319 (Ftranspose_regions): Call update_compositions.
4320
4321 * emacs.c (main): Call syms_of_composite.
4322
4323 * fileio.c (Fsubstitute_in_file_name): Adjusted for the change of
4324 CHAR_STRING.
4325 (Finsert_file_contents): Set Vlast_coding_system_used before
4326 calling signal_after_change. Call update_compositions if some
4327 texts are inserted..
4328 (Fwrite_region): Adjusted for the change of a_write and e_write.
4329 (a_write): Argument changed. Work based on character position,
4330 not byte position.
4331 (e_write): Argument changed. Handle new way of composition.
4332
4333 * fns.c (Flength): The length of char-table is MAX_CHAR.
4334 (concat): Adjusted for the change of CHAR_STRING.
4335 (Ffillarray): Adjusted for the change of CHAR_STRING.
4336 (Fset_char_table_default): Delete codes for a composite character.
4337 (hash_put): Return hash index.
4338
4339 * fontset.h (struct font_info): New member vertical_centering.
4340 (Vvertical_centering_font_regexp): Extern it.
4341
4342 * fontset.c (Vvertical_centering_font_regexp): New variable.
4343 (syms_of_fontset): Declare it as a Lisp variable and initialize.
4344 Set Vignore_relative_composition to nil.
4345 (fs_load_font): Initialize `vertical_centering' of struct
4346 font_info.
4347
4348 * indent.c (check_composition): New function.
4349 (MULTIBYTE_BYTES_WIDTH): Call STRING_CHAR_AND_LENGTH with
4350 MAX_MULTIBYTE_LENGTH, not MAX_LENGTH_OF_MULTI_BYTE_FORM.
4351 (current_column_1): Handle new way of composition.
4352 (Fmove_to_column): Likewise.
4353 (compute_motion): Likewise.
4354
4355 * insdel.c (copy_text): Adjusted for the change of CHAR_STRING.
4356 (insert_char): Likewise.
4357 (insert): Call update_compositions.
4358 (insert_and_inherit): Likewise.
4359 (insert_before_markers): Likewise.
4360 (insert_before_markers_and_inherit): Likewise.
4361 (insert_from_string): Likewise.
4362 (insert_from_string_before_markers): Likewise.
4363 (insert_from_buffer): Likewise.
4364 (replace_range): Likewise.
4365 (count_combining_composition): Deleted.
4366 (count_combining_before): Delete codes for a composite character.
4367 (count_combining_after): Likewise.
4368 (del_range_1): Call update_compositions.
4369 (del_range_byte): Likewise.
4370 (del_range_both): Likewise.
4371 (Fcombine_after_change_execute): Likewise.
4372
4373 * intervals.h: Include composite.h.
4374 (get_property_and_range): Extern it.
4375 (Vtext_property_default_nonsticky): Extern it.
4376
4377 * intervals.c (adjust_intervals_for_insertion): To check stickines
4378 of properties, pay attention to text-property-default-nonsticky.
4379 (merge_properties_sticky): Likewise.
4380 (get_property_and_range): New function.
4381
4382 * keyboard.c (Vdisable_point_adjustment): New variable.
4383 (Vglobal_disable_point_adjustment): New variable.
4384 (syms_of_keyboard): Declare them as Lisp variables.
4385 (command_loop_1): Check them and call adjust_point_for_property if
4386 necessary.
4387 (adjust_point_for_property): New function.
4388
4389 * keymap.c (push_key_description): Adjusted for the change of
4390 CHAR_STRING.
4391 (Ftext_char_description): Likewise.
4392
4393 * lisp.h (QCtest, QCweakness, Qequal): Extern them.
4394 (hash_put): Adjusted for the change of the definition.
4395 (signal_after_change): Likewise.
4396 (check_point_in_composition): Extern it.
4397
4398 * lread.c (readchar): Adjusted for the change of CHAR_STRING.
4399 Delete a code that handles an invalid too-long multibyte sequence
4400 because we are now sure that we never encounter with such a
4401 sequence.
4402 (read_multibyte): Use macro MAX_MULTIBYTE_LENGTH, not
4403 MAX_LENGTH_OF_MULTI_BYTE_FORM.
4404 (init_obarray): Likewise.
4405 (read1): Likewise. Adjusted for the change of CHAR_STRING.
4406
4407 * print.c (printchar): Adjusted for the change of CHAR_STRING.
4408
4409 * process.c: Include composite.h.
4410 (read_process_output): Call update_compositions.
4411
4412 * regex.c (regex_compile): Adjusted for the change of CHAR_STRING.
4413
4414 * search.c (search_buffer): Adjusted for the change of CHAR_STRING.
4415
4416 * syntax.h (SYNTAX_ENTRY_INT): Delete codes for a composite
4417 character.
4418
4419 * term.c (encode_terminal_code): Delete codes for a composite
4420 character. Adjusted for the change of CHAR_STRING.
4421 (produce_glyphs): When called, it->what can be IT_COMPOSITION.
4422 Delete codes for a composite character.
4423
4424 * textprop.c (Vtext_property_default_nonsticky): New variable
4425 (syms_of_textprop): Declare it as a Lisp variable.
4426
4427 * window.c (Frecenter): Clear all caches of compositions.
4428
4429 * xdisp.c (it_props): Add an entry for composition.
4430 (face_before_or_after_it_pos): For composition, check face of a
4431 character after the composition.
4432 (handle_composition_prop): New function.
4433 (get_next_display_element): Adjusted for the change of
4434 CHAR_STRING.
4435 (set_iterator_to_next): Handle the case that it->method ==
4436 next_element_from_composition.
4437 (next_element_from_composition): New function.
4438 (message_dolog): Adjusted for the change of CHAR_STRING.
4439 (set_message_1): Likewise.
4440 (check_point_in_composition): New function.
4441 (reconsider_clip_changes): If point moved into or out of
4442 composition, set b->clip_changed to 1 to force updating of the
4443 screen.
4444 (disp_char_vector): Delete codes for a composite character.
4445 (decode_mode_spec_coding): Adjusted for the change of CHAR_STRING.
4446
4447 * xfaces.c (choose_face_fontset_font): Delete codes for a
4448 composite character.
4449 (realize_x_face): Likewise. Change a place to set local variable
4450 `f' to avoid a bug of GCC 2.8.1 on Solaris.
4451
4452 * xfns.c: Include intervals.h.
4453 (syms_of_xfns): Make `display' property nonsticky by default.
4454
4455 * xselect.c (lisp_data_to_selection_data): Adjusted for the change
4456 for find_charset_in_str.
4457
4458 * xterm.h (struct x_output): Change member font_baseline to
4459 baseline_offset.
4460
4461 * xterm.c (x_append_glyph): Setup members of struct glyph properly
4462 for composition.
4463 (x_append_composite_glyph): New function.
4464 (VCENTER_BASELINE_OFFSET): New macro.
4465 (x_produce_glyphs): If it->what == IT_COMPOSITION, setup members
4466 of struct it for the composition. Cache pixel offsets in the
4467 struct composition. Delete codes for a composite character.
4468 Handle Vignore_relative_composition in composition code.
4469 (struct glyph_string): Delete member cmpcharp, add new member cmp.
4470 (x_set_cursor_gc): Check s->cmp, not s->cmpcharp.
4471 (x_compute_glyph_string_overhangs): Likewise.
4472 (x_get_glyph_overhangs): Delete codes for a composite character.
4473 (x_right_overwritten): Check s->cmp, not s->cmpcharp.
4474 (x_draw_glyph_string_background): Likewise. Delete codes for
4475 checking s->gidx for a composition.
4476 (x_draw_glyph_string_foreground): Delete code for a composite
4477 character.
4478 (x_draw_composite_glyph_string_foreground): New function.
4479 (x_draw_glyph_string_box): Check s->cmp, not s->cmpcharp.
4480 (x_draw_glyph_string): Handle the case of COMPOSITE_GLYPH.
4481 (struct work): Deleted.
4482 (x_fill_composite_glyph_string): Argument changed. Mostly
4483 rewritten for that.
4484 (x_fill_glyph_string): Don't check CHARSET_COMPOSITION.
4485 (BUILD_CHAR_GLYPH_STRINGS): Don't handle composition here.
4486 (BUILD_COMPOSITE_GLYPH_STRING): New macro.
4487 (BUILD_GLYPH_STRINGS): For composition, call
4488 BUILD_COMPOSITE_GLYPH_STRING.
4489 (x_new_font): Initialize f->output_data.x->baseline_offset, not
4490 f->output_data.x->font_baseline.
4491
c3c60f13
GM
44921999-12-14 Gerd Moellmann <gerd@gnu.org>
4493
4494 * xterm.c (show_mouse_face): Don't use updated_area, use
4495 TEXT_AREA.
4496
83c8f461 44971999-12-12 Richard M. Stallman <rms@gnu.org>
c838eb57
RS
4498
4499 * minibuf.c (Fall_completions): Doc fix.
4500
83c8f461 45011999-12-12 Richard M. Stallman <rms@gnu.org>
c838eb57
RS
4502
4503 * macros.c (Fstart_kbd_macro): Handle case where last-kbd-macro
4504 has been changed by the Lisp code.
4505
d8eccf12
GM
45061999-12-12 Gerd Moellmann <gerd@gnu.org>
4507
4508 * xfns.c: Indentation fixes.
4509
ae56feae
SM
45101999-12-10 Stefan Monnier <monnier@cs.yale.edu>
4511
4512 * xterm.c (x_initialize): Only setup xaw3d_* if they've been declared.
4513
dfa1c6ae
GM
45141999-12-10 Gerd Moellmann <gerd@gnu.org>
4515
4516 * frame.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
4517 [!MSDOS && !WINDOWSNT && !macintosh]: Moved here from xterm.h.
4518
4519 * xterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Moved
4520 to frame.h.
4521
ec18280f
SM
45221999-12-09 Stefan Monnier <monnier@cs.yale.edu>
4523
4524 * keyboard.c (Qratio): New symbol.
4525 (scroll_bar_parts): Add `Qratio' to it.
4526 (syms_of_keyboard): Init `Qratio'.
4527 * termhooks.h (scroll_bar_part): Add `scroll_bar_move_ratio'.
4528 * xterm.c (#includes): Allow compilation with only Xaw.
4529 (xaw3d_arrow_scroll, xaw3d_pick_top): New variables.
4530 (xt_action_hook): Replace XAW3D by XAW.
4531 (xaw3d_jump_callback): Renamed to xaw_jump_callback.
4532 (xaw_jump_callback): Renamed from xaw3d_jump_callback.
4533 Determine epsilon dynamically and don't try to be too clever.
4534 (xaw3d_scroll_callback): Renamed to xaw_scroll_callback.
4535 (xaw_scroll_callback): Renamed from xaw3d_scroll_callback.
4536 Handle both Xaw3d with arrow-scrollbars and with Xaw-style
4537 scrollbar (using `ratio').
4538 (x_create_toolkit_scroll_bar): Try to detect which style of Xaw3d
4539 scrollbar we have so as to set it up more optimally and to fix
4540 xaw3d_arrow_scroll and xaw3d_pick_top.
4541 (x_set_toolkit_scroll_bar_thumb): Try to maintain 2 spare pixels at the
4542 bottom of the Xaw3d scrollbar, to work around its tendency to refuse
4543 shrinking the thumb. Also make sure that `XawScrollbarSetThumb'
4544 is not ignored, using a major gross hack.
4545 (x_initialize): Init default values for xaw3d_arrow_scroll and
4546 xaw3d_pick_top.
4547
83b6d970
DL
45481999-12-09 Dave Love <fx@gnu.org>
4549
4550 * frame.h: (PIX_TYPE) [! HAVE_X_WINDOWS]: Define PIX_TYPE.
4551
3648c842
GM
45521999-12-08 Gerd Moellmann <gerd@gnu.org>
4553
4554 * eval.c: Remove conditional compilation on `standalone'.
4555 (call_debugger): When entering the debugger while redisplaying,
4556 reset redisplaying_p, and go back to the top-level if the debugger
4557 returns.
4558
05e71564
GM
45591999-12-07 Gerd Moellmann <gerd@gnu.org>
4560
4561 * xfaces.c (x_set_menu_resources_from_menu_face): Make sure
4562 basic faces are realized before trying to use face `menu'.
4563
4564 * window.c (delete_window): Block input for the time window
4565 matrices are being changed.
4566
b46cd536
DL
45671999-12-07 Dave Love <fx@gnu.org>
4568
4569 * lread.c (Fintern_soft): Fix newlines in doc string.
4570
96acb1f7
GM
45711999-12-07 Alexandre Oliva <oliva@dcc.unicamp.br>
4572
4573 * unexelf.c: Include <syms.h>, not <sym.h> on IRIX. Removed
4574 duplicate definition of ElfW.
4575 (find_section): Copied from unexsgi.c.
4576 (unexec): Use find_section. Adjust whitespace. Initialize
4577 new_data2_offset based on old_data, not sbss (this fixes a bug on
4578 IRIX6). Change #ifdef __mips to __sgi, since it's IRIX-specific.
4579 Adjust test for presence of .mdebug section to the new return
4580 value of find_section.
4581
45821999-12-07 Gerd Moellmann <gerd@gnu.org>
4583
4584 * unexelf.c: Merge changes from 20.5.
4585 (unexec): Handle .lit4 and .lit8 unconditionally.
4586
4587 * m/iris4d.h (UNEXEC) [USG5_4]: Use unexelf.o instead of
4588 unexsgi.o again.
4589
4590 * m/iris5d.h (UNEXEC): Likewise.
4591
7dae4502
SM
45921999-12-06 Stefan Monnier <monnier@cs.yale.edu>
4593
4594 * editfns.c (Fdelete_and_extract_region): New function.
05e71564
GM
4595 (syms_of_editfns): Register it.
4596 * insdel.c (del_range): Update del_range_1 call.
7dae4502
SM
4597 (del_range_1, del_range_2): Add a ret_string argument to
4598 request that the deleted text be returned.
4599 (del_range_byte, del_range_both): Update del_range_2 call.
05e71564 4600 * lisp.h (del_range_1, del_range_2): Change prototype
7dae4502
SM
4601 * casefiddle.c (casify_region): Update del_range_1 call.
4602 * coding.c (code_convert_region): Update del_range_2 call.
4603 * fileio.c (Finsert_file_contents): Update del_range_2 call.
4604
397e4fae
GM
46051999-12-06 Gerd Moellmann <gerd@gnu.org>
4606
4607 * xfaces.c (set_lface_from_font_name): Fix incomplete merge.
4608
3d973f71
GM
46091999-12-04 Hrvoje Niksic <hniksic@iskon.hr>
4610
4611 * lread.c (Fintern_soft): Accept a symbol argument.
4612
740e985f
EZ
46131999-12-06 Eli Zaretskii <eliz@is.elta.co.il>
4614
4615 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 40000.
809f3d51
EZ
4616
4617 * insdel.c (adjust_markers_for_delete): Fix last change.
4618
2d764c78
EZ
46191999-12-06 Eli Zaretskii <eliz@is.elta.co.il>
4620
4621 Changes for automatic remapping of X colors on terminal frames:
4622
4623 * xfaces.c (XColor) [!HAVE_X_WINDOWS]: Provide a typedef for non-X
4624 frames.
4625 (Vface_tty_color_alist): Remove.
4626 (tty_defined_color): New function.
4627 (defined_color): Rewrite to support any type of frame.
4628 (tty_color_name): New function.
4629 (face_color_supported_p, Fface_color_gray_p,
4630 Fface_color_supported_p): Support non-X frames.
4631 (load_color): Enclose the color name in quotes, in the log
4632 messages. Remove DOS-specific version of load_color.
4633 (realize_tty_face): Take the supported colors from
4634 tty-color-alist. Support translation of X colors to the closest
4635 tty color, for both MSDOS and tty frames.
4636 [MSDOS]: Don't invert face colors if they were taken from the
4637 frame colors.
4638 (Fface_register_tty_color, Fface_clear_tty_colors): Remove.
4639
4640 * frame.h (struct x_output) [!MSDOS, !WINDOWSNT, !HAVE_X_WINDOWS]:
4641 Define a mostly empty surrogate.
4642 (tty_display): Declare.
4643
4644 * frame.c (make_terminal_frame) [!macintosh]: Don't use
4645 tty_display.
4646 (Fframe_parameters): Don't invert colors of non-FRAME_WINDOW_P
4647 frames when the frame's param_alist includes 'reverse.
4648 (tty_display): Define.
4649 (make_terminal_frame) [!MSDOS]: Assign &tty_display to the
4650 output_data.x member.
4651 (Fframe_parameters): Return foreground and background color names
4652 on tty frames as well, in addition to MSDOS frames.
4653
4654 * msdos.h (DisplayWidth, DisplayHeight): Changes for Lisp_Object
4655 selected_frame.
4656 (struct x_output): Remove unused members; document who uses each
4657 member.
4658 (FRAME_PARAM_FACES, FRAME_N_PARAM_FACES, FRAME_DEFAULT_PARAM_FACE,
4659 FRAME_MODE_LINE_PARAM_FACE, FRAME_COMPUTED_FACES,
4660 FRAME_N_COMPUTED_FACES, FRAME_SIZE_COMPUTED_FACES,
4661 FRAME_DEFAULT_FACE, FRAME_MODE_LINE_FACE, unload_color): Remove
4662 unused macro definintions.
4663
4664 * msdos.c (IT_set_frame_parameters): Don't call
4665 recompute_basic_faces, the next redisplay will, anyway.
4666 (x_current_display): Remove unused variable.
4667 Many functions: changes for Lisp_object selected_frame.
4668 (IT_set_face): If the tty_reverse_p flag is set for the face,
4669 reverse the foreground and background colors.
4670 (Fmsdos_remember_default_colors): New function.
4671 (syms_of_msdos): Defsubr it.
4672 (IT_set_frame_parameters): Use initial_screen_colors[] when
4673 creating a new frame. If the frame parameters include 'reverse,
4674 swap the foreground and background colors.
4675 (internal_terminal_init): Initialize initial_screen_colors to -1.
4676 (syms_of_msdos): Add DEFVAR_BOOL for x-stretch-cursor, to shut up
4677 cus-start.el.
4678
4679 * Makefile.in (lisp, shortlisp): Add lisp/term/tty-colors.elc.
4680
4681 * xfns.c (x_defined_color): Rename from defined_color. All
4682 callers changed.
4683 (Fxw_color_defined_p): Renamed from Fx_color_defined_p;
4684 all callers changed.
4685 (Fxw_color_values): Renamed from Fx_color_values; all callers
4686 changed.
4687 (Fxw_display_color_p): Renamed from Fx_display_color_p; all
4688 callers changed.
4689 (x_window_to_frame, x_any_window_to_frame,
4690 x_non_menubar_window_to_frame, x_menubar_window_to_frame,
4691 x_top_window_to_frame): Use !FRAME_X_P instead of
4692 f->output_data.nothing.
4693 * xterm.h (x_defined_color): Rename from defined_color.
4694
4695 * w32fns.c (x_window_to_frame): Use FRAME_W32_P instead of
4696 f->output_data.nothing.
4697 (Fxw_color_defined_p): Renamed from Fx_color_defined_p;
4698 all callers changed.
4699 (Fxw_color_values): Renamed from Fx_color_values; all callers
4700 changed.
4701 (Fxw_display_color_p): Renamed from Fx_display_color_p; all
4702 callers changed.
4703
4704 * dispextern.h (tty_color_name): Add prototype.
4705
4706 * xmenu.c (menubar_id_to_frame): Use FRAME_WINDOW_P instead of
4707 f->output_data.nothing.
4708 * w32menu.c (menubar_id_to_frame): Likewise.
4709 * w32term.h (w32_output): Declare.
4710
4711 * dosfns.c (Qmsdos_color_translate): Remove.
4712 (msdos_stdcolor_name): Now returns a Lisp_Object.
4713 * dosfns.h (Qmsdos_color_translate): Remove.
4714
4715 * s/msdos.h (INTERNAL_TERMINAL): Add entries for color support.
4716
b3e5232e
KH
47171999-12-06 Kenichi Handa <handa@etl.go.jp>
4718
4719 * fileio.c (decide_coding_unwind): Renamed from
4720 set_auto_coding_unwind.
4721 (Finsert_file_contents): Make single unwind protect to call both
4722 Vset_auto_coding_function and Ffind_operation_coding_system.
4723
4724 * insdel.c (adjust_markers_for_delete): Make it non-static.
4725
db0e466c
SM
47261999-12-04 Stefan Monnier <monnier@cs.yale.edu>
4727
4728 * regex.c (regex_compile): Recognize *?, +? and ?? as non-greedy
4729 operators and handle them properly.
4730 * regex.h (RE_ALL_GREEDY): New option.
4731 (RE_UNMATCHED_RIGHT_PAREN_ORD): Moved to the end where alphabetic
4732 sorting would put it.
4733 (RE_SYNTAX_AWK, RE_SYNTAX_GREP, RE_SYNTAX_EGREP)
4734 (_RE_SYNTAX_POSIX_COMMON): Use the new option to keep old behavior.
4735
22afa6e8
DL
47361999-12-04 Dave Love <d.love@dl.ac.uk>
4737
4738 * m/arm.h: New file.
4739
40afb967
DL
47401999-12-03 Dave Love <fx@gnu.org>
4741
4742 * editfns.c (Fmessage_or_box): Use use_dialog_box.
4743
ddf8eff5
GM
47441999-12-02 Gerd Moellmann <gerd@gnu.org>
4745
4746 * s/usg5-4.h (LIBS_SYSTEM): Add -lgen because that's needed
4747 for building with Motif.
4748
4749 * m/iris4d.h (UNEXEC) [USG5_4]: Use unexsgi.o instead of
4750 unexelf.o.
4751
4752 * m/iris5d.h (UNEXEC): Use unexsgi.o instead of unexelf.o.
4753
fa09a82d
DL
47541999-12-01 Dave Love <fx@gnu.org>
4755
4756 * emacs.c (main): Set LANG=C iff AX3_2 defined.
4757
ddf8eff5
GM
47581999-11-28 Gerd Moellmann <gerd@gnu.org>
4759
4760 * systime.h (EMACS_TIME_CMP, EMACS_TIME_EQ, EMACS_TIME_NE)
4761 (EMACS_TIME_GT, EMACS_TIME_GE, EMACS_TIME_LT,EMACS_TIME_LE): New
4762 macros.
4763
4764 * config.in (HAVE_SETITIMER, HAVE_UALARM): New.
4765
fa09a82d
DL
47661999-11-28 eliz <eliz@dlpx1>
4767
4768 * emacs.c (synchronize_locale): Avoid compiler warnings about
4769 pointer type mismatch.
4770
f9632fc8
GM
47711999-11-28 Gerd Moellmann <gerd@gnu.org>
4772
717d0121
GM
4773 * window.c (Fwindow_end): Don't call temp_set_pt_both with
4774 out of range position.
4775
f9632fc8
GM
4776 * xterm.c (XTread_socket) <ClientMessage, Xatom_Scrollbar>:
4777 Switch off busy-cursor by setting inhibit_busy_cursor to 2.
4778
59c65f1e
EZ
47791999-11-28 Eli Zaretskii <eliz@is.elta.co.il>
4780
613a8346
EZ
4781 * charset.c (Fmake_char_internal): Print the charset ID when
4782 signalling an error.
4783
59c65f1e
EZ
4784 * emacs.c (synchronize_locale): Avoid compiler warnings about
4785 pointer type mismatch.
4786
83c8f461 47871999-11-26 Richard M. Stallman <rms@gnu.org>
d01f3570
RS
4788
4789 * editfns.c (Fdelete_field): Make it noninteractive. Return nil.
4790
18df9369
GM
47911999-11-26 Gerd Moellmann <gerd@gnu.org>
4792
65a3ccf7
GM
4793 * puresize.h (BASE_PURESIZE): Increase to 550000.
4794
b3b98592
GM
4795 * textprop.c (set_text_properties): New function. Like
4796 Fset_text_properties, but with additional parameter
4797 SIGNAL_AFTER_CHANGE_P. If that is nil, don't signal after
4798 changes.
4799 (Fset_text_properties): Use it.
4800
4801 * insdel.c (insert_1_both): Call set_text_properties with last
4802 parameter nil so that no after changes will be signaled.
4803
4804 * lisp.h: Add prototype for set_text_properties.
4805
18df9369
GM
4806 * xfaces.c (set_lface_from_font_name): Fix previous change.
4807 (recompute_basic_faces): Change assert to abort.
4808
71a8e74b
DL
48091999-11-25 Dave Love <fx@gnu.org>
4810
4811 * fns.c (Fnthcdr, Fnreverse): Inline cdr.
4812 (Fmember, Fdelq, Fdelete): Inline car.
4813 (Fy_or_n_p): Doc fix.
4814
bc6a5782
GM
48151999-11-25 Gerd Moellmann <gerd@gnu.org>
4816
3221576b 4817 * xfaces.c (set_lface_from_font_name): New parameter may_fail_p.
18df9369 4818 Callers changed. If specified font name is bogus, and may_fail_p
3221576b
GM
4819 is not set, try to use a reasonable default.
4820
bc6a5782
GM
4821 * dispnew.c (direct_output_for_insert): Set glyph row's
4822 displays_text_p flag. Correct window's window_end_vpos if
4823 necessary.
4824
0c8559bb
PE
48251999-11-25 Paul Eggert <eggert@twinsun.com>
4826
4827 * emacs.c (fixup_locale): Don't bother to record initial locale.
4828 (synchronize_locale): If the desired locale is nil,
4829 treat it as if it were the empty string,
4830 so that we set the locale from the environment.
4831
35737351
KH
48321999-11-25 Kenichi Handa <handa@etl.go.jp>
4833
4834 * fileio.c (Finsert_file_contents): Set buffer-file-coding-system
4835 of the current buffer via Fset.
4836
5562b47f
DL
48371999-11-24 Dave Love <fx@gnu.org>
4838
5562b47f
DL
4839 * xfaces.c: Don't duplicate Qmode_line definition done elsewhere.
4840
4841 * xfns.c: Don't duplicate Qdisplay definition done elsewhere.
4842
00da0e4a
GM
48431999-11-24 Gerd Moellmann <gerd@gnu.org>
4844
4845 * lisp.h (enum pvec_type): Put PVEC_FLAG in #if 0.
4846
4847 * emacs.c (PVEC_FLAG): New variable.
4848
b1775dc1
GM
48491999-11-23 Gerd Moellmann <gerd@gnu.org>
4850
4851 * unexaix.c (unexec): Use unsigned instead of uintptr_t because
4852 that fails on IBM PowerPC, AIX 4.2.
4853
08de6200
EZ
48541999-11-22 Eli Zaretskii <eliz@is.elta.co.il>
4855
4856 * buffer.c (syms_of_buffer): Add %z, %Z, %m and %& to the doc
4857 string of mode-line-format. Remove the obsolete %t.
4858
02fda8ff
GM
48591999-11-22 Gerd Moellmann <gerd@gnu.org>
4860
f2fa858f
GM
4861 * dispnew.c (direct_output_for_insert): Increment glyph positions
4862 for glyphs from buffer text only.
4863
02fda8ff
GM
4864 * emacs.c (gdb_valbits, gdb_gctypebits, gdb_emacs_intbits)
4865 (gdb_data_seg_bits): New variables.
4866
4867 * lisp.h (enum gdb_lisp_params): Put in #if 0, since it doesn't
4868 work on systems not allowing enumerators > INT_MAX, and it
4869 won't work if EMACS_INT is long long.
4870
1b0d24e7
PE
48711999-11-22 Paul Eggert <eggert@twinsun.com>
4872
4873 Port to SunOS 4.1.x again. Help out with Alpha port.
4874 Rename messages-locale to system-messages-locale,
4875 and likewise for time-locale.
4876
4877 * callproc.c (strerror): Remove decl.
4878 * fileio.c (strerror): Likewise.
4879 * process.c (strerror): Likewise.
4880 * emacs.c (strerror): Likewise.
4881 (Vsystem_messages_locale): Renamed from Vmessages_locale.
4882 All uses changed.
4883 (Vprevious_system_messages_locale): Likewise, from
4884 Vprevious_messages_locale.
4885 (Vsystem_time_locale): Likewise, from Vtime_locale.
4886 (Vprevious_system_time_locale): Likewise, from Vprevious_time_locale.
4887 (ABORT_RETURN_TYPE): New macro.
4888 (abort): Return type is now ABORT_RETURN_TYPE.
4889 (main): Always invoke init_signals, even if POSIX_SIGNALS is not
4890 defined.
4891 (syms_of_emacs): messages-locale -> system-messages-locale,
4892 previous-messages-locale -> previous-system-messages-locale,
4893 time-locale -> system-time-locale,
4894 previous-time-locale -> previous-system-time-locale.
4895
4896 * gmalloc.c (PP, __ptr_t): Assume ANSI C if STDC_HEADERS is defined.
4897 (const): Do not define; that's config.h's job.
4898 (<limits.h>): Include if HAVE_LIMITS_H is defined.
4899 (CHAR_BIT): Move test for definedness outside of limits.h condition.
4900 (<stddef.h>): Include if STDC_HEADERS is defined.
4901 (FREE_RETURN_TYPE): New macro.
4902 (free): Return type is now FREE_RETURN_TYPE.
4903
4904 * lisp.h (synchronize_system_time_locale): Renamed from
4905 synchronize_time_locale. All uses changed.
4906 (synchronize_system_messages_locale): Likewise, from
4907 synchronize_messages_locale.
4908
4909 * m/alpha.h (malloc, realloc, calloc): Remove decls;
4910 stdlib.h now does this.
4911
4912 * process.c (sys_siglist): Remove.
4913
4914 * s/sunos4-0.h (ABORT_RETURN_TYPE, FREE_RETURN_TYPE):
4915 New macros.
4916
4917 * syntax.c (scan_sexps_forward): Use abort, not assert.
4918
4919 * sysdep.c (my_sys_siglist): New var.
4920 (sys_siglist): New macro. Remove old initialized vars of same name.
4921 (init_signals): Initialize sys_siglist.
4922
4923 * xfns.c (abort): Remove decl; stdlib.h now does this.
4924
0dcd5b54
DL
49251999-11-18 Dave Love <fx@gnu.org>
4926
946173ad
DL
4927 * filelock.c: Add forward declaration for get_boot_time_1.
4928
0dcd5b54
DL
4929 * dispnew.c (Finternal_show_cursor_p): Fix doc string.
4930
71447e8f
GM
49311999-11-18 Gerd Moellmann <gerd@gnu.org>
4932
4933 * buffer.h (struct buffer_text): Add comment about moving
4934 buffer text if REL_ALLOC is defined.
4935
eeedff63
KH
49361999-11-18 Kenichi Handa <handa@etl.go.jp>
4937
4938 * lisp.h (KEY_DESCRIPTION_SIZE): New macro.
4939
4940 * keyboard.c (echo_char): Use KEY_DESCRIPTION_SIZE to check free
4941 memory for push_key_description.
4942
4943 * keymap.c (Fsingle_key_description): Use KEY_DESCRIPTION_SIZE to
4944 allocate memory for push_key_description.
4945 (describe_buffer_bindings): Likewise.
4946
5d7e4a2c
GM
49471999-11-17 Gerd Moellmann <gerd@gnu.org>
4948
4949 * xfns.c (Fx_show_busy_cursor): Doc-fix.
4950 (Fx_hide_busy_cursor): Ditto.
4951
49521999-11-17 Marco Walther <walther@siemens-pyramid.com>
4953
4954 * unexsni.c (unexec): Handle .rel.dyn section.
4955
b5b41e02
DL
49561999-11-16 Dave Love <fx@gnu.org>
4957
4958 * doc.c (Fdocumentation): Remove gcpro here too.
4959
e35b6123
GM
49601999-11-16 Gerd Moellmann <gerd@gnu.org>
4961
4962 * keyboard.c (command_loop_1): Remove no_redisplay.
4963
83c8f461 49641999-11-16 Richard M. Stallman <rms@gnu.org>
0a14b9bb
GM
4965
4966 * print.c (PRINTPREPARE): Don't call setup_echo_area_for_printing
4967 in noninteractive.
4968
b05d3bee
GM
49691999-11-14 Gerd Moellmann <gerd@gnu.org>
4970
5bcfeb49
GM
4971 * xdisp.c (ensure_echo_area_buffers): New.
4972 (with_echo_area_buffer): Use it.
4973 (setup_echo_area_for_printing): Ditto.
4974
b05d3bee
GM
4975 * buffer.c (indicate-empty-lines): Doc-fix.
4976
9b2e6e4c
GM
49771999-11-12 Gerd Moellmann <gerd@gnu.org>
4978
e7f90eab
GM
4979 * term.c (term_init): If "op" isn't available, don't support color
4980 because we can't switch back to the default foreground and
4981 background.
4982
9b2e6e4c
GM
4983 * doc.c (Fdocumentation_property): Remove GCPRO because
4984 Fsubstitute_command_keys gcpro's the string.
4985
1bf21027
KH
49861999-11-12 Kenichi Handa <handa@etl.go.jp>
4987
4988 * editfns.c (Ftranslate_region): Check the buffer multibyteness.
4989
3bc6df53
GM
49901999-11-11 Gerd Moellmann <gerd@gnu.org>
4991
4992 * print.c, keymap.c, indent.c, insdel.c, keyboard.c, intervals.c,
4993 lread.c, textprop.c, undo.c, emacs.c, lisp.h, intervals.h,
4994 buffer.h, config.in, Makefile.in: Remove USE_TEXT_PROPERTIES.
4995
35a5514b
GM
49961999-11-10 Gerd Moellmann <gerd@gnu.org>
4997
4998 * xfns.c (QCuser_data): Removed.
4999 (syms_of_xfns): Initialization of QCuser_data removed.
5000 (parse_image_spec): Don't handle :user-data specially. Allow
5001 unknown keys. Remove parameter ALLOW_OTHER_KEYS.
5002 (xbm_image_p, xbm_load, xpm_image_p, pbm_image_p, png_image_p)
5003 (tiff_image_p, jpeg_image_p, gif_image_p, gs_image_p): Call
5004 parse_image_spec accordingly.
5005
83c8f461 50061999-11-09 Richard M. Stallman <rms@gnu.org>
4ea68fcc
RS
5007
5008 * cmds.c (Fbeginning_of_line): Doc fix.
5009 (Fend_of_line): Doc fix.
5010
5011 * editfns.c (Fline_beginning_position): If N is not 1,
5012 pass t to Fconstrain_to_field for ESCAPE-FROM-EDGE.
5013
5014 * syntax.c (Fforward_word): Handle fields even if would have hit
5015 an edge of the buffer. Return nil if affected by fields.
5016
83c8f461 50171999-11-09 Richard M. Stallman <rms@gnu.org>
4ea68fcc
RS
5018
5019 * editfns.c (preceding_pos): Function deleted.
5020 (text_property_stickiness): Decrement POS directly.
5021 Fix a confusion that used PT instead of POS.
5022
5023 * editfns.c (find_field): Properly handle the case
5024 of a field boundary where `field' inherits from neither side.
5025
5026 * editfns.c (Ffield_beginning, Ffield_end): Doc fixes.
5027 (Ferase_field, Ffield_string, Ffield_string_no_properties): Doc fixes.
5028
fa9aabf6
GM
50291999-11-08 Gerd Moellmann <gerd@gnu.org>
5030
5031 * bytecode.c (Fbyte_code) <BinsertN, Bcall>: Do the
5032 BEFORE_POTENTIAL_GC before DISCARD.
5033
4015b3c0
GM
50341999-11-07 Gerd Moellmann <gerd@gnu.org>
5035
033a5fa3
GM
5036 * alloc.c (Fgarbage_collect): Call unmark_byte_stack.
5037
5038 * lisp.h: Add prototype for unmark_byte_stack.
5039
5040 * bytecode.c (mark_byte_stack): Use XMARKBIT and XMARK.
5041 (unmark_byte_stack): Renamed from relocate_byte_pcs. Use
5042 XUNMARK.
5043
55b064bd
GM
5044 * xdisp.c (resize_mini_window): Fix computation of needed
5045 mini-window height.
5046
5047 * alloc.c, buffer.c, editfns.c, xdisp.c: Remove conditional
5048 compilation on USE_TEXT_PROPERTIES.
01e9b9df 5049
4015b3c0 5050 * Fbyte_code: Use block statements in cases and declare v1 and v2
60af03f1 5051 locally there. Rearrange case statements so that those most
4015b3c0
GM
5052 frequently executed come first. Avoid goto's in frequently
5053 executed cases.
5054
fe512f27
GM
50551999-11-05 Gerd Moellmann <gerd@gnu.org>
5056
dd59e217
GM
5057 * bytecode.c (Fbyte_code): Use BEFORE_POTENTIAL_GC and
5058 AFTER_POTENTIAL_GC around internal_catch.
5059
bcf28080
GM
5060 * alloc.c (Fgarbage_collect): Call mark_byte_stack and
5061 relocate_byte_pcs.
5062 (init_alloc_once, init_alloc): Set byte_stack_list to null.
5063
5064 * eval.c (struct catchtag): Add member byte_stack.
5065 (internal_catch, Fcondition_case, internal_condition_case)
dd59e217 5066 (internal_condition_case_1): Save value of byte_stack_list in
bcf28080
GM
5067 catchtag.
5068 (unwind_to_catch): Restore byte_stack_list from catchtag.
5069
5070 * lisp.h: Add prototypes for new functions in bytecode.c.
5071 Add extern declaration for byte_stack_list.
5072
5073 * bytecode.c (struct byte_stack): New.
5074 (byte_stack_list, mark_byte_stack, relocate_byte_pcs): New
5075 (BEFORE_POTENTIAL_GC, AFTER_POTENTIAL_GC): New.
5076 (FETCH, PUSH, POP, DISCARD, TOP, MAYBE_GC): Rewritten.
5077 (HANDLE_RELOCATION): Removed.
5078 (Fbyte_code): Use byte_stack structures.
5079
4d59c34c
GM
5080 * filelock.c (Ffile_locked_p): Make FILENAME a required argument.
5081
fe512f27
GM
5082 * buffer.c (syms_of_buffer): Extend documentation of
5083 mode-line-format.
5084
60b64cd6
GM
50851999-11-04 Gerd Moellmann <gerd@gnu.org>
5086
5087 * editfns.c (Fdelete_field): Renamed from Ferase_field.
5088
5089 * minibuf.c (do_completion, Fminibuffer_complete_word): Use
5090 Ferase_field instead of Fdelete_field.
5091
b51b619b
GM
50921999-11-03 Gerd Moellmann <gerd@gnu.org>
5093
5094 * dispnew.c (Finternal_show_cursor): Change it to set the
5095 cursor on/off, not toggle its state.
5096 (Finternal_show_cursor_p): New.
5097 (syms_of_display): Defsubr Sinternal_show_cursor_p.
5098
5865af0d
DL
50991999-11-03 Dave Love <fx@gnu.org>
5100
5101 * charset.c (split_non_ascii_string): Define return value.
5102
82a700f3
GM
51031999-11-03 Gerd Moellmann <gerd@gnu.org>
5104
edfef199
GM
5105 * minibuf.c (string_to_object): New.
5106 (read_minibuf_noninteractive): New.
5107 (read_minibuf): Call read_minibuf_noninteractive if
5108 noninteractive. Use string_to_object.
5109
82a700f3
GM
5110 * doc.c (Fdocumentation_property): Fix bug bypassing UNGCPRO.
5111
b5540f0d
DL
51121999-11-02 Dave Love <fx@gnu.org>
5113
e69dcd60
DL
5114 * gnu-linux.h: Use SIGCHLD, not SIGCLD (not in glibc 2.1).
5115
827a1788
DL
5116 * process.c: Define _GNU_SOURCE before config.h to get strsignal
5117 declared with glibc2.
b5540f0d 5118
a69a6e61
GM
51191999-11-02 Gerd Moellmann <gerd@gnu.org>
5120
5121 * lisp.h (QUIT): Give it statement form.
5122
87e21fbd
DL
51231999-11-02 Dave Love <fx@gnu.org>
5124
5125 * eval.c (init_eval): Conditionalize declaration of gcpro_level.
5126
1b335865
GM
51271999-11-02 Gerd Moellmann <gerd@gnu.org>
5128
9fb5e03d
GM
5129 * xfns.c (QCuser_data): New.
5130 (syms_of_xfns): Initialize QCuser_data.
5131 (parse_image_spec): Ignore :user-data DATA properties.
5132
1b335865
GM
5133 * xdisp.c (display_line): Set charpos of first glyph in blank
5134 lines not corresponding to any text to -1, even if no glyphs are
5135 filled in in that line.
5136
e76f1c44
GM
51371999-11-01 Gerd Moellmann <gerd@gnu.org>
5138
36fcd3d9
GM
5139 * xfns.c (png_load) [PNG_READ_sRGB_SUPPORTED]: Put code using
5140 png_get_sRGB in #ifdef.
5141
111259b4
GM
5142 * dispnew.c (Finternal_show_cursor): Renamed from Fshow_cursor.
5143 (syms_of_display): Use the new name.
5144
dd5c96e8
GM
5145 * textprop.c (verify_interval_modification): Signal text-read-only
5146 instead of calling error.
5147
db8878fb
GM
5148 * data.c (Qtext_read_only): New built-in error.
5149 (syms_of_data): Initialize it.
5150
5151 * lisp.h: Add extern declaration for Qtext_read_only.
5152
e76f1c44
GM
5153 * syntax.c: Remove whitespace after open or in front of closing
5154 parentheses.
5155
83c8f461 51561999-11-01 Richard M. Stallman <rms@gnu.org>
cb3a6c48
GM
5157
5158 * Makefile.in (w16select.o, sound.o): Don't depend on lisp.h.
5159
7843e09c
GM
51601999-10-31 Gerd Moellmann <gerd@gnu.org>
5161
575ed805
GM
5162 * xdisp.c (resize_mini_window): Compute needed height differently.
5163
7843e09c
GM
5164 * fns.c (Flength): Unroll loop over lists.
5165
5166 * xdisp.c (append_space): Return non-zero if space was appended.
5167 (display_line): Set charpos of first glyph to -1 only if that
5168 glyph is the space added by append_glyph.
5169
83c8f461 51701999-10-30 Richard M. Stallman <rms@gnu.org>
cb3a6c48
GM
5171
5172 * print.c (strout): Consider `noninteractive' and use stdout
5173 only when PRINTCHARFUN is t.
5174
5175 * lisp.h (struct gcpro) [DEBUG_GCPRO]: New field `level'.
5176 (gcpro_level): Declare it extern.
5177 [DEBUG_GCPRO] (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
5178 Alternate definitions that set `level' and increment `gcpro_level'.
5179 [DEBUG_GCPRO] (UNGCPRO): Alternate definition that checks gcpro_level.
5180
5181 * eval.c [DEBUG_GCPRO] (gcpro_level): New variable.
5182 (init_eval) [DEBUG_GCPRO]: Initialize it.
5183 (unwind_to_catch) [DEBUG_GCPRO]: Set gcpro_level
5184 from remaining gcprolist.
5185
3636f7a3
KH
51861999-10-29 Kenichi Handa <handa@etl.go.jp>
5187
5188 * coding.c (code_convert_region): Update `dst' correctly.
5189
a2ad7096
GM
51901999-10-28 Gerd Moellmann <gerd@gnu.org>
5191
5192 * fns.c (Fmemq, Fassq, Frassq, assq_no_quit, Fassoc)
5193 (Frassoc): Rewritten.
5194
1e3196e8
GM
51951999-10-27 Noah Friedman <friedman@splode.com>
5196
5197 * s/gnu-linux.h [HAVE_DEV_PTMX]: Redefine FIRST_PTY_LETTER to 'z'.
5198 Define PTY_NAME_SPRINTF.
5199 Redefine PTY_TTY_NAME_SPRINTF.
5200 * config.in: Add undef for HAVE_DEV_PTMX.
5201
83c8f461 52021999-10-26 Richard M. Stallman <rms@gnu.org>
4ea68fcc
RS
5203
5204 * regex.c (POP_FAILURE_POINT): Use failure_id.integer
5205 as arg to DEBUG_POP and DEBUG_PRINT.
5206
83c8f461 52071999-10-27 Richard M. Stallman <rms@gnu.org>
17dbfaad
GM
5208
5209 * data.c (Qad_activate_internal): Renamed from Qad_activate.
5210 (Ffset): Call Qad_activate_internal.
5211 (syms_of_data): Initialize Qad_activate_internal.
5212
26922151
GM
52131999-10-27 Gerd Moellmann <gerd@gnu.org>
5214
5215 * xdisp.c (echo_area_display) [HAVE_X_WINDOWS]: Do nothing if
5216 Vterminal_frame is selected and Vwindow_system is non-nil.
5217
67a5596f
GM
52181999-10-26 Gerd Moellmann <gerd@gnu.org>
5219
2bea706b
GM
5220 * xdisp.c (echo_area_display): Put previous change in #if 0.
5221
67a5596f
GM
5222 * emacs.c (standard_args): Add `file' as synonym for `visit',
5223 `execute' as synonym for `eval'.
5224 (main): Add new options to usage message.
5225
81dc5de5
GM
52261999-10-25 Gerd Moellmann <gerd@gnu.org>
5227
5228 * data.c (Qhash_table): New.
5229 (Ftype_of): Return it for hash tables.
5230 (syms_of_data): Initialize Qhash_table.
5231
83c8f461 52321999-10-25 Richard M. Stallman <rms@gnu.org>
bd3c545d
GM
5233
5234 * regex.c (POP_FAILURE_POINT): Extract failure_id as an integer.
5235
66e4690f 52361999-10-24 Ken Raeburn <raeburn@gnu.org>
3a7093d8 5237
7539e11f
KR
5238 * alloc.c: Undef HIDE_LISP_IMPLEMENTATION before including
5239 lisp.h.
5240
5241 * buffer.c (Fbuffer_list, Fget_file_buffer, get_truename_buffer,
5242 Fbuffer_local_variables, Fother_buffer, record_buffer,
5243 set_buffer_internal_1, Fbury_buffer, Fkill_all_local_variables,
5244 swap_out_buffer_local_variables, overlays_at, overlays_in,
5245 overlay_touches_p, overlay_strings, recenter_overlay_lists,
5246 fix_overlays_in_range, fix_overlays_before, Foverlay_get,
5247 Foverlay_put, report_overlay_modification, evaporate_overlays):
5248 Use XCAR, XCDR, and XFLOAT_DATA instead of explicit member
5249 references.
5250 * data.c (Fcar, Fcar_safe, Fcdr, Fcdr_safe, Fsetcar, Fsetcdr,
5251 swap_in_symval_forwarding, set_internal, default_value,
5252 Fset_default, Fmake_variable_buffer_local, Fmake_local_variable,
5253 Fmake_variable_frame_local, Flocal_variable_p,
5254 Flocal_variable_if_set_p, arithcompare, Fzerop, cons_to_long,
5255 Fnumber_to_string, float_arith_driver, Fadd1, Fsub1): Likewise.
5256 * dispnew.c (Fframe_or_buffer_changed_p): Likewise.
5257 * emacs.c (main): Likewise.
5258 * fontset.c (fs_load_font, fs_register_fontset,
5259 CACHED_FONTSET_NAME, CACHED_FONTSET_REGEX, Fquery_fontset,
5260 Fnew_fontset, Fset_fontset_font): Likewise.
5261 * frame.c (do_switch_frame, next_frame, prev_frame,
5262 other_visible_frames, Fdelete_frame, Fvisible_frame_list):
5263 Likewise.
5264 * keyboard.c (read_char, help_char_p, event_to_kboard,
5265 kbd_buffer_get_event, timer_start_idle, timer_check,
5266 make_lispy_event, apply_modifiers, reorder_modifiers,
5267 Fevent_convert_list, lucid_event_type_list_p, menu_bar_items,
5268 menu_bar_one_keymap, menu_item_eval_property_1, parse_menu_item,
5269 tool_bar_items, read_char_x_menu_prompt, read_key_sequence,
5270 Fcommand_execute, Fexecute_extended_command): Likewise.
5271 * minibuf.c (read_minibuf, get_minibuffer, Ftry_completion,
5272 Fall_completions): Likewise.
5273 * window.c (Fset_window_margins): Likewise.
5274
5275 * callint.c (quotify_args): Don't explicitly use struct
5276 Lisp_Cons, use Lisp_Object and XCAR/XCDR instead.
5277
3a7093d8
KR
5278 * s/netbsd.h (HAVE_GETLOADAVG): Define as 1.
5279 (UNEXEC, START_FILES, LIB_STANDARD, LIB_GCC): Define ELF versions,
5280 if __ELF__ is defined.
5281
2a3d7146
GM
52821999-10-24 Gerd Moellmann <gerd@gnu.org>
5283
5284 * window.c (Fnext_window): Add a QUIT in the loop.
5285
8ac52782
GM
52861999-10-23 Gerd Moellmann <gerd@gnu.org>
5287
5288 * Makefile.in (bootstrap, bootstrap-emacs, bootstrap-temacs):
5289 New targets.
5290
05f0d15a
DL
52911999-10-22 Dave Love <fx@gnu.org>
5292
5293 * emacs.c (main): Enable profiling conditional on __linux also.
5294
882fb0e6
GM
52951999-10-20 Gerd Moellmann <gerd@gnu.org>
5296
5297 * xrdb.c (x_load_resources): Set default resources for resource
5298 classes instead of for the specific Emacs.
5299
b5f5bc31
GM
53001999-10-19 Gerd Moellmann <gerd@gnu.org>
5301
66f4dd69
GM
5302 * s/freebsd.h (HAVE_GETLOADAVG): Define as 1 because config.h
5303 defines it that way.
5304
b5f5bc31
GM
5305 * xdisp.c (echo_area_display) [HAVE_X_WINDOWS]: Do nothing
5306 if selected_frame is equal to Vterminal_frame.
5307
68c45bf0
PE
53081999-10-19 Paul Eggert <eggert@twinsun.com>
5309
5310 Add support for large files, 64-bit Solaris, system locale codings.
5311
5312 * Makefile.in (emacs): Set the LC_ALL environment variable to "C"
5313 when dumping, so that the dumped Emacs doesn't have stray locale info.
5314 (dired.o): Depend on systime.h.
5315 (editfns.o): Depend on coding.h.
5316
5317 * alloc.c, buffer.c, callproc.c, ccl.c, charset.c, coding.c, data.c,
5318 dispnew.c, editfns.c, emacs.c, filelock.c, floatfns.c, hftctl.c,
5319 keyboard.c, process.c, sysdep.c, unexelf.c, unexhp9k800.c,
5320 unexsunos4.c, vmsfns.c, vmsgmalloc.c, w32faces.c, w32menu.c, w32term.c,
5321 w32xfns.c, xfaces.c, xfns.c, xmenu.c, xterm.c:
5322 Include <config.h> before any system include files.
5323
5324 * alloc.c, buffer.c, ccl.c, data.c, editfns.c, emacs.c, eval.c,
5325 fileio.c, filelock.c, frame.c, insdel.c, keymap.c, lread.c,
5326 m/alpha.h, print.c, search.c, sysdep.c, xdisp.c, xfaces.c, xfns.c,
5327 xmenu.c, xterm.c:
5328 Do not include <stdlib.h>, as <config.h> does this now.
5329
5330 * callproc.c (Fcall_process):
5331 Synchronize messages locale before invoking strerror.
5332 Decode resulting string with locale-coding-system.
5333
5334 * coding.c (Vlocale_coding_system): New var.
5335 (syms_of_coding): Adjust to above change.
5336 (emacs_strerror): New function.
5337
5338 * coding.h (emacs_strerror, Vlocale_coding_system): New decls.
5339
5340 * config.in (HAVE_STDIO_EXT_H, HAVE_TM_GMTOFF, HAVE___FPENDING,
5341 HAVE_FTELLO, HAVE_GETLOADAVG, HAVE_MBLEN, HAVE_MBRLEN,
5342 HAVE_STRSIGNAL): New macros.
5343 (BITS_PER_LONG): Default to 64 if _LP64 is defined.
5344 <stdlib.h>: Include if HAVE_STDLIB_H is defined and NOT_C_CODE isn't.
5345
5346 * dired.c: Include "systime.h".
5347 (Ffile_attributes): Do not cast s.st_size to int; this loses
5348 information if int is 32 bits but st_size and EMACS_INT are larger.
5349 Treat large device numbers like large inode numbers.
5350
5351 * dispnew.c (PENDING_OUTPUT_COUNT): Use __fpending if available.
5352
5353 * editfns.c: Include coding.h.
5354 (emacs_strftime): Remove decl.
5355 (emacs_strftimeu): New decl.
5356 (emacs_memftimeu): Renamed from emacs_memftime; new arg UT.
5357 Use emacs_strftimeu instead of emacs_strftime.
5358 (Fformat_time_string): Convert format string using
5359 Vlocale_coding_system, and convert result back. Synchronize time
5360 locale before invoking lower level function. Invoke
5361 emacs_memftimeu, passing ut, instead of emacs_memftime.
5362
5363 * emacs.c: Include <locale.h> if HAVE_SETLOCALE is defined.
5364 (Vmessages_locale, Vprevious_messages_locale, Vtime_locale,
5365 Vprevious_time_locale): New variables.
5366 (main): Invoke setlocale early, so that initial error messages are
5367 localized properly. But skip locale-setting if LC_ALL is "C".
5368 Fix up locale when it's safe to do so.
5369 (fixup_locale): Moved here from xterm.c.
5370 (synchronize_locale, synchronize_time_locale,
5371 synchronize_messages_locale): New functions.
5372 (syms_of_emacs): Accommodate above changes.
5373
5374 * fileio.c (report_file_error): Convert strerror output according
5375 to Vlocale_coding_system.
5376 (Finsert_file_contents): Check for arithmetic overflow in
5377 computations that depend on file size. Report IO errors
5378 with emacs_strerror, not strerror.
5379
5380 * fns.c (Fgethash): Declare dflt parameter.
5381
5382 * gmalloc.c: Do not define const to nothing if HAVE_CONFIG_H
5383 is defined; that's config.h's job.
5384
5385 * lisp.h (EMACS_INT, BITS_PER_EMACS_INT, EMACS_UINT): If _LP64,
5386 default these values to long, BITS_PER_LONG, and unsigned long.
5387 (VALBITS, MARKBIT, XINT): Do not assume 32-bit EMACS_INT.
5388 (PNTR_COMPARISON_TYPE): Default to EMACS_UINT, not to unsigned int.
5389 (code_convert_string_norecord, fixup_locale,
5390 synchronize_messages_locale, synchronize_time_locale,
5391 emacs_open, emacs_close, emacs_read, emacs_write): New decls.
5392 All Emacs callers of open, close, read, write changed to use
5393 emacs_open, emacs_close, emacs_read, emacs_write.
5394
5395 * lread.c (file_offset, file_tell): New macros. All uses of ftell
5396 changed to file_tell.
5397 (saved_doc_string_position, prev_saved_doc_string_position): Now
5398 of type file_offset.
5399 (init_lread): Do not fix locale here; fixup_locale now does this.
5400
5401 * m/amdahl.h, s/usg5-4.h:
5402 (NSIG): Remove.
5403 (NSIG_MINIMUM): New macro.
5404
5405 * m/cydra5.h, m/dpx2.h, m/mips.h, m/pfa50.h, m/sps7.h, m/stride.h,
5406 m/ustation.h, s/gnu-linux.h, s/hpux.h, s/iris3-5.h, s/iris3-6.h,
5407 s/umips.h, s/usg5-4.h:
5408 (SIGIO): Do not undef.
5409 (BROKEN_SIGIO): New macro.
5410
5411 * m/ustation.h:
5412 (SIGTSTP): Do not undef.
5413 (BROKEN_SIGTSTP): New macro.
5414
5415 * s/gnu-linux.h:
5416 (SIGPOLL, SIGURG): Do not undef.
5417 (BROKEN_SIGPOLL, BROKEN_SIGURG): New macros.
5418
5419 * s/ptx4.h:
5420 (SIGINFO): Do not undef.
5421 (BROKEN_SIGINFO): New macros.
5422
5423 * m/delta.h, s/ptx.h, s/template.h: Doc fix.
5424
5425 * mktime.c, strftime.c: Update to glibc 2.1.2 version, with
5426 some Emacs-related changes merged.
5427
5428 * print.c (float_to_string): Prepend "-" to representation of a
5429 NaN if the NaN is negative.
5430
5431 * process.c (sys_siglist): Omit if HAVE_STRSIGNAL.
5432 (wait_reading_process_input): Use emacs_strerror, not strerror.
5433
5434 * process.c (status_message, sigchld_handler): Synchronize locale,
5435 then use strsignal istead of sys_siglist.
5436 * w32proc.c (sys_wait): Likewise.
5437
5438 * s/aix3-1.h, s/bsd4-1.h, s/dgux.h, s/gnu-linux.h, s/hiuxmpp.h,
5439 s/hpux.h, s/iris3-5.h, s/iris3-6.h, s/irix3-3.h, s/osf1.h, s/rtu.h,
5440 s/sunos4-1.h, s/unipl5-0.h, s/unipl5-2.h, s/usg5-0.h, s/usg5-2-2.h,
5441 s/usg5-2.h, s/usg5-3.h, s/xenix.h:
5442 (open, close, read, write, INTERRUPTIBLE_OPEN,
5443 INTERRUPTIBLE_CLOSE, INTERRUPTIBLE_IO): Remove.
5444
5445 * s/sol2-5.h (_LARGEFILE_SOURCE, _FILE_OFFSET_BITS): New macros.
5446
5447 * sysdep.c (sys_read, sys_write, read, write, sys_close, close,
5448 sys_open, open): Remove.
5449 (emacs_open, emacs_close, emacs_read, emacs_write): Always define;
5450 the old INTERRUPTIBLE_OPEN, INTERRUPTIBLE_CLOSE, and INTERRUPTIBLE_IO
5451 macros are no longer used.
5452 (emacs_open): Renamed from sys_open. Merge BSD4_1 version.
5453 (emacs_close): Renamed from sys_close.
5454 (emacs_read): Renamed from sys_read.
5455 (emacs_write): Renamed from sys_write.
5456 (sys_siglist): Do not declare if HAVE_STRSIGNAL.
5457 (dup2): Do not print error on failure; the real dup2 doesn't.
5458 (strsignal): New function, defined if !HAVE_STRSIGNAL.
5459
5460 * syssignal.h (SIGINFO): Undef if defined and if BROKEN_SIGINFO
5461 is defined.
5462 (SIGIO, SIGPOLL, SIGTSTP, SIGURG): Likewise.
5463 (NSIG): If less than NSIG_MINIMUM, define to NSIG_MINIMUM.
5464 (strsignal): Declare if !HAVE_STRSIGNAL.
5465
5466 * unexelf.c (ElfBitsW, ELFSIZE, ElfExpandBitsW): New macros.
5467 (ElfW): Define in terms of ElfExpandBitsW.
5468
5469 * w32proc.c (sys_siglist): Remove decl.
5470
5471 * xdisp.c (decode_mode_spec): 3rd arg is int, not char, to comply
5472 with ANSI C.
5473 (display_string): Declare face_string_pos arg.
5474
5475 * xfns.c (Fx_show_tip): Declare timeout param.
5476
5477 * xterm.c: No need to include locale.h.
5478 (x_alloc_lighter_color, x_setup_relief_color):
5479 Pass arg as double, not float, for compatibility with ANSI C.
5480 (fixup_locale): Move to emacs.c.
5481 (x_term_init): Do not setlocale or fixup locale; the main program
5482 does this now.
5483
2f0b74ea
DL
54841999-10-18 Dave Love <fx@gnu.org>
5485
5486 * doc.c (Fdocumentation_property): Gcpro `tem'.
5487
471aa4a0
KH
54881999-10-18 Kenichi Handa <handa@etl.go.jp>
5489
5490 * lread.c (Fload): Calculate bytes of filename correctly.
5491 (openp): Likewise.
5492
aca2020b
KH
54931999-10-18 Keisuke Nishida <kxn30@po.cwru.edu>
5494
5495 * print.c (print_preprocess): In case print-circle is nil,
5496 add OBJ to Vprint_number_table only when OBJ is a symbol.
5497
1f5fe392 54981999-10-18 Kenichi Handa <handa@etl.go.jp>
b843d1ae
KH
5499
5500 * coding.c (code_convert_string): Add record_unwind_protect to
5501 assure setting inhibit_pre_post_conversion back to zero. Take
5502 care of the multibyteness of the working buffer.
5503
5504 * coding.c (inhibit_pre_post_conversion): New variable.
5505 (setup_coding_system): If inhibit_pre_post_conversion is nonzero,
5506 ignore post-read-conversion and pre-write-conversion property of
5507 the coding system.
5508 (code_convert_region_unwind): New function.
5509 (code_convert_region): Set inhibit_pre_post_conversion to 1 while
5510 running pre-write-conversion and post-read-conversion.
5511 (code_convert_string): Likewise.
5512
cd876a91
GM
55131999-10-17 Miles Bader <miles@gnu.org>
5514
5515 * editfns.c: Doc fix.
5516
55171999-10-17 Miles Bader <miles@gnu.org>
5518
5519 * editfns.c (Fconstrain_to_field): Make sure we don't violate the
5520 argument preconditions of find_before_next_newline in the case
5521 where both ONLY_IN_LINE and ESCAPE_FROM_EDGE are set and OLD_POS
5522 was indeed at the edge.
5523
55241999-10-17 Miles Bader <miles@gnu.org>
5525
5526 * minibuf.c (Fminibuffer_complete_and_exit): Supply value for new
5527 ESCAPE_FROM_EDGE parameter to Ffield_beginning.
5528
5529 * editfns.c (text_property_eq, text_property_stickiness): Don't
5530 use initializers for auto variables of type Lisp_Object.
5531 (find_field): Likewise. Use braces around nested ifs.
5532 (Fline_end_position): Store the raw eol in a variable, so that the
5533 final expression doesn't look so ugly.
5534 (Fconstrain_to_field): Doc fix.
5535 (preceding_pos): Renamed from `preceeding_pos'.
5536 (text_property_stickiness, find_field): Call preceding_pos,
5537 not preceeding_pos.
5538
55391999-10-17 Miles Bader <miles@gnu.org>
5540
5541 * editfns.c (Ffield_string_no_properties): New function.
5542 (text_property_stickiness, preceeding_pos): New functions.
5543 (Ffield_string): Remove PROPS parameter.
5544 (find_field): Add MERGE_AT_BOUNDARY parameter.
5545 Rewrite to use stickiness of `field' property to resolve
5546 ambiguous cases.
5547 (Ffield_beginning, Ffield_end): Add ESCAPE_FROM_EDGE parameter.
5548 (Fconstrain_to_field): Likewise.
5549 (syms_of_editfns): Init Sfield_string_no_properties.
5550 (Ffield_string, Ferase_field, Ffield_end):
5551 Supply new MERGE_AT_BOUNDARY argument to find_field.
5552 (Fline_beginning_position, Fline_end_position): Supply new
5553 ESCAPE_FROM_EDGE parameter to Fconstrain_to_field.
5554 Pass a value of Qt for the ONLY_IN_LINE argument to
5555 Fconstrain_to_field (only matters if N != 1).
5556 * syntax.c (Fforward_word): Supply new ESCAPE_FROM_EDGE parameter
5557 to Fconstrain_to_field.
5558
5559 * minibuf.c (Fminibuffer_complete_word): Use
5560 Ffield_beginning to find the prompt end.
5561
55621999-10-17 Miles Bader <miles@gnu.org>
5563
5564 * editfns.c (Fconstrain_to_field): Add get/set-current-point
5565 behavior when NEW_POS is nil.
5566 (find_field): Use XSETFASTINT instead of make_number.
5567 * minibuf.c (Fminibuffer_complete_and_exit): Test for an empty
5568 input string by seeing where the field begins, instead of
5569 looking at text-properties.
5570
55711999-10-17 Miles Bader <miles@gnu.org>
5572
5573 * editfns.c (Qfield): New variable.
5574 (find_field, Ferase_field, Ffield_string,
5575 Ffield_beginning, Ffield_end, Fconstrain_to_field): New functions.
5576 (Fline_beginning_position, Fline_end_position): Constrain to any field.
5577 (make_buffer_string_both): Remove minibuffer-prompt hack.
5578 (syms_of_editfns): Initialize Qfield, and subr entries for
5579 field functions above.
5580 * minibuf.c (read_minibuf): Don't save minibuffer prompt length on
5581 minibuf_save_list.
5582 Don't initialize minibuffer prompt length.
5583 Wrap prompt text-properties around the entire prompt.
5584 Add 'prompt text-property to prompt.
5585 Get final value with Ffield_string instead of make_buffer_string.
5586 (read_minibuf_unwind): Don't restore minibuffer prompt length from
5587 minibuf_save_list.
5588 (do_completion): Get minibuffer input with Ffield_string
5589 instead of Fbuffer_string.
5590 Erase minibuffer input with Ferase_field instead of erase_buffer.
5591 (Fminibuffer_complete_and_exit): Likewise.
5592 Test whether buffer is empty by looking for the 'prompt text
5593 property at the end.
5594 Set prompt length by looking for the end of the prompt text property,
5595 and save prompt length for later use (since there is no longer a
5596 buffer variable to get it from).
5597 (Fminibuffer_prompt_width, Fminibuffer_prompt_end): Functions removed.
5598 (syms_of_minibuf): Remove initializations of
5599 Sminibuffer_prompt_width and Sminibuffer_prompt_end.
5600 * buffer.h (struct buffer): Remove prompt_end_charpos field.
5601 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer, Fkill_buffer):
5602 Don't initialize prompt_end_charpos field.
5603 * syntax.c (Fforward_word): Likewise.
5604 Constrain to any field.
5605
3f6f7508
GM
56061999-10-16 Gerd Moellmann <gerd@gnu.org>
5607
5608 * window.c (enum save_restore_action): New.
5609 (save_restore_orig_size): Change parameter list. Add
5610 functionality to check for valid orig_top and orig_height members
5611 in a window tree.
5612 (grow_mini_window): Call save_restore_orig_size with new parameter
5613 list.
5614 (shrink_mini_window): Restore old window sizes only if old
5615 size information is valid in all windows in a window tree.
5616
06482119
GM
56171999-10-15 Gerd Moellmann <gerd@gnu.org>
5618
2710454d
GM
5619 * xmenu.c (set_frame_menubar): Don't call
5620 x_set_menu_resources_from_menu_face here.
5621 (update_frame_menubar): Call x_set_menu_resources_from_menu_face.
5622
06482119
GM
5623 * xfns.c (gif_load): Fix handling of interlaced GIFs.
5624
17fa2837
DL
56251999-10-14 Dave Love <fx@gnu.org>
5626
5627 * xdisp.c (handle_fontified_prop): GCPRO `pos'.
5628
45f93416
GM
56291999-10-14 Gerd Moellmann <gerd@gnu.org>
5630
5631 * process.c (Fopen_network_stream): Don't loop if gethostbyname
5632 fails and h_errno is TRY_AGAIN.
5633
c765b723
DL
56341999-10-13 Dave Love <fx@gnu.org>
5635
5636 * filelock.c (lock_file): Move gcpro of `fn'.
5637
dace7f4e
GM
56381999-10-10 Gerd Moellmann <gerd@gnu.org>
5639
5640 * keyboard.c (auto-save-interval): Fix documentation.
5641
83c8f461 56421999-10-09 Richard M. Stallman <rms@gnu.org>
73fb36f1
RS
5643
5644 * print.c (print): When removing objects from Vprint_number_table,
5645 only scan the newly added objects.
5646 (print_preprocess): If OBJ is a gensym, and print-continuous-numbering,
5647 unconditionally force it to stay in the table.
5648
85177c86
GM
56491999-10-09 Gerd Moellmann <gerd@gnu.org>
5650
5651 * xfns.c (prepare_image_for_display): Don't try to load image if
5652 loading it failed before.
5653 (lookup_image, prepare_image_for_display): Remember if loading the
5654 image failed.
5655 (xpm_load): Add missing UNBLOCK_INPUT.
5656
5657 * dispextern.h (struct image): New member load_failed_p.
5658
11e4de5d
SM
56591999-10-08 Stefan Monnier <monnier@cs.yale.edu>
5660
f28eba7b 5661 * fileio.c (Fmake_temp_name): Add a reference to `make-temp-file'
11e4de5d
SM
5662 in the docstring.
5663
f1da8f06
GM
56641999-10-08 Gerd Moellmann <gerd@gnu.org>
5665
5666 * xterm.c (XTread_socket) <ClientMessage, WM_TAKE_FOCUS>:
5667 Don't call XSetInputFocus because that can generate additional
5668 FocusIn events.
5669
c37bbd4f
GM
56701999-10-07 Jeffrey C Honig <jch@bsdi.com>
5671
5672 * bsdos4.h [HAVE_LIBNCURSES]: Define TERMINFO and LIBS_TERMCAP.
5673
83c8f461 56741999-10-07 Richard M. Stallman <rms@gnu.org>
78cc5c64
GM
5675
5676 * process.c (wait_reading_process_input): When trying to suck
5677 input from one process, for accept-process-output,
5678 exit that loop if we get EAGAIN or EWOULDBLOCK.
5679
577d9e2f
GM
56801999-10-07 Gerd Moellmann <gerd@gnu.org>
5681
5682 * xfaces.c (Qbitmap_spec_p): Replaces Qpixmap_spec_p.
5683 (Fbitmap_spec_p): Replaces Fpixmap_spec_p.
5684 (load_pixmap): Use Fbitmap_spec_p and Qbitmap_spec_p instead of
5685 Fpixmap_spec_p and Qpixmap_spec_p.
5686 (load_face_colors, check_lface_attrs,
5687 merge_face_vector_with_property,
5688 Finternal_set_lisp_face_attribute): Use Fbitmap_spec_p.
5689 (syms_of_xfaces): Initialize Qbitmap_spec_p, defsubr
5690 Fbitmap_spec_p.
5691
f5737ad2
GM
56921999-10-07 Gerd Moellmann <gerd@gnu.org>
5693
5694 * xdisp.c (display_menu_bar): Use MENU_FACE_ID instead of
5695 MODE_LINE_FACE_ID.
5696
5697 * xfaces.c (toplevel) [USE_MOTIF]: Include some Motif headers.
5698 (struct x_resources) [USE_X_TOOLKIT]: New.
5699 (xm_apply_resources, xm_set_menu_resources_from_menu_face)
5700 [USE_MOTIF]: New.
5701 (xl_apply_resources, xl_set_menu_resources_from_menu_face)
5702 [USE_LUCID]: New.
5703 (x_set_menu_resources_from_menu_face) [USE_X_TOOLKIT]: New.
5704 (Qmenu): New.
5705 (syms_of_xfaces): Initialize Qmenu.
5706 (realize_basic_faces): Realize face `menu'.
5707 (resolve_face_name): New.
5708 (lface_from_face_name): Use it.
5709 (Finternal_set_lisp_face_attribute): Ditto.
5710 (Fpixmap_spec_p): Rewritten. Extend doc string.
5711
5712 * xmenu.c (set_frame_menubar, xmenu_show): Call
5713 x_set_menu_resources_from_menu_face.
5714
5715 * dispextern.h (enum face_id): Add MENU_FACE_ID.
5716 (toplevel): Include X11/Intrinsic.h.
5717
6a1aa823
DL
57181999-10-03 Ken'ichi Handa <handa@gnu.org>
5719
5720 * coding.c (DECODE_CHARACTER_ASCII): Decode ASCII invocated to GR
5721 correctly.
5722
26901792
DL
57231999-09-30 Kenichi Handa <handa@etl.go.jp>
5724
5725 * category.c (modify_lower_category_set): Set default value of
5726 TABLE correctly.
5727
5728 * minibuf.c (Fminibuffer_complete_word): Calculate string byte
5729 size correctly.
5730
57311999-09-29 Gerd Moellmann <gerd@gnu.org>
5732
5733 * editfns.c (Fpropertize): Renamed from Fproperties.
5734
57351999-09-29 Gerd Moellmann <gerd@gnu.org>
5736
5737 * xdisp.c (resize_mini_window): Do nothing if frame is an X
5738 frame that hasn't been initialized yet.
5739
83c8f461 57401999-09-28 Richard M. Stallman <rms@gnu.org>
a04f1a93
PR
5741
5742 * keymap.c (Fsingle_key_description): Make tem big enough.
5743 (describe_buffer_bindings): Make buf big enough.
5744
83c8f461 57451999-09-27 Richard M. Stallman <rms@gnu.org>
d177c583
PR
5746
5747 * intervals.c (get_local_map): Use indirect_function,
5748 not Findirect_function.
5749
26901792
DL
57501999-09-27 Dave Love <fx@gnu.org>
5751
5752 * cm.h: Remove unneeded declaration of ospeed.
5753
57541999-09-26 Gerd Moellmann <gerd@gnu.org>
5755
5756 * lisp.h (toplevel): Add prototype for
5757 next_single_char_property_change.
5758
5759 * textprop.c (next_single_char_property_change): New.
5760
5761 * xdisp.c (display_prop_end, invisible_text_between_p): Use
5762 next_single_char_property_change.
5763
57641999-09-25 Gerd Moellmann <gerd@gnu.org>
5765
5766 * editfns.c (Fproperties): New.
5767 (syms_of_editfns): Defsubr it.
5768
5769 * xfns.c (lookup_image): Set image's timestamp because it's
5770 used when we look it up.
5771
57721999-09-23 Gerd Moellmann <gerd@gnu.org>
5773
5774 * window.c (enlarge_window): Add window parameter instead of using
5775 selected_window.
5776 (Fdisplay_buffer): Call it with window parameter instead of
5777 setting selected_window.
5778 (Fenlarge_window, Fshrink_window): Ditto.
5779 (shrink_mini_window): If there is no recorded height and position
5780 info, resize mini-window to height 1.
5781
5782 * xfns.c (image_error): Use add_to_log.
5783
5784 * xfaces.c (load_pixmap): Call add_to_log without frame parameter.
5785 (load_face_font_or_fontset, load_color,
5786 merge_face_vector_with_property): Ditto.
5787
5788 * dispextern.h: Add prototype for add_to_log.
5789
5790 * xfaces.c (add_to_log): Move to xdisp.c.
5791
5792 * xdisp.c (add_to_log): Moved from xfaces.c. Remove frame
5793 parameter.
5794
57951999-09-23 Gerd Moellmann <gerd@gnu.org>
5796
5797 * xterm.c (XTread_socket) <MotionNotify>: Change #ifdef
5798 USE_X_TOOLKIT to #ifdef USE_TOOLKIT_SCROLL_BARS.
5799
5800 * xdisp.c (resize_mini_window): Use grow_mini_window and
5801 shrink_mini_window.
5802
5803 * window.c (window_min_size): Add parameter ignore_fixed_p.
5804 (change_window_height): Call window_min_size with new parameter.
5805 (shrink_window_lowest_first, save_restore_orig_size,
5806 grow_mini_window, shrink_mini_window): New.
5807 (make_window, replace_window): Initialize orig_top and
5808 orig_height.
5809 (enlarge_window): Renamed from change_window_height. Make it
5810 static.
5811 (Fdisplay_buffer, Fenlage_window, Fshrink_window): Call
5812 enlarge_window instead of change_window_height.
5813
5814 * window.h (struct window): New members orig_top, orig_height.
5815 (toplevel): Add prototypes for grow_mini_window and
5816 shrink_mini_window. Remove prototype for change_window_height.
5817
58181999-09-21 Eli Zaretskii <eliz@gnu.org>
5819
5820 * frame.c (frame_name_fnn_p): Fix previous change.
5821
58221999-09-20 Gerd Moellmann <gerd@gnu.org>
5823
5824 * minibuf.c (toplevel): Move include of stdio.h to other includes.
5825
5826 * dispnew.c (direct_output_for_insert): Cast arguments to
5827 safe_bcopy to char *.
5828
5829 * lread.c (readchar): Remove unused variables.
5830 (read_filtered_event, read1, Fmapatoms): Ditto.
5831 (toplevel): Include intervals.h.
5832
5833 * eval.c (Fsignal): Remove unused variables.
5834 (Fcommandp, do_autoload): Ditto.
5835
5836 * lisp.h: Add prototype for safe_bcopy, fatal.
5837
5838 * editfns.c (init_editfns): Remove unused variables.
5839 (Fgoto_char, Fchar_after, Fformat): Ditto.
5840 (message_text, message_length): Put in #ifndef HAVE_MENUS.
5841
5842 * data.c (find_symbol_value): Remove unused variables.
5843 (Faref, Fstring_to_number): Ditto.
5844 (toplevel): Include stdio.h.
5845 (Fnumber_to_string): Cast XINT to long for %ld.
5846
5847 * casefiddle.c (casify_object): Remove unused variables.
5848 (casify_region): Ditto.
5849
5850 * filelock.c (get_boot_time): Put local variable used in
5851 conditinally compiled section in #ifdef.
5852 (toplevel): Include stdio.h.
5853
5854 * keymap.c (Flookup_key, Faccessible_keymaps, describe_vector,
5855 keys_of_keymap, syms_of_keymap): Remove unused variables.
5856
58571999-09-20 Gerd Moellmann <gerd@gnu.org>
5858
5859 * xdisp.c (sync_frame_with_window_matrix_rows): Disable frame rows
5860 whose corresponding window rows have been disabled in
5861 try_window_id.
5862
58631999-09-20 Gerd Moellmann <gerd@gnu.org>
5864
5865 * xdisp.c (compute_window_start_on_continuation_line): Handle case
5866 that window start is out of range.
5867 (handle_display_prop, handle_single_display_prop): Replace
5868 marginal area specifications like `left-margin' with `(margin
5869 left-margin)'.
5870 (Qmargin): New.
5871 (syms_of_xdisp): Initialize Qmargin.
5872
58731999-09-19 Gerd Moellmann <gerd@gnu.org>
5874
5875 * syntax.c (update_syntax_table, find_defun_start, back_comment,
5876 describe_syntax, skip_chars): Remove unused variables.
5877 (back_comment, forw_comment): Add braces to if-statement with
5878 if-else as dependent statement.
5879
5880 * process.c (list_processes_1): Remove unused variables.
5881 (Fopen_network_stream, create_process): Add parentheses to
5882 conditional expressions.
5883 (create_process): Put declaration of sigchld in #if 0.
5884 (Fopen_network_stream): Removed unused variables.
5885 (Fopen_network_stream, wait_reading_process_input,
5886 wait_reading_process_input, send_process, send_process): Ditto.
5887 (toplevel): Add prototypes for set_waiting_for_input and
5888 keyboard_bit_set.
5889
5890 * abbrev.c (Fexpand_abbrev): Remove unused variables.
5891
5892 * textprop.c (Fset_text_properties): Remove unused variables.
5893 (text_property_list, verify_interval_modification,
5894 interval_has_all_properties): Ditto.
5895
5896 * callproc.c (toplevel) [HAVE_UNISTD_H]: Include unistd.h.
5897 (Fcall_process): Remove unused variable.
5898
5899 * keyboard.c (Frecursive_edit): Remove unused variable.
5900 (command_loop_1, safe_run_hooks, kbd_buffer_get_event,
5901 timer_check, make_lispy_event, menu_bar_items,
5902 menu_bar_one_keymap, menu_bar_item, parse_menu_item,
5903 parse_tool_bar_item, read_char_x_menu_prompt, read_key_sequence,
5904 kbd_buffer_get_event, make_lispy_event, read_char_x_menu_prompt,
5905 read_key_sequence): Ditto. Fread_key_sequence,
5906 Fread_key_sequence_vector, Fsuspend_emacs): Ditto.
5907 (read_key_sequence) [GOBBLE_FIRST_EVENT]: Put local variables only
5908 used when GOBBLE_FIRST_EVENT is defined in #ifdef
5909 (Fexecute_extended_command): Cast XINT to long for %ld.
5910 (toplevel) [HAVE_UNISTD_H]: Include unistd.h.
5911 (toplevel): Include sys/types.h.
5912
5913 * lisp.h (RETURN_UNGCPRO): Use do-while (0) idiom.
5914 (toplevel): Add prototypes for stuff_char, and
5915 code_convert_string_norecord.
5916
59171999-09-19 Gerd Moellmann <gerd@gnu.org>
5918
5919 * buffer.h: Add prototype for r_re_alloc.
5920
5921 * insdel.c (copy_text): Removed unused variables.
5922 (count_combining_after, count_combining_after, insert_1_both,
5923 insert_from_string_1, insert_from_buffer_1, check_markers): Ditto.
5924 (adjust_after_replace, replace_range): Add parentheses to logical
5925 expressions. Remove unused variables.
5926 (CHECK_BYTE_COMBINING_FOR_INSERT): Add parentheses to logical
5927 expression.
5928
5929 * alloc.c (Fgarbage_collect): Remove unused variable.
5930 (compact_strings): Add parentheses around assignments in
5931 conditional context.
5932 (toplevel): Put declaration of unused function clear_marks
5933 in #if 0 like its definition.
5934
5935 * lisp.h: Add prototype for shrink_regexp_cache,
5936 sweep_weak_hash_tables.
5937
59381999-09-19 Dave Love <fx@gnu.org>
5939
5940 * process.c (Fopen_network_stream): Use strerror, not gai_strerror.
5941
5942 * doc.c (read_bytecode_char): Declare arg.
5943
5944 * lisp.h: Declare Fcurrent_message, Fmake_temp_name,
5945 read_bytecode_char, Fx_hide_busy_cursor, getloadavg.
5946
59471999-09-18 Richard Stallman <rms@gnu.org>
5948
5949 * xdisp.c (echo_area_display): Turn off code that returned
5950 without doing anything when using a terminal frame.
5951
83c8f461 59521999-09-17 Richard M. Stallman <rms@gnu.org>
27271329
PR
5953
5954 * unexelf.c (unexec): Don't get confused by a short section
5955 just before the bss section.
5956
26901792
DL
59571999-09-16 Gerd Moellmann <gerd@gnu.org>
5958
5959 * emacs.c (main): Remove unused variables.
5960 (sort_args, Fkill_emacs, Fkill_emacs): Ditto.
5961
5962 * lisp.h: Add prototype for uninterrupt_malloc, memory_warnings,
5963 init_fileio_once, syms_of_sound, init_xfns, init_fns
5964 init_sound, check_message_stack.
5965
5966 * emacs.c (toplevel) [HAVE_UNISTD_H]: Include unistd.h.
5967
5968 * intervals.c (rotate_right, rotate_left): Add braces to avoid
5969 ambiguous else warning.
5970 (split_interval_left): Remove unused variables.
5971 (previous_interval, adjust_intervals_for_deletion,
5972 set_point_both, set_point_both, set_intervals_multibyte_1): Ditto.
5973 (icount, idepth, zero_length): Move into #if 0 section below
5974 original position where these are used.
5975
5976 * buffer.h [REL_ALLOC]: Add prototypes for r_alloc and r_alloc_free.
5977
5978 * buffer.c (Fkill_buffer): Remove unused variables.
5979 (Fkill_buffer, overlays_at, overlays_in, recenter_overlay_lists,
5980 fix_overlays_in_range, Fmove_overlay, Fprevious_overlay_change,
5981 init_buffer_once, (syms_of_buffer): Ditto.
5982
5983 * xrdb.c (get_fallback): Remove unused variable.
5984 (x_load_resources): Ditto. Put local variable used for Motif only
5985 in #ifdef USE_MOTIF.
5986
59871999-09-16 Gerd Moellmann <gerd@gnu.org>
5988
5989 * minibuf.c (read_minibuf): Remove unused variables.
5990 (read_minibuf, Fread_buffer, scmp, Fcompleting_read): Ditto.
5991 (do_completion): Move assignment out of conditional context.
5992 (Fdisplay_completion_list): Add parentheses to conditional expression.
5993
5994 * cm.c (toplevel) [HAVE_TERMCAP_H]: Include termcap.h.
5995
5996 * lisp.h: Add prototype for no_switch_window.
5997
5998 * window.c (Fset_window_buffer): Remove unused variables.
5999 (Fset_window_margins): Ditto.
6000
6001 * xdisp.c (resize_mini_window): Temporarily set the selected
6002 window's or Vminibuf_scroll_window's height to "fixed" around
6003 the call the change_window_height.
6004
6005 * window.c (window_fixed_size_p): Check window's height_fixed_p
6006 flag.
6007
6008 * window.h (struct window): New member height_fixed_p.
6009
6010 * dispnew.c (direct_output_forward_char): Don't use this method
6011 if showing a message or a message was just cleared because we
6012 might need to resize the mini-window.
6013
60141999-09-16 Gerd Moellmann <gerd@gnu.org>
6015
6016 * frame.c (Fdelete_frame): Correct local variable pointing to
6017 selected frame after selecting new frame.
6018
60191999-09-15 Richard Stallman <rms@gnu.org>
6020
6021 * puresize.h (BASE_PURESIZE): Increase to 525000.
6022
6023 * filelock.c (Vtemporary_file_directory): New variable.
6024 (syms_of_filelock): Set up Lisp variable.
6025
60261999-09-15 Gerd Moellmann <gerd@gnu.org>
6027
6028 * term.c (OUTPUT_IF, OUTPUT1_IF): Use do-while.
6029 (encode_terminal_code): Remove unused variables.
6030 (turn_off_face): Ditto.
6031 (toplevel): Include termcap.h if HAVE_TERMCAP_H.
6032
6033 * dispnew.c (update_frame_line): If writing whole desired line,
6034 don't clear to end of line if already at the end.
6035
60361999-09-15 Gerd Moellmann <gerd@gnu.org>
6037
6038 * xdisp.c (resize_mini_window): Don't report changed window
6039 height if it actually hasn't changed.
6040
6041 * widget.c (set_frame_size, EmacsFrameSetCharSize): Remove
6042 unused variables.
6043 (mark_shell_size_user_specified): Put in #if 0 because not used.
6044 (create_frame_gcs): Put in #if 0 because currently unused.
6045 (first_frame_p): Ditto.
6046
6047 * xmenu.c (single_menu_item, Fx_popup_menu, Fx_popup_menu,
6048 single_submenu, update_frame_menubar, set_frame_menubar,
6049 free_frame_menubar, xmenu_show, xdialog_show): Remove unused
6050 variables.
6051
6052 * print.c (PRINTFULLP): Removed because it is no longer used and
6053 is misleading.
6054 (Ferror_message_string): Remove unused variables.
6055 (print_object): Cast argument of sprintf to long for `%ld'
6056 specifier. Remove unused variable.
6057
60581999-09-14 Gerd Moellmann <gerd@gnu.org>
6059
6060 * sound.c (Fplay_sound): Remove usused variables.
6061 (be2hs): Put in #if 0 because it's currently not used.
6062
60631999-09-14 Ken Raeburn <raeburn@gnu.org>
6064
6065 * print.c (Ferror_message_string, print_error_message,
6066 print_object): Use XCAR, XCDR and XFLOAT_DATA instead of explicit
6067 member access.
6068
60691999-09-14 Gerd Moellmann <gerd@gnu.org>
6070
6071 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Put code in do-while.
6072
6073 * frame.c (Fnext_frame): Remove unused variable(s).
6074 (Fprevious_frame, Fmouse_pixel_position, frame_name_fnn_p): Ditto.
6075 (store_frame_param): Add parentheses to conditional expression.
6076 (Fmodify_frame_parameters): Remove unused variables.
6077 (Fmodify_frame_parameters, Fset_frame_size, Fset_frame_position):
6078 Ditto.
6079
6080 * xfns.c (x_set_background_color): Remove unused variable(s).
6081 (x_set_border_pixel): Ditto.
6082 (x_set_menu_bar_lines): Put local variable used only for
6083 non-toolkit case in #ifdef/#endif.
6084 (x_figure_window_size): Remove unused variable(s).
6085 (x_figure_window_size, x_window, lookup_image,
6086 xbm_read_bitmap_file_data, x_build_heuristic_mask, pbm_load,
6087 png_load, jpeg_load, gif_load, x_create_tip_frame,
6088 x_create_tip_frame, Fx_show_tip, x_set_border_pixel): Ditto.
6089
6090 * xterm.c (x_scroll_bar_handle_click): Compile only if
6091 not USE_TOOLKIT_SCROLL_BARS.
6092 (x_scroll_bar_set_handle, x_scroll_bar_note_movement): Ditto.
6093
6094 * dispextern.h: Add prototypes for gamma_correct and
6095 x_kill_gs_process.
6096
6097 * xterm.c (x_produce_glyphs): Remove unused variable(s).
6098 (x_alloc_nearest_color_for_widget, note_tool_bar_highlight,
6099 x_set_toolkit_scroll_bar_thumb): Ditto.
6100 (x_scroll_bar_create): Move local variable to the
6101 conditionally compiled section of code where it is used.
6102 (x_scroll_bar_create): Remove unused variable(s).
6103 (x_scroll_bar_remove, XTread_socket): Ditto.
6104 (XTread_socket) <ConfigureNotify>: Move variables used for
6105 non-toolkit case into conditionally compiled section of code.
6106
6107 * window.h (freeze_window_starts): Fix typo in prototype.
6108
6109 * xdisp.c (display_echo_area_1, try_window_id): Remove unused
6110 variable(s).
6111
6112 * lisp.h: Add prototype for debug_print.
6113
6114 * dispextern.h (xassert) [GLYPH_DEBUG]: Change definition
6115 to use do-while.
6116
6117 * fns.c (SXHASH_COMBINE): Add missing parentheses.
6118 (Fchar_table_range, Fset_char_table_default, mapcar1,
6119 Fyes_or_no_p, sweep_weak_hash_tables): Remove unused variable(s).
6120
6121 * lisp.h: Add prototype for getloadavg.
6122
61231999-09-14 Andreas Schwab <schwab@gnu.org>
6124
6125 * process.c (Fopen_network_stream): Avoid socket decriptor leak.
6126
6127 * lisp.h: Declare close_file_unwind.
6128
61291999-09-14 Richard Stallman <rms@gnu.org>
6130
6131 * filelock.c (get_boot_time): Make the temp name in the proper dir.
6132
61331999-09-13 Gerd Moellmann <gerd@gnu.org>
6134
6135 * xdisp.c (redisplay_window): Make sure start_at_line_beg
6136 is always set correctly.
6137
61381999-09-13 Dave Love <fx@gnu.org>
6139
6140 * xdisp.c (move_it_in_display_line_to): Make type consistent with
6141 declaration.
6142
61431999-09-13 Gerd Moellmann <gerd@delysid.gnu.org>
6144
6145 * xdisp.c (QCfile): Move here from xfns.c.
6146 (syms_of_xdisp): Initialize it.
6147 (message2_nolog): Change for Lisp_Object selected_frame.
6148 (message3_nolog, message_with_string, message,
6149 setup_echo_area_for_printing, truncate_echo_area,
6150 prepare_menu_bars, redisplay_internal, Fdump_tool_bar_row): Ditto.
6151
61521999-09-13 Dave Love <fx@gnu.org>
6153
6154 * xterm.c: Don't continue #define args for benefit of old cc.
6155 (xt_action_hook): Indent #error for benefit of K&R cc.
6156
61571999-09-13 Gerd Moellmann <gerd@delysid.gnu.org>
6158
6159 * xterm.c (XTcursor_to): Change for Lisp_Object selected_frame.
6160 (x_clear_frame, XTring_bell, XTmouse_position, XTread_socket): Ditto.
6161 (XRINGBELL): Removed.
6162
61631999-09-13 Dave Love <fx@gnu.org>
6164
6165 * xfns.c (x_put_x_image): Make type consistent with declaration.
6166
6167 * fns.c (Fmake_hash_table): Fix string continuation.
6168
61691999-09-13 Gerd Moellmann <gerd@delysid.gnu.org>
6170
6171 * xfns.c (QCfile): Moved to xdisp.c.
6172 (syms_of_xfns): Don't initialize QCfile.
6173 (check_x_frame): Change for Lisp_Object selected_frame.
6174 (check_x_display_info, x_get_resource_string): Ditto.
6175
61761999-09-13 Gerd Moellmann <gerd@gnu.org>
6177
6178 * minibuf.c (choose_minibuf_frame): Don't try to set the
6179 mini-buffer window's buffer, if the buffer is invalid.
6180
6181 * xfns.c (QCfile): Moved to xdisp.c.
6182 (syms_of_xfns): Don't initialize QCfile.
6183
6184 * xdisp.c (QCfile): Move here from xfns.c.
6185 (syms_of_xdisp): Initialize it.
6186
6187 * lisp.h (selected_frame): Add external declaration.
6188
6189 * xselect.c (x_own_selection): Change for Lisp_Object selected_frame.
6190 (Fx_store_cut_buffer_internal): Ditto.
6191 (Fx_rotate_cut_buffers_internal): Ditto.
6192
6193 * xfaces.c (frame_or_selected_frame): Change for Lisp_Object
6194 selected_frame.
6195 (Finternal_set_lisp_face_attribute): Ditto.
6196 (Finternal_get_lisp_face_attribute): Ditto.
6197 (Finternal_lisp_face_empty_p): Ditto.
6198 (Fdump_face): Ditto.
6199
6200 * term.c (OUTPUT): Change for Lisp_Object selected_frame.
6201 (OUTPUT_IF, ring_bell, set_terminal_modes, reset_terminal_modes,
6202 set_terminal_window, set_scroll_region, reassert_line_highlight,
6203 change_line_highlight, cursor_to, raw_cursor_to, clear_to_end,
6204 clear_end_of_line, clear_end_of_line_raw, clear_end_of_line_raw,
6205 encode_terminal_code, write_glyphs, term_init): Ditto.
6206
6207 * sysdep.c (reset_sys_modes): Change for Lisp_Object selected_frame.
6208 (kbd_input_ast, read_input_waiting): Ditto.
6209
6210 * minibuf.c (choose_minibuf_frame): Change for Lisp_Object
6211 selected_frame.
6212 (read_minibuf): Ditto.
6213
6214 * keyboard.c (command_loop_1): Change for Lisp_Object
6215 selected_frame.
6216 (cmd_error_internal, command_loop_1, read_char,
6217 kbd_buffer_get_event, read_avail_input,
6218 read_char_minibuf_menu_prompt, read_key_sequence, Fsuspend_emacs,
6219 interrupt_signal, quit_throw_to_read_char): Ditto.
6220
6221 * fontset.c (Ffont_info): Change for Lisp_Object selected_frame.
6222 (Ffontset_info): DItto.
6223
6224 * emacs.c (handle_USR1_signal): Change for Lisp_Object selected_frame.
6225
6226 * dispnew.c (selected_frame): Make it a Lisp_Object.
6227 (adjust_frame_glyphs_initially): Change for Lisp_Object selected_frame.
6228 (direct_output_for_insert, direct_output_forward_char,
6229 init_display): Ditto.
6230
6231 * data.c (swap_in_symval_forwarding): Change for Lisp_Object
6232 selected_frame.
6233 (set_internal): Ditto.
6234
6235 * buffer.c (Fother_buffer): Change for Lisp_Object selected_frame.
6236 (record_buffer): Ditto.
6237
6238 * frame.c (Fmake_terminal_frame): Use SELECTED_FRAME.
6239 (do_switch_frame): Change for Lisp_Object selected_frame.
6240 (Fselected_frame): Ditto.
6241 (Fframe_first_window): Use SELECTED_FRAME.
6242 (Fframe_root_window): Change for Lisp_Object selected_frame.
6243 (Fframe_selected_window, Fset_frame_selected_window, Fnext_frame,
6244 Fprevious_frame, other_visible_frames, Fdelete_frame,
6245 Fmouse_position, Fmouse_pixel_position, Fmake_frame_visible,
6246 Fmake_frame_invisible, Ficonify_frame, Fraise_frame, Flower_frame,
6247 Fframe_parameters, Fmodify_frame_parameters, Fframe_char_height,
6248 Fframe_char_width, Fframe_pixel_height, Fframe_pixel_width,
6249 Fset_frame_height, Fset_frame_width): Ditto.
6250
62511999-09-13 Gerd Moellmann <gerd@gnu.org>
6252
6253 * xdisp.c (message2_nolog): Change for Lisp_Object selected_frame.
6254 (message3_nolog, message_with_string, message,
6255 setup_echo_area_for_printing, truncate_echo_area,
6256 prepare_menu_bars, redisplay_internal, Fdump_tool_bar_row): Ditto.
6257
6258 * xmenu.c (Fx_popup_menu): Change for Lisp_Object selected_frame.
6259 (Fx_popup_dialog): Ditto.
6260
6261 * xfns.c (check_x_frame): Change for Lisp_Object selected_frame.
6262 (check_x_display_info, x_get_resource_string): Ditto.
6263
6264 * xterm.c (XTcursor_to): Change for Lisp_Object selected_frame.
6265 (x_clear_frame, XTring_bell, XTmouse_position, XTread_socket): Ditto.
6266 (XRINGBELL): Removed.
6267
6268 * window.c (Fminibuffer_window): Change for Lisp_Object
6269 selected_frame.
6270 (Fwindow_at, Fprevious_window, window_loop, select_window_1,
6271 display_buffer_1, Fdisplay_buffer, temp_output_buffer_show,
6272 Fcurrent_window_configuration, init_window_once): Ditto.
6273
6274 * frame.h (SELECTED_FRAME): New.
6275
62761999-09-12 Ken Raeburn <raeburn@gnu.org>
6277
6278 * category.c (word_boundary_p): Use XCAR and XCDR.
6279 * ccl.c (ccl_driver, resolve_symbol_ccl_program,
6280 Fregister_code_conversion_map): Likewise.
6281 * coding.c (setup_coding_system, detect_coding_system,
6282 Ffind_operation_coding_system, Fset_coding_priority_internal):
6283 Likewise.
6284 * doc.c (get_doc_string, Fdocumentation,
6285 store_function_docstring): Likewise.
6286 * editfns.c (save_restriction_restore): Likewise.
6287 * eval.c (Fcond, Fmacroexpand, Fcondition_case, wants_debugger,
6288 skip_debugger, find_handler_clause, Fautoload, Fapply,
6289 run_hook_with_args, run_hook_list_with_args, Ffetch_bytecode):
6290 Likewise.
6291 * fileio.c (Ffind_file_name_handler, Finsert_file_contents,
6292 Fwrite_region, do_auto_save_unwind, Fdo_auto_save,
6293 Fread_file_name): Likewise.
6294 * filelock.c (unlock_all_files): Likewise.
6295 * insdel.c (Fcombine_after_change_execute): Likewise.
6296 * intervals.c (adjust_intervals_for_insertion): Likewise.
6297 * keymap.c (get_keymap_1, Fkeymap_parent, Fset_keymap_parent,
6298 Fset_keymap_parent, fix_submap_inheritance, access_keymap,
6299 store_in_keymap, Fcopy_keymap, define_as_prefix,
6300 current_minor_maps, Faccessible_keymaps,
6301 accessible_keymaps_char_table, Fkey_description,
6302 Fwhere_is_internal, where_is_internal_2, where_is_internal_1,
6303 describe_buffer_bindings, describe_map_tree, shadow_lookup,
6304 describe_map): Likewise.
6305 * lread.c (Fload, load_unwind, close_load_descs, read_vector,
6306 read_list, init_lread): Likewise.
6307 * search.c (Fmatch_data): Likewise.
6308 * sunfns.c (Fsun_menu_internal): Likewise.
6309 * syntax.c (describe_syntax): Likewise.
6310 * undo.c (record_insert, record_delete, Fundo_boundary,
6311 truncate_undo_list): Likewise.
6312 * vmsproc.c (child_sig): Likewise.
6313
6314 * editfns.c (Fformat): Use XFLOAT_DATA.
6315
63161999-09-12 Gerd Moellmann <gerd@gnu.org>
6317
6318 * keyboard.c (command_loop_1): Resize mini-window to the
6319 exact size of a message displayed, if any.
6320
6321 * xdisp.c (resize_mini_window): Add parameter exact_p. Resize
6322 to exact size if exact_p is non-zero.
6323 (display_echo_area_1): Call resize_mini_window with
6324 new parameter.
6325 (redisplay_internal): Ditto.
6326 (resize_echo_area_axactly): New.
6327
6328 * minibuf.c (read_minibuf_unwind): Call resize_mini_window with
6329 new parameter.
6330
6331 * dispextern.h: Change prototype of resize_mini_window.
6332 Add prototype for resize_echo_area_axactly.
6333
6334 * xfaces.c (Fx_family_fonts): Replaces Fx_font_list.
6335 (syms_of_xfaces): Defsubr accordingly.
6336
6337 * xdisp.c (hscroll_window_tree): Choose cursor row from
6338 desired or current matrix.
6339 (redisplay_internal): Hscroll before updating.
6340
63411999-09-12 Gerd Moellmann <gerd@gnu.org>
6342
6343 * syntax.c (Fforward_word): Use prompt_end_charpos instead
6344 of minibuffer_prompt_length.
6345
6346 * minibuf.c (read_minibuf): Use prompt_end_charpos instead
6347 of minibuffer_prompt_length.
6348 (read_minibuf_unwind): Ditto.
6349 (Fminibuffer_complete_and_exit): Ditto.
6350 (Fminibuffer_complete_word): Ditto.
6351 (Fminibuffer_prompt_end): Ditto.
6352
6353 * editfns.c (Fbuffer_string): Use prompt_end_charpos instead
6354 of minibuffer_prompt_length.
6355 (Fline_beginning_position): Ditto.
6356
6357 * buffer.c (Fget_buffer_create): Use prompt_end_charpos instead
6358 of minibuffer_prompt_length.
6359 (Fmake_indirect_buffer): Ditto.
6360 (Fkill_buffer): Ditto.
6361 (Ferase_buffer): Ditto.
6362
6363 * buffer.h (prompt_end_charpos): Replaces
6364 minibuffer_prompt_length.
6365
6366 * minibuf.c (read_minibuf): Return mini-buffer contents
6367 without the prompt.
6368
6369 * editfns.c (make_buffer_string_both): Take out the code
6370 to handle mini-buffer prompts.
6371 (Fbuffer_string): Handle the prompt here, instead.
6372
6373 * xfaces.c (lface_from_face_name): Resolve face aliases.
6374 (Qmode_line): Replaces Qmodeline.
6375 (realize_basic_faces): Use Qmode_line.
6376 (syms_of_xfaces): Initialize Qmode_line.
6377
63781999-09-12 Gerd Moellmann <gerd@gnu.org>
6379
6380 * minibuf.c (read_minibuf): Set minibuf_prompt_width to the
6381 current column after inserting prompt.
6382 (Fminibuffer_prompt_width): Return minibuf_prompt_width.
6383
6384 * xfaces.c (Qframe_update_face_colors): New.
6385 (syms_of_xfaces): Initialize call.
6386 (update_face_from_frame_parameter): Call that function when
6387 the frame's background changes.
6388
63891999-09-12 Richard Stallman <rms@gnu.org>
6390
6391 * insdel.c (del_range_1): Don't treat minibuffer prompt specially.
6392
63931999-09-12 Ken Raeburn <raeburn@gnu.org>
6394
6395 * alloc.c (Fcons, pure_cons, Fpurecopy, Fgarbage_collect,
6396 mark_object, mark_buffer): Use XCAR and XCDR.
6397 * bytecode.c (Fbyte_code): Likewise.
6398 * callint.c (Fcall_interactively, Fprefix_numeric_value):
6399 Likewise.
6400 * callproc.c (Fcall_process, Fcall_process_region, child_setup,
6401 getenv_internal): Likewise.
6402 * dired.c (file_name_completion): Likewise.
6403 * fns.c (Fsafe_length, concat, Fcopy_alist, Fmember, Fmemq, Fassq,
6404 assq_no_quit, Fassoc, Frassq, Frassoc, Fdelq, Fdelete, Freverse,
6405 Fplist_get, Fplist_put, internal_equal, mapcar1): Likewise.
6406 * indent.c (Fcompute_motion): Likewise.
6407 * process.c (decode_status, Fprocess_status, Fprocess_exit_status,
6408 list_processes_1, Fstart_process, Fopen_network_stream,
6409 wait_reading_process_input, read_process_output_call,
6410 kill_buffer_processes, sigchld_handler, exec_sentinel_unwind,
6411 status_notify, wait_reading_process_input): Likewise.
6412 * textprop.c (PLIST_ELT_P, property_value, set_properties,
6413 extend_property_ranges): Likewise.
6414 * w32faces.c (Fpixmap_spec_p, merge_face_list): Likewise.
6415 * w32fns.c (x_window_to_frame, x_set_frame_parameters,
6416 x_report_frame_params, x_set_cursor_type, x_icon_type,
6417 x_figure_window_size, Fx_create_frame, w32_load_system_font,
6418 w32_load_font, enum_font_cb2, w32_list_bdf_fonts, w32_list_fonts,
6419 w32_list_synthesized_fonts, w32_find_ccl_program, Fx_list_fonts,
6420 Fw32_find_bdf_fonts, w32_find_bdf_fonts_in_dir,
6421 x_display_info_for_name, Fx_display_list): Likewise.
6422 * w32menu.c (menubar_id_to_frame, single_keymap_panes,
6423 Fx_popup_menu, Fx_popup_dialog): Likewise.
6424 * w32proc.c (Fw32_set_keyboard_layout): Likewise.
6425 * w32term.c (x_window_to_scroll_bar, w32_read_socket,
6426 w32_term_init, x_delete_display): Likewise.
6427 * xfns.c (x_window_to_frame, x_any_window_to_frame,
6428 x_non_menubar_window_to_frame, x_menubar_window_to_frame,
6429 x_top_window_to_frame, x_set_frame_parameters,
6430 x_report_frame_params, x_set_cursor_type, x_icon_type,
6431 x_figure_window_size, Fx_create_frame, x_display_info_for_name,
6432 Fx_display_list, x_create_tip_frame): Likewise.
6433 * xmenu.c (menubar_id_to_frame, single_keymap_panes,
6434 Fx_popup_menu, Fx_popup_dialog): Likewise.
6435 * xselect.c (x_own_selection, x_get_local_selection,
6436 x_handle_selection_request, x_handle_selection_clear,
6437 x_clear_frame_selections, wait_for_property_change_unwind,
6438 wait_for_property_change, x_handle_property_notify,
6439 copy_multiple_data, x_get_foreign_selection,
6440 lisp_data_to_selection_data, clean_local_selection_data,
6441 x_handle_selection_notify, Fx_get_selection_internal,
6442 x_disown_buffer_selections): Likewise.
6443 * xterm.c (x_window_to_scroll_bar, XTread_socket, x_list_fonts,
6444 x_load_font, x_find_ccl_program, x_term_init, x_delete_display):
6445 Likewise.
6446
6447 * alloc.c (make_float, make_pure_float, Fpurecopy): Use
6448 XFLOAT_DATA.
6449 * bytecode.c (Fbyte_code): Likewise.
6450 * floatfns.c (extract_float, Fexpt, Fabs, rounding_driver,
6451 fmod_float): Likewise.
6452
64531999-09-11 Richard Stallman <rms@gnu.org>
6454
6455 * xdisp.c (run_window_scroll_functions): If hook functions switch
6456 buffers, switch back after.
6457
64581999-09-11 Ken Raeburn <raeburn@gnu.org>
6459
6460 * charset.h (GET_TRANSLATION_TABLE): Use XCDR.
6461 * frame.h (FOR_EACH_FRAME): Use XCAR and XCDR.
6462 (PIXEL_X_FROM_CANON_X, PIXEL_Y_FROM_CANON_Y): Use XFLOAT_DATA.
6463 * keyboard.h (EVENT_HEAD, EVENT_START, EVENT_END, POSN_WINDOW,
6464 POSN_BUFFER_POSN, POSN_WINDOW_POSN, POSN_TIMESTAMP): Use XCAR and
6465 XCDR.
6466 * syntax.h (SYNTAX, SYNTAX_WITH_FLAGS, SYNTAX_MATCH): Use XCAR and
6467 XCDR.
6468
64691999-09-10 Richard Stallman <rms@gnu.org>
6470
6471 * xterm.c (XTread_socket): In XSetInputFocus, use RevertToParent,
6472 not RevertToPointerRoot.
6473 (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
6474 Fix the code to clear around the scroll bar.
6475
64761999-09-10 Keisuke Nishida <kxn30@po.cwru.edu>
6477
6478 * print.c: Support print-circle and related features.
6479 (Vprint_gensym_alist): Removed.
6480 (Vprint_circle, Vprint_continuous_numbering, print_number_index
6481 Vprint_number_table): New variables.
6482 (PRINT_NUMBER_OBJECT, PRINT_NUMBER_STATUS): New macros.
6483 (PRINTPREPARE, PRINTFINISH): Don't set Vprint_gensym_alist.
6484 (print, print_preprocess, print_preprocess_string, print_object):
6485 New/modified functions with print-circle feature. Use
6486 Vprint_number_table instead of Vprint_gensym_alist for print-gensym.
6487 (syms_of_print): Defined new Lisp variables `print-circle',
6488 `print-continuous-numbering', `print-number-table'.
6489
64901999-09-10 Gerd Moellmann <gerd@gnu.org>
6491
6492 * xfns.c (x_build_heuristic_mask): Accept a list `(R G B)'
6493 as background color specification instead of an integer.
6494 (image-cache-eviction-delay): Replaces image-eviction-seconds.
6495 (Vimage_cache_eviction_delay): Replaces Vimage_eviction_seconds.
6496 (clear_image_cache, syms_of_xfns): Use it.
6497 (Qpostscript): Replaces Qghostscript.
6498 (gs_type): Use it.
6499 (gs_image_p): Ditto.
6500 (syms_of_xfns): Initialize Qpostscript.
6501
65021999-09-10 Richard Stallman <rms@gnu.org>
6503
6504 * buffer.c (Ferase_buffer): Don't erase the minibuffer prompt.
6505
65061999-09-09 Richard Stallman <rms@gnu.org>
6507
6508 * editfns.c (Fline_beginning_position): Handle minibuffer prompt here.
6509
6510 * cmds.c (Fbeginning_of_line): Don't handle minibuffer prompt here.
6511
65121999-09-09 Gerd Moellmann <gerd@gnu.org>
6513
6514 * fns.c (Fmakehash): Accept just one optional argument TEST.
6515
6516 * xfns.c (QCindex): New.
6517 (syms_of_xfns): Initialize QCindex.
6518 (gif_load): Use it instead of `:image'.
6519
65201999-09-09 Richard Stallman <rms@gnu.org>
6521
6522 * fileio.c (Fwrite_region): Finish renaming CONFIRM to MUSTBENEW.
6523 (Fwrite_region) [DOS_NT]: Handle `excl' here too.
6524
65251999-09-08 Gerd Moellmann <gerd@gnu.org>
6526
6527 * xdisp.c (Qwhen): Replaces QCwhen.
6528 (syms_of_xdisp): Initialized it instead of QCwhen.
6529 (handle_single_display_prop): Use it instead of QCwhen.
6530
65311999-09-08 Ken'ichi Handa <handa@gnu.org>
6532
6533 * charset.c (translate_char): Reset MSBs of arguments of
6534 MAKE_CHAR.
6535 (CHAR_COMPONENTS_VALID_P): Fix for ASCII.
6536
65371999-09-08 Lars Magne Ingebrigtsen <larsi@gnus.org>
6538
6539 * editfns.c (Fbufsize): Accept an extra BUFFER parameter.
6540
6541 * fns.c (Fbase64_decode_region): Don't place point outside of the
6542 current accessible portion.
6543
65441999-09-07 Richard Stallman <rms@gnu.org>
6545
6546 * keymap.c (fix_submap_inheritance): Do nothing if the proper
6547 parent is an ancestor of SUBMAP; otherwise, add it as the
6548 ultimate ancestor.
6549
65501999-09-07 Gerd Moellmann <gerd@gnu.org>
6551
6552 * xdisp.c (handle_single_display_prop): Change conditional
6553 display property to `:when FORM . VALUE'.
6554
65551999-09-07 Richard Stallman <rms@gnu.org>
6556
6557 * fileio.c (Fwrite_region): Doc fix.
6558
65591999-09-07 Stefan Monnier <monnier@cs.yale.edu>
6560
6561 * fileio.c (Qexcl): New variable.
6562 (report_file_error): Handle EEXIST specially.
6563 (Fwrite_region): Special handling for CONFIRM = `excl'.
6564 (syms_of_fileio): Initialize Qexcl.
6565
65661999-09-07 Gerd Moellmann <gerd@gnu.org>
6567
6568 * xfns.c (x_set_foreground_color): Call
6569 update_face_from_frame_parameter.
6570 (x_set_background_color): Ditto.
6571 (x_set_mouse_color): Ditto.
6572 (x_set_cursor_color): Ditto.
6573 (x_set_border_color): Ditto.
6574 (x_set_scroll_bar_foreground): Ditto.
6575 (x_set_scroll_bar_background): Ditto.
6576
6577 * xfaces.c (recompute_basic_faces): Clear face cache.
6578 (Finternal_set_lisp_face_attribute): Modify frame parameters
6579 if attributes of certain faces are changed.
6580 (update_face_from_frame_parameter): New.
6581
6582 * xfaces.c (realize_basic_faces): Realize new basic faces.
6583
6584 * dispextern.h (SCROLL_BAR_FACE_ID, BORDER_FACE_ID,
6585 CURSOR_FACE_ID, MOUSE_FACE_ID): New.
6586
6587 * xfaces.c (Qscroll_bar, Qcursor, Qborder, Qmouse): New.
6588 (syms_of_xfaces): Intialize new symbols.
6589
6590 * fns.c (Fmakehash): Take one argument, test, make all the
6591 rest keyword arguments.
6592
6593 * window.c (Fset_window_margins): Make window the first argument.
6594 (set_window_buffer): Call Fset_window_margins with window as first
6595 argument.
6596
65971999-09-07 Gerd Moellmann <gerd@gnu.org>
6598
6599 * xfaces.c (Qfringe): Replaces Qmargin.
6600
66011999-09-07 Kenichi Handa <handa@etl.go.jp>
6602
6603 * charset.h: Lots of comments fixed.
6604 (PARSE_MULTIBYTE_SEQ): Make it work also for ASCII string.
6605 (STRING_CHAR_AND_CHAR_LENGTH): This macro removed.
6606
6607 * charset.c : Lots of comments fixed.
6608 (SPLIT_MULTIBYTE_SEQ): Make it work also for ASCII string.
6609 (CHAR_COMPONENTS_VALID_P): Name changed from
6610 CHAR_COMPONENT_VALID_P. Caller changed.
6611
66121999-09-06 Richard Stallman <rms@gnu.org>
6613
6614 * insdel.c (syms_of_insdel): Define Lisp variable
6615 inhibit-modification-hooks.
6616
66171999-09-06 Michael Sperber [Mr. Preprocessor] <sperber@informatik.uni-tuebingen.de>
6618
6619 * s/aix4-2.h (ALIGN_DATA_RELOC): Undefined to support new
6620 unexaix.c.
6621
6622 * s/aix3-1.h (ALIGN_DATA_RELOC): Defined to support new unexaix.c.
6623
66241999-09-06 Dave Love <fx@gnu.org>
6625
6626 * unexaix.c: New version incorporating Michael Sperber's changes
6627 from XEmacs. Should solve problems on AIX 4.3.
6628
6629 * lread.c (Vbyte_boolean_vars): New variable.
6630 (defvar_bool, syms_of_lread): Use it.
6631
66321999-09-05 Richard Stallman <rms@gnu.org>
6633
6634 * minibuf.c (read_minibuf): Put all three properties on the
6635 same range, the whole prompt.
6636
66371999-09-05 Gerd Moellmann <gerd@gnu.org>
6638
6639 * sound.c (Qplay_sound_functions): Replaces Qplay_sound_hook.
6640 (Fplay_sound, syms_of_sound): Use it.
6641 (parse_sound): Allow float volume values in the range [0, 1].
6642 (Fplay_sound): Ditto.
6643
6644 * window.c (Fset_window_vscroll): Make window the first argument,
6645 amount to scroll the second. Take non-negative vscroll as
6646 argument.
6647 (Fwindow_vscroll): Return non-negative vscroll.
6648
6649 * xfns.c (Fx_show_tip): Improve documentation.
6650
66511999-09-05 Gerd Moellmann <gerd@gnu.org>
6652
6653 * buffer.c, buffer.h, dispextern.h, dispnew.c, keyboard.c,
6654 window.c, xdisp.c, xfaces.c, xterm.c, keyboard.h: Change
6655 `top-line' and `top_line' to `header-line' and `header_line'.
6656 Likewise for similar spellings.
6657
66581999-09-05 Gerd Moellmann <gerd@gnu.org>
6659
6660 * xdisp.c (row_containing_pos): New.
6661 (try_window_id): Use it.
6662
6663 * alloc.c, dispextern.h, dispnew.c, frame.c, frame.h, keyboard.c,
6664 lisp.h, termhooks.h, window.c xdisp.c, xfaces.c, xfns.c, xterm.c:
6665 Change spelling of `toolbar' to `tool_bar' or `tool-bar'.
6666 Likewise for upper-case etc.
6667
66681999-09-05 Gerd Moellmann <gerd@gnu.org>
6669
6670 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
6671 Fix reference to renamed variable.
6672
66731999-09-04 Gerd Moellmann <gerd@gnu.org>
6674
6675 * window.c (Qwindow_size_fixed): Replaces Qfixed_window_size.
6676 (window_fixed_size_p): Use Qwindow_size_fixed instead of
6677 Qfixed_window_size.
6678 (syms_of_window): Ditto.
6679
6680 * fns.c (Fmakehash): Exchange optional test and size arguments.
6681
66821999-09-03 Gerd Moellmann <gerd@gnu.org>
6683
6684 * xterm.c (XTset_vertical_scroll_bar): Block input when clearing
6685 under newly created scroll bar.
6686 (expose_window): If window is not yet fully initialized, do
6687 nothing. This can happen when toolkit scroll bars are used and a
6688 window is split. Reconfiguring the scroll bars will generate an
6689 expose for a newly created window.
6690
6691 * frame.h (struct frame): New member `gamma'.
6692
6693 * xfns.c: Include math.h. Add extern declaration for atof in case
6694 we don't see one.
6695 (Qscreen_gamma): New.
6696 (struct x_frame_parm_table): Add prototypes, add
6697 x_set_screen_gamma.
6698 (gamma_correct): New function.
6699 (defined_color): Call it.
6700 (x_set_screen_gamma): New.
6701 (x_set_title): Add parameter old_value.
6702 (RES_TYPE_FLOAT): New.
6703 (x_get_arg): Handle RES_TYPE_FLOAT.
6704 (Fx_create_frame): Call x_default_parameter for `screen-gamma'.
6705 (lookup_pixel_color): Change call to x_alloc_nearest_color to
6706 new prototype.
6707 (lookup_rgb_color): Ditto.
6708 (syms_of_xfns): Initialize Qscreen_gamma.
6709
6710 * xterm.c (x_alloc_nearest_color_for_widget) [USE_X_TOOLKIT]:
6711 New. Allocate color for lwlib widgets.
6712 (x_alloc_nearest_color): Change parameter list include the
6713 frame on which to allocate colors. Gamma-correct colors.
6714 (x_alloc_lighter_color): Call x_alloc_lighter_color with new
6715 parameter list.
6716
6717 * xterm.h: Change protorype of x_alloc_nearest_color.
6718
67191999-09-03 Richard Stallman <rms@gnu.org>
6720
6721 * callproc.c: Delete the system-independent include of stdlib.h
6722 (leaving only the one in the WINDOWSNT conditional).
6723
67241999-09-03 Andrew Choi <choi@cs.hku.hk>
6725
6726 * callproc.c (call-process) [macintosh]: Call mac_run_command in
6727 sysdep.c. The Mac code is modeled after the DOS code.
6728
6729 * dispextern.h [macintosh]: Include macterm.h to define substitute X
6730 Window types and macros.
6731
6732 * frame.h: Do nothing if included a second time.
6733 (enum output_method): Add mac_output frame type.
6734 (union output_data): Add new alternative `mac'.
6735 (FRAME_MAC_P): New macro.
6736
6737 * frame.c (Fframep) [macintosh]: Handle mac frame type.
6738 (syms_of_frame_1): Initialize Qmac.
6739 (make_terminal_frame) [macintosh]: Initialize output_data.mac fields.
6740 (Fmake_terminal_frame) [macintosh]: Add an alternate error check.
6741 (Fmodify_frame_parameters) [macintosh]: Call
6742 mac_set_frame_parameter in macterm.c.
6743
6744 * keyboard.c [macintosh]: Set KBD_BUFFER_SIZE to a smaller value
6745 (512) because Mac compilers limit local data of a function to 32K.
6746
6747 * make-docfiles.c: Correctly handle input files with Mac-style
6748 eol's.
6749
6750 * sysdep.c: Define numerous routines to emulate Unix system calls.
6751
6752 * xfaces.c: on MacOS, define the set of colors listed in rgb.txt
6753 file of an X Window environment.
6754
6755 * xfaces.c: on MacOS, define the Lisp functions x-display-color-p,
6756 x-display-grayscale, x-color-defined-p, and x-color-values.
6757
6758 * sysdep.c [macintosh] (stat, fstat, mkdir, rmdir, utime, access)
6759 (open, creat, unlink, read, write, rename, fopen, pause, alarm)
6760 (signal, sleep, gmtime, localtime, ctime, time, index, mktemp)
6761 (getpwuid, getpwnam, dup, dup2, isatty, getgid, getegid, getuid)
6762 (geteuid, getpid, getenv, uname, opendir, closedir, readdir, getwd.):
6763 New functions, replacing POSIX features.
6764
6765 * sysdep.c [macintosh] (Mac2UnixPathname, Unix2MacPathname, CheckAlarm)
6766 (InitMyPasswd, GetTempDirName, mystrchr, mystrtok, mystrcpy):
6767 (InitEmacsPasswdDir, run_mac_command): New subroutines.
6768
6769 * sysdep.c [macintosh] (targetTicks, alarm_signal_func, myPasswdName)
6770 (myPasswd, emacsPasswdDir, emacsPasswd, myPasswdInited, mask)
6771 (myPasswdDir, TempDirName, sys_siglist): New variables.
6772
6773 * sysdep.c [macintosh] (execvp, wait, croak, fork, kill, sigsetmask)
6774 (sigblock, request_sigio, unrequest_sigio, setpgrp, pipe, symlink)
6775 (link, lstat, readlink, umask, chmod, sbrk, fsync, ioctl):
6776 Define empty stubs so Emacs will link.
6777
67781999-09-03 Gerd Moellmann <gerd@gnu.org>
6779
6780 * xdisp.c: Use XCAR and XCDR instead of XCONS.
6781
6782 * window.h: New member frozen_window_start_p.
6783
6784 * window.c (foreach_window, foreach_window_1): New.
6785 (freeze_window_start, freeze_window_starts): New.
6786 (make_window): Initialize frozen_window_start_p.
6787 (replace_window): Ditto.
6788 (Fset_window_point): Remove references to deleted variables.
6789 (Fset_window_start): Ditto.
6790
6791 * xdisp.c (Vresize_mini_config, resize_mini_frame,
6792 resize_mini_initial_height): Removed.
6793 (syms_of_xdisp): Remove references to these variables.
6794 (resize_mini_window): Don't save window configuration, freeze
6795 window starts instead. Enlarge window until displaying an empty
6796 buffer, then shrink it. Make the function externally visible.
6797 (redisplay_window): Treat frozen window start like forced start,
6798 but accept point outside of the window.
6799
6800 * dispextern.h: Add function prototype for resize_mini_window.
6801
6802 * minibuf.c (read_minibuf_unwind): Resize mini-window when
6803 reaching minibuf_level 0.
6804
6805 * lisp.h: Remove extern declarations for variables deleted from
6806 xdisp.c.
6807
6808 * dispnew.c (adjust_frame_glyphs): Remove reference to
6809 Vresize_mini_config.
6810
68111999-09-03 Gerd Moellmann <gerd@gnu.org>
6812
6813 * xfns.c (x_set_scroll_bar_width): Change conditional compilation
6814 to USE_TOOLKIT_SCROLL_BARS.
6815
6816 * xterm.c (x_scroll_bar_create): Don't clear under scroll bar
6817 here.
6818 (XTset_vertical_scroll_bar): Clarify position computations. Clear
6819 under newly created scroll bar. Put toolkit scroll bars in the
6820 middle of the area reserved for the scroll bar.
6821
68221999-09-03 Kenichi Handa <handa@etl.go.jp>
6823
6824 The following changes are for the new handling of mulitbyte
6825 sequence. Now, except for a composite character, no multibyte
6826 character in string/buffer has trailing garbage bytes. For
6827 instance, the length of string "\201\300\300" is now 2, the first
6828 character is Latin-1 A-grave, the second is raw \300.
6829
6830 * charset.h (MAKE_NON_ASCII_CHAR): Handle the case that C1 or C2
6831 are negative.
6832 (MAKE_CHAR): Don't set MSBs of C1 and C2 to 0.
6833 (VALID_MULTIBYTE_CHAR_P): This macro deleted.
6834 (PARSE_COMPOSITE_SEQ): New macro.
6835 (PARSE_CHARACTER_SEQ): New macro.
6836 (PARSE_MULTIBYTE_SEQ): New macro.
6837 (CHAR_PRINTABLE_P): New macro.
6838 (STRING_CHAR): Adjusted for the change of string_to_non_ascii_char.
6839 (STRING_CHAR_AND_LENGTH): Likewise.
6840 (STRING_CHAR_AND_CHAR_LENGTH): Define it as STRING_CHAR_AND_LENGTH.
6841 (INC_POS): Use the macro PARSE_MULTIBYTE_SEQ.
6842 (DEC_POS, BUF_INC_POS, BUF_DEC_POS): Likewise,
6843
6844 * charset.c (SPLIT_COMPOSITE_SEQ): New macro.
6845 (SPLIT_CHARACTER_SEQ): New macro.
6846 (SPLIT_MULTIBYTE_SEQ): New macro.
6847 (CHAR_COMPONENT_VALID_P): New macro.
6848 (non_ascii_char_to_string): Generate a multibyte sequence as far
6849 as possible.
6850 (string_to_non_ascii_char): The 4th arg exclude_tail_garbage is
6851 deleted. Caller changed. Use the macro SPLIT_MULTIBYTE_SEQ.
6852 (split_non_ascii_string): Likewise.
6853 (multibyte_form_length): Use the macro PARSE_MULTIBYTE_SEQ.
6854 (char_printable_p): New function.
6855 (translate_char): Check character by NATNUMP instead of INTEGERP.
6856 (unibyte_char_to_multibyte): Call char_valid_p instead of
6857 VALID_MULTIBYTE_CHAR_P.
6858 (Fmake_char_internal): Check the arguments more rigidly.
6859 (Fcharset_after): Use the macro SPLIT_MULTIBYTE_SEQ.
6860 (char_valid_p): Check the validity by CHAR_COMPONENT_VALID_P.
6861 (Fmultibyte_char_to_unibyte): Check the validity of character by
6862 CHAR_VALID_P.
6863 (chars_in_text): Call multibyte_chars_in_text.
6864 (multibyte_chars_in_text): Use the macro PARSE_MULTIBYTE_SEQ.
6865 (Fcompose_string): Use the macro STRING_CHAR_AND_LENGTH instead of
6866 STRING_CHAR_AND_CHAR_LENGTH (which is obsolete now).
6867
6868 * data.c (Faset): Adjust the way to check byte-combining
6869 possibility for the new handling of multibyte sequence.
6870
6871 * editfns.c (Fsubst_char_in_region): Likewise.
6872
6873 * fns.c (count_combining): Use the macro PARSE_MULTIBYTE_SEQ.
6874 (string_char_to_byte): Likewise.
6875 (string_byte_to_char): Likewise.
6876
6877 * indent.c (MULTIBYTE_BYTES_WIDTH): Delete the 2nd arg C. Use the
6878 macro STRING_CHAR_AND_LENGTH. Caller changed.
6879
6880 * insdel.c (count_combining_composition): New function.
6881 (count_combining_before): Adjust the way to check byte-combining
6882 possibility for the new handling of multibyte sequence. Call
6883 count_combining_composition for a composite character.
6884 (count_combining_after): Likewise.
6885
6886 * print.c (print_string): Use the macro STRING_CHAR_AND_LENGTH.
6887 (print): Likewise.
6888
6889 * dispextern.h (struct it): Change the size of the member
6890 `ctl_chars'.
6891
6892 * xdisp.c (get_next_display_element): Display incomplete multibyte
6893 sequence (e.g. \222\300) by octal form.
6894
68951999-09-02 Gerd Moellmann <gerd@gnu.org>
6896
6897 * xterm.h (VERTICAL_SCROLL_BAR_WIDTH_TRIM): Change from 2 to 0.
6898
6899 * fns.c (Fhash_table_weakness): Replaces Fhash_table_weak.
6900 (cmpfn_eql, sxhash): Use XFLOAT_DATA.
6901
69021999-09-02 Gerd Moellmann <gerd@gnu.org>
6903
6904 * buffer.c (set_buffer_internal): Never set
6905 windows_or_buffers_changed.
6906
6907 * xdisp.c (try_window_id): Reset first_unchanged_at_end_row
6908 if we have displayed to the bottom of the window.
6909
6910 * syntax.c (Fforward_word): Stop at a mini-buffer prompt end
6911 in both directions. Extend documentation.
6912
69131999-09-01 Gerd Moellmann <gerd@gnu.org>
6914
6915 * minibuf.c (read_minibuf): Flush display after setting cursor to
6916 column 0.
6917
69181999-08-31 Gerd Moellmann <gerd@gnu.org>
6919
6920 * s/freebsd.h (__FreeBSD_version): Don't define it if it is
6921 already defined. This avoids a warning from buffer.c.
6922
69231999-08-30 Gerd Moellmann <gerd@gnu.org>
6924
6925 * xterm.h (FRAME_X_FLAGS_AREA_COLS): Define it as the total width
6926 of both margins.
6927 (FRAME_X_FLAGS_AREA_WIDTH): Likewise.
6928 (FRAME_X_LEFT_FLAGS_AREA_WIDTH): New.
6929 (FRAME_X_RIGHT_FLAGS_AREA_WIDTH): New.
6930
6931 * frame.h (FRAME_WINDOW_WIDTH_ARG): Add in FRAME_FLAGS_AREA_COLS
6932 once instead of twice.
6933 (FRAME_LEFT_FLAGS_AREA_WIDTH): New.
6934
6935 * xterm.c: Remove unused bitmaps.
6936 (continued_bits, continuation_bits, overlay_bits): Change images.
6937 (x_draw_vertical_border): Use FRAME_X_RIGHT_FLAGS_AREA_WIDTH
6938 instead of FRAME_X_FLAGS_AREA_WIDTH.
6939 (x_after_update_window_line): Ditto.
6940 (x_draw_bitmap): Likewise.
6941 (x_draw_row_bitmaps): Likewise.
6942 (x_draw_glyph_string_box): Likewise.
6943 (x_draw_glyphs): Likewise.
6944 (x_scroll_run): Likewise.
6945 (expose_window_tree): Likewise.
6946 (note_mode_line_highlight): Likewise.
6947 (XTset_vertical_scroll_bar): Likewise.
6948 (x_clip_to_row): Likewise.
6949 (x_set_window_size): Likewise.
6950
6951 * xfns.c (x_figure_window_size): Use FRAME_FLAGS_AREA_COLS instead
6952 of 2 * that value.
6953
6954 * xdisp.c (window_box_width): Use FRAME_FLAGS_AREA_COLS instead of
6955 2 * that value.
6956 (window_box_left): Use FRAME_LEFT_FLAGS_AREA_WIDTH instead of
6957 FRAME_FLAGS_AREA_WIDTH.
6958
6959 * window.c (coordinates_in_window): Use
6960 FRAME_LEFT_FLAGS_AREA_WIDTH instead of FRAME_FLAGS_AREA_WIDTH.
6961 (window_internal_width): Subtract FRAME_FLAGS_AREA_WIDTH once
6962 instead of twice.
6963
6964 * widget.c (set_frame_size): Set flags_area_extra to
6965 FRAME_FLAGS_AREA_WIDTH instead of 2 * that width.
6966 (EmacsFrameSetCharSize): Ditto.
6967
6968 * dispnew.c (mode_line_string): Add FRAME_LEFT_FLAGS_AREA_WIDTH
6969 instead of FRAME_FLAGS_AREA_WIDTH.
6970
6971 * dispextern.h (WINDOW_DISPLAY_PIXEL_WIDTH): Subtract
6972 FRAME_FLAGS_AREA_COLS once.
6973 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X): Add
6974 FRAME_LEFT_FLAGS_AREA_WIDTH instead of FRAME_FLAGS_AREA_WIDTH.
6975
69761999-08-30 Gerd Moellmann <gerd@gnu.org>
6977
6978 * freebsd.h (C_SWITCH_SYSTEM): Added to let configure find headers
6979 in /usr/X11R6/include which are checked for with AC_CHECK_HEADER.
6980
69811999-08-30 Gerd Moellmann <gerd@gnu.org>
6982
6983 * fns.c (QCweakness): Replaces QCweak.
6984 (Fmake_hash_table): Ditto.
6985 (Fmakehash): Ditto.
6986 (syms_of_fns): Ditto.
6987
69881999-08-29 Richard Stallman <rms@gnu.org>
6989
6990 * search.c (compile_pattern_1): Enable RE_CHAR_CLASSES for regexp.
6991
6992 * sysdep.c (read_input_waiting): Pass read_socket_hook just 4 args.
6993
6994 * syntax.h (SYNTAX_COMMENT_NESTED, SYNTAX_FLAGS_COMMENT_NESTED):
6995 Add support for nested comments.
6996
863476d1
SM
6997 * syntax.c (Fforward_comment, scan_lists, scan_sexps_forward):
6998 Consolidate the forward comment code into the new `forw_comment'.
6999 (forw_comment): New subroutine. Added support for nested comments.
7000 (lisp_parse_state, back_comment, Fmodify_syntax_entry)
7001 (Fparse_partial_sexp): Add support for nested comments.
26901792
DL
7002
70031999-08-28 Ken Raeburn <raeburn@gnu.org>
7004
7005 * lisp.h (struct Lisp_Cons, XCAR, XCDR, struct Lisp_Float): Change
7006 names of structure elements if HIDE_LISP_IMPLEMENTATION is
7007 defined, to help detect code that uses knowledge of the Lisp
7008 internals that it shouldn't have.
7009 (XFLOAT_DATA): New macro.
7010
70111999-08-25 Gerd Moellmann <gerd@gnu.org>
7012
7013 * syntax.c (Fforward_word): If in a mini-buffer and moving
7014 backwards, stop in front of the prompt to prevent accidentially
7015 moving into the read-only prompt.
7016
7017 * window.c (Frecenter): Clear frame if called with nil or no arg.
7018
7019 * xdisp.c (resize_mini_window): Don't resize if
7020 Vmax_mini_window_height is nil. Otherwise, use a default if
7021 Vmax_mini_window_height is not ot a number.
7022 (syms_of_xdisp): Extend documentation of Vmax_mini_window_height.
7023
70241999-08-25 Alexandre Oliva <oliva@dcc.unicamp.br>
7025
7026 * unexelf.c: Merge IRIX debugging info patch from unexsgi.c
7027 * m/iris4d.h: Use unexelf for IRIX 5.*.
7028 * m/iris5d.h: Use unexelf for IRIX 6.*.
7029 * unexsgi.c: Deleted.
7030
7031 * unexelf.c: Auto-detect .sbss section.
7032 (round_up): Make it static.
7033 (unexec): Declare alignment as Elf Word. Skip ``Program
7034 segment above .bss'' test on MIPS without .sbss.
7035 Copy sections .got and .sdata1 sections. Adjust offsets in
7036 sections .sdata, .lit4, .lit8, .got and .sdata1.
7037
70381999-08-25 Gerd Moellmann <gerd@gnu.org>
7039
7040 * xdisp.c (try_window_id): Remove typo.
7041
70421999-08-24 Gerd Moellmann <gerd@gnu.org>
7043
7044 * xdisp.c (try_window_id): Recognize case that PT == ZV and in
7045 unchanged text at the bottom when computing the cursor position.
7046 (message3_nolog): Raise frame only if minibuffer_auto_raise is
7047 set.
7048
7049 * lisp.h (PVEC_TYPE_MASK): Add the bit for hash tables.
7050
70511999-08-24 Gerd Moellmann <gerd@gnu.org>
7052
7053 * xfaces.c (Qmargin): Replacement for Qbitmap_area.
7054 (realize_basic_faces): Replace Qmargin for Qbitmap_area.
7055 (syms_of_xfaces): Ditto.
7056
7057 * window.c (Fset_window_point): Reset Vresize_mini_config.
7058 (Fset_window_start): Ditto.
7059 (set_window_buffer): Ditto.
7060
7061 * dispnew.c (adjust_frame_glyphs): Reset Vresize_mini_config.
7062
7063 * xdisp.c (redisplay_window): Don't ever test just_this_one_p
7064 before calling try_window.
7065 (echo_area_display): If height has changed, update other windows.
7066 (resize_mini_frame, resize_mini_initial_height): New.
7067 (resize_mini_window): Save/restore window configuration
7068 differently.
7069
7070 * lisp.h (Vresize_mini_config, resize_mini_frame,
7071 resize_mini_initial_height): Add extern declarations.
7072
7073 * xterm.c (expose_window_tree): Fix typo CANON_Y_UNIT to
7074 CANON_X_UNIT.
7075
7076 * xfns.c [HAVE_JPEG]: Work around a warning about HAVE_STDLIB_H
7077 being redefined in jconfig.h.
7078
70791999-08-23 Ken'ichi Handa <handa@gnu.org>
7080
7081 * coding.h: Include "ccl.h" instead of "../src/ccl.h".
7082
70831999-08-22 Gerd Moellmann <gerd@gnu.org>
7084
7085 * alloc.c (mark_glyph_matrix): Mark strings only.
7086
7087 * xdisp.c (redisplay_internal): Clear garbaged frames after
7088 resizing mini-window.
7089
70901999-08-22 Gerd Moellmann <gerd@gnu.org>
7091
7092 * xdisp.c (unwind_with_echo_area_buffer): Use
7093 set_buffer_internal_1 instead of set_buffer_internal.
7094 (with_echo_area_buffer): Ditto.
7095
7096 * buffer.c (set_buffer_internal): Set windows_or_buffers_changed
7097 only if buffer is displayed somewhere.
7098
7099 * buffer.h (BUF_COMPUTE_UNCHANGED): New.
7100
7101 * insdel.c (gap_left): Use BUF_COMPUTE_UNCHANGED.
7102 (gap_right): Ditto.
7103 (modify_region): Ditto.
7104
7105 * buffer.c (modify_overlay): Use BUF_COMPUTE_UNCHANGED.
7106
7107 * xdisp.c (Vresize_mini_config): New.
7108 (resize_mini_window): Use it to save restore original window
7109 configuration
7110 (syms_of_xdisp): Initialize it.
7111
7112 * buffer.h (struct buffer): Add prevent_redisplay_optimizations_p.
7113
7114 * dispextern.h (struct glyph_matrix): Add buffer, begv, and zv.
7115
7116 * xdisp.c (reconsider_clip_changes): New.
7117 (redisplay_internal, redisplay_window): Call it.
7118 (mark_window_display_accurate, redisplay_internal): Set current
7119 matrix' buffer, begv, zv.
7120
7121 * window.c (Fset_window_hscroll): Set
7122 prevent_redisplay_optimizations_p instead of clip_changed.
7123 (Fset_window_hscroll): Ditto.
7124 (temp_output_buffer_show): Ditto.
7125 (Fset_window_vscroll): Ditto.
7126
7127 * buffer.c (reset_buffer): Set clip_changed to 0 and
7128 prevent_redisplay_optimizations_p to 1.
7129 (Fget_buffer_create): Set prevent_redisplay_optimizations_p to 1.
7130
7131 * buffer.h (BUF_UNCHANGED_MODIFIED, UNCHANGED_MODIFIED,
7132 BUF_OVERLAY_UNCHANGED_MODIFIED, OVERLAY_UNCHANGED_MODIFIED,
7133 BUF_BEG_UNCHANGED, BEG_UNCHANGED, BUF_END_UNCHANGED,
7134 END_UNCHANGED): New.
7135 (struct buffer_text): Add beg_unchanged, end_unchanged,
7136 unchanged_modified, overlay_unchanged_modified.
7137
7138 * window.h (beg_unchanged, end_unchanged, unchanged_modified,
7139 overlay_unchanged_modified): Removed.
7140 (with_echo_area_unwind_data): Don't save beg/end_unchanged.
7141 (unwind_with_echo_area_buffer): Don't restore them.
7142 (debug_beg_unchanged, debug_end_unchanged) [GLYPH_DEBUG]: Removed.
7143 (text_outside_line_unchanged_p, redisplay_internal,
7144 try_scrolling): Use/set buffer-specific beg/end_unchanged.
7145 (redisplay_window): Let try_window_id be called if more than one
7146 window is displayed. Use/set buffer-specific beg/end_unchanged.
7147 (get_last_unchanged_at_beg_row, get_first_unchanged_at_end_row,
7148 try_window_id):
7149 Use buffer-specific beg/end_unchanged.
7150
7151 * window.h (beg_unchanged, end_unchanged, unchanged_modified,
7152 overlay_unchanged_modified): Remove extern declarations.
7153
7154 * keyboard.c (command_loop_1): Set beg/end_unchanged per
7155 buffer.
7156
7157 * insdel.c (gap_left): Compute beg/end_unchanged per buffer.
7158 (gap_right): Ditto.
7159 (adjust_after_replace): Likewise.
7160 (replace_range, del_range_2, modify_region): Likewise.
7161
7162 * dispnew.c (direct_output_for_insert): Set beg_unchanged
7163 and unchanged_modified per buffer.
7164
7165 * coding.c (code_convert_region): Compute beg/end_unchanged per
7166 buffer.
7167
7168 * buffer.c (modify_overlay): Compute beg/end_unchanged
7169 per buffer.
7170 (Fget_buffer_create): Initialize new members of the buffer
7171 structure.
7172
71731999-08-22 Gerd Moellmann <gerd@gnu.org>
7174
7175 * lisp.h: Add prototype for copy_hash_table and Fcopy_hash_table.
7176
7177 * fns.c (Qkey, Qvalue): Renamed from Qkey_weak, and Qvalue_weak.
7178 (Qkey_value_weak): Removed.
7179 (make_hash_table): Use nil, `key', `value', t for weakness.
7180 (Fmake_hash_table): Ditto.
7181 (copy_hash_table): New.
7182 (Fcopy_hash_table): New.
7183
71841999-08-22 Gerd Moellmann <gerd@gnu.org>
7185
7186 * xfns.c: Call change_frame_size and do_pending_window_change with
7187 new parameter.
7188
71891999-08-21 Gerd Moellmann <gerd@gnu.org>
7190
7191 * xdisp.c (resize_mini_window): Do it for truncate-lines t as
7192 well.
7193 (redisplay_internal): Resize mini-window only if text might
7194 have changed.
7195 (display_echo_area): Reset displayed echo_area_buffer to nil
7196 at the end if we're displaying a nil message.
7197
71981999-08-21 Gerd Moellmann <gerd@gnu.org>
7199
7200 * fns.c (hash_lookup): Test with EQ before calling key comparion
7201 function.
7202 (hash_remove): Ditto.
7203 (cmpfn_eq): Removed.
7204 (cmpfn_eql): Don't test with EQ.
7205 (cmpfn_equal): Ditto.
7206 (make_hash_table): Set comparison function for `eq' to null.
7207
7208 * buffer.c, cmds.c, editfns.c, indent.c, insdel.c, buffer.h:
7209 Remove conditional compilation on NO_PROMPT_IN_BUFFER.
7210
7211 * dispextern.h (NO_PROMPT_IN_BUFFER): Removed.
7212
7213 * window.c, widget.c, process.c, keyboard.c, frame.c, xdisp.c,
7214 xterm.c: Call change_frame_size and do_pending_window_change with
7215 new parameter.
7216
7217 * dispnew.c (do_pending_window_change): Add parameter `safe'.
7218 (change_frame_size): Ditto.
7219 (change_frame_size_1): Ditto. Deley size changes if redisplaying
7220 and not called from a safe place.
7221 (window_change_signal): Call change_frame_size with new parameter.
7222
7223 * dispextern.h: Change prototypes for do_pending_window_change
7224 and change_frame_size.
7225
7226 * xfaces.c (face_at_buffer_position): Don't xassert that
7227 window's buffers equals current_buffer; this is not the
7228 case during echo area display.
7229
72301999-08-21 Gerd Moellmann <gerd@gnu.org>
7231
7232 * xdisp.c, minibuf.c: Remove conditional compilation on
7233 NO_PROMPT_IN_BUFFER.
7234
7235 * minibuf.c (Fminibuffer_prompt_end): New.
7236 (syms_of_minibuf): Defsubr it. Remove
7237 minibuffer-prompt-in-buffer.
7238 (Fminibuffer_prompt_width): Return 0 if not in mini-buffer.
7239 Extend documentation.
7240
7241 * xdisp.c (get_next_display_element): Display \r as ^M.
7242
7243 * xterm.c (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]: Clear
7244 under scroll bar widget.
7245
72461999-08-21 Gerd Moellmann <gerd@gnu.org>
7247
7248 * xdisp.c (minibuffer_scroll_overlap): Removed because not used
7249 anywhere.
7250 (unwind_redisplay): Return nil.
7251 (clear_garbaged_frames): New.
7252 (redisplay_internal): Use it.
7253 (echo_area_display): Ditto.
7254 (resize_mini_window): Mew.
7255 (display_echo_area_1): Use it to resize echo area window.
7256 (redisplay_internal): Use it to resize active mini-window.
7257
7258 * dispextern.h, lisp.h: Add function prototypes.
7259
7260 * dispnew.c (set_window_cursor_after_update): Do the
7261 cursor_in_echo_area case only for a mini-window showing
7262 a message. Don't let cursor end up after the end of a row.
7263
7264 * xdisp.c (echo_area_glyphs, echo_area_message,
7265 echo_area_glyphs_length, previous_echo_glyphs,
7266 previous_echo_area_message, previous_echo_area_glyphs_length):
7267 Removed.
7268 (Vmessage_stack, echo_area_buffer, echo_buffer,
7269 display_last_displayed_message_p, Vwith_echo_area_save_vector): New.
7270 (message2_nolog): Use set_message and clear_message.
7271 (message3): Rename parameter len to nbytes to make clear what
7272 it is.
7273 (message3_nolog): Ditto. Use set_message and clear_message.
7274 (update_echo_area): Rewritten.
7275 (with_echo_area_buffer): New.
7276 (with_echo_area_buffer_unwind_data, unwind_with_area_buffer): New.
7277 (setup_echo_area_for_printing): New.
7278 (display_echo_area, display_echo_area_1): New.
7279
7280 (current_message, current_message_1): New.
7281 (push_message, restore_message, pop_message,
7282 check_message_stack): New.
7283 (truncate_echo_area): Rewritten.
7284 (truncate_message_1): New.
7285 (set_message, set_message_1, clear_message): New.
7286 (echo_area_display): Rewritten.
7287 (redisplay_internal): Check for needed echo area update
7288 differently.
7289 (redisplay_preserve_echo_area): Rewritten.
7290 (redisplay_window): Check for mini-window displaying echo area
7291 message differently.
7292 (syms_of_xdisp): Initialize Vmessage_stack and echo area buffers.
7293 Remove initialzation of removed variables.
7294 (init_xdisp): Remove references to removed variables.
7295
7296 * dispnew.c (adjust_frame_message_buffer): Removed references
7297 to echo_area_glyphs and previous_echo_glyphs.
7298 (direct_output_for_insert): Check for mini-window displaying
7299 echo area message differently.
7300 (update_frame): Likewise.
7301 (set_window_cursor_after_update): Likewise. In echo area,
7302 don't try to set cursor on rows that aren't enabled.
7303
7304 * print.c: Remove conditional compilation on `standalone'.
7305 (glyph_len, str_to_glyph_cpy, str_to_glyph_ncpy,
7306 glyph_to_str_cpy): Remove that section because GLYPHs are no
7307 longer used in that way.
7308 (PRINTDECLARE): Add multibyte.
7309 (PRINTPREPARE, PRINTFINISH): Handle printcharfun t differently.
7310 (printbufidx): Removed.
7311 (printchar, strout): Rewritten.
7312
7313 * keyboard.c (ok_to_echo_at_next_pause): Make it a pointer to
7314 a struct kboard.
7315 (echo_kboard): New.
7316 (echo_now): Set echo_kboard to the current kboard.
7317 (cancel_echoing): Set echo_kboard to null.
7318 (cmd_error_internal): Use clear_message, remove references
7319 to echo_area_glyphs and echo_area_message.
7320 (command_loop_1): Check for echo area messages differently.
7321 (read_char): Likewise.
7322 (record_menu_key): Use clear_message.
7323 (Fexecute_extended_command): Check for echo area messages
7324 differently. Use push_message, restore_message, pop_message.
7325
7326 * alloc.c (Fgarbage_collect): Use push_message, restore_message,
7327 pop_message.
7328
7329 * emacs.c (shut_down_emacs): Call check_message_stack.
7330
7331 * lisp.h: Add function prototypes and extern declarations for
7332 new functions and variables.
7333
7334 * fileio.c (Fdo_auto_save): Use push_message, restore_message,
7335 pop_message.
7336
7337 * minibuf.c (read_minibuf): Use clear_message instead of
7338 setting echo_area_glyphs.
7339 (Fminibuffer_completion_help): Ditto.
7340
7341 * editfns.c (Fcurrent_message): Rewritten.
7342
7343 * frame.c, window.h: Remove references to echo_area_glyphs
7344 and previous_echo_glyphs.
7345
73461999-08-21 Dave Love <fx@gnu.org>
7347
7348 * aix3-2-5.h (C_DEBUG_SWITCH): Use -g -O.
7349 * aix4-1.h: Likewise.
7350
7351 * irix6-5.h (C_DEBUG_SWITCH): Set for debug and optimize.
7352
73531999-08-20 Gerd Moellmann <gerd@gnu.org>
7354
7355 * xfns.c: Remove tiff34 prefix from include.
7356
73571999-08-20 Dave Love <fx@gnu.org>
7358
7359 * cm.c: Revert previous change.
7360
73611999-08-19 Gerd Moellmann <gerd@gnu.org>
7362
7363 * xterm.c (XTset_vertical_scroll_bar): Fix previous change. Clear
7364 under scroll bar with width FRAME_SCROLL_BAR_COLS.
7365
73661999-08-18 Dave Love <fx@gnu.org>
7367
7368 * callproc.c, filelock.c, insdel.c, sysdep.c, xmenu.c: Use
7369 stdlib.h.
7370
7371 * doprnt.c: Use stdlib.h, unistd.h.
7372
7373 * config.in: Add HAVE_TERMCAP_H.
7374
7375 * cm.c: Use termcap.h.
7376
73771999-08-18 Gerd Moellmann <gerd@gnu.org>
7378
7379 * xfns.c (x_window) [USE_X_TOOLKIT]: Remove test for
7380 FRAME_X_WINDOW (f) being null at the of the function. If widgets
7381 cannot be created we will already have crashed earlier. Call
7382 lw_set_main_areas with a null menu-bar widget, so that we have
7383 a reasonable default.
7384 (Fx_create_frame): Rearranged so that Lisp errors during frame
7385 initialization cause less damage. Initialize menu bar widget
7386 here.
7387
73881999-08-18 Gerd Moellmann <gerd@gnu.org>
7389
7390 * dispnew.c (update_frame_line): Fix previous change. If writing
7391 whole line clear to end of frame.
7392
73931999-08-17 Gerd Moellmann <gerd@gnu.org>
7394
7395 * window.c (Fcoordinates_in_window_p): Return `left-bitmap-area'
7396 and `right-bitmap-area' if position is in the bitmap areas. This
7397 avoids an error when clicking on the bitmap areas. Instead, they
7398 are currently treated like clicks inside the window.
7399 (coordinates_in_window): Return 5 and 6 for bitmap areas.
7400 (Qleft_bitmap_area, Qright_bitmap_area): New.
7401 (syms_of_window): Initialize new symbols.
7402
7403 * dispnew.c (update_frame_line): If writing whole line,
7404 don't write trailing spaces unless we must.
7405
7406 * xdisp.c (unwind_redisplay): New. Resets flag redisplaying_p.
7407 (redisplay_internal): Register unwind_redisplay with
7408 register_unwind_protect.
7409 (try_window_reusing_current_matrix): If new start > old start,
7410 give up if start pos of first reusable row is not equal to new
7411 start.
7412
7413 * eval.c (Fsignal): Don't reset redisplaying_p here.
7414
7415 * xterm.c (expose_area): If row extends face to end of line,
7416 write the whole line.
7417
74181999-08-16 Gerd Moellmann <gerd@gnu.org>
7419
7420 * dispextern.h (struct it): Remove member
7421 show_trailing_whitespace_p.
7422
7423 * dispnew.c (direct_output_for_insert): Use
7424 Vshow_trailing_whitespace instead of former iterator member
7425 show_trailing_whitespace_p.
7426 (direct_output_forward_char): Don't do it if hightlighting
7427 trailing whitespace.
7428
7429 * xdisp.c (Qshow_trailing_whitespace): Removed.
7430 (Vshow_trailing_whitespace): Added.
7431 (init_iterator): Remove initialization code for
7432 show_trailing_whitespace_p.
7433 (redisplay_internal): Don't try cursor movement in this_line
7434 if showing trailing whitespace.
7435 (redisplay_window): Likewise for cursor movement in current
7436 matrix and try_window_id.
7437 (try_window_reusing_current_matrix): Likewise.
7438 (trailing_whitespace_p): Return 0 if trailing whitespace is
7439 in front of point.
7440 (display_line): Use Vshow_trailing_whitespace instead of
7441 former iterator member show_trailing_whitespace_p.
7442 (syms_of_xdisp): Add DEFVAR_LISP for show-trailing-whitespace.
7443
74441999-08-16 Gerd Moellmann <gerd@gnu.org>
7445
7446 * window.c (Fpos_visible_in_window_p): Rewritten.
7447
7448 * xfaces.c (add_to_log): Renamed from display_message.
7449 Don't display messages in echo area.
7450
7451 * xterm.c (x_draw_glyph_string_box): Use the background width
7452 of the glyph string for the width of the box.
7453
74541999-08-16 Stefan Monnier <monnier@cs.yale.edu>
7455
7456 * syntax.c (Fforward_comment): Set comstyle for Scomment_fence.
7457
74581999-08-16 Geoff Voelker <voelker@cs.washington.edu>
7459
7460 * xfns.c, w32fns.c (x_set_frame_parameters): Set foreground and
7461 background first, and then set other parameters that might
7462 depend upon their new values.
7463
74641999-08-15 Gerd Moellmann <gerd@gnu.org>
7465
7466 * xfaces.c (Vfont_list_limit): New.
7467 (syms_of_xfaces): Make it a user-variable.
7468 (DEFAULT_FONT_LIST_LIMIT): New.
7469 (sorted_font_list): If Vfont_list_limit is an integer > 0, list
7470 maximally that number of fonts, otherwise use
7471 DEFAULT_FONT_LIST_LIMIT.
7472 (Fx_font_family_list): Bind `font-list-limit' to higher values
7473 until we have all fonts.
7474 (Fxfont_list): Additionally return the full names of fonts and
7475 their registry and encoding.
7476
7477 * xterm.c (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
7478 Simplify clearing "under" scroll bar.
7479
7480 * window.c (Qfixed_window_size): New.
7481 (syms_of_window): Initialiaze it.
7482 (check_all_windows): Add return type void.
7483 (window_fixed_size_p): New. Return non-zero if window
7484 is fixed-size.
7485 (window_min_size_1): New.
7486 (window_min_size): Handle fixed-size windows.
7487 (size_window): New. Rewritten combination of set_window_height and
7488 set_window_width that handles fixed-size windows.
7489 (set_window_height): Call it.
7490 (set_window_width): Call it.
7491 (Fsplit_window): Give an error on attempt to split a fixed-size
7492 window.
7493 (change_window_height): Partly rewritten to handle fixed-size
7494 windows.
7495
74961999-08-13 Wolfgang Rupprecht <wolfgang@wsrcc.com>
7497
7498 * process.c (Fopen_network_stream): Fix previous change.
7499
75001999-08-13 Karl Heuer <kwzh@gnu.org>
7501
7502 * xdisp.c (line_number_display_limit_width): New var.
7503 (decode_mode_spec): Use it instead of hardcoded value.
7504 (syms_of_xdisp): Defvar it.
7505
75061999-08-13 Richard M. Stallman <rms@gnu.org>
7507
7508 * eval.c (run_hook_list_with_args): Gcpro `globals'.
7509 (run_hook_with_args): Likewise.
7510
7511 * window.h (struct window): New field too_small_ok.
7512
7513 * window.c (set_window_height, set_window_width):
7514 If window starts out "too small", set its too_small_ok flag.
7515 If window's too_small_ok flag is set, don't delete it
7516 unless it is so small it would cause a crash.
7517
75181999-08-13 Gerd Moellmann <gerd@gnu.org>
7519
7520 * window.c (MINSIZE): Removed.
7521 (window_min_size): New.
7522 (set_window_height): Use window_min_size.
7523 (change_window_height): Ditto.
7524
75251999-08-12 Gerd Moellmann <gerd@gnu.org>
7526
7527 * indent.c (vmotion): Don't add in mini-buffer prompt width
7528 if prompts are inserted into mini-buffer.
7529
75301999-08-12 Wolfgang Rupprecht <wolfgang@wsrcc.com>
7531
7532 * config.in: Add HAVE_GETADDRINFO.
7533 * process.c (Fopen_network_stream): Use getaddrinfo.
7534
75351999-08-11 Gerd Moellmann <gerd@gnu.org>
7536
7537 * xdisp.c (get_overlay_arrow_glyph_row): Set the charpos of
7538 glyphs to -1.
7539
7540 * xdisp.c (face_before_or_after_it_pos): If position after
7541 or before iterator's current position in the buffer is out
7542 of bounds, return the iterator's original face id.
7543
7544 * dispnew.c (mirror_make_current): If desired row isn't enabled,
7545 just swap glyphs pointers between current and desired row.
7546 (build_frame_matrix_from_leaf_window) [GLYPH_DEBUG]: Copy
7547 desired matrix method string to current matrix.
7548
75491999-08-11 Kenichi Handa <handa@etl.go.jp>
7550
7551 * lisp.h (CHAR_MODIFIER_MASK): New macro.
7552
7553 * lread.c (read_escape): For Control modifier, pay attention to
7554 multibyte character.
7555 (read1): Likewise. Singal error or a multibyte character which
7556 has a modifer bit. Check validity of Shift modifer.
7557
7558 * charset.c (non_ascii_char_to_string): Handle modifier bits as
7559 the same as Lisp reader.
7560
75611999-08-10 Richard M. Stallman <rms@gnu.org>
7562
7563 * charset.h (BCOPY_SHORT): Fix typo `unsigined'.
7564
75651999-08-10 Alexandre Oliva <oliva@dcc.unicamp.br>
7566
7567 * unexelf.c [__linux__ && __alpha__] (HAS_SBSS_SECTION): Define.
7568
75691999-08-10 Eli Zaretskii <eliz@gnu.org>
7570
7571 * msdos.c (IT_set_face): Abort if the default face is not realized
7572 and cached.
7573 (IT_write_glyphs): Reset the screen face to the default face
7574 before writing glyphs.
7575
7576 * xfaces.c (realize_default_face) [MSDOS]: Don't take default
7577 colors from the frame here.
7578 (realize_tty_face) [MSDOS]: Do it here. Update the face
7579 attributes with the actual name of the color taken from the
7580 frame.
7581
7582 * dosfns.c (msdos_stdcolor_name): Remove const from return value.
7583 * dosfns.h (msdos_stdcolor_name): Ditto for the prototype.
7584
7585 * frame.c (Fframe_parameters): Swap foreground and background
7586 colors returned in frame parameters if the frame has reverse in
7587 its parameter alist.
7588 (Fmake_terminal_frame): Make a unique copy of face_alist for
7589 each frame.
7590
75911999-08-07 Richard Stallman <rms@gnu.org>
7592
7593 * buffer.c (Fprevious_overlay_change): Just return
7594 the answer obtained from overlays_at.
7595
7596 * xfns.c (xpm_load) [!XpmAllocCloseColors]:
7597 Use XpmCloseness and attrs.closeness instead.
7598
75991999-08-06 Richard Stallman <rms@gnu.org>
7600
7601 * lread.c (Feval_buffer): New arg DO_ALLOW_PRINT.
7602
76031999-08-06 Geoff Voelker <voelker@cs.washington.edu>
7604
7605 * dired.c (directory_files_internal, Fdirectory_files_and_attributes,
7606 Ffile_attributes_lessp): New functions.
7607 (Fdirectory_files): Use directory_files_internal.
7608 (syms_of_dired): Initialize Fdirectory_files_and_attributes,
7609 Ffile_attributes_lessp.
7610
7611 * w32.c (stat): Check for directory ending in separator when
7612 doing readdir fast path.
7613
7614 * w32fns.c (x_set_icon_type): Support setting frame icons.
7615 * w32term.c (x_bitmap_icon): New function.
7616 (x_make_frame_visible, x_iconify_frame): Invoke x_bitmap_icon.
7617
76181999-08-06 Gerd Moellmann <gerd@gnu.org>
7619
7620 * xdisp.c (set_iterator_to_next): After delivering a character
7621 from a display vector, restore face and charset to what they were
7622 before the display vector was processed.
7623
76241999-08-06 Gerd Moellmann <gerd@gnu.org>
7625
7626 * xdisp.c (reseat_at_next_visible_line_start): New parameter
7627 on_newline_p.
7628 (set_iterator_to_next): After delivering last char
7629 from display vector, reseat on next visible line start if
7630 dpvec_char_len < 0.
7631 (next_element_from_buffer): Set dpvec_char_len to -1 for
7632 selective display.
7633
76341999-08-06 Gerd Moellmann <gerd@gnu.org>
7635
7636 * xdisp.c (compute_line_metrics): If first line's physical ascent
7637 is larger than its logical ascent, use the physical ascent, and
7638 make the row taller. Set row's overlapping_p flag.
7639
7640 * dispnew.c (redraw_overlapping_rows): Use flag overlapping_p.
7641 (direct_output_for_insert): Ditto.
7642
7643 * dispextern.h (struct glyph_row): Add overlapping_p.
7644
7645 * xterm.c (x_draw_phys_cursor_glyph): Redraw overlaps.
7646
7647 * dispextern.h (MATRIX_ROW_OVERLAPS_PRED_P): New.
7648 (MATRIX_ROW_OVERLAPS_SUCC_P): New.
7649
7650 * dispnew.c (direct_output_for_insert): Don't use this method if
7651 row is overlapped by others.
7652 (update_text_area): Write full line if current line is overlapped.
7653 (redraw_overlapped_rows): New.
7654 (update_window): Call it.
7655 (redraw_overlapping_rows): New.
7656 (update_window): Call it.
7657 (scrolling_window): Make sure overlapped_p flag in current rows is
7658 unchanged.
7659 (row_equal_p): Take rows overlapped_p flag into account.
7660
7661 * dispextern.h (struct glyph_row): Add flag overlapped_p.
7662
7663 * xterm.c (x_fix_overlapping_area): New.
7664 (x_redisplay_interface): Add x_fix_overlapping_area.
7665
7666 * dispnew.c (adjust_glyphs): Block input while adjusting matrices.
7667
76681999-08-06 Gerd Moellmann <gerd@gnu.org>
7669
7670 * xterm.c (x_draw_glyphs): Add parameter overlaps_p.
7671 (struct glyph_string): Add member for_overlaps_p.
7672 (x_get_glyph_string_clip_rect): If glyph string draws foreground
7673 of overlapping rows, clip to window bottom.
7674 (x_fill_glyph_string): Add parameter overlaps_p.
7675 (x_fill_composite_glyph_string): Ditto.
7676 (BUILD_GLYPH_STRINGS): Ditto.
7677 (BUILD_CHAR_GLYPH_STRINGS): Ditto.
7678 (x_draw_glyph_string): Don't draw anything but the foreground
7679 if glyph string draws row overlaps.
7680
7681 * dispnew.c (direct_output_for_insert): Don't use this
7682 optimization for rows that overlap others.
7683 (update_window_line): Return non-zero if display has changed.
7684 (update_text_area): Ditto.
7685 (update_window): Record if display has been changed.
7686
7687 * dispextern.h (MATRIX_ROW_OVERLAPPING_P): New.
7688
7689 * dispextern.h (struct redisplay_interface): Add
7690 fix_overlapping_area.
7691
7692 * xterm.c (x_append_glyph): Set glyph flag overlaps_vertically_p.
7693
7694 * dispextern.h (struct glyph): Add overlaps_vertically_p.
7695
7696 * xterm.c (x_produce_image_glyph): Compute iterator's physical
7697 ascent and descent.
7698 (x_produce_stretch_glyph): Ditto.
7699 (x_produce_glyphs): Ditto.
7700
7701 * xdisp.c (init_iterator): Reset physical line height info
7702 after producing special glyphs.
7703 (display_toolbar_line): Set physical line height info.
7704 (compute_line_metrics): Ditto.
7705 (display_line): Ditto.
7706 (display_string): Ditto.
7707
7708 * term.c (produce_glyphs): Set iterator's physical height
7709 information.
7710
7711 * dispnew.c (blank_row): Compute glyph row's physical height.
7712 (row_equal_p): Take physical row heights into account.
7713 (direct_output_for_insert): Ditto.
7714 (update_text_area): Ditto.
7715
7716 * dispextern.h (struct glyph_row): Add phys_ascent and
7717 phys_height.
7718 (struct it): Add phys_ascent, phys_descent, max_phys_ascent,
7719 max_phys_descent.
7720
77211999-08-04 Stefan Monnier <monnier@cs.yale.edu>
7722
7723 * buffer.c (switch_to_buffer_1): New subroutine, taken out from
7724 Fswitch_to_buffer.
7725 (no_switch_buffer): New function.
7726 (Fswitch_to_buffer): Call them. Don't get confused
7727 by "same-window" buffers in a dedicated frame.
7728
7729 * window.c (display-buffer): Don't get confused
7730 by "same-window" buffers in a dedicated frame.
7731
77321999-08-04 Andreas Schwab <schwab@gnu.org>
7733
7734 * insdel.c (insert_from_string_1): Check gap size against number
7735 of outgoing bytes, not incoming bytes.
7736
77371999-08-03 Tom Breton <tob@world.std.com>
7738
7739 * lread.c (read1): Added circular reading code to #N=.
7740 (SUBSTITUTE): New macro.
7741 (seen_list): New variable.
7742 (substitute_object_in_subtree): New function.
7743 (substitute_object_recurse): New function.
7744 (substitute_in_interval): New function.
7745
77461999-08-02 Eli Zaretskii <eliz@gnu.org>
7747
7748 * Makefile.in (frame.o, sysdep.o, xfaces.o): Depend on dosfns.h.
7749
7750 * frame.c (make_terminal_frame): Don't call init_frame_faces if
7751 noninteractive, for termcap frames as well.
7752
7753 * sysdep.c (init_sys_modes): Call init_frame_faces for termcap
7754 frames.
7755
77561999-08-01 Richard Stallman <rms@gnu.org>
7757
7758 * fns.c (internal_equal): Correct overlay comparison.
7759
83c8f461 77601999-07-31 Richard M. Stallman <rms@gnu.org>
26901792
DL
7761
7762 * xfns.c (x_set_internal_border_width):
7763 Call do_pending_window_change. Don't block input, don't call XFlush.
7764 (x_set_vertical_scroll_bars): Call do_pending_window_change.
7765 (x_set_scroll_bar_width, x_set_font): Likewise.
7766
7767 * frame.c (Fset_frame_height): Call do_pending_window_change.
7768 (Fset_frame_width, Fset_frame_size): Likewise.
7769
7770 * xterm.c (x_set_window_size): When calling change_frame_size,
7771 specify 1 for DELAY.
7772
7773 * widget.c (EmacsFrameSetCharSize): Don't call
7774 do_pending_window_change here.
7775
77761999-07-30 Dave Love <fx@gnu.org>
7777
7778 * config.in: Add HAVE_STDLIB_H.
7779
77801999-07-30 Richard M. Stallman <rms@gnu.org>
7781
7782 * process.c (create_process): Detect failure of `pipe'.
7783
77841999-07-30 Keisuke Nishida <kei@psn.net>
7785
7786 * alloc.c (allocate_vectorlike): Add missing increment.
7787
7788 * data.c (Fdefalias): Call Ffset instead of duplicating code.
7789
7790 * keymap.c (get_keymap_1, get_keyelt): Check the type of OBJECT
7791 before calling indirect_function.
7792
77931999-07-30 Eli Zaretskii <eliz@gnu.org>
7794
7795 * dispextern.h (load_color, lookup_derived_face): Declare
7796 prototypes.
7797
7798 * dispnew.c (init_display) [MSDOS]: Don't initialize frame faces,
7799 it will be done later.
7800
7801 * frame.c (make_terminal_frame) [MSDOS]: Don't call
7802 init_frame_faces if non-interactive.
7803 (Fframe_parameters) [MSDOS]: Replace indexing into colornames[]
7804 array with a call to msdos_stdcolor_name. The font name is now
7805 "ms-dos", consistent with realize_tty_face.
7806
7807 * keyboard.c (cmd_error_internal): Don't kill Emacs if this is an
7808 MSDOS frame.
7809
7810 * window.c (Fset_window_configuration) [MSDOS]: Don't call
7811 x_set_toolbar_lines.
7812
7813 * xfaces.c (load_color): Remove static from definition and remove
7814 prototype.
7815 [MSDOS]: Add a DOS-specific version of load_color.
7816 (lookup_face): Replace FRAME_TERMCAP_P with !FRAME_WINDOW_P.
7817 (lookup_derived_face): New function.
7818 (realize_default_face): Support MSDOS frames.
7819 [MSDOS]: If fore/background colors are unspecified, inherit them
7820 from the frame.
7821 (realize_face): Support MSDOS frames.
7822 (realize_tty_face): Support MSDOS frames.
7823 [MSDOS]: If the face color is not in Vface_tty_color_alist, call
7824 load_color to try to find a suitable approximation. If the face
7825 is inverse-video, swap the foreground and background colors.
7826
7827 * dosfns.c (msdos_stdcolor_name, msdos_stdcolor_idx): New
7828 functions.
7829
7830 * dosfns.h (msdos_stdcolor_name, msdos_stdcolor_idx): Declare.
7831
7832 * msdos.h: Remove redundant declarations (most of them are now in
7833 dispextern.h).
7834
7835 * msdos.c (IT_set_face): Rewritten for the new redisplay engine.
7836 Use default frame colors if the face doesn't specify them; invert
7837 the colors if highlight is ON.
7838 (IT_write_glyphs): Rewritten for the new redisplay engine.
7839 (IT_change_line_highlight): Add (unused) parameter Y, since that's
7840 how the hook is called by term.c.
7841 (IT_copy_glyphs): New function, copies an area of the display in
7842 video RAM.
7843 (IT_insert_glyphs): Rewritten to DTRT instead of aborting, since
7844 redisplay now calls it even if char_ins_del_ok is zero.
7845 (IT_set_frame_parameters): Prototype changed. Calls the new
7846 load_color. Puts the new fore/background colors into the default
7847 face on current frame.
7848 (IT_menu_display): Rewritten to handle the new struct glyph
7849 instead of a char array.
7850 (XMenuActivate): Call lookup_derived_face to create and use
7851 special faces for the pop-up and drop-down menus.
7852
78531999-07-29 Gerd Moellmann <gerd@gnu.org>
7854
7855 * xterm.c (x_set_toolkit_scroll_bar_thumb): Don't call
7856 XawScrollbarSetThumb if thumb parameters haven't changed because
7857 that function apparently isn't optimized for this case.
7858
78591999-07-29 Eli Zaretskii <eliz@gnu.org>
7860
7861 * msdos.c (getdefdir): Don't return failure indication when
7862 _fixpath sets errno to ENOSYS.
7863
78641999-07-28 Gerd Moellmann <gerd@gnu.org>
7865
7866 * xdisp.c (string_char_and_length): New. Use it everywhere
7867 instead of STRING_CHAR_AND_LENGTH in xdisp.c.
7868
78691999-07-28 Kenichi Handa <handa@etl.go.jp>
7870
7871 * fns.c (count_combining): New function.
7872 (struct textprop_rec): New structure.
7873 (concat): Copy text properties correctly when byte combining
7874 occurs.
7875
78761999-07-28 Gerd Moellmann <gerd@gnu.org>
7877
7878 * xterm.c (x_setup_relief_color): Don't try smart color allocation
7879 if display is mono.
7880 (x_draw_row_bitmaps): If face has stipple, don't switch
7881 to foreground color for clearing areas, and set the fill style.
7882
7883 * xfaces.c (load_face_colors): Load background color if setting
7884 stipple, too.
7885 (prepare_face_for_display): Use FillOpaqueStippled instead of
7886 FillStippled.
7887
78881999-07-26 Ken'ichi Handa <handa@gnu.org>
7889
7890 * xterm.c (x_find_ccl_program): Add casting.
7891
7892 * w32fns.c (w32_find_ccl_program): Add casting.
7893
78941999-07-27 Gerd Moellmann <gerd@gnu.org>
7895
7896 * dispextern.h (struct glyph_row): Flag internal_border_p removed.
7897
7898 * xfns.c (x_create_tip_frame): Don't set bitmapIcon resource
7899 because this will try to access a nonexisting widget.
7900
79011999-07-26 Markus Rost <rost@gnu.org>
7902
7903 * fns.c (Fgethash): Fix order of variables (patch by gerd).
7904 (Fputhash): Ditto.
7905 (Fremhash): Ditto.
7906
79071999-07-26 Gerd Moellmann <gerd@gnu.org>
7908
7909 * widget.c (EmacsFrameSetCharSize): Don't add XtNborderWidth
7910 value to frame width and height.
7911
7912 * xterm.c (x_get_glyph_string_clip_rect): Take internal border
7913 into account for full-width windows. Don't add scroll bar width
7914 to width of clip rect.
7915 (x_draw_glyph_string_box): Add 1 to right x of full width lines.
7916 (x_set_glyph_string_background_width): Add 1 to background width.
7917 (x_draw_glyphs): Take internal border into account for full-width
7918 lines.
7919
79201999-07-26 Richard M. Stallman <rms@gnu.org>
7921
7922 * xfns.c (x_set_mouse_color): Always unload the old color.
7923 Don't allow nil as color value.
7924 (x_set_cursor_color, x_set_background_color, x_set_foreground_color):
7925 Always unload the old color.
7926
7927 * indent.c (Fmove_to_column): Extend end of line only if FORCE is t.
7928
79291999-07-26 Karl Heuer <kwzh@gnu.org>
7930
7931 * fns.c (Fy_or_n_p): Doc fix.
7932
79331999-07-26 Kenichi Handa <handa@etl.go.jp>
7934
7935 * ccl.h (setup_ccl_program): The type is changed to `int'.
7936
7937 * ccl.c (ccl_driver) <CCL_Call>: Now CCL program ID to call may be
7938 stored in the following CCL code. Adjusted for the change of
7939 Vccl_program_table.
7940 (resolve_symbol_ccl_program): Adjusted for the new style of
7941 embedded symbols (SYMBOL . PROP) in CCL compiled code. Return Qt
7942 is resolving failed.
7943 (ccl_get_compiled_code): New function.
7944 (setup_ccl_program): Function type changed from `void' to `int'.
7945 Resolve symbols in CCL_PROG.
7946 (Fccl_program_p): New function.
7947 (Fccl_execute): Get compiled CCL code by just calling
7948 setup_ccl_program.
7949 (Fccl_execute_on_string): Likewise.
7950 (Fregister_ccl_program): Adjusted for the change of
7951 Vccl_program_table.
7952
7953 * coding.c (setup_coding_system): Get compiled CCL code by just
7954 calling setup_ccl_program.
7955
7956 * xterm.c (x_find_ccl_program): Get compiled CCL code by just
7957 calling setup_ccl_program.
7958
7959 * w32fns.c (w32_find_ccl_program): Get compiled CCL code by just
7960 calling setup_ccl_program.
7961
79621999-07-23 Gerd Moellmann <gerd@gnu.org>
7963
7964 * xfaces.c (frame_update_line_height): Just use the height of the
7965 frame's fontset or font, instead of taking face fonts into
7966 account.
7967
7968 * xdisp.c (get_next_display_element): Display DEL as `^?'.
7969
79701999-07-23 Richard M. Stallman <rms@gnu.org>
7971
7972 * window.c (Fsplit_window): For default size, round up for left window.
7973
79741999-07-21 Joe Ramey <ramey@ti.com>
7975
7976 * filelock.c (lock_if_free): Return -1 if check_lock_owner
7977 has returned -1 (lockfile exists but is not a symlink?).
7978
79791999-07-20 Gerd Moellmann <gerd@gnu.org>
7980
7981 * xterm.c (x_draw_bar_cursor): Use scratch_cursor_gc to
7982 because of a change in cursor_gc made in 20.4.
7983
79841999-07-19 Gerd Moellmann <gerd@gnu.org>
7985
7986 * xterm.c (x_calc_absolute_position): Subtract menu bar height
7987 for YNegative, if using X toolkit.
7988
7989 * xfns.c (x_real_positions): Don't subtract window borders
7990 from positions returned.
7991
79921999-07-17 Gerd Moellmann <gerd@gnu.org>
7993
7994 * xrdb.c (x_load_resources): Set double-click time defaults
7995 for Motif list boxes from double-click-time.
7996
7997 * fns.c (Vhash_table_tests): Remvoed.
7998 (Qhash_table_test): New.
7999 (syms_of_fns): Initialize Qhash_table_test.
8000 (Fmake_hash_table): Look up user-defined tests in symbol prop
8001 `hash-table-test'.
8002 (Fdefine_hash_table_test): Store test and hash function as
8003 symbol prop `hash-table-test'.
8004 (make_hash_table): Add parameters user_test and user_hash.
8005
8006 * window.c (set_window_buffer): Set window margins for tty
8007 frames, too.
8008 (Fset_window_margins): Ditto.
8009
8010 * term.c (append_glyph): Use glyph area of iterator instead of
8011 always TEXT_AREA.
8012
8013 * dispnew.c (update_frame_1): Add left margin width to cursor
8014 hpos.
8015 (direct_output_for_insert): Ditto.
8016 (direct_output_forward_char): Ditto.
8017
8018 * dispnew.c (adjust_glyph_matrix): Set glyph matrix' top_line_p.
8019
8020 * dispextern.h (struct glyph_matrix): Add top_line_p.
8021
80221999-07-16 Gerd Moellmann <gerd@gnu.org>
8023
8024 * frame.h (FRAME_WINDOW_REDISPLAY_P): Removed. Use FRAME_WINDOW_P
8025 instead.
8026
8027 * fns.c (cmpfn_eq): Add hash code parameters.
8028 (cmpfn_eql): Ditto.
8029 (cmpfn_equal): Ditto, and compare hash codes before calling Fequal.
8030 (cmpfn_user_defined): Likewise.
8031
80321999-07-15 Gerd Moellmann <gerd@gnu.org>
8033
8034 * lisp.h (DEFAULT_REHASH_THRESHOLD): Changed to 0.8.
8035
8036 * fns.c (maybe_resize_hash_table): Correct computation of
8037 index vector size.
8038 (make_hash_table): Ditto.
8039 (Fmakehash): New.
8040
8041 * xdisp.c (echo_area_display): Don't call redraw_garbaged_frames.
8042
8043 * alloc.c (gc_sweep): Call sweep_weak_hash_tables.
8044 (survives_gc_p): Make it externally visible.
8045 (mark_object): Ditto.
8046
8047 * fns.c (remove_hash_entry): Removed.
8048 (sweep_weak_hash_tables): New.
8049
8050 * print.c (print): Print more information about hash tables.
8051
8052 * xfns.c (image_spec_hash): Removed.
8053 (lookup_image): Use sxhash instead of image_spec_hash.
8054 (image_spec_equal_p): Removed.
8055 (lookup_image): Use Fequal instead of image_spec_equal_p.
8056
80571999-07-14 Gerd Moellmann <gerd@gnu.org>
8058
8059 * lisp.h (P_): Moved to top of file.
8060
8061 * fns.c (make_hash_table): Set new members.
8062
8063 * alloc.c (mark_object): Mark hash table's user_hash_function.
8064 Mark index vector for weak hash tables.
8065
8066 * lisp.h (struct Lisp_Hash_Table): Add user_cmp_function,
8067 user_hash_function, cmpfn, and hashfn.
8068
8069 * fns.c (build_hash): Removed.
8070 (hash_test): Removed.
8071 (cmpfn_eq, cmpfn_eql, cmpfn_equal, cmpfn_user_defined): New.
8072 (hashfn_eq, hashfn_eql, hashfn_equal, hashfn_user_defined): New.
8073
80741999-07-13 Gerd Moellmann <gerd@gnu.org>
8075
8076 * alloc.c (survives_gc_p): New.
8077
8078 * print.c (print): Add hash table handling.
8079
8080 * alloc.c (mark_object): Add code to mark hash tables.
8081
8082 * lisp.h (GC_HASH_TABLE_P): New.
8083
8084 * emacs.c (main): Call init_fns.
8085
8086 * fns.c (init_fns): New.
8087
8088 * fns.c: Add hash table implementation.
8089
8090 * lisp.h (PVEC_HASH_TABLE): New.
8091 (struct Lisp_Hash_Table): New.
8092 (XHASH_TABLE): New.
8093 (XSET_HASH_TABLE): New.
8094 (HASH_TABLE_P): New.
8095 (CHECK_HASH_TABLE): New.
8096 (DEFAULT_HASH_SIZE): New.
8097 (DEFAULT_REHASH_THRESHOLD): New.
8098 (DEFAULT_REHASH_SIZE): New.
8099
8100 * xterm.c (x_draw_glyphs): Add parameters real_start and real_end.
8101 (x_write_glyphs): Compute overwritten cursor using real start
8102 and end positions of display.
8103 (x_insert_glyphs): Ditto.
8104
81051999-07-10 Gerd Moellmann <gerd@gnu.org>
8106
8107 * keyboard.c (read_char): Use message3_nolog to show help-echo.
8108
8109 * dispnew.c (blank_row): Add y-position as parameter. Compute
8110 visible height.
8111
8112 * xdisp.c (next_element_from_string): Give padding spaces
8113 a position of -1.
8114
8115 * dispnew.c (adjust_glyph_matrix): Some work to support
8116 marginals areas on tty frames in a future version.
8117 (allocate_matrices_for_frame_redisplay): Ditto.
8118
8119 * xdisp.c (display_line): At ZV, set glyph row's displays_text_p
8120 to zero if number of glyphs in the row is <= 1.
8121
81221999-07-09 Gerd Moellmann <gerd@gnu.org>
8123
8124 * dispnew.c (buffer_posn_from_coords): Take left marginal area
8125 into account.
8126
8127 * xdisp.c (handle_display_prop): Don't reset area if handing
8128 a property from a string that came from a `display' property.
8129 (handle_single_display_prop): Don't handle recursive `display'
8130 properties.
8131 (handle_single_display_prop): Handle some display property
8132 forms for terminal frames.
8133 (Qimage): Moved here from xfns.c.
8134
8135 * dispextern.h (struct it): New field string_from_display_prop_p.
8136
8137 * xterm.c (x_clip_to_row): Don't let clip_rect include top
8138 line.
8139
81401999-07-08 Gerd Moellmann <gerd@gnu.org>
8141
8142 * xdisp.c (handle_single_display_prop): Handle `:when FORM'.
8143
8144 * window.c (set_window_buffer): Set window's vscroll to zero.
8145
8146 * xdisp.c (QCwhen): New.
8147 (display_prop_end): New.
8148 (handle_single_display_prop): Use it.
8149 (debug_method_add): Print buffer name if tracing.
8150 (try_window_reusing_current_matrix): Compute visible height
8151 of reused rows. Fix cursor position calculation in case of
8152 top-line.
8153
8154 * dispextern.h (struct redisplay_interface): Add parameter
8155 cursor_on_p to update_window_end_hook.
8156
8157 * xterm.c (x_update_window_end): Add parameter cursor_on_p.
8158
81591999-07-07 Gerd Moellmann <gerd@gnu.org>
8160
8161 * xdisp.c (redisplay_internal): Ensure that redisplayinp_p
8162 doesn't become negative when decrementing it.
8163
8164 * eval.c (Fsignal): Reset redisplaying_p to zero.
8165
8166 * xdisp.c (try_window_reusing_current_matrix): Call hooks
8167 for window update.
8168 (try_window_id): Ditto.
8169
8170 * xterm.c (x_clear_end_of_line): Handle top-line correctly.
8171 (x_scroll_run): Ditto.
8172 (any_help_event_p): New.
8173 (x_initialize): Set it to zero.
8174 (XTread_socket): Clear help echo only if any_help_event_p.
8175
8176 * xdisp.c (init_iterator): Set top_line_p.
8177 (start_display): Use correct initial y if top-line is present.
8178 (make_cursor_line_fully_visible): Bug fixes for top-line.
8179 (try_scrolling): Ditto.
8180 (try_window_reusing_current_matrix): Ditto.
8181
8182 * dispextern.h (struct it): Add top_line_p.
8183
8184 * dispnew.c (shift_glyph_matrix): Move some computations out
8185 of the loop.
8186
8187 * dispnew.c (margin_glyphs_to_reserve): Use NUMBERP and
8188 XFLOATINT.
8189
81901999-07-06 Gerd Moellmann <gerd@gnu.org>
8191
8192 * dispnew.c (update_frame_1): When setting cursor in echo area,
8193 skip only over padding spaces at the end.
8194
8195 * xfaces.c (realize_tty_face): Set face's font_name field to
8196 "tty".
8197
8198 * term.c (update_end): Turn cursor on only if selected window's
8199 cursor_off_p flag is not set.
8200
82011999-07-05 Gerd Moellmann <gerd@gnu.org>
8202
8203 * term.c (TS_cursor_visible): Renamed from TS_visual_mode.
8204 (TS_cursor_normal): Renamed from TS_end_visual_mode.
8205 (TS_cursor_invisible): New.
8206 (term_init): Initialize TS_cursor_invisible.
8207 (tty_hide_cursor): New.
8208 (tty_show_cursor): New.
8209 (update_end): Show tty cursor.
8210 (update_begin): Hide tty cursor to prevent cursor flickering
8211 during redisplays triggered by timers (stealth fontification).
8212
8213 * keyboard.c (make_lispy_event) <TOOLBAR_EVENT>: Apply modifiers.
8214
8215 * xterm.c (XTread_socket) [USE_MOTIF] <KeyPress>: Catch events
8216 in scroll bars.
8217 (x_handle_toolbar_click): Set modifier bits.
8218
82191999-07-04 Gerd Moellmann <gerd@gnu.org>
8220
8221 * keyboard.c (kbd_store_ptr): Declare it as a volatile pointer
8222 instead of a pointer to a volatile input_event.
8223 (kbd_buffer_store_event): Remove volatile modifier from
8224 declaration of local variable `sp'.
8225 (Fdiscard_input): Don't cast when assigning kbd_store_ptr
8226 to kbd_fetch_ptr.
8227
82281999-07-03 Gerd Moellmann <gerd@gnu.org>
8229
8230 * xdisp.c (try_window_id): Set beg_unchanged and end_unchanged
8231 only if buffer is modified. Return quickly if changes are
8232 above window start.
8233
82341999-07-02 Gerd Moellmann <gerd@gnu.org>
8235
8236 * dispextern.h (HSCROLL_WINDOWS): Removed.
8237
8238 * xdisp.c (mark_window_display_accurate): Don't set
8239 w->region_showing.
8240 (redisplay_internal): Don't call redraw_garbaged_frames.
8241
82421999-07-01 Gerd Moellmann <gerd@gnu.org>
8243
8244 * xdisp.c (echo_area_display): Don't display truncation marks
8245 for messages because 20.4 doesn't do it either.
8246 (redisplay_window): Case same window start. Instead of giving
8247 up when cursor is partially visible, make it fully visible.
8248 (mark_window_display_accurate): Some cleanup. Record window's
8249 last cursor information.
8250 (debug_method_add): Improved.
8251 (redisplay_internal): Record last cursor info only if not
8252 consider_all_windows_p.
8253
8254 * dispnew.c (update_window): Update top line after scrolling.
8255 (blank_row): Renamed from make_empty_enabled_row.
8256 (increment_glyph_row_buffer_positions): Increment positions
8257 in buffers, only.
8258
8259 * window.c (Fcoordinates_in_window_p): Add top-line to doc
8260 string.
8261
82621999-06-30 Gerd Moellmann <gerd@gnu.org>
8263
8264 * dispnew.c (update_window): Check that updated row is visible.
8265
8266 * xterm.c (x_draw_row_bitmaps): Check for invisible rows at
8267 top of window differently.
8268
8269 * xdisp.c (try_window_reusing_current_matrix): Don't do it
8270 if region is showing.
8271
8272 * dispnew.c (adjust_glyph_matrix): Check w->vscroll when
8273 avoiding matrix reallocation. Set window_vscroll in matrix.
8274
8275 * dispextern.h (struct glyph_matrix): Add member window_vscroll.
8276
26901792
DL
8277 * xdisp.c (debug_method_add): New.
8278 (debug_redisplay_method): Removed.
8279 (try_window_reusing_current_matrix): Handle case where old
8280 window start is the same as new window start.
8281
8282 * dispextern.h (struct glyph_matrix) [GLYPH_DEBUG]: Make `method'
8283 an array instead of a pointer.
8284
26901792
DL
8285 * xfns.c (Fx_show_tip): Undo previous change.
8286
8287 * xterm.c (x_append_glyph): Clear glyph->u.val.
8288
8289 * dispextern.h (struct glyph): Increase size of face_id bit-field
8290 for CHAR_GLYPH to 12.
8291
82921999-06-29 Gerd Moellmann <gerd@gnu.org>
8293
8294 * xfaces.c (x_charset_registry): Make it externally visible.
8295
82961999-06-28 Gerd Moellmann <gerd@gnu.org>
8297
8298 * dispnew.c (update_window): Use mode_line_p flag of rows
8299 instead of WINDOW_WANTS_MODELINE_P.
8300
8301 * xterm.c (clear_mouse_face): Make externally visible.
8302
8303 * xfns.c (Fx_show_tip): Clear mouse face before showing tip.
8304
8305 * xterm.c (expose_line): Handle exposure of top-lines.
8306
8307 * xterm.c (XTframe_up_to_date): Don't call note_mouse_highlight
8308 if mouse_face_mouse_frame is null.
8309
8310 * xdisp.c (redisplay_window): If window is echo_area_window,
8311 and update_mode_line is set, update menubar and toolbar.
8312
8313 * dispnew.c (space_glyph): Set its charpos to -1.
8314 (update_frame_1): Ignore trailing padding spaces.
8315
8316 * xdisp.c (next_element_from_c_string): Set position of padding
8317 glyphs to -1.
8318
83191999-06-27 Gerd Moellmann <gerd@gnu.org>
8320
8321 * xfns.c (x_laplace_read_row): Use XQueryColors instead of
8322 XQueryColor.
8323
8324 * xdisp.c (display_menu_bar): Remove unwarranted assertion.
8325 (set_cursor_from_row): Skip over glyphs having a null object at
8326 the start of rows.
8327 (insert_left_trunc_glyphs): Use charpos < 0 to indicate truncation
8328 glyphs.
8329 (handle_invisible_prop): Compute next change only when needed.
8330 (handle_face_prop): Don't correct DEFAULT_FACE_ID if in the mode
8331 line.
8332
83331999-06-26 Gerd Moellmann <gerd@gnu.org>
8334
8335 * xrdb.c (x_load_resources): Don't set resource for double-click
8336 time.
8337
8338 * xdisp.c (try_window_id): Return quickly if all changes are
8339 below the window's current matrix end.
8340
8341 * dispextern.h (MATRIX_ROW_PARTIALLY_VISIBLE_P): Remove window
8342 parameter.
8343
8344 * xdisp.c (try_window_reusing_current_matrix): Set no_scrolling_p
8345 in desired not in current matrix.
8346 (try_window_reusing_current_matrix): Rotate matrices starting
8347 at start_vpos instead of 0.
8348
8349 * xterm.c (expose_window): Use window_text_bottom_y.
8350 (fast_find_position): Ditto.
8351
8352 * xdisp.c (redisplay_window): Use window_text_bottom_y.
8353 (try_window_reusing_current_matrix): Ditto.
8354 (get_last_unchanged_at_beg_row): Ditto.
8355 (init_iterator): Ditto.
8356
8357 * dispnew.c (allocate_matrices_for_window_redisplay): Allocate one
8358 more row.
8359 (check_matrix_invariants): Use window_text_bottom_y.
8360 (update_window): Ditto.
8361 (scrolling_window): Ditto.
8362
8363 * xdisp.c (window_text_bottom_y): New.
8364
83651999-06-25 Gerd Moellmann <gerd@gnu.org>
8366
8367 * xterm.c (XTread_socket): Set mouse_face_frame to zero after
8368 clearing mouse face.
8369 (XTread_socket) <EnterNotify> [LESSTIF_VERSION]: If
8370 event.xcrossing.focus is not set, and focus is in the menu bar,
8371 set focus frame as if event.xcrossing.focus were set.
8372
83731999-06-24 Gerd Moellmann <gerd@gnu.org>
8374
8375 * keyboard.c (make_lispy_event): Handle mouse on top lines.
8376 * keyboard.c (make_lispy_movement): Ditto.
8377
8378 * window.c (coordinates_in_window): Return 4 if on top line.
8379 (Fcoordinates_in_window_p): Return `top-line' if on top line.
8380
8381 * xdisp.c (window_box_height): Subtract top line height.
8382 (window_box): Add top line height to top y position if top line
8383 exists.
8384 (init_iterator): If base_face_id is TOP_LINE_FACE_ID, set row to
8385 the top line row of the window. Set initial y-position to
8386 window's top line height plus delta.
8387 (start_display): Choose start glyph row depending on whether
8388 window has a top line.
8389 (try_scrolling): Take top line height into account for aggressive
8390 scrolling.
8391 (compute_window_start_on_continuation_line): Take top line into
8392 account.
8393 (redisplay_window): Ditto. If top line height has changed,
8394 trigger a new redisplay.
8395 (try_window_reusing_current_matrix): Take top line into account.
8396 (find_last_row_displaying_text): Ditto.
8397 (get_last_unchanged_at_beg_row): DItto.
8398 (try_window_id): Ditto.
8399 (compute_line_metrics): Ditto.
8400
8401 * dispnew.c (shift_glyph_matrix): Compute visible row height
8402 taking top line of window into account.
8403 (update_window): Update top line. If scrolling_window detects
8404 that all rows are equal, only set cursor.
8405 (update_window_line): Call after_update_window_line_hook if
8406 mode_line_p flag of rows has changed.
8407 (scrolling_window): Add parameter top_line_p. Return -1 if
8408 all rows are equal.
8409 (mode_line_string): Add parameter mode_line_p. Handle strings
8410 in top lines.
8411
8412 * dispextern.h (MATRIX_TOP_LINE_ROW): New.
8413 (MATRIX_FIRST_TEXT_ROW): New.
8414 (MATRIX_ROW_PARTIALLY_VISIBLE_P): Use row's visible_height.
8415 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_TOP_P): New.
8416 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_BOTTOM_P): New.
8417 (MATRIX_TOP_LINE_HEIGHT): New.
8418 (CURRENT_MODE_LINE_HEIGHT): Use estimate_mode_line_height.
8419 (CURRENT_TOP_LINE_HEIGHT): New.
8420 (DESIRED_TOP_LINE_HEIGHT): New.
8421 (WINDOW_DISPLAY_TOP_LINE_HEIGHT): New.
8422 (WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE): Replaces
8423 WINDOW_DISPLAY_TEXT_AREA_PIXEL_HEIGHT.
8424 (WINDOW_DISPLAY_TEXT_HEIGHT): New.
8425
8426 * xterm.c (x_after_update_window_line): Don't draw bitmaps for top
8427 lines.
8428 (x_draw_row_bitmaps): Take top line into account when clearing
8429 bitmap area.
8430 (x_estimate_mode_line_height): Replacement for
8431 x_frame_mode_line_height.
8432 (x_get_glyph_string_clip_rect): Take top line into account.
8433 (x_clear_end_of_line): Ditto.
8434 (note_mode_line_highlight): Add parameter mode_line_p. Handle
8435 top lines.
8436 (note_mouse_highlight): Call note_mode_line_highlight for top lines.
8437 (x_erase_phys_cursor): Take top line into account.
8438
8439 * xdisp.c (window_box_height): Subtract top line height if
8440 window wants a top line.
8441 (display_mode_lines): New.
8442 (redisplay_window): Call it.
8443 (display_mode_line): Add parameters face_id and format.
8444
8445 * dispextern.h (CURRENT_TOP_LINE_HEIGHT): New.
8446 (MATRIX_TOP_LINE_HEIGHT): New.
8447
8448 * xterm.c (x_frame_mode_line_height): Add parameter face_id.
8449
8450 * term.c (estimate_mode_line_height): Renamed from
8451 frame_mode_line_height. Add parameter face_id.
8452 (estimate_mode_line_height_hook): Renamed from
8453 frame_mode_line_height_hook.
8454 (produce_special_glyphs_hook): Removed.
8455 (produce_glyphs_hook): Removed.
8456
84571999-06-23 Gerd Moellmann <gerd@gnu.org>
8458
8459 * dispextern.h (WINDOW_WANTS_TOP_LINE_P): New.
8460 (struct glyph_row): Add mode_line_p.
8461
8462 * xfaces.c (realize_basic_faces): Realize face `top-line'.
8463 (Qtop_line): New.
8464 (syms_of_xfaces): Initialize Qtop_line.
8465
8466 * dispextern.h (TOP_LINE_FACE_ID): New.
8467
8468 * buffer.c (init_buffer_once): Set default for
8469 top_line_format to nil.
8470 (init_buffer_once): Init top_line_format.
8471 (default-top-line-format): New.
8472 (top-line-format): New buffer-local variable.
8473
8474 * buffer.h: Add top_line_format.
8475
8476 * xdisp.c (overlay_arrow_changed_p): Removed because not used.
8477
84781999-06-17 Dave Love <fx@gnu.org>
8479
8480 * xfns.c: Move the PNG section before the JPEG one to avoid
8481 problems surrounding setjmp.h/png.h on GNU/Linux.
8482
84831999-06-17 Gerd Moellmann <gerd@gnu.org>
8484
8485 * xfns.c (x_kill_gs_process): Don't free colors.
8486
84871999-06-17 Dave Love <fx@gnu.org>
8488
8489 * s/gnu-linux.h: Zap spurious ~.
8490
84911999-06-16 Gerd Moellmann <gerd@gnu.org>
8492
8493 * xfns.c (gif_load): Improve multi-image support.
8494
84951999-06-15 Gerd Moellmann <gerd@gnu.org>
8496
8497 * xfns.c (gif_load): Support multi-image files.
8498
8499 * Makefile.in (LIBGIF): Use libungif.
8500
8501 * configure.in (HAVE_GIF): Use libungif instead of libgif
8502 because the former doesn't contain patented compression code.
8503
8504 * xdisp.c (compute_window_start_on_continuation_line): Don't
8505 do it if line start is too far away from window start.
8506
85071999-06-14 Gerd Moellmann <gerd@gnu.org>
8508
8509 * buffer.c (init_buffer_once): Set buffer_local_flags for
8510 scroll_*_aggressively.
8511 (syms_of_buffer): Add DEFVAR_PER_BUFFER for scroll-*-aggressively.
8512 (init_buffer_once): Set defaults for these variables.
8513 (syms_of_buffer): Add default-scroll-*-aggressively.
8514
8515 * buffer.h (scroll_up_aggressively): New.
8516 (scroll_down_aggressively): New.
8517
8518 * Makefile.in (LIBPNG): Add -lz -lm in case we're linking with
8519 a static PNG library.
8520
8521 * configure.in (HAVE_PNG): Add -lz -lm when checking for PNG lib
8522 in case it's a static library.
8523
8524 * Makefile.in (ctagsfiles): Split so that files starting
8525 with an `x' are found before files starting with `w32'.
8526 (ctagsfiles1): New.
8527 (ctagsfiles2): New.
8528 (TAGS): Use ctagsfiles[12] instead of ctagsfiles.
8529
8530 * xdisp.c (compute_window_start_on_continuation_line): New.
8531 (redisplay_window): Use it.
8532 (INFINITY): New.
8533 (reseat_to_string): Use it.
8534 (hscroll_window_tree): Ditto.
8535 (compute_window_start_on_continuation_line): Ditto.
8536 (redisplay_window): Don't force display with a new window start.
8537
85381999-06-06 Gerd Moellmann <gerd@gnu.org>
8539
8540 * xfns.c (x_report_frame_params): Don't report `outer-window-id'
8541 if widget not present.
8542
8543 * xdisp.c (prepare_menu_bars): Ignore tooltip frame.
8544
85451999-06-04 Gerd Moellmann <gerd@gnu.org>
8546
8547 * xfaces.c (recompute_basic_faces)[GLYPH_DEBUG]: Check return
8548 value of realize_basic_faces.
8549 (load_face_font_or_fontset): Store full font name in face.
8550 (realize_default_face): Use full font name.
8551
26901792
DL
8552 * xterm.c (x_produce_glyphs): Set member char_to_display.
8553 (x_append_glyph): Store char_to_display in glyphs.
8554
8555 * dispextern.h (struct it): Add char_to_display.
8556
8557 * xfns.c (x_set_font): Don't call face-set-after-frame-default
8558 if faces haven't been initialized.
8559 (Fx_create_frame): Call face-set-after-frame-default after
8560 faces have been initialized, and widget has been created.
8561
8562 * puresize.h (BASE_PURESIZE): Increased.
8563
85641999-06-01 Gerd Moellmann <gerd@gnu.org>
8565
8566 * xfaces.c (set_lface_from_font_name): Add parameter force_p.
8567 (Finternal_set_lisp_face_attribute): If frame is t when
8568 :font attribute is set, use the selected frame.
8569 (clear_face_cache): Add parameter clear_fonts_p.
8570 (Fclear_face_cache): Add optional parameter thorougly.
8571
8572 * xfaces.c (face_numeric_value): Return -1 if symbol is not
8573 in table.
8574 (Fclear_face_cache): New.
8575 (choose_face_fontset_font): If fontset doesn't contain font
8576 pattern for the given charset, use CHARSET_ASCII.
8577 (Finternal_set_lisp_face_attribute): Fix handling of nil
8578 stipple attribute.
8579 (Finternal_set_lisp_face_attribute): Fix handling of changing
8580 font-related face attributes of the default face.
8581 (set_lface_from_font_name): Set only attributes that aren't
8582 specified.
8583
85841999-05-31 Gerd Moellmann <gerd@gnu.org>
8585
8586 * xfaces.c (SCALABLE_FONTS): Define this to enable scalable
8587 font support.
8588 (Vscalable_fonts_allowed) [SCALABLE_FONTS]: New.
8589 (x_face_list_fonts): Add parameter scalable_fonts_p. Handle
8590 scalable fonts depending on the setting of SCALABLE_FONTS.
8591 (first_font_matching): List more than one font to find the
8592 first non-scalable matching font.
8593 (sorted_font_list): Let x_face_list_fonts return scalable fonts
8594 depending on SCALABLE_FONTS.
8595 (better_font_p): New parameter compare_pt_p. If zero, don't
8596 compare point sizes of fonts.
8597 (exact_face_match_p) [SCALABLE_FONTS]: New.
8598 (build_scalable_font_name) [SCALABLE_FONTS]: New.
8599 (may_use_scalable_font_p) [SCALABLE_FONTS]: New.
8600 (best_matching_font) [SCALABLE_FONTS]: Handle scalable fonts.
8601 (syms_of_xfaces): Add scalable-fonts-allowed.
8602
86031999-05-26 Gerd Moellmann <gerd@gnu.org>
8604
8605 * xfns.c (png_load): Let PNG lib handle gamma. Construct
8606 mask only if image contains simple transparency information.
8607 Otherwise, combine image with frame background color.
8608
8609 * configure.in (--with-png, HAVE_PNG): New.
8610
8611 * config.in (HAVE_PNG): New.
8612
8613 * Makefile.in: Add PNG library.
8614
8615 * xfns.c: Add PNG support.
8616
86171999-05-25 Gerd Moellmann <gerd@gnu.org>
8618
8619 * xdisp.c (init_xdisp): Initialize echo_area_message and
8620 previous_echo_area_message to nil.
8621
8622 * keyboard.c (read_char): Rename local variable echo_area_message
8623 because it shadows the global one.
8624
86251999-05-05 Gerd Moellmann <gerd@gnu.org>
8626
8627 * xterm.c (note_mode_line_highlight): Restructured.
8628
8629 * window.c (coordinates_in_window): Handle windows that don't have
8630 a mode line because their buffer's mode-line-format is nil.
8631 Recognize the mode line under x positions that correspond to
8632 flags areas and left scroll bar.
8633
86341999-05-02 Dave Love <fx@gnu.org>
8635
8636 * xterm.c (note_mouse_highlight): Separate help-echo processing
8637 from check on mouse-face so that it works generally.
8638
86391999-04-21 Gerd Moellmann <gerd@gnu.org>
8640
8641 * sound.c (Fplay_sound): Run hook play-sound-hook.
8642 (Qplay_sound_hook): New.
8643
86441999-04-20 Gerd Moellmann <gerd@gnu.org>
8645
8646 * xdisp.c (update_echo_area): Handle echo_area_message.
8647
86481999-04-19 Gerd Moellmann <gerd@gnu.org>
8649
8650 * editfns.c (Fmessage): Use message3.
8651
8652 * print.c (printchar): Set echo_area_message to nil.
8653 (strout): Ditto.
8654
8655 * minibuf.c (read_minibuf): Reset echo message strings to nil.
8656 (Fminibuffer_completion_help): Ditto.
8657
8658 * keyboard.c (cmd_error_internal): Set echo_areA_message.
8659 (command_loop_1): Test echo_areA_message.
8660 (read_char): Ditto.
8661 (record_menu_key): Set echo_area_message to nil.
8662 (Fexecute_extended_command): Test echo_area_message.
8663 (Fexecute_extended_command): Handle echo_area_message.
8664
8665 * fileio.c (Fdo_auto_save): Handle the case that echo_area_message
8666 is set.
8667
8668 * editfns.c (Fcurrent_message): If echo_area_message is set,
8669 return a substring of that string.
8670
8671 * dispnew.c (direct_output_for_insert): Test echo_area_message
8672 in addition to echo_area_glyphs.
8673 (set_window_cursor_after_update): Ditto.
8674 (update_frame_1): Ditto.
8675
8676 * alloc.c (Fgarbage_collect): Use message3_nolog to display
8677 old Lisp message string.
8678
8679 * xdisp.c (echo_area_message): New.
8680 (previous_echo_area_message): New.
8681 (syms_of_xdisp): Initialize and staticpro new variables.
8682 (echo_area_display): Display echo_area_message if set.
8683 (message2_nolog): Set echo_area_message and
8684 previous_echo_area_message.
8685 (echo_area_display): Set previous_echo_area_message.
8686 (redisplay_internal): Display echo area if echo_area_message
8687 or previous_echo_area_message are set.
8688 (redisplay_preserve_echo_area): Test/set echo_area_message and
8689 previous_echo_area_message.
8690 (redisplay_window): Test echo_area_message.
8691 (message3_nolog): New.
8692 (message3): New.
8693
8694 * editfns.c (Fformat): Add text properties to the result string
8695 from properties of the format string and properties of string
8696 arguments.
8697
8698 * textprop.c (text_property_list): New.
8699 (add_text_properties_from_list): New.
8700 (extend_property_ranges): New.
8701
87021999-03-29 Gerd Moellmann <gerd@gnu.org>
8703
8704 * xfaces.c (Qraised, Qsunken, QCshadow): Removed.
8705 (QCline_width, QCstyle, Qpressed_button, Qreleased_button): New.
8706 Use these symbols for the box face attribute instead of the
8707 removed ones.
8708
87091999-03-12 Gerd Moellmann <gerd@gnu.org>
8710
8711 * xfaces.c (realize_tty_face): Don't set alt_char_p of face.
8712 Correct wrong test for slant.
8713
87141999-03-10 Gerd Moellmann <gerd@gnu.org>
8715
8716 * xfaces.c: Use `unspecified' for unspecified face attributes,
8717 use t and nil for on/off.
8718
87191999-03-06 Gerd Moellmann <gerd@gnu.org>
8720
8721 * buffer.c (syms_of_buffer): Extend doc string of
8722 mode-line-format.
8723
8724 * xfaces.c (x_face_list_fonts): New parameter try_alternatives_p.
8725 (first_font_matching): New.
8726 (set_lface_from_font_name): Use it if font name is a pattern.
8727 (font_field_wildcard_p): Removed.
8728
8729 * dispnew.c (shift_glyph_matrix): Add `window' parameter.
8730 Recompute visible height of rows.
8731
8732 * xterm.c (note_mouse_highlight): Reorder code for help-echo.
8733 Don't accept non-strings for help-echo from overlays.
8734
87351999-03-04 Dave Love <fx@gnu.org>
8736
8737 * xterm.c (note_mouse_highlight): Check overlays for help-text
8738 property.
8739 (XTread_socket): Fix compiler warning.
8740
87411999-03-05 Gerd Moellmann <gerd@gnu.org>
8742
8743 * xterm.c (note_mouse_highlight): Don't restrict number of
8744 overlay to 10. Call overlays_at so that it doesn't try to
8745 extend the vector.
8746
8747 * xdisp.c (compute_line_metrics): Compute glyph row's visible
8748 height.
8749
8750 * dispnew.c (row_equal_p): Compare visible row height, only.
8751 (update_text_area): Draw whole line if visible heights of
8752 rows differ.
8753 (update_window_line): Call after_update_window_line_hook
8754 if visible row height has changed.
8755
8756 * dispextern.h (MATRIX_ROW_VISIBLE_HEIGHT): Removed.
8757 (struct glyph_row): New member visible_height.
8758
8759 * xfaces.c (font_field_wildcard_p): New.
8760 (set_lface_from_font_name): Remove parameter force_p. Accept
8761 font names containing wildcards.
8762
87631999-03-04 Gerd Moellmann <gerd@gnu.org>
8764
8765 * xterm.c (x_after_update_window_line): Clear internal border
8766 when windows_or_buffers_changed.
8767
8768 * dispextern.h (WINDOW_WANTS_MODELINE_P): Return zero if window's
8769 buffer has a nil mode_line_format.
8770
87711999-03-03 Gerd Moellmann <gerd@gnu.org>
8772
8773 * xterm.c (x_setup_relief_colors): Use either background color
8774 or specified color.
8775
8776 * xfaces.c (realize_x_face): Set face->use_box_color_for_shadows_p.
8777
8778 * dispextern.h (struct face): Add use_box_color_for_shadows_p.
8779
8780 * xterm.c (x_draw_box_rect): New.
8781 (x_draw_glyph_string_box): Renamed from
8782 x_draw_glyph_string_relief. Call x_draw_box_rect.
8783
8784 * xfns.c (QCrelief): New.
8785 (syms_of_xfns): Initialize it.
8786
8787 * dispextern.h (struct glyph): Rename left_shadow_p to
8788 left_box_line_p, right_shadow_p to right_box_line_p.
8789 (MAX_RELIEF_THICKNESS): Removed.
8790 (struct it): Rename members having `relief' in their names
8791 to contain `box' instead.
8792
8793 * xfaces.c (realize_x_face): Handle new box attribute values.
8794 (QCrelief, Qbox): Removed.
8795 (QCshadow, QCcolor, Qraised, Qsunken): New.
8796 (syms_of_xfaces): Initialize new symbols.
8797
87981999-03-02 Gerd Moellmann <gerd@gnu.org>
8799
8800 * dispextern.h (LFACE_RELIEF_INDEX): Removed.
8801
8802 * xfaces.c (LFACE_RELIEF): Removed.
8803 (merge_face_vector_with_property): Remove handling of `:relief'.
8804 (Finternal_set_lisp_face_attribute): Ditto.
8805 (Finternal_set_lisp_face_attribute_from_resource): Ditto.
8806 (Finternal_get_lisp_face_attribute): Ditto.
8807 (realize_default_face): Ditto.
8808 (lface_hash): Don't compute hash from relief.
8809
8810 * dispextern.h (struct face): Replace member `relief' by
8811 `box_line_width'. Add member `box'.
8812 (face_box_type): New.
8813
8814 * xterm.c (x_produce_glyphs): If face has overline, add overline
8815 thickness + 1 to ascent.
8816
88171999-03-01 Gerd Moellmann <gerd@gnu.org>
8818
8819 * xterm.c (x_draw_glyph_string): Draw underline, overline,
8820 strike-through, and boxes.
8821 (x_draw_glyph_string_underline): Removed.
8822
8823 * xfaces.c (QCoverline, QCstrike_through, QCbox): New.
8824 (Qoverline, Qstrike_through, Qbox): New.
8825 (syms_of_xfaces): Define these symbols.
8826 (check_lface_attrs): Add checks for overline, strike-through,
8827 and box.
8828 (Finternal_set_lisp_face_attribute): Set new attributes.
8829 (LFACE_OVERLINE, LFACE_STRIKE_THROUGH, LFACE_BOX): New.
8830 (load_color): Handle new attributes.
8831 (realize_x_face): Ditto.
8832 (merge_face_vector_with_property): Ditto.
8833 (free_face_colors): Ditto.
8834 (Finternal_set_lisp_face_attribute_from_resource): Ditto.
8835 (Finternal_get_lisp_face_attribute): Ditto.
8836 (Finternal_lisp_face_attribute_values): Ditto.
8837
8838 * dispextern.h (lface_attribute_index): Add enumerators for
8839 overstrike, strike-through, and box.
8840 (struct face): Add members for overline, strike-through, and
8841 box.
8842
88431999-02-17 Dave Love <fx@gnu.org>
8844
8845 * s/gnu-linux.h s/gnu.h s/irix5-0.h s/netbsd.h s/sco4.h s/sco5.h
8846 s/template.h (NARROWPROTO): Define on the basis of relevant X cf
8847 files.
8848
88491999-02-16 Gerd Moellmann <gerd@gnu.org>
8850
8851 * keyboard.c (toolbar_items): Call access_keymap with third
8852 parameter 1, so that we don't get inherited toolbar item
8853 definitions.
8854
8855 * xdisp.c (redisplay_internal): In optimization 1, don't decrement
8856 the window end vpos when in empty first line of window.
8857
88581999-02-15 Gerd Moellmann <gerd@gnu.org>
8859
8860 * xfaces.c (set_font_frame_param): New.
8861 (Finternal_set_lisp_face_attribute): Call it.
8862
8863Sun Feb 14 10:54:02 1999 Masatake Yamato <masata-y@is.aist-nara.ac.jp>
8864
8865 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
8866 Accept specifications of color for underline.
8867
88681999-02-13 Gerd Moellmann <gerd@gnu.org>
8869
8870 * xfaces.c (Finternal_set_lisp_face_attribute): If parameter
8871 `frame' is t, operate on face defaults for new frames. If it
8872 is nil, operate on the selected frame.
8873
88741999-02-12 Gerd Moellmann <gerd@gnu.org>
8875
8876 * dispnew.c (check_matrix_invariants): Put it in #if 0.
8877 (update_window): Put the call to check_matrix_invariants in #if 0.
8878
8879Sun Feb 7 09:58:49 1999 Masatake Yamato <masata-y@is.aist-nara.ac.jp>
8880
8881 * dispextern.h: Remove all else block of UNDERLINE_COLOR.
8882 Remove definition of UNDERLINE_COLOR.
8883
8884Mon Jan 4 04:43:41 1999 Masatake Yamato <masata-y@is.aist-nara.ac.jp>
8885
8886 * xfaces.c (free_face_colors): Free the color for underline.
8887
8888 * xterm.c (x_draw_glyph_string_underline): Set the color for underline
8889 to the GC.
8890
8891Sun Jan 3 08:41:10 1999 Masatake Yamato <masata-y@is.aist-nara.ac.jp>
8892
8893 * dispextern.h (UNDERLINE_COLOR): Defined.
8894 (struct face): Added two new members.
8895 underline_color, underline_defaulted_p.
8896
8897 * xfaces.c (merge_face_vector_with_property):
8898 (check_lface_attrs): Accept the string value for underline.
8899 (Finternal_set_lisp_face_attribute): Likewise.
8900
8901 * xfaces.c (load_color): Change the last argument type to enum
8902 lface_attribute_index from int. And addec code for underling coloring.
8903 (load_face_colors): Pass LFACE_*_INDEX to load_color.
8904
89051999-02-12 Gerd Moellmann <gerd@gnu.org>
8906
8907 * xfns.c (Fx_image_header): Removed.
8908
89091999-02-07 Gerd Moellmann <gerd@gnu.org>
8910
8911 * xterm.c: Don't include <bitmaps/gray>.
8912 (x_term_init): Use gray_bitmap_width and gray_bitmap_height.
8913
8914 * xfns.c (Fx_image_header): Add missing `\n\'.
8915 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits): New.
8916
89171999-02-01 Gerd Moellmann <gerd@gnu.org>
8918
8919 * xterm.c (x_scroll_bar_create): Set background pixel from
8920 specified scroll bar color.
8921 (x_scroll_bar_set_handle): Use scroll bar foreground color.
8922
8923 * xfns.c (x_set_scroll_bar_foreground): Remove all scroll bars.
8924 (x_set_scroll_bar_background): Ditto.
8925
8926 * xterm.c (x_create_toolkit_scroll_bar): Set scroll bar colors.
8927
8928 * xfns.c (x_default_scroll_bar_color_parameter): New.
8929 (Fx_create_frame): Call it.
8930
89311999-01-31 Gerd Moellmann <gerd@gnu.org>
8932
8933 * xfns.c (Fx_create_frame): Initialize scroll bar pixel color
8934 values in x_output structure.
8935 (Qscroll_bar_foreground, Qscroll_bar_background): New.
8936 (syms_of_xfns): Initialize these symbols.
8937
8938 * xterm.h (struct x_output): Add scroll bar pixel colors.
8939
8940 * xfns.c (x_frame_parms): Add entries for scroll bar colors.
8941 (x_set_scroll_bar_foreground): New.
8942 (x_set_scroll_bar_background): New.
8943
26901792
DL
89441999-01-12 Gerd Moellmann <gerd@gnu.org>
8945
8946 * xdisp.c (handle_single_display_prop): New.
8947 (handle_display_prop): Call it.
8948 (handle_raise_prop): Removed.
8949 (handle_height_prop): Removed.
8950 (handle_space_width_prop): Removed.
8951 (handle_face_prop): Remove handling of raised text.
8952 (handle_display_prop): Do it here.
8953
8954 * dispextern.h (DISPLAY_PROP_IDX): Replaces GLYPH_PROP_IDX.
8955 (RAISE_PROP_IDX): Removed.
8956 (HEIGHT_PROP_IDX): Removed.
8957 (SPACE_WIDTH_PROP_IDX): Removed.
8958
8959 * xdisp.c (Qdisplay): Replaces Qglyph.
8960 (handle_display_prop): Formerly handle_glyph_prop.
8961
89621999-01-11 Gerd Moellmann <gerd@gnu.org>
8963
8964 * xdisp.c (reseat_to_string): Set position in display vector to -1.
8965 (handle_stop): Set position in display vector to -1. Don't
8966 check overlay strings when set up to deliver characters from a
8967 display vector.
8968 (set_iterator_to_next): At the end of a run of characters from a
8969 display vector, check whether the display vector display replaces
8970 the display of a character.
8971
89721999-01-05 Gerd Moellmann <gerd@gnu.org>
8973
8974 * xfaces.c (init_frame_faces): Don't realize faces if frame's
8975 X window hasn't been created yet.
8976
89771998-12-06 Gerd Moellmann <gerd@gnu.org>
8978
8979 * sound.c: New.
8980
89811998-12-04 Gerd Moellmann <gerd@gnu.org>
8982
8983 * config.in (HAVE_SOUND): New.
8984
8985 * emacs.c (main): Call syms_of_sound and init_sound.
8986
8987 * Makefile.in (obj): Add sound.o.
8988
8989 * configure.in: Add checks for machine/soundcard.h and sys/soundcard.h.
8990
8991 * config.in (HAVE_MACHINE_SOUNDCARD_H): New.
8992 (HAVE_SYS_SOUNDCARD_H): New.
8993
89941998-12-03 Gerd Moellmann <gerd@gnu.org>
8995
8996 * buffer.h (struct buffer): indicate_empty_lines renamed from
8997 indicate_zv_lines.
8998
8999 * buffer.c (indicate-empty-lines): Renamed from indicate_zv_lines.
9000 (default-indicate-zv-lines): Likewise.
9001
9002 * dispextern.h (struct glyph_row): Rename indicate_zv_line_p
9003 to indicate_empty_line_p.
9004
9005 * xdisp.c (reseat_at_next_visible_line_start): Reset method
9006 to next_element_from_buffer.
9007
9008 * frame.c (make_frame): Set n_current_toolbar_items to 0.
9009
9010 * xdisp.c (handle_face_prop): Allow symbols of the form `N+'
9011 and `N-'.
9012
9013 * xfns.c (xbm_scan): New.
9014 (xbm_read_hexint): Removed.
9015 (xbm_read_bitmap_file_data): Use xbm_scan.
9016
9017 * fileio.c (Finsert_file_contents): Prevent redisplay optimizations.
9018
90191998-12-02 Gerd Moellmann <gerd@gnu.org>
9020
9021 * xfns.c (xbm_read_hexint): New.
9022 (xbm_read_bitmap_file_data): New.
9023 (xbm_load_image_from_file): Call xbm_read_bitmap_file_data
9024 instead of XReadBitmapFileData.
9025
9026 * xdisp.c (handle_raise_prop): Compute voffset from current font.
9027
9028 * xfaces.c (face_with_height): New.
9029
9030 * xdisp.c (eval_handler): Renamed from eval_mode_handler.
9031 (eval_form): Renamed from eval_mode_element.
9032 (handle_face_prop): Use it.
9033 (Qheight): Replaces Qsmaller.
9034 (handle_height_prop): Replaces handle_smaller_prop.
9035 (handle_face_prop): If iterator's font_height is not an
9036 integer, evaluate it to get the font height to use.
9037
9038 * dispextern.h (HEIGHT_PROP_IDX): Replaces SMALLER_PROP_IDX.
9039 (struct it): Use `font_height' instead of `smaller'.
9040
90411998-12-01 Gerd Moellmann <gerd@gnu.org>
9042
9043 * xdisp.c (reseat_1): New.
9044 (reseat): Call it.
9045 (move_it_vertically_backward): Ditto.
9046 (redisplay_window): Don't abort when cursor not found in recenter.
9047
90481998-11-30 Gerd Moellmann <gerd@gnu.org>
9049
9050 * xdisp.c (reseat_at_next_visible_line_start): When not
9051 currently delivering display elements from the current buffer,
9052 restore buffer position first.
9053 (init_from_display_pos): Don't set IT's position from the
9054 position passed to this function.
9055
90561998-11-28 Gerd Moellmann <gerd@gnu.org>
9057
9058 * config.in (PROTO): Removed.
9059
9060 * xterm.h: Change PROTO to P_.
9061
90621998-11-26 Gerd Moellmann <gerd@gnu.org>
9063
9064 * xterm.c (take_vertical_position_into_account): New.
9065 (x_produce_image_glyph): Call it.
9066 (x_produce_stretch_glyph): Ditto.
9067 (x_produce_glyphs): Ditto.
9068 (x_fill_glyph_string): Adjust base line for glyph's voffset.
9069 (x_fill_composite_glyph_string): Ditto.
9070 (x_fill_image_glyph_string): Ditto.
9071 (x_fill_stretch_glyph_string): Ditto.
9072
9073 * xdisp.c (display_line): Always compute row height from
9074 max_ascent and max_descent.
9075
9076 * dispextern.h (struct glyph): Add voffset.
9077 (struct it): Replace height by descent, max_height by max_descent.
9078
9079 * xterm.c (x_append_glyph): Set voffset
9080 (x_append_stretch_glyph): Ditto.
9081 (x_produce_image_glyph): Ditto.
9082 (x_produce_glyphs): Take voffset into account.
9083 (x_produce_image_glyph): Ditto.
9084 (x_produce_stretch_glyph): Ditto.
9085
9086 * dispextern.h (struct it): Add voffset.
9087 * xdisp.c (push_it): Save voffset.
9088 (pop_it): Restore it.
9089
9090 * xdisp.c (it_props): Add entry for `raise'.
9091 (handle_raise_prop): New.
9092
9093 * dispextern.h (RAISE_PROP_IDX): New.
9094
9095 * xdisp.c (Qraise): New.
9096 (syms_of_xdisp): Define Qraised.
9097
9098 * xterm.c (x_scroll_bar_move): Clear to the left and right
9099 of toolkit scroll bars differently.
9100 (x_scroll_bar_move): Removed.
9101 (XTset_vertical_scroll_bar): Move code from x_scroll_bar_move here.
9102
9103 * dispextern.h: Make it compilable --with-x=no.
9104 * alloc.c: Ditto.
9105 * emacs.c: Ditto.
9106 * dispnew.c: Ditto.
9107 * keyboard.c: Ditto.
9108 * term.c: Ditto.
9109 * xdisp.c: Ditto.
9110 * xfaces.c: Ditto.
9111 * xfns.c: Ditto.
9112 * xmenu.c: Ditto.
9113
91141998-11-25 Gerd Moellmann <gerd@gnu.org>
9115
9116 * xterm.c (XTread_socket): Cancel help-echo when leaving frame.
9117
91181998-11-24 Gerd Moellmann <gerd@gnu.org>
9119
9120 * xterm.c (x_set_toolkit_scroll_bar_thumb): When dragging,
9121 update slider size, only.
9122 (xm_scroll_callback): Set dragging member of the scroll bar.
9123 (xt_action_hook): Reset last_scroll_bar_part.
9124 (XTredeem_scroll_bar): Reset bar->dragging to nil.
9125
26901792
DL
9126 * xfns.c (Fx_hide_busy_cursor): Don't try to hide busy cursor
9127 window on newly created frames that don't have one.
9128
91291998-11-23 Gerd Moellmann <gerd@gnu.org>
9130
9131 * xdisp.c (restore_overlay_strings): Removed.
9132 (restore_dpvec): Removed.
9133 (init_from_display_pos): Inline both functions above.
9134
9135 * xfns.c (IMAGE_NON_NEGATIVE_INTEGER_VALUE): New.
9136 (parse_image_spec): Handle it.
9137 (xbm_format): Use it.
9138 (xpm_format): Ditto.
9139 (pbm_format): Ditto.
9140 (jpeg_format): Ditto.
9141 (tiff_format): Ditto.
9142 (gif_format): Ditto.
9143 (gs_format): Ditto.
9144
9145 * xdisp.c (set_window_cursor): Removed.
9146 (redisplay_internal): Case cursor motion in cursor line of
9147 selected window; use set_cursor_from_row.
9148
91491998-11-22 Gerd Moellmann <gerd@gnu.org>
9150
9151 * widget.c (EmacsFrameSetCharSize): Take widget's border width
9152 into account.
9153
91541998-11-21 Gerd Moellmann <gerd@gnu.org>
9155
9156 * xterm.c (expose_frame): Redraw menu bar window.
9157
9158 * xdisp.c (display_menu_bar): Record hpos instead of x-position
9159 in menu item.
9160
9161 * dispnew.c (change_frame_size_1): Use FRAME_TOP_MARGIN instead
9162 of FRAME_TOOLBAR_LINES. Use `f' instead of `frame'.
9163
9164 * widget.c (set_frame_size): Use FRAME_SCROLL_BAR_COLS
9165 to determine vertical_scroll_bar_extra.
9166 (EmacsFrameSetCharSize): Ditto.
9167 * xfns.c (x_figure_window_size): Ditto.
9168
9169 * xterm.c (x_draw_row_bitmaps): Draw in `bitmap-area' face.
9170 (x_draw_bitmap): Ditto.
9171
9172 * dispextern.h (face_id): New id BITMAP_AREA_FACE_ID.
9173 * xfaces.c (realize_basic_faces): Realize it.
9174
91751998-11-20 Gerd Moellmann <gerd@gnu.org>
9176
9177 * xmenu.c (xmenu_show): Add workaround for remaining button grab
9178 under LessTif Use the widget of the frame as parent for the
9179 menu, again.
9180
91811998-11-19 Gerd Moellmann <gerd@gnu.org>
9182
9183 * xterm.c (XTread_socket): Inhibit busy cursor for EnterNotify.
9184 When EnterNotify, don't generate a mouse movement event if
9185 notification is from a busy-cursor child window.
9186
9187 * xterm.h (struct x_output): Add busy_window, remove cursor.
9188
9189 * xfns.c (Fx_show_busy_cursor): Formerly Fx_display_busy_cursor.
9190 Use a transparent window to display the busy-cursor.
9191 (Fx_hide_busy_cursor): Formerly Fx_undisplay_busy_cursor.
9192
91931998-11-17 Gerd Moellmann <gerd@gnu.org>
9194
9195 * xdisp.c (check_window_end): New, for debugging.
9196 (CHECK_WINDOW_END): New.
9197 (try_window_id): Use it.
9198
9199 * xterm.c (process_expose_from_menu): Return int.
9200
9201 * keyboard.c (kbd_buffer_get_event): Set flag to prevent recording
9202 TOOLBAR_EVENT events in last_nonmenu_event.
9203
92041998-11-16 Gerd Moellmann <gerd@gnu.org>
9205
9206 * xdisp.c (redisplay_window): If windows_or_buffers_changed,
9207 window end isn't reliable, so set window_end_valid to nil.
9208 (redisplay_internal): If overlay arrow has changed, set
9209 windows_or_buffers_changed to redisplay thoroughly.
9210
9211 * dispnew.c (adjust_glyph_matrix): Invalidate window end, if
9212 necessary.
9213
9214 * xfns.c (file_dialog_cb): New.
9215 (Fx_file_dialog): New.
9216 * fileio.c (Fread_file_name): Call it.
9217
9218 * xrdb.c (x_load_resources): Add default resoures for file
9219 selection dialog.
9220
92211998-11-14 Gerd Moellmann <gerd@gnu.org>
9222
9223 * xterm.c (note_mouse_highlight): Don't highlight when popup
9224 is active.
9225
26901792
DL
9226 * keyboard.c (timer_check): Inhibit busy cursor around calls to
9227 timer-event-handler. This busy cursor tends to be anoying if
9228 fontifying stealthily.
9229
9230 * dispnew.c (direct_output_for_insert): Give up if current row
9231 contains trailing whitespace.
9232
92331998-11-13 Gerd Moellmann <gerd@gnu.org>
9234
9235 * dispextern.h (prop_idx): Add FONTIFIED_PROP_IDX.
9236
9237 * xdisp.c (handle_fontified_prop): New.
9238 (Vfontification_functions): New.
9239 (Qfontification_functions): New.
9240 (it_props): Add handle_fontified_prop.
9241
92421998-11-12 Gerd Moellmann <gerd@gnu.org>
9243
9244 * xmenu.c (xmenu_show): Use the frame's edit_widget as parent.
9245 Otherwise, under LessTif, after the popup has gone, all button
9246 press events come in for the frame's widget, and release events
9247 come in for the edit_widget.
9248 * xterm.c (XTread_socket): Remove workaround for that problem.
9249 (x_set_toolkit_scroll_bar_thumb): Add workaround for LessTif
9250 XmScrollBarSetValues.
9251 (SET_SAVED_MENU_EVENT): Give it statement form.
9252
26901792
DL
9253 * xfaces.c (display_message): If waiting_for_input, don't display
9254 the message.
9255
9256 * window.c (scroll_command): If not acting on current_buffer,
9257 make redisplay consider all windows.
9258
9259 * xfns.c (Fx_hide_tip): Return t if tooltip was open.
9260
9261 * xdisp.c (handle_glyph_prop): Set it->object for images to
9262 the object having the glyph property.
9263
9264 * xterm.c (x_draw_row_bitmaps): Don't draw if row is completely
9265 invisible.
9266
92671998-11-11 Gerd Moellmann <gerd@gnu.org>
9268
9269 * xterm.h (struct x_display_info): Add gray pixmap. * xterm.c
9270 (x_term_init): Create the gray pixmap.
9271 (x_setup_relief_color): Use it.
9272 (x_get_glyph_string_clip_rect): Draw a toolbar window over the
9273 internal border at the top of a frame.
9274 (x_init_glyph_string): Likewise.
9275 (x_draw_glyph_string_relief): Correct right x by 1 pixel for
9276 full-width lines.
9277 (XTflash): Don't flash the toolbar window.
9278
9279 * xterm.c (XTread_socket): Workaround for LessTif popup menus
9280 in case of ButtonPress events.
9281
92821998-11-10 Gerd Moellmann <gerd@gnu.org>
9283
9284 * xrdb.c (x_load_resources): Add grey background colors as
9285 defaults for menus, scroll bars, and dialogs.
9286
9287 * insdel.c (prepare_to_modify_buffer): Move setting
9288 windows_or_buffers_changed from modify_region here.
9289
9290 * xfns.c (Fx_show_tip): Inhibit redisplay.
9291 (Fx_hide_tip): Ditto.
9292 (Fx_image_header): New.
9293
92941998-11-09 Gerd Moellmann <gerd@gnu.org>
9295
9296 * dispnew.c (clear_window_matrices): Set window_end_valid to nil
9297 when clearing current window matrices.
9298
92991998-11-08 Gerd Moellmann <gerd@gnu.org>
9300
9301 * xdisp.c (handle_glyph_prop): Don't set an iterator's buffer
9302 position from a string position. Use the right end position
9303 if the property spans a whole overlay string.
9304
93051998-11-07 Gerd Moellmann <gerd@gnu.org>
9306
9307 * xmenu.c (menubar_selection_callback): Remove workaround for
9308 Lesstif not calling XmNpopdownCallback because it doesn't
9309 handle the case where users don't select any menu item.
9310
26901792
DL
9311 * insdel.c (modify_region): Set windows_or_buffers_changed.
9312
9313 * buffer.c (set_buffer_internal): Don't set
9314 windows_or_buffers_changed.
9315
26901792
DL
9316 * xmenu.c (HAVE_BOXES): Define if USE_X_TOOLKIT.
9317
26901792
DL
9318 * xmenu.c (menubar_selection_callback): Add workaround for
9319 Lesstif not calling XmNpopdownCallback.
9320
9321 * xdisp.c (eval_mode_element): New.
9322 (eval_mode_handler): New.
9323 (display_mode_element): Use eval_mode_element.
9324
9325 * xdisp.c (display_mode_element): Allow `(:eval FORM)'.
9326 Remove code looking at text props of default value.
9327
9328 * xmenu.c (HAVE_BOXES): Define if using Lucid menus.
9329
26901792
DL
93301998-11-06 Gerd Moellmann <gerd@gnu.org>
9331
9332 * xmenu.c (single_submenu): Set button_type of menu to
9333 BUTTON_TYPE_NONE.
9334 (single_submenu): Likewise for panes and menu items.
9335 (set_frame_menubar): Set button_type of menu bar to none.
9336 (xmenu_show): Likewise.
9337 (single_submenu): Set widget values selected slot.
9338 (xmenu_show): Likewise.
9339
26901792
DL
9340 * xmenu.c (push_menu_item): Add parameters `type' and
9341 `selected'. Store it in menu_items.
9342 (MENU_ITEMS_ITEM_TYPE): New.
9343 (MENU_ITEMS_ITEM_SELECTED): New.
9344 (MENU_ITEMS_ITEM_LENGTH): Increase by two.
9345
9346 * xfns.c (clear_image_cache): Get the current time, before
9347 doing anything.
9348 (cache_image): Set prev pointer of next image.
9349 (clear_image_cache): Clear current matrices if any image was
9350 freed.
9351
9352 * xterm.c (XTread_socket): Set inhibit_busy_cursor.
9353
9354 * xfns.c (x_set_cursor): New.
9355 (Fx_display_busy_cursor): New.
9356 (Fx_undisplay_busy_cursor): New.
9357
9358 * xterm.h (struct x_output): Add busy_cursor.
9359
9360 * xfns.c (Vx_busy_pointer_shape): New.
9361 (x_set_mouse_color): Create busy cursor.
9362
9363 * process.c (wait_reading_process_input): Show and hide busy
9364 cursor.
9365
9366 * keyboard.c (command_loop_1): Display busy cursor.
9367
9368 * eval.c (Fsignal): Hide busy cursor.
9369
9370 * buffer.c (set_buffer_internal): Don't set
9371 windows_or_buffers_changed.
9372
9373 * xterm.c (redo_mouse_highlight): New.
9374
93751998-11-04 Gerd Moellmann <gerd@gnu.org>
9376
26901792
DL
9377 * xfns.c (x_create_x_image_and_pixmap): Add depth parameter.
9378 (x_build_heuritic_mask): New.
9379 (lookup_image): Call it.
9380
9381 * xterm.c (note_toolbar_highlight): Always set up help_echo.
9382 (previous_help_echo): New.
9383 (XTread_socket): Generate help event with nil message when
9384 leaving a region with help-echo.
9385 (note_mouse_highlight): Handle `help-echo' over text.
9386 (XTread_socket): Dispatch VisibilityNotify, CirculateNotify,
9387 CirculateRequest.
9388 (clear_mouse_face): Don't clear if tooltip is shown.
9389 (XTread_socket): Redo mouse-highlight after tooltip is gone.
9390 Avoid SET_FRAME_GARBAGED when tooltip is mapped.
9391
9392 * keyboard.c (Vshow_help_function): New.
9393 (read_char): Use it.
9394
93951998-11-03 Gerd Moellmann <gerd@gnu.org>
9396
9397 * xfns.c (x_create_tip_frame): New.
9398 (Fx_show_tip): New.
9399 (Fx_hide_tip): New.
9400
9401 * xterm.c (x_destroy_window): Handle case that we don't have
9402 a widget.
9403
9404 * dispextern.h (struct glyph_row): Rename no_marginal_areas_p
9405 to full_width_p. Add internal_border_p.
9406
94071998-11-02 Gerd Moellmann <gerd@gnu.org>
9408
9409 * xterm.c (note_mode_line_highlight): Check the charpos of
9410 the glyph under the mouse pointer before accessing text
9411 properties at that position.
9412
94131998-11-01 Gerd Moellmann <gerd@gnu.org>
9414
9415 * xterm.c (x_draw_image_relief): Handle toolbar_button_relief.
9416
9417 * xdisp.c (auto-raise-toolbar-buttons): New.
9418 (build_desired_toolbar_string): Handle the flag.
9419 (toolbar-button-margin): New.
9420 (toolbar-button-relief): New.
9421 (build_desired_toolbar_string): Use margin and relief.
9422
9423 * xterm.c (x_set_toolkit_scroll_bar_thumb): Remove workaround
9424 for FreeBSD.
9425 (note_mode_line_highlight): New.
9426 (note_mouse_highlight): Call it.
9427
94281998-10-31 Gerd Moellmann <gerd@gnu.org>
9429
9430 * s/freebsd.h (NARROWPROTO): New.
9431
9432 * xdisp.c (display_string): New parameter face_string.
9433 (display_mode_element): When displaying a symbol with a string
9434 value, use text properties from the symbol's default value, maybe.
9435
9436 * xrdb.c (x_load_resources): Add font defaults for menus and
9437 dialogs.
9438
94391998-10-30 Gerd Moellmann <gerd@gnu.org>
9440
9441 * xfns.c (Fx_create_frame): Try 12pt Courier font first.
9442
94431998-10-29 Gerd Moellmann <gerd@gnu.org>
9444
9445 * xterm.c (x_produce_glyphs): Fix bug causing glyphs to be
9446 produced for characters with codes < 32 under certain
9447 circumstances.
9448
9449 * xdisp.c (redisplay_window): Handle values of PT in front
9450 of invisible, intangible text.
9451 (try_window_id): Set overlay_arrow_seen to zero before
9452 displaying lines.
9453 (display_mode_element): Assign to glyphs written for a mode
9454 line spec `%x' as object the Lisp format string, as position
9455 the position of the `%' in that string.
9456 (display_string): If displaying a C string, optionally get
9457 the face to use from a Lisp string.
9458
9459 * xterm.c (expose_window_tree): Include mode line height.
9460
9461 * xfns.c (Fx_create_frame): Add toolbar height to frame height.
9462
94631998-10-27 Gerd Moellmann <gerd@gnu.org>
9464
9465 * xterm.c (note_mouse_highlight): Change mouse pointer shape
9466 over mode line.
9467
94681998-10-26 Gerd Moellmann <gerd@gnu.org>
9469
9470 * window.c (coordinates_in_window): Use CURRENT_MODE_LINE_HEIGHT.
9471
9472 * xdisp.c (redisplay_window): If mode line height has changed,
9473 arrange for a thorough immediate redisplay using the correct mode
9474 line height.
9475 (window_box_height): Use CURRENT_MODE_LINE_HEIGHT.
9476
9477 * dispextern.h (MATRIX_MODE_LINE_HEIGHT): New.
9478 (CURRENT_MODE_LINE_HEIGHT): New.
9479 (DESIRED_MODE_LINE_HEIGHT): New.
9480
9481 * keyboard.c (make_lispy_event): Add string and string position
9482 info to mouse-click events.
9483 (read_key_sequence): Handle `local-map' property of mode line
9484 strings.
9485
9486 * keyboard.h (POSN_STRING): New.
9487
94881998-10-25 Gerd Moellmann <gerd@gnu.org>
9489
9490 * dispnew.c (mode_line_string): Mew.
9491
9492 * xterm.c (xt_action_hook): New.
9493 (x_create_toolkit_scroll_bar): Add action hook.
9494 (xm_scroll_callback): Implement dragging.
9495
9496 * keyboard.c (Qend_scroll): New.
9497 (scroll_bar_parts): Add it.
9498
9499 * termhooks.h (scroll_bar_end_scroll): New.
9500
9501 * xterm.c (XTread_socket): Bug fix.
9502
95031998-10-24 Gerd Moellmann <gerd@gnu.org>
9504
9505 * xdisp.c (redisplay_window): Finish scroll bars after
9506 redisplaying toolbar.
9507
9508 * keyboard.c (scroll_bar_parts): Add Qtop and Qbottom.
9509 (syms_of_keyboard): Add Qbottom.
9510
9511 * termhooks.h (scroll_bar_to_top): New.
9512 (scroll_bar_to_bottom): New.
9513
9514 * xdisp.c (redisplay_window): Always resize toolbar window if
9515 auto_resize_toolbar_p is non-zero.
9516 (auto_resize_toolbar_p): Renamed from auto_resize_toolbar.
9517 (window_box): New.
9518 (window_box_height): New.
9519 (window_box_width): New.
9520 (window_box_left): New.
9521 (window_box_right): New.
9522 (window_box_edges): New.
9523
95241998-10-23 Gerd Moellmann <gerd@gnu.org>
9525
9526 * xterm.c (x_set_toolkit_scroll_bar_thumb): Kluge for call to
9527 XawScrollbarSetThumb in FreeBSD.
9528 (x_create_toolkit_scroll_bar): Set resource "beNiceToColormap"
9529 to true.
9530
9531 * window.c (get_phys_cursor_glyph): Return null if cursor vpos
9532 is out of range.
9533
9534 * xterm.c (x_create_toolkit_scroll_bar): Set scroll_bar_pixel.
9535 (x_term_init): Initialize it.
9536
9537 * xterm.h (struct x_display_info): Add scroll_bar_pixel.
9538
9539 * xterm.c (x_create_toolkit_scroll_bar): Set LessTif scroll bar's
9540 cursor.
9541
95421998-10-22 Gerd Moellmann <gerd@gnu.org>
9543
9544 * keyboard.c (make_lispy_event): Handle scroll_bar_click
9545 differently when using toolkit scroll bars.
9546
9547 * xterm.c (x_send_scroll_bar_event): New.
9548 (x_scroll_bar_to_input_event): New.
9549 (xaw3d_scroll_callback): New.
9550 (xaw3d_jump_callback): New.
9551 (xm_scroll_callback): New.
9552 (x_toolkit_scroll_p): New.
9553 (XTread_socket): Handle scroll bar client message.
9554 (x_term_init): Initialize Xatom_Scrollbar.
9555 (x_scroll_bar_create): Set cursor.
9556 (xm_scroll_callback):
9557 (x_create_toolkit_scroll_bar): New.
9558 (x_set_toolkit_scroll_bar_thumb): New.
9559 (x_scroll_bar_create): Call x_create_toolkit_scroll_bar.
9560 (XTset_vertical_scroll_bar): Call x_set_toolkit_scroll_bar_thumb.
9561
9562 * xterm.h (struct x_display_info): Add Xatom_Scrollbar.
9563
95641998-10-21 Gerd Moellmann <gerd@gnu.org>
9565
9566 * xterm.c (x_scroll_bar_remove): Handle toolkit scroll bars.
9567 (XTread_socket): Don't handle mouse button events for scroll bars
9568 if using toolkit scroll bars.
9569 (XTset_vertical_scroll_bar): Set thumb size and position for
9570 Athena scroll bar.
9571
9572 * xterm.h (scroll_bar): Add x_widget_low and x_widget_high.
9573
9574 * xterm.c (XTread_socket): Dispatch expose event to widget
9575 if using toolkit scroll bars.
9576 (x_scroll_bar_expose): Make no-op for toolkit scroll bars.
9577 (x_scroll_bar_create): Create and show a scroll bar widget
9578 if using toolkit scroll bars.
9579 (x_scroll_bar_move): Handle tookit scroll bars.
9580
9581 * Makefile.in (LIBW): Use Xaw3d if present.
9582
9583 * configure.in (USE_TOOLKIT_SCROLL_BARS): New.
9584 (HAVE_XAW3D): New.
9585
9586 * config.in (USE_TOOLKIT_SCROLL_BARS): New.
9587 (HAVE_XAW3D): New.
9588
9589 * xterm.c (XTset_vertical_scroll_bar): Correct position of
9590 right vertical scroll bar.
9591
95921998-10-20 Gerd Moellmann <gerd@gnu.org>
9593
9594 * xfns.c (xpm_load): Support reading XPM images from string
9595 buffers containing data in the same format as an XPM file.
9596 Support `:color-symbols'.
9597 (xpm_format): Add `:data'.
9598 (xpm_keyword_index): Add XPM_DATA.
9599 (syms_of_xfns): Add `:color-symbols'.
9600 (xpm_keyword_index): Add XPM_COLOR_SYMBOLS.
9601 (xpm_valid_color_symbols_p): New.
9602 (xpm_image_p): Call it.
9603
9604 * xdisp.c (build_desired_toolbar_string): Add `:algorithm'
9605 attribute to the image if item is not enabled.
9606
9607 * xfns.c (x_laplace): New.
9608 (x_laplace_read_row): New.
9609 (x_laplace_write_row): New.
9610 (lookup_image): Handle common image attributes here. New
9611 attribute `:algorithm'.
9612
9613 * xfaces.c (clear_face_cache): Call clear_image_cache.
9614
9615 * xterm.c (x_inverted_image_mask): Removed.
9616 (x_draw_image_foreground_1): New.
9617 (x_draw_image_glyph_string): Draw images with mask to a temporary
9618 pixmap to reduce flickering.
9619
9620 * xdisp.c (redisplay_toolbar): Handle auto-resize-toolbars.
9621 (display_toolbar_line): Remove parameter `margin'.
9622
96231998-10-19 Gerd Moellmann <gerd@gnu.org>
9624
9625 * xdisp.c (toolbar_lines_needed): New.
9626 (auto-resize-toolbars): New.
9627
9628 * xfns.c (cache_image): Correct call to xrealloc.
9629
9630 * dispnew.c (Fset_toolbar_height): Removed.
9631
9632 * xdisp.c (init_xdisp): Use FRAME_TOP_MARGIN instead of
9633 FRAME_MENU_BAR_LINES.
9634
9635 * window.c (Fdelete_other_windows): Use FRAME_TOP_MARGIN
9636 instead of FRAME_MENU_BAR_LINES.
9637 (check_frame_size): Ditto.
9638
9639 * dispnew.c (adjust_frame_glyphs_initially): Use FRAME_TOP_MARGIN
9640 instead of FRAME_MENU_BAR_LINES.
9641 (adjust_frame_glyphs_for_frame_redisplay): Ditto.
9642 (build_frame_matrix): Ditto.
9643 (change_frame_size_1): Ditto.
9644
9645 * frame.h (FRAME_TOOLBAR_LINES): New.
9646 (FRAME_TOP_MARGIN): New.
9647
9648 * window.c (struct save_window_data): Add frame_toolbar_lines.
9649 (Fset_window_configuration): Handle toolbar lines.
9650 (Fcurrent_window_configuration): Save toolbar lines.
9651
9652 * frame.c (syms_of_frame_1): Add Qtoolbar_lines.
9653
9654 * xfns.c (Fx_create_frame): Add default parameter for toolbar.
9655
9656 * frame.h (struct frame): Rename top_margin to toolbar_lines.
9657
9658 * xfns.c (x_frame_parms): Add `toolbar-lines'.
9659 (x_set_toolbar_lines): New.
9660
9661 * keyboard.c (cmd_error_internal): Bug fix.
9662
9663 * xterm.c: Remove double include of syssignal.h.
9664
96651998-10-18 Gerd Moellmann <gerd@gnu.org>
9666
9667 * xterm.c (x_toolbar_item): New.
9668 (x_handle_toolbar_click): Use it.
9669 (note_toolbar_highlight): Use it.
9670
9671 * keyboard.c (syms_of_keyboard): Staticpro toolbar_item_properties
9672 and toolbar_items_vectors.
9673
9674 * xterm.c (help_echo): New.
9675 (draw_glyphs_face): Add DRAW_IMAGE_RAISED and DRAW_IMAGE_SUNKEN.
9676 (x_set_glyph_string_gc): Handle them.
9677 (x_after_update_window_line): Don't do anything in pseudo-windows.
9678 (x_produce_image_glyph): Take image margin and face relief into
9679 account.
9680 (x_get_glyph_string_clip_rect): Handle pseudo-windows.
9681 (x_draw_glyph_string_background): Optimize case when face has
9682 relief.
9683 (x_setup_relief_color): Take frame instead of glyph string
9684 parameter.
9685 (x_draw_relief_rect): New.
9686 (x_draw_glyph_string_relief): Call it.
9687 (x_draw_image_glyph_string_foreground): Handle margin and image
9688 relief.
9689 (x_draw_image_glyph_string_background): Ditto.
9690 (expose_frame): Redraw toolbar window.
9691 (expose_window): Don't draw cursor for pseudo-windows.
9692 (x_y_to_hpos_vpos): Handle pseudo-windows.
9693 (frame_to_window_pixel_xy): New.
9694 (note_mouse_highlight): Call note_toolbar_highlight.
9695 (x_handle_toolbar_click): New.
9696 (note_toolbar_highlight): New.
9697 (show_mouse_face): Change int parameter `hl' to parameter of
9698 type enum draw_glyphs_face. Handle image highlighting.
9699 (XTread_socket): Return a HELP_EVENT input event if help_echo is
9700 non-nil. Use x_handle_toolbar_click.
9701
9702 * termhooks.h (event_kind): Add HELP_EVENT, TOOLBAR_EVENT.
9703
9704 * xfns.c (image_value_type): Add IMAGE_INTEGER_VALUE,
9705 IMAGE_BOOL_VALUE.
9706 (parse_image_spec): Handle them.
9707 (image_spec_value): Additional parameter found.
9708 (free_image): Remove image from the vector `images' of the
9709 image cache.
9710 (clear_image_cache): Additional parameter force_p.
9711 (Fclear_image_cache): New.
9712 (x_find_image_file): New.
9713 (xbm_load): Handle `:margin' and `:relief'. Use
9714 x_find_image_file.
9715 (xpm_load): Likewise.
9716 (pbm_load): Likewise.
9717 (jpeg_load): Likewise.
9718 (tiff_load): Likewise.
9719 (gif_load): Likewise.
9720
9721 * keyboard.c (Qhelp_echo): New symbol.
9722 (read_char): Handle `toolbar' and `help_echo' events.
9723 (kbd_buffer_get_event): Handle HELP_ECHO input event.
9724 (make_lispy_event): Handle TOOLBAR_EVENT.
9725 (toolbar_items): New.
9726 (process_toolbar_item): New.
9727 (PROP): New.
9728 (init_toolbar_items): New.
9729 (append_toolbar_item): New.
9730 (read_char_x_menu_prompt): Handle `toolbar' event.
9731 (read_key_sequence): Ditto.
9732
9733 * xfaces.c (Qtoolbar): New.
9734 (realize_basic_faces): Realize `toolbar' face.
9735 (face_at_string_position): Remove parameter modeline_p, add
9736 base_face_id.
9737
9738 * xfns.c (xbm_load_image_from_file): Don't use Xmu function
9739 to read data.
9740
97411998-10-17 Gerd Moellmann <gerd@gnu.org>
9742
9743 * xdisp.c (init_iterator): Replace parameter modeline_p with
9744 base_face_id.
9745 (next_element_from_string): Call get_next_display_element
9746 recursively after handling text properties.
9747 (prepare_menu_bars): Call update_toolbar.
9748 (update_toolbar): New.
9749 (build_desired_toolbar_string): New.
9750 (display_toolbar_line): New.
9751 (redisplay_toolbar): New.
9752 (toolbar_item_info): New.
9753 (redisplay_window): Call redisplay_toolbar.
9754 (Fdump_toolbar_row): New. Defined if compiled with GLYPH_DEBUG.
9755
9756 * dispnew.c (clear_current_matrices): Clear matrices of toolbar
9757 window.
9758 (clear_desired_matrices): Ditto.
9759 (adjust_frame_glyphs_for_window_redisplay): Make toolbar window.
9760 (free_glyphs): Free matrices of toolbar window.
9761 (update_frame): Update toolbar window.
9762 (change_frame_size_1): Take toolbar into account.
9763 (Fset_toolbar_height): New.
9764
9765 * dispextern.h (struct it): Remove member modeline_p, add
9766 base_face_id.
9767 (struct image): Add members relief and margin.
9768 (IMAGE_ASCENT): Include margin in height.
9769
97701998-10-14 Gerd Moellmann <gerd@gnu.org>
9771
9772 * xfns.c (Fclear_image_cache): New.
9773
9774 * xfaces.c (realize_basic_faces): Realize toolbar face.
9775 (face_at_string_position): Remove parameter modeline_p, add
9776 base_face_id.
9777
9778 * dispextern.h (enum face_id): Add TOOLBAR_FACE_ID.
9779
97801998-10-13 Gerd Moellmann <gerd@gnu.org>
9781
9782 * keyboard.c (syms_of_keyboard): Intern `:help'.
9783
97841998-10-12 Gerd Moellmann <gerd@gnu.org>
9785
9786 * xterm.c (note_toolbar_highlight): New.
9787 (note_mouse_highlight): Call it.
9788
9789 * window.c (window_from_coordinates): Additional parameter toolbar_p.
9790 (coordinates_in_window): Handle toolbar window.
9791
9792 * keyboard.c (toolbar_items): New.
9793 (process_toolbar_item): New.
9794 (parse_toolbar_item): New.
9795 (init_toolbar_items): New.
9796 (append_toolbar_item): New.
9797
9798 * dispextern.h (enum toolbar_item_idx): New.
9799 (enum toolbar_item_image): New.
9800
9801 * frame.h (struct frame): Add toolbar-related members.
9802
9803 * xfaces.c (face_at_string_position): Remove assertion that
9804 current_buffer == window's buffer. This is not the case when
9805 called for the toolbar window.
9806
9807 * frame.c (make_frame): Initialize toolbar members.
9808
9809 * alloc.c (mark_object): Mark toolbar data of frames.
9810
9811 * frame.h (struct frame): Add toolbar-related members
9812 toolbar_window, desired_toolbar_items, current_toolbar_items,
9813 desired_toolbar_string, current_toolbar_string,
9814 n_desired_toolbar_items, n_current_toolbar_items. Add
9815 window_height.
9816
9817 * xterm.c (x_after_update_window_line): Don't draw bitmap
9818 areas for pseudo-windows.
9819 (expose_frame): Handle toolbar window.
9820 (expose_window): Don't do cursor stuff for pseudo-windows.
9821
9822 * xdisp.c (display_menu_bar): Correct calls to init_iterator.
9823
98241998-10-11 Gerd Moellmann <gerd@gnu.org>
9825
9826 * frame.c (make_frame): Initialize toolbar_window.
9827
9828 * alloc.c (mark_object): Make the toolbar window.
9829
9830 * dispnew.c (update_frame): Update frame's toolbar_window.
9831 (clear_current_matrices): Likewise.
9832 (clear_desired_matrices): Likewise.
9833 (adjust_frame_glyphs_for_window_redisplay): Make toolbar_window.
9834 (free_glyphs): Free the toolbar window and its matrices.
9835
9836 * frame.h (struct frame): Add toolbar_window.
9837
9838 * xterm.c (x_draw_glyph_string_relief): Handle mouse-face
9839 with relief.
9840
98411998-10-10 Gerd Moellmann <gerd@gnu.org>
9842
9843 * dispnew.c (buffer_posn_from_coords): Don't screw up if
9844 window start is not in the range BEGV..ZV.
9845
98461998-10-09 Gerd Moellmann <gerd@gnu.org>
9847
9848 * xdisp.c (try_scrolling): Experimentally handle the case
9849 that scroll-preserve-screen-position is set to `always'.
9850
9851 * window.c (Vscroll_preserve_screen_position): Replacement for
9852 scroll_preserve_screen_position.
9853
98541998-10-08 Gerd Moellmann <gerd@gnu.org>
9855
9856 * dispnew.c: Don't initialize auto structs; the HP/UX compiler
9857 doesn't like it.
9858 * xdisp.c: Ditto.
9859
9860 * xdisp.c (make_cursor_line_fully_visible): Adjust this_line_y.
9861
98621998-10-06 Gerd Moellmann <gerd@gnu.org>
9863
9864 * minibuf.c (Fminibuffer_complete_word): Fix computation of
9865 i_byte when prompts are inserted into minibuffers.
9866
9867 * dispextern.h (FRAME_INTERNAL_BORDER_WIDTH_SAFE): New.
9868 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X): Use it.
9869 (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y): Ditto.
9870
98711998-10-04 Gerd Moellmann <gerd@gnu.org>
9872
9873 * xdisp.c (make_cursor_line_fully_visible): New.
9874 (try_scrolling): New.
9875 (redisplay_window): Move scrolling code to try_scrolling.
9876 (make_cursor_line_fully_visible): Handle case of window too small
9877 to show a single line.
9878 (redisplay_window): Case forced window start---use
9879 make_cursor_line_fully_visible.
9880 (redisplay_window): Case cursor movement via current matrix.
9881 If ending up on a partially visible line, make it fully visible
9882 instead of recentering.
9883 (try_scrolling): Additional parameter scroll_smoothly.
9884
9885 * xterm.c (x_draw_bitmap): Don't XClearArea under the pixmap.
9886
98871998-09-28 Gerd Moellmann <gerd@gnu.org>
9888
9889 * window.c (window_scroll_pixel_based): Bug fix: vpos used
9890 instead of y-position for scroll-preserved-screen-position.
9891
98921998-09-07 Gerd Moellmann <gerd@gnu.org>
9893
9894 * dispnew.c (update_frame_line): If current row is not enabled,
9895 write the whole line.
9896
98971998-09-06 Gerd Moellmann <gerd@gnu.org>
9898
9899 * lisp.h (HAVE_FACES): Removed.
9900
9901 * dispextern.h (HAVE_FACES): Removed.
9902
9903 * config.in (HAVE_FACES): Removed.
9904
9905 * dispnew.c (HAVE_FACES): Removed.
9906
9907 * xdisp.c (HAVE_FACES): Removed.
9908
9909 * xfaces.c (HAVE_FACES): Removed.
9910
99111998-09-05 Gerd Moellmann <gerd@gnu.org>
9912
9913 * xdisp.c (init_iterator): If face_change_count is non-zero,
9914 free realized faces.
9915
9916 * xfaces.c (free_all_realized_faces): Make it externally visible.
9917 (Finternal_set_lisp_face_attribute): Increment
9918 windows_or_buffers_changed.
9919
9920 * dispnew.c (direct_output_for_insert): Give up if
9921 face_change_count is non-zero.
9922 (direct_output_forward_char): Ditto.
9923
9924 * xfaces.c (face_change_count): New.
9925
99261998-09-04 Gerd Moellmann <gerd@gnu.org>
9927
9928 * xterm.c (x_draw_bar_cursor): Don't draw if cursor hpos is out
9929 of range.
9930
99311998-09-03 Gerd Moellmann <gerd@gnu.org>
9932
9933 * term.c (Ftty_display_color_p): New.
9934
99351998-09-02 Gerd Moellmann <gerd@gnu.org>
9936
9937 * xfaces.c (Ftty_defined_colors): New.
9938
9939 * xterm.c (x_produce_glyphs): Fix computation of
9940 contains_overlapping_glyphs_p for ASCII.
9941
9942 * dispnew.c (Fshow_cursor): Don't change cursor state while
9943 redisplaying.
9944 (direct_output_for_insert): If a glyph with lbearing or rbearing
9945 is among the new glyphs, set row flag contains_overlapping_glyph_p.
9946
99471998-09-01 Gerd Moellmann <gerd@gnu.org>
9948
9949 * term.c (OUTPUT_IF): Make replacement text have statement form.
9950 (OUTPUT1_IF): Ditto.
9951 (TS_italic_mode, TS_end_italic_mode): Removed.
9952 (TS_bold_mode): Removed.
9953 (TS_underscore_mode, TS_end_underscore_mode): Removed.
9954 (TS_enter_bold_mode, TS_enter_dim_mode, TS_enter_blink_mode): New.
9955 (TS_enter_reverse_mode): New.
9956 (TS_enter_underline_mode, TS_exit_underline_mode): New.
9957 (TN_magic_cookie_glitch_ul): New.
9958 (TS_enter_alt_charset_mode, TS_exit_alt_charset_mode): New.
9959 (TS_exit_attribute_mode): New.
9960 (TN_max_colors, TN_max_pairs, TS_orig_pairs): New.
9961 (TS_set_foreground, TS_set_background): New.
9962 (reset_terminal_modes): Switch colors back to default.
9963 (write_glyphs): Turn face on before writing text, turn it off
9964 afterwards.
9965 (insert_glyphs): Ditto.
9966 (term_init): Initialize new terminal capability variables.
9967 (turn_on_face): Turn a face on.
9968 (turn_off_face): Turn a face off.
9969
9970 * lisp.h (MAKE_GLYPH): Remove test for frame type.
9971 (GLYPH_CHAR): Ditto.
9972 (GLYPH_FACE): Ditto.
9973
9974 * xfaces.c (Vface_tty_color_alist): New.
9975 (face-register-tty-color): New.
9976 (face-clear-tty-colors): New.
9977
9978 * dispextern.h (FACE_TTY_DEFAULT_COLOR): New.
9979 (struct it): Remove member faces_p since we now always have faces.
9980
99811998-08-31 Gerd Moellmann <gerd@gnu.org>
9982
9983 * dispextern.h (struct face): Add tty appearance flags.
9984
9985 * xdisp.c (init_iterator): Always handle faces.
9986 (extend_face_to_end_of_line): Handle tty frames.
9987
9988 * dispnew.c (clear_glyph_matrix): Allow a null matrix to be
9989 passed in.
9990
99911998-08-30 Gerd Moellmann <gerd@gnu.org>
9992
9993 * xfaces.c (realize_default_face): Use empty strings to indicate
9994 that the face should use the default foreground/background
9995 color of the terminal. Fill font-related attributes with
9996 appropriate values for tty frames.
9997
9998 * emacs.c (main): Call syms_of_xfaces before init_window_once.
9999
10000 * xfaces.c (realize_default_face): If face `default' is not
10001 yet known, create it.
10002
10003 * frame.c (make_terminal_frame): Call init_frame_faces
10004 unconditionally.
10005
10006 * xfaces.c (init_frame_faces): Make it work for tty frames.
10007 (free_frame_faces): Ditto.
10008 (clear_face_cache): Ditto.
10009 (recompute_basic_faces): Ditto.
10010 (Fframe_face_alist): Ditto.
10011 (free_realized_face): Ditto.
10012 (prepare_face_for_display): Ditto.
10013 (clear_face_gcs): Ditto.
10014 (lookup_face): Ditto.
10015 (smaller_face): Ditto.
10016 (realize_default_face): Ditto.
10017 (realize_face): Ditto.
10018 (realize_face): Dispatch to functions depending on the frame type.
10019 (realize_x_face): X way of realizing faces.
10020 (realize_tty_face): TTY way of realizing faces.
10021
100221998-08-29 Gerd Moellmann <gerd@gnu.org>
10023
10024 * xfaces.c (realize_face): Remove parameter unibyte_registry,
10025 compute it instead.
10026 (lookup_face): Remove local variable unibyte_registry.
10027
100281998-08-22 Gerd Moellmann <gerd@gnu.org>
10029
10030 * xterm.c (x_draw_glyph_string_relief): Draw top and bottom lines
10031 1 pixel longer.
10032
10033 * xdisp.c (face_before_or_after_it_pos): Fix computation
10034 of face in buffer.
10035
10036 * editfns.c (make_buffer_string_both): If prompt in buffer,
10037 prevent start > end.
10038
10039 * indent.c (Fvertical_motion): Set current_buffer to window's
10040 buffer if it isn't already.
10041
100421998-08-21 Gerd Moellmann <gerd@gnu.org>
10043
10044 * dispextern.h (GLYPH_DEBUG): Use default 0.
10045
10046 * xdisp.c (it_props): New member `smaller'.
10047 (init_iterator): Initialize it.
10048 (Qsmaller): New.
10049 (push_it): Save value of `smaller' value on the stack.
10050 (pop_it): Restore `smaller' from the stack.
10051 (handle_smaller_prop): New.
10052 (handle_face_prop): Use `smaller' text property to select a
10053 suitable face.
10054
10055 * dispextern.h (SMALLER_PROP_IDX): New.
10056 (struct it): Add member `smaller'.
10057
10058 * xfaces.c (smaller_face): New.
10059
10060 * frame.h (FRAME_WINDOW_WIDTH_ARG): Add bitmap area widths.
10061
10062 * dispnew.c (allocate_matrices_for_window_redisplay): Compute
10063 total pixel width of window differently.
10064
10065 * xdisp.c (init_iterator): Compute width of mode line differently.
10066
10067 * dispextern.h (WINDOW_DISPLAY_PIXEL_WIDTH): Subtract width
10068 of bitmap areas.
10069
10070 * window.c (Fsplit_window): Include width of bitmap areas in
10071 window width.
10072 (window_internal_width): Subtract width of bitmap areas from
10073 total width.
10074
100751998-08-18 Gerd Moellmann <gerd@gnu.org>
10076
10077 * xdisp.c: Functions reordered for better readability.
10078
10079 * dispnew.c (update_text_area): Handle glyphs with arbitrary
10080 lbearing.
10081 (update_window_tree): Parameter no_scrolling_p removed.
10082 (update_single_window): Ditto.
10083
10084 * xterm.c (x_get_char_font_and_encoding): Renamed to
10085 x_get_char_face_and_encoding.
10086
10087 * dispnew.c (update_text_area): Don't call get_glyph_overhangs
10088 if end of current row reached.
10089
10090 * xterm.c (x_get_glyph_face_and_encoding): New.
10091 (x_get_glyph_overhangs): Call it.
10092
10093 * xdisp.c (Qshow_trailing_whitespace): New.
10094 (Qtrailing_whitespace): New.
10095 (enum prop_handled): New.
10096 (struct props, it_props): New.
10097 (next_overlay_change): New. Works like Fnext_overlay_change
10098 but doesn't use xmalloc.
10099 (handle_stop): Restructured.
10100 (face_before_or_after_it_pos): Case iteration over a string: fix
10101 handling of face before current position.
10102
101031998-08-16 Gerd Moellmann <gerd@gnu.org>
10104
10105 * dispnew.c (adjust_glyph_matrix): Don't optimize matrix
10106 reallocation matrix if fonts_changed_p.
10107 (update_text_area): Handle glyphs with lbearing.
10108
101091998-08-14 Gerd Moellmann <gerd@gnu.org>
10110
10111 * xdisp.c (struct props): New.
10112 (it_props): New.
10113 (compute_prop_info): New.
10114 (handle_stop): New.
10115
10116 * textprop.c (validate_interval_range): Make it externally
10117 visible.
10118
10119 * dispnew.c (direct_output_for_insert): Remove calls
10120 to compute_stop_pos.
10121
10122 * dispextern.h (struct it): Remove check_charpos,
10123 next_overlay_pos. Add what_changes.
10124
101251998-08-10 Gerd Moellmann <gerd@gnu.org>
10126
10127 * xterm.c (note_mouse_highlight): Set BEGV_BYTE, ZV_BYTE.
10128
10129 * xfaces.c (Vx_unibyte_registry_and_encoding): Removed. Use
10130 face_default_registry instead.
10131
10132 * syntax.c (scan_sexps_forward): Set up syntax table before
10133 jumping to initial state label.
10134
101351998-08-09 Gerd Moellmann <gerd@gnu.org>
10136
10137 * dispnew.c (check_matrix_invariants): Handle case of row end pos
10138 >= ZV specially.
10139
101401998-08-08 Gerd Moellmann <gerd@gnu.org>
10141
10142 * xdisp.c (redisplay_window): Case cursor movement---if cursor
10143 ends up in partially visible row, try to scroll. Case forced
10144 window start---handle windows not tall enough to show a single
10145 line.
10146
10147 * window.h (struct window): Member dy renamed vscroll.
10148
10149 * xterm.c (x_list_fonts): Re-activate suppression of scalable
10150 fonts.
10151 (x_draw_stretch_glyph_string): Set clipping if using GC that
10152 hasn't set it yet.
10153
10154 * xdisp.c (redisplay_window): Case forced window start -
10155 don't let cursor end on partially visible row. Use desired
10156 matrix to find a suitable PT if it doesn't appear.
10157 (decode_mode_spec): Merged with 20.2.97.
10158 (try_window_reusing_current_matrix): Give up if old or
10159 new display is vscrolled.
10160 (redisplay_window): Reset vscrolling if forced window start,
10161 or if recentering.
10162
101631998-08-06 Gerd Moellmann <gerd@gnu.org>
10164
10165 * xfaces.c (realize_default_face): Use the fontset name instead of
10166 the alias for the family attribute of the default face because we
10167 can't easily determine a good alias from fontset-alias-alist.
10168 (face_fontset): Use Fquery_fontset to find the fontset.
10169 (font_list): Additional pattern parameter.
10170 (try_font_list): Ditto.
10171 (set_lface_from_font_name): Set face family from font foundry
10172 and family.
10173 (font_list): If family contains a hyphen, build pattern differently.
10174
101751998-08-05 Gerd Moellmann <gerd@gnu.org>
10176
10177 * xfaces.c (free_realized_faces): Increment windows_or_buffers_-
10178 changed instead of setting the frame garbaged.
10179
10180 * xfaces.c (lface_equal_p): Don't assume equal Lisp types for
10181 all attribute values. This is wrong if values are unspecified,
10182 i.e. nil.
10183
10184 * xdisp.c (try_window_id): Give up if window start changed.
10185
10186 * xfaces.c (make_realized_face): Store registry as Lisp object.
10187 (load_face_font_or_fontset): Compute registry of a face
10188 differently. Make it `eq' to Vx_unibyte_registry_and_encoding if
10189 possible.
10190
10191 * dispextern.h (FACE_SUITABLE_FOR_CHARSET_P): Compare registries
10192 differently.
10193
10194 * alloc.c (mark_face_cache): Mark the registry member of faces.
10195
10196 * dispextern.h (struct face): Make registry a Lisp string.
10197
101981998-08-04 Gerd Moellmann <gerd@gnu.org>
10199
10200 * xterm.c (x_get_char_font_and_encoding): Additional parameter
10201 multibyte_p. Handle unibyte text.
10202 (x_append_glyph): Set the multibyte_p flag of glyphs.
10203 (x_produce_image_glyph): Ditto.
10204 (x_append_stretch_glyph): Ditto.
10205 (x_produce_glyphs): Handle unibyte text like ASCII.
10206
10207 * xdisp.c (push_it): Save the multibyte flag of an iterator on the
10208 stack.
10209 (pop_it): Restore it.
10210 (face_before_or_after_it_pos): Handle the case that the string or
10211 buffer is unibyte.
10212 (get_overlay_strings): Set the multibyte flag of the iterator if
10213 the new overlay string is multibyte.
10214 (get_glyph_property): Likewise.
10215 (get_next_display_element): Don't check for charset changes in
10216 unibyte text.
10217 (append_space): Compute face differently for unibyte text.
10218 (extend_face_to_end_of_line): Don't return quickly if face has
10219 stipple.
10220
10221 * xfaces.c (load_face_font_or_fontset): Store registry and
10222 encoding of the font in the registry member of the face.
10223 (make_realized_face): Additional parameter `registry'.
10224 (free_realized_face): Free the registry of a realized face.
10225 (face_suitable_for_charset_p): Function form of the macro
10226 with the same name in uppercase.
10227 (lookup_face): Use Vx_unibyte_registry_and_encoding if charset < 0.
10228 (choose_face_font): New parameter unibyte_registry.
10229 (choose_face_fontset_font): Ditto.
10230 (realize_default_face): Remember the registry and encoding of
10231 the specified frame font in Vx_unibyte_registry_and_encoding.
10232 (face_at_buffer_position): Handle unibyte.
10233 (face_at_string_position): Likewise.
10234 (realize_face): New parameter unibyte_registry.
10235 (compute_char_face): Handle the unibyte case.
10236
10237 * dispextern.h (struct glyph): Add bit multibyte_p.
10238 (struct face): New member registry holding the registry and
10239 encoding of the X font of the face.
10240 (FACE_UNIBYTE_P): Value is non-zero if face is for unibye text.
10241 (enum face_id): Add BASIC_FACE_ID_SENTINEL.
10242 (FACE_SUITABLE_FOR_CHARSET_P): Handle charset < 0 meansing unibyte
10243 text.
10244 (struct iterator_stack_entry): Add multibyte_p.
10245
10246 * xdisp.c (string_pos): Use string_char_to_byte.
10247 (char_charset): Removed.
10248
102491998-08-03 Gerd Moellmann <gerd@gnu.org>
10250
10251 * xterm.c (x_draw_image_glyph_string_foreground): Draw a
10252 rectangle for a block cursor over an image without a mask.
10253 (x_stretch_block_cursor): Added. Non-zero means don't draw
10254 a block cursor over a stretch as wide as that stretch.
10255 (x_draw_stretch_glyph_string): Use it.
10256 (x_draw_hollow_cursor): Ditto.
10257
10258 * minibuf.c (read_minibuf): Use minibuf_prompt instead of prompt.
10259 (read_minibuf): Add front-sticky text property for prompt.
10260
10261 * xdisp.c (char_charset): Return charset of a character,
10262 depending on whether or not multi-byte characters are enabled.
10263
10264 * xfaces.c (Fset_face_charset_registry): Removed.
10265 (x_charset_registry): Determine registry from charset plist.
10266
102671998-08-02 Gerd Moellmann <gerd@gnu.org>
10268
10269 * xdisp.c (get_next_display_element): Don't check for charset
10270 changes if multi-byte characters are not enabled.
10271
10272 * xdisp.c (echo_area_display): Use the flush function from the
10273 redisplay interface.
10274 * keyboard.c (detect_input_pending_run_timers): Likewise.
10275
10276 * dispextern.h (produce_*glyphs_hook): Removed.
10277 * term.c (produce_*glyphs): Ditto.
10278 (cursor_to): Remove pixel position parameters.
10279
10280 * dispnew.c: Remove hooks for window-based redisplay, introduce
10281 a redisplay interface structure.
10282
10283 * xterm.c (x_per_char_metric): Return default char metrics if per
10284 char metric exists but contains a zero width. Adobe Courier seems
10285 to contain such characters.
10286
10287 * xdisp.c (compute_line_metrics): Compute the width of rows
10288 without stopping at glyphs with zero width.
10289
102901998-08-01 Gerd Moellmann <gerd@gnu.org>
10291
10292 * xdisp.c (display_mode_line): If nothing was displayed at all,
10293 display a space.
10294 (hscroll_window_tree): Don't subtract 1 from target point if equal
10295 to ZV and window is not the selected window.
10296
10297 * dispnew.c (check_matrix_invariants): Remove check for window
10298 start at BEGV or after newline. This happens in rare cases
10299 intentionally.
10300
103011998-07-31 Gerd Moellmann <gerd@gnu.org>
10302
10303 * xfaces.c (x_charset_registry): Use STRING_BYTES.
10304 (syms_of_xfaces): Add Vface_default_registry.
10305 (x_charset_registry): Use it.
10306
10307 * xdisp.c (run_window_scroll_functions): Run window scroll functions.
10308 (redisplay_window): Use it.
10309
10310 * dispnew.c (update_text_area): Handle lbearing of deleted text
10311 by backing up one character.
10312
103131998-07-30 Gerd Moellmann <gerd@gnu.org>
10314
10315 * dispnew.c (adjust_glyph_matrix): Use a different check to
10316 decide to do nothing.
10317
10318 * xfaces.c (face_at_string_position): Additional parameter
10319 mode_line_p. If non-zero, merge with the mode line face
10320 instead of the default face.
10321 * dispextern.h (struct it): Add mode_line_p.
10322 * xdisp.c (init_iterator): Set it.
10323 (compute_face_in_string): Use it.
10324 (face_before_or_after_it_pos): Handle strings.
10325 (get_next_display_element): Don't look for relief end in C strings.
10326 (next_element_from_string): Deliver string position instead of
10327 buffer position.
10328
10329 * xterm.c (x_flush): Flush X output buffer.
10330 (XTflash): Use it.
10331
10332 * xfaces.c (lface_from_face_name): Renamed from lface_from_symbol.
10333 Allow strings as face names.
10334
10335 * xfns.c (forall_images_in_image_cache): Check that frame is
10336 alive.
10337
10338 * widget.c (EmacsFrameDestroy): Remove call to free_frame_faces;
10339 it's also called from x_destroy_window. Since this function is
10340 called from X, freeing stuff allocated with xmalloc is dangerous
10341 here, anyway.
10342
10343 * xfaces.c (free_realized_faces): Don't clear current matrices
10344 of a frame being destroyed.
10345
10346 * frame.c (make_frame): Call set_window_buffer instead of
10347 Fset_window_buffer.
10348
10349 * window.c (set_window_buffer): Extracted from Fset_window_buffer,
10350 with an additional argument specifying whether or not hooks may
10351 be called.
10352 (Fset_window_buffer): Call it.
10353
10354 * dispnew.c (clear_desired_matrices): Check that frame has
10355 a valid root window before clearing matrices in the window tree.
10356 (clear_current_matrices): Ditto.
10357 (clear_window_matrices): If GLYPH_DEBUG, check that hchild and
10358 vchild are valid windows if not nil.
10359
10360 * xfaces.c (merge_face_vector_with_property): Allow :reverse-video
10361 for :inverse-video.
10362 (Finternal_set_lisp_face_attribute): Ditto.
10363 (Finternal_set_lisp_face_attribute_from_resource): Ditto.
10364 (Finternal_get_lisp_face_attribute): Ditto.
10365 (Finternal_lisp_face_attribute_values): Ditto.
10366 (syms_of_xfaces): Define the symbol `:reverse-video'.
10367
10368 * xdisp.c (get_glyph_property): Renamed from
10369 fill_iterator_from_glyph_property.
10370 (next_element_from_buffer): Handle case that no `glyph' property
10371 was found correctly.
10372 (display_line): Extend face to end of line only if we have faces.
10373
103741998-07-29 Gerd Moellmann <gerd@gnu.org>
10375
10376 * dispnew.c (Fshow_cursor): Renamed from blink_cursor. Take
10377 additional window argument.
10378
10379 * xdisp.c (reseat_at_previous_visible_line_start): Renamed from
10380 set_iterator_to_previous_visible_line_start.
10381 (reseat_at_next_visible_line_start): Likewise.
10382 (compute_stop_pos): Renamed from set_iterator_stop_pos.
10383 (face_before_or_after_it_pos): Renamed from get_face_at_it_pos.
10384 (compute_face_in_buffer): Renamed from
10385 compute_face_at_iterator_position.
10386 (compute_face_in_string): Renamed from
10387 compute_face_at_iterator_string_position.
10388 (get_space_width): Renamed from get_iterator_space_width.
10389 (next_overlay_string): Renamed from
10390 set_iterator_to_next_overlay_string.
10391 (get_overlay_strings): Renamed from
10392 get_overlay_strings_at_iterator_position.
10393 (restore_overlay_strings): Renamed from
10394 setup_overlay_strings_from_glyph_pos.
10395 (restore_dpvec): Renamed from setup_iterator_dpvec_from_glyph_pos.
10396 (init_from_display_pos): Renamed from init_iterator_from_glyph_pos.
10397 (init_to_row_start): Renamed from init_iterator_to_row_start.
10398 (init_to_row_end): Formerly init_iterator_to_next_row_start.
10399
10400 * xterm.c: Merge with 20.2.97.
10401 (x_produce_glyphs): Use x_append_stretch_glyph for tabs.
10402
10403 * dispextern.h (struct glyph): Replace text_pos position with
10404 simple charpos.
10405
10406 * xdisp.c (this_line_start_pos): Use struct text_pos.
10407 (this_line_end_pos): Renamed from .*endpos; use struct text_pos.
10408 (enum move_it_result): Renamed from move_iterator_result.
10409 (string_pos_nchars_ahead): Compute text_pos in a string from a
10410 known text_pos plus a character delta.
10411 (string_pos): Compute text_pos in string from charpos.
10412 (c_string_pos): Likewise for a C string.
10413 (number_of_chars): Return number of characters in a possibly
10414 multi-byte C string.
10415 (check_it): Renamed from check_iterator. Check that charpos and
10416 bytepos are in sync.
10417 (push_it): Renamed from save_iterator_settings.
10418 (pop_it): Renamed from restore_iterator_settings.
10419 (move_it_.*): Renamed from move_iterator_.*.
10420 (charset_at_position): Take charpos/bytepos into account.
10421 (back_to_previous_line_start): Set iterator to previous line start.
10422 (forward_to_next_line_start): Set iterator to next line start.
10423 (back_to_previous_visible_line_start): Renamed from
10424 move_iterator_previous_visible_line_start.
10425 (set_iterator_to_next_visible_line_start): Handle charpos/bytepos.
10426 (get_face_at_it_pos): Renamed from get_face_from_cursor_pos.
10427 Handle charpos/bytepos.
10428 (compute_face_at_iterator_position): Handle charpos/bytepos.
10429 (compute_face_at_iterator_string_position): Likewise.
10430 (get_iterator_space_width): Likewise.
10431 (load_overlay_strings): Likewise.
10432 (get_overlay_strings_at_iterator_position): Likewise.
10433 (reseat_iterator): Take a text_pos position argument.
10434 (setup_iterator_overlay_strings_from_glyph_pos): Handle charpos/
10435 bytepos.
10436 (init_iterator): Take additional bytepos parameter.
10437 (reseat_iterator_to_string): Handle charpos/bytepos.
10438 (start_display): Take a text_pos parameter. Handle charpos/bytepos.
10439 (next_element_from_string): Handle charpos/bytepos.
10440 (next_element_from_c_string): Likewise.
10441 (fill_iterator_from_glyph_property): Likewise.
10442 (next_element_from_buffer): Likewise.
10443 (set_iterator_to_next): Increment charpos and bytepos of an iterator.
10444 (move_iterator_in_display_line_to): Handle charpos/bytepos.
10445 (move_it_to): Likewise.
10446 (move_it_vertically_backward): Likewise.
10447 (move_it_vertically): Likewise.
10448 (move_it_by_lines): Likewise.
10449 (hscroll_window_tree): Likewise.
10450 (redisplay_internal): Likewise.
10451 (set_cursor_from_row): Likewise.
10452 (redisplay_window): Likewise.
10453 (try_window): Take a text_pos parameter. Handle charpos/bytepos.
10454 (try_window_reusing_current_matrix): Handle charpos/bytepos.
10455 (get_first_unchanged_at_end_row): Compute and return delta_bytes.
10456 (try_window_id): Handle charpos/bytepos.
10457 (Ftrace_redisplay_toggle): Return Qnil.
10458 (get_overlay_arrow_glyph_row): Handle charpos/bytepos.
10459 (insert_left_trunc_glyphs): Likewise.
10460
10461 * dispnew.c: `Merge' with 20.2.97 (it's really too different to
10462 do a real merge).
10463 (increment_glyph_matrix_buffer_positions): Add parameter delta_bytes.
10464 (increment_glyph_row_buffer_positions): Ditto.
10465 (copy_glyph_row_contents): Ditto.
10466 (check_matrix_invariants): Add additional checks for charpos/
10467 bytepos consistency.
10468 (direct_output_for_insert): Changed for charpos/bytepos.
10469 (buffer_posn_from_coords): Likewise. Put code dealing with
10470 `direction-reversed' in #if 0.
10471
10472 * xterm.h: Merge with 20.2.97.
10473
10474 * frame.h: Merge with 20.2.97.
10475
10476 * window.h: Merge with 20.2.97. Add window_end_bytepos.
10477
10478 * dispextern.h (MATRIX_ROW_START_CHARPOS): Get charpos of a row
10479 start.
10480 (MATRIX_ROW_START_BYTEPOS): Likewise for the byte position.
10481 (MATRIX_ROW_END_CHARPOS): Likewise for the row end.
10482 (MATRIX_ROW_END_BYTEPOS): Likewise for the row end byte position.
10483 (struct it): Various members renamed from .*pos to .*charpos.
10484 (IT_CHARPOS): Access current buffer character position of an
10485 iterator.
10486 (IT_BYTEPOS): Access current buffer byte position of an iterator.
10487 (IT_STRING_CHARPOS): Access current string character position of
10488 an iterator.
10489 (IT_STRING_BYTEPOS): Access current string byte position of
10490 an iterator.
10491 (globally): Add function prototypes from 20.2.97.
10492
10493 * everywhere: Use P_ instead of PROTO for function prototypes
10494 because everyone else seems to use P_.
10495
10496 * dispextern.h (struct text_pos): Structure describing a charpos/
10497 bytepos position in text.
10498 (BYTEPOS): Access the byte position part of a text_pos.
10499 (CHARPOS): Likewise for the character position.
10500 (SET_TEXT_POS): Set a text_pos from a character and byte position.
10501 (INC_TEXT_POS, DEC_TEXT_POS): Increment/decrement a text position.
10502 (SET_TEXT_POS_FROM_MARKER): Set a text_pos from a marker.
10503 (SET_MARKER_FROM_TEXT_POS): Set a marker from a text_pos.
10504 (TEXT_POS_EQUAL_P): Compare two text_pos structures for equality.
10505 (struct display_pos): Renamed from glyph_pos. Use struct text_pos
10506 for buffer and string positions.
10507 (struct glyph): Use text_pos.
10508 (struct it): Renamed from display_iterator. Use text_pos.
10509
105101998-07-23 Gerd Moellmann <gerd@gnu.org>
10511
10512 * xfns.c (x_kill_gs_process): Get image colors from XImage of a
10513 pixmap.
10514
105151998-07-21 Gerd Moellmann <gerd@gnu.org>
10516
10517 * dispextern.h (struct glyph_row): New flag indicate_zv_line_p.
10518 * xterm.c (x_draw_row_bitmaps): Use it.
10519 * dispnew.c (row_equal_p): Ditto.
10520 (update_window_line): Ditto.
10521
10522 * xfns.c (prepare_image_for_display): Don't set loading_failed_p
10523 flag of images.
10524
10525 * dispextern.h (struct image): Removed member loading_failed_p.
10526 It's probably better to have the chance to try to load an image
10527 again.
10528
105291998-07-20 Gerd Moellmann <gerd@gnu.org>
10530
10531 * xterm.c (x_draw_bitmap): Draw bitmap for empty lines ending
10532 at ZV if `indicate-zv-lines' is non-nil.
10533 (x_draw_row_bitmaps): Compute bitmap for `indicate-zv-lines'.
10534
10535 * dispnew.c (row_equal_p): Compare displays_text_p and
10536 ends_at_zv_p flags of rows.
10537 (update_window_line): Ditto.
10538
10539 * buffer.h (struct buffer): New member indicate_zv_lines.
10540
10541 * buffer.c (init_buffer_once): Add default for `indicate-zv-lines'.
10542 (init_buffer_once): New variable `default-indicate-zv-lines'.
10543 (syms_of_buffer): New buffer-local varianle `indicate-zv-lines'.
10544
10545 * xdisp.c (redisplay_window): Don't try moving the cursor
10546 if current glyph row w->last_cursor.vpos isn't enabled.
10547
10548 * xterm.c (bitmap_type): Add ZV_LINE_BITMAP.
10549
10550 * window.c (Fset_window_vscroll): Allow only negative scroll
10551 values. Others don't seem to make sense, and this way it's easy
10552 to restore a vscroll of zero.
10553
10554 * xterm.c (x_inverted_image_mask): Check that pixmap could be
10555 allocated.
10556 (x_draw_image_glyph_string_background): Don't clip if pixmap
10557 could not be created.
10558
10559 * xfns.c (xbm_load_image_from_file): Check that pixmap could
10560 be created.
10561 (xbm_load): Ditto.
10562 (gs_load): Ditto.
10563
10564 * xterm.c (x_get_glyph_overhangs): Take image and stretch
10565 glyphs into account.
10566
10567 * xfaces.c (realize_default_face): Don't set font family of
10568 the default face from the fontset alias name for `fontset-startup'.
10569
10570 * xfns.c (gs_load): Pass frame's pixel foreground and background
10571 color to the Lisp loader.
10572
105731998-07-19 Gerd Moellmann <gerd@gnu.org>
10574
10575 * xfns.c (tiff_image_p, tiff_load): Support TIFF images via
10576 libtiff34.
10577
10578 * configure.in (--with-tiff, HAVE_TIFF): Added.
10579
10580 * config.in (HAVE_TIFF): Added.
10581
10582 * Makefile.in (LIBTIFF): Added.
10583
10584 * xfns.c (jpeg_image_p, jpeg_load): Support JPEG images.
10585
10586 * Makefile.in (LIBJPEG): Added.
10587
10588 * xfns.c (resource_types): Enumerators renamed to RES_TYPE_NUMBER,
10589 RES_TYPE_BOOLEAN etc. because of conflict of `boolean' with
10590 jpeglib.h.
10591
10592 * configure.in (HAVE_JPEG, --with-jpeg): Added. On systems
10593 where the library is installed in /usr/local/lib, e.g. FreeBSD,
10594 configure must be run with `--x-includes=/usr/X11R6/include:
10595 /usr/local/include --x-libraries=/usr/X11R6/lib:/usr/local/lib'.
10596
105971998-07-18 Gerd Moellmann <gerd@gnu.org>
10598
10599 * config.in (HAVE_JPEG): Added.
10600
10601 * xfns.c (ct_init): Initialize color table used to map RGB colors
10602 from images to X pixel colors.
10603 (ct_free): Free color table.
10604 (ct_lookup): Look an RGB color up.
10605 (ct_allocated_colors): Get vector of allocated colors.
10606 (pbm_image_p): Test if image specification is a valid PPM
10607 image specification.
10608 (pbm_scan_number): Scan a decimal ASCII number from a file.
10609 (pbm_load): Load a PPM image.
10610
10611 * window.c (Fset_window_vscroll): Adjust glyph matrix if
10612 necessary. Take canonical character units as parameter.
10613 (Fwindow_vscroll): Return canonical character units.
10614
10615 * dispnew.c (allocate_matrices_for_window_redisplay): Add negative
10616 w->dy to display height for which glyph rows must be allocated.
10617
106181998-07-17 Gerd Moellmann <gerd@gnu.org>
10619
10620 * xfaces.c (face_at_string_position): Merge in region face
10621 so that it won't overwrite the font in the region.
10622 (face_at_buffer_position): Ditto.
10623 (realize_basic_faces): Don't realize region face.
10624
10625 * dispextern.h (enum face_id): REGION_FACE_ID removed.
10626
10627 * xterm.c (x_set_glyph_string_background_width): Don't let
10628 cursor face extend to end of line.
10629
10630 * xdisp.c (append_space): If adding space of default face,
10631 make sure glyph ist produced with right face.
10632
10633 * xterm.c (x_clear_glyph_string_rect): Draw a rectangle in the
10634 background color of a glyph string.
10635 (x_draw_glyph_string_background): Call it.
10636 (x_draw_glyph_string_bg_rect): Ditto.
10637 (x_draw_stretch_glyph_string): Ditto.
10638
106391998-07-15 Gerd Moellmann <gerd@gnu.org>
10640
10641 * xdisp.c (init_iterator): Initialize it->current_y to the
10642 window's vscroll w->dy.
10643
10644 * window.c (Fwindow_vscroll): Return number of pixels window
10645 is vscrolled smoothly.
10646 (Fset_window_vscroll): Set the number.
10647
10648 * xdisp.c (move_iterator_to): Recognize case MOVE_TO_POS and
10649 to_pos in truncated part of a line.
10650
106511998-07-14 Gerd Moellmann <gerd@gnu.org>
10652
10653 * xdisp.c (move_iterator_in_display_line_to): If very first glyph
10654 doesn't fit on the line, truncate it, despite truncate_lines nil.
10655 (display_line): Ditto.
10656
10657 * xfns.c: Experimental support for Ghostscript images.
10658
10659 * xterm.c (x_term_init): Initialize new atoms DONE and PAGE.
10660 (XTread_socket): React on events from Ghostscript.
10661 (expose_frame): If width or height are zero, redraw entire frame.
10662 (XTread_socket): Call expose_frame after receiving event from
10663 Ghostscript.
10664
10665 * xterm.h (struct x_display_info): Add atoms DONE and PAGE
10666 for Ghostscript support.
10667
10668 * xdisp.c (redisplay_internal): Return quickly if called
10669 recursively.
10670
10671 * alloc.c (NSTATICS): Increased to 1024.
10672
106731998-07-08 Gerd Moellmann <gerd@gnu.org>
10674
10675 * xterm.c (x_append_stretch_glyph): Append a stretch glyph to an
10676 iterator's glyph row.
10677 (x_produce_stretch_glyph): Call it.
10678 (x_produce_glyphs): Handle `space-width' property; call
10679 x_append_stretch_glyph.
10680
10681 * xdisp.c (syms_of_xdisp): Add symbol `space-width' used as a text
10682 property.
10683 (get_iterator_space_width): Determine value of `space-width'
10684 property at iterator's position.
10685 (reseat_iterator): Call it.
10686 (next_element_from_string): Ditto.
10687 (next_element_from_buffer): Ditto.
10688 (init_iterator): Initialize space_width of iterator.
10689 (redisplay_internal): Don't goto end_of_redisplay if PT hasn't
10690 moved, but cursor blinks.
10691 (redisplay_internal): Set w->last_cursor_off_p after update.
10692
10693 * dispextern.h (enum iterator_prop_idx): Add SPACE_WIDTH_PROP_IDX.
10694 (struct display_iterator): Add new member space_width.
10695
10696 * window.h (struct window): Add last_cursor_off_p.
10697
106981998-07-07 Gerd Moellmann <gerd@gnu.org>
10699
10700 * Saved.
10701
10702 * window.c (Fpos_visible_in_window_p): Case window not up to
10703 date---return nil if iterator hasn't reached position.
10704
107051998-07-06 Gerd Moellmann <gerd@gnu.org>
10706
10707 * xdisp.c (text_outside_line_unchanged_p): Fix case that
10708 overlays have changed.
10709 (redisplay_window): Case cursor movement. Don't try it if
10710 last_cursor.vpos is out of range.
10711
10712 * xdisp.c (set_cursor_from_row): Set this_line_.* variables. This
10713 way, the display optimization for the line containing the cursor
10714 is used more frequently, esp. when we have a blinking cursor.
10715 (display_line): Don't set this_line_.* variables.
10716
10717 * xterm.c (x_redraw_cursor): Removed.
10718 (x_display_and_set_cursor): Set cursor type depending on
10719 cursor_off_p flag of window.
10720
10721 * dispnew.c (redraw_cursor_hook): Removed.
10722 (Fblink_cursor): Additional parameter on_p to set the cursor_off_p
10723 member of the selected window.
10724
10725 * xfaces.c (Fface_font): Added for compatibility with 20.2.
10726
10727 * xterm.c (x_y_to_hpos_vpos): Return null if not over text.
10728 Return glyph area under x/y.
10729 (note_mouse_highlight): Use x_y_to_hpos_vpos in its new form.
10730
10731 * keyboard.c (detect_input_pending_run_timers): Call gobble_input
10732 after redisplaying.
10733
107341998-07-05 Gerd Moellmann <gerd@gnu.org>
10735
10736 * xdisp.c (text_outside_line_unchanged_p): Test if changes
10737 are all outside of a line of text.
10738 (redisplay_internal): Use it.
10739
107401998-06-30 Gerd Moellmann <gerd@gnu.org>
10741
10742 * xdisp.c (next_element_from_buffer): After skipping over
10743 invisible text, look for the `glyph' property.
10744 (set_iterator_stop_pos): Ignore check positions in front
10745 of an iterator's current position.
10746
10747 * xterm.c (show_mouse_face): Don't act on rows that don't exist
10748 anymore or which are marked as not having valid contents.
10749
10750 * xfaces.c (Finternal_set_lisp_face_attribute): Don't free
10751 realized faces if new attribute value is equal to old value.
10752
107531998-06-29 Gerd Moellmann <gerd@gnu.org>
10754
10755 * xfaces.c (Finternal_make_lisp_face): Increment
10756 lface_id_to_name_size when lface_id_to_name is reallocated.
10757
107581998-06-27 Gerd Moellmann <gerd@gnu.org>
10759
10760 * xdisp.c (set_iterator_stop_pos): Compute initial stop_pos
10761 as minimum of endpos and overlay_pos.
10762 (load_overlay_strings): Set next_overlay_pos of iterator to
10763 -1 if we don't have to check for more overlay strings.
10764
107651998-05-09 Gerd Moellmann <gerd@gnu.org>
10766
10767 * xdisp.c (set_iterator_to_next_visible_line_start): Don't
10768 do anything if iterator is at ZV because scan_buffer doesn't
10769 work otherwise.
10770
10771 * xterm.c (x_encode_char): Inline it.
10772 (x_get_char_font_and_encoding): Simplified.
10773 (x_per_char_metric): Inline it.
10774
10775 * xterm.c (x_draw_glyph_string_relief): Use clipping.
10776
10777 * xdisp.c (get_next_display_element): Check for end of relief
10778 face moved here from next_element_from_buffer.
10779
10780 * xterm.c (x_produce_image_glyph): Add relief thickness.
10781 (x_produce_stretch_glyph): Ditto.
10782
107831998-05-08 Gerd Moellmann <gerd@gnu.org>
10784
10785 * xdisp.c (fill_iterator_from_glyph_property): Handle glyph
10786 property value (space :width WIDTH :height HEIGHT :ascent ASCENT).
10787
10788 * xterm.c (x_produce_stretch_glyph): Produce a stretch glyph
10789 from a glyph property.
10790 (x_produce_glyphs): Use it.
10791
10792 * xdisp.c (set_iterator_to_next): Handle next_element_from_stretch.
10793
10794 * xterm.c (x_produce_image_glyph): Add to current_x only if
10795 in text area.
10796 (x_produce_glyphs): Ditto.
10797
10798 * xdisp.c (display_line): Compute row height from glyphs in
10799 marginal areas.
10800
10801 * xterm.c (x_draw_image_glyph_string_background): Draw
10802 background of an image glyph string.
10803 (x_draw_glyph_string_bg_rect): Draw a rectangular region of
10804 the background of a glyph string.
10805 (x_draw_image_glyph_string_foreground): Draw the foreground of
10806 an image glyph string.
10807 (x_inverted_image_mask): Return the inverted mask of an image.
10808
10809 * xfns.c (x_draw_image): Removed.
10810
10811 * dispextern.h (struct image_type): Remove drawing function.
10812
10813 * xfaces.c (load_face_colors): Swap colors if face is inverse.
10814
10815 * xdisp.c (get_next_display_element): In marginal areas, translate
10816 newlines, tabs, etc. like normal control characters.
10817
10818 * xfaces.c (Fface_color_supported_p): Transpose parameters frame
10819 and color.
10820 (free_realized_faces): Set frame garbaged.
10821
10822 * xfaces.c (syms_of_xfaces): Add defsubr for
10823 internal-lisp-face-attribute-values.
10824
108251998-05-07 Gerd Moellmann <gerd@gnu.org>
10826
10827 * xterm.c (x_produce_image_glyph): Don't add glyph if area is
10828 full.
10829 (x_produce_image_glyph): Set IT->nglyphs to 1.
10830 (x_draw_image_glyph_string): Use inverted mask to draw background.
10831
10832 * dispextern.h (struct image_type): Additional clipping rect
10833 parameters for drawing functions.
10834
10835 * xterm.c (x_get_glyph_string_clip_rect): Get clip rect for
10836 a glyph string.
10837 (x_draw_image_glyph_string): Use it and pass the rect to the
10838 image drawing function.
10839
10840 * xdisp.c (fill_iterator_from_glyph_property): Use position of
10841 first character with `glyph' property as image position. Set
10842 iterator back to that position as long as the image hasn't been
10843 consumed with set_iterator_to_next.
10844 (set_cursor_from_row): Accept when glyph with given position is
10845 not found in the row. Set cursor x to end of line in that case,
10846 so that we can hscroll.
10847 (redisplay_internal): Correct computation of delta by which
10848 positions have changed in redisplay optimization for cursor
10849 row of selected window.
10850
10851 * xdisp.c (display_line): Remove start_pos.
10852 (display_line): Fix bug preventing display optimization for
10853 cursor line of selected window.
10854 (next_element_from_buffer): Avoid XSETBUFFER, use it->w->buffer
10855 instead.
10856
10857 * dispnew.c (update_text_area): Use GLYPH_EQUAL_P.
10858 (update_text_area): Take glyph pixel width into account
10859 when trying to find a resync point.
10860 (row_equal_p): Compare glyphs in all areas.
10861
108621998-05-06 Gerd Moellmann <gerd@gnu.org>
10863
10864 * xterm.c (x_produce_glyphs): Don't add glyph if area is full.
10865
10866 * dispextern.h (struct glyph_row): Use unsigned hash value.
10867
10868 * xdisp.c (display_line): Simplified and made faster by setting
10869 the cursor with set_cursor_from_row.
10870 (set_cursor_from_row): Handle rows of desired matrix.
10871
108721998-05-05 Gerd Moellmann <gerd@gnu.org>
10873
10874 * xdisp.c (set_cursor_from_row): Don't put cursor on glyphs
10875 with type != CHAR_GLYPH.
10876 (fill_iterator_from_glyph_property): Return void. Set
10877 method to next_element_from_image.
10878 (next_element_from_image): Dummy function for delivering a
10879 single image id.
10880 (set_iterator_to_next): Add method next_element_from_image.
10881 (redisplay_window): When recentering, and cursor vpos is -1
10882 after display, assume middle of window is in first line displayed
10883 in window, and display again.
10884 (fill_iterator_from_glyph_property): Assign image glyph
10885 the position of the first character having the glyph property.
10886
10887 * dispextern.h (IMAGE_ASCENT): Compute ascent of image.
10888 * xfns.c (x_draw_image): Use it.
10889 * xterm.c (x_produce_image_glyph): Use it.
10890
10891 * xterm.c (x_produce_image_glyph): Set iterator's pixel_width.
10892
10893 * Makefile.in: Extraneous #define of LIBXPM removed.
10894
10895 * xterm.c (x_produce_glyphs): Produce a STRETCH_GLYPH for tabs.
10896 (x_fill_stretch_glyph_string): Fill a glyph string from a
10897 stretch glyph.
10898 (x_compute_glyph_string_overhangs): Compute overhangs only
10899 for text glyph strings.
10900 (x_draw_stretch_glyph_string): Draw a stretch glyph string.
10901 (x_draw_glyph_string): Call it.
10902
10903 * dispextern.h (glyph_type): Add STRETCH_GLYPH.
10904 (struct glyph): Add sub-structure for stretchable glyphs.
10905 (GLYPH_EQUAL_P): Compare glyph type and u.val.
10906
10907 * xdisp.c (get_overlay_arrow_glyph_row): Put face code into
10908 #ifdef HAVE_FACES.
10909
10910 * xterm.c (x_produce_glyphs): Use ASCII face for spaces of a TAB.
10911
10912 * xdisp.c (fill_iterator_from_glyph_property): Renamed from
10913 setup_iterator_from_glyph_property. Don't do it for terminal
10914 frames.
10915
10916 * xterm.c (x_produce_image_glyph): Produce glyph for image
10917 that can't be loaded.
10918
10919 * xfns.c (lookup_image): If image can't be loaded, set its
10920 width and height so that we can draw a rectangle.
10921 (x_draw_image): Draw a rectangle for images that don't have
10922 a pixmap.
10923 (make_image): Set hash value.
10924 (image_spec_equal_p): Use image_spec_value.
10925
10926 * xterm.c (expose_frame): Don't try to redraw if basic faces
10927 haven't benn realized yet.
10928 (x_draw_image_glyph_string): Fill background only if image
10929 is not as tall as row.
10930
109311998-05-04 Gerd Moellmann <gerd@gnu.org>
10932
10933 * Makefile.in (LIBXPM): If not already defined, define to -lXpm.
10934 (LIBX)[HAVE_X11]: Add LIBXPM.
10935
10936 * xfns.c (xpm_image_p): Implementation of image type functions
10937 for XPM.
10938 (xpm_load): Ditto.
10939
10940 * dispextern.h (struct image): Add mask pixmap for XPM.
10941
10942 * xfns.c (x_draw_image): Handle images with masks.
10943
10944 * configure.in: --with-xpm added. Code detecting -lXpm added.
10945
10946 * config.in: Add HAVE_XPM.
10947
10948 * xfns.c (xbm_draw): Removed.
10949 (x_draw_image): Default implementation for drawing images.
10950 (xbm_keyword_index): Remove XBM_DEPTH.
10951 (xbm_format): Remove `:depth'.
10952 (xbm_image_spec_from_file): Removed to reduce consing.
10953 (xbm_load_image_from_file): Added for the same reason.
10954
10955 * xterm.c (x_fill_image_glyph_string): Don't set ybase of
10956 glyph string.
10957 (x_draw_image_glyph_string): Pass ybase to image draw function.
10958
10959 * xfns.c (make_image): Set default baseline.
10960
10961 * xterm.c (x_produce_image_glyph): Compute ascent of image
10962 from its height and baseline percentage.
10963
10964 * xfns.c (xbm_keyword_index): Add XBM_BASELINE.
10965 (xbm_format): Add description for `:baseline'.
10966 (xbm_image_spec_from_file): Add keywords from original spec to
10967 result.
10968 (xbm_load): Set baseline of image.
10969 (xbm_image_p): Check range for baseline.
10970
10971 * dispextern.h (struct image): Add member baseline.
10972
10973 * xdisp.c (dump_glyph_matrix): Handle image glyphs.
10974
10975 * term.c (produce_glyphs): Change assertion to allow DISP_IMAGE.
10976
10977 * xdisp.c (get_next_display_element): Do character translations
10978 only if delivering characters.
10979
109801998-05-03 Gerd Moellmann <gerd@gnu.org>
10981
10982 * dispextern.h (ITERATOR_AT_END_OF_LINE_P): Test for
10983 DISP_CHARACTER.
10984
10985 * xterm.c (x_produce_image_glyph): Poduce image glyphs.
10986 (x_produce_glyphs): Call x_produce_glyphs for DISP_IMAGE.
10987
109881998-05-02 Gerd Moellmann <gerd@gnu.org>
10989
10990 * xfns.c (prepare_image_for_display): Set image timestamp.
10991 (clear_image_cache): Clear images if image's timestamp +
10992 Vimage_eviction_seconds is > now.
10993 (syms_of_xfns): New variables image-eviction-seconds, and
10994 image-types.
10995 (add_image_format): Add to image-types.
10996 (xbm_load): Support new image spec format.
10997 (x_alloc_image_color): Allocate a color for an image.
10998
10999 * dispextern.h (struct image): Add timestamp.
11000
11001 * xfns.c (xbm_image_p): Allow bool-vectors, vectors of strings and
11002 vectors of bool-vectors.
11003 (xbm_lisp_object_from_file): Build new format image spec.
11004
110051998-05-01 Gerd Moellmann <gerd@gnu.org>
11006
11007 * xfaces.c (init_frame_faces): Initialize image cache.
11008 (free_frame_faces): Free it.
11009
11010 * xterm.c (x_delete_display): Don't free image cache.
11011
11012 * emacs.c (main): Call init_xfns.
11013
110141998-04-30 Gerd Moellmann <gerd@gnu.org>
11015
11016 * alloc.c (mark_object): Mark objects in image cache.
11017
11018 * xfns.c (x_set_internal_border_width): Correct call to
11019 widget_store_internal_border_width.
11020
11021 * widget.c (widget_store_internal_border): Return void.
11022
11023 * xfns.c (x_destroy_bitmap): Use xfree instead of free. Return
11024 void.
11025 (init_x_parm_symbols): Return void.
11026 (x_report_frame_params): Ditto.
11027 (x_set_border_pixel): Ditto.
11028 (syms_of_xfns): Ditto.
11029 (x_destroy_all_bitmaps): Use xfree instead of free.
11030
11031 * xterm.h (FRAME_X_IMAGE_CACHE): Access the image cache of a frame.
11032
11033 * xterm.c (x_term_init): Initialize image_cache of display info.
11034 (x_delete_display): Free image cache.
11035
11036 * xterm.h (struct x_display_info): Add image_cache.
11037
11038 * xfns.c (make_image_cache): Allocate a new image cache.
11039 (free_image_cache): Free an image cache.
11040 (make_image): Allocate an image.
11041 (free_image): Free an image.
11042
11043 * dispextern.h (struct image): Structure describing an image.
11044 (struct image_cache): Structure describing an image cache.
11045
110461998-04-29 Gerd Moellmann <gerd@gnu.org>
11047
11048 * xdisp.c (check_iterator_glyph_property): Return int. Value is
11049 non-zero if iterator is filled with something to return.
11050 (next_element_from_buffer): Immediately return if
11051 setup_iterator_from_glyph_prop has filled iterator with pixmap.
11052 (next_element_from_string): Likewise.
11053
11054 * xfaces.c (load_pixmap): Allow to pass null for W_PTR and H_PTR.
11055
11056 * dispextern.h (struct glyph): Add pixmap_id.
11057 (display_element_type): Add DISP_PIXMAP.
11058
11059 * xmenu.c (popup_get_selection): Use xmalloc/xfree instead of
11060 malloc/free.
11061
11062 * xfaces.c (clear_font_table): Free fonts not used by fontsets.
11063 (clear_face_cache): Call it.
11064
11065 * xterm.c (x_query_font): Don't look at empty font table slots.
11066 (x_compute_min_glyph_bounds): Likewise.
11067 (x_term_init): Initialize font_table to null.
11068 (x_load_font): Change allocation of font_info structures so
11069 that it is possible to free fonts.
11070
11071 * xfns.c (Fx_close_connection): Use xfree instead of free.
11072 Only free fonts from filled font table entries.
11073
11074 * xfaces.c (best_matching_font): Support use of scalable fonts.
11075 (Fface_scalable_fonts_mode): Toggle use of scalable fonts.
11076
11077 * xterm.h (struct x_display_info): Remove screen_dpi, add resx
11078 and resy.
11079 * xterm.c (x_term_init): Compute resx and resy.
11080
11081 * xfaces.c (split_font_name): Don't reject scalable fonts.
11082
11083 * xterm.c (x_list_fonts): Set code exclusing scalable fonts
11084 in #if 0.
11085
11086 * xfaces.c (xlfd_point_size): Return 0 for fonts whose real
11087 point size cannot be determined.
11088
11089 * xterm.h (FRAME_SMALLEST_CHAR_WIDTH): Return smallest character
11090 width over all fonts on a frame.
11091 (FRAME_SMALLEST_FONT_HEIGHT): Likewise for font height.
11092 * dispnew.c (adjust_frame_glyphs_for_window_redisplay): Use these
11093 macros.
11094
11095 * xterm.c (x_font_min_bounds): Moved here from xfaces.c.
11096 (x_compute_min_char_bounds): Formerly min_char_bounds in xfaces.c.
11097 (x_load_font): Use x_compute_min_char_bounds.
11098
11099 * xterm.h (struct x_display_info): New members smallest_char_width
11100 and smallest_font_height.
11101
111021998-04-28 Gerd Moellmann <gerd@gnu.org>
11103
11104 * dispextern.h (PREPARE_FACE_FOR_DISPLAY): Call function with
11105 the same name if GC of face is zero.
11106
11107 * dispextern.h (struct face): Member non_ascii_gc removed.
11108
11109 * xterm.c (x_get_char_font_and_encoding): Return face's font
11110 for characters < 0177 in default face. Prepare face for
11111 display before returning it.
11112 (x_produce_glyphs): Use it->charset.
11113 (x_get_char_font_and_encoding): Simplified.
11114 (x_encode_char): Remove parameter `font'.
11115
11116 * xfaces.c (choose_face_font): If registry from charset symbol
11117 doesn't contain a `-', make it a pattern by appending "*-*".
11118
11119 * xdisp.c (check_iterator_glyph_property): Adjust limit for
11120 glyph_check_pos computation to character boundary.
11121
111221998-04-27 Gerd Moellmann <gerd@gnu.org>
11123
11124 * fontset.h (FONT_INFO_FROM_ID): Return null if ID is invalid.
11125
11126 * xfaces.c (ascii_face_of_lisp_face): Get the id of the realized
11127 ASCII face for a given Lisp face id.
11128
11129 * xdisp.c (set_iterator_stop_pos): Take glyph_check_pos into
11130 account.
11131 (reseat_iterator): Set glyph_check_pos. Handle case where
11132 new position is < original position.
11133 (check_iterator_glyph_property): Handle glyph property in strings.
11134 (next_element_from_string): Call above function.
11135 (next_element_from_display_vector): Handle faces in glyphs.
11136 (get_next_display_element): Set face_id of glyphs for
11137 control chars to zero.
11138
11139 * Makefile.in (term.o): Add dependency on dispextern.h.
11140
11141 * xdisp.c (syms_of_xdisp): Add symbol `glyph'.
11142 (display_line): Handle marginal areas.
11143 (move_iterator_in_display_line_to): Likewise.
11144
11145 * xfaces.c (Finternal_make_lisp_face): Assign Lisp faces an id.
11146
11147 * xfaces.c (face_at_buffer_position): Don't merge with nil
11148 text property.
11149 (face_at_string_position): Ditto.
11150
11151 * dispextern.h (struct display_iterator): Use a stack of saved
11152 values instead of saving check positions etc. individually.
11153
11154 * xdisp.c (set_iterator_to_next): If end of Lisp string reached,
11155 maybe pop the iterator's stack.
11156 (save_iterator_settings): Push a value on iterator's stack.
11157 (get_overlay_strings_at_iterator_position): Use it.
11158 (restore_iterator_settings): Pop the stack.
11159 (set_iterator_to_next_overlay_string): Use it.
11160
11161 * xfaces.c (try_font_list): Use alternative font families.
11162
111631998-04-26 Gerd Moellmann <gerd@gnu.org>
11164
11165 * xfaces.c (Fset_face_font_sort_order): Set the order in which
11166 font selection matches fonts.
11167 (Fface_font_sort_order): Return the font sort order.
11168 (best_matching_font): Find best matching font based on sort order.
11169 (cmp_font_names): Sort by given sort order.
11170
11171 * dispextern.h (struct display_iterator): New member faces_p.
11172 * xdisp.c (init_iterator): Initialize it->faces_p.
11173 (compute_face_at_iterator_string_position): Use it.
11174 (compute_face_at_iterator_position): Use it.
11175 (init_iterator): Use it.
11176 (display_mode_line): Ditto.
11177
11178 * xdisp.c (get_next_display_element): Put code choosing a face
11179 when the charset changes in #ifdef HAVE_FACES.
11180
11181 * dispextern.h (FACE_FOR_CHARSET): Replacement for function
11182 lookup_face_for_charset.
11183
11184 * xfaces.c (free_font_names): Renamed from free_split_font_names.
11185 (free_all_realized_faces): Renamed from remove_all_realized_faces.
11186
111871998-04-25 Gerd Moellmann <gerd@gnu.org>
11188
11189 * xfaces.c (best_matching_font): Return the name of the best
11190 matching font in an array of font_name structures.
11191 (choose_face_font): Use it.
11192 (choose_face_fontset_font): Use it.
11193 (find_best_weight_font): If final font found has same weight as
11194 the font we started with, return the original font because it is a
11195 better match for the resolution of the display.
11196 (find_best_slant_font): Likewise.
11197 (merge_face_vector_with_property): Check more invalid attribute
11198 values.
11199 (lface_suitable_for_charset_p): Replaced by a macro with the same
11200 name in upper-case.
11201
112021998-04-24 Gerd Moellmann <gerd@gnu.org>
11203
11204 * dispextern.h (struct face): Member
11205 fontset_chosen_for_realization_p removed.
11206
11207 * xfaces.c (cache_face): If face->fontset >= 0, add face to the
11208 end of the collision list, so that we find more specific faces
11209 first.
11210 (lookup_face_for_charset): Look up a new face if face->fontset >=
11211 0, and charset != CHARSET_COMPOSITION.
11212
11213 * xfaces.c (split_font_name): Return zero if point size of font
11214 couldn't be computed.
11215 (realize_default_face): Use ASCII font of a fontset to determine
11216 font-related attributes of the default face.
11217 (face_fontset): Return fontset id for face family.
11218 (font_list): Additional parameter font_pattern. If non-nil,
11219 return fonts matching that pattern.
11220
112211998-04-23 Gerd Moellmann <gerd@gnu.org>
11222
11223 * xfaces.c (choose_face_fontset): If new fontset cannot be
11224 constructed, or fontset name cannot be split, return the id of the
11225 standard fontset.
11226
11227 * xterm.c (XTframe_up_to_date): Check that frame is an X frame.
11228 When Emacs starts, it may be called for the initial frame which
11229 isn't an X frame.
11230
11231 * dispextern.h (struct face): New members foreground_defaulted_p,
11232 background_defaulted_p.
11233 (struct face): Members `mask' and `cache' removed.
11234
11235 * xfaces.c (load_color): Set them.
11236 (free_face_colors): Check them.
11237 (xlfd_point_size): Return -1 if resolution or point size of
11238 font unknown.
11239
11240 * xfaces.c (free_font): Removed.
11241 (load_face_font_or_fontset): Renamed from load_font.
11242 (load_face_font_or_fontset): Use message2 instead of signalling.
11243 (load_color): Likewise.
11244 (load_pixmap): Likewise.
11245
11246 * xterm.h (struct x_display_info): Add screen_dpi.
11247 * xterm.c (x_term_init): Initialize it.
11248 * xfaces.c (xlfd_point_size): Use it.
11249 (split_font_name): Compute numeric XLFD_RESY.
11250 (cmp_font_names): Make fonts with an y-resolution more
11251 similar to that of the frame appear first in the result.
11252
11253 * xfaces.c (cache_face): If fontset_chosen_for_realization_p
11254 is set for the face to cache, add it to the end of the collision
11255 list.
11256 (try_font_list): If fonts for given family and registry cannot
11257 be found, first try to keep the registry, and choose a different
11258 family.
11259 (choose_face_font): Allow nfonts == 0.
11260 (try_font_list): Give up if no font matches given registry.
11261
112621998-04-22 Gerd Moellmann <gerd@gnu.org>
11263
11264 * xterm.c (x_get_char_font_and_encoding): Get font_info from
11265 font info id of the face.
11266
11267 * xfaces.c (load_font): Set font_info_id.
11268 (realize_face): Ditto.
11269
11270 * dispextern.h (struct face): Change member font_info to
11271 font_info_id.
11272
11273 * fontset.h (FONT_INFO_ID): Build an ID from a font_info pointer.
11274 (FONT_INFO_FROM_ID): Get a font_info pointer from an ID.
11275
11276 * xdisp.c (extend_face_to_end_of_line): If IT's current charset
11277 isn't ASCII, get the ASCII face before adding a space.
11278 (append_space): Likewise.
11279 (insert_left_trunc_glyphs): Initialize truncate_it's charset
11280 to -1 so that it will compute the right face for the truncation
11281 glyphs.
11282
11283 * xfaces.c (realize_face): Set
11284 face->fontset_chosen_for_realization_p.
11285 (lookup_face_for_charset): If fontset wasn't specified originally
11286 and new charset != CHARSET_COMPOSITION, get a new face for that
11287 charset.
11288
11289 * dispextern.h (struct face): New member
11290 fontset_chosen_for_realization_p_specified_p. Set to 1 when
11291 realize_face has chosen a fontset to display composite characters
11292 for a Lisp face not specifying a fontset.
11293
11294 * xdisp.c (extend_face_to_end_of_line): Move tests for default
11295 face and line already filled here. Don't do anything if current
11296 face hasn't a relief or has a background equal to the frame
11297 background.
11298
11299 * xfaces.c (split_font_name): Additional parameter numeric_p.
11300 Don't compute numeric values if it is non-zero.
11301 (choose_face_fontset): Call split_font_name with numeric_p == 0.
11302 (choose_face_fontset): Print a message if fontset contains a
11303 font whose name cannot be split into fields.
11304
113051998-04-21 Gerd Moellmann <gerd@gnu.org>
11306
11307 * xfaces.c (try_font_list): Try to load a list of fonts,
11308 possibly using less restrictive patterns.
11309 (choose_face_font): Use it.
11310
11311 * xterm.c (x_get_char_font_and_encoding): For charset !=
11312 CHARSET_ASCII use font_info of face if face hasn't a fontset set.
11313
11314 * dispextern.h (struct face): New member font_info.
11315
11316 * xfaces.c (load_font): Use FS_LOAD_FONT to load fonts for faces
11317 specifying a fontset as well as those not having a fontset.
11318 (free_font): Make it empty.
11319 (realize_face): Use changed load_font.
11320
11321 * xterm.c (x_get_char_font_and_encoding): If face doesn't
11322 fit for charset, get the right one.
11323
11324 * xfaces.c (load_font): Take frame and name parameter, return
11325 font.
11326 (free_font): Likewise.
11327 (split_font_name): Compute numeric values for height, swidth etc.
11328 (cmp_font_names): Use them.
11329 (find_best_width_font): Ditto.
11330 (find_best_height_font): Ditto.
11331 (find_best_weight_font): Ditto.
11332 (find_best_slant_font): Ditto.
11333 (lface_hash): Add weight, slant, swidth and relief to hash value.
11334 (lface_equal_p): Make it faster.
11335 (lface_from_symbol): Use assq_no_quit.
11336 (Fnote_default_face_changed): Removed.
11337 (cmp_font_names): Use strcmp instead of xstricmp.
11338 (face_charset_registries): Removed.
11339
113401998-04-20 Gerd Moellmann <gerd@gnu.org>
11341
11342 * frame.h (CHECK_FRAME): Give this macro a statement form.
11343 (CHECK_LIVE_FRAME): Ditto.
11344
11345 * xfaces.c (find_best_width_font): Find the best matching font
11346 for a given width.
11347 (find_best_height_font): Likewise for height.
11348 (find_best_weight_font): Likewise for weight.
11349 (find_best_slant_font): Likewise for slant.
11350 (choose_face_font): Use them.
11351 (get_lface_attributes): Always return frame-local face attrs.
11352 (Finternal_merge_in_global_face): Merge local face with
11353 global face attributes.
11354
11355 * xfaces.c (check_lface_attrs, check_lface): Check consistency of
11356 Lisp face attributes.
11357
113581998-04-19 Gerd Moellmann <gerd@gnu.org>
11359
11360 * xfaces.c (Finternal_set_lisp_face_attribute): Add :bold
11361 and :italic for compatibility.
11362 (Finternal_set_lisp_face_attribute_from_resource): Handle
11363 :bold and :italic. Handle boolean resource values for
11364 :underline and :italic.
11365
11366 * xfns.c (display_x_get_resource): Make it externally visible.
11367
11368 * xfaces.c (lface_from_symbol): Take a frame as parameter.
11369 If that frame is non-null, return the frame-local face.
11370 (Finternal_make_lisp_face): Additional frame argument.
11371 (lface_attributes): Get face attributes from global and frame-local
11372 definitions.
11373 (Finternal_lisp_face_equal_p): Additional frame argument.
11374 (merge_lisp_face_vector_with_property): Ditto.
11375 (Frealize_basic_faces): Removed.
11376 (Finternal_get_lisp_face_attribute): Additional frame argument.
11377 (Finternal_lisp_face_p): Ditto.
11378 (load_color) [MSDOS]: Removed because it isn't clear how
11379 to do this for MS-DOS.
11380
11381 * xfaces.c (lface_from_symbol): Get global face definition
11382 from face-global-alist.
11383
11384 * xfaces.c (Finternal_set_lisp_face_attribute): Allow `t'
11385 as values for :underline and :inverse-video.
11386 (Finternal_set_lisp_face_attribute): Allow nil values.
11387
113881998-04-17 Gerd Moellmann <gerd@gnu.org>
11389
11390 * xfaces.c (Finternal_make_lisp_face): Return Lisp face vector.
11391
11392 * xfaces.c (syms_of_xfaces): Add Vall_faces.
11393 (Finternal_make_lisp_face): Add new face to Vall_faces.
11394
11395 * xdisp.c (echo_area_display): Remove code recomputing faces.
11396 (redisplay_internal): Ditto.
11397 (init_iterator): Do it here.
11398
11399 * xfaces.c (choose_face_font): Check that swidth doesn't change
11400 for subusequent attributes.
11401 (xlfd_point_size): Return int.
11402
11403 * xdisp.c (redisplay_internal, echo_area-display): If realized
11404 faces have been cleared, call recompute_basic_faces.
11405
11406 * xfaces.c (recompute_basic_faces): Free realized faces. Reset
11407 face_attributes_changed_p.
11408 (remove_all_realized_faces): Remove all realized faces on
11409 all frames.
11410 (Finternal_set_lisp_face_attribute): Call remove_all_realized_faces.
11411
11412 * xdisp.c (redisplay_internal): If face attributes have been
11413 changed since the last redisplay, recompute basic faces.
11414 (echo_area_display): Ditto.
11415
11416 * xfaces.c (clear_face_gcs): Renamed from clear_realized_face_cache.
11417
11418 * xfaces.c (min_char_bounds): If face cache not yet present,
11419 don't try to get font dimensions from faces.
11420
11421 * xterm.c (x_frame_mode_line_height): If face cache not present
11422 set, return default height.
11423
11424 * alloc.c (mark_face_cache): Check for null faces. Correct
11425 index bug.
11426
11427 * dispextern.h (struct face): Renamed from struct rface. Member
11428 underline renamed underline_p. Make it a bit-field.
11429
11430 * xfaces.c (init_frame_faces): Allocate face cache.
11431 (free_frame_faces): Free face cache.
11432 (recompute_basic_faces): Realize basic faces only if face cache is
11433 allocated, i.e. after init_frame_faces has been called.
11434
11435 * frame.c (make_frame): Initialze face cache with null.
11436
11437 * xfaces.c (same_size_fonts): Removed.
11438
11439 * xterm.c (x_set_glyph_string_gc): Add post-condition
11440 s->gc != 0.
11441 (x_set_mouse_face_gc): Ditto.
11442 (x_set_mode_line_face_gc): Ditto.
11443
11444 * xfaces.c (realize_default_face): Return int. Value is
11445 zero if frame params don't contain enough information to
11446 realize the default face.
11447 (realize_basic_faces): Ditto.
11448 (init_frame_faces): Realize basic faces.
11449
11450 * xfns.c (x_set_font): First store real font name in frame
11451 parameters, then call recompute_basic_faces.
11452
11453 * xfaces.c (recompute_basic_faces): Call realize_basic_faces.
11454
114551998-04-16 Gerd Moellmann <gerd@gnu.org>
11456
11457 * xfaces.c (syms_of_xfaces): Correct calls to defsubr.
11458
11459 * xfns.c (Fx_face_fixed_p): Removed.
11460 (Fx_list_fonts): Moved to xfaces.c.
11461
11462 * xfaces.c (compute_face_at_buffer_pos): Renamed to
11463 face_at_buffer_position. Parameter charset removed; always
11464 compute face for CHARSET_ASCII.
11465 (face_at_string_position): Renamed from
11466 compute_face_at_string_pos. Parameter charset removed; always
11467 compute for CHARSET_ASCII.
11468 (lookup_face_for_charset): Take frame parameter instead of
11469 face_cache.
11470 (lookup_face): Ditto.
11471 (compute_char_face): Renamed from compute_glyph_face.
11472
11473 * xdisp.c (init_iterator): Initialize charset member.
11474 (reseat_iterator_to_string): Ditto.
11475 (get_charset_at_buffer_position): Determine charset at
11476 buffer position in current_buffer.
11477 (reseat_iterator): Call above function.
11478 (compute_face_at_iterator_position): Call
11479 compute_face_at_buffer_pos.
11480 (compute_face_at_iterator_string_position): Call
11481 compute_face_at_string_pos.
11482 (get_face_from_id): Removed.
11483 (get_face_from_cursor_pos): Call compute_face_at_buffer_pos.
11484 Call get_charset_at_buffer_position.
11485 (reseat_iterator): Determine face if charset at pos differs
11486 from iterator's charset.
11487 (reseat_iterator_to_glyph_pos): Removed.
11488
11489 * xfaces.c (compute_face_at_bufpos): Remove parameter charset.
11490 Determine charset from buffer position.
11491 (compute_string_char_face): Renamed to compute_face_at_string_pos.
11492 (compute_face_at_bufpos): Renamed to compute_face_at_buffer_pos.
11493
11494 * dispextern.h (struct display_iterator): Add member charset.
11495
114961998-04-15 Gerd Moellmann <gerd@gnu.org>
11497
11498 * xfaces.c (compute_char_face): Removed.
11499
11500 * xdisp.c (get_overlay_arrow_glyph_row): Use compute_glyph_face
11501 with new parameter list.
11502
11503 * xfaces.c (region_face): Removed.
11504 (allocate_face): Removed.
11505 (copy_face): Ditto.
11506 (face_eql): Removed.
11507 (intern_face): Removed.
11508 (clear_face_cache): Removed.
11509 (load_font): Ditto.
11510 (unload_font): Ditto.
11511 (load_color): Ditto.
11512 (unload_color): Ditto.
11513 (new_computed_face): Ditto.
11514 (intern_computed_face): Ditto.
11515 (ensure_face_ready): Ditto.
11516 (merge_faces): Ditto.
11517 (compute_base_face): Ditto.
11518 (merge_face_list): Ditto.
11519 (Fmake_face_internal): Removed.
11520 (Fset_face_attribute_internal): Ditto.
11521 (face_name_id_number): Removed.
11522 (Fframe_face_alist): Ditto.
11523 (Fset_frame_face_alist): Ditto.
11524 (Finternal_next_face_id): Ditto.
11525
11526 * xterm.h (struct x_output): Remove computed_faces, and
11527 param_faces. Remove macros accessing them.
11528
11529 * xfaces.c: Entirely new face implementation added.
11530
115311998-04-11 Gerd Moellmann <gerd@gnu.org>
11532
11533 * dispextern.h (struct glyph_pos): Member `bufpos' renamed
11534 `charpos'.
11535
115361998-04-10 Gerd Moellmann <gerd@gnu.org>
11537
11538 * xterm.c (x_scroll_bar_move): Clear only regions not covered by
11539 scroll bar window to reduce flickering. Clear entire height.
11540
11541 * xdisp.c (move_iterator_vertically_backward): Set iterator's
11542 current_x and hpos to zero after moving to previous line
11543 start.
11544
115451998-04-03 Gerd Moellmann <gerd@gnu.org>
11546
11547 * frame.h (FRAME_FACE_CACHE): Access to a frame's face cache.
11548
11549 * xfaces.c (xlfd_point_size): Compute relative point size of
11550 fonts from font and frame resolution.
11551 (sort_fonts): New function to sort fonts, temporarily setting
11552 font_frame to the frame in effect.
11553 (xlfd_point_size): Take additional frame parameter to be able
11554 to get at the display's resolution.
11555
11556 * xterm.c (x_setup_relief_colors): Use WHITE_PIX_DEFAULT and
11557 BLACK_PIX_DEFAULT.
11558 (x_setup_relief_color): Use FRAME_X_SCREEN instead of default
11559 screen of display.
11560
115611998-03-31 Gerd Moellmann <gerd@gnu.org>
11562
11563 * xfaces.c (choose_face_fontset): Instantiate fontsets.
11564
11565 * fontset.h: Add external declarations for Vfontset_alias_alist
11566 and Vglobal_fontset_alist.
11567
11568 * xfaces.c (merge_lisp_face_vector_with_property): Simplified.
11569 (realize_default_face): If frame parameters contain an artificial
11570 font name naming a fontset, set the family of the default face to
11571 the fontset name given by the registry.
11572
11573 * Makefile.in (alloc.o): Add dependency to dispextern.h.
11574
115751998-03-22 Gerd Moellmann <gerd@gnu.org>
11576
11577 * alloc.c (mark_object): Add function prototype. Add cast to
11578 Lisp_Object pointer in call to mark_object for symbol names
11579 because this otherwise gives a warning from gcc 2.8.1.
11580 (mark_face_cache): Mark Lisp objects in realized faces.
11581
115821998-03-19 Gerd Moellmann <gerd@gnu.org>
11583
11584 * frame.h (struct frame): Add member face_cache.
11585
11586 * alloc.c (mark_object): Mark face cache.
11587 (mark_face_cache): Mark Lisp faces in face cache of frame.
11588
11589 * frame.c (make_frame): Initialize face_cache.
11590 (Fdelete_frame): Free it.
11591
115921998-03-18 Gerd Moellmann <gerd@gnu.org>
11593
11594 * xfaces.c: Very first skeleton of functions for face realization,
11595 face merging, face cache etc.
11596
11597 * dispextern.h (struct rface): Realized faces. Will replace
11598 struct face when tested.
11599 (struct face_cache): Realized face caches.
11600
11601 * xdisp.c (init_iterator): Initialize area member of display
11602 iterator.
11603
116041998-03-17 Gerd Moellmann <gerd@gnu.org>
11605
11606 * xterm.c (x_append_glyph): Use it->area to store glyphs.
11607
11608 * dispextern.h (struct display_iterator): New member area.
11609
11610 * xterm.c (note_overwritten_text_cursor): Note when the text
11611 cursor of a window is overwritten.
11612
11613 * xdisp.c (set_cursor_from_row): If PT is not found in the
11614 row, display the cursor at the start of the row.
11615
11616 * dispnew.c (direct_output_forward_char): Call
11617 set_cursor_from_row.
11618
11619 * xdisp.c (setup_iterator_overlay_strings_from_glyph_pos): If
11620 position is not in an overlay string, set iterator's position and
11621 method explicitly so.
11622 (set_cursor_from_row): Correct cursor position calculation.
11623 Make it externally visible.
11624 (redisplay_window): Call set_cursor_from_row so that there is only
11625 one place where the cursor position is calculated from a current
11626 row.
11627
11628 * dispextern.h (struct display_iterator): New member
11629 overlay_strings_at_end_processed_p.
11630
11631 * xdisp.c (check_iterator): Perform sanity checks on
11632 display_iterators.
11633 (next_element_from_buffer): Check for overlay strings at ZV.
11634
116351998-03-16 Gerd Moellmann <gerd@gnu.org>
11636
11637 * buffer.c (init_buffer_once): Add left_margin_width and
11638 right_margin_width to buffer_local_flags.
11639
11640 * dispnew.c (margin_glyphs_to_reserve): Function computing
11641 number of glyphs to reserve for a marginal area.
11642 (adjust_glyph_matrix): Call it.
11643 (adjust_frame_glyphs_for_frame_redisplay): Return if frame
11644 is not alive.
11645
11646 * window.c (Fset_window_margins): Allow floats.
11647
11648 * buffer.c (syms_of_buffer): Add buffer-local variables
11649 left-margin-width and right-margin-width. Add defaults
11650 default-left-margin-width and default-right-margin-width.
11651
11652 * buffer.h (struct buffer): New members left_margin_width
11653 and right_margin_width.
11654
11655 * window.c (Fset_window_margins): Make window the last and
11656 optional argument.
11657
11658 * xterm.c (x_draw_glyphs): Compute x-positions for rows with
11659 flag no_marginal_areas_p differently.
11660 (x_clear_end_of_line): Ditto.
11661 (x_draw_glyph_string_relief): Compute width of relief differently
11662 for rows with flag no_marginal_areas_p.
11663
11664 * dispnew.c (update_window_line): Update marginal areas only
11665 for rows that don't have no_marginal_areas_p set.
11666
11667 * xdisp.c (display_mode_line): Set row's flag no_marginal_areas_p.
11668 (display_menu_bar): Ditto.
11669
11670 * dispextern.h (struct glyph_row): New member no_marginal_areas_p.
11671
11672 * dispnew.c (adjust_glyph_matrix): Compute glyph pointers for
11673 marginal areas in window-based redisplay.
11674
11675 * dispextern.h (struct glyph_matrix): New members
11676 left_margin_glyphs and right_margin_glyphs.
11677
116781998-03-15 Gerd Moellmann <gerd@gnu.org>
11679
11680 * minibuf.c (read_minibuf_unwind): Return Lisp_Object.
11681
11682 * charset.c (non_ascii_char_to_string): Use char type parameters
11683 because the function is used that way from outside. Use unsigned
11684 char internally.
11685
11686 * window.c (change_window_height): Return void.
11687 (make_dummy_parent): Return void.
11688 (init_window_once): Return void.
11689 (syms_of_window): Ditto.
11690 (keys_of_window): Ditto.
11691 (delete_window): Correct return with and without value.
11692
11693 * buffer.c (record_buffer): Return void.
11694
11695 * marker.c (unchain_marker): Return void.
11696
11697 * window.c (unshow_buffer): Return void.
11698 (replace_window): Ditto.
11699 (delete_window): Ditto.
11700
11701 * term.c (delete_glyphs_hook): Void return type.
11702 (ring_bell_hook): Ditto.
11703 (set_terminal_window_hook): Ditto.
11704
11705 * sysdep.c (init_sigio): Return void.
11706
11707 * xterm.c (x_set_window_size): Return void.
11708 (x_calc_absolute_position): Ditto.
11709 (x_set_offset): Ditto.
11710 (x_focus_on_frame): Ditto.
11711 (x_unfocus_frame): Ditto.
11712 (x_make_frame_visible): Ditto.
11713 (x_make_frame_invisible): Ditto.
11714 (x_iconify_frame): Ditto.
11715 (x_destroy_window): Ditto.
11716 (x_wm_set_window_state): Ditto.
11717 (x_wm_set_icon_pixmap): Ditto.
11718 (x_wm_set_icon_position): Ditto.
11719 (x_initialize): Ditto.
11720 (x_error_quitter): Ditto.
11721 (x_destroy_window): Use xfree instead of free.
11722
11723 * keyboard.c (clear_waiting_for_input): Return void.
11724
11725 * xterm.c (x_wm_set_size_hint): Return void.
11726 (x_raise_frame): Ditto.
11727 (refreshicon): Ditto.
11728 (x_error_catcher): Ditto.
11729 (x_clear_errors): Ditto.
11730
11731 * keyboard.c (record_asynch_buffer_change): Return void.
11732
11733