(turn_off_face): Reset standout_mode when resetting
[bpt/emacs.git] / src / ChangeLog
CommitLineData
4eb22d33
DL
12000-08-14 Dave Love <fx@gnu.org>
2
3 * alloc.c [HAVE_UNISTD_H]: Include unistd.h; don't declare sbrk.
4 [!HAVE_UNISTD_H]: Use POINTER_TYPE to declare sbrk.
5 (lisp_free): Declare and make static.
6
7 * window.c: Fix embedded comment.
8 (syms_of_window): Fix doc string.
9
90cbf47e
GM
102000-08-14 Gerd Moellmann <gerd@gnu.org>
11
12 * keymap.c (push_key_description): If C without modifiers is < 32,
13 make sure to print `C-' before `M-', like in the manual.
14
440fc135
GM
152000-08-11 Gerd Moellmann <gerd@gnu.org>
16
17 * fns.c (hashfn_eq, hashfn_eql): Don't handle strings specially
18 since they aren't relocated anymore.
19 (sxhash_string): Make sure returned hash code fits in a Lisp
20 integer.
21
22 * xdisp.c (try_cursor_movement): Fix handling of cursor in
23 partially visible line which is smaller than the window's
24 height.
25
6e264fad
KH
262000-08-11 Kenichi Handa <handa@etl.go.jp>
27
28 * ccl.c (CCL_READ_CHAR): If source is multibyte, pay attention to
29 the multibyte form of eight-bit-control characters.
30 (Fccl_execute_on_string): Initialize ccl->multibyte.
31
32 * ccl.h (struct ccl_program): New member multibyte.
33
34 * coding.c (ccl_coding_driver): Initialize ccl->multibyte.
35
c371f69a
KH
362000-08-11 Kenichi Handa <handa@etl.go.jp>
37
38 * regex.c (regex_compile) <normal_char>: Pay attention to
39 multibyteness.
40 (analyse_first) <exactn>: Setup fastmap correctly for
41 eight-bit-control characters.
42
432000-08-11 Kenichi Handa <handa@etl.go.jp>
44
45 * termhooks.h (enum event_kind): New member
46 multibyte_char_keystroke.
47
48 * keyboard.c (make_lispy_event): Handle the new event type
49 multibyte_char_keystroke.
50
51 * xterm.c: Include coding.h.
52 (XTread_socket): Work around a bug of XmbLookupString. If the
53 input is from XIM, decode it according to the current locale. In
54 that case, generate multibyte_char_keystroke events.
55
b8ddbe71
KH
562000-08-11 Kenichi Handa <handa@etl.go.jp>
57
58 * xdisp.c (TRACE_MOVE) [GLYPH_DEBUG]: Delete the last semicolon.
59 (TRACE_MOVE) [not GLYPH_DEBUG]: Define dummy.
60
47589c8c
GM
612000-08-10 Gerd Moellmann <gerd@gnu.org>
62
63 * xdisp.c (trace_move) [GLYPH_DEBUG]: New variable.
64 (TRACE_MOVE) [GLYPH_DEBUG]: New macro.
65 (move_it_in_display_line_to): Record iterator's ascent and descent
66 before producing glyphs, and restore them when we know the glyph
67 doesn't fit on the line.
68 (move_it_to): Restructured so that it's easier to debug. If
69 moving to a vpos, and not moving to an x or character position,
70 stop as soon as the specified vpos is reached; don't move further
71 into that line because that might change the computed line height.
72 (try_cursor_movement): New function, extracted from the cursor
73 movement branch of redisplay_window. If ending on a partially
74 visible line, don't try to scroll if the cursor line is taller
75 than the window.
76 (redisplay_window): Use try_cursor_movement.
77
78 * window.c (Fwindow_end): Rewritten to not use Fvertical_motion,
79 because that function doesn't cope with variable-height lines.
80
81 * xterm.c (x_draw_bar_cursor): If cursor is on an image, draw a
82 box cursor because that's better visible for large images.
83
c51bacd6
MB
842000-08-10 Miles Bader <miles@gnu.org>
85
86 * w32term.c (note_mouse_highlight): Update calls to overlays_at.
87
bea56df7
GM
882000-08-10 Gerd Moellmann <gerd@gnu.org>
89
90 * xdisp.c (Vmessages_buffer_name): New variable.
91 (message_dolog): Use it.
92 (syms_of_xdisp): Initialize it.
93
99cd7364
EZ
942000-08-10 Eli Zaretskii <eliz@is.elta.co.il>
95
96 * msdos.c (IT_note_mouse_highlight): Update the calls to
97 overlays_at.
98 (toplevel) <kbd_buffer_store_event>: Remove prototype, it's
99 redundant now that keyboard.h is included.
100
7d093d56
EZ
1012000-08-09 Eli Zaretskii <eliz@is.elta.co.il>
102
103 * keyboard.c (kbd_buffer_events_waiting): New function.
104
105 * keyboard.h (kbd_buffer_events_waiting): Add prototype.
106
107 * msdos.c: Include keyboard.h.
108 (XMenuActivate): Empty no_event events from the event buffer. If
109 no events are left after that, call clear_input_pending.
110 (mouse_clear_clicks): New function, code moved from mouse_init.
111 (mouse_init, XMenuActivate): Call mouse_clear_clicks to force the
112 mouse driver to ``forget'' any past clicks.
113
114 * Makefile.in (msdos.o): Depend on keyboard.h.
115
41e757a6
GM
1162000-08-09 Gerd Moellmann <gerd@gnu.org>
117
8e7bd231
GM
118 * lisp.h (input_pending): External declaration.
119
120 * dispextern.h (Qredisplay_dont_pause): Declare extern.
121
122 * xdisp.c (echo_area_display): Display thoroughly if input is
123 pending. Bind redisplay-dont-pause to t during the redisplay.
124 in case input is pending.
125
126 * dispnew.c (Qredisplay_dont_pause): New variable.
127 (syms_of_display): Initialize and staticpro it.
128 (update_frame_1): Don't interrupt the display for pending input if
129 redisplay_dont_pause is set.
130
43028b7e
GM
131 * dispnew.c (mode_line_string): Declare parameter MODE_LINE_P.
132
41e757a6
GM
133 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
134
2f2174fa
KH
1352000-08-09 Miles Bader <miles@lsi.nec.co.jp>
136
137 * callproc.c (Fcall_process): Terminate the unwind-protect around
138 the post-read-conversion of coding system.
139
0a6fd67e
MB
140 * buffer.c (overlays_at): Add CHANGE_REQ parameter.
141 (Foverlays_at, Fnext_overlay_change, Fprevious_overlay_change): Use it.
142 * buffer.h (overlays_at): Update prototype.
143 * xdisp.c (next_overlay_change): Update call to overlays_at.
144 * xfaces.c (face_at_buffer_position): Likewise.
145 * textprop.c (Fget_char_property): Likewise.
146 * xterm.c (note_mouse_highlight): Likewise.
147
0c80756e
MB
148 * minibuf.c (do_completion): Don't consider a simple change of
149 case as `completion'.
150
975f250a
KR
1512000-08-08 Ken Raeburn <raeburn@gnu.org>
152
b347b3fd
KR
153 * keyboard.c (syms_of_keyboard): Initialize
154 last_point_position_buffer.
155 * undo.c (record_delete): Make sure last_point_position_buffer is
156 a buffer before comparing pointers.
157
158 * coding.h (decode_coding_string): Declare.
159
160 * intervals.h (Fprevious_single_char_property_change): Declare.
161
162 * textprop.c (Fprevious_single_char_property_change): Don't do
163 arithmetic directly on lisp objects.
164
25ad1371 165 * editfns.c (find_field): Use EQ, not ==, to compare Lisp
b347b3fd
KR
166 objects.
167
168 * keyboard.h (menu_item_eval_property): Declare.
169
170 * xdisp.c (message_dolog): Save and protect string "*Messages*" to
171 reuse as buffer name, instead of recreating (and discarding) every
172 time a message is logged.
173 (with_echo_area_buffer): Make callback arg A2 a lisp object.
25ad1371
GM
174 (current_message_1, truncate_message_1, set_message_1)
175 (display_echo_area_1, resize_mini_window_1): Signatures changed.
176 (current_message, truncate_echo_area, display_echo_area)
177 (resize_echo_area_axactly): Changed calls.
b347b3fd 178
975f250a 179 * coding.c (find_safe_codings): CHAR_TABLE_SET index must be a
25ad1371 180 Lisp object.
975f250a 181 (Ffind_coding_systems_region_internal): First argument to Fappend
25ad1371 182 must be an integer, not a Lisp object.
975f250a 183
46dc9912
KH
1842000-08-08 Kenichi Handa <handa@etl.go.jp>
185
186 * charset.c (Fchar_width): Doc fix.
187
9f6d1a6c
GM
1882000-08-08 Gerd Moellmann <gerd@gnu.org>
189
190 * charset.c (Fstring_width): Doc fix.
191
ff3d9573
GM
1922000-08-07 Gerd Moellmann <gerd@gnu.org>
193
41e757a6 194 * xdisp.c (start_display): When starting display on a continuation
49ad1d99
GM
195 line, clear ascent and descent members of the iterator structure;
196 the height of the continued line does not affect the height of the
197 continuation line.
198 (make_cursor_line_fully_visible): Do nothing if cursor is on a
199 line taller than the window.
200 (redisplay_window) <forced window start>: Handle case that the
201 middle of the window is not found in any row.
202 (dump_glyph_row): Show more information.
203 (compute_line_metrics): Use MATRIX_FIRST_TEXT_ROW to determine the
204 first text line in a glyph matrix.
205
206 * xterm.c (x_draw_image_foreground): Avoid drawing outside
207 of the clip area when image doesn't have a mask.
208
70fc58b3
GM
209 * fns.c (sweep_weak_table): Fix survival conditions for
210 key-or-value and key-and-value weakness.
211
212 * .gdbinit (xhashtable): New command.
213
ac0e96ee
GM
214 * fns.c (sweep_weak_hash_tables): Fix the code taking unmarked
215 tables out of the list of all weak hash tables.
216
ff3d9573
GM
217 * xdisp.c (ensure_echo_area_buffers): If a buffer was killed, and
218 a new buffer is created, make sure echo_area_buffer[] references
219 the new buffer.
220
e0d8827b
EZ
2212000-08-07 Eli Zaretskii <eliz@is.elta.co.il>
222
223 * msdos.c (Fmsdos_set_mouse_buttons): Add missing backslashes in
224 the doc string.
225
c6f35378
KH
2262000-08-07 Kenichi Handa <handa@etl.go.jp>
227
228 * syntax.c (skip_chars): Fix previous change. Make the handling
229 of unibyte string consistent with that of regex search.
230
1fd4c450
GM
2312000-08-05 Gerd Moellmann <gerd@gnu.org>
232
e49aa397
GM
233 * xmenu.c (popup_get_selection): Use xfree instead of free.
234
235 * fileio.c (Finsert_file_contents): Use xfree instead of free.
236
237 * editfns.c (Ftranspose_regions): Use xfree instead of free.
238
239 * callproc.c (child_setup): Use xfree instead of free.
240
241 * sysdep.c (opendir, GetTempDirName, run_mac_command): Use xmalloc
242 instead of malloc.
243 (run_mac_command, closedir): Use `xfree' instead of `free'.
244
245 * keymap.c (current_minor_maps): Use xmalloc instead of malloc.
246
247 * eval.c (error): Use xfree instead of free.
248
1fd4c450
GM
249 * xfaces.c, xfns.c, w32fns.c: Replace `illegal' with `invalid'.
250
251 * fns.c: Replace `illegal' with `invalid'.
e49aa397 252 (Fmake_hash_table, make_hash_table): Allow table size of 0.
1fd4c450 253
82d497fc
KH
2542000-08-05 Kenichi Handa <handa@etl.go.jp>
255
256 * syntax.c (skip_chars): Fix handling of multibyte<->unibyte
257 conversion.
258
59f953a2
NF
2592000-08-04 Noah Friedman <friedman@splode.com>
260
261 * fns.c (Fmake_hash_table): Add missing `\n\' to end of line in
262 docstring.
263
688351f2
GM
2642000-08-04 Gerd Moellmann <gerd@gnu.org>
265
266 * syntax.c (skip_chars): Fix typo in error message.
267
2dad51cc
AS
2682000-08-04 Andreas Schwab <schwab@suse.de>
269
270 * m/ia64.h: Moved from s/ia64.h.
271
99bb2c60
KH
2722000-08-04 Kenichi Handa <handa@etl.go.jp>
273
082a1df2
KH
274 * process.c (read_process_output): Big simplification. Handle
275 composition and post-read-conversion of coding system correctly.
276 (send_process): Handle composition correctly.
277
278 * callproc.c (Fcall_process): Handle post-read-conversion of
279 coding system if any.
280
99bb2c60
KH
281 * coding.c (decode_coding_iso2022): More strict check for handling
282 single shifting.
082a1df2
KH
283 (coding_restore_composition): Pay attention to the case that
284 cmp_data is not set properly (because of invalid code in the
285 source text).
286 (run_pre_post_conversion_on_str): Include text properties in the
287 resulting string.
288 (decode_coding_string): Set members of coding correctly.
99bb2c60 289
f4988be7
GM
2902000-08-03 Gerd Moellmann <gerd@gnu.org>
291
292 * s/ia64.h: New file.
293
294 * widget.c (set_frame_size, update_wm_hints, EmacsFrameSetValues):
295 Use NULL instead of 0 at the end of variable argument list of
296 XtVaGetValues and XtVaSetValues, because 0 fails on systems where
297 sizeof (int) < sizeof (void *).
298
299 * xmenu.c (update_frame_menubar): Use NULL instead of 0 at the end
300 of variable argument lists of XtVaGetValues and XtVaSetValues.
301
302 * xfns.c (Fx_file_dialog): Use NULL instead of 0 at the end of
303 variable argument lists of XtVaGetValues and XtVaSetValues.
304
ead53494
GM
3052000-08-02 Gerd Moellmann <gerd@gnu.org>
306
307 * alloc.c (lisp_malloc, lisp_free): Use size_t and POINTER_TYPE.
308 (xrealloc, xmalloc): Use size_t. Some callers adjusted.
309
310 * lisp.h (Fsingle_key_description, xmalloc, xrealloc): Change
311 prototype.
312
313 * keyboard.c (read_char_minibuf_menu_prompt): Add new parameter
314 in call to Fsingle_key_description.
315
316 * keymap.c (Fsingle_key_description): Add parameter NO_ANGLES.
317 Callers changed.
318
3192000-08-02 Colin Walters <walters@cis.ohio-state.edu>
320
321 * window.c (display_buffer_reuse_frames): New variable.
322 (Fdisplay_buffer): If display_buffer_reuse_frames is set, reuse
323 frames displaying BUFFER.
324 (syms_of_window): Define Lisp variable
325 display-buffer-reuse-frames.
326
10b0f752
MB
3272000-08-01 Miles Bader <miles@gnu.org>
328
329 * editfns.c (Fconstrain_to_field): Fix the conditions for deciding
330 when to constrain NEW_POS (they were pretty screwed up before).
331
16425c4a
EZ
3322000-07-31 Eli Zaretskii <eliz@is.elta.co.il>
333
334 * msdos.c (run_msdos_command): Save and restore the master
335 environment, for the case that child_setup signals an error.
336 When mirroring slashes in DOS shell commands, don't fail when
337 argv[2] has embedded blanks.
da288c14
EZ
338 (Fmsdos_set_mouse_buttons, mouse_setup_buttons): New functions.
339 (syms_of_msdos): Defsubr Fmsdos_set_mouse_buttons.
340 (dos_ttraw): Call mouse_setup_buttons.
16425c4a
EZ
341
342 * callproc.c (child_setup) [MSDOS]: malloc pwd_var instead of
343 using alloca; free it after run_msdos_command returns.
344
27f73852
DL
3452000-07-27 Dave Love <fx@gnu.org>
346
347 * s/irix6-5.h (IRIX_FORCE_32_BITS, LD_SWITCH_SYSTEM): Don't
348 define.
349 [_MIPS_SZLONG == 64]: Set up for 64-bit mode -- not currently
350 working.
351
352 * m/iris4d.h (XUINT, XSET, XUNMARK) [_LP64]: Don't define.
353
c0261b5e
EZ
3542000-07-27 Eli Zaretskii <eliz@is.elta.co.il>
355
356 * editfns.c (lisp_time_argument): Fix last change.
357
b548072f
GM
3582000-07-27 Gerd Moellmann <gerd@gnu.org>
359
3ab82477
GM
360 * fns.c (Fdelete): Make it work on vectors and strings in addition
361 to lists.
362
b548072f
GM
363 * fns.c (Qkey_or_value, Qkey_and_value): New variables.
364 (syms_of_fns): Initialize new variables.
365 (sweep_weak_table): Handle weakness `key-or-value' and
366 `key-and-value'.
367 (Fmake_hash_table): Recognize `key-and-value' and `key-or-value'
368 weakness, with t meaning the same as `key-and-value'.
369
91ae8751
KH
3702000-07-27 Kenichi Handa <handa@etl.go.jp>
371
372 * coding.h (struct coding_system): Member safe_charset deleted.
373
374 * coding.c (Qsafe_charsets): This variable deleted.
375 (Qsafe_chars, Vchar_coding_system_table, Qchar_coding_system): New
376 variables.
377 (coding_safe_chars): New function.
378 (CODING_SAFE_CHAR_P): New macro.
379 (CHARSET_OK): New arg C. Call CODING_SAFE_CHAR_P instead of
380 checking safe_charsets member of the coding system. Caller
381 changed.
382 (detect_coding_iso2022): New local variable safe_chars.
383 (DECODE_DESIGNATION): Call CODING_SAFE_CHAR_P instead of checking
384 safe_charsets member of the coding system.
385 (decode_coding_iso2022): New local variable safe_chars.
386 (ENCODE_ISO_CHARACTER_DIMENSION1): Don't check unsafe chars here.
387 (ENCODE_ISO_CHARACTER_DIMENSION2): Likewise.
388 (ENCODE_ISO_CHARACTER): Arguments changed. Caller changed.
389 (ENCODE_UNSAFE_CHARACTER): New macro.
390 (encode_coding_iso2022): New local variable safe_chars. Check
391 unsafe chars.
392 (setup_coding_system): Delete the code to initialize
393 coding->safe_charses
394 (intersection, find_safe_codings): New functions.
395 (Ffind_coding_systems_region_internal): New function.
396 (syms_of_coding): Defsubr it. Initialize Qsafe_chars,
397 Qsafe_cding_system. Make Vchar_coding_system_table a Lisp
398 variable and initialize it.
399
400 * fns.c (char_table_ref_and_index): New function.
401
402 * lisp.h (char_table_ref_and_index): Add prototype.
403
34a7a267
SS
4042000-07-26 Sam Steingold <sds@gnu.org>
405
406 * editfns.c (lisp_time_argument): Added third argument `usec'.
3ab82477 407 (Ffloat_time): New built-in Lisp function.
34a7a267 408
a95cb10a
GM
4092000-07-26 Gerd Moellmann <gerd@gnu.org>
410
3353ef5a
GM
411 * dispextern.h (GLYPH_FROM_CHAR_GLYPH): Use CHARACTERBITS bits
412 for the character code.
413
414 * config.in (HAVE_SOUND): Define only for FreeBSD, NetBSD and
415 GNU/Linux.
416
a95cb10a
GM
417 * xmenu.c (menu_highlight_callback): Call show_help_echo directly
418 if called for a popup menu.
419 (xmenu_show): Store help string in widget values.
420
b4a12321
DL
4212000-07-26 Dave Love <fx@gnu.org>
422
423 * syswait.h: Move some definitions.
424 (HAVE_SYS_WAIT_H): Undef for HPUX7, Convex.
425 [!HAVE_SYS_WAIT_H]: Define things unconditionally. More
426 perspicuous definitions.
427 (WTERMSIG): Fix bit pattern used.
428
13f5ad37
KH
4292000-07-26 Kenichi Handa <handa@etl.go.jp>
430
431 * print.c (print_object): If vector printing is truncated, print
432 "..." to indicate it as well as the case of list printing.
433
070fe99c
GM
4342000-07-25 Gerd Moellmann <gerd@gnu.org>
435
969065c3
GM
436 * xdisp.c (next_element_from_display_vector): Improve comments.
437
438 * lisp.h (GLYPH_MASK_CHAR, GLYPH_MASK_FACE): Use 19 bits
439 for the character code, and the rest for the face id as in 20.x.
440 (FAST_GLYPH_FACE, FAST_MAKE_GLYPH): Changed accordingly.
441
442 * window.c (window_display_table): Cleaned up.
443
070fe99c
GM
444 * syntax.c (Fforward_word): Add last arg nil in call of
445 Fconstrain_to_field.
446
bad77ef7
EZ
4472000-07-25 Eli Zaretskii <eliz@is.elta.co.il>
448
969065c3 449 * fileio.c (Frename_file) [DOS_NT]: If the file names are
bad77ef7
EZ
450 identical but for the letter-case, don't call
451 barf_or_query_if_file_exists.
452
c28da489
MB
4532000-07-25 Miles Bader <miles@gnu.org>
454
455 * editfns.c (find_field): Honor special `boundary' fields.
456 (Qboundary): New variables.
457 (syms_of_editfns): Initialize Qboundary.
458 (Fconstrain_to_field): Add the INHIBIT-CAPTURE-PROPERTY argument.
459 Use scan_buffer instead of find_before_next_newline, because it
460 allows us to detect the boundary case where there's a newline at
461 the search limit.
462 * lisp.h (Fconstrain_to_field): Update external declaration.
463
e3c31fd5
GM
4642000-07-24 Gerd Moellmann <gerd@gnu.org>
465
466 * print.c (temp_output_buffer_setup): Don't call1 Vrun_hooks
467 if that is nil.
c28da489 468
c66c29a2
DL
4692000-07-24 Dave Love <fx@gnu.org>
470
471 * s/sunos4-0.h, s/sol2.h:
472 (LIBS_TERMCAP): Move from m/sparc.h.
473
474 * m/sparc.h (TERMINFO): Moved to system files (probably only
475 relevant for sunos4 judging by its vintage).
476 (BITS_PER_LONG, BITS_PER_EMACS_INT, _LP64): Define conditional on
477 __arch64__.
478
fbe0a958
EZ
4792000-07-24 Eli Zaretskii <eliz@is.elta.co.il>
480
481 * xmenu.c (keymap_panes): Pass the keymap's prompt as the pane
482 name to single_keymap_panes.
483
7d88e5c9
AS
4842000-07-24 Andreas Schwab <schwab@suse.de>
485
486 * fns.c (Fmakehash): Pass Qeql to Fmake_hash_table if TEST is nil.
487
e024b101
GM
4882000-07-24 Gerd Moellmann <gerd@gnu.org>
489
490 * xdisp.c (with_echo_area_buffer): Take additional EMACS_INT
491 parameters instead of using int parameters. Expect FN to accept
492 EMACS_INT parameters.
493 (display_echo_area, resize_echo_area_axactly, current_message)
494 (truncate_echo_area, set_message_1): Call with_echo_area_buffer
495 with new argument list.
496 (resize_mini_window_1): New callback function.
497 (current_message_1, truncate_message_1, set_message_1): Change
498 parameter lists to the new format expected by
499 with_echo_area_buffer.
500
25c1a9ce
KH
5012000-07-24 Kenichi Handa <handa@etl.go.jp>
502
503 * fontset.c (fontset_ref): Remove INLINE declaration.
504 (fontset_ref_via_base): Likewise.
505 (Fset_fontset_font): Convert FAMILY and REGISTRY specifications
506 to downcase.
507
7f987ac0
EZ
5082000-07-23 Eli Zaretskii <eliz@is.elta.co.il>
509
510 * msdos.c (IT_note_mouse_highlight): Process overlays in the
511 correct order of priority. If help echo was found in an overlay,
512 use that overlay as the object in which the help echo was found.
513
e2db3069
MB
5142000-07-22 Miles Bader <miles@gnu.org>
515
516 * textprop.c (Fprevious_single_char_property_change): The initial
517 property value should be from the position preceding POSITION, not
518 following it.
519
5e3203e4
EZ
5202000-07-22 Eli Zaretskii <eliz@is.elta.co.il>
521
522 * coding.c (syms_of_coding): Doc fix for
523 inhibit-iso-escape-detection.
524
62145073
GM
5252000-07-21 Gerd Moellmann <gerd@gnu.org>
526
c20aeb83
GM
527 * xterm.c (note_mouse_highlight): Process overlays in the right
528 order of priority.
34a7a267 529
743934db
GM
530 * keyboard.c (show_help_echo, gen_help_event): Extend comments.
531
532 * xterm.c (note_mouse_highlight): If help-echo was found in an
533 overlay, use that overlay as the object in which the help was
534 found.
535
d1dc7e43 536 * window.c (foreach_window_1): Fix typo reversing an if-condition.
34a7a267 537
62145073
GM
538 * window.c (foreach_window): Instead of a fake variable argument
539 list, take one USER_DATA argument.
540 (foreach_window_1): Likewise, and call callback functions with two
541 args, the window and USER_DATA.
542 (struct check_window_data): New struct.
543 (check_window_containing): Use it.
544 (window_from_coordinates): Set up a struct check_window_data for
545 foreach_window.
546 (add_window_to_list, freeze_window_start): Change parameters
547 according to new calling convention.
548
549 * window.h (foreach_window): Change prototype.
550
551 * buffer.c (Fprevious_overlay_change): Avoid memory leak.
552
5532000-07-21 Eli Zaretskii <eliz@is.elta.co.il>
554
555 * xmenu.c (menu_help_callback): Call show_help_echo with
556 additional arguments OBJECT and POS.
557
11270583
KH
5582000-07-21 Kenichi Handa <handa@etl.go.jp>
559
07b14857
KH
560 * data.c (Faset): Allow storing any multibyte character in a
561 string. Convert unibyte string to multibyte if necessary.
562
11270583
KH
563 * xfns.c (x_encode_text): New function.
564 (x_set_name): Use x_encode_text.
565 (x_set_title): Likewise.
566
567 * xselect.c (lisp_data_to_selection_data): Use x_encode_text.
568
569 * xterm.h (x_encode_text): Add prototype.
570
bc75b4fd
DL
5712000-07-20 Dave Love <fx@gnu.org>
572
573 * ccl.c (Fccl_execute_on_string): Don't check xmalloc return. Use
574 xfree, not free.
575
48c14970
EZ
5762000-07-20 Eli Zaretskii <eliz@is.elta.co.il>
577
578 * msdos.c (help_echo_window): New variable.
579 (syms_of_msdos): Initialize and staticpro it.
580 (IT_note_mode_line_highlight): Set help_echo_window.
581 (IT_note_mouse_highlight): Ditto.
582 (dos_rawgetc): Store help_echo_window in the second event produced
583 for HELP_EVENTs.
584
585 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight):
586 Record the object that generated the help echo and the position of
587 that object in help_echo_object and help_echo_pos. Record that
588 some glyphs in a row are displayed in mouse-face.
589 (IT_update_begin): Don't clear mouse highlight unless one of the
590 enabled glyph rows is marked as being displayed in mouse-face.
591 (dos_rawgetc): Generate 2 events for HELP_EVENT. Pass the object
592 and position recorded in help_echo_object and help_echo_pos to the
593 event queue.
594 (IT_menu_display): Accept a new argument PN: the pane number of
595 the current menu pane. Record the pane number and the item
596 number of the item which has associated help string.
597 (XMenuActivate): Update the prototype for help_callback in
598 function declaration. Call IT_menu_display with the current menu
599 pane number as an additional argument. Call help_callback with
600 two additional arguments: the pane number and the item number of
601 the menu item associated with the help text.
602 (help_echo_object, help_echo_pos): New variables.
603 (syms_of_msdos): Initialize them and staticpro help_echo_object.
604
605 * msdos.h (XMenuActivate): Update prototype.
606
4279296d
GM
6072000-07-19 Gerd Moellmann <gerd@gnu.org>
608
47db06aa
GM
609 * xdisp.c (with_echo_area_buffer): Call FN with more arguments.
610 Add some more prototypes.
611
612 * xterm.c, xterm.h: Add some more prototypes.
613
614 * lisp.h (Fnext_single_char_property_change): Add prototype.
615
616 * dispnew.c (direct_output_for_insert): Remove confusing
617 outer local variable mouse_face_overwritten_p.
618 (glyph_row_slice_p): Put in #ifdef GLYPH_DEBUG.
619
4279296d
GM
620 * alloc.c (allocate_string_data): Don't copy old string contents.
621
670acd62
KH
6222000-07-19 Kenichi Handa <handa@etl.go.jp>
623
624 * coding.c (code_convert_region): Delete text properties before
625 shrinking the conversion region.
626
7cea38bc
GM
6272000-07-18 Gerd Moellmann <gerd@gnu.org>
628
dc1cac59
GM
629 * dispnew.c (update_text_area): Write the whole row if it
630 has mouse-face in it.
631
85a8aca9
GM
632 * xfaces.c (face-alternative-font-family-alist): Remove
633 DEFVAR_LISP; staticpro instead.
634
34a7a267 635 * xmenu.c (menu_help_callback): Call show_help_echo with
7cea38bc
GM
636 new arguments.
637
638 * keyboard.c (show_help_echo): Add parameter WINDOW.
639 (read_char): Call show_help_echo with window extracted from Lisp
640 help event.
641 (gen_help_event): Add parameter WINDOW.
642
643 * keyboard.h (show_help_echo, gen_help_event): Change prototypes.
644
645 * xterm.c (help_echo_window): New variable.
646 (note_mouse_highlight, note_tool_bar_highlight): Set
647 help_echo_window.
648 (XTread_socket): Pass help_echo_window to gen_help_event.
649 (syms_of_xterm): Initialize and staticpro help_echo_window.
650
f8276b77
DL
6512000-07-18 Dave Love <fx@gnu.org>
652
653 * Makefile.in: Fix dependencies of blockinput.h on atimer.h,
654 systime.h.
655
088831a6
GM
6562000-07-18 Gerd Moellmann <gerd@gnu.org>
657
3d6cd763
GM
658 * alloc.c (allocate_string_data): If string had already data
659 assigned, copy old contents to new string data.
660
661 * coding.c (syms_of_coding): Fix typo in spelling of variable
662 `inhibit-iso-escape-detection'.
663
088831a6
GM
664 * alloca.c (free) [emacs && EMACS_FREE]: Define as EMACS_FREE.
665
666 * Makefile.in: Add dependencies on dispextern.h.
667 (alloca.o): Don't define malloc and define EMACS_FREE instead of
668 `free'; both can conflict with system header files.
669
bc8a8d55
KH
6702000-07-18 Kenichi Handa <handa@etl.go.jp>
671
672 * charset.h (MAKE_CHAR): Return reasonable code even if CHARSET is
673 undefined.
674
069f5950
DL
6752000-07-18 Dave Love <fx@gnu.org>
676
677 * window.c (Fwindow_list): Declare arg `window'.
678
aa96c820
KH
6792000-07-18 Kenichi Handa <handa@etl.go.jp>
680
681 * coding.c (setup_coding_system): Don't override the explicitly
682 specified designations.
683
06be8d32
MB
6842000-07-15 Miles Bader <miles@gnu.org>
685
686 * editfns.c (char_property_eq, char_property_stickiness): Renamed
687 from `text_property_eq' and `text_property_stickiness', respectively.
688 (find_field, Fconstrain_to_field, char_property_eq)
689 (char_property_stickiness): Changed to call char-property functions
690 instead of text-property-only ones.
691
692 * textprop.c (Fnext_single_char_property_change): Made a subr (was
693 `next_single_char_property_change'). Do more error checking, and
694 cleanup limit behavior.
695 (Fprevious_single_char_property_change): New function.
696 (syms_of_textprop): Initialize new subrs.
697
698 * xdisp.c (display_prop_end, invisible_text_between_p):
699 Call Fnext_single_char_property_change instead of
700 next_single_char_property_change.
701
3fddcdc3
JR
7022000-07-15 Jason Rumney <jasonr@gnu.org>
703
704 * w32menu.c (w32_menu_show): Call free_menubar_widget_value_tree
705 after menu is finished with.
706 (add_menu_item): Only consider wv->title as a menu title.
707 (w32_menu_display_help): Add OBJECT and POS to show_help_echo.
708
709 * w32fns.c (w32_wnd_proc) [WM_DRAW_ITEM]: Do not try to draw a
710 null title.
711 (FONT_REGEXP): Remove unused macro, and its sub-components.
712 (syms_of_w32fns): Replace underscore in w32-enable-synthesized-fonts.
713
714 * w32term.c (help_echo_object, help_echo_pos): New variables.
715 (note_mode_line_highlight): Store additional information about the
716 help-echo in help_echo_object and help_echo_pos. Check both
717 `local-map' and `keymap' properties for changing the cursor
718 (note_mouse_highlight): Store additional information about the
719 help-echo in help_echo_object and help_echo_pos.
720 (note_tool_bar_highlight): Set help_echo_object to nil and
721 help_echo_pos to -1.
722 (w32_read_socket): Use gen_help_event instead of filling
723 input_events manually.
724 (syms_of_w32term): Staticpro help_echo_object.
725 (x_update_window_end): Add parameter MOUSE_FACE_OVERWRITTEN_P. If
726 set, arrange for a mouse-highlight redisplay in
727 XTframe_up_to_date.
728 (x_clear_mouse_face): New function.
729 (w32_redisplay_interface): Add pointer to x_clear_mouse_face.
730 (x_update_window_begin): No need to turn off the mouse
731 highlight here.
732 (show_mouse_face): Set the mouse_face_p flag of glyph rows
733 depending on whether they contain glyphs highlighted in
734 mouse-face.
735 (x_fill_stretch_glyph_string): Consume runs of stretch
736 glyphs instead of a single one.
737 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
738 with new argument list.
739 (x_set_glyph_string_gc): Make sure the face's GC is valid.
740 (x_append_glyph, x_append_composite_glyph)
741 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
742 changes in struct glyph starting 1999-12-27. See comments for
743 xterm.c on 2000-07-05.
744
178c5d9c
SS
7452000-07-14 Sam Steingold <sds@gnu.org>
746
747 * xfaces.c (realize_x_face): Fix the last patch:
748 check `default_face' before dereferencing.
749
6fe533f6
DL
7502000-07-14 Dave Love <fx@gnu.org>
751
069f5950 752 * syntax.c (back_comment): Add null default in switch (for pcc).
6fe533f6 753
dd7b81cf
KH
7542000-07-14 Kenichi Handa <handa@etl.go.jp>
755
0693904a 756 * xfaces.c (realize_x_face): Make fontset using the base of the
178c5d9c 757 default_face's fontset, not using the default fontset.
0693904a 758
dd7b81cf
KH
759 * coding.c (inhibit_iso_escape_detection): New variable.
760 (syms_of_coding): Make it a Lisp variable.
761 (detect_coding_iso2022): If inhibit_iso_escape_detection is
762 nonzero, ignore ISO2022's escape sequence.
763
d5aa31d8
GM
7642000-07-14 Gerd Moellmann <gerd@gnu.org>
765
e5acf0ca
GM
766 * alloca.c (malloc) [emacs]: Define as xmalloc.
767
bd23a692
GM
768 * xfns.c (Fx_show_tip): If frame parameters contain a position,
769 use that instead of the mouse position. Add parameters DX and DY.
770
771 * dispextern.h (Fx_show_tip): Adjust number of parameters
772 in prototype.
773
9662da0b
GM
774 * keyboard.c (show_help_echo): Add parameters OBJECT and POS.
775 if HELP is a function, call it with OBJECT and POS as parameters
776 to get the help to display.
777 (gen_help_event, kbd_buffer_store_help_event): New functions.
778 (kbd_buffer_get_event): Construct the Lisp help-event differently.
779 (read_char): Call show_help_echo with new parameters.
780
178c5d9c 781 * keyboard.h (gen_help_event, kbd_buffer_store_help_event):
9662da0b
GM
782 Add prototypes.
783
784 * xterm.c (help_echo_object, help_echo_pos): New variables.
785 (note_mode_line_highlight): Store additional information about the
786 help-echo in help_echo_object and help_echo_pos. Check both
787 `local-map' and `keymap' properties for changing the cursor
788 (note_mouse_highlight): Store additional information about the
789 help-echo in help_echo_object and help_echo_pos.
790 (note_tool_bar_highlight): Set help_echo_object to nil and
791 help_echo_pos to -1.
792 (XTread_socket): Use gen_help_event instead of filling
793 input_events manually.
794 (syms_of_xterm): Staticpro help_echo_object.
795
796 * xmenu.c (menu_highlight_callback): Use
797 kbd_buffer_store_help_event instead of setting up and input_event
798 structure manually.
799
800 * xdisp.c (eval_form): GCPRO argument sexpr.
801 (call_function): New function.
802 (handle_single_display_prop): Use call_function and FUNCTIONP
803 instead of checking whether if font_height is a symbol and
804 using eval_form.
805
806 * eval.c (internal_condition_case_2): New function.
807
808 * lisp.h (FUNCTIONP): New macro.
809 (internal_condition_case_2, call_function): Add prototypes.
810
d5aa31d8
GM
811 * xterm.c (construct_mouse_click, x_scroll_bar_to_input_event)
812 (x_scroll_bar_handle_click, SET_SAVED_MENU_EVENT, XTread_socket):
813 Always set `arg' member of input_events.
814 (construct_menu_click): Unused function removed.
815
816 * msdos.c (dos_rawgetc): Always set `arg' member of input_events.
817
818 * w32term.c (construct_mouse_click, construct_mouse_wheel)
819 (construct_drag_n_drop, x_scroll_bar_handle_click)
820 (w32_read_socket): Always set `arg' member of input_events.
821
822 * keyboard.c (show_help_echo): Use eval_form. Add comment.
823
824 * lisp.h (eval_form): Add prototype.
825
826 * xdisp.c (eval_form): Make it externally visible.
827
0f1a9b23
GM
8282000-07-13 Gerd Moellmann <gerd@gnu.org>
829
830 * xterm.c (x_handle_tool_bar_click): Store the frame in the
831 frame_or_window slot of TOOL_BAR_EVENT input events instead of
832 consing. For prefix events, store the frame in the `arg' slot of
833 the event, otherwise store the key there.
834 (XTread_socket): Instead of consing, use the frame_or_window slot
835 of HELP_EVENTs for the frame, and the `arg' slot for the help
836 string.
837
838 * xmenu.c (menu_highlight_callback): Store help string in the
839 `arg' member of the input event; don't cons.
840 (menubar_selection_callback): Use the `arg' slot of input events
841 to queue additional information, instead of consing.
842
843 * msdos.c (dos_rawgetc): Adapt to change of HELP_EVENTs.
844
845 * w32term.c (w32_handle_tool_bar_click): Adapt to changes in
846 TOOL_BAR_EVENTs.
847 (w32_read_socket): Adapt to changes in HELP_EVENTs.
848
849 * w32menu.c (menubar_selection_callback): Use the `arg' slot of
850 input events to queue additional information, instead of consing.
851
852 * keyboard.c (kbd_buffer_gcpro): Renamed from
853 kbd_buffer_frame_or_window. Now used for all Lisp objects
854 referenced from the input queue.
855 (kbd_buffer_store_event): Always use structure assignment for
856 copying input events. Record all Lisp objects referenced from
857 events in kbd_buffer_gcpro.
858 (kbd_buffer_get_event): Construct Lisp `help-echo' events
859 differently from input events. Test for prefix menu_bar_events
860 and TOOL_BAR_EVENTs differently. Reset all slots used by an input
861 event in kbd_buffer_gcpro to nil.
862 (make_lispy_event) <TOOL_BAR_EVENT>: Treat an input event whose
863 frame_or_window is equal to its arg member as prefix events.
864 (stuff_buffered_input): Reset all slots in kbd_buffer_gcpro
865 used by an input event to nil.
866 (init_keyboard): Use two times the size of the input queue
867 for kbd_buffer_gcpro.
868 (syms_of_keyboard): Likewise.
869
870 * emacs.c (handle_USR2_signal, handle_USR1_signal): Use
871 USER_SIGNAL_EVENT.
872
873 * termhooks.h (struct input_event): Add member `arg'.
874 (MENU_BAR_EVENT): Renamed from menu_bar_event.
875 (USER_SIGNAL_EVENT): Renamed from user_signal.
876
877 * xfaces.c (ASET): Remove definition.
878
879 * lisp.h (AREF, ASET, ASIZE): New macros.
880
881 * fontset.c (AREF, ASIZE): Remove definitions.
882
883 * fns.c (AREF): Remove definition.
178c5d9c 884
0f1a9b23
GM
885 * composite.c (AREF): Remove definition.
886
712eaef2
GM
8872000-07-12 Gerd Moellmann <gerd@gnu.org>
888
d8ee7803
GM
889 * dispnew.c (redraw_overlapped_rows): Add missing local.
890 (scrolling_window): Remove debug code.
891
712eaef2
GM
892 * xdisp.c (try_window_reusing_current_matrix, try_window_id):
893 Before scrolling, turn off a mouse-highlight in the window
894 being scrolled.
895
896 * xterm.c (x_update_window_end): Add parameter
897 MOUSE_FACE_OVERWRITTEN_P. If set, arrange for a mouse-highlight
898 redisplay in XTframe_up_to_date.
899 (x_clear_mouse_face): New function.
900 (x_redisplay_interface): Add pointer to x_clear_mouse_face.
901
902 * dispnew.c (make_current): Preserve the mouse_face_p flag of the
903 current glyph row.
904 (update_window_line): Add parameter MOUSE_FACE_OVERWRITTEN_P. Set
905 it when any row is written to that contains glyphs highlighted in
906 mouse-face.
907 (update_window): Call the window update end hook with new
908 parameter MOUSE_FACE_OVERWRITTEN_P.
909 (direct_output_for_insert): Give up if row contains mouse-face.
910
911 * dispextern.h (struct redisplay_interface): Add parameter
912 MOUSE_FACE_OVERWRITTEN_P to update_window_end_hook function.
913 (clear_mouse_face): New function pointer member.
914
02010917
SM
9152000-07-11 Stefan Monnier <monnier@cs.yale.edu>
916
917 * syntax.c (back_comment): Use one switch rather than a few `if's.
918 Obey open_paren_in_column_0_is_defun_start.
919 When reverting to the `slow' method, try to nicely handle the case
920 of nested comments by checking that the comment-starter we found
921 does indeed match the comment-ender.
922 (scan_sexps_forward, scan_sexps_forward):
923 Ignore excessive opening parenthesis rather than throwing an error.
924
d76c03ea
GM
9252000-07-11 Gerd Moellmann <gerd@gnu.org>
926
927 * doc.c (Fsubstitute_command_keys): Handle case that a GC
928 in Fwhere_is_internal or get_keymap_1 relocates string contents.
929
930 * dispnew.c (direct_output_forward_char): Give up if currently
931 displaying a message instead of the minibuffer contents.
932
933 * xterm.c (x_update_window_begin): No need to turn off the mouse
934 highlight here.
935 (show_mouse_face): Set the mouse_face_p flag of glyph rows
936 depending on whether they contain glyphs highlighted in
937 mouse-face.
938
939 * dispnew.c (row_equal_p): Add parameter MOUSE_FACE_P. If set,
940 compare the mouse_face_p flags of both rows.
941
942 * dispextern.h (struct glyph_row): Add flag mouse_face_p.
943
d55ead18
EZ
9442000-07-11 Eli Zaretskii <eliz@is.elta.co.il>
945
946 * keyboard.c (show_help_echo): Accept additional parameter
947 ok_to_overwrite_keystroke_echo.
948 (read_char): Call show_help_echo with a zero
949 ok_to_overwrite_keystroke_echo argument.
950 * keyboard.h (show_help_echo): Update prototype of
951 show_help_echo.
952 * xmenu.c (menu_help_callback): Call show_help_echo with non-zero
953 ok_to_overwrite_keystroke_echo argument.
954 * w32menu.c (w32_menu_display_help): Call show_help_echo with
955 non-zero ok_to_overwrite_keystroke_echo argument.
956
df75b1a3
GM
9572000-07-10 Gerd Moellmann <gerd@gnu.org>
958
4b92c49a
GM
959 * xdisp.c (try_window_id): If changes are all below what is
960 displayed in the window, and point is in the window, we still
961 might have to find point on the display.
962
963 * xterm.c (x_fill_stretch_glyph_string): Consume runs of stretch
964 glyphs instead of a single one.
965 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
966 with new argument list.
967 (x_set_glyph_string_gc): Make sure the face's GC is valid.
968
df75b1a3
GM
969 * keymap.c (get_keymap_1): Add comment that this function can GC.
970 (where_is_internal_2, where_is_internal_1): Add GCPROs, add
971 comment that functions can GC.
972 (Fset_keymap_parent): GCPRO arg KEYMAP.
973
4314cf3e
EZ
9742000-07-10 Eli Zaretskii <eliz@is.elta.co.il>
975
976 * msdos.c (XMenuActivate): After exiting the menu, restore the
977 echo area message and erase it.
978
ab49ce15
KH
9792000-07-10 Kenichi Handa <handa@etl.go.jp>
980
981 * fontset.c (Ffontset_info): Make the return value more compatible
982 with that of Emacs 20.
983
090a072f
GM
9842000-07-07 Gerd Moellmann <gerd@gnu.org>
985
986 * eval.c (Fsignal): Handle case that backtrace_list is null.
987
f92de4a6
KH
9882000-07-07 Kenichi Handa <handa@etl.go.jp>
989
990 * ccl.c (Fccl_execute): Typo fixed.
991
dd8888a1
GM
9922000-07-06 Gerd Moellmann <gerd@gnu.org>
993
e5c81191 994 * window.c (window_loop): Add missing gcpro1 local variable.
178c5d9c 995
dd8888a1
GM
996 * window.c (Fwindow_list): Reverse list at the end.
997 (candidate_window_p): Add parameter OWINDOW. ALL_FRAMES nil
998 means allow windows on OWINDOW's frame, only.
999 (window_loop): Simplified; use Fwindow_list.
1000
1001 * Makefile.in (TAGS-LISP): Don't pass `$(lispsource)' to make.
1002
485266d0
GM
10032000-07-05 Gerd Moellmann <gerd@gnu.org>
1004
1005 * xterm.c (XTread_socket): Increment handling_signal at the start,
1006 decrement it at the end.
1007
1008 * eval.c (handling_signal): New variable.
1009 (Fsignal): Abort if handling_signal is non-zero.
1010
1011 * lisp.h (handling_signal): External declaration.
178c5d9c 1012
485266d0
GM
1013 * s/freebsd.h (WAITTYPE, WRETCODE): Put in #if 0.
1014
80fcd514
KR
10152000-07-05 Ken Raeburn <raeburn@gnu.org>
1016
1017 Sound support for NetBSD through "Linux emulation" support:
1018 * config.in (HAVE_SOUNDCARD_H): Undef.
1019 (HAVE_SOUND): Define if HAVE_SOUNDCARD_H.
1020 * Makefile.in (LIBSOUND): New variable.
1021 (LIBES): Include it.
1022 * sound.c [HAVE_SOUNDCARD_H]: Include <sys/ioctl.h> and
1023 <soundcard.h>.
1024 (DEFAULT_SOUND_DEVICE): Define to "/dev/dsp" if not defined
1025 elsewhere.
1026 (vox_open): Use DEFAULT_SOUND_DEVICE.
1027 * s/netbsd.h (DEFAULT_SOUND_DEVICE): Define to /dev/audio.
1028
d5c5cddd
GM
10292000-07-05 Gerd Moellmann <gerd@gnu.org>
1030
1031 * print.c (print_error_message): If Vsignaling_function is set,
1032 show it in *Messages*.
1033
1034 * lisp.h (Vsignaling_function): External declaration.
1035
1036 * eval.c (Vsignaling_function): New variable.
1037 (Fsignal): Compute it.
1038 (syms_of_eval): Staticpro it.
1039
65171e3a
DL
10402000-07-05 Dave Love <fx@gnu.org>
1041
1042 * syswait.h: Use the autoconf recommended approach. Old code
1043 #if'd out in case we need to revert.
1044
178c5d9c 1045 * config.in (HAVE_SYS_WAIT_H): Added.
65171e3a 1046
e2c46326
AI
10472000-07-05 Andrew Innes <andrewi@gnu.org>
1048
1049 * vm-limit.c (check_memory_limits) [REL_ALLOC]: Use real_morecore
1050 when non-NULL instead of __morecore, to take account of buffer
1051 memory. This also solves a problem with spurious memory warnings
1052 on Windows.
1053
1054 * ralloc.c: Make real_morecore non-static.
1055
1056 * eval.c (internal_condition_case): Comment out abort if
1057 interrupt_input_blocked is not zero.
1058
1059 * makefile.nt: Add support for `bootstrap' and related targets.
1060 Include minimal debug info in emacs.exe in release build.
1061 Remove all dependencies on lisp.h, and fixup some others.
1062
1063 * w32.c (init_environment): Install code from 20.7 for providing
1064 default values for environment variables, based on the
1065 executable's own location.
1066 (map_w32_filename): Handle filenames that are longer than
1067 MAX_PATH.
1068 (sys_socket): Install socket inheritance bug fix from 20.7.
1069
1070 * alloca.c [emacs]: Include lisp.h (needed by atimer.h included
1071 here via blockinput.h).
1072
a027a91b
SM
10732000-07-05 Stefan Monnier <monnier@cs.yale.edu>
1074
e4b31601
SM
1075 * w32menu.c (w32_menu_display_help):
1076 * xmenu.c (menu_help_callback): Use show_help_echo.
a027a91b
SM
1077
1078 * keyboard.h (show_help_echo): Declare.
1079
1080 * keyboard.c (show_help_echo): New function, extracted from read_char.
1081 Feval its `msg' argument if it's a cons cell.
1082 (read_char): Use it.
4cf8d9d5 1083 (follow_key): Pass `autoload' to get_keyelt.
a027a91b 1084
178c5d9c 1085 * xterm.c (note_mode_line_highlight, note_mouse_highlight)
a027a91b 1086 (note_tool_bar_highlight, XTread_socket):
178c5d9c 1087 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight)
a027a91b
SM
1088 (dos_rawgetc):
1089 * w32term.c (note_mode_line_highlight, note_mouse_highlight)
1090 (note_tool_bar_highlight, w32_read_socket):
1091 Do not gratuitously ignore non-string `help-echo' properties.
1092
88d75730
GM
10932000-07-05 Gerd Moellmann <gerd@gnu.org>
1094
969f7e79
GM
1095 * eval.c (Feval): Put check for interrupt_input_block in #if 0.
1096
71201b00
GM
1097 * window.c (delete_all_subwindows): Reset Vwindow_list.
1098
88d75730
GM
1099 * xterm.c (x_append_glyph, x_append_composite_glyph)
1100 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
1101 changes in struct glyph starting 1999-12-27. Some bit-fields of
1102 struct glyph were not set, which made glyphs unequal when compared
1103 with GLYPH_EQUAL_P. Redisplay outputs such glyphs, and flickering
1104 effects were the result. This also depended on the contents of
1105 memory returned by xmalloc. If flickering happens again, activate
1106 the code in clear_glyph_row that's in #if 0. If the flickering is
1107 gone with that, chances are that it is caused by something
1108 similar.
1109
1110 * dispnew.c (clear_glyph_row): Add debug code in #if 0.
178c5d9c 1111
88d75730
GM
1112 * dispextern.h: Add some comments.
1113
1114 * window.c (add_window_to_list): Add parameter LIST.
1115 (window_list): Order list so that, for each frame, windows are
1116 in canonical order, and so that frames appear in the list in
1117 the order given by Vframe_list.
1118 (next_window): Reverse the handling of NEXT_P.
1119
53654733
GM
11202000-07-04 Gerd Moellmann <gerd@gnu.org>
1121
87efd256
GM
1122 * window.c (Vwindow_list): New variable.
1123 (make_window, delete_window): Set Vwindow_list to nil.
1124 (check_window_containing): New function.
1125 (window_from_coordinates): Rewritten.
1126 (add_window_to_list, window_list, candidate_window_p)
1127 (decode_next_window_args, next_window): New functions.
1128 (Fnext_window, Fprevious_window): Rewritten in terms of
1129 next_window.
1130 (Fwindow_list): New function.
1131 (Fother_window): Cleaned up.
1132 (foreach_window): Add a longer "variable argument list". Let
1133 callback function return 0 to indicate that cycling over windows
1134 should stop.
1135 (foreach_window_1): Likewise.
1136 (freeze_window_start): Return int.
1137 (init_window): New function.
1138 (syms_of_window): Staticpro Vwindow_list and defsubr Swindow_list.
1139
1140 * emacs.c (handle_USR1_signal, handle_USR2_signal) Clear
1141 input_event with bzero.
1142 (main): Call init_window.
1143
53654733
GM
1144 * keymap.c (get_keyelt): Temporarily inhibit GC while evaluating
1145 a menu filter.
1146
4a8c194f
KH
11472000-07-04 Kenichi Handa <handa@etl.go.jp>
1148
1149 * composite.h (make_composition_value_copy): Extern it.
1150
1151 * composite.c (make_composition_value_copy): New function.
1152
1153 * editfns.c (Fformat): While copying text properties, make each
1154 composition property value a copy.
1155
1156 * fns.c (concat): While copying text properties, make each
1157 composition property value a copy.
1158
831a6cb0
GM
11592000-07-03 Gerd Moellmann <gerd@gnu.org>
1160
2f516940
GM
1161 * m/macppc.h (LINKER, LD_SWITCH_MACHINE) [LINUX]: Define.
1162
178c5d9c 1163 * fns.c (sweep_weak_table): Mark only objects that are not
aee625fa
GM
1164 marked already.
1165
831a6cb0
GM
1166 * frame.c (next_frame, prev_frame): If MINIBUF is a window,
1167 include those frames as candidates which have their focus
1168 redirected to the minibuffer frame.
1169
d9c4f922
SM
11702000-07-03 Stefan Monnier <monnier@cs.yale.edu>
1171
1172 * fns.c (Fputhash): Return `value' rather than nil.
1173
3780bc22
GM
11742000-06-30 Gerd Moellmann <gerd@gnu.org>
1175
97d176db
GM
1176 * frame.c (next_frame): Don't check focus redirection in case
1177 MINIBUF is a window. Doing so excludes frames using MINIBUF
3780bc22
GM
1178 unless their focus is redirected, which contradicts the
1179 specification of next-frame, and leads to infinite loops in
1180 certain situations when cycling through windows with next-window.
1181
dca9961d
KH
11822000-06-30 Kenichi Handa <handa@etl.go.jp>
1183
1184 * coding.c (code_convert_region): Even if the length of text is
1185 zero, try to convert it if coding->type is coding_type_ccl.
1186 (decode_coding_string, encode_coding_string): Likewise.
1187
d5483ab1
GM
11882000-06-28 Gerd Moellmann <gerd@gnu.org>
1189
af5c25e1 1190 * xdisp.c (try_window_reusing_current_matrix): Don't try to reuse
97d176db 1191 the display if windows_or_buffers_changed.
af5c25e1
GM
1192
1193 * dispnew.c (struct row_entry): New structure.
1194 (row_entry_pool, row_entry_pool_size, row_entry_idx, row_table)
1195 (row_table_size, old_lines, new_lines, old_lines_size)
1196 (new_lines_size, run_pool, runs_size, runs): New variables.
1197 (add_row_entry): New function.
1198 (scrolling_window): Use data structures allocated with xmalloc and
97d176db 1199 held in global variables, instead of allocating them with alloca and
af5c25e1
GM
1200 holding them in local variables. Use a larger hash table whose
1201 size depends on glyph matrix sizes. Don't use bzero to clear the
1202 hash table; instead, clear used slots only.
1203
1204 * fns.c (next_almost_prime): Make it externally visible.
1205
1206 * lisp.h (next_almost_prime): Add prototype.
1207
d5483ab1
GM
1208 * s/isc4-0.h (sigunblock): Define.
1209
1210 * s/sco5.h (sigunblock): Define.
1211
93e40f40
DL
12122000-06-27 Dave Love <fx@gnu.org>
1213
1214 * s/osf1.h (C_SWITCH_SYSTEM, LIBS_SYSTEM): Revert last change
1215 (moved to osf5-0.h).
1216 [!NOT_C_CODE]: Protect string.h stuff.
1217
1218 * s/osf5-0.h (C_SWITCH_SYSTEM, WAIT_USE_INT, SYS_SIGLIST_DECLARED)
1219 (sys_siglist, NSIG): Definitions moved here from osf1.h.
1220
3c4b7685
GM
12212000-06-27 Gerd Moellmann <gerd@gnu.org>
1222
97d176db 1223 * xdisp.c (resize_mini_window): Subtract the extra line spacing
3c4b7685
GM
1224 below the last line from the needed window height.
1225
32cad0aa
SM
12262000-06-26 Stefan Monnier <monnier@cs.yale.edu>
1227
1228 * fns.c (Fplist_member): Renamed from Fwidget_plist_member.
1229 (Fwidget_get): Use it.
1230 (syms_of_fns): Defsubr it.
1231
2c69ced2
GM
12322000-06-26 Gerd Moellmann <gerd@gnu.org>
1233
178c5d9c 1234 * xterm.c (xim_initialize) [!USE_XIM]: Don't set up the
1d36487c
GM
1235 display info for XIM.
1236 (xim_open_dpy): Likewise.
1237 (xim_close_dpy): Don't free the display info's XIM.
1238
1239 * xfns.c (x_window) [!USE_XIM]: Don't call create_frame_ic.
1240
1241 * config.in (USE_XIM): New define.
1242
3fc720e4
GM
1243 * keymap.c (get_keyelt): For menu-items containing a `:filter
1244 FILTER', apply FILTER to the menu-item's definition to get the
1245 real definition to use.
1246
1247 * lisp.h (QCfilter): External declaration.
1248
2c69ced2
GM
1249 * xfns.c (Fimage_size): New function.
1250 (syms_of_xfns): Defsubr it.
1251
f978b2a2
AS
12522000-06-26 Andreas Schwab <schwab@suse.de>
1253
1254 * coding.c (decode_coding_string): Re-fetch STRING_BYTES after
1255 Fstring_as_unibyte.
1256
94cc7892
DL
12572000-06-25 Dave Love <fx@gnu.org>
1258
1259 * term.c [!HAVE_TERMCAP_H]: Declare tputs, tgetent, tgetflag,
1260 tgetnum.
1261
1262 * Makefile.in (blockinput.h): Depend on atimer.h.
1263 (atimer.h): Depend on systime.h.
1264
1265 * blockinput.h: Protect against multiple inclusion. Include
1266 atimer.h.
1267
1268 * atimer.h: Protect against multiple inclusion. Include
1269 systime.h.
1270
1271 * lisp.h (swap_in_global_binding): Declare.
1272
b8c24556
KR
12732000-06-24 Ken Raeburn <raeburn@gnu.org>
1274
1275 * process.c (Fopen_network_stream): Turn off atimers for duration
1276 of call to connect. (Patch from Gerd.)
1277
8cf8560b
DL
12782000-06-23 Dave Love <fx@gnu.org>
1279
511c7541
DL
1280 * ralloc.c: Maybe include unistd.h
1281
8cf8560b
DL
1282 * emacs.c (setgrp): Undefine before defining.
1283 (malloc_warning, set_time_zone_rule, index): Prototype.
1284
1285 * systime.h (EMACS_GET_TIME) [!GETTIMEOFDAY_ONE_ARGUMENT]: Use
1286 HAVE_STRUCT_TIMEZONE.
1287
1288 * s/osf1.h: Move string.h hack here from alpha.h and make it
1289 conditional.
1290 (C_SWITCH_SYSTEM): Use _OSF_SOURCE, not -BSD, which clashes with
1291 _XOPEN_SOURCE.
1292 (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist, NSIG): Define.
1293 (SOCKLEN_TYPE): Don't define.
1294
1295 * m/alpha.h: Remove string.h hack.
1296
1297 * s/osf5-0.h: New file.
1298
1299 * filelock.c: Use feature tests for fcntl.h, string.h. Don't
1300 include time.h, done by systime.h.
1301 [__FreeBSD__]: Remove redundant includes.
1302
3fc720e4 1303 * callproc.c (setpgrp): Undefine before defining.
8cf8560b
DL
1304 (delete_temp_file): Return Qnil to avoid warning.
1305
1306 * config.in (HAVE_TERM_H, HAVE_STRUCT_TIMEZONE): Add.
1307
1308 * xfaces.c: Include fontset.h dependent on HAVE_WINDOW_SYSTEM, not
1309 HAVE_X_WINDOWS.
1310
1311 * fontset.h (free_face_fontset): Renamed from fs_free_face_fontset.
1312
1313 * composite.h (compose_text): Declare.
1314
1315 * xterm.c: Don't include sys/types.h unconditionally. Don't
1316 protect its inclusion with !USG (following xmenu.c).
1317
ea055732
GM
13182000-06-23 Gerd Moellmann <gerd@gnu.org>
1319
1320 * xfns.c (x_create_tip_frame): Initialize frame's colors like
1321 in x_create_frame.
1322
74b01b80
EZ
13232000-06-23 Eli Zaretskii <eliz@is.elta.co.il>
1324
1325 * coding.c (decode_eol_post_ccl): Special handling for undecided
1326 and inconsistent EOL types.
1327
64f3a166
GM
13282000-06-22 Gerd Moellmann <gerd@gnu.org>
1329
16cf31f7
GM
1330 * xrdb.c (x_load_resources): Add default resource for scroll bar's
1331 trough color and main window's background color.
1332
178c5d9c 1333 * xfns.c (Fx_file_dialog) [HAVE_MOTIF_2_1]: Handle events
16cf31f7
GM
1334 differently.
1335
1336 * xterm.h (Xt_app_con): External declaration.
1337
1338 * widget.c (EmacsFrameRealize): Fix typo.
178c5d9c 1339
486a103d
GM
1340 * widget.c (EmacsFrameRealize): Remove SubstructureRedirectMask.
1341
64f3a166
GM
1342 * xdisp.c (handle_stop): Initialize it->add_overlay_start to zero.
1343 (handle_invisible_prop): Record the start of invisible text in
1344 it->add_overlay_start.
1345 (struct overlay_entry): Add member `overlay'.
1346 (handle_overlay_change): Simplify.
1347 (next_overlay_string): After having processed overlay strings at the
1348 end of the buffer, record that fact in
1349 it->overlay_strings_at_end_processed_p.
1350 (compare_overlay_entries): If before- and after-strings come
1351 from the same overlay, let before-strings come first.
1352 (RECORD_OVERLAY_STRING): Record the overlay that strings come from.
1353 (load_overlay_strings): Take it->add_overlay_start into account
1354 when adding overlay strings.
1355
1356 * dispextern.h (struct it): Add member add_overlay_start.
1357
bb746ea6
DL
13582000-06-22 Dave Love <fx@gnu.org>
1359
1360 * s/isc3-0.h (C_SWITCH_SYSTEM): Define _XOPEN_SOURCE=500.
1361
1362 * s/gnu-linux.h (C_SWITCH_SYSTEM): Don't define _XOPEN_SOURCE here.
1363
a8f573f3
KH
13642000-06-22 Kenichi Handa <handa@etl.go.jp>
1365
1366 * ccl.c (ccl_driver) <CCL_End>: Decrement stack_idx only when it
1367 is greater than 0.
1368
9f2bbc92
DL
13692000-06-21 Dave Love <fx@gnu.org>
1370
178c5d9c 1371 * Makefile.in (GETLOADAVG_OBJ): Removed -- LIBOBJS does it.
9f2bbc92 1372
3ee5041c
SM
13732000-06-21 Stefan Monnier <monnier@cs.yale.edu>
1374
1375 * syntax.c (back_comment): Simplify string-parity counting (with
1376 the added benefit of handling multiple string-styles as long as
1377 they are not intertwined).
1378 Jump to the slow code as soon as a comment starter is found in
1379 a "string_lossage" position. Fixes the case: " /* " /* " */.
1380
4c343001
DL
13812000-06-21 Dave Love <fx@gnu.org>
1382
1383 * Makefile.in: Use GETLOADAVG_LIBS.
1384
1385 * config.in: Add HAVE_FCNTL_H, _FILE_OFFSET_BITS,
1386 _LARGEFILE_SOURCE, _LARGE_FILES, _XOPEN_SOURCE.
1387
e6365855
SM
13882000-06-20 Stefan Monnier <monnier@cs.yale.edu>
1389
1390 * syntax.c (describe_syntax): Recognize the `n'estable bit.
1391 (Fforward_comment, scan_lists):
1392 Check the comstyle of single-char comment-starters.
1393 (scan_sexps_forward): Don't try to recognize `half comment-enders' if
1394 we're just at the beginning of the comment (f.ex with (*) ... (*)).
d355bd8a
SM
1395 Check the comstyle of single-char comment-starters.
1396 Clarify control-flow around the Scomment case.
e6365855 1397
5700d2cc
DL
13982000-06-20 Dave Love <fx@gnu.org>
1399
d355bd8a
SM
1400 * fns.c (make_hash_table, maybe_resize_hash_table):
1401 Cast arg of next_almost_prime.
5700d2cc 1402
178c5d9c 1403 * tparam.c [emacs]: Include lisp.h.
5700d2cc
DL
1404
1405 * termcap.c [emacs]: Test HAVE_FCNTL_H, not USG5. Include lisp.h
1406 and unistd.h.
1407
4a27bdfb
GM
14082000-06-20 Gerd Moellmann <gerd@gnu.org>
1409
a61d762c
GM
1410 * keyboard.c (adjust_point_for_property): Check if display
1411 property should be treated as intangible by looking at its
1412 value.
1413
178c5d9c 1414 * xdisp.c (single_display_prop_intangible_p)
a61d762c
GM
1415 (display_prop_intangible_p): New functions.
1416
1417 * dispextern.h (display_prop_intangible_p): Add prototype.
1418
1419 * xdisp.c (dump_glyph_row): Show type of glyph->object.
178c5d9c 1420
4a27bdfb
GM
1421 * s/isc4-0.h (sigblock): Redefined to pass a pointer as second
1422 argument to sigprocmask.
1423
1424 * s/sco5.h (sigblock): Redefined to pass a pointer as second
1425 argument to sigprocmask.
1426
1427 * syssignal.h (sigblock, sigunblock) [USG5_4]: Set
1428 sigprocmask_set, and pass a pointer to it to sigprocmask.
1429
1430 * sysdep.c (sigprocmask_set): New variable.
1431
1432 * fileio.c (make_temp_name): Don't use `%s' in string passed to
1433 report_file_error.
1434
427ec082
SS
14352000-06-20 Sam Steingold <sds@gnu.org>
1436
1437 * xrdb.c: Don't declare xmalloc, xrealloc.
1438
8972fe79 14392000-06-20 Stefan Monnier <monnier@cs.yale.edu>
8972fe79
SM
1440
1441 * regex.c (re_match, re_match_2): Protect calls to alloca (0).
1442 (re_comp): Cast gettext return value to avoid complaints when
1443 !HAVE_LIBINTL.
1444
074b6efe
DL
14452000-06-20 Dave Love <fx@gnu.org>
1446
f85c008a
DL
1447 * m/stride.h, m/mips.h: Don't define HAVE_GETWD,
1448 HAVE_GETTIMEOFDAY.
1449
5700d2cc 1450 * m/ibmrt-aix.h: Don't declare HAVE_GETTIMEOFDAY, HAVE_VFORK.
f85c008a 1451
d355bd8a 1452 * m/ibmrs6000.h, m/ibmps2-aix.h, m/dpx2.h: Don't declare HAVE_GETWD.
f85c008a
DL
1453
1454 * m/alpha.h: Don't declare xmalloc, xrealloc.
1455
0af4f205
DL
1456 * s/ux4800.h: Don't declare GETTIMEOFDAY_ONE_ARGUMENT.
1457
1458 * s/usg5-4-2.h: Don't declare HAVE_GETWD, VFORK_RETURN_TYPE.
1459
1460 * s/umips.h: Don't declare HAVE_GETWD, HAVE_GETTIMEOFDAY.
1461
1462 * s/cxux.h, s/gnu-linux.h, s/iris3-6.h, s/irix3-3.h: Don't declare
1463 HAVE_GETWD.
1464
074b6efe
DL
1465 * keyboard.h (poll_for_input_1): Declare.
1466
1467 * getloadavg.c: Don't define NLIST_STRUCT (handled by configure).
1468
1469 * alloc.c (xmalloc, xrealloc, xfree): Define using POINTER_TYPE.
1470
1471 * doprnt.c: Don't declare xmalloc, xrealloc.
1472
1473 * lisp.h (x_set_tool_bar_lines, free_frame_xic, compose_text)
1474 (getenv, ctime, getwd): Removed.
1475 (xmalloc, xrealloc, xfree): Declare using POINTER_TYPE.
1476
1477 * xterm.h: Remove duplicate prototypes. Declare free_frame_xic,
1478 x_set_tool_bar_lines.
1479
1480 * config.in: Add HAVE_GETWD. Move some definitions above
1481 machine/system includes.
1482
68a5e97b
KH
14832000-06-20 Kenichi Handa <handa@etl.go.jp>
1484
95417e1e
KH
1485 * s/bsd386.h (HAVE_GETLOADAVG): Define it as 1.
1486
68a5e97b
KH
1487 * xfaces.c (font_list): Handle the case that REGISTRY doesn't
1488 contain information about ENCODING.
1489
1490 * fontset.c (FONTSET_ASCII): Use the first element of char table
1491 for an ASCII font, not defalt slot.
1492 (fontset_ref_via_base): If FONTSET doesn't contain information for
1493 C, try the default fontset.
1494 (make_fontset): Don't copy the default fontset.
1495 (fontset_font_pattern): Likewise.
1496 (accumulate_font_info): If ELT is nil, use the corresponding
1497 element in the default fontset.
1498
3b4fa1b2
DL
14992000-06-19 Dave Love <fx@gnu.org>
1500
943e731c
DL
1501 * syntax.c (Fparse_partial_sexp): Doc fix.
1502
1503 * regex.h: Test PROTOTYPES as well as __STDC__.
1504
3b4fa1b2
DL
1505 * unexalpha.c: Include errno.h, string.h, unistd.h. Don't declare
1506 errno, strerror. Put text after #endif in comment.
1507
1508 * xdisp.c (dump_glyph_matrix): Add `static' to declaration (for
1509 pcc).
1510
1511 * xterm.c (x_frame_of_widget): Likewise.
1512
cdf0357b
GM
15132000-06-19 Gerd Moellmann <gerd@gnu.org>
1514
1515 * abbrev.c (syms_of_abbrev): Set buffer_default's abbrev table
1516 to Vfundamental_mode_abbrev_table.
1517
1518 * alloc.c (mark_object) [GC_CHECK_MARKED_OBJECTS]: Check that no
1519 bogus objects are marked. This slows down GC by ~80 percent, but
1520 it might be worth trying when debugging GC-related problems.
1521 This feature requires conservative stack marking to be enabled.
1522
1523 * xterm.c (XTread_socket) <KeyPress>: In case XmbLookupString
1524 returns XLookupChars, reset `modifiers' to zero.
1525
998e9f8c
DL
15262000-06-19 Dave Love <fx@gnu.org>
1527
1528 * mktime.c: Unprotoized.
1529
18e21ce8 15302000-06-19 Richard Stallman <rms@gnu.org>
d1504184
GM
1531
1532 * data.c (set_internal): If variable is frame-local,
1533 store the new value immediately into the frame parameter alist.
1534
140c4ac6
KR
15352000-06-19 Ken Raeburn <raeburn@gnu.org>
1536
14358466
KR
1537 * xfns.c (jpeg_load): Fetch error-handling data first, then fill
1538 in the custom handler pointer.
1539
140c4ac6
KR
1540 * keyboard.c (follow_key, read_key_sequence): Use XUINT on key
1541 value, or checks for CHAR_META can fail when Lisp_Object is a
1542 union type.
1543 * keymap.c (get_keyelt): Likewise.
1544
10d7bf84
KH
15452000-06-19 Kenichi Handa <handa@etl.go.jp>
1546
1547 * ccl.h (struct ccl_program): New member eol_type.
1548 (struct ccl_spec): New member cr_carryover.
1549
1550 * ccl.c (CCL_WRITE_CHAR): Convert NL according to ccl->eol_type.
1551 (setup_ccl_program): Initialize ccl->eol_type to CODING_EOL_LF.
1552
1553 * coding.c (setup_coding_system) <4>: Reset member `cr_carryover'.
1554 (ccl_coding_driver): On encoding, initialize ccl->eol_type.
1555 (decode_eol_post_ccl): New function.
1556 (decode_coding): Don't detect EOL format here for CCL based coding
1557 systems.
1558 (decode_coding) <coding_type_ccl>: Handle carryovered CR. Call
1559 decode_eol_post_ccl after running the CCL program.
1560 (code_convert_region): Don't detect EOL format here for CCL based
1561 coding systems.
1562 (decode_coding_string): Likewise.
1563
52e386c2
KR
15642000-06-18 Ken Raeburn <raeburn@gnu.org>
1565
1566 * charset.c (update_charset_table): Use XINT on "iso_final_char"
1567 when treating it as an integer.
1568
1569 * coding.h (encode_coding_string): Declare.
1570
1571 * keyboard.c (read_key_sequence): Use XINT on "pos" when treating
1572 it as an integer.
1573
1574 * keymap.c (Fwhere_is_internal): Rename argument "keymap" to
1575 "xkeymap" to avoid shadowing the "enum map_type" value that needs
1576 to be passed to get_local_map.
1577
1578 * sound.c (Fplay_sound): Don't call make_number on
1579 Frun_hook_with_args count argument.
1580
1581 * xterm.c (x_send_scroll_bar_event): Fudge lisp object/integer
1582 for lisp objects in X event structure data field, when lisp
1583 objects are represented with unions.
1584 (x_scroll_bar_to_input_event): Ditto.
1585
b357b9d4
KR
15862000-06-16 Ken Raeburn <raeburn@gnu.org>
1587
1588 * xdisp.c (decode_mode_spec): In "no_value" case, do NUL
37d034d3
KR
1589 termination of string. Fix sense of test whether
1590 Vline_number_display_limit is an integer.
b357b9d4 1591
a871441d
GM
15922000-06-16 Gerd Moellmann <gerd@gnu.org>
1593
a9021acd
GM
1594 * xfaces.c (syms_of_xfaces) [DEBUG_X_COLORS]: Defsubr dump_colors
1595 only if HAVE_X_WINDOWS.
1596
6344985d
GM
1597 * keymap.c (describe_buffer_bindings): Add `\f\n' in front
1598 of titles.
1599
427ec082 1600 * dispnew.c (update_frame_1): Handle case that cursor vpos is
a871441d
GM
1601 out of bounds.
1602
228b083e
EZ
16032000-06-15 Eli Zaretskii <eliz@is.elta.co.il>
1604
1605 * unexec.c (toplevel): Fix last change, so as not to deprive MSDOS
1606 of its headers.
1607
c25b53a2
KH
16082000-06-15 Kenichi Handa <handa@etl.go.jp>
1609
1610 * coding.c (decode_coding_emacs_mule): Always set src_base at the
1611 start of the while loop.
1612
a6981b11
GM
16132000-06-15 Gerd Moellmann <gerd@gnu.org>
1614
e9924e52
GM
1615 * atimer.c (alarm_signal_handler): Add forward declaration.
1616
a6981b11
GM
1617 * data.c (set_internal): Remove debug code.
1618
25fa6deb
GM
16192000-06-14 Gerd Moellmann <gerd@gnu.org>
1620
dce6b995
GM
1621 * Makefile.in (bootstrap-temacs): Add `-I../src'.
1622
9f817ea4
GM
1623 * unexec.c (toplevel) [COFF]: Include coff.h.
1624
1625 * s/lynxos.h: New file.
1626
1627 * keymap.c (Fsingle_key_description): Enclose function key and
1628 event symbol names in angle brackets.
1629
8a4e3c0c
GM
1630 * xdisp.c (setup_echo_area_for_printing): Call
1631 message_log_maybe_newline if message_buf_print is not set.
1632
1633 * print.c (printchar, strout): Don't check message_buf_print
427ec082 1634 before calling setup_echo_area_for_printing because that
8a4e3c0c
GM
1635 function does something useful even when message_buf_print is
1636 already set.
1637
25fa6deb
GM
1638 * xdisp.c (message_truncate_lines, Qmessage_truncate_lines): New
1639 variables.
1640 (ensure_echo_area_buffers): Initialize echo buffer's
1641 truncate lines setting to nil.
1642 (with_echo_area_buffer): Don't set the echo buffer's truncate
1643 lines setting here.
8a4e3c0c 1644 (set_message_1): Set it here instead, based on the value
25fa6deb
GM
1645 of message_truncate_lines.
1646 (resize_mini_window): Handle case that lines are truncated.
1647 (syms_of_xdisp): Initialize Qmessage_truncate_lines. DEFVAR_BOOL
1648 message-truncate-lines.
1649
1650 * keyboard.c (read_char): Bind message-truncate-lines to t
1651 while displaying a help-echo.
1652
1653 * lisp.h (Qmessage_truncate_lines): External declaration.
1654
163dcff3
GM
16552000-06-13 Gerd Moellmann <gerd@gnu.org>
1656
1681ead6
GM
1657 * xdisp.c (Vline_number_display_limit): Renamed from
1658 line_number_display_limit.
1659 (syms_of_xdisp): Use DEFVAR_LISP for line-number-display-limit.
1660 Extend documentation string. Initialize
1661 Vline_number_display_limit to nil meaning no limit.
1662 (decode_mode_spec): Use Vline_number_display_limit with its new
1663 meaning.
1664
163dcff3
GM
1665 * xterm.c (x_check_font) [GLYPH_DEBUG]: Add prototype.
1666
18e21ce8 16672000-06-13 Richard Stallman <rms@gnu.org>
163dcff3
GM
1668
1669 * frame.c (Fmodify_frame_parameters): Doc fix.
427ec082 1670
163dcff3
GM
1671 * xfns.c (x_set_frame_parameters): Comment fix.
1672
1673 * frame.c (store_frame_param): Call swap_in_global_binding if the
1674 variable's current binding was chosen based on this frame.
1675
1676 * data.c (swap_in_global_binding): New function.
1677
a704139d
EZ
16782000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
1679
1680 * msdos.c (IT_write_glyphs): Don't use CODING_REQUIRE_ENCODING
1681 macro, instead AND with CODING_REQUIRE_ENCODING_MASK.
1682
9b6610db
EZ
16832000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
1684
1685 * msdos.h (EMACS_MSDOS_H): Renamed from MSDOS_H_.
1686
c68833d2
JR
16872000-06-12 Jason Rumney <jasonr@gnu.org>
1688
1689 * w32bdf.h (EMACS_W32BDF_H): Renamed from __W32BDF_H__
1690
1691 * w32.h (EMACS_W32_H): Renamed from _NT_H_
1692
1693 * w32gui.h (EMACS_W32GUI_H): Renamed from __W32GUI_H__
1694
1695 * w32inevt.h (EMACS_W32INEVT_H): Renamed from __NTINEVT_H__
1696
ed1056b3
GM
16972000-06-12 Gerd Moellmann <gerd@gnu.org>
1698
1699 * xfaces.c (Fdump_colors) [DEBUG_X_COLORS]: New function.
1700 (syms_of_xfaces): Defsubr Sdump_colors.
1701 (x_free_colors): Don't treat b&w specially on default visual.
1702 (x_free_dpy_colors): New function.
1703 (free_face_colors): Don't check visual class; it's done
1704 in x_free_colors.
1705
1706 * xterm.c (x_frame_of_widget): New function.
1707 (x_alloc_nearest_color_for_widget): Use it.
1708 (x_copy_dpy_color): New function.
1709 (x_destroy_window): Free various colors.
1710
5050a2ef
KH
17112000-06-12 Kenichi Handa <handa@etl.go.jp>
1712
1713 * ccl.h (EMACS_CCL_H): Renamed from _CCL_H.
1714
1715 * charset.h (EMACS_CHARSET_H): Renamed from _CHARSET_H.
1716
1717 * coding.h (EMASC_CODING_H): Renamed from _CODING_H.
1718
1719 * composite.h (EMACS_COMPOSITE_H): Renamed from _COMPOSITE_H.
1720
1721 * fontset.h (EMACS_FONTSET_H): Renamed from _FONTSET_H.
1722
fb1b041d
DL
17232000-06-11 Dave Love <fx@gnu.org>
1724
1725 * systime.h (EMACS_SYSTIME_H): Renamed from _SYSTIME_H.
1726
ff96b5f4
EZ
17272000-06-11 Eli Zaretskii <eliz@is.elta.co.il>
1728
1729 * msdos.h: Don't use _MSDOS_H_ as a symbol, use MSDOS_H_ instead.
1730
db8eeecd
GM
17312000-06-11 Gerd Moellmann <gerd@gnu.org>
1732
ed1056b3 1733 * xmenu.c (xmenu_show): Cast second parameter of lw_popup_menu
db8eeecd
GM
1734 to `XEvent *'.
1735
49b71c5f
KH
17362000-06-10 Kenichi Handa <handa@etl.go.jp>
1737
c479bd55
KH
1738 * regex.c (MAKE_CHAR) [!emacs]: Dummy macro for non-Emacs env.
1739 (regex_compile): Fix the code for handling the case of single byte
1740 char and multibyte char being mixed in a range within [...].
1741
ff6a65c2
KH
1742 * fileio.c (Finsert_file_contents): Be sure to setup src_multibyte
1743 and dst_multibyte members of coding.
1744
49b71c5f
KH
1745 * charset.c (update_charset_table): Update the table
1746 bytes_by_char_head.
1747 (init_charset_once): Initialize elements of bytes_by_char_head to
1748 1 except for leading codes for private charases.
1749
1750 * charset.h (CHARSET_8_BIT_GRAPHIC): Define as 0x80.
1751 (UNIBYTE_STR_AS_MULTIBYTE_P): Fix for an invalid multibyte
1752 sequence.
1753
9e80b57d
KR
17542000-06-09 Ken Raeburn <raeburn@gnu.org>
1755
1756 * xterm.c (x_connection_closed): If dpyinfo is NULL, don't try to
1757 access the data it doesn't point to.
1758
f83fe4b4
GM
17592000-06-08 Gerd Moellmann <gerd@gnu.org>
1760
1761 * xterm.c (XTread_socket) <FocusIn>: Queue a FOCUS_IN_EVENT which
db8eeecd 1762 will be translated to a switch-frame event when reading the
f83fe4b4
GM
1763 event queue. This is necessary because Emacs otherwise won't
1764 perform a switch-frame to a new frame until some other event, for
1765 example a keystroke event, forces it to do so. This has various
1766 effects, one visible being that the cursor of a frame created with
1767 C-x 5 2 or switched to with a window manager key binding like
1768 A-TAB stays hollow because selected_window isn't on the newly
1769 focused frame until the switch-frame is performed.
1770
1771 * keyboard.c (kbd_buffer_get_event): Handle FOCUS_IN_EVENT by
1772 generating a switch-frame event if necessary.
1773
1774 * termhooks.h (enum event_kind): Add FOCUS_IN_EVENT.
1775
1776 * xdisp.c (handle_fontified_prop): Don't GCPRO local var `pos';
1777 it's an integer.
1778
0890801b
KH
17792000-06-08 Kenichi Handa <handa@etl.go.jp>
1780
1781 * fontset.c (Fset_fontset_font): The arg CHARACTER may be a
1782 charset.
1783
173cbca8
GM
17842000-06-07 Gerd Moellmann <gerd@gnu.org>
1785
3091c2a6
GM
1786 * window.c (displayed_window_lines): Take empty lines at
1787 the bottom of a window into account.
427ec082 1788
f38952fe
GM
1789 * window.c (displayed_window_lines): New function.
1790 (Fmove_to_window_line): Use displayed_window_lines to determine
1791 the number of lines to move, instead of using the window's height.
1792
1793 * lread.c (readevalloop): If READCHARFUN sets point to ZV, arrange
1794 to stop reading, even if the form read sets point to a different
1795 value when evaluated.
1796
427ec082 1797 * xdisp.c (display_line): Fix code deciding in which line to
173cbca8
GM
1798 put the cursor.
1799
6ba6c818
KH
18002000-06-07 Kenichi Handa <handa@etl.go.jp>
1801
1802 * fileio.c (e_write): Free composition data if stored in
1803 coding->cmp_data.
1804
5f1aea9a
GM
18052000-06-06 Gerd Moellmann <gerd@gnu.org>
1806
666852af
GM
1807 * xdisp.c (display_line): Set row's and iterator's
1808 starts_in_middle_of_char_p and ends_in_middle_of_char_p flags.
1809 Set cursor even if row ends in the middle of a character.
1810 (dump_glyph_row): Print values of new flags.
1811 (redisplay_window) <cursor movement in unchanged window>: When
1812 point has been moved forward, and PT is at the end of the cursor
1813 row, don't place the cursor in the next row if the cursor row ends
1814 in the middle of a character or at ZV.
1815
1816 * dispextern.h (struct it): Add starts_in_middle_of_char_p.
1817 (struct glyph_row): Add starts_in_middle_of_char_p and
1818 ends_in_middle_of_char_p.
1819 (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P): Test row's
1820 ends_in_middle_of_char_p flag.
1821 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Likewise.
1822
d13f3e2e
GM
1823 * term.c (append_glyph): Revert change of 2000-06-06.
1824
1825 * xdisp.c (display_line): Revert change of 2000-06-06. Treat
1826 padding glyph not fitting on line as whole character not
1827 fitting on line.
1828
5f1aea9a
GM
1829 * xterm.c (x_produce_glyphs): Don't xassert `it->descent > 0';
1830 this isn't true for images with `:ascent 100'.
1831
10cda9b0
KH
18322000-06-06 Kenichi Handa <handa@etl.go.jp>
1833
ed00559d
KH
1834 * buffer.c (Fset_buffer_multibyte): Don't make the current buffer
1835 as modified if it is originally unmodified.
1836
10cda9b0
KH
1837 * term.c (encode_terminal_code): Change the way to check if
1838 terminal coding does any conversion.
1839 (append_glyph): Set glyph->pixel_width correctly.
1840
1841 * xdisp.c (display_line): While checking line continuation, pay
1842 attention to a padding glyph.
1843
1969fae2
GM
18442000-06-05 Gerd Moellmann <gerd@gnu.org>
1845
1846 * xdisp.c (redisplay_window): Always use set_buffer_internal_1.
1847
162ccef4
DL
18482000-06-05 Dave Love <fx@gnu.org>
1849
f19f32dd
DL
1850 * xdisp.c: Include fontset.h.
1851
1852 * xfns.c (x_real_positions): Declare tmp_nchildren as unsigned.
1853
1854 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
1855
1856 * dispnew.c: Conditionally include term.h.
1857
1858 * coding.h: Declare code_convert_string_norecord.
1859
1860 * frame.h (struct frame): Use volatile unconditionally.
1861
1862 * buffer.h: Remove Vbefore_change_function, Vafter_change_function.
1863
1864 * xmenu.c (menu_item_selection): Declare volatile unconditionally.
1865
1866 * systime.h: Protect against multiple inclusion.
1867 (timezone) [USG5_4]: Define as time_t.
1868
1869 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
1870 (Foptimize_char_table, make_temp_name): Declare.
1871
1872 * Makefile.in (xdisp.o): Depend on fontset.h.
1873
1874 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
1875
1876 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
1877 (Foptimize_char_table, make_temp_name): Declare.
1878
427ec082 1879 * s/irix4-0.h:
162ccef4
DL
1880 * s/irix5-0.h:
1881 * s/netbsd.h: Don't define autoconfiscated MATHERR.
1882
2082fe81
DL
18832000-06-02 Dave Love <fx@gnu.org>
1884
1885 * lread.c (_XOPEN_SOURCE, __EXTENSIONS__): Don't define.
1886
dcf671d2
GM
18872000-06-02 Gerd Moellmann <gerd@gnu.org>
1888
1889 * xfaces.c (realize_x_face): When copying BASE_FACE bitwise to the
1969fae2 1890 result face, set flags in that face indicating that colors may not
dcf671d2
GM
1891 be freed.
1892
1893 * xterm.c (x_set_mouse_face_gc): If first glyph isn't a character
1894 glyph, use the ASCII NUL character to determine the face.
1895
d42122a3
DL
18962000-06-02 Dave Love <fx@gnu.org>
1897
1898 * sysdep.c: Conditionally include stdlib.h, unistd.h.
1899 (VFORK_RETURN_TYPE): Remove.
427ec082 1900
d42122a3
DL
1901 * config.in: Add NO_MATHERR.
1902
dd432f16
DL
19032000-06-01 Dave Love <fx@gnu.org>
1904
90aa4ea8
DL
1905 * cmds.c (internal_self_insert): Don't check
1906 Vbefore_change_function, Vafter_change_function.
1907
1908 * insdel.c (signal_before_change, signal_after_change): Likewise.
1909
1910 * buffer.c (Vbefore_change_function, Vafter_change_function):
1911 Variables and their initializations deleted.
1912
2330c9d4
DL
1913 * callint.c (Fcall_interactively): Doc fix.
1914
dd432f16
DL
1915 * terminfo.c (ospeed) [HAVE_SPEED_T]: Don't declare extern.
1916
bf9e8804
DL
19172000-05-31 Dave Love <fx@gnu.org>
1918
1919 * textprop.c: Revert last change -- duplicated.
1920
3694b4ab
GM
19212000-05-31 Gerd Moellmann <gerd@gnu.org>
1922
1923 * dispnew.c (find_glyph_row_slice, swap_glyphs_in_rows): Put
1924 in #if 0.
1925
1926 * lisp.h (eassert) [!ENABLE_CHECKING]: Define as `(void) 0'.
1927
f14156cd
JR
19282000-05-31 Jason Rumney <jasonr@gnu.org>
1929
8119aab8
JR
1930 * search.c (Fre_search_forward, Fre_search_backward)
1931 (Fposix_search_backward, Fposix_search_forward): Fix newlines in docs.
1932
f14156cd
JR
1933 * w32select.c (Fw32_set_clipboard_data): Change QNil to Qnil.
1934
4aab9be3
JR
19352000-05-30 Jason Rumney <jasonr@gnu.org>
1936
1937 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: New macros.
1938 [WINDOWSNT]: Add extern for Vw32_system_coding_system.
1939
1940 * dispextern.h (struct glyph) [WINDOWSNT]: Add w32_font_type
1941 member.
1942
1943 * fileio.c (Fread_file_name) [HAVE_NTGUI]: Use file dialog.
1944 (Fread_file_name) [HAVE_NTGUI, USE_MOTIF]: Do not attempt to
1945 expand a nil default_filename.
1946
1947 * keyboard.c (make_lispy_event) [WINDOWS_NT]: Pass a window
1948 pointer to glyph_to_pixel_coords, not a frame.
1949
1950 * makefile.nt (w32fns.obj, w32menu.obj): Add charset.h and
1951 coding.h to dependencies.
1952
1953 * w32bdf.c (w32_load_bdf_font): Initialize font->double_byte_p.
1954
1955 * w32console.c (glyph_to_pixel_coords): Change first parameter to
1956 window pointer to be consistent with w32term.c and xterm.c.
1957
1958 * w32fns.c: Format and doc changes to bring closer to xfns.c.
1959 (VIETNAMESE_CHARSET): Define if not defined in system headers.
1960 (Qline_spacing, Qcenter): New variables.
1961 (Qw32_charset_*, w32_codepage_for_font): Moved from w32term.c.
1962 (x_set_line_spacing): New function.
1963 (x_set_frame_parameters): Use FRAME_NEW_WIDTH, FRAME_NEW_HEIGHT
1964 macros.
1965 (x_specified_cursor_type): New function.
1966 (x_set_cursor_type): Use it.
1967 (x_set_name, x_set_title): Use ENCODE_SYSTEM to encode titlebar
1968 and icon strings.
1969 (validate_x_resource_name, x_get_resource_string): Measure lengths
1970 of external strings in bytes.
1971 (w32_wnd_proc) [WM_MEASURE_ITEM]: Avoid calling
1972 GetTextExtentPoint32 with NULL title.
1973 (Fx_create_frame): Initialize Qline_spacing.
1974 (w32_load_system_font): Initialize font->double_byte_p.
1975 (x_to_w32_charset): Use Vw32_charset_info_alist.
1976 (Image, busy cursor, tooltip functions): Merged changes from
1977 xfns.c. Not yet functional on Windows.
1978
1979 * w32gui.h (W32FontStruct): Add double_byte_p member.
1980
1981 * w32inevt.c (NUM_TRANSLATED_MOUSE_BUTTONS): New constant.
1982 (emacs_button_translation): Use it.
1983 (do_mouse_event): Allow up to 32 mouse buttons by allowing any bit
1984 in `mask' to be set.
1985
1986 * w32menu.c (single_submenu, w32_menu_show): Call ENCODE_SYSTEM on
1987 menu strings.
1988
1989 * w32term.c: Format and doc changes to bring closer to xterm.c.
1990 (w32_char_font_type): New enum.
1991 (Qw32_charset_*, w32_codepage_for_font): Moved to w32fns.c.
1992 (w32_per_char_metric): Use w32_char_font_type instead of unicode_p.
1993 (w32_encode_char): New function.
1994 (x_encode_char): Removed.
1995 (x_get_glyph_and_face_encoding): Use w32_encode_char in place of
1996 x_encode_char and w32_font_is_double_byte.
1997 (x_produce_image_glyph): Use image_ascent.
1998 (x_produce_glyphs): Use new version of w32_per_char_metric and
1999 handle NULL return value. Allow extra line spacing.
2000 (W32_TEXTOUT): Distinguish between Unicode and DBCS text.
2001 (w32_get_glyph_overhangs): Remove unicode_p param. Use
2002 w32_font_type member of glyph instead.
2003 (x_draw_glyph_string): Draw underline and strike-out for BDF fonts.
2004 (fast_find_position): Make sure not to consider rows not visible
2005 in the window.
2006 (w32_read_socket) [WM_MENUSELECT]: Cannot call
2007 w32_menu_display_help with input blocked, as it can abort.
2008 (x_display_and_set_cursor): Choose cursor depending
2009 on buffer-local value of cursor_type.
2010 (x_draw_bar_cursor): Add parameter WIDTH.
2011
2012 * w32term.h (CP_DEFAULT): Define.
2013 (Fx_display_color_p, Fx_display_grayscale_p, image_ascent): Declare.
2014
10fc3187
GM
20152000-05-30 Gerd Moellmann <gerd@gnu.org>
2016
2017 * search.c (Fre_search_forward, Fre_search_backward)
2018 (Fposix_search_backward, Fposix_search_forward): Doc fix.
2019
d0555360
KH
20202000-05-30 Kenichi Handa <handa@etl.go.jp>
2021
2022 * coding.c (detect_coding_iso2022): Fix code for checking
2023 CODING_CATEGORY_MASK_ISO_8_2.
2024
f1ad044f
SM
20252000-05-29 Stefan Monnier <monnier@cs.yale.edu>
2026
2027 * regex.c (PREFETCH_NOLIMIT): New function.
2028 (re_match_2_internal): Use it and adjust the end_match_2 logic.
2029
84ec3b4b
GM
20302000-05-29 Gerd Moellmann <gerd@gnu.org>
2031
66254a13
GM
2032 * syntax.c (find_defun_start): Move test for
2033 open_paren_in_column_0_is_defun_start outside of the loop.
2034
49e70dec
GM
2035 * xdisp.c (redisplay_window): Really switch buffers when
2036 displaying mode lines, and temporarily set selected_frame to the
2037 frame of the window that's redisplayed.
2038
84ec3b4b
GM
2039 * xfaces.c (free_realized_faces): Block/unblock input.
2040 (free_realized_multibyte_face): Ditto.
2041
869a3a14
DL
20422000-05-29 Dave Love <fx@gnu.org>
2043
2044 * textprop.c (Qkeymap): New variable.
2045 (syms_of_textprop): Intern it.
2046
2047 * keymap.c: Include intervals.h.
2048 (Fkey_binding, Fwhere_is_internal): Deal with `keymap' property.
2049
2050 * Makefile.in (keymap.o): Depend on intervals.h.
2051
2052 * keyboard.c (menu_bar_items, tool_bar_items)
2053 (Fexecute_extended_command): Deal with `keymap' property.
2054 (read_key_sequence): Track map from `keymap' property as well as
2055 `local_map'.
2056
2057 * intervals.c (get_local_map): Extra arg to allow looking for
2058 `keymap' too.
2059
2060 * intervals.h (map_property): New enum.
2061 (get_local_map): Extra arg using it.
2062 (Qkeymap): Declare.
2063
84ec3b4b 2064 * lisp.h (get_local_map): Don't declare here.
869a3a14 2065
89d0c844
KH
20662000-05-29 Kenichi Handa <handa@etl.go.jp>
2067
2068 * Makefile.in (callproc.o): Depend on composite.h.
2069
2070 * callproc.c: Include composite.h.
2071 (Fcall_process): Handle composition correctly.
2072
2073 * coding.h (coding_allocate_composition_data): Extern it.
2074 (coding_restore_composition): Likewise.
2075
2076 * coding.c (DECODE_COMPOSITION_START): If coding->cmp_data is not
2077 yet allocated, finish decoding with result
2078 CODING_FINISH_INSUFFICIENT_CMP.
2079 (coding_allocate_composition_data): Make it non-static.
2080 (coding_restore_composition): Likewise.
2081
797a084a
EZ
20822000-05-29 Eli Zaretskii <eliz@is.elta.co.il>
2083
2084 * charset.c (syms_of_charset): Revert last change.
2085
cf872af5
EZ
20862000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
2087
2088 * term.c (produce_glyphs): Treat characters from the eight-bit-*
d7d0dac0
SM
2089 charsets as unibyte, with 1-column screen width. Sent by Kenichi
2090 Handa.
cf872af5 2091
5b1ae051
EZ
20922000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
2093
2094 * charset.c (syms_of_charset): Set width of character sets
2095 eight-bit-control and eight-bit-graphic to 1 column.
2096
34ec9ebe
GM
20972000-05-26 Gerd Moellmann <gerd@gnu.org>
2098
2099 * config.in (HAVE_SPEED_T): New define.
2100
2101 * sysdep.c, terminfo.c (ospeed) [HAVE_SPEED_T]: Declare as
2102 `extern speed_t'.
2103
dd854dc2
DL
21042000-05-26 Dave Love <fx@gnu.org>
2105
2106 * coding.c (shrink_decoding_region): Initialize eol_conversion.
2107
2108 * data.c (Qsubrp, Qmany, Qunevalled): New variables.
2109 (Fsubr_arity): New function.
2110 (syms_of_data): Install them.
2111
ba9f8f95
KH
21122000-05-26 Kenichi Handa <handa@etl.go.jp>
2113
0f3e0672
KH
2114 * charset.c (init_charset_once): Set the table bytes_by_char_head
2115 correctly.
2116
cebefb44
KH
2117 * fontset.c (syms_of_fontset): Adjust the font name for ascii of
2118 the default fontset to what Emacs uses by default.
0f3e0672
KH
2119 (check_registry_encoding): This function deleted.
2120 (Fset_fontset_font): Remove the adhoc condition for the default
2121 fontset. Allow cons in FONTNAME.
cebefb44 2122
0f3e0672
KH
2123 * fns.c (map_char_table): Ignore char-table entries for
2124 charsets eight-bit-control and eight-bit-graphic.
ba9f8f95 2125
7a18af49
KR
21262000-05-25 Ken Raeburn <raeburn@gnu.org>
2127
2128 * emacs.c (main): Initialize keyboard syms before initializing
2129 window code, so face names are available.
2130
d2af47df
SM
21312000-05-25 Stefan Monnier <monnier@cs.yale.edu>
2132
2133 * regex.c (at_begline_loc_p): Also recognize the \\(?:^ case
2134 of an anchor at the beginning of a shy-group.
2135
fc6a6a4e
GM
21362000-05-25 Gerd Moellmann <gerd@gnu.org>
2137
2138 * xdisp.c (handle_invisible_prop): Don't try to skip over
2139 invisible text if end of text is already reached.
2140
005f0d35
DL
21412000-05-25 Dave Love <fx@gnu.org>
2142
02513cdd
DL
2143 * xdisp.c (Fdump_glyph_matrix): Declare the arg.
2144
005f0d35
DL
2145 * coding.c (encode_eol): Add null statement after label.
2146
89f6ca4e
EZ
21472000-05-25 Eli Zaretskii <eliz@is.elta.co.il>
2148
2149 * w16select.c (Fw16_set_clipboard_data): Fix the change from
2150 2000-05-20.
2151
a4e1759e
KH
21522000-05-25 Kenichi Handa <handa@etl.go.jp>
2153
2154 * ccl.c (ccl_driver): Fix previous change.
2155
eacfd7fe
KH
21562000-05-25 Kenichi Handa <handa@etl.go.jp>
2157
46ab33a9
KH
2158 * coding.c (run_pre_post_conversion_on_str): Set point to the
2159 beginning of buffer before calling coding->post_read_conversion.
2160 (decode_coding_string): Give correct args to
2161 run_pre_post_conversion_on_str.
2162 (encode_coding_string): Likewise.
2163
eacfd7fe
KH
2164 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>
2165 <CCL_WriteMultibyteChar2>: Handle charsets eight-bit-control and
2166 eight-bit-graphic correctly.
2167
f8569325
DL
21682000-05-24 Kenichi HANDA <handa@etl.go.jp>
2169
2170 * fileio.c (Finsert_file_contents): Even if a file is not found,
2171 execute codes for setting up coding system. Call
2172 after-insert-file-functions unconditionally.
2173
04545643
GM
21742000-05-24 Gerd Moellmann <gerd@gnu.org>
2175
2176 * callproc.c, emacs.c, sysdep.c (setpgrp): Don't define if USG and
2177 BSD_PGRPS are not defined.
2178
747d90ea
KH
21792000-05-24 Kenichi Handa <handa@etl.go.jp>
2180
2181 * charset.c (update_charset_table): Accept nil in LONG_NAME and
2182 DESCRIPTION.
2183 (syms_of_charset): Avoid building same strings.
2184
716e3b88
GM
21852000-05-23 Gerd Moellmann <gerd@gnu.org>
2186
2187 * lread.c (Fload): Add a comment about the meaning of
2188 Vuser_init_file being t.
2189
2190 * puresize.h (BASE_PURESIZE): Increase to 675000.
2191
2192 * s/gnu-linux.h (setpgrp): Don't define it here because this
2193 prevents compilation on GNU/Linux systems with glib 2.2.
2194
2195 * callproc.c, emacs.c, sysdep.c (setpgrp) [HAVE_SETPGID]: Define
2196 as setpgid.
427ec082 2197
9aeb39fa
EZ
21982000-05-23 Eli Zaretskii <eliz@is.elta.co.il>
2199
2200 * Makefile.in (SOME_MACHINE_LISP): Add disp-table.elc,
2201 dos-vars.elc, ccl.elc, and codepage.elc, all loaded by the MS-DOS
2202 version.
2203 (MSDOS_SUPPORT): Add dos-vars.elc, ccl.elc, and codepage.elc.
2204
29ced61b
KH
22052000-05-23 Kenichi Handa <handa@etl.go.jp>
2206
0574a2ed
KH
2207 * syntax.c (skip_chars): Use FETCH_STRING_CHAR_ADVANCE
2208 unconditionally.
2209
3d80f24d
KH
2210 * msdos.c (IT_write_glyphs): Set coding->src_multibyte to 1.
2211
2212 * term.c (encode_terminal_code): Set coding->src_multibyte
2213 properly.
2214
29ced61b
KH
2215 * coding.c (encode_eol): Fix a bug of DOS style EOL encoding.
2216
d7e00792
KH
22172000-05-22 Kenichi Handa <handa@etl.go.jp>
2218
c9d80d38
KH
2219 * keyboard.c (read_char): Allow character codes 128..255 to be
2220 handled by input-method-function.
2221
d7e00792
KH
2222 * insdel.c (adjust_markers_for_replace): Fix previous change.
2223 (adjust_after_replace): If PREV_TEXT is nil, call
2224 adjust_markers_for_insert, not adjust_markers_for_replace.
2225
087121cc 22262000-05-20 NIIBE Yutaka <gniibe@mri.co.jp>
427ec082 2227
087121cc
GM
2228 * s/gnu-linux.h (UNIX98_PTYS) [HAVE_GRANDPT]: Define.
2229 (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_OPEN, PTY_TTY_NAME_SPRINTF)
2230 [HAVE_GRANDPT]: Define.
2231 (C_SWITCH_SYSTEM): Add -D_XOPEN_SOURCE.
2232
2233 * sysdep.c (setup_pty): Treat case that UNIX98_PTYS is defined
2234 like SYSV_PTYS.
2235
2236 * config.in (HAVE_GRANDPT, HAVE_GETPT): New defines.
2237
2238 * process.c (toplevel) [UNIX98_PTYS]: Include stdlib.h.
2239
c9671f81
KH
22402000-05-20 Kenichi Handa <handa@etl.go.jp>
2241
2242 The following changes are to handle 8-bit characters in a
2243 multibyte buffer/string without facing with byte combining
2244 problem. Two new charsets eight-bit-control (for 0x80..0x9F) and
2245 eight-bit-graphic (for 0xA0..0xFF) are introduced.
2246
2247 * Makefile.in (fns.o): Depend on charset.h.
2248
2249 * alloc.c (Fmake_byte_code): If BYTECODE-STRING is multibyte,
2250 convert it to unibyte.
2251 (make_string): Use parse_str_as_multibyte, not chars_in_text.
2252
2253 * buffer.c (advance_to_char_boundary): Don't use DEC_POS to find a
2254 apparent char boundary.
2255 (Fset_buffer_multibyte): Convert 8-bit characters in the range
2256 0x80..0x9F to/from multibyte form.
2257
2258 * bytecode.c (Fbyte_code): If arg BYTESTR is multibyte, convert it
2259 to unibyte.
2260
2261 * callproc.c (Fcall_process): Always encode an argument string if
2262 it is multibyte. Setup src_multibyte and dst_multibyte members of
2263 process_coding properly.
ce75fd23 2264
c9671f81
KH
2265 * category.c (Fmodify_category_entry): Use SPLIT_CHAR, not
2266 SPLIT_NON_ASCII_CHAR.
2267
2268 * ccl.c (CCL_WRITE_CHAR): Be sure to write single byte characters
2269 as is.
2270 (CCL_MAKE_CHAR): Use MAKE_CHAR, not MAKE_NON_ASCII_CHAR.
2271
2272 * charset.c (Qeight_bit_control, Qeight_bit_graphic): New
2273 variables.
2274 (SPLIT_CHARACTER_SEQ): This macro deleted.
2275 (SPLIT_MULTIBYTE_SEQ): Assume that multibyte sequence at STR is
2276 valid.
2277 (CHAR_COMPONENTS_VALID_P): Handle new charsets; eight-bit-control
2278 and eight-bit-graphic.
2279 (char_to_string): Likewise. Signal an error for too large
2280 character code.
2281 (char_printable_p): Return 0 for 8-bit characters.
2282 (update_charset_table): Update iso_charset_table only when a final
2283 character is non-negative.
2284 (find_charset_in_text): Renamed from find_charset_in_str.
2285 Arguments and return value changed. Callers changed.
2286 (Fdefine_charset): Args ISO-FINAL-CHAR and ISO-GRAPHIC-PLANE can
2287 be -1 if CHARSET is used only internally.
2288 (Fmake_char_internal): Handle new charsets; eight-bit-control and
2289 eight-bit-graphic.
2290 (Fcharset_after): Simplified.
2291 (char_valid_p): Use SPLIT_CHAR, not SPLIT_NON_ASCII_CHAR.
2292 (char_bytes): Return 2 for chars of the range 0xA0..0xFF.
2293 (multibyte_chars_in_text): Simplified by assuming there's no
2294 invalid multibyte sequence.
2295 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte,
2296 str_as_unibyte): New functions.
2297 (Fstring): Simpified by assuming that byte combining never
2298 happens.
2299 (init_charset_once): Initialization for
2300 LEADING_CODE_8_BIT_CONTROL.
2301 (syms_of_charset): Intern and staticpro Qeight_bit_control and
2302 Qeight_bit_graphic. Include them in Vcharset_list. Make charsets
2303 eight-bit-control and eight-bit-graphic.
2304
2305 * charset.h (LEADING_CODE_8_BIT_CONTROL, CHARSET_8_BIT_CONTROL,
2306 CHARSET_8_BIT_GRAPHIC): New macros.
2307 (SINGLE_BYTE_CHAR_P): Make it faster by using casting.
2308 (CHARSET_ISO_GRAPHIC_PLANE): Use XINT instead of XFASTINT.
2309 (CHARSET_REVERSE_CHARSET): Likewise.
2310 (CHARSET_VALID_P): Handle new charsets; eight-bit-control and
2311 eight-bit-graphic.
2312 (BYTES_BY_CHAR_HEAD, WIDTH_BY_CHAR_HEAD): Optimize for ASCII.
2313 (CHAR_CHARSET, MAKE_CHAR, SPLIT_CHAR, CHAR_BYTES): Likewise.
2314 (PARSE_MULTIBYTE_SEQ) [BYTE_COMBINING_DEBUG]: Abort if we
2315 encounter an invalid multibyte sequence.
2316 (PARSE_MULTIBYTE_SEQ) [not BYTE_COMBINING_DEBUG]: Assume multibyte
2317 sequence is always valid.
2318 (MAKE_NON_ASCII_CHAR, SPLIT_NON_ASCII_CHAR): These macros Deleted.
2319 (UNIBYTE_STR_AS_MULTIBYTE_P, MULTIBYTE_STR_AS_UNIBYTE_P): New
2320 macros.
2321 (CHAR_STRING): For 8-bit characters, call char_to_string.
2322 (INC_POS) [not BYTE_COMBINING_DEBUG]: Faster version. Assume
2323 multibyte sequence is always valid.
2324 (BUF_INC_POS) [not BYTE_COMBINING_DEBUG]: Likewise.
2325 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte,
2326 str_as_unibyte): Extern them.
2327 (BCOPY_SHORT): Fix a bug.
2328 (CHAR_LEN): This macro deleted. Callers changed to use
2329 CHAR_BYTES.
2330 (FETCH_STRING_CHAR_ADVANCE): Check multibyteness of STRING.
2331 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): New macro.
2332 (FETCH_CHAR_ADVANCE): Check multibyteness of the current buffer.
2333
bd4bde7f 2334 * coding.c (ONE_MORE_BYTE, TWO_MORE_BYTES): Set coding->result to
c9671f81
KH
2335 CODING_FINISH_INSUFFICIENT_SRC if there's not enough source.
2336 (ONE_MORE_CHAR, EMIT_CHAR, EMIT_ONE_BYTE, EMIT_TWO_BYTE,
2337 EMIT_BYTES): New macros.
2338 (THREE_MORE_BYTES, DECODE_CHARACTER_ASCII,
2339 DECODE_CHARACTER_DIMENSION1, DECODE_CHARACTER_DIMENSION2): These
2340 macros deleted.
2341 (CHECK_CODE_RANGE_A0_FF): This macro deleted.
2342 (detect_coding_emacs_mule): Use UNIBYTE_STR_AS_MULTIBYTE_P to
2343 check the validity of multibyte sequence.
2344 (decode_coding_emacs_mule): New function.
2345 (encode_coding_emacs_mule): New macro.
2346 (detect_coding_iso2022): Use ONE_MORE_BYTE to fetch a byte from
2347 the source.
2348 (DECODE_ISO_CHARACTER): Just return a character code.
2349 (DECODE_COMPOSITION_START): Set coding->result instead of result.
2350 (decode_coding_iso2022, decode_coding_sjis_big5, decode_eol): Use
2351 EMIT_CHAR to produced decoded characters. Exit the loop only by
2352 macros ONE_MORE_BYTE or EMIT_CHAR. Don't handle the case of last
2353 block here.
2354 (ENCODE_ISO_CHARACTER): Don't translate character here. Produce
2355 only position codes for an invalid character.
2356 (encode_designation_at_bol): Return new destination pointer. 5th
2357 arg DSTP is changed to DST.
2358 (encode_coding_iso2022, decode_coding_sjis_big5): Get a character
2359 from the source by ONE_MORE_CHAR. Don't handle the case of last
2360 block here.
2361 (DECODE_SJIS_BIG5_CHARACTER, ENCODE_SJIS_BIG5_CHARACTER): These
2362 macros deleted.
2363 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8,
2364 detect_coding_utf_16, detect_coding_ccl): Use ONE_MORE_BYTE and
2365 TWO_MORE_BYTES to fetch a byte from the source.
2366 (encode_eol): Pay attention to coding->src_multibyte.
2367 (detect_coding, detect_eol): Preserve members src_multibyte and
2368 dst_multibyte.
2369 (DECODING_BUFFER_MAG): Return 2 even for coding_type_raw_text.
2370 (encoding_buffer_size): Set magnification to 3 for all coding
2371 systems that require encoding.
2372 (ccl_coding_driver): For decoding, be sure that the result is
2373 valid multibyte sequence.
2374 (decode_coding): Initialize coding->errors and coding->result.
2375 For emacs-mule, call decode_coding_emacs_mule. For no-conversion
2376 and raw-text, always call decode_eol. Handle the case of last
2377 block here. If not coding->dst_multibyte, convert the resulting
2378 sequence to unibyte.
2379 (encode_coding): Initialize coding->errors and coding->result.
2380 For emacs-mule, call encode_coding_emacs_mule. For no-conversion
2381 and raw-text, always call encode_eol. Handle the case of last
2382 block here.
2383 (shrink_decoding_region, shrink_encoding_region): Detect cases
2384 that we can't skip data more rigidly.
2385 (code_convert_region): Setup src_multibyte and dst_multibyte
2386 members of coding. For decoding, if the buffer is multibyte,
2387 convert the source sequence to unibyte in advance. For encoding,
2388 if the buffer is multibyte, convert the resulting sequence to
2389 multibyte afterward.
2390 (run_pre_post_conversion_on_str): New function.
2391 (code_convert_string): Deleted and divided into the following two.
2392 (decode_coding_string, encode_coding_string): New functions.
2393 (code_convert_string1, code_convert_string_norecord): Call one of
2394 above.
2395 (Fdecode_sjis_char, Fdecode_big5_char): Use MAKE_CHAR instead of
2396 MAKE_NON_ASCII_CHAR.
2397 (Fset_terminal_coding_system_internal,
2398 Fset_safe_terminal_coding_system_internal): Setup src_multibyte
2399 and dst_multibyte members.
2400 (init_coding_once): Initialize iso_code_class with new enum
2401 ISO_control_0 and ISO_control_1.
2402
2403 * coding.h (enum iso_code_class_type): Member ISO_control_code is
2404 devided into ISO_control_0 and ISO_control_1.
2405 (struct coding_system): New members src_multibyte, dst_multibyte,
2406 errors, and result. Delete member fake_multibyte.
2407 (CODING_REQUIRE_DECODING): Return 1 if coding->dst_multibyte is
2408 nonzero.
2409 (CODING_REQUIRE_ENCODING): Return 1 if coding->src_multibyte is
2410 nonzero.
2411
2412 * data.c (Faref): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
2413 (Faset): Likewise.
2414
2415 * editfns.c (Fformat): Be sure to convert 8-bit characters to
2416 multibyte form.
2417 (Ftranspose_region) [BYTE_COMBINING_DEBUG]: Abort if byte
2418 combining occurs.
2419 (Ftranspose_region): Delete codes for handling byte combining.
2420
2421 * fileio.c (Finsert_file_contents): Setup src_multibyte and
2422 dst_multibyte members of coding. On handling REPLACE on unibyte
2423 buffer, convert the result of decode_coding to unibyte. On
2424 inserting into a mutibyte buffer, always call code_convert_region.
bd4bde7f 2425 (e_write): Setup coding->src_multibyte according to the
c9671f81
KH
2426 multibyteness of the source (buffer or string).
2427
2428 * fns.c (concat): Handle 8-bit characters correctly.
2429 (Fstring_as_unibyte): Be sure to make all 8-bit characters in
2430 unibyte in the result.
2431 (Fstring_as_multibyte): Be sure to make all 8-bit characters in
2432 valid multibyte form in the result.
2433 (map_char_table): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
2434 (Fbase64_encode_region, Fbase64_encode_string): If base64_encode_1
2435 return -1, signal an error.
2436 (base64_encode_1): New arg MULTIBYTE. Get each character by
2437 CHAR_STRING_AND_LENGTH if MULTIBYTE is nonzero. If a multibyte
2438 character is found, return -1.
2439 (Fbase64_decode_region): Delete codes for handling byte-combining.
2440 Treat each decoded byte as a unibyte character.
2441 (Fbase64_decode_string): Return unibyte string.
2442 (Fcompare_strings, concat, string_byte_to_char): Use
2443 FETCH_STRING_CHAR_ADVANCE_NO_CHECK instead off
2444 FETCH_STRING_CHAR_ADVANCE.
2445 (Fstring_lessp): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
2446 (mapcar1): If SEQ is string, always use FETCH_STRING_CHAR_ADVANCE.
2447
2448 * fontset.c (fontset_ref): Use SPLIT_CHAR instead of
2449 SPLIT_NON_ASCII_CHAR.
2450 (fontset_ref_via_base, fontset_set): Likewise
2451
2452 * insdel.c (adjust_markers_for_record_delete): Deleted.
2453 (adjust_markers_for_insert): Argument changed. Caller changed.
2454 (adjust_markers_for_replace): Likewise.
2455 (ADJUST_CHAR_POS, combine_bytes, byte_combining_error,
2456 CHECK_BYTE_COMBINING_FOR_INSERT): Deleted.
2457 (copy_text): Delete unused local varialbe c_save. For converting
2458 to multibyte, be sure to make all 8-bit characters in valid
2459 multibyte form.
2460 (count_size_as_multibyte): Handle 8-bit characters correctly.
2461 (insert_1_both, insert_from_string_1, insert_from_buffer_1,
2462 adjust_after_replace, replace_range, del_range_2)
2463 [BYTE_COMBINING_DEBUG]: Abort if byte combining occurs.
2464 (insert_1_both, insert_from_string_1, insert_from_buffer_1,
2465 adjust_after_replace, replace_range, del_range_2) Delete codes for
2466 handling byte combining.
2467 (adjust_before_replace): Deleted.
427ec082 2468
c9671f81
KH
2469 * keymap.c (Fsingle_key_description): Use SPLIT_CHAR instead of
2470 SPLIT_NON_ASCII_CHAR.
2471 (describe_vector): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
2472 (Faccessible_keymaps): Use FETCH_STRING_CHAR_ADVANCE
2473 unconditionally.
2474 (Fkey_description): Likewise.
2475
2476 * lread.c (read1): On reading multibyte string, be sure to make
2477 all 8-bit chararacters in valid multibyte form.
2478 (readchar): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
2479
2480 * print.c (print_object): Use FETCH_STRING_CHAR_ADVANCE
2481 unconditionally.
2482
2483 * process.c (Fstart_process): GCPRO current_dir before calling
2484 Ffind_operation_coding_system. Encode arguments here.
2485 (create_process): Don't encode arguments here. Setup
2486 src_multibyte and dst_multibyte members of struct coding.
2487 (read_process_output): Setup src_multibyte and dst_multibyte
2488 members of struct coding. If the output is to multibyte buffer,
2489 always decode the output of the process. Adjust the
2490 representation of 8-bit characters to the multibyteness of the
2491 output.
2492 (send_process): Setup coding->src_multibyte according to the
2493 multibyteness of the source.
2494
2495 * search.c (wordify): Use FETCH_STRING_CHAR_ADVANCE
2496 unconditionally.
2497 (Freplace_match): Use FETCH_STRING_CHAR_ADVANCE and
2498 FETCH_STRING_CHAR_ADVANCE_NO_CHECK appropriately.
2499
2500 * term.c (produce_special_glyphs): Use CHAR_BYTES instead of
2501 CHAR_LEN.
2502
2503 * w16select.c (Fw16_set_clipboard_data): Setup members
2504 src_multibyte and dst_multibyte of coding. Adjusted for the
2505 change for find_charset_in_str.
2506 (Fw16_get_clipboard_data): Likewise.
2507
2508 * w32fns.c (w32_to_x_font): Setup members src_multibyte and
2509 dst_multibyte of coding.
2510 (x_to_w32_font): Likewise.
2511
2512 * w32select.c (Fw32_set_clipboard_data): Setup members
2513 src_multibyte and dst_multibyte of coding. Adjusted for the
2514 change for find_charset_in_str.
2515 (Fw32_get_clipboard_data): Likewise.
2516
2517 * xdisp.c (get_next_display_element): Handle 8-bit characters
2518 correctly.
2519 (next_element_from_display_vector): Use CHAR_BYTES instead of
2520 CHAR_LEN.
2521 (disp_char_vector): Use SPLIT_CHAR instead of
2522 SPLIT_NON_ASCII_CHAR.
2523
2524 * xselect.c (selection_data_to_lisp_data): Setup members
2525 src_multibyte and dst_multibyte of coding. Adjusted for the
2526 change for find_charset_in_str.
2527 (lisp_data_to_selection_data): Likewise.
2528
5f64c9e0
GM
25292000-05-19 Gerd Moellmann <gerd@gnu.org>
2530
2b63d473
GM
2531 * buffer.c (Fbury_buffer): Avoid trouble from burying a killed
2532 buffer.
2533
5f64c9e0
GM
2534 * dispextern.h (Vimage_types): Add extern declaration.
2535
2536 * xdisp.c (Vimage_types): Moved here from xfns.c.
2537 (syms_of_xdisp): Move `image-types' variable here from xfns.c.
2538
2539 * xfns.c (Vimages_types): Moved to xdisp.c.
2540 (syms_of_xfns): Move `image-types' to xdisp.c.
2541
2542 * w32fns.c (Vimage_types): Removed.
2543 (syms_of_w32fns): Remove `image-types'.
2544
813086ea
KH
25452000-05-18 Kenichi Handa <handa@etl.go.jp>
2546
2547 * fns.c (map_char_table): Pay attention to character number of
2548 charset. Check the validity of charset at the first level. For
2549 leaf nodes that has nil value, call C_FUNCTION or FUNCTION with
2550 the default value.
2551
2552 * fontset.c: Include "buffer.h".
2553 (fs_load_font): If the face has fontset, record the face ID in
2554 that fontset.
2555 (Finternal_char_font): New function.
2556 (accumulate_font_info): New function.
2557 (Ffontset_info): Rewritten for the new fontset implementation.
2558 (syms_of_fontset): Register Vdefault_fontset in the first element
2559 of Vfontset_table. Include Vdefault_fontset in
2560 Vfontset_alias_alist. Declare `internal-char-font' as a Lisp
2561 function.
2562
bdaebbf0
DL
25632000-05-16 Dave Love <fx@gnu.org>
2564
2565 * m/iris5d.h: Deleted -- unused.
2566
cb613bb8
GM
25672000-05-16 Gerd Moellmann <gerd@gnu.org>
2568
b15f3b77
GM
2569 * xdisp.c, w32.c, print.c, msdos.c, emacs.c: Use the term
2570 `invalid' instead of `illegal'.
2571
2572 * indent.c (Fmove_to_column): When ending within a tab, insert
2573 spaces first so that markers at the end of the tab get adjusted.
2574
835c1b36
GM
2575 * frame.c (frames_bury_buffer): Don't add a buffer to the frame's
2576 buffer list that wasn't selected in that frame.
2577
cb613bb8
GM
2578 * filelock.c (get_boot_time): To obtain an 8 char file name, which
2579 is needed on mescaline, use a 2 char prefix, and call
2580 make_temp_name with second arg non-zero.
2581
2582 * fileio.c (make_temp_name): New function, extracted from
2583 Fmake_temp_name.
2584 (Fmake_temp_name): Use it.
2585
f685bea9
EZ
25862000-05-15 Eli Zaretskii <eliz@is.elta.co.il>
2587
2588 * window.c (coordinates_in_window): Subtract 1 when computing
2589 right_x.
2590
a1b8d58b
GM
25912000-05-15 Gerd Moellmann <gerd@gnu.org>
2592
2593 * Makefile.in (lisp): Add env.elc.
2594
2595 * callproc.c (Fgetenv_internal): Renamed from Fgetenv.
2596
a265079f
GM
25972000-05-12 Gerd Moellmann <gerd@gnu.org>
2598
2599 * search.c (Freplace_match): Handle case of `\N' in the
2600 replacement when there's no group N.
2601
da4496b6
GM
26022000-05-11 Gerd Moellmann <gerd@gnu.org>
2603
0ace421a
GM
2604 * xdisp.c (add_to_log): Don't pass the terminating NUL byte
2605 of the message to message_dolog.
2606
1172eb8d
GM
2607 * keyboard.c (read_char): Don't clear current message for help
2608 events; let the code handling help events handle this. Change
2609 code detecting help events that should be ignored.
2610
da4496b6
GM
2611 * xdisp.c (handle_single_display_prop): Don't try to set PT if
2612 we're interating over a string.
2613
0623e40f
DL
26142000-05-09 Dave Love <fx@gnu.org>
2615
2616 * fileio.c (Fwrite_region): If APPEND arg is an integer, seek to
2617 that offset before writing. Move gcpro region past call of
2618 Ffile_regular_p.
2619
bae2503b
DL
26202000-05-04 Dave Love <fx@gnu.org>
2621
2622 * buffer.c (syms_of_buffer) [auto-fill-function]: Doc fix.
2623
ec82fb2f
GM
26242000-05-04 Gerd Moellmann <gerd@gnu.org>
2625
2626 * insdel.c (insert_from_buffer_1): Adjust FROM position by number
2627 of inserted characters when BUF equals the current buffer, and PT
2628 is in front of or equal to FROM.
2629
cbf18892
GM
26302000-05-03 Gerd Moellmann <gerd@gnu.org>
2631
4ff40dd0
GM
2632 * xdisp.c (handle_single_display_prop): If display property value
2633 is invalid, or something not supported on the frame, restore
2634 iterator's position to what it was initially. Make sure to return
2635 0 for invalid and unsupported property values.
2636
cbf18892
GM
2637 * xterm.c (x_produce_glyphs) <composite chars>: Handle case
2638 that x_per_char_metric returns null.
2639
1b0672c3
GM
26402000-05-02 Gerd Moellmann <gerd@gnu.org>
2641
576da55d
GM
2642 * xterm.h (struct face): Add forward declaration.
2643 (struct image): Ditto.
2644 (image_ascent): Add prototype.
2645
2646 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
2647 (x_draw_image_relief, x_draw_image_foreground_1): Call function
2648 image_ascent instead of using IMAGE_ASCENT.
2649
2650 * dispextern.h (DEFAULT_IMAGE_HEIGHT): New macro.
2651 (IMAGE_ASCENT): Removed.
2652
2653 * xfns.c (Qcenter): New variable.
2654 (enum image_value_type): Add IMAGE_ASCENT_VALUE.
2655 (parse_image_spec): Handle IMAGE_ASCENT_VALUE.
2656 (image_ascent): New function.
2657 (lookup_image): Recognize `:ascent center'.
2658 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
2659 (tiff_format, gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
2660 (xbm_load): Don't set image's ascent here.
2661 (xbm_image_p, xpm_image_p, pbm_image_p, png_image_p)
2662 (jpeg_image_p, tiff_image_p, gif_image_p, gs_image_p): Don't
2663 check ascent values here.
2664 (Fimagep, Flookup_image [GLYPH_DEBUG]: Removed.
2665 (syms_of_xfns) [GLYPH_DEBUG]: Don't defsubr removed functions.
2666 (syms_of_xfns): Initialize Qcenter.
2667
1b0672c3
GM
2668 * eval.c (Fsignal): If lisp_eval_depth or spepdl_size are near
2669 to the limits, increase the limits.
2670
0d7811ed
KH
26712000-05-01 Kenichi Handa <handa@etl.go.jp>
2672
2673 * fontset.c (fs_load_font): By default, use 0x00..0x7f for ASCII.
2674 Check Vfont_encoding_alist against the full name of the opened
2675 font.
2676
a943a5ca
GM
26772000-04-28 Gerd Moellmann <gerd@gnu.org>
2678
2679 * xdisp.c (make_cursor_line_fully_visible): Handle case of rows
2680 taller than the window.
2681
5dba1e29
KH
26822000-04-28 Kenichi Handa <handa@etl.go.jp>
2683
2684 * xfaces.c (realize_x_face): Fix the argument of the second
2685 xassert. BASE_FACE may not be a face for ASCII.
2686
353964e3
GM
26872000-04-27 Gerd Moellmann <gerd@gnu.org>
2688
c76e04a8
GM
2689 * print.c (print_object): Treat print-length < 0 as nil.
2690
2691 * Makefile.in (termcapobj): Don't use TERMCAP_OBJ.
2692
2693 * s/freebsd.h (TERMCAP_OBJ): Removed.
2694 (LIBS_TERMCAP): Don't define for __FreeBSD_version >= 400000.
2695
2696 * lread.c (read1): Don't treat period followed by certain
2697 characters as symbol start.
2698
2699 * xfns.c (slurp_file): New function.
2700 (xbm_image_p): Handle case of in-memory XBM files.
2701 (xbm_scan): Rewritten to work on memory buffers instead of files.
2702 (xbm_read_bitmap_data): Renamed from xbm_read_bitmap_file_data.
2703 Work on memory buffers instead of files. If DATA is null test
2704 if buffer looks like an in-memory XBM file.
2705 (xbm_load_image): Renamed from xbm_load_image_file. Work on
2706 memory buffers instead of files.
2707 (xbm_file_p): New function.
2708 (xbm_load): Accept :data DATA where DATA is an in-memory XBM file.
2709
353964e3
GM
2710 * lread.c (end_of_file_error): New function.
2711 (read1): Call it instead of signaling `end-of-file' directly.
2712
427ec082 2713 * print.c (print_error_message): Print data of `end-of-file'
353964e3
GM
2714 with Fprinc instead of Fprin1.
2715
24d744ac
KR
27162000-04-26 Ken Raeburn <raeburn@gnu.org>
2717
2718 * window.c (freeze_window_start): Check that minibuffer scroll
2719 window isn't nil before extracting the window structure pointer
2720 from it.
2721
2722 * undo.c (record_delete): If we hit the end of the undo list, stop
2723 picking elements apart.
2724
7464346d
GM
27252000-04-26 Gerd Moellmann <gerd@gnu.org>
2726
2727 * xdisp.c (display_line): If lines are continued, restore
2728 iterator's ascent/descent information to the values before the
2729 first glyph not fitting on the line.
2730
612839b6
GM
27312000-04-25 Gerd Moellmann <gerd@gnu.org>
2732
2733 * xdisp.c (try_window_id) <all changes above window start>: Adjust
2734 positions in glyph matrix. Don't compute new window end
2735 positions.
2736
2737 * dispnew.c (increment_matrix_positions): Renamed from
2738 increment_glyph_matrix_buffer_positions.
2739 (increment_row_positions): Renamed from
2740 increment_glyph_row_buffer_positions.
2741
2742 * dispextern.h: Change names of renamed functions from dispnew.c
2743 in prototypes.
2744
cc181e95
GM
27452000-04-24 Gerd Moellmann <gerd@gnu.org>
2746
abfcc168
GM
2747 * fileio.c (Fdo_auto_save): Create directories for auto-save
2748 list file if necessary.
2749
cc181e95
GM
2750 * xdisp.c (init_iterator): Set iterator's extra_line_spacing
2751 from buffer or frame.
2752 (automatic_hscrolling_p): New variable.
2753 (hscroll_windows): Scroll windows horizontally only if automatic
2754 hscrolling is allowed.
2755 (syms_of_xdisp): New variable `automatic-hscrolling'.
2756
2757 * frame.h (struct frame): Add member extra_line_spacing.
2758
2759 * xfns.c (x_set_line_spacing): New function.
2760 (Fx_create_frame): Set line spacing from resources.
2761 (Qline_spacing): New variable.
2762 (syms_of_xfns): Initialize Qline_spacing.
427ec082 2763
cc181e95
GM
2764 * emacs.c (USAGE2): Add `--line-spacing' and `-lsp'.
2765
2766 * buffer.c (init_buffer_once): Handle extra_line_spacing.
2767 (syms_of_buffer): Add `default-line-spacing' and `line-spacing'.
abfcc168 2768 (reset_buffer): Don't initialize extra2 and extra3. Initialize
cc181e95
GM
2769 extra_line_spacing from default value.
2770 (init_buffer_once): Initialize default value of extra_line_spacing.
2771
2772 * buffer.h (struct buffer): Add extra_line_spacing, remove extra2
2773 and extra3.
2774
2775 * xterm.c (x_produce_glyphs): Remove reference to struct it's
2776 prompt_width. Add extra line spacing.
2777
2778 * term.c (produce_glyphs): Remove reference to struct it's
2779 prompt_width.
2780
2781 * dispextern.h (struct it): Remove member prompt_width, add
2782 extra_line_spacing.
2783
58827478
GM
27842000-04-22 Gerd Moellmann <gerd@gnu.org>
2785
2786 * dispnew.c (update_frame_line): When writing a whole line, make
2787 sure cursor is in the right row afterwards, otherwise a use of
2788 capability `ch' in cmgoto might leave the cursor in the row below.
2789
25a87f42
GM
27902000-04-21 Gerd Moellmann <gerd@gnu.org>
2791
2792 * lisp.h (struct Lisp_Buffer_Cons): Remove.
2793
2794 * keyboard.c (timer_check): Fix typo in comment.
2795
54edf5c2
KH
27962000-04-21 Kenichi Handa <handa@etl.go.jp>
2797
2798 * fontset.c (Fset_fontset_font): Fix docstring. Local variable
2799 name change: ch -> character.
2800
3a64eef5
GM
28012000-04-20 Gerd Moellmann <gerd@gnu.org>
2802
2803 * keyboard.c (echo_message_buffer): New variable.
2804 (echo_now): Set echo_message_buffer to the echo area buffer used
2805 to display the echo.
2806 (cancel_echoing): Reset echo_message_buffer to nil.
2807 (read_char): Code rewritten that handles canceling an echo or
2808 echoing a dash, respectively.
2809
2810 * fileio.c (Ffile_writable_p) [WINDOWSNT]: Return nil if parent
2811 directory doesn't exist.
2812
6142fdcb
DL
28132000-04-19 Dave Love <fx@gnu.org>
2814
2815 * fns.c (syms_of_fns): Defsubr mapc.
a9cacab7
DL
2816 (concat): Don't allow numeric args.
2817 (Fconcat): Doc change.
6142fdcb 2818
ac6b5352
SM
28192000-04-19 Stefan Monnier <monnier@cs.yale.edu>
2820
2821 * regex.c (re_match_2_internal): Don't shorten the strings anymore,
2822 instead define end_match(1|2) more carefully.
2823 Use GET_CHAR_BEFORE_2 for `begline'.
2824
cb9215e4
GM
28252000-04-19 Gerd Moellmann <gerd@gnu.org>
2826
5e3dac3f
GM
2827 * frame.h (SELECTED_FRAME): Change definition to compile cleanly
2828 on 64-bit systems where NULL is defined as `0'.
2829
2830 * xdisp.c (with_echo_area_buffer): Add more `int' parameters for
2831 the `variable argument list' to make it work on Alpha.
2832
cb9215e4
GM
2833 * m/alpha.h (_LP64) [!_LP64]: Define.
2834 (ORDINARY_LINK): Define for NetBSD.
2835
2836 * m/macppc.h (ORDINARY_LINK): Define for NetBSD.
427ec082 2837
f532dca0
DL
28382000-04-19 Dave Love <fx@gnu.org>
2839
c750667e
DL
2840 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Revert 2000-04-14
2841 change.
2842
2843 * Makefile.in (LIBS): Don't use.
2844 (GETLOADAVG_OBJ): Define again.
2845 (otherobj): Add GETLOADAVG_OBJ.
2846
f532dca0
DL
2847 * buffer.c (Fmake_indirect_buffer): Escape newline in doc.
2848
1c7e22fd
GM
28492000-04-18 Gerd Moellmann <gerd@gnu.org>
2850
f6d3257b
GM
2851 * lread.c (read_filtered_event): Cancel and start busy cursor.
2852
427ec082 2853 * xterm.c (x_produce_glyphs) <ASCII chars>: Take into account
1c7e22fd
GM
2854 that the per-character metrics may be null.
2855
e10f64e7
GM
28562000-04-17 Gerd Moellmann <gerd@gnu.org>
2857
0daee095
GM
2858 * buffer.c (clone_per_buffer_values): New function.
2859 (Fmake_indirect_buffer): Add optional argument CLONE. Call
2860 clone_per_buffer_values if CLONE is not nil.
2861
e10f64e7
GM
2862 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
2863
38687d43
DL
28642000-04-16 Dave Love <fx@gnu.org>
2865
2866 * Makefile.in: Remove obsolete localcpp stuff.
2867 (GETLOADAVG_OBJ): Don't define.
2868 (obj): Move LIBOBJS...
2869 (otherobj): ... to here.
2870 (MSDOS_OBJ): Convert to make variable -- preprocessing zapped
2871 whitespace-only lines after the continuation (Irix).
2872
c21c7262
GM
28732000-04-14 Gerd Moellmann <gerd@gnu.org>
2874
2875 * xfns.c (xpm_load) [DEBUG_X_COLORS]: Register colors.
2876
2877 * s/freebsd.h (LD_SWITCH_SYSTEM): Add `-L /usr/local/lib'.
2878
314767c0
DL
28792000-04-14 Dave Love <fx@gnu.org>
2880
2881 * s/aix3-1.h, s/bsd4-2.h, s/bsd4-3.h, s/cxux.h, s/dgux.h, s/gnu.h:
2882 * s/hpux.h, s/iris3-5.h, s/iris3-6.h, s/irix3-3.h, s/rtu.h:
2883 * s/unipl5-0.h, s/unipl5-2.h, s/usg5-0.h, s/usg5-2-2.h, s/usg5-2.h:
2884 * s/usg5-3.h, s/xenix.h, s/umax.h: Don't define autoconfiscated
2885 NLIST_STRUCT.
2886
2887 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Don't define
2888 autoconfiscated HAVE_GETLOADAVG.
2889
2890 * s/nextstep.h, s/sco4.h, s/sco5.h: Don't define autoconfiscated
2891 BROKEN_MKTIME.
2892
a2522dca
GM
28932000-04-14 Gerd Moellmann <gerd@gnu.org>
2894
2895 * filelock.c (MAKE_LOCK_NAME): Allocate 2 more bytes.
2896 (fill_in_lock_file_name): Avoid existing files that aren't
2897 links.
2898
33744b5d
DL
28992000-04-14 Dave Love <fx@gnu.org>
2900
c21c7262 2901 * Makefile.in (LIBS, LIBOBJS): New variable.
33744b5d
DL
2902 (INTERVAL_SRC): Convert to make variable.
2903 (INTERVAL_OBJ, MKTIME_OBJ, FLOAT_SUPPORT, FACE_SUPPORT)
2904 (HAVE_X_WINDOWS, OBJECTS_SYSTEM): Remove.
2905 (obj): Substitute INTERVAL_OBJ, add MKTIME_OBJ, GETLOADAVG_OBJ and
2906 add LIBOBJS.
2907 (SOME_MACHINE_OBJECTS): Remove interval stuff.
2908 (lisp): Substitute FACE_SUPPORT, FLOAT_SUP.
2909 (shortlisp): Add facemenu, float-sup, frame.
2910 (SOME_MACHINE_LISP): Remove them from here.
2911 (LIBES): Change unused LDLIBS to autoconf LIBS.
2912
2913 * config.in: Add BROKEN_MKTIME, NLIST_STRUCT, NLIST_NAME_UNION.
2914
9d3d5916
KH
29152000-04-14 Kenichi Handa <handa@etl.go.jp>
2916
2917 * composite.c (update_compositions): If FROM and TO are not in a
2918 valid range, do nothing.
2919
198e3c7a
GM
29202000-04-13 Gerd Moellmann <gerd@gnu.org>
2921
2922 * tparam.c (tparam1): Abort when encountering an unknown
2923 `%'-specifier.
2924
2925 * s/freebsd.h (TERMCAP_OBJ) [__FreeBSD__ >= 4]: Define as
2926 terminfo.o.
2927
2928 * Makefile.in (termcapobj) [LIBS_TERMCAP && TERMCAP_OBJ]: Define
2929 as TERMCAP_OBJ.
2930
055a28c9
EZ
29312000-04-13 Eli Zaretskii <eliz@is.elta.co.il>
2932
2933 * fileio.c (a_write): Remove redundant semi-colons.
2934 (e_write): Return -1 if failed to write all the data.
2935 This fixes the changes made at 1999-12-15.
2936
f5c75033
DL
29372000-04-12 Dave Love <fx@gnu.org>
2938
2939 * fns.c (mapcar1): Test for null vals to support mapc.
2940 (Fmapc): New function.
2941
0c3cfc51
EZ
29422000-04-12 Eli Zaretskii <eliz@is.elta.co.il>
2943
2944 * msdos.c (NUM_MOUSE_BUTTONS): Define.
2945 (IT_frame_up_to_date): Support the buffer local value of
2946 cursor-type, if defined.
2947
33465a31
DL
29482000-04-10 Dave Love <fx@gnu.org>
2949
2950 * editfns.c (preceding-char, following-char): Doc fix.
2951
6ed56568
KR
29522000-04-10 Ken Raeburn <raeburn@gnu.org>
2953
2954 * Makefile.in (temacs): Revert 2000-03-12 change.
2955
7cf80d4e
JR
29562000-04-10 Jason Rumney <jasonr@gnu.org>
2957
2958 * xfaces.c (realize_face): Change FRAME_X_P to FRAME_WINDOW_P.
2959
34f3f342
GM
29602000-04-10 Gerd Moellmann <gerd@gnu.org>
2961
1a1b1895
GM
2962 * xdisp.c (setup_echo_area_for_printing): Choose an echo
2963 area buffer, if it's not set up yet.
2964
34f3f342
GM
2965 * indent.c (compute_motion): Set immediate_quit.
2966
be0dbdab
GM
29672000-04-09 Gerd Moellmann <gerd@gnu.org>
2968
c45be9ac
GM
2969 * xfaces.c (tty_suppress_bold_inverse_default_colors_p): New
2970 variable.
2971 (realize_tty_face): Suppress boldness if colors are the inverse of
2972 the default colors, and tty_suppress_bold_inverse_default_colors_p
2973 is set.
2974 (Ftty_suppress_bold_inverse_default_colors): New function.
2975 (syms_of_xfaces): Defsubr it.
2976
be0dbdab
GM
2977 * buffer.c (Frestore_buffer_modified_p): New function.
2978 (syms_of_buffer): Defsubr it.
2979
e8413c3b
KR
29802000-04-08 Ken Raeburn <raeburn@gnu.org>
2981
87f67317
KR
2982 * charset.c (Fmake_char_internal): CHAR_COMPONENTS_VALID_P takes a
2983 charset id (int) argument, not a charset (Lisp_Object).
2984
e8413c3b
KR
2985 * coding.h (code_convert_string): Declare.
2986 * coding.c (code_convert_string_norecord): Pass an int, not a lisp
2987 object, as the fourth argument to code_convert_string.
2988
2989 * fontset.c (make_fontset_for_ascii_face): Use XINT on return
2990 value.
2991 (Fset_fontset_font): Use EQ to compare lisp objects.
2992
7c752c80
KR
29932000-04-05 Ken Raeburn <raeburn@gnu.org>
2994
c0333abc
KR
2995 * intervals.h (SET_INTERVAL_PARENT): Use INT_LISPLIKE to test for
2996 a pointer that looks like a lisp object.
2997 (SET_INTERVAL_OBJECT): Don't explicitly compare the object with
2998 zero, instead see whether it's an integer object, since they can't
2999 have intervals.
3000 (GET_INTERVAL_OBJECT): Simply assign to the destination.
3001
7c752c80
KR
3002 * dispnew.c (allocate_matrices_for_frame_redisplay,
3003 direct_output_forward_char): Use X(U)INT and make_number as needed
3004 to convert between (unsigned) int values and lisp integers.
3005 * keyboard.c (read_key_sequence): Likewise.
3006 * lread.c (substitute_object_recurse): Likewise.
3007 * fns.c (concat, hash_lookup, hash_remove): Likewise.
3008 * minibuf.c (do_completion, Fminibuffer_complete_word,
3009 Fminibuffer_completion_help): Likewise.
3010 * term.c (produce_special_glyphs): Likewise.
3011
3012 * fileio.c (Fwrite_region): Use EQ when comparing lisp objects.
3013 * print.c (print_preprocess, print_object): Likewise.
3014
3015 * search.c (compile_pattern): Use NILP when checking for nil.
3016
74e49b38
KR
3017 * lisp.h (make_number) [!NO_UNION_TYPE && __GNUC__ >= 2 &&
3018 __OPTIMIZE__]: Provide a GNU C macro version that handles
3019 lisp-object unions.
3020 (XSET) [!NO_UNION_TYPE]: Set the value field first, then the type
3021 field, to better cope with ENABLE_CHECKING and calls that modify a
3022 Lisp_Object using its old value.
3023
685e5ed2
GM
30242000-04-04 Gerd Moellmann <gerd@gnu.org>
3025
c407c570
GM
3026 * window.c (compare_window_configurations): Signal an error
3027 if parameters C1 or C2 aren't window configurations.
3028
685e5ed2
GM
3029 * bytecode.c (Fbyte_code): Add a bunch of BEFORE_POTENTIAL_GC/
3030 AFTER_POTENTIAL_GC calls around calls to functions that can
3031 signal an error and thus invoke the debugger.
3032
587a49ab
GM
30332000-04-03 Gerd Moellmann <gerd@gnu.org>
3034
62f20204
GM
3035 * fns.c (Fbase64_decode_region, Fbase64_decode_string): Signal
3036 an error if decoding fails.
3037
587a49ab
GM
3038 * keyboard.c (lispy_mouse_names): Variable removed.
3039 (Vlispy_mouse_stem): New variable.
3040 (syms_of_keyboard): Initialize Vlispy_mouse_stem.
3041 (make_lispy_event) <mouse_click, scroll_bar_click>: Don't abort
3042 for any mouse button number. Increase size of mouse_syms and
3043 button_down_location as needed. Call modify_event_symbol with
3044 different arguments.
3045 (make_lispy_event) <scroll_bar_click> [USE_TOOLKIT_SCROLL_BARS]:
3046 Call modify_event_symbol with different arguments.
3047 (make_lispy_event) <w32_scroll_bar_click> [WINDOWSNT]: Don't abort
3048 for any button number. Call modify_event_symbol with different
3049 arguments.
3050 (modify_event_symbol): Rename NAME_ALIST to NAME_ALIST_OR_STEM.
3051 Accept a string for NAME_ALIST_OR_STEM.
3052
3053 * lisp.h (larger_vector): Add prototype.
3054
3055 * fns.c (larger_vector): Make externally visible.
3056
3057 * termhooks.h (NUM_MOUSE_BUTTONS): Removed.
3058
2d1675e4
SM
30592000-04-02 Stefan Monnier <monnier@cs.yale.edu>
3060
3061 * regex.c (PTR_TO_OFFSET) [!emacs]: Remove.
3062 (RE_MULTIBYTE_P, RE_STRING_CHAR_AND_LENGTH): New macros.
3063 (GET_CHAR_BEFORE_2): Moved from charset.h plus fixed minor bug when
3064 we are between str1 and str2.
3065 (MAX_MULTIBYTE_LENGTH, CHAR_STRING) [!emacs]: Provide trivial default.
3066 (PATFETCH): Use `TRANSLATE'.
3067 (PATFETCH_RAW): Fetch multibyte char if applicable.
3068 (PATUNFETCH): Remove.
3069 (regex_compile): Rely on PATFETCH to do most of the multibyte magic.
3070 When writing a char, write it directly into the pattern buffer rather
3071 than going needlessly through a temp char-array.
3072 (re_match_2_internal): Similarly, rely on RE_STRING_CHAR to do the
3073 multibyte magic and remove the useless `#ifdef emacs'.
3074 (bcmp_translate): Don't compare as multibyte chars when in a unibyte
3075 buffer.
3076
3077 * regex.h (struct re_pattern_buffer): Make field `multibyte'
3078 conditional on `emacs'.
3079
3080 * charset.h (GET_CHAR_BEFORE_2): Moved to regex.c.
3081
cc2d8c6b
KR
30822000-04-01 Ken Raeburn <raeburn@gnu.org>
3083
3084 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P): Expand
3085 non-union-type versions of XMARK and friends here, because XMARK
3086 and friends won't work on an integer field if NO_UNION_TYPE is not
3087 defined.
3088 (make_number): Define as a function if it's not defined as a
3089 macro.
3090
09654086
KR
3091 * composite.c (run_composite_function): Use NILP when checking for
3092 nil.
3093 (syms_of_composite): Delete local var NARGS, pass an int as first
3094 argument to Fmake_hash_table.
3095
2387b382
KR
3096 * editfns.c (text_property_stickiness): Use NILP to test
3097 Lisp_Object boolean value.
3098 (Fmessage_or_box): Don't use NILP to test int variable.
c01fbf95
KR
3099 (Fformat): Use a temporary variable to avoid ENABLE_CHECKING
3100 problems reading from and changing the same lisp value in an
3101 XSETSTRING call.
3102
27660e89
GM
31032000-04-01 Gerd Moellmann <gerd@gnu.org>
3104
3105 * term.c (TN_no_color_video): New variable.
3106 (term_init): Intitialize TN_no_color_video.
3107 (enum no_color_bit): New enumeration.
3108 (MAY_USE_WITH_COLORS_P): New macro.
3109 (turn_on_face): Use it to determine if attributes may be used
3110 combined with colors.
3111
3578db3c
KR
31122000-04-01 Ken Raeburn <raeburn@gnu.org>
3113
3114 * window.c (CURBEG, CURSIZE): Don't overload lisp object lvalues
3115 with int lvalues via casts; instead, just yield lisp object
3116 lvalues.
3117 (enlarge_window): Variable sizep now points to Lisp_Object. Use
3118 proper accessor macros.
3119 (shrink_window_lowest_first): w->top is Lisp_Object; use XINT.
3120 (grow_mini_window): Fix typo getting int value of root->height.
3121
6fc556fd
KR
3122 * xdisp.c (compute_string_pos): Fix order of arguments to
3123 string_pos_nchars_ahead.
3124 (handle_fontified_prop, add_to_log): Pass int, not Lisp_Object, as
3125 count arg to variable-arg routines like Frun_hook_with_args and
3126 Fformat.
587a49ab
GM
3127 (back_to_previous_visible_line_start)
3128 (build_desired_tool_bar_string): Pass Lisp_Object, not int, to
6fc556fd
KR
3129 fixed-arg routines like Fget_char_property and Fmake_string.
3130 (reconsider_clip_changes): Use XINT when comparing integer lisp
3131 objects, or passing them as int arguments.
587a49ab
GM
3132 (mark_window_display_accurate, insert_left_trunc_glyphs)
3133 (append_space, extend_face_to_end_of_line): Use make_number when
6fc556fd
KR
3134 storing or passing integer values as lisp objects.
3135 (set_cursor_from_row, highlight_trailing_whitespace): Use
3136 INTEGERP, not implicit test against zero, for glyph object.
3137 (try_window_id): Don't use make_number when we want an int value.
3138
3139 * xfaces.c (xlfd_symbolic_value): Make last argument a
3140 Lisp_Object, to be consistent with callers.
3141 (Fbitmap_spec_p): Use XINT to get numeric value of height.
3142 (lface_hash): Apply XFASTINT to lisp values before folding in.
3143
3144 * xfns.c (Fx_show_tip): Use make_number to get lisp objects to
3145 fill in window width and height. Pass an int, not a lisp object,
3146 as first arg to Finsert.
3147
6e7b2457
GM
31482000-04-01 Gerd Moellmann <gerd@gnu.org>
3149
610d841e
GM
3150 * xfaces.c (realize_basic_faces): Block input while realizing
3151 the faces.
3152
6e7b2457
GM
3153 * keyboard.c (lispy_mouse_names): Add additional mouse names.
3154
3155 * termhooks.h (NUM_MOUSE_BUTTONS): Increase to 15.
3156
aa110c0c
GM
31572000-03-31 Gerd Moellmann <gerd@gnu.org>
3158
3159 * xterm.c (x_produce_glyphs): When displaying unibyte text
610d841e 3160 or ASCII, handle case that per-char metric is null.
aa110c0c 3161
8801a864
KR
31622000-03-30 Ken Raeburn <raeburn@gnu.org>
3163
c6129d7e
KR
3164 * lisp.h (NO_UNION_TYPE) [ENABLE_CHECKING]: Undef.
3165
8801a864
KR
3166 * lisp.h (XCONS, XSTRING, XSYMBOL, XFLOAT, XPROCESS, XWINDOW,
3167 XSUBR, XBUFFER): Verify correct object type before returning
3168 pointer, using eassert.
3169 * frame.h (XFRAME): Likewise.
3170
3171 * buffer.c (Frename_buffer, Fset_buffer_multibyte,
3172 swap_out_buffer_local_variables, Fmove_overlay): Don't apply
3173 XSYMBOL, XBUFFER, etc, to values that may be nil or of the wrong
3174 type.
3175 * data.c (set_internal): Likewise.
3176 * dispextern.h (WINDOW_WANTS_MODELINE_P,
3177 WINDOW_WANTS_HEADER_LINE_P): Likewise.
3178 * fileio.c (auto_save_1): Likewise.
3179 * insdel.c (check_markers): Likewise.
3180 * marker.c (buf_charpos_to_bytepos, unchain_marker): Likewise.
3181 * undo.c (record_insert): Likewise.
3182 * vmsproc.c (child_sig): Likewise.
3183 * window.c (unshow_buffer, window_loop): Likewise.
3184 * xterm.c (x_erase_phys_cursor): Likewise.
3185
8e7af858
GM
31862000-03-30 Gerd Moellmann <gerd@gnu.org>
3187
3188 * xfns.c (free_image_cache): Free the cache structure itself
3189 last, after all its members have been freed.
3190
3191 * lisp.h (xstrdup): Add prototype.
3192
3193 * alloc.c (xstrdup): Moved here from xfaces.c.
3194 (allocating_for_lisp): Variable removed.
3195 (lisp_malloc): Block input around the calls to malloc and
3196 mem_insert.
3197
3198 * xfaces.c (realize_tty_face): Use find_symbol_value instead
3199 of Fsymbol_value.
3200 (xstrdup): Moved to alloc.c.
3201
e0b8c689
KR
32022000-03-29 Ken Raeburn <raeburn@gnu.org>
3203
b96f9fb7
KR
3204 * scroll.c (CHECK_BOUNDS): Renamed from CHECK.
3205
3206 * emacs.c (main): Fix sense of no-loadup test.
3207
e0b8c689
KR
3208 * config.in (ENABLE_CHECKING): Undef.
3209
3210 * lisp.h (struct interval): Replace "parent" field with a union of
3211 interval pointer and Lisp_Object; add new bitfield to use as
3212 discriminant. Change other flag fields to bitfields.
3213 (CHECK): New macro for consistency checking. If ENABLE_CHECKING
3214 is defined and the supplied test fails, print a message and
3215 abort.
3216 (eassert): New macro. Use CHECK to provide an assert-like
3217 facility.
3218
3219 * intervals.h (NULL_INTERVAL_P): Now applies only to real interval
3220 pointers; abort if the value looks like a lisp object.
3221 (NULL_INTERVAL_P, NULL_PARENT, HAS_PARENT, HAS_OBJECT, SET_PARENT,
3222 SET_OBJECT, INTERVAL_PARENT, GET_INTERVAL_OBJECT, COPY_PARENT):
3223 Modify for new interval parent definition.
3224
3225 * alloc.c (mark_interval_tree, MARK_INTERVAL_TREE,
3226 UNMARK_BALANCE_INTERVALS): Update references that need an
3227 addressable lisp object in the interval structure.
3228 (die): New function.
3229 (suppress_checking): New variable.
3230
3231 * intervals.c (interval_start_pos): Just return 0 if there's no
3232 parent object.
3233
f83c5440
GM
32342000-03-29 Gerd Moellmann <gerd@gnu.org>
3235
3236 * lread.c (read1): Accept `.' (period) as symbol start like in CL
3237 and earlier Emacs versions.
3238
3239 * keyboard.c (Ftop_level): Cancel busy-cursor.
3240
3241 * eval.c (call_debugger): Cancel busy-cursor.
3242
fdce64ff
KH
32432000-03-29 Kenichi Handa <handa@etl.go.jp>
3244
3245 * search.c (Freplace_match): Adjust multibyteness of the current
3246 buffer and NEWTEXT. Free allocated memory before signaling an
3247 error.
3248
f6a3f532
SM
32492000-03-28 Stefan Monnier <monnier@cs.yale.edu>
3250
3251 * regex.c (analyse_first): New function obtained by ripping out most
3252 of re_compile_fastmap and generalizing it a little bit so that it
3253 can also just return whether a given (sub)pattern can match the empty
3254 string or not.
3255 (regex_compile): Use `analyse_first' to decide whether the loop-check
3256 needs to be done or not for *, +, *? and +? (the loop check is costly
3257 for non-greedy repetition).
3258 (re_compile_fastmap): Delegate the actual work to `analyse_first'.
3259
e9b309ac
DL
32602000-03-28 Dave Love <fx@gnu.org>
3261
bb15bd9a
DL
3262 * s/gnu-linux.h (GC_SETJMP_WORKS): Define for i386, sparc, m68k,
3263 alpha.
3264
e9b309ac
DL
3265 * alloc.c: Include stdio.h. Test STDC_HEADERS, not __STDC__.
3266
ed0767d8
SM
32672000-03-27 Stefan Monnier <monnier@cs.yale.edu>
3268
3269 * regex.c (REGEX_FREE_STACK, RESET_FAIL_STACK): Make them usable as
3270 an expression.
3271 (enum re_opcode_t): Update description of succeed_n.
3272 (PATFETCH): Always define.
3273 (regex_compile): Use lookahead rather than PATUNFETCH (for repetition
3274 operators, char classes, shy-groups and intervals).
3275 Optimize special cases of intervals so as to only use succeed_n and
3276 jump_n when really needed.
3277 (re_compile_fastmap): Simplify handling of jump_n and succeed_n now
3278 that we don't have to handle the special cases any more.
3279 Simplify on_failure_jump handling as well.
3280
e11e7e46
JR
32812000-03-28 Jason Rumney <jasonr@gnu.org>
3282
3283 * lread.c (Fload): Move safe_p definition to above #ifdef DOS_NT.
3284
88faab89
GM
32852000-03-27 Gerd Moellmann <gerd@gnu.org>
3286
182ff242
GM
3287 * s/freebsd.h (GC_SETJMP_WORKS): Define.
3288
3289 * s/msdos.h (GC_SETJMP_WORKS): Define.
427ec082 3290
182ff242
GM
3291 * alloc.c (mark_maybe_object): New function.
3292 (mark_memory): Use it.
3293 (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK): New macros.
3294 (setjmp_tested_p, longjmp_done): New variables.
3295 (test_setjmp): New function.
3296 (mark_stack) [!GC_SETJMP_WORKS]: Call test_setjmp.
3297 (init_alloc): Initialize setjmp_tested_p and longjmp_done.
3298
c1005d06
GM
3299 * xdisp.c (face_before_or_after_it_pos): Pass multibyteness
3300 to DEC_TEXT_POS and INC_TEXT_POS.
3301
3302 * dispnew.c (direct_output_for_insert): Use DEC_TEXT_POS
3303 with parameter MULTIBYTE_P.
3304
427ec082 3305 * dispextern.h (INC_TEXT_POS, DEC_TEXT_POS): Add parameter
c1005d06
GM
3306 MULTIBYTE_P.
3307
7439e5b9 3308 * editfns.c (Fsubst_char_in_region): Don't use INC_POS in unibyte
182ff242
GM
3309 buffers because it looks for multibyte character byte sequences
3310 which don't exist in unibyte text.
7439e5b9 3311
d9c545da
GM
3312 * xterm.h (x_specified_cursor_type, x_copy_color): Add prototypes.
3313
11fd416e 3314 * xfaces.c (register_color, unregister_color, unregister_colors)
d9c545da
GM
3315 [DEBUG_X_COLORS]: New functions.
3316 (x_free_colors) [DEBUG_X_COLORS]: Unregister colors.
3317
3318 * xfns.c (x_set_cursor_color): Get color reference counts right.
3319
3320 * xterm.c (x_copy_color): New function.
3321 (x_alloc_nearest_color) [DEBUG_X_COLORS]: Call register_color.
3322
3323 * buffer.h (MAX_PER_BUFFER_VARS): Renamed from MAX_BUFFER_LOCAL_VARS.
3324 (PER_BUFFER_VAR_OFFSET): Renamed from BUFFER_LOCAL_VAR_OFFSET.
3325 (PER_BUFFER_VAR_IDX): Renamed from BUFFER_LOCAL_VAR_IDX.
3326 (PER_BUFFER_VALUE_P): Renamed from BUFFER_HAS_LOCAL_VALUE_P.
3327 (SET_PER_BUFFER_VALUE_P): Renamed from SET_BUFFER_HAS_LOCAL_VALUE_P.
3328 (PER_BUFFER_IDX): Renamed from BUFFER_LOCAL_IDX.
3329 (PER_BUFFER_DEFAULT): Renamed from BUFFER_LOCAL_DEFAULT_VALUE.
3330 (PER_BUFFER_VALUE): Renamed from BUFFER_LOCAL_VALUE.
3331 (PER_BUFFER_SYMBOL): Renamed from BUFFER_LOCAL_SYMBOL.
3332 (PER_BUFFER_TYPE): Renamed from BUFFER_LOCAL_TYPE.
3333
11fd416e
GM
3334 * category.c, data.c, syntax.c, print.c, lread.c: Use new macro
3335 names for handling per-buffer variables.
d9c545da
GM
3336
3337 * buffer.c (buffer_permanent_local_flags): Use MAX_PER_BUFFER_VARS
3338 instead of MAX_BUFFER_LOCAL_VARS.
3339 (last_per_buffer_idx): Renamed from max_buffer_local_idx.
3340
3341 * xfaces.c (lookup_face): Don't assert FACE_SUITABLE_FOR_CHAR_P.
3342
88faab89
GM
3343 * xfns.c (x_specified_cursor_type): New function.
3344 (x_set_cursor_type): Use it.
3345
3346 * buffer.h (struct buffer): Add cursor_type.
3347
d80f42b7
SM
33482000-03-26 Stefan Monnier <monnier@cs.yale.edu>
3349
3350 * regex.c (enum re_opcode_t): New opcode on_failure_jump_nastyloop.
427ec082 3351 (print_partial_compiled_pattern, re_compile_fastmap): Handle new
88faab89 3352 opcode.
d80f42b7
SM
3353 (regex_compile): Use on_failure_jump_nastyloop for non-greedy loops.
3354 (re_match_2_internal): Add code for on_failure_jump_nastyloop when
3355 executing it as well as when popping it off the stack to find infinite
3356 loops in non-greedy repetition operators.
3357
89e80928
GM
33582000-03-26 Gerd Moellmann <gerd@gnu.org>
3359
3d4ff2dd
GM
3360 * doc.c (Qfunction_documentation): New variable.
3361 (syms_of_doc): Initialize Qfunction_documentation.
3362 (Fdocumentation): If FUNCTION is a symbol with non-nil
3363 `function-documentation' property, return a documentation derived
3364 from that.
3365
bd96bd79
GM
3366 * buffer.c (syms_of_buffer): Add default-cursor-type.
3367 (init_buffer_once): Don't let cursor_type have a local value
3368 in every buffer.
3369
19d1bc27
GM
3370 * xterm.c (x_display_and_set_cursor): Choose cursor depending
3371 on buffer-local value of cursor_type.
3372 (x_draw_bar_cursor): Add parameter WIDTH.
3373
3374 * buffer.c (reset_buffer): Initialize buffer's cursor_type.
3375 (init_buffer_once): Set default cursor_type value to t.
3376 Mark cursor_type as local everywhere.
3377 (syms_of_buffer): New per-buffer variable cursor-type.
3378
89e80928
GM
3379 * buffer.h (struct buffer): Remove member local_var_flags,
3380 add local_flags.
3381 (MAX_BUFFER_LOCAL_VARS): New macro.
3382 (BUFFER_LOCAL_VAR_OFFSET, BUFFER_LOCAL_VAR_IDX)
3383 (BUFFER_HAS_LOCAL_VALUE_P, SET_BUFFER_HAS_LOCAL_VALUE_P)
3384 (BUFFER_LOCAL_IDX, BUFFER_LOCAL_DEFAULT_VALUE, BUFFER_LOCAL_VALUE)
3385 (BUFFER_LOCAL_SYMBOL, BUFFER_LOCAL_TYPE): New macros.
3386
3387 * print.c (print_object): Use new macros for per-buffer
3388 variables.
3389
3390 * category.c (Fset_category_table): Use new macros for per-buffer
3391 variables.
3392
3393 * buffer.c (buffer_permanent_local_flags): Make a char array.
3394 (max_buffer_local_idx): New variable.
3395 (reset_buffer_local_variables, Fbuffer_local_variables): Rewritten
3396 for new handling of per-buffer variables.
3397 (buffer_slot_type_mismatch): Use new macros for per-buffer vars.
3398 (init_buffer_once): Initialize per-buffer vars differently.
3399 Set max_buffer_local_idx.
3400
3401 * syntax.c (Fset_syntax_table): Use new macros for per-buffer
3402 variables.
3403
3404 * lread.c (defvar_per_buffer): Use new macros for per-buffer
3405 variables.
3406
3407 * data.c (do_symval_forwarding, store_symval_forwarding)
3408 (find_symbol_value, set_internal, default_value, Fset_default)
3409 (Fkill_local_variable, Flocal_variable_p): Use new macros for
3410 per-buffer variables.
3411
3412 * Makefile.in (bootstrap-emacs): Use `mv -f' instead of `mv'.
3413
9a0dd3dc
GM
34142000-03-24 Gerd Moellmann <gerd@gnu.org>
3415
b68c375f
GM
3416 * xterm.c (x_term_init): Unblock input around call1 of
3417 Qvendor_specific_keysyms.
3418
9a0dd3dc
GM
3419 * syntax.c (open_paren_in_column_0_is_defun_start): New variable.
3420 (find_defun_start): Consider an open parenthesis in column 0
3421 a defun start only if open_paren_in_column_0_is_defun_start is set.
3422 (syms_of_syntax): New variable open-paren-in-column-0-is-defun-start.
3423
7973e637
SM
34242000-03-24 Stefan Monnier <monnier@cs.yale.edu>
3425
3426 * eval.c (Fautoload): Add entry in load-history (if after dump).
3427 * lread.c (load-history): Update docstring.
3428
39210e90
GM
34292000-03-24 Gerd Moellmann <gerd@gnu.org>
3430
3431 * indent.c (Fvertical_motion): Always use the current buffer.
3432 Temporarily change the window's buffer, if necessary.
3433
72db3ab5
GM
34342000-03-23 Gerd Moellmann <gerd@gnu.org>
3435
3436 * xterm.c (fast_find_position): Make sure not to consider rows
3437 not visible in the window.
3438
990b2375
SM
34392000-03-22 Stefan Monnier <monnier@cs.yale.edu>
3440
3441 * regex.c (enum syntaxcode): Provide default for non-Emacs.
3442 (re_compile_fastmap, re_match_2_internal): Undo Dave's previous fix.
3443
ff4df011
JR
34442000-03-22 Jason Rumney <jasonr@gnu.org>
3445
3446 * w32menu.c (single_submenu): Set help string to NULL if none.
3447 (w32_menu_show): Set help string correctly.
3448 (add-menu-item): Set help string in MIIM_DATA for menu item.
3449 Load SetMenuItemInfoA explicitly.
3450 (w32_menu_display_help): New function.
427ec082 3451
ff4df011
JR
3452 * w32fns.c (w32_wnd_proc): Handle WM_MENUSELECT message.
3453 (QCdata): Moved to xdisp.c.
3454
3455 * w32term.c (w32_read_socket): Handle WM_MENUSELECT message.
3456 (Vw32_charset_to_codepage_alist): Removed.
3457 (Vw32_charset_info_alist): New variable.
3458 (Qw32_charset_[ansi, default, symbol, shiftjis, hangul, gb2312,
3459 chinesebig5, oem, easteurope, turkish, baltic, russian, arabic,
3460 greek, hebrew, thai, johab, mac, unicode]): New symbols.
3461 (x_produce_glyphs): Remove out of date #ifdef 0'd section. Replace
3462 with TODO comment.
3463 (w32_codepage_for_font): Use Vw32_charset_info_alist.
3464 (syms_of_w32term): Remove Vw32_charset_to_codepage_alist.
3465 Define Vw32_charset_info_alist and w32_charset symbols.
3466
34672000-03-22 Jason Rumney <jasonr@gnu.org>
3468
3469 * makefile.nt (w32bdf.obj): Update dependencies.
3470
3471 * w32bdf.c: Include frame.h and dispextern.h before fontset.h.
3472
3473 * w32fns.c: Include fontset.h after dispextern.h.
3474 (Fx_create_frame): Do not create fontset.
3475 (w32_load_system_font): Doc fix.
3476 (Fx_close_connection): Free full_name if it is not shared.
3477
3478 * w32term.c: Include fontset.h after dispextern.h.
3479 (x_get_glyph_face_and_encoding): New parameter two_byte_p. Callers
3480 updated.
3481 (w32_per_char_metric): If PCM is invalid, delete and return NULL.
3482 (x_get_char_and_face_encoding): Use FACE_FOR_CHAR to get face_id.
3483 (w32_font_is_double_byte): New function, needs body.
3484 (x_append_glyph): Set glyph->glyph_not_available_p.
3485 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
3486 it->charset. If it->multibyte_p is zero and it->c is a multibyte
3487 character, convert it to a unibyte character.
3488 (struct glyph_string): Delete member `charset'.
3489 (W32_TEXTOUT): Temporarily remove charset_dim until another way of
3490 calculating it is found.
3491 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
3492 the case that per char metric is not available correctly.
3493 (x_fill_glyph_string): Handle the case that the specific glyph is
3494 not available correctly.
3495 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
3496 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
3497 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
3498 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
3499 fontset. Don't call FS_LOAD_FONT.
3500
439d5cb4
KR
35012000-03-22 Ken Raeburn <raeburn@gnu.org>
3502
3503 * intervals.h (NULL_INTERVAL): Cast to INTERVAL type.
3504 (INT_LISPLIKE): New macro.
3505 (NULL_INTERVAL_P): Use it.
3506 (INTERVAL_HAS_PARENT, INTERVAL_HAS_OBJECT, SET_INTERVAL_PARENT,
3507 SET_INTERVAL_OBJECT, INTERVAL_PARENT, COPY_INTERVAL_PARENT,
3508 GET_INTERVAL_OBJECT, INTERVAL_PARENT_OR_NULL): New macros.
3509
3510 * alloc.c (make_interval, gc_sweep): Use new macros; eliminate all
3511 explicit references to "parent" field of struct interval and
3512 associated unclean type conversions.
3513 * intervals.c (create_root_interval, root_interval, rotate_right,
3514 rotate_left, balance_possible_root_interval, split_interval_right,
3515 split_interval_left, interval_start_pos, find_interval,
3516 next_interval, previous_interval, update_interval,
3517 adjust_intervals_for_insertion, delete_node, delete_interval,
3518 adjust_intervals_for_deletion, merge_interval_right,
3519 merge_interval_left, reproduce_tree, graft_intervals_into_buffer,
3520 copy_intervals_to_string): Likewise.
3521 * intervals.h (AM_LEFT_CHILD, AM_RIGHT_CHILD, RESET_INTERVAL):
3522 Likewise.
3523 * syntax.c (update_syntax_table): Likewise.
3524
3525 * intervals.c (reproduce_tree_obj): New function, like
3526 reproduce_tree but takes a Lisp_Object for the parent. Declare
3527 with prototype.
3528 (graft_intervals_into_buffer): Use it when appropriate.
3529 (reproduce_tree): Declare with prototype.
3530 (balance_possible_root_interval): Check that the parent is a lisp
3531 object before trying to examine its type.
3532
ee1c5b21
GM
35332000-03-22 Gerd Moellmann <gerd@gnu.org>
3534
3535 * xfaces.c (lface_same_font_attributes_p): Compare font attributes
3536 as strings only if both are known to be strings.
3537
3538 * s/openbsd.h (LIBS_TERMCAP): Undef.
3539
1fb352e0
SM
35402000-03-21 Stefan Monnier <monnier@cs.yale.edu>
3541
3542 * regex.c (CHAR_CHARSET, CHARSET_LEADING_CODE_BASE): Add default
3543 definitions for non-Emacs compilation.
3544 (enum re_opcode_t): Remove (not)wordchar and move (not)syntaxspec
3545 outside of `#ifdef emacs'.
3546 (print_partial_compiled_pattern): Update.
3547 (regex_compile): Use (not)syntaxspec(Sword) instead of (not)wordchar.
3548 (re_compile_fastmap): Merge handling of charset and charset_not (for
3549 emacs and non-emacs compilation as well).
3550 Similarly for (not)categoryspec and (not)syntaxspec.
3551 Don't use the fastmap when reaching `anychar' since the added
3552 complexity is not justified.
3553 (re_match_2_internal): Merge (not)wordchar (emacs and non-emacs)
3554 and (not)syntaxspec. Merge (not)categoryspec.
3555
fdaa1f77
KH
35562000-03-22 Kenichi Handa <handa@etl.go.jp>
3557
ff1a0d8e
KH
3558 * dispextern.h [!HAVE_WINDOW_SYSTEM] (FACE_SUITABLE_FOR_CHAR_P,
3559 FACE_FOR_CHAR): Define them differently for the configuration of
3560 --without-x.
fdaa1f77 3561
d152fb46
DL
35622000-03-21 Dave Love <fx@gnu.org>
3563
3564 * fontset.c (Fset_fontset_font, Ffontset_font): Fix newlines in
3565 doc string.
3566
d2cafc8c
GM
35672000-03-21 Gerd Moellmann <gerd@gnu.org>
3568
3569 * xfaces.c (check_lface_attrs) [GLYPH_DEBUG]: Fix syntax error.
3570 (lface_fully_specified_p): Don't check contents of
3571 LFACE_FONT_INDEX because that attribute is optional.
3572 (realize_x_face): Remove now unwarranted xassert.
3573
9111d4b5
KH
35742000-03-21 Kenichi HANDA <handa@etl.go.jp>
3575
3576 The following changes are to make font selection based on
3577 characters, not charset. In addition, they recover fontset
3578 facilities while utilizing the new font selection mechanism.
3579
6c4bfdc0
KH
3580 * Makefile.in (fontset.o): Depend on dispextern.h.
3581
3582 * alloc.c (mark_face_cache): Don't mark face->registry.
3583
9111d4b5
KH
3584 * dispextern.h (struct glyph): New member glyph_not_available_p.
3585 Use 22 bits for face_id.
3586 (enum lface_attribute_index): Add LFACE_FONT_INDEX.
3587 (struct face): Delete member registry, new member ascii_face.
3588 (FACE_SUITABLE_FOR_CHAR_P): Renamed from
3589 FACE_SUITABLE_FOR_CHARSET_P. Caller changed.
3590 (FACE_FOR_CHAR): Renamed from FACE_FOR_CHARSET. Caller changed.
3591 (struct it): Delete member charset, new member
3592 glyph_not_available_p.
3593
3594 * fontset.h (FONT_NOT_OPENED, FONT_NOT_FOUND): Macros removed.
3595 (struct fontset_info, struct fontset_data): Structs removed.
3596 (allloc_fontset_data, free_fontset_data, fs_regiser_fontset,
3597 Vglobale_fontset_alist, font_idx_temp): Externs removed.
3598 (fs_load_font, fs_query_fontset): Adjusted for new argument.
3599 (fs_free_face_fontset, fontset_font_pattern,
3600 face_suitable_for_char_p, face_for_char,
3601 make_fontset_for_ascii_face): Extern them.
3602 (FS_LOAD_FONT): Adjusted for the change of fontset implementation.
3603 (FS_LOAD_FACE_FONT): New macro.
3604
3605 * fontset.c: All codes rewritten or adjusted for the change of
3606 fontset implementation. Now fontset is represented by char table.
3607 (Vglobal_fontset_alist, font_idx_temp, my_strcasetbl): Variables
3608 removed.
3609 (my_strcasecmp): Function removed.
3610 (Vfontset_table, next_fontset_id, Vdefault_fontset): New
3611 variables.
3612 (AREF, ASIZE): New macros.
3613 (FONTSET_FROM_ID, FONTSET_ID, FONTSET_NAME, FONTSET_FRAME,
3614 FONTSET_ASCII, FONTSET_BASE, BASE_FONTSET_P, FONTSET_REF,
3615 FONTSET_REF_VIA_BASE, FONTSET_SET): New macros.
3616 (fontset_ref, fontset_ref_via_base, fontset_set, make_fontset,
3617 fontset_id_valid_p, font_family_registry, fontset_name,
3618 fontset_ascii, free_face_fontset, face_suitable_for_char_p,
3619 face_for_char, make_fontset_for_ascii_face, fontset_font_pattern):
3620 New functions.
3621 (fs_load_font): New arg FACE. Caller changed.
3622 (fs_query_fontset): Argument changed. Caller changed.
3623 (Fquery_fontset): call fs_query_fontset.
3624 (fs_register_fontset, alloc_fontset_data, free_fontset_data):
3625 Functions removed.
3626 (clear_fontset_elements, check_registry_encoding,
3627 check_fontset_name): New functions.
3628 (syms_of_fontset): Set char-table-extra-slots property of fontset
3629 to 3. Staticpro and initialize Vfontset_table and
3630 Vdefault_fontset. Defsubr fontset_font and fontset_list.
3631
3632 * frame.h (struct frame): Member `fontset_data' removed.
3633 (FRAME_FONTSET_DATA): Macro removed.
3634
3635 * frame.c (make_frame): Don't allocate f->fontset_data.
3636 (Fdelete_frame): Don't free f->fontset_data.
3637
6c4bfdc0
KH
3638 * msdos.c (XMenuActivate): Args to lookup_derived_face changed.
3639
9111d4b5
KH
3640 * xdisp.c (charset_at_position): Function removed.
3641 (init_iterator): Don't set member charset of struct `it'.
3642 (handle_face_prop, reseat_to_string, set_iterator_to_next,
3643 next_element_from_display_vector, insert_left_trunc_glyphs):
3644 Likewise.
3645 (face_before_or_after_it_pos): Call FACE_FOR_CHAR, not
3646 FACE_FOR_CHARSET.
3647 (get_next_display_element, append_space,
3648 extend_face_to_end_of_line): Likewise.
3649
3650 * xfaces.c (Qx_charset_registry, Vface_default_registry):
3651 Variables removed.
3652 (clear_font_table, frame_update_line_height, load_face_font):
3653 Adjusted for the change of fontset implementation.
3654 (load_face_fontset_font): Function removed.
3655 (pixel_point_size): New function.
3656 (font_list): Argument type changed. Caller changed.
3657 (LFACE_FONT): New macro.
3658 (check_lface_attrs): Check attr[LFACE_FONT_INDEX].
3659 (set_lface_from_font_name): Type of arg FONTNAME is changed to
3660 Lisp_Object. Determine the font name by actually loading a font
3661 by the specified pattern. Set LFACE_FONT (lface) to the specified
3662 pattern. Even if a font is not found, don't try alternatives.
3663 (Finternal_set_lisp_face_attribute): Handle `font' slot in lface.
3664 (set_font_frame_param): If `font' is specified in lface, use it.
3665 (Finternal_get_lisp_face_attribute): Handle `font' slot in lface.
3666 (lface_same_font_attributes_p): Likewise.
3667 (make_realized_face): Arguent changed. Caller changed. Set
3668 face->ascii_face to face itself.
3669 (free_realized_face): Free face->fontset if face is for ASCII.
3670 (face_suitable_for_iso8859_1_p, face_suitable_for_charset_p,
3671 deduce_unibyte_registry, x_charset_registry): Functions removed.
3672 (free_realized_multibyte_face): New function.
3673 (lookup_face, lookup_named_face, lookup_derived_face): Argument
3674 changed. Caller changed.
3675 (try_font_list): Argument type changed.
3676 (face_fontset): Check `font' slot of ATTRS, not `family' slot.
3677 (choose_face_font): Argument changed. Handle fontset properly.
3678 (choose_face_fontset_font): Function removed.
3679 (realize_default_face, realize_named_face): Don't remove the
3680 former face here.
3681 (realize_face): Argument changed. Caller changed. Remove face
3682 with the arg former_face_id in advance. Load font for the new
3683 face.
3684 (realize_x_face): Argument changed. Caller changed. For a
3685 multibyte character, share fontset with base_face. For a single
3686 byte character, make a new realized fontset. Don't load a font
3687 here.
3688 (realize_tty_face): Argument changed. Caller changed.
3689 (compute_char_face): Call FACE_FOR_CHAR, not FACE_FOR_CHARSET.
3690 (face_at_buffer_position): Don't check multibyte_p for returning
3691 DEFAULT_FACE_ID.
3692 (face_at_string_position): Call FACE_SUITABLE_FOR_CHAR_P, not
3693 FACE_SUITABLE_FOR_CHARSET_P.
3694 (syms_of_xfaces): Remove code for Qx_charset_registry and
3695 Vface_default_registry.
3696
6c4bfdc0
KH
3697 * xterm.c: Include fontset.h after dispextern.h. Undo the changes
3698 related to PER_CHAR_METRIC done by Gerd on 2000-03-03.
9111d4b5
KH
3699 (x_per_char_metric): Don't try FONT->default_char. Even if
3700 pcm->width is zero, glyph bits may exist.
3701 (x_encode_char): Always initialize char2b->byte1.
3702 (x_get_char_face_and_encoding): Call FACE_FOR_CHAR to get face_id.
3703 (x_get_glyph_face_and_encoding): New arg two_byte_p. Caller
3704 changed.
3705 (x_append_glyph): Set glyph->glyph_not_available_p.
3706 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
3707 it->charset. Handle the case that per char metric is not
3708 available. If it->multibyte_p is zero and it->c is a multibyte
3709 character, convert it to a unibyte character.
3710 (struct glyph_string): Delete member `charset'.
3711 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
3712 the case that per char metric is not available correctly.
3713 (x_fill_glyph_string): Handle the case that the specific glyph is
3714 not available correctly.
3715 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
3716 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
3717 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
3718 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
3719 fontset. Don't call FS_LOAD_FONT.
3720
3721 * xfns.c (Fx_create_frame): Don't cal fs_register_fontset.
3722 (x_create_tip_frame): Likewise.
3723 (Fx_close_connection): Free full_name of font_info.
3724
3725 * fns.c (optimize_sub_char_table): New function.
3726 (Foptimize_char_table): New function.
3727 (syms_of_fns): Defsubr Soptimize_char_table.
3728
b33dd3b0
GM
37292000-03-20 Gerd Moellmann <gerd@gnu.org>
3730
3731 * buffer.c (Fset_buffer_modified_p): Set update_mode_lines
3732 only if buffer is displayed in some window.
3733
3734 * xdisp.c (handle_single_display_prop): Initialize local `value'.
3735 (try_window_reusing_current_matrix): Don't call scroll run
3736 function if run's current and desired position are the same;
3737 this prevents cursor flickering.
3738
4e8a9132
SM
37392000-03-19 Stefan Monnier <monnier@cs.yale.edu>
3740
3741 * regex.h (RE_TRANSLATE. RE_TRANSLATE_P): Moved to regex.c.
3742
3743 * regex.c (RE_STRING_CHAR): New macro.
3744 (GET_CHAR_AFER_2): Remove.
3745 (RE_TRANSLATE, RE_TRANSLATE_P): New macros moved from regex.h.
3746 (enum re_opcode_t): Remove on_failure_jump_exclusive.
3747 (print_partial_compiled_pattern, re_compile_fastmap)
3748 (re_match_2_internal): Remove on_failure_jump_exclusive.
3749 (regex_compile): Turn optimizable P+ loops into PP*, so that the
3750 optimization only need to work for * (ie. can use of_keep_string_jump).
3751 Remove the special case for .*\n since it is now covered by the general
3752 optimization.
3753 (re_search_2): Don't bother with `room'.
3754 (skip_one_char): New function.
3755 (skip_noops): Simplify since `memory' is not needed any more.
3756 (mutually_exclusive_p): Restructure slightly to use `switch' and
3757 add handling for "all" remaining cases.
3758 (re_match_2_internal): Change on_failure_jump_smart to use
3759 on_failure_keep_string_jump (and redirect the end-of-loop jump)
3760 rather than on_failure_jump_exclusive.
3761
2136fdd4
GM
37622000-03-19 Gerd Moellmann <gerd@gnu.org>
3763
3764 * xfns.c (select_visual): Don't set dpyinfo->n_planes to the
3765 number of bits per RGB because it's everywhere used as the depth
3766 of the visual.
3767
3768 * term.c (calculate_costs): Remove code dealing with X frames.
3769
18e21ce8 37702000-03-19 Richard M. Stallman <rms@gnu.org>
e53ae11c
RS
3771
3772 * lread.c (syms_of_lread): Doc fix for load-convert-to-unibyte.
3773
d7b511c4
GM
37742000-03-18 Gerd Moellmann <gerd@gnu.org>
3775
3776 * lread.c (read_integer): Unread the last char not consumed.
3777
16b5d424
GM
37782000-03-17 Gerd Moellmann <gerd@gnu.org>
3779
3780 * xterm.c (x_update_window_cursor): Don't update in frames
d7b511c4 3781 which are in the process of being deleted.
16b5d424 3782
1fa28578
GM
37832000-03-16 Gerd Moellmann <gerd@gnu.org>
3784
83488cce
GM
3785 * Makefile.in (mostlyclean): Add `*.core'.
3786 (clean): Add `bootstrap-emacs'.
3787
1fa28578
GM
3788 * lread.c (read_integer): New function.
3789 (read1): Support read syntax #o, #x, #b, #r.
3790
99633e97
SM
37912000-03-15 Stefan Monnier <monnier@cs.yale.edu>
3792
1fa28578
GM
3793 * regex.c (re_match_2): Fix string shortening (to fit `stop') to
3794 make sure POINTER_TO_OFFSET gives the same value before and after
3795 PREFETCH. Use `dfail' to guarantee "atomic" matching.
99633e97
SM
3796 (PTR_TO_OFFSET): Use POINTER_TO_OFFSET.
3797 (debug): Now only active if > 0 rather than if != 0.
3798 (DEBUG_*): Update for the new meaning of `debug'.
1fa28578
GM
3799 (print_partial_compiled_pattern): Add missing `succeed' case. Use
3800 CHARSET_* macros in the charset(_not) branch. Fix off-by-two bugs
3801 in `succeed_n', `jump_n' and `set_number_at'.
99633e97
SM
3802 (store_op1, store_op2, insert_op1, insert_op2)
3803 (at_begline_loc_p, at_endline_loc_p): Add prototype.
1fa28578
GM
3804 (group_in_compile_stack): Move to after its arg's types are
3805 declared and add a prototype.
99633e97 3806 (PATFETCH): Define in terms of PATFETCH_RAW.
1fa28578
GM
3807 (GET_UNSIGNED_NUMBER): Add the usual `do { ... } while(0)'
3808 wrapper.
99633e97 3809 (QUIT): Redefine as a nop except for NTemacs.
1fa28578
GM
3810 (regex_compile): Handle intervals {,M} as if it was {0,M}. Fix
3811 indentation of the greedy-op and shy-group code.
99633e97
SM
3812 (at_(beg|end)line_loc_p): Fix argument's types.
3813 (re_compile_fastmap): Ifdef out failure_stack_ptr to shut up gcc.
3814 (re_search_2): Use POS_AS_IN_BUFFER. Simplify `room' computation.
3815 (MATCHING_IN_FIRST_STRING): Remove.
1fa28578
GM
3816 (re_match_2): Use POS_AS_IN_BUFFER. Ifdef out failure_stack_ptr
3817 to shut up gcc. Use FIRST_STRING_P and POINTER_TO_OFFSET. Use
3818 QUIT unconditionally.
99633e97 3819
699238d9
GM
38202000-03-15 Gerd Moellmann <gerd@gnu.org>
3821
3822 * minibuf.c (Fminibuffer_complete): Set point to ZV if finding
3823 a sole completion.
3824
3825 * process.c (send_process): Add a hint that the function
3826 can call Lisp code to its comment.
3827
3828 * lread.c (load_dangerous_libraries): New variable.
3829 (Vbytecomp_version_regexp): New variable.
3830 (safe_to_load_p): New function.
3831 (Fload): Handle files not compiled with Emacs specially.
3832 (syms_of_lread): New Lisp variable load-dangerous-libraries.
3833
34e23e5a
GM
38342000-03-14 Gerd Moellmann <gerd@gnu.org>
3835
9c763cca
GM
3836 * lisp.h (free_frame_xic) [HAVE_X_I18N]: Add missing semicolon.
3837
3838 * xterm.c (xim_close_dpy, xim_initialize): Use X11R6-style XIM
3839 support functions only if HAVE_X11R6_XIM is defined.
3840 (xim_instantiate_callback): Define only if HAVE_X11R6_XIM.
3841
3842 * s/sol2.h (INHIBIT_X11R6_XIM): Define.
3843
3844 * xfns.c (X_I18N_INHIBITED): Don't define.
3845 (create_frame_xic): Remove conditional compilation on
3846 X_I18N_INHIBITED.
3847 (x_kill_gs_process, x_window): Use FRAME_X_VISUAL.
3848
3849 * config.in (HAVE_X_I18N): Moved here from xterm.h.
3850 (HAVE_X11R6_XIM): Define.
3851
3852 * xterm.h (HAVE_X_I18N) [HAVE_X11R6]: Moved to config.in.
3853
34e23e5a
GM
3854 * xterm.c (x_term_init): Add support for X resource `synchronous'.
3855 If set, call XSynchronize.
3856
66f0296e
SM
38572000-03-13 Stefan Monnier <monnier@cs.yale.edu>
3858
34e23e5a
GM
3859 * regex.c: Declare a new type `re_char' used throughout the code
3860 for the string char type. It's `const unsigned char' to match the
3861 rest of Emacs. Consistently make sure all pointers to strings use
3862 it and make sure all pointers into the pattern use `unsigned
3863 char'.
66f0296e 3864 (re_match_2_internal): Use `PREFETCH+STRING_CHAR' instead of
34e23e5a
GM
3865 GET_CHAR_AFTER_2. Also merge wordbound and notwordbound to reduce
3866 code duplication.
66f0296e
SM
3867
3868 * charset.h (GET_CHAR_AFTER_2): Remove.
3869 (GET_CHAR_BEFORE_2): Use unsigned chars, like everywhere else.
3870
854a025c
KR
38712000-03-12 Ken Raeburn <raeburn@gnu.org>
3872
3873 * Makefile.in (temacs): Evaluate ALL_LDFLAGS into a temporary
3874 variable before the invocation of YMF_PASS_LDFLAGS, in case both
3875 of them try to use backquotes.
3876
b9d2c7e2
DL
38772000-03-12 Dave Love <fx@gnu.org>
3878
3879 * unexelf.c: Restore changes of 1999-10-19.
3880 (unexec): Don't adjust bss for sbss type SHT_PROGBITS; otherwise
3881 fix its type and alignment; copy it from current process.
3882
5e5dff44
GM
38832000-03-12 Gerd Moellmann <gerd@gnu.org>
3884
9b2f3c38
GM
3885 * atimer.c (cancel_atimer): Break out of the loop as soon as timer
3886 has been found. Fix bug not computing timer's predecessor.
3887
427ec082 3888 * fileio.c (Fread_file_name): Handle case that DIR contains a
9172b88d
GM
3889 file name.
3890
e1cff360
GM
3891 * window.c (Fsave_window_excursion): Doc fix.
3892
5e5dff44
GM
3893 * xfns.c (x_defined_color): Rewritten to use
3894 x_allocate_nearest_color.
3895
e411ce4b
EZ
38962000-03-12 Eli Zaretskii <eliz@is.elta.co.il>
3897
3898 * msdos.c (vga_installed): New function, code moved from
3899 dos_set_window_size.
3900 (Qbar, Qcursor_type, outside_cursor): New variables.
3901 (syms_of_msdos): Intern and staticpro them.
3902 (dos_ttraw) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Save the cursor
3903 shape used outside Emacs when called for the first time.
3904 (dos_ttcooked) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Restore the
3905 cursor shape used outside Emacs.
3906 (msdos_set_cursor_shape, IT_set_cursor_type): New functions.
3907 (IT_frame_up_to_date): Call IT_set_cursor_type, in case the cursor
3908 type has changed.
3909 (IT_set_frame_parameters): Call IT_set_cursor_type if the frame
3910 parameters specify the cursor. Make qreverse a global
3911 variable (renamed to Qreverse).
3912
80460654
GM
39132000-03-09 Gerd Moellmann <gerd@gnu.org>
3914
3915 * fns.c (Fy_or_n_p): Cancel busy-cursor.
3916
95cd4c40
SM
39172000-03-08 Stefan Monnier <monnier@cs.yale.edu>
3918
3919 This is a big redesign of failure-stack and register handling, prompted
3920 by bugs revealed when trying to add shy-groups. Overall, what happened
3921 is that loops are now structured a little differently, groups can be
3922 shy and the code is a little simpler.
3923
3924 * regex.h: Update the copyright.
3925 (RE_SHY_GROUPS): New value.
3926 (RE_UNMATCHED_RIGHT_PAREN_ORD): Renumber.
3927 (RE_SYNTAX_EMACS): Add RE_SHY_GROUPS.
3928
80460654
GM
3929 * regex.c (enum re_opcode_t): Remove jump_past_alt,
3930 maybe_pop_jump, push_dummy_failure and dumy_failure_jump. Add
3931 on_failure_jump_(exclusive, loop and smart). Also fix the comment
3932 for (start|stop)_memory since they now only take one argument (the
3933 second has becomes unnecessary).
3934 (print_partial_compiled_pattern): Adjust for changes in
3935 re_opcode_t.
3936 (print_compiled_pattern): Use %ld to printf long ints and flush to
3937 make debugging a little easier.
95cd4c40
SM
3938 (union fail_stack_elt): Make the integer unsigned.
3939 (struct fail_stack_type): Add a `frame' element.
3940 (INIT_FAIL_STACK): Init `frame' as well.
3941 (POP_PATTERN_OP): New macro for re_compile_fastmap.
3942 (DEBUG_PUSH, DEBUG_POP): Remove.
3943 (NUM_REG_ITEMS): Remove.
3944 (NUM_NONREG_ITEMS): Adjust.
80460654
GM
3945 (FAILURE_PAT, FAILURE_STR, NEXT_FAILURE_HANDLE)
3946 (TOP_FAILURE_HANDLE): New macros for the cycle detection.
95cd4c40 3947 (ENSURE_FAIL_STACK): New macro for PUSH_FAILURE_(REG|POINT).
80460654
GM
3948 (PUSH_FAILURE_REG, POP_FAILURE_REG, CHECK_INFINITE_LOOP): New
3949 macros.
3950 (PUSH_FAILURE_POINT): Don't push registers any more. The pattern
3951 address pushed is not the destination of the jump but the source
3952 of it instead.
95cd4c40
SM
3953 (NUM_FAILURE_ITEMS): Remove.
3954 (POP_FAILURE_POINT): Adapt to the new stack structure (i.e. pop
80460654
GM
3955 registers before the actual failure point). Don't hardcode any
3956 meaning for str==NULL anymore.
95cd4c40 3957 (union register_info_type, REG_MATCH_NULL_STRING_P, IS_ACTIVE)
80460654
GM
3958 (MATCHED_SOMETHING, EVER_MATCHED_SOMETHING, SET_REGS_MATCHED):
3959 Remove.
95cd4c40
SM
3960 (REG_UNSET_VALUE): Use NULL (why not?).
3961 (compile_range): Remove declaration since it doesn't exist.
3962 (struct compile_stack_elt_t): Remove inner_group_offset.
3963 (old_reg(start|end), reg_info, reg_dummy, reg_info_dummy): Remove.
3964 (regex_grow_registers): Remove dead code.
3965 (FIXUP_ALT_JUMP): New macro.
80460654
GM
3966 (regex_compile): Add shy-groups Change loops to use
3967 on_failure_jump_smart&jump instead of
3968 on_failure_jump&maybe_pop_jump. Change + loops to eliminate the
3969 initial (dummy_failure_)jump. Remove c1_base (looks like unused
3970 variable to me). Use `jump' instead of `jump_past_alt' and don't
3971 bother with push_dummy_failure in alternatives since it is now
3972 unnecessary. Use FIXUP_ALT_JUMP. Eliminate a useless `#ifdef
3973 emacs' for (re)allocating the stack.
3974 (re_compile_fastmap): Remove dead variables i and num_regs. Exit
3975 from loop when bufp->can_be_null rather than jumping to `done'.
3976 Avoid jumping backwards so as to ensure termination. Use
3977 PATTERN_STACK_EMPTY and POP_PATTERN_OP. Improved handling of
3978 backreferences. Remove dead code in handling of `anychar'.
95cd4c40 3979 (skip_noops, mutually_exclusive_p): New functions taken from the
80460654
GM
3980 handling of `maybe_pop_jump' in re_match_2_internal. Slightly
3981 improve mutually_exclusive_p to handle ".+\n".
3982 (lowest_active_reg, highest_active_reg,
3983 NO_(LOWEST|HIGHEST)_ACTIVE_REG) Remove.
3984 (re_match_2_internal): Use %p instead of 0x%x when printf'ing
3985 ptrs. Don't SET_REGS_MATCHED anymore. Remove many dead
3986 variables. Push register (in `start_memory') on the stack rather
3987 than storing it in old_reg(start|end). Remove the cycle detection
3988 from `stop_memory', replaced by the use of on_failure_jump_loop
3989 for greedy loops. Add code for the new on_failure_jump_<foo>.
3990 Remove ad-hoc code in `on_failure_jump' to push more registers in
3991 the case of a loop. Take out code from `maybe_pop_jump' into
3992 separate functions and adapt it to the semantics of
3993 `on_failure_jump_smart'. Remove jump_past_alt, dummy_failure_jump
3994 and push_dummy_failure. Remove dummy_failure handling and
3995 handling of `failures to jump to on_failure_jump' (this last one
3996 was already dead code, it seems).
3997 (group_match_null_string_p, alt_match_null_string_p)
3998 (common_op_match_null_string_p): Remove.
95cd4c40 3999
7397acc4
DL
40002000-03-08 Dave Love <fx@gnu.org>
4001
4002 * config.in: Don't depend on __STDC__ for volatile.
4003 Add POINTER_TYPE, PTR, PROTOTYPES.
4004
4005 * hftctl.c, strftime.c: Use PROTOTYPES.
4006 * eval.c (find_handler_clause): Likewise.
4007
4008 * mem-limits.h: Use POINTER_TYPE.
4009
4010 * lisp.h (P_): Define based on PROTOTYPES, not __STDC__.
4011 (memory_warnings): Declare using POINTER_TYPE.
4012
5e91ff9e
GM
40132000-03-08 Gerd Moellmann <gerd@gnu.org>
4014
feab4fba
GM
4015 * xfns.c (x_set_cursor_type): If ARG is nil, give frame no cursor.
4016
25edb08f
GM
4017 * xdisp.c (display_echo_area): Temporarily inhibit garbage
4018 collection.
4019
5e91ff9e
GM
4020 * xfns.c: Remove obsolete code in #if 0.
4021 (Fx_focus_frame): New function.
4022
a735b7e1
KH
40232000-03-07 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
4024
4025 * coding.c (coding_category_name): Add coding-category-utf-8,
4026 coding-category-utf-16-be, coding-category-utf-16-le.
4027 (UTF_8_1_OCTET_P, UTF_8_EXTRA_OCTET_P, UTF_8_2_OCTET_LEADING_P,
4028 UTF_8_3_OCTET_LEADING_P, UTF_8_4_OCTET_LEADING_P,
4029 UTF_8_5_OCTET_LEADING_P, UTF_8_6_OCTET_LEADING_P): New macros.
4030 (detect_coding_utf_8): New function.
4031 (UTF_16_INVALID_P, UTF_16_HIGH_SURROGATE_P
4032 UTF_16_LOW_SURROGATE_P): New macros.
4033 (detect_coding_utf_16): New function
4034 (detect_coding_mask): When priorities are specified, skip any
4035 categories that have `nil' coding-system. Fix bug of returning
4036 wrong mask when PRIORITIES is specified and detect_coding_XXX()
4037 returns a mask not set in PRIORITIES.
4038 (detect_eol_type_in_2_octet_form): New function.
4039 (detect_eol): selects detect_eol_type_XXX to call according to
4040 cooding->category_idx.
4041 (detect_coding_system): Remove `nil' coding-system in the result.
4042 (Fupdate_coding_systems_internal): Update all coding-categories.
4043
4044 * coding.h (CODING_CATEGORY_IDX_UTF_8,
4045 CODING_CATEGORY_IDX_UTF_16_BE, CODING_CATEGORY_IDX_UTF_16_LE): New
4046 macros.
4047 (CODING_CATEGORY_IDX_RAW_TEXT, CODING_CATEGORY_IDX_BINARY,
4048 CODING_CATEGORY_IDX_MAX): Adjusted for the above macros.
4049 CODING_CATEGORY_IDX_UTF_16_LE.
4050 (CODING_CATEGORY_MASK_UTF_8, CODING_CATEGORY_MASK_UTF_16_BE,
4051 CODING_CATEGORY_MASK_UTF_16_LE): New macros.
4052 (CODING_CATEGORY_MASK_ANY): Include the above macros.
4053 (CODING_CATEGORY_MASK_UTF_16_BE_LE): New macro.
4054
9994cc69
GM
40552000-03-07 Gerd Moellmann <gerd@gnu.org>
4056
e9b4e5ff
GM
4057 * doc.c (Fdocumentation_property): If value is not a string,
4058 and doesn't refer to etc/DOC, evaluate it to obtain a string.
4059
f7daf1e1
GM
4060 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Don't try to
4061 close the display with XtCloseDisplay. This caused a bus error
4062 on OpenWindows.
4063
9994cc69
GM
4064 * minibuf.c (Fminibuffer_complete): Move point to ZV when input is
4065 complete but not unique.
4066
4336c705
GM
40672000-03-06 Gerd Moellmann <gerd@gnu.org>
4068
18bb0684
GM
4069 * process.c (send_process): Remove local variable `procname' that
4070 might become invalid when a GC happens. Instead, access the
4071 process name slot directly.
4072
4336c705
GM
4073 * xfns.c (x_set_menu_bar_lines_1): Adjust window's orig_top and
4074 orig_height if set.
4075
4076 * frame.c (set_menu_bar_lines_1): Adjust window's orig_top and
4077 orig_height if set.
4078
515d0d0e
EZ
40792000-03-06 Eli Zaretskii <eliz@is.elta.co.il>
4080
4081 * msdos.c (IT_note_mouse_highlight): Return immediately if frame's
4082 glyph matrices have been freed.
4083
100b3cbb
GM
40842000-03-05 Gerd Moellmann <gerd@gnu.org>
4085
50df5e5a 4086 * Makefile.in (tags): Include ../lwlib/TAGS in TAGS.
6178bc23 4087 (bootstrap-temacs): Set LC_ALL to C like for temacs.
50df5e5a
GM
4088
4089 * xfns.c (QCdata): Moved to xdisp.c.
4090
4091 * xdisp.c (QCdata): Moved here from xfns.c.
4092 (syms_of_xdisp): Initialize QCdata.
4093
4094 * frame.h (FRAME_INTERNAL_BORDER_WIDTH) [!HAVE_X_WINDOWS]: Define.
4095
4096 * window.c (coordinates_in_window): Use
4097 FRAME_INTERNAL_BORDER_WIDTH_SAFE instead of
4098 FRAME_INTERNAL_BORDER_WIDTH.
4099
100b3cbb 4100 * xdisp.c (try_window_id): Recompute unchanged information if
4336c705 4101 it is obviously invalid.
100b3cbb
GM
4102
4103 * xterm.c (x_term_init): Create a colormap if not using the
4104 default visual.
4105
4106 * xterm.h (select_visual): Change prototype.
4107
4108 * xfns.c (select_visual): Rewritten. Recognize user-specified
4109 visual classes.
4110 (visual_classes): New variable.
4111
64d739c4
GM
41122000-03-04 Gerd Moellmann <gerd@gnu.org>
4113
4114 * xfns.c (x_defined_color, x_set_mouse_color, lookup_rgb_color)
4115 (lookup_pixel_color, x_laplace, x_build_heuristic_mask)
4116 (png_load): Access colormap of frame using FRAME_X_COLORMAP.
4117 (x_decode_color): Don't handle allocation of white and black
4118 specially.
4119 (x_window) [USE_X_TOOLKIT]: Set XtNvisual, XtNdepth, and
4120 XtNcolormap resources.
4121 (x_window) [!USE_X_TOOLKIT]: Pass colormap to XCreateWindow.
4122 (Fx_create_frame): Initialize color members of x_output structure.
4123 (xpm_load): Pass colormap to XPM lib.
4124
4125 * xfaces.c (x_free_colors): Access colormap of frame using
4126 FRAME_X_COLORMAP. Be paranoid about freeing black and white
4127 when default colormap is used.
4128
4129 * xterm.c (x_term_init): Set Colormap member of x_display_info
4130 structure. Copy colormap if resource `privateColormap' is
4131 specified (PseudoColor only).
4132 (x_setup_relief_color): Access colormap of frame using
4133 FRAME_X_COLORMAP.
4134
4135 * xterm.h (struct x_display_info): Add Colormap member `cmap'.
4136 (FRAME_X_COLORMAP, FRAME_X_VISUAL): New macros.
4137
c3cee013
JR
41382000-03-04 Jason Rumney <jasonr@gnu.org>
4139
4140 * xfaces.c Change many FRAME_X... macros to FRAME_WINDOW... or
4141 other non-platform-specific equivalents.
64d739c4 4142 [WINDOWSNT]: Include w32term.h, fontset.h and define X
c3cee013
JR
4143 specific functions and macros as their w32 equivalents where
4144 non-platform-specifics are not available.
4145 [HAVE_X_WINDOWS]: Change most of these to HAVE_WINDOW_SYSTEM.
4146 (x_create_gc, x_free_gc) [WINDOWSNT]: Add W32 versions.
4147 (clear_font_table) [WINDOWSNT]: Call w32_unload_font.
4148 (frame_update_line_height): Use macros to access f->output_data.
4149 (defined_color): Remove FIXME comments; fixed.
4150 (x_face_list_fonts, prepare_face_for_display): Put X specifics
4151 into #ifdef blocks. Add WINDOWSNT blocks.
4152 (Fx_list_fonts): Use macros for accessing font data.
4153 (set_lface_from_font_name): Different default fonts for X and
4154 WINDOWSNT.
4155 (font_scalable_p) [WINDOWSNT]: Treat wildcard XLFD_AVGWIDTH as
4156 scalable for backward compatibility.
64d739c4 4157 (realize_tty_face) [MSDOS]: Do the same for WINDOWSNT.
c3cee013
JR
4158 (syms_of_xfaces) [WINDOWSNT]: Allow scalable fonts by default.
4159
64d739c4 4160 * emacs.c (main) [HAVE_NTGUI]: Call syms_of_xfaces instead of
c3cee013
JR
4161 syms_of_w32faces.
4162
4163 * makefile.nt (w32faces.obj): Remove.
4164 (xfaces.obj): Add.
4165
807cc41c
JR
41662000-03-03 Jason Rumney <jasonr@gnu.org>
4167
4168 * keyboard.c (make_lispy_event): Call buffer_posn_from_coords with
4169 correct parameters.
4170
0007072a
KR
41712000-03-03 Ken Raeburn <raeburn@gnu.org>
4172
4173 * unexelf.c (PT_LOAD, SHT_*, SHN_*) [__NetBSD__]: Only provide
4174 standard ELF definitions here if the system header does not.
4175
71a6ba55
GM
41762000-03-03 Gerd Moellmann <gerd@gnu.org>
4177
4178 * xterm.c (PER_CHAR_METRIC): Removed.
4179 (x_per_char_metric_1, x_default_char): New functions.
4180 (x_per_char_metric): If font's default char is invalid, return
4181 metrics of a suitably chosen usable default char.
4182 (x_draw_glyph_string_foreground): If font has an invalid default
64d739c4
GM
4183 char, replace occurrences of unprintable chars with a suitably
4184 chosen usable default char.
71a6ba55 4185
900fa1f1
GM
41862000-03-02 Gerd Moellmann <gerd@gnu.org>
4187
42f55fe0
GM
4188 * xterm.c (note_mouse_highlight): Return quickly if frame's
4189 glyph matrices have been freed.
4190
4191 * dispnew.c (free_glyphs): Block input while freeing matrices.
4192
900fa1f1
GM
4193 * xfns.c (x_clear_image, x_kill_gs_process): Use x_free_colors.
4194
4195 * xterm.c (x_alloc_lighter_color, x_setup_relief_color): Use
4196 x_free_colors.
4197
4198 * dispextern.h (x_free_colors): Add prototype.
4199
4200 * xfaces.c (x_free_colors): New function.
4201 (unload_color, free_face_colors): Use it.
4202
2f950292
EZ
42032000-03-02 Eli Zaretskii <eliz@is.elta.co.il>
4204
4205 * msdos.h (FRAME_INTERNAL_BORDER_WIDTH): Define to zero.
4206
4207 * window.c [MSDOS]: Include msdos.h.
4208
54d04320
DL
42092000-03-02 Dave Love <fx@gnu.org>
4210
4211 * m/powerpcle.h, m/sparc.h: Don't set C_OPTIMIZE_SWITCH.
4212
4213 * m/mips-siemens.h, m/news-r6.h, m/news-risc.h, m/tekxd88.h: Don't
4214 set C_OPTIMIZE_SWITCH for gcc.
4215
0ba93ac4
KH
42162000-03-02 Kenichi Handa <handa@etl.go.jp>
4217
4218 * coding.c (coding_save_composition): Be sure to allocate
4219 composition data area in coding even if there's no composition in
4220 the current run.
4221
a2bc11d4
JR
42222000-03-01 Jason Rumney <jasonr@gnu.org>
4223
4224 * w32term.c: Equivalent changes to those made to xterm.c on
4225 2000-02-25 and 2000-02-24.
4226
4227 * w32fns.c: Equivalent changes to those made to xfns.c on
4228 2000-02-25 and 2000-02-21.
4229
4230 * sysdep.c: [WINDOWSNT]: Use sys_read and sys_write to ensure
4231 correct line-end convention is followed.
4232
4233 * w32menu.c [HAVE_BOXES]: Remove #undef.
4234 (single_keymap_panes): Remove code for simulating checkmarks.
4235 (single_menu_item): Remove notbuttons_ptr argument. Callers changed.
4236 Remove code for drawing simulated checkmarks.
4237 (w32_menu_show): make unibyte help string correctly.
4238 (add_menu_item): draw standard Windows checkmarks. Draw radio
4239 buttons as radio buttons if possible.
4240
72d19d75
GM
42412000-03-01 Gerd Moellmann <gerd@gnu.org>
4242
2df636f4
GM
4243 * sysdep.c (start_of_text): Don't define this function for NetBSD
4244 with ELF.
4245
427ec082 4246 * m/pmax.h (START_FILES, CANNOT_DUMP) [__NetBSD__ || __OpenBSD__]:
2df636f4
GM
4247 Don't define.
4248 (UNEXEC) [__NetBSD__ || __OpenBSD__]: Define to unexelf.o.
4249 (LINKER): Don't undef if __NetBSD__ is defined.
4250
4251 * m/mips.h (LINKER) [__NetBSD__ || __OpenBSD__]: Don't define.
4252
4253 * fileio.c [__NetBSD__]: Define `unix'.
4254
72d19d75
GM
4255 * xfns.c (start_busy_cursor): Allow floats for busy-cursor-delay.
4256
ed4d0512
GM
42572000-02-29 Gerd Moellmann <gerd@gnu.org>
4258
50b1039f
GM
4259 * atimer.c (start_atimer): Don't abort when timers are stopped.
4260 (append_atimer_lists): New function.
4261 (cancel_atimer, stop_other_atimers, run_all_atimers): Handle
4262 arbitrary lists of stopped and running atimers.
4263
ed4d0512
GM
4264 * atimer.c (cancel_atimer): Handle canceling an atimer when
4265 some timers are stopped.
4266
4267 * xfns.c (cancel_busy_cursor): Set busy_cursor_atimer to null
4268 after canceling it.
4269
4270 * fns.c (maybe_resize_hash_table): Handle case of new size
4271 coming out as being the same as old size.
4272
387023ee
JR
42732000-02-27 Jason Rumney <jasonr@gnu.org>
4274
4275 * makefile.nt: Add atimer.h to dependencies.
4276 * w32.c (init_environment): Set Vw32_num_mouse_buttons here.
4277 * w32console.c: Only disable window system features for dispextern.h
4278 (initialize_w32_display): Build a display info for the console.
4279 * w32faces.c (tty_defined_color): Apply xfaces.c change from 02-17.
4280 * w32fns.c (w32_wnd_proc) [WM_LBUTTON_DOWN, WM_RBUTTON_DOWN,
4281 WM_LBUTTON_UP, WM_RBUTTON_UP]: Do not treat 4 or more button mice
4282 as 2 button mice.
4283 * w32gui.h (struct W32FontStruct): Revert last change after change
4284 to xdisp.c.
4285 * w32menu.c (single_submenu): Set up help string.
4286 [!HAVE_MULTILINGUAL_MENU]: Don't overwrite item_name with descrip.
4287 (w32_dialog_show): Set up help string.
4288 * w32term.c (w32_display_info_for_display): Remove unused function.
4289 (w32_draw_bitmap): Use pre-built bitmaps.
4290 (w32_initialize_display_info): New function to initialize parts of
4291 display info that are common to both GUI and console frames.
4292 (w32_term_init): Use w32_initialize_display_info. Do not set
4293 Vw32_num_mouse_buttons here, as it is not called for console
4294 frames. Build bitmaps for indicating truncated lines etc.
4295 (x_delete_display): Destroy pre-built bitmaps.
4296 * xdisp.c (handle_single_display_prop): Use FONT_HEIGHT macro.
4297 (echo_area_display): Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM.
4298
4516715a
DL
42992000-02-27 Dave Love <fx@gnu.org>
4300
4301 * lisp.h: Add a bunch of prototypes.
4302
171ca836
KH
43032000-02-26 Kenichi Handa <handa@etl.go.jp>
4304
4305 * keyboard.c (read_char): Set `usec' correctly.
4306
4013921d
KH
43072000-02-25 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
4308
4309 * ccl.c (ccl_driver) [CCL_MapMultiple]: When the mapped value is
4310 `lambda', set reg[RRR] to the map index.
4311 (ccl_driver) [CCL_MapSingle]: When the mapped value is found, set
4312 reg[RRR] to 0. Otherwise, set it to -1.
4313
9244a058
GM
43142000-02-25 Gerd Moellmann <gerd@gnu.org>
4315
2df636f4 4316 * emacs.c (main): Remove code snippet commented out with `//'.
9244a058 4317
18e21ce8 43182000-02-25 Richard M. Stallman <rms@gnu.org>
427ec082 4319
f43d79c1
GM
4320 * fileio.c (Ffile_symlink_p): If result starts with a `/'
4321 and contains a `:', prepend `/:'.
4322
4323 * window.c (select_window_1): If selected_window is nil,
4324 don't "swap out" the buffer's point.
4325 (Fset_window_configuration): Set selected_window to nil
4326 before calling Fselect_window.
4327 (unshow_buffer): Don't set point in buffer from window's point
4328 if another more recently selected window also shows the buffer.
4329
bed0c171
GM
43302000-02-25 Gerd Moellmann <gerd@gnu.org>
4331
449c3c52
GM
4332 * keyboard.c (recursive_edit_1): Cancel busy-cursor.
4333
f5b58615
GM
4334 * xfns.c (inhibit_busy_cursor, busy_count): Removed.
4335 (Fx_show_busy_cursor, Fx_hide_busy_cursor): Removed.
4336 (busy_cursor_atimer, busy_cursor_shown_p, Vbusy_cursor_delay): New
4337 variables.
4338 (DEFAULT_BUSY_CURSOR_DELAY): New define.
4339 (start_busy_cursor, cancel_busy_cursor, show_busy_cursor)
4340 (hide_busy_cursor): New functions.
4341 (syms_of_xfns): DEFVAR_LISP Vbusy_cursor_delay.
4342
4343 * minibuf.c (read_minibuf): Cancel busy-cursor.
4344
4345 * keyboard.c (command_loop_1): Call start_busy_cursor before
4346 Fcommand_execute and cancel_busy_cursor after it.
4347 (timer_check): Remove busy-cursor code.
4348 (Fread_key_sequence, Fread_key_sequence_vector): Start/cancel busy
4349 cursor timer.
4350
4351 * process.c (wait_reading_process_input): Remove busy-cursor code.
4352
4353 * eval.c (Fsignal): Call cancel_busy_cursor instead of
4354 Fx_hide_busy_cursor.
4355
4356 * dispextern.h (Fx_show_busy_cursor, Fx_hide_busy_cursor):
4357 Remove prototyoes.
4358 (start_busy_cursor, cancel_busy_cursor): Add prototypes.
4359
4360 * lisp.h (Fx_hide_busy_cursor): Remove prototype.
4361
4362 * xterm.c (XTread_socket): Remove busy-cursor code.
4363
4eb8436f
GM
4364 * dispnew.c (flush_stdout) [GLYPH_DEBUG]: New function.
4365 (build_frame_matrix_from_leaf_window): Put code handling
4366 glyph row's not being a slice of a frame row in #if 0.
4367 (sync_window_with_frame_matrix_rows): New function.
4368 (frame_row_to_window): New function.
4369 (mirror_line_dance): Handle copies between windows.
4370
3cb65b0e
GM
4371 * lread.c (Fload): Use `xfree' instead of `free'.
4372 (init_obarray): Use `xmalloc' instead of `malloc'.
4373
bed0c171
GM
4374 * window.c (Fset_window_buffer): Set WINDOW to the window
4375 after decoding.
2add4349
GM
4376 (coordinates_in_window): Take frame's internal border width
4377 into account.
bed0c171 4378
42088c12
GM
43792000-02-24 Gerd Moellmann <gerd@gnu.org>
4380
4381 * xterm.c (x_display_and_set_cursor): Display cursor of
4382 non-selected windows depending on the setting of
4383 cursor_in_non_selected_windows.
4384
4385 * xdisp.c (cursor_in_non_selected_windows): New variable.
4386 (syms_of_xdisp): DEFVAR_BOOL it.
4387
d1e103b2
GM
43882000-02-23 Gerd Moellmann <gerd@gnu.org>
4389
723e779c
GM
4390 * data.c (Fstring_to_number): If number is greater than what
4391 fits into an integer, return a float.
4392
d1e103b2
GM
4393 * eval.c (specbind): Remove references to
4394 keyword_symbols_constant_flag.
4395
4396 * data.c (keyword_symbols_constant_flag): Removed.
4397 (Fmakunbound, set_internal, syms_of_data): Remove references to
4398 keyword_symbols_constant_flag.
4399
4400 * bytecode.c (Fbyte_code): Remove keyword_symbols_constant_flag.
4401
214f877f
KH
44022000-02-23 Kenichi Handa <handa@etl.go.jp>
4403
4404 * syntax.c (multibyte_syntax_as_symbol): New variable.
4405 (syms_of_syntax): Declare it as a Lisp variable.
4406 (SYNTAX_WITH_MULTIBYTE_CHECK): New macro.
4407 (scan_lists): If both sexpflag and multibyte_syntax_as_symbol are
4408 nonzero, treat all multibyte characters as symbol.
42088c12 4409 (init_syntax_once): Give syntax `word' to all multibyte
214f877f
KH
4410 characters.
4411
130adcb7
EZ
44122000-02-22 Eli Zaretskii <eliz@is.elta.co.il>
4413
3cb65b0e 4414 * frame.c (Fdelete_frame): Don't let echo_area_window remain on
d7d0dac0 4415 a deleted frame.
130adcb7 4416
17cbbf95
GM
44172000-02-21 Gerd Moellmann <gerd@gnu.org>
4418
4419 * frame.c (Fmouse_position): GCPRO retval instead of x and y.
4420
4421 * xfns.c (x_window_to_frame, x_any_window_to_frame)
4422 (x_non_menubar_window_to_frame): Check the busy-cursor window.
4423
beb0bc36
DL
44242000-02-21 Dave Love <fx@gnu.org>
4425
4426 * frame.c (Vmouse_position_function): New variable.
4427 (Fmouse_position): Use it.
4428 (syms_of_frame): Install it.
4429
4430 * charset.c (find_charset_in_str): Fix use of `c' instead of `c1'.
4431
1d92afcd
GM
44322000-02-20 Gerd Moellmann <gerd@gnu.org>
4433
4434 * fileio.c (Finsert_file_contents): Unbind the binding of
4435 standard-output done by temp_output_buffer_setup.
329eed9f
GM
4436
4437 * eval.c (funcall_lambda): Don't bind Qmocklisp_arguments unless
4438 Vmocklisp_arguments is nil. Inline Fcar and Fcdr.
4439 (specbind, unbind_to): Handle most common case of non-constant
4440 symbol with trivial value specially.
4441
4442 * bytecode.c (Fbyte_code) <Bvarset>: Inline most common case.
4443
18e21ce8 44442000-02-20 Richard M. Stallman <rms@gnu.org>
2d06696f
RS
4445
4446 * data.c (Fmake_variable_buffer_local): Doc fix.
4447 Init found_for_buffer to 0.
4448 (Fmake_variable_frame_local): If the variable has already
4449 been buffer-local, set the check_frame field.
4450
1d4311c3
EZ
44512000-02-20 Eli Zaretskii <eliz@is.elta.co.il>
4452
4453 * msdos.c (IT_write_glyphs): Allocate a larger screen_buf as data
4454 produced for CODING_MODE_LAST_BLOCK requires.
4455
2dc95ddd
DL
44562000-02-18 Dave Love <fx@gnu.org>
4457
4458 * keyboard.c (echo_keystrokes): Remove declaration.
4459 (Vecho_keystrokes) New variable.
4460 (read_char, record_menu_key, read_key_sequence): Use it to allow
4461 use of float value.
4462 (syms_of_keyboard): Change Vecho_keystrokes declaration.
4463
4464 * lread.c: Undef feature selection macros before defining.
4465
f0930f35
GM
44662000-02-18 Gerd Moellmann <gerd@gnu.org>
4467
4468 * data.c (let_shadows_buffer_binding_p): Ignore specbindings
4469 for symbols other than the symbol in question.
4470
e3d4de90
DL
44712000-02-17 Dave Love <fx@gnu.org>
4472
4473 * s/sol2.h (C_DEBUG_SWITCH): Define to allow optimization.
4474
0b378936
GM
44752000-02-17 Gerd Moellmann <gerd@gnu.org>
4476
d621caf7
GM
4477 * emacs.c (main): Use #if GC_MARK_STACK instead of #ifdef.
4478
0b378936
GM
4479 * alloc.c (enum mem_type): Compile unconditionally.
4480
3b451f74
EZ
44812000-02-17 Eli Zaretskii <eliz@is.elta.co.il>
4482
4483 * xfaces.c (tty_defined_color): Don't return faulire indication
4484 for unspecified-fg and unspecified-bg pseudo-colors.
4485
10689a01
GM
44862000-02-17 Gerd Moellmann <gerd@gnu.org>
4487
1216f5e4
GM
4488 * alloc.c (mark_object): Don't mark symbol names in pure space.
4489 (gc_sweep): Don't unmark symbol names in pure space.
4490
4491 * lisp.h (GC_USE_GCPROS_AS_BEFORE, GC_MAKE_GCPROS_NOOPS)
4492 (GC_MARK_STACK_CHECK_GCPROS, GC_USE_GCPROS_CHECK_ZOMBIES)
4493 [GC_MARK_STACK]: New defines.
427ec082 4494 (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5, UNGCPRO)
1216f5e4
GM
4495 [GC_MARK_STACK == GC_MAKE_GCPROS_NOOPS]: Define as no-ops.
4496
4497 * emacs.c (main) [GC_MARK_STACK]: Initialize stack_base.
4498
4499 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use
4500 allocate_buffer instead of xmalloc.
4501
4502 * alloc.c (toplevel): Include setjmp.h.
4503 (PURE_POINTER_P): New define.
4504 (enum mem_type) [GC_MARK_STACK]: New enumeration.
4505 (Vdead) [GC_MARK_STACK]: New variable.
4506 (lisp_malloc): Add parameter TYPE, call mem_insert if
4507 GC_MARK_STACK is defined.
4508 (allocate_buffer): New function.
427ec082 4509 (lisp_free) [GC_MARK_STACK]: Call mem_delete.
1216f5e4
GM
4510 (free_float) [GC_MARK_STACK]: Set type to Vdead.
4511 (free_cons) [GC_MARK_STACK]: Set car to Vdead.
4512 (stack_base, mem_root, mem_z) [GC_MARK_STACK]: New variables.
4513 (MEM_NIL) [GC_MARK_STACK]: New define.
4514 (struct mem_node) [GC_MARK_STACK]: New structure.
4515 (mem_init, mem_find, mem_insert, mem_delete, mem_insert_fixup)
4516 (mem_delete_fixup, mem_rotate_left, mem_rotate_right)
4517 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
4518 (live_misc_p, live_vector_p, live_buffer_p, mark_memory)
4519 (mark_stack) [GC_MARK_STACK]: New functions.
4520 (Fgarbage_collect) [GC_MARK_STACK]: Call mark_stack.
4521 (clear_marks): Removed.
4522 (gc_sweep): Set free conses' car, free floats' type, free
4523 symbols' function to Vdead. Use lisp_free to free buffers.
4524 (init_alloc_once): Initialize Vdead.
4525 (survives_gc_p): Return non-zero for pure objects.
4526
4527 * alloc.c: Add comments throughout the file.
4528
2503c8b1
GM
4529 * atimer.c (stop_other_atimers): Don't call cancel_atimer because
4530 that unblocks alarms.
4531
8389e1e2
GM
4532 * alloc.c, bytecode.c, data.c, dispnew.c, ecrt0.c, editfns.c,
4533 emacs.c, floatfns.c, fns.c, lread.c, print.c, config.in, lisp.h,
4534 Makefile.in: Remove `LISP_FLOAT_TYPE' and `standalone'.
4535
10689a01 4536 * frame.c (make_frame): Set frame initiallly to `garbaged'.
427ec082 4537
bfc17d18
KH
45382000-02-17 Kenichi Handa <handa@etl.go.jp>
4539
4a09dee0
KH
4540 * xdisp.c (decode_mode_spec_coding): Delete superfluous code to
4541 avoid infinite error signaling. Allocate sufficient memory for
4542 eol_str in the case that eoltype is Lisp_Int.
bfc17d18 4543
2b927d02
SM
45442000-02-17 Stefan Monnier <monnier@cs.yale.edu>
4545
4546 * syntax.c (Fforward_comment): Undo the previous change, since cc-mode
4547 depends on the previous behavior.
4548
b49cb764
GM
45492000-02-16 Gerd Moellmann <gerd@gnu.org>
4550
4551 * sysdep.c (vfork) [!HAVE_VFORK]: Removed.
4552
99e95407
GM
45532000-02-15 Gerd Moellmann <gerd@gnu.org>
4554
4555 * s/freebsd.h (BROKEN_PTY_READ_AFTER_EAGAIN): Define.
4556
4557 * process.c (send_process) [BROKEN_PTY_READ_AFTER_EAGAIN]:
b49cb764 4558 Workaround for FreeBSD bug. Clear output queue after EAGAIN in
99e95407
GM
4559 write(2).
4560
6ffd3cf7
RS
45612000-02-15 Richard M. Stallman <rms@gnu.org>
4562
4563 * data.c (set_internal): Don't make variable buffer-local
4564 if within a let-binding for the same buffer.
4565 (let_shadows_buffer_binding_p): New function.
4566
4567 * eval.c (specbind): For buffer-local value,
4568 record the current buffer also.
4569 (unbind_to): Cope with that change.
4570
cad53475
GM
45712000-02-15 Gerd Moellmann <gerd@gnu.org>
4572
4573 * window.c (Fsave_window_excursion): Doc fix.
4574
1aa963c8
SM
45752000-02-15 Stefan Monnier <monnier@cs.yale.edu>
4576
4577 * syntax.c (back_comment): Make sure we only consider comment-starters
4578 of the relevant style and return -1 in case of a failure to find the
4579 beginning of the comment.
4580 (Fforward_comment): If back_comment fails, go back to the position just
4581 after the comment-end.
4582 (scan_lists): Add comment describing a very minor bug.
4583
b9b84fd3
SM
45842000-02-14 Stefan Monnier <monnier@cs.yale.edu>
4585
4586 * minibuf.c (Ftry_completion, Fall_completions): Add a reference to
4587 `completion-regexp-list' in the docstring.
4588
3a28db80
DL
45892000-02-14 Dave Love <fx@gnu.org>
4590
4591 * xfaces.c (tty_defined_color): Declare color_idx unsigned long.
4592
fb4a568d
SM
45932000-02-14 Stefan Monnier <monnier@cs.yale.edu>
4594
4595 * regex.h (RE_SYNTAX_EMACS): Add RE_CHAR_CLASSES and RE_INTERVALS
4596 to Emacs' syntax. Also fix the comment about set/not-set meanings
4597 since Emacs syntax is not the value 0 any more.
4598 * search.c (compile_pattern_1): Remove RE_CHAR_CLASSES from the syntax
4599 since it's now part of RE_SYNTAX_EMACS.
4600
1063ebb5
DL
46012000-02-12 Dave Love <fx@gnu.org>
4602
4603 * frame.h (SELECTED_FRAME): Use NULL, not 0 to avoid warnings on
4604 Alpha.
4605
fb07a302
GM
46062000-02-12 Gerd Moellmann <gerd@gnu.org>
4607
4608 * xdisp.c (syms_of_xdisp): Doc fix for scroll-conservatively.
4609
aaf2320c
DL
46102000-02-12 Dave Love <fx@gnu.org>
4611
4612 * s/aix3-2.h, s/osf-1.h: Define C_DEBUG_SWITCH for non-gcc.
4613
4614 * s/ux4800.h, s/umips.h, s/umax.h, s/sol2.h, s/sco5.h, s/rtu.h:
fb07a302
GM
4615 * s/ptx4.h, s/umax.h, s/dgux.h, s/bsd4-2.h, s/bsd4-3.h:
4616 * s/hpux.h: Don't define HAVE_VFORK.
aaf2320c
DL
4617
4618 * s/gnu-linux.h: Don't define HAVE_VFORK or HAVE_SYS_SIGLIST.
4619
4620 * s/nextstep.h: Don't define HAVE_ALLOCA.
4621
4622 * config.in: Add vfork bits.
4623
eedf8bde
GM
46242000-02-12 Gerd Moellmann <gerd@gnu.org>
4625
4626 * process.c (Fopen_network_stream) [POLL_FOR_INPUT]: Register
4627 unwind function to undo the effect of stopping atimers.
4628
4629 * keyboard.c (bind_polling_period): Stop all timers except
4630 poll_timer.
4631
4632 * atimer.c (stopped_atimers): New variable.
4633 (stop_other_atimers, run_all_atimers, unwind_stop_other_atimers):
4634 New functions.
4635
4636 * atimer.h (stop_other_atimers, run_all_atimers)
4637 (unwind_stop_other_atimers): Add function prototypes.
427ec082 4638
eedf8bde
GM
4639 * s/hpux10.h (HAVE_XRMSETDATABASE): Define if not already defined.
4640
8476c2f8
KR
46412000-02-11 Ken Raeburn <raeburn@gnu.org>
4642
4643 * Makefile.in (LIBX): Link in tiff library before jpeg, since tiff
4644 library may depend on jpeg.
4645 (atimer.o): Depends on atimer.c.
4646
0e85e4a3
KH
46472000-02-11 Kenichi Handa <handa@etl.go.jp>
4648
4649 * insdel.c (del_range_1): Call update_compositions.
4650 (del_range_both): Call update_compositions just once..
4651
97fa0cc8
DL
46522000-02-10 Dave Love <fx@gnu.org>
4653
4654 * xfns.c (create_frame_xic): Fix initialization of automatic
4655 aggregates for pcc.
4656
25566a3c
KH
46572000-02-09 Kenichi Handa <handa@etl.go.jp>
4658
4659 * ccl.c (CCL_MAKE_CHAR): New macro.
4660 (ccl_driver) <CCL_TranslateCharacter>: Check the validity of
4661 registers by CCL_MAKE_CHAR before calling translate_char.
4662 <CCL_TranslateCharacterConstTbl> Likewise.
4663
69da54ba
DL
46642000-02-08 Dave Love <fx@gnu.org>
4665
4666 * lread.c (__EXTENSIONS__): Define.
4667
f7136ee8
GM
46682000-02-08 Gerd Moellmann <gerd@gnu.org>
4669
4670 * puresize.h (BASE_PURESIZE): Increase to 650000.
4671
7768790b
EZ
46722000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
4673
4674 * msdos.c (XMenuActivate): Turn off the cursor after displaying
4675 the help message.
4676
38fd211b
EZ
46772000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
4678
4679 * s/msdos.h (INTERNAL_TERMINAL): Add capabilities se, so, us, ue,
4680 md, mh, mb, mr, and me to the fake termcap entry.
4681
66e4690f
KR
46822000-02-06 Ken Raeburn <raeburn@gnu.org>
4683
4684 * sound.c (sound_cleanup): Don't call device close routine if the
4685 function pointer is null.
4686
a75dfea0
AI
46872000-02-06 Andrew Innes <andrewi@gnu.org>
4688
4689 * dispextern.h: Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM,
4690 around image definitions and prototypes.
4691 (gamma_correct) [WINDOWSNT]: New prototype.
4692
4693 * w32term.c (x_make_frame_visible): Replace call to
4694 input_poll_signal with poll_for_input.
4695
4696 * window.c [WINDOWSNT]: Include w32term.h.
4697
4698 * xdisp.c [WINDOWSNT]: Include w32term.h.
4699
4700 * makefile.nt: Add dependencies on w32gui.h.
4701 (OBJ1): Include atimer.obj.
4702 ($(BLD)\atimer.obj): New dependency rule.
4703
4704 * w32.c (sigmask): New function (does nothing).
4705 (sigunblock): Ditto.
4706
4707 * frame.c [WINDOWSNT]: Include w32term.h.
4708
4709 * w32gui.h (struct W32FontStruct): Add ascent and descent slots.
4710
4711 * lread.c (syms_of_lread): Fix literal newlines.
4712
4713 * emacs.c (USAGE): Split into USAGE1 and USAGE2, to work-around
4714 the string constant limit (2048 bytes) in MSVC.
4715 (main): Ditto.
4716
59ddecde
GM
47172000-02-05 INOUE Seiichiro <inoue@ainet.or.jp>
4718
4719 * xterm.c (x_display_and_set_cursor) [HAVE_X_I18N]: Set pre-edit
4720 area.
4721 (x_display_cursor) [HAVE_X_I18N]: Don't set it here.
4722 (XTread_socket) [HAVE_X_I18N]: <KeyPress, KeyRelease>: Don't
4723 dispatch the event.
4724
07590973
DL
47252000-02-04 Dave Love <fx@gnu.org>
4726
4727 * fileio.c: Remove some unused vars.
4728 (_GNU_SOURCE): Define (for euidaccess).
4729
4730 * lread.c (_XOPEN_SOURCE): Declare (for ftello).
4731
4732 * minibuf.c (read_minibuf_noninteractive): Remove undeclared
4733 gcpro1, gcpro2.
4734 (read_minibuf): Deal with allow_props correctly.
4735
649351f9
EZ
47362000-02-03 Eli Zaretskii <eliz@is.elta.co.il>
4737
4738 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Enlarge to 60000.
4739
66e4690f 47402000-02-03 Ken Raeburn <raeburn@gnu.org>
f1b9c7c1
KR
4741
4742 * search.c (compile_pattern): If a cache entry has a nil regexp,
4743 fill in that entry instead of clobbering a previously cached
4744 string regexp.
4745
66e4690f 47462000-02-02 Ken Raeburn <raeburn@gnu.org>
15c9cf81
KR
4747
4748 * puresize.h (BASE_PURESIZE): Increase to 610000.
4749
d240a249
GM
47502000-02-02 Gerd Moellmann <gerd@gnu.org>
4751
4752 * frame.c (Fframe_parameters): Add GCPRO because tty_color_name
4753 can GC.
4754
ca91fb26
KH
47552000-02-02 Kenichi Handa <handa@etl.go.jp>
4756
25660570
KH
4757 * ccl.c (ccl_driver) <CCL_WriteExprRegister>: Set jump_address
4758 instead of incrementing ic directly.
4759 <CCL_WriteExprConst> Likewise.
4760 <ccl_set_expr>: Set ic to jump_address.
4761
ca91fb26
KH
4762 * fileio.c (e_write): Fix the handling of
4763 CODING_FINISH_INSUFFICIENT_SRC.
4764
2ede9689
DL
47652000-02-01 Dave Love <fx@gnu.org>
4766
4767 * editfns.c (Fpropertize): Doc fix.
4768
4769 * process.c (Fstart_process): Doc fix.
4770
4771 * eval.c: Fix various doc strings not to duplicate information
4772 from help-manyarg-func-alist.
4773
4774 * window.c (Fset_window_margins): Don't make interactive. Doc
4775 fix.
4776
4777 * doc.c (Vhelp_manyarg_func_alist): New variable.
4778 (Fdocumentation): Use it.
4779 (syms_of_doc): Define it.
4780
b6680a0e
GM
47812000-01-31 Gerd Moellmann <gerd@gnu.org>
4782
2cb750ba
GM
4783 * xterm.c (xim_open_dpy): Remove unused local variable.
4784
74e9213b
GM
4785 * emacs.c (USAGE): Use term `display options' instead of `X
4786 options'.
4787
4788 * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: New function.
4789 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
4790
b6680a0e
GM
4791 * fns.c (sweep_weak_table): New function.
4792 (sweep_weak_hash_tables): Use it. Keep on marking until there
4793 is no more change.
4794
994c5afe
GM
47952000-01-30 Gerd Moellmann <gerd@gnu.org>
4796
4797 * xterm.c (x_delete_display): Update next_noop_dpyinfo to ensure
4798 that XTread_socket does not crash by trying to call XNoOp on a
4799 closed display.
427ec082 4800
f00276e3
JR
48012000-01-30 Jason Rumney <jasonr@gnu.org>
4802
4803 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
4804 Change selected_frame to SELECTED_FRAME ().
4805 (w32_console_mouse_position): Remove #ifndef MULE from around
4806 `insist' parameter.
4807
4808 * makefile.nt: Remove dosfns.obj.
4809
4810 * term.c (term_init) [WINDOWSNT]: Initialize TN_max_colors.
4811
4812 * w32fns.c (w32_defined_color): Check for valid frame before
4813 applying gamma correction. Eliminate dependency on frame elsewhere.
4814 (w32_load_system_font): Switch FIXED_PITCH and VARIABLE_PITCH.
4815 (w32_to_x_font): Use resx and resy not height_in and width_in.
4816 (x_to_w32_font): Doc fix.
4817 (xlfd_strip_height): New function to strip and return font height.
4818 (w32_font_match): Compare height separately from rest of xlfd
4819 spec, using xlfd_strip_height.
4820
4821 * w32term.c (w32_term_init): Swap resx and height_in, resy and
4822 width_in. Use w32_defined_color in place of defined_color.
4823
4824 * w32faces.c: Merge more of DOS and X specifics in preparation for
4825 merge with xfaces.c.
4826 (defined_color): Remove FIXME comment.
4827 (tty_color_name): Provide w32-specific function.
4828 (realize_tty_face): Handle FACE_TTY_DEFAULT*_COLOR specially.
4829
4830 * w32console.c (turn_on_face, turn_off_face): Removed.
4831 (w32_face_attributes): New function.
4832 (Global_variables): Reduce scope where possible.
4833 (clear_frame, ins_del_lines, scroll_line): Use char_attr_normal as
4834 fill attribute.
4835 (hl_mode): Don't modify text attributes.
4836 (write_glyphs): Don't do anything if len <= 0. Use
4837 w32_face_attributes to get attributes for drawing. Write
4838 terminating codes using char_attr_normal.
4839 (reset_terminal_modes, set_terminal_modes): Turn off highlight.
4840 (update_begin, update_end): Likewise.
4841 (vga_stdcolor_name): New function.
4842 (initialize_w32_display): Remove char_attr_reverse and char_attr.
4843 (Fset_screen_color): Remove char_attr_reverse.
4844
b08e8bb2
GM
48452000-01-29 Gerd Moellmann <gerd@gnu.org>
4846
4847 * xfns.c (xic_set_preeditarea): Take window parameter and
4848 window-relative pixel-positions.
4849
4850 * xterm.c (x_display_cursor): Set XIC pre-edit area only if window
4851 is its frame's selected window.
4852 (xim_instantiate_callback): Likewise.
4853
4854 * xfns.c (x_create_im): Removed.
4855 (DEFAULT_STYLE, DEFAULT_FONT): Removed.
4856 (supported_xim_styles): Renamed from supported_styles.
4857 (best_xim_style): Renamed from best_style.
4858 (create_frame_xic): Renamed from xic_create_frame.
4859 (free_frame_xic): Renamed from xic_destroy_frame.
427ec082 4860
b08e8bb2
GM
48612000-01-29 INOUE Seiichiro <inoue@ainet.or.jp>
4862
4863 * xterm.c (XTread_socket) [HAVE_X_I18N]: If event is for none of
4864 our frames, call XFilterEvent with 2nd parameter `None'.
4865 (XTread_socket) <KeyPress> [HAVE_X_I18N]: Handle XmbLookupString
4866 returning XBufferOverflow.
4867 (XTread_socket) <ConfigureNotify> [HAVE_X_I18N]: Set XIC status
4868 area.
4869 (x_display_cursor) [HAVE_X_I18N]: Set XIC pre-edit area.
4870 (x_new_fontset) [HAVE_X_I18N]: Create XIC status area fontset.
4871 (xim_destroy_callback, xim_open_dpy, xim_instantiate_callback)
4872 (xim_initialize, xim_close)
4873 [HAVE_X_I18N && HAVE_X11R6]: New functions.
4874 (x_destroy_window) [HAVE_X_I18N]: Call xic_destroy_frame.
4875 (x_term_init) [HAVE_X_I18N]: Call xim_initialize.
4876 (x_delete_display) [HAVE_X_I18N]: Call xim_close.
4877
4878 * xterm.h (struct x_display_info) [HAVE_X_I18N]: Add members `xim'
4879 and `xim_styles'.
4880 (struct x_output) [HAVE_X_I18N]: Remove member `xim', add
4881 `xic_style' and `xic_xfs'.
4882 (FRAME_MENUBAR_HEIGHT, FRAME_X_XIM, FRAME_X_XIM_STYLES)
4883 (FRAME_XIC_STYLE, FRAME_XIC_FONTSET): New macros.
4884 (FRAME_XIM): Removed.
4885
4886 * xfns.c (supported_styles): New variable.
4887 (DEFAULT_STYLE, DEFAULT_FONT): New macros
4888 (xic_create_xfontset, best_style, xic_create_frame)
4889 (xic_destroy_frame, xic_set_preeditarea, xic_set_statusarea)
4890 (xic_set_xfontset): New functions.
4891
142e109c
DL
48922000-01-28 Dave Love <fx@gnu.org>
4893
4894 * s/irix6-5.h: Revert last change after change to irix5-0.h.
4895
4896 * m/iris4d.h (C_SWITCH_MACHINE): Don't use -G0.
4897
b02786f9
GM
48982000-01-28 Gerd Moellmann <gerd@gnu.org>
4899
d060bc9f
GM
4900 * buffer.c (Fother_buffer): Don't call Fset_buffer_major_mode
4901 for *scratch* if it already existed.
4902
b02786f9
GM
4903 * emacs.c (USAGE): New macro.
4904 (main): Use it to display usage information.
4905
2c52d7e4
EZ
49062000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
4907
4908 Support for the menu-help feature:
4909
4910 * msdos.h: Change prototypes of XMenuAddSelection and
4911 XMenuActivate.
4912
4913 * msdos.c (IT_clear_end_of_line): Print the extent of the cleared
4914 part of the line to the termscript file.
4915 (IT_clear_to_end): Clear the entire line, not just its beginning.
4916 (menu_help_message, prev_menu_help_message): New variables.
4917 (IT_menu_make_room): Make room for the help_text member.
4918 (IT_menu_display): New argument disp_help; all callers changed.
4919 If disp_help is non-zero, store the help text of the active menu
4920 item in menu_help_message.
4921 (XMenuAddPane): Initialize the help_text member to NULL.
4922 (XMenuAddSelection): New argument help_text. Store it in the
4923 XMenu structure.
4924 (XMenuActivate): New argument help_callback. If the value of
4925 menu_help_message has changed since the last time, display the
4926 menu help message text while waiting for the mouse to move. Clear
4927 the echo area before exiting.
4928 (XMenuDestroy): Free the help_text member.
4929
ffe0bcd1
GM
49302000-01-27 Gerd Moellmann <gerd@gnu.org>
4931
4932 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT]: Pass help to
4933 XMenuAddSelection. Pass help callback to XMenuActivate.
4934 (menu_help_callback) [!USE_X_TOOLKIT]: New function.
4935
50dbd23f
EZ
49362000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
4937
4938 * atimer.c (start_atimer) [!HAVE_SETITIMER]: Use EMACS_SET_SECS
4939 and EMACS_SET_USECS.
4940
f5941bf8
GM
49412000-01-26 Dave Love <fx@gnu.org>
4942
6c67ddee
DL
4943 * editfns.c (Fchar_after, Fchar_before): Doc fix.
4944
f5941bf8
GM
4945 * bytecode.c (Fbyte_code): Use {BEFORE,AFTER}_POTENTIAL_GC where
4946 an error may be signalled.
4947
9e49c990
GM
49482000-01-26 Gerd Moellmann <gerd@gnu.org>
4949
fc3cb460
GM
4950 * s/irix6-5.h [__GNUC__ && __GNUC_MINOR__ >= 95]: Undef
4951 LD_SWITCH_SYSTEM inherited from irix5-0.h.
4952
9e49c990
GM
4953 * bytecode.c (Fbyte_code) [BYTE_CODE_SAFE]: Fix typo.
4954
d0c037d8
GM
49552000-01-25 Gerd Moellmann <gerd@gnu.org>
4956
4957 * charset.c (Fstring): If there is a multibyte char among
4958 the args, always return a multibyte string.
4959
e12489f9
GM
49602000-01-25 Gerd Moellmann <gerd@gnu.org>
4961
4962 * sysdep.c (sys_select): Turn atimers off and on instead of
4963 recording and restoring old alarm handler
4964
4965 * process.c (toplevel): Include atimer.h.
4966 (create_process_1): Rewritten.
4967 (create_process): Use atimers instead of alarm.
4968 (wait_reading_process_input) [hpux]: Turn atimers off instead
4969 of turning off SIGALRM.
4970 (wait_reading_process_input): Turn off atimers instead off
4971 calling stop_polling.
4972
4973 * emacs.c (main): Call init_atimer.
4974
4975 * keyboard.c (toplevel): Include systime.h and atimer.h.
4976 (polling_for_input): Removed because unused.
4977 (input_poll_signal) [POLL_FOR_INPUT]: Removed.
4978 (poll_timer): New variable.
4979 (poll_for_input, poll_for_input_1): New functions.
4980 (start_polling, stop_polling): Rewritten.
4981
4982 * keyboard.h (polling_for_input): Removed.
427ec082 4983
e12489f9
GM
4984 * atimer.h, atimer.c: New files.
4985
4986 * Makefile.in (obj): Add atimer.o.
4987 (atimer.o): New target.
4988
4989 * blockinput.h (pending_atimers): Add extern declaration.
4990 (UNBLOCK_INPUT): Rewritten. Handle pending atimers.
4991
4992 * lisp.h (popup_activated_flag): Add extern declaration.
4993
4994 * xmenu.c (popup_activated_flag): Make externally visible.
4995 (popup_activate_callback) [USE_MOTIF]: Increment
4996 popup_activated_flag.
4997 (popup_deactivate_callback) [USE_MOTIF]: Decrement it.
4998
4999 * xterm.c (toplevel): Include atimer.h.
5000 (toolkit_scroll_bar_interaction): New variable.
5001 (Fxt_process_timeouts): Removed.
5002 (x_process_timeouts): New function.
5003 (xt_action_hook): Clear toolkit_scroll_bar_interaction.
5004 (x_send_scroll_bar_event): Set toolkit_scroll_bar_interaction.
5005 (x_make_frame_visible): Call poll_for_input_1 instead of
5006 input_poll_signal. Don't call alarm.
5007 (x_initialize): Install timer calling x_process_timeouts.
427ec082 5008
1e5279b9
DL
50092000-01-24 Dave Love <fx@gnu.org>
5010
6c67ddee 5011 * s/irix5-0.h: Don't set LD_SWITCH_SYSTEM -- we use unexelf now.
1e5279b9
DL
5012 Don't use -cckr -- apparently not now necessary.
5013
edf6aeb8
EZ
50142000-01-24 Eli Zaretskii <eliz@is.elta.co.il>
5015
5016 * msdos.c (IT_menu_display): Truncate long menu lines at the right
5017 screen boundary.
5018
9badad41
JR
50192000-01-23 Jason Rumney <jasonr@gnu.org>
5020
5021 * w32fns.c (w32_defined_color): Apply gamma correction before
5022 trying to map to the palette.
5023 (w32_wnd_proc) [WM_ERASE_BACKGROUND]: Pass device context of frame
5024 to w32_clear_rect.
5025
5026 * w32term.c (w32_fill_rect): Do not try to deal with NULL hdc
5027 here. Callers changed to always pass real device context.
5028 (w32_draw_bitmap): Likewise.
5029 (w32_get_glyph_overhangs): Likewise.
5030 (w32_draw_box_rect): Make use of s->hdc rather than getting a new
5031 one.
5032 (w32_set_vertical_scroll_bar): Pass correct HWND parameters to
5033 pfnSetScrollInfo and SetScrollRange.
5034 (x_get_char_face_and_encoding): Don't turn iso8859-1 characters
5035 back into MULE characters after decoding them.
5036 (x_get_glyph_face_and_encoding): Likewise.
5037 (w32_per_char_metric): Use GetCharExtentPoint32W as fallback when
5038 GetCharABCWidthsW fails, since this is defined on Windows 9x.
5039 (x_produce_glyphs): Calculate per char metrics for a character
5040 that we know exists in default font when font_not_found_p is true.
5041
63bd786b
JR
50422000-01-22 Jason Rumney <jasonr@gnu.org>
5043
5044 * makefile.nt (intervals.obj, composite.obj): New modules.
5045 (composite.h): Added as dependency where appropriate.
5046
5047 * w32gui.h (XGCValue): New struct for emulating X GCs.
5048
5049 * w32term.h (XCharStruct): New struct for emulating X.
5050
5051 * w32console.c (turn_on_face, turn_off_face): New functions.
5052 (change_line_highlight): New prototype for new redisplay.
5053 (write_glyphs): Support multibyte text. Support faces.
5054
5055 * w32faces.c: Complete rewrite for new redisplay based on new
5056 xfaces.c.
5057
5058 * w32fns.c: Use SELECTED_FRAME macro in place of selected_frame
5059 throughout. struct frame * in place of FRAME_PTR.
5060 Skeleton support for images, toolbars, tooltips from xfns.c.
5061 (Fx_create_frame): Use system default for default scroll bar
5062 width.
5063 (w32_get_arg): Renamed from x_get_arg.
5064 (Fx_file_dialog): New function.
5065 (w32_list_fonts): Check cache before asking system.
5066 (Vw32_enable_synthesized_fonts): New variable.
5067 (Vw32_enable_italics): Obsolete, removed.
5068
5069 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
5070 Use SELECTED_FRAME macro.
5071
5072 * w32menu.c: Add skeleton support for help strings on menus.
5073 (add_menu_item): Native checkbox and radio support added, but not
5074 yet enabled due to bugs.
5075 (push_menu_item): Add parameters type, selection and help.
5076 Callers updated.
5077 Formatting changes to reduce unnecessary diffs with xmenu.c.
5078
5079 * w32select.c (Fw32_set_clipboard_data): Update call to
5080 find_charset_in_str.
5081
5082 * w32term.c: Complete rewrite for new redisplay based on new
5083 xterm.c with necessary sections merged back in from old w32term.c.
5084
6ffd3cf7 50852000-01-21 Richard M. Stallman <rms@gnu.org>
b50c9214
RS
5086
5087 * data.c (set_internal): Further fix in same criterion.
5088
6ffd3cf7 50892000-01-20 Richard M. Stallman <rms@gnu.org>
8cc95642
RS
5090
5091 * data.c (set_internal): Fix the criteria for whether
5092 to swap out the old cached binding.
5093
60af03f1
DL
50942000-01-19 Dave Love <fx@gnu.org>
5095
5096 * lread.c: (syms_of_lread) [user-init-file]: Doc change.
5097
f9be074f
KH
50982000-01-18 Kenichi Handa <handa@etl.go.jp>
5099
5100 * regex.c (re_compile_fastmap): While checking a range table for
5101 `charset', skip flag bits for a character class correctly.
5102
52b8dbf9
GM
51032000-01-17 Gerd Moellmann <gerd@gnu.org>
5104
d36100c9
GM
5105 * m/news-risc.h (LD_SWITCH_MACHINE): Define differently for GCC.
5106
52b8dbf9
GM
5107 * xfns.c (x_window): Call lw_create_widget with new parameter
5108 list.
5109
5110 * widget.c (EmacsFrameSetCharSize): Change size of children first
5111 because of problems with main window geometry management under
5112 Lesstif.
5113
5114 * xmenu.c (enum menu_item_idx): New enumeration replacing defines
5115 MENU_ITEMS_ITEM_.*.
5116 (MENU_ITEMS_ITEM_HELP): New enumerator.
5117 (push_menu_item): Add parameter HELP. Record help in menu_items.
5118 (single_menu_item, single_submenu, list_of_items): Call
5119 push_menu_item with new parameter.
5120 (single_submenu): Set help string in widget value.
5121 (menu_highlight_callback): New function.
5122 (set_frame_menubar): Call lw_create_widget with new
5123 parameter list.
5124 (xmenu_show, xdialog_show): Ditto.
5125
3139018f
GM
51262000-01-13 Gerd Moellmann <gerd@gnu.org>
5127
5128 * sound.c (Fplay_sound): Improve doc string.
5129
83c8f461
RS
51302000-01-11 Richard M. Stallman <rms@gnu.org>
5131
5132 * lisp.h (set_internal): Enter the new arg.
5133
5134 * eval.c (specbind): Record buffer-local variables specially,
5135 indicating which buffer's binding was saved.
5136 (unbind_to): Restore buffer-local variables specially
5137 in the proper buffer.
5138
5139 * data.c (set_internal): New arg BUF.
427ec082 5140
83c8f461
RS
5141 * eval.c (specbind, unbind_to): Pass new arg to set_internal.
5142 * data.c (Fset): Pass new arg to set_internal.
5143 * bytecode.c (Fbyte_code): Pass new arg to set_internal.
427ec082 5144
1fab1775
GM
51452000-01-11 Gerd Moellmann <gerd@gnu.org>
5146
5147 * .gdbinit: Adapt to new strings. Add xbacktrace, xreload,
5148 xprintsym.
5149
83c8f461 51502000-01-11 Richard M. Stallman <rms@gnu.org>
6f59462e
RS
5151
5152 * minibuf.c (Ftry_completion): Doc fix.
5153
7a85e4df
GM
51542000-01-11 Gerd Moellmann <gerd@gnu.org>
5155
5156 * keyboard.c (Fclear_this_command_keys): Clear recent_keys
5157 vector, too.
5158
a970dae4
AS
51592000-01-11 Andreas Schwab <schwab@suse.de>
5160
5161 * coding.c (code_convert_region): Initialize total_skip.
5162
c65d14ee
DL
51632000-01-08 Dave Love <fx@gnu.org>
5164
5165 * eval.c (Fuser_variable_p): Check customizability too.
5166
834938d2
GM
51672000-01-07 Gerd Moellmann <gerd@gnu.org>
5168
5169 * minibuf.c (Fcompleting_read): Doc fix.
5170
e0303cd6
GM
51712000-01-05 Gerd Moellmann <gerd@gnu.org>
5172
8a26744b
GM
5173 * s/freebsd.h (C_SWITCH_SYSTEM): Add -I /usr/local/include and
5174 -L /usr/local/lib.
5175
e0303cd6
GM
5176 * xfns.c (x_create_im): New function to set IM and IC of a frame.
5177 Check that input style is supported before trying to create an
5178 IC for it.
5179 (x_window): Call x_create_im.
427ec082 5180
2e471eb5
GM
51812000-01-04 Gerd Moellmann <gerd@gnu.org>
5182
560a7bd2
GM
5183 * xfns.c (current_gif_memory_src): New variable.
5184 (gif_load): Record the address of the current memory source
5185 in current_gif_memory_src.
5186 (gif_read_from_memory): Use current_gif_memory_src.
5187
f9ee84a3
GM
5188 * systime.h (EMACS_GET_TIME, EMACS_ADD_TIME, EMACS_SUB_TIME): Give
5189 macros statement form.
5190
d1299cde
GM
5191 * sound.c (struct sound): Renamed from struct sound_file.
5192 (struct sound): Add members `data' and `header_size'.
5193 (enum sound_attr): Add SOUND_DATA.
5194 (current_sound, current_sound_device): Variables renamed from
5195 sound_file and sound_device.
5196 (parse_sound): Parse :data.
5197 (parse_sound): Handle sound data in strings.
5198 (find_sound_type): Function renamed from find_sound_file_type.
427ec082 5199 (wav_init, au_init): Fail if sound's header_size is smaller than
d1299cde
GM
5200 needed header size.
5201 (wav_play, au_play): Play sounds from string data.
5202
2e471eb5
GM
5203 * puresize.h (BASE_PURE_SIZE): Increase to 600000.
5204
5205 * lisp.h: Add prototype for allocate_string_data.
5206
5207 * alloc.c (Fgarbage_collect): Return number of live and free
5208 strings.
5209
5210 * alloc.c (mark_buffer): Remove code in #if 0.
5211 (gc_sweep): Ditto.
5212 (UNMARK_BALANCE_INTERVALS): Give the macro statement form.
5213 (strings_consed): New variable.
5214 (allocate_string): Set it.
5215 (syms_of_alloc): Add DEFVAR_INT for strings_consed.
5216 (Fmemory_use_counts): Return strings_consed. Use Flist.
5217
5218 * alloc.c: General cleanup in comments etc. Remove conditional
5219 compilation for `standalone'.
5220
5221 * lisp.h (struct Lisp_String): Make DATA member `unsigned char *'.
5222
5223 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P):
5224 (GC_STRING_BYTES, GC_STRING_CHARS): New macros.
5225 (DONT_COPY_FLAG): Removed.
5226 (SBLOCK_SIZE, LARGE_STRING_BYTES): New macros.
5227 (struct sdata, struct sblock): New
5228 (struct string_block): Rewritten.
5229 (STRINGS_IN_STRING_BLOCK): New macro.
5230 (oldest_sblock, current_sblock, total_strings, total_free_strings)
5231 (large_sblocks, string_blocks, string_free_list): New variables.
5232 (NEXT_FREE_LISP_STRING, SDATA_OF_STRING, SDATA_SIZE): New macros.
5233 (init_strings): Rewritten.
5234 (allocate_string, allocate_string_data, compact_small_strings)
5235 (free_large_strings, sweep_strings): New functions.
5236 (STRING_BLOCK_SIZE, STRING_BLOCK_OUTSIZE)
5237 (struct string_block_head, current_string_block)
5238 (first_string_block, large_string_blocks, STRING_FULLSIZE)
5239 (STRING_PAD): Removed.
5240 (make_uninit_multibyte_string, make_pure_string): Rewritten.
5241 (Fgarbage_collect): Don't set mark bit in large strings.
5242 (mark_object): Mark strings differently. Mark symbol names
5243 differently.
5244 (survives_gc_p): Test marked strings differently.
427ec082 5245 (gc_sweep): Sweep strings differently, unmark strings in
2e471eb5
GM
5246 symbol names.
5247 (compact_strings): Removed.
5248
42608ba8
EZ
52492000-01-04 Eli Zaretskii <eliz@is.elta.co.il>
5250
5251 * xfaces.c (syms_of_xfaces): defsubr Scolor_gray_p and
5252 Scolor_supported_p even if HAVE_X_WINDOWS is not defined.
5253
e0a09e1a
KH
52542000-01-04 Kenichi Handa <handa@etl.go.jp>
5255
dd9f0750 5256 * fileio.c (Finsert_file_contents): Signal error if visiting file
427ec082 5257 in a non-empty buffer.
dd9f0750 5258
3c0f3b15 5259 * term.c (encode_terminal_code): Fix the previous change.
e0a09e1a 5260
44cd3ae5
GM
52612000-01-03 Gerd Moellmann <gerd@gnu.org>
5262
5263 * xfaces.c (syms_of_xfaces): Change Sface_color_gray_p to
5264 Scolor_gray_p, Sface_color_supported_p to Scolor_supported_p.
5265
5266 * s/hpux9.h (NO_EDITRES): Define even if HAVE_LIBXMU.
5267
c182a70f
EZ
52682000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
5269
5270 * xdisp.c (handle_single_display_prop) [HAVE_WINDOW_SYSTEM]: No
5271 need to test for MSDOS frames.
5272
24480d5b
EZ
52732000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
5274
5275 * dosfns.c (unspecified_colors): Remove.
5276 (msdos_stdcolor_idx): Use global variables unspecified_fg and
5277 unspecified_bg.
5278 (msdos_stdcolor_name): Return strings for unspecified fore- and
5279 back-ground colors.
5280
5281 * xfaces.c (Qunspecified_fg, Qunspecified_bg): Remove.
aaf2320c 5282 (syms_of_xfaces): Remove their staticpro's.
24480d5b
EZ
5283 (tty_color_name): Return Lisp strings for unspecified fore- and
5284 back-ground colors.
5285 (Finternal_set_lisp_face_attribute): Remove the special treatment
5286 for Qunspecified_{f,b}g.
5287 (realize_default_face): Replace Qunspecified_{f,b}g with a Lisp
5288 string.
5289
047f434a
GM
52902000-01-03 Gerd Moellmann <gerd@gnu.org>
5291
5292 * xdisp.c (reseat_at_next_visible_line_start): Position before
5293 newline only if ending up on a newline.
5294 (next_element_from_ellipsis): Return success. Handle case of
5295 displaying no ellipsis. Fix case of ellipsis defined in display
5296 table.
5297 (next_element_from_buffer): Return 0 if next_element_from_ellipsis
5298 returns 0.
5299
d684c676
EZ
53002000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
5301
5302 * xfaces.c (Fcolor_gray_p): Renamed from face-color-gray-p.
5303 (Fcolor_supported_p): Renamed from face-color-supported-p.
5304
5fe1d139
EZ
53052000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
5306
5307 * xfaces.c (tty_defined_color): Pass frame to tty-color-desc. The
5308 list of colors renamed to tty-defined-color-alist.
5309 (tty_color_name): Pass the frame to tty-color-by-index.
5310 (realize_tty_face): tty-color-alist is now a function which
5311 accepts the frame as argument.
5312
5313 * term.c (Ftty_display_color_p): Accept an optional argument
5314 FRAME.
5315
816be8b8
EZ
53162000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
5317
5318 * term.c (insert_glyphs): Pass glyph, not &glyph, to
5319 encode_terminal_code.
5320
b635321e
EZ
53212000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
5322
5323 * dispnew.c (mode_line_string): Support termcap frames as well.
5324
9b784e96
GM
53252000-01-01 Gerd Moellmann <gerd@gnu.org>
5326
27189709
GM
5327 * syntax.c (Fforward_word): Undo previous change.
5328
5329 * editfns.c (Fconstrain_to_field): Don't constrain if
5330 inhibit-field-text-motion is non-nil.
5331 (Fline_beginning_position): Undo previous change.
5332 (Fline_end_position): Ditto.
5333
5334 * syntax.c (Fforward_word): Notice field boundaries only if
5335 inhibit-field-text-motion is nil.
5336
5337 * lisp.h: Add extern declaration for Vinhibit_field_text_motion.
5338
5339 * editfns.c (Vinhibit_field_text_motion): New variable.
5340 (inhibit-field-text-motion): New DEFVAR_LISP.
5341 (Fline_beginning_position, Fline_end_position): Notice field
5342 boundaries only if inhibit-field-text-motion is nil.
5343
45158a91
GM
5344 * xfns.c (x_create_x_image_and_pixmap): Remove parameter FILE.
5345 All calls adjusted.
5346 (x_build_heuristic_mask): Likewise.
5347 (xbm_load_image_from_file): Change error output.
5348 (xbm_load, xpm_load, pbm_load, png_load, jpeg_load, tiff_load)
5349 (gif_load, gs_load, x_kill_gs_process): Ditto.
5350
9b784e96
GM
5351 * xfns.c (gif_load): Avoid sign extension and thus out of bounds
5352 color indices when accessing raster pixels.
63cec32f
GM
5353 (gif_image_p, png_image_p, jpeg_image_p, tiff_image_p): Allow only
5354 one of :file or :data.
5355 (enum pbm_keyword_index): Add PBM_DATA.
5356 (pbm_format): Add :data.
5357 (pbm_image_p): Allow either :file or :data.
5358 (pbm_read_file): New function.
5359 (pbm_scan_number): Rewritten to read from string.
5360 (pbm_load): Support :data.
9b784e96 5361
2cb085db 5362See ChangeLog.8 for earlier changes.