[!HAVE_TERMCAP_H]: Declare tputs, tgetent, tgetflag, tgetnum.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
b8c24556
KR
12000-06-24 Ken Raeburn <raeburn@gnu.org>
2
3 * process.c (Fopen_network_stream): Turn off atimers for duration
4 of call to connect. (Patch from Gerd.)
5
8cf8560b
DL
62000-06-23 Dave Love <fx@gnu.org>
7
511c7541
DL
8 * ralloc.c: Maybe include unistd.h
9
8cf8560b
DL
10 * emacs.c (setgrp): Undefine before defining.
11 (malloc_warning, set_time_zone_rule, index): Prototype.
12
13 * systime.h (EMACS_GET_TIME) [!GETTIMEOFDAY_ONE_ARGUMENT]: Use
14 HAVE_STRUCT_TIMEZONE.
15
16 * s/osf1.h: Move string.h hack here from alpha.h and make it
17 conditional.
18 (C_SWITCH_SYSTEM): Use _OSF_SOURCE, not -BSD, which clashes with
19 _XOPEN_SOURCE.
20 (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist, NSIG): Define.
21 (SOCKLEN_TYPE): Don't define.
22
23 * m/alpha.h: Remove string.h hack.
24
25 * s/osf5-0.h: New file.
26
27 * filelock.c: Use feature tests for fcntl.h, string.h. Don't
28 include time.h, done by systime.h.
29 [__FreeBSD__]: Remove redundant includes.
30
31 * callproc.c: (setpgrp): Undefine before defining.
32 (delete_temp_file): Return Qnil to avoid warning.
33
34 * config.in (HAVE_TERM_H, HAVE_STRUCT_TIMEZONE): Add.
35
36 * xfaces.c: Include fontset.h dependent on HAVE_WINDOW_SYSTEM, not
37 HAVE_X_WINDOWS.
38
39 * fontset.h (free_face_fontset): Renamed from fs_free_face_fontset.
40
41 * composite.h (compose_text): Declare.
42
43 * xterm.c: Don't include sys/types.h unconditionally. Don't
44 protect its inclusion with !USG (following xmenu.c).
45
ea055732
GM
462000-06-23 Gerd Moellmann <gerd@gnu.org>
47
48 * xfns.c (x_create_tip_frame): Initialize frame's colors like
49 in x_create_frame.
50
74b01b80
EZ
512000-06-23 Eli Zaretskii <eliz@is.elta.co.il>
52
53 * coding.c (decode_eol_post_ccl): Special handling for undecided
54 and inconsistent EOL types.
55
64f3a166
GM
562000-06-22 Gerd Moellmann <gerd@gnu.org>
57
16cf31f7
GM
58 * xrdb.c (x_load_resources): Add default resource for scroll bar's
59 trough color and main window's background color.
60
61 * xfns.c (Fx_file_dialog) [HAVE_MOTIF_2_1]: Handle events
62 differently.
63
64 * xterm.h (Xt_app_con): External declaration.
65
66 * widget.c (EmacsFrameRealize): Fix typo.
67
486a103d
GM
68 * widget.c (EmacsFrameRealize): Remove SubstructureRedirectMask.
69
64f3a166
GM
70 * xdisp.c (handle_stop): Initialize it->add_overlay_start to zero.
71 (handle_invisible_prop): Record the start of invisible text in
72 it->add_overlay_start.
73 (struct overlay_entry): Add member `overlay'.
74 (handle_overlay_change): Simplify.
75 (next_overlay_string): After having processed overlay strings at the
76 end of the buffer, record that fact in
77 it->overlay_strings_at_end_processed_p.
78 (compare_overlay_entries): If before- and after-strings come
79 from the same overlay, let before-strings come first.
80 (RECORD_OVERLAY_STRING): Record the overlay that strings come from.
81 (load_overlay_strings): Take it->add_overlay_start into account
82 when adding overlay strings.
83
84 * dispextern.h (struct it): Add member add_overlay_start.
85
bb746ea6
DL
862000-06-22 Dave Love <fx@gnu.org>
87
88 * s/isc3-0.h (C_SWITCH_SYSTEM): Define _XOPEN_SOURCE=500.
89
90 * s/gnu-linux.h (C_SWITCH_SYSTEM): Don't define _XOPEN_SOURCE here.
91
a8f573f3
KH
922000-06-22 Kenichi Handa <handa@etl.go.jp>
93
94 * ccl.c (ccl_driver) <CCL_End>: Decrement stack_idx only when it
95 is greater than 0.
96
9f2bbc92
DL
972000-06-21 Dave Love <fx@gnu.org>
98
99 * Makefile.in (GETLOADAVG_OBJ): Removed -- LIBOBJS does it.
100
3ee5041c
SM
1012000-06-21 Stefan Monnier <monnier@cs.yale.edu>
102
103 * syntax.c (back_comment): Simplify string-parity counting (with
104 the added benefit of handling multiple string-styles as long as
105 they are not intertwined).
106 Jump to the slow code as soon as a comment starter is found in
107 a "string_lossage" position. Fixes the case: " /* " /* " */.
108
4c343001
DL
1092000-06-21 Dave Love <fx@gnu.org>
110
111 * Makefile.in: Use GETLOADAVG_LIBS.
112
113 * config.in: Add HAVE_FCNTL_H, _FILE_OFFSET_BITS,
114 _LARGEFILE_SOURCE, _LARGE_FILES, _XOPEN_SOURCE.
115
e6365855
SM
1162000-06-20 Stefan Monnier <monnier@cs.yale.edu>
117
118 * syntax.c (describe_syntax): Recognize the `n'estable bit.
119 (Fforward_comment, scan_lists):
120 Check the comstyle of single-char comment-starters.
121 (scan_sexps_forward): Don't try to recognize `half comment-enders' if
122 we're just at the beginning of the comment (f.ex with (*) ... (*)).
d355bd8a
SM
123 Check the comstyle of single-char comment-starters.
124 Clarify control-flow around the Scomment case.
e6365855 125
5700d2cc
DL
1262000-06-20 Dave Love <fx@gnu.org>
127
d355bd8a
SM
128 * fns.c (make_hash_table, maybe_resize_hash_table):
129 Cast arg of next_almost_prime.
5700d2cc
DL
130
131 * tparam.c [emacs]: Include lisp.h.
132
133 * termcap.c [emacs]: Test HAVE_FCNTL_H, not USG5. Include lisp.h
134 and unistd.h.
135
4a27bdfb
GM
1362000-06-20 Gerd Moellmann <gerd@gnu.org>
137
a61d762c
GM
138 * keyboard.c (adjust_point_for_property): Check if display
139 property should be treated as intangible by looking at its
140 value.
141
142 * xdisp.c (single_display_prop_intangible_p)
143 (display_prop_intangible_p): New functions.
144
145 * dispextern.h (display_prop_intangible_p): Add prototype.
146
147 * xdisp.c (dump_glyph_row): Show type of glyph->object.
148
4a27bdfb
GM
149 * s/isc4-0.h (sigblock): Redefined to pass a pointer as second
150 argument to sigprocmask.
151
152 * s/sco5.h (sigblock): Redefined to pass a pointer as second
153 argument to sigprocmask.
154
155 * syssignal.h (sigblock, sigunblock) [USG5_4]: Set
156 sigprocmask_set, and pass a pointer to it to sigprocmask.
157
158 * sysdep.c (sigprocmask_set): New variable.
159
160 * fileio.c (make_temp_name): Don't use `%s' in string passed to
161 report_file_error.
162
427ec082
SS
1632000-06-20 Sam Steingold <sds@gnu.org>
164
165 * xrdb.c: Don't declare xmalloc, xrealloc.
166
8972fe79 1672000-06-20 Stefan Monnier <monnier@cs.yale.edu>
8972fe79
SM
168
169 * regex.c (re_match, re_match_2): Protect calls to alloca (0).
170 (re_comp): Cast gettext return value to avoid complaints when
171 !HAVE_LIBINTL.
172
074b6efe
DL
1732000-06-20 Dave Love <fx@gnu.org>
174
f85c008a
DL
175 * m/stride.h, m/mips.h: Don't define HAVE_GETWD,
176 HAVE_GETTIMEOFDAY.
177
5700d2cc 178 * m/ibmrt-aix.h: Don't declare HAVE_GETTIMEOFDAY, HAVE_VFORK.
f85c008a 179
d355bd8a 180 * m/ibmrs6000.h, m/ibmps2-aix.h, m/dpx2.h: Don't declare HAVE_GETWD.
f85c008a
DL
181
182 * m/alpha.h: Don't declare xmalloc, xrealloc.
183
0af4f205
DL
184 * s/ux4800.h: Don't declare GETTIMEOFDAY_ONE_ARGUMENT.
185
186 * s/usg5-4-2.h: Don't declare HAVE_GETWD, VFORK_RETURN_TYPE.
187
188 * s/umips.h: Don't declare HAVE_GETWD, HAVE_GETTIMEOFDAY.
189
190 * s/cxux.h, s/gnu-linux.h, s/iris3-6.h, s/irix3-3.h: Don't declare
191 HAVE_GETWD.
192
074b6efe
DL
193 * keyboard.h (poll_for_input_1): Declare.
194
195 * getloadavg.c: Don't define NLIST_STRUCT (handled by configure).
196
197 * alloc.c (xmalloc, xrealloc, xfree): Define using POINTER_TYPE.
198
199 * doprnt.c: Don't declare xmalloc, xrealloc.
200
201 * lisp.h (x_set_tool_bar_lines, free_frame_xic, compose_text)
202 (getenv, ctime, getwd): Removed.
203 (xmalloc, xrealloc, xfree): Declare using POINTER_TYPE.
204
205 * xterm.h: Remove duplicate prototypes. Declare free_frame_xic,
206 x_set_tool_bar_lines.
207
208 * config.in: Add HAVE_GETWD. Move some definitions above
209 machine/system includes.
210
68a5e97b
KH
2112000-06-20 Kenichi Handa <handa@etl.go.jp>
212
95417e1e
KH
213 * s/bsd386.h (HAVE_GETLOADAVG): Define it as 1.
214
68a5e97b
KH
215 * xfaces.c (font_list): Handle the case that REGISTRY doesn't
216 contain information about ENCODING.
217
218 * fontset.c (FONTSET_ASCII): Use the first element of char table
219 for an ASCII font, not defalt slot.
220 (fontset_ref_via_base): If FONTSET doesn't contain information for
221 C, try the default fontset.
222 (make_fontset): Don't copy the default fontset.
223 (fontset_font_pattern): Likewise.
224 (accumulate_font_info): If ELT is nil, use the corresponding
225 element in the default fontset.
226
3b4fa1b2
DL
2272000-06-19 Dave Love <fx@gnu.org>
228
943e731c
DL
229 * syntax.c (Fparse_partial_sexp): Doc fix.
230
231 * regex.h: Test PROTOTYPES as well as __STDC__.
232
3b4fa1b2
DL
233 * unexalpha.c: Include errno.h, string.h, unistd.h. Don't declare
234 errno, strerror. Put text after #endif in comment.
235
236 * xdisp.c (dump_glyph_matrix): Add `static' to declaration (for
237 pcc).
238
239 * xterm.c (x_frame_of_widget): Likewise.
240
cdf0357b
GM
2412000-06-19 Gerd Moellmann <gerd@gnu.org>
242
243 * abbrev.c (syms_of_abbrev): Set buffer_default's abbrev table
244 to Vfundamental_mode_abbrev_table.
245
246 * alloc.c (mark_object) [GC_CHECK_MARKED_OBJECTS]: Check that no
247 bogus objects are marked. This slows down GC by ~80 percent, but
248 it might be worth trying when debugging GC-related problems.
249 This feature requires conservative stack marking to be enabled.
250
251 * xterm.c (XTread_socket) <KeyPress>: In case XmbLookupString
252 returns XLookupChars, reset `modifiers' to zero.
253
998e9f8c
DL
2542000-06-19 Dave Love <fx@gnu.org>
255
256 * mktime.c: Unprotoized.
257
d1504184
GM
2582000-06-19 Richard Stallman <rms@caffeine.ai.mit.edu>
259
260 * data.c (set_internal): If variable is frame-local,
261 store the new value immediately into the frame parameter alist.
262
140c4ac6
KR
2632000-06-19 Ken Raeburn <raeburn@gnu.org>
264
14358466
KR
265 * xfns.c (jpeg_load): Fetch error-handling data first, then fill
266 in the custom handler pointer.
267
140c4ac6
KR
268 * keyboard.c (follow_key, read_key_sequence): Use XUINT on key
269 value, or checks for CHAR_META can fail when Lisp_Object is a
270 union type.
271 * keymap.c (get_keyelt): Likewise.
272
10d7bf84
KH
2732000-06-19 Kenichi Handa <handa@etl.go.jp>
274
275 * ccl.h (struct ccl_program): New member eol_type.
276 (struct ccl_spec): New member cr_carryover.
277
278 * ccl.c (CCL_WRITE_CHAR): Convert NL according to ccl->eol_type.
279 (setup_ccl_program): Initialize ccl->eol_type to CODING_EOL_LF.
280
281 * coding.c (setup_coding_system) <4>: Reset member `cr_carryover'.
282 (ccl_coding_driver): On encoding, initialize ccl->eol_type.
283 (decode_eol_post_ccl): New function.
284 (decode_coding): Don't detect EOL format here for CCL based coding
285 systems.
286 (decode_coding) <coding_type_ccl>: Handle carryovered CR. Call
287 decode_eol_post_ccl after running the CCL program.
288 (code_convert_region): Don't detect EOL format here for CCL based
289 coding systems.
290 (decode_coding_string): Likewise.
291
52e386c2
KR
2922000-06-18 Ken Raeburn <raeburn@gnu.org>
293
294 * charset.c (update_charset_table): Use XINT on "iso_final_char"
295 when treating it as an integer.
296
297 * coding.h (encode_coding_string): Declare.
298
299 * keyboard.c (read_key_sequence): Use XINT on "pos" when treating
300 it as an integer.
301
302 * keymap.c (Fwhere_is_internal): Rename argument "keymap" to
303 "xkeymap" to avoid shadowing the "enum map_type" value that needs
304 to be passed to get_local_map.
305
306 * sound.c (Fplay_sound): Don't call make_number on
307 Frun_hook_with_args count argument.
308
309 * xterm.c (x_send_scroll_bar_event): Fudge lisp object/integer
310 for lisp objects in X event structure data field, when lisp
311 objects are represented with unions.
312 (x_scroll_bar_to_input_event): Ditto.
313
b357b9d4
KR
3142000-06-16 Ken Raeburn <raeburn@gnu.org>
315
316 * xdisp.c (decode_mode_spec): In "no_value" case, do NUL
37d034d3
KR
317 termination of string. Fix sense of test whether
318 Vline_number_display_limit is an integer.
b357b9d4 319
a871441d
GM
3202000-06-16 Gerd Moellmann <gerd@gnu.org>
321
a9021acd
GM
322 * xfaces.c (syms_of_xfaces) [DEBUG_X_COLORS]: Defsubr dump_colors
323 only if HAVE_X_WINDOWS.
324
6344985d
GM
325 * keymap.c (describe_buffer_bindings): Add `\f\n' in front
326 of titles.
327
427ec082 328 * dispnew.c (update_frame_1): Handle case that cursor vpos is
a871441d
GM
329 out of bounds.
330
228b083e
EZ
3312000-06-15 Eli Zaretskii <eliz@is.elta.co.il>
332
333 * unexec.c (toplevel): Fix last change, so as not to deprive MSDOS
334 of its headers.
335
c25b53a2
KH
3362000-06-15 Kenichi Handa <handa@etl.go.jp>
337
338 * coding.c (decode_coding_emacs_mule): Always set src_base at the
339 start of the while loop.
340
a6981b11
GM
3412000-06-15 Gerd Moellmann <gerd@gnu.org>
342
e9924e52
GM
343 * atimer.c (alarm_signal_handler): Add forward declaration.
344
a6981b11
GM
345 * data.c (set_internal): Remove debug code.
346
25fa6deb
GM
3472000-06-14 Gerd Moellmann <gerd@gnu.org>
348
dce6b995
GM
349 * Makefile.in (bootstrap-temacs): Add `-I../src'.
350
9f817ea4
GM
351 * unexec.c (toplevel) [COFF]: Include coff.h.
352
353 * s/lynxos.h: New file.
354
355 * keymap.c (Fsingle_key_description): Enclose function key and
356 event symbol names in angle brackets.
357
8a4e3c0c
GM
358 * xdisp.c (setup_echo_area_for_printing): Call
359 message_log_maybe_newline if message_buf_print is not set.
360
361 * print.c (printchar, strout): Don't check message_buf_print
427ec082 362 before calling setup_echo_area_for_printing because that
8a4e3c0c
GM
363 function does something useful even when message_buf_print is
364 already set.
365
25fa6deb
GM
366 * xdisp.c (message_truncate_lines, Qmessage_truncate_lines): New
367 variables.
368 (ensure_echo_area_buffers): Initialize echo buffer's
369 truncate lines setting to nil.
370 (with_echo_area_buffer): Don't set the echo buffer's truncate
371 lines setting here.
8a4e3c0c 372 (set_message_1): Set it here instead, based on the value
25fa6deb
GM
373 of message_truncate_lines.
374 (resize_mini_window): Handle case that lines are truncated.
375 (syms_of_xdisp): Initialize Qmessage_truncate_lines. DEFVAR_BOOL
376 message-truncate-lines.
377
378 * keyboard.c (read_char): Bind message-truncate-lines to t
379 while displaying a help-echo.
380
381 * lisp.h (Qmessage_truncate_lines): External declaration.
382
163dcff3
GM
3832000-06-13 Gerd Moellmann <gerd@gnu.org>
384
1681ead6
GM
385 * xdisp.c (Vline_number_display_limit): Renamed from
386 line_number_display_limit.
387 (syms_of_xdisp): Use DEFVAR_LISP for line-number-display-limit.
388 Extend documentation string. Initialize
389 Vline_number_display_limit to nil meaning no limit.
390 (decode_mode_spec): Use Vline_number_display_limit with its new
391 meaning.
392
163dcff3
GM
393 * xterm.c (x_check_font) [GLYPH_DEBUG]: Add prototype.
394
3952000-06-13 Richard Stallman <rms@caffeine.ai.mit.edu>
396
397 * frame.c (Fmodify_frame_parameters): Doc fix.
427ec082 398
163dcff3
GM
399 * xfns.c (x_set_frame_parameters): Comment fix.
400
401 * frame.c (store_frame_param): Call swap_in_global_binding if the
402 variable's current binding was chosen based on this frame.
403
404 * data.c (swap_in_global_binding): New function.
405
a704139d
EZ
4062000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
407
408 * msdos.c (IT_write_glyphs): Don't use CODING_REQUIRE_ENCODING
409 macro, instead AND with CODING_REQUIRE_ENCODING_MASK.
410
9b6610db
EZ
4112000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
412
413 * msdos.h (EMACS_MSDOS_H): Renamed from MSDOS_H_.
414
c68833d2
JR
4152000-06-12 Jason Rumney <jasonr@gnu.org>
416
417 * w32bdf.h (EMACS_W32BDF_H): Renamed from __W32BDF_H__
418
419 * w32.h (EMACS_W32_H): Renamed from _NT_H_
420
421 * w32gui.h (EMACS_W32GUI_H): Renamed from __W32GUI_H__
422
423 * w32inevt.h (EMACS_W32INEVT_H): Renamed from __NTINEVT_H__
424
ed1056b3
GM
4252000-06-12 Gerd Moellmann <gerd@gnu.org>
426
427 * xfaces.c (Fdump_colors) [DEBUG_X_COLORS]: New function.
428 (syms_of_xfaces): Defsubr Sdump_colors.
429 (x_free_colors): Don't treat b&w specially on default visual.
430 (x_free_dpy_colors): New function.
431 (free_face_colors): Don't check visual class; it's done
432 in x_free_colors.
433
434 * xterm.c (x_frame_of_widget): New function.
435 (x_alloc_nearest_color_for_widget): Use it.
436 (x_copy_dpy_color): New function.
437 (x_destroy_window): Free various colors.
438
5050a2ef
KH
4392000-06-12 Kenichi Handa <handa@etl.go.jp>
440
441 * ccl.h (EMACS_CCL_H): Renamed from _CCL_H.
442
443 * charset.h (EMACS_CHARSET_H): Renamed from _CHARSET_H.
444
445 * coding.h (EMASC_CODING_H): Renamed from _CODING_H.
446
447 * composite.h (EMACS_COMPOSITE_H): Renamed from _COMPOSITE_H.
448
449 * fontset.h (EMACS_FONTSET_H): Renamed from _FONTSET_H.
450
fb1b041d
DL
4512000-06-11 Dave Love <fx@gnu.org>
452
453 * systime.h (EMACS_SYSTIME_H): Renamed from _SYSTIME_H.
454
ff96b5f4
EZ
4552000-06-11 Eli Zaretskii <eliz@is.elta.co.il>
456
457 * msdos.h: Don't use _MSDOS_H_ as a symbol, use MSDOS_H_ instead.
458
db8eeecd
GM
4592000-06-11 Gerd Moellmann <gerd@gnu.org>
460
ed1056b3 461 * xmenu.c (xmenu_show): Cast second parameter of lw_popup_menu
db8eeecd
GM
462 to `XEvent *'.
463
49b71c5f
KH
4642000-06-10 Kenichi Handa <handa@etl.go.jp>
465
c479bd55
KH
466 * regex.c (MAKE_CHAR) [!emacs]: Dummy macro for non-Emacs env.
467 (regex_compile): Fix the code for handling the case of single byte
468 char and multibyte char being mixed in a range within [...].
469
ff6a65c2
KH
470 * fileio.c (Finsert_file_contents): Be sure to setup src_multibyte
471 and dst_multibyte members of coding.
472
49b71c5f
KH
473 * charset.c (update_charset_table): Update the table
474 bytes_by_char_head.
475 (init_charset_once): Initialize elements of bytes_by_char_head to
476 1 except for leading codes for private charases.
477
478 * charset.h (CHARSET_8_BIT_GRAPHIC): Define as 0x80.
479 (UNIBYTE_STR_AS_MULTIBYTE_P): Fix for an invalid multibyte
480 sequence.
481
9e80b57d
KR
4822000-06-09 Ken Raeburn <raeburn@gnu.org>
483
484 * xterm.c (x_connection_closed): If dpyinfo is NULL, don't try to
485 access the data it doesn't point to.
486
f83fe4b4
GM
4872000-06-08 Gerd Moellmann <gerd@gnu.org>
488
489 * xterm.c (XTread_socket) <FocusIn>: Queue a FOCUS_IN_EVENT which
db8eeecd 490 will be translated to a switch-frame event when reading the
f83fe4b4
GM
491 event queue. This is necessary because Emacs otherwise won't
492 perform a switch-frame to a new frame until some other event, for
493 example a keystroke event, forces it to do so. This has various
494 effects, one visible being that the cursor of a frame created with
495 C-x 5 2 or switched to with a window manager key binding like
496 A-TAB stays hollow because selected_window isn't on the newly
497 focused frame until the switch-frame is performed.
498
499 * keyboard.c (kbd_buffer_get_event): Handle FOCUS_IN_EVENT by
500 generating a switch-frame event if necessary.
501
502 * termhooks.h (enum event_kind): Add FOCUS_IN_EVENT.
503
504 * xdisp.c (handle_fontified_prop): Don't GCPRO local var `pos';
505 it's an integer.
506
0890801b
KH
5072000-06-08 Kenichi Handa <handa@etl.go.jp>
508
509 * fontset.c (Fset_fontset_font): The arg CHARACTER may be a
510 charset.
511
173cbca8
GM
5122000-06-07 Gerd Moellmann <gerd@gnu.org>
513
3091c2a6
GM
514 * window.c (displayed_window_lines): Take empty lines at
515 the bottom of a window into account.
427ec082 516
f38952fe
GM
517 * window.c (displayed_window_lines): New function.
518 (Fmove_to_window_line): Use displayed_window_lines to determine
519 the number of lines to move, instead of using the window's height.
520
521 * lread.c (readevalloop): If READCHARFUN sets point to ZV, arrange
522 to stop reading, even if the form read sets point to a different
523 value when evaluated.
524
427ec082 525 * xdisp.c (display_line): Fix code deciding in which line to
173cbca8
GM
526 put the cursor.
527
6ba6c818
KH
5282000-06-07 Kenichi Handa <handa@etl.go.jp>
529
530 * fileio.c (e_write): Free composition data if stored in
531 coding->cmp_data.
532
5f1aea9a
GM
5332000-06-06 Gerd Moellmann <gerd@gnu.org>
534
666852af
GM
535 * xdisp.c (display_line): Set row's and iterator's
536 starts_in_middle_of_char_p and ends_in_middle_of_char_p flags.
537 Set cursor even if row ends in the middle of a character.
538 (dump_glyph_row): Print values of new flags.
539 (redisplay_window) <cursor movement in unchanged window>: When
540 point has been moved forward, and PT is at the end of the cursor
541 row, don't place the cursor in the next row if the cursor row ends
542 in the middle of a character or at ZV.
543
544 * dispextern.h (struct it): Add starts_in_middle_of_char_p.
545 (struct glyph_row): Add starts_in_middle_of_char_p and
546 ends_in_middle_of_char_p.
547 (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P): Test row's
548 ends_in_middle_of_char_p flag.
549 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Likewise.
550
d13f3e2e
GM
551 * term.c (append_glyph): Revert change of 2000-06-06.
552
553 * xdisp.c (display_line): Revert change of 2000-06-06. Treat
554 padding glyph not fitting on line as whole character not
555 fitting on line.
556
5f1aea9a
GM
557 * xterm.c (x_produce_glyphs): Don't xassert `it->descent > 0';
558 this isn't true for images with `:ascent 100'.
559
10cda9b0
KH
5602000-06-06 Kenichi Handa <handa@etl.go.jp>
561
ed00559d
KH
562 * buffer.c (Fset_buffer_multibyte): Don't make the current buffer
563 as modified if it is originally unmodified.
564
10cda9b0
KH
565 * term.c (encode_terminal_code): Change the way to check if
566 terminal coding does any conversion.
567 (append_glyph): Set glyph->pixel_width correctly.
568
569 * xdisp.c (display_line): While checking line continuation, pay
570 attention to a padding glyph.
571
1969fae2
GM
5722000-06-05 Gerd Moellmann <gerd@gnu.org>
573
574 * xdisp.c (redisplay_window): Always use set_buffer_internal_1.
575
162ccef4
DL
5762000-06-05 Dave Love <fx@gnu.org>
577
f19f32dd
DL
578 * xdisp.c: Include fontset.h.
579
580 * xfns.c (x_real_positions): Declare tmp_nchildren as unsigned.
581
582 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
583
584 * dispnew.c: Conditionally include term.h.
585
586 * coding.h: Declare code_convert_string_norecord.
587
588 * frame.h (struct frame): Use volatile unconditionally.
589
590 * buffer.h: Remove Vbefore_change_function, Vafter_change_function.
591
592 * xmenu.c (menu_item_selection): Declare volatile unconditionally.
593
594 * systime.h: Protect against multiple inclusion.
595 (timezone) [USG5_4]: Define as time_t.
596
597 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
598 (Foptimize_char_table, make_temp_name): Declare.
599
600 * Makefile.in (xdisp.o): Depend on fontset.h.
601
602 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
603
604 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
605 (Foptimize_char_table, make_temp_name): Declare.
606
427ec082 607 * s/irix4-0.h:
162ccef4
DL
608 * s/irix5-0.h:
609 * s/netbsd.h: Don't define autoconfiscated MATHERR.
610
2082fe81
DL
6112000-06-02 Dave Love <fx@gnu.org>
612
613 * lread.c (_XOPEN_SOURCE, __EXTENSIONS__): Don't define.
614
dcf671d2
GM
6152000-06-02 Gerd Moellmann <gerd@gnu.org>
616
617 * xfaces.c (realize_x_face): When copying BASE_FACE bitwise to the
1969fae2 618 result face, set flags in that face indicating that colors may not
dcf671d2
GM
619 be freed.
620
621 * xterm.c (x_set_mouse_face_gc): If first glyph isn't a character
622 glyph, use the ASCII NUL character to determine the face.
623
d42122a3
DL
6242000-06-02 Dave Love <fx@gnu.org>
625
626 * sysdep.c: Conditionally include stdlib.h, unistd.h.
627 (VFORK_RETURN_TYPE): Remove.
427ec082 628
d42122a3
DL
629 * config.in: Add NO_MATHERR.
630
dd432f16
DL
6312000-06-01 Dave Love <fx@gnu.org>
632
90aa4ea8
DL
633 * cmds.c (internal_self_insert): Don't check
634 Vbefore_change_function, Vafter_change_function.
635
636 * insdel.c (signal_before_change, signal_after_change): Likewise.
637
638 * buffer.c (Vbefore_change_function, Vafter_change_function):
639 Variables and their initializations deleted.
640
2330c9d4
DL
641 * callint.c (Fcall_interactively): Doc fix.
642
dd432f16
DL
643 * terminfo.c (ospeed) [HAVE_SPEED_T]: Don't declare extern.
644
bf9e8804
DL
6452000-05-31 Dave Love <fx@gnu.org>
646
647 * textprop.c: Revert last change -- duplicated.
648
3694b4ab
GM
6492000-05-31 Gerd Moellmann <gerd@gnu.org>
650
651 * dispnew.c (find_glyph_row_slice, swap_glyphs_in_rows): Put
652 in #if 0.
653
654 * lisp.h (eassert) [!ENABLE_CHECKING]: Define as `(void) 0'.
655
f14156cd
JR
6562000-05-31 Jason Rumney <jasonr@gnu.org>
657
8119aab8
JR
658 * search.c (Fre_search_forward, Fre_search_backward)
659 (Fposix_search_backward, Fposix_search_forward): Fix newlines in docs.
660
f14156cd
JR
661 * w32select.c (Fw32_set_clipboard_data): Change QNil to Qnil.
662
4aab9be3
JR
6632000-05-30 Jason Rumney <jasonr@gnu.org>
664
665 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: New macros.
666 [WINDOWSNT]: Add extern for Vw32_system_coding_system.
667
668 * dispextern.h (struct glyph) [WINDOWSNT]: Add w32_font_type
669 member.
670
671 * fileio.c (Fread_file_name) [HAVE_NTGUI]: Use file dialog.
672 (Fread_file_name) [HAVE_NTGUI, USE_MOTIF]: Do not attempt to
673 expand a nil default_filename.
674
675 * keyboard.c (make_lispy_event) [WINDOWS_NT]: Pass a window
676 pointer to glyph_to_pixel_coords, not a frame.
677
678 * makefile.nt (w32fns.obj, w32menu.obj): Add charset.h and
679 coding.h to dependencies.
680
681 * w32bdf.c (w32_load_bdf_font): Initialize font->double_byte_p.
682
683 * w32console.c (glyph_to_pixel_coords): Change first parameter to
684 window pointer to be consistent with w32term.c and xterm.c.
685
686 * w32fns.c: Format and doc changes to bring closer to xfns.c.
687 (VIETNAMESE_CHARSET): Define if not defined in system headers.
688 (Qline_spacing, Qcenter): New variables.
689 (Qw32_charset_*, w32_codepage_for_font): Moved from w32term.c.
690 (x_set_line_spacing): New function.
691 (x_set_frame_parameters): Use FRAME_NEW_WIDTH, FRAME_NEW_HEIGHT
692 macros.
693 (x_specified_cursor_type): New function.
694 (x_set_cursor_type): Use it.
695 (x_set_name, x_set_title): Use ENCODE_SYSTEM to encode titlebar
696 and icon strings.
697 (validate_x_resource_name, x_get_resource_string): Measure lengths
698 of external strings in bytes.
699 (w32_wnd_proc) [WM_MEASURE_ITEM]: Avoid calling
700 GetTextExtentPoint32 with NULL title.
701 (Fx_create_frame): Initialize Qline_spacing.
702 (w32_load_system_font): Initialize font->double_byte_p.
703 (x_to_w32_charset): Use Vw32_charset_info_alist.
704 (Image, busy cursor, tooltip functions): Merged changes from
705 xfns.c. Not yet functional on Windows.
706
707 * w32gui.h (W32FontStruct): Add double_byte_p member.
708
709 * w32inevt.c (NUM_TRANSLATED_MOUSE_BUTTONS): New constant.
710 (emacs_button_translation): Use it.
711 (do_mouse_event): Allow up to 32 mouse buttons by allowing any bit
712 in `mask' to be set.
713
714 * w32menu.c (single_submenu, w32_menu_show): Call ENCODE_SYSTEM on
715 menu strings.
716
717 * w32term.c: Format and doc changes to bring closer to xterm.c.
718 (w32_char_font_type): New enum.
719 (Qw32_charset_*, w32_codepage_for_font): Moved to w32fns.c.
720 (w32_per_char_metric): Use w32_char_font_type instead of unicode_p.
721 (w32_encode_char): New function.
722 (x_encode_char): Removed.
723 (x_get_glyph_and_face_encoding): Use w32_encode_char in place of
724 x_encode_char and w32_font_is_double_byte.
725 (x_produce_image_glyph): Use image_ascent.
726 (x_produce_glyphs): Use new version of w32_per_char_metric and
727 handle NULL return value. Allow extra line spacing.
728 (W32_TEXTOUT): Distinguish between Unicode and DBCS text.
729 (w32_get_glyph_overhangs): Remove unicode_p param. Use
730 w32_font_type member of glyph instead.
731 (x_draw_glyph_string): Draw underline and strike-out for BDF fonts.
732 (fast_find_position): Make sure not to consider rows not visible
733 in the window.
734 (w32_read_socket) [WM_MENUSELECT]: Cannot call
735 w32_menu_display_help with input blocked, as it can abort.
736 (x_display_and_set_cursor): Choose cursor depending
737 on buffer-local value of cursor_type.
738 (x_draw_bar_cursor): Add parameter WIDTH.
739
740 * w32term.h (CP_DEFAULT): Define.
741 (Fx_display_color_p, Fx_display_grayscale_p, image_ascent): Declare.
742
10fc3187
GM
7432000-05-30 Gerd Moellmann <gerd@gnu.org>
744
745 * search.c (Fre_search_forward, Fre_search_backward)
746 (Fposix_search_backward, Fposix_search_forward): Doc fix.
747
d0555360
KH
7482000-05-30 Kenichi Handa <handa@etl.go.jp>
749
750 * coding.c (detect_coding_iso2022): Fix code for checking
751 CODING_CATEGORY_MASK_ISO_8_2.
752
f1ad044f
SM
7532000-05-29 Stefan Monnier <monnier@cs.yale.edu>
754
755 * regex.c (PREFETCH_NOLIMIT): New function.
756 (re_match_2_internal): Use it and adjust the end_match_2 logic.
757
84ec3b4b
GM
7582000-05-29 Gerd Moellmann <gerd@gnu.org>
759
66254a13
GM
760 * syntax.c (find_defun_start): Move test for
761 open_paren_in_column_0_is_defun_start outside of the loop.
762
49e70dec
GM
763 * xdisp.c (redisplay_window): Really switch buffers when
764 displaying mode lines, and temporarily set selected_frame to the
765 frame of the window that's redisplayed.
766
84ec3b4b
GM
767 * xfaces.c (free_realized_faces): Block/unblock input.
768 (free_realized_multibyte_face): Ditto.
769
869a3a14
DL
7702000-05-29 Dave Love <fx@gnu.org>
771
772 * textprop.c (Qkeymap): New variable.
773 (syms_of_textprop): Intern it.
774
775 * keymap.c: Include intervals.h.
776 (Fkey_binding, Fwhere_is_internal): Deal with `keymap' property.
777
778 * Makefile.in (keymap.o): Depend on intervals.h.
779
780 * keyboard.c (menu_bar_items, tool_bar_items)
781 (Fexecute_extended_command): Deal with `keymap' property.
782 (read_key_sequence): Track map from `keymap' property as well as
783 `local_map'.
784
785 * intervals.c (get_local_map): Extra arg to allow looking for
786 `keymap' too.
787
788 * intervals.h (map_property): New enum.
789 (get_local_map): Extra arg using it.
790 (Qkeymap): Declare.
791
84ec3b4b 792 * lisp.h (get_local_map): Don't declare here.
869a3a14 793
89d0c844
KH
7942000-05-29 Kenichi Handa <handa@etl.go.jp>
795
796 * Makefile.in (callproc.o): Depend on composite.h.
797
798 * callproc.c: Include composite.h.
799 (Fcall_process): Handle composition correctly.
800
801 * coding.h (coding_allocate_composition_data): Extern it.
802 (coding_restore_composition): Likewise.
803
804 * coding.c (DECODE_COMPOSITION_START): If coding->cmp_data is not
805 yet allocated, finish decoding with result
806 CODING_FINISH_INSUFFICIENT_CMP.
807 (coding_allocate_composition_data): Make it non-static.
808 (coding_restore_composition): Likewise.
809
797a084a
EZ
8102000-05-29 Eli Zaretskii <eliz@is.elta.co.il>
811
812 * charset.c (syms_of_charset): Revert last change.
813
cf872af5
EZ
8142000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
815
816 * term.c (produce_glyphs): Treat characters from the eight-bit-*
817 charsets as unibyte, with 1-column screen width. Sent by Kenichi
818 Handa.
819
5b1ae051
EZ
8202000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
821
822 * charset.c (syms_of_charset): Set width of character sets
823 eight-bit-control and eight-bit-graphic to 1 column.
824
34ec9ebe
GM
8252000-05-26 Gerd Moellmann <gerd@gnu.org>
826
827 * config.in (HAVE_SPEED_T): New define.
828
829 * sysdep.c, terminfo.c (ospeed) [HAVE_SPEED_T]: Declare as
830 `extern speed_t'.
831
dd854dc2
DL
8322000-05-26 Dave Love <fx@gnu.org>
833
834 * coding.c (shrink_decoding_region): Initialize eol_conversion.
835
836 * data.c (Qsubrp, Qmany, Qunevalled): New variables.
837 (Fsubr_arity): New function.
838 (syms_of_data): Install them.
839
ba9f8f95
KH
8402000-05-26 Kenichi Handa <handa@etl.go.jp>
841
0f3e0672
KH
842 * charset.c (init_charset_once): Set the table bytes_by_char_head
843 correctly.
844
cebefb44
KH
845 * fontset.c (syms_of_fontset): Adjust the font name for ascii of
846 the default fontset to what Emacs uses by default.
0f3e0672
KH
847 (check_registry_encoding): This function deleted.
848 (Fset_fontset_font): Remove the adhoc condition for the default
849 fontset. Allow cons in FONTNAME.
cebefb44 850
0f3e0672
KH
851 * fns.c (map_char_table): Ignore char-table entries for
852 charsets eight-bit-control and eight-bit-graphic.
ba9f8f95 853
7a18af49
KR
8542000-05-25 Ken Raeburn <raeburn@gnu.org>
855
856 * emacs.c (main): Initialize keyboard syms before initializing
857 window code, so face names are available.
858
d2af47df
SM
8592000-05-25 Stefan Monnier <monnier@cs.yale.edu>
860
861 * regex.c (at_begline_loc_p): Also recognize the \\(?:^ case
862 of an anchor at the beginning of a shy-group.
863
fc6a6a4e
GM
8642000-05-25 Gerd Moellmann <gerd@gnu.org>
865
866 * xdisp.c (handle_invisible_prop): Don't try to skip over
867 invisible text if end of text is already reached.
868
005f0d35
DL
8692000-05-25 Dave Love <fx@gnu.org>
870
02513cdd
DL
871 * xdisp.c (Fdump_glyph_matrix): Declare the arg.
872
005f0d35
DL
873 * coding.c (encode_eol): Add null statement after label.
874
89f6ca4e
EZ
8752000-05-25 Eli Zaretskii <eliz@is.elta.co.il>
876
877 * w16select.c (Fw16_set_clipboard_data): Fix the change from
878 2000-05-20.
879
a4e1759e
KH
8802000-05-25 Kenichi Handa <handa@etl.go.jp>
881
882 * ccl.c (ccl_driver): Fix previous change.
883
eacfd7fe
KH
8842000-05-25 Kenichi Handa <handa@etl.go.jp>
885
46ab33a9
KH
886 * coding.c (run_pre_post_conversion_on_str): Set point to the
887 beginning of buffer before calling coding->post_read_conversion.
888 (decode_coding_string): Give correct args to
889 run_pre_post_conversion_on_str.
890 (encode_coding_string): Likewise.
891
eacfd7fe
KH
892 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>
893 <CCL_WriteMultibyteChar2>: Handle charsets eight-bit-control and
894 eight-bit-graphic correctly.
895
f8569325
DL
8962000-05-24 Kenichi HANDA <handa@etl.go.jp>
897
898 * fileio.c (Finsert_file_contents): Even if a file is not found,
899 execute codes for setting up coding system. Call
900 after-insert-file-functions unconditionally.
901
04545643
GM
9022000-05-24 Gerd Moellmann <gerd@gnu.org>
903
904 * callproc.c, emacs.c, sysdep.c (setpgrp): Don't define if USG and
905 BSD_PGRPS are not defined.
906
747d90ea
KH
9072000-05-24 Kenichi Handa <handa@etl.go.jp>
908
909 * charset.c (update_charset_table): Accept nil in LONG_NAME and
910 DESCRIPTION.
911 (syms_of_charset): Avoid building same strings.
912
716e3b88
GM
9132000-05-23 Gerd Moellmann <gerd@gnu.org>
914
915 * lread.c (Fload): Add a comment about the meaning of
916 Vuser_init_file being t.
917
918 * puresize.h (BASE_PURESIZE): Increase to 675000.
919
920 * s/gnu-linux.h (setpgrp): Don't define it here because this
921 prevents compilation on GNU/Linux systems with glib 2.2.
922
923 * callproc.c, emacs.c, sysdep.c (setpgrp) [HAVE_SETPGID]: Define
924 as setpgid.
427ec082 925
9aeb39fa
EZ
9262000-05-23 Eli Zaretskii <eliz@is.elta.co.il>
927
928 * Makefile.in (SOME_MACHINE_LISP): Add disp-table.elc,
929 dos-vars.elc, ccl.elc, and codepage.elc, all loaded by the MS-DOS
930 version.
931 (MSDOS_SUPPORT): Add dos-vars.elc, ccl.elc, and codepage.elc.
932
29ced61b
KH
9332000-05-23 Kenichi Handa <handa@etl.go.jp>
934
0574a2ed
KH
935 * syntax.c (skip_chars): Use FETCH_STRING_CHAR_ADVANCE
936 unconditionally.
937
3d80f24d
KH
938 * msdos.c (IT_write_glyphs): Set coding->src_multibyte to 1.
939
940 * term.c (encode_terminal_code): Set coding->src_multibyte
941 properly.
942
29ced61b
KH
943 * coding.c (encode_eol): Fix a bug of DOS style EOL encoding.
944
d7e00792
KH
9452000-05-22 Kenichi Handa <handa@etl.go.jp>
946
c9d80d38
KH
947 * keyboard.c (read_char): Allow character codes 128..255 to be
948 handled by input-method-function.
949
d7e00792
KH
950 * insdel.c (adjust_markers_for_replace): Fix previous change.
951 (adjust_after_replace): If PREV_TEXT is nil, call
952 adjust_markers_for_insert, not adjust_markers_for_replace.
953
087121cc 9542000-05-20 NIIBE Yutaka <gniibe@mri.co.jp>
427ec082 955
087121cc
GM
956 * s/gnu-linux.h (UNIX98_PTYS) [HAVE_GRANDPT]: Define.
957 (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_OPEN, PTY_TTY_NAME_SPRINTF)
958 [HAVE_GRANDPT]: Define.
959 (C_SWITCH_SYSTEM): Add -D_XOPEN_SOURCE.
960
961 * sysdep.c (setup_pty): Treat case that UNIX98_PTYS is defined
962 like SYSV_PTYS.
963
964 * config.in (HAVE_GRANDPT, HAVE_GETPT): New defines.
965
966 * process.c (toplevel) [UNIX98_PTYS]: Include stdlib.h.
967
c9671f81
KH
9682000-05-20 Kenichi Handa <handa@etl.go.jp>
969
970 The following changes are to handle 8-bit characters in a
971 multibyte buffer/string without facing with byte combining
972 problem. Two new charsets eight-bit-control (for 0x80..0x9F) and
973 eight-bit-graphic (for 0xA0..0xFF) are introduced.
974
975 * Makefile.in (fns.o): Depend on charset.h.
976
977 * alloc.c (Fmake_byte_code): If BYTECODE-STRING is multibyte,
978 convert it to unibyte.
979 (make_string): Use parse_str_as_multibyte, not chars_in_text.
980
981 * buffer.c (advance_to_char_boundary): Don't use DEC_POS to find a
982 apparent char boundary.
983 (Fset_buffer_multibyte): Convert 8-bit characters in the range
984 0x80..0x9F to/from multibyte form.
985
986 * bytecode.c (Fbyte_code): If arg BYTESTR is multibyte, convert it
987 to unibyte.
988
989 * callproc.c (Fcall_process): Always encode an argument string if
990 it is multibyte. Setup src_multibyte and dst_multibyte members of
991 process_coding properly.
ce75fd23 992
c9671f81
KH
993 * category.c (Fmodify_category_entry): Use SPLIT_CHAR, not
994 SPLIT_NON_ASCII_CHAR.
995
996 * ccl.c (CCL_WRITE_CHAR): Be sure to write single byte characters
997 as is.
998 (CCL_MAKE_CHAR): Use MAKE_CHAR, not MAKE_NON_ASCII_CHAR.
999
1000 * charset.c (Qeight_bit_control, Qeight_bit_graphic): New
1001 variables.
1002 (SPLIT_CHARACTER_SEQ): This macro deleted.
1003 (SPLIT_MULTIBYTE_SEQ): Assume that multibyte sequence at STR is
1004 valid.
1005 (CHAR_COMPONENTS_VALID_P): Handle new charsets; eight-bit-control
1006 and eight-bit-graphic.
1007 (char_to_string): Likewise. Signal an error for too large
1008 character code.
1009 (char_printable_p): Return 0 for 8-bit characters.
1010 (update_charset_table): Update iso_charset_table only when a final
1011 character is non-negative.
1012 (find_charset_in_text): Renamed from find_charset_in_str.
1013 Arguments and return value changed. Callers changed.
1014 (Fdefine_charset): Args ISO-FINAL-CHAR and ISO-GRAPHIC-PLANE can
1015 be -1 if CHARSET is used only internally.
1016 (Fmake_char_internal): Handle new charsets; eight-bit-control and
1017 eight-bit-graphic.
1018 (Fcharset_after): Simplified.
1019 (char_valid_p): Use SPLIT_CHAR, not SPLIT_NON_ASCII_CHAR.
1020 (char_bytes): Return 2 for chars of the range 0xA0..0xFF.
1021 (multibyte_chars_in_text): Simplified by assuming there's no
1022 invalid multibyte sequence.
1023 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte,
1024 str_as_unibyte): New functions.
1025 (Fstring): Simpified by assuming that byte combining never
1026 happens.
1027 (init_charset_once): Initialization for
1028 LEADING_CODE_8_BIT_CONTROL.
1029 (syms_of_charset): Intern and staticpro Qeight_bit_control and
1030 Qeight_bit_graphic. Include them in Vcharset_list. Make charsets
1031 eight-bit-control and eight-bit-graphic.
1032
1033 * charset.h (LEADING_CODE_8_BIT_CONTROL, CHARSET_8_BIT_CONTROL,
1034 CHARSET_8_BIT_GRAPHIC): New macros.
1035 (SINGLE_BYTE_CHAR_P): Make it faster by using casting.
1036 (CHARSET_ISO_GRAPHIC_PLANE): Use XINT instead of XFASTINT.
1037 (CHARSET_REVERSE_CHARSET): Likewise.
1038 (CHARSET_VALID_P): Handle new charsets; eight-bit-control and
1039 eight-bit-graphic.
1040 (BYTES_BY_CHAR_HEAD, WIDTH_BY_CHAR_HEAD): Optimize for ASCII.
1041 (CHAR_CHARSET, MAKE_CHAR, SPLIT_CHAR, CHAR_BYTES): Likewise.
1042 (PARSE_MULTIBYTE_SEQ) [BYTE_COMBINING_DEBUG]: Abort if we
1043 encounter an invalid multibyte sequence.
1044 (PARSE_MULTIBYTE_SEQ) [not BYTE_COMBINING_DEBUG]: Assume multibyte
1045 sequence is always valid.
1046 (MAKE_NON_ASCII_CHAR, SPLIT_NON_ASCII_CHAR): These macros Deleted.
1047 (UNIBYTE_STR_AS_MULTIBYTE_P, MULTIBYTE_STR_AS_UNIBYTE_P): New
1048 macros.
1049 (CHAR_STRING): For 8-bit characters, call char_to_string.
1050 (INC_POS) [not BYTE_COMBINING_DEBUG]: Faster version. Assume
1051 multibyte sequence is always valid.
1052 (BUF_INC_POS) [not BYTE_COMBINING_DEBUG]: Likewise.
1053 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte,
1054 str_as_unibyte): Extern them.
1055 (BCOPY_SHORT): Fix a bug.
1056 (CHAR_LEN): This macro deleted. Callers changed to use
1057 CHAR_BYTES.
1058 (FETCH_STRING_CHAR_ADVANCE): Check multibyteness of STRING.
1059 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): New macro.
1060 (FETCH_CHAR_ADVANCE): Check multibyteness of the current buffer.
1061
bd4bde7f 1062 * coding.c (ONE_MORE_BYTE, TWO_MORE_BYTES): Set coding->result to
c9671f81
KH
1063 CODING_FINISH_INSUFFICIENT_SRC if there's not enough source.
1064 (ONE_MORE_CHAR, EMIT_CHAR, EMIT_ONE_BYTE, EMIT_TWO_BYTE,
1065 EMIT_BYTES): New macros.
1066 (THREE_MORE_BYTES, DECODE_CHARACTER_ASCII,
1067 DECODE_CHARACTER_DIMENSION1, DECODE_CHARACTER_DIMENSION2): These
1068 macros deleted.
1069 (CHECK_CODE_RANGE_A0_FF): This macro deleted.
1070 (detect_coding_emacs_mule): Use UNIBYTE_STR_AS_MULTIBYTE_P to
1071 check the validity of multibyte sequence.
1072 (decode_coding_emacs_mule): New function.
1073 (encode_coding_emacs_mule): New macro.
1074 (detect_coding_iso2022): Use ONE_MORE_BYTE to fetch a byte from
1075 the source.
1076 (DECODE_ISO_CHARACTER): Just return a character code.
1077 (DECODE_COMPOSITION_START): Set coding->result instead of result.
1078 (decode_coding_iso2022, decode_coding_sjis_big5, decode_eol): Use
1079 EMIT_CHAR to produced decoded characters. Exit the loop only by
1080 macros ONE_MORE_BYTE or EMIT_CHAR. Don't handle the case of last
1081 block here.
1082 (ENCODE_ISO_CHARACTER): Don't translate character here. Produce
1083 only position codes for an invalid character.
1084 (encode_designation_at_bol): Return new destination pointer. 5th
1085 arg DSTP is changed to DST.
1086 (encode_coding_iso2022, decode_coding_sjis_big5): Get a character
1087 from the source by ONE_MORE_CHAR. Don't handle the case of last
1088 block here.
1089 (DECODE_SJIS_BIG5_CHARACTER, ENCODE_SJIS_BIG5_CHARACTER): These
1090 macros deleted.
1091 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8,
1092 detect_coding_utf_16, detect_coding_ccl): Use ONE_MORE_BYTE and
1093 TWO_MORE_BYTES to fetch a byte from the source.
1094 (encode_eol): Pay attention to coding->src_multibyte.
1095 (detect_coding, detect_eol): Preserve members src_multibyte and
1096 dst_multibyte.
1097 (DECODING_BUFFER_MAG): Return 2 even for coding_type_raw_text.
1098 (encoding_buffer_size): Set magnification to 3 for all coding
1099 systems that require encoding.
1100 (ccl_coding_driver): For decoding, be sure that the result is
1101 valid multibyte sequence.
1102 (decode_coding): Initialize coding->errors and coding->result.
1103 For emacs-mule, call decode_coding_emacs_mule. For no-conversion
1104 and raw-text, always call decode_eol. Handle the case of last
1105 block here. If not coding->dst_multibyte, convert the resulting
1106 sequence to unibyte.
1107 (encode_coding): Initialize coding->errors and coding->result.
1108 For emacs-mule, call encode_coding_emacs_mule. For no-conversion
1109 and raw-text, always call encode_eol. Handle the case of last
1110 block here.
1111 (shrink_decoding_region, shrink_encoding_region): Detect cases
1112 that we can't skip data more rigidly.
1113 (code_convert_region): Setup src_multibyte and dst_multibyte
1114 members of coding. For decoding, if the buffer is multibyte,
1115 convert the source sequence to unibyte in advance. For encoding,
1116 if the buffer is multibyte, convert the resulting sequence to
1117 multibyte afterward.
1118 (run_pre_post_conversion_on_str): New function.
1119 (code_convert_string): Deleted and divided into the following two.
1120 (decode_coding_string, encode_coding_string): New functions.
1121 (code_convert_string1, code_convert_string_norecord): Call one of
1122 above.
1123 (Fdecode_sjis_char, Fdecode_big5_char): Use MAKE_CHAR instead of
1124 MAKE_NON_ASCII_CHAR.
1125 (Fset_terminal_coding_system_internal,
1126 Fset_safe_terminal_coding_system_internal): Setup src_multibyte
1127 and dst_multibyte members.
1128 (init_coding_once): Initialize iso_code_class with new enum
1129 ISO_control_0 and ISO_control_1.
1130
1131 * coding.h (enum iso_code_class_type): Member ISO_control_code is
1132 devided into ISO_control_0 and ISO_control_1.
1133 (struct coding_system): New members src_multibyte, dst_multibyte,
1134 errors, and result. Delete member fake_multibyte.
1135 (CODING_REQUIRE_DECODING): Return 1 if coding->dst_multibyte is
1136 nonzero.
1137 (CODING_REQUIRE_ENCODING): Return 1 if coding->src_multibyte is
1138 nonzero.
1139
1140 * data.c (Faref): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
1141 (Faset): Likewise.
1142
1143 * editfns.c (Fformat): Be sure to convert 8-bit characters to
1144 multibyte form.
1145 (Ftranspose_region) [BYTE_COMBINING_DEBUG]: Abort if byte
1146 combining occurs.
1147 (Ftranspose_region): Delete codes for handling byte combining.
1148
1149 * fileio.c (Finsert_file_contents): Setup src_multibyte and
1150 dst_multibyte members of coding. On handling REPLACE on unibyte
1151 buffer, convert the result of decode_coding to unibyte. On
1152 inserting into a mutibyte buffer, always call code_convert_region.
bd4bde7f 1153 (e_write): Setup coding->src_multibyte according to the
c9671f81
KH
1154 multibyteness of the source (buffer or string).
1155
1156 * fns.c (concat): Handle 8-bit characters correctly.
1157 (Fstring_as_unibyte): Be sure to make all 8-bit characters in
1158 unibyte in the result.
1159 (Fstring_as_multibyte): Be sure to make all 8-bit characters in
1160 valid multibyte form in the result.
1161 (map_char_table): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
1162 (Fbase64_encode_region, Fbase64_encode_string): If base64_encode_1
1163 return -1, signal an error.
1164 (base64_encode_1): New arg MULTIBYTE. Get each character by
1165 CHAR_STRING_AND_LENGTH if MULTIBYTE is nonzero. If a multibyte
1166 character is found, return -1.
1167 (Fbase64_decode_region): Delete codes for handling byte-combining.
1168 Treat each decoded byte as a unibyte character.
1169 (Fbase64_decode_string): Return unibyte string.
1170 (Fcompare_strings, concat, string_byte_to_char): Use
1171 FETCH_STRING_CHAR_ADVANCE_NO_CHECK instead off
1172 FETCH_STRING_CHAR_ADVANCE.
1173 (Fstring_lessp): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
1174 (mapcar1): If SEQ is string, always use FETCH_STRING_CHAR_ADVANCE.
1175
1176 * fontset.c (fontset_ref): Use SPLIT_CHAR instead of
1177 SPLIT_NON_ASCII_CHAR.
1178 (fontset_ref_via_base, fontset_set): Likewise
1179
1180 * insdel.c (adjust_markers_for_record_delete): Deleted.
1181 (adjust_markers_for_insert): Argument changed. Caller changed.
1182 (adjust_markers_for_replace): Likewise.
1183 (ADJUST_CHAR_POS, combine_bytes, byte_combining_error,
1184 CHECK_BYTE_COMBINING_FOR_INSERT): Deleted.
1185 (copy_text): Delete unused local varialbe c_save. For converting
1186 to multibyte, be sure to make all 8-bit characters in valid
1187 multibyte form.
1188 (count_size_as_multibyte): Handle 8-bit characters correctly.
1189 (insert_1_both, insert_from_string_1, insert_from_buffer_1,
1190 adjust_after_replace, replace_range, del_range_2)
1191 [BYTE_COMBINING_DEBUG]: Abort if byte combining occurs.
1192 (insert_1_both, insert_from_string_1, insert_from_buffer_1,
1193 adjust_after_replace, replace_range, del_range_2) Delete codes for
1194 handling byte combining.
1195 (adjust_before_replace): Deleted.
427ec082 1196
c9671f81
KH
1197 * keymap.c (Fsingle_key_description): Use SPLIT_CHAR instead of
1198 SPLIT_NON_ASCII_CHAR.
1199 (describe_vector): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
1200 (Faccessible_keymaps): Use FETCH_STRING_CHAR_ADVANCE
1201 unconditionally.
1202 (Fkey_description): Likewise.
1203
1204 * lread.c (read1): On reading multibyte string, be sure to make
1205 all 8-bit chararacters in valid multibyte form.
1206 (readchar): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
1207
1208 * print.c (print_object): Use FETCH_STRING_CHAR_ADVANCE
1209 unconditionally.
1210
1211 * process.c (Fstart_process): GCPRO current_dir before calling
1212 Ffind_operation_coding_system. Encode arguments here.
1213 (create_process): Don't encode arguments here. Setup
1214 src_multibyte and dst_multibyte members of struct coding.
1215 (read_process_output): Setup src_multibyte and dst_multibyte
1216 members of struct coding. If the output is to multibyte buffer,
1217 always decode the output of the process. Adjust the
1218 representation of 8-bit characters to the multibyteness of the
1219 output.
1220 (send_process): Setup coding->src_multibyte according to the
1221 multibyteness of the source.
1222
1223 * search.c (wordify): Use FETCH_STRING_CHAR_ADVANCE
1224 unconditionally.
1225 (Freplace_match): Use FETCH_STRING_CHAR_ADVANCE and
1226 FETCH_STRING_CHAR_ADVANCE_NO_CHECK appropriately.
1227
1228 * term.c (produce_special_glyphs): Use CHAR_BYTES instead of
1229 CHAR_LEN.
1230
1231 * w16select.c (Fw16_set_clipboard_data): Setup members
1232 src_multibyte and dst_multibyte of coding. Adjusted for the
1233 change for find_charset_in_str.
1234 (Fw16_get_clipboard_data): Likewise.
1235
1236 * w32fns.c (w32_to_x_font): Setup members src_multibyte and
1237 dst_multibyte of coding.
1238 (x_to_w32_font): Likewise.
1239
1240 * w32select.c (Fw32_set_clipboard_data): Setup members
1241 src_multibyte and dst_multibyte of coding. Adjusted for the
1242 change for find_charset_in_str.
1243 (Fw32_get_clipboard_data): Likewise.
1244
1245 * xdisp.c (get_next_display_element): Handle 8-bit characters
1246 correctly.
1247 (next_element_from_display_vector): Use CHAR_BYTES instead of
1248 CHAR_LEN.
1249 (disp_char_vector): Use SPLIT_CHAR instead of
1250 SPLIT_NON_ASCII_CHAR.
1251
1252 * xselect.c (selection_data_to_lisp_data): Setup members
1253 src_multibyte and dst_multibyte of coding. Adjusted for the
1254 change for find_charset_in_str.
1255 (lisp_data_to_selection_data): Likewise.
1256
5f64c9e0
GM
12572000-05-19 Gerd Moellmann <gerd@gnu.org>
1258
2b63d473
GM
1259 * buffer.c (Fbury_buffer): Avoid trouble from burying a killed
1260 buffer.
1261
5f64c9e0
GM
1262 * dispextern.h (Vimage_types): Add extern declaration.
1263
1264 * xdisp.c (Vimage_types): Moved here from xfns.c.
1265 (syms_of_xdisp): Move `image-types' variable here from xfns.c.
1266
1267 * xfns.c (Vimages_types): Moved to xdisp.c.
1268 (syms_of_xfns): Move `image-types' to xdisp.c.
1269
1270 * w32fns.c (Vimage_types): Removed.
1271 (syms_of_w32fns): Remove `image-types'.
1272
813086ea
KH
12732000-05-18 Kenichi Handa <handa@etl.go.jp>
1274
1275 * fns.c (map_char_table): Pay attention to character number of
1276 charset. Check the validity of charset at the first level. For
1277 leaf nodes that has nil value, call C_FUNCTION or FUNCTION with
1278 the default value.
1279
1280 * fontset.c: Include "buffer.h".
1281 (fs_load_font): If the face has fontset, record the face ID in
1282 that fontset.
1283 (Finternal_char_font): New function.
1284 (accumulate_font_info): New function.
1285 (Ffontset_info): Rewritten for the new fontset implementation.
1286 (syms_of_fontset): Register Vdefault_fontset in the first element
1287 of Vfontset_table. Include Vdefault_fontset in
1288 Vfontset_alias_alist. Declare `internal-char-font' as a Lisp
1289 function.
1290
bdaebbf0
DL
12912000-05-16 Dave Love <fx@gnu.org>
1292
1293 * m/iris5d.h: Deleted -- unused.
1294
cb613bb8
GM
12952000-05-16 Gerd Moellmann <gerd@gnu.org>
1296
b15f3b77
GM
1297 * xdisp.c, w32.c, print.c, msdos.c, emacs.c: Use the term
1298 `invalid' instead of `illegal'.
1299
1300 * indent.c (Fmove_to_column): When ending within a tab, insert
1301 spaces first so that markers at the end of the tab get adjusted.
1302
835c1b36
GM
1303 * frame.c (frames_bury_buffer): Don't add a buffer to the frame's
1304 buffer list that wasn't selected in that frame.
1305
cb613bb8
GM
1306 * filelock.c (get_boot_time): To obtain an 8 char file name, which
1307 is needed on mescaline, use a 2 char prefix, and call
1308 make_temp_name with second arg non-zero.
1309
1310 * fileio.c (make_temp_name): New function, extracted from
1311 Fmake_temp_name.
1312 (Fmake_temp_name): Use it.
1313
f685bea9
EZ
13142000-05-15 Eli Zaretskii <eliz@is.elta.co.il>
1315
1316 * window.c (coordinates_in_window): Subtract 1 when computing
1317 right_x.
1318
a1b8d58b
GM
13192000-05-15 Gerd Moellmann <gerd@gnu.org>
1320
1321 * Makefile.in (lisp): Add env.elc.
1322
1323 * callproc.c (Fgetenv_internal): Renamed from Fgetenv.
1324
a265079f
GM
13252000-05-12 Gerd Moellmann <gerd@gnu.org>
1326
1327 * search.c (Freplace_match): Handle case of `\N' in the
1328 replacement when there's no group N.
1329
da4496b6
GM
13302000-05-11 Gerd Moellmann <gerd@gnu.org>
1331
0ace421a
GM
1332 * xdisp.c (add_to_log): Don't pass the terminating NUL byte
1333 of the message to message_dolog.
1334
1172eb8d
GM
1335 * keyboard.c (read_char): Don't clear current message for help
1336 events; let the code handling help events handle this. Change
1337 code detecting help events that should be ignored.
1338
da4496b6
GM
1339 * xdisp.c (handle_single_display_prop): Don't try to set PT if
1340 we're interating over a string.
1341
0623e40f
DL
13422000-05-09 Dave Love <fx@gnu.org>
1343
1344 * fileio.c (Fwrite_region): If APPEND arg is an integer, seek to
1345 that offset before writing. Move gcpro region past call of
1346 Ffile_regular_p.
1347
bae2503b
DL
13482000-05-04 Dave Love <fx@gnu.org>
1349
1350 * buffer.c (syms_of_buffer) [auto-fill-function]: Doc fix.
1351
ec82fb2f
GM
13522000-05-04 Gerd Moellmann <gerd@gnu.org>
1353
1354 * insdel.c (insert_from_buffer_1): Adjust FROM position by number
1355 of inserted characters when BUF equals the current buffer, and PT
1356 is in front of or equal to FROM.
1357
cbf18892
GM
13582000-05-03 Gerd Moellmann <gerd@gnu.org>
1359
4ff40dd0
GM
1360 * xdisp.c (handle_single_display_prop): If display property value
1361 is invalid, or something not supported on the frame, restore
1362 iterator's position to what it was initially. Make sure to return
1363 0 for invalid and unsupported property values.
1364
cbf18892
GM
1365 * xterm.c (x_produce_glyphs) <composite chars>: Handle case
1366 that x_per_char_metric returns null.
1367
1b0672c3
GM
13682000-05-02 Gerd Moellmann <gerd@gnu.org>
1369
576da55d
GM
1370 * xterm.h (struct face): Add forward declaration.
1371 (struct image): Ditto.
1372 (image_ascent): Add prototype.
1373
1374 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
1375 (x_draw_image_relief, x_draw_image_foreground_1): Call function
1376 image_ascent instead of using IMAGE_ASCENT.
1377
1378 * dispextern.h (DEFAULT_IMAGE_HEIGHT): New macro.
1379 (IMAGE_ASCENT): Removed.
1380
1381 * xfns.c (Qcenter): New variable.
1382 (enum image_value_type): Add IMAGE_ASCENT_VALUE.
1383 (parse_image_spec): Handle IMAGE_ASCENT_VALUE.
1384 (image_ascent): New function.
1385 (lookup_image): Recognize `:ascent center'.
1386 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
1387 (tiff_format, gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
1388 (xbm_load): Don't set image's ascent here.
1389 (xbm_image_p, xpm_image_p, pbm_image_p, png_image_p)
1390 (jpeg_image_p, tiff_image_p, gif_image_p, gs_image_p): Don't
1391 check ascent values here.
1392 (Fimagep, Flookup_image [GLYPH_DEBUG]: Removed.
1393 (syms_of_xfns) [GLYPH_DEBUG]: Don't defsubr removed functions.
1394 (syms_of_xfns): Initialize Qcenter.
1395
1b0672c3
GM
1396 * eval.c (Fsignal): If lisp_eval_depth or spepdl_size are near
1397 to the limits, increase the limits.
1398
0d7811ed
KH
13992000-05-01 Kenichi Handa <handa@etl.go.jp>
1400
1401 * fontset.c (fs_load_font): By default, use 0x00..0x7f for ASCII.
1402 Check Vfont_encoding_alist against the full name of the opened
1403 font.
1404
a943a5ca
GM
14052000-04-28 Gerd Moellmann <gerd@gnu.org>
1406
1407 * xdisp.c (make_cursor_line_fully_visible): Handle case of rows
1408 taller than the window.
1409
5dba1e29
KH
14102000-04-28 Kenichi Handa <handa@etl.go.jp>
1411
1412 * xfaces.c (realize_x_face): Fix the argument of the second
1413 xassert. BASE_FACE may not be a face for ASCII.
1414
353964e3
GM
14152000-04-27 Gerd Moellmann <gerd@gnu.org>
1416
c76e04a8
GM
1417 * print.c (print_object): Treat print-length < 0 as nil.
1418
1419 * Makefile.in (termcapobj): Don't use TERMCAP_OBJ.
1420
1421 * s/freebsd.h (TERMCAP_OBJ): Removed.
1422 (LIBS_TERMCAP): Don't define for __FreeBSD_version >= 400000.
1423
1424 * lread.c (read1): Don't treat period followed by certain
1425 characters as symbol start.
1426
1427 * xfns.c (slurp_file): New function.
1428 (xbm_image_p): Handle case of in-memory XBM files.
1429 (xbm_scan): Rewritten to work on memory buffers instead of files.
1430 (xbm_read_bitmap_data): Renamed from xbm_read_bitmap_file_data.
1431 Work on memory buffers instead of files. If DATA is null test
1432 if buffer looks like an in-memory XBM file.
1433 (xbm_load_image): Renamed from xbm_load_image_file. Work on
1434 memory buffers instead of files.
1435 (xbm_file_p): New function.
1436 (xbm_load): Accept :data DATA where DATA is an in-memory XBM file.
1437
353964e3
GM
1438 * lread.c (end_of_file_error): New function.
1439 (read1): Call it instead of signaling `end-of-file' directly.
1440
427ec082 1441 * print.c (print_error_message): Print data of `end-of-file'
353964e3
GM
1442 with Fprinc instead of Fprin1.
1443
24d744ac
KR
14442000-04-26 Ken Raeburn <raeburn@gnu.org>
1445
1446 * window.c (freeze_window_start): Check that minibuffer scroll
1447 window isn't nil before extracting the window structure pointer
1448 from it.
1449
1450 * undo.c (record_delete): If we hit the end of the undo list, stop
1451 picking elements apart.
1452
7464346d
GM
14532000-04-26 Gerd Moellmann <gerd@gnu.org>
1454
1455 * xdisp.c (display_line): If lines are continued, restore
1456 iterator's ascent/descent information to the values before the
1457 first glyph not fitting on the line.
1458
612839b6
GM
14592000-04-25 Gerd Moellmann <gerd@gnu.org>
1460
1461 * xdisp.c (try_window_id) <all changes above window start>: Adjust
1462 positions in glyph matrix. Don't compute new window end
1463 positions.
1464
1465 * dispnew.c (increment_matrix_positions): Renamed from
1466 increment_glyph_matrix_buffer_positions.
1467 (increment_row_positions): Renamed from
1468 increment_glyph_row_buffer_positions.
1469
1470 * dispextern.h: Change names of renamed functions from dispnew.c
1471 in prototypes.
1472
cc181e95
GM
14732000-04-24 Gerd Moellmann <gerd@gnu.org>
1474
abfcc168
GM
1475 * fileio.c (Fdo_auto_save): Create directories for auto-save
1476 list file if necessary.
1477
cc181e95
GM
1478 * xdisp.c (init_iterator): Set iterator's extra_line_spacing
1479 from buffer or frame.
1480 (automatic_hscrolling_p): New variable.
1481 (hscroll_windows): Scroll windows horizontally only if automatic
1482 hscrolling is allowed.
1483 (syms_of_xdisp): New variable `automatic-hscrolling'.
1484
1485 * frame.h (struct frame): Add member extra_line_spacing.
1486
1487 * xfns.c (x_set_line_spacing): New function.
1488 (Fx_create_frame): Set line spacing from resources.
1489 (Qline_spacing): New variable.
1490 (syms_of_xfns): Initialize Qline_spacing.
427ec082 1491
cc181e95
GM
1492 * emacs.c (USAGE2): Add `--line-spacing' and `-lsp'.
1493
1494 * buffer.c (init_buffer_once): Handle extra_line_spacing.
1495 (syms_of_buffer): Add `default-line-spacing' and `line-spacing'.
abfcc168 1496 (reset_buffer): Don't initialize extra2 and extra3. Initialize
cc181e95
GM
1497 extra_line_spacing from default value.
1498 (init_buffer_once): Initialize default value of extra_line_spacing.
1499
1500 * buffer.h (struct buffer): Add extra_line_spacing, remove extra2
1501 and extra3.
1502
1503 * xterm.c (x_produce_glyphs): Remove reference to struct it's
1504 prompt_width. Add extra line spacing.
1505
1506 * term.c (produce_glyphs): Remove reference to struct it's
1507 prompt_width.
1508
1509 * dispextern.h (struct it): Remove member prompt_width, add
1510 extra_line_spacing.
1511
58827478
GM
15122000-04-22 Gerd Moellmann <gerd@gnu.org>
1513
1514 * dispnew.c (update_frame_line): When writing a whole line, make
1515 sure cursor is in the right row afterwards, otherwise a use of
1516 capability `ch' in cmgoto might leave the cursor in the row below.
1517
25a87f42
GM
15182000-04-21 Gerd Moellmann <gerd@gnu.org>
1519
1520 * lisp.h (struct Lisp_Buffer_Cons): Remove.
1521
1522 * keyboard.c (timer_check): Fix typo in comment.
1523
54edf5c2
KH
15242000-04-21 Kenichi Handa <handa@etl.go.jp>
1525
1526 * fontset.c (Fset_fontset_font): Fix docstring. Local variable
1527 name change: ch -> character.
1528
3a64eef5
GM
15292000-04-20 Gerd Moellmann <gerd@gnu.org>
1530
1531 * keyboard.c (echo_message_buffer): New variable.
1532 (echo_now): Set echo_message_buffer to the echo area buffer used
1533 to display the echo.
1534 (cancel_echoing): Reset echo_message_buffer to nil.
1535 (read_char): Code rewritten that handles canceling an echo or
1536 echoing a dash, respectively.
1537
1538 * fileio.c (Ffile_writable_p) [WINDOWSNT]: Return nil if parent
1539 directory doesn't exist.
1540
6142fdcb
DL
15412000-04-19 Dave Love <fx@gnu.org>
1542
1543 * fns.c (syms_of_fns): Defsubr mapc.
a9cacab7
DL
1544 (concat): Don't allow numeric args.
1545 (Fconcat): Doc change.
6142fdcb 1546
ac6b5352
SM
15472000-04-19 Stefan Monnier <monnier@cs.yale.edu>
1548
1549 * regex.c (re_match_2_internal): Don't shorten the strings anymore,
1550 instead define end_match(1|2) more carefully.
1551 Use GET_CHAR_BEFORE_2 for `begline'.
1552
cb9215e4
GM
15532000-04-19 Gerd Moellmann <gerd@gnu.org>
1554
5e3dac3f
GM
1555 * frame.h (SELECTED_FRAME): Change definition to compile cleanly
1556 on 64-bit systems where NULL is defined as `0'.
1557
1558 * xdisp.c (with_echo_area_buffer): Add more `int' parameters for
1559 the `variable argument list' to make it work on Alpha.
1560
cb9215e4
GM
1561 * m/alpha.h (_LP64) [!_LP64]: Define.
1562 (ORDINARY_LINK): Define for NetBSD.
1563
1564 * m/macppc.h (ORDINARY_LINK): Define for NetBSD.
427ec082 1565
f532dca0
DL
15662000-04-19 Dave Love <fx@gnu.org>
1567
c750667e
DL
1568 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Revert 2000-04-14
1569 change.
1570
1571 * Makefile.in (LIBS): Don't use.
1572 (GETLOADAVG_OBJ): Define again.
1573 (otherobj): Add GETLOADAVG_OBJ.
1574
f532dca0
DL
1575 * buffer.c (Fmake_indirect_buffer): Escape newline in doc.
1576
1c7e22fd
GM
15772000-04-18 Gerd Moellmann <gerd@gnu.org>
1578
f6d3257b
GM
1579 * lread.c (read_filtered_event): Cancel and start busy cursor.
1580
427ec082 1581 * xterm.c (x_produce_glyphs) <ASCII chars>: Take into account
1c7e22fd
GM
1582 that the per-character metrics may be null.
1583
e10f64e7
GM
15842000-04-17 Gerd Moellmann <gerd@gnu.org>
1585
0daee095
GM
1586 * buffer.c (clone_per_buffer_values): New function.
1587 (Fmake_indirect_buffer): Add optional argument CLONE. Call
1588 clone_per_buffer_values if CLONE is not nil.
1589
e10f64e7
GM
1590 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
1591
38687d43
DL
15922000-04-16 Dave Love <fx@gnu.org>
1593
1594 * Makefile.in: Remove obsolete localcpp stuff.
1595 (GETLOADAVG_OBJ): Don't define.
1596 (obj): Move LIBOBJS...
1597 (otherobj): ... to here.
1598 (MSDOS_OBJ): Convert to make variable -- preprocessing zapped
1599 whitespace-only lines after the continuation (Irix).
1600
c21c7262
GM
16012000-04-14 Gerd Moellmann <gerd@gnu.org>
1602
1603 * xfns.c (xpm_load) [DEBUG_X_COLORS]: Register colors.
1604
1605 * s/freebsd.h (LD_SWITCH_SYSTEM): Add `-L /usr/local/lib'.
1606
314767c0
DL
16072000-04-14 Dave Love <fx@gnu.org>
1608
1609 * s/aix3-1.h, s/bsd4-2.h, s/bsd4-3.h, s/cxux.h, s/dgux.h, s/gnu.h:
1610 * s/hpux.h, s/iris3-5.h, s/iris3-6.h, s/irix3-3.h, s/rtu.h:
1611 * s/unipl5-0.h, s/unipl5-2.h, s/usg5-0.h, s/usg5-2-2.h, s/usg5-2.h:
1612 * s/usg5-3.h, s/xenix.h, s/umax.h: Don't define autoconfiscated
1613 NLIST_STRUCT.
1614
1615 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Don't define
1616 autoconfiscated HAVE_GETLOADAVG.
1617
1618 * s/nextstep.h, s/sco4.h, s/sco5.h: Don't define autoconfiscated
1619 BROKEN_MKTIME.
1620
a2522dca
GM
16212000-04-14 Gerd Moellmann <gerd@gnu.org>
1622
1623 * filelock.c (MAKE_LOCK_NAME): Allocate 2 more bytes.
1624 (fill_in_lock_file_name): Avoid existing files that aren't
1625 links.
1626
33744b5d
DL
16272000-04-14 Dave Love <fx@gnu.org>
1628
c21c7262 1629 * Makefile.in (LIBS, LIBOBJS): New variable.
33744b5d
DL
1630 (INTERVAL_SRC): Convert to make variable.
1631 (INTERVAL_OBJ, MKTIME_OBJ, FLOAT_SUPPORT, FACE_SUPPORT)
1632 (HAVE_X_WINDOWS, OBJECTS_SYSTEM): Remove.
1633 (obj): Substitute INTERVAL_OBJ, add MKTIME_OBJ, GETLOADAVG_OBJ and
1634 add LIBOBJS.
1635 (SOME_MACHINE_OBJECTS): Remove interval stuff.
1636 (lisp): Substitute FACE_SUPPORT, FLOAT_SUP.
1637 (shortlisp): Add facemenu, float-sup, frame.
1638 (SOME_MACHINE_LISP): Remove them from here.
1639 (LIBES): Change unused LDLIBS to autoconf LIBS.
1640
1641 * config.in: Add BROKEN_MKTIME, NLIST_STRUCT, NLIST_NAME_UNION.
1642
9d3d5916
KH
16432000-04-14 Kenichi Handa <handa@etl.go.jp>
1644
1645 * composite.c (update_compositions): If FROM and TO are not in a
1646 valid range, do nothing.
1647
198e3c7a
GM
16482000-04-13 Gerd Moellmann <gerd@gnu.org>
1649
1650 * tparam.c (tparam1): Abort when encountering an unknown
1651 `%'-specifier.
1652
1653 * s/freebsd.h (TERMCAP_OBJ) [__FreeBSD__ >= 4]: Define as
1654 terminfo.o.
1655
1656 * Makefile.in (termcapobj) [LIBS_TERMCAP && TERMCAP_OBJ]: Define
1657 as TERMCAP_OBJ.
1658
055a28c9
EZ
16592000-04-13 Eli Zaretskii <eliz@is.elta.co.il>
1660
1661 * fileio.c (a_write): Remove redundant semi-colons.
1662 (e_write): Return -1 if failed to write all the data.
1663 This fixes the changes made at 1999-12-15.
1664
f5c75033
DL
16652000-04-12 Dave Love <fx@gnu.org>
1666
1667 * fns.c (mapcar1): Test for null vals to support mapc.
1668 (Fmapc): New function.
1669
0c3cfc51
EZ
16702000-04-12 Eli Zaretskii <eliz@is.elta.co.il>
1671
1672 * msdos.c (NUM_MOUSE_BUTTONS): Define.
1673 (IT_frame_up_to_date): Support the buffer local value of
1674 cursor-type, if defined.
1675
33465a31
DL
16762000-04-10 Dave Love <fx@gnu.org>
1677
1678 * editfns.c (preceding-char, following-char): Doc fix.
1679
6ed56568
KR
16802000-04-10 Ken Raeburn <raeburn@gnu.org>
1681
1682 * Makefile.in (temacs): Revert 2000-03-12 change.
1683
7cf80d4e
JR
16842000-04-10 Jason Rumney <jasonr@gnu.org>
1685
1686 * xfaces.c (realize_face): Change FRAME_X_P to FRAME_WINDOW_P.
1687
34f3f342
GM
16882000-04-10 Gerd Moellmann <gerd@gnu.org>
1689
1a1b1895
GM
1690 * xdisp.c (setup_echo_area_for_printing): Choose an echo
1691 area buffer, if it's not set up yet.
1692
34f3f342
GM
1693 * indent.c (compute_motion): Set immediate_quit.
1694
be0dbdab
GM
16952000-04-09 Gerd Moellmann <gerd@gnu.org>
1696
c45be9ac
GM
1697 * xfaces.c (tty_suppress_bold_inverse_default_colors_p): New
1698 variable.
1699 (realize_tty_face): Suppress boldness if colors are the inverse of
1700 the default colors, and tty_suppress_bold_inverse_default_colors_p
1701 is set.
1702 (Ftty_suppress_bold_inverse_default_colors): New function.
1703 (syms_of_xfaces): Defsubr it.
1704
be0dbdab
GM
1705 * buffer.c (Frestore_buffer_modified_p): New function.
1706 (syms_of_buffer): Defsubr it.
1707
e8413c3b
KR
17082000-04-08 Ken Raeburn <raeburn@gnu.org>
1709
87f67317
KR
1710 * charset.c (Fmake_char_internal): CHAR_COMPONENTS_VALID_P takes a
1711 charset id (int) argument, not a charset (Lisp_Object).
1712
e8413c3b
KR
1713 * coding.h (code_convert_string): Declare.
1714 * coding.c (code_convert_string_norecord): Pass an int, not a lisp
1715 object, as the fourth argument to code_convert_string.
1716
1717 * fontset.c (make_fontset_for_ascii_face): Use XINT on return
1718 value.
1719 (Fset_fontset_font): Use EQ to compare lisp objects.
1720
7c752c80
KR
17212000-04-05 Ken Raeburn <raeburn@gnu.org>
1722
c0333abc
KR
1723 * intervals.h (SET_INTERVAL_PARENT): Use INT_LISPLIKE to test for
1724 a pointer that looks like a lisp object.
1725 (SET_INTERVAL_OBJECT): Don't explicitly compare the object with
1726 zero, instead see whether it's an integer object, since they can't
1727 have intervals.
1728 (GET_INTERVAL_OBJECT): Simply assign to the destination.
1729
7c752c80
KR
1730 * dispnew.c (allocate_matrices_for_frame_redisplay,
1731 direct_output_forward_char): Use X(U)INT and make_number as needed
1732 to convert between (unsigned) int values and lisp integers.
1733 * keyboard.c (read_key_sequence): Likewise.
1734 * lread.c (substitute_object_recurse): Likewise.
1735 * fns.c (concat, hash_lookup, hash_remove): Likewise.
1736 * minibuf.c (do_completion, Fminibuffer_complete_word,
1737 Fminibuffer_completion_help): Likewise.
1738 * term.c (produce_special_glyphs): Likewise.
1739
1740 * fileio.c (Fwrite_region): Use EQ when comparing lisp objects.
1741 * print.c (print_preprocess, print_object): Likewise.
1742
1743 * search.c (compile_pattern): Use NILP when checking for nil.
1744
74e49b38
KR
1745 * lisp.h (make_number) [!NO_UNION_TYPE && __GNUC__ >= 2 &&
1746 __OPTIMIZE__]: Provide a GNU C macro version that handles
1747 lisp-object unions.
1748 (XSET) [!NO_UNION_TYPE]: Set the value field first, then the type
1749 field, to better cope with ENABLE_CHECKING and calls that modify a
1750 Lisp_Object using its old value.
1751
685e5ed2
GM
17522000-04-04 Gerd Moellmann <gerd@gnu.org>
1753
c407c570
GM
1754 * window.c (compare_window_configurations): Signal an error
1755 if parameters C1 or C2 aren't window configurations.
1756
685e5ed2
GM
1757 * bytecode.c (Fbyte_code): Add a bunch of BEFORE_POTENTIAL_GC/
1758 AFTER_POTENTIAL_GC calls around calls to functions that can
1759 signal an error and thus invoke the debugger.
1760
587a49ab
GM
17612000-04-03 Gerd Moellmann <gerd@gnu.org>
1762
62f20204
GM
1763 * fns.c (Fbase64_decode_region, Fbase64_decode_string): Signal
1764 an error if decoding fails.
1765
587a49ab
GM
1766 * keyboard.c (lispy_mouse_names): Variable removed.
1767 (Vlispy_mouse_stem): New variable.
1768 (syms_of_keyboard): Initialize Vlispy_mouse_stem.
1769 (make_lispy_event) <mouse_click, scroll_bar_click>: Don't abort
1770 for any mouse button number. Increase size of mouse_syms and
1771 button_down_location as needed. Call modify_event_symbol with
1772 different arguments.
1773 (make_lispy_event) <scroll_bar_click> [USE_TOOLKIT_SCROLL_BARS]:
1774 Call modify_event_symbol with different arguments.
1775 (make_lispy_event) <w32_scroll_bar_click> [WINDOWSNT]: Don't abort
1776 for any button number. Call modify_event_symbol with different
1777 arguments.
1778 (modify_event_symbol): Rename NAME_ALIST to NAME_ALIST_OR_STEM.
1779 Accept a string for NAME_ALIST_OR_STEM.
1780
1781 * lisp.h (larger_vector): Add prototype.
1782
1783 * fns.c (larger_vector): Make externally visible.
1784
1785 * termhooks.h (NUM_MOUSE_BUTTONS): Removed.
1786
2d1675e4
SM
17872000-04-02 Stefan Monnier <monnier@cs.yale.edu>
1788
1789 * regex.c (PTR_TO_OFFSET) [!emacs]: Remove.
1790 (RE_MULTIBYTE_P, RE_STRING_CHAR_AND_LENGTH): New macros.
1791 (GET_CHAR_BEFORE_2): Moved from charset.h plus fixed minor bug when
1792 we are between str1 and str2.
1793 (MAX_MULTIBYTE_LENGTH, CHAR_STRING) [!emacs]: Provide trivial default.
1794 (PATFETCH): Use `TRANSLATE'.
1795 (PATFETCH_RAW): Fetch multibyte char if applicable.
1796 (PATUNFETCH): Remove.
1797 (regex_compile): Rely on PATFETCH to do most of the multibyte magic.
1798 When writing a char, write it directly into the pattern buffer rather
1799 than going needlessly through a temp char-array.
1800 (re_match_2_internal): Similarly, rely on RE_STRING_CHAR to do the
1801 multibyte magic and remove the useless `#ifdef emacs'.
1802 (bcmp_translate): Don't compare as multibyte chars when in a unibyte
1803 buffer.
1804
1805 * regex.h (struct re_pattern_buffer): Make field `multibyte'
1806 conditional on `emacs'.
1807
1808 * charset.h (GET_CHAR_BEFORE_2): Moved to regex.c.
1809
cc2d8c6b
KR
18102000-04-01 Ken Raeburn <raeburn@gnu.org>
1811
1812 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P): Expand
1813 non-union-type versions of XMARK and friends here, because XMARK
1814 and friends won't work on an integer field if NO_UNION_TYPE is not
1815 defined.
1816 (make_number): Define as a function if it's not defined as a
1817 macro.
1818
09654086
KR
1819 * composite.c (run_composite_function): Use NILP when checking for
1820 nil.
1821 (syms_of_composite): Delete local var NARGS, pass an int as first
1822 argument to Fmake_hash_table.
1823
2387b382
KR
1824 * editfns.c (text_property_stickiness): Use NILP to test
1825 Lisp_Object boolean value.
1826 (Fmessage_or_box): Don't use NILP to test int variable.
c01fbf95
KR
1827 (Fformat): Use a temporary variable to avoid ENABLE_CHECKING
1828 problems reading from and changing the same lisp value in an
1829 XSETSTRING call.
1830
27660e89
GM
18312000-04-01 Gerd Moellmann <gerd@gnu.org>
1832
1833 * term.c (TN_no_color_video): New variable.
1834 (term_init): Intitialize TN_no_color_video.
1835 (enum no_color_bit): New enumeration.
1836 (MAY_USE_WITH_COLORS_P): New macro.
1837 (turn_on_face): Use it to determine if attributes may be used
1838 combined with colors.
1839
3578db3c
KR
18402000-04-01 Ken Raeburn <raeburn@gnu.org>
1841
1842 * window.c (CURBEG, CURSIZE): Don't overload lisp object lvalues
1843 with int lvalues via casts; instead, just yield lisp object
1844 lvalues.
1845 (enlarge_window): Variable sizep now points to Lisp_Object. Use
1846 proper accessor macros.
1847 (shrink_window_lowest_first): w->top is Lisp_Object; use XINT.
1848 (grow_mini_window): Fix typo getting int value of root->height.
1849
6fc556fd
KR
1850 * xdisp.c (compute_string_pos): Fix order of arguments to
1851 string_pos_nchars_ahead.
1852 (handle_fontified_prop, add_to_log): Pass int, not Lisp_Object, as
1853 count arg to variable-arg routines like Frun_hook_with_args and
1854 Fformat.
587a49ab
GM
1855 (back_to_previous_visible_line_start)
1856 (build_desired_tool_bar_string): Pass Lisp_Object, not int, to
6fc556fd
KR
1857 fixed-arg routines like Fget_char_property and Fmake_string.
1858 (reconsider_clip_changes): Use XINT when comparing integer lisp
1859 objects, or passing them as int arguments.
587a49ab
GM
1860 (mark_window_display_accurate, insert_left_trunc_glyphs)
1861 (append_space, extend_face_to_end_of_line): Use make_number when
6fc556fd
KR
1862 storing or passing integer values as lisp objects.
1863 (set_cursor_from_row, highlight_trailing_whitespace): Use
1864 INTEGERP, not implicit test against zero, for glyph object.
1865 (try_window_id): Don't use make_number when we want an int value.
1866
1867 * xfaces.c (xlfd_symbolic_value): Make last argument a
1868 Lisp_Object, to be consistent with callers.
1869 (Fbitmap_spec_p): Use XINT to get numeric value of height.
1870 (lface_hash): Apply XFASTINT to lisp values before folding in.
1871
1872 * xfns.c (Fx_show_tip): Use make_number to get lisp objects to
1873 fill in window width and height. Pass an int, not a lisp object,
1874 as first arg to Finsert.
1875
6e7b2457
GM
18762000-04-01 Gerd Moellmann <gerd@gnu.org>
1877
610d841e
GM
1878 * xfaces.c (realize_basic_faces): Block input while realizing
1879 the faces.
1880
6e7b2457
GM
1881 * keyboard.c (lispy_mouse_names): Add additional mouse names.
1882
1883 * termhooks.h (NUM_MOUSE_BUTTONS): Increase to 15.
1884
aa110c0c
GM
18852000-03-31 Gerd Moellmann <gerd@gnu.org>
1886
1887 * xterm.c (x_produce_glyphs): When displaying unibyte text
610d841e 1888 or ASCII, handle case that per-char metric is null.
aa110c0c 1889
8801a864
KR
18902000-03-30 Ken Raeburn <raeburn@gnu.org>
1891
c6129d7e
KR
1892 * lisp.h (NO_UNION_TYPE) [ENABLE_CHECKING]: Undef.
1893
8801a864
KR
1894 * lisp.h (XCONS, XSTRING, XSYMBOL, XFLOAT, XPROCESS, XWINDOW,
1895 XSUBR, XBUFFER): Verify correct object type before returning
1896 pointer, using eassert.
1897 * frame.h (XFRAME): Likewise.
1898
1899 * buffer.c (Frename_buffer, Fset_buffer_multibyte,
1900 swap_out_buffer_local_variables, Fmove_overlay): Don't apply
1901 XSYMBOL, XBUFFER, etc, to values that may be nil or of the wrong
1902 type.
1903 * data.c (set_internal): Likewise.
1904 * dispextern.h (WINDOW_WANTS_MODELINE_P,
1905 WINDOW_WANTS_HEADER_LINE_P): Likewise.
1906 * fileio.c (auto_save_1): Likewise.
1907 * insdel.c (check_markers): Likewise.
1908 * marker.c (buf_charpos_to_bytepos, unchain_marker): Likewise.
1909 * undo.c (record_insert): Likewise.
1910 * vmsproc.c (child_sig): Likewise.
1911 * window.c (unshow_buffer, window_loop): Likewise.
1912 * xterm.c (x_erase_phys_cursor): Likewise.
1913
8e7af858
GM
19142000-03-30 Gerd Moellmann <gerd@gnu.org>
1915
1916 * xfns.c (free_image_cache): Free the cache structure itself
1917 last, after all its members have been freed.
1918
1919 * lisp.h (xstrdup): Add prototype.
1920
1921 * alloc.c (xstrdup): Moved here from xfaces.c.
1922 (allocating_for_lisp): Variable removed.
1923 (lisp_malloc): Block input around the calls to malloc and
1924 mem_insert.
1925
1926 * xfaces.c (realize_tty_face): Use find_symbol_value instead
1927 of Fsymbol_value.
1928 (xstrdup): Moved to alloc.c.
1929
e0b8c689
KR
19302000-03-29 Ken Raeburn <raeburn@gnu.org>
1931
b96f9fb7
KR
1932 * scroll.c (CHECK_BOUNDS): Renamed from CHECK.
1933
1934 * emacs.c (main): Fix sense of no-loadup test.
1935
e0b8c689
KR
1936 * config.in (ENABLE_CHECKING): Undef.
1937
1938 * lisp.h (struct interval): Replace "parent" field with a union of
1939 interval pointer and Lisp_Object; add new bitfield to use as
1940 discriminant. Change other flag fields to bitfields.
1941 (CHECK): New macro for consistency checking. If ENABLE_CHECKING
1942 is defined and the supplied test fails, print a message and
1943 abort.
1944 (eassert): New macro. Use CHECK to provide an assert-like
1945 facility.
1946
1947 * intervals.h (NULL_INTERVAL_P): Now applies only to real interval
1948 pointers; abort if the value looks like a lisp object.
1949 (NULL_INTERVAL_P, NULL_PARENT, HAS_PARENT, HAS_OBJECT, SET_PARENT,
1950 SET_OBJECT, INTERVAL_PARENT, GET_INTERVAL_OBJECT, COPY_PARENT):
1951 Modify for new interval parent definition.
1952
1953 * alloc.c (mark_interval_tree, MARK_INTERVAL_TREE,
1954 UNMARK_BALANCE_INTERVALS): Update references that need an
1955 addressable lisp object in the interval structure.
1956 (die): New function.
1957 (suppress_checking): New variable.
1958
1959 * intervals.c (interval_start_pos): Just return 0 if there's no
1960 parent object.
1961
f83c5440
GM
19622000-03-29 Gerd Moellmann <gerd@gnu.org>
1963
1964 * lread.c (read1): Accept `.' (period) as symbol start like in CL
1965 and earlier Emacs versions.
1966
1967 * keyboard.c (Ftop_level): Cancel busy-cursor.
1968
1969 * eval.c (call_debugger): Cancel busy-cursor.
1970
fdce64ff
KH
19712000-03-29 Kenichi Handa <handa@etl.go.jp>
1972
1973 * search.c (Freplace_match): Adjust multibyteness of the current
1974 buffer and NEWTEXT. Free allocated memory before signaling an
1975 error.
1976
f6a3f532
SM
19772000-03-28 Stefan Monnier <monnier@cs.yale.edu>
1978
1979 * regex.c (analyse_first): New function obtained by ripping out most
1980 of re_compile_fastmap and generalizing it a little bit so that it
1981 can also just return whether a given (sub)pattern can match the empty
1982 string or not.
1983 (regex_compile): Use `analyse_first' to decide whether the loop-check
1984 needs to be done or not for *, +, *? and +? (the loop check is costly
1985 for non-greedy repetition).
1986 (re_compile_fastmap): Delegate the actual work to `analyse_first'.
1987
e9b309ac
DL
19882000-03-28 Dave Love <fx@gnu.org>
1989
bb15bd9a
DL
1990 * s/gnu-linux.h (GC_SETJMP_WORKS): Define for i386, sparc, m68k,
1991 alpha.
1992
e9b309ac
DL
1993 * alloc.c: Include stdio.h. Test STDC_HEADERS, not __STDC__.
1994
ed0767d8
SM
19952000-03-27 Stefan Monnier <monnier@cs.yale.edu>
1996
1997 * regex.c (REGEX_FREE_STACK, RESET_FAIL_STACK): Make them usable as
1998 an expression.
1999 (enum re_opcode_t): Update description of succeed_n.
2000 (PATFETCH): Always define.
2001 (regex_compile): Use lookahead rather than PATUNFETCH (for repetition
2002 operators, char classes, shy-groups and intervals).
2003 Optimize special cases of intervals so as to only use succeed_n and
2004 jump_n when really needed.
2005 (re_compile_fastmap): Simplify handling of jump_n and succeed_n now
2006 that we don't have to handle the special cases any more.
2007 Simplify on_failure_jump handling as well.
2008
e11e7e46
JR
20092000-03-28 Jason Rumney <jasonr@gnu.org>
2010
2011 * lread.c (Fload): Move safe_p definition to above #ifdef DOS_NT.
2012
88faab89
GM
20132000-03-27 Gerd Moellmann <gerd@gnu.org>
2014
182ff242
GM
2015 * s/freebsd.h (GC_SETJMP_WORKS): Define.
2016
2017 * s/msdos.h (GC_SETJMP_WORKS): Define.
427ec082 2018
182ff242
GM
2019 * alloc.c (mark_maybe_object): New function.
2020 (mark_memory): Use it.
2021 (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK): New macros.
2022 (setjmp_tested_p, longjmp_done): New variables.
2023 (test_setjmp): New function.
2024 (mark_stack) [!GC_SETJMP_WORKS]: Call test_setjmp.
2025 (init_alloc): Initialize setjmp_tested_p and longjmp_done.
2026
c1005d06
GM
2027 * xdisp.c (face_before_or_after_it_pos): Pass multibyteness
2028 to DEC_TEXT_POS and INC_TEXT_POS.
2029
2030 * dispnew.c (direct_output_for_insert): Use DEC_TEXT_POS
2031 with parameter MULTIBYTE_P.
2032
427ec082 2033 * dispextern.h (INC_TEXT_POS, DEC_TEXT_POS): Add parameter
c1005d06
GM
2034 MULTIBYTE_P.
2035
7439e5b9 2036 * editfns.c (Fsubst_char_in_region): Don't use INC_POS in unibyte
182ff242
GM
2037 buffers because it looks for multibyte character byte sequences
2038 which don't exist in unibyte text.
7439e5b9 2039
d9c545da
GM
2040 * xterm.h (x_specified_cursor_type, x_copy_color): Add prototypes.
2041
11fd416e 2042 * xfaces.c (register_color, unregister_color, unregister_colors)
d9c545da
GM
2043 [DEBUG_X_COLORS]: New functions.
2044 (x_free_colors) [DEBUG_X_COLORS]: Unregister colors.
2045
2046 * xfns.c (x_set_cursor_color): Get color reference counts right.
2047
2048 * xterm.c (x_copy_color): New function.
2049 (x_alloc_nearest_color) [DEBUG_X_COLORS]: Call register_color.
2050
2051 * buffer.h (MAX_PER_BUFFER_VARS): Renamed from MAX_BUFFER_LOCAL_VARS.
2052 (PER_BUFFER_VAR_OFFSET): Renamed from BUFFER_LOCAL_VAR_OFFSET.
2053 (PER_BUFFER_VAR_IDX): Renamed from BUFFER_LOCAL_VAR_IDX.
2054 (PER_BUFFER_VALUE_P): Renamed from BUFFER_HAS_LOCAL_VALUE_P.
2055 (SET_PER_BUFFER_VALUE_P): Renamed from SET_BUFFER_HAS_LOCAL_VALUE_P.
2056 (PER_BUFFER_IDX): Renamed from BUFFER_LOCAL_IDX.
2057 (PER_BUFFER_DEFAULT): Renamed from BUFFER_LOCAL_DEFAULT_VALUE.
2058 (PER_BUFFER_VALUE): Renamed from BUFFER_LOCAL_VALUE.
2059 (PER_BUFFER_SYMBOL): Renamed from BUFFER_LOCAL_SYMBOL.
2060 (PER_BUFFER_TYPE): Renamed from BUFFER_LOCAL_TYPE.
2061
11fd416e
GM
2062 * category.c, data.c, syntax.c, print.c, lread.c: Use new macro
2063 names for handling per-buffer variables.
d9c545da
GM
2064
2065 * buffer.c (buffer_permanent_local_flags): Use MAX_PER_BUFFER_VARS
2066 instead of MAX_BUFFER_LOCAL_VARS.
2067 (last_per_buffer_idx): Renamed from max_buffer_local_idx.
2068
2069 * xfaces.c (lookup_face): Don't assert FACE_SUITABLE_FOR_CHAR_P.
2070
88faab89
GM
2071 * xfns.c (x_specified_cursor_type): New function.
2072 (x_set_cursor_type): Use it.
2073
2074 * buffer.h (struct buffer): Add cursor_type.
2075
d80f42b7
SM
20762000-03-26 Stefan Monnier <monnier@cs.yale.edu>
2077
2078 * regex.c (enum re_opcode_t): New opcode on_failure_jump_nastyloop.
427ec082 2079 (print_partial_compiled_pattern, re_compile_fastmap): Handle new
88faab89 2080 opcode.
d80f42b7
SM
2081 (regex_compile): Use on_failure_jump_nastyloop for non-greedy loops.
2082 (re_match_2_internal): Add code for on_failure_jump_nastyloop when
2083 executing it as well as when popping it off the stack to find infinite
2084 loops in non-greedy repetition operators.
2085
89e80928
GM
20862000-03-26 Gerd Moellmann <gerd@gnu.org>
2087
3d4ff2dd
GM
2088 * doc.c (Qfunction_documentation): New variable.
2089 (syms_of_doc): Initialize Qfunction_documentation.
2090 (Fdocumentation): If FUNCTION is a symbol with non-nil
2091 `function-documentation' property, return a documentation derived
2092 from that.
2093
bd96bd79
GM
2094 * buffer.c (syms_of_buffer): Add default-cursor-type.
2095 (init_buffer_once): Don't let cursor_type have a local value
2096 in every buffer.
2097
19d1bc27
GM
2098 * xterm.c (x_display_and_set_cursor): Choose cursor depending
2099 on buffer-local value of cursor_type.
2100 (x_draw_bar_cursor): Add parameter WIDTH.
2101
2102 * buffer.c (reset_buffer): Initialize buffer's cursor_type.
2103 (init_buffer_once): Set default cursor_type value to t.
2104 Mark cursor_type as local everywhere.
2105 (syms_of_buffer): New per-buffer variable cursor-type.
2106
89e80928
GM
2107 * buffer.h (struct buffer): Remove member local_var_flags,
2108 add local_flags.
2109 (MAX_BUFFER_LOCAL_VARS): New macro.
2110 (BUFFER_LOCAL_VAR_OFFSET, BUFFER_LOCAL_VAR_IDX)
2111 (BUFFER_HAS_LOCAL_VALUE_P, SET_BUFFER_HAS_LOCAL_VALUE_P)
2112 (BUFFER_LOCAL_IDX, BUFFER_LOCAL_DEFAULT_VALUE, BUFFER_LOCAL_VALUE)
2113 (BUFFER_LOCAL_SYMBOL, BUFFER_LOCAL_TYPE): New macros.
2114
2115 * print.c (print_object): Use new macros for per-buffer
2116 variables.
2117
2118 * category.c (Fset_category_table): Use new macros for per-buffer
2119 variables.
2120
2121 * buffer.c (buffer_permanent_local_flags): Make a char array.
2122 (max_buffer_local_idx): New variable.
2123 (reset_buffer_local_variables, Fbuffer_local_variables): Rewritten
2124 for new handling of per-buffer variables.
2125 (buffer_slot_type_mismatch): Use new macros for per-buffer vars.
2126 (init_buffer_once): Initialize per-buffer vars differently.
2127 Set max_buffer_local_idx.
2128
2129 * syntax.c (Fset_syntax_table): Use new macros for per-buffer
2130 variables.
2131
2132 * lread.c (defvar_per_buffer): Use new macros for per-buffer
2133 variables.
2134
2135 * data.c (do_symval_forwarding, store_symval_forwarding)
2136 (find_symbol_value, set_internal, default_value, Fset_default)
2137 (Fkill_local_variable, Flocal_variable_p): Use new macros for
2138 per-buffer variables.
2139
2140 * Makefile.in (bootstrap-emacs): Use `mv -f' instead of `mv'.
2141
9a0dd3dc
GM
21422000-03-24 Gerd Moellmann <gerd@gnu.org>
2143
b68c375f
GM
2144 * xterm.c (x_term_init): Unblock input around call1 of
2145 Qvendor_specific_keysyms.
2146
9a0dd3dc
GM
2147 * syntax.c (open_paren_in_column_0_is_defun_start): New variable.
2148 (find_defun_start): Consider an open parenthesis in column 0
2149 a defun start only if open_paren_in_column_0_is_defun_start is set.
2150 (syms_of_syntax): New variable open-paren-in-column-0-is-defun-start.
2151
7973e637
SM
21522000-03-24 Stefan Monnier <monnier@cs.yale.edu>
2153
2154 * eval.c (Fautoload): Add entry in load-history (if after dump).
2155 * lread.c (load-history): Update docstring.
2156
39210e90
GM
21572000-03-24 Gerd Moellmann <gerd@gnu.org>
2158
2159 * indent.c (Fvertical_motion): Always use the current buffer.
2160 Temporarily change the window's buffer, if necessary.
2161
72db3ab5
GM
21622000-03-23 Gerd Moellmann <gerd@gnu.org>
2163
2164 * xterm.c (fast_find_position): Make sure not to consider rows
2165 not visible in the window.
2166
990b2375
SM
21672000-03-22 Stefan Monnier <monnier@cs.yale.edu>
2168
2169 * regex.c (enum syntaxcode): Provide default for non-Emacs.
2170 (re_compile_fastmap, re_match_2_internal): Undo Dave's previous fix.
2171
ff4df011
JR
21722000-03-22 Jason Rumney <jasonr@gnu.org>
2173
2174 * w32menu.c (single_submenu): Set help string to NULL if none.
2175 (w32_menu_show): Set help string correctly.
2176 (add-menu-item): Set help string in MIIM_DATA for menu item.
2177 Load SetMenuItemInfoA explicitly.
2178 (w32_menu_display_help): New function.
427ec082 2179
ff4df011
JR
2180 * w32fns.c (w32_wnd_proc): Handle WM_MENUSELECT message.
2181 (QCdata): Moved to xdisp.c.
2182
2183 * w32term.c (w32_read_socket): Handle WM_MENUSELECT message.
2184 (Vw32_charset_to_codepage_alist): Removed.
2185 (Vw32_charset_info_alist): New variable.
2186 (Qw32_charset_[ansi, default, symbol, shiftjis, hangul, gb2312,
2187 chinesebig5, oem, easteurope, turkish, baltic, russian, arabic,
2188 greek, hebrew, thai, johab, mac, unicode]): New symbols.
2189 (x_produce_glyphs): Remove out of date #ifdef 0'd section. Replace
2190 with TODO comment.
2191 (w32_codepage_for_font): Use Vw32_charset_info_alist.
2192 (syms_of_w32term): Remove Vw32_charset_to_codepage_alist.
2193 Define Vw32_charset_info_alist and w32_charset symbols.
2194
21952000-03-22 Jason Rumney <jasonr@gnu.org>
2196
2197 * makefile.nt (w32bdf.obj): Update dependencies.
2198
2199 * w32bdf.c: Include frame.h and dispextern.h before fontset.h.
2200
2201 * w32fns.c: Include fontset.h after dispextern.h.
2202 (Fx_create_frame): Do not create fontset.
2203 (w32_load_system_font): Doc fix.
2204 (Fx_close_connection): Free full_name if it is not shared.
2205
2206 * w32term.c: Include fontset.h after dispextern.h.
2207 (x_get_glyph_face_and_encoding): New parameter two_byte_p. Callers
2208 updated.
2209 (w32_per_char_metric): If PCM is invalid, delete and return NULL.
2210 (x_get_char_and_face_encoding): Use FACE_FOR_CHAR to get face_id.
2211 (w32_font_is_double_byte): New function, needs body.
2212 (x_append_glyph): Set glyph->glyph_not_available_p.
2213 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
2214 it->charset. If it->multibyte_p is zero and it->c is a multibyte
2215 character, convert it to a unibyte character.
2216 (struct glyph_string): Delete member `charset'.
2217 (W32_TEXTOUT): Temporarily remove charset_dim until another way of
2218 calculating it is found.
2219 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
2220 the case that per char metric is not available correctly.
2221 (x_fill_glyph_string): Handle the case that the specific glyph is
2222 not available correctly.
2223 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
2224 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
2225 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
2226 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
2227 fontset. Don't call FS_LOAD_FONT.
2228
439d5cb4
KR
22292000-03-22 Ken Raeburn <raeburn@gnu.org>
2230
2231 * intervals.h (NULL_INTERVAL): Cast to INTERVAL type.
2232 (INT_LISPLIKE): New macro.
2233 (NULL_INTERVAL_P): Use it.
2234 (INTERVAL_HAS_PARENT, INTERVAL_HAS_OBJECT, SET_INTERVAL_PARENT,
2235 SET_INTERVAL_OBJECT, INTERVAL_PARENT, COPY_INTERVAL_PARENT,
2236 GET_INTERVAL_OBJECT, INTERVAL_PARENT_OR_NULL): New macros.
2237
2238 * alloc.c (make_interval, gc_sweep): Use new macros; eliminate all
2239 explicit references to "parent" field of struct interval and
2240 associated unclean type conversions.
2241 * intervals.c (create_root_interval, root_interval, rotate_right,
2242 rotate_left, balance_possible_root_interval, split_interval_right,
2243 split_interval_left, interval_start_pos, find_interval,
2244 next_interval, previous_interval, update_interval,
2245 adjust_intervals_for_insertion, delete_node, delete_interval,
2246 adjust_intervals_for_deletion, merge_interval_right,
2247 merge_interval_left, reproduce_tree, graft_intervals_into_buffer,
2248 copy_intervals_to_string): Likewise.
2249 * intervals.h (AM_LEFT_CHILD, AM_RIGHT_CHILD, RESET_INTERVAL):
2250 Likewise.
2251 * syntax.c (update_syntax_table): Likewise.
2252
2253 * intervals.c (reproduce_tree_obj): New function, like
2254 reproduce_tree but takes a Lisp_Object for the parent. Declare
2255 with prototype.
2256 (graft_intervals_into_buffer): Use it when appropriate.
2257 (reproduce_tree): Declare with prototype.
2258 (balance_possible_root_interval): Check that the parent is a lisp
2259 object before trying to examine its type.
2260
ee1c5b21
GM
22612000-03-22 Gerd Moellmann <gerd@gnu.org>
2262
2263 * xfaces.c (lface_same_font_attributes_p): Compare font attributes
2264 as strings only if both are known to be strings.
2265
2266 * s/openbsd.h (LIBS_TERMCAP): Undef.
2267
1fb352e0
SM
22682000-03-21 Stefan Monnier <monnier@cs.yale.edu>
2269
2270 * regex.c (CHAR_CHARSET, CHARSET_LEADING_CODE_BASE): Add default
2271 definitions for non-Emacs compilation.
2272 (enum re_opcode_t): Remove (not)wordchar and move (not)syntaxspec
2273 outside of `#ifdef emacs'.
2274 (print_partial_compiled_pattern): Update.
2275 (regex_compile): Use (not)syntaxspec(Sword) instead of (not)wordchar.
2276 (re_compile_fastmap): Merge handling of charset and charset_not (for
2277 emacs and non-emacs compilation as well).
2278 Similarly for (not)categoryspec and (not)syntaxspec.
2279 Don't use the fastmap when reaching `anychar' since the added
2280 complexity is not justified.
2281 (re_match_2_internal): Merge (not)wordchar (emacs and non-emacs)
2282 and (not)syntaxspec. Merge (not)categoryspec.
2283
fdaa1f77
KH
22842000-03-22 Kenichi Handa <handa@etl.go.jp>
2285
ff1a0d8e
KH
2286 * dispextern.h [!HAVE_WINDOW_SYSTEM] (FACE_SUITABLE_FOR_CHAR_P,
2287 FACE_FOR_CHAR): Define them differently for the configuration of
2288 --without-x.
fdaa1f77 2289
d152fb46
DL
22902000-03-21 Dave Love <fx@gnu.org>
2291
2292 * fontset.c (Fset_fontset_font, Ffontset_font): Fix newlines in
2293 doc string.
2294
d2cafc8c
GM
22952000-03-21 Gerd Moellmann <gerd@gnu.org>
2296
2297 * xfaces.c (check_lface_attrs) [GLYPH_DEBUG]: Fix syntax error.
2298 (lface_fully_specified_p): Don't check contents of
2299 LFACE_FONT_INDEX because that attribute is optional.
2300 (realize_x_face): Remove now unwarranted xassert.
2301
9111d4b5
KH
23022000-03-21 Kenichi HANDA <handa@etl.go.jp>
2303
2304 The following changes are to make font selection based on
2305 characters, not charset. In addition, they recover fontset
2306 facilities while utilizing the new font selection mechanism.
2307
6c4bfdc0
KH
2308 * Makefile.in (fontset.o): Depend on dispextern.h.
2309
2310 * alloc.c (mark_face_cache): Don't mark face->registry.
2311
9111d4b5
KH
2312 * dispextern.h (struct glyph): New member glyph_not_available_p.
2313 Use 22 bits for face_id.
2314 (enum lface_attribute_index): Add LFACE_FONT_INDEX.
2315 (struct face): Delete member registry, new member ascii_face.
2316 (FACE_SUITABLE_FOR_CHAR_P): Renamed from
2317 FACE_SUITABLE_FOR_CHARSET_P. Caller changed.
2318 (FACE_FOR_CHAR): Renamed from FACE_FOR_CHARSET. Caller changed.
2319 (struct it): Delete member charset, new member
2320 glyph_not_available_p.
2321
2322 * fontset.h (FONT_NOT_OPENED, FONT_NOT_FOUND): Macros removed.
2323 (struct fontset_info, struct fontset_data): Structs removed.
2324 (allloc_fontset_data, free_fontset_data, fs_regiser_fontset,
2325 Vglobale_fontset_alist, font_idx_temp): Externs removed.
2326 (fs_load_font, fs_query_fontset): Adjusted for new argument.
2327 (fs_free_face_fontset, fontset_font_pattern,
2328 face_suitable_for_char_p, face_for_char,
2329 make_fontset_for_ascii_face): Extern them.
2330 (FS_LOAD_FONT): Adjusted for the change of fontset implementation.
2331 (FS_LOAD_FACE_FONT): New macro.
2332
2333 * fontset.c: All codes rewritten or adjusted for the change of
2334 fontset implementation. Now fontset is represented by char table.
2335 (Vglobal_fontset_alist, font_idx_temp, my_strcasetbl): Variables
2336 removed.
2337 (my_strcasecmp): Function removed.
2338 (Vfontset_table, next_fontset_id, Vdefault_fontset): New
2339 variables.
2340 (AREF, ASIZE): New macros.
2341 (FONTSET_FROM_ID, FONTSET_ID, FONTSET_NAME, FONTSET_FRAME,
2342 FONTSET_ASCII, FONTSET_BASE, BASE_FONTSET_P, FONTSET_REF,
2343 FONTSET_REF_VIA_BASE, FONTSET_SET): New macros.
2344 (fontset_ref, fontset_ref_via_base, fontset_set, make_fontset,
2345 fontset_id_valid_p, font_family_registry, fontset_name,
2346 fontset_ascii, free_face_fontset, face_suitable_for_char_p,
2347 face_for_char, make_fontset_for_ascii_face, fontset_font_pattern):
2348 New functions.
2349 (fs_load_font): New arg FACE. Caller changed.
2350 (fs_query_fontset): Argument changed. Caller changed.
2351 (Fquery_fontset): call fs_query_fontset.
2352 (fs_register_fontset, alloc_fontset_data, free_fontset_data):
2353 Functions removed.
2354 (clear_fontset_elements, check_registry_encoding,
2355 check_fontset_name): New functions.
2356 (syms_of_fontset): Set char-table-extra-slots property of fontset
2357 to 3. Staticpro and initialize Vfontset_table and
2358 Vdefault_fontset. Defsubr fontset_font and fontset_list.
2359
2360 * frame.h (struct frame): Member `fontset_data' removed.
2361 (FRAME_FONTSET_DATA): Macro removed.
2362
2363 * frame.c (make_frame): Don't allocate f->fontset_data.
2364 (Fdelete_frame): Don't free f->fontset_data.
2365
6c4bfdc0
KH
2366 * msdos.c (XMenuActivate): Args to lookup_derived_face changed.
2367
9111d4b5
KH
2368 * xdisp.c (charset_at_position): Function removed.
2369 (init_iterator): Don't set member charset of struct `it'.
2370 (handle_face_prop, reseat_to_string, set_iterator_to_next,
2371 next_element_from_display_vector, insert_left_trunc_glyphs):
2372 Likewise.
2373 (face_before_or_after_it_pos): Call FACE_FOR_CHAR, not
2374 FACE_FOR_CHARSET.
2375 (get_next_display_element, append_space,
2376 extend_face_to_end_of_line): Likewise.
2377
2378 * xfaces.c (Qx_charset_registry, Vface_default_registry):
2379 Variables removed.
2380 (clear_font_table, frame_update_line_height, load_face_font):
2381 Adjusted for the change of fontset implementation.
2382 (load_face_fontset_font): Function removed.
2383 (pixel_point_size): New function.
2384 (font_list): Argument type changed. Caller changed.
2385 (LFACE_FONT): New macro.
2386 (check_lface_attrs): Check attr[LFACE_FONT_INDEX].
2387 (set_lface_from_font_name): Type of arg FONTNAME is changed to
2388 Lisp_Object. Determine the font name by actually loading a font
2389 by the specified pattern. Set LFACE_FONT (lface) to the specified
2390 pattern. Even if a font is not found, don't try alternatives.
2391 (Finternal_set_lisp_face_attribute): Handle `font' slot in lface.
2392 (set_font_frame_param): If `font' is specified in lface, use it.
2393 (Finternal_get_lisp_face_attribute): Handle `font' slot in lface.
2394 (lface_same_font_attributes_p): Likewise.
2395 (make_realized_face): Arguent changed. Caller changed. Set
2396 face->ascii_face to face itself.
2397 (free_realized_face): Free face->fontset if face is for ASCII.
2398 (face_suitable_for_iso8859_1_p, face_suitable_for_charset_p,
2399 deduce_unibyte_registry, x_charset_registry): Functions removed.
2400 (free_realized_multibyte_face): New function.
2401 (lookup_face, lookup_named_face, lookup_derived_face): Argument
2402 changed. Caller changed.
2403 (try_font_list): Argument type changed.
2404 (face_fontset): Check `font' slot of ATTRS, not `family' slot.
2405 (choose_face_font): Argument changed. Handle fontset properly.
2406 (choose_face_fontset_font): Function removed.
2407 (realize_default_face, realize_named_face): Don't remove the
2408 former face here.
2409 (realize_face): Argument changed. Caller changed. Remove face
2410 with the arg former_face_id in advance. Load font for the new
2411 face.
2412 (realize_x_face): Argument changed. Caller changed. For a
2413 multibyte character, share fontset with base_face. For a single
2414 byte character, make a new realized fontset. Don't load a font
2415 here.
2416 (realize_tty_face): Argument changed. Caller changed.
2417 (compute_char_face): Call FACE_FOR_CHAR, not FACE_FOR_CHARSET.
2418 (face_at_buffer_position): Don't check multibyte_p for returning
2419 DEFAULT_FACE_ID.
2420 (face_at_string_position): Call FACE_SUITABLE_FOR_CHAR_P, not
2421 FACE_SUITABLE_FOR_CHARSET_P.
2422 (syms_of_xfaces): Remove code for Qx_charset_registry and
2423 Vface_default_registry.
2424
6c4bfdc0
KH
2425 * xterm.c: Include fontset.h after dispextern.h. Undo the changes
2426 related to PER_CHAR_METRIC done by Gerd on 2000-03-03.
9111d4b5
KH
2427 (x_per_char_metric): Don't try FONT->default_char. Even if
2428 pcm->width is zero, glyph bits may exist.
2429 (x_encode_char): Always initialize char2b->byte1.
2430 (x_get_char_face_and_encoding): Call FACE_FOR_CHAR to get face_id.
2431 (x_get_glyph_face_and_encoding): New arg two_byte_p. Caller
2432 changed.
2433 (x_append_glyph): Set glyph->glyph_not_available_p.
2434 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
2435 it->charset. Handle the case that per char metric is not
2436 available. If it->multibyte_p is zero and it->c is a multibyte
2437 character, convert it to a unibyte character.
2438 (struct glyph_string): Delete member `charset'.
2439 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
2440 the case that per char metric is not available correctly.
2441 (x_fill_glyph_string): Handle the case that the specific glyph is
2442 not available correctly.
2443 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
2444 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
2445 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
2446 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
2447 fontset. Don't call FS_LOAD_FONT.
2448
2449 * xfns.c (Fx_create_frame): Don't cal fs_register_fontset.
2450 (x_create_tip_frame): Likewise.
2451 (Fx_close_connection): Free full_name of font_info.
2452
2453 * fns.c (optimize_sub_char_table): New function.
2454 (Foptimize_char_table): New function.
2455 (syms_of_fns): Defsubr Soptimize_char_table.
2456
b33dd3b0
GM
24572000-03-20 Gerd Moellmann <gerd@gnu.org>
2458
2459 * buffer.c (Fset_buffer_modified_p): Set update_mode_lines
2460 only if buffer is displayed in some window.
2461
2462 * xdisp.c (handle_single_display_prop): Initialize local `value'.
2463 (try_window_reusing_current_matrix): Don't call scroll run
2464 function if run's current and desired position are the same;
2465 this prevents cursor flickering.
2466
4e8a9132
SM
24672000-03-19 Stefan Monnier <monnier@cs.yale.edu>
2468
2469 * regex.h (RE_TRANSLATE. RE_TRANSLATE_P): Moved to regex.c.
2470
2471 * regex.c (RE_STRING_CHAR): New macro.
2472 (GET_CHAR_AFER_2): Remove.
2473 (RE_TRANSLATE, RE_TRANSLATE_P): New macros moved from regex.h.
2474 (enum re_opcode_t): Remove on_failure_jump_exclusive.
2475 (print_partial_compiled_pattern, re_compile_fastmap)
2476 (re_match_2_internal): Remove on_failure_jump_exclusive.
2477 (regex_compile): Turn optimizable P+ loops into PP*, so that the
2478 optimization only need to work for * (ie. can use of_keep_string_jump).
2479 Remove the special case for .*\n since it is now covered by the general
2480 optimization.
2481 (re_search_2): Don't bother with `room'.
2482 (skip_one_char): New function.
2483 (skip_noops): Simplify since `memory' is not needed any more.
2484 (mutually_exclusive_p): Restructure slightly to use `switch' and
2485 add handling for "all" remaining cases.
2486 (re_match_2_internal): Change on_failure_jump_smart to use
2487 on_failure_keep_string_jump (and redirect the end-of-loop jump)
2488 rather than on_failure_jump_exclusive.
2489
2136fdd4
GM
24902000-03-19 Gerd Moellmann <gerd@gnu.org>
2491
2492 * xfns.c (select_visual): Don't set dpyinfo->n_planes to the
2493 number of bits per RGB because it's everywhere used as the depth
2494 of the visual.
2495
2496 * term.c (calculate_costs): Remove code dealing with X frames.
2497
e53ae11c
RS
24982000-03-19 Richard M. Stallman <rms@caffeine.ai.mit.edu>
2499
2500 * lread.c (syms_of_lread): Doc fix for load-convert-to-unibyte.
2501
d7b511c4
GM
25022000-03-18 Gerd Moellmann <gerd@gnu.org>
2503
2504 * lread.c (read_integer): Unread the last char not consumed.
2505
16b5d424
GM
25062000-03-17 Gerd Moellmann <gerd@gnu.org>
2507
2508 * xterm.c (x_update_window_cursor): Don't update in frames
d7b511c4 2509 which are in the process of being deleted.
16b5d424 2510
1fa28578
GM
25112000-03-16 Gerd Moellmann <gerd@gnu.org>
2512
83488cce
GM
2513 * Makefile.in (mostlyclean): Add `*.core'.
2514 (clean): Add `bootstrap-emacs'.
2515
1fa28578
GM
2516 * lread.c (read_integer): New function.
2517 (read1): Support read syntax #o, #x, #b, #r.
2518
99633e97
SM
25192000-03-15 Stefan Monnier <monnier@cs.yale.edu>
2520
1fa28578
GM
2521 * regex.c (re_match_2): Fix string shortening (to fit `stop') to
2522 make sure POINTER_TO_OFFSET gives the same value before and after
2523 PREFETCH. Use `dfail' to guarantee "atomic" matching.
99633e97
SM
2524 (PTR_TO_OFFSET): Use POINTER_TO_OFFSET.
2525 (debug): Now only active if > 0 rather than if != 0.
2526 (DEBUG_*): Update for the new meaning of `debug'.
1fa28578
GM
2527 (print_partial_compiled_pattern): Add missing `succeed' case. Use
2528 CHARSET_* macros in the charset(_not) branch. Fix off-by-two bugs
2529 in `succeed_n', `jump_n' and `set_number_at'.
99633e97
SM
2530 (store_op1, store_op2, insert_op1, insert_op2)
2531 (at_begline_loc_p, at_endline_loc_p): Add prototype.
1fa28578
GM
2532 (group_in_compile_stack): Move to after its arg's types are
2533 declared and add a prototype.
99633e97 2534 (PATFETCH): Define in terms of PATFETCH_RAW.
1fa28578
GM
2535 (GET_UNSIGNED_NUMBER): Add the usual `do { ... } while(0)'
2536 wrapper.
99633e97 2537 (QUIT): Redefine as a nop except for NTemacs.
1fa28578
GM
2538 (regex_compile): Handle intervals {,M} as if it was {0,M}. Fix
2539 indentation of the greedy-op and shy-group code.
99633e97
SM
2540 (at_(beg|end)line_loc_p): Fix argument's types.
2541 (re_compile_fastmap): Ifdef out failure_stack_ptr to shut up gcc.
2542 (re_search_2): Use POS_AS_IN_BUFFER. Simplify `room' computation.
2543 (MATCHING_IN_FIRST_STRING): Remove.
1fa28578
GM
2544 (re_match_2): Use POS_AS_IN_BUFFER. Ifdef out failure_stack_ptr
2545 to shut up gcc. Use FIRST_STRING_P and POINTER_TO_OFFSET. Use
2546 QUIT unconditionally.
99633e97 2547
699238d9
GM
25482000-03-15 Gerd Moellmann <gerd@gnu.org>
2549
2550 * minibuf.c (Fminibuffer_complete): Set point to ZV if finding
2551 a sole completion.
2552
2553 * process.c (send_process): Add a hint that the function
2554 can call Lisp code to its comment.
2555
2556 * lread.c (load_dangerous_libraries): New variable.
2557 (Vbytecomp_version_regexp): New variable.
2558 (safe_to_load_p): New function.
2559 (Fload): Handle files not compiled with Emacs specially.
2560 (syms_of_lread): New Lisp variable load-dangerous-libraries.
2561
34e23e5a
GM
25622000-03-14 Gerd Moellmann <gerd@gnu.org>
2563
9c763cca
GM
2564 * lisp.h (free_frame_xic) [HAVE_X_I18N]: Add missing semicolon.
2565
2566 * xterm.c (xim_close_dpy, xim_initialize): Use X11R6-style XIM
2567 support functions only if HAVE_X11R6_XIM is defined.
2568 (xim_instantiate_callback): Define only if HAVE_X11R6_XIM.
2569
2570 * s/sol2.h (INHIBIT_X11R6_XIM): Define.
2571
2572 * xfns.c (X_I18N_INHIBITED): Don't define.
2573 (create_frame_xic): Remove conditional compilation on
2574 X_I18N_INHIBITED.
2575 (x_kill_gs_process, x_window): Use FRAME_X_VISUAL.
2576
2577 * config.in (HAVE_X_I18N): Moved here from xterm.h.
2578 (HAVE_X11R6_XIM): Define.
2579
2580 * xterm.h (HAVE_X_I18N) [HAVE_X11R6]: Moved to config.in.
2581
34e23e5a
GM
2582 * xterm.c (x_term_init): Add support for X resource `synchronous'.
2583 If set, call XSynchronize.
2584
66f0296e
SM
25852000-03-13 Stefan Monnier <monnier@cs.yale.edu>
2586
34e23e5a
GM
2587 * regex.c: Declare a new type `re_char' used throughout the code
2588 for the string char type. It's `const unsigned char' to match the
2589 rest of Emacs. Consistently make sure all pointers to strings use
2590 it and make sure all pointers into the pattern use `unsigned
2591 char'.
66f0296e 2592 (re_match_2_internal): Use `PREFETCH+STRING_CHAR' instead of
34e23e5a
GM
2593 GET_CHAR_AFTER_2. Also merge wordbound and notwordbound to reduce
2594 code duplication.
66f0296e
SM
2595
2596 * charset.h (GET_CHAR_AFTER_2): Remove.
2597 (GET_CHAR_BEFORE_2): Use unsigned chars, like everywhere else.
2598
854a025c
KR
25992000-03-12 Ken Raeburn <raeburn@gnu.org>
2600
2601 * Makefile.in (temacs): Evaluate ALL_LDFLAGS into a temporary
2602 variable before the invocation of YMF_PASS_LDFLAGS, in case both
2603 of them try to use backquotes.
2604
b9d2c7e2
DL
26052000-03-12 Dave Love <fx@gnu.org>
2606
2607 * unexelf.c: Restore changes of 1999-10-19.
2608 (unexec): Don't adjust bss for sbss type SHT_PROGBITS; otherwise
2609 fix its type and alignment; copy it from current process.
2610
5e5dff44
GM
26112000-03-12 Gerd Moellmann <gerd@gnu.org>
2612
9b2f3c38
GM
2613 * atimer.c (cancel_atimer): Break out of the loop as soon as timer
2614 has been found. Fix bug not computing timer's predecessor.
2615
427ec082 2616 * fileio.c (Fread_file_name): Handle case that DIR contains a
9172b88d
GM
2617 file name.
2618
e1cff360
GM
2619 * window.c (Fsave_window_excursion): Doc fix.
2620
5e5dff44
GM
2621 * xfns.c (x_defined_color): Rewritten to use
2622 x_allocate_nearest_color.
2623
e411ce4b
EZ
26242000-03-12 Eli Zaretskii <eliz@is.elta.co.il>
2625
2626 * msdos.c (vga_installed): New function, code moved from
2627 dos_set_window_size.
2628 (Qbar, Qcursor_type, outside_cursor): New variables.
2629 (syms_of_msdos): Intern and staticpro them.
2630 (dos_ttraw) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Save the cursor
2631 shape used outside Emacs when called for the first time.
2632 (dos_ttcooked) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Restore the
2633 cursor shape used outside Emacs.
2634 (msdos_set_cursor_shape, IT_set_cursor_type): New functions.
2635 (IT_frame_up_to_date): Call IT_set_cursor_type, in case the cursor
2636 type has changed.
2637 (IT_set_frame_parameters): Call IT_set_cursor_type if the frame
2638 parameters specify the cursor. Make qreverse a global
2639 variable (renamed to Qreverse).
2640
80460654
GM
26412000-03-09 Gerd Moellmann <gerd@gnu.org>
2642
2643 * fns.c (Fy_or_n_p): Cancel busy-cursor.
2644
95cd4c40
SM
26452000-03-08 Stefan Monnier <monnier@cs.yale.edu>
2646
2647 This is a big redesign of failure-stack and register handling, prompted
2648 by bugs revealed when trying to add shy-groups. Overall, what happened
2649 is that loops are now structured a little differently, groups can be
2650 shy and the code is a little simpler.
2651
2652 * regex.h: Update the copyright.
2653 (RE_SHY_GROUPS): New value.
2654 (RE_UNMATCHED_RIGHT_PAREN_ORD): Renumber.
2655 (RE_SYNTAX_EMACS): Add RE_SHY_GROUPS.
2656
80460654
GM
2657 * regex.c (enum re_opcode_t): Remove jump_past_alt,
2658 maybe_pop_jump, push_dummy_failure and dumy_failure_jump. Add
2659 on_failure_jump_(exclusive, loop and smart). Also fix the comment
2660 for (start|stop)_memory since they now only take one argument (the
2661 second has becomes unnecessary).
2662 (print_partial_compiled_pattern): Adjust for changes in
2663 re_opcode_t.
2664 (print_compiled_pattern): Use %ld to printf long ints and flush to
2665 make debugging a little easier.
95cd4c40
SM
2666 (union fail_stack_elt): Make the integer unsigned.
2667 (struct fail_stack_type): Add a `frame' element.
2668 (INIT_FAIL_STACK): Init `frame' as well.
2669 (POP_PATTERN_OP): New macro for re_compile_fastmap.
2670 (DEBUG_PUSH, DEBUG_POP): Remove.
2671 (NUM_REG_ITEMS): Remove.
2672 (NUM_NONREG_ITEMS): Adjust.
80460654
GM
2673 (FAILURE_PAT, FAILURE_STR, NEXT_FAILURE_HANDLE)
2674 (TOP_FAILURE_HANDLE): New macros for the cycle detection.
95cd4c40 2675 (ENSURE_FAIL_STACK): New macro for PUSH_FAILURE_(REG|POINT).
80460654
GM
2676 (PUSH_FAILURE_REG, POP_FAILURE_REG, CHECK_INFINITE_LOOP): New
2677 macros.
2678 (PUSH_FAILURE_POINT): Don't push registers any more. The pattern
2679 address pushed is not the destination of the jump but the source
2680 of it instead.
95cd4c40
SM
2681 (NUM_FAILURE_ITEMS): Remove.
2682 (POP_FAILURE_POINT): Adapt to the new stack structure (i.e. pop
80460654
GM
2683 registers before the actual failure point). Don't hardcode any
2684 meaning for str==NULL anymore.
95cd4c40 2685 (union register_info_type, REG_MATCH_NULL_STRING_P, IS_ACTIVE)
80460654
GM
2686 (MATCHED_SOMETHING, EVER_MATCHED_SOMETHING, SET_REGS_MATCHED):
2687 Remove.
95cd4c40
SM
2688 (REG_UNSET_VALUE): Use NULL (why not?).
2689 (compile_range): Remove declaration since it doesn't exist.
2690 (struct compile_stack_elt_t): Remove inner_group_offset.
2691 (old_reg(start|end), reg_info, reg_dummy, reg_info_dummy): Remove.
2692 (regex_grow_registers): Remove dead code.
2693 (FIXUP_ALT_JUMP): New macro.
80460654
GM
2694 (regex_compile): Add shy-groups Change loops to use
2695 on_failure_jump_smart&jump instead of
2696 on_failure_jump&maybe_pop_jump. Change + loops to eliminate the
2697 initial (dummy_failure_)jump. Remove c1_base (looks like unused
2698 variable to me). Use `jump' instead of `jump_past_alt' and don't
2699 bother with push_dummy_failure in alternatives since it is now
2700 unnecessary. Use FIXUP_ALT_JUMP. Eliminate a useless `#ifdef
2701 emacs' for (re)allocating the stack.
2702 (re_compile_fastmap): Remove dead variables i and num_regs. Exit
2703 from loop when bufp->can_be_null rather than jumping to `done'.
2704 Avoid jumping backwards so as to ensure termination. Use
2705 PATTERN_STACK_EMPTY and POP_PATTERN_OP. Improved handling of
2706 backreferences. Remove dead code in handling of `anychar'.
95cd4c40 2707 (skip_noops, mutually_exclusive_p): New functions taken from the
80460654
GM
2708 handling of `maybe_pop_jump' in re_match_2_internal. Slightly
2709 improve mutually_exclusive_p to handle ".+\n".
2710 (lowest_active_reg, highest_active_reg,
2711 NO_(LOWEST|HIGHEST)_ACTIVE_REG) Remove.
2712 (re_match_2_internal): Use %p instead of 0x%x when printf'ing
2713 ptrs. Don't SET_REGS_MATCHED anymore. Remove many dead
2714 variables. Push register (in `start_memory') on the stack rather
2715 than storing it in old_reg(start|end). Remove the cycle detection
2716 from `stop_memory', replaced by the use of on_failure_jump_loop
2717 for greedy loops. Add code for the new on_failure_jump_<foo>.
2718 Remove ad-hoc code in `on_failure_jump' to push more registers in
2719 the case of a loop. Take out code from `maybe_pop_jump' into
2720 separate functions and adapt it to the semantics of
2721 `on_failure_jump_smart'. Remove jump_past_alt, dummy_failure_jump
2722 and push_dummy_failure. Remove dummy_failure handling and
2723 handling of `failures to jump to on_failure_jump' (this last one
2724 was already dead code, it seems).
2725 (group_match_null_string_p, alt_match_null_string_p)
2726 (common_op_match_null_string_p): Remove.
95cd4c40 2727
7397acc4
DL
27282000-03-08 Dave Love <fx@gnu.org>
2729
2730 * config.in: Don't depend on __STDC__ for volatile.
2731 Add POINTER_TYPE, PTR, PROTOTYPES.
2732
2733 * hftctl.c, strftime.c: Use PROTOTYPES.
2734 * eval.c (find_handler_clause): Likewise.
2735
2736 * mem-limits.h: Use POINTER_TYPE.
2737
2738 * lisp.h (P_): Define based on PROTOTYPES, not __STDC__.
2739 (memory_warnings): Declare using POINTER_TYPE.
2740
5e91ff9e
GM
27412000-03-08 Gerd Moellmann <gerd@gnu.org>
2742
feab4fba
GM
2743 * xfns.c (x_set_cursor_type): If ARG is nil, give frame no cursor.
2744
25edb08f
GM
2745 * xdisp.c (display_echo_area): Temporarily inhibit garbage
2746 collection.
2747
5e91ff9e
GM
2748 * xfns.c: Remove obsolete code in #if 0.
2749 (Fx_focus_frame): New function.
2750
a735b7e1
KH
27512000-03-07 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
2752
2753 * coding.c (coding_category_name): Add coding-category-utf-8,
2754 coding-category-utf-16-be, coding-category-utf-16-le.
2755 (UTF_8_1_OCTET_P, UTF_8_EXTRA_OCTET_P, UTF_8_2_OCTET_LEADING_P,
2756 UTF_8_3_OCTET_LEADING_P, UTF_8_4_OCTET_LEADING_P,
2757 UTF_8_5_OCTET_LEADING_P, UTF_8_6_OCTET_LEADING_P): New macros.
2758 (detect_coding_utf_8): New function.
2759 (UTF_16_INVALID_P, UTF_16_HIGH_SURROGATE_P
2760 UTF_16_LOW_SURROGATE_P): New macros.
2761 (detect_coding_utf_16): New function
2762 (detect_coding_mask): When priorities are specified, skip any
2763 categories that have `nil' coding-system. Fix bug of returning
2764 wrong mask when PRIORITIES is specified and detect_coding_XXX()
2765 returns a mask not set in PRIORITIES.
2766 (detect_eol_type_in_2_octet_form): New function.
2767 (detect_eol): selects detect_eol_type_XXX to call according to
2768 cooding->category_idx.
2769 (detect_coding_system): Remove `nil' coding-system in the result.
2770 (Fupdate_coding_systems_internal): Update all coding-categories.
2771
2772 * coding.h (CODING_CATEGORY_IDX_UTF_8,
2773 CODING_CATEGORY_IDX_UTF_16_BE, CODING_CATEGORY_IDX_UTF_16_LE): New
2774 macros.
2775 (CODING_CATEGORY_IDX_RAW_TEXT, CODING_CATEGORY_IDX_BINARY,
2776 CODING_CATEGORY_IDX_MAX): Adjusted for the above macros.
2777 CODING_CATEGORY_IDX_UTF_16_LE.
2778 (CODING_CATEGORY_MASK_UTF_8, CODING_CATEGORY_MASK_UTF_16_BE,
2779 CODING_CATEGORY_MASK_UTF_16_LE): New macros.
2780 (CODING_CATEGORY_MASK_ANY): Include the above macros.
2781 (CODING_CATEGORY_MASK_UTF_16_BE_LE): New macro.
2782
9994cc69
GM
27832000-03-07 Gerd Moellmann <gerd@gnu.org>
2784
e9b4e5ff
GM
2785 * doc.c (Fdocumentation_property): If value is not a string,
2786 and doesn't refer to etc/DOC, evaluate it to obtain a string.
2787
f7daf1e1
GM
2788 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Don't try to
2789 close the display with XtCloseDisplay. This caused a bus error
2790 on OpenWindows.
2791
9994cc69
GM
2792 * minibuf.c (Fminibuffer_complete): Move point to ZV when input is
2793 complete but not unique.
2794
4336c705
GM
27952000-03-06 Gerd Moellmann <gerd@gnu.org>
2796
18bb0684
GM
2797 * process.c (send_process): Remove local variable `procname' that
2798 might become invalid when a GC happens. Instead, access the
2799 process name slot directly.
2800
4336c705
GM
2801 * xfns.c (x_set_menu_bar_lines_1): Adjust window's orig_top and
2802 orig_height if set.
2803
2804 * frame.c (set_menu_bar_lines_1): Adjust window's orig_top and
2805 orig_height if set.
2806
515d0d0e
EZ
28072000-03-06 Eli Zaretskii <eliz@is.elta.co.il>
2808
2809 * msdos.c (IT_note_mouse_highlight): Return immediately if frame's
2810 glyph matrices have been freed.
2811
100b3cbb
GM
28122000-03-05 Gerd Moellmann <gerd@gnu.org>
2813
50df5e5a 2814 * Makefile.in (tags): Include ../lwlib/TAGS in TAGS.
6178bc23 2815 (bootstrap-temacs): Set LC_ALL to C like for temacs.
50df5e5a
GM
2816
2817 * xfns.c (QCdata): Moved to xdisp.c.
2818
2819 * xdisp.c (QCdata): Moved here from xfns.c.
2820 (syms_of_xdisp): Initialize QCdata.
2821
2822 * frame.h (FRAME_INTERNAL_BORDER_WIDTH) [!HAVE_X_WINDOWS]: Define.
2823
2824 * window.c (coordinates_in_window): Use
2825 FRAME_INTERNAL_BORDER_WIDTH_SAFE instead of
2826 FRAME_INTERNAL_BORDER_WIDTH.
2827
100b3cbb 2828 * xdisp.c (try_window_id): Recompute unchanged information if
4336c705 2829 it is obviously invalid.
100b3cbb
GM
2830
2831 * xterm.c (x_term_init): Create a colormap if not using the
2832 default visual.
2833
2834 * xterm.h (select_visual): Change prototype.
2835
2836 * xfns.c (select_visual): Rewritten. Recognize user-specified
2837 visual classes.
2838 (visual_classes): New variable.
2839
64d739c4
GM
28402000-03-04 Gerd Moellmann <gerd@gnu.org>
2841
2842 * xfns.c (x_defined_color, x_set_mouse_color, lookup_rgb_color)
2843 (lookup_pixel_color, x_laplace, x_build_heuristic_mask)
2844 (png_load): Access colormap of frame using FRAME_X_COLORMAP.
2845 (x_decode_color): Don't handle allocation of white and black
2846 specially.
2847 (x_window) [USE_X_TOOLKIT]: Set XtNvisual, XtNdepth, and
2848 XtNcolormap resources.
2849 (x_window) [!USE_X_TOOLKIT]: Pass colormap to XCreateWindow.
2850 (Fx_create_frame): Initialize color members of x_output structure.
2851 (xpm_load): Pass colormap to XPM lib.
2852
2853 * xfaces.c (x_free_colors): Access colormap of frame using
2854 FRAME_X_COLORMAP. Be paranoid about freeing black and white
2855 when default colormap is used.
2856
2857 * xterm.c (x_term_init): Set Colormap member of x_display_info
2858 structure. Copy colormap if resource `privateColormap' is
2859 specified (PseudoColor only).
2860 (x_setup_relief_color): Access colormap of frame using
2861 FRAME_X_COLORMAP.
2862
2863 * xterm.h (struct x_display_info): Add Colormap member `cmap'.
2864 (FRAME_X_COLORMAP, FRAME_X_VISUAL): New macros.
2865
c3cee013
JR
28662000-03-04 Jason Rumney <jasonr@gnu.org>
2867
2868 * xfaces.c Change many FRAME_X... macros to FRAME_WINDOW... or
2869 other non-platform-specific equivalents.
64d739c4 2870 [WINDOWSNT]: Include w32term.h, fontset.h and define X
c3cee013
JR
2871 specific functions and macros as their w32 equivalents where
2872 non-platform-specifics are not available.
2873 [HAVE_X_WINDOWS]: Change most of these to HAVE_WINDOW_SYSTEM.
2874 (x_create_gc, x_free_gc) [WINDOWSNT]: Add W32 versions.
2875 (clear_font_table) [WINDOWSNT]: Call w32_unload_font.
2876 (frame_update_line_height): Use macros to access f->output_data.
2877 (defined_color): Remove FIXME comments; fixed.
2878 (x_face_list_fonts, prepare_face_for_display): Put X specifics
2879 into #ifdef blocks. Add WINDOWSNT blocks.
2880 (Fx_list_fonts): Use macros for accessing font data.
2881 (set_lface_from_font_name): Different default fonts for X and
2882 WINDOWSNT.
2883 (font_scalable_p) [WINDOWSNT]: Treat wildcard XLFD_AVGWIDTH as
2884 scalable for backward compatibility.
64d739c4 2885 (realize_tty_face) [MSDOS]: Do the same for WINDOWSNT.
c3cee013
JR
2886 (syms_of_xfaces) [WINDOWSNT]: Allow scalable fonts by default.
2887
64d739c4 2888 * emacs.c (main) [HAVE_NTGUI]: Call syms_of_xfaces instead of
c3cee013
JR
2889 syms_of_w32faces.
2890
2891 * makefile.nt (w32faces.obj): Remove.
2892 (xfaces.obj): Add.
2893
807cc41c
JR
28942000-03-03 Jason Rumney <jasonr@gnu.org>
2895
2896 * keyboard.c (make_lispy_event): Call buffer_posn_from_coords with
2897 correct parameters.
2898
0007072a
KR
28992000-03-03 Ken Raeburn <raeburn@gnu.org>
2900
2901 * unexelf.c (PT_LOAD, SHT_*, SHN_*) [__NetBSD__]: Only provide
2902 standard ELF definitions here if the system header does not.
2903
71a6ba55
GM
29042000-03-03 Gerd Moellmann <gerd@gnu.org>
2905
2906 * xterm.c (PER_CHAR_METRIC): Removed.
2907 (x_per_char_metric_1, x_default_char): New functions.
2908 (x_per_char_metric): If font's default char is invalid, return
2909 metrics of a suitably chosen usable default char.
2910 (x_draw_glyph_string_foreground): If font has an invalid default
64d739c4
GM
2911 char, replace occurrences of unprintable chars with a suitably
2912 chosen usable default char.
71a6ba55 2913
900fa1f1
GM
29142000-03-02 Gerd Moellmann <gerd@gnu.org>
2915
42f55fe0
GM
2916 * xterm.c (note_mouse_highlight): Return quickly if frame's
2917 glyph matrices have been freed.
2918
2919 * dispnew.c (free_glyphs): Block input while freeing matrices.
2920
900fa1f1
GM
2921 * xfns.c (x_clear_image, x_kill_gs_process): Use x_free_colors.
2922
2923 * xterm.c (x_alloc_lighter_color, x_setup_relief_color): Use
2924 x_free_colors.
2925
2926 * dispextern.h (x_free_colors): Add prototype.
2927
2928 * xfaces.c (x_free_colors): New function.
2929 (unload_color, free_face_colors): Use it.
2930
2f950292
EZ
29312000-03-02 Eli Zaretskii <eliz@is.elta.co.il>
2932
2933 * msdos.h (FRAME_INTERNAL_BORDER_WIDTH): Define to zero.
2934
2935 * window.c [MSDOS]: Include msdos.h.
2936
54d04320
DL
29372000-03-02 Dave Love <fx@gnu.org>
2938
2939 * m/powerpcle.h, m/sparc.h: Don't set C_OPTIMIZE_SWITCH.
2940
2941 * m/mips-siemens.h, m/news-r6.h, m/news-risc.h, m/tekxd88.h: Don't
2942 set C_OPTIMIZE_SWITCH for gcc.
2943
0ba93ac4
KH
29442000-03-02 Kenichi Handa <handa@etl.go.jp>
2945
2946 * coding.c (coding_save_composition): Be sure to allocate
2947 composition data area in coding even if there's no composition in
2948 the current run.
2949
a2bc11d4
JR
29502000-03-01 Jason Rumney <jasonr@gnu.org>
2951
2952 * w32term.c: Equivalent changes to those made to xterm.c on
2953 2000-02-25 and 2000-02-24.
2954
2955 * w32fns.c: Equivalent changes to those made to xfns.c on
2956 2000-02-25 and 2000-02-21.
2957
2958 * sysdep.c: [WINDOWSNT]: Use sys_read and sys_write to ensure
2959 correct line-end convention is followed.
2960
2961 * w32menu.c [HAVE_BOXES]: Remove #undef.
2962 (single_keymap_panes): Remove code for simulating checkmarks.
2963 (single_menu_item): Remove notbuttons_ptr argument. Callers changed.
2964 Remove code for drawing simulated checkmarks.
2965 (w32_menu_show): make unibyte help string correctly.
2966 (add_menu_item): draw standard Windows checkmarks. Draw radio
2967 buttons as radio buttons if possible.
2968
72d19d75
GM
29692000-03-01 Gerd Moellmann <gerd@gnu.org>
2970
2df636f4
GM
2971 * sysdep.c (start_of_text): Don't define this function for NetBSD
2972 with ELF.
2973
427ec082 2974 * m/pmax.h (START_FILES, CANNOT_DUMP) [__NetBSD__ || __OpenBSD__]:
2df636f4
GM
2975 Don't define.
2976 (UNEXEC) [__NetBSD__ || __OpenBSD__]: Define to unexelf.o.
2977 (LINKER): Don't undef if __NetBSD__ is defined.
2978
2979 * m/mips.h (LINKER) [__NetBSD__ || __OpenBSD__]: Don't define.
2980
2981 * fileio.c [__NetBSD__]: Define `unix'.
2982
72d19d75
GM
2983 * xfns.c (start_busy_cursor): Allow floats for busy-cursor-delay.
2984
ed4d0512
GM
29852000-02-29 Gerd Moellmann <gerd@gnu.org>
2986
50b1039f
GM
2987 * atimer.c (start_atimer): Don't abort when timers are stopped.
2988 (append_atimer_lists): New function.
2989 (cancel_atimer, stop_other_atimers, run_all_atimers): Handle
2990 arbitrary lists of stopped and running atimers.
2991
ed4d0512
GM
2992 * atimer.c (cancel_atimer): Handle canceling an atimer when
2993 some timers are stopped.
2994
2995 * xfns.c (cancel_busy_cursor): Set busy_cursor_atimer to null
2996 after canceling it.
2997
2998 * fns.c (maybe_resize_hash_table): Handle case of new size
2999 coming out as being the same as old size.
3000
387023ee
JR
30012000-02-27 Jason Rumney <jasonr@gnu.org>
3002
3003 * makefile.nt: Add atimer.h to dependencies.
3004 * w32.c (init_environment): Set Vw32_num_mouse_buttons here.
3005 * w32console.c: Only disable window system features for dispextern.h
3006 (initialize_w32_display): Build a display info for the console.
3007 * w32faces.c (tty_defined_color): Apply xfaces.c change from 02-17.
3008 * w32fns.c (w32_wnd_proc) [WM_LBUTTON_DOWN, WM_RBUTTON_DOWN,
3009 WM_LBUTTON_UP, WM_RBUTTON_UP]: Do not treat 4 or more button mice
3010 as 2 button mice.
3011 * w32gui.h (struct W32FontStruct): Revert last change after change
3012 to xdisp.c.
3013 * w32menu.c (single_submenu): Set up help string.
3014 [!HAVE_MULTILINGUAL_MENU]: Don't overwrite item_name with descrip.
3015 (w32_dialog_show): Set up help string.
3016 * w32term.c (w32_display_info_for_display): Remove unused function.
3017 (w32_draw_bitmap): Use pre-built bitmaps.
3018 (w32_initialize_display_info): New function to initialize parts of
3019 display info that are common to both GUI and console frames.
3020 (w32_term_init): Use w32_initialize_display_info. Do not set
3021 Vw32_num_mouse_buttons here, as it is not called for console
3022 frames. Build bitmaps for indicating truncated lines etc.
3023 (x_delete_display): Destroy pre-built bitmaps.
3024 * xdisp.c (handle_single_display_prop): Use FONT_HEIGHT macro.
3025 (echo_area_display): Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM.
3026
4516715a
DL
30272000-02-27 Dave Love <fx@gnu.org>
3028
3029 * lisp.h: Add a bunch of prototypes.
3030
171ca836
KH
30312000-02-26 Kenichi Handa <handa@etl.go.jp>
3032
3033 * keyboard.c (read_char): Set `usec' correctly.
3034
4013921d
KH
30352000-02-25 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
3036
3037 * ccl.c (ccl_driver) [CCL_MapMultiple]: When the mapped value is
3038 `lambda', set reg[RRR] to the map index.
3039 (ccl_driver) [CCL_MapSingle]: When the mapped value is found, set
3040 reg[RRR] to 0. Otherwise, set it to -1.
3041
9244a058
GM
30422000-02-25 Gerd Moellmann <gerd@gnu.org>
3043
2df636f4 3044 * emacs.c (main): Remove code snippet commented out with `//'.
9244a058 3045
f43d79c1 30462000-02-25 Richard M. Stallman <rms@caffeine.ai.mit.edu>
427ec082 3047
f43d79c1
GM
3048 * fileio.c (Ffile_symlink_p): If result starts with a `/'
3049 and contains a `:', prepend `/:'.
3050
3051 * window.c (select_window_1): If selected_window is nil,
3052 don't "swap out" the buffer's point.
3053 (Fset_window_configuration): Set selected_window to nil
3054 before calling Fselect_window.
3055 (unshow_buffer): Don't set point in buffer from window's point
3056 if another more recently selected window also shows the buffer.
3057
bed0c171
GM
30582000-02-25 Gerd Moellmann <gerd@gnu.org>
3059
449c3c52
GM
3060 * keyboard.c (recursive_edit_1): Cancel busy-cursor.
3061
f5b58615
GM
3062 * xfns.c (inhibit_busy_cursor, busy_count): Removed.
3063 (Fx_show_busy_cursor, Fx_hide_busy_cursor): Removed.
3064 (busy_cursor_atimer, busy_cursor_shown_p, Vbusy_cursor_delay): New
3065 variables.
3066 (DEFAULT_BUSY_CURSOR_DELAY): New define.
3067 (start_busy_cursor, cancel_busy_cursor, show_busy_cursor)
3068 (hide_busy_cursor): New functions.
3069 (syms_of_xfns): DEFVAR_LISP Vbusy_cursor_delay.
3070
3071 * minibuf.c (read_minibuf): Cancel busy-cursor.
3072
3073 * keyboard.c (command_loop_1): Call start_busy_cursor before
3074 Fcommand_execute and cancel_busy_cursor after it.
3075 (timer_check): Remove busy-cursor code.
3076 (Fread_key_sequence, Fread_key_sequence_vector): Start/cancel busy
3077 cursor timer.
3078
3079 * process.c (wait_reading_process_input): Remove busy-cursor code.
3080
3081 * eval.c (Fsignal): Call cancel_busy_cursor instead of
3082 Fx_hide_busy_cursor.
3083
3084 * dispextern.h (Fx_show_busy_cursor, Fx_hide_busy_cursor):
3085 Remove prototyoes.
3086 (start_busy_cursor, cancel_busy_cursor): Add prototypes.
3087
3088 * lisp.h (Fx_hide_busy_cursor): Remove prototype.
3089
3090 * xterm.c (XTread_socket): Remove busy-cursor code.
3091
4eb8436f
GM
3092 * dispnew.c (flush_stdout) [GLYPH_DEBUG]: New function.
3093 (build_frame_matrix_from_leaf_window): Put code handling
3094 glyph row's not being a slice of a frame row in #if 0.
3095 (sync_window_with_frame_matrix_rows): New function.
3096 (frame_row_to_window): New function.
3097 (mirror_line_dance): Handle copies between windows.
3098
3cb65b0e
GM
3099 * lread.c (Fload): Use `xfree' instead of `free'.
3100 (init_obarray): Use `xmalloc' instead of `malloc'.
3101
bed0c171
GM
3102 * window.c (Fset_window_buffer): Set WINDOW to the window
3103 after decoding.
2add4349
GM
3104 (coordinates_in_window): Take frame's internal border width
3105 into account.
bed0c171 3106
42088c12
GM
31072000-02-24 Gerd Moellmann <gerd@gnu.org>
3108
3109 * xterm.c (x_display_and_set_cursor): Display cursor of
3110 non-selected windows depending on the setting of
3111 cursor_in_non_selected_windows.
3112
3113 * xdisp.c (cursor_in_non_selected_windows): New variable.
3114 (syms_of_xdisp): DEFVAR_BOOL it.
3115
d1e103b2
GM
31162000-02-23 Gerd Moellmann <gerd@gnu.org>
3117
723e779c
GM
3118 * data.c (Fstring_to_number): If number is greater than what
3119 fits into an integer, return a float.
3120
d1e103b2
GM
3121 * eval.c (specbind): Remove references to
3122 keyword_symbols_constant_flag.
3123
3124 * data.c (keyword_symbols_constant_flag): Removed.
3125 (Fmakunbound, set_internal, syms_of_data): Remove references to
3126 keyword_symbols_constant_flag.
3127
3128 * bytecode.c (Fbyte_code): Remove keyword_symbols_constant_flag.
3129
214f877f
KH
31302000-02-23 Kenichi Handa <handa@etl.go.jp>
3131
3132 * syntax.c (multibyte_syntax_as_symbol): New variable.
3133 (syms_of_syntax): Declare it as a Lisp variable.
3134 (SYNTAX_WITH_MULTIBYTE_CHECK): New macro.
3135 (scan_lists): If both sexpflag and multibyte_syntax_as_symbol are
3136 nonzero, treat all multibyte characters as symbol.
42088c12 3137 (init_syntax_once): Give syntax `word' to all multibyte
214f877f
KH
3138 characters.
3139
130adcb7
EZ
31402000-02-22 Eli Zaretskii <eliz@is.elta.co.il>
3141
3cb65b0e 3142 * frame.c (Fdelete_frame): Don't let echo_area_window remain on
130adcb7
EZ
3143 a deleted frame.
3144
17cbbf95
GM
31452000-02-21 Gerd Moellmann <gerd@gnu.org>
3146
3147 * frame.c (Fmouse_position): GCPRO retval instead of x and y.
3148
3149 * xfns.c (x_window_to_frame, x_any_window_to_frame)
3150 (x_non_menubar_window_to_frame): Check the busy-cursor window.
3151
beb0bc36
DL
31522000-02-21 Dave Love <fx@gnu.org>
3153
3154 * frame.c (Vmouse_position_function): New variable.
3155 (Fmouse_position): Use it.
3156 (syms_of_frame): Install it.
3157
3158 * charset.c (find_charset_in_str): Fix use of `c' instead of `c1'.
3159
1d92afcd
GM
31602000-02-20 Gerd Moellmann <gerd@gnu.org>
3161
3162 * fileio.c (Finsert_file_contents): Unbind the binding of
3163 standard-output done by temp_output_buffer_setup.
329eed9f
GM
3164
3165 * eval.c (funcall_lambda): Don't bind Qmocklisp_arguments unless
3166 Vmocklisp_arguments is nil. Inline Fcar and Fcdr.
3167 (specbind, unbind_to): Handle most common case of non-constant
3168 symbol with trivial value specially.
3169
3170 * bytecode.c (Fbyte_code) <Bvarset>: Inline most common case.
3171
2d06696f
RS
31722000-02-20 Richard M. Stallman <rms@caffeine.ai.mit.edu>
3173
3174 * data.c (Fmake_variable_buffer_local): Doc fix.
3175 Init found_for_buffer to 0.
3176 (Fmake_variable_frame_local): If the variable has already
3177 been buffer-local, set the check_frame field.
3178
1d4311c3
EZ
31792000-02-20 Eli Zaretskii <eliz@is.elta.co.il>
3180
3181 * msdos.c (IT_write_glyphs): Allocate a larger screen_buf as data
3182 produced for CODING_MODE_LAST_BLOCK requires.
3183
2dc95ddd
DL
31842000-02-18 Dave Love <fx@gnu.org>
3185
3186 * keyboard.c (echo_keystrokes): Remove declaration.
3187 (Vecho_keystrokes) New variable.
3188 (read_char, record_menu_key, read_key_sequence): Use it to allow
3189 use of float value.
3190 (syms_of_keyboard): Change Vecho_keystrokes declaration.
3191
3192 * lread.c: Undef feature selection macros before defining.
3193
f0930f35
GM
31942000-02-18 Gerd Moellmann <gerd@gnu.org>
3195
3196 * data.c (let_shadows_buffer_binding_p): Ignore specbindings
3197 for symbols other than the symbol in question.
3198
e3d4de90
DL
31992000-02-17 Dave Love <fx@gnu.org>
3200
3201 * s/sol2.h (C_DEBUG_SWITCH): Define to allow optimization.
3202
0b378936
GM
32032000-02-17 Gerd Moellmann <gerd@gnu.org>
3204
d621caf7
GM
3205 * emacs.c (main): Use #if GC_MARK_STACK instead of #ifdef.
3206
0b378936
GM
3207 * alloc.c (enum mem_type): Compile unconditionally.
3208
3b451f74
EZ
32092000-02-17 Eli Zaretskii <eliz@is.elta.co.il>
3210
3211 * xfaces.c (tty_defined_color): Don't return faulire indication
3212 for unspecified-fg and unspecified-bg pseudo-colors.
3213
10689a01
GM
32142000-02-17 Gerd Moellmann <gerd@gnu.org>
3215
1216f5e4
GM
3216 * alloc.c (mark_object): Don't mark symbol names in pure space.
3217 (gc_sweep): Don't unmark symbol names in pure space.
3218
3219 * lisp.h (GC_USE_GCPROS_AS_BEFORE, GC_MAKE_GCPROS_NOOPS)
3220 (GC_MARK_STACK_CHECK_GCPROS, GC_USE_GCPROS_CHECK_ZOMBIES)
3221 [GC_MARK_STACK]: New defines.
427ec082 3222 (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5, UNGCPRO)
1216f5e4
GM
3223 [GC_MARK_STACK == GC_MAKE_GCPROS_NOOPS]: Define as no-ops.
3224
3225 * emacs.c (main) [GC_MARK_STACK]: Initialize stack_base.
3226
3227 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use
3228 allocate_buffer instead of xmalloc.
3229
3230 * alloc.c (toplevel): Include setjmp.h.
3231 (PURE_POINTER_P): New define.
3232 (enum mem_type) [GC_MARK_STACK]: New enumeration.
3233 (Vdead) [GC_MARK_STACK]: New variable.
3234 (lisp_malloc): Add parameter TYPE, call mem_insert if
3235 GC_MARK_STACK is defined.
3236 (allocate_buffer): New function.
427ec082 3237 (lisp_free) [GC_MARK_STACK]: Call mem_delete.
1216f5e4
GM
3238 (free_float) [GC_MARK_STACK]: Set type to Vdead.
3239 (free_cons) [GC_MARK_STACK]: Set car to Vdead.
3240 (stack_base, mem_root, mem_z) [GC_MARK_STACK]: New variables.
3241 (MEM_NIL) [GC_MARK_STACK]: New define.
3242 (struct mem_node) [GC_MARK_STACK]: New structure.
3243 (mem_init, mem_find, mem_insert, mem_delete, mem_insert_fixup)
3244 (mem_delete_fixup, mem_rotate_left, mem_rotate_right)
3245 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
3246 (live_misc_p, live_vector_p, live_buffer_p, mark_memory)
3247 (mark_stack) [GC_MARK_STACK]: New functions.
3248 (Fgarbage_collect) [GC_MARK_STACK]: Call mark_stack.
3249 (clear_marks): Removed.
3250 (gc_sweep): Set free conses' car, free floats' type, free
3251 symbols' function to Vdead. Use lisp_free to free buffers.
3252 (init_alloc_once): Initialize Vdead.
3253 (survives_gc_p): Return non-zero for pure objects.
3254
3255 * alloc.c: Add comments throughout the file.
3256
2503c8b1
GM
3257 * atimer.c (stop_other_atimers): Don't call cancel_atimer because
3258 that unblocks alarms.
3259
8389e1e2
GM
3260 * alloc.c, bytecode.c, data.c, dispnew.c, ecrt0.c, editfns.c,
3261 emacs.c, floatfns.c, fns.c, lread.c, print.c, config.in, lisp.h,
3262 Makefile.in: Remove `LISP_FLOAT_TYPE' and `standalone'.
3263
10689a01 3264 * frame.c (make_frame): Set frame initiallly to `garbaged'.
427ec082 3265
bfc17d18
KH
32662000-02-17 Kenichi Handa <handa@etl.go.jp>
3267
4a09dee0
KH
3268 * xdisp.c (decode_mode_spec_coding): Delete superfluous code to
3269 avoid infinite error signaling. Allocate sufficient memory for
3270 eol_str in the case that eoltype is Lisp_Int.
bfc17d18 3271
2b927d02
SM
32722000-02-17 Stefan Monnier <monnier@cs.yale.edu>
3273
3274 * syntax.c (Fforward_comment): Undo the previous change, since cc-mode
3275 depends on the previous behavior.
3276
b49cb764
GM
32772000-02-16 Gerd Moellmann <gerd@gnu.org>
3278
3279 * sysdep.c (vfork) [!HAVE_VFORK]: Removed.
3280
99e95407
GM
32812000-02-15 Gerd Moellmann <gerd@gnu.org>
3282
3283 * s/freebsd.h (BROKEN_PTY_READ_AFTER_EAGAIN): Define.
3284
3285 * process.c (send_process) [BROKEN_PTY_READ_AFTER_EAGAIN]:
b49cb764 3286 Workaround for FreeBSD bug. Clear output queue after EAGAIN in
99e95407
GM
3287 write(2).
3288
6ffd3cf7
RS
32892000-02-15 Richard M. Stallman <rms@gnu.org>
3290
3291 * data.c (set_internal): Don't make variable buffer-local
3292 if within a let-binding for the same buffer.
3293 (let_shadows_buffer_binding_p): New function.
3294
3295 * eval.c (specbind): For buffer-local value,
3296 record the current buffer also.
3297 (unbind_to): Cope with that change.
3298
cad53475
GM
32992000-02-15 Gerd Moellmann <gerd@gnu.org>
3300
3301 * window.c (Fsave_window_excursion): Doc fix.
3302
1aa963c8
SM
33032000-02-15 Stefan Monnier <monnier@cs.yale.edu>
3304
3305 * syntax.c (back_comment): Make sure we only consider comment-starters
3306 of the relevant style and return -1 in case of a failure to find the
3307 beginning of the comment.
3308 (Fforward_comment): If back_comment fails, go back to the position just
3309 after the comment-end.
3310 (scan_lists): Add comment describing a very minor bug.
3311
b9b84fd3
SM
33122000-02-14 Stefan Monnier <monnier@cs.yale.edu>
3313
3314 * minibuf.c (Ftry_completion, Fall_completions): Add a reference to
3315 `completion-regexp-list' in the docstring.
3316
3a28db80
DL
33172000-02-14 Dave Love <fx@gnu.org>
3318
3319 * xfaces.c (tty_defined_color): Declare color_idx unsigned long.
3320
fb4a568d
SM
33212000-02-14 Stefan Monnier <monnier@cs.yale.edu>
3322
3323 * regex.h (RE_SYNTAX_EMACS): Add RE_CHAR_CLASSES and RE_INTERVALS
3324 to Emacs' syntax. Also fix the comment about set/not-set meanings
3325 since Emacs syntax is not the value 0 any more.
3326 * search.c (compile_pattern_1): Remove RE_CHAR_CLASSES from the syntax
3327 since it's now part of RE_SYNTAX_EMACS.
3328
1063ebb5
DL
33292000-02-12 Dave Love <fx@gnu.org>
3330
3331 * frame.h (SELECTED_FRAME): Use NULL, not 0 to avoid warnings on
3332 Alpha.
3333
fb07a302
GM
33342000-02-12 Gerd Moellmann <gerd@gnu.org>
3335
3336 * xdisp.c (syms_of_xdisp): Doc fix for scroll-conservatively.
3337
aaf2320c
DL
33382000-02-12 Dave Love <fx@gnu.org>
3339
3340 * s/aix3-2.h, s/osf-1.h: Define C_DEBUG_SWITCH for non-gcc.
3341
3342 * s/ux4800.h, s/umips.h, s/umax.h, s/sol2.h, s/sco5.h, s/rtu.h:
fb07a302
GM
3343 * s/ptx4.h, s/umax.h, s/dgux.h, s/bsd4-2.h, s/bsd4-3.h:
3344 * s/hpux.h: Don't define HAVE_VFORK.
aaf2320c
DL
3345
3346 * s/gnu-linux.h: Don't define HAVE_VFORK or HAVE_SYS_SIGLIST.
3347
3348 * s/nextstep.h: Don't define HAVE_ALLOCA.
3349
3350 * config.in: Add vfork bits.
3351
eedf8bde
GM
33522000-02-12 Gerd Moellmann <gerd@gnu.org>
3353
3354 * process.c (Fopen_network_stream) [POLL_FOR_INPUT]: Register
3355 unwind function to undo the effect of stopping atimers.
3356
3357 * keyboard.c (bind_polling_period): Stop all timers except
3358 poll_timer.
3359
3360 * atimer.c (stopped_atimers): New variable.
3361 (stop_other_atimers, run_all_atimers, unwind_stop_other_atimers):
3362 New functions.
3363
3364 * atimer.h (stop_other_atimers, run_all_atimers)
3365 (unwind_stop_other_atimers): Add function prototypes.
427ec082 3366
eedf8bde
GM
3367 * s/hpux10.h (HAVE_XRMSETDATABASE): Define if not already defined.
3368
8476c2f8
KR
33692000-02-11 Ken Raeburn <raeburn@gnu.org>
3370
3371 * Makefile.in (LIBX): Link in tiff library before jpeg, since tiff
3372 library may depend on jpeg.
3373 (atimer.o): Depends on atimer.c.
3374
0e85e4a3
KH
33752000-02-11 Kenichi Handa <handa@etl.go.jp>
3376
3377 * insdel.c (del_range_1): Call update_compositions.
3378 (del_range_both): Call update_compositions just once..
3379
97fa0cc8
DL
33802000-02-10 Dave Love <fx@gnu.org>
3381
3382 * xfns.c (create_frame_xic): Fix initialization of automatic
3383 aggregates for pcc.
3384
25566a3c
KH
33852000-02-09 Kenichi Handa <handa@etl.go.jp>
3386
3387 * ccl.c (CCL_MAKE_CHAR): New macro.
3388 (ccl_driver) <CCL_TranslateCharacter>: Check the validity of
3389 registers by CCL_MAKE_CHAR before calling translate_char.
3390 <CCL_TranslateCharacterConstTbl> Likewise.
3391
69da54ba
DL
33922000-02-08 Dave Love <fx@gnu.org>
3393
3394 * lread.c (__EXTENSIONS__): Define.
3395
f7136ee8
GM
33962000-02-08 Gerd Moellmann <gerd@gnu.org>
3397
3398 * puresize.h (BASE_PURESIZE): Increase to 650000.
3399
7768790b
EZ
34002000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
3401
3402 * msdos.c (XMenuActivate): Turn off the cursor after displaying
3403 the help message.
3404
38fd211b
EZ
34052000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
3406
3407 * s/msdos.h (INTERNAL_TERMINAL): Add capabilities se, so, us, ue,
3408 md, mh, mb, mr, and me to the fake termcap entry.
3409
66e4690f
KR
34102000-02-06 Ken Raeburn <raeburn@gnu.org>
3411
3412 * sound.c (sound_cleanup): Don't call device close routine if the
3413 function pointer is null.
3414
a75dfea0
AI
34152000-02-06 Andrew Innes <andrewi@gnu.org>
3416
3417 * dispextern.h: Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM,
3418 around image definitions and prototypes.
3419 (gamma_correct) [WINDOWSNT]: New prototype.
3420
3421 * w32term.c (x_make_frame_visible): Replace call to
3422 input_poll_signal with poll_for_input.
3423
3424 * window.c [WINDOWSNT]: Include w32term.h.
3425
3426 * xdisp.c [WINDOWSNT]: Include w32term.h.
3427
3428 * makefile.nt: Add dependencies on w32gui.h.
3429 (OBJ1): Include atimer.obj.
3430 ($(BLD)\atimer.obj): New dependency rule.
3431
3432 * w32.c (sigmask): New function (does nothing).
3433 (sigunblock): Ditto.
3434
3435 * frame.c [WINDOWSNT]: Include w32term.h.
3436
3437 * w32gui.h (struct W32FontStruct): Add ascent and descent slots.
3438
3439 * lread.c (syms_of_lread): Fix literal newlines.
3440
3441 * emacs.c (USAGE): Split into USAGE1 and USAGE2, to work-around
3442 the string constant limit (2048 bytes) in MSVC.
3443 (main): Ditto.
3444
59ddecde
GM
34452000-02-05 INOUE Seiichiro <inoue@ainet.or.jp>
3446
3447 * xterm.c (x_display_and_set_cursor) [HAVE_X_I18N]: Set pre-edit
3448 area.
3449 (x_display_cursor) [HAVE_X_I18N]: Don't set it here.
3450 (XTread_socket) [HAVE_X_I18N]: <KeyPress, KeyRelease>: Don't
3451 dispatch the event.
3452
07590973
DL
34532000-02-04 Dave Love <fx@gnu.org>
3454
3455 * fileio.c: Remove some unused vars.
3456 (_GNU_SOURCE): Define (for euidaccess).
3457
3458 * lread.c (_XOPEN_SOURCE): Declare (for ftello).
3459
3460 * minibuf.c (read_minibuf_noninteractive): Remove undeclared
3461 gcpro1, gcpro2.
3462 (read_minibuf): Deal with allow_props correctly.
3463
649351f9
EZ
34642000-02-03 Eli Zaretskii <eliz@is.elta.co.il>
3465
3466 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Enlarge to 60000.
3467
66e4690f 34682000-02-03 Ken Raeburn <raeburn@gnu.org>
f1b9c7c1
KR
3469
3470 * search.c (compile_pattern): If a cache entry has a nil regexp,
3471 fill in that entry instead of clobbering a previously cached
3472 string regexp.
3473
66e4690f 34742000-02-02 Ken Raeburn <raeburn@gnu.org>
15c9cf81
KR
3475
3476 * puresize.h (BASE_PURESIZE): Increase to 610000.
3477
d240a249
GM
34782000-02-02 Gerd Moellmann <gerd@gnu.org>
3479
3480 * frame.c (Fframe_parameters): Add GCPRO because tty_color_name
3481 can GC.
3482
ca91fb26
KH
34832000-02-02 Kenichi Handa <handa@etl.go.jp>
3484
25660570
KH
3485 * ccl.c (ccl_driver) <CCL_WriteExprRegister>: Set jump_address
3486 instead of incrementing ic directly.
3487 <CCL_WriteExprConst> Likewise.
3488 <ccl_set_expr>: Set ic to jump_address.
3489
ca91fb26
KH
3490 * fileio.c (e_write): Fix the handling of
3491 CODING_FINISH_INSUFFICIENT_SRC.
3492
2ede9689
DL
34932000-02-01 Dave Love <fx@gnu.org>
3494
3495 * editfns.c (Fpropertize): Doc fix.
3496
3497 * process.c (Fstart_process): Doc fix.
3498
3499 * eval.c: Fix various doc strings not to duplicate information
3500 from help-manyarg-func-alist.
3501
3502 * window.c (Fset_window_margins): Don't make interactive. Doc
3503 fix.
3504
3505 * doc.c (Vhelp_manyarg_func_alist): New variable.
3506 (Fdocumentation): Use it.
3507 (syms_of_doc): Define it.
3508
b6680a0e
GM
35092000-01-31 Gerd Moellmann <gerd@gnu.org>
3510
2cb750ba
GM
3511 * xterm.c (xim_open_dpy): Remove unused local variable.
3512
74e9213b
GM
3513 * emacs.c (USAGE): Use term `display options' instead of `X
3514 options'.
3515
3516 * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: New function.
3517 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
3518
b6680a0e
GM
3519 * fns.c (sweep_weak_table): New function.
3520 (sweep_weak_hash_tables): Use it. Keep on marking until there
3521 is no more change.
3522
994c5afe
GM
35232000-01-30 Gerd Moellmann <gerd@gnu.org>
3524
3525 * xterm.c (x_delete_display): Update next_noop_dpyinfo to ensure
3526 that XTread_socket does not crash by trying to call XNoOp on a
3527 closed display.
427ec082 3528
f00276e3
JR
35292000-01-30 Jason Rumney <jasonr@gnu.org>
3530
3531 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
3532 Change selected_frame to SELECTED_FRAME ().
3533 (w32_console_mouse_position): Remove #ifndef MULE from around
3534 `insist' parameter.
3535
3536 * makefile.nt: Remove dosfns.obj.
3537
3538 * term.c (term_init) [WINDOWSNT]: Initialize TN_max_colors.
3539
3540 * w32fns.c (w32_defined_color): Check for valid frame before
3541 applying gamma correction. Eliminate dependency on frame elsewhere.
3542 (w32_load_system_font): Switch FIXED_PITCH and VARIABLE_PITCH.
3543 (w32_to_x_font): Use resx and resy not height_in and width_in.
3544 (x_to_w32_font): Doc fix.
3545 (xlfd_strip_height): New function to strip and return font height.
3546 (w32_font_match): Compare height separately from rest of xlfd
3547 spec, using xlfd_strip_height.
3548
3549 * w32term.c (w32_term_init): Swap resx and height_in, resy and
3550 width_in. Use w32_defined_color in place of defined_color.
3551
3552 * w32faces.c: Merge more of DOS and X specifics in preparation for
3553 merge with xfaces.c.
3554 (defined_color): Remove FIXME comment.
3555 (tty_color_name): Provide w32-specific function.
3556 (realize_tty_face): Handle FACE_TTY_DEFAULT*_COLOR specially.
3557
3558 * w32console.c (turn_on_face, turn_off_face): Removed.
3559 (w32_face_attributes): New function.
3560 (Global_variables): Reduce scope where possible.
3561 (clear_frame, ins_del_lines, scroll_line): Use char_attr_normal as
3562 fill attribute.
3563 (hl_mode): Don't modify text attributes.
3564 (write_glyphs): Don't do anything if len <= 0. Use
3565 w32_face_attributes to get attributes for drawing. Write
3566 terminating codes using char_attr_normal.
3567 (reset_terminal_modes, set_terminal_modes): Turn off highlight.
3568 (update_begin, update_end): Likewise.
3569 (vga_stdcolor_name): New function.
3570 (initialize_w32_display): Remove char_attr_reverse and char_attr.
3571 (Fset_screen_color): Remove char_attr_reverse.
3572
b08e8bb2
GM
35732000-01-29 Gerd Moellmann <gerd@gnu.org>
3574
3575 * xfns.c (xic_set_preeditarea): Take window parameter and
3576 window-relative pixel-positions.
3577
3578 * xterm.c (x_display_cursor): Set XIC pre-edit area only if window
3579 is its frame's selected window.
3580 (xim_instantiate_callback): Likewise.
3581
3582 * xfns.c (x_create_im): Removed.
3583 (DEFAULT_STYLE, DEFAULT_FONT): Removed.
3584 (supported_xim_styles): Renamed from supported_styles.
3585 (best_xim_style): Renamed from best_style.
3586 (create_frame_xic): Renamed from xic_create_frame.
3587 (free_frame_xic): Renamed from xic_destroy_frame.
427ec082 3588
b08e8bb2
GM
35892000-01-29 INOUE Seiichiro <inoue@ainet.or.jp>
3590
3591 * xterm.c (XTread_socket) [HAVE_X_I18N]: If event is for none of
3592 our frames, call XFilterEvent with 2nd parameter `None'.
3593 (XTread_socket) <KeyPress> [HAVE_X_I18N]: Handle XmbLookupString
3594 returning XBufferOverflow.
3595 (XTread_socket) <ConfigureNotify> [HAVE_X_I18N]: Set XIC status
3596 area.
3597 (x_display_cursor) [HAVE_X_I18N]: Set XIC pre-edit area.
3598 (x_new_fontset) [HAVE_X_I18N]: Create XIC status area fontset.
3599 (xim_destroy_callback, xim_open_dpy, xim_instantiate_callback)
3600 (xim_initialize, xim_close)
3601 [HAVE_X_I18N && HAVE_X11R6]: New functions.
3602 (x_destroy_window) [HAVE_X_I18N]: Call xic_destroy_frame.
3603 (x_term_init) [HAVE_X_I18N]: Call xim_initialize.
3604 (x_delete_display) [HAVE_X_I18N]: Call xim_close.
3605
3606 * xterm.h (struct x_display_info) [HAVE_X_I18N]: Add members `xim'
3607 and `xim_styles'.
3608 (struct x_output) [HAVE_X_I18N]: Remove member `xim', add
3609 `xic_style' and `xic_xfs'.
3610 (FRAME_MENUBAR_HEIGHT, FRAME_X_XIM, FRAME_X_XIM_STYLES)
3611 (FRAME_XIC_STYLE, FRAME_XIC_FONTSET): New macros.
3612 (FRAME_XIM): Removed.
3613
3614 * xfns.c (supported_styles): New variable.
3615 (DEFAULT_STYLE, DEFAULT_FONT): New macros
3616 (xic_create_xfontset, best_style, xic_create_frame)
3617 (xic_destroy_frame, xic_set_preeditarea, xic_set_statusarea)
3618 (xic_set_xfontset): New functions.
3619
142e109c
DL
36202000-01-28 Dave Love <fx@gnu.org>
3621
3622 * s/irix6-5.h: Revert last change after change to irix5-0.h.
3623
3624 * m/iris4d.h (C_SWITCH_MACHINE): Don't use -G0.
3625
b02786f9
GM
36262000-01-28 Gerd Moellmann <gerd@gnu.org>
3627
d060bc9f
GM
3628 * buffer.c (Fother_buffer): Don't call Fset_buffer_major_mode
3629 for *scratch* if it already existed.
3630
b02786f9
GM
3631 * emacs.c (USAGE): New macro.
3632 (main): Use it to display usage information.
3633
2c52d7e4
EZ
36342000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
3635
3636 Support for the menu-help feature:
3637
3638 * msdos.h: Change prototypes of XMenuAddSelection and
3639 XMenuActivate.
3640
3641 * msdos.c (IT_clear_end_of_line): Print the extent of the cleared
3642 part of the line to the termscript file.
3643 (IT_clear_to_end): Clear the entire line, not just its beginning.
3644 (menu_help_message, prev_menu_help_message): New variables.
3645 (IT_menu_make_room): Make room for the help_text member.
3646 (IT_menu_display): New argument disp_help; all callers changed.
3647 If disp_help is non-zero, store the help text of the active menu
3648 item in menu_help_message.
3649 (XMenuAddPane): Initialize the help_text member to NULL.
3650 (XMenuAddSelection): New argument help_text. Store it in the
3651 XMenu structure.
3652 (XMenuActivate): New argument help_callback. If the value of
3653 menu_help_message has changed since the last time, display the
3654 menu help message text while waiting for the mouse to move. Clear
3655 the echo area before exiting.
3656 (XMenuDestroy): Free the help_text member.
3657
ffe0bcd1
GM
36582000-01-27 Gerd Moellmann <gerd@gnu.org>
3659
3660 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT]: Pass help to
3661 XMenuAddSelection. Pass help callback to XMenuActivate.
3662 (menu_help_callback) [!USE_X_TOOLKIT]: New function.
3663
50dbd23f
EZ
36642000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
3665
3666 * atimer.c (start_atimer) [!HAVE_SETITIMER]: Use EMACS_SET_SECS
3667 and EMACS_SET_USECS.
3668
f5941bf8
GM
36692000-01-26 Dave Love <fx@gnu.org>
3670
6c67ddee
DL
3671 * editfns.c (Fchar_after, Fchar_before): Doc fix.
3672
f5941bf8
GM
3673 * bytecode.c (Fbyte_code): Use {BEFORE,AFTER}_POTENTIAL_GC where
3674 an error may be signalled.
3675
9e49c990
GM
36762000-01-26 Gerd Moellmann <gerd@gnu.org>
3677
fc3cb460
GM
3678 * s/irix6-5.h [__GNUC__ && __GNUC_MINOR__ >= 95]: Undef
3679 LD_SWITCH_SYSTEM inherited from irix5-0.h.
3680
9e49c990
GM
3681 * bytecode.c (Fbyte_code) [BYTE_CODE_SAFE]: Fix typo.
3682
d0c037d8
GM
36832000-01-25 Gerd Moellmann <gerd@gnu.org>
3684
3685 * charset.c (Fstring): If there is a multibyte char among
3686 the args, always return a multibyte string.
3687
e12489f9
GM
36882000-01-25 Gerd Moellmann <gerd@gnu.org>
3689
3690 * sysdep.c (sys_select): Turn atimers off and on instead of
3691 recording and restoring old alarm handler
3692
3693 * process.c (toplevel): Include atimer.h.
3694 (create_process_1): Rewritten.
3695 (create_process): Use atimers instead of alarm.
3696 (wait_reading_process_input) [hpux]: Turn atimers off instead
3697 of turning off SIGALRM.
3698 (wait_reading_process_input): Turn off atimers instead off
3699 calling stop_polling.
3700
3701 * emacs.c (main): Call init_atimer.
3702
3703 * keyboard.c (toplevel): Include systime.h and atimer.h.
3704 (polling_for_input): Removed because unused.
3705 (input_poll_signal) [POLL_FOR_INPUT]: Removed.
3706 (poll_timer): New variable.
3707 (poll_for_input, poll_for_input_1): New functions.
3708 (start_polling, stop_polling): Rewritten.
3709
3710 * keyboard.h (polling_for_input): Removed.
427ec082 3711
e12489f9
GM
3712 * atimer.h, atimer.c: New files.
3713
3714 * Makefile.in (obj): Add atimer.o.
3715 (atimer.o): New target.
3716
3717 * blockinput.h (pending_atimers): Add extern declaration.
3718 (UNBLOCK_INPUT): Rewritten. Handle pending atimers.
3719
3720 * lisp.h (popup_activated_flag): Add extern declaration.
3721
3722 * xmenu.c (popup_activated_flag): Make externally visible.
3723 (popup_activate_callback) [USE_MOTIF]: Increment
3724 popup_activated_flag.
3725 (popup_deactivate_callback) [USE_MOTIF]: Decrement it.
3726
3727 * xterm.c (toplevel): Include atimer.h.
3728 (toolkit_scroll_bar_interaction): New variable.
3729 (Fxt_process_timeouts): Removed.
3730 (x_process_timeouts): New function.
3731 (xt_action_hook): Clear toolkit_scroll_bar_interaction.
3732 (x_send_scroll_bar_event): Set toolkit_scroll_bar_interaction.
3733 (x_make_frame_visible): Call poll_for_input_1 instead of
3734 input_poll_signal. Don't call alarm.
3735 (x_initialize): Install timer calling x_process_timeouts.
427ec082 3736
1e5279b9
DL
37372000-01-24 Dave Love <fx@gnu.org>
3738
6c67ddee 3739 * s/irix5-0.h: Don't set LD_SWITCH_SYSTEM -- we use unexelf now.
1e5279b9
DL
3740 Don't use -cckr -- apparently not now necessary.
3741
edf6aeb8
EZ
37422000-01-24 Eli Zaretskii <eliz@is.elta.co.il>
3743
3744 * msdos.c (IT_menu_display): Truncate long menu lines at the right
3745 screen boundary.
3746
9badad41
JR
37472000-01-23 Jason Rumney <jasonr@gnu.org>
3748
3749 * w32fns.c (w32_defined_color): Apply gamma correction before
3750 trying to map to the palette.
3751 (w32_wnd_proc) [WM_ERASE_BACKGROUND]: Pass device context of frame
3752 to w32_clear_rect.
3753
3754 * w32term.c (w32_fill_rect): Do not try to deal with NULL hdc
3755 here. Callers changed to always pass real device context.
3756 (w32_draw_bitmap): Likewise.
3757 (w32_get_glyph_overhangs): Likewise.
3758 (w32_draw_box_rect): Make use of s->hdc rather than getting a new
3759 one.
3760 (w32_set_vertical_scroll_bar): Pass correct HWND parameters to
3761 pfnSetScrollInfo and SetScrollRange.
3762 (x_get_char_face_and_encoding): Don't turn iso8859-1 characters
3763 back into MULE characters after decoding them.
3764 (x_get_glyph_face_and_encoding): Likewise.
3765 (w32_per_char_metric): Use GetCharExtentPoint32W as fallback when
3766 GetCharABCWidthsW fails, since this is defined on Windows 9x.
3767 (x_produce_glyphs): Calculate per char metrics for a character
3768 that we know exists in default font when font_not_found_p is true.
3769
63bd786b
JR
37702000-01-22 Jason Rumney <jasonr@gnu.org>
3771
3772 * makefile.nt (intervals.obj, composite.obj): New modules.
3773 (composite.h): Added as dependency where appropriate.
3774
3775 * w32gui.h (XGCValue): New struct for emulating X GCs.
3776
3777 * w32term.h (XCharStruct): New struct for emulating X.
3778
3779 * w32console.c (turn_on_face, turn_off_face): New functions.
3780 (change_line_highlight): New prototype for new redisplay.
3781 (write_glyphs): Support multibyte text. Support faces.
3782
3783 * w32faces.c: Complete rewrite for new redisplay based on new
3784 xfaces.c.
3785
3786 * w32fns.c: Use SELECTED_FRAME macro in place of selected_frame
3787 throughout. struct frame * in place of FRAME_PTR.
3788 Skeleton support for images, toolbars, tooltips from xfns.c.
3789 (Fx_create_frame): Use system default for default scroll bar
3790 width.
3791 (w32_get_arg): Renamed from x_get_arg.
3792 (Fx_file_dialog): New function.
3793 (w32_list_fonts): Check cache before asking system.
3794 (Vw32_enable_synthesized_fonts): New variable.
3795 (Vw32_enable_italics): Obsolete, removed.
3796
3797 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
3798 Use SELECTED_FRAME macro.
3799
3800 * w32menu.c: Add skeleton support for help strings on menus.
3801 (add_menu_item): Native checkbox and radio support added, but not
3802 yet enabled due to bugs.
3803 (push_menu_item): Add parameters type, selection and help.
3804 Callers updated.
3805 Formatting changes to reduce unnecessary diffs with xmenu.c.
3806
3807 * w32select.c (Fw32_set_clipboard_data): Update call to
3808 find_charset_in_str.
3809
3810 * w32term.c: Complete rewrite for new redisplay based on new
3811 xterm.c with necessary sections merged back in from old w32term.c.
3812
6ffd3cf7 38132000-01-21 Richard M. Stallman <rms@gnu.org>
b50c9214
RS
3814
3815 * data.c (set_internal): Further fix in same criterion.
3816
6ffd3cf7 38172000-01-20 Richard M. Stallman <rms@gnu.org>
8cc95642
RS
3818
3819 * data.c (set_internal): Fix the criteria for whether
3820 to swap out the old cached binding.
3821
60af03f1
DL
38222000-01-19 Dave Love <fx@gnu.org>
3823
3824 * lread.c: (syms_of_lread) [user-init-file]: Doc change.
3825
f9be074f
KH
38262000-01-18 Kenichi Handa <handa@etl.go.jp>
3827
3828 * regex.c (re_compile_fastmap): While checking a range table for
3829 `charset', skip flag bits for a character class correctly.
3830
52b8dbf9
GM
38312000-01-17 Gerd Moellmann <gerd@gnu.org>
3832
d36100c9
GM
3833 * m/news-risc.h (LD_SWITCH_MACHINE): Define differently for GCC.
3834
52b8dbf9
GM
3835 * xfns.c (x_window): Call lw_create_widget with new parameter
3836 list.
3837
3838 * widget.c (EmacsFrameSetCharSize): Change size of children first
3839 because of problems with main window geometry management under
3840 Lesstif.
3841
3842 * xmenu.c (enum menu_item_idx): New enumeration replacing defines
3843 MENU_ITEMS_ITEM_.*.
3844 (MENU_ITEMS_ITEM_HELP): New enumerator.
3845 (push_menu_item): Add parameter HELP. Record help in menu_items.
3846 (single_menu_item, single_submenu, list_of_items): Call
3847 push_menu_item with new parameter.
3848 (single_submenu): Set help string in widget value.
3849 (menu_highlight_callback): New function.
3850 (set_frame_menubar): Call lw_create_widget with new
3851 parameter list.
3852 (xmenu_show, xdialog_show): Ditto.
3853
3139018f
GM
38542000-01-13 Gerd Moellmann <gerd@gnu.org>
3855
3856 * sound.c (Fplay_sound): Improve doc string.
3857
83c8f461
RS
38582000-01-11 Richard M. Stallman <rms@gnu.org>
3859
3860 * lisp.h (set_internal): Enter the new arg.
3861
3862 * eval.c (specbind): Record buffer-local variables specially,
3863 indicating which buffer's binding was saved.
3864 (unbind_to): Restore buffer-local variables specially
3865 in the proper buffer.
3866
3867 * data.c (set_internal): New arg BUF.
427ec082 3868
83c8f461
RS
3869 * eval.c (specbind, unbind_to): Pass new arg to set_internal.
3870 * data.c (Fset): Pass new arg to set_internal.
3871 * bytecode.c (Fbyte_code): Pass new arg to set_internal.
427ec082 3872
1fab1775
GM
38732000-01-11 Gerd Moellmann <gerd@gnu.org>
3874
3875 * .gdbinit: Adapt to new strings. Add xbacktrace, xreload,
3876 xprintsym.
3877
83c8f461 38782000-01-11 Richard M. Stallman <rms@gnu.org>
6f59462e
RS
3879
3880 * minibuf.c (Ftry_completion): Doc fix.
3881
7a85e4df
GM
38822000-01-11 Gerd Moellmann <gerd@gnu.org>
3883
3884 * keyboard.c (Fclear_this_command_keys): Clear recent_keys
3885 vector, too.
3886
a970dae4
AS
38872000-01-11 Andreas Schwab <schwab@suse.de>
3888
3889 * coding.c (code_convert_region): Initialize total_skip.
3890
c65d14ee
DL
38912000-01-08 Dave Love <fx@gnu.org>
3892
3893 * eval.c (Fuser_variable_p): Check customizability too.
3894
834938d2
GM
38952000-01-07 Gerd Moellmann <gerd@gnu.org>
3896
3897 * minibuf.c (Fcompleting_read): Doc fix.
3898
e0303cd6
GM
38992000-01-05 Gerd Moellmann <gerd@gnu.org>
3900
8a26744b
GM
3901 * s/freebsd.h (C_SWITCH_SYSTEM): Add -I /usr/local/include and
3902 -L /usr/local/lib.
3903
e0303cd6
GM
3904 * xfns.c (x_create_im): New function to set IM and IC of a frame.
3905 Check that input style is supported before trying to create an
3906 IC for it.
3907 (x_window): Call x_create_im.
427ec082 3908
2e471eb5
GM
39092000-01-04 Gerd Moellmann <gerd@gnu.org>
3910
560a7bd2
GM
3911 * xfns.c (current_gif_memory_src): New variable.
3912 (gif_load): Record the address of the current memory source
3913 in current_gif_memory_src.
3914 (gif_read_from_memory): Use current_gif_memory_src.
3915
f9ee84a3
GM
3916 * systime.h (EMACS_GET_TIME, EMACS_ADD_TIME, EMACS_SUB_TIME): Give
3917 macros statement form.
3918
d1299cde
GM
3919 * sound.c (struct sound): Renamed from struct sound_file.
3920 (struct sound): Add members `data' and `header_size'.
3921 (enum sound_attr): Add SOUND_DATA.
3922 (current_sound, current_sound_device): Variables renamed from
3923 sound_file and sound_device.
3924 (parse_sound): Parse :data.
3925 (parse_sound): Handle sound data in strings.
3926 (find_sound_type): Function renamed from find_sound_file_type.
427ec082 3927 (wav_init, au_init): Fail if sound's header_size is smaller than
d1299cde
GM
3928 needed header size.
3929 (wav_play, au_play): Play sounds from string data.
3930
2e471eb5
GM
3931 * puresize.h (BASE_PURE_SIZE): Increase to 600000.
3932
3933 * lisp.h: Add prototype for allocate_string_data.
3934
3935 * alloc.c (Fgarbage_collect): Return number of live and free
3936 strings.
3937
3938 * alloc.c (mark_buffer): Remove code in #if 0.
3939 (gc_sweep): Ditto.
3940 (UNMARK_BALANCE_INTERVALS): Give the macro statement form.
3941 (strings_consed): New variable.
3942 (allocate_string): Set it.
3943 (syms_of_alloc): Add DEFVAR_INT for strings_consed.
3944 (Fmemory_use_counts): Return strings_consed. Use Flist.
3945
3946 * alloc.c: General cleanup in comments etc. Remove conditional
3947 compilation for `standalone'.
3948
3949 * lisp.h (struct Lisp_String): Make DATA member `unsigned char *'.
3950
3951 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P):
3952 (GC_STRING_BYTES, GC_STRING_CHARS): New macros.
3953 (DONT_COPY_FLAG): Removed.
3954 (SBLOCK_SIZE, LARGE_STRING_BYTES): New macros.
3955 (struct sdata, struct sblock): New
3956 (struct string_block): Rewritten.
3957 (STRINGS_IN_STRING_BLOCK): New macro.
3958 (oldest_sblock, current_sblock, total_strings, total_free_strings)
3959 (large_sblocks, string_blocks, string_free_list): New variables.
3960 (NEXT_FREE_LISP_STRING, SDATA_OF_STRING, SDATA_SIZE): New macros.
3961 (init_strings): Rewritten.
3962 (allocate_string, allocate_string_data, compact_small_strings)
3963 (free_large_strings, sweep_strings): New functions.
3964 (STRING_BLOCK_SIZE, STRING_BLOCK_OUTSIZE)
3965 (struct string_block_head, current_string_block)
3966 (first_string_block, large_string_blocks, STRING_FULLSIZE)
3967 (STRING_PAD): Removed.
3968 (make_uninit_multibyte_string, make_pure_string): Rewritten.
3969 (Fgarbage_collect): Don't set mark bit in large strings.
3970 (mark_object): Mark strings differently. Mark symbol names
3971 differently.
3972 (survives_gc_p): Test marked strings differently.
427ec082 3973 (gc_sweep): Sweep strings differently, unmark strings in
2e471eb5
GM
3974 symbol names.
3975 (compact_strings): Removed.
3976
42608ba8
EZ
39772000-01-04 Eli Zaretskii <eliz@is.elta.co.il>
3978
3979 * xfaces.c (syms_of_xfaces): defsubr Scolor_gray_p and
3980 Scolor_supported_p even if HAVE_X_WINDOWS is not defined.
3981
e0a09e1a
KH
39822000-01-04 Kenichi Handa <handa@etl.go.jp>
3983
dd9f0750 3984 * fileio.c (Finsert_file_contents): Signal error if visiting file
427ec082 3985 in a non-empty buffer.
dd9f0750 3986
3c0f3b15 3987 * term.c (encode_terminal_code): Fix the previous change.
e0a09e1a 3988
44cd3ae5
GM
39892000-01-03 Gerd Moellmann <gerd@gnu.org>
3990
3991 * xfaces.c (syms_of_xfaces): Change Sface_color_gray_p to
3992 Scolor_gray_p, Sface_color_supported_p to Scolor_supported_p.
3993
3994 * s/hpux9.h (NO_EDITRES): Define even if HAVE_LIBXMU.
3995
c182a70f
EZ
39962000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
3997
3998 * xdisp.c (handle_single_display_prop) [HAVE_WINDOW_SYSTEM]: No
3999 need to test for MSDOS frames.
4000
24480d5b
EZ
40012000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
4002
4003 * dosfns.c (unspecified_colors): Remove.
4004 (msdos_stdcolor_idx): Use global variables unspecified_fg and
4005 unspecified_bg.
4006 (msdos_stdcolor_name): Return strings for unspecified fore- and
4007 back-ground colors.
4008
4009 * xfaces.c (Qunspecified_fg, Qunspecified_bg): Remove.
aaf2320c 4010 (syms_of_xfaces): Remove their staticpro's.
24480d5b
EZ
4011 (tty_color_name): Return Lisp strings for unspecified fore- and
4012 back-ground colors.
4013 (Finternal_set_lisp_face_attribute): Remove the special treatment
4014 for Qunspecified_{f,b}g.
4015 (realize_default_face): Replace Qunspecified_{f,b}g with a Lisp
4016 string.
4017
047f434a
GM
40182000-01-03 Gerd Moellmann <gerd@gnu.org>
4019
4020 * xdisp.c (reseat_at_next_visible_line_start): Position before
4021 newline only if ending up on a newline.
4022 (next_element_from_ellipsis): Return success. Handle case of
4023 displaying no ellipsis. Fix case of ellipsis defined in display
4024 table.
4025 (next_element_from_buffer): Return 0 if next_element_from_ellipsis
4026 returns 0.
4027
d684c676
EZ
40282000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
4029
4030 * xfaces.c (Fcolor_gray_p): Renamed from face-color-gray-p.
4031 (Fcolor_supported_p): Renamed from face-color-supported-p.
4032
5fe1d139
EZ
40332000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
4034
4035 * xfaces.c (tty_defined_color): Pass frame to tty-color-desc. The
4036 list of colors renamed to tty-defined-color-alist.
4037 (tty_color_name): Pass the frame to tty-color-by-index.
4038 (realize_tty_face): tty-color-alist is now a function which
4039 accepts the frame as argument.
4040
4041 * term.c (Ftty_display_color_p): Accept an optional argument
4042 FRAME.
4043
816be8b8
EZ
40442000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
4045
4046 * term.c (insert_glyphs): Pass glyph, not &glyph, to
4047 encode_terminal_code.
4048
b635321e
EZ
40492000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
4050
4051 * dispnew.c (mode_line_string): Support termcap frames as well.
4052
9b784e96
GM
40532000-01-01 Gerd Moellmann <gerd@gnu.org>
4054
27189709
GM
4055 * syntax.c (Fforward_word): Undo previous change.
4056
4057 * editfns.c (Fconstrain_to_field): Don't constrain if
4058 inhibit-field-text-motion is non-nil.
4059 (Fline_beginning_position): Undo previous change.
4060 (Fline_end_position): Ditto.
4061
4062 * syntax.c (Fforward_word): Notice field boundaries only if
4063 inhibit-field-text-motion is nil.
4064
4065 * lisp.h: Add extern declaration for Vinhibit_field_text_motion.
4066
4067 * editfns.c (Vinhibit_field_text_motion): New variable.
4068 (inhibit-field-text-motion): New DEFVAR_LISP.
4069 (Fline_beginning_position, Fline_end_position): Notice field
4070 boundaries only if inhibit-field-text-motion is nil.
4071
45158a91
GM
4072 * xfns.c (x_create_x_image_and_pixmap): Remove parameter FILE.
4073 All calls adjusted.
4074 (x_build_heuristic_mask): Likewise.
4075 (xbm_load_image_from_file): Change error output.
4076 (xbm_load, xpm_load, pbm_load, png_load, jpeg_load, tiff_load)
4077 (gif_load, gs_load, x_kill_gs_process): Ditto.
4078
9b784e96
GM
4079 * xfns.c (gif_load): Avoid sign extension and thus out of bounds
4080 color indices when accessing raster pixels.
63cec32f
GM
4081 (gif_image_p, png_image_p, jpeg_image_p, tiff_image_p): Allow only
4082 one of :file or :data.
4083 (enum pbm_keyword_index): Add PBM_DATA.
4084 (pbm_format): Add :data.
4085 (pbm_image_p): Allow either :file or :data.
4086 (pbm_read_file): New function.
4087 (pbm_scan_number): Rewritten to read from string.
4088 (pbm_load): Support :data.
9b784e96 4089
5ad6a5fb
GM
40901999-12-31 Gerd Moellmann <gerd@gnu.org>
4091
4092 * xfns.c: New image functions adapted to Emacs conventions.
4093 (png_load, tiff_load, jpeg_load, gif_load): Always GCPRO local
4094 variable `file'.
4095
63448a4d
WP
40961999-12-31 William M. Perry <wmperry@aventail.com>
4097
4098 * xfns.c (jpeg_format): Added the :data keyword
4099 (jpeg_image_p): JPEG is valid with :file _or_ :data
4100 (jpeg_memory_src): Defined new JPEG image source to read from a
4101 memory buffer.
4102 (jpeg_load): Pay attention to the :data keyword if specified.
4103 Instantiates a jpeg_memory_src instead of jpeg_stdio_src if
4104 found.
4105 (png_format): Added the :data keyword
4106 (png_image_p): PNG is valid with :file _or_ :data
4107 (png_read_from_memory): New PNG read function to read from a
4108 memory buffer.
4109 (png_load): Pay attention to the :data keyword if specified. Uses
4110 png_set_read_fn() instead of png_init_io() if specified.
4111 (tiff_format): Added the :data keyword for TIFF images.
4112 (tiff_image_p): TIFF is valid with :file _or_ :data
4113 (tiff_read_from_memory): Defined new TIFF I/O functions to read
4114 from a memory buffer.
4115 (tiff_load): Pay attention to the :data keyword if specified.
4116 Uses TIFFClientOpen() instead of TIFFOpen() if specified.
4117 (gif_format): Added the :data keyword
4118 (gif_image_p): GIF is valid with :file _or_ :data
4119 (gif_read_from_memory): New GIF input function to read from a
4120 memory buffer.
c65d14ee 4121 (gif_load): Pay attention to the :data keyword. Uses DGifOpen()
63448a4d
WP
4122 instead of DGifOpenFileName() if specified.
4123
c880678e
GM
41241999-12-31 Gerd Moellmann <gerd@gnu.org>
4125
4126 * xdisp.c (next_element_from_buffer): Change assertion at the end
4127 because it doesn't hold when there's an overlay string at the end
4128 from which we deliver an image.
4129
8ccb9a54
EZ
41301999-12-30 Eli Zaretskii <eliz@is.elta.co.il>
4131
4132 * msdos.c (IT_update_begin): Don't dereference members of struct
4133 window for deleted windows.
4134
12ce2351
GM
41351999-12-30 Gerd Moellmann <gerd@gnu.org>
4136
a915c648
GM
4137 * abbrev.c (Fexpand_abbrev): If expanding an abbrev which has only
4138 a hook, and the hook has a non-nil `no-self-insert' property, let
4139 the return value of the hook specify whether an expansion took
4140 place. If it returns nil, no expansion has been performed.
4141
12ce2351
GM
4142 * xterm.c (x_make_frame_visible): Wait for frame becoming visible
4143 differently.
4144
04ee4f45
EZ
41451999-12-30 Eli Zaretskii <eliz@is.elta.co.il>
4146
4147 * msdos.c (IT_write_glyphs): Track last changes to struct glyph.
4148
7f4bc0c3
EZ
41491999-12-29 Eli Zaretskii <eliz@is.elta.co.il>
4150
4151 * dispnew.c (mode_line_string): Support MS-DOS frames.
4152
dac204bc
GM
41531999-12-29 Gerd Moellmann <gerd@gnu.org>
4154
4155 * eval.c (syms_of_eval): Initialize debugger_may_continue.
4156
7b712ad8
KH
41571999-12-29 Kenichi Handa <handa@etl.go.jp>
4158
4159 * process.c (read_process_output): Fix the args CHARPOS and LENINS
4160 to signal_after_change.
4161
adb9900f
EZ
41621999-12-28 Eli Zaretskii <eliz@is.elta.co.il>
4163
41ad069b
EZ
4164 * msdos.c (dos_set_window_size) [__DJGPP__ > 1]: If the frame
4165 dimensions changed, invalidate the mouse highlight info.
4166 (disable_mouse_highlight, help_echo, previous_help_echo): New
4167 variables.
4168 (IT_set_mouse_pointer, show_mouse_face, clear_mouse_face)
4169 (fast_find_position, IT_note_mode_line_highlight)
4170 (IT_note_mouse_highlight): New functions.
4171 (IT_update_begin): If the redisplay affects the window where the
4172 mouse highlight is, clear the highlight. If the frame where the
4173 highlight was displayed was killed, invalidate the highlight
4174 info.
4175 (IT_update_end): Reset the highlight flag. Reset the mouse
4176 highlight-defer flag.
4177 (IT_frame_up_to_date): New function, if mouse highlight was
4178 deferred due to GC, do it now.
4179 (internal_terminal_init): Initialize mouse-highlight related
4180 members of the_only_x_display. Assign IT_frame_up_to_date to
4181 frame_up_to_date_hook.
4182 (dos_rawgetc): If the mouse moved, update mouse highlight. If
4183 help_echo changed value, generate a HELP_EVENT event.
4184 (syms_of_msdos): Staticpro help_echo and previous_help_echo.
4185
adb9900f
EZ
4186 * msdos.h (struct display_info): New.
4187 (struct x_output): Add the display_info member.
4188 (FRAME_X_DISPLAY_INFO): New macro.
4189
481b5054
GM
41901999-12-28 Gerd Moellmann <gerd@gnu.org>
4191
4192 * xdisp.c (try_window_id): Compute BEG_UNCHANGED and END_UNCHANGED
4193 if MODIFF > 1.
6448a6b3 4194 (dump_glyph_row): Adapt to changes in struct glyph.
481b5054
GM
4195
4196 * buffer.c (modify_overlay): Always compute unchanged info.
4197
a2882b0d
KH
41981999-12-27 Kenichi Handa <handa@etl.go.jp>
4199
4200 * dispextern.h (FACE_FROM_ID): Cast the arg ID to `unsigned'.
4201
89ba5b5f
KH
42021999-12-27 Kenichi Handa <handa@etl.go.jp>
4203
4204 The following changes are to use more bits for face IDs.
4205
4206 * lisp.h (GLYPH): Defined as `int', not `unsigned int'. Now the
4207 lowest 8 bits are single byte character code, the bits above are
4208 face ID.
481b5054 4209 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjusted for the change
89ba5b5f 4210 above.
481b5054
GM
4211 (FAST_MAKE_GLYPH, FSST_GLYPH_FACE): Likewise.
4212 (GLYPH_MASK_REV_DIR, GLYPH_MASK_PADDING): Macros deleted.
89ba5b5f
KH
4213
4214 * charset.h (CHAR_BYTES): Use ((1 << CHARACTERBITS) - 1) instead
4215 of GLYPH_MASK_CHAR.
4216
4217 * charset.c (char_bytes): Use ((1 << CHARACTERBITS) - 1) instead
4218 of GLYPH_MASK_CHAR.
4219
4220 * dispextern.h (struct glyph): Make face_id and padding_p the top
4221 level members. Change members in union `u'.
4222 (GLYPH_EQUAL_P): Check also members face_id and padding_p.
4223 (GLYPH_CHAR_AND_FACE_EQUAL_P): New macro.
4224 (SET_CHAR_GLYPH): Adjusted for the change of struct glyph.
4225 (CHAR_GLYPH_PADDING_P): Likewise.
4226 (GLYPH_FROM_CHAR_GLYPH): Likewise. Always return -1 for multibyte
4227 characters.
4228
481b5054 4229 * dispnew.c (line_hash_code, direct_output_for_insert): Adjusted
89ba5b5f
KH
4230 for the change of struct glyph.
4231 (line_draw_cost): Adjusted for the change of
4232 GLYPH_FROM_CHAR_GLYPH.
4233 (count_match): Use macro GLYPH_CHAR_AND_FACE_EQUAL_P.
4234
4235 * term.c (encode_terminal_code): Adjusted for the change of struct
4236 glyph and GLYPH_FROM_CHAR_GLYPH.
481b5054 4237 (write_glyphs, insert_glyphs, append_glyph): Adjusted for the
89ba5b5f
KH
4238 change of struct glyph.
4239
4240 * xdisp.c: All codes adjusted for the change of struct glyph.
4241
4242 * xterm.c: All codes adjusted for the change of struct glyph.
4243
5bcd116c
KH
42441999-12-27 Kenichi Handa <handa@etl.go.jp>
4245
4246 * composite.h (struct composition): Change the order of declaring
4247 members to reduce the byte size of the structure.
4248
f21b06b7
GM
42491999-12-25 Gerd Moellmann <gerd@gnu.org>
4250
4251 * search.c (looking_at_1): Reset immediate_quit before modifying
4252 global data.
4253
e36557c9
KH
42541999-12-24 Kenichi Handa <handa@etl.go.jp>
4255
4256 * process.c (read_process_output): Fix the arg FROM to
4257 update_compositions.
4258
83c8f461 42591999-12-22 Richard M. Stallman <rms@gnu.org>
f7c9e039
RS
4260
4261 * search.c (Freplace_match): For nonliteral replacement in buffer,
4262 construct all the new text first, then insert all at once.
4263
0b863bd9
DL
42641999-12-22 Dave Love <fx@gnu.org>
4265
4266 * xfns.c (Fx_show_tip): Gcpro `timeout' too.
4267
6d8e8ef3
GM
42681999-12-22 Gerd Moellmann <gerd@gnu.org>
4269
28d7281d
GM
4270 * xfns.c (Fx_create_frame): Move x_default_parameter calls that
4271 lead to size changes to after the X window has been created.
4272
e22ef6eb 4273 * xfaces.c (realize_x_face): Don't use uninitialized local
6d8e8ef3
GM
4274 variable in xassert.
4275
8affcced
KH
42761999-12-22 Kenichi Handa <handa@etl.go.jp>
4277
4278 * xfaces.c (face_color_supported_p): Check by tty_defined_color
6d8e8ef3 4279 only when the frame is not for a window system.
8affcced 4280
f2be1146
GM
42811999-12-22 Gerd Moellmann <gerd@gnu.org>
4282
deca1348
GM
4283 * buffer.c (Fset_buffer_multibyte): Arrange for a thorough
4284 redisplay after changing the multibyteness of a buffer.
4285
f2be1146
GM
4286 * xterm.c (XTread_socket): At the beginning of the loop, pass the
4287 frame's X window to XFilterEvent instead of None because that's
4288 the X window for which the IC was created. This makes dead
4289 accents work when the pointer is not in Emacs' frame.
4290 (XTread_socket) <KeyPress>: Don't call XFilterEvent here.
4291
a744a2ec
DL
42921999-12-20 Dave Love <fx@gnu.org>
4293
4294 * xfns.c (Fx_show_tip): Add missing UNGCPRO.
4295
9e6985ed
GM
42961999-12-19 Gerd Moellmann <gerd@gnu.org>
4297
4298 * eval.c (debugger_may_continue): New variable.
4299 (syms_of_eval): Add a DEFVAR_BOOL for it.
4300 (call_debugger): Bind it.
4301
3b620731
EZ
43021999-12-19 Eli Zaretskii <eliz@is.elta.co.il>
4303
4304 * msdos.c (IT_set_face): Don't swap face colors when highlight or
4305 fp->tty_reverse_p is set, unless the computed colors are identical
4306 to frame colors. Print both original and computed colors to
4307 termscript file.
4308 (IT_write_glyphs): Track the changes in handling of composite
4309 characters.
4310 (IT_set_frame_parameters): Don't set frame colors from
4311 unspecified-fg and unspecified-bg pseudo-colors.
4312
0f9a51c4
DL
43131999-12-17 Dave Love <fx@gnu.org>
4314
4315 * data.c (Fkeywordp): New function.
4316 (syms_of_data): Install it.
4317
363e4e42
EZ
43181999-12-16 Eli Zaretskii <eliz@is.elta.co.il>
4319
4320 * xfaces.c (tty_defined_color): Fix last change.
4321
cfad01b4
GM
43221999-12-15 Gerd Moellmann <gerd@gnu.org>
4323
4324 * xdisp.c (redisplay_window) <optional new window start>: Check
4325 that window start is in [BEGV..ZV].
4326
f9d2fdc4
EZ
43271999-12-15 Eli Zaretskii <eliz@is.elta.co.il>
4328
4329 * dispextern.h (FACE_TTY_DEFAULT_FG_COLOR)
4330 (FACE_TTY_DEFAULT_BG_COLOR): New macros.
4331
4332 * xfaces.c (Qunspecified_fg, Qunspecified_bg): New variables.
4333 (syms_of_xfaces): Initialize and staticpro them.
4334 (tty_defined_color): If the color name is unspecified-fg or
4335 unspecified-bg, return FACE_TTY_DEFAULT_FG_COLOR and
4336 FACE_TTY_DEFAULT_BG_COLOR, respectively, as the pixel value.
4337 (tty_color_name): If the color pixel value is either
4338 FACE_TTY_DEFAULT_FG_COLOR or FACE_TTY_DEFAULT_BG_COLOR, return
4339 Qunspecified_fg or Qunspecified_bg, respectively.
4340 (Finternal_set_lisp_face_attribute): Allow values Qunspecified_fg
4341 and Qunspecified_bg for foreground and background colors.
4342 (realize_default_face): If the foreground and background colors
4343 are not specified, default to Qunspecified_fg and Qunspecified_bg.
4344 (realize_tty_face): By default, set the face colors to
4345 FACE_TTY_DEFAULT_FG_COLOR and FACE_TTY_DEFAULT_BG_COLOR.
4346 [MSDOS]: Handle FACE_TTY_DEFAULT_FG_COLOR and
4347 FACE_TTY_DEFAULT_BG_COLOR when face colors are not defined.
4348 Reverse the colors if the default colors were reversed.
4349
4350 * dispnew.c (init_display): Initialize the frame pixels of the
4351 initial frame to FACE_TTY_DEFAULT_FG_COLOR and
4352 FACE_TTY_DEFAULT_BG_COLOR.
4353
4354 * term.c (turn_on_face): If the default fore- and background
4355 colors are reversed, enter inverse video mode. Don't send color
4356 escape sequences for unspecified foreground and background colors.
4357 (turn_off_face): Handle unspecified-fg and unspecified-bg colors.
4358
4359 * dosfns.c (unspecified_colors): New variable.
4360 (msdos_stdcolor_idx): Handle unspecified-fg and unspecified-bg
4361 color names, return FACE_TTY_DEFAULT_FG_COLOR and
4362 FACE_TTY_DEFAULT_BG_COLOR, respectively.
4363 (msdos_stdcolor_name): Handle FACE_TTY_DEFAULT_FG_COLOR and
4364 FACE_TTY_DEFAULT_BG_COLOR, return Qunspecified_fg and
4365 Qunspecified_bg, respectively.
4366
4367 * msdos.c (IT_set_face): Support FACE_TTY_DEFAULT_FG_COLOR and
4368 FACE_TTY_DEFAULT_BG_COLOR as pixel values.
4369
e19539f1
KH
43701999-12-15 Kenichi Handa <handa@etl.go.jp>
4371
4372 * coding.c (code_convert_region): Fix the secoding arg to
4373 update_compositions.
4374
5ec14d3c
KH
43751999-12-15 Kenichi Handa <handa@etl.go.jp>
4376
4377 The following changes are for the new composition mechanism. We
4378 have deleted `composition' charset and composite characters,
4379 instead introduced a special text property `composition'.
4380
4381 * Makefile.in (INTERVAL_SRC): Include composite.h.
4382 (INTERVAL_OBJ): Include composite.o.
4383 (SOME_MACHINE_OBJECTS): Include composite.o.
4384 (casefiddle.o) (dispnew.o) (indent.o) (process.o) (search.o)
4385 (syntax.o) (window.o) (xdisp.o) (xfaces.o) (xterm.o) (print.o):
4386 Depend on composite.h.
4387 (doc.o): Depend on charset.h.
4388 (keyboard.o) (textprop.o) (intervals.o): Depend on INTERVAL_SRC.
4389 (composite.o): New target.
427ec082 4390
5ec14d3c
KH
4391 * alloc.c (Fmake_string): Adjusted for the change of CHAR_STRING.
4392
4393 * callproc.c (Fcall_process): Call code_convert_string to encode
4394 arguments. Use CODING_REQUIRE_DECODING to check if the process
4395 output should be decoded.
4396
4397 * casefiddle.c: Include composite.h.
4398 (casify_object): Use MAX_MULTIBYTE_LENGTH to allocate memory for a
4399 multibyte character. Adjusted for the change of CHAR_STRING.
4400 (casify_region): Likewise. Call update_compositions.
4401
4402 * category.h (CATEGORY_SET): Delete codes for a composite
4403 character.
4404
4405 * category.c (word_boundary_p): Delete codes for a composite
4406 character.
4407 (Fmake_category_table): New function.
4408 (syms_of_category): Defsubr it.
4409
4410 * ccl.c (CCL_WRITE_CHAR): Adjusted for the change of CHAR_STRING.
4411 (ccl_driver): Delete codes for a composite character.
4412
4413 * charset.h: In this entry, just `Modified' means that codes for a
4414 composite character is deleted.
4415 (LEADING_CODE_COMPOSITION) (CHARSET_COMPOSITION)
4416 (charset_composition) (MIN_CHAR_COMPOSITION)
4417 (MAX_CHAR_COMPOSITION) (GENERIC_COMPOSITION_CHAR)
4418 (COMPOSITE_CHAR_P) (MAKE_COMPOSITE_CHAR) (COMPOSITE_CHAR_ID)
4419 (PARSE_COMPOSITE_SEQ) (PARSE_CHARACTER_SEQ): Deleted.
4420 (MAX_CHAR) (CHARSET_VALID_P) (CHARSET_DEFINED_P) (CHARSET_AT)
4421 (FIRST_CHARSET_AT) (SAME_CHARSET_P) (MAKE_NON_ASCII_CHAR)
4422 (PARSE_MULTIBYTE_SEQ) (SPLIT_NON_ASCII_CHAR) (CHAR_PRINTABLE_P):
4423 Modified.
4424 (SPLIT_STRING): Call split_string, not split_non_ascii_string.
4425 (CHAR_STRING): Delete WORKBUF argument. Call char_string, not
4426 non_ascii_char_to_string.
4427 (STRING_CHAR): Call string_to_char, not string_to_non_ascii_char.
4428 (STRING_CHAR_AND_LENGTH): Likewise.
4429 (FETCH_CHAR_ADVANCE): New macro.
4430 (MAX_COMPONENT_COUNT) (struct cmpchar_info): Deleted.
4431 (MAX_MULTIBYTE_LENGTH): New macro.
4432 (MAX_LENGTH_OF_MULTI_BYTE_FORM): Deleted.
4433 (find_charset_in_str): Argument adjusted.
4434 (CHAR_LEN): Modified.
427ec082 4435
5ec14d3c
KH
4436 * charset.c: In this entry, just `Modified' means that codes for a
4437 composite character is deleted.
4438 (Qcomposition) (leading_code_composition)
4439 (charset_composition) (min_composite_char) (cmpchar_table)
4440 (cmpchar_table_size) (n_cmpchars): Deleted.
4441 (SPLIT_COMPOSITE_SEQ): Deleted.
4442 (SPLIT_MULTIBYTE_SEQ): Modified.
4443 (char_to_string): Renamed from non_ascii_char_to_string.
4444 Modified.
4445 (string_to_char): Renamed from string_to_non_ascii_char.
4446 (split_string): Renamed from split_non_ascii_string.
4447 (char_printable_p) (Fsplit_char)
4448 (Ffind_charset_region) (Ffind_charset_string) (char_valid_p)
4449 (char_bytes) (Fchar_width) (strwidth): Modified.
4450 (find_charset_in_str): Argument CMPCHARP deleted. Modified.
4451 (Fstring): Adjusted for the change of CHAR_STRING. Modified.
4452 (hash_string) (CMPCHAR_HASH_TABLE_SIZE) (cmpchar_hash_table)
4453 (CMPCHAR_HASH_SIZE) (CMPCHAR_HASH_USED) (CMPCHAR_HASH_CMPCHAR_ID)
4454 (str_cmpchar_id) (cmpchar_component) (Fcmpcharp)
4455 (Fcmpchar_component) (Fcmpchar_cmp_rule) (Fcmpchar_cmp_rule_p)
4456 (Fcmpchar_cmp_count): Deleted.
4457 (Fcompose_string): Implemented by Emacs Lisp in composite.el.
4458 (init_charset_once): Modified.
4459 (syms_of_charset): Modified.
4460
4461 * cmds.c (internal_self_insert): Adjusted for the change of
4462 CHAR_STRING.
4463
4464 * coding.h (emacs_code_class_type): Delete the member
4465 EMACS_leading_code_composition.
4466 (COMPOSING_NO) (COMPOSING_WITH_RULE_HEAD) (COMPOSING_NO_RULE_HEAD)
4467 (COMPOSING_WITH_RULE_TAIL) (COMPOSING_NO_RULE_TAIL)
4468 (COMPOSING_WITH_RULE_RULE) (COMPOSING_HEAD_P)
4469 (COMPOSING_WITH_RULE_P): Macros deleted.
4470 (COMPOSITION_DATA_SIZE) (COMPOSITION_DATA_MAX_BUNCH_LENGTH): New
4471 macros.
4472 (struct composition_data): New structure.
4473 (CODING_FINISH_INSUFFICIENT_CMP): New macro.
4474 (struct coding_system): New members composition_rule_follows,
4475 cmp_data, cmp_data_start, cmp_data_index.
4476 (coding_save_composition) (coding_free_composition_data)
4477 (coding_adjust_composition_offset): Extern them.
4478
4479 * coding.c: Include composite.h.
4480 (DECODE_CHARACTER_ASCII): Don't handle composition here.
4481 (DECODE_CHARACTER_DIMENSION1): Likewise. Don't check the validity
4482 of multibyte code here.
4483 (DECODE_CHARACTER_DIMENSION2): Likewise.
4484 (detect_coding_emacs_mule): Change the case label from
4485 EMACS_leading_code_composition to 0x80.
4486 (detect_coding_iso2022): Handle new composition sequence.
4487 (DECODE_ISO_CHARACTER): Likewise.
4488 (check_composing_code): Deleted.
4489 (coding_allocate_composition_data): New function.
4490 (CODING_ADD_COMPOSITION_START) (CODING_ADD_COMPOSITION_END)
4491 (CODING_ADD_COMPOSITION_COMPONENT) (DECODE_COMPOSITION_START)
4492 (DECODE_COMPOSITION_END) (DECODE_COMPOSITION_RULE): New macros.
4493 (decode_coding_iso2022): Handle new composition sequence.
4494 (ENCODE_ISO_CHARACTER): Don't check composition here.
4495 (ENCODE_COMPOSITION_RULE) (ENCODE_COMPOSITION_START): New macros.
4496 (ENCODE_COMPOSITION_NO_RULE_START)
4497 (ENCODE_COMPOSITION_WITH_RULE_START): Deleted.
4498 (ENCODE_COMPOSITION_END): Handle new composition sequence.
4499 (ENCODE_COMPOSITION_FAKE_START): New macro.
4500 (encode_coding_iso2022): Handle new composition sequence.
4501 (ENCODE_SJIS_BIG5_CHARACTER): Delete superfluous `;' at the tail.
4502 (encode_coding_sjis_big5): Ignore composition.
4503 (setup_coding_system): Initialize new members of struct
4504 coding_system. Enable composition only when the coding system has
4505 `composition' property t.
4506 (coding_free_composition_data) (coding_adjust_composition_offset)
4507 (coding_save_composition) (coding_restore_composition): New
4508 functions.
4509 (code_convert_region): Call coding_save_composition for encoding
4510 and coding_allocate_composition_data for decoding. Don't skip
4511 ASCII characters if we handle composition on encoding. Call
4512 signal_after_change with Check_BORDER.
4513 (code_convert_string): Call coding_save_composition for encoding
4514 and coding_allocate_composition_data for decoding. Don't skip
4515 ASCII characters if we handle composition on encoding.
4516 (code_convert_string1): Set Vlast_coding_system_used after calling
4517 code_convert_string.
4518 (code_convert_string_norecord): Disable composition.
4519 (Fset_terminal_coding_system_internal): Likewise.
4520 (Fset_safe_terminal_coding_system_internal): Likewise.
4521 (Fset_keyboard_coding_system_internal): Likewise.
4522 (init_coding_once): Set emacs_code_class[0x80] to
4523 EMACS_invalid_code.
4524
4525 * composite.h: New file.
4526
4527 * composite.c: New file.
4528
4529 * data.c (Faref): Delete codes for a composite character..
4530 (Faset): Likewise. Adjusted for the change of CHAR_STRING.
4531
4532 * dispextern.h (enum glyph_type): New member COMPOSITE_GLYPH.
4533 (struct glyph): Add new sub-structure cmp to the union `u'.
4534 (enum display_element_type): New member IT_COMPOSITION.
4535 (enum prop_idx): New member COMPOSITION_PROP_IDX.
4536 (struct it): New members cmp_id, cmp_len.
4537
4538 * dispnew.c (direct_output_forward_char): Check point moving into
4539 or out of a composition. If so, give up direct method.
4540
4541 * doprnt.c (doprnt1): Adjusted for the change of CHAR_STRING.
4542
4543 * editfns.c (Fchar_to_string): Adjusted for the change of
4544 CHAR_STRING.
4545 (general_insert_function): Likewise.
4546 (Finsert_char): Likewise.
4547 (Fsubst_char_in_region): Likewise. Call update_compositions.
4548 (Ftranslate_region): Call update_compositions.
4549 (Ftranspose_regions): Call update_compositions.
4550
4551 * emacs.c (main): Call syms_of_composite.
4552
4553 * fileio.c (Fsubstitute_in_file_name): Adjusted for the change of
4554 CHAR_STRING.
4555 (Finsert_file_contents): Set Vlast_coding_system_used before
4556 calling signal_after_change. Call update_compositions if some
4557 texts are inserted..
4558 (Fwrite_region): Adjusted for the change of a_write and e_write.
4559 (a_write): Argument changed. Work based on character position,
4560 not byte position.
4561 (e_write): Argument changed. Handle new way of composition.
4562
4563 * fns.c (Flength): The length of char-table is MAX_CHAR.
4564 (concat): Adjusted for the change of CHAR_STRING.
4565 (Ffillarray): Adjusted for the change of CHAR_STRING.
4566 (Fset_char_table_default): Delete codes for a composite character.
4567 (hash_put): Return hash index.
4568
4569 * fontset.h (struct font_info): New member vertical_centering.
4570 (Vvertical_centering_font_regexp): Extern it.
4571
4572 * fontset.c (Vvertical_centering_font_regexp): New variable.
4573 (syms_of_fontset): Declare it as a Lisp variable and initialize.
4574 Set Vignore_relative_composition to nil.
4575 (fs_load_font): Initialize `vertical_centering' of struct
4576 font_info.
4577
4578 * indent.c (check_composition): New function.
4579 (MULTIBYTE_BYTES_WIDTH): Call STRING_CHAR_AND_LENGTH with
4580 MAX_MULTIBYTE_LENGTH, not MAX_LENGTH_OF_MULTI_BYTE_FORM.
4581 (current_column_1): Handle new way of composition.
4582 (Fmove_to_column): Likewise.
4583 (compute_motion): Likewise.
4584
4585 * insdel.c (copy_text): Adjusted for the change of CHAR_STRING.
4586 (insert_char): Likewise.
4587 (insert): Call update_compositions.
4588 (insert_and_inherit): Likewise.
4589 (insert_before_markers): Likewise.
4590 (insert_before_markers_and_inherit): Likewise.
4591 (insert_from_string): Likewise.
4592 (insert_from_string_before_markers): Likewise.
4593 (insert_from_buffer): Likewise.
4594 (replace_range): Likewise.
4595 (count_combining_composition): Deleted.
4596 (count_combining_before): Delete codes for a composite character.
4597 (count_combining_after): Likewise.
4598 (del_range_1): Call update_compositions.
4599 (del_range_byte): Likewise.
4600 (del_range_both): Likewise.
4601 (Fcombine_after_change_execute): Likewise.
4602
4603 * intervals.h: Include composite.h.
4604 (get_property_and_range): Extern it.
4605 (Vtext_property_default_nonsticky): Extern it.
427ec082 4606
5ec14d3c
KH
4607 * intervals.c (adjust_intervals_for_insertion): To check stickines
4608 of properties, pay attention to text-property-default-nonsticky.
4609 (merge_properties_sticky): Likewise.
4610 (get_property_and_range): New function.
4611
4612 * keyboard.c (Vdisable_point_adjustment): New variable.
4613 (Vglobal_disable_point_adjustment): New variable.
4614 (syms_of_keyboard): Declare them as Lisp variables.
4615 (command_loop_1): Check them and call adjust_point_for_property if
4616 necessary.
4617 (adjust_point_for_property): New function.
4618
4619 * keymap.c (push_key_description): Adjusted for the change of
4620 CHAR_STRING.
4621 (Ftext_char_description): Likewise.
4622
4623 * lisp.h (QCtest, QCweakness, Qequal): Extern them.
4624 (hash_put): Adjusted for the change of the definition.
4625 (signal_after_change): Likewise.
4626 (check_point_in_composition): Extern it.
4627
4628 * lread.c (readchar): Adjusted for the change of CHAR_STRING.
4629 Delete a code that handles an invalid too-long multibyte sequence
4630 because we are now sure that we never encounter with such a
4631 sequence.
4632 (read_multibyte): Use macro MAX_MULTIBYTE_LENGTH, not
4633 MAX_LENGTH_OF_MULTI_BYTE_FORM.
4634 (init_obarray): Likewise.
4635 (read1): Likewise. Adjusted for the change of CHAR_STRING.
4636
4637 * print.c (printchar): Adjusted for the change of CHAR_STRING.
4638
4639 * process.c: Include composite.h.
4640 (read_process_output): Call update_compositions.
4641
4642 * regex.c (regex_compile): Adjusted for the change of CHAR_STRING.
4643
4644 * search.c (search_buffer): Adjusted for the change of CHAR_STRING.
4645
4646 * syntax.h (SYNTAX_ENTRY_INT): Delete codes for a composite
4647 character.
4648
4649 * term.c (encode_terminal_code): Delete codes for a composite
4650 character. Adjusted for the change of CHAR_STRING.
4651 (produce_glyphs): When called, it->what can be IT_COMPOSITION.
4652 Delete codes for a composite character.
4653
4654 * textprop.c (Vtext_property_default_nonsticky): New variable
4655 (syms_of_textprop): Declare it as a Lisp variable.
4656
4657 * window.c (Frecenter): Clear all caches of compositions.
4658
4659 * xdisp.c (it_props): Add an entry for composition.
4660 (face_before_or_after_it_pos): For composition, check face of a
4661 character after the composition.
4662 (handle_composition_prop): New function.
4663 (get_next_display_element): Adjusted for the change of
4664 CHAR_STRING.
4665 (set_iterator_to_next): Handle the case that it->method ==
4666 next_element_from_composition.
4667 (next_element_from_composition): New function.
4668 (message_dolog): Adjusted for the change of CHAR_STRING.
4669 (set_message_1): Likewise.
4670 (check_point_in_composition): New function.
4671 (reconsider_clip_changes): If point moved into or out of
4672 composition, set b->clip_changed to 1 to force updating of the
4673 screen.
4674 (disp_char_vector): Delete codes for a composite character.
4675 (decode_mode_spec_coding): Adjusted for the change of CHAR_STRING.
4676
4677 * xfaces.c (choose_face_fontset_font): Delete codes for a
4678 composite character.
4679 (realize_x_face): Likewise. Change a place to set local variable
4680 `f' to avoid a bug of GCC 2.8.1 on Solaris.
4681
4682 * xfns.c: Include intervals.h.
4683 (syms_of_xfns): Make `display' property nonsticky by default.
4684
4685 * xselect.c (lisp_data_to_selection_data): Adjusted for the change
4686 for find_charset_in_str.
4687
4688 * xterm.h (struct x_output): Change member font_baseline to
4689 baseline_offset.
4690
4691 * xterm.c (x_append_glyph): Setup members of struct glyph properly
4692 for composition.
4693 (x_append_composite_glyph): New function.
4694 (VCENTER_BASELINE_OFFSET): New macro.
4695 (x_produce_glyphs): If it->what == IT_COMPOSITION, setup members
4696 of struct it for the composition. Cache pixel offsets in the
4697 struct composition. Delete codes for a composite character.
4698 Handle Vignore_relative_composition in composition code.
4699 (struct glyph_string): Delete member cmpcharp, add new member cmp.
4700 (x_set_cursor_gc): Check s->cmp, not s->cmpcharp.
4701 (x_compute_glyph_string_overhangs): Likewise.
4702 (x_get_glyph_overhangs): Delete codes for a composite character.
4703 (x_right_overwritten): Check s->cmp, not s->cmpcharp.
4704 (x_draw_glyph_string_background): Likewise. Delete codes for
4705 checking s->gidx for a composition.
4706 (x_draw_glyph_string_foreground): Delete code for a composite
4707 character.
4708 (x_draw_composite_glyph_string_foreground): New function.
4709 (x_draw_glyph_string_box): Check s->cmp, not s->cmpcharp.
4710 (x_draw_glyph_string): Handle the case of COMPOSITE_GLYPH.
4711 (struct work): Deleted.
4712 (x_fill_composite_glyph_string): Argument changed. Mostly
4713 rewritten for that.
4714 (x_fill_glyph_string): Don't check CHARSET_COMPOSITION.
4715 (BUILD_CHAR_GLYPH_STRINGS): Don't handle composition here.
4716 (BUILD_COMPOSITE_GLYPH_STRING): New macro.
4717 (BUILD_GLYPH_STRINGS): For composition, call
4718 BUILD_COMPOSITE_GLYPH_STRING.
4719 (x_new_font): Initialize f->output_data.x->baseline_offset, not
4720 f->output_data.x->font_baseline.
4721
c3c60f13
GM
47221999-12-14 Gerd Moellmann <gerd@gnu.org>
4723
4724 * xterm.c (show_mouse_face): Don't use updated_area, use
4725 TEXT_AREA.
4726
83c8f461 47271999-12-12 Richard M. Stallman <rms@gnu.org>
c838eb57
RS
4728
4729 * minibuf.c (Fall_completions): Doc fix.
4730
83c8f461 47311999-12-12 Richard M. Stallman <rms@gnu.org>
c838eb57
RS
4732
4733 * macros.c (Fstart_kbd_macro): Handle case where last-kbd-macro
4734 has been changed by the Lisp code.
4735
d8eccf12
GM
47361999-12-12 Gerd Moellmann <gerd@gnu.org>
4737
4738 * xfns.c: Indentation fixes.
4739
ae56feae
SM
47401999-12-10 Stefan Monnier <monnier@cs.yale.edu>
4741
4742 * xterm.c (x_initialize): Only setup xaw3d_* if they've been declared.
4743
dfa1c6ae
GM
47441999-12-10 Gerd Moellmann <gerd@gnu.org>
4745
4746 * frame.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
4747 [!MSDOS && !WINDOWSNT && !macintosh]: Moved here from xterm.h.
4748
4749 * xterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Moved
4750 to frame.h.
4751
ec18280f
SM
47521999-12-09 Stefan Monnier <monnier@cs.yale.edu>
4753
4754 * keyboard.c (Qratio): New symbol.
4755 (scroll_bar_parts): Add `Qratio' to it.
4756 (syms_of_keyboard): Init `Qratio'.
4757 * termhooks.h (scroll_bar_part): Add `scroll_bar_move_ratio'.
4758 * xterm.c (#includes): Allow compilation with only Xaw.
4759 (xaw3d_arrow_scroll, xaw3d_pick_top): New variables.
4760 (xt_action_hook): Replace XAW3D by XAW.
4761 (xaw3d_jump_callback): Renamed to xaw_jump_callback.
4762 (xaw_jump_callback): Renamed from xaw3d_jump_callback.
4763 Determine epsilon dynamically and don't try to be too clever.
4764 (xaw3d_scroll_callback): Renamed to xaw_scroll_callback.
4765 (xaw_scroll_callback): Renamed from xaw3d_scroll_callback.
4766 Handle both Xaw3d with arrow-scrollbars and with Xaw-style
4767 scrollbar (using `ratio').
4768 (x_create_toolkit_scroll_bar): Try to detect which style of Xaw3d
4769 scrollbar we have so as to set it up more optimally and to fix
4770 xaw3d_arrow_scroll and xaw3d_pick_top.
4771 (x_set_toolkit_scroll_bar_thumb): Try to maintain 2 spare pixels at the
4772 bottom of the Xaw3d scrollbar, to work around its tendency to refuse
4773 shrinking the thumb. Also make sure that `XawScrollbarSetThumb'
4774 is not ignored, using a major gross hack.
4775 (x_initialize): Init default values for xaw3d_arrow_scroll and
4776 xaw3d_pick_top.
4777
83b6d970
DL
47781999-12-09 Dave Love <fx@gnu.org>
4779
4780 * frame.h: (PIX_TYPE) [! HAVE_X_WINDOWS]: Define PIX_TYPE.
4781
3648c842
GM
47821999-12-08 Gerd Moellmann <gerd@gnu.org>
4783
4784 * eval.c: Remove conditional compilation on `standalone'.
4785 (call_debugger): When entering the debugger while redisplaying,
4786 reset redisplaying_p, and go back to the top-level if the debugger
4787 returns.
4788
05e71564
GM
47891999-12-07 Gerd Moellmann <gerd@gnu.org>
4790
4791 * xfaces.c (x_set_menu_resources_from_menu_face): Make sure
4792 basic faces are realized before trying to use face `menu'.
4793
4794 * window.c (delete_window): Block input for the time window
4795 matrices are being changed.
4796
b46cd536
DL
47971999-12-07 Dave Love <fx@gnu.org>
4798
4799 * lread.c (Fintern_soft): Fix newlines in doc string.
4800
96acb1f7
GM
48011999-12-07 Alexandre Oliva <oliva@dcc.unicamp.br>
4802
4803 * unexelf.c: Include <syms.h>, not <sym.h> on IRIX. Removed
4804 duplicate definition of ElfW.
4805 (find_section): Copied from unexsgi.c.
4806 (unexec): Use find_section. Adjust whitespace. Initialize
4807 new_data2_offset based on old_data, not sbss (this fixes a bug on
4808 IRIX6). Change #ifdef __mips to __sgi, since it's IRIX-specific.
4809 Adjust test for presence of .mdebug section to the new return
4810 value of find_section.
427ec082 4811
96acb1f7
GM
48121999-12-07 Gerd Moellmann <gerd@gnu.org>
4813
4814 * unexelf.c: Merge changes from 20.5.
4815 (unexec): Handle .lit4 and .lit8 unconditionally.
4816
4817 * m/iris4d.h (UNEXEC) [USG5_4]: Use unexelf.o instead of
4818 unexsgi.o again.
427ec082 4819
96acb1f7
GM
4820 * m/iris5d.h (UNEXEC): Likewise.
4821
7dae4502
SM
48221999-12-06 Stefan Monnier <monnier@cs.yale.edu>
4823
4824 * editfns.c (Fdelete_and_extract_region): New function.
05e71564
GM
4825 (syms_of_editfns): Register it.
4826 * insdel.c (del_range): Update del_range_1 call.
7dae4502
SM
4827 (del_range_1, del_range_2): Add a ret_string argument to
4828 request that the deleted text be returned.
4829 (del_range_byte, del_range_both): Update del_range_2 call.
05e71564 4830 * lisp.h (del_range_1, del_range_2): Change prototype
7dae4502
SM
4831 * casefiddle.c (casify_region): Update del_range_1 call.
4832 * coding.c (code_convert_region): Update del_range_2 call.
4833 * fileio.c (Finsert_file_contents): Update del_range_2 call.
4834
397e4fae
GM
48351999-12-06 Gerd Moellmann <gerd@gnu.org>
4836
4837 * xfaces.c (set_lface_from_font_name): Fix incomplete merge.
4838
3d973f71
GM
48391999-12-04 Hrvoje Niksic <hniksic@iskon.hr>
4840
4841 * lread.c (Fintern_soft): Accept a symbol argument.
427ec082 4842
740e985f
EZ
48431999-12-06 Eli Zaretskii <eliz@is.elta.co.il>
4844
4845 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 40000.
809f3d51
EZ
4846
4847 * insdel.c (adjust_markers_for_delete): Fix last change.
4848
2d764c78
EZ
48491999-12-06 Eli Zaretskii <eliz@is.elta.co.il>
4850
4851 Changes for automatic remapping of X colors on terminal frames:
4852
4853 * xfaces.c (XColor) [!HAVE_X_WINDOWS]: Provide a typedef for non-X
4854 frames.
4855 (Vface_tty_color_alist): Remove.
4856 (tty_defined_color): New function.
4857 (defined_color): Rewrite to support any type of frame.
4858 (tty_color_name): New function.
4859 (face_color_supported_p, Fface_color_gray_p,
4860 Fface_color_supported_p): Support non-X frames.
4861 (load_color): Enclose the color name in quotes, in the log
4862 messages. Remove DOS-specific version of load_color.
4863 (realize_tty_face): Take the supported colors from
4864 tty-color-alist. Support translation of X colors to the closest
4865 tty color, for both MSDOS and tty frames.
4866 [MSDOS]: Don't invert face colors if they were taken from the
4867 frame colors.
4868 (Fface_register_tty_color, Fface_clear_tty_colors): Remove.
4869
4870 * frame.h (struct x_output) [!MSDOS, !WINDOWSNT, !HAVE_X_WINDOWS]:
4871 Define a mostly empty surrogate.
4872 (tty_display): Declare.
4873
4874 * frame.c (make_terminal_frame) [!macintosh]: Don't use
4875 tty_display.
4876 (Fframe_parameters): Don't invert colors of non-FRAME_WINDOW_P
4877 frames when the frame's param_alist includes 'reverse.
4878 (tty_display): Define.
4879 (make_terminal_frame) [!MSDOS]: Assign &tty_display to the
4880 output_data.x member.
4881 (Fframe_parameters): Return foreground and background color names
4882 on tty frames as well, in addition to MSDOS frames.
4883
4884 * msdos.h (DisplayWidth, DisplayHeight): Changes for Lisp_Object
4885 selected_frame.
4886 (struct x_output): Remove unused members; document who uses each
4887 member.
4888 (FRAME_PARAM_FACES, FRAME_N_PARAM_FACES, FRAME_DEFAULT_PARAM_FACE,
4889 FRAME_MODE_LINE_PARAM_FACE, FRAME_COMPUTED_FACES,
4890 FRAME_N_COMPUTED_FACES, FRAME_SIZE_COMPUTED_FACES,
4891 FRAME_DEFAULT_FACE, FRAME_MODE_LINE_FACE, unload_color): Remove
4892 unused macro definintions.
4893
4894 * msdos.c (IT_set_frame_parameters): Don't call
4895 recompute_basic_faces, the next redisplay will, anyway.
4896 (x_current_display): Remove unused variable.
4897 Many functions: changes for Lisp_object selected_frame.
4898 (IT_set_face): If the tty_reverse_p flag is set for the face,
4899 reverse the foreground and background colors.
4900 (Fmsdos_remember_default_colors): New function.
4901 (syms_of_msdos): Defsubr it.
4902 (IT_set_frame_parameters): Use initial_screen_colors[] when
4903 creating a new frame. If the frame parameters include 'reverse,
4904 swap the foreground and background colors.
4905 (internal_terminal_init): Initialize initial_screen_colors to -1.
4906 (syms_of_msdos): Add DEFVAR_BOOL for x-stretch-cursor, to shut up
4907 cus-start.el.
4908
4909 * Makefile.in (lisp, shortlisp): Add lisp/term/tty-colors.elc.
4910
4911 * xfns.c (x_defined_color): Rename from defined_color. All
4912 callers changed.
4913 (Fxw_color_defined_p): Renamed from Fx_color_defined_p;
4914 all callers changed.
4915 (Fxw_color_values): Renamed from Fx_color_values; all callers
4916 changed.
4917 (Fxw_display_color_p): Renamed from Fx_display_color_p; all
4918 callers changed.
4919 (x_window_to_frame, x_any_window_to_frame,
4920 x_non_menubar_window_to_frame, x_menubar_window_to_frame,
4921 x_top_window_to_frame): Use !FRAME_X_P instead of
4922 f->output_data.nothing.
4923 * xterm.h (x_defined_color): Rename from defined_color.
4924
4925 * w32fns.c (x_window_to_frame): Use FRAME_W32_P instead of
4926 f->output_data.nothing.
4927 (Fxw_color_defined_p): Renamed from Fx_color_defined_p;
4928 all callers changed.
4929 (Fxw_color_values): Renamed from Fx_color_values; all callers
4930 changed.
4931 (Fxw_display_color_p): Renamed from Fx_display_color_p; all
4932 callers changed.
4933
4934 * dispextern.h (tty_color_name): Add prototype.
4935
4936 * xmenu.c (menubar_id_to_frame): Use FRAME_WINDOW_P instead of
4937 f->output_data.nothing.
4938 * w32menu.c (menubar_id_to_frame): Likewise.
4939 * w32term.h (w32_output): Declare.
4940
4941 * dosfns.c (Qmsdos_color_translate): Remove.
4942 (msdos_stdcolor_name): Now returns a Lisp_Object.
4943 * dosfns.h (Qmsdos_color_translate): Remove.
4944
4945 * s/msdos.h (INTERNAL_TERMINAL): Add entries for color support.
4946
b3e5232e
KH
49471999-12-06 Kenichi Handa <handa@etl.go.jp>
4948
4949 * fileio.c (decide_coding_unwind): Renamed from
4950 set_auto_coding_unwind.
4951 (Finsert_file_contents): Make single unwind protect to call both
4952 Vset_auto_coding_function and Ffind_operation_coding_system.
4953
4954 * insdel.c (adjust_markers_for_delete): Make it non-static.
4955
db0e466c
SM
49561999-12-04 Stefan Monnier <monnier@cs.yale.edu>
4957
4958 * regex.c (regex_compile): Recognize *?, +? and ?? as non-greedy
4959 operators and handle them properly.
4960 * regex.h (RE_ALL_GREEDY): New option.
4961 (RE_UNMATCHED_RIGHT_PAREN_ORD): Moved to the end where alphabetic
4962 sorting would put it.
4963 (RE_SYNTAX_AWK, RE_SYNTAX_GREP, RE_SYNTAX_EGREP)
4964 (_RE_SYNTAX_POSIX_COMMON): Use the new option to keep old behavior.
4965
22afa6e8
DL
49661999-12-04 Dave Love <d.love@dl.ac.uk>
4967
4968 * m/arm.h: New file.
4969
40afb967
DL
49701999-12-03 Dave Love <fx@gnu.org>
4971
4972 * editfns.c (Fmessage_or_box): Use use_dialog_box.
4973
ddf8eff5
GM
49741999-12-02 Gerd Moellmann <gerd@gnu.org>
4975
4976 * s/usg5-4.h (LIBS_SYSTEM): Add -lgen because that's needed
4977 for building with Motif.
4978
4979 * m/iris4d.h (UNEXEC) [USG5_4]: Use unexsgi.o instead of
4980 unexelf.o.
427ec082 4981
ddf8eff5
GM
4982 * m/iris5d.h (UNEXEC): Use unexsgi.o instead of unexelf.o.
4983
fa09a82d
DL
49841999-12-01 Dave Love <fx@gnu.org>
4985
4986 * emacs.c (main): Set LANG=C iff AX3_2 defined.
4987
ddf8eff5
GM
49881999-11-28 Gerd Moellmann <gerd@gnu.org>
4989
4990 * systime.h (EMACS_TIME_CMP, EMACS_TIME_EQ, EMACS_TIME_NE)
4991 (EMACS_TIME_GT, EMACS_TIME_GE, EMACS_TIME_LT,EMACS_TIME_LE): New
4992 macros.
4993
4994 * config.in (HAVE_SETITIMER, HAVE_UALARM): New.
4995
fa09a82d
DL
49961999-11-28 eliz <eliz@dlpx1>
4997
4998 * emacs.c (synchronize_locale): Avoid compiler warnings about
4999 pointer type mismatch.
5000
f9632fc8
GM
50011999-11-28 Gerd Moellmann <gerd@gnu.org>
5002
717d0121
GM
5003 * window.c (Fwindow_end): Don't call temp_set_pt_both with
5004 out of range position.
5005
427ec082 5006 * xterm.c (XTread_socket) <ClientMessage, Xatom_Scrollbar>:
f9632fc8
GM
5007 Switch off busy-cursor by setting inhibit_busy_cursor to 2.
5008
59c65f1e
EZ
50091999-11-28 Eli Zaretskii <eliz@is.elta.co.il>
5010
613a8346
EZ
5011 * charset.c (Fmake_char_internal): Print the charset ID when
5012 signalling an error.
5013
59c65f1e
EZ
5014 * emacs.c (synchronize_locale): Avoid compiler warnings about
5015 pointer type mismatch.
5016
83c8f461 50171999-11-26 Richard M. Stallman <rms@gnu.org>
d01f3570
RS
5018
5019 * editfns.c (Fdelete_field): Make it noninteractive. Return nil.
5020
18df9369
GM
50211999-11-26 Gerd Moellmann <gerd@gnu.org>
5022
65a3ccf7
GM
5023 * puresize.h (BASE_PURESIZE): Increase to 550000.
5024
b3b98592
GM
5025 * textprop.c (set_text_properties): New function. Like
5026 Fset_text_properties, but with additional parameter
5027 SIGNAL_AFTER_CHANGE_P. If that is nil, don't signal after
5028 changes.
5029 (Fset_text_properties): Use it.
5030
5031 * insdel.c (insert_1_both): Call set_text_properties with last
5032 parameter nil so that no after changes will be signaled.
5033
5034 * lisp.h: Add prototype for set_text_properties.
5035
18df9369
GM
5036 * xfaces.c (set_lface_from_font_name): Fix previous change.
5037 (recompute_basic_faces): Change assert to abort.
5038
71a8e74b
DL
50391999-11-25 Dave Love <fx@gnu.org>
5040
5041 * fns.c (Fnthcdr, Fnreverse): Inline cdr.
5042 (Fmember, Fdelq, Fdelete): Inline car.
5043 (Fy_or_n_p): Doc fix.
5044
bc6a5782
GM
50451999-11-25 Gerd Moellmann <gerd@gnu.org>
5046
3221576b 5047 * xfaces.c (set_lface_from_font_name): New parameter may_fail_p.
18df9369 5048 Callers changed. If specified font name is bogus, and may_fail_p
3221576b
GM
5049 is not set, try to use a reasonable default.
5050
bc6a5782
GM
5051 * dispnew.c (direct_output_for_insert): Set glyph row's
5052 displays_text_p flag. Correct window's window_end_vpos if
5053 necessary.
5054
0c8559bb
PE
50551999-11-25 Paul Eggert <eggert@twinsun.com>
5056
5057 * emacs.c (fixup_locale): Don't bother to record initial locale.
5058 (synchronize_locale): If the desired locale is nil,
5059 treat it as if it were the empty string,
5060 so that we set the locale from the environment.
5061
35737351
KH
50621999-11-25 Kenichi Handa <handa@etl.go.jp>
5063
5064 * fileio.c (Finsert_file_contents): Set buffer-file-coding-system
5065 of the current buffer via Fset.
5066
5562b47f
DL
50671999-11-24 Dave Love <fx@gnu.org>
5068
5562b47f
DL
5069 * xfaces.c: Don't duplicate Qmode_line definition done elsewhere.
5070
5071 * xfns.c: Don't duplicate Qdisplay definition done elsewhere.
5072
00da0e4a
GM
50731999-11-24 Gerd Moellmann <gerd@gnu.org>
5074
5075 * lisp.h (enum pvec_type): Put PVEC_FLAG in #if 0.
5076
5077 * emacs.c (PVEC_FLAG): New variable.
5078
b1775dc1
GM
50791999-11-23 Gerd Moellmann <gerd@gnu.org>
5080
5081 * unexaix.c (unexec): Use unsigned instead of uintptr_t because
5082 that fails on IBM PowerPC, AIX 4.2.
427ec082 5083
08de6200
EZ
50841999-11-22 Eli Zaretskii <eliz@is.elta.co.il>
5085
5086 * buffer.c (syms_of_buffer): Add %z, %Z, %m and %& to the doc
5087 string of mode-line-format. Remove the obsolete %t.
5088
02fda8ff
GM
50891999-11-22 Gerd Moellmann <gerd@gnu.org>
5090
f2fa858f
GM
5091 * dispnew.c (direct_output_for_insert): Increment glyph positions
5092 for glyphs from buffer text only.
5093
02fda8ff
GM
5094 * emacs.c (gdb_valbits, gdb_gctypebits, gdb_emacs_intbits)
5095 (gdb_data_seg_bits): New variables.
427ec082 5096
02fda8ff
GM
5097 * lisp.h (enum gdb_lisp_params): Put in #if 0, since it doesn't
5098 work on systems not allowing enumerators > INT_MAX, and it
5099 won't work if EMACS_INT is long long.
5100
1b0d24e7
PE
51011999-11-22 Paul Eggert <eggert@twinsun.com>
5102
5103 Port to SunOS 4.1.x again. Help out with Alpha port.
5104 Rename messages-locale to system-messages-locale,
5105 and likewise for time-locale.
427ec082 5106
1b0d24e7
PE
5107 * callproc.c (strerror): Remove decl.
5108 * fileio.c (strerror): Likewise.
5109 * process.c (strerror): Likewise.
5110 * emacs.c (strerror): Likewise.
5111 (Vsystem_messages_locale): Renamed from Vmessages_locale.
5112 All uses changed.
5113 (Vprevious_system_messages_locale): Likewise, from
5114 Vprevious_messages_locale.
5115 (Vsystem_time_locale): Likewise, from Vtime_locale.
5116 (Vprevious_system_time_locale): Likewise, from Vprevious_time_locale.
5117 (ABORT_RETURN_TYPE): New macro.
5118 (abort): Return type is now ABORT_RETURN_TYPE.
5119 (main): Always invoke init_signals, even if POSIX_SIGNALS is not
5120 defined.
5121 (syms_of_emacs): messages-locale -> system-messages-locale,
5122 previous-messages-locale -> previous-system-messages-locale,
5123 time-locale -> system-time-locale,
5124 previous-time-locale -> previous-system-time-locale.
5125
5126 * gmalloc.c (PP, __ptr_t): Assume ANSI C if STDC_HEADERS is defined.
5127 (const): Do not define; that's config.h's job.
5128 (<limits.h>): Include if HAVE_LIMITS_H is defined.
5129 (CHAR_BIT): Move test for definedness outside of limits.h condition.
5130 (<stddef.h>): Include if STDC_HEADERS is defined.
5131 (FREE_RETURN_TYPE): New macro.
5132 (free): Return type is now FREE_RETURN_TYPE.
5133
5134 * lisp.h (synchronize_system_time_locale): Renamed from
5135 synchronize_time_locale. All uses changed.
5136 (synchronize_system_messages_locale): Likewise, from
5137 synchronize_messages_locale.
5138
5139 * m/alpha.h (malloc, realloc, calloc): Remove decls;
5140 stdlib.h now does this.
5141
5142 * process.c (sys_siglist): Remove.
5143
5144 * s/sunos4-0.h (ABORT_RETURN_TYPE, FREE_RETURN_TYPE):
5145 New macros.
5146
5147 * syntax.c (scan_sexps_forward): Use abort, not assert.
5148
5149 * sysdep.c (my_sys_siglist): New var.
5150 (sys_siglist): New macro. Remove old initialized vars of same name.
5151 (init_signals): Initialize sys_siglist.
5152
5153 * xfns.c (abort): Remove decl; stdlib.h now does this.
5154
0dcd5b54
DL
51551999-11-18 Dave Love <fx@gnu.org>
5156
946173ad
DL
5157 * filelock.c: Add forward declaration for get_boot_time_1.
5158
0dcd5b54
DL
5159 * dispnew.c (Finternal_show_cursor_p): Fix doc string.
5160
71447e8f
GM
51611999-11-18 Gerd Moellmann <gerd@gnu.org>
5162
5163 * buffer.h (struct buffer_text): Add comment about moving
5164 buffer text if REL_ALLOC is defined.
5165
eeedff63
KH
51661999-11-18 Kenichi Handa <handa@etl.go.jp>
5167
5168 * lisp.h (KEY_DESCRIPTION_SIZE): New macro.
5169
5170 * keyboard.c (echo_char): Use KEY_DESCRIPTION_SIZE to check free
5171 memory for push_key_description.
5172
5173 * keymap.c (Fsingle_key_description): Use KEY_DESCRIPTION_SIZE to
5174 allocate memory for push_key_description.
5175 (describe_buffer_bindings): Likewise.
5176
5d7e4a2c
GM
51771999-11-17 Gerd Moellmann <gerd@gnu.org>
5178
5179 * xfns.c (Fx_show_busy_cursor): Doc-fix.
5180 (Fx_hide_busy_cursor): Ditto.
5181
51821999-11-17 Marco Walther <walther@siemens-pyramid.com>
5183
5184 * unexsni.c (unexec): Handle .rel.dyn section.
5185
b5b41e02
DL
51861999-11-16 Dave Love <fx@gnu.org>
5187
5188 * doc.c (Fdocumentation): Remove gcpro here too.
5189
e35b6123
GM
51901999-11-16 Gerd Moellmann <gerd@gnu.org>
5191
5192 * keyboard.c (command_loop_1): Remove no_redisplay.
5193
83c8f461 51941999-11-16 Richard M. Stallman <rms@gnu.org>
0a14b9bb
GM
5195
5196 * print.c (PRINTPREPARE): Don't call setup_echo_area_for_printing
5197 in noninteractive.
5198
b05d3bee
GM
51991999-11-14 Gerd Moellmann <gerd@gnu.org>
5200
5bcfeb49
GM
5201 * xdisp.c (ensure_echo_area_buffers): New.
5202 (with_echo_area_buffer): Use it.
5203 (setup_echo_area_for_printing): Ditto.
5204
b05d3bee
GM
5205 * buffer.c (indicate-empty-lines): Doc-fix.
5206
9b2e6e4c
GM
52071999-11-12 Gerd Moellmann <gerd@gnu.org>
5208
e7f90eab
GM
5209 * term.c (term_init): If "op" isn't available, don't support color
5210 because we can't switch back to the default foreground and
5211 background.
5212
9b2e6e4c
GM
5213 * doc.c (Fdocumentation_property): Remove GCPRO because
5214 Fsubstitute_command_keys gcpro's the string.
5215
1bf21027
KH
52161999-11-12 Kenichi Handa <handa@etl.go.jp>
5217
5218 * editfns.c (Ftranslate_region): Check the buffer multibyteness.
5219
3bc6df53
GM
52201999-11-11 Gerd Moellmann <gerd@gnu.org>
5221
5222 * print.c, keymap.c, indent.c, insdel.c, keyboard.c, intervals.c,
5223 lread.c, textprop.c, undo.c, emacs.c, lisp.h, intervals.h,
5224 buffer.h, config.in, Makefile.in: Remove USE_TEXT_PROPERTIES.
5225
35a5514b
GM
52261999-11-10 Gerd Moellmann <gerd@gnu.org>
5227
5228 * xfns.c (QCuser_data): Removed.
5229 (syms_of_xfns): Initialization of QCuser_data removed.
5230 (parse_image_spec): Don't handle :user-data specially. Allow
5231 unknown keys. Remove parameter ALLOW_OTHER_KEYS.
5232 (xbm_image_p, xbm_load, xpm_image_p, pbm_image_p, png_image_p)
5233 (tiff_image_p, jpeg_image_p, gif_image_p, gs_image_p): Call
5234 parse_image_spec accordingly.
5235
83c8f461 52361999-11-09 Richard M. Stallman <rms@gnu.org>
4ea68fcc
RS
5237
5238 * cmds.c (Fbeginning_of_line): Doc fix.
5239 (Fend_of_line): Doc fix.
5240
5241 * editfns.c (Fline_beginning_position): If N is not 1,
5242 pass t to Fconstrain_to_field for ESCAPE-FROM-EDGE.
5243
5244 * syntax.c (Fforward_word): Handle fields even if would have hit
5245 an edge of the buffer. Return nil if affected by fields.
5246
83c8f461 52471999-11-09 Richard M. Stallman <rms@gnu.org>
4ea68fcc
RS
5248
5249 * editfns.c (preceding_pos): Function deleted.
5250 (text_property_stickiness): Decrement POS directly.
5251 Fix a confusion that used PT instead of POS.
5252
5253 * editfns.c (find_field): Properly handle the case
5254 of a field boundary where `field' inherits from neither side.
5255
5256 * editfns.c (Ffield_beginning, Ffield_end): Doc fixes.
5257 (Ferase_field, Ffield_string, Ffield_string_no_properties): Doc fixes.
5258
fa9aabf6
GM
52591999-11-08 Gerd Moellmann <gerd@gnu.org>
5260
5261 * bytecode.c (Fbyte_code) <BinsertN, Bcall>: Do the
5262 BEFORE_POTENTIAL_GC before DISCARD.
5263
4015b3c0
GM
52641999-11-07 Gerd Moellmann <gerd@gnu.org>
5265
033a5fa3
GM
5266 * alloc.c (Fgarbage_collect): Call unmark_byte_stack.
5267
5268 * lisp.h: Add prototype for unmark_byte_stack.
5269
5270 * bytecode.c (mark_byte_stack): Use XMARKBIT and XMARK.
5271 (unmark_byte_stack): Renamed from relocate_byte_pcs. Use
5272 XUNMARK.
5273
55b064bd
GM
5274 * xdisp.c (resize_mini_window): Fix computation of needed
5275 mini-window height.
5276
5277 * alloc.c, buffer.c, editfns.c, xdisp.c: Remove conditional
5278 compilation on USE_TEXT_PROPERTIES.
01e9b9df 5279
4015b3c0 5280 * Fbyte_code: Use block statements in cases and declare v1 and v2
60af03f1 5281 locally there. Rearrange case statements so that those most
4015b3c0
GM
5282 frequently executed come first. Avoid goto's in frequently
5283 executed cases.
5284
fe512f27
GM
52851999-11-05 Gerd Moellmann <gerd@gnu.org>
5286
dd59e217
GM
5287 * bytecode.c (Fbyte_code): Use BEFORE_POTENTIAL_GC and
5288 AFTER_POTENTIAL_GC around internal_catch.
5289
bcf28080
GM
5290 * alloc.c (Fgarbage_collect): Call mark_byte_stack and
5291 relocate_byte_pcs.
5292 (init_alloc_once, init_alloc): Set byte_stack_list to null.
5293
5294 * eval.c (struct catchtag): Add member byte_stack.
5295 (internal_catch, Fcondition_case, internal_condition_case)
dd59e217 5296 (internal_condition_case_1): Save value of byte_stack_list in
bcf28080
GM
5297 catchtag.
5298 (unwind_to_catch): Restore byte_stack_list from catchtag.
5299
5300 * lisp.h: Add prototypes for new functions in bytecode.c.
5301 Add extern declaration for byte_stack_list.
5302
5303 * bytecode.c (struct byte_stack): New.
5304 (byte_stack_list, mark_byte_stack, relocate_byte_pcs): New
5305 (BEFORE_POTENTIAL_GC, AFTER_POTENTIAL_GC): New.
5306 (FETCH, PUSH, POP, DISCARD, TOP, MAYBE_GC): Rewritten.
5307 (HANDLE_RELOCATION): Removed.
5308 (Fbyte_code): Use byte_stack structures.
5309
4d59c34c
GM
5310 * filelock.c (Ffile_locked_p): Make FILENAME a required argument.
5311
fe512f27
GM
5312 * buffer.c (syms_of_buffer): Extend documentation of
5313 mode-line-format.
5314
60b64cd6
GM
53151999-11-04 Gerd Moellmann <gerd@gnu.org>
5316
5317 * editfns.c (Fdelete_field): Renamed from Ferase_field.
5318
5319 * minibuf.c (do_completion, Fminibuffer_complete_word): Use
5320 Ferase_field instead of Fdelete_field.
5321
b51b619b
GM
53221999-11-03 Gerd Moellmann <gerd@gnu.org>
5323
5324 * dispnew.c (Finternal_show_cursor): Change it to set the
5325 cursor on/off, not toggle its state.
5326 (Finternal_show_cursor_p): New.
5327 (syms_of_display): Defsubr Sinternal_show_cursor_p.
5328
5865af0d
DL
53291999-11-03 Dave Love <fx@gnu.org>
5330
5331 * charset.c (split_non_ascii_string): Define return value.
5332
82a700f3
GM
53331999-11-03 Gerd Moellmann <gerd@gnu.org>
5334
edfef199
GM
5335 * minibuf.c (string_to_object): New.
5336 (read_minibuf_noninteractive): New.
5337 (read_minibuf): Call read_minibuf_noninteractive if
5338 noninteractive. Use string_to_object.
5339
82a700f3
GM
5340 * doc.c (Fdocumentation_property): Fix bug bypassing UNGCPRO.
5341
b5540f0d
DL
53421999-11-02 Dave Love <fx@gnu.org>
5343
e69dcd60
DL
5344 * gnu-linux.h: Use SIGCHLD, not SIGCLD (not in glibc 2.1).
5345
827a1788
DL
5346 * process.c: Define _GNU_SOURCE before config.h to get strsignal
5347 declared with glibc2.
b5540f0d 5348
a69a6e61
GM
53491999-11-02 Gerd Moellmann <gerd@gnu.org>
5350
5351 * lisp.h (QUIT): Give it statement form.
5352
87e21fbd
DL
53531999-11-02 Dave Love <fx@gnu.org>
5354
5355 * eval.c (init_eval): Conditionalize declaration of gcpro_level.
5356
1b335865
GM
53571999-11-02 Gerd Moellmann <gerd@gnu.org>
5358
9fb5e03d
GM
5359 * xfns.c (QCuser_data): New.
5360 (syms_of_xfns): Initialize QCuser_data.
5361 (parse_image_spec): Ignore :user-data DATA properties.
5362
1b335865
GM
5363 * xdisp.c (display_line): Set charpos of first glyph in blank
5364 lines not corresponding to any text to -1, even if no glyphs are
5365 filled in in that line.
5366
e76f1c44
GM
53671999-11-01 Gerd Moellmann <gerd@gnu.org>
5368
427ec082 5369 * xfns.c (png_load) [PNG_READ_sRGB_SUPPORTED]: Put code using
36fcd3d9
GM
5370 png_get_sRGB in #ifdef.
5371
111259b4
GM
5372 * dispnew.c (Finternal_show_cursor): Renamed from Fshow_cursor.
5373 (syms_of_display): Use the new name.
5374
dd5c96e8
GM
5375 * textprop.c (verify_interval_modification): Signal text-read-only
5376 instead of calling error.
5377
db8878fb
GM
5378 * data.c (Qtext_read_only): New built-in error.
5379 (syms_of_data): Initialize it.
5380
5381 * lisp.h: Add extern declaration for Qtext_read_only.
5382
e76f1c44
GM
5383 * syntax.c: Remove whitespace after open or in front of closing
5384 parentheses.
5385
83c8f461 53861999-11-01 Richard M. Stallman <rms@gnu.org>
cb3a6c48
GM
5387
5388 * Makefile.in (w16select.o, sound.o): Don't depend on lisp.h.
5389
7843e09c
GM
53901999-10-31 Gerd Moellmann <gerd@gnu.org>
5391
575ed805
GM
5392 * xdisp.c (resize_mini_window): Compute needed height differently.
5393
7843e09c
GM
5394 * fns.c (Flength): Unroll loop over lists.
5395
5396 * xdisp.c (append_space): Return non-zero if space was appended.
5397 (display_line): Set charpos of first glyph to -1 only if that
5398 glyph is the space added by append_glyph.
5399
83c8f461 54001999-10-30 Richard M. Stallman <rms@gnu.org>
cb3a6c48
GM
5401
5402 * print.c (strout): Consider `noninteractive' and use stdout
5403 only when PRINTCHARFUN is t.
5404
5405 * lisp.h (struct gcpro) [DEBUG_GCPRO]: New field `level'.
5406 (gcpro_level): Declare it extern.
5407 [DEBUG_GCPRO] (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
5408 Alternate definitions that set `level' and increment `gcpro_level'.
5409 [DEBUG_GCPRO] (UNGCPRO): Alternate definition that checks gcpro_level.
5410
5411 * eval.c [DEBUG_GCPRO] (gcpro_level): New variable.
5412 (init_eval) [DEBUG_GCPRO]: Initialize it.
5413 (unwind_to_catch) [DEBUG_GCPRO]: Set gcpro_level
5414 from remaining gcprolist.
5415
3636f7a3
KH
54161999-10-29 Kenichi Handa <handa@etl.go.jp>
5417
5418 * coding.c (code_convert_region): Update `dst' correctly.
5419
a2ad7096
GM
54201999-10-28 Gerd Moellmann <gerd@gnu.org>
5421
5422 * fns.c (Fmemq, Fassq, Frassq, assq_no_quit, Fassoc)
5423 (Frassoc): Rewritten.
5424
1e3196e8
GM
54251999-10-27 Noah Friedman <friedman@splode.com>
5426
5427 * s/gnu-linux.h [HAVE_DEV_PTMX]: Redefine FIRST_PTY_LETTER to 'z'.
5428 Define PTY_NAME_SPRINTF.
5429 Redefine PTY_TTY_NAME_SPRINTF.
5430 * config.in: Add undef for HAVE_DEV_PTMX.
5431
83c8f461 54321999-10-26 Richard M. Stallman <rms@gnu.org>
4ea68fcc
RS
5433
5434 * regex.c (POP_FAILURE_POINT): Use failure_id.integer
5435 as arg to DEBUG_POP and DEBUG_PRINT.
5436
83c8f461 54371999-10-27 Richard M. Stallman <rms@gnu.org>
17dbfaad
GM
5438
5439 * data.c (Qad_activate_internal): Renamed from Qad_activate.
5440 (Ffset): Call Qad_activate_internal.
5441 (syms_of_data): Initialize Qad_activate_internal.
5442
26922151
GM
54431999-10-27 Gerd Moellmann <gerd@gnu.org>
5444
5445 * xdisp.c (echo_area_display) [HAVE_X_WINDOWS]: Do nothing if
5446 Vterminal_frame is selected and Vwindow_system is non-nil.
5447
67a5596f
GM
54481999-10-26 Gerd Moellmann <gerd@gnu.org>
5449
2bea706b
GM
5450 * xdisp.c (echo_area_display): Put previous change in #if 0.
5451
67a5596f
GM
5452 * emacs.c (standard_args): Add `file' as synonym for `visit',
5453 `execute' as synonym for `eval'.
5454 (main): Add new options to usage message.
5455
81dc5de5
GM
54561999-10-25 Gerd Moellmann <gerd@gnu.org>
5457
5458 * data.c (Qhash_table): New.
5459 (Ftype_of): Return it for hash tables.
5460 (syms_of_data): Initialize Qhash_table.
5461
83c8f461 54621999-10-25 Richard M. Stallman <rms@gnu.org>
bd3c545d
GM
5463
5464 * regex.c (POP_FAILURE_POINT): Extract failure_id as an integer.
5465
66e4690f 54661999-10-24 Ken Raeburn <raeburn@gnu.org>
3a7093d8 5467
7539e11f
KR
5468 * alloc.c: Undef HIDE_LISP_IMPLEMENTATION before including
5469 lisp.h.
5470
5471 * buffer.c (Fbuffer_list, Fget_file_buffer, get_truename_buffer,
5472 Fbuffer_local_variables, Fother_buffer, record_buffer,
5473 set_buffer_internal_1, Fbury_buffer, Fkill_all_local_variables,
5474 swap_out_buffer_local_variables, overlays_at, overlays_in,
5475 overlay_touches_p, overlay_strings, recenter_overlay_lists,
5476 fix_overlays_in_range, fix_overlays_before, Foverlay_get,
5477 Foverlay_put, report_overlay_modification, evaporate_overlays):
5478 Use XCAR, XCDR, and XFLOAT_DATA instead of explicit member
5479 references.
5480 * data.c (Fcar, Fcar_safe, Fcdr, Fcdr_safe, Fsetcar, Fsetcdr,
5481 swap_in_symval_forwarding, set_internal, default_value,
5482 Fset_default, Fmake_variable_buffer_local, Fmake_local_variable,
5483 Fmake_variable_frame_local, Flocal_variable_p,
5484 Flocal_variable_if_set_p, arithcompare, Fzerop, cons_to_long,
5485 Fnumber_to_string, float_arith_driver, Fadd1, Fsub1): Likewise.
5486 * dispnew.c (Fframe_or_buffer_changed_p): Likewise.
5487 * emacs.c (main): Likewise.
5488 * fontset.c (fs_load_font, fs_register_fontset,
5489 CACHED_FONTSET_NAME, CACHED_FONTSET_REGEX, Fquery_fontset,
5490 Fnew_fontset, Fset_fontset_font): Likewise.
5491 * frame.c (do_switch_frame, next_frame, prev_frame,
5492 other_visible_frames, Fdelete_frame, Fvisible_frame_list):
5493 Likewise.
5494 * keyboard.c (read_char, help_char_p, event_to_kboard,
5495 kbd_buffer_get_event, timer_start_idle, timer_check,
5496 make_lispy_event, apply_modifiers, reorder_modifiers,
5497 Fevent_convert_list, lucid_event_type_list_p, menu_bar_items,
5498 menu_bar_one_keymap, menu_item_eval_property_1, parse_menu_item,
5499 tool_bar_items, read_char_x_menu_prompt, read_key_sequence,
5500 Fcommand_execute, Fexecute_extended_command): Likewise.
5501 * minibuf.c (read_minibuf, get_minibuffer, Ftry_completion,
5502 Fall_completions): Likewise.
5503 * window.c (Fset_window_margins): Likewise.
5504
5505 * callint.c (quotify_args): Don't explicitly use struct
5506 Lisp_Cons, use Lisp_Object and XCAR/XCDR instead.
5507
3a7093d8
KR
5508 * s/netbsd.h (HAVE_GETLOADAVG): Define as 1.
5509 (UNEXEC, START_FILES, LIB_STANDARD, LIB_GCC): Define ELF versions,
5510 if __ELF__ is defined.
5511
2a3d7146
GM
55121999-10-24 Gerd Moellmann <gerd@gnu.org>
5513
5514 * window.c (Fnext_window): Add a QUIT in the loop.
5515
8ac52782
GM
55161999-10-23 Gerd Moellmann <gerd@gnu.org>
5517
427ec082 5518 * Makefile.in (bootstrap, bootstrap-emacs, bootstrap-temacs):
8ac52782
GM
5519 New targets.
5520
05f0d15a
DL
55211999-10-22 Dave Love <fx@gnu.org>
5522
5523 * emacs.c (main): Enable profiling conditional on __linux also.
5524
882fb0e6
GM
55251999-10-20 Gerd Moellmann <gerd@gnu.org>
5526
5527 * xrdb.c (x_load_resources): Set default resources for resource
5528 classes instead of for the specific Emacs.
5529
b5f5bc31
GM
55301999-10-19 Gerd Moellmann <gerd@gnu.org>
5531
66f4dd69
GM
5532 * s/freebsd.h (HAVE_GETLOADAVG): Define as 1 because config.h
5533 defines it that way.
427ec082 5534
b5f5bc31
GM
5535 * xdisp.c (echo_area_display) [HAVE_X_WINDOWS]: Do nothing
5536 if selected_frame is equal to Vterminal_frame.
5537
68c45bf0 55381999-10-19 Paul Eggert <eggert@twinsun.com>
427ec082 5539
68c45bf0 5540 Add support for large files, 64-bit Solaris, system locale codings.
427ec082 5541
68c45bf0
PE
5542 * Makefile.in (emacs): Set the LC_ALL environment variable to "C"
5543 when dumping, so that the dumped Emacs doesn't have stray locale info.
5544 (dired.o): Depend on systime.h.
5545 (editfns.o): Depend on coding.h.
5546
5547 * alloc.c, buffer.c, callproc.c, ccl.c, charset.c, coding.c, data.c,
5548 dispnew.c, editfns.c, emacs.c, filelock.c, floatfns.c, hftctl.c,
5549 keyboard.c, process.c, sysdep.c, unexelf.c, unexhp9k800.c,
5550 unexsunos4.c, vmsfns.c, vmsgmalloc.c, w32faces.c, w32menu.c, w32term.c,
5551 w32xfns.c, xfaces.c, xfns.c, xmenu.c, xterm.c:
5552 Include <config.h> before any system include files.
5553
5554 * alloc.c, buffer.c, ccl.c, data.c, editfns.c, emacs.c, eval.c,
5555 fileio.c, filelock.c, frame.c, insdel.c, keymap.c, lread.c,
5556 m/alpha.h, print.c, search.c, sysdep.c, xdisp.c, xfaces.c, xfns.c,
5557 xmenu.c, xterm.c:
5558 Do not include <stdlib.h>, as <config.h> does this now.
5559
5560 * callproc.c (Fcall_process):
5561 Synchronize messages locale before invoking strerror.
5562 Decode resulting string with locale-coding-system.
5563
5564 * coding.c (Vlocale_coding_system): New var.
5565 (syms_of_coding): Adjust to above change.
5566 (emacs_strerror): New function.
5567
5568 * coding.h (emacs_strerror, Vlocale_coding_system): New decls.
427ec082 5569
68c45bf0
PE
5570 * config.in (HAVE_STDIO_EXT_H, HAVE_TM_GMTOFF, HAVE___FPENDING,
5571 HAVE_FTELLO, HAVE_GETLOADAVG, HAVE_MBLEN, HAVE_MBRLEN,
5572 HAVE_STRSIGNAL): New macros.
5573 (BITS_PER_LONG): Default to 64 if _LP64 is defined.
5574 <stdlib.h>: Include if HAVE_STDLIB_H is defined and NOT_C_CODE isn't.
5575
5576 * dired.c: Include "systime.h".
5577 (Ffile_attributes): Do not cast s.st_size to int; this loses
5578 information if int is 32 bits but st_size and EMACS_INT are larger.
5579 Treat large device numbers like large inode numbers.
5580
5581 * dispnew.c (PENDING_OUTPUT_COUNT): Use __fpending if available.
5582
5583 * editfns.c: Include coding.h.
5584 (emacs_strftime): Remove decl.
5585 (emacs_strftimeu): New decl.
5586 (emacs_memftimeu): Renamed from emacs_memftime; new arg UT.
5587 Use emacs_strftimeu instead of emacs_strftime.
5588 (Fformat_time_string): Convert format string using
5589 Vlocale_coding_system, and convert result back. Synchronize time
5590 locale before invoking lower level function. Invoke
5591 emacs_memftimeu, passing ut, instead of emacs_memftime.
427ec082 5592
68c45bf0
PE
5593 * emacs.c: Include <locale.h> if HAVE_SETLOCALE is defined.
5594 (Vmessages_locale, Vprevious_messages_locale, Vtime_locale,
5595 Vprevious_time_locale): New variables.
5596 (main): Invoke setlocale early, so that initial error messages are
5597 localized properly. But skip locale-setting if LC_ALL is "C".
5598 Fix up locale when it's safe to do so.
5599 (fixup_locale): Moved here from xterm.c.
5600 (synchronize_locale, synchronize_time_locale,
5601 synchronize_messages_locale): New functions.
5602 (syms_of_emacs): Accommodate above changes.
5603
5604 * fileio.c (report_file_error): Convert strerror output according
5605 to Vlocale_coding_system.
5606 (Finsert_file_contents): Check for arithmetic overflow in
5607 computations that depend on file size. Report IO errors
5608 with emacs_strerror, not strerror.
5609
5610 * fns.c (Fgethash): Declare dflt parameter.
5611
5612 * gmalloc.c: Do not define const to nothing if HAVE_CONFIG_H
5613 is defined; that's config.h's job.
5614
5615 * lisp.h (EMACS_INT, BITS_PER_EMACS_INT, EMACS_UINT): If _LP64,
5616 default these values to long, BITS_PER_LONG, and unsigned long.
5617 (VALBITS, MARKBIT, XINT): Do not assume 32-bit EMACS_INT.
5618 (PNTR_COMPARISON_TYPE): Default to EMACS_UINT, not to unsigned int.
5619 (code_convert_string_norecord, fixup_locale,
5620 synchronize_messages_locale, synchronize_time_locale,
5621 emacs_open, emacs_close, emacs_read, emacs_write): New decls.
5622 All Emacs callers of open, close, read, write changed to use
5623 emacs_open, emacs_close, emacs_read, emacs_write.
5624
5625 * lread.c (file_offset, file_tell): New macros. All uses of ftell
5626 changed to file_tell.
5627 (saved_doc_string_position, prev_saved_doc_string_position): Now
5628 of type file_offset.
5629 (init_lread): Do not fix locale here; fixup_locale now does this.
5630
5631 * m/amdahl.h, s/usg5-4.h:
5632 (NSIG): Remove.
5633 (NSIG_MINIMUM): New macro.
5634
5635 * m/cydra5.h, m/dpx2.h, m/mips.h, m/pfa50.h, m/sps7.h, m/stride.h,
5636 m/ustation.h, s/gnu-linux.h, s/hpux.h, s/iris3-5.h, s/iris3-6.h,
5637 s/umips.h, s/usg5-4.h:
5638 (SIGIO): Do not undef.
5639 (BROKEN_SIGIO): New macro.
5640
5641 * m/ustation.h:
5642 (SIGTSTP): Do not undef.
5643 (BROKEN_SIGTSTP): New macro.
5644
5645 * s/gnu-linux.h:
5646 (SIGPOLL, SIGURG): Do not undef.
5647 (BROKEN_SIGPOLL, BROKEN_SIGURG): New macros.
5648
5649 * s/ptx4.h:
5650 (SIGINFO): Do not undef.
5651 (BROKEN_SIGINFO): New macros.
427ec082 5652
68c45bf0
PE
5653 * m/delta.h, s/ptx.h, s/template.h: Doc fix.
5654
5655 * mktime.c, strftime.c: Update to glibc 2.1.2 version, with
5656 some Emacs-related changes merged.
5657
5658 * print.c (float_to_string): Prepend "-" to representation of a
5659 NaN if the NaN is negative.
5660
5661 * process.c (sys_siglist): Omit if HAVE_STRSIGNAL.
5662 (wait_reading_process_input): Use emacs_strerror, not strerror.
427ec082 5663
68c45bf0
PE
5664 * process.c (status_message, sigchld_handler): Synchronize locale,
5665 then use strsignal istead of sys_siglist.
5666 * w32proc.c (sys_wait): Likewise.
427ec082 5667
68c45bf0
PE
5668 * s/aix3-1.h, s/bsd4-1.h, s/dgux.h, s/gnu-linux.h, s/hiuxmpp.h,
5669 s/hpux.h, s/iris3-5.h, s/iris3-6.h, s/irix3-3.h, s/osf1.h, s/rtu.h,
5670 s/sunos4-1.h, s/unipl5-0.h, s/unipl5-2.h, s/usg5-0.h, s/usg5-2-2.h,
5671 s/usg5-2.h, s/usg5-3.h, s/xenix.h:
5672 (open, close, read, write, INTERRUPTIBLE_OPEN,
5673 INTERRUPTIBLE_CLOSE, INTERRUPTIBLE_IO): Remove.
5674
5675 * s/sol2-5.h (_LARGEFILE_SOURCE, _FILE_OFFSET_BITS): New macros.
5676
5677 * sysdep.c (sys_read, sys_write, read, write, sys_close, close,
5678 sys_open, open): Remove.
5679 (emacs_open, emacs_close, emacs_read, emacs_write): Always define;
5680 the old INTERRUPTIBLE_OPEN, INTERRUPTIBLE_CLOSE, and INTERRUPTIBLE_IO
5681 macros are no longer used.
5682 (emacs_open): Renamed from sys_open. Merge BSD4_1 version.
5683 (emacs_close): Renamed from sys_close.
5684 (emacs_read): Renamed from sys_read.
5685 (emacs_write): Renamed from sys_write.
5686 (sys_siglist): Do not declare if HAVE_STRSIGNAL.
5687 (dup2): Do not print error on failure; the real dup2 doesn't.
5688 (strsignal): New function, defined if !HAVE_STRSIGNAL.
5689
5690 * syssignal.h (SIGINFO): Undef if defined and if BROKEN_SIGINFO
5691 is defined.
5692 (SIGIO, SIGPOLL, SIGTSTP, SIGURG): Likewise.
5693 (NSIG): If less than NSIG_MINIMUM, define to NSIG_MINIMUM.
5694 (strsignal): Declare if !HAVE_STRSIGNAL.
5695
5696 * unexelf.c (ElfBitsW, ELFSIZE, ElfExpandBitsW): New macros.
5697 (ElfW): Define in terms of ElfExpandBitsW.
5698
5699 * w32proc.c (sys_siglist): Remove decl.
5700
5701 * xdisp.c (decode_mode_spec): 3rd arg is int, not char, to comply
5702 with ANSI C.
5703 (display_string): Declare face_string_pos arg.
5704
5705 * xfns.c (Fx_show_tip): Declare timeout param.
5706
5707 * xterm.c: No need to include locale.h.
5708 (x_alloc_lighter_color, x_setup_relief_color):
5709 Pass arg as double, not float, for compatibility with ANSI C.
5710 (fixup_locale): Move to emacs.c.
5711 (x_term_init): Do not setlocale or fixup locale; the main program
5712 does this now.
5713
2f0b74ea
DL
57141999-10-18 Dave Love <fx@gnu.org>
5715
5716 * doc.c (Fdocumentation_property): Gcpro `tem'.
5717
471aa4a0
KH
57181999-10-18 Kenichi Handa <handa@etl.go.jp>
5719
5720 * lread.c (Fload): Calculate bytes of filename correctly.
5721 (openp): Likewise.
5722
aca2020b
KH
57231999-10-18 Keisuke Nishida <kxn30@po.cwru.edu>
5724
5725 * print.c (print_preprocess): In case print-circle is nil,
5726 add OBJ to Vprint_number_table only when OBJ is a symbol.
5727
1f5fe392 57281999-10-18 Kenichi Handa <handa@etl.go.jp>
b843d1ae
KH
5729
5730 * coding.c (code_convert_string): Add record_unwind_protect to
5731 assure setting inhibit_pre_post_conversion back to zero. Take
5732 care of the multibyteness of the working buffer.
5733
5734 * coding.c (inhibit_pre_post_conversion): New variable.
5735 (setup_coding_system): If inhibit_pre_post_conversion is nonzero,
5736 ignore post-read-conversion and pre-write-conversion property of
5737 the coding system.
5738 (code_convert_region_unwind): New function.
5739 (code_convert_region): Set inhibit_pre_post_conversion to 1 while
5740 running pre-write-conversion and post-read-conversion.
5741 (code_convert_string): Likewise.
5742
cd876a91
GM
57431999-10-17 Miles Bader <miles@gnu.org>
5744
5745 * editfns.c: Doc fix.
5746
57471999-10-17 Miles Bader <miles@gnu.org>
5748
5749 * editfns.c (Fconstrain_to_field): Make sure we don't violate the
5750 argument preconditions of find_before_next_newline in the case
5751 where both ONLY_IN_LINE and ESCAPE_FROM_EDGE are set and OLD_POS
5752 was indeed at the edge.
5753
57541999-10-17 Miles Bader <miles@gnu.org>
5755
5756 * minibuf.c (Fminibuffer_complete_and_exit): Supply value for new
5757 ESCAPE_FROM_EDGE parameter to Ffield_beginning.
5758
5759 * editfns.c (text_property_eq, text_property_stickiness): Don't
5760 use initializers for auto variables of type Lisp_Object.
5761 (find_field): Likewise. Use braces around nested ifs.
5762 (Fline_end_position): Store the raw eol in a variable, so that the
5763 final expression doesn't look so ugly.
5764 (Fconstrain_to_field): Doc fix.
5765 (preceding_pos): Renamed from `preceeding_pos'.
5766 (text_property_stickiness, find_field): Call preceding_pos,
5767 not preceeding_pos.
5768
57691999-10-17 Miles Bader <miles@gnu.org>
5770
5771 * editfns.c (Ffield_string_no_properties): New function.
5772 (text_property_stickiness, preceeding_pos): New functions.
5773 (Ffield_string): Remove PROPS parameter.
5774 (find_field): Add MERGE_AT_BOUNDARY parameter.
5775 Rewrite to use stickiness of `field' property to resolve
5776 ambiguous cases.
5777 (Ffield_beginning, Ffield_end): Add ESCAPE_FROM_EDGE parameter.
5778 (Fconstrain_to_field): Likewise.
5779 (syms_of_editfns): Init Sfield_string_no_properties.
427ec082 5780 (Ffield_string, Ferase_field, Ffield_end):
cd876a91
GM
5781 Supply new MERGE_AT_BOUNDARY argument to find_field.
5782 (Fline_beginning_position, Fline_end_position): Supply new
5783 ESCAPE_FROM_EDGE parameter to Fconstrain_to_field.
5784 Pass a value of Qt for the ONLY_IN_LINE argument to
5785 Fconstrain_to_field (only matters if N != 1).
5786 * syntax.c (Fforward_word): Supply new ESCAPE_FROM_EDGE parameter
5787 to Fconstrain_to_field.
5788
5789 * minibuf.c (Fminibuffer_complete_word): Use
5790 Ffield_beginning to find the prompt end.
5791
57921999-10-17 Miles Bader <miles@gnu.org>
5793
5794 * editfns.c (Fconstrain_to_field): Add get/set-current-point
5795 behavior when NEW_POS is nil.
5796 (find_field): Use XSETFASTINT instead of make_number.
5797 * minibuf.c (Fminibuffer_complete_and_exit): Test for an empty
5798 input string by seeing where the field begins, instead of
5799 looking at text-properties.
5800
58011999-10-17 Miles Bader <miles@gnu.org>
5802
5803 * editfns.c (Qfield): New variable.
5804 (find_field, Ferase_field, Ffield_string,
5805 Ffield_beginning, Ffield_end, Fconstrain_to_field): New functions.
5806 (Fline_beginning_position, Fline_end_position): Constrain to any field.
5807 (make_buffer_string_both): Remove minibuffer-prompt hack.
5808 (syms_of_editfns): Initialize Qfield, and subr entries for
5809 field functions above.
5810 * minibuf.c (read_minibuf): Don't save minibuffer prompt length on
5811 minibuf_save_list.
5812 Don't initialize minibuffer prompt length.
5813 Wrap prompt text-properties around the entire prompt.
5814 Add 'prompt text-property to prompt.
5815 Get final value with Ffield_string instead of make_buffer_string.
5816 (read_minibuf_unwind): Don't restore minibuffer prompt length from
5817 minibuf_save_list.
5818 (do_completion): Get minibuffer input with Ffield_string
5819 instead of Fbuffer_string.
5820 Erase minibuffer input with Ferase_field instead of erase_buffer.
5821 (Fminibuffer_complete_and_exit): Likewise.
5822 Test whether buffer is empty by looking for the 'prompt text
5823 property at the end.
5824 Set prompt length by looking for the end of the prompt text property,
5825 and save prompt length for later use (since there is no longer a
5826 buffer variable to get it from).
5827 (Fminibuffer_prompt_width, Fminibuffer_prompt_end): Functions removed.
5828 (syms_of_minibuf): Remove initializations of
5829 Sminibuffer_prompt_width and Sminibuffer_prompt_end.
5830 * buffer.h (struct buffer): Remove prompt_end_charpos field.
427ec082 5831 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer, Fkill_buffer):
cd876a91
GM
5832 Don't initialize prompt_end_charpos field.
5833 * syntax.c (Fforward_word): Likewise.
5834 Constrain to any field.
5835
3f6f7508
GM
58361999-10-16 Gerd Moellmann <gerd@gnu.org>
5837
5838 * window.c (enum save_restore_action): New.
5839 (save_restore_orig_size): Change parameter list. Add
5840 functionality to check for valid orig_top and orig_height members
5841 in a window tree.
5842 (grow_mini_window): Call save_restore_orig_size with new parameter
5843 list.
5844 (shrink_mini_window): Restore old window sizes only if old
5845 size information is valid in all windows in a window tree.
427ec082 5846
06482119
GM
58471999-10-15 Gerd Moellmann <gerd@gnu.org>
5848
2710454d
GM
5849 * xmenu.c (set_frame_menubar): Don't call
5850 x_set_menu_resources_from_menu_face here.
5851 (update_frame_menubar): Call x_set_menu_resources_from_menu_face.
5852
06482119
GM
5853 * xfns.c (gif_load): Fix handling of interlaced GIFs.
5854
17fa2837
DL
58551999-10-14 Dave Love <fx@gnu.org>
5856
5857 * xdisp.c (handle_fontified_prop): GCPRO `pos'.
5858
45f93416
GM
58591999-10-14 Gerd Moellmann <gerd@gnu.org>
5860
5861 * process.c (Fopen_network_stream): Don't loop if gethostbyname
5862 fails and h_errno is TRY_AGAIN.
5863
c765b723
DL
58641999-10-13 Dave Love <fx@gnu.org>
5865
5866 * filelock.c (lock_file): Move gcpro of `fn'.
5867
dace7f4e
GM
58681999-10-10 Gerd Moellmann <gerd@gnu.org>
5869
5870 * keyboard.c (auto-save-interval): Fix documentation.
427ec082 5871
83c8f461 58721999-10-09 Richard M. Stallman <rms@gnu.org>
73fb36f1
RS
5873
5874 * print.c (print): When removing objects from Vprint_number_table,
5875 only scan the newly added objects.
5876 (print_preprocess): If OBJ is a gensym, and print-continuous-numbering,
5877 unconditionally force it to stay in the table.
5878
85177c86
GM
58791999-10-09 Gerd Moellmann <gerd@gnu.org>
5880
5881 * xfns.c (prepare_image_for_display): Don't try to load image if
5882 loading it failed before.
5883 (lookup_image, prepare_image_for_display): Remember if loading the
5884 image failed.
5885 (xpm_load): Add missing UNBLOCK_INPUT.
5886
5887 * dispextern.h (struct image): New member load_failed_p.
5888
11e4de5d
SM
58891999-10-08 Stefan Monnier <monnier@cs.yale.edu>
5890
f28eba7b 5891 * fileio.c (Fmake_temp_name): Add a reference to `make-temp-file'
11e4de5d
SM
5892 in the docstring.
5893
f1da8f06
GM
58941999-10-08 Gerd Moellmann <gerd@gnu.org>
5895
5896 * xterm.c (XTread_socket) <ClientMessage, WM_TAKE_FOCUS>:
5897 Don't call XSetInputFocus because that can generate additional
5898 FocusIn events.
427ec082 5899
c37bbd4f
GM
59001999-10-07 Jeffrey C Honig <jch@bsdi.com>
5901
5902 * bsdos4.h [HAVE_LIBNCURSES]: Define TERMINFO and LIBS_TERMCAP.
5903
83c8f461 59041999-10-07 Richard M. Stallman <rms@gnu.org>
78cc5c64
GM
5905
5906 * process.c (wait_reading_process_input): When trying to suck
5907 input from one process, for accept-process-output,
5908 exit that loop if we get EAGAIN or EWOULDBLOCK.
5909
577d9e2f
GM
59101999-10-07 Gerd Moellmann <gerd@gnu.org>
5911
5912 * xfaces.c (Qbitmap_spec_p): Replaces Qpixmap_spec_p.
5913 (Fbitmap_spec_p): Replaces Fpixmap_spec_p.
5914 (load_pixmap): Use Fbitmap_spec_p and Qbitmap_spec_p instead of
5915 Fpixmap_spec_p and Qpixmap_spec_p.
5916 (load_face_colors, check_lface_attrs,
5917 merge_face_vector_with_property,
5918 Finternal_set_lisp_face_attribute): Use Fbitmap_spec_p.
5919 (syms_of_xfaces): Initialize Qbitmap_spec_p, defsubr
5920 Fbitmap_spec_p.
5921
f5737ad2
GM
59221999-10-07 Gerd Moellmann <gerd@gnu.org>
5923
5924 * xdisp.c (display_menu_bar): Use MENU_FACE_ID instead of
5925 MODE_LINE_FACE_ID.
5926
5927 * xfaces.c (toplevel) [USE_MOTIF]: Include some Motif headers.
5928 (struct x_resources) [USE_X_TOOLKIT]: New.
5929 (xm_apply_resources, xm_set_menu_resources_from_menu_face)
5930 [USE_MOTIF]: New.
5931 (xl_apply_resources, xl_set_menu_resources_from_menu_face)
5932 [USE_LUCID]: New.
5933 (x_set_menu_resources_from_menu_face) [USE_X_TOOLKIT]: New.
5934 (Qmenu): New.
5935 (syms_of_xfaces): Initialize Qmenu.
5936 (realize_basic_faces): Realize face `menu'.
5937 (resolve_face_name): New.
5938 (lface_from_face_name): Use it.
5939 (Finternal_set_lisp_face_attribute): Ditto.
5940 (Fpixmap_spec_p): Rewritten. Extend doc string.
5941
5942 * xmenu.c (set_frame_menubar, xmenu_show): Call
5943 x_set_menu_resources_from_menu_face.
5944
5945 * dispextern.h (enum face_id): Add MENU_FACE_ID.
5946 (toplevel): Include X11/Intrinsic.h.
5947
6a1aa823
DL
59481999-10-03 Ken'ichi Handa <handa@gnu.org>
5949
5950 * coding.c (DECODE_CHARACTER_ASCII): Decode ASCII invocated to GR
5951 correctly.
5952
26901792
DL
59531999-09-30 Kenichi Handa <handa@etl.go.jp>
5954
5955 * category.c (modify_lower_category_set): Set default value of
5956 TABLE correctly.
5957
5958 * minibuf.c (Fminibuffer_complete_word): Calculate string byte
5959 size correctly.
5960
59611999-09-29 Gerd Moellmann <gerd@gnu.org>
5962
5963 * editfns.c (Fpropertize): Renamed from Fproperties.
5964
59651999-09-29 Gerd Moellmann <gerd@gnu.org>
5966
5967 * xdisp.c (resize_mini_window): Do nothing if frame is an X
5968 frame that hasn't been initialized yet.
5969
83c8f461 59701999-09-28 Richard M. Stallman <rms@gnu.org>
a04f1a93
PR
5971
5972 * keymap.c (Fsingle_key_description): Make tem big enough.
5973 (describe_buffer_bindings): Make buf big enough.
5974
83c8f461 59751999-09-27 Richard M. Stallman <rms@gnu.org>
d177c583
PR
5976
5977 * intervals.c (get_local_map): Use indirect_function,
5978 not Findirect_function.
5979
26901792
DL
59801999-09-27 Dave Love <fx@gnu.org>
5981
5982 * cm.h: Remove unneeded declaration of ospeed.
5983
59841999-09-26 Gerd Moellmann <gerd@gnu.org>
5985
5986 * lisp.h (toplevel): Add prototype for
5987 next_single_char_property_change.
5988
5989 * textprop.c (next_single_char_property_change): New.
5990
5991 * xdisp.c (display_prop_end, invisible_text_between_p): Use
5992 next_single_char_property_change.
5993
59941999-09-25 Gerd Moellmann <gerd@gnu.org>
5995
5996 * editfns.c (Fproperties): New.
5997 (syms_of_editfns): Defsubr it.
5998
5999 * xfns.c (lookup_image): Set image's timestamp because it's
6000 used when we look it up.
6001
60021999-09-23 Gerd Moellmann <gerd@gnu.org>
6003
6004 * window.c (enlarge_window): Add window parameter instead of using
6005 selected_window.
6006 (Fdisplay_buffer): Call it with window parameter instead of
6007 setting selected_window.
6008 (Fenlarge_window, Fshrink_window): Ditto.
6009 (shrink_mini_window): If there is no recorded height and position
6010 info, resize mini-window to height 1.
6011
6012 * xfns.c (image_error): Use add_to_log.
6013
6014 * xfaces.c (load_pixmap): Call add_to_log without frame parameter.
6015 (load_face_font_or_fontset, load_color,
6016 merge_face_vector_with_property): Ditto.
6017
6018 * dispextern.h: Add prototype for add_to_log.
6019
6020 * xfaces.c (add_to_log): Move to xdisp.c.
6021
6022 * xdisp.c (add_to_log): Moved from xfaces.c. Remove frame
6023 parameter.
6024
60251999-09-23 Gerd Moellmann <gerd@gnu.org>
6026
6027 * xterm.c (XTread_socket) <MotionNotify>: Change #ifdef
6028 USE_X_TOOLKIT to #ifdef USE_TOOLKIT_SCROLL_BARS.
6029
6030 * xdisp.c (resize_mini_window): Use grow_mini_window and
6031 shrink_mini_window.
6032
6033 * window.c (window_min_size): Add parameter ignore_fixed_p.
6034 (change_window_height): Call window_min_size with new parameter.
6035 (shrink_window_lowest_first, save_restore_orig_size,
6036 grow_mini_window, shrink_mini_window): New.
6037 (make_window, replace_window): Initialize orig_top and
6038 orig_height.
6039 (enlarge_window): Renamed from change_window_height. Make it
6040 static.
6041 (Fdisplay_buffer, Fenlage_window, Fshrink_window): Call
6042 enlarge_window instead of change_window_height.
6043
6044 * window.h (struct window): New members orig_top, orig_height.
6045 (toplevel): Add prototypes for grow_mini_window and
6046 shrink_mini_window. Remove prototype for change_window_height.
6047
60481999-09-21 Eli Zaretskii <eliz@gnu.org>
6049
6050 * frame.c (frame_name_fnn_p): Fix previous change.
6051
60521999-09-20 Gerd Moellmann <gerd@gnu.org>
6053
6054 * minibuf.c (toplevel): Move include of stdio.h to other includes.
6055
6056 * dispnew.c (direct_output_for_insert): Cast arguments to
6057 safe_bcopy to char *.
6058
6059 * lread.c (readchar): Remove unused variables.
6060 (read_filtered_event, read1, Fmapatoms): Ditto.
6061 (toplevel): Include intervals.h.
6062
6063 * eval.c (Fsignal): Remove unused variables.
6064 (Fcommandp, do_autoload): Ditto.
6065
6066 * lisp.h: Add prototype for safe_bcopy, fatal.
6067
6068 * editfns.c (init_editfns): Remove unused variables.
6069 (Fgoto_char, Fchar_after, Fformat): Ditto.
6070 (message_text, message_length): Put in #ifndef HAVE_MENUS.
6071
6072 * data.c (find_symbol_value): Remove unused variables.
6073 (Faref, Fstring_to_number): Ditto.
6074 (toplevel): Include stdio.h.
6075 (Fnumber_to_string): Cast XINT to long for %ld.
6076
6077 * casefiddle.c (casify_object): Remove unused variables.
6078 (casify_region): Ditto.
6079
427ec082 6080 * filelock.c (get_boot_time): Put local variable used in
26901792
DL
6081 conditinally compiled section in #ifdef.
6082 (toplevel): Include stdio.h.
6083
6084 * keymap.c (Flookup_key, Faccessible_keymaps, describe_vector,
6085 keys_of_keymap, syms_of_keymap): Remove unused variables.
6086
60871999-09-20 Gerd Moellmann <gerd@gnu.org>
6088
6089 * xdisp.c (sync_frame_with_window_matrix_rows): Disable frame rows
6090 whose corresponding window rows have been disabled in
6091 try_window_id.
6092
60931999-09-20 Gerd Moellmann <gerd@gnu.org>
6094
6095 * xdisp.c (compute_window_start_on_continuation_line): Handle case
6096 that window start is out of range.
6097 (handle_display_prop, handle_single_display_prop): Replace
6098 marginal area specifications like `left-margin' with `(margin
6099 left-margin)'.
6100 (Qmargin): New.
6101 (syms_of_xdisp): Initialize Qmargin.
6102
61031999-09-19 Gerd Moellmann <gerd@gnu.org>
6104
6105 * syntax.c (update_syntax_table, find_defun_start, back_comment,
6106 describe_syntax, skip_chars): Remove unused variables.
6107 (back_comment, forw_comment): Add braces to if-statement with
6108 if-else as dependent statement.
6109
6110 * process.c (list_processes_1): Remove unused variables.
6111 (Fopen_network_stream, create_process): Add parentheses to
6112 conditional expressions.
6113 (create_process): Put declaration of sigchld in #if 0.
6114 (Fopen_network_stream): Removed unused variables.
6115 (Fopen_network_stream, wait_reading_process_input,
6116 wait_reading_process_input, send_process, send_process): Ditto.
6117 (toplevel): Add prototypes for set_waiting_for_input and
6118 keyboard_bit_set.
6119
6120 * abbrev.c (Fexpand_abbrev): Remove unused variables.
6121
6122 * textprop.c (Fset_text_properties): Remove unused variables.
6123 (text_property_list, verify_interval_modification,
6124 interval_has_all_properties): Ditto.
6125
6126 * callproc.c (toplevel) [HAVE_UNISTD_H]: Include unistd.h.
6127 (Fcall_process): Remove unused variable.
6128
6129 * keyboard.c (Frecursive_edit): Remove unused variable.
6130 (command_loop_1, safe_run_hooks, kbd_buffer_get_event,
6131 timer_check, make_lispy_event, menu_bar_items,
6132 menu_bar_one_keymap, menu_bar_item, parse_menu_item,
6133 parse_tool_bar_item, read_char_x_menu_prompt, read_key_sequence,
6134 kbd_buffer_get_event, make_lispy_event, read_char_x_menu_prompt,
6135 read_key_sequence): Ditto. Fread_key_sequence,
6136 Fread_key_sequence_vector, Fsuspend_emacs): Ditto.
6137 (read_key_sequence) [GOBBLE_FIRST_EVENT]: Put local variables only
6138 used when GOBBLE_FIRST_EVENT is defined in #ifdef
6139 (Fexecute_extended_command): Cast XINT to long for %ld.
6140 (toplevel) [HAVE_UNISTD_H]: Include unistd.h.
6141 (toplevel): Include sys/types.h.
6142
6143 * lisp.h (RETURN_UNGCPRO): Use do-while (0) idiom.
6144 (toplevel): Add prototypes for stuff_char, and
6145 code_convert_string_norecord.
6146
61471999-09-19 Gerd Moellmann <gerd@gnu.org>
6148
6149 * buffer.h: Add prototype for r_re_alloc.
6150
6151 * insdel.c (copy_text): Removed unused variables.
6152 (count_combining_after, count_combining_after, insert_1_both,
6153 insert_from_string_1, insert_from_buffer_1, check_markers): Ditto.
6154 (adjust_after_replace, replace_range): Add parentheses to logical
6155 expressions. Remove unused variables.
6156 (CHECK_BYTE_COMBINING_FOR_INSERT): Add parentheses to logical
6157 expression.
6158
6159 * alloc.c (Fgarbage_collect): Remove unused variable.
6160 (compact_strings): Add parentheses around assignments in
6161 conditional context.
6162 (toplevel): Put declaration of unused function clear_marks
6163 in #if 0 like its definition.
6164
6165 * lisp.h: Add prototype for shrink_regexp_cache,
6166 sweep_weak_hash_tables.
6167
61681999-09-19 Dave Love <fx@gnu.org>
6169
6170 * process.c (Fopen_network_stream): Use strerror, not gai_strerror.
6171
6172 * doc.c (read_bytecode_char): Declare arg.
6173
6174 * lisp.h: Declare Fcurrent_message, Fmake_temp_name,
6175 read_bytecode_char, Fx_hide_busy_cursor, getloadavg.
6176
61771999-09-18 Richard Stallman <rms@gnu.org>
6178
6179 * xdisp.c (echo_area_display): Turn off code that returned
6180 without doing anything when using a terminal frame.
6181
83c8f461 61821999-09-17 Richard M. Stallman <rms@gnu.org>
27271329
PR
6183
6184 * unexelf.c (unexec): Don't get confused by a short section
6185 just before the bss section.
6186
26901792
DL
61871999-09-16 Gerd Moellmann <gerd@gnu.org>
6188
6189 * emacs.c (main): Remove unused variables.
6190 (sort_args, Fkill_emacs, Fkill_emacs): Ditto.
6191
6192 * lisp.h: Add prototype for uninterrupt_malloc, memory_warnings,
6193 init_fileio_once, syms_of_sound, init_xfns, init_fns
6194 init_sound, check_message_stack.
6195
6196 * emacs.c (toplevel) [HAVE_UNISTD_H]: Include unistd.h.
6197
6198 * intervals.c (rotate_right, rotate_left): Add braces to avoid
6199 ambiguous else warning.
6200 (split_interval_left): Remove unused variables.
6201 (previous_interval, adjust_intervals_for_deletion,
6202 set_point_both, set_point_both, set_intervals_multibyte_1): Ditto.
6203 (icount, idepth, zero_length): Move into #if 0 section below
6204 original position where these are used.
6205
6206 * buffer.h [REL_ALLOC]: Add prototypes for r_alloc and r_alloc_free.
6207
6208 * buffer.c (Fkill_buffer): Remove unused variables.
6209 (Fkill_buffer, overlays_at, overlays_in, recenter_overlay_lists,
6210 fix_overlays_in_range, Fmove_overlay, Fprevious_overlay_change,
6211 init_buffer_once, (syms_of_buffer): Ditto.
6212
6213 * xrdb.c (get_fallback): Remove unused variable.
6214 (x_load_resources): Ditto. Put local variable used for Motif only
6215 in #ifdef USE_MOTIF.
6216
62171999-09-16 Gerd Moellmann <gerd@gnu.org>
6218
6219 * minibuf.c (read_minibuf): Remove unused variables.
6220 (read_minibuf, Fread_buffer, scmp, Fcompleting_read): Ditto.
6221 (do_completion): Move assignment out of conditional context.
6222 (Fdisplay_completion_list): Add parentheses to conditional expression.
6223
6224 * cm.c (toplevel) [HAVE_TERMCAP_H]: Include termcap.h.
6225
6226 * lisp.h: Add prototype for no_switch_window.
6227
6228 * window.c (Fset_window_buffer): Remove unused variables.
6229 (Fset_window_margins): Ditto.
6230
6231 * xdisp.c (resize_mini_window): Temporarily set the selected
6232 window's or Vminibuf_scroll_window's height to "fixed" around
6233 the call the change_window_height.
6234
6235 * window.c (window_fixed_size_p): Check window's height_fixed_p
6236 flag.
6237
6238 * window.h (struct window): New member height_fixed_p.
6239
6240 * dispnew.c (direct_output_forward_char): Don't use this method
6241 if showing a message or a message was just cleared because we
6242 might need to resize the mini-window.
6243
62441999-09-16 Gerd Moellmann <gerd@gnu.org>
6245
6246 * frame.c (Fdelete_frame): Correct local variable pointing to
6247 selected frame after selecting new frame.
6248
62491999-09-15 Richard Stallman <rms@gnu.org>
6250
6251 * puresize.h (BASE_PURESIZE): Increase to 525000.
6252
6253 * filelock.c (Vtemporary_file_directory): New variable.
6254 (syms_of_filelock): Set up Lisp variable.
6255
62561999-09-15 Gerd Moellmann <gerd@gnu.org>
6257
6258 * term.c (OUTPUT_IF, OUTPUT1_IF): Use do-while.
6259 (encode_terminal_code): Remove unused variables.
6260 (turn_off_face): Ditto.
6261 (toplevel): Include termcap.h if HAVE_TERMCAP_H.
6262
6263 * dispnew.c (update_frame_line): If writing whole desired line,
6264 don't clear to end of line if already at the end.
6265
62661999-09-15 Gerd Moellmann <gerd@gnu.org>
6267
6268 * xdisp.c (resize_mini_window): Don't report changed window
6269 height if it actually hasn't changed.
6270
427ec082 6271 * widget.c (set_frame_size, EmacsFrameSetCharSize): Remove
26901792
DL
6272 unused variables.
6273 (mark_shell_size_user_specified): Put in #if 0 because not used.
6274 (create_frame_gcs): Put in #if 0 because currently unused.
6275 (first_frame_p): Ditto.
6276
6277 * xmenu.c (single_menu_item, Fx_popup_menu, Fx_popup_menu,
6278 single_submenu, update_frame_menubar, set_frame_menubar,
6279 free_frame_menubar, xmenu_show, xdialog_show): Remove unused
6280 variables.
6281
6282 * print.c (PRINTFULLP): Removed because it is no longer used and
6283 is misleading.
6284 (Ferror_message_string): Remove unused variables.
6285 (print_object): Cast argument of sprintf to long for `%ld'
6286 specifier. Remove unused variable.
6287
62881999-09-14 Gerd Moellmann <gerd@gnu.org>
6289
6290 * sound.c (Fplay_sound): Remove usused variables.
6291 (be2hs): Put in #if 0 because it's currently not used.
6292
62931999-09-14 Ken Raeburn <raeburn@gnu.org>
6294
6295 * print.c (Ferror_message_string, print_error_message,
6296 print_object): Use XCAR, XCDR and XFLOAT_DATA instead of explicit
6297 member access.
6298
62991999-09-14 Gerd Moellmann <gerd@gnu.org>
6300
6301 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Put code in do-while.
6302
6303 * frame.c (Fnext_frame): Remove unused variable(s).
6304 (Fprevious_frame, Fmouse_pixel_position, frame_name_fnn_p): Ditto.
6305 (store_frame_param): Add parentheses to conditional expression.
6306 (Fmodify_frame_parameters): Remove unused variables.
6307 (Fmodify_frame_parameters, Fset_frame_size, Fset_frame_position):
6308 Ditto.
6309
6310 * xfns.c (x_set_background_color): Remove unused variable(s).
6311 (x_set_border_pixel): Ditto.
6312 (x_set_menu_bar_lines): Put local variable used only for
6313 non-toolkit case in #ifdef/#endif.
6314 (x_figure_window_size): Remove unused variable(s).
427ec082 6315 (x_figure_window_size, x_window, lookup_image,
26901792
DL
6316 xbm_read_bitmap_file_data, x_build_heuristic_mask, pbm_load,
6317 png_load, jpeg_load, gif_load, x_create_tip_frame,
6318 x_create_tip_frame, Fx_show_tip, x_set_border_pixel): Ditto.
6319
6320 * xterm.c (x_scroll_bar_handle_click): Compile only if
6321 not USE_TOOLKIT_SCROLL_BARS.
6322 (x_scroll_bar_set_handle, x_scroll_bar_note_movement): Ditto.
6323
6324 * dispextern.h: Add prototypes for gamma_correct and
6325 x_kill_gs_process.
6326
6327 * xterm.c (x_produce_glyphs): Remove unused variable(s).
6328 (x_alloc_nearest_color_for_widget, note_tool_bar_highlight,
6329 x_set_toolkit_scroll_bar_thumb): Ditto.
6330 (x_scroll_bar_create): Move local variable to the
6331 conditionally compiled section of code where it is used.
6332 (x_scroll_bar_create): Remove unused variable(s).
6333 (x_scroll_bar_remove, XTread_socket): Ditto.
6334 (XTread_socket) <ConfigureNotify>: Move variables used for
6335 non-toolkit case into conditionally compiled section of code.
6336
6337 * window.h (freeze_window_starts): Fix typo in prototype.
6338
6339 * xdisp.c (display_echo_area_1, try_window_id): Remove unused
6340 variable(s).
6341
6342 * lisp.h: Add prototype for debug_print.
6343
6344 * dispextern.h (xassert) [GLYPH_DEBUG]: Change definition
6345 to use do-while.
6346
6347 * fns.c (SXHASH_COMBINE): Add missing parentheses.
6348 (Fchar_table_range, Fset_char_table_default, mapcar1,
6349 Fyes_or_no_p, sweep_weak_hash_tables): Remove unused variable(s).
6350
6351 * lisp.h: Add prototype for getloadavg.
6352
63531999-09-14 Andreas Schwab <schwab@gnu.org>
6354
6355 * process.c (Fopen_network_stream): Avoid socket decriptor leak.
6356
6357 * lisp.h: Declare close_file_unwind.
6358
63591999-09-14 Richard Stallman <rms@gnu.org>
6360
6361 * filelock.c (get_boot_time): Make the temp name in the proper dir.
6362
63631999-09-13 Gerd Moellmann <gerd@gnu.org>
6364
6365 * xdisp.c (redisplay_window): Make sure start_at_line_beg
6366 is always set correctly.
6367
63681999-09-13 Dave Love <fx@gnu.org>
6369
6370 * xdisp.c (move_it_in_display_line_to): Make type consistent with
6371 declaration.
6372
63731999-09-13 Gerd Moellmann <gerd@delysid.gnu.org>
6374
6375 * xdisp.c (QCfile): Move here from xfns.c.
6376 (syms_of_xdisp): Initialize it.
6377 (message2_nolog): Change for Lisp_Object selected_frame.
6378 (message3_nolog, message_with_string, message,
6379 setup_echo_area_for_printing, truncate_echo_area,
6380 prepare_menu_bars, redisplay_internal, Fdump_tool_bar_row): Ditto.
6381
63821999-09-13 Dave Love <fx@gnu.org>
6383
6384 * xterm.c: Don't continue #define args for benefit of old cc.
6385 (xt_action_hook): Indent #error for benefit of K&R cc.
6386
63871999-09-13 Gerd Moellmann <gerd@delysid.gnu.org>
6388
6389 * xterm.c (XTcursor_to): Change for Lisp_Object selected_frame.
6390 (x_clear_frame, XTring_bell, XTmouse_position, XTread_socket): Ditto.
6391 (XRINGBELL): Removed.
6392
63931999-09-13 Dave Love <fx@gnu.org>
6394
6395 * xfns.c (x_put_x_image): Make type consistent with declaration.
6396
6397 * fns.c (Fmake_hash_table): Fix string continuation.
6398
63991999-09-13 Gerd Moellmann <gerd@delysid.gnu.org>
6400
6401 * xfns.c (QCfile): Moved to xdisp.c.
6402 (syms_of_xfns): Don't initialize QCfile.
6403 (check_x_frame): Change for Lisp_Object selected_frame.
6404 (check_x_display_info, x_get_resource_string): Ditto.
6405
64061999-09-13 Gerd Moellmann <gerd@gnu.org>
6407
6408 * minibuf.c (choose_minibuf_frame): Don't try to set the
6409 mini-buffer window's buffer, if the buffer is invalid.
6410
6411 * xfns.c (QCfile): Moved to xdisp.c.
6412 (syms_of_xfns): Don't initialize QCfile.
6413
6414 * xdisp.c (QCfile): Move here from xfns.c.
6415 (syms_of_xdisp): Initialize it.
6416
6417 * lisp.h (selected_frame): Add external declaration.
6418
6419 * xselect.c (x_own_selection): Change for Lisp_Object selected_frame.
6420 (Fx_store_cut_buffer_internal): Ditto.
6421 (Fx_rotate_cut_buffers_internal): Ditto.
6422
6423 * xfaces.c (frame_or_selected_frame): Change for Lisp_Object
6424 selected_frame.
6425 (Finternal_set_lisp_face_attribute): Ditto.
6426 (Finternal_get_lisp_face_attribute): Ditto.
6427 (Finternal_lisp_face_empty_p): Ditto.
6428 (Fdump_face): Ditto.
6429
6430 * term.c (OUTPUT): Change for Lisp_Object selected_frame.
6431 (OUTPUT_IF, ring_bell, set_terminal_modes, reset_terminal_modes,
6432 set_terminal_window, set_scroll_region, reassert_line_highlight,
6433 change_line_highlight, cursor_to, raw_cursor_to, clear_to_end,
6434 clear_end_of_line, clear_end_of_line_raw, clear_end_of_line_raw,
6435 encode_terminal_code, write_glyphs, term_init): Ditto.
6436
6437 * sysdep.c (reset_sys_modes): Change for Lisp_Object selected_frame.
6438 (kbd_input_ast, read_input_waiting): Ditto.
6439
6440 * minibuf.c (choose_minibuf_frame): Change for Lisp_Object
6441 selected_frame.
6442 (read_minibuf): Ditto.
6443
6444 * keyboard.c (command_loop_1): Change for Lisp_Object
6445 selected_frame.
6446 (cmd_error_internal, command_loop_1, read_char,
6447 kbd_buffer_get_event, read_avail_input,
6448 read_char_minibuf_menu_prompt, read_key_sequence, Fsuspend_emacs,
6449 interrupt_signal, quit_throw_to_read_char): Ditto.
6450
6451 * fontset.c (Ffont_info): Change for Lisp_Object selected_frame.
6452 (Ffontset_info): DItto.
6453
6454 * emacs.c (handle_USR1_signal): Change for Lisp_Object selected_frame.
6455
6456 * dispnew.c (selected_frame): Make it a Lisp_Object.
6457 (adjust_frame_glyphs_initially): Change for Lisp_Object selected_frame.
6458 (direct_output_for_insert, direct_output_forward_char,
6459 init_display): Ditto.
6460
6461 * data.c (swap_in_symval_forwarding): Change for Lisp_Object
6462 selected_frame.
6463 (set_internal): Ditto.
6464
6465 * buffer.c (Fother_buffer): Change for Lisp_Object selected_frame.
6466 (record_buffer): Ditto.
6467
6468 * frame.c (Fmake_terminal_frame): Use SELECTED_FRAME.
6469 (do_switch_frame): Change for Lisp_Object selected_frame.
6470 (Fselected_frame): Ditto.
6471 (Fframe_first_window): Use SELECTED_FRAME.
6472 (Fframe_root_window): Change for Lisp_Object selected_frame.
6473 (Fframe_selected_window, Fset_frame_selected_window, Fnext_frame,
6474 Fprevious_frame, other_visible_frames, Fdelete_frame,
6475 Fmouse_position, Fmouse_pixel_position, Fmake_frame_visible,
6476 Fmake_frame_invisible, Ficonify_frame, Fraise_frame, Flower_frame,
6477 Fframe_parameters, Fmodify_frame_parameters, Fframe_char_height,
6478 Fframe_char_width, Fframe_pixel_height, Fframe_pixel_width,
6479 Fset_frame_height, Fset_frame_width): Ditto.
6480
64811999-09-13 Gerd Moellmann <gerd@gnu.org>
6482
6483 * xdisp.c (message2_nolog): Change for Lisp_Object selected_frame.
6484 (message3_nolog, message_with_string, message,
6485 setup_echo_area_for_printing, truncate_echo_area,
6486 prepare_menu_bars, redisplay_internal, Fdump_tool_bar_row): Ditto.
6487
6488 * xmenu.c (Fx_popup_menu): Change for Lisp_Object selected_frame.
6489 (Fx_popup_dialog): Ditto.
6490
6491 * xfns.c (check_x_frame): Change for Lisp_Object selected_frame.
6492 (check_x_display_info, x_get_resource_string): Ditto.
6493
6494 * xterm.c (XTcursor_to): Change for Lisp_Object selected_frame.
6495 (x_clear_frame, XTring_bell, XTmouse_position, XTread_socket): Ditto.
6496 (XRINGBELL): Removed.
6497
6498 * window.c (Fminibuffer_window): Change for Lisp_Object
6499 selected_frame.
6500 (Fwindow_at, Fprevious_window, window_loop, select_window_1,
6501 display_buffer_1, Fdisplay_buffer, temp_output_buffer_show,
6502 Fcurrent_window_configuration, init_window_once): Ditto.
6503
6504 * frame.h (SELECTED_FRAME): New.
6505
65061999-09-12 Ken Raeburn <raeburn@gnu.org>
6507
6508 * category.c (word_boundary_p): Use XCAR and XCDR.
6509 * ccl.c (ccl_driver, resolve_symbol_ccl_program,
6510 Fregister_code_conversion_map): Likewise.
6511 * coding.c (setup_coding_system, detect_coding_system,
6512 Ffind_operation_coding_system, Fset_coding_priority_internal):
6513 Likewise.
6514 * doc.c (get_doc_string, Fdocumentation,
6515 store_function_docstring): Likewise.
6516 * editfns.c (save_restriction_restore): Likewise.
6517 * eval.c (Fcond, Fmacroexpand, Fcondition_case, wants_debugger,
6518 skip_debugger, find_handler_clause, Fautoload, Fapply,
6519 run_hook_with_args, run_hook_list_with_args, Ffetch_bytecode):
6520 Likewise.
6521 * fileio.c (Ffind_file_name_handler, Finsert_file_contents,
6522 Fwrite_region, do_auto_save_unwind, Fdo_auto_save,
6523 Fread_file_name): Likewise.
6524 * filelock.c (unlock_all_files): Likewise.
6525 * insdel.c (Fcombine_after_change_execute): Likewise.
6526 * intervals.c (adjust_intervals_for_insertion): Likewise.
6527 * keymap.c (get_keymap_1, Fkeymap_parent, Fset_keymap_parent,
6528 Fset_keymap_parent, fix_submap_inheritance, access_keymap,
6529 store_in_keymap, Fcopy_keymap, define_as_prefix,
6530 current_minor_maps, Faccessible_keymaps,
6531 accessible_keymaps_char_table, Fkey_description,
6532 Fwhere_is_internal, where_is_internal_2, where_is_internal_1,
6533 describe_buffer_bindings, describe_map_tree, shadow_lookup,
6534 describe_map): Likewise.
6535 * lread.c (Fload, load_unwind, close_load_descs, read_vector,
6536 read_list, init_lread): Likewise.
6537 * search.c (Fmatch_data): Likewise.
6538 * sunfns.c (Fsun_menu_internal): Likewise.
6539 * syntax.c (describe_syntax): Likewise.
6540 * undo.c (record_insert, record_delete, Fundo_boundary,
6541 truncate_undo_list): Likewise.
6542 * vmsproc.c (child_sig): Likewise.
6543
6544 * editfns.c (Fformat): Use XFLOAT_DATA.
6545
65461999-09-12 Gerd Moellmann <gerd@gnu.org>
6547
6548 * keyboard.c (command_loop_1): Resize mini-window to the
6549 exact size of a message displayed, if any.
6550
6551 * xdisp.c (resize_mini_window): Add parameter exact_p. Resize
6552 to exact size if exact_p is non-zero.
6553 (display_echo_area_1): Call resize_mini_window with
6554 new parameter.
6555 (redisplay_internal): Ditto.
6556 (resize_echo_area_axactly): New.
6557
6558 * minibuf.c (read_minibuf_unwind): Call resize_mini_window with
6559 new parameter.
6560
6561 * dispextern.h: Change prototype of resize_mini_window.
6562 Add prototype for resize_echo_area_axactly.
6563
6564 * xfaces.c (Fx_family_fonts): Replaces Fx_font_list.
6565 (syms_of_xfaces): Defsubr accordingly.
6566
6567 * xdisp.c (hscroll_window_tree): Choose cursor row from
6568 desired or current matrix.
6569 (redisplay_internal): Hscroll before updating.
6570
65711999-09-12 Gerd Moellmann <gerd@gnu.org>
6572
6573 * syntax.c (Fforward_word): Use prompt_end_charpos instead
6574 of minibuffer_prompt_length.
6575
6576 * minibuf.c (read_minibuf): Use prompt_end_charpos instead
6577 of minibuffer_prompt_length.
6578 (read_minibuf_unwind): Ditto.
6579 (Fminibuffer_complete_and_exit): Ditto.
6580 (Fminibuffer_complete_word): Ditto.
6581 (Fminibuffer_prompt_end): Ditto.
6582
6583 * editfns.c (Fbuffer_string): Use prompt_end_charpos instead
6584 of minibuffer_prompt_length.
6585 (Fline_beginning_position): Ditto.
6586
6587 * buffer.c (Fget_buffer_create): Use prompt_end_charpos instead
6588 of minibuffer_prompt_length.
6589 (Fmake_indirect_buffer): Ditto.
6590 (Fkill_buffer): Ditto.
6591 (Ferase_buffer): Ditto.
6592
6593 * buffer.h (prompt_end_charpos): Replaces
6594 minibuffer_prompt_length.
6595
427ec082 6596 * minibuf.c (read_minibuf): Return mini-buffer contents
26901792
DL
6597 without the prompt.
6598
6599 * editfns.c (make_buffer_string_both): Take out the code
6600 to handle mini-buffer prompts.
6601 (Fbuffer_string): Handle the prompt here, instead.
6602
6603 * xfaces.c (lface_from_face_name): Resolve face aliases.
6604 (Qmode_line): Replaces Qmodeline.
6605 (realize_basic_faces): Use Qmode_line.
6606 (syms_of_xfaces): Initialize Qmode_line.
6607
66081999-09-12 Gerd Moellmann <gerd@gnu.org>
6609
6610 * minibuf.c (read_minibuf): Set minibuf_prompt_width to the
6611 current column after inserting prompt.
6612 (Fminibuffer_prompt_width): Return minibuf_prompt_width.
6613
6614 * xfaces.c (Qframe_update_face_colors): New.
6615 (syms_of_xfaces): Initialize call.
6616 (update_face_from_frame_parameter): Call that function when
6617 the frame's background changes.
6618
66191999-09-12 Richard Stallman <rms@gnu.org>
6620
6621 * insdel.c (del_range_1): Don't treat minibuffer prompt specially.
6622
66231999-09-12 Ken Raeburn <raeburn@gnu.org>
6624
6625 * alloc.c (Fcons, pure_cons, Fpurecopy, Fgarbage_collect,
6626 mark_object, mark_buffer): Use XCAR and XCDR.
6627 * bytecode.c (Fbyte_code): Likewise.
6628 * callint.c (Fcall_interactively, Fprefix_numeric_value):
6629 Likewise.
6630 * callproc.c (Fcall_process, Fcall_process_region, child_setup,
6631 getenv_internal): Likewise.
6632 * dired.c (file_name_completion): Likewise.
6633 * fns.c (Fsafe_length, concat, Fcopy_alist, Fmember, Fmemq, Fassq,
6634 assq_no_quit, Fassoc, Frassq, Frassoc, Fdelq, Fdelete, Freverse,
6635 Fplist_get, Fplist_put, internal_equal, mapcar1): Likewise.
6636 * indent.c (Fcompute_motion): Likewise.
6637 * process.c (decode_status, Fprocess_status, Fprocess_exit_status,
6638 list_processes_1, Fstart_process, Fopen_network_stream,
6639 wait_reading_process_input, read_process_output_call,
6640 kill_buffer_processes, sigchld_handler, exec_sentinel_unwind,
6641 status_notify, wait_reading_process_input): Likewise.
6642 * textprop.c (PLIST_ELT_P, property_value, set_properties,
6643 extend_property_ranges): Likewise.
6644 * w32faces.c (Fpixmap_spec_p, merge_face_list): Likewise.
6645 * w32fns.c (x_window_to_frame, x_set_frame_parameters,
6646 x_report_frame_params, x_set_cursor_type, x_icon_type,
6647 x_figure_window_size, Fx_create_frame, w32_load_system_font,
6648 w32_load_font, enum_font_cb2, w32_list_bdf_fonts, w32_list_fonts,
6649 w32_list_synthesized_fonts, w32_find_ccl_program, Fx_list_fonts,
6650 Fw32_find_bdf_fonts, w32_find_bdf_fonts_in_dir,
6651 x_display_info_for_name, Fx_display_list): Likewise.
6652 * w32menu.c (menubar_id_to_frame, single_keymap_panes,
6653 Fx_popup_menu, Fx_popup_dialog): Likewise.
6654 * w32proc.c (Fw32_set_keyboard_layout): Likewise.
6655 * w32term.c (x_window_to_scroll_bar, w32_read_socket,
6656 w32_term_init, x_delete_display): Likewise.
6657 * xfns.c (x_window_to_frame, x_any_window_to_frame,
6658 x_non_menubar_window_to_frame, x_menubar_window_to_frame,
6659 x_top_window_to_frame, x_set_frame_parameters,
6660 x_report_frame_params, x_set_cursor_type, x_icon_type,
6661 x_figure_window_size, Fx_create_frame, x_display_info_for_name,
6662 Fx_display_list, x_create_tip_frame): Likewise.
6663 * xmenu.c (menubar_id_to_frame, single_keymap_panes,
6664 Fx_popup_menu, Fx_popup_dialog): Likewise.
6665 * xselect.c (x_own_selection, x_get_local_selection,
6666 x_handle_selection_request, x_handle_selection_clear,
6667 x_clear_frame_selections, wait_for_property_change_unwind,
6668 wait_for_property_change, x_handle_property_notify,
6669 copy_multiple_data, x_get_foreign_selection,
6670 lisp_data_to_selection_data, clean_local_selection_data,
6671 x_handle_selection_notify, Fx_get_selection_internal,
6672 x_disown_buffer_selections): Likewise.
6673 * xterm.c (x_window_to_scroll_bar, XTread_socket, x_list_fonts,
6674 x_load_font, x_find_ccl_program, x_term_init, x_delete_display):
6675 Likewise.
6676
6677 * alloc.c (make_float, make_pure_float, Fpurecopy): Use
6678 XFLOAT_DATA.
6679 * bytecode.c (Fbyte_code): Likewise.
6680 * floatfns.c (extract_float, Fexpt, Fabs, rounding_driver,
6681 fmod_float): Likewise.
6682
66831999-09-11 Richard Stallman <rms@gnu.org>
6684
6685 * xdisp.c (run_window_scroll_functions): If hook functions switch
6686 buffers, switch back after.
6687
66881999-09-11 Ken Raeburn <raeburn@gnu.org>
6689
6690 * charset.h (GET_TRANSLATION_TABLE): Use XCDR.
6691 * frame.h (FOR_EACH_FRAME): Use XCAR and XCDR.
6692 (PIXEL_X_FROM_CANON_X, PIXEL_Y_FROM_CANON_Y): Use XFLOAT_DATA.
6693 * keyboard.h (EVENT_HEAD, EVENT_START, EVENT_END, POSN_WINDOW,
6694 POSN_BUFFER_POSN, POSN_WINDOW_POSN, POSN_TIMESTAMP): Use XCAR and
6695 XCDR.
6696 * syntax.h (SYNTAX, SYNTAX_WITH_FLAGS, SYNTAX_MATCH): Use XCAR and
6697 XCDR.
6698
66991999-09-10 Richard Stallman <rms@gnu.org>
6700
6701 * xterm.c (XTread_socket): In XSetInputFocus, use RevertToParent,
6702 not RevertToPointerRoot.
6703 (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
6704 Fix the code to clear around the scroll bar.
6705
67061999-09-10 Keisuke Nishida <kxn30@po.cwru.edu>
6707
6708 * print.c: Support print-circle and related features.
6709 (Vprint_gensym_alist): Removed.
6710 (Vprint_circle, Vprint_continuous_numbering, print_number_index
6711 Vprint_number_table): New variables.
6712 (PRINT_NUMBER_OBJECT, PRINT_NUMBER_STATUS): New macros.
6713 (PRINTPREPARE, PRINTFINISH): Don't set Vprint_gensym_alist.
6714 (print, print_preprocess, print_preprocess_string, print_object):
6715 New/modified functions with print-circle feature. Use
6716 Vprint_number_table instead of Vprint_gensym_alist for print-gensym.
6717 (syms_of_print): Defined new Lisp variables `print-circle',
6718 `print-continuous-numbering', `print-number-table'.
6719
67201999-09-10 Gerd Moellmann <gerd@gnu.org>
6721
6722 * xfns.c (x_build_heuristic_mask): Accept a list `(R G B)'
6723 as background color specification instead of an integer.
6724 (image-cache-eviction-delay): Replaces image-eviction-seconds.
6725 (Vimage_cache_eviction_delay): Replaces Vimage_eviction_seconds.
6726 (clear_image_cache, syms_of_xfns): Use it.
6727 (Qpostscript): Replaces Qghostscript.
6728 (gs_type): Use it.
6729 (gs_image_p): Ditto.
6730 (syms_of_xfns): Initialize Qpostscript.
6731
67321999-09-10 Richard Stallman <rms@gnu.org>
6733
6734 * buffer.c (Ferase_buffer): Don't erase the minibuffer prompt.
6735
67361999-09-09 Richard Stallman <rms@gnu.org>
6737
6738 * editfns.c (Fline_beginning_position): Handle minibuffer prompt here.
6739
6740 * cmds.c (Fbeginning_of_line): Don't handle minibuffer prompt here.
6741
67421999-09-09 Gerd Moellmann <gerd@gnu.org>
6743
6744 * fns.c (Fmakehash): Accept just one optional argument TEST.
6745
6746 * xfns.c (QCindex): New.
6747 (syms_of_xfns): Initialize QCindex.
6748 (gif_load): Use it instead of `:image'.
6749
67501999-09-09 Richard Stallman <rms@gnu.org>
6751
6752 * fileio.c (Fwrite_region): Finish renaming CONFIRM to MUSTBENEW.
6753 (Fwrite_region) [DOS_NT]: Handle `excl' here too.
6754
67551999-09-08 Gerd Moellmann <gerd@gnu.org>
6756
6757 * xdisp.c (Qwhen): Replaces QCwhen.
6758 (syms_of_xdisp): Initialized it instead of QCwhen.
6759 (handle_single_display_prop): Use it instead of QCwhen.
6760
67611999-09-08 Ken'ichi Handa <handa@gnu.org>
6762
6763 * charset.c (translate_char): Reset MSBs of arguments of
6764 MAKE_CHAR.
6765 (CHAR_COMPONENTS_VALID_P): Fix for ASCII.
6766
67671999-09-08 Lars Magne Ingebrigtsen <larsi@gnus.org>
6768
6769 * editfns.c (Fbufsize): Accept an extra BUFFER parameter.
6770
6771 * fns.c (Fbase64_decode_region): Don't place point outside of the
6772 current accessible portion.
6773
67741999-09-07 Richard Stallman <rms@gnu.org>
6775
6776 * keymap.c (fix_submap_inheritance): Do nothing if the proper
6777 parent is an ancestor of SUBMAP; otherwise, add it as the
6778 ultimate ancestor.
6779
67801999-09-07 Gerd Moellmann <gerd@gnu.org>
6781
6782 * xdisp.c (handle_single_display_prop): Change conditional
6783 display property to `:when FORM . VALUE'.
6784
67851999-09-07 Richard Stallman <rms@gnu.org>
6786
6787 * fileio.c (Fwrite_region): Doc fix.
6788
67891999-09-07 Stefan Monnier <monnier@cs.yale.edu>
6790
6791 * fileio.c (Qexcl): New variable.
6792 (report_file_error): Handle EEXIST specially.
6793 (Fwrite_region): Special handling for CONFIRM = `excl'.
6794 (syms_of_fileio): Initialize Qexcl.
6795
67961999-09-07 Gerd Moellmann <gerd@gnu.org>
6797
6798 * xfns.c (x_set_foreground_color): Call
6799 update_face_from_frame_parameter.
6800 (x_set_background_color): Ditto.
6801 (x_set_mouse_color): Ditto.
6802 (x_set_cursor_color): Ditto.
6803 (x_set_border_color): Ditto.
6804 (x_set_scroll_bar_foreground): Ditto.
6805 (x_set_scroll_bar_background): Ditto.
6806
6807 * xfaces.c (recompute_basic_faces): Clear face cache.
6808 (Finternal_set_lisp_face_attribute): Modify frame parameters
6809 if attributes of certain faces are changed.
6810 (update_face_from_frame_parameter): New.
6811
6812 * xfaces.c (realize_basic_faces): Realize new basic faces.
6813
6814 * dispextern.h (SCROLL_BAR_FACE_ID, BORDER_FACE_ID,
6815 CURSOR_FACE_ID, MOUSE_FACE_ID): New.
6816
6817 * xfaces.c (Qscroll_bar, Qcursor, Qborder, Qmouse): New.
6818 (syms_of_xfaces): Intialize new symbols.
6819
6820 * fns.c (Fmakehash): Take one argument, test, make all the
6821 rest keyword arguments.
6822
6823 * window.c (Fset_window_margins): Make window the first argument.
6824 (set_window_buffer): Call Fset_window_margins with window as first
6825 argument.
6826
68271999-09-07 Gerd Moellmann <gerd@gnu.org>
6828
6829 * xfaces.c (Qfringe): Replaces Qmargin.
6830
68311999-09-07 Kenichi Handa <handa@etl.go.jp>
6832
6833 * charset.h: Lots of comments fixed.
6834 (PARSE_MULTIBYTE_SEQ): Make it work also for ASCII string.
6835 (STRING_CHAR_AND_CHAR_LENGTH): This macro removed.
6836
6837 * charset.c : Lots of comments fixed.
6838 (SPLIT_MULTIBYTE_SEQ): Make it work also for ASCII string.
6839 (CHAR_COMPONENTS_VALID_P): Name changed from
6840 CHAR_COMPONENT_VALID_P. Caller changed.
6841
68421999-09-06 Richard Stallman <rms@gnu.org>
6843
6844 * insdel.c (syms_of_insdel): Define Lisp variable
6845 inhibit-modification-hooks.
6846
68471999-09-06 Michael Sperber [Mr. Preprocessor] <sperber@informatik.uni-tuebingen.de>
6848
6849 * s/aix4-2.h (ALIGN_DATA_RELOC): Undefined to support new
6850 unexaix.c.
6851
6852 * s/aix3-1.h (ALIGN_DATA_RELOC): Defined to support new unexaix.c.
6853
68541999-09-06 Dave Love <fx@gnu.org>
6855
6856 * unexaix.c: New version incorporating Michael Sperber's changes
6857 from XEmacs. Should solve problems on AIX 4.3.
6858
6859 * lread.c (Vbyte_boolean_vars): New variable.
6860 (defvar_bool, syms_of_lread): Use it.
6861
68621999-09-05 Richard Stallman <rms@gnu.org>
6863
6864 * minibuf.c (read_minibuf): Put all three properties on the
6865 same range, the whole prompt.
6866
68671999-09-05 Gerd Moellmann <gerd@gnu.org>
6868
6869 * sound.c (Qplay_sound_functions): Replaces Qplay_sound_hook.
6870 (Fplay_sound, syms_of_sound): Use it.
6871 (parse_sound): Allow float volume values in the range [0, 1].
6872 (Fplay_sound): Ditto.
6873
6874 * window.c (Fset_window_vscroll): Make window the first argument,
6875 amount to scroll the second. Take non-negative vscroll as
6876 argument.
6877 (Fwindow_vscroll): Return non-negative vscroll.
6878
6879 * xfns.c (Fx_show_tip): Improve documentation.
6880
68811999-09-05 Gerd Moellmann <gerd@gnu.org>
6882
6883 * buffer.c, buffer.h, dispextern.h, dispnew.c, keyboard.c,
6884 window.c, xdisp.c, xfaces.c, xterm.c, keyboard.h: Change
6885 `top-line' and `top_line' to `header-line' and `header_line'.
6886 Likewise for similar spellings.
6887
68881999-09-05 Gerd Moellmann <gerd@gnu.org>
6889
6890 * xdisp.c (row_containing_pos): New.
6891 (try_window_id): Use it.
6892
6893 * alloc.c, dispextern.h, dispnew.c, frame.c, frame.h, keyboard.c,
6894 lisp.h, termhooks.h, window.c xdisp.c, xfaces.c, xfns.c, xterm.c:
6895 Change spelling of `toolbar' to `tool_bar' or `tool-bar'.
6896 Likewise for upper-case etc.
6897
68981999-09-05 Gerd Moellmann <gerd@gnu.org>
6899
6900 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
6901 Fix reference to renamed variable.
6902
69031999-09-04 Gerd Moellmann <gerd@gnu.org>
6904
6905 * window.c (Qwindow_size_fixed): Replaces Qfixed_window_size.
427ec082 6906 (window_fixed_size_p): Use Qwindow_size_fixed instead of
26901792
DL
6907 Qfixed_window_size.
6908 (syms_of_window): Ditto.
6909
6910 * fns.c (Fmakehash): Exchange optional test and size arguments.
6911
69121999-09-03 Gerd Moellmann <gerd@gnu.org>
6913
6914 * xterm.c (XTset_vertical_scroll_bar): Block input when clearing
6915 under newly created scroll bar.
6916 (expose_window): If window is not yet fully initialized, do
6917 nothing. This can happen when toolkit scroll bars are used and a
6918 window is split. Reconfiguring the scroll bars will generate an
6919 expose for a newly created window.
6920
6921 * frame.h (struct frame): New member `gamma'.
6922
6923 * xfns.c: Include math.h. Add extern declaration for atof in case
6924 we don't see one.
6925 (Qscreen_gamma): New.
6926 (struct x_frame_parm_table): Add prototypes, add
6927 x_set_screen_gamma.
6928 (gamma_correct): New function.
6929 (defined_color): Call it.
6930 (x_set_screen_gamma): New.
6931 (x_set_title): Add parameter old_value.
6932 (RES_TYPE_FLOAT): New.
6933 (x_get_arg): Handle RES_TYPE_FLOAT.
6934 (Fx_create_frame): Call x_default_parameter for `screen-gamma'.
6935 (lookup_pixel_color): Change call to x_alloc_nearest_color to
6936 new prototype.
6937 (lookup_rgb_color): Ditto.
6938 (syms_of_xfns): Initialize Qscreen_gamma.
6939
6940 * xterm.c (x_alloc_nearest_color_for_widget) [USE_X_TOOLKIT]:
6941 New. Allocate color for lwlib widgets.
6942 (x_alloc_nearest_color): Change parameter list include the
6943 frame on which to allocate colors. Gamma-correct colors.
6944 (x_alloc_lighter_color): Call x_alloc_lighter_color with new
6945 parameter list.
6946
6947 * xterm.h: Change protorype of x_alloc_nearest_color.
6948
69491999-09-03 Richard Stallman <rms@gnu.org>
6950
6951 * callproc.c: Delete the system-independent include of stdlib.h
6952 (leaving only the one in the WINDOWSNT conditional).
6953
69541999-09-03 Andrew Choi <choi@cs.hku.hk>
6955
6956 * callproc.c (call-process) [macintosh]: Call mac_run_command in
6957 sysdep.c. The Mac code is modeled after the DOS code.
427ec082 6958
26901792
DL
6959 * dispextern.h [macintosh]: Include macterm.h to define substitute X
6960 Window types and macros.
6961
6962 * frame.h: Do nothing if included a second time.
6963 (enum output_method): Add mac_output frame type.
6964 (union output_data): Add new alternative `mac'.
6965 (FRAME_MAC_P): New macro.
427ec082 6966
26901792
DL
6967 * frame.c (Fframep) [macintosh]: Handle mac frame type.
6968 (syms_of_frame_1): Initialize Qmac.
6969 (make_terminal_frame) [macintosh]: Initialize output_data.mac fields.
6970 (Fmake_terminal_frame) [macintosh]: Add an alternate error check.
6971 (Fmodify_frame_parameters) [macintosh]: Call
6972 mac_set_frame_parameter in macterm.c.
427ec082 6973
26901792
DL
6974 * keyboard.c [macintosh]: Set KBD_BUFFER_SIZE to a smaller value
6975 (512) because Mac compilers limit local data of a function to 32K.
427ec082 6976
26901792
DL
6977 * make-docfiles.c: Correctly handle input files with Mac-style
6978 eol's.
427ec082 6979
26901792 6980 * sysdep.c: Define numerous routines to emulate Unix system calls.
427ec082 6981
26901792
DL
6982 * xfaces.c: on MacOS, define the set of colors listed in rgb.txt
6983 file of an X Window environment.
427ec082 6984
26901792
DL
6985 * xfaces.c: on MacOS, define the Lisp functions x-display-color-p,
6986 x-display-grayscale, x-color-defined-p, and x-color-values.
427ec082 6987
26901792
DL
6988 * sysdep.c [macintosh] (stat, fstat, mkdir, rmdir, utime, access)
6989 (open, creat, unlink, read, write, rename, fopen, pause, alarm)
6990 (signal, sleep, gmtime, localtime, ctime, time, index, mktemp)
6991 (getpwuid, getpwnam, dup, dup2, isatty, getgid, getegid, getuid)
6992 (geteuid, getpid, getenv, uname, opendir, closedir, readdir, getwd.):
6993 New functions, replacing POSIX features.
427ec082 6994
26901792
DL
6995 * sysdep.c [macintosh] (Mac2UnixPathname, Unix2MacPathname, CheckAlarm)
6996 (InitMyPasswd, GetTempDirName, mystrchr, mystrtok, mystrcpy):
6997 (InitEmacsPasswdDir, run_mac_command): New subroutines.
6998
6999 * sysdep.c [macintosh] (targetTicks, alarm_signal_func, myPasswdName)
7000 (myPasswd, emacsPasswdDir, emacsPasswd, myPasswdInited, mask)
7001 (myPasswdDir, TempDirName, sys_siglist): New variables.
7002
7003 * sysdep.c [macintosh] (execvp, wait, croak, fork, kill, sigsetmask)
7004 (sigblock, request_sigio, unrequest_sigio, setpgrp, pipe, symlink)
7005 (link, lstat, readlink, umask, chmod, sbrk, fsync, ioctl):
7006 Define empty stubs so Emacs will link.
7007
70081999-09-03 Gerd Moellmann <gerd@gnu.org>
7009
7010 * xdisp.c: Use XCAR and XCDR instead of XCONS.
7011
7012 * window.h: New member frozen_window_start_p.
7013
7014 * window.c (foreach_window, foreach_window_1): New.
7015 (freeze_window_start, freeze_window_starts): New.
7016 (make_window): Initialize frozen_window_start_p.
7017 (replace_window): Ditto.
7018 (Fset_window_point): Remove references to deleted variables.
7019 (Fset_window_start): Ditto.
7020
7021 * xdisp.c (Vresize_mini_config, resize_mini_frame,
7022 resize_mini_initial_height): Removed.
7023 (syms_of_xdisp): Remove references to these variables.
7024 (resize_mini_window): Don't save window configuration, freeze
7025 window starts instead. Enlarge window until displaying an empty
7026 buffer, then shrink it. Make the function externally visible.
7027 (redisplay_window): Treat frozen window start like forced start,
7028 but accept point outside of the window.
7029
7030 * dispextern.h: Add function prototype for resize_mini_window.
7031
7032 * minibuf.c (read_minibuf_unwind): Resize mini-window when
7033 reaching minibuf_level 0.
7034
7035 * lisp.h: Remove extern declarations for variables deleted from
7036 xdisp.c.
7037
7038 * dispnew.c (adjust_frame_glyphs): Remove reference to
7039 Vresize_mini_config.
7040
70411999-09-03 Gerd Moellmann <gerd@gnu.org>
7042
7043 * xfns.c (x_set_scroll_bar_width): Change conditional compilation
7044 to USE_TOOLKIT_SCROLL_BARS.
7045
7046 * xterm.c (x_scroll_bar_create): Don't clear under scroll bar
7047 here.
7048 (XTset_vertical_scroll_bar): Clarify position computations. Clear
7049 under newly created scroll bar. Put toolkit scroll bars in the
7050 middle of the area reserved for the scroll bar.
7051
70521999-09-03 Kenichi Handa <handa@etl.go.jp>
7053
7054 The following changes are for the new handling of mulitbyte
7055 sequence. Now, except for a composite character, no multibyte
7056 character in string/buffer has trailing garbage bytes. For
7057 instance, the length of string "\201\300\300" is now 2, the first
7058 character is Latin-1 A-grave, the second is raw \300.
7059
7060 * charset.h (MAKE_NON_ASCII_CHAR): Handle the case that C1 or C2
7061 are negative.
7062 (MAKE_CHAR): Don't set MSBs of C1 and C2 to 0.
7063 (VALID_MULTIBYTE_CHAR_P): This macro deleted.
7064 (PARSE_COMPOSITE_SEQ): New macro.
7065 (PARSE_CHARACTER_SEQ): New macro.
427ec082 7066 (PARSE_MULTIBYTE_SEQ): New macro.
26901792
DL
7067 (CHAR_PRINTABLE_P): New macro.
7068 (STRING_CHAR): Adjusted for the change of string_to_non_ascii_char.
7069 (STRING_CHAR_AND_LENGTH): Likewise.
7070 (STRING_CHAR_AND_CHAR_LENGTH): Define it as STRING_CHAR_AND_LENGTH.
7071 (INC_POS): Use the macro PARSE_MULTIBYTE_SEQ.
7072 (DEC_POS, BUF_INC_POS, BUF_DEC_POS): Likewise,
7073
7074 * charset.c (SPLIT_COMPOSITE_SEQ): New macro.
7075 (SPLIT_CHARACTER_SEQ): New macro.
7076 (SPLIT_MULTIBYTE_SEQ): New macro.
7077 (CHAR_COMPONENT_VALID_P): New macro.
7078 (non_ascii_char_to_string): Generate a multibyte sequence as far
7079 as possible.
7080 (string_to_non_ascii_char): The 4th arg exclude_tail_garbage is
7081 deleted. Caller changed. Use the macro SPLIT_MULTIBYTE_SEQ.
7082 (split_non_ascii_string): Likewise.
7083 (multibyte_form_length): Use the macro PARSE_MULTIBYTE_SEQ.
7084 (char_printable_p): New function.
7085 (translate_char): Check character by NATNUMP instead of INTEGERP.
7086 (unibyte_char_to_multibyte): Call char_valid_p instead of
7087 VALID_MULTIBYTE_CHAR_P.
7088 (Fmake_char_internal): Check the arguments more rigidly.
7089 (Fcharset_after): Use the macro SPLIT_MULTIBYTE_SEQ.
7090 (char_valid_p): Check the validity by CHAR_COMPONENT_VALID_P.
7091 (Fmultibyte_char_to_unibyte): Check the validity of character by
7092 CHAR_VALID_P.
7093 (chars_in_text): Call multibyte_chars_in_text.
7094 (multibyte_chars_in_text): Use the macro PARSE_MULTIBYTE_SEQ.
7095 (Fcompose_string): Use the macro STRING_CHAR_AND_LENGTH instead of
7096 STRING_CHAR_AND_CHAR_LENGTH (which is obsolete now).
7097
7098 * data.c (Faset): Adjust the way to check byte-combining
7099 possibility for the new handling of multibyte sequence.
7100
7101 * editfns.c (Fsubst_char_in_region): Likewise.
7102
7103 * fns.c (count_combining): Use the macro PARSE_MULTIBYTE_SEQ.
7104 (string_char_to_byte): Likewise.
7105 (string_byte_to_char): Likewise.
7106
7107 * indent.c (MULTIBYTE_BYTES_WIDTH): Delete the 2nd arg C. Use the
7108 macro STRING_CHAR_AND_LENGTH. Caller changed.
7109
7110 * insdel.c (count_combining_composition): New function.
7111 (count_combining_before): Adjust the way to check byte-combining
7112 possibility for the new handling of multibyte sequence. Call
7113 count_combining_composition for a composite character.
7114 (count_combining_after): Likewise.
7115
7116 * print.c (print_string): Use the macro STRING_CHAR_AND_LENGTH.
7117 (print): Likewise.
7118
7119 * dispextern.h (struct it): Change the size of the member
7120 `ctl_chars'.
7121
7122 * xdisp.c (get_next_display_element): Display incomplete multibyte
7123 sequence (e.g. \222\300) by octal form.
7124
71251999-09-02 Gerd Moellmann <gerd@gnu.org>
7126
7127 * xterm.h (VERTICAL_SCROLL_BAR_WIDTH_TRIM): Change from 2 to 0.
7128
7129 * fns.c (Fhash_table_weakness): Replaces Fhash_table_weak.
7130 (cmpfn_eql, sxhash): Use XFLOAT_DATA.
7131
71321999-09-02 Gerd Moellmann <gerd@gnu.org>
7133
7134 * buffer.c (set_buffer_internal): Never set
7135 windows_or_buffers_changed.
7136
7137 * xdisp.c (try_window_id): Reset first_unchanged_at_end_row
7138 if we have displayed to the bottom of the window.
7139
7140 * syntax.c (Fforward_word): Stop at a mini-buffer prompt end
7141 in both directions. Extend documentation.
7142
71431999-09-01 Gerd Moellmann <gerd@gnu.org>
7144
7145 * minibuf.c (read_minibuf): Flush display after setting cursor to
7146 column 0.
7147
71481999-08-31 Gerd Moellmann <gerd@gnu.org>
7149
7150 * s/freebsd.h (__FreeBSD_version): Don't define it if it is
7151 already defined. This avoids a warning from buffer.c.
7152
71531999-08-30 Gerd Moellmann <gerd@gnu.org>
7154
7155 * xterm.h (FRAME_X_FLAGS_AREA_COLS): Define it as the total width
7156 of both margins.
7157 (FRAME_X_FLAGS_AREA_WIDTH): Likewise.
7158 (FRAME_X_LEFT_FLAGS_AREA_WIDTH): New.
7159 (FRAME_X_RIGHT_FLAGS_AREA_WIDTH): New.
7160
7161 * frame.h (FRAME_WINDOW_WIDTH_ARG): Add in FRAME_FLAGS_AREA_COLS
7162 once instead of twice.
7163 (FRAME_LEFT_FLAGS_AREA_WIDTH): New.
7164
7165 * xterm.c: Remove unused bitmaps.
7166 (continued_bits, continuation_bits, overlay_bits): Change images.
7167 (x_draw_vertical_border): Use FRAME_X_RIGHT_FLAGS_AREA_WIDTH
7168 instead of FRAME_X_FLAGS_AREA_WIDTH.
7169 (x_after_update_window_line): Ditto.
7170 (x_draw_bitmap): Likewise.
7171 (x_draw_row_bitmaps): Likewise.
7172 (x_draw_glyph_string_box): Likewise.
7173 (x_draw_glyphs): Likewise.
7174 (x_scroll_run): Likewise.
7175 (expose_window_tree): Likewise.
7176 (note_mode_line_highlight): Likewise.
7177 (XTset_vertical_scroll_bar): Likewise.
7178 (x_clip_to_row): Likewise.
7179 (x_set_window_size): Likewise.
7180
7181 * xfns.c (x_figure_window_size): Use FRAME_FLAGS_AREA_COLS instead
7182 of 2 * that value.
7183
7184 * xdisp.c (window_box_width): Use FRAME_FLAGS_AREA_COLS instead of
7185 2 * that value.
7186 (window_box_left): Use FRAME_LEFT_FLAGS_AREA_WIDTH instead of
7187 FRAME_FLAGS_AREA_WIDTH.
7188
7189 * window.c (coordinates_in_window): Use
7190 FRAME_LEFT_FLAGS_AREA_WIDTH instead of FRAME_FLAGS_AREA_WIDTH.
7191 (window_internal_width): Subtract FRAME_FLAGS_AREA_WIDTH once
7192 instead of twice.
7193
427ec082 7194 * widget.c (set_frame_size): Set flags_area_extra to
26901792
DL
7195 FRAME_FLAGS_AREA_WIDTH instead of 2 * that width.
7196 (EmacsFrameSetCharSize): Ditto.
7197
7198 * dispnew.c (mode_line_string): Add FRAME_LEFT_FLAGS_AREA_WIDTH
7199 instead of FRAME_FLAGS_AREA_WIDTH.
7200
7201 * dispextern.h (WINDOW_DISPLAY_PIXEL_WIDTH): Subtract
7202 FRAME_FLAGS_AREA_COLS once.
7203 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X): Add
7204 FRAME_LEFT_FLAGS_AREA_WIDTH instead of FRAME_FLAGS_AREA_WIDTH.
7205
72061999-08-30 Gerd Moellmann <gerd@gnu.org>
7207
7208 * freebsd.h (C_SWITCH_SYSTEM): Added to let configure find headers
7209 in /usr/X11R6/include which are checked for with AC_CHECK_HEADER.
7210
72111999-08-30 Gerd Moellmann <gerd@gnu.org>
7212
7213 * fns.c (QCweakness): Replaces QCweak.
7214 (Fmake_hash_table): Ditto.
7215 (Fmakehash): Ditto.
7216 (syms_of_fns): Ditto.
7217
72181999-08-29 Richard Stallman <rms@gnu.org>
7219
7220 * search.c (compile_pattern_1): Enable RE_CHAR_CLASSES for regexp.
7221
7222 * sysdep.c (read_input_waiting): Pass read_socket_hook just 4 args.
7223
7224 * syntax.h (SYNTAX_COMMENT_NESTED, SYNTAX_FLAGS_COMMENT_NESTED):
7225 Add support for nested comments.
7226
863476d1
SM
7227 * syntax.c (Fforward_comment, scan_lists, scan_sexps_forward):
7228 Consolidate the forward comment code into the new `forw_comment'.
7229 (forw_comment): New subroutine. Added support for nested comments.
7230 (lisp_parse_state, back_comment, Fmodify_syntax_entry)
7231 (Fparse_partial_sexp): Add support for nested comments.
26901792
DL
7232
72331999-08-28 Ken Raeburn <raeburn@gnu.org>
7234
7235 * lisp.h (struct Lisp_Cons, XCAR, XCDR, struct Lisp_Float): Change
7236 names of structure elements if HIDE_LISP_IMPLEMENTATION is
7237 defined, to help detect code that uses knowledge of the Lisp
7238 internals that it shouldn't have.
7239 (XFLOAT_DATA): New macro.
7240
72411999-08-25 Gerd Moellmann <gerd@gnu.org>
7242
7243 * syntax.c (Fforward_word): If in a mini-buffer and moving
7244 backwards, stop in front of the prompt to prevent accidentially
7245 moving into the read-only prompt.
7246
7247 * window.c (Frecenter): Clear frame if called with nil or no arg.
7248
7249 * xdisp.c (resize_mini_window): Don't resize if
7250 Vmax_mini_window_height is nil. Otherwise, use a default if
7251 Vmax_mini_window_height is not ot a number.
7252 (syms_of_xdisp): Extend documentation of Vmax_mini_window_height.
7253
72541999-08-25 Alexandre Oliva <oliva@dcc.unicamp.br>
7255
7256 * unexelf.c: Merge IRIX debugging info patch from unexsgi.c
7257 * m/iris4d.h: Use unexelf for IRIX 5.*.
7258 * m/iris5d.h: Use unexelf for IRIX 6.*.
7259 * unexsgi.c: Deleted.
7260
7261 * unexelf.c: Auto-detect .sbss section.
7262 (round_up): Make it static.
7263 (unexec): Declare alignment as Elf Word. Skip ``Program
7264 segment above .bss'' test on MIPS without .sbss.
7265 Copy sections .got and .sdata1 sections. Adjust offsets in
7266 sections .sdata, .lit4, .lit8, .got and .sdata1.
7267
72681999-08-25 Gerd Moellmann <gerd@gnu.org>
7269
7270 * xdisp.c (try_window_id): Remove typo.
7271
72721999-08-24 Gerd Moellmann <gerd@gnu.org>
7273
7274 * xdisp.c (try_window_id): Recognize case that PT == ZV and in
7275 unchanged text at the bottom when computing the cursor position.
7276 (message3_nolog): Raise frame only if minibuffer_auto_raise is
7277 set.
7278
7279 * lisp.h (PVEC_TYPE_MASK): Add the bit for hash tables.
7280
72811999-08-24 Gerd Moellmann <gerd@gnu.org>
7282
7283 * xfaces.c (Qmargin): Replacement for Qbitmap_area.
7284 (realize_basic_faces): Replace Qmargin for Qbitmap_area.
7285 (syms_of_xfaces): Ditto.
7286
7287 * window.c (Fset_window_point): Reset Vresize_mini_config.
7288 (Fset_window_start): Ditto.
7289 (set_window_buffer): Ditto.
7290
7291 * dispnew.c (adjust_frame_glyphs): Reset Vresize_mini_config.
7292
7293 * xdisp.c (redisplay_window): Don't ever test just_this_one_p
7294 before calling try_window.
7295 (echo_area_display): If height has changed, update other windows.
7296 (resize_mini_frame, resize_mini_initial_height): New.
7297 (resize_mini_window): Save/restore window configuration
7298 differently.
7299
427ec082 7300 * lisp.h (Vresize_mini_config, resize_mini_frame,
26901792
DL
7301 resize_mini_initial_height): Add extern declarations.
7302
7303 * xterm.c (expose_window_tree): Fix typo CANON_Y_UNIT to
7304 CANON_X_UNIT.
7305
7306 * xfns.c [HAVE_JPEG]: Work around a warning about HAVE_STDLIB_H
7307 being redefined in jconfig.h.
7308
73091999-08-23 Ken'ichi Handa <handa@gnu.org>
7310
7311 * coding.h: Include "ccl.h" instead of "../src/ccl.h".
7312
73131999-08-22 Gerd Moellmann <gerd@gnu.org>
7314
7315 * alloc.c (mark_glyph_matrix): Mark strings only.
7316
7317 * xdisp.c (redisplay_internal): Clear garbaged frames after
7318 resizing mini-window.
7319
73201999-08-22 Gerd Moellmann <gerd@gnu.org>
7321
7322 * xdisp.c (unwind_with_echo_area_buffer): Use
7323 set_buffer_internal_1 instead of set_buffer_internal.
7324 (with_echo_area_buffer): Ditto.
7325
7326 * buffer.c (set_buffer_internal): Set windows_or_buffers_changed
7327 only if buffer is displayed somewhere.
7328
7329 * buffer.h (BUF_COMPUTE_UNCHANGED): New.
7330
7331 * insdel.c (gap_left): Use BUF_COMPUTE_UNCHANGED.
7332 (gap_right): Ditto.
7333 (modify_region): Ditto.
7334
7335 * buffer.c (modify_overlay): Use BUF_COMPUTE_UNCHANGED.
7336
7337 * xdisp.c (Vresize_mini_config): New.
7338 (resize_mini_window): Use it to save restore original window
7339 configuration
7340 (syms_of_xdisp): Initialize it.
7341
7342 * buffer.h (struct buffer): Add prevent_redisplay_optimizations_p.
7343
7344 * dispextern.h (struct glyph_matrix): Add buffer, begv, and zv.
7345
7346 * xdisp.c (reconsider_clip_changes): New.
7347 (redisplay_internal, redisplay_window): Call it.
7348 (mark_window_display_accurate, redisplay_internal): Set current
7349 matrix' buffer, begv, zv.
7350
7351 * window.c (Fset_window_hscroll): Set
7352 prevent_redisplay_optimizations_p instead of clip_changed.
7353 (Fset_window_hscroll): Ditto.
7354 (temp_output_buffer_show): Ditto.
7355 (Fset_window_vscroll): Ditto.
7356
7357 * buffer.c (reset_buffer): Set clip_changed to 0 and
7358 prevent_redisplay_optimizations_p to 1.
7359 (Fget_buffer_create): Set prevent_redisplay_optimizations_p to 1.
7360
7361 * buffer.h (BUF_UNCHANGED_MODIFIED, UNCHANGED_MODIFIED,
7362 BUF_OVERLAY_UNCHANGED_MODIFIED, OVERLAY_UNCHANGED_MODIFIED,
7363 BUF_BEG_UNCHANGED, BEG_UNCHANGED, BUF_END_UNCHANGED,
7364 END_UNCHANGED): New.
7365 (struct buffer_text): Add beg_unchanged, end_unchanged,
7366 unchanged_modified, overlay_unchanged_modified.
7367
7368 * window.h (beg_unchanged, end_unchanged, unchanged_modified,
7369 overlay_unchanged_modified): Removed.
7370 (with_echo_area_unwind_data): Don't save beg/end_unchanged.
7371 (unwind_with_echo_area_buffer): Don't restore them.
7372 (debug_beg_unchanged, debug_end_unchanged) [GLYPH_DEBUG]: Removed.
7373 (text_outside_line_unchanged_p, redisplay_internal,
7374 try_scrolling): Use/set buffer-specific beg/end_unchanged.
7375 (redisplay_window): Let try_window_id be called if more than one
7376 window is displayed. Use/set buffer-specific beg/end_unchanged.
7377 (get_last_unchanged_at_beg_row, get_first_unchanged_at_end_row,
7378 try_window_id):
7379 Use buffer-specific beg/end_unchanged.
7380
7381 * window.h (beg_unchanged, end_unchanged, unchanged_modified,
7382 overlay_unchanged_modified): Remove extern declarations.
7383
7384 * keyboard.c (command_loop_1): Set beg/end_unchanged per
7385 buffer.
7386
7387 * insdel.c (gap_left): Compute beg/end_unchanged per buffer.
7388 (gap_right): Ditto.
7389 (adjust_after_replace): Likewise.
7390 (replace_range, del_range_2, modify_region): Likewise.
7391
7392 * dispnew.c (direct_output_for_insert): Set beg_unchanged
7393 and unchanged_modified per buffer.
7394
7395 * coding.c (code_convert_region): Compute beg/end_unchanged per
7396 buffer.
7397
7398 * buffer.c (modify_overlay): Compute beg/end_unchanged
7399 per buffer.
427ec082 7400 (Fget_buffer_create): Initialize new members of the buffer
26901792
DL
7401 structure.
7402
74031999-08-22 Gerd Moellmann <gerd@gnu.org>
7404
7405 * lisp.h: Add prototype for copy_hash_table and Fcopy_hash_table.
7406
7407 * fns.c (Qkey, Qvalue): Renamed from Qkey_weak, and Qvalue_weak.
7408 (Qkey_value_weak): Removed.
7409 (make_hash_table): Use nil, `key', `value', t for weakness.
7410 (Fmake_hash_table): Ditto.
7411 (copy_hash_table): New.
7412 (Fcopy_hash_table): New.
7413
74141999-08-22 Gerd Moellmann <gerd@gnu.org>
7415
7416 * xfns.c: Call change_frame_size and do_pending_window_change with
427ec082 7417 new parameter.
26901792
DL
7418
74191999-08-21 Gerd Moellmann <gerd@gnu.org>
7420
7421 * xdisp.c (resize_mini_window): Do it for truncate-lines t as
7422 well.
427ec082 7423 (redisplay_internal): Resize mini-window only if text might
26901792
DL
7424 have changed.
7425 (display_echo_area): Reset displayed echo_area_buffer to nil
7426 at the end if we're displaying a nil message.
7427
74281999-08-21 Gerd Moellmann <gerd@gnu.org>
427ec082 7429
26901792
DL
7430 * fns.c (hash_lookup): Test with EQ before calling key comparion
7431 function.
7432 (hash_remove): Ditto.
7433 (cmpfn_eq): Removed.
7434 (cmpfn_eql): Don't test with EQ.
7435 (cmpfn_equal): Ditto.
7436 (make_hash_table): Set comparison function for `eq' to null.
7437
7438 * buffer.c, cmds.c, editfns.c, indent.c, insdel.c, buffer.h:
7439 Remove conditional compilation on NO_PROMPT_IN_BUFFER.
7440
7441 * dispextern.h (NO_PROMPT_IN_BUFFER): Removed.
7442
7443 * window.c, widget.c, process.c, keyboard.c, frame.c, xdisp.c,
7444 xterm.c: Call change_frame_size and do_pending_window_change with
7445 new parameter.
7446
7447 * dispnew.c (do_pending_window_change): Add parameter `safe'.
7448 (change_frame_size): Ditto.
7449 (change_frame_size_1): Ditto. Deley size changes if redisplaying
7450 and not called from a safe place.
7451 (window_change_signal): Call change_frame_size with new parameter.
7452
7453 * dispextern.h: Change prototypes for do_pending_window_change
7454 and change_frame_size.
7455
7456 * xfaces.c (face_at_buffer_position): Don't xassert that
427ec082 7457 window's buffers equals current_buffer; this is not the
26901792
DL
7458 case during echo area display.
7459
74601999-08-21 Gerd Moellmann <gerd@gnu.org>
7461
7462 * xdisp.c, minibuf.c: Remove conditional compilation on
7463 NO_PROMPT_IN_BUFFER.
7464
7465 * minibuf.c (Fminibuffer_prompt_end): New.
7466 (syms_of_minibuf): Defsubr it. Remove
7467 minibuffer-prompt-in-buffer.
7468 (Fminibuffer_prompt_width): Return 0 if not in mini-buffer.
7469 Extend documentation.
7470
7471 * xdisp.c (get_next_display_element): Display \r as ^M.
7472
7473 * xterm.c (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]: Clear
7474 under scroll bar widget.
7475
74761999-08-21 Gerd Moellmann <gerd@gnu.org>
7477
7478 * xdisp.c (minibuffer_scroll_overlap): Removed because not used
7479 anywhere.
7480 (unwind_redisplay): Return nil.
7481 (clear_garbaged_frames): New.
7482 (redisplay_internal): Use it.
7483 (echo_area_display): Ditto.
7484 (resize_mini_window): Mew.
7485 (display_echo_area_1): Use it to resize echo area window.
7486 (redisplay_internal): Use it to resize active mini-window.
7487
7488 * dispextern.h, lisp.h: Add function prototypes.
7489
427ec082 7490 * dispnew.c (set_window_cursor_after_update): Do the
26901792
DL
7491 cursor_in_echo_area case only for a mini-window showing
7492 a message. Don't let cursor end up after the end of a row.
7493
7494 * xdisp.c (echo_area_glyphs, echo_area_message,
7495 echo_area_glyphs_length, previous_echo_glyphs,
7496 previous_echo_area_message, previous_echo_area_glyphs_length):
7497 Removed.
7498 (Vmessage_stack, echo_area_buffer, echo_buffer,
7499 display_last_displayed_message_p, Vwith_echo_area_save_vector): New.
7500 (message2_nolog): Use set_message and clear_message.
7501 (message3): Rename parameter len to nbytes to make clear what
7502 it is.
7503 (message3_nolog): Ditto. Use set_message and clear_message.
7504 (update_echo_area): Rewritten.
7505 (with_echo_area_buffer): New.
7506 (with_echo_area_buffer_unwind_data, unwind_with_area_buffer): New.
7507 (setup_echo_area_for_printing): New.
7508 (display_echo_area, display_echo_area_1): New.
7509
7510 (current_message, current_message_1): New.
427ec082 7511 (push_message, restore_message, pop_message,
26901792
DL
7512 check_message_stack): New.
7513 (truncate_echo_area): Rewritten.
7514 (truncate_message_1): New.
7515 (set_message, set_message_1, clear_message): New.
7516 (echo_area_display): Rewritten.
7517 (redisplay_internal): Check for needed echo area update
7518 differently.
7519 (redisplay_preserve_echo_area): Rewritten.
427ec082 7520 (redisplay_window): Check for mini-window displaying echo area
26901792
DL
7521 message differently.
7522 (syms_of_xdisp): Initialize Vmessage_stack and echo area buffers.
7523 Remove initialzation of removed variables.
7524 (init_xdisp): Remove references to removed variables.
7525
7526 * dispnew.c (adjust_frame_message_buffer): Removed references
7527 to echo_area_glyphs and previous_echo_glyphs.
7528 (direct_output_for_insert): Check for mini-window displaying
7529 echo area message differently.
7530 (update_frame): Likewise.
7531 (set_window_cursor_after_update): Likewise. In echo area,
7532 don't try to set cursor on rows that aren't enabled.
7533
7534 * print.c: Remove conditional compilation on `standalone'.
7535 (glyph_len, str_to_glyph_cpy, str_to_glyph_ncpy,
427ec082 7536 glyph_to_str_cpy): Remove that section because GLYPHs are no
26901792
DL
7537 longer used in that way.
7538 (PRINTDECLARE): Add multibyte.
7539 (PRINTPREPARE, PRINTFINISH): Handle printcharfun t differently.
7540 (printbufidx): Removed.
7541 (printchar, strout): Rewritten.
7542
7543 * keyboard.c (ok_to_echo_at_next_pause): Make it a pointer to
7544 a struct kboard.
7545 (echo_kboard): New.
7546 (echo_now): Set echo_kboard to the current kboard.
7547 (cancel_echoing): Set echo_kboard to null.
7548 (cmd_error_internal): Use clear_message, remove references
7549 to echo_area_glyphs and echo_area_message.
7550 (command_loop_1): Check for echo area messages differently.
7551 (read_char): Likewise.
7552 (record_menu_key): Use clear_message.
7553 (Fexecute_extended_command): Check for echo area messages
7554 differently. Use push_message, restore_message, pop_message.
7555
7556 * alloc.c (Fgarbage_collect): Use push_message, restore_message,
7557 pop_message.
7558
7559 * emacs.c (shut_down_emacs): Call check_message_stack.
7560
7561 * lisp.h: Add function prototypes and extern declarations for
7562 new functions and variables.
7563
7564 * fileio.c (Fdo_auto_save): Use push_message, restore_message,
7565 pop_message.
7566
427ec082 7567 * minibuf.c (read_minibuf): Use clear_message instead of
26901792
DL
7568 setting echo_area_glyphs.
7569 (Fminibuffer_completion_help): Ditto.
7570
7571 * editfns.c (Fcurrent_message): Rewritten.
7572
7573 * frame.c, window.h: Remove references to echo_area_glyphs
7574 and previous_echo_glyphs.
7575
75761999-08-21 Dave Love <fx@gnu.org>
7577
7578 * aix3-2-5.h (C_DEBUG_SWITCH): Use -g -O.
7579 * aix4-1.h: Likewise.
7580
7581 * irix6-5.h (C_DEBUG_SWITCH): Set for debug and optimize.
7582
75831999-08-20 Gerd Moellmann <gerd@gnu.org>
7584
7585 * xfns.c: Remove tiff34 prefix from include.
7586
75871999-08-20 Dave Love <fx@gnu.org>
7588
7589 * cm.c: Revert previous change.
7590
75911999-08-19 Gerd Moellmann <gerd@gnu.org>
7592
7593 * xterm.c (XTset_vertical_scroll_bar): Fix previous change. Clear
7594 under scroll bar with width FRAME_SCROLL_BAR_COLS.
7595
75961999-08-18 Dave Love <fx@gnu.org>
7597
7598 * callproc.c, filelock.c, insdel.c, sysdep.c, xmenu.c: Use
7599 stdlib.h.
7600
7601 * doprnt.c: Use stdlib.h, unistd.h.
7602
7603 * config.in: Add HAVE_TERMCAP_H.
7604
7605 * cm.c: Use termcap.h.
7606
76071999-08-18 Gerd Moellmann <gerd@gnu.org>
7608
7609 * xfns.c (x_window) [USE_X_TOOLKIT]: Remove test for
7610 FRAME_X_WINDOW (f) being null at the of the function. If widgets
7611 cannot be created we will already have crashed earlier. Call
7612 lw_set_main_areas with a null menu-bar widget, so that we have
7613 a reasonable default.
7614 (Fx_create_frame): Rearranged so that Lisp errors during frame
7615 initialization cause less damage. Initialize menu bar widget
7616 here.
7617
76181999-08-18 Gerd Moellmann <gerd@gnu.org>
427ec082 7619
26901792
DL
7620 * dispnew.c (update_frame_line): Fix previous change. If writing
7621 whole line clear to end of frame.
7622
76231999-08-17 Gerd Moellmann <gerd@gnu.org>
7624
7625 * window.c (Fcoordinates_in_window_p): Return `left-bitmap-area'
7626 and `right-bitmap-area' if position is in the bitmap areas. This
7627 avoids an error when clicking on the bitmap areas. Instead, they
7628 are currently treated like clicks inside the window.
7629 (coordinates_in_window): Return 5 and 6 for bitmap areas.
7630 (Qleft_bitmap_area, Qright_bitmap_area): New.
7631 (syms_of_window): Initialize new symbols.
7632
7633 * dispnew.c (update_frame_line): If writing whole line,
7634 don't write trailing spaces unless we must.
7635
7636 * xdisp.c (unwind_redisplay): New. Resets flag redisplaying_p.
7637 (redisplay_internal): Register unwind_redisplay with
7638 register_unwind_protect.
7639 (try_window_reusing_current_matrix): If new start > old start,
7640 give up if start pos of first reusable row is not equal to new
7641 start.
7642
7643 * eval.c (Fsignal): Don't reset redisplaying_p here.
7644
7645 * xterm.c (expose_area): If row extends face to end of line,
7646 write the whole line.
7647
76481999-08-16 Gerd Moellmann <gerd@gnu.org>
7649
7650 * dispextern.h (struct it): Remove member
7651 show_trailing_whitespace_p.
7652
7653 * dispnew.c (direct_output_for_insert): Use
7654 Vshow_trailing_whitespace instead of former iterator member
7655 show_trailing_whitespace_p.
7656 (direct_output_forward_char): Don't do it if hightlighting
7657 trailing whitespace.
7658
7659 * xdisp.c (Qshow_trailing_whitespace): Removed.
7660 (Vshow_trailing_whitespace): Added.
7661 (init_iterator): Remove initialization code for
7662 show_trailing_whitespace_p.
7663 (redisplay_internal): Don't try cursor movement in this_line
7664 if showing trailing whitespace.
7665 (redisplay_window): Likewise for cursor movement in current
7666 matrix and try_window_id.
7667 (try_window_reusing_current_matrix): Likewise.
7668 (trailing_whitespace_p): Return 0 if trailing whitespace is
7669 in front of point.
7670 (display_line): Use Vshow_trailing_whitespace instead of
7671 former iterator member show_trailing_whitespace_p.
7672 (syms_of_xdisp): Add DEFVAR_LISP for show-trailing-whitespace.
7673
76741999-08-16 Gerd Moellmann <gerd@gnu.org>
7675
7676 * window.c (Fpos_visible_in_window_p): Rewritten.
7677
7678 * xfaces.c (add_to_log): Renamed from display_message.
7679 Don't display messages in echo area.
7680
7681 * xterm.c (x_draw_glyph_string_box): Use the background width
7682 of the glyph string for the width of the box.
7683
76841999-08-16 Stefan Monnier <monnier@cs.yale.edu>
7685
7686 * syntax.c (Fforward_comment): Set comstyle for Scomment_fence.
7687
76881999-08-16 Geoff Voelker <voelker@cs.washington.edu>
7689
7690 * xfns.c, w32fns.c (x_set_frame_parameters): Set foreground and
7691 background first, and then set other parameters that might
7692 depend upon their new values.
7693
76941999-08-15 Gerd Moellmann <gerd@gnu.org>
7695
7696 * xfaces.c (Vfont_list_limit): New.
7697 (syms_of_xfaces): Make it a user-variable.
7698 (DEFAULT_FONT_LIST_LIMIT): New.
7699 (sorted_font_list): If Vfont_list_limit is an integer > 0, list
7700 maximally that number of fonts, otherwise use
7701 DEFAULT_FONT_LIST_LIMIT.
427ec082 7702 (Fx_font_family_list): Bind `font-list-limit' to higher values
26901792
DL
7703 until we have all fonts.
7704 (Fxfont_list): Additionally return the full names of fonts and
7705 their registry and encoding.
7706
427ec082 7707 * xterm.c (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
26901792
DL
7708 Simplify clearing "under" scroll bar.
7709
7710 * window.c (Qfixed_window_size): New.
7711 (syms_of_window): Initialiaze it.
7712 (check_all_windows): Add return type void.
7713 (window_fixed_size_p): New. Return non-zero if window
7714 is fixed-size.
7715 (window_min_size_1): New.
7716 (window_min_size): Handle fixed-size windows.
7717 (size_window): New. Rewritten combination of set_window_height and
7718 set_window_width that handles fixed-size windows.
7719 (set_window_height): Call it.
7720 (set_window_width): Call it.
7721 (Fsplit_window): Give an error on attempt to split a fixed-size
7722 window.
7723 (change_window_height): Partly rewritten to handle fixed-size
7724 windows.
7725
77261999-08-13 Wolfgang Rupprecht <wolfgang@wsrcc.com>
7727
7728 * process.c (Fopen_network_stream): Fix previous change.
7729
77301999-08-13 Karl Heuer <kwzh@gnu.org>
7731
7732 * xdisp.c (line_number_display_limit_width): New var.
7733 (decode_mode_spec): Use it instead of hardcoded value.
7734 (syms_of_xdisp): Defvar it.
7735
77361999-08-13 Richard M. Stallman <rms@gnu.org>
7737
7738 * eval.c (run_hook_list_with_args): Gcpro `globals'.
7739 (run_hook_with_args): Likewise.
7740
7741 * window.h (struct window): New field too_small_ok.
7742
427ec082 7743 * window.c (set_window_height, set_window_width):
26901792
DL
7744 If window starts out "too small", set its too_small_ok flag.
7745 If window's too_small_ok flag is set, don't delete it
7746 unless it is so small it would cause a crash.
7747
77481999-08-13 Gerd Moellmann <gerd@gnu.org>
7749
7750 * window.c (MINSIZE): Removed.
7751 (window_min_size): New.
7752 (set_window_height): Use window_min_size.
7753 (change_window_height): Ditto.
7754
77551999-08-12 Gerd Moellmann <gerd@gnu.org>
7756
7757 * indent.c (vmotion): Don't add in mini-buffer prompt width
7758 if prompts are inserted into mini-buffer.
7759
77601999-08-12 Wolfgang Rupprecht <wolfgang@wsrcc.com>
7761
7762 * config.in: Add HAVE_GETADDRINFO.
7763 * process.c (Fopen_network_stream): Use getaddrinfo.
7764
77651999-08-11 Gerd Moellmann <gerd@gnu.org>
7766
7767 * xdisp.c (get_overlay_arrow_glyph_row): Set the charpos of
7768 glyphs to -1.
7769
7770 * xdisp.c (face_before_or_after_it_pos): If position after
7771 or before iterator's current position in the buffer is out
7772 of bounds, return the iterator's original face id.
7773
7774 * dispnew.c (mirror_make_current): If desired row isn't enabled,
7775 just swap glyphs pointers between current and desired row.
7776 (build_frame_matrix_from_leaf_window) [GLYPH_DEBUG]: Copy
7777 desired matrix method string to current matrix.
7778
77791999-08-11 Kenichi Handa <handa@etl.go.jp>
7780
7781 * lisp.h (CHAR_MODIFIER_MASK): New macro.
7782
7783 * lread.c (read_escape): For Control modifier, pay attention to
7784 multibyte character.
7785 (read1): Likewise. Singal error or a multibyte character which
7786 has a modifer bit. Check validity of Shift modifer.
7787
7788 * charset.c (non_ascii_char_to_string): Handle modifier bits as
7789 the same as Lisp reader.
7790
77911999-08-10 Richard M. Stallman <rms@gnu.org>
7792
7793 * charset.h (BCOPY_SHORT): Fix typo `unsigined'.
7794
77951999-08-10 Alexandre Oliva <oliva@dcc.unicamp.br>
7796
7797 * unexelf.c [__linux__ && __alpha__] (HAS_SBSS_SECTION): Define.
7798
77991999-08-10 Eli Zaretskii <eliz@gnu.org>
7800
7801 * msdos.c (IT_set_face): Abort if the default face is not realized
7802 and cached.
7803 (IT_write_glyphs): Reset the screen face to the default face
7804 before writing glyphs.
7805
7806 * xfaces.c (realize_default_face) [MSDOS]: Don't take default
7807 colors from the frame here.
7808 (realize_tty_face) [MSDOS]: Do it here. Update the face
7809 attributes with the actual name of the color taken from the
7810 frame.
7811
7812 * dosfns.c (msdos_stdcolor_name): Remove const from return value.
7813 * dosfns.h (msdos_stdcolor_name): Ditto for the prototype.
7814
7815 * frame.c (Fframe_parameters): Swap foreground and background
7816 colors returned in frame parameters if the frame has reverse in
7817 its parameter alist.
7818 (Fmake_terminal_frame): Make a unique copy of face_alist for
7819 each frame.
7820
78211999-08-07 Richard Stallman <rms@gnu.org>
7822
7823 * buffer.c (Fprevious_overlay_change): Just return
7824 the answer obtained from overlays_at.
7825
7826 * xfns.c (xpm_load) [!XpmAllocCloseColors]:
7827 Use XpmCloseness and attrs.closeness instead.
7828
78291999-08-06 Richard Stallman <rms@gnu.org>
7830
7831 * lread.c (Feval_buffer): New arg DO_ALLOW_PRINT.
7832
78331999-08-06 Geoff Voelker <voelker@cs.washington.edu>
7834
427ec082 7835 * dired.c (directory_files_internal, Fdirectory_files_and_attributes,
26901792
DL
7836 Ffile_attributes_lessp): New functions.
7837 (Fdirectory_files): Use directory_files_internal.
7838 (syms_of_dired): Initialize Fdirectory_files_and_attributes,
7839 Ffile_attributes_lessp.
7840
7841 * w32.c (stat): Check for directory ending in separator when
7842 doing readdir fast path.
7843
7844 * w32fns.c (x_set_icon_type): Support setting frame icons.
7845 * w32term.c (x_bitmap_icon): New function.
7846 (x_make_frame_visible, x_iconify_frame): Invoke x_bitmap_icon.
427ec082 7847
26901792
DL
78481999-08-06 Gerd Moellmann <gerd@gnu.org>
7849
7850 * xdisp.c (set_iterator_to_next): After delivering a character
7851 from a display vector, restore face and charset to what they were
7852 before the display vector was processed.
7853
78541999-08-06 Gerd Moellmann <gerd@gnu.org>
7855
7856 * xdisp.c (reseat_at_next_visible_line_start): New parameter
7857 on_newline_p.
7858 (set_iterator_to_next): After delivering last char
427ec082 7859 from display vector, reseat on next visible line start if
26901792
DL
7860 dpvec_char_len < 0.
7861 (next_element_from_buffer): Set dpvec_char_len to -1 for
7862 selective display.
7863
78641999-08-06 Gerd Moellmann <gerd@gnu.org>
7865
7866 * xdisp.c (compute_line_metrics): If first line's physical ascent
7867 is larger than its logical ascent, use the physical ascent, and
7868 make the row taller. Set row's overlapping_p flag.
7869
7870 * dispnew.c (redraw_overlapping_rows): Use flag overlapping_p.
7871 (direct_output_for_insert): Ditto.
7872
7873 * dispextern.h (struct glyph_row): Add overlapping_p.
7874
7875 * xterm.c (x_draw_phys_cursor_glyph): Redraw overlaps.
7876
7877 * dispextern.h (MATRIX_ROW_OVERLAPS_PRED_P): New.
7878 (MATRIX_ROW_OVERLAPS_SUCC_P): New.
7879
7880 * dispnew.c (direct_output_for_insert): Don't use this method if
7881 row is overlapped by others.
7882 (update_text_area): Write full line if current line is overlapped.
7883 (redraw_overlapped_rows): New.
7884 (update_window): Call it.
7885 (redraw_overlapping_rows): New.
7886 (update_window): Call it.
7887 (scrolling_window): Make sure overlapped_p flag in current rows is
7888 unchanged.
7889 (row_equal_p): Take rows overlapped_p flag into account.
7890
7891 * dispextern.h (struct glyph_row): Add flag overlapped_p.
7892
7893 * xterm.c (x_fix_overlapping_area): New.
7894 (x_redisplay_interface): Add x_fix_overlapping_area.
7895
7896 * dispnew.c (adjust_glyphs): Block input while adjusting matrices.
7897
78981999-08-06 Gerd Moellmann <gerd@gnu.org>
7899
7900 * xterm.c (x_draw_glyphs): Add parameter overlaps_p.
7901 (struct glyph_string): Add member for_overlaps_p.
7902 (x_get_glyph_string_clip_rect): If glyph string draws foreground
7903 of overlapping rows, clip to window bottom.
7904 (x_fill_glyph_string): Add parameter overlaps_p.
7905 (x_fill_composite_glyph_string): Ditto.
7906 (BUILD_GLYPH_STRINGS): Ditto.
7907 (BUILD_CHAR_GLYPH_STRINGS): Ditto.
7908 (x_draw_glyph_string): Don't draw anything but the foreground
7909 if glyph string draws row overlaps.
7910
7911 * dispnew.c (direct_output_for_insert): Don't use this
7912 optimization for rows that overlap others.
7913 (update_window_line): Return non-zero if display has changed.
7914 (update_text_area): Ditto.
7915 (update_window): Record if display has been changed.
7916
7917 * dispextern.h (MATRIX_ROW_OVERLAPPING_P): New.
7918
7919 * dispextern.h (struct redisplay_interface): Add
7920 fix_overlapping_area.
7921
7922 * xterm.c (x_append_glyph): Set glyph flag overlaps_vertically_p.
7923
7924 * dispextern.h (struct glyph): Add overlaps_vertically_p.
7925
7926 * xterm.c (x_produce_image_glyph): Compute iterator's physical
7927 ascent and descent.
7928 (x_produce_stretch_glyph): Ditto.
7929 (x_produce_glyphs): Ditto.
7930
7931 * xdisp.c (init_iterator): Reset physical line height info
7932 after producing special glyphs.
7933 (display_toolbar_line): Set physical line height info.
7934 (compute_line_metrics): Ditto.
7935 (display_line): Ditto.
7936 (display_string): Ditto.
7937
7938 * term.c (produce_glyphs): Set iterator's physical height
7939 information.
7940
7941 * dispnew.c (blank_row): Compute glyph row's physical height.
7942 (row_equal_p): Take physical row heights into account.
7943 (direct_output_for_insert): Ditto.
7944 (update_text_area): Ditto.
7945
7946 * dispextern.h (struct glyph_row): Add phys_ascent and
7947 phys_height.
7948 (struct it): Add phys_ascent, phys_descent, max_phys_ascent,
7949 max_phys_descent.
7950
79511999-08-04 Stefan Monnier <monnier@cs.yale.edu>
7952
7953 * buffer.c (switch_to_buffer_1): New subroutine, taken out from
7954 Fswitch_to_buffer.
7955 (no_switch_buffer): New function.
7956 (Fswitch_to_buffer): Call them. Don't get confused
7957 by "same-window" buffers in a dedicated frame.
7958
7959 * window.c (display-buffer): Don't get confused
7960 by "same-window" buffers in a dedicated frame.
7961
79621999-08-04 Andreas Schwab <schwab@gnu.org>
7963
7964 * insdel.c (insert_from_string_1): Check gap size against number
7965 of outgoing bytes, not incoming bytes.
7966
79671999-08-03 Tom Breton <tob@world.std.com>
7968
7969 * lread.c (read1): Added circular reading code to #N=.
7970 (SUBSTITUTE): New macro.
7971 (seen_list): New variable.
7972 (substitute_object_in_subtree): New function.
7973 (substitute_object_recurse): New function.
7974 (substitute_in_interval): New function.
7975
79761999-08-02 Eli Zaretskii <eliz@gnu.org>
7977
7978 * Makefile.in (frame.o, sysdep.o, xfaces.o): Depend on dosfns.h.
7979
7980 * frame.c (make_terminal_frame): Don't call init_frame_faces if
7981 noninteractive, for termcap frames as well.
7982
7983 * sysdep.c (init_sys_modes): Call init_frame_faces for termcap
7984 frames.
7985
79861999-08-01 Richard Stallman <rms@gnu.org>
7987
7988 * fns.c (internal_equal): Correct overlay comparison.
7989
83c8f461 79901999-07-31 Richard M. Stallman <rms@gnu.org>
26901792 7991
427ec082 7992 * xfns.c (x_set_internal_border_width):
26901792
DL
7993 Call do_pending_window_change. Don't block input, don't call XFlush.
7994 (x_set_vertical_scroll_bars): Call do_pending_window_change.
7995 (x_set_scroll_bar_width, x_set_font): Likewise.
7996
7997 * frame.c (Fset_frame_height): Call do_pending_window_change.
7998 (Fset_frame_width, Fset_frame_size): Likewise.
7999
8000 * xterm.c (x_set_window_size): When calling change_frame_size,
8001 specify 1 for DELAY.
8002
8003 * widget.c (EmacsFrameSetCharSize): Don't call
8004 do_pending_window_change here.
8005
80061999-07-30 Dave Love <fx@gnu.org>
8007
8008 * config.in: Add HAVE_STDLIB_H.
8009
80101999-07-30 Richard M. Stallman <rms@gnu.org>
8011
8012 * process.c (create_process): Detect failure of `pipe'.
8013
80141999-07-30 Keisuke Nishida <kei@psn.net>
8015
8016 * alloc.c (allocate_vectorlike): Add missing increment.
8017
8018 * data.c (Fdefalias): Call Ffset instead of duplicating code.
8019
8020 * keymap.c (get_keymap_1, get_keyelt): Check the type of OBJECT
8021 before calling indirect_function.
8022
80231999-07-30 Eli Zaretskii <eliz@gnu.org>
8024
8025 * dispextern.h (load_color, lookup_derived_face): Declare
8026 prototypes.
8027
8028 * dispnew.c (init_display) [MSDOS]: Don't initialize frame faces,
8029 it will be done later.
8030
8031 * frame.c (make_terminal_frame) [MSDOS]: Don't call
8032 init_frame_faces if non-interactive.
8033 (Fframe_parameters) [MSDOS]: Replace indexing into colornames[]
8034 array with a call to msdos_stdcolor_name. The font name is now
8035 "ms-dos", consistent with realize_tty_face.
8036
8037 * keyboard.c (cmd_error_internal): Don't kill Emacs if this is an
8038 MSDOS frame.
8039
8040 * window.c (Fset_window_configuration) [MSDOS]: Don't call
8041 x_set_toolbar_lines.
8042
8043 * xfaces.c (load_color): Remove static from definition and remove
8044 prototype.
8045 [MSDOS]: Add a DOS-specific version of load_color.
8046 (lookup_face): Replace FRAME_TERMCAP_P with !FRAME_WINDOW_P.
8047 (lookup_derived_face): New function.
8048 (realize_default_face): Support MSDOS frames.
8049 [MSDOS]: If fore/background colors are unspecified, inherit them
8050 from the frame.
8051 (realize_face): Support MSDOS frames.
8052 (realize_tty_face): Support MSDOS frames.
8053 [MSDOS]: If the face color is not in Vface_tty_color_alist, call
8054 load_color to try to find a suitable approximation. If the face
8055 is inverse-video, swap the foreground and background colors.
8056
8057 * dosfns.c (msdos_stdcolor_name, msdos_stdcolor_idx): New
8058 functions.
8059
8060 * dosfns.h (msdos_stdcolor_name, msdos_stdcolor_idx): Declare.
8061
8062 * msdos.h: Remove redundant declarations (most of them are now in
8063 dispextern.h).
8064
8065 * msdos.c (IT_set_face): Rewritten for the new redisplay engine.
8066 Use default frame colors if the face doesn't specify them; invert
8067 the colors if highlight is ON.
8068 (IT_write_glyphs): Rewritten for the new redisplay engine.
8069 (IT_change_line_highlight): Add (unused) parameter Y, since that's
8070 how the hook is called by term.c.
8071 (IT_copy_glyphs): New function, copies an area of the display in
8072 video RAM.
8073 (IT_insert_glyphs): Rewritten to DTRT instead of aborting, since
8074 redisplay now calls it even if char_ins_del_ok is zero.
8075 (IT_set_frame_parameters): Prototype changed. Calls the new
8076 load_color. Puts the new fore/background colors into the default
8077 face on current frame.
8078 (IT_menu_display): Rewritten to handle the new struct glyph
8079 instead of a char array.
8080 (XMenuActivate): Call lookup_derived_face to create and use
8081 special faces for the pop-up and drop-down menus.
8082
80831999-07-29 Gerd Moellmann <gerd@gnu.org>
8084
8085 * xterm.c (x_set_toolkit_scroll_bar_thumb): Don't call
8086 XawScrollbarSetThumb if thumb parameters haven't changed because
8087 that function apparently isn't optimized for this case.
8088
80891999-07-29 Eli Zaretskii <eliz@gnu.org>
8090
8091 * msdos.c (getdefdir): Don't return failure indication when
8092 _fixpath sets errno to ENOSYS.
8093
80941999-07-28 Gerd Moellmann <gerd@gnu.org>
8095
8096 * xdisp.c (string_char_and_length): New. Use it everywhere
8097 instead of STRING_CHAR_AND_LENGTH in xdisp.c.
8098
80991999-07-28 Kenichi Handa <handa@etl.go.jp>
8100
8101 * fns.c (count_combining): New function.
8102 (struct textprop_rec): New structure.
8103 (concat): Copy text properties correctly when byte combining
8104 occurs.
8105
81061999-07-28 Gerd Moellmann <gerd@gnu.org>
8107
8108 * xterm.c (x_setup_relief_color): Don't try smart color allocation
8109 if display is mono.
8110 (x_draw_row_bitmaps): If face has stipple, don't switch
8111 to foreground color for clearing areas, and set the fill style.
8112
8113 * xfaces.c (load_face_colors): Load background color if setting
8114 stipple, too.
427ec082 8115 (prepare_face_for_display): Use FillOpaqueStippled instead of
26901792
DL
8116 FillStippled.
8117
81181999-07-26 Ken'ichi Handa <handa@gnu.org>
8119
8120 * xterm.c (x_find_ccl_program): Add casting.
8121
8122 * w32fns.c (w32_find_ccl_program): Add casting.
8123
81241999-07-27 Gerd Moellmann <gerd@gnu.org>
8125
8126 * dispextern.h (struct glyph_row): Flag internal_border_p removed.
8127
8128 * xfns.c (x_create_tip_frame): Don't set bitmapIcon resource
8129 because this will try to access a nonexisting widget.
8130
81311999-07-26 Markus Rost <rost@gnu.org>
8132
427ec082 8133 * fns.c (Fgethash): Fix order of variables (patch by gerd).
26901792
DL
8134 (Fputhash): Ditto.
8135 (Fremhash): Ditto.
8136
81371999-07-26 Gerd Moellmann <gerd@gnu.org>
427ec082 8138
26901792
DL
8139 * widget.c (EmacsFrameSetCharSize): Don't add XtNborderWidth
8140 value to frame width and height.
8141
8142 * xterm.c (x_get_glyph_string_clip_rect): Take internal border
8143 into account for full-width windows. Don't add scroll bar width
8144 to width of clip rect.
8145 (x_draw_glyph_string_box): Add 1 to right x of full width lines.
8146 (x_set_glyph_string_background_width): Add 1 to background width.
8147 (x_draw_glyphs): Take internal border into account for full-width
8148 lines.
8149
81501999-07-26 Richard M. Stallman <rms@gnu.org>
8151
8152 * xfns.c (x_set_mouse_color): Always unload the old color.
8153 Don't allow nil as color value.
427ec082 8154 (x_set_cursor_color, x_set_background_color, x_set_foreground_color):
26901792
DL
8155 Always unload the old color.
8156
8157 * indent.c (Fmove_to_column): Extend end of line only if FORCE is t.
8158
81591999-07-26 Karl Heuer <kwzh@gnu.org>
8160
8161 * fns.c (Fy_or_n_p): Doc fix.
8162
81631999-07-26 Kenichi Handa <handa@etl.go.jp>
8164
8165 * ccl.h (setup_ccl_program): The type is changed to `int'.
8166
8167 * ccl.c (ccl_driver) <CCL_Call>: Now CCL program ID to call may be
8168 stored in the following CCL code. Adjusted for the change of
8169 Vccl_program_table.
8170 (resolve_symbol_ccl_program): Adjusted for the new style of
8171 embedded symbols (SYMBOL . PROP) in CCL compiled code. Return Qt
8172 is resolving failed.
8173 (ccl_get_compiled_code): New function.
8174 (setup_ccl_program): Function type changed from `void' to `int'.
8175 Resolve symbols in CCL_PROG.
8176 (Fccl_program_p): New function.
8177 (Fccl_execute): Get compiled CCL code by just calling
8178 setup_ccl_program.
8179 (Fccl_execute_on_string): Likewise.
8180 (Fregister_ccl_program): Adjusted for the change of
8181 Vccl_program_table.
8182
8183 * coding.c (setup_coding_system): Get compiled CCL code by just
8184 calling setup_ccl_program.
8185
8186 * xterm.c (x_find_ccl_program): Get compiled CCL code by just
8187 calling setup_ccl_program.
8188
8189 * w32fns.c (w32_find_ccl_program): Get compiled CCL code by just
8190 calling setup_ccl_program.
8191
81921999-07-23 Gerd Moellmann <gerd@gnu.org>
8193
8194 * xfaces.c (frame_update_line_height): Just use the height of the
8195 frame's fontset or font, instead of taking face fonts into
8196 account.
8197
8198 * xdisp.c (get_next_display_element): Display DEL as `^?'.
8199
82001999-07-23 Richard M. Stallman <rms@gnu.org>
8201
8202 * window.c (Fsplit_window): For default size, round up for left window.
8203
82041999-07-21 Joe Ramey <ramey@ti.com>
8205
8206 * filelock.c (lock_if_free): Return -1 if check_lock_owner
8207 has returned -1 (lockfile exists but is not a symlink?).
8208
82091999-07-20 Gerd Moellmann <gerd@gnu.org>
8210
8211 * xterm.c (x_draw_bar_cursor): Use scratch_cursor_gc to
8212 because of a change in cursor_gc made in 20.4.
8213
82141999-07-19 Gerd Moellmann <gerd@gnu.org>
8215
8216 * xterm.c (x_calc_absolute_position): Subtract menu bar height
8217 for YNegative, if using X toolkit.
8218
427ec082 8219 * xfns.c (x_real_positions): Don't subtract window borders
26901792
DL
8220 from positions returned.
8221
82221999-07-17 Gerd Moellmann <gerd@gnu.org>
8223
8224 * xrdb.c (x_load_resources): Set double-click time defaults
8225 for Motif list boxes from double-click-time.
8226
8227 * fns.c (Vhash_table_tests): Remvoed.
8228 (Qhash_table_test): New.
8229 (syms_of_fns): Initialize Qhash_table_test.
8230 (Fmake_hash_table): Look up user-defined tests in symbol prop
8231 `hash-table-test'.
8232 (Fdefine_hash_table_test): Store test and hash function as
8233 symbol prop `hash-table-test'.
8234 (make_hash_table): Add parameters user_test and user_hash.
8235
8236 * window.c (set_window_buffer): Set window margins for tty
8237 frames, too.
8238 (Fset_window_margins): Ditto.
8239
8240 * term.c (append_glyph): Use glyph area of iterator instead of
8241 always TEXT_AREA.
8242
8243 * dispnew.c (update_frame_1): Add left margin width to cursor
8244 hpos.
8245 (direct_output_for_insert): Ditto.
8246 (direct_output_forward_char): Ditto.
8247
8248 * dispnew.c (adjust_glyph_matrix): Set glyph matrix' top_line_p.
8249
8250 * dispextern.h (struct glyph_matrix): Add top_line_p.
8251
82521999-07-16 Gerd Moellmann <gerd@gnu.org>
8253
8254 * frame.h (FRAME_WINDOW_REDISPLAY_P): Removed. Use FRAME_WINDOW_P
8255 instead.
8256
8257 * fns.c (cmpfn_eq): Add hash code parameters.
8258 (cmpfn_eql): Ditto.
8259 (cmpfn_equal): Ditto, and compare hash codes before calling Fequal.
8260 (cmpfn_user_defined): Likewise.
8261
82621999-07-15 Gerd Moellmann <gerd@gnu.org>
8263
8264 * lisp.h (DEFAULT_REHASH_THRESHOLD): Changed to 0.8.
8265
8266 * fns.c (maybe_resize_hash_table): Correct computation of
8267 index vector size.
8268 (make_hash_table): Ditto.
8269 (Fmakehash): New.
8270
8271 * xdisp.c (echo_area_display): Don't call redraw_garbaged_frames.
8272
8273 * alloc.c (gc_sweep): Call sweep_weak_hash_tables.
8274 (survives_gc_p): Make it externally visible.
8275 (mark_object): Ditto.
8276
8277 * fns.c (remove_hash_entry): Removed.
8278 (sweep_weak_hash_tables): New.
8279
8280 * print.c (print): Print more information about hash tables.
8281
8282 * xfns.c (image_spec_hash): Removed.
8283 (lookup_image): Use sxhash instead of image_spec_hash.
8284 (image_spec_equal_p): Removed.
8285 (lookup_image): Use Fequal instead of image_spec_equal_p.
8286
82871999-07-14 Gerd Moellmann <gerd@gnu.org>
8288
8289 * lisp.h (P_): Moved to top of file.
8290
8291 * fns.c (make_hash_table): Set new members.
8292
8293 * alloc.c (mark_object): Mark hash table's user_hash_function.
8294 Mark index vector for weak hash tables.
8295
8296 * lisp.h (struct Lisp_Hash_Table): Add user_cmp_function,
8297 user_hash_function, cmpfn, and hashfn.
8298
8299 * fns.c (build_hash): Removed.
8300 (hash_test): Removed.
8301 (cmpfn_eq, cmpfn_eql, cmpfn_equal, cmpfn_user_defined): New.
8302 (hashfn_eq, hashfn_eql, hashfn_equal, hashfn_user_defined): New.
8303
83041999-07-13 Gerd Moellmann <gerd@gnu.org>
8305
8306 * alloc.c (survives_gc_p): New.
8307
8308 * print.c (print): Add hash table handling.
8309
8310 * alloc.c (mark_object): Add code to mark hash tables.
8311
8312 * lisp.h (GC_HASH_TABLE_P): New.
8313
8314 * emacs.c (main): Call init_fns.
8315
8316 * fns.c (init_fns): New.
8317
8318 * fns.c: Add hash table implementation.
8319
8320 * lisp.h (PVEC_HASH_TABLE): New.
8321 (struct Lisp_Hash_Table): New.
8322 (XHASH_TABLE): New.
8323 (XSET_HASH_TABLE): New.
8324 (HASH_TABLE_P): New.
8325 (CHECK_HASH_TABLE): New.
8326 (DEFAULT_HASH_SIZE): New.
8327 (DEFAULT_REHASH_THRESHOLD): New.
8328 (DEFAULT_REHASH_SIZE): New.
8329
8330 * xterm.c (x_draw_glyphs): Add parameters real_start and real_end.
8331 (x_write_glyphs): Compute overwritten cursor using real start
8332 and end positions of display.
8333 (x_insert_glyphs): Ditto.
8334
83351999-07-10 Gerd Moellmann <gerd@gnu.org>
8336
8337 * keyboard.c (read_char): Use message3_nolog to show help-echo.
8338
8339 * dispnew.c (blank_row): Add y-position as parameter. Compute
8340 visible height.
8341
8342 * xdisp.c (next_element_from_string): Give padding spaces
8343 a position of -1.
8344
427ec082 8345 * dispnew.c (adjust_glyph_matrix): Some work to support
26901792
DL
8346 marginals areas on tty frames in a future version.
8347 (allocate_matrices_for_frame_redisplay): Ditto.
8348
8349 * xdisp.c (display_line): At ZV, set glyph row's displays_text_p
8350 to zero if number of glyphs in the row is <= 1.
8351
83521999-07-09 Gerd Moellmann <gerd@gnu.org>
8353
8354 * dispnew.c (buffer_posn_from_coords): Take left marginal area
8355 into account.
8356
8357 * xdisp.c (handle_display_prop): Don't reset area if handing
8358 a property from a string that came from a `display' property.
8359 (handle_single_display_prop): Don't handle recursive `display'
8360 properties.
8361 (handle_single_display_prop): Handle some display property
8362 forms for terminal frames.
8363 (Qimage): Moved here from xfns.c.
8364
8365 * dispextern.h (struct it): New field string_from_display_prop_p.
8366
8367 * xterm.c (x_clip_to_row): Don't let clip_rect include top
8368 line.
8369
83701999-07-08 Gerd Moellmann <gerd@gnu.org>
8371
8372 * xdisp.c (handle_single_display_prop): Handle `:when FORM'.
8373
8374 * window.c (set_window_buffer): Set window's vscroll to zero.
8375
8376 * xdisp.c (QCwhen): New.
8377 (display_prop_end): New.
8378 (handle_single_display_prop): Use it.
8379 (debug_method_add): Print buffer name if tracing.
8380 (try_window_reusing_current_matrix): Compute visible height
8381 of reused rows. Fix cursor position calculation in case of
8382 top-line.
8383
8384 * dispextern.h (struct redisplay_interface): Add parameter
8385 cursor_on_p to update_window_end_hook.
8386
8387 * xterm.c (x_update_window_end): Add parameter cursor_on_p.
8388
83891999-07-07 Gerd Moellmann <gerd@gnu.org>
8390
427ec082 8391 * xdisp.c (redisplay_internal): Ensure that redisplayinp_p
26901792
DL
8392 doesn't become negative when decrementing it.
8393
8394 * eval.c (Fsignal): Reset redisplaying_p to zero.
8395
8396 * xdisp.c (try_window_reusing_current_matrix): Call hooks
8397 for window update.
8398 (try_window_id): Ditto.
8399
8400 * xterm.c (x_clear_end_of_line): Handle top-line correctly.
8401 (x_scroll_run): Ditto.
8402 (any_help_event_p): New.
8403 (x_initialize): Set it to zero.
8404 (XTread_socket): Clear help echo only if any_help_event_p.
8405
8406 * xdisp.c (init_iterator): Set top_line_p.
8407 (start_display): Use correct initial y if top-line is present.
8408 (make_cursor_line_fully_visible): Bug fixes for top-line.
8409 (try_scrolling): Ditto.
8410 (try_window_reusing_current_matrix): Ditto.
8411
8412 * dispextern.h (struct it): Add top_line_p.
8413
8414 * dispnew.c (shift_glyph_matrix): Move some computations out
8415 of the loop.
8416
427ec082 8417 * dispnew.c (margin_glyphs_to_reserve): Use NUMBERP and
26901792
DL
8418 XFLOATINT.
8419
84201999-07-06 Gerd Moellmann <gerd@gnu.org>
8421
8422 * dispnew.c (update_frame_1): When setting cursor in echo area,
8423 skip only over padding spaces at the end.
8424
8425 * xfaces.c (realize_tty_face): Set face's font_name field to
8426 "tty".
8427
8428 * term.c (update_end): Turn cursor on only if selected window's
8429 cursor_off_p flag is not set.
8430
84311999-07-05 Gerd Moellmann <gerd@gnu.org>
8432
8433 * term.c (TS_cursor_visible): Renamed from TS_visual_mode.
8434 (TS_cursor_normal): Renamed from TS_end_visual_mode.
8435 (TS_cursor_invisible): New.
8436 (term_init): Initialize TS_cursor_invisible.
8437 (tty_hide_cursor): New.
8438 (tty_show_cursor): New.
8439 (update_end): Show tty cursor.
8440 (update_begin): Hide tty cursor to prevent cursor flickering
8441 during redisplays triggered by timers (stealth fontification).
8442
8443 * keyboard.c (make_lispy_event) <TOOLBAR_EVENT>: Apply modifiers.
8444
8445 * xterm.c (XTread_socket) [USE_MOTIF] <KeyPress>: Catch events
8446 in scroll bars.
8447 (x_handle_toolbar_click): Set modifier bits.
8448
84491999-07-04 Gerd Moellmann <gerd@gnu.org>
8450
8451 * keyboard.c (kbd_store_ptr): Declare it as a volatile pointer
8452 instead of a pointer to a volatile input_event.
427ec082 8453 (kbd_buffer_store_event): Remove volatile modifier from
26901792
DL
8454 declaration of local variable `sp'.
8455 (Fdiscard_input): Don't cast when assigning kbd_store_ptr
8456 to kbd_fetch_ptr.
8457
84581999-07-03 Gerd Moellmann <gerd@gnu.org>
8459
8460 * xdisp.c (try_window_id): Set beg_unchanged and end_unchanged
8461 only if buffer is modified. Return quickly if changes are
8462 above window start.
8463
84641999-07-02 Gerd Moellmann <gerd@gnu.org>
8465
8466 * dispextern.h (HSCROLL_WINDOWS): Removed.
8467
8468 * xdisp.c (mark_window_display_accurate): Don't set
8469 w->region_showing.
8470 (redisplay_internal): Don't call redraw_garbaged_frames.
8471
84721999-07-01 Gerd Moellmann <gerd@gnu.org>
8473
8474 * xdisp.c (echo_area_display): Don't display truncation marks
8475 for messages because 20.4 doesn't do it either.
8476 (redisplay_window): Case same window start. Instead of giving
8477 up when cursor is partially visible, make it fully visible.
8478 (mark_window_display_accurate): Some cleanup. Record window's
8479 last cursor information.
8480 (debug_method_add): Improved.
8481 (redisplay_internal): Record last cursor info only if not
8482 consider_all_windows_p.
8483
8484 * dispnew.c (update_window): Update top line after scrolling.
8485 (blank_row): Renamed from make_empty_enabled_row.
8486 (increment_glyph_row_buffer_positions): Increment positions
8487 in buffers, only.
8488
8489 * window.c (Fcoordinates_in_window_p): Add top-line to doc
8490 string.
8491
84921999-06-30 Gerd Moellmann <gerd@gnu.org>
8493
8494 * dispnew.c (update_window): Check that updated row is visible.
8495
8496 * xterm.c (x_draw_row_bitmaps): Check for invisible rows at
8497 top of window differently.
8498
8499 * xdisp.c (try_window_reusing_current_matrix): Don't do it
8500 if region is showing.
8501
8502 * dispnew.c (adjust_glyph_matrix): Check w->vscroll when
8503 avoiding matrix reallocation. Set window_vscroll in matrix.
8504
8505 * dispextern.h (struct glyph_matrix): Add member window_vscroll.
8506
26901792
DL
8507 * xdisp.c (debug_method_add): New.
8508 (debug_redisplay_method): Removed.
8509 (try_window_reusing_current_matrix): Handle case where old
8510 window start is the same as new window start.
8511
8512 * dispextern.h (struct glyph_matrix) [GLYPH_DEBUG]: Make `method'
8513 an array instead of a pointer.
8514
26901792
DL
8515 * xfns.c (Fx_show_tip): Undo previous change.
8516
8517 * xterm.c (x_append_glyph): Clear glyph->u.val.
8518
8519 * dispextern.h (struct glyph): Increase size of face_id bit-field
8520 for CHAR_GLYPH to 12.
8521
85221999-06-29 Gerd Moellmann <gerd@gnu.org>
8523
8524 * xfaces.c (x_charset_registry): Make it externally visible.
8525
85261999-06-28 Gerd Moellmann <gerd@gnu.org>
8527
427ec082 8528 * dispnew.c (update_window): Use mode_line_p flag of rows
26901792
DL
8529 instead of WINDOW_WANTS_MODELINE_P.
8530
8531 * xterm.c (clear_mouse_face): Make externally visible.
8532
8533 * xfns.c (Fx_show_tip): Clear mouse face before showing tip.
8534
8535 * xterm.c (expose_line): Handle exposure of top-lines.
8536
8537 * xterm.c (XTframe_up_to_date): Don't call note_mouse_highlight
8538 if mouse_face_mouse_frame is null.
8539
8540 * xdisp.c (redisplay_window): If window is echo_area_window,
8541 and update_mode_line is set, update menubar and toolbar.
8542
8543 * dispnew.c (space_glyph): Set its charpos to -1.
8544 (update_frame_1): Ignore trailing padding spaces.
8545
8546 * xdisp.c (next_element_from_c_string): Set position of padding
8547 glyphs to -1.
8548
85491999-06-27 Gerd Moellmann <gerd@gnu.org>
8550
8551 * xfns.c (x_laplace_read_row): Use XQueryColors instead of
8552 XQueryColor.
8553
8554 * xdisp.c (display_menu_bar): Remove unwarranted assertion.
8555 (set_cursor_from_row): Skip over glyphs having a null object at
8556 the start of rows.
8557 (insert_left_trunc_glyphs): Use charpos < 0 to indicate truncation
8558 glyphs.
8559 (handle_invisible_prop): Compute next change only when needed.
8560 (handle_face_prop): Don't correct DEFAULT_FACE_ID if in the mode
8561 line.
8562
85631999-06-26 Gerd Moellmann <gerd@gnu.org>
8564
8565 * xrdb.c (x_load_resources): Don't set resource for double-click
8566 time.
8567
8568 * xdisp.c (try_window_id): Return quickly if all changes are
8569 below the window's current matrix end.
8570
8571 * dispextern.h (MATRIX_ROW_PARTIALLY_VISIBLE_P): Remove window
8572 parameter.
8573
8574 * xdisp.c (try_window_reusing_current_matrix): Set no_scrolling_p
8575 in desired not in current matrix.
8576 (try_window_reusing_current_matrix): Rotate matrices starting
8577 at start_vpos instead of 0.
8578
8579 * xterm.c (expose_window): Use window_text_bottom_y.
8580 (fast_find_position): Ditto.
8581
8582 * xdisp.c (redisplay_window): Use window_text_bottom_y.
8583 (try_window_reusing_current_matrix): Ditto.
8584 (get_last_unchanged_at_beg_row): Ditto.
8585 (init_iterator): Ditto.
8586
8587 * dispnew.c (allocate_matrices_for_window_redisplay): Allocate one
8588 more row.
8589 (check_matrix_invariants): Use window_text_bottom_y.
8590 (update_window): Ditto.
8591 (scrolling_window): Ditto.
8592
8593 * xdisp.c (window_text_bottom_y): New.
8594
85951999-06-25 Gerd Moellmann <gerd@gnu.org>
8596
8597 * xterm.c (XTread_socket): Set mouse_face_frame to zero after
8598 clearing mouse face.
8599 (XTread_socket) <EnterNotify> [LESSTIF_VERSION]: If
8600 event.xcrossing.focus is not set, and focus is in the menu bar,
8601 set focus frame as if event.xcrossing.focus were set.
8602
86031999-06-24 Gerd Moellmann <gerd@gnu.org>
8604
8605 * keyboard.c (make_lispy_event): Handle mouse on top lines.
8606 * keyboard.c (make_lispy_movement): Ditto.
8607
8608 * window.c (coordinates_in_window): Return 4 if on top line.
8609 (Fcoordinates_in_window_p): Return `top-line' if on top line.
8610
8611 * xdisp.c (window_box_height): Subtract top line height.
8612 (window_box): Add top line height to top y position if top line
8613 exists.
8614 (init_iterator): If base_face_id is TOP_LINE_FACE_ID, set row to
8615 the top line row of the window. Set initial y-position to
8616 window's top line height plus delta.
8617 (start_display): Choose start glyph row depending on whether
8618 window has a top line.
8619 (try_scrolling): Take top line height into account for aggressive
8620 scrolling.
8621 (compute_window_start_on_continuation_line): Take top line into
8622 account.
427ec082 8623 (redisplay_window): Ditto. If top line height has changed,
26901792
DL
8624 trigger a new redisplay.
8625 (try_window_reusing_current_matrix): Take top line into account.
8626 (find_last_row_displaying_text): Ditto.
8627 (get_last_unchanged_at_beg_row): DItto.
8628 (try_window_id): Ditto.
8629 (compute_line_metrics): Ditto.
8630
8631 * dispnew.c (shift_glyph_matrix): Compute visible row height
8632 taking top line of window into account.
8633 (update_window): Update top line. If scrolling_window detects
8634 that all rows are equal, only set cursor.
8635 (update_window_line): Call after_update_window_line_hook if
8636 mode_line_p flag of rows has changed.
8637 (scrolling_window): Add parameter top_line_p. Return -1 if
8638 all rows are equal.
8639 (mode_line_string): Add parameter mode_line_p. Handle strings
8640 in top lines.
8641
8642 * dispextern.h (MATRIX_TOP_LINE_ROW): New.
8643 (MATRIX_FIRST_TEXT_ROW): New.
8644 (MATRIX_ROW_PARTIALLY_VISIBLE_P): Use row's visible_height.
8645 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_TOP_P): New.
8646 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_BOTTOM_P): New.
8647 (MATRIX_TOP_LINE_HEIGHT): New.
8648 (CURRENT_MODE_LINE_HEIGHT): Use estimate_mode_line_height.
8649 (CURRENT_TOP_LINE_HEIGHT): New.
8650 (DESIRED_TOP_LINE_HEIGHT): New.
8651 (WINDOW_DISPLAY_TOP_LINE_HEIGHT): New.
8652 (WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE): Replaces
8653 WINDOW_DISPLAY_TEXT_AREA_PIXEL_HEIGHT.
8654 (WINDOW_DISPLAY_TEXT_HEIGHT): New.
8655
8656 * xterm.c (x_after_update_window_line): Don't draw bitmaps for top
8657 lines.
8658 (x_draw_row_bitmaps): Take top line into account when clearing
8659 bitmap area.
8660 (x_estimate_mode_line_height): Replacement for
8661 x_frame_mode_line_height.
8662 (x_get_glyph_string_clip_rect): Take top line into account.
8663 (x_clear_end_of_line): Ditto.
8664 (note_mode_line_highlight): Add parameter mode_line_p. Handle
8665 top lines.
8666 (note_mouse_highlight): Call note_mode_line_highlight for top lines.
8667 (x_erase_phys_cursor): Take top line into account.
8668
8669 * xdisp.c (window_box_height): Subtract top line height if
8670 window wants a top line.
8671 (display_mode_lines): New.
8672 (redisplay_window): Call it.
8673 (display_mode_line): Add parameters face_id and format.
8674
8675 * dispextern.h (CURRENT_TOP_LINE_HEIGHT): New.
8676 (MATRIX_TOP_LINE_HEIGHT): New.
8677
8678 * xterm.c (x_frame_mode_line_height): Add parameter face_id.
8679
8680 * term.c (estimate_mode_line_height): Renamed from
8681 frame_mode_line_height. Add parameter face_id.
8682 (estimate_mode_line_height_hook): Renamed from
8683 frame_mode_line_height_hook.
8684 (produce_special_glyphs_hook): Removed.
8685 (produce_glyphs_hook): Removed.
8686
86871999-06-23 Gerd Moellmann <gerd@gnu.org>
8688
8689 * dispextern.h (WINDOW_WANTS_TOP_LINE_P): New.
8690 (struct glyph_row): Add mode_line_p.
8691
8692 * xfaces.c (realize_basic_faces): Realize face `top-line'.
8693 (Qtop_line): New.
8694 (syms_of_xfaces): Initialize Qtop_line.
8695
8696 * dispextern.h (TOP_LINE_FACE_ID): New.
8697
8698 * buffer.c (init_buffer_once): Set default for
8699 top_line_format to nil.
8700 (init_buffer_once): Init top_line_format.
8701 (default-top-line-format): New.
8702 (top-line-format): New buffer-local variable.
8703
8704 * buffer.h: Add top_line_format.
8705
8706 * xdisp.c (overlay_arrow_changed_p): Removed because not used.
8707
87081999-06-17 Dave Love <fx@gnu.org>
8709
8710 * xfns.c: Move the PNG section before the JPEG one to avoid
8711 problems surrounding setjmp.h/png.h on GNU/Linux.
427ec082 8712
26901792
DL
87131999-06-17 Gerd Moellmann <gerd@gnu.org>
8714
8715 * xfns.c (x_kill_gs_process): Don't free colors.
8716
87171999-06-17 Dave Love <fx@gnu.org>
8718
8719 * s/gnu-linux.h: Zap spurious ~.
8720
87211999-06-16 Gerd Moellmann <gerd@gnu.org>
8722
8723 * xfns.c (gif_load): Improve multi-image support.
8724
87251999-06-15 Gerd Moellmann <gerd@gnu.org>
8726
8727 * xfns.c (gif_load): Support multi-image files.
8728
8729 * Makefile.in (LIBGIF): Use libungif.
8730
8731 * configure.in (HAVE_GIF): Use libungif instead of libgif
8732 because the former doesn't contain patented compression code.
8733
8734 * xdisp.c (compute_window_start_on_continuation_line): Don't
8735 do it if line start is too far away from window start.
8736
87371999-06-14 Gerd Moellmann <gerd@gnu.org>
8738
8739 * buffer.c (init_buffer_once): Set buffer_local_flags for
8740 scroll_*_aggressively.
8741 (syms_of_buffer): Add DEFVAR_PER_BUFFER for scroll-*-aggressively.
8742 (init_buffer_once): Set defaults for these variables.
8743 (syms_of_buffer): Add default-scroll-*-aggressively.
8744
8745 * buffer.h (scroll_up_aggressively): New.
8746 (scroll_down_aggressively): New.
8747
8748 * Makefile.in (LIBPNG): Add -lz -lm in case we're linking with
8749 a static PNG library.
8750
8751 * configure.in (HAVE_PNG): Add -lz -lm when checking for PNG lib
8752 in case it's a static library.
8753
8754 * Makefile.in (ctagsfiles): Split so that files starting
8755 with an `x' are found before files starting with `w32'.
8756 (ctagsfiles1): New.
8757 (ctagsfiles2): New.
8758 (TAGS): Use ctagsfiles[12] instead of ctagsfiles.
8759
8760 * xdisp.c (compute_window_start_on_continuation_line): New.
8761 (redisplay_window): Use it.
8762 (INFINITY): New.
8763 (reseat_to_string): Use it.
8764 (hscroll_window_tree): Ditto.
8765 (compute_window_start_on_continuation_line): Ditto.
8766 (redisplay_window): Don't force display with a new window start.
8767
87681999-06-06 Gerd Moellmann <gerd@gnu.org>
8769
8770 * xfns.c (x_report_frame_params): Don't report `outer-window-id'
8771 if widget not present.
8772
8773 * xdisp.c (prepare_menu_bars): Ignore tooltip frame.
8774
87751999-06-04 Gerd Moellmann <gerd@gnu.org>
8776
8777 * xfaces.c (recompute_basic_faces)[GLYPH_DEBUG]: Check return
8778 value of realize_basic_faces.
8779 (load_face_font_or_fontset): Store full font name in face.
8780 (realize_default_face): Use full font name.
8781
26901792
DL
8782 * xterm.c (x_produce_glyphs): Set member char_to_display.
8783 (x_append_glyph): Store char_to_display in glyphs.
8784
8785 * dispextern.h (struct it): Add char_to_display.
8786
8787 * xfns.c (x_set_font): Don't call face-set-after-frame-default
8788 if faces haven't been initialized.
8789 (Fx_create_frame): Call face-set-after-frame-default after
8790 faces have been initialized, and widget has been created.
8791
8792 * puresize.h (BASE_PURESIZE): Increased.
8793
87941999-06-01 Gerd Moellmann <gerd@gnu.org>
8795
8796 * xfaces.c (set_lface_from_font_name): Add parameter force_p.
8797 (Finternal_set_lisp_face_attribute): If frame is t when
8798 :font attribute is set, use the selected frame.
8799 (clear_face_cache): Add parameter clear_fonts_p.
8800 (Fclear_face_cache): Add optional parameter thorougly.
8801
8802 * xfaces.c (face_numeric_value): Return -1 if symbol is not
8803 in table.
8804 (Fclear_face_cache): New.
8805 (choose_face_fontset_font): If fontset doesn't contain font
8806 pattern for the given charset, use CHARSET_ASCII.
8807 (Finternal_set_lisp_face_attribute): Fix handling of nil
8808 stipple attribute.
8809 (Finternal_set_lisp_face_attribute): Fix handling of changing
8810 font-related face attributes of the default face.
8811 (set_lface_from_font_name): Set only attributes that aren't
8812 specified.
8813
88141999-05-31 Gerd Moellmann <gerd@gnu.org>
8815
8816 * xfaces.c (SCALABLE_FONTS): Define this to enable scalable
8817 font support.
8818 (Vscalable_fonts_allowed) [SCALABLE_FONTS]: New.
8819 (x_face_list_fonts): Add parameter scalable_fonts_p. Handle
8820 scalable fonts depending on the setting of SCALABLE_FONTS.
8821 (first_font_matching): List more than one font to find the
8822 first non-scalable matching font.
8823 (sorted_font_list): Let x_face_list_fonts return scalable fonts
8824 depending on SCALABLE_FONTS.
8825 (better_font_p): New parameter compare_pt_p. If zero, don't
8826 compare point sizes of fonts.
8827 (exact_face_match_p) [SCALABLE_FONTS]: New.
8828 (build_scalable_font_name) [SCALABLE_FONTS]: New.
8829 (may_use_scalable_font_p) [SCALABLE_FONTS]: New.
8830 (best_matching_font) [SCALABLE_FONTS]: Handle scalable fonts.
8831 (syms_of_xfaces): Add scalable-fonts-allowed.
8832
88331999-05-26 Gerd Moellmann <gerd@gnu.org>
8834
8835 * xfns.c (png_load): Let PNG lib handle gamma. Construct
8836 mask only if image contains simple transparency information.
8837 Otherwise, combine image with frame background color.
8838
8839 * configure.in (--with-png, HAVE_PNG): New.
8840
8841 * config.in (HAVE_PNG): New.
8842
8843 * Makefile.in: Add PNG library.
8844
8845 * xfns.c: Add PNG support.
8846
88471999-05-25 Gerd Moellmann <gerd@gnu.org>
8848
8849 * xdisp.c (init_xdisp): Initialize echo_area_message and
8850 previous_echo_area_message to nil.
8851
8852 * keyboard.c (read_char): Rename local variable echo_area_message
8853 because it shadows the global one.
8854
88551999-05-05 Gerd Moellmann <gerd@gnu.org>
8856
8857 * xterm.c (note_mode_line_highlight): Restructured.
8858
8859 * window.c (coordinates_in_window): Handle windows that don't have
8860 a mode line because their buffer's mode-line-format is nil.
8861 Recognize the mode line under x positions that correspond to
8862 flags areas and left scroll bar.
8863
88641999-05-02 Dave Love <fx@gnu.org>
8865
8866 * xterm.c (note_mouse_highlight): Separate help-echo processing
8867 from check on mouse-face so that it works generally.
8868
88691999-04-21 Gerd Moellmann <gerd@gnu.org>
8870
8871 * sound.c (Fplay_sound): Run hook play-sound-hook.
8872 (Qplay_sound_hook): New.
8873
88741999-04-20 Gerd Moellmann <gerd@gnu.org>
8875
8876 * xdisp.c (update_echo_area): Handle echo_area_message.
8877
88781999-04-19 Gerd Moellmann <gerd@gnu.org>
8879
8880 * editfns.c (Fmessage): Use message3.
8881
8882 * print.c (printchar): Set echo_area_message to nil.
8883 (strout): Ditto.
8884
8885 * minibuf.c (read_minibuf): Reset echo message strings to nil.
8886 (Fminibuffer_completion_help): Ditto.
8887
8888 * keyboard.c (cmd_error_internal): Set echo_areA_message.
8889 (command_loop_1): Test echo_areA_message.
8890 (read_char): Ditto.
8891 (record_menu_key): Set echo_area_message to nil.
8892 (Fexecute_extended_command): Test echo_area_message.
8893 (Fexecute_extended_command): Handle echo_area_message.
8894
8895 * fileio.c (Fdo_auto_save): Handle the case that echo_area_message
8896 is set.
8897
8898 * editfns.c (Fcurrent_message): If echo_area_message is set,
8899 return a substring of that string.
8900
8901 * dispnew.c (direct_output_for_insert): Test echo_area_message
8902 in addition to echo_area_glyphs.
8903 (set_window_cursor_after_update): Ditto.
8904 (update_frame_1): Ditto.
8905
8906 * alloc.c (Fgarbage_collect): Use message3_nolog to display
8907 old Lisp message string.
8908
8909 * xdisp.c (echo_area_message): New.
8910 (previous_echo_area_message): New.
8911 (syms_of_xdisp): Initialize and staticpro new variables.
8912 (echo_area_display): Display echo_area_message if set.
8913 (message2_nolog): Set echo_area_message and
8914 previous_echo_area_message.
8915 (echo_area_display): Set previous_echo_area_message.
8916 (redisplay_internal): Display echo area if echo_area_message
8917 or previous_echo_area_message are set.
8918 (redisplay_preserve_echo_area): Test/set echo_area_message and
8919 previous_echo_area_message.
8920 (redisplay_window): Test echo_area_message.
8921 (message3_nolog): New.
8922 (message3): New.
8923
8924 * editfns.c (Fformat): Add text properties to the result string
8925 from properties of the format string and properties of string
8926 arguments.
8927
8928 * textprop.c (text_property_list): New.
8929 (add_text_properties_from_list): New.
8930 (extend_property_ranges): New.
8931
89321999-03-29 Gerd Moellmann <gerd@gnu.org>
8933
8934 * xfaces.c (Qraised, Qsunken, QCshadow): Removed.
8935 (QCline_width, QCstyle, Qpressed_button, Qreleased_button): New.
8936 Use these symbols for the box face attribute instead of the
8937 removed ones.
8938
89391999-03-12 Gerd Moellmann <gerd@gnu.org>
8940
8941 * xfaces.c (realize_tty_face): Don't set alt_char_p of face.
8942 Correct wrong test for slant.
8943
89441999-03-10 Gerd Moellmann <gerd@gnu.org>
8945
8946 * xfaces.c: Use `unspecified' for unspecified face attributes,
8947 use t and nil for on/off.
8948
89491999-03-06 Gerd Moellmann <gerd@gnu.org>
8950
8951 * buffer.c (syms_of_buffer): Extend doc string of
8952 mode-line-format.
8953
8954 * xfaces.c (x_face_list_fonts): New parameter try_alternatives_p.
8955 (first_font_matching): New.
8956 (set_lface_from_font_name): Use it if font name is a pattern.
8957 (font_field_wildcard_p): Removed.
8958
8959 * dispnew.c (shift_glyph_matrix): Add `window' parameter.
8960 Recompute visible height of rows.
8961
8962 * xterm.c (note_mouse_highlight): Reorder code for help-echo.
8963 Don't accept non-strings for help-echo from overlays.
8964
89651999-03-04 Dave Love <fx@gnu.org>
8966
8967 * xterm.c (note_mouse_highlight): Check overlays for help-text
8968 property.
8969 (XTread_socket): Fix compiler warning.
427ec082 8970
26901792
DL
89711999-03-05 Gerd Moellmann <gerd@gnu.org>
8972
427ec082 8973 * xterm.c (note_mouse_highlight): Don't restrict number of
26901792
DL
8974 overlay to 10. Call overlays_at so that it doesn't try to
8975 extend the vector.
8976
8977 * xdisp.c (compute_line_metrics): Compute glyph row's visible
8978 height.
8979
8980 * dispnew.c (row_equal_p): Compare visible row height, only.
8981 (update_text_area): Draw whole line if visible heights of
8982 rows differ.
8983 (update_window_line): Call after_update_window_line_hook
8984 if visible row height has changed.
8985
8986 * dispextern.h (MATRIX_ROW_VISIBLE_HEIGHT): Removed.
8987 (struct glyph_row): New member visible_height.
8988
8989 * xfaces.c (font_field_wildcard_p): New.
8990 (set_lface_from_font_name): Remove parameter force_p. Accept
8991 font names containing wildcards.
8992
89931999-03-04 Gerd Moellmann <gerd@gnu.org>
8994
8995 * xterm.c (x_after_update_window_line): Clear internal border
8996 when windows_or_buffers_changed.
8997
8998 * dispextern.h (WINDOW_WANTS_MODELINE_P): Return zero if window's
8999 buffer has a nil mode_line_format.
9000
90011999-03-03 Gerd Moellmann <gerd@gnu.org>
9002
9003 * xterm.c (x_setup_relief_colors): Use either background color
9004 or specified color.
9005
9006 * xfaces.c (realize_x_face): Set face->use_box_color_for_shadows_p.
9007
9008 * dispextern.h (struct face): Add use_box_color_for_shadows_p.
9009
9010 * xterm.c (x_draw_box_rect): New.
9011 (x_draw_glyph_string_box): Renamed from
9012 x_draw_glyph_string_relief. Call x_draw_box_rect.
9013
9014 * xfns.c (QCrelief): New.
9015 (syms_of_xfns): Initialize it.
9016
9017 * dispextern.h (struct glyph): Rename left_shadow_p to
9018 left_box_line_p, right_shadow_p to right_box_line_p.
9019 (MAX_RELIEF_THICKNESS): Removed.
9020 (struct it): Rename members having `relief' in their names
9021 to contain `box' instead.
9022
9023 * xfaces.c (realize_x_face): Handle new box attribute values.
9024 (QCrelief, Qbox): Removed.
9025 (QCshadow, QCcolor, Qraised, Qsunken): New.
9026 (syms_of_xfaces): Initialize new symbols.
9027
90281999-03-02 Gerd Moellmann <gerd@gnu.org>
9029
9030 * dispextern.h (LFACE_RELIEF_INDEX): Removed.
9031
9032 * xfaces.c (LFACE_RELIEF): Removed.
9033 (merge_face_vector_with_property): Remove handling of `:relief'.
9034 (Finternal_set_lisp_face_attribute): Ditto.
9035 (Finternal_set_lisp_face_attribute_from_resource): Ditto.
9036 (Finternal_get_lisp_face_attribute): Ditto.
9037 (realize_default_face): Ditto.
9038 (lface_hash): Don't compute hash from relief.
9039
9040 * dispextern.h (struct face): Replace member `relief' by
9041 `box_line_width'. Add member `box'.
9042 (face_box_type): New.
9043
9044 * xterm.c (x_produce_glyphs): If face has overline, add overline
9045 thickness + 1 to ascent.
9046
90471999-03-01 Gerd Moellmann <gerd@gnu.org>
9048
9049 * xterm.c (x_draw_glyph_string): Draw underline, overline,
9050 strike-through, and boxes.
9051 (x_draw_glyph_string_underline): Removed.
9052
9053 * xfaces.c (QCoverline, QCstrike_through, QCbox): New.
9054 (Qoverline, Qstrike_through, Qbox): New.
9055 (syms_of_xfaces): Define these symbols.
9056 (check_lface_attrs): Add checks for overline, strike-through,
9057 and box.
9058 (Finternal_set_lisp_face_attribute): Set new attributes.
9059 (LFACE_OVERLINE, LFACE_STRIKE_THROUGH, LFACE_BOX): New.
9060 (load_color): Handle new attributes.
9061 (realize_x_face): Ditto.
9062 (merge_face_vector_with_property): Ditto.
9063 (free_face_colors): Ditto.
9064 (Finternal_set_lisp_face_attribute_from_resource): Ditto.
9065 (Finternal_get_lisp_face_attribute): Ditto.
9066 (Finternal_lisp_face_attribute_values): Ditto.
9067
9068 * dispextern.h (lface_attribute_index): Add enumerators for
9069 overstrike, strike-through, and box.
9070 (struct face): Add members for overline, strike-through, and
9071 box.
9072
90731999-02-17 Dave Love <fx@gnu.org>
9074
9075 * s/gnu-linux.h s/gnu.h s/irix5-0.h s/netbsd.h s/sco4.h s/sco5.h
9076 s/template.h (NARROWPROTO): Define on the basis of relevant X cf
9077 files.
9078
90791999-02-16 Gerd Moellmann <gerd@gnu.org>
9080
9081 * keyboard.c (toolbar_items): Call access_keymap with third
9082 parameter 1, so that we don't get inherited toolbar item
9083 definitions.
9084
9085 * xdisp.c (redisplay_internal): In optimization 1, don't decrement
9086 the window end vpos when in empty first line of window.
9087
90881999-02-15 Gerd Moellmann <gerd@gnu.org>
9089
9090 * xfaces.c (set_font_frame_param): New.
9091 (Finternal_set_lisp_face_attribute): Call it.
9092
9093Sun Feb 14 10:54:02 1999 Masatake Yamato <masata-y@is.aist-nara.ac.jp>
9094
9095 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
9096 Accept specifications of color for underline.
9097
90981999-02-13 Gerd Moellmann <gerd@gnu.org>
9099
9100 * xfaces.c (Finternal_set_lisp_face_attribute): If parameter
9101 `frame' is t, operate on face defaults for new frames. If it
9102 is nil, operate on the selected frame.
9103
91041999-02-12 Gerd Moellmann <gerd@gnu.org>
9105
9106 * dispnew.c (check_matrix_invariants): Put it in #if 0.
9107 (update_window): Put the call to check_matrix_invariants in #if 0.
9108
9109Sun Feb 7 09:58:49 1999 Masatake Yamato <masata-y@is.aist-nara.ac.jp>
9110
9111 * dispextern.h: Remove all else block of UNDERLINE_COLOR.
9112 Remove definition of UNDERLINE_COLOR.
9113
9114Mon Jan 4 04:43:41 1999 Masatake Yamato <masata-y@is.aist-nara.ac.jp>
9115
9116 * xfaces.c (free_face_colors): Free the color for underline.
9117
9118 * xterm.c (x_draw_glyph_string_underline): Set the color for underline
9119 to the GC.
9120
9121Sun Jan 3 08:41:10 1999 Masatake Yamato <masata-y@is.aist-nara.ac.jp>
9122
9123 * dispextern.h (UNDERLINE_COLOR): Defined.
9124 (struct face): Added two new members.
9125 underline_color, underline_defaulted_p.
9126
427ec082 9127 * xfaces.c (merge_face_vector_with_property):
26901792 9128 (check_lface_attrs): Accept the string value for underline.
427ec082 9129 (Finternal_set_lisp_face_attribute): Likewise.
26901792
DL
9130
9131 * xfaces.c (load_color): Change the last argument type to enum
9132 lface_attribute_index from int. And addec code for underling coloring.
9133 (load_face_colors): Pass LFACE_*_INDEX to load_color.
427ec082 9134
26901792
DL
91351999-02-12 Gerd Moellmann <gerd@gnu.org>
9136
9137 * xfns.c (Fx_image_header): Removed.
9138
91391999-02-07 Gerd Moellmann <gerd@gnu.org>
9140
9141 * xterm.c: Don't include <bitmaps/gray>.
9142 (x_term_init): Use gray_bitmap_width and gray_bitmap_height.
9143
9144 * xfns.c (Fx_image_header): Add missing `\n\'.
9145 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits): New.
9146
91471999-02-01 Gerd Moellmann <gerd@gnu.org>
9148
9149 * xterm.c (x_scroll_bar_create): Set background pixel from
9150 specified scroll bar color.
9151 (x_scroll_bar_set_handle): Use scroll bar foreground color.
9152
9153 * xfns.c (x_set_scroll_bar_foreground): Remove all scroll bars.
9154 (x_set_scroll_bar_background): Ditto.
9155
9156 * xterm.c (x_create_toolkit_scroll_bar): Set scroll bar colors.
9157
9158 * xfns.c (x_default_scroll_bar_color_parameter): New.
9159 (Fx_create_frame): Call it.
9160
91611999-01-31 Gerd Moellmann <gerd@gnu.org>
9162
9163 * xfns.c (Fx_create_frame): Initialize scroll bar pixel color
427ec082 9164 values in x_output structure.
26901792
DL
9165 (Qscroll_bar_foreground, Qscroll_bar_background): New.
9166 (syms_of_xfns): Initialize these symbols.
9167
9168 * xterm.h (struct x_output): Add scroll bar pixel colors.
9169
9170 * xfns.c (x_frame_parms): Add entries for scroll bar colors.
9171 (x_set_scroll_bar_foreground): New.
9172 (x_set_scroll_bar_background): New.
9173
26901792
DL
91741999-01-12 Gerd Moellmann <gerd@gnu.org>
9175
9176 * xdisp.c (handle_single_display_prop): New.
9177 (handle_display_prop): Call it.
9178 (handle_raise_prop): Removed.
9179 (handle_height_prop): Removed.
9180 (handle_space_width_prop): Removed.
9181 (handle_face_prop): Remove handling of raised text.
9182 (handle_display_prop): Do it here.
9183
9184 * dispextern.h (DISPLAY_PROP_IDX): Replaces GLYPH_PROP_IDX.
9185 (RAISE_PROP_IDX): Removed.
9186 (HEIGHT_PROP_IDX): Removed.
9187 (SPACE_WIDTH_PROP_IDX): Removed.
9188
9189 * xdisp.c (Qdisplay): Replaces Qglyph.
9190 (handle_display_prop): Formerly handle_glyph_prop.
9191
91921999-01-11 Gerd Moellmann <gerd@gnu.org>
9193
9194 * xdisp.c (reseat_to_string): Set position in display vector to -1.
9195 (handle_stop): Set position in display vector to -1. Don't
9196 check overlay strings when set up to deliver characters from a
9197 display vector.
9198 (set_iterator_to_next): At the end of a run of characters from a
9199 display vector, check whether the display vector display replaces
9200 the display of a character.
9201
92021999-01-05 Gerd Moellmann <gerd@gnu.org>
9203
9204 * xfaces.c (init_frame_faces): Don't realize faces if frame's
9205 X window hasn't been created yet.
9206
92071998-12-06 Gerd Moellmann <gerd@gnu.org>
9208
9209 * sound.c: New.
9210
92111998-12-04 Gerd Moellmann <gerd@gnu.org>
9212
9213 * config.in (HAVE_SOUND): New.
9214
9215 * emacs.c (main): Call syms_of_sound and init_sound.
9216
9217 * Makefile.in (obj): Add sound.o.
9218
9219 * configure.in: Add checks for machine/soundcard.h and sys/soundcard.h.
9220
9221 * config.in (HAVE_MACHINE_SOUNDCARD_H): New.
9222 (HAVE_SYS_SOUNDCARD_H): New.
9223
92241998-12-03 Gerd Moellmann <gerd@gnu.org>
9225
9226 * buffer.h (struct buffer): indicate_empty_lines renamed from
9227 indicate_zv_lines.
9228
9229 * buffer.c (indicate-empty-lines): Renamed from indicate_zv_lines.
9230 (default-indicate-zv-lines): Likewise.
9231
9232 * dispextern.h (struct glyph_row): Rename indicate_zv_line_p
9233 to indicate_empty_line_p.
9234
9235 * xdisp.c (reseat_at_next_visible_line_start): Reset method
9236 to next_element_from_buffer.
9237
9238 * frame.c (make_frame): Set n_current_toolbar_items to 0.
9239
9240 * xdisp.c (handle_face_prop): Allow symbols of the form `N+'
9241 and `N-'.
9242
9243 * xfns.c (xbm_scan): New.
9244 (xbm_read_hexint): Removed.
9245 (xbm_read_bitmap_file_data): Use xbm_scan.
9246
9247 * fileio.c (Finsert_file_contents): Prevent redisplay optimizations.
9248
92491998-12-02 Gerd Moellmann <gerd@gnu.org>
9250
9251 * xfns.c (xbm_read_hexint): New.
9252 (xbm_read_bitmap_file_data): New.
9253 (xbm_load_image_from_file): Call xbm_read_bitmap_file_data
9254 instead of XReadBitmapFileData.
9255
9256 * xdisp.c (handle_raise_prop): Compute voffset from current font.
9257
9258 * xfaces.c (face_with_height): New.
9259
9260 * xdisp.c (eval_handler): Renamed from eval_mode_handler.
9261 (eval_form): Renamed from eval_mode_element.
9262 (handle_face_prop): Use it.
9263 (Qheight): Replaces Qsmaller.
9264 (handle_height_prop): Replaces handle_smaller_prop.
427ec082 9265 (handle_face_prop): If iterator's font_height is not an
26901792
DL
9266 integer, evaluate it to get the font height to use.
9267
9268 * dispextern.h (HEIGHT_PROP_IDX): Replaces SMALLER_PROP_IDX.
9269 (struct it): Use `font_height' instead of `smaller'.
9270
92711998-12-01 Gerd Moellmann <gerd@gnu.org>
9272
9273 * xdisp.c (reseat_1): New.
9274 (reseat): Call it.
9275 (move_it_vertically_backward): Ditto.
9276 (redisplay_window): Don't abort when cursor not found in recenter.
9277
92781998-11-30 Gerd Moellmann <gerd@gnu.org>
9279
9280 * xdisp.c (reseat_at_next_visible_line_start): When not
9281 currently delivering display elements from the current buffer,
9282 restore buffer position first.
9283 (init_from_display_pos): Don't set IT's position from the
9284 position passed to this function.
9285
92861998-11-28 Gerd Moellmann <gerd@gnu.org>
9287
9288 * config.in (PROTO): Removed.
9289
9290 * xterm.h: Change PROTO to P_.
9291
92921998-11-26 Gerd Moellmann <gerd@gnu.org>
9293
9294 * xterm.c (take_vertical_position_into_account): New.
9295 (x_produce_image_glyph): Call it.
9296 (x_produce_stretch_glyph): Ditto.
9297 (x_produce_glyphs): Ditto.
9298 (x_fill_glyph_string): Adjust base line for glyph's voffset.
9299 (x_fill_composite_glyph_string): Ditto.
9300 (x_fill_image_glyph_string): Ditto.
9301 (x_fill_stretch_glyph_string): Ditto.
9302
9303 * xdisp.c (display_line): Always compute row height from
9304 max_ascent and max_descent.
9305
9306 * dispextern.h (struct glyph): Add voffset.
9307 (struct it): Replace height by descent, max_height by max_descent.
9308
9309 * xterm.c (x_append_glyph): Set voffset
9310 (x_append_stretch_glyph): Ditto.
9311 (x_produce_image_glyph): Ditto.
9312 (x_produce_glyphs): Take voffset into account.
9313 (x_produce_image_glyph): Ditto.
9314 (x_produce_stretch_glyph): Ditto.
9315
9316 * dispextern.h (struct it): Add voffset.
9317 * xdisp.c (push_it): Save voffset.
9318 (pop_it): Restore it.
9319
9320 * xdisp.c (it_props): Add entry for `raise'.
9321 (handle_raise_prop): New.
9322
9323 * dispextern.h (RAISE_PROP_IDX): New.
9324
9325 * xdisp.c (Qraise): New.
9326 (syms_of_xdisp): Define Qraised.
9327
9328 * xterm.c (x_scroll_bar_move): Clear to the left and right
9329 of toolkit scroll bars differently.
9330 (x_scroll_bar_move): Removed.
9331 (XTset_vertical_scroll_bar): Move code from x_scroll_bar_move here.
9332
9333 * dispextern.h: Make it compilable --with-x=no.
9334 * alloc.c: Ditto.
9335 * emacs.c: Ditto.
9336 * dispnew.c: Ditto.
9337 * keyboard.c: Ditto.
9338 * term.c: Ditto.
9339 * xdisp.c: Ditto.
9340 * xfaces.c: Ditto.
9341 * xfns.c: Ditto.
9342 * xmenu.c: Ditto.
9343
93441998-11-25 Gerd Moellmann <gerd@gnu.org>
9345
9346 * xterm.c (XTread_socket): Cancel help-echo when leaving frame.
9347
93481998-11-24 Gerd Moellmann <gerd@gnu.org>
9349
9350 * xterm.c (x_set_toolkit_scroll_bar_thumb): When dragging,
9351 update slider size, only.
9352 (xm_scroll_callback): Set dragging member of the scroll bar.
9353 (xt_action_hook): Reset last_scroll_bar_part.
9354 (XTredeem_scroll_bar): Reset bar->dragging to nil.
9355
26901792
DL
9356 * xfns.c (Fx_hide_busy_cursor): Don't try to hide busy cursor
9357 window on newly created frames that don't have one.
9358
93591998-11-23 Gerd Moellmann <gerd@gnu.org>
9360
9361 * xdisp.c (restore_overlay_strings): Removed.
9362 (restore_dpvec): Removed.
9363 (init_from_display_pos): Inline both functions above.
9364
9365 * xfns.c (IMAGE_NON_NEGATIVE_INTEGER_VALUE): New.
9366 (parse_image_spec): Handle it.
9367 (xbm_format): Use it.
9368 (xpm_format): Ditto.
9369 (pbm_format): Ditto.
9370 (jpeg_format): Ditto.
9371 (tiff_format): Ditto.
9372 (gif_format): Ditto.
9373 (gs_format): Ditto.
9374
9375 * xdisp.c (set_window_cursor): Removed.
9376 (redisplay_internal): Case cursor motion in cursor line of
9377 selected window; use set_cursor_from_row.
9378
93791998-11-22 Gerd Moellmann <gerd@gnu.org>
9380
9381 * widget.c (EmacsFrameSetCharSize): Take widget's border width
9382 into account.
9383
93841998-11-21 Gerd Moellmann <gerd@gnu.org>
9385
9386 * xterm.c (expose_frame): Redraw menu bar window.
9387
9388 * xdisp.c (display_menu_bar): Record hpos instead of x-position
9389 in menu item.
9390
9391 * dispnew.c (change_frame_size_1): Use FRAME_TOP_MARGIN instead
9392 of FRAME_TOOLBAR_LINES. Use `f' instead of `frame'.
9393
9394 * widget.c (set_frame_size): Use FRAME_SCROLL_BAR_COLS
9395 to determine vertical_scroll_bar_extra.
9396 (EmacsFrameSetCharSize): Ditto.
9397 * xfns.c (x_figure_window_size): Ditto.
9398
9399 * xterm.c (x_draw_row_bitmaps): Draw in `bitmap-area' face.
9400 (x_draw_bitmap): Ditto.
9401
9402 * dispextern.h (face_id): New id BITMAP_AREA_FACE_ID.
9403 * xfaces.c (realize_basic_faces): Realize it.
9404
94051998-11-20 Gerd Moellmann <gerd@gnu.org>
9406
9407 * xmenu.c (xmenu_show): Add workaround for remaining button grab
427ec082 9408 under LessTif Use the widget of the frame as parent for the
26901792
DL
9409 menu, again.
9410
94111998-11-19 Gerd Moellmann <gerd@gnu.org>
9412
9413 * xterm.c (XTread_socket): Inhibit busy cursor for EnterNotify.
9414 When EnterNotify, don't generate a mouse movement event if
9415 notification is from a busy-cursor child window.
9416
9417 * xterm.h (struct x_output): Add busy_window, remove cursor.
9418
9419 * xfns.c (Fx_show_busy_cursor): Formerly Fx_display_busy_cursor.
9420 Use a transparent window to display the busy-cursor.
9421 (Fx_hide_busy_cursor): Formerly Fx_undisplay_busy_cursor.
9422
94231998-11-17 Gerd Moellmann <gerd@gnu.org>
9424
9425 * xdisp.c (check_window_end): New, for debugging.
9426 (CHECK_WINDOW_END): New.
9427 (try_window_id): Use it.
9428
9429 * xterm.c (process_expose_from_menu): Return int.
9430
9431 * keyboard.c (kbd_buffer_get_event): Set flag to prevent recording
9432 TOOLBAR_EVENT events in last_nonmenu_event.
9433
94341998-11-16 Gerd Moellmann <gerd@gnu.org>
9435
9436 * xdisp.c (redisplay_window): If windows_or_buffers_changed,
9437 window end isn't reliable, so set window_end_valid to nil.
9438 (redisplay_internal): If overlay arrow has changed, set
9439 windows_or_buffers_changed to redisplay thoroughly.
9440
9441 * dispnew.c (adjust_glyph_matrix): Invalidate window end, if
9442 necessary.
9443
9444 * xfns.c (file_dialog_cb): New.
9445 (Fx_file_dialog): New.
9446 * fileio.c (Fread_file_name): Call it.
9447
427ec082 9448 * xrdb.c (x_load_resources): Add default resoures for file
26901792
DL
9449 selection dialog.
9450
94511998-11-14 Gerd Moellmann <gerd@gnu.org>
9452
9453 * xterm.c (note_mouse_highlight): Don't highlight when popup
9454 is active.
9455
26901792
DL
9456 * keyboard.c (timer_check): Inhibit busy cursor around calls to
9457 timer-event-handler. This busy cursor tends to be anoying if
9458 fontifying stealthily.
9459
9460 * dispnew.c (direct_output_for_insert): Give up if current row
9461 contains trailing whitespace.
9462
94631998-11-13 Gerd Moellmann <gerd@gnu.org>
9464
9465 * dispextern.h (prop_idx): Add FONTIFIED_PROP_IDX.
9466
9467 * xdisp.c (handle_fontified_prop): New.
9468 (Vfontification_functions): New.
9469 (Qfontification_functions): New.
9470 (it_props): Add handle_fontified_prop.
9471
94721998-11-12 Gerd Moellmann <gerd@gnu.org>
9473
9474 * xmenu.c (xmenu_show): Use the frame's edit_widget as parent.
9475 Otherwise, under LessTif, after the popup has gone, all button
9476 press events come in for the frame's widget, and release events
9477 come in for the edit_widget.
9478 * xterm.c (XTread_socket): Remove workaround for that problem.
9479 (x_set_toolkit_scroll_bar_thumb): Add workaround for LessTif
9480 XmScrollBarSetValues.
9481 (SET_SAVED_MENU_EVENT): Give it statement form.
9482
26901792
DL
9483 * xfaces.c (display_message): If waiting_for_input, don't display
9484 the message.
9485
9486 * window.c (scroll_command): If not acting on current_buffer,
9487 make redisplay consider all windows.
9488
9489 * xfns.c (Fx_hide_tip): Return t if tooltip was open.
9490
9491 * xdisp.c (handle_glyph_prop): Set it->object for images to
9492 the object having the glyph property.
9493
9494 * xterm.c (x_draw_row_bitmaps): Don't draw if row is completely
9495 invisible.
9496
94971998-11-11 Gerd Moellmann <gerd@gnu.org>
9498
9499 * xterm.h (struct x_display_info): Add gray pixmap. * xterm.c
9500 (x_term_init): Create the gray pixmap.
9501 (x_setup_relief_color): Use it.
9502 (x_get_glyph_string_clip_rect): Draw a toolbar window over the
9503 internal border at the top of a frame.
9504 (x_init_glyph_string): Likewise.
427ec082 9505 (x_draw_glyph_string_relief): Correct right x by 1 pixel for
26901792
DL
9506 full-width lines.
9507 (XTflash): Don't flash the toolbar window.
9508
9509 * xterm.c (XTread_socket): Workaround for LessTif popup menus
9510 in case of ButtonPress events.
9511
95121998-11-10 Gerd Moellmann <gerd@gnu.org>
9513
9514 * xrdb.c (x_load_resources): Add grey background colors as
9515 defaults for menus, scroll bars, and dialogs.
9516
9517 * insdel.c (prepare_to_modify_buffer): Move setting
9518 windows_or_buffers_changed from modify_region here.
9519
9520 * xfns.c (Fx_show_tip): Inhibit redisplay.
9521 (Fx_hide_tip): Ditto.
9522 (Fx_image_header): New.
9523
95241998-11-09 Gerd Moellmann <gerd@gnu.org>
9525
9526 * dispnew.c (clear_window_matrices): Set window_end_valid to nil
9527 when clearing current window matrices.
9528
95291998-11-08 Gerd Moellmann <gerd@gnu.org>
9530
9531 * xdisp.c (handle_glyph_prop): Don't set an iterator's buffer
9532 position from a string position. Use the right end position
9533 if the property spans a whole overlay string.
9534
95351998-11-07 Gerd Moellmann <gerd@gnu.org>
9536
9537 * xmenu.c (menubar_selection_callback): Remove workaround for
9538 Lesstif not calling XmNpopdownCallback because it doesn't
9539 handle the case where users don't select any menu item.
9540
26901792
DL
9541 * insdel.c (modify_region): Set windows_or_buffers_changed.
9542
9543 * buffer.c (set_buffer_internal): Don't set
9544 windows_or_buffers_changed.
9545
26901792
DL
9546 * xmenu.c (HAVE_BOXES): Define if USE_X_TOOLKIT.
9547
26901792
DL
9548 * xmenu.c (menubar_selection_callback): Add workaround for
9549 Lesstif not calling XmNpopdownCallback.
9550
9551 * xdisp.c (eval_mode_element): New.
9552 (eval_mode_handler): New.
9553 (display_mode_element): Use eval_mode_element.
9554
9555 * xdisp.c (display_mode_element): Allow `(:eval FORM)'.
9556 Remove code looking at text props of default value.
9557
9558 * xmenu.c (HAVE_BOXES): Define if using Lucid menus.
9559
26901792
DL
95601998-11-06 Gerd Moellmann <gerd@gnu.org>
9561
427ec082 9562 * xmenu.c (single_submenu): Set button_type of menu to
26901792
DL
9563 BUTTON_TYPE_NONE.
9564 (single_submenu): Likewise for panes and menu items.
9565 (set_frame_menubar): Set button_type of menu bar to none.
9566 (xmenu_show): Likewise.
9567 (single_submenu): Set widget values selected slot.
9568 (xmenu_show): Likewise.
9569
26901792
DL
9570 * xmenu.c (push_menu_item): Add parameters `type' and
9571 `selected'. Store it in menu_items.
9572 (MENU_ITEMS_ITEM_TYPE): New.
9573 (MENU_ITEMS_ITEM_SELECTED): New.
9574 (MENU_ITEMS_ITEM_LENGTH): Increase by two.
9575
9576 * xfns.c (clear_image_cache): Get the current time, before
9577 doing anything.
9578 (cache_image): Set prev pointer of next image.
9579 (clear_image_cache): Clear current matrices if any image was
9580 freed.
9581
9582 * xterm.c (XTread_socket): Set inhibit_busy_cursor.
9583
9584 * xfns.c (x_set_cursor): New.
9585 (Fx_display_busy_cursor): New.
9586 (Fx_undisplay_busy_cursor): New.
9587
9588 * xterm.h (struct x_output): Add busy_cursor.
9589
9590 * xfns.c (Vx_busy_pointer_shape): New.
9591 (x_set_mouse_color): Create busy cursor.
9592
9593 * process.c (wait_reading_process_input): Show and hide busy
9594 cursor.
9595
9596 * keyboard.c (command_loop_1): Display busy cursor.
9597
9598 * eval.c (Fsignal): Hide busy cursor.
9599
9600 * buffer.c (set_buffer_internal): Don't set
9601 windows_or_buffers_changed.
9602
9603 * xterm.c (redo_mouse_highlight): New.
9604
96051998-11-04 Gerd Moellmann <gerd@gnu.org>
9606
26901792
DL
9607 * xfns.c (x_create_x_image_and_pixmap): Add depth parameter.
9608 (x_build_heuritic_mask): New.
9609 (lookup_image): Call it.
9610
9611 * xterm.c (note_toolbar_highlight): Always set up help_echo.
9612 (previous_help_echo): New.
9613 (XTread_socket): Generate help event with nil message when
9614 leaving a region with help-echo.
9615 (note_mouse_highlight): Handle `help-echo' over text.
9616 (XTread_socket): Dispatch VisibilityNotify, CirculateNotify,
9617 CirculateRequest.
9618 (clear_mouse_face): Don't clear if tooltip is shown.
9619 (XTread_socket): Redo mouse-highlight after tooltip is gone.
9620 Avoid SET_FRAME_GARBAGED when tooltip is mapped.
9621
9622 * keyboard.c (Vshow_help_function): New.
9623 (read_char): Use it.
9624
96251998-11-03 Gerd Moellmann <gerd@gnu.org>
9626
9627 * xfns.c (x_create_tip_frame): New.
9628 (Fx_show_tip): New.
9629 (Fx_hide_tip): New.
9630
427ec082 9631 * xterm.c (x_destroy_window): Handle case that we don't have
26901792
DL
9632 a widget.
9633
9634 * dispextern.h (struct glyph_row): Rename no_marginal_areas_p
9635 to full_width_p. Add internal_border_p.
9636
96371998-11-02 Gerd Moellmann <gerd@gnu.org>
9638
9639 * xterm.c (note_mode_line_highlight): Check the charpos of
9640 the glyph under the mouse pointer before accessing text
9641 properties at that position.
9642
96431998-11-01 Gerd Moellmann <gerd@gnu.org>
9644
9645 * xterm.c (x_draw_image_relief): Handle toolbar_button_relief.
9646
9647 * xdisp.c (auto-raise-toolbar-buttons): New.
9648 (build_desired_toolbar_string): Handle the flag.
9649 (toolbar-button-margin): New.
9650 (toolbar-button-relief): New.
9651 (build_desired_toolbar_string): Use margin and relief.
9652
9653 * xterm.c (x_set_toolkit_scroll_bar_thumb): Remove workaround
9654 for FreeBSD.
9655 (note_mode_line_highlight): New.
9656 (note_mouse_highlight): Call it.
9657
96581998-10-31 Gerd Moellmann <gerd@gnu.org>
9659
9660 * s/freebsd.h (NARROWPROTO): New.
9661
9662 * xdisp.c (display_string): New parameter face_string.
9663 (display_mode_element): When displaying a symbol with a string
9664 value, use text properties from the symbol's default value, maybe.
9665
9666 * xrdb.c (x_load_resources): Add font defaults for menus and
9667 dialogs.
9668
96691998-10-30 Gerd Moellmann <gerd@gnu.org>
9670
9671 * xfns.c (Fx_create_frame): Try 12pt Courier font first.
9672
96731998-10-29 Gerd Moellmann <gerd@gnu.org>
9674
9675 * xterm.c (x_produce_glyphs): Fix bug causing glyphs to be
9676 produced for characters with codes < 32 under certain
9677 circumstances.
9678
9679 * xdisp.c (redisplay_window): Handle values of PT in front
9680 of invisible, intangible text.
427ec082 9681 (try_window_id): Set overlay_arrow_seen to zero before
26901792
DL
9682 displaying lines.
9683 (display_mode_element): Assign to glyphs written for a mode
9684 line spec `%x' as object the Lisp format string, as position
9685 the position of the `%' in that string.
9686 (display_string): If displaying a C string, optionally get
9687 the face to use from a Lisp string.
9688
9689 * xterm.c (expose_window_tree): Include mode line height.
9690
9691 * xfns.c (Fx_create_frame): Add toolbar height to frame height.
9692
96931998-10-27 Gerd Moellmann <gerd@gnu.org>
9694
9695 * xterm.c (note_mouse_highlight): Change mouse pointer shape
9696 over mode line.
9697
96981998-10-26 Gerd Moellmann <gerd@gnu.org>
9699
9700 * window.c (coordinates_in_window): Use CURRENT_MODE_LINE_HEIGHT.
9701
9702 * xdisp.c (redisplay_window): If mode line height has changed,
9703 arrange for a thorough immediate redisplay using the correct mode
9704 line height.
9705 (window_box_height): Use CURRENT_MODE_LINE_HEIGHT.
9706
9707 * dispextern.h (MATRIX_MODE_LINE_HEIGHT): New.
9708 (CURRENT_MODE_LINE_HEIGHT): New.
9709 (DESIRED_MODE_LINE_HEIGHT): New.
9710
9711 * keyboard.c (make_lispy_event): Add string and string position
9712 info to mouse-click events.
9713 (read_key_sequence): Handle `local-map' property of mode line
9714 strings.
9715
9716 * keyboard.h (POSN_STRING): New.
9717
97181998-10-25 Gerd Moellmann <gerd@gnu.org>
9719
9720 * dispnew.c (mode_line_string): Mew.
9721
9722 * xterm.c (xt_action_hook): New.
9723 (x_create_toolkit_scroll_bar): Add action hook.
9724 (xm_scroll_callback): Implement dragging.
9725
9726 * keyboard.c (Qend_scroll): New.
9727 (scroll_bar_parts): Add it.
9728
9729 * termhooks.h (scroll_bar_end_scroll): New.
9730
9731 * xterm.c (XTread_socket): Bug fix.
9732
97331998-10-24 Gerd Moellmann <gerd@gnu.org>
9734
9735 * xdisp.c (redisplay_window): Finish scroll bars after
9736 redisplaying toolbar.
9737
9738 * keyboard.c (scroll_bar_parts): Add Qtop and Qbottom.
9739 (syms_of_keyboard): Add Qbottom.
9740
9741 * termhooks.h (scroll_bar_to_top): New.
9742 (scroll_bar_to_bottom): New.
9743
9744 * xdisp.c (redisplay_window): Always resize toolbar window if
9745 auto_resize_toolbar_p is non-zero.
9746 (auto_resize_toolbar_p): Renamed from auto_resize_toolbar.
9747 (window_box): New.
9748 (window_box_height): New.
9749 (window_box_width): New.
9750 (window_box_left): New.
9751 (window_box_right): New.
9752 (window_box_edges): New.
9753
97541998-10-23 Gerd Moellmann <gerd@gnu.org>
9755
9756 * xterm.c (x_set_toolkit_scroll_bar_thumb): Kluge for call to
9757 XawScrollbarSetThumb in FreeBSD.
9758 (x_create_toolkit_scroll_bar): Set resource "beNiceToColormap"
9759 to true.
9760
9761 * window.c (get_phys_cursor_glyph): Return null if cursor vpos
9762 is out of range.
9763
9764 * xterm.c (x_create_toolkit_scroll_bar): Set scroll_bar_pixel.
9765 (x_term_init): Initialize it.
9766
9767 * xterm.h (struct x_display_info): Add scroll_bar_pixel.
9768
9769 * xterm.c (x_create_toolkit_scroll_bar): Set LessTif scroll bar's
9770 cursor.
9771
97721998-10-22 Gerd Moellmann <gerd@gnu.org>
9773
9774 * keyboard.c (make_lispy_event): Handle scroll_bar_click
9775 differently when using toolkit scroll bars.
9776
9777 * xterm.c (x_send_scroll_bar_event): New.
9778 (x_scroll_bar_to_input_event): New.
9779 (xaw3d_scroll_callback): New.
9780 (xaw3d_jump_callback): New.
9781 (xm_scroll_callback): New.
9782 (x_toolkit_scroll_p): New.
9783 (XTread_socket): Handle scroll bar client message.
9784 (x_term_init): Initialize Xatom_Scrollbar.
9785 (x_scroll_bar_create): Set cursor.
9786 (xm_scroll_callback):
9787 (x_create_toolkit_scroll_bar): New.
9788 (x_set_toolkit_scroll_bar_thumb): New.
9789 (x_scroll_bar_create): Call x_create_toolkit_scroll_bar.
9790 (XTset_vertical_scroll_bar): Call x_set_toolkit_scroll_bar_thumb.
9791
9792 * xterm.h (struct x_display_info): Add Xatom_Scrollbar.
9793
97941998-10-21 Gerd Moellmann <gerd@gnu.org>
9795
9796 * xterm.c (x_scroll_bar_remove): Handle toolkit scroll bars.
9797 (XTread_socket): Don't handle mouse button events for scroll bars
9798 if using toolkit scroll bars.
9799 (XTset_vertical_scroll_bar): Set thumb size and position for
9800 Athena scroll bar.
9801
9802 * xterm.h (scroll_bar): Add x_widget_low and x_widget_high.
9803
9804 * xterm.c (XTread_socket): Dispatch expose event to widget
9805 if using toolkit scroll bars.
9806 (x_scroll_bar_expose): Make no-op for toolkit scroll bars.
427ec082 9807 (x_scroll_bar_create): Create and show a scroll bar widget
26901792
DL
9808 if using toolkit scroll bars.
9809 (x_scroll_bar_move): Handle tookit scroll bars.
9810
9811 * Makefile.in (LIBW): Use Xaw3d if present.
9812
9813 * configure.in (USE_TOOLKIT_SCROLL_BARS): New.
9814 (HAVE_XAW3D): New.
427ec082 9815
26901792
DL
9816 * config.in (USE_TOOLKIT_SCROLL_BARS): New.
9817 (HAVE_XAW3D): New.
9818
427ec082 9819 * xterm.c (XTset_vertical_scroll_bar): Correct position of
26901792
DL
9820 right vertical scroll bar.
9821
98221998-10-20 Gerd Moellmann <gerd@gnu.org>
9823
9824 * xfns.c (xpm_load): Support reading XPM images from string
9825 buffers containing data in the same format as an XPM file.
9826 Support `:color-symbols'.
9827 (xpm_format): Add `:data'.
9828 (xpm_keyword_index): Add XPM_DATA.
9829 (syms_of_xfns): Add `:color-symbols'.
9830 (xpm_keyword_index): Add XPM_COLOR_SYMBOLS.
9831 (xpm_valid_color_symbols_p): New.
9832 (xpm_image_p): Call it.
9833
9834 * xdisp.c (build_desired_toolbar_string): Add `:algorithm'
9835 attribute to the image if item is not enabled.
9836
9837 * xfns.c (x_laplace): New.
9838 (x_laplace_read_row): New.
9839 (x_laplace_write_row): New.
9840 (lookup_image): Handle common image attributes here. New
9841 attribute `:algorithm'.
9842
9843 * xfaces.c (clear_face_cache): Call clear_image_cache.
9844
9845 * xterm.c (x_inverted_image_mask): Removed.
9846 (x_draw_image_foreground_1): New.
9847 (x_draw_image_glyph_string): Draw images with mask to a temporary
9848 pixmap to reduce flickering.
9849
9850 * xdisp.c (redisplay_toolbar): Handle auto-resize-toolbars.
9851 (display_toolbar_line): Remove parameter `margin'.
9852
98531998-10-19 Gerd Moellmann <gerd@gnu.org>
9854
9855 * xdisp.c (toolbar_lines_needed): New.
9856 (auto-resize-toolbars): New.
9857
9858 * xfns.c (cache_image): Correct call to xrealloc.
9859
9860 * dispnew.c (Fset_toolbar_height): Removed.
9861
9862 * xdisp.c (init_xdisp): Use FRAME_TOP_MARGIN instead of
9863 FRAME_MENU_BAR_LINES.
9864
9865 * window.c (Fdelete_other_windows): Use FRAME_TOP_MARGIN
9866 instead of FRAME_MENU_BAR_LINES.
9867 (check_frame_size): Ditto.
9868
9869 * dispnew.c (adjust_frame_glyphs_initially): Use FRAME_TOP_MARGIN
9870 instead of FRAME_MENU_BAR_LINES.
9871 (adjust_frame_glyphs_for_frame_redisplay): Ditto.
9872 (build_frame_matrix): Ditto.
9873 (change_frame_size_1): Ditto.
9874
9875 * frame.h (FRAME_TOOLBAR_LINES): New.
9876 (FRAME_TOP_MARGIN): New.
9877
9878 * window.c (struct save_window_data): Add frame_toolbar_lines.
9879 (Fset_window_configuration): Handle toolbar lines.
9880 (Fcurrent_window_configuration): Save toolbar lines.
9881
9882 * frame.c (syms_of_frame_1): Add Qtoolbar_lines.
9883
9884 * xfns.c (Fx_create_frame): Add default parameter for toolbar.
9885
9886 * frame.h (struct frame): Rename top_margin to toolbar_lines.
9887
9888 * xfns.c (x_frame_parms): Add `toolbar-lines'.
9889 (x_set_toolbar_lines): New.
9890
9891 * keyboard.c (cmd_error_internal): Bug fix.
9892
9893 * xterm.c: Remove double include of syssignal.h.
9894
98951998-10-18 Gerd Moellmann <gerd@gnu.org>
9896
9897 * xterm.c (x_toolbar_item): New.
9898 (x_handle_toolbar_click): Use it.
9899 (note_toolbar_highlight): Use it.
9900
9901 * keyboard.c (syms_of_keyboard): Staticpro toolbar_item_properties
9902 and toolbar_items_vectors.
9903
9904 * xterm.c (help_echo): New.
9905 (draw_glyphs_face): Add DRAW_IMAGE_RAISED and DRAW_IMAGE_SUNKEN.
9906 (x_set_glyph_string_gc): Handle them.
9907 (x_after_update_window_line): Don't do anything in pseudo-windows.
9908 (x_produce_image_glyph): Take image margin and face relief into
9909 account.
9910 (x_get_glyph_string_clip_rect): Handle pseudo-windows.
9911 (x_draw_glyph_string_background): Optimize case when face has
9912 relief.
9913 (x_setup_relief_color): Take frame instead of glyph string
9914 parameter.
9915 (x_draw_relief_rect): New.
9916 (x_draw_glyph_string_relief): Call it.
9917 (x_draw_image_glyph_string_foreground): Handle margin and image
9918 relief.
9919 (x_draw_image_glyph_string_background): Ditto.
9920 (expose_frame): Redraw toolbar window.
9921 (expose_window): Don't draw cursor for pseudo-windows.
9922 (x_y_to_hpos_vpos): Handle pseudo-windows.
9923 (frame_to_window_pixel_xy): New.
9924 (note_mouse_highlight): Call note_toolbar_highlight.
9925 (x_handle_toolbar_click): New.
9926 (note_toolbar_highlight): New.
9927 (show_mouse_face): Change int parameter `hl' to parameter of
9928 type enum draw_glyphs_face. Handle image highlighting.
9929 (XTread_socket): Return a HELP_EVENT input event if help_echo is
9930 non-nil. Use x_handle_toolbar_click.
9931
9932 * termhooks.h (event_kind): Add HELP_EVENT, TOOLBAR_EVENT.
9933
9934 * xfns.c (image_value_type): Add IMAGE_INTEGER_VALUE,
9935 IMAGE_BOOL_VALUE.
9936 (parse_image_spec): Handle them.
9937 (image_spec_value): Additional parameter found.
427ec082 9938 (free_image): Remove image from the vector `images' of the
26901792
DL
9939 image cache.
9940 (clear_image_cache): Additional parameter force_p.
9941 (Fclear_image_cache): New.
9942 (x_find_image_file): New.
9943 (xbm_load): Handle `:margin' and `:relief'. Use
9944 x_find_image_file.
9945 (xpm_load): Likewise.
9946 (pbm_load): Likewise.
9947 (jpeg_load): Likewise.
9948 (tiff_load): Likewise.
9949 (gif_load): Likewise.
9950
9951 * keyboard.c (Qhelp_echo): New symbol.
9952 (read_char): Handle `toolbar' and `help_echo' events.
9953 (kbd_buffer_get_event): Handle HELP_ECHO input event.
9954 (make_lispy_event): Handle TOOLBAR_EVENT.
9955 (toolbar_items): New.
9956 (process_toolbar_item): New.
9957 (PROP): New.
9958 (init_toolbar_items): New.
9959 (append_toolbar_item): New.
9960 (read_char_x_menu_prompt): Handle `toolbar' event.
9961 (read_key_sequence): Ditto.
9962
9963 * xfaces.c (Qtoolbar): New.
9964 (realize_basic_faces): Realize `toolbar' face.
9965 (face_at_string_position): Remove parameter modeline_p, add
9966 base_face_id.
9967
9968 * xfns.c (xbm_load_image_from_file): Don't use Xmu function
9969 to read data.
9970
99711998-10-17 Gerd Moellmann <gerd@gnu.org>
9972
9973 * xdisp.c (init_iterator): Replace parameter modeline_p with
9974 base_face_id.
9975 (next_element_from_string): Call get_next_display_element
9976 recursively after handling text properties.
9977 (prepare_menu_bars): Call update_toolbar.
9978 (update_toolbar): New.
9979 (build_desired_toolbar_string): New.
9980 (display_toolbar_line): New.
9981 (redisplay_toolbar): New.
9982 (toolbar_item_info): New.
9983 (redisplay_window): Call redisplay_toolbar.
9984 (Fdump_toolbar_row): New. Defined if compiled with GLYPH_DEBUG.
9985
9986 * dispnew.c (clear_current_matrices): Clear matrices of toolbar
9987 window.
9988 (clear_desired_matrices): Ditto.
9989 (adjust_frame_glyphs_for_window_redisplay): Make toolbar window.
9990 (free_glyphs): Free matrices of toolbar window.
9991 (update_frame): Update toolbar window.
9992 (change_frame_size_1): Take toolbar into account.
9993 (Fset_toolbar_height): New.
9994
9995 * dispextern.h (struct it): Remove member modeline_p, add
9996 base_face_id.
9997 (struct image): Add members relief and margin.
9998 (IMAGE_ASCENT): Include margin in height.
9999
100001998-10-14 Gerd Moellmann <gerd@gnu.org>
10001
10002 * xfns.c (Fclear_image_cache): New.
10003
10004 * xfaces.c (realize_basic_faces): Realize toolbar face.
10005 (face_at_string_position): Remove parameter modeline_p, add
10006 base_face_id.
10007
10008 * dispextern.h (enum face_id): Add TOOLBAR_FACE_ID.
10009
100101998-10-13 Gerd Moellmann <gerd@gnu.org>
10011
10012 * keyboard.c (syms_of_keyboard): Intern `:help'.
10013
100141998-10-12 Gerd Moellmann <gerd@gnu.org>
10015
10016 * xterm.c (note_toolbar_highlight): New.
10017 (note_mouse_highlight): Call it.
10018
10019 * window.c (window_from_coordinates): Additional parameter toolbar_p.
10020 (coordinates_in_window): Handle toolbar window.
10021
10022 * keyboard.c (toolbar_items): New.
10023 (process_toolbar_item): New.
10024 (parse_toolbar_item): New.
10025 (init_toolbar_items): New.
10026 (append_toolbar_item): New.
10027
10028 * dispextern.h (enum toolbar_item_idx): New.
10029 (enum toolbar_item_image): New.
10030
10031 * frame.h (struct frame): Add toolbar-related members.
10032
10033 * xfaces.c (face_at_string_position): Remove assertion that
10034 current_buffer == window's buffer. This is not the case when
10035 called for the toolbar window.
10036
10037 * frame.c (make_frame): Initialize toolbar members.
10038
10039 * alloc.c (mark_object): Mark toolbar data of frames.
10040
10041 * frame.h (struct frame): Add toolbar-related members
10042 toolbar_window, desired_toolbar_items, current_toolbar_items,
10043 desired_toolbar_string, current_toolbar_string,
10044 n_desired_toolbar_items, n_current_toolbar_items. Add
10045 window_height.
10046
10047 * xterm.c (x_after_update_window_line): Don't draw bitmap
10048 areas for pseudo-windows.
10049 (expose_frame): Handle toolbar window.
10050 (expose_window): Don't do cursor stuff for pseudo-windows.
10051
10052 * xdisp.c (display_menu_bar): Correct calls to init_iterator.
10053
100541998-10-11 Gerd Moellmann <gerd@gnu.org>
10055
10056 * frame.c (make_frame): Initialize toolbar_window.
10057
10058 * alloc.c (mark_object): Make the toolbar window.
10059
10060 * dispnew.c (update_frame): Update frame's toolbar_window.
10061 (clear_current_matrices): Likewise.
10062 (clear_desired_matrices): Likewise.
10063 (adjust_frame_glyphs_for_window_redisplay): Make toolbar_window.
10064 (free_glyphs): Free the toolbar window and its matrices.
10065
10066 * frame.h (struct frame): Add toolbar_window.
10067
10068 * xterm.c (x_draw_glyph_string_relief): Handle mouse-face
10069 with relief.
10070
100711998-10-10 Gerd Moellmann <gerd@gnu.org>
10072
427ec082 10073 * dispnew.c (buffer_posn_from_coords): Don't screw up if
26901792
DL
10074 window start is not in the range BEGV..ZV.
10075
100761998-10-09 Gerd Moellmann <gerd@gnu.org>
10077
10078 * xdisp.c (try_scrolling): Experimentally handle the case
10079 that scroll-preserve-screen-position is set to `always'.
10080
10081 * window.c (Vscroll_preserve_screen_position): Replacement for
10082 scroll_preserve_screen_position.
10083
100841998-10-08 Gerd Moellmann <gerd@gnu.org>
10085
10086 * dispnew.c: Don't initialize auto structs; the HP/UX compiler
10087 doesn't like it.
10088 * xdisp.c: Ditto.
10089
10090 * xdisp.c (make_cursor_line_fully_visible): Adjust this_line_y.
10091
100921998-10-06 Gerd Moellmann <gerd@gnu.org>
10093
427ec082 10094 * minibuf.c (Fminibuffer_complete_word): Fix computation of
26901792
DL
10095 i_byte when prompts are inserted into minibuffers.
10096
10097 * dispextern.h (FRAME_INTERNAL_BORDER_WIDTH_SAFE): New.
10098 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X): Use it.
10099 (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y): Ditto.
10100
101011998-10-04 Gerd Moellmann <gerd@gnu.org>
10102
10103 * xdisp.c (make_cursor_line_fully_visible): New.
10104 (try_scrolling): New.
10105 (redisplay_window): Move scrolling code to try_scrolling.
10106 (make_cursor_line_fully_visible): Handle case of window too small
10107 to show a single line.
10108 (redisplay_window): Case forced window start---use
10109 make_cursor_line_fully_visible.
10110 (redisplay_window): Case cursor movement via current matrix.
10111 If ending up on a partially visible line, make it fully visible
10112 instead of recentering.
10113 (try_scrolling): Additional parameter scroll_smoothly.
10114
10115 * xterm.c (x_draw_bitmap): Don't XClearArea under the pixmap.
10116
101171998-09-28 Gerd Moellmann <gerd@gnu.org>
10118
10119 * window.c (window_scroll_pixel_based): Bug fix: vpos used
10120 instead of y-position for scroll-preserved-screen-position.
10121
101221998-09-07 Gerd Moellmann <gerd@gnu.org>
10123
10124 * dispnew.c (update_frame_line): If current row is not enabled,
10125 write the whole line.
10126
101271998-09-06 Gerd Moellmann <gerd@gnu.org>
10128
10129 * lisp.h (HAVE_FACES): Removed.
10130
10131 * dispextern.h (HAVE_FACES): Removed.
10132
10133 * config.in (HAVE_FACES): Removed.
10134
10135 * dispnew.c (HAVE_FACES): Removed.
10136
10137 * xdisp.c (HAVE_FACES): Removed.
10138
10139 * xfaces.c (HAVE_FACES): Removed.
10140
101411998-09-05 Gerd Moellmann <gerd@gnu.org>
10142
10143 * xdisp.c (init_iterator): If face_change_count is non-zero,
10144 free realized faces.
10145
10146 * xfaces.c (free_all_realized_faces): Make it externally visible.
10147 (Finternal_set_lisp_face_attribute): Increment
10148 windows_or_buffers_changed.
10149
10150 * dispnew.c (direct_output_for_insert): Give up if
10151 face_change_count is non-zero.
10152 (direct_output_forward_char): Ditto.
10153
10154 * xfaces.c (face_change_count): New.
10155
101561998-09-04 Gerd Moellmann <gerd@gnu.org>
10157
10158 * xterm.c (x_draw_bar_cursor): Don't draw if cursor hpos is out
10159 of range.
10160
101611998-09-03 Gerd Moellmann <gerd@gnu.org>
10162
10163 * term.c (Ftty_display_color_p): New.
10164
101651998-09-02 Gerd Moellmann <gerd@gnu.org>
10166
10167 * xfaces.c (Ftty_defined_colors): New.
10168
10169 * xterm.c (x_produce_glyphs): Fix computation of
10170 contains_overlapping_glyphs_p for ASCII.
10171
10172 * dispnew.c (Fshow_cursor): Don't change cursor state while
10173 redisplaying.
10174 (direct_output_for_insert): If a glyph with lbearing or rbearing
10175 is among the new glyphs, set row flag contains_overlapping_glyph_p.
10176
101771998-09-01 Gerd Moellmann <gerd@gnu.org>
10178
10179 * term.c (OUTPUT_IF): Make replacement text have statement form.
10180 (OUTPUT1_IF): Ditto.
10181 (TS_italic_mode, TS_end_italic_mode): Removed.
10182 (TS_bold_mode): Removed.
10183 (TS_underscore_mode, TS_end_underscore_mode): Removed.
10184 (TS_enter_bold_mode, TS_enter_dim_mode, TS_enter_blink_mode): New.
10185 (TS_enter_reverse_mode): New.
10186 (TS_enter_underline_mode, TS_exit_underline_mode): New.
10187 (TN_magic_cookie_glitch_ul): New.
10188 (TS_enter_alt_charset_mode, TS_exit_alt_charset_mode): New.
10189 (TS_exit_attribute_mode): New.
10190 (TN_max_colors, TN_max_pairs, TS_orig_pairs): New.
10191 (TS_set_foreground, TS_set_background): New.
10192 (reset_terminal_modes): Switch colors back to default.
10193 (write_glyphs): Turn face on before writing text, turn it off
10194 afterwards.
10195 (insert_glyphs): Ditto.
10196 (term_init): Initialize new terminal capability variables.
10197 (turn_on_face): Turn a face on.
10198 (turn_off_face): Turn a face off.
10199
10200 * lisp.h (MAKE_GLYPH): Remove test for frame type.
10201 (GLYPH_CHAR): Ditto.
10202 (GLYPH_FACE): Ditto.
10203
10204 * xfaces.c (Vface_tty_color_alist): New.
10205 (face-register-tty-color): New.
10206 (face-clear-tty-colors): New.
10207
10208 * dispextern.h (FACE_TTY_DEFAULT_COLOR): New.
10209 (struct it): Remove member faces_p since we now always have faces.
10210
102111998-08-31 Gerd Moellmann <gerd@gnu.org>
10212
10213 * dispextern.h (struct face): Add tty appearance flags.
10214
10215 * xdisp.c (init_iterator): Always handle faces.
10216 (extend_face_to_end_of_line): Handle tty frames.
10217
10218 * dispnew.c (clear_glyph_matrix): Allow a null matrix to be
10219 passed in.
10220
102211998-08-30 Gerd Moellmann <gerd@gnu.org>
10222
10223 * xfaces.c (realize_default_face): Use empty strings to indicate
10224 that the face should use the default foreground/background
427ec082 10225 color of the terminal. Fill font-related attributes with
26901792
DL
10226 appropriate values for tty frames.
10227
10228 * emacs.c (main): Call syms_of_xfaces before init_window_once.
10229
10230 * xfaces.c (realize_default_face): If face `default' is not
10231 yet known, create it.
10232
10233 * frame.c (make_terminal_frame): Call init_frame_faces
10234 unconditionally.
10235
10236 * xfaces.c (init_frame_faces): Make it work for tty frames.
10237 (free_frame_faces): Ditto.
10238 (clear_face_cache): Ditto.
10239 (recompute_basic_faces): Ditto.
10240 (Fframe_face_alist): Ditto.
10241 (free_realized_face): Ditto.
10242 (prepare_face_for_display): Ditto.
10243 (clear_face_gcs): Ditto.
10244 (lookup_face): Ditto.
10245 (smaller_face): Ditto.
10246 (realize_default_face): Ditto.
10247 (realize_face): Ditto.
10248 (realize_face): Dispatch to functions depending on the frame type.
10249 (realize_x_face): X way of realizing faces.
10250 (realize_tty_face): TTY way of realizing faces.
10251
102521998-08-29 Gerd Moellmann <gerd@gnu.org>
10253
10254 * xfaces.c (realize_face): Remove parameter unibyte_registry,
10255 compute it instead.
10256 (lookup_face): Remove local variable unibyte_registry.
10257
102581998-08-22 Gerd Moellmann <gerd@gnu.org>
10259
10260 * xterm.c (x_draw_glyph_string_relief): Draw top and bottom lines
10261 1 pixel longer.
10262
427ec082 10263 * xdisp.c (face_before_or_after_it_pos): Fix computation
26901792
DL
10264 of face in buffer.
10265
10266 * editfns.c (make_buffer_string_both): If prompt in buffer,
10267 prevent start > end.
10268
10269 * indent.c (Fvertical_motion): Set current_buffer to window's
10270 buffer if it isn't already.
10271
102721998-08-21 Gerd Moellmann <gerd@gnu.org>
10273
10274 * dispextern.h (GLYPH_DEBUG): Use default 0.
10275
10276 * xdisp.c (it_props): New member `smaller'.
10277 (init_iterator): Initialize it.
10278 (Qsmaller): New.
10279 (push_it): Save value of `smaller' value on the stack.
10280 (pop_it): Restore `smaller' from the stack.
10281 (handle_smaller_prop): New.
10282 (handle_face_prop): Use `smaller' text property to select a
10283 suitable face.
10284
10285 * dispextern.h (SMALLER_PROP_IDX): New.
10286 (struct it): Add member `smaller'.
10287
10288 * xfaces.c (smaller_face): New.
10289
10290 * frame.h (FRAME_WINDOW_WIDTH_ARG): Add bitmap area widths.
10291
10292 * dispnew.c (allocate_matrices_for_window_redisplay): Compute
10293 total pixel width of window differently.
10294
10295 * xdisp.c (init_iterator): Compute width of mode line differently.
10296
10297 * dispextern.h (WINDOW_DISPLAY_PIXEL_WIDTH): Subtract width
10298 of bitmap areas.
10299
10300 * window.c (Fsplit_window): Include width of bitmap areas in
10301 window width.
10302 (window_internal_width): Subtract width of bitmap areas from
10303 total width.
10304
103051998-08-18 Gerd Moellmann <gerd@gnu.org>
10306
10307 * xdisp.c: Functions reordered for better readability.
10308
10309 * dispnew.c (update_text_area): Handle glyphs with arbitrary
10310 lbearing.
10311 (update_window_tree): Parameter no_scrolling_p removed.
10312 (update_single_window): Ditto.
10313
10314 * xterm.c (x_get_char_font_and_encoding): Renamed to
10315 x_get_char_face_and_encoding.
10316
10317 * dispnew.c (update_text_area): Don't call get_glyph_overhangs
10318 if end of current row reached.
10319
10320 * xterm.c (x_get_glyph_face_and_encoding): New.
10321 (x_get_glyph_overhangs): Call it.
10322
10323 * xdisp.c (Qshow_trailing_whitespace): New.
10324 (Qtrailing_whitespace): New.
10325 (enum prop_handled): New.
10326 (struct props, it_props): New.
10327 (next_overlay_change): New. Works like Fnext_overlay_change
10328 but doesn't use xmalloc.
10329 (handle_stop): Restructured.
10330 (face_before_or_after_it_pos): Case iteration over a string: fix
10331 handling of face before current position.
10332
103331998-08-16 Gerd Moellmann <gerd@gnu.org>
10334
10335 * dispnew.c (adjust_glyph_matrix): Don't optimize matrix
10336 reallocation matrix if fonts_changed_p.
10337 (update_text_area): Handle glyphs with lbearing.
10338
103391998-08-14 Gerd Moellmann <gerd@gnu.org>
10340
10341 * xdisp.c (struct props): New.
10342 (it_props): New.
10343 (compute_prop_info): New.
10344 (handle_stop): New.
10345
10346 * textprop.c (validate_interval_range): Make it externally
10347 visible.
10348
10349 * dispnew.c (direct_output_for_insert): Remove calls
10350 to compute_stop_pos.
10351
10352 * dispextern.h (struct it): Remove check_charpos,
10353 next_overlay_pos. Add what_changes.
10354
103551998-08-10 Gerd Moellmann <gerd@gnu.org>
10356
10357 * xterm.c (note_mouse_highlight): Set BEGV_BYTE, ZV_BYTE.
10358
10359 * xfaces.c (Vx_unibyte_registry_and_encoding): Removed. Use
10360 face_default_registry instead.
10361
10362 * syntax.c (scan_sexps_forward): Set up syntax table before
10363 jumping to initial state label.
10364
103651998-08-09 Gerd Moellmann <gerd@gnu.org>
10366
10367 * dispnew.c (check_matrix_invariants): Handle case of row end pos
10368 >= ZV specially.
10369
103701998-08-08 Gerd Moellmann <gerd@gnu.org>
10371
10372 * xdisp.c (redisplay_window): Case cursor movement---if cursor
10373 ends up in partially visible row, try to scroll. Case forced
10374 window start---handle windows not tall enough to show a single
10375 line.
10376
10377 * window.h (struct window): Member dy renamed vscroll.
10378
10379 * xterm.c (x_list_fonts): Re-activate suppression of scalable
10380 fonts.
10381 (x_draw_stretch_glyph_string): Set clipping if using GC that
10382 hasn't set it yet.
10383
10384 * xdisp.c (redisplay_window): Case forced window start -
10385 don't let cursor end on partially visible row. Use desired
10386 matrix to find a suitable PT if it doesn't appear.
10387 (decode_mode_spec): Merged with 20.2.97.
10388 (try_window_reusing_current_matrix): Give up if old or
10389 new display is vscrolled.
10390 (redisplay_window): Reset vscrolling if forced window start,
10391 or if recentering.
10392
103931998-08-06 Gerd Moellmann <gerd@gnu.org>
10394
10395 * xfaces.c (realize_default_face): Use the fontset name instead of
10396 the alias for the family attribute of the default face because we
10397 can't easily determine a good alias from fontset-alias-alist.
10398 (face_fontset): Use Fquery_fontset to find the fontset.
10399 (font_list): Additional pattern parameter.
10400 (try_font_list): Ditto.
10401 (set_lface_from_font_name): Set face family from font foundry
10402 and family.
10403 (font_list): If family contains a hyphen, build pattern differently.
10404
104051998-08-05 Gerd Moellmann <gerd@gnu.org>
10406
10407 * xfaces.c (free_realized_faces): Increment windows_or_buffers_-
10408 changed instead of setting the frame garbaged.
10409
10410 * xfaces.c (lface_equal_p): Don't assume equal Lisp types for
10411 all attribute values. This is wrong if values are unspecified,
10412 i.e. nil.
10413
10414 * xdisp.c (try_window_id): Give up if window start changed.
10415
10416 * xfaces.c (make_realized_face): Store registry as Lisp object.
10417 (load_face_font_or_fontset): Compute registry of a face
10418 differently. Make it `eq' to Vx_unibyte_registry_and_encoding if
10419 possible.
10420
10421 * dispextern.h (FACE_SUITABLE_FOR_CHARSET_P): Compare registries
10422 differently.
10423
10424 * alloc.c (mark_face_cache): Mark the registry member of faces.
10425
10426 * dispextern.h (struct face): Make registry a Lisp string.
10427
104281998-08-04 Gerd Moellmann <gerd@gnu.org>
10429
10430 * xterm.c (x_get_char_font_and_encoding): Additional parameter
10431 multibyte_p. Handle unibyte text.
10432 (x_append_glyph): Set the multibyte_p flag of glyphs.
10433 (x_produce_image_glyph): Ditto.
10434 (x_append_stretch_glyph): Ditto.
10435 (x_produce_glyphs): Handle unibyte text like ASCII.
10436
10437 * xdisp.c (push_it): Save the multibyte flag of an iterator on the
10438 stack.
10439 (pop_it): Restore it.
10440 (face_before_or_after_it_pos): Handle the case that the string or
10441 buffer is unibyte.
10442 (get_overlay_strings): Set the multibyte flag of the iterator if
10443 the new overlay string is multibyte.
10444 (get_glyph_property): Likewise.
10445 (get_next_display_element): Don't check for charset changes in
10446 unibyte text.
10447 (append_space): Compute face differently for unibyte text.
10448 (extend_face_to_end_of_line): Don't return quickly if face has
10449 stipple.
10450
10451 * xfaces.c (load_face_font_or_fontset): Store registry and
10452 encoding of the font in the registry member of the face.
10453 (make_realized_face): Additional parameter `registry'.
10454 (free_realized_face): Free the registry of a realized face.
10455 (face_suitable_for_charset_p): Function form of the macro
10456 with the same name in uppercase.
10457 (lookup_face): Use Vx_unibyte_registry_and_encoding if charset < 0.
10458 (choose_face_font): New parameter unibyte_registry.
10459 (choose_face_fontset_font): Ditto.
10460 (realize_default_face): Remember the registry and encoding of
10461 the specified frame font in Vx_unibyte_registry_and_encoding.
10462 (face_at_buffer_position): Handle unibyte.
10463 (face_at_string_position): Likewise.
427ec082 10464 (realize_face): New parameter unibyte_registry.
26901792
DL
10465 (compute_char_face): Handle the unibyte case.
10466
10467 * dispextern.h (struct glyph): Add bit multibyte_p.
10468 (struct face): New member registry holding the registry and
10469 encoding of the X font of the face.
10470 (FACE_UNIBYTE_P): Value is non-zero if face is for unibye text.
10471 (enum face_id): Add BASIC_FACE_ID_SENTINEL.
10472 (FACE_SUITABLE_FOR_CHARSET_P): Handle charset < 0 meansing unibyte
10473 text.
10474 (struct iterator_stack_entry): Add multibyte_p.
10475
10476 * xdisp.c (string_pos): Use string_char_to_byte.
10477 (char_charset): Removed.
10478
104791998-08-03 Gerd Moellmann <gerd@gnu.org>
10480
10481 * xterm.c (x_draw_image_glyph_string_foreground): Draw a
10482 rectangle for a block cursor over an image without a mask.
10483 (x_stretch_block_cursor): Added. Non-zero means don't draw
10484 a block cursor over a stretch as wide as that stretch.
10485 (x_draw_stretch_glyph_string): Use it.
10486 (x_draw_hollow_cursor): Ditto.
10487
10488 * minibuf.c (read_minibuf): Use minibuf_prompt instead of prompt.
10489 (read_minibuf): Add front-sticky text property for prompt.
10490
10491 * xdisp.c (char_charset): Return charset of a character,
10492 depending on whether or not multi-byte characters are enabled.
10493
10494 * xfaces.c (Fset_face_charset_registry): Removed.
10495 (x_charset_registry): Determine registry from charset plist.
10496
104971998-08-02 Gerd Moellmann <gerd@gnu.org>
10498
10499 * xdisp.c (get_next_display_element): Don't check for charset
10500 changes if multi-byte characters are not enabled.
427ec082 10501
26901792 10502 * xdisp.c (echo_area_display): Use the flush function from the
427ec082 10503 redisplay interface.
26901792
DL
10504 * keyboard.c (detect_input_pending_run_timers): Likewise.
10505
10506 * dispextern.h (produce_*glyphs_hook): Removed.
10507 * term.c (produce_*glyphs): Ditto.
10508 (cursor_to): Remove pixel position parameters.
10509
10510 * dispnew.c: Remove hooks for window-based redisplay, introduce
10511 a redisplay interface structure.
10512
10513 * xterm.c (x_per_char_metric): Return default char metrics if per
10514 char metric exists but contains a zero width. Adobe Courier seems
10515 to contain such characters.
10516
10517 * xdisp.c (compute_line_metrics): Compute the width of rows
10518 without stopping at glyphs with zero width.
10519
105201998-08-01 Gerd Moellmann <gerd@gnu.org>
10521
10522 * xdisp.c (display_mode_line): If nothing was displayed at all,
10523 display a space.
10524 (hscroll_window_tree): Don't subtract 1 from target point if equal
10525 to ZV and window is not the selected window.
10526
10527 * dispnew.c (check_matrix_invariants): Remove check for window
10528 start at BEGV or after newline. This happens in rare cases
10529 intentionally.
10530
105311998-07-31 Gerd Moellmann <gerd@gnu.org>
10532
10533 * xfaces.c (x_charset_registry): Use STRING_BYTES.
10534 (syms_of_xfaces): Add Vface_default_registry.
10535 (x_charset_registry): Use it.
10536
10537 * xdisp.c (run_window_scroll_functions): Run window scroll functions.
10538 (redisplay_window): Use it.
10539
10540 * dispnew.c (update_text_area): Handle lbearing of deleted text
10541 by backing up one character.
10542
105431998-07-30 Gerd Moellmann <gerd@gnu.org>
10544
427ec082 10545 * dispnew.c (adjust_glyph_matrix): Use a different check to
26901792
DL
10546 decide to do nothing.
10547
10548 * xfaces.c (face_at_string_position): Additional parameter
10549 mode_line_p. If non-zero, merge with the mode line face
10550 instead of the default face.
10551 * dispextern.h (struct it): Add mode_line_p.
10552 * xdisp.c (init_iterator): Set it.
10553 (compute_face_in_string): Use it.
10554 (face_before_or_after_it_pos): Handle strings.
10555 (get_next_display_element): Don't look for relief end in C strings.
10556 (next_element_from_string): Deliver string position instead of
10557 buffer position.
10558
10559 * xterm.c (x_flush): Flush X output buffer.
10560 (XTflash): Use it.
10561
10562 * xfaces.c (lface_from_face_name): Renamed from lface_from_symbol.
10563 Allow strings as face names.
10564
10565 * xfns.c (forall_images_in_image_cache): Check that frame is
10566 alive.
10567
10568 * widget.c (EmacsFrameDestroy): Remove call to free_frame_faces;
10569 it's also called from x_destroy_window. Since this function is
10570 called from X, freeing stuff allocated with xmalloc is dangerous
10571 here, anyway.
10572
10573 * xfaces.c (free_realized_faces): Don't clear current matrices
10574 of a frame being destroyed.
10575
427ec082 10576 * frame.c (make_frame): Call set_window_buffer instead of
26901792
DL
10577 Fset_window_buffer.
10578
10579 * window.c (set_window_buffer): Extracted from Fset_window_buffer,
10580 with an additional argument specifying whether or not hooks may
10581 be called.
10582 (Fset_window_buffer): Call it.
10583
10584 * dispnew.c (clear_desired_matrices): Check that frame has
10585 a valid root window before clearing matrices in the window tree.
10586 (clear_current_matrices): Ditto.
10587 (clear_window_matrices): If GLYPH_DEBUG, check that hchild and
10588 vchild are valid windows if not nil.
10589
10590 * xfaces.c (merge_face_vector_with_property): Allow :reverse-video
10591 for :inverse-video.
10592 (Finternal_set_lisp_face_attribute): Ditto.
10593 (Finternal_set_lisp_face_attribute_from_resource): Ditto.
10594 (Finternal_get_lisp_face_attribute): Ditto.
10595 (Finternal_lisp_face_attribute_values): Ditto.
10596 (syms_of_xfaces): Define the symbol `:reverse-video'.
10597
10598 * xdisp.c (get_glyph_property): Renamed from
10599 fill_iterator_from_glyph_property.
10600 (next_element_from_buffer): Handle case that no `glyph' property
10601 was found correctly.
10602 (display_line): Extend face to end of line only if we have faces.
10603
106041998-07-29 Gerd Moellmann <gerd@gnu.org>
10605
10606 * dispnew.c (Fshow_cursor): Renamed from blink_cursor. Take
10607 additional window argument.
10608
10609 * xdisp.c (reseat_at_previous_visible_line_start): Renamed from
10610 set_iterator_to_previous_visible_line_start.
10611 (reseat_at_next_visible_line_start): Likewise.
10612 (compute_stop_pos): Renamed from set_iterator_stop_pos.
10613 (face_before_or_after_it_pos): Renamed from get_face_at_it_pos.
10614 (compute_face_in_buffer): Renamed from
10615 compute_face_at_iterator_position.
10616 (compute_face_in_string): Renamed from
10617 compute_face_at_iterator_string_position.
10618 (get_space_width): Renamed from get_iterator_space_width.
10619 (next_overlay_string): Renamed from
10620 set_iterator_to_next_overlay_string.
10621 (get_overlay_strings): Renamed from
10622 get_overlay_strings_at_iterator_position.
10623 (restore_overlay_strings): Renamed from
10624 setup_overlay_strings_from_glyph_pos.
10625 (restore_dpvec): Renamed from setup_iterator_dpvec_from_glyph_pos.
10626 (init_from_display_pos): Renamed from init_iterator_from_glyph_pos.
10627 (init_to_row_start): Renamed from init_iterator_to_row_start.
10628 (init_to_row_end): Formerly init_iterator_to_next_row_start.
10629
10630 * xterm.c: Merge with 20.2.97.
10631 (x_produce_glyphs): Use x_append_stretch_glyph for tabs.
10632
10633 * dispextern.h (struct glyph): Replace text_pos position with
10634 simple charpos.
10635
10636 * xdisp.c (this_line_start_pos): Use struct text_pos.
10637 (this_line_end_pos): Renamed from .*endpos; use struct text_pos.
10638 (enum move_it_result): Renamed from move_iterator_result.
10639 (string_pos_nchars_ahead): Compute text_pos in a string from a
10640 known text_pos plus a character delta.
10641 (string_pos): Compute text_pos in string from charpos.
10642 (c_string_pos): Likewise for a C string.
10643 (number_of_chars): Return number of characters in a possibly
10644 multi-byte C string.
10645 (check_it): Renamed from check_iterator. Check that charpos and
10646 bytepos are in sync.
10647 (push_it): Renamed from save_iterator_settings.
10648 (pop_it): Renamed from restore_iterator_settings.
10649 (move_it_.*): Renamed from move_iterator_.*.
10650 (charset_at_position): Take charpos/bytepos into account.
10651 (back_to_previous_line_start): Set iterator to previous line start.
10652 (forward_to_next_line_start): Set iterator to next line start.
427ec082 10653 (back_to_previous_visible_line_start): Renamed from
26901792
DL
10654 move_iterator_previous_visible_line_start.
10655 (set_iterator_to_next_visible_line_start): Handle charpos/bytepos.
10656 (get_face_at_it_pos): Renamed from get_face_from_cursor_pos.
10657 Handle charpos/bytepos.
10658 (compute_face_at_iterator_position): Handle charpos/bytepos.
10659 (compute_face_at_iterator_string_position): Likewise.
10660 (get_iterator_space_width): Likewise.
10661 (load_overlay_strings): Likewise.
10662 (get_overlay_strings_at_iterator_position): Likewise.
10663 (reseat_iterator): Take a text_pos position argument.
10664 (setup_iterator_overlay_strings_from_glyph_pos): Handle charpos/
10665 bytepos.
10666 (init_iterator): Take additional bytepos parameter.
10667 (reseat_iterator_to_string): Handle charpos/bytepos.
10668 (start_display): Take a text_pos parameter. Handle charpos/bytepos.
10669 (next_element_from_string): Handle charpos/bytepos.
10670 (next_element_from_c_string): Likewise.
10671 (fill_iterator_from_glyph_property): Likewise.
10672 (next_element_from_buffer): Likewise.
10673 (set_iterator_to_next): Increment charpos and bytepos of an iterator.
10674 (move_iterator_in_display_line_to): Handle charpos/bytepos.
10675 (move_it_to): Likewise.
10676 (move_it_vertically_backward): Likewise.
10677 (move_it_vertically): Likewise.
10678 (move_it_by_lines): Likewise.
10679 (hscroll_window_tree): Likewise.
10680 (redisplay_internal): Likewise.
10681 (set_cursor_from_row): Likewise.
10682 (redisplay_window): Likewise.
10683 (try_window): Take a text_pos parameter. Handle charpos/bytepos.
10684 (try_window_reusing_current_matrix): Handle charpos/bytepos.
10685 (get_first_unchanged_at_end_row): Compute and return delta_bytes.
10686 (try_window_id): Handle charpos/bytepos.
10687 (Ftrace_redisplay_toggle): Return Qnil.
10688 (get_overlay_arrow_glyph_row): Handle charpos/bytepos.
10689 (insert_left_trunc_glyphs): Likewise.
10690
10691 * dispnew.c: `Merge' with 20.2.97 (it's really too different to
10692 do a real merge).
10693 (increment_glyph_matrix_buffer_positions): Add parameter delta_bytes.
10694 (increment_glyph_row_buffer_positions): Ditto.
10695 (copy_glyph_row_contents): Ditto.
10696 (check_matrix_invariants): Add additional checks for charpos/
10697 bytepos consistency.
10698 (direct_output_for_insert): Changed for charpos/bytepos.
427ec082 10699 (buffer_posn_from_coords): Likewise. Put code dealing with
26901792
DL
10700 `direction-reversed' in #if 0.
10701
10702 * xterm.h: Merge with 20.2.97.
427ec082 10703
26901792
DL
10704 * frame.h: Merge with 20.2.97.
10705
10706 * window.h: Merge with 20.2.97. Add window_end_bytepos.
10707
10708 * dispextern.h (MATRIX_ROW_START_CHARPOS): Get charpos of a row
10709 start.
10710 (MATRIX_ROW_START_BYTEPOS): Likewise for the byte position.
10711 (MATRIX_ROW_END_CHARPOS): Likewise for the row end.
10712 (MATRIX_ROW_END_BYTEPOS): Likewise for the row end byte position.
10713 (struct it): Various members renamed from .*pos to .*charpos.
10714 (IT_CHARPOS): Access current buffer character position of an
10715 iterator.
10716 (IT_BYTEPOS): Access current buffer byte position of an iterator.
10717 (IT_STRING_CHARPOS): Access current string character position of
10718 an iterator.
10719 (IT_STRING_BYTEPOS): Access current string byte position of
10720 an iterator.
10721 (globally): Add function prototypes from 20.2.97.
10722
10723 * everywhere: Use P_ instead of PROTO for function prototypes
10724 because everyone else seems to use P_.
10725
10726 * dispextern.h (struct text_pos): Structure describing a charpos/
10727 bytepos position in text.
10728 (BYTEPOS): Access the byte position part of a text_pos.
10729 (CHARPOS): Likewise for the character position.
10730 (SET_TEXT_POS): Set a text_pos from a character and byte position.
10731 (INC_TEXT_POS, DEC_TEXT_POS): Increment/decrement a text position.
10732 (SET_TEXT_POS_FROM_MARKER): Set a text_pos from a marker.
10733 (SET_MARKER_FROM_TEXT_POS): Set a marker from a text_pos.
10734 (TEXT_POS_EQUAL_P): Compare two text_pos structures for equality.
10735 (struct display_pos): Renamed from glyph_pos. Use struct text_pos
10736 for buffer and string positions.
10737 (struct glyph): Use text_pos.
10738 (struct it): Renamed from display_iterator. Use text_pos.
10739
107401998-07-23 Gerd Moellmann <gerd@gnu.org>
10741
10742 * xfns.c (x_kill_gs_process): Get image colors from XImage of a
10743 pixmap.
10744
107451998-07-21 Gerd Moellmann <gerd@gnu.org>
10746
10747 * dispextern.h (struct glyph_row): New flag indicate_zv_line_p.
10748 * xterm.c (x_draw_row_bitmaps): Use it.
10749 * dispnew.c (row_equal_p): Ditto.
10750 (update_window_line): Ditto.
10751
10752 * xfns.c (prepare_image_for_display): Don't set loading_failed_p
10753 flag of images.
10754
10755 * dispextern.h (struct image): Removed member loading_failed_p.
10756 It's probably better to have the chance to try to load an image
10757 again.
10758
107591998-07-20 Gerd Moellmann <gerd@gnu.org>
10760
10761 * xterm.c (x_draw_bitmap): Draw bitmap for empty lines ending
10762 at ZV if `indicate-zv-lines' is non-nil.
10763 (x_draw_row_bitmaps): Compute bitmap for `indicate-zv-lines'.
10764
10765 * dispnew.c (row_equal_p): Compare displays_text_p and
10766 ends_at_zv_p flags of rows.
10767 (update_window_line): Ditto.
10768
10769 * buffer.h (struct buffer): New member indicate_zv_lines.
10770
10771 * buffer.c (init_buffer_once): Add default for `indicate-zv-lines'.
10772 (init_buffer_once): New variable `default-indicate-zv-lines'.
10773 (syms_of_buffer): New buffer-local varianle `indicate-zv-lines'.
10774
10775 * xdisp.c (redisplay_window): Don't try moving the cursor
10776 if current glyph row w->last_cursor.vpos isn't enabled.
10777
10778 * xterm.c (bitmap_type): Add ZV_LINE_BITMAP.
10779
10780 * window.c (Fset_window_vscroll): Allow only negative scroll
10781 values. Others don't seem to make sense, and this way it's easy
10782 to restore a vscroll of zero.
10783
10784 * xterm.c (x_inverted_image_mask): Check that pixmap could be
10785 allocated.
10786 (x_draw_image_glyph_string_background): Don't clip if pixmap
10787 could not be created.
10788
10789 * xfns.c (xbm_load_image_from_file): Check that pixmap could
10790 be created.
10791 (xbm_load): Ditto.
10792 (gs_load): Ditto.
10793
10794 * xterm.c (x_get_glyph_overhangs): Take image and stretch
10795 glyphs into account.
10796
10797 * xfaces.c (realize_default_face): Don't set font family of
10798 the default face from the fontset alias name for `fontset-startup'.
10799
10800 * xfns.c (gs_load): Pass frame's pixel foreground and background
10801 color to the Lisp loader.
10802
108031998-07-19 Gerd Moellmann <gerd@gnu.org>
10804
10805 * xfns.c (tiff_image_p, tiff_load): Support TIFF images via
10806 libtiff34.
10807
10808 * configure.in (--with-tiff, HAVE_TIFF): Added.
10809
10810 * config.in (HAVE_TIFF): Added.
10811
10812 * Makefile.in (LIBTIFF): Added.
10813
10814 * xfns.c (jpeg_image_p, jpeg_load): Support JPEG images.
10815
10816 * Makefile.in (LIBJPEG): Added.
10817
10818 * xfns.c (resource_types): Enumerators renamed to RES_TYPE_NUMBER,
10819 RES_TYPE_BOOLEAN etc. because of conflict of `boolean' with
10820 jpeglib.h.
10821
427ec082 10822 * configure.in (HAVE_JPEG, --with-jpeg): Added. On systems
26901792
DL
10823 where the library is installed in /usr/local/lib, e.g. FreeBSD,
10824 configure must be run with `--x-includes=/usr/X11R6/include:
10825 /usr/local/include --x-libraries=/usr/X11R6/lib:/usr/local/lib'.
10826
108271998-07-18 Gerd Moellmann <gerd@gnu.org>
10828
10829 * config.in (HAVE_JPEG): Added.
10830
10831 * xfns.c (ct_init): Initialize color table used to map RGB colors
10832 from images to X pixel colors.
10833 (ct_free): Free color table.
10834 (ct_lookup): Look an RGB color up.
10835 (ct_allocated_colors): Get vector of allocated colors.
427ec082 10836 (pbm_image_p): Test if image specification is a valid PPM
26901792
DL
10837 image specification.
10838 (pbm_scan_number): Scan a decimal ASCII number from a file.
10839 (pbm_load): Load a PPM image.
10840
10841 * window.c (Fset_window_vscroll): Adjust glyph matrix if
10842 necessary. Take canonical character units as parameter.
10843 (Fwindow_vscroll): Return canonical character units.
10844
10845 * dispnew.c (allocate_matrices_for_window_redisplay): Add negative
10846 w->dy to display height for which glyph rows must be allocated.
10847
108481998-07-17 Gerd Moellmann <gerd@gnu.org>
10849
10850 * xfaces.c (face_at_string_position): Merge in region face
10851 so that it won't overwrite the font in the region.
10852 (face_at_buffer_position): Ditto.
10853 (realize_basic_faces): Don't realize region face.
10854
10855 * dispextern.h (enum face_id): REGION_FACE_ID removed.
10856
10857 * xterm.c (x_set_glyph_string_background_width): Don't let
10858 cursor face extend to end of line.
10859
10860 * xdisp.c (append_space): If adding space of default face,
10861 make sure glyph ist produced with right face.
10862
10863 * xterm.c (x_clear_glyph_string_rect): Draw a rectangle in the
10864 background color of a glyph string.
10865 (x_draw_glyph_string_background): Call it.
10866 (x_draw_glyph_string_bg_rect): Ditto.
10867 (x_draw_stretch_glyph_string): Ditto.
10868
108691998-07-15 Gerd Moellmann <gerd@gnu.org>
10870
10871 * xdisp.c (init_iterator): Initialize it->current_y to the
10872 window's vscroll w->dy.
10873
10874 * window.c (Fwindow_vscroll): Return number of pixels window
10875 is vscrolled smoothly.
10876 (Fset_window_vscroll): Set the number.
10877
10878 * xdisp.c (move_iterator_to): Recognize case MOVE_TO_POS and
10879 to_pos in truncated part of a line.
10880
108811998-07-14 Gerd Moellmann <gerd@gnu.org>
10882
10883 * xdisp.c (move_iterator_in_display_line_to): If very first glyph
10884 doesn't fit on the line, truncate it, despite truncate_lines nil.
10885 (display_line): Ditto.
10886
10887 * xfns.c: Experimental support for Ghostscript images.
10888
10889 * xterm.c (x_term_init): Initialize new atoms DONE and PAGE.
10890 (XTread_socket): React on events from Ghostscript.
10891 (expose_frame): If width or height are zero, redraw entire frame.
10892 (XTread_socket): Call expose_frame after receiving event from
10893 Ghostscript.
10894
10895 * xterm.h (struct x_display_info): Add atoms DONE and PAGE
10896 for Ghostscript support.
10897
10898 * xdisp.c (redisplay_internal): Return quickly if called
10899 recursively.
10900
10901 * alloc.c (NSTATICS): Increased to 1024.
10902
109031998-07-08 Gerd Moellmann <gerd@gnu.org>
10904
10905 * xterm.c (x_append_stretch_glyph): Append a stretch glyph to an
10906 iterator's glyph row.
10907 (x_produce_stretch_glyph): Call it.
10908 (x_produce_glyphs): Handle `space-width' property; call
10909 x_append_stretch_glyph.
10910
10911 * xdisp.c (syms_of_xdisp): Add symbol `space-width' used as a text
10912 property.
10913 (get_iterator_space_width): Determine value of `space-width'
10914 property at iterator's position.
10915 (reseat_iterator): Call it.
10916 (next_element_from_string): Ditto.
10917 (next_element_from_buffer): Ditto.
10918 (init_iterator): Initialize space_width of iterator.
10919 (redisplay_internal): Don't goto end_of_redisplay if PT hasn't
10920 moved, but cursor blinks.
10921 (redisplay_internal): Set w->last_cursor_off_p after update.
10922
10923 * dispextern.h (enum iterator_prop_idx): Add SPACE_WIDTH_PROP_IDX.
10924 (struct display_iterator): Add new member space_width.
10925
10926 * window.h (struct window): Add last_cursor_off_p.
10927
109281998-07-07 Gerd Moellmann <gerd@gnu.org>
10929
10930 * Saved.
10931
10932 * window.c (Fpos_visible_in_window_p): Case window not up to
10933 date---return nil if iterator hasn't reached position.
10934
109351998-07-06 Gerd Moellmann <gerd@gnu.org>
10936
10937 * xdisp.c (text_outside_line_unchanged_p): Fix case that
10938 overlays have changed.
10939 (redisplay_window): Case cursor movement. Don't try it if
10940 last_cursor.vpos is out of range.
10941
10942 * xdisp.c (set_cursor_from_row): Set this_line_.* variables. This
10943 way, the display optimization for the line containing the cursor
10944 is used more frequently, esp. when we have a blinking cursor.
10945 (display_line): Don't set this_line_.* variables.
10946
10947 * xterm.c (x_redraw_cursor): Removed.
10948 (x_display_and_set_cursor): Set cursor type depending on
10949 cursor_off_p flag of window.
10950
10951 * dispnew.c (redraw_cursor_hook): Removed.
10952 (Fblink_cursor): Additional parameter on_p to set the cursor_off_p
10953 member of the selected window.
10954
10955 * xfaces.c (Fface_font): Added for compatibility with 20.2.
10956
10957 * xterm.c (x_y_to_hpos_vpos): Return null if not over text.
10958 Return glyph area under x/y.
10959 (note_mouse_highlight): Use x_y_to_hpos_vpos in its new form.
10960
10961 * keyboard.c (detect_input_pending_run_timers): Call gobble_input
10962 after redisplaying.
10963
109641998-07-05 Gerd Moellmann <gerd@gnu.org>
10965
10966 * xdisp.c (text_outside_line_unchanged_p): Test if changes
10967 are all outside of a line of text.
10968 (redisplay_internal): Use it.
10969
109701998-06-30 Gerd Moellmann <gerd@gnu.org>
10971
10972 * xdisp.c (next_element_from_buffer): After skipping over
10973 invisible text, look for the `glyph' property.
10974 (set_iterator_stop_pos): Ignore check positions in front
10975 of an iterator's current position.
10976
10977 * xterm.c (show_mouse_face): Don't act on rows that don't exist
10978 anymore or which are marked as not having valid contents.
10979
10980 * xfaces.c (Finternal_set_lisp_face_attribute): Don't free
10981 realized faces if new attribute value is equal to old value.
10982
109831998-06-29 Gerd Moellmann <gerd@gnu.org>
10984
10985 * xfaces.c (Finternal_make_lisp_face): Increment
10986 lface_id_to_name_size when lface_id_to_name is reallocated.
10987
109881998-06-27 Gerd Moellmann <gerd@gnu.org>
10989
10990 * xdisp.c (set_iterator_stop_pos): Compute initial stop_pos
10991 as minimum of endpos and overlay_pos.
10992 (load_overlay_strings): Set next_overlay_pos of iterator to
10993 -1 if we don't have to check for more overlay strings.
10994
109951998-05-09 Gerd Moellmann <gerd@gnu.org>
10996
10997 * xdisp.c (set_iterator_to_next_visible_line_start): Don't
10998 do anything if iterator is at ZV because scan_buffer doesn't
10999 work otherwise.
11000
11001 * xterm.c (x_encode_char): Inline it.
11002 (x_get_char_font_and_encoding): Simplified.
11003 (x_per_char_metric): Inline it.
11004
11005 * xterm.c (x_draw_glyph_string_relief): Use clipping.
11006
11007 * xdisp.c (get_next_display_element): Check for end of relief
11008 face moved here from next_element_from_buffer.
11009
11010 * xterm.c (x_produce_image_glyph): Add relief thickness.
11011 (x_produce_stretch_glyph): Ditto.
11012
110131998-05-08 Gerd Moellmann <gerd@gnu.org>
11014
11015 * xdisp.c (fill_iterator_from_glyph_property): Handle glyph
11016 property value (space :width WIDTH :height HEIGHT :ascent ASCENT).
11017
11018 * xterm.c (x_produce_stretch_glyph): Produce a stretch glyph
11019 from a glyph property.
11020 (x_produce_glyphs): Use it.
11021
11022 * xdisp.c (set_iterator_to_next): Handle next_element_from_stretch.
11023
427ec082 11024 * xterm.c (x_produce_image_glyph): Add to current_x only if
26901792
DL
11025 in text area.
11026 (x_produce_glyphs): Ditto.
11027
427ec082 11028 * xdisp.c (display_line): Compute row height from glyphs in
26901792
DL
11029 marginal areas.
11030
427ec082 11031 * xterm.c (x_draw_image_glyph_string_background): Draw
26901792 11032 background of an image glyph string.
427ec082 11033 (x_draw_glyph_string_bg_rect): Draw a rectangular region of
26901792
DL
11034 the background of a glyph string.
11035 (x_draw_image_glyph_string_foreground): Draw the foreground of
11036 an image glyph string.
11037 (x_inverted_image_mask): Return the inverted mask of an image.
11038
11039 * xfns.c (x_draw_image): Removed.
11040
11041 * dispextern.h (struct image_type): Remove drawing function.
11042
11043 * xfaces.c (load_face_colors): Swap colors if face is inverse.
11044
11045 * xdisp.c (get_next_display_element): In marginal areas, translate
11046 newlines, tabs, etc. like normal control characters.
11047
11048 * xfaces.c (Fface_color_supported_p): Transpose parameters frame
11049 and color.
11050 (free_realized_faces): Set frame garbaged.
11051
11052 * xfaces.c (syms_of_xfaces): Add defsubr for
11053 internal-lisp-face-attribute-values.
11054
110551998-05-07 Gerd Moellmann <gerd@gnu.org>
11056
11057 * xterm.c (x_produce_image_glyph): Don't add glyph if area is
11058 full.
11059 (x_produce_image_glyph): Set IT->nglyphs to 1.
11060 (x_draw_image_glyph_string): Use inverted mask to draw background.
11061
11062 * dispextern.h (struct image_type): Additional clipping rect
11063 parameters for drawing functions.
11064
427ec082 11065 * xterm.c (x_get_glyph_string_clip_rect): Get clip rect for
26901792
DL
11066 a glyph string.
11067 (x_draw_image_glyph_string): Use it and pass the rect to the
11068 image drawing function.
11069
11070 * xdisp.c (fill_iterator_from_glyph_property): Use position of
11071 first character with `glyph' property as image position. Set
11072 iterator back to that position as long as the image hasn't been
11073 consumed with set_iterator_to_next.
11074 (set_cursor_from_row): Accept when glyph with given position is
11075 not found in the row. Set cursor x to end of line in that case,
11076 so that we can hscroll.
11077 (redisplay_internal): Correct computation of delta by which
11078 positions have changed in redisplay optimization for cursor
11079 row of selected window.
11080
11081 * xdisp.c (display_line): Remove start_pos.
427ec082 11082 (display_line): Fix bug preventing display optimization for
26901792
DL
11083 cursor line of selected window.
11084 (next_element_from_buffer): Avoid XSETBUFFER, use it->w->buffer
11085 instead.
11086
11087 * dispnew.c (update_text_area): Use GLYPH_EQUAL_P.
11088 (update_text_area): Take glyph pixel width into account
11089 when trying to find a resync point.
11090 (row_equal_p): Compare glyphs in all areas.
11091
110921998-05-06 Gerd Moellmann <gerd@gnu.org>
11093
11094 * xterm.c (x_produce_glyphs): Don't add glyph if area is full.
11095
11096 * dispextern.h (struct glyph_row): Use unsigned hash value.
11097
11098 * xdisp.c (display_line): Simplified and made faster by setting
11099 the cursor with set_cursor_from_row.
11100 (set_cursor_from_row): Handle rows of desired matrix.
11101
111021998-05-05 Gerd Moellmann <gerd@gnu.org>
11103
11104 * xdisp.c (set_cursor_from_row): Don't put cursor on glyphs
11105 with type != CHAR_GLYPH.
11106 (fill_iterator_from_glyph_property): Return void. Set
11107 method to next_element_from_image.
11108 (next_element_from_image): Dummy function for delivering a
11109 single image id.
11110 (set_iterator_to_next): Add method next_element_from_image.
11111 (redisplay_window): When recentering, and cursor vpos is -1
11112 after display, assume middle of window is in first line displayed
11113 in window, and display again.
427ec082 11114 (fill_iterator_from_glyph_property): Assign image glyph
26901792
DL
11115 the position of the first character having the glyph property.
11116
11117 * dispextern.h (IMAGE_ASCENT): Compute ascent of image.
11118 * xfns.c (x_draw_image): Use it.
11119 * xterm.c (x_produce_image_glyph): Use it.
11120
11121 * xterm.c (x_produce_image_glyph): Set iterator's pixel_width.
11122
11123 * Makefile.in: Extraneous #define of LIBXPM removed.
11124
11125 * xterm.c (x_produce_glyphs): Produce a STRETCH_GLYPH for tabs.
427ec082 11126 (x_fill_stretch_glyph_string): Fill a glyph string from a
26901792
DL
11127 stretch glyph.
11128 (x_compute_glyph_string_overhangs): Compute overhangs only
11129 for text glyph strings.
11130 (x_draw_stretch_glyph_string): Draw a stretch glyph string.
11131 (x_draw_glyph_string): Call it.
11132
11133 * dispextern.h (glyph_type): Add STRETCH_GLYPH.
11134 (struct glyph): Add sub-structure for stretchable glyphs.
11135 (GLYPH_EQUAL_P): Compare glyph type and u.val.
11136
11137 * xdisp.c (get_overlay_arrow_glyph_row): Put face code into
11138 #ifdef HAVE_FACES.
11139
11140 * xterm.c (x_produce_glyphs): Use ASCII face for spaces of a TAB.
11141
11142 * xdisp.c (fill_iterator_from_glyph_property): Renamed from
11143 setup_iterator_from_glyph_property. Don't do it for terminal
11144 frames.
11145
11146 * xterm.c (x_produce_image_glyph): Produce glyph for image
11147 that can't be loaded.
11148
11149 * xfns.c (lookup_image): If image can't be loaded, set its
11150 width and height so that we can draw a rectangle.
11151 (x_draw_image): Draw a rectangle for images that don't have
11152 a pixmap.
11153 (make_image): Set hash value.
11154 (image_spec_equal_p): Use image_spec_value.
11155
11156 * xterm.c (expose_frame): Don't try to redraw if basic faces
11157 haven't benn realized yet.
427ec082 11158 (x_draw_image_glyph_string): Fill background only if image
26901792
DL
11159 is not as tall as row.
11160
111611998-05-04 Gerd Moellmann <gerd@gnu.org>
11162
11163 * Makefile.in (LIBXPM): If not already defined, define to -lXpm.
11164 (LIBX)[HAVE_X11]: Add LIBXPM.
11165
11166 * xfns.c (xpm_image_p): Implementation of image type functions
11167 for XPM.
11168 (xpm_load): Ditto.
11169
11170 * dispextern.h (struct image): Add mask pixmap for XPM.
11171
11172 * xfns.c (x_draw_image): Handle images with masks.
11173
11174 * configure.in: --with-xpm added. Code detecting -lXpm added.
11175
11176 * config.in: Add HAVE_XPM.
11177
11178 * xfns.c (xbm_draw): Removed.
11179 (x_draw_image): Default implementation for drawing images.
11180 (xbm_keyword_index): Remove XBM_DEPTH.
11181 (xbm_format): Remove `:depth'.
11182 (xbm_image_spec_from_file): Removed to reduce consing.
427ec082 11183 (xbm_load_image_from_file): Added for the same reason.
26901792 11184
427ec082 11185 * xterm.c (x_fill_image_glyph_string): Don't set ybase of
26901792
DL
11186 glyph string.
11187 (x_draw_image_glyph_string): Pass ybase to image draw function.
11188
11189 * xfns.c (make_image): Set default baseline.
11190
11191 * xterm.c (x_produce_image_glyph): Compute ascent of image
11192 from its height and baseline percentage.
11193
11194 * xfns.c (xbm_keyword_index): Add XBM_BASELINE.
11195 (xbm_format): Add description for `:baseline'.
11196 (xbm_image_spec_from_file): Add keywords from original spec to
11197 result.
11198 (xbm_load): Set baseline of image.
11199 (xbm_image_p): Check range for baseline.
11200
11201 * dispextern.h (struct image): Add member baseline.
11202
11203 * xdisp.c (dump_glyph_matrix): Handle image glyphs.
11204
11205 * term.c (produce_glyphs): Change assertion to allow DISP_IMAGE.
11206
11207 * xdisp.c (get_next_display_element): Do character translations
11208 only if delivering characters.
11209
112101998-05-03 Gerd Moellmann <gerd@gnu.org>
11211
427ec082 11212 * dispextern.h (ITERATOR_AT_END_OF_LINE_P): Test for
26901792
DL
11213 DISP_CHARACTER.
11214
11215 * xterm.c (x_produce_image_glyph): Poduce image glyphs.
11216 (x_produce_glyphs): Call x_produce_glyphs for DISP_IMAGE.
11217
112181998-05-02 Gerd Moellmann <gerd@gnu.org>
11219
11220 * xfns.c (prepare_image_for_display): Set image timestamp.
11221 (clear_image_cache): Clear images if image's timestamp +
11222 Vimage_eviction_seconds is > now.
11223 (syms_of_xfns): New variables image-eviction-seconds, and
11224 image-types.
11225 (add_image_format): Add to image-types.
11226 (xbm_load): Support new image spec format.
11227 (x_alloc_image_color): Allocate a color for an image.
11228
11229 * dispextern.h (struct image): Add timestamp.
11230
11231 * xfns.c (xbm_image_p): Allow bool-vectors, vectors of strings and
11232 vectors of bool-vectors.
11233 (xbm_lisp_object_from_file): Build new format image spec.
11234
112351998-05-01 Gerd Moellmann <gerd@gnu.org>
11236
11237 * xfaces.c (init_frame_faces): Initialize image cache.
11238 (free_frame_faces): Free it.
11239
11240 * xterm.c (x_delete_display): Don't free image cache.
11241
11242 * emacs.c (main): Call init_xfns.
11243
112441998-04-30 Gerd Moellmann <gerd@gnu.org>
11245
11246 * alloc.c (mark_object): Mark objects in image cache.
11247
427ec082 11248 * xfns.c (x_set_internal_border_width): Correct call to
26901792
DL
11249 widget_store_internal_border_width.
11250
11251 * widget.c (widget_store_internal_border): Return void.
11252
11253 * xfns.c (x_destroy_bitmap): Use xfree instead of free. Return
11254 void.
11255 (init_x_parm_symbols): Return void.
11256 (x_report_frame_params): Ditto.
11257 (x_set_border_pixel): Ditto.
11258 (syms_of_xfns): Ditto.
11259 (x_destroy_all_bitmaps): Use xfree instead of free.
11260
11261 * xterm.h (FRAME_X_IMAGE_CACHE): Access the image cache of a frame.
11262
11263 * xterm.c (x_term_init): Initialize image_cache of display info.
11264 (x_delete_display): Free image cache.
11265
11266 * xterm.h (struct x_display_info): Add image_cache.
11267
11268 * xfns.c (make_image_cache): Allocate a new image cache.
11269 (free_image_cache): Free an image cache.
11270 (make_image): Allocate an image.
11271 (free_image): Free an image.
11272
11273 * dispextern.h (struct image): Structure describing an image.
11274 (struct image_cache): Structure describing an image cache.
11275
112761998-04-29 Gerd Moellmann <gerd@gnu.org>
11277
11278 * xdisp.c (check_iterator_glyph_property): Return int. Value is
11279 non-zero if iterator is filled with something to return.
11280 (next_element_from_buffer): Immediately return if
11281 setup_iterator_from_glyph_prop has filled iterator with pixmap.
11282 (next_element_from_string): Likewise.
11283
11284 * xfaces.c (load_pixmap): Allow to pass null for W_PTR and H_PTR.
11285
11286 * dispextern.h (struct glyph): Add pixmap_id.
11287 (display_element_type): Add DISP_PIXMAP.
11288
11289 * xmenu.c (popup_get_selection): Use xmalloc/xfree instead of
11290 malloc/free.
11291
11292 * xfaces.c (clear_font_table): Free fonts not used by fontsets.
11293 (clear_face_cache): Call it.
11294
11295 * xterm.c (x_query_font): Don't look at empty font table slots.
11296 (x_compute_min_glyph_bounds): Likewise.
11297 (x_term_init): Initialize font_table to null.
11298 (x_load_font): Change allocation of font_info structures so
11299 that it is possible to free fonts.
11300
427ec082 11301 * xfns.c (Fx_close_connection): Use xfree instead of free.
26901792
DL
11302 Only free fonts from filled font table entries.
11303
11304 * xfaces.c (best_matching_font): Support use of scalable fonts.
11305 (Fface_scalable_fonts_mode): Toggle use of scalable fonts.
11306
11307 * xterm.h (struct x_display_info): Remove screen_dpi, add resx
11308 and resy.
11309 * xterm.c (x_term_init): Compute resx and resy.
11310
11311 * xfaces.c (split_font_name): Don't reject scalable fonts.
11312
427ec082 11313 * xterm.c (x_list_fonts): Set code exclusing scalable fonts
26901792
DL
11314 in #if 0.
11315
11316 * xfaces.c (xlfd_point_size): Return 0 for fonts whose real
11317 point size cannot be determined.
11318
11319 * xterm.h (FRAME_SMALLEST_CHAR_WIDTH): Return smallest character
11320 width over all fonts on a frame.
11321 (FRAME_SMALLEST_FONT_HEIGHT): Likewise for font height.
11322 * dispnew.c (adjust_frame_glyphs_for_window_redisplay): Use these
11323 macros.
11324
11325 * xterm.c (x_font_min_bounds): Moved here from xfaces.c.
11326 (x_compute_min_char_bounds): Formerly min_char_bounds in xfaces.c.
11327 (x_load_font): Use x_compute_min_char_bounds.
11328
11329 * xterm.h (struct x_display_info): New members smallest_char_width
11330 and smallest_font_height.
11331
113321998-04-28 Gerd Moellmann <gerd@gnu.org>
11333
11334 * dispextern.h (PREPARE_FACE_FOR_DISPLAY): Call function with
11335 the same name if GC of face is zero.
11336
11337 * dispextern.h (struct face): Member non_ascii_gc removed.
11338
11339 * xterm.c (x_get_char_font_and_encoding): Return face's font
427ec082 11340 for characters < 0177 in default face. Prepare face for
26901792
DL
11341 display before returning it.
11342 (x_produce_glyphs): Use it->charset.
11343 (x_get_char_font_and_encoding): Simplified.
11344 (x_encode_char): Remove parameter `font'.
11345
11346 * xfaces.c (choose_face_font): If registry from charset symbol
11347 doesn't contain a `-', make it a pattern by appending "*-*".
11348
11349 * xdisp.c (check_iterator_glyph_property): Adjust limit for
11350 glyph_check_pos computation to character boundary.
11351
113521998-04-27 Gerd Moellmann <gerd@gnu.org>
11353
11354 * fontset.h (FONT_INFO_FROM_ID): Return null if ID is invalid.
11355
11356 * xfaces.c (ascii_face_of_lisp_face): Get the id of the realized
11357 ASCII face for a given Lisp face id.
11358
11359 * xdisp.c (set_iterator_stop_pos): Take glyph_check_pos into
11360 account.
427ec082 11361 (reseat_iterator): Set glyph_check_pos. Handle case where
26901792
DL
11362 new position is < original position.
11363 (check_iterator_glyph_property): Handle glyph property in strings.
11364 (next_element_from_string): Call above function.
11365 (next_element_from_display_vector): Handle faces in glyphs.
11366 (get_next_display_element): Set face_id of glyphs for
11367 control chars to zero.
11368
11369 * Makefile.in (term.o): Add dependency on dispextern.h.
11370
11371 * xdisp.c (syms_of_xdisp): Add symbol `glyph'.
11372 (display_line): Handle marginal areas.
11373 (move_iterator_in_display_line_to): Likewise.
11374
11375 * xfaces.c (Finternal_make_lisp_face): Assign Lisp faces an id.
11376
11377 * xfaces.c (face_at_buffer_position): Don't merge with nil
11378 text property.
11379 (face_at_string_position): Ditto.
11380
11381 * dispextern.h (struct display_iterator): Use a stack of saved
11382 values instead of saving check positions etc. individually.
11383
11384 * xdisp.c (set_iterator_to_next): If end of Lisp string reached,
11385 maybe pop the iterator's stack.
11386 (save_iterator_settings): Push a value on iterator's stack.
11387 (get_overlay_strings_at_iterator_position): Use it.
11388 (restore_iterator_settings): Pop the stack.
11389 (set_iterator_to_next_overlay_string): Use it.
11390
11391 * xfaces.c (try_font_list): Use alternative font families.
11392
113931998-04-26 Gerd Moellmann <gerd@gnu.org>
11394
11395 * xfaces.c (Fset_face_font_sort_order): Set the order in which
11396 font selection matches fonts.
11397 (Fface_font_sort_order): Return the font sort order.
11398 (best_matching_font): Find best matching font based on sort order.
11399 (cmp_font_names): Sort by given sort order.
11400
11401 * dispextern.h (struct display_iterator): New member faces_p.
11402 * xdisp.c (init_iterator): Initialize it->faces_p.
11403 (compute_face_at_iterator_string_position): Use it.
11404 (compute_face_at_iterator_position): Use it.
11405 (init_iterator): Use it.
11406 (display_mode_line): Ditto.
11407
11408 * xdisp.c (get_next_display_element): Put code choosing a face
11409 when the charset changes in #ifdef HAVE_FACES.
11410
427ec082 11411 * dispextern.h (FACE_FOR_CHARSET): Replacement for function
26901792
DL
11412 lookup_face_for_charset.
11413
11414 * xfaces.c (free_font_names): Renamed from free_split_font_names.
11415 (free_all_realized_faces): Renamed from remove_all_realized_faces.
11416
114171998-04-25 Gerd Moellmann <gerd@gnu.org>
11418
11419 * xfaces.c (best_matching_font): Return the name of the best
11420 matching font in an array of font_name structures.
11421 (choose_face_font): Use it.
11422 (choose_face_fontset_font): Use it.
11423 (find_best_weight_font): If final font found has same weight as
11424 the font we started with, return the original font because it is a
11425 better match for the resolution of the display.
11426 (find_best_slant_font): Likewise.
11427 (merge_face_vector_with_property): Check more invalid attribute
11428 values.
11429 (lface_suitable_for_charset_p): Replaced by a macro with the same
11430 name in upper-case.
11431
114321998-04-24 Gerd Moellmann <gerd@gnu.org>
11433
11434 * dispextern.h (struct face): Member
11435 fontset_chosen_for_realization_p removed.
11436
11437 * xfaces.c (cache_face): If face->fontset >= 0, add face to the
11438 end of the collision list, so that we find more specific faces
11439 first.
11440 (lookup_face_for_charset): Look up a new face if face->fontset >=
11441 0, and charset != CHARSET_COMPOSITION.
11442
11443 * xfaces.c (split_font_name): Return zero if point size of font
11444 couldn't be computed.
11445 (realize_default_face): Use ASCII font of a fontset to determine
11446 font-related attributes of the default face.
11447 (face_fontset): Return fontset id for face family.
11448 (font_list): Additional parameter font_pattern. If non-nil,
11449 return fonts matching that pattern.
11450
114511998-04-23 Gerd Moellmann <gerd@gnu.org>
11452
11453 * xfaces.c (choose_face_fontset): If new fontset cannot be
11454 constructed, or fontset name cannot be split, return the id of the
11455 standard fontset.
11456
11457 * xterm.c (XTframe_up_to_date): Check that frame is an X frame.
11458 When Emacs starts, it may be called for the initial frame which
11459 isn't an X frame.
11460
11461 * dispextern.h (struct face): New members foreground_defaulted_p,
11462 background_defaulted_p.
11463 (struct face): Members `mask' and `cache' removed.
11464
11465 * xfaces.c (load_color): Set them.
11466 (free_face_colors): Check them.
427ec082 11467 (xlfd_point_size): Return -1 if resolution or point size of
26901792
DL
11468 font unknown.
11469
11470 * xfaces.c (free_font): Removed.
11471 (load_face_font_or_fontset): Renamed from load_font.
11472 (load_face_font_or_fontset): Use message2 instead of signalling.
11473 (load_color): Likewise.
11474 (load_pixmap): Likewise.
11475
11476 * xterm.h (struct x_display_info): Add screen_dpi.
11477 * xterm.c (x_term_init): Initialize it.
11478 * xfaces.c (xlfd_point_size): Use it.
11479 (split_font_name): Compute numeric XLFD_RESY.
427ec082 11480 (cmp_font_names): Make fonts with an y-resolution more
26901792
DL
11481 similar to that of the frame appear first in the result.
11482
11483 * xfaces.c (cache_face): If fontset_chosen_for_realization_p
11484 is set for the face to cache, add it to the end of the collision
11485 list.
11486 (try_font_list): If fonts for given family and registry cannot
11487 be found, first try to keep the registry, and choose a different
11488 family.
11489 (choose_face_font): Allow nfonts == 0.
11490 (try_font_list): Give up if no font matches given registry.
11491
114921998-04-22 Gerd Moellmann <gerd@gnu.org>
11493
11494 * xterm.c (x_get_char_font_and_encoding): Get font_info from
11495 font info id of the face.
11496
11497 * xfaces.c (load_font): Set font_info_id.
11498 (realize_face): Ditto.
11499
11500 * dispextern.h (struct face): Change member font_info to
11501 font_info_id.
11502
11503 * fontset.h (FONT_INFO_ID): Build an ID from a font_info pointer.
11504 (FONT_INFO_FROM_ID): Get a font_info pointer from an ID.
11505
11506 * xdisp.c (extend_face_to_end_of_line): If IT's current charset
11507 isn't ASCII, get the ASCII face before adding a space.
11508 (append_space): Likewise.
11509 (insert_left_trunc_glyphs): Initialize truncate_it's charset
11510 to -1 so that it will compute the right face for the truncation
11511 glyphs.
11512
11513 * xfaces.c (realize_face): Set
11514 face->fontset_chosen_for_realization_p.
11515 (lookup_face_for_charset): If fontset wasn't specified originally
11516 and new charset != CHARSET_COMPOSITION, get a new face for that
11517 charset.
11518
11519 * dispextern.h (struct face): New member
11520 fontset_chosen_for_realization_p_specified_p. Set to 1 when
11521 realize_face has chosen a fontset to display composite characters
11522 for a Lisp face not specifying a fontset.
11523
11524 * xdisp.c (extend_face_to_end_of_line): Move tests for default
11525 face and line already filled here. Don't do anything if current
11526 face hasn't a relief or has a background equal to the frame
11527 background.
11528
11529 * xfaces.c (split_font_name): Additional parameter numeric_p.
11530 Don't compute numeric values if it is non-zero.
11531 (choose_face_fontset): Call split_font_name with numeric_p == 0.
427ec082 11532 (choose_face_fontset): Print a message if fontset contains a
26901792
DL
11533 font whose name cannot be split into fields.
11534
115351998-04-21 Gerd Moellmann <gerd@gnu.org>
11536
427ec082 11537 * xfaces.c (try_font_list): Try to load a list of fonts,
26901792
DL
11538 possibly using less restrictive patterns.
11539 (choose_face_font): Use it.
11540
11541 * xterm.c (x_get_char_font_and_encoding): For charset !=
11542 CHARSET_ASCII use font_info of face if face hasn't a fontset set.
11543
11544 * dispextern.h (struct face): New member font_info.
11545
11546 * xfaces.c (load_font): Use FS_LOAD_FONT to load fonts for faces
11547 specifying a fontset as well as those not having a fontset.
11548 (free_font): Make it empty.
11549 (realize_face): Use changed load_font.
11550
11551 * xterm.c (x_get_char_font_and_encoding): If face doesn't
11552 fit for charset, get the right one.
11553
11554 * xfaces.c (load_font): Take frame and name parameter, return
11555 font.
11556 (free_font): Likewise.
11557 (split_font_name): Compute numeric values for height, swidth etc.
11558 (cmp_font_names): Use them.
11559 (find_best_width_font): Ditto.
11560 (find_best_height_font): Ditto.
11561 (find_best_weight_font): Ditto.
11562 (find_best_slant_font): Ditto.
11563 (lface_hash): Add weight, slant, swidth and relief to hash value.
11564 (lface_equal_p): Make it faster.
11565 (lface_from_symbol): Use assq_no_quit.
11566 (Fnote_default_face_changed): Removed.
11567 (cmp_font_names): Use strcmp instead of xstricmp.
11568 (face_charset_registries): Removed.
11569
115701998-04-20 Gerd Moellmann <gerd@gnu.org>
11571
11572 * frame.h (CHECK_FRAME): Give this macro a statement form.
11573 (CHECK_LIVE_FRAME): Ditto.
11574
11575 * xfaces.c (find_best_width_font): Find the best matching font
11576 for a given width.
11577 (find_best_height_font): Likewise for height.
11578 (find_best_weight_font): Likewise for weight.
11579 (find_best_slant_font): Likewise for slant.
11580 (choose_face_font): Use them.
11581 (get_lface_attributes): Always return frame-local face attrs.
427ec082 11582 (Finternal_merge_in_global_face): Merge local face with
26901792
DL
11583 global face attributes.
11584
11585 * xfaces.c (check_lface_attrs, check_lface): Check consistency of
11586 Lisp face attributes.
11587
115881998-04-19 Gerd Moellmann <gerd@gnu.org>
11589
11590 * xfaces.c (Finternal_set_lisp_face_attribute): Add :bold
11591 and :italic for compatibility.
11592 (Finternal_set_lisp_face_attribute_from_resource): Handle
427ec082 11593 :bold and :italic. Handle boolean resource values for
26901792
DL
11594 :underline and :italic.
11595
11596 * xfns.c (display_x_get_resource): Make it externally visible.
11597
11598 * xfaces.c (lface_from_symbol): Take a frame as parameter.
11599 If that frame is non-null, return the frame-local face.
11600 (Finternal_make_lisp_face): Additional frame argument.
11601 (lface_attributes): Get face attributes from global and frame-local
11602 definitions.
11603 (Finternal_lisp_face_equal_p): Additional frame argument.
11604 (merge_lisp_face_vector_with_property): Ditto.
11605 (Frealize_basic_faces): Removed.
11606 (Finternal_get_lisp_face_attribute): Additional frame argument.
11607 (Finternal_lisp_face_p): Ditto.
11608 (load_color) [MSDOS]: Removed because it isn't clear how
11609 to do this for MS-DOS.
11610
11611 * xfaces.c (lface_from_symbol): Get global face definition
11612 from face-global-alist.
11613
11614 * xfaces.c (Finternal_set_lisp_face_attribute): Allow `t'
11615 as values for :underline and :inverse-video.
11616 (Finternal_set_lisp_face_attribute): Allow nil values.
11617
116181998-04-17 Gerd Moellmann <gerd@gnu.org>
11619
11620 * xfaces.c (Finternal_make_lisp_face): Return Lisp face vector.
11621
11622 * xfaces.c (syms_of_xfaces): Add Vall_faces.
11623 (Finternal_make_lisp_face): Add new face to Vall_faces.
11624
11625 * xdisp.c (echo_area_display): Remove code recomputing faces.
11626 (redisplay_internal): Ditto.
11627 (init_iterator): Do it here.
11628
11629 * xfaces.c (choose_face_font): Check that swidth doesn't change
11630 for subusequent attributes.
11631 (xlfd_point_size): Return int.
11632
11633 * xdisp.c (redisplay_internal, echo_area-display): If realized
11634 faces have been cleared, call recompute_basic_faces.
11635
11636 * xfaces.c (recompute_basic_faces): Free realized faces. Reset
11637 face_attributes_changed_p.
427ec082 11638 (remove_all_realized_faces): Remove all realized faces on
26901792
DL
11639 all frames.
11640 (Finternal_set_lisp_face_attribute): Call remove_all_realized_faces.
11641
11642 * xdisp.c (redisplay_internal): If face attributes have been
11643 changed since the last redisplay, recompute basic faces.
11644 (echo_area_display): Ditto.
11645
11646 * xfaces.c (clear_face_gcs): Renamed from clear_realized_face_cache.
11647
11648 * xfaces.c (min_char_bounds): If face cache not yet present,
11649 don't try to get font dimensions from faces.
11650
11651 * xterm.c (x_frame_mode_line_height): If face cache not present
11652 set, return default height.
11653
11654 * alloc.c (mark_face_cache): Check for null faces. Correct
11655 index bug.
11656
11657 * dispextern.h (struct face): Renamed from struct rface. Member
11658 underline renamed underline_p. Make it a bit-field.
11659
11660 * xfaces.c (init_frame_faces): Allocate face cache.
11661 (free_frame_faces): Free face cache.
11662 (recompute_basic_faces): Realize basic faces only if face cache is
11663 allocated, i.e. after init_frame_faces has been called.
11664
11665 * frame.c (make_frame): Initialze face cache with null.
11666
11667 * xfaces.c (same_size_fonts): Removed.
11668
427ec082 11669 * xterm.c (x_set_glyph_string_gc): Add post-condition
26901792
DL
11670 s->gc != 0.
11671 (x_set_mouse_face_gc): Ditto.
11672 (x_set_mode_line_face_gc): Ditto.
11673
427ec082
SS
11674 * xfaces.c (realize_default_face): Return int. Value is
11675 zero if frame params don't contain enough information to
26901792
DL
11676 realize the default face.
11677 (realize_basic_faces): Ditto.
11678 (init_frame_faces): Realize basic faces.
11679
11680 * xfns.c (x_set_font): First store real font name in frame
11681 parameters, then call recompute_basic_faces.
11682
11683 * xfaces.c (recompute_basic_faces): Call realize_basic_faces.
11684
116851998-04-16 Gerd Moellmann <gerd@gnu.org>
11686
11687 * xfaces.c (syms_of_xfaces): Correct calls to defsubr.
11688
11689 * xfns.c (Fx_face_fixed_p): Removed.
11690 (Fx_list_fonts): Moved to xfaces.c.
11691
11692 * xfaces.c (compute_face_at_buffer_pos): Renamed to
11693 face_at_buffer_position. Parameter charset removed; always
11694 compute face for CHARSET_ASCII.
11695 (face_at_string_position): Renamed from
11696 compute_face_at_string_pos. Parameter charset removed; always
11697 compute for CHARSET_ASCII.
427ec082 11698 (lookup_face_for_charset): Take frame parameter instead of
26901792
DL
11699 face_cache.
11700 (lookup_face): Ditto.
11701 (compute_char_face): Renamed from compute_glyph_face.
11702
11703 * xdisp.c (init_iterator): Initialize charset member.
11704 (reseat_iterator_to_string): Ditto.
11705 (get_charset_at_buffer_position): Determine charset at
11706 buffer position in current_buffer.
11707 (reseat_iterator): Call above function.
11708 (compute_face_at_iterator_position): Call
11709 compute_face_at_buffer_pos.
11710 (compute_face_at_iterator_string_position): Call
11711 compute_face_at_string_pos.
11712 (get_face_from_id): Removed.
11713 (get_face_from_cursor_pos): Call compute_face_at_buffer_pos.
11714 Call get_charset_at_buffer_position.
11715 (reseat_iterator): Determine face if charset at pos differs
11716 from iterator's charset.
11717 (reseat_iterator_to_glyph_pos): Removed.
11718
11719 * xfaces.c (compute_face_at_bufpos): Remove parameter charset.
11720 Determine charset from buffer position.
11721 (compute_string_char_face): Renamed to compute_face_at_string_pos.
11722 (compute_face_at_bufpos): Renamed to compute_face_at_buffer_pos.
11723
11724 * dispextern.h (struct display_iterator): Add member charset.
11725
117261998-04-15 Gerd Moellmann <gerd@gnu.org>
11727
11728 * xfaces.c (compute_char_face): Removed.
11729
11730 * xdisp.c (get_overlay_arrow_glyph_row): Use compute_glyph_face
11731 with new parameter list.
11732
11733 * xfaces.c (region_face): Removed.
11734 (allocate_face): Removed.
11735 (copy_face): Ditto.
11736 (face_eql): Removed.
11737 (intern_face): Removed.
11738 (clear_face_cache): Removed.
11739 (load_font): Ditto.
11740 (unload_font): Ditto.
11741 (load_color): Ditto.
11742 (unload_color): Ditto.
11743 (new_computed_face): Ditto.
11744 (intern_computed_face): Ditto.
11745 (ensure_face_ready): Ditto.
11746 (merge_faces): Ditto.
11747 (compute_base_face): Ditto.
11748 (merge_face_list): Ditto.
11749 (Fmake_face_internal): Removed.
11750 (Fset_face_attribute_internal): Ditto.
11751 (face_name_id_number): Removed.
11752 (Fframe_face_alist): Ditto.
11753 (Fset_frame_face_alist): Ditto.
11754 (Finternal_next_face_id): Ditto.
11755
11756 * xterm.h (struct x_output): Remove computed_faces, and
11757 param_faces. Remove macros accessing them.
11758
11759 * xfaces.c: Entirely new face implementation added.
11760
117611998-04-11 Gerd Moellmann <gerd@gnu.org>
11762
11763 * dispextern.h (struct glyph_pos): Member `bufpos' renamed
11764 `charpos'.
11765
117661998-04-10 Gerd Moellmann <gerd@gnu.org>
11767
11768 * xterm.c (x_scroll_bar_move): Clear only regions not covered by
11769 scroll bar window to reduce flickering. Clear entire height.
11770
11771 * xdisp.c (move_iterator_vertically_backward): Set iterator's
11772 current_x and hpos to zero after moving to previous line
11773 start.
11774
117751998-04-03 Gerd Moellmann <gerd@gnu.org>
11776
11777 * frame.h (FRAME_FACE_CACHE): Access to a frame's face cache.
11778
11779 * xfaces.c (xlfd_point_size): Compute relative point size of
11780 fonts from font and frame resolution.
11781 (sort_fonts): New function to sort fonts, temporarily setting
11782 font_frame to the frame in effect.
11783 (xlfd_point_size): Take additional frame parameter to be able
11784 to get at the display's resolution.
11785
11786 * xterm.c (x_setup_relief_colors): Use WHITE_PIX_DEFAULT and
11787 BLACK_PIX_DEFAULT.
11788 (x_setup_relief_color): Use FRAME_X_SCREEN instead of default
11789 screen of display.
11790
117911998-03-31 Gerd Moellmann <gerd@gnu.org>
11792
11793 * xfaces.c (choose_face_fontset): Instantiate fontsets.
11794
11795 * fontset.h: Add external declarations for Vfontset_alias_alist
11796 and Vglobal_fontset_alist.
11797
11798 * xfaces.c (merge_lisp_face_vector_with_property): Simplified.
11799 (realize_default_face): If frame parameters contain an artificial
11800 font name naming a fontset, set the family of the default face to
11801 the fontset name given by the registry.
11802
11803 * Makefile.in (alloc.o): Add dependency to dispextern.h.
11804
118051998-03-22 Gerd Moellmann <gerd@gnu.org>
11806
11807 * alloc.c (mark_object): Add function prototype. Add cast to
11808 Lisp_Object pointer in call to mark_object for symbol names
11809 because this otherwise gives a warning from gcc 2.8.1.
11810 (mark_face_cache): Mark Lisp objects in realized faces.
11811
118121998-03-19 Gerd Moellmann <gerd@gnu.org>
11813
11814 * frame.h (struct frame): Add member face_cache.
11815
11816 * alloc.c (mark_object): Mark face cache.
11817 (mark_face_cache): Mark Lisp faces in face cache of frame.
11818
11819 * frame.c (make_frame): Initialize face_cache.
11820 (Fdelete_frame): Free it.
11821
118221998-03-18 Gerd Moellmann <gerd@gnu.org>
11823
11824 * xfaces.c: Very first skeleton of functions for face realization,
11825 face merging, face cache etc.
11826
11827 * dispextern.h (struct rface): Realized faces. Will replace
11828 struct face when tested.
11829 (struct face_cache): Realized face caches.
11830
11831 * xdisp.c (init_iterator): Initialize area member of display
11832 iterator.
11833
118341998-03-17 Gerd Moellmann <gerd@gnu.org>
11835
11836 * xterm.c (x_append_glyph): Use it->area to store glyphs.
11837
11838 * dispextern.h (struct display_iterator): New member area.
11839
11840 * xterm.c (note_overwritten_text_cursor): Note when the text
11841 cursor of a window is overwritten.
11842
11843 * xdisp.c (set_cursor_from_row): If PT is not found in the
11844 row, display the cursor at the start of the row.
11845
11846 * dispnew.c (direct_output_forward_char): Call
11847 set_cursor_from_row.
11848
11849 * xdisp.c (setup_iterator_overlay_strings_from_glyph_pos): If
11850 position is not in an overlay string, set iterator's position and
11851 method explicitly so.
427ec082 11852 (set_cursor_from_row): Correct cursor position calculation.
26901792
DL
11853 Make it externally visible.
11854 (redisplay_window): Call set_cursor_from_row so that there is only
11855 one place where the cursor position is calculated from a current
11856 row.
11857
11858 * dispextern.h (struct display_iterator): New member
11859 overlay_strings_at_end_processed_p.
11860
11861 * xdisp.c (check_iterator): Perform sanity checks on
11862 display_iterators.
11863 (next_element_from_buffer): Check for overlay strings at ZV.
11864
118651998-03-16 Gerd Moellmann <gerd@gnu.org>
11866
11867 * buffer.c (init_buffer_once): Add left_margin_width and
11868 right_margin_width to buffer_local_flags.
11869
11870 * dispnew.c (margin_glyphs_to_reserve): Function computing
11871 number of glyphs to reserve for a marginal area.
11872 (adjust_glyph_matrix): Call it.
11873 (adjust_frame_glyphs_for_frame_redisplay): Return if frame
11874 is not alive.
11875
11876 * window.c (Fset_window_margins): Allow floats.
11877
11878 * buffer.c (syms_of_buffer): Add buffer-local variables
11879 left-margin-width and right-margin-width. Add defaults
11880 default-left-margin-width and default-right-margin-width.
11881
11882 * buffer.h (struct buffer): New members left_margin_width
11883 and right_margin_width.
11884
11885 * window.c (Fset_window_margins): Make window the last and
11886 optional argument.
11887
11888 * xterm.c (x_draw_glyphs): Compute x-positions for rows with
11889 flag no_marginal_areas_p differently.
11890 (x_clear_end_of_line): Ditto.
11891 (x_draw_glyph_string_relief): Compute width of relief differently
11892 for rows with flag no_marginal_areas_p.
11893
11894 * dispnew.c (update_window_line): Update marginal areas only
11895 for rows that don't have no_marginal_areas_p set.
11896
11897 * xdisp.c (display_mode_line): Set row's flag no_marginal_areas_p.
11898 (display_menu_bar): Ditto.
11899
11900 * dispextern.h (struct glyph_row): New member no_marginal_areas_p.
11901
11902 * dispnew.c (adjust_glyph_matrix): Compute glyph pointers for
11903 marginal areas in window-based redisplay.
11904
11905 * dispextern.h (struct glyph_matrix): New members
11906 left_margin_glyphs and right_margin_glyphs.
11907
119081998-03-15 Gerd Moellmann <gerd@gnu.org>
11909
11910 * minibuf.c (read_minibuf_unwind): Return Lisp_Object.
11911
11912 * charset.c (non_ascii_char_to_string): Use char type parameters
11913 because the function is used that way from outside. Use unsigned
11914 char internally.
11915
11916 * window.c (change_window_height): Return void.
11917 (make_dummy_parent): Return void.
11918 (init_window_once): Return void.
11919 (syms_of_window): Ditto.
11920 (keys_of_window): Ditto.
11921 (delete_window): Correct return with and without value.
11922
11923 * buffer.c (record_buffer): Return void.
11924
11925 * marker.c (unchain_marker): Return void.
11926
11927 * window.c (unshow_buffer): Return void.
11928 (replace_window): Ditto.
11929 (delete_window): Ditto.
11930
11931 * term.c (delete_glyphs_hook): Void return type.
11932 (ring_bell_hook): Ditto.
11933 (set_terminal_window_hook): Ditto.
11934
11935 * sysdep.c (init_sigio): Return void.
11936
11937 * xterm.c (x_set_window_size): Return void.
11938 (x_calc_absolute_position): Ditto.
11939 (x_set_offset): Ditto.
11940 (x_focus_on_frame): Ditto.
11941 (x_unfocus_frame): Ditto.
11942 (x_make_frame_visible): Ditto.
11943 (x_make_frame_invisible): Ditto.
11944 (x_iconify_frame): Ditto.
11945 (x_destroy_window): Ditto.
11946 (x_wm_set_window_state): Ditto.
11947 (x_wm_set_icon_pixmap): Ditto.
11948 (x_wm_set_icon_position): Ditto.
11949 (x_initialize): Ditto.
11950 (x_error_quitter): Ditto.
11951 (x_destroy_window): Use xfree instead of free.
11952
11953 * keyboard.c (clear_waiting_for_input): Return void.
11954
11955 * xterm.c (x_wm_set_size_hint): Return void.
11956 (x_raise_frame): Ditto.
11957 (refreshicon): Ditto.
11958 (x_error_catcher): Ditto.
11959 (x_clear_errors): Ditto.
11960
11961 * keyboard.c (record_asynch_buffer_change): Return void.
11962
11963