(calculator-copy-displayer): New user-option.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
6f3f0db4
GM
12001-09-24 Gerd Moellmann <gerd@gnu.org>
2
c69c0ebc
GM
3 * xterm.c (refreshicon): Function removed.
4
d1182bc4
GM
5 * Makefile.in (xterm.o): Remove references to sink.h and sinkmask.h.
6
7 * sink11.h, sink11mask.h, sink.h, sinkmask.h: Removed.
8
9 * xterm.c (toplevel): Remove includes in #if 0.
10
6f3f0db4
GM
11 * process.c (sigchld_handler) [LINUX]: Don't return from
12 the signal handler at the end of the loop.
13
59957f85
GM
142001-09-21 Gerd Moellmann <gerd@gnu.org>
15
16 * sysdep.c (wait_for_termination) [POSIX_SIGNALS]: Terminate
17 only if kill returns -1, and errno is ESRCH.
18
a0528984
EZ
192001-09-21 Markus Rost <rost@math.ohio-state.edu>
20
21 * Makefile.in (shortlisp): Add ../lisp/env.elc.
22
db92b288
GM
232001-09-20 Gerd Moellmann <gerd@gnu.org>
24
3fed8ad5
GM
25 * process.c (sigchld_handler): Use GC_CONSP, GC_INTEGERP, GC_EQ
26 since this function can be called during GC.
27
db92b288
GM
28 * callproc.c (Fcall_process): Handle errors from pipe(2).
29 (child_setup): Delete code in #ifdef vipc.
30
7121b85a
GM
312001-09-19 Gerd Moellmann <gerd@gnu.org>
32
72f62cb5
GM
33 * xdisp.c (decode_mode_spec): Add parameter MULTIBYTE.
34 (display_mode_element): Display the string from decode_mode_spec
35 depending on its multibyteness.
36
a2697022
GM
37 * s/netbsd.h (LD_SWITCH_SYSTEM, C_SWITCH_SYSTEM): Add /usr/pkg.
38
7121b85a
GM
39 * m/macppc.h (DATA_SEG_BITS): Also define for GCC 3.
40
bfc97351
GM
412001-09-18 Gerd Moellmann <gerd@gnu.org>
42
c9063433
GM
43 * keyboard.c (Frecursive_edit): Pass (BUFFER . SINGLE-KBOARD) to
44 recursive_edit_unwind.
45 (recursive_edit_unwind): Set kboard state according to
46 SINGLE-KBOARD.
47
3fbdba3e
GM
48 * buffer.c (modify_overlay): Don't do nothing if START == END;
49 This can still be a modification, for example when an overlay has
50 a before-string or after-string.
51 (Fdelete_overlay): Prevent redisplay optimizations when deleting
52 an overlay with before-string or after-string.
53
1270031d
GM
54 * s/netbsd.h (C_SWITCH_SYSTEM): Add.
55 (LD_SWITCH_SYSTEM): Include /usr/local/lib.
56
bfc97351
GM
57 * xdisp.c (try_window_id) [!GLYPH_DEBUG]: Give up if
58 first_unchanged_at_end_row is in front of
59 last_unchanged_at_beg_row. This code should be removed after the
60 release of 21.1.
61
d8a973aa
GM
622001-09-17 Gerd Moellmann <gerd@gnu.org>
63
e18c8b8d
GM
64 * buffer.h (BUF_COMPUTE_UNCHANGED): Use BUF_MODIFF and
65 BUF_OVERLAY_MODIFF instead of MODIFF and OVERLAY_MODIFF.
66
d8a973aa
GM
67 * m/macppc.h (DATA_SEG_BITS) [__linux__]: Define for GCC
68 versions >= 2.95.
69
ed7d6ba4
EZ
702001-09-14 Eli Zaretskii <eliz@is.elta.co.il>
71
72 * dired.c (Ffile_attributes): Doc fix.
73
551629f9
GM
742001-09-14 Gerd Moellmann <gerd@gnu.org>
75
76 * fileio.c (Ffile_symlink_p): Fix last change.
77
78 * filelock.c (current_lock_owner): Fix last change.
79
4c8c7926
GM
802001-09-13 Gerd Moellmann <gerd@gnu.org>
81
620c4704
GM
82 * filelock.c (current_lock_owner): If readlink returns ERANGE,
83 take that to mean that the buffer is too small.
84
81c3310d
GM
85 * fileio.c (Ffile_symlink_p): If readlink returns ERANGE, take
86 that to mean that the buffer is too small.
87
06fd3792
GM
88 * xdisp.c (reseat_1): Set IT's multibyte_p flag according to the
89 current buffer's multibyteness when discarding the iterator's
90 stack.
91
4c8c7926
GM
92 * xfns.c (Fx_window_property): Handle case that property gets
93 deleted between the two calls to XGetWindowProperty.
94
9a72e4c1
GM
952001-09-11 Gerd Moellmann <gerd@gnu.org>
96
bd819d14
GM
97 * minibuf.c (read_minibuf_unwind): Bind inhibit-modification-hooks.
98
a41edd99
GM
99 * minibuf.c (read_minibuf): Bind inhibit-modification-hooks to t,
100 in addition to read-only.
101
102 * xdisp.c (with_echo_area_buffer): Bind inhibit-modification-hooks
103 to t in addition to read-only.
104
105 * lisp.h (Qinhibit_modification_hooks): Declare.
106
107 * insdel.c (Qinhibit_modification_hooks): New variable.
108 (syms_of_insdel): Initialize and staticpro it.
109
d4881c6a
GM
110 * textprop.c (verify_interval_modification): Don't run
111 modification-hooks if inhibit_modification_hooks.
112
113 * dispnew.c (set_window_cursor_after_update): Fix code
114 finding glyph row containing cursor when cursor_in_echo_area
115 is >= 0.
116
9a72e4c1
GM
117 * xdisp.c (init_from_display_pos): Put some code in #if 0.
118 (add_to_log): Use bcopy instead of strcpy.
119 (init_from_display_pos): Use an explicit loop over bytes in
120 overlay strings instead of calling index.
121
f4a374a1
GM
1222001-09-10 Gerd Moellmann <gerd@gnu.org>
123
300e57bd
GM
124 * alloc.c (allocate_buffer): Call VALIDATE_LISP_STORAGE.
125
126 * dispnew.c (direct_output_for_insert): Don't change IT's
127 stop_charpos to something in front of its current position.
128
f4a374a1
GM
129 * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: Take args like
130 `format'.
131
7e4cbc91
RS
1322001-09-10 Richard M. Stallman <rms@gnu.org>
133
134 * frame.c (Fmouse_position): Doc fix.
135
6afad91e
GM
1362001-09-07 Gerd Moellmann <gerd@gnu.org>
137
138 * xdisp.c (init_from_display_pos): Don't compare the result
139 of calling index with NULL.
140
f76e0368
GM
1412001-09-06 Gerd Moellmann <gerd@gnu.org>
142
143 * xfns.c (x_set_background_color): Don't change the colors
144 of the X window of scroll bar widgets.
145
9ead1b60
AI
1462001-09-05 Andrew Innes <andrewi@gnu.org>
147
148 * w32fns.c (w32_createwindow): Undo last change.
149
c3b497b3
GM
1502001-09-05 Gerd Moellmann <gerd@gnu.org>
151
08e1d6df
GM
152 * macros.c (store_kbd_macro_char): Fix computation of kbd_macro_end.
153
c3b497b3
GM
154 * xdisp.c (string_buffer_position): Use *single_char_property*
155 functions instead of the *single_property* functions.
156
8f860180
AI
1572001-09-04 Andrew Innes <andrewi@gnu.org>
158
9a72e4c1
GM
159 * w32term.c (w32_read_socket): Add more information to debugging
160 output.
8f860180
AI
161
162 * w32fns.c (w32_createwindow): Remove the WS_CLIPCHILDREN style
163 from Emacs frames, so that calls to GetClipBox in w32term.c
164 correctly report when part of a frame is visible (including
165 scrollbars, etc). This prevents repeated redrawing of frames when
166 only a scrollbar is visible.
167 (w32_wnd_proc): Add more frame information to debugging output.
168
2ee1aa00
SM
1692001-09-03 Stefan Monnier <monnier@cs.yale.edu>
170
171 * xdisp.c (handle_single_display_prop): Fix for int/Lisp_Object mixup.
172
e3b22517
GM
1732001-09-03 Gerd Moellmann <gerd@gnu.org>
174
7e376260
GM
175 * xterm.c (note_mouse_highlight) <help-echo>: When looking for
176 help-echo for a string which doesn't have help-echo itself, use
177 get-char-property to obtain the help-echo from the string's buffer
178 (note_mouse_highlight) <mouse-face>: When on a string that doesn't
179 have mouse-face, look ``under'' the string for mouse-face from an
180 overlay.
181 (fast_find_position): Add parameter STOP. In the final row, stop
182 before glyphs having STOP as object. Don't consider glyphs that
183 are not from a buffer.
184
e3b22517
GM
185 * buffer.c (syms_of_buffer) <default-directory>: Doc fix.
186
9a249bba
EZ
1872001-09-01 Eli Zaretskii <eliz@is.elta.co.il>
188
189 * fns.c (Fmd5): Doc fix.
190
c9979669
GM
1912001-08-31 Gerd Moellmann <gerd@gnu.org>
192
193 * composite.c (update_compositions): Do nothing if
194 inhibit-modification-hooks is set.
195
9584e63a
GM
1962001-08-30 Gerd Moellmann <gerd@gnu.org>
197
986ec8f2 198 * emacs.c (shut_down_emacs): Don't call check_glyph_memory
490468dc 199 and check_message_stack if terminating abnormally. We want
986ec8f2
GM
200 glyph matrices etc. in a core dump.
201
92a25631
GM
202 * xdisp.c (Qbuffer_position, Qposition, Qobject): New variables.
203 (syms_of_xdisp): Initialize them.
204 (handle_single_display_prop): Don't change point, bind `object',
205 `position', and `buffer-position' instead to the object having the
2ee1aa00 206 `display' property, position in the object and position in the buffer.
92a25631 207
9584e63a
GM
208 * fileio.c (Finsert_file_contents): Don't change the multibyteness
209 of the buffer if REPLACE is non-nil.
210
d38633a3
GM
2112001-08-29 Gerd Moellmann <gerd@gnu.org>
212
213 * fileio.c (Finsert_file_contents): Undo change of 2001-08-27.
214
f4fccc1e
EZ
2152001-08-28 Eli Zaretskii <eliz@is.elta.co.il>
216
217 * w32term.c (x_set_glyph_string_background_width)
218 (show_mouse_face): Track the last changes in xterm.c.
219
eaaa65b0
GM
2202001-08-28 Gerd Moellmann <gerd@gnu.org>
221
7b0870b2
GM
222 * xterm.c (x_set_glyph_string_background_width): Set the glyph
223 string's background width so that multi-line mouse-face is drawn
224 to the right edge of the window.
225 (show_mouse_face): Set the row's mouse_face_p flag after drawing
226 glyphs.
227
6b6e2422 228 * dispnew.c (direct_output_for_insert): Set updated_area
5b52c296 229 before inserting/writing glyphs.
6b6e2422 230
eaaa65b0
GM
231 * xdisp.c (display_mode_element): Use string_byte_to_char to
232 determine character positions in strings, use chars_in_text
233 instead of strwidth.
234 (dump_glyph_row) [GLYPH_DEBUG]: Take a glyph row instead of
235 a matrix as parameter; this is easier to use from GDB.
236
9ad62cf8
MB
2372001-08-28 Miles Bader <miles@gnu.org>
238
2ee1aa00
SM
239 * textprop.c (Fprevious_single_char_property_change)
240 (Fnext_single_char_property_change): Doc fixes.
9ad62cf8 241
32171635
GM
2422001-08-27 Gerd Moellmann <gerd@gnu.org>
243
47d57b22
GM
244 * fileio.c (Finsert_file_contents): Allocate, restore, and
245 free composition data in the case of REPLACE not being nil.
246
247 * xdisp.c (init_from_display_pos, init_to_row_end): Return 0 if
248 there exist overlay strings with newlines at POS.
249 (text_outside_line_unchanged_p): Return 0 if changes start at
250 START and overlays exist at START. Likewise for END.
251 (try_window_id): Give up if init_to_row_end returns 0.
252
32171635
GM
253 * fileio.c (Finsert_file_contents): Call Fset_buffer_multibyte
254 unconditionally.
255
e1249666
GM
2562001-08-24 Gerd Moellmann <gerd@gnu.org>
257
33954c45
GM
258 * keymap.c (access_keymap): Return the cdr of the binding of
259 a generic character instead of its definition (KEY . BINDING).
260
e1249666
GM
261 * fileio.c (Finsert_file_contents): Set coding's dest_multibyte
262 to 0 also in the REPLACE case.
263
fb4c6c96
AC
2642001-08-24 Andrew Choi <akochoi@cse.cuhk.edu.hk>
265
266 * fileio.c (Ffile_readable_p) [macintosh]: Call access instead of
267 open to determine whether file is readable (as for DOS_NT).
268
59ecf80b
GM
2692001-08-23 Gerd Moellmann <gerd@gnu.org>
270
271 * fileio.c (Finsert_file_contents): If VISIT is non-nil, and
272 coding.type is coding_type_no_conversion or coding_type_raw_text,
273 use Fset_buffer_multibyte to make the buffer unibyte if REPLACE is
274 non-nil instead of just setting enable_multibyte_characters in the
275 buffer to nil.
276
40e33037
GM
2772001-08-22 Gerd Moellmann <gerd@gnu.org>
278
374388c3
GM
279 * dispextern.h (struct face_cache): Add member
280 menu_face_changed_p.
281
282 * xfaces.c (menu_face_changed_default): New variable.
283 (menu_face_changed_count): Variable removed.
284 (Finternal_set_lisp_face_attribute): Doc fix. If FRAME is t, set
285 the menu_face_changed_default flag, otherwise set the FRAME's
286 menu_face_changed_p flag if the `menu' face has been changed.
287 Prevent calling set_font_frame_param if FRAME is t.
288 (make_face_cache): Initialize cache's menu_face_changed_p
289 from menu_face_changed_default.
290 (realize_basic_faces): Look into the frame's face cache to
291 determine if the menu appearance needs updating.
292
40e33037
GM
293 * keymap.c (access_keymap): Fix last change to not consider
294 IDX when it has modifiers.
295
859ea4b8
GM
2962001-08-21 Gerd Moellmann <gerd@gnu.org>
297
298 * keymap.c (access_keymap): If a binding of the form (GENERIC-CHAR
299 . BINDING) exists, where GENERIC-CHAR is the generic character of
300 the charset of IDX, return BINDING unless there exists a binding
301 for IDX itself.
302
e8660d73
GM
3032001-08-16 Gerd Moellmann <gerd@gnu.org>
304
cca1b1d7
GM
305 * xrdb.c (SYSV): Don't define on Solaris 2.
306 From Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>.
307
e8660d73 308 * xdisp.c (move_it_by_lines) <DVPOS < 0>: Start at the beginning
2ee1aa00 309 of the screen line, not text line, containing IT's current position.
e8660d73 310
93aba6fc
GM
3112001-08-15 Gerd Moellmann <gerd@gnu.org>
312
288d4e06
GM
313 * window.c (window_scroll_pixel_based): Don't recenter if
314 PT is partially visible in the window.
315
3452efc2
SM
316 * xterm.c (expose_window_tree, expose_window, expose_line):
317 Return 1 when overwriting mouse-face.
82f053ab
GM
318 (expose_frame): If mouse-face was overwritten, redo it.
319
93aba6fc
GM
320 * xfaces.c (x_update_menu_appearance): Don't call
321 set_frame_menubar, let the next redisplay do it.
322
858a55c1
AI
3232001-08-14 Andrew Innes <andrewi@gnu.org>
324
325 * w32term.c (x_draw_glyph_string): Draw relief (if any) before
326 drawing glyph string.
327
3a990b67
EZ
3282001-08-14 Eli Zaretskii <eliz@is.elta.co.il>
329
330 * s/hiuxwe2.h: New file, for the HITACHI SR2001/SR2201 series
331 running HI-UX/MPP.
332
04386463
GM
3332001-08-14 Gerd Moellmann <gerd@gnu.org>
334
335 * xfaces.c (x_update_menu_appearance): Save and restore value of
336 interrupt_input_blocked.
337
3e6385a4
GM
3382001-08-13 Gerd Moellmann <gerd@gnu.org>
339
b0e619b4
GM
340 * xdisp.c (move_it_by_lines) <DVPOS < 0>: If not already on
341 a line start, move back to the line start.
3452efc2 342
0de73d5a
GM
343 * xdisp.c (resize_echo_area_exactly): Don't resize the mini-window
344 exactly when a mini-buffer is active.
345
3e6385a4
GM
346 * keyboard.c (make_lispy_event): Interpret double_click_fuzz
347 in units of 1/8 character on non window-system frames.
348 (syms_of_keyboard) <double-click-fuzz>: Doc fix.
349
d1b5f629
EZ
3502001-08-10 Eli Zaretskii <eliz@is.elta.co.il>
351
352 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Fix a typo in
353 a doc string.
354
eaa2319f
GM
3552001-08-09 Gerd Moellmann <gerd@gnu.org>
356
8e3189f0
GM
357 * keyboard.c (Vpre_help_message): New variable.
358 (syms_of_keyboard): Initialize and staticpro it.
359 (show_help_echo): Record current message before displaying a
360 help-echo, and restore that message when clearing the help.
361
eaa2319f
GM
362 * xfns.c (x_create_im): Remove prototype.
363
364 * xdisp.c (mark_window_display_accurate_1): Remove an assertion.
365
366 * dispnew.c (adjust_glyph_matrix): Undo last change.
3452efc2 367
eaa2319f
GM
3682001-08-08 Gerd Moellmann <gerd@gnu.org>
369
370 * dispnew.c (adjust_glyph_matrix): In the optimization for
3452efc2 371 windows whose height has changed, disable partially visible lines.
eaa2319f 372
17fdcfc8
GM
3732001-08-07 Gerd Moellmann <gerd@gnu.org>
374
22d01aed 375 * window.c (Frecenter): If ARG < 0, and on a window system
3452efc2 376 frame, count in some empty lines when we can't move -ARG lines down.
22d01aed 377
17fdcfc8
GM
378 * xdisp.c (start_display): Don't try to determine the continuation
379 lines width if lines are truncated. It's superfluous and leads to
380 incorrect results if POS is not visible in the window after
381 reseating the iterator at the previous line start.
382
8e3fe78e
GM
3832001-08-06 Gerd Moellmann <gerd@gnu.org>
384
385 * xterm.c (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
386
98a8938c
GM
3872001-08-06 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
388
389 * alloc.c (init_stack): Remove declaration.
390
18f9986a
GM
3912001-08-03 Gerd Moellmann <gerd@gnu.org>
392
5e1f85e0
GM
393 * keyboard.c (read_key_sequence): Check that key is an integer
394 before comparing it with quit_char.
395 (add_command_key): Use larger_vector.
396 (read_char_x_menu_prompt): Instead of converting symbol and
397 integer events into conses (EVENT . nil), use (EVENT . disabled)
3638868e 398 which cannot be confused with valid events.
5e1f85e0
GM
399 (read_char): When reading from Vunread_command_events, check for
400 events of the form (EVENT . disabled) instead of
401 (EVENT . nil).
402
18f9986a
GM
403 * xdisp.c (resize_mini_window): If Vmax_mini_window_height is
404 a float, determine the max height from the frame's height.
405
fbc7f2a6
GM
4062001-08-02 Gerd Moellmann <gerd@gnu.org>
407
408 * xdisp.c (redisplay_internal): Take message_cleared_p into
409 account only if minibuf_level == 0.
410
81b1a79d
GM
4112001-08-01 Gerd Moellmann <gerd@gnu.org>
412
e5c60873
GM
413 * xdisp.c (redisplay_internal): Add a check for the last
414 displayed message.
3452efc2 415
6e019995
GM
416 * xdisp.c (message_cleared_p): New variable.
417 (clear_message): Set message_cleared_p when clearing the current
418 message.
419 (redisplay_internal): Look at message_cleared_p to capture
420 the case that the echo area should be cleared.
421
308a74d8
GM
422 * keyboard.c (command_loop_1): Fix spelling of
423 resize_echo_area_exactly.
424
3452efc2 425 * dispextern.h (resize_echo_area_exactly): Fix typo in function name.
308a74d8
GM
426
427 * xdisp.c (resize_echo_area_exactly): Fix typo in function name.
428
81b1a79d
GM
429 * xfns.c (x_set_tool_bar_lines): Clear the tool bar window's
430 current matrix when the window gets smaller.
431
ada329e6
EZ
4322001-08-01 Eli Zaretskii <eliz@is.elta.co.il>
433
434 * print.c (strout): Cast the character passed to insert_char to
435 unsigned char, to avoid sign extension when it is promoted to int.
436
ed86208c
GM
4372001-07-31 Gerd Moellmann <gerd@gnu.org>
438
439 * fileio.c (Finsert_file_contents): Don't treat a return value
440 of 0 from emacs_read as an IO error.
441
6594ac22
GM
4422001-07-30 Gerd Moellmann <gerd@gnu.org>
443
cef68af5
GM
444 * keyboard.c (abs): New macro.
445 (double_click_fuzz): New variable.
446 (make_lispy_event): Use it to determine what makes a double-click.
447 (syms_of_keyboard): DEFVAR_INT it.
448
6594ac22
GM
449 * xmenu.c (set_frame_menubar): Take into account that
450 f->menu_bar_vector can be nil, and not a vector. From Ken Raeburn
451 <raeburn@gnu.org>.
452
75c5350a
GM
4532001-07-27 Gerd Moellmann <gerd@gnu.org>
454
455 * xterm.c (x_get_glyph_string_clip_rect): Minor cleanup.
456
457 * dispnew.c (shift_glyph_matrix, blank_row): Fix computation
458 of row's visible height.
459
460 * xdisp.c (init_from_display_pos): If POS is in an overlay string,
3452efc2
SM
461 deal with the first overlay string having an image `display' property.
462 (try_window_reusing_current_matrix, compute_line_metrics):
463 Fix computation of row's visible height for the case that part of the
75c5350a
GM
464 row is invisible above and part of the row is at the same time
465 invisible below the window.
466
ac49effe
GM
4672001-07-26 Gerd Moellmann <gerd@gnu.org>
468
469 * xfns.c (x-show-tip): Doc fix.
3452efc2 470
ac49effe
GM
471 * xfns.c (Vx_max_tooltip_size): New variable.
472 (syms_of_xfns): DEFVAR_LISP it.
473 (Fx_show_tip): Set frame's window_width to the width of the
474 window. Use a maximum tooltip size specified by
475 Vx_max_tooltip_size, if that has valid contents.
476 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
3452efc2 477
8c3b00cb
AI
4782001-07-26 Andrew Innes <andrewi@gnu.org>
479
480 * w32term.c (x_display_list): New variable.
481 (w32_term_init): Set it.
482
483 * w32term.h (x_display_list): New extern.
484
16098288
GM
4852001-07-26 Gerd Moellmann <gerd@gnu.org>
486
487 * xdisp.c (resize_mini_window): Give up when inhibit-redisplay
3452efc2
SM
488 is non-nil, instead of when redisplaying_p is non-zero.
489 See comment there.
16098288
GM
490 (mark_window_display_accurate_1): Add an assertion.
491
64c5be50
GM
4922001-07-25 Gerd Moellmann <gerd@gnu.org>
493
e743f599
GM
494 * dispextern.h (struct it): Increase size of ctl_chars to 16.
495
563b384d
GM
496 * xfns.c (Fx_file_dialog): Block/unblock input while processing
497 events so that we get a chance of processing expose events.
498
64c5be50
GM
499 * xdisp.c (resize_mini_window): Don't resize while redisplaying.
500
296808a5
GM
5012001-07-24 Gerd Moellmann <gerd@gnu.org>
502
503 * xfns.c (valid_image_p): Protect better against invalid image
504 specifications. Previous code could signal an error.
505
5247262a
GM
5062001-07-23 Gerd Moellmann <gerd@gnu.org>
507
3452efc2 508 * indent.c (current_column): Fix column computation in the
f1004faf
GM
509 presence of display table entries.
510 (current_column_1, Fmove_to_column, compute_motion): Likewise.
511
dd42b31a
GM
512 * dispnew.c (adjust_glyph_matrix): In the optimization for
513 windows whose height has changed, use the new window height
514 to compute which rows to invalidate.
515
9e5a7f2a
GM
516 * editfns.c (toplevel) [STDC_HEADERS]: Include float.h.
517 (MAX_10_EXP): New macro.
518 (Fformat): Use it.
519
5247262a
GM
520 * coding.c (code_convert_region): Handle the multibyte case if
521 decoding ends with CODING_FINISH_INSUFFICIENT_SRC.
522
177ab8ce
GM
5232001-07-20 Gerd Moellmann <gerd@gnu.org>
524
6e07c0a5
GM
525 * dispextern.h (struct face): Change type of `stipple' to
526 int; it's an ID.
527
177ab8ce
GM
528 * xterm.c (x_fill_stretch_glyph_string): Remove an assertion.
529
b5b80599
GM
5302001-07-19 Gerd Moellmann <gerd@gnu.org>
531
4e2a256b
GM
532 * dispnew.c (update_window): Don't set the cursor at the end
533 of the update if display update has been paused.
534
3452efc2 535 * composite.h (syms_of_composite): Renamed from syms_of_composition.
b5b80599 536
c1fd9232
KR
5372001-07-18 Ken Raeburn <raeburn@gnu.org>
538
539 * fns.c (Fset_char_table_default): Check that a charset is defined
540 before checking its dimension.
541
928a85c1
KR
5422001-07-17 Ken Raeburn <raeburn@gnu.org>
543
544 * coding.c (setup_coding_system): Don't do any designation based
545 on reg_bits if charset is not yet defined.
546
fb4c6c96 547 * lisp.h (XVECTOR): Verify correct object type before returning a
232e274c
KR
548 pointer, using eassert.
549
de11c1ea
GM
5502001-07-17 Gerd Moellmann <gerd@gnu.org>
551
3452efc2
SM
552 * keyboard.c (KBD_BUFFER_SIZE) [!HAVE_WINDOW_SYSTEM]:
553 Increase to 4096 because of paste problems reported on GNU/Linux.
de11c1ea 554
467f1209
GM
5552001-07-17 Jan Nieuwenhuizen <janneke@gnu.org>
556
557 * emacs.c (USAGE1): Add +LINE:COLUMN option help.
558
c3d6be34
GM
5592001-07-16 Gerd Moellmann <gerd@gnu.org>
560
c1d61a7d
GM
561 * fileio.c (unwind_read): Function removed.
562 (read_non_regular, read_non_regular_quit): New functions.
563 (Finsert_file_contents): When reading from non-regular files,
564 arrange to catch a `quit' and terminate the loop. Rearrange
565 code so that a `quit' when reading from a regular file doesn't
566 insert text in the buffer.
567
c3d6be34
GM
568 * xfaces.c (clear_face_cache): Clear fonts on a display basis.
569 Clear faces afterwards.
570 (clear_font_table): Take a x_display_info parameter. Don't free
571 fonts being the default font of any frame on the given display.
572
e06aa1f9
GM
5732001-07-13 Gerd Moellmann <gerd@gnu.org>
574
575 * xdisp.c (get_next_display_element): Use CHAR_STRING_NO_SIGNAL
576 instead of CHAR_STRING which can signal an error.
577
578 * charset.c (char_to_string_1): Extracted from char_to_string.
579 Return -1 instead of signaling an error.
580 (char_to_string): Use it.
581
582 * charset.h (CHAR_STRING_NO_SIGNAL): New macro.
583
176c92e6
SM
5842001-07-12 Stefan Monnier <monnier@cs.yale.edu>
585
586 * coding.c (Ffind_coding_systems_region_internal): If safe_codings
587 is t, don't try to append anything to it.
588
1c56232f
EZ
5892001-07-12 Eli Zaretskii <eliz@is.elta.co.il>
590
591 * dired.c (file_name_completion): Pass dp->d_name to
592 Fstring_match, not elt, which is always nil here.
593
1d2b2268
GM
5942001-07-12 Gerd Moellmann <gerd@gnu.org>
595
596 * xselect.c (x_decline_selection_request): Handle errors
597 caused by receivers that have vanished.
598
599 * xterm.c (XTread_socket) <PropertyNotify>: Put the code
600 ignoring events on foreign windows in #if 0. Always dispatch
601 the event after checking it with x_handle_property_notify.
602
603 * xselect.c (TRACE0, TRACE1, TRACE2): New macros, defined
176c92e6
SM
604 depending on TRACE_SELECTION. Replace fprintfs in #if 0 with
605 TRACE macros to facilitate debugging. Add additional trace statements.
1d2b2268
GM
606 (toplevel): Add prototypes for file-local functions.
607 (x_atom_to_symbol): Remove DPYINFO parameter.
608
fe5a0162
SM
6092001-07-11 Stefan Monnier <monnier@cs.yale.edu>
610
611 * w32menu.c (menubar_selection_callback, w32_menu_show):
612 Initialize `entry' to nil.
613 (w32_dialog_show): Remove unused `save_wv' variable.
614 (name_is_separator): Recognize "--:foo" and "--foo-bar".
615
a777242c
GM
6162001-07-11 Gerd Moellmann <gerd@gnu.org>
617
8ee5b6a3
GM
618 * xdisp.c (try_cursor_movement): Prevent a warning from GCC 3.0.
619
d0e2444e
GM
620 * fileio.c (unwind_read): Print a message when discarding inserted
621 text or switching the buffer to unibyte. Change parameter.
622 (Finsert_file_contents): Don't pass VISIT to unwind_read.
fe5a0162 623
a777242c
GM
624 * fileio.c (unwind_read): New function.
625 (Finsert_file_contents): Record it as unwind-function for
626 the case that reading is interrupted by C-g.
627
ae794295
GM
6282001-07-10 Gerd Moellmann <gerd@gnu.org>
629
fe5a0162 630 * dispnew.c (update_window): Don't skip the header-line
58f8612a
GM
631 update when scrolling_window returns 0.
632
6b05fae3
GM
633 * xfaces.c (unload_color): Do nothing if PIXEL is -1.
634
635 * xfns.c (Fx_create_frame): Initialize frame colors to -1,
58f8612a 636 for the case that x_decode_color signals an error.
6b05fae3 637
ae794295
GM
638 * xdisp.c (add_to_log): Do nothing if called asynchronously.
639
bb6e8cee
GM
6402001-07-09 Gerd Moellmann <gerd@gnu.org>
641
642 * sound.c (toplevel): Include <signal.h> and "syssignal.h".
643 (vox_configure, vox_close) [SIGIO]: Block/unblock SIGIO
644 around ioctls.
645
36b40a8a
EZ
6462001-07-06 Eli Zaretskii <eliz@is.elta.co.il>
647
24b97d4b
EZ
648 * dosfns.c (syms_of_dosfns): Add \n\ at the end of a line in the
649 doc string line for dos-timezone-offset.
650
36b40a8a
EZ
651 * msdos.c (do_visible_bell): Add \n\ at the end of each line of
652 inline assembly, to avoid compiler warnings.
24b97d4b
EZ
653 (syms_of_msdos): Add \n\ at the end of a line in the doc string
654 line for dos-unsupported-char-glyph.
36b40a8a
EZ
655
656 * buffer.c (syms_of_buffer) [if 0]: Avoid a warning from GCC 3.0.
657
0967b4b0
GM
6582001-07-05 Gerd Moellmann <gerd@gnu.org>
659
f25cfe53
GM
660 * sound.c: Include Emacs' header files with #include "...".
661
0967b4b0
GM
662 * eval.c (specbind): Additionally record the buffer that was
663 current when a buffer-local or frame-local variable was bound.
664
c347a1c3
GM
6652001-07-04 Gerd Moellmann <gerd@gnu.org>
666
667 * xterm.c (x_produce_glyphs): Don't convert multibyte characters
668 to unibyte characters in unibyte buffers.
669
6332ca8a
GM
6702001-07-03 Gerd Moellmann <gerd@gnu.org>
671
38472d44
GM
672 * eval.c (specbind): If SYMBOL has a frame-local binding, record
673 the frame on the binding stack. Change format of entries for
674 local bindings on the binding stack to '(SYMBOL . WHERE)'.
675 (unbind_to): Handle unbinding a frame-local variable.
676
6332ca8a 677 * xdisp.c (compute_line_metrics): On ttys, subtract continuation
fe5a0162 678 glyphs and truncation glyphs at the end of a row from its pixel width.
6332ca8a
GM
679 (dump_glyph_row): Print row's continuation_lines_width.
680 (try_window_id): Take the shortcut if ZV is visible in the
681 window, but there are actually no changes at ZV.
682
63d1b174
GM
6832001-07-02 Gerd Moellmann <gerd@gnu.org>
684
4c175203
GM
685 * xterm.h (x_free_dpy_colors): Add prototype.
686
687 * xterm.c (cvt_pixel_dtor): Call x_free_dpy_colors with the
688 right number of arguments.
689
0b54ce28
GM
690 * Makefile.in (tags): Depend on $(lwlibdir)/TAGS.
691 ($(lwlibdir)TAGS): New target.
4c175203 692 (TAGS): Fix dependency list.
0b54ce28 693
63d1b174
GM
694 * xterm.c (x_list_fonts): Make sure XFreeFont is called
695 with input blocked.
696
d827466c
GM
6972001-06-30 Gerd Moellmann <gerd@gnu.org>
698
699 * emacs.c (main): Remove extern declaration for sys_nerr, which
700 isn't used and causes a compilation error with GCC 3.0 on
701 FreeBSD 4.3.
702
b5cb1ada
GM
7032001-06-27 Gerd Moellmann <gerd@gnu.org>
704
a5d3ec3f 705 * widget.c (EmacsFrameSetCharSize): Turn off atimers and block
3452efc2 706 SIGIO around the code where Xt might wait for a ConfigureNotifyEvent.
a5d3ec3f
GM
707 (toplevel): Include <signal.h> and syssignal.h.
708
b5cb1ada
GM
709 * sound.c (vox_configure, vox_close): Turn off atimers
710 around ioctls.
711
d9bad487
GM
7122001-06-26 Gerd Moellmann <gerd@gnu.org>
713
fdbb67fe
GM
714 * keyboard.c (read_char) <non_reread>: Record the previous idle
715 start time before calling timer_stop_idle.
716 (read_char) <reread_first>: After processing a help-echo event,
717 restore the previous idle start time.
718
d9bad487
GM
719 * xdisp.c (handle_invisible_prop): Deal with overlay strings at
720 the start of invisible text.
721 (setup_for_ellipsis): New function.
722 (next_overlay_string): After all overlay strings have been
723 processed, display an ellipsis if necessary.
724 (load_overlay_strings, get_overlay_strings): Add parameter CHARPOS.
725 (push_it): Initialize display_ellipsis_p on the iterator's stack.
726
727 * dispextern.h (struct iterator_stack_entry): Add member
728 display_ellipsis_p.
729
2b9c25e0
GM
7302001-06-25 Gerd Moellmann <gerd@gnu.org>
731
80de57df
GM
732 * widget.c (EmacsFrameSetCharSize): Set XtNwaitForWm depending
733 on the value of the wait-for-wm frame parameter.
734
735 * xterm.h (struct x_output): Add member wait_for_wm.
736
737 * xfns.c (Qwait_for_wm): New variable.
738 (x_frame_parms): Add entry for `wait-for-wm".
739 (x_set_wait_for_wm): New function.
740 (Fx_create_frame): Call x_default_parameter for wait-for-wm.
741 (syms_of_xfns): Initialize and staticpro Qwait_for_wm.
742
2b9c25e0
GM
743 * xdisp.c (try_window_id) <all changes below window end>: Don't
744 take this shortcut if ZV is visible in the window.
745 (try_window_id): When checking for window start being in changed
746 text, don't check that the buffer's size has changed.
747
f772775c
RS
7482001-06-23 Richard M. Stallman <rms@gnu.org>
749
750 * minibuf.c (Fcompleting_read): Doc fix.
751
fa9090b8
GM
7522001-06-19 Gerd Moellmann <gerd@gnu.org>
753
754 * composite.c (Ffind_composition_internal): Accept ZV
755 and a string's end position as POS.
756
f6f1beba
GM
7572001-06-18 Gerd Moellmann <gerd@gnu.org>
758
759 * composite.c (Ffind_composition_internal): Check POS
760 for validity.
761
0ae83348
EZ
7622001-06-15 Eli Zaretskii <eliz@is.elta.co.il>
763
764 * editfns.c (Fmessage_box): If the frame is not under a window
765 system, output the message in the echo area.
766
e4cdc335
RS
7672001-06-14 Richard M. Stallman <rms@gnu.org>
768
769 * xdisp.c (try_window_id): When EOB is visible, don't treat
770 insertion at EOB as if it were "off the bottom of the screen."
771
a55a5f3c
AI
7722001-06-11 Andrew Innes <andrewi@gnu.org>
773
774 * w32proc.c (create_child): Add new parameter is_gui_app.
775 (w32_executable_type): Add new parameter is_gui_app.
776 (sys_spawnve): Use it.
777 (sys_kill): Fake ^C for SIGINT, and ^Break (if possible) for
778 SIGQUIT. This matches better how the signals are interpreted by
779 MSVC compiled programs.
780 (syms_of_ntproc): Update docstring.
781
1b85dc1c
SM
7822001-06-02 Stefan Monnier <monnier@cs.yale.edu>
783
784 * xterm.c (clear_mouse_face): Reset dpyinfo->mouse_face_overlay as
785 well otherwise note_mouse_highlight might optimize away highlighting
786 if we pass over that same overlay again.
787
b75f8eab
EZ
7882001-06-02 Eli Zaretskii <eliz@is.elta.co.il>
789
790 * lread.c (Fload): Document that the argument is run via
791 substitute-in-file-name.
792
94843cc1
GM
7932001-05-31 Gerd Moellmann <gerd@gnu.org>
794
b14659e6
GM
795 * Makefile.in (bootstrap-doc): New target.
796 (bootstrap-emacs): Depend on it.
797
0894672f
GM
798 * fileio.c (Fdo_auto_save): Don't try to create the directory of
799 auto-save-list-file-name when shutting down Emacs, because
800 creating the directory might signal an error, and leaves
801 Emacs in a strange state.
802
94843cc1
GM
803 * term.c: (tty_cursor_hidden): New variable.
804 (update_begin): Don't call tty_hide_cursor. Clean up.
805 (update_end, set_terminal_window, set_scroll_region): Clean up.
806 (ring_bell, reset_terminal_modes): Clean up.
807 (tty_hide_cursor, tty_show_cursor): Hide/show cursor depending
808 on tty_cursor_hidden.
809 (write_glyphs): Call tty_hide_cursor.
810
db3a49a6
SM
8112001-05-30 Stefan Monnier <monnier@cs.yale.edu>
812
813 * buffer.c (copy_overlays): Make ENABLE_CHECKING happy.
814
8bd189fb
GM
8152001-05-30 Gerd Moellmann <gerd@gnu.org>
816
6f1be3b9
GM
817 * xfns.c (enum image_value_type): New enumerator
818 IMAGE_STRING_OR_NIL_VALUE.
819 (parse_image_spec): Handle it.
820 (xbm_format, pbm_format): Use it for :foreground and :background.
821 (xbm_load, pbm_load): Check for nil color names.
822
8bd189fb
GM
823 * xterm.c (note_mouse_highlight): If an overlapping overlay
824 exists, but we find that we highlight the same overlay as before,
825 don't do the highlighting again.
826
7bdba03c
GM
8272001-05-29 Gerd Moellmann <gerd@gnu.org>
828
4c329aa8
GM
829 * xmenu.c (single_submenu, xmenu_show) [!HAVE_MULTILINGUAL_MENU]:
830 Protect unibyte strings created by replacing their multibyte
831 equivalents in menu_items.
832
e15e2828
GM
833 * keymap.c (Fsingle_key_description): NUL-terminate the string
834 buffer before calling build_string.
835
7bdba03c
GM
836 * callproc.c (Fcall_process): Deal with decode_coding returning
837 CODING_FINISH_INCONSISTENT_EOL.
838
89c8dc6c
GM
8392001-05-28 Gerd Moellmann <gerd@gnu.org>
840
db3a49a6 841 * xmenu.c (xmenu_show) [!HAVE_MULTILINGUAL_MENU]: Don't overwrite
3d9d7a9b
GM
842 an item's name with its key description in case the description
843 is a multibyte string.
844
845 * keymap.c (Fsingle_key_description): Create a multibyte string
846 only if necessary.
847
eb04d6cd
GM
848 * macros.c (Fstart_kbd_macro): Doc fix.
849
8bd6307f
GM
850 * xterm.c (cursor_in_mouse_face_p): New function.
851 (x_draw_stretch_glyph_string): Use it to choose a different GC
852 when drawing a cursor within highlighted text.
853
e26c4089
GM
854 * editfns.c (char_property_eq): Put in #if 0.
855
856 * indent.c (string_display_width): Put in #if 0.
857
858 * lread.c (Fload): Remove unused label.
859
89c8dc6c
GM
860 * termcap.c (speeds): Put in #if 0.
861
9a1211f2
GM
8622001-05-18 Gerd Moellmann <gerd@gnu.org>
863
29148a3f
GM
864 * eval.c (call_debugger): Don't bind inhibit-eval-during-redisplay.
865
9a1211f2
GM
866 * xfaces.c (xlfd_point_size): Don't divide pixel size from
867 transformation matrix by 10.
868
09393d07
GM
8692001-05-16 Gerd Moellmann <gerd@gnu.org>
870
871 * xfns.c (x_set_foreground_color): Change frame's cursor_pixel
872 only if it's equal to the former foreground pixel color.
db3a49a6 873 (x_set_foreground_color, x_set_background_color)
09393d07
GM
874 (x_set_mouse_color, x_set_cursor_color): Cleaned up.
875
460e6bae
GM
8762001-05-16 Dave Love <fx@gnu.org>
877
878 * insdel.c (signal_before_change, signal_after_change): Consider a
879 local change hook which changes the buffer.
99c78ce8
GM
880
881 * process.c (read_process_output): Don't call signal_after_change
882 and update_compositions after insert_from_string_before_markers.
883
dbcf3c03
GM
8842001-05-16 Gerd Moellmann <gerd@gnu.org>
885
a90b3d3c
GM
886 * xfaces.c (split_font_name): Use the right field when
887 checking for `[...]' syntax.
888
1b7818b4
GM
889 * buffer.c (copy_overlays): New function.
890 (clone_per_buffer_values): Use it.
891
892 * buffer.h (OVERLAY_PLIST): New macro.
893
9bae8781
GM
894 * keymap.c (Fsingle_key_description): Replace a build_string with
895 a make_multibyte_string. From Kenichi Handa <handa@etl.go.jp>.
896
dbcf3c03
GM
897 * fontset.c (Ffontset_info): Check that face is non-null
898 before accessing its fields.
899
8a1ae4dd
GM
9002001-05-15 Gerd Moellmann <gerd@gnu.org>
901
18a0a39e
GM
902 * keyboard.c (read_key_sequence): Prevent generating a fake
903 prefix key twice.
904
e335b66a
GM
905 * xfaces.c (split_font_name): Handle `[...]' for the right
906 font name fields.
907
8a1ae4dd
GM
908 * ccl.c (ccl_driver): Don't copy remaining bytes in case
909 of CCL_STAT_INVALID_CMD.
910
3cf80731
SM
9112001-05-14 Stefan Monnier <monnier@cs.yale.edu>
912
33568849
SM
913 * eval.c (Fdefvar): Only record (defvar <var>) in the load-history
914 in <var> has no default value yet.
915
3cf80731
SM
916 * xfaces.c (try_alternative_families): First try the FAMILY.
917 And if nothing is found in the end, try again with scalable fonts.
918 (try_font_list): Let try_alternative_families do a bit more of
919 the work. Only use FAMILY if it is not nil.
920 (syms_of_xfaces) <scalable-fonts-allowed>: Fix docstring.
921
933b0249
GM
9222001-05-14 Gerd Moellmann <gerd@gnu.org>
923
58e5af83
GM
924 * xterm.c (note_mouse_highlight): Avoid changing the mouse
925 pointer shape when show_mouse_face has already done it.
33568849 926
58e5af83 927 * xterm.c (x_draw_glyphs): Fix computation of rightmost x for
557f7c34
GM
928 full-width rows.
929
7b16a6bf
GM
930 * xfaces.c (split_font_name): Make sure to leave the loop
931 with the right value of `i'.
3cf80731 932
933b0249
GM
933 * xfaces.c (split_font_name): Handle matrix transformations
934 in the pixel and point size fields of XLFD font names.
935 (xlfd_point_size): Likewise.
936
dddcbf00
EZ
9372001-05-12 Eli Zaretskii <eliz@is.elta.co.il>
938
3cf80731 939 * w32fns.c (w32_to_x_font): Change prototype to fit the declaration.
c7501041
EZ
940 (x_to_w32_font): Add prototype.
941
7689ef0b
EZ
942 * regex.c (malloc, realloc, free) [emacs]: Undefine before
943 redefining, to avoid compiler warnings.
944
e7c15bba
EZ
945 * w32proc.c: Include syssignal.h, to avoid compiler warnings.
946
dddcbf00
EZ
947 * w32bdf.c (search_file_line, set_bdf_font_info, seek_char)
948 (w32_get_bdf_glyph): Cast between unsigned char and char when
949 passing arguments to subroutines, to shut up compiler warnings.
950 (w32_get_bdf_glyph): Don't mix signed and unsigned when calling
951 GET_HEX_VAL.
952
953 * xfaces.c: Include keyboard.h before frame.h, not after it.
954
955 * widget.c: Include keyboard.h before frame.h.
956
957 * w32term.h (struct image, struct face): Forward declaration, to
958 avoid compiler warnings.
959
7bd2d083
GM
9602001-05-11 Gerd Moellmann <gerd@gnu.org>
961
47e72862
GM
962 * keyboard.c (read_key_sequence): Don't modify events when
963 generating fake prefix keys (mode-line, scroll-bar, ...) since
964 this prevents proper processing of such events when pushed back
965 into unread-command-events.
966
dd5f324b
GM
967 * xterm.c (clear_mouse_face): Return 1 if text with mouse face was
968 actually redrawn. Make the function static.
969 (note_mouse_highlight): Fix a case where the mouse cursor
970 was changed back to the text cursor.
971
972 * xterm.h (clear_mouse_face): Remove prototype.
973
d88a79d4
GM
974 * xdisp.c (try_window_id): Fix the fix and set the right
975 window_end_vpos.
976
977 * xdisp.c (try_window_id): Fix computation of window end in the
978 case that lines were deleted at the end of the window. Add some
979 more debug_method_adds.
0416532f 980
7bd2d083
GM
981 * xfaces.c (try_alternative_families): New function.
982 (try_font_list): Use it. If ATTRS specifies a family, check
983 fonts from that family first.
984 (choose_face_font): Remove code setting the family part of
985 the pattern to nil.
986
23fca891
GM
9872001-05-10 Gerd Moellmann <gerd@gnu.org>
988
ff9aa2ca
GM
989 * xdisp.c (try_window_id): Fix case of all changes before
990 the window start.
7b2654b5 991
23fca891
GM
992 * xdisp.c (try_window_id): Add some xasserts.
993
e9726794
GM
9942001-05-09 Gerd Moellmann <gerd@gnu.org>
995
996 * lisp.h (GLYPH_CHAR_VALID_P): Use CHAR_VALID_P.
997
9e53a675
GM
9982001-05-09 Dave Love <fx@gnu.org>
999
1000 * xdisp.c (GIVE_UP): Fix for K&R C.
1001
0d487c52
GM
10022001-05-09 Gerd Moellmann <gerd@gnu.org>
1003
fe88d421
GM
1004 * print.c (syms_of_print) <print-length, print-level>: Doc fix.
1005
0d487c52
GM
1006 * xterm.c (note_mouse_highlight): Don't change the mouse cursor
1007 back to the text cursor shape without need.
1008
1e9fc92e
GM
10092001-05-07 Gerd Moellmann <gerd@gnu.org>
1010
a2a6232e
GM
1011 * xfns.c (x_set_foreground_color): Set frame's cursor_pixel.
1012
1013 * dispextern.h (inverse_video): Declare extern.
1014
1e9fc92e
GM
1015 * keyboard.c (delete_kboard): Handle the case that selected_frame
1016 has been deleted in the course of x_connection_closed.
1017
12949a7f
EZ
10182001-05-03 Eli Zaretskii <eliz@is.elta.co.il>
1019
7b2654b5
SM
1020 * xterm.c (XTread_socket) <Expose> [!USE_TOOLKIT_SCROLL_BARS]:
1021 Fix the change from 2001-04-30.
12949a7f 1022
2fa2f461
GM
10232001-05-03 Gerd Moellmann <gerd@gnu.org>
1024
a779d213
GM
1025 * xfns.c (file_dialog_unmap_cb): New function.
1026 (Fx_file_dialog): Use it as XmNunmapCallback to capture the case
1027 where a dialog is closed via the window manager.
1028
7b2654b5 1029 * xdisp.c (try_window_id): Cases of changes all in front of
2fa2f461
GM
1030 the window start or all below the window end mostly rewritten.
1031 (redisplay_window): Move the tests if try_window_id is
1032 applicable to try_window_id.
1033 (GIVE_UP): New macro.
1034
3356df63
GM
10352001-05-02 Gerd Moellmann <gerd@gnu.org>
1036
a39202f6 1037 * xterm.c (expose_window): Return int. If W is the window
7b2654b5
SM
1038 currently being updated, mark the frame garbaged.
1039 Fix computation of rows intersecting the exposed rectangle.
a39202f6 1040 (expose_window_tree): Stop when expose_window returns 0.
7b2654b5 1041
3356df63
GM
1042 * xterm.c (x_draw_stretch_glyph_string): Don't draw background
1043 again if it has already been drawn.
1044
a9d2fd1d
SM
10452001-05-01 Stefan Monnier <monnier@cs.yale.edu>
1046
1047 * syntax.c (update_syntax_table): Check that oldi has the same
1048 properties as old_prop before deciding not to invalidate.
1049
c95fc5f1
GM
10502001-04-30 Gerd Moellmann <gerd@gnu.org>
1051
a9793e45
GM
1052 * undo.c (Fprimitive_undo): In a writable buffer, enable undoing
1053 read-only text that is so because of text properties.
1054
c95fc5f1 1055 * xterm.c (x_window_to_menu_bar) [USE_LUCID]: New function.
a9d2fd1d 1056 (XTread_socket) <Expose> [USE_LUCID]: Handle events for
c95fc5f1
GM
1057 windows that are components of a Lucid menu bar.
1058
5a5d9185
GM
10592001-04-27 Gerd Moellmann <gerd@gnu.org>
1060
1061 * term.c (turn_on_face): Fix reverse video handling on terminals
1062 that don't support colors.
1063
ba973f7a
GM
10642001-04-26 Gerd Moellmann <gerd@gnu.org>
1065
1066 * editfns.c (save_excursion_restore): Don't use XBUFFER on
1067 a non-buffer.
1068
8c56a983
GM
10692001-04-25 Gerd Moellmann <gerd@gnu.org>
1070
a728644c
GM
1071 * term.c (toggle_highlight): New function.
1072 (turn_on_face): Change handling of reverse video.
1073
7b2654b5
SM
1074 * process.c (wait_reading_process_input):
1075 Call record_asynch_buffer_change only if a timer really changed buffers.
c88164fe 1076
bfd8410f
GM
1077 * buffer.c (mouse_face_overlay_overlaps): Fix the computation
1078 of the number of overlays to check.
1079
be2488ca
GM
1080 * keyboard.c (command_loop_1): Redo change of 2001-03-12.
1081
8c56a983
GM
1082 * xdisp.c (try_window_id): Fix a case where window_end_pos
1083 and window_end_bytepos were not adjusted.
1084
522d42f7
GM
10852001-04-23 Gerd Moellmann <gerd@gnu.org>
1086
1087 * xfaces.c (compute_char_face): If buffer is unibyte, set CH to
1088 zero instead of -1.
1089
78c1afb6
EZ
10902001-04-21 Eli Zaretskii <eliz@is.elta.co.il>
1091
a9d2fd1d
SM
1092 * process.c (wait_reading_process_input) [!subprocesses]:
1093 Don't reference waiting_for_user_input_p, it's not defined in the
1094 branch without async subprocesses support.
78c1afb6 1095
a2fab450
GM
10962001-04-19 Gerd Moellmann <gerd@gnu.org>
1097
a122a38e
GM
1098 * keyboard.c (delete_kboard): Prevent a dangling reference
1099 from current_kboard to KB, which is freed.
1100
a9d2fd1d
SM
1101 * process.c (wait_reading_process_input):
1102 Call record_asynch_buffer_change after running timers, to make
a2fab450
GM
1103 read_key_sequence aware of buffer changes from under it.
1104
0f8d6dc7
GM
11052001-04-18 Gerd Moellmann <gerd@gnu.org>
1106
eeffb293
GM
1107 * xfaces.c (Qscalable_fonts_allowed): New variable.
1108 (realizing_basic_faces_p): Removed.
2fa2f461
GM
1109 (x_face_list_fonts): Special handling for realizing_basic_faces_p
1110 removed.
eeffb293 1111 (realize_basic_faces): Specbind Qscalable_fonts_allowed to t.
7b2654b5
SM
1112 (syms_of_xfaces): Initialize Qscalable_fonts_allowed. Change default
1113 for scalable-fonts-allowed to t.
eeffb293 1114
0f8d6dc7
GM
1115 * fileio.c (Finsert_file_contents): If the file size returned from
1116 stat is zero, set END to READ_BUF_SIZE. This makes sure we can
a9d2fd1d 1117 read from files on a procfs whose contents are generated dynamically.
0f8d6dc7 1118
eec2d1de
EZ
11192001-04-18 Eli Zaretskii <eliz@is.elta.co.il>
1120
1121 * gmalloc.c (__malloc_size_t) [__GNUC__]: If STDC_HEADERS is not
1122 defined, include stddef.h and use __SIZE_TYPE__ instead of size_t.
1123 (__memalign_hook): Make the two prototypes consistent.
1124
f4f480bd
GM
11252001-04-17 Gerd Moellmann <gerd@gnu.org>
1126
1127 * xdisp.c (redisplay_window): Make sure to clear the desired glyph
1128 matrix of mini-windows.
1129
52283633
SM
11302001-04-12 Stefan Monnier <monnier@cs.yale.edu>
1131
1132 * intervals.c (find_interval): Don't rebalance during signal handling.
1133
ec2423c9
GM
11342001-04-11 Gerd Moellmann <gerd@gnu.org>
1135
30cb0001 1136 * fns.c: Include blockinput.h.
52283633 1137
ec2423c9
GM
1138 * fns.c (Fplist_get): Don't QUIT if interrupt_input_blocked.
1139
719d83ad
GM
11402001-04-10 Gerd Moellmann <gerd@gnu.org>
1141
60f8d735
GM
1142 * fns.c (Fcompare_strings): Fix return values.
1143
afffeb57
GM
1144 * window.c (window_scroll): Change the meaning of N to mean
1145 N screen-fulls or N lines.
1146 (window_scroll_pixel_based, window_scroll_line_based)
1147 (scroll_command, Fscroll_other_window): Change accordingly.
1148
52283633
SM
1149 * window.c (window_scroll_pixel_based, Frecenter):
1150 Call window_box_height instead of using it.last_visible_y for the
afffeb57
GM
1151 height of the window.
1152
1153 * xdisp.c (redisplay_window) <recenter>: Call window_box_height
1154 instead of using it.last_visible_y for the height of the window.
52283633 1155
719d83ad 1156 * w32proc.c (sys_spawnve): Quote more chars for Cygwin.
8ddf3ee1 1157 From Dan Holmsand <dan@eyebee.com>.
719d83ad
GM
1158
1159 * w32.c (sys_open): Try to open file without _O_CREAT first, to be
8ddf3ee1
GM
1160 able to write to hidden and system files. From Dan Holmsand
1161 <dan@eyebee.com>.
719d83ad 1162
8ddf3ee1
GM
1163 * fileio.c (Fcopy_file) [WINDOWSNT]: Use CopyFile. From Dan
1164 Holmsand <dan@eyebee.com>.
719d83ad 1165
522ed7fb
GM
11662001-04-09 Gerd Moellmann <gerd@gnu.org>
1167
9170e5d4
GM
1168 * fns.c (Fplist_get, Fplist_put): Add QUITs.
1169
522ed7fb
GM
1170 * window.c (window_internal_height): Return 1 less if the
1171 window has a header line.
1172
1173 * xdisp.c (try_window_id): When scrolling on a terminal, take
1174 the change of window_internal_height into account.
1175
ceeb3d7d
EZ
11762001-04-09 Eli Zaretskii <eliz@is.elta.co.il>
1177
1178 * gmalloc.c (align): If the argument SIZE would overflow
1179 __malloc_ptrdiff_t, fail right away.
1180
63685b9d
GM
11812001-04-06 Gerd Moellmann <gerd@gnu.org>
1182
1183 * xfns.c (compute_tip_xy): Add parameters WIDTH and HEIGHT.
1184 Make sure the tooltip is completely visible.
1185 (x_make_gc): Use FRAME_X_SCREEN_NUMBER.
1186
1187 * xterm.h (FRAME_X_SCREEN_NUMBER): New macro.
1188
1189 * xmenu.c (xmenu_show): Use FRAME_X_SCREEN_NUMBER.
1190
3ffb33bb
DL
11912001-04-06 Dave Love <fx@gnu.org>
1192
52283633
SM
1193 * composite.c (update_compositions) <check_mask & CHECK_HEAD>:
1194 Fix test of `from'.
3ffb33bb 1195
869fb12c
GM
11962001-04-06 Gerd Moellmann <gerd@gnu.org>
1197
52283633 1198 * composite.h (COMPOSITION_VALID_P): Allow integers as cdrs of PROP.
afa3935f 1199
869fb12c
GM
1200 * xdisp.c (Qinhibit_eval_during_redisplay): Make it a Lisp_Object.
1201
441bf856
GM
12022001-04-05 Gerd Moellmann <gerd@gnu.org>
1203
4d664b04
GM
1204 * sysdep.c (getwd) [!HAVE_GETWD]: Unblock input before returning.
1205
52283633 1206 * editfns.c (Fcurrent_time_zone): Accept spaces in timezone names.
a55e4e68 1207
30ca89f5
GM
1208 * xfns.c (Vmotif_version_string) [USE_MOTIF]: New variable.
1209 (syms_of_xfns): DEFVAR_LISP it. Initialize from XmVERSION_STRING.
1210
1211 * xmenu.c (free_frame_menubar) [USE_MOTIF]: Preserve the
1212 shell widget's position only if it is non-null.
1213
52283633
SM
1214 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]:
1215 Set f->output_data.x->widget to null after destroying it.
30ca89f5 1216
81a81c0f
GM
1217 * fns.c (Frequire): Doc fix. Rename parameter FILE_NAME to
1218 FILENAME to bring it in synch with the documentation.
1219
441bf856
GM
1220 * xfaces.c (realizing_basic_faces_p): Renamed from
1221 realize_default_face_p.
1222 (realize_basic_faces): Set/clear realizing_basic_faces_p.
1223 (realize_default_face): Don't set the flag.
1224
702a1e8e
GM
12252001-04-04 Gerd Moellmann <gerd@gnu.org>
1226
1013f4e3
GM
1227 * lisp.h (echoing, echo_message_buffer, cancel_echoing): Declare.
1228
52283633
SM
1229 * keyboard.c (echoing, echo_message_buffer): Make externally visible.
1230
1013f4e3
GM
1231 * xdisp.c (with_echo_area_buffer): Avoid confusion from reusing
1232 the buffer that was used for echoing.
1233
702a1e8e
GM
1234 * xfaces.c (best_matching_font): Remove unused parameter PATTERN.
1235 (first_font_matching): Removed unused function.
1236 (x_face_list_fonts): Remove unused parameter SCALABLE_P.
1237 (may_use_scalable_font_p): Remove parameter FONT; rename
1238 parameter NAME to FONT.
1239 (x_face_list_fonts): Fix missing bounds check.
1240 (realizing_default_face_p): New variable.
1241 (realize_default_face): Set and clear that flag.
1242 (x_face_list_fonts): When called during the realization of the
1243 default face, and no matching fonts are found when ignoring
1244 scalable fonts and fonts matching a regexp from
1245 face-ignored-fonts, try without ignoring fonts.
1246
f9dbcda4
GM
12472001-04-03 Gerd Moellmann <gerd@gnu.org>
1248
ad18ffb1
GM
1249 * xfns.c (postprocess_image): New function.
1250 (lookup_image): Call it for all image types except PostScript.
1251 (x_kill_gs_process): Call postprocess_image.
1252
f9dbcda4
GM
1253 * xterm.c (x_use_underline_position_properties): New variable.
1254 (x_draw_glyph_string): Use it.
1255 (syms_of_xterm): DEFVAR_BOOL it.
1256
651f03b6
GM
12572001-04-02 Gerd Moellmann <gerd@gnu.org>
1258
1259 * xterm.c (x_alloc_nearest_color_1): New function.
1260 (x_alloc_nearest_color): Use it.
1261 (x_color_cells): Take a Display as argument, instead of a frame.
1262 (cvt_string_to_pixel_args, cvt_string_to_pixel_value): New variables.
1263 (cvt_string_to_pixel, cvt_pixel_dtor): New functions.
1264 (x_initialize): Register cvt_string_to_pixel as resource converter
1265 string -> Pixel and cvt_pixel_dtor as pixel resource destructor.
1266
73d75a62
GM
12672001-03-30 Gerd Moellmann <gerd@gnu.org>
1268
b2046df8
GM
1269 * xdisp.c (get_overlay_strings): Set iterator's end_charpos.
1270 (set_iterator_to_next): If a string from a display property ends,
1271 consider the case that this might also be the end of an
1272 overlay string having the display property.
1273
52283633 1274 * xdisp.c (handle_display_prop): Fix recognition of subproperty lists.
b2046df8 1275
87d8eba4
GM
1276 * xdisp.c (reseat_to_string): Undo last change.
1277
73d75a62
GM
1278 * dispnew.c (adjust_glyph_matrix): Don't try to reuse the current
1279 matrix of a window when the header line changes, when
1280 new rows are allocated, or when the width changes.
1281
911a2406
EZ
12822001-03-30 Eli Zaretskii <eliz@is.elta.co.il>
1283
52283633 1284 * print.c (Fprin1, Fprin1_to_string, Fprinc, Fprint): Fix last change.
911a2406 1285
aea51abe
EZ
12862001-03-29 Eli Zaretskii <eliz@is.elta.co.il>
1287
1288 * fileio.c (syms_of_fileio) <directory-sep-char>: Warn that it is
1289 deprecated.
1290
176bc847
GM
12912001-03-29 Gerd Moellmann <gerd@gnu.org>
1292
ed31fabf
GM
1293 * data.c (Fsubr_interactive_form): New function.
1294 (syms_of_data): Defsubr it.
1295
176bc847
GM
1296 * alloc.c (live_string_p, live_cons_p, live_symbol_p)
1297 (live_float_p, live_misc_p): Return 1 only if the offset of the
1298 pointer in its block is >= 0.
1299
e59d0e9d
GM
13002001-03-28 Paul Eggert <eggert@twinsun.com>
1301
1302 * editfns.c (Ffloat_time): Fix off-by-factor-of-10 bug in the
1303 microseconds calcuation. Avoid double-rounding problem.
1304 In doc string, warn that the result is approximate.
1305
f827b862
GM
13062001-03-28 Gerd Moellmann <gerd@gnu.org>
1307
30a3f61c
GM
1308 * eval.c (call_debugger): Bind `inhibit-redisplay' to nil, and
1309 bind `inhibit-eval-during-redisplay' to t.
1310
1311 * lisp.h (Qinhibit_eval_during_redisplay): Declare extern.
1312
1313 * xdisp.c (inhibit_eval_during_redisplay)
1314 (Qinhibit_eval_during_redisplay): New variables.
1315 (safe_eval, safe_call): If inhibit_eval_during_redisplay is set,
1316 don't eval, return nil instead.
1317 (syms_of_xdisp): DEFVAR_BOOL inhibit-eval-during-redisplay.
1318 Initialize Qinhibit_eval_during_redisplay.
1319
e719f5ae
GM
1320 * xdisp.c (reseat_to_string): If STRING is multibyte, set
1321 the iterator's multibyte_p flag.
1322
deb2613a
GM
1323 * xfaces.c (realize_basic_faces): Decrement menu_face_change_count
1324 instead of setting it to zero; it's incremented for each frame
1325 where the menu face is changed.
1326
52283633
SM
1327 * xterm.c (x_draw_relief_rect): Extend left shadow to the bottom;
1328 change bottom shadow accordingly.
1329
1330 * xterm.c (expose_window_tree, expose_frame): Don't compute
a02f1be0
GM
1331 intersections here.
1332 (expose_window): Do it here instead.
52283633 1333 (x_draw_glyph_string): Fix a computation of the underline position.
a02f1be0 1334
f827b862
GM
1335 * bytecode.c (BYTE_CODE_QUIT): New macro.
1336 (Fbyte_code): Use BYTE_CODE_QUIT instead of QUIT.
1337
4bde0ebb
GM
13382001-03-27 Gerd Moellmann <gerd@gnu.org>
1339
607ec83c
GM
1340 * xdisp.c (try_window_reusing_current_matrix) <scrolling up>:
1341 Give up if matrix starts in an ellipsis.
1342 (init_from_display_pos): Do nothing if POS doesn't specify
1343 a dpvec_index but the iterator has such a position.
1344
0245398f
GM
1345 * xdisp.c (init_from_display_pos): Remove unwarranted assertion.
1346
aba25348
GM
1347 * xmenu.c (free_frame_menubar) [USE_MOTIF]: If the shell widget's
1348 x/y position is (0, 0) after destroying the menu bar, restore
1349 its original position.
1350
4bde0ebb
GM
1351 * xdisp.c (in_ellipses_for_invisible_text_p): New function.
1352 (init_from_display_pos): Use it.
1353 (try_window_reusing_current_matrix): Don't use cursor_row_p.
1354
8cdb267e
GM
13552001-03-26 Gerd Moellmann <gerd@gnu.org>
1356
1357 * xdisp.c (try_window_id): Undo last change.
1358
9948db79
EZ
13592001-03-26 Eli Zaretskii <eliz@is.elta.co.il>
1360
1361 * print.c (Fprin1, Fprin1_to_string, Fprinc, Fprint): Doc fix.
1362
1363 * buffer.c (syms_of_buffer): Doc fix.
1364
2eddf899
GM
13652001-03-26 Gerd Moellmann <gerd@gnu.org>
1366
1367 * xfaces.c (x_update_menu_appearance): Use local variable
1368 popup_path for setting font resources.
1369
6c145d35
EZ
13702001-03-25 Eli Zaretskii <eliz@is.elta.co.il>
1371
6a65b1b5
EZ
1372 * frame.c (Fframe_list): Don't reference tip_frame if
1373 HAVE_WINDOW_SYSTEM is not defined.
1374
6c145d35
EZ
1375 * emacs.c (main): Update the copyright year. From Werner LEMBERG
1376 <wl@gnu.org>.
1377
d74c1900
GM
13782001-03-25 Gerd Moellmann <gerd@gnu.org>
1379
20fbd925
GM
1380 * xdisp.c (init_from_display_pos): Test invisible property
1381 with TEXT_PROP_MEANS_INVISIBLE instead of NILP.
52283633 1382
927c5b3b
GM
1383 * xdisp.c (redisplay_internal) <update one window>: Make sure
1384 last_arrow_position and last_arrow_string are set.
1385
d74c1900
GM
1386 * frame.c (Fframe_list): Don't return a tooltip frame.
1387
091f8878
GM
13882001-03-23 Gerd Moellmann <gerd@gnu.org>
1389
52283633
SM
1390 * xdisp.c (mark_window_display_accurate_1): New function,
1391 extracted from mark_window_display_accurate.
1392 Compute BUF_UNCHANGED_MODIFIED, BUF_OVERLAY_UNCHANGED_MODIFIED,
43c09969
GM
1393 BUF_BEG_UNCHANGED, BUF_END_UNCHANGED.
1394 (mark_window_display_accurate): Use it.
1395 (redisplay_internal): Use it for the selected window.
1396 (redisplay_internal): Avoid duplicate mark_window_display_accurate
1397 for the selected frame.
1398
ac90c44f
GM
1399 * xdisp.c Use make_number, for readability.
1400 (try_window_id): Disable rows below the window end.
1401 (try_window_reusing_current_matrix): Use cursor_row_p.
1402 (try_window_reusing_current_matrix) <scrolling up>: Fix disabling
1403 of rows.
1404 (init_from_display_pos): If POS specifies a position in a display
1405 vector, maybe get the iterator set up for that ellipsis.
43c09969 1406
091f8878
GM
1407 * xdisp.c (dump_glyph_row): Fix output for NGLYPHS == 2.
1408
991786dd
EZ
14092001-03-23 Eli Zaretskii <eliz@is.elta.co.il>
1410
1411 * xmenu.c: Include widget.h only if USE_X_TOOLKIT is defined.
1412
6c29b43c
GM
14132001-03-23 Gerd Moellmann <gerd@gnu.org>
1414
1415 * xfaces.c (x_update_menu_appearance): Use a different path
1416 for Lucid popup menus.
1417
d8731202
SM
14182001-03-22 Stefan Monnier <monnier@cs.yale.edu>
1419
1420 * xterm.c (note_mouse_highlight): Dec the int, not the Lisp_Object.
1421
1422 * xdisp.c (init_iterator): Check WINDOWP before using XWINDOW.
1423 (string_buffer_position): Use `make_number'.
1424
f61a541b
GM
14252001-03-22 Gerd Moellmann <gerd@gnu.org>
1426
3c9e997b
GM
1427 * xfaces.c (x_update_menu_appearance): Renamed from
1428 x_set_menu_face_resources. Use different resources for popups.
1429
1430 * lisp.h (Vx_resource_name) [HAVE_X_WINDOWS]: Declare extern.
1431 (GC_CHECK_STRING_BYTES): Don't define.
1432
364cd450
GM
1433 * xfaces.c (x_set_menu_resources_from_menu_face) [USE_X_TOOLKIT]:
1434 Removed, together with subroutines.
1435 (x_set_menu_face_resources) [USE_X_TOOLKIT]: New function.
d8731202 1436 (realize_basic_faces) [USE_X_TOOLKIT]: Call x_set_menu_face_resources.
364cd450 1437
d8731202
SM
1438 * dispextern.h (x_set_menu_resources_from_menu_face):
1439 Remove prototype.
364cd450 1440
d8731202 1441 * xmenu.c (update_frame_menubar, set_frame_menubar, xmenu_show):
364cd450
GM
1442 Remove calls to x_set_menu_resources_from_menu_face.
1443
d8731202
SM
1444 * xfaces.c (xm_set_menu_resources_from_menu_face):
1445 Remove #ifndef LESSTIF_VERSION.
f61a541b
GM
1446
1447 * xmenu.c: Include widget.h.
1448 (single_submenu): Return int. Some cleanup.
1449 (set_frame_menubar): Call x_set_menu_resources_from_menu_face.
1450
140330de
GM
14512001-03-21 Gerd Moellmann <gerd@gnu.org>
1452
1453 * xterm.c (x_update_window_end): Handle overwritten mouse face
1454 also for tool bar windows.
1455 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
1456 DRAW is DRAW_IMAGE_RAISED.
1457
1741905c
GM
14582001-03-20 Gerd Moellmann <gerd@gnu.org>
1459
fa88947e
GM
1460 * print.c (syms_of_print): Doc fixes.
1461
1741905c
GM
1462 * fns.c (Fmd5): Doc fix.
1463
ade0bee1
GM
14642001-03-19 Gerd Moellmann <gerd@gnu.org>
1465
357e7376
GM
1466 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
1467 Clear area of the frame not occupied by the scroll bar.
1468
c2c097cc
GM
1469 * xfns.c (x_create_tip_frame): Add parameter TEXT. Set the
1470 tip frame's root window buffer to *tip* right after creating
1471 the frame.
1472
ade0bee1
GM
1473 * xdisp.c (highlight_trailing_whitespace): Glyphs whose object
1474 is an integer don't have to be for space characters.
1475
88c6e37e
GM
14762001-03-16 Gerd Moellmann <gerd@gnu.org>
1477
52283633
SM
1478 * indent.c (current_column, current_column_1, Fmove_to_column)
1479 (compute_motion): Handle characters from display vectors differently.
88c6e37e 1480
c62eed76
KH
14812001-03-15 Kenichi Handa <handa@etl.go.jp>
1482
1483 * xterm.c (x_draw_glyph_string): Draw relief (if any) before
1484 drawing glyph string.
1485
c899e7e6
GM
14862001-03-15 Gerd Moellmann <gerd@gnu.org>
1487
d0bbfc99
GM
1488 * keyboard.c (timer_check): Preserve the value of deactivate-mark.
1489 (command_loop_1): Undo last change.
1490
03d1a189
GM
1491 * xterm.c (fast_find_position): Return the correct vpos.
1492
c899e7e6 1493 * data.c (store_symval_forwarding): Add parameter BUF. If BUF is
52283633 1494 non-null, set a per-buffer value in BUF instead of the current buffer.
c899e7e6
GM
1495 (swap_in_global_binding, swap_in_symval_forwarding, Fset_default):
1496 Call store_symval_forwarding with BUF null.
1497 (set_internal): Call store_symval_forwarding with the BUF
1498 parameter passed to set_internal. Formerly, the value was always
1499 set in the current buffer; the buffer recorded in specbind for
1500 this case wasn't used.
1501 (arith_driver): Reindent.
1502
52283633
SM
1503 * buffer.c (swap_out_buffer_local_variables):
1504 Call store_symval_forwarding with BUF null.
c899e7e6
GM
1505
1506 * lisp.h (store_symval_forwarding): Change prototype.
1507
1508 * eval.c (specbind): Call store_symval_forwarding with BUF null.
1509
57ac7c81
GM
15102001-03-14 Gerd Moellmann <gerd@gnu.org>
1511
697617d9
GM
1512 * frame.c (do_switch_frame): Remove unused parameter NO_EVENT, add
1513 FOR_DELETION. Avoid resizing the mini-window of the selected
1514 frame if FOR_DELETION is set.
1515 (Fselect_frame, Fhandle_switch_frame, Fdelete_frame)
1516 (Fmake_frame_invisible): Change calls to do_switch_frame for new
1517 signature.
1518
1519 * window.c (Fset_window_configuration): Change call to
1520 do_switch_frame to new format.
1521
1522 * keyboard.c (quit_throw_to_read_char): Change call to
1523 do_switch_frame to new format.
1524
1525 * lisp.h (do_switch_frame): Change prototype.
1526
819dce0f
GM
1527 * frame.c (Fframe_parameters): In the `buffer-list' frame
1528 parameter, store the buffer list of FRAME, not the list of the
1529 selected frame.
1530
57ac7c81
GM
1531 * xterm.c (x_draw_glyph_string_box): Don't draw a full-width
1532 box just because the glyph row's full_width_p flag is set.
1533
65008712
GM
15342001-03-14 Eli Zaretskii <eliz@is.elta.co.il>
1535
1536 * xdisp.c (highlight_trailing_whitespace): On character terminals,
1537 skip the padding blanks inserted in extend_face_to_end_of_line,
1538 before checking for trailing whitespace.
1539
159cf431
GM
15402001-03-13 Gerd Moellmann <gerd@gnu.org>
1541
52283633 1542 * xmenu.c (popup_activate_callback, popup_deactivate_callback):
19b2bb80
GM
1543 Remove special handling for LessTif/Motif.
1544 (toplevel): Don't include Xm/Xm.h.
1545
52283633
SM
1546 * xterm.c (XTread_socket) <LeaveNotify, EnterNotify>:
1547 Remove workaround code for LessTif; it doesn't work anymore.
1548
2564ea1b 1549 * xterm.c [USE_TOOLKIT_SCROLL_BARS && USE_MOTIF]: Don't include
57ac7c81 1550 Xm/ScrollBarP.h.
afcdc0a1 1551
52283633
SM
1552 * xterm.c (x_set_toolkit_scroll_bar_thumb) [USE_MOTIF]:
1553 Don't access private scroll bar data; it's no longer necessary with
23442ae4
GM
1554 contemporary LessTif.
1555
52283633
SM
1556 * xfaces.c (xm_set_menu_resources_from_menu_face):
1557 Change #if 0 to #ifndef LESSTIF_VERSION.
9faaaa52 1558
159cf431
GM
1559 * xmenu.c (xmenu_show) [LESSTIF_VERSION]: Take out the code
1560 removing button grabs.
1561
c6f7429a
KH
15622001-03-13 Kenichi Handa <handa@etl.go.jp>
1563
cb82d767
KH
1564 * fontset.c (syms_of_fontset): Describe highlight-wrong-size-font
1565 and clip-large-size-font as obsolete.
1566
c6f7429a
KH
1567 * lread.c (read_multibyte): Check the validity of multibyte
1568 sequence. If invalid, return the first byte.
1569
760cefb5
GM
15702001-03-12 Gerd Moellmann <gerd@gnu.org>
1571
1572 * keyboard.c (command_loop_1): Set Vdeactivate_mark to nil
1573 before running the command; timer functions or process
1574 filters may have set it.
1575
5141f9d0
EZ
15762001-03-12 Eli Zaretskii <eliz@is.elta.co.il>
1577
1578 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
1579 Doc fix.
1580
b6a15240
GM
15812001-03-12 Gerd Moellmann <gerd@gnu.org>
1582
1583 * xrdb.c (x_load_resources) [USE_MOTIF]: Remove extraneous arg
1584 to sprintf.
1585
95522746
GM
15862001-03-09 Gerd Moellmann <gerd@gnu.org>
1587
db14cfc5
GM
1588 * dispextern.h (string_buffer_position): Add prototype.
1589
52283633 1590 * xdisp.c (string_buffer_position, display_prop_string_p)
db14cfc5
GM
1591 (single_display_prop_string_p): New functions.
1592
1593 * xterm.c (note_mouse_highlight): If there's no help-echo on
1594 a string, look at the buffer text ``under'' it.
1595
1596 * keyboard.c (make_lispy_event): Add string info to the event,
1597 analogous to what's done on mode lines.
1598 (read_key_sequence): For a click on a string, consider `local-map'
1599 and `keymap' of that string.
1600
52283633
SM
1601 * keyboard.c (make_lispy_event, make_lispy_movement):
1602 Adjust calls to buffer_posn_from_coords to new format.
3cfd8357
GM
1603
1604 * dispextern.h (buffer_posn_from_coords): Adjust prototype.
1605
1606 * dispnew.c (buffer_posn_from_coords): Add parameters OBJECT and
1607 POS; return void.
1608
95522746
GM
1609 * fileio.c (Fwrite_region) [DOS_NT]: Remove O_TRUNC from open
1610 flags argument to emacs_open; it seems to conflict with O_EXCL.
1611
898a399d
KH
16122001-03-09 Kenichi Handa <handa@etl.go.jp>
1613
28cd4910
KH
1614 * composite.h (struct composition): Change types of members;
1615 glyph_len to unsigned, width to unsigned short.
898a399d 1616
4cdf6a6c
AI
16172001-03-08 Andrew Innes <andrewi@gnu.org>
1618
1619 * w32menu.c (add_menu_item): Fix problems with using ownerdraw for
1620 menu titles.
1621
129004d3
GM
16222001-03-08 Gerd Moellmann <gerd@gnu.org>
1623
221dd3e7
GM
1624 * xdisp.c (handle_display_prop): Use it->w->buffer as object,
1625 instead of nil.
1626
52283633 1627 * xterm.c (note_mouse_highlight): Handle mouse-face and
5de7c6f2
GM
1628 help-echo in strings.
1629 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
1630 (fast_find_string_pos): New function.
1631
52283633
SM
1632 * xdisp.c (handle_face_prop, face_before_or_after_it_pos)
1633 (display_string): Call face_at_string_position with new parameter.
5de7c6f2
GM
1634
1635 * xfaces.c (face_at_string_position): Add parameter MOUSE_P.
1636 Handle `mouse-face'.
1637
1638 * dispextern.h (face_at_string_position): Change prototype.
1639
52283633 1640 * dired.c (directory_files_internal): Handle EAGAIN more efficiently.
e1fbabaf 1641
129004d3
GM
1642 * keyboard.c (make_lispy_event): Avoid generating drag events
1643 if the mouse hasn't actually moved to another buffer position.
52283633 1644
80c8ab8c
DL
16452001-03-08 Dave Love <fx@gnu.org>
1646
129004d3 1647 * eval.c (syms_of_eval) <debug-on-error>: Doc fix.
80c8ab8c 1648
989521fd
GM
16492001-03-08 Gerd Moellmann <gerd@gnu.org>
1650
1651 * process.c (Fset_process_window_size): Fix a typo.
1652
bb5c338d
KH
16532001-03-08 Kenichi Handa <handa@etl.go.jp>
1654
1655 * coding.c (detect_coding_sjis): Do more rigid check.
1656 (detect_coding_big5): Likewise.
1657 (decode_coding_sjis_big5): Likewise.
1658 (Fdetect_coding_region): Call detect_coding_system with tailing
1659 anchor byte `\0' for more rigid detection.
52283633 1660 (detect_coding_mask): Fix the incorrect handling of arg MULTIBYTEP.
bb5c338d
KH
1661 (Fdetect_coding_string): Likewise.
1662
8b8f9197
SM
16632001-03-07 Stefan Monnier <monnier@cs.yale.edu>
1664
1665 * bytecode.c (Fbyte_code) <Btemp_output_buffer_setup>: Check the arg is
1666 a string before extracting its data.
1667
3bdf2660
GM
16682001-03-07 Gerd Moellmann <gerd@gnu.org>
1669
1670 * window.c (Frecenter): Rewrite code handling negative values
1671 of ARG on graphical frames.
1672
16732001-03-07 Eli Zaretskii <a34785@is.elta.co.il>
1674
1675 * window.c (displayed_window_lines): If W->start is outside the
1676 accessible portion of the buffer, call start_display with BEGV or
1677 ZV instead of W->start.
1678
471f86b9
GM
16792001-03-07 Gerd Moellmann <gerd@gnu.org>
1680
2ab62c6c
GM
1681 * buffer.c (syms_of_buffer) <header-line-format>: Doc fix.
1682
471f86b9
GM
1683 * process.c (Fset_process_filter): Don't crash if the input
1684 file descriptor of PROCESS is closed.
1685 (Fset_process_window_size): Likewise.
1686
101922c3
GM
16872001-03-06 Kenichi Handa <handa@etl.go.jp>
1688
1689 * xterm.c (XTflash): Make the timeout of select shorter, and call
1690 select repeatedly until the desired time expires.
1691
45d051a7
GM
16922001-03-06 Gerd Moellmann <gerd@gnu.org>
1693
1694 * w32fns.c (Fx_create_frame): Clear Vwindow_list.
1695
1696 * xfns.c (Fx_create_frame): Clear Vwindow_list.
1697
1698 * lisp.h (Vwindow_list): Declare extern.
1699
8f372c46
EZ
17002001-03-06 Eli Zaretskii <eliz@is.elta.co.il>
1701
1702 * dispnew.c (syms_of_display) <glyph-table>: Doc fix.
1703
f16a7aa5
GM
17042001-03-06 Gerd Moellmann <gerd@gnu.org>
1705
157ae273
GM
1706 * xterm.c (note_mouse_highlight): Call mouse_face_overlay_overlaps
1707 to detect a case where we have to highlight a different region
1708 despite not having left the currently highlighted region.
1709 Set mouse_face_overlay in the x_display_info.
45d051a7 1710 (x_term_init): Initialize the x_display_info's mouse_face_overlay.
157ae273
GM
1711
1712 * xterm.h (struct x_display_info): Add mouse_face_overlay.
1713
1714 * buffer.c (mouse_face_overlay_overlaps): New function.
1715
1716 * lisp.h (mouse_face_overlay_overlaps): Add prototype.
1717 (Qmouse_face): Declare extern.
1718
f16a7aa5
GM
1719 * xdisp.c (redisplay_internal): Set windows_or_buffers_changed
1720 if face_change_count is non-zero.
1721
827afcac
KH
17222001-03-06 Kenichi Handa <handa@etl.go.jp>
1723
1724 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>: Fix for the case
1725 that the source is unibyte.
1726
14c7242e
DL
17272001-03-05 Dave Love <fx@gnu.org>
1728
827afcac 1729 * xterm.c (XTmouse_position): Fix typo.
14c7242e 1730
c28b847b
GM
17312001-03-05 Gerd Moellmann <gerd@gnu.org>
1732
1733 * minibuf.c (read_minibuf): Clean up the binding stack if
1734 called noninteractively.
1735
b86644f2
KH
17362001-03-05 Kenichi Handa <handa@etl.go.jp>
1737
1738 * coding.c (syms_of_coding): Docstring modified.
1739
203682cc 17402001-03-05 Kenichi Handa <handa@etl.go.jp>
b86644f2
KH
1741
1742 * charset.c (char_to_string): If a single byte char has modifier
1743 bits that can't be reflected to the character code, ignore them
45d051a7 1744 instead of signaling an error.
b86644f2 1745
e30bd7b7
EZ
17462001-03-04 Eli Zaretskii <eliz@is.elta.co.il>
1747
1748 * s/msdos.h: Update copyright notice.
1749
1750 * dosfns.h: Update copyright notice.
1751
1752 * dosfns.c: Update copyright notice.
1753
1754 * msdos.c: Update copyright notice.
1755
b52b65bd
GM
17562001-03-02 Gerd Moellmann <gerd@gnu.org>
1757
1758 * xterm.c (glyph_rect): New function.
1759 (XTmouse_position): Use it to raise the threshold for mouse
1760 movement event generation.
1761
53c4b1e6
EZ
17622001-03-02 Eli Zaretskii <eliz@is.elta.co.il>
1763
1764 * msdos.c (Fmsdos_remember_default_colors): If default-frame-alist
1765 specifies (reverse . t), reverse the initial screen colors.
1766 (IT_set_frame_parameters): If the property is foreground-color,
52283633
SM
1767 but we are reversing the colors, set bg_set, not fg_set.
1768 Likewise for setting background-color and reversing: set fg_set.
1769 Set unspecified-fg and unspecified-bg correctly when (reverse . t) is
53c4b1e6
EZ
1770 in effect.
1771
1772 * xfaces.c (Finternal_set_lisp_face_attribute)
1773 [!HAVE_WINDOW_SYSTEM]: Record the new attribute in the frame's
1774 parameters alist.
1775
f964b4d7
GM
17762001-03-02 Gerd Moellmann <gerd@gnu.org>
1777
ef53d75e
GM
1778 * fileio.c (Fexpand_file_name): Collapse sequences of slashes
1779 to a single slash in the middle of file names.
1780
52283633 1781 * editfns.c (Fcurrent_time_zone) [HAVE_TM_ZONE || HAVE_TZNAME]:
cda0f4da
GM
1782 Accept only alphanumeric time zone names.
1783
f964b4d7
GM
1784 * xterm.c (XTset_vertical_scroll_bar): Don't clear a zero height
1785 or width area.
1786 (XTset_vertical_scroll_bar, x_scroll_bar_create): Don't configure
1787 a widget to zero height.
52283633 1788
c3c45f65
GM
17892001-03-01 Gerd Moellmann <gerd@gnu.org>
1790
1791 * window.c (Fwindow_end): Call move_it_past_eol only if
1792 ending up on a partially visible line.
1793
028d739a
DL
17942001-03-01 Dave Love <fx@gnu.org>
1795
1796 * ccl.c (Fccl_execute): Doc fix.
1797
57c5889c
GM
17982001-03-01 Gerd Moellmann <gerd@gnu.org>
1799
35f59f6b
GM
1800 * xfns.c (Fx_create_frame): Adjust the frame's height for presence
1801 of the tool bar before calling x_figure_window_size.
1802
f84ff02c
GM
1803 * xmenu.c (free_frame_menubar): Set the frame's menubar_widget to
1804 NULL after destroying it, otherwise XTread_socket can access a
1805 destroyed widget when input is unblocked.
1806
8b8f9197 1807 * xfns.c (x_set_foreground_color): Set the background of the cursor GC.
52283633 1808
57c5889c
GM
1809 * xfns.c (x_set_font): Handle case of x_new_fontset returning the
1810 same name as before, although there was a change in fontsets.
1811
224227d1
KR
18122001-02-28 Ken Raeburn <raeburn@gnu.org>
1813
4560730a
KR
1814 * lisp.h (Fframe_parameter): Declare.
1815
224227d1 1816 * window.c (set_window_buffer): Field vscroll is an int, not a
57c5889c 1817 Lisp_Object.
224227d1 1818
ece93c02
GM
18192001-02-28 Gerd Moellmann <gerd@gnu.org>
1820
11ef99b9
GM
1821 * xterm.c (x_set_window_size): Don't use `None' with widgets; use
1822 NULL instead.
1823
1824 * xfns.c (Fx_hide_tip): Don't use `None' with widgets; use
1825 NULL instead.
1826
ece93c02
GM
1827 * alloc.c (toplevel): Include process.h.
1828 (enum mem_type): Add MEM_TYPE_PROCESS, MEM_TYPE_HASH_TABLE,
1829 MEM_TYPE_FRAME, MEM_TYPE_WINDOW enumerators.
1830 (allocate_vectorlike): Make it a static function. Add parameter TYPE.
52283633
SM
1831 (allocate_vector, allocate_hash_table, allocate_window)
1832 (allocate_frame, allocate_process, allocate_other_vector):
1833 New functions.
ece93c02
GM
1834 (Fmake_vector): Call allocate_vector instead of allocate_vectorlike.
1835 (mark_maybe_pointer): New function.
52283633 1836 (mark_memory): Also mark Lisp data to which only pointers
ece93c02
GM
1837 remain and not Lisp_Objects.
1838 (min_heap_address, max_heap_address): New variables.
1839 (mem_find): Return MEM_NIL if START is below min_heap_address or
1840 above max_heap_address.
1841 (mem_insert): Compute min_heap_address and max_heap_address.
1842
1843 * process.c (make_process): Use allocate_process.
1844
1845 * frame.c (make_frame): Use allocate_frame.
1846
1847 * window.c (make_window, make_dummy_parent): Use allocate_window.
1848 (Fcurrent_window_configuration): Use allocate_other_vector.
1849
1850 * lisp.h (allocate_vectorlike): Remove prototype.
1851 (allocate_vector, allocate_other_vector, allocate_frame)
1852 (allocate_window, allocate_process, allocate_hash_table):
1853 Add prototypes.
1854
1855 * fns.c (Fdelete, larger_vector): Use allocate_vector.
1856 (make_hash_table, copy_hash_table): Use allocate_hash_table.
1857
063af457
KH
18582001-02-27 Kenichi Handa <handa@etl.go.jp>
1859
1860 * coding.c (ccl_coding_driver): If ccl->eight_bit_control is zero,
1861 treat the produced bytes as a valid multibyte sequence.
1862
1863 * ccl.c (CCL_WRITE_MULTIBYTE_CHAR): New macro.
52283633
SM
1864 (ccl_driver) <CCL_WriteMultibyteChar2>:
1865 Use CCL_WRITE_MULTIBYTE_CHAR instead of CCL_WRITE_CHAR.
063af457
KH
1866 <ccl_finish>: Set ccl->eight_bit_control properly.
1867
1868 * ccl.h (struct ccl_program): New member eight_bit_control.
1869
f58c6494
SM
18702001-02-26 Stefan Monnier <monnier@cs.yale.edu>
1871
1872 * keymap.c (Faccessible_keymaps): Pass `is_metized' to
1873 accessible_keymaps_char_table.
1874 (accessible_keymaps_char_table): Obey `is_metized'.
1875 (where_is_internal, Fwhere_is_internal): Don't confuse int and
1876 Lisp_Object.
1877
c596c392
GM
18782001-02-26 Gerd Moellmann <gerd@gnu.org>
1879
1880 * dispnew.c: Check HAVE_TERM_H before including term.h.
1881
425de386
AI
18822001-02-24 Andrew Innes <andrewi@gnu.org>
1883
1884 * makefile.w32-in: Update copyright notice.
1885
2ba11bbd
SM
18862001-02-24 Stefan Monnier <monnier@cs.yale.edu>
1887
1888 * keymap.c (where_is_internal): Accept non-ascii integer prefixes.
1889
66c56ed1
KH
18902001-02-24 Kenichi Handa <handa@etl.go.jp>
1891
4c1593ce
KH
1892 * Makefile.in (lisp): Add international/utf-8.elc.
1893
66c56ed1
KH
1894 * fontset.c (Fnew_fontset): Fix handling of the case that an
1895 element of FONTLIST is a cons of family and registry.
1896
796ead7e
JR
18972001-02-23 Jason Rumney <jasonr@gnu.org>
1898
1899 * w32fns.c (Fx_create_frame): Don't add FRAME_TOOL_BAR_LINES
1900 to height unconditionally.
1901
1902 * w32term.c (x_set_glyph_string_background_width): Extend the
52283633 1903 background face to the end of the drawing area in the text area, only.
796ead7e
JR
1904 (x_insert_glyphs): Call window_box_left to obtain the left
1905 x-coordinate of the area to shift.
1906
1907 * w32menu.c (set_frame_menubar): Run activate-menu-bar-hook with
1908 safe_run_hooks.
1909
f6839838
AI
19102001-02-22 Andrew Innes <andrewi@gnu.org>
1911
52283633 1912 * makefile.nt ($(BLD)\dired.obj): Remove reference to VMS header files.
f6839838
AI
1913 ($(BLD)\dispnew.obj):
1914 ($(BLD)\editfns.obj):
1915 ($(BLD)\fileio.obj):
1916 ($(BLD)\filelock.obj):
1917 ($(BLD)\keyboard.obj):
1918 ($(BLD)\w32proc.obj):
1919 ($(BLD)\process.obj):
1920 ($(BLD)\sysdep.obj): Ditto.
1921
1922 * makefile.w32-in ($(BLD)/dired.$(O)): Remove reference to VMS
1923 header files.
52283633
SM
1924 ($(BLD)/dispnew.$(O)):
1925 ($(BLD)/editfns.$(O)):
1926 ($(BLD)/fileio.$(O)):
1927 ($(BLD)/filelock.$(O)):
1928 ($(BLD)/keyboard.$(O)):
1929 ($(BLD)/w32proc.$(O)):
1930 ($(BLD)/process.$(O)):
f6839838
AI
1931 ($(BLD)/sysdep.$(O)): Ditto.
1932
c224f70b
GM
19332001-02-22 Gerd Moellmann <gerd@gnu.org>
1934
51695746
GM
1935 * xdisp.c (forward_to_next_line_start): When taking the shortcut
1936 at the start of the function, check that the \n in it->c is
1937 from the iterator's current position.
52283633 1938
a61b7058
GM
1939 * xdisp.c (handle_single_display_prop): Add parameter
1940 DISPLAY_REPLACED_BEFORE_P. If it is non-zero ignore display
1941 properties which replace the display of text with something else.
1942 (handle_display_prop): Call handle_single_display_prop with
1943 additional argument saying if we already replaced text display
1944 with something else. Use AREF.
52283633 1945 (with_echo_area_buffer_unwind_data, display_menu_bar)
a61b7058
GM
1946 (decode_mode_spec_coding): Use AREF and ASIZE.
1947
3473f362
GM
1948 * vms-pp.c, vmsdir.h, vmsmap.c, vmsproc.h, vms-pp.trans, vmsfns.c,
1949 * vmspaths.h, vmstime.c, vms-pwd.h, vmsgmalloc.c, vmsproc.c,
1950 * vmstime.h: Files removed.
52283633 1951
2bb58df3
GM
1952 * unexencap.c, unexfx2800.c: Files removed.
1953
c224f70b
GM
1954 * dispnew.c (direct_output_for_insert): Give up if we are showing
1955 a message or just cleared the message because we might need to
1956 resize the echo area window or display an empty echo area.
1957
ffc9ff0c
GM
19582001-02-21 Gerd Moellmann <gerd@gnu.org>
1959
0528abe1
GM
1960 * xdisp.c (redisplay_internal): Do the
1961 mark_window_display_accurate after all windows have been
1962 redisplayed because this call resets flags in buffers which are
1963 needed for proper redisplay.
1964
52283633
SM
1965 * keyboard.c, minibuf.c, lread.c, fns.c, eval.c:
1966 Use display_hourglass_p, start_hourglass, cancel_hourglass instead of
ffc9ff0c
GM
1967 the old names.
1968
52283633
SM
1969 * w32term.h (struct x_output): Rename busy_cursor to hourglass_cursor,
1970 busy_window to hourglass_window, busy_p to hourglass_p.
ffc9ff0c
GM
1971
1972 * msdos.h (struct x_output): Rename busy_window to
1973 hourglass_window, busy_p to hourglass_p.
1974
52283633
SM
1975 * xterm.h (struct x_output): Rename busy_cursor to hourglass_cursor,
1976 busy_window to hourglass_window, busy_p to hourglass_p.
ffc9ff0c
GM
1977
1978 * xfns.c: Rename everything containing *busy_cursor* and similar
1979 to *hourglass*.
1980 (syms_of_w32fns): Rename x-busy-pointer-shape to
1981 x-hourglass-pointer-shape, display-busy-cursor to
1982 display-hourglass, busy-cursor-delay to hourglass-delay.
1983
1984 * w32fns.c: Rename everything containing *busy_cursor* and similar
1985 to *hourglass*.
1986 (syms_of_w32fns): Rename x-busy-pointer-shape to
1987 x-hourglass-pointer-shape, display-busy-cursor to
1988 display-hourglass, busy-cursor-delay to hourglass-delay.
1989
1990 * xterm.c (XTread_socket): Test x_output's hourglass_p instead
1991 of its busy_p flag.
1992
1993 * dispextern.h (start_hourglass, cancel_hourglass)
1994 (display_hourglass_p): Renamed from *busy_cursor*.
1995
ab2c5f0a
GM
19962001-02-20 Gerd Moellmann <gerd@gnu.org>
1997
d17e49a8
GM
1998 * keyboard.c (read_char): When an event from unread-command-events
1999 is from the tool or menu bar, set *USE_MOUSE_MENU to 1.
2000
fa97adf6
GM
2001 * window.c (Fwindow_end): Handle case that WINDOW's buffer is not
2002 equal to the current buffer.
2003
ab2c5f0a
GM
2004 * xdisp.c (setup_echo_area_for_printing): Set truncate_lines to
2005 nil, otherwise we're left with truncate_lines t when a message
2006 is printed with message-truncate-lines bound to t.
2007
aeac019e
GM
20082001-02-19 Gerd Moellmann <gerd@gnu.org>
2009
c8bc6f65
GM
2010 * window.c (Fmove_to_window_line): Undo last change.
2011 (displayed_window_lines): Call line_bottom_y to determine
2012 the line's bottom position.
2013
2014 * dispextern.h (line_bottom_y): Add prototype.
2015
52283633 2016 * xdisp.c (line_bottom_y): New function extracted from pos_visible_p.
c8bc6f65
GM
2017 (pos_visible_p): Use it.
2018
980a2d69
GM
2019 * keyboard.c (recursive_edit_1): Bind `inhibit-redisplay' and
2020 set redisplaying_p to 0 here instead of in Frecursive_edit.
2021 (Frecursive_edit): Don't bind `inhibit-redisplay' and don't
2022 set redisplaying_p.
2023
52283633 2024 * xdisp.c (Qinhibit_menubar_update, inhibit_menubar_update):
184d2372
GM
2025 New variables.
2026 (syms_of_xdisp): Initialize new variables.
2027 (update_menu_bar): Do nothing if inhibit_menubar_update is set.
2028 Specbind `inhibit-menubar-update' when updating the menu bar.
2029
65048e97
GM
2030 * xmenu.c (set_frame_menubar): Run activate-menu-bar-hook with
2031 safe_run_hooks.
2032
2033 * xdisp.c (update_menu_bar): Run activate-menu-bar-hook with
2034 safe_run_hooks.
2035
a57c4026
GM
2036 * emacs.c (malloc_initialize_hook): Handle case thet `environ'
2037 is null.
2038
aeac019e
GM
2039 * ralloc.c (__morecore) [!SYSTEM_MALLOC]: Move declaration
2040 to the start of the file.
2041
76846b31
GM
20422001-02-16 Gerd Moellmann <gerd@gnu.org>
2043
f3f053f3 2044 * window.c (set_window_buffer): Fix last change.
52283633 2045
f3f053f3
GM
2046 * window.c (set_window_buffer): Set window's vscroll to 0.
2047
dad75588
GM
2048 * window.c (coordinates_in_window): Increase width of area
2049 where the vertical line can be dragged.
2050
c220b753
GM
2051 * xterm.c (x_set_glyph_string_background_width): Extend the
2052 background face to the end of the drawing area in the text
2053 area, only.
2054
c56b1c1b
GM
2055 * xdisp.c (handle_single_display_prop): Set iterator's position
2056 to where the `display' property starts, like for images.
2057 (dump_glyph): New function.
2058 (dump_glyph_row): Use it. Dump info about marginal areas.
2059
2060 * dispnew.c (direct_output_for_insert): Recognize more cases where
2061 glyphs can be written instead of being inserted.
2062
2063 * xterm.c (x_insert_glyphs): Call window_box_left to obtain
2064 the left x-coordinate of the area to shift.
2065
76846b31
GM
2066 * dired.c (directory_files_internal): Set result list to nil
2067 before retrying.
2068
0fc71a77
KH
20692001-02-15 Kenichi Handa <handa@etl.go.jp>
2070
2071 * ccl.c (ccl_driver) [CCL_ReadMultibyteChar2]: If SRC points an
2072 invalid multibyte sequence, treat *SRC as a character of
2073 eight-bit-graphic.
2074
25078b54
EZ
20752001-02-15 Eli Zaretskii <eliz@is.elta.co.il>
2076
2077 * textprop.c (Fset_text_properties): Doc fix.
2078
8399f8a0
GM
20792001-02-15 Gerd Moellmann <gerd@gnu.org>
2080
2081 * dispnew.c (update_text_area): Undo change of 2001-01-12.
2082
9a2a6f73
DL
20832001-02-14 Dave Love <fx@gnu.org>
2084
2085 * coding.c: Doc and message fixes.
2086
bf853fee
AI
20872001-02-14 Andrew Innes <andrewi@gnu.org>
2088
2089 * w32fns.c (w32_wnd_proc) <WM_GETMINMAXINFO>: Allow resizing the
2090 Emacs frame above the screen size.
2091
78c663d8
GM
20922001-02-14 Gerd Moellmann <gerd@gnu.org>
2093
2094 * xdisp.c (reseat_1): Set iterator's end_charpos to ZV.
2095
7cc9f69f
GM
20962001-02-13 Gerd Moellmann <gerd@gnu.org>
2097
0a411995
GM
2098 * insdel.c (del_range_1, del_range_byte, del_range_both): Handle
2099 case that TO ends up beyond ZV after running before-change-functions.
2100
5ddc1b75
GM
2101 * window.c (window_loop) <GET_BUFFER_WINDOW>: Prefer to return
2102 the selected window if it is showing the buffer in question.
2103
7cc9f69f
GM
2104 * dired.c (directory_files_internal): Initialize errno.
2105 (toplevel): Include errno.h.
2106
2e6621ca
GM
21072001-02-13 Kenichi Handa <handa@etl.go.jp>
2108
2109 * xfaces.c (best_matching_font): New parameter width_ratio.
2110 Multiply avgwidth by width_ratio.
2111 (choose_face_font): Call best_matching_font with width_ratio
2112 calculated from the column width of C.
2113
60222d69
AI
21142001-02-12 Andrew Innes <andrewi@gnu.org>
2115
2116 The following changes are to draw box lines inside characters area
2117 if line-width is negative.
52283633 2118
60222d69
AI
2119 * w32term.c (x_produce_image_glyph): Pay attention to the case that
2120 face->box_line_width is negative.
2121 (x_produce_stretch_glyph): Likewise.
2122 (x_produce_glyphs): Likewise.
2123 (x_estimate_mode_line_height): Likewise.
2124 (x_draw_glyph_string_background): Likewise.
2125 (x_draw_glyph_string_foreground): Likewise.
2126 (x_draw_composite_glyph_string_foreground): Likewise.
2127 (x_draw_glyph_string_box): Likewise.
2128 (x_draw_image_foreground): Likewise.
2129 (x_draw_image_relief): Likewise.
2130 (x_draw_image_foreground_1): Likewise.
2131 (x_draw_image_glyph_string): Likewise.
2132
9804b846
KH
21332001-02-09 Kenichi Handa <handa@etl.go.jp>
2134
2135 The following changes are to draw box lines inside characters area
2136 if line-width is negative.
52283633 2137
9804b846
KH
2138 * xterm.c (x_produce_image_glyph): Pay attention to the case that
2139 face->box_line_width is negative.
2140 (x_produce_stretch_glyph): Likewise.
2141 (x_produce_glyphs): Likewise.
2142 (x_estimate_mode_line_height): Likewise.
2143 (x_draw_glyph_string_background): Likewise.
2144 (x_draw_glyph_string_foreground): Likewise.
2145 (x_draw_composite_glyph_string_foreground): Likewise.
2146 (x_draw_glyph_string_box): Likewise.
2147 (x_draw_image_foreground): Likewise.
2148 (x_draw_image_relief): Likewise.
2149 (x_draw_image_foreground_1): Likewise.
2150 (x_draw_image_glyph_string): Likewise.
2151
2152 * xfaces.c (Finternal_set_lisp_face_attribute): The value of :box
2153 and :line-width can be negative.
52283633 2154 (realize_x_face): The value of attrs[LFACE_BOX_INDEX] can be negative.
9804b846 2155
49be9f70
JR
21562001-02-09 Jason Rumney <jasonr@gnu.org>
2157
2158 * w32term.c (w32_encode_char): Treat eight bit graphic and control
2159 characters the same as ASCII and latin-1.
2160 (x_display_and_set_cursor): Check for the focus frame's selected
2161 window instead of selected_window.
2162 (x_after_update_window_line): Don't clear if frame's internal
2163 border width is zero.
2164 (x_new_font): Don't change a tooltip's size.
2165 (w32_initialize): Set char_ins_del_ok to 1.
2166
2167 * w32fns.c (Fx_show_tip): Fix calls to make_number.
2168 (x_set_font): If font hasn't changed, avoid recomputing
2169 faces and other things.
52283633
SM
2170 (x_set_tool_bar_lines): Do nothing if frame is minibuffer-only,
2171 (Fx_create_frame): Add the tool bar height to the frame height.
49be9f70
JR
2172 (x_create_tip_frame): Prevent changing the tooltip's
2173 background color by specifying a color for the default font
2174 in .Xdefaults.
2175 (Qcancel_timer): New variable.
2176 (syms_of_w32fns): Initialize and staticpro it.
2177 (Fx_hide_tip, Fx_show_tip): Use it.
2178 (Fx_show_tip): Make sure to set tip_timer to nil when canceling
2179 the timer.
2180 (toplevel): Lisp code for generating parts of syms_of_w32fns removed.
2181
2182 * w32.c (init_environment): Duplicate local string before putenv.
2183
555e35d2
SZ
21842001-02-09 ShengHuo ZHU <zsh@cs.rochester.edu>
2185
2186 * charset.c (Fstring): A typo.
2187
19c92c94
KH
21882001-02-09 Kenichi Handa <handa@etl.go.jp>
2189
e47a1c33
KH
2190 * charset.c (Fstring): If all arguments are less than 256, return
2191 a unibyte string.
2192
2193 * editfns.c (Fchar_to_string): If CHARACTER is less than 256,
2194 return a unibyte string.
2195
19c92c94
KH
2196 * coding.c (code_convert_region): After detecting a coding, if
2197 nothing found, set coding->composing to COMPOSITION_NO.
2198 (decode_coding_string): Likewise.
2199
d8e675f5
SM
22002001-02-08 Stefan Monnier <monnier@cs.yale.edu>
2201
2202 * w32term.c (w32_set_scroll_bar_thumb): Use `double' for `range'
2203 to avoid overflow.
2204
bd503487
KH
22052001-02-07 Kenichi Handa <handa@etl.go.jp>
2206
2207 * charset.c (parse_str_to_multibyte): New function.
2208
2209 * charset.h (parse_str_to_multibyte): Extern it.
2210
2211 * print.c (print_string): If we are going to print a unibyte
2212 string into a multibyte buffer, convert the string to multibyte by
2213 str_to_multibyte.
2214
a8370d72
AI
22152001-02-06 Andrew Innes <andrewi@gnu.org>
2216
2217 * w32xfns.c (select_palette): Do nothing if palette hasn't yet
2218 been created. It seems we can get sent window messages such as
2219 WM_ERASEBKGND before we properly update a frame.
2220
c363a1d6
GM
22212001-02-06 Gerd Moellmann <gerd@gnu.org>
2222
2223 * dispnew.c (update_frame_line): Rename parameter FRAME to F.
2224 Avoid some unnecessary cursor positioning.
2225
a08332c0
GM
22262001-02-05 Gerd Moellmann <gerd@gnu.org>
2227
52283633 2228 * xfaces.c (split_font_name): Compute numeric value of XLFD_AVGWIDTH.
a08332c0
GM
2229 (LFACE_AVGWIDTH): New macro.
2230 (LFACEP): Use AREF.
2231 (check_lface_attrs): Check LFACE_AVGWIDTH.
2232 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
2233 (set_lface_from_font_name): Set LFACE_AVGWIDTH.
2234 (merge_face_vectors): Check LFACE_AVGWIDTH.
2235 (Finternal_make_lisp_face): Use AREF.
2236 (xm_set_menu_resources_from_menu_face)
2237 (xl_set_menu_resources_from_menu_face): Check LFACE_AVGWIDTH.
2238 (Finternal_lisp_face_empty_p): Use AREF.
2239 (lface_same_font_attributes_p): Compare LFACE_AVGWIDTH.
2240 (better_font_p, exact_face_match_p): Add parameter AVGWIDTH.
2241 Compare average widths..
2242 (best_matching_font): Arrange for comparing average widths.
2243
52283633
SM
2244 * dispextern.h (enum lface_attribute_index):
2245 Add LFACE_AVGWIDTH_INDEX (invisible from Lisp).
2246
5cb3c8d4
DL
22472001-02-05 Dave Love <fx@gnu.org>
2248
2249 * puresize.h: Revert last change following loadup.el change.
2250
193fba87
AI
22512001-02-05 Andrew Innes <andrewi@gnu.org>
2252
2253 * makefile.w32-in ($(EMACS)): Use $(THISDIR) instead of . in
2254 invocation of temacs, to work with Windows 2000.
2255 (bootstrap-emacs): Ditto.
2256
e16f52ce
GM
22572001-02-05 Gerd Moellmann <gerd@gnu.org>
2258
7a58ab59
GM
2259 * xterm.c (x_display_and_set_cursor): Check for the focus
2260 frame's selected window instead of selected_window.
2261
e89aaabd
GM
2262 * xdisp.c (try_scrolling): If point is in the line below the
2263 window, make sure to move the iterator at least a canonical
2264 char height down.
2265
52283633 2266 * window.c (Fmove_to_window_line): Don't add 1 if window is vscrolled.
e16f52ce 2267
789ce875
KH
22682001-02-05 Kenichi Handa <handa@etl.go.jp>
2269
52283633
SM
2270 * ccl.c (CCL_WRITE_CHAR): Check if CH is valid or not.
2271 If invalid, execute CCL_INVALID_CMD.
789ce875
KH
2272 (ccl_driver): If the CCL program is terminated because of
2273 CCL_STAT_INVALID_CMD, copy the remaining source data to the
2274 destination instead of throwing them away.
2275
20b28f82
GM
22762001-02-02 Gerd Moellmann <gerd@gnu.org>
2277
79fb38c0
GM
2278 * xfns.c (x_set_font): If font hasn't changed, avoid recomputing
2279 faces and other things.
2280
20b28f82
GM
2281 * xdisp.c (get_next_display_element): Fix case of empty
2282 display table entry.
2283
5a72551e
EZ
22842001-02-02 Eli Zaretskii <eliz@is.elta.co.il>
2285
eb24d0bf
EZ
2286 * editfns.c (Fconstrain_to_field): Doc fix.
2287
6a3f48c7
EZ
2288 * xfaces.c (Fclear_face_cache): Rename the `thorougly' argument
2289 into `thoroughly', to make it consistent with the doc string.
2290
5a72551e
EZ
2291 * window.c (Fenlarge_window, Fshrink_window): Doc fix.
2292
01acdb05
GM
22932001-02-01 Gerd Moellmann <gerd@gnu.org>
2294
0353b28f
GM
2295 * search.c (search_buffer): Call set_search_regs with a byte
2296 position, not a character position.
2297
01acdb05
GM
2298 * xfns.c (x_set_tool_bar_lines): Do nothing if frame is
2299 minibuffer-only,
2300
e86b5133
EZ
23012001-02-01 Eli Zaretskii <eliz@is.elta.co.il>
2302
2303 * frame.c (Fmodify_frame_parameters): Doc fix.
2304
7442878f
GM
23052001-01-31 Gerd Moellmann <gerd@gnu.org>
2306
01acdb05
GM
2307 * frame.h (EMACS_FRAME_H_INCLUDED): Use an include blocker
2308 identifier which is not reserved by Standard C.
52283633 2309
7442878f
GM
2310 * frame.h (FRAME_RIGHT_SCROLL_BAR_WIDTH): New define.
2311
2312 * window.c (enum window_part): New enumeration.
2313 (Qleft_fringe, Qright_fringe): Replace Qleft_bitmap_area and
2314 Qright_bitmap_area.
2315 (coordinates_in_window): Return an enumerator from enum
2316 window_part. Fix handling of right scroll bar.
2317 (Fcoordinates_in_window_p): Doc fix. Return `left-fringe' and
2318 `right-fringe' instead of `left-bitmap-area' and
2319 `right-bitmap-area'. Use enumerators from enum window_part
2320 instead of hard-coded integers.
52283633
SM
2321 (check_window_containing, window_from_coordinates):
2322 Use enumerators from enum window_part instead of hard-coded integers.
7442878f
GM
2323 (syms_of_window): Replace Qleft_bitmap_area and
2324 Qright_bitmap_area.with Qleft_fringe and Qright_fringe.
2325
7c132cba
EZ
23262001-01-31 Eli Zaretskii <eliz@is.elta.co.il>
2327
2328 * editfns.c (Fformat_time_string): Doc fix.
2329
c359dd9e
SM
23302001-01-31 Stefan Monnier <monnier@cs.yale.edu>
2331
2332 * keymap.c (Fwhere_is_internal): Use the first valid binding
2333 if no ascii binding is found (when firstonly is t).
2334
ce070307
GM
23352001-01-31 Gerd Moellmann <gerd@gnu.org>
2336
b4f30ec5
GM
2337 * window.c (Fscroll_right, Fscroll_left): Use interactive_p
2338 instead of Finteractive_p.
2339
2340 * lisp.h (interactive_p): Add prototype.
2341
2342 * eval.c (interactive_p): New function.
2343 (Finteractive_p): Use it.
2344
ce070307
GM
2345 * alloc.c (Fmake_list): Add a QUIT in the loop; unroll the loop.
2346
f57b6e64
DL
23472001-01-31 Dave Love <fx@gnu.org>
2348
d61c7afe
DL
2349 * .gdbinit (hook-run): Define to run xreload.
2350
f57b6e64
DL
2351 * textprop.c (Fset_text_properties): Fix newline in doc string.
2352
eef93f99
GM
23532001-01-30 Gerd Moellmann <gerd@gnu.org>
2354
52283633
SM
2355 * xdisp.c (build_desired_tool_bar_string, syms_of_xdisp):
2356 Use DEFAULT_TOOL_BAR_BUTTON_MARGIN and DEFAULT_TOOL_BAR_BUTTON_RELIEF.
eef93f99
GM
2357
2358 * dispextern.h (Vtool_bar_button_margin:): Declare extern.
52283633 2359 (DEFAULT_TOOL_BAR_BUTTON_MARGIN, DEFAULT_TOOL_BAR_BUTTON_RELIEF)
eef93f99
GM
2360 (DEFAULT_TOOL_BAR_IMAGE_HEIGHT): New defines.
2361
2362 * xfns.c (Fx_create_frame): Add the tool bar height to the frame
2363 height.
2364
d9c1f6f9
DL
23652001-01-30 Dave Love <fx@gnu.org>
2366
2367 * bytecode.c (Fbyte_code) <Bgeq>: Add BEFORE_POTENTIAL_GC and
2368 AFTER_POTENTIAL_GC.
2369
e8f044a0
GM
23702001-01-29 Gerd Moellmann <gerd@gnu.org>
2371
52283633
SM
2372 * bytecode.c (Fbyte_code) <Bcurrent_column>:
2373 Add BEFORE_POTENTIAL_GC and AFTER_POTENTIAL_GC.
e8f044a0 2374
8e1db7b3
EZ
23752001-01-29 Eli Zaretskii <eliz@is.elta.co.il>
2376
2377 * textprop.c (Fset_text_properties): Doc fix.
2378
4eefd9d2
GM
23792001-01-29 Gerd Moellmann <gerd@gnu.org>
2380
2381 * xdisp.c (forward_to_next_line_start): Remove xassert.
2382
fccb8288
EZ
23832001-01-29 Jason Rumney <jasonr@gnu.org>
2384
4eefd9d2 2385 * w32term.c (x_draw_row_bitmaps): Delay obtaining HDC to avoid
fccb8288
EZ
2386 returning without releasing it.
2387
76581eab
KH
23882001-01-29 Kenichi Handa <handa@etl.go.jp>
2389
2390 * w32fns.c (w32_font_match): Allocate three more bytes to regex
2391 for '^', '$', and '\0'.
2392
83a96b4d
AC
23932001-01-28 Andrew Choi <akochoi@i-cable.com>
2394
5604ec34
AC
2395 * fontset.c (fontset_pattern_regexp): Allocate three more bytes to
2396 regex for '^', '$', and '\0'.
2397
83a96b4d
AC
2398 * alloc.c (allocate_string) [macintosh]: Call check_string_bytes
2399 only if current_sblock has been initialized.
2400
2401 * frame.c (Fdelete_frame) [macintosh]: Allow deletion of initial
2402 terminal frame even if it is the only visible frame.
2403
c09a6440
KH
24042001-01-28 Kenichi Handa <handa@etl.go.jp>
2405
2406 * fontset.c (font_family_registry): Even if FONTNAME conform to
2407 XLFD, if it specifies other fields than family and registry,
52283633 2408 return FONTANME. New argument FORCE if nonzero cancel that feature.
c09a6440 2409 (fontset_font_pattern): Call font_family_registry with FORCE 1 for
52283633
SM
2410 a signle byte character. Don't set FAMILY part to nil here.
2411 It is handled by the caller choose_face_font.
c09a6440
KH
2412 (Fnew_fontset): Call font_family_registry with FORCE 0.
2413 (Fset_fontset_font): Likewise.
2414
4dcd74e6
GM
24152001-01-27 Gerd Moellmann <gerd@gnu.org>
2416
2417 * xdisp.c (display_line): Don't treat a newline as fitting
2418 on the line.
2419
d2906bf8
GM
24202001-01-26 Gerd Moellmann <gerd@gnu.org>
2421
0130fe1a
GM
2422 * window.c (size_window): Set the window's orig_top to nil when
2423 changing heights, so that a future shrink_mini_window won't
2424 restore a bogus height.
2425
550f0e6a
GM
2426 * frame.c (do_switch_frame): If selected frame has a mini-window,
2427 resize that to exact size.
2428
b7b20fbd
GM
2429 * dispnew.c (adjust_glyph_matrix): Always clear desired matrices.
2430
a47b7816
GM
2431 * xdisp.c (display_line): Simplify check for glyphs fitting
2432 entirely in the line.
2433
d2906bf8
GM
2434 * xfns.c (xic_style): New variable.
2435 (create_frame_xic): Move static variable to global scope for
550f0e6a 2436 the case that `static' gets defined away.
d2906bf8 2437
73df2b1e
KH
24382001-01-26 Kenichi Handa <handa@etl.go.jp>
2439
2440 * coding.c (decode_coding): Set a flag for inhibiting
2441 inconsistent eol.
2442 (code_convert_region): Always set saved_coding_symbol.
2443 (decode_coding_string): Likewise. Update coding->symbol when we
52283633 2444 encounter a inconsistent eol by the same way as code_convert_region.
73df2b1e 2445
6613cfc4
GM
24462001-01-25 Gerd Moellmann <gerd@gnu.org>
2447
c5e6e06b
GM
2448 * xfns.c (x_set_tool_bar_lines): Use x_clear_area instead of
2449 XClearArea.
2450
2451 * xterm.c (x_after_update_window_line): Don't clear if frame's
2452 internal border width is zero.
2453 (x_clear_area): New function.
2454 (x_after_update_window_line, x_clear_end_of_line)
2455 (x_scroll_bar_create, x_scroll_bar_set_handle)
2456 (XTset_vertical_scroll_bar, x_erase_phys_cursor): Use x_clear_area
2457 instead of XClearArea.
2458
2459 * xterm.h (x_clear_area): Add prototype.
2460
6613cfc4
GM
2461 * xfns.c (Fx_file_dialog): Remove a workaround for Lesstif
2462 which doesn't seem necessary anymore with Lesstif 0.92.
2463
650cc6cc
DL
24642001-01-25 Dave Love <fx@gnu.org>
2465
34ac3367
DL
2466 * puresize.h (BASE_PURESIZE): Up to 720000.
2467
650cc6cc
DL
2468 * keymap.c (Fwhere_is_internal): Declare gcpro3, gcpro4.
2469
5e37dc22
GM
24702001-01-25 Gerd Moellmann <gerd@gnu.org>
2471
e1e441f9
GM
2472 * xdisp.c (echo_area_display): Don't call redisplay_internal
2473 when Emacs is shutting down. We can't run hooks etc. that
2474 would be necessary to do a redisplay.
2475
5e37dc22
GM
2476 * lread.c (read_integer): Use type EMACS_INT instead of int.
2477
0fb94c7f
EZ
24782001-01-25 Eli Zaretskii <eliz@is.elta.co.il>
2479
2480 * ccl.c (ccl_driver): Fix last change.
2481
e3778624
KH
24822001-01-25 Kenichi Handa <handa@etl.go.jp>
2483
2484 * ccl.h (sturct ccl_program): New member suppress_error.
2485
bb264518 2486 * ccl.c (ccl_driver): If ccl->suppress_error is nonzero, don't
e3778624
KH
2487 insert error message to the output.
2488 (setup_ccl_program): Initialize ccl->suppress_error to 0.
2489
2490 * coding.h (struct coding_system): New member suppress_error.
2491
2492 * coding.c (ccl_coding_driver): Setup ccl->suppress_error.
2493 (Fset_terminal_coding_system_internal): Set the member
2494 suppress_error to 1.
2495 (Fset_safe_terminal_coding_system_internal): Likewise.
2496
245ed2b1
SM
24972001-01-24 Stefan Monnier <monnier@cs.yale.edu>
2498
2499 * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
2500 as if it was a `charset'.
2501
f9aaedb6
GM
25022001-01-24 Gerd Moellmann <gerd@gnu.org>
2503
2504 * keymap.c (Fwhere_is_internal): Don't nreverse the cached
2505 value in where_is_cache; the next lookup in the cache returns
2506 something bogus if we do.
2507
c3902c3e
EZ
25082001-01-24 Eli Zaretskii <eliz@is.elta.co.il>
2509
2510 * xdisp.c (syms_of_xdisp) <Stool_bar_lines_needed>: Don't defsubr
2511 if HAVE_WINDOW_SYSTEM isn't defined.
2512
3497f73e
GM
25132001-01-24 Gerd Moellmann <gerd@gnu.org>
2514
e7e41584
GM
2515 * fns.c (sweep_weak_table): Fix code taking items out of
2516 the hash collision chain. Some cleanup.
2517
3497f73e
GM
2518 * xterm.c (x_new_font): Don't change a tooltip's size.
2519
2520 * xfns.c (x_create_tip_frame): Prevent changing the tooltip's
2521 background color by specifying a color for the default font
2522 in .Xdefaults.
2523
3d48e687
KH
25242001-01-24 Kenichi Handa <handa@etl.go.jp>
2525
96531b20
KH
2526 * ccl.c (CCL_READ_CHAR): Change the argument name from r to REG as
2527 a workaround for SunOS 4's cc.
2528 (CCL_CALL_FOR_MAP_INSTRUCTION): Use "if (1)..." not "do {...".
2529 (CCL_SUCCESS, CCL_SUSPEND, CCL_INVALID_CMD): Likewise.
2530 (ccl_driver) <CCL_ReadMultibyteChar2>: Remove unnecessay "do"
2531 statement.
3d48e687 2532
a30629d2
GM
25332001-01-23 Gerd Moellmann <gerd@gnu.org>
2534
2535 * xterm.c (x_set_window_size_1): New function extracted from
2536 x_set_window_size.
2537 (x_set_window_size): Use it.
2538 (x_set_window_size) [USE_X_TOOLKIT]: Handle case that window
2539 doesn't have a widget, like tooltips.
2540
5a43decf
EZ
25412001-01-23 Eli Zaretskii <eliz@is.elta.co.il>
2542
52283633 2543 * window.c (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
5a43decf 2544
b0e98867
KH
25452001-01-23 Kenichi Handa <handa@etl.go.jp>
2546
2547 * fns.c (Fset_char_table_default): Fix to make sub char-table
2548 correctly.
2549
50606b4c
GM
25502001-01-22 Gerd Moellmann <gerd@gnu.org>
2551
cb2ddc53 2552 * xdisp.c (build_desired_tool_bar_string): Make sure we have
52283633
SM
2553 a desired tool bar string, even if there are no tool bar items.
2554
57c28064
GM
2555 * xdisp.c (Ftool_bar_lines_needed): New function.
2556 (syms_of_xdisp): Defsubr it.
2557
50606b4c
GM
2558 * editfns.c (Fformat): Don't extend text properties from arguments
2559 to padding chars in the result.
2560
2f169c38
EZ
25612001-01-20 Eli Zaretskii <eliz@is.elta.co.il>
2562
2563 * s/msdos.h (GC_MARK_STACK): Define to GC_MAKE_GCPROS_NOOPS.
2564
0f32f023
AI
25652001-01-20 Andrew Innes <andrewi@gnu.org>
2566
52283633 2567 * w32term.c (w32_ring_bell): Only support visible bell on w32 frames.
0f32f023
AI
2568 (w32_initialize): Don't set term hooks that aren't actually needed
2569 in windowed mode.
2570
2571 * xfaces.c (realize_default_face):
2572 (realize_face):
2573 (realize_tty_face): Remove references to FRAME_W32_CONSOLE_P.
2574
2575 * xdisp.c (handle_single_display_prop): Remove references to
2576 FRAME_W32_CONSOLE_P.
2577
52283633 2578 * dispnew.c (Fredraw_frame): Remove reference to FRAME_W32_CONSOLE_P.
0f32f023
AI
2579
2580 * frame.h (output_method): Remove output_w32_console method.
2581 (FRAME_W32_CONSOLE_P): Remove macro.
2582
2583 * frame.c (Qw32_console): Remove variable.
2584 (Fframep): Remove references to it.
2585 (syms_of_frame): Ditto.
2586 (Fframe_parameters): Remove references to FRAME_W32_CONSOLE_P.
2587
2588 * term.c (FRAME_TERMCAP_P) [WINDOWSNT]: Reinstate original
2589 redefinition.
2590
7173eada
KH
25912001-01-20 Kenichi Handa <handa@etl.go.jp>
2592
2593 * editfns.c (Fformat): Use lisp_string_width instead of strwidth.
2594
755b45ce
AI
25952001-01-19 Andrew Innes <andrewi@gnu.org>
2596
2597 * w32.c (init_environment): Add a version-independent site-lisp
2598 directory to EMACSLOADPATH, after the version dependent one.
2599
0a949811
GM
26002001-01-19 Gerd Moellmann <gerd@gnu.org>
2601
8501998a
GM
2602 * editfns.c (Fbuffer_substring): Doc fix.
2603
52283633
SM
2604 * xdisp.c (message_dolog, message2, message2_nolog):
2605 Rename parameter LEN to NBYTES.
0a949811 2606
e6ebcbbe
KH
26072001-01-19 Kenichi Handa <handa@etl.go.jp>
2608
200ecca2
KH
2609 * charset.c (strwidth): Use c_string_width.
2610 (c_string_width): New function.
2611 (lisp_string_width): New arguments PRECISION, NCHARS, NBYTES.
2612 Caller changed.
2613
2614 * charset.h (c_string_width, lisp_string_width): Extern them.
2615
52283633 2616 * doprnt.c (doprnt1): Get byte length of Lisp string correctly.
200ecca2 2617
e6ebcbbe
KH
2618 * indent.c (check_composition): Check validity of composition.
2619
200ecca2
KH
2620 * xdisp.c (store_frame_title): Pay attention to width of non-ASCII
2621 characters by calling c_string_width.
2622 (x_consider_frame_title): Get byte length of frame tile string
2623 correctly.
2624 (display_mode_element): Pay attention to width of non-ASCII
2625 characters by calling strwidth.
2626
8692ca92
GM
26272001-01-18 Gerd Moellmann <gerd@gnu.org>
2628
8962e303
GM
2629 * xfns.c (Qcancel_timer): New variable.
2630 (syms_of_xfns): Initialize and staticpro it.
2631 (Fx_hide_tip, Fx_show_tip): Use it.
2632 (Fx_show_tip): Make sure to set tip_timer to nil when canceling
2633 the timer.
2634 (toplevel): Lisp code for generating parts of syms_of_xfns removed.
2635
91523be9
GM
2636 * window.c (Fwindow_live_p): Use WINDOW_LIVE_P.
2637
2638 * window.h (WINDOW_LIVE_P): New macro.
2639
b0b7ed0e
GM
2640 * window.c (window_size_fixed): New variable.
2641 (syms_of_window): Add a DEFVAR_BOOL for window-size-fixed, for
2642 the doc string.
2643
06bccf8e
GM
2644 * eval.c (specbind): If binding a per-buffer variable which
2645 doesn't have a buffer-local value in the current buffer, change
2646 the global value by changing the value of the symbol bound in all
2647 buffers not having their own value, to make it consistent with
2648 what happens with other buffer-local variables.
2649
8692ca92
GM
2650 * xterm.c (x_initialize): Set char_ins_del_ok to 1.
2651
2652 * xdisp.c (forward_to_next_line_start): Stop at end of buffer
2653 when searching for a newline.
2654
bb3a3b50
KH
26552001-01-18 Kenichi Handa <handa@etl.go.jp>
2656
2657 * xdisp.c (display_string): Fix previous change.
2658
c2cc16fa
JR
26592001-01-18 Jason Rumney <jasonr@gnu.org>
2660
2661 * w32term.c (x_produce_stretch_glyph): Only use Qspace when
2662 GLYPH_DEBUG is defined.
2663 (x_produce_glyphs): Don't xassert `it->descent > 0'; this isn't
2664 true for images with `:ascent 100'.
2665 (x_set_mouse_face_gc): If the last used mouse face has gone in the
2666 meantime, use face MOUSE_FACE_ID.
2667 If first glyph isn't a character glyph, use the ASCII NUL
2668 character to determine the face.
2669 (expose_area): Do not treat left margin specially.
2670 (note_mode_line_highlight): If no local_map, check global keymap.
2671 (note_mouse_highlight): Initialize overlay.
52283633 2672 (clear_mouse_face): Don't return if tip_frame is non-nil.
c2cc16fa
JR
2673 (show_scroll_bars): Remove unused function.
2674 (w32_read_socket) [WM_KILLFOCUS]: Set help_echo to Qnil.
2675 (x_draw_bar_cursor): Remove extra test for out of bounds cursor.
2676 Clip to row.
52283633 2677 (x_erase_phys_cursor): Don't apply XWINDOW to variable that may be nil.
c2cc16fa
JR
2678 (x_free_frame_resources): Unload relief colors.
2679
9c11f79e
GM
26802001-01-17 Gerd Moellmann <gerd@gnu.org>
2681
3aec8722 2682 * xdisp.c (forward_to_next_line_start): Avoid calling
52283633
SM
2683 get_next_display_element when the newline is already found.
2684 This may change the iterator's position, when its current position is
3aec8722
GM
2685 equal to the iterator's stop_charpos.
2686
f3ffc2c3
GM
2687 * dispnew.c (direct_output_for_insert): If char_ins_del_ok is
2688 zero, use this method only at the end of a line.
2689
52283633 2690 * xfaces.c (x_face_list_fonts): Don't BLOCK_INPUT around the
a86110a8
GM
2691 call to x_list_fonts. Call x_list_fonts with SIZE -1 only
2692 if SCALABLE_FONTS_P is set.
52283633 2693
d26d6fd9
GM
2694 * xfaces.c (x_face_list_fonts): Call x_list_fonts with SIZE -1,
2695 so that scalable fonts are included.
2696
9c11f79e
GM
2697 * xterm.c (x_list_fonts): Allow scalable fonts if SIZE is < 0,
2698 In the cache, use a key containing the information if scalable
2699 fonts are included.
2700 (x_load_font): Adapt to change of keys in the font cache.
2701
27022001-01-17 Kim F. Storm <storm@filanet.dk>
52283633 2703
d26d6fd9
GM
2704 * xfaces.c (x_face_list_fonts): Use x_list_fonts instead of
2705 XListFonts to take advantage of font caching.
2706
9c11f79e
GM
2707 * xterm.c (x_list_fonts): Ensure caching font information when
2708 called for a null frame, which is the case frequently when Emacs
2709 starts.
2710
51446987
GM
27112001-01-17 Gerd Moellmann <gerd@gnu.org>
2712
f864120f
GM
2713 * xfns.c (QCconversion): Replaces QCalgorithm.
2714
2715 * w32fns.c (QCconversion): Replaces QCalgorithm. Update copyright.
2716
2717 * xdisp.c (build_desired_tool_bar_string): Use :conversion instead
2718 of :algorithm.
52283633 2719
e37d1417
GM
2720 * xdisp.c (redisplay_tool_bar): Change tool bar's height when
2721 not everything could be displayed.
2722
51446987
GM
2723 * line.h, x-list-font.c: Files removed because unused.
2724
9ad4f3e5
AI
27252001-01-17 Andrew Innes <andrewi@gnu.org>
2726
2727 * dired.c (directory_files_internal): Convert result from readdir
2728 to a unibyte string initially, to avoid possible misinterpretation
2729 of some bytes as the internal form of Emacs characters.
2730
2eda09b5
KH
27312001-01-17 Kenichi Handa <handa@etl.go.jp>
2732
2733 * fns.c (concat): Be sure to avoid putting the same `composition'
2734 property on the adjacent regions.
2735
826f3788
GM
27362001-01-16 Gerd Moellmann <gerd@gnu.org>
2737
52283633 2738 * window.c (Fset_window_hscroll): Don't set window's min_hscroll here.
f251459d
GM
2739 (Fscroll_right, Fscroll_left): Set it here instead, if called
2740 interactively.
2741
d57b83b3
GM
2742 * buffer.c (Fset_buffer_modified_p): Set buffer's
2743 prevent_redisplay_optimizations_p flag.
2744
826f3788 2745 * dispnew.c, callproc.c, fns.c, keyboard.c, process.c, sunfns.c,
52283633
SM
2746 * sysdep.c, vmsproc.c, xselect.c: Call redisplay_preserve_echo_area
2747 with additional arg.
2748
2749 * dispextern.h, lisp.h (redisplay_preserve_echo_area):
2750 Change prototype.
826f3788 2751
826f3788
GM
2752 * xdisp.c (redisplay_preserve_echo_area): Add parameter
2753 FROM_WHERE, for debugging.
2754
261d788b
KH
27552001-01-16 Kenichi Handa <handa@etl.go.jp>
2756
2757 * ccl.c (Fregister_ccl_program): Handle the return value of
2758 resolve_symbol_ccl_program correctly.
52283633 2759 (CCL_Extension): Fix typo (originally CCL_Extention). Caller changed.
261d788b 2760
bccee4f2
GM
27612001-01-15 Gerd Moellmann <gerd@gnu.org>
2762
e4ded23c
GM
2763 * xterm.c (x_set_mouse_face_gc): If the last used mouse face
2764 has gone in the meantime, use face MOUSE_FACE_ID.
52283633
SM
2765
2766 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]:
2767 If x_display_info_for_display returns null, don't try to close
ae24cb3b
GM
2768 the display; we didn't open it.
2769
bccee4f2
GM
2770 * dispnew.c (save_or_restore_current_matrices): Function removed.
2771 (save_current_matrix, restore_current_matrix): New functions.
2772 (adjust_frame_glyphs_for_frame_redisplay): Use them to save and
2773 restore the frame's current matrix. Due to the glyph pointer
2774 setup done in adjust_glyph_matrix, there is no easy way to make
2775 saving the current matrix in the desired matrix generally correct,
2776 so don't try it.
2777
ebeccffa
KH
27782001-01-15 Kenichi Handa <handa@etl.go.jp>
2779
2780 * xdisp.c (insert_left_trunc_glyphs): Overwrite padding glyphs by
2781 truncation glyphs.
2782 (display_line): Optimize for wide characters.
e4ded23c 2783 (display_string): Don't try to display a multi-column character
ebeccffa
KH
2784 partially. On ttys, produce more than one truncation glyph for
2785 multi-column characters that don't fit on the line.
2786
64388126
KH
27872001-01-13 Kenichi Handa <handa@etl.go.jp>
2788
52283633
SM
2789 * md5.c (WORDS_BIG_ENDIAN) [__BYTE_ORDER == __BIG_ENDIAN]:
2790 Define it instead of WORDS_BIGENDIAN. Caller changed.
64388126 2791
8edb0a6f
JR
27922001-01-13 Jason Rumney <jasonr@gnu.org>
2793
2794 * w32fns.c (Fimage_size, image_ascent, lookup_image)
2795 (IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR, parse_image_spec)
52283633
SM
2796 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
2797 (tiff_format, gif_format, gs_format): Adapt to change of image margins.
8edb0a6f 2798
52283633
SM
2799 * w32term.c (x_produce_image_glyph, x_draw_image_foreground)
2800 (x_draw_image_relief, x_draw_image_foreground_1)
8edb0a6f
JR
2801 (x_draw_image_glyph_string): Adapt to change of image margins.
2802
2803 * w32.c (init_environment, sys_shutdown, sys_pipe): Remove unused
2804 variables.
2805
2806 * w32bdf.c (search_file_line, get_cached_font_char)
2807 (cache_char_offset, create_offscreen_bitmap): Remove unused variables.
2808
2809 * w32inevt.c (w32_console_toggle_lock_key): Add parentheses.
2810
2811 * w32fns.c (x_to_w32_color, x_set_icon_name, xlfd_strip_height)
2812 (w32_list_synthesized_fonts, lookup_image, Fx_file_dialog)
2813 (Fw32_send_sys_command): Remove unused variables.
2814 (w32_msg_pump): Add parentheses.
2815
2816 * w32term.c (w32_fill_rect, w32_read_socket, x_bitmap_icon)
2817 (x_new_fontset, x_calc_absolute_position, x_iconify_frame):
2818 Add parentheses.
2819
4956d1ef
GM
28202001-01-12 Gerd Moellmann <gerd@gnu.org>
2821
b30623be
GM
2822 * xdisp.c (Vtool_bar_button_margin): Replaces tool_bar_button_margin.
2823 (build_desired_tool_bar_string): Handle Vtool_bar_button_margin
2824 being a pair of margins.
2825 (syms_of_xdisp): Change DEFVAR_INT of tool-bar-button-margins
2826 to DEFVAR_LISP. Extend doc.
2827
2828 * xfns.c (Fimage_size, image_ascent): Adapt to the change of image
2829 margins.
2830 (lookup_image): If `:margin MARGIN' is specified, and MARGIN is a
2831 pair of integers `(X . Y)', use X for the horizontal and Y for the
2832 vertical margin.
2833 (IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR): New enumerator.
2834 (parse_image_spec): Check it.
52283633
SM
2835 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
2836 (tiff_format, gif_format, gs_format):
2837 Use IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR for :margin.
b30623be 2838
52283633
SM
2839 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
2840 (x_draw_image_relief, x_draw_image_foreground_1)
b30623be
GM
2841 (x_draw_image_glyph_string): Adapt to the change of image margins.
2842
2843 * dispextern.h (struct image): Replace member `margin' with
2844 `hmargin' and `vmargin'.
2845
4554cc79
GM
2846 * xdisp.c (Fdump_tool_bar_row) [GLYPH_DEBUG]: Add parameters ROW
2847 and GLYPHS.
2848
2849 * dispnew.c (update_text_area): Put code which decrements the
2850 stop position when the row's face extends to the end of the
3bffc665 2851 line in #if 0.
4554cc79 2852
3cccce8d
GM
2853 * xfns.c (x_set_mouse_color): Fix color allocation.
2854
4956d1ef
GM
2855 * keyboard.c: Call get_local_map with new argument list.
2856
2857 * intervals.c (get_local_map): Change TYPE to Lisp_Object.
2858
2859 * intervals.h (enum map_property): Removed.
2860 (get_local_map): Change prototype.
2861
2862 * keymap.c: Call get_local_map with new argument list.
2863 (Fwhere_is_internal): Rename parameter XKEYMAP to KEYMAP.
2864
2c2ff7f2
GM
28652001-01-11 Gerd Moellmann <gerd@gnu.org>
2866
a23887b9
GM
2867 * xdisp.c (build_desired_tool_bar_string): Correct the computation
2868 of the size needed for the tool bar string. For the last image,
2869 use a `display' property that reaches to the end of the string.
2870
a7ee2d2e
GM
2871 * xselect.c (selection_request_dpyinfo): New variable.
2872 (x_handle_selection_request): Set it.
2873 (x_selection_request_lisp_error): Don't call
2874 x_decline_selection_request if selection request's display has
2875 been closed.
2876
52283633
SM
2877 * xfaces.c (x_free_colors, x_free_dpy_colors) [DEBUG_X_COLORS]:
2878 Do the unregister_colors before calling XFreeColors.
2c2ff7f2 2879
457b792c
GM
28802001-01-10 Dave Love <fx@gnu.org>
2881
2882 * Makefile.in (${etc}DOC): Depend on ${shortlisp} and
2883 ${SOME_MACHINE_LISP}, not ${lisp}.
2884
c1efd260
GM
28852001-01-10 Gerd Moellmann <gerd@gnu.org>
2886
52283633
SM
2887 * xdisp.c (display_line): On ttys, produce more than one truncation
2888 glyph for multi-column characters that don't fit on the line.
a98b5ed9 2889
ac95a621
GM
2890 * xselect.c (x_reply_selection_request): Add a comment.
2891
c1efd260
GM
2892 * xfns.c (Fx_backspace_delete_keys_p): Use XkbGetMap and
2893 XkbGetNames instead of XkbGetKeyboard.
2894
1bfb1345
DL
28952001-01-10 Dave Love <fx@gnu.org>
2896
2897 * sysdep.c (random): Revert the declaration.
2898
38119822
GM
28992001-01-09 Gerd Moellmann <gerd@gnu.org>
2900
52283633
SM
2901 * lisp.h (STRING_BYTES) [GC_CHECK_STRING_BYTES]:
2902 Call function string_bytes.
35f464a7
GM
2903 (GC_CHECK_STRING_BYTES): Moved here from alloc.c.
2904
2905 * alloc.c (CHECK_STRING_BYTES) [GC_CHECK_STRING_BYTES]: New macro.
2906 (check_sblock, string_bytes) [GC_CHECK_STRING_BYTES]: New functions.
2907 (check_string_bytes) [GC_CHECK_STRING_BYTES]: Add parameter ALL_P.
2908 (allocate_string) [GC_CHECK_STRING_BYTES]: Always check strings in
2909 the current sblock.
2910 (mark_object) [GC_CHECK_STRING_BYTES]: Use CHECK_STRING_BYTES.
2911 (gc_sweep) [GC_CHECK_STRING_BYTES]: Call check_string_bytes
2912 after sweeping strings, and at the end.
2913 (GC_CHECK_STRING_BYTES): Moved to lisp.h.
2914
38119822
GM
2915 * alloc.c (Fgarbage_collect): Use a record_unwind_protect to
2916 ensure that pop_message is called.
2917
2918 * keyboard.c (Fexecute_extended_command): Use a
2919 record_unwind_protect to ensure that pop_message is called.
2920
2921 * lisp.h (push_message_unwind): Add prototype.
2922
2923 * xdisp.c (push_message_unwind): New function.
2924
2925 * fileio.c (do_auto_save_unwind): Do the pop_message here
2926 instead of in Fdo_auto_save.
2927 (Fdo_auto_save): Don't call pop_message.
2928
f47a9ec4
KR
29292001-01-08 Ken Raeburn <raeburn@gnu.org>
2930
2931 * xfns.c (xpm_load) [!ALLOC_XPM_COLORS]: Declare local variable I
2932 in inner block.
2933
a758f97d
GM
29342001-01-08 Gerd Moellmann <gerd@gnu.org>
2935
6d0afc03
GM
2936 * window.c (window_scroll_pixel_based): Adjust glyph matrices
2937 when increasing window's vscroll.
2938
a758f97d
GM
2939 * macros.c (Qkbd_macro_termination_hook): New variable.
2940 (syms_of_macros): Initialize and staticpro it.
2941 (pop_kbd_macro): Run kbd-macro-termination-hook.
2942
2943 * xterm.c (XTread_socket) <LeaveNotify>: Set help_echo to nil.
2944
1bfb1345 29452001-01-07 Dave Love <fx@gnu.org>
64d4ec0f
DL
2946
2947 * keyboard.c (Fread_key_sequence_vector): Avoid newline in
2948 arglist, for documentation's sake.
2949
0dac6924
AI
29502001-01-06 Andrew Innes <andrewi@gnu.org>
2951
2952 * makefile.w32-in (clean): Delete $(COMPILER_TEMP_FILES) instead
2953 of *.pdb.
2954
8182406a
AI
29552001-01-05 Andrew Innes <andrewi@gnu.org>
2956
2957 * term.c (update_end): Don't check updating_frame; for some reason
2958 this can be 0 sometimes, such as after dismissing a popup menu,
2959 and isn't necessary given the explicit frame argument.
2960
3828218c
GM
29612001-01-05 Gerd Moellmann <gerd@gnu.org>
2962
2963 * sysdep.c: Don't prototype srandom; it takes an unsigned argument
2964 on some systems, and an unsigned long on others, like FreeBSD 4.1.
2965
2f5ded21
GM
29662001-01-04 Gerd Moellmann <gerd@gnu.org>
2967
52283633 2968 * xterm.c (clear_mouse_face): Don't return if tip_frame is non-nil.
2f5ded21
GM
2969
2970 * xfns.c (x_create_tip_frame): Preserve the value of
2971 face_change_count around the creation of the tip frame.
52283633 2972
2f5ded21
GM
2973 * xfns.c (last_show_tip_args): New variable.
2974 (compute_tip_xy): New function.
2975 (Fx_show_tip): Reuse an existing tip frame, if possible.
2976 (syms_of_xfns): Initialize and staticpro last_show_tip_args.
2977
dfad65fa
DL
29782001-01-04 Dave Love <fx@gnu.org>
2979
64d4ec0f
DL
2980 * editfns.c (Fformat): Doc fix.
2981
dfad65fa
DL
2982 * systime.h (set_file_times): Prototype.
2983
2984 * widget.h (EmacsFrameSetCharSize_): Prototype.
2985
2986 * sysdep.c (random, srandom): Declare explicitly.
2987
2988 * dispextern.h (move_it_vertically_backward): Declare.
2989
85fe3b5e
GM
29902001-01-04 Gerd Moellmann <gerd@gnu.org>
2991
0f2ac578
GM
2992 * xfns.c (x_create_tip_frame): Call face-set-after-frame-default,
2993 like in Fx_create_frame.
2994
482cca61
GM
2995 * xfaces.c (set_font_frame_param): Don't do anything for
2996 non-graphical frames.
2997
85fe3b5e
GM
2998 * window.c (Fdelete_other_windows): Set window's window_end_valid
2999 to nil when changing the window's start. Don't change the
3000 window's start when its top position hasn't changed. If we do,
3001 this will set the window's optional_new_start, which act's like a
3002 force_start during redisplay with C-x 1 M-> under particular
3003 circumstances (see report from Per Starback to emacs-pretest-bug
3004 from 2000-12-13.).
3005
3e99d3b4
GM
30062001-01-03 Gerd Moellmann <gerd@gnu.org>
3007
a77dc1ec
GM
3008 * xdisp.c (forward_to_next_line_start): Reset it->c if taking the
3009 short cut at the start of the function. Add an assertion.
3010 (reseat_at_next_visible_line_start): Add an assertion.
3011
2f3cad6c
GM
3012 * window.c (Frecenter): When changing the window start, set the
3013 window's window_end_valid to nil.
3014 (Fwindow_end): Fix window-end computation when UPDATE is non-nil.
3015
3016 * dispextern.h (move_it_past_eol): Add prototype.
3017
3018 * xdisp.c (move_it_past_eol): New function.
3019
3e99d3b4
GM
3020 * window.c (Fwindow_end): Doc fix.
3021
30222001-01-03 Dave Love <fx@gnu.org>
3023
52283633 3024 * dired.c (Ffile_attributes): Fix last change, removing BSD4_3 kluge.
3e99d3b4 3025
bafb434c
GM
30262001-01-03 Gerd Moellmann <gerd@gnu.org>
3027
3028 * xdisp.c (try_window_reusing_current_matrix): Fix bug setting
3029 the enabled_p flag of the glyph row at window_end_vpos to 0.
3030 (handle_single_display_prop): Fix last change.
3031
5297fb00
RS
30322001-01-02 Richard M. Stallman <rms@caffeine.ai.mit.edu>
3033
3034 * window.c (Frecenter): Doc fix.
3035
13d6a61c
AI
30362001-01-02 Andrew Innes <andrewi@gnu.org>
3037
3038 * term.c (FRAME_TERMCAP_P) [WINDOWSNT]: Remove redefinition.
3039
3040 * frame.h (output_method): Add output_w32_console method.
3041 (FRAME_W32_CONSOLE_P): New macro.
3042
3043 * frame.c (make_terminal_frame) [WINDOWSNT]: Make terminal frames
3044 use output_w32_console method.
3045 (Qw32_console): New Lisp_Object.
3046 (Fframep): Return it.
3047 (syms_of_frame): Init it.
52283633 3048 (Fframe_parameters): Report w32console as font for w32_console frames.
13d6a61c
AI
3049
3050 * xfaces.c (realize_default_face): Set face foreground and
3051 background to unspecified for w32_console frames.
3052 (realize_face): Realize face cache for w32_console frames.
3053 (realize_tty_face): Accept w32_console frames.
3054
52283633 3055 * xdisp.c (handle_single_display_prop): Return if frame is w32_console.
13d6a61c
AI
3056 (init_iterator) [WINDOWSNT]: Initialize frame face cache if
3057 necessary, even if running interactively.
3058
3059 * dispnew.c (Fredraw_frame): Call set_terminal_modes for
3060 w32_console frames.
3061
52283633
SM
3062 * w32term.c (x_update_begin):
3063 (x_update_end):
3064 (x_clear_frame):
3065 (x_ins_del_lines):
3066 (x_change_line_highlight):
3067 (x_delete_glyphs):
3068 (w32_ring_bell):
3069 (x_update_begin):
3070 (x_update_end):
3071 (w32_reassert_line_highlight):
3072 (w32_frame_rehighlight):
13d6a61c
AI
3073 (w32_frame_raise_lower): Do nothing if not w32 frame.
3074
3075 * w32xfns.c (get_frame_dc): Abort if called on a non-w32 frame.
3076
3077 * w32fns.c (Fx_display_color_cells): Determine correct value, when
3078 system doesn't tell us directly.
3079 (Fx_display_visual_class): Implement properly.
3080
d6bb0c0d
GM
30812001-01-02 Gerd Moellmann <gerd@gnu.org>
3082
3083 * window.c (Frecenter): Handle centering in graphical frames
3084 specially. Centering on the basis of line counts doesn't work
3085 reliably with variable-height lines.
52283633 3086
315f5865
EZ
30872001-01-02 Eli Zaretskii <eliz@is.elta.co.il>
3088
3089 * widget.c (EmacsFrameSetCharSize): Remove unused variables `ac'
3090 and al[].
3091
52283633 3092 * composite.c (run_composition_function): Remove unused var `val'.
315f5865
EZ
3093 (update_compositions): Remove unused variable `hook'.
3094
3095 * intervals.c (get_local_map): Remove unused variable `tem'.
3096
3097 * doprnt.c (doprnt1): Remove unused variable `size'.
3098
3099 * fns.c (Flength): Remove unused variable `tail'.
3100 (Fdelete): Remove unused variable `size'.
3101
3102 * editfns.c (Ftranspose_regions): Remove unused variables `gcpro1'
3103 and `gcpro2'.
3104
52283633 3105 * doc.c (Fsnarf_documentation): Remove unused vars `fun' and `tem'.
315f5865
EZ
3106
3107 * data.c (find_symbol_value): Remove extra 3rd argument in the
3108 call to swap_in_symval_forwarding.
3109
52283633 3110 * undo.c (Fprimitive_undo): Remove unused block-scope variable `end'.
315f5865
EZ
3111
3112 * search.c (shrink_regexp_cache): Remove unused variable `cpp'.
3113 (trivial_regexp_p): Remove unused variable `c'.
3114 (boyer_moore): Remove unused variable `k'.
3115
3116 * indent.c (current_column): Remove unused variable `stopchar'.
3117 (Fcompute_motion): Remove unused variable `contin'.
3118
3119 * casefiddle.c (casify_object): Remove unused variable `tolen'.
3120
3121 * dired.c (directory_files_internal): Fix a typo in a comment.
3122 Remove an unused variable `handler'.
52283633 3123 (file_name_completion): Remove unused function-scope variable `dp'.
315f5865
EZ
3124 (Ffile_attributes) <dirname, sdir>: Make declarations conditioned
3125 on BSD4_2.
3126
52283633 3127 * fileio.c (e_write): Remove unused variable `require_encoding_p'.
315f5865
EZ
3128
3129 * marker.c (Fmarker_position): Remove unused variables `pos', `i',
3130 and `buf'.
3131 (Fmarker_insertion_type): Remove unused variable `buf'.
3132
3133 * insdel.c (make_gap): Remove unused variable `result'.
3134
52283633 3135 * keyboard.c (record_char): Remove unused function-scope var `help'.
315f5865
EZ
3136 (kbd_buffer_get_event): Remove unused block-scope variable `idx'.
3137 (menu_bar_items): Remove unused function-scope variable `tem'.
3138
3139 * fontset.c (fontset_ref): Remove unused variable `i'.
3140 (fontset_set): Remove unused variables `j' and `tmp'.
52283633 3141 (make_fontset): Remove unused variables `i', `j', `elt' and `base_elt'.
315f5865
EZ
3142 (make_fontset_for_ascii_face): Remove unused variable `name'.
3143 (fs_load_font): Remove unused variable `font_idx'.
52283633 3144 (fs_query_fontset): Remove unused function-local variable `fontset'.
315f5865
EZ
3145 (list_fontsets): Remove unused variable `tail'.
3146 (Fnew_fontset): Remove unused variables `family' and `registry'.
3147 (accumulate_font_info): Remove unused variable `tmp'.
3148 (Ffontset_font): Remove unused variable `id'.
3149 (syms_of_fontset): Remove unused variable `i'.
3150
3151 * xfns.c (x_display_info_for_name): Cast 0 to "char *" in the call
3152 to x_term_init.
3153 (lookup_image): Remove unused variable `file'.
3154 (xbm_load): Remove unused variables `bitmap_data', `height', and
3155 `width'. Remove function-local variable `i', leave the
3156 block-local one.
3157 (gif_load): Remove unused variable `inc'.
3158
52283633 3159 * xterm.c (XTread_socket): Remove unused variables `p' and `pend'.
315f5865
EZ
3160 (XTread_socket) <LeaveNotify>: Remove unused variable `frame',
3161 leave only the one in the inner block.
3162
3163 * xfaces.c (face_fontset, realize_default_face): Remove unused
3164 variable `fontset'.
3165 (face_at_buffer_position): Remove unused variable `multibyte_p'.
3166
3167 * term.c (encode_terminal_code): Remove unused variable `c'.
3168
3169 * ccl.c (Fccl_execute): Cast ccl_driver parameters to `unsigned
3170 char *' instead of `char *'.
3171
3172 * category.c (Fcategory_docstring): Remove unused variable `doc'.
52283633 3173 (Fget_unused_category): Remove unused variable `docstring_vector'.
315f5865
EZ
3174 (Fchar_category_set): Remove unused variables `val', `charset',
3175 `c1' and `c2'.
3176
52283633
SM
3177 * coding.c (detect_coding_iso2022, setup_coding_system):
3178 Remove unused variable `i'.
315f5865
EZ
3179 (detect_coding_mask): Remove unused variable `idx'.
3180 (detect_coding): Remove unused variable `i'.
3181 (ccl_coding_driver): Remove unused variable `result'.
3182 (run_pre_post_conversion_on_str): Remove unused variable `prev'.
52283633 3183 (decode_coding_string): Remove unused variables `to' and `gcpro1'.
315f5865
EZ
3184 (encode_coding_string): Remove unused variables `gcpro1' and
3185 `saved_coding_symbol'.
3186 (Ffind_coding_systems_region_internal): Remove function-local
3187 variable args[], leave only the block-local one.
3188 (code_convert_region1): Remove unused variable `len'.
3189
3190 * charset.c (char_printable_p): Remove unused variable `chars'.
3191 (Fsplit_char, Fchar_bytes): Remove unused variable `val'.
3192 (str_to_multibyte): Remove unused variable `c'.
3193
3194 * window.c (size_window): Remove block-local variable `min_size'.
3195
3196 * xdisp.c (make_cursor_line_fully_visible): Remove unused variable
3197 `header_line_height'.
3198 (append_space, extend_face_to_end_of_line): Declare `saved_what'
3199 enum display_element_type.
3200
1a8a9daf
GM
32012001-01-02 Gerd Moellmann <gerd@gnu.org>
3202
6dde6abc 3203 * xterm.c (x_connection_closed): Catch X errors around all
52283633
SM
3204 statements that call X. Save away the error message in a local copy.
3205
1883b2c6
GM
3206 * xterm.c (x_connection_closed): Set handling_signal to 0 at
3207 the start.
3208
a13be207
GM
3209 * xdisp.c (pos_visible_p): Take into account that CHARPOS maybe
3210 in or at the start of invisible text.
3211
1a8a9daf
GM
3212 * dispnew.c (update_window): Don't check_current_matrix_flags.
3213
3608c0f9
JR
32142001-01-01 Jason Rumney <jasonr@gnu.org>
3215
3216 * w32fns.c (x_figure_window_size): Do not allow new_height and
3217 new_width of frame to override specified values.
3218
abb1acc4
KH
32192000-12-30 Kenichi Handa <handa@etl.go.jp>
3220
52283633 3221 * composite.c (find_composition): Fix a code for searching backward.
abb1acc4 3222
762a68ec
GM
32232000-12-29 Gerd Moellmann <gerd@gnu.org>
3224
52283633 3225 * dispnew.c (check_current_matrix_flags) [GLYPH_DEBUG]: New function.
9c8b8382
GM
3226 (update_window) [GLYPH_DEBUG]: Call it.
3227 (scrolling_window): Prevent including current rows which are below
3228 what's displayed in the window.
3229
3230 * xdisp.c (try_window_reusing_current_matrix)
3231 <new start <= old start>: Disable rows in the current matrix
3232 which are below the window after scrolling.
52283633 3233
762a68ec
GM
3234 * xdisp.c (move_it_by_lines): Don't do optimizations if NEED_Y_P
3235 is zero. It's not worth the complexity.
3236 (invisible_text_between_p): Put in #if 0 because unused.
3237
2d5912c1
GM
32382000-12-28 Gerd Moellmann <gerd@gnu.org>
3239
46f6a258
GM
3240 * xfns.c (Fx_backspace_delete_keys_p): Check library and server
3241 XKB versions. Call XkbFreeKeyboard with 2nd arg 0.
3242
89f93679
GM
3243 * keyboard.c (echo_char): If C is an integer, always call
3244 push_key_description. Former code could signal an invalid
3245 character error.
3246
3247 * keymap.c (push_key_description): Add parameter FORCE_MULTIBYTE.
3248 If set, print multibyte text.
3249 (Fsingle_key_description): Call push_key_description with
3250 FORCE_MULTIBYTE set.
3251 (describe_buffer_bindings): Likewise.
3252
3253 * lisp.h (push_key_description): Add prototype.
3254
c06017fb
GM
3255 * xdisp.c (echo_area_display): Bind redisplay-dont-pause to t
3256 around the call to redisplay_internal.
3257
f1d2ce7f
GM
3258 * xfns.c: Use #if GLYPH_DEBUG instead of #ifdef GLYPH_DEBUG.
3259
2d5912c1
GM
3260 * dispnew.c: Use #if GLYPH_DEBUG instead of #ifdef GLYPH_DEBUG.
3261
9371f831
KH
32622000-12-28 Kenichi Handa <handa@etl.go.jp>
3263
3264 * ccl.c (CCL_WRITE_CHAR): Check variable `extra_bytes'.
3265 (ccl_driver): New local variable `extra_bytes'.
3266
3267 * ccl.h (struct ccl_spec): New member eight_bit_carryover.
3268
52283633
SM
3269 * coding.c (setup_coding_system):
3270 Initialize coding->spec.ccl.eight_bit_carryover.
9371f831
KH
3271 (ccl_coding_driver): Pay attention to carried over 8-bit bytes.
3272
0c80628a
KH
32732000-12-28 Kenichi Handa <handa@etl.go.jp>
3274
3275 * coding.c (SAFE_ONE_MORE_BYTE): New macro.
3276 (DECODE_EMACS_MULE_COMPOSITION_CHAR): New macro.
3277 (DECODE_EMACS_MULE_COMPOSITION_RULE): New macro.
3278 (decode_composition_emacs_mule): New function.
3279 (decode_coding_emacs_mule): Decode composition sequence by calling
3280 decode_composition_emacs_mule.
3281 (ENCODE_COMPOSITION_EMACS_MULE): New macro.
52283633
SM
3282 (encode_coding_emacs_mule): Changed from macro to function.
3283 If a text contains compositions, encode them correctly.
0c80628a
KH
3284 (setup_coding_system): Set coding->commong_flags for emacs-mule so
3285 that decoding and encoding are required.
3286
3e32cc27
GM
32872000-12-27 Gerd Moellmann <gerd@gnu.org>
3288
5e25feee
GM
3289 * xfaces.c (PT_PER_INCH): New macro.
3290 (xlfd_point_size): Compute real point size from font's pixel size.
3291 (pixel_point_size, build_scalable_font_name): Use PT_PER_INCH
3292 instead of 72.
3293
892d8fcd
GM
3294 * .gdbinit: Comment out the line pointing to the Lesstif source
3295 directory.
3296
12c8b416
GM
3297 * window.c (Frecenter): Use displayed_window_lines instead
3298 of window_internal_height.
3299
6061fbf0
GM
3300 * xterm.c (syms_of_xterm): DEFVAR_LISP x-toolkit-scroll-bars
3301 instead of x-toolkit-scroll-bars-p.
3302 (Vx_toolkit_scroll_bars): Renamed from x_toolkit_scroll_bars_p.
3303
3304 * w32term.c (syms_of_xterm): DEFVAR_LISP x-toolkit-scroll-bars
3305 instead of x-toolkit-scroll-bars-p.
3306 (Vx_toolkit_scroll_bars): Renamed from x_toolkit_scroll_bars_p.
52283633 3307
3e32cc27
GM
3308 * dispnew.c (struct redisplay_history) [GLYPH_DEBUG]: New.
3309 (REDISPLAY_HISTORY_SIZE) [GLYPH_DEBUG]: New macro.
52283633
SM
3310 (redisplay_history, history_idx, history_tick) [GLYPH_DEBUG]:
3311 New variables.
3312 (add_window_display_history, add_frame_display_history)
3e32cc27
GM
3313 (Fdump_redisplay_history) [GLYPH_DEBUG]: New functions.
3314 (build_frame_matrix_from_leaf_window): Remove unused code.
3315 (build_frame_matrix_from_leaf_window) [GLYPH_DEBUG]: Add to
3316 redisplay history.
3317 (update_frame) [GLYPH_DEBUG]: Add to redisplay history.
3318 (update_window) [GLYPH_DEBUG]: Likewise.
3319 (syms_of_display): Defsubr dump-redisplay-history.
3320
31798cfe
GM
33212000-12-23 Gerd Moellmann <gerd@gnu.org>
3322
f717c2ba
GM
3323 * keyboard.c (echo_prompt): Always set current_kboard->echoptr to
3324 the end of the prompt. Set echo_after_prompt to the offset
3325 of echoptr in echobuf.
3326
aeb2b8fc
GM
3327 * xdisp.c (init_from_display_pos): Pop until the iterator's
3328 stack is empty; there may be frames for stretch or images
3329 on the stack.
3330
31798cfe
GM
3331 * dispnew.c (save_frame_matrix, restore_frame_matrix): Removed.
3332 (save_or_restore_current_matrix): New function for the same
3333 purpose, but more efficient.
3334 (adjust_frame_glyphs_for_frame_redisplay): Use it.
3335
f8156156
EZ
33362000-12-23 Eli Zaretskii <eliz@is.elta.co.il>
3337
3338 * xdisp.c (syms_of_xdisp): Fix last change.
3339
bdd6d4e8
GM
33402000-12-23 Gerd Moellmann <gerd@gnu.org>
3341
3342 * xdisp.c (syms_of_xdisp): Doc fix.
3343
3344 * xdisp.c (redisplay_window): Remove label restore_buffers;
3345 use finish_scroll_bars instead to make sure that scroll bars
3346 are redeemed. If we don't do this, flickering can result from
3347 scroll bars being destroyed and recreated.
3348
9436cdf9
JR
33492000-12-22 Jason Rumney <jasonr@gnu.org>
3350
3351 * w32term.c (w32_draw_bitmap): Fix drawing so it does not appear
3352 in the wrong colors when the foreground is not black.
3353 (expose_window): Don't redraw the window that's currently being
3354 updated.
3355
951f9df5
GM
33562000-12-22 Gerd Moellmann <gerd@gnu.org>
3357
856ff7a7
GM
3358 * window.c (size_window): When setting the window's too_small_ok
3359 flag, compare old size with minimum size depending on WIDTH_P,
3360 don't compare with window_min_width.
52283633 3361
951f9df5
GM
3362 * window.c (delete_window): Simplify somewhat.
3363 (Fset_window_configuration): Don't SET_FRAME_GARBAGED after
3364 freeing window matrices. The flag windows_or_buffers_changed is
3365 set, so the next redisplay will consider all windows; this should
3366 suffice.
3367
886bc933
KH
33682000-12-22 Kenichi Handa <handa@etl.go.jp>
3369
3370 * coding.c (ccl_coding_driver): Initialize ccl->cr_consumed.
3371
3372 * ccl.h (struct ccl_program): New member cr_consumed.
3373
3374 * ccl.c (CCL_WRITE_CHAR): Don't handle EOL conversion here.
3375 (CCL_READ_CHAR): Handle EOL conversion here.
3376 (ccl_driver) <CCL_ReadMultibyteChar2>: Likewise.
3377
177f4e88
GM
33782000-12-21 Gerd Moellmann <gerd@gnu.org>
3379
52283633 3380 * xdisp.c (Fdump_glyph_row) [GLYPH_DEBUG]: Add optional arg GLYPHS.
6ba384dc
GM
3381
3382 * dispextern.h (GLYPH_EQUAL_P): Also compare pixel widths,
3383 otherwise tabs of different size compare equal.
3384
3385 * callint.c (Fcall_interactively): Prevent a compiler warning.
3386
3387 * print.c (print_unwind): Return nil.
3388 (PRINTDECLARE): Initialize all local variables.
3389 (print_preprocess): Add a default case.
3390
8e15274f
GM
3391 * lisp.h (Qinhibit_point_motion_hooks): Declare extern.
3392
3393 * undo.c (Fprimitive_undo): Bind `inhibit-point-motion-hooks' to t.
3394
52283633 3395 * window.c (delete_window, Fsplit_window)
177f4e88
GM
3396 (Fset_window_configuration): Calls to ensure_frame_matrix removed.
3397
3398 * dispextern.h (ensure_frame_matrix): Function declaration removed.
3399
3400 * dispnew.c (ensure_frame_matrix): Removed.
3401 (save_frame_matrix, restore_frame_matrix): New functions.
3402 (adjust_frame_glyphs_for_frame_redisplay): Use them.
3403
3404 * xdisp.c (dump_glyph_row, dump_glyph_matrix, Fdump_glyph_matrix)
3405 [GLYPH_DEBUG]: Extended to dump glyphs in short form.
3406
99012074
AI
34072000-12-21 Andrew Innes <andrewi@gnu.org>
3408
3409 * w32term.c (x_update_begin): Regenerate the palette here, rather
3410 than for each window.
3411
3412 * w32xfns.c (select_palette): Avoid calling SelectPalette if
3413 palette is NULL, since this corrupts memory! Also get
3414 display_info reference from frame.
3415
29ef7d2d
JR
34162000-12-21 Jason Rumney <jasonr@gnu.org>
3417
3418 * w32bdf.c (w32_init_bdf_font): Fix test for valid bmp heap.
3419
3420 * w32term.c (x_draw_hollow_cursor): Delay obtaining the frame's DC
3421 to avoid returning without releasing it.
3e27fa1f 3422
3f9d67a6
KH
34232000-12-21 Kenichi Handa <handa@etl.go.jp>
3424
587fc3f9
KH
3425 * keymap.c (push_key_description): Don't convert eight-bit-control
3426 and eight-bit-graphic to multibyte character.
3427
3f9d67a6
KH
3428 * charset.c (Fmake_char_internal): If CHARSET doesn't have a
3429 generic character and CODE1 is nil, return the smallest character
3430 in CHARSET.
3431
774ba8c9
DL
34322000-12-20 Dave Love <fx@gnu.org>
3433
3434 * s/osf5-0.h (NSIG): Don't redefine.
3435
88416888
SM
34362000-12-20 Stefan Monnier <monnier@cs.yale.edu>
3437
3438 * keymap.c (where_is_internal): Check ascii_sequence_p rather than
3439 excluding menu-bar and tool-bar.
3440 (Fwhere_is_internal): Check ascii_sequence_p when looking up the cache.
3441 (menu_item_p): Remove.
3442 (where_is_internal_1): Don't ignore menu-items.
3443
a6426c6f
GM
34442000-12-20 Gerd Moellmann <gerd@gnu.org>
3445
03ff8aab
GM
3446 * xdisp.c (hscroll_window_tree): Take window's min_hscroll
3447 into account.
3448
3449 * window.c (make_window): Initialize window's min_hscroll.
3450 (Fset_window_hscroll): Set window's hscroll and min_hscroll.
3451 (set_window_buffer, temp_output_buffer_show): Set min_hscroll
3452 to zero.
3453 (struct saved_window): New member min_hscroll.
3454 (SAVED_WINDOW_VECTOR_SIZE): Set to 17.
3455 (Fset_window_configuration): Set window's min_hscroll.
3456 (save_window_save): Save window's min_hscroll.
3457 (compare_window_configurations): Compare min_hscroll values.
3458
3459 * window.h (struct window): New member min_hscroll.
3460
3461 * keyboard.c (echo_prompt): Prevent a compiler warning.
3462
8de4aaf8
GM
3463 * xdisp.c (try_cursor_movement): Fix last change. The real
3464 condition is that PT is at the end of the row, and should
3465 be displayed at the start of the next row.
52283633 3466
3f7e3031
GM
3467 * xdisp.c (try_cursor_movement): If we end on a partially
3468 visible line, end we already decided to scroll, return -1.
3469
a6426c6f
GM
3470 * dispextern.h (ensure_frame_matrix): Add prototype.
3471
3472 * window.c (delete_window, Fsplit_window)
3473 (Fset_window_configuration): Call ensure_frame_matrix.
3474
52283633
SM
3475 * dispnew.c (fake_current_matrices, ensure_frame_matrix):
3476 New functions.
a6426c6f
GM
3477 (adjust_frame_glyphs_for_frame_redisplay): If display has been
3478 completed, call fake_current_matrices instead of marking frame
3479 garbaged.
3480
57fa2774
JR
34812000-12-20 Jason Rumney <jasonr@gnu.org>
3482
3483 * w32fns.c (syms_of_w32fns): Initialize and staticpro tip_frame.
3484
d925df90
EZ
34852000-12-19 Eli Zaretskii <eliz@is.elta.co.il>
3486
3487 * fns.c (Frequire): Doc fix.
3488
7b93a85b
GM
34892000-12-19 Gerd Moellmann <gerd@gnu.org>
3490
52283633 3491 * window.c (window_scroll_pixel_based): Don't use move_it_vertically.
71d4497a 3492
c74e645b
GM
3493 * dispnew.c (direct_output_for_insert): Fix check for mini-window
3494 currently displaying a message.
3495
7b93a85b
GM
3496 * bytecode.c (toplevel) [CHECK_FRAME_FONT]: Include frame.h and
3497 xterm.h.
3498 (Fbyte_code) [CHECK_FRAME_FONT]: Check the selected frame's font.
3499
90d97e64
AI
35002000-12-18 Andrew Innes <andrewi@gnu.org>
3501
3502 * w32.c (w32_strerror): New function.
3503
3504 * w32.h (w32_strerror): New extern.
3505
3506 * w32fns.c (Fw32_shell_execute): Use it.
3507
91c9e6ce
GM
35082000-12-18 Gerd Moellmann <gerd@gnu.org>
3509
3510 * s/hpux10.h (_FILE_OFFSET_BITS): Undef again.
3511
6f4745e2
EZ
35122000-12-18 Eli Zaretskii <eliz@is.elta.co.il>
3513
3514 * msdos.c (IT_set_face): Obey inverse_video.
3515
c9e088ce
KH
35162000-12-18 Kenichi Handa <handa@etl.go.jp>
3517
3518 * dired.c (directory_files_internal): Always return decoded filenames.
3519
c3695f5f
GM
35202000-12-18 Gerd Moellmann <gerd@gnu.org>
3521
52d8e4ff
GM
3522 * xterm.c (x_connection_closed): Prevent being called recursively
3523 because of an error condition in XtCloseDisplay.
52283633 3524
62be9979
GM
3525 * xdisp.c (init_iterator): If noninteractive, and the frame's
3526 face cache is null, make one.
3527
52283633 3528 * xfns.c (show_busy_cursor): Check for live frames more thoroughly.
5f7a1890 3529
c3695f5f
GM
3530 * process.c (wait_reading_process_input): Check for pending
3531 input when running timers.
3532
78555fbe
EZ
35332000-12-18 Eli Zaretskii <eliz@is.elta.co.il>
3534
52283633 3535 * msdos.c (IT_write_glyphs): Compute the glyph face from str->face_id.
78555fbe 3536
b2b36264
KH
35372000-12-18 Kenichi Handa <handa@etl.go.jp>
3538
3539 * process.c (read_process_output): Don't run a filter if the code
3540 decoder produces nothing but carryover.
3541
9c543fbf
AI
35422000-12-17 Andrew Innes <andrewi@gnu.org>
3543
3544 * w32.c (sys_rename): Only check errno against EEXIST, and not
3545 EACCES, when determining whether rename failed because the target
3546 exists. This was resulting in indefinite looping on Windows 9x if
3547 the source file was locked by another process.
3548
3549 * w32fns.c (Ffile_system_info): New function.
3550 (syms_of_w32fns): Defsubr it.
3551
10c2b5a8
GM
35522000-12-17 Gerd Moellmann <gerd@gnu.org>
3553
b0228ace
GM
3554 * window.c (coordinates_in_window): Fix computation for
3555 position on vertical line between mode lines.
3556
10c2b5a8
GM
3557 * xfns.c (unwind_create_frame): Return t if frame was deleted.
3558 Don't alter tip_frame or tip_window.
3559 (unwind_create_tip_frame): Set tip_frame to nil only if frame
3560 was deleted.
3561
c844a81a
GM
3562 * w32fns.c (unwind_create_frame): Return t if frame was deleted.
3563 Don't alter tip_frame or tip_window.
3564 (unwind_create_tip_frame): Set tip_frame to nil only if frame
3565 was deleted.
3566
6c825f8e
EZ
35672000-12-16 Eli Zaretskii <eliz@is.elta.co.il>
3568
3569 * fileio.c (Fcopy_file): Rename the last argument to keep_time, to
3570 be consistent with the doc string. Reported by NAKAJIMA Mikio
3571 <minakaji@osaka.email.ne.jp>.
3572
af4bb4c8
KH
35732000-12-16 Kenichi Handa <handa@etl.go.jp>
3574
3575 * xfaces.c (Vface_ignored_fonts): New variable.
3576 (x_face_list_fonts): Ignore fonts matching Vface_ignored_fonts.
3577 (syms_of_xfaces): Declare Vface_ignored_fonts as a Lisp variable.
3578
8062e53a
GM
35792000-12-15 Gerd Moellmann <gerd@gnu.org>
3580
e87b8809
GM
3581 * dispnew.c (update_window): Detect pending input every nth line
3582 updated, i.e. do it depending on real work done, and not on the
3583 vpos of the line.
3584
3585 * xterm.c (expose_window): Don't redraw the window that's
3586 currently being updated.
3587
a6768cc5
GM
3588 * window.c (Fset_window_point): Remove test for
3589 cursor_in_non_selected_windows.
3590
4ea7fdca
GM
3591 * lread.c (read1): Recognize end of file after `\\'.
3592
8062e53a
GM
3593 * xfns.c (x_create_tip_frame): Use unwind_create_tip_frame,
3594 not unwind_create_frame.
3595
bb7959c1
GM
35962000-12-15 Dave Love <fx@gnu.org>
3597
3598 * s/usg5-4.h (bcopy) [IRIX6]: Don't special-case definition of
3599 bcopy & al.
3600
3601 * s/irix6-5.h: #undef bcopy & al here. Include strings.h.
3602
ced04c42
KH
36032000-12-15 Kenichi Handa <handa@etl.go.jp>
3604
c5443913
KH
3605 * coding.c (setup_coding_system): Clear all members of the struct
3606 coding_system at first.
bc137305
KH
3607 (detect_coding): Call detect_coding_mask with a correct MULTIBYTEP
3608 argument.
3609 (code_convert_region): Don't override coding->src_multibyte and
3610 coding->dst_multibyte.
c5443913 3611
ced04c42
KH
3612 * fns.c (Fmd5): Docstring improved.
3613
c2d7f289
MB
36142000-12-15 Miles Bader <miles@gnu.org>
3615
3616 * xdisp.c (window_box_height): Only use mode-line glyph-rows that
3617 are actually marked as mode-lines; otherwise use
3618 estimate_mode_line_height.
3619
9d7d9263
GM
36202000-12-14 Gerd Moellmann <gerd@gnu.org>
3621
3622 * editfns.c (Fformat): Prevent a buffer overrun when the format
3623 specifies a precision.
3624
7cf0153a
EZ
36252000-12-14 Eli Zaretskii <eliz@is.elta.co.il>
3626
3627 * msdos.c (Fmsdos_set_mouse_buttons): Signal an error if the
3628 argument is outside the range [2..3].
3629
1de0f662
AI
36302000-12-14 Andrew Innes <andrewi@gnu.org>
3631
3632 * w32fns.c (Fx_hide_tip): Avoid unnecessary work when there's
3633 nothing to do. Bind inhibit-quit.
3634 (tip_frame): Make it a Lisp_Object.
3635 (x_create_tip_frame): Set tip_frame after it has been added to
3636 Vframe_list.
3637 (Fx_show_tip): Don't set tip_frame here.
52283633 3638 (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]: New variables.
1de0f662
AI
3639 (unwind_create_frame, unwind_create_tip_frame): New functions.
3640 (Fx_create_frame, x_create_tip_frame): Handle errors signaled
3641 while a frame is only partially constructed.
3642
3643 * w32term.c (clear_mouse_face): Treat tip_frame as a Lisp_Object.
3644 (x_free_frame_resources): New function.
3645 (x_destroy_window): Use it.
3646
02387dcc
GM
36472000-12-14 Gerd Moellmann <gerd@gnu.org>
3648
3649 * xfns.c (Fx_backspace_delete_keys_p): New function.
3650 (syms_of_xfns): Defsubr it.
3651
3652 * config.in (HAVE_XKBGETKEYBOARD): Add.
3653
0544ef49
KH
36542000-12-14 Kenichi Handa <handa@etl.go.jp>
3655
98d62747
KH
3656 * keyboard.c (echo_prompt): Argument type changed to Lisp_Object.
3657 Always store string in multibyte representation in echobuf.
3658 (echo_char): Always store string in multibyte representation in
3659 echobuf.
3660 (echo_now): Call message2_nolog with the arg MULTIBYTE 1.
3661 (read_key_sequence): Adjusted for the change of echo_prompt.
3662
a20193cd
KH
3663 * fns.c (Fmd5): Docstring improved.
3664
191b83b6
KH
3665 * lisp.h (detect_coding_system): Prototype adjusted.
3666
0544ef49
KH
3667 * coding.c (ONE_MORE_BYTE_CHECK_MULTIBYTE): New macro.
3668 (detect_coding_emacs_mule, detect_coding_iso2022,)
3669 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
52283633
SM
3670 (detect_coding_utf_16, detect_coding_ccl): Make them static.
3671 New argument MULTIBYTEP. Callers changed.
0544ef49
KH
3672 (detect_coding_mask, detect_coding_system): New argument
3673 MULTIBYTEP. Callers changed.
1da1bb05
KH
3674 (decode_coding_string): Set coding->src_multibyte and
3675 coding->dst_multibyte before calling detect_coding and detect_eol.
3676 Update them after some coding system is detected.
52283633 3677
d5b3eb1b
SM
36782000-12-13 Stefan Monnier <monnier@cs.yale.edu>
3679
3680 * keymap.c (get_keyelt): Only eval the filter if `autoload' is set.
3681
3682 * keyboard.c (menu_bar_items, tool_bar_items):
3683 Set `autoload' when looking up `tool-bar' or `menu-bar' submap.
3684
f7f8bb69
GM
36852000-12-13 Gerd Moellmann <gerd@gnu.org>
3686
52283633 3687 * xfns.c (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]:
19f71add
GM
3688 New variables.
3689 (unwind_create_frame, unwind_create_tip_frame): New functions.
3690 (Fx_create_frame, x_create_tip_frame): Handle errors signaled
3691 while a frame is only partially constructed.
3692
3693 * xterm.h (x_free_frame_resources): Declare.
3694
3695 * xterm.c (x_free_frame_resources): New function.
3696 (x_destroy_window): Use it.
3697
e10da507
GM
3698 * dispnew.c (update_window): If do_mouse_tracking is non-nil,
3699 don't interrupt the update for pending input initially, i.e.
3700 update at least some lines.
3701
3702 * keyboard.c (do_mouse_tracking): Make externally visible.
52283633 3703
d5b3eb1b 3704 * xterm.c (x_term_init): Declare gray_bitmap_bits as `extern char *'.
f7f8bb69
GM
3705
3706 * xfns.c (gray_bitmap_bits): Declare `char *'.
3707
90aa2856
GM
37082000-12-12 Gerd Moellmann <gerd@gnu.org>
3709
3710 * xdisp.c (display_tool_bar_line): Make sure that tool bar
3711 lines start with a relief line.
3712
a308c9cd
DL
37132000-12-12 Dave Love <fx@gnu.org>
3714
3715 * window.c (Fdisplay_buffer): Doc fix.
3716 (Fwindow_list): Remove unused var.
3717
3718 * buffer.h (mmap_set_vars): Declare.
3719
3720 * window.h (Fset_window_point): Declare.
3721
d575011f
EZ
37222000-12-12 Eli Zaretskii <eliz@is.elta.co.il>
3723
bf6282d2 3724 * msdos.c (fast_find_position): Don't overstep the last window row.
52283633
SM
3725 (IT_note_mouse_highlight): Initialize portion to -1. Remove unused
3726 variable `area'. When looking for a row under (X,Y), give up if some
3727 of the previous rows is not enabled.
d575011f 3728
ecf4d726
GM
37292000-12-12 Gerd Moellmann <gerd@gnu.org>
3730
2ebf6139
GM
3731 * window.c (Fset_window_point): If displaying cursors in windows
3732 other than the selected window, make sure redisplay updates
3733 other windows to show the new value of point in the window.
3734
3735 * dispextern.h (cursor_in_non_selected_windows): Declare extern.
3736
bfdb75ee
GM
3737 * buffer.c (Fkill_buffer): Don't Fset_buffer when testing if
3738 the buffer is the sole visible buffer when in the mini-buffer.
3739
52283633 3740 * xdisp.c (setup_echo_area_for_printing, with_echo_area_buffer):
4fdbd809
GM
3741 Bind `inhibit-read-only' to t.
3742 (unwind_with_echo_area_buffer): Use AREF.
3743
c0006262
GM
3744 * xfns.c (Fx_hide_tip): Simplified.
3745
52283633
SM
3746 * s/freebsd.h, s/netbsd.h (GC_MARK_STACK): Use GC_MAKE_GCPROS_NOOPS
3747 instead of `1'.
e9a59cad 3748
ecf4d726
GM
3749 * s/gnu-linux.h (GC_MARK_STACK): Define as GC_MAKE_GCPROS_NOOPS.
3750
e5959a9a
GM
37512000-12-11 Gerd Moellmann <gerd@gnu.org>
3752
a3642e49 3753 * xfns.c (Fx_hide_tip): Fix last change.
52283633 3754
44b5a125
GM
3755 * xfns.c (Fx_hide_tip): Avoid unnecessary work when there's
3756 nothing to do. Bind inhibit-quit.
3757 (tip_frame): Make it a Lisp_Object.
3758 (x_create_tip_frame): Set tip_frame after it has been added to
3759 Vframe_list.
3760 (Fx_show_tip): Don't set tip_frame here.
3761
3762 * xterm.c (clear_mouse_face): Treat tip_frame as a Lisp_Object.
3763
3764 * xdisp.c (prepare_menu_bars): Changes for tip_frame being a
3765 Lisp_Object.
3766
3767 * dispextern.h: Change external declaration of tip_frame.
3768
d990421f
GM
3769 * keymap.c (Fkey_description): If KEYS is an empty key sequence,
3770 return an empty string.
3771
4db87380
GM
3772 * xdisp.c (try_cursor_movement): Check update_mode_lines instead
3773 of the window's update_mode_line flag, since the former is set by
3774 force-mode-line-update, not the latter. This makes
3775 column-number-mode slightly faster.
52283633 3776
e5959a9a
GM
3777 * xdisp.c (try_window_id) <all changes above window start>:
3778 Set the cursor.
3779
169fe44e
GM
37802000-12-11 Paul Eggert <eggert@twinsun.com>
3781
3782 * config.in (HAVE_FTELLO): Remove.
3783 (HAVE_FSEEKO): Add.
3784 (_XOPEN_SOURCE): Remove; the large-file code no longer needs it.
3785 * lread.c (file_offset, file_tell): Depend on HAVE_FSEEKO, not
3786 HAVE_FTELLO.
3787 * s/hpux10.h (_FILE_OFFSET_BITS): Do not undef.
3788 * s/isc3-0.h, s/osf5-0.h: Update comment about _XOPEN_SOURCE.
52283633 3789
59ec59ae
MB
37902000-12-11 Miles Bader <miles@gnu.org>
3791
3792 * window.c (displayed_window_lines): Don't round up when
3793 converting empty space at bottom to lines.
ff904dd6
MB
3794 Handle non-newline-terminated final lines properly.
3795 (Fwindow_text_height): New function (used to be in lisp).
3796 (syms_of_window): Initialize it.
59ec59ae 3797
42ebfa31
SM
37982000-12-09 Stefan Monnier <monnier@cs.yale.edu>
3799
3800 * syntax.c (scan_lists): Check that the right quote char has the
3801 right Sstring syntax when jumping over strings.
3802 (init_syntax_once): Use Smax rather than 13.
3803
5cdb3cf3
MB
38042000-12-09 Miles Bader <miles@gnu.org>
3805
3806 * window.c (Fpos_visible_in_window_p): Replace FULLY parameter
3807 with PARTIALLY, inverting the sense.
3808 (window_scroll_pixel_based): Scroll partially visible lines into
3809 place if we hit the beginning or end of the buffer.
a12167c5
MB
3810 (displayed_window_lines): Don't include partially visible lines.
3811 (Fmove_to_window_line): Skip past any partially visible first line.
5cdb3cf3 3812
842b2a94
GM
38132000-12-08 Gerd Moellmann <gerd@gnu.org>
3814
3815 * keymap.c (current_minor_maps): Use malloc. Prevent a leak.
3816
3817 * tparam.c (tparam1): Change the way buffers are reallocated to be
3818 portable and less obfuscated.
3819
3820 * termcap.c (tgetent): Change the way buffers are reallocated to
3821 be portable and less obfuscated.
3822
3823 * macros.c (store_kbd_macro_char): Change the way buffers are
3824 reallocated to be portable and less obfuscated.
3825
3826 * lread.c (read1): Change the way buffers are reallocated to be
3827 portable and less obfuscated.
3828
3829 * doc.c (Fsubstitute_command_keys): Change the way buffers
3830 are reallocated so that it is portable.
3831
137cad7c
EZ
38322000-12-07 Eli Zaretskii <eliz@is.elta.co.il>
3833
3834 * dosfns.c (Ffile_system_info): New function.
3835 (syms_of_dosfns): Defsubr it.
3836
5c7f629c
SM
38372000-12-07 Stefan Monnier <monnier@cs.yale.edu>
3838
3839 * alloc.c (gc_sweep): Add comment.
3840
959e647d
GM
38412000-12-07 Gerd Moellmann <gerd@gnu.org>
3842
52283633
SM
3843 * sound.c (vox_configure): Change order of ioctls.
3844 Don't set SNDCTL_DSP_SPEED from bps, don't set SNDCTL_DSP_SAMPLESIZE.
28fcb7dc
GM
3845 Ignore errors when changing volume.
3846 (vox_close): Don't reset the device.
3847
926b7e5e
GM
3848 * process.c (read_process_output): Make sure the process marker's
3849 position is valid when the process buffer is changed in
3850 after-change functions. W3 does that.
52283633 3851
959e647d
GM
3852 * xfns.c (x_free_gcs): New function.
3853
3854 * xterm.h (x_free_gcs): Add prototype.
3855
3856 * widget.c (EmacsFrameDestroy): Call x_free_gcs instead of
3857 freeing GCs here.
3858
3859 * xterm.c (x_destroy_window): Call x_free_gcs so that
3860 resources of non-toolkit X windows will be freed.
3861
478ea067
AI
38622000-12-07 Andrew Innes <andrewi@gnu.org>
3863
3864 * w32fns.c (xlfd_charset_of_font): Fix last change.
3865
fbee3231
DL
38662000-12-06 Dave Love <fx@gnu.org>
3867
67292061
DL
3868 * md5.h (__P): Don't define -- it comes from config.h.
3869
fbee3231
DL
3870 * strftime.c: Change some #if foo to #ifdef foo.
3871
4ee87dbb
AI
38722000-12-06 Andrew Innes <andrewi@gnu.org>
3873
3874 * w32term.h (CP_INVALID): Rename to CP_UNKNOWN.
3875
52283633 3876 * w32fns.c (xlfd_charset_of_font): Don't overwrite fontname argument.
4ee87dbb 3877 (w32_codepage_for_font): Rename CP_INVALID to CP_UNKNOWN.
52283633 3878 (w32_list_fonts): Don't choke if pattern doesn't specify a codepage.
4ee87dbb 3879
9765b4a4
GM
38802000-12-06 Gerd Moellmann <gerd@gnu.org>
3881
d285b373
GM
3882 * alloc.c (gc_sweep): Prevent symbols read during loadup
3883 from being freed.
3884
384333ee
GM
3885 * xdisp.c (underlying_face_id): New function.
3886 (handle_face_prop, face_before_or_after_it_pos): Use it
3887 to determine the face ``under'' a string. Let strings inherit
3888 the face of the buffer under them.
3889
3890 * xfaces.c (face_at_string_position): Update function comment.
52283633 3891
d4b72d58
GM
3892 * dispnew.c (adjust_glyph_matrix): Don't reuse a window's current
3893 matrix if the window's left position has changed; we need to
3894 redraw it in this case.
3895
3896 * dispextern.h (struct glyph_matrix): Add member window_left_x.
3897
e1d05387
GM
3898 * window.c (coordinates_in_window): Check mouse on mode-line or
3899 header-line first.
3900
eb1b0c74
GM
3901 * alloc.c (Fgarbage_collect): Dox fix. Return a list as
3902 advertized by the function documentation.
3903
d94d636f
GM
3904 * window.c (syms_of_window): Doc fix.
3905
3887b449
GM
3906 * sound.c (vox_configure): Set volume for left and right channel.
3907 (sound_cleanup): Return nil.
3908
efc8f57a
GM
3909 * xdisp.c (move_it_by_lines): Fix paren typo.
3910
9765b4a4
GM
3911 * xterm.c (x_load_font): Don't use the font's max_bounds for
3912 computing the height of the font. If max_bounds' ascent or
3913 descent are greater than the font's ascent or descent, this means
3914 glyphs overlap, which should be handled now by redisplay.
3915
6529ed87
GM
3916 * window.c (Veven_window_heights): New variable.
3917 (syms_of_window): DEFVAR_LISP it.
3918 (Fdisplay_buffer): Check Veven_window_heights before evening the
3919 window heights.
52283633 3920
0eb2ecde
MB
39212000-12-06 Miles Bader <miles@gnu.org>
3922
3923 * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is `t',
3924 update `default-frame-alist' instead of setting no frame parameters.
3925
03d7a167
KH
39262000-12-06 Kenichi Handa <handa@etl.go.jp>
3927
3928 * composite.c (update_compositions): Fix typo (use the correct
3929 variable).
3930
5f8803c2
JR
39312000-12-05 Jason Rumney <jasonr@gnu.org>
3932
3933 * md5.h: Remove underscores from function declarations.
3934 (__attribute__, __alignof__) [!__GNUC__]: Define.
3935
3936 * md5.c: Delay include of md5.h until after namespace cleaning.
3937
c28a075b
JR
3938 * makefile.w32-in (fns.o): Depend on md5.h
3939 (md5.o): New target.
3940 (sunfns.o): Remove.
3941
3942 * makefile.nt: Likewise.
3943
ff3c7056
JR
39442000-12-05 Jason Rumney <jasonr@altavista.net>
3945
3946 * w32term.c (expose_area): Complete last change.
3947
0c21eeeb
KR
39482000-12-05 Ken Raeburn <raeburn@gnu.org>
3949
3950 * minibuf.c: Include intervals.h.
3951
f201d732
JR
39522000-12-05 Jason Rumney <jasonr@gnu.org>
3953
3954 * w32term.c (x_produce_glyphs): If a font for a component of
3955 a composition is not found, use 1 pixel dot ascent and 0 dot
3956 descent value to avoid displaying terribly tall empty boxes.
3957 (expose_area): Pass x-coordinate relative to the exposed
3958 area to x_draw_glyphs instead of a window-relative coordinate.
3959
21999ab9
GM
39602000-12-05 Gerd Moellmann <gerd@gnu.org>
3961
4d2036e4
GM
3962 * xdisp.c (next_element_from_ellipsis): Save face before selective
3963 display in saved_face_id, and set face_before_selective_p.
3964 (reseat_1): Reset face_before_selective_p.
3965 (append_space, extend_face_to_end_of_line): If iterator's
3966 face_before_selective_p is set, use the face from saved_face_id.
3967 (extend_face_to_end_of_line): For tty frames, make sure to
3968 use the right face id when producing spaces at the end of
3969 the line.
3970
3971 * dispextern.h (struct it): Add face_before_selective_p.
3972
52be17cc
GM
3973 * keyboard.c (record_char): Don't record identical help-echo
3974 events in recent_keys.
3975
8a4f36cc
GM
3976 * xterm.c [USE_X_TOOLKIT]: Close the display.
3977 (xim_close_dpy): Handle case that the display has been closed.
3978
57d6e381
GM
3979 * xterm.c (x_destroy_window): Reset the frame's X window after
3980 destroying it.
3981
21999ab9
GM
3982 * dispnew.c (adjust_glyph_matrix): Make sure to initialize local
3983 variable window_width.
3984 (line_draw_cost): Fix code skipping over spaces at the end of the
3985 line when must_write_spaces is not set.
3986 (scrolling_window): Fix code inserting runs in list of all runs.
3987
91372bb7
KH
39882000-12-05 Kenichi Handa <handa@etl.go.jp>
3989
3990 * coding.c (setup_coding_system): Be sure to initialize
3991 coding->category_idx.
3992
6c083b4c
GM
39932000-12-04 Gerd Moellmann <gerd@gnu.org>
3994
0c68ce6f 3995 * xterm.c (PER_CHAR_METRIC): Removed because not used.
52283633 3996
6452929e
GM
3997 * xterm.c (expose_area): Pass x-coordinate relative to the exposed
3998 area to x_draw_glyphs instead of a window-relative coordinate.
3999
d7f31e22
GM
4000 * fileio.c (auto_save_error): Add parameter ERROR. Show the
4001 error in the message.
4002
ae18aa3b
GM
4003 * keyboard.c (Fread_key_sequence): Don't start the busy cursor
4004 timer after having read a key. It's not good for code reading
4005 several keys in a loop, like an input method.
4006
caa15ef7
GM
4007 * fileio.c (Finsert_file_contents): When VISIT is t, don't
4008 record undo information for format-decode.
4009
4010 * undo.c (Fprimitive_undo): Bind inhibit-read-only to t if
4011 current buffer is read-only, not if it isn't.
4012
6c083b4c
GM
4013 * keyboard.c (record_char): Record `help-echo' input events
4014 in recent_keys only if they display some help. Don't record
4015 `help-echo' events as macro char.
4016
caa15ef7
GM
40172000-12-04 Richard M. Stallman <rms@caffeine.ai.mit.edu>
4018
4019 * editfns.c (save_excursion_restore): Don't move point
4020 in another window if it is showing the wrong buffer.
4021 Avoid the call to Fwindow_live_p, for speed.
4022
5a13529b
KH
40232000-12-04 Kenichi Handa <handa@etl.go.jp>
4024
e225faa7
KH
4025 * xfaces.c (struct font_name): New member registry_priority.
4026 (split_font_name): Initialize the above member to zero.
4027 (concat_font_list): New function.
4028 (font_list): Include fonts of all alternative registries.
4029 (FONT_POINT_SIZE_QUANTUM): New macro.
4030 (better_font_p): Ignore point size difference less than
4031 FONT_POINT_SIZE_QUANTUM. Use registry_prioprity as a last resort.
4032
e89648b4
KH
4033 * xterm.c (x_produce_glyphs): If a font for a component of
4034 a composition is not found, use 1 pixel dot ascent and 0 dot
4035 descent value to avoid displaying terribly tall empty boxes.
4036
5a13529b
KH
4037 * ccl.c (stack_idx_of_map_multiple): Don't use C initializier.
4038
d7935eb6
KR
40392000-12-03 Ken Raeburn <raeburn@gnu.org>
4040
4041 * coding.h (code_convert_string1): Declare.
4042
4043 * fns.c (Fmd5): Pass lisp objects, not integers, to call3.
4044
52283633 4045 * lisp.h (Fmake_variable_buffer_local, Fbuffer_file_name): Declare.
d7935eb6 4046
0dd5e255
JR
40472000-12-02 Jason Rumney <jasonr@gnu.org>
4048
4049 * w32term.c (w32_bdf_per_char_metric): Dereference pointer
4050 correctly for single byte character case.
4051 (w32_per_char_metric): Do not try to make any assumptions about
4052 the metrics of BDF fonts.
250cfece 4053 (x_estimate_mode_line_height): If `mode-line' face
52283633 4054 hasn't a font, use that of the frame, as drawing glyphs does.
250cfece
JR
4055 (note_mouse_highlight): Change the cursor shape on the vertical
4056 border between windows [not enabled].
4057
4058 * w32term.h (struct w32_output): Add member horizontal_drag_cursor.
4059
4060 * w32fns.c (Fx_create_frame): Reintroduce the call to
4061 face-set-after-frame-defaults.
4062 (Vx_window_horizontal_drag_shape): New variable.
4063 (syms_of_xfns): DEFVAR_LISP it.
4064 (x_set_mouse_color): Create frame's horizontal_drag_cursor [not
4065 enabled].
0dd5e255 4066
b5d8d2ca
GM
40672000-12-02 Simon Josefsson <simon@josefsson.org>
4068
4069 * fns.c (Fmd5): Use a different logic to decide the coding system
4070 to use.
4071
4072 * coding.h (Qwrite_region, Qcoding_system_error): Declare extern.
4073
fbb87147
EZ
40742000-12-02 Eli Zaretskii <eliz@is.elta.co.il>
4075
52283633 4076 * fileio.c (Fread_file_name) [DOS_NT]: Don't crash if homedir is NULL.
fbb87147 4077
447e9da0
GM
40782000-12-01 Gerd Moellmann <gerd@gnu.org>
4079
7708ced0
GM
4080 * xterm.c (x_calc_absolute_position): Don't subtract menubar's
4081 height for YNegative.
4082 (x_calc_absolute_position) [USE_MOTIF]: Use the column widget's
4083 height; also see comment there.
4084
447e9da0
GM
4085 * window.c (coordinates_in_window): Handle computations for
4086 positions on the vertical bar and fringes differently for
4087 window-system frames. Consider some pixels near the vertical bar
4088 as on the bar if the frame doesn't have vertical scroll bars.
4089 Associate positions between mode or header lines with the
4090 right window, the left one.
4091
86d1db20
JR
40922000-12-01 Jason Rumney <jasonr@gnu.org>
4093
4094 * w32term.c (w32_clear_window): Avoid clearing an invalid frame.
4095
4096 * w32xfns.c (get_frame_dc): Avoid changing the palette on an
4097 invalid frame.
4098
a1d58e5b
GM
40992000-12-01 Gerd Moellmann <gerd@gnu.org>
4100
52283633 4101 * window.c (struct saved_window): Add members orig_top and orig_height.
a1d58e5b
GM
4102 (SAVED_WINDOW_VECTOR_SIZE): Increment to 16.
4103 (save_window_save, Fset_window_configuration): Save/restore
4104 window's orig_top and orig_height.
4105
89c609af
JR
41062000-12-01 Jason Rumney <jasonr@gnu.org>
4107
4d177746 4108 * w32term.c (x_draw_vertical_border): Fix call to w32_fill_rect.
86d1db20 4109
89c609af
JR
4110 * w32fns.c (x_set_cursor_color): Fix last change.
4111
eccc05db
GM
41122000-11-30 Gerd Moellmann <gerd@gnu.org>
4113
31b6671b
GM
4114 * xdisp.c (echo_area_display): If cursor is in the echo area, make
4115 sure that the next redisplay displays the minibuffer, so that
4116 the cursor will be replaced with what the minibuffer wants.
4117
eccc05db
GM
4118 * xterm.c: Test USE_TOOLKIT_SCROLL_BARS everywhere with #ifdef and
4119 #ifndef instead of using #if.
4120 (XTread_socket) [USE_MOTIF] <KeyPress>: Call XmIsScrollBar only if
4121 USE_TOOLKIT_SCROLL_BARS is defined.
4122
162de750
JR
41232000-11-30 Jason Rumney <jasonr@gnu.org>
4124
4125 * w32fns.c (x_set_cursor_color): Use x_update_cursor instead of
4126 x_display_cursor.
4127
693c4692
GM
41282000-11-30 Gerd Moellmann <gerd@gnu.org>
4129
4130 * fns.c (Fmd5): Doc fix.
4131
b5d8d2ca 41322000-11-30 Simon Josefsson <simon@josefsson.org>
edfb795e
GM
4133
4134 * fns.c (Fmd5): New function.
4135 (syms_of_fns): Defsubr md5.
4136
4137 * Makefile.in (obj): Add md5.o
4138
b02cd40b
GM
41392000-11-30 Gerd Moellmann <gerd@gnu.org>
4140
edfb795e
GM
4141 * md5.h, md5.c: New files, taken from glibc.
4142
df3aedcf
GM
4143 * xmenu.c (popup_get_selection): Use xmalloc instead of malloc.
4144
b02cd40b 4145 * xterm.c (x_estimate_mode_line_height): If `mode-line' face
52283633 4146 hasn't a font, use that of the frame, as drawing glyphs does.
b02cd40b 4147
8b5176cd
SM
41482000-11-29 Stefan Monnier <monnier@cs.yale.edu>
4149
4150 * eval.c (Frun_hooks): Allow 0 arguments.
4151
346598f1
GM
41522000-11-29 Gerd Moellmann <gerd@gnu.org>
4153
f9396e03
GM
4154 * xterm.c (XTmouse_position) [USE_X_TOOLKIT]: When the mouse
4155 is over the menu bar widget, say it's not on the frame.
4156
4a967a9b
GM
4157 * xfns.c (Fx_create_frame): Reintroduce the call to
4158 face-set-after-frame-defaults.
4159
346598f1
GM
4160 * eval.c (Fsignal): Reset handling_signal.
4161
222456a1
JR
41622000-11-28 Jason Rumney <jasonr@gnu.org>
4163
4164 * w32menu.c (add_menu_item): Reset menu item text when changing
4165 type to radio button.
4166
8049ddc0
GM
41672000-11-28 Gerd Moellmann <gerd@gnu.org>
4168
346598f1 4169 * xselect.c: Update copyright.
f4f4ee4d 4170
bebe4a2c
GM
4171 * window.c (coordinates_in_window): If on a mode or header line,
4172 but sufficiently close to its start, return ``on vertical
4173 border''. This gives us a way to drag windows horizontally when
4174 using toolkit scroll bars.
4175
4176 * xterm.c (note_mouse_highlight): Change the cursor shape
4177 on the vertical border between windows.
4178
4179 * xterm.h (struct x_output): Add member horizontal_drag_cursor.
4180
4181 * xfns.c (Vx_window_horizontal_drag_shape): New variable.
4182 (syms_of_xfns): DEFVAR_LISP it.
4183 (x_set_mouse_color): Create frame's horizontal_drag_cursor.
4184
8d2c2642
GM
4185 * textprop.c (text_read_only): New function.
4186 (verify_interval_modification): Use it instead of signaling
4187 `text-read-only'. This makes it easier to catch this error
52283633 4188 with a breakpoint.:
8d2c2642 4189
52283633 4190 * xdisp.c (forward_to_next_line_start): Check for newlines,
8049ddc0
GM
4191 not end of line, which includes CR.
4192
5a2bae6c
KH
41932000-11-28 Kenichi Handa <handa@etl.go.jp>
4194
4195 * coding.c (Ffind_coding_systems_region_internal): Be sure to
4196 include no-conversion.
4197
ae31f84d
JR
41982000-11-27 Jason Rumney <jasonr@gnu.org>
4199
4200 * w32fns.c (w32_load_system_font): Always mark font as double byte
4201 if codepage is unicode.
4202
67f1cf4c
GM
42032000-11-27 Gerd Moellmann <gerd@gnu.org>
4204
4a74d071 4205 * xdisp.c (forward_to_next_line_start): If already on a newline,
52283633 4206 just consume it to avoid unintended skipping over invisible text below.
4a74d071 4207
902ae620
GM
4208 * keyboard.c (lucid_event_type_list_p): Handle `help-echo',
4209 `vertical-line', `mode-line' and `header-line' events.
4210
4211 * xdisp.c (try_window_id): Avoid starting to display in the middle
67f1cf4c
GM
4212 of a character, a TAB for instance. This is easier than to set
4213 up the iterator exactly, and it's not a frequent case, so the
4214 additional effort wouldn't really pay off.
4215
c1e279c2
AC
42162000-11-26 Andrew Choi <akochoi@i-cable.com>
4217
67f1cf4c 4218 * emacs.c (main) [macintosh]: Call syms_of_frame before calling
c1e279c2
AC
4219 init_window_once.
4220
a609568a
JR
42212000-11-25 Jason Rumney <jasonr@gnu.org>
4222
52283633
SM
4223 * keyboard.c (make_lispy_event) [mouse_wheel, drag_n_drop]:
4224 Args to window_from_coordinates should be pixel coordinates.
48b21762 4225
a609568a
JR
4226 * w32fns.c (x_to_w32_font): Do not filter out italic fonts, as new
4227 redisplay handles them properly.
4228
a658d039
MB
42292000-11-25 Miles Bader <miles@gnu.org>
4230
4231 * indent.c (compute_motion): Keep pos_byte in sync with pos.
4232
d3416cca
JR
42332000-11-24 Jason Rumney <jasonr@gnu.org>
4234
4235 * w32.c (init_environment): Set LANG environment variable based on
4236 locale settings, if not set.
4237
4238 * w32fns.c (x_set_tool_bar_lines): Clear internal border when
4239 making tool bar smaller. When clearing the frame, also
4240 clear current matrices. Clear frame when tool bar disappears.
4241 Don't use more lines for the tool-bar than is available.
4242 (x_change_window_heights): New function.
4243
ba193890
GM
42442000-11-24 Gerd Moellmann <gerd@gnu.org>
4245
2be8f184
GM
4246 * xdisp.c (init_from_display_pos): If POS says we're already after
4247 an overlay string ending at POS, make sure to pop the iterator
4248 because it will be in front of that overlay string. When POS is
4249 ZV, we've thereby also ``processed'' overlay strings at ZV.
4250
ba193890
GM
4251 * xfaces.c (lface_from_face_name): Function comment fix.
4252
1862a24e
MB
42532000-11-24 Miles Bader <miles@gnu.org>
4254
4255 * xdisp.c (display_menu_bar, display_mode_line): Change the way we
4256 apply `mode-line-inverse-video' -- zero means force display using
4257 the default face, non-zero means display using the specialized face.
4258 (syms_of_xdisp): `mode-line-inverse-video' defaults to true again.
4259
f07fa1b8
KH
42602000-11-23 Kenichi Handa <handa@etl.go.jp>
4261
4262 * alloc.c (Fmake_string): Use MAX_MULTIBYTE_LENGTH, instead of
4263 hard coded `4'.
4264
2bcdf662
EZ
42652000-11-23 Eli Zaretskii <eliz@is.elta.co.il>
4266
4267 * coding.c (decode_coding_emacs_mule): Fix the case of
4268 CODING_EOL_LF, which used uninitialized value of c.
4269
ba8299ff
SM
42702000-11-23 Stefan Monnier <monnier@cs.yale.edu>
4271
4272 * xdisp.c (syms_of_xdisp): Make fontification-functions buffer-local.
4273
f4117c4d
GM
42742000-11-22 Gerd Moellmann <gerd@gnu.org>
4275
03e757c1
GM
4276 * buffer.c (Fmake_indirect_buffer): Don't treat nil as a
4277 buffer object.
4278
f4117c4d
GM
4279 * frame.h (struct frame): Replace desired_tool_bar_items,
4280 current_tool_bar_items, n_desired_tool_bar_items,
cc362d76 4281 n_current_tool_bar_items with tool_bar_items and n_tool_bar_items.
f4117c4d
GM
4282
4283 * frame.c (make_frame): Change initialization of tool bar
4284 items accordingly.
4285
4286 * xterm.c (x_handle_tool_bar_click, note_tool_bar_highlight):
cc362d76 4287 Change references to members deleted from struct frame to use the
f4117c4d
GM
4288 new ones.
4289
4290 * xdisp.c (update_tool_bar, build_desired_tool_bar_string): Change
52283633 4291 references to members deleted from struct frame to use the new ones.
f4117c4d 4292
52283633 4293 * dispnew.c (update_frame): Do nothing with frame's tool bar items.
f4117c4d
GM
4294
4295 * alloc.c (mark_object) <frame>: Mark tool bar items differently.
4296
4297 * w32term.c (x_tool_bar_item, w32_handle_tool_bar_click)
cc362d76 4298 (note_tool_bar_highlight): Change references to members deleted
f4117c4d
GM
4299 from struct frame to use the new ones.
4300
f8e2f3f2
MB
43012000-11-23 Miles Bader <miles@gnu.org>
4302
4303 * xdisp.c (display_menu_bar): Or `mode-line-inverse-video' with
4304 the face's inverse-video attribute, rather than overriding it.
4305
60e8e0a5
GM
43062000-11-22 Gerd Moellmann <gerd@gnu.org>
4307
4308 * xfns.c (x_set_tool_bar_lines): Clear internal border when
4309 making tool bar smaller.
4310
92dd1b29
DL
43112000-11-22 Dave Love <fx@gnu.org>
4312
4313 * s/sol2-5.h (_LARGEFILE_SOURCE, _FILE_OFFSET_BITS): Don't define.
4314
e672fdce
MB
43152000-11-22 Miles Bader <miles@gnu.org>
4316
3a17d6cc
MB
4317 * keyboard.c (Vminibuffer_message_timeout): New variable.
4318 (command_loop_1): Use it to determine message timeout.
4319 (syms_of_keyboard): Initialize it.
4320
60e8e0a5 4321 * xdisp.c (syms_of_xdisp): `mode-line-inverse-video' defaults to nil.
e672fdce 4322
e9655d81
KH
43232000-11-22 Kenichi Handa <handa@etl.go.jp>
4324
4325 * sysdep.c: Move the code for declaring h_errno after #include
4326 <netdb.h>.
4327
77270fac
GM
43282000-11-21 Gerd Moellmann <gerd@gnu.org>
4329
cd913aae
GM
4330 * xfns.c (Fx_hide_tip) [USE_LUCID]: Add a hack to redisplay
4331 the menu bar when the tooltip is unmapped.
4332
77270fac
GM
4333 * buffer.c (Fkill_buffer): Notice if the buffer to kill is the
4334 sole visible buffer when we're currently in the mini-buffer, and
4335 give up if so.
52283633 4336
556635d6
JR
43372000-11-21 Jason Rumney <jasonr@gnu.org>
4338
4339 * w32select.c (Fw32_set_clipboard_data): Save a copy of what is
4340 put on the clipboard.
4341 (Fw32_get_clipboard_data): Compare data on clipboard with saved
4342 copy of what Emacs last put there. If they are the same, do not
52283633 4343 use the clipboard copy to avoid losing data due to coding conversions.
556635d6 4344
5b7bde64
MB
43452000-11-22 Miles Bader <miles@gnu.org>
4346
4347 * minibuf.c (Vminibuffer_prompt_properties): New variable.
4348 (syms_of_minibuf): Initialize it.
4349 (read_minibuf): Add properties from Vminibuffer_prompt_properties
4350 to prompt, don't make read-only.
4351
ff23e1dd
GM
43522000-11-21 Gerd Moellmann <gerd@gnu.org>
4353
52283633
SM
4354 * bytecode.c (Fbyte_code) <Bvarbind, Bunwind_protect>:
4355 Add BEFORE/AFTER_POTENTIAL_GC.
3c64f287 4356
7aaf4388
GM
4357 * s/hpux10.h (_FILE_OFFSET_BITS): Undef.
4358
f5f47add 4359 * buffer.c (mmap_free_1): Avoid a compiler warning.
1a15cca0 4360
ff23e1dd
GM
4361 * term.c, cm.c: Don't try to include termcap.h; see comment there.
4362
37c35586
KH
43632000-11-21 Kenichi Handa <handa@etl.go.jp>
4364
4365 * s/sol2-5.h: Move #undef USE_MMAP_FOR_BUFFERS out of #if 0
4366 ... #endif scope.
4367
ff9ab414
GM
43682000-11-20 Gerd Moellmann <gerd@gnu.org>
4369
52283633 4370 * xfns.c (x_create_tip_frame): Use CWSaveUnder only if the
c51d2b5e
GM
4371 screen supports it.
4372
29a01b72
GM
4373 * s/gnu-linux.h: Don't use `#cpu'.
4374
09dfdf85
GM
4375 * buffer.c (MAP_FAILED): Define it as `((void *) -1)' if it's
4376 not defined in mman.h.
4377
52283633 4378 * xterm.c (scroll_bar_windows, scroll_bar_windows_size): New variables.
ff9ab414
GM
4379 (x_send_scroll_bar_event): Store the window in scroll_bar_windows
4380 and store an index in the XClientMessageEvent. Storing a
4381 Lisp_Object or pointer can fail on a 64 bit system, since X only
4382 transfers 32 bits.
52283633
SM
4383 (x_scroll_bar_to_input_event): Get the window from scroll_bar_windows.
4384
81459ac9
DL
43852000-11-20 Dave Love <fx@gnu.org>
4386
4387 * Makefile.in (LIBX): Reorder for -lX11 after -lXpm.
4388
56c13ae6
GM
43892000-11-20 Gerd Moellmann <gerd@gnu.org>
4390
4391 * s/sol2-5.h (USE_MMAP_FOR_BUFFERS): Undefine.
4392
495a6df3
KH
43932000-11-20 Kenichi Handa <handa@etl.go.jp>
4394
2bcf3714
KH
4395 * charset.c (get_new_private_charset_id): Don't limit CHARSET_ID
4396 by WIDTH.
4397
495a6df3
KH
4398 * alloc.c (make_string): Fix previous change. Be sure to make
4399 unibyte string correctly.
4400
6d950f4c
GM
44012000-11-19 Gerd Moellmann <gerd@gnu.org>
4402
39b39373
GM
4403 * window.c (Fwindow_list): Change parameter list to be XEmacs
4404 compatible.
4405 (window_list_1): New function.
4406 (window_loop): Use it instead of Fwindow_list.
4407
b95b34e5
GM
4408 * sysdep.c (emacs_ospeed): New variable.
4409 (toplevel): Don't declare ospeed extern.
4410 (init_baud_rate): Use emacs_ospeed instead of ospeed.
4411
4412 * termcap.c (ospeed): Remove.
4413 (tputs) [!emacs]: Remove unused code.
4414 (tgetent): Avoid a compiler warning.
4415
e83dc917
GM
4416 * xterm.c (x_set_toolkit_scroll_bar_thumb, x_scroll_bar_create)
4417 (x_scroll_bar_remove, XTset_vertical_scroll_bar): Call
b95b34e5 4418 SCROLL_BAR_X_WIDGET with additional argument DPY.
e83dc917
GM
4419
4420 * xterm.h (struct scroll_bar): Members x_widget_low, x_widget_high
4421 removed.
4422 (SCROLL_BAR_X_WIDGET): Get the widget via XtWindowToWidget.
4423 Take the X display as additional argument.
4424 (SET_SCROLL_BAR_X_WIDGET): Store the window of the widget, since
4425 `Widget' is a pointer type that's not easily stored in Lisp_Object
4426 form in a portable way.
52283633 4427
6d950f4c
GM
4428 * dispnew.c (update_text_area): Fix last change.
4429
e47306e6
GM
44302000-11-18 Gerd Moellmann <gerd@gnu.org>
4431
fb3cd89b
GM
4432 * xdisp.c: Use BINDING_STACK_SIZE throughout.
4433
4434 * xfns.c (x_set_tool_bar_lines): When clearing the frame, also
4435 clear current matrices.
4436
edaa9aed
GM
4437 * buffer.c (mmap_enlarge): Don't print a message on stderr
4438 if mapping new memory at the end of the existing region fails.
4439
e47306e6
GM
4440 * dispnew.c (update_text_area): Don't skip over equal glyphs
4441 when the last current glyph overlaps the glyph to its right.
4442
509633e3
MB
44432000-11-18 Miles Bader <miles@gnu.org>
4444
4445 * xdisp.c (message_log_check_duplicate): Let "..."-detection match
4446 lines that *end* with "..." too (that's the most common case!).
4447
d392e9c5
GM
44482000-11-18 Gerd Moellmann <gerd@gnu.org>
4449
67988445
GM
4450 * xdisp.c (resize_mini_window): Temporarily change to the
4451 mini-window's buffer if necessary.
1bfdbe43 4452
d392e9c5
GM
4453 * xfns.c (Fx_show_tip): Use default y-offset of -10 so that
4454 the tooltip obscures less text under it.
4455
44562000-11-17 Gerd Moellmann <gerd@gnu.org>
4457
4458 * puresize.h (BASE_PURESIZE): Increase to 700000.
4459
92bb977f
JR
44602000-11-18 Jason Rumney <jasonr@gnu.org>
4461
4462 * w32term.c (w32_draw_bitmap): Use face to set colors.
4463
26fbf20b
DL
44642000-11-17 Dave Love <fx@gnu.org>
4465
4466 * lread.c (Fload): Fix #ifdef for pcc.
4467
100b593b
GM
44682000-11-17 Gerd Moellmann <gerd@gnu.org>
4469
4470 * xdisp.c (pos_visible_p): Compute the default character height
4471 differently.
4472
a288d0d1
GM
44732000-11-16 Gerd Moellmann <gerd@gnu.org>
4474
cac94de6 4475 * xdisp.c (pos_visible_p): Handle case that we reach ZV without
52283633 4476 knowing the line's height; use the default font's height in that case.
cac94de6 4477
a288d0d1
GM
4478 * xfaces.c (weight_table): Add `demi' with the same meaning as
4479 `demibold'.
4480
981fb6f6
KH
44812000-11-16 Kenichi Handa <handa@etl.go.jp>
4482
2cca872d 4483 * dispnew.c (null_row): New global static variable.
981fb6f6
KH
4484 (clear_glyph_row): Delete local static variable null_row.
4485
e5fa381b
JR
44862000-11-15 Jason Rumney <jasonr@gnu.org>
4487
4488 * w32term.c (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New constant.
4489 (w32_alloc_lighter_color): Use new brightness calculations from
4490 xterm.c. Scale delta to be in the range expected by W32.
4491 (w32_draw_relief_rect): Use frame relief colors.
4492
8e42f043
GM
44932000-11-15 Gerd Moellmann <gerd@gnu.org>
4494
6d133d1f
GM
4495 * frame.c (syms_of_frame_1): Removed; code moved to syms_of_frame.
4496 (Qinhibit_default_face_x_resources): New variable.
4497 (syms_of_frame): Initialize it.
4498 (Fmodify_frame_parameters): Bind inhibit-default-face-x-resources.
4499
4500 * xdisp.c (pos_visible_p): Improve function comment.
4501
4502 * lisp.h (BINDING_STACK_SIZE): New macro.
4503
8e42f043
GM
4504 * dired.c (directory_files_internal) [EAGAIN || EINTR]: Retry
4505 reading the directory if readdir returns null and errno is EAGAIN
4506 or EINTR.
4507
e8c87124
SM
45082000-11-14 Stefan Monnier <monnier@cs.yale.edu>
4509
4510 * xdisp.c (try_scrolling): Set scroll_max to max of scroll_* args
4511 so setting scroll-step to 1 doesn't defeat scroll-conservatively.
4512 Set amount_to_scroll to max of dx and scroll_step so that
4513 scroll-conservatively doesn't defeat scroll-step>1.
4514 (syms_of_xdisp): Add a hint in scroll-step's docstring to use
4515 scroll-conservatively for line-at-a-time scrolling.
4516
5f0c971d
GM
45172000-11-14 Gerd Moellmann <gerd@gnu.org>
4518
4519 * window.c (Fpos_visible_in_window_p): Call pos_visible with
4520 extra argument.
4521
4522 * xdisp.c (current_mode_line_height, current_header_line_height):
4523 New variables.
4524 (init_xdisp): Initialize them.
4525 (pos_visible_p): Add parameter EXACT_MODE_LINE_HEIGHTS_P. Compute
4526 and use exact mode line heights if it is set.
4527
4528 * lisp.h (pos_visible_p): Change prototype.
4529
4530 * dispextern.h (CURRENT_MODE_LINE_HEIGHT)
4531 (CURRENT_HEADER_LINE_HEIGHT): Look at current_mode_line_height
4532 and current_header_line_height first.
52283633
SM
4533 (current_mode_line_height, current_header_line_height):
4534 Declare extern.
5f0c971d 4535
d7361edf
MB
45362000-11-14 Miles Bader <miles@lsi.nec.co.jp>
4537
4538 * xterm.c (x_alloc_lighter_color): Use real brightness calculation.
4539 Just use FACTOR/2 instead of HIGHLIGHT_COLOR_DARK_BOOST.
4540 (HIGHLIGHT_COLOR_DARK_BOOST): Macro removed.
4541
ee5e440a
MB
45422000-11-14 Miles Bader <miles@gnu.org>
4543
4544 * xterm.c (x_alloc_lighter_color): Include an additive component
4545 too for dark colors, because FACTOR isn't enough.
4546 (HIGHLIGHT_COLOR_DARK_BOOST, HIGHLIGHT_COLOR_DARK_BOOST_LIMIT):
4547 New macros.
4548
5ca020fc
GM
45492000-11-13 Gerd Moellmann <gerd@gnu.org>
4550
4551 * keyboard.c (show_help_echo): Call message3_nolog with number of
4552 bytes in the help string as 2nd parameter, instead of the number
4553 of characters.
4554
9d348294
MB
45552000-11-13 Miles Bader <miles@gnu.org>
4556
4557 * lread.c (openp): Return -2 instead of 0 for the `remote file' case.
4558 (Fload): Use new openp return protocol.
4559 Don't try to use Vload_source_file_function to load .elc files.
4560 * xfns.c (x_create_bitmap_from_file, x_find_image_file): Use new
4561 openp return protocol.
4562 * w32fns.c (x_create_bitmap_from_file, x_find_image_file): Likewise.
4563
1729bb9a
KH
45642000-11-11 Kenichi Handa <handa@etl.go.jp>
4565
4e677396
KH
4566 * syssignal.h: Pay attention to BROKEN_SIGAIO and BROKEN_SIGPTY.
4567
4568 * m/ibmrs6000.h (BROKEN_SIGAIO, BROKEN_SIGPTY, BROKEN_SIGPOLL):
4569 Defined these macros.
4570 (NLIST_STRUCT): Avoid re-defining it.
4571
1729bb9a
KH
4572 * s/hpux10.h (C_SWITCH_X_SYSTEM): Include -I/usr/include/X11R6 and
4573 -I/usr/contrib/X11R6/include.
4574 (LD_SWITCH_X_DEFAULT): Include -L/usr/lib/X11R6.
4575
a82fe213
JR
45762000-11-10 Jason Rumney <jasonr@gnu.org>
4577
4578 * w32term.h (CP_8BIT, CP_UNICODE, CP_INVALID): New pseudo-codepages.
4579
4580 * w32term.c (w32_encode_char): Handle CP_UNICODE specially.
4581 (w32_use_unicode_for_codepage): Use new pseudo-codepages.
4582
4583 * w32fns.c (Qw32_charset_hangeul): Rename to match w32 headers.
4584 (Qw32_charset_vietnamese): New symbol.
4585 (xlfd_charset_of_font): New function.
4586 (w32_load_system_font): Use it.
4587 (x_to_w32_charset): Use Fassoc to find charset info. Special case
4588 when Vw32_charset_info_alist is nil to ensure default face always
4589 has font. Use Fcar and Fcdr for safety.
4590 (w32_to_x_charset): Use Vw32_charset_info_alist for mappings.
4591 (w32_codepage_for_font): Use xlfd_charset_of_font. Use new
4592 pseudo-codepages for special cases.
4593 (w32_to_x_font): New parameter to allow charset portion to be
4594 specified where there is many to one mapping. Callers changed.
4595 (w32_list_fonts): Avoid listing fonts that won't display.
4596
52d89894
GM
45972000-11-10 Gerd Moellmann <gerd@gnu.org>
4598
4599 * xfaces.c (Vface_alternative_font_registry_alist): New variable.
4600 (font_list_1): Renamed from font_list.
4601 (font_list): New function, trying alternative registries from
4602 Vface_alternative_font_registry_alist.
4603 (Finternal_set_alternative_font_registry_alist): New function.
4604 (syms_of_xfaces): Initialize and Staticpro
52283633
SM
4605 Vface_alternative_font_registry_alist.
4606 Defsubr Finternal_set_alternative_font_registry_alist.
52d89894 4607
651cd3da
KR
46082000-11-09 Ken Raeburn <raeburn@gnu.org>
4609
4610 * lisp.h (Flooking_at): Declare.
4611
388ac098
GM
46122000-11-09 Gerd Moellmann <gerd@gnu.org>
4613
778fbc46 4614 * dired.c (directory_files_internal): Fix a braino.
52283633 4615
388ac098
GM
4616 * dired.c (directory_files_internal): Add missing GCPRO's.
4617 Some cleanup.
4618
ecaedde1
GM
46192000-11-08 Gerd Moellmann <gerd@gnu.org>
4620
f7eb32aa
GM
4621 * xdisp.c (syms_of_xdisp): Change doc of max-mini-window-height.
4622 (resize_mini_window): Return quickly if Vresize_mini_window is
4623 nil. Don't return if Vmax_mini_window_height is nil.
4624
4625 * xdisp.c (Vresize_mini_window, Qgrow_only): New variables.
4626 (syms_of_xdisp): Initialize them.
4627 (resize_mini_window): Act according to the setting of
4628 Vresize_mini_window.
4629 (syms_of_xdisp): Initialize Vmenu_bar_update_hook to nil.
4630
ecaedde1
GM
4631 * xterm.c (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]: Map the
4632 scroll bar widget after configuring it, so that it will appear at
4633 the right position from the start.
4634 (XTredeem_scroll_bar): Cleaned up.
4635
3747ef2c
KH
46362000-11-08 Kenichi Handa <handa@etl.go.jp>
4637
4638 * xterm.c (VCENTER_BASELINE_OFFSET): Fix previous change. If the
5d16e624 4639 font is taller than the frame line, we don't have to bias the
3747ef2c
KH
4640 division by two.
4641
4642 * w32term.c (VCENTER_BASELINE_OFFSET): Likewise.
4643
03391420
DL
46442000-11-07 Dave Love <fx@gnu.org>
4645
7758f1c1 4646 * config.in (HAVE_MKSTEMP): Add.
03391420
DL
4647
4648 * callproc.c (Fcall_process_region) [HAVE_MKSTEMP]: Use it.
4649
b5de343d
GM
46502000-11-07 Gerd Moellmann <gerd@gnu.org>
4651
acad3c0b
GM
4652 * window.c (Fset_window_configuration): Don't try to preserve
4653 point in the current buffer, if that buffer is displayed in more
4654 than one window.
4655
b5de343d
GM
4656 * xfaces.c (lookup_named_face): If default face isn't realized,
4657 try to realize it. Return -1 if not successful.
4658 (Fx_list_fonts): Handle case that face cannot be determined.
4659 (Fface_font): Likewise.
4660
cdb1fe49
GM
46612000-11-06 Gerd Moellmann <gerd@gnu.org>
4662
4663 * window.c (displayed_window_lines): Detect partially
4664 visible lines at the bottom correctly.
4665
d3a67486
SM
46662000-11-06 Stefan Monnier <monnier@cs.yale.edu>
4667
4668 * fileio.c (Fwrite_region): Use `visiting' rather than `visit'
4669 when ensuring we don't do visit in indirect buffer.
4670
ff8dd5d5
KH
46712000-11-06 Kenichi Handa <handa@etl.go.jp>
4672
4673 * composite.h (compose_chars_in_text): Add prototype.
4674
4675 * composite.c (Vcomposition_function_table): New variable.
4676 (Qcomposition_function_table): New variable.
4677 (run_composition_function): Call
4678 Vcompose_chars_after_function with three arguments.
4679 (compose_chars_in_text): New function.
4680 (syms_of_composite): Modified the doc-string of
4681 Vcompose_chars_after_function. Declare composition-function-table
4682 as a lisp variable, and initialize it.
4683
4684 * xfns.c (x_encode_text): Suppress producing escape sequences for
4685 composition.
4686
4687 * xselect.c: Include composite.h.
4688 (selection_data_to_lisp_data): Call compose_chars_in_text on STR.
4689
d1145f85
AI
46902000-11-05 Andrew Innes <andrewi@gnu.org>
4691
4692 * w32term.c (x_produce_glyphs): Fix typo in enum name.
4693
4694 * sysdep.c (read_input_waiting): Remove extraneous argument to
4695 read_socket_hook.
4696
4697 * w32fns.c (Fx_server_version): Include w32_build_number in the
4698 return list.
4699
4700 * w32heap.c (w32_build_number): New variable.
4701 (cache_system_info): Set it.
4702
4703 * w32heap.h (w32_build_number): Add extern.
4704
4705 * emacs.c (syms_of_emacs): Update docstring for
4706 system-configuration, to reflect the actual usage on MS-Windows.
4707
e85ee976
GM
47082000-10-31 Gerd Moellmann <gerd@gnu.org>
4709
26dcb81b
GM
4710 * keyboard.c (read_char) <wrong_kboard>: Make sure that we
4711 process idle timers while waiting for another event.
4712
52283633 4713 * dispnew.c (update_frame_line): Handle case where spaces in
0a894bad
GM
4714 the default face are colored.
4715
e85ee976
GM
4716 * xdisp.c (redisplay_tool_bar): Don't set fonts_changed_p if
4717 window height hasn't changed.
4718
01b220b6
JR
47192000-10-31 Jason Rumney <jasonr@gnu.org>
4720
4721 * w32term.c (x_produce_glyphs): Handle composite characters.
4722 (x_draw_glyph_string_foreground)
4723 (x_draw_composite_glyph_string_foreground): Restore old font.
4724
4e6b7204
MB
47252000-10-31 Miles Bader <miles@lsi.nec.co.jp>
4726
4727 * minibuf.c (read_minibuf): Reset the undo history just before
4728 starting the recursive-edit.
4729
d4358b37
GM
47302000-10-30 Gerd Moellmann <gerd@gnu.org>
4731
563f68f1
GM
4732 * xfaces.c (menu_face_change_count): New variable.
4733 (Finternal_set_lisp_face_attribute): Increment it for changes
4734 of the `menu' face.
4735 (realize_basic_faces): Reflect changes in the `menu' faces
4736 in menu bars.
4737
82e274d1
GM
4738 * xdisp.c (try_scrolling) <PT >= scroll_margin_pos>: Add 1 to the
4739 dy obtained from the iterator's y-position after moving from
4740 scroll_margin_pos to PT; see comment there.
52283633 4741
0dbf9fd2
GM
4742 * xdisp.c (safe_eval_handler): Call add_to_log.
4743
906b3b14
GM
4744 * xfaces.c (resolve_face_name): Handle case that FACE_NAME
4745 is not a symbol or string.
4746
d4358b37
GM
4747 * xdisp.c (echo_area_display): Don't perform a display update from
4748 inside redisplay. The update will happen anyway at the end of
4749 redisplay, and it can confuse redisplay (GC messages while
4750 redisplaying, for instance.)
4751
70c825df
SM
47522000-10-30 Stefan Monnier <monnier@cs.yale.edu>
4753
cf9b4b0b
SM
4754 * xrdb.c (x_load_resources): Use the class name in the defaults.
4755
70c825df
SM
4756 * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
4757 (regex_compile): Catch bogus \(\1\).
4758
a1d34b1e
GM
47592000-10-30 Gerd Moellmann <gerd@gnu.org>
4760
cae71efe
GM
4761 * xterm.c (x_alloc_nearest_color): Fix last change to compare
4762 RGB values.
52283633 4763
35efe0a1
GM
4764 * xterm.c (x_alloc_nearest_color): If allocation succeeds, and
4765 we have a color cache, check that the cached color equals the
4766 allocated color. If not, clear the color cache.
4767
1d3baf74
GM
4768 * window.c (displayed_window_lines): Change buffers if necessary.
4769 Fix computation of displayed lines.
4770
a1d34b1e
GM
4771 * keyboard.c (syms_of_keyboard): Change DEFVAR_LISP of
4772 update_menu_bindings to DEFVAR_BOOL.
4773
70737ea9
KH
47742000-10-30 Kenichi Handa <handa@etl.go.jp>
4775
70c825df 4776 * search.c (Fset_match_data): Be sure to make search_regs always sane.
80406070 4777
fa0cb51d
KH
4778 * puresize.h (BASE_PURESIZE): Increase to 680000.
4779
70737ea9
KH
4780 * fns.c (Foptimize_char_table): Fix arg for CHARSET_DIMENSION.
4781
0e4c08e8
JR
47822000-10-29 Jason Rumney <jasonr@gnu.org>
4783
4784 * w32term.h (FONT_DESCENT): Negate descent of BDF fonts.
4785
4786 * w32term.c (w32_bdf_per_char_metric): Negate descent.
4787 (w32_cache_char_metrics): Handle possibility that 'x' does not
4788 exist in a BDF font.
4789 (W32_TEXTOUT): w32_BDF_TextOut wants number of bytes not chars.
4790
4791 * w32bdf.h (bdffont): Add nchars.
4792
4793 * w32bdf.c (set_bdf_font_info): Set it.
4794 (w32_BDF_TextOut): Swap byte order of double byte characters.
4795 (w32_load_bdf_font): Set double_byte_p based on bdf_font->nchars.
4796
45b84006
EZ
47972000-10-28 Eli Zaretskii <eliz@is.elta.co.il>
4798
4799 * frame.c (Fframe_parameters): Fix the change from 2000-10-16:
4800 don't override the colors in frame's param_alist, unless they are
4801 unspecified.
4802
4803 * term.c (reassert_line_highlight): If inverse_video is non-zero,
4804 reverse the effect of the highlight flag.
4805
caf9deee
KR
48062000-10-27 Ken Raeburn <raeburn@gnu.org>
4807
4808 * window.h (Fwindow_live_p): Declare.
4809
ae0b9b46
KR
4810 * undo.c (record_delete): Check that last_undo_buffer is really a
4811 buffer before applying XBUFFER to it.
4812
4813 * keymap.c (where_is_internal): Pass lisp object, not integer, to
4814 Faref.
4815
02067692
SM
48162000-10-27 Stefan Monnier <monnier@cs.yale.edu>
4817
4818 * lisp.h (KEYMAPP): New macro.
4819 (get_keymap): Remove.
4820 (get_keymap_1): Rename get_keymap.
4821
4822 * keyboard.h (get_keymap_1, Fkeymapp): Remove prototype.
4823
4824 * xterm.c (note_mode_line_highlight): Use KEYMAPP.
4825
4826 * xmenu.c (single_submenu): Use KEYMAPP.
4827 (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp.
4828 Use KEYMAPP rather than Fkeymapp.
4829
4830 * w32term.c (note_mode_line_highlight): Use KEYMAPP.
4831
4832 * w32menu.c (True, False): Remove (use TRUE and FALSE instead).
4833 (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp.
4834 Use KEYMAPP rather than Fkeymapp.
4835 (single_submenu): Use KEYMAPP.
4836 (w32_menu_show, w32_dialog_show): Use TRUE.
4837
4838 * minibuf.c (Fread_from_minibuffer): Update call to get_keymap.
4839
4840 * keymap.c (KEYMAPP): Remove (moved to lisp.h).
4841 (Fkeymapp): Use KEYMAPP.
4842 (get_keymap): Rename from get_keymap_1. Remove old def.
4843 Return t when autoload=0 and error=0 and the keymap needs autoloading.
4844 (Fcopy_keymap): Check (eq (car x) 'keymap) rather than using Fkeymapp.
4845 (Fminor_mode_key_binding): Don't raise an error if the binding
4846 is not a keymap.
4847 (Fuse_global_map, Fuse_local_map): Allow autoloading.
4848 (Faccessible_keymaps): Fetch keymaps rather than checking Fkeymapp.
4849
4850 * keyboard.c (read_char): get_keymap_1 -> get_keymap.
4851 Allow Vspecial_event_map to be autoloaded.
4852 (menu_bar_items): Fetch the keymap rather than using keymapp.
4853 (menu_bar_one_keymap): No need to follow func-indirect any more.
4854 (parse_menu_item): get_keymap_1 -> get_keymap.
4855 (tool_bar_items): Fetch the keymap rather than using keymapp.
4856 (read_key_sequence): Use KEYMAPP.
4857
4858 * intervals.c (get_local_map): Use get_keymap rather than following
4859 function-indirections explicitly.
4860
4861 * doc.c (Fsubstitute_command_keys): get_keymap_1 -> get_keymap.
4862
f9d80af3
JR
48632000-10-27 Jason Rumney <jasonr@gnu.org>
4864
4865 * w32fns.c (Fx_create_frame): Make default fontsize on w32 10
4866 point, as Windows has oversized fonts.
4867
4868 * fontset.c (syms_of_fontset) [WINDOWSNT]: Likewise.
4869
a3ba27da
GM
48702000-10-27 Gerd Moellmann <gerd@gnu.org>
4871
4872 * gmalloc.c [GC_MCHECK]: Add code from mcheck.c of glibc-1.09.1.
4873 (freehook, reallochook): Handle null pointer arguments.
4874 (__malloc_initialize) [GC_MCHECK]: Call mcheck.
4875
aa3b80cc
SM
48762000-10-27 Stefan Monnier <monnier@cs.yale.edu>
4877
4878 * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
4879 (re_match_2_internal, re_match_2_internal, re_match_2_internal):
4880 Giving in to popular pressure to shut up the compiler with casts.
4881
e24e84cc
GM
48822000-10-27 Gerd Moellmann <gerd@gnu.org>
4883
4884 * xterm.c (x_draw_glyph_string): Treat XA_UNDERLINE_POSITION as a
4885 signed value, and use a default value computed from the font's
4886 maximum descent.
4887
05ea7ef2
MB
48882000-10-27 Miles Bader <miles@lsi.nec.co.jp>
4889
4890 * xterm.c (x_draw_glyph_string): Add a workaround so that fonts
4891 that specify a negative underline position can still use underlines.
4892
4893 * window.c (Fpos_visible_in_window_p): Make POS default to
4894 WINDOW's point, not the current buffer's point.
4895
0b95284b
DL
48962000-10-26 Dave Love <fx@gnu.org>
4897
4898 * s/sol2-5.h: Don't define SYSTEM_MALLOC so that we can find out
4899 when it's necessary.
4900
6c5b90af
GM
49012000-10-26 Gerd Moellmann <gerd@gnu.org>
4902
8b6d9dc9
GM
4903 * window.c (size_window): Compute size difference from sum of old
4904 child window sizes instead of from parent's size.
4905
6bc92b2e
GM
4906 * xdisp.c (pos_visible_p): Change current buffer if necessary.
4907 Handle obscured lines at the top of the window.
4908
4909 * frame.c (Fdelete_frame): Doc fix. Move running the hook
4910 down after the last error condition check.
4911
6c5b90af
GM
4912 * frame.c (Fdelete_frame): Run delete-frame-hook.
4913
42f92d4d
KH
49142000-10-26 Kenichi Handa <handa@etl.go.jp>
4915
4916 * coding.c (decode_coding): Fix previous change (check also
4917 CODING_MODE_LAST_BLOCK).
4918
d97151cb
SM
49192000-10-25 Stefan Monnier <monnier@cs.yale.edu>
4920
e7efc503
SM
4921 * regex.c: More `unsigned char' -> `re_char' changes.
4922 Also change several `int' into `re_wchar_t'.
4923 (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
4924 (PUSH_FAILURE_POINTER): Don't cast any more.
4925 (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
4926 We want GCC to complain, since this piece of code makes
4927 re_match non-reentrant, which *should* be fixed.
4928 (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
4929 (EXTEND_BUFFER): Use RETALLOC.
4930 (SET_LIST_BIT): Don't cast.
4931 (re_wchar_t): New type.
4932 (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
4933 that those two functions will always properly return.
4934 (IMMEDIATE_QUIT_CHECK): Cast to void.
4935 (analyse_first): Use recursion rather than an explicit stack.
4936 (re_compile_fastmap): Can't fail anymore.
4937 (re_search_2): Don't check re_compile_fastmap for failure.
4938 (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
4939 Now also sets the new value (passed in a new argument).
4940 (re_match_2_internal): Use it.
4941 Also, use a new var `reg' of type size_t when looping through regs
4942 rather than reuse the inappropriate `mcnt'.
4943
d97151cb
SM
4944 * keymap.c (where_is_cache, where_is_cache_keymaps): New vars.
4945 (Fset_keymap_parent, store_in_keymap): Flush the where-is cache.
4946 (where_is_internal): Renamed from Fwhere_is_internal.
4947 Don't DEFUN any more. Arg `xkeymap' replaced by `keymaps'.
4948 (Fwhere_is_internal): New function wrapping where_is_internal.
4949 (where_is_internal_1): Handle the case where we're filling the cache.
4950 (syms_of_keymap): Init and gcpro the where_is_cache(|_keymaps).
4951
d5789b65
MB
49522000-10-25 Miles Bader <miles@gnu.org>
4953
4954 * xdisp.c (pos_visible_p): Don't add `it.current_y' twice.
4955
4ecda532
GM
49562000-10-25 Gerd Moellmann <gerd@gnu.org>
4957
4958 * window.c (pos_fully_visible_p): Removed.
4959 (Fpos_visible_in_window_p): Use pos_visible_p to determine
4960 if position is visible and/or fully visible.
4961
4962 * lisp.h (pos_visible_p): Add prototype.
4963
4964 * xdisp.c (pos_visible_p): New function.
4965
68c3a137
KH
49662000-10-25 Kenichi Handa <handa@etl.go.jp>
4967
4968 * process.c (send_process): If OBJECT is t, it means that the data
4969 is from C string, but we should encode it. Before calling
4970 setup_raw_text_coding_system, be sure to flush out data by the
4971 previous coding system.
4972
7ae1c032
MB
49732000-10-25 Miles Bader <miles@lsi.nec.co.jp>
4974
ff4dcd4b
MB
4975 * buffer.c (overlays_at): Only let CHANGE_REQ inhibit an
4976 assignment of startpos to prev when startpos == pos.
4977
7ae1c032
MB
4978 * editfns.c (find_field): Set the field stickiness correctly from
4979 overlay fields. Use renamed `text_property_stickiness'.
4980 (text_property_stickiness): Renamed from `char_property_stickiness'.
ebe2a441 4981 Only check text properties, not overlays.
7ae1c032
MB
4982 * textprop.c (get_char_property_and_overlay): New function.
4983 (Fget_char_property): Use it.
4984 * intervals.h (get_char_property_and_overlay): Add declaration.
4985
49801145
SM
49862000-10-25 Stefan Monnier <monnier@cs.yale.edu>
4987
4988 * keymap.c: Use AREF, ASET and ASIZE macros.
4989 (Fmake_sparse_keymap): Docstring fix.
4990 (synkey): Remove.
4991 (shadow_lookup): Move up.
4992 Handle the case where lookup-key returns an integer.
4993 (where_is_internal_1): Drop arg `keymap'. Don't check shadowing.
4994 (where_is_internal_2): Adapt to fewer args for where_is_internal_1.
4995 (Fwhere_is_internal): Allow `xkeymap' to be a list of keymaps.
4996 Simplify/rewrite the keymap-finding code.
4997 Add check for command shadowing, using shadow_lookup.
4998
39e776cd
SM
49992000-10-24 Stefan Monnier <monnier@cs.yale.edu>
5000
5001 * keymap.c (fix_submap_inheritance): Use get_keymap_1 on parent_entry
5002 rather than KEYMAPP, to allow EQ to work correctly if parent_entry is
5003 a symbol.
5004
2488aba5
AI
50052000-10-24 Andrew Innes <andrewi@gnu.org>
5006
5007 * dired.c (directory_files_internal_unwind): New function.
5008 (directory_files_internal): Use it to ensure closedir is called
5009 even if expand-file-name or file-attributes throw, eg. because of
5010 a user interrupt. Also enable immediate_quit while calling
5011 re_search, so that matching can be interrupted as well.
5012
b94fdf61
AI
50132000-10-24 Andrew Innes <andrewi@gnu.org>
5014
5015 * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
5016 NT-Emacs only.
5017 (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
5018 so that re_search functions only quit when callers expect them to.
5019
50202000-10-24 Kenichi Handa <handa@etl.go.jp>
5021
5022 * regex.c (regex_compile): Change the way of handling a range from
5023 a char less than 256 to a char not less than 256.
5024
1946f901
GM
50252000-10-24 Gerd Moellmann <gerd@gnu.org>
5026
7ae2f10f
GM
5027 * window.c (size_window): Prevent setting window's width or
5028 height to a negative value (esp. with XSETFASTINT).
5029
5dcab13e
GM
5030 * gmalloc.c (state_protected_p, last_state_size, last_heapinfo)
5031 [GC_MALLOC_CHECK && GC_PROTECT_MALLOC_STATE]: New variables.
5032 (protect_malloc_state) [GC_MALLOC_CHECK &&
5033 GC_PROTECT_MALLOC_STATE]: New function.
5034 (PROTECT_MALLOC_STATE): New macro.
5035 (__malloc_initialize, morecore, _malloc_internal)
5036 (_free_internal) _realloc_internal): Use it to make _heapinfo
5037 read-only outside of gmalloc.
5038
63e1b552
GM
5039 * keymap.c: Update copyright.
5040
1946f901
GM
5041 * .gdbinit (xbacktrace): Handle case that $bt->function isn't
5042 a symbol.
5043
4fa09beb
GM
50442000-10-24 Colin Walters <walters@cis.ohio-state.edu>
5045
5046 * filelock.c (unlock_all_files): Use unlock_file to expand each
5047 buffer's file_truename before trying remove its lock file.
5048
23afac01
EZ
50492000-10-24 Eli Zaretskii <eliz@is.elta.co.il>
5050
5051 * coding.c (decode_coding_emacs_mule): If coding->eol_type is CR
5052 or CRLF, decode EOLs.
5053
04448b95
KH
50542000-10-24 Kenichi Handa <handa@etl.go.jp>
5055
5056 * window.c (Fdisplay_buffer): Fix doc.
5057
3090a5a5
JR
50582000-10-23 Jason Rumney <jasonr@gnu.org>
5059
5060 * fontset.c (syms_of_fontset) [WINDOWSNT]: Special case for
5061 ASCII font of default fontset on Windows.
5062
5063 * w32term.c (VCENTER_BASELINE_OFFSET): Bias division (see
5064 xterm.c comment below).
5065
5066 * w32fns.c (x_to_w32_font): Initialize dpi from dpyinfo->resy.
5067
a83fee2c
GM
50682000-10-23 Gerd Moellmann <gerd@gnu.org>
5069
5070 * xterm.c (x_connection_closed): Reset handling_signal.
5071
52283633 5072 * alloc.c (emacs_blocked_free) [GC_MALLOC_CHECK]: Handle freeing null.
a83fee2c 5073
6ffdb539
MB
50742000-10-23 Miles Bader <miles@gnu.org>
5075
5076 * window.c (window_scroll_pixel_based, window_scroll_line_based):
5077 Pass nil for FULLY argument to Fpos_visible_in_window_p to
5078 maintain old behavior.
5079 * minibuf.c (Fminibuffer_complete): Likewise.
5080
7f1c969b
MB
50812000-10-23 Miles Bader <miles@lsi.nec.co.jp>
5082
5083 * xterm.c (VCENTER_BASELINE_OFFSET): Bias the division by two, so
5084 that when a font can't be exactly centered, it errs up rather than
5085 down.
5086
23afac01 50872000-10-23 ShengHuo ZHU <zsh@cs.rochester.edu>
8ec118cd 5088
52283633 5089 * fns.c (Fbase64_decode_string): The decoded result should be unibyte.
8ec118cd 5090
1a578e9b
AC
50912000-10-23 Andrew Choi <akochoi@i-cable.com>
5092
5093 * dispextern.h [macintosh]: Include macgui.h instead of macterm.h.
5094
5095 * dispnew.c [macintosh]: Include macterm.h.
a83fee2c 5096 (init_display) [macintosh]: Initialization for window system.
1a578e9b
AC
5097
5098 * emacs.c (main) [macintosh]: Call syms_of_textprop,
5099 syms_of_macfns, syms_of_ccl, syms_of_fontset, syms_of_xterm,
5100 syms_of_search, x_term_init, and init_keyboard before calling
5101 init_window_once. Also, call syms_of_xmenu.
5102
5103 * fontset.c (syms_of_fontset) [macintosh]: Set ASCII font of
5104 default fontset to Monaco.
5105
5106 * frame.c [macintosh]: Include macterm.h. Remove declarations of
5107 NewMacWindow and DisposeMacWindow.
5108 (make_terminal_frame) [macintosh]: Call make_mac_terminal_frame
5109 instead of calling NewMacWindow and setting fields of
5110 f->output_data.mac directly. Call init_frame_faces.
5111 (Fdelete_frame) [macintosh]: Remove unused code.
5112 (Fmodify_frame_parameters) [macintosh]: Call
5113 x_set_frame_parameters instead of mac_set_frame_parameters.
5114
5115 * frame.h [macintosh]: Define menu_bar_lines field in struct
5116 frame. Define FRAME_EXTERNAL_MENU_BAR macro.
5117
5118 * keyboard.c [macintosh]: Include macterm.h.
5119 (kbd_buffer_get_event) [macintosh]: Generate delete_window_event
5120 and menu_bar_activate_event type events as for X and NT.
5121 (make_lispy_event) [macintosh]: Construct lisp events of type
5122 MENU_BAR_EVENT as for X and NT.
5123
5124 * sysdep.c [macintosh]: Remove declaration for sys_signal.
5125 Include stdlib.h. Remove definition of Vx_bitmap_file_path.
5126 (sys_subshell) [macintosh]: Remove definition entirely.
5127 (init_sys_modes) [macintosh]: Do not initialize Vwindow_system and
5128 Vwindow_system_version here. Remove initialization of
5129 Vx_bitmap_file_path.
5130 (read_input_waiting): Correct the number of parameters passed to
5131 read_socket_hook.
5132 Move all Macintosh functions to mac/mac.c.
5133
5134 * term.c [macintosh]: Include macterm.h.
5135
5136 * window.c [macintosh]: Include macterm.h.
5137
5138 * xdisp.c [macintosh]: Include macterm.h. Declare
5139 set_frame_menubar and pending_menu_activation.
5140 (echo_area_display) [macintosh]: Do not return if terminal frame
5141 is the selected frame.
5142 (update_menu_bar) [macintosh]: Check FRAME_EXTERNAL_MENU_BAR (f).
5143 Allow only the selected frame to set menu bar.
5144 (redisplay_window) [macintosh]: Obtain menu bar to redisplay by
5145 calling FRAME_EXTERNAL_MENU_BAR (f).
5146 (display_menu_bar) [macintosh]: Check FRAME_MAC_P (f).
5147
5148 * xfaces.c [macintosh]: Include macterm.h. Define x_display_info
5149 and check_x. Declare XCreateGC. Define x_create_gc and
5150 x_free_gc. Initialize font_sort_order.
5151 (x_face_list_fonts) [macintosh]: Use the same code as WINDOWSNT,
5152 but call x_list_fonts instead of w32_list_fonts.
5153 (Finternal_face_x_get_resource) [macintosh]: Do not call
5154 display_x_get_resource.
5155 (prepare_face_for_display) [macintosh]: Set xgcv.font.
5156 (realize_x_face) [macintosh]: Load the font if it is specified in
5157 ATTRS.
52283633 5158 (syms_of_xfaces) [macintosh]: Initialize Vscalable_fonts_allowed to Qt.
1a578e9b 5159
1ffbabe3
SM
51602000-10-22 Stefan Monnier <monnier@cs.yale.edu>
5161
5162 * keymap.c (fix_submap_inheritance): Don't do anything if parent_entry
5163 is nil: since we go to the end of submap anyway, we'd end up
5164 setting nil to nil.
5165 (access_keymap): Don't use KEYMAPP on meta_map since KEYMAPP
5166 doesn't obey autoload.
5167
bed43f1d
EZ
51682000-10-21 Eli Zaretskii <eliz@is.elta.co.il>
5169
1ffbabe3 5170 * msdos.c (dos_set_window_size): Update screen dimension variables.
bed43f1d 5171
ea4233a7
JR
51722000-10-21 Jason Rumney <jasonr@gnu.org>
5173
5174 * w32term.c (w32_cache_char_metrics): Double check that font is
5175 really fixed pitch before trusting tmPitchAndFamily.
5176
f3d3c491
AI
51772000-10-21 Andrew Innes <andrewi@gnu.org>
5178
5179 * w32gui.h (w32_char_font_type): Move enum from w32term.c
5180
5181 * w32term.h: Extern decl for w32_cache_char_metrics.
5182
5183 * w32bdf.c (w32_load_bdf_font): Call w32_cache_char_metrics.
5184
5185 * w32fns.c (w32_load_system_font): Call w32_cache_char_metrics.
5186 (w32_unload_font): Free per_char array if present.
5187
5188 * w32term.c (w32_per_char_metric): Remove HDC argument. Use
5189 cached information in emulated XFontStruct to handle common cases
5190 quickly. Do not allocate XCharStruct for return.
5191 (w32_native_per_char_metric): New function.
5192 (w32_bdf_per_char_metric): Fill in supplied XCharStruct instead of
5193 allocating one.
5194 (x_produce_glyphs): Don't get an HDC. Change calls to
5195 w32_per_char_metric to match arg change above. Remove calls to
5196 free results.
5197 (w32_get_glyph_overhangs): Ditto.
5198 (w32_cache_char_metrics): New function.
5199
5200 * makefile.w32-in: Change .obj to .$(O) in all dependencies.
5201 ($(BLD)/casefiddle.$(O)): Remove compile command.
5202 ($(BLD)/gmalloc.$(O)): Remove compile command.
52283633
SM
5203 ($(BLD)/dispnew.obj):
5204 ($(BLD)/keyboard.obj):
5205 ($(BLD)/w32inevt.obj):
5206 ($(BLD)/w32bdf.obj):
5207 ($(BLD)/alloc.obj):
5208 ($(BLD)/buffer.obj):
5209 ($(BLD)/editfns.obj):
5210 ($(BLD)/emacs.obj):
5211 ($(BLD)/fileio.obj):
5212 ($(BLD)/fns.obj):
5213 ($(BLD)/indent.obj):
5214 ($(BLD)/insdel.obj):
5215 ($(BLD)/intervals.obj):
5216 ($(BLD)/minibuf.obj):
5217 ($(BLD)/print.obj):
5218 ($(BLD)/scroll.obj):
5219 ($(BLD)/sysdep.obj):
5220 ($(BLD)/textprop.obj):
5221 ($(BLD)/widget.obj):
f3d3c491
AI
5222 ($(BLD)/xdisp.obj): Add dependency on w32gui.h.
5223 ($(BLD)/term.obj): Add dependency on dispextern.h.
5224
52283633
SM
5225 * makefile.nt ($(BLD)\dispnew.obj):
5226 ($(BLD)\keyboard.obj):
5227 ($(BLD)\w32inevt.obj):
5228 ($(BLD)\w32bdf.obj):
5229 ($(BLD)\alloc.obj):
5230 ($(BLD)\buffer.obj):
5231 ($(BLD)\editfns.obj):
5232 ($(BLD)\emacs.obj):
5233 ($(BLD)\fileio.obj):
5234 ($(BLD)\fns.obj):
5235 ($(BLD)\indent.obj):
5236 ($(BLD)\insdel.obj):
5237 ($(BLD)\intervals.obj):
5238 ($(BLD)\minibuf.obj):
5239 ($(BLD)\print.obj):
5240 ($(BLD)\scroll.obj):
5241 ($(BLD)\sysdep.obj):
5242 ($(BLD)\textprop.obj):
5243 ($(BLD)\widget.obj):
f3d3c491
AI
5244 ($(BLD)\xdisp.obj): Add dependency on w32gui.h.
5245 ($(BLD)\term.obj): Add dependency on dispextern.h
5246
18ad4821
EZ
52472000-10-21 Eli Zaretskii <eliz@is.elta.co.il>
5248
5249 * minibuf.c (Fminibuffer_complete): Call Fpos_visible_in_window_p
5250 with an additional argument of Qt.
5251
de54681a
MB
52522000-10-21 Miles Bader <miles@gnu.org>
5253
5254 * window.c (pos_fully_visible_in_window_p): New function.
5255 (Fpos_visible_in_window_p): Add FULLY argument.
5256 Use pos_fully_visible_in_window_p.
5257 (window_scroll_pixel_based, window_scroll_line_based): Update
5258 calls to Fpos_visible_in_window_p.
5259 * lisp.h (Fpos_visible_in_window_p): Update prototype
5260
13c844fb
GM
52612000-10-20 Gerd Moellmann <gerd@gnu.org>
5262
5263 * alloc.c (toplevel): Conditionalize compilation of mem_*
5264 functions differently.
52283633 5265
d9506268
JR
52662000-10-20 Jason Rumney <jasonr@gnu.org>
5267
5268 * alloc.c (toplevel): Move #ifdef GC_MARK_STACK back to above
5269 mem_init where it used to be. mem_z etc not defined otherwise.
5270
8094989b
GM
52712000-10-20 Gerd Moellmann <gerd@gnu.org>
5272
5273 * alloc.c (toplevel) [SYSTEM_MALLOC || DOUG_LEA_MALLOC]: Undef
5274 GC_MALLOC_CHECK.
5275 (toplevel) [GC_MARK_STACK || GC_MALLOC_CHECK]: Move mem_node
5276 structure definition and related variabled to the top of the file.
5277 Include this code when GC_MALLOC_CHECK is defined.
5278 (lisp_malloc, lisp_free) [GC_MALLOC_CHECK]: Don't
5279 register/unregister allocated region.
5280 (emacs_blocked_free) [GC_MALLOC_CHECK]: Check if freeing something
5281 which isn't allocated.
5282 (emacs_blocked_malloc) [GC_MALLOC_CHECK]: Check if returning
5283 something which is already in use.
5284 (emacs_blocked_realloc) [GC_MALLOC_CHECK]: Likewise.
5285 (mem_insert) [GC_MALLOC_CHECK]: Use _malloc_internal.
5286 (mem_delete) [GC_MALLOC_CHECK]: Use _free_internal.
5287 (init_alloc_once) [GC_MALLOC_CHECK]: Call mem_init.
5288
5289 * gmalloc.c (_malloc_internal) [GC_MALLOC_CHECK]: Use
5290 _malloc_internal instead of malloc.
5291 (_free_internal) [GC_MALLOC_CHECK]: Use _free_internal instead
5292 of free.
5293
ea456eb4
AI
52942000-10-20 Andrew Innes <andrewi@gnu.org>
5295
5296 * strftime.c [!WINDOWSNT]: Don't apply Solaris 2.5 work-around on
5297 Windows.
5298 (my_strftime) <macro>: Don't use macro arg list when redefining as
5299 _strftime_copytm.
5300 (my_strftime) <function>: Supply 0 as ut argument.
5301
e64c3a75
JR
53022000-10-19 Jason Rumney <jasonr@altavista.net>
5303
5304 * w32console.c: Do not undef HAVE_WINDOW_SYSTEM before
5305 including dispextern.h, as it stops faces from working.
5306
5307 * w32fns.c (Fx_create_frame): Don't bother calling
5308 face-set-after-frame-default since the caller does it for us
5309 anyway. Clean up calls to x_get_arg to be consistent with X.
5310
5311 * w32term.c (x_produce_glyphs): Handle
5312 unibyte_display_via_language_environment correctly.
5313 (w32_draw_box_rect): Fix the calculation of width and height.
5314
5315 * w32menu.c (add_menu_item): Do not use MF_OWNERDRAW for titles,
5316 as it has stopped working.
5317 (Fx_popup_menu, Fx_popup_dialog): Check for tool-bar position like
5318 menu-bar.
5319
17401c97
GM
53202000-10-19 Gerd Moellmann <gerd@gnu.org>
5321
5322 * eval.c (skip_debugger): Prevent a compiler warning.
5323 (Fcondition_case): Likewise.
5324 (Fbacktrace_frame): Use a null interactive spec.
5325
773272d8
KH
53262000-10-19 Kenichi Handa <handa@etl.go.jp>
5327
5328 * xterm.c (x_find_ccl_program): Check also fontp->full_name.
5329
a42943e9
GM
53302000-10-18 Gerd Moellmann <gerd@gnu.org>
5331
e50517d9
GM
5332 * strftime.c: Sync with glibc, file version 1.78.
5333 (my_strftime) [HAVE_TZNAME]: Use `UTC' instead of `GMT' which
5334 should no longer be used according to ISO 8601.
5335
9035a35a
GM
5336 * keymap.c (access_keymap): If IDX has a meta prefix, and there's
5337 no map for meta_prefix_char, don't try to use it as a keymap.
5338 Instead, if T_OK is non-zero, look up a default binding, if any,
5339 otherwise, if T_OK is zero, return nil.
5340
a42943e9
GM
5341 * xfns.c (x_to_xcolors, x_set_mouse_color, lookup_pixel_color)
5342 (x_to_xcolors, png_load): Use x_query_color.
5343
52283633
SM
5344 * xterm.c (x_color_cells, x_query_colors, x_query_color):
5345 New functions.
a42943e9
GM
5346 (x_alloc_nearest_color): Use it to reduce calls to XQueryColors
5347 which can be slow.
5348 (x_copy_color, x_alloc_lighter_color): Likewise.
5349
5350 * xterm.h (struct x_display_info): Add color_cells and ncolor_cells.
5351 (x_query_color, x_query_colors): Add prototype.
5352
5353 * alloc.c (allocate_string) [GC_CHECK_STRING_BYTES]: Call
5354 check_string_bytes only if not noninteractive, increase count to 50.
5355
00de2987
MB
53562000-10-18 Miles Bader <miles@lsi.nec.co.jp>
5357
5358 * insdel.c (adjust_markers_for_delete): Handle before-insertion
5359 markers correctly.
5360
54918e2b
GM
53612000-10-17 Gerd Moellmann <gerd@gnu.org>
5362
1f0b3fd2
GM
5363 * alloc.c (pure_bytes_used): Renamed from pureptr.
5364 (ALIGN): New macro.
5365 (pure_alloc): New function.
5366 (make_pure_string, pure_cons, make_pure_float, make_pure_vector):
5367 Use it.
5368 (Fpurecopy): Use PURE_POINTER_P.
5369
68c5d1db
GM
5370 * xdisp.c (try_cursor_movement): Use cursor_row_p also when
5371 PT has moved backward.
52283633 5372
9a038881
GM
5373 * xdisp.c (cursor_row_p): Take continued lines into account.
5374
361b097f
GM
5375 * alloc.c (mark_object) [GC_CHECK_STRING_BYTES]: Check validity of
5376 string's size_byte.
5377 (check_string_bytes) [GC_CHECK_STRING_BYTES]: New function.
5378 (check_string_bytes_count) [GC_CHECK_STRING_BYTES]: New variable.
5379 (allocate_string) [GC_CHECK_STRING_BYTES]: Call it for every 10th
5380 string allocated.
5381
54918e2b
GM
5382 * xdisp.c (forward_to_next_line_start): Switch iterator's handling
5383 of selective display off while searching for the next line start.
5384
03ed0806
KH
53852000-10-17 Kenichi Handa <handa@etl.go.jp>
5386
5387 * Makefile.in (term.o): Depend on dispextern.h.
5388
7e05cdaf
SM
53892000-10-16 Stefan Monnier <monnier@cs.yale.edu>
5390
5391 * keymap.c (keymap_memberp): Ensure that nil is not a member.
5392
a6801fd1
GM
53932000-10-16 Gerd Moellmann <gerd@gnu.org>
5394
483de32b
GM
5395 * xdisp.c (set_iterator_to_next): Reset box start and end flags of
5396 the iterator at the beginning, so that they can be set later on,
5397 for instance in reseat_at_next_visible_line_start, without being
5398 overwritten.
5399
a6801fd1
GM
5400 * xfns.c (pbm_format): Add :foreground and :background keywords.
5401 (PBM_FOREGROUND, PBM_BACKGROUND): New enumerators.
52283633 5402 (xbm_load): Recognize foreground and background color specifications.
a6801fd1 5403
dbf1fcc1
EZ
54042000-10-16 Eli Zaretskii <eliz@is.elta.co.il>
5405
5406 * dispextern.h (unspecified_fg, unspecified_bg): Declare.
5407
52283633 5408 * dosfns.c (unspecified_fg, unspecified_bg): Remove extern declaration.
dbf1fcc1
EZ
5409
5410 * msdos.c (IT_set_face): Compare highlighted face with the default
5411 face, and invert colors if these faces' colors are identical.
5412 (Fmsdos_remember_default_colors): Don't swap foreground and
5413 background colors in initial_colors[].
5414 (IT_set_frame_parameters): Don't swap frame's foreground and
5415 background pixels. If ALIST includes "(reverse . t)", swap
5416 foreground-color and background-color properties in frame's
5417 param_alist. If the original frame's param_alist doesn't specify
5418 the colors, store unspecified-fg and unspecified-bg, reversed if
5419 required.
5420
5421 * frame.c (Fframe_parameters): If a tty's frame's param_alist says
5422 the colors are unspecified and reversed, reverse fore- and back-
5423 ground in the returned value.
5424 (Fframe_parameter): Ditto.
5425
b41fe2c3 54262000-10-16 Gerd Moellmann <gerd@gnu.org>
52283633 5427
3a6b59d9
GM
5428 * xdisp.c (find_last_unchanged_at_beg_row): Renamed from
5429 get_last_unchanged_at_beg_row.
5430 (find_first_unchanged_at_end_row): Renamed from
5431 get_first_unchanged_at_end_row.
5432 (find_first_unchanged_at_end_row): Convert assertions to
5433 unconditional tests which abort. When looking for a row in
5434 unchanged text, don't go further back than first_text_row.
5435
b41fe2c3
GM
5436 * xdisp.c (try_scrolling) <cursor in scroll margin at the bottom>:
5437 Don't add in the last line's height when deciding if the new
5438 position is below the scroll margin.
9d1af64f 5439
b41fe2c3 54402000-10-16 Miles Bader <miles@gnu.org>
f657bbf6
MB
5441
5442 * editfns.c (Fconstrain_to_field): Check carefully for field
5443 boundaries if either OLD_POS or NEW_POS has a non-nil field
5444 property, even if they're the same.
5445
c412cb7b
KH
54462000-10-16 Kenichi Handa <handa@etl.go.jp>
5447
5448 * xterm.c (x_draw_box_rect): Fix the calculation of width and
5449 height for XFillRectangle.
5450
5586f3eb
SM
54512000-10-15 Stefan Monnier <monnier@cs.yale.edu>
5452
5453 * syntax.c (Fstring_to_syntax): New function extracted from
5454 Fmodify_syntax_entry.
5455 (Fmodify_syntax_entry): Use it and document the ! and | fences.
5456 (skip_chars, Fforward_comment): Remove unused variables.
5457 (syms_of_syntax): Add defsubr for string-to-syntax.
5458 (describe_syntax): Add code for comment and string fences.
5459
db785038
SM
54602000-10-14 Stefan Monnier <monnier@cs.yale.edu>
5461
5462 * keymap.c (access_keymap): Add AUTOLOAD parameter.
5463 Do the meta->esc mapping. Call get_keyelt before returning.
5464 Start scanning from the second element (the first is always `keymap')
5465 to make it easier to detect when we reach a parent map.
5466 Handle the case of inheriting from a symbol whose function is a map.
5467 (Fkeymap_parent): Also handle the `inherit from symbol' case.
5468 (fix_submap_inheritance, Fdefine_key): Update call to access_keymap.
5469 (get_keyelt, Flookup_key): Update call to access_keymap.
5470 Remove the meta->esc mappings.
5471 (define_as_prefix): Delete old disabled code.
5472 (menu_item_p): New function.
5473 (where_is_internal_1): Skip over the few remaining menu items.
5474 * lisp.h (access_keymap): Update prototype.
5475 * keyboard.c (read_char, menu_bar_items, tool_bar_items):
5476 Update call to access_keymap.
5477 (follow_key, read_key_sequence): Update calls to access_keymap.
5478 Remove the meta->esc mappings.
5479
cafafe0b
GM
54802000-10-13 Gerd Moellmann <gerd@gnu.org>
5481
a2e2a7f6
GM
5482 * dispnew.c (direct_output_for_insert): Call set_iterator_to_next
5483 with additional argument.
5484
cafafe0b
GM
5485 * xdisp.c (cursor_row_p): New function.
5486 (try_cursor_movement, display_line): Use it.
52283633 5487
cafafe0b
GM
5488 * xdisp.c (append_space): Also save/restore iterator's current
5489 character and its length.
5490
5491 * xdisp.c (init_from_display_pos): Add an assertion.
5492 (handle_stop): Don't set iterator's add_overlay_start.
5493 (handle_invisible_prop): Likewise.
5494 (load_overlay_strings): If text under an overlay is invisible,
5495 take both before- and after-strings into account when the iterator
5496 is positioned either at the start or at the end of the overlay.
5497 (forward_to_next_line_start): Rewritten.
5498 (reseat_at_next_visible_line_start): Rewritten.
5499 (set_iterator_to_next): Add parameter RESEAT_P.
5500
5501 * dispextern.h (struct it): Remove member add_overlay_start.
5502 (set_iterator_to_next): Change prototype.
5503
c744452b
KH
55042000-10-13 Kenichi Handa <handa@etl.go.jp>
5505
5506 * coding.c (code_convert_region): Be sure to initialize
5507 coding->category_idx.
e4a3f4e1
KH
5508 (decode_coding_string): Set coding->src_multibyte and
5509 coding->dst_multibyte before using CODING_REQUIRE_DECODING.
5510 (encode_coding_string): Set coding->src_multibyte and
5511 coding->dst_multibyte before using CODING_REQUIRE_ENCODING.
c744452b 5512
321fd26f
SM
55132000-10-12 Stefan Monnier <monnier@cs.yale.edu>
5514
5515 * xfns.c (Fx_create_frame): Don't bother calling
5516 face-set-after-frame-default since the caller does it for us anyway.
5517
76832439
EZ
55182000-10-12 Eli Zaretskii <eliz@is.elta.co.il>
5519
5520 * window.c (coordinates_in_window): Fix detection of vertical line
5521 on character terminals.
5522
2483cf58
GM
55232000-10-12 Gerd Moellmann <gerd@gnu.org>
5524
5525 * editfns.c (save_excursion_save): Additionally record the
5526 selected window.
5527 (save_excursion_restore): If buffer was visible in a window, and a
5528 different window was selected, and the old selected window is
5529 still live, restore point in that window.
5530
eb991b25
KH
55312000-10-12 Kenichi Handa <handa@etl.go.jp>
5532
8a0eba09
KH
5533 * xterm.c (x_produce_glyphs): Handle
5534 unibyte_display_via_language_environment correctly.
5535
20401fcc
KH
5536 * regex.c (regex_compile): Change the way of handling a range from
5537 unibyte char to multibyte char.
5538
5539 * syntax.c (skip_chars): Change the way of handling a range from
5540 unibyte char to multibyte char.
5541
eb991b25
KH
5542 * process.c (read_process_output): Cancel previous change.
5543
365dd325
EZ
55442000-10-11 Eli Zaretskii <eliz@is.elta.co.il>
5545
c1b096cb
EZ
5546 * search.c (Fsearch_backward, Fsearch_forward): Doc fix.
5547
365dd325
EZ
5548 * charset.c (Ffind_charset_string): Doc fix.
5549 (Ffind_charset_region): Doc fix.
5550
eb483c2b
KH
55512000-10-11 Kenichi Handa <handa@mule.m17n.org>
5552
5553 * process.c (read_process_output): Fix previous change. Adjust
5554 multibyteness of text to insert in a buffer by
52283633 5555 string_make_unibyte/multibyte instead of Fstring_as_unibyte/multibyte.
eb483c2b 5556
b40bfb99
AS
55572000-10-10 Andreas Schwab <schwab@suse.de>
5558
5559 * alloc.c (mark_object): Remove all workarounds installed on
5560 1993-08-08.
5561
caff31d4
KH
55622000-10-10 Kenichi Handa <handa@etl.go.jp>
5563
52283633 5564 * fns.c (READ_QUADRUPLET_BYTE): Set *NCHARS_RETURN before returning.
caff31d4
KH
5565 (base64_encode_1): Make it work for a text of multibyte form.
5566 (Fbase64_decode_region): Allocate sufficient memory for multibyte
5567 case. Don't call str_to_multibyte because base64_decode_1
5568 produces correct multibyte form for eight-bit codes.
52283633 5569 (Fbase64_decode_string): Adjusted for the change of base64_decode_1.
caff31d4
KH
5570 (base64_decode_1): New args MULTIBYTE and NCHARS_RETURN. If
5571 MULTIBYTE is nonzero, produce correct multibyte form for eight-bit
5572 codes.
5573
5574 * charset.h (CHAR_STRING): Optimized for single byte characters.
5575
cba026ef
AS
55762000-10-09 Andreas Schwab <schwab@suse.de>
5577
5578 * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Reset S to
5579 -1 after socket is closed, to fall through to error processing.
5580
1e21fe48
EZ
55812000-10-09 Eli Zaretskii <eliz@is.elta.co.il>
5582
5583 * msdos.c (IT_set_frame_parameters): Don't initialize Lisp_Object
365dd325 5584 variables. If ALIST includes foreground-color or
1e21fe48
EZ
5585 background-color, change also the colors of the default face for
5586 this frame.
5587
a640322e
EZ
55882000-10-08 Eli Zaretskii <eliz@is.elta.co.il>
5589
5590 * msdos.c (top-level) <Qbackground_color, Qforeground_color>: Make
5591 them extern (they are defined on xfaces.c).
5592 (syms_of_msdos): Don't intern and don't staticpro
5593 Qbackground_color and Qforeground_color.
5594
a115794c
EZ
55952000-10-07 Eli Zaretskii <eliz@is.elta.co.il>
5596
5597 * frame.c (Fframe_parameter): For non-windowed frames, if
5598 f->param_alist says foreground or background color is unspecified,
5599 call tty_color_name to return the color name computed from the
5600 frame's current colors.
5601
f5533b63
DL
56022000-10-06 Dave Love <fx@gnu.org>
5603
5604 * terminfo.c (ospeed): Don't declare.
5605
5606 * sysdep.c: Don't include string.h.
5607 (h_errno): Declare conditional also on TRY_AGAIN.
5608
5609 * charset.c (Ffind_charset_string): Doc fix.
5610
52283633 5611 * fns.c (Fbase64_encode_region, Fbase64_encode_string)
f5533b63
DL
5612 (Fbase64_decode_region, Fbase64_decode_string): More explicit
5613 error messages.
5614
2b06561a
DL
56152000-10-05 Dave Love <fx@gnu.org>
5616
5617 * xmenu.c (Fx_popup_menu, Fx_popup_dialog): Check for tool-bar
5618 position like menu-bar.
5619
ca839c85
GM
56202000-10-05 Gerd Moellmann <gerd@gnu.org>
5621
5622 * keyboard.c (Frecursive_edit): Make sure redisplay can happen.
5623
5624 * xdisp.c (handle_single_display_prop): Use safe_call1.
5625 (safe_call): Renamed from call_function.
5626 (safe_call1): New function.
5627 (handle_fontified_prop): Use safe_call1 instead of call1.
5628 (safe_eval): Renamed from eval_form.
5629 (safe_eval_handler): Renamed from eval_handler.
5630 (handle_single_display_prop, display_mode_element): Use safe_eval
5631 instead of eval_form.
5632
5633 * xfaces.c (merge_face_heights): Use safe_call instead of
5634 call_function.
5635
5636 * keyboard.c (show_help_echo): Use safe_call instead of
5637 call_function; use safe_eval instead of eval_form.
5638
5639 * lisp.h (safe_call): Renamed from call_function.
5640 (safe_eval): Renamed from eval_form.
5641 (safe_call1): Add prototype.
5642
a3489ece
MB
56432000-10-05 Miles Bader <miles@lsi.nec.co.jp>
5644
5645 * xfns.c (image_ascent): Rearrange ascent calculation for the
5646 has-a-font case.
5647
35810b6f
SM
56482000-10-04 Stefan Monnier <monnier@cs.yale.edu>
5649
5650 * keymap.c (Fwhere_is_internal): Ignore `menu-bar' and `tool-bar'.
5651 (where_is_internal_1): Don't bother ignoring menu-items any more.
5652
3dc78168
GM
56532000-10-04 Gerd Moellmann <gerd@gnu.org>
5654
5655 * keyboard.c (update_menu_bindings): New variable.
5656 (parse_menu_item): Use AREF. If update_menu_bindings
5657 is 0, don't update menu bindings.
5658 (syms_of_keyboard): New Lisp variable `update-menu-bindings'.
5659
1efc2bb9
EZ
56602000-10-03 Eli Zaretskii <eliz@is.elta.co.il>
5661
5662 * alloc.c (Fgarbage_collect): Prevent compiler warning for a call
5663 to `mark_object'.
5664
3f679f55
SM
56652000-10-02 Stefan Monnier <monnier@cs.yale.edu>
5666
5667 * syntax.c (forw_comment): Match nestedness of ender/starter.
5668 (Fforward_comment): Treat an unmatched \n comment-ender as whitespace.
5669 (prev_char_comstart_first): Remove.
5670 (back_comment): Check two-char comment markers more carefully
5671 to better handle overlapping cases like *//* or /* */* */ ...
5672 Match nestedness of ender/starter.
5673
2021ab61
DL
56742000-10-02 Dave Love <fx@gnu.org>
5675
5676 * config.in (HAVE_GAI_STRERROR): Add undef.
5677
5678 * process.c (Fopen_network_stream): Use it.
5679
5680 * m/alpha.h (NO_REMAP): Don't define.
5681
64e6cc18
GM
56822000-10-02 Gerd Moellmann <gerd@gnu.org>
5683
5684 * lisp.h (wrong_type_argument): Remove NO_RETURN, the function can
5685 return with a string converted to an integer or vice versa when
5686 Vmocklisp_arguments is t.
5687 (Fsignal): Likewise. The function can return for `quit'.
5688 (struct gcpro): Declare member `var' to point to a volatile
5689 Lisp_Object.
5690
5691 * eval.c (error): Prevent compiler warning.
5692
b1904cd9
SM
56932000-09-30 Stefan Monnier <monnier@cs.yale.edu>
5694
5695 * keymap.c (keymap_memberp): New function.
5696 (Fset_keymap_parent): Use it.
5697 (fix_submap_inheritance): Use get_keyelt, get_keymap_1 and KEYMAPP.
5698 Use keymap_memberp to avoid creating cycles.
5699 (access_keymap): Use KEYMAPP.
5700
71c9ec51
GM
57012000-09-30 Gerd Moellmann <gerd@gnu.org>
5702
5703 * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Use
64e6cc18
GM
5704 gai_strerror. Make sure xerrno is set if connect fails. Improve
5705 error recovery.
71c9ec51 5706
c70c6b58
JR
57072000-09-29 Jason Rumney <jasonr@gnu.org>
5708
5709 * w32term.c (w32_char_font_type, w32_encode_char)
5710 (x_produce_glyphs): Distinguish single and multibyte BDF fonts.
5711 (w32_bdf_per_char_metric): New function.
5712 (w32_per_char_metric): Use it.
5713 (x_draw_glyph_string_background): Always draw background for BDF
5714 glyphs.
5715
5716 * w32bdf.h (glyph_struct, cache_bitmap): Cache bitmap data, not
5717 GDI object which is a scarce resource.
5718
5719 * w32bdf.c (search_file_line): Fix skipping of whitespace.
5720 (get_quoted_string): Fix limit on memchr search.
5721 (set_bdf_font_info): Use unsigned chars. Negate yoffset.
5722 (w32_init_bdf_font): Initialize codepoint and bitmap heaps.
5723 (w32_free_bdf_font): Free bitmaps and codepoints on heaps.
5724 (get_cached_font_char, cache_char_offset): Use macro
5725 BDF_CODEPOINT_RANGE_COVER_P.
5726 (cache_char_offset): Use HeapAlloc to allocate codepoints on own heap.
5727 (clear_cached_bitmap_slots): New function.
5728 (GET_HEX_VALUE): G-Z, g-z are not hex.
5729 (w32_get_bdf_glyph): Convert to DIB format. Return bytes read.
5730 (get_bitmap_with_cache): Use new cache implementation.
5731 (create_offscreen_bitmap): New function.
5732 (w32_BDF_TextOut): Use it. Draw glyphs as DIBs.
5733
5734 * w32term.c (x_produce_glyphs): If the distance from the current
5735 position to the next tab stop is less than a canonical character
5736 width, use the tab stop after that.
5737 (x_draw_glyphs): Handle case START and END are out of bounds more
5738 carefully.
5739 (x_clear_mouse_face): Block/unblock input.
5740 (x_display_and_set_cursor): Don't show a hollow box cursor for
5741 buffers whose cursor_type is nil.
5742
fe01239f
GM
57432000-09-29 Gerd Moellmann <gerd@gnu.org>
5744
52283633 5745 * xfns.c (x_set_tool_bar_lines): Clear frame when tool bar disappears.
fe01239f
GM
5746
5747 * dispextern.h (updating_frame): Declare extern.
5748
e7c52f1f
AS
57492000-09-29 Andreas Schwab <schwab@suse.de>
5750
5751 * m/ia64.h: Remove hack of not prototyping bcopy, etc.
5752
de6e1f7c
GM
57532000-09-29 Gerd Moellmann <gerd@gnu.org>
5754
25126faa
GM
5755 * keyboard.c (menu_bar_one_keymap): If KEYMAP is a symbol,
5756 use its function definition.
5757 (tool_bar_items): Likewise.
5758
de6e1f7c 5759 * lisp.h (fatal): Declare NO_RETURN.
52283633 5760
454ee39b
KH
57612000-09-29 Kenichi Handa <handa@etl.go.jp>
5762
5763 * keymap.c: Remove the line "#undef NULL".
5764
96301c5f
GM
57652000-09-28 Gerd Moellmann <gerd@gnu.org>
5766
52283633 5767 * xterm.c (x_make_frame_visible): Try harder to make the frame visible.
96301c5f 5768
efffeeb4
DL
57692000-09-28 Dave Love <fx@gnu.org>
5770
ecb8b666
DL
5771 * s/osf5-0.h: Define USE_MMAP_FOR_BUFFERS, not REL_ALLOC_MMAP.
5772
dc3cd20f
DL
5773 * s/sunos413.h (USE_MMAP_FOR_BUFFERS): Define.
5774
5775 * .gdbinit (xreload): Note its need on GNU/Linux.
5776
efffeeb4
DL
5777 * m/alpha.h (XUINT) [REL_ALLOC && _MALLOC_INTERNAL]: Don't declare
5778 r_alloc, r_alloc_free.
5779
8610d903
KH
57802000-09-28 Kenichi Handa <handa@etl.go.jp>
5781
5782 * syntax.c (skip_chars): Handle negation correctly.
5783
8901d1ac
GM
57842000-09-27 Gerd Moellmann <gerd@gnu.org>
5785
6f22f1ad
GM
5786 * xfaces.c (realize_default_face): Call set_lface_from_font_name
5787 with non-zero FORCE_P argument.
5788
52283633 5789 * dispnew.c (adjust_glyph_matrix, enable_glyph_matrix_rows):
8901d1ac
GM
5790 Add assertions.
5791
5792 * xdisp.c (window_box_height): Add an assertion.
5793
5794 * xfns.c (x_set_tool_bar_lines): Don't use more lines for the
5795 tool-bar than is available.
5796 (x_change_window_heights): Renamed from x_set_menu_bar_lines_1.
5797
36f1966f
DL
57982000-09-27 Dave Love <fx@gnu.org>
5799
efffeeb4 5800 * s/irix6-5.h: Now works 64-bit. Tidied.
36f1966f 5801
31d929e5
GM
58022000-09-26 Gerd Moellmann <gerd@gnu.org>
5803
c98863bf
GM
5804 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND]: Use BITS_PER_EMACS_INT
5805 instead of BITS_PER_INT.
5806 (XINT, XUINT) [NO_UNION_TYPE]: Cast result to EMACS_INT and
5807 EMACS_UINT, respectively.
5808 (NO_UNION_TYPE) [USE_LISP_UNION_TYPE]: Undefine.
5809
5810 * m/sparc.h (BITS_PER_EMACS_INT) [__arch64__]: Don't define.
5811
5812 * unexelf.c (ELFSIZE) [__NetBSD__ && __sparc_v9__]: Define to 64.
5813
77072ab1
GM
5814 * window.c (freeze_window_starts): Construct last argument for
5815 foreach_window differently.
5816
5817 * xfns.c (x_decode_color): Don't return a Lisp_Object.
5818
5819 * lisp.h (union Lisp_Object) [!NO_UNION_TYPE]: Use EMACS_INT and
5820 EMACS_UINT instead of `int' and `unsigned int'.
5821 (XSET) [EXPLICIT_SIGN_EXTEND]: Use EMACS_INT instead of `int'.
5822
5823 * frame.h (struct frame): Make the `nothing' member of union
5824 output_data an EMACS_INT.
5825
52283633 5826 * alloc.c (GC_CHECK_STRING_BYTES): Temporarily define, for bug hunting.
31d929e5
GM
5827 (struct sdata) [GC_CHECK_STRING_BYTES]: Always record the string's
5828 size in the sdata structure.
5829 (SDATA_NBYTES, SDATA_DATA): New macros.
5830 (SDATA_OF_STRING, SDATA_SIZE) [GC_CHECK_STRING_BYTES]: Define
5831 differently for the different layout of the sdata structure.
5832 (allocate_string_data) [GC_CHECK_STRING_BYTES]: Record string size
5833 in sdata.
5834 (sweep_strings, compact_small_strings) [GC_CHECK_STRING_BYTES]:
5835 Check that size recorded in the string size and size recorded in
5836 the sdata structure agree.
5837
3e60b029
DL
58382000-09-25 Dave Love <fx@gnu.org>
5839
5840 * buffer.c: Include stdio.h.
5841
5842 Partly suggested by Eduardo Horvath <eeh@netbsd.org>.
52283633 5843
3e60b029
DL
5844 * ralloc.c (__malloc_extra_blocks): Declare as __malloc_size_t.
5845
5846 * alloc.c (__malloc_size_t) [DOUG_LEA_MALLOC]: Don't redefine it.
52283633 5847 (__malloc_size_t) [!DOUG_LEA_MALLOC]: Define unconditionally as size_t.
3e60b029
DL
5848 (__malloc_extra_blocks): Declare as __malloc_size_t.
5849
8ff16b4e
GM
58502000-09-25 Gerd Moellmann <gerd@gnu.org>
5851
755a2ccd
GM
5852 * alloc.c (mark_image): Use GC_NILP instead of NILP.
5853
d8b4516f
GM
5854 * keyboard.c (show_help_echo): Set help_echo_showing_p.
5855 (read_char): If help-echo is showing, preserve the echo area
5856 when redisplaying.
5857
5858 * xdisp.c (help_echo_showing_p): New variable.
5859 (set_message): Reset it to 0.
5860 (init_xdisp): Initialize help_echo_showing_p.
5861
5862 * dispextern.h (help_echo_showing_p): Declare extern.
5863
5864 * config.in: Fix typo in __GNUC_MINOR__.
5865
5866 * keyboard.h (quit_throw_to_read_char): Declare NO_RETURN.
5867
b11af2dd
GM
5868 * s/freebsd.h (POSIX_SIGNALS): Define.
5869
8ff16b4e
GM
5870 * xterm.c (x_clear_mouse_face): Block/unblock input.
5871
844eb643
DL
58722000-09-24 Dave Love <fx@gnu.org>
5873
5874 * fns.c (base64_encode_1): Fix last change.
5875
b30ab1b3
GM
58762000-09-22 Gerd Moellmann <gerd@gnu.org>
5877
5878 * dispnew.c (enable_glyph_matrix_rows): Remove xasserts.
5879
5880 * xdisp.c (try_window_reusing_current_matrix): More fixes
5881 for the case window has a header-line.
5882
c6cbe5f0
DL
58832000-09-22 Dave Love <fx@gnu.org>
5884
4c7c1f3f
DL
5885 * xdisp.c (syms_of_xdisp): Defvar Vmenu_bar_update_hook to provide
5886 a doc string.
5887
5888 * xterm.c [SOLARIS2]: Remove redundant include of string.h.
5889
c6cbe5f0
DL
5890 * fns.c (Fstring_as_unibyte, Fstring_as_multibyte): Doc fix.
5891
550a625e
GM
58922000-09-21 Gerd Moellmann <gerd@gnu.org>
5893
4c7c1f3f 5894 * config.in (NO_RETURN): Define as `__attribute__((__noreturn__))'
fca99116
GM
5895 for GCC >= 2.5.
5896
52283633
SM
5897 * lisp.h (wrong_type_argument, Fthrow, Fsignal, error):
5898 Declare NO_RETURN.
fca99116 5899
80d26f99
GM
5900 * window.c, term.c, xmenu.c, xrdb.c, emacs.c, macros.c,
5901 * keymap.c, insdel.c, marker.c, minibuf.c, fileio.c, dired.c,
5902 * indent.c, search.c, alloc.c, data.c: Avoid some more compiler
5903 warnings.
52283633 5904
80d26f99
GM
5905 * marker.c (byte_char_debug_check): Return void.
5906
623a0aae
GM
5907 * xfns.c (Fx_create_frame): Set default frame parameter value
5908 for tool-bar-lines to 1.
5909
5910 * dispnew.c (scrolling_window): Compare y-positions of rows
5911 equal at the start. Some simplification.
5912
5913 * xdisp.c (try_window_reusing_current_matrix): Fix computation of
5914 reused rows' y-position in the case window has a header-line, and
5915 new window start is greater than old window start.
5916
42ac0ae5
GM
5917 * process.c (process_sent_to): New variable.
5918 (send_process): Workaround for a crash on sparc-sun-solaris-2.6
5919 with GCC 2.95.2 caused by a parameter being clobbered by longjmp.
5920 Declare more parameters volatile.
5921
550a625e
GM
5922 * lread.c (Vrecursive_load_depth_limit): New variable.
5923 (Fload): Check recursive loads whose recursion depth exceeds
5924 Vrecursive_load_depth_limit.
5925 (syms_of_lread): DERFAR_LISP recursive-load-depth-limit.
5926
8320414c
GM
59272000-09-20 Gerd Moellmann <gerd@gnu.org>
5928
f46c275e
GM
5929 * fileio.c (Fread_file_name): Doc fix.
5930
5931 * editfns.c (Fmessage_or_box): Doc fix.
5932
5933 * fns.c (Fy_or_n_p, Fyes_or_no_p): Doc fix.
5934
b7e11c5b 5935 * xfns.c (xbm_scan): Allow C-style comments.
52283633 5936
8320414c
GM
5937 * xfns.c (xpm_init_color_cache) [ALLOC_XPM_COLORS]: If color
5938 symbols are specified, add color translations to the cache.
52283633 5939 (xpm_color_bucket, xpm_cache_color) [ALLOC_XPM_COLORS]: New functions.
8320414c
GM
5940 (xpm_lookup_color) [ALLOC_XPM_COLORS]: Use xpm_color_bucket and
5941 xpm_cache_color.
5942 (xpm_load) [ALLOC_XPM_COLORS]: Pass frame and XPM attributes
5943 structures to xpm_init_color_cache.
5944
da1608d9
GM
59452000-09-19 Gerd Moellmann <gerd@gnu.org>
5946
52283633 5947 * dispnew.c (update_window_line): Make sure to always draw mode-lines.
da1608d9 5948
6badfa25
AI
59492000-09-19 Andrew Innes <andrewi@gnu.org>
5950
5951 * makefile.nt (bootstrap-emacs): Don't change directory.
5952
3a5f42bb
KH
59532000-09-19 Kenichi Handa <handa@etl.go.jp>
5954
1b7649bd
KH
5955 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Fix previous change.
5956
3a5f42bb
KH
5957 * ccl.c (Fccl_execute_on_string): Make multibyte string correctly.
5958 If output buffer is too small, signal an appropriated error.
5959
9f83cf0b
DL
59602000-09-18 Dave Love <fx@gnu.org>
5961
52283633 5962 * keyboard.c (menu_bar_items, tool_bar_items)
9f83cf0b
DL
5963 (current_active_maps): Remove redundant get_local_map call.
5964
28c7826c
GM
59652000-09-18 Gerd Moellmann <gerd@gnu.org>
5966
5cefa566
GM
5967 * xterm.c (x_display_and_set_cursor): Don't show a hollow box
5968 cursor for buffers whose cursor_type is nil.
52283633 5969
6fed3546
GM
5970 * xterm.c (x_draw_image_glyph_string): Remove a comment describing
5971 a feature to implement that is already implemented.
5972 (note_mouse_highlight, x_find_ccl_program): Avoid some compiler
5973 warnings.
5974
5975 * xfns.c (x_clear_image_1): New function.
5976 (x_clear_image): Use it.
52283633 5977 (x_from_xcolors): Use x_clear_image_1; don't free the image's mask.
6fed3546 5978
05b1f851
GM
5979 * dispnew.c (update_window): Move test for invisible lines
5980 at the top to update_window_line.
5981 (update_window_line): Handle invisible lines here.
5982
f4779de9
GM
5983 * xfns.c (clear_image_cache): Clear current matrices of all
5984 frames sharing an image cache. Block input while freeing
5985 images. Fix timestamp comparison.
5986 (x_clear_image): Also free the mask.
5987
28c7826c
GM
5988 * xfns.c (lookup_image): Block input while loading the image so
5989 that we won't get interrupted in a state where the image isn't yet
5990 set up completely.
5991 (xbm_load_image, xbm_load, xpm_load, xpm_load, lookup_rgb_color)
5992 (lookup_pixel_color, x_to_xcolors, x_from_xcolors)
5993 (x_disable_image, x_build_heuristic_mask, pbm_load, png_load)
52283633 5994 (jpeg_load, tiff_load, gif_load, gs_load): Don't block/unblock input.
28c7826c 5995
b7412313
GM
59962000-09-16 Gerd Moellmann <gerd@gnu.org>
5997
5998 * dispnew.c (update_window): Make sure to make desired rows
5999 current even if they are completely invisible at the top
6000 of a window.
6001
47e351a3
GM
60022000-09-15 Gerd Moellmann <gerd@gnu.org>
6003
7f8f1edc
GM
6004 * xfns.c (lookup_image): Build mask before applying an algorithm.
6005 Recognize algorithm `disabled'.
6006 (cross_disabled_images): New variable.
6007 (COLOR_INTENSITY): New macro.
6008 (x_detect_edges): Use COLOR_INTENSITY.
6009 (x_disable_image): New function.
6010 (syms_of_xfns): DEFVAR_BOOL cross_disabled_images.
6011
6012 * xdisp.c (build_desired_tool_bar_string): For a toolbar item in
6013 disabled state, don't apply an image transformation algorithm if
6014 the user specified an image for the disabled state. Use
28c7826c 6015 `:algorithm disabled' for creating a disabled item's image if the
7f8f1edc
GM
6016 user hasn't specified an image.
6017
ebb8f116
GM
6018 * xfns.c (ALLOC_XPM_COLORS): Define if we can use Emacs' color
6019 allocation functions with the XPM lib.
6020 (struct xpm_cached_color) [ALLOC_XPM_COLORS]: New structure.
6021 (XPM_COLOR_CACHE_BUCKETS) [ALLOC_XPM_COLORS]: New macro.
6022 (xpm_color_cache) [ALLOC_XPM_COLORS]: New variable.
6023 (xpm_init_color_cache, xpm_free_color_cache, xpm_lookup_color)
52283633 6024 (xpm_alloc_color, xpm_free_colors) [ALLOC_XPM_COLORS]: New functions.
ebb8f116
GM
6025 (xpm_load) [ALLOC_XPM_COLORS]: Use Emacs' own color allocation
6026 functions, if possible, because these handle color allocation
6027 failure more gracefully.
6028 (Fimage_mask_p): New function.
6029
47e351a3
GM
6030 * xfns.c (QCmatrix, QCcolor_adjustment, QCmask, Qemboss)
6031 (Qedge_detection, Qheuristic): New symbols.
6032 (syms_of_xfns): Initialize new symbols.
6033 (lookup_image): Handle `:mask X', `:algorithm emboss', and
6034 `algorithm (edge-detection ...)'.
6035 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format):
6036 (tiff_format, gif_format, gs_format): Add `:mask'.
6037 (XBM_MASK, XPM_MASK, PBM_MASK, PNG_MASK, JPEG_MASK, TIFF_MASK)
6038 (GIF_MASK, GS_MASK): New enumerators.
6039 (x_laplace_read_row, x_laplace_write_row): Functions removed.
6040 (emboss_matrix, laplace_matrix): New variables.
6041 (x_to_xcolors, x_from_xcolors, x_detect_edges, x_emboss)
6042 (x_edge_detection): New functions.
6043 (x_laplace): Rewritten in terms of x_detect_edges.
6044 (x_build_heuristic_mask): If image has a mask, free it.
6045
fe83b953
AI
60462000-09-14 Andrew Innes <andrewi@gnu.org>
6047
6048 * makefile.w32-in: Revert to Unix line endings.
6049
3021e816
AI
60502000-09-14 Andrew Innes <andrewi@gnu.org>
6051
6052 * makefile.w32-in: Standardize indentation somewhat.
6053 (bootstrap-temacs): Use $(ARGQUOTE) instead of literal quotes, to
6054 cater for differences between shells.
6055
6056 * w32term.c (w32_per_char_metric): Handle non-TrueType fonts.
6057
2a32b5ea
GM
60582000-09-14 Gerd Moellmann <gerd@gnu.org>
6059
6060 * xterm.c (x_produce_glyphs): If the distance from the current
6061 position to the next tab stop is less than a canonical character
6062 width, use the tab stop after that.
6063
b4331e96
DL
60642000-09-14 Dave Love <fx@gnu.org>
6065
6066 * buffer.c (alloc_buffer_text): Fix xmalloc call.
6067
ef9e4345
GM
60682000-09-14 Gerd Moellmann <gerd@gnu.org>
6069
085536c2
GM
6070 * xdisp.c (handle_fontified_prop): While running fontification
6071 functions, bind `fontification-functions' and
6072 `after-change-functions' to nil.
6073
ef9e4345
GM
6074 * s/freebsd.h, s/irix-5.0.h, s/sol2.h, s/template.h
6075 (USE_MMAP_FOR_BUFFERS): Define instead of REL_ALLOC_MMAP.
6076
6077 * Makefile.in (mallocobj) [SYSTEM_MALLOC]: Don't add ralloc.o.
6078
6079 * emacs.c: Change conditional compilation on REL_ALLOC_MMAP to
6080 USE_MMAP_FOR_BUFFERS.
6081
6082 * insdel.c (make_gap): Use enlarge_buffer_text.
6083
6084 * buffer.c: Move allocation with mmap here, from ralloc.c. Change
6085 conditional compilation on REL_ALLOC_MMAP to USE_MMAP_FOR_BUFFERS.
6086 (mmap_alloc, mmap_free, mmap_realloc) [REL_ALLOC_MMAP]: Renamed
6087 from former r_alloc_* functions in ralloc.c.
52283633 6088 (mmap_page_size, mmap_initialized_p) [REL_ALLOC_MMAP]: New variables.
ef9e4345
GM
6089 (MEM_ALIGN) [REL_ALLOC_MMAP]: New macro.
6090 (mmap_init) [REL_ALLOC_MMAP]: New function.
6091 (alloc_buffer_text, enlarge_buffer_text, free_buffer_text): New
6092 functions replacing macros BUFFER_ALLOC, BUFFER_REALLOC, and
6093 BUFFER_FREE.
6094
6095 * buffer.h (BUFFER_ALLOC, BUFFER_REALLOC, BUFFER_FREE): Removed.
6096 (enlarge_buffer_text): Add prototype.
6097
6098 * ralloc.c: Remove everything having to do with the use of mmap.
6099
f8608968
GM
61002000-09-13 Gerd Moellmann <gerd@gnu.org>
6101
2a494b2d
GM
6102 * sound.c (Fplay_sound): Doc fix.
6103
8c907a56
GM
6104 * keyboard.c: Avoid some more compiler warnings.
6105 (parse_tool_bar_item): Ignore cached key bindings.
6106
f8608968
GM
6107 * alloc.c: Add some comments about DOUG_LEA_MALLOC's use of mmap
6108 and allocation of Lisp data.
6109
6ab70e9a
GM
61102000-09-12 Gerd Moellmann <gerd@gnu.org>
6111
d12d0a9b
GM
6112 * xfaces.c: Remove conditional compilation on SCALABLE_FONTS.
6113 (Finternal_set_lisp_face_attribute): If frame is 0, set new frame
6114 defaults first.
6115
6ab70e9a
GM
6116 * lread.c (Fload): Put code checking for recursive loads in #if 0.
6117
63c36c3c
KH
61182000-09-12 Miyashita Hisashi <himi@meadowy.org>
6119
6120 * ccl.c: Comment fixed.
6121 (MAX_MAP_SET_LEVEL): Increased to 30.
6122 (PUSH_MAPPING_STACK): Enclose with do-while block.
6123 (POP_MAPPING_STACK): Likewise.
6124 (stack_idx_of_map_multiple): New variable.
6125 (CCL_CALL_FOR_MAP_INSTRUCTION): New macro.
6126 (ccl_driver) <CCL_IterateMultipleMap>: If the content is a symbol,
52283633 6127 call the corresponding CCL program by CCL_CALL_FOR_MAP_INSTRUCTION.
63c36c3c
KH
6128 (ccl_driver) <CCL_MapSingle>: Likewise.
6129 (ccl_driver) <CCL_MapMultiple>: Rewritten to fix many bugs, deal
6130 with the case where looking up process reaches to the end of
6131 map-set, and call CCL programs as the above change.
6132
7ee3bd7b
GM
61332000-09-11 Gerd Moellmann <gerd@gnu.org>
6134
8ec8a5ec
GM
6135 * xfns.c (png_load, jpeg_load): Declare some variables volatile
6136 that might be clobbered by longjmp.
6137 (check_x_display_info, x_decode_color, create_frame_xic)
6138 (Fx_display_backing_store, Fx_display_visual_class)
52283633 6139 (x_build_heuristic_mask, pbm_scan_number): Avoid compiler warnings.
8ec8a5ec 6140
f74b0705
GM
6141 * lread.c (init_lread): Set Vloads_in_progress to nil.
6142 (Fload): Show list of recursively loaded files, when signaling an
6143 error.
6144
7ee3bd7b
GM
6145 * lread.c (Vloads_in_progress): New variable.
6146 (record_load_unwind): New function.
6147 (Fload): Check for recursive loads.
6148 (syms_of_lread): Initialize Vloads_in_progress.
6149 (read_integer, read1): Avoid some compiler warnings.
6150
6151 * fns.c (concat, Fsubstring, internal_equal, Fnconc): Avoid some
6152 compiler warnings.
6153
974e1e5b
MB
61542000-09-11 Miles Bader <miles@gnu.org>
6155
6156 * editfns.c (Fbuffer_string): Doc fix.
6157
9824c4e3
GM
61582000-09-10 Gerd Moellmann <gerd@gnu.org>
6159
6160 * ralloc.c (mmap_enlarge): Don't return 0 if successful.
6161
6a72fdd1
KR
61622000-09-09 Ken Raeburn <raeburn@gnu.org>
6163
6164 * s/netbsd.h: Use NOT_C_CODE, not NO_C_SOURCE, when deciding
6165 whether to include other header files.
6166
28e6fb66
GM
61672000-09-09 Gerd Moellmann <gerd@gnu.org>
6168
52283633 6169 * xfaces.c (CYCLE_CHECK): Don't use the Lisp_Object returned
9824c4e3 6170 by Fmemq as a boolean.
28e6fb66 6171
7f8b6551
SM
61722000-09-08 Stefan Monnier <monnier@cs.yale.edu>
6173
6174 * xfaces.c (Finternal_set_lisp_face_attribute): Minor thinko.
6175
a8710abf
GM
61762000-09-08 Gerd Moellmann <gerd@gnu.org>
6177
d1a02881
GM
6178 * ralloc.c (mmap_fd): Remove initializer which can make it
6179 read-only in a dumped Emacs.
6180 (mmap_fd_1): New variable.
6181 (mmap_set_vars): Remove local `fd'. Save mmap_fd in mmap_fd_1,
6182 restore it from there.
6183 (r_alloc, r_re_alloc, r_alloc_free): Call r_alloc_init
6184 unconditionally so that mmap_fd can be initialized there.
6185 (r_alloc_init_fd): Open-coded in r_alloc_init; function removed.
6186 (r_alloc_init) [REL_ALLOC_MMAP && !MAP_ANON]: Open /dev/zero.
6187 (r_alloc_init) [REL_ALLOC_MMAP && MAP_ANON]: Set mmap_fd to -1.
6188
c454aac1
GM
6189 * xfaces.c (Finternal_merge_in_global_face): Return a Lisp object.
6190
6191 * xdisp.c (dump_glyph_row): Fix printf format string.
52283633 6192 (display_line, move_it_in_display_line_to): Avoid compiler warnings.
c454aac1 6193
fc653ef2
GM
6194 * s/freebsd.h (GC_MARK_STACK, REL_ALLOC_MMAP): Define.
6195
3015eec0
GM
6196 * keymap.c (Fset_keymap_parent): Check for cycles in keymap
6197 inheritance.
6198
bfe0ee88
GM
6199 * xdisp.c (try_window_id): When trying to locate cursor in
6200 unchanged rows at the top, handle the case that we can't find it.
6201
a8710abf
GM
6202 * xterm.c (x_draw_glyphs): Handle case START and END are out
6203 of bounds more carefully.
6204
6b7d4ae4
DL
62052000-09-08 Dave Love <fx@gnu.org>
6206
423193c5
DL
6207 * s/sol2.h (REL_ALLOC_MMAP): Define.
6208 * s/irix5-0.h (REL_ALLOC_MMAP): Likewise.
6209
6210 * ralloc.c: Don't include string.h (redundant).
6211 (MAP_ANON) [REL_ALLOC_MMAP]: Ensure it's defined.
6212 [!MAP_ANON]: Include fcntl.h.
6213 (mmap_fd) [REL_ALLOC_MMAP]: New variable.
6214 (r_alloc, r_re_alloc, r_alloc_free)
6215 (mmap_enlarge, mmap_set_vars): Use it.
6216 (r_alloc_init_fd): New function.
6217 (__morecore) [SYSTEM_MALLOC]: Don't declare.
6218 (r_alloc_init): Call r_alloc_init_fd. Conditionalize stuff on
6219 malloc type.
6220
6221 * Makefile.in (allocaobj) [!SYSTEM_MALLOC && REL_ALLOC_MMAP]:
6222 Remove vm-limit.o.
6223
6b7d4ae4
DL
6224 * unexelf.c (SHT_MIPS_DEBUG, HDRR) [__mips__]: Really confine last
6225 change to __NetBSD__.
6226
44d31981
KH
62272000-09-08 Kenichi Handa <handa@etl.go.jp>
6228
6229 * search.c (compile_pattern): Check the multibyteness of cached
6230 string and PATTERN.
6231
aad40737
MB
62322000-09-08 Miles Bader <miles@gnu.org>
6233
6234 * xfaces.c (default_face_vector): Function removed.
6235 (Finternal_merge_in_global_face): Restore old global/local
6236 attribute override order. Use inline loop instead of calling
6237 default_face_vector.
6238
91a211b5
GM
62392000-09-07 Gerd Moellmann <gerd@gnu.org>
6240
6241 * ralloc.c (obtain, relinquish, relinquish, r_alloc_size_in_use)
6242 (get_bloc, relocate_blocs, update_heap_bloc_correspondence)
6243 (resize_bloc, r_alloc_sbrk, r_alloc_init): Add casts to `char *'
6244 where necessary, in case POINTER_TYPE is `void'.
6245
03419440
EZ
62462000-09-07 Eli Zaretskii <eliz@is.elta.co.il>
6247
6248 * frame.c (make_terminal_frame): Initialize frame foreground and
6249 background colors to unspecified, for the initial instance of an
6250 MSDOS frame.
6251
f46f845b
GM
62522000-09-07 Gerd Moellmann <gerd@gnu.org>
6253
24f76fbf
GM
6254 * ralloc.c (mmap_find): Fix overlap computation.
6255 (mmap_enlarge): Compute nbytes before trying to find an
6256 overlapping region.
6257
f46f845b
GM
6258 * xfaces.c (smaller_face): Compare font heights with `<' and `>'
6259 instead of `!='.
6260
6261 * lread.c (syms_of_lread): Change value of regexp
6262 Vbytecomp_version_regexp to not match some XEmacs-compiled files.
6263
6264 * xmenu.c (xdialog_show): When looking up the selection in
6265 menu_items, take `quote' boundaries into account; this corresponds
6266 to a nil ITEM in x-popup-dialog.
6267
3c014385
KH
62682000-09-07 Kenichi Handa <handa@etl.go.jp>
6269
fd6f711b
KH
6270 * charset.h (MIN_CHARSET_OFFICIAL_DIMENSION1): Define it as 0x80,
6271 not 0x81.
6272 (MIN_CHAR_OFFICIAL_DIMENSION1): Define it as ((0x81 - 0x70) << 7).
6273
3c014385 6274 * coding.c (encode_coding_sjis_big5): Use translation table for
ed254191
KH
6275 encoding, not decoding. Fix the handling of latin-jisx0201.
6276 Check for the charset katakana-jisx0201 too.
3c014385 6277 (ONE_MORE_CHAR): Call translate_char with CHARSET arg -1.
f46f845b 6278 (detect_coding_sjis): Check the byte sequence more rigidly.
3c014385 6279
0da3ecef
GM
62802000-09-07 Gerd Moellmann <gerd@gnu.org>
6281
ab0ee409
GM
6282 * xfaces.c (Vparam_value_alist): New variable.
6283 (syms_of_xfaces): Initialize it.
6284 (Finternal_set_lisp_face_attribute): Avoid more consing.
6285
6286 * frame.c (Fframe_parameter): Handle `name' and `background-mode'
6287 specially.
6288 (Fframe_parameter) [HAVE_X_WINDOWS]: Handle `display' specially.
6289 (Qbackground_mode): New variable.
6290 (syms_of_frame_1): Initialize Qbackground_mode.
6291
6292 * lisp.h (Qdisplay): Declare extern.
1091dd67 6293
0da3ecef
GM
6294 * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is 0,
6295 change face on all frames, and change the default for new frames.
6296
b14654b9
DL
62972000-09-07 Dave Love <fx@gnu.org>
6298
6299 * Makefile.in [!SYSTEM_MALLOC && REL_ALLOC_MMAP]: Set mallocobj.
6300
d24fd56f
KH
63012000-09-07 Kenichi Handa <handa@etl.go.jp>
6302
794f3670
KH
6303 * charset.h (MAKE_CHAR): Be sure to set MSB of C1 to 0.
6304
0fddd0dc
KH
6305 * charset.c: Include composite.h
6306 (lisp_string_width): New function.
6307 (Fstring_width): Call lisp_string_width instead of strwidth.
6308
6309 * Makefile.in (charset.o): Depends on composite.h.
6310
d24fd56f
KH
6311 * process.c (read_process_output): Before inserting the decoded
6312 text in the buffer, adjust the multibyteness.
6313
fa0b693c
GM
63142000-09-06 Gerd Moellmann <gerd@gnu.org>
6315
52283633 6316 * buffer.c (set_buffer_internal_1) [REL_ALLOC_MMAP]: If
73b77ee5
GM
6317 buffer's text buffer is null, map new memory.
6318
0a58f946
GM
6319 * ralloc.c (POINTER, SIZE) [emacs]: Define in terms of
6320 POINTER_TYPE and size_t.
6321 (struct mmap_region) [REL_ALLOC_MMAP]: New structure.
6322 (mmap_regions, mmap_regions_1) [REL_ALLOC_MMAP]: New variables.
6323 (ROUND, MMAP_REGION_STRUCT_SIZE, MMAP_REGION, MMAP_USER_AREA)
6324 [REL_ALLOC_MMAP]: New macros.
6325 (mmap_find, mmap_free, mmap_enlarge, mmap_set_vars)
6326 (mmap_mapped_bytes, r_alloc, r_re_alloc, r_alloc_free)
6327 [REL_ALLOC_MMAP]: New functions.
6328
6329 * emacs.c (Fdump_emacs) [REL_ALLOC_MMAP]: Call mmap_set_vars
6330 before and after unexec.
6331
6332 * buffer.c (init_buffer) [REL_ALLOC_MMAP]: Map new buffer
6333 text buffers if necessary.
6334
6335 * buffer.h (R_ALLOC_DECLARE): Removed because unused.
6336 (r_alloc, r_re_alloc, r_alloc_free): Use POINTER_TYPE and size_t
6337 in prototypes.
6338
fa0b693c
GM
6339 * config.in (HAVE_MMAP): Add #undef.
6340
877055f6
GM
63412000-09-05 Gerd Moellmann <gerd@gnu.org>
6342
08ba3862
GM
6343 * frame.c (Qdisplay_type): New variable.
6344 (syms_of_frame_1): Initialize it.
6345 (Fframe_parameter): New function that avoids consing.
6346 (syms_of_frame): Defsubr it.
6347
66ffe51c
GM
6348 * buffer.c (Fother_buffer): Consider buffers as invisible when
6349 they are displayed in a window on an invisible frame.
6350
877055f6
GM
6351 * window.c (window_loop) <GET_LARGEST_WINDOW>: Fix bug making
6352 get-largest-window always return nil.
6353
bb970e67
GM
63542000-09-04 Gerd Moellmann <gerd@gnu.org>
6355
6356 * lread.c (syms_of_lread): Make Vbytecomp_version_regexp a Lisp
6357 variable; recognize Emacs 19 elc files.
6358
7a3d0e0e
MB
63592000-09-04 Miles Bader <miles@gnu.org>
6360
6361 * xmenu.c (xmenu_show): Call x_set_menu_resources_from_menu_face
6362 before initially popping up the menu, so the menu doesn't flash
52283633 6363 when the face settings are significantly different from the defaults.
7a3d0e0e 6364
14473664
SM
63652000-09-04 Stefan Monnier <monnier@cs.yale.edu>
6366
6367 * regex.c (WIDE_CHAR_SUPPORT): New macro.
6368 (btowc, iswctype, wctype) [_LIBC]: Redefine to __<fun>.
6369 (BIT_ALPHA, BIT_ALNUM, BIT_ASCII, BIT_NONASCII, BIT_GRAPH, BIT_PRINT)
6370 (BIT_UNIBYTE): Remove.
6371 (re_match_2_internal): Delete corresponding code and streamline the
6372 BIT_MULTIBYTE case to not bother checking ISUNIBYTE.
6373 (CHAR_CLASS_MAX_LENGTH) [!WIDE_CHAR_SUPPORT]: Set to 9 rather than 6.
6374 (re_wctype_t): New type.
6375 (re_wctype, re_iswctype, re_wctype_to_bit): New functions.
6376 (regex_compile): Use them and fix handling of overly long char classes.
6377
c1174479
AI
63782000-09-03 Andrew Innes <andrewi@gnu.org>
6379
f8803e97
AI
6380 * makefile.w32-in: Change to DOS line endings.
6381
c1174479
AI
6382 * s/ms-w32.h (ORDINARY_LINK): New define.
6383
6384 * w32.c (_ANONYMOUS_UNION) [__GNUC__]: New define
6385 (_ANONYMOUS_STRUCT) [__GNUC__]: New define.
6386
6387 * makefile.w32-in (clean): Don't delete config.h and epaths.h.
6388 (distclean): Delete them here instead.
6389
44ef7cf6
AI
6390 * w32proc.c (compare_env): Convert to uppercase for comparison,
6391 not lowercase, to match how the native Windows shell works.
6392
49b3bd82
JR
63932000-09-03 Jason Rumney <jasonr@gnu.org>
6394
6395 * ChangeLog: Remove -unix from coding. Let Emacs autodetect, as
6396 CVS changes the line-ends when checking in/out on DOS/Windows.
6397
6398 * makefile.nt (emacs): Do not change directory to run temacs, as
6399 the load-path is set relative to current directory.
6400
a3d35a39
MB
64012000-09-03 Miles Bader <miles@gnu.org>
6402
6403 * xterm.c (x_alloc_lighter_color_for_widget): New function.
6404
d276b0cf
GM
64052000-09-02 Gerd Moellmann <gerd@gnu.org>
6406
715e84c9
GM
6407 * xdisp.c (redisplay_mode_lines): New function.
6408 (display_mode_lines): Return number of mode lines displayed.
6409 (echo_area_display): Use redisplay_mode_lines to draw garbaged
6410 mode lines. Don't temporarily bind redisplay-dont-pause to t.
6411
8892f40b
GM
6412 * emacs.c, callint.c, doc.c, editfns.c: Remove includes of
6413 string.h and strings.h.
6414 (index) [HAVE_INDEX]: Add prototype.
6415
d276b0cf
GM
6416 * unexelf.c (SHT_PROGBITS) [__NetBSD__ && !PT_LOAD]: Don't define.
6417 (SHT_MIPS_DEBUG, HDRR) [__NetBSD__ && __mips__]: Define.
6418
6419 * s/netbsd.h [!NO_C_SOURCE]: Include <signal.h>.
6420 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
6421
38404229
GM
64222000-09-01 Gerd Moellmann <gerd@gnu.org>
6423
6424 * lread.c (read1): Accept `?' as symbol constituent, for
6425 compatiblity with XEmacs.
6426
c0f9ea08
SM
64272000-08-31 Stefan Monnier <monnier@cs.yale.edu>
6428
6429 * regex.h (RE_NO_NEWLINE_ANCHOR): New syntax flag.
6430 (struct re_pattern_buffer): Remove newline_anchor.
6431 * regex.c: Keep namespace clean for GNU libc by renaming <fun>
6432 to __<fun> and using `weak_alias (__<fun>, <fun>)'.
6433 (re_max_failures, fail_stack): Use size_t rather than unsigned.
6434 (regex_compile): For ^ and $, choose between buffer and line (beg|end)
6435 depending on the new RE_NO_NEWLINE_ANCHOR syntax flag.
6436 (print_compiled_pattern, re_search_2, mutually_exclusive_p)
6437 (re_match_2_internal, re_compile_pattern, re_comp, regcomp):
6438 Get rid of references to newline_anchor.
6439 (regcomp): Allocate and precompute a fastmap.
6440
8c0f83fe
GM
64412000-08-31 Gerd Moellmann <gerd@gnu.org>
6442
6443 * lread.c (openp): GCPRO local variable `filename'.
6444
4bb91c68
SM
64452000-08-30 Stefan Monnier <monnier@cs.yale.edu>
6446
6447 * regex.h (struct re_pattern_buffer): Use size_t for used/allocated.
6448
6449 * regex.c: Merge some changes from GNU libc. Add prototypes.
6450 (bcopy, bcmp, REGEX_REALLOCATE, re_match_2_internal):
6451 Use memcmp and memcpy instead of bcopy and bcmp.
6452 (init_syntax_once): Use ISALNUM.
6453 (PUSH_FAILURE_POINT, re_match_2_internal): Remove failure_id.
6454 (REG_UNSET_VALUE): Remove. Use NULL instead.
6455 (REG_UNSET, re_match_2_internal): Use NULL.
6456 (SET_HIGH_BOUND, MOVE_BUFFER_POINTER, ELSE_EXTEND_BUFFER_HIGH_BOUND):
6457 New macros.
6458 (EXTEND_BUFFER): Use them (to work with BOUNDED_POINTERS).
6459 (GET_UNSIGNED_NUMBER): Don't use ISDIGIT.
6460 (regex_compile): In handle_interval, return an error rather than try to
6461 unfetch the interval if we can't find the closing brace.
6462 Obey the RE_NO_GNU_OPS syntax bit.
6463 (TOLOWER): New macro.
6464 (regcomp): Use it.
6465 (regexec): Allocate regs.start and regs.end as one block.
6466
5226a931
GM
64672000-08-30 Gerd Moellmann <gerd@gnu.org>
6468
868dd24b
GM
6469 * xdisp.c (echo_area_display): Check display_completed instead
6470 of calling detect_input_pending.
6471
6472 * dispnew.c (update_frame): Only set display_completed here; move
6473 the update_begin and update_end calls here from update_frame_1.
6474 (update_frame_1): Don't set display_completed here, don't call
6475 update_begin/update_end.
6476
5226a931
GM
6477 * xfaces.c (set_font_frame_param): Use Fmodify_frame_parameters
6478 instead of store_frame_param.
6479
2a8bd25f
GM
64802000-08-29 Gerd Moellmann <gerd@gnu.org>
6481
6482 * dispnew.c (build_frame_matrix_from_leaf_window): If a row of a
6483 desired window matrix hasn't been displayed, use the current row
6484 instead. Make sure that only those frame rows are updated for
6485 which there exists a corresponding enabled desired row.
52283633 6486
ba3478d9
MB
64872000-08-29 Miles Bader <miles@gnu.org>
6488
6489 * xfaces.c (default_face_vector): New function.
6490 (Finternal_merge_in_global_face): Use it instead of merge_face_vectors.
6491
87d0f685
GM
64922000-08-29 Gerd Moellmann <gerd@gnu.org>
6493
6494 * lread.c (openp): Prevent temporary string passed to
6495 Ffile_readable_p from being garbage collected.
6496
6fa86045
DL
64972000-08-28 Dave Love <fx@gnu.org>
6498
6499 * keymap.c (store_in_keymap): Add `static' to declaration.
6500
bb17930d
GM
65012000-08-28 Gerd Moellmann <gerd@gnu.org>
6502
6503 * emacs.c, callint.c, doc.c, editfns.c
6504 (toplevel) [HAVE_STRING_H]: Include string.h.
6505 (toplevel) [HAVE_STRINGS_H]: Include strings.h.
6506 (index): Remove prototypes which might conflict with non-standard
6507 definitions of index/strchr.
6508
6509 * s/usg5-3.h (index): Define only if not HAVE_INDEX.
6510 (rindex): Define only if !HAVE_RINDEX.
6511
6512 * s/sco5.h (bcopy, bzero, bcmp): Don't define.
6513
6514 * config.in (HAVE_INDEX, HAVE_RINDEX, HAVE_STRINGS_H): Add undefs.
6515
87188200
MB
65162000-08-28 Miles Bader <miles@gnu.org>
6517
6518 * xfaces.c (merge_face_vectors): Clear TO's :font attribute if
6519 made inconsistent by a font-related attribute in FROM.
6520 (merge_face_inheritance): Add function comment.
6521
41a68aef
KH
65222000-08-28 Kenichi Handa <handa@etl.go.jp>
6523
6524 * keyboard.c (read_char_minibuf_menu_prompt): Call read_char with
6525 the 4th arg (PREV_EVENT) Qt to suppress input method.
6526
f7c436c1
SM
65272000-08-27 Stefan Monnier <monnier@cs.yale.edu>
6528
0b32bf0e
SM
6529 * regex.c: Indent cpp directives and remove parens after `defined'.
6530 (PTR_TO_OFFSET, POS_AS_IN_BUFFER): Move to a better place.
6531 (ISDIGIT, ISCNTRL, ISXDIGIT) [!emacs]: Remove duplicate definition.
6532 (regex_compile): Use RE_FRUGAL instead of RE_ALL_GREEDY.
6533 (re_compile_pattern): Use size_t for length.
6534 (init_syntax_once): Move to a better place.
6535 * regex.h: Merge changes from GNU libc. Indent cpp directives.
6536 (RE_FRUGAL): Replaces RE_ALL_GREEDY (inverted meaning).
6537
f7c436c1
SM
6538 * syntax.c (back_comment): Detect cases where a comment-starter is
6539 actually inside another comment as in: /* a // b */ c // d \n.
6540 Make it clear that `comstart_pos' is unused for nested comments.
6541
6542 * keymap.c (store_in_keymap, fix_submap_inheritance): New prototypes.
6543 (KEYMAPP): New macro.
6544 (Fkeymap_parent, Fset_keymap_parent): Use it.
6545 (fix_submap_inheritance): Mark it static.
6546 (define_as_prefix, describe_buffer_bindings, describe_command)
6547 (describe_translation, describe_map): Complete prototypes.
6548
6549 * lisp.h (store_in_keymap, fix_submap_inheritance): Remove.
6550
6551 * keyboard.c (menu_bar_item): Detect duplicate entries for all items
6552 to better match the key-lookup behavior.
6553
6288c62f
GM
65542000-08-27 Gerd Moellmann <gerd@gnu.org>
6555
6556 * xfaces.c (lface_fully_specified_p): Handle :inherit.
6557 (Finternal_set_lisp_face_attribute): Fix typo in error message.
6558
e931344e
EZ
65592000-08-27 Eli Zaretskii <eliz@is.elta.co.il>
6560
6561 * Makefile.in (dispnew.o, indent.o, fontset.o, minibuf.o)
6562 (process.o, scroll.o, sysdep.o): Depend on keyboard.h.
6563 (xterm.o): Depend on coding.h
6564
d10dfeef
KH
65652000-08-26 Kenichi Handa <handa@etl.go.jp>
6566
6567 * cmds.c (internal_self_insert): Delete '#ifdef HAVE_FACES' and
6568 the corresponding '#endif'.
6569
2d73e8d3
MB
65702000-08-26 Miles Bader <miles@gnu.org>
6571
6572 * dispextern.h (enum lface_attribute_index): Add LFACE_INHERIT_INDEX.
6573 * xfaces.c (QCinherit): New variable.
6574 (syms_of_xfaces): Initialize it.
6575 (LFACE_INHERIT): New macro.
6576 (Finternal_get_lisp_face_attribute)
52283633 6577 (merge_face_vector_with_property)
2d73e8d3
MB
6578 (Finternal_set_lisp_face_attribute): Deal with :inherit attribute.
6579 (check_lface_attrs): Allow new types of face height. Check
6580 inherit attribute.
6581 (CYCLE_CHECK): New macro.
6582 (merge_face_inheritance): New function.
6583 (merge_face_vectors): Merge inherited faces too. Add F and
6584 CYCLE_CHECK arguments.
6585 (merge_face_vector_with_property, Finternal_merge_in_global_face)
6586 (lookup_named_face, lookup_derived_face, realize_named_face)
6587 (face_at_string_position, face_at_buffer_position): Supply
6588 new F and CYCLE_CHECK arguments to merge_face_vectors.
6589 (merge_face_heights): New function.
52283633 6590 (merge_face_vectors, merge_face_vector_with_property)
2d73e8d3
MB
6591 (Finternal_set_lisp_face_attribute): Call merge_face_heights to
6592 handle relative face heights.
6593 (lface_same_font_attributes_p): Compare heights using EQ.
6594
6ce974d4
KH
65952000-08-26 Kenichi Handa <handa@etl.go.jp>
6596
6597 * charset.c (char_to_string): Check the character validity.
52283633 6598 (char_valid_p): If C is not less than MAX_CHAR, be sure to return 0.
6ce974d4 6599
dc1e502d
SM
66002000-08-25 Stefan Monnier <monnier@cs.yale.edu>
6601
6602 * regex.c (PUSH_FAILURE_COUNT): New macro.
6603 (POP_FAILURE_REG_OR_COUNT): Renamed from POP_FAILURE_REG.
6604 Handle popping of a register's or a counter's data.
6605 (POP_FAILURE_POINT): Use the new name.
6606 (re_match_2_internal): Push counter data on the stack for succeed_n,
6607 jump_n and set_number_at and remove misleading dead code in succeed_n.
6608
bd9d0f3f
GM
66092000-08-25 Gerd Moellmann <gerd@gnu.org>
6610
6611 * xdisp.c (redisplay_internal): If considering all windows on all
6612 frames, update the display for each frame as soon as possible,
6613 instead of first building all desired matrices for all frames, and
6614 then updating them all.
6615 (try_cursor_movement): Handle case that last_cursor.vpos is -1.
6616
aa5b8e15
GM
66172000-08-24 Gerd Moellmann <gerd@gnu.org>
6618
17494071
GM
6619 * bytecode.c (mark_byte_stack): Add a comment.
6620
52283633
SM
6621 * frame.h (FRAME_FLAGS_AREA_COLS, FRAME_FLAGS_AREA_WIDTH)
6622 (FRAME_LEFT_FLAGS_AREA_WIDTH): Return 0 unless frame is
aa5b8e15
GM
6623 a graphical frame.
6624
c543db81
KH
66252000-08-24 Kenichi Handa <handa@etl.go.jp>
6626
d246d5f5
KH
6627 * minibuf.c (do_completion): Always use compare-string, not
6628 string-equal because the latter doesn't pay attention to
6629 multibyteness of strings.
6630
c543db81
KH
6631 * process.c (create_process): Don't setup raw-text coding here.
6632 (Fopen_network_stream): Don't set coding->src_multibyte and
6633 coding->dst_multibyte here.
6634 (read_process_output): For process filter, return unibyte string
6635 if default-enable-multibyte-characters is nil.
6636 (send_process): If OBJECT is multibyte text, be sure to encoded it
6637 by the specified coding system for the process. Otherwise, setup
6638 raw-text coding.
52283633 6639 (init_process): Don't initialize default-process-coding-system here.
c543db81 6640
9b47cfe0
EZ
66412000-08-23 Eli Zaretskii <eliz@is.elta.co.il>
6642
6643 * buffer.c (syms_of_buffer) <scroll-up-aggressively>: Doc fix.
6644 <scroll-down-aggressively>: Likewise.
6645
f5a36960
KH
66462000-08-23 Kenichi Handa <handa@etl.go.jp>
6647
6648 * coding.c (encode_eol): Fix bug for the case of dst_bytes being
6649 zero. Set coding->produced_char correctly.
6650
69a7ffa7
AI
66512000-08-22 Andrew Innes <andrewi@gnu.org>
6652
6653 * makefile.w32-in: New file.
6654
6655 * unexw32.c (unexec): Ignore old_name, and use the actual location
6656 of the current executable instead. Base new_name on this.
6657
6658 * w32proc.c (create_child): Remove reference to security
6659 descriptor, which isn't needed and doesn't compile with mingw32.
6660
6661 * w32term.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
6662 up dllimport attributes.
6663 (x_update_window_end): Update prototype.
6664
6665 * unexec.c (write_segment) [USE_CRT_DLL]: Remove unnecessary
6666 extern, which screws up dllimport attributes.
6667
6668 * sysdep.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
6669 up dllimport attributes.
6670
6671 * strftime.c [USE_CRT_DLL]: Remove unnecessary extern, which
6672 screws up dllimport attributes.
6673
6674 * process.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
6675 up dllimport attributes.
6676 (create_process) [USE_CRT_DLL]: Remove unnecessary extern, which
6677 screws up dllimport attributes.
6678
6679 * lread.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
6680 up dllimport attributes.
6681
6682 * keyboard.c [USE_CRT_DLL]: Remove unnecessary extern, which
6683 screws up dllimport attributes.
6684
6685 * floatfns.c [USE_CRT_DLL]: Remove unnecessary extern, which
6686 screws up dllimport attributes.
6687
6688 * fileio.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
6689 up dllimport attributes.
6690
6691 * emacs.c (malloc_initialize_hook) [USE_CRT_DLL]: Remove
6692 unnecessary extern, which screws up dllimport attributes.
6693 (main): Ditto.
6694
6695 * editfns.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
6696 up dllimport attributes.
6697
6698 * dispnew.c (window_change_signal) [USE_CRT_DLL]: Remove
6699 unnecessary extern, which screws up dllimport attributes.
6700
6701 * callproc.c [USE_CRT_DLL]: Remove unnecessary extern, which
6702 screws up dllimport attributes.
6703
6704 * buffer.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
6705 up dllimport attributes.
6706
6707 * w32proc.c (IsValidLocale): Extern missing from mingw32 headers.
6708
52283633
SM
6709 * w32bdf.c (search_file_line):
6710 (set_bdf_font_info):
6711 (seek_char):
6712 (w32_get_bdf_glyph):
69a7ffa7
AI
6713 (w32_BDF_to_x_font): Fix compile warnings.
6714
52283633 6715 * w32menu.c: Include keyboard.h before frame.h. Fix compile warnings.
69a7ffa7
AI
6716
6717 * w32select.c: Include keyboard.h before frame.h.
6718
6719 * w32fns.c (max): Define macro.
6720 (JOHAB_CHARSET): Define if not known.
6721 (MOD_ALT, MOD_CONTROL, MOD_SHIFT, MOD_WIN): Define if not known.
6722 (Fx_show_tip): Synch with X version.
6723
6724 * w32xfns.c: Include keyboard.h before frame.h.
6725
6726 * w32fns.c: Include keyboard.h before frame.h.
6727
6728 * w32term.c: Include keyboard.h before frame.h.
6729
6730 * fontset.c: Include keyboard.h before frame.h.
6731
6732 * w32inevt.c: Include keyboard.h before frame.h.
6733 (MOUSE_MOVED): Define if not known.
6734
6735 * minibuf.c: Include keyboard.h before frame.h.
6736
6737 * keyboard.c: Include keyboard.h before frame.h.
6738
6739 * indent.c: Include keyboard.h before frame.h.
6740
6741 * dispnew.c: Include keyboard.h before frame.h.
6742
6743 * buffer.c: Include keyboard.h before frame.h.
6744
6745 * alloc.c: Include keyboard.h before frame.h.
6746
6747 * print.c: Include keyboard.h before frame.h.
6748
6749 * process.c: Include keyboard.h before frame.h.
6750
6751 * scroll.c: Include keyboard.h before frame.h.
6752
6753 * sysdep.c: Include keyboard.h before frame.h.
6754
6755 * term.c: Include keyboard.h before frame.h.
6756
6757 * window.c: Include keyboard.h before frame.h.
6758
6759 * xdisp.c: Include keyboard.h before frame.h.
6760 Separate GLYPH_DEBUG and DEBUG_TRACE_MOVE.
6761
6762 * frame.c: Include keyboard.h before frame.h.
6763
6764 * w32heap.h: Undefine min, max.
6765
6766 * w32gui.h: Undefine min, max.
6767
6768 * unexw32.c: Change PUCHAR to PCHAR.
6769 (PTR_TO_OFFSET): Cast ptr to unsigned char *.
52283633
SM
6770 (relocate_offset):
6771 (get_section_info):
69a7ffa7
AI
6772 (copy_executable_and_dump_data): Remove unnecessary static defs.
6773 (copy_executable_and_dump_data): Fix compile warnings.
6774
6775 * sysdep.c (NULL) [WINDOWSNT]: Define NULL if not defined.
6776
6777 * w32console.c (min): Define macro.
6778 (clear_frame, write_glyphs): Fix compile warning.
6779
52283633 6780 * w32proc.c (compare_env):
69a7ffa7
AI
6781 (find_child_console): Fix compile warning.
6782
6783 * w32.c (sys_strerror): Use sys_nerr instead of _sys_nerr. Use
6784 sys_errlist instead of _sys_errlist.
6785 (get_emacs_configuration_options): New function.
6786
6787 * s/ms-w32.h (sys_nerr): Provide default definition.
6788 (strdup, strupr, strnicmp, stricmp, tzset, tzname): Map to same
6789 name with _ prepended.
6790 (NSIG): Define if not known.
6791 (get_emacs_configuration): Provide extern declaration.
6792 (get_emacs_configuration_options): Provide extern declaration.
6793 (EMACS_CONFIG_OPTIONS): Call get_emacs_configuration_options.
6794
6795 * w32.c (gettimeofday): Use struct timeb, not struct _timeb.
52283633 6796 (map_w32_filename):
69a7ffa7
AI
6797 (read_unc_volume): Fix compile warning.
6798
6799 * s/ms-w32.h (_WINSOCK_H): Define to prevent normal winsock
6800 definitions from being used.
6801
6802 * lisp.h [WINDOWSNT]: Don't declare externs for getenv, ctime and getwd.
6803
52283633 6804 * w32.c (unc_volume_file_attributes):
69a7ffa7
AI
6805 (open_unc_volume): Make arg const.
6806
6807 * sysdep.c [WINDOWSNT]: Remove extern decl of errno.
6808 (read_input_waiting): Remove excess parameter.
6809
6810 * w32.c (init_environment): Call _access.
6811 (check_windows_init_file): Call _close.
6812 (init_user_info): Call _putenv.
6813 (init_environment): Call _putenv and _strdup.
6814 (init_ntproc): Reset volume info cache on startup.
6815
6816 * s/ms-w32.h (malloc, free, realloc, calloc): Rename if
6817 USE_CRT_DLL is defined, so Emacs can use GNU malloc even though it
6818 cannot override the CRT malloc.
6819
6820 * makefile.nt (LOCAL_FLAGS): Define USE_CRT_DLL if requested.
6821 (LINK_FLAGS): Append to original value of LINK_FLAGS.
6822
6823 * w32heap.c [!USE_CRT_DLL]: Don't define _heap_init and _heap_term
6824 unless we are linking with a static CRT.
6825 (RVA_TO_PTR): Cast result to unsigned char*.
6826
6827 * w32.c (GetCachedVolumeInformation): Use xmalloc, xfree and xstrdup.
6828 (add_volume_info): Use xstrdup.
6829
25060080
SM
68302000-08-22 Stefan Monnier <monnier@cs.yale.edu>
6831
6832 * minibuf.c (Vcompletion_auto_help): Renamed from `auto_help'.
6833 (do_completion, Fminibuffer_complete_word): Use it.
6834 (syms_of_minibuf): Turn completion-auto-help into a proper Lisp
6835 var so it can take non-boolean values.
6836
6917e6bb
GM
68372000-08-21 Gerd Moellmann <gerd@gnu.org>
6838
acb7cc89 6839 * editfns.c (find_field): Formatting changes.
52283633 6840 (toplevel): Some old-style function forward declarations
acb7cc89
GM
6841 changed to prototypes, some new protypes added, some functions
6842 made static.
6843
6844 * lisp.h (set_time_zone_rule): Add prototype.
6845 (use_dialog_box): External declaration.
6846
0bbfdc25
GM
6847 * keyboard.c (gen_help_event): Add parameter SIZE.
6848 (kbd_buffer_events_waiting): Slightly rewritten.
6849 (clear_event): New function.
6850 (kbd_buffer_get_event): Use it, and clear the input_events of
6851 HELP_EVENTs.
6852 (init_keyboard): Remove duplicate creation of kbd_buffer_gcpro and
6853 don't fill the newly created array with nils.
6854 (toplevel): Convert some old-style function forward declarations
6855 to prototypes.
6856
6857 * keyboard.h (gen_help_event): Change prototype.
6858
6859 * xterm.c (XTread_socket): Change calls to gen_help_event.
6860
6861 * w32term.c (w32_read_socket): Change calls to gen_help_event.
6862
6917e6bb
GM
6863 * eval.c (Fmacroexpand): Doc fix.
6864
e5cd3d11
JR
68652000-08-20 Jason Rumney <jasonr@gnu.org>
6866
6867 * w32term.h (x_display_info_for_display): Remove as this function
6868 does not exist on W32.
6869
6870 * w32term.c (help_echo_window): New variable.
6871 (syms_of_w32term): staticpro it.
6872 (note_mode_line_highlight): Set it.
6873 (XTextExtents16): Removed as there is no equivalent on W32.
6874 (x_compute_glyph_string_overhangs): Incomplete body removed, as
6875 the X way of doing this will not work for W32.
6876 (w32_intersect_rectangles): Removed. Use IntersectRect API call.
6877 (x_draw_image_foreground): Avoid drawing outside of the clip area
6878 when image doesn't have a mask.
6879 (note_mouse_highlight): Process overlays in the right order of
6880 priority. Set help_echo_window.
6881 (x_draw_bar_cursor): If cursor is on an image, draw a box cursor
6882 because that's more visible for large images.
6883
6884 * w32menu.c (keymap_panes): Pass the keymap's prompt as the pane
6885 name to single_keymap_panes.
6886 (w32_menu_show): Set wv->title when dealing with titles.
6887 (w32_menu_display_help): Call show_help_echo with OBJECT and POS.
6888
6e69ab8c
MB
68892000-08-21 Miles Bader <miles@gnu.org>
6890
6891 * minibuf.c (do_completion): Try again if we rewrite the input
6892 string, but no completion was done, so that any completion message
6893 will be correct.
6894
511bd4eb
GM
68952000-08-20 Gerd Moellmann <gerd@gnu.org>
6896
6897 * xfaces.c (lface_equal_p): Compare strings differently.
6898 (Qtty_color_alist, Vtty_defined_color_alist): New variables.
6899 (realize_tty_face): Use them.
6900 (syms_of_xfaces): Initialize new variables.
6901 (map_tty_color): New function, extracted from realize_tty_face.
6902 (map_tty_color) [MSDOS || WINDOWSNT]: If using the frame's default
6903 foreground or background color, store the new color name in the
6904 realized face; previous code trying to do this had no effect.
6905 (realize_tty_face): Use map_tty_color.
6906 (Fclear_face_cache): Set face_change_count and ensure thorough
6907 redisplay.
6908
1433385f
GM
69092000-08-19 Gerd Moellmann <gerd@gnu.org>
6910
511bd4eb
GM
6911 * undo.c (record_first_change, record_marker_adjustment): Don't
6912 use XBUFFER on last_undo_buffer which might not be a buffer.
1433385f 6913
419ac0a2
KH
69142000-08-18 Kenichi Handa <handa@etl.go.jp>
6915
6916 * coding.c (decode_coding_string): Set members consumed,
6917 consumed_char, produced, produced_char of *coding correctly. If
6918 decode_coding doesn't consume any byte, don't try anymore.
6919 (encode_coding_string): Likewise.
6920
7eb9e30d
GM
69212000-08-18 Gerd Moellmann <gerd@gnu.org>
6922
511bd4eb
GM
6923 * lisp.h (CHECK) [ENABLE_CHECKING]: Make both sides of the
6924 conditional have void type, for Standard C compilers.
7eb9e30d
GM
6925
6926 * xdisp.c (redisplay_internal): Compare windows for equality with
6927 EQ, instead of applying XWINDOW to something that might not
6928 be a window.
52283633 6929
dd34a735
KH
69302000-08-18 Kenichi Handa <handa@etl.go.jp>
6931
6932 * fontset.c (Finternal_char_font): Search only the selected frame
6933 for a window of the current buffer.
6934
385ff9e3
GM
69352000-08-18 Gerd Moellmann <gerd@gnu.org>
6936
511bd4eb 6937 * minibuf.c (do_completion): Use EQ instead of `!=' to compare
01cce3e7
GM
6938 Lisp_Objects.
6939
385ff9e3
GM
6940 * keyboard.c (kbd_buffer_get_event): Handle the case that the
6941 second half of a HELP_EVENT is found at the start of kbd_buffer.
6942
d6abb4c7
MB
69432000-08-18 Miles Bader <miles@gnu.org>
6944
4618074a
MB
6945 * lisp.h (Lisp_String): Replace DECLARE_INTERVALS with real decl.
6946
d6abb4c7
MB
6947 * editfns.c (save_restriction_save): Rewrite to use markers.
6948 (save_restriction_restore): Rewrite to understand new form of data
6949 saved by save_restriction_save.
6950 (Fsave_restriction): Remove cautionary note in doc-string.
6951
a7b28523
GM
69522000-08-17 Gerd Moellmann <gerd@gnu.org>
6953
6954 * fileio.c (build_annotations): Add a comment explaining the
6955 return value of format-annotate-function. Replace a spurious call
6956 to Flength with a CONSP test. Call format-annotate-function with
6957 a fifth arg specifying how many times the function is been called
6958 in a row, to let it choose temporary buffers appropriately.
6959
03c9ed77
DL
69602000-08-17 Dave Love <fx@gnu.org>
6961
6962 * lisp.h: Remove DECLARE_INTERVALS, INITIALIZE_INTERVAL. Don't
6963 declare make_temp_name twice.
6964
52283633 6965 * lread.c: Prototype readevalloop, load_unwind, load_descriptor_unwind.
03c9ed77
DL
6966 (unreadpure): Give it an arg.
6967
6968 * unexalpha.c: Prototype fatal_unexec, mark_x,
6969 update_dynamic_symbols. Declare unexec as void.
6970
6971 * cm.c [HAVE_TERMCAP_H]: Include <termcap.h>.
6972 [!HAVE_TERMCAP_H]: Prototype tputs, tgoto.
6973
6974 * alloc.c (lisp_malloc): Declare with POINTER_TYPE.
52283633 6975 [SYSTEM_MALLOC]: Make decls in malloc.h conditional on DOUG_LEA_MALLOC.
03c9ed77
DL
6976
6977 * alloca.c: Use #error.
6978 [POINTER_TYPE]: Use it.
6979
6980 * eval.c (Fdefvar): Doc fix.
6981
6982 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Avoid
6983 INITIALIZE_INTERVAL.
6984
6985 * buffer.h: Avoid DECLARE_INTERVALS.
6986
6987 * config.in: Add size_t.
6988
aae41d97
EZ
69892000-08-17 Eli Zaretskii <eliz@is.elta.co.il>
6990
6991 * w16select.c (set_clipboard_data): If there's not enough memory
6992 to put text into clipboard, return 1, as Fw16_set_clipboard_data
6993 expects. In case of other failures, return 3.
6994 (system_error_msg): New error message.
6995 (Fw16_set_clipboard_data): If set_clipboard_data returns 3, print
6996 system_error_msg.
6997
65aa5e85
GM
69982000-08-16 Gerd Moellmann <gerd@gnu.org>
6999
7000 * term.c (write_glyphs): Also turn off inverse video after turning
7001 off other appearances in case TS_exit_attribute_mode is not equal
7002 to TS_end_standout_mode.
7003 (insert_glyphs): Turn inverse video on/off for each run of glyphs
7004 with the same face.
7005 (turn_off_face): Reset standout_mode only if
7006 TS_exit_attribute_mode has been output and TS_exit_attribute_mode
7007 is equal to TS_end_standout_mode.
7008
ece23901
KH
70092000-08-16 Kenichi Handa <handa@etl.go.jp>
7010
9d7bcb2e
KH
7011 * coding.c (encode_coding): Fix the bug of not flushing ISO escape
7012 sequence at the end of the source block.
7013
ece23901
KH
7014 * ccl.c (Fccl_program_p): Docstring modified.
7015 (Fccl_execute): Likewise.
7016 (Fccl_execute_on_string): Likewise.
7017
5e30eaa2
EZ
70182000-08-16 Eli Zaretskii <eliz@is.elta.co.il>
7019
7020 * msdos.c (IT_write_glyphs): Convert cbp to unsigned char *.
7021
290602fd
KH
70222000-08-16 Kenichi Handa <handa@etl.go.jp>
7023
7024 The following changes are mainly to fix bugs of
7025 encode/decode-coding-string failing if encoding/decoding return
7026 CODING_FINISH_INSUFFICIENT_DST. In addition, delete the global
7027 variable conversion_buffer.
7028
7029 * ccl.c (CCL_WRITE_CHAR): If CH is eight-bit-control char,
7030 decrement dst_end to avoid buffer overflow in the later call of
7031 string_as_multibyte
7032
7033 * coding.h (conversion_buffer_size, conversion_buffer)
7034 (get_conversion_buffer): Extern deleted.
7035
7036 * coding.c (MINIMUM_CONVERSION_BUFFER_SIZE): Macro deleted.
7037 (conversion_buffer, conversion_buffer_size): Variables deleted.
7038 (get_conversion_buffer): Function deleted.
7039 (struct conversion_buffer): New structure.
7040 (MAX_ALLOCA): New macro.
7041 (allocate_conversion_buffer): New macro.
7042 (extend_conversion_buffer, free_conversion_buffer): New functions.
7043 (ccl_coding_driver): Set coding->result.
7044 (decode_coding): Set coding->result to CODING_FINISH_NORMAL if
7045 this is the last block of source.
7046 (encode_coding): Likewise. Handle the source block as the last
7047 one only when the whole source text is consumed.
7048 (decode_coding_string): Handle the case that the output buffer is
7049 too small to decode the whole source text. Use
7050 allocate_conversion_buffer, extend_conversion_buffer and
7051 free_conversion_buffer, not get_conversion_buffer.
7052 (encode_coding_string): Likewise.
7053 (init_coding): Function deleted.
52283633 7054 (init_coding_once): Delete code to initialize conversion_buffer_size.
290602fd
KH
7055
7056 * emacs.c (main): Don't call init_coding.
7057
52283633 7058 * msdos.c (IT_write_glyphs): Use a locally declared conversion_buffer.
290602fd
KH
7059
7060 * term.c (write_glyphs): Use a locally declared conversion_buffer.
7061 (insert_glyphs): Likewise.
7062
7063 * w32console.c (write_glyphs): Use a locally declared
7064 conversion_buffer.
7065
b9f80d41
EZ
70662000-08-15 Eli Zaretskii <eliz@is.elta.co.il>
7067
7068 * msdos.c (IT_update_begin): Don't crash if mouse_face_mouse_frame
7069 member of display_info is NULL.
7070
32dc52f7
GM
70712000-08-15 Gerd Moellmann <gerd@gnu.org>
7072
52283633 7073 * alloc.c (compact_small_strings): Use safe_bcopy, add an assertion.
58ed0d3b 7074
32dc52f7 7075 * term.c (turn_off_face): Reset standout_mode when resetting
58ed0d3b 7076 appearances with capability `me'.
32dc52f7
GM
7077 (write_glyphs): Switch on inverse video before each face change.
7078
4eb22d33
DL
70792000-08-14 Dave Love <fx@gnu.org>
7080
7081 * alloc.c [HAVE_UNISTD_H]: Include unistd.h; don't declare sbrk.
7082 [!HAVE_UNISTD_H]: Use POINTER_TYPE to declare sbrk.
7083 (lisp_free): Declare and make static.
7084
7085 * window.c: Fix embedded comment.
7086 (syms_of_window): Fix doc string.
7087
90cbf47e
GM
70882000-08-14 Gerd Moellmann <gerd@gnu.org>
7089
52283633 7090 * keymap.c (push_key_description): If C without modifiers is < 32,
90cbf47e
GM
7091 make sure to print `C-' before `M-', like in the manual.
7092
440fc135
GM
70932000-08-11 Gerd Moellmann <gerd@gnu.org>
7094
7095 * fns.c (hashfn_eq, hashfn_eql): Don't handle strings specially
7096 since they aren't relocated anymore.
52283633 7097 (sxhash_string): Make sure returned hash code fits in a Lisp integer.
440fc135
GM
7098
7099 * xdisp.c (try_cursor_movement): Fix handling of cursor in
52283633 7100 partially visible line which is smaller than the window's height.
440fc135 7101
6e264fad
KH
71022000-08-11 Kenichi Handa <handa@etl.go.jp>
7103
7104 * ccl.c (CCL_READ_CHAR): If source is multibyte, pay attention to
52283633 7105 the multibyte form of eight-bit-control characters.
6e264fad
KH
7106 (Fccl_execute_on_string): Initialize ccl->multibyte.
7107
7108 * ccl.h (struct ccl_program): New member multibyte.
7109
7110 * coding.c (ccl_coding_driver): Initialize ccl->multibyte.
7111
c371f69a
KH
71122000-08-11 Kenichi Handa <handa@etl.go.jp>
7113
7114 * regex.c (regex_compile) <normal_char>: Pay attention to
7115 multibyteness.
7116 (analyse_first) <exactn>: Setup fastmap correctly for
7117 eight-bit-control characters.
7118
71192000-08-11 Kenichi Handa <handa@etl.go.jp>
7120
52283633 7121 * termhooks.h (enum event_kind): New member multibyte_char_keystroke.
c371f69a
KH
7122
7123 * keyboard.c (make_lispy_event): Handle the new event type
7124 multibyte_char_keystroke.
7125
7126 * xterm.c: Include coding.h.
7127 (XTread_socket): Work around a bug of XmbLookupString. If the
7128 input is from XIM, decode it according to the current locale. In
7129 that case, generate multibyte_char_keystroke events.
7130
b8ddbe71
KH
71312000-08-11 Kenichi Handa <handa@etl.go.jp>
7132
7133 * xdisp.c (TRACE_MOVE) [GLYPH_DEBUG]: Delete the last semicolon.
7134 (TRACE_MOVE) [not GLYPH_DEBUG]: Define dummy.
7135
47589c8c
GM
71362000-08-10 Gerd Moellmann <gerd@gnu.org>
7137
7138 * xdisp.c (trace_move) [GLYPH_DEBUG]: New variable.
7139 (TRACE_MOVE) [GLYPH_DEBUG]: New macro.
7140 (move_it_in_display_line_to): Record iterator's ascent and descent
7141 before producing glyphs, and restore them when we know the glyph
7142 doesn't fit on the line.
7143 (move_it_to): Restructured so that it's easier to debug. If
7144 moving to a vpos, and not moving to an x or character position,
7145 stop as soon as the specified vpos is reached; don't move further
7146 into that line because that might change the computed line height.
7147 (try_cursor_movement): New function, extracted from the cursor
7148 movement branch of redisplay_window. If ending on a partially
7149 visible line, don't try to scroll if the cursor line is taller
7150 than the window.
7151 (redisplay_window): Use try_cursor_movement.
7152
7153 * window.c (Fwindow_end): Rewritten to not use Fvertical_motion,
7154 because that function doesn't cope with variable-height lines.
7155
7156 * xterm.c (x_draw_bar_cursor): If cursor is on an image, draw a
7157 box cursor because that's better visible for large images.
52283633 7158
c51bacd6
MB
71592000-08-10 Miles Bader <miles@gnu.org>
7160
7161 * w32term.c (note_mouse_highlight): Update calls to overlays_at.
7162
bea56df7
GM
71632000-08-10 Gerd Moellmann <gerd@gnu.org>
7164
7165 * xdisp.c (Vmessages_buffer_name): New variable.
7166 (message_dolog): Use it.
7167 (syms_of_xdisp): Initialize it.
7168
99cd7364
EZ
71692000-08-10 Eli Zaretskii <eliz@is.elta.co.il>
7170
52283633 7171 * msdos.c (IT_note_mouse_highlight): Update the calls to overlays_at.
99cd7364
EZ
7172 (toplevel) <kbd_buffer_store_event>: Remove prototype, it's
7173 redundant now that keyboard.h is included.
7174
7d093d56
EZ
71752000-08-09 Eli Zaretskii <eliz@is.elta.co.il>
7176
7177 * keyboard.c (kbd_buffer_events_waiting): New function.
7178
7179 * keyboard.h (kbd_buffer_events_waiting): Add prototype.
7180
7181 * msdos.c: Include keyboard.h.
7182 (XMenuActivate): Empty no_event events from the event buffer. If
7183 no events are left after that, call clear_input_pending.
7184 (mouse_clear_clicks): New function, code moved from mouse_init.
7185 (mouse_init, XMenuActivate): Call mouse_clear_clicks to force the
7186 mouse driver to ``forget'' any past clicks.
7187
7188 * Makefile.in (msdos.o): Depend on keyboard.h.
7189
41e757a6
GM
71902000-08-09 Gerd Moellmann <gerd@gnu.org>
7191
8e7bd231
GM
7192 * lisp.h (input_pending): External declaration.
7193
7194 * dispextern.h (Qredisplay_dont_pause): Declare extern.
52283633 7195
8e7bd231
GM
7196 * xdisp.c (echo_area_display): Display thoroughly if input is
7197 pending. Bind redisplay-dont-pause to t during the redisplay.
7198 in case input is pending.
7199
7200 * dispnew.c (Qredisplay_dont_pause): New variable.
7201 (syms_of_display): Initialize and staticpro it.
7202 (update_frame_1): Don't interrupt the display for pending input if
7203 redisplay_dont_pause is set.
52283633 7204
43028b7e
GM
7205 * dispnew.c (mode_line_string): Declare parameter MODE_LINE_P.
7206
41e757a6
GM
7207 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
7208
2f2174fa
KH
72092000-08-09 Miles Bader <miles@lsi.nec.co.jp>
7210
7211 * callproc.c (Fcall_process): Terminate the unwind-protect around
7212 the post-read-conversion of coding system.
7213
0a6fd67e
MB
7214 * buffer.c (overlays_at): Add CHANGE_REQ parameter.
7215 (Foverlays_at, Fnext_overlay_change, Fprevious_overlay_change): Use it.
7216 * buffer.h (overlays_at): Update prototype.
7217 * xdisp.c (next_overlay_change): Update call to overlays_at.
7218 * xfaces.c (face_at_buffer_position): Likewise.
7219 * textprop.c (Fget_char_property): Likewise.
7220 * xterm.c (note_mouse_highlight): Likewise.
7221
0c80756e
MB
7222 * minibuf.c (do_completion): Don't consider a simple change of
7223 case as `completion'.
7224
975f250a
KR
72252000-08-08 Ken Raeburn <raeburn@gnu.org>
7226
52283633 7227 * keyboard.c (syms_of_keyboard): Initialize last_point_position_buffer.
b347b3fd
KR
7228 * undo.c (record_delete): Make sure last_point_position_buffer is
7229 a buffer before comparing pointers.
7230
7231 * coding.h (decode_coding_string): Declare.
7232
7233 * intervals.h (Fprevious_single_char_property_change): Declare.
7234
7235 * textprop.c (Fprevious_single_char_property_change): Don't do
7236 arithmetic directly on lisp objects.
7237
52283633 7238 * editfns.c (find_field): Use EQ, not ==, to compare Lisp objects.
b347b3fd
KR
7239
7240 * keyboard.h (menu_item_eval_property): Declare.
7241
7242 * xdisp.c (message_dolog): Save and protect string "*Messages*" to
7243 reuse as buffer name, instead of recreating (and discarding) every
7244 time a message is logged.
7245 (with_echo_area_buffer): Make callback arg A2 a lisp object.
25ad1371
GM
7246 (current_message_1, truncate_message_1, set_message_1)
7247 (display_echo_area_1, resize_mini_window_1): Signatures changed.
7248 (current_message, truncate_echo_area, display_echo_area)
7249 (resize_echo_area_axactly): Changed calls.
b347b3fd 7250
975f250a 7251 * coding.c (find_safe_codings): CHAR_TABLE_SET index must be a
25ad1371 7252 Lisp object.
975f250a 7253 (Ffind_coding_systems_region_internal): First argument to Fappend
25ad1371 7254 must be an integer, not a Lisp object.
975f250a 7255
46dc9912
KH
72562000-08-08 Kenichi Handa <handa@etl.go.jp>
7257
7258 * charset.c (Fchar_width): Doc fix.
7259
9f6d1a6c
GM
72602000-08-08 Gerd Moellmann <gerd@gnu.org>
7261
7262 * charset.c (Fstring_width): Doc fix.
7263
ff3d9573
GM
72642000-08-07 Gerd Moellmann <gerd@gnu.org>
7265
41e757a6 7266 * xdisp.c (start_display): When starting display on a continuation
49ad1d99
GM
7267 line, clear ascent and descent members of the iterator structure;
7268 the height of the continued line does not affect the height of the
7269 continuation line.
7270 (make_cursor_line_fully_visible): Do nothing if cursor is on a
7271 line taller than the window.
7272 (redisplay_window) <forced window start>: Handle case that the
7273 middle of the window is not found in any row.
7274 (dump_glyph_row): Show more information.
7275 (compute_line_metrics): Use MATRIX_FIRST_TEXT_ROW to determine the
7276 first text line in a glyph matrix.
7277
7278 * xterm.c (x_draw_image_foreground): Avoid drawing outside
7279 of the clip area when image doesn't have a mask.
7280
70fc58b3
GM
7281 * fns.c (sweep_weak_table): Fix survival conditions for
7282 key-or-value and key-and-value weakness.
7283
7284 * .gdbinit (xhashtable): New command.
7285
ac0e96ee
GM
7286 * fns.c (sweep_weak_hash_tables): Fix the code taking unmarked
7287 tables out of the list of all weak hash tables.
7288
ff3d9573
GM
7289 * xdisp.c (ensure_echo_area_buffers): If a buffer was killed, and
7290 a new buffer is created, make sure echo_area_buffer[] references
7291 the new buffer.
7292
e0d8827b
EZ
72932000-08-07 Eli Zaretskii <eliz@is.elta.co.il>
7294
7295 * msdos.c (Fmsdos_set_mouse_buttons): Add missing backslashes in
7296 the doc string.
7297
c6f35378
KH
72982000-08-07 Kenichi Handa <handa@etl.go.jp>
7299
7300 * syntax.c (skip_chars): Fix previous change. Make the handling
7301 of unibyte string consistent with that of regex search.
7302
1fd4c450
GM
73032000-08-05 Gerd Moellmann <gerd@gnu.org>
7304
e49aa397
GM
7305 * xmenu.c (popup_get_selection): Use xfree instead of free.
7306
7307 * fileio.c (Finsert_file_contents): Use xfree instead of free.
7308
7309 * editfns.c (Ftranspose_regions): Use xfree instead of free.
7310
7311 * callproc.c (child_setup): Use xfree instead of free.
7312
7313 * sysdep.c (opendir, GetTempDirName, run_mac_command): Use xmalloc
7314 instead of malloc.
7315 (run_mac_command, closedir): Use `xfree' instead of `free'.
7316
7317 * keymap.c (current_minor_maps): Use xmalloc instead of malloc.
7318
7319 * eval.c (error): Use xfree instead of free.
7320
1fd4c450
GM
7321 * xfaces.c, xfns.c, w32fns.c: Replace `illegal' with `invalid'.
7322
7323 * fns.c: Replace `illegal' with `invalid'.
e49aa397 7324 (Fmake_hash_table, make_hash_table): Allow table size of 0.
1fd4c450 7325
82d497fc
KH
73262000-08-05 Kenichi Handa <handa@etl.go.jp>
7327
7328 * syntax.c (skip_chars): Fix handling of multibyte<->unibyte
7329 conversion.
7330
59f953a2
NF
73312000-08-04 Noah Friedman <friedman@splode.com>
7332
7333 * fns.c (Fmake_hash_table): Add missing `\n\' to end of line in
7334 docstring.
7335
688351f2
GM
73362000-08-04 Gerd Moellmann <gerd@gnu.org>
7337
7338 * syntax.c (skip_chars): Fix typo in error message.
7339
2dad51cc
AS
73402000-08-04 Andreas Schwab <schwab@suse.de>
7341
7342 * m/ia64.h: Moved from s/ia64.h.
7343
99bb2c60
KH
73442000-08-04 Kenichi Handa <handa@etl.go.jp>
7345
082a1df2
KH
7346 * process.c (read_process_output): Big simplification. Handle
7347 composition and post-read-conversion of coding system correctly.
7348 (send_process): Handle composition correctly.
7349
7350 * callproc.c (Fcall_process): Handle post-read-conversion of
7351 coding system if any.
7352
99bb2c60
KH
7353 * coding.c (decode_coding_iso2022): More strict check for handling
7354 single shifting.
082a1df2
KH
7355 (coding_restore_composition): Pay attention to the case that
7356 cmp_data is not set properly (because of invalid code in the
7357 source text).
7358 (run_pre_post_conversion_on_str): Include text properties in the
7359 resulting string.
7360 (decode_coding_string): Set members of coding correctly.
99bb2c60 7361
f4988be7
GM
73622000-08-03 Gerd Moellmann <gerd@gnu.org>
7363
7364 * s/ia64.h: New file.
7365
7366 * widget.c (set_frame_size, update_wm_hints, EmacsFrameSetValues):
7367 Use NULL instead of 0 at the end of variable argument list of
7368 XtVaGetValues and XtVaSetValues, because 0 fails on systems where
7369 sizeof (int) < sizeof (void *).
7370
7371 * xmenu.c (update_frame_menubar): Use NULL instead of 0 at the end
7372 of variable argument lists of XtVaGetValues and XtVaSetValues.
7373
7374 * xfns.c (Fx_file_dialog): Use NULL instead of 0 at the end of
7375 variable argument lists of XtVaGetValues and XtVaSetValues.
7376
ead53494
GM
73772000-08-02 Gerd Moellmann <gerd@gnu.org>
7378
7379 * alloc.c (lisp_malloc, lisp_free): Use size_t and POINTER_TYPE.
7380 (xrealloc, xmalloc): Use size_t. Some callers adjusted.
7381
7382 * lisp.h (Fsingle_key_description, xmalloc, xrealloc): Change
7383 prototype.
7384
7385 * keyboard.c (read_char_minibuf_menu_prompt): Add new parameter
7386 in call to Fsingle_key_description.
7387
7388 * keymap.c (Fsingle_key_description): Add parameter NO_ANGLES.
7389 Callers changed.
7390
73912000-08-02 Colin Walters <walters@cis.ohio-state.edu>
7392
7393 * window.c (display_buffer_reuse_frames): New variable.
7394 (Fdisplay_buffer): If display_buffer_reuse_frames is set, reuse
7395 frames displaying BUFFER.
52283633 7396 (syms_of_window): Define Lisp variable display-buffer-reuse-frames.
ead53494 7397
10b0f752
MB
73982000-08-01 Miles Bader <miles@gnu.org>
7399
7400 * editfns.c (Fconstrain_to_field): Fix the conditions for deciding
7401 when to constrain NEW_POS (they were pretty screwed up before).
7402
16425c4a
EZ
74032000-07-31 Eli Zaretskii <eliz@is.elta.co.il>
7404
7405 * msdos.c (run_msdos_command): Save and restore the master
7406 environment, for the case that child_setup signals an error.
7407 When mirroring slashes in DOS shell commands, don't fail when
7408 argv[2] has embedded blanks.
da288c14
EZ
7409 (Fmsdos_set_mouse_buttons, mouse_setup_buttons): New functions.
7410 (syms_of_msdos): Defsubr Fmsdos_set_mouse_buttons.
7411 (dos_ttraw): Call mouse_setup_buttons.
16425c4a
EZ
7412
7413 * callproc.c (child_setup) [MSDOS]: malloc pwd_var instead of
7414 using alloca; free it after run_msdos_command returns.
7415
27f73852
DL
74162000-07-27 Dave Love <fx@gnu.org>
7417
52283633
SM
7418 * s/irix6-5.h (IRIX_FORCE_32_BITS, LD_SWITCH_SYSTEM): Don't define.
7419 [_MIPS_SZLONG == 64]: Set up for 64-bit mode -- not currently working.
27f73852
DL
7420
7421 * m/iris4d.h (XUINT, XSET, XUNMARK) [_LP64]: Don't define.
7422
c0261b5e
EZ
74232000-07-27 Eli Zaretskii <eliz@is.elta.co.il>
7424
7425 * editfns.c (lisp_time_argument): Fix last change.
7426
b548072f
GM
74272000-07-27 Gerd Moellmann <gerd@gnu.org>
7428
3ab82477
GM
7429 * fns.c (Fdelete): Make it work on vectors and strings in addition
7430 to lists.
7431
b548072f
GM
7432 * fns.c (Qkey_or_value, Qkey_and_value): New variables.
7433 (syms_of_fns): Initialize new variables.
52283633 7434 (sweep_weak_table): Handle weakness `key-or-value' and `key-and-value'.
b548072f
GM
7435 (Fmake_hash_table): Recognize `key-and-value' and `key-or-value'
7436 weakness, with t meaning the same as `key-and-value'.
7437
91ae8751
KH
74382000-07-27 Kenichi Handa <handa@etl.go.jp>
7439
7440 * coding.h (struct coding_system): Member safe_charset deleted.
7441
7442 * coding.c (Qsafe_charsets): This variable deleted.
52283633
SM
7443 (Qsafe_chars, Vchar_coding_system_table, Qchar_coding_system):
7444 New variables.
91ae8751
KH
7445 (coding_safe_chars): New function.
7446 (CODING_SAFE_CHAR_P): New macro.
7447 (CHARSET_OK): New arg C. Call CODING_SAFE_CHAR_P instead of
52283633 7448 checking safe_charsets member of the coding system. Caller changed.
91ae8751
KH
7449 (detect_coding_iso2022): New local variable safe_chars.
7450 (DECODE_DESIGNATION): Call CODING_SAFE_CHAR_P instead of checking
7451 safe_charsets member of the coding system.
7452 (decode_coding_iso2022): New local variable safe_chars.
7453 (ENCODE_ISO_CHARACTER_DIMENSION1): Don't check unsafe chars here.
7454 (ENCODE_ISO_CHARACTER_DIMENSION2): Likewise.
7455 (ENCODE_ISO_CHARACTER): Arguments changed. Caller changed.
7456 (ENCODE_UNSAFE_CHARACTER): New macro.
7457 (encode_coding_iso2022): New local variable safe_chars. Check
7458 unsafe chars.
7459 (setup_coding_system): Delete the code to initialize
7460 coding->safe_charses
7461 (intersection, find_safe_codings): New functions.
7462 (Ffind_coding_systems_region_internal): New function.
7463 (syms_of_coding): Defsubr it. Initialize Qsafe_chars,
7464 Qsafe_cding_system. Make Vchar_coding_system_table a Lisp
7465 variable and initialize it.
7466
7467 * fns.c (char_table_ref_and_index): New function.
7468
7469 * lisp.h (char_table_ref_and_index): Add prototype.
7470
34a7a267
SS
74712000-07-26 Sam Steingold <sds@gnu.org>
7472
7473 * editfns.c (lisp_time_argument): Added third argument `usec'.
3ab82477 7474 (Ffloat_time): New built-in Lisp function.
34a7a267 7475
a95cb10a
GM
74762000-07-26 Gerd Moellmann <gerd@gnu.org>
7477
3353ef5a
GM
7478 * dispextern.h (GLYPH_FROM_CHAR_GLYPH): Use CHARACTERBITS bits
7479 for the character code.
7480
7481 * config.in (HAVE_SOUND): Define only for FreeBSD, NetBSD and
7482 GNU/Linux.
7483
a95cb10a
GM
7484 * xmenu.c (menu_highlight_callback): Call show_help_echo directly
7485 if called for a popup menu.
7486 (xmenu_show): Store help string in widget values.
7487
b4a12321
DL
74882000-07-26 Dave Love <fx@gnu.org>
7489
7490 * syswait.h: Move some definitions.
7491 (HAVE_SYS_WAIT_H): Undef for HPUX7, Convex.
7492 [!HAVE_SYS_WAIT_H]: Define things unconditionally. More
7493 perspicuous definitions.
7494 (WTERMSIG): Fix bit pattern used.
7495
13f5ad37
KH
74962000-07-26 Kenichi Handa <handa@etl.go.jp>
7497
7498 * print.c (print_object): If vector printing is truncated, print
7499 "..." to indicate it as well as the case of list printing.
7500
070fe99c
GM
75012000-07-25 Gerd Moellmann <gerd@gnu.org>
7502
969065c3
GM
7503 * xdisp.c (next_element_from_display_vector): Improve comments.
7504
7505 * lisp.h (GLYPH_MASK_CHAR, GLYPH_MASK_FACE): Use 19 bits
7506 for the character code, and the rest for the face id as in 20.x.
7507 (FAST_GLYPH_FACE, FAST_MAKE_GLYPH): Changed accordingly.
7508
7509 * window.c (window_display_table): Cleaned up.
7510
070fe99c
GM
7511 * syntax.c (Fforward_word): Add last arg nil in call of
7512 Fconstrain_to_field.
7513
bad77ef7
EZ
75142000-07-25 Eli Zaretskii <eliz@is.elta.co.il>
7515
969065c3 7516 * fileio.c (Frename_file) [DOS_NT]: If the file names are
52283633
SM
7517 identical but for the letter-case, don't call
7518 barf_or_query_if_file_exists.
bad77ef7 7519
c28da489
MB
75202000-07-25 Miles Bader <miles@gnu.org>
7521
7522 * editfns.c (find_field): Honor special `boundary' fields.
7523 (Qboundary): New variables.
7524 (syms_of_editfns): Initialize Qboundary.
7525 (Fconstrain_to_field): Add the INHIBIT-CAPTURE-PROPERTY argument.
7526 Use scan_buffer instead of find_before_next_newline, because it
7527 allows us to detect the boundary case where there's a newline at
7528 the search limit.
7529 * lisp.h (Fconstrain_to_field): Update external declaration.
7530
e3c31fd5
GM
75312000-07-24 Gerd Moellmann <gerd@gnu.org>
7532
7533 * print.c (temp_output_buffer_setup): Don't call1 Vrun_hooks
7534 if that is nil.
c28da489 7535
c66c29a2
DL
75362000-07-24 Dave Love <fx@gnu.org>
7537
7538 * s/sunos4-0.h, s/sol2.h:
7539 (LIBS_TERMCAP): Move from m/sparc.h.
7540
7541 * m/sparc.h (TERMINFO): Moved to system files (probably only
7542 relevant for sunos4 judging by its vintage).
7543 (BITS_PER_LONG, BITS_PER_EMACS_INT, _LP64): Define conditional on
7544 __arch64__.
7545
fbe0a958
EZ
75462000-07-24 Eli Zaretskii <eliz@is.elta.co.il>
7547
7548 * xmenu.c (keymap_panes): Pass the keymap's prompt as the pane
7549 name to single_keymap_panes.
7550
7d88e5c9
AS
75512000-07-24 Andreas Schwab <schwab@suse.de>
7552
7553 * fns.c (Fmakehash): Pass Qeql to Fmake_hash_table if TEST is nil.
7554
e024b101
GM
75552000-07-24 Gerd Moellmann <gerd@gnu.org>
7556
7557 * xdisp.c (with_echo_area_buffer): Take additional EMACS_INT
7558 parameters instead of using int parameters. Expect FN to accept
7559 EMACS_INT parameters.
7560 (display_echo_area, resize_echo_area_axactly, current_message)
7561 (truncate_echo_area, set_message_1): Call with_echo_area_buffer
7562 with new argument list.
7563 (resize_mini_window_1): New callback function.
7564 (current_message_1, truncate_message_1, set_message_1): Change
52283633 7565 parameter lists to the new format expected by with_echo_area_buffer.
e024b101 7566
25c1a9ce
KH
75672000-07-24 Kenichi Handa <handa@etl.go.jp>
7568
7569 * fontset.c (fontset_ref): Remove INLINE declaration.
7570 (fontset_ref_via_base): Likewise.
7571 (Fset_fontset_font): Convert FAMILY and REGISTRY specifications
7572 to downcase.
7573
7f987ac0
EZ
75742000-07-23 Eli Zaretskii <eliz@is.elta.co.il>
7575
7576 * msdos.c (IT_note_mouse_highlight): Process overlays in the
7577 correct order of priority. If help echo was found in an overlay,
7578 use that overlay as the object in which the help echo was found.
7579
e2db3069
MB
75802000-07-22 Miles Bader <miles@gnu.org>
7581
7582 * textprop.c (Fprevious_single_char_property_change): The initial
7583 property value should be from the position preceding POSITION, not
7584 following it.
7585
5e3203e4
EZ
75862000-07-22 Eli Zaretskii <eliz@is.elta.co.il>
7587
7588 * coding.c (syms_of_coding): Doc fix for
7589 inhibit-iso-escape-detection.
7590
62145073
GM
75912000-07-21 Gerd Moellmann <gerd@gnu.org>
7592
c20aeb83
GM
7593 * xterm.c (note_mouse_highlight): Process overlays in the right
7594 order of priority.
34a7a267 7595
743934db
GM
7596 * keyboard.c (show_help_echo, gen_help_event): Extend comments.
7597
7598 * xterm.c (note_mouse_highlight): If help-echo was found in an
52283633 7599 overlay, use that overlay as the object in which the help was found.
743934db 7600
d1dc7e43 7601 * window.c (foreach_window_1): Fix typo reversing an if-condition.
34a7a267 7602
62145073
GM
7603 * window.c (foreach_window): Instead of a fake variable argument
7604 list, take one USER_DATA argument.
7605 (foreach_window_1): Likewise, and call callback functions with two
7606 args, the window and USER_DATA.
7607 (struct check_window_data): New struct.
7608 (check_window_containing): Use it.
7609 (window_from_coordinates): Set up a struct check_window_data for
7610 foreach_window.
7611 (add_window_to_list, freeze_window_start): Change parameters
7612 according to new calling convention.
7613
7614 * window.h (foreach_window): Change prototype.
7615
7616 * buffer.c (Fprevious_overlay_change): Avoid memory leak.
7617
76182000-07-21 Eli Zaretskii <eliz@is.elta.co.il>
7619
7620 * xmenu.c (menu_help_callback): Call show_help_echo with
7621 additional arguments OBJECT and POS.
7622
11270583
KH
76232000-07-21 Kenichi Handa <handa@etl.go.jp>
7624
07b14857
KH
7625 * data.c (Faset): Allow storing any multibyte character in a
7626 string. Convert unibyte string to multibyte if necessary.
7627
11270583
KH
7628 * xfns.c (x_encode_text): New function.
7629 (x_set_name): Use x_encode_text.
7630 (x_set_title): Likewise.
7631
7632 * xselect.c (lisp_data_to_selection_data): Use x_encode_text.
7633
7634 * xterm.h (x_encode_text): Add prototype.
7635
bc75b4fd
DL
76362000-07-20 Dave Love <fx@gnu.org>
7637
7638 * ccl.c (Fccl_execute_on_string): Don't check xmalloc return. Use
7639 xfree, not free.
7640
48c14970
EZ
76412000-07-20 Eli Zaretskii <eliz@is.elta.co.il>
7642
7643 * msdos.c (help_echo_window): New variable.
7644 (syms_of_msdos): Initialize and staticpro it.
7645 (IT_note_mode_line_highlight): Set help_echo_window.
7646 (IT_note_mouse_highlight): Ditto.
7647 (dos_rawgetc): Store help_echo_window in the second event produced
7648 for HELP_EVENTs.
7649
7650 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight):
7651 Record the object that generated the help echo and the position of
7652 that object in help_echo_object and help_echo_pos. Record that
7653 some glyphs in a row are displayed in mouse-face.
7654 (IT_update_begin): Don't clear mouse highlight unless one of the
7655 enabled glyph rows is marked as being displayed in mouse-face.
7656 (dos_rawgetc): Generate 2 events for HELP_EVENT. Pass the object
7657 and position recorded in help_echo_object and help_echo_pos to the
7658 event queue.
7659 (IT_menu_display): Accept a new argument PN: the pane number of
7660 the current menu pane. Record the pane number and the item
7661 number of the item which has associated help string.
7662 (XMenuActivate): Update the prototype for help_callback in
7663 function declaration. Call IT_menu_display with the current menu
7664 pane number as an additional argument. Call help_callback with
7665 two additional arguments: the pane number and the item number of
7666 the menu item associated with the help text.
7667 (help_echo_object, help_echo_pos): New variables.
7668 (syms_of_msdos): Initialize them and staticpro help_echo_object.
7669
7670 * msdos.h (XMenuActivate): Update prototype.
7671
4279296d
GM
76722000-07-19 Gerd Moellmann <gerd@gnu.org>
7673
47db06aa
GM
7674 * xdisp.c (with_echo_area_buffer): Call FN with more arguments.
7675 Add some more prototypes.
7676
7677 * xterm.c, xterm.h: Add some more prototypes.
7678
7679 * lisp.h (Fnext_single_char_property_change): Add prototype.
7680
7681 * dispnew.c (direct_output_for_insert): Remove confusing
7682 outer local variable mouse_face_overwritten_p.
7683 (glyph_row_slice_p): Put in #ifdef GLYPH_DEBUG.
7684
4279296d
GM
7685 * alloc.c (allocate_string_data): Don't copy old string contents.
7686
670acd62
KH
76872000-07-19 Kenichi Handa <handa@etl.go.jp>
7688
7689 * coding.c (code_convert_region): Delete text properties before
7690 shrinking the conversion region.
7691
7cea38bc
GM
76922000-07-18 Gerd Moellmann <gerd@gnu.org>
7693
dc1cac59
GM
7694 * dispnew.c (update_text_area): Write the whole row if it
7695 has mouse-face in it.
7696
85a8aca9
GM
7697 * xfaces.c (face-alternative-font-family-alist): Remove
7698 DEFVAR_LISP; staticpro instead.
7699
34a7a267 7700 * xmenu.c (menu_help_callback): Call show_help_echo with
7cea38bc
GM
7701 new arguments.
7702
7703 * keyboard.c (show_help_echo): Add parameter WINDOW.
7704 (read_char): Call show_help_echo with window extracted from Lisp
7705 help event.
7706 (gen_help_event): Add parameter WINDOW.
7707
7708 * keyboard.h (show_help_echo, gen_help_event): Change prototypes.
7709
7710 * xterm.c (help_echo_window): New variable.
52283633 7711 (note_mouse_highlight, note_tool_bar_highlight): Set help_echo_window.
7cea38bc
GM
7712 (XTread_socket): Pass help_echo_window to gen_help_event.
7713 (syms_of_xterm): Initialize and staticpro help_echo_window.
7714
f8276b77
DL
77152000-07-18 Dave Love <fx@gnu.org>
7716
52283633 7717 * Makefile.in: Fix dependencies of blockinput.h on atimer.h, systime.h.
f8276b77 7718
088831a6
GM
77192000-07-18 Gerd Moellmann <gerd@gnu.org>
7720
3d6cd763
GM
7721 * alloc.c (allocate_string_data): If string had already data
7722 assigned, copy old contents to new string data.
7723
7724 * coding.c (syms_of_coding): Fix typo in spelling of variable
7725 `inhibit-iso-escape-detection'.
7726
088831a6
GM
7727 * alloca.c (free) [emacs && EMACS_FREE]: Define as EMACS_FREE.
7728
7729 * Makefile.in: Add dependencies on dispextern.h.
7730 (alloca.o): Don't define malloc and define EMACS_FREE instead of
7731 `free'; both can conflict with system header files.
7732
bc8a8d55
KH
77332000-07-18 Kenichi Handa <handa@etl.go.jp>
7734
7735 * charset.h (MAKE_CHAR): Return reasonable code even if CHARSET is
7736 undefined.
7737
069f5950
DL
77382000-07-18 Dave Love <fx@gnu.org>
7739
7740 * window.c (Fwindow_list): Declare arg `window'.
7741
aa96c820
KH
77422000-07-18 Kenichi Handa <handa@etl.go.jp>
7743
7744 * coding.c (setup_coding_system): Don't override the explicitly
7745 specified designations.
7746
06be8d32
MB
77472000-07-15 Miles Bader <miles@gnu.org>
7748
7749 * editfns.c (char_property_eq, char_property_stickiness): Renamed
7750 from `text_property_eq' and `text_property_stickiness', respectively.
7751 (find_field, Fconstrain_to_field, char_property_eq)
7752 (char_property_stickiness): Changed to call char-property functions
7753 instead of text-property-only ones.
7754
7755 * textprop.c (Fnext_single_char_property_change): Made a subr (was
7756 `next_single_char_property_change'). Do more error checking, and
7757 cleanup limit behavior.
7758 (Fprevious_single_char_property_change): New function.
7759 (syms_of_textprop): Initialize new subrs.
7760
7761 * xdisp.c (display_prop_end, invisible_text_between_p):
7762 Call Fnext_single_char_property_change instead of
7763 next_single_char_property_change.
7764
3fddcdc3
JR
77652000-07-15 Jason Rumney <jasonr@gnu.org>
7766
7767 * w32menu.c (w32_menu_show): Call free_menubar_widget_value_tree
7768 after menu is finished with.
7769 (add_menu_item): Only consider wv->title as a menu title.
7770 (w32_menu_display_help): Add OBJECT and POS to show_help_echo.
7771
7772 * w32fns.c (w32_wnd_proc) [WM_DRAW_ITEM]: Do not try to draw a
7773 null title.
7774 (FONT_REGEXP): Remove unused macro, and its sub-components.
7775 (syms_of_w32fns): Replace underscore in w32-enable-synthesized-fonts.
7776
7777 * w32term.c (help_echo_object, help_echo_pos): New variables.
7778 (note_mode_line_highlight): Store additional information about the
7779 help-echo in help_echo_object and help_echo_pos. Check both
7780 `local-map' and `keymap' properties for changing the cursor
7781 (note_mouse_highlight): Store additional information about the
7782 help-echo in help_echo_object and help_echo_pos.
7783 (note_tool_bar_highlight): Set help_echo_object to nil and
7784 help_echo_pos to -1.
7785 (w32_read_socket): Use gen_help_event instead of filling
7786 input_events manually.
7787 (syms_of_w32term): Staticpro help_echo_object.
7788 (x_update_window_end): Add parameter MOUSE_FACE_OVERWRITTEN_P. If
52283633 7789 set, arrange for a mouse-highlight redisplay in XTframe_up_to_date.
3fddcdc3
JR
7790 (x_clear_mouse_face): New function.
7791 (w32_redisplay_interface): Add pointer to x_clear_mouse_face.
7792 (x_update_window_begin): No need to turn off the mouse
7793 highlight here.
7794 (show_mouse_face): Set the mouse_face_p flag of glyph rows
52283633 7795 depending on whether they contain glyphs highlighted in mouse-face.
3fddcdc3
JR
7796 (x_fill_stretch_glyph_string): Consume runs of stretch
7797 glyphs instead of a single one.
7798 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
7799 with new argument list.
7800 (x_set_glyph_string_gc): Make sure the face's GC is valid.
7801 (x_append_glyph, x_append_composite_glyph)
7802 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
7803 changes in struct glyph starting 1999-12-27. See comments for
7804 xterm.c on 2000-07-05.
7805
178c5d9c
SS
78062000-07-14 Sam Steingold <sds@gnu.org>
7807
7808 * xfaces.c (realize_x_face): Fix the last patch:
7809 check `default_face' before dereferencing.
7810
6fe533f6
DL
78112000-07-14 Dave Love <fx@gnu.org>
7812
069f5950 7813 * syntax.c (back_comment): Add null default in switch (for pcc).
6fe533f6 7814
dd7b81cf
KH
78152000-07-14 Kenichi Handa <handa@etl.go.jp>
7816
0693904a 7817 * xfaces.c (realize_x_face): Make fontset using the base of the
178c5d9c 7818 default_face's fontset, not using the default fontset.
0693904a 7819
dd7b81cf
KH
7820 * coding.c (inhibit_iso_escape_detection): New variable.
7821 (syms_of_coding): Make it a Lisp variable.
7822 (detect_coding_iso2022): If inhibit_iso_escape_detection is
7823 nonzero, ignore ISO2022's escape sequence.
7824
d5aa31d8
GM
78252000-07-14 Gerd Moellmann <gerd@gnu.org>
7826
e5acf0ca
GM
7827 * alloca.c (malloc) [emacs]: Define as xmalloc.
7828
bd23a692
GM
7829 * xfns.c (Fx_show_tip): If frame parameters contain a position,
7830 use that instead of the mouse position. Add parameters DX and DY.
7831
7832 * dispextern.h (Fx_show_tip): Adjust number of parameters
7833 in prototype.
7834
9662da0b
GM
7835 * keyboard.c (show_help_echo): Add parameters OBJECT and POS.
7836 if HELP is a function, call it with OBJECT and POS as parameters
7837 to get the help to display.
7838 (gen_help_event, kbd_buffer_store_help_event): New functions.
7839 (kbd_buffer_get_event): Construct the Lisp help-event differently.
7840 (read_char): Call show_help_echo with new parameters.
7841
178c5d9c 7842 * keyboard.h (gen_help_event, kbd_buffer_store_help_event):
9662da0b
GM
7843 Add prototypes.
7844
7845 * xterm.c (help_echo_object, help_echo_pos): New variables.
7846 (note_mode_line_highlight): Store additional information about the
7847 help-echo in help_echo_object and help_echo_pos. Check both
7848 `local-map' and `keymap' properties for changing the cursor
7849 (note_mouse_highlight): Store additional information about the
7850 help-echo in help_echo_object and help_echo_pos.
7851 (note_tool_bar_highlight): Set help_echo_object to nil and
7852 help_echo_pos to -1.
7853 (XTread_socket): Use gen_help_event instead of filling
7854 input_events manually.
7855 (syms_of_xterm): Staticpro help_echo_object.
7856
7857 * xmenu.c (menu_highlight_callback): Use
7858 kbd_buffer_store_help_event instead of setting up and input_event
7859 structure manually.
7860
7861 * xdisp.c (eval_form): GCPRO argument sexpr.
7862 (call_function): New function.
7863 (handle_single_display_prop): Use call_function and FUNCTIONP
7864 instead of checking whether if font_height is a symbol and
7865 using eval_form.
7866
7867 * eval.c (internal_condition_case_2): New function.
7868
7869 * lisp.h (FUNCTIONP): New macro.
7870 (internal_condition_case_2, call_function): Add prototypes.
7871
d5aa31d8
GM
7872 * xterm.c (construct_mouse_click, x_scroll_bar_to_input_event)
7873 (x_scroll_bar_handle_click, SET_SAVED_MENU_EVENT, XTread_socket):
7874 Always set `arg' member of input_events.
7875 (construct_menu_click): Unused function removed.
7876
7877 * msdos.c (dos_rawgetc): Always set `arg' member of input_events.
7878
7879 * w32term.c (construct_mouse_click, construct_mouse_wheel)
7880 (construct_drag_n_drop, x_scroll_bar_handle_click)
7881 (w32_read_socket): Always set `arg' member of input_events.
7882
7883 * keyboard.c (show_help_echo): Use eval_form. Add comment.
7884
7885 * lisp.h (eval_form): Add prototype.
7886
7887 * xdisp.c (eval_form): Make it externally visible.
7888
0f1a9b23
GM
78892000-07-13 Gerd Moellmann <gerd@gnu.org>
7890
7891 * xterm.c (x_handle_tool_bar_click): Store the frame in the
7892 frame_or_window slot of TOOL_BAR_EVENT input events instead of
7893 consing. For prefix events, store the frame in the `arg' slot of
7894 the event, otherwise store the key there.
7895 (XTread_socket): Instead of consing, use the frame_or_window slot
52283633 7896 of HELP_EVENTs for the frame, and the `arg' slot for the help string.
0f1a9b23
GM
7897
7898 * xmenu.c (menu_highlight_callback): Store help string in the
7899 `arg' member of the input event; don't cons.
7900 (menubar_selection_callback): Use the `arg' slot of input events
7901 to queue additional information, instead of consing.
7902
7903 * msdos.c (dos_rawgetc): Adapt to change of HELP_EVENTs.
7904
7905 * w32term.c (w32_handle_tool_bar_click): Adapt to changes in
7906 TOOL_BAR_EVENTs.
7907 (w32_read_socket): Adapt to changes in HELP_EVENTs.
7908
7909 * w32menu.c (menubar_selection_callback): Use the `arg' slot of
7910 input events to queue additional information, instead of consing.
7911
7912 * keyboard.c (kbd_buffer_gcpro): Renamed from
7913 kbd_buffer_frame_or_window. Now used for all Lisp objects
7914 referenced from the input queue.
7915 (kbd_buffer_store_event): Always use structure assignment for
7916 copying input events. Record all Lisp objects referenced from
7917 events in kbd_buffer_gcpro.
7918 (kbd_buffer_get_event): Construct Lisp `help-echo' events
7919 differently from input events. Test for prefix menu_bar_events
7920 and TOOL_BAR_EVENTs differently. Reset all slots used by an input
7921 event in kbd_buffer_gcpro to nil.
7922 (make_lispy_event) <TOOL_BAR_EVENT>: Treat an input event whose
7923 frame_or_window is equal to its arg member as prefix events.
7924 (stuff_buffered_input): Reset all slots in kbd_buffer_gcpro
7925 used by an input event to nil.
7926 (init_keyboard): Use two times the size of the input queue
7927 for kbd_buffer_gcpro.
7928 (syms_of_keyboard): Likewise.
7929
52283633
SM
7930 * emacs.c (handle_USR2_signal, handle_USR1_signal):
7931 Use USER_SIGNAL_EVENT.
0f1a9b23
GM
7932
7933 * termhooks.h (struct input_event): Add member `arg'.
7934 (MENU_BAR_EVENT): Renamed from menu_bar_event.
7935 (USER_SIGNAL_EVENT): Renamed from user_signal.
7936
7937 * xfaces.c (ASET): Remove definition.
7938
7939 * lisp.h (AREF, ASET, ASIZE): New macros.
7940
7941 * fontset.c (AREF, ASIZE): Remove definitions.
7942
7943 * fns.c (AREF): Remove definition.
178c5d9c 7944
0f1a9b23
GM
7945 * composite.c (AREF): Remove definition.
7946
712eaef2
GM
79472000-07-12 Gerd Moellmann <gerd@gnu.org>
7948
d8ee7803
GM
7949 * dispnew.c (redraw_overlapped_rows): Add missing local.
7950 (scrolling_window): Remove debug code.
7951
712eaef2
GM
7952 * xdisp.c (try_window_reusing_current_matrix, try_window_id):
7953 Before scrolling, turn off a mouse-highlight in the window
7954 being scrolled.
7955
7956 * xterm.c (x_update_window_end): Add parameter
7957 MOUSE_FACE_OVERWRITTEN_P. If set, arrange for a mouse-highlight
7958 redisplay in XTframe_up_to_date.
7959 (x_clear_mouse_face): New function.
7960 (x_redisplay_interface): Add pointer to x_clear_mouse_face.
7961
7962 * dispnew.c (make_current): Preserve the mouse_face_p flag of the
7963 current glyph row.
7964 (update_window_line): Add parameter MOUSE_FACE_OVERWRITTEN_P. Set
7965 it when any row is written to that contains glyphs highlighted in
7966 mouse-face.
7967 (update_window): Call the window update end hook with new
7968 parameter MOUSE_FACE_OVERWRITTEN_P.
7969 (direct_output_for_insert): Give up if row contains mouse-face.
7970
7971 * dispextern.h (struct redisplay_interface): Add parameter
7972 MOUSE_FACE_OVERWRITTEN_P to update_window_end_hook function.
7973 (clear_mouse_face): New function pointer member.
7974
02010917
SM
79752000-07-11 Stefan Monnier <monnier@cs.yale.edu>
7976
7977 * syntax.c (back_comment): Use one switch rather than a few `if's.
7978 Obey open_paren_in_column_0_is_defun_start.
7979 When reverting to the `slow' method, try to nicely handle the case
7980 of nested comments by checking that the comment-starter we found
7981 does indeed match the comment-ender.
7982 (scan_sexps_forward, scan_sexps_forward):
7983 Ignore excessive opening parenthesis rather than throwing an error.
7984
d76c03ea
GM
79852000-07-11 Gerd Moellmann <gerd@gnu.org>
7986
7987 * doc.c (Fsubstitute_command_keys): Handle case that a GC
7988 in Fwhere_is_internal or get_keymap_1 relocates string contents.
7989
7990 * dispnew.c (direct_output_forward_char): Give up if currently
7991 displaying a message instead of the minibuffer contents.
7992
7993 * xterm.c (x_update_window_begin): No need to turn off the mouse
7994 highlight here.
7995 (show_mouse_face): Set the mouse_face_p flag of glyph rows
52283633 7996 depending on whether they contain glyphs highlighted in mouse-face.
d76c03ea
GM
7997
7998 * dispnew.c (row_equal_p): Add parameter MOUSE_FACE_P. If set,
7999 compare the mouse_face_p flags of both rows.
8000
8001 * dispextern.h (struct glyph_row): Add flag mouse_face_p.
8002
d55ead18
EZ
80032000-07-11 Eli Zaretskii <eliz@is.elta.co.il>
8004
8005 * keyboard.c (show_help_echo): Accept additional parameter
8006 ok_to_overwrite_keystroke_echo.
8007 (read_char): Call show_help_echo with a zero
8008 ok_to_overwrite_keystroke_echo argument.
52283633 8009 * keyboard.h (show_help_echo): Update prototype of show_help_echo.
d55ead18
EZ
8010 * xmenu.c (menu_help_callback): Call show_help_echo with non-zero
8011 ok_to_overwrite_keystroke_echo argument.
8012 * w32menu.c (w32_menu_display_help): Call show_help_echo with
8013 non-zero ok_to_overwrite_keystroke_echo argument.
8014
df75b1a3
GM
80152000-07-10 Gerd Moellmann <gerd@gnu.org>
8016
4b92c49a
GM
8017 * xdisp.c (try_window_id): If changes are all below what is
8018 displayed in the window, and point is in the window, we still
8019 might have to find point on the display.
8020
8021 * xterm.c (x_fill_stretch_glyph_string): Consume runs of stretch
8022 glyphs instead of a single one.
8023 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
8024 with new argument list.
8025 (x_set_glyph_string_gc): Make sure the face's GC is valid.
8026
df75b1a3
GM
8027 * keymap.c (get_keymap_1): Add comment that this function can GC.
8028 (where_is_internal_2, where_is_internal_1): Add GCPROs, add
8029 comment that functions can GC.
8030 (Fset_keymap_parent): GCPRO arg KEYMAP.
8031
4314cf3e
EZ
80322000-07-10 Eli Zaretskii <eliz@is.elta.co.il>
8033
8034 * msdos.c (XMenuActivate): After exiting the menu, restore the
8035 echo area message and erase it.
8036
ab49ce15
KH
80372000-07-10 Kenichi Handa <handa@etl.go.jp>
8038
8039 * fontset.c (Ffontset_info): Make the return value more compatible
8040 with that of Emacs 20.
8041
090a072f
GM
80422000-07-07 Gerd Moellmann <gerd@gnu.org>
8043
8044 * eval.c (Fsignal): Handle case that backtrace_list is null.
8045
f92de4a6
KH
80462000-07-07 Kenichi Handa <handa@etl.go.jp>
8047
8048 * ccl.c (Fccl_execute): Typo fixed.
8049
dd8888a1
GM
80502000-07-06 Gerd Moellmann <gerd@gnu.org>
8051
e5c81191 8052 * window.c (window_loop): Add missing gcpro1 local variable.
178c5d9c 8053
dd8888a1
GM
8054 * window.c (Fwindow_list): Reverse list at the end.
8055 (candidate_window_p): Add parameter OWINDOW. ALL_FRAMES nil
8056 means allow windows on OWINDOW's frame, only.
8057 (window_loop): Simplified; use Fwindow_list.
8058
8059 * Makefile.in (TAGS-LISP): Don't pass `$(lispsource)' to make.
8060
485266d0
GM
80612000-07-05 Gerd Moellmann <gerd@gnu.org>
8062
8063 * xterm.c (XTread_socket): Increment handling_signal at the start,
8064 decrement it at the end.
8065
8066 * eval.c (handling_signal): New variable.
8067 (Fsignal): Abort if handling_signal is non-zero.
8068
8069 * lisp.h (handling_signal): External declaration.
178c5d9c 8070
485266d0
GM
8071 * s/freebsd.h (WAITTYPE, WRETCODE): Put in #if 0.
8072
80fcd514
KR
80732000-07-05 Ken Raeburn <raeburn@gnu.org>
8074
8075 Sound support for NetBSD through "Linux emulation" support:
8076 * config.in (HAVE_SOUNDCARD_H): Undef.
8077 (HAVE_SOUND): Define if HAVE_SOUNDCARD_H.
8078 * Makefile.in (LIBSOUND): New variable.
8079 (LIBES): Include it.
52283633
SM
8080 * sound.c [HAVE_SOUNDCARD_H]: Include <sys/ioctl.h> and <soundcard.h>.
8081 (DEFAULT_SOUND_DEVICE): Define to "/dev/dsp" if not defined elsewhere.
80fcd514
KR
8082 (vox_open): Use DEFAULT_SOUND_DEVICE.
8083 * s/netbsd.h (DEFAULT_SOUND_DEVICE): Define to /dev/audio.
8084
d5c5cddd
GM
80852000-07-05 Gerd Moellmann <gerd@gnu.org>
8086
8087 * print.c (print_error_message): If Vsignaling_function is set,
8088 show it in *Messages*.
8089
8090 * lisp.h (Vsignaling_function): External declaration.
8091
8092 * eval.c (Vsignaling_function): New variable.
8093 (Fsignal): Compute it.
8094 (syms_of_eval): Staticpro it.
8095
65171e3a
DL
80962000-07-05 Dave Love <fx@gnu.org>
8097
8098 * syswait.h: Use the autoconf recommended approach. Old code
8099 #if'd out in case we need to revert.
8100
178c5d9c 8101 * config.in (HAVE_SYS_WAIT_H): Added.
65171e3a 8102
e2c46326
AI
81032000-07-05 Andrew Innes <andrewi@gnu.org>
8104
8105 * vm-limit.c (check_memory_limits) [REL_ALLOC]: Use real_morecore
8106 when non-NULL instead of __morecore, to take account of buffer
8107 memory. This also solves a problem with spurious memory warnings
8108 on Windows.
8109
8110 * ralloc.c: Make real_morecore non-static.
8111
8112 * eval.c (internal_condition_case): Comment out abort if
8113 interrupt_input_blocked is not zero.
8114
8115 * makefile.nt: Add support for `bootstrap' and related targets.
8116 Include minimal debug info in emacs.exe in release build.
8117 Remove all dependencies on lisp.h, and fixup some others.
8118
8119 * w32.c (init_environment): Install code from 20.7 for providing
8120 default values for environment variables, based on the
8121 executable's own location.
52283633 8122 (map_w32_filename): Handle filenames that are longer than MAX_PATH.
e2c46326
AI
8123 (sys_socket): Install socket inheritance bug fix from 20.7.
8124
8125 * alloca.c [emacs]: Include lisp.h (needed by atimer.h included
8126 here via blockinput.h).
8127
a027a91b
SM
81282000-07-05 Stefan Monnier <monnier@cs.yale.edu>
8129
e4b31601
SM
8130 * w32menu.c (w32_menu_display_help):
8131 * xmenu.c (menu_help_callback): Use show_help_echo.
a027a91b
SM
8132
8133 * keyboard.h (show_help_echo): Declare.
8134
8135 * keyboard.c (show_help_echo): New function, extracted from read_char.
8136 Feval its `msg' argument if it's a cons cell.
8137 (read_char): Use it.
4cf8d9d5 8138 (follow_key): Pass `autoload' to get_keyelt.
a027a91b 8139
178c5d9c 8140 * xterm.c (note_mode_line_highlight, note_mouse_highlight)
a027a91b 8141 (note_tool_bar_highlight, XTread_socket):
178c5d9c 8142 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight)
a027a91b
SM
8143 (dos_rawgetc):
8144 * w32term.c (note_mode_line_highlight, note_mouse_highlight)
8145 (note_tool_bar_highlight, w32_read_socket):
8146 Do not gratuitously ignore non-string `help-echo' properties.
8147
88d75730
GM
81482000-07-05 Gerd Moellmann <gerd@gnu.org>
8149
969f7e79
GM
8150 * eval.c (Feval): Put check for interrupt_input_block in #if 0.
8151
71201b00
GM
8152 * window.c (delete_all_subwindows): Reset Vwindow_list.
8153
88d75730
GM
8154 * xterm.c (x_append_glyph, x_append_composite_glyph)
8155 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
8156 changes in struct glyph starting 1999-12-27. Some bit-fields of
8157 struct glyph were not set, which made glyphs unequal when compared
8158 with GLYPH_EQUAL_P. Redisplay outputs such glyphs, and flickering
8159 effects were the result. This also depended on the contents of
8160 memory returned by xmalloc. If flickering happens again, activate
8161 the code in clear_glyph_row that's in #if 0. If the flickering is
52283633 8162 gone with that, chances are that it is caused by something similar.
88d75730
GM
8163
8164 * dispnew.c (clear_glyph_row): Add debug code in #if 0.
178c5d9c 8165
88d75730
GM
8166 * dispextern.h: Add some comments.
8167
8168 * window.c (add_window_to_list): Add parameter LIST.
8169 (window_list): Order list so that, for each frame, windows are
8170 in canonical order, and so that frames appear in the list in
8171 the order given by Vframe_list.
8172 (next_window): Reverse the handling of NEXT_P.
8173
53654733
GM
81742000-07-04 Gerd Moellmann <gerd@gnu.org>
8175
87efd256
GM
8176 * window.c (Vwindow_list): New variable.
8177 (make_window, delete_window): Set Vwindow_list to nil.
8178 (check_window_containing): New function.
8179 (window_from_coordinates): Rewritten.
8180 (add_window_to_list, window_list, candidate_window_p)
8181 (decode_next_window_args, next_window): New functions.
52283633 8182 (Fnext_window, Fprevious_window): Rewritten in terms of next_window.
87efd256
GM
8183 (Fwindow_list): New function.
8184 (Fother_window): Cleaned up.
8185 (foreach_window): Add a longer "variable argument list". Let
8186 callback function return 0 to indicate that cycling over windows
8187 should stop.
8188 (foreach_window_1): Likewise.
8189 (freeze_window_start): Return int.
8190 (init_window): New function.
8191 (syms_of_window): Staticpro Vwindow_list and defsubr Swindow_list.
8192
8193 * emacs.c (handle_USR1_signal, handle_USR2_signal) Clear
8194 input_event with bzero.
8195 (main): Call init_window.
8196
53654733
GM
8197 * keymap.c (get_keyelt): Temporarily inhibit GC while evaluating
8198 a menu filter.
8199
4a8c194f
KH
82002000-07-04 Kenichi Handa <handa@etl.go.jp>
8201
8202 * composite.h (make_composition_value_copy): Extern it.
8203
8204 * composite.c (make_composition_value_copy): New function.
8205
8206 * editfns.c (Fformat): While copying text properties, make each
8207 composition property value a copy.
8208
8209 * fns.c (concat): While copying text properties, make each
8210 composition property value a copy.
8211
831a6cb0
GM
82122000-07-03 Gerd Moellmann <gerd@gnu.org>
8213
2f516940
GM
8214 * m/macppc.h (LINKER, LD_SWITCH_MACHINE) [LINUX]: Define.
8215
178c5d9c 8216 * fns.c (sweep_weak_table): Mark only objects that are not
aee625fa
GM
8217 marked already.
8218
831a6cb0
GM
8219 * frame.c (next_frame, prev_frame): If MINIBUF is a window,
8220 include those frames as candidates which have their focus
8221 redirected to the minibuffer frame.
8222
d9c4f922
SM
82232000-07-03 Stefan Monnier <monnier@cs.yale.edu>
8224
8225 * fns.c (Fputhash): Return `value' rather than nil.
8226
3780bc22
GM
82272000-06-30 Gerd Moellmann <gerd@gnu.org>
8228
97d176db
GM
8229 * frame.c (next_frame): Don't check focus redirection in case
8230 MINIBUF is a window. Doing so excludes frames using MINIBUF
3780bc22
GM
8231 unless their focus is redirected, which contradicts the
8232 specification of next-frame, and leads to infinite loops in
8233 certain situations when cycling through windows with next-window.
8234
dca9961d
KH
82352000-06-30 Kenichi Handa <handa@etl.go.jp>
8236
8237 * coding.c (code_convert_region): Even if the length of text is
8238 zero, try to convert it if coding->type is coding_type_ccl.
8239 (decode_coding_string, encode_coding_string): Likewise.
8240
d5483ab1
GM
82412000-06-28 Gerd Moellmann <gerd@gnu.org>
8242
af5c25e1 8243 * xdisp.c (try_window_reusing_current_matrix): Don't try to reuse
97d176db 8244 the display if windows_or_buffers_changed.
af5c25e1
GM
8245
8246 * dispnew.c (struct row_entry): New structure.
8247 (row_entry_pool, row_entry_pool_size, row_entry_idx, row_table)
8248 (row_table_size, old_lines, new_lines, old_lines_size)
8249 (new_lines_size, run_pool, runs_size, runs): New variables.
8250 (add_row_entry): New function.
8251 (scrolling_window): Use data structures allocated with xmalloc and
97d176db 8252 held in global variables, instead of allocating them with alloca and
af5c25e1
GM
8253 holding them in local variables. Use a larger hash table whose
8254 size depends on glyph matrix sizes. Don't use bzero to clear the
8255 hash table; instead, clear used slots only.
8256
8257 * fns.c (next_almost_prime): Make it externally visible.
8258
8259 * lisp.h (next_almost_prime): Add prototype.
8260
d5483ab1
GM
8261 * s/isc4-0.h (sigunblock): Define.
8262
8263 * s/sco5.h (sigunblock): Define.
8264
93e40f40
DL
82652000-06-27 Dave Love <fx@gnu.org>
8266
8267 * s/osf1.h (C_SWITCH_SYSTEM, LIBS_SYSTEM): Revert last change
8268 (moved to osf5-0.h).
8269 [!NOT_C_CODE]: Protect string.h stuff.
8270
8271 * s/osf5-0.h (C_SWITCH_SYSTEM, WAIT_USE_INT, SYS_SIGLIST_DECLARED)
8272 (sys_siglist, NSIG): Definitions moved here from osf1.h.
8273
3c4b7685
GM
82742000-06-27 Gerd Moellmann <gerd@gnu.org>
8275
97d176db 8276 * xdisp.c (resize_mini_window): Subtract the extra line spacing
3c4b7685
GM
8277 below the last line from the needed window height.
8278
32cad0aa
SM
82792000-06-26 Stefan Monnier <monnier@cs.yale.edu>
8280
8281 * fns.c (Fplist_member): Renamed from Fwidget_plist_member.
8282 (Fwidget_get): Use it.
8283 (syms_of_fns): Defsubr it.
8284
2c69ced2
GM
82852000-06-26 Gerd Moellmann <gerd@gnu.org>
8286
178c5d9c 8287 * xterm.c (xim_initialize) [!USE_XIM]: Don't set up the
1d36487c
GM
8288 display info for XIM.
8289 (xim_open_dpy): Likewise.
8290 (xim_close_dpy): Don't free the display info's XIM.
8291
8292 * xfns.c (x_window) [!USE_XIM]: Don't call create_frame_ic.
8293
8294 * config.in (USE_XIM): New define.
8295
3fc720e4
GM
8296 * keymap.c (get_keyelt): For menu-items containing a `:filter
8297 FILTER', apply FILTER to the menu-item's definition to get the
8298 real definition to use.
8299
8300 * lisp.h (QCfilter): External declaration.
8301
2c69ced2
GM
8302 * xfns.c (Fimage_size): New function.
8303 (syms_of_xfns): Defsubr it.
8304
f978b2a2
AS
83052000-06-26 Andreas Schwab <schwab@suse.de>
8306
8307 * coding.c (decode_coding_string): Re-fetch STRING_BYTES after
8308 Fstring_as_unibyte.
8309
94cc7892
DL
83102000-06-25 Dave Love <fx@gnu.org>
8311
52283633 8312 * term.c [!HAVE_TERMCAP_H]: Declare tputs, tgetent, tgetflag, tgetnum.
94cc7892
DL
8313
8314 * Makefile.in (blockinput.h): Depend on atimer.h.
8315 (atimer.h): Depend on systime.h.
8316
52283633 8317 * blockinput.h: Protect against multiple inclusion. Include atimer.h.
94cc7892 8318
52283633 8319 * atimer.h: Protect against multiple inclusion. Include systime.h.
94cc7892
DL
8320
8321 * lisp.h (swap_in_global_binding): Declare.
8322
b8c24556
KR
83232000-06-24 Ken Raeburn <raeburn@gnu.org>
8324
8325 * process.c (Fopen_network_stream): Turn off atimers for duration
8326 of call to connect. (Patch from Gerd.)
8327
8cf8560b
DL
83282000-06-23 Dave Love <fx@gnu.org>
8329
511c7541
DL
8330 * ralloc.c: Maybe include unistd.h
8331
8cf8560b
DL
8332 * emacs.c (setgrp): Undefine before defining.
8333 (malloc_warning, set_time_zone_rule, index): Prototype.
8334
8335 * systime.h (EMACS_GET_TIME) [!GETTIMEOFDAY_ONE_ARGUMENT]: Use
8336 HAVE_STRUCT_TIMEZONE.
8337
8338 * s/osf1.h: Move string.h hack here from alpha.h and make it
8339 conditional.
8340 (C_SWITCH_SYSTEM): Use _OSF_SOURCE, not -BSD, which clashes with
8341 _XOPEN_SOURCE.
8342 (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist, NSIG): Define.
8343 (SOCKLEN_TYPE): Don't define.
8344
8345 * m/alpha.h: Remove string.h hack.
8346
8347 * s/osf5-0.h: New file.
8348
8349 * filelock.c: Use feature tests for fcntl.h, string.h. Don't
8350 include time.h, done by systime.h.
8351 [__FreeBSD__]: Remove redundant includes.
8352
3fc720e4 8353 * callproc.c (setpgrp): Undefine before defining.
8cf8560b
DL
8354 (delete_temp_file): Return Qnil to avoid warning.
8355
8356 * config.in (HAVE_TERM_H, HAVE_STRUCT_TIMEZONE): Add.
8357
8358 * xfaces.c: Include fontset.h dependent on HAVE_WINDOW_SYSTEM, not
8359 HAVE_X_WINDOWS.
8360
8361 * fontset.h (free_face_fontset): Renamed from fs_free_face_fontset.
8362
8363 * composite.h (compose_text): Declare.
8364
8365 * xterm.c: Don't include sys/types.h unconditionally. Don't
8366 protect its inclusion with !USG (following xmenu.c).
8367
ea055732
GM
83682000-06-23 Gerd Moellmann <gerd@gnu.org>
8369
8370 * xfns.c (x_create_tip_frame): Initialize frame's colors like
8371 in x_create_frame.
8372
74b01b80
EZ
83732000-06-23 Eli Zaretskii <eliz@is.elta.co.il>
8374
8375 * coding.c (decode_eol_post_ccl): Special handling for undecided
8376 and inconsistent EOL types.
8377
64f3a166
GM
83782000-06-22 Gerd Moellmann <gerd@gnu.org>
8379
16cf31f7
GM
8380 * xrdb.c (x_load_resources): Add default resource for scroll bar's
8381 trough color and main window's background color.
8382
52283633 8383 * xfns.c (Fx_file_dialog) [HAVE_MOTIF_2_1]: Handle events differently.
16cf31f7
GM
8384
8385 * xterm.h (Xt_app_con): External declaration.
8386
8387 * widget.c (EmacsFrameRealize): Fix typo.
178c5d9c 8388
486a103d
GM
8389 * widget.c (EmacsFrameRealize): Remove SubstructureRedirectMask.
8390
64f3a166
GM
8391 * xdisp.c (handle_stop): Initialize it->add_overlay_start to zero.
8392 (handle_invisible_prop): Record the start of invisible text in
8393 it->add_overlay_start.
8394 (struct overlay_entry): Add member `overlay'.
8395 (handle_overlay_change): Simplify.
8396 (next_overlay_string): After having processed overlay strings at the
8397 end of the buffer, record that fact in
8398 it->overlay_strings_at_end_processed_p.
8399 (compare_overlay_entries): If before- and after-strings come
8400 from the same overlay, let before-strings come first.
8401 (RECORD_OVERLAY_STRING): Record the overlay that strings come from.
8402 (load_overlay_strings): Take it->add_overlay_start into account
8403 when adding overlay strings.
8404
8405 * dispextern.h (struct it): Add member add_overlay_start.
8406
bb746ea6
DL
84072000-06-22 Dave Love <fx@gnu.org>
8408
8409 * s/isc3-0.h (C_SWITCH_SYSTEM): Define _XOPEN_SOURCE=500.
8410
8411 * s/gnu-linux.h (C_SWITCH_SYSTEM): Don't define _XOPEN_SOURCE here.
8412
a8f573f3
KH
84132000-06-22 Kenichi Handa <handa@etl.go.jp>
8414
8415 * ccl.c (ccl_driver) <CCL_End>: Decrement stack_idx only when it
8416 is greater than 0.
8417
9f2bbc92
DL
84182000-06-21 Dave Love <fx@gnu.org>
8419
178c5d9c 8420 * Makefile.in (GETLOADAVG_OBJ): Removed -- LIBOBJS does it.
9f2bbc92 8421
3ee5041c
SM
84222000-06-21 Stefan Monnier <monnier@cs.yale.edu>
8423
8424 * syntax.c (back_comment): Simplify string-parity counting (with
8425 the added benefit of handling multiple string-styles as long as
8426 they are not intertwined).
8427 Jump to the slow code as soon as a comment starter is found in
8428 a "string_lossage" position. Fixes the case: " /* " /* " */.
8429
4c343001
DL
84302000-06-21 Dave Love <fx@gnu.org>
8431
8432 * Makefile.in: Use GETLOADAVG_LIBS.
8433
8434 * config.in: Add HAVE_FCNTL_H, _FILE_OFFSET_BITS,
8435 _LARGEFILE_SOURCE, _LARGE_FILES, _XOPEN_SOURCE.
8436
e6365855
SM
84372000-06-20 Stefan Monnier <monnier@cs.yale.edu>
8438
8439 * syntax.c (describe_syntax): Recognize the `n'estable bit.
8440 (Fforward_comment, scan_lists):
8441 Check the comstyle of single-char comment-starters.
8442 (scan_sexps_forward): Don't try to recognize `half comment-enders' if
8443 we're just at the beginning of the comment (f.ex with (*) ... (*)).
d355bd8a
SM
8444 Check the comstyle of single-char comment-starters.
8445 Clarify control-flow around the Scomment case.
e6365855 8446
5700d2cc
DL
84472000-06-20 Dave Love <fx@gnu.org>
8448
d355bd8a
SM
8449 * fns.c (make_hash_table, maybe_resize_hash_table):
8450 Cast arg of next_almost_prime.
5700d2cc 8451
178c5d9c 8452 * tparam.c [emacs]: Include lisp.h.
5700d2cc
DL
8453
8454 * termcap.c [emacs]: Test HAVE_FCNTL_H, not USG5. Include lisp.h
8455 and unistd.h.
8456
4a27bdfb
GM
84572000-06-20 Gerd Moellmann <gerd@gnu.org>
8458
a61d762c 8459 * keyboard.c (adjust_point_for_property): Check if display
52283633 8460 property should be treated as intangible by looking at its value.
a61d762c 8461
178c5d9c 8462 * xdisp.c (single_display_prop_intangible_p)
a61d762c
GM
8463 (display_prop_intangible_p): New functions.
8464
8465 * dispextern.h (display_prop_intangible_p): Add prototype.
8466
8467 * xdisp.c (dump_glyph_row): Show type of glyph->object.
178c5d9c 8468
4a27bdfb
GM
8469 * s/isc4-0.h (sigblock): Redefined to pass a pointer as second
8470 argument to sigprocmask.
8471
8472 * s/sco5.h (sigblock): Redefined to pass a pointer as second
8473 argument to sigprocmask.
8474
8475 * syssignal.h (sigblock, sigunblock) [USG5_4]: Set
8476 sigprocmask_set, and pass a pointer to it to sigprocmask.
8477
8478 * sysdep.c (sigprocmask_set): New variable.
8479
8480 * fileio.c (make_temp_name): Don't use `%s' in string passed to
8481 report_file_error.
8482
427ec082
SS
84832000-06-20 Sam Steingold <sds@gnu.org>
8484
8485 * xrdb.c: Don't declare xmalloc, xrealloc.
8486
8972fe79 84872000-06-20 Stefan Monnier <monnier@cs.yale.edu>
8972fe79
SM
8488
8489 * regex.c (re_match, re_match_2): Protect calls to alloca (0).
8490 (re_comp): Cast gettext return value to avoid complaints when
8491 !HAVE_LIBINTL.
8492
074b6efe
DL
84932000-06-20 Dave Love <fx@gnu.org>
8494
52283633 8495 * m/stride.h, m/mips.h: Don't define HAVE_GETWD, HAVE_GETTIMEOFDAY.
f85c008a 8496
5700d2cc 8497 * m/ibmrt-aix.h: Don't declare HAVE_GETTIMEOFDAY, HAVE_VFORK.
f85c008a 8498
d355bd8a 8499 * m/ibmrs6000.h, m/ibmps2-aix.h, m/dpx2.h: Don't declare HAVE_GETWD.
f85c008a
DL
8500
8501 * m/alpha.h: Don't declare xmalloc, xrealloc.
8502
0af4f205
DL
8503 * s/ux4800.h: Don't declare GETTIMEOFDAY_ONE_ARGUMENT.
8504
8505 * s/usg5-4-2.h: Don't declare HAVE_GETWD, VFORK_RETURN_TYPE.
8506
8507 * s/umips.h: Don't declare HAVE_GETWD, HAVE_GETTIMEOFDAY.
8508
8509 * s/cxux.h, s/gnu-linux.h, s/iris3-6.h, s/irix3-3.h: Don't declare
8510 HAVE_GETWD.
8511
074b6efe
DL
8512 * keyboard.h (poll_for_input_1): Declare.
8513
8514 * getloadavg.c: Don't define NLIST_STRUCT (handled by configure).
8515
8516 * alloc.c (xmalloc, xrealloc, xfree): Define using POINTER_TYPE.
8517
8518 * doprnt.c: Don't declare xmalloc, xrealloc.
8519
8520 * lisp.h (x_set_tool_bar_lines, free_frame_xic, compose_text)
8521 (getenv, ctime, getwd): Removed.
8522 (xmalloc, xrealloc, xfree): Declare using POINTER_TYPE.
8523
8524 * xterm.h: Remove duplicate prototypes. Declare free_frame_xic,
8525 x_set_tool_bar_lines.
8526
8527 * config.in: Add HAVE_GETWD. Move some definitions above
8528 machine/system includes.
8529
68a5e97b
KH
85302000-06-20 Kenichi Handa <handa@etl.go.jp>
8531
95417e1e
KH
8532 * s/bsd386.h (HAVE_GETLOADAVG): Define it as 1.
8533
68a5e97b
KH
8534 * xfaces.c (font_list): Handle the case that REGISTRY doesn't
8535 contain information about ENCODING.
8536
8537 * fontset.c (FONTSET_ASCII): Use the first element of char table
8538 for an ASCII font, not defalt slot.
8539 (fontset_ref_via_base): If FONTSET doesn't contain information for
8540 C, try the default fontset.
8541 (make_fontset): Don't copy the default fontset.
8542 (fontset_font_pattern): Likewise.
8543 (accumulate_font_info): If ELT is nil, use the corresponding
8544 element in the default fontset.
8545
3b4fa1b2
DL
85462000-06-19 Dave Love <fx@gnu.org>
8547
943e731c
DL
8548 * syntax.c (Fparse_partial_sexp): Doc fix.
8549
8550 * regex.h: Test PROTOTYPES as well as __STDC__.
8551
3b4fa1b2
DL
8552 * unexalpha.c: Include errno.h, string.h, unistd.h. Don't declare
8553 errno, strerror. Put text after #endif in comment.
8554
52283633 8555 * xdisp.c (dump_glyph_matrix): Add `static' to declaration (for pcc).
3b4fa1b2
DL
8556
8557 * xterm.c (x_frame_of_widget): Likewise.
8558
cdf0357b
GM
85592000-06-19 Gerd Moellmann <gerd@gnu.org>
8560
8561 * abbrev.c (syms_of_abbrev): Set buffer_default's abbrev table
8562 to Vfundamental_mode_abbrev_table.
8563
8564 * alloc.c (mark_object) [GC_CHECK_MARKED_OBJECTS]: Check that no
8565 bogus objects are marked. This slows down GC by ~80 percent, but
8566 it might be worth trying when debugging GC-related problems.
8567 This feature requires conservative stack marking to be enabled.
8568
8569 * xterm.c (XTread_socket) <KeyPress>: In case XmbLookupString
8570 returns XLookupChars, reset `modifiers' to zero.
8571
998e9f8c
DL
85722000-06-19 Dave Love <fx@gnu.org>
8573
8574 * mktime.c: Unprotoized.
8575
18e21ce8 85762000-06-19 Richard Stallman <rms@gnu.org>
d1504184
GM
8577
8578 * data.c (set_internal): If variable is frame-local,
8579 store the new value immediately into the frame parameter alist.
8580
140c4ac6
KR
85812000-06-19 Ken Raeburn <raeburn@gnu.org>
8582
14358466
KR
8583 * xfns.c (jpeg_load): Fetch error-handling data first, then fill
8584 in the custom handler pointer.
8585
140c4ac6
KR
8586 * keyboard.c (follow_key, read_key_sequence): Use XUINT on key
8587 value, or checks for CHAR_META can fail when Lisp_Object is a
8588 union type.
8589 * keymap.c (get_keyelt): Likewise.
8590
10d7bf84
KH
85912000-06-19 Kenichi Handa <handa@etl.go.jp>
8592
8593 * ccl.h (struct ccl_program): New member eol_type.
8594 (struct ccl_spec): New member cr_carryover.
8595
8596 * ccl.c (CCL_WRITE_CHAR): Convert NL according to ccl->eol_type.
8597 (setup_ccl_program): Initialize ccl->eol_type to CODING_EOL_LF.
8598
8599 * coding.c (setup_coding_system) <4>: Reset member `cr_carryover'.
8600 (ccl_coding_driver): On encoding, initialize ccl->eol_type.
8601 (decode_eol_post_ccl): New function.
8602 (decode_coding): Don't detect EOL format here for CCL based coding
8603 systems.
8604 (decode_coding) <coding_type_ccl>: Handle carryovered CR. Call
8605 decode_eol_post_ccl after running the CCL program.
8606 (code_convert_region): Don't detect EOL format here for CCL based
8607 coding systems.
8608 (decode_coding_string): Likewise.
8609
52e386c2
KR
86102000-06-18 Ken Raeburn <raeburn@gnu.org>
8611
8612 * charset.c (update_charset_table): Use XINT on "iso_final_char"
8613 when treating it as an integer.
8614
8615 * coding.h (encode_coding_string): Declare.
8616
8617 * keyboard.c (read_key_sequence): Use XINT on "pos" when treating
8618 it as an integer.
8619
8620 * keymap.c (Fwhere_is_internal): Rename argument "keymap" to
8621 "xkeymap" to avoid shadowing the "enum map_type" value that needs
8622 to be passed to get_local_map.
8623
8624 * sound.c (Fplay_sound): Don't call make_number on
8625 Frun_hook_with_args count argument.
8626
8627 * xterm.c (x_send_scroll_bar_event): Fudge lisp object/integer
8628 for lisp objects in X event structure data field, when lisp
8629 objects are represented with unions.
8630 (x_scroll_bar_to_input_event): Ditto.
8631
b357b9d4
KR
86322000-06-16 Ken Raeburn <raeburn@gnu.org>
8633
8634 * xdisp.c (decode_mode_spec): In "no_value" case, do NUL
37d034d3
KR
8635 termination of string. Fix sense of test whether
8636 Vline_number_display_limit is an integer.
b357b9d4 8637
a871441d
GM
86382000-06-16 Gerd Moellmann <gerd@gnu.org>
8639
a9021acd
GM
8640 * xfaces.c (syms_of_xfaces) [DEBUG_X_COLORS]: Defsubr dump_colors
8641 only if HAVE_X_WINDOWS.
8642
6344985d
GM
8643 * keymap.c (describe_buffer_bindings): Add `\f\n' in front
8644 of titles.
8645
427ec082 8646 * dispnew.c (update_frame_1): Handle case that cursor vpos is
a871441d
GM
8647 out of bounds.
8648
228b083e
EZ
86492000-06-15 Eli Zaretskii <eliz@is.elta.co.il>
8650
8651 * unexec.c (toplevel): Fix last change, so as not to deprive MSDOS
8652 of its headers.
8653
c25b53a2
KH
86542000-06-15 Kenichi Handa <handa@etl.go.jp>
8655
8656 * coding.c (decode_coding_emacs_mule): Always set src_base at the
8657 start of the while loop.
8658
a6981b11
GM
86592000-06-15 Gerd Moellmann <gerd@gnu.org>
8660
e9924e52
GM
8661 * atimer.c (alarm_signal_handler): Add forward declaration.
8662
a6981b11
GM
8663 * data.c (set_internal): Remove debug code.
8664
25fa6deb
GM
86652000-06-14 Gerd Moellmann <gerd@gnu.org>
8666
dce6b995
GM
8667 * Makefile.in (bootstrap-temacs): Add `-I../src'.
8668
9f817ea4
GM
8669 * unexec.c (toplevel) [COFF]: Include coff.h.
8670
8671 * s/lynxos.h: New file.
8672
8673 * keymap.c (Fsingle_key_description): Enclose function key and
8674 event symbol names in angle brackets.
8675
8a4e3c0c
GM
8676 * xdisp.c (setup_echo_area_for_printing): Call
8677 message_log_maybe_newline if message_buf_print is not set.
8678
8679 * print.c (printchar, strout): Don't check message_buf_print
427ec082 8680 before calling setup_echo_area_for_printing because that
8a4e3c0c
GM
8681 function does something useful even when message_buf_print is
8682 already set.
8683
52283633
SM
8684 * xdisp.c (message_truncate_lines, Qmessage_truncate_lines):
8685 New variables.
25fa6deb
GM
8686 (ensure_echo_area_buffers): Initialize echo buffer's
8687 truncate lines setting to nil.
8688 (with_echo_area_buffer): Don't set the echo buffer's truncate
8689 lines setting here.
8a4e3c0c 8690 (set_message_1): Set it here instead, based on the value
25fa6deb
GM
8691 of message_truncate_lines.
8692 (resize_mini_window): Handle case that lines are truncated.
52283633
SM
8693 (syms_of_xdisp): Initialize Qmessage_truncate_lines.
8694 DEFVAR_BOOL message-truncate-lines.
25fa6deb
GM
8695
8696 * keyboard.c (read_char): Bind message-truncate-lines to t
8697 while displaying a help-echo.
8698
8699 * lisp.h (Qmessage_truncate_lines): External declaration.
8700
163dcff3
GM
87012000-06-13 Gerd Moellmann <gerd@gnu.org>
8702
1681ead6
GM
8703 * xdisp.c (Vline_number_display_limit): Renamed from
8704 line_number_display_limit.
8705 (syms_of_xdisp): Use DEFVAR_LISP for line-number-display-limit.
8706 Extend documentation string. Initialize
8707 Vline_number_display_limit to nil meaning no limit.
8708 (decode_mode_spec): Use Vline_number_display_limit with its new
8709 meaning.
8710
163dcff3
GM
8711 * xterm.c (x_check_font) [GLYPH_DEBUG]: Add prototype.
8712
18e21ce8 87132000-06-13 Richard Stallman <rms@gnu.org>
163dcff3
GM
8714
8715 * frame.c (Fmodify_frame_parameters): Doc fix.
427ec082 8716
163dcff3
GM
8717 * xfns.c (x_set_frame_parameters): Comment fix.
8718
8719 * frame.c (store_frame_param): Call swap_in_global_binding if the
8720 variable's current binding was chosen based on this frame.
8721
8722 * data.c (swap_in_global_binding): New function.
8723
a704139d
EZ
87242000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
8725
8726 * msdos.c (IT_write_glyphs): Don't use CODING_REQUIRE_ENCODING
8727 macro, instead AND with CODING_REQUIRE_ENCODING_MASK.
8728
9b6610db
EZ
87292000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
8730
8731 * msdos.h (EMACS_MSDOS_H): Renamed from MSDOS_H_.
8732
c68833d2
JR
87332000-06-12 Jason Rumney <jasonr@gnu.org>
8734
8735 * w32bdf.h (EMACS_W32BDF_H): Renamed from __W32BDF_H__
8736
8737 * w32.h (EMACS_W32_H): Renamed from _NT_H_
8738
8739 * w32gui.h (EMACS_W32GUI_H): Renamed from __W32GUI_H__
8740
8741 * w32inevt.h (EMACS_W32INEVT_H): Renamed from __NTINEVT_H__
8742
ed1056b3
GM
87432000-06-12 Gerd Moellmann <gerd@gnu.org>
8744
8745 * xfaces.c (Fdump_colors) [DEBUG_X_COLORS]: New function.
8746 (syms_of_xfaces): Defsubr Sdump_colors.
8747 (x_free_colors): Don't treat b&w specially on default visual.
8748 (x_free_dpy_colors): New function.
8749 (free_face_colors): Don't check visual class; it's done
8750 in x_free_colors.
8751
8752 * xterm.c (x_frame_of_widget): New function.
8753 (x_alloc_nearest_color_for_widget): Use it.
8754 (x_copy_dpy_color): New function.
8755 (x_destroy_window): Free various colors.
8756
5050a2ef
KH
87572000-06-12 Kenichi Handa <handa@etl.go.jp>
8758
8759 * ccl.h (EMACS_CCL_H): Renamed from _CCL_H.
8760
8761 * charset.h (EMACS_CHARSET_H): Renamed from _CHARSET_H.
8762
8763 * coding.h (EMASC_CODING_H): Renamed from _CODING_H.
8764
8765 * composite.h (EMACS_COMPOSITE_H): Renamed from _COMPOSITE_H.
8766
8767 * fontset.h (EMACS_FONTSET_H): Renamed from _FONTSET_H.
8768
fb1b041d
DL
87692000-06-11 Dave Love <fx@gnu.org>
8770
8771 * systime.h (EMACS_SYSTIME_H): Renamed from _SYSTIME_H.
8772
ff96b5f4
EZ
87732000-06-11 Eli Zaretskii <eliz@is.elta.co.il>
8774
8775 * msdos.h: Don't use _MSDOS_H_ as a symbol, use MSDOS_H_ instead.
8776
db8eeecd
GM
87772000-06-11 Gerd Moellmann <gerd@gnu.org>
8778
ed1056b3 8779 * xmenu.c (xmenu_show): Cast second parameter of lw_popup_menu
db8eeecd
GM
8780 to `XEvent *'.
8781
49b71c5f
KH
87822000-06-10 Kenichi Handa <handa@etl.go.jp>
8783
c479bd55
KH
8784 * regex.c (MAKE_CHAR) [!emacs]: Dummy macro for non-Emacs env.
8785 (regex_compile): Fix the code for handling the case of single byte
8786 char and multibyte char being mixed in a range within [...].
8787
ff6a65c2
KH
8788 * fileio.c (Finsert_file_contents): Be sure to setup src_multibyte
8789 and dst_multibyte members of coding.
8790
49b71c5f
KH
8791 * charset.c (update_charset_table): Update the table
8792 bytes_by_char_head.
8793 (init_charset_once): Initialize elements of bytes_by_char_head to
8794 1 except for leading codes for private charases.
8795
8796 * charset.h (CHARSET_8_BIT_GRAPHIC): Define as 0x80.
52283633 8797 (UNIBYTE_STR_AS_MULTIBYTE_P): Fix for an invalid multibyte sequence.
49b71c5f 8798
9e80b57d
KR
87992000-06-09 Ken Raeburn <raeburn@gnu.org>
8800
8801 * xterm.c (x_connection_closed): If dpyinfo is NULL, don't try to
8802 access the data it doesn't point to.
8803
f83fe4b4
GM
88042000-06-08 Gerd Moellmann <gerd@gnu.org>
8805
8806 * xterm.c (XTread_socket) <FocusIn>: Queue a FOCUS_IN_EVENT which
db8eeecd 8807 will be translated to a switch-frame event when reading the
f83fe4b4
GM
8808 event queue. This is necessary because Emacs otherwise won't
8809 perform a switch-frame to a new frame until some other event, for
8810 example a keystroke event, forces it to do so. This has various
8811 effects, one visible being that the cursor of a frame created with
8812 C-x 5 2 or switched to with a window manager key binding like
8813 A-TAB stays hollow because selected_window isn't on the newly
8814 focused frame until the switch-frame is performed.
8815
8816 * keyboard.c (kbd_buffer_get_event): Handle FOCUS_IN_EVENT by
8817 generating a switch-frame event if necessary.
8818
8819 * termhooks.h (enum event_kind): Add FOCUS_IN_EVENT.
8820
8821 * xdisp.c (handle_fontified_prop): Don't GCPRO local var `pos';
8822 it's an integer.
8823
0890801b
KH
88242000-06-08 Kenichi Handa <handa@etl.go.jp>
8825
52283633 8826 * fontset.c (Fset_fontset_font): The arg CHARACTER may be a charset.
0890801b 8827
173cbca8
GM
88282000-06-07 Gerd Moellmann <gerd@gnu.org>
8829
3091c2a6
GM
8830 * window.c (displayed_window_lines): Take empty lines at
8831 the bottom of a window into account.
427ec082 8832
f38952fe
GM
8833 * window.c (displayed_window_lines): New function.
8834 (Fmove_to_window_line): Use displayed_window_lines to determine
8835 the number of lines to move, instead of using the window's height.
8836
8837 * lread.c (readevalloop): If READCHARFUN sets point to ZV, arrange
8838 to stop reading, even if the form read sets point to a different
8839 value when evaluated.
8840
427ec082 8841 * xdisp.c (display_line): Fix code deciding in which line to
173cbca8
GM
8842 put the cursor.
8843
6ba6c818
KH
88442000-06-07 Kenichi Handa <handa@etl.go.jp>
8845
8846 * fileio.c (e_write): Free composition data if stored in
8847 coding->cmp_data.
8848
5f1aea9a
GM
88492000-06-06 Gerd Moellmann <gerd@gnu.org>
8850
666852af
GM
8851 * xdisp.c (display_line): Set row's and iterator's
8852 starts_in_middle_of_char_p and ends_in_middle_of_char_p flags.
8853 Set cursor even if row ends in the middle of a character.
8854 (dump_glyph_row): Print values of new flags.
8855 (redisplay_window) <cursor movement in unchanged window>: When
8856 point has been moved forward, and PT is at the end of the cursor
8857 row, don't place the cursor in the next row if the cursor row ends
8858 in the middle of a character or at ZV.
8859
8860 * dispextern.h (struct it): Add starts_in_middle_of_char_p.
8861 (struct glyph_row): Add starts_in_middle_of_char_p and
8862 ends_in_middle_of_char_p.
8863 (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P): Test row's
8864 ends_in_middle_of_char_p flag.
8865 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Likewise.
8866
d13f3e2e
GM
8867 * term.c (append_glyph): Revert change of 2000-06-06.
8868
8869 * xdisp.c (display_line): Revert change of 2000-06-06. Treat
8870 padding glyph not fitting on line as whole character not
8871 fitting on line.
8872
5f1aea9a
GM
8873 * xterm.c (x_produce_glyphs): Don't xassert `it->descent > 0';
8874 this isn't true for images with `:ascent 100'.
8875
10cda9b0
KH
88762000-06-06 Kenichi Handa <handa@etl.go.jp>
8877
ed00559d
KH
8878 * buffer.c (Fset_buffer_multibyte): Don't make the current buffer
8879 as modified if it is originally unmodified.
8880
10cda9b0
KH
8881 * term.c (encode_terminal_code): Change the way to check if
8882 terminal coding does any conversion.
8883 (append_glyph): Set glyph->pixel_width correctly.
8884
8885 * xdisp.c (display_line): While checking line continuation, pay
8886 attention to a padding glyph.
8887
1969fae2
GM
88882000-06-05 Gerd Moellmann <gerd@gnu.org>
8889
8890 * xdisp.c (redisplay_window): Always use set_buffer_internal_1.
8891
162ccef4
DL
88922000-06-05 Dave Love <fx@gnu.org>
8893
f19f32dd
DL
8894 * xdisp.c: Include fontset.h.
8895
8896 * xfns.c (x_real_positions): Declare tmp_nchildren as unsigned.
8897
8898 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
8899
8900 * dispnew.c: Conditionally include term.h.
8901
8902 * coding.h: Declare code_convert_string_norecord.
8903
8904 * frame.h (struct frame): Use volatile unconditionally.
8905
8906 * buffer.h: Remove Vbefore_change_function, Vafter_change_function.
8907
8908 * xmenu.c (menu_item_selection): Declare volatile unconditionally.
8909
8910 * systime.h: Protect against multiple inclusion.
8911 (timezone) [USG5_4]: Define as time_t.
8912
8913 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
8914 (Foptimize_char_table, make_temp_name): Declare.
8915
8916 * Makefile.in (xdisp.o): Depend on fontset.h.
8917
8918 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
8919
8920 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
8921 (Foptimize_char_table, make_temp_name): Declare.
8922
427ec082 8923 * s/irix4-0.h:
162ccef4
DL
8924 * s/irix5-0.h:
8925 * s/netbsd.h: Don't define autoconfiscated MATHERR.
8926
2082fe81
DL
89272000-06-02 Dave Love <fx@gnu.org>
8928
8929 * lread.c (_XOPEN_SOURCE, __EXTENSIONS__): Don't define.
8930
dcf671d2
GM
89312000-06-02 Gerd Moellmann <gerd@gnu.org>
8932
8933 * xfaces.c (realize_x_face): When copying BASE_FACE bitwise to the
1969fae2 8934 result face, set flags in that face indicating that colors may not
dcf671d2
GM
8935 be freed.
8936
8937 * xterm.c (x_set_mouse_face_gc): If first glyph isn't a character
8938 glyph, use the ASCII NUL character to determine the face.
8939
d42122a3
DL
89402000-06-02 Dave Love <fx@gnu.org>
8941
8942 * sysdep.c: Conditionally include stdlib.h, unistd.h.
8943 (VFORK_RETURN_TYPE): Remove.
427ec082 8944
d42122a3
DL
8945 * config.in: Add NO_MATHERR.
8946
dd432f16
DL
89472000-06-01 Dave Love <fx@gnu.org>
8948
90aa4ea8
DL
8949 * cmds.c (internal_self_insert): Don't check
8950 Vbefore_change_function, Vafter_change_function.
8951
8952 * insdel.c (signal_before_change, signal_after_change): Likewise.
8953
8954 * buffer.c (Vbefore_change_function, Vafter_change_function):
8955 Variables and their initializations deleted.
8956
2330c9d4
DL
8957 * callint.c (Fcall_interactively): Doc fix.
8958
dd432f16
DL
8959 * terminfo.c (ospeed) [HAVE_SPEED_T]: Don't declare extern.
8960
bf9e8804
DL
89612000-05-31 Dave Love <fx@gnu.org>
8962
8963 * textprop.c: Revert last change -- duplicated.
8964
3694b4ab
GM
89652000-05-31 Gerd Moellmann <gerd@gnu.org>
8966
8967 * dispnew.c (find_glyph_row_slice, swap_glyphs_in_rows): Put
8968 in #if 0.
8969
8970 * lisp.h (eassert) [!ENABLE_CHECKING]: Define as `(void) 0'.
8971
f14156cd
JR
89722000-05-31 Jason Rumney <jasonr@gnu.org>
8973
8119aab8
JR
8974 * search.c (Fre_search_forward, Fre_search_backward)
8975 (Fposix_search_backward, Fposix_search_forward): Fix newlines in docs.
8976
f14156cd
JR
8977 * w32select.c (Fw32_set_clipboard_data): Change QNil to Qnil.
8978
4aab9be3
JR
89792000-05-30 Jason Rumney <jasonr@gnu.org>
8980
8981 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: New macros.
8982 [WINDOWSNT]: Add extern for Vw32_system_coding_system.
8983
52283633 8984 * dispextern.h (struct glyph) [WINDOWSNT]: Add w32_font_type member.
4aab9be3
JR
8985
8986 * fileio.c (Fread_file_name) [HAVE_NTGUI]: Use file dialog.
8987 (Fread_file_name) [HAVE_NTGUI, USE_MOTIF]: Do not attempt to
8988 expand a nil default_filename.
8989
8990 * keyboard.c (make_lispy_event) [WINDOWS_NT]: Pass a window
8991 pointer to glyph_to_pixel_coords, not a frame.
8992
8993 * makefile.nt (w32fns.obj, w32menu.obj): Add charset.h and
8994 coding.h to dependencies.
8995
8996 * w32bdf.c (w32_load_bdf_font): Initialize font->double_byte_p.
8997
8998 * w32console.c (glyph_to_pixel_coords): Change first parameter to
8999 window pointer to be consistent with w32term.c and xterm.c.
9000
9001 * w32fns.c: Format and doc changes to bring closer to xfns.c.
9002 (VIETNAMESE_CHARSET): Define if not defined in system headers.
9003 (Qline_spacing, Qcenter): New variables.
9004 (Qw32_charset_*, w32_codepage_for_font): Moved from w32term.c.
9005 (x_set_line_spacing): New function.
52283633 9006 (x_set_frame_parameters): Use FRAME_NEW_WIDTH, FRAME_NEW_HEIGHT macros.
4aab9be3
JR
9007 (x_specified_cursor_type): New function.
9008 (x_set_cursor_type): Use it.
9009 (x_set_name, x_set_title): Use ENCODE_SYSTEM to encode titlebar
9010 and icon strings.
9011 (validate_x_resource_name, x_get_resource_string): Measure lengths
9012 of external strings in bytes.
9013 (w32_wnd_proc) [WM_MEASURE_ITEM]: Avoid calling
9014 GetTextExtentPoint32 with NULL title.
9015 (Fx_create_frame): Initialize Qline_spacing.
9016 (w32_load_system_font): Initialize font->double_byte_p.
9017 (x_to_w32_charset): Use Vw32_charset_info_alist.
9018 (Image, busy cursor, tooltip functions): Merged changes from
9019 xfns.c. Not yet functional on Windows.
9020
9021 * w32gui.h (W32FontStruct): Add double_byte_p member.
9022
9023 * w32inevt.c (NUM_TRANSLATED_MOUSE_BUTTONS): New constant.
9024 (emacs_button_translation): Use it.
9025 (do_mouse_event): Allow up to 32 mouse buttons by allowing any bit
9026 in `mask' to be set.
9027
9028 * w32menu.c (single_submenu, w32_menu_show): Call ENCODE_SYSTEM on
9029 menu strings.
9030
9031 * w32term.c: Format and doc changes to bring closer to xterm.c.
9032 (w32_char_font_type): New enum.
9033 (Qw32_charset_*, w32_codepage_for_font): Moved to w32fns.c.
9034 (w32_per_char_metric): Use w32_char_font_type instead of unicode_p.
9035 (w32_encode_char): New function.
9036 (x_encode_char): Removed.
9037 (x_get_glyph_and_face_encoding): Use w32_encode_char in place of
9038 x_encode_char and w32_font_is_double_byte.
9039 (x_produce_image_glyph): Use image_ascent.
9040 (x_produce_glyphs): Use new version of w32_per_char_metric and
9041 handle NULL return value. Allow extra line spacing.
9042 (W32_TEXTOUT): Distinguish between Unicode and DBCS text.
9043 (w32_get_glyph_overhangs): Remove unicode_p param. Use
9044 w32_font_type member of glyph instead.
9045 (x_draw_glyph_string): Draw underline and strike-out for BDF fonts.
9046 (fast_find_position): Make sure not to consider rows not visible
9047 in the window.
9048 (w32_read_socket) [WM_MENUSELECT]: Cannot call
9049 w32_menu_display_help with input blocked, as it can abort.
9050 (x_display_and_set_cursor): Choose cursor depending
9051 on buffer-local value of cursor_type.
9052 (x_draw_bar_cursor): Add parameter WIDTH.
9053
9054 * w32term.h (CP_DEFAULT): Define.
9055 (Fx_display_color_p, Fx_display_grayscale_p, image_ascent): Declare.
9056
10fc3187
GM
90572000-05-30 Gerd Moellmann <gerd@gnu.org>
9058
9059 * search.c (Fre_search_forward, Fre_search_backward)
9060 (Fposix_search_backward, Fposix_search_forward): Doc fix.
9061
d0555360
KH
90622000-05-30 Kenichi Handa <handa@etl.go.jp>
9063
9064 * coding.c (detect_coding_iso2022): Fix code for checking
9065 CODING_CATEGORY_MASK_ISO_8_2.
9066
f1ad044f
SM
90672000-05-29 Stefan Monnier <monnier@cs.yale.edu>
9068
9069 * regex.c (PREFETCH_NOLIMIT): New function.
9070 (re_match_2_internal): Use it and adjust the end_match_2 logic.
9071
84ec3b4b
GM
90722000-05-29 Gerd Moellmann <gerd@gnu.org>
9073
66254a13
GM
9074 * syntax.c (find_defun_start): Move test for
9075 open_paren_in_column_0_is_defun_start outside of the loop.
9076
49e70dec
GM
9077 * xdisp.c (redisplay_window): Really switch buffers when
9078 displaying mode lines, and temporarily set selected_frame to the
9079 frame of the window that's redisplayed.
9080
84ec3b4b
GM
9081 * xfaces.c (free_realized_faces): Block/unblock input.
9082 (free_realized_multibyte_face): Ditto.
9083
869a3a14
DL
90842000-05-29 Dave Love <fx@gnu.org>
9085
9086 * textprop.c (Qkeymap): New variable.
9087 (syms_of_textprop): Intern it.
9088
9089 * keymap.c: Include intervals.h.
9090 (Fkey_binding, Fwhere_is_internal): Deal with `keymap' property.
9091
9092 * Makefile.in (keymap.o): Depend on intervals.h.
9093
9094 * keyboard.c (menu_bar_items, tool_bar_items)
9095 (Fexecute_extended_command): Deal with `keymap' property.
9096 (read_key_sequence): Track map from `keymap' property as well as
9097 `local_map'.
9098
9099 * intervals.c (get_local_map): Extra arg to allow looking for
9100 `keymap' too.
9101
9102 * intervals.h (map_property): New enum.
9103 (get_local_map): Extra arg using it.
9104 (Qkeymap): Declare.
9105
84ec3b4b 9106 * lisp.h (get_local_map): Don't declare here.
869a3a14 9107
89d0c844
KH
91082000-05-29 Kenichi Handa <handa@etl.go.jp>
9109
9110 * Makefile.in (callproc.o): Depend on composite.h.
9111
9112 * callproc.c: Include composite.h.
9113 (Fcall_process): Handle composition correctly.
9114
9115 * coding.h (coding_allocate_composition_data): Extern it.
9116 (coding_restore_composition): Likewise.
9117
9118 * coding.c (DECODE_COMPOSITION_START): If coding->cmp_data is not
9119 yet allocated, finish decoding with result
9120 CODING_FINISH_INSUFFICIENT_CMP.
9121 (coding_allocate_composition_data): Make it non-static.
9122 (coding_restore_composition): Likewise.
9123
797a084a
EZ
91242000-05-29 Eli Zaretskii <eliz@is.elta.co.il>
9125
9126 * charset.c (syms_of_charset): Revert last change.
9127
cf872af5
EZ
91282000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
9129
9130 * term.c (produce_glyphs): Treat characters from the eight-bit-*
d7d0dac0
SM
9131 charsets as unibyte, with 1-column screen width. Sent by Kenichi
9132 Handa.
cf872af5 9133
5b1ae051
EZ
91342000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
9135
9136 * charset.c (syms_of_charset): Set width of character sets
9137 eight-bit-control and eight-bit-graphic to 1 column.
9138
34ec9ebe
GM
91392000-05-26 Gerd Moellmann <gerd@gnu.org>
9140
9141 * config.in (HAVE_SPEED_T): New define.
9142
9143 * sysdep.c, terminfo.c (ospeed) [HAVE_SPEED_T]: Declare as
9144 `extern speed_t'.
9145
dd854dc2
DL
91462000-05-26 Dave Love <fx@gnu.org>
9147
9148 * coding.c (shrink_decoding_region): Initialize eol_conversion.
9149
9150 * data.c (Qsubrp, Qmany, Qunevalled): New variables.
9151 (Fsubr_arity): New function.
9152 (syms_of_data): Install them.
9153
ba9f8f95
KH
91542000-05-26 Kenichi Handa <handa@etl.go.jp>
9155
0f3e0672
KH
9156 * charset.c (init_charset_once): Set the table bytes_by_char_head
9157 correctly.
9158
cebefb44
KH
9159 * fontset.c (syms_of_fontset): Adjust the font name for ascii of
9160 the default fontset to what Emacs uses by default.
0f3e0672
KH
9161 (check_registry_encoding): This function deleted.
9162 (Fset_fontset_font): Remove the adhoc condition for the default
9163 fontset. Allow cons in FONTNAME.
cebefb44 9164
0f3e0672
KH
9165 * fns.c (map_char_table): Ignore char-table entries for
9166 charsets eight-bit-control and eight-bit-graphic.
ba9f8f95 9167
7a18af49
KR
91682000-05-25 Ken Raeburn <raeburn@gnu.org>
9169
9170 * emacs.c (main): Initialize keyboard syms before initializing
9171 window code, so face names are available.
9172
d2af47df
SM
91732000-05-25 Stefan Monnier <monnier@cs.yale.edu>
9174
9175 * regex.c (at_begline_loc_p): Also recognize the \\(?:^ case
9176 of an anchor at the beginning of a shy-group.
9177
fc6a6a4e
GM
91782000-05-25 Gerd Moellmann <gerd@gnu.org>
9179
9180 * xdisp.c (handle_invisible_prop): Don't try to skip over
9181 invisible text if end of text is already reached.
9182
005f0d35
DL
91832000-05-25 Dave Love <fx@gnu.org>
9184
02513cdd
DL
9185 * xdisp.c (Fdump_glyph_matrix): Declare the arg.
9186
005f0d35
DL
9187 * coding.c (encode_eol): Add null statement after label.
9188
89f6ca4e
EZ
91892000-05-25 Eli Zaretskii <eliz@is.elta.co.il>
9190
9191 * w16select.c (Fw16_set_clipboard_data): Fix the change from
9192 2000-05-20.
9193
a4e1759e
KH
91942000-05-25 Kenichi Handa <handa@etl.go.jp>
9195
9196 * ccl.c (ccl_driver): Fix previous change.
9197
eacfd7fe
KH
91982000-05-25 Kenichi Handa <handa@etl.go.jp>
9199
46ab33a9
KH
9200 * coding.c (run_pre_post_conversion_on_str): Set point to the
9201 beginning of buffer before calling coding->post_read_conversion.
9202 (decode_coding_string): Give correct args to
9203 run_pre_post_conversion_on_str.
9204 (encode_coding_string): Likewise.
9205
eacfd7fe
KH
9206 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>
9207 <CCL_WriteMultibyteChar2>: Handle charsets eight-bit-control and
9208 eight-bit-graphic correctly.
9209
f8569325
DL
92102000-05-24 Kenichi HANDA <handa@etl.go.jp>
9211
9212 * fileio.c (Finsert_file_contents): Even if a file is not found,
9213 execute codes for setting up coding system. Call
9214 after-insert-file-functions unconditionally.
9215
04545643
GM
92162000-05-24 Gerd Moellmann <gerd@gnu.org>
9217
9218 * callproc.c, emacs.c, sysdep.c (setpgrp): Don't define if USG and
9219 BSD_PGRPS are not defined.
9220
747d90ea
KH
92212000-05-24 Kenichi Handa <handa@etl.go.jp>
9222
9223 * charset.c (update_charset_table): Accept nil in LONG_NAME and
9224 DESCRIPTION.
9225 (syms_of_charset): Avoid building same strings.
9226
716e3b88
GM
92272000-05-23 Gerd Moellmann <gerd@gnu.org>
9228
9229 * lread.c (Fload): Add a comment about the meaning of
9230 Vuser_init_file being t.
9231
9232 * puresize.h (BASE_PURESIZE): Increase to 675000.
9233
9234 * s/gnu-linux.h (setpgrp): Don't define it here because this
9235 prevents compilation on GNU/Linux systems with glib 2.2.
9236
9237 * callproc.c, emacs.c, sysdep.c (setpgrp) [HAVE_SETPGID]: Define
9238 as setpgid.
427ec082 9239
9aeb39fa
EZ
92402000-05-23 Eli Zaretskii <eliz@is.elta.co.il>
9241
9242 * Makefile.in (SOME_MACHINE_LISP): Add disp-table.elc,
9243 dos-vars.elc, ccl.elc, and codepage.elc, all loaded by the MS-DOS
9244 version.
9245 (MSDOS_SUPPORT): Add dos-vars.elc, ccl.elc, and codepage.elc.
9246
29ced61b
KH
92472000-05-23 Kenichi Handa <handa@etl.go.jp>
9248
52283633 9249 * syntax.c (skip_chars): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
0574a2ed 9250
3d80f24d
KH
9251 * msdos.c (IT_write_glyphs): Set coding->src_multibyte to 1.
9252
52283633 9253 * term.c (encode_terminal_code): Set coding->src_multibyte properly.
3d80f24d 9254
29ced61b
KH
9255 * coding.c (encode_eol): Fix a bug of DOS style EOL encoding.
9256
d7e00792
KH
92572000-05-22 Kenichi Handa <handa@etl.go.jp>
9258
c9d80d38
KH
9259 * keyboard.c (read_char): Allow character codes 128..255 to be
9260 handled by input-method-function.
9261
d7e00792
KH
9262 * insdel.c (adjust_markers_for_replace): Fix previous change.
9263 (adjust_after_replace): If PREV_TEXT is nil, call
9264 adjust_markers_for_insert, not adjust_markers_for_replace.
9265
087121cc 92662000-05-20 NIIBE Yutaka <gniibe@mri.co.jp>
427ec082 9267
087121cc
GM
9268 * s/gnu-linux.h (UNIX98_PTYS) [HAVE_GRANDPT]: Define.
9269 (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_OPEN, PTY_TTY_NAME_SPRINTF)
9270 [HAVE_GRANDPT]: Define.
9271 (C_SWITCH_SYSTEM): Add -D_XOPEN_SOURCE.
9272
9273 * sysdep.c (setup_pty): Treat case that UNIX98_PTYS is defined
9274 like SYSV_PTYS.
9275
9276 * config.in (HAVE_GRANDPT, HAVE_GETPT): New defines.
9277
9278 * process.c (toplevel) [UNIX98_PTYS]: Include stdlib.h.
9279
c9671f81
KH
92802000-05-20 Kenichi Handa <handa@etl.go.jp>
9281
9282 The following changes are to handle 8-bit characters in a
9283 multibyte buffer/string without facing with byte combining
9284 problem. Two new charsets eight-bit-control (for 0x80..0x9F) and
9285 eight-bit-graphic (for 0xA0..0xFF) are introduced.
9286
9287 * Makefile.in (fns.o): Depend on charset.h.
9288
9289 * alloc.c (Fmake_byte_code): If BYTECODE-STRING is multibyte,
9290 convert it to unibyte.
9291 (make_string): Use parse_str_as_multibyte, not chars_in_text.
9292
9293 * buffer.c (advance_to_char_boundary): Don't use DEC_POS to find a
9294 apparent char boundary.
9295 (Fset_buffer_multibyte): Convert 8-bit characters in the range
9296 0x80..0x9F to/from multibyte form.
9297
9298 * bytecode.c (Fbyte_code): If arg BYTESTR is multibyte, convert it
9299 to unibyte.
9300
9301 * callproc.c (Fcall_process): Always encode an argument string if
9302 it is multibyte. Setup src_multibyte and dst_multibyte members of
9303 process_coding properly.
ce75fd23 9304
c9671f81
KH
9305 * category.c (Fmodify_category_entry): Use SPLIT_CHAR, not
9306 SPLIT_NON_ASCII_CHAR.
9307
9308 * ccl.c (CCL_WRITE_CHAR): Be sure to write single byte characters
9309 as is.
9310 (CCL_MAKE_CHAR): Use MAKE_CHAR, not MAKE_NON_ASCII_CHAR.
9311
52283633 9312 * charset.c (Qeight_bit_control, Qeight_bit_graphic): New variables.
c9671f81 9313 (SPLIT_CHARACTER_SEQ): This macro deleted.
52283633 9314 (SPLIT_MULTIBYTE_SEQ): Assume that multibyte sequence at STR is valid.
c9671f81
KH
9315 (CHAR_COMPONENTS_VALID_P): Handle new charsets; eight-bit-control
9316 and eight-bit-graphic.
9317 (char_to_string): Likewise. Signal an error for too large
9318 character code.
9319 (char_printable_p): Return 0 for 8-bit characters.
9320 (update_charset_table): Update iso_charset_table only when a final
9321 character is non-negative.
9322 (find_charset_in_text): Renamed from find_charset_in_str.
9323 Arguments and return value changed. Callers changed.
9324 (Fdefine_charset): Args ISO-FINAL-CHAR and ISO-GRAPHIC-PLANE can
9325 be -1 if CHARSET is used only internally.
9326 (Fmake_char_internal): Handle new charsets; eight-bit-control and
9327 eight-bit-graphic.
9328 (Fcharset_after): Simplified.
9329 (char_valid_p): Use SPLIT_CHAR, not SPLIT_NON_ASCII_CHAR.
9330 (char_bytes): Return 2 for chars of the range 0xA0..0xFF.
9331 (multibyte_chars_in_text): Simplified by assuming there's no
9332 invalid multibyte sequence.
52283633
SM
9333 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte)
9334 (str_as_unibyte): New functions.
9335 (Fstring): Simpified by assuming that byte combining never happens.
c9671f81
KH
9336 (init_charset_once): Initialization for
9337 LEADING_CODE_8_BIT_CONTROL.
9338 (syms_of_charset): Intern and staticpro Qeight_bit_control and
9339 Qeight_bit_graphic. Include them in Vcharset_list. Make charsets
9340 eight-bit-control and eight-bit-graphic.
9341
52283633
SM
9342 * charset.h (LEADING_CODE_8_BIT_CONTROL, CHARSET_8_BIT_CONTROL)
9343 (CHARSET_8_BIT_GRAPHIC): New macros.
c9671f81
KH
9344 (SINGLE_BYTE_CHAR_P): Make it faster by using casting.
9345 (CHARSET_ISO_GRAPHIC_PLANE): Use XINT instead of XFASTINT.
9346 (CHARSET_REVERSE_CHARSET): Likewise.
9347 (CHARSET_VALID_P): Handle new charsets; eight-bit-control and
9348 eight-bit-graphic.
9349 (BYTES_BY_CHAR_HEAD, WIDTH_BY_CHAR_HEAD): Optimize for ASCII.
9350 (CHAR_CHARSET, MAKE_CHAR, SPLIT_CHAR, CHAR_BYTES): Likewise.
9351 (PARSE_MULTIBYTE_SEQ) [BYTE_COMBINING_DEBUG]: Abort if we
9352 encounter an invalid multibyte sequence.
9353 (PARSE_MULTIBYTE_SEQ) [not BYTE_COMBINING_DEBUG]: Assume multibyte
9354 sequence is always valid.
9355 (MAKE_NON_ASCII_CHAR, SPLIT_NON_ASCII_CHAR): These macros Deleted.
52283633 9356 (UNIBYTE_STR_AS_MULTIBYTE_P, MULTIBYTE_STR_AS_UNIBYTE_P): New macros.
c9671f81
KH
9357 (CHAR_STRING): For 8-bit characters, call char_to_string.
9358 (INC_POS) [not BYTE_COMBINING_DEBUG]: Faster version. Assume
9359 multibyte sequence is always valid.
9360 (BUF_INC_POS) [not BYTE_COMBINING_DEBUG]: Likewise.
52283633
SM
9361 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte)
9362 (str_as_unibyte): Extern them.
c9671f81 9363 (BCOPY_SHORT): Fix a bug.
52283633 9364 (CHAR_LEN): This macro deleted. Callers changed to use CHAR_BYTES.
c9671f81
KH
9365 (FETCH_STRING_CHAR_ADVANCE): Check multibyteness of STRING.
9366 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): New macro.
9367 (FETCH_CHAR_ADVANCE): Check multibyteness of the current buffer.
9368
bd4bde7f 9369 * coding.c (ONE_MORE_BYTE, TWO_MORE_BYTES): Set coding->result to
c9671f81 9370 CODING_FINISH_INSUFFICIENT_SRC if there's not enough source.
52283633
SM
9371 (ONE_MORE_CHAR, EMIT_CHAR, EMIT_ONE_BYTE, EMIT_TWO_BYTE)
9372 (EMIT_BYTES): New macros.
9373 (THREE_MORE_BYTES, DECODE_CHARACTER_ASCII)
9374 (DECODE_CHARACTER_DIMENSION1, DECODE_CHARACTER_DIMENSION2): These
c9671f81
KH
9375 macros deleted.
9376 (CHECK_CODE_RANGE_A0_FF): This macro deleted.
9377 (detect_coding_emacs_mule): Use UNIBYTE_STR_AS_MULTIBYTE_P to
9378 check the validity of multibyte sequence.
9379 (decode_coding_emacs_mule): New function.
9380 (encode_coding_emacs_mule): New macro.
9381 (detect_coding_iso2022): Use ONE_MORE_BYTE to fetch a byte from
9382 the source.
9383 (DECODE_ISO_CHARACTER): Just return a character code.
9384 (DECODE_COMPOSITION_START): Set coding->result instead of result.
9385 (decode_coding_iso2022, decode_coding_sjis_big5, decode_eol): Use
9386 EMIT_CHAR to produced decoded characters. Exit the loop only by
9387 macros ONE_MORE_BYTE or EMIT_CHAR. Don't handle the case of last
9388 block here.
9389 (ENCODE_ISO_CHARACTER): Don't translate character here. Produce
9390 only position codes for an invalid character.
9391 (encode_designation_at_bol): Return new destination pointer. 5th
9392 arg DSTP is changed to DST.
9393 (encode_coding_iso2022, decode_coding_sjis_big5): Get a character
9394 from the source by ONE_MORE_CHAR. Don't handle the case of last
9395 block here.
9396 (DECODE_SJIS_BIG5_CHARACTER, ENCODE_SJIS_BIG5_CHARACTER): These
9397 macros deleted.
52283633
SM
9398 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
9399 (detect_coding_utf_16, detect_coding_ccl): Use ONE_MORE_BYTE and
c9671f81
KH
9400 TWO_MORE_BYTES to fetch a byte from the source.
9401 (encode_eol): Pay attention to coding->src_multibyte.
9402 (detect_coding, detect_eol): Preserve members src_multibyte and
9403 dst_multibyte.
9404 (DECODING_BUFFER_MAG): Return 2 even for coding_type_raw_text.
9405 (encoding_buffer_size): Set magnification to 3 for all coding
9406 systems that require encoding.
9407 (ccl_coding_driver): For decoding, be sure that the result is
9408 valid multibyte sequence.
9409 (decode_coding): Initialize coding->errors and coding->result.
9410 For emacs-mule, call decode_coding_emacs_mule. For no-conversion
9411 and raw-text, always call decode_eol. Handle the case of last
9412 block here. If not coding->dst_multibyte, convert the resulting
9413 sequence to unibyte.
9414 (encode_coding): Initialize coding->errors and coding->result.
9415 For emacs-mule, call encode_coding_emacs_mule. For no-conversion
9416 and raw-text, always call encode_eol. Handle the case of last
9417 block here.
9418 (shrink_decoding_region, shrink_encoding_region): Detect cases
9419 that we can't skip data more rigidly.
9420 (code_convert_region): Setup src_multibyte and dst_multibyte
9421 members of coding. For decoding, if the buffer is multibyte,
9422 convert the source sequence to unibyte in advance. For encoding,
9423 if the buffer is multibyte, convert the resulting sequence to
9424 multibyte afterward.
9425 (run_pre_post_conversion_on_str): New function.
9426 (code_convert_string): Deleted and divided into the following two.
9427 (decode_coding_string, encode_coding_string): New functions.
9428 (code_convert_string1, code_convert_string_norecord): Call one of
9429 above.
9430 (Fdecode_sjis_char, Fdecode_big5_char): Use MAKE_CHAR instead of
9431 MAKE_NON_ASCII_CHAR.
52283633
SM
9432 (Fset_terminal_coding_system_internal)
9433 (Fset_safe_terminal_coding_system_internal): Setup src_multibyte
c9671f81
KH
9434 and dst_multibyte members.
9435 (init_coding_once): Initialize iso_code_class with new enum
9436 ISO_control_0 and ISO_control_1.
9437
9438 * coding.h (enum iso_code_class_type): Member ISO_control_code is
9439 devided into ISO_control_0 and ISO_control_1.
9440 (struct coding_system): New members src_multibyte, dst_multibyte,
9441 errors, and result. Delete member fake_multibyte.
9442 (CODING_REQUIRE_DECODING): Return 1 if coding->dst_multibyte is
9443 nonzero.
9444 (CODING_REQUIRE_ENCODING): Return 1 if coding->src_multibyte is
9445 nonzero.
9446
9447 * data.c (Faref): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
9448 (Faset): Likewise.
9449
9450 * editfns.c (Fformat): Be sure to convert 8-bit characters to
9451 multibyte form.
9452 (Ftranspose_region) [BYTE_COMBINING_DEBUG]: Abort if byte
9453 combining occurs.
9454 (Ftranspose_region): Delete codes for handling byte combining.
9455
9456 * fileio.c (Finsert_file_contents): Setup src_multibyte and
9457 dst_multibyte members of coding. On handling REPLACE on unibyte
9458 buffer, convert the result of decode_coding to unibyte. On
9459 inserting into a mutibyte buffer, always call code_convert_region.
bd4bde7f 9460 (e_write): Setup coding->src_multibyte according to the
c9671f81
KH
9461 multibyteness of the source (buffer or string).
9462
9463 * fns.c (concat): Handle 8-bit characters correctly.
9464 (Fstring_as_unibyte): Be sure to make all 8-bit characters in
9465 unibyte in the result.
9466 (Fstring_as_multibyte): Be sure to make all 8-bit characters in
9467 valid multibyte form in the result.
9468 (map_char_table): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
9469 (Fbase64_encode_region, Fbase64_encode_string): If base64_encode_1
9470 return -1, signal an error.
9471 (base64_encode_1): New arg MULTIBYTE. Get each character by
9472 CHAR_STRING_AND_LENGTH if MULTIBYTE is nonzero. If a multibyte
9473 character is found, return -1.
9474 (Fbase64_decode_region): Delete codes for handling byte-combining.
9475 Treat each decoded byte as a unibyte character.
9476 (Fbase64_decode_string): Return unibyte string.
9477 (Fcompare_strings, concat, string_byte_to_char): Use
9478 FETCH_STRING_CHAR_ADVANCE_NO_CHECK instead off
9479 FETCH_STRING_CHAR_ADVANCE.
9480 (Fstring_lessp): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
9481 (mapcar1): If SEQ is string, always use FETCH_STRING_CHAR_ADVANCE.
9482
9483 * fontset.c (fontset_ref): Use SPLIT_CHAR instead of
9484 SPLIT_NON_ASCII_CHAR.
9485 (fontset_ref_via_base, fontset_set): Likewise
9486
9487 * insdel.c (adjust_markers_for_record_delete): Deleted.
9488 (adjust_markers_for_insert): Argument changed. Caller changed.
9489 (adjust_markers_for_replace): Likewise.
52283633
SM
9490 (ADJUST_CHAR_POS, combine_bytes, byte_combining_error)
9491 (CHECK_BYTE_COMBINING_FOR_INSERT): Deleted.
c9671f81
KH
9492 (copy_text): Delete unused local varialbe c_save. For converting
9493 to multibyte, be sure to make all 8-bit characters in valid
9494 multibyte form.
9495 (count_size_as_multibyte): Handle 8-bit characters correctly.
52283633
SM
9496 (insert_1_both, insert_from_string_1, insert_from_buffer_1)
9497 (adjust_after_replace, replace_range, del_range_2)
c9671f81 9498 [BYTE_COMBINING_DEBUG]: Abort if byte combining occurs.
52283633
SM
9499 (insert_1_both, insert_from_string_1, insert_from_buffer_1)
9500 (adjust_after_replace, replace_range, del_range_2) Delete codes for
c9671f81
KH
9501 handling byte combining.
9502 (adjust_before_replace): Deleted.
427ec082 9503
c9671f81
KH
9504 * keymap.c (Fsingle_key_description): Use SPLIT_CHAR instead of
9505 SPLIT_NON_ASCII_CHAR.
9506 (describe_vector): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
52283633 9507 (Faccessible_keymaps): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
c9671f81
KH
9508 (Fkey_description): Likewise.
9509
9510 * lread.c (read1): On reading multibyte string, be sure to make
9511 all 8-bit chararacters in valid multibyte form.
9512 (readchar): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
9513
9514 * print.c (print_object): Use FETCH_STRING_CHAR_ADVANCE
9515 unconditionally.
9516
9517 * process.c (Fstart_process): GCPRO current_dir before calling
9518 Ffind_operation_coding_system. Encode arguments here.
9519 (create_process): Don't encode arguments here. Setup
9520 src_multibyte and dst_multibyte members of struct coding.
9521 (read_process_output): Setup src_multibyte and dst_multibyte
9522 members of struct coding. If the output is to multibyte buffer,
9523 always decode the output of the process. Adjust the
52283633 9524 representation of 8-bit characters to the multibyteness of the output.
c9671f81
KH
9525 (send_process): Setup coding->src_multibyte according to the
9526 multibyteness of the source.
9527
52283633 9528 * search.c (wordify): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
c9671f81
KH
9529 (Freplace_match): Use FETCH_STRING_CHAR_ADVANCE and
9530 FETCH_STRING_CHAR_ADVANCE_NO_CHECK appropriately.
9531
52283633 9532 * term.c (produce_special_glyphs): Use CHAR_BYTES instead of CHAR_LEN.
c9671f81
KH
9533
9534 * w16select.c (Fw16_set_clipboard_data): Setup members
9535 src_multibyte and dst_multibyte of coding. Adjusted for the
9536 change for find_charset_in_str.
9537 (Fw16_get_clipboard_data): Likewise.
9538
9539 * w32fns.c (w32_to_x_font): Setup members src_multibyte and
9540 dst_multibyte of coding.
9541 (x_to_w32_font): Likewise.
9542
9543 * w32select.c (Fw32_set_clipboard_data): Setup members
9544 src_multibyte and dst_multibyte of coding. Adjusted for the
9545 change for find_charset_in_str.
9546 (Fw32_get_clipboard_data): Likewise.
9547
9548 * xdisp.c (get_next_display_element): Handle 8-bit characters
9549 correctly.
52283633
SM
9550 (next_element_from_display_vector): Use CHAR_BYTES instead of CHAR_LEN.
9551 (disp_char_vector): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
c9671f81
KH
9552
9553 * xselect.c (selection_data_to_lisp_data): Setup members
9554 src_multibyte and dst_multibyte of coding. Adjusted for the
9555 change for find_charset_in_str.
9556 (lisp_data_to_selection_data): Likewise.
9557
5f64c9e0
GM
95582000-05-19 Gerd Moellmann <gerd@gnu.org>
9559
52283633 9560 * buffer.c (Fbury_buffer): Avoid trouble from burying a killed buffer.
2b63d473 9561
5f64c9e0
GM
9562 * dispextern.h (Vimage_types): Add extern declaration.
9563
9564 * xdisp.c (Vimage_types): Moved here from xfns.c.
9565 (syms_of_xdisp): Move `image-types' variable here from xfns.c.
9566
9567 * xfns.c (Vimages_types): Moved to xdisp.c.
9568 (syms_of_xfns): Move `image-types' to xdisp.c.
9569
9570 * w32fns.c (Vimage_types): Removed.
9571 (syms_of_w32fns): Remove `image-types'.
9572
813086ea
KH
95732000-05-18 Kenichi Handa <handa@etl.go.jp>
9574
9575 * fns.c (map_char_table): Pay attention to character number of
9576 charset. Check the validity of charset at the first level. For
9577 leaf nodes that has nil value, call C_FUNCTION or FUNCTION with
9578 the default value.
9579
9580 * fontset.c: Include "buffer.h".
9581 (fs_load_font): If the face has fontset, record the face ID in
9582 that fontset.
9583 (Finternal_char_font): New function.
9584 (accumulate_font_info): New function.
9585 (Ffontset_info): Rewritten for the new fontset implementation.
9586 (syms_of_fontset): Register Vdefault_fontset in the first element
9587 of Vfontset_table. Include Vdefault_fontset in
9588 Vfontset_alias_alist. Declare `internal-char-font' as a Lisp
9589 function.
9590
bdaebbf0
DL
95912000-05-16 Dave Love <fx@gnu.org>
9592
9593 * m/iris5d.h: Deleted -- unused.
9594
cb613bb8
GM
95952000-05-16 Gerd Moellmann <gerd@gnu.org>
9596
b15f3b77
GM
9597 * xdisp.c, w32.c, print.c, msdos.c, emacs.c: Use the term
9598 `invalid' instead of `illegal'.
9599
9600 * indent.c (Fmove_to_column): When ending within a tab, insert
9601 spaces first so that markers at the end of the tab get adjusted.
9602
835c1b36
GM
9603 * frame.c (frames_bury_buffer): Don't add a buffer to the frame's
9604 buffer list that wasn't selected in that frame.
9605
cb613bb8
GM
9606 * filelock.c (get_boot_time): To obtain an 8 char file name, which
9607 is needed on mescaline, use a 2 char prefix, and call
9608 make_temp_name with second arg non-zero.
9609
9610 * fileio.c (make_temp_name): New function, extracted from
9611 Fmake_temp_name.
9612 (Fmake_temp_name): Use it.
9613
f685bea9
EZ
96142000-05-15 Eli Zaretskii <eliz@is.elta.co.il>
9615
52283633 9616 * window.c (coordinates_in_window): Subtract 1 when computing right_x.
f685bea9 9617
a1b8d58b
GM
96182000-05-15 Gerd Moellmann <gerd@gnu.org>
9619
9620 * Makefile.in (lisp): Add env.elc.
9621
9622 * callproc.c (Fgetenv_internal): Renamed from Fgetenv.
9623
a265079f
GM
96242000-05-12 Gerd Moellmann <gerd@gnu.org>
9625
9626 * search.c (Freplace_match): Handle case of `\N' in the
9627 replacement when there's no group N.
9628
da4496b6
GM
96292000-05-11 Gerd Moellmann <gerd@gnu.org>
9630
0ace421a
GM
9631 * xdisp.c (add_to_log): Don't pass the terminating NUL byte
9632 of the message to message_dolog.
9633
1172eb8d
GM
9634 * keyboard.c (read_char): Don't clear current message for help
9635 events; let the code handling help events handle this. Change
9636 code detecting help events that should be ignored.
9637
da4496b6
GM
9638 * xdisp.c (handle_single_display_prop): Don't try to set PT if
9639 we're interating over a string.
9640
0623e40f
DL
96412000-05-09 Dave Love <fx@gnu.org>
9642
9643 * fileio.c (Fwrite_region): If APPEND arg is an integer, seek to
9644 that offset before writing. Move gcpro region past call of
9645 Ffile_regular_p.
9646
bae2503b
DL
96472000-05-04 Dave Love <fx@gnu.org>
9648
9649 * buffer.c (syms_of_buffer) [auto-fill-function]: Doc fix.
9650
ec82fb2f
GM
96512000-05-04 Gerd Moellmann <gerd@gnu.org>
9652
9653 * insdel.c (insert_from_buffer_1): Adjust FROM position by number
9654 of inserted characters when BUF equals the current buffer, and PT
9655 is in front of or equal to FROM.
9656
cbf18892
GM
96572000-05-03 Gerd Moellmann <gerd@gnu.org>
9658
4ff40dd0
GM
9659 * xdisp.c (handle_single_display_prop): If display property value
9660 is invalid, or something not supported on the frame, restore
9661 iterator's position to what it was initially. Make sure to return
9662 0 for invalid and unsupported property values.
9663
cbf18892
GM
9664 * xterm.c (x_produce_glyphs) <composite chars>: Handle case
9665 that x_per_char_metric returns null.
9666
1b0672c3
GM
96672000-05-02 Gerd Moellmann <gerd@gnu.org>
9668
576da55d
GM
9669 * xterm.h (struct face): Add forward declaration.
9670 (struct image): Ditto.
9671 (image_ascent): Add prototype.
9672
9673 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
9674 (x_draw_image_relief, x_draw_image_foreground_1): Call function
9675 image_ascent instead of using IMAGE_ASCENT.
9676
9677 * dispextern.h (DEFAULT_IMAGE_HEIGHT): New macro.
9678 (IMAGE_ASCENT): Removed.
9679
9680 * xfns.c (Qcenter): New variable.
9681 (enum image_value_type): Add IMAGE_ASCENT_VALUE.
9682 (parse_image_spec): Handle IMAGE_ASCENT_VALUE.
9683 (image_ascent): New function.
9684 (lookup_image): Recognize `:ascent center'.
9685 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
9686 (tiff_format, gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
9687 (xbm_load): Don't set image's ascent here.
9688 (xbm_image_p, xpm_image_p, pbm_image_p, png_image_p)
9689 (jpeg_image_p, tiff_image_p, gif_image_p, gs_image_p): Don't
9690 check ascent values here.
9691 (Fimagep, Flookup_image [GLYPH_DEBUG]: Removed.
9692 (syms_of_xfns) [GLYPH_DEBUG]: Don't defsubr removed functions.
9693 (syms_of_xfns): Initialize Qcenter.
9694
1b0672c3
GM
9695 * eval.c (Fsignal): If lisp_eval_depth or spepdl_size are near
9696 to the limits, increase the limits.
9697
0d7811ed
KH
96982000-05-01 Kenichi Handa <handa@etl.go.jp>
9699
9700 * fontset.c (fs_load_font): By default, use 0x00..0x7f for ASCII.
52283633 9701 Check Vfont_encoding_alist against the full name of the opened font.
0d7811ed 9702
a943a5ca
GM
97032000-04-28 Gerd Moellmann <gerd@gnu.org>
9704
9705 * xdisp.c (make_cursor_line_fully_visible): Handle case of rows
9706 taller than the window.
9707
5dba1e29
KH
97082000-04-28 Kenichi Handa <handa@etl.go.jp>
9709
9710 * xfaces.c (realize_x_face): Fix the argument of the second
9711 xassert. BASE_FACE may not be a face for ASCII.
9712
353964e3
GM
97132000-04-27 Gerd Moellmann <gerd@gnu.org>
9714
c76e04a8
GM
9715 * print.c (print_object): Treat print-length < 0 as nil.
9716
9717 * Makefile.in (termcapobj): Don't use TERMCAP_OBJ.
9718
9719 * s/freebsd.h (TERMCAP_OBJ): Removed.
9720 (LIBS_TERMCAP): Don't define for __FreeBSD_version >= 400000.
9721
9722 * lread.c (read1): Don't treat period followed by certain
9723 characters as symbol start.
9724
9725 * xfns.c (slurp_file): New function.
9726 (xbm_image_p): Handle case of in-memory XBM files.
9727 (xbm_scan): Rewritten to work on memory buffers instead of files.
9728 (xbm_read_bitmap_data): Renamed from xbm_read_bitmap_file_data.
9729 Work on memory buffers instead of files. If DATA is null test
9730 if buffer looks like an in-memory XBM file.
9731 (xbm_load_image): Renamed from xbm_load_image_file. Work on
9732 memory buffers instead of files.
9733 (xbm_file_p): New function.
9734 (xbm_load): Accept :data DATA where DATA is an in-memory XBM file.
9735
353964e3
GM
9736 * lread.c (end_of_file_error): New function.
9737 (read1): Call it instead of signaling `end-of-file' directly.
9738
427ec082 9739 * print.c (print_error_message): Print data of `end-of-file'
353964e3
GM
9740 with Fprinc instead of Fprin1.
9741
24d744ac
KR
97422000-04-26 Ken Raeburn <raeburn@gnu.org>
9743
9744 * window.c (freeze_window_start): Check that minibuffer scroll
9745 window isn't nil before extracting the window structure pointer
9746 from it.
9747
9748 * undo.c (record_delete): If we hit the end of the undo list, stop
9749 picking elements apart.
9750
7464346d
GM
97512000-04-26 Gerd Moellmann <gerd@gnu.org>
9752
9753 * xdisp.c (display_line): If lines are continued, restore
9754 iterator's ascent/descent information to the values before the
9755 first glyph not fitting on the line.
9756
612839b6
GM
97572000-04-25 Gerd Moellmann <gerd@gnu.org>
9758
9759 * xdisp.c (try_window_id) <all changes above window start>: Adjust
52283633 9760 positions in glyph matrix. Don't compute new window end positions.
612839b6
GM
9761
9762 * dispnew.c (increment_matrix_positions): Renamed from
9763 increment_glyph_matrix_buffer_positions.
9764 (increment_row_positions): Renamed from
9765 increment_glyph_row_buffer_positions.
9766
9767 * dispextern.h: Change names of renamed functions from dispnew.c
9768 in prototypes.
9769
cc181e95
GM
97702000-04-24 Gerd Moellmann <gerd@gnu.org>
9771
abfcc168
GM
9772 * fileio.c (Fdo_auto_save): Create directories for auto-save
9773 list file if necessary.
9774
cc181e95
GM
9775 * xdisp.c (init_iterator): Set iterator's extra_line_spacing
9776 from buffer or frame.
9777 (automatic_hscrolling_p): New variable.
9778 (hscroll_windows): Scroll windows horizontally only if automatic
9779 hscrolling is allowed.
9780 (syms_of_xdisp): New variable `automatic-hscrolling'.
9781
9782 * frame.h (struct frame): Add member extra_line_spacing.
9783
9784 * xfns.c (x_set_line_spacing): New function.
9785 (Fx_create_frame): Set line spacing from resources.
9786 (Qline_spacing): New variable.
9787 (syms_of_xfns): Initialize Qline_spacing.
427ec082 9788
cc181e95
GM
9789 * emacs.c (USAGE2): Add `--line-spacing' and `-lsp'.
9790
9791 * buffer.c (init_buffer_once): Handle extra_line_spacing.
9792 (syms_of_buffer): Add `default-line-spacing' and `line-spacing'.
abfcc168 9793 (reset_buffer): Don't initialize extra2 and extra3. Initialize
cc181e95
GM
9794 extra_line_spacing from default value.
9795 (init_buffer_once): Initialize default value of extra_line_spacing.
9796
9797 * buffer.h (struct buffer): Add extra_line_spacing, remove extra2
9798 and extra3.
9799
9800 * xterm.c (x_produce_glyphs): Remove reference to struct it's
9801 prompt_width. Add extra line spacing.
9802
9803 * term.c (produce_glyphs): Remove reference to struct it's
9804 prompt_width.
9805
9806 * dispextern.h (struct it): Remove member prompt_width, add
9807 extra_line_spacing.
9808
58827478
GM
98092000-04-22 Gerd Moellmann <gerd@gnu.org>
9810
9811 * dispnew.c (update_frame_line): When writing a whole line, make
9812 sure cursor is in the right row afterwards, otherwise a use of
9813 capability `ch' in cmgoto might leave the cursor in the row below.
9814
25a87f42
GM
98152000-04-21 Gerd Moellmann <gerd@gnu.org>
9816
9817 * lisp.h (struct Lisp_Buffer_Cons): Remove.
9818
9819 * keyboard.c (timer_check): Fix typo in comment.
9820
54edf5c2
KH
98212000-04-21 Kenichi Handa <handa@etl.go.jp>
9822
9823 * fontset.c (Fset_fontset_font): Fix docstring. Local variable
9824 name change: ch -> character.
9825
3a64eef5
GM
98262000-04-20 Gerd Moellmann <gerd@gnu.org>
9827
9828 * keyboard.c (echo_message_buffer): New variable.
9829 (echo_now): Set echo_message_buffer to the echo area buffer used
9830 to display the echo.
9831 (cancel_echoing): Reset echo_message_buffer to nil.
9832 (read_char): Code rewritten that handles canceling an echo or
9833 echoing a dash, respectively.
9834
9835 * fileio.c (Ffile_writable_p) [WINDOWSNT]: Return nil if parent
9836 directory doesn't exist.
9837
6142fdcb
DL
98382000-04-19 Dave Love <fx@gnu.org>
9839
9840 * fns.c (syms_of_fns): Defsubr mapc.
a9cacab7
DL
9841 (concat): Don't allow numeric args.
9842 (Fconcat): Doc change.
6142fdcb 9843
ac6b5352
SM
98442000-04-19 Stefan Monnier <monnier@cs.yale.edu>
9845
9846 * regex.c (re_match_2_internal): Don't shorten the strings anymore,
9847 instead define end_match(1|2) more carefully.
9848 Use GET_CHAR_BEFORE_2 for `begline'.
9849
cb9215e4
GM
98502000-04-19 Gerd Moellmann <gerd@gnu.org>
9851
5e3dac3f
GM
9852 * frame.h (SELECTED_FRAME): Change definition to compile cleanly
9853 on 64-bit systems where NULL is defined as `0'.
9854
9855 * xdisp.c (with_echo_area_buffer): Add more `int' parameters for
9856 the `variable argument list' to make it work on Alpha.
9857
cb9215e4
GM
9858 * m/alpha.h (_LP64) [!_LP64]: Define.
9859 (ORDINARY_LINK): Define for NetBSD.
9860
9861 * m/macppc.h (ORDINARY_LINK): Define for NetBSD.
427ec082 9862
f532dca0
DL
98632000-04-19 Dave Love <fx@gnu.org>
9864
c750667e
DL
9865 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Revert 2000-04-14
9866 change.
9867
9868 * Makefile.in (LIBS): Don't use.
9869 (GETLOADAVG_OBJ): Define again.
9870 (otherobj): Add GETLOADAVG_OBJ.
9871
f532dca0
DL
9872 * buffer.c (Fmake_indirect_buffer): Escape newline in doc.
9873
1c7e22fd
GM
98742000-04-18 Gerd Moellmann <gerd@gnu.org>
9875
f6d3257b
GM
9876 * lread.c (read_filtered_event): Cancel and start busy cursor.
9877
427ec082 9878 * xterm.c (x_produce_glyphs) <ASCII chars>: Take into account
1c7e22fd
GM
9879 that the per-character metrics may be null.
9880
e10f64e7
GM
98812000-04-17 Gerd Moellmann <gerd@gnu.org>
9882
0daee095
GM
9883 * buffer.c (clone_per_buffer_values): New function.
9884 (Fmake_indirect_buffer): Add optional argument CLONE. Call
9885 clone_per_buffer_values if CLONE is not nil.
9886
e10f64e7
GM
9887 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
9888
38687d43
DL
98892000-04-16 Dave Love <fx@gnu.org>
9890
9891 * Makefile.in: Remove obsolete localcpp stuff.
9892 (GETLOADAVG_OBJ): Don't define.
9893 (obj): Move LIBOBJS...
9894 (otherobj): ... to here.
9895 (MSDOS_OBJ): Convert to make variable -- preprocessing zapped
9896 whitespace-only lines after the continuation (Irix).
9897
c21c7262
GM
98982000-04-14 Gerd Moellmann <gerd@gnu.org>
9899
9900 * xfns.c (xpm_load) [DEBUG_X_COLORS]: Register colors.
9901
9902 * s/freebsd.h (LD_SWITCH_SYSTEM): Add `-L /usr/local/lib'.
9903
314767c0
DL
99042000-04-14 Dave Love <fx@gnu.org>
9905
9906 * s/aix3-1.h, s/bsd4-2.h, s/bsd4-3.h, s/cxux.h, s/dgux.h, s/gnu.h:
9907 * s/hpux.h, s/iris3-5.h, s/iris3-6.h, s/irix3-3.h, s/rtu.h:
9908 * s/unipl5-0.h, s/unipl5-2.h, s/usg5-0.h, s/usg5-2-2.h, s/usg5-2.h:
9909 * s/usg5-3.h, s/xenix.h, s/umax.h: Don't define autoconfiscated
9910 NLIST_STRUCT.
9911
9912 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Don't define
9913 autoconfiscated HAVE_GETLOADAVG.
9914
9915 * s/nextstep.h, s/sco4.h, s/sco5.h: Don't define autoconfiscated
9916 BROKEN_MKTIME.
9917
a2522dca
GM
99182000-04-14 Gerd Moellmann <gerd@gnu.org>
9919
9920 * filelock.c (MAKE_LOCK_NAME): Allocate 2 more bytes.
52283633 9921 (fill_in_lock_file_name): Avoid existing files that aren't links.
a2522dca 9922
33744b5d
DL
99232000-04-14 Dave Love <fx@gnu.org>
9924
c21c7262 9925 * Makefile.in (LIBS, LIBOBJS): New variable.
33744b5d
DL
9926 (INTERVAL_SRC): Convert to make variable.
9927 (INTERVAL_OBJ, MKTIME_OBJ, FLOAT_SUPPORT, FACE_SUPPORT)
9928 (HAVE_X_WINDOWS, OBJECTS_SYSTEM): Remove.
9929 (obj): Substitute INTERVAL_OBJ, add MKTIME_OBJ, GETLOADAVG_OBJ and
9930 add LIBOBJS.
9931 (SOME_MACHINE_OBJECTS): Remove interval stuff.
9932 (lisp): Substitute FACE_SUPPORT, FLOAT_SUP.
9933 (shortlisp): Add facemenu, float-sup, frame.
9934 (SOME_MACHINE_LISP): Remove them from here.
9935 (LIBES): Change unused LDLIBS to autoconf LIBS.
9936
9937 * config.in: Add BROKEN_MKTIME, NLIST_STRUCT, NLIST_NAME_UNION.
9938
9d3d5916
KH
99392000-04-14 Kenichi Handa <handa@etl.go.jp>
9940
9941 * composite.c (update_compositions): If FROM and TO are not in a
9942 valid range, do nothing.
9943
198e3c7a
GM
99442000-04-13 Gerd Moellmann <gerd@gnu.org>
9945
52283633 9946 * tparam.c (tparam1): Abort when encountering an unknown `%'-specifier.
198e3c7a 9947
52283633 9948 * s/freebsd.h (TERMCAP_OBJ) [__FreeBSD__ >= 4]: Define as terminfo.o.
198e3c7a
GM
9949
9950 * Makefile.in (termcapobj) [LIBS_TERMCAP && TERMCAP_OBJ]: Define
9951 as TERMCAP_OBJ.
9952
055a28c9
EZ
99532000-04-13 Eli Zaretskii <eliz@is.elta.co.il>
9954
9955 * fileio.c (a_write): Remove redundant semi-colons.
9956 (e_write): Return -1 if failed to write all the data.
9957 This fixes the changes made at 1999-12-15.
9958
f5c75033
DL
99592000-04-12 Dave Love <fx@gnu.org>
9960
9961 * fns.c (mapcar1): Test for null vals to support mapc.
9962 (Fmapc): New function.
9963
0c3cfc51
EZ
99642000-04-12 Eli Zaretskii <eliz@is.elta.co.il>
9965
9966 * msdos.c (NUM_MOUSE_BUTTONS): Define.
9967 (IT_frame_up_to_date): Support the buffer local value of
9968 cursor-type, if defined.
9969
33465a31
DL
99702000-04-10 Dave Love <fx@gnu.org>
9971
9972 * editfns.c (preceding-char, following-char): Doc fix.
9973
6ed56568
KR
99742000-04-10 Ken Raeburn <raeburn@gnu.org>
9975
9976 * Makefile.in (temacs): Revert 2000-03-12 change.
9977
7cf80d4e
JR
99782000-04-10 Jason Rumney <jasonr@gnu.org>
9979
9980 * xfaces.c (realize_face): Change FRAME_X_P to FRAME_WINDOW_P.
9981
34f3f342
GM
99822000-04-10 Gerd Moellmann <gerd@gnu.org>
9983
1a1b1895
GM
9984 * xdisp.c (setup_echo_area_for_printing): Choose an echo
9985 area buffer, if it's not set up yet.
9986
34f3f342
GM
9987 * indent.c (compute_motion): Set immediate_quit.
9988
be0dbdab
GM
99892000-04-09 Gerd Moellmann <gerd@gnu.org>
9990
52283633 9991 * xfaces.c (tty_suppress_bold_inverse_default_colors_p): New variable.
c45be9ac
GM
9992 (realize_tty_face): Suppress boldness if colors are the inverse of
9993 the default colors, and tty_suppress_bold_inverse_default_colors_p
9994 is set.
9995 (Ftty_suppress_bold_inverse_default_colors): New function.
9996 (syms_of_xfaces): Defsubr it.
9997
be0dbdab
GM
9998 * buffer.c (Frestore_buffer_modified_p): New function.
9999 (syms_of_buffer): Defsubr it.
10000
e8413c3b
KR
100012000-04-08 Ken Raeburn <raeburn@gnu.org>
10002
87f67317
KR
10003 * charset.c (Fmake_char_internal): CHAR_COMPONENTS_VALID_P takes a
10004 charset id (int) argument, not a charset (Lisp_Object).
10005
e8413c3b
KR
10006 * coding.h (code_convert_string): Declare.
10007 * coding.c (code_convert_string_norecord): Pass an int, not a lisp
10008 object, as the fourth argument to code_convert_string.
10009
52283633 10010 * fontset.c (make_fontset_for_ascii_face): Use XINT on return value.
e8413c3b
KR
10011 (Fset_fontset_font): Use EQ to compare lisp objects.
10012
7c752c80
KR
100132000-04-05 Ken Raeburn <raeburn@gnu.org>
10014
c0333abc
KR
10015 * intervals.h (SET_INTERVAL_PARENT): Use INT_LISPLIKE to test for
10016 a pointer that looks like a lisp object.
10017 (SET_INTERVAL_OBJECT): Don't explicitly compare the object with
10018 zero, instead see whether it's an integer object, since they can't
10019 have intervals.
10020 (GET_INTERVAL_OBJECT): Simply assign to the destination.
10021
52283633
SM
10022 * dispnew.c (allocate_matrices_for_frame_redisplay)
10023 (direct_output_forward_char): Use X(U)INT and make_number as needed
7c752c80
KR
10024 to convert between (unsigned) int values and lisp integers.
10025 * keyboard.c (read_key_sequence): Likewise.
10026 * lread.c (substitute_object_recurse): Likewise.
10027 * fns.c (concat, hash_lookup, hash_remove): Likewise.
52283633
SM
10028 * minibuf.c (do_completion, Fminibuffer_complete_word)
10029 (Fminibuffer_completion_help): Likewise.
7c752c80
KR
10030 * term.c (produce_special_glyphs): Likewise.
10031
10032 * fileio.c (Fwrite_region): Use EQ when comparing lisp objects.
10033 * print.c (print_preprocess, print_object): Likewise.
10034
10035 * search.c (compile_pattern): Use NILP when checking for nil.
10036
74e49b38
KR
10037 * lisp.h (make_number) [!NO_UNION_TYPE && __GNUC__ >= 2 &&
10038 __OPTIMIZE__]: Provide a GNU C macro version that handles
10039 lisp-object unions.
10040 (XSET) [!NO_UNION_TYPE]: Set the value field first, then the type
10041 field, to better cope with ENABLE_CHECKING and calls that modify a
10042 Lisp_Object using its old value.
10043
685e5ed2
GM
100442000-04-04 Gerd Moellmann <gerd@gnu.org>
10045
c407c570
GM
10046 * window.c (compare_window_configurations): Signal an error
10047 if parameters C1 or C2 aren't window configurations.
10048
685e5ed2
GM
10049 * bytecode.c (Fbyte_code): Add a bunch of BEFORE_POTENTIAL_GC/
10050 AFTER_POTENTIAL_GC calls around calls to functions that can
10051 signal an error and thus invoke the debugger.
10052
587a49ab
GM
100532000-04-03 Gerd Moellmann <gerd@gnu.org>
10054
62f20204
GM
10055 * fns.c (Fbase64_decode_region, Fbase64_decode_string): Signal
10056 an error if decoding fails.
10057
587a49ab
GM
10058 * keyboard.c (lispy_mouse_names): Variable removed.
10059 (Vlispy_mouse_stem): New variable.
10060 (syms_of_keyboard): Initialize Vlispy_mouse_stem.
10061 (make_lispy_event) <mouse_click, scroll_bar_click>: Don't abort
10062 for any mouse button number. Increase size of mouse_syms and
10063 button_down_location as needed. Call modify_event_symbol with
10064 different arguments.
10065 (make_lispy_event) <scroll_bar_click> [USE_TOOLKIT_SCROLL_BARS]:
10066 Call modify_event_symbol with different arguments.
10067 (make_lispy_event) <w32_scroll_bar_click> [WINDOWSNT]: Don't abort
10068 for any button number. Call modify_event_symbol with different
10069 arguments.
10070 (modify_event_symbol): Rename NAME_ALIST to NAME_ALIST_OR_STEM.
10071 Accept a string for NAME_ALIST_OR_STEM.
10072
10073 * lisp.h (larger_vector): Add prototype.
10074
10075 * fns.c (larger_vector): Make externally visible.
10076
10077 * termhooks.h (NUM_MOUSE_BUTTONS): Removed.
10078
2d1675e4
SM
100792000-04-02 Stefan Monnier <monnier@cs.yale.edu>
10080
10081 * regex.c (PTR_TO_OFFSET) [!emacs]: Remove.
10082 (RE_MULTIBYTE_P, RE_STRING_CHAR_AND_LENGTH): New macros.
10083 (GET_CHAR_BEFORE_2): Moved from charset.h plus fixed minor bug when
10084 we are between str1 and str2.
10085 (MAX_MULTIBYTE_LENGTH, CHAR_STRING) [!emacs]: Provide trivial default.
10086 (PATFETCH): Use `TRANSLATE'.
10087 (PATFETCH_RAW): Fetch multibyte char if applicable.
10088 (PATUNFETCH): Remove.
10089 (regex_compile): Rely on PATFETCH to do most of the multibyte magic.
10090 When writing a char, write it directly into the pattern buffer rather
10091 than going needlessly through a temp char-array.
10092 (re_match_2_internal): Similarly, rely on RE_STRING_CHAR to do the
10093 multibyte magic and remove the useless `#ifdef emacs'.
10094 (bcmp_translate): Don't compare as multibyte chars when in a unibyte
10095 buffer.
10096
10097 * regex.h (struct re_pattern_buffer): Make field `multibyte'
10098 conditional on `emacs'.
10099
10100 * charset.h (GET_CHAR_BEFORE_2): Moved to regex.c.
10101
cc2d8c6b
KR
101022000-04-01 Ken Raeburn <raeburn@gnu.org>
10103
10104 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P): Expand
10105 non-union-type versions of XMARK and friends here, because XMARK
10106 and friends won't work on an integer field if NO_UNION_TYPE is not
10107 defined.
52283633 10108 (make_number): Define as a function if it's not defined as a macro.
cc2d8c6b 10109
52283633 10110 * composite.c (run_composite_function): Use NILP when checking for nil.
09654086
KR
10111 (syms_of_composite): Delete local var NARGS, pass an int as first
10112 argument to Fmake_hash_table.
10113
2387b382
KR
10114 * editfns.c (text_property_stickiness): Use NILP to test
10115 Lisp_Object boolean value.
10116 (Fmessage_or_box): Don't use NILP to test int variable.
c01fbf95
KR
10117 (Fformat): Use a temporary variable to avoid ENABLE_CHECKING
10118 problems reading from and changing the same lisp value in an
10119 XSETSTRING call.
10120
27660e89
GM
101212000-04-01 Gerd Moellmann <gerd@gnu.org>
10122
10123 * term.c (TN_no_color_video): New variable.
10124 (term_init): Intitialize TN_no_color_video.
10125 (enum no_color_bit): New enumeration.
10126 (MAY_USE_WITH_COLORS_P): New macro.
10127 (turn_on_face): Use it to determine if attributes may be used
10128 combined with colors.
10129
3578db3c
KR
101302000-04-01 Ken Raeburn <raeburn@gnu.org>
10131
10132 * window.c (CURBEG, CURSIZE): Don't overload lisp object lvalues
52283633 10133 with int lvalues via casts; instead, just yield lisp object lvalues.
3578db3c
KR
10134 (enlarge_window): Variable sizep now points to Lisp_Object. Use
10135 proper accessor macros.
10136 (shrink_window_lowest_first): w->top is Lisp_Object; use XINT.
10137 (grow_mini_window): Fix typo getting int value of root->height.
10138
6fc556fd
KR
10139 * xdisp.c (compute_string_pos): Fix order of arguments to
10140 string_pos_nchars_ahead.
10141 (handle_fontified_prop, add_to_log): Pass int, not Lisp_Object, as
10142 count arg to variable-arg routines like Frun_hook_with_args and
10143 Fformat.
587a49ab
GM
10144 (back_to_previous_visible_line_start)
10145 (build_desired_tool_bar_string): Pass Lisp_Object, not int, to
6fc556fd
KR
10146 fixed-arg routines like Fget_char_property and Fmake_string.
10147 (reconsider_clip_changes): Use XINT when comparing integer lisp
10148 objects, or passing them as int arguments.
587a49ab
GM
10149 (mark_window_display_accurate, insert_left_trunc_glyphs)
10150 (append_space, extend_face_to_end_of_line): Use make_number when
6fc556fd
KR
10151 storing or passing integer values as lisp objects.
10152 (set_cursor_from_row, highlight_trailing_whitespace): Use
10153 INTEGERP, not implicit test against zero, for glyph object.
10154 (try_window_id): Don't use make_number when we want an int value.
10155
10156 * xfaces.c (xlfd_symbolic_value): Make last argument a
10157 Lisp_Object, to be consistent with callers.
10158 (Fbitmap_spec_p): Use XINT to get numeric value of height.
10159 (lface_hash): Apply XFASTINT to lisp values before folding in.
10160
10161 * xfns.c (Fx_show_tip): Use make_number to get lisp objects to
10162 fill in window width and height. Pass an int, not a lisp object,
10163 as first arg to Finsert.
10164
6e7b2457
GM
101652000-04-01 Gerd Moellmann <gerd@gnu.org>
10166
610d841e
GM
10167 * xfaces.c (realize_basic_faces): Block input while realizing
10168 the faces.
10169
6e7b2457
GM
10170 * keyboard.c (lispy_mouse_names): Add additional mouse names.
10171
10172 * termhooks.h (NUM_MOUSE_BUTTONS): Increase to 15.
10173
aa110c0c
GM
101742000-03-31 Gerd Moellmann <gerd@gnu.org>
10175
10176 * xterm.c (x_produce_glyphs): When displaying unibyte text
610d841e 10177 or ASCII, handle case that per-char metric is null.
aa110c0c 10178
8801a864
KR
101792000-03-30 Ken Raeburn <raeburn@gnu.org>
10180
c6129d7e
KR
10181 * lisp.h (NO_UNION_TYPE) [ENABLE_CHECKING]: Undef.
10182
52283633
SM
10183 * lisp.h (XCONS, XSTRING, XSYMBOL, XFLOAT, XPROCESS, XWINDOW)
10184 (XSUBR, XBUFFER): Verify correct object type before returning
8801a864
KR
10185 pointer, using eassert.
10186 * frame.h (XFRAME): Likewise.
10187
52283633
SM
10188 * buffer.c (Frename_buffer, Fset_buffer_multibyte)
10189 (swap_out_buffer_local_variables, Fmove_overlay): Don't apply
10190 XSYMBOL, XBUFFER, etc, to values that may be nil or of the wrong type.
8801a864 10191 * data.c (set_internal): Likewise.
52283633
SM
10192 * dispextern.h (WINDOW_WANTS_MODELINE_P)
10193 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
8801a864
KR
10194 * fileio.c (auto_save_1): Likewise.
10195 * insdel.c (check_markers): Likewise.
10196 * marker.c (buf_charpos_to_bytepos, unchain_marker): Likewise.
10197 * undo.c (record_insert): Likewise.
10198 * vmsproc.c (child_sig): Likewise.
10199 * window.c (unshow_buffer, window_loop): Likewise.
10200 * xterm.c (x_erase_phys_cursor): Likewise.
10201
8e7af858
GM
102022000-03-30 Gerd Moellmann <gerd@gnu.org>
10203
10204 * xfns.c (free_image_cache): Free the cache structure itself
10205 last, after all its members have been freed.
10206
10207 * lisp.h (xstrdup): Add prototype.
10208
10209 * alloc.c (xstrdup): Moved here from xfaces.c.
10210 (allocating_for_lisp): Variable removed.
52283633 10211 (lisp_malloc): Block input around the calls to malloc and mem_insert.
8e7af858
GM
10212
10213 * xfaces.c (realize_tty_face): Use find_symbol_value instead
10214 of Fsymbol_value.
10215 (xstrdup): Moved to alloc.c.
10216
e0b8c689
KR
102172000-03-29 Ken Raeburn <raeburn@gnu.org>
10218
b96f9fb7
KR
10219 * scroll.c (CHECK_BOUNDS): Renamed from CHECK.
10220
10221 * emacs.c (main): Fix sense of no-loadup test.
10222
e0b8c689
KR
10223 * config.in (ENABLE_CHECKING): Undef.
10224
10225 * lisp.h (struct interval): Replace "parent" field with a union of
10226 interval pointer and Lisp_Object; add new bitfield to use as
10227 discriminant. Change other flag fields to bitfields.
10228 (CHECK): New macro for consistency checking. If ENABLE_CHECKING
52283633
SM
10229 is defined and the supplied test fails, print a message and abort.
10230 (eassert): New macro. Use CHECK to provide an assert-like facility.
e0b8c689
KR
10231
10232 * intervals.h (NULL_INTERVAL_P): Now applies only to real interval
10233 pointers; abort if the value looks like a lisp object.
52283633
SM
10234 (NULL_INTERVAL_P, NULL_PARENT, HAS_PARENT, HAS_OBJECT, SET_PARENT)
10235 (SET_OBJECT, INTERVAL_PARENT, GET_INTERVAL_OBJECT, COPY_PARENT):
e0b8c689
KR
10236 Modify for new interval parent definition.
10237
52283633
SM
10238 * alloc.c (mark_interval_tree, MARK_INTERVAL_TREE)
10239 (UNMARK_BALANCE_INTERVALS): Update references that need an
e0b8c689
KR
10240 addressable lisp object in the interval structure.
10241 (die): New function.
10242 (suppress_checking): New variable.
10243
10244 * intervals.c (interval_start_pos): Just return 0 if there's no
10245 parent object.
10246
f83c5440
GM
102472000-03-29 Gerd Moellmann <gerd@gnu.org>
10248
10249 * lread.c (read1): Accept `.' (period) as symbol start like in CL
10250 and earlier Emacs versions.
10251
10252 * keyboard.c (Ftop_level): Cancel busy-cursor.
10253
10254 * eval.c (call_debugger): Cancel busy-cursor.
10255
fdce64ff
KH
102562000-03-29 Kenichi Handa <handa@etl.go.jp>
10257
10258 * search.c (Freplace_match): Adjust multibyteness of the current
52283633 10259 buffer and NEWTEXT. Free allocated memory before signaling an error.
fdce64ff 10260
f6a3f532
SM
102612000-03-28 Stefan Monnier <monnier@cs.yale.edu>
10262
10263 * regex.c (analyse_first): New function obtained by ripping out most
10264 of re_compile_fastmap and generalizing it a little bit so that it
10265 can also just return whether a given (sub)pattern can match the empty
10266 string or not.
10267 (regex_compile): Use `analyse_first' to decide whether the loop-check
10268 needs to be done or not for *, +, *? and +? (the loop check is costly
10269 for non-greedy repetition).
10270 (re_compile_fastmap): Delegate the actual work to `analyse_first'.
10271
e9b309ac
DL
102722000-03-28 Dave Love <fx@gnu.org>
10273
52283633 10274 * s/gnu-linux.h (GC_SETJMP_WORKS): Define for i386, sparc, m68k, alpha.
bb15bd9a 10275
e9b309ac
DL
10276 * alloc.c: Include stdio.h. Test STDC_HEADERS, not __STDC__.
10277
ed0767d8
SM
102782000-03-27 Stefan Monnier <monnier@cs.yale.edu>
10279
10280 * regex.c (REGEX_FREE_STACK, RESET_FAIL_STACK): Make them usable as
10281 an expression.
10282 (enum re_opcode_t): Update description of succeed_n.
10283 (PATFETCH): Always define.
10284 (regex_compile): Use lookahead rather than PATUNFETCH (for repetition
10285 operators, char classes, shy-groups and intervals).
10286 Optimize special cases of intervals so as to only use succeed_n and
10287 jump_n when really needed.
10288 (re_compile_fastmap): Simplify handling of jump_n and succeed_n now
10289 that we don't have to handle the special cases any more.
10290 Simplify on_failure_jump handling as well.
10291
e11e7e46
JR
102922000-03-28 Jason Rumney <jasonr@gnu.org>
10293
10294 * lread.c (Fload): Move safe_p definition to above #ifdef DOS_NT.
10295
88faab89
GM
102962000-03-27 Gerd Moellmann <gerd@gnu.org>
10297
182ff242
GM
10298 * s/freebsd.h (GC_SETJMP_WORKS): Define.
10299
10300 * s/msdos.h (GC_SETJMP_WORKS): Define.
427ec082 10301
182ff242
GM
10302 * alloc.c (mark_maybe_object): New function.
10303 (mark_memory): Use it.
10304 (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK): New macros.
10305 (setjmp_tested_p, longjmp_done): New variables.
10306 (test_setjmp): New function.
10307 (mark_stack) [!GC_SETJMP_WORKS]: Call test_setjmp.
10308 (init_alloc): Initialize setjmp_tested_p and longjmp_done.
10309
c1005d06
GM
10310 * xdisp.c (face_before_or_after_it_pos): Pass multibyteness
10311 to DEC_TEXT_POS and INC_TEXT_POS.
10312
10313 * dispnew.c (direct_output_for_insert): Use DEC_TEXT_POS
10314 with parameter MULTIBYTE_P.
10315
52283633 10316 * dispextern.h (INC_TEXT_POS, DEC_TEXT_POS): Add parameter MULTIBYTE_P.
c1005d06 10317
7439e5b9 10318 * editfns.c (Fsubst_char_in_region): Don't use INC_POS in unibyte
182ff242
GM
10319 buffers because it looks for multibyte character byte sequences
10320 which don't exist in unibyte text.
7439e5b9 10321
d9c545da
GM
10322 * xterm.h (x_specified_cursor_type, x_copy_color): Add prototypes.
10323
11fd416e 10324 * xfaces.c (register_color, unregister_color, unregister_colors)
d9c545da
GM
10325 [DEBUG_X_COLORS]: New functions.
10326 (x_free_colors) [DEBUG_X_COLORS]: Unregister colors.
10327
10328 * xfns.c (x_set_cursor_color): Get color reference counts right.
10329
10330 * xterm.c (x_copy_color): New function.
10331 (x_alloc_nearest_color) [DEBUG_X_COLORS]: Call register_color.
10332
10333 * buffer.h (MAX_PER_BUFFER_VARS): Renamed from MAX_BUFFER_LOCAL_VARS.
10334 (PER_BUFFER_VAR_OFFSET): Renamed from BUFFER_LOCAL_VAR_OFFSET.
10335 (PER_BUFFER_VAR_IDX): Renamed from BUFFER_LOCAL_VAR_IDX.
10336 (PER_BUFFER_VALUE_P): Renamed from BUFFER_HAS_LOCAL_VALUE_P.
10337 (SET_PER_BUFFER_VALUE_P): Renamed from SET_BUFFER_HAS_LOCAL_VALUE_P.
10338 (PER_BUFFER_IDX): Renamed from BUFFER_LOCAL_IDX.
10339 (PER_BUFFER_DEFAULT): Renamed from BUFFER_LOCAL_DEFAULT_VALUE.
10340 (PER_BUFFER_VALUE): Renamed from BUFFER_LOCAL_VALUE.
10341 (PER_BUFFER_SYMBOL): Renamed from BUFFER_LOCAL_SYMBOL.
10342 (PER_BUFFER_TYPE): Renamed from BUFFER_LOCAL_TYPE.
10343
11fd416e
GM
10344 * category.c, data.c, syntax.c, print.c, lread.c: Use new macro
10345 names for handling per-buffer variables.
d9c545da
GM
10346
10347 * buffer.c (buffer_permanent_local_flags): Use MAX_PER_BUFFER_VARS
10348 instead of MAX_BUFFER_LOCAL_VARS.
10349 (last_per_buffer_idx): Renamed from max_buffer_local_idx.
10350
10351 * xfaces.c (lookup_face): Don't assert FACE_SUITABLE_FOR_CHAR_P.
10352
88faab89
GM
10353 * xfns.c (x_specified_cursor_type): New function.
10354 (x_set_cursor_type): Use it.
10355
10356 * buffer.h (struct buffer): Add cursor_type.
10357
d80f42b7
SM
103582000-03-26 Stefan Monnier <monnier@cs.yale.edu>
10359
10360 * regex.c (enum re_opcode_t): New opcode on_failure_jump_nastyloop.
52283633
SM
10361 (print_partial_compiled_pattern, re_compile_fastmap):
10362 Handle new opcode.
d80f42b7
SM
10363 (regex_compile): Use on_failure_jump_nastyloop for non-greedy loops.
10364 (re_match_2_internal): Add code for on_failure_jump_nastyloop when
10365 executing it as well as when popping it off the stack to find infinite
10366 loops in non-greedy repetition operators.
10367
89e80928
GM
103682000-03-26 Gerd Moellmann <gerd@gnu.org>
10369
3d4ff2dd
GM
10370 * doc.c (Qfunction_documentation): New variable.
10371 (syms_of_doc): Initialize Qfunction_documentation.
10372 (Fdocumentation): If FUNCTION is a symbol with non-nil
10373 `function-documentation' property, return a documentation derived
10374 from that.
10375
bd96bd79
GM
10376 * buffer.c (syms_of_buffer): Add default-cursor-type.
10377 (init_buffer_once): Don't let cursor_type have a local value
10378 in every buffer.
10379
19d1bc27
GM
10380 * xterm.c (x_display_and_set_cursor): Choose cursor depending
10381 on buffer-local value of cursor_type.
10382 (x_draw_bar_cursor): Add parameter WIDTH.
10383
10384 * buffer.c (reset_buffer): Initialize buffer's cursor_type.
10385 (init_buffer_once): Set default cursor_type value to t.
10386 Mark cursor_type as local everywhere.
10387 (syms_of_buffer): New per-buffer variable cursor-type.
10388
89e80928
GM
10389 * buffer.h (struct buffer): Remove member local_var_flags,
10390 add local_flags.
10391 (MAX_BUFFER_LOCAL_VARS): New macro.
10392 (BUFFER_LOCAL_VAR_OFFSET, BUFFER_LOCAL_VAR_IDX)
10393 (BUFFER_HAS_LOCAL_VALUE_P, SET_BUFFER_HAS_LOCAL_VALUE_P)
10394 (BUFFER_LOCAL_IDX, BUFFER_LOCAL_DEFAULT_VALUE, BUFFER_LOCAL_VALUE)
10395 (BUFFER_LOCAL_SYMBOL, BUFFER_LOCAL_TYPE): New macros.
10396
52283633 10397 * print.c (print_object): Use new macros for per-buffer variables.
89e80928
GM
10398
10399 * category.c (Fset_category_table): Use new macros for per-buffer
10400 variables.
10401
10402 * buffer.c (buffer_permanent_local_flags): Make a char array.
10403 (max_buffer_local_idx): New variable.
10404 (reset_buffer_local_variables, Fbuffer_local_variables): Rewritten
10405 for new handling of per-buffer variables.
10406 (buffer_slot_type_mismatch): Use new macros for per-buffer vars.
10407 (init_buffer_once): Initialize per-buffer vars differently.
10408 Set max_buffer_local_idx.
10409
10410 * syntax.c (Fset_syntax_table): Use new macros for per-buffer
10411 variables.
10412
52283633 10413 * lread.c (defvar_per_buffer): Use new macros for per-buffer variables.
89e80928
GM
10414
10415 * data.c (do_symval_forwarding, store_symval_forwarding)
10416 (find_symbol_value, set_internal, default_value, Fset_default)
10417 (Fkill_local_variable, Flocal_variable_p): Use new macros for
10418 per-buffer variables.
10419
10420 * Makefile.in (bootstrap-emacs): Use `mv -f' instead of `mv'.
10421
9a0dd3dc
GM
104222000-03-24 Gerd Moellmann <gerd@gnu.org>
10423
b68c375f
GM
10424 * xterm.c (x_term_init): Unblock input around call1 of
10425 Qvendor_specific_keysyms.
10426
9a0dd3dc
GM
10427 * syntax.c (open_paren_in_column_0_is_defun_start): New variable.
10428 (find_defun_start): Consider an open parenthesis in column 0
10429 a defun start only if open_paren_in_column_0_is_defun_start is set.
10430 (syms_of_syntax): New variable open-paren-in-column-0-is-defun-start.
10431
7973e637
SM
104322000-03-24 Stefan Monnier <monnier@cs.yale.edu>
10433
10434 * eval.c (Fautoload): Add entry in load-history (if after dump).
10435 * lread.c (load-history): Update docstring.
10436
39210e90
GM
104372000-03-24 Gerd Moellmann <gerd@gnu.org>
10438
10439 * indent.c (Fvertical_motion): Always use the current buffer.
10440 Temporarily change the window's buffer, if necessary.
10441
72db3ab5
GM
104422000-03-23 Gerd Moellmann <gerd@gnu.org>
10443
10444 * xterm.c (fast_find_position): Make sure not to consider rows
10445 not visible in the window.
10446
990b2375
SM
104472000-03-22 Stefan Monnier <monnier@cs.yale.edu>
10448
10449 * regex.c (enum syntaxcode): Provide default for non-Emacs.
10450 (re_compile_fastmap, re_match_2_internal): Undo Dave's previous fix.
10451
ff4df011
JR
104522000-03-22 Jason Rumney <jasonr@gnu.org>
10453
10454 * w32menu.c (single_submenu): Set help string to NULL if none.
10455 (w32_menu_show): Set help string correctly.
10456 (add-menu-item): Set help string in MIIM_DATA for menu item.
10457 Load SetMenuItemInfoA explicitly.
10458 (w32_menu_display_help): New function.
427ec082 10459
ff4df011
JR
10460 * w32fns.c (w32_wnd_proc): Handle WM_MENUSELECT message.
10461 (QCdata): Moved to xdisp.c.
10462
10463 * w32term.c (w32_read_socket): Handle WM_MENUSELECT message.
10464 (Vw32_charset_to_codepage_alist): Removed.
10465 (Vw32_charset_info_alist): New variable.
52283633
SM
10466 (Qw32_charset_[ansi, default, symbol, shiftjis, hangul, gb2312)
10467 (chinesebig5, oem, easteurope, turkish, baltic, russian, arabic)
10468 (greek, hebrew, thai, johab, mac, unicode]): New symbols.
ff4df011
JR
10469 (x_produce_glyphs): Remove out of date #ifdef 0'd section. Replace
10470 with TODO comment.
10471 (w32_codepage_for_font): Use Vw32_charset_info_alist.
10472 (syms_of_w32term): Remove Vw32_charset_to_codepage_alist.
10473 Define Vw32_charset_info_alist and w32_charset symbols.
10474
104752000-03-22 Jason Rumney <jasonr@gnu.org>
10476
10477 * makefile.nt (w32bdf.obj): Update dependencies.
10478
10479 * w32bdf.c: Include frame.h and dispextern.h before fontset.h.
10480
10481 * w32fns.c: Include fontset.h after dispextern.h.
10482 (Fx_create_frame): Do not create fontset.
10483 (w32_load_system_font): Doc fix.
10484 (Fx_close_connection): Free full_name if it is not shared.
10485
10486 * w32term.c: Include fontset.h after dispextern.h.
52283633
SM
10487 (x_get_glyph_face_and_encoding): New parameter two_byte_p.
10488 Callers updated.
ff4df011
JR
10489 (w32_per_char_metric): If PCM is invalid, delete and return NULL.
10490 (x_get_char_and_face_encoding): Use FACE_FOR_CHAR to get face_id.
10491 (w32_font_is_double_byte): New function, needs body.
10492 (x_append_glyph): Set glyph->glyph_not_available_p.
10493 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
10494 it->charset. If it->multibyte_p is zero and it->c is a multibyte
10495 character, convert it to a unibyte character.
10496 (struct glyph_string): Delete member `charset'.
10497 (W32_TEXTOUT): Temporarily remove charset_dim until another way of
10498 calculating it is found.
10499 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
10500 the case that per char metric is not available correctly.
10501 (x_fill_glyph_string): Handle the case that the specific glyph is
10502 not available correctly.
10503 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
10504 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
10505 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
10506 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
10507 fontset. Don't call FS_LOAD_FONT.
10508
439d5cb4
KR
105092000-03-22 Ken Raeburn <raeburn@gnu.org>
10510
10511 * intervals.h (NULL_INTERVAL): Cast to INTERVAL type.
10512 (INT_LISPLIKE): New macro.
10513 (NULL_INTERVAL_P): Use it.
52283633
SM
10514 (INTERVAL_HAS_PARENT, INTERVAL_HAS_OBJECT, SET_INTERVAL_PARENT)
10515 (SET_INTERVAL_OBJECT, INTERVAL_PARENT, COPY_INTERVAL_PARENT)
10516 (GET_INTERVAL_OBJECT, INTERVAL_PARENT_OR_NULL): New macros.
439d5cb4
KR
10517
10518 * alloc.c (make_interval, gc_sweep): Use new macros; eliminate all
10519 explicit references to "parent" field of struct interval and
10520 associated unclean type conversions.
52283633
SM
10521 * intervals.c (create_root_interval, root_interval, rotate_right)
10522 (rotate_left, balance_possible_root_interval, split_interval_right)
10523 (split_interval_left, interval_start_pos, find_interval)
10524 (next_interval, previous_interval, update_interval)
10525 (adjust_intervals_for_insertion, delete_node, delete_interval)
10526 (adjust_intervals_for_deletion, merge_interval_right)
10527 (merge_interval_left, reproduce_tree, graft_intervals_into_buffer)
10528 (copy_intervals_to_string): Likewise.
439d5cb4
KR
10529 * intervals.h (AM_LEFT_CHILD, AM_RIGHT_CHILD, RESET_INTERVAL):
10530 Likewise.
10531 * syntax.c (update_syntax_table): Likewise.
10532
10533 * intervals.c (reproduce_tree_obj): New function, like
10534 reproduce_tree but takes a Lisp_Object for the parent. Declare
10535 with prototype.
10536 (graft_intervals_into_buffer): Use it when appropriate.
10537 (reproduce_tree): Declare with prototype.
10538 (balance_possible_root_interval): Check that the parent is a lisp
10539 object before trying to examine its type.
10540
ee1c5b21
GM
105412000-03-22 Gerd Moellmann <gerd@gnu.org>
10542
10543 * xfaces.c (lface_same_font_attributes_p): Compare font attributes
10544 as strings only if both are known to be strings.
10545
10546 * s/openbsd.h (LIBS_TERMCAP): Undef.
10547
1fb352e0
SM
105482000-03-21 Stefan Monnier <monnier@cs.yale.edu>
10549
10550 * regex.c (CHAR_CHARSET, CHARSET_LEADING_CODE_BASE): Add default
10551 definitions for non-Emacs compilation.
10552 (enum re_opcode_t): Remove (not)wordchar and move (not)syntaxspec
10553 outside of `#ifdef emacs'.
10554 (print_partial_compiled_pattern): Update.
10555 (regex_compile): Use (not)syntaxspec(Sword) instead of (not)wordchar.
10556 (re_compile_fastmap): Merge handling of charset and charset_not (for
10557 emacs and non-emacs compilation as well).
10558 Similarly for (not)categoryspec and (not)syntaxspec.
10559 Don't use the fastmap when reaching `anychar' since the added
10560 complexity is not justified.
10561 (re_match_2_internal): Merge (not)wordchar (emacs and non-emacs)
10562 and (not)syntaxspec. Merge (not)categoryspec.
10563
fdaa1f77
KH
105642000-03-22 Kenichi Handa <handa@etl.go.jp>
10565
52283633
SM
10566 * dispextern.h [!HAVE_WINDOW_SYSTEM] (FACE_SUITABLE_FOR_CHAR_P)
10567 (FACE_FOR_CHAR): Define them differently for the configuration of
ff1a0d8e 10568 --without-x.
fdaa1f77 10569
d152fb46
DL
105702000-03-21 Dave Love <fx@gnu.org>
10571
10572 * fontset.c (Fset_fontset_font, Ffontset_font): Fix newlines in
10573 doc string.
10574
d2cafc8c
GM
105752000-03-21 Gerd Moellmann <gerd@gnu.org>
10576
10577 * xfaces.c (check_lface_attrs) [GLYPH_DEBUG]: Fix syntax error.
10578 (lface_fully_specified_p): Don't check contents of
10579 LFACE_FONT_INDEX because that attribute is optional.
10580 (realize_x_face): Remove now unwarranted xassert.
10581
9111d4b5
KH
105822000-03-21 Kenichi HANDA <handa@etl.go.jp>
10583
10584 The following changes are to make font selection based on
10585 characters, not charset. In addition, they recover fontset
10586 facilities while utilizing the new font selection mechanism.
10587
6c4bfdc0
KH
10588 * Makefile.in (fontset.o): Depend on dispextern.h.
10589
10590 * alloc.c (mark_face_cache): Don't mark face->registry.
10591
9111d4b5
KH
10592 * dispextern.h (struct glyph): New member glyph_not_available_p.
10593 Use 22 bits for face_id.
10594 (enum lface_attribute_index): Add LFACE_FONT_INDEX.
10595 (struct face): Delete member registry, new member ascii_face.
10596 (FACE_SUITABLE_FOR_CHAR_P): Renamed from
10597 FACE_SUITABLE_FOR_CHARSET_P. Caller changed.
10598 (FACE_FOR_CHAR): Renamed from FACE_FOR_CHARSET. Caller changed.
52283633 10599 (struct it): Delete member charset, new member glyph_not_available_p.
9111d4b5
KH
10600
10601 * fontset.h (FONT_NOT_OPENED, FONT_NOT_FOUND): Macros removed.
10602 (struct fontset_info, struct fontset_data): Structs removed.
52283633
SM
10603 (allloc_fontset_data, free_fontset_data, fs_regiser_fontset)
10604 (Vglobale_fontset_alist, font_idx_temp): Externs removed.
9111d4b5 10605 (fs_load_font, fs_query_fontset): Adjusted for new argument.
52283633
SM
10606 (fs_free_face_fontset, fontset_font_pattern)
10607 (face_suitable_for_char_p, face_for_char)
10608 (make_fontset_for_ascii_face): Extern them.
9111d4b5
KH
10609 (FS_LOAD_FONT): Adjusted for the change of fontset implementation.
10610 (FS_LOAD_FACE_FONT): New macro.
10611
10612 * fontset.c: All codes rewritten or adjusted for the change of
10613 fontset implementation. Now fontset is represented by char table.
52283633
SM
10614 (Vglobal_fontset_alist, font_idx_temp, my_strcasetbl):
10615 Variables removed.
9111d4b5 10616 (my_strcasecmp): Function removed.
52283633 10617 (Vfontset_table, next_fontset_id, Vdefault_fontset): New variables.
9111d4b5 10618 (AREF, ASIZE): New macros.
52283633
SM
10619 (FONTSET_FROM_ID, FONTSET_ID, FONTSET_NAME, FONTSET_FRAME)
10620 (FONTSET_ASCII, FONTSET_BASE, BASE_FONTSET_P, FONTSET_REF)
10621 (FONTSET_REF_VIA_BASE, FONTSET_SET): New macros.
10622 (fontset_ref, fontset_ref_via_base, fontset_set, make_fontset)
10623 (fontset_id_valid_p, font_family_registry, fontset_name)
10624 (fontset_ascii, free_face_fontset, face_suitable_for_char_p)
10625 (face_for_char, make_fontset_for_ascii_face, fontset_font_pattern):
9111d4b5
KH
10626 New functions.
10627 (fs_load_font): New arg FACE. Caller changed.
10628 (fs_query_fontset): Argument changed. Caller changed.
10629 (Fquery_fontset): call fs_query_fontset.
10630 (fs_register_fontset, alloc_fontset_data, free_fontset_data):
10631 Functions removed.
52283633
SM
10632 (clear_fontset_elements, check_registry_encoding)
10633 (check_fontset_name): New functions.
9111d4b5
KH
10634 (syms_of_fontset): Set char-table-extra-slots property of fontset
10635 to 3. Staticpro and initialize Vfontset_table and
10636 Vdefault_fontset. Defsubr fontset_font and fontset_list.
10637
10638 * frame.h (struct frame): Member `fontset_data' removed.
10639 (FRAME_FONTSET_DATA): Macro removed.
10640
10641 * frame.c (make_frame): Don't allocate f->fontset_data.
10642 (Fdelete_frame): Don't free f->fontset_data.
10643
6c4bfdc0
KH
10644 * msdos.c (XMenuActivate): Args to lookup_derived_face changed.
10645
9111d4b5
KH
10646 * xdisp.c (charset_at_position): Function removed.
10647 (init_iterator): Don't set member charset of struct `it'.
52283633
SM
10648 (handle_face_prop, reseat_to_string, set_iterator_to_next)
10649 (next_element_from_display_vector, insert_left_trunc_glyphs):
9111d4b5
KH
10650 Likewise.
10651 (face_before_or_after_it_pos): Call FACE_FOR_CHAR, not
10652 FACE_FOR_CHARSET.
52283633
SM
10653 (get_next_display_element, append_space)
10654 (extend_face_to_end_of_line): Likewise.
9111d4b5
KH
10655
10656 * xfaces.c (Qx_charset_registry, Vface_default_registry):
10657 Variables removed.
10658 (clear_font_table, frame_update_line_height, load_face_font):
10659 Adjusted for the change of fontset implementation.
10660 (load_face_fontset_font): Function removed.
10661 (pixel_point_size): New function.
10662 (font_list): Argument type changed. Caller changed.
10663 (LFACE_FONT): New macro.
10664 (check_lface_attrs): Check attr[LFACE_FONT_INDEX].
10665 (set_lface_from_font_name): Type of arg FONTNAME is changed to
10666 Lisp_Object. Determine the font name by actually loading a font
10667 by the specified pattern. Set LFACE_FONT (lface) to the specified
10668 pattern. Even if a font is not found, don't try alternatives.
10669 (Finternal_set_lisp_face_attribute): Handle `font' slot in lface.
10670 (set_font_frame_param): If `font' is specified in lface, use it.
10671 (Finternal_get_lisp_face_attribute): Handle `font' slot in lface.
10672 (lface_same_font_attributes_p): Likewise.
10673 (make_realized_face): Arguent changed. Caller changed. Set
10674 face->ascii_face to face itself.
10675 (free_realized_face): Free face->fontset if face is for ASCII.
52283633
SM
10676 (face_suitable_for_iso8859_1_p, face_suitable_for_charset_p)
10677 (deduce_unibyte_registry, x_charset_registry): Functions removed.
9111d4b5
KH
10678 (free_realized_multibyte_face): New function.
10679 (lookup_face, lookup_named_face, lookup_derived_face): Argument
10680 changed. Caller changed.
10681 (try_font_list): Argument type changed.
10682 (face_fontset): Check `font' slot of ATTRS, not `family' slot.
10683 (choose_face_font): Argument changed. Handle fontset properly.
10684 (choose_face_fontset_font): Function removed.
10685 (realize_default_face, realize_named_face): Don't remove the
10686 former face here.
10687 (realize_face): Argument changed. Caller changed. Remove face
52283633 10688 with the arg former_face_id in advance. Load font for the new face.
9111d4b5
KH
10689 (realize_x_face): Argument changed. Caller changed. For a
10690 multibyte character, share fontset with base_face. For a single
52283633 10691 byte character, make a new realized fontset. Don't load a font here.
9111d4b5
KH
10692 (realize_tty_face): Argument changed. Caller changed.
10693 (compute_char_face): Call FACE_FOR_CHAR, not FACE_FOR_CHARSET.
10694 (face_at_buffer_position): Don't check multibyte_p for returning
10695 DEFAULT_FACE_ID.
10696 (face_at_string_position): Call FACE_SUITABLE_FOR_CHAR_P, not
10697 FACE_SUITABLE_FOR_CHARSET_P.
10698 (syms_of_xfaces): Remove code for Qx_charset_registry and
10699 Vface_default_registry.
10700
6c4bfdc0
KH
10701 * xterm.c: Include fontset.h after dispextern.h. Undo the changes
10702 related to PER_CHAR_METRIC done by Gerd on 2000-03-03.
9111d4b5
KH
10703 (x_per_char_metric): Don't try FONT->default_char. Even if
10704 pcm->width is zero, glyph bits may exist.
10705 (x_encode_char): Always initialize char2b->byte1.
10706 (x_get_char_face_and_encoding): Call FACE_FOR_CHAR to get face_id.
52283633 10707 (x_get_glyph_face_and_encoding): New arg two_byte_p. Caller changed.
9111d4b5
KH
10708 (x_append_glyph): Set glyph->glyph_not_available_p.
10709 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
10710 it->charset. Handle the case that per char metric is not
10711 available. If it->multibyte_p is zero and it->c is a multibyte
10712 character, convert it to a unibyte character.
10713 (struct glyph_string): Delete member `charset'.
10714 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
10715 the case that per char metric is not available correctly.
10716 (x_fill_glyph_string): Handle the case that the specific glyph is
10717 not available correctly.
10718 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
10719 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
10720 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
10721 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
10722 fontset. Don't call FS_LOAD_FONT.
10723
10724 * xfns.c (Fx_create_frame): Don't cal fs_register_fontset.
10725 (x_create_tip_frame): Likewise.
10726 (Fx_close_connection): Free full_name of font_info.
10727
10728 * fns.c (optimize_sub_char_table): New function.
10729 (Foptimize_char_table): New function.
10730 (syms_of_fns): Defsubr Soptimize_char_table.
10731
b33dd3b0
GM
107322000-03-20 Gerd Moellmann <gerd@gnu.org>
10733
10734 * buffer.c (Fset_buffer_modified_p): Set update_mode_lines
10735 only if buffer is displayed in some window.
10736
10737 * xdisp.c (handle_single_display_prop): Initialize local `value'.
10738 (try_window_reusing_current_matrix): Don't call scroll run
10739 function if run's current and desired position are the same;
10740 this prevents cursor flickering.
10741
4e8a9132
SM
107422000-03-19 Stefan Monnier <monnier@cs.yale.edu>
10743
10744 * regex.h (RE_TRANSLATE. RE_TRANSLATE_P): Moved to regex.c.
10745
10746 * regex.c (RE_STRING_CHAR): New macro.
10747 (GET_CHAR_AFER_2): Remove.
10748 (RE_TRANSLATE, RE_TRANSLATE_P): New macros moved from regex.h.
10749 (enum re_opcode_t): Remove on_failure_jump_exclusive.
10750 (print_partial_compiled_pattern, re_compile_fastmap)
10751 (re_match_2_internal): Remove on_failure_jump_exclusive.
10752 (regex_compile): Turn optimizable P+ loops into PP*, so that the
10753 optimization only need to work for * (ie. can use of_keep_string_jump).
10754 Remove the special case for .*\n since it is now covered by the general
10755 optimization.
10756 (re_search_2): Don't bother with `room'.
10757 (skip_one_char): New function.
10758 (skip_noops): Simplify since `memory' is not needed any more.
10759 (mutually_exclusive_p): Restructure slightly to use `switch' and
10760 add handling for "all" remaining cases.
10761 (re_match_2_internal): Change on_failure_jump_smart to use
10762 on_failure_keep_string_jump (and redirect the end-of-loop jump)
10763 rather than on_failure_jump_exclusive.
10764
2136fdd4
GM
107652000-03-19 Gerd Moellmann <gerd@gnu.org>
10766
10767 * xfns.c (select_visual): Don't set dpyinfo->n_planes to the
10768 number of bits per RGB because it's everywhere used as the depth
10769 of the visual.
10770
10771 * term.c (calculate_costs): Remove code dealing with X frames.
10772
18e21ce8 107732000-03-19 Richard M. Stallman <rms@gnu.org>
e53ae11c
RS
10774
10775 * lread.c (syms_of_lread): Doc fix for load-convert-to-unibyte.
10776
d7b511c4
GM
107772000-03-18 Gerd Moellmann <gerd@gnu.org>
10778
10779 * lread.c (read_integer): Unread the last char not consumed.
10780
16b5d424
GM
107812000-03-17 Gerd Moellmann <gerd@gnu.org>
10782
10783 * xterm.c (x_update_window_cursor): Don't update in frames
d7b511c4 10784 which are in the process of being deleted.
16b5d424 10785
1fa28578
GM
107862000-03-16 Gerd Moellmann <gerd@gnu.org>
10787
83488cce
GM
10788 * Makefile.in (mostlyclean): Add `*.core'.
10789 (clean): Add `bootstrap-emacs'.
10790
1fa28578
GM
10791 * lread.c (read_integer): New function.
10792 (read1): Support read syntax #o, #x, #b, #r.
10793
99633e97
SM
107942000-03-15 Stefan Monnier <monnier@cs.yale.edu>
10795
1fa28578
GM
10796 * regex.c (re_match_2): Fix string shortening (to fit `stop') to
10797 make sure POINTER_TO_OFFSET gives the same value before and after
10798 PREFETCH. Use `dfail' to guarantee "atomic" matching.
99633e97
SM
10799 (PTR_TO_OFFSET): Use POINTER_TO_OFFSET.
10800 (debug): Now only active if > 0 rather than if != 0.
10801 (DEBUG_*): Update for the new meaning of `debug'.
1fa28578
GM
10802 (print_partial_compiled_pattern): Add missing `succeed' case. Use
10803 CHARSET_* macros in the charset(_not) branch. Fix off-by-two bugs
10804 in `succeed_n', `jump_n' and `set_number_at'.
99633e97
SM
10805 (store_op1, store_op2, insert_op1, insert_op2)
10806 (at_begline_loc_p, at_endline_loc_p): Add prototype.
1fa28578
GM
10807 (group_in_compile_stack): Move to after its arg's types are
10808 declared and add a prototype.
99633e97 10809 (PATFETCH): Define in terms of PATFETCH_RAW.
52283633 10810 (GET_UNSIGNED_NUMBER): Add the usual `do { ... } while(0)' wrapper.
99633e97 10811 (QUIT): Redefine as a nop except for NTemacs.
1fa28578
GM
10812 (regex_compile): Handle intervals {,M} as if it was {0,M}. Fix
10813 indentation of the greedy-op and shy-group code.
99633e97
SM
10814 (at_(beg|end)line_loc_p): Fix argument's types.
10815 (re_compile_fastmap): Ifdef out failure_stack_ptr to shut up gcc.
10816 (re_search_2): Use POS_AS_IN_BUFFER. Simplify `room' computation.
10817 (MATCHING_IN_FIRST_STRING): Remove.
1fa28578
GM
10818 (re_match_2): Use POS_AS_IN_BUFFER. Ifdef out failure_stack_ptr
10819 to shut up gcc. Use FIRST_STRING_P and POINTER_TO_OFFSET. Use
10820 QUIT unconditionally.
99633e97 10821
699238d9
GM
108222000-03-15 Gerd Moellmann <gerd@gnu.org>
10823
10824 * minibuf.c (Fminibuffer_complete): Set point to ZV if finding
10825 a sole completion.
10826
10827 * process.c (send_process): Add a hint that the function
10828 can call Lisp code to its comment.
10829
10830 * lread.c (load_dangerous_libraries): New variable.
10831 (Vbytecomp_version_regexp): New variable.
10832 (safe_to_load_p): New function.
10833 (Fload): Handle files not compiled with Emacs specially.
10834 (syms_of_lread): New Lisp variable load-dangerous-libraries.
10835
34e23e5a
GM
108362000-03-14 Gerd Moellmann <gerd@gnu.org>
10837
9c763cca
GM
10838 * lisp.h (free_frame_xic) [HAVE_X_I18N]: Add missing semicolon.
10839
10840 * xterm.c (xim_close_dpy, xim_initialize): Use X11R6-style XIM
10841 support functions only if HAVE_X11R6_XIM is defined.
10842 (xim_instantiate_callback): Define only if HAVE_X11R6_XIM.
10843
10844 * s/sol2.h (INHIBIT_X11R6_XIM): Define.
10845
10846 * xfns.c (X_I18N_INHIBITED): Don't define.
52283633 10847 (create_frame_xic): Remove conditional compilation on X_I18N_INHIBITED.
9c763cca
GM
10848 (x_kill_gs_process, x_window): Use FRAME_X_VISUAL.
10849
10850 * config.in (HAVE_X_I18N): Moved here from xterm.h.
10851 (HAVE_X11R6_XIM): Define.
10852
10853 * xterm.h (HAVE_X_I18N) [HAVE_X11R6]: Moved to config.in.
10854
34e23e5a
GM
10855 * xterm.c (x_term_init): Add support for X resource `synchronous'.
10856 If set, call XSynchronize.
10857
66f0296e
SM
108582000-03-13 Stefan Monnier <monnier@cs.yale.edu>
10859
34e23e5a
GM
10860 * regex.c: Declare a new type `re_char' used throughout the code
10861 for the string char type. It's `const unsigned char' to match the
10862 rest of Emacs. Consistently make sure all pointers to strings use
52283633 10863 it and make sure all pointers into the pattern use `unsigned char'.
66f0296e 10864 (re_match_2_internal): Use `PREFETCH+STRING_CHAR' instead of
34e23e5a
GM
10865 GET_CHAR_AFTER_2. Also merge wordbound and notwordbound to reduce
10866 code duplication.
66f0296e
SM
10867
10868 * charset.h (GET_CHAR_AFTER_2): Remove.
10869 (GET_CHAR_BEFORE_2): Use unsigned chars, like everywhere else.
10870
854a025c
KR
108712000-03-12 Ken Raeburn <raeburn@gnu.org>
10872
10873 * Makefile.in (temacs): Evaluate ALL_LDFLAGS into a temporary
10874 variable before the invocation of YMF_PASS_LDFLAGS, in case both
10875 of them try to use backquotes.
10876
b9d2c7e2
DL
108772000-03-12 Dave Love <fx@gnu.org>
10878
10879 * unexelf.c: Restore changes of 1999-10-19.
10880 (unexec): Don't adjust bss for sbss type SHT_PROGBITS; otherwise
10881 fix its type and alignment; copy it from current process.
10882
5e5dff44
GM
108832000-03-12 Gerd Moellmann <gerd@gnu.org>
10884
9b2f3c38
GM
10885 * atimer.c (cancel_atimer): Break out of the loop as soon as timer
10886 has been found. Fix bug not computing timer's predecessor.
10887
427ec082 10888 * fileio.c (Fread_file_name): Handle case that DIR contains a
9172b88d
GM
10889 file name.
10890
e1cff360
GM
10891 * window.c (Fsave_window_excursion): Doc fix.
10892
52283633 10893 * xfns.c (x_defined_color): Rewritten to use x_allocate_nearest_color.
5e5dff44 10894
e411ce4b
EZ
108952000-03-12 Eli Zaretskii <eliz@is.elta.co.il>
10896
10897 * msdos.c (vga_installed): New function, code moved from
10898 dos_set_window_size.
10899 (Qbar, Qcursor_type, outside_cursor): New variables.
10900 (syms_of_msdos): Intern and staticpro them.
10901 (dos_ttraw) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Save the cursor
10902 shape used outside Emacs when called for the first time.
10903 (dos_ttcooked) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Restore the
10904 cursor shape used outside Emacs.
10905 (msdos_set_cursor_shape, IT_set_cursor_type): New functions.
10906 (IT_frame_up_to_date): Call IT_set_cursor_type, in case the cursor
10907 type has changed.
10908 (IT_set_frame_parameters): Call IT_set_cursor_type if the frame
10909 parameters specify the cursor. Make qreverse a global
10910 variable (renamed to Qreverse).
10911
80460654
GM
109122000-03-09 Gerd Moellmann <gerd@gnu.org>
10913
10914 * fns.c (Fy_or_n_p): Cancel busy-cursor.
10915
95cd4c40
SM
109162000-03-08 Stefan Monnier <monnier@cs.yale.edu>
10917
10918 This is a big redesign of failure-stack and register handling, prompted
10919 by bugs revealed when trying to add shy-groups. Overall, what happened
10920 is that loops are now structured a little differently, groups can be
10921 shy and the code is a little simpler.
10922
10923 * regex.h: Update the copyright.
10924 (RE_SHY_GROUPS): New value.
10925 (RE_UNMATCHED_RIGHT_PAREN_ORD): Renumber.
10926 (RE_SYNTAX_EMACS): Add RE_SHY_GROUPS.
10927
80460654
GM
10928 * regex.c (enum re_opcode_t): Remove jump_past_alt,
10929 maybe_pop_jump, push_dummy_failure and dumy_failure_jump. Add
10930 on_failure_jump_(exclusive, loop and smart). Also fix the comment
10931 for (start|stop)_memory since they now only take one argument (the
10932 second has becomes unnecessary).
52283633 10933 (print_partial_compiled_pattern): Adjust for changes in re_opcode_t.
80460654
GM
10934 (print_compiled_pattern): Use %ld to printf long ints and flush to
10935 make debugging a little easier.
95cd4c40
SM
10936 (union fail_stack_elt): Make the integer unsigned.
10937 (struct fail_stack_type): Add a `frame' element.
10938 (INIT_FAIL_STACK): Init `frame' as well.
10939 (POP_PATTERN_OP): New macro for re_compile_fastmap.
10940 (DEBUG_PUSH, DEBUG_POP): Remove.
10941 (NUM_REG_ITEMS): Remove.
10942 (NUM_NONREG_ITEMS): Adjust.
80460654
GM
10943 (FAILURE_PAT, FAILURE_STR, NEXT_FAILURE_HANDLE)
10944 (TOP_FAILURE_HANDLE): New macros for the cycle detection.
95cd4c40 10945 (ENSURE_FAIL_STACK): New macro for PUSH_FAILURE_(REG|POINT).
52283633
SM
10946 (PUSH_FAILURE_REG, POP_FAILURE_REG, CHECK_INFINITE_LOOP):
10947 New macros.
80460654
GM
10948 (PUSH_FAILURE_POINT): Don't push registers any more. The pattern
10949 address pushed is not the destination of the jump but the source
10950 of it instead.
95cd4c40
SM
10951 (NUM_FAILURE_ITEMS): Remove.
10952 (POP_FAILURE_POINT): Adapt to the new stack structure (i.e. pop
80460654
GM
10953 registers before the actual failure point). Don't hardcode any
10954 meaning for str==NULL anymore.
95cd4c40 10955 (union register_info_type, REG_MATCH_NULL_STRING_P, IS_ACTIVE)
80460654
GM
10956 (MATCHED_SOMETHING, EVER_MATCHED_SOMETHING, SET_REGS_MATCHED):
10957 Remove.
95cd4c40
SM
10958 (REG_UNSET_VALUE): Use NULL (why not?).
10959 (compile_range): Remove declaration since it doesn't exist.
10960 (struct compile_stack_elt_t): Remove inner_group_offset.
10961 (old_reg(start|end), reg_info, reg_dummy, reg_info_dummy): Remove.
10962 (regex_grow_registers): Remove dead code.
10963 (FIXUP_ALT_JUMP): New macro.
80460654
GM
10964 (regex_compile): Add shy-groups Change loops to use
10965 on_failure_jump_smart&jump instead of
10966 on_failure_jump&maybe_pop_jump. Change + loops to eliminate the
10967 initial (dummy_failure_)jump. Remove c1_base (looks like unused
10968 variable to me). Use `jump' instead of `jump_past_alt' and don't
10969 bother with push_dummy_failure in alternatives since it is now
10970 unnecessary. Use FIXUP_ALT_JUMP. Eliminate a useless `#ifdef
10971 emacs' for (re)allocating the stack.
10972 (re_compile_fastmap): Remove dead variables i and num_regs. Exit
10973 from loop when bufp->can_be_null rather than jumping to `done'.
10974 Avoid jumping backwards so as to ensure termination. Use
10975 PATTERN_STACK_EMPTY and POP_PATTERN_OP. Improved handling of
10976 backreferences. Remove dead code in handling of `anychar'.
95cd4c40 10977 (skip_noops, mutually_exclusive_p): New functions taken from the
80460654
GM
10978 handling of `maybe_pop_jump' in re_match_2_internal. Slightly
10979 improve mutually_exclusive_p to handle ".+\n".
52283633
SM
10980 (lowest_active_reg, highest_active_reg)
10981 (NO_(LOWEST|HIGHEST)_ACTIVE_REG) Remove.
80460654
GM
10982 (re_match_2_internal): Use %p instead of 0x%x when printf'ing
10983 ptrs. Don't SET_REGS_MATCHED anymore. Remove many dead
10984 variables. Push register (in `start_memory') on the stack rather
10985 than storing it in old_reg(start|end). Remove the cycle detection
10986 from `stop_memory', replaced by the use of on_failure_jump_loop
10987 for greedy loops. Add code for the new on_failure_jump_<foo>.
10988 Remove ad-hoc code in `on_failure_jump' to push more registers in
10989 the case of a loop. Take out code from `maybe_pop_jump' into
10990 separate functions and adapt it to the semantics of
10991 `on_failure_jump_smart'. Remove jump_past_alt, dummy_failure_jump
10992 and push_dummy_failure. Remove dummy_failure handling and
10993 handling of `failures to jump to on_failure_jump' (this last one
10994 was already dead code, it seems).
10995 (group_match_null_string_p, alt_match_null_string_p)
10996 (common_op_match_null_string_p): Remove.
95cd4c40 10997
7397acc4
DL
109982000-03-08 Dave Love <fx@gnu.org>
10999
11000 * config.in: Don't depend on __STDC__ for volatile.
11001 Add POINTER_TYPE, PTR, PROTOTYPES.
11002
11003 * hftctl.c, strftime.c: Use PROTOTYPES.
11004 * eval.c (find_handler_clause): Likewise.
11005
11006 * mem-limits.h: Use POINTER_TYPE.
11007
11008 * lisp.h (P_): Define based on PROTOTYPES, not __STDC__.
11009 (memory_warnings): Declare using POINTER_TYPE.
11010
5e91ff9e
GM
110112000-03-08 Gerd Moellmann <gerd@gnu.org>
11012
feab4fba
GM
11013 * xfns.c (x_set_cursor_type): If ARG is nil, give frame no cursor.
11014
52283633 11015 * xdisp.c (display_echo_area): Temporarily inhibit garbage collection.
25edb08f 11016
5e91ff9e
GM
11017 * xfns.c: Remove obsolete code in #if 0.
11018 (Fx_focus_frame): New function.
11019
a735b7e1
KH
110202000-03-07 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
11021
11022 * coding.c (coding_category_name): Add coding-category-utf-8,
11023 coding-category-utf-16-be, coding-category-utf-16-le.
11024 (UTF_8_1_OCTET_P, UTF_8_EXTRA_OCTET_P, UTF_8_2_OCTET_LEADING_P,
11025 UTF_8_3_OCTET_LEADING_P, UTF_8_4_OCTET_LEADING_P,
11026 UTF_8_5_OCTET_LEADING_P, UTF_8_6_OCTET_LEADING_P): New macros.
11027 (detect_coding_utf_8): New function.
11028 (UTF_16_INVALID_P, UTF_16_HIGH_SURROGATE_P
11029 UTF_16_LOW_SURROGATE_P): New macros.
11030 (detect_coding_utf_16): New function
11031 (detect_coding_mask): When priorities are specified, skip any
11032 categories that have `nil' coding-system. Fix bug of returning
11033 wrong mask when PRIORITIES is specified and detect_coding_XXX()
11034 returns a mask not set in PRIORITIES.
11035 (detect_eol_type_in_2_octet_form): New function.
11036 (detect_eol): selects detect_eol_type_XXX to call according to
11037 cooding->category_idx.
11038 (detect_coding_system): Remove `nil' coding-system in the result.
11039 (Fupdate_coding_systems_internal): Update all coding-categories.
11040
52283633
SM
11041 * coding.h (CODING_CATEGORY_IDX_UTF_8)
11042 (CODING_CATEGORY_IDX_UTF_16_BE, CODING_CATEGORY_IDX_UTF_16_LE):
11043 New macros.
11044 (CODING_CATEGORY_IDX_RAW_TEXT, CODING_CATEGORY_IDX_BINARY)
11045 (CODING_CATEGORY_IDX_MAX): Adjusted for the above macros.
11046 (CODING_CATEGORY_IDX_UTF_16_LE)
11047 (CODING_CATEGORY_MASK_UTF_8, CODING_CATEGORY_MASK_UTF_16_BE)
11048 (CODING_CATEGORY_MASK_UTF_16_LE): New macros.
a735b7e1
KH
11049 (CODING_CATEGORY_MASK_ANY): Include the above macros.
11050 (CODING_CATEGORY_MASK_UTF_16_BE_LE): New macro.
11051
9994cc69
GM
110522000-03-07 Gerd Moellmann <gerd@gnu.org>
11053
e9b4e5ff
GM
11054 * doc.c (Fdocumentation_property): If value is not a string,
11055 and doesn't refer to etc/DOC, evaluate it to obtain a string.
11056
f7daf1e1
GM
11057 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Don't try to
11058 close the display with XtCloseDisplay. This caused a bus error
11059 on OpenWindows.
11060
9994cc69
GM
11061 * minibuf.c (Fminibuffer_complete): Move point to ZV when input is
11062 complete but not unique.
11063
4336c705
GM
110642000-03-06 Gerd Moellmann <gerd@gnu.org>
11065
18bb0684
GM
11066 * process.c (send_process): Remove local variable `procname' that
11067 might become invalid when a GC happens. Instead, access the
11068 process name slot directly.
11069
4336c705
GM
11070 * xfns.c (x_set_menu_bar_lines_1): Adjust window's orig_top and
11071 orig_height if set.
11072
11073 * frame.c (set_menu_bar_lines_1): Adjust window's orig_top and
11074 orig_height if set.
11075
515d0d0e
EZ
110762000-03-06 Eli Zaretskii <eliz@is.elta.co.il>
11077
11078 * msdos.c (IT_note_mouse_highlight): Return immediately if frame's
11079 glyph matrices have been freed.
11080
100b3cbb
GM
110812000-03-05 Gerd Moellmann <gerd@gnu.org>
11082
50df5e5a 11083 * Makefile.in (tags): Include ../lwlib/TAGS in TAGS.
6178bc23 11084 (bootstrap-temacs): Set LC_ALL to C like for temacs.
50df5e5a
GM
11085
11086 * xfns.c (QCdata): Moved to xdisp.c.
11087
11088 * xdisp.c (QCdata): Moved here from xfns.c.
11089 (syms_of_xdisp): Initialize QCdata.
11090
11091 * frame.h (FRAME_INTERNAL_BORDER_WIDTH) [!HAVE_X_WINDOWS]: Define.
11092
11093 * window.c (coordinates_in_window): Use
11094 FRAME_INTERNAL_BORDER_WIDTH_SAFE instead of
11095 FRAME_INTERNAL_BORDER_WIDTH.
11096
100b3cbb 11097 * xdisp.c (try_window_id): Recompute unchanged information if
4336c705 11098 it is obviously invalid.
100b3cbb
GM
11099
11100 * xterm.c (x_term_init): Create a colormap if not using the
11101 default visual.
11102
11103 * xterm.h (select_visual): Change prototype.
11104
11105 * xfns.c (select_visual): Rewritten. Recognize user-specified
11106 visual classes.
11107 (visual_classes): New variable.
11108
64d739c4
GM
111092000-03-04 Gerd Moellmann <gerd@gnu.org>
11110
11111 * xfns.c (x_defined_color, x_set_mouse_color, lookup_rgb_color)
11112 (lookup_pixel_color, x_laplace, x_build_heuristic_mask)
11113 (png_load): Access colormap of frame using FRAME_X_COLORMAP.
52283633 11114 (x_decode_color): Don't handle allocation of white and black specially.
64d739c4
GM
11115 (x_window) [USE_X_TOOLKIT]: Set XtNvisual, XtNdepth, and
11116 XtNcolormap resources.
11117 (x_window) [!USE_X_TOOLKIT]: Pass colormap to XCreateWindow.
11118 (Fx_create_frame): Initialize color members of x_output structure.
11119 (xpm_load): Pass colormap to XPM lib.
11120
11121 * xfaces.c (x_free_colors): Access colormap of frame using
11122 FRAME_X_COLORMAP. Be paranoid about freeing black and white
11123 when default colormap is used.
11124
11125 * xterm.c (x_term_init): Set Colormap member of x_display_info
11126 structure. Copy colormap if resource `privateColormap' is
11127 specified (PseudoColor only).
11128 (x_setup_relief_color): Access colormap of frame using
11129 FRAME_X_COLORMAP.
11130
11131 * xterm.h (struct x_display_info): Add Colormap member `cmap'.
11132 (FRAME_X_COLORMAP, FRAME_X_VISUAL): New macros.
11133
c3cee013
JR
111342000-03-04 Jason Rumney <jasonr@gnu.org>
11135
11136 * xfaces.c Change many FRAME_X... macros to FRAME_WINDOW... or
11137 other non-platform-specific equivalents.
64d739c4 11138 [WINDOWSNT]: Include w32term.h, fontset.h and define X
c3cee013
JR
11139 specific functions and macros as their w32 equivalents where
11140 non-platform-specifics are not available.
11141 [HAVE_X_WINDOWS]: Change most of these to HAVE_WINDOW_SYSTEM.
11142 (x_create_gc, x_free_gc) [WINDOWSNT]: Add W32 versions.
11143 (clear_font_table) [WINDOWSNT]: Call w32_unload_font.
11144 (frame_update_line_height): Use macros to access f->output_data.
11145 (defined_color): Remove FIXME comments; fixed.
11146 (x_face_list_fonts, prepare_face_for_display): Put X specifics
11147 into #ifdef blocks. Add WINDOWSNT blocks.
11148 (Fx_list_fonts): Use macros for accessing font data.
11149 (set_lface_from_font_name): Different default fonts for X and
11150 WINDOWSNT.
11151 (font_scalable_p) [WINDOWSNT]: Treat wildcard XLFD_AVGWIDTH as
11152 scalable for backward compatibility.
64d739c4 11153 (realize_tty_face) [MSDOS]: Do the same for WINDOWSNT.
c3cee013
JR
11154 (syms_of_xfaces) [WINDOWSNT]: Allow scalable fonts by default.
11155
64d739c4 11156 * emacs.c (main) [HAVE_NTGUI]: Call syms_of_xfaces instead of
c3cee013
JR
11157 syms_of_w32faces.
11158
11159 * makefile.nt (w32faces.obj): Remove.
11160 (xfaces.obj): Add.
11161
807cc41c
JR
111622000-03-03 Jason Rumney <jasonr@gnu.org>
11163
11164 * keyboard.c (make_lispy_event): Call buffer_posn_from_coords with
11165 correct parameters.
11166
0007072a
KR
111672000-03-03 Ken Raeburn <raeburn@gnu.org>
11168
11169 * unexelf.c (PT_LOAD, SHT_*, SHN_*) [__NetBSD__]: Only provide
11170 standard ELF definitions here if the system header does not.
11171
71a6ba55
GM
111722000-03-03 Gerd Moellmann <gerd@gnu.org>
11173
11174 * xterm.c (PER_CHAR_METRIC): Removed.
11175 (x_per_char_metric_1, x_default_char): New functions.
11176 (x_per_char_metric): If font's default char is invalid, return
11177 metrics of a suitably chosen usable default char.
11178 (x_draw_glyph_string_foreground): If font has an invalid default
64d739c4
GM
11179 char, replace occurrences of unprintable chars with a suitably
11180 chosen usable default char.
71a6ba55 11181
900fa1f1
GM
111822000-03-02 Gerd Moellmann <gerd@gnu.org>
11183
42f55fe0
GM
11184 * xterm.c (note_mouse_highlight): Return quickly if frame's
11185 glyph matrices have been freed.
11186
11187 * dispnew.c (free_glyphs): Block input while freeing matrices.
11188
900fa1f1
GM
11189 * xfns.c (x_clear_image, x_kill_gs_process): Use x_free_colors.
11190
52283633
SM
11191 * xterm.c (x_alloc_lighter_color, x_setup_relief_color):
11192 Use x_free_colors.
900fa1f1
GM
11193
11194 * dispextern.h (x_free_colors): Add prototype.
11195
11196 * xfaces.c (x_free_colors): New function.
11197 (unload_color, free_face_colors): Use it.
11198
2f950292
EZ
111992000-03-02 Eli Zaretskii <eliz@is.elta.co.il>
11200
11201 * msdos.h (FRAME_INTERNAL_BORDER_WIDTH): Define to zero.
11202
11203 * window.c [MSDOS]: Include msdos.h.
11204
54d04320
DL
112052000-03-02 Dave Love <fx@gnu.org>
11206
11207 * m/powerpcle.h, m/sparc.h: Don't set C_OPTIMIZE_SWITCH.
11208
11209 * m/mips-siemens.h, m/news-r6.h, m/news-risc.h, m/tekxd88.h: Don't
11210 set C_OPTIMIZE_SWITCH for gcc.
11211
0ba93ac4
KH
112122000-03-02 Kenichi Handa <handa@etl.go.jp>
11213
11214 * coding.c (coding_save_composition): Be sure to allocate
11215 composition data area in coding even if there's no composition in
11216 the current run.
11217
a2bc11d4
JR
112182000-03-01 Jason Rumney <jasonr@gnu.org>
11219
11220 * w32term.c: Equivalent changes to those made to xterm.c on
11221 2000-02-25 and 2000-02-24.
11222
11223 * w32fns.c: Equivalent changes to those made to xfns.c on
11224 2000-02-25 and 2000-02-21.
11225
11226 * sysdep.c: [WINDOWSNT]: Use sys_read and sys_write to ensure
11227 correct line-end convention is followed.
11228
11229 * w32menu.c [HAVE_BOXES]: Remove #undef.
11230 (single_keymap_panes): Remove code for simulating checkmarks.
11231 (single_menu_item): Remove notbuttons_ptr argument. Callers changed.
11232 Remove code for drawing simulated checkmarks.
11233 (w32_menu_show): make unibyte help string correctly.
11234 (add_menu_item): draw standard Windows checkmarks. Draw radio
11235 buttons as radio buttons if possible.
11236
72d19d75
GM
112372000-03-01 Gerd Moellmann <gerd@gnu.org>
11238
2df636f4
GM
11239 * sysdep.c (start_of_text): Don't define this function for NetBSD
11240 with ELF.
11241
427ec082 11242 * m/pmax.h (START_FILES, CANNOT_DUMP) [__NetBSD__ || __OpenBSD__]:
2df636f4
GM
11243 Don't define.
11244 (UNEXEC) [__NetBSD__ || __OpenBSD__]: Define to unexelf.o.
11245 (LINKER): Don't undef if __NetBSD__ is defined.
11246
11247 * m/mips.h (LINKER) [__NetBSD__ || __OpenBSD__]: Don't define.
11248
11249 * fileio.c [__NetBSD__]: Define `unix'.
11250
72d19d75
GM
11251 * xfns.c (start_busy_cursor): Allow floats for busy-cursor-delay.
11252
ed4d0512
GM
112532000-02-29 Gerd Moellmann <gerd@gnu.org>
11254
50b1039f
GM
11255 * atimer.c (start_atimer): Don't abort when timers are stopped.
11256 (append_atimer_lists): New function.
11257 (cancel_atimer, stop_other_atimers, run_all_atimers): Handle
11258 arbitrary lists of stopped and running atimers.
11259
ed4d0512
GM
11260 * atimer.c (cancel_atimer): Handle canceling an atimer when
11261 some timers are stopped.
11262
11263 * xfns.c (cancel_busy_cursor): Set busy_cursor_atimer to null
11264 after canceling it.
11265
11266 * fns.c (maybe_resize_hash_table): Handle case of new size
11267 coming out as being the same as old size.
11268
387023ee
JR
112692000-02-27 Jason Rumney <jasonr@gnu.org>
11270
11271 * makefile.nt: Add atimer.h to dependencies.
11272 * w32.c (init_environment): Set Vw32_num_mouse_buttons here.
11273 * w32console.c: Only disable window system features for dispextern.h
11274 (initialize_w32_display): Build a display info for the console.
11275 * w32faces.c (tty_defined_color): Apply xfaces.c change from 02-17.
11276 * w32fns.c (w32_wnd_proc) [WM_LBUTTON_DOWN, WM_RBUTTON_DOWN,
11277 WM_LBUTTON_UP, WM_RBUTTON_UP]: Do not treat 4 or more button mice
11278 as 2 button mice.
11279 * w32gui.h (struct W32FontStruct): Revert last change after change
11280 to xdisp.c.
11281 * w32menu.c (single_submenu): Set up help string.
11282 [!HAVE_MULTILINGUAL_MENU]: Don't overwrite item_name with descrip.
11283 (w32_dialog_show): Set up help string.
11284 * w32term.c (w32_display_info_for_display): Remove unused function.
11285 (w32_draw_bitmap): Use pre-built bitmaps.
11286 (w32_initialize_display_info): New function to initialize parts of
11287 display info that are common to both GUI and console frames.
11288 (w32_term_init): Use w32_initialize_display_info. Do not set
11289 Vw32_num_mouse_buttons here, as it is not called for console
11290 frames. Build bitmaps for indicating truncated lines etc.
11291 (x_delete_display): Destroy pre-built bitmaps.
11292 * xdisp.c (handle_single_display_prop): Use FONT_HEIGHT macro.
11293 (echo_area_display): Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM.
11294
4516715a
DL
112952000-02-27 Dave Love <fx@gnu.org>
11296
11297 * lisp.h: Add a bunch of prototypes.
11298
171ca836
KH
112992000-02-26 Kenichi Handa <handa@etl.go.jp>
11300
11301 * keyboard.c (read_char): Set `usec' correctly.
11302
4013921d
KH
113032000-02-25 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
11304
11305 * ccl.c (ccl_driver) [CCL_MapMultiple]: When the mapped value is
11306 `lambda', set reg[RRR] to the map index.
11307 (ccl_driver) [CCL_MapSingle]: When the mapped value is found, set
11308 reg[RRR] to 0. Otherwise, set it to -1.
11309
9244a058
GM
113102000-02-25 Gerd Moellmann <gerd@gnu.org>
11311
2df636f4 11312 * emacs.c (main): Remove code snippet commented out with `//'.
9244a058 11313
18e21ce8 113142000-02-25 Richard M. Stallman <rms@gnu.org>
427ec082 11315
f43d79c1
GM
11316 * fileio.c (Ffile_symlink_p): If result starts with a `/'
11317 and contains a `:', prepend `/:'.
11318
11319 * window.c (select_window_1): If selected_window is nil,
11320 don't "swap out" the buffer's point.
11321 (Fset_window_configuration): Set selected_window to nil
11322 before calling Fselect_window.
11323 (unshow_buffer): Don't set point in buffer from window's point
11324 if another more recently selected window also shows the buffer.
11325
bed0c171
GM
113262000-02-25 Gerd Moellmann <gerd@gnu.org>
11327
449c3c52
GM
11328 * keyboard.c (recursive_edit_1): Cancel busy-cursor.
11329
f5b58615
GM
11330 * xfns.c (inhibit_busy_cursor, busy_count): Removed.
11331 (Fx_show_busy_cursor, Fx_hide_busy_cursor): Removed.
52283633
SM
11332 (busy_cursor_atimer, busy_cursor_shown_p, Vbusy_cursor_delay):
11333 New variables.
f5b58615
GM
11334 (DEFAULT_BUSY_CURSOR_DELAY): New define.
11335 (start_busy_cursor, cancel_busy_cursor, show_busy_cursor)
11336 (hide_busy_cursor): New functions.
11337 (syms_of_xfns): DEFVAR_LISP Vbusy_cursor_delay.
11338
11339 * minibuf.c (read_minibuf): Cancel busy-cursor.
11340
11341 * keyboard.c (command_loop_1): Call start_busy_cursor before
11342 Fcommand_execute and cancel_busy_cursor after it.
11343 (timer_check): Remove busy-cursor code.
11344 (Fread_key_sequence, Fread_key_sequence_vector): Start/cancel busy
11345 cursor timer.
11346
11347 * process.c (wait_reading_process_input): Remove busy-cursor code.
11348
11349 * eval.c (Fsignal): Call cancel_busy_cursor instead of
11350 Fx_hide_busy_cursor.
11351
11352 * dispextern.h (Fx_show_busy_cursor, Fx_hide_busy_cursor):
11353 Remove prototyoes.
11354 (start_busy_cursor, cancel_busy_cursor): Add prototypes.
11355
11356 * lisp.h (Fx_hide_busy_cursor): Remove prototype.
11357
11358 * xterm.c (XTread_socket): Remove busy-cursor code.
11359
4eb8436f
GM
11360 * dispnew.c (flush_stdout) [GLYPH_DEBUG]: New function.
11361 (build_frame_matrix_from_leaf_window): Put code handling
11362 glyph row's not being a slice of a frame row in #if 0.
11363 (sync_window_with_frame_matrix_rows): New function.
11364 (frame_row_to_window): New function.
11365 (mirror_line_dance): Handle copies between windows.
11366
3cb65b0e
GM
11367 * lread.c (Fload): Use `xfree' instead of `free'.
11368 (init_obarray): Use `xmalloc' instead of `malloc'.
11369
bed0c171
GM
11370 * window.c (Fset_window_buffer): Set WINDOW to the window
11371 after decoding.
2add4349
GM
11372 (coordinates_in_window): Take frame's internal border width
11373 into account.
bed0c171 11374
42088c12
GM
113752000-02-24 Gerd Moellmann <gerd@gnu.org>
11376
11377 * xterm.c (x_display_and_set_cursor): Display cursor of
11378 non-selected windows depending on the setting of
11379 cursor_in_non_selected_windows.
11380
11381 * xdisp.c (cursor_in_non_selected_windows): New variable.
11382 (syms_of_xdisp): DEFVAR_BOOL it.
11383
d1e103b2
GM
113842000-02-23 Gerd Moellmann <gerd@gnu.org>
11385
723e779c
GM
11386 * data.c (Fstring_to_number): If number is greater than what
11387 fits into an integer, return a float.
11388
d1e103b2
GM
11389 * eval.c (specbind): Remove references to
11390 keyword_symbols_constant_flag.
11391
11392 * data.c (keyword_symbols_constant_flag): Removed.
11393 (Fmakunbound, set_internal, syms_of_data): Remove references to
11394 keyword_symbols_constant_flag.
11395
11396 * bytecode.c (Fbyte_code): Remove keyword_symbols_constant_flag.
11397
214f877f
KH
113982000-02-23 Kenichi Handa <handa@etl.go.jp>
11399
11400 * syntax.c (multibyte_syntax_as_symbol): New variable.
11401 (syms_of_syntax): Declare it as a Lisp variable.
11402 (SYNTAX_WITH_MULTIBYTE_CHECK): New macro.
11403 (scan_lists): If both sexpflag and multibyte_syntax_as_symbol are
11404 nonzero, treat all multibyte characters as symbol.
52283633 11405 (init_syntax_once): Give syntax `word' to all multibyte characters.
214f877f 11406
130adcb7
EZ
114072000-02-22 Eli Zaretskii <eliz@is.elta.co.il>
11408
3cb65b0e 11409 * frame.c (Fdelete_frame): Don't let echo_area_window remain on
d7d0dac0 11410 a deleted frame.
130adcb7 11411
17cbbf95
GM
114122000-02-21 Gerd Moellmann <gerd@gnu.org>
11413
11414 * frame.c (Fmouse_position): GCPRO retval instead of x and y.
11415
11416 * xfns.c (x_window_to_frame, x_any_window_to_frame)
11417 (x_non_menubar_window_to_frame): Check the busy-cursor window.
11418
beb0bc36
DL
114192000-02-21 Dave Love <fx@gnu.org>
11420
11421 * frame.c (Vmouse_position_function): New variable.
11422 (Fmouse_position): Use it.
11423 (syms_of_frame): Install it.
11424
11425 * charset.c (find_charset_in_str): Fix use of `c' instead of `c1'.
11426
1d92afcd
GM
114272000-02-20 Gerd Moellmann <gerd@gnu.org>
11428
11429 * fileio.c (Finsert_file_contents): Unbind the binding of
11430 standard-output done by temp_output_buffer_setup.
329eed9f
GM
11431
11432 * eval.c (funcall_lambda): Don't bind Qmocklisp_arguments unless
11433 Vmocklisp_arguments is nil. Inline Fcar and Fcdr.
11434 (specbind, unbind_to): Handle most common case of non-constant
11435 symbol with trivial value specially.
11436
11437 * bytecode.c (Fbyte_code) <Bvarset>: Inline most common case.
11438
18e21ce8 114392000-02-20 Richard M. Stallman <rms@gnu.org>
2d06696f
RS
11440
11441 * data.c (Fmake_variable_buffer_local): Doc fix.
11442 Init found_for_buffer to 0.
11443 (Fmake_variable_frame_local): If the variable has already
11444 been buffer-local, set the check_frame field.
11445
1d4311c3
EZ
114462000-02-20 Eli Zaretskii <eliz@is.elta.co.il>
11447
11448 * msdos.c (IT_write_glyphs): Allocate a larger screen_buf as data
11449 produced for CODING_MODE_LAST_BLOCK requires.
11450
2dc95ddd
DL
114512000-02-18 Dave Love <fx@gnu.org>
11452
11453 * keyboard.c (echo_keystrokes): Remove declaration.
11454 (Vecho_keystrokes) New variable.
11455 (read_char, record_menu_key, read_key_sequence): Use it to allow
11456 use of float value.
11457 (syms_of_keyboard): Change Vecho_keystrokes declaration.
11458
11459 * lread.c: Undef feature selection macros before defining.
11460
f0930f35
GM
114612000-02-18 Gerd Moellmann <gerd@gnu.org>
11462
11463 * data.c (let_shadows_buffer_binding_p): Ignore specbindings
11464 for symbols other than the symbol in question.
11465
e3d4de90
DL
114662000-02-17 Dave Love <fx@gnu.org>
11467
11468 * s/sol2.h (C_DEBUG_SWITCH): Define to allow optimization.
11469
0b378936
GM
114702000-02-17 Gerd Moellmann <gerd@gnu.org>
11471
d621caf7
GM
11472 * emacs.c (main): Use #if GC_MARK_STACK instead of #ifdef.
11473
0b378936
GM
11474 * alloc.c (enum mem_type): Compile unconditionally.
11475
3b451f74
EZ
114762000-02-17 Eli Zaretskii <eliz@is.elta.co.il>
11477
11478 * xfaces.c (tty_defined_color): Don't return faulire indication
11479 for unspecified-fg and unspecified-bg pseudo-colors.
11480
10689a01
GM
114812000-02-17 Gerd Moellmann <gerd@gnu.org>
11482
1216f5e4
GM
11483 * alloc.c (mark_object): Don't mark symbol names in pure space.
11484 (gc_sweep): Don't unmark symbol names in pure space.
11485
11486 * lisp.h (GC_USE_GCPROS_AS_BEFORE, GC_MAKE_GCPROS_NOOPS)
11487 (GC_MARK_STACK_CHECK_GCPROS, GC_USE_GCPROS_CHECK_ZOMBIES)
11488 [GC_MARK_STACK]: New defines.
427ec082 11489 (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5, UNGCPRO)
1216f5e4
GM
11490 [GC_MARK_STACK == GC_MAKE_GCPROS_NOOPS]: Define as no-ops.
11491
11492 * emacs.c (main) [GC_MARK_STACK]: Initialize stack_base.
11493
11494 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use
11495 allocate_buffer instead of xmalloc.
11496
11497 * alloc.c (toplevel): Include setjmp.h.
11498 (PURE_POINTER_P): New define.
11499 (enum mem_type) [GC_MARK_STACK]: New enumeration.
11500 (Vdead) [GC_MARK_STACK]: New variable.
11501 (lisp_malloc): Add parameter TYPE, call mem_insert if
11502 GC_MARK_STACK is defined.
11503 (allocate_buffer): New function.
427ec082 11504 (lisp_free) [GC_MARK_STACK]: Call mem_delete.
1216f5e4
GM
11505 (free_float) [GC_MARK_STACK]: Set type to Vdead.
11506 (free_cons) [GC_MARK_STACK]: Set car to Vdead.
11507 (stack_base, mem_root, mem_z) [GC_MARK_STACK]: New variables.
11508 (MEM_NIL) [GC_MARK_STACK]: New define.
11509 (struct mem_node) [GC_MARK_STACK]: New structure.
11510 (mem_init, mem_find, mem_insert, mem_delete, mem_insert_fixup)
11511 (mem_delete_fixup, mem_rotate_left, mem_rotate_right)
11512 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
11513 (live_misc_p, live_vector_p, live_buffer_p, mark_memory)
11514 (mark_stack) [GC_MARK_STACK]: New functions.
11515 (Fgarbage_collect) [GC_MARK_STACK]: Call mark_stack.
11516 (clear_marks): Removed.
11517 (gc_sweep): Set free conses' car, free floats' type, free
11518 symbols' function to Vdead. Use lisp_free to free buffers.
11519 (init_alloc_once): Initialize Vdead.
11520 (survives_gc_p): Return non-zero for pure objects.
11521
11522 * alloc.c: Add comments throughout the file.
11523
2503c8b1
GM
11524 * atimer.c (stop_other_atimers): Don't call cancel_atimer because
11525 that unblocks alarms.
11526
8389e1e2
GM
11527 * alloc.c, bytecode.c, data.c, dispnew.c, ecrt0.c, editfns.c,
11528 emacs.c, floatfns.c, fns.c, lread.c, print.c, config.in, lisp.h,
11529 Makefile.in: Remove `LISP_FLOAT_TYPE' and `standalone'.
11530
10689a01 11531 * frame.c (make_frame): Set frame initiallly to `garbaged'.
427ec082 11532
bfc17d18
KH
115332000-02-17 Kenichi Handa <handa@etl.go.jp>
11534
4a09dee0
KH
11535 * xdisp.c (decode_mode_spec_coding): Delete superfluous code to
11536 avoid infinite error signaling. Allocate sufficient memory for
11537 eol_str in the case that eoltype is Lisp_Int.
bfc17d18 11538
2b927d02
SM
115392000-02-17 Stefan Monnier <monnier@cs.yale.edu>
11540
11541 * syntax.c (Fforward_comment): Undo the previous change, since cc-mode
11542 depends on the previous behavior.
11543
b49cb764
GM
115442000-02-16 Gerd Moellmann <gerd@gnu.org>
11545
11546 * sysdep.c (vfork) [!HAVE_VFORK]: Removed.
11547
99e95407
GM
115482000-02-15 Gerd Moellmann <gerd@gnu.org>
11549
11550 * s/freebsd.h (BROKEN_PTY_READ_AFTER_EAGAIN): Define.
11551
11552 * process.c (send_process) [BROKEN_PTY_READ_AFTER_EAGAIN]:
b49cb764 11553 Workaround for FreeBSD bug. Clear output queue after EAGAIN in
99e95407
GM
11554 write(2).
11555
6ffd3cf7
RS
115562000-02-15 Richard M. Stallman <rms@gnu.org>
11557
11558 * data.c (set_internal): Don't make variable buffer-local
11559 if within a let-binding for the same buffer.
11560 (let_shadows_buffer_binding_p): New function.
11561
11562 * eval.c (specbind): For buffer-local value,
11563 record the current buffer also.
11564 (unbind_to): Cope with that change.
11565
cad53475
GM
115662000-02-15 Gerd Moellmann <gerd@gnu.org>
11567
11568 * window.c (Fsave_window_excursion): Doc fix.
11569
1aa963c8
SM
115702000-02-15 Stefan Monnier <monnier@cs.yale.edu>
11571
11572 * syntax.c (back_comment): Make sure we only consider comment-starters
11573 of the relevant style and return -1 in case of a failure to find the
11574 beginning of the comment.
11575 (Fforward_comment): If back_comment fails, go back to the position just
11576 after the comment-end.
11577 (scan_lists): Add comment describing a very minor bug.
11578
b9b84fd3
SM
115792000-02-14 Stefan Monnier <monnier@cs.yale.edu>
11580
11581 * minibuf.c (Ftry_completion, Fall_completions): Add a reference to
11582 `completion-regexp-list' in the docstring.
11583
3a28db80
DL
115842000-02-14 Dave Love <fx@gnu.org>
11585
11586 * xfaces.c (tty_defined_color): Declare color_idx unsigned long.
11587
fb4a568d
SM
115882000-02-14 Stefan Monnier <monnier@cs.yale.edu>
11589
11590 * regex.h (RE_SYNTAX_EMACS): Add RE_CHAR_CLASSES and RE_INTERVALS
11591 to Emacs' syntax. Also fix the comment about set/not-set meanings
11592 since Emacs syntax is not the value 0 any more.
11593 * search.c (compile_pattern_1): Remove RE_CHAR_CLASSES from the syntax
11594 since it's now part of RE_SYNTAX_EMACS.
11595
1063ebb5
DL
115962000-02-12 Dave Love <fx@gnu.org>
11597
52283633 11598 * frame.h (SELECTED_FRAME): Use NULL, not 0 to avoid warnings on Alpha.
1063ebb5 11599
fb07a302
GM
116002000-02-12 Gerd Moellmann <gerd@gnu.org>
11601
11602 * xdisp.c (syms_of_xdisp): Doc fix for scroll-conservatively.
11603
aaf2320c
DL
116042000-02-12 Dave Love <fx@gnu.org>
11605
11606 * s/aix3-2.h, s/osf-1.h: Define C_DEBUG_SWITCH for non-gcc.
11607
11608 * s/ux4800.h, s/umips.h, s/umax.h, s/sol2.h, s/sco5.h, s/rtu.h:
fb07a302
GM
11609 * s/ptx4.h, s/umax.h, s/dgux.h, s/bsd4-2.h, s/bsd4-3.h:
11610 * s/hpux.h: Don't define HAVE_VFORK.
aaf2320c
DL
11611
11612 * s/gnu-linux.h: Don't define HAVE_VFORK or HAVE_SYS_SIGLIST.
11613
11614 * s/nextstep.h: Don't define HAVE_ALLOCA.
11615
11616 * config.in: Add vfork bits.
11617
eedf8bde
GM
116182000-02-12 Gerd Moellmann <gerd@gnu.org>
11619
11620 * process.c (Fopen_network_stream) [POLL_FOR_INPUT]: Register
11621 unwind function to undo the effect of stopping atimers.
11622
52283633 11623 * keyboard.c (bind_polling_period): Stop all timers except poll_timer.
eedf8bde
GM
11624
11625 * atimer.c (stopped_atimers): New variable.
11626 (stop_other_atimers, run_all_atimers, unwind_stop_other_atimers):
11627 New functions.
11628
11629 * atimer.h (stop_other_atimers, run_all_atimers)
11630 (unwind_stop_other_atimers): Add function prototypes.
427ec082 11631
eedf8bde
GM
11632 * s/hpux10.h (HAVE_XRMSETDATABASE): Define if not already defined.
11633
8476c2f8
KR
116342000-02-11 Ken Raeburn <raeburn@gnu.org>
11635
11636 * Makefile.in (LIBX): Link in tiff library before jpeg, since tiff
11637 library may depend on jpeg.
11638 (atimer.o): Depends on atimer.c.
11639
0e85e4a3
KH
116402000-02-11 Kenichi Handa <handa@etl.go.jp>
11641
11642 * insdel.c (del_range_1): Call update_compositions.
11643 (del_range_both): Call update_compositions just once..
11644
97fa0cc8
DL
116452000-02-10 Dave Love <fx@gnu.org>
11646
11647 * xfns.c (create_frame_xic): Fix initialization of automatic
11648 aggregates for pcc.
11649
25566a3c
KH
116502000-02-09 Kenichi Handa <handa@etl.go.jp>
11651
11652 * ccl.c (CCL_MAKE_CHAR): New macro.
11653 (ccl_driver) <CCL_TranslateCharacter>: Check the validity of
11654 registers by CCL_MAKE_CHAR before calling translate_char.
11655 <CCL_TranslateCharacterConstTbl> Likewise.
11656
69da54ba
DL
116572000-02-08 Dave Love <fx@gnu.org>
11658
11659 * lread.c (__EXTENSIONS__): Define.
11660
f7136ee8
GM
116612000-02-08 Gerd Moellmann <gerd@gnu.org>
11662
11663 * puresize.h (BASE_PURESIZE): Increase to 650000.
11664
7768790b
EZ
116652000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
11666
11667 * msdos.c (XMenuActivate): Turn off the cursor after displaying
11668 the help message.
11669
38fd211b
EZ
116702000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
11671
11672 * s/msdos.h (INTERNAL_TERMINAL): Add capabilities se, so, us, ue,
11673 md, mh, mb, mr, and me to the fake termcap entry.
11674
66e4690f
KR
116752000-02-06 Ken Raeburn <raeburn@gnu.org>
11676
11677 * sound.c (sound_cleanup): Don't call device close routine if the
11678 function pointer is null.
11679
a75dfea0
AI
116802000-02-06 Andrew Innes <andrewi@gnu.org>
11681
11682 * dispextern.h: Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM,
11683 around image definitions and prototypes.
11684 (gamma_correct) [WINDOWSNT]: New prototype.
11685
11686 * w32term.c (x_make_frame_visible): Replace call to
11687 input_poll_signal with poll_for_input.
11688
11689 * window.c [WINDOWSNT]: Include w32term.h.
11690
11691 * xdisp.c [WINDOWSNT]: Include w32term.h.
11692
11693 * makefile.nt: Add dependencies on w32gui.h.
11694 (OBJ1): Include atimer.obj.
11695 ($(BLD)\atimer.obj): New dependency rule.
11696
11697 * w32.c (sigmask): New function (does nothing).
11698 (sigunblock): Ditto.
11699
11700 * frame.c [WINDOWSNT]: Include w32term.h.
11701
11702 * w32gui.h (struct W32FontStruct): Add ascent and descent slots.
11703
11704 * lread.c (syms_of_lread): Fix literal newlines.
11705
11706 * emacs.c (USAGE): Split into USAGE1 and USAGE2, to work-around
11707 the string constant limit (2048 bytes) in MSVC.
11708 (main): Ditto.
11709
59ddecde
GM
117102000-02-05 INOUE Seiichiro <inoue@ainet.or.jp>
11711
52283633 11712 * xterm.c (x_display_and_set_cursor) [HAVE_X_I18N]: Set pre-edit area.
59ddecde
GM
11713 (x_display_cursor) [HAVE_X_I18N]: Don't set it here.
11714 (XTread_socket) [HAVE_X_I18N]: <KeyPress, KeyRelease>: Don't
11715 dispatch the event.
11716
07590973
DL
117172000-02-04 Dave Love <fx@gnu.org>
11718
11719 * fileio.c: Remove some unused vars.
11720 (_GNU_SOURCE): Define (for euidaccess).
11721
11722 * lread.c (_XOPEN_SOURCE): Declare (for ftello).
11723
11724 * minibuf.c (read_minibuf_noninteractive): Remove undeclared
11725 gcpro1, gcpro2.
11726 (read_minibuf): Deal with allow_props correctly.
11727
649351f9
EZ
117282000-02-03 Eli Zaretskii <eliz@is.elta.co.il>
11729
11730 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Enlarge to 60000.
11731
66e4690f 117322000-02-03 Ken Raeburn <raeburn@gnu.org>
f1b9c7c1
KR
11733
11734 * search.c (compile_pattern): If a cache entry has a nil regexp,
11735 fill in that entry instead of clobbering a previously cached
11736 string regexp.
11737
66e4690f 117382000-02-02 Ken Raeburn <raeburn@gnu.org>
15c9cf81
KR
11739
11740 * puresize.h (BASE_PURESIZE): Increase to 610000.
11741
d240a249
GM
117422000-02-02 Gerd Moellmann <gerd@gnu.org>
11743
11744 * frame.c (Fframe_parameters): Add GCPRO because tty_color_name
11745 can GC.
11746
ca91fb26
KH
117472000-02-02 Kenichi Handa <handa@etl.go.jp>
11748
25660570
KH
11749 * ccl.c (ccl_driver) <CCL_WriteExprRegister>: Set jump_address
11750 instead of incrementing ic directly.
11751 <CCL_WriteExprConst> Likewise.
11752 <ccl_set_expr>: Set ic to jump_address.
11753
ca91fb26
KH
11754 * fileio.c (e_write): Fix the handling of
11755 CODING_FINISH_INSUFFICIENT_SRC.
11756
2ede9689
DL
117572000-02-01 Dave Love <fx@gnu.org>
11758
11759 * editfns.c (Fpropertize): Doc fix.
11760
11761 * process.c (Fstart_process): Doc fix.
11762
11763 * eval.c: Fix various doc strings not to duplicate information
11764 from help-manyarg-func-alist.
11765
52283633 11766 * window.c (Fset_window_margins): Don't make interactive. Doc fix.
2ede9689
DL
11767
11768 * doc.c (Vhelp_manyarg_func_alist): New variable.
11769 (Fdocumentation): Use it.
11770 (syms_of_doc): Define it.
11771
b6680a0e
GM
117722000-01-31 Gerd Moellmann <gerd@gnu.org>
11773
2cb750ba
GM
11774 * xterm.c (xim_open_dpy): Remove unused local variable.
11775
52283633 11776 * emacs.c (USAGE): Use term `display options' instead of `X options'.
74e9213b
GM
11777
11778 * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: New function.
11779 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
11780
b6680a0e
GM
11781 * fns.c (sweep_weak_table): New function.
11782 (sweep_weak_hash_tables): Use it. Keep on marking until there
11783 is no more change.
11784
994c5afe
GM
117852000-01-30 Gerd Moellmann <gerd@gnu.org>
11786
11787 * xterm.c (x_delete_display): Update next_noop_dpyinfo to ensure
11788 that XTread_socket does not crash by trying to call XNoOp on a
11789 closed display.
427ec082 11790
f00276e3
JR
117912000-01-30 Jason Rumney <jasonr@gnu.org>
11792
11793 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
11794 Change selected_frame to SELECTED_FRAME ().
11795 (w32_console_mouse_position): Remove #ifndef MULE from around
11796 `insist' parameter.
11797
11798 * makefile.nt: Remove dosfns.obj.
11799
11800 * term.c (term_init) [WINDOWSNT]: Initialize TN_max_colors.
11801
11802 * w32fns.c (w32_defined_color): Check for valid frame before
11803 applying gamma correction. Eliminate dependency on frame elsewhere.
11804 (w32_load_system_font): Switch FIXED_PITCH and VARIABLE_PITCH.
11805 (w32_to_x_font): Use resx and resy not height_in and width_in.
11806 (x_to_w32_font): Doc fix.
11807 (xlfd_strip_height): New function to strip and return font height.
11808 (w32_font_match): Compare height separately from rest of xlfd
11809 spec, using xlfd_strip_height.
11810
11811 * w32term.c (w32_term_init): Swap resx and height_in, resy and
11812 width_in. Use w32_defined_color in place of defined_color.
11813
11814 * w32faces.c: Merge more of DOS and X specifics in preparation for
11815 merge with xfaces.c.
11816 (defined_color): Remove FIXME comment.
11817 (tty_color_name): Provide w32-specific function.
11818 (realize_tty_face): Handle FACE_TTY_DEFAULT*_COLOR specially.
11819
11820 * w32console.c (turn_on_face, turn_off_face): Removed.
11821 (w32_face_attributes): New function.
11822 (Global_variables): Reduce scope where possible.
11823 (clear_frame, ins_del_lines, scroll_line): Use char_attr_normal as
11824 fill attribute.
11825 (hl_mode): Don't modify text attributes.
11826 (write_glyphs): Don't do anything if len <= 0. Use
11827 w32_face_attributes to get attributes for drawing. Write
11828 terminating codes using char_attr_normal.
11829 (reset_terminal_modes, set_terminal_modes): Turn off highlight.
11830 (update_begin, update_end): Likewise.
11831 (vga_stdcolor_name): New function.
11832 (initialize_w32_display): Remove char_attr_reverse and char_attr.
11833 (Fset_screen_color): Remove char_attr_reverse.
11834
b08e8bb2
GM
118352000-01-29 Gerd Moellmann <gerd@gnu.org>
11836
11837 * xfns.c (xic_set_preeditarea): Take window parameter and
11838 window-relative pixel-positions.
11839
11840 * xterm.c (x_display_cursor): Set XIC pre-edit area only if window
11841 is its frame's selected window.
11842 (xim_instantiate_callback): Likewise.
11843
11844 * xfns.c (x_create_im): Removed.
11845 (DEFAULT_STYLE, DEFAULT_FONT): Removed.
11846 (supported_xim_styles): Renamed from supported_styles.
11847 (best_xim_style): Renamed from best_style.
11848 (create_frame_xic): Renamed from xic_create_frame.
11849 (free_frame_xic): Renamed from xic_destroy_frame.
427ec082 11850
b08e8bb2
GM
118512000-01-29 INOUE Seiichiro <inoue@ainet.or.jp>
11852
11853 * xterm.c (XTread_socket) [HAVE_X_I18N]: If event is for none of
11854 our frames, call XFilterEvent with 2nd parameter `None'.
11855 (XTread_socket) <KeyPress> [HAVE_X_I18N]: Handle XmbLookupString
11856 returning XBufferOverflow.
52283633 11857 (XTread_socket) <ConfigureNotify> [HAVE_X_I18N]: Set XIC status area.
b08e8bb2
GM
11858 (x_display_cursor) [HAVE_X_I18N]: Set XIC pre-edit area.
11859 (x_new_fontset) [HAVE_X_I18N]: Create XIC status area fontset.
11860 (xim_destroy_callback, xim_open_dpy, xim_instantiate_callback)
11861 (xim_initialize, xim_close)
11862 [HAVE_X_I18N && HAVE_X11R6]: New functions.
11863 (x_destroy_window) [HAVE_X_I18N]: Call xic_destroy_frame.
11864 (x_term_init) [HAVE_X_I18N]: Call xim_initialize.
11865 (x_delete_display) [HAVE_X_I18N]: Call xim_close.
11866
11867 * xterm.h (struct x_display_info) [HAVE_X_I18N]: Add members `xim'
11868 and `xim_styles'.
11869 (struct x_output) [HAVE_X_I18N]: Remove member `xim', add
11870 `xic_style' and `xic_xfs'.
11871 (FRAME_MENUBAR_HEIGHT, FRAME_X_XIM, FRAME_X_XIM_STYLES)
11872 (FRAME_XIC_STYLE, FRAME_XIC_FONTSET): New macros.
11873 (FRAME_XIM): Removed.
11874
11875 * xfns.c (supported_styles): New variable.
11876 (DEFAULT_STYLE, DEFAULT_FONT): New macros
11877 (xic_create_xfontset, best_style, xic_create_frame)
11878 (xic_destroy_frame, xic_set_preeditarea, xic_set_statusarea)
11879 (xic_set_xfontset): New functions.
11880
142e109c
DL
118812000-01-28 Dave Love <fx@gnu.org>
11882
11883 * s/irix6-5.h: Revert last change after change to irix5-0.h.
11884
11885 * m/iris4d.h (C_SWITCH_MACHINE): Don't use -G0.
11886
b02786f9
GM
118872000-01-28 Gerd Moellmann <gerd@gnu.org>
11888
d060bc9f
GM
11889 * buffer.c (Fother_buffer): Don't call Fset_buffer_major_mode
11890 for *scratch* if it already existed.
11891
b02786f9
GM
11892 * emacs.c (USAGE): New macro.
11893 (main): Use it to display usage information.
11894
2c52d7e4
EZ
118952000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
11896
11897 Support for the menu-help feature:
11898
52283633 11899 * msdos.h: Change prototypes of XMenuAddSelection and XMenuActivate.
2c52d7e4
EZ
11900
11901 * msdos.c (IT_clear_end_of_line): Print the extent of the cleared
11902 part of the line to the termscript file.
11903 (IT_clear_to_end): Clear the entire line, not just its beginning.
11904 (menu_help_message, prev_menu_help_message): New variables.
11905 (IT_menu_make_room): Make room for the help_text member.
11906 (IT_menu_display): New argument disp_help; all callers changed.
11907 If disp_help is non-zero, store the help text of the active menu
11908 item in menu_help_message.
11909 (XMenuAddPane): Initialize the help_text member to NULL.
11910 (XMenuAddSelection): New argument help_text. Store it in the
11911 XMenu structure.
11912 (XMenuActivate): New argument help_callback. If the value of
11913 menu_help_message has changed since the last time, display the
11914 menu help message text while waiting for the mouse to move. Clear
11915 the echo area before exiting.
11916 (XMenuDestroy): Free the help_text member.
11917
ffe0bcd1
GM
119182000-01-27 Gerd Moellmann <gerd@gnu.org>
11919
11920 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT]: Pass help to
11921 XMenuAddSelection. Pass help callback to XMenuActivate.
11922 (menu_help_callback) [!USE_X_TOOLKIT]: New function.
11923
50dbd23f
EZ
119242000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
11925
11926 * atimer.c (start_atimer) [!HAVE_SETITIMER]: Use EMACS_SET_SECS
11927 and EMACS_SET_USECS.
11928
f5941bf8
GM
119292000-01-26 Dave Love <fx@gnu.org>
11930
6c67ddee
DL
11931 * editfns.c (Fchar_after, Fchar_before): Doc fix.
11932
f5941bf8
GM
11933 * bytecode.c (Fbyte_code): Use {BEFORE,AFTER}_POTENTIAL_GC where
11934 an error may be signalled.
11935
9e49c990
GM
119362000-01-26 Gerd Moellmann <gerd@gnu.org>
11937
fc3cb460
GM
11938 * s/irix6-5.h [__GNUC__ && __GNUC_MINOR__ >= 95]: Undef
11939 LD_SWITCH_SYSTEM inherited from irix5-0.h.
11940
9e49c990
GM
11941 * bytecode.c (Fbyte_code) [BYTE_CODE_SAFE]: Fix typo.
11942
d0c037d8
GM
119432000-01-25 Gerd Moellmann <gerd@gnu.org>
11944
11945 * charset.c (Fstring): If there is a multibyte char among
11946 the args, always return a multibyte string.
11947
e12489f9
GM
119482000-01-25 Gerd Moellmann <gerd@gnu.org>
11949
11950 * sysdep.c (sys_select): Turn atimers off and on instead of
11951 recording and restoring old alarm handler
11952
11953 * process.c (toplevel): Include atimer.h.
11954 (create_process_1): Rewritten.
11955 (create_process): Use atimers instead of alarm.
11956 (wait_reading_process_input) [hpux]: Turn atimers off instead
11957 of turning off SIGALRM.
11958 (wait_reading_process_input): Turn off atimers instead off
11959 calling stop_polling.
11960
11961 * emacs.c (main): Call init_atimer.
11962
11963 * keyboard.c (toplevel): Include systime.h and atimer.h.
11964 (polling_for_input): Removed because unused.
11965 (input_poll_signal) [POLL_FOR_INPUT]: Removed.
11966 (poll_timer): New variable.
11967 (poll_for_input, poll_for_input_1): New functions.
11968 (start_polling, stop_polling): Rewritten.
11969
11970 * keyboard.h (polling_for_input): Removed.
427ec082 11971
e12489f9
GM
11972 * atimer.h, atimer.c: New files.
11973
11974 * Makefile.in (obj): Add atimer.o.
11975 (atimer.o): New target.
11976
11977 * blockinput.h (pending_atimers): Add extern declaration.
11978 (UNBLOCK_INPUT): Rewritten. Handle pending atimers.
11979
11980 * lisp.h (popup_activated_flag): Add extern declaration.
11981
11982 * xmenu.c (popup_activated_flag): Make externally visible.
52283633 11983 (popup_activate_callback) [USE_MOTIF]: Increment popup_activated_flag.
e12489f9
GM
11984 (popup_deactivate_callback) [USE_MOTIF]: Decrement it.
11985
11986 * xterm.c (toplevel): Include atimer.h.
11987 (toolkit_scroll_bar_interaction): New variable.
11988 (Fxt_process_timeouts): Removed.
11989 (x_process_timeouts): New function.
11990 (xt_action_hook): Clear toolkit_scroll_bar_interaction.
11991 (x_send_scroll_bar_event): Set toolkit_scroll_bar_interaction.
11992 (x_make_frame_visible): Call poll_for_input_1 instead of
11993 input_poll_signal. Don't call alarm.
11994 (x_initialize): Install timer calling x_process_timeouts.
427ec082 11995
1e5279b9
DL
119962000-01-24 Dave Love <fx@gnu.org>
11997
6c67ddee 11998 * s/irix5-0.h: Don't set LD_SWITCH_SYSTEM -- we use unexelf now.
1e5279b9
DL
11999 Don't use -cckr -- apparently not now necessary.
12000
edf6aeb8
EZ
120012000-01-24 Eli Zaretskii <eliz@is.elta.co.il>
12002
12003 * msdos.c (IT_menu_display): Truncate long menu lines at the right
12004 screen boundary.
12005
9badad41
JR
120062000-01-23 Jason Rumney <jasonr@gnu.org>
12007
12008 * w32fns.c (w32_defined_color): Apply gamma correction before
12009 trying to map to the palette.
12010 (w32_wnd_proc) [WM_ERASE_BACKGROUND]: Pass device context of frame
12011 to w32_clear_rect.
12012
12013 * w32term.c (w32_fill_rect): Do not try to deal with NULL hdc
12014 here. Callers changed to always pass real device context.
12015 (w32_draw_bitmap): Likewise.
12016 (w32_get_glyph_overhangs): Likewise.
52283633 12017 (w32_draw_box_rect): Make use of s->hdc rather than getting a new one.
9badad41
JR
12018 (w32_set_vertical_scroll_bar): Pass correct HWND parameters to
12019 pfnSetScrollInfo and SetScrollRange.
12020 (x_get_char_face_and_encoding): Don't turn iso8859-1 characters
12021 back into MULE characters after decoding them.
12022 (x_get_glyph_face_and_encoding): Likewise.
12023 (w32_per_char_metric): Use GetCharExtentPoint32W as fallback when
12024 GetCharABCWidthsW fails, since this is defined on Windows 9x.
12025 (x_produce_glyphs): Calculate per char metrics for a character
12026 that we know exists in default font when font_not_found_p is true.
12027
63bd786b
JR
120282000-01-22 Jason Rumney <jasonr@gnu.org>
12029
12030 * makefile.nt (intervals.obj, composite.obj): New modules.
12031 (composite.h): Added as dependency where appropriate.
12032
12033 * w32gui.h (XGCValue): New struct for emulating X GCs.
12034
12035 * w32term.h (XCharStruct): New struct for emulating X.
12036
12037 * w32console.c (turn_on_face, turn_off_face): New functions.
12038 (change_line_highlight): New prototype for new redisplay.
12039 (write_glyphs): Support multibyte text. Support faces.
12040
52283633 12041 * w32faces.c: Complete rewrite for new redisplay based on new xfaces.c.
63bd786b
JR
12042
12043 * w32fns.c: Use SELECTED_FRAME macro in place of selected_frame
12044 throughout. struct frame * in place of FRAME_PTR.
12045 Skeleton support for images, toolbars, tooltips from xfns.c.
52283633 12046 (Fx_create_frame): Use system default for default scroll bar width.
63bd786b
JR
12047 (w32_get_arg): Renamed from x_get_arg.
12048 (Fx_file_dialog): New function.
12049 (w32_list_fonts): Check cache before asking system.
12050 (Vw32_enable_synthesized_fonts): New variable.
12051 (Vw32_enable_italics): Obsolete, removed.
12052
12053 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
12054 Use SELECTED_FRAME macro.
12055
12056 * w32menu.c: Add skeleton support for help strings on menus.
12057 (add_menu_item): Native checkbox and radio support added, but not
12058 yet enabled due to bugs.
12059 (push_menu_item): Add parameters type, selection and help.
12060 Callers updated.
12061 Formatting changes to reduce unnecessary diffs with xmenu.c.
12062
12063 * w32select.c (Fw32_set_clipboard_data): Update call to
12064 find_charset_in_str.
12065
12066 * w32term.c: Complete rewrite for new redisplay based on new
12067 xterm.c with necessary sections merged back in from old w32term.c.
12068
6ffd3cf7 120692000-01-21 Richard M. Stallman <rms@gnu.org>
b50c9214
RS
12070
12071 * data.c (set_internal): Further fix in same criterion.
12072
6ffd3cf7 120732000-01-20 Richard M. Stallman <rms@gnu.org>
8cc95642
RS
12074
12075 * data.c (set_internal): Fix the criteria for whether
12076 to swap out the old cached binding.
12077
60af03f1
DL
120782000-01-19 Dave Love <fx@gnu.org>
12079
12080 * lread.c: (syms_of_lread) [user-init-file]: Doc change.
12081
f9be074f
KH
120822000-01-18 Kenichi Handa <handa@etl.go.jp>
12083
12084 * regex.c (re_compile_fastmap): While checking a range table for
12085 `charset', skip flag bits for a character class correctly.
12086
52b8dbf9
GM
120872000-01-17 Gerd Moellmann <gerd@gnu.org>
12088
d36100c9
GM
12089 * m/news-risc.h (LD_SWITCH_MACHINE): Define differently for GCC.
12090
52283633 12091 * xfns.c (x_window): Call lw_create_widget with new parameter list.
52b8dbf9
GM
12092
12093 * widget.c (EmacsFrameSetCharSize): Change size of children first
52283633 12094 because of problems with main window geometry management under Lesstif.
52b8dbf9
GM
12095
12096 * xmenu.c (enum menu_item_idx): New enumeration replacing defines
12097 MENU_ITEMS_ITEM_.*.
12098 (MENU_ITEMS_ITEM_HELP): New enumerator.
12099 (push_menu_item): Add parameter HELP. Record help in menu_items.
12100 (single_menu_item, single_submenu, list_of_items): Call
12101 push_menu_item with new parameter.
12102 (single_submenu): Set help string in widget value.
12103 (menu_highlight_callback): New function.
12104 (set_frame_menubar): Call lw_create_widget with new
12105 parameter list.
12106 (xmenu_show, xdialog_show): Ditto.
12107
3139018f
GM
121082000-01-13 Gerd Moellmann <gerd@gnu.org>
12109
12110 * sound.c (Fplay_sound): Improve doc string.
12111
83c8f461
RS
121122000-01-11 Richard M. Stallman <rms@gnu.org>
12113
12114 * lisp.h (set_internal): Enter the new arg.
12115
12116 * eval.c (specbind): Record buffer-local variables specially,
12117 indicating which buffer's binding was saved.
12118 (unbind_to): Restore buffer-local variables specially
12119 in the proper buffer.
12120
12121 * data.c (set_internal): New arg BUF.
427ec082 12122
83c8f461
RS
12123 * eval.c (specbind, unbind_to): Pass new arg to set_internal.
12124 * data.c (Fset): Pass new arg to set_internal.
12125 * bytecode.c (Fbyte_code): Pass new arg to set_internal.
427ec082 12126
1fab1775
GM
121272000-01-11 Gerd Moellmann <gerd@gnu.org>
12128
52283633 12129 * .gdbinit: Adapt to new strings. Add xbacktrace, xreload, xprintsym.
1fab1775 12130
83c8f461 121312000-01-11 Richard M. Stallman <rms@gnu.org>
6f59462e
RS
12132
12133 * minibuf.c (Ftry_completion): Doc fix.
12134
7a85e4df
GM
121352000-01-11 Gerd Moellmann <gerd@gnu.org>
12136
12137 * keyboard.c (Fclear_this_command_keys): Clear recent_keys
12138 vector, too.
12139
a970dae4
AS
121402000-01-11 Andreas Schwab <schwab@suse.de>
12141
12142 * coding.c (code_convert_region): Initialize total_skip.
12143
c65d14ee
DL
121442000-01-08 Dave Love <fx@gnu.org>
12145
12146 * eval.c (Fuser_variable_p): Check customizability too.
12147
834938d2
GM
121482000-01-07 Gerd Moellmann <gerd@gnu.org>
12149
12150 * minibuf.c (Fcompleting_read): Doc fix.
12151
e0303cd6
GM
121522000-01-05 Gerd Moellmann <gerd@gnu.org>
12153
8a26744b
GM
12154 * s/freebsd.h (C_SWITCH_SYSTEM): Add -I /usr/local/include and
12155 -L /usr/local/lib.
12156
e0303cd6
GM
12157 * xfns.c (x_create_im): New function to set IM and IC of a frame.
12158 Check that input style is supported before trying to create an
12159 IC for it.
12160 (x_window): Call x_create_im.
427ec082 12161
2e471eb5
GM
121622000-01-04 Gerd Moellmann <gerd@gnu.org>
12163
560a7bd2
GM
12164 * xfns.c (current_gif_memory_src): New variable.
12165 (gif_load): Record the address of the current memory source
12166 in current_gif_memory_src.
12167 (gif_read_from_memory): Use current_gif_memory_src.
12168
f9ee84a3
GM
12169 * systime.h (EMACS_GET_TIME, EMACS_ADD_TIME, EMACS_SUB_TIME): Give
12170 macros statement form.
12171
d1299cde
GM
12172 * sound.c (struct sound): Renamed from struct sound_file.
12173 (struct sound): Add members `data' and `header_size'.
12174 (enum sound_attr): Add SOUND_DATA.
12175 (current_sound, current_sound_device): Variables renamed from
12176 sound_file and sound_device.
12177 (parse_sound): Parse :data.
12178 (parse_sound): Handle sound data in strings.
12179 (find_sound_type): Function renamed from find_sound_file_type.
427ec082 12180 (wav_init, au_init): Fail if sound's header_size is smaller than
d1299cde
GM
12181 needed header size.
12182 (wav_play, au_play): Play sounds from string data.
12183
2e471eb5
GM
12184 * puresize.h (BASE_PURE_SIZE): Increase to 600000.
12185
12186 * lisp.h: Add prototype for allocate_string_data.
12187
52283633 12188 * alloc.c (Fgarbage_collect): Return number of live and free strings.
2e471eb5
GM
12189
12190 * alloc.c (mark_buffer): Remove code in #if 0.
12191 (gc_sweep): Ditto.
12192 (UNMARK_BALANCE_INTERVALS): Give the macro statement form.
12193 (strings_consed): New variable.
12194 (allocate_string): Set it.
12195 (syms_of_alloc): Add DEFVAR_INT for strings_consed.
12196 (Fmemory_use_counts): Return strings_consed. Use Flist.
12197
12198 * alloc.c: General cleanup in comments etc. Remove conditional
12199 compilation for `standalone'.
12200
12201 * lisp.h (struct Lisp_String): Make DATA member `unsigned char *'.
12202
12203 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P):
12204 (GC_STRING_BYTES, GC_STRING_CHARS): New macros.
12205 (DONT_COPY_FLAG): Removed.
12206 (SBLOCK_SIZE, LARGE_STRING_BYTES): New macros.
12207 (struct sdata, struct sblock): New
12208 (struct string_block): Rewritten.
12209 (STRINGS_IN_STRING_BLOCK): New macro.
12210 (oldest_sblock, current_sblock, total_strings, total_free_strings)
12211 (large_sblocks, string_blocks, string_free_list): New variables.
12212 (NEXT_FREE_LISP_STRING, SDATA_OF_STRING, SDATA_SIZE): New macros.
12213 (init_strings): Rewritten.
12214 (allocate_string, allocate_string_data, compact_small_strings)
12215 (free_large_strings, sweep_strings): New functions.
12216 (STRING_BLOCK_SIZE, STRING_BLOCK_OUTSIZE)
12217 (struct string_block_head, current_string_block)
12218 (first_string_block, large_string_blocks, STRING_FULLSIZE)
12219 (STRING_PAD): Removed.
12220 (make_uninit_multibyte_string, make_pure_string): Rewritten.
12221 (Fgarbage_collect): Don't set mark bit in large strings.
12222 (mark_object): Mark strings differently. Mark symbol names
12223 differently.
12224 (survives_gc_p): Test marked strings differently.
427ec082 12225 (gc_sweep): Sweep strings differently, unmark strings in
2e471eb5
GM
12226 symbol names.
12227 (compact_strings): Removed.
12228
42608ba8
EZ
122292000-01-04 Eli Zaretskii <eliz@is.elta.co.il>
12230
12231 * xfaces.c (syms_of_xfaces): defsubr Scolor_gray_p and
12232 Scolor_supported_p even if HAVE_X_WINDOWS is not defined.
12233
e0a09e1a
KH
122342000-01-04 Kenichi Handa <handa@etl.go.jp>
12235
dd9f0750 12236 * fileio.c (Finsert_file_contents): Signal error if visiting file
427ec082 12237 in a non-empty buffer.
dd9f0750 12238
3c0f3b15 12239 * term.c (encode_terminal_code): Fix the previous change.
e0a09e1a 12240
44cd3ae5
GM
122412000-01-03 Gerd Moellmann <gerd@gnu.org>
12242
12243 * xfaces.c (syms_of_xfaces): Change Sface_color_gray_p to
12244 Scolor_gray_p, Sface_color_supported_p to Scolor_supported_p.
12245
12246 * s/hpux9.h (NO_EDITRES): Define even if HAVE_LIBXMU.
12247
c182a70f
EZ
122482000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
12249
12250 * xdisp.c (handle_single_display_prop) [HAVE_WINDOW_SYSTEM]: No
12251 need to test for MSDOS frames.
12252
24480d5b
EZ
122532000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
12254
12255 * dosfns.c (unspecified_colors): Remove.
12256 (msdos_stdcolor_idx): Use global variables unspecified_fg and
12257 unspecified_bg.
12258 (msdos_stdcolor_name): Return strings for unspecified fore- and
12259 back-ground colors.
12260
12261 * xfaces.c (Qunspecified_fg, Qunspecified_bg): Remove.
aaf2320c 12262 (syms_of_xfaces): Remove their staticpro's.
24480d5b
EZ
12263 (tty_color_name): Return Lisp strings for unspecified fore- and
12264 back-ground colors.
12265 (Finternal_set_lisp_face_attribute): Remove the special treatment
12266 for Qunspecified_{f,b}g.
52283633 12267 (realize_default_face): Replace Qunspecified_{f,b}g with a Lisp string.
24480d5b 12268
047f434a
GM
122692000-01-03 Gerd Moellmann <gerd@gnu.org>
12270
12271 * xdisp.c (reseat_at_next_visible_line_start): Position before
12272 newline only if ending up on a newline.
12273 (next_element_from_ellipsis): Return success. Handle case of
52283633 12274 displaying no ellipsis. Fix case of ellipsis defined in display table.
047f434a
GM
12275 (next_element_from_buffer): Return 0 if next_element_from_ellipsis
12276 returns 0.
12277
d684c676
EZ
122782000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
12279
12280 * xfaces.c (Fcolor_gray_p): Renamed from face-color-gray-p.
12281 (Fcolor_supported_p): Renamed from face-color-supported-p.
12282
5fe1d139
EZ
122832000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
12284
12285 * xfaces.c (tty_defined_color): Pass frame to tty-color-desc. The
12286 list of colors renamed to tty-defined-color-alist.
12287 (tty_color_name): Pass the frame to tty-color-by-index.
12288 (realize_tty_face): tty-color-alist is now a function which
12289 accepts the frame as argument.
12290
52283633 12291 * term.c (Ftty_display_color_p): Accept an optional argument FRAME.
5fe1d139 12292
816be8b8
EZ
122932000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
12294
12295 * term.c (insert_glyphs): Pass glyph, not &glyph, to
12296 encode_terminal_code.
12297
b635321e
EZ
122982000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
12299
12300 * dispnew.c (mode_line_string): Support termcap frames as well.
12301
9b784e96
GM
123022000-01-01 Gerd Moellmann <gerd@gnu.org>
12303
27189709
GM
12304 * syntax.c (Fforward_word): Undo previous change.
12305
12306 * editfns.c (Fconstrain_to_field): Don't constrain if
12307 inhibit-field-text-motion is non-nil.
12308 (Fline_beginning_position): Undo previous change.
12309 (Fline_end_position): Ditto.
12310
12311 * syntax.c (Fforward_word): Notice field boundaries only if
12312 inhibit-field-text-motion is nil.
12313
12314 * lisp.h: Add extern declaration for Vinhibit_field_text_motion.
12315
12316 * editfns.c (Vinhibit_field_text_motion): New variable.
12317 (inhibit-field-text-motion): New DEFVAR_LISP.
12318 (Fline_beginning_position, Fline_end_position): Notice field
12319 boundaries only if inhibit-field-text-motion is nil.
12320
45158a91
GM
12321 * xfns.c (x_create_x_image_and_pixmap): Remove parameter FILE.
12322 All calls adjusted.
12323 (x_build_heuristic_mask): Likewise.
12324 (xbm_load_image_from_file): Change error output.
12325 (xbm_load, xpm_load, pbm_load, png_load, jpeg_load, tiff_load)
12326 (gif_load, gs_load, x_kill_gs_process): Ditto.
12327
9b784e96
GM
12328 * xfns.c (gif_load): Avoid sign extension and thus out of bounds
12329 color indices when accessing raster pixels.
63cec32f
GM
12330 (gif_image_p, png_image_p, jpeg_image_p, tiff_image_p): Allow only
12331 one of :file or :data.
12332 (enum pbm_keyword_index): Add PBM_DATA.
12333 (pbm_format): Add :data.
12334 (pbm_image_p): Allow either :file or :data.
12335 (pbm_read_file): New function.
12336 (pbm_scan_number): Rewritten to read from string.
12337 (pbm_load): Support :data.
9b784e96 12338
2cb085db 12339See ChangeLog.8 for earlier changes.
6922b018
KH
12340
12341;; Local Variables:
49b3bd82 12342;; coding: iso-2022-7bit
6922b018 12343;; End: