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