*** empty log message ***
[bpt/emacs.git] / src / ChangeLog
CommitLineData
64f3a166
GM
12000-06-22 Gerd Moellmann <gerd@gnu.org>
2
16cf31f7
GM
3 * xrdb.c (x_load_resources): Add default resource for scroll bar's
4 trough color and main window's background color.
5
6 * xfns.c (Fx_file_dialog) [HAVE_MOTIF_2_1]: Handle events
7 differently.
8
9 * xterm.h (Xt_app_con): External declaration.
10
11 * widget.c (EmacsFrameRealize): Fix typo.
12
486a103d
GM
13 * widget.c (EmacsFrameRealize): Remove SubstructureRedirectMask.
14
64f3a166
GM
15 * xdisp.c (handle_stop): Initialize it->add_overlay_start to zero.
16 (handle_invisible_prop): Record the start of invisible text in
17 it->add_overlay_start.
18 (struct overlay_entry): Add member `overlay'.
19 (handle_overlay_change): Simplify.
20 (next_overlay_string): After having processed overlay strings at the
21 end of the buffer, record that fact in
22 it->overlay_strings_at_end_processed_p.
23 (compare_overlay_entries): If before- and after-strings come
24 from the same overlay, let before-strings come first.
25 (RECORD_OVERLAY_STRING): Record the overlay that strings come from.
26 (load_overlay_strings): Take it->add_overlay_start into account
27 when adding overlay strings.
28
29 * dispextern.h (struct it): Add member add_overlay_start.
30
bb746ea6
DL
312000-06-22 Dave Love <fx@gnu.org>
32
33 * s/isc3-0.h (C_SWITCH_SYSTEM): Define _XOPEN_SOURCE=500.
34
35 * s/gnu-linux.h (C_SWITCH_SYSTEM): Don't define _XOPEN_SOURCE here.
36
a8f573f3
KH
372000-06-22 Kenichi Handa <handa@etl.go.jp>
38
39 * ccl.c (ccl_driver) <CCL_End>: Decrement stack_idx only when it
40 is greater than 0.
41
9f2bbc92
DL
422000-06-21 Dave Love <fx@gnu.org>
43
44 * Makefile.in (GETLOADAVG_OBJ): Removed -- LIBOBJS does it.
45
3ee5041c
SM
462000-06-21 Stefan Monnier <monnier@cs.yale.edu>
47
48 * syntax.c (back_comment): Simplify string-parity counting (with
49 the added benefit of handling multiple string-styles as long as
50 they are not intertwined).
51 Jump to the slow code as soon as a comment starter is found in
52 a "string_lossage" position. Fixes the case: " /* " /* " */.
53
4c343001
DL
542000-06-21 Dave Love <fx@gnu.org>
55
56 * Makefile.in: Use GETLOADAVG_LIBS.
57
58 * config.in: Add HAVE_FCNTL_H, _FILE_OFFSET_BITS,
59 _LARGEFILE_SOURCE, _LARGE_FILES, _XOPEN_SOURCE.
60
e6365855
SM
612000-06-20 Stefan Monnier <monnier@cs.yale.edu>
62
63 * syntax.c (describe_syntax): Recognize the `n'estable bit.
64 (Fforward_comment, scan_lists):
65 Check the comstyle of single-char comment-starters.
66 (scan_sexps_forward): Don't try to recognize `half comment-enders' if
67 we're just at the beginning of the comment (f.ex with (*) ... (*)).
d355bd8a
SM
68 Check the comstyle of single-char comment-starters.
69 Clarify control-flow around the Scomment case.
e6365855 70
5700d2cc
DL
712000-06-20 Dave Love <fx@gnu.org>
72
d355bd8a
SM
73 * fns.c (make_hash_table, maybe_resize_hash_table):
74 Cast arg of next_almost_prime.
5700d2cc
DL
75
76 * tparam.c [emacs]: Include lisp.h.
77
78 * termcap.c [emacs]: Test HAVE_FCNTL_H, not USG5. Include lisp.h
79 and unistd.h.
80
4a27bdfb
GM
812000-06-20 Gerd Moellmann <gerd@gnu.org>
82
a61d762c
GM
83 * keyboard.c (adjust_point_for_property): Check if display
84 property should be treated as intangible by looking at its
85 value.
86
87 * xdisp.c (single_display_prop_intangible_p)
88 (display_prop_intangible_p): New functions.
89
90 * dispextern.h (display_prop_intangible_p): Add prototype.
91
92 * xdisp.c (dump_glyph_row): Show type of glyph->object.
93
4a27bdfb
GM
94 * s/isc4-0.h (sigblock): Redefined to pass a pointer as second
95 argument to sigprocmask.
96
97 * s/sco5.h (sigblock): Redefined to pass a pointer as second
98 argument to sigprocmask.
99
100 * syssignal.h (sigblock, sigunblock) [USG5_4]: Set
101 sigprocmask_set, and pass a pointer to it to sigprocmask.
102
103 * sysdep.c (sigprocmask_set): New variable.
104
105 * fileio.c (make_temp_name): Don't use `%s' in string passed to
106 report_file_error.
107
427ec082
SS
1082000-06-20 Sam Steingold <sds@gnu.org>
109
110 * xrdb.c: Don't declare xmalloc, xrealloc.
111
8972fe79 1122000-06-20 Stefan Monnier <monnier@cs.yale.edu>
8972fe79
SM
113
114 * regex.c (re_match, re_match_2): Protect calls to alloca (0).
115 (re_comp): Cast gettext return value to avoid complaints when
116 !HAVE_LIBINTL.
117
074b6efe
DL
1182000-06-20 Dave Love <fx@gnu.org>
119
f85c008a
DL
120 * m/stride.h, m/mips.h: Don't define HAVE_GETWD,
121 HAVE_GETTIMEOFDAY.
122
5700d2cc 123 * m/ibmrt-aix.h: Don't declare HAVE_GETTIMEOFDAY, HAVE_VFORK.
f85c008a 124
d355bd8a 125 * m/ibmrs6000.h, m/ibmps2-aix.h, m/dpx2.h: Don't declare HAVE_GETWD.
f85c008a
DL
126
127 * m/alpha.h: Don't declare xmalloc, xrealloc.
128
0af4f205
DL
129 * s/ux4800.h: Don't declare GETTIMEOFDAY_ONE_ARGUMENT.
130
131 * s/usg5-4-2.h: Don't declare HAVE_GETWD, VFORK_RETURN_TYPE.
132
133 * s/umips.h: Don't declare HAVE_GETWD, HAVE_GETTIMEOFDAY.
134
135 * s/cxux.h, s/gnu-linux.h, s/iris3-6.h, s/irix3-3.h: Don't declare
136 HAVE_GETWD.
137
074b6efe
DL
138 * keyboard.h (poll_for_input_1): Declare.
139
140 * getloadavg.c: Don't define NLIST_STRUCT (handled by configure).
141
142 * alloc.c (xmalloc, xrealloc, xfree): Define using POINTER_TYPE.
143
144 * doprnt.c: Don't declare xmalloc, xrealloc.
145
146 * lisp.h (x_set_tool_bar_lines, free_frame_xic, compose_text)
147 (getenv, ctime, getwd): Removed.
148 (xmalloc, xrealloc, xfree): Declare using POINTER_TYPE.
149
150 * xterm.h: Remove duplicate prototypes. Declare free_frame_xic,
151 x_set_tool_bar_lines.
152
153 * config.in: Add HAVE_GETWD. Move some definitions above
154 machine/system includes.
155
68a5e97b
KH
1562000-06-20 Kenichi Handa <handa@etl.go.jp>
157
95417e1e
KH
158 * s/bsd386.h (HAVE_GETLOADAVG): Define it as 1.
159
68a5e97b
KH
160 * xfaces.c (font_list): Handle the case that REGISTRY doesn't
161 contain information about ENCODING.
162
163 * fontset.c (FONTSET_ASCII): Use the first element of char table
164 for an ASCII font, not defalt slot.
165 (fontset_ref_via_base): If FONTSET doesn't contain information for
166 C, try the default fontset.
167 (make_fontset): Don't copy the default fontset.
168 (fontset_font_pattern): Likewise.
169 (accumulate_font_info): If ELT is nil, use the corresponding
170 element in the default fontset.
171
3b4fa1b2
DL
1722000-06-19 Dave Love <fx@gnu.org>
173
943e731c
DL
174 * syntax.c (Fparse_partial_sexp): Doc fix.
175
176 * regex.h: Test PROTOTYPES as well as __STDC__.
177
3b4fa1b2
DL
178 * unexalpha.c: Include errno.h, string.h, unistd.h. Don't declare
179 errno, strerror. Put text after #endif in comment.
180
181 * xdisp.c (dump_glyph_matrix): Add `static' to declaration (for
182 pcc).
183
184 * xterm.c (x_frame_of_widget): Likewise.
185
cdf0357b
GM
1862000-06-19 Gerd Moellmann <gerd@gnu.org>
187
188 * abbrev.c (syms_of_abbrev): Set buffer_default's abbrev table
189 to Vfundamental_mode_abbrev_table.
190
191 * alloc.c (mark_object) [GC_CHECK_MARKED_OBJECTS]: Check that no
192 bogus objects are marked. This slows down GC by ~80 percent, but
193 it might be worth trying when debugging GC-related problems.
194 This feature requires conservative stack marking to be enabled.
195
196 * xterm.c (XTread_socket) <KeyPress>: In case XmbLookupString
197 returns XLookupChars, reset `modifiers' to zero.
198
998e9f8c
DL
1992000-06-19 Dave Love <fx@gnu.org>
200
201 * mktime.c: Unprotoized.
202
d1504184
GM
2032000-06-19 Richard Stallman <rms@caffeine.ai.mit.edu>
204
205 * data.c (set_internal): If variable is frame-local,
206 store the new value immediately into the frame parameter alist.
207
140c4ac6
KR
2082000-06-19 Ken Raeburn <raeburn@gnu.org>
209
14358466
KR
210 * xfns.c (jpeg_load): Fetch error-handling data first, then fill
211 in the custom handler pointer.
212
140c4ac6
KR
213 * keyboard.c (follow_key, read_key_sequence): Use XUINT on key
214 value, or checks for CHAR_META can fail when Lisp_Object is a
215 union type.
216 * keymap.c (get_keyelt): Likewise.
217
10d7bf84
KH
2182000-06-19 Kenichi Handa <handa@etl.go.jp>
219
220 * ccl.h (struct ccl_program): New member eol_type.
221 (struct ccl_spec): New member cr_carryover.
222
223 * ccl.c (CCL_WRITE_CHAR): Convert NL according to ccl->eol_type.
224 (setup_ccl_program): Initialize ccl->eol_type to CODING_EOL_LF.
225
226 * coding.c (setup_coding_system) <4>: Reset member `cr_carryover'.
227 (ccl_coding_driver): On encoding, initialize ccl->eol_type.
228 (decode_eol_post_ccl): New function.
229 (decode_coding): Don't detect EOL format here for CCL based coding
230 systems.
231 (decode_coding) <coding_type_ccl>: Handle carryovered CR. Call
232 decode_eol_post_ccl after running the CCL program.
233 (code_convert_region): Don't detect EOL format here for CCL based
234 coding systems.
235 (decode_coding_string): Likewise.
236
52e386c2
KR
2372000-06-18 Ken Raeburn <raeburn@gnu.org>
238
239 * charset.c (update_charset_table): Use XINT on "iso_final_char"
240 when treating it as an integer.
241
242 * coding.h (encode_coding_string): Declare.
243
244 * keyboard.c (read_key_sequence): Use XINT on "pos" when treating
245 it as an integer.
246
247 * keymap.c (Fwhere_is_internal): Rename argument "keymap" to
248 "xkeymap" to avoid shadowing the "enum map_type" value that needs
249 to be passed to get_local_map.
250
251 * sound.c (Fplay_sound): Don't call make_number on
252 Frun_hook_with_args count argument.
253
254 * xterm.c (x_send_scroll_bar_event): Fudge lisp object/integer
255 for lisp objects in X event structure data field, when lisp
256 objects are represented with unions.
257 (x_scroll_bar_to_input_event): Ditto.
258
b357b9d4
KR
2592000-06-16 Ken Raeburn <raeburn@gnu.org>
260
261 * xdisp.c (decode_mode_spec): In "no_value" case, do NUL
37d034d3
KR
262 termination of string. Fix sense of test whether
263 Vline_number_display_limit is an integer.
b357b9d4 264
a871441d
GM
2652000-06-16 Gerd Moellmann <gerd@gnu.org>
266
a9021acd
GM
267 * xfaces.c (syms_of_xfaces) [DEBUG_X_COLORS]: Defsubr dump_colors
268 only if HAVE_X_WINDOWS.
269
6344985d
GM
270 * keymap.c (describe_buffer_bindings): Add `\f\n' in front
271 of titles.
272
427ec082 273 * dispnew.c (update_frame_1): Handle case that cursor vpos is
a871441d
GM
274 out of bounds.
275
228b083e
EZ
2762000-06-15 Eli Zaretskii <eliz@is.elta.co.il>
277
278 * unexec.c (toplevel): Fix last change, so as not to deprive MSDOS
279 of its headers.
280
c25b53a2
KH
2812000-06-15 Kenichi Handa <handa@etl.go.jp>
282
283 * coding.c (decode_coding_emacs_mule): Always set src_base at the
284 start of the while loop.
285
a6981b11
GM
2862000-06-15 Gerd Moellmann <gerd@gnu.org>
287
e9924e52
GM
288 * atimer.c (alarm_signal_handler): Add forward declaration.
289
a6981b11
GM
290 * data.c (set_internal): Remove debug code.
291
25fa6deb
GM
2922000-06-14 Gerd Moellmann <gerd@gnu.org>
293
dce6b995
GM
294 * Makefile.in (bootstrap-temacs): Add `-I../src'.
295
9f817ea4
GM
296 * unexec.c (toplevel) [COFF]: Include coff.h.
297
298 * s/lynxos.h: New file.
299
300 * keymap.c (Fsingle_key_description): Enclose function key and
301 event symbol names in angle brackets.
302
8a4e3c0c
GM
303 * xdisp.c (setup_echo_area_for_printing): Call
304 message_log_maybe_newline if message_buf_print is not set.
305
306 * print.c (printchar, strout): Don't check message_buf_print
427ec082 307 before calling setup_echo_area_for_printing because that
8a4e3c0c
GM
308 function does something useful even when message_buf_print is
309 already set.
310
25fa6deb
GM
311 * xdisp.c (message_truncate_lines, Qmessage_truncate_lines): New
312 variables.
313 (ensure_echo_area_buffers): Initialize echo buffer's
314 truncate lines setting to nil.
315 (with_echo_area_buffer): Don't set the echo buffer's truncate
316 lines setting here.
8a4e3c0c 317 (set_message_1): Set it here instead, based on the value
25fa6deb
GM
318 of message_truncate_lines.
319 (resize_mini_window): Handle case that lines are truncated.
320 (syms_of_xdisp): Initialize Qmessage_truncate_lines. DEFVAR_BOOL
321 message-truncate-lines.
322
323 * keyboard.c (read_char): Bind message-truncate-lines to t
324 while displaying a help-echo.
325
326 * lisp.h (Qmessage_truncate_lines): External declaration.
327
163dcff3
GM
3282000-06-13 Gerd Moellmann <gerd@gnu.org>
329
1681ead6
GM
330 * xdisp.c (Vline_number_display_limit): Renamed from
331 line_number_display_limit.
332 (syms_of_xdisp): Use DEFVAR_LISP for line-number-display-limit.
333 Extend documentation string. Initialize
334 Vline_number_display_limit to nil meaning no limit.
335 (decode_mode_spec): Use Vline_number_display_limit with its new
336 meaning.
337
163dcff3
GM
338 * xterm.c (x_check_font) [GLYPH_DEBUG]: Add prototype.
339
3402000-06-13 Richard Stallman <rms@caffeine.ai.mit.edu>
341
342 * frame.c (Fmodify_frame_parameters): Doc fix.
427ec082 343
163dcff3
GM
344 * xfns.c (x_set_frame_parameters): Comment fix.
345
346 * frame.c (store_frame_param): Call swap_in_global_binding if the
347 variable's current binding was chosen based on this frame.
348
349 * data.c (swap_in_global_binding): New function.
350
a704139d
EZ
3512000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
352
353 * msdos.c (IT_write_glyphs): Don't use CODING_REQUIRE_ENCODING
354 macro, instead AND with CODING_REQUIRE_ENCODING_MASK.
355
9b6610db
EZ
3562000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
357
358 * msdos.h (EMACS_MSDOS_H): Renamed from MSDOS_H_.
359
c68833d2
JR
3602000-06-12 Jason Rumney <jasonr@gnu.org>
361
362 * w32bdf.h (EMACS_W32BDF_H): Renamed from __W32BDF_H__
363
364 * w32.h (EMACS_W32_H): Renamed from _NT_H_
365
366 * w32gui.h (EMACS_W32GUI_H): Renamed from __W32GUI_H__
367
368 * w32inevt.h (EMACS_W32INEVT_H): Renamed from __NTINEVT_H__
369
ed1056b3
GM
3702000-06-12 Gerd Moellmann <gerd@gnu.org>
371
372 * xfaces.c (Fdump_colors) [DEBUG_X_COLORS]: New function.
373 (syms_of_xfaces): Defsubr Sdump_colors.
374 (x_free_colors): Don't treat b&w specially on default visual.
375 (x_free_dpy_colors): New function.
376 (free_face_colors): Don't check visual class; it's done
377 in x_free_colors.
378
379 * xterm.c (x_frame_of_widget): New function.
380 (x_alloc_nearest_color_for_widget): Use it.
381 (x_copy_dpy_color): New function.
382 (x_destroy_window): Free various colors.
383
5050a2ef
KH
3842000-06-12 Kenichi Handa <handa@etl.go.jp>
385
386 * ccl.h (EMACS_CCL_H): Renamed from _CCL_H.
387
388 * charset.h (EMACS_CHARSET_H): Renamed from _CHARSET_H.
389
390 * coding.h (EMASC_CODING_H): Renamed from _CODING_H.
391
392 * composite.h (EMACS_COMPOSITE_H): Renamed from _COMPOSITE_H.
393
394 * fontset.h (EMACS_FONTSET_H): Renamed from _FONTSET_H.
395
fb1b041d
DL
3962000-06-11 Dave Love <fx@gnu.org>
397
398 * systime.h (EMACS_SYSTIME_H): Renamed from _SYSTIME_H.
399
ff96b5f4
EZ
4002000-06-11 Eli Zaretskii <eliz@is.elta.co.il>
401
402 * msdos.h: Don't use _MSDOS_H_ as a symbol, use MSDOS_H_ instead.
403
db8eeecd
GM
4042000-06-11 Gerd Moellmann <gerd@gnu.org>
405
ed1056b3 406 * xmenu.c (xmenu_show): Cast second parameter of lw_popup_menu
db8eeecd
GM
407 to `XEvent *'.
408
49b71c5f
KH
4092000-06-10 Kenichi Handa <handa@etl.go.jp>
410
c479bd55
KH
411 * regex.c (MAKE_CHAR) [!emacs]: Dummy macro for non-Emacs env.
412 (regex_compile): Fix the code for handling the case of single byte
413 char and multibyte char being mixed in a range within [...].
414
ff6a65c2
KH
415 * fileio.c (Finsert_file_contents): Be sure to setup src_multibyte
416 and dst_multibyte members of coding.
417
49b71c5f
KH
418 * charset.c (update_charset_table): Update the table
419 bytes_by_char_head.
420 (init_charset_once): Initialize elements of bytes_by_char_head to
421 1 except for leading codes for private charases.
422
423 * charset.h (CHARSET_8_BIT_GRAPHIC): Define as 0x80.
424 (UNIBYTE_STR_AS_MULTIBYTE_P): Fix for an invalid multibyte
425 sequence.
426
9e80b57d
KR
4272000-06-09 Ken Raeburn <raeburn@gnu.org>
428
429 * xterm.c (x_connection_closed): If dpyinfo is NULL, don't try to
430 access the data it doesn't point to.
431
f83fe4b4
GM
4322000-06-08 Gerd Moellmann <gerd@gnu.org>
433
434 * xterm.c (XTread_socket) <FocusIn>: Queue a FOCUS_IN_EVENT which
db8eeecd 435 will be translated to a switch-frame event when reading the
f83fe4b4
GM
436 event queue. This is necessary because Emacs otherwise won't
437 perform a switch-frame to a new frame until some other event, for
438 example a keystroke event, forces it to do so. This has various
439 effects, one visible being that the cursor of a frame created with
440 C-x 5 2 or switched to with a window manager key binding like
441 A-TAB stays hollow because selected_window isn't on the newly
442 focused frame until the switch-frame is performed.
443
444 * keyboard.c (kbd_buffer_get_event): Handle FOCUS_IN_EVENT by
445 generating a switch-frame event if necessary.
446
447 * termhooks.h (enum event_kind): Add FOCUS_IN_EVENT.
448
449 * xdisp.c (handle_fontified_prop): Don't GCPRO local var `pos';
450 it's an integer.
451
0890801b
KH
4522000-06-08 Kenichi Handa <handa@etl.go.jp>
453
454 * fontset.c (Fset_fontset_font): The arg CHARACTER may be a
455 charset.
456
173cbca8
GM
4572000-06-07 Gerd Moellmann <gerd@gnu.org>
458
3091c2a6
GM
459 * window.c (displayed_window_lines): Take empty lines at
460 the bottom of a window into account.
427ec082 461
f38952fe
GM
462 * window.c (displayed_window_lines): New function.
463 (Fmove_to_window_line): Use displayed_window_lines to determine
464 the number of lines to move, instead of using the window's height.
465
466 * lread.c (readevalloop): If READCHARFUN sets point to ZV, arrange
467 to stop reading, even if the form read sets point to a different
468 value when evaluated.
469
427ec082 470 * xdisp.c (display_line): Fix code deciding in which line to
173cbca8
GM
471 put the cursor.
472
6ba6c818
KH
4732000-06-07 Kenichi Handa <handa@etl.go.jp>
474
475 * fileio.c (e_write): Free composition data if stored in
476 coding->cmp_data.
477
5f1aea9a
GM
4782000-06-06 Gerd Moellmann <gerd@gnu.org>
479
666852af
GM
480 * xdisp.c (display_line): Set row's and iterator's
481 starts_in_middle_of_char_p and ends_in_middle_of_char_p flags.
482 Set cursor even if row ends in the middle of a character.
483 (dump_glyph_row): Print values of new flags.
484 (redisplay_window) <cursor movement in unchanged window>: When
485 point has been moved forward, and PT is at the end of the cursor
486 row, don't place the cursor in the next row if the cursor row ends
487 in the middle of a character or at ZV.
488
489 * dispextern.h (struct it): Add starts_in_middle_of_char_p.
490 (struct glyph_row): Add starts_in_middle_of_char_p and
491 ends_in_middle_of_char_p.
492 (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P): Test row's
493 ends_in_middle_of_char_p flag.
494 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Likewise.
495
d13f3e2e
GM
496 * term.c (append_glyph): Revert change of 2000-06-06.
497
498 * xdisp.c (display_line): Revert change of 2000-06-06. Treat
499 padding glyph not fitting on line as whole character not
500 fitting on line.
501
5f1aea9a
GM
502 * xterm.c (x_produce_glyphs): Don't xassert `it->descent > 0';
503 this isn't true for images with `:ascent 100'.
504
10cda9b0
KH
5052000-06-06 Kenichi Handa <handa@etl.go.jp>
506
ed00559d
KH
507 * buffer.c (Fset_buffer_multibyte): Don't make the current buffer
508 as modified if it is originally unmodified.
509
10cda9b0
KH
510 * term.c (encode_terminal_code): Change the way to check if
511 terminal coding does any conversion.
512 (append_glyph): Set glyph->pixel_width correctly.
513
514 * xdisp.c (display_line): While checking line continuation, pay
515 attention to a padding glyph.
516
1969fae2
GM
5172000-06-05 Gerd Moellmann <gerd@gnu.org>
518
519 * xdisp.c (redisplay_window): Always use set_buffer_internal_1.
520
162ccef4
DL
5212000-06-05 Dave Love <fx@gnu.org>
522
f19f32dd
DL
523 * xdisp.c: Include fontset.h.
524
525 * xfns.c (x_real_positions): Declare tmp_nchildren as unsigned.
526
527 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
528
529 * dispnew.c: Conditionally include term.h.
530
531 * coding.h: Declare code_convert_string_norecord.
532
533 * frame.h (struct frame): Use volatile unconditionally.
534
535 * buffer.h: Remove Vbefore_change_function, Vafter_change_function.
536
537 * xmenu.c (menu_item_selection): Declare volatile unconditionally.
538
539 * systime.h: Protect against multiple inclusion.
540 (timezone) [USG5_4]: Define as time_t.
541
542 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
543 (Foptimize_char_table, make_temp_name): Declare.
544
545 * Makefile.in (xdisp.o): Depend on fontset.h.
546
547 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
548
549 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
550 (Foptimize_char_table, make_temp_name): Declare.
551
427ec082 552 * s/irix4-0.h:
162ccef4
DL
553 * s/irix5-0.h:
554 * s/netbsd.h: Don't define autoconfiscated MATHERR.
555
2082fe81
DL
5562000-06-02 Dave Love <fx@gnu.org>
557
558 * lread.c (_XOPEN_SOURCE, __EXTENSIONS__): Don't define.
559
dcf671d2
GM
5602000-06-02 Gerd Moellmann <gerd@gnu.org>
561
562 * xfaces.c (realize_x_face): When copying BASE_FACE bitwise to the
1969fae2 563 result face, set flags in that face indicating that colors may not
dcf671d2
GM
564 be freed.
565
566 * xterm.c (x_set_mouse_face_gc): If first glyph isn't a character
567 glyph, use the ASCII NUL character to determine the face.
568
d42122a3
DL
5692000-06-02 Dave Love <fx@gnu.org>
570
571 * sysdep.c: Conditionally include stdlib.h, unistd.h.
572 (VFORK_RETURN_TYPE): Remove.
427ec082 573
d42122a3
DL
574 * config.in: Add NO_MATHERR.
575
dd432f16
DL
5762000-06-01 Dave Love <fx@gnu.org>
577
90aa4ea8
DL
578 * cmds.c (internal_self_insert): Don't check
579 Vbefore_change_function, Vafter_change_function.
580
581 * insdel.c (signal_before_change, signal_after_change): Likewise.
582
583 * buffer.c (Vbefore_change_function, Vafter_change_function):
584 Variables and their initializations deleted.
585
2330c9d4
DL
586 * callint.c (Fcall_interactively): Doc fix.
587
dd432f16
DL
588 * terminfo.c (ospeed) [HAVE_SPEED_T]: Don't declare extern.
589
bf9e8804
DL
5902000-05-31 Dave Love <fx@gnu.org>
591
592 * textprop.c: Revert last change -- duplicated.
593
3694b4ab
GM
5942000-05-31 Gerd Moellmann <gerd@gnu.org>
595
596 * dispnew.c (find_glyph_row_slice, swap_glyphs_in_rows): Put
597 in #if 0.
598
599 * lisp.h (eassert) [!ENABLE_CHECKING]: Define as `(void) 0'.
600
f14156cd
JR
6012000-05-31 Jason Rumney <jasonr@gnu.org>
602
8119aab8
JR
603 * search.c (Fre_search_forward, Fre_search_backward)
604 (Fposix_search_backward, Fposix_search_forward): Fix newlines in docs.
605
f14156cd
JR
606 * w32select.c (Fw32_set_clipboard_data): Change QNil to Qnil.
607
4aab9be3
JR
6082000-05-30 Jason Rumney <jasonr@gnu.org>
609
610 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: New macros.
611 [WINDOWSNT]: Add extern for Vw32_system_coding_system.
612
613 * dispextern.h (struct glyph) [WINDOWSNT]: Add w32_font_type
614 member.
615
616 * fileio.c (Fread_file_name) [HAVE_NTGUI]: Use file dialog.
617 (Fread_file_name) [HAVE_NTGUI, USE_MOTIF]: Do not attempt to
618 expand a nil default_filename.
619
620 * keyboard.c (make_lispy_event) [WINDOWS_NT]: Pass a window
621 pointer to glyph_to_pixel_coords, not a frame.
622
623 * makefile.nt (w32fns.obj, w32menu.obj): Add charset.h and
624 coding.h to dependencies.
625
626 * w32bdf.c (w32_load_bdf_font): Initialize font->double_byte_p.
627
628 * w32console.c (glyph_to_pixel_coords): Change first parameter to
629 window pointer to be consistent with w32term.c and xterm.c.
630
631 * w32fns.c: Format and doc changes to bring closer to xfns.c.
632 (VIETNAMESE_CHARSET): Define if not defined in system headers.
633 (Qline_spacing, Qcenter): New variables.
634 (Qw32_charset_*, w32_codepage_for_font): Moved from w32term.c.
635 (x_set_line_spacing): New function.
636 (x_set_frame_parameters): Use FRAME_NEW_WIDTH, FRAME_NEW_HEIGHT
637 macros.
638 (x_specified_cursor_type): New function.
639 (x_set_cursor_type): Use it.
640 (x_set_name, x_set_title): Use ENCODE_SYSTEM to encode titlebar
641 and icon strings.
642 (validate_x_resource_name, x_get_resource_string): Measure lengths
643 of external strings in bytes.
644 (w32_wnd_proc) [WM_MEASURE_ITEM]: Avoid calling
645 GetTextExtentPoint32 with NULL title.
646 (Fx_create_frame): Initialize Qline_spacing.
647 (w32_load_system_font): Initialize font->double_byte_p.
648 (x_to_w32_charset): Use Vw32_charset_info_alist.
649 (Image, busy cursor, tooltip functions): Merged changes from
650 xfns.c. Not yet functional on Windows.
651
652 * w32gui.h (W32FontStruct): Add double_byte_p member.
653
654 * w32inevt.c (NUM_TRANSLATED_MOUSE_BUTTONS): New constant.
655 (emacs_button_translation): Use it.
656 (do_mouse_event): Allow up to 32 mouse buttons by allowing any bit
657 in `mask' to be set.
658
659 * w32menu.c (single_submenu, w32_menu_show): Call ENCODE_SYSTEM on
660 menu strings.
661
662 * w32term.c: Format and doc changes to bring closer to xterm.c.
663 (w32_char_font_type): New enum.
664 (Qw32_charset_*, w32_codepage_for_font): Moved to w32fns.c.
665 (w32_per_char_metric): Use w32_char_font_type instead of unicode_p.
666 (w32_encode_char): New function.
667 (x_encode_char): Removed.
668 (x_get_glyph_and_face_encoding): Use w32_encode_char in place of
669 x_encode_char and w32_font_is_double_byte.
670 (x_produce_image_glyph): Use image_ascent.
671 (x_produce_glyphs): Use new version of w32_per_char_metric and
672 handle NULL return value. Allow extra line spacing.
673 (W32_TEXTOUT): Distinguish between Unicode and DBCS text.
674 (w32_get_glyph_overhangs): Remove unicode_p param. Use
675 w32_font_type member of glyph instead.
676 (x_draw_glyph_string): Draw underline and strike-out for BDF fonts.
677 (fast_find_position): Make sure not to consider rows not visible
678 in the window.
679 (w32_read_socket) [WM_MENUSELECT]: Cannot call
680 w32_menu_display_help with input blocked, as it can abort.
681 (x_display_and_set_cursor): Choose cursor depending
682 on buffer-local value of cursor_type.
683 (x_draw_bar_cursor): Add parameter WIDTH.
684
685 * w32term.h (CP_DEFAULT): Define.
686 (Fx_display_color_p, Fx_display_grayscale_p, image_ascent): Declare.
687
10fc3187
GM
6882000-05-30 Gerd Moellmann <gerd@gnu.org>
689
690 * search.c (Fre_search_forward, Fre_search_backward)
691 (Fposix_search_backward, Fposix_search_forward): Doc fix.
692
d0555360
KH
6932000-05-30 Kenichi Handa <handa@etl.go.jp>
694
695 * coding.c (detect_coding_iso2022): Fix code for checking
696 CODING_CATEGORY_MASK_ISO_8_2.
697
f1ad044f
SM
6982000-05-29 Stefan Monnier <monnier@cs.yale.edu>
699
700 * regex.c (PREFETCH_NOLIMIT): New function.
701 (re_match_2_internal): Use it and adjust the end_match_2 logic.
702
84ec3b4b
GM
7032000-05-29 Gerd Moellmann <gerd@gnu.org>
704
66254a13
GM
705 * syntax.c (find_defun_start): Move test for
706 open_paren_in_column_0_is_defun_start outside of the loop.
707
49e70dec
GM
708 * xdisp.c (redisplay_window): Really switch buffers when
709 displaying mode lines, and temporarily set selected_frame to the
710 frame of the window that's redisplayed.
711
84ec3b4b
GM
712 * xfaces.c (free_realized_faces): Block/unblock input.
713 (free_realized_multibyte_face): Ditto.
714
869a3a14
DL
7152000-05-29 Dave Love <fx@gnu.org>
716
717 * textprop.c (Qkeymap): New variable.
718 (syms_of_textprop): Intern it.
719
720 * keymap.c: Include intervals.h.
721 (Fkey_binding, Fwhere_is_internal): Deal with `keymap' property.
722
723 * Makefile.in (keymap.o): Depend on intervals.h.
724
725 * keyboard.c (menu_bar_items, tool_bar_items)
726 (Fexecute_extended_command): Deal with `keymap' property.
727 (read_key_sequence): Track map from `keymap' property as well as
728 `local_map'.
729
730 * intervals.c (get_local_map): Extra arg to allow looking for
731 `keymap' too.
732
733 * intervals.h (map_property): New enum.
734 (get_local_map): Extra arg using it.
735 (Qkeymap): Declare.
736
84ec3b4b 737 * lisp.h (get_local_map): Don't declare here.
869a3a14 738
89d0c844
KH
7392000-05-29 Kenichi Handa <handa@etl.go.jp>
740
741 * Makefile.in (callproc.o): Depend on composite.h.
742
743 * callproc.c: Include composite.h.
744 (Fcall_process): Handle composition correctly.
745
746 * coding.h (coding_allocate_composition_data): Extern it.
747 (coding_restore_composition): Likewise.
748
749 * coding.c (DECODE_COMPOSITION_START): If coding->cmp_data is not
750 yet allocated, finish decoding with result
751 CODING_FINISH_INSUFFICIENT_CMP.
752 (coding_allocate_composition_data): Make it non-static.
753 (coding_restore_composition): Likewise.
754
797a084a
EZ
7552000-05-29 Eli Zaretskii <eliz@is.elta.co.il>
756
757 * charset.c (syms_of_charset): Revert last change.
758
cf872af5
EZ
7592000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
760
761 * term.c (produce_glyphs): Treat characters from the eight-bit-*
762 charsets as unibyte, with 1-column screen width. Sent by Kenichi
763 Handa.
764
5b1ae051
EZ
7652000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
766
767 * charset.c (syms_of_charset): Set width of character sets
768 eight-bit-control and eight-bit-graphic to 1 column.
769
34ec9ebe
GM
7702000-05-26 Gerd Moellmann <gerd@gnu.org>
771
772 * config.in (HAVE_SPEED_T): New define.
773
774 * sysdep.c, terminfo.c (ospeed) [HAVE_SPEED_T]: Declare as
775 `extern speed_t'.
776
dd854dc2
DL
7772000-05-26 Dave Love <fx@gnu.org>
778
779 * coding.c (shrink_decoding_region): Initialize eol_conversion.
780
781 * data.c (Qsubrp, Qmany, Qunevalled): New variables.
782 (Fsubr_arity): New function.
783 (syms_of_data): Install them.
784
ba9f8f95
KH
7852000-05-26 Kenichi Handa <handa@etl.go.jp>
786
0f3e0672
KH
787 * charset.c (init_charset_once): Set the table bytes_by_char_head
788 correctly.
789
cebefb44
KH
790 * fontset.c (syms_of_fontset): Adjust the font name for ascii of
791 the default fontset to what Emacs uses by default.
0f3e0672
KH
792 (check_registry_encoding): This function deleted.
793 (Fset_fontset_font): Remove the adhoc condition for the default
794 fontset. Allow cons in FONTNAME.
cebefb44 795
0f3e0672
KH
796 * fns.c (map_char_table): Ignore char-table entries for
797 charsets eight-bit-control and eight-bit-graphic.
ba9f8f95 798
7a18af49
KR
7992000-05-25 Ken Raeburn <raeburn@gnu.org>
800
801 * emacs.c (main): Initialize keyboard syms before initializing
802 window code, so face names are available.
803
d2af47df
SM
8042000-05-25 Stefan Monnier <monnier@cs.yale.edu>
805
806 * regex.c (at_begline_loc_p): Also recognize the \\(?:^ case
807 of an anchor at the beginning of a shy-group.
808
fc6a6a4e
GM
8092000-05-25 Gerd Moellmann <gerd@gnu.org>
810
811 * xdisp.c (handle_invisible_prop): Don't try to skip over
812 invisible text if end of text is already reached.
813
005f0d35
DL
8142000-05-25 Dave Love <fx@gnu.org>
815
02513cdd
DL
816 * xdisp.c (Fdump_glyph_matrix): Declare the arg.
817
005f0d35
DL
818 * coding.c (encode_eol): Add null statement after label.
819
89f6ca4e
EZ
8202000-05-25 Eli Zaretskii <eliz@is.elta.co.il>
821
822 * w16select.c (Fw16_set_clipboard_data): Fix the change from
823 2000-05-20.
824
a4e1759e
KH
8252000-05-25 Kenichi Handa <handa@etl.go.jp>
826
827 * ccl.c (ccl_driver): Fix previous change.
828
eacfd7fe
KH
8292000-05-25 Kenichi Handa <handa@etl.go.jp>
830
46ab33a9
KH
831 * coding.c (run_pre_post_conversion_on_str): Set point to the
832 beginning of buffer before calling coding->post_read_conversion.
833 (decode_coding_string): Give correct args to
834 run_pre_post_conversion_on_str.
835 (encode_coding_string): Likewise.
836
eacfd7fe
KH
837 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>
838 <CCL_WriteMultibyteChar2>: Handle charsets eight-bit-control and
839 eight-bit-graphic correctly.
840
f8569325
DL
8412000-05-24 Kenichi HANDA <handa@etl.go.jp>
842
843 * fileio.c (Finsert_file_contents): Even if a file is not found,
844 execute codes for setting up coding system. Call
845 after-insert-file-functions unconditionally.
846
04545643
GM
8472000-05-24 Gerd Moellmann <gerd@gnu.org>
848
849 * callproc.c, emacs.c, sysdep.c (setpgrp): Don't define if USG and
850 BSD_PGRPS are not defined.
851
747d90ea
KH
8522000-05-24 Kenichi Handa <handa@etl.go.jp>
853
854 * charset.c (update_charset_table): Accept nil in LONG_NAME and
855 DESCRIPTION.
856 (syms_of_charset): Avoid building same strings.
857
716e3b88
GM
8582000-05-23 Gerd Moellmann <gerd@gnu.org>
859
860 * lread.c (Fload): Add a comment about the meaning of
861 Vuser_init_file being t.
862
863 * puresize.h (BASE_PURESIZE): Increase to 675000.
864
865 * s/gnu-linux.h (setpgrp): Don't define it here because this
866 prevents compilation on GNU/Linux systems with glib 2.2.
867
868 * callproc.c, emacs.c, sysdep.c (setpgrp) [HAVE_SETPGID]: Define
869 as setpgid.
427ec082 870
9aeb39fa
EZ
8712000-05-23 Eli Zaretskii <eliz@is.elta.co.il>
872
873 * Makefile.in (SOME_MACHINE_LISP): Add disp-table.elc,
874 dos-vars.elc, ccl.elc, and codepage.elc, all loaded by the MS-DOS
875 version.
876 (MSDOS_SUPPORT): Add dos-vars.elc, ccl.elc, and codepage.elc.
877
29ced61b
KH
8782000-05-23 Kenichi Handa <handa@etl.go.jp>
879
0574a2ed
KH
880 * syntax.c (skip_chars): Use FETCH_STRING_CHAR_ADVANCE
881 unconditionally.
882
3d80f24d
KH
883 * msdos.c (IT_write_glyphs): Set coding->src_multibyte to 1.
884
885 * term.c (encode_terminal_code): Set coding->src_multibyte
886 properly.
887
29ced61b
KH
888 * coding.c (encode_eol): Fix a bug of DOS style EOL encoding.
889
d7e00792
KH
8902000-05-22 Kenichi Handa <handa@etl.go.jp>
891
c9d80d38
KH
892 * keyboard.c (read_char): Allow character codes 128..255 to be
893 handled by input-method-function.
894
d7e00792
KH
895 * insdel.c (adjust_markers_for_replace): Fix previous change.
896 (adjust_after_replace): If PREV_TEXT is nil, call
897 adjust_markers_for_insert, not adjust_markers_for_replace.
898
087121cc 8992000-05-20 NIIBE Yutaka <gniibe@mri.co.jp>
427ec082 900
087121cc
GM
901 * s/gnu-linux.h (UNIX98_PTYS) [HAVE_GRANDPT]: Define.
902 (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_OPEN, PTY_TTY_NAME_SPRINTF)
903 [HAVE_GRANDPT]: Define.
904 (C_SWITCH_SYSTEM): Add -D_XOPEN_SOURCE.
905
906 * sysdep.c (setup_pty): Treat case that UNIX98_PTYS is defined
907 like SYSV_PTYS.
908
909 * config.in (HAVE_GRANDPT, HAVE_GETPT): New defines.
910
911 * process.c (toplevel) [UNIX98_PTYS]: Include stdlib.h.
912
c9671f81
KH
9132000-05-20 Kenichi Handa <handa@etl.go.jp>
914
915 The following changes are to handle 8-bit characters in a
916 multibyte buffer/string without facing with byte combining
917 problem. Two new charsets eight-bit-control (for 0x80..0x9F) and
918 eight-bit-graphic (for 0xA0..0xFF) are introduced.
919
920 * Makefile.in (fns.o): Depend on charset.h.
921
922 * alloc.c (Fmake_byte_code): If BYTECODE-STRING is multibyte,
923 convert it to unibyte.
924 (make_string): Use parse_str_as_multibyte, not chars_in_text.
925
926 * buffer.c (advance_to_char_boundary): Don't use DEC_POS to find a
927 apparent char boundary.
928 (Fset_buffer_multibyte): Convert 8-bit characters in the range
929 0x80..0x9F to/from multibyte form.
930
931 * bytecode.c (Fbyte_code): If arg BYTESTR is multibyte, convert it
932 to unibyte.
933
934 * callproc.c (Fcall_process): Always encode an argument string if
935 it is multibyte. Setup src_multibyte and dst_multibyte members of
936 process_coding properly.
ce75fd23 937
c9671f81
KH
938 * category.c (Fmodify_category_entry): Use SPLIT_CHAR, not
939 SPLIT_NON_ASCII_CHAR.
940
941 * ccl.c (CCL_WRITE_CHAR): Be sure to write single byte characters
942 as is.
943 (CCL_MAKE_CHAR): Use MAKE_CHAR, not MAKE_NON_ASCII_CHAR.
944
945 * charset.c (Qeight_bit_control, Qeight_bit_graphic): New
946 variables.
947 (SPLIT_CHARACTER_SEQ): This macro deleted.
948 (SPLIT_MULTIBYTE_SEQ): Assume that multibyte sequence at STR is
949 valid.
950 (CHAR_COMPONENTS_VALID_P): Handle new charsets; eight-bit-control
951 and eight-bit-graphic.
952 (char_to_string): Likewise. Signal an error for too large
953 character code.
954 (char_printable_p): Return 0 for 8-bit characters.
955 (update_charset_table): Update iso_charset_table only when a final
956 character is non-negative.
957 (find_charset_in_text): Renamed from find_charset_in_str.
958 Arguments and return value changed. Callers changed.
959 (Fdefine_charset): Args ISO-FINAL-CHAR and ISO-GRAPHIC-PLANE can
960 be -1 if CHARSET is used only internally.
961 (Fmake_char_internal): Handle new charsets; eight-bit-control and
962 eight-bit-graphic.
963 (Fcharset_after): Simplified.
964 (char_valid_p): Use SPLIT_CHAR, not SPLIT_NON_ASCII_CHAR.
965 (char_bytes): Return 2 for chars of the range 0xA0..0xFF.
966 (multibyte_chars_in_text): Simplified by assuming there's no
967 invalid multibyte sequence.
968 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte,
969 str_as_unibyte): New functions.
970 (Fstring): Simpified by assuming that byte combining never
971 happens.
972 (init_charset_once): Initialization for
973 LEADING_CODE_8_BIT_CONTROL.
974 (syms_of_charset): Intern and staticpro Qeight_bit_control and
975 Qeight_bit_graphic. Include them in Vcharset_list. Make charsets
976 eight-bit-control and eight-bit-graphic.
977
978 * charset.h (LEADING_CODE_8_BIT_CONTROL, CHARSET_8_BIT_CONTROL,
979 CHARSET_8_BIT_GRAPHIC): New macros.
980 (SINGLE_BYTE_CHAR_P): Make it faster by using casting.
981 (CHARSET_ISO_GRAPHIC_PLANE): Use XINT instead of XFASTINT.
982 (CHARSET_REVERSE_CHARSET): Likewise.
983 (CHARSET_VALID_P): Handle new charsets; eight-bit-control and
984 eight-bit-graphic.
985 (BYTES_BY_CHAR_HEAD, WIDTH_BY_CHAR_HEAD): Optimize for ASCII.
986 (CHAR_CHARSET, MAKE_CHAR, SPLIT_CHAR, CHAR_BYTES): Likewise.
987 (PARSE_MULTIBYTE_SEQ) [BYTE_COMBINING_DEBUG]: Abort if we
988 encounter an invalid multibyte sequence.
989 (PARSE_MULTIBYTE_SEQ) [not BYTE_COMBINING_DEBUG]: Assume multibyte
990 sequence is always valid.
991 (MAKE_NON_ASCII_CHAR, SPLIT_NON_ASCII_CHAR): These macros Deleted.
992 (UNIBYTE_STR_AS_MULTIBYTE_P, MULTIBYTE_STR_AS_UNIBYTE_P): New
993 macros.
994 (CHAR_STRING): For 8-bit characters, call char_to_string.
995 (INC_POS) [not BYTE_COMBINING_DEBUG]: Faster version. Assume
996 multibyte sequence is always valid.
997 (BUF_INC_POS) [not BYTE_COMBINING_DEBUG]: Likewise.
998 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte,
999 str_as_unibyte): Extern them.
1000 (BCOPY_SHORT): Fix a bug.
1001 (CHAR_LEN): This macro deleted. Callers changed to use
1002 CHAR_BYTES.
1003 (FETCH_STRING_CHAR_ADVANCE): Check multibyteness of STRING.
1004 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): New macro.
1005 (FETCH_CHAR_ADVANCE): Check multibyteness of the current buffer.
1006
bd4bde7f 1007 * coding.c (ONE_MORE_BYTE, TWO_MORE_BYTES): Set coding->result to
c9671f81
KH
1008 CODING_FINISH_INSUFFICIENT_SRC if there's not enough source.
1009 (ONE_MORE_CHAR, EMIT_CHAR, EMIT_ONE_BYTE, EMIT_TWO_BYTE,
1010 EMIT_BYTES): New macros.
1011 (THREE_MORE_BYTES, DECODE_CHARACTER_ASCII,
1012 DECODE_CHARACTER_DIMENSION1, DECODE_CHARACTER_DIMENSION2): These
1013 macros deleted.
1014 (CHECK_CODE_RANGE_A0_FF): This macro deleted.
1015 (detect_coding_emacs_mule): Use UNIBYTE_STR_AS_MULTIBYTE_P to
1016 check the validity of multibyte sequence.
1017 (decode_coding_emacs_mule): New function.
1018 (encode_coding_emacs_mule): New macro.
1019 (detect_coding_iso2022): Use ONE_MORE_BYTE to fetch a byte from
1020 the source.
1021 (DECODE_ISO_CHARACTER): Just return a character code.
1022 (DECODE_COMPOSITION_START): Set coding->result instead of result.
1023 (decode_coding_iso2022, decode_coding_sjis_big5, decode_eol): Use
1024 EMIT_CHAR to produced decoded characters. Exit the loop only by
1025 macros ONE_MORE_BYTE or EMIT_CHAR. Don't handle the case of last
1026 block here.
1027 (ENCODE_ISO_CHARACTER): Don't translate character here. Produce
1028 only position codes for an invalid character.
1029 (encode_designation_at_bol): Return new destination pointer. 5th
1030 arg DSTP is changed to DST.
1031 (encode_coding_iso2022, decode_coding_sjis_big5): Get a character
1032 from the source by ONE_MORE_CHAR. Don't handle the case of last
1033 block here.
1034 (DECODE_SJIS_BIG5_CHARACTER, ENCODE_SJIS_BIG5_CHARACTER): These
1035 macros deleted.
1036 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8,
1037 detect_coding_utf_16, detect_coding_ccl): Use ONE_MORE_BYTE and
1038 TWO_MORE_BYTES to fetch a byte from the source.
1039 (encode_eol): Pay attention to coding->src_multibyte.
1040 (detect_coding, detect_eol): Preserve members src_multibyte and
1041 dst_multibyte.
1042 (DECODING_BUFFER_MAG): Return 2 even for coding_type_raw_text.
1043 (encoding_buffer_size): Set magnification to 3 for all coding
1044 systems that require encoding.
1045 (ccl_coding_driver): For decoding, be sure that the result is
1046 valid multibyte sequence.
1047 (decode_coding): Initialize coding->errors and coding->result.
1048 For emacs-mule, call decode_coding_emacs_mule. For no-conversion
1049 and raw-text, always call decode_eol. Handle the case of last
1050 block here. If not coding->dst_multibyte, convert the resulting
1051 sequence to unibyte.
1052 (encode_coding): Initialize coding->errors and coding->result.
1053 For emacs-mule, call encode_coding_emacs_mule. For no-conversion
1054 and raw-text, always call encode_eol. Handle the case of last
1055 block here.
1056 (shrink_decoding_region, shrink_encoding_region): Detect cases
1057 that we can't skip data more rigidly.
1058 (code_convert_region): Setup src_multibyte and dst_multibyte
1059 members of coding. For decoding, if the buffer is multibyte,
1060 convert the source sequence to unibyte in advance. For encoding,
1061 if the buffer is multibyte, convert the resulting sequence to
1062 multibyte afterward.
1063 (run_pre_post_conversion_on_str): New function.
1064 (code_convert_string): Deleted and divided into the following two.
1065 (decode_coding_string, encode_coding_string): New functions.
1066 (code_convert_string1, code_convert_string_norecord): Call one of
1067 above.
1068 (Fdecode_sjis_char, Fdecode_big5_char): Use MAKE_CHAR instead of
1069 MAKE_NON_ASCII_CHAR.
1070 (Fset_terminal_coding_system_internal,
1071 Fset_safe_terminal_coding_system_internal): Setup src_multibyte
1072 and dst_multibyte members.
1073 (init_coding_once): Initialize iso_code_class with new enum
1074 ISO_control_0 and ISO_control_1.
1075
1076 * coding.h (enum iso_code_class_type): Member ISO_control_code is
1077 devided into ISO_control_0 and ISO_control_1.
1078 (struct coding_system): New members src_multibyte, dst_multibyte,
1079 errors, and result. Delete member fake_multibyte.
1080 (CODING_REQUIRE_DECODING): Return 1 if coding->dst_multibyte is
1081 nonzero.
1082 (CODING_REQUIRE_ENCODING): Return 1 if coding->src_multibyte is
1083 nonzero.
1084
1085 * data.c (Faref): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
1086 (Faset): Likewise.
1087
1088 * editfns.c (Fformat): Be sure to convert 8-bit characters to
1089 multibyte form.
1090 (Ftranspose_region) [BYTE_COMBINING_DEBUG]: Abort if byte
1091 combining occurs.
1092 (Ftranspose_region): Delete codes for handling byte combining.
1093
1094 * fileio.c (Finsert_file_contents): Setup src_multibyte and
1095 dst_multibyte members of coding. On handling REPLACE on unibyte
1096 buffer, convert the result of decode_coding to unibyte. On
1097 inserting into a mutibyte buffer, always call code_convert_region.
bd4bde7f 1098 (e_write): Setup coding->src_multibyte according to the
c9671f81
KH
1099 multibyteness of the source (buffer or string).
1100
1101 * fns.c (concat): Handle 8-bit characters correctly.
1102 (Fstring_as_unibyte): Be sure to make all 8-bit characters in
1103 unibyte in the result.
1104 (Fstring_as_multibyte): Be sure to make all 8-bit characters in
1105 valid multibyte form in the result.
1106 (map_char_table): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
1107 (Fbase64_encode_region, Fbase64_encode_string): If base64_encode_1
1108 return -1, signal an error.
1109 (base64_encode_1): New arg MULTIBYTE. Get each character by
1110 CHAR_STRING_AND_LENGTH if MULTIBYTE is nonzero. If a multibyte
1111 character is found, return -1.
1112 (Fbase64_decode_region): Delete codes for handling byte-combining.
1113 Treat each decoded byte as a unibyte character.
1114 (Fbase64_decode_string): Return unibyte string.
1115 (Fcompare_strings, concat, string_byte_to_char): Use
1116 FETCH_STRING_CHAR_ADVANCE_NO_CHECK instead off
1117 FETCH_STRING_CHAR_ADVANCE.
1118 (Fstring_lessp): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
1119 (mapcar1): If SEQ is string, always use FETCH_STRING_CHAR_ADVANCE.
1120
1121 * fontset.c (fontset_ref): Use SPLIT_CHAR instead of
1122 SPLIT_NON_ASCII_CHAR.
1123 (fontset_ref_via_base, fontset_set): Likewise
1124
1125 * insdel.c (adjust_markers_for_record_delete): Deleted.
1126 (adjust_markers_for_insert): Argument changed. Caller changed.
1127 (adjust_markers_for_replace): Likewise.
1128 (ADJUST_CHAR_POS, combine_bytes, byte_combining_error,
1129 CHECK_BYTE_COMBINING_FOR_INSERT): Deleted.
1130 (copy_text): Delete unused local varialbe c_save. For converting
1131 to multibyte, be sure to make all 8-bit characters in valid
1132 multibyte form.
1133 (count_size_as_multibyte): Handle 8-bit characters correctly.
1134 (insert_1_both, insert_from_string_1, insert_from_buffer_1,
1135 adjust_after_replace, replace_range, del_range_2)
1136 [BYTE_COMBINING_DEBUG]: Abort if byte combining occurs.
1137 (insert_1_both, insert_from_string_1, insert_from_buffer_1,
1138 adjust_after_replace, replace_range, del_range_2) Delete codes for
1139 handling byte combining.
1140 (adjust_before_replace): Deleted.
427ec082 1141
c9671f81
KH
1142 * keymap.c (Fsingle_key_description): Use SPLIT_CHAR instead of
1143 SPLIT_NON_ASCII_CHAR.
1144 (describe_vector): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
1145 (Faccessible_keymaps): Use FETCH_STRING_CHAR_ADVANCE
1146 unconditionally.
1147 (Fkey_description): Likewise.
1148
1149 * lread.c (read1): On reading multibyte string, be sure to make
1150 all 8-bit chararacters in valid multibyte form.
1151 (readchar): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
1152
1153 * print.c (print_object): Use FETCH_STRING_CHAR_ADVANCE
1154 unconditionally.
1155
1156 * process.c (Fstart_process): GCPRO current_dir before calling
1157 Ffind_operation_coding_system. Encode arguments here.
1158 (create_process): Don't encode arguments here. Setup
1159 src_multibyte and dst_multibyte members of struct coding.
1160 (read_process_output): Setup src_multibyte and dst_multibyte
1161 members of struct coding. If the output is to multibyte buffer,
1162 always decode the output of the process. Adjust the
1163 representation of 8-bit characters to the multibyteness of the
1164 output.
1165 (send_process): Setup coding->src_multibyte according to the
1166 multibyteness of the source.
1167
1168 * search.c (wordify): Use FETCH_STRING_CHAR_ADVANCE
1169 unconditionally.
1170 (Freplace_match): Use FETCH_STRING_CHAR_ADVANCE and
1171 FETCH_STRING_CHAR_ADVANCE_NO_CHECK appropriately.
1172
1173 * term.c (produce_special_glyphs): Use CHAR_BYTES instead of
1174 CHAR_LEN.
1175
1176 * w16select.c (Fw16_set_clipboard_data): Setup members
1177 src_multibyte and dst_multibyte of coding. Adjusted for the
1178 change for find_charset_in_str.
1179 (Fw16_get_clipboard_data): Likewise.
1180
1181 * w32fns.c (w32_to_x_font): Setup members src_multibyte and
1182 dst_multibyte of coding.
1183 (x_to_w32_font): Likewise.
1184
1185 * w32select.c (Fw32_set_clipboard_data): Setup members
1186 src_multibyte and dst_multibyte of coding. Adjusted for the
1187 change for find_charset_in_str.
1188 (Fw32_get_clipboard_data): Likewise.
1189
1190 * xdisp.c (get_next_display_element): Handle 8-bit characters
1191 correctly.
1192 (next_element_from_display_vector): Use CHAR_BYTES instead of
1193 CHAR_LEN.
1194 (disp_char_vector): Use SPLIT_CHAR instead of
1195 SPLIT_NON_ASCII_CHAR.
1196
1197 * xselect.c (selection_data_to_lisp_data): Setup members
1198 src_multibyte and dst_multibyte of coding. Adjusted for the
1199 change for find_charset_in_str.
1200 (lisp_data_to_selection_data): Likewise.
1201
5f64c9e0
GM
12022000-05-19 Gerd Moellmann <gerd@gnu.org>
1203
2b63d473
GM
1204 * buffer.c (Fbury_buffer): Avoid trouble from burying a killed
1205 buffer.
1206
5f64c9e0
GM
1207 * dispextern.h (Vimage_types): Add extern declaration.
1208
1209 * xdisp.c (Vimage_types): Moved here from xfns.c.
1210 (syms_of_xdisp): Move `image-types' variable here from xfns.c.
1211
1212 * xfns.c (Vimages_types): Moved to xdisp.c.
1213 (syms_of_xfns): Move `image-types' to xdisp.c.
1214
1215 * w32fns.c (Vimage_types): Removed.
1216 (syms_of_w32fns): Remove `image-types'.
1217
813086ea
KH
12182000-05-18 Kenichi Handa <handa@etl.go.jp>
1219
1220 * fns.c (map_char_table): Pay attention to character number of
1221 charset. Check the validity of charset at the first level. For
1222 leaf nodes that has nil value, call C_FUNCTION or FUNCTION with
1223 the default value.
1224
1225 * fontset.c: Include "buffer.h".
1226 (fs_load_font): If the face has fontset, record the face ID in
1227 that fontset.
1228 (Finternal_char_font): New function.
1229 (accumulate_font_info): New function.
1230 (Ffontset_info): Rewritten for the new fontset implementation.
1231 (syms_of_fontset): Register Vdefault_fontset in the first element
1232 of Vfontset_table. Include Vdefault_fontset in
1233 Vfontset_alias_alist. Declare `internal-char-font' as a Lisp
1234 function.
1235
bdaebbf0
DL
12362000-05-16 Dave Love <fx@gnu.org>
1237
1238 * m/iris5d.h: Deleted -- unused.
1239
cb613bb8
GM
12402000-05-16 Gerd Moellmann <gerd@gnu.org>
1241
b15f3b77
GM
1242 * xdisp.c, w32.c, print.c, msdos.c, emacs.c: Use the term
1243 `invalid' instead of `illegal'.
1244
1245 * indent.c (Fmove_to_column): When ending within a tab, insert
1246 spaces first so that markers at the end of the tab get adjusted.
1247
835c1b36
GM
1248 * frame.c (frames_bury_buffer): Don't add a buffer to the frame's
1249 buffer list that wasn't selected in that frame.
1250
cb613bb8
GM
1251 * filelock.c (get_boot_time): To obtain an 8 char file name, which
1252 is needed on mescaline, use a 2 char prefix, and call
1253 make_temp_name with second arg non-zero.
1254
1255 * fileio.c (make_temp_name): New function, extracted from
1256 Fmake_temp_name.
1257 (Fmake_temp_name): Use it.
1258
f685bea9
EZ
12592000-05-15 Eli Zaretskii <eliz@is.elta.co.il>
1260
1261 * window.c (coordinates_in_window): Subtract 1 when computing
1262 right_x.
1263
a1b8d58b
GM
12642000-05-15 Gerd Moellmann <gerd@gnu.org>
1265
1266 * Makefile.in (lisp): Add env.elc.
1267
1268 * callproc.c (Fgetenv_internal): Renamed from Fgetenv.
1269
a265079f
GM
12702000-05-12 Gerd Moellmann <gerd@gnu.org>
1271
1272 * search.c (Freplace_match): Handle case of `\N' in the
1273 replacement when there's no group N.
1274
da4496b6
GM
12752000-05-11 Gerd Moellmann <gerd@gnu.org>
1276
0ace421a
GM
1277 * xdisp.c (add_to_log): Don't pass the terminating NUL byte
1278 of the message to message_dolog.
1279
1172eb8d
GM
1280 * keyboard.c (read_char): Don't clear current message for help
1281 events; let the code handling help events handle this. Change
1282 code detecting help events that should be ignored.
1283
da4496b6
GM
1284 * xdisp.c (handle_single_display_prop): Don't try to set PT if
1285 we're interating over a string.
1286
0623e40f
DL
12872000-05-09 Dave Love <fx@gnu.org>
1288
1289 * fileio.c (Fwrite_region): If APPEND arg is an integer, seek to
1290 that offset before writing. Move gcpro region past call of
1291 Ffile_regular_p.
1292
bae2503b
DL
12932000-05-04 Dave Love <fx@gnu.org>
1294
1295 * buffer.c (syms_of_buffer) [auto-fill-function]: Doc fix.
1296
ec82fb2f
GM
12972000-05-04 Gerd Moellmann <gerd@gnu.org>
1298
1299 * insdel.c (insert_from_buffer_1): Adjust FROM position by number
1300 of inserted characters when BUF equals the current buffer, and PT
1301 is in front of or equal to FROM.
1302
cbf18892
GM
13032000-05-03 Gerd Moellmann <gerd@gnu.org>
1304
4ff40dd0
GM
1305 * xdisp.c (handle_single_display_prop): If display property value
1306 is invalid, or something not supported on the frame, restore
1307 iterator's position to what it was initially. Make sure to return
1308 0 for invalid and unsupported property values.
1309
cbf18892
GM
1310 * xterm.c (x_produce_glyphs) <composite chars>: Handle case
1311 that x_per_char_metric returns null.
1312
1b0672c3
GM
13132000-05-02 Gerd Moellmann <gerd@gnu.org>
1314
576da55d
GM
1315 * xterm.h (struct face): Add forward declaration.
1316 (struct image): Ditto.
1317 (image_ascent): Add prototype.
1318
1319 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
1320 (x_draw_image_relief, x_draw_image_foreground_1): Call function
1321 image_ascent instead of using IMAGE_ASCENT.
1322
1323 * dispextern.h (DEFAULT_IMAGE_HEIGHT): New macro.
1324 (IMAGE_ASCENT): Removed.
1325
1326 * xfns.c (Qcenter): New variable.
1327 (enum image_value_type): Add IMAGE_ASCENT_VALUE.
1328 (parse_image_spec): Handle IMAGE_ASCENT_VALUE.
1329 (image_ascent): New function.
1330 (lookup_image): Recognize `:ascent center'.
1331 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
1332 (tiff_format, gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
1333 (xbm_load): Don't set image's ascent here.
1334 (xbm_image_p, xpm_image_p, pbm_image_p, png_image_p)
1335 (jpeg_image_p, tiff_image_p, gif_image_p, gs_image_p): Don't
1336 check ascent values here.
1337 (Fimagep, Flookup_image [GLYPH_DEBUG]: Removed.
1338 (syms_of_xfns) [GLYPH_DEBUG]: Don't defsubr removed functions.
1339 (syms_of_xfns): Initialize Qcenter.
1340
1b0672c3
GM
1341 * eval.c (Fsignal): If lisp_eval_depth or spepdl_size are near
1342 to the limits, increase the limits.
1343
0d7811ed
KH
13442000-05-01 Kenichi Handa <handa@etl.go.jp>
1345
1346 * fontset.c (fs_load_font): By default, use 0x00..0x7f for ASCII.
1347 Check Vfont_encoding_alist against the full name of the opened
1348 font.
1349
a943a5ca
GM
13502000-04-28 Gerd Moellmann <gerd@gnu.org>
1351
1352 * xdisp.c (make_cursor_line_fully_visible): Handle case of rows
1353 taller than the window.
1354
5dba1e29
KH
13552000-04-28 Kenichi Handa <handa@etl.go.jp>
1356
1357 * xfaces.c (realize_x_face): Fix the argument of the second
1358 xassert. BASE_FACE may not be a face for ASCII.
1359
353964e3
GM
13602000-04-27 Gerd Moellmann <gerd@gnu.org>
1361
c76e04a8
GM
1362 * print.c (print_object): Treat print-length < 0 as nil.
1363
1364 * Makefile.in (termcapobj): Don't use TERMCAP_OBJ.
1365
1366 * s/freebsd.h (TERMCAP_OBJ): Removed.
1367 (LIBS_TERMCAP): Don't define for __FreeBSD_version >= 400000.
1368
1369 * lread.c (read1): Don't treat period followed by certain
1370 characters as symbol start.
1371
1372 * xfns.c (slurp_file): New function.
1373 (xbm_image_p): Handle case of in-memory XBM files.
1374 (xbm_scan): Rewritten to work on memory buffers instead of files.
1375 (xbm_read_bitmap_data): Renamed from xbm_read_bitmap_file_data.
1376 Work on memory buffers instead of files. If DATA is null test
1377 if buffer looks like an in-memory XBM file.
1378 (xbm_load_image): Renamed from xbm_load_image_file. Work on
1379 memory buffers instead of files.
1380 (xbm_file_p): New function.
1381 (xbm_load): Accept :data DATA where DATA is an in-memory XBM file.
1382
353964e3
GM
1383 * lread.c (end_of_file_error): New function.
1384 (read1): Call it instead of signaling `end-of-file' directly.
1385
427ec082 1386 * print.c (print_error_message): Print data of `end-of-file'
353964e3
GM
1387 with Fprinc instead of Fprin1.
1388
24d744ac
KR
13892000-04-26 Ken Raeburn <raeburn@gnu.org>
1390
1391 * window.c (freeze_window_start): Check that minibuffer scroll
1392 window isn't nil before extracting the window structure pointer
1393 from it.
1394
1395 * undo.c (record_delete): If we hit the end of the undo list, stop
1396 picking elements apart.
1397
7464346d
GM
13982000-04-26 Gerd Moellmann <gerd@gnu.org>
1399
1400 * xdisp.c (display_line): If lines are continued, restore
1401 iterator's ascent/descent information to the values before the
1402 first glyph not fitting on the line.
1403
612839b6
GM
14042000-04-25 Gerd Moellmann <gerd@gnu.org>
1405
1406 * xdisp.c (try_window_id) <all changes above window start>: Adjust
1407 positions in glyph matrix. Don't compute new window end
1408 positions.
1409
1410 * dispnew.c (increment_matrix_positions): Renamed from
1411 increment_glyph_matrix_buffer_positions.
1412 (increment_row_positions): Renamed from
1413 increment_glyph_row_buffer_positions.
1414
1415 * dispextern.h: Change names of renamed functions from dispnew.c
1416 in prototypes.
1417
cc181e95
GM
14182000-04-24 Gerd Moellmann <gerd@gnu.org>
1419
abfcc168
GM
1420 * fileio.c (Fdo_auto_save): Create directories for auto-save
1421 list file if necessary.
1422
cc181e95
GM
1423 * xdisp.c (init_iterator): Set iterator's extra_line_spacing
1424 from buffer or frame.
1425 (automatic_hscrolling_p): New variable.
1426 (hscroll_windows): Scroll windows horizontally only if automatic
1427 hscrolling is allowed.
1428 (syms_of_xdisp): New variable `automatic-hscrolling'.
1429
1430 * frame.h (struct frame): Add member extra_line_spacing.
1431
1432 * xfns.c (x_set_line_spacing): New function.
1433 (Fx_create_frame): Set line spacing from resources.
1434 (Qline_spacing): New variable.
1435 (syms_of_xfns): Initialize Qline_spacing.
427ec082 1436
cc181e95
GM
1437 * emacs.c (USAGE2): Add `--line-spacing' and `-lsp'.
1438
1439 * buffer.c (init_buffer_once): Handle extra_line_spacing.
1440 (syms_of_buffer): Add `default-line-spacing' and `line-spacing'.
abfcc168 1441 (reset_buffer): Don't initialize extra2 and extra3. Initialize
cc181e95
GM
1442 extra_line_spacing from default value.
1443 (init_buffer_once): Initialize default value of extra_line_spacing.
1444
1445 * buffer.h (struct buffer): Add extra_line_spacing, remove extra2
1446 and extra3.
1447
1448 * xterm.c (x_produce_glyphs): Remove reference to struct it's
1449 prompt_width. Add extra line spacing.
1450
1451 * term.c (produce_glyphs): Remove reference to struct it's
1452 prompt_width.
1453
1454 * dispextern.h (struct it): Remove member prompt_width, add
1455 extra_line_spacing.
1456
58827478
GM
14572000-04-22 Gerd Moellmann <gerd@gnu.org>
1458
1459 * dispnew.c (update_frame_line): When writing a whole line, make
1460 sure cursor is in the right row afterwards, otherwise a use of
1461 capability `ch' in cmgoto might leave the cursor in the row below.
1462
25a87f42
GM
14632000-04-21 Gerd Moellmann <gerd@gnu.org>
1464
1465 * lisp.h (struct Lisp_Buffer_Cons): Remove.
1466
1467 * keyboard.c (timer_check): Fix typo in comment.
1468
54edf5c2
KH
14692000-04-21 Kenichi Handa <handa@etl.go.jp>
1470
1471 * fontset.c (Fset_fontset_font): Fix docstring. Local variable
1472 name change: ch -> character.
1473
3a64eef5
GM
14742000-04-20 Gerd Moellmann <gerd@gnu.org>
1475
1476 * keyboard.c (echo_message_buffer): New variable.
1477 (echo_now): Set echo_message_buffer to the echo area buffer used
1478 to display the echo.
1479 (cancel_echoing): Reset echo_message_buffer to nil.
1480 (read_char): Code rewritten that handles canceling an echo or
1481 echoing a dash, respectively.
1482
1483 * fileio.c (Ffile_writable_p) [WINDOWSNT]: Return nil if parent
1484 directory doesn't exist.
1485
6142fdcb
DL
14862000-04-19 Dave Love <fx@gnu.org>
1487
1488 * fns.c (syms_of_fns): Defsubr mapc.
a9cacab7
DL
1489 (concat): Don't allow numeric args.
1490 (Fconcat): Doc change.
6142fdcb 1491
ac6b5352
SM
14922000-04-19 Stefan Monnier <monnier@cs.yale.edu>
1493
1494 * regex.c (re_match_2_internal): Don't shorten the strings anymore,
1495 instead define end_match(1|2) more carefully.
1496 Use GET_CHAR_BEFORE_2 for `begline'.
1497
cb9215e4
GM
14982000-04-19 Gerd Moellmann <gerd@gnu.org>
1499
5e3dac3f
GM
1500 * frame.h (SELECTED_FRAME): Change definition to compile cleanly
1501 on 64-bit systems where NULL is defined as `0'.
1502
1503 * xdisp.c (with_echo_area_buffer): Add more `int' parameters for
1504 the `variable argument list' to make it work on Alpha.
1505
cb9215e4
GM
1506 * m/alpha.h (_LP64) [!_LP64]: Define.
1507 (ORDINARY_LINK): Define for NetBSD.
1508
1509 * m/macppc.h (ORDINARY_LINK): Define for NetBSD.
427ec082 1510
f532dca0
DL
15112000-04-19 Dave Love <fx@gnu.org>
1512
c750667e
DL
1513 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Revert 2000-04-14
1514 change.
1515
1516 * Makefile.in (LIBS): Don't use.
1517 (GETLOADAVG_OBJ): Define again.
1518 (otherobj): Add GETLOADAVG_OBJ.
1519
f532dca0
DL
1520 * buffer.c (Fmake_indirect_buffer): Escape newline in doc.
1521
1c7e22fd
GM
15222000-04-18 Gerd Moellmann <gerd@gnu.org>
1523
f6d3257b
GM
1524 * lread.c (read_filtered_event): Cancel and start busy cursor.
1525
427ec082 1526 * xterm.c (x_produce_glyphs) <ASCII chars>: Take into account
1c7e22fd
GM
1527 that the per-character metrics may be null.
1528
e10f64e7
GM
15292000-04-17 Gerd Moellmann <gerd@gnu.org>
1530
0daee095
GM
1531 * buffer.c (clone_per_buffer_values): New function.
1532 (Fmake_indirect_buffer): Add optional argument CLONE. Call
1533 clone_per_buffer_values if CLONE is not nil.
1534
e10f64e7
GM
1535 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
1536
38687d43
DL
15372000-04-16 Dave Love <fx@gnu.org>
1538
1539 * Makefile.in: Remove obsolete localcpp stuff.
1540 (GETLOADAVG_OBJ): Don't define.
1541 (obj): Move LIBOBJS...
1542 (otherobj): ... to here.
1543 (MSDOS_OBJ): Convert to make variable -- preprocessing zapped
1544 whitespace-only lines after the continuation (Irix).
1545
c21c7262
GM
15462000-04-14 Gerd Moellmann <gerd@gnu.org>
1547
1548 * xfns.c (xpm_load) [DEBUG_X_COLORS]: Register colors.
1549
1550 * s/freebsd.h (LD_SWITCH_SYSTEM): Add `-L /usr/local/lib'.
1551
314767c0
DL
15522000-04-14 Dave Love <fx@gnu.org>
1553
1554 * s/aix3-1.h, s/bsd4-2.h, s/bsd4-3.h, s/cxux.h, s/dgux.h, s/gnu.h:
1555 * s/hpux.h, s/iris3-5.h, s/iris3-6.h, s/irix3-3.h, s/rtu.h:
1556 * s/unipl5-0.h, s/unipl5-2.h, s/usg5-0.h, s/usg5-2-2.h, s/usg5-2.h:
1557 * s/usg5-3.h, s/xenix.h, s/umax.h: Don't define autoconfiscated
1558 NLIST_STRUCT.
1559
1560 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Don't define
1561 autoconfiscated HAVE_GETLOADAVG.
1562
1563 * s/nextstep.h, s/sco4.h, s/sco5.h: Don't define autoconfiscated
1564 BROKEN_MKTIME.
1565
a2522dca
GM
15662000-04-14 Gerd Moellmann <gerd@gnu.org>
1567
1568 * filelock.c (MAKE_LOCK_NAME): Allocate 2 more bytes.
1569 (fill_in_lock_file_name): Avoid existing files that aren't
1570 links.
1571
33744b5d
DL
15722000-04-14 Dave Love <fx@gnu.org>
1573
c21c7262 1574 * Makefile.in (LIBS, LIBOBJS): New variable.
33744b5d
DL
1575 (INTERVAL_SRC): Convert to make variable.
1576 (INTERVAL_OBJ, MKTIME_OBJ, FLOAT_SUPPORT, FACE_SUPPORT)
1577 (HAVE_X_WINDOWS, OBJECTS_SYSTEM): Remove.
1578 (obj): Substitute INTERVAL_OBJ, add MKTIME_OBJ, GETLOADAVG_OBJ and
1579 add LIBOBJS.
1580 (SOME_MACHINE_OBJECTS): Remove interval stuff.
1581 (lisp): Substitute FACE_SUPPORT, FLOAT_SUP.
1582 (shortlisp): Add facemenu, float-sup, frame.
1583 (SOME_MACHINE_LISP): Remove them from here.
1584 (LIBES): Change unused LDLIBS to autoconf LIBS.
1585
1586 * config.in: Add BROKEN_MKTIME, NLIST_STRUCT, NLIST_NAME_UNION.
1587
9d3d5916
KH
15882000-04-14 Kenichi Handa <handa@etl.go.jp>
1589
1590 * composite.c (update_compositions): If FROM and TO are not in a
1591 valid range, do nothing.
1592
198e3c7a
GM
15932000-04-13 Gerd Moellmann <gerd@gnu.org>
1594
1595 * tparam.c (tparam1): Abort when encountering an unknown
1596 `%'-specifier.
1597
1598 * s/freebsd.h (TERMCAP_OBJ) [__FreeBSD__ >= 4]: Define as
1599 terminfo.o.
1600
1601 * Makefile.in (termcapobj) [LIBS_TERMCAP && TERMCAP_OBJ]: Define
1602 as TERMCAP_OBJ.
1603
055a28c9
EZ
16042000-04-13 Eli Zaretskii <eliz@is.elta.co.il>
1605
1606 * fileio.c (a_write): Remove redundant semi-colons.
1607 (e_write): Return -1 if failed to write all the data.
1608 This fixes the changes made at 1999-12-15.
1609
f5c75033
DL
16102000-04-12 Dave Love <fx@gnu.org>
1611
1612 * fns.c (mapcar1): Test for null vals to support mapc.
1613 (Fmapc): New function.
1614
0c3cfc51
EZ
16152000-04-12 Eli Zaretskii <eliz@is.elta.co.il>
1616
1617 * msdos.c (NUM_MOUSE_BUTTONS): Define.
1618 (IT_frame_up_to_date): Support the buffer local value of
1619 cursor-type, if defined.
1620
33465a31
DL
16212000-04-10 Dave Love <fx@gnu.org>
1622
1623 * editfns.c (preceding-char, following-char): Doc fix.
1624
6ed56568
KR
16252000-04-10 Ken Raeburn <raeburn@gnu.org>
1626
1627 * Makefile.in (temacs): Revert 2000-03-12 change.
1628
7cf80d4e
JR
16292000-04-10 Jason Rumney <jasonr@gnu.org>
1630
1631 * xfaces.c (realize_face): Change FRAME_X_P to FRAME_WINDOW_P.
1632
34f3f342
GM
16332000-04-10 Gerd Moellmann <gerd@gnu.org>
1634
1a1b1895
GM
1635 * xdisp.c (setup_echo_area_for_printing): Choose an echo
1636 area buffer, if it's not set up yet.
1637
34f3f342
GM
1638 * indent.c (compute_motion): Set immediate_quit.
1639
be0dbdab
GM
16402000-04-09 Gerd Moellmann <gerd@gnu.org>
1641
c45be9ac
GM
1642 * xfaces.c (tty_suppress_bold_inverse_default_colors_p): New
1643 variable.
1644 (realize_tty_face): Suppress boldness if colors are the inverse of
1645 the default colors, and tty_suppress_bold_inverse_default_colors_p
1646 is set.
1647 (Ftty_suppress_bold_inverse_default_colors): New function.
1648 (syms_of_xfaces): Defsubr it.
1649
be0dbdab
GM
1650 * buffer.c (Frestore_buffer_modified_p): New function.
1651 (syms_of_buffer): Defsubr it.
1652
e8413c3b
KR
16532000-04-08 Ken Raeburn <raeburn@gnu.org>
1654
87f67317
KR
1655 * charset.c (Fmake_char_internal): CHAR_COMPONENTS_VALID_P takes a
1656 charset id (int) argument, not a charset (Lisp_Object).
1657
e8413c3b
KR
1658 * coding.h (code_convert_string): Declare.
1659 * coding.c (code_convert_string_norecord): Pass an int, not a lisp
1660 object, as the fourth argument to code_convert_string.
1661
1662 * fontset.c (make_fontset_for_ascii_face): Use XINT on return
1663 value.
1664 (Fset_fontset_font): Use EQ to compare lisp objects.
1665
7c752c80
KR
16662000-04-05 Ken Raeburn <raeburn@gnu.org>
1667
c0333abc
KR
1668 * intervals.h (SET_INTERVAL_PARENT): Use INT_LISPLIKE to test for
1669 a pointer that looks like a lisp object.
1670 (SET_INTERVAL_OBJECT): Don't explicitly compare the object with
1671 zero, instead see whether it's an integer object, since they can't
1672 have intervals.
1673 (GET_INTERVAL_OBJECT): Simply assign to the destination.
1674
7c752c80
KR
1675 * dispnew.c (allocate_matrices_for_frame_redisplay,
1676 direct_output_forward_char): Use X(U)INT and make_number as needed
1677 to convert between (unsigned) int values and lisp integers.
1678 * keyboard.c (read_key_sequence): Likewise.
1679 * lread.c (substitute_object_recurse): Likewise.
1680 * fns.c (concat, hash_lookup, hash_remove): Likewise.
1681 * minibuf.c (do_completion, Fminibuffer_complete_word,
1682 Fminibuffer_completion_help): Likewise.
1683 * term.c (produce_special_glyphs): Likewise.
1684
1685 * fileio.c (Fwrite_region): Use EQ when comparing lisp objects.
1686 * print.c (print_preprocess, print_object): Likewise.
1687
1688 * search.c (compile_pattern): Use NILP when checking for nil.
1689
74e49b38
KR
1690 * lisp.h (make_number) [!NO_UNION_TYPE && __GNUC__ >= 2 &&
1691 __OPTIMIZE__]: Provide a GNU C macro version that handles
1692 lisp-object unions.
1693 (XSET) [!NO_UNION_TYPE]: Set the value field first, then the type
1694 field, to better cope with ENABLE_CHECKING and calls that modify a
1695 Lisp_Object using its old value.
1696
685e5ed2
GM
16972000-04-04 Gerd Moellmann <gerd@gnu.org>
1698
c407c570
GM
1699 * window.c (compare_window_configurations): Signal an error
1700 if parameters C1 or C2 aren't window configurations.
1701
685e5ed2
GM
1702 * bytecode.c (Fbyte_code): Add a bunch of BEFORE_POTENTIAL_GC/
1703 AFTER_POTENTIAL_GC calls around calls to functions that can
1704 signal an error and thus invoke the debugger.
1705
587a49ab
GM
17062000-04-03 Gerd Moellmann <gerd@gnu.org>
1707
62f20204
GM
1708 * fns.c (Fbase64_decode_region, Fbase64_decode_string): Signal
1709 an error if decoding fails.
1710
587a49ab
GM
1711 * keyboard.c (lispy_mouse_names): Variable removed.
1712 (Vlispy_mouse_stem): New variable.
1713 (syms_of_keyboard): Initialize Vlispy_mouse_stem.
1714 (make_lispy_event) <mouse_click, scroll_bar_click>: Don't abort
1715 for any mouse button number. Increase size of mouse_syms and
1716 button_down_location as needed. Call modify_event_symbol with
1717 different arguments.
1718 (make_lispy_event) <scroll_bar_click> [USE_TOOLKIT_SCROLL_BARS]:
1719 Call modify_event_symbol with different arguments.
1720 (make_lispy_event) <w32_scroll_bar_click> [WINDOWSNT]: Don't abort
1721 for any button number. Call modify_event_symbol with different
1722 arguments.
1723 (modify_event_symbol): Rename NAME_ALIST to NAME_ALIST_OR_STEM.
1724 Accept a string for NAME_ALIST_OR_STEM.
1725
1726 * lisp.h (larger_vector): Add prototype.
1727
1728 * fns.c (larger_vector): Make externally visible.
1729
1730 * termhooks.h (NUM_MOUSE_BUTTONS): Removed.
1731
2d1675e4
SM
17322000-04-02 Stefan Monnier <monnier@cs.yale.edu>
1733
1734 * regex.c (PTR_TO_OFFSET) [!emacs]: Remove.
1735 (RE_MULTIBYTE_P, RE_STRING_CHAR_AND_LENGTH): New macros.
1736 (GET_CHAR_BEFORE_2): Moved from charset.h plus fixed minor bug when
1737 we are between str1 and str2.
1738 (MAX_MULTIBYTE_LENGTH, CHAR_STRING) [!emacs]: Provide trivial default.
1739 (PATFETCH): Use `TRANSLATE'.
1740 (PATFETCH_RAW): Fetch multibyte char if applicable.
1741 (PATUNFETCH): Remove.
1742 (regex_compile): Rely on PATFETCH to do most of the multibyte magic.
1743 When writing a char, write it directly into the pattern buffer rather
1744 than going needlessly through a temp char-array.
1745 (re_match_2_internal): Similarly, rely on RE_STRING_CHAR to do the
1746 multibyte magic and remove the useless `#ifdef emacs'.
1747 (bcmp_translate): Don't compare as multibyte chars when in a unibyte
1748 buffer.
1749
1750 * regex.h (struct re_pattern_buffer): Make field `multibyte'
1751 conditional on `emacs'.
1752
1753 * charset.h (GET_CHAR_BEFORE_2): Moved to regex.c.
1754
cc2d8c6b
KR
17552000-04-01 Ken Raeburn <raeburn@gnu.org>
1756
1757 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P): Expand
1758 non-union-type versions of XMARK and friends here, because XMARK
1759 and friends won't work on an integer field if NO_UNION_TYPE is not
1760 defined.
1761 (make_number): Define as a function if it's not defined as a
1762 macro.
1763
09654086
KR
1764 * composite.c (run_composite_function): Use NILP when checking for
1765 nil.
1766 (syms_of_composite): Delete local var NARGS, pass an int as first
1767 argument to Fmake_hash_table.
1768
2387b382
KR
1769 * editfns.c (text_property_stickiness): Use NILP to test
1770 Lisp_Object boolean value.
1771 (Fmessage_or_box): Don't use NILP to test int variable.
c01fbf95
KR
1772 (Fformat): Use a temporary variable to avoid ENABLE_CHECKING
1773 problems reading from and changing the same lisp value in an
1774 XSETSTRING call.
1775
27660e89
GM
17762000-04-01 Gerd Moellmann <gerd@gnu.org>
1777
1778 * term.c (TN_no_color_video): New variable.
1779 (term_init): Intitialize TN_no_color_video.
1780 (enum no_color_bit): New enumeration.
1781 (MAY_USE_WITH_COLORS_P): New macro.
1782 (turn_on_face): Use it to determine if attributes may be used
1783 combined with colors.
1784
3578db3c
KR
17852000-04-01 Ken Raeburn <raeburn@gnu.org>
1786
1787 * window.c (CURBEG, CURSIZE): Don't overload lisp object lvalues
1788 with int lvalues via casts; instead, just yield lisp object
1789 lvalues.
1790 (enlarge_window): Variable sizep now points to Lisp_Object. Use
1791 proper accessor macros.
1792 (shrink_window_lowest_first): w->top is Lisp_Object; use XINT.
1793 (grow_mini_window): Fix typo getting int value of root->height.
1794
6fc556fd
KR
1795 * xdisp.c (compute_string_pos): Fix order of arguments to
1796 string_pos_nchars_ahead.
1797 (handle_fontified_prop, add_to_log): Pass int, not Lisp_Object, as
1798 count arg to variable-arg routines like Frun_hook_with_args and
1799 Fformat.
587a49ab
GM
1800 (back_to_previous_visible_line_start)
1801 (build_desired_tool_bar_string): Pass Lisp_Object, not int, to
6fc556fd
KR
1802 fixed-arg routines like Fget_char_property and Fmake_string.
1803 (reconsider_clip_changes): Use XINT when comparing integer lisp
1804 objects, or passing them as int arguments.
587a49ab
GM
1805 (mark_window_display_accurate, insert_left_trunc_glyphs)
1806 (append_space, extend_face_to_end_of_line): Use make_number when
6fc556fd
KR
1807 storing or passing integer values as lisp objects.
1808 (set_cursor_from_row, highlight_trailing_whitespace): Use
1809 INTEGERP, not implicit test against zero, for glyph object.
1810 (try_window_id): Don't use make_number when we want an int value.
1811
1812 * xfaces.c (xlfd_symbolic_value): Make last argument a
1813 Lisp_Object, to be consistent with callers.
1814 (Fbitmap_spec_p): Use XINT to get numeric value of height.
1815 (lface_hash): Apply XFASTINT to lisp values before folding in.
1816
1817 * xfns.c (Fx_show_tip): Use make_number to get lisp objects to
1818 fill in window width and height. Pass an int, not a lisp object,
1819 as first arg to Finsert.
1820
6e7b2457
GM
18212000-04-01 Gerd Moellmann <gerd@gnu.org>
1822
610d841e
GM
1823 * xfaces.c (realize_basic_faces): Block input while realizing
1824 the faces.
1825
6e7b2457
GM
1826 * keyboard.c (lispy_mouse_names): Add additional mouse names.
1827
1828 * termhooks.h (NUM_MOUSE_BUTTONS): Increase to 15.
1829
aa110c0c
GM
18302000-03-31 Gerd Moellmann <gerd@gnu.org>
1831
1832 * xterm.c (x_produce_glyphs): When displaying unibyte text
610d841e 1833 or ASCII, handle case that per-char metric is null.
aa110c0c 1834
8801a864
KR
18352000-03-30 Ken Raeburn <raeburn@gnu.org>
1836
c6129d7e
KR
1837 * lisp.h (NO_UNION_TYPE) [ENABLE_CHECKING]: Undef.
1838
8801a864
KR
1839 * lisp.h (XCONS, XSTRING, XSYMBOL, XFLOAT, XPROCESS, XWINDOW,
1840 XSUBR, XBUFFER): Verify correct object type before returning
1841 pointer, using eassert.
1842 * frame.h (XFRAME): Likewise.
1843
1844 * buffer.c (Frename_buffer, Fset_buffer_multibyte,
1845 swap_out_buffer_local_variables, Fmove_overlay): Don't apply
1846 XSYMBOL, XBUFFER, etc, to values that may be nil or of the wrong
1847 type.
1848 * data.c (set_internal): Likewise.
1849 * dispextern.h (WINDOW_WANTS_MODELINE_P,
1850 WINDOW_WANTS_HEADER_LINE_P): Likewise.
1851 * fileio.c (auto_save_1): Likewise.
1852 * insdel.c (check_markers): Likewise.
1853 * marker.c (buf_charpos_to_bytepos, unchain_marker): Likewise.
1854 * undo.c (record_insert): Likewise.
1855 * vmsproc.c (child_sig): Likewise.
1856 * window.c (unshow_buffer, window_loop): Likewise.
1857 * xterm.c (x_erase_phys_cursor): Likewise.
1858
8e7af858
GM
18592000-03-30 Gerd Moellmann <gerd@gnu.org>
1860
1861 * xfns.c (free_image_cache): Free the cache structure itself
1862 last, after all its members have been freed.
1863
1864 * lisp.h (xstrdup): Add prototype.
1865
1866 * alloc.c (xstrdup): Moved here from xfaces.c.
1867 (allocating_for_lisp): Variable removed.
1868 (lisp_malloc): Block input around the calls to malloc and
1869 mem_insert.
1870
1871 * xfaces.c (realize_tty_face): Use find_symbol_value instead
1872 of Fsymbol_value.
1873 (xstrdup): Moved to alloc.c.
1874
e0b8c689
KR
18752000-03-29 Ken Raeburn <raeburn@gnu.org>
1876
b96f9fb7
KR
1877 * scroll.c (CHECK_BOUNDS): Renamed from CHECK.
1878
1879 * emacs.c (main): Fix sense of no-loadup test.
1880
e0b8c689
KR
1881 * config.in (ENABLE_CHECKING): Undef.
1882
1883 * lisp.h (struct interval): Replace "parent" field with a union of
1884 interval pointer and Lisp_Object; add new bitfield to use as
1885 discriminant. Change other flag fields to bitfields.
1886 (CHECK): New macro for consistency checking. If ENABLE_CHECKING
1887 is defined and the supplied test fails, print a message and
1888 abort.
1889 (eassert): New macro. Use CHECK to provide an assert-like
1890 facility.
1891
1892 * intervals.h (NULL_INTERVAL_P): Now applies only to real interval
1893 pointers; abort if the value looks like a lisp object.
1894 (NULL_INTERVAL_P, NULL_PARENT, HAS_PARENT, HAS_OBJECT, SET_PARENT,
1895 SET_OBJECT, INTERVAL_PARENT, GET_INTERVAL_OBJECT, COPY_PARENT):
1896 Modify for new interval parent definition.
1897
1898 * alloc.c (mark_interval_tree, MARK_INTERVAL_TREE,
1899 UNMARK_BALANCE_INTERVALS): Update references that need an
1900 addressable lisp object in the interval structure.
1901 (die): New function.
1902 (suppress_checking): New variable.
1903
1904 * intervals.c (interval_start_pos): Just return 0 if there's no
1905 parent object.
1906
f83c5440
GM
19072000-03-29 Gerd Moellmann <gerd@gnu.org>
1908
1909 * lread.c (read1): Accept `.' (period) as symbol start like in CL
1910 and earlier Emacs versions.
1911
1912 * keyboard.c (Ftop_level): Cancel busy-cursor.
1913
1914 * eval.c (call_debugger): Cancel busy-cursor.
1915
fdce64ff
KH
19162000-03-29 Kenichi Handa <handa@etl.go.jp>
1917
1918 * search.c (Freplace_match): Adjust multibyteness of the current
1919 buffer and NEWTEXT. Free allocated memory before signaling an
1920 error.
1921
f6a3f532
SM
19222000-03-28 Stefan Monnier <monnier@cs.yale.edu>
1923
1924 * regex.c (analyse_first): New function obtained by ripping out most
1925 of re_compile_fastmap and generalizing it a little bit so that it
1926 can also just return whether a given (sub)pattern can match the empty
1927 string or not.
1928 (regex_compile): Use `analyse_first' to decide whether the loop-check
1929 needs to be done or not for *, +, *? and +? (the loop check is costly
1930 for non-greedy repetition).
1931 (re_compile_fastmap): Delegate the actual work to `analyse_first'.
1932
e9b309ac
DL
19332000-03-28 Dave Love <fx@gnu.org>
1934
bb15bd9a
DL
1935 * s/gnu-linux.h (GC_SETJMP_WORKS): Define for i386, sparc, m68k,
1936 alpha.
1937
e9b309ac
DL
1938 * alloc.c: Include stdio.h. Test STDC_HEADERS, not __STDC__.
1939
ed0767d8
SM
19402000-03-27 Stefan Monnier <monnier@cs.yale.edu>
1941
1942 * regex.c (REGEX_FREE_STACK, RESET_FAIL_STACK): Make them usable as
1943 an expression.
1944 (enum re_opcode_t): Update description of succeed_n.
1945 (PATFETCH): Always define.
1946 (regex_compile): Use lookahead rather than PATUNFETCH (for repetition
1947 operators, char classes, shy-groups and intervals).
1948 Optimize special cases of intervals so as to only use succeed_n and
1949 jump_n when really needed.
1950 (re_compile_fastmap): Simplify handling of jump_n and succeed_n now
1951 that we don't have to handle the special cases any more.
1952 Simplify on_failure_jump handling as well.
1953
e11e7e46
JR
19542000-03-28 Jason Rumney <jasonr@gnu.org>
1955
1956 * lread.c (Fload): Move safe_p definition to above #ifdef DOS_NT.
1957
88faab89
GM
19582000-03-27 Gerd Moellmann <gerd@gnu.org>
1959
182ff242
GM
1960 * s/freebsd.h (GC_SETJMP_WORKS): Define.
1961
1962 * s/msdos.h (GC_SETJMP_WORKS): Define.
427ec082 1963
182ff242
GM
1964 * alloc.c (mark_maybe_object): New function.
1965 (mark_memory): Use it.
1966 (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK): New macros.
1967 (setjmp_tested_p, longjmp_done): New variables.
1968 (test_setjmp): New function.
1969 (mark_stack) [!GC_SETJMP_WORKS]: Call test_setjmp.
1970 (init_alloc): Initialize setjmp_tested_p and longjmp_done.
1971
c1005d06
GM
1972 * xdisp.c (face_before_or_after_it_pos): Pass multibyteness
1973 to DEC_TEXT_POS and INC_TEXT_POS.
1974
1975 * dispnew.c (direct_output_for_insert): Use DEC_TEXT_POS
1976 with parameter MULTIBYTE_P.
1977
427ec082 1978 * dispextern.h (INC_TEXT_POS, DEC_TEXT_POS): Add parameter
c1005d06
GM
1979 MULTIBYTE_P.
1980
7439e5b9 1981 * editfns.c (Fsubst_char_in_region): Don't use INC_POS in unibyte
182ff242
GM
1982 buffers because it looks for multibyte character byte sequences
1983 which don't exist in unibyte text.
7439e5b9 1984
d9c545da
GM
1985 * xterm.h (x_specified_cursor_type, x_copy_color): Add prototypes.
1986
11fd416e 1987 * xfaces.c (register_color, unregister_color, unregister_colors)
d9c545da
GM
1988 [DEBUG_X_COLORS]: New functions.
1989 (x_free_colors) [DEBUG_X_COLORS]: Unregister colors.
1990
1991 * xfns.c (x_set_cursor_color): Get color reference counts right.
1992
1993 * xterm.c (x_copy_color): New function.
1994 (x_alloc_nearest_color) [DEBUG_X_COLORS]: Call register_color.
1995
1996 * buffer.h (MAX_PER_BUFFER_VARS): Renamed from MAX_BUFFER_LOCAL_VARS.
1997 (PER_BUFFER_VAR_OFFSET): Renamed from BUFFER_LOCAL_VAR_OFFSET.
1998 (PER_BUFFER_VAR_IDX): Renamed from BUFFER_LOCAL_VAR_IDX.
1999 (PER_BUFFER_VALUE_P): Renamed from BUFFER_HAS_LOCAL_VALUE_P.
2000 (SET_PER_BUFFER_VALUE_P): Renamed from SET_BUFFER_HAS_LOCAL_VALUE_P.
2001 (PER_BUFFER_IDX): Renamed from BUFFER_LOCAL_IDX.
2002 (PER_BUFFER_DEFAULT): Renamed from BUFFER_LOCAL_DEFAULT_VALUE.
2003 (PER_BUFFER_VALUE): Renamed from BUFFER_LOCAL_VALUE.
2004 (PER_BUFFER_SYMBOL): Renamed from BUFFER_LOCAL_SYMBOL.
2005 (PER_BUFFER_TYPE): Renamed from BUFFER_LOCAL_TYPE.
2006
11fd416e
GM
2007 * category.c, data.c, syntax.c, print.c, lread.c: Use new macro
2008 names for handling per-buffer variables.
d9c545da
GM
2009
2010 * buffer.c (buffer_permanent_local_flags): Use MAX_PER_BUFFER_VARS
2011 instead of MAX_BUFFER_LOCAL_VARS.
2012 (last_per_buffer_idx): Renamed from max_buffer_local_idx.
2013
2014 * xfaces.c (lookup_face): Don't assert FACE_SUITABLE_FOR_CHAR_P.
2015
88faab89
GM
2016 * xfns.c (x_specified_cursor_type): New function.
2017 (x_set_cursor_type): Use it.
2018
2019 * buffer.h (struct buffer): Add cursor_type.
2020
d80f42b7
SM
20212000-03-26 Stefan Monnier <monnier@cs.yale.edu>
2022
2023 * regex.c (enum re_opcode_t): New opcode on_failure_jump_nastyloop.
427ec082 2024 (print_partial_compiled_pattern, re_compile_fastmap): Handle new
88faab89 2025 opcode.
d80f42b7
SM
2026 (regex_compile): Use on_failure_jump_nastyloop for non-greedy loops.
2027 (re_match_2_internal): Add code for on_failure_jump_nastyloop when
2028 executing it as well as when popping it off the stack to find infinite
2029 loops in non-greedy repetition operators.
2030
89e80928
GM
20312000-03-26 Gerd Moellmann <gerd@gnu.org>
2032
3d4ff2dd
GM
2033 * doc.c (Qfunction_documentation): New variable.
2034 (syms_of_doc): Initialize Qfunction_documentation.
2035 (Fdocumentation): If FUNCTION is a symbol with non-nil
2036 `function-documentation' property, return a documentation derived
2037 from that.
2038
bd96bd79
GM
2039 * buffer.c (syms_of_buffer): Add default-cursor-type.
2040 (init_buffer_once): Don't let cursor_type have a local value
2041 in every buffer.
2042
19d1bc27
GM
2043 * xterm.c (x_display_and_set_cursor): Choose cursor depending
2044 on buffer-local value of cursor_type.
2045 (x_draw_bar_cursor): Add parameter WIDTH.
2046
2047 * buffer.c (reset_buffer): Initialize buffer's cursor_type.
2048 (init_buffer_once): Set default cursor_type value to t.
2049 Mark cursor_type as local everywhere.
2050 (syms_of_buffer): New per-buffer variable cursor-type.
2051
89e80928
GM
2052 * buffer.h (struct buffer): Remove member local_var_flags,
2053 add local_flags.
2054 (MAX_BUFFER_LOCAL_VARS): New macro.
2055 (BUFFER_LOCAL_VAR_OFFSET, BUFFER_LOCAL_VAR_IDX)
2056 (BUFFER_HAS_LOCAL_VALUE_P, SET_BUFFER_HAS_LOCAL_VALUE_P)
2057 (BUFFER_LOCAL_IDX, BUFFER_LOCAL_DEFAULT_VALUE, BUFFER_LOCAL_VALUE)
2058 (BUFFER_LOCAL_SYMBOL, BUFFER_LOCAL_TYPE): New macros.
2059
2060 * print.c (print_object): Use new macros for per-buffer
2061 variables.
2062
2063 * category.c (Fset_category_table): Use new macros for per-buffer
2064 variables.
2065
2066 * buffer.c (buffer_permanent_local_flags): Make a char array.
2067 (max_buffer_local_idx): New variable.
2068 (reset_buffer_local_variables, Fbuffer_local_variables): Rewritten
2069 for new handling of per-buffer variables.
2070 (buffer_slot_type_mismatch): Use new macros for per-buffer vars.
2071 (init_buffer_once): Initialize per-buffer vars differently.
2072 Set max_buffer_local_idx.
2073
2074 * syntax.c (Fset_syntax_table): Use new macros for per-buffer
2075 variables.
2076
2077 * lread.c (defvar_per_buffer): Use new macros for per-buffer
2078 variables.
2079
2080 * data.c (do_symval_forwarding, store_symval_forwarding)
2081 (find_symbol_value, set_internal, default_value, Fset_default)
2082 (Fkill_local_variable, Flocal_variable_p): Use new macros for
2083 per-buffer variables.
2084
2085 * Makefile.in (bootstrap-emacs): Use `mv -f' instead of `mv'.
2086
9a0dd3dc
GM
20872000-03-24 Gerd Moellmann <gerd@gnu.org>
2088
b68c375f
GM
2089 * xterm.c (x_term_init): Unblock input around call1 of
2090 Qvendor_specific_keysyms.
2091
9a0dd3dc
GM
2092 * syntax.c (open_paren_in_column_0_is_defun_start): New variable.
2093 (find_defun_start): Consider an open parenthesis in column 0
2094 a defun start only if open_paren_in_column_0_is_defun_start is set.
2095 (syms_of_syntax): New variable open-paren-in-column-0-is-defun-start.
2096
7973e637
SM
20972000-03-24 Stefan Monnier <monnier@cs.yale.edu>
2098
2099 * eval.c (Fautoload): Add entry in load-history (if after dump).
2100 * lread.c (load-history): Update docstring.
2101
39210e90
GM
21022000-03-24 Gerd Moellmann <gerd@gnu.org>
2103
2104 * indent.c (Fvertical_motion): Always use the current buffer.
2105 Temporarily change the window's buffer, if necessary.
2106
72db3ab5
GM
21072000-03-23 Gerd Moellmann <gerd@gnu.org>
2108
2109 * xterm.c (fast_find_position): Make sure not to consider rows
2110 not visible in the window.
2111
990b2375
SM
21122000-03-22 Stefan Monnier <monnier@cs.yale.edu>
2113
2114 * regex.c (enum syntaxcode): Provide default for non-Emacs.
2115 (re_compile_fastmap, re_match_2_internal): Undo Dave's previous fix.
2116
ff4df011
JR
21172000-03-22 Jason Rumney <jasonr@gnu.org>
2118
2119 * w32menu.c (single_submenu): Set help string to NULL if none.
2120 (w32_menu_show): Set help string correctly.
2121 (add-menu-item): Set help string in MIIM_DATA for menu item.
2122 Load SetMenuItemInfoA explicitly.
2123 (w32_menu_display_help): New function.
427ec082 2124
ff4df011
JR
2125 * w32fns.c (w32_wnd_proc): Handle WM_MENUSELECT message.
2126 (QCdata): Moved to xdisp.c.
2127
2128 * w32term.c (w32_read_socket): Handle WM_MENUSELECT message.
2129 (Vw32_charset_to_codepage_alist): Removed.
2130 (Vw32_charset_info_alist): New variable.
2131 (Qw32_charset_[ansi, default, symbol, shiftjis, hangul, gb2312,
2132 chinesebig5, oem, easteurope, turkish, baltic, russian, arabic,
2133 greek, hebrew, thai, johab, mac, unicode]): New symbols.
2134 (x_produce_glyphs): Remove out of date #ifdef 0'd section. Replace
2135 with TODO comment.
2136 (w32_codepage_for_font): Use Vw32_charset_info_alist.
2137 (syms_of_w32term): Remove Vw32_charset_to_codepage_alist.
2138 Define Vw32_charset_info_alist and w32_charset symbols.
2139
21402000-03-22 Jason Rumney <jasonr@gnu.org>
2141
2142 * makefile.nt (w32bdf.obj): Update dependencies.
2143
2144 * w32bdf.c: Include frame.h and dispextern.h before fontset.h.
2145
2146 * w32fns.c: Include fontset.h after dispextern.h.
2147 (Fx_create_frame): Do not create fontset.
2148 (w32_load_system_font): Doc fix.
2149 (Fx_close_connection): Free full_name if it is not shared.
2150
2151 * w32term.c: Include fontset.h after dispextern.h.
2152 (x_get_glyph_face_and_encoding): New parameter two_byte_p. Callers
2153 updated.
2154 (w32_per_char_metric): If PCM is invalid, delete and return NULL.
2155 (x_get_char_and_face_encoding): Use FACE_FOR_CHAR to get face_id.
2156 (w32_font_is_double_byte): New function, needs body.
2157 (x_append_glyph): Set glyph->glyph_not_available_p.
2158 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
2159 it->charset. If it->multibyte_p is zero and it->c is a multibyte
2160 character, convert it to a unibyte character.
2161 (struct glyph_string): Delete member `charset'.
2162 (W32_TEXTOUT): Temporarily remove charset_dim until another way of
2163 calculating it is found.
2164 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
2165 the case that per char metric is not available correctly.
2166 (x_fill_glyph_string): Handle the case that the specific glyph is
2167 not available correctly.
2168 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
2169 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
2170 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
2171 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
2172 fontset. Don't call FS_LOAD_FONT.
2173
439d5cb4
KR
21742000-03-22 Ken Raeburn <raeburn@gnu.org>
2175
2176 * intervals.h (NULL_INTERVAL): Cast to INTERVAL type.
2177 (INT_LISPLIKE): New macro.
2178 (NULL_INTERVAL_P): Use it.
2179 (INTERVAL_HAS_PARENT, INTERVAL_HAS_OBJECT, SET_INTERVAL_PARENT,
2180 SET_INTERVAL_OBJECT, INTERVAL_PARENT, COPY_INTERVAL_PARENT,
2181 GET_INTERVAL_OBJECT, INTERVAL_PARENT_OR_NULL): New macros.
2182
2183 * alloc.c (make_interval, gc_sweep): Use new macros; eliminate all
2184 explicit references to "parent" field of struct interval and
2185 associated unclean type conversions.
2186 * intervals.c (create_root_interval, root_interval, rotate_right,
2187 rotate_left, balance_possible_root_interval, split_interval_right,
2188 split_interval_left, interval_start_pos, find_interval,
2189 next_interval, previous_interval, update_interval,
2190 adjust_intervals_for_insertion, delete_node, delete_interval,
2191 adjust_intervals_for_deletion, merge_interval_right,
2192 merge_interval_left, reproduce_tree, graft_intervals_into_buffer,
2193 copy_intervals_to_string): Likewise.
2194 * intervals.h (AM_LEFT_CHILD, AM_RIGHT_CHILD, RESET_INTERVAL):
2195 Likewise.
2196 * syntax.c (update_syntax_table): Likewise.
2197
2198 * intervals.c (reproduce_tree_obj): New function, like
2199 reproduce_tree but takes a Lisp_Object for the parent. Declare
2200 with prototype.
2201 (graft_intervals_into_buffer): Use it when appropriate.
2202 (reproduce_tree): Declare with prototype.
2203 (balance_possible_root_interval): Check that the parent is a lisp
2204 object before trying to examine its type.
2205
ee1c5b21
GM
22062000-03-22 Gerd Moellmann <gerd@gnu.org>
2207
2208 * xfaces.c (lface_same_font_attributes_p): Compare font attributes
2209 as strings only if both are known to be strings.
2210
2211 * s/openbsd.h (LIBS_TERMCAP): Undef.
2212
1fb352e0
SM
22132000-03-21 Stefan Monnier <monnier@cs.yale.edu>
2214
2215 * regex.c (CHAR_CHARSET, CHARSET_LEADING_CODE_BASE): Add default
2216 definitions for non-Emacs compilation.
2217 (enum re_opcode_t): Remove (not)wordchar and move (not)syntaxspec
2218 outside of `#ifdef emacs'.
2219 (print_partial_compiled_pattern): Update.
2220 (regex_compile): Use (not)syntaxspec(Sword) instead of (not)wordchar.
2221 (re_compile_fastmap): Merge handling of charset and charset_not (for
2222 emacs and non-emacs compilation as well).
2223 Similarly for (not)categoryspec and (not)syntaxspec.
2224 Don't use the fastmap when reaching `anychar' since the added
2225 complexity is not justified.
2226 (re_match_2_internal): Merge (not)wordchar (emacs and non-emacs)
2227 and (not)syntaxspec. Merge (not)categoryspec.
2228
fdaa1f77
KH
22292000-03-22 Kenichi Handa <handa@etl.go.jp>
2230
ff1a0d8e
KH
2231 * dispextern.h [!HAVE_WINDOW_SYSTEM] (FACE_SUITABLE_FOR_CHAR_P,
2232 FACE_FOR_CHAR): Define them differently for the configuration of
2233 --without-x.
fdaa1f77 2234
d152fb46
DL
22352000-03-21 Dave Love <fx@gnu.org>
2236
2237 * fontset.c (Fset_fontset_font, Ffontset_font): Fix newlines in
2238 doc string.
2239
d2cafc8c
GM
22402000-03-21 Gerd Moellmann <gerd@gnu.org>
2241
2242 * xfaces.c (check_lface_attrs) [GLYPH_DEBUG]: Fix syntax error.
2243 (lface_fully_specified_p): Don't check contents of
2244 LFACE_FONT_INDEX because that attribute is optional.
2245 (realize_x_face): Remove now unwarranted xassert.
2246
9111d4b5
KH
22472000-03-21 Kenichi HANDA <handa@etl.go.jp>
2248
2249 The following changes are to make font selection based on
2250 characters, not charset. In addition, they recover fontset
2251 facilities while utilizing the new font selection mechanism.
2252
6c4bfdc0
KH
2253 * Makefile.in (fontset.o): Depend on dispextern.h.
2254
2255 * alloc.c (mark_face_cache): Don't mark face->registry.
2256
9111d4b5
KH
2257 * dispextern.h (struct glyph): New member glyph_not_available_p.
2258 Use 22 bits for face_id.
2259 (enum lface_attribute_index): Add LFACE_FONT_INDEX.
2260 (struct face): Delete member registry, new member ascii_face.
2261 (FACE_SUITABLE_FOR_CHAR_P): Renamed from
2262 FACE_SUITABLE_FOR_CHARSET_P. Caller changed.
2263 (FACE_FOR_CHAR): Renamed from FACE_FOR_CHARSET. Caller changed.
2264 (struct it): Delete member charset, new member
2265 glyph_not_available_p.
2266
2267 * fontset.h (FONT_NOT_OPENED, FONT_NOT_FOUND): Macros removed.
2268 (struct fontset_info, struct fontset_data): Structs removed.
2269 (allloc_fontset_data, free_fontset_data, fs_regiser_fontset,
2270 Vglobale_fontset_alist, font_idx_temp): Externs removed.
2271 (fs_load_font, fs_query_fontset): Adjusted for new argument.
2272 (fs_free_face_fontset, fontset_font_pattern,
2273 face_suitable_for_char_p, face_for_char,
2274 make_fontset_for_ascii_face): Extern them.
2275 (FS_LOAD_FONT): Adjusted for the change of fontset implementation.
2276 (FS_LOAD_FACE_FONT): New macro.
2277
2278 * fontset.c: All codes rewritten or adjusted for the change of
2279 fontset implementation. Now fontset is represented by char table.
2280 (Vglobal_fontset_alist, font_idx_temp, my_strcasetbl): Variables
2281 removed.
2282 (my_strcasecmp): Function removed.
2283 (Vfontset_table, next_fontset_id, Vdefault_fontset): New
2284 variables.
2285 (AREF, ASIZE): New macros.
2286 (FONTSET_FROM_ID, FONTSET_ID, FONTSET_NAME, FONTSET_FRAME,
2287 FONTSET_ASCII, FONTSET_BASE, BASE_FONTSET_P, FONTSET_REF,
2288 FONTSET_REF_VIA_BASE, FONTSET_SET): New macros.
2289 (fontset_ref, fontset_ref_via_base, fontset_set, make_fontset,
2290 fontset_id_valid_p, font_family_registry, fontset_name,
2291 fontset_ascii, free_face_fontset, face_suitable_for_char_p,
2292 face_for_char, make_fontset_for_ascii_face, fontset_font_pattern):
2293 New functions.
2294 (fs_load_font): New arg FACE. Caller changed.
2295 (fs_query_fontset): Argument changed. Caller changed.
2296 (Fquery_fontset): call fs_query_fontset.
2297 (fs_register_fontset, alloc_fontset_data, free_fontset_data):
2298 Functions removed.
2299 (clear_fontset_elements, check_registry_encoding,
2300 check_fontset_name): New functions.
2301 (syms_of_fontset): Set char-table-extra-slots property of fontset
2302 to 3. Staticpro and initialize Vfontset_table and
2303 Vdefault_fontset. Defsubr fontset_font and fontset_list.
2304
2305 * frame.h (struct frame): Member `fontset_data' removed.
2306 (FRAME_FONTSET_DATA): Macro removed.
2307
2308 * frame.c (make_frame): Don't allocate f->fontset_data.
2309 (Fdelete_frame): Don't free f->fontset_data.
2310
6c4bfdc0
KH
2311 * msdos.c (XMenuActivate): Args to lookup_derived_face changed.
2312
9111d4b5
KH
2313 * xdisp.c (charset_at_position): Function removed.
2314 (init_iterator): Don't set member charset of struct `it'.
2315 (handle_face_prop, reseat_to_string, set_iterator_to_next,
2316 next_element_from_display_vector, insert_left_trunc_glyphs):
2317 Likewise.
2318 (face_before_or_after_it_pos): Call FACE_FOR_CHAR, not
2319 FACE_FOR_CHARSET.
2320 (get_next_display_element, append_space,
2321 extend_face_to_end_of_line): Likewise.
2322
2323 * xfaces.c (Qx_charset_registry, Vface_default_registry):
2324 Variables removed.
2325 (clear_font_table, frame_update_line_height, load_face_font):
2326 Adjusted for the change of fontset implementation.
2327 (load_face_fontset_font): Function removed.
2328 (pixel_point_size): New function.
2329 (font_list): Argument type changed. Caller changed.
2330 (LFACE_FONT): New macro.
2331 (check_lface_attrs): Check attr[LFACE_FONT_INDEX].
2332 (set_lface_from_font_name): Type of arg FONTNAME is changed to
2333 Lisp_Object. Determine the font name by actually loading a font
2334 by the specified pattern. Set LFACE_FONT (lface) to the specified
2335 pattern. Even if a font is not found, don't try alternatives.
2336 (Finternal_set_lisp_face_attribute): Handle `font' slot in lface.
2337 (set_font_frame_param): If `font' is specified in lface, use it.
2338 (Finternal_get_lisp_face_attribute): Handle `font' slot in lface.
2339 (lface_same_font_attributes_p): Likewise.
2340 (make_realized_face): Arguent changed. Caller changed. Set
2341 face->ascii_face to face itself.
2342 (free_realized_face): Free face->fontset if face is for ASCII.
2343 (face_suitable_for_iso8859_1_p, face_suitable_for_charset_p,
2344 deduce_unibyte_registry, x_charset_registry): Functions removed.
2345 (free_realized_multibyte_face): New function.
2346 (lookup_face, lookup_named_face, lookup_derived_face): Argument
2347 changed. Caller changed.
2348 (try_font_list): Argument type changed.
2349 (face_fontset): Check `font' slot of ATTRS, not `family' slot.
2350 (choose_face_font): Argument changed. Handle fontset properly.
2351 (choose_face_fontset_font): Function removed.
2352 (realize_default_face, realize_named_face): Don't remove the
2353 former face here.
2354 (realize_face): Argument changed. Caller changed. Remove face
2355 with the arg former_face_id in advance. Load font for the new
2356 face.
2357 (realize_x_face): Argument changed. Caller changed. For a
2358 multibyte character, share fontset with base_face. For a single
2359 byte character, make a new realized fontset. Don't load a font
2360 here.
2361 (realize_tty_face): Argument changed. Caller changed.
2362 (compute_char_face): Call FACE_FOR_CHAR, not FACE_FOR_CHARSET.
2363 (face_at_buffer_position): Don't check multibyte_p for returning
2364 DEFAULT_FACE_ID.
2365 (face_at_string_position): Call FACE_SUITABLE_FOR_CHAR_P, not
2366 FACE_SUITABLE_FOR_CHARSET_P.
2367 (syms_of_xfaces): Remove code for Qx_charset_registry and
2368 Vface_default_registry.
2369
6c4bfdc0
KH
2370 * xterm.c: Include fontset.h after dispextern.h. Undo the changes
2371 related to PER_CHAR_METRIC done by Gerd on 2000-03-03.
9111d4b5
KH
2372 (x_per_char_metric): Don't try FONT->default_char. Even if
2373 pcm->width is zero, glyph bits may exist.
2374 (x_encode_char): Always initialize char2b->byte1.
2375 (x_get_char_face_and_encoding): Call FACE_FOR_CHAR to get face_id.
2376 (x_get_glyph_face_and_encoding): New arg two_byte_p. Caller
2377 changed.
2378 (x_append_glyph): Set glyph->glyph_not_available_p.
2379 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
2380 it->charset. Handle the case that per char metric is not
2381 available. If it->multibyte_p is zero and it->c is a multibyte
2382 character, convert it to a unibyte character.
2383 (struct glyph_string): Delete member `charset'.
2384 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
2385 the case that per char metric is not available correctly.
2386 (x_fill_glyph_string): Handle the case that the specific glyph is
2387 not available correctly.
2388 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
2389 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
2390 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
2391 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
2392 fontset. Don't call FS_LOAD_FONT.
2393
2394 * xfns.c (Fx_create_frame): Don't cal fs_register_fontset.
2395 (x_create_tip_frame): Likewise.
2396 (Fx_close_connection): Free full_name of font_info.
2397
2398 * fns.c (optimize_sub_char_table): New function.
2399 (Foptimize_char_table): New function.
2400 (syms_of_fns): Defsubr Soptimize_char_table.
2401
b33dd3b0
GM
24022000-03-20 Gerd Moellmann <gerd@gnu.org>
2403
2404 * buffer.c (Fset_buffer_modified_p): Set update_mode_lines
2405 only if buffer is displayed in some window.
2406
2407 * xdisp.c (handle_single_display_prop): Initialize local `value'.
2408 (try_window_reusing_current_matrix): Don't call scroll run
2409 function if run's current and desired position are the same;
2410 this prevents cursor flickering.
2411
4e8a9132
SM
24122000-03-19 Stefan Monnier <monnier@cs.yale.edu>
2413
2414 * regex.h (RE_TRANSLATE. RE_TRANSLATE_P): Moved to regex.c.
2415
2416 * regex.c (RE_STRING_CHAR): New macro.
2417 (GET_CHAR_AFER_2): Remove.
2418 (RE_TRANSLATE, RE_TRANSLATE_P): New macros moved from regex.h.
2419 (enum re_opcode_t): Remove on_failure_jump_exclusive.
2420 (print_partial_compiled_pattern, re_compile_fastmap)
2421 (re_match_2_internal): Remove on_failure_jump_exclusive.
2422 (regex_compile): Turn optimizable P+ loops into PP*, so that the
2423 optimization only need to work for * (ie. can use of_keep_string_jump).
2424 Remove the special case for .*\n since it is now covered by the general
2425 optimization.
2426 (re_search_2): Don't bother with `room'.
2427 (skip_one_char): New function.
2428 (skip_noops): Simplify since `memory' is not needed any more.
2429 (mutually_exclusive_p): Restructure slightly to use `switch' and
2430 add handling for "all" remaining cases.
2431 (re_match_2_internal): Change on_failure_jump_smart to use
2432 on_failure_keep_string_jump (and redirect the end-of-loop jump)
2433 rather than on_failure_jump_exclusive.
2434
2136fdd4
GM
24352000-03-19 Gerd Moellmann <gerd@gnu.org>
2436
2437 * xfns.c (select_visual): Don't set dpyinfo->n_planes to the
2438 number of bits per RGB because it's everywhere used as the depth
2439 of the visual.
2440
2441 * term.c (calculate_costs): Remove code dealing with X frames.
2442
e53ae11c
RS
24432000-03-19 Richard M. Stallman <rms@caffeine.ai.mit.edu>
2444
2445 * lread.c (syms_of_lread): Doc fix for load-convert-to-unibyte.
2446
d7b511c4
GM
24472000-03-18 Gerd Moellmann <gerd@gnu.org>
2448
2449 * lread.c (read_integer): Unread the last char not consumed.
2450
16b5d424
GM
24512000-03-17 Gerd Moellmann <gerd@gnu.org>
2452
2453 * xterm.c (x_update_window_cursor): Don't update in frames
d7b511c4 2454 which are in the process of being deleted.
16b5d424 2455
1fa28578
GM
24562000-03-16 Gerd Moellmann <gerd@gnu.org>
2457
83488cce
GM
2458 * Makefile.in (mostlyclean): Add `*.core'.
2459 (clean): Add `bootstrap-emacs'.
2460
1fa28578
GM
2461 * lread.c (read_integer): New function.
2462 (read1): Support read syntax #o, #x, #b, #r.
2463
99633e97
SM
24642000-03-15 Stefan Monnier <monnier@cs.yale.edu>
2465
1fa28578
GM
2466 * regex.c (re_match_2): Fix string shortening (to fit `stop') to
2467 make sure POINTER_TO_OFFSET gives the same value before and after
2468 PREFETCH. Use `dfail' to guarantee "atomic" matching.
99633e97
SM
2469 (PTR_TO_OFFSET): Use POINTER_TO_OFFSET.
2470 (debug): Now only active if > 0 rather than if != 0.
2471 (DEBUG_*): Update for the new meaning of `debug'.
1fa28578
GM
2472 (print_partial_compiled_pattern): Add missing `succeed' case. Use
2473 CHARSET_* macros in the charset(_not) branch. Fix off-by-two bugs
2474 in `succeed_n', `jump_n' and `set_number_at'.
99633e97
SM
2475 (store_op1, store_op2, insert_op1, insert_op2)
2476 (at_begline_loc_p, at_endline_loc_p): Add prototype.
1fa28578
GM
2477 (group_in_compile_stack): Move to after its arg's types are
2478 declared and add a prototype.
99633e97 2479 (PATFETCH): Define in terms of PATFETCH_RAW.
1fa28578
GM
2480 (GET_UNSIGNED_NUMBER): Add the usual `do { ... } while(0)'
2481 wrapper.
99633e97 2482 (QUIT): Redefine as a nop except for NTemacs.
1fa28578
GM
2483 (regex_compile): Handle intervals {,M} as if it was {0,M}. Fix
2484 indentation of the greedy-op and shy-group code.
99633e97
SM
2485 (at_(beg|end)line_loc_p): Fix argument's types.
2486 (re_compile_fastmap): Ifdef out failure_stack_ptr to shut up gcc.
2487 (re_search_2): Use POS_AS_IN_BUFFER. Simplify `room' computation.
2488 (MATCHING_IN_FIRST_STRING): Remove.
1fa28578
GM
2489 (re_match_2): Use POS_AS_IN_BUFFER. Ifdef out failure_stack_ptr
2490 to shut up gcc. Use FIRST_STRING_P and POINTER_TO_OFFSET. Use
2491 QUIT unconditionally.
99633e97 2492
699238d9
GM
24932000-03-15 Gerd Moellmann <gerd@gnu.org>
2494
2495 * minibuf.c (Fminibuffer_complete): Set point to ZV if finding
2496 a sole completion.
2497
2498 * process.c (send_process): Add a hint that the function
2499 can call Lisp code to its comment.
2500
2501 * lread.c (load_dangerous_libraries): New variable.
2502 (Vbytecomp_version_regexp): New variable.
2503 (safe_to_load_p): New function.
2504 (Fload): Handle files not compiled with Emacs specially.
2505 (syms_of_lread): New Lisp variable load-dangerous-libraries.
2506
34e23e5a
GM
25072000-03-14 Gerd Moellmann <gerd@gnu.org>
2508
9c763cca
GM
2509 * lisp.h (free_frame_xic) [HAVE_X_I18N]: Add missing semicolon.
2510
2511 * xterm.c (xim_close_dpy, xim_initialize): Use X11R6-style XIM
2512 support functions only if HAVE_X11R6_XIM is defined.
2513 (xim_instantiate_callback): Define only if HAVE_X11R6_XIM.
2514
2515 * s/sol2.h (INHIBIT_X11R6_XIM): Define.
2516
2517 * xfns.c (X_I18N_INHIBITED): Don't define.
2518 (create_frame_xic): Remove conditional compilation on
2519 X_I18N_INHIBITED.
2520 (x_kill_gs_process, x_window): Use FRAME_X_VISUAL.
2521
2522 * config.in (HAVE_X_I18N): Moved here from xterm.h.
2523 (HAVE_X11R6_XIM): Define.
2524
2525 * xterm.h (HAVE_X_I18N) [HAVE_X11R6]: Moved to config.in.
2526
34e23e5a
GM
2527 * xterm.c (x_term_init): Add support for X resource `synchronous'.
2528 If set, call XSynchronize.
2529
66f0296e
SM
25302000-03-13 Stefan Monnier <monnier@cs.yale.edu>
2531
34e23e5a
GM
2532 * regex.c: Declare a new type `re_char' used throughout the code
2533 for the string char type. It's `const unsigned char' to match the
2534 rest of Emacs. Consistently make sure all pointers to strings use
2535 it and make sure all pointers into the pattern use `unsigned
2536 char'.
66f0296e 2537 (re_match_2_internal): Use `PREFETCH+STRING_CHAR' instead of
34e23e5a
GM
2538 GET_CHAR_AFTER_2. Also merge wordbound and notwordbound to reduce
2539 code duplication.
66f0296e
SM
2540
2541 * charset.h (GET_CHAR_AFTER_2): Remove.
2542 (GET_CHAR_BEFORE_2): Use unsigned chars, like everywhere else.
2543
854a025c
KR
25442000-03-12 Ken Raeburn <raeburn@gnu.org>
2545
2546 * Makefile.in (temacs): Evaluate ALL_LDFLAGS into a temporary
2547 variable before the invocation of YMF_PASS_LDFLAGS, in case both
2548 of them try to use backquotes.
2549
b9d2c7e2
DL
25502000-03-12 Dave Love <fx@gnu.org>
2551
2552 * unexelf.c: Restore changes of 1999-10-19.
2553 (unexec): Don't adjust bss for sbss type SHT_PROGBITS; otherwise
2554 fix its type and alignment; copy it from current process.
2555
5e5dff44
GM
25562000-03-12 Gerd Moellmann <gerd@gnu.org>
2557
9b2f3c38
GM
2558 * atimer.c (cancel_atimer): Break out of the loop as soon as timer
2559 has been found. Fix bug not computing timer's predecessor.
2560
427ec082 2561 * fileio.c (Fread_file_name): Handle case that DIR contains a
9172b88d
GM
2562 file name.
2563
e1cff360
GM
2564 * window.c (Fsave_window_excursion): Doc fix.
2565
5e5dff44
GM
2566 * xfns.c (x_defined_color): Rewritten to use
2567 x_allocate_nearest_color.
2568
e411ce4b
EZ
25692000-03-12 Eli Zaretskii <eliz@is.elta.co.il>
2570
2571 * msdos.c (vga_installed): New function, code moved from
2572 dos_set_window_size.
2573 (Qbar, Qcursor_type, outside_cursor): New variables.
2574 (syms_of_msdos): Intern and staticpro them.
2575 (dos_ttraw) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Save the cursor
2576 shape used outside Emacs when called for the first time.
2577 (dos_ttcooked) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Restore the
2578 cursor shape used outside Emacs.
2579 (msdos_set_cursor_shape, IT_set_cursor_type): New functions.
2580 (IT_frame_up_to_date): Call IT_set_cursor_type, in case the cursor
2581 type has changed.
2582 (IT_set_frame_parameters): Call IT_set_cursor_type if the frame
2583 parameters specify the cursor. Make qreverse a global
2584 variable (renamed to Qreverse).
2585
80460654
GM
25862000-03-09 Gerd Moellmann <gerd@gnu.org>
2587
2588 * fns.c (Fy_or_n_p): Cancel busy-cursor.
2589
95cd4c40
SM
25902000-03-08 Stefan Monnier <monnier@cs.yale.edu>
2591
2592 This is a big redesign of failure-stack and register handling, prompted
2593 by bugs revealed when trying to add shy-groups. Overall, what happened
2594 is that loops are now structured a little differently, groups can be
2595 shy and the code is a little simpler.
2596
2597 * regex.h: Update the copyright.
2598 (RE_SHY_GROUPS): New value.
2599 (RE_UNMATCHED_RIGHT_PAREN_ORD): Renumber.
2600 (RE_SYNTAX_EMACS): Add RE_SHY_GROUPS.
2601
80460654
GM
2602 * regex.c (enum re_opcode_t): Remove jump_past_alt,
2603 maybe_pop_jump, push_dummy_failure and dumy_failure_jump. Add
2604 on_failure_jump_(exclusive, loop and smart). Also fix the comment
2605 for (start|stop)_memory since they now only take one argument (the
2606 second has becomes unnecessary).
2607 (print_partial_compiled_pattern): Adjust for changes in
2608 re_opcode_t.
2609 (print_compiled_pattern): Use %ld to printf long ints and flush to
2610 make debugging a little easier.
95cd4c40
SM
2611 (union fail_stack_elt): Make the integer unsigned.
2612 (struct fail_stack_type): Add a `frame' element.
2613 (INIT_FAIL_STACK): Init `frame' as well.
2614 (POP_PATTERN_OP): New macro for re_compile_fastmap.
2615 (DEBUG_PUSH, DEBUG_POP): Remove.
2616 (NUM_REG_ITEMS): Remove.
2617 (NUM_NONREG_ITEMS): Adjust.
80460654
GM
2618 (FAILURE_PAT, FAILURE_STR, NEXT_FAILURE_HANDLE)
2619 (TOP_FAILURE_HANDLE): New macros for the cycle detection.
95cd4c40 2620 (ENSURE_FAIL_STACK): New macro for PUSH_FAILURE_(REG|POINT).
80460654
GM
2621 (PUSH_FAILURE_REG, POP_FAILURE_REG, CHECK_INFINITE_LOOP): New
2622 macros.
2623 (PUSH_FAILURE_POINT): Don't push registers any more. The pattern
2624 address pushed is not the destination of the jump but the source
2625 of it instead.
95cd4c40
SM
2626 (NUM_FAILURE_ITEMS): Remove.
2627 (POP_FAILURE_POINT): Adapt to the new stack structure (i.e. pop
80460654
GM
2628 registers before the actual failure point). Don't hardcode any
2629 meaning for str==NULL anymore.
95cd4c40 2630 (union register_info_type, REG_MATCH_NULL_STRING_P, IS_ACTIVE)
80460654
GM
2631 (MATCHED_SOMETHING, EVER_MATCHED_SOMETHING, SET_REGS_MATCHED):
2632 Remove.
95cd4c40
SM
2633 (REG_UNSET_VALUE): Use NULL (why not?).
2634 (compile_range): Remove declaration since it doesn't exist.
2635 (struct compile_stack_elt_t): Remove inner_group_offset.
2636 (old_reg(start|end), reg_info, reg_dummy, reg_info_dummy): Remove.
2637 (regex_grow_registers): Remove dead code.
2638 (FIXUP_ALT_JUMP): New macro.
80460654
GM
2639 (regex_compile): Add shy-groups Change loops to use
2640 on_failure_jump_smart&jump instead of
2641 on_failure_jump&maybe_pop_jump. Change + loops to eliminate the
2642 initial (dummy_failure_)jump. Remove c1_base (looks like unused
2643 variable to me). Use `jump' instead of `jump_past_alt' and don't
2644 bother with push_dummy_failure in alternatives since it is now
2645 unnecessary. Use FIXUP_ALT_JUMP. Eliminate a useless `#ifdef
2646 emacs' for (re)allocating the stack.
2647 (re_compile_fastmap): Remove dead variables i and num_regs. Exit
2648 from loop when bufp->can_be_null rather than jumping to `done'.
2649 Avoid jumping backwards so as to ensure termination. Use
2650 PATTERN_STACK_EMPTY and POP_PATTERN_OP. Improved handling of
2651 backreferences. Remove dead code in handling of `anychar'.
95cd4c40 2652 (skip_noops, mutually_exclusive_p): New functions taken from the
80460654
GM
2653 handling of `maybe_pop_jump' in re_match_2_internal. Slightly
2654 improve mutually_exclusive_p to handle ".+\n".
2655 (lowest_active_reg, highest_active_reg,
2656 NO_(LOWEST|HIGHEST)_ACTIVE_REG) Remove.
2657 (re_match_2_internal): Use %p instead of 0x%x when printf'ing
2658 ptrs. Don't SET_REGS_MATCHED anymore. Remove many dead
2659 variables. Push register (in `start_memory') on the stack rather
2660 than storing it in old_reg(start|end). Remove the cycle detection
2661 from `stop_memory', replaced by the use of on_failure_jump_loop
2662 for greedy loops. Add code for the new on_failure_jump_<foo>.
2663 Remove ad-hoc code in `on_failure_jump' to push more registers in
2664 the case of a loop. Take out code from `maybe_pop_jump' into
2665 separate functions and adapt it to the semantics of
2666 `on_failure_jump_smart'. Remove jump_past_alt, dummy_failure_jump
2667 and push_dummy_failure. Remove dummy_failure handling and
2668 handling of `failures to jump to on_failure_jump' (this last one
2669 was already dead code, it seems).
2670 (group_match_null_string_p, alt_match_null_string_p)
2671 (common_op_match_null_string_p): Remove.
95cd4c40 2672
7397acc4
DL
26732000-03-08 Dave Love <fx@gnu.org>
2674
2675 * config.in: Don't depend on __STDC__ for volatile.
2676 Add POINTER_TYPE, PTR, PROTOTYPES.
2677
2678 * hftctl.c, strftime.c: Use PROTOTYPES.
2679 * eval.c (find_handler_clause): Likewise.
2680
2681 * mem-limits.h: Use POINTER_TYPE.
2682
2683 * lisp.h (P_): Define based on PROTOTYPES, not __STDC__.
2684 (memory_warnings): Declare using POINTER_TYPE.
2685
5e91ff9e
GM
26862000-03-08 Gerd Moellmann <gerd@gnu.org>
2687
feab4fba
GM
2688 * xfns.c (x_set_cursor_type): If ARG is nil, give frame no cursor.
2689
25edb08f
GM
2690 * xdisp.c (display_echo_area): Temporarily inhibit garbage
2691 collection.
2692
5e91ff9e
GM
2693 * xfns.c: Remove obsolete code in #if 0.
2694 (Fx_focus_frame): New function.
2695
a735b7e1
KH
26962000-03-07 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
2697
2698 * coding.c (coding_category_name): Add coding-category-utf-8,
2699 coding-category-utf-16-be, coding-category-utf-16-le.
2700 (UTF_8_1_OCTET_P, UTF_8_EXTRA_OCTET_P, UTF_8_2_OCTET_LEADING_P,
2701 UTF_8_3_OCTET_LEADING_P, UTF_8_4_OCTET_LEADING_P,
2702 UTF_8_5_OCTET_LEADING_P, UTF_8_6_OCTET_LEADING_P): New macros.
2703 (detect_coding_utf_8): New function.
2704 (UTF_16_INVALID_P, UTF_16_HIGH_SURROGATE_P
2705 UTF_16_LOW_SURROGATE_P): New macros.
2706 (detect_coding_utf_16): New function
2707 (detect_coding_mask): When priorities are specified, skip any
2708 categories that have `nil' coding-system. Fix bug of returning
2709 wrong mask when PRIORITIES is specified and detect_coding_XXX()
2710 returns a mask not set in PRIORITIES.
2711 (detect_eol_type_in_2_octet_form): New function.
2712 (detect_eol): selects detect_eol_type_XXX to call according to
2713 cooding->category_idx.
2714 (detect_coding_system): Remove `nil' coding-system in the result.
2715 (Fupdate_coding_systems_internal): Update all coding-categories.
2716
2717 * coding.h (CODING_CATEGORY_IDX_UTF_8,
2718 CODING_CATEGORY_IDX_UTF_16_BE, CODING_CATEGORY_IDX_UTF_16_LE): New
2719 macros.
2720 (CODING_CATEGORY_IDX_RAW_TEXT, CODING_CATEGORY_IDX_BINARY,
2721 CODING_CATEGORY_IDX_MAX): Adjusted for the above macros.
2722 CODING_CATEGORY_IDX_UTF_16_LE.
2723 (CODING_CATEGORY_MASK_UTF_8, CODING_CATEGORY_MASK_UTF_16_BE,
2724 CODING_CATEGORY_MASK_UTF_16_LE): New macros.
2725 (CODING_CATEGORY_MASK_ANY): Include the above macros.
2726 (CODING_CATEGORY_MASK_UTF_16_BE_LE): New macro.
2727
9994cc69
GM
27282000-03-07 Gerd Moellmann <gerd@gnu.org>
2729
e9b4e5ff
GM
2730 * doc.c (Fdocumentation_property): If value is not a string,
2731 and doesn't refer to etc/DOC, evaluate it to obtain a string.
2732
f7daf1e1
GM
2733 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Don't try to
2734 close the display with XtCloseDisplay. This caused a bus error
2735 on OpenWindows.
2736
9994cc69
GM
2737 * minibuf.c (Fminibuffer_complete): Move point to ZV when input is
2738 complete but not unique.
2739
4336c705
GM
27402000-03-06 Gerd Moellmann <gerd@gnu.org>
2741
18bb0684
GM
2742 * process.c (send_process): Remove local variable `procname' that
2743 might become invalid when a GC happens. Instead, access the
2744 process name slot directly.
2745
4336c705
GM
2746 * xfns.c (x_set_menu_bar_lines_1): Adjust window's orig_top and
2747 orig_height if set.
2748
2749 * frame.c (set_menu_bar_lines_1): Adjust window's orig_top and
2750 orig_height if set.
2751
515d0d0e
EZ
27522000-03-06 Eli Zaretskii <eliz@is.elta.co.il>
2753
2754 * msdos.c (IT_note_mouse_highlight): Return immediately if frame's
2755 glyph matrices have been freed.
2756
100b3cbb
GM
27572000-03-05 Gerd Moellmann <gerd@gnu.org>
2758
50df5e5a 2759 * Makefile.in (tags): Include ../lwlib/TAGS in TAGS.
6178bc23 2760 (bootstrap-temacs): Set LC_ALL to C like for temacs.
50df5e5a
GM
2761
2762 * xfns.c (QCdata): Moved to xdisp.c.
2763
2764 * xdisp.c (QCdata): Moved here from xfns.c.
2765 (syms_of_xdisp): Initialize QCdata.
2766
2767 * frame.h (FRAME_INTERNAL_BORDER_WIDTH) [!HAVE_X_WINDOWS]: Define.
2768
2769 * window.c (coordinates_in_window): Use
2770 FRAME_INTERNAL_BORDER_WIDTH_SAFE instead of
2771 FRAME_INTERNAL_BORDER_WIDTH.
2772
100b3cbb 2773 * xdisp.c (try_window_id): Recompute unchanged information if
4336c705 2774 it is obviously invalid.
100b3cbb
GM
2775
2776 * xterm.c (x_term_init): Create a colormap if not using the
2777 default visual.
2778
2779 * xterm.h (select_visual): Change prototype.
2780
2781 * xfns.c (select_visual): Rewritten. Recognize user-specified
2782 visual classes.
2783 (visual_classes): New variable.
2784
64d739c4
GM
27852000-03-04 Gerd Moellmann <gerd@gnu.org>
2786
2787 * xfns.c (x_defined_color, x_set_mouse_color, lookup_rgb_color)
2788 (lookup_pixel_color, x_laplace, x_build_heuristic_mask)
2789 (png_load): Access colormap of frame using FRAME_X_COLORMAP.
2790 (x_decode_color): Don't handle allocation of white and black
2791 specially.
2792 (x_window) [USE_X_TOOLKIT]: Set XtNvisual, XtNdepth, and
2793 XtNcolormap resources.
2794 (x_window) [!USE_X_TOOLKIT]: Pass colormap to XCreateWindow.
2795 (Fx_create_frame): Initialize color members of x_output structure.
2796 (xpm_load): Pass colormap to XPM lib.
2797
2798 * xfaces.c (x_free_colors): Access colormap of frame using
2799 FRAME_X_COLORMAP. Be paranoid about freeing black and white
2800 when default colormap is used.
2801
2802 * xterm.c (x_term_init): Set Colormap member of x_display_info
2803 structure. Copy colormap if resource `privateColormap' is
2804 specified (PseudoColor only).
2805 (x_setup_relief_color): Access colormap of frame using
2806 FRAME_X_COLORMAP.
2807
2808 * xterm.h (struct x_display_info): Add Colormap member `cmap'.
2809 (FRAME_X_COLORMAP, FRAME_X_VISUAL): New macros.
2810
c3cee013
JR
28112000-03-04 Jason Rumney <jasonr@gnu.org>
2812
2813 * xfaces.c Change many FRAME_X... macros to FRAME_WINDOW... or
2814 other non-platform-specific equivalents.
64d739c4 2815 [WINDOWSNT]: Include w32term.h, fontset.h and define X
c3cee013
JR
2816 specific functions and macros as their w32 equivalents where
2817 non-platform-specifics are not available.
2818 [HAVE_X_WINDOWS]: Change most of these to HAVE_WINDOW_SYSTEM.
2819 (x_create_gc, x_free_gc) [WINDOWSNT]: Add W32 versions.
2820 (clear_font_table) [WINDOWSNT]: Call w32_unload_font.
2821 (frame_update_line_height): Use macros to access f->output_data.
2822 (defined_color): Remove FIXME comments; fixed.
2823 (x_face_list_fonts, prepare_face_for_display): Put X specifics
2824 into #ifdef blocks. Add WINDOWSNT blocks.
2825 (Fx_list_fonts): Use macros for accessing font data.
2826 (set_lface_from_font_name): Different default fonts for X and
2827 WINDOWSNT.
2828 (font_scalable_p) [WINDOWSNT]: Treat wildcard XLFD_AVGWIDTH as
2829 scalable for backward compatibility.
64d739c4 2830 (realize_tty_face) [MSDOS]: Do the same for WINDOWSNT.
c3cee013
JR
2831 (syms_of_xfaces) [WINDOWSNT]: Allow scalable fonts by default.
2832
64d739c4 2833 * emacs.c (main) [HAVE_NTGUI]: Call syms_of_xfaces instead of
c3cee013
JR
2834 syms_of_w32faces.
2835
2836 * makefile.nt (w32faces.obj): Remove.
2837 (xfaces.obj): Add.
2838
807cc41c
JR
28392000-03-03 Jason Rumney <jasonr@gnu.org>
2840
2841 * keyboard.c (make_lispy_event): Call buffer_posn_from_coords with
2842 correct parameters.
2843
0007072a
KR
28442000-03-03 Ken Raeburn <raeburn@gnu.org>
2845
2846 * unexelf.c (PT_LOAD, SHT_*, SHN_*) [__NetBSD__]: Only provide
2847 standard ELF definitions here if the system header does not.
2848
71a6ba55
GM
28492000-03-03 Gerd Moellmann <gerd@gnu.org>
2850
2851 * xterm.c (PER_CHAR_METRIC): Removed.
2852 (x_per_char_metric_1, x_default_char): New functions.
2853 (x_per_char_metric): If font's default char is invalid, return
2854 metrics of a suitably chosen usable default char.
2855 (x_draw_glyph_string_foreground): If font has an invalid default
64d739c4
GM
2856 char, replace occurrences of unprintable chars with a suitably
2857 chosen usable default char.
71a6ba55 2858
900fa1f1
GM
28592000-03-02 Gerd Moellmann <gerd@gnu.org>
2860
42f55fe0
GM
2861 * xterm.c (note_mouse_highlight): Return quickly if frame's
2862 glyph matrices have been freed.
2863
2864 * dispnew.c (free_glyphs): Block input while freeing matrices.
2865
900fa1f1
GM
2866 * xfns.c (x_clear_image, x_kill_gs_process): Use x_free_colors.
2867
2868 * xterm.c (x_alloc_lighter_color, x_setup_relief_color): Use
2869 x_free_colors.
2870
2871 * dispextern.h (x_free_colors): Add prototype.
2872
2873 * xfaces.c (x_free_colors): New function.
2874 (unload_color, free_face_colors): Use it.
2875
2f950292
EZ
28762000-03-02 Eli Zaretskii <eliz@is.elta.co.il>
2877
2878 * msdos.h (FRAME_INTERNAL_BORDER_WIDTH): Define to zero.
2879
2880 * window.c [MSDOS]: Include msdos.h.
2881
54d04320
DL
28822000-03-02 Dave Love <fx@gnu.org>
2883
2884 * m/powerpcle.h, m/sparc.h: Don't set C_OPTIMIZE_SWITCH.
2885
2886 * m/mips-siemens.h, m/news-r6.h, m/news-risc.h, m/tekxd88.h: Don't
2887 set C_OPTIMIZE_SWITCH for gcc.
2888
0ba93ac4
KH
28892000-03-02 Kenichi Handa <handa@etl.go.jp>
2890
2891 * coding.c (coding_save_composition): Be sure to allocate
2892 composition data area in coding even if there's no composition in
2893 the current run.
2894
a2bc11d4
JR
28952000-03-01 Jason Rumney <jasonr@gnu.org>
2896
2897 * w32term.c: Equivalent changes to those made to xterm.c on
2898 2000-02-25 and 2000-02-24.
2899
2900 * w32fns.c: Equivalent changes to those made to xfns.c on
2901 2000-02-25 and 2000-02-21.
2902
2903 * sysdep.c: [WINDOWSNT]: Use sys_read and sys_write to ensure
2904 correct line-end convention is followed.
2905
2906 * w32menu.c [HAVE_BOXES]: Remove #undef.
2907 (single_keymap_panes): Remove code for simulating checkmarks.
2908 (single_menu_item): Remove notbuttons_ptr argument. Callers changed.
2909 Remove code for drawing simulated checkmarks.
2910 (w32_menu_show): make unibyte help string correctly.
2911 (add_menu_item): draw standard Windows checkmarks. Draw radio
2912 buttons as radio buttons if possible.
2913
72d19d75
GM
29142000-03-01 Gerd Moellmann <gerd@gnu.org>
2915
2df636f4
GM
2916 * sysdep.c (start_of_text): Don't define this function for NetBSD
2917 with ELF.
2918
427ec082 2919 * m/pmax.h (START_FILES, CANNOT_DUMP) [__NetBSD__ || __OpenBSD__]:
2df636f4
GM
2920 Don't define.
2921 (UNEXEC) [__NetBSD__ || __OpenBSD__]: Define to unexelf.o.
2922 (LINKER): Don't undef if __NetBSD__ is defined.
2923
2924 * m/mips.h (LINKER) [__NetBSD__ || __OpenBSD__]: Don't define.
2925
2926 * fileio.c [__NetBSD__]: Define `unix'.
2927
72d19d75
GM
2928 * xfns.c (start_busy_cursor): Allow floats for busy-cursor-delay.
2929
ed4d0512
GM
29302000-02-29 Gerd Moellmann <gerd@gnu.org>
2931
50b1039f
GM
2932 * atimer.c (start_atimer): Don't abort when timers are stopped.
2933 (append_atimer_lists): New function.
2934 (cancel_atimer, stop_other_atimers, run_all_atimers): Handle
2935 arbitrary lists of stopped and running atimers.
2936
ed4d0512
GM
2937 * atimer.c (cancel_atimer): Handle canceling an atimer when
2938 some timers are stopped.
2939
2940 * xfns.c (cancel_busy_cursor): Set busy_cursor_atimer to null
2941 after canceling it.
2942
2943 * fns.c (maybe_resize_hash_table): Handle case of new size
2944 coming out as being the same as old size.
2945
387023ee
JR
29462000-02-27 Jason Rumney <jasonr@gnu.org>
2947
2948 * makefile.nt: Add atimer.h to dependencies.
2949 * w32.c (init_environment): Set Vw32_num_mouse_buttons here.
2950 * w32console.c: Only disable window system features for dispextern.h
2951 (initialize_w32_display): Build a display info for the console.
2952 * w32faces.c (tty_defined_color): Apply xfaces.c change from 02-17.
2953 * w32fns.c (w32_wnd_proc) [WM_LBUTTON_DOWN, WM_RBUTTON_DOWN,
2954 WM_LBUTTON_UP, WM_RBUTTON_UP]: Do not treat 4 or more button mice
2955 as 2 button mice.
2956 * w32gui.h (struct W32FontStruct): Revert last change after change
2957 to xdisp.c.
2958 * w32menu.c (single_submenu): Set up help string.
2959 [!HAVE_MULTILINGUAL_MENU]: Don't overwrite item_name with descrip.
2960 (w32_dialog_show): Set up help string.
2961 * w32term.c (w32_display_info_for_display): Remove unused function.
2962 (w32_draw_bitmap): Use pre-built bitmaps.
2963 (w32_initialize_display_info): New function to initialize parts of
2964 display info that are common to both GUI and console frames.
2965 (w32_term_init): Use w32_initialize_display_info. Do not set
2966 Vw32_num_mouse_buttons here, as it is not called for console
2967 frames. Build bitmaps for indicating truncated lines etc.
2968 (x_delete_display): Destroy pre-built bitmaps.
2969 * xdisp.c (handle_single_display_prop): Use FONT_HEIGHT macro.
2970 (echo_area_display): Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM.
2971
4516715a
DL
29722000-02-27 Dave Love <fx@gnu.org>
2973
2974 * lisp.h: Add a bunch of prototypes.
2975
171ca836
KH
29762000-02-26 Kenichi Handa <handa@etl.go.jp>
2977
2978 * keyboard.c (read_char): Set `usec' correctly.
2979
4013921d
KH
29802000-02-25 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
2981
2982 * ccl.c (ccl_driver) [CCL_MapMultiple]: When the mapped value is
2983 `lambda', set reg[RRR] to the map index.
2984 (ccl_driver) [CCL_MapSingle]: When the mapped value is found, set
2985 reg[RRR] to 0. Otherwise, set it to -1.
2986
9244a058
GM
29872000-02-25 Gerd Moellmann <gerd@gnu.org>
2988
2df636f4 2989 * emacs.c (main): Remove code snippet commented out with `//'.
9244a058 2990
f43d79c1 29912000-02-25 Richard M. Stallman <rms@caffeine.ai.mit.edu>
427ec082 2992
f43d79c1
GM
2993 * fileio.c (Ffile_symlink_p): If result starts with a `/'
2994 and contains a `:', prepend `/:'.
2995
2996 * window.c (select_window_1): If selected_window is nil,
2997 don't "swap out" the buffer's point.
2998 (Fset_window_configuration): Set selected_window to nil
2999 before calling Fselect_window.
3000 (unshow_buffer): Don't set point in buffer from window's point
3001 if another more recently selected window also shows the buffer.
3002
bed0c171
GM
30032000-02-25 Gerd Moellmann <gerd@gnu.org>
3004
449c3c52
GM
3005 * keyboard.c (recursive_edit_1): Cancel busy-cursor.
3006
f5b58615
GM
3007 * xfns.c (inhibit_busy_cursor, busy_count): Removed.
3008 (Fx_show_busy_cursor, Fx_hide_busy_cursor): Removed.
3009 (busy_cursor_atimer, busy_cursor_shown_p, Vbusy_cursor_delay): New
3010 variables.
3011 (DEFAULT_BUSY_CURSOR_DELAY): New define.
3012 (start_busy_cursor, cancel_busy_cursor, show_busy_cursor)
3013 (hide_busy_cursor): New functions.
3014 (syms_of_xfns): DEFVAR_LISP Vbusy_cursor_delay.
3015
3016 * minibuf.c (read_minibuf): Cancel busy-cursor.
3017
3018 * keyboard.c (command_loop_1): Call start_busy_cursor before
3019 Fcommand_execute and cancel_busy_cursor after it.
3020 (timer_check): Remove busy-cursor code.
3021 (Fread_key_sequence, Fread_key_sequence_vector): Start/cancel busy
3022 cursor timer.
3023
3024 * process.c (wait_reading_process_input): Remove busy-cursor code.
3025
3026 * eval.c (Fsignal): Call cancel_busy_cursor instead of
3027 Fx_hide_busy_cursor.
3028
3029 * dispextern.h (Fx_show_busy_cursor, Fx_hide_busy_cursor):
3030 Remove prototyoes.
3031 (start_busy_cursor, cancel_busy_cursor): Add prototypes.
3032
3033 * lisp.h (Fx_hide_busy_cursor): Remove prototype.
3034
3035 * xterm.c (XTread_socket): Remove busy-cursor code.
3036
4eb8436f
GM
3037 * dispnew.c (flush_stdout) [GLYPH_DEBUG]: New function.
3038 (build_frame_matrix_from_leaf_window): Put code handling
3039 glyph row's not being a slice of a frame row in #if 0.
3040 (sync_window_with_frame_matrix_rows): New function.
3041 (frame_row_to_window): New function.
3042 (mirror_line_dance): Handle copies between windows.
3043
3cb65b0e
GM
3044 * lread.c (Fload): Use `xfree' instead of `free'.
3045 (init_obarray): Use `xmalloc' instead of `malloc'.
3046
bed0c171
GM
3047 * window.c (Fset_window_buffer): Set WINDOW to the window
3048 after decoding.
2add4349
GM
3049 (coordinates_in_window): Take frame's internal border width
3050 into account.
bed0c171 3051
42088c12
GM
30522000-02-24 Gerd Moellmann <gerd@gnu.org>
3053
3054 * xterm.c (x_display_and_set_cursor): Display cursor of
3055 non-selected windows depending on the setting of
3056 cursor_in_non_selected_windows.
3057
3058 * xdisp.c (cursor_in_non_selected_windows): New variable.
3059 (syms_of_xdisp): DEFVAR_BOOL it.
3060
d1e103b2
GM
30612000-02-23 Gerd Moellmann <gerd@gnu.org>
3062
723e779c
GM
3063 * data.c (Fstring_to_number): If number is greater than what
3064 fits into an integer, return a float.
3065
d1e103b2
GM
3066 * eval.c (specbind): Remove references to
3067 keyword_symbols_constant_flag.
3068
3069 * data.c (keyword_symbols_constant_flag): Removed.
3070 (Fmakunbound, set_internal, syms_of_data): Remove references to
3071 keyword_symbols_constant_flag.
3072
3073 * bytecode.c (Fbyte_code): Remove keyword_symbols_constant_flag.
3074
214f877f
KH
30752000-02-23 Kenichi Handa <handa@etl.go.jp>
3076
3077 * syntax.c (multibyte_syntax_as_symbol): New variable.
3078 (syms_of_syntax): Declare it as a Lisp variable.
3079 (SYNTAX_WITH_MULTIBYTE_CHECK): New macro.
3080 (scan_lists): If both sexpflag and multibyte_syntax_as_symbol are
3081 nonzero, treat all multibyte characters as symbol.
42088c12 3082 (init_syntax_once): Give syntax `word' to all multibyte
214f877f
KH
3083 characters.
3084
130adcb7
EZ
30852000-02-22 Eli Zaretskii <eliz@is.elta.co.il>
3086
3cb65b0e 3087 * frame.c (Fdelete_frame): Don't let echo_area_window remain on
130adcb7
EZ
3088 a deleted frame.
3089
17cbbf95
GM
30902000-02-21 Gerd Moellmann <gerd@gnu.org>
3091
3092 * frame.c (Fmouse_position): GCPRO retval instead of x and y.
3093
3094 * xfns.c (x_window_to_frame, x_any_window_to_frame)
3095 (x_non_menubar_window_to_frame): Check the busy-cursor window.
3096
beb0bc36
DL
30972000-02-21 Dave Love <fx@gnu.org>
3098
3099 * frame.c (Vmouse_position_function): New variable.
3100 (Fmouse_position): Use it.
3101 (syms_of_frame): Install it.
3102
3103 * charset.c (find_charset_in_str): Fix use of `c' instead of `c1'.
3104
1d92afcd
GM
31052000-02-20 Gerd Moellmann <gerd@gnu.org>
3106
3107 * fileio.c (Finsert_file_contents): Unbind the binding of
3108 standard-output done by temp_output_buffer_setup.
329eed9f
GM
3109
3110 * eval.c (funcall_lambda): Don't bind Qmocklisp_arguments unless
3111 Vmocklisp_arguments is nil. Inline Fcar and Fcdr.
3112 (specbind, unbind_to): Handle most common case of non-constant
3113 symbol with trivial value specially.
3114
3115 * bytecode.c (Fbyte_code) <Bvarset>: Inline most common case.
3116
2d06696f
RS
31172000-02-20 Richard M. Stallman <rms@caffeine.ai.mit.edu>
3118
3119 * data.c (Fmake_variable_buffer_local): Doc fix.
3120 Init found_for_buffer to 0.
3121 (Fmake_variable_frame_local): If the variable has already
3122 been buffer-local, set the check_frame field.
3123
1d4311c3
EZ
31242000-02-20 Eli Zaretskii <eliz@is.elta.co.il>
3125
3126 * msdos.c (IT_write_glyphs): Allocate a larger screen_buf as data
3127 produced for CODING_MODE_LAST_BLOCK requires.
3128
2dc95ddd
DL
31292000-02-18 Dave Love <fx@gnu.org>
3130
3131 * keyboard.c (echo_keystrokes): Remove declaration.
3132 (Vecho_keystrokes) New variable.
3133 (read_char, record_menu_key, read_key_sequence): Use it to allow
3134 use of float value.
3135 (syms_of_keyboard): Change Vecho_keystrokes declaration.
3136
3137 * lread.c: Undef feature selection macros before defining.
3138
f0930f35
GM
31392000-02-18 Gerd Moellmann <gerd@gnu.org>
3140
3141 * data.c (let_shadows_buffer_binding_p): Ignore specbindings
3142 for symbols other than the symbol in question.
3143
e3d4de90
DL
31442000-02-17 Dave Love <fx@gnu.org>
3145
3146 * s/sol2.h (C_DEBUG_SWITCH): Define to allow optimization.
3147
0b378936
GM
31482000-02-17 Gerd Moellmann <gerd@gnu.org>
3149
d621caf7
GM
3150 * emacs.c (main): Use #if GC_MARK_STACK instead of #ifdef.
3151
0b378936
GM
3152 * alloc.c (enum mem_type): Compile unconditionally.
3153
3b451f74
EZ
31542000-02-17 Eli Zaretskii <eliz@is.elta.co.il>
3155
3156 * xfaces.c (tty_defined_color): Don't return faulire indication
3157 for unspecified-fg and unspecified-bg pseudo-colors.
3158
10689a01
GM
31592000-02-17 Gerd Moellmann <gerd@gnu.org>
3160
1216f5e4
GM
3161 * alloc.c (mark_object): Don't mark symbol names in pure space.
3162 (gc_sweep): Don't unmark symbol names in pure space.
3163
3164 * lisp.h (GC_USE_GCPROS_AS_BEFORE, GC_MAKE_GCPROS_NOOPS)
3165 (GC_MARK_STACK_CHECK_GCPROS, GC_USE_GCPROS_CHECK_ZOMBIES)
3166 [GC_MARK_STACK]: New defines.
427ec082 3167 (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5, UNGCPRO)
1216f5e4
GM
3168 [GC_MARK_STACK == GC_MAKE_GCPROS_NOOPS]: Define as no-ops.
3169
3170 * emacs.c (main) [GC_MARK_STACK]: Initialize stack_base.
3171
3172 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use
3173 allocate_buffer instead of xmalloc.
3174
3175 * alloc.c (toplevel): Include setjmp.h.
3176 (PURE_POINTER_P): New define.
3177 (enum mem_type) [GC_MARK_STACK]: New enumeration.
3178 (Vdead) [GC_MARK_STACK]: New variable.
3179 (lisp_malloc): Add parameter TYPE, call mem_insert if
3180 GC_MARK_STACK is defined.
3181 (allocate_buffer): New function.
427ec082 3182 (lisp_free) [GC_MARK_STACK]: Call mem_delete.
1216f5e4
GM
3183 (free_float) [GC_MARK_STACK]: Set type to Vdead.
3184 (free_cons) [GC_MARK_STACK]: Set car to Vdead.
3185 (stack_base, mem_root, mem_z) [GC_MARK_STACK]: New variables.
3186 (MEM_NIL) [GC_MARK_STACK]: New define.
3187 (struct mem_node) [GC_MARK_STACK]: New structure.
3188 (mem_init, mem_find, mem_insert, mem_delete, mem_insert_fixup)
3189 (mem_delete_fixup, mem_rotate_left, mem_rotate_right)
3190 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
3191 (live_misc_p, live_vector_p, live_buffer_p, mark_memory)
3192 (mark_stack) [GC_MARK_STACK]: New functions.
3193 (Fgarbage_collect) [GC_MARK_STACK]: Call mark_stack.
3194 (clear_marks): Removed.
3195 (gc_sweep): Set free conses' car, free floats' type, free
3196 symbols' function to Vdead. Use lisp_free to free buffers.
3197 (init_alloc_once): Initialize Vdead.
3198 (survives_gc_p): Return non-zero for pure objects.
3199
3200 * alloc.c: Add comments throughout the file.
3201
2503c8b1
GM
3202 * atimer.c (stop_other_atimers): Don't call cancel_atimer because
3203 that unblocks alarms.
3204
8389e1e2
GM
3205 * alloc.c, bytecode.c, data.c, dispnew.c, ecrt0.c, editfns.c,
3206 emacs.c, floatfns.c, fns.c, lread.c, print.c, config.in, lisp.h,
3207 Makefile.in: Remove `LISP_FLOAT_TYPE' and `standalone'.
3208
10689a01 3209 * frame.c (make_frame): Set frame initiallly to `garbaged'.
427ec082 3210
bfc17d18
KH
32112000-02-17 Kenichi Handa <handa@etl.go.jp>
3212
4a09dee0
KH
3213 * xdisp.c (decode_mode_spec_coding): Delete superfluous code to
3214 avoid infinite error signaling. Allocate sufficient memory for
3215 eol_str in the case that eoltype is Lisp_Int.
bfc17d18 3216
2b927d02
SM
32172000-02-17 Stefan Monnier <monnier@cs.yale.edu>
3218
3219 * syntax.c (Fforward_comment): Undo the previous change, since cc-mode
3220 depends on the previous behavior.
3221
b49cb764
GM
32222000-02-16 Gerd Moellmann <gerd@gnu.org>
3223
3224 * sysdep.c (vfork) [!HAVE_VFORK]: Removed.
3225
99e95407
GM
32262000-02-15 Gerd Moellmann <gerd@gnu.org>
3227
3228 * s/freebsd.h (BROKEN_PTY_READ_AFTER_EAGAIN): Define.
3229
3230 * process.c (send_process) [BROKEN_PTY_READ_AFTER_EAGAIN]:
b49cb764 3231 Workaround for FreeBSD bug. Clear output queue after EAGAIN in
99e95407
GM
3232 write(2).
3233
6ffd3cf7
RS
32342000-02-15 Richard M. Stallman <rms@gnu.org>
3235
3236 * data.c (set_internal): Don't make variable buffer-local
3237 if within a let-binding for the same buffer.
3238 (let_shadows_buffer_binding_p): New function.
3239
3240 * eval.c (specbind): For buffer-local value,
3241 record the current buffer also.
3242 (unbind_to): Cope with that change.
3243
cad53475
GM
32442000-02-15 Gerd Moellmann <gerd@gnu.org>
3245
3246 * window.c (Fsave_window_excursion): Doc fix.
3247
1aa963c8
SM
32482000-02-15 Stefan Monnier <monnier@cs.yale.edu>
3249
3250 * syntax.c (back_comment): Make sure we only consider comment-starters
3251 of the relevant style and return -1 in case of a failure to find the
3252 beginning of the comment.
3253 (Fforward_comment): If back_comment fails, go back to the position just
3254 after the comment-end.
3255 (scan_lists): Add comment describing a very minor bug.
3256
b9b84fd3
SM
32572000-02-14 Stefan Monnier <monnier@cs.yale.edu>
3258
3259 * minibuf.c (Ftry_completion, Fall_completions): Add a reference to
3260 `completion-regexp-list' in the docstring.
3261
3a28db80
DL
32622000-02-14 Dave Love <fx@gnu.org>
3263
3264 * xfaces.c (tty_defined_color): Declare color_idx unsigned long.
3265
fb4a568d
SM
32662000-02-14 Stefan Monnier <monnier@cs.yale.edu>
3267
3268 * regex.h (RE_SYNTAX_EMACS): Add RE_CHAR_CLASSES and RE_INTERVALS
3269 to Emacs' syntax. Also fix the comment about set/not-set meanings
3270 since Emacs syntax is not the value 0 any more.
3271 * search.c (compile_pattern_1): Remove RE_CHAR_CLASSES from the syntax
3272 since it's now part of RE_SYNTAX_EMACS.
3273
1063ebb5
DL
32742000-02-12 Dave Love <fx@gnu.org>
3275
3276 * frame.h (SELECTED_FRAME): Use NULL, not 0 to avoid warnings on
3277 Alpha.
3278
fb07a302
GM
32792000-02-12 Gerd Moellmann <gerd@gnu.org>
3280
3281 * xdisp.c (syms_of_xdisp): Doc fix for scroll-conservatively.
3282
aaf2320c
DL
32832000-02-12 Dave Love <fx@gnu.org>
3284
3285 * s/aix3-2.h, s/osf-1.h: Define C_DEBUG_SWITCH for non-gcc.
3286
3287 * s/ux4800.h, s/umips.h, s/umax.h, s/sol2.h, s/sco5.h, s/rtu.h:
fb07a302
GM
3288 * s/ptx4.h, s/umax.h, s/dgux.h, s/bsd4-2.h, s/bsd4-3.h:
3289 * s/hpux.h: Don't define HAVE_VFORK.
aaf2320c
DL
3290
3291 * s/gnu-linux.h: Don't define HAVE_VFORK or HAVE_SYS_SIGLIST.
3292
3293 * s/nextstep.h: Don't define HAVE_ALLOCA.
3294
3295 * config.in: Add vfork bits.
3296
eedf8bde
GM
32972000-02-12 Gerd Moellmann <gerd@gnu.org>
3298
3299 * process.c (Fopen_network_stream) [POLL_FOR_INPUT]: Register
3300 unwind function to undo the effect of stopping atimers.
3301
3302 * keyboard.c (bind_polling_period): Stop all timers except
3303 poll_timer.
3304
3305 * atimer.c (stopped_atimers): New variable.
3306 (stop_other_atimers, run_all_atimers, unwind_stop_other_atimers):
3307 New functions.
3308
3309 * atimer.h (stop_other_atimers, run_all_atimers)
3310 (unwind_stop_other_atimers): Add function prototypes.
427ec082 3311
eedf8bde
GM
3312 * s/hpux10.h (HAVE_XRMSETDATABASE): Define if not already defined.
3313
8476c2f8
KR
33142000-02-11 Ken Raeburn <raeburn@gnu.org>
3315
3316 * Makefile.in (LIBX): Link in tiff library before jpeg, since tiff
3317 library may depend on jpeg.
3318 (atimer.o): Depends on atimer.c.
3319
0e85e4a3
KH
33202000-02-11 Kenichi Handa <handa@etl.go.jp>
3321
3322 * insdel.c (del_range_1): Call update_compositions.
3323 (del_range_both): Call update_compositions just once..
3324
97fa0cc8
DL
33252000-02-10 Dave Love <fx@gnu.org>
3326
3327 * xfns.c (create_frame_xic): Fix initialization of automatic
3328 aggregates for pcc.
3329
25566a3c
KH
33302000-02-09 Kenichi Handa <handa@etl.go.jp>
3331
3332 * ccl.c (CCL_MAKE_CHAR): New macro.
3333 (ccl_driver) <CCL_TranslateCharacter>: Check the validity of
3334 registers by CCL_MAKE_CHAR before calling translate_char.
3335 <CCL_TranslateCharacterConstTbl> Likewise.
3336
69da54ba
DL
33372000-02-08 Dave Love <fx@gnu.org>
3338
3339 * lread.c (__EXTENSIONS__): Define.
3340
f7136ee8
GM
33412000-02-08 Gerd Moellmann <gerd@gnu.org>
3342
3343 * puresize.h (BASE_PURESIZE): Increase to 650000.
3344
7768790b
EZ
33452000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
3346
3347 * msdos.c (XMenuActivate): Turn off the cursor after displaying
3348 the help message.
3349
38fd211b
EZ
33502000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
3351
3352 * s/msdos.h (INTERNAL_TERMINAL): Add capabilities se, so, us, ue,
3353 md, mh, mb, mr, and me to the fake termcap entry.
3354
66e4690f
KR
33552000-02-06 Ken Raeburn <raeburn@gnu.org>
3356
3357 * sound.c (sound_cleanup): Don't call device close routine if the
3358 function pointer is null.
3359
a75dfea0
AI
33602000-02-06 Andrew Innes <andrewi@gnu.org>
3361
3362 * dispextern.h: Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM,
3363 around image definitions and prototypes.
3364 (gamma_correct) [WINDOWSNT]: New prototype.
3365
3366 * w32term.c (x_make_frame_visible): Replace call to
3367 input_poll_signal with poll_for_input.
3368
3369 * window.c [WINDOWSNT]: Include w32term.h.
3370
3371 * xdisp.c [WINDOWSNT]: Include w32term.h.
3372
3373 * makefile.nt: Add dependencies on w32gui.h.
3374 (OBJ1): Include atimer.obj.
3375 ($(BLD)\atimer.obj): New dependency rule.
3376
3377 * w32.c (sigmask): New function (does nothing).
3378 (sigunblock): Ditto.
3379
3380 * frame.c [WINDOWSNT]: Include w32term.h.
3381
3382 * w32gui.h (struct W32FontStruct): Add ascent and descent slots.
3383
3384 * lread.c (syms_of_lread): Fix literal newlines.
3385
3386 * emacs.c (USAGE): Split into USAGE1 and USAGE2, to work-around
3387 the string constant limit (2048 bytes) in MSVC.
3388 (main): Ditto.
3389
59ddecde
GM
33902000-02-05 INOUE Seiichiro <inoue@ainet.or.jp>
3391
3392 * xterm.c (x_display_and_set_cursor) [HAVE_X_I18N]: Set pre-edit
3393 area.
3394 (x_display_cursor) [HAVE_X_I18N]: Don't set it here.
3395 (XTread_socket) [HAVE_X_I18N]: <KeyPress, KeyRelease>: Don't
3396 dispatch the event.
3397
07590973
DL
33982000-02-04 Dave Love <fx@gnu.org>
3399
3400 * fileio.c: Remove some unused vars.
3401 (_GNU_SOURCE): Define (for euidaccess).
3402
3403 * lread.c (_XOPEN_SOURCE): Declare (for ftello).
3404
3405 * minibuf.c (read_minibuf_noninteractive): Remove undeclared
3406 gcpro1, gcpro2.
3407 (read_minibuf): Deal with allow_props correctly.
3408
649351f9
EZ
34092000-02-03 Eli Zaretskii <eliz@is.elta.co.il>
3410
3411 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Enlarge to 60000.
3412
66e4690f 34132000-02-03 Ken Raeburn <raeburn@gnu.org>
f1b9c7c1
KR
3414
3415 * search.c (compile_pattern): If a cache entry has a nil regexp,
3416 fill in that entry instead of clobbering a previously cached
3417 string regexp.
3418
66e4690f 34192000-02-02 Ken Raeburn <raeburn@gnu.org>
15c9cf81
KR
3420
3421 * puresize.h (BASE_PURESIZE): Increase to 610000.
3422
d240a249
GM
34232000-02-02 Gerd Moellmann <gerd@gnu.org>
3424
3425 * frame.c (Fframe_parameters): Add GCPRO because tty_color_name
3426 can GC.
3427
ca91fb26
KH
34282000-02-02 Kenichi Handa <handa@etl.go.jp>
3429
25660570
KH
3430 * ccl.c (ccl_driver) <CCL_WriteExprRegister>: Set jump_address
3431 instead of incrementing ic directly.
3432 <CCL_WriteExprConst> Likewise.
3433 <ccl_set_expr>: Set ic to jump_address.
3434
ca91fb26
KH
3435 * fileio.c (e_write): Fix the handling of
3436 CODING_FINISH_INSUFFICIENT_SRC.
3437
2ede9689
DL
34382000-02-01 Dave Love <fx@gnu.org>
3439
3440 * editfns.c (Fpropertize): Doc fix.
3441
3442 * process.c (Fstart_process): Doc fix.
3443
3444 * eval.c: Fix various doc strings not to duplicate information
3445 from help-manyarg-func-alist.
3446
3447 * window.c (Fset_window_margins): Don't make interactive. Doc
3448 fix.
3449
3450 * doc.c (Vhelp_manyarg_func_alist): New variable.
3451 (Fdocumentation): Use it.
3452 (syms_of_doc): Define it.
3453
b6680a0e
GM
34542000-01-31 Gerd Moellmann <gerd@gnu.org>
3455
2cb750ba
GM
3456 * xterm.c (xim_open_dpy): Remove unused local variable.
3457
74e9213b
GM
3458 * emacs.c (USAGE): Use term `display options' instead of `X
3459 options'.
3460
3461 * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: New function.
3462 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
3463
b6680a0e
GM
3464 * fns.c (sweep_weak_table): New function.
3465 (sweep_weak_hash_tables): Use it. Keep on marking until there
3466 is no more change.
3467
994c5afe
GM
34682000-01-30 Gerd Moellmann <gerd@gnu.org>
3469
3470 * xterm.c (x_delete_display): Update next_noop_dpyinfo to ensure
3471 that XTread_socket does not crash by trying to call XNoOp on a
3472 closed display.
427ec082 3473
f00276e3
JR
34742000-01-30 Jason Rumney <jasonr@gnu.org>
3475
3476 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
3477 Change selected_frame to SELECTED_FRAME ().
3478 (w32_console_mouse_position): Remove #ifndef MULE from around
3479 `insist' parameter.
3480
3481 * makefile.nt: Remove dosfns.obj.
3482
3483 * term.c (term_init) [WINDOWSNT]: Initialize TN_max_colors.
3484
3485 * w32fns.c (w32_defined_color): Check for valid frame before
3486 applying gamma correction. Eliminate dependency on frame elsewhere.
3487 (w32_load_system_font): Switch FIXED_PITCH and VARIABLE_PITCH.
3488 (w32_to_x_font): Use resx and resy not height_in and width_in.
3489 (x_to_w32_font): Doc fix.
3490 (xlfd_strip_height): New function to strip and return font height.
3491 (w32_font_match): Compare height separately from rest of xlfd
3492 spec, using xlfd_strip_height.
3493
3494 * w32term.c (w32_term_init): Swap resx and height_in, resy and
3495 width_in. Use w32_defined_color in place of defined_color.
3496
3497 * w32faces.c: Merge more of DOS and X specifics in preparation for
3498 merge with xfaces.c.
3499 (defined_color): Remove FIXME comment.
3500 (tty_color_name): Provide w32-specific function.
3501 (realize_tty_face): Handle FACE_TTY_DEFAULT*_COLOR specially.
3502
3503 * w32console.c (turn_on_face, turn_off_face): Removed.
3504 (w32_face_attributes): New function.
3505 (Global_variables): Reduce scope where possible.
3506 (clear_frame, ins_del_lines, scroll_line): Use char_attr_normal as
3507 fill attribute.
3508 (hl_mode): Don't modify text attributes.
3509 (write_glyphs): Don't do anything if len <= 0. Use
3510 w32_face_attributes to get attributes for drawing. Write
3511 terminating codes using char_attr_normal.
3512 (reset_terminal_modes, set_terminal_modes): Turn off highlight.
3513 (update_begin, update_end): Likewise.
3514 (vga_stdcolor_name): New function.
3515 (initialize_w32_display): Remove char_attr_reverse and char_attr.
3516 (Fset_screen_color): Remove char_attr_reverse.
3517
b08e8bb2
GM
35182000-01-29 Gerd Moellmann <gerd@gnu.org>
3519
3520 * xfns.c (xic_set_preeditarea): Take window parameter and
3521 window-relative pixel-positions.
3522
3523 * xterm.c (x_display_cursor): Set XIC pre-edit area only if window
3524 is its frame's selected window.
3525 (xim_instantiate_callback): Likewise.
3526
3527 * xfns.c (x_create_im): Removed.
3528 (DEFAULT_STYLE, DEFAULT_FONT): Removed.
3529 (supported_xim_styles): Renamed from supported_styles.
3530 (best_xim_style): Renamed from best_style.
3531 (create_frame_xic): Renamed from xic_create_frame.
3532 (free_frame_xic): Renamed from xic_destroy_frame.
427ec082 3533
b08e8bb2
GM
35342000-01-29 INOUE Seiichiro <inoue@ainet.or.jp>
3535
3536 * xterm.c (XTread_socket) [HAVE_X_I18N]: If event is for none of
3537 our frames, call XFilterEvent with 2nd parameter `None'.
3538 (XTread_socket) <KeyPress> [HAVE_X_I18N]: Handle XmbLookupString
3539 returning XBufferOverflow.
3540 (XTread_socket) <ConfigureNotify> [HAVE_X_I18N]: Set XIC status
3541 area.
3542 (x_display_cursor) [HAVE_X_I18N]: Set XIC pre-edit area.
3543 (x_new_fontset) [HAVE_X_I18N]: Create XIC status area fontset.
3544 (xim_destroy_callback, xim_open_dpy, xim_instantiate_callback)
3545 (xim_initialize, xim_close)
3546 [HAVE_X_I18N && HAVE_X11R6]: New functions.
3547 (x_destroy_window) [HAVE_X_I18N]: Call xic_destroy_frame.
3548 (x_term_init) [HAVE_X_I18N]: Call xim_initialize.
3549 (x_delete_display) [HAVE_X_I18N]: Call xim_close.
3550
3551 * xterm.h (struct x_display_info) [HAVE_X_I18N]: Add members `xim'
3552 and `xim_styles'.
3553 (struct x_output) [HAVE_X_I18N]: Remove member `xim', add
3554 `xic_style' and `xic_xfs'.
3555 (FRAME_MENUBAR_HEIGHT, FRAME_X_XIM, FRAME_X_XIM_STYLES)
3556 (FRAME_XIC_STYLE, FRAME_XIC_FONTSET): New macros.
3557 (FRAME_XIM): Removed.
3558
3559 * xfns.c (supported_styles): New variable.
3560 (DEFAULT_STYLE, DEFAULT_FONT): New macros
3561 (xic_create_xfontset, best_style, xic_create_frame)
3562 (xic_destroy_frame, xic_set_preeditarea, xic_set_statusarea)
3563 (xic_set_xfontset): New functions.
3564
142e109c
DL
35652000-01-28 Dave Love <fx@gnu.org>
3566
3567 * s/irix6-5.h: Revert last change after change to irix5-0.h.
3568
3569 * m/iris4d.h (C_SWITCH_MACHINE): Don't use -G0.
3570
b02786f9
GM
35712000-01-28 Gerd Moellmann <gerd@gnu.org>
3572
d060bc9f
GM
3573 * buffer.c (Fother_buffer): Don't call Fset_buffer_major_mode
3574 for *scratch* if it already existed.
3575
b02786f9
GM
3576 * emacs.c (USAGE): New macro.
3577 (main): Use it to display usage information.
3578
2c52d7e4
EZ
35792000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
3580
3581 Support for the menu-help feature:
3582
3583 * msdos.h: Change prototypes of XMenuAddSelection and
3584 XMenuActivate.
3585
3586 * msdos.c (IT_clear_end_of_line): Print the extent of the cleared
3587 part of the line to the termscript file.
3588 (IT_clear_to_end): Clear the entire line, not just its beginning.
3589 (menu_help_message, prev_menu_help_message): New variables.
3590 (IT_menu_make_room): Make room for the help_text member.
3591 (IT_menu_display): New argument disp_help; all callers changed.
3592 If disp_help is non-zero, store the help text of the active menu
3593 item in menu_help_message.
3594 (XMenuAddPane): Initialize the help_text member to NULL.
3595 (XMenuAddSelection): New argument help_text. Store it in the
3596 XMenu structure.
3597 (XMenuActivate): New argument help_callback. If the value of
3598 menu_help_message has changed since the last time, display the
3599 menu help message text while waiting for the mouse to move. Clear
3600 the echo area before exiting.
3601 (XMenuDestroy): Free the help_text member.
3602
ffe0bcd1
GM
36032000-01-27 Gerd Moellmann <gerd@gnu.org>
3604
3605 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT]: Pass help to
3606 XMenuAddSelection. Pass help callback to XMenuActivate.
3607 (menu_help_callback) [!USE_X_TOOLKIT]: New function.
3608
50dbd23f
EZ
36092000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
3610
3611 * atimer.c (start_atimer) [!HAVE_SETITIMER]: Use EMACS_SET_SECS
3612 and EMACS_SET_USECS.
3613
f5941bf8
GM
36142000-01-26 Dave Love <fx@gnu.org>
3615
6c67ddee
DL
3616 * editfns.c (Fchar_after, Fchar_before): Doc fix.
3617
f5941bf8
GM
3618 * bytecode.c (Fbyte_code): Use {BEFORE,AFTER}_POTENTIAL_GC where
3619 an error may be signalled.
3620
9e49c990
GM
36212000-01-26 Gerd Moellmann <gerd@gnu.org>
3622
fc3cb460
GM
3623 * s/irix6-5.h [__GNUC__ && __GNUC_MINOR__ >= 95]: Undef
3624 LD_SWITCH_SYSTEM inherited from irix5-0.h.
3625
9e49c990
GM
3626 * bytecode.c (Fbyte_code) [BYTE_CODE_SAFE]: Fix typo.
3627
d0c037d8
GM
36282000-01-25 Gerd Moellmann <gerd@gnu.org>
3629
3630 * charset.c (Fstring): If there is a multibyte char among
3631 the args, always return a multibyte string.
3632
e12489f9
GM
36332000-01-25 Gerd Moellmann <gerd@gnu.org>
3634
3635 * sysdep.c (sys_select): Turn atimers off and on instead of
3636 recording and restoring old alarm handler
3637
3638 * process.c (toplevel): Include atimer.h.
3639 (create_process_1): Rewritten.
3640 (create_process): Use atimers instead of alarm.
3641 (wait_reading_process_input) [hpux]: Turn atimers off instead
3642 of turning off SIGALRM.
3643 (wait_reading_process_input): Turn off atimers instead off
3644 calling stop_polling.
3645
3646 * emacs.c (main): Call init_atimer.
3647
3648 * keyboard.c (toplevel): Include systime.h and atimer.h.
3649 (polling_for_input): Removed because unused.
3650 (input_poll_signal) [POLL_FOR_INPUT]: Removed.
3651 (poll_timer): New variable.
3652 (poll_for_input, poll_for_input_1): New functions.
3653 (start_polling, stop_polling): Rewritten.
3654
3655 * keyboard.h (polling_for_input): Removed.
427ec082 3656
e12489f9
GM
3657 * atimer.h, atimer.c: New files.
3658
3659 * Makefile.in (obj): Add atimer.o.
3660 (atimer.o): New target.
3661
3662 * blockinput.h (pending_atimers): Add extern declaration.
3663 (UNBLOCK_INPUT): Rewritten. Handle pending atimers.
3664
3665 * lisp.h (popup_activated_flag): Add extern declaration.
3666
3667 * xmenu.c (popup_activated_flag): Make externally visible.
3668 (popup_activate_callback) [USE_MOTIF]: Increment
3669 popup_activated_flag.
3670 (popup_deactivate_callback) [USE_MOTIF]: Decrement it.
3671
3672 * xterm.c (toplevel): Include atimer.h.
3673 (toolkit_scroll_bar_interaction): New variable.
3674 (Fxt_process_timeouts): Removed.
3675 (x_process_timeouts): New function.
3676 (xt_action_hook): Clear toolkit_scroll_bar_interaction.
3677 (x_send_scroll_bar_event): Set toolkit_scroll_bar_interaction.
3678 (x_make_frame_visible): Call poll_for_input_1 instead of
3679 input_poll_signal. Don't call alarm.
3680 (x_initialize): Install timer calling x_process_timeouts.
427ec082 3681
1e5279b9
DL
36822000-01-24 Dave Love <fx@gnu.org>
3683
6c67ddee 3684 * s/irix5-0.h: Don't set LD_SWITCH_SYSTEM -- we use unexelf now.
1e5279b9
DL
3685 Don't use -cckr -- apparently not now necessary.
3686
edf6aeb8
EZ
36872000-01-24 Eli Zaretskii <eliz@is.elta.co.il>
3688
3689 * msdos.c (IT_menu_display): Truncate long menu lines at the right
3690 screen boundary.
3691
9badad41
JR
36922000-01-23 Jason Rumney <jasonr@gnu.org>
3693
3694 * w32fns.c (w32_defined_color): Apply gamma correction before
3695 trying to map to the palette.
3696 (w32_wnd_proc) [WM_ERASE_BACKGROUND]: Pass device context of frame
3697 to w32_clear_rect.
3698
3699 * w32term.c (w32_fill_rect): Do not try to deal with NULL hdc
3700 here. Callers changed to always pass real device context.
3701 (w32_draw_bitmap): Likewise.
3702 (w32_get_glyph_overhangs): Likewise.
3703 (w32_draw_box_rect): Make use of s->hdc rather than getting a new
3704 one.
3705 (w32_set_vertical_scroll_bar): Pass correct HWND parameters to
3706 pfnSetScrollInfo and SetScrollRange.
3707 (x_get_char_face_and_encoding): Don't turn iso8859-1 characters
3708 back into MULE characters after decoding them.
3709 (x_get_glyph_face_and_encoding): Likewise.
3710 (w32_per_char_metric): Use GetCharExtentPoint32W as fallback when
3711 GetCharABCWidthsW fails, since this is defined on Windows 9x.
3712 (x_produce_glyphs): Calculate per char metrics for a character
3713 that we know exists in default font when font_not_found_p is true.
3714
63bd786b
JR
37152000-01-22 Jason Rumney <jasonr@gnu.org>
3716
3717 * makefile.nt (intervals.obj, composite.obj): New modules.
3718 (composite.h): Added as dependency where appropriate.
3719
3720 * w32gui.h (XGCValue): New struct for emulating X GCs.
3721
3722 * w32term.h (XCharStruct): New struct for emulating X.
3723
3724 * w32console.c (turn_on_face, turn_off_face): New functions.
3725 (change_line_highlight): New prototype for new redisplay.
3726 (write_glyphs): Support multibyte text. Support faces.
3727
3728 * w32faces.c: Complete rewrite for new redisplay based on new
3729 xfaces.c.
3730
3731 * w32fns.c: Use SELECTED_FRAME macro in place of selected_frame
3732 throughout. struct frame * in place of FRAME_PTR.
3733 Skeleton support for images, toolbars, tooltips from xfns.c.
3734 (Fx_create_frame): Use system default for default scroll bar
3735 width.
3736 (w32_get_arg): Renamed from x_get_arg.
3737 (Fx_file_dialog): New function.
3738 (w32_list_fonts): Check cache before asking system.
3739 (Vw32_enable_synthesized_fonts): New variable.
3740 (Vw32_enable_italics): Obsolete, removed.
3741
3742 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
3743 Use SELECTED_FRAME macro.
3744
3745 * w32menu.c: Add skeleton support for help strings on menus.
3746 (add_menu_item): Native checkbox and radio support added, but not
3747 yet enabled due to bugs.
3748 (push_menu_item): Add parameters type, selection and help.
3749 Callers updated.
3750 Formatting changes to reduce unnecessary diffs with xmenu.c.
3751
3752 * w32select.c (Fw32_set_clipboard_data): Update call to
3753 find_charset_in_str.
3754
3755 * w32term.c: Complete rewrite for new redisplay based on new
3756 xterm.c with necessary sections merged back in from old w32term.c.
3757
6ffd3cf7 37582000-01-21 Richard M. Stallman <rms@gnu.org>
b50c9214
RS
3759
3760 * data.c (set_internal): Further fix in same criterion.
3761
6ffd3cf7 37622000-01-20 Richard M. Stallman <rms@gnu.org>
8cc95642
RS
3763
3764 * data.c (set_internal): Fix the criteria for whether
3765 to swap out the old cached binding.
3766
60af03f1
DL
37672000-01-19 Dave Love <fx@gnu.org>
3768
3769 * lread.c: (syms_of_lread) [user-init-file]: Doc change.
3770
f9be074f
KH
37712000-01-18 Kenichi Handa <handa@etl.go.jp>
3772
3773 * regex.c (re_compile_fastmap): While checking a range table for
3774 `charset', skip flag bits for a character class correctly.
3775
52b8dbf9
GM
37762000-01-17 Gerd Moellmann <gerd@gnu.org>
3777
d36100c9
GM
3778 * m/news-risc.h (LD_SWITCH_MACHINE): Define differently for GCC.
3779
52b8dbf9
GM
3780 * xfns.c (x_window): Call lw_create_widget with new parameter
3781 list.
3782
3783 * widget.c (EmacsFrameSetCharSize): Change size of children first
3784 because of problems with main window geometry management under
3785 Lesstif.
3786
3787 * xmenu.c (enum menu_item_idx): New enumeration replacing defines
3788 MENU_ITEMS_ITEM_.*.
3789 (MENU_ITEMS_ITEM_HELP): New enumerator.
3790 (push_menu_item): Add parameter HELP. Record help in menu_items.
3791 (single_menu_item, single_submenu, list_of_items): Call
3792 push_menu_item with new parameter.
3793 (single_submenu): Set help string in widget value.
3794 (menu_highlight_callback): New function.
3795 (set_frame_menubar): Call lw_create_widget with new
3796 parameter list.
3797 (xmenu_show, xdialog_show): Ditto.
3798
3139018f
GM
37992000-01-13 Gerd Moellmann <gerd@gnu.org>
3800
3801 * sound.c (Fplay_sound): Improve doc string.
3802
83c8f461
RS
38032000-01-11 Richard M. Stallman <rms@gnu.org>
3804
3805 * lisp.h (set_internal): Enter the new arg.
3806
3807 * eval.c (specbind): Record buffer-local variables specially,
3808 indicating which buffer's binding was saved.
3809 (unbind_to): Restore buffer-local variables specially
3810 in the proper buffer.
3811
3812 * data.c (set_internal): New arg BUF.
427ec082 3813
83c8f461
RS
3814 * eval.c (specbind, unbind_to): Pass new arg to set_internal.
3815 * data.c (Fset): Pass new arg to set_internal.
3816 * bytecode.c (Fbyte_code): Pass new arg to set_internal.
427ec082 3817
1fab1775
GM
38182000-01-11 Gerd Moellmann <gerd@gnu.org>
3819
3820 * .gdbinit: Adapt to new strings. Add xbacktrace, xreload,
3821 xprintsym.
3822
83c8f461 38232000-01-11 Richard M. Stallman <rms@gnu.org>
6f59462e
RS
3824
3825 * minibuf.c (Ftry_completion): Doc fix.
3826
7a85e4df
GM
38272000-01-11 Gerd Moellmann <gerd@gnu.org>
3828
3829 * keyboard.c (Fclear_this_command_keys): Clear recent_keys
3830 vector, too.
3831
a970dae4
AS
38322000-01-11 Andreas Schwab <schwab@suse.de>
3833
3834 * coding.c (code_convert_region): Initialize total_skip.
3835
c65d14ee
DL
38362000-01-08 Dave Love <fx@gnu.org>
3837
3838 * eval.c (Fuser_variable_p): Check customizability too.
3839
834938d2
GM
38402000-01-07 Gerd Moellmann <gerd@gnu.org>
3841
3842 * minibuf.c (Fcompleting_read): Doc fix.
3843
e0303cd6
GM
38442000-01-05 Gerd Moellmann <gerd@gnu.org>
3845
8a26744b
GM
3846 * s/freebsd.h (C_SWITCH_SYSTEM): Add -I /usr/local/include and
3847 -L /usr/local/lib.
3848
e0303cd6
GM
3849 * xfns.c (x_create_im): New function to set IM and IC of a frame.
3850 Check that input style is supported before trying to create an
3851 IC for it.
3852 (x_window): Call x_create_im.
427ec082 3853
2e471eb5
GM
38542000-01-04 Gerd Moellmann <gerd@gnu.org>
3855
560a7bd2
GM
3856 * xfns.c (current_gif_memory_src): New variable.
3857 (gif_load): Record the address of the current memory source
3858 in current_gif_memory_src.
3859 (gif_read_from_memory): Use current_gif_memory_src.
3860
f9ee84a3
GM
3861 * systime.h (EMACS_GET_TIME, EMACS_ADD_TIME, EMACS_SUB_TIME): Give
3862 macros statement form.
3863
d1299cde
GM
3864 * sound.c (struct sound): Renamed from struct sound_file.
3865 (struct sound): Add members `data' and `header_size'.
3866 (enum sound_attr): Add SOUND_DATA.
3867 (current_sound, current_sound_device): Variables renamed from
3868 sound_file and sound_device.
3869 (parse_sound): Parse :data.
3870 (parse_sound): Handle sound data in strings.
3871 (find_sound_type): Function renamed from find_sound_file_type.
427ec082 3872 (wav_init, au_init): Fail if sound's header_size is smaller than
d1299cde
GM
3873 needed header size.
3874 (wav_play, au_play): Play sounds from string data.
3875
2e471eb5
GM
3876 * puresize.h (BASE_PURE_SIZE): Increase to 600000.
3877
3878 * lisp.h: Add prototype for allocate_string_data.
3879
3880 * alloc.c (Fgarbage_collect): Return number of live and free
3881 strings.
3882
3883 * alloc.c (mark_buffer): Remove code in #if 0.
3884 (gc_sweep): Ditto.
3885 (UNMARK_BALANCE_INTERVALS): Give the macro statement form.
3886 (strings_consed): New variable.
3887 (allocate_string): Set it.
3888 (syms_of_alloc): Add DEFVAR_INT for strings_consed.
3889 (Fmemory_use_counts): Return strings_consed. Use Flist.
3890
3891 * alloc.c: General cleanup in comments etc. Remove conditional
3892 compilation for `standalone'.
3893
3894 * lisp.h (struct Lisp_String): Make DATA member `unsigned char *'.
3895
3896 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P):
3897 (GC_STRING_BYTES, GC_STRING_CHARS): New macros.
3898 (DONT_COPY_FLAG): Removed.
3899 (SBLOCK_SIZE, LARGE_STRING_BYTES): New macros.
3900 (struct sdata, struct sblock): New
3901 (struct string_block): Rewritten.
3902 (STRINGS_IN_STRING_BLOCK): New macro.
3903 (oldest_sblock, current_sblock, total_strings, total_free_strings)
3904 (large_sblocks, string_blocks, string_free_list): New variables.
3905 (NEXT_FREE_LISP_STRING, SDATA_OF_STRING, SDATA_SIZE): New macros.
3906 (init_strings): Rewritten.
3907 (allocate_string, allocate_string_data, compact_small_strings)
3908 (free_large_strings, sweep_strings): New functions.
3909 (STRING_BLOCK_SIZE, STRING_BLOCK_OUTSIZE)
3910 (struct string_block_head, current_string_block)
3911 (first_string_block, large_string_blocks, STRING_FULLSIZE)
3912 (STRING_PAD): Removed.
3913 (make_uninit_multibyte_string, make_pure_string): Rewritten.
3914 (Fgarbage_collect): Don't set mark bit in large strings.
3915 (mark_object): Mark strings differently. Mark symbol names
3916 differently.
3917 (survives_gc_p): Test marked strings differently.
427ec082 3918 (gc_sweep): Sweep strings differently, unmark strings in
2e471eb5
GM
3919 symbol names.
3920 (compact_strings): Removed.
3921
42608ba8
EZ
39222000-01-04 Eli Zaretskii <eliz@is.elta.co.il>
3923
3924 * xfaces.c (syms_of_xfaces): defsubr Scolor_gray_p and
3925 Scolor_supported_p even if HAVE_X_WINDOWS is not defined.
3926
e0a09e1a
KH
39272000-01-04 Kenichi Handa <handa@etl.go.jp>
3928
dd9f0750 3929 * fileio.c (Finsert_file_contents): Signal error if visiting file
427ec082 3930 in a non-empty buffer.
dd9f0750 3931
3c0f3b15 3932 * term.c (encode_terminal_code): Fix the previous change.
e0a09e1a 3933
44cd3ae5
GM
39342000-01-03 Gerd Moellmann <gerd@gnu.org>
3935
3936 * xfaces.c (syms_of_xfaces): Change Sface_color_gray_p to
3937 Scolor_gray_p, Sface_color_supported_p to Scolor_supported_p.
3938
3939 * s/hpux9.h (NO_EDITRES): Define even if HAVE_LIBXMU.
3940
c182a70f
EZ
39412000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
3942
3943 * xdisp.c (handle_single_display_prop) [HAVE_WINDOW_SYSTEM]: No
3944 need to test for MSDOS frames.
3945
24480d5b
EZ
39462000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
3947
3948 * dosfns.c (unspecified_colors): Remove.
3949 (msdos_stdcolor_idx): Use global variables unspecified_fg and
3950 unspecified_bg.
3951 (msdos_stdcolor_name): Return strings for unspecified fore- and
3952 back-ground colors.
3953
3954 * xfaces.c (Qunspecified_fg, Qunspecified_bg): Remove.
aaf2320c 3955 (syms_of_xfaces): Remove their staticpro's.
24480d5b
EZ
3956 (tty_color_name): Return Lisp strings for unspecified fore- and
3957 back-ground colors.
3958 (Finternal_set_lisp_face_attribute): Remove the special treatment
3959 for Qunspecified_{f,b}g.
3960 (realize_default_face): Replace Qunspecified_{f,b}g with a Lisp
3961 string.
3962
047f434a
GM
39632000-01-03 Gerd Moellmann <gerd@gnu.org>
3964
3965 * xdisp.c (reseat_at_next_visible_line_start): Position before
3966 newline only if ending up on a newline.
3967 (next_element_from_ellipsis): Return success. Handle case of
3968 displaying no ellipsis. Fix case of ellipsis defined in display
3969 table.
3970 (next_element_from_buffer): Return 0 if next_element_from_ellipsis
3971 returns 0.
3972
d684c676
EZ
39732000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
3974
3975 * xfaces.c (Fcolor_gray_p): Renamed from face-color-gray-p.
3976 (Fcolor_supported_p): Renamed from face-color-supported-p.
3977
5fe1d139
EZ
39782000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
3979
3980 * xfaces.c (tty_defined_color): Pass frame to tty-color-desc. The
3981 list of colors renamed to tty-defined-color-alist.
3982 (tty_color_name): Pass the frame to tty-color-by-index.
3983 (realize_tty_face): tty-color-alist is now a function which
3984 accepts the frame as argument.
3985
3986 * term.c (Ftty_display_color_p): Accept an optional argument
3987 FRAME.
3988
816be8b8
EZ
39892000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
3990
3991 * term.c (insert_glyphs): Pass glyph, not &glyph, to
3992 encode_terminal_code.
3993
b635321e
EZ
39942000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
3995
3996 * dispnew.c (mode_line_string): Support termcap frames as well.
3997
9b784e96
GM
39982000-01-01 Gerd Moellmann <gerd@gnu.org>
3999
27189709
GM
4000 * syntax.c (Fforward_word): Undo previous change.
4001
4002 * editfns.c (Fconstrain_to_field): Don't constrain if
4003 inhibit-field-text-motion is non-nil.
4004 (Fline_beginning_position): Undo previous change.
4005 (Fline_end_position): Ditto.
4006
4007 * syntax.c (Fforward_word): Notice field boundaries only if
4008 inhibit-field-text-motion is nil.
4009
4010 * lisp.h: Add extern declaration for Vinhibit_field_text_motion.
4011
4012 * editfns.c (Vinhibit_field_text_motion): New variable.
4013 (inhibit-field-text-motion): New DEFVAR_LISP.
4014 (Fline_beginning_position, Fline_end_position): Notice field
4015 boundaries only if inhibit-field-text-motion is nil.
4016
45158a91
GM
4017 * xfns.c (x_create_x_image_and_pixmap): Remove parameter FILE.
4018 All calls adjusted.
4019 (x_build_heuristic_mask): Likewise.
4020 (xbm_load_image_from_file): Change error output.
4021 (xbm_load, xpm_load, pbm_load, png_load, jpeg_load, tiff_load)
4022 (gif_load, gs_load, x_kill_gs_process): Ditto.
4023
9b784e96
GM
4024 * xfns.c (gif_load): Avoid sign extension and thus out of bounds
4025 color indices when accessing raster pixels.
63cec32f
GM
4026 (gif_image_p, png_image_p, jpeg_image_p, tiff_image_p): Allow only
4027 one of :file or :data.
4028 (enum pbm_keyword_index): Add PBM_DATA.
4029 (pbm_format): Add :data.
4030 (pbm_image_p): Allow either :file or :data.
4031 (pbm_read_file): New function.
4032 (pbm_scan_number): Rewritten to read from string.
4033 (pbm_load): Support :data.
9b784e96 4034
5ad6a5fb
GM
40351999-12-31 Gerd Moellmann <gerd@gnu.org>
4036
4037 * xfns.c: New image functions adapted to Emacs conventions.
4038 (png_load, tiff_load, jpeg_load, gif_load): Always GCPRO local
4039 variable `file'.
4040
63448a4d
WP
40411999-12-31 William M. Perry <wmperry@aventail.com>
4042
4043 * xfns.c (jpeg_format): Added the :data keyword
4044 (jpeg_image_p): JPEG is valid with :file _or_ :data
4045 (jpeg_memory_src): Defined new JPEG image source to read from a
4046 memory buffer.
4047 (jpeg_load): Pay attention to the :data keyword if specified.
4048 Instantiates a jpeg_memory_src instead of jpeg_stdio_src if
4049 found.
4050 (png_format): Added the :data keyword
4051 (png_image_p): PNG is valid with :file _or_ :data
4052 (png_read_from_memory): New PNG read function to read from a
4053 memory buffer.
4054 (png_load): Pay attention to the :data keyword if specified. Uses
4055 png_set_read_fn() instead of png_init_io() if specified.
4056 (tiff_format): Added the :data keyword for TIFF images.
4057 (tiff_image_p): TIFF is valid with :file _or_ :data
4058 (tiff_read_from_memory): Defined new TIFF I/O functions to read
4059 from a memory buffer.
4060 (tiff_load): Pay attention to the :data keyword if specified.
4061 Uses TIFFClientOpen() instead of TIFFOpen() if specified.
4062 (gif_format): Added the :data keyword
4063 (gif_image_p): GIF is valid with :file _or_ :data
4064 (gif_read_from_memory): New GIF input function to read from a
4065 memory buffer.
c65d14ee 4066 (gif_load): Pay attention to the :data keyword. Uses DGifOpen()
63448a4d
WP
4067 instead of DGifOpenFileName() if specified.
4068
c880678e
GM
40691999-12-31 Gerd Moellmann <gerd@gnu.org>
4070
4071 * xdisp.c (next_element_from_buffer): Change assertion at the end
4072 because it doesn't hold when there's an overlay string at the end
4073 from which we deliver an image.
4074
8ccb9a54
EZ
40751999-12-30 Eli Zaretskii <eliz@is.elta.co.il>
4076
4077 * msdos.c (IT_update_begin): Don't dereference members of struct
4078 window for deleted windows.
4079
12ce2351
GM
40801999-12-30 Gerd Moellmann <gerd@gnu.org>
4081
a915c648
GM
4082 * abbrev.c (Fexpand_abbrev): If expanding an abbrev which has only
4083 a hook, and the hook has a non-nil `no-self-insert' property, let
4084 the return value of the hook specify whether an expansion took
4085 place. If it returns nil, no expansion has been performed.
4086
12ce2351
GM
4087 * xterm.c (x_make_frame_visible): Wait for frame becoming visible
4088 differently.
4089
04ee4f45
EZ
40901999-12-30 Eli Zaretskii <eliz@is.elta.co.il>
4091
4092 * msdos.c (IT_write_glyphs): Track last changes to struct glyph.
4093
7f4bc0c3
EZ
40941999-12-29 Eli Zaretskii <eliz@is.elta.co.il>
4095
4096 * dispnew.c (mode_line_string): Support MS-DOS frames.
4097
dac204bc
GM
40981999-12-29 Gerd Moellmann <gerd@gnu.org>
4099
4100 * eval.c (syms_of_eval): Initialize debugger_may_continue.
4101
7b712ad8
KH
41021999-12-29 Kenichi Handa <handa@etl.go.jp>
4103
4104 * process.c (read_process_output): Fix the args CHARPOS and LENINS
4105 to signal_after_change.
4106
adb9900f
EZ
41071999-12-28 Eli Zaretskii <eliz@is.elta.co.il>
4108
41ad069b
EZ
4109 * msdos.c (dos_set_window_size) [__DJGPP__ > 1]: If the frame
4110 dimensions changed, invalidate the mouse highlight info.
4111 (disable_mouse_highlight, help_echo, previous_help_echo): New
4112 variables.
4113 (IT_set_mouse_pointer, show_mouse_face, clear_mouse_face)
4114 (fast_find_position, IT_note_mode_line_highlight)
4115 (IT_note_mouse_highlight): New functions.
4116 (IT_update_begin): If the redisplay affects the window where the
4117 mouse highlight is, clear the highlight. If the frame where the
4118 highlight was displayed was killed, invalidate the highlight
4119 info.
4120 (IT_update_end): Reset the highlight flag. Reset the mouse
4121 highlight-defer flag.
4122 (IT_frame_up_to_date): New function, if mouse highlight was
4123 deferred due to GC, do it now.
4124 (internal_terminal_init): Initialize mouse-highlight related
4125 members of the_only_x_display. Assign IT_frame_up_to_date to
4126 frame_up_to_date_hook.
4127 (dos_rawgetc): If the mouse moved, update mouse highlight. If
4128 help_echo changed value, generate a HELP_EVENT event.
4129 (syms_of_msdos): Staticpro help_echo and previous_help_echo.
4130
adb9900f
EZ
4131 * msdos.h (struct display_info): New.
4132 (struct x_output): Add the display_info member.
4133 (FRAME_X_DISPLAY_INFO): New macro.
4134
481b5054
GM
41351999-12-28 Gerd Moellmann <gerd@gnu.org>
4136
4137 * xdisp.c (try_window_id): Compute BEG_UNCHANGED and END_UNCHANGED
4138 if MODIFF > 1.
6448a6b3 4139 (dump_glyph_row): Adapt to changes in struct glyph.
481b5054
GM
4140
4141 * buffer.c (modify_overlay): Always compute unchanged info.
4142
a2882b0d
KH
41431999-12-27 Kenichi Handa <handa@etl.go.jp>
4144
4145 * dispextern.h (FACE_FROM_ID): Cast the arg ID to `unsigned'.
4146
89ba5b5f
KH
41471999-12-27 Kenichi Handa <handa@etl.go.jp>
4148
4149 The following changes are to use more bits for face IDs.
4150
4151 * lisp.h (GLYPH): Defined as `int', not `unsigned int'. Now the
4152 lowest 8 bits are single byte character code, the bits above are
4153 face ID.
481b5054 4154 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjusted for the change
89ba5b5f 4155 above.
481b5054
GM
4156 (FAST_MAKE_GLYPH, FSST_GLYPH_FACE): Likewise.
4157 (GLYPH_MASK_REV_DIR, GLYPH_MASK_PADDING): Macros deleted.
89ba5b5f
KH
4158
4159 * charset.h (CHAR_BYTES): Use ((1 << CHARACTERBITS) - 1) instead
4160 of GLYPH_MASK_CHAR.
4161
4162 * charset.c (char_bytes): Use ((1 << CHARACTERBITS) - 1) instead
4163 of GLYPH_MASK_CHAR.
4164
4165 * dispextern.h (struct glyph): Make face_id and padding_p the top
4166 level members. Change members in union `u'.
4167 (GLYPH_EQUAL_P): Check also members face_id and padding_p.
4168 (GLYPH_CHAR_AND_FACE_EQUAL_P): New macro.
4169 (SET_CHAR_GLYPH): Adjusted for the change of struct glyph.
4170 (CHAR_GLYPH_PADDING_P): Likewise.
4171 (GLYPH_FROM_CHAR_GLYPH): Likewise. Always return -1 for multibyte
4172 characters.
4173
481b5054 4174 * dispnew.c (line_hash_code, direct_output_for_insert): Adjusted
89ba5b5f
KH
4175 for the change of struct glyph.
4176 (line_draw_cost): Adjusted for the change of
4177 GLYPH_FROM_CHAR_GLYPH.
4178 (count_match): Use macro GLYPH_CHAR_AND_FACE_EQUAL_P.
4179
4180 * term.c (encode_terminal_code): Adjusted for the change of struct
4181 glyph and GLYPH_FROM_CHAR_GLYPH.
481b5054 4182 (write_glyphs, insert_glyphs, append_glyph): Adjusted for the
89ba5b5f
KH
4183 change of struct glyph.
4184
4185 * xdisp.c: All codes adjusted for the change of struct glyph.
4186
4187 * xterm.c: All codes adjusted for the change of struct glyph.
4188
5bcd116c
KH
41891999-12-27 Kenichi Handa <handa@etl.go.jp>
4190
4191 * composite.h (struct composition): Change the order of declaring
4192 members to reduce the byte size of the structure.
4193
f21b06b7
GM
41941999-12-25 Gerd Moellmann <gerd@gnu.org>
4195
4196 * search.c (looking_at_1): Reset immediate_quit before modifying
4197 global data.
4198
e36557c9
KH
41991999-12-24 Kenichi Handa <handa@etl.go.jp>
4200
4201 * process.c (read_process_output): Fix the arg FROM to
4202 update_compositions.
4203
83c8f461 42041999-12-22 Richard M. Stallman <rms@gnu.org>
f7c9e039
RS
4205
4206 * search.c (Freplace_match): For nonliteral replacement in buffer,
4207 construct all the new text first, then insert all at once.
4208
0b863bd9
DL
42091999-12-22 Dave Love <fx@gnu.org>
4210
4211 * xfns.c (Fx_show_tip): Gcpro `timeout' too.
4212
6d8e8ef3
GM
42131999-12-22 Gerd Moellmann <gerd@gnu.org>
4214
28d7281d
GM
4215 * xfns.c (Fx_create_frame): Move x_default_parameter calls that
4216 lead to size changes to after the X window has been created.
4217
e22ef6eb 4218 * xfaces.c (realize_x_face): Don't use uninitialized local
6d8e8ef3
GM
4219 variable in xassert.
4220
8affcced
KH
42211999-12-22 Kenichi Handa <handa@etl.go.jp>
4222
4223 * xfaces.c (face_color_supported_p): Check by tty_defined_color
6d8e8ef3 4224 only when the frame is not for a window system.
8affcced 4225
f2be1146
GM
42261999-12-22 Gerd Moellmann <gerd@gnu.org>
4227
deca1348
GM
4228 * buffer.c (Fset_buffer_multibyte): Arrange for a thorough
4229 redisplay after changing the multibyteness of a buffer.
4230
f2be1146
GM
4231 * xterm.c (XTread_socket): At the beginning of the loop, pass the
4232 frame's X window to XFilterEvent instead of None because that's
4233 the X window for which the IC was created. This makes dead
4234 accents work when the pointer is not in Emacs' frame.
4235 (XTread_socket) <KeyPress>: Don't call XFilterEvent here.
4236
a744a2ec
DL
42371999-12-20 Dave Love <fx@gnu.org>
4238
4239 * xfns.c (Fx_show_tip): Add missing UNGCPRO.
4240
9e6985ed
GM
42411999-12-19 Gerd Moellmann <gerd@gnu.org>
4242
4243 * eval.c (debugger_may_continue): New variable.
4244 (syms_of_eval): Add a DEFVAR_BOOL for it.
4245 (call_debugger): Bind it.
4246
3b620731
EZ
42471999-12-19 Eli Zaretskii <eliz@is.elta.co.il>
4248
4249 * msdos.c (IT_set_face): Don't swap face colors when highlight or
4250 fp->tty_reverse_p is set, unless the computed colors are identical
4251 to frame colors. Print both original and computed colors to
4252 termscript file.
4253 (IT_write_glyphs): Track the changes in handling of composite
4254 characters.
4255 (IT_set_frame_parameters): Don't set frame colors from
4256 unspecified-fg and unspecified-bg pseudo-colors.
4257
0f9a51c4
DL
42581999-12-17 Dave Love <fx@gnu.org>
4259
4260 * data.c (Fkeywordp): New function.
4261 (syms_of_data): Install it.
4262
363e4e42
EZ
42631999-12-16 Eli Zaretskii <eliz@is.elta.co.il>
4264
4265 * xfaces.c (tty_defined_color): Fix last change.
4266
cfad01b4
GM
42671999-12-15 Gerd Moellmann <gerd@gnu.org>
4268
4269 * xdisp.c (redisplay_window) <optional new window start>: Check
4270 that window start is in [BEGV..ZV].
4271
f9d2fdc4
EZ
42721999-12-15 Eli Zaretskii <eliz@is.elta.co.il>
4273
4274 * dispextern.h (FACE_TTY_DEFAULT_FG_COLOR)
4275 (FACE_TTY_DEFAULT_BG_COLOR): New macros.
4276
4277 * xfaces.c (Qunspecified_fg, Qunspecified_bg): New variables.
4278 (syms_of_xfaces): Initialize and staticpro them.
4279 (tty_defined_color): If the color name is unspecified-fg or
4280 unspecified-bg, return FACE_TTY_DEFAULT_FG_COLOR and
4281 FACE_TTY_DEFAULT_BG_COLOR, respectively, as the pixel value.
4282 (tty_color_name): If the color pixel value is either
4283 FACE_TTY_DEFAULT_FG_COLOR or FACE_TTY_DEFAULT_BG_COLOR, return
4284 Qunspecified_fg or Qunspecified_bg, respectively.
4285 (Finternal_set_lisp_face_attribute): Allow values Qunspecified_fg
4286 and Qunspecified_bg for foreground and background colors.
4287 (realize_default_face): If the foreground and background colors
4288 are not specified, default to Qunspecified_fg and Qunspecified_bg.
4289 (realize_tty_face): By default, set the face colors to
4290 FACE_TTY_DEFAULT_FG_COLOR and FACE_TTY_DEFAULT_BG_COLOR.
4291 [MSDOS]: Handle FACE_TTY_DEFAULT_FG_COLOR and
4292 FACE_TTY_DEFAULT_BG_COLOR when face colors are not defined.
4293 Reverse the colors if the default colors were reversed.
4294
4295 * dispnew.c (init_display): Initialize the frame pixels of the
4296 initial frame to FACE_TTY_DEFAULT_FG_COLOR and
4297 FACE_TTY_DEFAULT_BG_COLOR.
4298
4299 * term.c (turn_on_face): If the default fore- and background
4300 colors are reversed, enter inverse video mode. Don't send color
4301 escape sequences for unspecified foreground and background colors.
4302 (turn_off_face): Handle unspecified-fg and unspecified-bg colors.
4303
4304 * dosfns.c (unspecified_colors): New variable.
4305 (msdos_stdcolor_idx): Handle unspecified-fg and unspecified-bg
4306 color names, return FACE_TTY_DEFAULT_FG_COLOR and
4307 FACE_TTY_DEFAULT_BG_COLOR, respectively.
4308 (msdos_stdcolor_name): Handle FACE_TTY_DEFAULT_FG_COLOR and
4309 FACE_TTY_DEFAULT_BG_COLOR, return Qunspecified_fg and
4310 Qunspecified_bg, respectively.
4311
4312 * msdos.c (IT_set_face): Support FACE_TTY_DEFAULT_FG_COLOR and
4313 FACE_TTY_DEFAULT_BG_COLOR as pixel values.
4314
e19539f1
KH
43151999-12-15 Kenichi Handa <handa@etl.go.jp>
4316
4317 * coding.c (code_convert_region): Fix the secoding arg to
4318 update_compositions.
4319
5ec14d3c
KH
43201999-12-15 Kenichi Handa <handa@etl.go.jp>
4321
4322 The following changes are for the new composition mechanism. We
4323 have deleted `composition' charset and composite characters,
4324 instead introduced a special text property `composition'.
4325
4326 * Makefile.in (INTERVAL_SRC): Include composite.h.
4327 (INTERVAL_OBJ): Include composite.o.
4328 (SOME_MACHINE_OBJECTS): Include composite.o.
4329 (casefiddle.o) (dispnew.o) (indent.o) (process.o) (search.o)
4330 (syntax.o) (window.o) (xdisp.o) (xfaces.o) (xterm.o) (print.o):
4331 Depend on composite.h.
4332 (doc.o): Depend on charset.h.
4333 (keyboard.o) (textprop.o) (intervals.o): Depend on INTERVAL_SRC.
4334 (composite.o): New target.
427ec082 4335
5ec14d3c
KH
4336 * alloc.c (Fmake_string): Adjusted for the change of CHAR_STRING.
4337
4338 * callproc.c (Fcall_process): Call code_convert_string to encode
4339 arguments. Use CODING_REQUIRE_DECODING to check if the process
4340 output should be decoded.
4341
4342 * casefiddle.c: Include composite.h.
4343 (casify_object): Use MAX_MULTIBYTE_LENGTH to allocate memory for a
4344 multibyte character. Adjusted for the change of CHAR_STRING.
4345 (casify_region): Likewise. Call update_compositions.
4346
4347 * category.h (CATEGORY_SET): Delete codes for a composite
4348 character.
4349
4350 * category.c (word_boundary_p): Delete codes for a composite
4351 character.
4352 (Fmake_category_table): New function.
4353 (syms_of_category): Defsubr it.
4354
4355 * ccl.c (CCL_WRITE_CHAR): Adjusted for the change of CHAR_STRING.
4356 (ccl_driver): Delete codes for a composite character.
4357
4358 * charset.h: In this entry, just `Modified' means that codes for a
4359 composite character is deleted.
4360 (LEADING_CODE_COMPOSITION) (CHARSET_COMPOSITION)
4361 (charset_composition) (MIN_CHAR_COMPOSITION)
4362 (MAX_CHAR_COMPOSITION) (GENERIC_COMPOSITION_CHAR)
4363 (COMPOSITE_CHAR_P) (MAKE_COMPOSITE_CHAR) (COMPOSITE_CHAR_ID)
4364 (PARSE_COMPOSITE_SEQ) (PARSE_CHARACTER_SEQ): Deleted.
4365 (MAX_CHAR) (CHARSET_VALID_P) (CHARSET_DEFINED_P) (CHARSET_AT)
4366 (FIRST_CHARSET_AT) (SAME_CHARSET_P) (MAKE_NON_ASCII_CHAR)
4367 (PARSE_MULTIBYTE_SEQ) (SPLIT_NON_ASCII_CHAR) (CHAR_PRINTABLE_P):
4368 Modified.
4369 (SPLIT_STRING): Call split_string, not split_non_ascii_string.
4370 (CHAR_STRING): Delete WORKBUF argument. Call char_string, not
4371 non_ascii_char_to_string.
4372 (STRING_CHAR): Call string_to_char, not string_to_non_ascii_char.
4373 (STRING_CHAR_AND_LENGTH): Likewise.
4374 (FETCH_CHAR_ADVANCE): New macro.
4375 (MAX_COMPONENT_COUNT) (struct cmpchar_info): Deleted.
4376 (MAX_MULTIBYTE_LENGTH): New macro.
4377 (MAX_LENGTH_OF_MULTI_BYTE_FORM): Deleted.
4378 (find_charset_in_str): Argument adjusted.
4379 (CHAR_LEN): Modified.
427ec082 4380
5ec14d3c
KH
4381 * charset.c: In this entry, just `Modified' means that codes for a
4382 composite character is deleted.
4383 (Qcomposition) (leading_code_composition)
4384 (charset_composition) (min_composite_char) (cmpchar_table)
4385 (cmpchar_table_size) (n_cmpchars): Deleted.
4386 (SPLIT_COMPOSITE_SEQ): Deleted.
4387 (SPLIT_MULTIBYTE_SEQ): Modified.
4388 (char_to_string): Renamed from non_ascii_char_to_string.
4389 Modified.
4390 (string_to_char): Renamed from string_to_non_ascii_char.
4391 (split_string): Renamed from split_non_ascii_string.
4392 (char_printable_p) (Fsplit_char)
4393 (Ffind_charset_region) (Ffind_charset_string) (char_valid_p)
4394 (char_bytes) (Fchar_width) (strwidth): Modified.
4395 (find_charset_in_str): Argument CMPCHARP deleted. Modified.
4396 (Fstring): Adjusted for the change of CHAR_STRING. Modified.
4397 (hash_string) (CMPCHAR_HASH_TABLE_SIZE) (cmpchar_hash_table)
4398 (CMPCHAR_HASH_SIZE) (CMPCHAR_HASH_USED) (CMPCHAR_HASH_CMPCHAR_ID)
4399 (str_cmpchar_id) (cmpchar_component) (Fcmpcharp)
4400 (Fcmpchar_component) (Fcmpchar_cmp_rule) (Fcmpchar_cmp_rule_p)
4401 (Fcmpchar_cmp_count): Deleted.
4402 (Fcompose_string): Implemented by Emacs Lisp in composite.el.
4403 (init_charset_once): Modified.
4404 (syms_of_charset): Modified.
4405
4406 * cmds.c (internal_self_insert): Adjusted for the change of
4407 CHAR_STRING.
4408
4409 * coding.h (emacs_code_class_type): Delete the member
4410 EMACS_leading_code_composition.
4411 (COMPOSING_NO) (COMPOSING_WITH_RULE_HEAD) (COMPOSING_NO_RULE_HEAD)
4412 (COMPOSING_WITH_RULE_TAIL) (COMPOSING_NO_RULE_TAIL)
4413 (COMPOSING_WITH_RULE_RULE) (COMPOSING_HEAD_P)
4414 (COMPOSING_WITH_RULE_P): Macros deleted.
4415 (COMPOSITION_DATA_SIZE) (COMPOSITION_DATA_MAX_BUNCH_LENGTH): New
4416 macros.
4417 (struct composition_data): New structure.
4418 (CODING_FINISH_INSUFFICIENT_CMP): New macro.
4419 (struct coding_system): New members composition_rule_follows,
4420 cmp_data, cmp_data_start, cmp_data_index.
4421 (coding_save_composition) (coding_free_composition_data)
4422 (coding_adjust_composition_offset): Extern them.
4423
4424 * coding.c: Include composite.h.
4425 (DECODE_CHARACTER_ASCII): Don't handle composition here.
4426 (DECODE_CHARACTER_DIMENSION1): Likewise. Don't check the validity
4427 of multibyte code here.
4428 (DECODE_CHARACTER_DIMENSION2): Likewise.
4429 (detect_coding_emacs_mule): Change the case label from
4430 EMACS_leading_code_composition to 0x80.
4431 (detect_coding_iso2022): Handle new composition sequence.
4432 (DECODE_ISO_CHARACTER): Likewise.
4433 (check_composing_code): Deleted.
4434 (coding_allocate_composition_data): New function.
4435 (CODING_ADD_COMPOSITION_START) (CODING_ADD_COMPOSITION_END)
4436 (CODING_ADD_COMPOSITION_COMPONENT) (DECODE_COMPOSITION_START)
4437 (DECODE_COMPOSITION_END) (DECODE_COMPOSITION_RULE): New macros.
4438 (decode_coding_iso2022): Handle new composition sequence.
4439 (ENCODE_ISO_CHARACTER): Don't check composition here.
4440 (ENCODE_COMPOSITION_RULE) (ENCODE_COMPOSITION_START): New macros.
4441 (ENCODE_COMPOSITION_NO_RULE_START)
4442 (ENCODE_COMPOSITION_WITH_RULE_START): Deleted.
4443 (ENCODE_COMPOSITION_END): Handle new composition sequence.
4444 (ENCODE_COMPOSITION_FAKE_START): New macro.
4445 (encode_coding_iso2022): Handle new composition sequence.
4446 (ENCODE_SJIS_BIG5_CHARACTER): Delete superfluous `;' at the tail.
4447 (encode_coding_sjis_big5): Ignore composition.
4448 (setup_coding_system): Initialize new members of struct
4449 coding_system. Enable composition only when the coding system has
4450 `composition' property t.
4451 (coding_free_composition_data) (coding_adjust_composition_offset)
4452 (coding_save_composition) (coding_restore_composition): New
4453 functions.
4454 (code_convert_region): Call coding_save_composition for encoding
4455 and coding_allocate_composition_data for decoding. Don't skip
4456 ASCII characters if we handle composition on encoding. Call
4457 signal_after_change with Check_BORDER.
4458 (code_convert_string): Call coding_save_composition for encoding
4459 and coding_allocate_composition_data for decoding. Don't skip
4460 ASCII characters if we handle composition on encoding.
4461 (code_convert_string1): Set Vlast_coding_system_used after calling
4462 code_convert_string.
4463 (code_convert_string_norecord): Disable composition.
4464 (Fset_terminal_coding_system_internal): Likewise.
4465 (Fset_safe_terminal_coding_system_internal): Likewise.
4466 (Fset_keyboard_coding_system_internal): Likewise.
4467 (init_coding_once): Set emacs_code_class[0x80] to
4468 EMACS_invalid_code.
4469
4470 * composite.h: New file.
4471
4472 * composite.c: New file.
4473
4474 * data.c (Faref): Delete codes for a composite character..
4475 (Faset): Likewise. Adjusted for the change of CHAR_STRING.
4476
4477 * dispextern.h (enum glyph_type): New member COMPOSITE_GLYPH.
4478 (struct glyph): Add new sub-structure cmp to the union `u'.
4479 (enum display_element_type): New member IT_COMPOSITION.
4480 (enum prop_idx): New member COMPOSITION_PROP_IDX.
4481 (struct it): New members cmp_id, cmp_len.
4482
4483 * dispnew.c (direct_output_forward_char): Check point moving into
4484 or out of a composition. If so, give up direct method.
4485
4486 * doprnt.c (doprnt1): Adjusted for the change of CHAR_STRING.
4487
4488 * editfns.c (Fchar_to_string): Adjusted for the change of
4489 CHAR_STRING.
4490 (general_insert_function): Likewise.
4491 (Finsert_char): Likewise.
4492 (Fsubst_char_in_region): Likewise. Call update_compositions.
4493 (Ftranslate_region): Call update_compositions.
4494 (Ftranspose_regions): Call update_compositions.
4495
4496 * emacs.c (main): Call syms_of_composite.
4497
4498 * fileio.c (Fsubstitute_in_file_name): Adjusted for the change of
4499 CHAR_STRING.
4500 (Finsert_file_contents): Set Vlast_coding_system_used before
4501 calling signal_after_change. Call update_compositions if some
4502 texts are inserted..
4503 (Fwrite_region): Adjusted for the change of a_write and e_write.
4504 (a_write): Argument changed. Work based on character position,
4505 not byte position.
4506 (e_write): Argument changed. Handle new way of composition.
4507
4508 * fns.c (Flength): The length of char-table is MAX_CHAR.
4509 (concat): Adjusted for the change of CHAR_STRING.
4510 (Ffillarray): Adjusted for the change of CHAR_STRING.
4511 (Fset_char_table_default): Delete codes for a composite character.
4512 (hash_put): Return hash index.
4513
4514 * fontset.h (struct font_info): New member vertical_centering.
4515 (Vvertical_centering_font_regexp): Extern it.
4516
4517 * fontset.c (Vvertical_centering_font_regexp): New variable.
4518 (syms_of_fontset): Declare it as a Lisp variable and initialize.
4519 Set Vignore_relative_composition to nil.
4520 (fs_load_font): Initialize `vertical_centering' of struct
4521 font_info.
4522
4523 * indent.c (check_composition): New function.
4524 (MULTIBYTE_BYTES_WIDTH): Call STRING_CHAR_AND_LENGTH with
4525 MAX_MULTIBYTE_LENGTH, not MAX_LENGTH_OF_MULTI_BYTE_FORM.
4526 (current_column_1): Handle new way of composition.
4527 (Fmove_to_column): Likewise.
4528 (compute_motion): Likewise.
4529
4530 * insdel.c (copy_text): Adjusted for the change of CHAR_STRING.
4531 (insert_char): Likewise.
4532 (insert): Call update_compositions.
4533 (insert_and_inherit): Likewise.
4534 (insert_before_markers): Likewise.
4535 (insert_before_markers_and_inherit): Likewise.
4536 (insert_from_string): Likewise.
4537 (insert_from_string_before_markers): Likewise.
4538 (insert_from_buffer): Likewise.
4539 (replace_range): Likewise.
4540 (count_combining_composition): Deleted.
4541 (count_combining_before): Delete codes for a composite character.
4542 (count_combining_after): Likewise.
4543 (del_range_1): Call update_compositions.
4544 (del_range_byte): Likewise.
4545 (del_range_both): Likewise.
4546 (Fcombine_after_change_execute): Likewise.
4547
4548 * intervals.h: Include composite.h.
4549 (get_property_and_range): Extern it.
4550 (Vtext_property_default_nonsticky): Extern it.
427ec082 4551
5ec14d3c
KH
4552 * intervals.c (adjust_intervals_for_insertion): To check stickines
4553 of properties, pay attention to text-property-default-nonsticky.
4554 (merge_properties_sticky): Likewise.
4555 (get_property_and_range): New function.
4556
4557 * keyboard.c (Vdisable_point_adjustment): New variable.
4558 (Vglobal_disable_point_adjustment): New variable.
4559 (syms_of_keyboard): Declare them as Lisp variables.
4560 (command_loop_1): Check them and call adjust_point_for_property if
4561 necessary.
4562 (adjust_point_for_property): New function.
4563
4564 * keymap.c (push_key_description): Adjusted for the change of
4565 CHAR_STRING.
4566 (Ftext_char_description): Likewise.
4567
4568 * lisp.h (QCtest, QCweakness, Qequal): Extern them.
4569 (hash_put): Adjusted for the change of the definition.
4570 (signal_after_change): Likewise.
4571 (check_point_in_composition): Extern it.
4572
4573 * lread.c (readchar): Adjusted for the change of CHAR_STRING.
4574 Delete a code that handles an invalid too-long multibyte sequence
4575 because we are now sure that we never encounter with such a
4576 sequence.
4577 (read_multibyte): Use macro MAX_MULTIBYTE_LENGTH, not
4578 MAX_LENGTH_OF_MULTI_BYTE_FORM.
4579 (init_obarray): Likewise.
4580 (read1): Likewise. Adjusted for the change of CHAR_STRING.
4581
4582 * print.c (printchar): Adjusted for the change of CHAR_STRING.
4583
4584 * process.c: Include composite.h.
4585 (read_process_output): Call update_compositions.
4586
4587 * regex.c (regex_compile): Adjusted for the change of CHAR_STRING.
4588
4589 * search.c (search_buffer): Adjusted for the change of CHAR_STRING.
4590
4591 * syntax.h (SYNTAX_ENTRY_INT): Delete codes for a composite
4592 character.
4593
4594 * term.c (encode_terminal_code): Delete codes for a composite
4595 character. Adjusted for the change of CHAR_STRING.
4596 (produce_glyphs): When called, it->what can be IT_COMPOSITION.
4597 Delete codes for a composite character.
4598
4599 * textprop.c (Vtext_property_default_nonsticky): New variable
4600 (syms_of_textprop): Declare it as a Lisp variable.
4601
4602 * window.c (Frecenter): Clear all caches of compositions.
4603
4604 * xdisp.c (it_props): Add an entry for composition.
4605 (face_before_or_after_it_pos): For composition, check face of a
4606 character after the composition.
4607 (handle_composition_prop): New function.
4608 (get_next_display_element): Adjusted for the change of
4609 CHAR_STRING.
4610 (set_iterator_to_next): Handle the case that it->method ==
4611 next_element_from_composition.
4612 (next_element_from_composition): New function.
4613 (message_dolog): Adjusted for the change of CHAR_STRING.
4614 (set_message_1): Likewise.
4615 (check_point_in_composition): New function.
4616 (reconsider_clip_changes): If point moved into or out of
4617 composition, set b->clip_changed to 1 to force updating of the
4618 screen.
4619 (disp_char_vector): Delete codes for a composite character.
4620 (decode_mode_spec_coding): Adjusted for the change of CHAR_STRING.
4621
4622 * xfaces.c (choose_face_fontset_font): Delete codes for a
4623 composite character.
4624 (realize_x_face): Likewise. Change a place to set local variable
4625 `f' to avoid a bug of GCC 2.8.1 on Solaris.
4626
4627 * xfns.c: Include intervals.h.
4628 (syms_of_xfns): Make `display' property nonsticky by default.
4629
4630 * xselect.c (lisp_data_to_selection_data): Adjusted for the change
4631 for find_charset_in_str.
4632
4633 * xterm.h (struct x_output): Change member font_baseline to
4634 baseline_offset.
4635
4636 * xterm.c (x_append_glyph): Setup members of struct glyph properly
4637 for composition.
4638 (x_append_composite_glyph): New function.
4639 (VCENTER_BASELINE_OFFSET): New macro.
4640 (x_produce_glyphs): If it->what == IT_COMPOSITION, setup members
4641 of struct it for the composition. Cache pixel offsets in the
4642 struct composition. Delete codes for a composite character.
4643 Handle Vignore_relative_composition in composition code.
4644 (struct glyph_string): Delete member cmpcharp, add new member cmp.
4645 (x_set_cursor_gc): Check s->cmp, not s->cmpcharp.
4646 (x_compute_glyph_string_overhangs): Likewise.
4647 (x_get_glyph_overhangs): Delete codes for a composite character.
4648 (x_right_overwritten): Check s->cmp, not s->cmpcharp.
4649 (x_draw_glyph_string_background): Likewise. Delete codes for
4650 checking s->gidx for a composition.
4651 (x_draw_glyph_string_foreground): Delete code for a composite
4652 character.
4653 (x_draw_composite_glyph_string_foreground): New function.
4654 (x_draw_glyph_string_box): Check s->cmp, not s->cmpcharp.
4655 (x_draw_glyph_string): Handle the case of COMPOSITE_GLYPH.
4656 (struct work): Deleted.
4657 (x_fill_composite_glyph_string): Argument changed. Mostly
4658 rewritten for that.
4659 (x_fill_glyph_string): Don't check CHARSET_COMPOSITION.
4660 (BUILD_CHAR_GLYPH_STRINGS): Don't handle composition here.
4661 (BUILD_COMPOSITE_GLYPH_STRING): New macro.
4662 (BUILD_GLYPH_STRINGS): For composition, call
4663 BUILD_COMPOSITE_GLYPH_STRING.
4664 (x_new_font): Initialize f->output_data.x->baseline_offset, not
4665 f->output_data.x->font_baseline.
4666
c3c60f13
GM
46671999-12-14 Gerd Moellmann <gerd@gnu.org>
4668
4669 * xterm.c (show_mouse_face): Don't use updated_area, use
4670 TEXT_AREA.
4671
83c8f461 46721999-12-12 Richard M. Stallman <rms@gnu.org>
c838eb57
RS
4673
4674 * minibuf.c (Fall_completions): Doc fix.
4675
83c8f461 46761999-12-12 Richard M. Stallman <rms@gnu.org>
c838eb57
RS
4677
4678 * macros.c (Fstart_kbd_macro): Handle case where last-kbd-macro
4679 has been changed by the Lisp code.
4680
d8eccf12
GM
46811999-12-12 Gerd Moellmann <gerd@gnu.org>
4682
4683 * xfns.c: Indentation fixes.
4684
ae56feae
SM
46851999-12-10 Stefan Monnier <monnier@cs.yale.edu>
4686
4687 * xterm.c (x_initialize): Only setup xaw3d_* if they've been declared.
4688
dfa1c6ae
GM
46891999-12-10 Gerd Moellmann <gerd@gnu.org>
4690
4691 * frame.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
4692 [!MSDOS && !WINDOWSNT && !macintosh]: Moved here from xterm.h.
4693
4694 * xterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Moved
4695 to frame.h.
4696
ec18280f
SM
46971999-12-09 Stefan Monnier <monnier@cs.yale.edu>
4698
4699 * keyboard.c (Qratio): New symbol.
4700 (scroll_bar_parts): Add `Qratio' to it.
4701 (syms_of_keyboard): Init `Qratio'.
4702 * termhooks.h (scroll_bar_part): Add `scroll_bar_move_ratio'.
4703 * xterm.c (#includes): Allow compilation with only Xaw.
4704 (xaw3d_arrow_scroll, xaw3d_pick_top): New variables.
4705 (xt_action_hook): Replace XAW3D by XAW.
4706 (xaw3d_jump_callback): Renamed to xaw_jump_callback.
4707 (xaw_jump_callback): Renamed from xaw3d_jump_callback.
4708 Determine epsilon dynamically and don't try to be too clever.
4709 (xaw3d_scroll_callback): Renamed to xaw_scroll_callback.
4710 (xaw_scroll_callback): Renamed from xaw3d_scroll_callback.
4711 Handle both Xaw3d with arrow-scrollbars and with Xaw-style
4712 scrollbar (using `ratio').
4713 (x_create_toolkit_scroll_bar): Try to detect which style of Xaw3d
4714 scrollbar we have so as to set it up more optimally and to fix
4715 xaw3d_arrow_scroll and xaw3d_pick_top.
4716 (x_set_toolkit_scroll_bar_thumb): Try to maintain 2 spare pixels at the
4717 bottom of the Xaw3d scrollbar, to work around its tendency to refuse
4718 shrinking the thumb. Also make sure that `XawScrollbarSetThumb'
4719 is not ignored, using a major gross hack.
4720 (x_initialize): Init default values for xaw3d_arrow_scroll and
4721 xaw3d_pick_top.
4722
83b6d970
DL
47231999-12-09 Dave Love <fx@gnu.org>
4724
4725 * frame.h: (PIX_TYPE) [! HAVE_X_WINDOWS]: Define PIX_TYPE.
4726
3648c842
GM
47271999-12-08 Gerd Moellmann <gerd@gnu.org>
4728
4729 * eval.c: Remove conditional compilation on `standalone'.
4730 (call_debugger): When entering the debugger while redisplaying,
4731 reset redisplaying_p, and go back to the top-level if the debugger
4732 returns.
4733
05e71564
GM
47341999-12-07 Gerd Moellmann <gerd@gnu.org>
4735
4736 * xfaces.c (x_set_menu_resources_from_menu_face): Make sure
4737 basic faces are realized before trying to use face `menu'.
4738
4739 * window.c (delete_window): Block input for the time window
4740 matrices are being changed.
4741
b46cd536
DL
47421999-12-07 Dave Love <fx@gnu.org>
4743
4744 * lread.c (Fintern_soft): Fix newlines in doc string.
4745
96acb1f7
GM
47461999-12-07 Alexandre Oliva <oliva@dcc.unicamp.br>
4747
4748 * unexelf.c: Include <syms.h>, not <sym.h> on IRIX. Removed
4749 duplicate definition of ElfW.
4750 (find_section): Copied from unexsgi.c.
4751 (unexec): Use find_section. Adjust whitespace. Initialize
4752 new_data2_offset based on old_data, not sbss (this fixes a bug on
4753 IRIX6). Change #ifdef __mips to __sgi, since it's IRIX-specific.
4754 Adjust test for presence of .mdebug section to the new return
4755 value of find_section.
427ec082 4756
96acb1f7
GM
47571999-12-07 Gerd Moellmann <gerd@gnu.org>
4758
4759 * unexelf.c: Merge changes from 20.5.
4760 (unexec): Handle .lit4 and .lit8 unconditionally.
4761
4762 * m/iris4d.h (UNEXEC) [USG5_4]: Use unexelf.o instead of
4763 unexsgi.o again.
427ec082 4764
96acb1f7
GM
4765 * m/iris5d.h (UNEXEC): Likewise.
4766
7dae4502
SM
47671999-12-06 Stefan Monnier <monnier@cs.yale.edu>
4768
4769 * editfns.c (Fdelete_and_extract_region): New function.
05e71564
GM
4770 (syms_of_editfns): Register it.
4771 * insdel.c (del_range): Update del_range_1 call.
7dae4502
SM
4772 (del_range_1, del_range_2): Add a ret_string argument to
4773 request that the deleted text be returned.
4774 (del_range_byte, del_range_both): Update del_range_2 call.
05e71564 4775 * lisp.h (del_range_1, del_range_2): Change prototype
7dae4502
SM
4776 * casefiddle.c (casify_region): Update del_range_1 call.
4777 * coding.c (code_convert_region): Update del_range_2 call.
4778 * fileio.c (Finsert_file_contents): Update del_range_2 call.
4779
397e4fae
GM
47801999-12-06 Gerd Moellmann <gerd@gnu.org>
4781
4782 * xfaces.c (set_lface_from_font_name): Fix incomplete merge.
4783
3d973f71
GM
47841999-12-04 Hrvoje Niksic <hniksic@iskon.hr>
4785
4786 * lread.c (Fintern_soft): Accept a symbol argument.
427ec082 4787
740e985f
EZ
47881999-12-06 Eli Zaretskii <eliz@is.elta.co.il>
4789
4790 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 40000.
809f3d51
EZ
4791
4792 * insdel.c (adjust_markers_for_delete): Fix last change.
4793
2d764c78
EZ
47941999-12-06 Eli Zaretskii <eliz@is.elta.co.il>
4795
4796 Changes for automatic remapping of X colors on terminal frames:
4797
4798 * xfaces.c (XColor) [!HAVE_X_WINDOWS]: Provide a typedef for non-X
4799 frames.
4800 (Vface_tty_color_alist): Remove.
4801 (tty_defined_color): New function.
4802 (defined_color): Rewrite to support any type of frame.
4803 (tty_color_name): New function.
4804 (face_color_supported_p, Fface_color_gray_p,
4805 Fface_color_supported_p): Support non-X frames.
4806 (load_color): Enclose the color name in quotes, in the log
4807 messages. Remove DOS-specific version of load_color.
4808 (realize_tty_face): Take the supported colors from
4809 tty-color-alist. Support translation of X colors to the closest
4810 tty color, for both MSDOS and tty frames.
4811 [MSDOS]: Don't invert face colors if they were taken from the
4812 frame colors.
4813 (Fface_register_tty_color, Fface_clear_tty_colors): Remove.
4814
4815 * frame.h (struct x_output) [!MSDOS, !WINDOWSNT, !HAVE_X_WINDOWS]:
4816 Define a mostly empty surrogate.
4817 (tty_display): Declare.
4818
4819 * frame.c (make_terminal_frame) [!macintosh]: Don't use
4820 tty_display.
4821 (Fframe_parameters): Don't invert colors of non-FRAME_WINDOW_P
4822 frames when the frame's param_alist includes 'reverse.
4823 (tty_display): Define.
4824 (make_terminal_frame) [!MSDOS]: Assign &tty_display to the
4825 output_data.x member.
4826 (Fframe_parameters): Return foreground and background color names
4827 on tty frames as well, in addition to MSDOS frames.
4828
4829 * msdos.h (DisplayWidth, DisplayHeight): Changes for Lisp_Object
4830 selected_frame.
4831 (struct x_output): Remove unused members; document who uses each
4832 member.
4833 (FRAME_PARAM_FACES, FRAME_N_PARAM_FACES, FRAME_DEFAULT_PARAM_FACE,
4834 FRAME_MODE_LINE_PARAM_FACE, FRAME_COMPUTED_FACES,
4835 FRAME_N_COMPUTED_FACES, FRAME_SIZE_COMPUTED_FACES,
4836 FRAME_DEFAULT_FACE, FRAME_MODE_LINE_FACE, unload_color): Remove
4837 unused macro definintions.
4838
4839 * msdos.c (IT_set_frame_parameters): Don't call
4840 recompute_basic_faces, the next redisplay will, anyway.
4841 (x_current_display): Remove unused variable.
4842 Many functions: changes for Lisp_object selected_frame.
4843 (IT_set_face): If the tty_reverse_p flag is set for the face,
4844 reverse the foreground and background colors.
4845 (Fmsdos_remember_default_colors): New function.
4846 (syms_of_msdos): Defsubr it.
4847 (IT_set_frame_parameters): Use initial_screen_colors[] when
4848 creating a new frame. If the frame parameters include 'reverse,
4849 swap the foreground and background colors.
4850 (internal_terminal_init): Initialize initial_screen_colors to -1.
4851 (syms_of_msdos): Add DEFVAR_BOOL for x-stretch-cursor, to shut up
4852 cus-start.el.
4853
4854 * Makefile.in (lisp, shortlisp): Add lisp/term/tty-colors.elc.
4855
4856 * xfns.c (x_defined_color): Rename from defined_color. All
4857 callers changed.
4858 (Fxw_color_defined_p): Renamed from Fx_color_defined_p;
4859 all callers changed.
4860 (Fxw_color_values): Renamed from Fx_color_values; all callers
4861 changed.
4862 (Fxw_display_color_p): Renamed from Fx_display_color_p; all
4863 callers changed.
4864 (x_window_to_frame, x_any_window_to_frame,
4865 x_non_menubar_window_to_frame, x_menubar_window_to_frame,
4866 x_top_window_to_frame): Use !FRAME_X_P instead of
4867 f->output_data.nothing.
4868 * xterm.h (x_defined_color): Rename from defined_color.
4869
4870 * w32fns.c (x_window_to_frame): Use FRAME_W32_P instead of
4871 f->output_data.nothing.
4872 (Fxw_color_defined_p): Renamed from Fx_color_defined_p;
4873 all callers changed.
4874 (Fxw_color_values): Renamed from Fx_color_values; all callers
4875 changed.
4876 (Fxw_display_color_p): Renamed from Fx_display_color_p; all
4877 callers changed.
4878
4879 * dispextern.h (tty_color_name): Add prototype.
4880
4881 * xmenu.c (menubar_id_to_frame): Use FRAME_WINDOW_P instead of
4882 f->output_data.nothing.
4883 * w32menu.c (menubar_id_to_frame): Likewise.
4884 * w32term.h (w32_output): Declare.
4885
4886 * dosfns.c (Qmsdos_color_translate): Remove.
4887 (msdos_stdcolor_name): Now returns a Lisp_Object.
4888 * dosfns.h (Qmsdos_color_translate): Remove.
4889
4890 * s/msdos.h (INTERNAL_TERMINAL): Add entries for color support.
4891
b3e5232e
KH
48921999-12-06 Kenichi Handa <handa@etl.go.jp>
4893
4894 * fileio.c (decide_coding_unwind): Renamed from
4895 set_auto_coding_unwind.
4896 (Finsert_file_contents): Make single unwind protect to call both
4897 Vset_auto_coding_function and Ffind_operation_coding_system.
4898
4899 * insdel.c (adjust_markers_for_delete): Make it non-static.
4900
db0e466c
SM
49011999-12-04 Stefan Monnier <monnier@cs.yale.edu>
4902
4903 * regex.c (regex_compile): Recognize *?, +? and ?? as non-greedy
4904 operators and handle them properly.
4905 * regex.h (RE_ALL_GREEDY): New option.
4906 (RE_UNMATCHED_RIGHT_PAREN_ORD): Moved to the end where alphabetic
4907 sorting would put it.
4908 (RE_SYNTAX_AWK, RE_SYNTAX_GREP, RE_SYNTAX_EGREP)
4909 (_RE_SYNTAX_POSIX_COMMON): Use the new option to keep old behavior.
4910
22afa6e8
DL
49111999-12-04 Dave Love <d.love@dl.ac.uk>
4912
4913 * m/arm.h: New file.
4914
40afb967
DL
49151999-12-03 Dave Love <fx@gnu.org>
4916
4917 * editfns.c (Fmessage_or_box): Use use_dialog_box.
4918
ddf8eff5
GM
49191999-12-02 Gerd Moellmann <gerd@gnu.org>
4920
4921 * s/usg5-4.h (LIBS_SYSTEM): Add -lgen because that's needed
4922 for building with Motif.
4923
4924 * m/iris4d.h (UNEXEC) [USG5_4]: Use unexsgi.o instead of
4925 unexelf.o.
427ec082 4926
ddf8eff5
GM
4927 * m/iris5d.h (UNEXEC): Use unexsgi.o instead of unexelf.o.
4928
fa09a82d
DL
49291999-12-01 Dave Love <fx@gnu.org>
4930
4931 * emacs.c (main): Set LANG=C iff AX3_2 defined.
4932
ddf8eff5
GM
49331999-11-28 Gerd Moellmann <gerd@gnu.org>
4934
4935 * systime.h (EMACS_TIME_CMP, EMACS_TIME_EQ, EMACS_TIME_NE)
4936 (EMACS_TIME_GT, EMACS_TIME_GE, EMACS_TIME_LT,EMACS_TIME_LE): New
4937 macros.
4938
4939 * config.in (HAVE_SETITIMER, HAVE_UALARM): New.
4940
fa09a82d
DL
49411999-11-28 eliz <eliz@dlpx1>
4942
4943 * emacs.c (synchronize_locale): Avoid compiler warnings about
4944 pointer type mismatch.
4945
f9632fc8
GM
49461999-11-28 Gerd Moellmann <gerd@gnu.org>
4947
717d0121
GM
4948 * window.c (Fwindow_end): Don't call temp_set_pt_both with
4949 out of range position.
4950
427ec082 4951 * xterm.c (XTread_socket) <ClientMessage, Xatom_Scrollbar>:
f9632fc8
GM
4952 Switch off busy-cursor by setting inhibit_busy_cursor to 2.
4953
59c65f1e
EZ
49541999-11-28 Eli Zaretskii <eliz@is.elta.co.il>
4955
613a8346
EZ
4956 * charset.c (Fmake_char_internal): Print the charset ID when
4957 signalling an error.
4958
59c65f1e
EZ
4959 * emacs.c (synchronize_locale): Avoid compiler warnings about
4960 pointer type mismatch.
4961
83c8f461 49621999-11-26 Richard M. Stallman <rms@gnu.org>
d01f3570
RS
4963
4964 * editfns.c (Fdelete_field): Make it noninteractive. Return nil.
4965
18df9369
GM
49661999-11-26 Gerd Moellmann <gerd@gnu.org>
4967
65a3ccf7
GM
4968 * puresize.h (BASE_PURESIZE): Increase to 550000.
4969
b3b98592
GM
4970 * textprop.c (set_text_properties): New function. Like
4971 Fset_text_properties, but with additional parameter
4972 SIGNAL_AFTER_CHANGE_P. If that is nil, don't signal after
4973 changes.
4974 (Fset_text_properties): Use it.
4975
4976 * insdel.c (insert_1_both): Call set_text_properties with last
4977 parameter nil so that no after changes will be signaled.
4978
4979 * lisp.h: Add prototype for set_text_properties.
4980
18df9369
GM
4981 * xfaces.c (set_lface_from_font_name): Fix previous change.
4982 (recompute_basic_faces): Change assert to abort.
4983
71a8e74b
DL
49841999-11-25 Dave Love <fx@gnu.org>
4985
4986 * fns.c (Fnthcdr, Fnreverse): Inline cdr.
4987 (Fmember, Fdelq, Fdelete): Inline car.
4988 (Fy_or_n_p): Doc fix.
4989
bc6a5782
GM
49901999-11-25 Gerd Moellmann <gerd@gnu.org>
4991
3221576b 4992 * xfaces.c (set_lface_from_font_name): New parameter may_fail_p.
18df9369 4993 Callers changed. If specified font name is bogus, and may_fail_p
3221576b
GM
4994 is not set, try to use a reasonable default.
4995
bc6a5782
GM
4996 * dispnew.c (direct_output_for_insert): Set glyph row's
4997 displays_text_p flag. Correct window's window_end_vpos if
4998 necessary.
4999
0c8559bb
PE
50001999-11-25 Paul Eggert <eggert@twinsun.com>
5001
5002 * emacs.c (fixup_locale): Don't bother to record initial locale.
5003 (synchronize_locale): If the desired locale is nil,
5004 treat it as if it were the empty string,
5005 so that we set the locale from the environment.
5006
35737351
KH
50071999-11-25 Kenichi Handa <handa@etl.go.jp>
5008
5009 * fileio.c (Finsert_file_contents): Set buffer-file-coding-system
5010 of the current buffer via Fset.
5011
5562b47f
DL
50121999-11-24 Dave Love <fx@gnu.org>
5013
5562b47f
DL
5014 * xfaces.c: Don't duplicate Qmode_line definition done elsewhere.
5015
5016 * xfns.c: Don't duplicate Qdisplay definition done elsewhere.
5017
00da0e4a
GM
50181999-11-24 Gerd Moellmann <gerd@gnu.org>
5019
5020 * lisp.h (enum pvec_type): Put PVEC_FLAG in #if 0.
5021
5022 * emacs.c (PVEC_FLAG): New variable.
5023
b1775dc1
GM
50241999-11-23 Gerd Moellmann <gerd@gnu.org>
5025
5026 * unexaix.c (unexec): Use unsigned instead of uintptr_t because
5027 that fails on IBM PowerPC, AIX 4.2.
427ec082 5028
08de6200
EZ
50291999-11-22 Eli Zaretskii <eliz@is.elta.co.il>
5030
5031 * buffer.c (syms_of_buffer): Add %z, %Z, %m and %& to the doc
5032 string of mode-line-format. Remove the obsolete %t.
5033
02fda8ff
GM
50341999-11-22 Gerd Moellmann <gerd@gnu.org>
5035
f2fa858f
GM
5036 * dispnew.c (direct_output_for_insert): Increment glyph positions
5037 for glyphs from buffer text only.
5038
02fda8ff
GM
5039 * emacs.c (gdb_valbits, gdb_gctypebits, gdb_emacs_intbits)
5040 (gdb_data_seg_bits): New variables.
427ec082 5041
02fda8ff
GM
5042 * lisp.h (enum gdb_lisp_params): Put in #if 0, since it doesn't
5043 work on systems not allowing enumerators > INT_MAX, and it
5044 won't work if EMACS_INT is long long.
5045
1b0d24e7
PE
50461999-11-22 Paul Eggert <eggert@twinsun.com>
5047
5048 Port to SunOS 4.1.x again. Help out with Alpha port.
5049 Rename messages-locale to system-messages-locale,
5050 and likewise for time-locale.
427ec082 5051
1b0d24e7
PE
5052 * callproc.c (strerror): Remove decl.
5053 * fileio.c (strerror): Likewise.
5054 * process.c (strerror): Likewise.
5055 * emacs.c (strerror): Likewise.
5056 (Vsystem_messages_locale): Renamed from Vmessages_locale.
5057 All uses changed.
5058 (Vprevious_system_messages_locale): Likewise, from
5059 Vprevious_messages_locale.
5060 (Vsystem_time_locale): Likewise, from Vtime_locale.
5061 (Vprevious_system_time_locale): Likewise, from Vprevious_time_locale.
5062 (ABORT_RETURN_TYPE): New macro.
5063 (abort): Return type is now ABORT_RETURN_TYPE.
5064 (main): Always invoke init_signals, even if POSIX_SIGNALS is not
5065 defined.
5066 (syms_of_emacs): messages-locale -> system-messages-locale,
5067 previous-messages-locale -> previous-system-messages-locale,
5068 time-locale -> system-time-locale,
5069 previous-time-locale -> previous-system-time-locale.
5070
5071 * gmalloc.c (PP, __ptr_t): Assume ANSI C if STDC_HEADERS is defined.
5072 (const): Do not define; that's config.h's job.
5073 (<limits.h>): Include if HAVE_LIMITS_H is defined.
5074 (CHAR_BIT): Move test for definedness outside of limits.h condition.
5075 (<stddef.h>): Include if STDC_HEADERS is defined.
5076 (FREE_RETURN_TYPE): New macro.
5077 (free): Return type is now FREE_RETURN_TYPE.
5078
5079 * lisp.h (synchronize_system_time_locale): Renamed from
5080 synchronize_time_locale. All uses changed.
5081 (synchronize_system_messages_locale): Likewise, from
5082 synchronize_messages_locale.
5083
5084 * m/alpha.h (malloc, realloc, calloc): Remove decls;
5085 stdlib.h now does this.
5086
5087 * process.c (sys_siglist): Remove.
5088
5089 * s/sunos4-0.h (ABORT_RETURN_TYPE, FREE_RETURN_TYPE):
5090 New macros.
5091
5092 * syntax.c (scan_sexps_forward): Use abort, not assert.
5093
5094 * sysdep.c (my_sys_siglist): New var.
5095 (sys_siglist): New macro. Remove old initialized vars of same name.
5096 (init_signals): Initialize sys_siglist.
5097
5098 * xfns.c (abort): Remove decl; stdlib.h now does this.
5099
0dcd5b54
DL
51001999-11-18 Dave Love <fx@gnu.org>
5101
946173ad
DL
5102 * filelock.c: Add forward declaration for get_boot_time_1.
5103
0dcd5b54
DL
5104 * dispnew.c (Finternal_show_cursor_p): Fix doc string.
5105
71447e8f
GM
51061999-11-18 Gerd Moellmann <gerd@gnu.org>
5107
5108 * buffer.h (struct buffer_text): Add comment about moving
5109 buffer text if REL_ALLOC is defined.
5110
eeedff63
KH
51111999-11-18 Kenichi Handa <handa@etl.go.jp>
5112
5113 * lisp.h (KEY_DESCRIPTION_SIZE): New macro.
5114
5115 * keyboard.c (echo_char): Use KEY_DESCRIPTION_SIZE to check free
5116 memory for push_key_description.
5117
5118 * keymap.c (Fsingle_key_description): Use KEY_DESCRIPTION_SIZE to
5119 allocate memory for push_key_description.
5120 (describe_buffer_bindings): Likewise.
5121
5d7e4a2c
GM
51221999-11-17 Gerd Moellmann <gerd@gnu.org>
5123
5124 * xfns.c (Fx_show_busy_cursor): Doc-fix.
5125 (Fx_hide_busy_cursor): Ditto.
5126
51271999-11-17 Marco Walther <walther@siemens-pyramid.com>
5128
5129 * unexsni.c (unexec): Handle .rel.dyn section.
5130
b5b41e02
DL
51311999-11-16 Dave Love <fx@gnu.org>
5132
5133 * doc.c (Fdocumentation): Remove gcpro here too.
5134
e35b6123
GM
51351999-11-16 Gerd Moellmann <gerd@gnu.org>
5136
5137 * keyboard.c (command_loop_1): Remove no_redisplay.
5138
83c8f461 51391999-11-16 Richard M. Stallman <rms@gnu.org>
0a14b9bb
GM
5140
5141 * print.c (PRINTPREPARE): Don't call setup_echo_area_for_printing
5142 in noninteractive.
5143
b05d3bee
GM
51441999-11-14 Gerd Moellmann <gerd@gnu.org>
5145
5bcfeb49
GM
5146 * xdisp.c (ensure_echo_area_buffers): New.
5147 (with_echo_area_buffer): Use it.
5148 (setup_echo_area_for_printing): Ditto.
5149
b05d3bee
GM
5150 * buffer.c (indicate-empty-lines): Doc-fix.
5151
9b2e6e4c
GM
51521999-11-12 Gerd Moellmann <gerd@gnu.org>
5153
e7f90eab
GM
5154 * term.c (term_init): If "op" isn't available, don't support color
5155 because we can't switch back to the default foreground and
5156 background.
5157
9b2e6e4c
GM
5158 * doc.c (Fdocumentation_property): Remove GCPRO because
5159 Fsubstitute_command_keys gcpro's the string.
5160
1bf21027
KH
51611999-11-12 Kenichi Handa <handa@etl.go.jp>
5162
5163 * editfns.c (Ftranslate_region): Check the buffer multibyteness.
5164
3bc6df53
GM
51651999-11-11 Gerd Moellmann <gerd@gnu.org>
5166
5167 * print.c, keymap.c, indent.c, insdel.c, keyboard.c, intervals.c,
5168 lread.c, textprop.c, undo.c, emacs.c, lisp.h, intervals.h,
5169 buffer.h, config.in, Makefile.in: Remove USE_TEXT_PROPERTIES.
5170
35a5514b
GM
51711999-11-10 Gerd Moellmann <gerd@gnu.org>
5172
5173 * xfns.c (QCuser_data): Removed.
5174 (syms_of_xfns): Initialization of QCuser_data removed.
5175 (parse_image_spec): Don't handle :user-data specially. Allow
5176 unknown keys. Remove parameter ALLOW_OTHER_KEYS.
5177 (xbm_image_p, xbm_load, xpm_image_p, pbm_image_p, png_image_p)
5178 (tiff_image_p, jpeg_image_p, gif_image_p, gs_image_p): Call
5179 parse_image_spec accordingly.
5180
83c8f461 51811999-11-09 Richard M. Stallman <rms@gnu.org>
4ea68fcc
RS
5182
5183 * cmds.c (Fbeginning_of_line): Doc fix.
5184 (Fend_of_line): Doc fix.
5185
5186 * editfns.c (Fline_beginning_position): If N is not 1,
5187 pass t to Fconstrain_to_field for ESCAPE-FROM-EDGE.
5188
5189 * syntax.c (Fforward_word): Handle fields even if would have hit
5190 an edge of the buffer. Return nil if affected by fields.
5191
83c8f461 51921999-11-09 Richard M. Stallman <rms@gnu.org>
4ea68fcc
RS
5193
5194 * editfns.c (preceding_pos): Function deleted.
5195 (text_property_stickiness): Decrement POS directly.
5196 Fix a confusion that used PT instead of POS.
5197
5198 * editfns.c (find_field): Properly handle the case
5199 of a field boundary where `field' inherits from neither side.
5200
5201 * editfns.c (Ffield_beginning, Ffield_end): Doc fixes.
5202 (Ferase_field, Ffield_string, Ffield_string_no_properties): Doc fixes.
5203
fa9aabf6
GM
52041999-11-08 Gerd Moellmann <gerd@gnu.org>
5205
5206 * bytecode.c (Fbyte_code) <BinsertN, Bcall>: Do the
5207 BEFORE_POTENTIAL_GC before DISCARD.
5208
4015b3c0
GM
52091999-11-07 Gerd Moellmann <gerd@gnu.org>
5210
033a5fa3
GM
5211 * alloc.c (Fgarbage_collect): Call unmark_byte_stack.
5212
5213 * lisp.h: Add prototype for unmark_byte_stack.
5214
5215 * bytecode.c (mark_byte_stack): Use XMARKBIT and XMARK.
5216 (unmark_byte_stack): Renamed from relocate_byte_pcs. Use
5217 XUNMARK.
5218
55b064bd
GM
5219 * xdisp.c (resize_mini_window): Fix computation of needed
5220 mini-window height.
5221
5222 * alloc.c, buffer.c, editfns.c, xdisp.c: Remove conditional
5223 compilation on USE_TEXT_PROPERTIES.
01e9b9df 5224
4015b3c0 5225 * Fbyte_code: Use block statements in cases and declare v1 and v2
60af03f1 5226 locally there. Rearrange case statements so that those most
4015b3c0
GM
5227 frequently executed come first. Avoid goto's in frequently
5228 executed cases.
5229
fe512f27
GM
52301999-11-05 Gerd Moellmann <gerd@gnu.org>
5231
dd59e217
GM
5232 * bytecode.c (Fbyte_code): Use BEFORE_POTENTIAL_GC and
5233 AFTER_POTENTIAL_GC around internal_catch.
5234
bcf28080
GM
5235 * alloc.c (Fgarbage_collect): Call mark_byte_stack and
5236 relocate_byte_pcs.
5237 (init_alloc_once, init_alloc): Set byte_stack_list to null.
5238
5239 * eval.c (struct catchtag): Add member byte_stack.
5240 (internal_catch, Fcondition_case, internal_condition_case)
dd59e217 5241 (internal_condition_case_1): Save value of byte_stack_list in
bcf28080
GM
5242 catchtag.
5243 (unwind_to_catch): Restore byte_stack_list from catchtag.
5244
5245 * lisp.h: Add prototypes for new functions in bytecode.c.
5246 Add extern declaration for byte_stack_list.
5247
5248 * bytecode.c (struct byte_stack): New.
5249 (byte_stack_list, mark_byte_stack, relocate_byte_pcs): New
5250 (BEFORE_POTENTIAL_GC, AFTER_POTENTIAL_GC): New.
5251 (FETCH, PUSH, POP, DISCARD, TOP, MAYBE_GC): Rewritten.
5252 (HANDLE_RELOCATION): Removed.
5253 (Fbyte_code): Use byte_stack structures.
5254
4d59c34c
GM
5255 * filelock.c (Ffile_locked_p): Make FILENAME a required argument.
5256
fe512f27
GM
5257 * buffer.c (syms_of_buffer): Extend documentation of
5258 mode-line-format.
5259
60b64cd6
GM
52601999-11-04 Gerd Moellmann <gerd@gnu.org>
5261
5262 * editfns.c (Fdelete_field): Renamed from Ferase_field.
5263
5264 * minibuf.c (do_completion, Fminibuffer_complete_word): Use
5265 Ferase_field instead of Fdelete_field.
5266
b51b619b
GM
52671999-11-03 Gerd Moellmann <gerd@gnu.org>
5268
5269 * dispnew.c (Finternal_show_cursor): Change it to set the
5270 cursor on/off, not toggle its state.
5271 (Finternal_show_cursor_p): New.
5272 (syms_of_display): Defsubr Sinternal_show_cursor_p.
5273
5865af0d
DL
52741999-11-03 Dave Love <fx@gnu.org>
5275
5276 * charset.c (split_non_ascii_string): Define return value.
5277
82a700f3
GM
52781999-11-03 Gerd Moellmann <gerd@gnu.org>
5279
edfef199
GM
5280 * minibuf.c (string_to_object): New.
5281 (read_minibuf_noninteractive): New.
5282 (read_minibuf): Call read_minibuf_noninteractive if
5283 noninteractive. Use string_to_object.
5284
82a700f3
GM
5285 * doc.c (Fdocumentation_property): Fix bug bypassing UNGCPRO.
5286
b5540f0d
DL
52871999-11-02 Dave Love <fx@gnu.org>
5288
e69dcd60
DL
5289 * gnu-linux.h: Use SIGCHLD, not SIGCLD (not in glibc 2.1).
5290
827a1788
DL
5291 * process.c: Define _GNU_SOURCE before config.h to get strsignal
5292 declared with glibc2.
b5540f0d 5293
a69a6e61
GM
52941999-11-02 Gerd Moellmann <gerd@gnu.org>
5295
5296 * lisp.h (QUIT): Give it statement form.
5297
87e21fbd
DL
52981999-11-02 Dave Love <fx@gnu.org>
5299
5300 * eval.c (init_eval): Conditionalize declaration of gcpro_level.
5301
1b335865
GM
53021999-11-02 Gerd Moellmann <gerd@gnu.org>
5303
9fb5e03d
GM
5304 * xfns.c (QCuser_data): New.
5305 (syms_of_xfns): Initialize QCuser_data.
5306 (parse_image_spec): Ignore :user-data DATA properties.
5307
1b335865
GM
5308 * xdisp.c (display_line): Set charpos of first glyph in blank
5309 lines not corresponding to any text to -1, even if no glyphs are
5310 filled in in that line.
5311
e76f1c44
GM
53121999-11-01 Gerd Moellmann <gerd@gnu.org>
5313
427ec082 5314 * xfns.c (png_load) [PNG_READ_sRGB_SUPPORTED]: Put code using
36fcd3d9
GM
5315 png_get_sRGB in #ifdef.
5316
111259b4
GM
5317 * dispnew.c (Finternal_show_cursor): Renamed from Fshow_cursor.
5318 (syms_of_display): Use the new name.
5319
dd5c96e8
GM
5320 * textprop.c (verify_interval_modification): Signal text-read-only
5321 instead of calling error.
5322
db8878fb
GM
5323 * data.c (Qtext_read_only): New built-in error.
5324 (syms_of_data): Initialize it.
5325
5326 * lisp.h: Add extern declaration for Qtext_read_only.
5327
e76f1c44
GM
5328 * syntax.c: Remove whitespace after open or in front of closing
5329 parentheses.
5330
83c8f461 53311999-11-01 Richard M. Stallman <rms@gnu.org>
cb3a6c48
GM
5332
5333 * Makefile.in (w16select.o, sound.o): Don't depend on lisp.h.
5334
7843e09c
GM
53351999-10-31 Gerd Moellmann <gerd@gnu.org>
5336
575ed805
GM
5337 * xdisp.c (resize_mini_window): Compute needed height differently.
5338
7843e09c
GM
5339 * fns.c (Flength): Unroll loop over lists.
5340
5341 * xdisp.c (append_space): Return non-zero if space was appended.
5342 (display_line): Set charpos of first glyph to -1 only if that
5343 glyph is the space added by append_glyph.
5344
83c8f461 53451999-10-30 Richard M. Stallman <rms@gnu.org>
cb3a6c48
GM
5346
5347 * print.c (strout): Consider `noninteractive' and use stdout
5348 only when PRINTCHARFUN is t.
5349
5350 * lisp.h (struct gcpro) [DEBUG_GCPRO]: New field `level'.
5351 (gcpro_level): Declare it extern.
5352 [DEBUG_GCPRO] (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
5353 Alternate definitions that set `level' and increment `gcpro_level'.
5354 [DEBUG_GCPRO] (UNGCPRO): Alternate definition that checks gcpro_level.
5355
5356 * eval.c [DEBUG_GCPRO] (gcpro_level): New variable.
5357 (init_eval) [DEBUG_GCPRO]: Initialize it.
5358 (unwind_to_catch) [DEBUG_GCPRO]: Set gcpro_level
5359 from remaining gcprolist.
5360
3636f7a3
KH
53611999-10-29 Kenichi Handa <handa@etl.go.jp>
5362
5363 * coding.c (code_convert_region): Update `dst' correctly.
5364
a2ad7096
GM
53651999-10-28 Gerd Moellmann <gerd@gnu.org>
5366
5367 * fns.c (Fmemq, Fassq, Frassq, assq_no_quit, Fassoc)
5368 (Frassoc): Rewritten.
5369
1e3196e8
GM
53701999-10-27 Noah Friedman <friedman@splode.com>
5371
5372 * s/gnu-linux.h [HAVE_DEV_PTMX]: Redefine FIRST_PTY_LETTER to 'z'.
5373 Define PTY_NAME_SPRINTF.
5374 Redefine PTY_TTY_NAME_SPRINTF.
5375 * config.in: Add undef for HAVE_DEV_PTMX.
5376
83c8f461 53771999-10-26 Richard M. Stallman <rms@gnu.org>
4ea68fcc
RS
5378
5379 * regex.c (POP_FAILURE_POINT): Use failure_id.integer
5380 as arg to DEBUG_POP and DEBUG_PRINT.
5381
83c8f461 53821999-10-27 Richard M. Stallman <rms@gnu.org>
17dbfaad
GM
5383
5384 * data.c (Qad_activate_internal): Renamed from Qad_activate.
5385 (Ffset): Call Qad_activate_internal.
5386 (syms_of_data): Initialize Qad_activate_internal.
5387
26922151
GM
53881999-10-27 Gerd Moellmann <gerd@gnu.org>
5389
5390 * xdisp.c (echo_area_display) [HAVE_X_WINDOWS]: Do nothing if
5391 Vterminal_frame is selected and Vwindow_system is non-nil.
5392
67a5596f
GM
53931999-10-26 Gerd Moellmann <gerd@gnu.org>
5394
2bea706b
GM
5395 * xdisp.c (echo_area_display): Put previous change in #if 0.
5396
67a5596f
GM
5397 * emacs.c (standard_args): Add `file' as synonym for `visit',
5398 `execute' as synonym for `eval'.
5399 (main): Add new options to usage message.
5400
81dc5de5
GM
54011999-10-25 Gerd Moellmann <gerd@gnu.org>
5402
5403 * data.c (Qhash_table): New.
5404 (Ftype_of): Return it for hash tables.
5405 (syms_of_data): Initialize Qhash_table.
5406
83c8f461 54071999-10-25 Richard M. Stallman <rms@gnu.org>
bd3c545d
GM
5408
5409 * regex.c (POP_FAILURE_POINT): Extract failure_id as an integer.
5410
66e4690f 54111999-10-24 Ken Raeburn <raeburn@gnu.org>
3a7093d8 5412
7539e11f
KR
5413 * alloc.c: Undef HIDE_LISP_IMPLEMENTATION before including
5414 lisp.h.
5415
5416 * buffer.c (Fbuffer_list, Fget_file_buffer, get_truename_buffer,
5417 Fbuffer_local_variables, Fother_buffer, record_buffer,
5418 set_buffer_internal_1, Fbury_buffer, Fkill_all_local_variables,
5419 swap_out_buffer_local_variables, overlays_at, overlays_in,
5420 overlay_touches_p, overlay_strings, recenter_overlay_lists,
5421 fix_overlays_in_range, fix_overlays_before, Foverlay_get,
5422 Foverlay_put, report_overlay_modification, evaporate_overlays):
5423 Use XCAR, XCDR, and XFLOAT_DATA instead of explicit member
5424 references.
5425 * data.c (Fcar, Fcar_safe, Fcdr, Fcdr_safe, Fsetcar, Fsetcdr,
5426 swap_in_symval_forwarding, set_internal, default_value,
5427 Fset_default, Fmake_variable_buffer_local, Fmake_local_variable,
5428 Fmake_variable_frame_local, Flocal_variable_p,
5429 Flocal_variable_if_set_p, arithcompare, Fzerop, cons_to_long,
5430 Fnumber_to_string, float_arith_driver, Fadd1, Fsub1): Likewise.
5431 * dispnew.c (Fframe_or_buffer_changed_p): Likewise.
5432 * emacs.c (main): Likewise.
5433 * fontset.c (fs_load_font, fs_register_fontset,
5434 CACHED_FONTSET_NAME, CACHED_FONTSET_REGEX, Fquery_fontset,
5435 Fnew_fontset, Fset_fontset_font): Likewise.
5436 * frame.c (do_switch_frame, next_frame, prev_frame,
5437 other_visible_frames, Fdelete_frame, Fvisible_frame_list):
5438 Likewise.
5439 * keyboard.c (read_char, help_char_p, event_to_kboard,
5440 kbd_buffer_get_event, timer_start_idle, timer_check,
5441 make_lispy_event, apply_modifiers, reorder_modifiers,
5442 Fevent_convert_list, lucid_event_type_list_p, menu_bar_items,
5443 menu_bar_one_keymap, menu_item_eval_property_1, parse_menu_item,
5444 tool_bar_items, read_char_x_menu_prompt, read_key_sequence,
5445 Fcommand_execute, Fexecute_extended_command): Likewise.
5446 * minibuf.c (read_minibuf, get_minibuffer, Ftry_completion,
5447 Fall_completions): Likewise.
5448 * window.c (Fset_window_margins): Likewise.
5449
5450 * callint.c (quotify_args): Don't explicitly use struct
5451 Lisp_Cons, use Lisp_Object and XCAR/XCDR instead.
5452
3a7093d8
KR
5453 * s/netbsd.h (HAVE_GETLOADAVG): Define as 1.
5454 (UNEXEC, START_FILES, LIB_STANDARD, LIB_GCC): Define ELF versions,
5455 if __ELF__ is defined.
5456
2a3d7146
GM
54571999-10-24 Gerd Moellmann <gerd@gnu.org>
5458
5459 * window.c (Fnext_window): Add a QUIT in the loop.
5460
8ac52782
GM
54611999-10-23 Gerd Moellmann <gerd@gnu.org>
5462
427ec082 5463 * Makefile.in (bootstrap, bootstrap-emacs, bootstrap-temacs):
8ac52782
GM
5464 New targets.
5465
05f0d15a
DL
54661999-10-22 Dave Love <fx@gnu.org>
5467
5468 * emacs.c (main): Enable profiling conditional on __linux also.
5469
882fb0e6
GM
54701999-10-20 Gerd Moellmann <gerd@gnu.org>
5471
5472 * xrdb.c (x_load_resources): Set default resources for resource
5473 classes instead of for the specific Emacs.
5474
b5f5bc31
GM
54751999-10-19 Gerd Moellmann <gerd@gnu.org>
5476
66f4dd69
GM
5477 * s/freebsd.h (HAVE_GETLOADAVG): Define as 1 because config.h
5478 defines it that way.
427ec082 5479
b5f5bc31
GM
5480 * xdisp.c (echo_area_display) [HAVE_X_WINDOWS]: Do nothing
5481 if selected_frame is equal to Vterminal_frame.
5482
68c45bf0 54831999-10-19 Paul Eggert <eggert@twinsun.com>
427ec082 5484
68c45bf0 5485 Add support for large files, 64-bit Solaris, system locale codings.
427ec082 5486
68c45bf0
PE
5487 * Makefile.in (emacs): Set the LC_ALL environment variable to "C"
5488 when dumping, so that the dumped Emacs doesn't have stray locale info.
5489 (dired.o): Depend on systime.h.
5490 (editfns.o): Depend on coding.h.
5491
5492 * alloc.c, buffer.c, callproc.c, ccl.c, charset.c, coding.c, data.c,
5493 dispnew.c, editfns.c, emacs.c, filelock.c, floatfns.c, hftctl.c,
5494 keyboard.c, process.c, sysdep.c, unexelf.c, unexhp9k800.c,
5495 unexsunos4.c, vmsfns.c, vmsgmalloc.c, w32faces.c, w32menu.c, w32term.c,
5496 w32xfns.c, xfaces.c, xfns.c, xmenu.c, xterm.c:
5497 Include <config.h> before any system include files.
5498
5499 * alloc.c, buffer.c, ccl.c, data.c, editfns.c, emacs.c, eval.c,
5500 fileio.c, filelock.c, frame.c, insdel.c, keymap.c, lread.c,
5501 m/alpha.h, print.c, search.c, sysdep.c, xdisp.c, xfaces.c, xfns.c,
5502 xmenu.c, xterm.c:
5503 Do not include <stdlib.h>, as <config.h> does this now.
5504
5505 * callproc.c (Fcall_process):
5506 Synchronize messages locale before invoking strerror.
5507 Decode resulting string with locale-coding-system.
5508
5509 * coding.c (Vlocale_coding_system): New var.
5510 (syms_of_coding): Adjust to above change.
5511 (emacs_strerror): New function.
5512
5513 * coding.h (emacs_strerror, Vlocale_coding_system): New decls.
427ec082 5514
68c45bf0
PE
5515 * config.in (HAVE_STDIO_EXT_H, HAVE_TM_GMTOFF, HAVE___FPENDING,
5516 HAVE_FTELLO, HAVE_GETLOADAVG, HAVE_MBLEN, HAVE_MBRLEN,
5517 HAVE_STRSIGNAL): New macros.
5518 (BITS_PER_LONG): Default to 64 if _LP64 is defined.
5519 <stdlib.h>: Include if HAVE_STDLIB_H is defined and NOT_C_CODE isn't.
5520
5521 * dired.c: Include "systime.h".
5522 (Ffile_attributes): Do not cast s.st_size to int; this loses
5523 information if int is 32 bits but st_size and EMACS_INT are larger.
5524 Treat large device numbers like large inode numbers.
5525
5526 * dispnew.c (PENDING_OUTPUT_COUNT): Use __fpending if available.
5527
5528 * editfns.c: Include coding.h.
5529 (emacs_strftime): Remove decl.
5530 (emacs_strftimeu): New decl.
5531 (emacs_memftimeu): Renamed from emacs_memftime; new arg UT.
5532 Use emacs_strftimeu instead of emacs_strftime.
5533 (Fformat_time_string): Convert format string using
5534 Vlocale_coding_system, and convert result back. Synchronize time
5535 locale before invoking lower level function. Invoke
5536 emacs_memftimeu, passing ut, instead of emacs_memftime.
427ec082 5537
68c45bf0
PE
5538 * emacs.c: Include <locale.h> if HAVE_SETLOCALE is defined.
5539 (Vmessages_locale, Vprevious_messages_locale, Vtime_locale,
5540 Vprevious_time_locale): New variables.
5541 (main): Invoke setlocale early, so that initial error messages are
5542 localized properly. But skip locale-setting if LC_ALL is "C".
5543 Fix up locale when it's safe to do so.
5544 (fixup_locale): Moved here from xterm.c.
5545 (synchronize_locale, synchronize_time_locale,
5546 synchronize_messages_locale): New functions.
5547 (syms_of_emacs): Accommodate above changes.
5548
5549 * fileio.c (report_file_error): Convert strerror output according
5550 to Vlocale_coding_system.
5551 (Finsert_file_contents): Check for arithmetic overflow in
5552 computations that depend on file size. Report IO errors
5553 with emacs_strerror, not strerror.
5554
5555 * fns.c (Fgethash): Declare dflt parameter.
5556
5557 * gmalloc.c: Do not define const to nothing if HAVE_CONFIG_H
5558 is defined; that's config.h's job.
5559
5560 * lisp.h (EMACS_INT, BITS_PER_EMACS_INT, EMACS_UINT): If _LP64,
5561 default these values to long, BITS_PER_LONG, and unsigned long.
5562 (VALBITS, MARKBIT, XINT): Do not assume 32-bit EMACS_INT.
5563 (PNTR_COMPARISON_TYPE): Default to EMACS_UINT, not to unsigned int.
5564 (code_convert_string_norecord, fixup_locale,
5565 synchronize_messages_locale, synchronize_time_locale,
5566 emacs_open, emacs_close, emacs_read, emacs_write): New decls.
5567 All Emacs callers of open, close, read, write changed to use
5568 emacs_open, emacs_close, emacs_read, emacs_write.
5569
5570 * lread.c (file_offset, file_tell): New macros. All uses of ftell
5571 changed to file_tell.
5572 (saved_doc_string_position, prev_saved_doc_string_position): Now
5573 of type file_offset.
5574 (init_lread): Do not fix locale here; fixup_locale now does this.
5575
5576 * m/amdahl.h, s/usg5-4.h:
5577 (NSIG): Remove.
5578 (NSIG_MINIMUM): New macro.
5579
5580 * m/cydra5.h, m/dpx2.h, m/mips.h, m/pfa50.h, m/sps7.h, m/stride.h,
5581 m/ustation.h, s/gnu-linux.h, s/hpux.h, s/iris3-5.h, s/iris3-6.h,
5582 s/umips.h, s/usg5-4.h:
5583 (SIGIO): Do not undef.
5584 (BROKEN_SIGIO): New macro.
5585
5586 * m/ustation.h:
5587 (SIGTSTP): Do not undef.
5588 (BROKEN_SIGTSTP): New macro.
5589
5590 * s/gnu-linux.h:
5591 (SIGPOLL, SIGURG): Do not undef.
5592 (BROKEN_SIGPOLL, BROKEN_SIGURG): New macros.
5593
5594 * s/ptx4.h:
5595 (SIGINFO): Do not undef.
5596 (BROKEN_SIGINFO): New macros.
427ec082 5597
68c45bf0
PE
5598 * m/delta.h, s/ptx.h, s/template.h: Doc fix.
5599
5600 * mktime.c, strftime.c: Update to glibc 2.1.2 version, with
5601 some Emacs-related changes merged.
5602
5603 * print.c (float_to_string): Prepend "-" to representation of a
5604 NaN if the NaN is negative.
5605
5606 * process.c (sys_siglist): Omit if HAVE_STRSIGNAL.
5607 (wait_reading_process_input): Use emacs_strerror, not strerror.
427ec082 5608
68c45bf0
PE
5609 * process.c (status_message, sigchld_handler): Synchronize locale,
5610 then use strsignal istead of sys_siglist.
5611 * w32proc.c (sys_wait): Likewise.
427ec082 5612
68c45bf0
PE
5613 * s/aix3-1.h, s/bsd4-1.h, s/dgux.h, s/gnu-linux.h, s/hiuxmpp.h,
5614 s/hpux.h, s/iris3-5.h, s/iris3-6.h, s/irix3-3.h, s/osf1.h, s/rtu.h,
5615 s/sunos4-1.h, s/unipl5-0.h, s/unipl5-2.h, s/usg5-0.h, s/usg5-2-2.h,
5616 s/usg5-2.h, s/usg5-3.h, s/xenix.h:
5617 (open, close, read, write, INTERRUPTIBLE_OPEN,
5618 INTERRUPTIBLE_CLOSE, INTERRUPTIBLE_IO): Remove.
5619
5620 * s/sol2-5.h (_LARGEFILE_SOURCE, _FILE_OFFSET_BITS): New macros.
5621
5622 * sysdep.c (sys_read, sys_write, read, write, sys_close, close,
5623 sys_open, open): Remove.
5624 (emacs_open, emacs_close, emacs_read, emacs_write): Always define;
5625 the old INTERRUPTIBLE_OPEN, INTERRUPTIBLE_CLOSE, and INTERRUPTIBLE_IO
5626 macros are no longer used.
5627 (emacs_open): Renamed from sys_open. Merge BSD4_1 version.
5628 (emacs_close): Renamed from sys_close.
5629 (emacs_read): Renamed from sys_read.
5630 (emacs_write): Renamed from sys_write.
5631 (sys_siglist): Do not declare if HAVE_STRSIGNAL.
5632 (dup2): Do not print error on failure; the real dup2 doesn't.
5633 (strsignal): New function, defined if !HAVE_STRSIGNAL.
5634
5635 * syssignal.h (SIGINFO): Undef if defined and if BROKEN_SIGINFO
5636 is defined.
5637 (SIGIO, SIGPOLL, SIGTSTP, SIGURG): Likewise.
5638 (NSIG): If less than NSIG_MINIMUM, define to NSIG_MINIMUM.
5639 (strsignal): Declare if !HAVE_STRSIGNAL.
5640
5641 * unexelf.c (ElfBitsW, ELFSIZE, ElfExpandBitsW): New macros.
5642 (ElfW): Define in terms of ElfExpandBitsW.
5643
5644 * w32proc.c (sys_siglist): Remove decl.
5645
5646 * xdisp.c (decode_mode_spec): 3rd arg is int, not char, to comply
5647 with ANSI C.
5648 (display_string): Declare face_string_pos arg.
5649
5650 * xfns.c (Fx_show_tip): Declare timeout param.
5651
5652 * xterm.c: No need to include locale.h.
5653 (x_alloc_lighter_color, x_setup_relief_color):
5654 Pass arg as double, not float, for compatibility with ANSI C.
5655 (fixup_locale): Move to emacs.c.
5656 (x_term_init): Do not setlocale or fixup locale; the main program
5657 does this now.
5658
2f0b74ea
DL
56591999-10-18 Dave Love <fx@gnu.org>
5660
5661 * doc.c (Fdocumentation_property): Gcpro `tem'.
5662
471aa4a0
KH
56631999-10-18 Kenichi Handa <handa@etl.go.jp>
5664
5665 * lread.c (Fload): Calculate bytes of filename correctly.
5666 (openp): Likewise.
5667
aca2020b
KH
56681999-10-18 Keisuke Nishida <kxn30@po.cwru.edu>
5669
5670 * print.c (print_preprocess): In case print-circle is nil,
5671 add OBJ to Vprint_number_table only when OBJ is a symbol.
5672
1f5fe392 56731999-10-18 Kenichi Handa <handa@etl.go.jp>
b843d1ae
KH
5674
5675 * coding.c (code_convert_string): Add record_unwind_protect to
5676 assure setting inhibit_pre_post_conversion back to zero. Take
5677 care of the multibyteness of the working buffer.
5678
5679 * coding.c (inhibit_pre_post_conversion): New variable.
5680 (setup_coding_system): If inhibit_pre_post_conversion is nonzero,
5681 ignore post-read-conversion and pre-write-conversion property of
5682 the coding system.
5683 (code_convert_region_unwind): New function.
5684 (code_convert_region): Set inhibit_pre_post_conversion to 1 while
5685 running pre-write-conversion and post-read-conversion.
5686 (code_convert_string): Likewise.
5687
cd876a91
GM
56881999-10-17 Miles Bader <miles@gnu.org>
5689
5690 * editfns.c: Doc fix.
5691
56921999-10-17 Miles Bader <miles@gnu.org>
5693
5694 * editfns.c (Fconstrain_to_field): Make sure we don't violate the
5695 argument preconditions of find_before_next_newline in the case
5696 where both ONLY_IN_LINE and ESCAPE_FROM_EDGE are set and OLD_POS
5697 was indeed at the edge.
5698
56991999-10-17 Miles Bader <miles@gnu.org>
5700
5701 * minibuf.c (Fminibuffer_complete_and_exit): Supply value for new
5702 ESCAPE_FROM_EDGE parameter to Ffield_beginning.
5703
5704 * editfns.c (text_property_eq, text_property_stickiness): Don't
5705 use initializers for auto variables of type Lisp_Object.
5706 (find_field): Likewise. Use braces around nested ifs.
5707 (Fline_end_position): Store the raw eol in a variable, so that the
5708 final expression doesn't look so ugly.
5709 (Fconstrain_to_field): Doc fix.
5710 (preceding_pos): Renamed from `preceeding_pos'.
5711 (text_property_stickiness, find_field): Call preceding_pos,
5712 not preceeding_pos.
5713
57141999-10-17 Miles Bader <miles@gnu.org>
5715
5716 * editfns.c (Ffield_string_no_properties): New function.
5717 (text_property_stickiness, preceeding_pos): New functions.
5718 (Ffield_string): Remove PROPS parameter.
5719 (find_field): Add MERGE_AT_BOUNDARY parameter.
5720 Rewrite to use stickiness of `field' property to resolve
5721 ambiguous cases.
5722 (Ffield_beginning, Ffield_end): Add ESCAPE_FROM_EDGE parameter.
5723 (Fconstrain_to_field): Likewise.
5724 (syms_of_editfns): Init Sfield_string_no_properties.
427ec082 5725 (Ffield_string, Ferase_field, Ffield_end):
cd876a91
GM
5726 Supply new MERGE_AT_BOUNDARY argument to find_field.
5727 (Fline_beginning_position, Fline_end_position): Supply new
5728 ESCAPE_FROM_EDGE parameter to Fconstrain_to_field.
5729 Pass a value of Qt for the ONLY_IN_LINE argument to
5730 Fconstrain_to_field (only matters if N != 1).
5731 * syntax.c (Fforward_word): Supply new ESCAPE_FROM_EDGE parameter
5732 to Fconstrain_to_field.
5733
5734 * minibuf.c (Fminibuffer_complete_word): Use
5735 Ffield_beginning to find the prompt end.
5736
57371999-10-17 Miles Bader <miles@gnu.org>
5738
5739 * editfns.c (Fconstrain_to_field): Add get/set-current-point
5740 behavior when NEW_POS is nil.
5741 (find_field): Use XSETFASTINT instead of make_number.
5742 * minibuf.c (Fminibuffer_complete_and_exit): Test for an empty
5743 input string by seeing where the field begins, instead of
5744 looking at text-properties.
5745
57461999-10-17 Miles Bader <miles@gnu.org>
5747
5748 * editfns.c (Qfield): New variable.
5749 (find_field, Ferase_field, Ffield_string,
5750 Ffield_beginning, Ffield_end, Fconstrain_to_field): New functions.
5751 (Fline_beginning_position, Fline_end_position): Constrain to any field.
5752 (make_buffer_string_both): Remove minibuffer-prompt hack.
5753 (syms_of_editfns): Initialize Qfield, and subr entries for
5754 field functions above.
5755 * minibuf.c (read_minibuf): Don't save minibuffer prompt length on
5756 minibuf_save_list.
5757 Don't initialize minibuffer prompt length.
5758 Wrap prompt text-properties around the entire prompt.
5759 Add 'prompt text-property to prompt.
5760 Get final value with Ffield_string instead of make_buffer_string.
5761 (read_minibuf_unwind): Don't restore minibuffer prompt length from
5762 minibuf_save_list.
5763 (do_completion): Get minibuffer input with Ffield_string
5764 instead of Fbuffer_string.
5765 Erase minibuffer input with Ferase_field instead of erase_buffer.
5766 (Fminibuffer_complete_and_exit): Likewise.
5767 Test whether buffer is empty by looking for the 'prompt text
5768 property at the end.
5769 Set prompt length by looking for the end of the prompt text property,
5770 and save prompt length for later use (since there is no longer a
5771 buffer variable to get it from).
5772 (Fminibuffer_prompt_width, Fminibuffer_prompt_end): Functions removed.
5773 (syms_of_minibuf): Remove initializations of
5774 Sminibuffer_prompt_width and Sminibuffer_prompt_end.
5775 * buffer.h (struct buffer): Remove prompt_end_charpos field.
427ec082 5776 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer, Fkill_buffer):
cd876a91
GM
5777 Don't initialize prompt_end_charpos field.
5778 * syntax.c (Fforward_word): Likewise.
5779 Constrain to any field.
5780
3f6f7508
GM
57811999-10-16 Gerd Moellmann <gerd@gnu.org>
5782
5783 * window.c (enum save_restore_action): New.
5784 (save_restore_orig_size): Change parameter list. Add
5785 functionality to check for valid orig_top and orig_height members
5786 in a window tree.
5787 (grow_mini_window): Call save_restore_orig_size with new parameter
5788 list.
5789 (shrink_mini_window): Restore old window sizes only if old
5790 size information is valid in all windows in a window tree.
427ec082 5791
06482119
GM
57921999-10-15 Gerd Moellmann <gerd@gnu.org>
5793
2710454d
GM
5794 * xmenu.c (set_frame_menubar): Don't call
5795 x_set_menu_resources_from_menu_face here.
5796 (update_frame_menubar): Call x_set_menu_resources_from_menu_face.
5797
06482119
GM
5798 * xfns.c (gif_load): Fix handling of interlaced GIFs.
5799
17fa2837
DL
58001999-10-14 Dave Love <fx@gnu.org>
5801
5802 * xdisp.c (handle_fontified_prop): GCPRO `pos'.
5803
45f93416
GM
58041999-10-14 Gerd Moellmann <gerd@gnu.org>
5805
5806 * process.c (Fopen_network_stream): Don't loop if gethostbyname
5807 fails and h_errno is TRY_AGAIN.
5808
c765b723
DL
58091999-10-13 Dave Love <fx@gnu.org>
5810
5811 * filelock.c (lock_file): Move gcpro of `fn'.
5812
dace7f4e
GM
58131999-10-10 Gerd Moellmann <gerd@gnu.org>
5814
5815 * keyboard.c (auto-save-interval): Fix documentation.
427ec082 5816
83c8f461 58171999-10-09 Richard M. Stallman <rms@gnu.org>
73fb36f1
RS
5818
5819 * print.c (print): When removing objects from Vprint_number_table,
5820 only scan the newly added objects.
5821 (print_preprocess): If OBJ is a gensym, and print-continuous-numbering,
5822 unconditionally force it to stay in the table.
5823
85177c86
GM
58241999-10-09 Gerd Moellmann <gerd@gnu.org>
5825
5826 * xfns.c (prepare_image_for_display): Don't try to load image if
5827 loading it failed before.
5828 (lookup_image, prepare_image_for_display): Remember if loading the
5829 image failed.
5830 (xpm_load): Add missing UNBLOCK_INPUT.
5831
5832 * dispextern.h (struct image): New member load_failed_p.
5833
11e4de5d
SM
58341999-10-08 Stefan Monnier <monnier@cs.yale.edu>
5835
f28eba7b 5836 * fileio.c (Fmake_temp_name): Add a reference to `make-temp-file'
11e4de5d
SM
5837 in the docstring.
5838
f1da8f06
GM
58391999-10-08 Gerd Moellmann <gerd@gnu.org>
5840
5841 * xterm.c (XTread_socket) <ClientMessage, WM_TAKE_FOCUS>:
5842 Don't call XSetInputFocus because that can generate additional
5843 FocusIn events.
427ec082 5844
c37bbd4f
GM
58451999-10-07 Jeffrey C Honig <jch@bsdi.com>
5846
5847 * bsdos4.h [HAVE_LIBNCURSES]: Define TERMINFO and LIBS_TERMCAP.
5848
83c8f461 58491999-10-07 Richard M. Stallman <rms@gnu.org>
78cc5c64
GM
5850
5851 * process.c (wait_reading_process_input): When trying to suck
5852 input from one process, for accept-process-output,
5853 exit that loop if we get EAGAIN or EWOULDBLOCK.
5854
577d9e2f
GM
58551999-10-07 Gerd Moellmann <gerd@gnu.org>
5856
5857 * xfaces.c (Qbitmap_spec_p): Replaces Qpixmap_spec_p.
5858 (Fbitmap_spec_p): Replaces Fpixmap_spec_p.
5859 (load_pixmap): Use Fbitmap_spec_p and Qbitmap_spec_p instead of
5860 Fpixmap_spec_p and Qpixmap_spec_p.
5861 (load_face_colors, check_lface_attrs,
5862 merge_face_vector_with_property,
5863 Finternal_set_lisp_face_attribute): Use Fbitmap_spec_p.
5864 (syms_of_xfaces): Initialize Qbitmap_spec_p, defsubr
5865 Fbitmap_spec_p.
5866
f5737ad2
GM
58671999-10-07 Gerd Moellmann <gerd@gnu.org>
5868
5869 * xdisp.c (display_menu_bar): Use MENU_FACE_ID instead of
5870 MODE_LINE_FACE_ID.
5871
5872 * xfaces.c (toplevel) [USE_MOTIF]: Include some Motif headers.
5873 (struct x_resources) [USE_X_TOOLKIT]: New.
5874 (xm_apply_resources, xm_set_menu_resources_from_menu_face)
5875 [USE_MOTIF]: New.
5876 (xl_apply_resources, xl_set_menu_resources_from_menu_face)
5877 [USE_LUCID]: New.
5878 (x_set_menu_resources_from_menu_face) [USE_X_TOOLKIT]: New.
5879 (Qmenu): New.
5880 (syms_of_xfaces): Initialize Qmenu.
5881 (realize_basic_faces): Realize face `menu'.
5882 (resolve_face_name): New.
5883 (lface_from_face_name): Use it.
5884 (Finternal_set_lisp_face_attribute): Ditto.
5885 (Fpixmap_spec_p): Rewritten. Extend doc string.
5886
5887 * xmenu.c (set_frame_menubar, xmenu_show): Call
5888 x_set_menu_resources_from_menu_face.
5889
5890 * dispextern.h (enum face_id): Add MENU_FACE_ID.
5891 (toplevel): Include X11/Intrinsic.h.
5892
6a1aa823
DL
58931999-10-03 Ken'ichi Handa <handa@gnu.org>
5894
5895 * coding.c (DECODE_CHARACTER_ASCII): Decode ASCII invocated to GR
5896 correctly.
5897
26901792
DL
58981999-09-30 Kenichi Handa <handa@etl.go.jp>
5899
5900 * category.c (modify_lower_category_set): Set default value of
5901 TABLE correctly.
5902
5903 * minibuf.c (Fminibuffer_complete_word): Calculate string byte
5904 size correctly.
5905
59061999-09-29 Gerd Moellmann <gerd@gnu.org>
5907
5908 * editfns.c (Fpropertize): Renamed from Fproperties.
5909
59101999-09-29 Gerd Moellmann <gerd@gnu.org>
5911
5912 * xdisp.c (resize_mini_window): Do nothing if frame is an X
5913 frame that hasn't been initialized yet.
5914
83c8f461 59151999-09-28 Richard M. Stallman <rms@gnu.org>
a04f1a93
PR
5916
5917 * keymap.c (Fsingle_key_description): Make tem big enough.
5918 (describe_buffer_bindings): Make buf big enough.
5919
83c8f461 59201999-09-27 Richard M. Stallman <rms@gnu.org>
d177c583
PR
5921
5922 * intervals.c (get_local_map): Use indirect_function,
5923 not Findirect_function.
5924
26901792
DL
59251999-09-27 Dave Love <fx@gnu.org>
5926
5927 * cm.h: Remove unneeded declaration of ospeed.
5928
59291999-09-26 Gerd Moellmann <gerd@gnu.org>
5930
5931 * lisp.h (toplevel): Add prototype for
5932 next_single_char_property_change.
5933
5934 * textprop.c (next_single_char_property_change): New.
5935
5936 * xdisp.c (display_prop_end, invisible_text_between_p): Use
5937 next_single_char_property_change.
5938
59391999-09-25 Gerd Moellmann <gerd@gnu.org>
5940
5941 * editfns.c (Fproperties): New.
5942 (syms_of_editfns): Defsubr it.
5943
5944 * xfns.c (lookup_image): Set image's timestamp because it's
5945 used when we look it up.
5946
59471999-09-23 Gerd Moellmann <gerd@gnu.org>
5948
5949 * window.c (enlarge_window): Add window parameter instead of using
5950 selected_window.
5951 (Fdisplay_buffer): Call it with window parameter instead of
5952 setting selected_window.
5953 (Fenlarge_window, Fshrink_window): Ditto.
5954 (shrink_mini_window): If there is no recorded height and position
5955 info, resize mini-window to height 1.
5956
5957 * xfns.c (image_error): Use add_to_log.
5958
5959 * xfaces.c (load_pixmap): Call add_to_log without frame parameter.
5960 (load_face_font_or_fontset, load_color,
5961 merge_face_vector_with_property): Ditto.
5962
5963 * dispextern.h: Add prototype for add_to_log.
5964
5965 * xfaces.c (add_to_log): Move to xdisp.c.
5966
5967 * xdisp.c (add_to_log): Moved from xfaces.c. Remove frame
5968 parameter.
5969
59701999-09-23 Gerd Moellmann <gerd@gnu.org>
5971
5972 * xterm.c (XTread_socket) <MotionNotify>: Change #ifdef
5973 USE_X_TOOLKIT to #ifdef USE_TOOLKIT_SCROLL_BARS.
5974
5975 * xdisp.c (resize_mini_window): Use grow_mini_window and
5976 shrink_mini_window.
5977
5978 * window.c (window_min_size): Add parameter ignore_fixed_p.
5979 (change_window_height): Call window_min_size with new parameter.
5980 (shrink_window_lowest_first, save_restore_orig_size,
5981 grow_mini_window, shrink_mini_window): New.
5982 (make_window, replace_window): Initialize orig_top and
5983 orig_height.
5984 (enlarge_window): Renamed from change_window_height. Make it
5985 static.
5986 (Fdisplay_buffer, Fenlage_window, Fshrink_window): Call
5987 enlarge_window instead of change_window_height.
5988
5989 * window.h (struct window): New members orig_top, orig_height.
5990 (toplevel): Add prototypes for grow_mini_window and
5991 shrink_mini_window. Remove prototype for change_window_height.
5992
59931999-09-21 Eli Zaretskii <eliz@gnu.org>
5994
5995 * frame.c (frame_name_fnn_p): Fix previous change.
5996
59971999-09-20 Gerd Moellmann <gerd@gnu.org>
5998
5999 * minibuf.c (toplevel): Move include of stdio.h to other includes.
6000
6001 * dispnew.c (direct_output_for_insert): Cast arguments to
6002 safe_bcopy to char *.
6003
6004 * lread.c (readchar): Remove unused variables.
6005 (read_filtered_event, read1, Fmapatoms): Ditto.
6006 (toplevel): Include intervals.h.
6007
6008 * eval.c (Fsignal): Remove unused variables.
6009 (Fcommandp, do_autoload): Ditto.
6010
6011 * lisp.h: Add prototype for safe_bcopy, fatal.
6012
6013 * editfns.c (init_editfns): Remove unused variables.
6014 (Fgoto_char, Fchar_after, Fformat): Ditto.
6015 (message_text, message_length): Put in #ifndef HAVE_MENUS.
6016
6017 * data.c (find_symbol_value): Remove unused variables.
6018 (Faref, Fstring_to_number): Ditto.
6019 (toplevel): Include stdio.h.
6020 (Fnumber_to_string): Cast XINT to long for %ld.
6021
6022 * casefiddle.c (casify_object): Remove unused variables.
6023 (casify_region): Ditto.
6024
427ec082 6025 * filelock.c (get_boot_time): Put local variable used in
26901792
DL
6026 conditinally compiled section in #ifdef.
6027 (toplevel): Include stdio.h.
6028
6029 * keymap.c (Flookup_key, Faccessible_keymaps, describe_vector,
6030 keys_of_keymap, syms_of_keymap): Remove unused variables.
6031
60321999-09-20 Gerd Moellmann <gerd@gnu.org>
6033
6034 * xdisp.c (sync_frame_with_window_matrix_rows): Disable frame rows
6035 whose corresponding window rows have been disabled in
6036 try_window_id.
6037
60381999-09-20 Gerd Moellmann <gerd@gnu.org>
6039
6040 * xdisp.c (compute_window_start_on_continuation_line): Handle case
6041 that window start is out of range.
6042 (handle_display_prop, handle_single_display_prop): Replace
6043 marginal area specifications like `left-margin' with `(margin
6044 left-margin)'.
6045 (Qmargin): New.
6046 (syms_of_xdisp): Initialize Qmargin.
6047
60481999-09-19 Gerd Moellmann <gerd@gnu.org>
6049
6050 * syntax.c (update_syntax_table, find_defun_start, back_comment,
6051 describe_syntax, skip_chars): Remove unused variables.
6052 (back_comment, forw_comment): Add braces to if-statement with
6053 if-else as dependent statement.
6054
6055 * process.c (list_processes_1): Remove unused variables.
6056 (Fopen_network_stream, create_process): Add parentheses to
6057 conditional expressions.
6058 (create_process): Put declaration of sigchld in #if 0.
6059 (Fopen_network_stream): Removed unused variables.
6060 (Fopen_network_stream, wait_reading_process_input,
6061 wait_reading_process_input, send_process, send_process): Ditto.
6062 (toplevel): Add prototypes for set_waiting_for_input and
6063 keyboard_bit_set.
6064
6065 * abbrev.c (Fexpand_abbrev): Remove unused variables.
6066
6067 * textprop.c (Fset_text_properties): Remove unused variables.
6068 (text_property_list, verify_interval_modification,
6069 interval_has_all_properties): Ditto.
6070
6071 * callproc.c (toplevel) [HAVE_UNISTD_H]: Include unistd.h.
6072 (Fcall_process): Remove unused variable.
6073
6074 * keyboard.c (Frecursive_edit): Remove unused variable.
6075 (command_loop_1, safe_run_hooks, kbd_buffer_get_event,
6076 timer_check, make_lispy_event, menu_bar_items,
6077 menu_bar_one_keymap, menu_bar_item, parse_menu_item,
6078 parse_tool_bar_item, read_char_x_menu_prompt, read_key_sequence,
6079 kbd_buffer_get_event, make_lispy_event, read_char_x_menu_prompt,
6080 read_key_sequence): Ditto. Fread_key_sequence,
6081 Fread_key_sequence_vector, Fsuspend_emacs): Ditto.
6082 (read_key_sequence) [GOBBLE_FIRST_EVENT]: Put local variables only
6083 used when GOBBLE_FIRST_EVENT is defined in #ifdef
6084 (Fexecute_extended_command): Cast XINT to long for %ld.
6085 (toplevel) [HAVE_UNISTD_H]: Include unistd.h.
6086 (toplevel): Include sys/types.h.
6087
6088 * lisp.h (RETURN_UNGCPRO): Use do-while (0) idiom.
6089 (toplevel): Add prototypes for stuff_char, and
6090 code_convert_string_norecord.
6091
60921999-09-19 Gerd Moellmann <gerd@gnu.org>
6093
6094 * buffer.h: Add prototype for r_re_alloc.
6095
6096 * insdel.c (copy_text): Removed unused variables.
6097 (count_combining_after, count_combining_after, insert_1_both,
6098 insert_from_string_1, insert_from_buffer_1, check_markers): Ditto.
6099 (adjust_after_replace, replace_range): Add parentheses to logical
6100 expressions. Remove unused variables.
6101 (CHECK_BYTE_COMBINING_FOR_INSERT): Add parentheses to logical
6102 expression.
6103
6104 * alloc.c (Fgarbage_collect): Remove unused variable.
6105 (compact_strings): Add parentheses around assignments in
6106 conditional context.
6107 (toplevel): Put declaration of unused function clear_marks
6108 in #if 0 like its definition.
6109
6110 * lisp.h: Add prototype for shrink_regexp_cache,
6111 sweep_weak_hash_tables.
6112
61131999-09-19 Dave Love <fx@gnu.org>
6114
6115 * process.c (Fopen_network_stream): Use strerror, not gai_strerror.
6116
6117 * doc.c (read_bytecode_char): Declare arg.
6118
6119 * lisp.h: Declare Fcurrent_message, Fmake_temp_name,
6120 read_bytecode_char, Fx_hide_busy_cursor, getloadavg.
6121
61221999-09-18 Richard Stallman <rms@gnu.org>
6123
6124 * xdisp.c (echo_area_display): Turn off code that returned
6125 without doing anything when using a terminal frame.
6126
83c8f461 61271999-09-17 Richard M. Stallman <rms@gnu.org>
27271329
PR
6128
6129 * unexelf.c (unexec): Don't get confused by a short section
6130 just before the bss section.
6131
26901792
DL
61321999-09-16 Gerd Moellmann <gerd@gnu.org>
6133
6134 * emacs.c (main): Remove unused variables.
6135 (sort_args, Fkill_emacs, Fkill_emacs): Ditto.
6136
6137 * lisp.h: Add prototype for uninterrupt_malloc, memory_warnings,
6138 init_fileio_once, syms_of_sound, init_xfns, init_fns
6139 init_sound, check_message_stack.
6140
6141 * emacs.c (toplevel) [HAVE_UNISTD_H]: Include unistd.h.
6142
6143 * intervals.c (rotate_right, rotate_left): Add braces to avoid
6144 ambiguous else warning.
6145 (split_interval_left): Remove unused variables.
6146 (previous_interval, adjust_intervals_for_deletion,
6147 set_point_both, set_point_both, set_intervals_multibyte_1): Ditto.
6148 (icount, idepth, zero_length): Move into #if 0 section below
6149 original position where these are used.
6150
6151 * buffer.h [REL_ALLOC]: Add prototypes for r_alloc and r_alloc_free.
6152
6153 * buffer.c (Fkill_buffer): Remove unused variables.
6154 (Fkill_buffer, overlays_at, overlays_in, recenter_overlay_lists,
6155 fix_overlays_in_range, Fmove_overlay, Fprevious_overlay_change,
6156 init_buffer_once, (syms_of_buffer): Ditto.
6157
6158 * xrdb.c (get_fallback): Remove unused variable.
6159 (x_load_resources): Ditto. Put local variable used for Motif only
6160 in #ifdef USE_MOTIF.
6161
61621999-09-16 Gerd Moellmann <gerd@gnu.org>
6163
6164 * minibuf.c (read_minibuf): Remove unused variables.
6165 (read_minibuf, Fread_buffer, scmp, Fcompleting_read): Ditto.
6166 (do_completion): Move assignment out of conditional context.
6167 (Fdisplay_completion_list): Add parentheses to conditional expression.
6168
6169 * cm.c (toplevel) [HAVE_TERMCAP_H]: Include termcap.h.
6170
6171 * lisp.h: Add prototype for no_switch_window.
6172
6173 * window.c (Fset_window_buffer): Remove unused variables.
6174 (Fset_window_margins): Ditto.
6175
6176 * xdisp.c (resize_mini_window): Temporarily set the selected
6177 window's or Vminibuf_scroll_window's height to "fixed" around
6178 the call the change_window_height.
6179
6180 * window.c (window_fixed_size_p): Check window's height_fixed_p
6181 flag.
6182
6183 * window.h (struct window): New member height_fixed_p.
6184
6185 * dispnew.c (direct_output_forward_char): Don't use this method
6186 if showing a message or a message was just cleared because we
6187 might need to resize the mini-window.
6188
61891999-09-16 Gerd Moellmann <gerd@gnu.org>
6190
6191 * frame.c (Fdelete_frame): Correct local variable pointing to
6192 selected frame after selecting new frame.
6193
61941999-09-15 Richard Stallman <rms@gnu.org>
6195
6196 * puresize.h (BASE_PURESIZE): Increase to 525000.
6197
6198 * filelock.c (Vtemporary_file_directory): New variable.
6199 (syms_of_filelock): Set up Lisp variable.
6200
62011999-09-15 Gerd Moellmann <gerd@gnu.org>
6202
6203 * term.c (OUTPUT_IF, OUTPUT1_IF): Use do-while.
6204 (encode_terminal_code): Remove unused variables.
6205 (turn_off_face): Ditto.
6206 (toplevel): Include termcap.h if HAVE_TERMCAP_H.
6207
6208 * dispnew.c (update_frame_line): If writing whole desired line,
6209 don't clear to end of line if already at the end.
6210
62111999-09-15 Gerd Moellmann <gerd@gnu.org>
6212
6213 * xdisp.c (resize_mini_window): Don't report changed window
6214 height if it actually hasn't changed.
6215
427ec082 6216 * widget.c (set_frame_size, EmacsFrameSetCharSize): Remove
26901792
DL
6217 unused variables.
6218 (mark_shell_size_user_specified): Put in #if 0 because not used.
6219 (create_frame_gcs): Put in #if 0 because currently unused.
6220 (first_frame_p): Ditto.
6221
6222 * xmenu.c (single_menu_item, Fx_popup_menu, Fx_popup_menu,
6223 single_submenu, update_frame_menubar, set_frame_menubar,
6224 free_frame_menubar, xmenu_show, xdialog_show): Remove unused
6225 variables.
6226
6227 * print.c (PRINTFULLP): Removed because it is no longer used and
6228 is misleading.
6229 (Ferror_message_string): Remove unused variables.
6230 (print_object): Cast argument of sprintf to long for `%ld'
6231 specifier. Remove unused variable.
6232
62331999-09-14 Gerd Moellmann <gerd@gnu.org>
6234
6235 * sound.c (Fplay_sound): Remove usused variables.
6236 (be2hs): Put in #if 0 because it's currently not used.
6237
62381999-09-14 Ken Raeburn <raeburn@gnu.org>
6239
6240 * print.c (Ferror_message_string, print_error_message,
6241 print_object): Use XCAR, XCDR and XFLOAT_DATA instead of explicit
6242 member access.
6243
62441999-09-14 Gerd Moellmann <gerd@gnu.org>
6245
6246 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Put code in do-while.
6247
6248 * frame.c (Fnext_frame): Remove unused variable(s).
6249 (Fprevious_frame, Fmouse_pixel_position, frame_name_fnn_p): Ditto.
6250 (store_frame_param): Add parentheses to conditional expression.
6251 (Fmodify_frame_parameters): Remove unused variables.
6252 (Fmodify_frame_parameters, Fset_frame_size, Fset_frame_position):
6253 Ditto.
6254
6255 * xfns.c (x_set_background_color): Remove unused variable(s).
6256 (x_set_border_pixel): Ditto.
6257 (x_set_menu_bar_lines): Put local variable used only for
6258 non-toolkit case in #ifdef/#endif.
6259 (x_figure_window_size): Remove unused variable(s).
427ec082 6260 (x_figure_window_size, x_window, lookup_image,
26901792
DL
6261 xbm_read_bitmap_file_data, x_build_heuristic_mask, pbm_load,
6262 png_load, jpeg_load, gif_load, x_create_tip_frame,
6263 x_create_tip_frame, Fx_show_tip, x_set_border_pixel): Ditto.
6264
6265 * xterm.c (x_scroll_bar_handle_click): Compile only if
6266 not USE_TOOLKIT_SCROLL_BARS.
6267 (x_scroll_bar_set_handle, x_scroll_bar_note_movement): Ditto.
6268
6269 * dispextern.h: Add prototypes for gamma_correct and
6270 x_kill_gs_process.
6271
6272 * xterm.c (x_produce_glyphs): Remove unused variable(s).
6273 (x_alloc_nearest_color_for_widget, note_tool_bar_highlight,
6274 x_set_toolkit_scroll_bar_thumb): Ditto.
6275 (x_scroll_bar_create): Move local variable to the
6276 conditionally compiled section of code where it is used.
6277 (x_scroll_bar_create): Remove unused variable(s).
6278 (x_scroll_bar_remove, XTread_socket): Ditto.
6279 (XTread_socket) <ConfigureNotify>: Move variables used for
6280 non-toolkit case into conditionally compiled section of code.
6281
6282 * window.h (freeze_window_starts): Fix typo in prototype.
6283
6284 * xdisp.c (display_echo_area_1, try_window_id): Remove unused
6285 variable(s).
6286
6287 * lisp.h: Add prototype for debug_print.
6288
6289 * dispextern.h (xassert) [GLYPH_DEBUG]: Change definition
6290 to use do-while.
6291
6292 * fns.c (SXHASH_COMBINE): Add missing parentheses.
6293 (Fchar_table_range, Fset_char_table_default, mapcar1,
6294 Fyes_or_no_p, sweep_weak_hash_tables): Remove unused variable(s).
6295
6296 * lisp.h: Add prototype for getloadavg.
6297
62981999-09-14 Andreas Schwab <schwab@gnu.org>
6299
6300 * process.c (Fopen_network_stream): Avoid socket decriptor leak.
6301
6302 * lisp.h: Declare close_file_unwind.
6303
63041999-09-14 Richard Stallman <rms@gnu.org>
6305
6306 * filelock.c (get_boot_time): Make the temp name in the proper dir.
6307
63081999-09-13 Gerd Moellmann <gerd@gnu.org>
6309
6310 * xdisp.c (redisplay_window): Make sure start_at_line_beg
6311 is always set correctly.
6312
63131999-09-13 Dave Love <fx@gnu.org>
6314
6315 * xdisp.c (move_it_in_display_line_to): Make type consistent with
6316 declaration.
6317
63181999-09-13 Gerd Moellmann <gerd@delysid.gnu.org>
6319
6320 * xdisp.c (QCfile): Move here from xfns.c.
6321 (syms_of_xdisp): Initialize it.
6322 (message2_nolog): Change for Lisp_Object selected_frame.
6323 (message3_nolog, message_with_string, message,
6324 setup_echo_area_for_printing, truncate_echo_area,
6325 prepare_menu_bars, redisplay_internal, Fdump_tool_bar_row): Ditto.
6326
63271999-09-13 Dave Love <fx@gnu.org>
6328
6329 * xterm.c: Don't continue #define args for benefit of old cc.
6330 (xt_action_hook): Indent #error for benefit of K&R cc.
6331
63321999-09-13 Gerd Moellmann <gerd@delysid.gnu.org>
6333
6334 * xterm.c (XTcursor_to): Change for Lisp_Object selected_frame.
6335 (x_clear_frame, XTring_bell, XTmouse_position, XTread_socket): Ditto.
6336 (XRINGBELL): Removed.
6337
63381999-09-13 Dave Love <fx@gnu.org>
6339
6340 * xfns.c (x_put_x_image): Make type consistent with declaration.
6341
6342 * fns.c (Fmake_hash_table): Fix string continuation.
6343
63441999-09-13 Gerd Moellmann <gerd@delysid.gnu.org>
6345
6346 * xfns.c (QCfile): Moved to xdisp.c.
6347 (syms_of_xfns): Don't initialize QCfile.
6348 (check_x_frame): Change for Lisp_Object selected_frame.
6349 (check_x_display_info, x_get_resource_string): Ditto.
6350
63511999-09-13 Gerd Moellmann <gerd@gnu.org>
6352
6353 * minibuf.c (choose_minibuf_frame): Don't try to set the
6354 mini-buffer window's buffer, if the buffer is invalid.
6355
6356 * xfns.c (QCfile): Moved to xdisp.c.
6357 (syms_of_xfns): Don't initialize QCfile.
6358
6359 * xdisp.c (QCfile): Move here from xfns.c.
6360 (syms_of_xdisp): Initialize it.
6361
6362 * lisp.h (selected_frame): Add external declaration.
6363
6364 * xselect.c (x_own_selection): Change for Lisp_Object selected_frame.
6365 (Fx_store_cut_buffer_internal): Ditto.
6366 (Fx_rotate_cut_buffers_internal): Ditto.
6367
6368 * xfaces.c (frame_or_selected_frame): Change for Lisp_Object
6369 selected_frame.
6370 (Finternal_set_lisp_face_attribute): Ditto.
6371 (Finternal_get_lisp_face_attribute): Ditto.
6372 (Finternal_lisp_face_empty_p): Ditto.
6373 (Fdump_face): Ditto.
6374
6375 * term.c (OUTPUT): Change for Lisp_Object selected_frame.
6376 (OUTPUT_IF, ring_bell, set_terminal_modes, reset_terminal_modes,
6377 set_terminal_window, set_scroll_region, reassert_line_highlight,
6378 change_line_highlight, cursor_to, raw_cursor_to, clear_to_end,
6379 clear_end_of_line, clear_end_of_line_raw, clear_end_of_line_raw,
6380 encode_terminal_code, write_glyphs, term_init): Ditto.
6381
6382 * sysdep.c (reset_sys_modes): Change for Lisp_Object selected_frame.
6383 (kbd_input_ast, read_input_waiting): Ditto.
6384
6385 * minibuf.c (choose_minibuf_frame): Change for Lisp_Object
6386 selected_frame.
6387 (read_minibuf): Ditto.
6388
6389 * keyboard.c (command_loop_1): Change for Lisp_Object
6390 selected_frame.
6391 (cmd_error_internal, command_loop_1, read_char,
6392 kbd_buffer_get_event, read_avail_input,
6393 read_char_minibuf_menu_prompt, read_key_sequence, Fsuspend_emacs,
6394 interrupt_signal, quit_throw_to_read_char): Ditto.
6395
6396 * fontset.c (Ffont_info): Change for Lisp_Object selected_frame.
6397 (Ffontset_info): DItto.
6398
6399 * emacs.c (handle_USR1_signal): Change for Lisp_Object selected_frame.
6400
6401 * dispnew.c (selected_frame): Make it a Lisp_Object.
6402 (adjust_frame_glyphs_initially): Change for Lisp_Object selected_frame.
6403 (direct_output_for_insert, direct_output_forward_char,
6404 init_display): Ditto.
6405
6406 * data.c (swap_in_symval_forwarding): Change for Lisp_Object
6407 selected_frame.
6408 (set_internal): Ditto.
6409
6410 * buffer.c (Fother_buffer): Change for Lisp_Object selected_frame.
6411 (record_buffer): Ditto.
6412
6413 * frame.c (Fmake_terminal_frame): Use SELECTED_FRAME.
6414 (do_switch_frame): Change for Lisp_Object selected_frame.
6415 (Fselected_frame): Ditto.
6416 (Fframe_first_window): Use SELECTED_FRAME.
6417 (Fframe_root_window): Change for Lisp_Object selected_frame.
6418 (Fframe_selected_window, Fset_frame_selected_window, Fnext_frame,
6419 Fprevious_frame, other_visible_frames, Fdelete_frame,
6420 Fmouse_position, Fmouse_pixel_position, Fmake_frame_visible,
6421 Fmake_frame_invisible, Ficonify_frame, Fraise_frame, Flower_frame,
6422 Fframe_parameters, Fmodify_frame_parameters, Fframe_char_height,
6423 Fframe_char_width, Fframe_pixel_height, Fframe_pixel_width,
6424 Fset_frame_height, Fset_frame_width): Ditto.
6425
64261999-09-13 Gerd Moellmann <gerd@gnu.org>
6427
6428 * xdisp.c (message2_nolog): Change for Lisp_Object selected_frame.
6429 (message3_nolog, message_with_string, message,
6430 setup_echo_area_for_printing, truncate_echo_area,
6431 prepare_menu_bars, redisplay_internal, Fdump_tool_bar_row): Ditto.
6432
6433 * xmenu.c (Fx_popup_menu): Change for Lisp_Object selected_frame.
6434 (Fx_popup_dialog): Ditto.
6435
6436 * xfns.c (check_x_frame): Change for Lisp_Object selected_frame.
6437 (check_x_display_info, x_get_resource_string): Ditto.
6438
6439 * xterm.c (XTcursor_to): Change for Lisp_Object selected_frame.
6440 (x_clear_frame, XTring_bell, XTmouse_position, XTread_socket): Ditto.
6441 (XRINGBELL): Removed.
6442
6443 * window.c (Fminibuffer_window): Change for Lisp_Object
6444 selected_frame.
6445 (Fwindow_at, Fprevious_window, window_loop, select_window_1,
6446 display_buffer_1, Fdisplay_buffer, temp_output_buffer_show,
6447 Fcurrent_window_configuration, init_window_once): Ditto.
6448
6449 * frame.h (SELECTED_FRAME): New.
6450
64511999-09-12 Ken Raeburn <raeburn@gnu.org>
6452
6453 * category.c (word_boundary_p): Use XCAR and XCDR.
6454 * ccl.c (ccl_driver, resolve_symbol_ccl_program,
6455 Fregister_code_conversion_map): Likewise.
6456 * coding.c (setup_coding_system, detect_coding_system,
6457 Ffind_operation_coding_system, Fset_coding_priority_internal):
6458 Likewise.
6459 * doc.c (get_doc_string, Fdocumentation,
6460 store_function_docstring): Likewise.
6461 * editfns.c (save_restriction_restore): Likewise.
6462 * eval.c (Fcond, Fmacroexpand, Fcondition_case, wants_debugger,
6463 skip_debugger, find_handler_clause, Fautoload, Fapply,
6464 run_hook_with_args, run_hook_list_with_args, Ffetch_bytecode):
6465 Likewise.
6466 * fileio.c (Ffind_file_name_handler, Finsert_file_contents,
6467 Fwrite_region, do_auto_save_unwind, Fdo_auto_save,
6468 Fread_file_name): Likewise.
6469 * filelock.c (unlock_all_files): Likewise.
6470 * insdel.c (Fcombine_after_change_execute): Likewise.
6471 * intervals.c (adjust_intervals_for_insertion): Likewise.
6472 * keymap.c (get_keymap_1, Fkeymap_parent, Fset_keymap_parent,
6473 Fset_keymap_parent, fix_submap_inheritance, access_keymap,
6474 store_in_keymap, Fcopy_keymap, define_as_prefix,
6475 current_minor_maps, Faccessible_keymaps,
6476 accessible_keymaps_char_table, Fkey_description,
6477 Fwhere_is_internal, where_is_internal_2, where_is_internal_1,
6478 describe_buffer_bindings, describe_map_tree, shadow_lookup,
6479 describe_map): Likewise.
6480 * lread.c (Fload, load_unwind, close_load_descs, read_vector,
6481 read_list, init_lread): Likewise.
6482 * search.c (Fmatch_data): Likewise.
6483 * sunfns.c (Fsun_menu_internal): Likewise.
6484 * syntax.c (describe_syntax): Likewise.
6485 * undo.c (record_insert, record_delete, Fundo_boundary,
6486 truncate_undo_list): Likewise.
6487 * vmsproc.c (child_sig): Likewise.
6488
6489 * editfns.c (Fformat): Use XFLOAT_DATA.
6490
64911999-09-12 Gerd Moellmann <gerd@gnu.org>
6492
6493 * keyboard.c (command_loop_1): Resize mini-window to the
6494 exact size of a message displayed, if any.
6495
6496 * xdisp.c (resize_mini_window): Add parameter exact_p. Resize
6497 to exact size if exact_p is non-zero.
6498 (display_echo_area_1): Call resize_mini_window with
6499 new parameter.
6500 (redisplay_internal): Ditto.
6501 (resize_echo_area_axactly): New.
6502
6503 * minibuf.c (read_minibuf_unwind): Call resize_mini_window with
6504 new parameter.
6505
6506 * dispextern.h: Change prototype of resize_mini_window.
6507 Add prototype for resize_echo_area_axactly.
6508
6509 * xfaces.c (Fx_family_fonts): Replaces Fx_font_list.
6510 (syms_of_xfaces): Defsubr accordingly.
6511
6512 * xdisp.c (hscroll_window_tree): Choose cursor row from
6513 desired or current matrix.
6514 (redisplay_internal): Hscroll before updating.
6515
65161999-09-12 Gerd Moellmann <gerd@gnu.org>
6517
6518 * syntax.c (Fforward_word): Use prompt_end_charpos instead
6519 of minibuffer_prompt_length.
6520
6521 * minibuf.c (read_minibuf): Use prompt_end_charpos instead
6522 of minibuffer_prompt_length.
6523 (read_minibuf_unwind): Ditto.
6524 (Fminibuffer_complete_and_exit): Ditto.
6525 (Fminibuffer_complete_word): Ditto.
6526 (Fminibuffer_prompt_end): Ditto.
6527
6528 * editfns.c (Fbuffer_string): Use prompt_end_charpos instead
6529 of minibuffer_prompt_length.
6530 (Fline_beginning_position): Ditto.
6531
6532 * buffer.c (Fget_buffer_create): Use prompt_end_charpos instead
6533 of minibuffer_prompt_length.
6534 (Fmake_indirect_buffer): Ditto.
6535 (Fkill_buffer): Ditto.
6536 (Ferase_buffer): Ditto.
6537
6538 * buffer.h (prompt_end_charpos): Replaces
6539 minibuffer_prompt_length.
6540
427ec082 6541 * minibuf.c (read_minibuf): Return mini-buffer contents
26901792
DL
6542 without the prompt.
6543
6544 * editfns.c (make_buffer_string_both): Take out the code
6545 to handle mini-buffer prompts.
6546 (Fbuffer_string): Handle the prompt here, instead.
6547
6548 * xfaces.c (lface_from_face_name): Resolve face aliases.
6549 (Qmode_line): Replaces Qmodeline.
6550 (realize_basic_faces): Use Qmode_line.
6551 (syms_of_xfaces): Initialize Qmode_line.
6552
65531999-09-12 Gerd Moellmann <gerd@gnu.org>
6554
6555 * minibuf.c (read_minibuf): Set minibuf_prompt_width to the
6556 current column after inserting prompt.
6557 (Fminibuffer_prompt_width): Return minibuf_prompt_width.
6558
6559 * xfaces.c (Qframe_update_face_colors): New.
6560 (syms_of_xfaces): Initialize call.
6561 (update_face_from_frame_parameter): Call that function when
6562 the frame's background changes.
6563
65641999-09-12 Richard Stallman <rms@gnu.org>
6565
6566 * insdel.c (del_range_1): Don't treat minibuffer prompt specially.
6567
65681999-09-12 Ken Raeburn <raeburn@gnu.org>
6569
6570 * alloc.c (Fcons, pure_cons, Fpurecopy, Fgarbage_collect,
6571 mark_object, mark_buffer): Use XCAR and XCDR.
6572 * bytecode.c (Fbyte_code): Likewise.
6573 * callint.c (Fcall_interactively, Fprefix_numeric_value):
6574 Likewise.
6575 * callproc.c (Fcall_process, Fcall_process_region, child_setup,
6576 getenv_internal): Likewise.
6577 * dired.c (file_name_completion): Likewise.
6578 * fns.c (Fsafe_length, concat, Fcopy_alist, Fmember, Fmemq, Fassq,
6579 assq_no_quit, Fassoc, Frassq, Frassoc, Fdelq, Fdelete, Freverse,
6580 Fplist_get, Fplist_put, internal_equal, mapcar1): Likewise.
6581 * indent.c (Fcompute_motion): Likewise.
6582 * process.c (decode_status, Fprocess_status, Fprocess_exit_status,
6583 list_processes_1, Fstart_process, Fopen_network_stream,
6584 wait_reading_process_input, read_process_output_call,
6585 kill_buffer_processes, sigchld_handler, exec_sentinel_unwind,
6586 status_notify, wait_reading_process_input): Likewise.
6587 * textprop.c (PLIST_ELT_P, property_value, set_properties,
6588 extend_property_ranges): Likewise.
6589 * w32faces.c (Fpixmap_spec_p, merge_face_list): Likewise.
6590 * w32fns.c (x_window_to_frame, x_set_frame_parameters,
6591 x_report_frame_params, x_set_cursor_type, x_icon_type,
6592 x_figure_window_size, Fx_create_frame, w32_load_system_font,
6593 w32_load_font, enum_font_cb2, w32_list_bdf_fonts, w32_list_fonts,
6594 w32_list_synthesized_fonts, w32_find_ccl_program, Fx_list_fonts,
6595 Fw32_find_bdf_fonts, w32_find_bdf_fonts_in_dir,
6596 x_display_info_for_name, Fx_display_list): Likewise.
6597 * w32menu.c (menubar_id_to_frame, single_keymap_panes,
6598 Fx_popup_menu, Fx_popup_dialog): Likewise.
6599 * w32proc.c (Fw32_set_keyboard_layout): Likewise.
6600 * w32term.c (x_window_to_scroll_bar, w32_read_socket,
6601 w32_term_init, x_delete_display): Likewise.
6602 * xfns.c (x_window_to_frame, x_any_window_to_frame,
6603 x_non_menubar_window_to_frame, x_menubar_window_to_frame,
6604 x_top_window_to_frame, x_set_frame_parameters,
6605 x_report_frame_params, x_set_cursor_type, x_icon_type,
6606 x_figure_window_size, Fx_create_frame, x_display_info_for_name,
6607 Fx_display_list, x_create_tip_frame): Likewise.
6608 * xmenu.c (menubar_id_to_frame, single_keymap_panes,
6609 Fx_popup_menu, Fx_popup_dialog): Likewise.
6610 * xselect.c (x_own_selection, x_get_local_selection,
6611 x_handle_selection_request, x_handle_selection_clear,
6612 x_clear_frame_selections, wait_for_property_change_unwind,
6613 wait_for_property_change, x_handle_property_notify,
6614 copy_multiple_data, x_get_foreign_selection,
6615 lisp_data_to_selection_data, clean_local_selection_data,
6616 x_handle_selection_notify, Fx_get_selection_internal,
6617 x_disown_buffer_selections): Likewise.
6618 * xterm.c (x_window_to_scroll_bar, XTread_socket, x_list_fonts,
6619 x_load_font, x_find_ccl_program, x_term_init, x_delete_display):
6620 Likewise.
6621
6622 * alloc.c (make_float, make_pure_float, Fpurecopy): Use
6623 XFLOAT_DATA.
6624 * bytecode.c (Fbyte_code): Likewise.
6625 * floatfns.c (extract_float, Fexpt, Fabs, rounding_driver,
6626 fmod_float): Likewise.
6627
66281999-09-11 Richard Stallman <rms@gnu.org>
6629
6630 * xdisp.c (run_window_scroll_functions): If hook functions switch
6631 buffers, switch back after.
6632
66331999-09-11 Ken Raeburn <raeburn@gnu.org>
6634
6635 * charset.h (GET_TRANSLATION_TABLE): Use XCDR.
6636 * frame.h (FOR_EACH_FRAME): Use XCAR and XCDR.
6637 (PIXEL_X_FROM_CANON_X, PIXEL_Y_FROM_CANON_Y): Use XFLOAT_DATA.
6638 * keyboard.h (EVENT_HEAD, EVENT_START, EVENT_END, POSN_WINDOW,
6639 POSN_BUFFER_POSN, POSN_WINDOW_POSN, POSN_TIMESTAMP): Use XCAR and
6640 XCDR.
6641 * syntax.h (SYNTAX, SYNTAX_WITH_FLAGS, SYNTAX_MATCH): Use XCAR and
6642 XCDR.
6643
66441999-09-10 Richard Stallman <rms@gnu.org>
6645
6646 * xterm.c (XTread_socket): In XSetInputFocus, use RevertToParent,
6647 not RevertToPointerRoot.
6648 (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
6649 Fix the code to clear around the scroll bar.
6650
66511999-09-10 Keisuke Nishida <kxn30@po.cwru.edu>
6652
6653 * print.c: Support print-circle and related features.
6654 (Vprint_gensym_alist): Removed.
6655 (Vprint_circle, Vprint_continuous_numbering, print_number_index
6656 Vprint_number_table): New variables.
6657 (PRINT_NUMBER_OBJECT, PRINT_NUMBER_STATUS): New macros.
6658 (PRINTPREPARE, PRINTFINISH): Don't set Vprint_gensym_alist.
6659 (print, print_preprocess, print_preprocess_string, print_object):
6660 New/modified functions with print-circle feature. Use
6661 Vprint_number_table instead of Vprint_gensym_alist for print-gensym.
6662 (syms_of_print): Defined new Lisp variables `print-circle',
6663 `print-continuous-numbering', `print-number-table'.
6664
66651999-09-10 Gerd Moellmann <gerd@gnu.org>
6666
6667 * xfns.c (x_build_heuristic_mask): Accept a list `(R G B)'
6668 as background color specification instead of an integer.
6669 (image-cache-eviction-delay): Replaces image-eviction-seconds.
6670 (Vimage_cache_eviction_delay): Replaces Vimage_eviction_seconds.
6671 (clear_image_cache, syms_of_xfns): Use it.
6672 (Qpostscript): Replaces Qghostscript.
6673 (gs_type): Use it.
6674 (gs_image_p): Ditto.
6675 (syms_of_xfns): Initialize Qpostscript.
6676
66771999-09-10 Richard Stallman <rms@gnu.org>
6678
6679 * buffer.c (Ferase_buffer): Don't erase the minibuffer prompt.
6680
66811999-09-09 Richard Stallman <rms@gnu.org>
6682
6683 * editfns.c (Fline_beginning_position): Handle minibuffer prompt here.
6684
6685 * cmds.c (Fbeginning_of_line): Don't handle minibuffer prompt here.
6686
66871999-09-09 Gerd Moellmann <gerd@gnu.org>
6688
6689 * fns.c (Fmakehash): Accept just one optional argument TEST.
6690
6691 * xfns.c (QCindex): New.
6692 (syms_of_xfns): Initialize QCindex.
6693 (gif_load): Use it instead of `:image'.
6694
66951999-09-09 Richard Stallman <rms@gnu.org>
6696
6697 * fileio.c (Fwrite_region): Finish renaming CONFIRM to MUSTBENEW.
6698 (Fwrite_region) [DOS_NT]: Handle `excl' here too.
6699
67001999-09-08 Gerd Moellmann <gerd@gnu.org>
6701
6702 * xdisp.c (Qwhen): Replaces QCwhen.
6703 (syms_of_xdisp): Initialized it instead of QCwhen.
6704 (handle_single_display_prop): Use it instead of QCwhen.
6705
67061999-09-08 Ken'ichi Handa <handa@gnu.org>
6707
6708 * charset.c (translate_char): Reset MSBs of arguments of
6709 MAKE_CHAR.
6710 (CHAR_COMPONENTS_VALID_P): Fix for ASCII.
6711
67121999-09-08 Lars Magne Ingebrigtsen <larsi@gnus.org>
6713
6714 * editfns.c (Fbufsize): Accept an extra BUFFER parameter.
6715
6716 * fns.c (Fbase64_decode_region): Don't place point outside of the
6717 current accessible portion.
6718
67191999-09-07 Richard Stallman <rms@gnu.org>
6720
6721 * keymap.c (fix_submap_inheritance): Do nothing if the proper
6722 parent is an ancestor of SUBMAP; otherwise, add it as the
6723 ultimate ancestor.
6724
67251999-09-07 Gerd Moellmann <gerd@gnu.org>
6726
6727 * xdisp.c (handle_single_display_prop): Change conditional
6728 display property to `:when FORM . VALUE'.
6729
67301999-09-07 Richard Stallman <rms@gnu.org>
6731
6732 * fileio.c (Fwrite_region): Doc fix.
6733
67341999-09-07 Stefan Monnier <monnier@cs.yale.edu>
6735
6736 * fileio.c (Qexcl): New variable.
6737 (report_file_error): Handle EEXIST specially.
6738 (Fwrite_region): Special handling for CONFIRM = `excl'.
6739 (syms_of_fileio): Initialize Qexcl.
6740
67411999-09-07 Gerd Moellmann <gerd@gnu.org>
6742
6743 * xfns.c (x_set_foreground_color): Call
6744 update_face_from_frame_parameter.
6745 (x_set_background_color): Ditto.
6746 (x_set_mouse_color): Ditto.
6747 (x_set_cursor_color): Ditto.
6748 (x_set_border_color): Ditto.
6749 (x_set_scroll_bar_foreground): Ditto.
6750 (x_set_scroll_bar_background): Ditto.
6751
6752 * xfaces.c (recompute_basic_faces): Clear face cache.
6753 (Finternal_set_lisp_face_attribute): Modify frame parameters
6754 if attributes of certain faces are changed.
6755 (update_face_from_frame_parameter): New.
6756
6757 * xfaces.c (realize_basic_faces): Realize new basic faces.
6758
6759 * dispextern.h (SCROLL_BAR_FACE_ID, BORDER_FACE_ID,
6760 CURSOR_FACE_ID, MOUSE_FACE_ID): New.
6761
6762 * xfaces.c (Qscroll_bar, Qcursor, Qborder, Qmouse): New.
6763 (syms_of_xfaces): Intialize new symbols.
6764
6765 * fns.c (Fmakehash): Take one argument, test, make all the
6766 rest keyword arguments.
6767
6768 * window.c (Fset_window_margins): Make window the first argument.
6769 (set_window_buffer): Call Fset_window_margins with window as first
6770 argument.
6771
67721999-09-07 Gerd Moellmann <gerd@gnu.org>
6773
6774 * xfaces.c (Qfringe): Replaces Qmargin.
6775
67761999-09-07 Kenichi Handa <handa@etl.go.jp>
6777
6778 * charset.h: Lots of comments fixed.
6779 (PARSE_MULTIBYTE_SEQ): Make it work also for ASCII string.
6780 (STRING_CHAR_AND_CHAR_LENGTH): This macro removed.
6781
6782 * charset.c : Lots of comments fixed.
6783 (SPLIT_MULTIBYTE_SEQ): Make it work also for ASCII string.
6784 (CHAR_COMPONENTS_VALID_P): Name changed from
6785 CHAR_COMPONENT_VALID_P. Caller changed.
6786
67871999-09-06 Richard Stallman <rms@gnu.org>
6788
6789 * insdel.c (syms_of_insdel): Define Lisp variable
6790 inhibit-modification-hooks.
6791
67921999-09-06 Michael Sperber [Mr. Preprocessor] <sperber@informatik.uni-tuebingen.de>
6793
6794 * s/aix4-2.h (ALIGN_DATA_RELOC): Undefined to support new
6795 unexaix.c.
6796
6797 * s/aix3-1.h (ALIGN_DATA_RELOC): Defined to support new unexaix.c.
6798
67991999-09-06 Dave Love <fx@gnu.org>
6800
6801 * unexaix.c: New version incorporating Michael Sperber's changes
6802 from XEmacs. Should solve problems on AIX 4.3.
6803
6804 * lread.c (Vbyte_boolean_vars): New variable.
6805 (defvar_bool, syms_of_lread): Use it.
6806
68071999-09-05 Richard Stallman <rms@gnu.org>
6808
6809 * minibuf.c (read_minibuf): Put all three properties on the
6810 same range, the whole prompt.
6811
68121999-09-05 Gerd Moellmann <gerd@gnu.org>
6813
6814 * sound.c (Qplay_sound_functions): Replaces Qplay_sound_hook.
6815 (Fplay_sound, syms_of_sound): Use it.
6816 (parse_sound): Allow float volume values in the range [0, 1].
6817 (Fplay_sound): Ditto.
6818
6819 * window.c (Fset_window_vscroll): Make window the first argument,
6820 amount to scroll the second. Take non-negative vscroll as
6821 argument.
6822 (Fwindow_vscroll): Return non-negative vscroll.
6823
6824 * xfns.c (Fx_show_tip): Improve documentation.
6825
68261999-09-05 Gerd Moellmann <gerd@gnu.org>
6827
6828 * buffer.c, buffer.h, dispextern.h, dispnew.c, keyboard.c,
6829 window.c, xdisp.c, xfaces.c, xterm.c, keyboard.h: Change
6830 `top-line' and `top_line' to `header-line' and `header_line'.
6831 Likewise for similar spellings.
6832
68331999-09-05 Gerd Moellmann <gerd@gnu.org>
6834
6835 * xdisp.c (row_containing_pos): New.
6836 (try_window_id): Use it.
6837
6838 * alloc.c, dispextern.h, dispnew.c, frame.c, frame.h, keyboard.c,
6839 lisp.h, termhooks.h, window.c xdisp.c, xfaces.c, xfns.c, xterm.c:
6840 Change spelling of `toolbar' to `tool_bar' or `tool-bar'.
6841 Likewise for upper-case etc.
6842
68431999-09-05 Gerd Moellmann <gerd@gnu.org>
6844
6845 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
6846 Fix reference to renamed variable.
6847
68481999-09-04 Gerd Moellmann <gerd@gnu.org>
6849
6850 * window.c (Qwindow_size_fixed): Replaces Qfixed_window_size.
427ec082 6851 (window_fixed_size_p): Use Qwindow_size_fixed instead of
26901792
DL
6852 Qfixed_window_size.
6853 (syms_of_window): Ditto.
6854
6855 * fns.c (Fmakehash): Exchange optional test and size arguments.
6856
68571999-09-03 Gerd Moellmann <gerd@gnu.org>
6858
6859 * xterm.c (XTset_vertical_scroll_bar): Block input when clearing
6860 under newly created scroll bar.
6861 (expose_window): If window is not yet fully initialized, do
6862 nothing. This can happen when toolkit scroll bars are used and a
6863 window is split. Reconfiguring the scroll bars will generate an
6864 expose for a newly created window.
6865
6866 * frame.h (struct frame): New member `gamma'.
6867
6868 * xfns.c: Include math.h. Add extern declaration for atof in case
6869 we don't see one.
6870 (Qscreen_gamma): New.
6871 (struct x_frame_parm_table): Add prototypes, add
6872 x_set_screen_gamma.
6873 (gamma_correct): New function.
6874 (defined_color): Call it.
6875 (x_set_screen_gamma): New.
6876 (x_set_title): Add parameter old_value.
6877 (RES_TYPE_FLOAT): New.
6878 (x_get_arg): Handle RES_TYPE_FLOAT.
6879 (Fx_create_frame): Call x_default_parameter for `screen-gamma'.
6880 (lookup_pixel_color): Change call to x_alloc_nearest_color to
6881 new prototype.
6882 (lookup_rgb_color): Ditto.
6883 (syms_of_xfns): Initialize Qscreen_gamma.
6884
6885 * xterm.c (x_alloc_nearest_color_for_widget) [USE_X_TOOLKIT]:
6886 New. Allocate color for lwlib widgets.
6887 (x_alloc_nearest_color): Change parameter list include the
6888 frame on which to allocate colors. Gamma-correct colors.
6889 (x_alloc_lighter_color): Call x_alloc_lighter_color with new
6890 parameter list.
6891
6892 * xterm.h: Change protorype of x_alloc_nearest_color.
6893
68941999-09-03 Richard Stallman <rms@gnu.org>
6895
6896 * callproc.c: Delete the system-independent include of stdlib.h
6897 (leaving only the one in the WINDOWSNT conditional).
6898
68991999-09-03 Andrew Choi <choi@cs.hku.hk>
6900
6901 * callproc.c (call-process) [macintosh]: Call mac_run_command in
6902 sysdep.c. The Mac code is modeled after the DOS code.
427ec082 6903
26901792
DL
6904 * dispextern.h [macintosh]: Include macterm.h to define substitute X
6905 Window types and macros.
6906
6907 * frame.h: Do nothing if included a second time.
6908 (enum output_method): Add mac_output frame type.
6909 (union output_data): Add new alternative `mac'.
6910 (FRAME_MAC_P): New macro.
427ec082 6911
26901792
DL
6912 * frame.c (Fframep) [macintosh]: Handle mac frame type.
6913 (syms_of_frame_1): Initialize Qmac.
6914 (make_terminal_frame) [macintosh]: Initialize output_data.mac fields.
6915 (Fmake_terminal_frame) [macintosh]: Add an alternate error check.
6916 (Fmodify_frame_parameters) [macintosh]: Call
6917 mac_set_frame_parameter in macterm.c.
427ec082 6918
26901792
DL
6919 * keyboard.c [macintosh]: Set KBD_BUFFER_SIZE to a smaller value
6920 (512) because Mac compilers limit local data of a function to 32K.
427ec082 6921
26901792
DL
6922 * make-docfiles.c: Correctly handle input files with Mac-style
6923 eol's.
427ec082 6924
26901792 6925 * sysdep.c: Define numerous routines to emulate Unix system calls.
427ec082 6926
26901792
DL
6927 * xfaces.c: on MacOS, define the set of colors listed in rgb.txt
6928 file of an X Window environment.
427ec082 6929
26901792
DL
6930 * xfaces.c: on MacOS, define the Lisp functions x-display-color-p,
6931 x-display-grayscale, x-color-defined-p, and x-color-values.
427ec082 6932
26901792
DL
6933 * sysdep.c [macintosh] (stat, fstat, mkdir, rmdir, utime, access)
6934 (open, creat, unlink, read, write, rename, fopen, pause, alarm)
6935 (signal, sleep, gmtime, localtime, ctime, time, index, mktemp)
6936 (getpwuid, getpwnam, dup, dup2, isatty, getgid, getegid, getuid)
6937 (geteuid, getpid, getenv, uname, opendir, closedir, readdir, getwd.):
6938 New functions, replacing POSIX features.
427ec082 6939
26901792
DL
6940 * sysdep.c [macintosh] (Mac2UnixPathname, Unix2MacPathname, CheckAlarm)
6941 (InitMyPasswd, GetTempDirName, mystrchr, mystrtok, mystrcpy):
6942 (InitEmacsPasswdDir, run_mac_command): New subroutines.
6943
6944 * sysdep.c [macintosh] (targetTicks, alarm_signal_func, myPasswdName)
6945 (myPasswd, emacsPasswdDir, emacsPasswd, myPasswdInited, mask)
6946 (myPasswdDir, TempDirName, sys_siglist): New variables.
6947
6948 * sysdep.c [macintosh] (execvp, wait, croak, fork, kill, sigsetmask)
6949 (sigblock, request_sigio, unrequest_sigio, setpgrp, pipe, symlink)
6950 (link, lstat, readlink, umask, chmod, sbrk, fsync, ioctl):
6951 Define empty stubs so Emacs will link.
6952
69531999-09-03 Gerd Moellmann <gerd@gnu.org>
6954
6955 * xdisp.c: Use XCAR and XCDR instead of XCONS.
6956
6957 * window.h: New member frozen_window_start_p.
6958
6959 * window.c (foreach_window, foreach_window_1): New.
6960 (freeze_window_start, freeze_window_starts): New.
6961 (make_window): Initialize frozen_window_start_p.
6962 (replace_window): Ditto.
6963 (Fset_window_point): Remove references to deleted variables.
6964 (Fset_window_start): Ditto.
6965
6966 * xdisp.c (Vresize_mini_config, resize_mini_frame,
6967 resize_mini_initial_height): Removed.
6968 (syms_of_xdisp): Remove references to these variables.
6969 (resize_mini_window): Don't save window configuration, freeze
6970 window starts instead. Enlarge window until displaying an empty
6971 buffer, then shrink it. Make the function externally visible.
6972 (redisplay_window): Treat frozen window start like forced start,
6973 but accept point outside of the window.
6974
6975 * dispextern.h: Add function prototype for resize_mini_window.
6976
6977 * minibuf.c (read_minibuf_unwind): Resize mini-window when
6978 reaching minibuf_level 0.
6979
6980 * lisp.h: Remove extern declarations for variables deleted from
6981 xdisp.c.
6982
6983 * dispnew.c (adjust_frame_glyphs): Remove reference to
6984 Vresize_mini_config.
6985
69861999-09-03 Gerd Moellmann <gerd@gnu.org>
6987
6988 * xfns.c (x_set_scroll_bar_width): Change conditional compilation
6989 to USE_TOOLKIT_SCROLL_BARS.
6990
6991 * xterm.c (x_scroll_bar_create): Don't clear under scroll bar
6992 here.
6993 (XTset_vertical_scroll_bar): Clarify position computations. Clear
6994 under newly created scroll bar. Put toolkit scroll bars in the
6995 middle of the area reserved for the scroll bar.
6996
69971999-09-03 Kenichi Handa <handa@etl.go.jp>
6998
6999 The following changes are for the new handling of mulitbyte
7000 sequence. Now, except for a composite character, no multibyte
7001 character in string/buffer has trailing garbage bytes. For
7002 instance, the length of string "\201\300\300" is now 2, the first
7003 character is Latin-1 A-grave, the second is raw \300.
7004
7005 * charset.h (MAKE_NON_ASCII_CHAR): Handle the case that C1 or C2
7006 are negative.
7007 (MAKE_CHAR): Don't set MSBs of C1 and C2 to 0.
7008 (VALID_MULTIBYTE_CHAR_P): This macro deleted.
7009 (PARSE_COMPOSITE_SEQ): New macro.
7010 (PARSE_CHARACTER_SEQ): New macro.
427ec082 7011 (PARSE_MULTIBYTE_SEQ): New macro.
26901792
DL
7012 (CHAR_PRINTABLE_P): New macro.
7013 (STRING_CHAR): Adjusted for the change of string_to_non_ascii_char.
7014 (STRING_CHAR_AND_LENGTH): Likewise.
7015 (STRING_CHAR_AND_CHAR_LENGTH): Define it as STRING_CHAR_AND_LENGTH.
7016 (INC_POS): Use the macro PARSE_MULTIBYTE_SEQ.
7017 (DEC_POS, BUF_INC_POS, BUF_DEC_POS): Likewise,
7018
7019 * charset.c (SPLIT_COMPOSITE_SEQ): New macro.
7020 (SPLIT_CHARACTER_SEQ): New macro.
7021 (SPLIT_MULTIBYTE_SEQ): New macro.
7022 (CHAR_COMPONENT_VALID_P): New macro.
7023 (non_ascii_char_to_string): Generate a multibyte sequence as far
7024 as possible.
7025 (string_to_non_ascii_char): The 4th arg exclude_tail_garbage is
7026 deleted. Caller changed. Use the macro SPLIT_MULTIBYTE_SEQ.
7027 (split_non_ascii_string): Likewise.
7028 (multibyte_form_length): Use the macro PARSE_MULTIBYTE_SEQ.
7029 (char_printable_p): New function.
7030 (translate_char): Check character by NATNUMP instead of INTEGERP.
7031 (unibyte_char_to_multibyte): Call char_valid_p instead of
7032 VALID_MULTIBYTE_CHAR_P.
7033 (Fmake_char_internal): Check the arguments more rigidly.
7034 (Fcharset_after): Use the macro SPLIT_MULTIBYTE_SEQ.
7035 (char_valid_p): Check the validity by CHAR_COMPONENT_VALID_P.
7036 (Fmultibyte_char_to_unibyte): Check the validity of character by
7037 CHAR_VALID_P.
7038 (chars_in_text): Call multibyte_chars_in_text.
7039 (multibyte_chars_in_text): Use the macro PARSE_MULTIBYTE_SEQ.
7040 (Fcompose_string): Use the macro STRING_CHAR_AND_LENGTH instead of
7041 STRING_CHAR_AND_CHAR_LENGTH (which is obsolete now).
7042
7043 * data.c (Faset): Adjust the way to check byte-combining
7044 possibility for the new handling of multibyte sequence.
7045
7046 * editfns.c (Fsubst_char_in_region): Likewise.
7047
7048 * fns.c (count_combining): Use the macro PARSE_MULTIBYTE_SEQ.
7049 (string_char_to_byte): Likewise.
7050 (string_byte_to_char): Likewise.
7051
7052 * indent.c (MULTIBYTE_BYTES_WIDTH): Delete the 2nd arg C. Use the
7053 macro STRING_CHAR_AND_LENGTH. Caller changed.
7054
7055 * insdel.c (count_combining_composition): New function.
7056 (count_combining_before): Adjust the way to check byte-combining
7057 possibility for the new handling of multibyte sequence. Call
7058 count_combining_composition for a composite character.
7059 (count_combining_after): Likewise.
7060
7061 * print.c (print_string): Use the macro STRING_CHAR_AND_LENGTH.
7062 (print): Likewise.
7063
7064 * dispextern.h (struct it): Change the size of the member
7065 `ctl_chars'.
7066
7067 * xdisp.c (get_next_display_element): Display incomplete multibyte
7068 sequence (e.g. \222\300) by octal form.
7069
70701999-09-02 Gerd Moellmann <gerd@gnu.org>
7071
7072 * xterm.h (VERTICAL_SCROLL_BAR_WIDTH_TRIM): Change from 2 to 0.
7073
7074 * fns.c (Fhash_table_weakness): Replaces Fhash_table_weak.
7075 (cmpfn_eql, sxhash): Use XFLOAT_DATA.
7076
70771999-09-02 Gerd Moellmann <gerd@gnu.org>
7078
7079 * buffer.c (set_buffer_internal): Never set
7080 windows_or_buffers_changed.
7081
7082 * xdisp.c (try_window_id): Reset first_unchanged_at_end_row
7083 if we have displayed to the bottom of the window.
7084
7085 * syntax.c (Fforward_word): Stop at a mini-buffer prompt end
7086 in both directions. Extend documentation.
7087
70881999-09-01 Gerd Moellmann <gerd@gnu.org>
7089
7090 * minibuf.c (read_minibuf): Flush display after setting cursor to
7091 column 0.
7092
70931999-08-31 Gerd Moellmann <gerd@gnu.org>
7094
7095 * s/freebsd.h (__FreeBSD_version): Don't define it if it is
7096 already defined. This avoids a warning from buffer.c.
7097
70981999-08-30 Gerd Moellmann <gerd@gnu.org>
7099
7100 * xterm.h (FRAME_X_FLAGS_AREA_COLS): Define it as the total width
7101 of both margins.
7102 (FRAME_X_FLAGS_AREA_WIDTH): Likewise.
7103 (FRAME_X_LEFT_FLAGS_AREA_WIDTH): New.
7104 (FRAME_X_RIGHT_FLAGS_AREA_WIDTH): New.
7105
7106 * frame.h (FRAME_WINDOW_WIDTH_ARG): Add in FRAME_FLAGS_AREA_COLS
7107 once instead of twice.
7108 (FRAME_LEFT_FLAGS_AREA_WIDTH): New.
7109
7110 * xterm.c: Remove unused bitmaps.
7111 (continued_bits, continuation_bits, overlay_bits): Change images.
7112 (x_draw_vertical_border): Use FRAME_X_RIGHT_FLAGS_AREA_WIDTH
7113 instead of FRAME_X_FLAGS_AREA_WIDTH.
7114 (x_after_update_window_line): Ditto.
7115 (x_draw_bitmap): Likewise.
7116 (x_draw_row_bitmaps): Likewise.
7117 (x_draw_glyph_string_box): Likewise.
7118 (x_draw_glyphs): Likewise.
7119 (x_scroll_run): Likewise.
7120 (expose_window_tree): Likewise.
7121 (note_mode_line_highlight): Likewise.
7122 (XTset_vertical_scroll_bar): Likewise.
7123 (x_clip_to_row): Likewise.
7124 (x_set_window_size): Likewise.
7125
7126 * xfns.c (x_figure_window_size): Use FRAME_FLAGS_AREA_COLS instead
7127 of 2 * that value.
7128
7129 * xdisp.c (window_box_width): Use FRAME_FLAGS_AREA_COLS instead of
7130 2 * that value.
7131 (window_box_left): Use FRAME_LEFT_FLAGS_AREA_WIDTH instead of
7132 FRAME_FLAGS_AREA_WIDTH.
7133
7134 * window.c (coordinates_in_window): Use
7135 FRAME_LEFT_FLAGS_AREA_WIDTH instead of FRAME_FLAGS_AREA_WIDTH.
7136 (window_internal_width): Subtract FRAME_FLAGS_AREA_WIDTH once
7137 instead of twice.
7138
427ec082 7139 * widget.c (set_frame_size): Set flags_area_extra to
26901792
DL
7140 FRAME_FLAGS_AREA_WIDTH instead of 2 * that width.
7141 (EmacsFrameSetCharSize): Ditto.
7142
7143 * dispnew.c (mode_line_string): Add FRAME_LEFT_FLAGS_AREA_WIDTH
7144 instead of FRAME_FLAGS_AREA_WIDTH.
7145
7146 * dispextern.h (WINDOW_DISPLAY_PIXEL_WIDTH): Subtract
7147 FRAME_FLAGS_AREA_COLS once.
7148 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X): Add
7149 FRAME_LEFT_FLAGS_AREA_WIDTH instead of FRAME_FLAGS_AREA_WIDTH.
7150
71511999-08-30 Gerd Moellmann <gerd@gnu.org>
7152
7153 * freebsd.h (C_SWITCH_SYSTEM): Added to let configure find headers
7154 in /usr/X11R6/include which are checked for with AC_CHECK_HEADER.
7155
71561999-08-30 Gerd Moellmann <gerd@gnu.org>
7157
7158 * fns.c (QCweakness): Replaces QCweak.
7159 (Fmake_hash_table): Ditto.
7160 (Fmakehash): Ditto.
7161 (syms_of_fns): Ditto.
7162
71631999-08-29 Richard Stallman <rms@gnu.org>
7164
7165 * search.c (compile_pattern_1): Enable RE_CHAR_CLASSES for regexp.
7166
7167 * sysdep.c (read_input_waiting): Pass read_socket_hook just 4 args.
7168
7169 * syntax.h (SYNTAX_COMMENT_NESTED, SYNTAX_FLAGS_COMMENT_NESTED):
7170 Add support for nested comments.
7171
863476d1
SM
7172 * syntax.c (Fforward_comment, scan_lists, scan_sexps_forward):
7173 Consolidate the forward comment code into the new `forw_comment'.
7174 (forw_comment): New subroutine. Added support for nested comments.
7175 (lisp_parse_state, back_comment, Fmodify_syntax_entry)
7176 (Fparse_partial_sexp): Add support for nested comments.
26901792
DL
7177
71781999-08-28 Ken Raeburn <raeburn@gnu.org>
7179
7180 * lisp.h (struct Lisp_Cons, XCAR, XCDR, struct Lisp_Float): Change
7181 names of structure elements if HIDE_LISP_IMPLEMENTATION is
7182 defined, to help detect code that uses knowledge of the Lisp
7183 internals that it shouldn't have.
7184 (XFLOAT_DATA): New macro.
7185
71861999-08-25 Gerd Moellmann <gerd@gnu.org>
7187
7188 * syntax.c (Fforward_word): If in a mini-buffer and moving
7189 backwards, stop in front of the prompt to prevent accidentially
7190 moving into the read-only prompt.
7191
7192 * window.c (Frecenter): Clear frame if called with nil or no arg.
7193
7194 * xdisp.c (resize_mini_window): Don't resize if
7195 Vmax_mini_window_height is nil. Otherwise, use a default if
7196 Vmax_mini_window_height is not ot a number.
7197 (syms_of_xdisp): Extend documentation of Vmax_mini_window_height.
7198
71991999-08-25 Alexandre Oliva <oliva@dcc.unicamp.br>
7200
7201 * unexelf.c: Merge IRIX debugging info patch from unexsgi.c
7202 * m/iris4d.h: Use unexelf for IRIX 5.*.
7203 * m/iris5d.h: Use unexelf for IRIX 6.*.
7204 * unexsgi.c: Deleted.
7205
7206 * unexelf.c: Auto-detect .sbss section.
7207 (round_up): Make it static.
7208 (unexec): Declare alignment as Elf Word. Skip ``Program
7209 segment above .bss'' test on MIPS without .sbss.
7210 Copy sections .got and .sdata1 sections. Adjust offsets in
7211 sections .sdata, .lit4, .lit8, .got and .sdata1.
7212
72131999-08-25 Gerd Moellmann <gerd@gnu.org>
7214
7215 * xdisp.c (try_window_id): Remove typo.
7216
72171999-08-24 Gerd Moellmann <gerd@gnu.org>
7218
7219 * xdisp.c (try_window_id): Recognize case that PT == ZV and in
7220 unchanged text at the bottom when computing the cursor position.
7221 (message3_nolog): Raise frame only if minibuffer_auto_raise is
7222 set.
7223
7224 * lisp.h (PVEC_TYPE_MASK): Add the bit for hash tables.
7225
72261999-08-24 Gerd Moellmann <gerd@gnu.org>
7227
7228 * xfaces.c (Qmargin): Replacement for Qbitmap_area.
7229 (realize_basic_faces): Replace Qmargin for Qbitmap_area.
7230 (syms_of_xfaces): Ditto.
7231
7232 * window.c (Fset_window_point): Reset Vresize_mini_config.
7233 (Fset_window_start): Ditto.
7234 (set_window_buffer): Ditto.
7235
7236 * dispnew.c (adjust_frame_glyphs): Reset Vresize_mini_config.
7237
7238 * xdisp.c (redisplay_window): Don't ever test just_this_one_p
7239 before calling try_window.
7240 (echo_area_display): If height has changed, update other windows.
7241 (resize_mini_frame, resize_mini_initial_height): New.
7242 (resize_mini_window): Save/restore window configuration
7243 differently.
7244
427ec082 7245 * lisp.h (Vresize_mini_config, resize_mini_frame,
26901792
DL
7246 resize_mini_initial_height): Add extern declarations.
7247
7248 * xterm.c (expose_window_tree): Fix typo CANON_Y_UNIT to
7249 CANON_X_UNIT.
7250
7251 * xfns.c [HAVE_JPEG]: Work around a warning about HAVE_STDLIB_H
7252 being redefined in jconfig.h.
7253
72541999-08-23 Ken'ichi Handa <handa@gnu.org>
7255
7256 * coding.h: Include "ccl.h" instead of "../src/ccl.h".
7257
72581999-08-22 Gerd Moellmann <gerd@gnu.org>
7259
7260 * alloc.c (mark_glyph_matrix): Mark strings only.
7261
7262 * xdisp.c (redisplay_internal): Clear garbaged frames after
7263 resizing mini-window.
7264
72651999-08-22 Gerd Moellmann <gerd@gnu.org>
7266
7267 * xdisp.c (unwind_with_echo_area_buffer): Use
7268 set_buffer_internal_1 instead of set_buffer_internal.
7269 (with_echo_area_buffer): Ditto.
7270
7271 * buffer.c (set_buffer_internal): Set windows_or_buffers_changed
7272 only if buffer is displayed somewhere.
7273
7274 * buffer.h (BUF_COMPUTE_UNCHANGED): New.
7275
7276 * insdel.c (gap_left): Use BUF_COMPUTE_UNCHANGED.
7277 (gap_right): Ditto.
7278 (modify_region): Ditto.
7279
7280 * buffer.c (modify_overlay): Use BUF_COMPUTE_UNCHANGED.
7281
7282 * xdisp.c (Vresize_mini_config): New.
7283 (resize_mini_window): Use it to save restore original window
7284 configuration
7285 (syms_of_xdisp): Initialize it.
7286
7287 * buffer.h (struct buffer): Add prevent_redisplay_optimizations_p.
7288
7289 * dispextern.h (struct glyph_matrix): Add buffer, begv, and zv.
7290
7291 * xdisp.c (reconsider_clip_changes): New.
7292 (redisplay_internal, redisplay_window): Call it.
7293 (mark_window_display_accurate, redisplay_internal): Set current
7294 matrix' buffer, begv, zv.
7295
7296 * window.c (Fset_window_hscroll): Set
7297 prevent_redisplay_optimizations_p instead of clip_changed.
7298 (Fset_window_hscroll): Ditto.
7299 (temp_output_buffer_show): Ditto.
7300 (Fset_window_vscroll): Ditto.
7301
7302 * buffer.c (reset_buffer): Set clip_changed to 0 and
7303 prevent_redisplay_optimizations_p to 1.
7304 (Fget_buffer_create): Set prevent_redisplay_optimizations_p to 1.
7305
7306 * buffer.h (BUF_UNCHANGED_MODIFIED, UNCHANGED_MODIFIED,
7307 BUF_OVERLAY_UNCHANGED_MODIFIED, OVERLAY_UNCHANGED_MODIFIED,
7308 BUF_BEG_UNCHANGED, BEG_UNCHANGED, BUF_END_UNCHANGED,
7309 END_UNCHANGED): New.
7310 (struct buffer_text): Add beg_unchanged, end_unchanged,
7311 unchanged_modified, overlay_unchanged_modified.
7312
7313 * window.h (beg_unchanged, end_unchanged, unchanged_modified,
7314 overlay_unchanged_modified): Removed.
7315 (with_echo_area_unwind_data): Don't save beg/end_unchanged.
7316 (unwind_with_echo_area_buffer): Don't restore them.
7317 (debug_beg_unchanged, debug_end_unchanged) [GLYPH_DEBUG]: Removed.
7318 (text_outside_line_unchanged_p, redisplay_internal,
7319 try_scrolling): Use/set buffer-specific beg/end_unchanged.
7320 (redisplay_window): Let try_window_id be called if more than one
7321 window is displayed. Use/set buffer-specific beg/end_unchanged.
7322 (get_last_unchanged_at_beg_row, get_first_unchanged_at_end_row,
7323 try_window_id):
7324 Use buffer-specific beg/end_unchanged.
7325
7326 * window.h (beg_unchanged, end_unchanged, unchanged_modified,
7327 overlay_unchanged_modified): Remove extern declarations.
7328
7329 * keyboard.c (command_loop_1): Set beg/end_unchanged per
7330 buffer.
7331
7332 * insdel.c (gap_left): Compute beg/end_unchanged per buffer.
7333 (gap_right): Ditto.
7334 (adjust_after_replace): Likewise.
7335 (replace_range, del_range_2, modify_region): Likewise.
7336
7337 * dispnew.c (direct_output_for_insert): Set beg_unchanged
7338 and unchanged_modified per buffer.
7339
7340 * coding.c (code_convert_region): Compute beg/end_unchanged per
7341 buffer.
7342
7343 * buffer.c (modify_overlay): Compute beg/end_unchanged
7344 per buffer.
427ec082 7345 (Fget_buffer_create): Initialize new members of the buffer
26901792
DL
7346 structure.
7347
73481999-08-22 Gerd Moellmann <gerd@gnu.org>
7349
7350 * lisp.h: Add prototype for copy_hash_table and Fcopy_hash_table.
7351
7352 * fns.c (Qkey, Qvalue): Renamed from Qkey_weak, and Qvalue_weak.
7353 (Qkey_value_weak): Removed.
7354 (make_hash_table): Use nil, `key', `value', t for weakness.
7355 (Fmake_hash_table): Ditto.
7356 (copy_hash_table): New.
7357 (Fcopy_hash_table): New.
7358
73591999-08-22 Gerd Moellmann <gerd@gnu.org>
7360
7361 * xfns.c: Call change_frame_size and do_pending_window_change with
427ec082 7362 new parameter.
26901792
DL
7363
73641999-08-21 Gerd Moellmann <gerd@gnu.org>
7365
7366 * xdisp.c (resize_mini_window): Do it for truncate-lines t as
7367 well.
427ec082 7368 (redisplay_internal): Resize mini-window only if text might
26901792
DL
7369 have changed.
7370 (display_echo_area): Reset displayed echo_area_buffer to nil
7371 at the end if we're displaying a nil message.
7372
73731999-08-21 Gerd Moellmann <gerd@gnu.org>
427ec082 7374
26901792
DL
7375 * fns.c (hash_lookup): Test with EQ before calling key comparion
7376 function.
7377 (hash_remove): Ditto.
7378 (cmpfn_eq): Removed.
7379 (cmpfn_eql): Don't test with EQ.
7380 (cmpfn_equal): Ditto.
7381 (make_hash_table): Set comparison function for `eq' to null.
7382
7383 * buffer.c, cmds.c, editfns.c, indent.c, insdel.c, buffer.h:
7384 Remove conditional compilation on NO_PROMPT_IN_BUFFER.
7385
7386 * dispextern.h (NO_PROMPT_IN_BUFFER): Removed.
7387
7388 * window.c, widget.c, process.c, keyboard.c, frame.c, xdisp.c,
7389 xterm.c: Call change_frame_size and do_pending_window_change with
7390 new parameter.
7391
7392 * dispnew.c (do_pending_window_change): Add parameter `safe'.
7393 (change_frame_size): Ditto.
7394 (change_frame_size_1): Ditto. Deley size changes if redisplaying
7395 and not called from a safe place.
7396 (window_change_signal): Call change_frame_size with new parameter.
7397
7398 * dispextern.h: Change prototypes for do_pending_window_change
7399 and change_frame_size.
7400
7401 * xfaces.c (face_at_buffer_position): Don't xassert that
427ec082 7402 window's buffers equals current_buffer; this is not the
26901792
DL
7403 case during echo area display.
7404
74051999-08-21 Gerd Moellmann <gerd@gnu.org>
7406
7407 * xdisp.c, minibuf.c: Remove conditional compilation on
7408 NO_PROMPT_IN_BUFFER.
7409
7410 * minibuf.c (Fminibuffer_prompt_end): New.
7411 (syms_of_minibuf): Defsubr it. Remove
7412 minibuffer-prompt-in-buffer.
7413 (Fminibuffer_prompt_width): Return 0 if not in mini-buffer.
7414 Extend documentation.
7415
7416 * xdisp.c (get_next_display_element): Display \r as ^M.
7417
7418 * xterm.c (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]: Clear
7419 under scroll bar widget.
7420
74211999-08-21 Gerd Moellmann <gerd@gnu.org>
7422
7423 * xdisp.c (minibuffer_scroll_overlap): Removed because not used
7424 anywhere.
7425 (unwind_redisplay): Return nil.
7426 (clear_garbaged_frames): New.
7427 (redisplay_internal): Use it.
7428 (echo_area_display): Ditto.
7429 (resize_mini_window): Mew.
7430 (display_echo_area_1): Use it to resize echo area window.
7431 (redisplay_internal): Use it to resize active mini-window.
7432
7433 * dispextern.h, lisp.h: Add function prototypes.
7434
427ec082 7435 * dispnew.c (set_window_cursor_after_update): Do the
26901792
DL
7436 cursor_in_echo_area case only for a mini-window showing
7437 a message. Don't let cursor end up after the end of a row.
7438
7439 * xdisp.c (echo_area_glyphs, echo_area_message,
7440 echo_area_glyphs_length, previous_echo_glyphs,
7441 previous_echo_area_message, previous_echo_area_glyphs_length):
7442 Removed.
7443 (Vmessage_stack, echo_area_buffer, echo_buffer,
7444 display_last_displayed_message_p, Vwith_echo_area_save_vector): New.
7445 (message2_nolog): Use set_message and clear_message.
7446 (message3): Rename parameter len to nbytes to make clear what
7447 it is.
7448 (message3_nolog): Ditto. Use set_message and clear_message.
7449 (update_echo_area): Rewritten.
7450 (with_echo_area_buffer): New.
7451 (with_echo_area_buffer_unwind_data, unwind_with_area_buffer): New.
7452 (setup_echo_area_for_printing): New.
7453 (display_echo_area, display_echo_area_1): New.
7454
7455 (current_message, current_message_1): New.
427ec082 7456 (push_message, restore_message, pop_message,
26901792
DL
7457 check_message_stack): New.
7458 (truncate_echo_area): Rewritten.
7459 (truncate_message_1): New.
7460 (set_message, set_message_1, clear_message): New.
7461 (echo_area_display): Rewritten.
7462 (redisplay_internal): Check for needed echo area update
7463 differently.
7464 (redisplay_preserve_echo_area): Rewritten.
427ec082 7465 (redisplay_window): Check for mini-window displaying echo area
26901792
DL
7466 message differently.
7467 (syms_of_xdisp): Initialize Vmessage_stack and echo area buffers.
7468 Remove initialzation of removed variables.
7469 (init_xdisp): Remove references to removed variables.
7470
7471 * dispnew.c (adjust_frame_message_buffer): Removed references
7472 to echo_area_glyphs and previous_echo_glyphs.
7473 (direct_output_for_insert): Check for mini-window displaying
7474 echo area message differently.
7475 (update_frame): Likewise.
7476 (set_window_cursor_after_update): Likewise. In echo area,
7477 don't try to set cursor on rows that aren't enabled.
7478
7479 * print.c: Remove conditional compilation on `standalone'.
7480 (glyph_len, str_to_glyph_cpy, str_to_glyph_ncpy,
427ec082 7481 glyph_to_str_cpy): Remove that section because GLYPHs are no
26901792
DL
7482 longer used in that way.
7483 (PRINTDECLARE): Add multibyte.
7484 (PRINTPREPARE, PRINTFINISH): Handle printcharfun t differently.
7485 (printbufidx): Removed.
7486 (printchar, strout): Rewritten.
7487
7488 * keyboard.c (ok_to_echo_at_next_pause): Make it a pointer to
7489 a struct kboard.
7490 (echo_kboard): New.
7491 (echo_now): Set echo_kboard to the current kboard.
7492 (cancel_echoing): Set echo_kboard to null.
7493 (cmd_error_internal): Use clear_message, remove references
7494 to echo_area_glyphs and echo_area_message.
7495 (command_loop_1): Check for echo area messages differently.
7496 (read_char): Likewise.
7497 (record_menu_key): Use clear_message.
7498 (Fexecute_extended_command): Check for echo area messages
7499 differently. Use push_message, restore_message, pop_message.
7500
7501 * alloc.c (Fgarbage_collect): Use push_message, restore_message,
7502 pop_message.
7503
7504 * emacs.c (shut_down_emacs): Call check_message_stack.
7505
7506 * lisp.h: Add function prototypes and extern declarations for
7507 new functions and variables.
7508
7509 * fileio.c (Fdo_auto_save): Use push_message, restore_message,
7510 pop_message.
7511
427ec082 7512 * minibuf.c (read_minibuf): Use clear_message instead of
26901792
DL
7513 setting echo_area_glyphs.
7514 (Fminibuffer_completion_help): Ditto.
7515
7516 * editfns.c (Fcurrent_message): Rewritten.
7517
7518 * frame.c, window.h: Remove references to echo_area_glyphs
7519 and previous_echo_glyphs.
7520
75211999-08-21 Dave Love <fx@gnu.org>
7522
7523 * aix3-2-5.h (C_DEBUG_SWITCH): Use -g -O.
7524 * aix4-1.h: Likewise.
7525
7526 * irix6-5.h (C_DEBUG_SWITCH): Set for debug and optimize.
7527
75281999-08-20 Gerd Moellmann <gerd@gnu.org>
7529
7530 * xfns.c: Remove tiff34 prefix from include.
7531
75321999-08-20 Dave Love <fx@gnu.org>
7533
7534 * cm.c: Revert previous change.
7535
75361999-08-19 Gerd Moellmann <gerd@gnu.org>
7537
7538 * xterm.c (XTset_vertical_scroll_bar): Fix previous change. Clear
7539 under scroll bar with width FRAME_SCROLL_BAR_COLS.
7540
75411999-08-18 Dave Love <fx@gnu.org>
7542
7543 * callproc.c, filelock.c, insdel.c, sysdep.c, xmenu.c: Use
7544 stdlib.h.
7545
7546 * doprnt.c: Use stdlib.h, unistd.h.
7547
7548 * config.in: Add HAVE_TERMCAP_H.
7549
7550 * cm.c: Use termcap.h.
7551
75521999-08-18 Gerd Moellmann <gerd@gnu.org>
7553
7554 * xfns.c (x_window) [USE_X_TOOLKIT]: Remove test for
7555 FRAME_X_WINDOW (f) being null at the of the function. If widgets
7556 cannot be created we will already have crashed earlier. Call
7557 lw_set_main_areas with a null menu-bar widget, so that we have
7558 a reasonable default.
7559 (Fx_create_frame): Rearranged so that Lisp errors during frame
7560 initialization cause less damage. Initialize menu bar widget
7561 here.
7562
75631999-08-18 Gerd Moellmann <gerd@gnu.org>
427ec082 7564
26901792
DL
7565 * dispnew.c (update_frame_line): Fix previous change. If writing
7566 whole line clear to end of frame.
7567
75681999-08-17 Gerd Moellmann <gerd@gnu.org>
7569
7570 * window.c (Fcoordinates_in_window_p): Return `left-bitmap-area'
7571 and `right-bitmap-area' if position is in the bitmap areas. This
7572 avoids an error when clicking on the bitmap areas. Instead, they
7573 are currently treated like clicks inside the window.
7574 (coordinates_in_window): Return 5 and 6 for bitmap areas.
7575 (Qleft_bitmap_area, Qright_bitmap_area): New.
7576 (syms_of_window): Initialize new symbols.
7577
7578 * dispnew.c (update_frame_line): If writing whole line,
7579 don't write trailing spaces unless we must.
7580
7581 * xdisp.c (unwind_redisplay): New. Resets flag redisplaying_p.
7582 (redisplay_internal): Register unwind_redisplay with
7583 register_unwind_protect.
7584 (try_window_reusing_current_matrix): If new start > old start,
7585 give up if start pos of first reusable row is not equal to new
7586 start.
7587
7588 * eval.c (Fsignal): Don't reset redisplaying_p here.
7589
7590 * xterm.c (expose_area): If row extends face to end of line,
7591 write the whole line.
7592
75931999-08-16 Gerd Moellmann <gerd@gnu.org>
7594
7595 * dispextern.h (struct it): Remove member
7596 show_trailing_whitespace_p.
7597
7598 * dispnew.c (direct_output_for_insert): Use
7599 Vshow_trailing_whitespace instead of former iterator member
7600 show_trailing_whitespace_p.
7601 (direct_output_forward_char): Don't do it if hightlighting
7602 trailing whitespace.
7603
7604 * xdisp.c (Qshow_trailing_whitespace): Removed.
7605 (Vshow_trailing_whitespace): Added.
7606 (init_iterator): Remove initialization code for
7607 show_trailing_whitespace_p.
7608 (redisplay_internal): Don't try cursor movement in this_line
7609 if showing trailing whitespace.
7610 (redisplay_window): Likewise for cursor movement in current
7611 matrix and try_window_id.
7612 (try_window_reusing_current_matrix): Likewise.
7613 (trailing_whitespace_p): Return 0 if trailing whitespace is
7614 in front of point.
7615 (display_line): Use Vshow_trailing_whitespace instead of
7616 former iterator member show_trailing_whitespace_p.
7617 (syms_of_xdisp): Add DEFVAR_LISP for show-trailing-whitespace.
7618
76191999-08-16 Gerd Moellmann <gerd@gnu.org>
7620
7621 * window.c (Fpos_visible_in_window_p): Rewritten.
7622
7623 * xfaces.c (add_to_log): Renamed from display_message.
7624 Don't display messages in echo area.
7625
7626 * xterm.c (x_draw_glyph_string_box): Use the background width
7627 of the glyph string for the width of the box.
7628
76291999-08-16 Stefan Monnier <monnier@cs.yale.edu>
7630
7631 * syntax.c (Fforward_comment): Set comstyle for Scomment_fence.
7632
76331999-08-16 Geoff Voelker <voelker@cs.washington.edu>
7634
7635 * xfns.c, w32fns.c (x_set_frame_parameters): Set foreground and
7636 background first, and then set other parameters that might
7637 depend upon their new values.
7638
76391999-08-15 Gerd Moellmann <gerd@gnu.org>
7640
7641 * xfaces.c (Vfont_list_limit): New.
7642 (syms_of_xfaces): Make it a user-variable.
7643 (DEFAULT_FONT_LIST_LIMIT): New.
7644 (sorted_font_list): If Vfont_list_limit is an integer > 0, list
7645 maximally that number of fonts, otherwise use
7646 DEFAULT_FONT_LIST_LIMIT.
427ec082 7647 (Fx_font_family_list): Bind `font-list-limit' to higher values
26901792
DL
7648 until we have all fonts.
7649 (Fxfont_list): Additionally return the full names of fonts and
7650 their registry and encoding.
7651
427ec082 7652 * xterm.c (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
26901792
DL
7653 Simplify clearing "under" scroll bar.
7654
7655 * window.c (Qfixed_window_size): New.
7656 (syms_of_window): Initialiaze it.
7657 (check_all_windows): Add return type void.
7658 (window_fixed_size_p): New. Return non-zero if window
7659 is fixed-size.
7660 (window_min_size_1): New.
7661 (window_min_size): Handle fixed-size windows.
7662 (size_window): New. Rewritten combination of set_window_height and
7663 set_window_width that handles fixed-size windows.
7664 (set_window_height): Call it.
7665 (set_window_width): Call it.
7666 (Fsplit_window): Give an error on attempt to split a fixed-size
7667 window.
7668 (change_window_height): Partly rewritten to handle fixed-size
7669 windows.
7670
76711999-08-13 Wolfgang Rupprecht <wolfgang@wsrcc.com>
7672
7673 * process.c (Fopen_network_stream): Fix previous change.
7674
76751999-08-13 Karl Heuer <kwzh@gnu.org>
7676
7677 * xdisp.c (line_number_display_limit_width): New var.
7678 (decode_mode_spec): Use it instead of hardcoded value.
7679 (syms_of_xdisp): Defvar it.
7680
76811999-08-13 Richard M. Stallman <rms@gnu.org>
7682
7683 * eval.c (run_hook_list_with_args): Gcpro `globals'.
7684 (run_hook_with_args): Likewise.
7685
7686 * window.h (struct window): New field too_small_ok.
7687
427ec082 7688 * window.c (set_window_height, set_window_width):
26901792
DL
7689 If window starts out "too small", set its too_small_ok flag.
7690 If window's too_small_ok flag is set, don't delete it
7691 unless it is so small it would cause a crash.
7692
76931999-08-13 Gerd Moellmann <gerd@gnu.org>
7694
7695 * window.c (MINSIZE): Removed.
7696 (window_min_size): New.
7697 (set_window_height): Use window_min_size.
7698 (change_window_height): Ditto.
7699
77001999-08-12 Gerd Moellmann <gerd@gnu.org>
7701
7702 * indent.c (vmotion): Don't add in mini-buffer prompt width
7703 if prompts are inserted into mini-buffer.
7704
77051999-08-12 Wolfgang Rupprecht <wolfgang@wsrcc.com>
7706
7707 * config.in: Add HAVE_GETADDRINFO.
7708 * process.c (Fopen_network_stream): Use getaddrinfo.
7709
77101999-08-11 Gerd Moellmann <gerd@gnu.org>
7711
7712 * xdisp.c (get_overlay_arrow_glyph_row): Set the charpos of
7713 glyphs to -1.
7714
7715 * xdisp.c (face_before_or_after_it_pos): If position after
7716 or before iterator's current position in the buffer is out
7717 of bounds, return the iterator's original face id.
7718
7719 * dispnew.c (mirror_make_current): If desired row isn't enabled,
7720 just swap glyphs pointers between current and desired row.
7721 (build_frame_matrix_from_leaf_window) [GLYPH_DEBUG]: Copy
7722 desired matrix method string to current matrix.
7723
77241999-08-11 Kenichi Handa <handa@etl.go.jp>
7725
7726 * lisp.h (CHAR_MODIFIER_MASK): New macro.
7727
7728 * lread.c (read_escape): For Control modifier, pay attention to
7729 multibyte character.
7730 (read1): Likewise. Singal error or a multibyte character which
7731 has a modifer bit. Check validity of Shift modifer.
7732
7733 * charset.c (non_ascii_char_to_string): Handle modifier bits as
7734 the same as Lisp reader.
7735
77361999-08-10 Richard M. Stallman <rms@gnu.org>
7737
7738 * charset.h (BCOPY_SHORT): Fix typo `unsigined'.
7739
77401999-08-10 Alexandre Oliva <oliva@dcc.unicamp.br>
7741
7742 * unexelf.c [__linux__ && __alpha__] (HAS_SBSS_SECTION): Define.
7743
77441999-08-10 Eli Zaretskii <eliz@gnu.org>
7745
7746 * msdos.c (IT_set_face): Abort if the default face is not realized
7747 and cached.
7748 (IT_write_glyphs): Reset the screen face to the default face
7749 before writing glyphs.
7750
7751 * xfaces.c (realize_default_face) [MSDOS]: Don't take default
7752 colors from the frame here.
7753 (realize_tty_face) [MSDOS]: Do it here. Update the face
7754 attributes with the actual name of the color taken from the
7755 frame.
7756
7757 * dosfns.c (msdos_stdcolor_name): Remove const from return value.
7758 * dosfns.h (msdos_stdcolor_name): Ditto for the prototype.
7759
7760 * frame.c (Fframe_parameters): Swap foreground and background
7761 colors returned in frame parameters if the frame has reverse in
7762 its parameter alist.
7763 (Fmake_terminal_frame): Make a unique copy of face_alist for
7764 each frame.
7765
77661999-08-07 Richard Stallman <rms@gnu.org>
7767
7768 * buffer.c (Fprevious_overlay_change): Just return
7769 the answer obtained from overlays_at.
7770
7771 * xfns.c (xpm_load) [!XpmAllocCloseColors]:
7772 Use XpmCloseness and attrs.closeness instead.
7773
77741999-08-06 Richard Stallman <rms@gnu.org>
7775
7776 * lread.c (Feval_buffer): New arg DO_ALLOW_PRINT.
7777
77781999-08-06 Geoff Voelker <voelker@cs.washington.edu>
7779
427ec082 7780 * dired.c (directory_files_internal, Fdirectory_files_and_attributes,
26901792
DL
7781 Ffile_attributes_lessp): New functions.
7782 (Fdirectory_files): Use directory_files_internal.
7783 (syms_of_dired): Initialize Fdirectory_files_and_attributes,
7784 Ffile_attributes_lessp.
7785
7786 * w32.c (stat): Check for directory ending in separator when
7787 doing readdir fast path.
7788
7789 * w32fns.c (x_set_icon_type): Support setting frame icons.
7790 * w32term.c (x_bitmap_icon): New function.
7791 (x_make_frame_visible, x_iconify_frame): Invoke x_bitmap_icon.
427ec082 7792
26901792
DL
77931999-08-06 Gerd Moellmann <gerd@gnu.org>
7794
7795 * xdisp.c (set_iterator_to_next): After delivering a character
7796 from a display vector, restore face and charset to what they were
7797 before the display vector was processed.
7798
77991999-08-06 Gerd Moellmann <gerd@gnu.org>
7800
7801 * xdisp.c (reseat_at_next_visible_line_start): New parameter
7802 on_newline_p.
7803 (set_iterator_to_next): After delivering last char
427ec082 7804 from display vector, reseat on next visible line start if
26901792
DL
7805 dpvec_char_len < 0.
7806 (next_element_from_buffer): Set dpvec_char_len to -1 for
7807 selective display.
7808
78091999-08-06 Gerd Moellmann <gerd@gnu.org>
7810
7811 * xdisp.c (compute_line_metrics): If first line's physical ascent
7812 is larger than its logical ascent, use the physical ascent, and
7813 make the row taller. Set row's overlapping_p flag.
7814
7815 * dispnew.c (redraw_overlapping_rows): Use flag overlapping_p.
7816 (direct_output_for_insert): Ditto.
7817
7818 * dispextern.h (struct glyph_row): Add overlapping_p.
7819
7820 * xterm.c (x_draw_phys_cursor_glyph): Redraw overlaps.
7821
7822 * dispextern.h (MATRIX_ROW_OVERLAPS_PRED_P): New.
7823 (MATRIX_ROW_OVERLAPS_SUCC_P): New.
7824
7825 * dispnew.c (direct_output_for_insert): Don't use this method if
7826 row is overlapped by others.
7827 (update_text_area): Write full line if current line is overlapped.
7828 (redraw_overlapped_rows): New.
7829 (update_window): Call it.
7830 (redraw_overlapping_rows): New.
7831 (update_window): Call it.
7832 (scrolling_window): Make sure overlapped_p flag in current rows is
7833 unchanged.
7834 (row_equal_p): Take rows overlapped_p flag into account.
7835
7836 * dispextern.h (struct glyph_row): Add flag overlapped_p.
7837
7838 * xterm.c (x_fix_overlapping_area): New.
7839 (x_redisplay_interface): Add x_fix_overlapping_area.
7840
7841 * dispnew.c (adjust_glyphs): Block input while adjusting matrices.
7842
78431999-08-06 Gerd Moellmann <gerd@gnu.org>
7844
7845 * xterm.c (x_draw_glyphs): Add parameter overlaps_p.
7846 (struct glyph_string): Add member for_overlaps_p.
7847 (x_get_glyph_string_clip_rect): If glyph string draws foreground
7848 of overlapping rows, clip to window bottom.
7849 (x_fill_glyph_string): Add parameter overlaps_p.
7850 (x_fill_composite_glyph_string): Ditto.
7851 (BUILD_GLYPH_STRINGS): Ditto.
7852 (BUILD_CHAR_GLYPH_STRINGS): Ditto.
7853 (x_draw_glyph_string): Don't draw anything but the foreground
7854 if glyph string draws row overlaps.
7855
7856 * dispnew.c (direct_output_for_insert): Don't use this
7857 optimization for rows that overlap others.
7858 (update_window_line): Return non-zero if display has changed.
7859 (update_text_area): Ditto.
7860 (update_window): Record if display has been changed.
7861
7862 * dispextern.h (MATRIX_ROW_OVERLAPPING_P): New.
7863
7864 * dispextern.h (struct redisplay_interface): Add
7865 fix_overlapping_area.
7866
7867 * xterm.c (x_append_glyph): Set glyph flag overlaps_vertically_p.
7868
7869 * dispextern.h (struct glyph): Add overlaps_vertically_p.
7870
7871 * xterm.c (x_produce_image_glyph): Compute iterator's physical
7872 ascent and descent.
7873 (x_produce_stretch_glyph): Ditto.
7874 (x_produce_glyphs): Ditto.
7875
7876 * xdisp.c (init_iterator): Reset physical line height info
7877 after producing special glyphs.
7878 (display_toolbar_line): Set physical line height info.
7879 (compute_line_metrics): Ditto.
7880 (display_line): Ditto.
7881 (display_string): Ditto.
7882
7883 * term.c (produce_glyphs): Set iterator's physical height
7884 information.
7885
7886 * dispnew.c (blank_row): Compute glyph row's physical height.
7887 (row_equal_p): Take physical row heights into account.
7888 (direct_output_for_insert): Ditto.
7889 (update_text_area): Ditto.
7890
7891 * dispextern.h (struct glyph_row): Add phys_ascent and
7892 phys_height.
7893 (struct it): Add phys_ascent, phys_descent, max_phys_ascent,
7894 max_phys_descent.
7895
78961999-08-04 Stefan Monnier <monnier@cs.yale.edu>
7897
7898 * buffer.c (switch_to_buffer_1): New subroutine, taken out from
7899 Fswitch_to_buffer.
7900 (no_switch_buffer): New function.
7901 (Fswitch_to_buffer): Call them. Don't get confused
7902 by "same-window" buffers in a dedicated frame.
7903
7904 * window.c (display-buffer): Don't get confused
7905 by "same-window" buffers in a dedicated frame.
7906
79071999-08-04 Andreas Schwab <schwab@gnu.org>
7908
7909 * insdel.c (insert_from_string_1): Check gap size against number
7910 of outgoing bytes, not incoming bytes.
7911
79121999-08-03 Tom Breton <tob@world.std.com>
7913
7914 * lread.c (read1): Added circular reading code to #N=.
7915 (SUBSTITUTE): New macro.
7916 (seen_list): New variable.
7917 (substitute_object_in_subtree): New function.
7918 (substitute_object_recurse): New function.
7919 (substitute_in_interval): New function.
7920
79211999-08-02 Eli Zaretskii <eliz@gnu.org>
7922
7923 * Makefile.in (frame.o, sysdep.o, xfaces.o): Depend on dosfns.h.
7924
7925 * frame.c (make_terminal_frame): Don't call init_frame_faces if
7926 noninteractive, for termcap frames as well.
7927
7928 * sysdep.c (init_sys_modes): Call init_frame_faces for termcap
7929 frames.
7930
79311999-08-01 Richard Stallman <rms@gnu.org>
7932
7933 * fns.c (internal_equal): Correct overlay comparison.
7934
83c8f461 79351999-07-31 Richard M. Stallman <rms@gnu.org>
26901792 7936
427ec082 7937 * xfns.c (x_set_internal_border_width):
26901792
DL
7938 Call do_pending_window_change. Don't block input, don't call XFlush.
7939 (x_set_vertical_scroll_bars): Call do_pending_window_change.
7940 (x_set_scroll_bar_width, x_set_font): Likewise.
7941
7942 * frame.c (Fset_frame_height): Call do_pending_window_change.
7943 (Fset_frame_width, Fset_frame_size): Likewise.
7944
7945 * xterm.c (x_set_window_size): When calling change_frame_size,
7946 specify 1 for DELAY.
7947
7948 * widget.c (EmacsFrameSetCharSize): Don't call
7949 do_pending_window_change here.
7950
79511999-07-30 Dave Love <fx@gnu.org>
7952
7953 * config.in: Add HAVE_STDLIB_H.
7954
79551999-07-30 Richard M. Stallman <rms@gnu.org>
7956
7957 * process.c (create_process): Detect failure of `pipe'.
7958
79591999-07-30 Keisuke Nishida <kei@psn.net>
7960
7961 * alloc.c (allocate_vectorlike): Add missing increment.
7962
7963 * data.c (Fdefalias): Call Ffset instead of duplicating code.
7964
7965 * keymap.c (get_keymap_1, get_keyelt): Check the type of OBJECT
7966 before calling indirect_function.
7967
79681999-07-30 Eli Zaretskii <eliz@gnu.org>
7969
7970 * dispextern.h (load_color, lookup_derived_face): Declare
7971 prototypes.
7972
7973 * dispnew.c (init_display) [MSDOS]: Don't initialize frame faces,
7974 it will be done later.
7975
7976 * frame.c (make_terminal_frame) [MSDOS]: Don't call
7977 init_frame_faces if non-interactive.
7978 (Fframe_parameters) [MSDOS]: Replace indexing into colornames[]
7979 array with a call to msdos_stdcolor_name. The font name is now
7980 "ms-dos", consistent with realize_tty_face.
7981
7982 * keyboard.c (cmd_error_internal): Don't kill Emacs if this is an
7983 MSDOS frame.
7984
7985 * window.c (Fset_window_configuration) [MSDOS]: Don't call
7986 x_set_toolbar_lines.
7987
7988 * xfaces.c (load_color): Remove static from definition and remove
7989 prototype.
7990 [MSDOS]: Add a DOS-specific version of load_color.
7991 (lookup_face): Replace FRAME_TERMCAP_P with !FRAME_WINDOW_P.
7992 (lookup_derived_face): New function.
7993 (realize_default_face): Support MSDOS frames.
7994 [MSDOS]: If fore/background colors are unspecified, inherit them
7995 from the frame.
7996 (realize_face): Support MSDOS frames.
7997 (realize_tty_face): Support MSDOS frames.
7998 [MSDOS]: If the face color is not in Vface_tty_color_alist, call
7999 load_color to try to find a suitable approximation. If the face
8000 is inverse-video, swap the foreground and background colors.
8001
8002 * dosfns.c (msdos_stdcolor_name, msdos_stdcolor_idx): New
8003 functions.
8004
8005 * dosfns.h (msdos_stdcolor_name, msdos_stdcolor_idx): Declare.
8006
8007 * msdos.h: Remove redundant declarations (most of them are now in
8008 dispextern.h).
8009
8010 * msdos.c (IT_set_face): Rewritten for the new redisplay engine.
8011 Use default frame colors if the face doesn't specify them; invert
8012 the colors if highlight is ON.
8013 (IT_write_glyphs): Rewritten for the new redisplay engine.
8014 (IT_change_line_highlight): Add (unused) parameter Y, since that's
8015 how the hook is called by term.c.
8016 (IT_copy_glyphs): New function, copies an area of the display in
8017 video RAM.
8018 (IT_insert_glyphs): Rewritten to DTRT instead of aborting, since
8019 redisplay now calls it even if char_ins_del_ok is zero.
8020 (IT_set_frame_parameters): Prototype changed. Calls the new
8021 load_color. Puts the new fore/background colors into the default
8022 face on current frame.
8023 (IT_menu_display): Rewritten to handle the new struct glyph
8024 instead of a char array.
8025 (XMenuActivate): Call lookup_derived_face to create and use
8026 special faces for the pop-up and drop-down menus.
8027
80281999-07-29 Gerd Moellmann <gerd@gnu.org>
8029
8030 * xterm.c (x_set_toolkit_scroll_bar_thumb): Don't call
8031 XawScrollbarSetThumb if thumb parameters haven't changed because
8032 that function apparently isn't optimized for this case.
8033
80341999-07-29 Eli Zaretskii <eliz@gnu.org>
8035
8036 * msdos.c (getdefdir): Don't return failure indication when
8037 _fixpath sets errno to ENOSYS.
8038
80391999-07-28 Gerd Moellmann <gerd@gnu.org>
8040
8041 * xdisp.c (string_char_and_length): New. Use it everywhere
8042 instead of STRING_CHAR_AND_LENGTH in xdisp.c.
8043
80441999-07-28 Kenichi Handa <handa@etl.go.jp>
8045
8046 * fns.c (count_combining): New function.
8047 (struct textprop_rec): New structure.
8048 (concat): Copy text properties correctly when byte combining
8049 occurs.
8050
80511999-07-28 Gerd Moellmann <gerd@gnu.org>
8052
8053 * xterm.c (x_setup_relief_color): Don't try smart color allocation
8054 if display is mono.
8055 (x_draw_row_bitmaps): If face has stipple, don't switch
8056 to foreground color for clearing areas, and set the fill style.
8057
8058 * xfaces.c (load_face_colors): Load background color if setting
8059 stipple, too.
427ec082 8060 (prepare_face_for_display): Use FillOpaqueStippled instead of
26901792
DL
8061 FillStippled.
8062
80631999-07-26 Ken'ichi Handa <handa@gnu.org>
8064
8065 * xterm.c (x_find_ccl_program): Add casting.
8066
8067 * w32fns.c (w32_find_ccl_program): Add casting.
8068
80691999-07-27 Gerd Moellmann <gerd@gnu.org>
8070
8071 * dispextern.h (struct glyph_row): Flag internal_border_p removed.
8072
8073 * xfns.c (x_create_tip_frame): Don't set bitmapIcon resource
8074 because this will try to access a nonexisting widget.
8075
80761999-07-26 Markus Rost <rost@gnu.org>
8077
427ec082 8078 * fns.c (Fgethash): Fix order of variables (patch by gerd).
26901792
DL
8079 (Fputhash): Ditto.
8080 (Fremhash): Ditto.
8081
80821999-07-26 Gerd Moellmann <gerd@gnu.org>
427ec082 8083
26901792
DL
8084 * widget.c (EmacsFrameSetCharSize): Don't add XtNborderWidth
8085 value to frame width and height.
8086
8087 * xterm.c (x_get_glyph_string_clip_rect): Take internal border
8088 into account for full-width windows. Don't add scroll bar width
8089 to width of clip rect.
8090 (x_draw_glyph_string_box): Add 1 to right x of full width lines.
8091 (x_set_glyph_string_background_width): Add 1 to background width.
8092 (x_draw_glyphs): Take internal border into account for full-width
8093 lines.
8094
80951999-07-26 Richard M. Stallman <rms@gnu.org>
8096
8097 * xfns.c (x_set_mouse_color): Always unload the old color.
8098 Don't allow nil as color value.
427ec082 8099 (x_set_cursor_color, x_set_background_color, x_set_foreground_color):
26901792
DL
8100 Always unload the old color.
8101
8102 * indent.c (Fmove_to_column): Extend end of line only if FORCE is t.
8103
81041999-07-26 Karl Heuer <kwzh@gnu.org>
8105
8106 * fns.c (Fy_or_n_p): Doc fix.
8107
81081999-07-26 Kenichi Handa <handa@etl.go.jp>
8109
8110 * ccl.h (setup_ccl_program): The type is changed to `int'.
8111
8112 * ccl.c (ccl_driver) <CCL_Call>: Now CCL program ID to call may be
8113 stored in the following CCL code. Adjusted for the change of
8114 Vccl_program_table.
8115 (resolve_symbol_ccl_program): Adjusted for the new style of
8116 embedded symbols (SYMBOL . PROP) in CCL compiled code. Return Qt
8117 is resolving failed.
8118 (ccl_get_compiled_code): New function.
8119 (setup_ccl_program): Function type changed from `void' to `int'.
8120 Resolve symbols in CCL_PROG.
8121 (Fccl_program_p): New function.
8122 (Fccl_execute): Get compiled CCL code by just calling
8123 setup_ccl_program.
8124 (Fccl_execute_on_string): Likewise.
8125 (Fregister_ccl_program): Adjusted for the change of
8126 Vccl_program_table.
8127
8128 * coding.c (setup_coding_system): Get compiled CCL code by just
8129 calling setup_ccl_program.
8130
8131 * xterm.c (x_find_ccl_program): Get compiled CCL code by just
8132 calling setup_ccl_program.
8133
8134 * w32fns.c (w32_find_ccl_program): Get compiled CCL code by just
8135 calling setup_ccl_program.
8136
81371999-07-23 Gerd Moellmann <gerd@gnu.org>
8138
8139 * xfaces.c (frame_update_line_height): Just use the height of the
8140 frame's fontset or font, instead of taking face fonts into
8141 account.
8142
8143 * xdisp.c (get_next_display_element): Display DEL as `^?'.
8144
81451999-07-23 Richard M. Stallman <rms@gnu.org>
8146
8147 * window.c (Fsplit_window): For default size, round up for left window.
8148
81491999-07-21 Joe Ramey <ramey@ti.com>
8150
8151 * filelock.c (lock_if_free): Return -1 if check_lock_owner
8152 has returned -1 (lockfile exists but is not a symlink?).
8153
81541999-07-20 Gerd Moellmann <gerd@gnu.org>
8155
8156 * xterm.c (x_draw_bar_cursor): Use scratch_cursor_gc to
8157 because of a change in cursor_gc made in 20.4.
8158
81591999-07-19 Gerd Moellmann <gerd@gnu.org>
8160
8161 * xterm.c (x_calc_absolute_position): Subtract menu bar height
8162 for YNegative, if using X toolkit.
8163
427ec082 8164 * xfns.c (x_real_positions): Don't subtract window borders
26901792
DL
8165 from positions returned.
8166
81671999-07-17 Gerd Moellmann <gerd@gnu.org>
8168
8169 * xrdb.c (x_load_resources): Set double-click time defaults
8170 for Motif list boxes from double-click-time.
8171
8172 * fns.c (Vhash_table_tests): Remvoed.
8173 (Qhash_table_test): New.
8174 (syms_of_fns): Initialize Qhash_table_test.
8175 (Fmake_hash_table): Look up user-defined tests in symbol prop
8176 `hash-table-test'.
8177 (Fdefine_hash_table_test): Store test and hash function as
8178 symbol prop `hash-table-test'.
8179 (make_hash_table): Add parameters user_test and user_hash.
8180
8181 * window.c (set_window_buffer): Set window margins for tty
8182 frames, too.
8183 (Fset_window_margins): Ditto.
8184
8185 * term.c (append_glyph): Use glyph area of iterator instead of
8186 always TEXT_AREA.
8187
8188 * dispnew.c (update_frame_1): Add left margin width to cursor
8189 hpos.
8190 (direct_output_for_insert): Ditto.
8191 (direct_output_forward_char): Ditto.
8192
8193 * dispnew.c (adjust_glyph_matrix): Set glyph matrix' top_line_p.
8194
8195 * dispextern.h (struct glyph_matrix): Add top_line_p.
8196
81971999-07-16 Gerd Moellmann <gerd@gnu.org>
8198
8199 * frame.h (FRAME_WINDOW_REDISPLAY_P): Removed. Use FRAME_WINDOW_P
8200 instead.
8201
8202 * fns.c (cmpfn_eq): Add hash code parameters.
8203 (cmpfn_eql): Ditto.
8204 (cmpfn_equal): Ditto, and compare hash codes before calling Fequal.
8205 (cmpfn_user_defined): Likewise.
8206
82071999-07-15 Gerd Moellmann <gerd@gnu.org>
8208
8209 * lisp.h (DEFAULT_REHASH_THRESHOLD): Changed to 0.8.
8210
8211 * fns.c (maybe_resize_hash_table): Correct computation of
8212 index vector size.
8213 (make_hash_table): Ditto.
8214 (Fmakehash): New.
8215
8216 * xdisp.c (echo_area_display): Don't call redraw_garbaged_frames.
8217
8218 * alloc.c (gc_sweep): Call sweep_weak_hash_tables.
8219 (survives_gc_p): Make it externally visible.
8220 (mark_object): Ditto.
8221
8222 * fns.c (remove_hash_entry): Removed.
8223 (sweep_weak_hash_tables): New.
8224
8225 * print.c (print): Print more information about hash tables.
8226
8227 * xfns.c (image_spec_hash): Removed.
8228 (lookup_image): Use sxhash instead of image_spec_hash.
8229 (image_spec_equal_p): Removed.
8230 (lookup_image): Use Fequal instead of image_spec_equal_p.
8231
82321999-07-14 Gerd Moellmann <gerd@gnu.org>
8233
8234 * lisp.h (P_): Moved to top of file.
8235
8236 * fns.c (make_hash_table): Set new members.
8237
8238 * alloc.c (mark_object): Mark hash table's user_hash_function.
8239 Mark index vector for weak hash tables.
8240
8241 * lisp.h (struct Lisp_Hash_Table): Add user_cmp_function,
8242 user_hash_function, cmpfn, and hashfn.
8243
8244 * fns.c (build_hash): Removed.
8245 (hash_test): Removed.
8246 (cmpfn_eq, cmpfn_eql, cmpfn_equal, cmpfn_user_defined): New.
8247 (hashfn_eq, hashfn_eql, hashfn_equal, hashfn_user_defined): New.
8248
82491999-07-13 Gerd Moellmann <gerd@gnu.org>
8250
8251 * alloc.c (survives_gc_p): New.
8252
8253 * print.c (print): Add hash table handling.
8254
8255 * alloc.c (mark_object): Add code to mark hash tables.
8256
8257 * lisp.h (GC_HASH_TABLE_P): New.
8258
8259 * emacs.c (main): Call init_fns.
8260
8261 * fns.c (init_fns): New.
8262
8263 * fns.c: Add hash table implementation.
8264
8265 * lisp.h (PVEC_HASH_TABLE): New.
8266 (struct Lisp_Hash_Table): New.
8267 (XHASH_TABLE): New.
8268 (XSET_HASH_TABLE): New.
8269 (HASH_TABLE_P): New.
8270 (CHECK_HASH_TABLE): New.
8271 (DEFAULT_HASH_SIZE): New.
8272 (DEFAULT_REHASH_THRESHOLD): New.
8273 (DEFAULT_REHASH_SIZE): New.
8274
8275 * xterm.c (x_draw_glyphs): Add parameters real_start and real_end.
8276 (x_write_glyphs): Compute overwritten cursor using real start
8277 and end positions of display.
8278 (x_insert_glyphs): Ditto.
8279
82801999-07-10 Gerd Moellmann <gerd@gnu.org>
8281
8282 * keyboard.c (read_char): Use message3_nolog to show help-echo.
8283
8284 * dispnew.c (blank_row): Add y-position as parameter. Compute
8285 visible height.
8286
8287 * xdisp.c (next_element_from_string): Give padding spaces
8288 a position of -1.
8289
427ec082 8290 * dispnew.c (adjust_glyph_matrix): Some work to support
26901792
DL
8291 marginals areas on tty frames in a future version.
8292 (allocate_matrices_for_frame_redisplay): Ditto.
8293
8294 * xdisp.c (display_line): At ZV, set glyph row's displays_text_p
8295 to zero if number of glyphs in the row is <= 1.
8296
82971999-07-09 Gerd Moellmann <gerd@gnu.org>
8298
8299 * dispnew.c (buffer_posn_from_coords): Take left marginal area
8300 into account.
8301
8302 * xdisp.c (handle_display_prop): Don't reset area if handing
8303 a property from a string that came from a `display' property.
8304 (handle_single_display_prop): Don't handle recursive `display'
8305 properties.
8306 (handle_single_display_prop): Handle some display property
8307 forms for terminal frames.
8308 (Qimage): Moved here from xfns.c.
8309
8310 * dispextern.h (struct it): New field string_from_display_prop_p.
8311
8312 * xterm.c (x_clip_to_row): Don't let clip_rect include top
8313 line.
8314
83151999-07-08 Gerd Moellmann <gerd@gnu.org>
8316
8317 * xdisp.c (handle_single_display_prop): Handle `:when FORM'.
8318
8319 * window.c (set_window_buffer): Set window's vscroll to zero.
8320
8321 * xdisp.c (QCwhen): New.
8322 (display_prop_end): New.
8323 (handle_single_display_prop): Use it.
8324 (debug_method_add): Print buffer name if tracing.
8325 (try_window_reusing_current_matrix): Compute visible height
8326 of reused rows. Fix cursor position calculation in case of
8327 top-line.
8328
8329 * dispextern.h (struct redisplay_interface): Add parameter
8330 cursor_on_p to update_window_end_hook.
8331
8332 * xterm.c (x_update_window_end): Add parameter cursor_on_p.
8333
83341999-07-07 Gerd Moellmann <gerd@gnu.org>
8335
427ec082 8336 * xdisp.c (redisplay_internal): Ensure that redisplayinp_p
26901792
DL
8337 doesn't become negative when decrementing it.
8338
8339 * eval.c (Fsignal): Reset redisplaying_p to zero.
8340
8341 * xdisp.c (try_window_reusing_current_matrix): Call hooks
8342 for window update.
8343 (try_window_id): Ditto.
8344
8345 * xterm.c (x_clear_end_of_line): Handle top-line correctly.
8346 (x_scroll_run): Ditto.
8347 (any_help_event_p): New.
8348 (x_initialize): Set it to zero.
8349 (XTread_socket): Clear help echo only if any_help_event_p.
8350
8351 * xdisp.c (init_iterator): Set top_line_p.
8352 (start_display): Use correct initial y if top-line is present.
8353 (make_cursor_line_fully_visible): Bug fixes for top-line.
8354 (try_scrolling): Ditto.
8355 (try_window_reusing_current_matrix): Ditto.
8356
8357 * dispextern.h (struct it): Add top_line_p.
8358
8359 * dispnew.c (shift_glyph_matrix): Move some computations out
8360 of the loop.
8361
427ec082 8362 * dispnew.c (margin_glyphs_to_reserve): Use NUMBERP and
26901792
DL
8363 XFLOATINT.
8364
83651999-07-06 Gerd Moellmann <gerd@gnu.org>
8366
8367 * dispnew.c (update_frame_1): When setting cursor in echo area,
8368 skip only over padding spaces at the end.
8369
8370 * xfaces.c (realize_tty_face): Set face's font_name field to
8371 "tty".
8372
8373 * term.c (update_end): Turn cursor on only if selected window's
8374 cursor_off_p flag is not set.
8375
83761999-07-05 Gerd Moellmann <gerd@gnu.org>
8377
8378 * term.c (TS_cursor_visible): Renamed from TS_visual_mode.
8379 (TS_cursor_normal): Renamed from TS_end_visual_mode.
8380 (TS_cursor_invisible): New.
8381 (term_init): Initialize TS_cursor_invisible.
8382 (tty_hide_cursor): New.
8383 (tty_show_cursor): New.
8384 (update_end): Show tty cursor.
8385 (update_begin): Hide tty cursor to prevent cursor flickering
8386 during redisplays triggered by timers (stealth fontification).
8387
8388 * keyboard.c (make_lispy_event) <TOOLBAR_EVENT>: Apply modifiers.
8389
8390 * xterm.c (XTread_socket) [USE_MOTIF] <KeyPress>: Catch events
8391 in scroll bars.
8392 (x_handle_toolbar_click): Set modifier bits.
8393
83941999-07-04 Gerd Moellmann <gerd@gnu.org>
8395
8396 * keyboard.c (kbd_store_ptr): Declare it as a volatile pointer
8397 instead of a pointer to a volatile input_event.
427ec082 8398 (kbd_buffer_store_event): Remove volatile modifier from
26901792
DL
8399 declaration of local variable `sp'.
8400 (Fdiscard_input): Don't cast when assigning kbd_store_ptr
8401 to kbd_fetch_ptr.
8402
84031999-07-03 Gerd Moellmann <gerd@gnu.org>
8404
8405 * xdisp.c (try_window_id): Set beg_unchanged and end_unchanged
8406 only if buffer is modified. Return quickly if changes are
8407 above window start.
8408
84091999-07-02 Gerd Moellmann <gerd@gnu.org>
8410
8411 * dispextern.h (HSCROLL_WINDOWS): Removed.
8412
8413 * xdisp.c (mark_window_display_accurate): Don't set
8414 w->region_showing.
8415 (redisplay_internal): Don't call redraw_garbaged_frames.
8416
84171999-07-01 Gerd Moellmann <gerd@gnu.org>
8418
8419 * xdisp.c (echo_area_display): Don't display truncation marks
8420 for messages because 20.4 doesn't do it either.
8421 (redisplay_window): Case same window start. Instead of giving
8422 up when cursor is partially visible, make it fully visible.
8423 (mark_window_display_accurate): Some cleanup. Record window's
8424 last cursor information.
8425 (debug_method_add): Improved.
8426 (redisplay_internal): Record last cursor info only if not
8427 consider_all_windows_p.
8428
8429 * dispnew.c (update_window): Update top line after scrolling.
8430 (blank_row): Renamed from make_empty_enabled_row.
8431 (increment_glyph_row_buffer_positions): Increment positions
8432 in buffers, only.
8433
8434 * window.c (Fcoordinates_in_window_p): Add top-line to doc
8435 string.
8436
84371999-06-30 Gerd Moellmann <gerd@gnu.org>
8438
8439 * dispnew.c (update_window): Check that updated row is visible.
8440
8441 * xterm.c (x_draw_row_bitmaps): Check for invisible rows at
8442 top of window differently.
8443
8444 * xdisp.c (try_window_reusing_current_matrix): Don't do it
8445 if region is showing.
8446
8447 * dispnew.c (adjust_glyph_matrix): Check w->vscroll when
8448 avoiding matrix reallocation. Set window_vscroll in matrix.
8449
8450 * dispextern.h (struct glyph_matrix): Add member window_vscroll.
8451
26901792
DL
8452 * xdisp.c (debug_method_add): New.
8453 (debug_redisplay_method): Removed.
8454 (try_window_reusing_current_matrix): Handle case where old
8455 window start is the same as new window start.
8456
8457 * dispextern.h (struct glyph_matrix) [GLYPH_DEBUG]: Make `method'
8458 an array instead of a pointer.
8459
26901792
DL
8460 * xfns.c (Fx_show_tip): Undo previous change.
8461
8462 * xterm.c (x_append_glyph): Clear glyph->u.val.
8463
8464 * dispextern.h (struct glyph): Increase size of face_id bit-field
8465 for CHAR_GLYPH to 12.
8466
84671999-06-29 Gerd Moellmann <gerd@gnu.org>
8468
8469 * xfaces.c (x_charset_registry): Make it externally visible.
8470
84711999-06-28 Gerd Moellmann <gerd@gnu.org>
8472
427ec082 8473 * dispnew.c (update_window): Use mode_line_p flag of rows
26901792
DL
8474 instead of WINDOW_WANTS_MODELINE_P.
8475
8476 * xterm.c (clear_mouse_face): Make externally visible.
8477
8478 * xfns.c (Fx_show_tip): Clear mouse face before showing tip.
8479
8480 * xterm.c (expose_line): Handle exposure of top-lines.
8481
8482 * xterm.c (XTframe_up_to_date): Don't call note_mouse_highlight
8483 if mouse_face_mouse_frame is null.
8484
8485 * xdisp.c (redisplay_window): If window is echo_area_window,
8486 and update_mode_line is set, update menubar and toolbar.
8487
8488 * dispnew.c (space_glyph): Set its charpos to -1.
8489 (update_frame_1): Ignore trailing padding spaces.
8490
8491 * xdisp.c (next_element_from_c_string): Set position of padding
8492 glyphs to -1.
8493
84941999-06-27 Gerd Moellmann <gerd@gnu.org>
8495
8496 * xfns.c (x_laplace_read_row): Use XQueryColors instead of
8497 XQueryColor.
8498
8499 * xdisp.c (display_menu_bar): Remove unwarranted assertion.
8500 (set_cursor_from_row): Skip over glyphs having a null object at
8501 the start of rows.
8502 (insert_left_trunc_glyphs): Use charpos < 0 to indicate truncation
8503 glyphs.
8504 (handle_invisible_prop): Compute next change only when needed.
8505 (handle_face_prop): Don't correct DEFAULT_FACE_ID if in the mode
8506 line.
8507
85081999-06-26 Gerd Moellmann <gerd@gnu.org>
8509
8510 * xrdb.c (x_load_resources): Don't set resource for double-click
8511 time.
8512
8513 * xdisp.c (try_window_id): Return quickly if all changes are
8514 below the window's current matrix end.
8515
8516 * dispextern.h (MATRIX_ROW_PARTIALLY_VISIBLE_P): Remove window
8517 parameter.
8518
8519 * xdisp.c (try_window_reusing_current_matrix): Set no_scrolling_p
8520 in desired not in current matrix.
8521 (try_window_reusing_current_matrix): Rotate matrices starting
8522 at start_vpos instead of 0.
8523
8524 * xterm.c (expose_window): Use window_text_bottom_y.
8525 (fast_find_position): Ditto.
8526
8527 * xdisp.c (redisplay_window): Use window_text_bottom_y.
8528 (try_window_reusing_current_matrix): Ditto.
8529 (get_last_unchanged_at_beg_row): Ditto.
8530 (init_iterator): Ditto.
8531
8532 * dispnew.c (allocate_matrices_for_window_redisplay): Allocate one
8533 more row.
8534 (check_matrix_invariants): Use window_text_bottom_y.
8535 (update_window): Ditto.
8536 (scrolling_window): Ditto.
8537
8538 * xdisp.c (window_text_bottom_y): New.
8539
85401999-06-25 Gerd Moellmann <gerd@gnu.org>
8541
8542 * xterm.c (XTread_socket): Set mouse_face_frame to zero after
8543 clearing mouse face.
8544 (XTread_socket) <EnterNotify> [LESSTIF_VERSION]: If
8545 event.xcrossing.focus is not set, and focus is in the menu bar,
8546 set focus frame as if event.xcrossing.focus were set.
8547
85481999-06-24 Gerd Moellmann <gerd@gnu.org>
8549
8550 * keyboard.c (make_lispy_event): Handle mouse on top lines.
8551 * keyboard.c (make_lispy_movement): Ditto.
8552
8553 * window.c (coordinates_in_window): Return 4 if on top line.
8554 (Fcoordinates_in_window_p): Return `top-line' if on top line.
8555
8556 * xdisp.c (window_box_height): Subtract top line height.
8557 (window_box): Add top line height to top y position if top line
8558 exists.
8559 (init_iterator): If base_face_id is TOP_LINE_FACE_ID, set row to
8560 the top line row of the window. Set initial y-position to
8561 window's top line height plus delta.
8562 (start_display): Choose start glyph row depending on whether
8563 window has a top line.
8564 (try_scrolling): Take top line height into account for aggressive
8565 scrolling.
8566 (compute_window_start_on_continuation_line): Take top line into
8567 account.
427ec082 8568 (redisplay_window): Ditto. If top line height has changed,
26901792
DL
8569 trigger a new redisplay.
8570 (try_window_reusing_current_matrix): Take top line into account.
8571 (find_last_row_displaying_text): Ditto.
8572 (get_last_unchanged_at_beg_row): DItto.
8573 (try_window_id): Ditto.
8574 (compute_line_metrics): Ditto.
8575
8576 * dispnew.c (shift_glyph_matrix): Compute visible row height
8577 taking top line of window into account.
8578 (update_window): Update top line. If scrolling_window detects
8579 that all rows are equal, only set cursor.
8580 (update_window_line): Call after_update_window_line_hook if
8581 mode_line_p flag of rows has changed.
8582 (scrolling_window): Add parameter top_line_p. Return -1 if
8583 all rows are equal.
8584 (mode_line_string): Add parameter mode_line_p. Handle strings
8585 in top lines.
8586
8587 * dispextern.h (MATRIX_TOP_LINE_ROW): New.
8588 (MATRIX_FIRST_TEXT_ROW): New.
8589 (MATRIX_ROW_PARTIALLY_VISIBLE_P): Use row's visible_height.
8590 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_TOP_P): New.
8591 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_BOTTOM_P): New.
8592 (MATRIX_TOP_LINE_HEIGHT): New.
8593 (CURRENT_MODE_LINE_HEIGHT): Use estimate_mode_line_height.
8594 (CURRENT_TOP_LINE_HEIGHT): New.
8595 (DESIRED_TOP_LINE_HEIGHT): New.
8596 (WINDOW_DISPLAY_TOP_LINE_HEIGHT): New.
8597 (WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE): Replaces
8598 WINDOW_DISPLAY_TEXT_AREA_PIXEL_HEIGHT.
8599 (WINDOW_DISPLAY_TEXT_HEIGHT): New.
8600
8601 * xterm.c (x_after_update_window_line): Don't draw bitmaps for top
8602 lines.
8603 (x_draw_row_bitmaps): Take top line into account when clearing
8604 bitmap area.
8605 (x_estimate_mode_line_height): Replacement for
8606 x_frame_mode_line_height.
8607 (x_get_glyph_string_clip_rect): Take top line into account.
8608 (x_clear_end_of_line): Ditto.
8609 (note_mode_line_highlight): Add parameter mode_line_p. Handle
8610 top lines.
8611 (note_mouse_highlight): Call note_mode_line_highlight for top lines.
8612 (x_erase_phys_cursor): Take top line into account.
8613
8614 * xdisp.c (window_box_height): Subtract top line height if
8615 window wants a top line.
8616 (display_mode_lines): New.
8617 (redisplay_window): Call it.
8618 (display_mode_line): Add parameters face_id and format.
8619
8620 * dispextern.h (CURRENT_TOP_LINE_HEIGHT): New.
8621 (MATRIX_TOP_LINE_HEIGHT): New.
8622
8623 * xterm.c (x_frame_mode_line_height): Add parameter face_id.
8624
8625 * term.c (estimate_mode_line_height): Renamed from
8626 frame_mode_line_height. Add parameter face_id.
8627 (estimate_mode_line_height_hook): Renamed from
8628 frame_mode_line_height_hook.
8629 (produce_special_glyphs_hook): Removed.
8630 (produce_glyphs_hook): Removed.
8631
86321999-06-23 Gerd Moellmann <gerd@gnu.org>
8633
8634 * dispextern.h (WINDOW_WANTS_TOP_LINE_P): New.
8635 (struct glyph_row): Add mode_line_p.
8636
8637 * xfaces.c (realize_basic_faces): Realize face `top-line'.
8638 (Qtop_line): New.
8639 (syms_of_xfaces): Initialize Qtop_line.
8640
8641 * dispextern.h (TOP_LINE_FACE_ID): New.
8642
8643 * buffer.c (init_buffer_once): Set default for
8644 top_line_format to nil.
8645 (init_buffer_once): Init top_line_format.
8646 (default-top-line-format): New.
8647 (top-line-format): New buffer-local variable.
8648
8649 * buffer.h: Add top_line_format.
8650
8651 * xdisp.c (overlay_arrow_changed_p): Removed because not used.
8652
86531999-06-17 Dave Love <fx@gnu.org>
8654
8655 * xfns.c: Move the PNG section before the JPEG one to avoid
8656 problems surrounding setjmp.h/png.h on GNU/Linux.
427ec082 8657
26901792
DL
86581999-06-17 Gerd Moellmann <gerd@gnu.org>
8659
8660 * xfns.c (x_kill_gs_process): Don't free colors.
8661
86621999-06-17 Dave Love <fx@gnu.org>
8663
8664 * s/gnu-linux.h: Zap spurious ~.
8665
86661999-06-16 Gerd Moellmann <gerd@gnu.org>
8667
8668 * xfns.c (gif_load): Improve multi-image support.
8669
86701999-06-15 Gerd Moellmann <gerd@gnu.org>
8671
8672 * xfns.c (gif_load): Support multi-image files.
8673
8674 * Makefile.in (LIBGIF): Use libungif.
8675
8676 * configure.in (HAVE_GIF): Use libungif instead of libgif
8677 because the former doesn't contain patented compression code.
8678
8679 * xdisp.c (compute_window_start_on_continuation_line): Don't
8680 do it if line start is too far away from window start.
8681
86821999-06-14 Gerd Moellmann <gerd@gnu.org>
8683
8684 * buffer.c (init_buffer_once): Set buffer_local_flags for
8685 scroll_*_aggressively.
8686 (syms_of_buffer): Add DEFVAR_PER_BUFFER for scroll-*-aggressively.
8687 (init_buffer_once): Set defaults for these variables.
8688 (syms_of_buffer): Add default-scroll-*-aggressively.
8689
8690 * buffer.h (scroll_up_aggressively): New.
8691 (scroll_down_aggressively): New.
8692
8693 * Makefile.in (LIBPNG): Add -lz -lm in case we're linking with
8694 a static PNG library.
8695
8696 * configure.in (HAVE_PNG): Add -lz -lm when checking for PNG lib
8697 in case it's a static library.
8698
8699 * Makefile.in (ctagsfiles): Split so that files starting
8700 with an `x' are found before files starting with `w32'.
8701 (ctagsfiles1): New.
8702 (ctagsfiles2): New.
8703 (TAGS): Use ctagsfiles[12] instead of ctagsfiles.
8704
8705 * xdisp.c (compute_window_start_on_continuation_line): New.
8706 (redisplay_window): Use it.
8707 (INFINITY): New.
8708 (reseat_to_string): Use it.
8709 (hscroll_window_tree): Ditto.
8710 (compute_window_start_on_continuation_line): Ditto.
8711 (redisplay_window): Don't force display with a new window start.
8712
87131999-06-06 Gerd Moellmann <gerd@gnu.org>
8714
8715 * xfns.c (x_report_frame_params): Don't report `outer-window-id'
8716 if widget not present.
8717
8718 * xdisp.c (prepare_menu_bars): Ignore tooltip frame.
8719
87201999-06-04 Gerd Moellmann <gerd@gnu.org>
8721
8722 * xfaces.c (recompute_basic_faces)[GLYPH_DEBUG]: Check return
8723 value of realize_basic_faces.
8724 (load_face_font_or_fontset): Store full font name in face.
8725 (realize_default_face): Use full font name.
8726
26901792
DL
8727 * xterm.c (x_produce_glyphs): Set member char_to_display.
8728 (x_append_glyph): Store char_to_display in glyphs.
8729
8730 * dispextern.h (struct it): Add char_to_display.
8731
8732 * xfns.c (x_set_font): Don't call face-set-after-frame-default
8733 if faces haven't been initialized.
8734 (Fx_create_frame): Call face-set-after-frame-default after
8735 faces have been initialized, and widget has been created.
8736
8737 * puresize.h (BASE_PURESIZE): Increased.
8738
87391999-06-01 Gerd Moellmann <gerd@gnu.org>
8740
8741 * xfaces.c (set_lface_from_font_name): Add parameter force_p.
8742 (Finternal_set_lisp_face_attribute): If frame is t when
8743 :font attribute is set, use the selected frame.
8744 (clear_face_cache): Add parameter clear_fonts_p.
8745 (Fclear_face_cache): Add optional parameter thorougly.
8746
8747 * xfaces.c (face_numeric_value): Return -1 if symbol is not
8748 in table.
8749 (Fclear_face_cache): New.
8750 (choose_face_fontset_font): If fontset doesn't contain font
8751 pattern for the given charset, use CHARSET_ASCII.
8752 (Finternal_set_lisp_face_attribute): Fix handling of nil
8753 stipple attribute.
8754 (Finternal_set_lisp_face_attribute): Fix handling of changing
8755 font-related face attributes of the default face.
8756 (set_lface_from_font_name): Set only attributes that aren't
8757 specified.
8758
87591999-05-31 Gerd Moellmann <gerd@gnu.org>
8760
8761 * xfaces.c (SCALABLE_FONTS): Define this to enable scalable
8762 font support.
8763 (Vscalable_fonts_allowed) [SCALABLE_FONTS]: New.
8764 (x_face_list_fonts): Add parameter scalable_fonts_p. Handle
8765 scalable fonts depending on the setting of SCALABLE_FONTS.
8766 (first_font_matching): List more than one font to find the
8767 first non-scalable matching font.
8768 (sorted_font_list): Let x_face_list_fonts return scalable fonts
8769 depending on SCALABLE_FONTS.
8770 (better_font_p): New parameter compare_pt_p. If zero, don't
8771 compare point sizes of fonts.
8772 (exact_face_match_p) [SCALABLE_FONTS]: New.
8773 (build_scalable_font_name) [SCALABLE_FONTS]: New.
8774 (may_use_scalable_font_p) [SCALABLE_FONTS]: New.
8775 (best_matching_font) [SCALABLE_FONTS]: Handle scalable fonts.
8776 (syms_of_xfaces): Add scalable-fonts-allowed.
8777
87781999-05-26 Gerd Moellmann <gerd@gnu.org>
8779
8780 * xfns.c (png_load): Let PNG lib handle gamma. Construct
8781 mask only if image contains simple transparency information.
8782 Otherwise, combine image with frame background color.
8783
8784 * configure.in (--with-png, HAVE_PNG): New.
8785
8786 * config.in (HAVE_PNG): New.
8787
8788 * Makefile.in: Add PNG library.
8789
8790 * xfns.c: Add PNG support.
8791
87921999-05-25 Gerd Moellmann <gerd@gnu.org>
8793
8794 * xdisp.c (init_xdisp): Initialize echo_area_message and
8795 previous_echo_area_message to nil.
8796
8797 * keyboard.c (read_char): Rename local variable echo_area_message
8798 because it shadows the global one.
8799
88001999-05-05 Gerd Moellmann <gerd@gnu.org>
8801
8802 * xterm.c (note_mode_line_highlight): Restructured.
8803
8804 * window.c (coordinates_in_window): Handle windows that don't have
8805 a mode line because their buffer's mode-line-format is nil.
8806 Recognize the mode line under x positions that correspond to
8807 flags areas and left scroll bar.
8808
88091999-05-02 Dave Love <fx@gnu.org>
8810
8811 * xterm.c (note_mouse_highlight): Separate help-echo processing
8812 from check on mouse-face so that it works generally.
8813
88141999-04-21 Gerd Moellmann <gerd@gnu.org>
8815
8816 * sound.c (Fplay_sound): Run hook play-sound-hook.
8817 (Qplay_sound_hook): New.
8818
88191999-04-20 Gerd Moellmann <gerd@gnu.org>
8820
8821 * xdisp.c (update_echo_area): Handle echo_area_message.
8822
88231999-04-19 Gerd Moellmann <gerd@gnu.org>
8824
8825 * editfns.c (Fmessage): Use message3.
8826
8827 * print.c (printchar): Set echo_area_message to nil.
8828 (strout): Ditto.
8829
8830 * minibuf.c (read_minibuf): Reset echo message strings to nil.
8831 (Fminibuffer_completion_help): Ditto.
8832
8833 * keyboard.c (cmd_error_internal): Set echo_areA_message.
8834 (command_loop_1): Test echo_areA_message.
8835 (read_char): Ditto.
8836 (record_menu_key): Set echo_area_message to nil.
8837 (Fexecute_extended_command): Test echo_area_message.
8838 (Fexecute_extended_command): Handle echo_area_message.
8839
8840 * fileio.c (Fdo_auto_save): Handle the case that echo_area_message
8841 is set.
8842
8843 * editfns.c (Fcurrent_message): If echo_area_message is set,
8844 return a substring of that string.
8845
8846 * dispnew.c (direct_output_for_insert): Test echo_area_message
8847 in addition to echo_area_glyphs.
8848 (set_window_cursor_after_update): Ditto.
8849 (update_frame_1): Ditto.
8850
8851 * alloc.c (Fgarbage_collect): Use message3_nolog to display
8852 old Lisp message string.
8853
8854 * xdisp.c (echo_area_message): New.
8855 (previous_echo_area_message): New.
8856 (syms_of_xdisp): Initialize and staticpro new variables.
8857 (echo_area_display): Display echo_area_message if set.
8858 (message2_nolog): Set echo_area_message and
8859 previous_echo_area_message.
8860 (echo_area_display): Set previous_echo_area_message.
8861 (redisplay_internal): Display echo area if echo_area_message
8862 or previous_echo_area_message are set.
8863 (redisplay_preserve_echo_area): Test/set echo_area_message and
8864 previous_echo_area_message.
8865 (redisplay_window): Test echo_area_message.
8866 (message3_nolog): New.
8867 (message3): New.
8868
8869 * editfns.c (Fformat): Add text properties to the result string
8870 from properties of the format string and properties of string
8871 arguments.
8872
8873 * textprop.c (text_property_list): New.
8874 (add_text_properties_from_list): New.
8875 (extend_property_ranges): New.
8876
88771999-03-29 Gerd Moellmann <gerd@gnu.org>
8878
8879 * xfaces.c (Qraised, Qsunken, QCshadow): Removed.
8880 (QCline_width, QCstyle, Qpressed_button, Qreleased_button): New.
8881 Use these symbols for the box face attribute instead of the
8882 removed ones.
8883
88841999-03-12 Gerd Moellmann <gerd@gnu.org>
8885
8886 * xfaces.c (realize_tty_face): Don't set alt_char_p of face.
8887 Correct wrong test for slant.
8888
88891999-03-10 Gerd Moellmann <gerd@gnu.org>
8890
8891 * xfaces.c: Use `unspecified' for unspecified face attributes,
8892 use t and nil for on/off.
8893
88941999-03-06 Gerd Moellmann <gerd@gnu.org>
8895
8896 * buffer.c (syms_of_buffer): Extend doc string of
8897 mode-line-format.
8898
8899 * xfaces.c (x_face_list_fonts): New parameter try_alternatives_p.
8900 (first_font_matching): New.
8901 (set_lface_from_font_name): Use it if font name is a pattern.
8902 (font_field_wildcard_p): Removed.
8903
8904 * dispnew.c (shift_glyph_matrix): Add `window' parameter.
8905 Recompute visible height of rows.
8906
8907 * xterm.c (note_mouse_highlight): Reorder code for help-echo.
8908 Don't accept non-strings for help-echo from overlays.
8909
89101999-03-04 Dave Love <fx@gnu.org>
8911
8912 * xterm.c (note_mouse_highlight): Check overlays for help-text
8913 property.
8914 (XTread_socket): Fix compiler warning.
427ec082 8915
26901792
DL
89161999-03-05 Gerd Moellmann <gerd@gnu.org>
8917
427ec082 8918 * xterm.c (note_mouse_highlight): Don't restrict number of
26901792
DL
8919 overlay to 10. Call overlays_at so that it doesn't try to
8920 extend the vector.
8921
8922 * xdisp.c (compute_line_metrics): Compute glyph row's visible
8923 height.
8924
8925 * dispnew.c (row_equal_p): Compare visible row height, only.
8926 (update_text_area): Draw whole line if visible heights of
8927 rows differ.
8928 (update_window_line): Call after_update_window_line_hook
8929 if visible row height has changed.
8930
8931 * dispextern.h (MATRIX_ROW_VISIBLE_HEIGHT): Removed.
8932 (struct glyph_row): New member visible_height.
8933
8934 * xfaces.c (font_field_wildcard_p): New.
8935 (set_lface_from_font_name): Remove parameter force_p. Accept
8936 font names containing wildcards.
8937
89381999-03-04 Gerd Moellmann <gerd@gnu.org>
8939
8940 * xterm.c (x_after_update_window_line): Clear internal border
8941 when windows_or_buffers_changed.
8942
8943 * dispextern.h (WINDOW_WANTS_MODELINE_P): Return zero if window's
8944 buffer has a nil mode_line_format.
8945
89461999-03-03 Gerd Moellmann <gerd@gnu.org>
8947
8948 * xterm.c (x_setup_relief_colors): Use either background color
8949 or specified color.
8950
8951 * xfaces.c (realize_x_face): Set face->use_box_color_for_shadows_p.
8952
8953 * dispextern.h (struct face): Add use_box_color_for_shadows_p.
8954
8955 * xterm.c (x_draw_box_rect): New.
8956 (x_draw_glyph_string_box): Renamed from
8957 x_draw_glyph_string_relief. Call x_draw_box_rect.
8958
8959 * xfns.c (QCrelief): New.
8960 (syms_of_xfns): Initialize it.
8961
8962 * dispextern.h (struct glyph): Rename left_shadow_p to
8963 left_box_line_p, right_shadow_p to right_box_line_p.
8964 (MAX_RELIEF_THICKNESS): Removed.
8965 (struct it): Rename members having `relief' in their names
8966 to contain `box' instead.
8967
8968 * xfaces.c (realize_x_face): Handle new box attribute values.
8969 (QCrelief, Qbox): Removed.
8970 (QCshadow, QCcolor, Qraised, Qsunken): New.
8971 (syms_of_xfaces): Initialize new symbols.
8972
89731999-03-02 Gerd Moellmann <gerd@gnu.org>
8974
8975 * dispextern.h (LFACE_RELIEF_INDEX): Removed.
8976
8977 * xfaces.c (LFACE_RELIEF): Removed.
8978 (merge_face_vector_with_property): Remove handling of `:relief'.
8979 (Finternal_set_lisp_face_attribute): Ditto.
8980 (Finternal_set_lisp_face_attribute_from_resource): Ditto.
8981 (Finternal_get_lisp_face_attribute): Ditto.
8982 (realize_default_face): Ditto.
8983 (lface_hash): Don't compute hash from relief.
8984
8985 * dispextern.h (struct face): Replace member `relief' by
8986 `box_line_width'. Add member `box'.
8987 (face_box_type): New.
8988
8989 * xterm.c (x_produce_glyphs): If face has overline, add overline
8990 thickness + 1 to ascent.
8991
89921999-03-01 Gerd Moellmann <gerd@gnu.org>
8993
8994 * xterm.c (x_draw_glyph_string): Draw underline, overline,
8995 strike-through, and boxes.
8996 (x_draw_glyph_string_underline): Removed.
8997
8998 * xfaces.c (QCoverline, QCstrike_through, QCbox): New.
8999 (Qoverline, Qstrike_through, Qbox): New.
9000 (syms_of_xfaces): Define these symbols.
9001 (check_lface_attrs): Add checks for overline, strike-through,
9002 and box.
9003 (Finternal_set_lisp_face_attribute): Set new attributes.
9004 (LFACE_OVERLINE, LFACE_STRIKE_THROUGH, LFACE_BOX): New.
9005 (load_color): Handle new attributes.
9006 (realize_x_face): Ditto.
9007 (merge_face_vector_with_property): Ditto.
9008 (free_face_colors): Ditto.
9009 (Finternal_set_lisp_face_attribute_from_resource): Ditto.
9010 (Finternal_get_lisp_face_attribute): Ditto.
9011 (Finternal_lisp_face_attribute_values): Ditto.
9012
9013 * dispextern.h (lface_attribute_index): Add enumerators for
9014 overstrike, strike-through, and box.
9015 (struct face): Add members for overline, strike-through, and
9016 box.
9017
90181999-02-17 Dave Love <fx@gnu.org>
9019
9020 * s/gnu-linux.h s/gnu.h s/irix5-0.h s/netbsd.h s/sco4.h s/sco5.h
9021 s/template.h (NARROWPROTO): Define on the basis of relevant X cf
9022 files.
9023
90241999-02-16 Gerd Moellmann <gerd@gnu.org>
9025
9026 * keyboard.c (toolbar_items): Call access_keymap with third
9027 parameter 1, so that we don't get inherited toolbar item
9028 definitions.
9029
9030 * xdisp.c (redisplay_internal): In optimization 1, don't decrement
9031 the window end vpos when in empty first line of window.
9032
90331999-02-15 Gerd Moellmann <gerd@gnu.org>
9034
9035 * xfaces.c (set_font_frame_param): New.
9036 (Finternal_set_lisp_face_attribute): Call it.
9037
9038Sun Feb 14 10:54:02 1999 Masatake Yamato <masata-y@is.aist-nara.ac.jp>
9039
9040 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
9041 Accept specifications of color for underline.
9042
90431999-02-13 Gerd Moellmann <gerd@gnu.org>
9044
9045 * xfaces.c (Finternal_set_lisp_face_attribute): If parameter
9046 `frame' is t, operate on face defaults for new frames. If it
9047 is nil, operate on the selected frame.
9048
90491999-02-12 Gerd Moellmann <gerd@gnu.org>
9050
9051 * dispnew.c (check_matrix_invariants): Put it in #if 0.
9052 (update_window): Put the call to check_matrix_invariants in #if 0.
9053
9054Sun Feb 7 09:58:49 1999 Masatake Yamato <masata-y@is.aist-nara.ac.jp>
9055
9056 * dispextern.h: Remove all else block of UNDERLINE_COLOR.
9057 Remove definition of UNDERLINE_COLOR.
9058
9059Mon Jan 4 04:43:41 1999 Masatake Yamato <masata-y@is.aist-nara.ac.jp>
9060
9061 * xfaces.c (free_face_colors): Free the color for underline.
9062
9063 * xterm.c (x_draw_glyph_string_underline): Set the color for underline
9064 to the GC.
9065
9066Sun Jan 3 08:41:10 1999 Masatake Yamato <masata-y@is.aist-nara.ac.jp>
9067
9068 * dispextern.h (UNDERLINE_COLOR): Defined.
9069 (struct face): Added two new members.
9070 underline_color, underline_defaulted_p.
9071
427ec082 9072 * xfaces.c (merge_face_vector_with_property):
26901792 9073 (check_lface_attrs): Accept the string value for underline.
427ec082 9074 (Finternal_set_lisp_face_attribute): Likewise.
26901792
DL
9075
9076 * xfaces.c (load_color): Change the last argument type to enum
9077 lface_attribute_index from int. And addec code for underling coloring.
9078 (load_face_colors): Pass LFACE_*_INDEX to load_color.
427ec082 9079
26901792
DL
90801999-02-12 Gerd Moellmann <gerd@gnu.org>
9081
9082 * xfns.c (Fx_image_header): Removed.
9083
90841999-02-07 Gerd Moellmann <gerd@gnu.org>
9085
9086 * xterm.c: Don't include <bitmaps/gray>.
9087 (x_term_init): Use gray_bitmap_width and gray_bitmap_height.
9088
9089 * xfns.c (Fx_image_header): Add missing `\n\'.
9090 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits): New.
9091
90921999-02-01 Gerd Moellmann <gerd@gnu.org>
9093
9094 * xterm.c (x_scroll_bar_create): Set background pixel from
9095 specified scroll bar color.
9096 (x_scroll_bar_set_handle): Use scroll bar foreground color.
9097
9098 * xfns.c (x_set_scroll_bar_foreground): Remove all scroll bars.
9099 (x_set_scroll_bar_background): Ditto.
9100
9101 * xterm.c (x_create_toolkit_scroll_bar): Set scroll bar colors.
9102
9103 * xfns.c (x_default_scroll_bar_color_parameter): New.
9104 (Fx_create_frame): Call it.
9105
91061999-01-31 Gerd Moellmann <gerd@gnu.org>
9107
9108 * xfns.c (Fx_create_frame): Initialize scroll bar pixel color
427ec082 9109 values in x_output structure.
26901792
DL
9110 (Qscroll_bar_foreground, Qscroll_bar_background): New.
9111 (syms_of_xfns): Initialize these symbols.
9112
9113 * xterm.h (struct x_output): Add scroll bar pixel colors.
9114
9115 * xfns.c (x_frame_parms): Add entries for scroll bar colors.
9116 (x_set_scroll_bar_foreground): New.
9117 (x_set_scroll_bar_background): New.
9118
26901792
DL
91191999-01-12 Gerd Moellmann <gerd@gnu.org>
9120
9121 * xdisp.c (handle_single_display_prop): New.
9122 (handle_display_prop): Call it.
9123 (handle_raise_prop): Removed.
9124 (handle_height_prop): Removed.
9125 (handle_space_width_prop): Removed.
9126 (handle_face_prop): Remove handling of raised text.
9127 (handle_display_prop): Do it here.
9128
9129 * dispextern.h (DISPLAY_PROP_IDX): Replaces GLYPH_PROP_IDX.
9130 (RAISE_PROP_IDX): Removed.
9131 (HEIGHT_PROP_IDX): Removed.
9132 (SPACE_WIDTH_PROP_IDX): Removed.
9133
9134 * xdisp.c (Qdisplay): Replaces Qglyph.
9135 (handle_display_prop): Formerly handle_glyph_prop.
9136
91371999-01-11 Gerd Moellmann <gerd@gnu.org>
9138
9139 * xdisp.c (reseat_to_string): Set position in display vector to -1.
9140 (handle_stop): Set position in display vector to -1. Don't
9141 check overlay strings when set up to deliver characters from a
9142 display vector.
9143 (set_iterator_to_next): At the end of a run of characters from a
9144 display vector, check whether the display vector display replaces
9145 the display of a character.
9146
91471999-01-05 Gerd Moellmann <gerd@gnu.org>
9148
9149 * xfaces.c (init_frame_faces): Don't realize faces if frame's
9150 X window hasn't been created yet.
9151
91521998-12-06 Gerd Moellmann <gerd@gnu.org>
9153
9154 * sound.c: New.
9155
91561998-12-04 Gerd Moellmann <gerd@gnu.org>
9157
9158 * config.in (HAVE_SOUND): New.
9159
9160 * emacs.c (main): Call syms_of_sound and init_sound.
9161
9162 * Makefile.in (obj): Add sound.o.
9163
9164 * configure.in: Add checks for machine/soundcard.h and sys/soundcard.h.
9165
9166 * config.in (HAVE_MACHINE_SOUNDCARD_H): New.
9167 (HAVE_SYS_SOUNDCARD_H): New.
9168
91691998-12-03 Gerd Moellmann <gerd@gnu.org>
9170
9171 * buffer.h (struct buffer): indicate_empty_lines renamed from
9172 indicate_zv_lines.
9173
9174 * buffer.c (indicate-empty-lines): Renamed from indicate_zv_lines.
9175 (default-indicate-zv-lines): Likewise.
9176
9177 * dispextern.h (struct glyph_row): Rename indicate_zv_line_p
9178 to indicate_empty_line_p.
9179
9180 * xdisp.c (reseat_at_next_visible_line_start): Reset method
9181 to next_element_from_buffer.
9182
9183 * frame.c (make_frame): Set n_current_toolbar_items to 0.
9184
9185 * xdisp.c (handle_face_prop): Allow symbols of the form `N+'
9186 and `N-'.
9187
9188 * xfns.c (xbm_scan): New.
9189 (xbm_read_hexint): Removed.
9190 (xbm_read_bitmap_file_data): Use xbm_scan.
9191
9192 * fileio.c (Finsert_file_contents): Prevent redisplay optimizations.
9193
91941998-12-02 Gerd Moellmann <gerd@gnu.org>
9195
9196 * xfns.c (xbm_read_hexint): New.
9197 (xbm_read_bitmap_file_data): New.
9198 (xbm_load_image_from_file): Call xbm_read_bitmap_file_data
9199 instead of XReadBitmapFileData.
9200
9201 * xdisp.c (handle_raise_prop): Compute voffset from current font.
9202
9203 * xfaces.c (face_with_height): New.
9204
9205 * xdisp.c (eval_handler): Renamed from eval_mode_handler.
9206 (eval_form): Renamed from eval_mode_element.
9207 (handle_face_prop): Use it.
9208 (Qheight): Replaces Qsmaller.
9209 (handle_height_prop): Replaces handle_smaller_prop.
427ec082 9210 (handle_face_prop): If iterator's font_height is not an
26901792
DL
9211 integer, evaluate it to get the font height to use.
9212
9213 * dispextern.h (HEIGHT_PROP_IDX): Replaces SMALLER_PROP_IDX.
9214 (struct it): Use `font_height' instead of `smaller'.
9215
92161998-12-01 Gerd Moellmann <gerd@gnu.org>
9217
9218 * xdisp.c (reseat_1): New.
9219 (reseat): Call it.
9220 (move_it_vertically_backward): Ditto.
9221 (redisplay_window): Don't abort when cursor not found in recenter.
9222
92231998-11-30 Gerd Moellmann <gerd@gnu.org>
9224
9225 * xdisp.c (reseat_at_next_visible_line_start): When not
9226 currently delivering display elements from the current buffer,
9227 restore buffer position first.
9228 (init_from_display_pos): Don't set IT's position from the
9229 position passed to this function.
9230
92311998-11-28 Gerd Moellmann <gerd@gnu.org>
9232
9233 * config.in (PROTO): Removed.
9234
9235 * xterm.h: Change PROTO to P_.
9236
92371998-11-26 Gerd Moellmann <gerd@gnu.org>
9238
9239 * xterm.c (take_vertical_position_into_account): New.
9240 (x_produce_image_glyph): Call it.
9241 (x_produce_stretch_glyph): Ditto.
9242 (x_produce_glyphs): Ditto.
9243 (x_fill_glyph_string): Adjust base line for glyph's voffset.
9244 (x_fill_composite_glyph_string): Ditto.
9245 (x_fill_image_glyph_string): Ditto.
9246 (x_fill_stretch_glyph_string): Ditto.
9247
9248 * xdisp.c (display_line): Always compute row height from
9249 max_ascent and max_descent.
9250
9251 * dispextern.h (struct glyph): Add voffset.
9252 (struct it): Replace height by descent, max_height by max_descent.
9253
9254 * xterm.c (x_append_glyph): Set voffset
9255 (x_append_stretch_glyph): Ditto.
9256 (x_produce_image_glyph): Ditto.
9257 (x_produce_glyphs): Take voffset into account.
9258 (x_produce_image_glyph): Ditto.
9259 (x_produce_stretch_glyph): Ditto.
9260
9261 * dispextern.h (struct it): Add voffset.
9262 * xdisp.c (push_it): Save voffset.
9263 (pop_it): Restore it.
9264
9265 * xdisp.c (it_props): Add entry for `raise'.
9266 (handle_raise_prop): New.
9267
9268 * dispextern.h (RAISE_PROP_IDX): New.
9269
9270 * xdisp.c (Qraise): New.
9271 (syms_of_xdisp): Define Qraised.
9272
9273 * xterm.c (x_scroll_bar_move): Clear to the left and right
9274 of toolkit scroll bars differently.
9275 (x_scroll_bar_move): Removed.
9276 (XTset_vertical_scroll_bar): Move code from x_scroll_bar_move here.
9277
9278 * dispextern.h: Make it compilable --with-x=no.
9279 * alloc.c: Ditto.
9280 * emacs.c: Ditto.
9281 * dispnew.c: Ditto.
9282 * keyboard.c: Ditto.
9283 * term.c: Ditto.
9284 * xdisp.c: Ditto.
9285 * xfaces.c: Ditto.
9286 * xfns.c: Ditto.
9287 * xmenu.c: Ditto.
9288
92891998-11-25 Gerd Moellmann <gerd@gnu.org>
9290
9291 * xterm.c (XTread_socket): Cancel help-echo when leaving frame.
9292
92931998-11-24 Gerd Moellmann <gerd@gnu.org>
9294
9295 * xterm.c (x_set_toolkit_scroll_bar_thumb): When dragging,
9296 update slider size, only.
9297 (xm_scroll_callback): Set dragging member of the scroll bar.
9298 (xt_action_hook): Reset last_scroll_bar_part.
9299 (XTredeem_scroll_bar): Reset bar->dragging to nil.
9300
26901792
DL
9301 * xfns.c (Fx_hide_busy_cursor): Don't try to hide busy cursor
9302 window on newly created frames that don't have one.
9303
93041998-11-23 Gerd Moellmann <gerd@gnu.org>
9305
9306 * xdisp.c (restore_overlay_strings): Removed.
9307 (restore_dpvec): Removed.
9308 (init_from_display_pos): Inline both functions above.
9309
9310 * xfns.c (IMAGE_NON_NEGATIVE_INTEGER_VALUE): New.
9311 (parse_image_spec): Handle it.
9312 (xbm_format): Use it.
9313 (xpm_format): Ditto.
9314 (pbm_format): Ditto.
9315 (jpeg_format): Ditto.
9316 (tiff_format): Ditto.
9317 (gif_format): Ditto.
9318 (gs_format): Ditto.
9319
9320 * xdisp.c (set_window_cursor): Removed.
9321 (redisplay_internal): Case cursor motion in cursor line of
9322 selected window; use set_cursor_from_row.
9323
93241998-11-22 Gerd Moellmann <gerd@gnu.org>
9325
9326 * widget.c (EmacsFrameSetCharSize): Take widget's border width
9327 into account.
9328
93291998-11-21 Gerd Moellmann <gerd@gnu.org>
9330
9331 * xterm.c (expose_frame): Redraw menu bar window.
9332
9333 * xdisp.c (display_menu_bar): Record hpos instead of x-position
9334 in menu item.
9335
9336 * dispnew.c (change_frame_size_1): Use FRAME_TOP_MARGIN instead
9337 of FRAME_TOOLBAR_LINES. Use `f' instead of `frame'.
9338
9339 * widget.c (set_frame_size): Use FRAME_SCROLL_BAR_COLS
9340 to determine vertical_scroll_bar_extra.
9341 (EmacsFrameSetCharSize): Ditto.
9342 * xfns.c (x_figure_window_size): Ditto.
9343
9344 * xterm.c (x_draw_row_bitmaps): Draw in `bitmap-area' face.
9345 (x_draw_bitmap): Ditto.
9346
9347 * dispextern.h (face_id): New id BITMAP_AREA_FACE_ID.
9348 * xfaces.c (realize_basic_faces): Realize it.
9349
93501998-11-20 Gerd Moellmann <gerd@gnu.org>
9351
9352 * xmenu.c (xmenu_show): Add workaround for remaining button grab
427ec082 9353 under LessTif Use the widget of the frame as parent for the
26901792
DL
9354 menu, again.
9355
93561998-11-19 Gerd Moellmann <gerd@gnu.org>
9357
9358 * xterm.c (XTread_socket): Inhibit busy cursor for EnterNotify.
9359 When EnterNotify, don't generate a mouse movement event if
9360 notification is from a busy-cursor child window.
9361
9362 * xterm.h (struct x_output): Add busy_window, remove cursor.
9363
9364 * xfns.c (Fx_show_busy_cursor): Formerly Fx_display_busy_cursor.
9365 Use a transparent window to display the busy-cursor.
9366 (Fx_hide_busy_cursor): Formerly Fx_undisplay_busy_cursor.
9367
93681998-11-17 Gerd Moellmann <gerd@gnu.org>
9369
9370 * xdisp.c (check_window_end): New, for debugging.
9371 (CHECK_WINDOW_END): New.
9372 (try_window_id): Use it.
9373
9374 * xterm.c (process_expose_from_menu): Return int.
9375
9376 * keyboard.c (kbd_buffer_get_event): Set flag to prevent recording
9377 TOOLBAR_EVENT events in last_nonmenu_event.
9378
93791998-11-16 Gerd Moellmann <gerd@gnu.org>
9380
9381 * xdisp.c (redisplay_window): If windows_or_buffers_changed,
9382 window end isn't reliable, so set window_end_valid to nil.
9383 (redisplay_internal): If overlay arrow has changed, set
9384 windows_or_buffers_changed to redisplay thoroughly.
9385
9386 * dispnew.c (adjust_glyph_matrix): Invalidate window end, if
9387 necessary.
9388
9389 * xfns.c (file_dialog_cb): New.
9390 (Fx_file_dialog): New.
9391 * fileio.c (Fread_file_name): Call it.
9392
427ec082 9393 * xrdb.c (x_load_resources): Add default resoures for file
26901792
DL
9394 selection dialog.
9395
93961998-11-14 Gerd Moellmann <gerd@gnu.org>
9397
9398 * xterm.c (note_mouse_highlight): Don't highlight when popup
9399 is active.
9400
26901792
DL
9401 * keyboard.c (timer_check): Inhibit busy cursor around calls to
9402 timer-event-handler. This busy cursor tends to be anoying if
9403 fontifying stealthily.
9404
9405 * dispnew.c (direct_output_for_insert): Give up if current row
9406 contains trailing whitespace.
9407
94081998-11-13 Gerd Moellmann <gerd@gnu.org>
9409
9410 * dispextern.h (prop_idx): Add FONTIFIED_PROP_IDX.
9411
9412 * xdisp.c (handle_fontified_prop): New.
9413 (Vfontification_functions): New.
9414 (Qfontification_functions): New.
9415 (it_props): Add handle_fontified_prop.
9416
94171998-11-12 Gerd Moellmann <gerd@gnu.org>
9418
9419 * xmenu.c (xmenu_show): Use the frame's edit_widget as parent.
9420 Otherwise, under LessTif, after the popup has gone, all button
9421 press events come in for the frame's widget, and release events
9422 come in for the edit_widget.
9423 * xterm.c (XTread_socket): Remove workaround for that problem.
9424 (x_set_toolkit_scroll_bar_thumb): Add workaround for LessTif
9425 XmScrollBarSetValues.
9426 (SET_SAVED_MENU_EVENT): Give it statement form.
9427
26901792
DL
9428 * xfaces.c (display_message): If waiting_for_input, don't display
9429 the message.
9430
9431 * window.c (scroll_command): If not acting on current_buffer,
9432 make redisplay consider all windows.
9433
9434 * xfns.c (Fx_hide_tip): Return t if tooltip was open.
9435
9436 * xdisp.c (handle_glyph_prop): Set it->object for images to
9437 the object having the glyph property.
9438
9439 * xterm.c (x_draw_row_bitmaps): Don't draw if row is completely
9440 invisible.
9441
94421998-11-11 Gerd Moellmann <gerd@gnu.org>
9443
9444 * xterm.h (struct x_display_info): Add gray pixmap. * xterm.c
9445 (x_term_init): Create the gray pixmap.
9446 (x_setup_relief_color): Use it.
9447 (x_get_glyph_string_clip_rect): Draw a toolbar window over the
9448 internal border at the top of a frame.
9449 (x_init_glyph_string): Likewise.
427ec082 9450 (x_draw_glyph_string_relief): Correct right x by 1 pixel for
26901792
DL
9451 full-width lines.
9452 (XTflash): Don't flash the toolbar window.
9453
9454 * xterm.c (XTread_socket): Workaround for LessTif popup menus
9455 in case of ButtonPress events.
9456
94571998-11-10 Gerd Moellmann <gerd@gnu.org>
9458
9459 * xrdb.c (x_load_resources): Add grey background colors as
9460 defaults for menus, scroll bars, and dialogs.
9461
9462 * insdel.c (prepare_to_modify_buffer): Move setting
9463 windows_or_buffers_changed from modify_region here.
9464
9465 * xfns.c (Fx_show_tip): Inhibit redisplay.
9466 (Fx_hide_tip): Ditto.
9467 (Fx_image_header): New.
9468
94691998-11-09 Gerd Moellmann <gerd@gnu.org>
9470
9471 * dispnew.c (clear_window_matrices): Set window_end_valid to nil
9472 when clearing current window matrices.
9473
94741998-11-08 Gerd Moellmann <gerd@gnu.org>
9475
9476 * xdisp.c (handle_glyph_prop): Don't set an iterator's buffer
9477 position from a string position. Use the right end position
9478 if the property spans a whole overlay string.
9479
94801998-11-07 Gerd Moellmann <gerd@gnu.org>
9481
9482 * xmenu.c (menubar_selection_callback): Remove workaround for
9483 Lesstif not calling XmNpopdownCallback because it doesn't
9484 handle the case where users don't select any menu item.
9485
26901792
DL
9486 * insdel.c (modify_region): Set windows_or_buffers_changed.
9487
9488 * buffer.c (set_buffer_internal): Don't set
9489 windows_or_buffers_changed.
9490
26901792
DL
9491 * xmenu.c (HAVE_BOXES): Define if USE_X_TOOLKIT.
9492
26901792
DL
9493 * xmenu.c (menubar_selection_callback): Add workaround for
9494 Lesstif not calling XmNpopdownCallback.
9495
9496 * xdisp.c (eval_mode_element): New.
9497 (eval_mode_handler): New.
9498 (display_mode_element): Use eval_mode_element.
9499
9500 * xdisp.c (display_mode_element): Allow `(:eval FORM)'.
9501 Remove code looking at text props of default value.
9502
9503 * xmenu.c (HAVE_BOXES): Define if using Lucid menus.
9504
26901792
DL
95051998-11-06 Gerd Moellmann <gerd@gnu.org>
9506
427ec082 9507 * xmenu.c (single_submenu): Set button_type of menu to
26901792
DL
9508 BUTTON_TYPE_NONE.
9509 (single_submenu): Likewise for panes and menu items.
9510 (set_frame_menubar): Set button_type of menu bar to none.
9511 (xmenu_show): Likewise.
9512 (single_submenu): Set widget values selected slot.
9513 (xmenu_show): Likewise.
9514
26901792
DL
9515 * xmenu.c (push_menu_item): Add parameters `type' and
9516 `selected'. Store it in menu_items.
9517 (MENU_ITEMS_ITEM_TYPE): New.
9518 (MENU_ITEMS_ITEM_SELECTED): New.
9519 (MENU_ITEMS_ITEM_LENGTH): Increase by two.
9520
9521 * xfns.c (clear_image_cache): Get the current time, before
9522 doing anything.
9523 (cache_image): Set prev pointer of next image.
9524 (clear_image_cache): Clear current matrices if any image was
9525 freed.
9526
9527 * xterm.c (XTread_socket): Set inhibit_busy_cursor.
9528
9529 * xfns.c (x_set_cursor): New.
9530 (Fx_display_busy_cursor): New.
9531 (Fx_undisplay_busy_cursor): New.
9532
9533 * xterm.h (struct x_output): Add busy_cursor.
9534
9535 * xfns.c (Vx_busy_pointer_shape): New.
9536 (x_set_mouse_color): Create busy cursor.
9537
9538 * process.c (wait_reading_process_input): Show and hide busy
9539 cursor.
9540
9541 * keyboard.c (command_loop_1): Display busy cursor.
9542
9543 * eval.c (Fsignal): Hide busy cursor.
9544
9545 * buffer.c (set_buffer_internal): Don't set
9546 windows_or_buffers_changed.
9547
9548 * xterm.c (redo_mouse_highlight): New.
9549
95501998-11-04 Gerd Moellmann <gerd@gnu.org>
9551
26901792
DL
9552 * xfns.c (x_create_x_image_and_pixmap): Add depth parameter.
9553 (x_build_heuritic_mask): New.
9554 (lookup_image): Call it.
9555
9556 * xterm.c (note_toolbar_highlight): Always set up help_echo.
9557 (previous_help_echo): New.
9558 (XTread_socket): Generate help event with nil message when
9559 leaving a region with help-echo.
9560 (note_mouse_highlight): Handle `help-echo' over text.
9561 (XTread_socket): Dispatch VisibilityNotify, CirculateNotify,
9562 CirculateRequest.
9563 (clear_mouse_face): Don't clear if tooltip is shown.
9564 (XTread_socket): Redo mouse-highlight after tooltip is gone.
9565 Avoid SET_FRAME_GARBAGED when tooltip is mapped.
9566
9567 * keyboard.c (Vshow_help_function): New.
9568 (read_char): Use it.
9569
95701998-11-03 Gerd Moellmann <gerd@gnu.org>
9571
9572 * xfns.c (x_create_tip_frame): New.
9573 (Fx_show_tip): New.
9574 (Fx_hide_tip): New.
9575
427ec082 9576 * xterm.c (x_destroy_window): Handle case that we don't have
26901792
DL
9577 a widget.
9578
9579 * dispextern.h (struct glyph_row): Rename no_marginal_areas_p
9580 to full_width_p. Add internal_border_p.
9581
95821998-11-02 Gerd Moellmann <gerd@gnu.org>
9583
9584 * xterm.c (note_mode_line_highlight): Check the charpos of
9585 the glyph under the mouse pointer before accessing text
9586 properties at that position.
9587
95881998-11-01 Gerd Moellmann <gerd@gnu.org>
9589
9590 * xterm.c (x_draw_image_relief): Handle toolbar_button_relief.
9591
9592 * xdisp.c (auto-raise-toolbar-buttons): New.
9593 (build_desired_toolbar_string): Handle the flag.
9594 (toolbar-button-margin): New.
9595 (toolbar-button-relief): New.
9596 (build_desired_toolbar_string): Use margin and relief.
9597
9598 * xterm.c (x_set_toolkit_scroll_bar_thumb): Remove workaround
9599 for FreeBSD.
9600 (note_mode_line_highlight): New.
9601 (note_mouse_highlight): Call it.
9602
96031998-10-31 Gerd Moellmann <gerd@gnu.org>
9604
9605 * s/freebsd.h (NARROWPROTO): New.
9606
9607 * xdisp.c (display_string): New parameter face_string.
9608 (display_mode_element): When displaying a symbol with a string
9609 value, use text properties from the symbol's default value, maybe.
9610
9611 * xrdb.c (x_load_resources): Add font defaults for menus and
9612 dialogs.
9613
96141998-10-30 Gerd Moellmann <gerd@gnu.org>
9615
9616 * xfns.c (Fx_create_frame): Try 12pt Courier font first.
9617
96181998-10-29 Gerd Moellmann <gerd@gnu.org>
9619
9620 * xterm.c (x_produce_glyphs): Fix bug causing glyphs to be
9621 produced for characters with codes < 32 under certain
9622 circumstances.
9623
9624 * xdisp.c (redisplay_window): Handle values of PT in front
9625 of invisible, intangible text.
427ec082 9626 (try_window_id): Set overlay_arrow_seen to zero before
26901792
DL
9627 displaying lines.
9628 (display_mode_element): Assign to glyphs written for a mode
9629 line spec `%x' as object the Lisp format string, as position
9630 the position of the `%' in that string.
9631 (display_string): If displaying a C string, optionally get
9632 the face to use from a Lisp string.
9633
9634 * xterm.c (expose_window_tree): Include mode line height.
9635
9636 * xfns.c (Fx_create_frame): Add toolbar height to frame height.
9637
96381998-10-27 Gerd Moellmann <gerd@gnu.org>
9639
9640 * xterm.c (note_mouse_highlight): Change mouse pointer shape
9641 over mode line.
9642
96431998-10-26 Gerd Moellmann <gerd@gnu.org>
9644
9645 * window.c (coordinates_in_window): Use CURRENT_MODE_LINE_HEIGHT.
9646
9647 * xdisp.c (redisplay_window): If mode line height has changed,
9648 arrange for a thorough immediate redisplay using the correct mode
9649 line height.
9650 (window_box_height): Use CURRENT_MODE_LINE_HEIGHT.
9651
9652 * dispextern.h (MATRIX_MODE_LINE_HEIGHT): New.
9653 (CURRENT_MODE_LINE_HEIGHT): New.
9654 (DESIRED_MODE_LINE_HEIGHT): New.
9655
9656 * keyboard.c (make_lispy_event): Add string and string position
9657 info to mouse-click events.
9658 (read_key_sequence): Handle `local-map' property of mode line
9659 strings.
9660
9661 * keyboard.h (POSN_STRING): New.
9662
96631998-10-25 Gerd Moellmann <gerd@gnu.org>
9664
9665 * dispnew.c (mode_line_string): Mew.
9666
9667 * xterm.c (xt_action_hook): New.
9668 (x_create_toolkit_scroll_bar): Add action hook.
9669 (xm_scroll_callback): Implement dragging.
9670
9671 * keyboard.c (Qend_scroll): New.
9672 (scroll_bar_parts): Add it.
9673
9674 * termhooks.h (scroll_bar_end_scroll): New.
9675
9676 * xterm.c (XTread_socket): Bug fix.
9677
96781998-10-24 Gerd Moellmann <gerd@gnu.org>
9679
9680 * xdisp.c (redisplay_window): Finish scroll bars after
9681 redisplaying toolbar.
9682
9683 * keyboard.c (scroll_bar_parts): Add Qtop and Qbottom.
9684 (syms_of_keyboard): Add Qbottom.
9685
9686 * termhooks.h (scroll_bar_to_top): New.
9687 (scroll_bar_to_bottom): New.
9688
9689 * xdisp.c (redisplay_window): Always resize toolbar window if
9690 auto_resize_toolbar_p is non-zero.
9691 (auto_resize_toolbar_p): Renamed from auto_resize_toolbar.
9692 (window_box): New.
9693 (window_box_height): New.
9694 (window_box_width): New.
9695 (window_box_left): New.
9696 (window_box_right): New.
9697 (window_box_edges): New.
9698
96991998-10-23 Gerd Moellmann <gerd@gnu.org>
9700
9701 * xterm.c (x_set_toolkit_scroll_bar_thumb): Kluge for call to
9702 XawScrollbarSetThumb in FreeBSD.
9703 (x_create_toolkit_scroll_bar): Set resource "beNiceToColormap"
9704 to true.
9705
9706 * window.c (get_phys_cursor_glyph): Return null if cursor vpos
9707 is out of range.
9708
9709 * xterm.c (x_create_toolkit_scroll_bar): Set scroll_bar_pixel.
9710 (x_term_init): Initialize it.
9711
9712 * xterm.h (struct x_display_info): Add scroll_bar_pixel.
9713
9714 * xterm.c (x_create_toolkit_scroll_bar): Set LessTif scroll bar's
9715 cursor.
9716
97171998-10-22 Gerd Moellmann <gerd@gnu.org>
9718
9719 * keyboard.c (make_lispy_event): Handle scroll_bar_click
9720 differently when using toolkit scroll bars.
9721
9722 * xterm.c (x_send_scroll_bar_event): New.
9723 (x_scroll_bar_to_input_event): New.
9724 (xaw3d_scroll_callback): New.
9725 (xaw3d_jump_callback): New.
9726 (xm_scroll_callback): New.
9727 (x_toolkit_scroll_p): New.
9728 (XTread_socket): Handle scroll bar client message.
9729 (x_term_init): Initialize Xatom_Scrollbar.
9730 (x_scroll_bar_create): Set cursor.
9731 (xm_scroll_callback):
9732 (x_create_toolkit_scroll_bar): New.
9733 (x_set_toolkit_scroll_bar_thumb): New.
9734 (x_scroll_bar_create): Call x_create_toolkit_scroll_bar.
9735 (XTset_vertical_scroll_bar): Call x_set_toolkit_scroll_bar_thumb.
9736
9737 * xterm.h (struct x_display_info): Add Xatom_Scrollbar.
9738
97391998-10-21 Gerd Moellmann <gerd@gnu.org>
9740
9741 * xterm.c (x_scroll_bar_remove): Handle toolkit scroll bars.
9742 (XTread_socket): Don't handle mouse button events for scroll bars
9743 if using toolkit scroll bars.
9744 (XTset_vertical_scroll_bar): Set thumb size and position for
9745 Athena scroll bar.
9746
9747 * xterm.h (scroll_bar): Add x_widget_low and x_widget_high.
9748
9749 * xterm.c (XTread_socket): Dispatch expose event to widget
9750 if using toolkit scroll bars.
9751 (x_scroll_bar_expose): Make no-op for toolkit scroll bars.
427ec082 9752 (x_scroll_bar_create): Create and show a scroll bar widget
26901792
DL
9753 if using toolkit scroll bars.
9754 (x_scroll_bar_move): Handle tookit scroll bars.
9755
9756 * Makefile.in (LIBW): Use Xaw3d if present.
9757
9758 * configure.in (USE_TOOLKIT_SCROLL_BARS): New.
9759 (HAVE_XAW3D): New.
427ec082 9760
26901792
DL
9761 * config.in (USE_TOOLKIT_SCROLL_BARS): New.
9762 (HAVE_XAW3D): New.
9763
427ec082 9764 * xterm.c (XTset_vertical_scroll_bar): Correct position of
26901792
DL
9765 right vertical scroll bar.
9766
97671998-10-20 Gerd Moellmann <gerd@gnu.org>
9768
9769 * xfns.c (xpm_load): Support reading XPM images from string
9770 buffers containing data in the same format as an XPM file.
9771 Support `:color-symbols'.
9772 (xpm_format): Add `:data'.
9773 (xpm_keyword_index): Add XPM_DATA.
9774 (syms_of_xfns): Add `:color-symbols'.
9775 (xpm_keyword_index): Add XPM_COLOR_SYMBOLS.
9776 (xpm_valid_color_symbols_p): New.
9777 (xpm_image_p): Call it.
9778
9779 * xdisp.c (build_desired_toolbar_string): Add `:algorithm'
9780 attribute to the image if item is not enabled.
9781
9782 * xfns.c (x_laplace): New.
9783 (x_laplace_read_row): New.
9784 (x_laplace_write_row): New.
9785 (lookup_image): Handle common image attributes here. New
9786 attribute `:algorithm'.
9787
9788 * xfaces.c (clear_face_cache): Call clear_image_cache.
9789
9790 * xterm.c (x_inverted_image_mask): Removed.
9791 (x_draw_image_foreground_1): New.
9792 (x_draw_image_glyph_string): Draw images with mask to a temporary
9793 pixmap to reduce flickering.
9794
9795 * xdisp.c (redisplay_toolbar): Handle auto-resize-toolbars.
9796 (display_toolbar_line): Remove parameter `margin'.
9797
97981998-10-19 Gerd Moellmann <gerd@gnu.org>
9799
9800 * xdisp.c (toolbar_lines_needed): New.
9801 (auto-resize-toolbars): New.
9802
9803 * xfns.c (cache_image): Correct call to xrealloc.
9804
9805 * dispnew.c (Fset_toolbar_height): Removed.
9806
9807 * xdisp.c (init_xdisp): Use FRAME_TOP_MARGIN instead of
9808 FRAME_MENU_BAR_LINES.
9809
9810 * window.c (Fdelete_other_windows): Use FRAME_TOP_MARGIN
9811 instead of FRAME_MENU_BAR_LINES.
9812 (check_frame_size): Ditto.
9813
9814 * dispnew.c (adjust_frame_glyphs_initially): Use FRAME_TOP_MARGIN
9815 instead of FRAME_MENU_BAR_LINES.
9816 (adjust_frame_glyphs_for_frame_redisplay): Ditto.
9817 (build_frame_matrix): Ditto.
9818 (change_frame_size_1): Ditto.
9819
9820 * frame.h (FRAME_TOOLBAR_LINES): New.
9821 (FRAME_TOP_MARGIN): New.
9822
9823 * window.c (struct save_window_data): Add frame_toolbar_lines.
9824 (Fset_window_configuration): Handle toolbar lines.
9825 (Fcurrent_window_configuration): Save toolbar lines.
9826
9827 * frame.c (syms_of_frame_1): Add Qtoolbar_lines.
9828
9829 * xfns.c (Fx_create_frame): Add default parameter for toolbar.
9830
9831 * frame.h (struct frame): Rename top_margin to toolbar_lines.
9832
9833 * xfns.c (x_frame_parms): Add `toolbar-lines'.
9834 (x_set_toolbar_lines): New.
9835
9836 * keyboard.c (cmd_error_internal): Bug fix.
9837
9838 * xterm.c: Remove double include of syssignal.h.
9839
98401998-10-18 Gerd Moellmann <gerd@gnu.org>
9841
9842 * xterm.c (x_toolbar_item): New.
9843 (x_handle_toolbar_click): Use it.
9844 (note_toolbar_highlight): Use it.
9845
9846 * keyboard.c (syms_of_keyboard): Staticpro toolbar_item_properties
9847 and toolbar_items_vectors.
9848
9849 * xterm.c (help_echo): New.
9850 (draw_glyphs_face): Add DRAW_IMAGE_RAISED and DRAW_IMAGE_SUNKEN.
9851 (x_set_glyph_string_gc): Handle them.
9852 (x_after_update_window_line): Don't do anything in pseudo-windows.
9853 (x_produce_image_glyph): Take image margin and face relief into
9854 account.
9855 (x_get_glyph_string_clip_rect): Handle pseudo-windows.
9856 (x_draw_glyph_string_background): Optimize case when face has
9857 relief.
9858 (x_setup_relief_color): Take frame instead of glyph string
9859 parameter.
9860 (x_draw_relief_rect): New.
9861 (x_draw_glyph_string_relief): Call it.
9862 (x_draw_image_glyph_string_foreground): Handle margin and image
9863 relief.
9864 (x_draw_image_glyph_string_background): Ditto.
9865 (expose_frame): Redraw toolbar window.
9866 (expose_window): Don't draw cursor for pseudo-windows.
9867 (x_y_to_hpos_vpos): Handle pseudo-windows.
9868 (frame_to_window_pixel_xy): New.
9869 (note_mouse_highlight): Call note_toolbar_highlight.
9870 (x_handle_toolbar_click): New.
9871 (note_toolbar_highlight): New.
9872 (show_mouse_face): Change int parameter `hl' to parameter of
9873 type enum draw_glyphs_face. Handle image highlighting.
9874 (XTread_socket): Return a HELP_EVENT input event if help_echo is
9875 non-nil. Use x_handle_toolbar_click.
9876
9877 * termhooks.h (event_kind): Add HELP_EVENT, TOOLBAR_EVENT.
9878
9879 * xfns.c (image_value_type): Add IMAGE_INTEGER_VALUE,
9880 IMAGE_BOOL_VALUE.
9881 (parse_image_spec): Handle them.
9882 (image_spec_value): Additional parameter found.
427ec082 9883 (free_image): Remove image from the vector `images' of the
26901792
DL
9884 image cache.
9885 (clear_image_cache): Additional parameter force_p.
9886 (Fclear_image_cache): New.
9887 (x_find_image_file): New.
9888 (xbm_load): Handle `:margin' and `:relief'. Use
9889 x_find_image_file.
9890 (xpm_load): Likewise.
9891 (pbm_load): Likewise.
9892 (jpeg_load): Likewise.
9893 (tiff_load): Likewise.
9894 (gif_load): Likewise.
9895
9896 * keyboard.c (Qhelp_echo): New symbol.
9897 (read_char): Handle `toolbar' and `help_echo' events.
9898 (kbd_buffer_get_event): Handle HELP_ECHO input event.
9899 (make_lispy_event): Handle TOOLBAR_EVENT.
9900 (toolbar_items): New.
9901 (process_toolbar_item): New.
9902 (PROP): New.
9903 (init_toolbar_items): New.
9904 (append_toolbar_item): New.
9905 (read_char_x_menu_prompt): Handle `toolbar' event.
9906 (read_key_sequence): Ditto.
9907
9908 * xfaces.c (Qtoolbar): New.
9909 (realize_basic_faces): Realize `toolbar' face.
9910 (face_at_string_position): Remove parameter modeline_p, add
9911 base_face_id.
9912
9913 * xfns.c (xbm_load_image_from_file): Don't use Xmu function
9914 to read data.
9915
99161998-10-17 Gerd Moellmann <gerd@gnu.org>
9917
9918 * xdisp.c (init_iterator): Replace parameter modeline_p with
9919 base_face_id.
9920 (next_element_from_string): Call get_next_display_element
9921 recursively after handling text properties.
9922 (prepare_menu_bars): Call update_toolbar.
9923 (update_toolbar): New.
9924 (build_desired_toolbar_string): New.
9925 (display_toolbar_line): New.
9926 (redisplay_toolbar): New.
9927 (toolbar_item_info): New.
9928 (redisplay_window): Call redisplay_toolbar.
9929 (Fdump_toolbar_row): New. Defined if compiled with GLYPH_DEBUG.
9930
9931 * dispnew.c (clear_current_matrices): Clear matrices of toolbar
9932 window.
9933 (clear_desired_matrices): Ditto.
9934 (adjust_frame_glyphs_for_window_redisplay): Make toolbar window.
9935 (free_glyphs): Free matrices of toolbar window.
9936 (update_frame): Update toolbar window.
9937 (change_frame_size_1): Take toolbar into account.
9938 (Fset_toolbar_height): New.
9939
9940 * dispextern.h (struct it): Remove member modeline_p, add
9941 base_face_id.
9942 (struct image): Add members relief and margin.
9943 (IMAGE_ASCENT): Include margin in height.
9944
99451998-10-14 Gerd Moellmann <gerd@gnu.org>
9946
9947 * xfns.c (Fclear_image_cache): New.
9948
9949 * xfaces.c (realize_basic_faces): Realize toolbar face.
9950 (face_at_string_position): Remove parameter modeline_p, add
9951 base_face_id.
9952
9953 * dispextern.h (enum face_id): Add TOOLBAR_FACE_ID.
9954
99551998-10-13 Gerd Moellmann <gerd@gnu.org>
9956
9957 * keyboard.c (syms_of_keyboard): Intern `:help'.
9958
99591998-10-12 Gerd Moellmann <gerd@gnu.org>
9960
9961 * xterm.c (note_toolbar_highlight): New.
9962 (note_mouse_highlight): Call it.
9963
9964 * window.c (window_from_coordinates): Additional parameter toolbar_p.
9965 (coordinates_in_window): Handle toolbar window.
9966
9967 * keyboard.c (toolbar_items): New.
9968 (process_toolbar_item): New.
9969 (parse_toolbar_item): New.
9970 (init_toolbar_items): New.
9971 (append_toolbar_item): New.
9972
9973 * dispextern.h (enum toolbar_item_idx): New.
9974 (enum toolbar_item_image): New.
9975
9976 * frame.h (struct frame): Add toolbar-related members.
9977
9978 * xfaces.c (face_at_string_position): Remove assertion that
9979 current_buffer == window's buffer. This is not the case when
9980 called for the toolbar window.
9981
9982 * frame.c (make_frame): Initialize toolbar members.
9983
9984 * alloc.c (mark_object): Mark toolbar data of frames.
9985
9986 * frame.h (struct frame): Add toolbar-related members
9987 toolbar_window, desired_toolbar_items, current_toolbar_items,
9988 desired_toolbar_string, current_toolbar_string,
9989 n_desired_toolbar_items, n_current_toolbar_items. Add
9990 window_height.
9991
9992 * xterm.c (x_after_update_window_line): Don't draw bitmap
9993 areas for pseudo-windows.
9994 (expose_frame): Handle toolbar window.
9995 (expose_window): Don't do cursor stuff for pseudo-windows.
9996
9997 * xdisp.c (display_menu_bar): Correct calls to init_iterator.
9998
99991998-10-11 Gerd Moellmann <gerd@gnu.org>
10000
10001 * frame.c (make_frame): Initialize toolbar_window.
10002
10003 * alloc.c (mark_object): Make the toolbar window.
10004
10005 * dispnew.c (update_frame): Update frame's toolbar_window.
10006 (clear_current_matrices): Likewise.
10007 (clear_desired_matrices): Likewise.
10008 (adjust_frame_glyphs_for_window_redisplay): Make toolbar_window.
10009 (free_glyphs): Free the toolbar window and its matrices.
10010
10011 * frame.h (struct frame): Add toolbar_window.
10012
10013 * xterm.c (x_draw_glyph_string_relief): Handle mouse-face
10014 with relief.
10015
100161998-10-10 Gerd Moellmann <gerd@gnu.org>
10017
427ec082 10018 * dispnew.c (buffer_posn_from_coords): Don't screw up if
26901792
DL
10019 window start is not in the range BEGV..ZV.
10020
100211998-10-09 Gerd Moellmann <gerd@gnu.org>
10022
10023 * xdisp.c (try_scrolling): Experimentally handle the case
10024 that scroll-preserve-screen-position is set to `always'.
10025
10026 * window.c (Vscroll_preserve_screen_position): Replacement for
10027 scroll_preserve_screen_position.
10028
100291998-10-08 Gerd Moellmann <gerd@gnu.org>
10030
10031 * dispnew.c: Don't initialize auto structs; the HP/UX compiler
10032 doesn't like it.
10033 * xdisp.c: Ditto.
10034
10035 * xdisp.c (make_cursor_line_fully_visible): Adjust this_line_y.
10036
100371998-10-06 Gerd Moellmann <gerd@gnu.org>
10038
427ec082 10039 * minibuf.c (Fminibuffer_complete_word): Fix computation of
26901792
DL
10040 i_byte when prompts are inserted into minibuffers.
10041
10042 * dispextern.h (FRAME_INTERNAL_BORDER_WIDTH_SAFE): New.
10043 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X): Use it.
10044 (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y): Ditto.
10045
100461998-10-04 Gerd Moellmann <gerd@gnu.org>
10047
10048 * xdisp.c (make_cursor_line_fully_visible): New.
10049 (try_scrolling): New.
10050 (redisplay_window): Move scrolling code to try_scrolling.
10051 (make_cursor_line_fully_visible): Handle case of window too small
10052 to show a single line.
10053 (redisplay_window): Case forced window start---use
10054 make_cursor_line_fully_visible.
10055 (redisplay_window): Case cursor movement via current matrix.
10056 If ending up on a partially visible line, make it fully visible
10057 instead of recentering.
10058 (try_scrolling): Additional parameter scroll_smoothly.
10059
10060 * xterm.c (x_draw_bitmap): Don't XClearArea under the pixmap.
10061
100621998-09-28 Gerd Moellmann <gerd@gnu.org>
10063
10064 * window.c (window_scroll_pixel_based): Bug fix: vpos used
10065 instead of y-position for scroll-preserved-screen-position.
10066
100671998-09-07 Gerd Moellmann <gerd@gnu.org>
10068
10069 * dispnew.c (update_frame_line): If current row is not enabled,
10070 write the whole line.
10071
100721998-09-06 Gerd Moellmann <gerd@gnu.org>
10073
10074 * lisp.h (HAVE_FACES): Removed.
10075
10076 * dispextern.h (HAVE_FACES): Removed.
10077
10078 * config.in (HAVE_FACES): Removed.
10079
10080 * dispnew.c (HAVE_FACES): Removed.
10081
10082 * xdisp.c (HAVE_FACES): Removed.
10083
10084 * xfaces.c (HAVE_FACES): Removed.
10085
100861998-09-05 Gerd Moellmann <gerd@gnu.org>
10087
10088 * xdisp.c (init_iterator): If face_change_count is non-zero,
10089 free realized faces.
10090
10091 * xfaces.c (free_all_realized_faces): Make it externally visible.
10092 (Finternal_set_lisp_face_attribute): Increment
10093 windows_or_buffers_changed.
10094
10095 * dispnew.c (direct_output_for_insert): Give up if
10096 face_change_count is non-zero.
10097 (direct_output_forward_char): Ditto.
10098
10099 * xfaces.c (face_change_count): New.
10100
101011998-09-04 Gerd Moellmann <gerd@gnu.org>
10102
10103 * xterm.c (x_draw_bar_cursor): Don't draw if cursor hpos is out
10104 of range.
10105
101061998-09-03 Gerd Moellmann <gerd@gnu.org>
10107
10108 * term.c (Ftty_display_color_p): New.
10109
101101998-09-02 Gerd Moellmann <gerd@gnu.org>
10111
10112 * xfaces.c (Ftty_defined_colors): New.
10113
10114 * xterm.c (x_produce_glyphs): Fix computation of
10115 contains_overlapping_glyphs_p for ASCII.
10116
10117 * dispnew.c (Fshow_cursor): Don't change cursor state while
10118 redisplaying.
10119 (direct_output_for_insert): If a glyph with lbearing or rbearing
10120 is among the new glyphs, set row flag contains_overlapping_glyph_p.
10121
101221998-09-01 Gerd Moellmann <gerd@gnu.org>
10123
10124 * term.c (OUTPUT_IF): Make replacement text have statement form.
10125 (OUTPUT1_IF): Ditto.
10126 (TS_italic_mode, TS_end_italic_mode): Removed.
10127 (TS_bold_mode): Removed.
10128 (TS_underscore_mode, TS_end_underscore_mode): Removed.
10129 (TS_enter_bold_mode, TS_enter_dim_mode, TS_enter_blink_mode): New.
10130 (TS_enter_reverse_mode): New.
10131 (TS_enter_underline_mode, TS_exit_underline_mode): New.
10132 (TN_magic_cookie_glitch_ul): New.
10133 (TS_enter_alt_charset_mode, TS_exit_alt_charset_mode): New.
10134 (TS_exit_attribute_mode): New.
10135 (TN_max_colors, TN_max_pairs, TS_orig_pairs): New.
10136 (TS_set_foreground, TS_set_background): New.
10137 (reset_terminal_modes): Switch colors back to default.
10138 (write_glyphs): Turn face on before writing text, turn it off
10139 afterwards.
10140 (insert_glyphs): Ditto.
10141 (term_init): Initialize new terminal capability variables.
10142 (turn_on_face): Turn a face on.
10143 (turn_off_face): Turn a face off.
10144
10145 * lisp.h (MAKE_GLYPH): Remove test for frame type.
10146 (GLYPH_CHAR): Ditto.
10147 (GLYPH_FACE): Ditto.
10148
10149 * xfaces.c (Vface_tty_color_alist): New.
10150 (face-register-tty-color): New.
10151 (face-clear-tty-colors): New.
10152
10153 * dispextern.h (FACE_TTY_DEFAULT_COLOR): New.
10154 (struct it): Remove member faces_p since we now always have faces.
10155
101561998-08-31 Gerd Moellmann <gerd@gnu.org>
10157
10158 * dispextern.h (struct face): Add tty appearance flags.
10159
10160 * xdisp.c (init_iterator): Always handle faces.
10161 (extend_face_to_end_of_line): Handle tty frames.
10162
10163 * dispnew.c (clear_glyph_matrix): Allow a null matrix to be
10164 passed in.
10165
101661998-08-30 Gerd Moellmann <gerd@gnu.org>
10167
10168 * xfaces.c (realize_default_face): Use empty strings to indicate
10169 that the face should use the default foreground/background
427ec082 10170 color of the terminal. Fill font-related attributes with
26901792
DL
10171 appropriate values for tty frames.
10172
10173 * emacs.c (main): Call syms_of_xfaces before init_window_once.
10174
10175 * xfaces.c (realize_default_face): If face `default' is not
10176 yet known, create it.
10177
10178 * frame.c (make_terminal_frame): Call init_frame_faces
10179 unconditionally.
10180
10181 * xfaces.c (init_frame_faces): Make it work for tty frames.
10182 (free_frame_faces): Ditto.
10183 (clear_face_cache): Ditto.
10184 (recompute_basic_faces): Ditto.
10185 (Fframe_face_alist): Ditto.
10186 (free_realized_face): Ditto.
10187 (prepare_face_for_display): Ditto.
10188 (clear_face_gcs): Ditto.
10189 (lookup_face): Ditto.
10190 (smaller_face): Ditto.
10191 (realize_default_face): Ditto.
10192 (realize_face): Ditto.
10193 (realize_face): Dispatch to functions depending on the frame type.
10194 (realize_x_face): X way of realizing faces.
10195 (realize_tty_face): TTY way of realizing faces.
10196
101971998-08-29 Gerd Moellmann <gerd@gnu.org>
10198
10199 * xfaces.c (realize_face): Remove parameter unibyte_registry,
10200 compute it instead.
10201 (lookup_face): Remove local variable unibyte_registry.
10202
102031998-08-22 Gerd Moellmann <gerd@gnu.org>
10204
10205 * xterm.c (x_draw_glyph_string_relief): Draw top and bottom lines
10206 1 pixel longer.
10207
427ec082 10208 * xdisp.c (face_before_or_after_it_pos): Fix computation
26901792
DL
10209 of face in buffer.
10210
10211 * editfns.c (make_buffer_string_both): If prompt in buffer,
10212 prevent start > end.
10213
10214 * indent.c (Fvertical_motion): Set current_buffer to window's
10215 buffer if it isn't already.
10216
102171998-08-21 Gerd Moellmann <gerd@gnu.org>
10218
10219 * dispextern.h (GLYPH_DEBUG): Use default 0.
10220
10221 * xdisp.c (it_props): New member `smaller'.
10222 (init_iterator): Initialize it.
10223 (Qsmaller): New.
10224 (push_it): Save value of `smaller' value on the stack.
10225 (pop_it): Restore `smaller' from the stack.
10226 (handle_smaller_prop): New.
10227 (handle_face_prop): Use `smaller' text property to select a
10228 suitable face.
10229
10230 * dispextern.h (SMALLER_PROP_IDX): New.
10231 (struct it): Add member `smaller'.
10232
10233 * xfaces.c (smaller_face): New.
10234
10235 * frame.h (FRAME_WINDOW_WIDTH_ARG): Add bitmap area widths.
10236
10237 * dispnew.c (allocate_matrices_for_window_redisplay): Compute
10238 total pixel width of window differently.
10239
10240 * xdisp.c (init_iterator): Compute width of mode line differently.
10241
10242 * dispextern.h (WINDOW_DISPLAY_PIXEL_WIDTH): Subtract width
10243 of bitmap areas.
10244
10245 * window.c (Fsplit_window): Include width of bitmap areas in
10246 window width.
10247 (window_internal_width): Subtract width of bitmap areas from
10248 total width.
10249
102501998-08-18 Gerd Moellmann <gerd@gnu.org>
10251
10252 * xdisp.c: Functions reordered for better readability.
10253
10254 * dispnew.c (update_text_area): Handle glyphs with arbitrary
10255 lbearing.
10256 (update_window_tree): Parameter no_scrolling_p removed.
10257 (update_single_window): Ditto.
10258
10259 * xterm.c (x_get_char_font_and_encoding): Renamed to
10260 x_get_char_face_and_encoding.
10261
10262 * dispnew.c (update_text_area): Don't call get_glyph_overhangs
10263 if end of current row reached.
10264
10265 * xterm.c (x_get_glyph_face_and_encoding): New.
10266 (x_get_glyph_overhangs): Call it.
10267
10268 * xdisp.c (Qshow_trailing_whitespace): New.
10269 (Qtrailing_whitespace): New.
10270 (enum prop_handled): New.
10271 (struct props, it_props): New.
10272 (next_overlay_change): New. Works like Fnext_overlay_change
10273 but doesn't use xmalloc.
10274 (handle_stop): Restructured.
10275 (face_before_or_after_it_pos): Case iteration over a string: fix
10276 handling of face before current position.
10277
102781998-08-16 Gerd Moellmann <gerd@gnu.org>
10279
10280 * dispnew.c (adjust_glyph_matrix): Don't optimize matrix
10281 reallocation matrix if fonts_changed_p.
10282 (update_text_area): Handle glyphs with lbearing.
10283
102841998-08-14 Gerd Moellmann <gerd@gnu.org>
10285
10286 * xdisp.c (struct props): New.
10287 (it_props): New.
10288 (compute_prop_info): New.
10289 (handle_stop): New.
10290
10291 * textprop.c (validate_interval_range): Make it externally
10292 visible.
10293
10294 * dispnew.c (direct_output_for_insert): Remove calls
10295 to compute_stop_pos.
10296
10297 * dispextern.h (struct it): Remove check_charpos,
10298 next_overlay_pos. Add what_changes.
10299
103001998-08-10 Gerd Moellmann <gerd@gnu.org>
10301
10302 * xterm.c (note_mouse_highlight): Set BEGV_BYTE, ZV_BYTE.
10303
10304 * xfaces.c (Vx_unibyte_registry_and_encoding): Removed. Use
10305 face_default_registry instead.
10306
10307 * syntax.c (scan_sexps_forward): Set up syntax table before
10308 jumping to initial state label.
10309
103101998-08-09 Gerd Moellmann <gerd@gnu.org>
10311
10312 * dispnew.c (check_matrix_invariants): Handle case of row end pos
10313 >= ZV specially.
10314
103151998-08-08 Gerd Moellmann <gerd@gnu.org>
10316
10317 * xdisp.c (redisplay_window): Case cursor movement---if cursor
10318 ends up in partially visible row, try to scroll. Case forced
10319 window start---handle windows not tall enough to show a single
10320 line.
10321
10322 * window.h (struct window): Member dy renamed vscroll.
10323
10324 * xterm.c (x_list_fonts): Re-activate suppression of scalable
10325 fonts.
10326 (x_draw_stretch_glyph_string): Set clipping if using GC that
10327 hasn't set it yet.
10328
10329 * xdisp.c (redisplay_window): Case forced window start -
10330 don't let cursor end on partially visible row. Use desired
10331 matrix to find a suitable PT if it doesn't appear.
10332 (decode_mode_spec): Merged with 20.2.97.
10333 (try_window_reusing_current_matrix): Give up if old or
10334 new display is vscrolled.
10335 (redisplay_window): Reset vscrolling if forced window start,
10336 or if recentering.
10337
103381998-08-06 Gerd Moellmann <gerd@gnu.org>
10339
10340 * xfaces.c (realize_default_face): Use the fontset name instead of
10341 the alias for the family attribute of the default face because we
10342 can't easily determine a good alias from fontset-alias-alist.
10343 (face_fontset): Use Fquery_fontset to find the fontset.
10344 (font_list): Additional pattern parameter.
10345 (try_font_list): Ditto.
10346 (set_lface_from_font_name): Set face family from font foundry
10347 and family.
10348 (font_list): If family contains a hyphen, build pattern differently.
10349
103501998-08-05 Gerd Moellmann <gerd@gnu.org>
10351
10352 * xfaces.c (free_realized_faces): Increment windows_or_buffers_-
10353 changed instead of setting the frame garbaged.
10354
10355 * xfaces.c (lface_equal_p): Don't assume equal Lisp types for
10356 all attribute values. This is wrong if values are unspecified,
10357 i.e. nil.
10358
10359 * xdisp.c (try_window_id): Give up if window start changed.
10360
10361 * xfaces.c (make_realized_face): Store registry as Lisp object.
10362 (load_face_font_or_fontset): Compute registry of a face
10363 differently. Make it `eq' to Vx_unibyte_registry_and_encoding if
10364 possible.
10365
10366 * dispextern.h (FACE_SUITABLE_FOR_CHARSET_P): Compare registries
10367 differently.
10368
10369 * alloc.c (mark_face_cache): Mark the registry member of faces.
10370
10371 * dispextern.h (struct face): Make registry a Lisp string.
10372
103731998-08-04 Gerd Moellmann <gerd@gnu.org>
10374
10375 * xterm.c (x_get_char_font_and_encoding): Additional parameter
10376 multibyte_p. Handle unibyte text.
10377 (x_append_glyph): Set the multibyte_p flag of glyphs.
10378 (x_produce_image_glyph): Ditto.
10379 (x_append_stretch_glyph): Ditto.
10380 (x_produce_glyphs): Handle unibyte text like ASCII.
10381
10382 * xdisp.c (push_it): Save the multibyte flag of an iterator on the
10383 stack.
10384 (pop_it): Restore it.
10385 (face_before_or_after_it_pos): Handle the case that the string or
10386 buffer is unibyte.
10387 (get_overlay_strings): Set the multibyte flag of the iterator if
10388 the new overlay string is multibyte.
10389 (get_glyph_property): Likewise.
10390 (get_next_display_element): Don't check for charset changes in
10391 unibyte text.
10392 (append_space): Compute face differently for unibyte text.
10393 (extend_face_to_end_of_line): Don't return quickly if face has
10394 stipple.
10395
10396 * xfaces.c (load_face_font_or_fontset): Store registry and
10397 encoding of the font in the registry member of the face.
10398 (make_realized_face): Additional parameter `registry'.
10399 (free_realized_face): Free the registry of a realized face.
10400 (face_suitable_for_charset_p): Function form of the macro
10401 with the same name in uppercase.
10402 (lookup_face): Use Vx_unibyte_registry_and_encoding if charset < 0.
10403 (choose_face_font): New parameter unibyte_registry.
10404 (choose_face_fontset_font): Ditto.
10405 (realize_default_face): Remember the registry and encoding of
10406 the specified frame font in Vx_unibyte_registry_and_encoding.
10407 (face_at_buffer_position): Handle unibyte.
10408 (face_at_string_position): Likewise.
427ec082 10409 (realize_face): New parameter unibyte_registry.
26901792
DL
10410 (compute_char_face): Handle the unibyte case.
10411
10412 * dispextern.h (struct glyph): Add bit multibyte_p.
10413 (struct face): New member registry holding the registry and
10414 encoding of the X font of the face.
10415 (FACE_UNIBYTE_P): Value is non-zero if face is for unibye text.
10416 (enum face_id): Add BASIC_FACE_ID_SENTINEL.
10417 (FACE_SUITABLE_FOR_CHARSET_P): Handle charset < 0 meansing unibyte
10418 text.
10419 (struct iterator_stack_entry): Add multibyte_p.
10420
10421 * xdisp.c (string_pos): Use string_char_to_byte.
10422 (char_charset): Removed.
10423
104241998-08-03 Gerd Moellmann <gerd@gnu.org>
10425
10426 * xterm.c (x_draw_image_glyph_string_foreground): Draw a
10427 rectangle for a block cursor over an image without a mask.
10428 (x_stretch_block_cursor): Added. Non-zero means don't draw
10429 a block cursor over a stretch as wide as that stretch.
10430 (x_draw_stretch_glyph_string): Use it.
10431 (x_draw_hollow_cursor): Ditto.
10432
10433 * minibuf.c (read_minibuf): Use minibuf_prompt instead of prompt.
10434 (read_minibuf): Add front-sticky text property for prompt.
10435
10436 * xdisp.c (char_charset): Return charset of a character,
10437 depending on whether or not multi-byte characters are enabled.
10438
10439 * xfaces.c (Fset_face_charset_registry): Removed.
10440 (x_charset_registry): Determine registry from charset plist.
10441
104421998-08-02 Gerd Moellmann <gerd@gnu.org>
10443
10444 * xdisp.c (get_next_display_element): Don't check for charset
10445 changes if multi-byte characters are not enabled.
427ec082 10446
26901792 10447 * xdisp.c (echo_area_display): Use the flush function from the
427ec082 10448 redisplay interface.
26901792
DL
10449 * keyboard.c (detect_input_pending_run_timers): Likewise.
10450
10451 * dispextern.h (produce_*glyphs_hook): Removed.
10452 * term.c (produce_*glyphs): Ditto.
10453 (cursor_to): Remove pixel position parameters.
10454
10455 * dispnew.c: Remove hooks for window-based redisplay, introduce
10456 a redisplay interface structure.
10457
10458 * xterm.c (x_per_char_metric): Return default char metrics if per
10459 char metric exists but contains a zero width. Adobe Courier seems
10460 to contain such characters.
10461
10462 * xdisp.c (compute_line_metrics): Compute the width of rows
10463 without stopping at glyphs with zero width.
10464
104651998-08-01 Gerd Moellmann <gerd@gnu.org>
10466
10467 * xdisp.c (display_mode_line): If nothing was displayed at all,
10468 display a space.
10469 (hscroll_window_tree): Don't subtract 1 from target point if equal
10470 to ZV and window is not the selected window.
10471
10472 * dispnew.c (check_matrix_invariants): Remove check for window
10473 start at BEGV or after newline. This happens in rare cases
10474 intentionally.
10475
104761998-07-31 Gerd Moellmann <gerd@gnu.org>
10477
10478 * xfaces.c (x_charset_registry): Use STRING_BYTES.
10479 (syms_of_xfaces): Add Vface_default_registry.
10480 (x_charset_registry): Use it.
10481
10482 * xdisp.c (run_window_scroll_functions): Run window scroll functions.
10483 (redisplay_window): Use it.
10484
10485 * dispnew.c (update_text_area): Handle lbearing of deleted text
10486 by backing up one character.
10487
104881998-07-30 Gerd Moellmann <gerd@gnu.org>
10489
427ec082 10490 * dispnew.c (adjust_glyph_matrix): Use a different check to
26901792
DL
10491 decide to do nothing.
10492
10493 * xfaces.c (face_at_string_position): Additional parameter
10494 mode_line_p. If non-zero, merge with the mode line face
10495 instead of the default face.
10496 * dispextern.h (struct it): Add mode_line_p.
10497 * xdisp.c (init_iterator): Set it.
10498 (compute_face_in_string): Use it.
10499 (face_before_or_after_it_pos): Handle strings.
10500 (get_next_display_element): Don't look for relief end in C strings.
10501 (next_element_from_string): Deliver string position instead of
10502 buffer position.
10503
10504 * xterm.c (x_flush): Flush X output buffer.
10505 (XTflash): Use it.
10506
10507 * xfaces.c (lface_from_face_name): Renamed from lface_from_symbol.
10508 Allow strings as face names.
10509
10510 * xfns.c (forall_images_in_image_cache): Check that frame is
10511 alive.
10512
10513 * widget.c (EmacsFrameDestroy): Remove call to free_frame_faces;
10514 it's also called from x_destroy_window. Since this function is
10515 called from X, freeing stuff allocated with xmalloc is dangerous
10516 here, anyway.
10517
10518 * xfaces.c (free_realized_faces): Don't clear current matrices
10519 of a frame being destroyed.
10520
427ec082 10521 * frame.c (make_frame): Call set_window_buffer instead of
26901792
DL
10522 Fset_window_buffer.
10523
10524 * window.c (set_window_buffer): Extracted from Fset_window_buffer,
10525 with an additional argument specifying whether or not hooks may
10526 be called.
10527 (Fset_window_buffer): Call it.
10528
10529 * dispnew.c (clear_desired_matrices): Check that frame has
10530 a valid root window before clearing matrices in the window tree.
10531 (clear_current_matrices): Ditto.
10532 (clear_window_matrices): If GLYPH_DEBUG, check that hchild and
10533 vchild are valid windows if not nil.
10534
10535 * xfaces.c (merge_face_vector_with_property): Allow :reverse-video
10536 for :inverse-video.
10537 (Finternal_set_lisp_face_attribute): Ditto.
10538 (Finternal_set_lisp_face_attribute_from_resource): Ditto.
10539 (Finternal_get_lisp_face_attribute): Ditto.
10540 (Finternal_lisp_face_attribute_values): Ditto.
10541 (syms_of_xfaces): Define the symbol `:reverse-video'.
10542
10543 * xdisp.c (get_glyph_property): Renamed from
10544 fill_iterator_from_glyph_property.
10545 (next_element_from_buffer): Handle case that no `glyph' property
10546 was found correctly.
10547 (display_line): Extend face to end of line only if we have faces.
10548
105491998-07-29 Gerd Moellmann <gerd@gnu.org>
10550
10551 * dispnew.c (Fshow_cursor): Renamed from blink_cursor. Take
10552 additional window argument.
10553
10554 * xdisp.c (reseat_at_previous_visible_line_start): Renamed from
10555 set_iterator_to_previous_visible_line_start.
10556 (reseat_at_next_visible_line_start): Likewise.
10557 (compute_stop_pos): Renamed from set_iterator_stop_pos.
10558 (face_before_or_after_it_pos): Renamed from get_face_at_it_pos.
10559 (compute_face_in_buffer): Renamed from
10560 compute_face_at_iterator_position.
10561 (compute_face_in_string): Renamed from
10562 compute_face_at_iterator_string_position.
10563 (get_space_width): Renamed from get_iterator_space_width.
10564 (next_overlay_string): Renamed from
10565 set_iterator_to_next_overlay_string.
10566 (get_overlay_strings): Renamed from
10567 get_overlay_strings_at_iterator_position.
10568 (restore_overlay_strings): Renamed from
10569 setup_overlay_strings_from_glyph_pos.
10570 (restore_dpvec): Renamed from setup_iterator_dpvec_from_glyph_pos.
10571 (init_from_display_pos): Renamed from init_iterator_from_glyph_pos.
10572 (init_to_row_start): Renamed from init_iterator_to_row_start.
10573 (init_to_row_end): Formerly init_iterator_to_next_row_start.
10574
10575 * xterm.c: Merge with 20.2.97.
10576 (x_produce_glyphs): Use x_append_stretch_glyph for tabs.
10577
10578 * dispextern.h (struct glyph): Replace text_pos position with
10579 simple charpos.
10580
10581 * xdisp.c (this_line_start_pos): Use struct text_pos.
10582 (this_line_end_pos): Renamed from .*endpos; use struct text_pos.
10583 (enum move_it_result): Renamed from move_iterator_result.
10584 (string_pos_nchars_ahead): Compute text_pos in a string from a
10585 known text_pos plus a character delta.
10586 (string_pos): Compute text_pos in string from charpos.
10587 (c_string_pos): Likewise for a C string.
10588 (number_of_chars): Return number of characters in a possibly
10589 multi-byte C string.
10590 (check_it): Renamed from check_iterator. Check that charpos and
10591 bytepos are in sync.
10592 (push_it): Renamed from save_iterator_settings.
10593 (pop_it): Renamed from restore_iterator_settings.
10594 (move_it_.*): Renamed from move_iterator_.*.
10595 (charset_at_position): Take charpos/bytepos into account.
10596 (back_to_previous_line_start): Set iterator to previous line start.
10597 (forward_to_next_line_start): Set iterator to next line start.
427ec082 10598 (back_to_previous_visible_line_start): Renamed from
26901792
DL
10599 move_iterator_previous_visible_line_start.
10600 (set_iterator_to_next_visible_line_start): Handle charpos/bytepos.
10601 (get_face_at_it_pos): Renamed from get_face_from_cursor_pos.
10602 Handle charpos/bytepos.
10603 (compute_face_at_iterator_position): Handle charpos/bytepos.
10604 (compute_face_at_iterator_string_position): Likewise.
10605 (get_iterator_space_width): Likewise.
10606 (load_overlay_strings): Likewise.
10607 (get_overlay_strings_at_iterator_position): Likewise.
10608 (reseat_iterator): Take a text_pos position argument.
10609 (setup_iterator_overlay_strings_from_glyph_pos): Handle charpos/
10610 bytepos.
10611 (init_iterator): Take additional bytepos parameter.
10612 (reseat_iterator_to_string): Handle charpos/bytepos.
10613 (start_display): Take a text_pos parameter. Handle charpos/bytepos.
10614 (next_element_from_string): Handle charpos/bytepos.
10615 (next_element_from_c_string): Likewise.
10616 (fill_iterator_from_glyph_property): Likewise.
10617 (next_element_from_buffer): Likewise.
10618 (set_iterator_to_next): Increment charpos and bytepos of an iterator.
10619 (move_iterator_in_display_line_to): Handle charpos/bytepos.
10620 (move_it_to): Likewise.
10621 (move_it_vertically_backward): Likewise.
10622 (move_it_vertically): Likewise.
10623 (move_it_by_lines): Likewise.
10624 (hscroll_window_tree): Likewise.
10625 (redisplay_internal): Likewise.
10626 (set_cursor_from_row): Likewise.
10627 (redisplay_window): Likewise.
10628 (try_window): Take a text_pos parameter. Handle charpos/bytepos.
10629 (try_window_reusing_current_matrix): Handle charpos/bytepos.
10630 (get_first_unchanged_at_end_row): Compute and return delta_bytes.
10631 (try_window_id): Handle charpos/bytepos.
10632 (Ftrace_redisplay_toggle): Return Qnil.
10633 (get_overlay_arrow_glyph_row): Handle charpos/bytepos.
10634 (insert_left_trunc_glyphs): Likewise.
10635
10636 * dispnew.c: `Merge' with 20.2.97 (it's really too different to
10637 do a real merge).
10638 (increment_glyph_matrix_buffer_positions): Add parameter delta_bytes.
10639 (increment_glyph_row_buffer_positions): Ditto.
10640 (copy_glyph_row_contents): Ditto.
10641 (check_matrix_invariants): Add additional checks for charpos/
10642 bytepos consistency.
10643 (direct_output_for_insert): Changed for charpos/bytepos.
427ec082 10644 (buffer_posn_from_coords): Likewise. Put code dealing with
26901792
DL
10645 `direction-reversed' in #if 0.
10646
10647 * xterm.h: Merge with 20.2.97.
427ec082 10648
26901792
DL
10649 * frame.h: Merge with 20.2.97.
10650
10651 * window.h: Merge with 20.2.97. Add window_end_bytepos.
10652
10653 * dispextern.h (MATRIX_ROW_START_CHARPOS): Get charpos of a row
10654 start.
10655 (MATRIX_ROW_START_BYTEPOS): Likewise for the byte position.
10656 (MATRIX_ROW_END_CHARPOS): Likewise for the row end.
10657 (MATRIX_ROW_END_BYTEPOS): Likewise for the row end byte position.
10658 (struct it): Various members renamed from .*pos to .*charpos.
10659 (IT_CHARPOS): Access current buffer character position of an
10660 iterator.
10661 (IT_BYTEPOS): Access current buffer byte position of an iterator.
10662 (IT_STRING_CHARPOS): Access current string character position of
10663 an iterator.
10664 (IT_STRING_BYTEPOS): Access current string byte position of
10665 an iterator.
10666 (globally): Add function prototypes from 20.2.97.
10667
10668 * everywhere: Use P_ instead of PROTO for function prototypes
10669 because everyone else seems to use P_.
10670
10671 * dispextern.h (struct text_pos): Structure describing a charpos/
10672 bytepos position in text.
10673 (BYTEPOS): Access the byte position part of a text_pos.
10674 (CHARPOS): Likewise for the character position.
10675 (SET_TEXT_POS): Set a text_pos from a character and byte position.
10676 (INC_TEXT_POS, DEC_TEXT_POS): Increment/decrement a text position.
10677 (SET_TEXT_POS_FROM_MARKER): Set a text_pos from a marker.
10678 (SET_MARKER_FROM_TEXT_POS): Set a marker from a text_pos.
10679 (TEXT_POS_EQUAL_P): Compare two text_pos structures for equality.
10680 (struct display_pos): Renamed from glyph_pos. Use struct text_pos
10681 for buffer and string positions.
10682 (struct glyph): Use text_pos.
10683 (struct it): Renamed from display_iterator. Use text_pos.
10684
106851998-07-23 Gerd Moellmann <gerd@gnu.org>
10686
10687 * xfns.c (x_kill_gs_process): Get image colors from XImage of a
10688 pixmap.
10689
106901998-07-21 Gerd Moellmann <gerd@gnu.org>
10691
10692 * dispextern.h (struct glyph_row): New flag indicate_zv_line_p.
10693 * xterm.c (x_draw_row_bitmaps): Use it.
10694 * dispnew.c (row_equal_p): Ditto.
10695 (update_window_line): Ditto.
10696
10697 * xfns.c (prepare_image_for_display): Don't set loading_failed_p
10698 flag of images.
10699
10700 * dispextern.h (struct image): Removed member loading_failed_p.
10701 It's probably better to have the chance to try to load an image
10702 again.
10703
107041998-07-20 Gerd Moellmann <gerd@gnu.org>
10705
10706 * xterm.c (x_draw_bitmap): Draw bitmap for empty lines ending
10707 at ZV if `indicate-zv-lines' is non-nil.
10708 (x_draw_row_bitmaps): Compute bitmap for `indicate-zv-lines'.
10709
10710 * dispnew.c (row_equal_p): Compare displays_text_p and
10711 ends_at_zv_p flags of rows.
10712 (update_window_line): Ditto.
10713
10714 * buffer.h (struct buffer): New member indicate_zv_lines.
10715
10716 * buffer.c (init_buffer_once): Add default for `indicate-zv-lines'.
10717 (init_buffer_once): New variable `default-indicate-zv-lines'.
10718 (syms_of_buffer): New buffer-local varianle `indicate-zv-lines'.
10719
10720 * xdisp.c (redisplay_window): Don't try moving the cursor
10721 if current glyph row w->last_cursor.vpos isn't enabled.
10722
10723 * xterm.c (bitmap_type): Add ZV_LINE_BITMAP.
10724
10725 * window.c (Fset_window_vscroll): Allow only negative scroll
10726 values. Others don't seem to make sense, and this way it's easy
10727 to restore a vscroll of zero.
10728
10729 * xterm.c (x_inverted_image_mask): Check that pixmap could be
10730 allocated.
10731 (x_draw_image_glyph_string_background): Don't clip if pixmap
10732 could not be created.
10733
10734 * xfns.c (xbm_load_image_from_file): Check that pixmap could
10735 be created.
10736 (xbm_load): Ditto.
10737 (gs_load): Ditto.
10738
10739 * xterm.c (x_get_glyph_overhangs): Take image and stretch
10740 glyphs into account.
10741
10742 * xfaces.c (realize_default_face): Don't set font family of
10743 the default face from the fontset alias name for `fontset-startup'.
10744
10745 * xfns.c (gs_load): Pass frame's pixel foreground and background
10746 color to the Lisp loader.
10747
107481998-07-19 Gerd Moellmann <gerd@gnu.org>
10749
10750 * xfns.c (tiff_image_p, tiff_load): Support TIFF images via
10751 libtiff34.
10752
10753 * configure.in (--with-tiff, HAVE_TIFF): Added.
10754
10755 * config.in (HAVE_TIFF): Added.
10756
10757 * Makefile.in (LIBTIFF): Added.
10758
10759 * xfns.c (jpeg_image_p, jpeg_load): Support JPEG images.
10760
10761 * Makefile.in (LIBJPEG): Added.
10762
10763 * xfns.c (resource_types): Enumerators renamed to RES_TYPE_NUMBER,
10764 RES_TYPE_BOOLEAN etc. because of conflict of `boolean' with
10765 jpeglib.h.
10766
427ec082 10767 * configure.in (HAVE_JPEG, --with-jpeg): Added. On systems
26901792
DL
10768 where the library is installed in /usr/local/lib, e.g. FreeBSD,
10769 configure must be run with `--x-includes=/usr/X11R6/include:
10770 /usr/local/include --x-libraries=/usr/X11R6/lib:/usr/local/lib'.
10771
107721998-07-18 Gerd Moellmann <gerd@gnu.org>
10773
10774 * config.in (HAVE_JPEG): Added.
10775
10776 * xfns.c (ct_init): Initialize color table used to map RGB colors
10777 from images to X pixel colors.
10778 (ct_free): Free color table.
10779 (ct_lookup): Look an RGB color up.
10780 (ct_allocated_colors): Get vector of allocated colors.
427ec082 10781 (pbm_image_p): Test if image specification is a valid PPM
26901792
DL
10782 image specification.
10783 (pbm_scan_number): Scan a decimal ASCII number from a file.
10784 (pbm_load): Load a PPM image.
10785
10786 * window.c (Fset_window_vscroll): Adjust glyph matrix if
10787 necessary. Take canonical character units as parameter.
10788 (Fwindow_vscroll): Return canonical character units.
10789
10790 * dispnew.c (allocate_matrices_for_window_redisplay): Add negative
10791 w->dy to display height for which glyph rows must be allocated.
10792
107931998-07-17 Gerd Moellmann <gerd@gnu.org>
10794
10795 * xfaces.c (face_at_string_position): Merge in region face
10796 so that it won't overwrite the font in the region.
10797 (face_at_buffer_position): Ditto.
10798 (realize_basic_faces): Don't realize region face.
10799
10800 * dispextern.h (enum face_id): REGION_FACE_ID removed.
10801
10802 * xterm.c (x_set_glyph_string_background_width): Don't let
10803 cursor face extend to end of line.
10804
10805 * xdisp.c (append_space): If adding space of default face,
10806 make sure glyph ist produced with right face.
10807
10808 * xterm.c (x_clear_glyph_string_rect): Draw a rectangle in the
10809 background color of a glyph string.
10810 (x_draw_glyph_string_background): Call it.
10811 (x_draw_glyph_string_bg_rect): Ditto.
10812 (x_draw_stretch_glyph_string): Ditto.
10813
108141998-07-15 Gerd Moellmann <gerd@gnu.org>
10815
10816 * xdisp.c (init_iterator): Initialize it->current_y to the
10817 window's vscroll w->dy.
10818
10819 * window.c (Fwindow_vscroll): Return number of pixels window
10820 is vscrolled smoothly.
10821 (Fset_window_vscroll): Set the number.
10822
10823 * xdisp.c (move_iterator_to): Recognize case MOVE_TO_POS and
10824 to_pos in truncated part of a line.
10825
108261998-07-14 Gerd Moellmann <gerd@gnu.org>
10827
10828 * xdisp.c (move_iterator_in_display_line_to): If very first glyph
10829 doesn't fit on the line, truncate it, despite truncate_lines nil.
10830 (display_line): Ditto.
10831
10832 * xfns.c: Experimental support for Ghostscript images.
10833
10834 * xterm.c (x_term_init): Initialize new atoms DONE and PAGE.
10835 (XTread_socket): React on events from Ghostscript.
10836 (expose_frame): If width or height are zero, redraw entire frame.
10837 (XTread_socket): Call expose_frame after receiving event from
10838 Ghostscript.
10839
10840 * xterm.h (struct x_display_info): Add atoms DONE and PAGE
10841 for Ghostscript support.
10842
10843 * xdisp.c (redisplay_internal): Return quickly if called
10844 recursively.
10845
10846 * alloc.c (NSTATICS): Increased to 1024.
10847
108481998-07-08 Gerd Moellmann <gerd@gnu.org>
10849
10850 * xterm.c (x_append_stretch_glyph): Append a stretch glyph to an
10851 iterator's glyph row.
10852 (x_produce_stretch_glyph): Call it.
10853 (x_produce_glyphs): Handle `space-width' property; call
10854 x_append_stretch_glyph.
10855
10856 * xdisp.c (syms_of_xdisp): Add symbol `space-width' used as a text
10857 property.
10858 (get_iterator_space_width): Determine value of `space-width'
10859 property at iterator's position.
10860 (reseat_iterator): Call it.
10861 (next_element_from_string): Ditto.
10862 (next_element_from_buffer): Ditto.
10863 (init_iterator): Initialize space_width of iterator.
10864 (redisplay_internal): Don't goto end_of_redisplay if PT hasn't
10865 moved, but cursor blinks.
10866 (redisplay_internal): Set w->last_cursor_off_p after update.
10867
10868 * dispextern.h (enum iterator_prop_idx): Add SPACE_WIDTH_PROP_IDX.
10869 (struct display_iterator): Add new member space_width.
10870
10871 * window.h (struct window): Add last_cursor_off_p.
10872
108731998-07-07 Gerd Moellmann <gerd@gnu.org>
10874
10875 * Saved.
10876
10877 * window.c (Fpos_visible_in_window_p): Case window not up to
10878 date---return nil if iterator hasn't reached position.
10879
108801998-07-06 Gerd Moellmann <gerd@gnu.org>
10881
10882 * xdisp.c (text_outside_line_unchanged_p): Fix case that
10883 overlays have changed.
10884 (redisplay_window): Case cursor movement. Don't try it if
10885 last_cursor.vpos is out of range.
10886
10887 * xdisp.c (set_cursor_from_row): Set this_line_.* variables. This
10888 way, the display optimization for the line containing the cursor
10889 is used more frequently, esp. when we have a blinking cursor.
10890 (display_line): Don't set this_line_.* variables.
10891
10892 * xterm.c (x_redraw_cursor): Removed.
10893 (x_display_and_set_cursor): Set cursor type depending on
10894 cursor_off_p flag of window.
10895
10896 * dispnew.c (redraw_cursor_hook): Removed.
10897 (Fblink_cursor): Additional parameter on_p to set the cursor_off_p
10898 member of the selected window.
10899
10900 * xfaces.c (Fface_font): Added for compatibility with 20.2.
10901
10902 * xterm.c (x_y_to_hpos_vpos): Return null if not over text.
10903 Return glyph area under x/y.
10904 (note_mouse_highlight): Use x_y_to_hpos_vpos in its new form.
10905
10906 * keyboard.c (detect_input_pending_run_timers): Call gobble_input
10907 after redisplaying.
10908
109091998-07-05 Gerd Moellmann <gerd@gnu.org>
10910
10911 * xdisp.c (text_outside_line_unchanged_p): Test if changes
10912 are all outside of a line of text.
10913 (redisplay_internal): Use it.
10914
109151998-06-30 Gerd Moellmann <gerd@gnu.org>
10916
10917 * xdisp.c (next_element_from_buffer): After skipping over
10918 invisible text, look for the `glyph' property.
10919 (set_iterator_stop_pos): Ignore check positions in front
10920 of an iterator's current position.
10921
10922 * xterm.c (show_mouse_face): Don't act on rows that don't exist
10923 anymore or which are marked as not having valid contents.
10924
10925 * xfaces.c (Finternal_set_lisp_face_attribute): Don't free
10926 realized faces if new attribute value is equal to old value.
10927
109281998-06-29 Gerd Moellmann <gerd@gnu.org>
10929
10930 * xfaces.c (Finternal_make_lisp_face): Increment
10931 lface_id_to_name_size when lface_id_to_name is reallocated.
10932
109331998-06-27 Gerd Moellmann <gerd@gnu.org>
10934
10935 * xdisp.c (set_iterator_stop_pos): Compute initial stop_pos
10936 as minimum of endpos and overlay_pos.
10937 (load_overlay_strings): Set next_overlay_pos of iterator to
10938 -1 if we don't have to check for more overlay strings.
10939
109401998-05-09 Gerd Moellmann <gerd@gnu.org>
10941
10942 * xdisp.c (set_iterator_to_next_visible_line_start): Don't
10943 do anything if iterator is at ZV because scan_buffer doesn't
10944 work otherwise.
10945
10946 * xterm.c (x_encode_char): Inline it.
10947 (x_get_char_font_and_encoding): Simplified.
10948 (x_per_char_metric): Inline it.
10949
10950 * xterm.c (x_draw_glyph_string_relief): Use clipping.
10951
10952 * xdisp.c (get_next_display_element): Check for end of relief
10953 face moved here from next_element_from_buffer.
10954
10955 * xterm.c (x_produce_image_glyph): Add relief thickness.
10956 (x_produce_stretch_glyph): Ditto.
10957
109581998-05-08 Gerd Moellmann <gerd@gnu.org>
10959
10960 * xdisp.c (fill_iterator_from_glyph_property): Handle glyph
10961 property value (space :width WIDTH :height HEIGHT :ascent ASCENT).
10962
10963 * xterm.c (x_produce_stretch_glyph): Produce a stretch glyph
10964 from a glyph property.
10965 (x_produce_glyphs): Use it.
10966
10967 * xdisp.c (set_iterator_to_next): Handle next_element_from_stretch.
10968
427ec082 10969 * xterm.c (x_produce_image_glyph): Add to current_x only if
26901792
DL
10970 in text area.
10971 (x_produce_glyphs): Ditto.
10972
427ec082 10973 * xdisp.c (display_line): Compute row height from glyphs in
26901792
DL
10974 marginal areas.
10975
427ec082 10976 * xterm.c (x_draw_image_glyph_string_background): Draw
26901792 10977 background of an image glyph string.
427ec082 10978 (x_draw_glyph_string_bg_rect): Draw a rectangular region of
26901792
DL
10979 the background of a glyph string.
10980 (x_draw_image_glyph_string_foreground): Draw the foreground of
10981 an image glyph string.
10982 (x_inverted_image_mask): Return the inverted mask of an image.
10983
10984 * xfns.c (x_draw_image): Removed.
10985
10986 * dispextern.h (struct image_type): Remove drawing function.
10987
10988 * xfaces.c (load_face_colors): Swap colors if face is inverse.
10989
10990 * xdisp.c (get_next_display_element): In marginal areas, translate
10991 newlines, tabs, etc. like normal control characters.
10992
10993 * xfaces.c (Fface_color_supported_p): Transpose parameters frame
10994 and color.
10995 (free_realized_faces): Set frame garbaged.
10996
10997 * xfaces.c (syms_of_xfaces): Add defsubr for
10998 internal-lisp-face-attribute-values.
10999
110001998-05-07 Gerd Moellmann <gerd@gnu.org>
11001
11002 * xterm.c (x_produce_image_glyph): Don't add glyph if area is
11003 full.
11004 (x_produce_image_glyph): Set IT->nglyphs to 1.
11005 (x_draw_image_glyph_string): Use inverted mask to draw background.
11006
11007 * dispextern.h (struct image_type): Additional clipping rect
11008 parameters for drawing functions.
11009
427ec082 11010 * xterm.c (x_get_glyph_string_clip_rect): Get clip rect for
26901792
DL
11011 a glyph string.
11012 (x_draw_image_glyph_string): Use it and pass the rect to the
11013 image drawing function.
11014
11015 * xdisp.c (fill_iterator_from_glyph_property): Use position of
11016 first character with `glyph' property as image position. Set
11017 iterator back to that position as long as the image hasn't been
11018 consumed with set_iterator_to_next.
11019 (set_cursor_from_row): Accept when glyph with given position is
11020 not found in the row. Set cursor x to end of line in that case,
11021 so that we can hscroll.
11022 (redisplay_internal): Correct computation of delta by which
11023 positions have changed in redisplay optimization for cursor
11024 row of selected window.
11025
11026 * xdisp.c (display_line): Remove start_pos.
427ec082 11027 (display_line): Fix bug preventing display optimization for
26901792
DL
11028 cursor line of selected window.
11029 (next_element_from_buffer): Avoid XSETBUFFER, use it->w->buffer
11030 instead.
11031
11032 * dispnew.c (update_text_area): Use GLYPH_EQUAL_P.
11033 (update_text_area): Take glyph pixel width into account
11034 when trying to find a resync point.
11035 (row_equal_p): Compare glyphs in all areas.
11036
110371998-05-06 Gerd Moellmann <gerd@gnu.org>
11038
11039 * xterm.c (x_produce_glyphs): Don't add glyph if area is full.
11040
11041 * dispextern.h (struct glyph_row): Use unsigned hash value.
11042
11043 * xdisp.c (display_line): Simplified and made faster by setting
11044 the cursor with set_cursor_from_row.
11045 (set_cursor_from_row): Handle rows of desired matrix.
11046
110471998-05-05 Gerd Moellmann <gerd@gnu.org>
11048
11049 * xdisp.c (set_cursor_from_row): Don't put cursor on glyphs
11050 with type != CHAR_GLYPH.
11051 (fill_iterator_from_glyph_property): Return void. Set
11052 method to next_element_from_image.
11053 (next_element_from_image): Dummy function for delivering a
11054 single image id.
11055 (set_iterator_to_next): Add method next_element_from_image.
11056 (redisplay_window): When recentering, and cursor vpos is -1
11057 after display, assume middle of window is in first line displayed
11058 in window, and display again.
427ec082 11059 (fill_iterator_from_glyph_property): Assign image glyph
26901792
DL
11060 the position of the first character having the glyph property.
11061
11062 * dispextern.h (IMAGE_ASCENT): Compute ascent of image.
11063 * xfns.c (x_draw_image): Use it.
11064 * xterm.c (x_produce_image_glyph): Use it.
11065
11066 * xterm.c (x_produce_image_glyph): Set iterator's pixel_width.
11067
11068 * Makefile.in: Extraneous #define of LIBXPM removed.
11069
11070 * xterm.c (x_produce_glyphs): Produce a STRETCH_GLYPH for tabs.
427ec082 11071 (x_fill_stretch_glyph_string): Fill a glyph string from a
26901792
DL
11072 stretch glyph.
11073 (x_compute_glyph_string_overhangs): Compute overhangs only
11074 for text glyph strings.
11075 (x_draw_stretch_glyph_string): Draw a stretch glyph string.
11076 (x_draw_glyph_string): Call it.
11077
11078 * dispextern.h (glyph_type): Add STRETCH_GLYPH.
11079 (struct glyph): Add sub-structure for stretchable glyphs.
11080 (GLYPH_EQUAL_P): Compare glyph type and u.val.
11081
11082 * xdisp.c (get_overlay_arrow_glyph_row): Put face code into
11083 #ifdef HAVE_FACES.
11084
11085 * xterm.c (x_produce_glyphs): Use ASCII face for spaces of a TAB.
11086
11087 * xdisp.c (fill_iterator_from_glyph_property): Renamed from
11088 setup_iterator_from_glyph_property. Don't do it for terminal
11089 frames.
11090
11091 * xterm.c (x_produce_image_glyph): Produce glyph for image
11092 that can't be loaded.
11093
11094 * xfns.c (lookup_image): If image can't be loaded, set its
11095 width and height so that we can draw a rectangle.
11096 (x_draw_image): Draw a rectangle for images that don't have
11097 a pixmap.
11098 (make_image): Set hash value.
11099 (image_spec_equal_p): Use image_spec_value.
11100
11101 * xterm.c (expose_frame): Don't try to redraw if basic faces
11102 haven't benn realized yet.
427ec082 11103 (x_draw_image_glyph_string): Fill background only if image
26901792
DL
11104 is not as tall as row.
11105
111061998-05-04 Gerd Moellmann <gerd@gnu.org>
11107
11108 * Makefile.in (LIBXPM): If not already defined, define to -lXpm.
11109 (LIBX)[HAVE_X11]: Add LIBXPM.
11110
11111 * xfns.c (xpm_image_p): Implementation of image type functions
11112 for XPM.
11113 (xpm_load): Ditto.
11114
11115 * dispextern.h (struct image): Add mask pixmap for XPM.
11116
11117 * xfns.c (x_draw_image): Handle images with masks.
11118
11119 * configure.in: --with-xpm added. Code detecting -lXpm added.
11120
11121 * config.in: Add HAVE_XPM.
11122
11123 * xfns.c (xbm_draw): Removed.
11124 (x_draw_image): Default implementation for drawing images.
11125 (xbm_keyword_index): Remove XBM_DEPTH.
11126 (xbm_format): Remove `:depth'.
11127 (xbm_image_spec_from_file): Removed to reduce consing.
427ec082 11128 (xbm_load_image_from_file): Added for the same reason.
26901792 11129
427ec082 11130 * xterm.c (x_fill_image_glyph_string): Don't set ybase of
26901792
DL
11131 glyph string.
11132 (x_draw_image_glyph_string): Pass ybase to image draw function.
11133
11134 * xfns.c (make_image): Set default baseline.
11135
11136 * xterm.c (x_produce_image_glyph): Compute ascent of image
11137 from its height and baseline percentage.
11138
11139 * xfns.c (xbm_keyword_index): Add XBM_BASELINE.
11140 (xbm_format): Add description for `:baseline'.
11141 (xbm_image_spec_from_file): Add keywords from original spec to
11142 result.
11143 (xbm_load): Set baseline of image.
11144 (xbm_image_p): Check range for baseline.
11145
11146 * dispextern.h (struct image): Add member baseline.
11147
11148 * xdisp.c (dump_glyph_matrix): Handle image glyphs.
11149
11150 * term.c (produce_glyphs): Change assertion to allow DISP_IMAGE.
11151
11152 * xdisp.c (get_next_display_element): Do character translations
11153 only if delivering characters.
11154
111551998-05-03 Gerd Moellmann <gerd@gnu.org>
11156
427ec082 11157 * dispextern.h (ITERATOR_AT_END_OF_LINE_P): Test for
26901792
DL
11158 DISP_CHARACTER.
11159
11160 * xterm.c (x_produce_image_glyph): Poduce image glyphs.
11161 (x_produce_glyphs): Call x_produce_glyphs for DISP_IMAGE.
11162
111631998-05-02 Gerd Moellmann <gerd@gnu.org>
11164
11165 * xfns.c (prepare_image_for_display): Set image timestamp.
11166 (clear_image_cache): Clear images if image's timestamp +
11167 Vimage_eviction_seconds is > now.
11168 (syms_of_xfns): New variables image-eviction-seconds, and
11169 image-types.
11170 (add_image_format): Add to image-types.
11171 (xbm_load): Support new image spec format.
11172 (x_alloc_image_color): Allocate a color for an image.
11173
11174 * dispextern.h (struct image): Add timestamp.
11175
11176 * xfns.c (xbm_image_p): Allow bool-vectors, vectors of strings and
11177 vectors of bool-vectors.
11178 (xbm_lisp_object_from_file): Build new format image spec.
11179
111801998-05-01 Gerd Moellmann <gerd@gnu.org>
11181
11182 * xfaces.c (init_frame_faces): Initialize image cache.
11183 (free_frame_faces): Free it.
11184
11185 * xterm.c (x_delete_display): Don't free image cache.
11186
11187 * emacs.c (main): Call init_xfns.
11188
111891998-04-30 Gerd Moellmann <gerd@gnu.org>
11190
11191 * alloc.c (mark_object): Mark objects in image cache.
11192
427ec082 11193 * xfns.c (x_set_internal_border_width): Correct call to
26901792
DL
11194 widget_store_internal_border_width.
11195
11196 * widget.c (widget_store_internal_border): Return void.
11197
11198 * xfns.c (x_destroy_bitmap): Use xfree instead of free. Return
11199 void.
11200 (init_x_parm_symbols): Return void.
11201 (x_report_frame_params): Ditto.
11202 (x_set_border_pixel): Ditto.
11203 (syms_of_xfns): Ditto.
11204 (x_destroy_all_bitmaps): Use xfree instead of free.
11205
11206 * xterm.h (FRAME_X_IMAGE_CACHE): Access the image cache of a frame.
11207
11208 * xterm.c (x_term_init): Initialize image_cache of display info.
11209 (x_delete_display): Free image cache.
11210
11211 * xterm.h (struct x_display_info): Add image_cache.
11212
11213 * xfns.c (make_image_cache): Allocate a new image cache.
11214 (free_image_cache): Free an image cache.
11215 (make_image): Allocate an image.
11216 (free_image): Free an image.
11217
11218 * dispextern.h (struct image): Structure describing an image.
11219 (struct image_cache): Structure describing an image cache.
11220
112211998-04-29 Gerd Moellmann <gerd@gnu.org>
11222
11223 * xdisp.c (check_iterator_glyph_property): Return int. Value is
11224 non-zero if iterator is filled with something to return.
11225 (next_element_from_buffer): Immediately return if
11226 setup_iterator_from_glyph_prop has filled iterator with pixmap.
11227 (next_element_from_string): Likewise.
11228
11229 * xfaces.c (load_pixmap): Allow to pass null for W_PTR and H_PTR.
11230
11231 * dispextern.h (struct glyph): Add pixmap_id.
11232 (display_element_type): Add DISP_PIXMAP.
11233
11234 * xmenu.c (popup_get_selection): Use xmalloc/xfree instead of
11235 malloc/free.
11236
11237 * xfaces.c (clear_font_table): Free fonts not used by fontsets.
11238 (clear_face_cache): Call it.
11239
11240 * xterm.c (x_query_font): Don't look at empty font table slots.
11241 (x_compute_min_glyph_bounds): Likewise.
11242 (x_term_init): Initialize font_table to null.
11243 (x_load_font): Change allocation of font_info structures so
11244 that it is possible to free fonts.
11245
427ec082 11246 * xfns.c (Fx_close_connection): Use xfree instead of free.
26901792
DL
11247 Only free fonts from filled font table entries.
11248
11249 * xfaces.c (best_matching_font): Support use of scalable fonts.
11250 (Fface_scalable_fonts_mode): Toggle use of scalable fonts.
11251
11252 * xterm.h (struct x_display_info): Remove screen_dpi, add resx
11253 and resy.
11254 * xterm.c (x_term_init): Compute resx and resy.
11255
11256 * xfaces.c (split_font_name): Don't reject scalable fonts.
11257
427ec082 11258 * xterm.c (x_list_fonts): Set code exclusing scalable fonts
26901792
DL
11259 in #if 0.
11260
11261 * xfaces.c (xlfd_point_size): Return 0 for fonts whose real
11262 point size cannot be determined.
11263
11264 * xterm.h (FRAME_SMALLEST_CHAR_WIDTH): Return smallest character
11265 width over all fonts on a frame.
11266 (FRAME_SMALLEST_FONT_HEIGHT): Likewise for font height.
11267 * dispnew.c (adjust_frame_glyphs_for_window_redisplay): Use these
11268 macros.
11269
11270 * xterm.c (x_font_min_bounds): Moved here from xfaces.c.
11271 (x_compute_min_char_bounds): Formerly min_char_bounds in xfaces.c.
11272 (x_load_font): Use x_compute_min_char_bounds.
11273
11274 * xterm.h (struct x_display_info): New members smallest_char_width
11275 and smallest_font_height.
11276
112771998-04-28 Gerd Moellmann <gerd@gnu.org>
11278
11279 * dispextern.h (PREPARE_FACE_FOR_DISPLAY): Call function with
11280 the same name if GC of face is zero.
11281
11282 * dispextern.h (struct face): Member non_ascii_gc removed.
11283
11284 * xterm.c (x_get_char_font_and_encoding): Return face's font
427ec082 11285 for characters < 0177 in default face. Prepare face for
26901792
DL
11286 display before returning it.
11287 (x_produce_glyphs): Use it->charset.
11288 (x_get_char_font_and_encoding): Simplified.
11289 (x_encode_char): Remove parameter `font'.
11290
11291 * xfaces.c (choose_face_font): If registry from charset symbol
11292 doesn't contain a `-', make it a pattern by appending "*-*".
11293
11294 * xdisp.c (check_iterator_glyph_property): Adjust limit for
11295 glyph_check_pos computation to character boundary.
11296
112971998-04-27 Gerd Moellmann <gerd@gnu.org>
11298
11299 * fontset.h (FONT_INFO_FROM_ID): Return null if ID is invalid.
11300
11301 * xfaces.c (ascii_face_of_lisp_face): Get the id of the realized
11302 ASCII face for a given Lisp face id.
11303
11304 * xdisp.c (set_iterator_stop_pos): Take glyph_check_pos into
11305 account.
427ec082 11306 (reseat_iterator): Set glyph_check_pos. Handle case where
26901792
DL
11307 new position is < original position.
11308 (check_iterator_glyph_property): Handle glyph property in strings.
11309 (next_element_from_string): Call above function.
11310 (next_element_from_display_vector): Handle faces in glyphs.
11311 (get_next_display_element): Set face_id of glyphs for
11312 control chars to zero.
11313
11314 * Makefile.in (term.o): Add dependency on dispextern.h.
11315
11316 * xdisp.c (syms_of_xdisp): Add symbol `glyph'.
11317 (display_line): Handle marginal areas.
11318 (move_iterator_in_display_line_to): Likewise.
11319
11320 * xfaces.c (Finternal_make_lisp_face): Assign Lisp faces an id.
11321
11322 * xfaces.c (face_at_buffer_position): Don't merge with nil
11323 text property.
11324 (face_at_string_position): Ditto.
11325
11326 * dispextern.h (struct display_iterator): Use a stack of saved
11327 values instead of saving check positions etc. individually.
11328
11329 * xdisp.c (set_iterator_to_next): If end of Lisp string reached,
11330 maybe pop the iterator's stack.
11331 (save_iterator_settings): Push a value on iterator's stack.
11332 (get_overlay_strings_at_iterator_position): Use it.
11333 (restore_iterator_settings): Pop the stack.
11334 (set_iterator_to_next_overlay_string): Use it.
11335
11336 * xfaces.c (try_font_list): Use alternative font families.
11337
113381998-04-26 Gerd Moellmann <gerd@gnu.org>
11339
11340 * xfaces.c (Fset_face_font_sort_order): Set the order in which
11341 font selection matches fonts.
11342 (Fface_font_sort_order): Return the font sort order.
11343 (best_matching_font): Find best matching font based on sort order.
11344 (cmp_font_names): Sort by given sort order.
11345
11346 * dispextern.h (struct display_iterator): New member faces_p.
11347 * xdisp.c (init_iterator): Initialize it->faces_p.
11348 (compute_face_at_iterator_string_position): Use it.
11349 (compute_face_at_iterator_position): Use it.
11350 (init_iterator): Use it.
11351 (display_mode_line): Ditto.
11352
11353 * xdisp.c (get_next_display_element): Put code choosing a face
11354 when the charset changes in #ifdef HAVE_FACES.
11355
427ec082 11356 * dispextern.h (FACE_FOR_CHARSET): Replacement for function
26901792
DL
11357 lookup_face_for_charset.
11358
11359 * xfaces.c (free_font_names): Renamed from free_split_font_names.
11360 (free_all_realized_faces): Renamed from remove_all_realized_faces.
11361
113621998-04-25 Gerd Moellmann <gerd@gnu.org>
11363
11364 * xfaces.c (best_matching_font): Return the name of the best
11365 matching font in an array of font_name structures.
11366 (choose_face_font): Use it.
11367 (choose_face_fontset_font): Use it.
11368 (find_best_weight_font): If final font found has same weight as
11369 the font we started with, return the original font because it is a
11370 better match for the resolution of the display.
11371 (find_best_slant_font): Likewise.
11372 (merge_face_vector_with_property): Check more invalid attribute
11373 values.
11374 (lface_suitable_for_charset_p): Replaced by a macro with the same
11375 name in upper-case.
11376
113771998-04-24 Gerd Moellmann <gerd@gnu.org>
11378
11379 * dispextern.h (struct face): Member
11380 fontset_chosen_for_realization_p removed.
11381
11382 * xfaces.c (cache_face): If face->fontset >= 0, add face to the
11383 end of the collision list, so that we find more specific faces
11384 first.
11385 (lookup_face_for_charset): Look up a new face if face->fontset >=
11386 0, and charset != CHARSET_COMPOSITION.
11387
11388 * xfaces.c (split_font_name): Return zero if point size of font
11389 couldn't be computed.
11390 (realize_default_face): Use ASCII font of a fontset to determine
11391 font-related attributes of the default face.
11392 (face_fontset): Return fontset id for face family.
11393 (font_list): Additional parameter font_pattern. If non-nil,
11394 return fonts matching that pattern.
11395
113961998-04-23 Gerd Moellmann <gerd@gnu.org>
11397
11398 * xfaces.c (choose_face_fontset): If new fontset cannot be
11399 constructed, or fontset name cannot be split, return the id of the
11400 standard fontset.
11401
11402 * xterm.c (XTframe_up_to_date): Check that frame is an X frame.
11403 When Emacs starts, it may be called for the initial frame which
11404 isn't an X frame.
11405
11406 * dispextern.h (struct face): New members foreground_defaulted_p,
11407 background_defaulted_p.
11408 (struct face): Members `mask' and `cache' removed.
11409
11410 * xfaces.c (load_color): Set them.
11411 (free_face_colors): Check them.
427ec082 11412 (xlfd_point_size): Return -1 if resolution or point size of
26901792
DL
11413 font unknown.
11414
11415 * xfaces.c (free_font): Removed.
11416 (load_face_font_or_fontset): Renamed from load_font.
11417 (load_face_font_or_fontset): Use message2 instead of signalling.
11418 (load_color): Likewise.
11419 (load_pixmap): Likewise.
11420
11421 * xterm.h (struct x_display_info): Add screen_dpi.
11422 * xterm.c (x_term_init): Initialize it.
11423 * xfaces.c (xlfd_point_size): Use it.
11424 (split_font_name): Compute numeric XLFD_RESY.
427ec082 11425 (cmp_font_names): Make fonts with an y-resolution more
26901792
DL
11426 similar to that of the frame appear first in the result.
11427
11428 * xfaces.c (cache_face): If fontset_chosen_for_realization_p
11429 is set for the face to cache, add it to the end of the collision
11430 list.
11431 (try_font_list): If fonts for given family and registry cannot
11432 be found, first try to keep the registry, and choose a different
11433 family.
11434 (choose_face_font): Allow nfonts == 0.
11435 (try_font_list): Give up if no font matches given registry.
11436
114371998-04-22 Gerd Moellmann <gerd@gnu.org>
11438
11439 * xterm.c (x_get_char_font_and_encoding): Get font_info from
11440 font info id of the face.
11441
11442 * xfaces.c (load_font): Set font_info_id.
11443 (realize_face): Ditto.
11444
11445 * dispextern.h (struct face): Change member font_info to
11446 font_info_id.
11447
11448 * fontset.h (FONT_INFO_ID): Build an ID from a font_info pointer.
11449 (FONT_INFO_FROM_ID): Get a font_info pointer from an ID.
11450
11451 * xdisp.c (extend_face_to_end_of_line): If IT's current charset
11452 isn't ASCII, get the ASCII face before adding a space.
11453 (append_space): Likewise.
11454 (insert_left_trunc_glyphs): Initialize truncate_it's charset
11455 to -1 so that it will compute the right face for the truncation
11456 glyphs.
11457
11458 * xfaces.c (realize_face): Set
11459 face->fontset_chosen_for_realization_p.
11460 (lookup_face_for_charset): If fontset wasn't specified originally
11461 and new charset != CHARSET_COMPOSITION, get a new face for that
11462 charset.
11463
11464 * dispextern.h (struct face): New member
11465 fontset_chosen_for_realization_p_specified_p. Set to 1 when
11466 realize_face has chosen a fontset to display composite characters
11467 for a Lisp face not specifying a fontset.
11468
11469 * xdisp.c (extend_face_to_end_of_line): Move tests for default
11470 face and line already filled here. Don't do anything if current
11471 face hasn't a relief or has a background equal to the frame
11472 background.
11473
11474 * xfaces.c (split_font_name): Additional parameter numeric_p.
11475 Don't compute numeric values if it is non-zero.
11476 (choose_face_fontset): Call split_font_name with numeric_p == 0.
427ec082 11477 (choose_face_fontset): Print a message if fontset contains a
26901792
DL
11478 font whose name cannot be split into fields.
11479
114801998-04-21 Gerd Moellmann <gerd@gnu.org>
11481
427ec082 11482 * xfaces.c (try_font_list): Try to load a list of fonts,
26901792
DL
11483 possibly using less restrictive patterns.
11484 (choose_face_font): Use it.
11485
11486 * xterm.c (x_get_char_font_and_encoding): For charset !=
11487 CHARSET_ASCII use font_info of face if face hasn't a fontset set.
11488
11489 * dispextern.h (struct face): New member font_info.
11490
11491 * xfaces.c (load_font): Use FS_LOAD_FONT to load fonts for faces
11492 specifying a fontset as well as those not having a fontset.
11493 (free_font): Make it empty.
11494 (realize_face): Use changed load_font.
11495
11496 * xterm.c (x_get_char_font_and_encoding): If face doesn't
11497 fit for charset, get the right one.
11498
11499 * xfaces.c (load_font): Take frame and name parameter, return
11500 font.
11501 (free_font): Likewise.
11502 (split_font_name): Compute numeric values for height, swidth etc.
11503 (cmp_font_names): Use them.
11504 (find_best_width_font): Ditto.
11505 (find_best_height_font): Ditto.
11506 (find_best_weight_font): Ditto.
11507 (find_best_slant_font): Ditto.
11508 (lface_hash): Add weight, slant, swidth and relief to hash value.
11509 (lface_equal_p): Make it faster.
11510 (lface_from_symbol): Use assq_no_quit.
11511 (Fnote_default_face_changed): Removed.
11512 (cmp_font_names): Use strcmp instead of xstricmp.
11513 (face_charset_registries): Removed.
11514
115151998-04-20 Gerd Moellmann <gerd@gnu.org>
11516
11517 * frame.h (CHECK_FRAME): Give this macro a statement form.
11518 (CHECK_LIVE_FRAME): Ditto.
11519
11520 * xfaces.c (find_best_width_font): Find the best matching font
11521 for a given width.
11522 (find_best_height_font): Likewise for height.
11523 (find_best_weight_font): Likewise for weight.
11524 (find_best_slant_font): Likewise for slant.
11525 (choose_face_font): Use them.
11526 (get_lface_attributes): Always return frame-local face attrs.
427ec082 11527 (Finternal_merge_in_global_face): Merge local face with
26901792
DL
11528 global face attributes.
11529
11530 * xfaces.c (check_lface_attrs, check_lface): Check consistency of
11531 Lisp face attributes.
11532
115331998-04-19 Gerd Moellmann <gerd@gnu.org>
11534
11535 * xfaces.c (Finternal_set_lisp_face_attribute): Add :bold
11536 and :italic for compatibility.
11537 (Finternal_set_lisp_face_attribute_from_resource): Handle
427ec082 11538 :bold and :italic. Handle boolean resource values for
26901792
DL
11539 :underline and :italic.
11540
11541 * xfns.c (display_x_get_resource): Make it externally visible.
11542
11543 * xfaces.c (lface_from_symbol): Take a frame as parameter.
11544 If that frame is non-null, return the frame-local face.
11545 (Finternal_make_lisp_face): Additional frame argument.
11546 (lface_attributes): Get face attributes from global and frame-local
11547 definitions.
11548 (Finternal_lisp_face_equal_p): Additional frame argument.
11549 (merge_lisp_face_vector_with_property): Ditto.
11550 (Frealize_basic_faces): Removed.
11551 (Finternal_get_lisp_face_attribute): Additional frame argument.
11552 (Finternal_lisp_face_p): Ditto.
11553 (load_color) [MSDOS]: Removed because it isn't clear how
11554 to do this for MS-DOS.
11555
11556 * xfaces.c (lface_from_symbol): Get global face definition
11557 from face-global-alist.
11558
11559 * xfaces.c (Finternal_set_lisp_face_attribute): Allow `t'
11560 as values for :underline and :inverse-video.
11561 (Finternal_set_lisp_face_attribute): Allow nil values.
11562
115631998-04-17 Gerd Moellmann <gerd@gnu.org>
11564
11565 * xfaces.c (Finternal_make_lisp_face): Return Lisp face vector.
11566
11567 * xfaces.c (syms_of_xfaces): Add Vall_faces.
11568 (Finternal_make_lisp_face): Add new face to Vall_faces.
11569
11570 * xdisp.c (echo_area_display): Remove code recomputing faces.
11571 (redisplay_internal): Ditto.
11572 (init_iterator): Do it here.
11573
11574 * xfaces.c (choose_face_font): Check that swidth doesn't change
11575 for subusequent attributes.
11576 (xlfd_point_size): Return int.
11577
11578 * xdisp.c (redisplay_internal, echo_area-display): If realized
11579 faces have been cleared, call recompute_basic_faces.
11580
11581 * xfaces.c (recompute_basic_faces): Free realized faces. Reset
11582 face_attributes_changed_p.
427ec082 11583 (remove_all_realized_faces): Remove all realized faces on
26901792
DL
11584 all frames.
11585 (Finternal_set_lisp_face_attribute): Call remove_all_realized_faces.
11586
11587 * xdisp.c (redisplay_internal): If face attributes have been
11588 changed since the last redisplay, recompute basic faces.
11589 (echo_area_display): Ditto.
11590
11591 * xfaces.c (clear_face_gcs): Renamed from clear_realized_face_cache.
11592
11593 * xfaces.c (min_char_bounds): If face cache not yet present,
11594 don't try to get font dimensions from faces.
11595
11596 * xterm.c (x_frame_mode_line_height): If face cache not present
11597 set, return default height.
11598
11599 * alloc.c (mark_face_cache): Check for null faces. Correct
11600 index bug.
11601
11602 * dispextern.h (struct face): Renamed from struct rface. Member
11603 underline renamed underline_p. Make it a bit-field.
11604
11605 * xfaces.c (init_frame_faces): Allocate face cache.
11606 (free_frame_faces): Free face cache.
11607 (recompute_basic_faces): Realize basic faces only if face cache is
11608 allocated, i.e. after init_frame_faces has been called.
11609
11610 * frame.c (make_frame): Initialze face cache with null.
11611
11612 * xfaces.c (same_size_fonts): Removed.
11613
427ec082 11614 * xterm.c (x_set_glyph_string_gc): Add post-condition
26901792
DL
11615 s->gc != 0.
11616 (x_set_mouse_face_gc): Ditto.
11617 (x_set_mode_line_face_gc): Ditto.
11618
427ec082
SS
11619 * xfaces.c (realize_default_face): Return int. Value is
11620 zero if frame params don't contain enough information to
26901792
DL
11621 realize the default face.
11622 (realize_basic_faces): Ditto.
11623 (init_frame_faces): Realize basic faces.
11624
11625 * xfns.c (x_set_font): First store real font name in frame
11626 parameters, then call recompute_basic_faces.
11627
11628 * xfaces.c (recompute_basic_faces): Call realize_basic_faces.
11629
116301998-04-16 Gerd Moellmann <gerd@gnu.org>
11631
11632 * xfaces.c (syms_of_xfaces): Correct calls to defsubr.
11633
11634 * xfns.c (Fx_face_fixed_p): Removed.
11635 (Fx_list_fonts): Moved to xfaces.c.
11636
11637 * xfaces.c (compute_face_at_buffer_pos): Renamed to
11638 face_at_buffer_position. Parameter charset removed; always
11639 compute face for CHARSET_ASCII.
11640 (face_at_string_position): Renamed from
11641 compute_face_at_string_pos. Parameter charset removed; always
11642 compute for CHARSET_ASCII.
427ec082 11643 (lookup_face_for_charset): Take frame parameter instead of
26901792
DL
11644 face_cache.
11645 (lookup_face): Ditto.
11646 (compute_char_face): Renamed from compute_glyph_face.
11647
11648 * xdisp.c (init_iterator): Initialize charset member.
11649 (reseat_iterator_to_string): Ditto.
11650 (get_charset_at_buffer_position): Determine charset at
11651 buffer position in current_buffer.
11652 (reseat_iterator): Call above function.
11653 (compute_face_at_iterator_position): Call
11654 compute_face_at_buffer_pos.
11655 (compute_face_at_iterator_string_position): Call
11656 compute_face_at_string_pos.
11657 (get_face_from_id): Removed.
11658 (get_face_from_cursor_pos): Call compute_face_at_buffer_pos.
11659 Call get_charset_at_buffer_position.
11660 (reseat_iterator): Determine face if charset at pos differs
11661 from iterator's charset.
11662 (reseat_iterator_to_glyph_pos): Removed.
11663
11664 * xfaces.c (compute_face_at_bufpos): Remove parameter charset.
11665 Determine charset from buffer position.
11666 (compute_string_char_face): Renamed to compute_face_at_string_pos.
11667 (compute_face_at_bufpos): Renamed to compute_face_at_buffer_pos.
11668
11669 * dispextern.h (struct display_iterator): Add member charset.
11670
116711998-04-15 Gerd Moellmann <gerd@gnu.org>
11672
11673 * xfaces.c (compute_char_face): Removed.
11674
11675 * xdisp.c (get_overlay_arrow_glyph_row): Use compute_glyph_face
11676 with new parameter list.
11677
11678 * xfaces.c (region_face): Removed.
11679 (allocate_face): Removed.
11680 (copy_face): Ditto.
11681 (face_eql): Removed.
11682 (intern_face): Removed.
11683 (clear_face_cache): Removed.
11684 (load_font): Ditto.
11685 (unload_font): Ditto.
11686 (load_color): Ditto.
11687 (unload_color): Ditto.
11688 (new_computed_face): Ditto.
11689 (intern_computed_face): Ditto.
11690 (ensure_face_ready): Ditto.
11691 (merge_faces): Ditto.
11692 (compute_base_face): Ditto.
11693 (merge_face_list): Ditto.
11694 (Fmake_face_internal): Removed.
11695 (Fset_face_attribute_internal): Ditto.
11696 (face_name_id_number): Removed.
11697 (Fframe_face_alist): Ditto.
11698 (Fset_frame_face_alist): Ditto.
11699 (Finternal_next_face_id): Ditto.
11700
11701 * xterm.h (struct x_output): Remove computed_faces, and
11702 param_faces. Remove macros accessing them.
11703
11704 * xfaces.c: Entirely new face implementation added.
11705
117061998-04-11 Gerd Moellmann <gerd@gnu.org>
11707
11708 * dispextern.h (struct glyph_pos): Member `bufpos' renamed
11709 `charpos'.
11710
117111998-04-10 Gerd Moellmann <gerd@gnu.org>
11712
11713 * xterm.c (x_scroll_bar_move): Clear only regions not covered by
11714 scroll bar window to reduce flickering. Clear entire height.
11715
11716 * xdisp.c (move_iterator_vertically_backward): Set iterator's
11717 current_x and hpos to zero after moving to previous line
11718 start.
11719
117201998-04-03 Gerd Moellmann <gerd@gnu.org>
11721
11722 * frame.h (FRAME_FACE_CACHE): Access to a frame's face cache.
11723
11724 * xfaces.c (xlfd_point_size): Compute relative point size of
11725 fonts from font and frame resolution.
11726 (sort_fonts): New function to sort fonts, temporarily setting
11727 font_frame to the frame in effect.
11728 (xlfd_point_size): Take additional frame parameter to be able
11729 to get at the display's resolution.
11730
11731 * xterm.c (x_setup_relief_colors): Use WHITE_PIX_DEFAULT and
11732 BLACK_PIX_DEFAULT.
11733 (x_setup_relief_color): Use FRAME_X_SCREEN instead of default
11734 screen of display.
11735
117361998-03-31 Gerd Moellmann <gerd@gnu.org>
11737
11738 * xfaces.c (choose_face_fontset): Instantiate fontsets.
11739
11740 * fontset.h: Add external declarations for Vfontset_alias_alist
11741 and Vglobal_fontset_alist.
11742
11743 * xfaces.c (merge_lisp_face_vector_with_property): Simplified.
11744 (realize_default_face): If frame parameters contain an artificial
11745 font name naming a fontset, set the family of the default face to
11746 the fontset name given by the registry.
11747
11748 * Makefile.in (alloc.o): Add dependency to dispextern.h.
11749
117501998-03-22 Gerd Moellmann <gerd@gnu.org>
11751
11752 * alloc.c (mark_object): Add function prototype. Add cast to
11753 Lisp_Object pointer in call to mark_object for symbol names
11754 because this otherwise gives a warning from gcc 2.8.1.
11755 (mark_face_cache): Mark Lisp objects in realized faces.
11756
117571998-03-19 Gerd Moellmann <gerd@gnu.org>
11758
11759 * frame.h (struct frame): Add member face_cache.
11760
11761 * alloc.c (mark_object): Mark face cache.
11762 (mark_face_cache): Mark Lisp faces in face cache of frame.
11763
11764 * frame.c (make_frame): Initialize face_cache.
11765 (Fdelete_frame): Free it.
11766
117671998-03-18 Gerd Moellmann <gerd@gnu.org>
11768
11769 * xfaces.c: Very first skeleton of functions for face realization,
11770 face merging, face cache etc.
11771
11772 * dispextern.h (struct rface): Realized faces. Will replace
11773 struct face when tested.
11774 (struct face_cache): Realized face caches.
11775
11776 * xdisp.c (init_iterator): Initialize area member of display
11777 iterator.
11778
117791998-03-17 Gerd Moellmann <gerd@gnu.org>
11780
11781 * xterm.c (x_append_glyph): Use it->area to store glyphs.
11782
11783 * dispextern.h (struct display_iterator): New member area.
11784
11785 * xterm.c (note_overwritten_text_cursor): Note when the text
11786 cursor of a window is overwritten.
11787
11788 * xdisp.c (set_cursor_from_row): If PT is not found in the
11789 row, display the cursor at the start of the row.
11790
11791 * dispnew.c (direct_output_forward_char): Call
11792 set_cursor_from_row.
11793
11794 * xdisp.c (setup_iterator_overlay_strings_from_glyph_pos): If
11795 position is not in an overlay string, set iterator's position and
11796 method explicitly so.
427ec082 11797 (set_cursor_from_row): Correct cursor position calculation.
26901792
DL
11798 Make it externally visible.
11799 (redisplay_window): Call set_cursor_from_row so that there is only
11800 one place where the cursor position is calculated from a current
11801 row.
11802
11803 * dispextern.h (struct display_iterator): New member
11804 overlay_strings_at_end_processed_p.
11805
11806 * xdisp.c (check_iterator): Perform sanity checks on
11807 display_iterators.
11808 (next_element_from_buffer): Check for overlay strings at ZV.
11809
118101998-03-16 Gerd Moellmann <gerd@gnu.org>
11811
11812 * buffer.c (init_buffer_once): Add left_margin_width and
11813 right_margin_width to buffer_local_flags.
11814
11815 * dispnew.c (margin_glyphs_to_reserve): Function computing
11816 number of glyphs to reserve for a marginal area.
11817 (adjust_glyph_matrix): Call it.
11818 (adjust_frame_glyphs_for_frame_redisplay): Return if frame
11819 is not alive.
11820
11821 * window.c (Fset_window_margins): Allow floats.
11822
11823 * buffer.c (syms_of_buffer): Add buffer-local variables
11824 left-margin-width and right-margin-width. Add defaults
11825 default-left-margin-width and default-right-margin-width.
11826
11827 * buffer.h (struct buffer): New members left_margin_width
11828 and right_margin_width.
11829
11830 * window.c (Fset_window_margins): Make window the last and
11831 optional argument.
11832
11833 * xterm.c (x_draw_glyphs): Compute x-positions for rows with
11834 flag no_marginal_areas_p differently.
11835 (x_clear_end_of_line): Ditto.
11836 (x_draw_glyph_string_relief): Compute width of relief differently
11837 for rows with flag no_marginal_areas_p.
11838
11839 * dispnew.c (update_window_line): Update marginal areas only
11840 for rows that don't have no_marginal_areas_p set.
11841
11842 * xdisp.c (display_mode_line): Set row's flag no_marginal_areas_p.
11843 (display_menu_bar): Ditto.
11844
11845 * dispextern.h (struct glyph_row): New member no_marginal_areas_p.
11846
11847 * dispnew.c (adjust_glyph_matrix): Compute glyph pointers for
11848 marginal areas in window-based redisplay.
11849
11850 * dispextern.h (struct glyph_matrix): New members
11851 left_margin_glyphs and right_margin_glyphs.
11852
118531998-03-15 Gerd Moellmann <gerd@gnu.org>
11854
11855 * minibuf.c (read_minibuf_unwind): Return Lisp_Object.
11856
11857 * charset.c (non_ascii_char_to_string): Use char type parameters
11858 because the function is used that way from outside. Use unsigned
11859 char internally.
11860
11861 * window.c (change_window_height): Return void.
11862 (make_dummy_parent): Return void.
11863 (init_window_once): Return void.
11864 (syms_of_window): Ditto.
11865 (keys_of_window): Ditto.
11866 (delete_window): Correct return with and without value.
11867
11868 * buffer.c (record_buffer): Return void.
11869
11870 * marker.c (unchain_marker): Return void.
11871
11872 * window.c (unshow_buffer): Return void.
11873 (replace_window): Ditto.
11874 (delete_window): Ditto.
11875
11876 * term.c (delete_glyphs_hook): Void return type.
11877 (ring_bell_hook): Ditto.
11878 (set_terminal_window_hook): Ditto.
11879
11880 * sysdep.c (init_sigio): Return void.
11881
11882 * xterm.c (x_set_window_size): Return void.
11883 (x_calc_absolute_position): Ditto.
11884 (x_set_offset): Ditto.
11885 (x_focus_on_frame): Ditto.
11886 (x_unfocus_frame): Ditto.
11887 (x_make_frame_visible): Ditto.
11888 (x_make_frame_invisible): Ditto.
11889 (x_iconify_frame): Ditto.
11890 (x_destroy_window): Ditto.
11891 (x_wm_set_window_state): Ditto.
11892 (x_wm_set_icon_pixmap): Ditto.
11893 (x_wm_set_icon_position): Ditto.
11894 (x_initialize): Ditto.
11895 (x_error_quitter): Ditto.
11896 (x_destroy_window): Use xfree instead of free.
11897
11898 * keyboard.c (clear_waiting_for_input): Return void.
11899
11900 * xterm.c (x_wm_set_size_hint): Return void.
11901 (x_raise_frame): Ditto.
11902 (refreshicon): Ditto.
11903 (x_error_catcher): Ditto.
11904 (x_clear_errors): Ditto.
11905
11906 * keyboard.c (record_asynch_buffer_change): Return void.
11907
11908